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/'`
3781 echo "$as_me:$LINENO: checking host system type" >&5
3782 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3783 if test "${ac_cv_host+set}" = set; then
3784 echo $ECHO_N "(cached) $ECHO_C" >&6
3786 ac_cv_host_alias=$host_alias
3787 test -z "$ac_cv_host_alias" &&
3788 ac_cv_host_alias=$ac_cv_build_alias
3789 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3790 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3791 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3792 { (exit 1); exit 1; }; }
3795 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3796 echo "${ECHO_T}$ac_cv_host" >&6
3798 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3799 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3800 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3804 *cygwin* ) CYGWIN=yes;;
3808 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
3814 HAVE_SUN_OS_FALSE='#'
3816 HAVE_SUN_OS_TRUE='#'
3819 cat >>confdefs.h <<\_ACEOF
3820 #define HAVE_SUN_OS 1
3828 HAVE_SUN_OS_FALSE='#'
3830 HAVE_SUN_OS_TRUE='#'
3835 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
3841 HAVE_OSF1_OS_FALSE='#'
3843 HAVE_OSF1_OS_TRUE='#'
3846 cat >>confdefs.h <<\_ACEOF
3847 #define HAVE_OSF1_OS 1
3855 HAVE_OSF1_OS_FALSE='#'
3857 HAVE_OSF1_OS_TRUE='#'
3862 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
3868 HAVE_AIX_OS_FALSE='#'
3870 HAVE_AIX_OS_TRUE='#'
3873 cat >>confdefs.h <<\_ACEOF
3874 #define HAVE_AIX_OS 1
3882 HAVE_AIX_OS_FALSE='#'
3884 HAVE_AIX_OS_TRUE='#'
3889 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
3895 HAVE_HPUX_OS_FALSE='#'
3897 HAVE_HPUX_OS_TRUE='#'
3900 cat >>confdefs.h <<\_ACEOF
3901 #define HAVE_HPUX_OS 1
3909 HAVE_HPUX_OS_FALSE='#'
3911 HAVE_HPUX_OS_TRUE='#'
3916 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
3922 HAVE_LINUX_OS_FALSE='#'
3924 HAVE_LINUX_OS_TRUE='#'
3925 HAVE_LINUX_OS_FALSE=
3927 cat >>confdefs.h <<\_ACEOF
3928 #define HAVE_LINUX_OS 1
3936 HAVE_LINUX_OS_FALSE='#'
3938 HAVE_LINUX_OS_TRUE='#'
3939 HAVE_LINUX_OS_FALSE=
3943 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
3948 HAVE_FREEBSD_OS_TRUE=
3949 HAVE_FREEBSD_OS_FALSE='#'
3951 HAVE_FREEBSD_OS_TRUE='#'
3952 HAVE_FREEBSD_OS_FALSE=
3954 cat >>confdefs.h <<\_ACEOF
3955 #define HAVE_FREEBSD_OS 1
3962 HAVE_FREEBSD_OS_TRUE=
3963 HAVE_FREEBSD_OS_FALSE='#'
3965 HAVE_FREEBSD_OS_TRUE='#'
3966 HAVE_FREEBSD_OS_FALSE=
3970 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
3975 HAVE_NETBSD_OS_TRUE=
3976 HAVE_NETBSD_OS_FALSE='#'
3978 HAVE_NETBSD_OS_TRUE='#'
3979 HAVE_NETBSD_OS_FALSE=
3981 cat >>confdefs.h <<\_ACEOF
3982 #define HAVE_NETBSD_OS 1
3989 HAVE_NETBSD_OS_TRUE=
3990 HAVE_NETBSD_OS_FALSE='#'
3992 HAVE_NETBSD_OS_TRUE='#'
3993 HAVE_NETBSD_OS_FALSE=
3997 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4002 HAVE_OPENBSD_OS_TRUE=
4003 HAVE_OPENBSD_OS_FALSE='#'
4005 HAVE_OPENBSD_OS_TRUE='#'
4006 HAVE_OPENBSD_OS_FALSE=
4008 cat >>confdefs.h <<\_ACEOF
4009 #define HAVE_OPENBSD_OS 1
4016 HAVE_OPENBSD_OS_TRUE=
4017 HAVE_OPENBSD_OS_FALSE='#'
4019 HAVE_OPENBSD_OS_TRUE='#'
4020 HAVE_OPENBSD_OS_FALSE=
4024 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4030 HAVE_BSDI_OS_FALSE='#'
4032 HAVE_BSDI_OS_TRUE='#'
4035 cat >>confdefs.h <<\_ACEOF
4036 #define HAVE_BSDI_OS 1
4044 HAVE_BSDI_OS_FALSE='#'
4046 HAVE_BSDI_OS_TRUE='#'
4051 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4057 HAVE_SGI_OS_FALSE='#'
4059 HAVE_SGI_OS_TRUE='#'
4062 cat >>confdefs.h <<\_ACEOF
4063 #define HAVE_SGI_OS 1
4071 HAVE_SGI_OS_FALSE='#'
4073 HAVE_SGI_OS_TRUE='#'
4078 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4084 HAVE_IRIX_OS_FALSE='#'
4086 HAVE_IRIX_OS_TRUE='#'
4089 cat >>confdefs.h <<\_ACEOF
4090 #define HAVE_IRIX_OS 1
4098 HAVE_IRIX_OS_FALSE='#'
4100 HAVE_IRIX_OS_TRUE='#'
4105 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4110 HAVE_DARWIN_OS_TRUE=
4111 HAVE_DARWIN_OS_FALSE='#'
4113 HAVE_DARWIN_OS_TRUE='#'
4114 HAVE_DARWIN_OS_FALSE=
4116 cat >>confdefs.h <<\_ACEOF
4117 #define HAVE_DARWIN_OS 1
4124 HAVE_DARWIN_OS_TRUE=
4125 HAVE_DARWIN_OS_FALSE='#'
4127 HAVE_DARWIN_OS_TRUE='#'
4128 HAVE_DARWIN_OS_FALSE=
4133 # -----------------------------------------------------------
4134 # ----------------------------------------------------------
4135 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4136 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4137 if test "x$DISTNAME" != "x"
4139 echo "distname set to $DISTNAME"
4140 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4143 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4146 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4149 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4152 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4155 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4158 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4161 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4164 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4167 elif test -f /etc/SuSE-release
4170 elif test -d /etc/SuSEconfig
4173 elif test -f /etc/mandrake-release
4176 elif test -f /etc/whitebox-release
4179 elif test -f /etc/redhat-release
4182 elif test -f /etc/gentoo-release
4185 elif test -f /etc/debian_version
4188 elif test -f /etc/slackware-version
4191 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4194 elif test -f /etc/engarde-version
4197 elif test "$CYGWIN" = yes
4200 cat >>confdefs.h <<\_ACEOF
4201 #define HAVE_CYGWIN 1
4207 echo "$as_me:$LINENO: result: done" >&5
4208 echo "${ECHO_T}done" >&6
4211 # -----------------------------------------------------------
4212 # ----------------------------------------------------------
4217 INSIDE_GNOME_COMMON_TRUE=
4218 INSIDE_GNOME_COMMON_FALSE='#'
4220 INSIDE_GNOME_COMMON_TRUE='#'
4221 INSIDE_GNOME_COMMON_FALSE=
4224 test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
4226 for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
4229 # ------------------------------------------------------------------
4230 # If the user has not set --prefix, we set our default to nothing.
4231 # In this case, if the user has not set --sysconfdir, we set it
4232 # to the package default of /etc/bacula. If either --prefix or
4233 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
4234 # ------------------------------------------------------------------
4235 if test x${prefix} = xNONE ; then
4236 if test `eval echo ${sysconfdir}` = NONE/etc ; then
4237 sysconfdir=/etc/bacula
4241 sysconfdir=`eval echo ${sysconfdir}`
4243 # -------------------------------------------------------------------------
4244 # If the user has not set --exec-prefix, we default to ${prefix}
4245 # -------------------------------------------------------------------------
4246 if test x${exec_prefix} = xNONE ; then
4247 exec_prefix=${prefix}
4250 # ------------------------------------------------------------------
4251 # If the user has not set --sbindir, we set our default as /sbin
4252 # ------------------------------------------------------------------
4253 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4254 sbindir=${exec_prefix}/sbin
4256 sbindir=`eval echo ${sbindir}`
4258 # ------------------------------------------------------------------
4259 # All list of languages for which a translation exist. Each
4260 # language is separated by a space.
4261 # ------------------------------------------------------------------
4264 for ac_prog in msgfmt
4266 # Extract the first word of "$ac_prog", so it can be a program name with args.
4267 set dummy $ac_prog; ac_word=$2
4268 echo "$as_me:$LINENO: checking for $ac_word" >&5
4269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4270 if test "${ac_cv_path_MSGFMT+set}" = set; then
4271 echo $ECHO_N "(cached) $ECHO_C" >&6
4275 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4282 test -z "$as_dir" && as_dir=.
4283 for ac_exec_ext in '' $ac_executable_extensions; do
4284 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4285 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4295 MSGFMT=$ac_cv_path_MSGFMT
4297 if test -n "$MSGFMT"; then
4298 echo "$as_me:$LINENO: result: $MSGFMT" >&5
4299 echo "${ECHO_T}$MSGFMT" >&6
4301 echo "$as_me:$LINENO: result: no" >&5
4302 echo "${ECHO_T}no" >&6
4305 test -n "$MSGFMT" && break
4307 test -n "$MSGFMT" || MSGFMT="no"
4309 if test "$MSGFMT" = "no"
4311 echo 'msgfmt program not found, disabling NLS !'
4313 USE_INCLUDED_LIBINTL=no
4321 support_postgresql=no
4322 support_smartalloc=yes
4323 support_readline=yes
4326 support_wx_console=no
4328 support_static_tools=no
4329 support_static_fd=no
4330 support_static_sd=no
4331 support_static_dir=no
4332 support_static_cons=no
4333 build_client_only=no
4339 # -------------------------------------------
4340 # gnome (default off)
4341 # -------------------------------------------
4342 # Check whether --enable-gnome or --disable-gnome was given.
4343 if test "${enable_gnome+set}" = set; then
4344 enableval="$enable_gnome"
4345 if test x$enableval = xyes; then
4351 if test x$support_gnome = xyes; then
4352 abc=`$PKGCONFIG --exists libgnomeui-2.0`
4354 if test $pkg = 0; then
4355 GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
4356 GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4357 GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
4358 GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4363 GNOME_DIR=src/gnome2-console
4364 gnome_version="Version 2.x"
4377 # Check whether --with-gnome-includes or --without-gnome-includes was given.
4378 if test "${with_gnome_includes+set}" = set; then
4379 withval="$with_gnome_includes"
4381 CFLAGS="$CFLAGS -I$withval"
4386 # Check whether --with-gnome-libs or --without-gnome-libs was given.
4387 if test "${with_gnome_libs+set}" = set; then
4388 withval="$with_gnome_libs"
4390 LDFLAGS="$LDFLAGS -L$withval"
4391 gnome_prefix=$withval
4396 # Check whether --with-gnome or --without-gnome was given.
4397 if test "${with_gnome+set}" = set; then
4398 withval="$with_gnome"
4399 if test x$withval = xyes; then
4403 if test "x$withval" = xno; then
4407 LDFLAGS="$LDFLAGS -L$withval/lib"
4408 CFLAGS="$CFLAGS -I$withval/include"
4409 gnome_prefix=$withval/lib
4416 if test "x$want_gnome" = xyes; then
4418 # Extract the first word of "gnome-config", so it can be a program name with args.
4419 set dummy gnome-config; ac_word=$2
4420 echo "$as_me:$LINENO: checking for $ac_word" >&5
4421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4422 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
4423 echo $ECHO_N "(cached) $ECHO_C" >&6
4425 case $GNOME_CONFIG in
4427 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
4430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4434 test -z "$as_dir" && as_dir=.
4435 for ac_exec_ext in '' $ac_executable_extensions; do
4436 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4437 ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4444 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
4448 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
4450 if test -n "$GNOME_CONFIG"; then
4451 echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
4452 echo "${ECHO_T}$GNOME_CONFIG" >&6
4454 echo "$as_me:$LINENO: result: no" >&5
4455 echo "${ECHO_T}no" >&6
4458 if test "$GNOME_CONFIG" = "no"; then
4459 no_gnome_config="yes"
4461 echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
4462 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
4463 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
4464 echo "$as_me:$LINENO: result: yes" >&5
4465 echo "${ECHO_T}yes" >&6
4468 # Extract the first word of "orbit-config", so it can be a program name with args.
4469 set dummy orbit-config; ac_word=$2
4470 echo "$as_me:$LINENO: checking for $ac_word" >&5
4471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4472 if test "${ac_cv_path_ORBIT_CONFIG+set}" = set; then
4473 echo $ECHO_N "(cached) $ECHO_C" >&6
4475 case $ORBIT_CONFIG in
4477 ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
4480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4484 test -z "$as_dir" && as_dir=.
4485 for ac_exec_ext in '' $ac_executable_extensions; do
4486 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4487 ac_cv_path_ORBIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4494 test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
4498 ORBIT_CONFIG=$ac_cv_path_ORBIT_CONFIG
4500 if test -n "$ORBIT_CONFIG"; then
4501 echo "$as_me:$LINENO: result: $ORBIT_CONFIG" >&5
4502 echo "${ECHO_T}$ORBIT_CONFIG" >&6
4504 echo "$as_me:$LINENO: result: no" >&5
4505 echo "${ECHO_T}no" >&6
4508 # Extract the first word of "orbit-idl", so it can be a program name with args.
4509 set dummy orbit-idl; ac_word=$2
4510 echo "$as_me:$LINENO: checking for $ac_word" >&5
4511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4512 if test "${ac_cv_path_ORBIT_IDL+set}" = set; then
4513 echo $ECHO_N "(cached) $ECHO_C" >&6
4517 ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
4520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4524 test -z "$as_dir" && as_dir=.
4525 for ac_exec_ext in '' $ac_executable_extensions; do
4526 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4527 ac_cv_path_ORBIT_IDL="$as_dir/$ac_word$ac_exec_ext"
4528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4534 test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
4538 ORBIT_IDL=$ac_cv_path_ORBIT_IDL
4540 if test -n "$ORBIT_IDL"; then
4541 echo "$as_me:$LINENO: result: $ORBIT_IDL" >&5
4542 echo "${ECHO_T}$ORBIT_IDL" >&6
4544 echo "$as_me:$LINENO: result: no" >&5
4545 echo "${ECHO_T}no" >&6
4548 echo "$as_me:$LINENO: checking for working ORBit environment" >&5
4549 echo $ECHO_N "checking for working ORBit environment... $ECHO_C" >&6
4550 if test "${gnome_cv_orbit_found+set}" = set; then
4551 echo $ECHO_N "(cached) $ECHO_C" >&6
4554 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
4555 gnome_cv_orbit_found=no
4557 gnome_cv_orbit_found=yes
4561 echo "$as_me:$LINENO: result: $gnome_cv_orbit_found" >&5
4562 echo "${ECHO_T}$gnome_cv_orbit_found" >&6
4565 if test x$gnome_cv_orbit_found = xyes; then
4567 HAVE_ORBIT_FALSE='#'
4572 if test x$gnome_cv_orbit_found = xyes; then
4574 ORBIT_CFLAGS=`orbit-config --cflags client server`
4575 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
4579 if test xfail = xfailure; then
4580 { { echo "$as_me:$LINENO: error: ORBit not installed or installation problem" >&5
4581 echo "$as_me: error: ORBit not installed or installation problem" >&2;}
4582 { (exit 1); exit 1; }; }
4586 echo "$as_me:$LINENO: checking for gnorba libraries" >&5
4587 echo $ECHO_N "checking for gnorba libraries... $ECHO_C" >&6
4588 if test "${gnome_cv_gnorba_found+set}" = set; then
4589 echo $ECHO_N "(cached) $ECHO_C" >&6
4592 gnome_cv_gnorba_found=no
4593 if test x$gnome_cv_orbit_found = xyes; then
4594 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4595 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4596 if test -n "$GNORBA_LIBS"; then
4597 gnome_cv_gnorba_found=yes
4602 echo "$as_me:$LINENO: result: $gnome_cv_gnorba_found" >&5
4603 echo "${ECHO_T}$gnome_cv_gnorba_found" >&6
4606 if test x$gnome_cv_gnorba_found = xyes; then
4608 HAVE_GNORBA_FALSE='#'
4610 HAVE_GNORBA_TRUE='#'
4613 if test x$gnome_cv_orbit_found = xyes; then
4615 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4616 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4620 if test xfail = xfailure; then
4621 { { echo "$as_me:$LINENO: error: gnorba library not installed or installation problem" >&5
4622 echo "$as_me: error: gnorba library not installed or installation problem" >&2;}
4623 { (exit 1); exit 1; }; }
4627 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
4628 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
4629 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
4630 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
4631 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
4632 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
4633 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
4636 echo "$as_me:$LINENO: result: no" >&5
4637 echo "${ECHO_T}no" >&6
4638 no_gnome_config="yes"
4642 if test x$exec_prefix = xNONE; then
4643 if test x$prefix = xNONE; then
4644 gnome_prefix=$ac_default_prefix/lib
4646 gnome_prefix=$prefix/lib
4649 gnome_prefix=`eval echo \`echo $libdir\``
4652 if test "$no_gnome_config" = "yes"; then
4653 echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
4654 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
4655 if test -f $gnome_prefix/gnomeConf.sh; then
4656 echo "$as_me:$LINENO: result: found" >&5
4657 echo "${ECHO_T}found" >&6
4658 echo "loading gnome configuration from" \
4659 "$gnome_prefix/gnomeConf.sh"
4660 . $gnome_prefix/gnomeConf.sh
4663 echo "$as_me:$LINENO: result: not found" >&5
4664 echo "${ECHO_T}not found" >&6
4665 if test xfail = xfail; then
4666 { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
4667 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
4668 { (exit 1); exit 1; }; }
4677 echo "$as_me:$LINENO: checking extra library \"$i\"" >&5
4678 echo $ECHO_N "checking extra library \"$i\"... $ECHO_C" >&6
4682 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
4683 echo "$as_me:$LINENO: result: $GNOME_APPLETS_LIBS" >&5
4684 echo "${ECHO_T}$GNOME_APPLETS_LIBS" >&6;;
4687 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
4688 echo "$as_me:$LINENO: result: $GNOME_DOCKLETS_LIBS" >&5
4689 echo "${ECHO_T}$GNOME_DOCKLETS_LIBS" >&6;;
4692 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
4693 echo "$as_me:$LINENO: result: $GNOME_CAPPLET_LIBS" >&5
4694 echo "${ECHO_T}$GNOME_CAPPLET_LIBS" >&6;;
4696 echo "$as_me:$LINENO: result: unknown library" >&5
4697 echo "${ECHO_T}unknown library" >&6
4699 EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
4700 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
4705 GNOME_DIR=src/gnome-console
4706 gnome_version="Version 1.4"
4712 # -------------------------------------------
4713 # wx-console (default off)
4714 # -------------------------------------------
4715 # Check whether --enable-wx-console or --disable-wx-console was given.
4716 if test "${enable_wx_console+set}" = set; then
4717 enableval="$enable_wx_console"
4718 if test x$enableval = xyes; then
4719 support_wx_console=yes
4724 if test x$support_wx_console = xyes; then
4725 abc=`$WXCONFIG --cppflags`
4727 if test $pkg = 0; then
4728 WXCONS_CPPFLAGS=`$WXCONFIG --cppflags`
4729 WXCONS_LDFLAGS=`$WXCONFIG --libs`
4732 WX_DIR=src/wx-console
4735 echo "wx-config program not found. wx-console disabled."
4737 support_wx_console=no
4744 # -------------------------------------------
4745 # smartalloc (default off)
4746 # -------------------------------------------
4747 # Check whether --enable-smartalloc or --disable-smartalloc was given.
4748 if test "${enable_smartalloc+set}" = set; then
4749 enableval="$enable_smartalloc"
4750 if test x$enableval = xno; then
4751 support_smartalloc=no
4755 if test x$support_smartalloc = xyes; then
4756 cat >>confdefs.h <<\_ACEOF
4757 #define SMARTALLOC 1
4762 # -------------------------------------------
4763 # static-tools (default off)
4764 # -------------------------------------------
4765 # Check whether --enable-static-tools or --disable-static-tools was given.
4766 if test "${enable_static_tools+set}" = set; then
4767 enableval="$enable_static_tools"
4768 if test x$enableval = xyes; then
4769 support_static_tools=yes
4774 if test x$support_static_tools = xyes; then
4775 TTOOL_LDFLAGS="-static"
4779 # -------------------------------------------
4780 # static-fd (default off)
4781 # -------------------------------------------
4782 # Check whether --enable-static-fd or --disable-static-fd was given.
4783 if test "${enable_static_fd+set}" = set; then
4784 enableval="$enable_static_fd"
4785 if test x$enableval = xyes; then
4786 support_static_fd=yes
4791 if test x$support_static_fd = xyes; then
4792 STATIC_FD="static-bacula-fd"
4796 # -------------------------------------------
4797 # static-sd (default off)
4798 # -------------------------------------------
4799 # Check whether --enable-static-sd or --disable-static-sd was given.
4800 if test "${enable_static_sd+set}" = set; then
4801 enableval="$enable_static_sd"
4802 if test x$enableval = xyes; then
4803 support_static_sd=yes
4808 if test x$support_static_sd = xyes; then
4809 STATIC_SD="static-bacula-sd"
4813 # -------------------------------------------
4814 # static-dir (default off)
4815 # -------------------------------------------
4816 # Check whether --enable-static-dir or --disable-static-dir was given.
4817 if test "${enable_static_dir+set}" = set; then
4818 enableval="$enable_static_dir"
4819 if test x$enableval = xyes; then
4820 support_static_dir=yes
4825 if test x$support_static_dir = xyes; then
4826 STATIC_DIR="static-bacula-dir"
4830 # -------------------------------------------
4831 # static-cons (default off)
4832 # -------------------------------------------
4833 # Check whether --enable-static-cons or --disable-static-cons was given.
4834 if test "${enable_static_cons+set}" = set; then
4835 enableval="$enable_static_cons"
4836 if test x$enableval = xyes; then
4837 support_static_cons=yes
4844 if test x$support_static_cons = xyes; then
4845 STATIC_CONS="static-bconsole"
4846 STATIC_GNOME_CONS="static-gnome-console"
4847 STATIC_WX_CONS="static-wx-console"
4853 # -------------------------------------------
4854 # client_only (default off)
4855 # -------------------------------------------
4856 # Check whether --enable-client-only or --disable-client-only was given.
4857 if test "${enable_client_only+set}" = set; then
4858 enableval="$enable_client_only"
4859 if test x$enableval = xyes; then
4860 build_client_only=yes
4865 if test x$build_client_only = xno; then
4872 # ---------------------------------------------------
4873 # Check for conio (Bacula readline substitute)(
4874 # ---------------------------------------------------
4875 # this allows you to turn it completely off
4876 # Check whether --enable-conio or --disable-conio was given.
4877 if test "${enable_conio+set}" = set; then
4878 enableval="$enable_conio"
4879 if test x$enableval = xno; then
4885 if test x$support_conio = xyes; then
4886 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4887 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4888 if test "${ac_cv_header_stdc+set}" = set; then
4889 echo $ECHO_N "(cached) $ECHO_C" >&6
4891 cat >conftest.$ac_ext <<_ACEOF
4892 #line $LINENO "configure"
4895 cat confdefs.h >>conftest.$ac_ext
4896 cat >>conftest.$ac_ext <<_ACEOF
4897 /* end confdefs.h. */
4911 rm -f conftest.$ac_objext
4912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4913 (eval $ac_compile) 2>&5
4915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916 (exit $ac_status); } &&
4917 { ac_try='test -s conftest.$ac_objext'
4918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4922 (exit $ac_status); }; }; then
4923 ac_cv_header_stdc=yes
4925 echo "$as_me: failed program was:" >&5
4926 sed 's/^/| /' conftest.$ac_ext >&5
4928 ac_cv_header_stdc=no
4930 rm -f conftest.$ac_objext conftest.$ac_ext
4932 if test $ac_cv_header_stdc = yes; then
4933 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4934 cat >conftest.$ac_ext <<_ACEOF
4935 #line $LINENO "configure"
4938 cat confdefs.h >>conftest.$ac_ext
4939 cat >>conftest.$ac_ext <<_ACEOF
4940 /* end confdefs.h. */
4944 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4945 $EGREP "memchr" >/dev/null 2>&1; then
4948 ac_cv_header_stdc=no
4954 if test $ac_cv_header_stdc = yes; then
4955 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4956 cat >conftest.$ac_ext <<_ACEOF
4957 #line $LINENO "configure"
4960 cat confdefs.h >>conftest.$ac_ext
4961 cat >>conftest.$ac_ext <<_ACEOF
4962 /* end confdefs.h. */
4966 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4967 $EGREP "free" >/dev/null 2>&1; then
4970 ac_cv_header_stdc=no
4976 if test $ac_cv_header_stdc = yes; then
4977 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4978 if test "$cross_compiling" = yes; then
4981 cat >conftest.$ac_ext <<_ACEOF
4982 #line $LINENO "configure"
4985 cat confdefs.h >>conftest.$ac_ext
4986 cat >>conftest.$ac_ext <<_ACEOF
4987 /* end confdefs.h. */
4989 #if ((' ' & 0x0FF) == 0x020)
4990 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4991 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4993 # define ISLOWER(c) \
4994 (('a' <= (c) && (c) <= 'i') \
4995 || ('j' <= (c) && (c) <= 'r') \
4996 || ('s' <= (c) && (c) <= 'z'))
4997 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5000 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5005 for (i = 0; i < 256; i++)
5006 if (XOR (islower (i), ISLOWER (i))
5007 || toupper (i) != TOUPPER (i))
5012 rm -f conftest$ac_exeext
5013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5014 (eval $ac_link) 2>&5
5016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022 (exit $ac_status); }; }; then
5025 echo "$as_me: program exited with status $ac_status" >&5
5026 echo "$as_me: failed program was:" >&5
5027 sed 's/^/| /' conftest.$ac_ext >&5
5030 ac_cv_header_stdc=no
5032 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5036 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5037 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5038 if test $ac_cv_header_stdc = yes; then
5040 cat >>confdefs.h <<\_ACEOF
5041 #define STDC_HEADERS 1
5046 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5056 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5057 inttypes.h stdint.h unistd.h
5059 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5060 echo "$as_me:$LINENO: checking for $ac_header" >&5
5061 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5062 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5063 echo $ECHO_N "(cached) $ECHO_C" >&6
5065 cat >conftest.$ac_ext <<_ACEOF
5066 #line $LINENO "configure"
5069 cat confdefs.h >>conftest.$ac_ext
5070 cat >>conftest.$ac_ext <<_ACEOF
5071 /* end confdefs.h. */
5072 $ac_includes_default
5074 #include <$ac_header>
5076 rm -f conftest.$ac_objext
5077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5078 (eval $ac_compile) 2>&5
5080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081 (exit $ac_status); } &&
5082 { ac_try='test -s conftest.$ac_objext'
5083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5087 (exit $ac_status); }; }; then
5088 eval "$as_ac_Header=yes"
5090 echo "$as_me: failed program was:" >&5
5091 sed 's/^/| /' conftest.$ac_ext >&5
5093 eval "$as_ac_Header=no"
5095 rm -f conftest.$ac_objext conftest.$ac_ext
5097 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5098 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5099 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5100 cat >>confdefs.h <<_ACEOF
5101 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5109 if test "${ac_cv_header_termcap_h+set}" = set; then
5110 echo "$as_me:$LINENO: checking for termcap.h" >&5
5111 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5112 if test "${ac_cv_header_termcap_h+set}" = set; then
5113 echo $ECHO_N "(cached) $ECHO_C" >&6
5115 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5116 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5118 # Is the header compilable?
5119 echo "$as_me:$LINENO: checking termcap.h usability" >&5
5120 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
5121 cat >conftest.$ac_ext <<_ACEOF
5122 #line $LINENO "configure"
5125 cat confdefs.h >>conftest.$ac_ext
5126 cat >>conftest.$ac_ext <<_ACEOF
5127 /* end confdefs.h. */
5128 $ac_includes_default
5129 #include <termcap.h>
5131 rm -f conftest.$ac_objext
5132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5133 (eval $ac_compile) 2>&5
5135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136 (exit $ac_status); } &&
5137 { ac_try='test -s conftest.$ac_objext'
5138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5142 (exit $ac_status); }; }; then
5143 ac_header_compiler=yes
5145 echo "$as_me: failed program was:" >&5
5146 sed 's/^/| /' conftest.$ac_ext >&5
5148 ac_header_compiler=no
5150 rm -f conftest.$ac_objext conftest.$ac_ext
5151 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5152 echo "${ECHO_T}$ac_header_compiler" >&6
5154 # Is the header present?
5155 echo "$as_me:$LINENO: checking termcap.h presence" >&5
5156 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
5157 cat >conftest.$ac_ext <<_ACEOF
5158 #line $LINENO "configure"
5161 cat confdefs.h >>conftest.$ac_ext
5162 cat >>conftest.$ac_ext <<_ACEOF
5163 /* end confdefs.h. */
5164 #include <termcap.h>
5166 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5167 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5169 grep -v '^ *+' conftest.er1 >conftest.err
5171 cat conftest.err >&5
5172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5173 (exit $ac_status); } >/dev/null; then
5174 if test -s conftest.err; then
5175 ac_cpp_err=$ac_c_preproc_warn_flag
5182 if test -z "$ac_cpp_err"; then
5183 ac_header_preproc=yes
5185 echo "$as_me: failed program was:" >&5
5186 sed 's/^/| /' conftest.$ac_ext >&5
5188 ac_header_preproc=no
5190 rm -f conftest.err conftest.$ac_ext
5191 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5192 echo "${ECHO_T}$ac_header_preproc" >&6
5194 # So? What about this header?
5195 case $ac_header_compiler:$ac_header_preproc in
5197 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
5198 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5199 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5200 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5203 ## ------------------------------------ ##
5204 ## Report this to bug-autoconf@gnu.org. ##
5205 ## ------------------------------------ ##
5208 sed "s/^/$as_me: WARNING: /" >&2
5211 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
5212 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
5213 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
5214 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
5215 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5216 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5219 ## ------------------------------------ ##
5220 ## Report this to bug-autoconf@gnu.org. ##
5221 ## ------------------------------------ ##
5224 sed "s/^/$as_me: WARNING: /" >&2
5227 echo "$as_me:$LINENO: checking for termcap.h" >&5
5228 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5229 if test "${ac_cv_header_termcap_h+set}" = set; then
5230 echo $ECHO_N "(cached) $ECHO_C" >&6
5232 ac_cv_header_termcap_h=$ac_header_preproc
5234 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5235 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5238 if test $ac_cv_header_termcap_h = yes; then
5239 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5240 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
5241 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5242 echo $ECHO_N "(cached) $ECHO_C" >&6
5244 ac_check_lib_save_LIBS=$LIBS
5245 LIBS="-ltermcap $LIBS"
5246 cat >conftest.$ac_ext <<_ACEOF
5247 #line $LINENO "configure"
5250 cat confdefs.h >>conftest.$ac_ext
5251 cat >>conftest.$ac_ext <<_ACEOF
5252 /* end confdefs.h. */
5254 /* Override any gcc2 internal prototype to avoid an error. */
5258 /* We use char because int might match the return type of a gcc2
5259 builtin and then its argument prototype would still apply. */
5269 rm -f conftest.$ac_objext conftest$ac_exeext
5270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5271 (eval $ac_link) 2>&5
5273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274 (exit $ac_status); } &&
5275 { ac_try='test -s conftest$ac_exeext'
5276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280 (exit $ac_status); }; }; then
5281 ac_cv_lib_termcap_tgetent=yes
5283 echo "$as_me: failed program was:" >&5
5284 sed 's/^/| /' conftest.$ac_ext >&5
5286 ac_cv_lib_termcap_tgetent=no
5288 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5289 LIBS=$ac_check_lib_save_LIBS
5291 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5292 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
5293 if test $ac_cv_lib_termcap_tgetent = yes; then
5294 CONS_LIBS="-ltermcap"
5300 cat >>confdefs.h <<\_ACEOF
5301 #define HAVE_CONIO 1
5306 echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
5307 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
5308 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
5309 echo $ECHO_N "(cached) $ECHO_C" >&6
5311 ac_check_lib_save_LIBS=$LIBS
5312 LIBS="-lncurses $LIBS"
5313 cat >conftest.$ac_ext <<_ACEOF
5314 #line $LINENO "configure"
5317 cat confdefs.h >>conftest.$ac_ext
5318 cat >>conftest.$ac_ext <<_ACEOF
5319 /* end confdefs.h. */
5321 /* Override any gcc2 internal prototype to avoid an error. */
5325 /* We use char because int might match the return type of a gcc2
5326 builtin and then its argument prototype would still apply. */
5336 rm -f conftest.$ac_objext conftest$ac_exeext
5337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5338 (eval $ac_link) 2>&5
5340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341 (exit $ac_status); } &&
5342 { ac_try='test -s conftest$ac_exeext'
5343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347 (exit $ac_status); }; }; then
5348 ac_cv_lib_ncurses_tgetent=yes
5350 echo "$as_me: failed program was:" >&5
5351 sed 's/^/| /' conftest.$ac_ext >&5
5353 ac_cv_lib_ncurses_tgetent=no
5355 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5356 LIBS=$ac_check_lib_save_LIBS
5358 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
5359 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
5360 if test $ac_cv_lib_ncurses_tgetent = yes; then
5361 CONS_LIBS="-lncurses"
5367 cat >>confdefs.h <<\_ACEOF
5368 #define HAVE_CONIO 1
5373 echo " "; echo "Neither termcap nor ncurses library found. CONIO turned off ..."; echo " "
5381 echo " "; echo "termcap.h not found. CONIO turned off ..."; echo " "
5388 # ---------------------------------------------------
5389 # Check for readline support/directory (default off)
5390 # ---------------------------------------------------
5391 # this allows you to turn it completely off
5392 # Check whether --enable-readline or --disable-readline was given.
5393 if test "${enable_readline+set}" = set; then
5394 enableval="$enable_readline"
5395 if test x$enableval = xno; then
5402 if test x$support_readline = xyes; then
5404 # Check whether --with-readline or --without-readline was given.
5405 if test "${with_readline+set}" = set; then
5406 withval="$with_readline"
5408 case "$with_readline" in
5411 if test "$with_readline" != "yes"; then
5412 CONS_INC="-I${with_readline}"
5413 CONS_LDFLAGS="-L$with_readline"
5415 with_readline="/usr/include/readline"
5417 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
5418 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5419 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5420 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5421 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5422 echo $ECHO_N "(cached) $ECHO_C" >&6
5424 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5425 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5427 # Is the header compilable?
5428 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
5429 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
5430 cat >conftest.$ac_ext <<_ACEOF
5431 #line $LINENO "configure"
5434 cat confdefs.h >>conftest.$ac_ext
5435 cat >>conftest.$ac_ext <<_ACEOF
5436 /* end confdefs.h. */
5437 $ac_includes_default
5438 #include <${with_readline}/readline.h>
5440 rm -f conftest.$ac_objext
5441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5442 (eval $ac_compile) 2>&5
5444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5445 (exit $ac_status); } &&
5446 { ac_try='test -s conftest.$ac_objext'
5447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5451 (exit $ac_status); }; }; then
5452 ac_header_compiler=yes
5454 echo "$as_me: failed program was:" >&5
5455 sed 's/^/| /' conftest.$ac_ext >&5
5457 ac_header_compiler=no
5459 rm -f conftest.$ac_objext conftest.$ac_ext
5460 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5461 echo "${ECHO_T}$ac_header_compiler" >&6
5463 # Is the header present?
5464 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
5465 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
5466 cat >conftest.$ac_ext <<_ACEOF
5467 #line $LINENO "configure"
5470 cat confdefs.h >>conftest.$ac_ext
5471 cat >>conftest.$ac_ext <<_ACEOF
5472 /* end confdefs.h. */
5473 #include <${with_readline}/readline.h>
5475 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5476 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5478 grep -v '^ *+' conftest.er1 >conftest.err
5480 cat conftest.err >&5
5481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482 (exit $ac_status); } >/dev/null; then
5483 if test -s conftest.err; then
5484 ac_cpp_err=$ac_c_preproc_warn_flag
5491 if test -z "$ac_cpp_err"; then
5492 ac_header_preproc=yes
5494 echo "$as_me: failed program was:" >&5
5495 sed 's/^/| /' conftest.$ac_ext >&5
5497 ac_header_preproc=no
5499 rm -f conftest.err conftest.$ac_ext
5500 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5501 echo "${ECHO_T}$ac_header_preproc" >&6
5503 # So? What about this header?
5504 case $ac_header_compiler:$ac_header_preproc in
5506 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5507 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5508 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5509 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5512 ## ------------------------------------ ##
5513 ## Report this to bug-autoconf@gnu.org. ##
5514 ## ------------------------------------ ##
5517 sed "s/^/$as_me: WARNING: /" >&2
5520 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
5521 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
5522 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
5523 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
5524 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5525 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5528 ## ------------------------------------ ##
5529 ## Report this to bug-autoconf@gnu.org. ##
5530 ## ------------------------------------ ##
5533 sed "s/^/$as_me: WARNING: /" >&2
5536 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5537 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5538 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5539 echo $ECHO_N "(cached) $ECHO_C" >&6
5541 eval "$as_ac_Header=$ac_header_preproc"
5543 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5544 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5547 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5548 cat >>confdefs.h <<\_ACEOF
5549 #define HAVE_READLINE 1
5552 CONS_LIBS="-lreadline -ltermcap"
5557 echo "readline.h not found. readline turned off ..."
5569 # check for standard readline library
5570 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5571 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5572 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5573 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5574 echo $ECHO_N "(cached) $ECHO_C" >&6
5576 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5577 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5579 # Is the header compilable?
5580 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
5581 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
5582 cat >conftest.$ac_ext <<_ACEOF
5583 #line $LINENO "configure"
5586 cat confdefs.h >>conftest.$ac_ext
5587 cat >>conftest.$ac_ext <<_ACEOF
5588 /* end confdefs.h. */
5589 $ac_includes_default
5590 #include </usr/include/readline/readline.h>
5592 rm -f conftest.$ac_objext
5593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5594 (eval $ac_compile) 2>&5
5596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597 (exit $ac_status); } &&
5598 { ac_try='test -s conftest.$ac_objext'
5599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603 (exit $ac_status); }; }; then
5604 ac_header_compiler=yes
5606 echo "$as_me: failed program was:" >&5
5607 sed 's/^/| /' conftest.$ac_ext >&5
5609 ac_header_compiler=no
5611 rm -f conftest.$ac_objext conftest.$ac_ext
5612 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5613 echo "${ECHO_T}$ac_header_compiler" >&6
5615 # Is the header present?
5616 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
5617 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
5618 cat >conftest.$ac_ext <<_ACEOF
5619 #line $LINENO "configure"
5622 cat confdefs.h >>conftest.$ac_ext
5623 cat >>conftest.$ac_ext <<_ACEOF
5624 /* end confdefs.h. */
5625 #include </usr/include/readline/readline.h>
5627 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5628 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5630 grep -v '^ *+' conftest.er1 >conftest.err
5632 cat conftest.err >&5
5633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634 (exit $ac_status); } >/dev/null; then
5635 if test -s conftest.err; then
5636 ac_cpp_err=$ac_c_preproc_warn_flag
5643 if test -z "$ac_cpp_err"; then
5644 ac_header_preproc=yes
5646 echo "$as_me: failed program was:" >&5
5647 sed 's/^/| /' conftest.$ac_ext >&5
5649 ac_header_preproc=no
5651 rm -f conftest.err conftest.$ac_ext
5652 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5653 echo "${ECHO_T}$ac_header_preproc" >&6
5655 # So? What about this header?
5656 case $ac_header_compiler:$ac_header_preproc in
5658 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5659 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5660 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5661 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5664 ## ------------------------------------ ##
5665 ## Report this to bug-autoconf@gnu.org. ##
5666 ## ------------------------------------ ##
5669 sed "s/^/$as_me: WARNING: /" >&2
5672 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
5673 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
5674 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
5675 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
5676 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5677 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5680 ## ------------------------------------ ##
5681 ## Report this to bug-autoconf@gnu.org. ##
5682 ## ------------------------------------ ##
5685 sed "s/^/$as_me: WARNING: /" >&2
5688 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5689 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5690 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5691 echo $ECHO_N "(cached) $ECHO_C" >&6
5693 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
5695 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5696 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5699 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
5700 cat >>confdefs.h <<\_ACEOF
5701 #define HAVE_READLINE 1
5705 CONS_INC="-I/usr/include/readline"
5706 CONS_LIBS="-lreadline -ltermcap"
5710 # Did not find standard library, so try Bacula's default
5711 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
5712 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5713 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5714 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5715 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5716 echo $ECHO_N "(cached) $ECHO_C" >&6
5718 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5719 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5721 # Is the header compilable?
5722 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
5723 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
5724 cat >conftest.$ac_ext <<_ACEOF
5725 #line $LINENO "configure"
5728 cat confdefs.h >>conftest.$ac_ext
5729 cat >>conftest.$ac_ext <<_ACEOF
5730 /* end confdefs.h. */
5731 $ac_includes_default
5732 #include <${TOP_DIR}/depkgs/readline/readline.h>
5734 rm -f conftest.$ac_objext
5735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5736 (eval $ac_compile) 2>&5
5738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5739 (exit $ac_status); } &&
5740 { ac_try='test -s conftest.$ac_objext'
5741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745 (exit $ac_status); }; }; then
5746 ac_header_compiler=yes
5748 echo "$as_me: failed program was:" >&5
5749 sed 's/^/| /' conftest.$ac_ext >&5
5751 ac_header_compiler=no
5753 rm -f conftest.$ac_objext conftest.$ac_ext
5754 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5755 echo "${ECHO_T}$ac_header_compiler" >&6
5757 # Is the header present?
5758 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
5759 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
5760 cat >conftest.$ac_ext <<_ACEOF
5761 #line $LINENO "configure"
5764 cat confdefs.h >>conftest.$ac_ext
5765 cat >>conftest.$ac_ext <<_ACEOF
5766 /* end confdefs.h. */
5767 #include <${TOP_DIR}/depkgs/readline/readline.h>
5769 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5770 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5772 grep -v '^ *+' conftest.er1 >conftest.err
5774 cat conftest.err >&5
5775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5776 (exit $ac_status); } >/dev/null; then
5777 if test -s conftest.err; then
5778 ac_cpp_err=$ac_c_preproc_warn_flag
5785 if test -z "$ac_cpp_err"; then
5786 ac_header_preproc=yes
5788 echo "$as_me: failed program was:" >&5
5789 sed 's/^/| /' conftest.$ac_ext >&5
5791 ac_header_preproc=no
5793 rm -f conftest.err conftest.$ac_ext
5794 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5795 echo "${ECHO_T}$ac_header_preproc" >&6
5797 # So? What about this header?
5798 case $ac_header_compiler:$ac_header_preproc in
5800 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5801 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5802 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5803 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5806 ## ------------------------------------ ##
5807 ## Report this to bug-autoconf@gnu.org. ##
5808 ## ------------------------------------ ##
5811 sed "s/^/$as_me: WARNING: /" >&2
5814 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
5815 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
5816 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
5817 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
5818 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5819 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5822 ## ------------------------------------ ##
5823 ## Report this to bug-autoconf@gnu.org. ##
5824 ## ------------------------------------ ##
5827 sed "s/^/$as_me: WARNING: /" >&2
5830 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5831 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5832 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5833 echo $ECHO_N "(cached) $ECHO_C" >&6
5835 eval "$as_ac_Header=$ac_header_preproc"
5837 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5838 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5841 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5842 cat >>confdefs.h <<\_ACEOF
5843 #define HAVE_READLINE 1
5847 CONS_INC="-I${TOP_DIR}/depkgs/readline"
5848 CONS_LIBS="-lreadline -lhistory -ltermcap"
5849 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
5850 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
5854 echo "readline.h not found. readline turned off ..."
5880 # Minimal stuff for readline Makefile configuration
5883 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
5884 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
5885 if test "${ac_cv_header_stat_broken+set}" = set; then
5886 echo $ECHO_N "(cached) $ECHO_C" >&6
5888 cat >conftest.$ac_ext <<_ACEOF
5889 #line $LINENO "configure"
5892 cat confdefs.h >>conftest.$ac_ext
5893 cat >>conftest.$ac_ext <<_ACEOF
5894 /* end confdefs.h. */
5895 #include <sys/types.h>
5896 #include <sys/stat.h>
5898 #if defined(S_ISBLK) && defined(S_IFDIR)
5899 # if S_ISBLK (S_IFDIR)
5904 #if defined(S_ISBLK) && defined(S_IFCHR)
5905 # if S_ISBLK (S_IFCHR)
5910 #if defined(S_ISLNK) && defined(S_IFREG)
5911 # if S_ISLNK (S_IFREG)
5916 #if defined(S_ISSOCK) && defined(S_IFREG)
5917 # if S_ISSOCK (S_IFREG)
5923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5924 $EGREP "You lose" >/dev/null 2>&1; then
5925 ac_cv_header_stat_broken=yes
5927 ac_cv_header_stat_broken=no
5932 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
5933 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
5934 if test $ac_cv_header_stat_broken = yes; then
5936 cat >>confdefs.h <<\_ACEOF
5937 #define STAT_MACROS_BROKEN 1
5948 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5949 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5950 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5951 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5952 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5953 echo $ECHO_N "(cached) $ECHO_C" >&6
5955 cat >conftest.$ac_ext <<_ACEOF
5956 #line $LINENO "configure"
5959 cat confdefs.h >>conftest.$ac_ext
5960 cat >>conftest.$ac_ext <<_ACEOF
5961 /* end confdefs.h. */
5962 #include <sys/types.h>
5974 rm -f conftest.$ac_objext
5975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5976 (eval $ac_compile) 2>&5
5978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5979 (exit $ac_status); } &&
5980 { ac_try='test -s conftest.$ac_objext'
5981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5985 (exit $ac_status); }; }; then
5986 eval "$as_ac_Header=yes"
5988 echo "$as_me: failed program was:" >&5
5989 sed 's/^/| /' conftest.$ac_ext >&5
5991 eval "$as_ac_Header=no"
5993 rm -f conftest.$ac_objext conftest.$ac_ext
5995 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5996 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5997 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5998 cat >>confdefs.h <<_ACEOF
5999 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6002 ac_header_dirent=$ac_hdr; break
6006 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6007 if test $ac_header_dirent = dirent.h; then
6008 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6009 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6010 if test "${ac_cv_search_opendir+set}" = set; then
6011 echo $ECHO_N "(cached) $ECHO_C" >&6
6013 ac_func_search_save_LIBS=$LIBS
6014 ac_cv_search_opendir=no
6015 cat >conftest.$ac_ext <<_ACEOF
6016 #line $LINENO "configure"
6019 cat confdefs.h >>conftest.$ac_ext
6020 cat >>conftest.$ac_ext <<_ACEOF
6021 /* end confdefs.h. */
6023 /* Override any gcc2 internal prototype to avoid an error. */
6027 /* We use char because int might match the return type of a gcc2
6028 builtin and then its argument prototype would still apply. */
6038 rm -f conftest.$ac_objext conftest$ac_exeext
6039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6040 (eval $ac_link) 2>&5
6042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043 (exit $ac_status); } &&
6044 { ac_try='test -s conftest$ac_exeext'
6045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6049 (exit $ac_status); }; }; then
6050 ac_cv_search_opendir="none required"
6052 echo "$as_me: failed program was:" >&5
6053 sed 's/^/| /' conftest.$ac_ext >&5
6056 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6057 if test "$ac_cv_search_opendir" = no; then
6058 for ac_lib in dir; do
6059 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6060 cat >conftest.$ac_ext <<_ACEOF
6061 #line $LINENO "configure"
6064 cat confdefs.h >>conftest.$ac_ext
6065 cat >>conftest.$ac_ext <<_ACEOF
6066 /* end confdefs.h. */
6068 /* Override any gcc2 internal prototype to avoid an error. */
6072 /* We use char because int might match the return type of a gcc2
6073 builtin and then its argument prototype would still apply. */
6083 rm -f conftest.$ac_objext conftest$ac_exeext
6084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6085 (eval $ac_link) 2>&5
6087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6088 (exit $ac_status); } &&
6089 { ac_try='test -s conftest$ac_exeext'
6090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094 (exit $ac_status); }; }; then
6095 ac_cv_search_opendir="-l$ac_lib"
6098 echo "$as_me: failed program was:" >&5
6099 sed 's/^/| /' conftest.$ac_ext >&5
6102 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6105 LIBS=$ac_func_search_save_LIBS
6107 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6108 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6109 if test "$ac_cv_search_opendir" != no; then
6110 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6115 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6116 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6117 if test "${ac_cv_search_opendir+set}" = set; then
6118 echo $ECHO_N "(cached) $ECHO_C" >&6
6120 ac_func_search_save_LIBS=$LIBS
6121 ac_cv_search_opendir=no
6122 cat >conftest.$ac_ext <<_ACEOF
6123 #line $LINENO "configure"
6126 cat confdefs.h >>conftest.$ac_ext
6127 cat >>conftest.$ac_ext <<_ACEOF
6128 /* end confdefs.h. */
6130 /* Override any gcc2 internal prototype to avoid an error. */
6134 /* We use char because int might match the return type of a gcc2
6135 builtin and then its argument prototype would still apply. */
6145 rm -f conftest.$ac_objext conftest$ac_exeext
6146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6147 (eval $ac_link) 2>&5
6149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150 (exit $ac_status); } &&
6151 { ac_try='test -s conftest$ac_exeext'
6152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156 (exit $ac_status); }; }; then
6157 ac_cv_search_opendir="none required"
6159 echo "$as_me: failed program was:" >&5
6160 sed 's/^/| /' conftest.$ac_ext >&5
6163 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6164 if test "$ac_cv_search_opendir" = no; then
6166 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6167 cat >conftest.$ac_ext <<_ACEOF
6168 #line $LINENO "configure"
6171 cat confdefs.h >>conftest.$ac_ext
6172 cat >>conftest.$ac_ext <<_ACEOF
6173 /* end confdefs.h. */
6175 /* Override any gcc2 internal prototype to avoid an error. */
6179 /* We use char because int might match the return type of a gcc2
6180 builtin and then its argument prototype would still apply. */
6190 rm -f conftest.$ac_objext conftest$ac_exeext
6191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6192 (eval $ac_link) 2>&5
6194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195 (exit $ac_status); } &&
6196 { ac_try='test -s conftest$ac_exeext'
6197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201 (exit $ac_status); }; }; then
6202 ac_cv_search_opendir="-l$ac_lib"
6205 echo "$as_me: failed program was:" >&5
6206 sed 's/^/| /' conftest.$ac_ext >&5
6209 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6212 LIBS=$ac_func_search_save_LIBS
6214 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6215 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6216 if test "$ac_cv_search_opendir" != no; then
6217 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6231 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
6233 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6234 echo "$as_me:$LINENO: checking for $ac_func" >&5
6235 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6236 if eval "test \"\${$as_ac_var+set}\" = set"; then
6237 echo $ECHO_N "(cached) $ECHO_C" >&6
6239 cat >conftest.$ac_ext <<_ACEOF
6240 #line $LINENO "configure"
6243 cat confdefs.h >>conftest.$ac_ext
6244 cat >>conftest.$ac_ext <<_ACEOF
6245 /* end confdefs.h. */
6246 /* System header to define __stub macros and hopefully few prototypes,
6247 which can conflict with char $ac_func (); below.
6248 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6249 <limits.h> exists even on freestanding compilers. */
6251 # include <limits.h>
6253 # include <assert.h>
6255 /* Override any gcc2 internal prototype to avoid an error. */
6260 /* We use char because int might match the return type of a gcc2
6261 builtin and then its argument prototype would still apply. */
6263 /* The GNU C library defines this for functions which it implements
6264 to always fail with ENOSYS. Some functions are actually named
6265 something starting with __ and the normal name is an alias. */
6266 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6269 char (*f) () = $ac_func;
6278 return f != $ac_func;
6283 rm -f conftest.$ac_objext conftest$ac_exeext
6284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6285 (eval $ac_link) 2>&5
6287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6288 (exit $ac_status); } &&
6289 { ac_try='test -s conftest$ac_exeext'
6290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294 (exit $ac_status); }; }; then
6295 eval "$as_ac_var=yes"
6297 echo "$as_me: failed program was:" >&5
6298 sed 's/^/| /' conftest.$ac_ext >&5
6300 eval "$as_ac_var=no"
6302 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6304 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6305 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6306 if test `eval echo '${'$as_ac_var'}'` = yes; then
6307 cat >>confdefs.h <<_ACEOF
6308 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6316 for ac_func in nanosleep nl_langinfo
6318 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6319 echo "$as_me:$LINENO: checking for $ac_func" >&5
6320 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6321 if eval "test \"\${$as_ac_var+set}\" = set"; then
6322 echo $ECHO_N "(cached) $ECHO_C" >&6
6324 cat >conftest.$ac_ext <<_ACEOF
6325 #line $LINENO "configure"
6328 cat confdefs.h >>conftest.$ac_ext
6329 cat >>conftest.$ac_ext <<_ACEOF
6330 /* end confdefs.h. */
6331 /* System header to define __stub macros and hopefully few prototypes,
6332 which can conflict with char $ac_func (); below.
6333 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6334 <limits.h> exists even on freestanding compilers. */
6336 # include <limits.h>
6338 # include <assert.h>
6340 /* Override any gcc2 internal prototype to avoid an error. */
6345 /* We use char because int might match the return type of a gcc2
6346 builtin and then its argument prototype would still apply. */
6348 /* The GNU C library defines this for functions which it implements
6349 to always fail with ENOSYS. Some functions are actually named
6350 something starting with __ and the normal name is an alias. */
6351 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6354 char (*f) () = $ac_func;
6363 return f != $ac_func;
6368 rm -f conftest.$ac_objext conftest$ac_exeext
6369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6370 (eval $ac_link) 2>&5
6372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6373 (exit $ac_status); } &&
6374 { ac_try='test -s conftest$ac_exeext'
6375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6379 (exit $ac_status); }; }; then
6380 eval "$as_ac_var=yes"
6382 echo "$as_me: failed program was:" >&5
6383 sed 's/^/| /' conftest.$ac_ext >&5
6385 eval "$as_ac_var=no"
6387 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6389 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6390 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6391 if test `eval echo '${'$as_ac_var'}'` = yes; then
6392 cat >>confdefs.h <<_ACEOF
6393 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6400 for ac_header in varargs.h
6402 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6403 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6404 echo "$as_me:$LINENO: checking for $ac_header" >&5
6405 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6406 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6407 echo $ECHO_N "(cached) $ECHO_C" >&6
6409 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6410 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6412 # Is the header compilable?
6413 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6414 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6415 cat >conftest.$ac_ext <<_ACEOF
6416 #line $LINENO "configure"
6419 cat confdefs.h >>conftest.$ac_ext
6420 cat >>conftest.$ac_ext <<_ACEOF
6421 /* end confdefs.h. */
6422 $ac_includes_default
6423 #include <$ac_header>
6425 rm -f conftest.$ac_objext
6426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6427 (eval $ac_compile) 2>&5
6429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430 (exit $ac_status); } &&
6431 { ac_try='test -s conftest.$ac_objext'
6432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436 (exit $ac_status); }; }; then
6437 ac_header_compiler=yes
6439 echo "$as_me: failed program was:" >&5
6440 sed 's/^/| /' conftest.$ac_ext >&5
6442 ac_header_compiler=no
6444 rm -f conftest.$ac_objext conftest.$ac_ext
6445 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6446 echo "${ECHO_T}$ac_header_compiler" >&6
6448 # Is the header present?
6449 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6450 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6451 cat >conftest.$ac_ext <<_ACEOF
6452 #line $LINENO "configure"
6455 cat confdefs.h >>conftest.$ac_ext
6456 cat >>conftest.$ac_ext <<_ACEOF
6457 /* end confdefs.h. */
6458 #include <$ac_header>
6460 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6461 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6463 grep -v '^ *+' conftest.er1 >conftest.err
6465 cat conftest.err >&5
6466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6467 (exit $ac_status); } >/dev/null; then
6468 if test -s conftest.err; then
6469 ac_cpp_err=$ac_c_preproc_warn_flag
6476 if test -z "$ac_cpp_err"; then
6477 ac_header_preproc=yes
6479 echo "$as_me: failed program was:" >&5
6480 sed 's/^/| /' conftest.$ac_ext >&5
6482 ac_header_preproc=no
6484 rm -f conftest.err conftest.$ac_ext
6485 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6486 echo "${ECHO_T}$ac_header_preproc" >&6
6488 # So? What about this header?
6489 case $ac_header_compiler:$ac_header_preproc in
6491 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6492 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6493 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6494 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6497 ## ------------------------------------ ##
6498 ## Report this to bug-autoconf@gnu.org. ##
6499 ## ------------------------------------ ##
6502 sed "s/^/$as_me: WARNING: /" >&2
6505 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6506 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6507 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6508 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6509 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6510 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6513 ## ------------------------------------ ##
6514 ## Report this to bug-autoconf@gnu.org. ##
6515 ## ------------------------------------ ##
6518 sed "s/^/$as_me: WARNING: /" >&2
6521 echo "$as_me:$LINENO: checking for $ac_header" >&5
6522 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6523 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6524 echo $ECHO_N "(cached) $ECHO_C" >&6
6526 eval "$as_ac_Header=$ac_header_preproc"
6528 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6529 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6532 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6533 cat >>confdefs.h <<_ACEOF
6534 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6542 # End of readline/conio stuff
6543 # -----------------------------------------------------------------------
6546 # ---------------------------------------------------
6547 # Check for GMP support/directory
6548 # ---------------------------------------------------
6552 # [ --with-gmp[=DIR] Specify gmp library directory],
6554 # case "$with_gmp" in
6557 # if test "$with_gmp" != "yes"; then
6558 # GMP_INC="-I$with_gmp"
6560 # GMP_LDFLAGS="-L$with_gmp"
6562 # with_gmp="/usr/include"
6564 # AC_CHECK_HEADER($with_gmp/gmp.h,
6565 # [ AC_MSG_RESULT(yes)
6566 # AC_DEFINE(HAVE_GMP)
6570 # [ AC_MSG_ERROR([*** gmp library missing])
6576 # # check for standard gmp library
6577 # AC_CHECK_HEADER(/usr/include/gmp.h,
6578 # [ AC_MSG_RESULT(yes)
6579 # AC_DEFINE(HAVE_GMP)
6584 # # Did not find standard library, so use our own
6585 # AC_MSG_RESULT(yes)
6586 # AC_DEFINE(HAVE_GMP)
6589 # GMP_INC="-I${TOP_DIR}/depkgs/gmp"
6591 # GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
6592 # GMP_SRC="${TOP_DIR}/depkgs/gmp"
6598 #AC_SUBST(GMP_LDFLAGS)
6602 # -----------------------------------------------------------------------
6605 # ---------------------------------------------------
6606 # Check for CWEB support/directory
6607 # ---------------------------------------------------
6612 # [ --with-cweb[=DIR] Specify cweb library directory],
6614 # case "$with_cweb" in
6617 # if test "$with_cweb" != "yes"; then
6618 # CWEB_INC="-I$with_cweb"
6619 # CWEB_LIBS="-lcweb"
6620 # CWEB_LDFLAGS="-L$with_cweb"
6622 # with_cweb="/usr/include"
6624 # AC_CHECK_HEADER($with_cweb/cweb.h,
6625 # [ AC_MSG_RESULT(yes)
6626 # AC_DEFINE(HAVE_CWEB)
6627 # CWEB_LIBS="-lcweb"
6630 # [ AC_MSG_ERROR([*** cweb library missing])
6636 # # check for standard cweb library
6637 # AC_CHECK_HEADER(/usr/include/cweb.h,
6638 # [ AC_MSG_RESULT(yes)
6639 # AC_DEFINE(HAVE_CWEB)
6642 # CWEB_LIBS="-lcweb"
6644 # # Did not find starndard library, so use our own
6645 # AC_MSG_RESULT(yes)
6646 # AC_DEFINE(HAVE_CWEB)
6649 # CWEB=${TOP_DIR}/depkgs/cweb
6650 # CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
6651 # CWEB_LIBS="-lcweb"
6652 # CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
6653 # CWEB_SRC="${TOP_DIR}/depkgs/cweb"
6659 #AC_SUBST(CWEB_LIBS)
6660 #AC_SUBST(CWEB_LDFLAGS)
6664 # -----------------------------------------------------------------------
6668 # -----------------------------------------------------------
6669 # Check whether user wants TCP wrappers support (default off)
6670 # -----------------------------------------------------------
6673 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
6674 if test "${with_tcp_wrappers+set}" = set; then
6675 withval="$with_tcp_wrappers"
6677 if test "x$withval" != "xno" ; then
6679 LIBS="$saved_LIBS -lwrap"
6680 echo "$as_me:$LINENO: checking for libwrap" >&5
6681 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
6682 cat >conftest.$ac_ext <<_ACEOF
6683 #line $LINENO "configure"
6686 cat confdefs.h >>conftest.$ac_ext
6687 cat >>conftest.$ac_ext <<_ACEOF
6688 /* end confdefs.h. */
6690 int deny_severity = 0;
6691 int allow_severity = 0;
6692 struct request_info *req;
6701 rm -f conftest.$ac_objext conftest$ac_exeext
6702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6703 (eval $ac_link) 2>&5
6705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706 (exit $ac_status); } &&
6707 { ac_try='test -s conftest$ac_exeext'
6708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712 (exit $ac_status); }; }; then
6714 echo "$as_me:$LINENO: result: yes" >&5
6715 echo "${ECHO_T}yes" >&6
6716 cat >>confdefs.h <<\_ACEOF
6717 #define HAVE_LIBWRAP 1
6723 echo "$as_me: failed program was:" >&5
6724 sed 's/^/| /' conftest.$ac_ext >&5
6727 LIBS="$saved_LIBS -lwrap -lnsl"
6728 cat >conftest.$ac_ext <<_ACEOF
6729 #line $LINENO "configure"
6732 cat confdefs.h >>conftest.$ac_ext
6733 cat >>conftest.$ac_ext <<_ACEOF
6734 /* end confdefs.h. */
6736 int deny_severity = 0;
6737 int allow_severity = 0;
6738 struct request_info *req;
6747 rm -f conftest.$ac_objext conftest$ac_exeext
6748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6749 (eval $ac_link) 2>&5
6751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6752 (exit $ac_status); } &&
6753 { ac_try='test -s conftest$ac_exeext'
6754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6758 (exit $ac_status); }; }; then
6760 echo "$as_me:$LINENO: result: yes" >&5
6761 echo "${ECHO_T}yes" >&6
6762 cat >>confdefs.h <<\_ACEOF
6763 #define HAVE_LIBWRAP 1
6769 echo "$as_me: failed program was:" >&5
6770 sed 's/^/| /' conftest.$ac_ext >&5
6772 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
6773 echo "$as_me: error: *** libwrap missing" >&2;}
6774 { (exit 1); exit 1; }; }
6777 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6780 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6786 # ------------------------------------------
6787 # Where to place working dir
6788 # ------------------------------------------
6789 working_dir=`eval echo ${prefix}/var/bacula/working`
6791 # Check whether --with-working-dir or --without-working-dir was given.
6792 if test "${with_working_dir+set}" = set; then
6793 withval="$with_working_dir"
6795 if test "x$withval" != "xno" ; then
6796 working_dir=$withval
6805 # ------------------------------------------
6806 # Where to place scriptdir (script files)
6807 # ------------------------------------------
6808 scriptdir=`eval echo ${sysconfdir}`
6810 # Check whether --with-scriptdir or --without-scriptdir was given.
6811 if test "${with_scriptdir+set}" = set; then
6812 withval="$with_scriptdir"
6814 if test "x$withval" != "xno" ; then
6824 # ------------------------------------------
6825 # Where to send dump email
6826 # ------------------------------------------
6827 dump_email=root@localhost
6829 # Check whether --with-dump-email or --without-dump-email was given.
6830 if test "${with_dump_email+set}" = set; then
6831 withval="$with_dump_email"
6833 if test "x$withval" != "xno" ; then
6842 # ------------------------------------------
6843 # Where to send job email
6844 # ------------------------------------------
6845 job_email=root@localhost
6847 # Check whether --with-job-email or --without-job-email was given.
6848 if test "${with_job_email+set}" = set; then
6849 withval="$with_job_email"
6851 if test "x$withval" != "xno" ; then
6860 # ------------------------------------------
6861 # Where to find smtp host
6862 # ------------------------------------------
6865 # Check whether --with-smtp_host or --without-smtp_host was given.
6866 if test "${with_smtp_host+set}" = set; then
6867 withval="$with_smtp_host"
6869 if test "x$withval" != "xno" ; then
6879 # ------------------------------------
6880 # Where to place pid files
6881 # ------------------------------------
6884 # Check whether --with-pid-dir or --without-pid-dir was given.
6885 if test "${with_pid_dir+set}" = set; then
6886 withval="$with_pid_dir"
6888 if test "x$withval" != "xno" ; then
6895 cat >>confdefs.h <<_ACEOF
6896 #define _PATH_BACULA_PIDDIR "$piddir"
6902 # ------------------------------------
6903 # Where to place subsys "lock file"
6904 # ------------------------------------
6905 subsysdir=/var/run/subsys
6907 # Check whether --with-subsys-dir or --without-subsys-dir was given.
6908 if test "${with_subsys_dir+set}" = set; then
6909 withval="$with_subsys_dir"
6911 if test "x$withval" != "xno" ; then
6922 # ------------------------------------
6923 # Where to start assigning ports
6924 # ------------------------------------
6927 # Check whether --with-baseport or --without-baseport was given.
6928 if test "${with_baseport+set}" = set; then
6929 withval="$with_baseport"
6931 if test "x$withval" != "xno" ; then
6939 dir_port=`expr $baseport`
6940 fd_port=`expr $baseport + 1`
6941 sd_port=`expr $fd_port + 1`
6948 # ------------------------------------------
6949 # Generate passwords
6950 # ------------------------------------------
6953 # Check whether --with-dir-password or --without-dir-password was given.
6954 if test "${with_dir_password+set}" = set; then
6955 withval="$with_dir_password"
6957 if test "x$withval" != "xno" ; then
6958 dir_password=$withval
6964 if test "x$dir_password" = "x" ; then
6965 if test "x$OPENSSL" = "xnone" ; then
6966 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
6967 key=`autoconf/randpass 33`
6969 key=`openssl rand -base64 33`
6976 # Check whether --with-fd-password or --without-fd-password was given.
6977 if test "${with_fd_password+set}" = set; then
6978 withval="$with_fd_password"
6980 if test "x$withval" != "xno" ; then
6981 fd_password=$withval
6987 if test "x$fd_password" = "x" ; then
6988 if test "x$OPENSSL" = "xnone" ; then
6989 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
6990 key=`autoconf/randpass 37`
6992 key=`openssl rand -base64 33`
6999 # Check whether --with-sd-password or --without-sd-password was given.
7000 if test "${with_sd_password+set}" = set; then
7001 withval="$with_sd_password"
7003 if test "x$withval" != "xno" ; then
7004 sd_password=$withval
7010 if test "x$sd_password" = "x" ; then
7011 if test "x$OPENSSL" = "xnone" ; then
7012 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
7013 key=`autoconf/randpass 41`
7015 key=`openssl rand -base64 33`
7027 # Handle users and groups for each daemon
7031 # Check whether --with-dir_user or --without-dir_user was given.
7032 if test "${with_dir_user+set}" = set; then
7033 withval="$with_dir_user"
7035 if test "x$withval" != "x" ; then
7044 # Check whether --with-dir_group or --without-dir_group was given.
7045 if test "${with_dir_group+set}" = set; then
7046 withval="$with_dir_group"
7048 if test "x$withval" != "x" ; then
7057 # Check whether --with-sd_user or --without-sd_user was given.
7058 if test "${with_sd_user+set}" = set; then
7059 withval="$with_sd_user"
7061 if test "x$withval" != "x" ; then
7070 # Check whether --with-sd_group or --without-sd_group was given.
7071 if test "${with_sd_group+set}" = set; then
7072 withval="$with_sd_group"
7074 if test "x$withval" != "x" ; then
7083 # Check whether --with-fd_user or --without-fd_user was given.
7084 if test "${with_fd_user+set}" = set; then
7085 withval="$with_fd_user"
7087 if test "x$withval" != "x" ; then
7096 # Check whether --with-fd_group or --without-fd_group was given.
7097 if test "${with_fd_group+set}" = set; then
7098 withval="$with_fd_group"
7100 if test "x$withval" != "x" ; then
7118 # allow setting default executable permissions
7122 # Check whether --with-sbin-perm or --without-sbin-perm was given.
7123 if test "${with_sbin_perm+set}" = set; then
7124 withval="$with_sbin_perm"
7126 if test "x$withval" != "x" ; then
7135 # ------------------------------------------------
7136 # Bacula check for various SQL database engines
7137 # ------------------------------------------------
7140 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
7141 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
7143 # Check whether --with-postgresql or --without-postgresql was given.
7144 if test "${with_postgresql+set}" = set; then
7145 withval="$with_postgresql"
7147 if test "$withval" != "no"; then
7148 if test "$db_found" = "yes"; then
7149 echo "$as_me:$LINENO: result: error" >&5
7150 echo "${ECHO_T}error" >&6
7151 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
7152 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
7153 { (exit 1); exit 1; }; };
7155 if test "$withval" = "yes"; then
7156 if test -f /usr/local/include/libpq-fe.h; then
7157 POSTGRESQL_INCDIR=/usr/local/include
7158 POSTGRESQL_LIBDIR=/usr/local/lib
7159 POSTGRESQL_BINDIR=/usr/local/bin
7160 elif test -f /usr/include/libpq-fe.h; then
7161 POSTGRESQL_INCDIR=/usr/include
7162 POSTGRESQL_LIBDIR=/usr/lib
7163 POSTGRESQL_BINDIR=/usr/bin
7164 elif test -f /usr/include/pgsql/libpq-fe.h; then
7165 POSTGRESQL_INCDIR=/usr/include/pgsql
7166 POSTGRESQL_LIBDIR=/usr/lib/pgsql
7167 POSTGRESQL_BINDIR=/usr/bin
7168 elif test -f /usr/include/postgresql/libpq-fe.h; then
7169 POSTGRESQL_INCDIR=/usr/include/postgresql
7170 POSTGRESQL_LIBDIR=/usr/lib/postgresql
7171 POSTGRESQL_BINDIR=/usr/bin
7173 echo "$as_me:$LINENO: result: no" >&5
7174 echo "${ECHO_T}no" >&6
7175 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
7176 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
7177 { (exit 1); exit 1; }; }
7179 elif test -f $withval/include/libpq-fe.h; then
7180 POSTGRESQL_INCDIR=$withval/include
7181 POSTGRESQL_LIBDIR=$withval/lib
7182 POSTGRESQL_BINDIR=$withval/bin
7184 echo "$as_me:$LINENO: result: no" >&5
7185 echo "${ECHO_T}no" >&6
7186 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
7187 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
7188 { (exit 1); exit 1; }; }
7190 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
7191 echo "$as_me:$LINENO: checking for crypt" >&5
7192 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
7193 if test "${ac_cv_func_crypt+set}" = set; then
7194 echo $ECHO_N "(cached) $ECHO_C" >&6
7196 cat >conftest.$ac_ext <<_ACEOF
7197 #line $LINENO "configure"
7200 cat confdefs.h >>conftest.$ac_ext
7201 cat >>conftest.$ac_ext <<_ACEOF
7202 /* end confdefs.h. */
7203 /* System header to define __stub macros and hopefully few prototypes,
7204 which can conflict with char crypt (); below.
7205 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7206 <limits.h> exists even on freestanding compilers. */
7208 # include <limits.h>
7210 # include <assert.h>
7212 /* Override any gcc2 internal prototype to avoid an error. */
7217 /* We use char because int might match the return type of a gcc2
7218 builtin and then its argument prototype would still apply. */
7220 /* The GNU C library defines this for functions which it implements
7221 to always fail with ENOSYS. Some functions are actually named
7222 something starting with __ and the normal name is an alias. */
7223 #if defined (__stub_crypt) || defined (__stub___crypt)
7226 char (*f) () = crypt;
7240 rm -f conftest.$ac_objext conftest$ac_exeext
7241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7242 (eval $ac_link) 2>&5
7244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7245 (exit $ac_status); } &&
7246 { ac_try='test -s conftest$ac_exeext'
7247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7251 (exit $ac_status); }; }; then
7252 ac_cv_func_crypt=yes
7254 echo "$as_me: failed program was:" >&5
7255 sed 's/^/| /' conftest.$ac_ext >&5
7259 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7261 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
7262 echo "${ECHO_T}$ac_cv_func_crypt" >&6
7263 if test $ac_cv_func_crypt = yes; then
7266 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
7267 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
7268 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
7269 echo $ECHO_N "(cached) $ECHO_C" >&6
7271 ac_check_lib_save_LIBS=$LIBS
7272 LIBS="-lcrypt $LIBS"
7273 cat >conftest.$ac_ext <<_ACEOF
7274 #line $LINENO "configure"
7277 cat confdefs.h >>conftest.$ac_ext
7278 cat >>conftest.$ac_ext <<_ACEOF
7279 /* end confdefs.h. */
7281 /* Override any gcc2 internal prototype to avoid an error. */
7285 /* We use char because int might match the return type of a gcc2
7286 builtin and then its argument prototype would still apply. */
7296 rm -f conftest.$ac_objext conftest$ac_exeext
7297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7298 (eval $ac_link) 2>&5
7300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7301 (exit $ac_status); } &&
7302 { ac_try='test -s conftest$ac_exeext'
7303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7307 (exit $ac_status); }; }; then
7308 ac_cv_lib_crypt_crypt=yes
7310 echo "$as_me: failed program was:" >&5
7311 sed 's/^/| /' conftest.$ac_ext >&5
7313 ac_cv_lib_crypt_crypt=no
7315 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7316 LIBS=$ac_check_lib_save_LIBS
7318 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
7319 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
7320 if test $ac_cv_lib_crypt_crypt = yes; then
7321 POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
7326 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
7327 SQL_LFLAGS=$POSTGRESQL_LFLAGS
7328 SQL_BINDIR=$POSTGRESQL_BINDIR
7329 cat >>confdefs.h <<\_ACEOF
7330 #define HAVE_POSTGRESQL 1
7333 echo "$as_me:$LINENO: result: yes" >&5
7334 echo "${ECHO_T}yes" >&6
7336 support_postgresql=yes
7340 echo "$as_me:$LINENO: result: no" >&5
7341 echo "${ECHO_T}no" >&6
7346 echo "$as_me:$LINENO: result: no" >&5
7347 echo "${ECHO_T}no" >&6
7358 echo "$as_me:$LINENO: checking for MySQL support" >&5
7359 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
7361 # Check whether --with-mysql or --without-mysql was given.
7362 if test "${with_mysql+set}" = set; then
7363 withval="$with_mysql"
7365 if test "$withval" != "no"; then
7366 if test "$withval" = "yes"; then
7367 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7368 MYSQL_INCDIR=/usr/local/mysql/include/mysql
7369 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7370 MYSQL_BINDIR=/usr/local/mysql/bin
7371 elif test -f /usr/include/mysql/mysql.h; then
7372 MYSQL_INCDIR=/usr/include/mysql
7373 MYSQL_LIBDIR=/usr/lib/mysql
7374 MYSQL_BINDIR=/usr/bin
7375 elif test -f /usr/include/mysql.h; then
7376 MYSQL_INCDIR=/usr/include
7377 MYSQL_LIBDIR=/usr/lib
7378 MYSQL_BINDIR=/usr/bin
7379 elif test -f /usr/local/include/mysql/mysql.h; then
7380 MYSQL_INCDIR=/usr/local/include/mysql
7381 MYSQL_LIBDIR=/usr/local/lib/mysql
7382 MYSQL_BINDIR=/usr/local/bin
7383 elif test -f /usr/local/include/mysql.h; then
7384 MYSQL_INCDIR=/usr/local/include
7385 MYSQL_LIBDIR=/usr/local/lib
7386 MYSQL_BINDIR=/usr/local/bin
7388 echo "$as_me:$LINENO: result: no" >&5
7389 echo "${ECHO_T}no" >&6
7390 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7391 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7392 { (exit 1); exit 1; }; }
7395 if test -f $withval/include/mysql/mysql.h; then
7396 MYSQL_INCDIR=$withval/include/mysql
7397 MYSQL_LIBDIR=$withval/lib/mysql
7398 MYSQL_BINDIR=$withval/bin
7399 elif test -f $withval/include/mysql.h; then
7400 MYSQL_INCDIR=$withval/include
7401 MYSQL_LIBDIR=$withval/lib
7402 MYSQL_BINDIR=$withval/bin
7404 echo "$as_me:$LINENO: result: no" >&5
7405 echo "${ECHO_T}no" >&6
7406 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7407 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7408 { (exit 1); exit 1; }; }
7411 SQL_INCLUDE=-I$MYSQL_INCDIR
7412 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
7413 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
7414 cat >>confdefs.h <<\_ACEOF
7415 #define HAVE_THREAD_SAFE_MYSQL 1
7419 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
7421 SQL_BINDIR=$MYSQL_BINDIR
7423 cat >>confdefs.h <<\_ACEOF
7424 #define HAVE_MYSQL 1
7427 echo "$as_me:$LINENO: result: yes" >&5
7428 echo "${ECHO_T}yes" >&6
7435 echo "$as_me:$LINENO: result: no" >&5
7436 echo "${ECHO_T}no" >&6
7443 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
7444 if test "${with_embedded_mysql+set}" = set; then
7445 withval="$with_embedded_mysql"
7447 if test "$withval" != "no"; then
7448 if test "$withval" = "yes"; then
7449 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7450 MYSQL_INCDIR=/usr/local/mysql/include/mysql
7451 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7452 MYSQL_BINDIR=/usr/local/mysql/bin
7453 elif test -f /usr/include/mysql/mysql.h; then
7454 MYSQL_INCDIR=/usr/include/mysql
7455 MYSQL_LIBDIR=/usr/lib/mysql
7456 MYSQL_BINDIR=/usr/bin
7457 elif test -f /usr/include/mysql.h; then
7458 MYSQL_INCDIR=/usr/include
7459 MYSQL_LIBDIR=/usr/lib
7460 MYSQL_BINDIR=/usr/bin
7461 elif test -f /usr/local/include/mysql/mysql.h; then
7462 MYSQL_INCDIR=/usr/local/include/mysql
7463 MYSQL_LIBDIR=/usr/local/lib/mysql
7464 MYSQL_BINDIR=/usr/local/bin
7465 elif test -f /usr/local/include/mysql.h; then
7466 MYSQL_INCDIR=/usr/local/include
7467 MYSQL_LIBDIR=/usr/local/lib
7468 MYSQL_BINDIR=/usr/local/bin
7470 echo "$as_me:$LINENO: result: no" >&5
7471 echo "${ECHO_T}no" >&6
7472 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7473 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7474 { (exit 1); exit 1; }; }
7477 if test -f $withval/include/mysql/mysql.h; then
7478 MYSQL_INCDIR=$withval/include/mysql
7479 MYSQL_LIBDIR=$withval/lib/mysql
7480 MYSQL_BINDIR=$withval/bin
7481 elif test -f $withval/include/mysql.h; then
7482 MYSQL_INCDIR=$withval/include
7483 MYSQL_LIBDIR=$withval/lib
7484 MYSQL_BINDIR=$withval/bin
7486 echo "$as_me:$LINENO: result: no" >&5
7487 echo "${ECHO_T}no" >&6
7488 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7489 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7490 { (exit 1); exit 1; }; }
7493 SQL_INCLUDE=-I$MYSQL_INCDIR
7494 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
7495 SQL_BINDIR=$MYSQL_BINDIR
7497 cat >>confdefs.h <<\_ACEOF
7498 #define HAVE_MYSQL 1
7501 cat >>confdefs.h <<\_ACEOF
7502 #define HAVE_EMBEDDED_MYSQL 1
7505 echo "$as_me:$LINENO: result: yes" >&5
7506 echo "${ECHO_T}yes" >&6
7513 echo "$as_me:$LINENO: result: no" >&5
7514 echo "${ECHO_T}no" >&6
7529 echo "$as_me:$LINENO: checking for SQLite support" >&5
7530 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
7532 # Check whether --with-sqlite or --without-sqlite was given.
7533 if test "${with_sqlite+set}" = set; then
7534 withval="$with_sqlite"
7536 if test "$withval" != "no"; then
7537 if test "$withval" = "yes"; then
7538 if test -f /usr/local/include/sqlite.h; then
7539 SQLITE_INCDIR=/usr/local/include
7540 SQLITE_LIBDIR=/usr/local/lib
7541 SQLITE_BINDIR=/usr/local/bin
7542 elif test -f /usr/include/sqlite.h; then
7543 SQLITE_INCDIR=/usr/include
7544 SQLITE_LIBDIR=/usr/lib
7545 SQLITE_BINDIR=/usr/bin
7547 echo "$as_me:$LINENO: result: no" >&5
7548 echo "${ECHO_T}no" >&6
7549 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
7550 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
7551 { (exit 1); exit 1; }; }
7554 if test -f $withval/sqlite.h; then
7555 SQLITE_INCDIR=$withval
7556 SQLITE_LIBDIR=$withval
7557 SQLITE_BINDIR=$withval
7559 echo "$as_me:$LINENO: result: no" >&5
7560 echo "${ECHO_T}no" >&6
7561 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
7562 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
7563 { (exit 1); exit 1; }; }
7566 SQL_INCLUDE=-I$SQLITE_INCDIR
7567 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
7568 SQL_BINDIR=$SQLITE_BINDIR
7570 cat >>confdefs.h <<\_ACEOF
7571 #define HAVE_SQLITE 1
7574 echo "$as_me:$LINENO: result: yes" >&5
7575 echo "${ECHO_T}yes" >&6
7582 echo "$as_me:$LINENO: result: no" >&5
7583 echo "${ECHO_T}no" >&6
7588 echo "$as_me:$LINENO: result: no" >&5
7589 echo "${ECHO_T}no" >&6
7601 cat >>confdefs.h <<\_ACEOF
7602 #define PROTOTYPES 1
7606 if test -z "$CFLAGS"; then
7607 if test -z "$CCOPTS"; then
7616 largefile_support="no"
7618 # Check whether --enable-largefile or --disable-largefile was given.
7619 if test "${enable_largefile+set}" = set; then
7620 enableval="$enable_largefile"
7623 if test "$enable_largefile" != no; then
7624 if test -n "$ac_tool_prefix"; then
7625 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
7626 set dummy ${ac_tool_prefix}getconf; ac_word=$2
7627 echo "$as_me:$LINENO: checking for $ac_word" >&5
7628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7629 if test "${ac_cv_prog_GETCONF+set}" = set; then
7630 echo $ECHO_N "(cached) $ECHO_C" >&6
7632 if test -n "$GETCONF"; then
7633 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
7635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7639 test -z "$as_dir" && as_dir=.
7640 for ac_exec_ext in '' $ac_executable_extensions; do
7641 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7642 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
7643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7651 GETCONF=$ac_cv_prog_GETCONF
7652 if test -n "$GETCONF"; then
7653 echo "$as_me:$LINENO: result: $GETCONF" >&5
7654 echo "${ECHO_T}$GETCONF" >&6
7656 echo "$as_me:$LINENO: result: no" >&5
7657 echo "${ECHO_T}no" >&6
7661 if test -z "$ac_cv_prog_GETCONF"; then
7662 ac_ct_GETCONF=$GETCONF
7663 # Extract the first word of "getconf", so it can be a program name with args.
7664 set dummy getconf; ac_word=$2
7665 echo "$as_me:$LINENO: checking for $ac_word" >&5
7666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7667 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
7668 echo $ECHO_N "(cached) $ECHO_C" >&6
7670 if test -n "$ac_ct_GETCONF"; then
7671 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
7673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7677 test -z "$as_dir" && as_dir=.
7678 for ac_exec_ext in '' $ac_executable_extensions; do
7679 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7680 ac_cv_prog_ac_ct_GETCONF="getconf"
7681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7689 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
7690 if test -n "$ac_ct_GETCONF"; then
7691 echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
7692 echo "${ECHO_T}$ac_ct_GETCONF" >&6
7694 echo "$as_me:$LINENO: result: no" >&5
7695 echo "${ECHO_T}no" >&6
7698 GETCONF=$ac_ct_GETCONF
7700 GETCONF="$ac_cv_prog_GETCONF"
7703 echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
7704 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
7705 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
7706 echo $ECHO_N "(cached) $ECHO_C" >&6
7708 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
7709 ac_cv_sys_largefile_CFLAGS=no
7711 # IRIX 6.2 and later require cc -n32.
7712 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
7713 if test "$GCC" != yes; then
7714 ac_cv_sys_largefile_CFLAGS=-n32
7717 CC="$CC $ac_cv_sys_largefile_CFLAGS"
7718 cat >conftest.$ac_ext <<_ACEOF
7719 #line $LINENO "configure"
7722 cat confdefs.h >>conftest.$ac_ext
7723 cat >>conftest.$ac_ext <<_ACEOF
7724 /* end confdefs.h. */
7734 rm -f conftest.$ac_objext conftest$ac_exeext
7735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7736 (eval $ac_link) 2>&5
7738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7739 (exit $ac_status); } &&
7740 { ac_try='test -s conftest$ac_exeext'
7741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7745 (exit $ac_status); }; }; then
7748 echo "$as_me: failed program was:" >&5
7749 sed 's/^/| /' conftest.$ac_ext >&5
7751 ac_cv_sys_largefile_CFLAGS=no
7753 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7758 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
7759 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
7760 echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
7761 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
7762 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
7763 echo $ECHO_N "(cached) $ECHO_C" >&6
7765 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
7766 ac_cv_sys_largefile_LDFLAGS=no
7770 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
7771 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
7772 echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
7773 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
7774 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
7775 echo $ECHO_N "(cached) $ECHO_C" >&6
7777 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
7778 ac_cv_sys_largefile_LIBS=no
7782 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
7783 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
7785 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7788 -D_FILE_OFFSET_BITS=*) ;;
7789 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
7790 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
7796 '') CPPFLAGS="$ac_flag" ;;
7797 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
7805 '') CFLAGS="$ac_flag" ;;
7806 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
7811 case "$ac_cv_sys_largefile_LDFLAGS" in
7815 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
7816 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
7819 case "$ac_cv_sys_largefile_LIBS" in
7823 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
7824 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
7827 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
7828 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
7829 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
7830 echo $ECHO_N "(cached) $ECHO_C" >&6
7832 ac_cv_sys_file_offset_bits=no
7834 # HP-UX 10.20 and later
7835 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7836 ac_cv_sys_file_offset_bits=64 ;;
7838 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7840 -D_FILE_OFFSET_BITS)
7841 ac_cv_sys_file_offset_bits=1 ;;
7842 -D_FILE_OFFSET_BITS=*)
7843 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7848 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
7849 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
7850 if test "$ac_cv_sys_file_offset_bits" != no; then
7852 cat >>confdefs.h <<_ACEOF
7853 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7857 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
7858 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
7859 if test "${ac_cv_sys_largefile_source+set}" = set; then
7860 echo $ECHO_N "(cached) $ECHO_C" >&6
7862 ac_cv_sys_largefile_source=no
7864 # HP-UX 10.20 and later
7865 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7866 ac_cv_sys_largefile_source=1 ;;
7868 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7870 -D_LARGEFILE_SOURCE)
7871 ac_cv_sys_largefile_source=1 ;;
7872 -D_LARGEFILE_SOURCE=*)
7873 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7878 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
7879 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
7880 if test "$ac_cv_sys_largefile_source" != no; then
7882 cat >>confdefs.h <<_ACEOF
7883 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
7887 echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
7888 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
7889 if test "${ac_cv_sys_large_files+set}" = set; then
7890 echo $ECHO_N "(cached) $ECHO_C" >&6
7892 ac_cv_sys_large_files=no
7895 aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
7896 ac_cv_sys_large_files=1 ;;
7898 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7901 ac_cv_sys_large_files=1 ;;
7903 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7908 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
7909 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
7910 if test "$ac_cv_sys_large_files" != no; then
7912 cat >>confdefs.h <<_ACEOF
7913 #define _LARGE_FILES $ac_cv_sys_large_files
7921 echo "$as_me:$LINENO: checking for X" >&5
7922 echo $ECHO_N "checking for X... $ECHO_C" >&6
7925 # Check whether --with-x or --without-x was given.
7926 if test "${with_x+set}" = set; then
7930 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7931 if test "x$with_x" = xno; then
7932 # The user explicitly disabled X.
7935 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7936 # Both variables are already set.
7939 if test "${ac_cv_have_x+set}" = set; then
7940 echo $ECHO_N "(cached) $ECHO_C" >&6
7942 # One or both of the vars are not set, and there is no cached value.
7943 ac_x_includes=no ac_x_libraries=no
7945 if mkdir conftest.dir; then
7947 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7948 cat >Imakefile <<'_ACEOF'
7950 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7952 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7953 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7954 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7955 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7956 for ac_extension in a so sl; do
7957 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7958 test -f $ac_im_libdir/libX11.$ac_extension; then
7959 ac_im_usrlibdir=$ac_im_libdir; break
7962 # Screen out bogus values from the imake configuration. They are
7963 # bogus both because they are the default anyway, and because
7964 # using them would break gcc on systems where it needs fixed includes.
7965 case $ac_im_incroot in
7967 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7969 case $ac_im_usrlibdir in
7971 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7978 # Standard set of common directories for X headers.
7979 # Check X11 before X11Rn because it is often a symlink to the current release.
7991 /usr/local/X11/include
7992 /usr/local/X11R6/include
7993 /usr/local/X11R5/include
7994 /usr/local/X11R4/include
7996 /usr/local/include/X11
7997 /usr/local/include/X11R6
7998 /usr/local/include/X11R5
7999 /usr/local/include/X11R4
8003 /usr/XFree86/include/X11
8007 /usr/unsupported/include
8009 /usr/local/x11r5/include
8010 /usr/lpp/Xamples/include
8012 /usr/openwin/include
8013 /usr/openwin/share/include'
8015 if test "$ac_x_includes" = no; then
8016 # Guess where to find include files, by looking for Intrinsic.h.
8017 # First, try using that file with no special directory specified.
8018 cat >conftest.$ac_ext <<_ACEOF
8019 #line $LINENO "configure"
8022 cat confdefs.h >>conftest.$ac_ext
8023 cat >>conftest.$ac_ext <<_ACEOF
8024 /* end confdefs.h. */
8025 #include <X11/Intrinsic.h>
8027 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8028 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8030 grep -v '^ *+' conftest.er1 >conftest.err
8032 cat conftest.err >&5
8033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8034 (exit $ac_status); } >/dev/null; then
8035 if test -s conftest.err; then
8036 ac_cpp_err=$ac_c_preproc_warn_flag
8043 if test -z "$ac_cpp_err"; then
8044 # We can compile using X headers with no special include directory.
8047 echo "$as_me: failed program was:" >&5
8048 sed 's/^/| /' conftest.$ac_ext >&5
8050 for ac_dir in $ac_x_header_dirs; do
8051 if test -r "$ac_dir/X11/Intrinsic.h"; then
8052 ac_x_includes=$ac_dir
8057 rm -f conftest.err conftest.$ac_ext
8058 fi # $ac_x_includes = no
8060 if test "$ac_x_libraries" = no; then
8061 # Check for the libraries.
8062 # See if we find them without any special options.
8063 # Don't add to $LIBS permanently.
8066 cat >conftest.$ac_ext <<_ACEOF
8067 #line $LINENO "configure"
8070 cat confdefs.h >>conftest.$ac_ext
8071 cat >>conftest.$ac_ext <<_ACEOF
8072 /* end confdefs.h. */
8073 #include <X11/Intrinsic.h>
8082 rm -f conftest.$ac_objext conftest$ac_exeext
8083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8084 (eval $ac_link) 2>&5
8086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8087 (exit $ac_status); } &&
8088 { ac_try='test -s conftest$ac_exeext'
8089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8093 (exit $ac_status); }; }; then
8095 # We can link X programs with no special library path.
8098 echo "$as_me: failed program was:" >&5
8099 sed 's/^/| /' conftest.$ac_ext >&5
8102 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8104 # Don't even attempt the hair of trying to link an X program!
8105 for ac_extension in a so sl; do
8106 if test -r $ac_dir/libXt.$ac_extension; then
8107 ac_x_libraries=$ac_dir
8113 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8114 fi # $ac_x_libraries = no
8116 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8117 # Didn't find X anywhere. Cache the known absence of X.
8118 ac_cv_have_x="have_x=no"
8120 # Record where we found X for the cache.
8121 ac_cv_have_x="have_x=yes \
8122 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8127 eval "$ac_cv_have_x"
8130 if test "$have_x" != yes; then
8131 echo "$as_me:$LINENO: result: $have_x" >&5
8132 echo "${ECHO_T}$have_x" >&6
8135 # If each of the values was on the command line, it overrides each guess.
8136 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8137 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8138 # Update the cache value to reflect the command line values.
8139 ac_cv_have_x="have_x=yes \
8140 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8141 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8142 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8145 if test "$no_x" = yes; then
8146 # Not all programs may use this symbol, but it does not hurt to define it.
8148 cat >>confdefs.h <<\_ACEOF
8149 #define X_DISPLAY_MISSING 1
8152 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8154 if test -n "$x_includes"; then
8155 X_CFLAGS="$X_CFLAGS -I$x_includes"
8158 # It would also be nice to do this for all -L options, not just this one.
8159 if test -n "$x_libraries"; then
8160 X_LIBS="$X_LIBS -L$x_libraries"
8161 # For Solaris; some versions of Sun CC require a space after -R and
8162 # others require no space. Words are not sufficient . . . .
8163 case `(uname -sr) 2>/dev/null` in
8165 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
8166 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
8167 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8168 cat >conftest.$ac_ext <<_ACEOF
8169 #line $LINENO "configure"
8172 cat confdefs.h >>conftest.$ac_ext
8173 cat >>conftest.$ac_ext <<_ACEOF
8174 /* end confdefs.h. */
8184 rm -f conftest.$ac_objext conftest$ac_exeext
8185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8186 (eval $ac_link) 2>&5
8188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189 (exit $ac_status); } &&
8190 { ac_try='test -s conftest$ac_exeext'
8191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8195 (exit $ac_status); }; }; then
8198 echo "$as_me: failed program was:" >&5
8199 sed 's/^/| /' conftest.$ac_ext >&5
8203 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8204 if test $ac_R_nospace = yes; then
8205 echo "$as_me:$LINENO: result: no" >&5
8206 echo "${ECHO_T}no" >&6
8207 X_LIBS="$X_LIBS -R$x_libraries"
8209 LIBS="$ac_xsave_LIBS -R $x_libraries"
8210 cat >conftest.$ac_ext <<_ACEOF
8211 #line $LINENO "configure"
8214 cat confdefs.h >>conftest.$ac_ext
8215 cat >>conftest.$ac_ext <<_ACEOF
8216 /* end confdefs.h. */
8226 rm -f conftest.$ac_objext conftest$ac_exeext
8227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8228 (eval $ac_link) 2>&5
8230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8231 (exit $ac_status); } &&
8232 { ac_try='test -s conftest$ac_exeext'
8233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8237 (exit $ac_status); }; }; then
8240 echo "$as_me: failed program was:" >&5
8241 sed 's/^/| /' conftest.$ac_ext >&5
8245 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8246 if test $ac_R_space = yes; then
8247 echo "$as_me:$LINENO: result: yes" >&5
8248 echo "${ECHO_T}yes" >&6
8249 X_LIBS="$X_LIBS -R $x_libraries"
8251 echo "$as_me:$LINENO: result: neither works" >&5
8252 echo "${ECHO_T}neither works" >&6
8259 # Check for system-dependent libraries X programs must link with.
8260 # Do this before checking for the system-independent R6 libraries
8261 # (-lICE), since we may need -lsocket or whatever for X linking.
8263 if test "$ISC" = yes; then
8264 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8266 # Martyn Johnson says this is needed for Ultrix, if the X
8267 # libraries were built with DECnet support. And Karl Berry says
8268 # the Alpha needs dnet_stub (dnet does not exist).
8269 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8270 cat >conftest.$ac_ext <<_ACEOF
8271 #line $LINENO "configure"
8274 cat confdefs.h >>conftest.$ac_ext
8275 cat >>conftest.$ac_ext <<_ACEOF
8276 /* end confdefs.h. */
8278 /* Override any gcc2 internal prototype to avoid an error. */
8282 /* We use char because int might match the return type of a gcc2
8283 builtin and then its argument prototype would still apply. */
8284 char XOpenDisplay ();
8293 rm -f conftest.$ac_objext conftest$ac_exeext
8294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8295 (eval $ac_link) 2>&5
8297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298 (exit $ac_status); } &&
8299 { ac_try='test -s conftest$ac_exeext'
8300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8304 (exit $ac_status); }; }; then
8307 echo "$as_me: failed program was:" >&5
8308 sed 's/^/| /' conftest.$ac_ext >&5
8310 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8311 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8312 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8313 echo $ECHO_N "(cached) $ECHO_C" >&6
8315 ac_check_lib_save_LIBS=$LIBS
8317 cat >conftest.$ac_ext <<_ACEOF
8318 #line $LINENO "configure"
8321 cat confdefs.h >>conftest.$ac_ext
8322 cat >>conftest.$ac_ext <<_ACEOF
8323 /* end confdefs.h. */
8325 /* Override any gcc2 internal prototype to avoid an error. */
8329 /* We use char because int might match the return type of a gcc2
8330 builtin and then its argument prototype would still apply. */
8340 rm -f conftest.$ac_objext conftest$ac_exeext
8341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8342 (eval $ac_link) 2>&5
8344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8345 (exit $ac_status); } &&
8346 { ac_try='test -s conftest$ac_exeext'
8347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351 (exit $ac_status); }; }; then
8352 ac_cv_lib_dnet_dnet_ntoa=yes
8354 echo "$as_me: failed program was:" >&5
8355 sed 's/^/| /' conftest.$ac_ext >&5
8357 ac_cv_lib_dnet_dnet_ntoa=no
8359 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8360 LIBS=$ac_check_lib_save_LIBS
8362 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8363 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8364 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8365 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8368 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8369 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8370 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8371 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8372 echo $ECHO_N "(cached) $ECHO_C" >&6
8374 ac_check_lib_save_LIBS=$LIBS
8375 LIBS="-ldnet_stub $LIBS"
8376 cat >conftest.$ac_ext <<_ACEOF
8377 #line $LINENO "configure"
8380 cat confdefs.h >>conftest.$ac_ext
8381 cat >>conftest.$ac_ext <<_ACEOF
8382 /* end confdefs.h. */
8384 /* Override any gcc2 internal prototype to avoid an error. */
8388 /* We use char because int might match the return type of a gcc2
8389 builtin and then its argument prototype would still apply. */
8399 rm -f conftest.$ac_objext conftest$ac_exeext
8400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8401 (eval $ac_link) 2>&5
8403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404 (exit $ac_status); } &&
8405 { ac_try='test -s conftest$ac_exeext'
8406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410 (exit $ac_status); }; }; then
8411 ac_cv_lib_dnet_stub_dnet_ntoa=yes
8413 echo "$as_me: failed program was:" >&5
8414 sed 's/^/| /' conftest.$ac_ext >&5
8416 ac_cv_lib_dnet_stub_dnet_ntoa=no
8418 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8419 LIBS=$ac_check_lib_save_LIBS
8421 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8422 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8423 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8424 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8429 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8430 LIBS="$ac_xsave_LIBS"
8432 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8433 # to get the SysV transport functions.
8434 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8436 # The nsl library prevents programs from opening the X display
8437 # on Irix 5.2, according to T.E. Dickey.
8438 # The functions gethostbyname, getservbyname, and inet_addr are
8439 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8440 echo "$as_me:$LINENO: checking for gethostbyname" >&5
8441 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8442 if test "${ac_cv_func_gethostbyname+set}" = set; then
8443 echo $ECHO_N "(cached) $ECHO_C" >&6
8445 cat >conftest.$ac_ext <<_ACEOF
8446 #line $LINENO "configure"
8449 cat confdefs.h >>conftest.$ac_ext
8450 cat >>conftest.$ac_ext <<_ACEOF
8451 /* end confdefs.h. */
8452 /* System header to define __stub macros and hopefully few prototypes,
8453 which can conflict with char gethostbyname (); below.
8454 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8455 <limits.h> exists even on freestanding compilers. */
8457 # include <limits.h>
8459 # include <assert.h>
8461 /* Override any gcc2 internal prototype to avoid an error. */
8466 /* We use char because int might match the return type of a gcc2
8467 builtin and then its argument prototype would still apply. */
8468 char gethostbyname ();
8469 /* The GNU C library defines this for functions which it implements
8470 to always fail with ENOSYS. Some functions are actually named
8471 something starting with __ and the normal name is an alias. */
8472 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8475 char (*f) () = gethostbyname;
8484 return f != gethostbyname;
8489 rm -f conftest.$ac_objext conftest$ac_exeext
8490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8491 (eval $ac_link) 2>&5
8493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8494 (exit $ac_status); } &&
8495 { ac_try='test -s conftest$ac_exeext'
8496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8500 (exit $ac_status); }; }; then
8501 ac_cv_func_gethostbyname=yes
8503 echo "$as_me: failed program was:" >&5
8504 sed 's/^/| /' conftest.$ac_ext >&5
8506 ac_cv_func_gethostbyname=no
8508 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8510 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8511 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8513 if test $ac_cv_func_gethostbyname = no; then
8514 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8515 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8516 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8517 echo $ECHO_N "(cached) $ECHO_C" >&6
8519 ac_check_lib_save_LIBS=$LIBS
8521 cat >conftest.$ac_ext <<_ACEOF
8522 #line $LINENO "configure"
8525 cat confdefs.h >>conftest.$ac_ext
8526 cat >>conftest.$ac_ext <<_ACEOF
8527 /* end confdefs.h. */
8529 /* Override any gcc2 internal prototype to avoid an error. */
8533 /* We use char because int might match the return type of a gcc2
8534 builtin and then its argument prototype would still apply. */
8535 char gethostbyname ();
8544 rm -f conftest.$ac_objext conftest$ac_exeext
8545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8546 (eval $ac_link) 2>&5
8548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8549 (exit $ac_status); } &&
8550 { ac_try='test -s conftest$ac_exeext'
8551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8555 (exit $ac_status); }; }; then
8556 ac_cv_lib_nsl_gethostbyname=yes
8558 echo "$as_me: failed program was:" >&5
8559 sed 's/^/| /' conftest.$ac_ext >&5
8561 ac_cv_lib_nsl_gethostbyname=no
8563 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8564 LIBS=$ac_check_lib_save_LIBS
8566 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8567 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8568 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8569 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8572 if test $ac_cv_lib_nsl_gethostbyname = no; then
8573 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8574 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8575 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8576 echo $ECHO_N "(cached) $ECHO_C" >&6
8578 ac_check_lib_save_LIBS=$LIBS
8580 cat >conftest.$ac_ext <<_ACEOF
8581 #line $LINENO "configure"
8584 cat confdefs.h >>conftest.$ac_ext
8585 cat >>conftest.$ac_ext <<_ACEOF
8586 /* end confdefs.h. */
8588 /* Override any gcc2 internal prototype to avoid an error. */
8592 /* We use char because int might match the return type of a gcc2
8593 builtin and then its argument prototype would still apply. */
8594 char gethostbyname ();
8603 rm -f conftest.$ac_objext conftest$ac_exeext
8604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8605 (eval $ac_link) 2>&5
8607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608 (exit $ac_status); } &&
8609 { ac_try='test -s conftest$ac_exeext'
8610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614 (exit $ac_status); }; }; then
8615 ac_cv_lib_bsd_gethostbyname=yes
8617 echo "$as_me: failed program was:" >&5
8618 sed 's/^/| /' conftest.$ac_ext >&5
8620 ac_cv_lib_bsd_gethostbyname=no
8622 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8623 LIBS=$ac_check_lib_save_LIBS
8625 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8626 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8627 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8628 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8634 # lieder@skyler.mavd.honeywell.com says without -lsocket,
8635 # socket/setsockopt and other routines are undefined under SCO ODT
8636 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
8637 # on later versions), says Simon Leinen: it contains gethostby*
8638 # variants that don't use the name server (or something). -lsocket
8639 # must be given before -lnsl if both are needed. We assume that
8640 # if connect needs -lnsl, so does gethostbyname.
8641 echo "$as_me:$LINENO: checking for connect" >&5
8642 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8643 if test "${ac_cv_func_connect+set}" = set; then
8644 echo $ECHO_N "(cached) $ECHO_C" >&6
8646 cat >conftest.$ac_ext <<_ACEOF
8647 #line $LINENO "configure"
8650 cat confdefs.h >>conftest.$ac_ext
8651 cat >>conftest.$ac_ext <<_ACEOF
8652 /* end confdefs.h. */
8653 /* System header to define __stub macros and hopefully few prototypes,
8654 which can conflict with char connect (); below.
8655 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8656 <limits.h> exists even on freestanding compilers. */
8658 # include <limits.h>
8660 # include <assert.h>
8662 /* Override any gcc2 internal prototype to avoid an error. */
8667 /* We use char because int might match the return type of a gcc2
8668 builtin and then its argument prototype would still apply. */
8670 /* The GNU C library defines this for functions which it implements
8671 to always fail with ENOSYS. Some functions are actually named
8672 something starting with __ and the normal name is an alias. */
8673 #if defined (__stub_connect) || defined (__stub___connect)
8676 char (*f) () = connect;
8685 return f != connect;
8690 rm -f conftest.$ac_objext conftest$ac_exeext
8691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8692 (eval $ac_link) 2>&5
8694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8695 (exit $ac_status); } &&
8696 { ac_try='test -s conftest$ac_exeext'
8697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8701 (exit $ac_status); }; }; then
8702 ac_cv_func_connect=yes
8704 echo "$as_me: failed program was:" >&5
8705 sed 's/^/| /' conftest.$ac_ext >&5
8707 ac_cv_func_connect=no
8709 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8711 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8712 echo "${ECHO_T}$ac_cv_func_connect" >&6
8714 if test $ac_cv_func_connect = no; then
8715 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8716 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8717 if test "${ac_cv_lib_socket_connect+set}" = set; then
8718 echo $ECHO_N "(cached) $ECHO_C" >&6
8720 ac_check_lib_save_LIBS=$LIBS
8721 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8722 cat >conftest.$ac_ext <<_ACEOF
8723 #line $LINENO "configure"
8726 cat confdefs.h >>conftest.$ac_ext
8727 cat >>conftest.$ac_ext <<_ACEOF
8728 /* end confdefs.h. */
8730 /* Override any gcc2 internal prototype to avoid an error. */
8734 /* We use char because int might match the return type of a gcc2
8735 builtin and then its argument prototype would still apply. */
8745 rm -f conftest.$ac_objext conftest$ac_exeext
8746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8747 (eval $ac_link) 2>&5
8749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8750 (exit $ac_status); } &&
8751 { ac_try='test -s conftest$ac_exeext'
8752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8756 (exit $ac_status); }; }; then
8757 ac_cv_lib_socket_connect=yes
8759 echo "$as_me: failed program was:" >&5
8760 sed 's/^/| /' conftest.$ac_ext >&5
8762 ac_cv_lib_socket_connect=no
8764 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8765 LIBS=$ac_check_lib_save_LIBS
8767 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8768 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8769 if test $ac_cv_lib_socket_connect = yes; then
8770 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8775 # Guillermo Gomez says -lposix is necessary on A/UX.
8776 echo "$as_me:$LINENO: checking for remove" >&5
8777 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8778 if test "${ac_cv_func_remove+set}" = set; then
8779 echo $ECHO_N "(cached) $ECHO_C" >&6
8781 cat >conftest.$ac_ext <<_ACEOF
8782 #line $LINENO "configure"
8785 cat confdefs.h >>conftest.$ac_ext
8786 cat >>conftest.$ac_ext <<_ACEOF
8787 /* end confdefs.h. */
8788 /* System header to define __stub macros and hopefully few prototypes,
8789 which can conflict with char remove (); below.
8790 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8791 <limits.h> exists even on freestanding compilers. */
8793 # include <limits.h>
8795 # include <assert.h>
8797 /* Override any gcc2 internal prototype to avoid an error. */
8802 /* We use char because int might match the return type of a gcc2
8803 builtin and then its argument prototype would still apply. */
8805 /* The GNU C library defines this for functions which it implements
8806 to always fail with ENOSYS. Some functions are actually named
8807 something starting with __ and the normal name is an alias. */
8808 #if defined (__stub_remove) || defined (__stub___remove)
8811 char (*f) () = remove;
8825 rm -f conftest.$ac_objext conftest$ac_exeext
8826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8827 (eval $ac_link) 2>&5
8829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8830 (exit $ac_status); } &&
8831 { ac_try='test -s conftest$ac_exeext'
8832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8836 (exit $ac_status); }; }; then
8837 ac_cv_func_remove=yes
8839 echo "$as_me: failed program was:" >&5
8840 sed 's/^/| /' conftest.$ac_ext >&5
8842 ac_cv_func_remove=no
8844 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8846 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8847 echo "${ECHO_T}$ac_cv_func_remove" >&6
8849 if test $ac_cv_func_remove = no; then
8850 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8851 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8852 if test "${ac_cv_lib_posix_remove+set}" = set; then
8853 echo $ECHO_N "(cached) $ECHO_C" >&6
8855 ac_check_lib_save_LIBS=$LIBS
8856 LIBS="-lposix $LIBS"
8857 cat >conftest.$ac_ext <<_ACEOF
8858 #line $LINENO "configure"
8861 cat confdefs.h >>conftest.$ac_ext
8862 cat >>conftest.$ac_ext <<_ACEOF
8863 /* end confdefs.h. */
8865 /* Override any gcc2 internal prototype to avoid an error. */
8869 /* We use char because int might match the return type of a gcc2
8870 builtin and then its argument prototype would still apply. */
8880 rm -f conftest.$ac_objext conftest$ac_exeext
8881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8882 (eval $ac_link) 2>&5
8884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8885 (exit $ac_status); } &&
8886 { ac_try='test -s conftest$ac_exeext'
8887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8891 (exit $ac_status); }; }; then
8892 ac_cv_lib_posix_remove=yes
8894 echo "$as_me: failed program was:" >&5
8895 sed 's/^/| /' conftest.$ac_ext >&5
8897 ac_cv_lib_posix_remove=no
8899 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8900 LIBS=$ac_check_lib_save_LIBS
8902 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8903 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8904 if test $ac_cv_lib_posix_remove = yes; then
8905 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8910 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8911 echo "$as_me:$LINENO: checking for shmat" >&5
8912 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8913 if test "${ac_cv_func_shmat+set}" = set; then
8914 echo $ECHO_N "(cached) $ECHO_C" >&6
8916 cat >conftest.$ac_ext <<_ACEOF
8917 #line $LINENO "configure"
8920 cat confdefs.h >>conftest.$ac_ext
8921 cat >>conftest.$ac_ext <<_ACEOF
8922 /* end confdefs.h. */
8923 /* System header to define __stub macros and hopefully few prototypes,
8924 which can conflict with char shmat (); below.
8925 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8926 <limits.h> exists even on freestanding compilers. */
8928 # include <limits.h>
8930 # include <assert.h>
8932 /* Override any gcc2 internal prototype to avoid an error. */
8937 /* We use char because int might match the return type of a gcc2
8938 builtin and then its argument prototype would still apply. */
8940 /* The GNU C library defines this for functions which it implements
8941 to always fail with ENOSYS. Some functions are actually named
8942 something starting with __ and the normal name is an alias. */
8943 #if defined (__stub_shmat) || defined (__stub___shmat)
8946 char (*f) () = shmat;
8960 rm -f conftest.$ac_objext conftest$ac_exeext
8961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8962 (eval $ac_link) 2>&5
8964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8965 (exit $ac_status); } &&
8966 { ac_try='test -s conftest$ac_exeext'
8967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8971 (exit $ac_status); }; }; then
8972 ac_cv_func_shmat=yes
8974 echo "$as_me: failed program was:" >&5
8975 sed 's/^/| /' conftest.$ac_ext >&5
8979 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8981 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
8982 echo "${ECHO_T}$ac_cv_func_shmat" >&6
8984 if test $ac_cv_func_shmat = no; then
8985 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
8986 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
8987 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
8988 echo $ECHO_N "(cached) $ECHO_C" >&6
8990 ac_check_lib_save_LIBS=$LIBS
8992 cat >conftest.$ac_ext <<_ACEOF
8993 #line $LINENO "configure"
8996 cat confdefs.h >>conftest.$ac_ext
8997 cat >>conftest.$ac_ext <<_ACEOF
8998 /* end confdefs.h. */
9000 /* Override any gcc2 internal prototype to avoid an error. */
9004 /* We use char because int might match the return type of a gcc2
9005 builtin and then its argument prototype would still apply. */
9015 rm -f conftest.$ac_objext conftest$ac_exeext
9016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9017 (eval $ac_link) 2>&5
9019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9020 (exit $ac_status); } &&
9021 { ac_try='test -s conftest$ac_exeext'
9022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9026 (exit $ac_status); }; }; then
9027 ac_cv_lib_ipc_shmat=yes
9029 echo "$as_me: failed program was:" >&5
9030 sed 's/^/| /' conftest.$ac_ext >&5
9032 ac_cv_lib_ipc_shmat=no
9034 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9035 LIBS=$ac_check_lib_save_LIBS
9037 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
9038 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
9039 if test $ac_cv_lib_ipc_shmat = yes; then
9040 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9046 # Check for libraries that X11R6 Xt/Xaw programs need.
9047 ac_save_LDFLAGS=$LDFLAGS
9048 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9049 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9050 # check for ICE first), but we must link in the order -lSM -lICE or
9051 # we get undefined symbols. So assume we have SM if we have ICE.
9052 # These have to be linked with before -lX11, unlike the other
9053 # libraries we check for below, so use a different variable.
9054 # John Interrante, Karl Berry
9055 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
9056 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
9057 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
9058 echo $ECHO_N "(cached) $ECHO_C" >&6
9060 ac_check_lib_save_LIBS=$LIBS
9061 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9062 cat >conftest.$ac_ext <<_ACEOF
9063 #line $LINENO "configure"
9066 cat confdefs.h >>conftest.$ac_ext
9067 cat >>conftest.$ac_ext <<_ACEOF
9068 /* end confdefs.h. */
9070 /* Override any gcc2 internal prototype to avoid an error. */
9074 /* We use char because int might match the return type of a gcc2
9075 builtin and then its argument prototype would still apply. */
9076 char IceConnectionNumber ();
9080 IceConnectionNumber ();
9085 rm -f conftest.$ac_objext conftest$ac_exeext
9086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9087 (eval $ac_link) 2>&5
9089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9090 (exit $ac_status); } &&
9091 { ac_try='test -s conftest$ac_exeext'
9092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9096 (exit $ac_status); }; }; then
9097 ac_cv_lib_ICE_IceConnectionNumber=yes
9099 echo "$as_me: failed program was:" >&5
9100 sed 's/^/| /' conftest.$ac_ext >&5
9102 ac_cv_lib_ICE_IceConnectionNumber=no
9104 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9105 LIBS=$ac_check_lib_save_LIBS
9107 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9108 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
9109 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
9110 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9113 LDFLAGS=$ac_save_LDFLAGS
9171 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9172 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9173 echo "$as_me:$LINENO: checking for $ac_header" >&5
9174 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9175 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9176 echo $ECHO_N "(cached) $ECHO_C" >&6
9178 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9179 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9181 # Is the header compilable?
9182 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9183 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9184 cat >conftest.$ac_ext <<_ACEOF
9185 #line $LINENO "configure"
9188 cat confdefs.h >>conftest.$ac_ext
9189 cat >>conftest.$ac_ext <<_ACEOF
9190 /* end confdefs.h. */
9191 $ac_includes_default
9192 #include <$ac_header>
9194 rm -f conftest.$ac_objext
9195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9196 (eval $ac_compile) 2>&5
9198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9199 (exit $ac_status); } &&
9200 { ac_try='test -s conftest.$ac_objext'
9201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9205 (exit $ac_status); }; }; then
9206 ac_header_compiler=yes
9208 echo "$as_me: failed program was:" >&5
9209 sed 's/^/| /' conftest.$ac_ext >&5
9211 ac_header_compiler=no
9213 rm -f conftest.$ac_objext conftest.$ac_ext
9214 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9215 echo "${ECHO_T}$ac_header_compiler" >&6
9217 # Is the header present?
9218 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9219 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9220 cat >conftest.$ac_ext <<_ACEOF
9221 #line $LINENO "configure"
9224 cat confdefs.h >>conftest.$ac_ext
9225 cat >>conftest.$ac_ext <<_ACEOF
9226 /* end confdefs.h. */
9227 #include <$ac_header>
9229 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9230 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9232 grep -v '^ *+' conftest.er1 >conftest.err
9234 cat conftest.err >&5
9235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9236 (exit $ac_status); } >/dev/null; then
9237 if test -s conftest.err; then
9238 ac_cpp_err=$ac_c_preproc_warn_flag
9245 if test -z "$ac_cpp_err"; then
9246 ac_header_preproc=yes
9248 echo "$as_me: failed program was:" >&5
9249 sed 's/^/| /' conftest.$ac_ext >&5
9251 ac_header_preproc=no
9253 rm -f conftest.err conftest.$ac_ext
9254 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9255 echo "${ECHO_T}$ac_header_preproc" >&6
9257 # So? What about this header?
9258 case $ac_header_compiler:$ac_header_preproc in
9260 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9261 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9262 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9263 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9266 ## ------------------------------------ ##
9267 ## Report this to bug-autoconf@gnu.org. ##
9268 ## ------------------------------------ ##
9271 sed "s/^/$as_me: WARNING: /" >&2
9274 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9275 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9276 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9277 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9278 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9279 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9282 ## ------------------------------------ ##
9283 ## Report this to bug-autoconf@gnu.org. ##
9284 ## ------------------------------------ ##
9287 sed "s/^/$as_me: WARNING: /" >&2
9290 echo "$as_me:$LINENO: checking for $ac_header" >&5
9291 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9292 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9293 echo $ECHO_N "(cached) $ECHO_C" >&6
9295 eval "$as_ac_Header=$ac_header_preproc"
9297 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9298 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9301 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9302 cat >>confdefs.h <<_ACEOF
9303 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9310 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9311 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9312 if test "${ac_cv_header_stdc+set}" = set; then
9313 echo $ECHO_N "(cached) $ECHO_C" >&6
9315 cat >conftest.$ac_ext <<_ACEOF
9316 #line $LINENO "configure"
9319 cat confdefs.h >>conftest.$ac_ext
9320 cat >>conftest.$ac_ext <<_ACEOF
9321 /* end confdefs.h. */
9335 rm -f conftest.$ac_objext
9336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9337 (eval $ac_compile) 2>&5
9339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9340 (exit $ac_status); } &&
9341 { ac_try='test -s conftest.$ac_objext'
9342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9346 (exit $ac_status); }; }; then
9347 ac_cv_header_stdc=yes
9349 echo "$as_me: failed program was:" >&5
9350 sed 's/^/| /' conftest.$ac_ext >&5
9352 ac_cv_header_stdc=no
9354 rm -f conftest.$ac_objext conftest.$ac_ext
9356 if test $ac_cv_header_stdc = yes; then
9357 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9358 cat >conftest.$ac_ext <<_ACEOF
9359 #line $LINENO "configure"
9362 cat confdefs.h >>conftest.$ac_ext
9363 cat >>conftest.$ac_ext <<_ACEOF
9364 /* end confdefs.h. */
9368 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9369 $EGREP "memchr" >/dev/null 2>&1; then
9372 ac_cv_header_stdc=no
9378 if test $ac_cv_header_stdc = yes; then
9379 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9380 cat >conftest.$ac_ext <<_ACEOF
9381 #line $LINENO "configure"
9384 cat confdefs.h >>conftest.$ac_ext
9385 cat >>conftest.$ac_ext <<_ACEOF
9386 /* end confdefs.h. */
9390 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9391 $EGREP "free" >/dev/null 2>&1; then
9394 ac_cv_header_stdc=no
9400 if test $ac_cv_header_stdc = yes; then
9401 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9402 if test "$cross_compiling" = yes; then
9405 cat >conftest.$ac_ext <<_ACEOF
9406 #line $LINENO "configure"
9409 cat confdefs.h >>conftest.$ac_ext
9410 cat >>conftest.$ac_ext <<_ACEOF
9411 /* end confdefs.h. */
9413 #if ((' ' & 0x0FF) == 0x020)
9414 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9415 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9417 # define ISLOWER(c) \
9418 (('a' <= (c) && (c) <= 'i') \
9419 || ('j' <= (c) && (c) <= 'r') \
9420 || ('s' <= (c) && (c) <= 'z'))
9421 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9424 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9429 for (i = 0; i < 256; i++)
9430 if (XOR (islower (i), ISLOWER (i))
9431 || toupper (i) != TOUPPER (i))
9436 rm -f conftest$ac_exeext
9437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9438 (eval $ac_link) 2>&5
9440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9441 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9446 (exit $ac_status); }; }; then
9449 echo "$as_me: program exited with status $ac_status" >&5
9450 echo "$as_me: failed program was:" >&5
9451 sed 's/^/| /' conftest.$ac_ext >&5
9454 ac_cv_header_stdc=no
9456 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9460 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9461 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9462 if test $ac_cv_header_stdc = yes; then
9464 cat >>confdefs.h <<\_ACEOF
9465 #define STDC_HEADERS 1
9470 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
9471 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
9472 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
9473 echo $ECHO_N "(cached) $ECHO_C" >&6
9475 cat >conftest.$ac_ext <<_ACEOF
9476 #line $LINENO "configure"
9479 cat confdefs.h >>conftest.$ac_ext
9480 cat >>conftest.$ac_ext <<_ACEOF
9481 /* end confdefs.h. */
9482 #include <sys/types.h>
9486 return makedev(0, 0);
9491 rm -f conftest.$ac_objext conftest$ac_exeext
9492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9493 (eval $ac_link) 2>&5
9495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9496 (exit $ac_status); } &&
9497 { ac_try='test -s conftest$ac_exeext'
9498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9502 (exit $ac_status); }; }; then
9503 ac_cv_header_sys_types_h_makedev=yes
9505 echo "$as_me: failed program was:" >&5
9506 sed 's/^/| /' conftest.$ac_ext >&5
9508 ac_cv_header_sys_types_h_makedev=no
9510 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9513 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
9514 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
9516 if test $ac_cv_header_sys_types_h_makedev = no; then
9517 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9518 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9519 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9520 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9521 echo $ECHO_N "(cached) $ECHO_C" >&6
9523 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9524 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9526 # Is the header compilable?
9527 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
9528 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
9529 cat >conftest.$ac_ext <<_ACEOF
9530 #line $LINENO "configure"
9533 cat confdefs.h >>conftest.$ac_ext
9534 cat >>conftest.$ac_ext <<_ACEOF
9535 /* end confdefs.h. */
9536 $ac_includes_default
9537 #include <sys/mkdev.h>
9539 rm -f conftest.$ac_objext
9540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9541 (eval $ac_compile) 2>&5
9543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9544 (exit $ac_status); } &&
9545 { ac_try='test -s conftest.$ac_objext'
9546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9550 (exit $ac_status); }; }; then
9551 ac_header_compiler=yes
9553 echo "$as_me: failed program was:" >&5
9554 sed 's/^/| /' conftest.$ac_ext >&5
9556 ac_header_compiler=no
9558 rm -f conftest.$ac_objext conftest.$ac_ext
9559 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9560 echo "${ECHO_T}$ac_header_compiler" >&6
9562 # Is the header present?
9563 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
9564 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
9565 cat >conftest.$ac_ext <<_ACEOF
9566 #line $LINENO "configure"
9569 cat confdefs.h >>conftest.$ac_ext
9570 cat >>conftest.$ac_ext <<_ACEOF
9571 /* end confdefs.h. */
9572 #include <sys/mkdev.h>
9574 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9575 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9577 grep -v '^ *+' conftest.er1 >conftest.err
9579 cat conftest.err >&5
9580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9581 (exit $ac_status); } >/dev/null; then
9582 if test -s conftest.err; then
9583 ac_cpp_err=$ac_c_preproc_warn_flag
9590 if test -z "$ac_cpp_err"; then
9591 ac_header_preproc=yes
9593 echo "$as_me: failed program was:" >&5
9594 sed 's/^/| /' conftest.$ac_ext >&5
9596 ac_header_preproc=no
9598 rm -f conftest.err conftest.$ac_ext
9599 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9600 echo "${ECHO_T}$ac_header_preproc" >&6
9602 # So? What about this header?
9603 case $ac_header_compiler:$ac_header_preproc in
9605 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
9606 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9607 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9608 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9611 ## ------------------------------------ ##
9612 ## Report this to bug-autoconf@gnu.org. ##
9613 ## ------------------------------------ ##
9616 sed "s/^/$as_me: WARNING: /" >&2
9619 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
9620 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
9621 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
9622 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
9623 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9624 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9627 ## ------------------------------------ ##
9628 ## Report this to bug-autoconf@gnu.org. ##
9629 ## ------------------------------------ ##
9632 sed "s/^/$as_me: WARNING: /" >&2
9635 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9636 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9637 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9638 echo $ECHO_N "(cached) $ECHO_C" >&6
9640 ac_cv_header_sys_mkdev_h=$ac_header_preproc
9642 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9643 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9646 if test $ac_cv_header_sys_mkdev_h = yes; then
9648 cat >>confdefs.h <<\_ACEOF
9649 #define MAJOR_IN_MKDEV 1
9656 if test $ac_cv_header_sys_mkdev_h = no; then
9657 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9658 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9659 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9660 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9661 echo $ECHO_N "(cached) $ECHO_C" >&6
9663 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9664 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9666 # Is the header compilable?
9667 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
9668 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
9669 cat >conftest.$ac_ext <<_ACEOF
9670 #line $LINENO "configure"
9673 cat confdefs.h >>conftest.$ac_ext
9674 cat >>conftest.$ac_ext <<_ACEOF
9675 /* end confdefs.h. */
9676 $ac_includes_default
9677 #include <sys/sysmacros.h>
9679 rm -f conftest.$ac_objext
9680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9681 (eval $ac_compile) 2>&5
9683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9684 (exit $ac_status); } &&
9685 { ac_try='test -s conftest.$ac_objext'
9686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9690 (exit $ac_status); }; }; then
9691 ac_header_compiler=yes
9693 echo "$as_me: failed program was:" >&5
9694 sed 's/^/| /' conftest.$ac_ext >&5
9696 ac_header_compiler=no
9698 rm -f conftest.$ac_objext conftest.$ac_ext
9699 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9700 echo "${ECHO_T}$ac_header_compiler" >&6
9702 # Is the header present?
9703 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
9704 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
9705 cat >conftest.$ac_ext <<_ACEOF
9706 #line $LINENO "configure"
9709 cat confdefs.h >>conftest.$ac_ext
9710 cat >>conftest.$ac_ext <<_ACEOF
9711 /* end confdefs.h. */
9712 #include <sys/sysmacros.h>
9714 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9715 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9717 grep -v '^ *+' conftest.er1 >conftest.err
9719 cat conftest.err >&5
9720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721 (exit $ac_status); } >/dev/null; then
9722 if test -s conftest.err; then
9723 ac_cpp_err=$ac_c_preproc_warn_flag
9730 if test -z "$ac_cpp_err"; then
9731 ac_header_preproc=yes
9733 echo "$as_me: failed program was:" >&5
9734 sed 's/^/| /' conftest.$ac_ext >&5
9736 ac_header_preproc=no
9738 rm -f conftest.err conftest.$ac_ext
9739 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9740 echo "${ECHO_T}$ac_header_preproc" >&6
9742 # So? What about this header?
9743 case $ac_header_compiler:$ac_header_preproc in
9745 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
9746 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9747 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9748 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9751 ## ------------------------------------ ##
9752 ## Report this to bug-autoconf@gnu.org. ##
9753 ## ------------------------------------ ##
9756 sed "s/^/$as_me: WARNING: /" >&2
9759 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
9760 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
9761 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
9762 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
9763 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9764 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9767 ## ------------------------------------ ##
9768 ## Report this to bug-autoconf@gnu.org. ##
9769 ## ------------------------------------ ##
9772 sed "s/^/$as_me: WARNING: /" >&2
9775 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9776 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9777 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9778 echo $ECHO_N "(cached) $ECHO_C" >&6
9780 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
9782 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9783 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9786 if test $ac_cv_header_sys_sysmacros_h = yes; then
9788 cat >>confdefs.h <<\_ACEOF
9789 #define MAJOR_IN_SYSMACROS 1
9804 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9805 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9806 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9807 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9808 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9809 echo $ECHO_N "(cached) $ECHO_C" >&6
9811 cat >conftest.$ac_ext <<_ACEOF
9812 #line $LINENO "configure"
9815 cat confdefs.h >>conftest.$ac_ext
9816 cat >>conftest.$ac_ext <<_ACEOF
9817 /* end confdefs.h. */
9818 #include <sys/types.h>
9830 rm -f conftest.$ac_objext
9831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9832 (eval $ac_compile) 2>&5
9834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9835 (exit $ac_status); } &&
9836 { ac_try='test -s conftest.$ac_objext'
9837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9841 (exit $ac_status); }; }; then
9842 eval "$as_ac_Header=yes"
9844 echo "$as_me: failed program was:" >&5
9845 sed 's/^/| /' conftest.$ac_ext >&5
9847 eval "$as_ac_Header=no"
9849 rm -f conftest.$ac_objext conftest.$ac_ext
9851 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9852 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9853 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9854 cat >>confdefs.h <<_ACEOF
9855 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9858 ac_header_dirent=$ac_hdr; break
9862 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9863 if test $ac_header_dirent = dirent.h; then
9864 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9865 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9866 if test "${ac_cv_search_opendir+set}" = set; then
9867 echo $ECHO_N "(cached) $ECHO_C" >&6
9869 ac_func_search_save_LIBS=$LIBS
9870 ac_cv_search_opendir=no
9871 cat >conftest.$ac_ext <<_ACEOF
9872 #line $LINENO "configure"
9875 cat confdefs.h >>conftest.$ac_ext
9876 cat >>conftest.$ac_ext <<_ACEOF
9877 /* end confdefs.h. */
9879 /* Override any gcc2 internal prototype to avoid an error. */
9883 /* We use char because int might match the return type of a gcc2
9884 builtin and then its argument prototype would still apply. */
9894 rm -f conftest.$ac_objext conftest$ac_exeext
9895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9896 (eval $ac_link) 2>&5
9898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9899 (exit $ac_status); } &&
9900 { ac_try='test -s conftest$ac_exeext'
9901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905 (exit $ac_status); }; }; then
9906 ac_cv_search_opendir="none required"
9908 echo "$as_me: failed program was:" >&5
9909 sed 's/^/| /' conftest.$ac_ext >&5
9912 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9913 if test "$ac_cv_search_opendir" = no; then
9914 for ac_lib in dir; do
9915 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9916 cat >conftest.$ac_ext <<_ACEOF
9917 #line $LINENO "configure"
9920 cat confdefs.h >>conftest.$ac_ext
9921 cat >>conftest.$ac_ext <<_ACEOF
9922 /* end confdefs.h. */
9924 /* Override any gcc2 internal prototype to avoid an error. */
9928 /* We use char because int might match the return type of a gcc2
9929 builtin and then its argument prototype would still apply. */
9939 rm -f conftest.$ac_objext conftest$ac_exeext
9940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9941 (eval $ac_link) 2>&5
9943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9944 (exit $ac_status); } &&
9945 { ac_try='test -s conftest$ac_exeext'
9946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9950 (exit $ac_status); }; }; then
9951 ac_cv_search_opendir="-l$ac_lib"
9954 echo "$as_me: failed program was:" >&5
9955 sed 's/^/| /' conftest.$ac_ext >&5
9958 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9961 LIBS=$ac_func_search_save_LIBS
9963 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9964 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9965 if test "$ac_cv_search_opendir" != no; then
9966 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9971 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9972 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9973 if test "${ac_cv_search_opendir+set}" = set; then
9974 echo $ECHO_N "(cached) $ECHO_C" >&6
9976 ac_func_search_save_LIBS=$LIBS
9977 ac_cv_search_opendir=no
9978 cat >conftest.$ac_ext <<_ACEOF
9979 #line $LINENO "configure"
9982 cat confdefs.h >>conftest.$ac_ext
9983 cat >>conftest.$ac_ext <<_ACEOF
9984 /* end confdefs.h. */
9986 /* Override any gcc2 internal prototype to avoid an error. */
9990 /* We use char because int might match the return type of a gcc2
9991 builtin and then its argument prototype would still apply. */
10001 rm -f conftest.$ac_objext conftest$ac_exeext
10002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10003 (eval $ac_link) 2>&5
10005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006 (exit $ac_status); } &&
10007 { ac_try='test -s conftest$ac_exeext'
10008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10009 (eval $ac_try) 2>&5
10011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10012 (exit $ac_status); }; }; then
10013 ac_cv_search_opendir="none required"
10015 echo "$as_me: failed program was:" >&5
10016 sed 's/^/| /' conftest.$ac_ext >&5
10019 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10020 if test "$ac_cv_search_opendir" = no; then
10021 for ac_lib in x; do
10022 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10023 cat >conftest.$ac_ext <<_ACEOF
10024 #line $LINENO "configure"
10027 cat confdefs.h >>conftest.$ac_ext
10028 cat >>conftest.$ac_ext <<_ACEOF
10029 /* end confdefs.h. */
10031 /* Override any gcc2 internal prototype to avoid an error. */
10035 /* We use char because int might match the return type of a gcc2
10036 builtin and then its argument prototype would still apply. */
10046 rm -f conftest.$ac_objext conftest$ac_exeext
10047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10048 (eval $ac_link) 2>&5
10050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051 (exit $ac_status); } &&
10052 { ac_try='test -s conftest$ac_exeext'
10053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10054 (eval $ac_try) 2>&5
10056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057 (exit $ac_status); }; }; then
10058 ac_cv_search_opendir="-l$ac_lib"
10061 echo "$as_me: failed program was:" >&5
10062 sed 's/^/| /' conftest.$ac_ext >&5
10065 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10068 LIBS=$ac_func_search_save_LIBS
10070 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10071 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10072 if test "$ac_cv_search_opendir" != no; then
10073 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10079 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10080 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
10081 if test "${ac_cv_header_stat_broken+set}" = set; then
10082 echo $ECHO_N "(cached) $ECHO_C" >&6
10084 cat >conftest.$ac_ext <<_ACEOF
10085 #line $LINENO "configure"
10088 cat confdefs.h >>conftest.$ac_ext
10089 cat >>conftest.$ac_ext <<_ACEOF
10090 /* end confdefs.h. */
10091 #include <sys/types.h>
10092 #include <sys/stat.h>
10094 #if defined(S_ISBLK) && defined(S_IFDIR)
10095 # if S_ISBLK (S_IFDIR)
10100 #if defined(S_ISBLK) && defined(S_IFCHR)
10101 # if S_ISBLK (S_IFCHR)
10106 #if defined(S_ISLNK) && defined(S_IFREG)
10107 # if S_ISLNK (S_IFREG)
10112 #if defined(S_ISSOCK) && defined(S_IFREG)
10113 # if S_ISSOCK (S_IFREG)
10119 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10120 $EGREP "You lose" >/dev/null 2>&1; then
10121 ac_cv_header_stat_broken=yes
10123 ac_cv_header_stat_broken=no
10128 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10129 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
10130 if test $ac_cv_header_stat_broken = yes; then
10132 cat >>confdefs.h <<\_ACEOF
10133 #define STAT_MACROS_BROKEN 1
10138 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10139 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
10140 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10141 echo $ECHO_N "(cached) $ECHO_C" >&6
10143 cat >conftest.$ac_ext <<_ACEOF
10144 #line $LINENO "configure"
10147 cat confdefs.h >>conftest.$ac_ext
10148 cat >>conftest.$ac_ext <<_ACEOF
10149 /* end confdefs.h. */
10150 #include <sys/types.h>
10151 #include <sys/wait.h>
10152 #ifndef WEXITSTATUS
10153 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
10156 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10164 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10169 rm -f conftest.$ac_objext
10170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10171 (eval $ac_compile) 2>&5
10173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10174 (exit $ac_status); } &&
10175 { ac_try='test -s conftest.$ac_objext'
10176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10177 (eval $ac_try) 2>&5
10179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10180 (exit $ac_status); }; }; then
10181 ac_cv_header_sys_wait_h=yes
10183 echo "$as_me: failed program was:" >&5
10184 sed 's/^/| /' conftest.$ac_ext >&5
10186 ac_cv_header_sys_wait_h=no
10188 rm -f conftest.$ac_objext conftest.$ac_ext
10190 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10191 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
10192 if test $ac_cv_header_sys_wait_h = yes; then
10194 cat >>confdefs.h <<\_ACEOF
10195 #define HAVE_SYS_WAIT_H 1
10200 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10201 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10202 if test "${ac_cv_header_time+set}" = set; then
10203 echo $ECHO_N "(cached) $ECHO_C" >&6
10205 cat >conftest.$ac_ext <<_ACEOF
10206 #line $LINENO "configure"
10209 cat confdefs.h >>conftest.$ac_ext
10210 cat >>conftest.$ac_ext <<_ACEOF
10211 /* end confdefs.h. */
10212 #include <sys/types.h>
10213 #include <sys/time.h>
10219 if ((struct tm *) 0)
10225 rm -f conftest.$ac_objext
10226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10227 (eval $ac_compile) 2>&5
10229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10230 (exit $ac_status); } &&
10231 { ac_try='test -s conftest.$ac_objext'
10232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10233 (eval $ac_try) 2>&5
10235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10236 (exit $ac_status); }; }; then
10237 ac_cv_header_time=yes
10239 echo "$as_me: failed program was:" >&5
10240 sed 's/^/| /' conftest.$ac_ext >&5
10242 ac_cv_header_time=no
10244 rm -f conftest.$ac_objext conftest.$ac_ext
10246 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10247 echo "${ECHO_T}$ac_cv_header_time" >&6
10248 if test $ac_cv_header_time = yes; then
10250 cat >>confdefs.h <<\_ACEOF
10251 #define TIME_WITH_SYS_TIME 1
10257 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
10258 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
10259 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
10260 echo $ECHO_N "(cached) $ECHO_C" >&6
10262 cat >conftest.$ac_ext <<_ACEOF
10263 #line $LINENO "configure"
10266 cat confdefs.h >>conftest.$ac_ext
10267 cat >>conftest.$ac_ext <<_ACEOF
10268 /* end confdefs.h. */
10269 $ac_includes_default
10273 static struct stat ac_aggr;
10274 if (ac_aggr.st_blksize)
10280 rm -f conftest.$ac_objext
10281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10282 (eval $ac_compile) 2>&5
10284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10285 (exit $ac_status); } &&
10286 { ac_try='test -s conftest.$ac_objext'
10287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10288 (eval $ac_try) 2>&5
10290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10291 (exit $ac_status); }; }; then
10292 ac_cv_member_struct_stat_st_blksize=yes
10294 echo "$as_me: failed program was:" >&5
10295 sed 's/^/| /' conftest.$ac_ext >&5
10297 cat >conftest.$ac_ext <<_ACEOF
10298 #line $LINENO "configure"
10301 cat confdefs.h >>conftest.$ac_ext
10302 cat >>conftest.$ac_ext <<_ACEOF
10303 /* end confdefs.h. */
10304 $ac_includes_default
10308 static struct stat ac_aggr;
10309 if (sizeof ac_aggr.st_blksize)
10315 rm -f conftest.$ac_objext
10316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10317 (eval $ac_compile) 2>&5
10319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10320 (exit $ac_status); } &&
10321 { ac_try='test -s conftest.$ac_objext'
10322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10323 (eval $ac_try) 2>&5
10325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10326 (exit $ac_status); }; }; then
10327 ac_cv_member_struct_stat_st_blksize=yes
10329 echo "$as_me: failed program was:" >&5
10330 sed 's/^/| /' conftest.$ac_ext >&5
10332 ac_cv_member_struct_stat_st_blksize=no
10334 rm -f conftest.$ac_objext conftest.$ac_ext
10336 rm -f conftest.$ac_objext conftest.$ac_ext
10338 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
10339 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
10340 if test $ac_cv_member_struct_stat_st_blksize = yes; then
10342 cat >>confdefs.h <<_ACEOF
10343 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
10347 cat >>confdefs.h <<\_ACEOF
10348 #define HAVE_ST_BLKSIZE 1
10354 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
10355 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
10356 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
10357 echo $ECHO_N "(cached) $ECHO_C" >&6
10359 cat >conftest.$ac_ext <<_ACEOF
10360 #line $LINENO "configure"
10363 cat confdefs.h >>conftest.$ac_ext
10364 cat >>conftest.$ac_ext <<_ACEOF
10365 /* end confdefs.h. */
10366 $ac_includes_default
10370 static struct stat ac_aggr;
10371 if (ac_aggr.st_blocks)
10377 rm -f conftest.$ac_objext
10378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10379 (eval $ac_compile) 2>&5
10381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10382 (exit $ac_status); } &&
10383 { ac_try='test -s conftest.$ac_objext'
10384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10385 (eval $ac_try) 2>&5
10387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10388 (exit $ac_status); }; }; then
10389 ac_cv_member_struct_stat_st_blocks=yes
10391 echo "$as_me: failed program was:" >&5
10392 sed 's/^/| /' conftest.$ac_ext >&5
10394 cat >conftest.$ac_ext <<_ACEOF
10395 #line $LINENO "configure"
10398 cat confdefs.h >>conftest.$ac_ext
10399 cat >>conftest.$ac_ext <<_ACEOF
10400 /* end confdefs.h. */
10401 $ac_includes_default
10405 static struct stat ac_aggr;
10406 if (sizeof ac_aggr.st_blocks)
10412 rm -f conftest.$ac_objext
10413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10414 (eval $ac_compile) 2>&5
10416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10417 (exit $ac_status); } &&
10418 { ac_try='test -s conftest.$ac_objext'
10419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10420 (eval $ac_try) 2>&5
10422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10423 (exit $ac_status); }; }; then
10424 ac_cv_member_struct_stat_st_blocks=yes
10426 echo "$as_me: failed program was:" >&5
10427 sed 's/^/| /' conftest.$ac_ext >&5
10429 ac_cv_member_struct_stat_st_blocks=no
10431 rm -f conftest.$ac_objext conftest.$ac_ext
10433 rm -f conftest.$ac_objext conftest.$ac_ext
10435 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
10436 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
10437 if test $ac_cv_member_struct_stat_st_blocks = yes; then
10439 cat >>confdefs.h <<_ACEOF
10440 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
10444 cat >>confdefs.h <<\_ACEOF
10445 #define HAVE_ST_BLOCKS 1
10449 LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
10453 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10454 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10455 if test "${ac_cv_struct_tm+set}" = set; then
10456 echo $ECHO_N "(cached) $ECHO_C" >&6
10458 cat >conftest.$ac_ext <<_ACEOF
10459 #line $LINENO "configure"
10462 cat confdefs.h >>conftest.$ac_ext
10463 cat >>conftest.$ac_ext <<_ACEOF
10464 /* end confdefs.h. */
10465 #include <sys/types.h>
10471 struct tm *tp; tp->tm_sec;
10476 rm -f conftest.$ac_objext
10477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10478 (eval $ac_compile) 2>&5
10480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10481 (exit $ac_status); } &&
10482 { ac_try='test -s conftest.$ac_objext'
10483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10484 (eval $ac_try) 2>&5
10486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10487 (exit $ac_status); }; }; then
10488 ac_cv_struct_tm=time.h
10490 echo "$as_me: failed program was:" >&5
10491 sed 's/^/| /' conftest.$ac_ext >&5
10493 ac_cv_struct_tm=sys/time.h
10495 rm -f conftest.$ac_objext conftest.$ac_ext
10497 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10498 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10499 if test $ac_cv_struct_tm = sys/time.h; then
10501 cat >>confdefs.h <<\_ACEOF
10502 #define TM_IN_SYS_TIME 1
10507 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
10508 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
10509 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
10510 echo $ECHO_N "(cached) $ECHO_C" >&6
10512 cat >conftest.$ac_ext <<_ACEOF
10513 #line $LINENO "configure"
10516 cat confdefs.h >>conftest.$ac_ext
10517 cat >>conftest.$ac_ext <<_ACEOF
10518 /* end confdefs.h. */
10519 #include <sys/types.h>
10520 #include <$ac_cv_struct_tm>
10526 static struct tm ac_aggr;
10527 if (ac_aggr.tm_zone)
10533 rm -f conftest.$ac_objext
10534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10535 (eval $ac_compile) 2>&5
10537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10538 (exit $ac_status); } &&
10539 { ac_try='test -s conftest.$ac_objext'
10540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10541 (eval $ac_try) 2>&5
10543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10544 (exit $ac_status); }; }; then
10545 ac_cv_member_struct_tm_tm_zone=yes
10547 echo "$as_me: failed program was:" >&5
10548 sed 's/^/| /' conftest.$ac_ext >&5
10550 cat >conftest.$ac_ext <<_ACEOF
10551 #line $LINENO "configure"
10554 cat confdefs.h >>conftest.$ac_ext
10555 cat >>conftest.$ac_ext <<_ACEOF
10556 /* end confdefs.h. */
10557 #include <sys/types.h>
10558 #include <$ac_cv_struct_tm>
10564 static struct tm ac_aggr;
10565 if (sizeof ac_aggr.tm_zone)
10571 rm -f conftest.$ac_objext
10572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10573 (eval $ac_compile) 2>&5
10575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10576 (exit $ac_status); } &&
10577 { ac_try='test -s conftest.$ac_objext'
10578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10579 (eval $ac_try) 2>&5
10581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10582 (exit $ac_status); }; }; then
10583 ac_cv_member_struct_tm_tm_zone=yes
10585 echo "$as_me: failed program was:" >&5
10586 sed 's/^/| /' conftest.$ac_ext >&5
10588 ac_cv_member_struct_tm_tm_zone=no
10590 rm -f conftest.$ac_objext conftest.$ac_ext
10592 rm -f conftest.$ac_objext conftest.$ac_ext
10594 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
10595 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
10596 if test $ac_cv_member_struct_tm_tm_zone = yes; then
10598 cat >>confdefs.h <<_ACEOF
10599 #define HAVE_STRUCT_TM_TM_ZONE 1
10605 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
10607 cat >>confdefs.h <<\_ACEOF
10608 #define HAVE_TM_ZONE 1
10612 echo "$as_me:$LINENO: checking for tzname" >&5
10613 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
10614 if test "${ac_cv_var_tzname+set}" = set; then
10615 echo $ECHO_N "(cached) $ECHO_C" >&6
10617 cat >conftest.$ac_ext <<_ACEOF
10618 #line $LINENO "configure"
10621 cat confdefs.h >>conftest.$ac_ext
10622 cat >>conftest.$ac_ext <<_ACEOF
10623 /* end confdefs.h. */
10625 #ifndef tzname /* For SGI. */
10626 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
10637 rm -f conftest.$ac_objext conftest$ac_exeext
10638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10639 (eval $ac_link) 2>&5
10641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10642 (exit $ac_status); } &&
10643 { ac_try='test -s conftest$ac_exeext'
10644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10645 (eval $ac_try) 2>&5
10647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10648 (exit $ac_status); }; }; then
10649 ac_cv_var_tzname=yes
10651 echo "$as_me: failed program was:" >&5
10652 sed 's/^/| /' conftest.$ac_ext >&5
10654 ac_cv_var_tzname=no
10656 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10658 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
10659 echo "${ECHO_T}$ac_cv_var_tzname" >&6
10660 if test $ac_cv_var_tzname = yes; then
10662 cat >>confdefs.h <<\_ACEOF
10663 #define HAVE_TZNAME 1
10670 echo "$as_me:$LINENO: checking for utime.h" >&5
10671 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
10672 if test "${ba_cv_header_utime_h+set}" = set; then
10673 echo $ECHO_N "(cached) $ECHO_C" >&6
10675 cat >conftest.$ac_ext <<_ACEOF
10676 #line $LINENO "configure"
10679 cat confdefs.h >>conftest.$ac_ext
10680 cat >>conftest.$ac_ext <<_ACEOF
10681 /* end confdefs.h. */
10683 #include <sys/types.h>
10693 rm -f conftest.$ac_objext
10694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10695 (eval $ac_compile) 2>&5
10697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698 (exit $ac_status); } &&
10699 { ac_try='test -s conftest.$ac_objext'
10700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10701 (eval $ac_try) 2>&5
10703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10704 (exit $ac_status); }; }; then
10705 ba_cv_header_utime_h=yes
10707 echo "$as_me: failed program was:" >&5
10708 sed 's/^/| /' conftest.$ac_ext >&5
10710 ba_cv_header_utime_h=no
10712 rm -f conftest.$ac_objext conftest.$ac_ext
10714 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
10715 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
10716 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
10717 #define HAVE_UTIME_H 1
10721 echo "$as_me:$LINENO: checking for socklen_t" >&5
10722 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
10723 if test "${ba_cv_header_socklen_t+set}" = set; then
10724 echo $ECHO_N "(cached) $ECHO_C" >&6
10726 cat >conftest.$ac_ext <<_ACEOF
10727 #line $LINENO "configure"
10730 cat confdefs.h >>conftest.$ac_ext
10731 cat >>conftest.$ac_ext <<_ACEOF
10732 /* end confdefs.h. */
10734 #include <sys/types.h>
10735 #include <sys/socket.h>
10744 rm -f conftest.$ac_objext
10745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10746 (eval $ac_compile) 2>&5
10748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10749 (exit $ac_status); } &&
10750 { ac_try='test -s conftest.$ac_objext'
10751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10752 (eval $ac_try) 2>&5
10754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10755 (exit $ac_status); }; }; then
10756 ba_cv_header_socklen_t=yes
10758 echo "$as_me: failed program was:" >&5
10759 sed 's/^/| /' conftest.$ac_ext >&5
10761 ba_cv_header_socklen_t=no
10763 rm -f conftest.$ac_objext conftest.$ac_ext
10765 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
10766 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
10767 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
10768 #define HAVE_SOCKLEN_T 1
10772 echo "$as_me:$LINENO: checking for bigendian" >&5
10773 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
10774 if test "${ba_cv_bigendian+set}" = set; then
10775 echo $ECHO_N "(cached) $ECHO_C" >&6
10777 if test "$cross_compiling" = yes; then
10780 cat >conftest.$ac_ext <<_ACEOF
10781 #line $LINENO "configure"
10784 cat confdefs.h >>conftest.$ac_ext
10785 cat >>conftest.$ac_ext <<_ACEOF
10786 /* end confdefs.h. */
10787 main(){long a=1L; char *p=(char *)&a; exit(*p);}
10789 rm -f conftest$ac_exeext
10790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10791 (eval $ac_link) 2>&5
10793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10794 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10796 (eval $ac_try) 2>&5
10798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10799 (exit $ac_status); }; }; then
10800 ba_cv_bigendian=yes
10802 echo "$as_me: program exited with status $ac_status" >&5
10803 echo "$as_me: failed program was:" >&5
10804 sed 's/^/| /' conftest.$ac_ext >&5
10806 ( exit $ac_status )
10809 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10812 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
10813 echo "${ECHO_T}$ba_cv_bigendian" >&6
10814 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
10815 #define HAVE_BIGENDIAN 1
10820 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10821 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10822 if test "${ac_cv_c_const+set}" = set; then
10823 echo $ECHO_N "(cached) $ECHO_C" >&6
10825 cat >conftest.$ac_ext <<_ACEOF
10826 #line $LINENO "configure"
10829 cat confdefs.h >>conftest.$ac_ext
10830 cat >>conftest.$ac_ext <<_ACEOF
10831 /* end confdefs.h. */
10836 /* FIXME: Include the comments suggested by Paul. */
10837 #ifndef __cplusplus
10838 /* Ultrix mips cc rejects this. */
10839 typedef int charset[2];
10841 /* SunOS 4.1.1 cc rejects this. */
10842 char const *const *ccp;
10844 /* NEC SVR4.0.2 mips cc rejects this. */
10845 struct point {int x, y;};
10846 static struct point const zero = {0,0};
10847 /* AIX XL C 1.02.0.0 rejects this.
10848 It does not let you subtract one const X* pointer from another in
10849 an arm of an if-expression whose if-part is not a constant
10851 const char *g = "string";
10852 ccp = &g + (g ? g-g : 0);
10853 /* HPUX 7.0 cc rejects these. */
10856 ccp = (char const *const *) p;
10857 { /* SCO 3.2v4 cc rejects this. */
10859 char const *s = 0 ? (char *) 0 : (char const *) 0;
10863 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10864 int x[] = {25, 17};
10865 const int *foo = &x[0];
10868 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10869 typedef const int *iptr;
10873 { /* AIX XL C 1.02.0.0 rejects this saying
10874 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10875 struct s { int j; const int *ap[3]; };
10876 struct s *b; b->j = 5;
10878 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10879 const int foo = 10;
10887 rm -f conftest.$ac_objext
10888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10889 (eval $ac_compile) 2>&5
10891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10892 (exit $ac_status); } &&
10893 { ac_try='test -s conftest.$ac_objext'
10894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10895 (eval $ac_try) 2>&5
10897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10898 (exit $ac_status); }; }; then
10901 echo "$as_me: failed program was:" >&5
10902 sed 's/^/| /' conftest.$ac_ext >&5
10906 rm -f conftest.$ac_objext conftest.$ac_ext
10908 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10909 echo "${ECHO_T}$ac_cv_c_const" >&6
10910 if test $ac_cv_c_const = no; then
10912 cat >>confdefs.h <<\_ACEOF
10920 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
10921 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
10923 # The order of these tests is important.
10924 cat >conftest.$ac_ext <<_ACEOF
10925 #line $LINENO "configure"
10928 cat confdefs.h >>conftest.$ac_ext
10929 cat >>conftest.$ac_ext <<_ACEOF
10930 /* end confdefs.h. */
10931 #include <sys/statvfs.h>
10932 #include <sys/fstyp.h>
10934 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10935 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10937 grep -v '^ *+' conftest.er1 >conftest.err
10939 cat conftest.err >&5
10940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941 (exit $ac_status); } >/dev/null; then
10942 if test -s conftest.err; then
10943 ac_cpp_err=$ac_c_preproc_warn_flag
10950 if test -z "$ac_cpp_err"; then
10951 cat >>confdefs.h <<\_ACEOF
10952 #define FSTYPE_STATVFS 1
10956 echo "$as_me: failed program was:" >&5
10957 sed 's/^/| /' conftest.$ac_ext >&5
10961 rm -f conftest.err conftest.$ac_ext
10962 if test $fstype = no; then
10963 cat >conftest.$ac_ext <<_ACEOF
10964 #line $LINENO "configure"
10967 cat confdefs.h >>conftest.$ac_ext
10968 cat >>conftest.$ac_ext <<_ACEOF
10969 /* end confdefs.h. */
10970 #include <sys/statfs.h>
10971 #include <sys/fstyp.h>
10973 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10974 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10976 grep -v '^ *+' conftest.er1 >conftest.err
10978 cat conftest.err >&5
10979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10980 (exit $ac_status); } >/dev/null; then
10981 if test -s conftest.err; then
10982 ac_cpp_err=$ac_c_preproc_warn_flag
10989 if test -z "$ac_cpp_err"; then
10990 cat >>confdefs.h <<\_ACEOF
10991 #define FSTYPE_USG_STATFS 1
10995 echo "$as_me: failed program was:" >&5
10996 sed 's/^/| /' conftest.$ac_ext >&5
11000 rm -f conftest.err conftest.$ac_ext
11002 if test $fstype = no; then
11003 cat >conftest.$ac_ext <<_ACEOF
11004 #line $LINENO "configure"
11007 cat confdefs.h >>conftest.$ac_ext
11008 cat >>conftest.$ac_ext <<_ACEOF
11009 /* end confdefs.h. */
11010 #include <sys/statfs.h>
11011 #include <sys/vmount.h>
11013 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11014 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11016 grep -v '^ *+' conftest.er1 >conftest.err
11018 cat conftest.err >&5
11019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11020 (exit $ac_status); } >/dev/null; then
11021 if test -s conftest.err; then
11022 ac_cpp_err=$ac_c_preproc_warn_flag
11029 if test -z "$ac_cpp_err"; then
11030 cat >>confdefs.h <<\_ACEOF
11031 #define FSTYPE_AIX_STATFS 1
11035 echo "$as_me: failed program was:" >&5
11036 sed 's/^/| /' conftest.$ac_ext >&5
11040 rm -f conftest.err conftest.$ac_ext
11042 if test $fstype = no; then
11043 cat >conftest.$ac_ext <<_ACEOF
11044 #line $LINENO "configure"
11047 cat confdefs.h >>conftest.$ac_ext
11048 cat >>conftest.$ac_ext <<_ACEOF
11049 /* end confdefs.h. */
11050 #include <mntent.h>
11052 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11053 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11055 grep -v '^ *+' conftest.er1 >conftest.err
11057 cat conftest.err >&5
11058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11059 (exit $ac_status); } >/dev/null; then
11060 if test -s conftest.err; then
11061 ac_cpp_err=$ac_c_preproc_warn_flag
11068 if test -z "$ac_cpp_err"; then
11069 cat >>confdefs.h <<\_ACEOF
11070 #define FSTYPE_MNTENT 1
11074 echo "$as_me: failed program was:" >&5
11075 sed 's/^/| /' conftest.$ac_ext >&5
11079 rm -f conftest.err conftest.$ac_ext
11081 if test $fstype = no; then
11082 cat >conftest.$ac_ext <<_ACEOF
11083 #line $LINENO "configure"
11086 cat confdefs.h >>conftest.$ac_ext
11087 cat >>conftest.$ac_ext <<_ACEOF
11088 /* end confdefs.h. */
11089 #include <sys/mount.h>
11092 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11093 $EGREP "f_type;" >/dev/null 2>&1; then
11094 cat >>confdefs.h <<\_ACEOF
11095 #define FSTYPE_STATFS 1
11102 if test $fstype = no; then
11103 cat >conftest.$ac_ext <<_ACEOF
11104 #line $LINENO "configure"
11107 cat confdefs.h >>conftest.$ac_ext
11108 cat >>conftest.$ac_ext <<_ACEOF
11109 /* end confdefs.h. */
11110 #include <sys/mount.h>
11111 #include <sys/fs_types.h>
11113 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11114 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11116 grep -v '^ *+' conftest.er1 >conftest.err
11118 cat conftest.err >&5
11119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11120 (exit $ac_status); } >/dev/null; then
11121 if test -s conftest.err; then
11122 ac_cpp_err=$ac_c_preproc_warn_flag
11129 if test -z "$ac_cpp_err"; then
11130 cat >>confdefs.h <<\_ACEOF
11131 #define FSTYPE_GETMNT 1
11135 echo "$as_me: failed program was:" >&5
11136 sed 's/^/| /' conftest.$ac_ext >&5
11140 rm -f conftest.err conftest.$ac_ext
11142 echo "$as_me:$LINENO: result: $fstype" >&5
11143 echo "${ECHO_T}$fstype" >&6
11145 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
11146 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
11147 if test "${ac_cv_type_signal+set}" = set; then
11148 echo $ECHO_N "(cached) $ECHO_C" >&6
11150 cat >conftest.$ac_ext <<_ACEOF
11151 #line $LINENO "configure"
11154 cat confdefs.h >>conftest.$ac_ext
11155 cat >>conftest.$ac_ext <<_ACEOF
11156 /* end confdefs.h. */
11157 #include <sys/types.h>
11158 #include <signal.h>
11163 extern "C" void (*signal (int, void (*)(int)))(int);
11165 void (*signal ()) ();
11176 rm -f conftest.$ac_objext
11177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11178 (eval $ac_compile) 2>&5
11180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11181 (exit $ac_status); } &&
11182 { ac_try='test -s conftest.$ac_objext'
11183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11184 (eval $ac_try) 2>&5
11186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11187 (exit $ac_status); }; }; then
11188 ac_cv_type_signal=void
11190 echo "$as_me: failed program was:" >&5
11191 sed 's/^/| /' conftest.$ac_ext >&5
11193 ac_cv_type_signal=int
11195 rm -f conftest.$ac_objext conftest.$ac_ext
11197 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
11198 echo "${ECHO_T}$ac_cv_type_signal" >&6
11200 cat >>confdefs.h <<_ACEOF
11201 #define RETSIGTYPE $ac_cv_type_signal
11206 echo "$as_me:$LINENO: checking for type of signal functions" >&5
11207 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
11208 if test "${bash_cv_signal_vintage+set}" = set; then
11209 echo $ECHO_N "(cached) $ECHO_C" >&6
11212 cat >conftest.$ac_ext <<_ACEOF
11213 #line $LINENO "configure"
11216 cat confdefs.h >>conftest.$ac_ext
11217 cat >>conftest.$ac_ext <<_ACEOF
11218 /* end confdefs.h. */
11219 #include <signal.h>
11225 struct sigaction sa;
11226 sigemptyset(&ss); sigsuspend(&ss);
11227 sigaction(SIGINT, &sa, (struct sigaction *) 0);
11228 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
11234 rm -f conftest.$ac_objext conftest$ac_exeext
11235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11236 (eval $ac_link) 2>&5
11238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11239 (exit $ac_status); } &&
11240 { ac_try='test -s conftest$ac_exeext'
11241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11242 (eval $ac_try) 2>&5
11244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11245 (exit $ac_status); }; }; then
11246 bash_cv_signal_vintage=posix
11248 echo "$as_me: failed program was:" >&5
11249 sed 's/^/| /' conftest.$ac_ext >&5
11252 cat >conftest.$ac_ext <<_ACEOF
11253 #line $LINENO "configure"
11256 cat confdefs.h >>conftest.$ac_ext
11257 cat >>conftest.$ac_ext <<_ACEOF
11258 /* end confdefs.h. */
11259 #include <signal.h>
11264 int mask = sigmask(SIGINT);
11265 sigsetmask(mask); sigblock(mask); sigpause(mask);
11271 rm -f conftest.$ac_objext conftest$ac_exeext
11272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11273 (eval $ac_link) 2>&5
11275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11276 (exit $ac_status); } &&
11277 { ac_try='test -s conftest$ac_exeext'
11278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11279 (eval $ac_try) 2>&5
11281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11282 (exit $ac_status); }; }; then
11283 bash_cv_signal_vintage=4.2bsd
11285 echo "$as_me: failed program was:" >&5
11286 sed 's/^/| /' conftest.$ac_ext >&5
11289 cat >conftest.$ac_ext <<_ACEOF
11290 #line $LINENO "configure"
11293 cat confdefs.h >>conftest.$ac_ext
11294 cat >>conftest.$ac_ext <<_ACEOF
11295 /* end confdefs.h. */
11297 #include <signal.h>
11298 RETSIGTYPE foo() { }
11303 int mask = sigmask(SIGINT);
11304 sigset(SIGINT, foo); sigrelse(SIGINT);
11305 sighold(SIGINT); sigpause(SIGINT);
11311 rm -f conftest.$ac_objext conftest$ac_exeext
11312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11313 (eval $ac_link) 2>&5
11315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11316 (exit $ac_status); } &&
11317 { ac_try='test -s conftest$ac_exeext'
11318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11319 (eval $ac_try) 2>&5
11321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11322 (exit $ac_status); }; }; then
11323 bash_cv_signal_vintage=svr3
11325 echo "$as_me: failed program was:" >&5
11326 sed 's/^/| /' conftest.$ac_ext >&5
11328 bash_cv_signal_vintage=v7
11331 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11334 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11337 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11341 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
11342 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
11343 if test "$bash_cv_signal_vintage" = posix; then
11344 cat >>confdefs.h <<\_ACEOF
11345 #define HAVE_POSIX_SIGNALS 1
11348 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
11349 cat >>confdefs.h <<\_ACEOF
11350 #define HAVE_BSD_SIGNALS 1
11353 elif test "$bash_cv_signal_vintage" = svr3; then
11354 cat >>confdefs.h <<\_ACEOF
11355 #define HAVE_USG_SIGHOLD 1
11360 echo "$as_me:$LINENO: checking for mode_t" >&5
11361 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
11362 if test "${ac_cv_type_mode_t+set}" = set; then
11363 echo $ECHO_N "(cached) $ECHO_C" >&6
11365 cat >conftest.$ac_ext <<_ACEOF
11366 #line $LINENO "configure"
11369 cat confdefs.h >>conftest.$ac_ext
11370 cat >>conftest.$ac_ext <<_ACEOF
11371 /* end confdefs.h. */
11372 $ac_includes_default
11378 if (sizeof (mode_t))
11384 rm -f conftest.$ac_objext
11385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11386 (eval $ac_compile) 2>&5
11388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11389 (exit $ac_status); } &&
11390 { ac_try='test -s conftest.$ac_objext'
11391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11392 (eval $ac_try) 2>&5
11394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11395 (exit $ac_status); }; }; then
11396 ac_cv_type_mode_t=yes
11398 echo "$as_me: failed program was:" >&5
11399 sed 's/^/| /' conftest.$ac_ext >&5
11401 ac_cv_type_mode_t=no
11403 rm -f conftest.$ac_objext conftest.$ac_ext
11405 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11406 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
11407 if test $ac_cv_type_mode_t = yes; then
11411 cat >>confdefs.h <<_ACEOF
11417 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11418 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
11419 if test "${ac_cv_type_uid_t+set}" = set; then
11420 echo $ECHO_N "(cached) $ECHO_C" >&6
11422 cat >conftest.$ac_ext <<_ACEOF
11423 #line $LINENO "configure"
11426 cat confdefs.h >>conftest.$ac_ext
11427 cat >>conftest.$ac_ext <<_ACEOF
11428 /* end confdefs.h. */
11429 #include <sys/types.h>
11432 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11433 $EGREP "uid_t" >/dev/null 2>&1; then
11434 ac_cv_type_uid_t=yes
11436 ac_cv_type_uid_t=no
11441 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11442 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
11443 if test $ac_cv_type_uid_t = no; then
11445 cat >>confdefs.h <<\_ACEOF
11450 cat >>confdefs.h <<\_ACEOF
11456 echo "$as_me:$LINENO: checking for size_t" >&5
11457 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
11458 if test "${ac_cv_type_size_t+set}" = set; then
11459 echo $ECHO_N "(cached) $ECHO_C" >&6
11461 cat >conftest.$ac_ext <<_ACEOF
11462 #line $LINENO "configure"
11465 cat confdefs.h >>conftest.$ac_ext
11466 cat >>conftest.$ac_ext <<_ACEOF
11467 /* end confdefs.h. */
11468 $ac_includes_default
11474 if (sizeof (size_t))
11480 rm -f conftest.$ac_objext
11481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11482 (eval $ac_compile) 2>&5
11484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11485 (exit $ac_status); } &&
11486 { ac_try='test -s conftest.$ac_objext'
11487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11488 (eval $ac_try) 2>&5
11490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11491 (exit $ac_status); }; }; then
11492 ac_cv_type_size_t=yes
11494 echo "$as_me: failed program was:" >&5
11495 sed 's/^/| /' conftest.$ac_ext >&5
11497 ac_cv_type_size_t=no
11499 rm -f conftest.$ac_objext conftest.$ac_ext
11501 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11502 echo "${ECHO_T}$ac_cv_type_size_t" >&6
11503 if test $ac_cv_type_size_t = yes; then
11507 cat >>confdefs.h <<_ACEOF
11508 #define size_t unsigned
11513 echo "$as_me:$LINENO: checking for pid_t" >&5
11514 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11515 if test "${ac_cv_type_pid_t+set}" = set; then
11516 echo $ECHO_N "(cached) $ECHO_C" >&6
11518 cat >conftest.$ac_ext <<_ACEOF
11519 #line $LINENO "configure"
11522 cat confdefs.h >>conftest.$ac_ext
11523 cat >>conftest.$ac_ext <<_ACEOF
11524 /* end confdefs.h. */
11525 $ac_includes_default
11531 if (sizeof (pid_t))
11537 rm -f conftest.$ac_objext
11538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11539 (eval $ac_compile) 2>&5
11541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11542 (exit $ac_status); } &&
11543 { ac_try='test -s conftest.$ac_objext'
11544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11545 (eval $ac_try) 2>&5
11547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11548 (exit $ac_status); }; }; then
11549 ac_cv_type_pid_t=yes
11551 echo "$as_me: failed program was:" >&5
11552 sed 's/^/| /' conftest.$ac_ext >&5
11554 ac_cv_type_pid_t=no
11556 rm -f conftest.$ac_objext conftest.$ac_ext
11558 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11559 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11560 if test $ac_cv_type_pid_t = yes; then
11564 cat >>confdefs.h <<_ACEOF
11570 echo "$as_me:$LINENO: checking for off_t" >&5
11571 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
11572 if test "${ac_cv_type_off_t+set}" = set; then
11573 echo $ECHO_N "(cached) $ECHO_C" >&6
11575 cat >conftest.$ac_ext <<_ACEOF
11576 #line $LINENO "configure"
11579 cat confdefs.h >>conftest.$ac_ext
11580 cat >>conftest.$ac_ext <<_ACEOF
11581 /* end confdefs.h. */
11582 $ac_includes_default
11588 if (sizeof (off_t))
11594 rm -f conftest.$ac_objext
11595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11596 (eval $ac_compile) 2>&5
11598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11599 (exit $ac_status); } &&
11600 { ac_try='test -s conftest.$ac_objext'
11601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11602 (eval $ac_try) 2>&5
11604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11605 (exit $ac_status); }; }; then
11606 ac_cv_type_off_t=yes
11608 echo "$as_me: failed program was:" >&5
11609 sed 's/^/| /' conftest.$ac_ext >&5
11611 ac_cv_type_off_t=no
11613 rm -f conftest.$ac_objext conftest.$ac_ext
11615 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11616 echo "${ECHO_T}$ac_cv_type_off_t" >&6
11617 if test $ac_cv_type_off_t = yes; then
11621 cat >>confdefs.h <<_ACEOF
11627 echo "$as_me:$LINENO: checking for ino_t" >&5
11628 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
11629 if test "${ac_cv_type_ino_t+set}" = set; then
11630 echo $ECHO_N "(cached) $ECHO_C" >&6
11632 cat >conftest.$ac_ext <<_ACEOF
11633 #line $LINENO "configure"
11636 cat confdefs.h >>conftest.$ac_ext
11637 cat >>conftest.$ac_ext <<_ACEOF
11638 /* end confdefs.h. */
11639 $ac_includes_default
11645 if (sizeof (ino_t))
11651 rm -f conftest.$ac_objext
11652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11653 (eval $ac_compile) 2>&5
11655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11656 (exit $ac_status); } &&
11657 { ac_try='test -s conftest.$ac_objext'
11658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11659 (eval $ac_try) 2>&5
11661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11662 (exit $ac_status); }; }; then
11663 ac_cv_type_ino_t=yes
11665 echo "$as_me: failed program was:" >&5
11666 sed 's/^/| /' conftest.$ac_ext >&5
11668 ac_cv_type_ino_t=no
11670 rm -f conftest.$ac_objext conftest.$ac_ext
11672 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
11673 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
11674 if test $ac_cv_type_ino_t = yes; then
11678 cat >>confdefs.h <<_ACEOF
11679 #define ino_t unsigned long
11684 echo "$as_me:$LINENO: checking for dev_t" >&5
11685 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
11686 if test "${ac_cv_type_dev_t+set}" = set; then
11687 echo $ECHO_N "(cached) $ECHO_C" >&6
11689 cat >conftest.$ac_ext <<_ACEOF
11690 #line $LINENO "configure"
11693 cat confdefs.h >>conftest.$ac_ext
11694 cat >>conftest.$ac_ext <<_ACEOF
11695 /* end confdefs.h. */
11696 $ac_includes_default
11702 if (sizeof (dev_t))
11708 rm -f conftest.$ac_objext
11709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11710 (eval $ac_compile) 2>&5
11712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11713 (exit $ac_status); } &&
11714 { ac_try='test -s conftest.$ac_objext'
11715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11716 (eval $ac_try) 2>&5
11718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11719 (exit $ac_status); }; }; then
11720 ac_cv_type_dev_t=yes
11722 echo "$as_me: failed program was:" >&5
11723 sed 's/^/| /' conftest.$ac_ext >&5
11725 ac_cv_type_dev_t=no
11727 rm -f conftest.$ac_objext conftest.$ac_ext
11729 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
11730 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
11731 if test $ac_cv_type_dev_t = yes; then
11735 cat >>confdefs.h <<_ACEOF
11736 #define dev_t unsigned long
11741 echo "$as_me:$LINENO: checking for daddr_t" >&5
11742 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
11743 if test "${ac_cv_type_daddr_t+set}" = set; then
11744 echo $ECHO_N "(cached) $ECHO_C" >&6
11746 cat >conftest.$ac_ext <<_ACEOF
11747 #line $LINENO "configure"
11750 cat confdefs.h >>conftest.$ac_ext
11751 cat >>conftest.$ac_ext <<_ACEOF
11752 /* end confdefs.h. */
11753 $ac_includes_default
11759 if (sizeof (daddr_t))
11765 rm -f conftest.$ac_objext
11766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11767 (eval $ac_compile) 2>&5
11769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11770 (exit $ac_status); } &&
11771 { ac_try='test -s conftest.$ac_objext'
11772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11773 (eval $ac_try) 2>&5
11775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11776 (exit $ac_status); }; }; then
11777 ac_cv_type_daddr_t=yes
11779 echo "$as_me: failed program was:" >&5
11780 sed 's/^/| /' conftest.$ac_ext >&5
11782 ac_cv_type_daddr_t=no
11784 rm -f conftest.$ac_objext conftest.$ac_ext
11786 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
11787 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
11788 if test $ac_cv_type_daddr_t = yes; then
11792 cat >>confdefs.h <<_ACEOF
11793 #define daddr_t long
11798 echo "$as_me:$LINENO: checking for major_t" >&5
11799 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
11800 if test "${ac_cv_type_major_t+set}" = set; then
11801 echo $ECHO_N "(cached) $ECHO_C" >&6
11803 cat >conftest.$ac_ext <<_ACEOF
11804 #line $LINENO "configure"
11807 cat confdefs.h >>conftest.$ac_ext
11808 cat >>conftest.$ac_ext <<_ACEOF
11809 /* end confdefs.h. */
11810 $ac_includes_default
11816 if (sizeof (major_t))
11822 rm -f conftest.$ac_objext
11823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11824 (eval $ac_compile) 2>&5
11826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11827 (exit $ac_status); } &&
11828 { ac_try='test -s conftest.$ac_objext'
11829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11830 (eval $ac_try) 2>&5
11832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11833 (exit $ac_status); }; }; then
11834 ac_cv_type_major_t=yes
11836 echo "$as_me: failed program was:" >&5
11837 sed 's/^/| /' conftest.$ac_ext >&5
11839 ac_cv_type_major_t=no
11841 rm -f conftest.$ac_objext conftest.$ac_ext
11843 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
11844 echo "${ECHO_T}$ac_cv_type_major_t" >&6
11845 if test $ac_cv_type_major_t = yes; then
11849 cat >>confdefs.h <<_ACEOF
11850 #define major_t int
11855 echo "$as_me:$LINENO: checking for minor_t" >&5
11856 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
11857 if test "${ac_cv_type_minor_t+set}" = set; then
11858 echo $ECHO_N "(cached) $ECHO_C" >&6
11860 cat >conftest.$ac_ext <<_ACEOF
11861 #line $LINENO "configure"
11864 cat confdefs.h >>conftest.$ac_ext
11865 cat >>conftest.$ac_ext <<_ACEOF
11866 /* end confdefs.h. */
11867 $ac_includes_default
11873 if (sizeof (minor_t))
11879 rm -f conftest.$ac_objext
11880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11881 (eval $ac_compile) 2>&5
11883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11884 (exit $ac_status); } &&
11885 { ac_try='test -s conftest.$ac_objext'
11886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11887 (eval $ac_try) 2>&5
11889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890 (exit $ac_status); }; }; then
11891 ac_cv_type_minor_t=yes
11893 echo "$as_me: failed program was:" >&5
11894 sed 's/^/| /' conftest.$ac_ext >&5
11896 ac_cv_type_minor_t=no
11898 rm -f conftest.$ac_objext conftest.$ac_ext
11900 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
11901 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
11902 if test $ac_cv_type_minor_t = yes; then
11906 cat >>confdefs.h <<_ACEOF
11907 #define minor_t int
11912 echo "$as_me:$LINENO: checking for ssize_t" >&5
11913 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
11914 if test "${ac_cv_type_ssize_t+set}" = set; then
11915 echo $ECHO_N "(cached) $ECHO_C" >&6
11917 cat >conftest.$ac_ext <<_ACEOF
11918 #line $LINENO "configure"
11921 cat confdefs.h >>conftest.$ac_ext
11922 cat >>conftest.$ac_ext <<_ACEOF
11923 /* end confdefs.h. */
11924 $ac_includes_default
11930 if (sizeof (ssize_t))
11936 rm -f conftest.$ac_objext
11937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11938 (eval $ac_compile) 2>&5
11940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941 (exit $ac_status); } &&
11942 { ac_try='test -s conftest.$ac_objext'
11943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11944 (eval $ac_try) 2>&5
11946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11947 (exit $ac_status); }; }; then
11948 ac_cv_type_ssize_t=yes
11950 echo "$as_me: failed program was:" >&5
11951 sed 's/^/| /' conftest.$ac_ext >&5
11953 ac_cv_type_ssize_t=no
11955 rm -f conftest.$ac_objext conftest.$ac_ext
11957 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
11958 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
11959 if test $ac_cv_type_ssize_t = yes; then
11963 cat >>confdefs.h <<_ACEOF
11964 #define ssize_t int
11969 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
11970 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
11971 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
11972 echo $ECHO_N "(cached) $ECHO_C" >&6
11974 cat >conftest.$ac_ext <<_ACEOF
11975 #line $LINENO "configure"
11978 cat confdefs.h >>conftest.$ac_ext
11979 cat >>conftest.$ac_ext <<_ACEOF
11980 /* end confdefs.h. */
11981 $ac_includes_default
11985 static struct stat ac_aggr;
11986 if (ac_aggr.st_blocks)
11992 rm -f conftest.$ac_objext
11993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11994 (eval $ac_compile) 2>&5
11996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11997 (exit $ac_status); } &&
11998 { ac_try='test -s conftest.$ac_objext'
11999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12000 (eval $ac_try) 2>&5
12002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12003 (exit $ac_status); }; }; then
12004 ac_cv_member_struct_stat_st_blocks=yes
12006 echo "$as_me: failed program was:" >&5
12007 sed 's/^/| /' conftest.$ac_ext >&5
12009 cat >conftest.$ac_ext <<_ACEOF
12010 #line $LINENO "configure"
12013 cat confdefs.h >>conftest.$ac_ext
12014 cat >>conftest.$ac_ext <<_ACEOF
12015 /* end confdefs.h. */
12016 $ac_includes_default
12020 static struct stat ac_aggr;
12021 if (sizeof ac_aggr.st_blocks)
12027 rm -f conftest.$ac_objext
12028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12029 (eval $ac_compile) 2>&5
12031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12032 (exit $ac_status); } &&
12033 { ac_try='test -s conftest.$ac_objext'
12034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12035 (eval $ac_try) 2>&5
12037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12038 (exit $ac_status); }; }; then
12039 ac_cv_member_struct_stat_st_blocks=yes
12041 echo "$as_me: failed program was:" >&5
12042 sed 's/^/| /' conftest.$ac_ext >&5
12044 ac_cv_member_struct_stat_st_blocks=no
12046 rm -f conftest.$ac_objext conftest.$ac_ext
12048 rm -f conftest.$ac_objext conftest.$ac_ext
12050 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
12051 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
12052 if test $ac_cv_member_struct_stat_st_blocks = yes; then
12054 cat >>confdefs.h <<_ACEOF
12055 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12059 cat >>confdefs.h <<\_ACEOF
12060 #define HAVE_ST_BLOCKS 1
12064 LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
12069 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
12070 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
12071 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
12072 echo $ECHO_N "(cached) $ECHO_C" >&6
12074 cat >conftest.$ac_ext <<_ACEOF
12075 #line $LINENO "configure"
12078 cat confdefs.h >>conftest.$ac_ext
12079 cat >>conftest.$ac_ext <<_ACEOF
12080 /* end confdefs.h. */
12081 $ac_includes_default
12085 static struct stat ac_aggr;
12086 if (ac_aggr.st_rdev)
12092 rm -f conftest.$ac_objext
12093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12094 (eval $ac_compile) 2>&5
12096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12097 (exit $ac_status); } &&
12098 { ac_try='test -s conftest.$ac_objext'
12099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12100 (eval $ac_try) 2>&5
12102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12103 (exit $ac_status); }; }; then
12104 ac_cv_member_struct_stat_st_rdev=yes
12106 echo "$as_me: failed program was:" >&5
12107 sed 's/^/| /' conftest.$ac_ext >&5
12109 cat >conftest.$ac_ext <<_ACEOF
12110 #line $LINENO "configure"
12113 cat confdefs.h >>conftest.$ac_ext
12114 cat >>conftest.$ac_ext <<_ACEOF
12115 /* end confdefs.h. */
12116 $ac_includes_default
12120 static struct stat ac_aggr;
12121 if (sizeof ac_aggr.st_rdev)
12127 rm -f conftest.$ac_objext
12128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12129 (eval $ac_compile) 2>&5
12131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12132 (exit $ac_status); } &&
12133 { ac_try='test -s conftest.$ac_objext'
12134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12135 (eval $ac_try) 2>&5
12137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12138 (exit $ac_status); }; }; then
12139 ac_cv_member_struct_stat_st_rdev=yes
12141 echo "$as_me: failed program was:" >&5
12142 sed 's/^/| /' conftest.$ac_ext >&5
12144 ac_cv_member_struct_stat_st_rdev=no
12146 rm -f conftest.$ac_objext conftest.$ac_ext
12148 rm -f conftest.$ac_objext conftest.$ac_ext
12150 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
12151 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
12152 if test $ac_cv_member_struct_stat_st_rdev = yes; then
12154 cat >>confdefs.h <<_ACEOF
12155 #define HAVE_STRUCT_STAT_ST_RDEV 1
12159 cat >>confdefs.h <<\_ACEOF
12160 #define HAVE_ST_RDEV 1
12166 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12167 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
12168 if test "${ac_cv_struct_tm+set}" = set; then
12169 echo $ECHO_N "(cached) $ECHO_C" >&6
12171 cat >conftest.$ac_ext <<_ACEOF
12172 #line $LINENO "configure"
12175 cat confdefs.h >>conftest.$ac_ext
12176 cat >>conftest.$ac_ext <<_ACEOF
12177 /* end confdefs.h. */
12178 #include <sys/types.h>
12184 struct tm *tp; tp->tm_sec;
12189 rm -f conftest.$ac_objext
12190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12191 (eval $ac_compile) 2>&5
12193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12194 (exit $ac_status); } &&
12195 { ac_try='test -s conftest.$ac_objext'
12196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12197 (eval $ac_try) 2>&5
12199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12200 (exit $ac_status); }; }; then
12201 ac_cv_struct_tm=time.h
12203 echo "$as_me: failed program was:" >&5
12204 sed 's/^/| /' conftest.$ac_ext >&5
12206 ac_cv_struct_tm=sys/time.h
12208 rm -f conftest.$ac_objext conftest.$ac_ext
12210 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12211 echo "${ECHO_T}$ac_cv_struct_tm" >&6
12212 if test $ac_cv_struct_tm = sys/time.h; then
12214 cat >>confdefs.h <<\_ACEOF
12215 #define TM_IN_SYS_TIME 1
12220 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12221 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12222 if test "${ac_cv_c_const+set}" = set; then
12223 echo $ECHO_N "(cached) $ECHO_C" >&6
12225 cat >conftest.$ac_ext <<_ACEOF
12226 #line $LINENO "configure"
12229 cat confdefs.h >>conftest.$ac_ext
12230 cat >>conftest.$ac_ext <<_ACEOF
12231 /* end confdefs.h. */
12236 /* FIXME: Include the comments suggested by Paul. */
12237 #ifndef __cplusplus
12238 /* Ultrix mips cc rejects this. */
12239 typedef int charset[2];
12241 /* SunOS 4.1.1 cc rejects this. */
12242 char const *const *ccp;
12244 /* NEC SVR4.0.2 mips cc rejects this. */
12245 struct point {int x, y;};
12246 static struct point const zero = {0,0};
12247 /* AIX XL C 1.02.0.0 rejects this.
12248 It does not let you subtract one const X* pointer from another in
12249 an arm of an if-expression whose if-part is not a constant
12251 const char *g = "string";
12252 ccp = &g + (g ? g-g : 0);
12253 /* HPUX 7.0 cc rejects these. */
12256 ccp = (char const *const *) p;
12257 { /* SCO 3.2v4 cc rejects this. */
12259 char const *s = 0 ? (char *) 0 : (char const *) 0;
12263 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12264 int x[] = {25, 17};
12265 const int *foo = &x[0];
12268 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12269 typedef const int *iptr;
12273 { /* AIX XL C 1.02.0.0 rejects this saying
12274 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12275 struct s { int j; const int *ap[3]; };
12276 struct s *b; b->j = 5;
12278 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12279 const int foo = 10;
12287 rm -f conftest.$ac_objext
12288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12289 (eval $ac_compile) 2>&5
12291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12292 (exit $ac_status); } &&
12293 { ac_try='test -s conftest.$ac_objext'
12294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12295 (eval $ac_try) 2>&5
12297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12298 (exit $ac_status); }; }; then
12301 echo "$as_me: failed program was:" >&5
12302 sed 's/^/| /' conftest.$ac_ext >&5
12306 rm -f conftest.$ac_objext conftest.$ac_ext
12308 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12309 echo "${ECHO_T}$ac_cv_c_const" >&6
12310 if test $ac_cv_c_const = no; then
12312 cat >>confdefs.h <<\_ACEOF
12320 echo "$as_me:$LINENO: checking for char" >&5
12321 echo $ECHO_N "checking for char... $ECHO_C" >&6
12322 if test "${ac_cv_type_char+set}" = set; then
12323 echo $ECHO_N "(cached) $ECHO_C" >&6
12325 cat >conftest.$ac_ext <<_ACEOF
12326 #line $LINENO "configure"
12329 cat confdefs.h >>conftest.$ac_ext
12330 cat >>conftest.$ac_ext <<_ACEOF
12331 /* end confdefs.h. */
12332 $ac_includes_default
12344 rm -f conftest.$ac_objext
12345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12346 (eval $ac_compile) 2>&5
12348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349 (exit $ac_status); } &&
12350 { ac_try='test -s conftest.$ac_objext'
12351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12352 (eval $ac_try) 2>&5
12354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12355 (exit $ac_status); }; }; then
12356 ac_cv_type_char=yes
12358 echo "$as_me: failed program was:" >&5
12359 sed 's/^/| /' conftest.$ac_ext >&5
12363 rm -f conftest.$ac_objext conftest.$ac_ext
12365 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
12366 echo "${ECHO_T}$ac_cv_type_char" >&6
12368 echo "$as_me:$LINENO: checking size of char" >&5
12369 echo $ECHO_N "checking size of char... $ECHO_C" >&6
12370 if test "${ac_cv_sizeof_char+set}" = set; then
12371 echo $ECHO_N "(cached) $ECHO_C" >&6
12373 if test "$ac_cv_type_char" = yes; then
12374 # The cast to unsigned long works around a bug in the HP C Compiler
12375 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12376 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12377 # This bug is HP SR number 8606223364.
12378 if test "$cross_compiling" = yes; then
12379 # Depending upon the size, compute the lo and hi bounds.
12380 cat >conftest.$ac_ext <<_ACEOF
12381 #line $LINENO "configure"
12384 cat confdefs.h >>conftest.$ac_ext
12385 cat >>conftest.$ac_ext <<_ACEOF
12386 /* end confdefs.h. */
12387 $ac_includes_default
12391 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
12398 rm -f conftest.$ac_objext
12399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12400 (eval $ac_compile) 2>&5
12402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12403 (exit $ac_status); } &&
12404 { ac_try='test -s conftest.$ac_objext'
12405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12406 (eval $ac_try) 2>&5
12408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12409 (exit $ac_status); }; }; then
12412 cat >conftest.$ac_ext <<_ACEOF
12413 #line $LINENO "configure"
12416 cat confdefs.h >>conftest.$ac_ext
12417 cat >>conftest.$ac_ext <<_ACEOF
12418 /* end confdefs.h. */
12419 $ac_includes_default
12423 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12430 rm -f conftest.$ac_objext
12431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12432 (eval $ac_compile) 2>&5
12434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435 (exit $ac_status); } &&
12436 { ac_try='test -s conftest.$ac_objext'
12437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12438 (eval $ac_try) 2>&5
12440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12441 (exit $ac_status); }; }; then
12442 ac_hi=$ac_mid; break
12444 echo "$as_me: failed program was:" >&5
12445 sed 's/^/| /' conftest.$ac_ext >&5
12447 ac_lo=`expr $ac_mid + 1`
12448 if test $ac_lo -le $ac_mid; then
12452 ac_mid=`expr 2 '*' $ac_mid + 1`
12454 rm -f conftest.$ac_objext conftest.$ac_ext
12457 echo "$as_me: failed program was:" >&5
12458 sed 's/^/| /' conftest.$ac_ext >&5
12460 cat >conftest.$ac_ext <<_ACEOF
12461 #line $LINENO "configure"
12464 cat confdefs.h >>conftest.$ac_ext
12465 cat >>conftest.$ac_ext <<_ACEOF
12466 /* end confdefs.h. */
12467 $ac_includes_default
12471 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
12478 rm -f conftest.$ac_objext
12479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12480 (eval $ac_compile) 2>&5
12482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12483 (exit $ac_status); } &&
12484 { ac_try='test -s conftest.$ac_objext'
12485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12486 (eval $ac_try) 2>&5
12488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12489 (exit $ac_status); }; }; then
12492 cat >conftest.$ac_ext <<_ACEOF
12493 #line $LINENO "configure"
12496 cat confdefs.h >>conftest.$ac_ext
12497 cat >>conftest.$ac_ext <<_ACEOF
12498 /* end confdefs.h. */
12499 $ac_includes_default
12503 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
12510 rm -f conftest.$ac_objext
12511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12512 (eval $ac_compile) 2>&5
12514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12515 (exit $ac_status); } &&
12516 { ac_try='test -s conftest.$ac_objext'
12517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12518 (eval $ac_try) 2>&5
12520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12521 (exit $ac_status); }; }; then
12522 ac_lo=$ac_mid; break
12524 echo "$as_me: failed program was:" >&5
12525 sed 's/^/| /' conftest.$ac_ext >&5
12527 ac_hi=`expr '(' $ac_mid ')' - 1`
12528 if test $ac_mid -le $ac_hi; then
12532 ac_mid=`expr 2 '*' $ac_mid`
12534 rm -f conftest.$ac_objext conftest.$ac_ext
12537 echo "$as_me: failed program was:" >&5
12538 sed 's/^/| /' conftest.$ac_ext >&5
12542 rm -f conftest.$ac_objext conftest.$ac_ext
12544 rm -f conftest.$ac_objext conftest.$ac_ext
12545 # Binary search between lo and hi bounds.
12546 while test "x$ac_lo" != "x$ac_hi"; do
12547 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12548 cat >conftest.$ac_ext <<_ACEOF
12549 #line $LINENO "configure"
12552 cat confdefs.h >>conftest.$ac_ext
12553 cat >>conftest.$ac_ext <<_ACEOF
12554 /* end confdefs.h. */
12555 $ac_includes_default
12559 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12566 rm -f conftest.$ac_objext
12567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12568 (eval $ac_compile) 2>&5
12570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12571 (exit $ac_status); } &&
12572 { ac_try='test -s conftest.$ac_objext'
12573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12574 (eval $ac_try) 2>&5
12576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577 (exit $ac_status); }; }; then
12580 echo "$as_me: failed program was:" >&5
12581 sed 's/^/| /' conftest.$ac_ext >&5
12583 ac_lo=`expr '(' $ac_mid ')' + 1`
12585 rm -f conftest.$ac_objext conftest.$ac_ext
12588 ?*) ac_cv_sizeof_char=$ac_lo;;
12589 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12590 See \`config.log' for more details." >&5
12591 echo "$as_me: error: cannot compute sizeof (char), 77
12592 See \`config.log' for more details." >&2;}
12593 { (exit 1); exit 1; }; } ;;
12596 if test "$cross_compiling" = yes; then
12597 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12598 See \`config.log' for more details." >&5
12599 echo "$as_me: error: cannot run test program while cross compiling
12600 See \`config.log' for more details." >&2;}
12601 { (exit 1); exit 1; }; }
12603 cat >conftest.$ac_ext <<_ACEOF
12604 #line $LINENO "configure"
12607 cat confdefs.h >>conftest.$ac_ext
12608 cat >>conftest.$ac_ext <<_ACEOF
12609 /* end confdefs.h. */
12610 $ac_includes_default
12611 long longval () { return (long) (sizeof (char)); }
12612 unsigned long ulongval () { return (long) (sizeof (char)); }
12614 #include <stdlib.h>
12619 FILE *f = fopen ("conftest.val", "w");
12622 if (((long) (sizeof (char))) < 0)
12624 long i = longval ();
12625 if (i != ((long) (sizeof (char))))
12627 fprintf (f, "%ld\n", i);
12631 unsigned long i = ulongval ();
12632 if (i != ((long) (sizeof (char))))
12634 fprintf (f, "%lu\n", i);
12636 exit (ferror (f) || fclose (f) != 0);
12642 rm -f conftest$ac_exeext
12643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12644 (eval $ac_link) 2>&5
12646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12649 (eval $ac_try) 2>&5
12651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12652 (exit $ac_status); }; }; then
12653 ac_cv_sizeof_char=`cat conftest.val`
12655 echo "$as_me: program exited with status $ac_status" >&5
12656 echo "$as_me: failed program was:" >&5
12657 sed 's/^/| /' conftest.$ac_ext >&5
12659 ( exit $ac_status )
12660 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12661 See \`config.log' for more details." >&5
12662 echo "$as_me: error: cannot compute sizeof (char), 77
12663 See \`config.log' for more details." >&2;}
12664 { (exit 1); exit 1; }; }
12666 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12671 ac_cv_sizeof_char=0
12674 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
12675 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
12676 cat >>confdefs.h <<_ACEOF
12677 #define SIZEOF_CHAR $ac_cv_sizeof_char
12681 echo "$as_me:$LINENO: checking for short int" >&5
12682 echo $ECHO_N "checking for short int... $ECHO_C" >&6
12683 if test "${ac_cv_type_short_int+set}" = set; then
12684 echo $ECHO_N "(cached) $ECHO_C" >&6
12686 cat >conftest.$ac_ext <<_ACEOF
12687 #line $LINENO "configure"
12690 cat confdefs.h >>conftest.$ac_ext
12691 cat >>conftest.$ac_ext <<_ACEOF
12692 /* end confdefs.h. */
12693 $ac_includes_default
12697 if ((short int *) 0)
12699 if (sizeof (short int))
12705 rm -f conftest.$ac_objext
12706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12707 (eval $ac_compile) 2>&5
12709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12710 (exit $ac_status); } &&
12711 { ac_try='test -s conftest.$ac_objext'
12712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12713 (eval $ac_try) 2>&5
12715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12716 (exit $ac_status); }; }; then
12717 ac_cv_type_short_int=yes
12719 echo "$as_me: failed program was:" >&5
12720 sed 's/^/| /' conftest.$ac_ext >&5
12722 ac_cv_type_short_int=no
12724 rm -f conftest.$ac_objext conftest.$ac_ext
12726 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
12727 echo "${ECHO_T}$ac_cv_type_short_int" >&6
12729 echo "$as_me:$LINENO: checking size of short int" >&5
12730 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
12731 if test "${ac_cv_sizeof_short_int+set}" = set; then
12732 echo $ECHO_N "(cached) $ECHO_C" >&6
12734 if test "$ac_cv_type_short_int" = yes; then
12735 # The cast to unsigned long works around a bug in the HP C Compiler
12736 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12737 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12738 # This bug is HP SR number 8606223364.
12739 if test "$cross_compiling" = yes; then
12740 # Depending upon the size, compute the lo and hi bounds.
12741 cat >conftest.$ac_ext <<_ACEOF
12742 #line $LINENO "configure"
12745 cat confdefs.h >>conftest.$ac_ext
12746 cat >>conftest.$ac_ext <<_ACEOF
12747 /* end confdefs.h. */
12748 $ac_includes_default
12752 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
12759 rm -f conftest.$ac_objext
12760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12761 (eval $ac_compile) 2>&5
12763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12764 (exit $ac_status); } &&
12765 { ac_try='test -s conftest.$ac_objext'
12766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12767 (eval $ac_try) 2>&5
12769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12770 (exit $ac_status); }; }; then
12773 cat >conftest.$ac_ext <<_ACEOF
12774 #line $LINENO "configure"
12777 cat confdefs.h >>conftest.$ac_ext
12778 cat >>conftest.$ac_ext <<_ACEOF
12779 /* end confdefs.h. */
12780 $ac_includes_default
12784 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12791 rm -f conftest.$ac_objext
12792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12793 (eval $ac_compile) 2>&5
12795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12796 (exit $ac_status); } &&
12797 { ac_try='test -s conftest.$ac_objext'
12798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12799 (eval $ac_try) 2>&5
12801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12802 (exit $ac_status); }; }; then
12803 ac_hi=$ac_mid; break
12805 echo "$as_me: failed program was:" >&5
12806 sed 's/^/| /' conftest.$ac_ext >&5
12808 ac_lo=`expr $ac_mid + 1`
12809 if test $ac_lo -le $ac_mid; then
12813 ac_mid=`expr 2 '*' $ac_mid + 1`
12815 rm -f conftest.$ac_objext conftest.$ac_ext
12818 echo "$as_me: failed program was:" >&5
12819 sed 's/^/| /' conftest.$ac_ext >&5
12821 cat >conftest.$ac_ext <<_ACEOF
12822 #line $LINENO "configure"
12825 cat confdefs.h >>conftest.$ac_ext
12826 cat >>conftest.$ac_ext <<_ACEOF
12827 /* end confdefs.h. */
12828 $ac_includes_default
12832 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
12839 rm -f conftest.$ac_objext
12840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12841 (eval $ac_compile) 2>&5
12843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12844 (exit $ac_status); } &&
12845 { ac_try='test -s conftest.$ac_objext'
12846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12847 (eval $ac_try) 2>&5
12849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12850 (exit $ac_status); }; }; then
12853 cat >conftest.$ac_ext <<_ACEOF
12854 #line $LINENO "configure"
12857 cat confdefs.h >>conftest.$ac_ext
12858 cat >>conftest.$ac_ext <<_ACEOF
12859 /* end confdefs.h. */
12860 $ac_includes_default
12864 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
12871 rm -f conftest.$ac_objext
12872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12873 (eval $ac_compile) 2>&5
12875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12876 (exit $ac_status); } &&
12877 { ac_try='test -s conftest.$ac_objext'
12878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12879 (eval $ac_try) 2>&5
12881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12882 (exit $ac_status); }; }; then
12883 ac_lo=$ac_mid; break
12885 echo "$as_me: failed program was:" >&5
12886 sed 's/^/| /' conftest.$ac_ext >&5
12888 ac_hi=`expr '(' $ac_mid ')' - 1`
12889 if test $ac_mid -le $ac_hi; then
12893 ac_mid=`expr 2 '*' $ac_mid`
12895 rm -f conftest.$ac_objext conftest.$ac_ext
12898 echo "$as_me: failed program was:" >&5
12899 sed 's/^/| /' conftest.$ac_ext >&5
12903 rm -f conftest.$ac_objext conftest.$ac_ext
12905 rm -f conftest.$ac_objext conftest.$ac_ext
12906 # Binary search between lo and hi bounds.
12907 while test "x$ac_lo" != "x$ac_hi"; do
12908 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12909 cat >conftest.$ac_ext <<_ACEOF
12910 #line $LINENO "configure"
12913 cat confdefs.h >>conftest.$ac_ext
12914 cat >>conftest.$ac_ext <<_ACEOF
12915 /* end confdefs.h. */
12916 $ac_includes_default
12920 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12927 rm -f conftest.$ac_objext
12928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12929 (eval $ac_compile) 2>&5
12931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12932 (exit $ac_status); } &&
12933 { ac_try='test -s conftest.$ac_objext'
12934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12935 (eval $ac_try) 2>&5
12937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938 (exit $ac_status); }; }; then
12941 echo "$as_me: failed program was:" >&5
12942 sed 's/^/| /' conftest.$ac_ext >&5
12944 ac_lo=`expr '(' $ac_mid ')' + 1`
12946 rm -f conftest.$ac_objext conftest.$ac_ext
12949 ?*) ac_cv_sizeof_short_int=$ac_lo;;
12950 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
12951 See \`config.log' for more details." >&5
12952 echo "$as_me: error: cannot compute sizeof (short int), 77
12953 See \`config.log' for more details." >&2;}
12954 { (exit 1); exit 1; }; } ;;
12957 if test "$cross_compiling" = yes; then
12958 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12959 See \`config.log' for more details." >&5
12960 echo "$as_me: error: cannot run test program while cross compiling
12961 See \`config.log' for more details." >&2;}
12962 { (exit 1); exit 1; }; }
12964 cat >conftest.$ac_ext <<_ACEOF
12965 #line $LINENO "configure"
12968 cat confdefs.h >>conftest.$ac_ext
12969 cat >>conftest.$ac_ext <<_ACEOF
12970 /* end confdefs.h. */
12971 $ac_includes_default
12972 long longval () { return (long) (sizeof (short int)); }
12973 unsigned long ulongval () { return (long) (sizeof (short int)); }
12975 #include <stdlib.h>
12980 FILE *f = fopen ("conftest.val", "w");
12983 if (((long) (sizeof (short int))) < 0)
12985 long i = longval ();
12986 if (i != ((long) (sizeof (short int))))
12988 fprintf (f, "%ld\n", i);
12992 unsigned long i = ulongval ();
12993 if (i != ((long) (sizeof (short int))))
12995 fprintf (f, "%lu\n", i);
12997 exit (ferror (f) || fclose (f) != 0);
13003 rm -f conftest$ac_exeext
13004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13005 (eval $ac_link) 2>&5
13007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13008 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13010 (eval $ac_try) 2>&5
13012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13013 (exit $ac_status); }; }; then
13014 ac_cv_sizeof_short_int=`cat conftest.val`
13016 echo "$as_me: program exited with status $ac_status" >&5
13017 echo "$as_me: failed program was:" >&5
13018 sed 's/^/| /' conftest.$ac_ext >&5
13020 ( exit $ac_status )
13021 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
13022 See \`config.log' for more details." >&5
13023 echo "$as_me: error: cannot compute sizeof (short int), 77
13024 See \`config.log' for more details." >&2;}
13025 { (exit 1); exit 1; }; }
13027 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13032 ac_cv_sizeof_short_int=0
13035 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
13036 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
13037 cat >>confdefs.h <<_ACEOF
13038 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
13042 echo "$as_me:$LINENO: checking for int" >&5
13043 echo $ECHO_N "checking for int... $ECHO_C" >&6
13044 if test "${ac_cv_type_int+set}" = set; then
13045 echo $ECHO_N "(cached) $ECHO_C" >&6
13047 cat >conftest.$ac_ext <<_ACEOF
13048 #line $LINENO "configure"
13051 cat confdefs.h >>conftest.$ac_ext
13052 cat >>conftest.$ac_ext <<_ACEOF
13053 /* end confdefs.h. */
13054 $ac_includes_default
13066 rm -f conftest.$ac_objext
13067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13068 (eval $ac_compile) 2>&5
13070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13071 (exit $ac_status); } &&
13072 { ac_try='test -s conftest.$ac_objext'
13073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13074 (eval $ac_try) 2>&5
13076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13077 (exit $ac_status); }; }; then
13080 echo "$as_me: failed program was:" >&5
13081 sed 's/^/| /' conftest.$ac_ext >&5
13085 rm -f conftest.$ac_objext conftest.$ac_ext
13087 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13088 echo "${ECHO_T}$ac_cv_type_int" >&6
13090 echo "$as_me:$LINENO: checking size of int" >&5
13091 echo $ECHO_N "checking size of int... $ECHO_C" >&6
13092 if test "${ac_cv_sizeof_int+set}" = set; then
13093 echo $ECHO_N "(cached) $ECHO_C" >&6
13095 if test "$ac_cv_type_int" = yes; then
13096 # The cast to unsigned long works around a bug in the HP C Compiler
13097 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13098 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13099 # This bug is HP SR number 8606223364.
13100 if test "$cross_compiling" = yes; then
13101 # Depending upon the size, compute the lo and hi bounds.
13102 cat >conftest.$ac_ext <<_ACEOF
13103 #line $LINENO "configure"
13106 cat confdefs.h >>conftest.$ac_ext
13107 cat >>conftest.$ac_ext <<_ACEOF
13108 /* end confdefs.h. */
13109 $ac_includes_default
13113 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
13120 rm -f conftest.$ac_objext
13121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13122 (eval $ac_compile) 2>&5
13124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13125 (exit $ac_status); } &&
13126 { ac_try='test -s conftest.$ac_objext'
13127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13128 (eval $ac_try) 2>&5
13130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13131 (exit $ac_status); }; }; then
13134 cat >conftest.$ac_ext <<_ACEOF
13135 #line $LINENO "configure"
13138 cat confdefs.h >>conftest.$ac_ext
13139 cat >>conftest.$ac_ext <<_ACEOF
13140 /* end confdefs.h. */
13141 $ac_includes_default
13145 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13152 rm -f conftest.$ac_objext
13153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13154 (eval $ac_compile) 2>&5
13156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13157 (exit $ac_status); } &&
13158 { ac_try='test -s conftest.$ac_objext'
13159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13160 (eval $ac_try) 2>&5
13162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13163 (exit $ac_status); }; }; then
13164 ac_hi=$ac_mid; break
13166 echo "$as_me: failed program was:" >&5
13167 sed 's/^/| /' conftest.$ac_ext >&5
13169 ac_lo=`expr $ac_mid + 1`
13170 if test $ac_lo -le $ac_mid; then
13174 ac_mid=`expr 2 '*' $ac_mid + 1`
13176 rm -f conftest.$ac_objext conftest.$ac_ext
13179 echo "$as_me: failed program was:" >&5
13180 sed 's/^/| /' conftest.$ac_ext >&5
13182 cat >conftest.$ac_ext <<_ACEOF
13183 #line $LINENO "configure"
13186 cat confdefs.h >>conftest.$ac_ext
13187 cat >>conftest.$ac_ext <<_ACEOF
13188 /* end confdefs.h. */
13189 $ac_includes_default
13193 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
13200 rm -f conftest.$ac_objext
13201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13202 (eval $ac_compile) 2>&5
13204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13205 (exit $ac_status); } &&
13206 { ac_try='test -s conftest.$ac_objext'
13207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13208 (eval $ac_try) 2>&5
13210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13211 (exit $ac_status); }; }; then
13214 cat >conftest.$ac_ext <<_ACEOF
13215 #line $LINENO "configure"
13218 cat confdefs.h >>conftest.$ac_ext
13219 cat >>conftest.$ac_ext <<_ACEOF
13220 /* end confdefs.h. */
13221 $ac_includes_default
13225 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
13232 rm -f conftest.$ac_objext
13233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13234 (eval $ac_compile) 2>&5
13236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13237 (exit $ac_status); } &&
13238 { ac_try='test -s conftest.$ac_objext'
13239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13240 (eval $ac_try) 2>&5
13242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13243 (exit $ac_status); }; }; then
13244 ac_lo=$ac_mid; break
13246 echo "$as_me: failed program was:" >&5
13247 sed 's/^/| /' conftest.$ac_ext >&5
13249 ac_hi=`expr '(' $ac_mid ')' - 1`
13250 if test $ac_mid -le $ac_hi; then
13254 ac_mid=`expr 2 '*' $ac_mid`
13256 rm -f conftest.$ac_objext conftest.$ac_ext
13259 echo "$as_me: failed program was:" >&5
13260 sed 's/^/| /' conftest.$ac_ext >&5
13264 rm -f conftest.$ac_objext conftest.$ac_ext
13266 rm -f conftest.$ac_objext conftest.$ac_ext
13267 # Binary search between lo and hi bounds.
13268 while test "x$ac_lo" != "x$ac_hi"; do
13269 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13270 cat >conftest.$ac_ext <<_ACEOF
13271 #line $LINENO "configure"
13274 cat confdefs.h >>conftest.$ac_ext
13275 cat >>conftest.$ac_ext <<_ACEOF
13276 /* end confdefs.h. */
13277 $ac_includes_default
13281 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13288 rm -f conftest.$ac_objext
13289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13290 (eval $ac_compile) 2>&5
13292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13293 (exit $ac_status); } &&
13294 { ac_try='test -s conftest.$ac_objext'
13295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13296 (eval $ac_try) 2>&5
13298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13299 (exit $ac_status); }; }; then
13302 echo "$as_me: failed program was:" >&5
13303 sed 's/^/| /' conftest.$ac_ext >&5
13305 ac_lo=`expr '(' $ac_mid ')' + 1`
13307 rm -f conftest.$ac_objext conftest.$ac_ext
13310 ?*) ac_cv_sizeof_int=$ac_lo;;
13311 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13312 See \`config.log' for more details." >&5
13313 echo "$as_me: error: cannot compute sizeof (int), 77
13314 See \`config.log' for more details." >&2;}
13315 { (exit 1); exit 1; }; } ;;
13318 if test "$cross_compiling" = yes; then
13319 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13320 See \`config.log' for more details." >&5
13321 echo "$as_me: error: cannot run test program while cross compiling
13322 See \`config.log' for more details." >&2;}
13323 { (exit 1); exit 1; }; }
13325 cat >conftest.$ac_ext <<_ACEOF
13326 #line $LINENO "configure"
13329 cat confdefs.h >>conftest.$ac_ext
13330 cat >>conftest.$ac_ext <<_ACEOF
13331 /* end confdefs.h. */
13332 $ac_includes_default
13333 long longval () { return (long) (sizeof (int)); }
13334 unsigned long ulongval () { return (long) (sizeof (int)); }
13336 #include <stdlib.h>
13341 FILE *f = fopen ("conftest.val", "w");
13344 if (((long) (sizeof (int))) < 0)
13346 long i = longval ();
13347 if (i != ((long) (sizeof (int))))
13349 fprintf (f, "%ld\n", i);
13353 unsigned long i = ulongval ();
13354 if (i != ((long) (sizeof (int))))
13356 fprintf (f, "%lu\n", i);
13358 exit (ferror (f) || fclose (f) != 0);
13364 rm -f conftest$ac_exeext
13365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13366 (eval $ac_link) 2>&5
13368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13369 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13371 (eval $ac_try) 2>&5
13373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13374 (exit $ac_status); }; }; then
13375 ac_cv_sizeof_int=`cat conftest.val`
13377 echo "$as_me: program exited with status $ac_status" >&5
13378 echo "$as_me: failed program was:" >&5
13379 sed 's/^/| /' conftest.$ac_ext >&5
13381 ( exit $ac_status )
13382 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13383 See \`config.log' for more details." >&5
13384 echo "$as_me: error: cannot compute sizeof (int), 77
13385 See \`config.log' for more details." >&2;}
13386 { (exit 1); exit 1; }; }
13388 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13396 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13397 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
13398 cat >>confdefs.h <<_ACEOF
13399 #define SIZEOF_INT $ac_cv_sizeof_int
13403 echo "$as_me:$LINENO: checking for long int" >&5
13404 echo $ECHO_N "checking for long int... $ECHO_C" >&6
13405 if test "${ac_cv_type_long_int+set}" = set; then
13406 echo $ECHO_N "(cached) $ECHO_C" >&6
13408 cat >conftest.$ac_ext <<_ACEOF
13409 #line $LINENO "configure"
13412 cat confdefs.h >>conftest.$ac_ext
13413 cat >>conftest.$ac_ext <<_ACEOF
13414 /* end confdefs.h. */
13415 $ac_includes_default
13419 if ((long int *) 0)
13421 if (sizeof (long int))
13427 rm -f conftest.$ac_objext
13428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13429 (eval $ac_compile) 2>&5
13431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13432 (exit $ac_status); } &&
13433 { ac_try='test -s conftest.$ac_objext'
13434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13435 (eval $ac_try) 2>&5
13437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13438 (exit $ac_status); }; }; then
13439 ac_cv_type_long_int=yes
13441 echo "$as_me: failed program was:" >&5
13442 sed 's/^/| /' conftest.$ac_ext >&5
13444 ac_cv_type_long_int=no
13446 rm -f conftest.$ac_objext conftest.$ac_ext
13448 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
13449 echo "${ECHO_T}$ac_cv_type_long_int" >&6
13451 echo "$as_me:$LINENO: checking size of long int" >&5
13452 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
13453 if test "${ac_cv_sizeof_long_int+set}" = set; then
13454 echo $ECHO_N "(cached) $ECHO_C" >&6
13456 if test "$ac_cv_type_long_int" = yes; then
13457 # The cast to unsigned long works around a bug in the HP C Compiler
13458 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13459 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13460 # This bug is HP SR number 8606223364.
13461 if test "$cross_compiling" = yes; then
13462 # Depending upon the size, compute the lo and hi bounds.
13463 cat >conftest.$ac_ext <<_ACEOF
13464 #line $LINENO "configure"
13467 cat confdefs.h >>conftest.$ac_ext
13468 cat >>conftest.$ac_ext <<_ACEOF
13469 /* end confdefs.h. */
13470 $ac_includes_default
13474 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
13481 rm -f conftest.$ac_objext
13482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13483 (eval $ac_compile) 2>&5
13485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13486 (exit $ac_status); } &&
13487 { ac_try='test -s conftest.$ac_objext'
13488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13489 (eval $ac_try) 2>&5
13491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13492 (exit $ac_status); }; }; then
13495 cat >conftest.$ac_ext <<_ACEOF
13496 #line $LINENO "configure"
13499 cat confdefs.h >>conftest.$ac_ext
13500 cat >>conftest.$ac_ext <<_ACEOF
13501 /* end confdefs.h. */
13502 $ac_includes_default
13506 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13513 rm -f conftest.$ac_objext
13514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13515 (eval $ac_compile) 2>&5
13517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13518 (exit $ac_status); } &&
13519 { ac_try='test -s conftest.$ac_objext'
13520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13521 (eval $ac_try) 2>&5
13523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13524 (exit $ac_status); }; }; then
13525 ac_hi=$ac_mid; break
13527 echo "$as_me: failed program was:" >&5
13528 sed 's/^/| /' conftest.$ac_ext >&5
13530 ac_lo=`expr $ac_mid + 1`
13531 if test $ac_lo -le $ac_mid; then
13535 ac_mid=`expr 2 '*' $ac_mid + 1`
13537 rm -f conftest.$ac_objext conftest.$ac_ext
13540 echo "$as_me: failed program was:" >&5
13541 sed 's/^/| /' conftest.$ac_ext >&5
13543 cat >conftest.$ac_ext <<_ACEOF
13544 #line $LINENO "configure"
13547 cat confdefs.h >>conftest.$ac_ext
13548 cat >>conftest.$ac_ext <<_ACEOF
13549 /* end confdefs.h. */
13550 $ac_includes_default
13554 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
13561 rm -f conftest.$ac_objext
13562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13563 (eval $ac_compile) 2>&5
13565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13566 (exit $ac_status); } &&
13567 { ac_try='test -s conftest.$ac_objext'
13568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13569 (eval $ac_try) 2>&5
13571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13572 (exit $ac_status); }; }; then
13575 cat >conftest.$ac_ext <<_ACEOF
13576 #line $LINENO "configure"
13579 cat confdefs.h >>conftest.$ac_ext
13580 cat >>conftest.$ac_ext <<_ACEOF
13581 /* end confdefs.h. */
13582 $ac_includes_default
13586 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
13593 rm -f conftest.$ac_objext
13594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13595 (eval $ac_compile) 2>&5
13597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13598 (exit $ac_status); } &&
13599 { ac_try='test -s conftest.$ac_objext'
13600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13601 (eval $ac_try) 2>&5
13603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13604 (exit $ac_status); }; }; then
13605 ac_lo=$ac_mid; break
13607 echo "$as_me: failed program was:" >&5
13608 sed 's/^/| /' conftest.$ac_ext >&5
13610 ac_hi=`expr '(' $ac_mid ')' - 1`
13611 if test $ac_mid -le $ac_hi; then
13615 ac_mid=`expr 2 '*' $ac_mid`
13617 rm -f conftest.$ac_objext conftest.$ac_ext
13620 echo "$as_me: failed program was:" >&5
13621 sed 's/^/| /' conftest.$ac_ext >&5
13625 rm -f conftest.$ac_objext conftest.$ac_ext
13627 rm -f conftest.$ac_objext conftest.$ac_ext
13628 # Binary search between lo and hi bounds.
13629 while test "x$ac_lo" != "x$ac_hi"; do
13630 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13631 cat >conftest.$ac_ext <<_ACEOF
13632 #line $LINENO "configure"
13635 cat confdefs.h >>conftest.$ac_ext
13636 cat >>conftest.$ac_ext <<_ACEOF
13637 /* end confdefs.h. */
13638 $ac_includes_default
13642 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13649 rm -f conftest.$ac_objext
13650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13651 (eval $ac_compile) 2>&5
13653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13654 (exit $ac_status); } &&
13655 { ac_try='test -s conftest.$ac_objext'
13656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13657 (eval $ac_try) 2>&5
13659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13660 (exit $ac_status); }; }; then
13663 echo "$as_me: failed program was:" >&5
13664 sed 's/^/| /' conftest.$ac_ext >&5
13666 ac_lo=`expr '(' $ac_mid ')' + 1`
13668 rm -f conftest.$ac_objext conftest.$ac_ext
13671 ?*) ac_cv_sizeof_long_int=$ac_lo;;
13672 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13673 See \`config.log' for more details." >&5
13674 echo "$as_me: error: cannot compute sizeof (long int), 77
13675 See \`config.log' for more details." >&2;}
13676 { (exit 1); exit 1; }; } ;;
13679 if test "$cross_compiling" = yes; then
13680 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13681 See \`config.log' for more details." >&5
13682 echo "$as_me: error: cannot run test program while cross compiling
13683 See \`config.log' for more details." >&2;}
13684 { (exit 1); exit 1; }; }
13686 cat >conftest.$ac_ext <<_ACEOF
13687 #line $LINENO "configure"
13690 cat confdefs.h >>conftest.$ac_ext
13691 cat >>conftest.$ac_ext <<_ACEOF
13692 /* end confdefs.h. */
13693 $ac_includes_default
13694 long longval () { return (long) (sizeof (long int)); }
13695 unsigned long ulongval () { return (long) (sizeof (long int)); }
13697 #include <stdlib.h>
13702 FILE *f = fopen ("conftest.val", "w");
13705 if (((long) (sizeof (long int))) < 0)
13707 long i = longval ();
13708 if (i != ((long) (sizeof (long int))))
13710 fprintf (f, "%ld\n", i);
13714 unsigned long i = ulongval ();
13715 if (i != ((long) (sizeof (long int))))
13717 fprintf (f, "%lu\n", i);
13719 exit (ferror (f) || fclose (f) != 0);
13725 rm -f conftest$ac_exeext
13726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13727 (eval $ac_link) 2>&5
13729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13730 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13732 (eval $ac_try) 2>&5
13734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13735 (exit $ac_status); }; }; then
13736 ac_cv_sizeof_long_int=`cat conftest.val`
13738 echo "$as_me: program exited with status $ac_status" >&5
13739 echo "$as_me: failed program was:" >&5
13740 sed 's/^/| /' conftest.$ac_ext >&5
13742 ( exit $ac_status )
13743 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13744 See \`config.log' for more details." >&5
13745 echo "$as_me: error: cannot compute sizeof (long int), 77
13746 See \`config.log' for more details." >&2;}
13747 { (exit 1); exit 1; }; }
13749 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13754 ac_cv_sizeof_long_int=0
13757 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
13758 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
13759 cat >>confdefs.h <<_ACEOF
13760 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
13764 echo "$as_me:$LINENO: checking for long long int" >&5
13765 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
13766 if test "${ac_cv_type_long_long_int+set}" = set; then
13767 echo $ECHO_N "(cached) $ECHO_C" >&6
13769 cat >conftest.$ac_ext <<_ACEOF
13770 #line $LINENO "configure"
13773 cat confdefs.h >>conftest.$ac_ext
13774 cat >>conftest.$ac_ext <<_ACEOF
13775 /* end confdefs.h. */
13776 $ac_includes_default
13780 if ((long long int *) 0)
13782 if (sizeof (long long int))
13788 rm -f conftest.$ac_objext
13789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13790 (eval $ac_compile) 2>&5
13792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13793 (exit $ac_status); } &&
13794 { ac_try='test -s conftest.$ac_objext'
13795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13796 (eval $ac_try) 2>&5
13798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13799 (exit $ac_status); }; }; then
13800 ac_cv_type_long_long_int=yes
13802 echo "$as_me: failed program was:" >&5
13803 sed 's/^/| /' conftest.$ac_ext >&5
13805 ac_cv_type_long_long_int=no
13807 rm -f conftest.$ac_objext conftest.$ac_ext
13809 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
13810 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
13812 echo "$as_me:$LINENO: checking size of long long int" >&5
13813 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
13814 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
13815 echo $ECHO_N "(cached) $ECHO_C" >&6
13817 if test "$ac_cv_type_long_long_int" = yes; then
13818 # The cast to unsigned long works around a bug in the HP C Compiler
13819 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13820 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13821 # This bug is HP SR number 8606223364.
13822 if test "$cross_compiling" = yes; then
13823 # Depending upon the size, compute the lo and hi bounds.
13824 cat >conftest.$ac_ext <<_ACEOF
13825 #line $LINENO "configure"
13828 cat confdefs.h >>conftest.$ac_ext
13829 cat >>conftest.$ac_ext <<_ACEOF
13830 /* end confdefs.h. */
13831 $ac_includes_default
13835 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
13842 rm -f conftest.$ac_objext
13843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13844 (eval $ac_compile) 2>&5
13846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13847 (exit $ac_status); } &&
13848 { ac_try='test -s conftest.$ac_objext'
13849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13850 (eval $ac_try) 2>&5
13852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853 (exit $ac_status); }; }; then
13856 cat >conftest.$ac_ext <<_ACEOF
13857 #line $LINENO "configure"
13860 cat confdefs.h >>conftest.$ac_ext
13861 cat >>conftest.$ac_ext <<_ACEOF
13862 /* end confdefs.h. */
13863 $ac_includes_default
13867 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
13874 rm -f conftest.$ac_objext
13875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13876 (eval $ac_compile) 2>&5
13878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13879 (exit $ac_status); } &&
13880 { ac_try='test -s conftest.$ac_objext'
13881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13882 (eval $ac_try) 2>&5
13884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13885 (exit $ac_status); }; }; then
13886 ac_hi=$ac_mid; break
13888 echo "$as_me: failed program was:" >&5
13889 sed 's/^/| /' conftest.$ac_ext >&5
13891 ac_lo=`expr $ac_mid + 1`
13892 if test $ac_lo -le $ac_mid; then
13896 ac_mid=`expr 2 '*' $ac_mid + 1`
13898 rm -f conftest.$ac_objext conftest.$ac_ext
13901 echo "$as_me: failed program was:" >&5
13902 sed 's/^/| /' conftest.$ac_ext >&5
13904 cat >conftest.$ac_ext <<_ACEOF
13905 #line $LINENO "configure"
13908 cat confdefs.h >>conftest.$ac_ext
13909 cat >>conftest.$ac_ext <<_ACEOF
13910 /* end confdefs.h. */
13911 $ac_includes_default
13915 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
13922 rm -f conftest.$ac_objext
13923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13924 (eval $ac_compile) 2>&5
13926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13927 (exit $ac_status); } &&
13928 { ac_try='test -s conftest.$ac_objext'
13929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13930 (eval $ac_try) 2>&5
13932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13933 (exit $ac_status); }; }; then
13936 cat >conftest.$ac_ext <<_ACEOF
13937 #line $LINENO "configure"
13940 cat confdefs.h >>conftest.$ac_ext
13941 cat >>conftest.$ac_ext <<_ACEOF
13942 /* end confdefs.h. */
13943 $ac_includes_default
13947 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
13954 rm -f conftest.$ac_objext
13955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13956 (eval $ac_compile) 2>&5
13958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959 (exit $ac_status); } &&
13960 { ac_try='test -s conftest.$ac_objext'
13961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13962 (eval $ac_try) 2>&5
13964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13965 (exit $ac_status); }; }; then
13966 ac_lo=$ac_mid; break
13968 echo "$as_me: failed program was:" >&5
13969 sed 's/^/| /' conftest.$ac_ext >&5
13971 ac_hi=`expr '(' $ac_mid ')' - 1`
13972 if test $ac_mid -le $ac_hi; then
13976 ac_mid=`expr 2 '*' $ac_mid`
13978 rm -f conftest.$ac_objext conftest.$ac_ext
13981 echo "$as_me: failed program was:" >&5
13982 sed 's/^/| /' conftest.$ac_ext >&5
13986 rm -f conftest.$ac_objext conftest.$ac_ext
13988 rm -f conftest.$ac_objext conftest.$ac_ext
13989 # Binary search between lo and hi bounds.
13990 while test "x$ac_lo" != "x$ac_hi"; do
13991 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13992 cat >conftest.$ac_ext <<_ACEOF
13993 #line $LINENO "configure"
13996 cat confdefs.h >>conftest.$ac_ext
13997 cat >>conftest.$ac_ext <<_ACEOF
13998 /* end confdefs.h. */
13999 $ac_includes_default
14003 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
14010 rm -f conftest.$ac_objext
14011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14012 (eval $ac_compile) 2>&5
14014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14015 (exit $ac_status); } &&
14016 { ac_try='test -s conftest.$ac_objext'
14017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14018 (eval $ac_try) 2>&5
14020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14021 (exit $ac_status); }; }; then
14024 echo "$as_me: failed program was:" >&5
14025 sed 's/^/| /' conftest.$ac_ext >&5
14027 ac_lo=`expr '(' $ac_mid ')' + 1`
14029 rm -f conftest.$ac_objext conftest.$ac_ext
14032 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
14033 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
14034 See \`config.log' for more details." >&5
14035 echo "$as_me: error: cannot compute sizeof (long long int), 77
14036 See \`config.log' for more details." >&2;}
14037 { (exit 1); exit 1; }; } ;;
14040 if test "$cross_compiling" = yes; then
14041 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14042 See \`config.log' for more details." >&5
14043 echo "$as_me: error: cannot run test program while cross compiling
14044 See \`config.log' for more details." >&2;}
14045 { (exit 1); exit 1; }; }
14047 cat >conftest.$ac_ext <<_ACEOF
14048 #line $LINENO "configure"
14051 cat confdefs.h >>conftest.$ac_ext
14052 cat >>conftest.$ac_ext <<_ACEOF
14053 /* end confdefs.h. */
14054 $ac_includes_default
14055 long longval () { return (long) (sizeof (long long int)); }
14056 unsigned long ulongval () { return (long) (sizeof (long long int)); }
14058 #include <stdlib.h>
14063 FILE *f = fopen ("conftest.val", "w");
14066 if (((long) (sizeof (long long int))) < 0)
14068 long i = longval ();
14069 if (i != ((long) (sizeof (long long int))))
14071 fprintf (f, "%ld\n", i);
14075 unsigned long i = ulongval ();
14076 if (i != ((long) (sizeof (long long int))))
14078 fprintf (f, "%lu\n", i);
14080 exit (ferror (f) || fclose (f) != 0);
14086 rm -f conftest$ac_exeext
14087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14088 (eval $ac_link) 2>&5
14090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14091 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14093 (eval $ac_try) 2>&5
14095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14096 (exit $ac_status); }; }; then
14097 ac_cv_sizeof_long_long_int=`cat conftest.val`
14099 echo "$as_me: program exited with status $ac_status" >&5
14100 echo "$as_me: failed program was:" >&5
14101 sed 's/^/| /' conftest.$ac_ext >&5
14103 ( exit $ac_status )
14104 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
14105 See \`config.log' for more details." >&5
14106 echo "$as_me: error: cannot compute sizeof (long long int), 77
14107 See \`config.log' for more details." >&2;}
14108 { (exit 1); exit 1; }; }
14110 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14115 ac_cv_sizeof_long_long_int=0
14118 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
14119 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
14120 cat >>confdefs.h <<_ACEOF
14121 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
14125 echo "$as_me:$LINENO: checking for int *" >&5
14126 echo $ECHO_N "checking for int *... $ECHO_C" >&6
14127 if test "${ac_cv_type_int_p+set}" = set; then
14128 echo $ECHO_N "(cached) $ECHO_C" >&6
14130 cat >conftest.$ac_ext <<_ACEOF
14131 #line $LINENO "configure"
14134 cat confdefs.h >>conftest.$ac_ext
14135 cat >>conftest.$ac_ext <<_ACEOF
14136 /* end confdefs.h. */
14137 $ac_includes_default
14143 if (sizeof (int *))
14149 rm -f conftest.$ac_objext
14150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14151 (eval $ac_compile) 2>&5
14153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14154 (exit $ac_status); } &&
14155 { ac_try='test -s conftest.$ac_objext'
14156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14157 (eval $ac_try) 2>&5
14159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14160 (exit $ac_status); }; }; then
14161 ac_cv_type_int_p=yes
14163 echo "$as_me: failed program was:" >&5
14164 sed 's/^/| /' conftest.$ac_ext >&5
14166 ac_cv_type_int_p=no
14168 rm -f conftest.$ac_objext conftest.$ac_ext
14170 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
14171 echo "${ECHO_T}$ac_cv_type_int_p" >&6
14173 echo "$as_me:$LINENO: checking size of int *" >&5
14174 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
14175 if test "${ac_cv_sizeof_int_p+set}" = set; then
14176 echo $ECHO_N "(cached) $ECHO_C" >&6
14178 if test "$ac_cv_type_int_p" = yes; then
14179 # The cast to unsigned long works around a bug in the HP C Compiler
14180 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14181 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14182 # This bug is HP SR number 8606223364.
14183 if test "$cross_compiling" = yes; then
14184 # Depending upon the size, compute the lo and hi bounds.
14185 cat >conftest.$ac_ext <<_ACEOF
14186 #line $LINENO "configure"
14189 cat confdefs.h >>conftest.$ac_ext
14190 cat >>conftest.$ac_ext <<_ACEOF
14191 /* end confdefs.h. */
14192 $ac_includes_default
14196 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
14203 rm -f conftest.$ac_objext
14204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14205 (eval $ac_compile) 2>&5
14207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14208 (exit $ac_status); } &&
14209 { ac_try='test -s conftest.$ac_objext'
14210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14211 (eval $ac_try) 2>&5
14213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14214 (exit $ac_status); }; }; then
14217 cat >conftest.$ac_ext <<_ACEOF
14218 #line $LINENO "configure"
14221 cat confdefs.h >>conftest.$ac_ext
14222 cat >>conftest.$ac_ext <<_ACEOF
14223 /* end confdefs.h. */
14224 $ac_includes_default
14228 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14235 rm -f conftest.$ac_objext
14236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14237 (eval $ac_compile) 2>&5
14239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14240 (exit $ac_status); } &&
14241 { ac_try='test -s conftest.$ac_objext'
14242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14243 (eval $ac_try) 2>&5
14245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14246 (exit $ac_status); }; }; then
14247 ac_hi=$ac_mid; break
14249 echo "$as_me: failed program was:" >&5
14250 sed 's/^/| /' conftest.$ac_ext >&5
14252 ac_lo=`expr $ac_mid + 1`
14253 if test $ac_lo -le $ac_mid; then
14257 ac_mid=`expr 2 '*' $ac_mid + 1`
14259 rm -f conftest.$ac_objext conftest.$ac_ext
14262 echo "$as_me: failed program was:" >&5
14263 sed 's/^/| /' conftest.$ac_ext >&5
14265 cat >conftest.$ac_ext <<_ACEOF
14266 #line $LINENO "configure"
14269 cat confdefs.h >>conftest.$ac_ext
14270 cat >>conftest.$ac_ext <<_ACEOF
14271 /* end confdefs.h. */
14272 $ac_includes_default
14276 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
14283 rm -f conftest.$ac_objext
14284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14285 (eval $ac_compile) 2>&5
14287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14288 (exit $ac_status); } &&
14289 { ac_try='test -s conftest.$ac_objext'
14290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14291 (eval $ac_try) 2>&5
14293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14294 (exit $ac_status); }; }; then
14297 cat >conftest.$ac_ext <<_ACEOF
14298 #line $LINENO "configure"
14301 cat confdefs.h >>conftest.$ac_ext
14302 cat >>conftest.$ac_ext <<_ACEOF
14303 /* end confdefs.h. */
14304 $ac_includes_default
14308 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
14315 rm -f conftest.$ac_objext
14316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14317 (eval $ac_compile) 2>&5
14319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320 (exit $ac_status); } &&
14321 { ac_try='test -s conftest.$ac_objext'
14322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14323 (eval $ac_try) 2>&5
14325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326 (exit $ac_status); }; }; then
14327 ac_lo=$ac_mid; break
14329 echo "$as_me: failed program was:" >&5
14330 sed 's/^/| /' conftest.$ac_ext >&5
14332 ac_hi=`expr '(' $ac_mid ')' - 1`
14333 if test $ac_mid -le $ac_hi; then
14337 ac_mid=`expr 2 '*' $ac_mid`
14339 rm -f conftest.$ac_objext conftest.$ac_ext
14342 echo "$as_me: failed program was:" >&5
14343 sed 's/^/| /' conftest.$ac_ext >&5
14347 rm -f conftest.$ac_objext conftest.$ac_ext
14349 rm -f conftest.$ac_objext conftest.$ac_ext
14350 # Binary search between lo and hi bounds.
14351 while test "x$ac_lo" != "x$ac_hi"; do
14352 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14353 cat >conftest.$ac_ext <<_ACEOF
14354 #line $LINENO "configure"
14357 cat confdefs.h >>conftest.$ac_ext
14358 cat >>conftest.$ac_ext <<_ACEOF
14359 /* end confdefs.h. */
14360 $ac_includes_default
14364 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14371 rm -f conftest.$ac_objext
14372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14373 (eval $ac_compile) 2>&5
14375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14376 (exit $ac_status); } &&
14377 { ac_try='test -s conftest.$ac_objext'
14378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14379 (eval $ac_try) 2>&5
14381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14382 (exit $ac_status); }; }; then
14385 echo "$as_me: failed program was:" >&5
14386 sed 's/^/| /' conftest.$ac_ext >&5
14388 ac_lo=`expr '(' $ac_mid ')' + 1`
14390 rm -f conftest.$ac_objext conftest.$ac_ext
14393 ?*) ac_cv_sizeof_int_p=$ac_lo;;
14394 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14395 See \`config.log' for more details." >&5
14396 echo "$as_me: error: cannot compute sizeof (int *), 77
14397 See \`config.log' for more details." >&2;}
14398 { (exit 1); exit 1; }; } ;;
14401 if test "$cross_compiling" = yes; then
14402 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14403 See \`config.log' for more details." >&5
14404 echo "$as_me: error: cannot run test program while cross compiling
14405 See \`config.log' for more details." >&2;}
14406 { (exit 1); exit 1; }; }
14408 cat >conftest.$ac_ext <<_ACEOF
14409 #line $LINENO "configure"
14412 cat confdefs.h >>conftest.$ac_ext
14413 cat >>conftest.$ac_ext <<_ACEOF
14414 /* end confdefs.h. */
14415 $ac_includes_default
14416 long longval () { return (long) (sizeof (int *)); }
14417 unsigned long ulongval () { return (long) (sizeof (int *)); }
14419 #include <stdlib.h>
14424 FILE *f = fopen ("conftest.val", "w");
14427 if (((long) (sizeof (int *))) < 0)
14429 long i = longval ();
14430 if (i != ((long) (sizeof (int *))))
14432 fprintf (f, "%ld\n", i);
14436 unsigned long i = ulongval ();
14437 if (i != ((long) (sizeof (int *))))
14439 fprintf (f, "%lu\n", i);
14441 exit (ferror (f) || fclose (f) != 0);
14447 rm -f conftest$ac_exeext
14448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14449 (eval $ac_link) 2>&5
14451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14452 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14454 (eval $ac_try) 2>&5
14456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14457 (exit $ac_status); }; }; then
14458 ac_cv_sizeof_int_p=`cat conftest.val`
14460 echo "$as_me: program exited with status $ac_status" >&5
14461 echo "$as_me: failed program was:" >&5
14462 sed 's/^/| /' conftest.$ac_ext >&5
14464 ( exit $ac_status )
14465 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14466 See \`config.log' for more details." >&5
14467 echo "$as_me: error: cannot compute sizeof (int *), 77
14468 See \`config.log' for more details." >&2;}
14469 { (exit 1); exit 1; }; }
14471 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14476 ac_cv_sizeof_int_p=0
14479 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
14480 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
14481 cat >>confdefs.h <<_ACEOF
14482 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
14487 # Check for sys/types.h types
14488 echo "$as_me:$LINENO: checking for u_int type" >&5
14489 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
14490 if test "${ac_cv_have_u_int+set}" = set; then
14491 echo $ECHO_N "(cached) $ECHO_C" >&6
14494 cat >conftest.$ac_ext <<_ACEOF
14495 #line $LINENO "configure"
14498 cat confdefs.h >>conftest.$ac_ext
14499 cat >>conftest.$ac_ext <<_ACEOF
14500 /* end confdefs.h. */
14501 #include <sys/types.h>
14510 rm -f conftest.$ac_objext
14511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14512 (eval $ac_compile) 2>&5
14514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14515 (exit $ac_status); } &&
14516 { ac_try='test -s conftest.$ac_objext'
14517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14518 (eval $ac_try) 2>&5
14520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14521 (exit $ac_status); }; }; then
14522 ac_cv_have_u_int="yes"
14524 echo "$as_me: failed program was:" >&5
14525 sed 's/^/| /' conftest.$ac_ext >&5
14527 ac_cv_have_u_int="no"
14530 rm -f conftest.$ac_objext conftest.$ac_ext
14533 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
14534 echo "${ECHO_T}$ac_cv_have_u_int" >&6
14535 if test "x$ac_cv_have_u_int" = "xyes" ; then
14536 cat >>confdefs.h <<\_ACEOF
14537 #define HAVE_U_INT 1
14543 echo "$as_me:$LINENO: checking for intmax_t type" >&5
14544 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
14545 if test "${ac_cv_have_intmax_t+set}" = set; then
14546 echo $ECHO_N "(cached) $ECHO_C" >&6
14549 cat >conftest.$ac_ext <<_ACEOF
14550 #line $LINENO "configure"
14553 cat confdefs.h >>conftest.$ac_ext
14554 cat >>conftest.$ac_ext <<_ACEOF
14555 /* end confdefs.h. */
14556 #include <sys/types.h>
14565 rm -f conftest.$ac_objext
14566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14567 (eval $ac_compile) 2>&5
14569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14570 (exit $ac_status); } &&
14571 { ac_try='test -s conftest.$ac_objext'
14572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14573 (eval $ac_try) 2>&5
14575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14576 (exit $ac_status); }; }; then
14577 ac_cv_have_intmax_t="yes"
14579 echo "$as_me: failed program was:" >&5
14580 sed 's/^/| /' conftest.$ac_ext >&5
14583 cat >conftest.$ac_ext <<_ACEOF
14584 #line $LINENO "configure"
14587 cat confdefs.h >>conftest.$ac_ext
14588 cat >>conftest.$ac_ext <<_ACEOF
14589 /* end confdefs.h. */
14590 #include <stdint.h>
14599 rm -f conftest.$ac_objext
14600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14601 (eval $ac_compile) 2>&5
14603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14604 (exit $ac_status); } &&
14605 { ac_try='test -s conftest.$ac_objext'
14606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14607 (eval $ac_try) 2>&5
14609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14610 (exit $ac_status); }; }; then
14611 ac_cv_have_intmax_t="yes"
14613 echo "$as_me: failed program was:" >&5
14614 sed 's/^/| /' conftest.$ac_ext >&5
14616 ac_cv_have_intmax_t="no"
14619 rm -f conftest.$ac_objext conftest.$ac_ext
14623 rm -f conftest.$ac_objext conftest.$ac_ext
14627 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
14628 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
14629 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
14630 cat >>confdefs.h <<\_ACEOF
14631 #define HAVE_INTMAX_T 1
14638 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
14639 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
14640 if test "${ac_cv_have_u_intmax_t+set}" = set; then
14641 echo $ECHO_N "(cached) $ECHO_C" >&6
14644 cat >conftest.$ac_ext <<_ACEOF
14645 #line $LINENO "configure"
14648 cat confdefs.h >>conftest.$ac_ext
14649 cat >>conftest.$ac_ext <<_ACEOF
14650 /* end confdefs.h. */
14651 #include <sys/types.h>
14655 u_intmax_t a; a = 1;
14660 rm -f conftest.$ac_objext
14661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14662 (eval $ac_compile) 2>&5
14664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14665 (exit $ac_status); } &&
14666 { ac_try='test -s conftest.$ac_objext'
14667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14668 (eval $ac_try) 2>&5
14670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14671 (exit $ac_status); }; }; then
14672 ac_cv_have_u_intmax_t="yes"
14674 echo "$as_me: failed program was:" >&5
14675 sed 's/^/| /' conftest.$ac_ext >&5
14678 cat >conftest.$ac_ext <<_ACEOF
14679 #line $LINENO "configure"
14682 cat confdefs.h >>conftest.$ac_ext
14683 cat >>conftest.$ac_ext <<_ACEOF
14684 /* end confdefs.h. */
14685 #include <stdint.h>
14689 u_intmax_t a; a = 1;
14694 rm -f conftest.$ac_objext
14695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14696 (eval $ac_compile) 2>&5
14698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14699 (exit $ac_status); } &&
14700 { ac_try='test -s conftest.$ac_objext'
14701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14702 (eval $ac_try) 2>&5
14704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14705 (exit $ac_status); }; }; then
14706 ac_cv_have_u_intmax_t="yes"
14708 echo "$as_me: failed program was:" >&5
14709 sed 's/^/| /' conftest.$ac_ext >&5
14711 ac_cv_have_u_intmax_t="no"
14714 rm -f conftest.$ac_objext conftest.$ac_ext
14718 rm -f conftest.$ac_objext conftest.$ac_ext
14721 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
14722 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
14723 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
14724 cat >>confdefs.h <<\_ACEOF
14725 #define HAVE_U_INTMAX_T 1
14732 echo "$as_me:$LINENO: checking for intXX_t types" >&5
14733 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
14734 if test "${ac_cv_have_intxx_t+set}" = set; then
14735 echo $ECHO_N "(cached) $ECHO_C" >&6
14738 cat >conftest.$ac_ext <<_ACEOF
14739 #line $LINENO "configure"
14742 cat confdefs.h >>conftest.$ac_ext
14743 cat >>conftest.$ac_ext <<_ACEOF
14744 /* end confdefs.h. */
14745 #include <sys/types.h>
14749 int8_t a; int16_t b; int32_t c; a = b = c = 1;
14754 rm -f conftest.$ac_objext
14755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14756 (eval $ac_compile) 2>&5
14758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14759 (exit $ac_status); } &&
14760 { ac_try='test -s conftest.$ac_objext'
14761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14762 (eval $ac_try) 2>&5
14764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14765 (exit $ac_status); }; }; then
14766 ac_cv_have_intxx_t="yes"
14768 echo "$as_me: failed program was:" >&5
14769 sed 's/^/| /' conftest.$ac_ext >&5
14771 ac_cv_have_intxx_t="no"
14774 rm -f conftest.$ac_objext conftest.$ac_ext
14777 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
14778 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
14779 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
14780 cat >>confdefs.h <<\_ACEOF
14781 #define HAVE_INTXX_T 1
14787 echo "$as_me:$LINENO: checking for int64_t type" >&5
14788 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
14789 if test "${ac_cv_have_int64_t+set}" = set; then
14790 echo $ECHO_N "(cached) $ECHO_C" >&6
14793 cat >conftest.$ac_ext <<_ACEOF
14794 #line $LINENO "configure"
14797 cat confdefs.h >>conftest.$ac_ext
14798 cat >>conftest.$ac_ext <<_ACEOF
14799 /* end confdefs.h. */
14800 #include <sys/types.h>
14809 rm -f conftest.$ac_objext
14810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14811 (eval $ac_compile) 2>&5
14813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14814 (exit $ac_status); } &&
14815 { ac_try='test -s conftest.$ac_objext'
14816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14817 (eval $ac_try) 2>&5
14819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14820 (exit $ac_status); }; }; then
14821 ac_cv_have_int64_t="yes"
14823 echo "$as_me: failed program was:" >&5
14824 sed 's/^/| /' conftest.$ac_ext >&5
14826 ac_cv_have_int64_t="no"
14829 rm -f conftest.$ac_objext conftest.$ac_ext
14832 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
14833 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
14834 if test "x$ac_cv_have_int64_t" = "xyes" ; then
14835 cat >>confdefs.h <<\_ACEOF
14836 #define HAVE_INT64_T 1
14842 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
14843 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
14844 if test "${ac_cv_have_u_intxx_t+set}" = set; then
14845 echo $ECHO_N "(cached) $ECHO_C" >&6
14848 cat >conftest.$ac_ext <<_ACEOF
14849 #line $LINENO "configure"
14852 cat confdefs.h >>conftest.$ac_ext
14853 cat >>conftest.$ac_ext <<_ACEOF
14854 /* end confdefs.h. */
14855 #include <sys/types.h>
14859 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
14864 rm -f conftest.$ac_objext
14865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14866 (eval $ac_compile) 2>&5
14868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14869 (exit $ac_status); } &&
14870 { ac_try='test -s conftest.$ac_objext'
14871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14872 (eval $ac_try) 2>&5
14874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14875 (exit $ac_status); }; }; then
14876 ac_cv_have_u_intxx_t="yes"
14878 echo "$as_me: failed program was:" >&5
14879 sed 's/^/| /' conftest.$ac_ext >&5
14881 ac_cv_have_u_intxx_t="no"
14884 rm -f conftest.$ac_objext conftest.$ac_ext
14887 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
14888 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
14889 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
14890 cat >>confdefs.h <<\_ACEOF
14891 #define HAVE_U_INTXX_T 1
14897 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
14898 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
14899 if test "${ac_cv_have_u_int64_t+set}" = set; then
14900 echo $ECHO_N "(cached) $ECHO_C" >&6
14903 cat >conftest.$ac_ext <<_ACEOF
14904 #line $LINENO "configure"
14907 cat confdefs.h >>conftest.$ac_ext
14908 cat >>conftest.$ac_ext <<_ACEOF
14909 /* end confdefs.h. */
14910 #include <sys/types.h>
14914 u_int64_t a; a = 1;
14919 rm -f conftest.$ac_objext
14920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14921 (eval $ac_compile) 2>&5
14923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14924 (exit $ac_status); } &&
14925 { ac_try='test -s conftest.$ac_objext'
14926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14927 (eval $ac_try) 2>&5
14929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14930 (exit $ac_status); }; }; then
14931 ac_cv_have_u_int64_t="yes"
14933 echo "$as_me: failed program was:" >&5
14934 sed 's/^/| /' conftest.$ac_ext >&5
14936 ac_cv_have_u_int64_t="no"
14939 rm -f conftest.$ac_objext conftest.$ac_ext
14942 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
14943 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
14944 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
14945 cat >>confdefs.h <<\_ACEOF
14946 #define HAVE_U_INT64_T 1
14952 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
14953 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
14955 echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
14956 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
14957 cat >conftest.$ac_ext <<_ACEOF
14958 #line $LINENO "configure"
14961 cat confdefs.h >>conftest.$ac_ext
14962 cat >>conftest.$ac_ext <<_ACEOF
14963 /* end confdefs.h. */
14964 #include <sys/bitypes.h>
14968 int8_t a; int16_t b; int32_t c;
14969 u_int8_t e; u_int16_t f; u_int32_t g;
14970 a = b = c = e = f = g = 1;
14975 rm -f conftest.$ac_objext
14976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14977 (eval $ac_compile) 2>&5
14979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14980 (exit $ac_status); } &&
14981 { ac_try='test -s conftest.$ac_objext'
14982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14983 (eval $ac_try) 2>&5
14985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14986 (exit $ac_status); }; }; then
14987 cat >>confdefs.h <<\_ACEOF
14988 #define HAVE_U_INTXX_T 1
14991 cat >>confdefs.h <<\_ACEOF
14992 #define HAVE_INTXX_T 1
14995 cat >>confdefs.h <<\_ACEOF
14996 #define HAVE_SYS_BITYPES_H 1
14999 echo "$as_me:$LINENO: result: yes" >&5
15000 echo "${ECHO_T}yes" >&6
15002 echo "$as_me: failed program was:" >&5
15003 sed 's/^/| /' conftest.$ac_ext >&5
15005 echo "$as_me:$LINENO: result: no" >&5
15006 echo "${ECHO_T}no" >&6
15009 rm -f conftest.$ac_objext conftest.$ac_ext
15012 if test -z "$have_u_intxx_t" ; then
15013 echo "$as_me:$LINENO: checking for uintXX_t types" >&5
15014 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
15015 if test "${ac_cv_have_uintxx_t+set}" = set; then
15016 echo $ECHO_N "(cached) $ECHO_C" >&6
15019 cat >conftest.$ac_ext <<_ACEOF
15020 #line $LINENO "configure"
15023 cat confdefs.h >>conftest.$ac_ext
15024 cat >>conftest.$ac_ext <<_ACEOF
15025 /* end confdefs.h. */
15026 #include <sys/types.h>
15030 uint8_t a; uint16_t b;
15031 uint32_t c; a = b = c = 1;
15036 rm -f conftest.$ac_objext
15037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15038 (eval $ac_compile) 2>&5
15040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15041 (exit $ac_status); } &&
15042 { ac_try='test -s conftest.$ac_objext'
15043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15044 (eval $ac_try) 2>&5
15046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15047 (exit $ac_status); }; }; then
15048 ac_cv_have_uintxx_t="yes"
15050 echo "$as_me: failed program was:" >&5
15051 sed 's/^/| /' conftest.$ac_ext >&5
15053 ac_cv_have_uintxx_t="no"
15056 rm -f conftest.$ac_objext conftest.$ac_ext
15059 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
15060 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
15061 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
15062 cat >>confdefs.h <<\_ACEOF
15063 #define HAVE_UINTXX_T 1
15069 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
15070 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
15072 echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
15073 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
15074 cat >conftest.$ac_ext <<_ACEOF
15075 #line $LINENO "configure"
15078 cat confdefs.h >>conftest.$ac_ext
15079 cat >>conftest.$ac_ext <<_ACEOF
15080 /* end confdefs.h. */
15081 #include <sys/bitypes.h>
15085 int64_t a; u_int64_t b;
15091 rm -f conftest.$ac_objext
15092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15093 (eval $ac_compile) 2>&5
15095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15096 (exit $ac_status); } &&
15097 { ac_try='test -s conftest.$ac_objext'
15098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15099 (eval $ac_try) 2>&5
15101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15102 (exit $ac_status); }; }; then
15103 cat >>confdefs.h <<\_ACEOF
15104 #define HAVE_U_INT64_T 1
15107 cat >>confdefs.h <<\_ACEOF
15108 #define HAVE_INT64_T 1
15111 echo "$as_me:$LINENO: result: yes" >&5
15112 echo "${ECHO_T}yes" >&6
15114 echo "$as_me: failed program was:" >&5
15115 sed 's/^/| /' conftest.$ac_ext >&5
15117 echo "$as_me:$LINENO: result: no" >&5
15118 echo "${ECHO_T}no" >&6
15121 rm -f conftest.$ac_objext conftest.$ac_ext
15124 if (test -z "$have_uintxx_t" && \
15125 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
15127 echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
15128 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
15129 cat >conftest.$ac_ext <<_ACEOF
15130 #line $LINENO "configure"
15133 cat confdefs.h >>conftest.$ac_ext
15134 cat >>conftest.$ac_ext <<_ACEOF
15135 /* end confdefs.h. */
15136 #include <sys/bitypes.h>
15140 uint8_t a; uint16_t b;
15141 uint32_t c; a = b = c = 1;
15146 rm -f conftest.$ac_objext
15147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15148 (eval $ac_compile) 2>&5
15150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15151 (exit $ac_status); } &&
15152 { ac_try='test -s conftest.$ac_objext'
15153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15154 (eval $ac_try) 2>&5
15156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15157 (exit $ac_status); }; }; then
15158 cat >>confdefs.h <<\_ACEOF
15159 #define HAVE_UINTXX_T 1
15162 echo "$as_me:$LINENO: result: yes" >&5
15163 echo "${ECHO_T}yes" >&6
15165 echo "$as_me: failed program was:" >&5
15166 sed 's/^/| /' conftest.$ac_ext >&5
15168 echo "$as_me:$LINENO: result: no" >&5
15169 echo "${ECHO_T}no" >&6
15172 rm -f conftest.$ac_objext conftest.$ac_ext
15208 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15209 echo "$as_me:$LINENO: checking for $ac_func" >&5
15210 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15211 if eval "test \"\${$as_ac_var+set}\" = set"; then
15212 echo $ECHO_N "(cached) $ECHO_C" >&6
15214 cat >conftest.$ac_ext <<_ACEOF
15215 #line $LINENO "configure"
15218 cat confdefs.h >>conftest.$ac_ext
15219 cat >>conftest.$ac_ext <<_ACEOF
15220 /* end confdefs.h. */
15221 /* System header to define __stub macros and hopefully few prototypes,
15222 which can conflict with char $ac_func (); below.
15223 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15224 <limits.h> exists even on freestanding compilers. */
15226 # include <limits.h>
15228 # include <assert.h>
15230 /* Override any gcc2 internal prototype to avoid an error. */
15235 /* We use char because int might match the return type of a gcc2
15236 builtin and then its argument prototype would still apply. */
15238 /* The GNU C library defines this for functions which it implements
15239 to always fail with ENOSYS. Some functions are actually named
15240 something starting with __ and the normal name is an alias. */
15241 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15244 char (*f) () = $ac_func;
15253 return f != $ac_func;
15258 rm -f conftest.$ac_objext conftest$ac_exeext
15259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15260 (eval $ac_link) 2>&5
15262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15263 (exit $ac_status); } &&
15264 { ac_try='test -s conftest$ac_exeext'
15265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15266 (eval $ac_try) 2>&5
15268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15269 (exit $ac_status); }; }; then
15270 eval "$as_ac_var=yes"
15272 echo "$as_me: failed program was:" >&5
15273 sed 's/^/| /' conftest.$ac_ext >&5
15275 eval "$as_ac_var=no"
15277 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15279 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15280 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15281 if test `eval echo '${'$as_ac_var'}'` = yes; then
15282 cat >>confdefs.h <<_ACEOF
15283 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15287 echo 'configure: cannot find needed function.'; exit 1
15294 for ac_func in fchdir
15296 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15297 echo "$as_me:$LINENO: checking for $ac_func" >&5
15298 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15299 if eval "test \"\${$as_ac_var+set}\" = set"; then
15300 echo $ECHO_N "(cached) $ECHO_C" >&6
15302 cat >conftest.$ac_ext <<_ACEOF
15303 #line $LINENO "configure"
15306 cat confdefs.h >>conftest.$ac_ext
15307 cat >>conftest.$ac_ext <<_ACEOF
15308 /* end confdefs.h. */
15309 /* System header to define __stub macros and hopefully few prototypes,
15310 which can conflict with char $ac_func (); below.
15311 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15312 <limits.h> exists even on freestanding compilers. */
15314 # include <limits.h>
15316 # include <assert.h>
15318 /* Override any gcc2 internal prototype to avoid an error. */
15323 /* We use char because int might match the return type of a gcc2
15324 builtin and then its argument prototype would still apply. */
15326 /* The GNU C library defines this for functions which it implements
15327 to always fail with ENOSYS. Some functions are actually named
15328 something starting with __ and the normal name is an alias. */
15329 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15332 char (*f) () = $ac_func;
15341 return f != $ac_func;
15346 rm -f conftest.$ac_objext conftest$ac_exeext
15347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15348 (eval $ac_link) 2>&5
15350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15351 (exit $ac_status); } &&
15352 { ac_try='test -s conftest$ac_exeext'
15353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15354 (eval $ac_try) 2>&5
15356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15357 (exit $ac_status); }; }; then
15358 eval "$as_ac_var=yes"
15360 echo "$as_me: failed program was:" >&5
15361 sed 's/^/| /' conftest.$ac_ext >&5
15363 eval "$as_ac_var=no"
15365 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15367 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15368 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15369 if test `eval echo '${'$as_ac_var'}'` = yes; then
15370 cat >>confdefs.h <<_ACEOF
15371 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15373 cat >>confdefs.h <<\_ACEOF
15374 #define HAVE_FCHDIR 1
15381 for ac_func in strtoll
15383 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15384 echo "$as_me:$LINENO: checking for $ac_func" >&5
15385 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15386 if eval "test \"\${$as_ac_var+set}\" = set"; then
15387 echo $ECHO_N "(cached) $ECHO_C" >&6
15389 cat >conftest.$ac_ext <<_ACEOF
15390 #line $LINENO "configure"
15393 cat confdefs.h >>conftest.$ac_ext
15394 cat >>conftest.$ac_ext <<_ACEOF
15395 /* end confdefs.h. */
15396 /* System header to define __stub macros and hopefully few prototypes,
15397 which can conflict with char $ac_func (); below.
15398 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15399 <limits.h> exists even on freestanding compilers. */
15401 # include <limits.h>
15403 # include <assert.h>
15405 /* Override any gcc2 internal prototype to avoid an error. */
15410 /* We use char because int might match the return type of a gcc2
15411 builtin and then its argument prototype would still apply. */
15413 /* The GNU C library defines this for functions which it implements
15414 to always fail with ENOSYS. Some functions are actually named
15415 something starting with __ and the normal name is an alias. */
15416 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15419 char (*f) () = $ac_func;
15428 return f != $ac_func;
15433 rm -f conftest.$ac_objext conftest$ac_exeext
15434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15435 (eval $ac_link) 2>&5
15437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15438 (exit $ac_status); } &&
15439 { ac_try='test -s conftest$ac_exeext'
15440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15441 (eval $ac_try) 2>&5
15443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15444 (exit $ac_status); }; }; then
15445 eval "$as_ac_var=yes"
15447 echo "$as_me: failed program was:" >&5
15448 sed 's/^/| /' conftest.$ac_ext >&5
15450 eval "$as_ac_var=no"
15452 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15454 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15455 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15456 if test `eval echo '${'$as_ac_var'}'` = yes; then
15457 cat >>confdefs.h <<_ACEOF
15458 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15460 cat >>confdefs.h <<\_ACEOF
15461 #define HAVE_STRTOLL 1
15469 for ac_func in chflags
15471 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15472 echo "$as_me:$LINENO: checking for $ac_func" >&5
15473 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15474 if eval "test \"\${$as_ac_var+set}\" = set"; then
15475 echo $ECHO_N "(cached) $ECHO_C" >&6
15477 cat >conftest.$ac_ext <<_ACEOF
15478 #line $LINENO "configure"
15481 cat confdefs.h >>conftest.$ac_ext
15482 cat >>conftest.$ac_ext <<_ACEOF
15483 /* end confdefs.h. */
15484 /* System header to define __stub macros and hopefully few prototypes,
15485 which can conflict with char $ac_func (); below.
15486 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15487 <limits.h> exists even on freestanding compilers. */
15489 # include <limits.h>
15491 # include <assert.h>
15493 /* Override any gcc2 internal prototype to avoid an error. */
15498 /* We use char because int might match the return type of a gcc2
15499 builtin and then its argument prototype would still apply. */
15501 /* The GNU C library defines this for functions which it implements
15502 to always fail with ENOSYS. Some functions are actually named
15503 something starting with __ and the normal name is an alias. */
15504 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15507 char (*f) () = $ac_func;
15516 return f != $ac_func;
15521 rm -f conftest.$ac_objext conftest$ac_exeext
15522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15523 (eval $ac_link) 2>&5
15525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15526 (exit $ac_status); } &&
15527 { ac_try='test -s conftest$ac_exeext'
15528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15529 (eval $ac_try) 2>&5
15531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15532 (exit $ac_status); }; }; then
15533 eval "$as_ac_var=yes"
15535 echo "$as_me: failed program was:" >&5
15536 sed 's/^/| /' conftest.$ac_ext >&5
15538 eval "$as_ac_var=no"
15540 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15542 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15543 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15544 if test `eval echo '${'$as_ac_var'}'` = yes; then
15545 cat >>confdefs.h <<_ACEOF
15546 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15557 for ac_func in snprintf vsnprintf gethostid getdomainname
15559 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15560 echo "$as_me:$LINENO: checking for $ac_func" >&5
15561 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15562 if eval "test \"\${$as_ac_var+set}\" = set"; then
15563 echo $ECHO_N "(cached) $ECHO_C" >&6
15565 cat >conftest.$ac_ext <<_ACEOF
15566 #line $LINENO "configure"
15569 cat confdefs.h >>conftest.$ac_ext
15570 cat >>conftest.$ac_ext <<_ACEOF
15571 /* end confdefs.h. */
15572 /* System header to define __stub macros and hopefully few prototypes,
15573 which can conflict with char $ac_func (); below.
15574 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15575 <limits.h> exists even on freestanding compilers. */
15577 # include <limits.h>
15579 # include <assert.h>
15581 /* Override any gcc2 internal prototype to avoid an error. */
15586 /* We use char because int might match the return type of a gcc2
15587 builtin and then its argument prototype would still apply. */
15589 /* The GNU C library defines this for functions which it implements
15590 to always fail with ENOSYS. Some functions are actually named
15591 something starting with __ and the normal name is an alias. */
15592 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15595 char (*f) () = $ac_func;
15604 return f != $ac_func;
15609 rm -f conftest.$ac_objext conftest$ac_exeext
15610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15611 (eval $ac_link) 2>&5
15613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15614 (exit $ac_status); } &&
15615 { ac_try='test -s conftest$ac_exeext'
15616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15617 (eval $ac_try) 2>&5
15619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15620 (exit $ac_status); }; }; then
15621 eval "$as_ac_var=yes"
15623 echo "$as_me: failed program was:" >&5
15624 sed 's/^/| /' conftest.$ac_ext >&5
15626 eval "$as_ac_var=no"
15628 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15630 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15631 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15632 if test `eval echo '${'$as_ac_var'}'` = yes; then
15633 cat >>confdefs.h <<_ACEOF
15634 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15645 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
15647 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15648 echo "$as_me:$LINENO: checking for $ac_func" >&5
15649 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15650 if eval "test \"\${$as_ac_var+set}\" = set"; then
15651 echo $ECHO_N "(cached) $ECHO_C" >&6
15653 cat >conftest.$ac_ext <<_ACEOF
15654 #line $LINENO "configure"
15657 cat confdefs.h >>conftest.$ac_ext
15658 cat >>conftest.$ac_ext <<_ACEOF
15659 /* end confdefs.h. */
15660 /* System header to define __stub macros and hopefully few prototypes,
15661 which can conflict with char $ac_func (); below.
15662 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15663 <limits.h> exists even on freestanding compilers. */
15665 # include <limits.h>
15667 # include <assert.h>
15669 /* Override any gcc2 internal prototype to avoid an error. */
15674 /* We use char because int might match the return type of a gcc2
15675 builtin and then its argument prototype would still apply. */
15677 /* The GNU C library defines this for functions which it implements
15678 to always fail with ENOSYS. Some functions are actually named
15679 something starting with __ and the normal name is an alias. */
15680 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15683 char (*f) () = $ac_func;
15692 return f != $ac_func;
15697 rm -f conftest.$ac_objext conftest$ac_exeext
15698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15699 (eval $ac_link) 2>&5
15701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15702 (exit $ac_status); } &&
15703 { ac_try='test -s conftest$ac_exeext'
15704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15705 (eval $ac_try) 2>&5
15707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15708 (exit $ac_status); }; }; then
15709 eval "$as_ac_var=yes"
15711 echo "$as_me: failed program was:" >&5
15712 sed 's/^/| /' conftest.$ac_ext >&5
15714 eval "$as_ac_var=no"
15716 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15718 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15719 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15720 if test `eval echo '${'$as_ac_var'}'` = yes; then
15721 cat >>confdefs.h <<_ACEOF
15722 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15729 # If resolver functions are not in libc check for -lnsl or -lresolv.
15730 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
15731 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
15732 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
15733 echo $ECHO_N "(cached) $ECHO_C" >&6
15735 cat >conftest.$ac_ext <<_ACEOF
15736 #line $LINENO "configure"
15739 cat confdefs.h >>conftest.$ac_ext
15740 cat >>conftest.$ac_ext <<_ACEOF
15741 /* end confdefs.h. */
15742 /* System header to define __stub macros and hopefully few prototypes,
15743 which can conflict with char gethostbyname_r (); below.
15744 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15745 <limits.h> exists even on freestanding compilers. */
15747 # include <limits.h>
15749 # include <assert.h>
15751 /* Override any gcc2 internal prototype to avoid an error. */
15756 /* We use char because int might match the return type of a gcc2
15757 builtin and then its argument prototype would still apply. */
15758 char gethostbyname_r ();
15759 /* The GNU C library defines this for functions which it implements
15760 to always fail with ENOSYS. Some functions are actually named
15761 something starting with __ and the normal name is an alias. */
15762 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
15765 char (*f) () = gethostbyname_r;
15774 return f != gethostbyname_r;
15779 rm -f conftest.$ac_objext conftest$ac_exeext
15780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15781 (eval $ac_link) 2>&5
15783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15784 (exit $ac_status); } &&
15785 { ac_try='test -s conftest$ac_exeext'
15786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15787 (eval $ac_try) 2>&5
15789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15790 (exit $ac_status); }; }; then
15791 ac_cv_func_gethostbyname_r=yes
15793 echo "$as_me: failed program was:" >&5
15794 sed 's/^/| /' conftest.$ac_ext >&5
15796 ac_cv_func_gethostbyname_r=no
15798 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15800 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
15801 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
15802 if test $ac_cv_func_gethostbyname_r = yes; then
15803 echo "$as_me:$LINENO: result: using libc's resolver" >&5
15804 echo "${ECHO_T}using libc's resolver" >&6
15807 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
15808 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
15809 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
15810 echo $ECHO_N "(cached) $ECHO_C" >&6
15812 ac_check_lib_save_LIBS=$LIBS
15814 cat >conftest.$ac_ext <<_ACEOF
15815 #line $LINENO "configure"
15818 cat confdefs.h >>conftest.$ac_ext
15819 cat >>conftest.$ac_ext <<_ACEOF
15820 /* end confdefs.h. */
15822 /* Override any gcc2 internal prototype to avoid an error. */
15826 /* We use char because int might match the return type of a gcc2
15827 builtin and then its argument prototype would still apply. */
15828 char gethostbyname_r ();
15832 gethostbyname_r ();
15837 rm -f conftest.$ac_objext conftest$ac_exeext
15838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15839 (eval $ac_link) 2>&5
15841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15842 (exit $ac_status); } &&
15843 { ac_try='test -s conftest$ac_exeext'
15844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15845 (eval $ac_try) 2>&5
15847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15848 (exit $ac_status); }; }; then
15849 ac_cv_lib_nsl_gethostbyname_r=yes
15851 echo "$as_me: failed program was:" >&5
15852 sed 's/^/| /' conftest.$ac_ext >&5
15854 ac_cv_lib_nsl_gethostbyname_r=no
15856 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15857 LIBS=$ac_check_lib_save_LIBS
15859 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
15860 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
15861 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
15862 cat >>confdefs.h <<_ACEOF
15863 #define HAVE_LIBNSL 1
15871 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
15872 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
15873 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
15874 echo $ECHO_N "(cached) $ECHO_C" >&6
15876 ac_check_lib_save_LIBS=$LIBS
15877 LIBS="-lresolv $LIBS"
15878 cat >conftest.$ac_ext <<_ACEOF
15879 #line $LINENO "configure"
15882 cat confdefs.h >>conftest.$ac_ext
15883 cat >>conftest.$ac_ext <<_ACEOF
15884 /* end confdefs.h. */
15886 /* Override any gcc2 internal prototype to avoid an error. */
15890 /* We use char because int might match the return type of a gcc2
15891 builtin and then its argument prototype would still apply. */
15892 char gethostbyname_r ();
15896 gethostbyname_r ();
15901 rm -f conftest.$ac_objext conftest$ac_exeext
15902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15903 (eval $ac_link) 2>&5
15905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15906 (exit $ac_status); } &&
15907 { ac_try='test -s conftest$ac_exeext'
15908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15909 (eval $ac_try) 2>&5
15911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15912 (exit $ac_status); }; }; then
15913 ac_cv_lib_resolv_gethostbyname_r=yes
15915 echo "$as_me: failed program was:" >&5
15916 sed 's/^/| /' conftest.$ac_ext >&5
15918 ac_cv_lib_resolv_gethostbyname_r=no
15920 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15921 LIBS=$ac_check_lib_save_LIBS
15923 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
15924 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
15925 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
15926 cat >>confdefs.h <<_ACEOF
15927 #define HAVE_LIBRESOLV 1
15930 LIBS="-lresolv $LIBS"
15938 # Find where sockets are (especially for Solaris)
15939 echo "$as_me:$LINENO: checking for socket" >&5
15940 echo $ECHO_N "checking for socket... $ECHO_C" >&6
15941 if test "${ac_cv_func_socket+set}" = set; then
15942 echo $ECHO_N "(cached) $ECHO_C" >&6
15944 cat >conftest.$ac_ext <<_ACEOF
15945 #line $LINENO "configure"
15948 cat confdefs.h >>conftest.$ac_ext
15949 cat >>conftest.$ac_ext <<_ACEOF
15950 /* end confdefs.h. */
15951 /* System header to define __stub macros and hopefully few prototypes,
15952 which can conflict with char socket (); below.
15953 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15954 <limits.h> exists even on freestanding compilers. */
15956 # include <limits.h>
15958 # include <assert.h>
15960 /* Override any gcc2 internal prototype to avoid an error. */
15965 /* We use char because int might match the return type of a gcc2
15966 builtin and then its argument prototype would still apply. */
15968 /* The GNU C library defines this for functions which it implements
15969 to always fail with ENOSYS. Some functions are actually named
15970 something starting with __ and the normal name is an alias. */
15971 #if defined (__stub_socket) || defined (__stub___socket)
15974 char (*f) () = socket;
15983 return f != socket;
15988 rm -f conftest.$ac_objext conftest$ac_exeext
15989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15990 (eval $ac_link) 2>&5
15992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15993 (exit $ac_status); } &&
15994 { ac_try='test -s conftest$ac_exeext'
15995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15996 (eval $ac_try) 2>&5
15998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15999 (exit $ac_status); }; }; then
16000 ac_cv_func_socket=yes
16002 echo "$as_me: failed program was:" >&5
16003 sed 's/^/| /' conftest.$ac_ext >&5
16005 ac_cv_func_socket=no
16007 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16009 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
16010 echo "${ECHO_T}$ac_cv_func_socket" >&6
16011 if test $ac_cv_func_socket = yes; then
16012 echo "$as_me:$LINENO: result: using libc's socket" >&5
16013 echo "${ECHO_T}using libc's socket" >&6
16016 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
16017 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
16018 if test "${ac_cv_lib_xnet_socket+set}" = set; then
16019 echo $ECHO_N "(cached) $ECHO_C" >&6
16021 ac_check_lib_save_LIBS=$LIBS
16022 LIBS="-lxnet $LIBS"
16023 cat >conftest.$ac_ext <<_ACEOF
16024 #line $LINENO "configure"
16027 cat confdefs.h >>conftest.$ac_ext
16028 cat >>conftest.$ac_ext <<_ACEOF
16029 /* end confdefs.h. */
16031 /* Override any gcc2 internal prototype to avoid an error. */
16035 /* We use char because int might match the return type of a gcc2
16036 builtin and then its argument prototype would still apply. */
16046 rm -f conftest.$ac_objext conftest$ac_exeext
16047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16048 (eval $ac_link) 2>&5
16050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16051 (exit $ac_status); } &&
16052 { ac_try='test -s conftest$ac_exeext'
16053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16054 (eval $ac_try) 2>&5
16056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16057 (exit $ac_status); }; }; then
16058 ac_cv_lib_xnet_socket=yes
16060 echo "$as_me: failed program was:" >&5
16061 sed 's/^/| /' conftest.$ac_ext >&5
16063 ac_cv_lib_xnet_socket=no
16065 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16066 LIBS=$ac_check_lib_save_LIBS
16068 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
16069 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
16070 if test $ac_cv_lib_xnet_socket = yes; then
16071 cat >>confdefs.h <<_ACEOF
16072 #define HAVE_LIBXNET 1
16075 LIBS="-lxnet $LIBS"
16080 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
16081 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
16082 if test "${ac_cv_lib_socket_socket+set}" = set; then
16083 echo $ECHO_N "(cached) $ECHO_C" >&6
16085 ac_check_lib_save_LIBS=$LIBS
16086 LIBS="-lsocket $LIBS"
16087 cat >conftest.$ac_ext <<_ACEOF
16088 #line $LINENO "configure"
16091 cat confdefs.h >>conftest.$ac_ext
16092 cat >>conftest.$ac_ext <<_ACEOF
16093 /* end confdefs.h. */
16095 /* Override any gcc2 internal prototype to avoid an error. */
16099 /* We use char because int might match the return type of a gcc2
16100 builtin and then its argument prototype would still apply. */
16110 rm -f conftest.$ac_objext conftest$ac_exeext
16111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16112 (eval $ac_link) 2>&5
16114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16115 (exit $ac_status); } &&
16116 { ac_try='test -s conftest$ac_exeext'
16117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16118 (eval $ac_try) 2>&5
16120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16121 (exit $ac_status); }; }; then
16122 ac_cv_lib_socket_socket=yes
16124 echo "$as_me: failed program was:" >&5
16125 sed 's/^/| /' conftest.$ac_ext >&5
16127 ac_cv_lib_socket_socket=no
16129 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16130 LIBS=$ac_check_lib_save_LIBS
16132 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
16133 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
16134 if test $ac_cv_lib_socket_socket = yes; then
16135 cat >>confdefs.h <<_ACEOF
16136 #define HAVE_LIBSOCKET 1
16139 LIBS="-lsocket $LIBS"
16144 echo "$as_me:$LINENO: checking for socket in -linet" >&5
16145 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
16146 if test "${ac_cv_lib_inet_socket+set}" = set; then
16147 echo $ECHO_N "(cached) $ECHO_C" >&6
16149 ac_check_lib_save_LIBS=$LIBS
16150 LIBS="-linet $LIBS"
16151 cat >conftest.$ac_ext <<_ACEOF
16152 #line $LINENO "configure"
16155 cat confdefs.h >>conftest.$ac_ext
16156 cat >>conftest.$ac_ext <<_ACEOF
16157 /* end confdefs.h. */
16159 /* Override any gcc2 internal prototype to avoid an error. */
16163 /* We use char because int might match the return type of a gcc2
16164 builtin and then its argument prototype would still apply. */
16174 rm -f conftest.$ac_objext conftest$ac_exeext
16175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16176 (eval $ac_link) 2>&5
16178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16179 (exit $ac_status); } &&
16180 { ac_try='test -s conftest$ac_exeext'
16181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16182 (eval $ac_try) 2>&5
16184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16185 (exit $ac_status); }; }; then
16186 ac_cv_lib_inet_socket=yes
16188 echo "$as_me: failed program was:" >&5
16189 sed 's/^/| /' conftest.$ac_ext >&5
16191 ac_cv_lib_inet_socket=no
16193 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16194 LIBS=$ac_check_lib_save_LIBS
16196 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
16197 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
16198 if test $ac_cv_lib_inet_socket = yes; then
16199 cat >>confdefs.h <<_ACEOF
16200 #define HAVE_LIBINET 1
16203 LIBS="-linet $LIBS"
16211 for ac_func in inet_pton
16213 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16214 echo "$as_me:$LINENO: checking for $ac_func" >&5
16215 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16216 if eval "test \"\${$as_ac_var+set}\" = set"; then
16217 echo $ECHO_N "(cached) $ECHO_C" >&6
16219 cat >conftest.$ac_ext <<_ACEOF
16220 #line $LINENO "configure"
16223 cat confdefs.h >>conftest.$ac_ext
16224 cat >>conftest.$ac_ext <<_ACEOF
16225 /* end confdefs.h. */
16226 /* System header to define __stub macros and hopefully few prototypes,
16227 which can conflict with char $ac_func (); below.
16228 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16229 <limits.h> exists even on freestanding compilers. */
16231 # include <limits.h>
16233 # include <assert.h>
16235 /* Override any gcc2 internal prototype to avoid an error. */
16240 /* We use char because int might match the return type of a gcc2
16241 builtin and then its argument prototype would still apply. */
16243 /* The GNU C library defines this for functions which it implements
16244 to always fail with ENOSYS. Some functions are actually named
16245 something starting with __ and the normal name is an alias. */
16246 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16249 char (*f) () = $ac_func;
16258 return f != $ac_func;
16263 rm -f conftest.$ac_objext conftest$ac_exeext
16264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16265 (eval $ac_link) 2>&5
16267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16268 (exit $ac_status); } &&
16269 { ac_try='test -s conftest$ac_exeext'
16270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16271 (eval $ac_try) 2>&5
16273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16274 (exit $ac_status); }; }; then
16275 eval "$as_ac_var=yes"
16277 echo "$as_me: failed program was:" >&5
16278 sed 's/^/| /' conftest.$ac_ext >&5
16280 eval "$as_ac_var=no"
16282 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16284 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16285 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16286 if test `eval echo '${'$as_ac_var'}'` = yes; then
16287 cat >>confdefs.h <<_ACEOF
16288 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16290 cat >>confdefs.h <<\_ACEOF
16291 #define HAVE_INET_PTON 1
16299 for ac_func in strftime
16301 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16302 echo "$as_me:$LINENO: checking for $ac_func" >&5
16303 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16304 if eval "test \"\${$as_ac_var+set}\" = set"; then
16305 echo $ECHO_N "(cached) $ECHO_C" >&6
16307 cat >conftest.$ac_ext <<_ACEOF
16308 #line $LINENO "configure"
16311 cat confdefs.h >>conftest.$ac_ext
16312 cat >>conftest.$ac_ext <<_ACEOF
16313 /* end confdefs.h. */
16314 /* System header to define __stub macros and hopefully few prototypes,
16315 which can conflict with char $ac_func (); below.
16316 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16317 <limits.h> exists even on freestanding compilers. */
16319 # include <limits.h>
16321 # include <assert.h>
16323 /* Override any gcc2 internal prototype to avoid an error. */
16328 /* We use char because int might match the return type of a gcc2
16329 builtin and then its argument prototype would still apply. */
16331 /* The GNU C library defines this for functions which it implements
16332 to always fail with ENOSYS. Some functions are actually named
16333 something starting with __ and the normal name is an alias. */
16334 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16337 char (*f) () = $ac_func;
16346 return f != $ac_func;
16351 rm -f conftest.$ac_objext conftest$ac_exeext
16352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16353 (eval $ac_link) 2>&5
16355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16356 (exit $ac_status); } &&
16357 { ac_try='test -s conftest$ac_exeext'
16358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16359 (eval $ac_try) 2>&5
16361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16362 (exit $ac_status); }; }; then
16363 eval "$as_ac_var=yes"
16365 echo "$as_me: failed program was:" >&5
16366 sed 's/^/| /' conftest.$ac_ext >&5
16368 eval "$as_ac_var=no"
16370 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16372 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16373 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16374 if test `eval echo '${'$as_ac_var'}'` = yes; then
16375 cat >>confdefs.h <<_ACEOF
16376 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16380 # strftime is in -lintl on SCO UNIX.
16381 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
16382 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
16383 if test "${ac_cv_lib_intl_strftime+set}" = set; then
16384 echo $ECHO_N "(cached) $ECHO_C" >&6
16386 ac_check_lib_save_LIBS=$LIBS
16387 LIBS="-lintl $LIBS"
16388 cat >conftest.$ac_ext <<_ACEOF
16389 #line $LINENO "configure"
16392 cat confdefs.h >>conftest.$ac_ext
16393 cat >>conftest.$ac_ext <<_ACEOF
16394 /* end confdefs.h. */
16396 /* Override any gcc2 internal prototype to avoid an error. */
16400 /* We use char because int might match the return type of a gcc2
16401 builtin and then its argument prototype would still apply. */
16411 rm -f conftest.$ac_objext conftest$ac_exeext
16412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16413 (eval $ac_link) 2>&5
16415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16416 (exit $ac_status); } &&
16417 { ac_try='test -s conftest$ac_exeext'
16418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16419 (eval $ac_try) 2>&5
16421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16422 (exit $ac_status); }; }; then
16423 ac_cv_lib_intl_strftime=yes
16425 echo "$as_me: failed program was:" >&5
16426 sed 's/^/| /' conftest.$ac_ext >&5
16428 ac_cv_lib_intl_strftime=no
16430 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16431 LIBS=$ac_check_lib_save_LIBS
16433 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
16434 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
16435 if test $ac_cv_lib_intl_strftime = yes; then
16436 cat >>confdefs.h <<\_ACEOF
16437 #define HAVE_STRFTIME 1
16440 LIBS="-lintl $LIBS"
16447 for ac_func in vprintf
16449 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16450 echo "$as_me:$LINENO: checking for $ac_func" >&5
16451 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16452 if eval "test \"\${$as_ac_var+set}\" = set"; then
16453 echo $ECHO_N "(cached) $ECHO_C" >&6
16455 cat >conftest.$ac_ext <<_ACEOF
16456 #line $LINENO "configure"
16459 cat confdefs.h >>conftest.$ac_ext
16460 cat >>conftest.$ac_ext <<_ACEOF
16461 /* end confdefs.h. */
16462 /* System header to define __stub macros and hopefully few prototypes,
16463 which can conflict with char $ac_func (); below.
16464 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16465 <limits.h> exists even on freestanding compilers. */
16467 # include <limits.h>
16469 # include <assert.h>
16471 /* Override any gcc2 internal prototype to avoid an error. */
16476 /* We use char because int might match the return type of a gcc2
16477 builtin and then its argument prototype would still apply. */
16479 /* The GNU C library defines this for functions which it implements
16480 to always fail with ENOSYS. Some functions are actually named
16481 something starting with __ and the normal name is an alias. */
16482 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16485 char (*f) () = $ac_func;
16494 return f != $ac_func;
16499 rm -f conftest.$ac_objext conftest$ac_exeext
16500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16501 (eval $ac_link) 2>&5
16503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16504 (exit $ac_status); } &&
16505 { ac_try='test -s conftest$ac_exeext'
16506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16507 (eval $ac_try) 2>&5
16509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16510 (exit $ac_status); }; }; then
16511 eval "$as_ac_var=yes"
16513 echo "$as_me: failed program was:" >&5
16514 sed 's/^/| /' conftest.$ac_ext >&5
16516 eval "$as_ac_var=no"
16518 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16520 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16521 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16522 if test `eval echo '${'$as_ac_var'}'` = yes; then
16523 cat >>confdefs.h <<_ACEOF
16524 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16527 echo "$as_me:$LINENO: checking for _doprnt" >&5
16528 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
16529 if test "${ac_cv_func__doprnt+set}" = set; then
16530 echo $ECHO_N "(cached) $ECHO_C" >&6
16532 cat >conftest.$ac_ext <<_ACEOF
16533 #line $LINENO "configure"
16536 cat confdefs.h >>conftest.$ac_ext
16537 cat >>conftest.$ac_ext <<_ACEOF
16538 /* end confdefs.h. */
16539 /* System header to define __stub macros and hopefully few prototypes,
16540 which can conflict with char _doprnt (); below.
16541 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16542 <limits.h> exists even on freestanding compilers. */
16544 # include <limits.h>
16546 # include <assert.h>
16548 /* Override any gcc2 internal prototype to avoid an error. */
16553 /* We use char because int might match the return type of a gcc2
16554 builtin and then its argument prototype would still apply. */
16556 /* The GNU C library defines this for functions which it implements
16557 to always fail with ENOSYS. Some functions are actually named
16558 something starting with __ and the normal name is an alias. */
16559 #if defined (__stub__doprnt) || defined (__stub____doprnt)
16562 char (*f) () = _doprnt;
16571 return f != _doprnt;
16576 rm -f conftest.$ac_objext conftest$ac_exeext
16577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16578 (eval $ac_link) 2>&5
16580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16581 (exit $ac_status); } &&
16582 { ac_try='test -s conftest$ac_exeext'
16583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16584 (eval $ac_try) 2>&5
16586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16587 (exit $ac_status); }; }; then
16588 ac_cv_func__doprnt=yes
16590 echo "$as_me: failed program was:" >&5
16591 sed 's/^/| /' conftest.$ac_ext >&5
16593 ac_cv_func__doprnt=no
16595 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16597 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
16598 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
16599 if test $ac_cv_func__doprnt = yes; then
16601 cat >>confdefs.h <<\_ACEOF
16602 #define HAVE_DOPRNT 1
16611 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16612 # for constant arguments. Useless!
16613 echo "$as_me:$LINENO: checking for working alloca.h" >&5
16614 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
16615 if test "${ac_cv_working_alloca_h+set}" = set; then
16616 echo $ECHO_N "(cached) $ECHO_C" >&6
16618 cat >conftest.$ac_ext <<_ACEOF
16619 #line $LINENO "configure"
16622 cat confdefs.h >>conftest.$ac_ext
16623 cat >>conftest.$ac_ext <<_ACEOF
16624 /* end confdefs.h. */
16625 #include <alloca.h>
16629 char *p = (char *) alloca (2 * sizeof (int));
16634 rm -f conftest.$ac_objext conftest$ac_exeext
16635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16636 (eval $ac_link) 2>&5
16638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16639 (exit $ac_status); } &&
16640 { ac_try='test -s conftest$ac_exeext'
16641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16642 (eval $ac_try) 2>&5
16644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16645 (exit $ac_status); }; }; then
16646 ac_cv_working_alloca_h=yes
16648 echo "$as_me: failed program was:" >&5
16649 sed 's/^/| /' conftest.$ac_ext >&5
16651 ac_cv_working_alloca_h=no
16653 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16655 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16656 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
16657 if test $ac_cv_working_alloca_h = yes; then
16659 cat >>confdefs.h <<\_ACEOF
16660 #define HAVE_ALLOCA_H 1
16665 echo "$as_me:$LINENO: checking for alloca" >&5
16666 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
16667 if test "${ac_cv_func_alloca_works+set}" = set; then
16668 echo $ECHO_N "(cached) $ECHO_C" >&6
16670 cat >conftest.$ac_ext <<_ACEOF
16671 #line $LINENO "configure"
16674 cat confdefs.h >>conftest.$ac_ext
16675 cat >>conftest.$ac_ext <<_ACEOF
16676 /* end confdefs.h. */
16678 # define alloca __builtin_alloca
16681 # include <malloc.h>
16682 # define alloca _alloca
16685 # include <alloca.h>
16690 # ifndef alloca /* predefined by HP cc +Olibcalls */
16701 char *p = (char *) alloca (1);
16706 rm -f conftest.$ac_objext conftest$ac_exeext
16707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16708 (eval $ac_link) 2>&5
16710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16711 (exit $ac_status); } &&
16712 { ac_try='test -s conftest$ac_exeext'
16713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16714 (eval $ac_try) 2>&5
16716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16717 (exit $ac_status); }; }; then
16718 ac_cv_func_alloca_works=yes
16720 echo "$as_me: failed program was:" >&5
16721 sed 's/^/| /' conftest.$ac_ext >&5
16723 ac_cv_func_alloca_works=no
16725 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16727 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16728 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
16730 if test $ac_cv_func_alloca_works = yes; then
16732 cat >>confdefs.h <<\_ACEOF
16733 #define HAVE_ALLOCA 1
16737 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16738 # that cause trouble. Some versions do not even contain alloca or
16739 # contain a buggy version. If you still want to use their alloca,
16740 # use ar to extract alloca.o from them instead of compiling alloca.c.
16742 ALLOCA=alloca.$ac_objext
16744 cat >>confdefs.h <<\_ACEOF
16749 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16750 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
16751 if test "${ac_cv_os_cray+set}" = set; then
16752 echo $ECHO_N "(cached) $ECHO_C" >&6
16754 cat >conftest.$ac_ext <<_ACEOF
16755 #line $LINENO "configure"
16758 cat confdefs.h >>conftest.$ac_ext
16759 cat >>conftest.$ac_ext <<_ACEOF
16760 /* end confdefs.h. */
16761 #if defined(CRAY) && ! defined(CRAY2)
16768 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16769 $EGREP "webecray" >/dev/null 2>&1; then
16777 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16778 echo "${ECHO_T}$ac_cv_os_cray" >&6
16779 if test $ac_cv_os_cray = yes; then
16780 for ac_func in _getb67 GETB67 getb67; do
16781 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16782 echo "$as_me:$LINENO: checking for $ac_func" >&5
16783 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16784 if eval "test \"\${$as_ac_var+set}\" = set"; then
16785 echo $ECHO_N "(cached) $ECHO_C" >&6
16787 cat >conftest.$ac_ext <<_ACEOF
16788 #line $LINENO "configure"
16791 cat confdefs.h >>conftest.$ac_ext
16792 cat >>conftest.$ac_ext <<_ACEOF
16793 /* end confdefs.h. */
16794 /* System header to define __stub macros and hopefully few prototypes,
16795 which can conflict with char $ac_func (); below.
16796 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16797 <limits.h> exists even on freestanding compilers. */
16799 # include <limits.h>
16801 # include <assert.h>
16803 /* Override any gcc2 internal prototype to avoid an error. */
16808 /* We use char because int might match the return type of a gcc2
16809 builtin and then its argument prototype would still apply. */
16811 /* The GNU C library defines this for functions which it implements
16812 to always fail with ENOSYS. Some functions are actually named
16813 something starting with __ and the normal name is an alias. */
16814 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16817 char (*f) () = $ac_func;
16826 return f != $ac_func;
16831 rm -f conftest.$ac_objext conftest$ac_exeext
16832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16833 (eval $ac_link) 2>&5
16835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16836 (exit $ac_status); } &&
16837 { ac_try='test -s conftest$ac_exeext'
16838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16839 (eval $ac_try) 2>&5
16841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16842 (exit $ac_status); }; }; then
16843 eval "$as_ac_var=yes"
16845 echo "$as_me: failed program was:" >&5
16846 sed 's/^/| /' conftest.$ac_ext >&5
16848 eval "$as_ac_var=no"
16850 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16852 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16853 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16854 if test `eval echo '${'$as_ac_var'}'` = yes; then
16856 cat >>confdefs.h <<_ACEOF
16857 #define CRAY_STACKSEG_END $ac_func
16866 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16867 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16868 if test "${ac_cv_c_stack_direction+set}" = set; then
16869 echo $ECHO_N "(cached) $ECHO_C" >&6
16871 if test "$cross_compiling" = yes; then
16872 ac_cv_c_stack_direction=0
16874 cat >conftest.$ac_ext <<_ACEOF
16875 #line $LINENO "configure"
16878 cat confdefs.h >>conftest.$ac_ext
16879 cat >>conftest.$ac_ext <<_ACEOF
16880 /* end confdefs.h. */
16882 find_stack_direction ()
16884 static char *addr = 0;
16889 return find_stack_direction ();
16892 return (&dummy > addr) ? 1 : -1;
16898 exit (find_stack_direction () < 0);
16901 rm -f conftest$ac_exeext
16902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16903 (eval $ac_link) 2>&5
16905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16906 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16908 (eval $ac_try) 2>&5
16910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16911 (exit $ac_status); }; }; then
16912 ac_cv_c_stack_direction=1
16914 echo "$as_me: program exited with status $ac_status" >&5
16915 echo "$as_me: failed program was:" >&5
16916 sed 's/^/| /' conftest.$ac_ext >&5
16918 ( exit $ac_status )
16919 ac_cv_c_stack_direction=-1
16921 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16924 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16925 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16927 cat >>confdefs.h <<_ACEOF
16928 #define STACK_DIRECTION $ac_cv_c_stack_direction
16934 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
16935 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
16936 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
16937 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
16938 echo $ECHO_N "(cached) $ECHO_C" >&6
16940 ac_check_lib_save_LIBS=$LIBS
16942 cat >conftest.$ac_ext <<_ACEOF
16943 #line $LINENO "configure"
16946 cat confdefs.h >>conftest.$ac_ext
16947 cat >>conftest.$ac_ext <<_ACEOF
16948 /* end confdefs.h. */
16950 /* Override any gcc2 internal prototype to avoid an error. */
16954 /* We use char because int might match the return type of a gcc2
16955 builtin and then its argument prototype would still apply. */
16965 rm -f conftest.$ac_objext conftest$ac_exeext
16966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16967 (eval $ac_link) 2>&5
16969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16970 (exit $ac_status); } &&
16971 { ac_try='test -s conftest$ac_exeext'
16972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16973 (eval $ac_try) 2>&5
16975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16976 (exit $ac_status); }; }; then
16977 ac_cv_lib_sun_getmntent=yes
16979 echo "$as_me: failed program was:" >&5
16980 sed 's/^/| /' conftest.$ac_ext >&5
16982 ac_cv_lib_sun_getmntent=no
16984 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16985 LIBS=$ac_check_lib_save_LIBS
16987 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
16988 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
16989 if test $ac_cv_lib_sun_getmntent = yes; then
16992 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
16993 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
16994 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
16995 echo $ECHO_N "(cached) $ECHO_C" >&6
16997 ac_check_lib_save_LIBS=$LIBS
16999 cat >conftest.$ac_ext <<_ACEOF
17000 #line $LINENO "configure"
17003 cat confdefs.h >>conftest.$ac_ext
17004 cat >>conftest.$ac_ext <<_ACEOF
17005 /* end confdefs.h. */
17007 /* Override any gcc2 internal prototype to avoid an error. */
17011 /* We use char because int might match the return type of a gcc2
17012 builtin and then its argument prototype would still apply. */
17022 rm -f conftest.$ac_objext conftest$ac_exeext
17023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17024 (eval $ac_link) 2>&5
17026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17027 (exit $ac_status); } &&
17028 { ac_try='test -s conftest$ac_exeext'
17029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17030 (eval $ac_try) 2>&5
17032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17033 (exit $ac_status); }; }; then
17034 ac_cv_lib_seq_getmntent=yes
17036 echo "$as_me: failed program was:" >&5
17037 sed 's/^/| /' conftest.$ac_ext >&5
17039 ac_cv_lib_seq_getmntent=no
17041 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17042 LIBS=$ac_check_lib_save_LIBS
17044 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
17045 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
17046 if test $ac_cv_lib_seq_getmntent = yes; then
17049 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
17050 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
17051 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
17052 echo $ECHO_N "(cached) $ECHO_C" >&6
17054 ac_check_lib_save_LIBS=$LIBS
17056 cat >conftest.$ac_ext <<_ACEOF
17057 #line $LINENO "configure"
17060 cat confdefs.h >>conftest.$ac_ext
17061 cat >>conftest.$ac_ext <<_ACEOF
17062 /* end confdefs.h. */
17064 /* Override any gcc2 internal prototype to avoid an error. */
17068 /* We use char because int might match the return type of a gcc2
17069 builtin and then its argument prototype would still apply. */
17079 rm -f conftest.$ac_objext conftest$ac_exeext
17080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17081 (eval $ac_link) 2>&5
17083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17084 (exit $ac_status); } &&
17085 { ac_try='test -s conftest$ac_exeext'
17086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17087 (eval $ac_try) 2>&5
17089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17090 (exit $ac_status); }; }; then
17091 ac_cv_lib_gen_getmntent=yes
17093 echo "$as_me: failed program was:" >&5
17094 sed 's/^/| /' conftest.$ac_ext >&5
17096 ac_cv_lib_gen_getmntent=no
17098 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17099 LIBS=$ac_check_lib_save_LIBS
17101 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
17102 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
17103 if test $ac_cv_lib_gen_getmntent = yes; then
17112 for ac_func in getmntent
17114 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17115 echo "$as_me:$LINENO: checking for $ac_func" >&5
17116 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17117 if eval "test \"\${$as_ac_var+set}\" = set"; then
17118 echo $ECHO_N "(cached) $ECHO_C" >&6
17120 cat >conftest.$ac_ext <<_ACEOF
17121 #line $LINENO "configure"
17124 cat confdefs.h >>conftest.$ac_ext
17125 cat >>conftest.$ac_ext <<_ACEOF
17126 /* end confdefs.h. */
17127 /* System header to define __stub macros and hopefully few prototypes,
17128 which can conflict with char $ac_func (); below.
17129 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17130 <limits.h> exists even on freestanding compilers. */
17132 # include <limits.h>
17134 # include <assert.h>
17136 /* Override any gcc2 internal prototype to avoid an error. */
17141 /* We use char because int might match the return type of a gcc2
17142 builtin and then its argument prototype would still apply. */
17144 /* The GNU C library defines this for functions which it implements
17145 to always fail with ENOSYS. Some functions are actually named
17146 something starting with __ and the normal name is an alias. */
17147 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17150 char (*f) () = $ac_func;
17159 return f != $ac_func;
17164 rm -f conftest.$ac_objext conftest$ac_exeext
17165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17166 (eval $ac_link) 2>&5
17168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17169 (exit $ac_status); } &&
17170 { ac_try='test -s conftest$ac_exeext'
17171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17172 (eval $ac_try) 2>&5
17174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17175 (exit $ac_status); }; }; then
17176 eval "$as_ac_var=yes"
17178 echo "$as_me: failed program was:" >&5
17179 sed 's/^/| /' conftest.$ac_ext >&5
17181 eval "$as_ac_var=no"
17183 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17185 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17186 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17187 if test `eval echo '${'$as_ac_var'}'` = yes; then
17188 cat >>confdefs.h <<_ACEOF
17189 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17196 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
17197 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
17198 if test "${ac_cv_func_closedir_void+set}" = set; then
17199 echo $ECHO_N "(cached) $ECHO_C" >&6
17201 if test "$cross_compiling" = yes; then
17202 ac_cv_func_closedir_void=yes
17204 cat >conftest.$ac_ext <<_ACEOF
17205 #line $LINENO "configure"
17208 cat confdefs.h >>conftest.$ac_ext
17209 cat >>conftest.$ac_ext <<_ACEOF
17210 /* end confdefs.h. */
17211 $ac_includes_default
17212 #include <$ac_header_dirent>
17213 #ifndef __cplusplus
17220 exit (closedir (opendir (".")) != 0);
17225 rm -f conftest$ac_exeext
17226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17227 (eval $ac_link) 2>&5
17229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17230 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17232 (eval $ac_try) 2>&5
17234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17235 (exit $ac_status); }; }; then
17236 ac_cv_func_closedir_void=no
17238 echo "$as_me: program exited with status $ac_status" >&5
17239 echo "$as_me: failed program was:" >&5
17240 sed 's/^/| /' conftest.$ac_ext >&5
17242 ( exit $ac_status )
17243 ac_cv_func_closedir_void=yes
17245 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17248 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
17249 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
17250 if test $ac_cv_func_closedir_void = yes; then
17252 cat >>confdefs.h <<\_ACEOF
17253 #define CLOSEDIR_VOID 1
17258 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
17259 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
17260 if test "${ac_cv_func_setpgrp_void+set}" = set; then
17261 echo $ECHO_N "(cached) $ECHO_C" >&6
17263 if test "$cross_compiling" = yes; then
17264 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
17265 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
17266 { (exit 1); exit 1; }; }
17268 cat >conftest.$ac_ext <<_ACEOF
17269 #line $LINENO "configure"
17272 cat confdefs.h >>conftest.$ac_ext
17273 cat >>conftest.$ac_ext <<_ACEOF
17274 /* end confdefs.h. */
17276 # include <unistd.h>
17282 /* If this system has a BSD-style setpgrp which takes arguments,
17283 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
17284 exit successfully. */
17285 exit (setpgrp (1,1) == -1 ? 0 : 1);
17290 rm -f conftest$ac_exeext
17291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17292 (eval $ac_link) 2>&5
17294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17295 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17297 (eval $ac_try) 2>&5
17299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17300 (exit $ac_status); }; }; then
17301 ac_cv_func_setpgrp_void=no
17303 echo "$as_me: program exited with status $ac_status" >&5
17304 echo "$as_me: failed program was:" >&5
17305 sed 's/^/| /' conftest.$ac_ext >&5
17307 ( exit $ac_status )
17308 ac_cv_func_setpgrp_void=yes
17310 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17313 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
17314 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
17315 if test $ac_cv_func_setpgrp_void = yes; then
17317 cat >>confdefs.h <<\_ACEOF
17318 #define SETPGRP_VOID 1
17322 echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
17323 echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6
17324 if test "${ac_cv_func_fnmatch_works+set}" = set; then
17325 echo $ECHO_N "(cached) $ECHO_C" >&6
17327 # Some versions of Solaris, SCO, and the GNU C Library
17328 # have a broken or incompatible fnmatch.
17329 # So we run a test program. If we are cross-compiling, take no chance.
17330 # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
17331 if test "$cross_compiling" = yes; then
17332 ac_cv_func_fnmatch_works=cross
17334 cat >conftest.$ac_ext <<_ACEOF
17335 #line $LINENO "configure"
17338 cat confdefs.h >>conftest.$ac_ext
17339 cat >>conftest.$ac_ext <<_ACEOF
17340 /* end confdefs.h. */
17341 #include <fnmatch.h>
17342 # define y(a, b, c) (fnmatch (a, b, c) == 0)
17343 # define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
17349 (!(y ("a*", "abc", 0)
17350 && n ("d*/*1", "d/s/1", FNM_PATHNAME)
17351 && y ("a\\\\bc", "abc", 0)
17352 && n ("a\\\\bc", "abc", FNM_NOESCAPE)
17353 && y ("*x", ".x", 0)
17354 && n ("*x", ".x", FNM_PERIOD)
17360 rm -f conftest$ac_exeext
17361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17362 (eval $ac_link) 2>&5
17364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17365 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17367 (eval $ac_try) 2>&5
17369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17370 (exit $ac_status); }; }; then
17371 ac_cv_func_fnmatch_works=yes
17373 echo "$as_me: program exited with status $ac_status" >&5
17374 echo "$as_me: failed program was:" >&5
17375 sed 's/^/| /' conftest.$ac_ext >&5
17377 ( exit $ac_status )
17378 ac_cv_func_fnmatch_works=no
17380 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17383 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_works" >&5
17384 echo "${ECHO_T}$ac_cv_func_fnmatch_works" >&6
17385 if test $ac_cv_func_fnmatch_works = yes; then
17387 cat >>confdefs.h <<\_ACEOF
17388 #define HAVE_FNMATCH 1
17397 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
17398 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
17399 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
17400 echo $ECHO_N "(cached) $ECHO_C" >&6
17402 ac_check_lib_save_LIBS=$LIBS
17403 LIBS="-lxpg4 $LIBS"
17404 cat >conftest.$ac_ext <<_ACEOF
17405 #line $LINENO "configure"
17408 cat confdefs.h >>conftest.$ac_ext
17409 cat >>conftest.$ac_ext <<_ACEOF
17410 /* end confdefs.h. */
17412 /* Override any gcc2 internal prototype to avoid an error. */
17416 /* We use char because int might match the return type of a gcc2
17417 builtin and then its argument prototype would still apply. */
17427 rm -f conftest.$ac_objext conftest$ac_exeext
17428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17429 (eval $ac_link) 2>&5
17431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17432 (exit $ac_status); } &&
17433 { ac_try='test -s conftest$ac_exeext'
17434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17435 (eval $ac_try) 2>&5
17437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17438 (exit $ac_status); }; }; then
17439 ac_cv_lib_xpg4_setlocale=yes
17441 echo "$as_me: failed program was:" >&5
17442 sed 's/^/| /' conftest.$ac_ext >&5
17444 ac_cv_lib_xpg4_setlocale=no
17446 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17447 LIBS=$ac_check_lib_save_LIBS
17449 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
17450 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
17451 if test $ac_cv_lib_xpg4_setlocale = yes; then
17452 LIBS="$LIBS -lxpg4"
17458 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
17459 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
17460 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
17461 echo $ECHO_N "(cached) $ECHO_C" >&6
17463 ac_check_lib_save_LIBS=$LIBS
17465 cat >conftest.$ac_ext <<_ACEOF
17466 #line $LINENO "configure"
17469 cat confdefs.h >>conftest.$ac_ext
17470 cat >>conftest.$ac_ext <<_ACEOF
17471 /* end confdefs.h. */
17473 /* Override any gcc2 internal prototype to avoid an error. */
17477 /* We use char because int might match the return type of a gcc2
17478 builtin and then its argument prototype would still apply. */
17488 rm -f conftest.$ac_objext conftest$ac_exeext
17489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17490 (eval $ac_link) 2>&5
17492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17493 (exit $ac_status); } &&
17494 { ac_try='test -s conftest$ac_exeext'
17495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17496 (eval $ac_try) 2>&5
17498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17499 (exit $ac_status); }; }; then
17500 ac_cv_lib_sun_getpwnam=yes
17502 echo "$as_me: failed program was:" >&5
17503 sed 's/^/| /' conftest.$ac_ext >&5
17505 ac_cv_lib_sun_getpwnam=no
17507 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17508 LIBS=$ac_check_lib_save_LIBS
17510 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
17511 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
17512 if test $ac_cv_lib_sun_getpwnam = yes; then
17513 cat >>confdefs.h <<_ACEOF
17514 #define HAVE_LIBSUN 1
17523 for ac_header in zlib.h
17525 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17526 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17527 echo "$as_me:$LINENO: checking for $ac_header" >&5
17528 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17529 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17530 echo $ECHO_N "(cached) $ECHO_C" >&6
17532 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17533 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17535 # Is the header compilable?
17536 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17537 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17538 cat >conftest.$ac_ext <<_ACEOF
17539 #line $LINENO "configure"
17542 cat confdefs.h >>conftest.$ac_ext
17543 cat >>conftest.$ac_ext <<_ACEOF
17544 /* end confdefs.h. */
17545 $ac_includes_default
17546 #include <$ac_header>
17548 rm -f conftest.$ac_objext
17549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17550 (eval $ac_compile) 2>&5
17552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17553 (exit $ac_status); } &&
17554 { ac_try='test -s conftest.$ac_objext'
17555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17556 (eval $ac_try) 2>&5
17558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17559 (exit $ac_status); }; }; then
17560 ac_header_compiler=yes
17562 echo "$as_me: failed program was:" >&5
17563 sed 's/^/| /' conftest.$ac_ext >&5
17565 ac_header_compiler=no
17567 rm -f conftest.$ac_objext conftest.$ac_ext
17568 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17569 echo "${ECHO_T}$ac_header_compiler" >&6
17571 # Is the header present?
17572 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17573 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17574 cat >conftest.$ac_ext <<_ACEOF
17575 #line $LINENO "configure"
17578 cat confdefs.h >>conftest.$ac_ext
17579 cat >>conftest.$ac_ext <<_ACEOF
17580 /* end confdefs.h. */
17581 #include <$ac_header>
17583 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17584 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17586 grep -v '^ *+' conftest.er1 >conftest.err
17588 cat conftest.err >&5
17589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17590 (exit $ac_status); } >/dev/null; then
17591 if test -s conftest.err; then
17592 ac_cpp_err=$ac_c_preproc_warn_flag
17599 if test -z "$ac_cpp_err"; then
17600 ac_header_preproc=yes
17602 echo "$as_me: failed program was:" >&5
17603 sed 's/^/| /' conftest.$ac_ext >&5
17605 ac_header_preproc=no
17607 rm -f conftest.err conftest.$ac_ext
17608 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17609 echo "${ECHO_T}$ac_header_preproc" >&6
17611 # So? What about this header?
17612 case $ac_header_compiler:$ac_header_preproc in
17614 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17615 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17616 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17617 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17620 ## ------------------------------------ ##
17621 ## Report this to bug-autoconf@gnu.org. ##
17622 ## ------------------------------------ ##
17625 sed "s/^/$as_me: WARNING: /" >&2
17628 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17629 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17630 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17631 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17632 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17633 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17636 ## ------------------------------------ ##
17637 ## Report this to bug-autoconf@gnu.org. ##
17638 ## ------------------------------------ ##
17641 sed "s/^/$as_me: WARNING: /" >&2
17644 echo "$as_me:$LINENO: checking for $ac_header" >&5
17645 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17646 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17647 echo $ECHO_N "(cached) $ECHO_C" >&6
17649 eval "$as_ac_Header=$ac_header_preproc"
17651 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17652 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17655 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17656 cat >>confdefs.h <<_ACEOF
17657 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17664 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
17665 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
17666 if test "${ac_cv_lib_z_deflate+set}" = set; then
17667 echo $ECHO_N "(cached) $ECHO_C" >&6
17669 ac_check_lib_save_LIBS=$LIBS
17671 cat >conftest.$ac_ext <<_ACEOF
17672 #line $LINENO "configure"
17675 cat confdefs.h >>conftest.$ac_ext
17676 cat >>conftest.$ac_ext <<_ACEOF
17677 /* end confdefs.h. */
17679 /* Override any gcc2 internal prototype to avoid an error. */
17683 /* We use char because int might match the return type of a gcc2
17684 builtin and then its argument prototype would still apply. */
17694 rm -f conftest.$ac_objext conftest$ac_exeext
17695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17696 (eval $ac_link) 2>&5
17698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17699 (exit $ac_status); } &&
17700 { ac_try='test -s conftest$ac_exeext'
17701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17702 (eval $ac_try) 2>&5
17704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17705 (exit $ac_status); }; }; then
17706 ac_cv_lib_z_deflate=yes
17708 echo "$as_me: failed program was:" >&5
17709 sed 's/^/| /' conftest.$ac_ext >&5
17711 ac_cv_lib_z_deflate=no
17713 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17714 LIBS=$ac_check_lib_save_LIBS
17716 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
17717 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
17718 if test $ac_cv_lib_z_deflate = yes; then
17723 if test x$FDLIBS = x-lz; then
17724 cat >>confdefs.h <<\_ACEOF
17725 #define HAVE_LIBZ 1
17731 if test "${ac_cv_header_sys_acl_h+set}" = set; then
17732 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
17733 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
17734 if test "${ac_cv_header_sys_acl_h+set}" = set; then
17735 echo $ECHO_N "(cached) $ECHO_C" >&6
17737 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
17738 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
17740 # Is the header compilable?
17741 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
17742 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
17743 cat >conftest.$ac_ext <<_ACEOF
17744 #line $LINENO "configure"
17747 cat confdefs.h >>conftest.$ac_ext
17748 cat >>conftest.$ac_ext <<_ACEOF
17749 /* end confdefs.h. */
17750 $ac_includes_default
17751 #include <sys/acl.h>
17753 rm -f conftest.$ac_objext
17754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17755 (eval $ac_compile) 2>&5
17757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17758 (exit $ac_status); } &&
17759 { ac_try='test -s conftest.$ac_objext'
17760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17761 (eval $ac_try) 2>&5
17763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17764 (exit $ac_status); }; }; then
17765 ac_header_compiler=yes
17767 echo "$as_me: failed program was:" >&5
17768 sed 's/^/| /' conftest.$ac_ext >&5
17770 ac_header_compiler=no
17772 rm -f conftest.$ac_objext conftest.$ac_ext
17773 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17774 echo "${ECHO_T}$ac_header_compiler" >&6
17776 # Is the header present?
17777 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
17778 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
17779 cat >conftest.$ac_ext <<_ACEOF
17780 #line $LINENO "configure"
17783 cat confdefs.h >>conftest.$ac_ext
17784 cat >>conftest.$ac_ext <<_ACEOF
17785 /* end confdefs.h. */
17786 #include <sys/acl.h>
17788 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17789 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17791 grep -v '^ *+' conftest.er1 >conftest.err
17793 cat conftest.err >&5
17794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17795 (exit $ac_status); } >/dev/null; then
17796 if test -s conftest.err; then
17797 ac_cpp_err=$ac_c_preproc_warn_flag
17804 if test -z "$ac_cpp_err"; then
17805 ac_header_preproc=yes
17807 echo "$as_me: failed program was:" >&5
17808 sed 's/^/| /' conftest.$ac_ext >&5
17810 ac_header_preproc=no
17812 rm -f conftest.err conftest.$ac_ext
17813 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17814 echo "${ECHO_T}$ac_header_preproc" >&6
17816 # So? What about this header?
17817 case $ac_header_compiler:$ac_header_preproc in
17819 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
17820 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17821 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
17822 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
17825 ## ------------------------------------ ##
17826 ## Report this to bug-autoconf@gnu.org. ##
17827 ## ------------------------------------ ##
17830 sed "s/^/$as_me: WARNING: /" >&2
17833 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
17834 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
17835 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
17836 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
17837 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
17838 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
17841 ## ------------------------------------ ##
17842 ## Report this to bug-autoconf@gnu.org. ##
17843 ## ------------------------------------ ##
17846 sed "s/^/$as_me: WARNING: /" >&2
17849 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
17850 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
17851 if test "${ac_cv_header_sys_acl_h+set}" = set; then
17852 echo $ECHO_N "(cached) $ECHO_C" >&6
17854 ac_cv_header_sys_acl_h=$ac_header_preproc
17856 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
17857 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
17862 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
17863 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
17864 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
17865 echo $ECHO_N "(cached) $ECHO_C" >&6
17867 ac_check_lib_save_LIBS=$LIBS
17869 cat >conftest.$ac_ext <<_ACEOF
17870 #line $LINENO "configure"
17873 cat confdefs.h >>conftest.$ac_ext
17874 cat >>conftest.$ac_ext <<_ACEOF
17875 /* end confdefs.h. */
17877 /* Override any gcc2 internal prototype to avoid an error. */
17881 /* We use char because int might match the return type of a gcc2
17882 builtin and then its argument prototype would still apply. */
17883 char acl_get_file ();
17892 rm -f conftest.$ac_objext conftest$ac_exeext
17893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17894 (eval $ac_link) 2>&5
17896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17897 (exit $ac_status); } &&
17898 { ac_try='test -s conftest$ac_exeext'
17899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17900 (eval $ac_try) 2>&5
17902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17903 (exit $ac_status); }; }; then
17904 ac_cv_lib_acl_acl_get_file=yes
17906 echo "$as_me: failed program was:" >&5
17907 sed 's/^/| /' conftest.$ac_ext >&5
17909 ac_cv_lib_acl_acl_get_file=no
17911 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17912 LIBS=$ac_check_lib_save_LIBS
17914 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
17915 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
17916 if test $ac_cv_lib_acl_acl_get_file = yes; then
17917 FDLIBS="-lacl $FDLIBS"
17921 if test $ac_cv_lib_acl_acl_get_file = yes; then
17922 cat >>confdefs.h <<\_ACEOF
17930 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
17931 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
17932 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
17933 echo $ECHO_N "(cached) $ECHO_C" >&6
17935 ac_check_lib_save_LIBS=$LIBS
17936 LIBS="-lpthread $LIBS"
17937 cat >conftest.$ac_ext <<_ACEOF
17938 #line $LINENO "configure"
17941 cat confdefs.h >>conftest.$ac_ext
17942 cat >>conftest.$ac_ext <<_ACEOF
17943 /* end confdefs.h. */
17945 /* Override any gcc2 internal prototype to avoid an error. */
17949 /* We use char because int might match the return type of a gcc2
17950 builtin and then its argument prototype would still apply. */
17951 char pthread_create ();
17960 rm -f conftest.$ac_objext conftest$ac_exeext
17961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17962 (eval $ac_link) 2>&5
17964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17965 (exit $ac_status); } &&
17966 { ac_try='test -s conftest$ac_exeext'
17967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17968 (eval $ac_try) 2>&5
17970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17971 (exit $ac_status); }; }; then
17972 ac_cv_lib_pthread_pthread_create=yes
17974 echo "$as_me: failed program was:" >&5
17975 sed 's/^/| /' conftest.$ac_ext >&5
17977 ac_cv_lib_pthread_pthread_create=no
17979 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17980 LIBS=$ac_check_lib_save_LIBS
17982 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
17983 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
17984 if test $ac_cv_lib_pthread_pthread_create = yes; then
17985 PTHREAD_LIB="-lpthread"
17987 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
17988 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
17989 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
17990 echo $ECHO_N "(cached) $ECHO_C" >&6
17992 ac_check_lib_save_LIBS=$LIBS
17993 LIBS="-lpthreads $LIBS"
17994 cat >conftest.$ac_ext <<_ACEOF
17995 #line $LINENO "configure"
17998 cat confdefs.h >>conftest.$ac_ext
17999 cat >>conftest.$ac_ext <<_ACEOF
18000 /* end confdefs.h. */
18002 /* Override any gcc2 internal prototype to avoid an error. */
18006 /* We use char because int might match the return type of a gcc2
18007 builtin and then its argument prototype would still apply. */
18008 char pthread_create ();
18017 rm -f conftest.$ac_objext conftest$ac_exeext
18018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18019 (eval $ac_link) 2>&5
18021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18022 (exit $ac_status); } &&
18023 { ac_try='test -s conftest$ac_exeext'
18024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18025 (eval $ac_try) 2>&5
18027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18028 (exit $ac_status); }; }; then
18029 ac_cv_lib_pthreads_pthread_create=yes
18031 echo "$as_me: failed program was:" >&5
18032 sed 's/^/| /' conftest.$ac_ext >&5
18034 ac_cv_lib_pthreads_pthread_create=no
18036 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18037 LIBS=$ac_check_lib_save_LIBS
18039 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
18040 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
18041 if test $ac_cv_lib_pthreads_pthread_create = yes; then
18042 PTHREAD_LIB="-lpthreads"
18044 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
18045 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
18046 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
18047 echo $ECHO_N "(cached) $ECHO_C" >&6
18049 ac_check_lib_save_LIBS=$LIBS
18051 cat >conftest.$ac_ext <<_ACEOF
18052 #line $LINENO "configure"
18055 cat confdefs.h >>conftest.$ac_ext
18056 cat >>conftest.$ac_ext <<_ACEOF
18057 /* end confdefs.h. */
18059 /* Override any gcc2 internal prototype to avoid an error. */
18063 /* We use char because int might match the return type of a gcc2
18064 builtin and then its argument prototype would still apply. */
18065 char pthread_create ();
18074 rm -f conftest.$ac_objext conftest$ac_exeext
18075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18076 (eval $ac_link) 2>&5
18078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18079 (exit $ac_status); } &&
18080 { ac_try='test -s conftest$ac_exeext'
18081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18082 (eval $ac_try) 2>&5
18084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18085 (exit $ac_status); }; }; then
18086 ac_cv_lib_c_r_pthread_create=yes
18088 echo "$as_me: failed program was:" >&5
18089 sed 's/^/| /' conftest.$ac_ext >&5
18091 ac_cv_lib_c_r_pthread_create=no
18093 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18094 LIBS=$ac_check_lib_save_LIBS
18096 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
18097 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
18098 if test $ac_cv_lib_c_r_pthread_create = yes; then
18099 PTHREAD_LIB="-lc_r"
18101 echo "$as_me:$LINENO: checking for pthread_create" >&5
18102 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
18103 if test "${ac_cv_func_pthread_create+set}" = set; then
18104 echo $ECHO_N "(cached) $ECHO_C" >&6
18106 cat >conftest.$ac_ext <<_ACEOF
18107 #line $LINENO "configure"
18110 cat confdefs.h >>conftest.$ac_ext
18111 cat >>conftest.$ac_ext <<_ACEOF
18112 /* end confdefs.h. */
18113 /* System header to define __stub macros and hopefully few prototypes,
18114 which can conflict with char pthread_create (); below.
18115 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18116 <limits.h> exists even on freestanding compilers. */
18118 # include <limits.h>
18120 # include <assert.h>
18122 /* Override any gcc2 internal prototype to avoid an error. */
18127 /* We use char because int might match the return type of a gcc2
18128 builtin and then its argument prototype would still apply. */
18129 char pthread_create ();
18130 /* The GNU C library defines this for functions which it implements
18131 to always fail with ENOSYS. Some functions are actually named
18132 something starting with __ and the normal name is an alias. */
18133 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
18136 char (*f) () = pthread_create;
18145 return f != pthread_create;
18150 rm -f conftest.$ac_objext conftest$ac_exeext
18151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18152 (eval $ac_link) 2>&5
18154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18155 (exit $ac_status); } &&
18156 { ac_try='test -s conftest$ac_exeext'
18157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18158 (eval $ac_try) 2>&5
18160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18161 (exit $ac_status); }; }; then
18162 ac_cv_func_pthread_create=yes
18164 echo "$as_me: failed program was:" >&5
18165 sed 's/^/| /' conftest.$ac_ext >&5
18167 ac_cv_func_pthread_create=no
18169 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18171 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
18172 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
18185 cat >>confdefs.h <<\_ACEOF
18191 CFLAGS=${CFLAGS--O}
18192 LDFLAGS=${LDFLAGS--O}
18193 DB_LIBS="${SQL_LFLAGS}"
18195 CPPFLAGS="$CPPFLAGS"
18220 # Finally we set appropriate distribution specific
18221 # variables and defaults
18223 # PFILES are platform specific files
18224 PFILES="platforms/Makefile"
18228 hostname=`uname -n | cut -d '.' -f 1`
18229 case "$DISTNAME" in
18232 PSCMD="ps -e -o pid,comm"
18233 PFILES="${PFILES} \
18234 platforms/aix/Makefile"
18235 TAPEDRIVE="/dev/rmt0.1"
18239 PTHREAD_LIB="-lpthread -lexc"
18240 if test "${CC}" = "gcc" ; then
18247 TAPEDRIVE="/dev/nrmt0"
18250 DISTVER=`uname -a |awk '{print $3}'`
18251 TAPEDRIVE="/dev/nrmt0"
18252 PTHREAD_LIB="-pthread"
18253 CFLAGS="${CFLAGS} -pthread"
18254 PSCMD="ps -x -o pid,command"
18257 PFILES="${PFILES} \
18258 platforms/bsdi/Makefile \
18259 platforms/bsdi/bacula-fd \
18260 platforms/bsdi/bacula-sd \
18261 platforms/bsdi/bacula-dir"
18262 largefile_support="yes"
18265 DISTVER=`uname -a |awk '{print $3}'`
18266 TAPEDRIVE="/dev/nrst0"
18268 WCFLAGS="-mwindows"
18269 WLDFLAGS="-mwindows"
18273 TAPEDRIVE="/dev/nst0"
18274 PSCMD="ps -e -o pid,command"
18276 PFILES="${PFILES} \
18277 platforms/darwin/Makefile"
18280 DISTVER=`cat /etc/debian_version`
18281 TAPEDRIVE="/dev/nrst0"
18282 PSCMD="ps -e -o pid,command"
18285 DISTVER=`uname -a |awk '{print $3}'`
18286 VER=`echo $DISTVER | cut -c 1`
18287 if test x$VER = x4 ; then
18288 PTHREAD_LIB="-pthread"
18289 CFLAGS="${CFLAGS} -pthread"
18293 TAPEDRIVE="/dev/nrsa0"
18294 PSCMD="ps -x -o pid,command"
18295 PFILES="${PFILES} \
18296 platforms/freebsd/Makefile \
18297 platforms/freebsd/bacula-fd \
18298 platforms/freebsd/bacula-sd \
18299 platforms/freebsd/bacula-dir"
18300 largefile_support="yes"
18303 PSCMD="UNIX95=1 ps -e -o pid,comm"
18304 CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
18306 TAPEDRIVE="/dev/rmt/0hnb"
18310 TAPEDRIVE="/dev/rmt/0cbn"
18311 PSCMD="ps -e -o pid,comm"
18312 PFILES="${PFILES} \
18313 platforms/irix/Makefile \
18314 platforms/irix/bacula-fd \
18315 platforms/irix/bacula-sd \
18316 platforms/irix/bacula-dir"
18319 DISTVER=`uname -a |awk '{print $3}'`
18322 TAPEDRIVE="/dev/nrst0"
18323 PSCMD="ps -a -o pid,command"
18324 PTHREAD_LIB="-pthread"
18325 CFLAGS="${CFLAGS} -pthread"
18328 DISTVER=`uname -a |awk '{print $3}'`
18331 TAPEDRIVE="/dev/nrst0"
18332 PSCMD="ps -a -o pid,command"
18333 PTHREAD_LIB="-pthread"
18334 CFLAGS="${CFLAGS} -pthread"
18335 PFILES="${PFILES} \
18336 platforms/openbsd/Makefile \
18337 platforms/openbsd/bacula-fd \
18338 platforms/openbsd/bacula-sd \
18339 platforms/openbsd/bacula-dir"
18342 if test -f /etc/whitebox-release ; then
18343 f=/etc/whitebox-release
18345 f=/etc/redhat-release
18347 if test `cat $f | grep release |\
18348 cut -f 3 -d ' '`x = "Enterprise"x ; then
18349 DISTVER="Enterprise "`cat $f | grep release |\
18352 DISTVER=`cat /etc/redhat-release | grep release |\
18355 TAPEDRIVE="/dev/nst0"
18356 PSCMD="ps -e -o pid,command"
18357 PFILES="${PFILES} \
18358 platforms/redhat/Makefile \
18359 platforms/redhat/bacula-fd \
18360 platforms/redhat/bacula-sd \
18361 platforms/redhat/bacula-dir \
18362 platforms/redhat/bacula.spec \
18364 hostname=`hostname -s`
18367 DISTVER=`cat /etc/mandrake-release | grep release |\
18369 TAPEDRIVE="/dev/nst0"
18370 PSCMD="ps -e -o pid,command"
18371 PFILES="${PFILES} \
18372 platforms/mandrake/Makefile \
18373 platforms/mandrake/bacula-fd \
18374 platforms/mandrake/bacula-sd \
18375 platforms/mandrake/bacula-dir \
18376 platforms/mandrake/bacula.spec \
18380 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
18381 TAPEDRIVE="/dev/nst0"
18382 PSCMD="ps -e -o pid,command"
18383 PFILES="${PFILES} \
18384 platforms/gentoo/Makefile \
18385 platforms/gentoo/bacula-fd \
18386 platforms/gentoo/bacula-sd \
18387 platforms/gentoo/bacula-dir"
18390 DISTVER=`cat /etc/slackware-version`
18391 TAPEDRIVE="/dev/nst0"
18392 PSCMD="ps -e -o pid,command"
18393 PFILES="${PFILES} \
18394 platforms/slackware/Makefile \
18395 platforms/slackware/rc.bacula-fd \
18396 platforms/slackware/rc.bacula-sd \
18397 platforms/slackware/rc.bacula-dir\
18398 platforms/slackware/functions.bacula"
18402 TAPEDRIVE="/dev/rmt/0cbn"
18403 PSCMD="ps -e -o pid,comm"
18404 PFILES="${PFILES} \
18405 platforms/solaris/Makefile \
18406 platforms/solaris/bacula-fd \
18407 platforms/solaris/bacula-sd \
18408 platforms/solaris/bacula-dir"
18409 if test x$DISTVER = x5.6 ; then
18410 cat >>confdefs.h <<\_ACEOF
18411 #define HAVE_OLD_SOCKOPT 1
18417 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
18419 TAPEDRIVE="/dev/nst0"
18420 PSCMD="ps -e -o pid,command"
18421 PFILES="${PFILES} \
18422 platforms/suse/Makefile \
18423 platforms/suse/bacula-fd \
18424 platforms/suse/bacula-sd \
18425 platforms/suse/bacula-dir \
18426 platforms/suse/bacula \
18427 platforms/suse/bacula.spec"
18432 TAPEDRIVE="/dev/nst0"
18433 PSCMD="ps -e -o pid,command"
18434 PFILES="${PFILES} \
18435 platforms/suse/Makefile \
18436 platforms/suse/bacula-fd \
18437 platforms/suse/bacula-sd \
18438 platforms/suse/bacula-dir"
18442 TAPEDRIVE="/dev/nst0"
18445 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
18451 LIBS="$PTHREAD_LIB $LIBS"
18453 cat >>confdefs.h <<_ACEOF
18457 cat >>confdefs.h <<_ACEOF
18468 MCOMMON=./autoconf/Make.common
18471 if test "x${subsysdir}" = "x${sbindir}" ; then
18474 echo "You have set both --sbindir and --with-subsys-dir"
18475 echo " equal to: ${subsysdir} "
18476 echo "This is not permitted. Please reconfigure."
18478 echo "Aborting configuration ..."
18484 ac_config_files="$ac_config_files autoconf/Make.common Makefile rescue/Makefile rescue/linux/Makefile rescue/freebsd/Makefile rescue/solaris/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/gnome-console.console_apps scripts/mtx-changer doc/Makefile src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome-console/Makefile src/gnome-console/gnome-console.conf src/gnome2-console/Makefile src/gnome2-console/gnome-console.conf src/wx-console/Makefile src/wx-console/wx-console.conf src/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"
18485 ac_config_commands="$ac_config_commands default"
18486 cat >confcache <<\_ACEOF
18487 # This file is a shell script that caches the results of configure
18488 # tests run on this system so they can be shared between configure
18489 # scripts and configure runs, see configure's option --config-cache.
18490 # It is not useful on other systems. If it contains results you don't
18491 # want to keep, you may remove or edit it.
18493 # config.status only pays attention to the cache file if you give it
18494 # the --recheck option to rerun configure.
18496 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18497 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18498 # following values.
18502 # The following way of writing the cache mishandles newlines in values,
18503 # but we know of no workaround that is simple, portable, and efficient.
18504 # So, don't put newlines in cache variables' values.
18505 # Ultrix sh set writes to stderr and can't be redirected directly,
18506 # and sets the high bit in the cache file unless we assign to the vars.
18509 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18511 # `set' does not quote correctly, so add quotes (double-quote
18512 # substitution turns \\\\ into \\, and sed turns \\ into \).
18515 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18518 # `set' quotes correctly as required by POSIX, so do not add quotes.
18520 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18527 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18529 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18531 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18532 if test -w $cache_file; then
18533 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18534 cat confcache >$cache_file
18536 echo "not updating unwritable cache $cache_file"
18541 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18542 # Let make expand exec_prefix.
18543 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18545 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18546 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18547 # trailing colons and then remove the whole line if VPATH becomes empty
18548 # (actually we leave an empty line to preserve line numbers).
18549 if test "x$srcdir" = x.; then
18550 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18551 s/:*\$(srcdir):*/:/;
18552 s/:*\${srcdir}:*/:/;
18554 s/^\([^=]*=[ ]*\):*/\1/;
18560 DEFS=-DHAVE_CONFIG_H
18564 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18565 # 1. Remove the extension, and $U if already installed.
18566 ac_i=`echo "$ac_i" |
18567 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18569 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
18570 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
18572 LIBOBJS=$ac_libobjs
18574 LTLIBOBJS=$ac_ltlibobjs
18578 : ${CONFIG_STATUS=./config.status}
18579 ac_clean_files_save=$ac_clean_files
18580 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18581 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18582 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18583 cat >$CONFIG_STATUS <<_ACEOF
18585 # Generated by $as_me.
18586 # Run this file to recreate the current configuration.
18587 # Compiler output produced by configure, useful for debugging
18588 # configure, is in config.log if it exists.
18591 ac_cs_recheck=false
18593 SHELL=\${CONFIG_SHELL-$SHELL}
18596 cat >>$CONFIG_STATUS <<\_ACEOF
18597 ## --------------------- ##
18598 ## M4sh Initialization. ##
18599 ## --------------------- ##
18601 # Be Bourne compatible
18602 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18605 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18606 # is contrary to our usage. Disable this feature.
18607 alias -g '${1+"$@"}'='"$@"'
18608 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18612 # Support unset when possible.
18613 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
18620 # Work around bugs in pre-3.0 UWIN ksh.
18621 $as_unset ENV MAIL MAILPATH
18628 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18629 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18630 LC_TELEPHONE LC_TIME
18632 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
18633 eval $as_var=C; export $as_var
18639 # Required to use basename.
18640 if expr a : '\(a\)' >/dev/null 2>&1; then
18646 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
18647 as_basename=basename
18653 # Name of the executable.
18654 as_me=`$as_basename "$0" ||
18655 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18656 X"$0" : 'X\(//\)$' \| \
18657 X"$0" : 'X\(/\)$' \| \
18658 . : '\(.\)' 2>/dev/null ||
18660 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18661 /^X\/\(\/\/\)$/{ s//\1/; q; }
18662 /^X\/\(\/\).*/{ s//\1/; q; }
18666 # PATH needs CR, and LINENO needs CR and PATH.
18667 # Avoid depending upon Character Ranges.
18668 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18669 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18670 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18671 as_cr_digits='0123456789'
18672 as_cr_alnum=$as_cr_Letters$as_cr_digits
18674 # The user is always right.
18675 if test "${PATH_SEPARATOR+set}" != set; then
18676 echo "#! /bin/sh" >conf$$.sh
18677 echo "exit 0" >>conf$$.sh
18679 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18688 as_lineno_1=$LINENO
18689 as_lineno_2=$LINENO
18690 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18691 test "x$as_lineno_1" != "x$as_lineno_2" &&
18692 test "x$as_lineno_3" = "x$as_lineno_2" || {
18693 # Find who we are. Look in the path if we contain no path at all
18696 *[\\/]* ) as_myself=$0 ;;
18697 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18698 for as_dir in $PATH
18701 test -z "$as_dir" && as_dir=.
18702 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18707 # We did not find ourselves, most probably we were run as `sh COMMAND'
18708 # in which case we are not to be found in the path.
18709 if test "x$as_myself" = x; then
18712 if test ! -f "$as_myself"; then
18713 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
18714 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
18715 { (exit 1); exit 1; }; }
18717 case $CONFIG_SHELL in
18719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18720 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
18723 test -z "$as_dir" && as_dir=.
18724 for as_base in sh bash ksh sh5; do
18727 if ("$as_dir/$as_base" -c '
18728 as_lineno_1=$LINENO
18729 as_lineno_2=$LINENO
18730 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18731 test "x$as_lineno_1" != "x$as_lineno_2" &&
18732 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
18733 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
18734 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
18735 CONFIG_SHELL=$as_dir/$as_base
18736 export CONFIG_SHELL
18737 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
18745 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18746 # uniformly replaced by the line number. The first 'sed' inserts a
18747 # line-number line before each line; the second 'sed' does the real
18748 # work. The second script uses 'N' to pair each line-number line
18749 # with the numbered line, and appends trailing '-' during
18750 # substitution so that $LINENO is not a special case at line end.
18751 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18752 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
18753 sed '=' <$as_myself |
18758 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
18761 s,^['$as_cr_digits']*\n,,
18762 ' >$as_me.lineno &&
18763 chmod +x $as_me.lineno ||
18764 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
18765 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
18766 { (exit 1); exit 1; }; }
18768 # Don't try to exec as it changes $[0], causing all sort of problems
18769 # (the dirname of $[0] is not the place where we might find the
18770 # original and so on. Autoconf is especially sensible to this).
18772 # Exit status is that of the last command.
18777 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
18778 *c*,-n*) ECHO_N= ECHO_C='
18780 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
18781 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
18784 if expr a : '\(a\)' >/dev/null 2>&1; then
18790 rm -f conf$$ conf$$.exe conf$$.file
18792 if ln -s conf$$.file conf$$ 2>/dev/null; then
18793 # We could just check for DJGPP; but this test a) works b) is more generic
18794 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18795 if test -f conf$$.exe; then
18796 # Don't use ln at all; we don't have any links
18801 elif ln conf$$.file conf$$ 2>/dev/null; then
18806 rm -f conf$$ conf$$.exe conf$$.file
18808 if mkdir -p . 2>/dev/null; then
18814 as_executable_p="test -f"
18816 # Sed expression to map a string onto a valid CPP name.
18817 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
18819 # Sed expression to map a string onto a valid variable name.
18820 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
18824 # We need space, tab and new line, in precisely that order.
18834 # Open the log real soon, to keep \$[0] and so on meaningful, and to
18835 # report actual input values of CONFIG_FILES etc. instead of their
18836 # values after options handling. Logging --version etc. is OK.
18840 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18841 ## Running $as_me. ##
18846 This file was extended by $as_me, which was
18847 generated by GNU Autoconf 2.57. Invocation command line was
18849 CONFIG_FILES = $CONFIG_FILES
18850 CONFIG_HEADERS = $CONFIG_HEADERS
18851 CONFIG_LINKS = $CONFIG_LINKS
18852 CONFIG_COMMANDS = $CONFIG_COMMANDS
18856 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18860 # Files that config.status was made for.
18861 if test -n "$ac_config_files"; then
18862 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18865 if test -n "$ac_config_headers"; then
18866 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18869 if test -n "$ac_config_links"; then
18870 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18873 if test -n "$ac_config_commands"; then
18874 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18877 cat >>$CONFIG_STATUS <<\_ACEOF
18880 \`$as_me' instantiates files from templates according to the
18881 current configuration.
18883 Usage: $0 [OPTIONS] [FILE]...
18885 -h, --help print this help, then exit
18886 -V, --version print version number, then exit
18887 -q, --quiet do not print progress messages
18888 -d, --debug don't remove temporary files
18889 --recheck update $as_me by reconfiguring in the same conditions
18890 --file=FILE[:TEMPLATE]
18891 instantiate the configuration file FILE
18892 --header=FILE[:TEMPLATE]
18893 instantiate the configuration header FILE
18895 Configuration files:
18898 Configuration headers:
18901 Configuration commands:
18904 Report bugs to <bug-autoconf@gnu.org>."
18907 cat >>$CONFIG_STATUS <<_ACEOF
18910 configured by $0, generated by GNU Autoconf 2.57,
18911 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18913 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
18914 Free Software Foundation, Inc.
18915 This config.status script is free software; the Free Software Foundation
18916 gives unlimited permission to copy, distribute and modify it."
18921 cat >>$CONFIG_STATUS <<\_ACEOF
18922 # If no file are specified by the user, then we need to provide default
18923 # value. By we need to know if files were specified by the user.
18929 ac_option=`expr "x$1" : 'x\([^=]*\)='`
18930 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18938 *) # This is not an option, so the user has probably given explicit
18941 ac_need_defaults=false;;
18945 # Handling of the options.
18947 cat >>$CONFIG_STATUS <<\_ACEOF
18948 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18950 --version | --vers* | -V )
18951 echo "$ac_cs_version"; exit 0 ;;
18953 # Conflict between --help and --header
18954 { { echo "$as_me:$LINENO: error: ambiguous option: $1
18955 Try \`$0 --help' for more information." >&5
18956 echo "$as_me: error: ambiguous option: $1
18957 Try \`$0 --help' for more information." >&2;}
18958 { (exit 1); exit 1; }; };;
18959 --help | --hel | -h )
18960 echo "$ac_cs_usage"; exit 0 ;;
18961 --debug | --d* | -d )
18963 --file | --fil | --fi | --f )
18965 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18966 ac_need_defaults=false;;
18967 --header | --heade | --head | --hea )
18969 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18970 ac_need_defaults=false;;
18971 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18972 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18975 # This is an error.
18976 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18977 Try \`$0 --help' for more information." >&5
18978 echo "$as_me: error: unrecognized option: $1
18979 Try \`$0 --help' for more information." >&2;}
18980 { (exit 1); exit 1; }; } ;;
18982 *) ac_config_targets="$ac_config_targets $1" ;;
18988 ac_configure_extra_args=
18990 if $ac_cs_silent; then
18992 ac_configure_extra_args="$ac_configure_extra_args --silent"
18996 cat >>$CONFIG_STATUS <<_ACEOF
18997 if \$ac_cs_recheck; then
18998 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18999 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19008 cat >>$CONFIG_STATUS <<\_ACEOF
19009 for ac_config_target in $ac_config_targets
19011 case "$ac_config_target" in
19012 # Handling of arguments.
19013 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
19014 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19015 "rescue/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/Makefile" ;;
19016 "rescue/linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/Makefile" ;;
19017 "rescue/freebsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/freebsd/Makefile" ;;
19018 "rescue/solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/solaris/Makefile" ;;
19019 "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
19020 "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
19021 "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
19022 "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
19023 "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
19024 "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
19025 "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
19026 "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
19027 "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
19028 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
19029 "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
19030 "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
19031 "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
19032 "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
19033 "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
19034 "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
19035 "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
19036 "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
19037 "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
19038 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
19039 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19040 "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
19041 "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
19042 "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
19043 "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
19044 "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
19045 "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
19046 "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
19047 "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
19048 "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
19049 "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
19050 "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
19051 "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
19052 "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
19053 "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
19054 "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
19055 "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
19056 "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
19057 "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
19058 "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
19059 "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
19060 "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
19061 "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
19062 "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
19063 "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
19064 "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
19065 "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
19066 "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
19067 "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
19068 "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
19069 "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
19070 "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
19071 "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
19072 "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
19073 "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
19074 "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
19075 "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
19076 "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
19077 "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
19078 "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
19079 "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
19080 "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
19081 "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
19082 "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
19083 "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
19084 "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
19085 "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
19086 "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
19087 "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
19088 "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
19089 "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
19090 "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
19091 "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
19092 "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
19093 "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
19094 "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
19095 "src/win32/baculafd/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/baculafd/bacula-fd.conf" ;;
19096 "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
19097 "src/win32/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/console/bconsole.conf" ;;
19098 "src/win32/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/wx-console/wx-console.conf" ;;
19099 "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
19100 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
19101 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
19102 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19103 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19104 { (exit 1); exit 1; }; };;
19108 # If the user did not use the arguments to specify the items to instantiate,
19109 # then the envvar interface is used. Set only those that are not.
19110 # We use the long form for the default assignment because of an extremely
19111 # bizarre bug on SunOS 4.1.3.
19112 if $ac_need_defaults; then
19113 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19114 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19115 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19118 # Have a temporary directory for convenience. Make it in the build tree
19119 # simply because there is no reason to put it here, and in addition,
19120 # creating and moving files from /tmp can sometimes cause problems.
19121 # Create a temporary directory, and hook for its removal unless debugging.
19124 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19125 trap '{ (exit 1); exit 1; }' 1 2 13 15
19128 # Create a (secure) tmp directory for tmp files.
19131 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19132 test -n "$tmp" && test -d "$tmp"
19135 tmp=./confstat$$-$RANDOM
19136 (umask 077 && mkdir $tmp)
19139 echo "$me: cannot create a temporary directory in ." >&2
19140 { (exit 1); exit 1; }
19145 cat >>$CONFIG_STATUS <<_ACEOF
19148 # CONFIG_FILES section.
19151 # No need to generate the scripts if there are no CONFIG_FILES.
19152 # This happens for instance when ./config.status config.h
19153 if test -n "\$CONFIG_FILES"; then
19154 # Protect against being on the right side of a sed subst in config.status.
19155 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19156 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19157 s,@SHELL@,$SHELL,;t t
19158 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19159 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19160 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19161 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19162 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19163 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19164 s,@exec_prefix@,$exec_prefix,;t t
19165 s,@prefix@,$prefix,;t t
19166 s,@program_transform_name@,$program_transform_name,;t t
19167 s,@bindir@,$bindir,;t t
19168 s,@sbindir@,$sbindir,;t t
19169 s,@libexecdir@,$libexecdir,;t t
19170 s,@datadir@,$datadir,;t t
19171 s,@sysconfdir@,$sysconfdir,;t t
19172 s,@sharedstatedir@,$sharedstatedir,;t t
19173 s,@localstatedir@,$localstatedir,;t t
19174 s,@libdir@,$libdir,;t t
19175 s,@includedir@,$includedir,;t t
19176 s,@oldincludedir@,$oldincludedir,;t t
19177 s,@infodir@,$infodir,;t t
19178 s,@mandir@,$mandir,;t t
19179 s,@build_alias@,$build_alias,;t t
19180 s,@host_alias@,$host_alias,;t t
19181 s,@target_alias@,$target_alias,;t t
19182 s,@DEFS@,$DEFS,;t t
19183 s,@ECHO_C@,$ECHO_C,;t t
19184 s,@ECHO_N@,$ECHO_N,;t t
19185 s,@ECHO_T@,$ECHO_T,;t t
19186 s,@LIBS@,$LIBS,;t t
19187 s,@BUILD_DIR@,$BUILD_DIR,;t t
19188 s,@TRUEPRG@,$TRUEPRG,;t t
19189 s,@FALSEPRG@,$FALSEPRG,;t t
19190 s,@VERSION@,$VERSION,;t t
19191 s,@DATE@,$DATE,;t t
19192 s,@LSMDATE@,$LSMDATE,;t t
19194 s,@CFLAGS@,$CFLAGS,;t t
19195 s,@LDFLAGS@,$LDFLAGS,;t t
19196 s,@CPPFLAGS@,$CPPFLAGS,;t t
19197 s,@ac_ct_CC@,$ac_ct_CC,;t t
19198 s,@EXEEXT@,$EXEEXT,;t t
19199 s,@OBJEXT@,$OBJEXT,;t t
19201 s,@CXXFLAGS@,$CXXFLAGS,;t t
19202 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
19204 s,@EGREP@,$EGREP,;t t
19205 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19206 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19207 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19208 s,@RANLIB@,$RANLIB,;t t
19209 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19215 s,@ECHO@,$ECHO,;t t
19219 s,@OPENSSL@,$OPENSSL,;t t
19221 s,@PKGCONFIG@,$PKGCONFIG,;t t
19222 s,@WXCONFIG@,$WXCONFIG,;t t
19223 s,@ARFLAGS@,$ARFLAGS,;t t
19224 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
19225 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
19226 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
19227 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
19228 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
19229 s,@build@,$build,;t t
19230 s,@build_cpu@,$build_cpu,;t t
19231 s,@build_vendor@,$build_vendor,;t t
19232 s,@build_os@,$build_os,;t t
19233 s,@host@,$host,;t t
19234 s,@host_cpu@,$host_cpu,;t t
19235 s,@host_vendor@,$host_vendor,;t t
19236 s,@host_os@,$host_os,;t t
19237 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
19238 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
19239 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
19240 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
19241 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
19242 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
19243 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
19244 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
19245 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
19246 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
19247 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
19248 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
19249 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
19250 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
19251 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
19252 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
19253 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
19254 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
19255 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
19256 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
19257 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
19258 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
19259 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
19260 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
19261 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
19262 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
19263 s,@MSGFMT@,$MSGFMT,;t t
19264 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
19265 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
19266 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
19267 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
19268 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
19269 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
19270 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
19271 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
19272 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
19273 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
19274 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
19275 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
19276 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
19277 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
19278 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
19279 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
19280 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
19281 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
19282 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
19283 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
19284 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
19285 s,@GNOME_DIR@,$GNOME_DIR,;t t
19286 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
19287 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
19288 s,@WX_DIR@,$WX_DIR,;t t
19289 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
19290 s,@STATIC_FD@,$STATIC_FD,;t t
19291 s,@STATIC_SD@,$STATIC_SD,;t t
19292 s,@STATIC_DIR@,$STATIC_DIR,;t t
19293 s,@STATIC_CONS@,$STATIC_CONS,;t t
19294 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
19295 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
19296 s,@ALL_DIRS@,$ALL_DIRS,;t t
19297 s,@CONS_INC@,$CONS_INC,;t t
19298 s,@CONS_OBJ@,$CONS_OBJ,;t t
19299 s,@CONS_SRC@,$CONS_SRC,;t t
19300 s,@CONS_LIBS@,$CONS_LIBS,;t t
19301 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
19302 s,@READLINE_SRC@,$READLINE_SRC,;t t
19303 s,@working_dir@,$working_dir,;t t
19304 s,@scriptdir@,$scriptdir,;t t
19305 s,@dump_email@,$dump_email,;t t
19306 s,@job_email@,$job_email,;t t
19307 s,@smtp_host@,$smtp_host,;t t
19308 s,@piddir@,$piddir,;t t
19309 s,@subsysdir@,$subsysdir,;t t
19310 s,@baseport@,$baseport,;t t
19311 s,@dir_port@,$dir_port,;t t
19312 s,@fd_port@,$fd_port,;t t
19313 s,@sd_port@,$sd_port,;t t
19314 s,@dir_password@,$dir_password,;t t
19315 s,@fd_password@,$fd_password,;t t
19316 s,@sd_password@,$sd_password,;t t
19317 s,@dir_user@,$dir_user,;t t
19318 s,@dir_group@,$dir_group,;t t
19319 s,@sd_user@,$sd_user,;t t
19320 s,@sd_group@,$sd_group,;t t
19321 s,@fd_user@,$fd_user,;t t
19322 s,@fd_group@,$fd_group,;t t
19323 s,@SBINPERM@,$SBINPERM,;t t
19324 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
19325 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
19326 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
19327 s,@cats@,$cats,;t t
19328 s,@DB_NAME@,$DB_NAME,;t t
19329 s,@GETCONF@,$GETCONF,;t t
19330 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
19331 s,@X_CFLAGS@,$X_CFLAGS,;t t
19332 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
19333 s,@X_LIBS@,$X_LIBS,;t t
19334 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
19335 s,@LIBOBJS@,$LIBOBJS,;t t
19336 s,@ALLOCA@,$ALLOCA,;t t
19337 s,@FDLIBS@,$FDLIBS,;t t
19338 s,@DEBUG@,$DEBUG,;t t
19339 s,@DINCLUDE@,$DINCLUDE,;t t
19340 s,@DLIB@,$DLIB,;t t
19341 s,@DB_LIBS@,$DB_LIBS,;t t
19342 s,@WCFLAGS@,$WCFLAGS,;t t
19343 s,@WLDFLAGS@,$WLDFLAGS,;t t
19344 s,@OBJLIST@,$OBJLIST,;t t
19345 s,@hostname@,$hostname,;t t
19346 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
19347 s,@PSCMD@,$PSCMD,;t t
19348 s,@WIN32@,$WIN32,;t t
19349 s,@MACOSX@,$MACOSX,;t t
19350 s,@DISTNAME@,$DISTNAME,;t t
19351 s,@DISTVER@,$DISTVER,;t t
19352 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19353 /@MCOMMON@/r $MCOMMON
19359 cat >>$CONFIG_STATUS <<\_ACEOF
19360 # Split the substitutions into bite-sized pieces for seds with
19361 # small command number limits, like on Digital OSF/1 and HP-UX.
19362 ac_max_sed_lines=48
19363 ac_sed_frag=1 # Number of current file.
19364 ac_beg=1 # First line for current file.
19365 ac_end=$ac_max_sed_lines # Line after last line for current file.
19368 while $ac_more_lines; do
19369 if test $ac_beg -gt 1; then
19370 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19372 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19374 if test ! -s $tmp/subs.frag; then
19375 ac_more_lines=false
19377 # The purpose of the label and of the branching condition is to
19378 # speed up the sed processing (if there are no `@' at all, there
19379 # is no need to browse any of the substitutions).
19380 # These are the two extra sed commands mentioned above.
19382 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19383 if test -z "$ac_sed_cmds"; then
19384 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19386 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19388 ac_sed_frag=`expr $ac_sed_frag + 1`
19390 ac_end=`expr $ac_end + $ac_max_sed_lines`
19393 if test -z "$ac_sed_cmds"; then
19396 fi # test -n "$CONFIG_FILES"
19399 cat >>$CONFIG_STATUS <<\_ACEOF
19400 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19401 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19403 - | *:- | *:-:* ) # input from stdin
19405 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19406 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19407 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19408 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19409 * ) ac_file_in=$ac_file.in ;;
19412 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19413 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19414 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19415 X"$ac_file" : 'X\(//\)[^/]' \| \
19416 X"$ac_file" : 'X\(//\)$' \| \
19417 X"$ac_file" : 'X\(/\)' \| \
19418 . : '\(.\)' 2>/dev/null ||
19420 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19421 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19422 /^X\(\/\/\)$/{ s//\1/; q; }
19423 /^X\(\/\).*/{ s//\1/; q; }
19425 { if $as_mkdir_p; then
19430 while test ! -d "$as_dir"; do
19431 as_dirs="$as_dir $as_dirs"
19432 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19433 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19434 X"$as_dir" : 'X\(//\)[^/]' \| \
19435 X"$as_dir" : 'X\(//\)$' \| \
19436 X"$as_dir" : 'X\(/\)' \| \
19437 . : '\(.\)' 2>/dev/null ||
19439 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19440 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19441 /^X\(\/\/\)$/{ s//\1/; q; }
19442 /^X\(\/\).*/{ s//\1/; q; }
19445 test ! -n "$as_dirs" || mkdir $as_dirs
19446 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19447 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19448 { (exit 1); exit 1; }; }; }
19452 if test "$ac_dir" != .; then
19453 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19454 # A "../" for each directory in $ac_dir_suffix.
19455 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19457 ac_dir_suffix= ac_top_builddir=
19461 .) # No --srcdir option. We are building in place.
19463 if test -z "$ac_top_builddir"; then
19466 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19468 [\\/]* | ?:[\\/]* ) # Absolute path.
19469 ac_srcdir=$srcdir$ac_dir_suffix;
19470 ac_top_srcdir=$srcdir ;;
19471 *) # Relative path.
19472 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19473 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19475 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19477 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19478 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19479 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19480 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19484 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19485 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
19488 if test x"$ac_file" != x-; then
19489 { echo "$as_me:$LINENO: creating $ac_file" >&5
19490 echo "$as_me: creating $ac_file" >&6;}
19493 # Let's still pretend it is `configure' which instantiates (i.e., don't
19494 # use $as_me), people would be surprised to read:
19495 # /* config.h. Generated by config.status. */
19496 if test x"$ac_file" = x-; then
19499 configure_input="$ac_file. "
19501 configure_input=$configure_input"Generated from `echo $ac_file_in |
19502 sed 's,.*/,,'` by configure."
19504 # First look for the input files in the build tree, otherwise in the
19506 ac_file_inputs=`IFS=:
19507 for f in $ac_file_in; do
19509 -) echo $tmp/stdin ;;
19511 # Absolute (can't be DOS-style, as IFS=:)
19512 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19513 echo "$as_me: error: cannot find input file: $f" >&2;}
19514 { (exit 1); exit 1; }; }
19517 if test -f "$f"; then
19520 elif test -f "$srcdir/$f"; then
19525 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19526 echo "$as_me: error: cannot find input file: $f" >&2;}
19527 { (exit 1); exit 1; }; }
19530 done` || { (exit 1); exit 1; }
19532 cat >>$CONFIG_STATUS <<_ACEOF
19536 cat >>$CONFIG_STATUS <<\_ACEOF
19538 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19539 s,@configure_input@,$configure_input,;t t
19540 s,@srcdir@,$ac_srcdir,;t t
19541 s,@abs_srcdir@,$ac_abs_srcdir,;t t
19542 s,@top_srcdir@,$ac_top_srcdir,;t t
19543 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
19544 s,@builddir@,$ac_builddir,;t t
19545 s,@abs_builddir@,$ac_abs_builddir,;t t
19546 s,@top_builddir@,$ac_top_builddir,;t t
19547 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
19548 s,@INSTALL@,$ac_INSTALL,;t t
19549 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19551 if test x"$ac_file" != x-; then
19552 mv $tmp/out $ac_file
19560 cat >>$CONFIG_STATUS <<\_ACEOF
19563 # CONFIG_HEADER section.
19566 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19567 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19569 # ac_d sets the value in "#define NAME VALUE" lines.
19570 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
19571 ac_dB='[ ].*$,\1#\2'
19574 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19575 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19576 ac_uB='$,\1#\2define\3'
19580 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19581 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19583 - | *:- | *:-:* ) # input from stdin
19585 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19586 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19587 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19588 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19589 * ) ac_file_in=$ac_file.in ;;
19592 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
19593 echo "$as_me: creating $ac_file" >&6;}
19595 # First look for the input files in the build tree, otherwise in the
19597 ac_file_inputs=`IFS=:
19598 for f in $ac_file_in; do
19600 -) echo $tmp/stdin ;;
19602 # Absolute (can't be DOS-style, as IFS=:)
19603 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19604 echo "$as_me: error: cannot find input file: $f" >&2;}
19605 { (exit 1); exit 1; }; }
19608 if test -f "$f"; then
19611 elif test -f "$srcdir/$f"; then
19616 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19617 echo "$as_me: error: cannot find input file: $f" >&2;}
19618 { (exit 1); exit 1; }; }
19621 done` || { (exit 1); exit 1; }
19622 # Remove the trailing spaces.
19623 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
19627 # Transform confdefs.h into two sed scripts, `conftest.defines' and
19628 # `conftest.undefs', that substitutes the proper values into
19629 # config.h.in to produce config.h. The first handles `#define'
19630 # templates, and the second `#undef' templates.
19631 # And first: Protect against being on the right side of a sed subst in
19632 # config.status. Protect against being in an unquoted here document
19633 # in config.status.
19634 rm -f conftest.defines conftest.undefs
19635 # Using a here document instead of a string reduces the quoting nightmare.
19636 # Putting comments in sed scripts is not portable.
19638 # `end' is used to avoid that the second main sed command (meant for
19639 # 0-ary CPP macros) applies to n-ary macro definitions.
19640 # See the Autoconf documentation for `clear'.
19641 cat >confdef2sed.sed <<\_ACEOF
19646 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19648 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19651 # If some macros were called several times there might be several times
19652 # the same #defines, which is useless. Nevertheless, we may not want to
19653 # sort them, since we want the *last* AC-DEFINE to be honored.
19654 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19655 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19656 rm -f confdef2sed.sed
19658 # This sed command replaces #undef with comments. This is necessary, for
19659 # example, in the case of _POSIX_SOURCE, which is predefined and required
19660 # on some systems where configure will not decide to define it.
19661 cat >>conftest.undefs <<\_ACEOF
19662 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19665 # Break up conftest.defines because some shells have a limit on the size
19666 # of here documents, and old seds have small limits too (100 cmds).
19667 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19668 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19669 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19670 echo ' :' >>$CONFIG_STATUS
19671 rm -f conftest.tail
19672 while grep . conftest.defines >/dev/null
19674 # Write a limited-size here document to $tmp/defines.sed.
19675 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19676 # Speed up: don't consider the non `#define' lines.
19677 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
19678 # Work around the forget-to-reset-the-flag bug.
19679 echo 't clr' >>$CONFIG_STATUS
19680 echo ': clr' >>$CONFIG_STATUS
19681 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
19683 sed -f $tmp/defines.sed $tmp/in >$tmp/out
19685 mv $tmp/out $tmp/in
19687 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
19688 rm -f conftest.defines
19689 mv conftest.tail conftest.defines
19691 rm -f conftest.defines
19692 echo ' fi # grep' >>$CONFIG_STATUS
19693 echo >>$CONFIG_STATUS
19695 # Break up conftest.undefs because some shells have a limit on the size
19696 # of here documents, and old seds have small limits too (100 cmds).
19697 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
19698 rm -f conftest.tail
19699 while grep . conftest.undefs >/dev/null
19701 # Write a limited-size here document to $tmp/undefs.sed.
19702 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19703 # Speed up: don't consider the non `#undef'
19704 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
19705 # Work around the forget-to-reset-the-flag bug.
19706 echo 't clr' >>$CONFIG_STATUS
19707 echo ': clr' >>$CONFIG_STATUS
19708 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19710 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19712 mv $tmp/out $tmp/in
19714 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19715 rm -f conftest.undefs
19716 mv conftest.tail conftest.undefs
19718 rm -f conftest.undefs
19720 cat >>$CONFIG_STATUS <<\_ACEOF
19721 # Let's still pretend it is `configure' which instantiates (i.e., don't
19722 # use $as_me), people would be surprised to read:
19723 # /* config.h. Generated by config.status. */
19724 if test x"$ac_file" = x-; then
19725 echo "/* Generated by configure. */" >$tmp/config.h
19727 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
19729 cat $tmp/in >>$tmp/config.h
19731 if test x"$ac_file" != x-; then
19732 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
19733 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19734 echo "$as_me: $ac_file is unchanged" >&6;}
19736 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19737 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19738 X"$ac_file" : 'X\(//\)[^/]' \| \
19739 X"$ac_file" : 'X\(//\)$' \| \
19740 X"$ac_file" : 'X\(/\)' \| \
19741 . : '\(.\)' 2>/dev/null ||
19743 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19744 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19745 /^X\(\/\/\)$/{ s//\1/; q; }
19746 /^X\(\/\).*/{ s//\1/; q; }
19748 { if $as_mkdir_p; then
19753 while test ! -d "$as_dir"; do
19754 as_dirs="$as_dir $as_dirs"
19755 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19756 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19757 X"$as_dir" : 'X\(//\)[^/]' \| \
19758 X"$as_dir" : 'X\(//\)$' \| \
19759 X"$as_dir" : 'X\(/\)' \| \
19760 . : '\(.\)' 2>/dev/null ||
19762 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19763 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19764 /^X\(\/\/\)$/{ s//\1/; q; }
19765 /^X\(\/\).*/{ s//\1/; q; }
19768 test ! -n "$as_dirs" || mkdir $as_dirs
19769 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19770 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19771 { (exit 1); exit 1; }; }; }
19774 mv $tmp/config.h $ac_file
19778 rm -f $tmp/config.h
19782 cat >>$CONFIG_STATUS <<\_ACEOF
19785 # CONFIG_COMMANDS section.
19787 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19788 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19789 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19790 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
19791 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19792 X"$ac_dest" : 'X\(//\)[^/]' \| \
19793 X"$ac_dest" : 'X\(//\)$' \| \
19794 X"$ac_dest" : 'X\(/\)' \| \
19795 . : '\(.\)' 2>/dev/null ||
19797 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19798 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19799 /^X\(\/\/\)$/{ s//\1/; q; }
19800 /^X\(\/\).*/{ s//\1/; q; }
19804 if test "$ac_dir" != .; then
19805 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19806 # A "../" for each directory in $ac_dir_suffix.
19807 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19809 ac_dir_suffix= ac_top_builddir=
19813 .) # No --srcdir option. We are building in place.
19815 if test -z "$ac_top_builddir"; then
19818 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19820 [\\/]* | ?:[\\/]* ) # Absolute path.
19821 ac_srcdir=$srcdir$ac_dir_suffix;
19822 ac_top_srcdir=$srcdir ;;
19823 *) # Relative path.
19824 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19825 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19827 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19829 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19830 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19831 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19832 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19835 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19836 echo "$as_me: executing $ac_dest commands" >&6;}
19838 default ) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
19844 cat >>$CONFIG_STATUS <<\_ACEOF
19846 { (exit 0); exit 0; }
19848 chmod +x $CONFIG_STATUS
19849 ac_clean_files=$ac_clean_files_save
19852 # configure is writing to config.log, and then calls config.status.
19853 # config.status does its own redirection, appending to config.log.
19854 # Unfortunately, on DOS this fails, as config.log is still kept open
19855 # by configure, so config.status won't be able to write to it; its
19856 # output is simply discarded. So we exec the FD to /dev/null,
19857 # effectively closing config.log, so it can be properly (re)opened and
19858 # appended to by config.status. When coming back to configure, we
19859 # need to make the FD available again.
19860 if test "$no_create" != yes; then
19862 ac_config_status_args=
19863 test "$silent" = yes &&
19864 ac_config_status_args="$ac_config_status_args --quiet"
19866 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19868 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19869 # would make configure fail if this is the last instruction.
19870 $ac_cs_success || { (exit 1); exit 1; }
19875 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
19876 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
19881 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
19882 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
19884 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
19885 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
19887 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
19888 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
19890 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
19891 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
19893 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
19894 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
19896 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
19897 chmod 755 $c/sqlite
19900 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
19901 largefile_support="yes"
19905 # A whole lot of hand springs to get the compiler version.
19906 # This is because gcc changed the output in version 3.0
19908 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
19909 if test "x${CCVERSION}" = "x" ; then
19910 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
19912 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
19913 if test x"${CXXVERSION}" = x ; then
19914 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
19917 if test "x${subsysdir}" = "x${sbindir}" ; then
19920 echo "You have set --sbindir and --with-subsys-dir"
19921 echo " both equal to: ${subsysdir} "
19922 echo " This is not permitted. Please reconfigure."
19924 echo "Aborting configuration ..."
19930 if test "x${db_name}" = "xInternal" ; then
19933 echo "You have not specified either --enable-client-only or one of the"
19934 echo " supported databases: MySQL, PostgreSQL, or SQLite".
19935 echo " This is not permitted. Please reconfigure."
19937 echo "Aborting the configuration ..."
19944 Configuration on `date`:
19946 Host: $host -- ${DISTNAME} ${DISTVER}
19947 Bacula version: ${VERSION} (${DATE})
19948 Source code location: ${srcdir}
19949 Install binaries: ${sbindir}
19950 Install config files: ${sysconfdir}
19951 Scripts directory: ${scriptdir}
19952 Working directory: ${working_dir}
19953 PID directory: ${piddir}
19954 Subsys directory: ${subsysdir}
19955 C Compiler: ${CC} ${CCVERSION}
19956 C++ Compiler: ${CXX} ${CXXVERSION}
19957 Compiler flags: ${WCFLAGS} ${CFLAGS}
19958 Linker flags: ${WLDFLAGS} ${LDFLAGS}
19960 Statically Linked Tools: ${support_static_tools}
19961 Statically Linked FD: ${support_static_fd}
19962 Statically Linked SD: ${support_static_sd}
19963 Statically Linked DIR: ${support_static_dir}
19964 Statically Linked CONS: ${support_static_cons}
19965 Database type: ${db_name}
19966 Database lib: ${DB_LIBS}
19968 Job Output Email: ${job_email}
19969 Traceback Email: ${dump_email}
19970 SMTP Host Address: ${smtp_host}
19972 Director Port: ${dir_port}
19973 File daemon Port: ${fd_port}
19974 Storage daemon Port: ${sd_port}
19976 Director User: ${dir_user}
19977 Director Group: ${dir_group}
19978 Storage Daemon User: ${sd_user}
19979 Storage DaemonGroup: ${sd_group}
19980 File Daemon User: ${fd_user}
19981 File Daemon Group: ${fd_group}
19983 SQL binaries Directory ${SQL_BINDIR}
19985 Large file support: $largefile_support
19986 Bacula conio support: ${got_conio} ${CONS_LIBS}
19987 readline support: ${got_readline} ${PRTREADLINE_SRC}
19988 TCP Wrappers support: ${TCPW_MSG}
19989 ZLIB support: ${have_zlib}
19990 enable-smartalloc: ${support_smartalloc}
19991 enable-gnome: ${support_gnome} ${gnome_version}
19992 enable-wx-console: ${support_wx_console}
19993 client-only: ${build_client_only}
19994 ACL support: ${have_acl}
20001 # cweb support: ${got_cweb} ${CWEB_SRC}
20002 # gmp support: ${got_gmp} ${GMP_SRC}