2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
224 as_executable_p="test -f"
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
234 # We need space, tab and new line, in precisely that order.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
259 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete. It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
266 # Identity of this package.
273 ac_unique_file="src/version.h"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
278 # include <sys/types.h>
281 # include <sys/stat.h>
292 # if !STDC_HEADERS && HAVE_MEMORY_H
298 # include <strings.h>
301 # include <inttypes.h>
311 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS BUILD_DIR TRUEPRG FALSEPRG VERSION DATE LSMDATE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB MV RM CP SED AWK ECHO CMP TBL AR OPENSSL MTX PKGCONFIG WXCONFIG CDRECORD ARFLAGS MAKE_SHELL LOCAL_LIBS LOCAL_CFLAGS LOCAL_LDFLAGS LOCAL_DEFS build build_cpu build_vendor build_os host host_cpu host_vendor host_os HAVE_SUN_OS_TRUE HAVE_SUN_OS_FALSE HAVE_OSF1_OS_TRUE HAVE_OSF1_OS_FALSE HAVE_AIX_OS_TRUE HAVE_AIX_OS_FALSE HAVE_HPUX_OS_TRUE HAVE_HPUX_OS_FALSE HAVE_LINUX_OS_TRUE HAVE_LINUX_OS_FALSE HAVE_FREEBSD_OS_TRUE HAVE_FREEBSD_OS_FALSE HAVE_NETBSD_OS_TRUE HAVE_NETBSD_OS_FALSE HAVE_OPENBSD_OS_TRUE HAVE_OPENBSD_OS_FALSE HAVE_BSDI_OS_TRUE HAVE_BSDI_OS_FALSE HAVE_SGI_OS_TRUE HAVE_SGI_OS_FALSE HAVE_IRIX_OS_TRUE HAVE_IRIX_OS_FALSE HAVE_DARWIN_OS_TRUE HAVE_DARWIN_OS_FALSE INSIDE_GNOME_COMMON_TRUE INSIDE_GNOME_COMMON_FALSE MSGFMT GNOME_INCLUDEDIR GNOMEUI_LIBS GNOME_LIBDIR GNOME_LIBS GNOMEGNORBA_LIBS GTKXMHTML_LIBS ZVT_LIBS GNOME_CONFIG ORBIT_CONFIG ORBIT_IDL HAVE_ORBIT_TRUE HAVE_ORBIT_FALSE ORBIT_CFLAGS ORBIT_LIBS HAVE_GNORBA_TRUE HAVE_GNORBA_FALSE GNORBA_CFLAGS GNORBA_LIBS GNOME_APPLETS_LIBS GNOME_DOCKLETS_LIBS GNOME_CAPPLET_LIBS GNOME_DIR WXCONS_CPPFLAGS WXCONS_LDFLAGS WX_DIR TRAY_MONITOR_CPPFLAGS TRAY_MONITOR_LDFLAGS TRAY_MONITOR_DIR TTOOL_LDFLAGS STATIC_FD STATIC_SD STATIC_DIR STATIC_CONS STATIC_GNOME_CONS STATIC_WX_CONS ALL_DIRS CONS_INC CONS_OBJ CONS_SRC CONS_LIBS CONS_LDFLAGS READLINE_SRC CDSTL working_dir scriptdir dump_email job_email smtp_host piddir subsysdir baseport dir_port fd_port sd_port dir_password fd_password sd_password mon_dir_password mon_fd_password mon_sd_password dir_user dir_group sd_user sd_group fd_user fd_group SBINPERM SQL_LFLAGS SQL_INCLUDE SQL_BINDIR cats DB_NAME GETCONF ac_ct_GETCONF X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LIBOBJS ALLOCA FDLIBS DEBUG DINCLUDE DLIB DB_LIBS WCFLAGS WLDFLAGS OBJLIST hostname TAPEDRIVE PSCMD WIN32 MACOSX DISTNAME DISTVER LTLIBOBJS'
312 ac_subst_files='MCOMMON'
314 # Initialize some variables set by options.
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
326 program_transform_name=s,x,x,
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
355 # If the previous option needs an argument, assign it.
356 if test -n "$ac_prev"; then
357 eval "$ac_prev=\$ac_option"
362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364 # Accept the important Cygnus configure options, so we can diagnose typos.
368 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 -build | --build | --buil | --bui | --bu)
374 ac_prev=build_alias ;;
375 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376 build_alias=$ac_optarg ;;
378 -cache-file | --cache-file | --cache-fil | --cache-fi \
379 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380 ac_prev=cache_file ;;
381 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383 cache_file=$ac_optarg ;;
386 cache_file=config.cache ;;
388 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 datadir=$ac_optarg ;;
394 -disable-* | --disable-*)
395 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396 # Reject names that are not valid shell variable names.
397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401 eval "enable_$ac_feature=no" ;;
403 -enable-* | --enable-*)
404 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405 # Reject names that are not valid shell variable names.
406 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408 { (exit 1); exit 1; }; }
409 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 eval "enable_$ac_feature='$ac_optarg'" ;;
416 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418 | --exec | --exe | --ex)
419 ac_prev=exec_prefix ;;
420 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422 | --exec=* | --exe=* | --ex=*)
423 exec_prefix=$ac_optarg ;;
425 -gas | --gas | --ga | --g)
426 # Obsolete; use --with-gas.
429 -help | --help | --hel | --he | -h)
431 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432 ac_init_help=recursive ;;
433 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434 ac_init_help=short ;;
436 -host | --host | --hos | --ho)
437 ac_prev=host_alias ;;
438 -host=* | --host=* | --hos=* | --ho=*)
439 host_alias=$ac_optarg ;;
441 -includedir | --includedir | --includedi | --included | --include \
442 | --includ | --inclu | --incl | --inc)
443 ac_prev=includedir ;;
444 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445 | --includ=* | --inclu=* | --incl=* | --inc=*)
446 includedir=$ac_optarg ;;
448 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451 infodir=$ac_optarg ;;
453 -libdir | --libdir | --libdi | --libd)
455 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459 | --libexe | --libex | --libe)
460 ac_prev=libexecdir ;;
461 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462 | --libexe=* | --libex=* | --libe=*)
463 libexecdir=$ac_optarg ;;
465 -localstatedir | --localstatedir | --localstatedi | --localstated \
466 | --localstate | --localstat | --localsta | --localst \
467 | --locals | --local | --loca | --loc | --lo)
468 ac_prev=localstatedir ;;
469 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472 localstatedir=$ac_optarg ;;
474 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480 # Obsolete; use --without-fp.
483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484 | --no-cr | --no-c | -n)
487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493 | --oldin | --oldi | --old | --ol | --o)
494 ac_prev=oldincludedir ;;
495 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498 oldincludedir=$ac_optarg ;;
500 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 -program-prefix | --program-prefix | --program-prefi | --program-pref \
506 | --program-pre | --program-pr | --program-p)
507 ac_prev=program_prefix ;;
508 -program-prefix=* | --program-prefix=* | --program-prefi=* \
509 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510 program_prefix=$ac_optarg ;;
512 -program-suffix | --program-suffix | --program-suffi | --program-suff \
513 | --program-suf | --program-su | --program-s)
514 ac_prev=program_suffix ;;
515 -program-suffix=* | --program-suffix=* | --program-suffi=* \
516 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517 program_suffix=$ac_optarg ;;
519 -program-transform-name | --program-transform-name \
520 | --program-transform-nam | --program-transform-na \
521 | --program-transform-n | --program-transform- \
522 | --program-transform | --program-transfor \
523 | --program-transfo | --program-transf \
524 | --program-trans | --program-tran \
525 | --progr-tra | --program-tr | --program-t)
526 ac_prev=program_transform_name ;;
527 -program-transform-name=* | --program-transform-name=* \
528 | --program-transform-nam=* | --program-transform-na=* \
529 | --program-transform-n=* | --program-transform-=* \
530 | --program-transform=* | --program-transfor=* \
531 | --program-transfo=* | --program-transf=* \
532 | --program-trans=* | --program-tran=* \
533 | --progr-tra=* | --program-tr=* | --program-t=*)
534 program_transform_name=$ac_optarg ;;
536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537 | -silent | --silent | --silen | --sile | --sil)
540 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 sbindir=$ac_optarg ;;
546 -sharedstatedir | --sharedstatedir | --sharedstatedi \
547 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548 | --sharedst | --shareds | --shared | --share | --shar \
550 ac_prev=sharedstatedir ;;
551 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 sharedstatedir=$ac_optarg ;;
557 -site | --site | --sit)
559 -site=* | --site=* | --sit=*)
562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568 | --syscon | --sysco | --sysc | --sys | --sy)
569 ac_prev=sysconfdir ;;
570 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572 sysconfdir=$ac_optarg ;;
574 -target | --target | --targe | --targ | --tar | --ta | --t)
575 ac_prev=target_alias ;;
576 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577 target_alias=$ac_optarg ;;
579 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 -version | --version | --versio | --versi | --vers | -V)
586 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587 # Reject names that are not valid shell variable names.
588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589 { echo "$as_me: error: invalid package name: $ac_package" >&2
590 { (exit 1); exit 1; }; }
591 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 eval "with_$ac_package='$ac_optarg'" ;;
598 -without-* | --without-*)
599 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600 # Reject names that are not valid shell variable names.
601 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602 { echo "$as_me: error: invalid package name: $ac_package" >&2
603 { (exit 1); exit 1; }; }
604 ac_package=`echo $ac_package | sed 's/-/_/g'`
605 eval "with_$ac_package=no" ;;
608 # Obsolete; use --with-x.
611 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612 | --x-incl | --x-inc | --x-in | --x-i)
613 ac_prev=x_includes ;;
614 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616 x_includes=$ac_optarg ;;
618 -x-libraries | --x-libraries | --x-librarie | --x-librari \
619 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620 ac_prev=x_libraries ;;
621 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623 x_libraries=$ac_optarg ;;
625 -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627 { (exit 1); exit 1; }; }
631 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632 # Reject names that are not valid shell variable names.
633 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635 { (exit 1); exit 1; }; }
636 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637 eval "$ac_envvar='$ac_optarg'"
641 # FIXME: should be removed in autoconf 3.0.
642 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 if test -n "$ac_prev"; then
652 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653 { echo "$as_me: error: missing argument to $ac_option" >&2
654 { (exit 1); exit 1; }; }
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
660 eval ac_val=$`echo $ac_var`
662 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664 { (exit 1); exit 1; }; };;
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670 localstatedir libdir includedir oldincludedir infodir mandir
672 eval ac_val=$`echo $ac_var`
674 [\\/$]* | ?:[\\/]* ) ;;
675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676 { (exit 1); exit 1; }; };;
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689 if test "x$build_alias" = x; then
690 cross_compiling=maybe
691 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692 If a cross compiler is detected then cross compile mode will be used." >&2
693 elif test "x$build_alias" != "x$host_alias"; then
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701 test "$silent" = yes && exec 6>/dev/null
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706 ac_srcdir_defaulted=yes
707 # Try the directory containing this script, then its parent.
708 ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710 X"$0" : 'X\(//\)[^/]' \| \
711 X"$0" : 'X\(//\)$' \| \
712 X"$0" : 'X\(/\)' \| \
713 . : '\(.\)' 2>/dev/null ||
715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717 /^X\(\/\/\)$/{ s//\1/; q; }
718 /^X\(\/\).*/{ s//\1/; q; }
721 if test ! -r $srcdir/$ac_unique_file; then
725 ac_srcdir_defaulted=no
727 if test ! -r $srcdir/$ac_unique_file; then
728 if test "$ac_srcdir_defaulted" = yes; then
729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730 { (exit 1); exit 1; }; }
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733 { (exit 1); exit 1; }; }
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738 { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CXX_set=${CXX+set}
769 ac_env_CXX_value=$CXX
770 ac_cv_env_CXX_set=${CXX+set}
771 ac_cv_env_CXX_value=$CXX
772 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
773 ac_env_CXXFLAGS_value=$CXXFLAGS
774 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
775 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
776 ac_env_CPP_set=${CPP+set}
777 ac_env_CPP_value=$CPP
778 ac_cv_env_CPP_set=${CPP+set}
779 ac_cv_env_CPP_value=$CPP
782 # Report the --help message.
784 if test "$ac_init_help" = "long"; then
785 # Omit some internal or obsolete options to make the list less imposing.
786 # This message is too long to be a string in the A/UX 3.1 sh.
788 \`configure' configures this package to adapt to many kinds of systems.
790 Usage: $0 [OPTION]... [VAR=VALUE]...
792 To assign environment variables (e.g., CC, CFLAGS...), specify them as
793 VAR=VALUE. See below for descriptions of some of the useful variables.
795 Defaults for the options are specified in brackets.
798 -h, --help display this help and exit
799 --help=short display options specific to this package
800 --help=recursive display the short help of all the included packages
801 -V, --version display version information and exit
802 -q, --quiet, --silent do not print \`checking...' messages
803 --cache-file=FILE cache test results in FILE [disabled]
804 -C, --config-cache alias for \`--cache-file=config.cache'
805 -n, --no-create do not create output files
806 --srcdir=DIR find the sources in DIR [configure dir or \`..']
811 Installation directories:
812 --prefix=PREFIX install architecture-independent files in PREFIX
814 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
817 By default, \`make install' will install all the files in
818 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
819 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
820 for instance \`--prefix=\$HOME'.
822 For better control, use the options below.
824 Fine tuning of the installation directories:
825 --bindir=DIR user executables [EPREFIX/bin]
826 --sbindir=DIR system admin executables [EPREFIX/sbin]
827 --libexecdir=DIR program executables [EPREFIX/libexec]
828 --datadir=DIR read-only architecture-independent data [PREFIX/share]
829 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
830 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
831 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
832 --libdir=DIR object code libraries [EPREFIX/lib]
833 --includedir=DIR C header files [PREFIX/include]
834 --oldincludedir=DIR C header files for non-gcc [/usr/include]
835 --infodir=DIR info documentation [PREFIX/info]
836 --mandir=DIR man documentation [PREFIX/man]
842 --x-includes=DIR X include files are in DIR
843 --x-libraries=DIR X library files are in DIR
846 --build=BUILD configure for building on BUILD [guessed]
847 --host=HOST cross-compile to build programs to run on HOST [BUILD]
851 if test -n "$ac_init_help"; then
856 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
857 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
858 --enable-gnome enable build of gnome-console GUI disabled
859 --enable-wx-console enable build of wxWidgets console disabled
860 --enable-tray-monitor enable build of Gnome tray monitor (compatible with KDE) disabled
861 --enable-smartalloc enable smartalloc debugging support disabled
862 --enable-static-tools enable static tape tools disabled
863 --enable-static-fd enable static File daemon disabled
864 --enable-static-sd enable static Storage daemon disabled
865 --enable-static-dir enable static Director disabled
866 --enable-static-cons enable static Console disabled
867 --enable-client-only build client (File daemon) only disabled
868 --disable-conio disable conio support enabled
870 --disable-readline disable readline support disable
872 --disable-largefile omit support for large files
875 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
876 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
877 --with-gnome-includes Specify location of GNOME headers
878 --with-gnome-libs Specify location of GNOME libs
879 --with-gnome Specify prefix for GNOME files
880 --with-readline=DIR specify readline library directory
881 --with-tcp-wrappers=DIR enable tcpwrappers support
882 --with-working-dir=PATH specify path of Bacula working directory
883 --with-scriptdir=PATH specify path of Bacula scripts directory
884 --with-dump-email=EMAIL dump email address
885 --with-job-email=EMAIL job output email address
886 --with-smtp-host=HOST SMTP mail host address
887 --with-pid-dir=PATH specify location of Bacula pid files
888 --with-subsys-dir=PATH specify location of Bacula subsys file
889 --with-baseport=PORT specify base port address for daemons
890 --with-dir-password=PASSWORD specify Director's password
891 --with-fd-password=PASSWORD specify Client's password
892 --with-sd-password=PASSWORD specify Storage daemon's password
893 --with-mon-dir-password=PASSWORD specify Director's password used by the monitor
894 --with-mon-fd-password=PASSWORD specify Client's password used by the monitor
895 --with-mon-sd-password=PASSWORD specify Storage daemon's password used by the monitor
896 --with-dir-user=USER specify user for Director daemon
897 --with-dir-group=GROUP specify group for Director daemon
898 --with-sd-user=USER specify user for Storage daemon
899 --with-sd-group=GROUP specify group for Storage daemon
900 --with-fd-user=USER specify user for File daemon
901 --with-fd-group=GROUP specify group for File daemon
902 --with-sbin-perm=MODE specify permissions for sbin binaries (0754)
903 --with-postgresql=DIR Include PostgreSQL support. DIR is the PostgreSQL
904 base install directory, defaults to /usr/local/pgsql
906 --with-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-embedded-mysql=DIR Include MySQL support. DIR is the MySQL base
911 install directory, default is to search through
912 a number of common places for the MySQL files.
914 --with-sqlite=DIR Include SQLite support. DIR is the SQLite base
915 install directory, default is to search through
916 a number of common places for the SQLite files.
917 --with-x use the X Window System
919 Some influential environment variables:
920 CC C compiler command
921 CFLAGS C compiler flags
922 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
923 nonstandard directory <lib dir>
924 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
925 headers in a nonstandard directory <include dir>
926 CXX C++ compiler command
927 CXXFLAGS C++ compiler flags
930 Use these variables to override the choices made by `configure' or to help
931 it to find libraries and programs with nonstandard names/locations.
936 if test "$ac_init_help" = "recursive"; then
937 # If there are subdirs, report their specific --help.
939 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
940 test -d $ac_dir || continue
943 if test "$ac_dir" != .; then
944 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
945 # A "../" for each directory in $ac_dir_suffix.
946 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
948 ac_dir_suffix= ac_top_builddir=
952 .) # No --srcdir option. We are building in place.
954 if test -z "$ac_top_builddir"; then
957 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
959 [\\/]* | ?:[\\/]* ) # Absolute path.
960 ac_srcdir=$srcdir$ac_dir_suffix;
961 ac_top_srcdir=$srcdir ;;
963 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
964 ac_top_srcdir=$ac_top_builddir$srcdir ;;
966 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
968 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
969 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
970 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
971 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
974 # Check for guested configure; otherwise get Cygnus style configure.
975 if test -f $ac_srcdir/configure.gnu; then
977 $SHELL $ac_srcdir/configure.gnu --help=recursive
978 elif test -f $ac_srcdir/configure; then
980 $SHELL $ac_srcdir/configure --help=recursive
981 elif test -f $ac_srcdir/configure.ac ||
982 test -f $ac_srcdir/configure.in; then
986 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
992 test -n "$ac_init_help" && exit 0
993 if $ac_init_version; then
996 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
997 Free Software Foundation, Inc.
998 This configure script is free software; the Free Software Foundation
999 gives unlimited permission to copy, distribute and modify it.
1005 This file contains any messages produced by compilers while
1006 running configure, to aid debugging if configure makes a mistake.
1008 It was created by $as_me, which was
1009 generated by GNU Autoconf 2.57. Invocation command line was
1020 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1021 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1022 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1023 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1024 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1026 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1027 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1029 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1030 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1031 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1032 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1033 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1034 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1035 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1043 test -z "$as_dir" && as_dir=.
1044 echo "PATH: $as_dir"
1059 # Keep a trace of the command line.
1060 # Strip out --no-create and --no-recursion so they do not pile up.
1061 # Strip out --silent because we don't want to record it for future runs.
1062 # Also quote any args containing shell meta-characters.
1063 # Make two passes to allow for proper duplicate-argument suppression.
1068 ac_must_keep_next=false
1074 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1075 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1076 | -silent | --silent | --silen | --sile | --sil)
1078 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1079 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1082 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1084 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1085 if test $ac_must_keep_next = true; then
1086 ac_must_keep_next=false # Got value, back to normal.
1089 *=* | --config-cache | -C | -disable-* | --disable-* \
1090 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1091 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1092 | -with-* | --with-* | -without-* | --without-* | --x)
1093 case "$ac_configure_args0 " in
1094 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1097 -* ) ac_must_keep_next=true ;;
1100 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1101 # Get rid of the leading space.
1107 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1108 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1110 # When interrupted or exit'd, cleanup temporary files, and complete
1111 # config.log. We remove comments because anyway the quotes in there
1112 # would cause problems or look ugly.
1113 # WARNING: Be sure not to use single quotes in there, as some shells,
1114 # such as our DU 5.0 friend, will then `close' the trap.
1115 trap 'exit_status=$?
1116 # Save into config.log some information that might help in debugging.
1121 ## ---------------- ##
1122 ## Cache variables. ##
1123 ## ---------------- ##
1126 # The following way of writing the cache mishandles newlines in values,
1129 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1132 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1133 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1137 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1144 ## ----------------- ##
1145 ## Output variables. ##
1146 ## ----------------- ##
1149 for ac_var in $ac_subst_vars
1151 eval ac_val=$`echo $ac_var`
1152 echo "$ac_var='"'"'$ac_val'"'"'"
1156 if test -n "$ac_subst_files"; then
1163 for ac_var in $ac_subst_files
1165 eval ac_val=$`echo $ac_var`
1166 echo "$ac_var='"'"'$ac_val'"'"'"
1171 if test -s confdefs.h; then
1178 sed "/^$/d" confdefs.h | sort
1181 test "$ac_signal" != 0 &&
1182 echo "$as_me: caught signal $ac_signal"
1183 echo "$as_me: exit $exit_status"
1185 rm -f core core.* *.core &&
1186 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1189 for ac_signal in 1 2 13 15; do
1190 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1194 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1195 rm -rf conftest* confdefs.h
1196 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1199 # Predefined preprocessor variables.
1201 cat >>confdefs.h <<_ACEOF
1202 #define PACKAGE_NAME "$PACKAGE_NAME"
1206 cat >>confdefs.h <<_ACEOF
1207 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1211 cat >>confdefs.h <<_ACEOF
1212 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1216 cat >>confdefs.h <<_ACEOF
1217 #define PACKAGE_STRING "$PACKAGE_STRING"
1221 cat >>confdefs.h <<_ACEOF
1222 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1226 # Let the site file select an alternate cache file if it wants to.
1227 # Prefer explicitly selected file to automatically selected ones.
1228 if test -z "$CONFIG_SITE"; then
1229 if test "x$prefix" != xNONE; then
1230 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1232 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1235 for ac_site_file in $CONFIG_SITE; do
1236 if test -r "$ac_site_file"; then
1237 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1238 echo "$as_me: loading site script $ac_site_file" >&6;}
1239 sed 's/^/| /' "$ac_site_file" >&5
1244 if test -r "$cache_file"; then
1245 # Some versions of bash will fail to source /dev/null (special
1246 # files actually), so we avoid doing that.
1247 if test -f "$cache_file"; then
1248 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1249 echo "$as_me: loading cache $cache_file" >&6;}
1251 [\\/]* | ?:[\\/]* ) . $cache_file;;
1252 *) . ./$cache_file;;
1256 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1257 echo "$as_me: creating cache $cache_file" >&6;}
1261 # Check that the precious variables saved in the cache have kept the same
1263 ac_cache_corrupted=false
1264 for ac_var in `(set) 2>&1 |
1265 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1266 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1267 eval ac_new_set=\$ac_env_${ac_var}_set
1268 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1269 eval ac_new_val="\$ac_env_${ac_var}_value"
1270 case $ac_old_set,$ac_new_set in
1272 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1273 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1274 ac_cache_corrupted=: ;;
1276 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1277 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1278 ac_cache_corrupted=: ;;
1281 if test "x$ac_old_val" != "x$ac_new_val"; then
1282 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1283 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1284 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1285 echo "$as_me: former value: $ac_old_val" >&2;}
1286 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1287 echo "$as_me: current value: $ac_new_val" >&2;}
1288 ac_cache_corrupted=:
1291 # Pass precious variables to config.status.
1292 if test "$ac_new_set" = set; then
1294 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1295 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1296 *) ac_arg=$ac_var=$ac_new_val ;;
1298 case " $ac_configure_args " in
1299 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1300 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1304 if $ac_cache_corrupted; then
1305 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1306 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1307 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1308 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1309 { (exit 1); exit 1; }; }
1313 ac_cpp='$CPP $CPPFLAGS'
1314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1342 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1343 if test -f $ac_dir/install-sh; then
1345 ac_install_sh="$ac_aux_dir/install-sh -c"
1347 elif test -f $ac_dir/install.sh; then
1349 ac_install_sh="$ac_aux_dir/install.sh -c"
1351 elif test -f $ac_dir/shtool; then
1353 ac_install_sh="$ac_aux_dir/shtool install -c"
1357 if test -z "$ac_aux_dir"; then
1358 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1359 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1360 { (exit 1); exit 1; }; }
1362 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1363 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1364 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1366 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1374 # Extract the first word of "$ac_prog", so it can be a program name with args.
1375 set dummy $ac_prog; ac_word=$2
1376 echo "$as_me:$LINENO: checking for $ac_word" >&5
1377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1378 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1379 echo $ECHO_N "(cached) $ECHO_C" >&6
1383 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1390 test -z "$as_dir" && as_dir=.
1391 for ac_exec_ext in '' $ac_executable_extensions; do
1392 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1393 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1403 TRUEPRG=$ac_cv_path_TRUEPRG
1405 if test -n "$TRUEPRG"; then
1406 echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1407 echo "${ECHO_T}$TRUEPRG" >&6
1409 echo "$as_me:$LINENO: result: no" >&5
1410 echo "${ECHO_T}no" >&6
1413 test -n "$TRUEPRG" && break
1415 test -n "$TRUEPRG" || TRUEPRG=":"
1417 for ac_prog in false
1419 # Extract the first word of "$ac_prog", so it can be a program name with args.
1420 set dummy $ac_prog; ac_word=$2
1421 echo "$as_me:$LINENO: checking for $ac_word" >&5
1422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1423 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1424 echo $ECHO_N "(cached) $ECHO_C" >&6
1428 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1435 test -z "$as_dir" && as_dir=.
1436 for ac_exec_ext in '' $ac_executable_extensions; do
1437 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1438 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1448 FALSEPRG=$ac_cv_path_FALSEPRG
1450 if test -n "$FALSEPRG"; then
1451 echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1452 echo "${ECHO_T}$FALSEPRG" >&6
1454 echo "$as_me:$LINENO: result: no" >&5
1455 echo "${ECHO_T}no" >&6
1458 test -n "$FALSEPRG" && break
1460 test -n "$FALSEPRG" || FALSEPRG=":"
1465 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1466 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1467 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1468 echo "configuring for bacula $VERSION ($DATE)"
1473 ac_cpp='$CPP $CPPFLAGS'
1474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1477 if test -n "$ac_tool_prefix"; then
1478 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1479 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1480 echo "$as_me:$LINENO: checking for $ac_word" >&5
1481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1482 if test "${ac_cv_prog_CC+set}" = set; then
1483 echo $ECHO_N "(cached) $ECHO_C" >&6
1485 if test -n "$CC"; then
1486 ac_cv_prog_CC="$CC" # Let the user override the test.
1488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1492 test -z "$as_dir" && as_dir=.
1493 for ac_exec_ext in '' $ac_executable_extensions; do
1494 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1495 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1505 if test -n "$CC"; then
1506 echo "$as_me:$LINENO: result: $CC" >&5
1507 echo "${ECHO_T}$CC" >&6
1509 echo "$as_me:$LINENO: result: no" >&5
1510 echo "${ECHO_T}no" >&6
1514 if test -z "$ac_cv_prog_CC"; then
1516 # Extract the first word of "gcc", so it can be a program name with args.
1517 set dummy gcc; ac_word=$2
1518 echo "$as_me:$LINENO: checking for $ac_word" >&5
1519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1520 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1521 echo $ECHO_N "(cached) $ECHO_C" >&6
1523 if test -n "$ac_ct_CC"; then
1524 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1530 test -z "$as_dir" && as_dir=.
1531 for ac_exec_ext in '' $ac_executable_extensions; do
1532 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1533 ac_cv_prog_ac_ct_CC="gcc"
1534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1542 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1543 if test -n "$ac_ct_CC"; then
1544 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1545 echo "${ECHO_T}$ac_ct_CC" >&6
1547 echo "$as_me:$LINENO: result: no" >&5
1548 echo "${ECHO_T}no" >&6
1556 if test -z "$CC"; then
1557 if test -n "$ac_tool_prefix"; then
1558 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1559 set dummy ${ac_tool_prefix}cc; ac_word=$2
1560 echo "$as_me:$LINENO: checking for $ac_word" >&5
1561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1562 if test "${ac_cv_prog_CC+set}" = set; then
1563 echo $ECHO_N "(cached) $ECHO_C" >&6
1565 if test -n "$CC"; then
1566 ac_cv_prog_CC="$CC" # Let the user override the test.
1568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1572 test -z "$as_dir" && as_dir=.
1573 for ac_exec_ext in '' $ac_executable_extensions; do
1574 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1575 ac_cv_prog_CC="${ac_tool_prefix}cc"
1576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1585 if test -n "$CC"; then
1586 echo "$as_me:$LINENO: result: $CC" >&5
1587 echo "${ECHO_T}$CC" >&6
1589 echo "$as_me:$LINENO: result: no" >&5
1590 echo "${ECHO_T}no" >&6
1594 if test -z "$ac_cv_prog_CC"; then
1596 # Extract the first word of "cc", so it can be a program name with args.
1597 set dummy cc; ac_word=$2
1598 echo "$as_me:$LINENO: checking for $ac_word" >&5
1599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1600 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1601 echo $ECHO_N "(cached) $ECHO_C" >&6
1603 if test -n "$ac_ct_CC"; then
1604 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1610 test -z "$as_dir" && as_dir=.
1611 for ac_exec_ext in '' $ac_executable_extensions; do
1612 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1613 ac_cv_prog_ac_ct_CC="cc"
1614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1622 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1623 if test -n "$ac_ct_CC"; then
1624 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1625 echo "${ECHO_T}$ac_ct_CC" >&6
1627 echo "$as_me:$LINENO: result: no" >&5
1628 echo "${ECHO_T}no" >&6
1637 if test -z "$CC"; then
1638 # Extract the first word of "cc", so it can be a program name with args.
1639 set dummy cc; ac_word=$2
1640 echo "$as_me:$LINENO: checking for $ac_word" >&5
1641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1642 if test "${ac_cv_prog_CC+set}" = set; then
1643 echo $ECHO_N "(cached) $ECHO_C" >&6
1645 if test -n "$CC"; then
1646 ac_cv_prog_CC="$CC" # Let the user override the test.
1649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1653 test -z "$as_dir" && as_dir=.
1654 for ac_exec_ext in '' $ac_executable_extensions; do
1655 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1656 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1657 ac_prog_rejected=yes
1661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1667 if test $ac_prog_rejected = yes; then
1668 # We found a bogon in the path, so make sure we never use it.
1669 set dummy $ac_cv_prog_CC
1671 if test $# != 0; then
1672 # We chose a different compiler from the bogus one.
1673 # However, it has the same basename, so the bogon will be chosen
1674 # first if we set CC to just the basename; use the full file name.
1676 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1682 if test -n "$CC"; then
1683 echo "$as_me:$LINENO: result: $CC" >&5
1684 echo "${ECHO_T}$CC" >&6
1686 echo "$as_me:$LINENO: result: no" >&5
1687 echo "${ECHO_T}no" >&6
1691 if test -z "$CC"; then
1692 if test -n "$ac_tool_prefix"; then
1695 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1696 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1697 echo "$as_me:$LINENO: checking for $ac_word" >&5
1698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1699 if test "${ac_cv_prog_CC+set}" = set; then
1700 echo $ECHO_N "(cached) $ECHO_C" >&6
1702 if test -n "$CC"; then
1703 ac_cv_prog_CC="$CC" # Let the user override the test.
1705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1709 test -z "$as_dir" && as_dir=.
1710 for ac_exec_ext in '' $ac_executable_extensions; do
1711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1712 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1722 if test -n "$CC"; then
1723 echo "$as_me:$LINENO: result: $CC" >&5
1724 echo "${ECHO_T}$CC" >&6
1726 echo "$as_me:$LINENO: result: no" >&5
1727 echo "${ECHO_T}no" >&6
1730 test -n "$CC" && break
1733 if test -z "$CC"; then
1737 # Extract the first word of "$ac_prog", so it can be a program name with args.
1738 set dummy $ac_prog; ac_word=$2
1739 echo "$as_me:$LINENO: checking for $ac_word" >&5
1740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1741 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1742 echo $ECHO_N "(cached) $ECHO_C" >&6
1744 if test -n "$ac_ct_CC"; then
1745 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1751 test -z "$as_dir" && as_dir=.
1752 for ac_exec_ext in '' $ac_executable_extensions; do
1753 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1754 ac_cv_prog_ac_ct_CC="$ac_prog"
1755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1763 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1764 if test -n "$ac_ct_CC"; then
1765 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1766 echo "${ECHO_T}$ac_ct_CC" >&6
1768 echo "$as_me:$LINENO: result: no" >&5
1769 echo "${ECHO_T}no" >&6
1772 test -n "$ac_ct_CC" && break
1781 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1782 See \`config.log' for more details." >&5
1783 echo "$as_me: error: no acceptable C compiler found in \$PATH
1784 See \`config.log' for more details." >&2;}
1785 { (exit 1); exit 1; }; }
1787 # Provide some information about the compiler.
1788 echo "$as_me:$LINENO:" \
1789 "checking for C compiler version" >&5
1790 ac_compiler=`set X $ac_compile; echo $2`
1791 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1792 (eval $ac_compiler --version </dev/null >&5) 2>&5
1794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1795 (exit $ac_status); }
1796 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1797 (eval $ac_compiler -v </dev/null >&5) 2>&5
1799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1800 (exit $ac_status); }
1801 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1802 (eval $ac_compiler -V </dev/null >&5) 2>&5
1804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1805 (exit $ac_status); }
1807 cat >conftest.$ac_ext <<_ACEOF
1808 #line $LINENO "configure"
1811 cat confdefs.h >>conftest.$ac_ext
1812 cat >>conftest.$ac_ext <<_ACEOF
1813 /* end confdefs.h. */
1823 ac_clean_files_save=$ac_clean_files
1824 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1825 # Try to create an executable without -o first, disregard a.out.
1826 # It will help us diagnose broken compilers, and finding out an intuition
1828 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1829 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1830 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1831 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1832 (eval $ac_link_default) 2>&5
1834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1835 (exit $ac_status); }; then
1836 # Find the output, starting from the most likely. This scheme is
1837 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1840 # Be careful to initialize this variable, since it used to be cached.
1841 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1843 # b.out is created by i960 compilers.
1844 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1846 test -f "$ac_file" || continue
1848 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1851 # This is the source file.
1854 # We found the default executable, but exeext='' is most
1858 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1859 # FIXME: I believe we export ac_cv_exeext for Libtool,
1860 # but it would be cool to find out if it's true. Does anybody
1861 # maintain Libtool? --akim.
1869 echo "$as_me: failed program was:" >&5
1870 sed 's/^/| /' conftest.$ac_ext >&5
1872 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1873 See \`config.log' for more details." >&5
1874 echo "$as_me: error: C compiler cannot create executables
1875 See \`config.log' for more details." >&2;}
1876 { (exit 77); exit 77; }; }
1879 ac_exeext=$ac_cv_exeext
1880 echo "$as_me:$LINENO: result: $ac_file" >&5
1881 echo "${ECHO_T}$ac_file" >&6
1883 # Check the compiler produces executables we can run. If not, either
1884 # the compiler is broken, or we cross compile.
1885 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1886 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1887 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1888 # If not cross compiling, check that we can run a simple program.
1889 if test "$cross_compiling" != yes; then
1890 if { ac_try='./$ac_file'
1891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1895 (exit $ac_status); }; }; then
1898 if test "$cross_compiling" = maybe; then
1901 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1902 If you meant to cross compile, use \`--host'.
1903 See \`config.log' for more details." >&5
1904 echo "$as_me: error: cannot run C compiled programs.
1905 If you meant to cross compile, use \`--host'.
1906 See \`config.log' for more details." >&2;}
1907 { (exit 1); exit 1; }; }
1911 echo "$as_me:$LINENO: result: yes" >&5
1912 echo "${ECHO_T}yes" >&6
1914 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1915 ac_clean_files=$ac_clean_files_save
1916 # Check the compiler produces executables we can run. If not, either
1917 # the compiler is broken, or we cross compile.
1918 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1919 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1920 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1921 echo "${ECHO_T}$cross_compiling" >&6
1923 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1924 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1926 (eval $ac_link) 2>&5
1928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1929 (exit $ac_status); }; then
1930 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1931 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1932 # work properly (i.e., refer to `conftest.exe'), while it won't with
1934 for ac_file in conftest.exe conftest conftest.*; do
1935 test -f "$ac_file" || continue
1937 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1938 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1945 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1946 See \`config.log' for more details." >&5
1947 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1948 See \`config.log' for more details." >&2;}
1949 { (exit 1); exit 1; }; }
1952 rm -f conftest$ac_cv_exeext
1953 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1954 echo "${ECHO_T}$ac_cv_exeext" >&6
1956 rm -f conftest.$ac_ext
1957 EXEEXT=$ac_cv_exeext
1959 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1960 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1961 if test "${ac_cv_objext+set}" = set; then
1962 echo $ECHO_N "(cached) $ECHO_C" >&6
1964 cat >conftest.$ac_ext <<_ACEOF
1965 #line $LINENO "configure"
1968 cat confdefs.h >>conftest.$ac_ext
1969 cat >>conftest.$ac_ext <<_ACEOF
1970 /* end confdefs.h. */
1980 rm -f conftest.o conftest.obj
1981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1982 (eval $ac_compile) 2>&5
1984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1985 (exit $ac_status); }; then
1986 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1988 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1989 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1994 echo "$as_me: failed program was:" >&5
1995 sed 's/^/| /' conftest.$ac_ext >&5
1997 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1998 See \`config.log' for more details." >&5
1999 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2000 See \`config.log' for more details." >&2;}
2001 { (exit 1); exit 1; }; }
2004 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2006 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2007 echo "${ECHO_T}$ac_cv_objext" >&6
2008 OBJEXT=$ac_cv_objext
2010 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2011 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2012 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2013 echo $ECHO_N "(cached) $ECHO_C" >&6
2015 cat >conftest.$ac_ext <<_ACEOF
2016 #line $LINENO "configure"
2019 cat confdefs.h >>conftest.$ac_ext
2020 cat >>conftest.$ac_ext <<_ACEOF
2021 /* end confdefs.h. */
2034 rm -f conftest.$ac_objext
2035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2036 (eval $ac_compile) 2>&5
2038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2039 (exit $ac_status); } &&
2040 { ac_try='test -s conftest.$ac_objext'
2041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2045 (exit $ac_status); }; }; then
2048 echo "$as_me: failed program was:" >&5
2049 sed 's/^/| /' conftest.$ac_ext >&5
2053 rm -f conftest.$ac_objext conftest.$ac_ext
2054 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2057 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2058 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2059 GCC=`test $ac_compiler_gnu = yes && echo yes`
2060 ac_test_CFLAGS=${CFLAGS+set}
2061 ac_save_CFLAGS=$CFLAGS
2063 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2064 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2065 if test "${ac_cv_prog_cc_g+set}" = set; then
2066 echo $ECHO_N "(cached) $ECHO_C" >&6
2068 cat >conftest.$ac_ext <<_ACEOF
2069 #line $LINENO "configure"
2072 cat confdefs.h >>conftest.$ac_ext
2073 cat >>conftest.$ac_ext <<_ACEOF
2074 /* end confdefs.h. */
2084 rm -f conftest.$ac_objext
2085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2086 (eval $ac_compile) 2>&5
2088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2089 (exit $ac_status); } &&
2090 { ac_try='test -s conftest.$ac_objext'
2091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2095 (exit $ac_status); }; }; then
2098 echo "$as_me: failed program was:" >&5
2099 sed 's/^/| /' conftest.$ac_ext >&5
2103 rm -f conftest.$ac_objext conftest.$ac_ext
2105 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2106 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2107 if test "$ac_test_CFLAGS" = set; then
2108 CFLAGS=$ac_save_CFLAGS
2109 elif test $ac_cv_prog_cc_g = yes; then
2110 if test "$GCC" = yes; then
2116 if test "$GCC" = yes; then
2122 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2123 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2124 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2125 echo $ECHO_N "(cached) $ECHO_C" >&6
2127 ac_cv_prog_cc_stdc=no
2129 cat >conftest.$ac_ext <<_ACEOF
2130 #line $LINENO "configure"
2133 cat confdefs.h >>conftest.$ac_ext
2134 cat >>conftest.$ac_ext <<_ACEOF
2135 /* end confdefs.h. */
2138 #include <sys/types.h>
2139 #include <sys/stat.h>
2140 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2141 struct buf { int x; };
2142 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2143 static char *e (p, i)
2149 static char *f (char * (*g) (char **, int), char **p, ...)
2154 s = g (p, va_arg (v,int));
2158 int test (int i, double x);
2159 struct s1 {int (*f) (int a);};
2160 struct s2 {int (*f) (double a);};
2161 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2167 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2172 # Don't try gcc -ansi; that turns off useful extensions and
2173 # breaks some systems' header files.
2174 # AIX -qlanglvl=ansi
2175 # Ultrix and OSF/1 -std1
2176 # HP-UX 10.20 and later -Ae
2177 # HP-UX older versions -Aa -D_HPUX_SOURCE
2178 # SVR4 -Xc -D__EXTENSIONS__
2179 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2181 CC="$ac_save_CC $ac_arg"
2182 rm -f conftest.$ac_objext
2183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2184 (eval $ac_compile) 2>&5
2186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2187 (exit $ac_status); } &&
2188 { ac_try='test -s conftest.$ac_objext'
2189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2193 (exit $ac_status); }; }; then
2194 ac_cv_prog_cc_stdc=$ac_arg
2197 echo "$as_me: failed program was:" >&5
2198 sed 's/^/| /' conftest.$ac_ext >&5
2201 rm -f conftest.$ac_objext
2203 rm -f conftest.$ac_ext conftest.$ac_objext
2208 case "x$ac_cv_prog_cc_stdc" in
2210 echo "$as_me:$LINENO: result: none needed" >&5
2211 echo "${ECHO_T}none needed" >&6 ;;
2213 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2214 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2215 CC="$CC $ac_cv_prog_cc_stdc" ;;
2218 # Some people use a C++ compiler to compile C. Since we use `exit',
2219 # in C++ we need to declare it. In case someone uses the same compiler
2220 # for both compiling C and C++ we need to have the C++ compiler decide
2221 # the declaration of exit, since it's the most demanding environment.
2222 cat >conftest.$ac_ext <<_ACEOF
2227 rm -f conftest.$ac_objext
2228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2229 (eval $ac_compile) 2>&5
2231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2232 (exit $ac_status); } &&
2233 { ac_try='test -s conftest.$ac_objext'
2234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2238 (exit $ac_status); }; }; then
2239 for ac_declaration in \
2241 '#include <stdlib.h>' \
2242 'extern "C" void std::exit (int) throw (); using std::exit;' \
2243 'extern "C" void std::exit (int); using std::exit;' \
2244 'extern "C" void exit (int) throw ();' \
2245 'extern "C" void exit (int);' \
2248 cat >conftest.$ac_ext <<_ACEOF
2249 #line $LINENO "configure"
2252 cat confdefs.h >>conftest.$ac_ext
2253 cat >>conftest.$ac_ext <<_ACEOF
2254 /* end confdefs.h. */
2265 rm -f conftest.$ac_objext
2266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2267 (eval $ac_compile) 2>&5
2269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270 (exit $ac_status); } &&
2271 { ac_try='test -s conftest.$ac_objext'
2272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276 (exit $ac_status); }; }; then
2279 echo "$as_me: failed program was:" >&5
2280 sed 's/^/| /' conftest.$ac_ext >&5
2284 rm -f conftest.$ac_objext conftest.$ac_ext
2285 cat >conftest.$ac_ext <<_ACEOF
2286 #line $LINENO "configure"
2289 cat confdefs.h >>conftest.$ac_ext
2290 cat >>conftest.$ac_ext <<_ACEOF
2291 /* end confdefs.h. */
2301 rm -f conftest.$ac_objext
2302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2303 (eval $ac_compile) 2>&5
2305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2306 (exit $ac_status); } &&
2307 { ac_try='test -s conftest.$ac_objext'
2308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2312 (exit $ac_status); }; }; then
2315 echo "$as_me: failed program was:" >&5
2316 sed 's/^/| /' conftest.$ac_ext >&5
2319 rm -f conftest.$ac_objext conftest.$ac_ext
2322 if test -n "$ac_declaration"; then
2323 echo '#ifdef __cplusplus' >>confdefs.h
2324 echo $ac_declaration >>confdefs.h
2325 echo '#endif' >>confdefs.h
2329 echo "$as_me: failed program was:" >&5
2330 sed 's/^/| /' conftest.$ac_ext >&5
2333 rm -f conftest.$ac_objext conftest.$ac_ext
2335 ac_cpp='$CPP $CPPFLAGS'
2336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2341 ac_cpp='$CXXCPP $CPPFLAGS'
2342 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2343 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2344 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2345 if test -n "$ac_tool_prefix"; then
2346 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2348 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2349 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2350 echo "$as_me:$LINENO: checking for $ac_word" >&5
2351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2352 if test "${ac_cv_prog_CXX+set}" = set; then
2353 echo $ECHO_N "(cached) $ECHO_C" >&6
2355 if test -n "$CXX"; then
2356 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2362 test -z "$as_dir" && as_dir=.
2363 for ac_exec_ext in '' $ac_executable_extensions; do
2364 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2365 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2375 if test -n "$CXX"; then
2376 echo "$as_me:$LINENO: result: $CXX" >&5
2377 echo "${ECHO_T}$CXX" >&6
2379 echo "$as_me:$LINENO: result: no" >&5
2380 echo "${ECHO_T}no" >&6
2383 test -n "$CXX" && break
2386 if test -z "$CXX"; then
2388 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2390 # Extract the first word of "$ac_prog", so it can be a program name with args.
2391 set dummy $ac_prog; ac_word=$2
2392 echo "$as_me:$LINENO: checking for $ac_word" >&5
2393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2394 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2395 echo $ECHO_N "(cached) $ECHO_C" >&6
2397 if test -n "$ac_ct_CXX"; then
2398 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2404 test -z "$as_dir" && as_dir=.
2405 for ac_exec_ext in '' $ac_executable_extensions; do
2406 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2407 ac_cv_prog_ac_ct_CXX="$ac_prog"
2408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2416 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2417 if test -n "$ac_ct_CXX"; then
2418 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2419 echo "${ECHO_T}$ac_ct_CXX" >&6
2421 echo "$as_me:$LINENO: result: no" >&5
2422 echo "${ECHO_T}no" >&6
2425 test -n "$ac_ct_CXX" && break
2427 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2433 # Provide some information about the compiler.
2434 echo "$as_me:$LINENO:" \
2435 "checking for C++ compiler version" >&5
2436 ac_compiler=`set X $ac_compile; echo $2`
2437 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2438 (eval $ac_compiler --version </dev/null >&5) 2>&5
2440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441 (exit $ac_status); }
2442 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2443 (eval $ac_compiler -v </dev/null >&5) 2>&5
2445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446 (exit $ac_status); }
2447 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2448 (eval $ac_compiler -V </dev/null >&5) 2>&5
2450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451 (exit $ac_status); }
2453 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2454 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2455 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2456 echo $ECHO_N "(cached) $ECHO_C" >&6
2458 cat >conftest.$ac_ext <<_ACEOF
2459 #line $LINENO "configure"
2462 cat confdefs.h >>conftest.$ac_ext
2463 cat >>conftest.$ac_ext <<_ACEOF
2464 /* end confdefs.h. */
2477 rm -f conftest.$ac_objext
2478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2479 (eval $ac_compile) 2>&5
2481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2482 (exit $ac_status); } &&
2483 { ac_try='test -s conftest.$ac_objext'
2484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488 (exit $ac_status); }; }; then
2491 echo "$as_me: failed program was:" >&5
2492 sed 's/^/| /' conftest.$ac_ext >&5
2496 rm -f conftest.$ac_objext conftest.$ac_ext
2497 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2500 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2501 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2502 GXX=`test $ac_compiler_gnu = yes && echo yes`
2503 ac_test_CXXFLAGS=${CXXFLAGS+set}
2504 ac_save_CXXFLAGS=$CXXFLAGS
2506 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2507 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2508 if test "${ac_cv_prog_cxx_g+set}" = set; then
2509 echo $ECHO_N "(cached) $ECHO_C" >&6
2511 cat >conftest.$ac_ext <<_ACEOF
2512 #line $LINENO "configure"
2515 cat confdefs.h >>conftest.$ac_ext
2516 cat >>conftest.$ac_ext <<_ACEOF
2517 /* end confdefs.h. */
2527 rm -f conftest.$ac_objext
2528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2529 (eval $ac_compile) 2>&5
2531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532 (exit $ac_status); } &&
2533 { ac_try='test -s conftest.$ac_objext'
2534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2538 (exit $ac_status); }; }; then
2539 ac_cv_prog_cxx_g=yes
2541 echo "$as_me: failed program was:" >&5
2542 sed 's/^/| /' conftest.$ac_ext >&5
2546 rm -f conftest.$ac_objext conftest.$ac_ext
2548 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2549 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2550 if test "$ac_test_CXXFLAGS" = set; then
2551 CXXFLAGS=$ac_save_CXXFLAGS
2552 elif test $ac_cv_prog_cxx_g = yes; then
2553 if test "$GXX" = yes; then
2559 if test "$GXX" = yes; then
2565 for ac_declaration in \
2567 '#include <stdlib.h>' \
2568 'extern "C" void std::exit (int) throw (); using std::exit;' \
2569 'extern "C" void std::exit (int); using std::exit;' \
2570 'extern "C" void exit (int) throw ();' \
2571 'extern "C" void exit (int);' \
2574 cat >conftest.$ac_ext <<_ACEOF
2575 #line $LINENO "configure"
2578 cat confdefs.h >>conftest.$ac_ext
2579 cat >>conftest.$ac_ext <<_ACEOF
2580 /* end confdefs.h. */
2591 rm -f conftest.$ac_objext
2592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2593 (eval $ac_compile) 2>&5
2595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2596 (exit $ac_status); } &&
2597 { ac_try='test -s conftest.$ac_objext'
2598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602 (exit $ac_status); }; }; then
2605 echo "$as_me: failed program was:" >&5
2606 sed 's/^/| /' conftest.$ac_ext >&5
2610 rm -f conftest.$ac_objext conftest.$ac_ext
2611 cat >conftest.$ac_ext <<_ACEOF
2612 #line $LINENO "configure"
2615 cat confdefs.h >>conftest.$ac_ext
2616 cat >>conftest.$ac_ext <<_ACEOF
2617 /* end confdefs.h. */
2627 rm -f conftest.$ac_objext
2628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2629 (eval $ac_compile) 2>&5
2631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632 (exit $ac_status); } &&
2633 { ac_try='test -s conftest.$ac_objext'
2634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638 (exit $ac_status); }; }; then
2641 echo "$as_me: failed program was:" >&5
2642 sed 's/^/| /' conftest.$ac_ext >&5
2645 rm -f conftest.$ac_objext conftest.$ac_ext
2648 if test -n "$ac_declaration"; then
2649 echo '#ifdef __cplusplus' >>confdefs.h
2650 echo $ac_declaration >>confdefs.h
2651 echo '#endif' >>confdefs.h
2655 ac_cpp='$CPP $CPPFLAGS'
2656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2660 if test "x$CC" != xcc; then
2661 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2662 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2664 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2665 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2667 set dummy $CC; ac_cc=`echo $2 |
2668 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2669 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2670 echo $ECHO_N "(cached) $ECHO_C" >&6
2672 cat >conftest.$ac_ext <<_ACEOF
2673 #line $LINENO "configure"
2676 cat confdefs.h >>conftest.$ac_ext
2677 cat >>conftest.$ac_ext <<_ACEOF
2678 /* end confdefs.h. */
2688 # Make sure it works both with $CC and with simple cc.
2689 # We do the test twice because some compilers refuse to overwrite an
2690 # existing .o file with -o, though they will create one.
2691 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2692 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696 (exit $ac_status); } &&
2697 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701 (exit $ac_status); };
2703 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2704 if test "x$CC" != xcc; then
2705 # Test first that cc exists at all.
2706 if { ac_try='cc -c conftest.$ac_ext >&5'
2707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); }; }; then
2712 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2713 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717 (exit $ac_status); } &&
2718 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722 (exit $ac_status); };
2727 # cc exists but doesn't like -o.
2728 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2733 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2738 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2739 echo "$as_me:$LINENO: result: yes" >&5
2740 echo "${ECHO_T}yes" >&6
2742 echo "$as_me:$LINENO: result: no" >&5
2743 echo "${ECHO_T}no" >&6
2745 cat >>confdefs.h <<\_ACEOF
2746 #define NO_MINUS_C_MINUS_O 1
2752 ac_cpp='$CPP $CPPFLAGS'
2753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2756 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2757 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2758 # On Suns, sometimes $CPP names a directory.
2759 if test -n "$CPP" && test -d "$CPP"; then
2762 if test -z "$CPP"; then
2763 if test "${ac_cv_prog_CPP+set}" = set; then
2764 echo $ECHO_N "(cached) $ECHO_C" >&6
2766 # Double quotes because CPP needs to be expanded
2767 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2770 for ac_c_preproc_warn_flag in '' yes
2772 # Use a header file that comes with gcc, so configuring glibc
2773 # with a fresh cross-compiler works.
2774 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2775 # <limits.h> exists even on freestanding compilers.
2776 # On the NeXT, cc -E runs the code through the compiler's parser,
2777 # not just through cpp. "Syntax error" is here to catch this case.
2778 cat >conftest.$ac_ext <<_ACEOF
2779 #line $LINENO "configure"
2782 cat confdefs.h >>conftest.$ac_ext
2783 cat >>conftest.$ac_ext <<_ACEOF
2784 /* end confdefs.h. */
2786 # include <limits.h>
2788 # include <assert.h>
2792 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2793 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2795 grep -v '^ *+' conftest.er1 >conftest.err
2797 cat conftest.err >&5
2798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799 (exit $ac_status); } >/dev/null; then
2800 if test -s conftest.err; then
2801 ac_cpp_err=$ac_c_preproc_warn_flag
2808 if test -z "$ac_cpp_err"; then
2811 echo "$as_me: failed program was:" >&5
2812 sed 's/^/| /' conftest.$ac_ext >&5
2814 # Broken: fails on valid input.
2817 rm -f conftest.err conftest.$ac_ext
2819 # OK, works on sane cases. Now check whether non-existent headers
2820 # can be detected and how.
2821 cat >conftest.$ac_ext <<_ACEOF
2822 #line $LINENO "configure"
2825 cat confdefs.h >>conftest.$ac_ext
2826 cat >>conftest.$ac_ext <<_ACEOF
2827 /* end confdefs.h. */
2828 #include <ac_nonexistent.h>
2830 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2831 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2833 grep -v '^ *+' conftest.er1 >conftest.err
2835 cat conftest.err >&5
2836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837 (exit $ac_status); } >/dev/null; then
2838 if test -s conftest.err; then
2839 ac_cpp_err=$ac_c_preproc_warn_flag
2846 if test -z "$ac_cpp_err"; then
2847 # Broken: success on invalid input.
2850 echo "$as_me: failed program was:" >&5
2851 sed 's/^/| /' conftest.$ac_ext >&5
2853 # Passes both tests.
2857 rm -f conftest.err conftest.$ac_ext
2860 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2861 rm -f conftest.err conftest.$ac_ext
2862 if $ac_preproc_ok; then
2874 echo "$as_me:$LINENO: result: $CPP" >&5
2875 echo "${ECHO_T}$CPP" >&6
2877 for ac_c_preproc_warn_flag in '' yes
2879 # Use a header file that comes with gcc, so configuring glibc
2880 # with a fresh cross-compiler works.
2881 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2882 # <limits.h> exists even on freestanding compilers.
2883 # On the NeXT, cc -E runs the code through the compiler's parser,
2884 # not just through cpp. "Syntax error" is here to catch this case.
2885 cat >conftest.$ac_ext <<_ACEOF
2886 #line $LINENO "configure"
2889 cat confdefs.h >>conftest.$ac_ext
2890 cat >>conftest.$ac_ext <<_ACEOF
2891 /* end confdefs.h. */
2893 # include <limits.h>
2895 # include <assert.h>
2899 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2900 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2902 grep -v '^ *+' conftest.er1 >conftest.err
2904 cat conftest.err >&5
2905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906 (exit $ac_status); } >/dev/null; then
2907 if test -s conftest.err; then
2908 ac_cpp_err=$ac_c_preproc_warn_flag
2915 if test -z "$ac_cpp_err"; then
2918 echo "$as_me: failed program was:" >&5
2919 sed 's/^/| /' conftest.$ac_ext >&5
2921 # Broken: fails on valid input.
2924 rm -f conftest.err conftest.$ac_ext
2926 # OK, works on sane cases. Now check whether non-existent headers
2927 # can be detected and how.
2928 cat >conftest.$ac_ext <<_ACEOF
2929 #line $LINENO "configure"
2932 cat confdefs.h >>conftest.$ac_ext
2933 cat >>conftest.$ac_ext <<_ACEOF
2934 /* end confdefs.h. */
2935 #include <ac_nonexistent.h>
2937 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2938 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2940 grep -v '^ *+' conftest.er1 >conftest.err
2942 cat conftest.err >&5
2943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944 (exit $ac_status); } >/dev/null; then
2945 if test -s conftest.err; then
2946 ac_cpp_err=$ac_c_preproc_warn_flag
2953 if test -z "$ac_cpp_err"; then
2954 # Broken: success on invalid input.
2957 echo "$as_me: failed program was:" >&5
2958 sed 's/^/| /' conftest.$ac_ext >&5
2960 # Passes both tests.
2964 rm -f conftest.err conftest.$ac_ext
2967 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2968 rm -f conftest.err conftest.$ac_ext
2969 if $ac_preproc_ok; then
2972 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2973 See \`config.log' for more details." >&5
2974 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2975 See \`config.log' for more details." >&2;}
2976 { (exit 1); exit 1; }; }
2980 ac_cpp='$CPP $CPPFLAGS'
2981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2986 echo "$as_me:$LINENO: checking for egrep" >&5
2987 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2988 if test "${ac_cv_prog_egrep+set}" = set; then
2989 echo $ECHO_N "(cached) $ECHO_C" >&6
2991 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2992 then ac_cv_prog_egrep='grep -E'
2993 else ac_cv_prog_egrep='egrep'
2996 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2997 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2998 EGREP=$ac_cv_prog_egrep
3001 if test $ac_cv_c_compiler_gnu = yes; then
3002 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3003 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3004 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3005 echo $ECHO_N "(cached) $ECHO_C" >&6
3007 ac_pattern="Autoconf.*'x'"
3008 cat >conftest.$ac_ext <<_ACEOF
3009 #line $LINENO "configure"
3012 cat confdefs.h >>conftest.$ac_ext
3013 cat >>conftest.$ac_ext <<_ACEOF
3014 /* end confdefs.h. */
3018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3019 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3020 ac_cv_prog_gcc_traditional=yes
3022 ac_cv_prog_gcc_traditional=no
3027 if test $ac_cv_prog_gcc_traditional = no; then
3028 cat >conftest.$ac_ext <<_ACEOF
3029 #line $LINENO "configure"
3032 cat confdefs.h >>conftest.$ac_ext
3033 cat >>conftest.$ac_ext <<_ACEOF
3034 /* end confdefs.h. */
3038 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3039 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3040 ac_cv_prog_gcc_traditional=yes
3046 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3047 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3048 if test $ac_cv_prog_gcc_traditional = yes; then
3049 CC="$CC -traditional"
3055 cat >>confdefs.h <<\_ACEOF
3061 # Find a good install program. We prefer a C program (faster),
3062 # so one script is as good as another. But avoid the broken or
3063 # incompatible versions:
3064 # SysV /etc/install, /usr/sbin/install
3065 # SunOS /usr/etc/install
3066 # IRIX /sbin/install
3068 # AmigaOS /C/install, which installs bootblocks on floppy discs
3069 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3070 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3071 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3072 # ./install, which can be erroneously created by make from ./install.sh.
3073 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3074 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3075 if test -z "$INSTALL"; then
3076 if test "${ac_cv_path_install+set}" = set; then
3077 echo $ECHO_N "(cached) $ECHO_C" >&6
3079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3083 test -z "$as_dir" && as_dir=.
3084 # Account for people who put trailing slashes in PATH elements.
3086 ./ | .// | /cC/* | \
3087 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3090 # OSF1 and SCO ODT 3.0 have their own names for install.
3091 # Don't use installbsd from OSF since it installs stuff as root
3093 for ac_prog in ginstall scoinst install; do
3094 for ac_exec_ext in '' $ac_executable_extensions; do
3095 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3096 if test $ac_prog = install &&
3097 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3098 # AIX install. It has an incompatible calling convention.
3100 elif test $ac_prog = install &&
3101 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3102 # program-specific install script used by HP pwplus--don't use.
3105 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3117 if test "${ac_cv_path_install+set}" = set; then
3118 INSTALL=$ac_cv_path_install
3120 # As a last resort, use the slow shell script. We don't cache a
3121 # path for INSTALL within a source directory, because that will
3122 # break other packages using the cache if that directory is
3123 # removed, or if the path is relative.
3124 INSTALL=$ac_install_sh
3127 echo "$as_me:$LINENO: result: $INSTALL" >&5
3128 echo "${ECHO_T}$INSTALL" >&6
3130 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3131 # It thinks the first close brace ends the variable substitution.
3132 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3134 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3136 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3138 if test -n "$ac_tool_prefix"; then
3139 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3140 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3141 echo "$as_me:$LINENO: checking for $ac_word" >&5
3142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3143 if test "${ac_cv_prog_RANLIB+set}" = set; then
3144 echo $ECHO_N "(cached) $ECHO_C" >&6
3146 if test -n "$RANLIB"; then
3147 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3153 test -z "$as_dir" && as_dir=.
3154 for ac_exec_ext in '' $ac_executable_extensions; do
3155 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3156 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3165 RANLIB=$ac_cv_prog_RANLIB
3166 if test -n "$RANLIB"; then
3167 echo "$as_me:$LINENO: result: $RANLIB" >&5
3168 echo "${ECHO_T}$RANLIB" >&6
3170 echo "$as_me:$LINENO: result: no" >&5
3171 echo "${ECHO_T}no" >&6
3175 if test -z "$ac_cv_prog_RANLIB"; then
3176 ac_ct_RANLIB=$RANLIB
3177 # Extract the first word of "ranlib", so it can be a program name with args.
3178 set dummy ranlib; ac_word=$2
3179 echo "$as_me:$LINENO: checking for $ac_word" >&5
3180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3181 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3182 echo $ECHO_N "(cached) $ECHO_C" >&6
3184 if test -n "$ac_ct_RANLIB"; then
3185 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3191 test -z "$as_dir" && as_dir=.
3192 for ac_exec_ext in '' $ac_executable_extensions; do
3193 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3194 ac_cv_prog_ac_ct_RANLIB="ranlib"
3195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3201 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3204 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3205 if test -n "$ac_ct_RANLIB"; then
3206 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3207 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3209 echo "$as_me:$LINENO: result: no" >&5
3210 echo "${ECHO_T}no" >&6
3213 RANLIB=$ac_ct_RANLIB
3215 RANLIB="$ac_cv_prog_RANLIB"
3218 # Extract the first word of "mv", so it can be a program name with args.
3219 set dummy mv; ac_word=$2
3220 echo "$as_me:$LINENO: checking for $ac_word" >&5
3221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3222 if test "${ac_cv_path_MV+set}" = set; then
3223 echo $ECHO_N "(cached) $ECHO_C" >&6
3227 ac_cv_path_MV="$MV" # Let the user override the test with a path.
3230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3234 test -z "$as_dir" && as_dir=.
3235 for ac_exec_ext in '' $ac_executable_extensions; do
3236 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3237 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3244 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3250 if test -n "$MV"; then
3251 echo "$as_me:$LINENO: result: $MV" >&5
3252 echo "${ECHO_T}$MV" >&6
3254 echo "$as_me:$LINENO: result: no" >&5
3255 echo "${ECHO_T}no" >&6
3258 # Extract the first word of "rm", so it can be a program name with args.
3259 set dummy rm; ac_word=$2
3260 echo "$as_me:$LINENO: checking for $ac_word" >&5
3261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3262 if test "${ac_cv_path_RM+set}" = set; then
3263 echo $ECHO_N "(cached) $ECHO_C" >&6
3267 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3274 test -z "$as_dir" && as_dir=.
3275 for ac_exec_ext in '' $ac_executable_extensions; do
3276 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3277 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3284 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3290 if test -n "$RM"; then
3291 echo "$as_me:$LINENO: result: $RM" >&5
3292 echo "${ECHO_T}$RM" >&6
3294 echo "$as_me:$LINENO: result: no" >&5
3295 echo "${ECHO_T}no" >&6
3298 # Extract the first word of "cp", so it can be a program name with args.
3299 set dummy cp; ac_word=$2
3300 echo "$as_me:$LINENO: checking for $ac_word" >&5
3301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3302 if test "${ac_cv_path_CP+set}" = set; then
3303 echo $ECHO_N "(cached) $ECHO_C" >&6
3307 ac_cv_path_CP="$CP" # Let the user override the test with a path.
3310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3314 test -z "$as_dir" && as_dir=.
3315 for ac_exec_ext in '' $ac_executable_extensions; do
3316 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3317 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3324 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3330 if test -n "$CP"; then
3331 echo "$as_me:$LINENO: result: $CP" >&5
3332 echo "${ECHO_T}$CP" >&6
3334 echo "$as_me:$LINENO: result: no" >&5
3335 echo "${ECHO_T}no" >&6
3338 # Extract the first word of "sed", so it can be a program name with args.
3339 set dummy sed; ac_word=$2
3340 echo "$as_me:$LINENO: checking for $ac_word" >&5
3341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3342 if test "${ac_cv_path_SED+set}" = set; then
3343 echo $ECHO_N "(cached) $ECHO_C" >&6
3347 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3354 test -z "$as_dir" && as_dir=.
3355 for ac_exec_ext in '' $ac_executable_extensions; do
3356 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3357 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3364 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3370 if test -n "$SED"; then
3371 echo "$as_me:$LINENO: result: $SED" >&5
3372 echo "${ECHO_T}$SED" >&6
3374 echo "$as_me:$LINENO: result: no" >&5
3375 echo "${ECHO_T}no" >&6
3378 # Extract the first word of "awk", so it can be a program name with args.
3379 set dummy awk; ac_word=$2
3380 echo "$as_me:$LINENO: checking for $ac_word" >&5
3381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3382 if test "${ac_cv_path_AWK+set}" = set; then
3383 echo $ECHO_N "(cached) $ECHO_C" >&6
3387 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
3390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3394 test -z "$as_dir" && as_dir=.
3395 for ac_exec_ext in '' $ac_executable_extensions; do
3396 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3397 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
3398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3404 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
3410 if test -n "$AWK"; then
3411 echo "$as_me:$LINENO: result: $AWK" >&5
3412 echo "${ECHO_T}$AWK" >&6
3414 echo "$as_me:$LINENO: result: no" >&5
3415 echo "${ECHO_T}no" >&6
3418 # Extract the first word of "echo", so it can be a program name with args.
3419 set dummy echo; ac_word=$2
3420 echo "$as_me:$LINENO: checking for $ac_word" >&5
3421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3422 if test "${ac_cv_path_ECHO+set}" = set; then
3423 echo $ECHO_N "(cached) $ECHO_C" >&6
3427 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3434 test -z "$as_dir" && as_dir=.
3435 for ac_exec_ext in '' $ac_executable_extensions; do
3436 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3437 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3444 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3448 ECHO=$ac_cv_path_ECHO
3450 if test -n "$ECHO"; then
3451 echo "$as_me:$LINENO: result: $ECHO" >&5
3452 echo "${ECHO_T}$ECHO" >&6
3454 echo "$as_me:$LINENO: result: no" >&5
3455 echo "${ECHO_T}no" >&6
3458 # Extract the first word of "cmp", so it can be a program name with args.
3459 set dummy cmp; ac_word=$2
3460 echo "$as_me:$LINENO: checking for $ac_word" >&5
3461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3462 if test "${ac_cv_path_CMP+set}" = set; then
3463 echo $ECHO_N "(cached) $ECHO_C" >&6
3467 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3474 test -z "$as_dir" && as_dir=.
3475 for ac_exec_ext in '' $ac_executable_extensions; do
3476 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3477 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3484 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3490 if test -n "$CMP"; then
3491 echo "$as_me:$LINENO: result: $CMP" >&5
3492 echo "${ECHO_T}$CMP" >&6
3494 echo "$as_me:$LINENO: result: no" >&5
3495 echo "${ECHO_T}no" >&6
3498 # Extract the first word of "tbl", so it can be a program name with args.
3499 set dummy tbl; ac_word=$2
3500 echo "$as_me:$LINENO: checking for $ac_word" >&5
3501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3502 if test "${ac_cv_path_TBL+set}" = set; then
3503 echo $ECHO_N "(cached) $ECHO_C" >&6
3507 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3514 test -z "$as_dir" && as_dir=.
3515 for ac_exec_ext in '' $ac_executable_extensions; do
3516 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3517 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3524 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3530 if test -n "$TBL"; then
3531 echo "$as_me:$LINENO: result: $TBL" >&5
3532 echo "${ECHO_T}$TBL" >&6
3534 echo "$as_me:$LINENO: result: no" >&5
3535 echo "${ECHO_T}no" >&6
3538 # Extract the first word of "ar", so it can be a program name with args.
3539 set dummy ar; ac_word=$2
3540 echo "$as_me:$LINENO: checking for $ac_word" >&5
3541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3542 if test "${ac_cv_path_AR+set}" = set; then
3543 echo $ECHO_N "(cached) $ECHO_C" >&6
3547 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3554 test -z "$as_dir" && as_dir=.
3555 for ac_exec_ext in '' $ac_executable_extensions; do
3556 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3557 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3564 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3570 if test -n "$AR"; then
3571 echo "$as_me:$LINENO: result: $AR" >&5
3572 echo "${ECHO_T}$AR" >&6
3574 echo "$as_me:$LINENO: result: no" >&5
3575 echo "${ECHO_T}no" >&6
3578 # Extract the first word of "openssl", so it can be a program name with args.
3579 set dummy openssl; ac_word=$2
3580 echo "$as_me:$LINENO: checking for $ac_word" >&5
3581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3582 if test "${ac_cv_path_OPENSSL+set}" = set; then
3583 echo $ECHO_N "(cached) $ECHO_C" >&6
3587 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3594 test -z "$as_dir" && as_dir=.
3595 for ac_exec_ext in '' $ac_executable_extensions; do
3596 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3597 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3604 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3608 OPENSSL=$ac_cv_path_OPENSSL
3610 if test -n "$OPENSSL"; then
3611 echo "$as_me:$LINENO: result: $OPENSSL" >&5
3612 echo "${ECHO_T}$OPENSSL" >&6
3614 echo "$as_me:$LINENO: result: no" >&5
3615 echo "${ECHO_T}no" >&6
3618 # Extract the first word of "mtx", so it can be a program name with args.
3619 set dummy mtx; ac_word=$2
3620 echo "$as_me:$LINENO: checking for $ac_word" >&5
3621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3622 if test "${ac_cv_path_MTX+set}" = set; then
3623 echo $ECHO_N "(cached) $ECHO_C" >&6
3627 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3634 test -z "$as_dir" && as_dir=.
3635 for ac_exec_ext in '' $ac_executable_extensions; do
3636 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3637 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3644 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3650 if test -n "$MTX"; then
3651 echo "$as_me:$LINENO: result: $MTX" >&5
3652 echo "${ECHO_T}$MTX" >&6
3654 echo "$as_me:$LINENO: result: no" >&5
3655 echo "${ECHO_T}no" >&6
3658 # Extract the first word of "pkg-config", so it can be a program name with args.
3659 set dummy pkg-config; ac_word=$2
3660 echo "$as_me:$LINENO: checking for $ac_word" >&5
3661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3662 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
3663 echo $ECHO_N "(cached) $ECHO_C" >&6
3667 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
3670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3674 test -z "$as_dir" && as_dir=.
3675 for ac_exec_ext in '' $ac_executable_extensions; do
3676 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3677 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
3678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3684 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
3688 PKGCONFIG=$ac_cv_path_PKGCONFIG
3690 if test -n "$PKGCONFIG"; then
3691 echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
3692 echo "${ECHO_T}$PKGCONFIG" >&6
3694 echo "$as_me:$LINENO: result: no" >&5
3695 echo "${ECHO_T}no" >&6
3698 # Extract the first word of "wx-config", so it can be a program name with args.
3699 set dummy wx-config; ac_word=$2
3700 echo "$as_me:$LINENO: checking for $ac_word" >&5
3701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3702 if test "${ac_cv_path_WXCONFIG+set}" = set; then
3703 echo $ECHO_N "(cached) $ECHO_C" >&6
3707 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
3710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3714 test -z "$as_dir" && as_dir=.
3715 for ac_exec_ext in '' $ac_executable_extensions; do
3716 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3717 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
3718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3724 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="wx-config"
3728 WXCONFIG=$ac_cv_path_WXCONFIG
3730 if test -n "$WXCONFIG"; then
3731 echo "$as_me:$LINENO: result: $WXCONFIG" >&5
3732 echo "${ECHO_T}$WXCONFIG" >&6
3734 echo "$as_me:$LINENO: result: no" >&5
3735 echo "${ECHO_T}no" >&6
3738 # Extract the first word of "cdrecord", so it can be a program name with args.
3739 set dummy cdrecord; ac_word=$2
3740 echo "$as_me:$LINENO: checking for $ac_word" >&5
3741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3742 if test "${ac_cv_path_CDRECORD+set}" = set; then
3743 echo $ECHO_N "(cached) $ECHO_C" >&6
3747 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
3750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3754 test -z "$as_dir" && as_dir=.
3755 for ac_exec_ext in '' $ac_executable_extensions; do
3756 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3757 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
3758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3767 CDRECORD=$ac_cv_path_CDRECORD
3769 if test -n "$CDRECORD"; then
3770 echo "$as_me:$LINENO: result: $CDRECORD" >&5
3771 echo "${ECHO_T}$CDRECORD" >&6
3773 echo "$as_me:$LINENO: result: no" >&5
3774 echo "${ECHO_T}no" >&6
3778 test -n "$ARFLAG" || ARFLAGS="cr"
3791 # Make sure we can run config.sub.
3792 $ac_config_sub sun4 >/dev/null 2>&1 ||
3793 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3794 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3795 { (exit 1); exit 1; }; }
3797 echo "$as_me:$LINENO: checking build system type" >&5
3798 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3799 if test "${ac_cv_build+set}" = set; then
3800 echo $ECHO_N "(cached) $ECHO_C" >&6
3802 ac_cv_build_alias=$build_alias
3803 test -z "$ac_cv_build_alias" &&
3804 ac_cv_build_alias=`$ac_config_guess`
3805 test -z "$ac_cv_build_alias" &&
3806 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3807 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3808 { (exit 1); exit 1; }; }
3809 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3810 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3811 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3812 { (exit 1); exit 1; }; }
3815 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3816 echo "${ECHO_T}$ac_cv_build" >&6
3818 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3819 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3820 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3824 echo "$as_me:$LINENO: checking host system type" >&5
3825 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3826 if test "${ac_cv_host+set}" = set; then
3827 echo $ECHO_N "(cached) $ECHO_C" >&6
3829 ac_cv_host_alias=$host_alias
3830 test -z "$ac_cv_host_alias" &&
3831 ac_cv_host_alias=$ac_cv_build_alias
3832 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3833 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3834 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3835 { (exit 1); exit 1; }; }
3838 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3839 echo "${ECHO_T}$ac_cv_host" >&6
3841 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3842 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3843 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3847 *cygwin* ) CYGWIN=yes;;
3851 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
3857 HAVE_SUN_OS_FALSE='#'
3859 HAVE_SUN_OS_TRUE='#'
3862 cat >>confdefs.h <<\_ACEOF
3863 #define HAVE_SUN_OS 1
3871 HAVE_SUN_OS_FALSE='#'
3873 HAVE_SUN_OS_TRUE='#'
3878 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
3884 HAVE_OSF1_OS_FALSE='#'
3886 HAVE_OSF1_OS_TRUE='#'
3889 cat >>confdefs.h <<\_ACEOF
3890 #define HAVE_OSF1_OS 1
3898 HAVE_OSF1_OS_FALSE='#'
3900 HAVE_OSF1_OS_TRUE='#'
3905 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
3911 HAVE_AIX_OS_FALSE='#'
3913 HAVE_AIX_OS_TRUE='#'
3916 cat >>confdefs.h <<\_ACEOF
3917 #define HAVE_AIX_OS 1
3925 HAVE_AIX_OS_FALSE='#'
3927 HAVE_AIX_OS_TRUE='#'
3932 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
3938 HAVE_HPUX_OS_FALSE='#'
3940 HAVE_HPUX_OS_TRUE='#'
3943 cat >>confdefs.h <<\_ACEOF
3944 #define HAVE_HPUX_OS 1
3952 HAVE_HPUX_OS_FALSE='#'
3954 HAVE_HPUX_OS_TRUE='#'
3959 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
3965 HAVE_LINUX_OS_FALSE='#'
3967 HAVE_LINUX_OS_TRUE='#'
3968 HAVE_LINUX_OS_FALSE=
3970 cat >>confdefs.h <<\_ACEOF
3971 #define HAVE_LINUX_OS 1
3979 HAVE_LINUX_OS_FALSE='#'
3981 HAVE_LINUX_OS_TRUE='#'
3982 HAVE_LINUX_OS_FALSE=
3986 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
3991 HAVE_FREEBSD_OS_TRUE=
3992 HAVE_FREEBSD_OS_FALSE='#'
3994 HAVE_FREEBSD_OS_TRUE='#'
3995 HAVE_FREEBSD_OS_FALSE=
3997 cat >>confdefs.h <<\_ACEOF
3998 #define HAVE_FREEBSD_OS 1
4005 HAVE_FREEBSD_OS_TRUE=
4006 HAVE_FREEBSD_OS_FALSE='#'
4008 HAVE_FREEBSD_OS_TRUE='#'
4009 HAVE_FREEBSD_OS_FALSE=
4013 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4018 HAVE_NETBSD_OS_TRUE=
4019 HAVE_NETBSD_OS_FALSE='#'
4021 HAVE_NETBSD_OS_TRUE='#'
4022 HAVE_NETBSD_OS_FALSE=
4024 cat >>confdefs.h <<\_ACEOF
4025 #define HAVE_NETBSD_OS 1
4032 HAVE_NETBSD_OS_TRUE=
4033 HAVE_NETBSD_OS_FALSE='#'
4035 HAVE_NETBSD_OS_TRUE='#'
4036 HAVE_NETBSD_OS_FALSE=
4040 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4045 HAVE_OPENBSD_OS_TRUE=
4046 HAVE_OPENBSD_OS_FALSE='#'
4048 HAVE_OPENBSD_OS_TRUE='#'
4049 HAVE_OPENBSD_OS_FALSE=
4051 cat >>confdefs.h <<\_ACEOF
4052 #define HAVE_OPENBSD_OS 1
4059 HAVE_OPENBSD_OS_TRUE=
4060 HAVE_OPENBSD_OS_FALSE='#'
4062 HAVE_OPENBSD_OS_TRUE='#'
4063 HAVE_OPENBSD_OS_FALSE=
4067 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4073 HAVE_BSDI_OS_FALSE='#'
4075 HAVE_BSDI_OS_TRUE='#'
4078 cat >>confdefs.h <<\_ACEOF
4079 #define HAVE_BSDI_OS 1
4087 HAVE_BSDI_OS_FALSE='#'
4089 HAVE_BSDI_OS_TRUE='#'
4094 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4100 HAVE_SGI_OS_FALSE='#'
4102 HAVE_SGI_OS_TRUE='#'
4105 cat >>confdefs.h <<\_ACEOF
4106 #define HAVE_SGI_OS 1
4114 HAVE_SGI_OS_FALSE='#'
4116 HAVE_SGI_OS_TRUE='#'
4121 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4127 HAVE_IRIX_OS_FALSE='#'
4129 HAVE_IRIX_OS_TRUE='#'
4132 cat >>confdefs.h <<\_ACEOF
4133 #define HAVE_IRIX_OS 1
4141 HAVE_IRIX_OS_FALSE='#'
4143 HAVE_IRIX_OS_TRUE='#'
4148 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4153 HAVE_DARWIN_OS_TRUE=
4154 HAVE_DARWIN_OS_FALSE='#'
4156 HAVE_DARWIN_OS_TRUE='#'
4157 HAVE_DARWIN_OS_FALSE=
4159 cat >>confdefs.h <<\_ACEOF
4160 #define HAVE_DARWIN_OS 1
4167 HAVE_DARWIN_OS_TRUE=
4168 HAVE_DARWIN_OS_FALSE='#'
4170 HAVE_DARWIN_OS_TRUE='#'
4171 HAVE_DARWIN_OS_FALSE=
4176 # -----------------------------------------------------------
4177 # ----------------------------------------------------------
4178 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4179 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4180 if test "x$DISTNAME" != "x"
4182 echo "distname set to $DISTNAME"
4183 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4186 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4189 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4192 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4195 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4198 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4201 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4204 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4207 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4210 elif test -f /etc/SuSE-release
4213 elif test -d /etc/SuSEconfig
4216 elif test -f /etc/mandrake-release
4219 elif test -f /etc/whitebox-release
4222 elif test -f /etc/redhat-release
4225 elif test -f /etc/gentoo-release
4228 elif test -f /etc/debian_version
4231 elif test -f /etc/slackware-version
4234 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4237 elif test -f /etc/engarde-version
4240 elif test "$CYGWIN" = yes
4243 cat >>confdefs.h <<\_ACEOF
4244 #define HAVE_CYGWIN 1
4250 echo "$as_me:$LINENO: result: done" >&5
4251 echo "${ECHO_T}done" >&6
4254 # -----------------------------------------------------------
4255 # ----------------------------------------------------------
4260 INSIDE_GNOME_COMMON_TRUE=
4261 INSIDE_GNOME_COMMON_FALSE='#'
4263 INSIDE_GNOME_COMMON_TRUE='#'
4264 INSIDE_GNOME_COMMON_FALSE=
4267 test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
4269 for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
4272 # ------------------------------------------------------------------
4273 # If the user has not set --prefix, we set our default to nothing.
4274 # In this case, if the user has not set --sysconfdir, we set it
4275 # to the package default of /etc/bacula. If either --prefix or
4276 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
4277 # ------------------------------------------------------------------
4278 if test x${prefix} = xNONE ; then
4279 if test `eval echo ${sysconfdir}` = NONE/etc ; then
4280 sysconfdir=/etc/bacula
4284 sysconfdir=`eval echo ${sysconfdir}`
4286 # -------------------------------------------------------------------------
4287 # If the user has not set --exec-prefix, we default to ${prefix}
4288 # -------------------------------------------------------------------------
4289 if test x${exec_prefix} = xNONE ; then
4290 exec_prefix=${prefix}
4293 # ------------------------------------------------------------------
4294 # If the user has not set --sbindir, we set our default as /sbin
4295 # ------------------------------------------------------------------
4296 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4297 sbindir=${exec_prefix}/sbin
4299 sbindir=`eval echo ${sbindir}`
4301 # ------------------------------------------------------------------
4302 # All list of languages for which a translation exist. Each
4303 # language is separated by a space.
4304 # ------------------------------------------------------------------
4307 for ac_prog in msgfmt
4309 # Extract the first word of "$ac_prog", so it can be a program name with args.
4310 set dummy $ac_prog; ac_word=$2
4311 echo "$as_me:$LINENO: checking for $ac_word" >&5
4312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4313 if test "${ac_cv_path_MSGFMT+set}" = set; then
4314 echo $ECHO_N "(cached) $ECHO_C" >&6
4318 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4325 test -z "$as_dir" && as_dir=.
4326 for ac_exec_ext in '' $ac_executable_extensions; do
4327 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4328 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4338 MSGFMT=$ac_cv_path_MSGFMT
4340 if test -n "$MSGFMT"; then
4341 echo "$as_me:$LINENO: result: $MSGFMT" >&5
4342 echo "${ECHO_T}$MSGFMT" >&6
4344 echo "$as_me:$LINENO: result: no" >&5
4345 echo "${ECHO_T}no" >&6
4348 test -n "$MSGFMT" && break
4350 test -n "$MSGFMT" || MSGFMT="no"
4352 if test "$MSGFMT" = "no"
4354 echo 'msgfmt program not found, disabling NLS !'
4356 USE_INCLUDED_LIBINTL=no
4364 support_postgresql=no
4365 support_smartalloc=yes
4366 support_readline=yes
4369 support_wx_console=no
4371 support_static_tools=no
4372 support_static_fd=no
4373 support_static_sd=no
4374 support_static_dir=no
4375 support_static_cons=no
4376 build_client_only=no
4382 # -------------------------------------------
4383 # gnome (default off)
4384 # -------------------------------------------
4385 # Check whether --enable-gnome or --disable-gnome was given.
4386 if test "${enable_gnome+set}" = set; then
4387 enableval="$enable_gnome"
4388 if test x$enableval = xyes; then
4394 if test x$support_gnome = xyes; then
4395 abc=`$PKGCONFIG --exists libgnomeui-2.0`
4397 if test $pkg = 0; then
4398 GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
4399 GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4400 GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
4401 GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4406 GNOME_DIR=src/gnome2-console
4407 gnome_version="Version 2.x"
4420 # Check whether --with-gnome-includes or --without-gnome-includes was given.
4421 if test "${with_gnome_includes+set}" = set; then
4422 withval="$with_gnome_includes"
4424 CFLAGS="$CFLAGS -I$withval"
4429 # Check whether --with-gnome-libs or --without-gnome-libs was given.
4430 if test "${with_gnome_libs+set}" = set; then
4431 withval="$with_gnome_libs"
4433 LDFLAGS="$LDFLAGS -L$withval"
4434 gnome_prefix=$withval
4439 # Check whether --with-gnome or --without-gnome was given.
4440 if test "${with_gnome+set}" = set; then
4441 withval="$with_gnome"
4442 if test x$withval = xyes; then
4446 if test "x$withval" = xno; then
4450 LDFLAGS="$LDFLAGS -L$withval/lib"
4451 CFLAGS="$CFLAGS -I$withval/include"
4452 gnome_prefix=$withval/lib
4459 if test "x$want_gnome" = xyes; then
4461 # Extract the first word of "gnome-config", so it can be a program name with args.
4462 set dummy gnome-config; ac_word=$2
4463 echo "$as_me:$LINENO: checking for $ac_word" >&5
4464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4465 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
4466 echo $ECHO_N "(cached) $ECHO_C" >&6
4468 case $GNOME_CONFIG in
4470 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
4473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4477 test -z "$as_dir" && as_dir=.
4478 for ac_exec_ext in '' $ac_executable_extensions; do
4479 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4480 ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4487 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
4491 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
4493 if test -n "$GNOME_CONFIG"; then
4494 echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
4495 echo "${ECHO_T}$GNOME_CONFIG" >&6
4497 echo "$as_me:$LINENO: result: no" >&5
4498 echo "${ECHO_T}no" >&6
4501 if test "$GNOME_CONFIG" = "no"; then
4502 no_gnome_config="yes"
4504 echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
4505 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
4506 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
4507 echo "$as_me:$LINENO: result: yes" >&5
4508 echo "${ECHO_T}yes" >&6
4511 # Extract the first word of "orbit-config", so it can be a program name with args.
4512 set dummy orbit-config; ac_word=$2
4513 echo "$as_me:$LINENO: checking for $ac_word" >&5
4514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4515 if test "${ac_cv_path_ORBIT_CONFIG+set}" = set; then
4516 echo $ECHO_N "(cached) $ECHO_C" >&6
4518 case $ORBIT_CONFIG in
4520 ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
4523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4527 test -z "$as_dir" && as_dir=.
4528 for ac_exec_ext in '' $ac_executable_extensions; do
4529 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4530 ac_cv_path_ORBIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4537 test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
4541 ORBIT_CONFIG=$ac_cv_path_ORBIT_CONFIG
4543 if test -n "$ORBIT_CONFIG"; then
4544 echo "$as_me:$LINENO: result: $ORBIT_CONFIG" >&5
4545 echo "${ECHO_T}$ORBIT_CONFIG" >&6
4547 echo "$as_me:$LINENO: result: no" >&5
4548 echo "${ECHO_T}no" >&6
4551 # Extract the first word of "orbit-idl", so it can be a program name with args.
4552 set dummy orbit-idl; ac_word=$2
4553 echo "$as_me:$LINENO: checking for $ac_word" >&5
4554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4555 if test "${ac_cv_path_ORBIT_IDL+set}" = set; then
4556 echo $ECHO_N "(cached) $ECHO_C" >&6
4560 ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
4563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4567 test -z "$as_dir" && as_dir=.
4568 for ac_exec_ext in '' $ac_executable_extensions; do
4569 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4570 ac_cv_path_ORBIT_IDL="$as_dir/$ac_word$ac_exec_ext"
4571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4577 test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
4581 ORBIT_IDL=$ac_cv_path_ORBIT_IDL
4583 if test -n "$ORBIT_IDL"; then
4584 echo "$as_me:$LINENO: result: $ORBIT_IDL" >&5
4585 echo "${ECHO_T}$ORBIT_IDL" >&6
4587 echo "$as_me:$LINENO: result: no" >&5
4588 echo "${ECHO_T}no" >&6
4591 echo "$as_me:$LINENO: checking for working ORBit environment" >&5
4592 echo $ECHO_N "checking for working ORBit environment... $ECHO_C" >&6
4593 if test "${gnome_cv_orbit_found+set}" = set; then
4594 echo $ECHO_N "(cached) $ECHO_C" >&6
4597 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
4598 gnome_cv_orbit_found=no
4600 gnome_cv_orbit_found=yes
4604 echo "$as_me:$LINENO: result: $gnome_cv_orbit_found" >&5
4605 echo "${ECHO_T}$gnome_cv_orbit_found" >&6
4608 if test x$gnome_cv_orbit_found = xyes; then
4610 HAVE_ORBIT_FALSE='#'
4615 if test x$gnome_cv_orbit_found = xyes; then
4617 ORBIT_CFLAGS=`orbit-config --cflags client server`
4618 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
4622 if test xfail = xfailure; then
4623 { { echo "$as_me:$LINENO: error: ORBit not installed or installation problem" >&5
4624 echo "$as_me: error: ORBit not installed or installation problem" >&2;}
4625 { (exit 1); exit 1; }; }
4629 echo "$as_me:$LINENO: checking for gnorba libraries" >&5
4630 echo $ECHO_N "checking for gnorba libraries... $ECHO_C" >&6
4631 if test "${gnome_cv_gnorba_found+set}" = set; then
4632 echo $ECHO_N "(cached) $ECHO_C" >&6
4635 gnome_cv_gnorba_found=no
4636 if test x$gnome_cv_orbit_found = xyes; then
4637 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4638 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4639 if test -n "$GNORBA_LIBS"; then
4640 gnome_cv_gnorba_found=yes
4645 echo "$as_me:$LINENO: result: $gnome_cv_gnorba_found" >&5
4646 echo "${ECHO_T}$gnome_cv_gnorba_found" >&6
4649 if test x$gnome_cv_gnorba_found = xyes; then
4651 HAVE_GNORBA_FALSE='#'
4653 HAVE_GNORBA_TRUE='#'
4656 if test x$gnome_cv_orbit_found = xyes; then
4658 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4659 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4663 if test xfail = xfailure; then
4664 { { echo "$as_me:$LINENO: error: gnorba library not installed or installation problem" >&5
4665 echo "$as_me: error: gnorba library not installed or installation problem" >&2;}
4666 { (exit 1); exit 1; }; }
4670 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
4671 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
4672 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
4673 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
4674 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
4675 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
4676 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
4679 echo "$as_me:$LINENO: result: no" >&5
4680 echo "${ECHO_T}no" >&6
4681 no_gnome_config="yes"
4685 if test x$exec_prefix = xNONE; then
4686 if test x$prefix = xNONE; then
4687 gnome_prefix=$ac_default_prefix/lib
4689 gnome_prefix=$prefix/lib
4692 gnome_prefix=`eval echo \`echo $libdir\``
4695 if test "$no_gnome_config" = "yes"; then
4696 echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
4697 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
4698 if test -f $gnome_prefix/gnomeConf.sh; then
4699 echo "$as_me:$LINENO: result: found" >&5
4700 echo "${ECHO_T}found" >&6
4701 echo "loading gnome configuration from" \
4702 "$gnome_prefix/gnomeConf.sh"
4703 . $gnome_prefix/gnomeConf.sh
4706 echo "$as_me:$LINENO: result: not found" >&5
4707 echo "${ECHO_T}not found" >&6
4708 if test xfail = xfail; then
4709 { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
4710 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
4711 { (exit 1); exit 1; }; }
4720 echo "$as_me:$LINENO: checking extra library \"$i\"" >&5
4721 echo $ECHO_N "checking extra library \"$i\"... $ECHO_C" >&6
4725 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
4726 echo "$as_me:$LINENO: result: $GNOME_APPLETS_LIBS" >&5
4727 echo "${ECHO_T}$GNOME_APPLETS_LIBS" >&6;;
4730 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
4731 echo "$as_me:$LINENO: result: $GNOME_DOCKLETS_LIBS" >&5
4732 echo "${ECHO_T}$GNOME_DOCKLETS_LIBS" >&6;;
4735 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
4736 echo "$as_me:$LINENO: result: $GNOME_CAPPLET_LIBS" >&5
4737 echo "${ECHO_T}$GNOME_CAPPLET_LIBS" >&6;;
4739 echo "$as_me:$LINENO: result: unknown library" >&5
4740 echo "${ECHO_T}unknown library" >&6
4742 EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
4743 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
4748 GNOME_DIR=src/gnome-console
4749 gnome_version="Version 1.4"
4755 # -------------------------------------------
4756 # wx-console (default off)
4757 # -------------------------------------------
4758 # Check whether --enable-wx-console or --disable-wx-console was given.
4759 if test "${enable_wx_console+set}" = set; then
4760 enableval="$enable_wx_console"
4761 if test x$enableval = xyes; then
4762 support_wx_console=yes
4767 if test x$support_wx_console = xyes; then
4768 abc=`$WXCONFIG --cppflags`
4770 if test $pkg = 0; then
4771 WXCONS_CPPFLAGS=`$WXCONFIG --cppflags`
4772 WXCONS_LDFLAGS=`$WXCONFIG --libs`
4775 WX_DIR=src/wx-console
4778 echo "wx-config program not found. wx-console disabled."
4780 support_wx_console=no
4786 # -------------------------------------------
4787 # tray-monitor (default off)
4788 # -------------------------------------------
4789 # Check whether --enable-tray-monitor or --disable-tray-monitor was given.
4790 if test "${enable_tray_monitor+set}" = set; then
4791 enableval="$enable_tray_monitor"
4792 if test x$enableval = xyes; then
4793 support_tray_monitor=yes
4798 if test x$support_tray_monitor = xyes; then
4799 abc=`$PKGCONFIG --exists gtk+-2.0`
4801 if test $pkg = 0; then
4802 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
4803 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
4806 TRAY_MONITOR_DIR=src/tray-monitor
4807 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
4809 if test $pkg = 0; then
4810 cat >>confdefs.h <<\_ACEOF
4811 #define HAVE_GTK_2_4 1
4819 # -------------------------------------------
4820 # smartalloc (default off)
4821 # -------------------------------------------
4822 # Check whether --enable-smartalloc or --disable-smartalloc was given.
4823 if test "${enable_smartalloc+set}" = set; then
4824 enableval="$enable_smartalloc"
4825 if test x$enableval = xno; then
4826 support_smartalloc=no
4830 if test x$support_smartalloc = xyes; then
4831 cat >>confdefs.h <<\_ACEOF
4832 #define SMARTALLOC 1
4837 # -------------------------------------------
4838 # static-tools (default off)
4839 # -------------------------------------------
4840 # Check whether --enable-static-tools or --disable-static-tools was given.
4841 if test "${enable_static_tools+set}" = set; then
4842 enableval="$enable_static_tools"
4843 if test x$enableval = xyes; then
4844 support_static_tools=yes
4849 if test x$support_static_tools = xyes; then
4850 TTOOL_LDFLAGS="-static"
4854 # -------------------------------------------
4855 # static-fd (default off)
4856 # -------------------------------------------
4857 # Check whether --enable-static-fd or --disable-static-fd was given.
4858 if test "${enable_static_fd+set}" = set; then
4859 enableval="$enable_static_fd"
4860 if test x$enableval = xyes; then
4861 support_static_fd=yes
4866 if test x$support_static_fd = xyes; then
4867 STATIC_FD="static-bacula-fd"
4871 # -------------------------------------------
4872 # static-sd (default off)
4873 # -------------------------------------------
4874 # Check whether --enable-static-sd or --disable-static-sd was given.
4875 if test "${enable_static_sd+set}" = set; then
4876 enableval="$enable_static_sd"
4877 if test x$enableval = xyes; then
4878 support_static_sd=yes
4883 if test x$support_static_sd = xyes; then
4884 STATIC_SD="static-bacula-sd"
4888 # -------------------------------------------
4889 # static-dir (default off)
4890 # -------------------------------------------
4891 # Check whether --enable-static-dir or --disable-static-dir was given.
4892 if test "${enable_static_dir+set}" = set; then
4893 enableval="$enable_static_dir"
4894 if test x$enableval = xyes; then
4895 support_static_dir=yes
4900 if test x$support_static_dir = xyes; then
4901 STATIC_DIR="static-bacula-dir"
4905 # -------------------------------------------
4906 # static-cons (default off)
4907 # -------------------------------------------
4908 # Check whether --enable-static-cons or --disable-static-cons was given.
4909 if test "${enable_static_cons+set}" = set; then
4910 enableval="$enable_static_cons"
4911 if test x$enableval = xyes; then
4912 support_static_cons=yes
4919 if test x$support_static_cons = xyes; then
4920 STATIC_CONS="static-bconsole"
4921 STATIC_GNOME_CONS="static-gnome-console"
4922 STATIC_WX_CONS="static-wx-console"
4928 # -------------------------------------------
4929 # client_only (default off)
4930 # -------------------------------------------
4931 # Check whether --enable-client-only or --disable-client-only was given.
4932 if test "${enable_client_only+set}" = set; then
4933 enableval="$enable_client_only"
4934 if test x$enableval = xyes; then
4935 build_client_only=yes
4940 if test x$build_client_only = xno; then
4947 # ---------------------------------------------------
4948 # Check for conio (Bacula readline substitute)(
4949 # ---------------------------------------------------
4950 # this allows you to turn it completely off
4951 # Check whether --enable-conio or --disable-conio was given.
4952 if test "${enable_conio+set}" = set; then
4953 enableval="$enable_conio"
4954 if test x$enableval = xno; then
4960 if test x$support_conio = xyes; then
4961 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4962 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4963 if test "${ac_cv_header_stdc+set}" = set; then
4964 echo $ECHO_N "(cached) $ECHO_C" >&6
4966 cat >conftest.$ac_ext <<_ACEOF
4967 #line $LINENO "configure"
4970 cat confdefs.h >>conftest.$ac_ext
4971 cat >>conftest.$ac_ext <<_ACEOF
4972 /* end confdefs.h. */
4986 rm -f conftest.$ac_objext
4987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4988 (eval $ac_compile) 2>&5
4990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4991 (exit $ac_status); } &&
4992 { ac_try='test -s conftest.$ac_objext'
4993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997 (exit $ac_status); }; }; then
4998 ac_cv_header_stdc=yes
5000 echo "$as_me: failed program was:" >&5
5001 sed 's/^/| /' conftest.$ac_ext >&5
5003 ac_cv_header_stdc=no
5005 rm -f conftest.$ac_objext conftest.$ac_ext
5007 if test $ac_cv_header_stdc = yes; then
5008 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5009 cat >conftest.$ac_ext <<_ACEOF
5010 #line $LINENO "configure"
5013 cat confdefs.h >>conftest.$ac_ext
5014 cat >>conftest.$ac_ext <<_ACEOF
5015 /* end confdefs.h. */
5019 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5020 $EGREP "memchr" >/dev/null 2>&1; then
5023 ac_cv_header_stdc=no
5029 if test $ac_cv_header_stdc = yes; then
5030 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5031 cat >conftest.$ac_ext <<_ACEOF
5032 #line $LINENO "configure"
5035 cat confdefs.h >>conftest.$ac_ext
5036 cat >>conftest.$ac_ext <<_ACEOF
5037 /* end confdefs.h. */
5041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5042 $EGREP "free" >/dev/null 2>&1; then
5045 ac_cv_header_stdc=no
5051 if test $ac_cv_header_stdc = yes; then
5052 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5053 if test "$cross_compiling" = yes; then
5056 cat >conftest.$ac_ext <<_ACEOF
5057 #line $LINENO "configure"
5060 cat confdefs.h >>conftest.$ac_ext
5061 cat >>conftest.$ac_ext <<_ACEOF
5062 /* end confdefs.h. */
5064 #if ((' ' & 0x0FF) == 0x020)
5065 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5066 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5068 # define ISLOWER(c) \
5069 (('a' <= (c) && (c) <= 'i') \
5070 || ('j' <= (c) && (c) <= 'r') \
5071 || ('s' <= (c) && (c) <= 'z'))
5072 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5075 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5080 for (i = 0; i < 256; i++)
5081 if (XOR (islower (i), ISLOWER (i))
5082 || toupper (i) != TOUPPER (i))
5087 rm -f conftest$ac_exeext
5088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5089 (eval $ac_link) 2>&5
5091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5092 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097 (exit $ac_status); }; }; then
5100 echo "$as_me: program exited with status $ac_status" >&5
5101 echo "$as_me: failed program was:" >&5
5102 sed 's/^/| /' conftest.$ac_ext >&5
5105 ac_cv_header_stdc=no
5107 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5111 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5112 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5113 if test $ac_cv_header_stdc = yes; then
5115 cat >>confdefs.h <<\_ACEOF
5116 #define STDC_HEADERS 1
5121 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5131 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5132 inttypes.h stdint.h unistd.h
5134 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5135 echo "$as_me:$LINENO: checking for $ac_header" >&5
5136 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5137 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5138 echo $ECHO_N "(cached) $ECHO_C" >&6
5140 cat >conftest.$ac_ext <<_ACEOF
5141 #line $LINENO "configure"
5144 cat confdefs.h >>conftest.$ac_ext
5145 cat >>conftest.$ac_ext <<_ACEOF
5146 /* end confdefs.h. */
5147 $ac_includes_default
5149 #include <$ac_header>
5151 rm -f conftest.$ac_objext
5152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5153 (eval $ac_compile) 2>&5
5155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5156 (exit $ac_status); } &&
5157 { ac_try='test -s conftest.$ac_objext'
5158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162 (exit $ac_status); }; }; then
5163 eval "$as_ac_Header=yes"
5165 echo "$as_me: failed program was:" >&5
5166 sed 's/^/| /' conftest.$ac_ext >&5
5168 eval "$as_ac_Header=no"
5170 rm -f conftest.$ac_objext conftest.$ac_ext
5172 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5173 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5174 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5175 cat >>confdefs.h <<_ACEOF
5176 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5184 if test "${ac_cv_header_termcap_h+set}" = set; then
5185 echo "$as_me:$LINENO: checking for termcap.h" >&5
5186 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5187 if test "${ac_cv_header_termcap_h+set}" = set; then
5188 echo $ECHO_N "(cached) $ECHO_C" >&6
5190 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5191 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5193 # Is the header compilable?
5194 echo "$as_me:$LINENO: checking termcap.h usability" >&5
5195 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
5196 cat >conftest.$ac_ext <<_ACEOF
5197 #line $LINENO "configure"
5200 cat confdefs.h >>conftest.$ac_ext
5201 cat >>conftest.$ac_ext <<_ACEOF
5202 /* end confdefs.h. */
5203 $ac_includes_default
5204 #include <termcap.h>
5206 rm -f conftest.$ac_objext
5207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5208 (eval $ac_compile) 2>&5
5210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211 (exit $ac_status); } &&
5212 { ac_try='test -s conftest.$ac_objext'
5213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217 (exit $ac_status); }; }; then
5218 ac_header_compiler=yes
5220 echo "$as_me: failed program was:" >&5
5221 sed 's/^/| /' conftest.$ac_ext >&5
5223 ac_header_compiler=no
5225 rm -f conftest.$ac_objext conftest.$ac_ext
5226 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5227 echo "${ECHO_T}$ac_header_compiler" >&6
5229 # Is the header present?
5230 echo "$as_me:$LINENO: checking termcap.h presence" >&5
5231 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
5232 cat >conftest.$ac_ext <<_ACEOF
5233 #line $LINENO "configure"
5236 cat confdefs.h >>conftest.$ac_ext
5237 cat >>conftest.$ac_ext <<_ACEOF
5238 /* end confdefs.h. */
5239 #include <termcap.h>
5241 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5242 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5244 grep -v '^ *+' conftest.er1 >conftest.err
5246 cat conftest.err >&5
5247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248 (exit $ac_status); } >/dev/null; then
5249 if test -s conftest.err; then
5250 ac_cpp_err=$ac_c_preproc_warn_flag
5257 if test -z "$ac_cpp_err"; then
5258 ac_header_preproc=yes
5260 echo "$as_me: failed program was:" >&5
5261 sed 's/^/| /' conftest.$ac_ext >&5
5263 ac_header_preproc=no
5265 rm -f conftest.err conftest.$ac_ext
5266 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5267 echo "${ECHO_T}$ac_header_preproc" >&6
5269 # So? What about this header?
5270 case $ac_header_compiler:$ac_header_preproc in
5272 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
5273 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5274 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5275 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5278 ## ------------------------------------ ##
5279 ## Report this to bug-autoconf@gnu.org. ##
5280 ## ------------------------------------ ##
5283 sed "s/^/$as_me: WARNING: /" >&2
5286 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
5287 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
5288 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
5289 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
5290 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5291 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5294 ## ------------------------------------ ##
5295 ## Report this to bug-autoconf@gnu.org. ##
5296 ## ------------------------------------ ##
5299 sed "s/^/$as_me: WARNING: /" >&2
5302 echo "$as_me:$LINENO: checking for termcap.h" >&5
5303 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5304 if test "${ac_cv_header_termcap_h+set}" = set; then
5305 echo $ECHO_N "(cached) $ECHO_C" >&6
5307 ac_cv_header_termcap_h=$ac_header_preproc
5309 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5310 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5313 if test $ac_cv_header_termcap_h = yes; then
5314 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5315 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
5316 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5317 echo $ECHO_N "(cached) $ECHO_C" >&6
5319 ac_check_lib_save_LIBS=$LIBS
5320 LIBS="-ltermcap $LIBS"
5321 cat >conftest.$ac_ext <<_ACEOF
5322 #line $LINENO "configure"
5325 cat confdefs.h >>conftest.$ac_ext
5326 cat >>conftest.$ac_ext <<_ACEOF
5327 /* end confdefs.h. */
5329 /* Override any gcc2 internal prototype to avoid an error. */
5333 /* We use char because int might match the return type of a gcc2
5334 builtin and then its argument prototype would still apply. */
5344 rm -f conftest.$ac_objext conftest$ac_exeext
5345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5346 (eval $ac_link) 2>&5
5348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349 (exit $ac_status); } &&
5350 { ac_try='test -s conftest$ac_exeext'
5351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355 (exit $ac_status); }; }; then
5356 ac_cv_lib_termcap_tgetent=yes
5358 echo "$as_me: failed program was:" >&5
5359 sed 's/^/| /' conftest.$ac_ext >&5
5361 ac_cv_lib_termcap_tgetent=no
5363 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5364 LIBS=$ac_check_lib_save_LIBS
5366 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5367 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
5368 if test $ac_cv_lib_termcap_tgetent = yes; then
5369 CONS_LIBS="-ltermcap"
5375 cat >>confdefs.h <<\_ACEOF
5376 #define HAVE_CONIO 1
5381 echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
5382 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
5383 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
5384 echo $ECHO_N "(cached) $ECHO_C" >&6
5386 ac_check_lib_save_LIBS=$LIBS
5387 LIBS="-lncurses $LIBS"
5388 cat >conftest.$ac_ext <<_ACEOF
5389 #line $LINENO "configure"
5392 cat confdefs.h >>conftest.$ac_ext
5393 cat >>conftest.$ac_ext <<_ACEOF
5394 /* end confdefs.h. */
5396 /* Override any gcc2 internal prototype to avoid an error. */
5400 /* We use char because int might match the return type of a gcc2
5401 builtin and then its argument prototype would still apply. */
5411 rm -f conftest.$ac_objext conftest$ac_exeext
5412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5413 (eval $ac_link) 2>&5
5415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416 (exit $ac_status); } &&
5417 { ac_try='test -s conftest$ac_exeext'
5418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422 (exit $ac_status); }; }; then
5423 ac_cv_lib_ncurses_tgetent=yes
5425 echo "$as_me: failed program was:" >&5
5426 sed 's/^/| /' conftest.$ac_ext >&5
5428 ac_cv_lib_ncurses_tgetent=no
5430 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5431 LIBS=$ac_check_lib_save_LIBS
5433 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
5434 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
5435 if test $ac_cv_lib_ncurses_tgetent = yes; then
5436 CONS_LIBS="-lncurses"
5442 cat >>confdefs.h <<\_ACEOF
5443 #define HAVE_CONIO 1
5457 if test "${ac_cv_header_term_h+set}" = set; then
5458 echo "$as_me:$LINENO: checking for term.h" >&5
5459 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
5460 if test "${ac_cv_header_term_h+set}" = set; then
5461 echo $ECHO_N "(cached) $ECHO_C" >&6
5463 echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
5464 echo "${ECHO_T}$ac_cv_header_term_h" >&6
5466 # Is the header compilable?
5467 echo "$as_me:$LINENO: checking term.h usability" >&5
5468 echo $ECHO_N "checking term.h usability... $ECHO_C" >&6
5469 cat >conftest.$ac_ext <<_ACEOF
5470 #line $LINENO "configure"
5473 cat confdefs.h >>conftest.$ac_ext
5474 cat >>conftest.$ac_ext <<_ACEOF
5475 /* end confdefs.h. */
5476 $ac_includes_default
5479 rm -f conftest.$ac_objext
5480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5481 (eval $ac_compile) 2>&5
5483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5484 (exit $ac_status); } &&
5485 { ac_try='test -s conftest.$ac_objext'
5486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490 (exit $ac_status); }; }; then
5491 ac_header_compiler=yes
5493 echo "$as_me: failed program was:" >&5
5494 sed 's/^/| /' conftest.$ac_ext >&5
5496 ac_header_compiler=no
5498 rm -f conftest.$ac_objext conftest.$ac_ext
5499 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5500 echo "${ECHO_T}$ac_header_compiler" >&6
5502 # Is the header present?
5503 echo "$as_me:$LINENO: checking term.h presence" >&5
5504 echo $ECHO_N "checking term.h presence... $ECHO_C" >&6
5505 cat >conftest.$ac_ext <<_ACEOF
5506 #line $LINENO "configure"
5509 cat confdefs.h >>conftest.$ac_ext
5510 cat >>conftest.$ac_ext <<_ACEOF
5511 /* end confdefs.h. */
5514 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5515 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5517 grep -v '^ *+' conftest.er1 >conftest.err
5519 cat conftest.err >&5
5520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5521 (exit $ac_status); } >/dev/null; then
5522 if test -s conftest.err; then
5523 ac_cpp_err=$ac_c_preproc_warn_flag
5530 if test -z "$ac_cpp_err"; then
5531 ac_header_preproc=yes
5533 echo "$as_me: failed program was:" >&5
5534 sed 's/^/| /' conftest.$ac_ext >&5
5536 ac_header_preproc=no
5538 rm -f conftest.err conftest.$ac_ext
5539 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5540 echo "${ECHO_T}$ac_header_preproc" >&6
5542 # So? What about this header?
5543 case $ac_header_compiler:$ac_header_preproc in
5545 { echo "$as_me:$LINENO: WARNING: term.h: accepted by the compiler, rejected by the preprocessor!" >&5
5546 echo "$as_me: WARNING: term.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5547 { echo "$as_me:$LINENO: WARNING: term.h: proceeding with the preprocessor's result" >&5
5548 echo "$as_me: WARNING: term.h: proceeding with the preprocessor's result" >&2;}
5551 ## ------------------------------------ ##
5552 ## Report this to bug-autoconf@gnu.org. ##
5553 ## ------------------------------------ ##
5556 sed "s/^/$as_me: WARNING: /" >&2
5559 { echo "$as_me:$LINENO: WARNING: term.h: present but cannot be compiled" >&5
5560 echo "$as_me: WARNING: term.h: present but cannot be compiled" >&2;}
5561 { echo "$as_me:$LINENO: WARNING: term.h: check for missing prerequisite headers?" >&5
5562 echo "$as_me: WARNING: term.h: check for missing prerequisite headers?" >&2;}
5563 { echo "$as_me:$LINENO: WARNING: term.h: proceeding with the preprocessor's result" >&5
5564 echo "$as_me: WARNING: term.h: proceeding with the preprocessor's result" >&2;}
5567 ## ------------------------------------ ##
5568 ## Report this to bug-autoconf@gnu.org. ##
5569 ## ------------------------------------ ##
5572 sed "s/^/$as_me: WARNING: /" >&2
5575 echo "$as_me:$LINENO: checking for term.h" >&5
5576 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
5577 if test "${ac_cv_header_term_h+set}" = set; then
5578 echo $ECHO_N "(cached) $ECHO_C" >&6
5580 ac_cv_header_term_h=$ac_header_preproc
5582 echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
5583 echo "${ECHO_T}$ac_cv_header_term_h" >&6
5586 if test $ac_cv_header_term_h = yes; then
5587 echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
5588 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
5589 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
5590 echo $ECHO_N "(cached) $ECHO_C" >&6
5592 ac_check_lib_save_LIBS=$LIBS
5593 LIBS="-lcurses $LIBS"
5594 cat >conftest.$ac_ext <<_ACEOF
5595 #line $LINENO "configure"
5598 cat confdefs.h >>conftest.$ac_ext
5599 cat >>conftest.$ac_ext <<_ACEOF
5600 /* end confdefs.h. */
5602 /* Override any gcc2 internal prototype to avoid an error. */
5606 /* We use char because int might match the return type of a gcc2
5607 builtin and then its argument prototype would still apply. */
5617 rm -f conftest.$ac_objext conftest$ac_exeext
5618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5619 (eval $ac_link) 2>&5
5621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622 (exit $ac_status); } &&
5623 { ac_try='test -s conftest$ac_exeext'
5624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628 (exit $ac_status); }; }; then
5629 ac_cv_lib_curses_tgetent=yes
5631 echo "$as_me: failed program was:" >&5
5632 sed 's/^/| /' conftest.$ac_ext >&5
5634 ac_cv_lib_curses_tgetent=no
5636 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5637 LIBS=$ac_check_lib_save_LIBS
5639 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
5640 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
5641 if test $ac_cv_lib_curses_tgetent = yes; then
5642 CONS_LIBS="-lcurses"
5648 cat >>confdefs.h <<\_ACEOF
5649 #define HAVE_CONIO 1
5662 # ---------------------------------------------------
5663 # Check for readline support/directory (default off)
5664 # ---------------------------------------------------
5665 # this allows you to turn it completely off
5666 # Check whether --enable-readline or --disable-readline was given.
5667 if test "${enable_readline+set}" = set; then
5668 enableval="$enable_readline"
5669 if test x$enableval = xno; then
5676 if test x$support_readline = xyes; then
5678 # Check whether --with-readline or --without-readline was given.
5679 if test "${with_readline+set}" = set; then
5680 withval="$with_readline"
5682 case "$with_readline" in
5685 if test "$with_readline" != "yes"; then
5686 CONS_INC="-I${with_readline}"
5687 CONS_LDFLAGS="-L$with_readline"
5689 with_readline="/usr/include/readline"
5691 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
5692 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5693 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5694 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5695 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5696 echo $ECHO_N "(cached) $ECHO_C" >&6
5698 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5699 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5701 # Is the header compilable?
5702 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
5703 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
5704 cat >conftest.$ac_ext <<_ACEOF
5705 #line $LINENO "configure"
5708 cat confdefs.h >>conftest.$ac_ext
5709 cat >>conftest.$ac_ext <<_ACEOF
5710 /* end confdefs.h. */
5711 $ac_includes_default
5712 #include <${with_readline}/readline.h>
5714 rm -f conftest.$ac_objext
5715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5716 (eval $ac_compile) 2>&5
5718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719 (exit $ac_status); } &&
5720 { ac_try='test -s conftest.$ac_objext'
5721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725 (exit $ac_status); }; }; then
5726 ac_header_compiler=yes
5728 echo "$as_me: failed program was:" >&5
5729 sed 's/^/| /' conftest.$ac_ext >&5
5731 ac_header_compiler=no
5733 rm -f conftest.$ac_objext conftest.$ac_ext
5734 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5735 echo "${ECHO_T}$ac_header_compiler" >&6
5737 # Is the header present?
5738 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
5739 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
5740 cat >conftest.$ac_ext <<_ACEOF
5741 #line $LINENO "configure"
5744 cat confdefs.h >>conftest.$ac_ext
5745 cat >>conftest.$ac_ext <<_ACEOF
5746 /* end confdefs.h. */
5747 #include <${with_readline}/readline.h>
5749 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5750 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5752 grep -v '^ *+' conftest.er1 >conftest.err
5754 cat conftest.err >&5
5755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5756 (exit $ac_status); } >/dev/null; then
5757 if test -s conftest.err; then
5758 ac_cpp_err=$ac_c_preproc_warn_flag
5765 if test -z "$ac_cpp_err"; then
5766 ac_header_preproc=yes
5768 echo "$as_me: failed program was:" >&5
5769 sed 's/^/| /' conftest.$ac_ext >&5
5771 ac_header_preproc=no
5773 rm -f conftest.err conftest.$ac_ext
5774 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5775 echo "${ECHO_T}$ac_header_preproc" >&6
5777 # So? What about this header?
5778 case $ac_header_compiler:$ac_header_preproc in
5780 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5781 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5782 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5783 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5786 ## ------------------------------------ ##
5787 ## Report this to bug-autoconf@gnu.org. ##
5788 ## ------------------------------------ ##
5791 sed "s/^/$as_me: WARNING: /" >&2
5794 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
5795 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
5796 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
5797 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
5798 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5799 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5802 ## ------------------------------------ ##
5803 ## Report this to bug-autoconf@gnu.org. ##
5804 ## ------------------------------------ ##
5807 sed "s/^/$as_me: WARNING: /" >&2
5810 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5811 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5812 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5813 echo $ECHO_N "(cached) $ECHO_C" >&6
5815 eval "$as_ac_Header=$ac_header_preproc"
5817 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5818 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5821 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5822 cat >>confdefs.h <<\_ACEOF
5823 #define HAVE_READLINE 1
5826 CONS_LIBS="-lreadline -ltermcap"
5831 echo "readline.h not found. readline turned off ..."
5843 # check for standard readline library
5844 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5845 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5846 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5847 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5848 echo $ECHO_N "(cached) $ECHO_C" >&6
5850 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5851 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5853 # Is the header compilable?
5854 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
5855 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
5856 cat >conftest.$ac_ext <<_ACEOF
5857 #line $LINENO "configure"
5860 cat confdefs.h >>conftest.$ac_ext
5861 cat >>conftest.$ac_ext <<_ACEOF
5862 /* end confdefs.h. */
5863 $ac_includes_default
5864 #include </usr/include/readline/readline.h>
5866 rm -f conftest.$ac_objext
5867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5868 (eval $ac_compile) 2>&5
5870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871 (exit $ac_status); } &&
5872 { ac_try='test -s conftest.$ac_objext'
5873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877 (exit $ac_status); }; }; then
5878 ac_header_compiler=yes
5880 echo "$as_me: failed program was:" >&5
5881 sed 's/^/| /' conftest.$ac_ext >&5
5883 ac_header_compiler=no
5885 rm -f conftest.$ac_objext conftest.$ac_ext
5886 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5887 echo "${ECHO_T}$ac_header_compiler" >&6
5889 # Is the header present?
5890 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
5891 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
5892 cat >conftest.$ac_ext <<_ACEOF
5893 #line $LINENO "configure"
5896 cat confdefs.h >>conftest.$ac_ext
5897 cat >>conftest.$ac_ext <<_ACEOF
5898 /* end confdefs.h. */
5899 #include </usr/include/readline/readline.h>
5901 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5902 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5904 grep -v '^ *+' conftest.er1 >conftest.err
5906 cat conftest.err >&5
5907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5908 (exit $ac_status); } >/dev/null; then
5909 if test -s conftest.err; then
5910 ac_cpp_err=$ac_c_preproc_warn_flag
5917 if test -z "$ac_cpp_err"; then
5918 ac_header_preproc=yes
5920 echo "$as_me: failed program was:" >&5
5921 sed 's/^/| /' conftest.$ac_ext >&5
5923 ac_header_preproc=no
5925 rm -f conftest.err conftest.$ac_ext
5926 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5927 echo "${ECHO_T}$ac_header_preproc" >&6
5929 # So? What about this header?
5930 case $ac_header_compiler:$ac_header_preproc in
5932 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5933 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5934 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5935 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5938 ## ------------------------------------ ##
5939 ## Report this to bug-autoconf@gnu.org. ##
5940 ## ------------------------------------ ##
5943 sed "s/^/$as_me: WARNING: /" >&2
5946 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
5947 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
5948 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
5949 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
5950 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5951 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5954 ## ------------------------------------ ##
5955 ## Report this to bug-autoconf@gnu.org. ##
5956 ## ------------------------------------ ##
5959 sed "s/^/$as_me: WARNING: /" >&2
5962 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5963 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5964 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5965 echo $ECHO_N "(cached) $ECHO_C" >&6
5967 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
5969 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5970 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5973 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
5974 cat >>confdefs.h <<\_ACEOF
5975 #define HAVE_READLINE 1
5979 CONS_INC="-I/usr/include/readline"
5980 CONS_LIBS="-lreadline -ltermcap"
5984 # Did not find standard library, so try Bacula's default
5985 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
5986 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5987 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5988 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5989 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5990 echo $ECHO_N "(cached) $ECHO_C" >&6
5992 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5993 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5995 # Is the header compilable?
5996 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
5997 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
5998 cat >conftest.$ac_ext <<_ACEOF
5999 #line $LINENO "configure"
6002 cat confdefs.h >>conftest.$ac_ext
6003 cat >>conftest.$ac_ext <<_ACEOF
6004 /* end confdefs.h. */
6005 $ac_includes_default
6006 #include <${TOP_DIR}/depkgs/readline/readline.h>
6008 rm -f conftest.$ac_objext
6009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6010 (eval $ac_compile) 2>&5
6012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013 (exit $ac_status); } &&
6014 { ac_try='test -s conftest.$ac_objext'
6015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019 (exit $ac_status); }; }; then
6020 ac_header_compiler=yes
6022 echo "$as_me: failed program was:" >&5
6023 sed 's/^/| /' conftest.$ac_ext >&5
6025 ac_header_compiler=no
6027 rm -f conftest.$ac_objext conftest.$ac_ext
6028 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6029 echo "${ECHO_T}$ac_header_compiler" >&6
6031 # Is the header present?
6032 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
6033 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
6034 cat >conftest.$ac_ext <<_ACEOF
6035 #line $LINENO "configure"
6038 cat confdefs.h >>conftest.$ac_ext
6039 cat >>conftest.$ac_ext <<_ACEOF
6040 /* end confdefs.h. */
6041 #include <${TOP_DIR}/depkgs/readline/readline.h>
6043 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6044 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6046 grep -v '^ *+' conftest.er1 >conftest.err
6048 cat conftest.err >&5
6049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6050 (exit $ac_status); } >/dev/null; then
6051 if test -s conftest.err; then
6052 ac_cpp_err=$ac_c_preproc_warn_flag
6059 if test -z "$ac_cpp_err"; then
6060 ac_header_preproc=yes
6062 echo "$as_me: failed program was:" >&5
6063 sed 's/^/| /' conftest.$ac_ext >&5
6065 ac_header_preproc=no
6067 rm -f conftest.err conftest.$ac_ext
6068 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6069 echo "${ECHO_T}$ac_header_preproc" >&6
6071 # So? What about this header?
6072 case $ac_header_compiler:$ac_header_preproc in
6074 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6075 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6076 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
6077 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6080 ## ------------------------------------ ##
6081 ## Report this to bug-autoconf@gnu.org. ##
6082 ## ------------------------------------ ##
6085 sed "s/^/$as_me: WARNING: /" >&2
6088 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
6089 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
6090 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
6091 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
6092 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
6093 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6096 ## ------------------------------------ ##
6097 ## Report this to bug-autoconf@gnu.org. ##
6098 ## ------------------------------------ ##
6101 sed "s/^/$as_me: WARNING: /" >&2
6104 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
6105 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
6106 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6107 echo $ECHO_N "(cached) $ECHO_C" >&6
6109 eval "$as_ac_Header=$ac_header_preproc"
6111 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6112 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6115 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6116 cat >>confdefs.h <<\_ACEOF
6117 #define HAVE_READLINE 1
6121 CONS_INC="-I${TOP_DIR}/depkgs/readline"
6122 CONS_LIBS="-lreadline -lhistory -ltermcap"
6123 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
6124 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
6128 echo "readline.h not found. readline turned off ..."
6154 # Minimal stuff for readline Makefile configuration
6157 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6158 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
6159 if test "${ac_cv_header_stat_broken+set}" = set; then
6160 echo $ECHO_N "(cached) $ECHO_C" >&6
6162 cat >conftest.$ac_ext <<_ACEOF
6163 #line $LINENO "configure"
6166 cat confdefs.h >>conftest.$ac_ext
6167 cat >>conftest.$ac_ext <<_ACEOF
6168 /* end confdefs.h. */
6169 #include <sys/types.h>
6170 #include <sys/stat.h>
6172 #if defined(S_ISBLK) && defined(S_IFDIR)
6173 # if S_ISBLK (S_IFDIR)
6178 #if defined(S_ISBLK) && defined(S_IFCHR)
6179 # if S_ISBLK (S_IFCHR)
6184 #if defined(S_ISLNK) && defined(S_IFREG)
6185 # if S_ISLNK (S_IFREG)
6190 #if defined(S_ISSOCK) && defined(S_IFREG)
6191 # if S_ISSOCK (S_IFREG)
6197 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6198 $EGREP "You lose" >/dev/null 2>&1; then
6199 ac_cv_header_stat_broken=yes
6201 ac_cv_header_stat_broken=no
6206 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6207 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
6208 if test $ac_cv_header_stat_broken = yes; then
6210 cat >>confdefs.h <<\_ACEOF
6211 #define STAT_MACROS_BROKEN 1
6222 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6223 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6224 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6225 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6226 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6227 echo $ECHO_N "(cached) $ECHO_C" >&6
6229 cat >conftest.$ac_ext <<_ACEOF
6230 #line $LINENO "configure"
6233 cat confdefs.h >>conftest.$ac_ext
6234 cat >>conftest.$ac_ext <<_ACEOF
6235 /* end confdefs.h. */
6236 #include <sys/types.h>
6248 rm -f conftest.$ac_objext
6249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6250 (eval $ac_compile) 2>&5
6252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253 (exit $ac_status); } &&
6254 { ac_try='test -s conftest.$ac_objext'
6255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6259 (exit $ac_status); }; }; then
6260 eval "$as_ac_Header=yes"
6262 echo "$as_me: failed program was:" >&5
6263 sed 's/^/| /' conftest.$ac_ext >&5
6265 eval "$as_ac_Header=no"
6267 rm -f conftest.$ac_objext conftest.$ac_ext
6269 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6270 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6271 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6272 cat >>confdefs.h <<_ACEOF
6273 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6276 ac_header_dirent=$ac_hdr; break
6280 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6281 if test $ac_header_dirent = dirent.h; then
6282 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6283 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6284 if test "${ac_cv_search_opendir+set}" = set; then
6285 echo $ECHO_N "(cached) $ECHO_C" >&6
6287 ac_func_search_save_LIBS=$LIBS
6288 ac_cv_search_opendir=no
6289 cat >conftest.$ac_ext <<_ACEOF
6290 #line $LINENO "configure"
6293 cat confdefs.h >>conftest.$ac_ext
6294 cat >>conftest.$ac_ext <<_ACEOF
6295 /* end confdefs.h. */
6297 /* Override any gcc2 internal prototype to avoid an error. */
6301 /* We use char because int might match the return type of a gcc2
6302 builtin and then its argument prototype would still apply. */
6312 rm -f conftest.$ac_objext conftest$ac_exeext
6313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6314 (eval $ac_link) 2>&5
6316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6317 (exit $ac_status); } &&
6318 { ac_try='test -s conftest$ac_exeext'
6319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6323 (exit $ac_status); }; }; then
6324 ac_cv_search_opendir="none required"
6326 echo "$as_me: failed program was:" >&5
6327 sed 's/^/| /' conftest.$ac_ext >&5
6330 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6331 if test "$ac_cv_search_opendir" = no; then
6332 for ac_lib in dir; do
6333 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6334 cat >conftest.$ac_ext <<_ACEOF
6335 #line $LINENO "configure"
6338 cat confdefs.h >>conftest.$ac_ext
6339 cat >>conftest.$ac_ext <<_ACEOF
6340 /* end confdefs.h. */
6342 /* Override any gcc2 internal prototype to avoid an error. */
6346 /* We use char because int might match the return type of a gcc2
6347 builtin and then its argument prototype would still apply. */
6357 rm -f conftest.$ac_objext conftest$ac_exeext
6358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6359 (eval $ac_link) 2>&5
6361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362 (exit $ac_status); } &&
6363 { ac_try='test -s conftest$ac_exeext'
6364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368 (exit $ac_status); }; }; then
6369 ac_cv_search_opendir="-l$ac_lib"
6372 echo "$as_me: failed program was:" >&5
6373 sed 's/^/| /' conftest.$ac_ext >&5
6376 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6379 LIBS=$ac_func_search_save_LIBS
6381 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6382 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6383 if test "$ac_cv_search_opendir" != no; then
6384 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6389 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6390 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6391 if test "${ac_cv_search_opendir+set}" = set; then
6392 echo $ECHO_N "(cached) $ECHO_C" >&6
6394 ac_func_search_save_LIBS=$LIBS
6395 ac_cv_search_opendir=no
6396 cat >conftest.$ac_ext <<_ACEOF
6397 #line $LINENO "configure"
6400 cat confdefs.h >>conftest.$ac_ext
6401 cat >>conftest.$ac_ext <<_ACEOF
6402 /* end confdefs.h. */
6404 /* Override any gcc2 internal prototype to avoid an error. */
6408 /* We use char because int might match the return type of a gcc2
6409 builtin and then its argument prototype would still apply. */
6419 rm -f conftest.$ac_objext conftest$ac_exeext
6420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6421 (eval $ac_link) 2>&5
6423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6424 (exit $ac_status); } &&
6425 { ac_try='test -s conftest$ac_exeext'
6426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430 (exit $ac_status); }; }; then
6431 ac_cv_search_opendir="none required"
6433 echo "$as_me: failed program was:" >&5
6434 sed 's/^/| /' conftest.$ac_ext >&5
6437 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6438 if test "$ac_cv_search_opendir" = no; then
6440 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6441 cat >conftest.$ac_ext <<_ACEOF
6442 #line $LINENO "configure"
6445 cat confdefs.h >>conftest.$ac_ext
6446 cat >>conftest.$ac_ext <<_ACEOF
6447 /* end confdefs.h. */
6449 /* Override any gcc2 internal prototype to avoid an error. */
6453 /* We use char because int might match the return type of a gcc2
6454 builtin and then its argument prototype would still apply. */
6464 rm -f conftest.$ac_objext conftest$ac_exeext
6465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6466 (eval $ac_link) 2>&5
6468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6469 (exit $ac_status); } &&
6470 { ac_try='test -s conftest$ac_exeext'
6471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6475 (exit $ac_status); }; }; then
6476 ac_cv_search_opendir="-l$ac_lib"
6479 echo "$as_me: failed program was:" >&5
6480 sed 's/^/| /' conftest.$ac_ext >&5
6483 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6486 LIBS=$ac_func_search_save_LIBS
6488 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6489 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6490 if test "$ac_cv_search_opendir" != no; then
6491 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6505 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
6507 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6508 echo "$as_me:$LINENO: checking for $ac_func" >&5
6509 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6510 if eval "test \"\${$as_ac_var+set}\" = set"; then
6511 echo $ECHO_N "(cached) $ECHO_C" >&6
6513 cat >conftest.$ac_ext <<_ACEOF
6514 #line $LINENO "configure"
6517 cat confdefs.h >>conftest.$ac_ext
6518 cat >>conftest.$ac_ext <<_ACEOF
6519 /* end confdefs.h. */
6520 /* System header to define __stub macros and hopefully few prototypes,
6521 which can conflict with char $ac_func (); below.
6522 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6523 <limits.h> exists even on freestanding compilers. */
6525 # include <limits.h>
6527 # include <assert.h>
6529 /* Override any gcc2 internal prototype to avoid an error. */
6534 /* We use char because int might match the return type of a gcc2
6535 builtin and then its argument prototype would still apply. */
6537 /* The GNU C library defines this for functions which it implements
6538 to always fail with ENOSYS. Some functions are actually named
6539 something starting with __ and the normal name is an alias. */
6540 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6543 char (*f) () = $ac_func;
6552 return f != $ac_func;
6557 rm -f conftest.$ac_objext conftest$ac_exeext
6558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6559 (eval $ac_link) 2>&5
6561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562 (exit $ac_status); } &&
6563 { ac_try='test -s conftest$ac_exeext'
6564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6568 (exit $ac_status); }; }; then
6569 eval "$as_ac_var=yes"
6571 echo "$as_me: failed program was:" >&5
6572 sed 's/^/| /' conftest.$ac_ext >&5
6574 eval "$as_ac_var=no"
6576 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6578 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6579 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6580 if test `eval echo '${'$as_ac_var'}'` = yes; then
6581 cat >>confdefs.h <<_ACEOF
6582 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6590 for ac_func in nanosleep nl_langinfo
6592 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6593 echo "$as_me:$LINENO: checking for $ac_func" >&5
6594 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6595 if eval "test \"\${$as_ac_var+set}\" = set"; then
6596 echo $ECHO_N "(cached) $ECHO_C" >&6
6598 cat >conftest.$ac_ext <<_ACEOF
6599 #line $LINENO "configure"
6602 cat confdefs.h >>conftest.$ac_ext
6603 cat >>conftest.$ac_ext <<_ACEOF
6604 /* end confdefs.h. */
6605 /* System header to define __stub macros and hopefully few prototypes,
6606 which can conflict with char $ac_func (); below.
6607 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6608 <limits.h> exists even on freestanding compilers. */
6610 # include <limits.h>
6612 # include <assert.h>
6614 /* Override any gcc2 internal prototype to avoid an error. */
6619 /* We use char because int might match the return type of a gcc2
6620 builtin and then its argument prototype would still apply. */
6622 /* The GNU C library defines this for functions which it implements
6623 to always fail with ENOSYS. Some functions are actually named
6624 something starting with __ and the normal name is an alias. */
6625 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6628 char (*f) () = $ac_func;
6637 return f != $ac_func;
6642 rm -f conftest.$ac_objext conftest$ac_exeext
6643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6644 (eval $ac_link) 2>&5
6646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6647 (exit $ac_status); } &&
6648 { ac_try='test -s conftest$ac_exeext'
6649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6653 (exit $ac_status); }; }; then
6654 eval "$as_ac_var=yes"
6656 echo "$as_me: failed program was:" >&5
6657 sed 's/^/| /' conftest.$ac_ext >&5
6659 eval "$as_ac_var=no"
6661 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6663 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6664 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6665 if test `eval echo '${'$as_ac_var'}'` = yes; then
6666 cat >>confdefs.h <<_ACEOF
6667 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6674 for ac_header in varargs.h
6676 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6677 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6678 echo "$as_me:$LINENO: checking for $ac_header" >&5
6679 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6680 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6681 echo $ECHO_N "(cached) $ECHO_C" >&6
6683 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6684 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6686 # Is the header compilable?
6687 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6688 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6689 cat >conftest.$ac_ext <<_ACEOF
6690 #line $LINENO "configure"
6693 cat confdefs.h >>conftest.$ac_ext
6694 cat >>conftest.$ac_ext <<_ACEOF
6695 /* end confdefs.h. */
6696 $ac_includes_default
6697 #include <$ac_header>
6699 rm -f conftest.$ac_objext
6700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6701 (eval $ac_compile) 2>&5
6703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6704 (exit $ac_status); } &&
6705 { ac_try='test -s conftest.$ac_objext'
6706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6710 (exit $ac_status); }; }; then
6711 ac_header_compiler=yes
6713 echo "$as_me: failed program was:" >&5
6714 sed 's/^/| /' conftest.$ac_ext >&5
6716 ac_header_compiler=no
6718 rm -f conftest.$ac_objext conftest.$ac_ext
6719 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6720 echo "${ECHO_T}$ac_header_compiler" >&6
6722 # Is the header present?
6723 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6724 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6725 cat >conftest.$ac_ext <<_ACEOF
6726 #line $LINENO "configure"
6729 cat confdefs.h >>conftest.$ac_ext
6730 cat >>conftest.$ac_ext <<_ACEOF
6731 /* end confdefs.h. */
6732 #include <$ac_header>
6734 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6735 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6737 grep -v '^ *+' conftest.er1 >conftest.err
6739 cat conftest.err >&5
6740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6741 (exit $ac_status); } >/dev/null; then
6742 if test -s conftest.err; then
6743 ac_cpp_err=$ac_c_preproc_warn_flag
6750 if test -z "$ac_cpp_err"; then
6751 ac_header_preproc=yes
6753 echo "$as_me: failed program was:" >&5
6754 sed 's/^/| /' conftest.$ac_ext >&5
6756 ac_header_preproc=no
6758 rm -f conftest.err conftest.$ac_ext
6759 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6760 echo "${ECHO_T}$ac_header_preproc" >&6
6762 # So? What about this header?
6763 case $ac_header_compiler:$ac_header_preproc in
6765 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6766 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6767 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6768 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6771 ## ------------------------------------ ##
6772 ## Report this to bug-autoconf@gnu.org. ##
6773 ## ------------------------------------ ##
6776 sed "s/^/$as_me: WARNING: /" >&2
6779 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6780 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6781 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6782 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6783 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6784 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6787 ## ------------------------------------ ##
6788 ## Report this to bug-autoconf@gnu.org. ##
6789 ## ------------------------------------ ##
6792 sed "s/^/$as_me: WARNING: /" >&2
6795 echo "$as_me:$LINENO: checking for $ac_header" >&5
6796 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6797 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6798 echo $ECHO_N "(cached) $ECHO_C" >&6
6800 eval "$as_ac_Header=$ac_header_preproc"
6802 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6803 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6806 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6807 cat >>confdefs.h <<_ACEOF
6808 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6816 # End of readline/conio stuff
6817 # -----------------------------------------------------------------------
6819 # -------------------------------------------
6820 # check for cdrecord writer location
6821 # get scsibus,target,lun
6822 # -------------------------------------------
6824 if test ! x$CDRECORD = x ; then
6825 CDSTL=`${CDRECORD} -scanbus 2>/dev/null | grep CD-RW | ${AWK} '{print $1}'`
6826 if test x${CDSTL} = x ; then
6827 CDSTL=`${CDRECORD} -scanbus 2>/dev/null | grep CD+RW | ${AWK} '{print $1}'`
6829 if test x${CDSTL} = x ; then
6836 # ---------------------------------------------------
6837 # Check for GMP support/directory
6838 # ---------------------------------------------------
6842 # [ --with-gmp[=DIR] Specify gmp library directory],
6844 # case "$with_gmp" in
6847 # if test "$with_gmp" != "yes"; then
6848 # GMP_INC="-I$with_gmp"
6850 # GMP_LDFLAGS="-L$with_gmp"
6852 # with_gmp="/usr/include"
6854 # AC_CHECK_HEADER($with_gmp/gmp.h,
6855 # [ AC_MSG_RESULT(yes)
6856 # AC_DEFINE(HAVE_GMP)
6860 # [ AC_MSG_ERROR([*** gmp library missing])
6866 # # check for standard gmp library
6867 # AC_CHECK_HEADER(/usr/include/gmp.h,
6868 # [ AC_MSG_RESULT(yes)
6869 # AC_DEFINE(HAVE_GMP)
6874 # # Did not find standard library, so use our own
6875 # AC_MSG_RESULT(yes)
6876 # AC_DEFINE(HAVE_GMP)
6879 # GMP_INC="-I${TOP_DIR}/depkgs/gmp"
6881 # GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
6882 # GMP_SRC="${TOP_DIR}/depkgs/gmp"
6888 #AC_SUBST(GMP_LDFLAGS)
6892 # -----------------------------------------------------------------------
6895 # ---------------------------------------------------
6896 # Check for CWEB support/directory
6897 # ---------------------------------------------------
6902 # [ --with-cweb[=DIR] Specify cweb library directory],
6904 # case "$with_cweb" in
6907 # if test "$with_cweb" != "yes"; then
6908 # CWEB_INC="-I$with_cweb"
6909 # CWEB_LIBS="-lcweb"
6910 # CWEB_LDFLAGS="-L$with_cweb"
6912 # with_cweb="/usr/include"
6914 # AC_CHECK_HEADER($with_cweb/cweb.h,
6915 # [ AC_MSG_RESULT(yes)
6916 # AC_DEFINE(HAVE_CWEB)
6917 # CWEB_LIBS="-lcweb"
6920 # [ AC_MSG_ERROR([*** cweb library missing])
6926 # # check for standard cweb library
6927 # AC_CHECK_HEADER(/usr/include/cweb.h,
6928 # [ AC_MSG_RESULT(yes)
6929 # AC_DEFINE(HAVE_CWEB)
6932 # CWEB_LIBS="-lcweb"
6934 # # Did not find starndard library, so use our own
6935 # AC_MSG_RESULT(yes)
6936 # AC_DEFINE(HAVE_CWEB)
6939 # CWEB=${TOP_DIR}/depkgs/cweb
6940 # CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
6941 # CWEB_LIBS="-lcweb"
6942 # CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
6943 # CWEB_SRC="${TOP_DIR}/depkgs/cweb"
6949 #AC_SUBST(CWEB_LIBS)
6950 #AC_SUBST(CWEB_LDFLAGS)
6954 # -----------------------------------------------------------------------
6958 # -----------------------------------------------------------
6959 # Check whether user wants TCP wrappers support (default off)
6960 # -----------------------------------------------------------
6963 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
6964 if test "${with_tcp_wrappers+set}" = set; then
6965 withval="$with_tcp_wrappers"
6967 if test "x$withval" != "xno" ; then
6969 LIBS="$saved_LIBS -lwrap"
6970 echo "$as_me:$LINENO: checking for libwrap" >&5
6971 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
6972 cat >conftest.$ac_ext <<_ACEOF
6973 #line $LINENO "configure"
6976 cat confdefs.h >>conftest.$ac_ext
6977 cat >>conftest.$ac_ext <<_ACEOF
6978 /* end confdefs.h. */
6980 int deny_severity = 0;
6981 int allow_severity = 0;
6982 struct request_info *req;
6991 rm -f conftest.$ac_objext conftest$ac_exeext
6992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6993 (eval $ac_link) 2>&5
6995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6996 (exit $ac_status); } &&
6997 { ac_try='test -s conftest$ac_exeext'
6998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7002 (exit $ac_status); }; }; then
7004 echo "$as_me:$LINENO: result: yes" >&5
7005 echo "${ECHO_T}yes" >&6
7006 cat >>confdefs.h <<\_ACEOF
7007 #define HAVE_LIBWRAP 1
7013 echo "$as_me: failed program was:" >&5
7014 sed 's/^/| /' conftest.$ac_ext >&5
7017 LIBS="$saved_LIBS -lwrap -lnsl"
7018 cat >conftest.$ac_ext <<_ACEOF
7019 #line $LINENO "configure"
7022 cat confdefs.h >>conftest.$ac_ext
7023 cat >>conftest.$ac_ext <<_ACEOF
7024 /* end confdefs.h. */
7026 int deny_severity = 0;
7027 int allow_severity = 0;
7028 struct request_info *req;
7037 rm -f conftest.$ac_objext conftest$ac_exeext
7038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7039 (eval $ac_link) 2>&5
7041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7042 (exit $ac_status); } &&
7043 { ac_try='test -s conftest$ac_exeext'
7044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7048 (exit $ac_status); }; }; then
7050 echo "$as_me:$LINENO: result: yes" >&5
7051 echo "${ECHO_T}yes" >&6
7052 cat >>confdefs.h <<\_ACEOF
7053 #define HAVE_LIBWRAP 1
7059 echo "$as_me: failed program was:" >&5
7060 sed 's/^/| /' conftest.$ac_ext >&5
7062 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
7063 echo "$as_me: error: *** libwrap missing" >&2;}
7064 { (exit 1); exit 1; }; }
7067 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7070 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7076 # ------------------------------------------
7077 # Where to place working dir
7078 # ------------------------------------------
7079 working_dir=`eval echo ${prefix}/var/bacula/working`
7081 # Check whether --with-working-dir or --without-working-dir was given.
7082 if test "${with_working_dir+set}" = set; then
7083 withval="$with_working_dir"
7085 if test "x$withval" != "xno" ; then
7086 working_dir=$withval
7095 # ------------------------------------------
7096 # Where to place scriptdir (script files)
7097 # ------------------------------------------
7098 scriptdir=`eval echo ${sysconfdir}`
7100 # Check whether --with-scriptdir or --without-scriptdir was given.
7101 if test "${with_scriptdir+set}" = set; then
7102 withval="$with_scriptdir"
7104 if test "x$withval" != "xno" ; then
7114 # ------------------------------------------
7115 # Where to send dump email
7116 # ------------------------------------------
7117 dump_email=root@localhost
7119 # Check whether --with-dump-email or --without-dump-email was given.
7120 if test "${with_dump_email+set}" = set; then
7121 withval="$with_dump_email"
7123 if test "x$withval" != "xno" ; then
7132 # ------------------------------------------
7133 # Where to send job email
7134 # ------------------------------------------
7135 job_email=root@localhost
7137 # Check whether --with-job-email or --without-job-email was given.
7138 if test "${with_job_email+set}" = set; then
7139 withval="$with_job_email"
7141 if test "x$withval" != "xno" ; then
7150 # ------------------------------------------
7151 # Where to find smtp host
7152 # ------------------------------------------
7155 # Check whether --with-smtp_host or --without-smtp_host was given.
7156 if test "${with_smtp_host+set}" = set; then
7157 withval="$with_smtp_host"
7159 if test "x$withval" != "xno" ; then
7169 # ------------------------------------
7170 # Where to place pid files
7171 # ------------------------------------
7174 # Check whether --with-pid-dir or --without-pid-dir was given.
7175 if test "${with_pid_dir+set}" = set; then
7176 withval="$with_pid_dir"
7178 if test "x$withval" != "xno" ; then
7185 cat >>confdefs.h <<_ACEOF
7186 #define _PATH_BACULA_PIDDIR "$piddir"
7192 # ------------------------------------
7193 # Where to place subsys "lock file"
7194 # ------------------------------------
7195 subsysdir=/var/run/subsys
7197 # Check whether --with-subsys-dir or --without-subsys-dir was given.
7198 if test "${with_subsys_dir+set}" = set; then
7199 withval="$with_subsys_dir"
7201 if test "x$withval" != "xno" ; then
7212 # ------------------------------------
7213 # Where to start assigning ports
7214 # ------------------------------------
7217 # Check whether --with-baseport or --without-baseport was given.
7218 if test "${with_baseport+set}" = set; then
7219 withval="$with_baseport"
7221 if test "x$withval" != "xno" ; then
7229 dir_port=`expr $baseport`
7230 fd_port=`expr $baseport + 1`
7231 sd_port=`expr $fd_port + 1`
7238 # ------------------------------------------
7239 # Generate passwords
7240 # ------------------------------------------
7243 # Check whether --with-dir-password or --without-dir-password was given.
7244 if test "${with_dir_password+set}" = set; then
7245 withval="$with_dir_password"
7247 if test "x$withval" != "xno" ; then
7248 dir_password=$withval
7254 if test "x$dir_password" = "x" ; then
7255 if test "x$OPENSSL" = "xnone" ; then
7256 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
7257 key=`autoconf/randpass 33`
7259 key=`openssl rand -base64 33`
7266 # Check whether --with-fd-password or --without-fd-password was given.
7267 if test "${with_fd_password+set}" = set; then
7268 withval="$with_fd_password"
7270 if test "x$withval" != "xno" ; then
7271 fd_password=$withval
7277 if test "x$fd_password" = "x" ; then
7278 if test "x$OPENSSL" = "xnone" ; then
7279 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
7280 key=`autoconf/randpass 37`
7282 key=`openssl rand -base64 33`
7289 # Check whether --with-sd-password or --without-sd-password was given.
7290 if test "${with_sd_password+set}" = set; then
7291 withval="$with_sd_password"
7293 if test "x$withval" != "xno" ; then
7294 sd_password=$withval
7300 if test "x$sd_password" = "x" ; then
7301 if test "x$OPENSSL" = "xnone" ; then
7302 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
7303 key=`autoconf/randpass 41`
7305 key=`openssl rand -base64 33`
7312 # Check whether --with-mon-dir-password or --without-mon-dir-password was given.
7313 if test "${with_mon_dir_password+set}" = set; then
7314 withval="$with_mon_dir_password"
7316 if test "x$withval" != "xno" ; then
7317 mon_dir_password=$withval
7323 if test "x$mon_dir_password" = "x" ; then
7324 if test "x$OPENSSL" = "xnone" ; then
7325 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
7326 key=`autoconf/randpass 33`
7328 key=`openssl rand -base64 33`
7330 mon_dir_password=$key
7335 # Check whether --with-mon-fd-password or --without-mon-fd-password was given.
7336 if test "${with_mon_fd_password+set}" = set; then
7337 withval="$with_mon_fd_password"
7339 if test "x$withval" != "xno" ; then
7340 mon_fd_password=$withval
7346 if test "x$mon_fd_password" = "x" ; then
7347 if test "x$OPENSSL" = "xnone" ; then
7348 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
7349 key=`autoconf/randpass 37`
7351 key=`openssl rand -base64 33`
7353 mon_fd_password=$key
7358 # Check whether --with-mon-sd-password or --without-mon-sd-password was given.
7359 if test "${with_mon_sd_password+set}" = set; then
7360 withval="$with_mon_sd_password"
7362 if test "x$withval" != "xno" ; then
7363 mon_sd_password=$withval
7369 if test "x$mon_sd_password" = "x" ; then
7370 if test "x$OPENSSL" = "xnone" ; then
7371 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
7372 key=`autoconf/randpass 41`
7374 key=`openssl rand -base64 33`
7376 mon_sd_password=$key
7387 # Handle users and groups for each daemon
7391 # Check whether --with-dir_user or --without-dir_user was given.
7392 if test "${with_dir_user+set}" = set; then
7393 withval="$with_dir_user"
7395 if test "x$withval" != "x" ; then
7404 # Check whether --with-dir_group or --without-dir_group was given.
7405 if test "${with_dir_group+set}" = set; then
7406 withval="$with_dir_group"
7408 if test "x$withval" != "x" ; then
7417 # Check whether --with-sd_user or --without-sd_user was given.
7418 if test "${with_sd_user+set}" = set; then
7419 withval="$with_sd_user"
7421 if test "x$withval" != "x" ; then
7430 # Check whether --with-sd_group or --without-sd_group was given.
7431 if test "${with_sd_group+set}" = set; then
7432 withval="$with_sd_group"
7434 if test "x$withval" != "x" ; then
7443 # Check whether --with-fd_user or --without-fd_user was given.
7444 if test "${with_fd_user+set}" = set; then
7445 withval="$with_fd_user"
7447 if test "x$withval" != "x" ; then
7456 # Check whether --with-fd_group or --without-fd_group was given.
7457 if test "${with_fd_group+set}" = set; then
7458 withval="$with_fd_group"
7460 if test "x$withval" != "x" ; then
7478 # allow setting default executable permissions
7482 # Check whether --with-sbin-perm or --without-sbin-perm was given.
7483 if test "${with_sbin_perm+set}" = set; then
7484 withval="$with_sbin_perm"
7486 if test "x$withval" != "x" ; then
7495 # ------------------------------------------------
7496 # Bacula check for various SQL database engines
7497 # ------------------------------------------------
7500 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
7501 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
7503 # Check whether --with-postgresql or --without-postgresql was given.
7504 if test "${with_postgresql+set}" = set; then
7505 withval="$with_postgresql"
7507 if test "$withval" != "no"; then
7508 if test "$db_found" = "yes"; then
7509 echo "$as_me:$LINENO: result: error" >&5
7510 echo "${ECHO_T}error" >&6
7511 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
7512 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
7513 { (exit 1); exit 1; }; };
7515 if test "$withval" = "yes"; then
7516 if test -f /usr/local/include/libpq-fe.h; then
7517 POSTGRESQL_INCDIR=/usr/local/include
7518 POSTGRESQL_LIBDIR=/usr/local/lib
7519 POSTGRESQL_BINDIR=/usr/local/bin
7520 elif test -f /usr/include/libpq-fe.h; then
7521 POSTGRESQL_INCDIR=/usr/include
7522 POSTGRESQL_LIBDIR=/usr/lib
7523 POSTGRESQL_BINDIR=/usr/bin
7524 elif test -f /usr/include/pgsql/libpq-fe.h; then
7525 POSTGRESQL_INCDIR=/usr/include/pgsql
7526 POSTGRESQL_LIBDIR=/usr/lib/pgsql
7527 POSTGRESQL_BINDIR=/usr/bin
7528 elif test -f /usr/include/postgresql/libpq-fe.h; then
7529 POSTGRESQL_INCDIR=/usr/include/postgresql
7530 POSTGRESQL_LIBDIR=/usr/lib/postgresql
7531 POSTGRESQL_BINDIR=/usr/bin
7533 echo "$as_me:$LINENO: result: no" >&5
7534 echo "${ECHO_T}no" >&6
7535 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
7536 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
7537 { (exit 1); exit 1; }; }
7539 elif test -f $withval/include/libpq-fe.h; then
7540 POSTGRESQL_INCDIR=$withval/include
7541 POSTGRESQL_LIBDIR=$withval/lib
7542 POSTGRESQL_BINDIR=$withval/bin
7544 echo "$as_me:$LINENO: result: no" >&5
7545 echo "${ECHO_T}no" >&6
7546 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
7547 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
7548 { (exit 1); exit 1; }; }
7550 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
7551 echo "$as_me:$LINENO: checking for crypt" >&5
7552 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
7553 if test "${ac_cv_func_crypt+set}" = set; then
7554 echo $ECHO_N "(cached) $ECHO_C" >&6
7556 cat >conftest.$ac_ext <<_ACEOF
7557 #line $LINENO "configure"
7560 cat confdefs.h >>conftest.$ac_ext
7561 cat >>conftest.$ac_ext <<_ACEOF
7562 /* end confdefs.h. */
7563 /* System header to define __stub macros and hopefully few prototypes,
7564 which can conflict with char crypt (); below.
7565 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7566 <limits.h> exists even on freestanding compilers. */
7568 # include <limits.h>
7570 # include <assert.h>
7572 /* Override any gcc2 internal prototype to avoid an error. */
7577 /* We use char because int might match the return type of a gcc2
7578 builtin and then its argument prototype would still apply. */
7580 /* The GNU C library defines this for functions which it implements
7581 to always fail with ENOSYS. Some functions are actually named
7582 something starting with __ and the normal name is an alias. */
7583 #if defined (__stub_crypt) || defined (__stub___crypt)
7586 char (*f) () = crypt;
7600 rm -f conftest.$ac_objext conftest$ac_exeext
7601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7602 (eval $ac_link) 2>&5
7604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7605 (exit $ac_status); } &&
7606 { ac_try='test -s conftest$ac_exeext'
7607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7611 (exit $ac_status); }; }; then
7612 ac_cv_func_crypt=yes
7614 echo "$as_me: failed program was:" >&5
7615 sed 's/^/| /' conftest.$ac_ext >&5
7619 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7621 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
7622 echo "${ECHO_T}$ac_cv_func_crypt" >&6
7623 if test $ac_cv_func_crypt = yes; then
7626 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
7627 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
7628 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
7629 echo $ECHO_N "(cached) $ECHO_C" >&6
7631 ac_check_lib_save_LIBS=$LIBS
7632 LIBS="-lcrypt $LIBS"
7633 cat >conftest.$ac_ext <<_ACEOF
7634 #line $LINENO "configure"
7637 cat confdefs.h >>conftest.$ac_ext
7638 cat >>conftest.$ac_ext <<_ACEOF
7639 /* end confdefs.h. */
7641 /* Override any gcc2 internal prototype to avoid an error. */
7645 /* We use char because int might match the return type of a gcc2
7646 builtin and then its argument prototype would still apply. */
7656 rm -f conftest.$ac_objext conftest$ac_exeext
7657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7658 (eval $ac_link) 2>&5
7660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7661 (exit $ac_status); } &&
7662 { ac_try='test -s conftest$ac_exeext'
7663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7667 (exit $ac_status); }; }; then
7668 ac_cv_lib_crypt_crypt=yes
7670 echo "$as_me: failed program was:" >&5
7671 sed 's/^/| /' conftest.$ac_ext >&5
7673 ac_cv_lib_crypt_crypt=no
7675 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7676 LIBS=$ac_check_lib_save_LIBS
7678 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
7679 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
7680 if test $ac_cv_lib_crypt_crypt = yes; then
7681 POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
7686 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
7687 SQL_LFLAGS=$POSTGRESQL_LFLAGS
7688 SQL_BINDIR=$POSTGRESQL_BINDIR
7689 cat >>confdefs.h <<\_ACEOF
7690 #define HAVE_POSTGRESQL 1
7693 echo "$as_me:$LINENO: result: yes" >&5
7694 echo "${ECHO_T}yes" >&6
7696 support_postgresql=yes
7700 echo "$as_me:$LINENO: result: no" >&5
7701 echo "${ECHO_T}no" >&6
7706 echo "$as_me:$LINENO: result: no" >&5
7707 echo "${ECHO_T}no" >&6
7718 echo "$as_me:$LINENO: checking for MySQL support" >&5
7719 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
7721 # Check whether --with-mysql or --without-mysql was given.
7722 if test "${with_mysql+set}" = set; then
7723 withval="$with_mysql"
7725 if test "$withval" != "no"; then
7726 if test "$withval" = "yes"; then
7727 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7728 MYSQL_INCDIR=/usr/local/mysql/include/mysql
7729 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7730 MYSQL_BINDIR=/usr/local/mysql/bin
7731 elif test -f /usr/include/mysql/mysql.h; then
7732 MYSQL_INCDIR=/usr/include/mysql
7733 MYSQL_LIBDIR=/usr/lib/mysql
7734 MYSQL_BINDIR=/usr/bin
7735 elif test -f /usr/include/mysql.h; then
7736 MYSQL_INCDIR=/usr/include
7737 MYSQL_LIBDIR=/usr/lib
7738 MYSQL_BINDIR=/usr/bin
7739 elif test -f /usr/local/include/mysql/mysql.h; then
7740 MYSQL_INCDIR=/usr/local/include/mysql
7741 MYSQL_LIBDIR=/usr/local/lib/mysql
7742 MYSQL_BINDIR=/usr/local/bin
7743 elif test -f /usr/local/include/mysql.h; then
7744 MYSQL_INCDIR=/usr/local/include
7745 MYSQL_LIBDIR=/usr/local/lib
7746 MYSQL_BINDIR=/usr/local/bin
7748 echo "$as_me:$LINENO: result: no" >&5
7749 echo "${ECHO_T}no" >&6
7750 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7751 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7752 { (exit 1); exit 1; }; }
7755 if test -f $withval/include/mysql/mysql.h; then
7756 MYSQL_INCDIR=$withval/include/mysql
7757 MYSQL_LIBDIR=$withval/lib/mysql
7758 MYSQL_BINDIR=$withval/bin
7759 elif test -f $withval/include/mysql.h; then
7760 MYSQL_INCDIR=$withval/include
7761 MYSQL_LIBDIR=$withval/lib
7762 MYSQL_BINDIR=$withval/bin
7764 echo "$as_me:$LINENO: result: no" >&5
7765 echo "${ECHO_T}no" >&6
7766 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7767 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7768 { (exit 1); exit 1; }; }
7771 SQL_INCLUDE=-I$MYSQL_INCDIR
7772 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
7773 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
7774 cat >>confdefs.h <<\_ACEOF
7775 #define HAVE_THREAD_SAFE_MYSQL 1
7779 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
7781 SQL_BINDIR=$MYSQL_BINDIR
7783 cat >>confdefs.h <<\_ACEOF
7784 #define HAVE_MYSQL 1
7787 echo "$as_me:$LINENO: result: yes" >&5
7788 echo "${ECHO_T}yes" >&6
7795 echo "$as_me:$LINENO: result: no" >&5
7796 echo "${ECHO_T}no" >&6
7803 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
7804 if test "${with_embedded_mysql+set}" = set; then
7805 withval="$with_embedded_mysql"
7807 if test "$withval" != "no"; then
7808 if test "$withval" = "yes"; then
7809 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7810 MYSQL_INCDIR=/usr/local/mysql/include/mysql
7811 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7812 MYSQL_BINDIR=/usr/local/mysql/bin
7813 elif test -f /usr/include/mysql/mysql.h; then
7814 MYSQL_INCDIR=/usr/include/mysql
7815 MYSQL_LIBDIR=/usr/lib/mysql
7816 MYSQL_BINDIR=/usr/bin
7817 elif test -f /usr/include/mysql.h; then
7818 MYSQL_INCDIR=/usr/include
7819 MYSQL_LIBDIR=/usr/lib
7820 MYSQL_BINDIR=/usr/bin
7821 elif test -f /usr/local/include/mysql/mysql.h; then
7822 MYSQL_INCDIR=/usr/local/include/mysql
7823 MYSQL_LIBDIR=/usr/local/lib/mysql
7824 MYSQL_BINDIR=/usr/local/bin
7825 elif test -f /usr/local/include/mysql.h; then
7826 MYSQL_INCDIR=/usr/local/include
7827 MYSQL_LIBDIR=/usr/local/lib
7828 MYSQL_BINDIR=/usr/local/bin
7830 echo "$as_me:$LINENO: result: no" >&5
7831 echo "${ECHO_T}no" >&6
7832 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7833 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7834 { (exit 1); exit 1; }; }
7837 if test -f $withval/include/mysql/mysql.h; then
7838 MYSQL_INCDIR=$withval/include/mysql
7839 MYSQL_LIBDIR=$withval/lib/mysql
7840 MYSQL_BINDIR=$withval/bin
7841 elif test -f $withval/include/mysql.h; then
7842 MYSQL_INCDIR=$withval/include
7843 MYSQL_LIBDIR=$withval/lib
7844 MYSQL_BINDIR=$withval/bin
7846 echo "$as_me:$LINENO: result: no" >&5
7847 echo "${ECHO_T}no" >&6
7848 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7849 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7850 { (exit 1); exit 1; }; }
7853 SQL_INCLUDE=-I$MYSQL_INCDIR
7854 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
7855 SQL_BINDIR=$MYSQL_BINDIR
7857 cat >>confdefs.h <<\_ACEOF
7858 #define HAVE_MYSQL 1
7861 cat >>confdefs.h <<\_ACEOF
7862 #define HAVE_EMBEDDED_MYSQL 1
7865 echo "$as_me:$LINENO: result: yes" >&5
7866 echo "${ECHO_T}yes" >&6
7873 echo "$as_me:$LINENO: result: no" >&5
7874 echo "${ECHO_T}no" >&6
7889 echo "$as_me:$LINENO: checking for SQLite support" >&5
7890 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
7892 # Check whether --with-sqlite or --without-sqlite was given.
7893 if test "${with_sqlite+set}" = set; then
7894 withval="$with_sqlite"
7896 if test "$withval" != "no"; then
7897 if test "$withval" = "yes"; then
7898 if test -f /usr/local/include/sqlite.h; then
7899 SQLITE_INCDIR=/usr/local/include
7900 SQLITE_LIBDIR=/usr/local/lib
7901 SQLITE_BINDIR=/usr/local/bin
7902 elif test -f /usr/include/sqlite.h; then
7903 SQLITE_INCDIR=/usr/include
7904 SQLITE_LIBDIR=/usr/lib
7905 SQLITE_BINDIR=/usr/bin
7906 elif test -f $prefix/include/sqlite.h; then
7907 SQLITE_INCDIR=$prefix/include
7908 SQLITE_LIBDIR=$prefix/lib
7909 SQLITE_BINDIR=$prefix/bin
7911 echo "$as_me:$LINENO: result: no" >&5
7912 echo "${ECHO_T}no" >&6
7913 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
7914 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
7915 { (exit 1); exit 1; }; }
7918 if test -f $withval/sqlite.h; then
7919 SQLITE_INCDIR=$withval
7920 SQLITE_LIBDIR=$withval
7921 SQLITE_BINDIR=$withval
7922 elif test -f $withval/include/sqlite.h; then
7923 SQLITE_INCDIR=$withval/include
7924 SQLITE_LIBDIR=$withval/lib
7925 SQLITE_BINDIR=$withval/bin
7927 echo "$as_me:$LINENO: result: no" >&5
7928 echo "${ECHO_T}no" >&6
7929 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
7930 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
7931 { (exit 1); exit 1; }; }
7934 SQL_INCLUDE=-I$SQLITE_INCDIR
7935 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
7936 SQL_BINDIR=$SQLITE_BINDIR
7938 cat >>confdefs.h <<\_ACEOF
7939 #define HAVE_SQLITE 1
7942 echo "$as_me:$LINENO: result: yes" >&5
7943 echo "${ECHO_T}yes" >&6
7950 echo "$as_me:$LINENO: result: no" >&5
7951 echo "${ECHO_T}no" >&6
7956 echo "$as_me:$LINENO: result: no" >&5
7957 echo "${ECHO_T}no" >&6
7969 cat >>confdefs.h <<\_ACEOF
7970 #define PROTOTYPES 1
7974 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
7975 if test -z "$CCOPTS"; then
7976 CCOPTS='-g -O2 -Wall'
7984 largefile_support="no"
7986 # Check whether --enable-largefile or --disable-largefile was given.
7987 if test "${enable_largefile+set}" = set; then
7988 enableval="$enable_largefile"
7991 if test "$enable_largefile" != no; then
7992 if test -n "$ac_tool_prefix"; then
7993 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
7994 set dummy ${ac_tool_prefix}getconf; ac_word=$2
7995 echo "$as_me:$LINENO: checking for $ac_word" >&5
7996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7997 if test "${ac_cv_prog_GETCONF+set}" = set; then
7998 echo $ECHO_N "(cached) $ECHO_C" >&6
8000 if test -n "$GETCONF"; then
8001 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
8003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8007 test -z "$as_dir" && as_dir=.
8008 for ac_exec_ext in '' $ac_executable_extensions; do
8009 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8010 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
8011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8019 GETCONF=$ac_cv_prog_GETCONF
8020 if test -n "$GETCONF"; then
8021 echo "$as_me:$LINENO: result: $GETCONF" >&5
8022 echo "${ECHO_T}$GETCONF" >&6
8024 echo "$as_me:$LINENO: result: no" >&5
8025 echo "${ECHO_T}no" >&6
8029 if test -z "$ac_cv_prog_GETCONF"; then
8030 ac_ct_GETCONF=$GETCONF
8031 # Extract the first word of "getconf", so it can be a program name with args.
8032 set dummy getconf; ac_word=$2
8033 echo "$as_me:$LINENO: checking for $ac_word" >&5
8034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8035 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
8036 echo $ECHO_N "(cached) $ECHO_C" >&6
8038 if test -n "$ac_ct_GETCONF"; then
8039 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
8041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8045 test -z "$as_dir" && as_dir=.
8046 for ac_exec_ext in '' $ac_executable_extensions; do
8047 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8048 ac_cv_prog_ac_ct_GETCONF="getconf"
8049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8057 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
8058 if test -n "$ac_ct_GETCONF"; then
8059 echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
8060 echo "${ECHO_T}$ac_ct_GETCONF" >&6
8062 echo "$as_me:$LINENO: result: no" >&5
8063 echo "${ECHO_T}no" >&6
8066 GETCONF=$ac_ct_GETCONF
8068 GETCONF="$ac_cv_prog_GETCONF"
8071 echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
8072 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
8073 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
8074 echo $ECHO_N "(cached) $ECHO_C" >&6
8076 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
8077 ac_cv_sys_largefile_CFLAGS=no
8079 # IRIX 6.2 and later require cc -n32.
8080 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
8081 if test "$GCC" != yes; then
8082 ac_cv_sys_largefile_CFLAGS=-n32
8085 CC="$CC $ac_cv_sys_largefile_CFLAGS"
8086 cat >conftest.$ac_ext <<_ACEOF
8087 #line $LINENO "configure"
8090 cat confdefs.h >>conftest.$ac_ext
8091 cat >>conftest.$ac_ext <<_ACEOF
8092 /* end confdefs.h. */
8102 rm -f conftest.$ac_objext conftest$ac_exeext
8103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8104 (eval $ac_link) 2>&5
8106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8107 (exit $ac_status); } &&
8108 { ac_try='test -s conftest$ac_exeext'
8109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113 (exit $ac_status); }; }; then
8116 echo "$as_me: failed program was:" >&5
8117 sed 's/^/| /' conftest.$ac_ext >&5
8119 ac_cv_sys_largefile_CFLAGS=no
8121 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8126 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
8127 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
8128 echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
8129 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
8130 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
8131 echo $ECHO_N "(cached) $ECHO_C" >&6
8133 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
8134 ac_cv_sys_largefile_LDFLAGS=no
8138 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
8139 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
8140 echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
8141 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
8142 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
8143 echo $ECHO_N "(cached) $ECHO_C" >&6
8145 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
8146 ac_cv_sys_largefile_LIBS=no
8150 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
8151 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
8153 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
8156 -D_FILE_OFFSET_BITS=*) ;;
8157 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
8158 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
8164 '') CPPFLAGS="$ac_flag" ;;
8165 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
8173 '') CFLAGS="$ac_flag" ;;
8174 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
8179 case "$ac_cv_sys_largefile_LDFLAGS" in
8183 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
8184 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
8187 case "$ac_cv_sys_largefile_LIBS" in
8191 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
8192 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
8195 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
8196 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
8197 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
8198 echo $ECHO_N "(cached) $ECHO_C" >&6
8200 ac_cv_sys_file_offset_bits=no
8202 # HP-UX 10.20 and later
8203 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
8204 ac_cv_sys_file_offset_bits=64 ;;
8206 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
8208 -D_FILE_OFFSET_BITS)
8209 ac_cv_sys_file_offset_bits=1 ;;
8210 -D_FILE_OFFSET_BITS=*)
8211 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
8216 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
8217 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
8218 if test "$ac_cv_sys_file_offset_bits" != no; then
8220 cat >>confdefs.h <<_ACEOF
8221 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8225 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
8226 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
8227 if test "${ac_cv_sys_largefile_source+set}" = set; then
8228 echo $ECHO_N "(cached) $ECHO_C" >&6
8230 ac_cv_sys_largefile_source=no
8232 # HP-UX 10.20 and later
8233 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
8234 ac_cv_sys_largefile_source=1 ;;
8236 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
8238 -D_LARGEFILE_SOURCE)
8239 ac_cv_sys_largefile_source=1 ;;
8240 -D_LARGEFILE_SOURCE=*)
8241 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
8246 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
8247 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
8248 if test "$ac_cv_sys_largefile_source" != no; then
8250 cat >>confdefs.h <<_ACEOF
8251 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
8255 echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
8256 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
8257 if test "${ac_cv_sys_large_files+set}" = set; then
8258 echo $ECHO_N "(cached) $ECHO_C" >&6
8260 ac_cv_sys_large_files=no
8263 aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
8264 ac_cv_sys_large_files=1 ;;
8266 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
8269 ac_cv_sys_large_files=1 ;;
8271 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
8276 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
8277 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
8278 if test "$ac_cv_sys_large_files" != no; then
8280 cat >>confdefs.h <<_ACEOF
8281 #define _LARGE_FILES $ac_cv_sys_large_files
8289 echo "$as_me:$LINENO: checking for X" >&5
8290 echo $ECHO_N "checking for X... $ECHO_C" >&6
8293 # Check whether --with-x or --without-x was given.
8294 if test "${with_x+set}" = set; then
8298 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8299 if test "x$with_x" = xno; then
8300 # The user explicitly disabled X.
8303 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8304 # Both variables are already set.
8307 if test "${ac_cv_have_x+set}" = set; then
8308 echo $ECHO_N "(cached) $ECHO_C" >&6
8310 # One or both of the vars are not set, and there is no cached value.
8311 ac_x_includes=no ac_x_libraries=no
8313 if mkdir conftest.dir; then
8315 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8316 cat >Imakefile <<'_ACEOF'
8318 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8320 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8321 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8322 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8323 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8324 for ac_extension in a so sl; do
8325 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8326 test -f $ac_im_libdir/libX11.$ac_extension; then
8327 ac_im_usrlibdir=$ac_im_libdir; break
8330 # Screen out bogus values from the imake configuration. They are
8331 # bogus both because they are the default anyway, and because
8332 # using them would break gcc on systems where it needs fixed includes.
8333 case $ac_im_incroot in
8335 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8337 case $ac_im_usrlibdir in
8339 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8346 # Standard set of common directories for X headers.
8347 # Check X11 before X11Rn because it is often a symlink to the current release.
8359 /usr/local/X11/include
8360 /usr/local/X11R6/include
8361 /usr/local/X11R5/include
8362 /usr/local/X11R4/include
8364 /usr/local/include/X11
8365 /usr/local/include/X11R6
8366 /usr/local/include/X11R5
8367 /usr/local/include/X11R4
8371 /usr/XFree86/include/X11
8375 /usr/unsupported/include
8377 /usr/local/x11r5/include
8378 /usr/lpp/Xamples/include
8380 /usr/openwin/include
8381 /usr/openwin/share/include'
8383 if test "$ac_x_includes" = no; then
8384 # Guess where to find include files, by looking for Intrinsic.h.
8385 # First, try using that file with no special directory specified.
8386 cat >conftest.$ac_ext <<_ACEOF
8387 #line $LINENO "configure"
8390 cat confdefs.h >>conftest.$ac_ext
8391 cat >>conftest.$ac_ext <<_ACEOF
8392 /* end confdefs.h. */
8393 #include <X11/Intrinsic.h>
8395 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8396 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8398 grep -v '^ *+' conftest.er1 >conftest.err
8400 cat conftest.err >&5
8401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402 (exit $ac_status); } >/dev/null; then
8403 if test -s conftest.err; then
8404 ac_cpp_err=$ac_c_preproc_warn_flag
8411 if test -z "$ac_cpp_err"; then
8412 # We can compile using X headers with no special include directory.
8415 echo "$as_me: failed program was:" >&5
8416 sed 's/^/| /' conftest.$ac_ext >&5
8418 for ac_dir in $ac_x_header_dirs; do
8419 if test -r "$ac_dir/X11/Intrinsic.h"; then
8420 ac_x_includes=$ac_dir
8425 rm -f conftest.err conftest.$ac_ext
8426 fi # $ac_x_includes = no
8428 if test "$ac_x_libraries" = no; then
8429 # Check for the libraries.
8430 # See if we find them without any special options.
8431 # Don't add to $LIBS permanently.
8434 cat >conftest.$ac_ext <<_ACEOF
8435 #line $LINENO "configure"
8438 cat confdefs.h >>conftest.$ac_ext
8439 cat >>conftest.$ac_ext <<_ACEOF
8440 /* end confdefs.h. */
8441 #include <X11/Intrinsic.h>
8450 rm -f conftest.$ac_objext conftest$ac_exeext
8451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8452 (eval $ac_link) 2>&5
8454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8455 (exit $ac_status); } &&
8456 { ac_try='test -s conftest$ac_exeext'
8457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461 (exit $ac_status); }; }; then
8463 # We can link X programs with no special library path.
8466 echo "$as_me: failed program was:" >&5
8467 sed 's/^/| /' conftest.$ac_ext >&5
8470 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8472 # Don't even attempt the hair of trying to link an X program!
8473 for ac_extension in a so sl; do
8474 if test -r $ac_dir/libXt.$ac_extension; then
8475 ac_x_libraries=$ac_dir
8481 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8482 fi # $ac_x_libraries = no
8484 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8485 # Didn't find X anywhere. Cache the known absence of X.
8486 ac_cv_have_x="have_x=no"
8488 # Record where we found X for the cache.
8489 ac_cv_have_x="have_x=yes \
8490 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8495 eval "$ac_cv_have_x"
8498 if test "$have_x" != yes; then
8499 echo "$as_me:$LINENO: result: $have_x" >&5
8500 echo "${ECHO_T}$have_x" >&6
8503 # If each of the values was on the command line, it overrides each guess.
8504 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8505 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8506 # Update the cache value to reflect the command line values.
8507 ac_cv_have_x="have_x=yes \
8508 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8509 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8510 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8513 if test "$no_x" = yes; then
8514 # Not all programs may use this symbol, but it does not hurt to define it.
8516 cat >>confdefs.h <<\_ACEOF
8517 #define X_DISPLAY_MISSING 1
8520 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8522 if test -n "$x_includes"; then
8523 X_CFLAGS="$X_CFLAGS -I$x_includes"
8526 # It would also be nice to do this for all -L options, not just this one.
8527 if test -n "$x_libraries"; then
8528 X_LIBS="$X_LIBS -L$x_libraries"
8529 # For Solaris; some versions of Sun CC require a space after -R and
8530 # others require no space. Words are not sufficient . . . .
8531 case `(uname -sr) 2>/dev/null` in
8533 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
8534 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
8535 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8536 cat >conftest.$ac_ext <<_ACEOF
8537 #line $LINENO "configure"
8540 cat confdefs.h >>conftest.$ac_ext
8541 cat >>conftest.$ac_ext <<_ACEOF
8542 /* end confdefs.h. */
8552 rm -f conftest.$ac_objext conftest$ac_exeext
8553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8554 (eval $ac_link) 2>&5
8556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8557 (exit $ac_status); } &&
8558 { ac_try='test -s conftest$ac_exeext'
8559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8563 (exit $ac_status); }; }; then
8566 echo "$as_me: failed program was:" >&5
8567 sed 's/^/| /' conftest.$ac_ext >&5
8571 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8572 if test $ac_R_nospace = yes; then
8573 echo "$as_me:$LINENO: result: no" >&5
8574 echo "${ECHO_T}no" >&6
8575 X_LIBS="$X_LIBS -R$x_libraries"
8577 LIBS="$ac_xsave_LIBS -R $x_libraries"
8578 cat >conftest.$ac_ext <<_ACEOF
8579 #line $LINENO "configure"
8582 cat confdefs.h >>conftest.$ac_ext
8583 cat >>conftest.$ac_ext <<_ACEOF
8584 /* end confdefs.h. */
8594 rm -f conftest.$ac_objext conftest$ac_exeext
8595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8596 (eval $ac_link) 2>&5
8598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599 (exit $ac_status); } &&
8600 { ac_try='test -s conftest$ac_exeext'
8601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605 (exit $ac_status); }; }; then
8608 echo "$as_me: failed program was:" >&5
8609 sed 's/^/| /' conftest.$ac_ext >&5
8613 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8614 if test $ac_R_space = yes; then
8615 echo "$as_me:$LINENO: result: yes" >&5
8616 echo "${ECHO_T}yes" >&6
8617 X_LIBS="$X_LIBS -R $x_libraries"
8619 echo "$as_me:$LINENO: result: neither works" >&5
8620 echo "${ECHO_T}neither works" >&6
8627 # Check for system-dependent libraries X programs must link with.
8628 # Do this before checking for the system-independent R6 libraries
8629 # (-lICE), since we may need -lsocket or whatever for X linking.
8631 if test "$ISC" = yes; then
8632 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8634 # Martyn Johnson says this is needed for Ultrix, if the X
8635 # libraries were built with DECnet support. And Karl Berry says
8636 # the Alpha needs dnet_stub (dnet does not exist).
8637 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8638 cat >conftest.$ac_ext <<_ACEOF
8639 #line $LINENO "configure"
8642 cat confdefs.h >>conftest.$ac_ext
8643 cat >>conftest.$ac_ext <<_ACEOF
8644 /* end confdefs.h. */
8646 /* Override any gcc2 internal prototype to avoid an error. */
8650 /* We use char because int might match the return type of a gcc2
8651 builtin and then its argument prototype would still apply. */
8652 char XOpenDisplay ();
8661 rm -f conftest.$ac_objext conftest$ac_exeext
8662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8663 (eval $ac_link) 2>&5
8665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8666 (exit $ac_status); } &&
8667 { ac_try='test -s conftest$ac_exeext'
8668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8672 (exit $ac_status); }; }; then
8675 echo "$as_me: failed program was:" >&5
8676 sed 's/^/| /' conftest.$ac_ext >&5
8678 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8679 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8680 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8681 echo $ECHO_N "(cached) $ECHO_C" >&6
8683 ac_check_lib_save_LIBS=$LIBS
8685 cat >conftest.$ac_ext <<_ACEOF
8686 #line $LINENO "configure"
8689 cat confdefs.h >>conftest.$ac_ext
8690 cat >>conftest.$ac_ext <<_ACEOF
8691 /* end confdefs.h. */
8693 /* Override any gcc2 internal prototype to avoid an error. */
8697 /* We use char because int might match the return type of a gcc2
8698 builtin and then its argument prototype would still apply. */
8708 rm -f conftest.$ac_objext conftest$ac_exeext
8709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8710 (eval $ac_link) 2>&5
8712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8713 (exit $ac_status); } &&
8714 { ac_try='test -s conftest$ac_exeext'
8715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719 (exit $ac_status); }; }; then
8720 ac_cv_lib_dnet_dnet_ntoa=yes
8722 echo "$as_me: failed program was:" >&5
8723 sed 's/^/| /' conftest.$ac_ext >&5
8725 ac_cv_lib_dnet_dnet_ntoa=no
8727 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8728 LIBS=$ac_check_lib_save_LIBS
8730 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8731 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8732 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8733 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8736 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8737 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8738 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8739 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8740 echo $ECHO_N "(cached) $ECHO_C" >&6
8742 ac_check_lib_save_LIBS=$LIBS
8743 LIBS="-ldnet_stub $LIBS"
8744 cat >conftest.$ac_ext <<_ACEOF
8745 #line $LINENO "configure"
8748 cat confdefs.h >>conftest.$ac_ext
8749 cat >>conftest.$ac_ext <<_ACEOF
8750 /* end confdefs.h. */
8752 /* Override any gcc2 internal prototype to avoid an error. */
8756 /* We use char because int might match the return type of a gcc2
8757 builtin and then its argument prototype would still apply. */
8767 rm -f conftest.$ac_objext conftest$ac_exeext
8768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8769 (eval $ac_link) 2>&5
8771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772 (exit $ac_status); } &&
8773 { ac_try='test -s conftest$ac_exeext'
8774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8778 (exit $ac_status); }; }; then
8779 ac_cv_lib_dnet_stub_dnet_ntoa=yes
8781 echo "$as_me: failed program was:" >&5
8782 sed 's/^/| /' conftest.$ac_ext >&5
8784 ac_cv_lib_dnet_stub_dnet_ntoa=no
8786 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8787 LIBS=$ac_check_lib_save_LIBS
8789 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8790 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8791 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8792 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8797 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8798 LIBS="$ac_xsave_LIBS"
8800 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8801 # to get the SysV transport functions.
8802 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8804 # The nsl library prevents programs from opening the X display
8805 # on Irix 5.2, according to T.E. Dickey.
8806 # The functions gethostbyname, getservbyname, and inet_addr are
8807 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8808 echo "$as_me:$LINENO: checking for gethostbyname" >&5
8809 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8810 if test "${ac_cv_func_gethostbyname+set}" = set; then
8811 echo $ECHO_N "(cached) $ECHO_C" >&6
8813 cat >conftest.$ac_ext <<_ACEOF
8814 #line $LINENO "configure"
8817 cat confdefs.h >>conftest.$ac_ext
8818 cat >>conftest.$ac_ext <<_ACEOF
8819 /* end confdefs.h. */
8820 /* System header to define __stub macros and hopefully few prototypes,
8821 which can conflict with char gethostbyname (); below.
8822 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8823 <limits.h> exists even on freestanding compilers. */
8825 # include <limits.h>
8827 # include <assert.h>
8829 /* Override any gcc2 internal prototype to avoid an error. */
8834 /* We use char because int might match the return type of a gcc2
8835 builtin and then its argument prototype would still apply. */
8836 char gethostbyname ();
8837 /* The GNU C library defines this for functions which it implements
8838 to always fail with ENOSYS. Some functions are actually named
8839 something starting with __ and the normal name is an alias. */
8840 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8843 char (*f) () = gethostbyname;
8852 return f != gethostbyname;
8857 rm -f conftest.$ac_objext conftest$ac_exeext
8858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8859 (eval $ac_link) 2>&5
8861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8862 (exit $ac_status); } &&
8863 { ac_try='test -s conftest$ac_exeext'
8864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8868 (exit $ac_status); }; }; then
8869 ac_cv_func_gethostbyname=yes
8871 echo "$as_me: failed program was:" >&5
8872 sed 's/^/| /' conftest.$ac_ext >&5
8874 ac_cv_func_gethostbyname=no
8876 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8878 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8879 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8881 if test $ac_cv_func_gethostbyname = no; then
8882 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8883 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8884 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8885 echo $ECHO_N "(cached) $ECHO_C" >&6
8887 ac_check_lib_save_LIBS=$LIBS
8889 cat >conftest.$ac_ext <<_ACEOF
8890 #line $LINENO "configure"
8893 cat confdefs.h >>conftest.$ac_ext
8894 cat >>conftest.$ac_ext <<_ACEOF
8895 /* end confdefs.h. */
8897 /* Override any gcc2 internal prototype to avoid an error. */
8901 /* We use char because int might match the return type of a gcc2
8902 builtin and then its argument prototype would still apply. */
8903 char gethostbyname ();
8912 rm -f conftest.$ac_objext conftest$ac_exeext
8913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8914 (eval $ac_link) 2>&5
8916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8917 (exit $ac_status); } &&
8918 { ac_try='test -s conftest$ac_exeext'
8919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8923 (exit $ac_status); }; }; then
8924 ac_cv_lib_nsl_gethostbyname=yes
8926 echo "$as_me: failed program was:" >&5
8927 sed 's/^/| /' conftest.$ac_ext >&5
8929 ac_cv_lib_nsl_gethostbyname=no
8931 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8932 LIBS=$ac_check_lib_save_LIBS
8934 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8935 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8936 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8937 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8940 if test $ac_cv_lib_nsl_gethostbyname = no; then
8941 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8942 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8943 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8944 echo $ECHO_N "(cached) $ECHO_C" >&6
8946 ac_check_lib_save_LIBS=$LIBS
8948 cat >conftest.$ac_ext <<_ACEOF
8949 #line $LINENO "configure"
8952 cat confdefs.h >>conftest.$ac_ext
8953 cat >>conftest.$ac_ext <<_ACEOF
8954 /* end confdefs.h. */
8956 /* Override any gcc2 internal prototype to avoid an error. */
8960 /* We use char because int might match the return type of a gcc2
8961 builtin and then its argument prototype would still apply. */
8962 char gethostbyname ();
8971 rm -f conftest.$ac_objext conftest$ac_exeext
8972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8973 (eval $ac_link) 2>&5
8975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8976 (exit $ac_status); } &&
8977 { ac_try='test -s conftest$ac_exeext'
8978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8982 (exit $ac_status); }; }; then
8983 ac_cv_lib_bsd_gethostbyname=yes
8985 echo "$as_me: failed program was:" >&5
8986 sed 's/^/| /' conftest.$ac_ext >&5
8988 ac_cv_lib_bsd_gethostbyname=no
8990 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8991 LIBS=$ac_check_lib_save_LIBS
8993 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8994 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8995 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8996 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
9002 # lieder@skyler.mavd.honeywell.com says without -lsocket,
9003 # socket/setsockopt and other routines are undefined under SCO ODT
9004 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
9005 # on later versions), says Simon Leinen: it contains gethostby*
9006 # variants that don't use the name server (or something). -lsocket
9007 # must be given before -lnsl if both are needed. We assume that
9008 # if connect needs -lnsl, so does gethostbyname.
9009 echo "$as_me:$LINENO: checking for connect" >&5
9010 echo $ECHO_N "checking for connect... $ECHO_C" >&6
9011 if test "${ac_cv_func_connect+set}" = set; then
9012 echo $ECHO_N "(cached) $ECHO_C" >&6
9014 cat >conftest.$ac_ext <<_ACEOF
9015 #line $LINENO "configure"
9018 cat confdefs.h >>conftest.$ac_ext
9019 cat >>conftest.$ac_ext <<_ACEOF
9020 /* end confdefs.h. */
9021 /* System header to define __stub macros and hopefully few prototypes,
9022 which can conflict with char connect (); below.
9023 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9024 <limits.h> exists even on freestanding compilers. */
9026 # include <limits.h>
9028 # include <assert.h>
9030 /* Override any gcc2 internal prototype to avoid an error. */
9035 /* We use char because int might match the return type of a gcc2
9036 builtin and then its argument prototype would still apply. */
9038 /* The GNU C library defines this for functions which it implements
9039 to always fail with ENOSYS. Some functions are actually named
9040 something starting with __ and the normal name is an alias. */
9041 #if defined (__stub_connect) || defined (__stub___connect)
9044 char (*f) () = connect;
9053 return f != connect;
9058 rm -f conftest.$ac_objext conftest$ac_exeext
9059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9060 (eval $ac_link) 2>&5
9062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9063 (exit $ac_status); } &&
9064 { ac_try='test -s conftest$ac_exeext'
9065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9069 (exit $ac_status); }; }; then
9070 ac_cv_func_connect=yes
9072 echo "$as_me: failed program was:" >&5
9073 sed 's/^/| /' conftest.$ac_ext >&5
9075 ac_cv_func_connect=no
9077 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9079 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
9080 echo "${ECHO_T}$ac_cv_func_connect" >&6
9082 if test $ac_cv_func_connect = no; then
9083 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
9084 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
9085 if test "${ac_cv_lib_socket_connect+set}" = set; then
9086 echo $ECHO_N "(cached) $ECHO_C" >&6
9088 ac_check_lib_save_LIBS=$LIBS
9089 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
9090 cat >conftest.$ac_ext <<_ACEOF
9091 #line $LINENO "configure"
9094 cat confdefs.h >>conftest.$ac_ext
9095 cat >>conftest.$ac_ext <<_ACEOF
9096 /* end confdefs.h. */
9098 /* Override any gcc2 internal prototype to avoid an error. */
9102 /* We use char because int might match the return type of a gcc2
9103 builtin and then its argument prototype would still apply. */
9113 rm -f conftest.$ac_objext conftest$ac_exeext
9114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9115 (eval $ac_link) 2>&5
9117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9118 (exit $ac_status); } &&
9119 { ac_try='test -s conftest$ac_exeext'
9120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124 (exit $ac_status); }; }; then
9125 ac_cv_lib_socket_connect=yes
9127 echo "$as_me: failed program was:" >&5
9128 sed 's/^/| /' conftest.$ac_ext >&5
9130 ac_cv_lib_socket_connect=no
9132 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9133 LIBS=$ac_check_lib_save_LIBS
9135 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
9136 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
9137 if test $ac_cv_lib_socket_connect = yes; then
9138 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
9143 # Guillermo Gomez says -lposix is necessary on A/UX.
9144 echo "$as_me:$LINENO: checking for remove" >&5
9145 echo $ECHO_N "checking for remove... $ECHO_C" >&6
9146 if test "${ac_cv_func_remove+set}" = set; then
9147 echo $ECHO_N "(cached) $ECHO_C" >&6
9149 cat >conftest.$ac_ext <<_ACEOF
9150 #line $LINENO "configure"
9153 cat confdefs.h >>conftest.$ac_ext
9154 cat >>conftest.$ac_ext <<_ACEOF
9155 /* end confdefs.h. */
9156 /* System header to define __stub macros and hopefully few prototypes,
9157 which can conflict with char remove (); below.
9158 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9159 <limits.h> exists even on freestanding compilers. */
9161 # include <limits.h>
9163 # include <assert.h>
9165 /* Override any gcc2 internal prototype to avoid an error. */
9170 /* We use char because int might match the return type of a gcc2
9171 builtin and then its argument prototype would still apply. */
9173 /* The GNU C library defines this for functions which it implements
9174 to always fail with ENOSYS. Some functions are actually named
9175 something starting with __ and the normal name is an alias. */
9176 #if defined (__stub_remove) || defined (__stub___remove)
9179 char (*f) () = remove;
9193 rm -f conftest.$ac_objext conftest$ac_exeext
9194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9195 (eval $ac_link) 2>&5
9197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198 (exit $ac_status); } &&
9199 { ac_try='test -s conftest$ac_exeext'
9200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9204 (exit $ac_status); }; }; then
9205 ac_cv_func_remove=yes
9207 echo "$as_me: failed program was:" >&5
9208 sed 's/^/| /' conftest.$ac_ext >&5
9210 ac_cv_func_remove=no
9212 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9214 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
9215 echo "${ECHO_T}$ac_cv_func_remove" >&6
9217 if test $ac_cv_func_remove = no; then
9218 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
9219 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
9220 if test "${ac_cv_lib_posix_remove+set}" = set; then
9221 echo $ECHO_N "(cached) $ECHO_C" >&6
9223 ac_check_lib_save_LIBS=$LIBS
9224 LIBS="-lposix $LIBS"
9225 cat >conftest.$ac_ext <<_ACEOF
9226 #line $LINENO "configure"
9229 cat confdefs.h >>conftest.$ac_ext
9230 cat >>conftest.$ac_ext <<_ACEOF
9231 /* end confdefs.h. */
9233 /* Override any gcc2 internal prototype to avoid an error. */
9237 /* We use char because int might match the return type of a gcc2
9238 builtin and then its argument prototype would still apply. */
9248 rm -f conftest.$ac_objext conftest$ac_exeext
9249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9250 (eval $ac_link) 2>&5
9252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9253 (exit $ac_status); } &&
9254 { ac_try='test -s conftest$ac_exeext'
9255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9259 (exit $ac_status); }; }; then
9260 ac_cv_lib_posix_remove=yes
9262 echo "$as_me: failed program was:" >&5
9263 sed 's/^/| /' conftest.$ac_ext >&5
9265 ac_cv_lib_posix_remove=no
9267 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9268 LIBS=$ac_check_lib_save_LIBS
9270 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
9271 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
9272 if test $ac_cv_lib_posix_remove = yes; then
9273 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
9278 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
9279 echo "$as_me:$LINENO: checking for shmat" >&5
9280 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
9281 if test "${ac_cv_func_shmat+set}" = set; then
9282 echo $ECHO_N "(cached) $ECHO_C" >&6
9284 cat >conftest.$ac_ext <<_ACEOF
9285 #line $LINENO "configure"
9288 cat confdefs.h >>conftest.$ac_ext
9289 cat >>conftest.$ac_ext <<_ACEOF
9290 /* end confdefs.h. */
9291 /* System header to define __stub macros and hopefully few prototypes,
9292 which can conflict with char shmat (); below.
9293 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9294 <limits.h> exists even on freestanding compilers. */
9296 # include <limits.h>
9298 # include <assert.h>
9300 /* Override any gcc2 internal prototype to avoid an error. */
9305 /* We use char because int might match the return type of a gcc2
9306 builtin and then its argument prototype would still apply. */
9308 /* The GNU C library defines this for functions which it implements
9309 to always fail with ENOSYS. Some functions are actually named
9310 something starting with __ and the normal name is an alias. */
9311 #if defined (__stub_shmat) || defined (__stub___shmat)
9314 char (*f) () = shmat;
9328 rm -f conftest.$ac_objext conftest$ac_exeext
9329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9330 (eval $ac_link) 2>&5
9332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9333 (exit $ac_status); } &&
9334 { ac_try='test -s conftest$ac_exeext'
9335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9339 (exit $ac_status); }; }; then
9340 ac_cv_func_shmat=yes
9342 echo "$as_me: failed program was:" >&5
9343 sed 's/^/| /' conftest.$ac_ext >&5
9347 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9349 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
9350 echo "${ECHO_T}$ac_cv_func_shmat" >&6
9352 if test $ac_cv_func_shmat = no; then
9353 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
9354 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
9355 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
9356 echo $ECHO_N "(cached) $ECHO_C" >&6
9358 ac_check_lib_save_LIBS=$LIBS
9360 cat >conftest.$ac_ext <<_ACEOF
9361 #line $LINENO "configure"
9364 cat confdefs.h >>conftest.$ac_ext
9365 cat >>conftest.$ac_ext <<_ACEOF
9366 /* end confdefs.h. */
9368 /* Override any gcc2 internal prototype to avoid an error. */
9372 /* We use char because int might match the return type of a gcc2
9373 builtin and then its argument prototype would still apply. */
9383 rm -f conftest.$ac_objext conftest$ac_exeext
9384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9385 (eval $ac_link) 2>&5
9387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9388 (exit $ac_status); } &&
9389 { ac_try='test -s conftest$ac_exeext'
9390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9394 (exit $ac_status); }; }; then
9395 ac_cv_lib_ipc_shmat=yes
9397 echo "$as_me: failed program was:" >&5
9398 sed 's/^/| /' conftest.$ac_ext >&5
9400 ac_cv_lib_ipc_shmat=no
9402 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9403 LIBS=$ac_check_lib_save_LIBS
9405 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
9406 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
9407 if test $ac_cv_lib_ipc_shmat = yes; then
9408 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9414 # Check for libraries that X11R6 Xt/Xaw programs need.
9415 ac_save_LDFLAGS=$LDFLAGS
9416 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9417 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9418 # check for ICE first), but we must link in the order -lSM -lICE or
9419 # we get undefined symbols. So assume we have SM if we have ICE.
9420 # These have to be linked with before -lX11, unlike the other
9421 # libraries we check for below, so use a different variable.
9422 # John Interrante, Karl Berry
9423 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
9424 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
9425 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
9426 echo $ECHO_N "(cached) $ECHO_C" >&6
9428 ac_check_lib_save_LIBS=$LIBS
9429 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9430 cat >conftest.$ac_ext <<_ACEOF
9431 #line $LINENO "configure"
9434 cat confdefs.h >>conftest.$ac_ext
9435 cat >>conftest.$ac_ext <<_ACEOF
9436 /* end confdefs.h. */
9438 /* Override any gcc2 internal prototype to avoid an error. */
9442 /* We use char because int might match the return type of a gcc2
9443 builtin and then its argument prototype would still apply. */
9444 char IceConnectionNumber ();
9448 IceConnectionNumber ();
9453 rm -f conftest.$ac_objext conftest$ac_exeext
9454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9455 (eval $ac_link) 2>&5
9457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9458 (exit $ac_status); } &&
9459 { ac_try='test -s conftest$ac_exeext'
9460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9464 (exit $ac_status); }; }; then
9465 ac_cv_lib_ICE_IceConnectionNumber=yes
9467 echo "$as_me: failed program was:" >&5
9468 sed 's/^/| /' conftest.$ac_ext >&5
9470 ac_cv_lib_ICE_IceConnectionNumber=no
9472 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9473 LIBS=$ac_check_lib_save_LIBS
9475 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9476 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
9477 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
9478 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9481 LDFLAGS=$ac_save_LDFLAGS
9543 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9544 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9545 echo "$as_me:$LINENO: checking for $ac_header" >&5
9546 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9547 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9548 echo $ECHO_N "(cached) $ECHO_C" >&6
9550 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9551 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9553 # Is the header compilable?
9554 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9555 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9556 cat >conftest.$ac_ext <<_ACEOF
9557 #line $LINENO "configure"
9560 cat confdefs.h >>conftest.$ac_ext
9561 cat >>conftest.$ac_ext <<_ACEOF
9562 /* end confdefs.h. */
9563 $ac_includes_default
9564 #include <$ac_header>
9566 rm -f conftest.$ac_objext
9567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9568 (eval $ac_compile) 2>&5
9570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9571 (exit $ac_status); } &&
9572 { ac_try='test -s conftest.$ac_objext'
9573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577 (exit $ac_status); }; }; then
9578 ac_header_compiler=yes
9580 echo "$as_me: failed program was:" >&5
9581 sed 's/^/| /' conftest.$ac_ext >&5
9583 ac_header_compiler=no
9585 rm -f conftest.$ac_objext conftest.$ac_ext
9586 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9587 echo "${ECHO_T}$ac_header_compiler" >&6
9589 # Is the header present?
9590 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9591 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9592 cat >conftest.$ac_ext <<_ACEOF
9593 #line $LINENO "configure"
9596 cat confdefs.h >>conftest.$ac_ext
9597 cat >>conftest.$ac_ext <<_ACEOF
9598 /* end confdefs.h. */
9599 #include <$ac_header>
9601 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9602 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9604 grep -v '^ *+' conftest.er1 >conftest.err
9606 cat conftest.err >&5
9607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608 (exit $ac_status); } >/dev/null; then
9609 if test -s conftest.err; then
9610 ac_cpp_err=$ac_c_preproc_warn_flag
9617 if test -z "$ac_cpp_err"; then
9618 ac_header_preproc=yes
9620 echo "$as_me: failed program was:" >&5
9621 sed 's/^/| /' conftest.$ac_ext >&5
9623 ac_header_preproc=no
9625 rm -f conftest.err conftest.$ac_ext
9626 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9627 echo "${ECHO_T}$ac_header_preproc" >&6
9629 # So? What about this header?
9630 case $ac_header_compiler:$ac_header_preproc in
9632 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9633 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9634 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9635 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9638 ## ------------------------------------ ##
9639 ## Report this to bug-autoconf@gnu.org. ##
9640 ## ------------------------------------ ##
9643 sed "s/^/$as_me: WARNING: /" >&2
9646 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9647 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9648 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9649 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9650 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9651 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9654 ## ------------------------------------ ##
9655 ## Report this to bug-autoconf@gnu.org. ##
9656 ## ------------------------------------ ##
9659 sed "s/^/$as_me: WARNING: /" >&2
9662 echo "$as_me:$LINENO: checking for $ac_header" >&5
9663 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9664 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9665 echo $ECHO_N "(cached) $ECHO_C" >&6
9667 eval "$as_ac_Header=$ac_header_preproc"
9669 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9670 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9673 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9674 cat >>confdefs.h <<_ACEOF
9675 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9682 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9683 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9684 if test "${ac_cv_header_stdc+set}" = set; then
9685 echo $ECHO_N "(cached) $ECHO_C" >&6
9687 cat >conftest.$ac_ext <<_ACEOF
9688 #line $LINENO "configure"
9691 cat confdefs.h >>conftest.$ac_ext
9692 cat >>conftest.$ac_ext <<_ACEOF
9693 /* end confdefs.h. */
9707 rm -f conftest.$ac_objext
9708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9709 (eval $ac_compile) 2>&5
9711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9712 (exit $ac_status); } &&
9713 { ac_try='test -s conftest.$ac_objext'
9714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9718 (exit $ac_status); }; }; then
9719 ac_cv_header_stdc=yes
9721 echo "$as_me: failed program was:" >&5
9722 sed 's/^/| /' conftest.$ac_ext >&5
9724 ac_cv_header_stdc=no
9726 rm -f conftest.$ac_objext conftest.$ac_ext
9728 if test $ac_cv_header_stdc = yes; then
9729 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9730 cat >conftest.$ac_ext <<_ACEOF
9731 #line $LINENO "configure"
9734 cat confdefs.h >>conftest.$ac_ext
9735 cat >>conftest.$ac_ext <<_ACEOF
9736 /* end confdefs.h. */
9740 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9741 $EGREP "memchr" >/dev/null 2>&1; then
9744 ac_cv_header_stdc=no
9750 if test $ac_cv_header_stdc = yes; then
9751 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9752 cat >conftest.$ac_ext <<_ACEOF
9753 #line $LINENO "configure"
9756 cat confdefs.h >>conftest.$ac_ext
9757 cat >>conftest.$ac_ext <<_ACEOF
9758 /* end confdefs.h. */
9762 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9763 $EGREP "free" >/dev/null 2>&1; then
9766 ac_cv_header_stdc=no
9772 if test $ac_cv_header_stdc = yes; then
9773 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9774 if test "$cross_compiling" = yes; then
9777 cat >conftest.$ac_ext <<_ACEOF
9778 #line $LINENO "configure"
9781 cat confdefs.h >>conftest.$ac_ext
9782 cat >>conftest.$ac_ext <<_ACEOF
9783 /* end confdefs.h. */
9785 #if ((' ' & 0x0FF) == 0x020)
9786 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9787 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9789 # define ISLOWER(c) \
9790 (('a' <= (c) && (c) <= 'i') \
9791 || ('j' <= (c) && (c) <= 'r') \
9792 || ('s' <= (c) && (c) <= 'z'))
9793 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9796 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9801 for (i = 0; i < 256; i++)
9802 if (XOR (islower (i), ISLOWER (i))
9803 || toupper (i) != TOUPPER (i))
9808 rm -f conftest$ac_exeext
9809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9810 (eval $ac_link) 2>&5
9812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9813 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818 (exit $ac_status); }; }; then
9821 echo "$as_me: program exited with status $ac_status" >&5
9822 echo "$as_me: failed program was:" >&5
9823 sed 's/^/| /' conftest.$ac_ext >&5
9826 ac_cv_header_stdc=no
9828 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9832 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9833 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9834 if test $ac_cv_header_stdc = yes; then
9836 cat >>confdefs.h <<\_ACEOF
9837 #define STDC_HEADERS 1
9842 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
9843 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
9844 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
9845 echo $ECHO_N "(cached) $ECHO_C" >&6
9847 cat >conftest.$ac_ext <<_ACEOF
9848 #line $LINENO "configure"
9851 cat confdefs.h >>conftest.$ac_ext
9852 cat >>conftest.$ac_ext <<_ACEOF
9853 /* end confdefs.h. */
9854 #include <sys/types.h>
9858 return makedev(0, 0);
9863 rm -f conftest.$ac_objext conftest$ac_exeext
9864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9865 (eval $ac_link) 2>&5
9867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868 (exit $ac_status); } &&
9869 { ac_try='test -s conftest$ac_exeext'
9870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874 (exit $ac_status); }; }; then
9875 ac_cv_header_sys_types_h_makedev=yes
9877 echo "$as_me: failed program was:" >&5
9878 sed 's/^/| /' conftest.$ac_ext >&5
9880 ac_cv_header_sys_types_h_makedev=no
9882 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9885 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
9886 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
9888 if test $ac_cv_header_sys_types_h_makedev = no; then
9889 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9890 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9891 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9892 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9893 echo $ECHO_N "(cached) $ECHO_C" >&6
9895 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9896 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9898 # Is the header compilable?
9899 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
9900 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
9901 cat >conftest.$ac_ext <<_ACEOF
9902 #line $LINENO "configure"
9905 cat confdefs.h >>conftest.$ac_ext
9906 cat >>conftest.$ac_ext <<_ACEOF
9907 /* end confdefs.h. */
9908 $ac_includes_default
9909 #include <sys/mkdev.h>
9911 rm -f conftest.$ac_objext
9912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9913 (eval $ac_compile) 2>&5
9915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9916 (exit $ac_status); } &&
9917 { ac_try='test -s conftest.$ac_objext'
9918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9922 (exit $ac_status); }; }; then
9923 ac_header_compiler=yes
9925 echo "$as_me: failed program was:" >&5
9926 sed 's/^/| /' conftest.$ac_ext >&5
9928 ac_header_compiler=no
9930 rm -f conftest.$ac_objext conftest.$ac_ext
9931 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9932 echo "${ECHO_T}$ac_header_compiler" >&6
9934 # Is the header present?
9935 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
9936 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
9937 cat >conftest.$ac_ext <<_ACEOF
9938 #line $LINENO "configure"
9941 cat confdefs.h >>conftest.$ac_ext
9942 cat >>conftest.$ac_ext <<_ACEOF
9943 /* end confdefs.h. */
9944 #include <sys/mkdev.h>
9946 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9947 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9949 grep -v '^ *+' conftest.er1 >conftest.err
9951 cat conftest.err >&5
9952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953 (exit $ac_status); } >/dev/null; then
9954 if test -s conftest.err; then
9955 ac_cpp_err=$ac_c_preproc_warn_flag
9962 if test -z "$ac_cpp_err"; then
9963 ac_header_preproc=yes
9965 echo "$as_me: failed program was:" >&5
9966 sed 's/^/| /' conftest.$ac_ext >&5
9968 ac_header_preproc=no
9970 rm -f conftest.err conftest.$ac_ext
9971 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9972 echo "${ECHO_T}$ac_header_preproc" >&6
9974 # So? What about this header?
9975 case $ac_header_compiler:$ac_header_preproc in
9977 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
9978 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9979 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9980 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9983 ## ------------------------------------ ##
9984 ## Report this to bug-autoconf@gnu.org. ##
9985 ## ------------------------------------ ##
9988 sed "s/^/$as_me: WARNING: /" >&2
9991 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
9992 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
9993 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
9994 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
9995 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9996 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9999 ## ------------------------------------ ##
10000 ## Report this to bug-autoconf@gnu.org. ##
10001 ## ------------------------------------ ##
10004 sed "s/^/$as_me: WARNING: /" >&2
10007 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
10008 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
10009 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
10010 echo $ECHO_N "(cached) $ECHO_C" >&6
10012 ac_cv_header_sys_mkdev_h=$ac_header_preproc
10014 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
10015 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
10018 if test $ac_cv_header_sys_mkdev_h = yes; then
10020 cat >>confdefs.h <<\_ACEOF
10021 #define MAJOR_IN_MKDEV 1
10028 if test $ac_cv_header_sys_mkdev_h = no; then
10029 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
10030 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
10031 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
10032 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
10033 echo $ECHO_N "(cached) $ECHO_C" >&6
10035 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
10036 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
10038 # Is the header compilable?
10039 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
10040 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
10041 cat >conftest.$ac_ext <<_ACEOF
10042 #line $LINENO "configure"
10045 cat confdefs.h >>conftest.$ac_ext
10046 cat >>conftest.$ac_ext <<_ACEOF
10047 /* end confdefs.h. */
10048 $ac_includes_default
10049 #include <sys/sysmacros.h>
10051 rm -f conftest.$ac_objext
10052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10053 (eval $ac_compile) 2>&5
10055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056 (exit $ac_status); } &&
10057 { ac_try='test -s conftest.$ac_objext'
10058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10059 (eval $ac_try) 2>&5
10061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062 (exit $ac_status); }; }; then
10063 ac_header_compiler=yes
10065 echo "$as_me: failed program was:" >&5
10066 sed 's/^/| /' conftest.$ac_ext >&5
10068 ac_header_compiler=no
10070 rm -f conftest.$ac_objext conftest.$ac_ext
10071 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10072 echo "${ECHO_T}$ac_header_compiler" >&6
10074 # Is the header present?
10075 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
10076 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
10077 cat >conftest.$ac_ext <<_ACEOF
10078 #line $LINENO "configure"
10081 cat confdefs.h >>conftest.$ac_ext
10082 cat >>conftest.$ac_ext <<_ACEOF
10083 /* end confdefs.h. */
10084 #include <sys/sysmacros.h>
10086 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10087 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10089 grep -v '^ *+' conftest.er1 >conftest.err
10091 cat conftest.err >&5
10092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10093 (exit $ac_status); } >/dev/null; then
10094 if test -s conftest.err; then
10095 ac_cpp_err=$ac_c_preproc_warn_flag
10102 if test -z "$ac_cpp_err"; then
10103 ac_header_preproc=yes
10105 echo "$as_me: failed program was:" >&5
10106 sed 's/^/| /' conftest.$ac_ext >&5
10108 ac_header_preproc=no
10110 rm -f conftest.err conftest.$ac_ext
10111 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10112 echo "${ECHO_T}$ac_header_preproc" >&6
10114 # So? What about this header?
10115 case $ac_header_compiler:$ac_header_preproc in
10117 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
10118 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10119 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
10120 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
10123 ## ------------------------------------ ##
10124 ## Report this to bug-autoconf@gnu.org. ##
10125 ## ------------------------------------ ##
10128 sed "s/^/$as_me: WARNING: /" >&2
10131 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
10132 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
10133 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
10134 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
10135 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
10136 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
10139 ## ------------------------------------ ##
10140 ## Report this to bug-autoconf@gnu.org. ##
10141 ## ------------------------------------ ##
10144 sed "s/^/$as_me: WARNING: /" >&2
10147 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
10148 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
10149 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
10150 echo $ECHO_N "(cached) $ECHO_C" >&6
10152 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
10154 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
10155 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
10158 if test $ac_cv_header_sys_sysmacros_h = yes; then
10160 cat >>confdefs.h <<\_ACEOF
10161 #define MAJOR_IN_SYSMACROS 1
10175 ac_header_dirent=no
10176 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10177 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10178 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10179 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
10180 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10181 echo $ECHO_N "(cached) $ECHO_C" >&6
10183 cat >conftest.$ac_ext <<_ACEOF
10184 #line $LINENO "configure"
10187 cat confdefs.h >>conftest.$ac_ext
10188 cat >>conftest.$ac_ext <<_ACEOF
10189 /* end confdefs.h. */
10190 #include <sys/types.h>
10202 rm -f conftest.$ac_objext
10203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10204 (eval $ac_compile) 2>&5
10206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207 (exit $ac_status); } &&
10208 { ac_try='test -s conftest.$ac_objext'
10209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10210 (eval $ac_try) 2>&5
10212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213 (exit $ac_status); }; }; then
10214 eval "$as_ac_Header=yes"
10216 echo "$as_me: failed program was:" >&5
10217 sed 's/^/| /' conftest.$ac_ext >&5
10219 eval "$as_ac_Header=no"
10221 rm -f conftest.$ac_objext conftest.$ac_ext
10223 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10224 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10225 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10226 cat >>confdefs.h <<_ACEOF
10227 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10230 ac_header_dirent=$ac_hdr; break
10234 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10235 if test $ac_header_dirent = dirent.h; then
10236 echo "$as_me:$LINENO: checking for library containing opendir" >&5
10237 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
10238 if test "${ac_cv_search_opendir+set}" = set; then
10239 echo $ECHO_N "(cached) $ECHO_C" >&6
10241 ac_func_search_save_LIBS=$LIBS
10242 ac_cv_search_opendir=no
10243 cat >conftest.$ac_ext <<_ACEOF
10244 #line $LINENO "configure"
10247 cat confdefs.h >>conftest.$ac_ext
10248 cat >>conftest.$ac_ext <<_ACEOF
10249 /* end confdefs.h. */
10251 /* Override any gcc2 internal prototype to avoid an error. */
10255 /* We use char because int might match the return type of a gcc2
10256 builtin and then its argument prototype would still apply. */
10266 rm -f conftest.$ac_objext conftest$ac_exeext
10267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10268 (eval $ac_link) 2>&5
10270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10271 (exit $ac_status); } &&
10272 { ac_try='test -s conftest$ac_exeext'
10273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10274 (eval $ac_try) 2>&5
10276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10277 (exit $ac_status); }; }; then
10278 ac_cv_search_opendir="none required"
10280 echo "$as_me: failed program was:" >&5
10281 sed 's/^/| /' conftest.$ac_ext >&5
10284 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10285 if test "$ac_cv_search_opendir" = no; then
10286 for ac_lib in dir; do
10287 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10288 cat >conftest.$ac_ext <<_ACEOF
10289 #line $LINENO "configure"
10292 cat confdefs.h >>conftest.$ac_ext
10293 cat >>conftest.$ac_ext <<_ACEOF
10294 /* end confdefs.h. */
10296 /* Override any gcc2 internal prototype to avoid an error. */
10300 /* We use char because int might match the return type of a gcc2
10301 builtin and then its argument prototype would still apply. */
10311 rm -f conftest.$ac_objext conftest$ac_exeext
10312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10313 (eval $ac_link) 2>&5
10315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10316 (exit $ac_status); } &&
10317 { ac_try='test -s conftest$ac_exeext'
10318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10319 (eval $ac_try) 2>&5
10321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322 (exit $ac_status); }; }; then
10323 ac_cv_search_opendir="-l$ac_lib"
10326 echo "$as_me: failed program was:" >&5
10327 sed 's/^/| /' conftest.$ac_ext >&5
10330 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10333 LIBS=$ac_func_search_save_LIBS
10335 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10336 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10337 if test "$ac_cv_search_opendir" != no; then
10338 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10343 echo "$as_me:$LINENO: checking for library containing opendir" >&5
10344 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
10345 if test "${ac_cv_search_opendir+set}" = set; then
10346 echo $ECHO_N "(cached) $ECHO_C" >&6
10348 ac_func_search_save_LIBS=$LIBS
10349 ac_cv_search_opendir=no
10350 cat >conftest.$ac_ext <<_ACEOF
10351 #line $LINENO "configure"
10354 cat confdefs.h >>conftest.$ac_ext
10355 cat >>conftest.$ac_ext <<_ACEOF
10356 /* end confdefs.h. */
10358 /* Override any gcc2 internal prototype to avoid an error. */
10362 /* We use char because int might match the return type of a gcc2
10363 builtin and then its argument prototype would still apply. */
10373 rm -f conftest.$ac_objext conftest$ac_exeext
10374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10375 (eval $ac_link) 2>&5
10377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10378 (exit $ac_status); } &&
10379 { ac_try='test -s conftest$ac_exeext'
10380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10381 (eval $ac_try) 2>&5
10383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384 (exit $ac_status); }; }; then
10385 ac_cv_search_opendir="none required"
10387 echo "$as_me: failed program was:" >&5
10388 sed 's/^/| /' conftest.$ac_ext >&5
10391 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10392 if test "$ac_cv_search_opendir" = no; then
10393 for ac_lib in x; do
10394 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10395 cat >conftest.$ac_ext <<_ACEOF
10396 #line $LINENO "configure"
10399 cat confdefs.h >>conftest.$ac_ext
10400 cat >>conftest.$ac_ext <<_ACEOF
10401 /* end confdefs.h. */
10403 /* Override any gcc2 internal prototype to avoid an error. */
10407 /* We use char because int might match the return type of a gcc2
10408 builtin and then its argument prototype would still apply. */
10418 rm -f conftest.$ac_objext conftest$ac_exeext
10419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10420 (eval $ac_link) 2>&5
10422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10423 (exit $ac_status); } &&
10424 { ac_try='test -s conftest$ac_exeext'
10425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10426 (eval $ac_try) 2>&5
10428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10429 (exit $ac_status); }; }; then
10430 ac_cv_search_opendir="-l$ac_lib"
10433 echo "$as_me: failed program was:" >&5
10434 sed 's/^/| /' conftest.$ac_ext >&5
10437 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10440 LIBS=$ac_func_search_save_LIBS
10442 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10443 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10444 if test "$ac_cv_search_opendir" != no; then
10445 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10451 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10452 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
10453 if test "${ac_cv_header_stat_broken+set}" = set; then
10454 echo $ECHO_N "(cached) $ECHO_C" >&6
10456 cat >conftest.$ac_ext <<_ACEOF
10457 #line $LINENO "configure"
10460 cat confdefs.h >>conftest.$ac_ext
10461 cat >>conftest.$ac_ext <<_ACEOF
10462 /* end confdefs.h. */
10463 #include <sys/types.h>
10464 #include <sys/stat.h>
10466 #if defined(S_ISBLK) && defined(S_IFDIR)
10467 # if S_ISBLK (S_IFDIR)
10472 #if defined(S_ISBLK) && defined(S_IFCHR)
10473 # if S_ISBLK (S_IFCHR)
10478 #if defined(S_ISLNK) && defined(S_IFREG)
10479 # if S_ISLNK (S_IFREG)
10484 #if defined(S_ISSOCK) && defined(S_IFREG)
10485 # if S_ISSOCK (S_IFREG)
10491 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10492 $EGREP "You lose" >/dev/null 2>&1; then
10493 ac_cv_header_stat_broken=yes
10495 ac_cv_header_stat_broken=no
10500 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10501 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
10502 if test $ac_cv_header_stat_broken = yes; then
10504 cat >>confdefs.h <<\_ACEOF
10505 #define STAT_MACROS_BROKEN 1
10510 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10511 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
10512 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10513 echo $ECHO_N "(cached) $ECHO_C" >&6
10515 cat >conftest.$ac_ext <<_ACEOF
10516 #line $LINENO "configure"
10519 cat confdefs.h >>conftest.$ac_ext
10520 cat >>conftest.$ac_ext <<_ACEOF
10521 /* end confdefs.h. */
10522 #include <sys/types.h>
10523 #include <sys/wait.h>
10524 #ifndef WEXITSTATUS
10525 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
10528 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10536 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10541 rm -f conftest.$ac_objext
10542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10543 (eval $ac_compile) 2>&5
10545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10546 (exit $ac_status); } &&
10547 { ac_try='test -s conftest.$ac_objext'
10548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10549 (eval $ac_try) 2>&5
10551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10552 (exit $ac_status); }; }; then
10553 ac_cv_header_sys_wait_h=yes
10555 echo "$as_me: failed program was:" >&5
10556 sed 's/^/| /' conftest.$ac_ext >&5
10558 ac_cv_header_sys_wait_h=no
10560 rm -f conftest.$ac_objext conftest.$ac_ext
10562 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10563 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
10564 if test $ac_cv_header_sys_wait_h = yes; then
10566 cat >>confdefs.h <<\_ACEOF
10567 #define HAVE_SYS_WAIT_H 1
10572 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10573 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10574 if test "${ac_cv_header_time+set}" = set; then
10575 echo $ECHO_N "(cached) $ECHO_C" >&6
10577 cat >conftest.$ac_ext <<_ACEOF
10578 #line $LINENO "configure"
10581 cat confdefs.h >>conftest.$ac_ext
10582 cat >>conftest.$ac_ext <<_ACEOF
10583 /* end confdefs.h. */
10584 #include <sys/types.h>
10585 #include <sys/time.h>
10591 if ((struct tm *) 0)
10597 rm -f conftest.$ac_objext
10598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10599 (eval $ac_compile) 2>&5
10601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10602 (exit $ac_status); } &&
10603 { ac_try='test -s conftest.$ac_objext'
10604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10605 (eval $ac_try) 2>&5
10607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10608 (exit $ac_status); }; }; then
10609 ac_cv_header_time=yes
10611 echo "$as_me: failed program was:" >&5
10612 sed 's/^/| /' conftest.$ac_ext >&5
10614 ac_cv_header_time=no
10616 rm -f conftest.$ac_objext conftest.$ac_ext
10618 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10619 echo "${ECHO_T}$ac_cv_header_time" >&6
10620 if test $ac_cv_header_time = yes; then
10622 cat >>confdefs.h <<\_ACEOF
10623 #define TIME_WITH_SYS_TIME 1
10629 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
10630 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
10631 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
10632 echo $ECHO_N "(cached) $ECHO_C" >&6
10634 cat >conftest.$ac_ext <<_ACEOF
10635 #line $LINENO "configure"
10638 cat confdefs.h >>conftest.$ac_ext
10639 cat >>conftest.$ac_ext <<_ACEOF
10640 /* end confdefs.h. */
10641 $ac_includes_default
10645 static struct stat ac_aggr;
10646 if (ac_aggr.st_blksize)
10652 rm -f conftest.$ac_objext
10653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10654 (eval $ac_compile) 2>&5
10656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10657 (exit $ac_status); } &&
10658 { ac_try='test -s conftest.$ac_objext'
10659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10660 (eval $ac_try) 2>&5
10662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663 (exit $ac_status); }; }; then
10664 ac_cv_member_struct_stat_st_blksize=yes
10666 echo "$as_me: failed program was:" >&5
10667 sed 's/^/| /' conftest.$ac_ext >&5
10669 cat >conftest.$ac_ext <<_ACEOF
10670 #line $LINENO "configure"
10673 cat confdefs.h >>conftest.$ac_ext
10674 cat >>conftest.$ac_ext <<_ACEOF
10675 /* end confdefs.h. */
10676 $ac_includes_default
10680 static struct stat ac_aggr;
10681 if (sizeof ac_aggr.st_blksize)
10687 rm -f conftest.$ac_objext
10688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10689 (eval $ac_compile) 2>&5
10691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10692 (exit $ac_status); } &&
10693 { ac_try='test -s conftest.$ac_objext'
10694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10695 (eval $ac_try) 2>&5
10697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698 (exit $ac_status); }; }; then
10699 ac_cv_member_struct_stat_st_blksize=yes
10701 echo "$as_me: failed program was:" >&5
10702 sed 's/^/| /' conftest.$ac_ext >&5
10704 ac_cv_member_struct_stat_st_blksize=no
10706 rm -f conftest.$ac_objext conftest.$ac_ext
10708 rm -f conftest.$ac_objext conftest.$ac_ext
10710 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
10711 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
10712 if test $ac_cv_member_struct_stat_st_blksize = yes; then
10714 cat >>confdefs.h <<_ACEOF
10715 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
10719 cat >>confdefs.h <<\_ACEOF
10720 #define HAVE_ST_BLKSIZE 1
10726 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
10727 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
10728 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
10729 echo $ECHO_N "(cached) $ECHO_C" >&6
10731 cat >conftest.$ac_ext <<_ACEOF
10732 #line $LINENO "configure"
10735 cat confdefs.h >>conftest.$ac_ext
10736 cat >>conftest.$ac_ext <<_ACEOF
10737 /* end confdefs.h. */
10738 $ac_includes_default
10742 static struct stat ac_aggr;
10743 if (ac_aggr.st_blocks)
10749 rm -f conftest.$ac_objext
10750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10751 (eval $ac_compile) 2>&5
10753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10754 (exit $ac_status); } &&
10755 { ac_try='test -s conftest.$ac_objext'
10756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10757 (eval $ac_try) 2>&5
10759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10760 (exit $ac_status); }; }; then
10761 ac_cv_member_struct_stat_st_blocks=yes
10763 echo "$as_me: failed program was:" >&5
10764 sed 's/^/| /' conftest.$ac_ext >&5
10766 cat >conftest.$ac_ext <<_ACEOF
10767 #line $LINENO "configure"
10770 cat confdefs.h >>conftest.$ac_ext
10771 cat >>conftest.$ac_ext <<_ACEOF
10772 /* end confdefs.h. */
10773 $ac_includes_default
10777 static struct stat ac_aggr;
10778 if (sizeof ac_aggr.st_blocks)
10784 rm -f conftest.$ac_objext
10785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10786 (eval $ac_compile) 2>&5
10788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10789 (exit $ac_status); } &&
10790 { ac_try='test -s conftest.$ac_objext'
10791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10792 (eval $ac_try) 2>&5
10794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10795 (exit $ac_status); }; }; then
10796 ac_cv_member_struct_stat_st_blocks=yes
10798 echo "$as_me: failed program was:" >&5
10799 sed 's/^/| /' conftest.$ac_ext >&5
10801 ac_cv_member_struct_stat_st_blocks=no
10803 rm -f conftest.$ac_objext conftest.$ac_ext
10805 rm -f conftest.$ac_objext conftest.$ac_ext
10807 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
10808 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
10809 if test $ac_cv_member_struct_stat_st_blocks = yes; then
10811 cat >>confdefs.h <<_ACEOF
10812 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
10816 cat >>confdefs.h <<\_ACEOF
10817 #define HAVE_ST_BLOCKS 1
10821 LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
10825 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10826 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10827 if test "${ac_cv_struct_tm+set}" = set; then
10828 echo $ECHO_N "(cached) $ECHO_C" >&6
10830 cat >conftest.$ac_ext <<_ACEOF
10831 #line $LINENO "configure"
10834 cat confdefs.h >>conftest.$ac_ext
10835 cat >>conftest.$ac_ext <<_ACEOF
10836 /* end confdefs.h. */
10837 #include <sys/types.h>
10843 struct tm *tp; tp->tm_sec;
10848 rm -f conftest.$ac_objext
10849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10850 (eval $ac_compile) 2>&5
10852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10853 (exit $ac_status); } &&
10854 { ac_try='test -s conftest.$ac_objext'
10855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10856 (eval $ac_try) 2>&5
10858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10859 (exit $ac_status); }; }; then
10860 ac_cv_struct_tm=time.h
10862 echo "$as_me: failed program was:" >&5
10863 sed 's/^/| /' conftest.$ac_ext >&5
10865 ac_cv_struct_tm=sys/time.h
10867 rm -f conftest.$ac_objext conftest.$ac_ext
10869 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10870 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10871 if test $ac_cv_struct_tm = sys/time.h; then
10873 cat >>confdefs.h <<\_ACEOF
10874 #define TM_IN_SYS_TIME 1
10879 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
10880 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
10881 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
10882 echo $ECHO_N "(cached) $ECHO_C" >&6
10884 cat >conftest.$ac_ext <<_ACEOF
10885 #line $LINENO "configure"
10888 cat confdefs.h >>conftest.$ac_ext
10889 cat >>conftest.$ac_ext <<_ACEOF
10890 /* end confdefs.h. */
10891 #include <sys/types.h>
10892 #include <$ac_cv_struct_tm>
10898 static struct tm ac_aggr;
10899 if (ac_aggr.tm_zone)
10905 rm -f conftest.$ac_objext
10906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10907 (eval $ac_compile) 2>&5
10909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10910 (exit $ac_status); } &&
10911 { ac_try='test -s conftest.$ac_objext'
10912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10913 (eval $ac_try) 2>&5
10915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10916 (exit $ac_status); }; }; then
10917 ac_cv_member_struct_tm_tm_zone=yes
10919 echo "$as_me: failed program was:" >&5
10920 sed 's/^/| /' conftest.$ac_ext >&5
10922 cat >conftest.$ac_ext <<_ACEOF
10923 #line $LINENO "configure"
10926 cat confdefs.h >>conftest.$ac_ext
10927 cat >>conftest.$ac_ext <<_ACEOF
10928 /* end confdefs.h. */
10929 #include <sys/types.h>
10930 #include <$ac_cv_struct_tm>
10936 static struct tm ac_aggr;
10937 if (sizeof ac_aggr.tm_zone)
10943 rm -f conftest.$ac_objext
10944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10945 (eval $ac_compile) 2>&5
10947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10948 (exit $ac_status); } &&
10949 { ac_try='test -s conftest.$ac_objext'
10950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10951 (eval $ac_try) 2>&5
10953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10954 (exit $ac_status); }; }; then
10955 ac_cv_member_struct_tm_tm_zone=yes
10957 echo "$as_me: failed program was:" >&5
10958 sed 's/^/| /' conftest.$ac_ext >&5
10960 ac_cv_member_struct_tm_tm_zone=no
10962 rm -f conftest.$ac_objext conftest.$ac_ext
10964 rm -f conftest.$ac_objext conftest.$ac_ext
10966 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
10967 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
10968 if test $ac_cv_member_struct_tm_tm_zone = yes; then
10970 cat >>confdefs.h <<_ACEOF
10971 #define HAVE_STRUCT_TM_TM_ZONE 1
10977 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
10979 cat >>confdefs.h <<\_ACEOF
10980 #define HAVE_TM_ZONE 1
10984 echo "$as_me:$LINENO: checking for tzname" >&5
10985 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
10986 if test "${ac_cv_var_tzname+set}" = set; then
10987 echo $ECHO_N "(cached) $ECHO_C" >&6
10989 cat >conftest.$ac_ext <<_ACEOF
10990 #line $LINENO "configure"
10993 cat confdefs.h >>conftest.$ac_ext
10994 cat >>conftest.$ac_ext <<_ACEOF
10995 /* end confdefs.h. */
10997 #ifndef tzname /* For SGI. */
10998 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
11009 rm -f conftest.$ac_objext conftest$ac_exeext
11010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11011 (eval $ac_link) 2>&5
11013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11014 (exit $ac_status); } &&
11015 { ac_try='test -s conftest$ac_exeext'
11016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11017 (eval $ac_try) 2>&5
11019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11020 (exit $ac_status); }; }; then
11021 ac_cv_var_tzname=yes
11023 echo "$as_me: failed program was:" >&5
11024 sed 's/^/| /' conftest.$ac_ext >&5
11026 ac_cv_var_tzname=no
11028 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11030 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
11031 echo "${ECHO_T}$ac_cv_var_tzname" >&6
11032 if test $ac_cv_var_tzname = yes; then
11034 cat >>confdefs.h <<\_ACEOF
11035 #define HAVE_TZNAME 1
11042 echo "$as_me:$LINENO: checking for utime.h" >&5
11043 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
11044 if test "${ba_cv_header_utime_h+set}" = set; then
11045 echo $ECHO_N "(cached) $ECHO_C" >&6
11047 cat >conftest.$ac_ext <<_ACEOF
11048 #line $LINENO "configure"
11051 cat confdefs.h >>conftest.$ac_ext
11052 cat >>conftest.$ac_ext <<_ACEOF
11053 /* end confdefs.h. */
11055 #include <sys/types.h>
11065 rm -f conftest.$ac_objext
11066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11067 (eval $ac_compile) 2>&5
11069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11070 (exit $ac_status); } &&
11071 { ac_try='test -s conftest.$ac_objext'
11072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11073 (eval $ac_try) 2>&5
11075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11076 (exit $ac_status); }; }; then
11077 ba_cv_header_utime_h=yes
11079 echo "$as_me: failed program was:" >&5
11080 sed 's/^/| /' conftest.$ac_ext >&5
11082 ba_cv_header_utime_h=no
11084 rm -f conftest.$ac_objext conftest.$ac_ext
11086 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
11087 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
11088 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
11089 #define HAVE_UTIME_H 1
11093 echo "$as_me:$LINENO: checking for socklen_t" >&5
11094 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
11095 if test "${ba_cv_header_socklen_t+set}" = set; then
11096 echo $ECHO_N "(cached) $ECHO_C" >&6
11098 cat >conftest.$ac_ext <<_ACEOF
11099 #line $LINENO "configure"
11102 cat confdefs.h >>conftest.$ac_ext
11103 cat >>conftest.$ac_ext <<_ACEOF
11104 /* end confdefs.h. */
11106 #include <sys/types.h>
11107 #include <sys/socket.h>
11116 rm -f conftest.$ac_objext
11117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11118 (eval $ac_compile) 2>&5
11120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11121 (exit $ac_status); } &&
11122 { ac_try='test -s conftest.$ac_objext'
11123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11124 (eval $ac_try) 2>&5
11126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11127 (exit $ac_status); }; }; then
11128 ba_cv_header_socklen_t=yes
11130 echo "$as_me: failed program was:" >&5
11131 sed 's/^/| /' conftest.$ac_ext >&5
11133 ba_cv_header_socklen_t=no
11135 rm -f conftest.$ac_objext conftest.$ac_ext
11137 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
11138 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
11139 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
11140 #define HAVE_SOCKLEN_T 1
11144 echo "$as_me:$LINENO: checking for bigendian" >&5
11145 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
11146 if test "${ba_cv_bigendian+set}" = set; then
11147 echo $ECHO_N "(cached) $ECHO_C" >&6
11149 if test "$cross_compiling" = yes; then
11152 cat >conftest.$ac_ext <<_ACEOF
11153 #line $LINENO "configure"
11156 cat confdefs.h >>conftest.$ac_ext
11157 cat >>conftest.$ac_ext <<_ACEOF
11158 /* end confdefs.h. */
11159 main(){long a=1L; char *p=(char *)&a; exit(*p);}
11161 rm -f conftest$ac_exeext
11162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11163 (eval $ac_link) 2>&5
11165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11166 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11168 (eval $ac_try) 2>&5
11170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11171 (exit $ac_status); }; }; then
11172 ba_cv_bigendian=yes
11174 echo "$as_me: program exited with status $ac_status" >&5
11175 echo "$as_me: failed program was:" >&5
11176 sed 's/^/| /' conftest.$ac_ext >&5
11178 ( exit $ac_status )
11181 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11184 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
11185 echo "${ECHO_T}$ba_cv_bigendian" >&6
11186 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
11187 #define HAVE_BIGENDIAN 1
11192 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11193 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
11194 if test "${ac_cv_c_const+set}" = set; then
11195 echo $ECHO_N "(cached) $ECHO_C" >&6
11197 cat >conftest.$ac_ext <<_ACEOF
11198 #line $LINENO "configure"
11201 cat confdefs.h >>conftest.$ac_ext
11202 cat >>conftest.$ac_ext <<_ACEOF
11203 /* end confdefs.h. */
11208 /* FIXME: Include the comments suggested by Paul. */
11209 #ifndef __cplusplus
11210 /* Ultrix mips cc rejects this. */
11211 typedef int charset[2];
11213 /* SunOS 4.1.1 cc rejects this. */
11214 char const *const *ccp;
11216 /* NEC SVR4.0.2 mips cc rejects this. */
11217 struct point {int x, y;};
11218 static struct point const zero = {0,0};
11219 /* AIX XL C 1.02.0.0 rejects this.
11220 It does not let you subtract one const X* pointer from another in
11221 an arm of an if-expression whose if-part is not a constant
11223 const char *g = "string";
11224 ccp = &g + (g ? g-g : 0);
11225 /* HPUX 7.0 cc rejects these. */
11228 ccp = (char const *const *) p;
11229 { /* SCO 3.2v4 cc rejects this. */
11231 char const *s = 0 ? (char *) 0 : (char const *) 0;
11235 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11236 int x[] = {25, 17};
11237 const int *foo = &x[0];
11240 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11241 typedef const int *iptr;
11245 { /* AIX XL C 1.02.0.0 rejects this saying
11246 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11247 struct s { int j; const int *ap[3]; };
11248 struct s *b; b->j = 5;
11250 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11251 const int foo = 10;
11259 rm -f conftest.$ac_objext
11260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11261 (eval $ac_compile) 2>&5
11263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264 (exit $ac_status); } &&
11265 { ac_try='test -s conftest.$ac_objext'
11266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11267 (eval $ac_try) 2>&5
11269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11270 (exit $ac_status); }; }; then
11273 echo "$as_me: failed program was:" >&5
11274 sed 's/^/| /' conftest.$ac_ext >&5
11278 rm -f conftest.$ac_objext conftest.$ac_ext
11280 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11281 echo "${ECHO_T}$ac_cv_c_const" >&6
11282 if test $ac_cv_c_const = no; then
11284 cat >>confdefs.h <<\_ACEOF
11292 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
11293 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
11295 # The order of these tests is important.
11296 cat >conftest.$ac_ext <<_ACEOF
11297 #line $LINENO "configure"
11300 cat confdefs.h >>conftest.$ac_ext
11301 cat >>conftest.$ac_ext <<_ACEOF
11302 /* end confdefs.h. */
11303 #include <sys/statvfs.h>
11304 #include <sys/fstyp.h>
11306 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11307 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11309 grep -v '^ *+' conftest.er1 >conftest.err
11311 cat conftest.err >&5
11312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11313 (exit $ac_status); } >/dev/null; then
11314 if test -s conftest.err; then
11315 ac_cpp_err=$ac_c_preproc_warn_flag
11322 if test -z "$ac_cpp_err"; then
11323 cat >>confdefs.h <<\_ACEOF
11324 #define FSTYPE_STATVFS 1
11328 echo "$as_me: failed program was:" >&5
11329 sed 's/^/| /' conftest.$ac_ext >&5
11333 rm -f conftest.err conftest.$ac_ext
11334 if test $fstype = no; then
11335 cat >conftest.$ac_ext <<_ACEOF
11336 #line $LINENO "configure"
11339 cat confdefs.h >>conftest.$ac_ext
11340 cat >>conftest.$ac_ext <<_ACEOF
11341 /* end confdefs.h. */
11342 #include <sys/statfs.h>
11343 #include <sys/fstyp.h>
11345 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11346 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11348 grep -v '^ *+' conftest.er1 >conftest.err
11350 cat conftest.err >&5
11351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11352 (exit $ac_status); } >/dev/null; then
11353 if test -s conftest.err; then
11354 ac_cpp_err=$ac_c_preproc_warn_flag
11361 if test -z "$ac_cpp_err"; then
11362 cat >>confdefs.h <<\_ACEOF
11363 #define FSTYPE_USG_STATFS 1
11367 echo "$as_me: failed program was:" >&5
11368 sed 's/^/| /' conftest.$ac_ext >&5
11372 rm -f conftest.err conftest.$ac_ext
11374 if test $fstype = no; then
11375 cat >conftest.$ac_ext <<_ACEOF
11376 #line $LINENO "configure"
11379 cat confdefs.h >>conftest.$ac_ext
11380 cat >>conftest.$ac_ext <<_ACEOF
11381 /* end confdefs.h. */
11382 #include <sys/statfs.h>
11383 #include <sys/vmount.h>
11385 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11386 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11388 grep -v '^ *+' conftest.er1 >conftest.err
11390 cat conftest.err >&5
11391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11392 (exit $ac_status); } >/dev/null; then
11393 if test -s conftest.err; then
11394 ac_cpp_err=$ac_c_preproc_warn_flag
11401 if test -z "$ac_cpp_err"; then
11402 cat >>confdefs.h <<\_ACEOF
11403 #define FSTYPE_AIX_STATFS 1
11407 echo "$as_me: failed program was:" >&5
11408 sed 's/^/| /' conftest.$ac_ext >&5
11412 rm -f conftest.err conftest.$ac_ext
11414 if test $fstype = no; then
11415 cat >conftest.$ac_ext <<_ACEOF
11416 #line $LINENO "configure"
11419 cat confdefs.h >>conftest.$ac_ext
11420 cat >>conftest.$ac_ext <<_ACEOF
11421 /* end confdefs.h. */
11422 #include <mntent.h>
11424 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11425 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11427 grep -v '^ *+' conftest.er1 >conftest.err
11429 cat conftest.err >&5
11430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11431 (exit $ac_status); } >/dev/null; then
11432 if test -s conftest.err; then
11433 ac_cpp_err=$ac_c_preproc_warn_flag
11440 if test -z "$ac_cpp_err"; then
11441 cat >>confdefs.h <<\_ACEOF
11442 #define FSTYPE_MNTENT 1
11446 echo "$as_me: failed program was:" >&5
11447 sed 's/^/| /' conftest.$ac_ext >&5
11451 rm -f conftest.err conftest.$ac_ext
11453 if test $fstype = no; then
11454 cat >conftest.$ac_ext <<_ACEOF
11455 #line $LINENO "configure"
11458 cat confdefs.h >>conftest.$ac_ext
11459 cat >>conftest.$ac_ext <<_ACEOF
11460 /* end confdefs.h. */
11461 #include <sys/mount.h>
11464 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11465 $EGREP "f_type;" >/dev/null 2>&1; then
11466 cat >>confdefs.h <<\_ACEOF
11467 #define FSTYPE_STATFS 1
11474 if test $fstype = no; then
11475 cat >conftest.$ac_ext <<_ACEOF
11476 #line $LINENO "configure"
11479 cat confdefs.h >>conftest.$ac_ext
11480 cat >>conftest.$ac_ext <<_ACEOF
11481 /* end confdefs.h. */
11482 #include <sys/mount.h>
11483 #include <sys/fs_types.h>
11485 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11486 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11488 grep -v '^ *+' conftest.er1 >conftest.err
11490 cat conftest.err >&5
11491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11492 (exit $ac_status); } >/dev/null; then
11493 if test -s conftest.err; then
11494 ac_cpp_err=$ac_c_preproc_warn_flag
11501 if test -z "$ac_cpp_err"; then
11502 cat >>confdefs.h <<\_ACEOF
11503 #define FSTYPE_GETMNT 1
11507 echo "$as_me: failed program was:" >&5
11508 sed 's/^/| /' conftest.$ac_ext >&5
11512 rm -f conftest.err conftest.$ac_ext
11514 echo "$as_me:$LINENO: result: $fstype" >&5
11515 echo "${ECHO_T}$fstype" >&6
11517 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
11518 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
11519 if test "${ac_cv_type_signal+set}" = set; then
11520 echo $ECHO_N "(cached) $ECHO_C" >&6
11522 cat >conftest.$ac_ext <<_ACEOF
11523 #line $LINENO "configure"
11526 cat confdefs.h >>conftest.$ac_ext
11527 cat >>conftest.$ac_ext <<_ACEOF
11528 /* end confdefs.h. */
11529 #include <sys/types.h>
11530 #include <signal.h>
11535 extern "C" void (*signal (int, void (*)(int)))(int);
11537 void (*signal ()) ();
11548 rm -f conftest.$ac_objext
11549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11550 (eval $ac_compile) 2>&5
11552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11553 (exit $ac_status); } &&
11554 { ac_try='test -s conftest.$ac_objext'
11555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11556 (eval $ac_try) 2>&5
11558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11559 (exit $ac_status); }; }; then
11560 ac_cv_type_signal=void
11562 echo "$as_me: failed program was:" >&5
11563 sed 's/^/| /' conftest.$ac_ext >&5
11565 ac_cv_type_signal=int
11567 rm -f conftest.$ac_objext conftest.$ac_ext
11569 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
11570 echo "${ECHO_T}$ac_cv_type_signal" >&6
11572 cat >>confdefs.h <<_ACEOF
11573 #define RETSIGTYPE $ac_cv_type_signal
11578 echo "$as_me:$LINENO: checking for type of signal functions" >&5
11579 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
11580 if test "${bash_cv_signal_vintage+set}" = set; then
11581 echo $ECHO_N "(cached) $ECHO_C" >&6
11584 cat >conftest.$ac_ext <<_ACEOF
11585 #line $LINENO "configure"
11588 cat confdefs.h >>conftest.$ac_ext
11589 cat >>conftest.$ac_ext <<_ACEOF
11590 /* end confdefs.h. */
11591 #include <signal.h>
11597 struct sigaction sa;
11598 sigemptyset(&ss); sigsuspend(&ss);
11599 sigaction(SIGINT, &sa, (struct sigaction *) 0);
11600 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
11606 rm -f conftest.$ac_objext conftest$ac_exeext
11607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11608 (eval $ac_link) 2>&5
11610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11611 (exit $ac_status); } &&
11612 { ac_try='test -s conftest$ac_exeext'
11613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11614 (eval $ac_try) 2>&5
11616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11617 (exit $ac_status); }; }; then
11618 bash_cv_signal_vintage=posix
11620 echo "$as_me: failed program was:" >&5
11621 sed 's/^/| /' conftest.$ac_ext >&5
11624 cat >conftest.$ac_ext <<_ACEOF
11625 #line $LINENO "configure"
11628 cat confdefs.h >>conftest.$ac_ext
11629 cat >>conftest.$ac_ext <<_ACEOF
11630 /* end confdefs.h. */
11631 #include <signal.h>
11636 int mask = sigmask(SIGINT);
11637 sigsetmask(mask); sigblock(mask); sigpause(mask);
11643 rm -f conftest.$ac_objext conftest$ac_exeext
11644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11645 (eval $ac_link) 2>&5
11647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11648 (exit $ac_status); } &&
11649 { ac_try='test -s conftest$ac_exeext'
11650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11651 (eval $ac_try) 2>&5
11653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11654 (exit $ac_status); }; }; then
11655 bash_cv_signal_vintage=4.2bsd
11657 echo "$as_me: failed program was:" >&5
11658 sed 's/^/| /' conftest.$ac_ext >&5
11661 cat >conftest.$ac_ext <<_ACEOF
11662 #line $LINENO "configure"
11665 cat confdefs.h >>conftest.$ac_ext
11666 cat >>conftest.$ac_ext <<_ACEOF
11667 /* end confdefs.h. */
11669 #include <signal.h>
11670 RETSIGTYPE foo() { }
11675 int mask = sigmask(SIGINT);
11676 sigset(SIGINT, foo); sigrelse(SIGINT);
11677 sighold(SIGINT); sigpause(SIGINT);
11683 rm -f conftest.$ac_objext conftest$ac_exeext
11684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11685 (eval $ac_link) 2>&5
11687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11688 (exit $ac_status); } &&
11689 { ac_try='test -s conftest$ac_exeext'
11690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11691 (eval $ac_try) 2>&5
11693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11694 (exit $ac_status); }; }; then
11695 bash_cv_signal_vintage=svr3
11697 echo "$as_me: failed program was:" >&5
11698 sed 's/^/| /' conftest.$ac_ext >&5
11700 bash_cv_signal_vintage=v7
11703 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11706 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11709 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11713 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
11714 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
11715 if test "$bash_cv_signal_vintage" = posix; then
11716 cat >>confdefs.h <<\_ACEOF
11717 #define HAVE_POSIX_SIGNALS 1
11720 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
11721 cat >>confdefs.h <<\_ACEOF
11722 #define HAVE_BSD_SIGNALS 1
11725 elif test "$bash_cv_signal_vintage" = svr3; then
11726 cat >>confdefs.h <<\_ACEOF
11727 #define HAVE_USG_SIGHOLD 1
11732 echo "$as_me:$LINENO: checking for mode_t" >&5
11733 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
11734 if test "${ac_cv_type_mode_t+set}" = set; then
11735 echo $ECHO_N "(cached) $ECHO_C" >&6
11737 cat >conftest.$ac_ext <<_ACEOF
11738 #line $LINENO "configure"
11741 cat confdefs.h >>conftest.$ac_ext
11742 cat >>conftest.$ac_ext <<_ACEOF
11743 /* end confdefs.h. */
11744 $ac_includes_default
11750 if (sizeof (mode_t))
11756 rm -f conftest.$ac_objext
11757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11758 (eval $ac_compile) 2>&5
11760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11761 (exit $ac_status); } &&
11762 { ac_try='test -s conftest.$ac_objext'
11763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11764 (eval $ac_try) 2>&5
11766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11767 (exit $ac_status); }; }; then
11768 ac_cv_type_mode_t=yes
11770 echo "$as_me: failed program was:" >&5
11771 sed 's/^/| /' conftest.$ac_ext >&5
11773 ac_cv_type_mode_t=no
11775 rm -f conftest.$ac_objext conftest.$ac_ext
11777 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11778 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
11779 if test $ac_cv_type_mode_t = yes; then
11783 cat >>confdefs.h <<_ACEOF
11789 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11790 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
11791 if test "${ac_cv_type_uid_t+set}" = set; then
11792 echo $ECHO_N "(cached) $ECHO_C" >&6
11794 cat >conftest.$ac_ext <<_ACEOF
11795 #line $LINENO "configure"
11798 cat confdefs.h >>conftest.$ac_ext
11799 cat >>conftest.$ac_ext <<_ACEOF
11800 /* end confdefs.h. */
11801 #include <sys/types.h>
11804 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11805 $EGREP "uid_t" >/dev/null 2>&1; then
11806 ac_cv_type_uid_t=yes
11808 ac_cv_type_uid_t=no
11813 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11814 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
11815 if test $ac_cv_type_uid_t = no; then
11817 cat >>confdefs.h <<\_ACEOF
11822 cat >>confdefs.h <<\_ACEOF
11828 echo "$as_me:$LINENO: checking for size_t" >&5
11829 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
11830 if test "${ac_cv_type_size_t+set}" = set; then
11831 echo $ECHO_N "(cached) $ECHO_C" >&6
11833 cat >conftest.$ac_ext <<_ACEOF
11834 #line $LINENO "configure"
11837 cat confdefs.h >>conftest.$ac_ext
11838 cat >>conftest.$ac_ext <<_ACEOF
11839 /* end confdefs.h. */
11840 $ac_includes_default
11846 if (sizeof (size_t))
11852 rm -f conftest.$ac_objext
11853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11854 (eval $ac_compile) 2>&5
11856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11857 (exit $ac_status); } &&
11858 { ac_try='test -s conftest.$ac_objext'
11859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11860 (eval $ac_try) 2>&5
11862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11863 (exit $ac_status); }; }; then
11864 ac_cv_type_size_t=yes
11866 echo "$as_me: failed program was:" >&5
11867 sed 's/^/| /' conftest.$ac_ext >&5
11869 ac_cv_type_size_t=no
11871 rm -f conftest.$ac_objext conftest.$ac_ext
11873 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11874 echo "${ECHO_T}$ac_cv_type_size_t" >&6
11875 if test $ac_cv_type_size_t = yes; then
11879 cat >>confdefs.h <<_ACEOF
11880 #define size_t unsigned
11885 echo "$as_me:$LINENO: checking for pid_t" >&5
11886 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11887 if test "${ac_cv_type_pid_t+set}" = set; then
11888 echo $ECHO_N "(cached) $ECHO_C" >&6
11890 cat >conftest.$ac_ext <<_ACEOF
11891 #line $LINENO "configure"
11894 cat confdefs.h >>conftest.$ac_ext
11895 cat >>conftest.$ac_ext <<_ACEOF
11896 /* end confdefs.h. */
11897 $ac_includes_default
11903 if (sizeof (pid_t))
11909 rm -f conftest.$ac_objext
11910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11911 (eval $ac_compile) 2>&5
11913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11914 (exit $ac_status); } &&
11915 { ac_try='test -s conftest.$ac_objext'
11916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11917 (eval $ac_try) 2>&5
11919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11920 (exit $ac_status); }; }; then
11921 ac_cv_type_pid_t=yes
11923 echo "$as_me: failed program was:" >&5
11924 sed 's/^/| /' conftest.$ac_ext >&5
11926 ac_cv_type_pid_t=no
11928 rm -f conftest.$ac_objext conftest.$ac_ext
11930 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11931 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11932 if test $ac_cv_type_pid_t = yes; then
11936 cat >>confdefs.h <<_ACEOF
11942 echo "$as_me:$LINENO: checking for off_t" >&5
11943 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
11944 if test "${ac_cv_type_off_t+set}" = set; then
11945 echo $ECHO_N "(cached) $ECHO_C" >&6
11947 cat >conftest.$ac_ext <<_ACEOF
11948 #line $LINENO "configure"
11951 cat confdefs.h >>conftest.$ac_ext
11952 cat >>conftest.$ac_ext <<_ACEOF
11953 /* end confdefs.h. */
11954 $ac_includes_default
11960 if (sizeof (off_t))
11966 rm -f conftest.$ac_objext
11967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11968 (eval $ac_compile) 2>&5
11970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11971 (exit $ac_status); } &&
11972 { ac_try='test -s conftest.$ac_objext'
11973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11974 (eval $ac_try) 2>&5
11976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11977 (exit $ac_status); }; }; then
11978 ac_cv_type_off_t=yes
11980 echo "$as_me: failed program was:" >&5
11981 sed 's/^/| /' conftest.$ac_ext >&5
11983 ac_cv_type_off_t=no
11985 rm -f conftest.$ac_objext conftest.$ac_ext
11987 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11988 echo "${ECHO_T}$ac_cv_type_off_t" >&6
11989 if test $ac_cv_type_off_t = yes; then
11993 cat >>confdefs.h <<_ACEOF
11999 echo "$as_me:$LINENO: checking for ino_t" >&5
12000 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
12001 if test "${ac_cv_type_ino_t+set}" = set; then
12002 echo $ECHO_N "(cached) $ECHO_C" >&6
12004 cat >conftest.$ac_ext <<_ACEOF
12005 #line $LINENO "configure"
12008 cat confdefs.h >>conftest.$ac_ext
12009 cat >>conftest.$ac_ext <<_ACEOF
12010 /* end confdefs.h. */
12011 $ac_includes_default
12017 if (sizeof (ino_t))
12023 rm -f conftest.$ac_objext
12024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12025 (eval $ac_compile) 2>&5
12027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12028 (exit $ac_status); } &&
12029 { ac_try='test -s conftest.$ac_objext'
12030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12031 (eval $ac_try) 2>&5
12033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12034 (exit $ac_status); }; }; then
12035 ac_cv_type_ino_t=yes
12037 echo "$as_me: failed program was:" >&5
12038 sed 's/^/| /' conftest.$ac_ext >&5
12040 ac_cv_type_ino_t=no
12042 rm -f conftest.$ac_objext conftest.$ac_ext
12044 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
12045 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
12046 if test $ac_cv_type_ino_t = yes; then
12050 cat >>confdefs.h <<_ACEOF
12051 #define ino_t unsigned long
12056 echo "$as_me:$LINENO: checking for dev_t" >&5
12057 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
12058 if test "${ac_cv_type_dev_t+set}" = set; then
12059 echo $ECHO_N "(cached) $ECHO_C" >&6
12061 cat >conftest.$ac_ext <<_ACEOF
12062 #line $LINENO "configure"
12065 cat confdefs.h >>conftest.$ac_ext
12066 cat >>conftest.$ac_ext <<_ACEOF
12067 /* end confdefs.h. */
12068 $ac_includes_default
12074 if (sizeof (dev_t))
12080 rm -f conftest.$ac_objext
12081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12082 (eval $ac_compile) 2>&5
12084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12085 (exit $ac_status); } &&
12086 { ac_try='test -s conftest.$ac_objext'
12087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12088 (eval $ac_try) 2>&5
12090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12091 (exit $ac_status); }; }; then
12092 ac_cv_type_dev_t=yes
12094 echo "$as_me: failed program was:" >&5
12095 sed 's/^/| /' conftest.$ac_ext >&5
12097 ac_cv_type_dev_t=no
12099 rm -f conftest.$ac_objext conftest.$ac_ext
12101 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
12102 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
12103 if test $ac_cv_type_dev_t = yes; then
12107 cat >>confdefs.h <<_ACEOF
12108 #define dev_t unsigned long
12113 echo "$as_me:$LINENO: checking for daddr_t" >&5
12114 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
12115 if test "${ac_cv_type_daddr_t+set}" = set; then
12116 echo $ECHO_N "(cached) $ECHO_C" >&6
12118 cat >conftest.$ac_ext <<_ACEOF
12119 #line $LINENO "configure"
12122 cat confdefs.h >>conftest.$ac_ext
12123 cat >>conftest.$ac_ext <<_ACEOF
12124 /* end confdefs.h. */
12125 $ac_includes_default
12131 if (sizeof (daddr_t))
12137 rm -f conftest.$ac_objext
12138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12139 (eval $ac_compile) 2>&5
12141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12142 (exit $ac_status); } &&
12143 { ac_try='test -s conftest.$ac_objext'
12144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12145 (eval $ac_try) 2>&5
12147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12148 (exit $ac_status); }; }; then
12149 ac_cv_type_daddr_t=yes
12151 echo "$as_me: failed program was:" >&5
12152 sed 's/^/| /' conftest.$ac_ext >&5
12154 ac_cv_type_daddr_t=no
12156 rm -f conftest.$ac_objext conftest.$ac_ext
12158 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
12159 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
12160 if test $ac_cv_type_daddr_t = yes; then
12164 cat >>confdefs.h <<_ACEOF
12165 #define daddr_t long
12170 echo "$as_me:$LINENO: checking for major_t" >&5
12171 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
12172 if test "${ac_cv_type_major_t+set}" = set; then
12173 echo $ECHO_N "(cached) $ECHO_C" >&6
12175 cat >conftest.$ac_ext <<_ACEOF
12176 #line $LINENO "configure"
12179 cat confdefs.h >>conftest.$ac_ext
12180 cat >>conftest.$ac_ext <<_ACEOF
12181 /* end confdefs.h. */
12182 $ac_includes_default
12188 if (sizeof (major_t))
12194 rm -f conftest.$ac_objext
12195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12196 (eval $ac_compile) 2>&5
12198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12199 (exit $ac_status); } &&
12200 { ac_try='test -s conftest.$ac_objext'
12201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12202 (eval $ac_try) 2>&5
12204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205 (exit $ac_status); }; }; then
12206 ac_cv_type_major_t=yes
12208 echo "$as_me: failed program was:" >&5
12209 sed 's/^/| /' conftest.$ac_ext >&5
12211 ac_cv_type_major_t=no
12213 rm -f conftest.$ac_objext conftest.$ac_ext
12215 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
12216 echo "${ECHO_T}$ac_cv_type_major_t" >&6
12217 if test $ac_cv_type_major_t = yes; then
12221 cat >>confdefs.h <<_ACEOF
12222 #define major_t int
12227 echo "$as_me:$LINENO: checking for minor_t" >&5
12228 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
12229 if test "${ac_cv_type_minor_t+set}" = set; then
12230 echo $ECHO_N "(cached) $ECHO_C" >&6
12232 cat >conftest.$ac_ext <<_ACEOF
12233 #line $LINENO "configure"
12236 cat confdefs.h >>conftest.$ac_ext
12237 cat >>conftest.$ac_ext <<_ACEOF
12238 /* end confdefs.h. */
12239 $ac_includes_default
12245 if (sizeof (minor_t))
12251 rm -f conftest.$ac_objext
12252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12253 (eval $ac_compile) 2>&5
12255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256 (exit $ac_status); } &&
12257 { ac_try='test -s conftest.$ac_objext'
12258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12259 (eval $ac_try) 2>&5
12261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12262 (exit $ac_status); }; }; then
12263 ac_cv_type_minor_t=yes
12265 echo "$as_me: failed program was:" >&5
12266 sed 's/^/| /' conftest.$ac_ext >&5
12268 ac_cv_type_minor_t=no
12270 rm -f conftest.$ac_objext conftest.$ac_ext
12272 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
12273 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
12274 if test $ac_cv_type_minor_t = yes; then
12278 cat >>confdefs.h <<_ACEOF
12279 #define minor_t int
12284 echo "$as_me:$LINENO: checking for ssize_t" >&5
12285 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
12286 if test "${ac_cv_type_ssize_t+set}" = set; then
12287 echo $ECHO_N "(cached) $ECHO_C" >&6
12289 cat >conftest.$ac_ext <<_ACEOF
12290 #line $LINENO "configure"
12293 cat confdefs.h >>conftest.$ac_ext
12294 cat >>conftest.$ac_ext <<_ACEOF
12295 /* end confdefs.h. */
12296 $ac_includes_default
12302 if (sizeof (ssize_t))
12308 rm -f conftest.$ac_objext
12309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12310 (eval $ac_compile) 2>&5
12312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12313 (exit $ac_status); } &&
12314 { ac_try='test -s conftest.$ac_objext'
12315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12316 (eval $ac_try) 2>&5
12318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12319 (exit $ac_status); }; }; then
12320 ac_cv_type_ssize_t=yes
12322 echo "$as_me: failed program was:" >&5
12323 sed 's/^/| /' conftest.$ac_ext >&5
12325 ac_cv_type_ssize_t=no
12327 rm -f conftest.$ac_objext conftest.$ac_ext
12329 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
12330 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
12331 if test $ac_cv_type_ssize_t = yes; then
12335 cat >>confdefs.h <<_ACEOF
12336 #define ssize_t int
12341 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
12342 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
12343 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
12344 echo $ECHO_N "(cached) $ECHO_C" >&6
12346 cat >conftest.$ac_ext <<_ACEOF
12347 #line $LINENO "configure"
12350 cat confdefs.h >>conftest.$ac_ext
12351 cat >>conftest.$ac_ext <<_ACEOF
12352 /* end confdefs.h. */
12353 $ac_includes_default
12357 static struct stat ac_aggr;
12358 if (ac_aggr.st_blocks)
12364 rm -f conftest.$ac_objext
12365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12366 (eval $ac_compile) 2>&5
12368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369 (exit $ac_status); } &&
12370 { ac_try='test -s conftest.$ac_objext'
12371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12372 (eval $ac_try) 2>&5
12374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12375 (exit $ac_status); }; }; then
12376 ac_cv_member_struct_stat_st_blocks=yes
12378 echo "$as_me: failed program was:" >&5
12379 sed 's/^/| /' conftest.$ac_ext >&5
12381 cat >conftest.$ac_ext <<_ACEOF
12382 #line $LINENO "configure"
12385 cat confdefs.h >>conftest.$ac_ext
12386 cat >>conftest.$ac_ext <<_ACEOF
12387 /* end confdefs.h. */
12388 $ac_includes_default
12392 static struct stat ac_aggr;
12393 if (sizeof ac_aggr.st_blocks)
12399 rm -f conftest.$ac_objext
12400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12401 (eval $ac_compile) 2>&5
12403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12404 (exit $ac_status); } &&
12405 { ac_try='test -s conftest.$ac_objext'
12406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12407 (eval $ac_try) 2>&5
12409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410 (exit $ac_status); }; }; then
12411 ac_cv_member_struct_stat_st_blocks=yes
12413 echo "$as_me: failed program was:" >&5
12414 sed 's/^/| /' conftest.$ac_ext >&5
12416 ac_cv_member_struct_stat_st_blocks=no
12418 rm -f conftest.$ac_objext conftest.$ac_ext
12420 rm -f conftest.$ac_objext conftest.$ac_ext
12422 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
12423 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
12424 if test $ac_cv_member_struct_stat_st_blocks = yes; then
12426 cat >>confdefs.h <<_ACEOF
12427 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12431 cat >>confdefs.h <<\_ACEOF
12432 #define HAVE_ST_BLOCKS 1
12436 LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
12441 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
12442 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
12443 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
12444 echo $ECHO_N "(cached) $ECHO_C" >&6
12446 cat >conftest.$ac_ext <<_ACEOF
12447 #line $LINENO "configure"
12450 cat confdefs.h >>conftest.$ac_ext
12451 cat >>conftest.$ac_ext <<_ACEOF
12452 /* end confdefs.h. */
12453 $ac_includes_default
12457 static struct stat ac_aggr;
12458 if (ac_aggr.st_rdev)
12464 rm -f conftest.$ac_objext
12465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12466 (eval $ac_compile) 2>&5
12468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12469 (exit $ac_status); } &&
12470 { ac_try='test -s conftest.$ac_objext'
12471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12472 (eval $ac_try) 2>&5
12474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475 (exit $ac_status); }; }; then
12476 ac_cv_member_struct_stat_st_rdev=yes
12478 echo "$as_me: failed program was:" >&5
12479 sed 's/^/| /' conftest.$ac_ext >&5
12481 cat >conftest.$ac_ext <<_ACEOF
12482 #line $LINENO "configure"
12485 cat confdefs.h >>conftest.$ac_ext
12486 cat >>conftest.$ac_ext <<_ACEOF
12487 /* end confdefs.h. */
12488 $ac_includes_default
12492 static struct stat ac_aggr;
12493 if (sizeof ac_aggr.st_rdev)
12499 rm -f conftest.$ac_objext
12500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12501 (eval $ac_compile) 2>&5
12503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12504 (exit $ac_status); } &&
12505 { ac_try='test -s conftest.$ac_objext'
12506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12507 (eval $ac_try) 2>&5
12509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12510 (exit $ac_status); }; }; then
12511 ac_cv_member_struct_stat_st_rdev=yes
12513 echo "$as_me: failed program was:" >&5
12514 sed 's/^/| /' conftest.$ac_ext >&5
12516 ac_cv_member_struct_stat_st_rdev=no
12518 rm -f conftest.$ac_objext conftest.$ac_ext
12520 rm -f conftest.$ac_objext conftest.$ac_ext
12522 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
12523 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
12524 if test $ac_cv_member_struct_stat_st_rdev = yes; then
12526 cat >>confdefs.h <<_ACEOF
12527 #define HAVE_STRUCT_STAT_ST_RDEV 1
12531 cat >>confdefs.h <<\_ACEOF
12532 #define HAVE_ST_RDEV 1
12538 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12539 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
12540 if test "${ac_cv_struct_tm+set}" = set; then
12541 echo $ECHO_N "(cached) $ECHO_C" >&6
12543 cat >conftest.$ac_ext <<_ACEOF
12544 #line $LINENO "configure"
12547 cat confdefs.h >>conftest.$ac_ext
12548 cat >>conftest.$ac_ext <<_ACEOF
12549 /* end confdefs.h. */
12550 #include <sys/types.h>
12556 struct tm *tp; tp->tm_sec;
12561 rm -f conftest.$ac_objext
12562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12563 (eval $ac_compile) 2>&5
12565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12566 (exit $ac_status); } &&
12567 { ac_try='test -s conftest.$ac_objext'
12568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12569 (eval $ac_try) 2>&5
12571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12572 (exit $ac_status); }; }; then
12573 ac_cv_struct_tm=time.h
12575 echo "$as_me: failed program was:" >&5
12576 sed 's/^/| /' conftest.$ac_ext >&5
12578 ac_cv_struct_tm=sys/time.h
12580 rm -f conftest.$ac_objext conftest.$ac_ext
12582 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12583 echo "${ECHO_T}$ac_cv_struct_tm" >&6
12584 if test $ac_cv_struct_tm = sys/time.h; then
12586 cat >>confdefs.h <<\_ACEOF
12587 #define TM_IN_SYS_TIME 1
12592 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12593 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12594 if test "${ac_cv_c_const+set}" = set; then
12595 echo $ECHO_N "(cached) $ECHO_C" >&6
12597 cat >conftest.$ac_ext <<_ACEOF
12598 #line $LINENO "configure"
12601 cat confdefs.h >>conftest.$ac_ext
12602 cat >>conftest.$ac_ext <<_ACEOF
12603 /* end confdefs.h. */
12608 /* FIXME: Include the comments suggested by Paul. */
12609 #ifndef __cplusplus
12610 /* Ultrix mips cc rejects this. */
12611 typedef int charset[2];
12613 /* SunOS 4.1.1 cc rejects this. */
12614 char const *const *ccp;
12616 /* NEC SVR4.0.2 mips cc rejects this. */
12617 struct point {int x, y;};
12618 static struct point const zero = {0,0};
12619 /* AIX XL C 1.02.0.0 rejects this.
12620 It does not let you subtract one const X* pointer from another in
12621 an arm of an if-expression whose if-part is not a constant
12623 const char *g = "string";
12624 ccp = &g + (g ? g-g : 0);
12625 /* HPUX 7.0 cc rejects these. */
12628 ccp = (char const *const *) p;
12629 { /* SCO 3.2v4 cc rejects this. */
12631 char const *s = 0 ? (char *) 0 : (char const *) 0;
12635 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12636 int x[] = {25, 17};
12637 const int *foo = &x[0];
12640 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12641 typedef const int *iptr;
12645 { /* AIX XL C 1.02.0.0 rejects this saying
12646 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12647 struct s { int j; const int *ap[3]; };
12648 struct s *b; b->j = 5;
12650 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12651 const int foo = 10;
12659 rm -f conftest.$ac_objext
12660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12661 (eval $ac_compile) 2>&5
12663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12664 (exit $ac_status); } &&
12665 { ac_try='test -s conftest.$ac_objext'
12666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12667 (eval $ac_try) 2>&5
12669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12670 (exit $ac_status); }; }; then
12673 echo "$as_me: failed program was:" >&5
12674 sed 's/^/| /' conftest.$ac_ext >&5
12678 rm -f conftest.$ac_objext conftest.$ac_ext
12680 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12681 echo "${ECHO_T}$ac_cv_c_const" >&6
12682 if test $ac_cv_c_const = no; then
12684 cat >>confdefs.h <<\_ACEOF
12692 echo "$as_me:$LINENO: checking for char" >&5
12693 echo $ECHO_N "checking for char... $ECHO_C" >&6
12694 if test "${ac_cv_type_char+set}" = set; then
12695 echo $ECHO_N "(cached) $ECHO_C" >&6
12697 cat >conftest.$ac_ext <<_ACEOF
12698 #line $LINENO "configure"
12701 cat confdefs.h >>conftest.$ac_ext
12702 cat >>conftest.$ac_ext <<_ACEOF
12703 /* end confdefs.h. */
12704 $ac_includes_default
12716 rm -f conftest.$ac_objext
12717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12718 (eval $ac_compile) 2>&5
12720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12721 (exit $ac_status); } &&
12722 { ac_try='test -s conftest.$ac_objext'
12723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12724 (eval $ac_try) 2>&5
12726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12727 (exit $ac_status); }; }; then
12728 ac_cv_type_char=yes
12730 echo "$as_me: failed program was:" >&5
12731 sed 's/^/| /' conftest.$ac_ext >&5
12735 rm -f conftest.$ac_objext conftest.$ac_ext
12737 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
12738 echo "${ECHO_T}$ac_cv_type_char" >&6
12740 echo "$as_me:$LINENO: checking size of char" >&5
12741 echo $ECHO_N "checking size of char... $ECHO_C" >&6
12742 if test "${ac_cv_sizeof_char+set}" = set; then
12743 echo $ECHO_N "(cached) $ECHO_C" >&6
12745 if test "$ac_cv_type_char" = yes; then
12746 # The cast to unsigned long works around a bug in the HP C Compiler
12747 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12748 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12749 # This bug is HP SR number 8606223364.
12750 if test "$cross_compiling" = yes; then
12751 # Depending upon the size, compute the lo and hi bounds.
12752 cat >conftest.$ac_ext <<_ACEOF
12753 #line $LINENO "configure"
12756 cat confdefs.h >>conftest.$ac_ext
12757 cat >>conftest.$ac_ext <<_ACEOF
12758 /* end confdefs.h. */
12759 $ac_includes_default
12763 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
12770 rm -f conftest.$ac_objext
12771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12772 (eval $ac_compile) 2>&5
12774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12775 (exit $ac_status); } &&
12776 { ac_try='test -s conftest.$ac_objext'
12777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12778 (eval $ac_try) 2>&5
12780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12781 (exit $ac_status); }; }; then
12784 cat >conftest.$ac_ext <<_ACEOF
12785 #line $LINENO "configure"
12788 cat confdefs.h >>conftest.$ac_ext
12789 cat >>conftest.$ac_ext <<_ACEOF
12790 /* end confdefs.h. */
12791 $ac_includes_default
12795 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12802 rm -f conftest.$ac_objext
12803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12804 (eval $ac_compile) 2>&5
12806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12807 (exit $ac_status); } &&
12808 { ac_try='test -s conftest.$ac_objext'
12809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12810 (eval $ac_try) 2>&5
12812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12813 (exit $ac_status); }; }; then
12814 ac_hi=$ac_mid; break
12816 echo "$as_me: failed program was:" >&5
12817 sed 's/^/| /' conftest.$ac_ext >&5
12819 ac_lo=`expr $ac_mid + 1`
12820 if test $ac_lo -le $ac_mid; then
12824 ac_mid=`expr 2 '*' $ac_mid + 1`
12826 rm -f conftest.$ac_objext conftest.$ac_ext
12829 echo "$as_me: failed program was:" >&5
12830 sed 's/^/| /' conftest.$ac_ext >&5
12832 cat >conftest.$ac_ext <<_ACEOF
12833 #line $LINENO "configure"
12836 cat confdefs.h >>conftest.$ac_ext
12837 cat >>conftest.$ac_ext <<_ACEOF
12838 /* end confdefs.h. */
12839 $ac_includes_default
12843 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
12850 rm -f conftest.$ac_objext
12851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12852 (eval $ac_compile) 2>&5
12854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12855 (exit $ac_status); } &&
12856 { ac_try='test -s conftest.$ac_objext'
12857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12858 (eval $ac_try) 2>&5
12860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12861 (exit $ac_status); }; }; then
12864 cat >conftest.$ac_ext <<_ACEOF
12865 #line $LINENO "configure"
12868 cat confdefs.h >>conftest.$ac_ext
12869 cat >>conftest.$ac_ext <<_ACEOF
12870 /* end confdefs.h. */
12871 $ac_includes_default
12875 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
12882 rm -f conftest.$ac_objext
12883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12884 (eval $ac_compile) 2>&5
12886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12887 (exit $ac_status); } &&
12888 { ac_try='test -s conftest.$ac_objext'
12889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12890 (eval $ac_try) 2>&5
12892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12893 (exit $ac_status); }; }; then
12894 ac_lo=$ac_mid; break
12896 echo "$as_me: failed program was:" >&5
12897 sed 's/^/| /' conftest.$ac_ext >&5
12899 ac_hi=`expr '(' $ac_mid ')' - 1`
12900 if test $ac_mid -le $ac_hi; then
12904 ac_mid=`expr 2 '*' $ac_mid`
12906 rm -f conftest.$ac_objext conftest.$ac_ext
12909 echo "$as_me: failed program was:" >&5
12910 sed 's/^/| /' conftest.$ac_ext >&5
12914 rm -f conftest.$ac_objext conftest.$ac_ext
12916 rm -f conftest.$ac_objext conftest.$ac_ext
12917 # Binary search between lo and hi bounds.
12918 while test "x$ac_lo" != "x$ac_hi"; do
12919 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12920 cat >conftest.$ac_ext <<_ACEOF
12921 #line $LINENO "configure"
12924 cat confdefs.h >>conftest.$ac_ext
12925 cat >>conftest.$ac_ext <<_ACEOF
12926 /* end confdefs.h. */
12927 $ac_includes_default
12931 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12938 rm -f conftest.$ac_objext
12939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12940 (eval $ac_compile) 2>&5
12942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12943 (exit $ac_status); } &&
12944 { ac_try='test -s conftest.$ac_objext'
12945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12946 (eval $ac_try) 2>&5
12948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12949 (exit $ac_status); }; }; then
12952 echo "$as_me: failed program was:" >&5
12953 sed 's/^/| /' conftest.$ac_ext >&5
12955 ac_lo=`expr '(' $ac_mid ')' + 1`
12957 rm -f conftest.$ac_objext conftest.$ac_ext
12960 ?*) ac_cv_sizeof_char=$ac_lo;;
12961 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12962 See \`config.log' for more details." >&5
12963 echo "$as_me: error: cannot compute sizeof (char), 77
12964 See \`config.log' for more details." >&2;}
12965 { (exit 1); exit 1; }; } ;;
12968 if test "$cross_compiling" = yes; then
12969 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12970 See \`config.log' for more details." >&5
12971 echo "$as_me: error: cannot run test program while cross compiling
12972 See \`config.log' for more details." >&2;}
12973 { (exit 1); exit 1; }; }
12975 cat >conftest.$ac_ext <<_ACEOF
12976 #line $LINENO "configure"
12979 cat confdefs.h >>conftest.$ac_ext
12980 cat >>conftest.$ac_ext <<_ACEOF
12981 /* end confdefs.h. */
12982 $ac_includes_default
12983 long longval () { return (long) (sizeof (char)); }
12984 unsigned long ulongval () { return (long) (sizeof (char)); }
12986 #include <stdlib.h>
12991 FILE *f = fopen ("conftest.val", "w");
12994 if (((long) (sizeof (char))) < 0)
12996 long i = longval ();
12997 if (i != ((long) (sizeof (char))))
12999 fprintf (f, "%ld\n", i);
13003 unsigned long i = ulongval ();
13004 if (i != ((long) (sizeof (char))))
13006 fprintf (f, "%lu\n", i);
13008 exit (ferror (f) || fclose (f) != 0);
13014 rm -f conftest$ac_exeext
13015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13016 (eval $ac_link) 2>&5
13018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13019 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13021 (eval $ac_try) 2>&5
13023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13024 (exit $ac_status); }; }; then
13025 ac_cv_sizeof_char=`cat conftest.val`
13027 echo "$as_me: program exited with status $ac_status" >&5
13028 echo "$as_me: failed program was:" >&5
13029 sed 's/^/| /' conftest.$ac_ext >&5
13031 ( exit $ac_status )
13032 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
13033 See \`config.log' for more details." >&5
13034 echo "$as_me: error: cannot compute sizeof (char), 77
13035 See \`config.log' for more details." >&2;}
13036 { (exit 1); exit 1; }; }
13038 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13043 ac_cv_sizeof_char=0
13046 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
13047 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
13048 cat >>confdefs.h <<_ACEOF
13049 #define SIZEOF_CHAR $ac_cv_sizeof_char
13053 echo "$as_me:$LINENO: checking for short int" >&5
13054 echo $ECHO_N "checking for short int... $ECHO_C" >&6
13055 if test "${ac_cv_type_short_int+set}" = set; then
13056 echo $ECHO_N "(cached) $ECHO_C" >&6
13058 cat >conftest.$ac_ext <<_ACEOF
13059 #line $LINENO "configure"
13062 cat confdefs.h >>conftest.$ac_ext
13063 cat >>conftest.$ac_ext <<_ACEOF
13064 /* end confdefs.h. */
13065 $ac_includes_default
13069 if ((short int *) 0)
13071 if (sizeof (short int))
13077 rm -f conftest.$ac_objext
13078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13079 (eval $ac_compile) 2>&5
13081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13082 (exit $ac_status); } &&
13083 { ac_try='test -s conftest.$ac_objext'
13084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13085 (eval $ac_try) 2>&5
13087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13088 (exit $ac_status); }; }; then
13089 ac_cv_type_short_int=yes
13091 echo "$as_me: failed program was:" >&5
13092 sed 's/^/| /' conftest.$ac_ext >&5
13094 ac_cv_type_short_int=no
13096 rm -f conftest.$ac_objext conftest.$ac_ext
13098 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
13099 echo "${ECHO_T}$ac_cv_type_short_int" >&6
13101 echo "$as_me:$LINENO: checking size of short int" >&5
13102 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
13103 if test "${ac_cv_sizeof_short_int+set}" = set; then
13104 echo $ECHO_N "(cached) $ECHO_C" >&6
13106 if test "$ac_cv_type_short_int" = yes; then
13107 # The cast to unsigned long works around a bug in the HP C Compiler
13108 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13109 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13110 # This bug is HP SR number 8606223364.
13111 if test "$cross_compiling" = yes; then
13112 # Depending upon the size, compute the lo and hi bounds.
13113 cat >conftest.$ac_ext <<_ACEOF
13114 #line $LINENO "configure"
13117 cat confdefs.h >>conftest.$ac_ext
13118 cat >>conftest.$ac_ext <<_ACEOF
13119 /* end confdefs.h. */
13120 $ac_includes_default
13124 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
13131 rm -f conftest.$ac_objext
13132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13133 (eval $ac_compile) 2>&5
13135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13136 (exit $ac_status); } &&
13137 { ac_try='test -s conftest.$ac_objext'
13138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13139 (eval $ac_try) 2>&5
13141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13142 (exit $ac_status); }; }; then
13145 cat >conftest.$ac_ext <<_ACEOF
13146 #line $LINENO "configure"
13149 cat confdefs.h >>conftest.$ac_ext
13150 cat >>conftest.$ac_ext <<_ACEOF
13151 /* end confdefs.h. */
13152 $ac_includes_default
13156 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
13163 rm -f conftest.$ac_objext
13164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13165 (eval $ac_compile) 2>&5
13167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13168 (exit $ac_status); } &&
13169 { ac_try='test -s conftest.$ac_objext'
13170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13171 (eval $ac_try) 2>&5
13173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13174 (exit $ac_status); }; }; then
13175 ac_hi=$ac_mid; break
13177 echo "$as_me: failed program was:" >&5
13178 sed 's/^/| /' conftest.$ac_ext >&5
13180 ac_lo=`expr $ac_mid + 1`
13181 if test $ac_lo -le $ac_mid; then
13185 ac_mid=`expr 2 '*' $ac_mid + 1`
13187 rm -f conftest.$ac_objext conftest.$ac_ext
13190 echo "$as_me: failed program was:" >&5
13191 sed 's/^/| /' conftest.$ac_ext >&5
13193 cat >conftest.$ac_ext <<_ACEOF
13194 #line $LINENO "configure"
13197 cat confdefs.h >>conftest.$ac_ext
13198 cat >>conftest.$ac_ext <<_ACEOF
13199 /* end confdefs.h. */
13200 $ac_includes_default
13204 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
13211 rm -f conftest.$ac_objext
13212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13213 (eval $ac_compile) 2>&5
13215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13216 (exit $ac_status); } &&
13217 { ac_try='test -s conftest.$ac_objext'
13218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13219 (eval $ac_try) 2>&5
13221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13222 (exit $ac_status); }; }; then
13225 cat >conftest.$ac_ext <<_ACEOF
13226 #line $LINENO "configure"
13229 cat confdefs.h >>conftest.$ac_ext
13230 cat >>conftest.$ac_ext <<_ACEOF
13231 /* end confdefs.h. */
13232 $ac_includes_default
13236 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
13243 rm -f conftest.$ac_objext
13244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13245 (eval $ac_compile) 2>&5
13247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13248 (exit $ac_status); } &&
13249 { ac_try='test -s conftest.$ac_objext'
13250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13251 (eval $ac_try) 2>&5
13253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13254 (exit $ac_status); }; }; then
13255 ac_lo=$ac_mid; break
13257 echo "$as_me: failed program was:" >&5
13258 sed 's/^/| /' conftest.$ac_ext >&5
13260 ac_hi=`expr '(' $ac_mid ')' - 1`
13261 if test $ac_mid -le $ac_hi; then
13265 ac_mid=`expr 2 '*' $ac_mid`
13267 rm -f conftest.$ac_objext conftest.$ac_ext
13270 echo "$as_me: failed program was:" >&5
13271 sed 's/^/| /' conftest.$ac_ext >&5
13275 rm -f conftest.$ac_objext conftest.$ac_ext
13277 rm -f conftest.$ac_objext conftest.$ac_ext
13278 # Binary search between lo and hi bounds.
13279 while test "x$ac_lo" != "x$ac_hi"; do
13280 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13281 cat >conftest.$ac_ext <<_ACEOF
13282 #line $LINENO "configure"
13285 cat confdefs.h >>conftest.$ac_ext
13286 cat >>conftest.$ac_ext <<_ACEOF
13287 /* end confdefs.h. */
13288 $ac_includes_default
13292 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
13299 rm -f conftest.$ac_objext
13300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13301 (eval $ac_compile) 2>&5
13303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13304 (exit $ac_status); } &&
13305 { ac_try='test -s conftest.$ac_objext'
13306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13307 (eval $ac_try) 2>&5
13309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13310 (exit $ac_status); }; }; then
13313 echo "$as_me: failed program was:" >&5
13314 sed 's/^/| /' conftest.$ac_ext >&5
13316 ac_lo=`expr '(' $ac_mid ')' + 1`
13318 rm -f conftest.$ac_objext conftest.$ac_ext
13321 ?*) ac_cv_sizeof_short_int=$ac_lo;;
13322 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
13323 See \`config.log' for more details." >&5
13324 echo "$as_me: error: cannot compute sizeof (short int), 77
13325 See \`config.log' for more details." >&2;}
13326 { (exit 1); exit 1; }; } ;;
13329 if test "$cross_compiling" = yes; then
13330 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13331 See \`config.log' for more details." >&5
13332 echo "$as_me: error: cannot run test program while cross compiling
13333 See \`config.log' for more details." >&2;}
13334 { (exit 1); exit 1; }; }
13336 cat >conftest.$ac_ext <<_ACEOF
13337 #line $LINENO "configure"
13340 cat confdefs.h >>conftest.$ac_ext
13341 cat >>conftest.$ac_ext <<_ACEOF
13342 /* end confdefs.h. */
13343 $ac_includes_default
13344 long longval () { return (long) (sizeof (short int)); }
13345 unsigned long ulongval () { return (long) (sizeof (short int)); }
13347 #include <stdlib.h>
13352 FILE *f = fopen ("conftest.val", "w");
13355 if (((long) (sizeof (short int))) < 0)
13357 long i = longval ();
13358 if (i != ((long) (sizeof (short int))))
13360 fprintf (f, "%ld\n", i);
13364 unsigned long i = ulongval ();
13365 if (i != ((long) (sizeof (short int))))
13367 fprintf (f, "%lu\n", i);
13369 exit (ferror (f) || fclose (f) != 0);
13375 rm -f conftest$ac_exeext
13376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13377 (eval $ac_link) 2>&5
13379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13380 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13382 (eval $ac_try) 2>&5
13384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13385 (exit $ac_status); }; }; then
13386 ac_cv_sizeof_short_int=`cat conftest.val`
13388 echo "$as_me: program exited with status $ac_status" >&5
13389 echo "$as_me: failed program was:" >&5
13390 sed 's/^/| /' conftest.$ac_ext >&5
13392 ( exit $ac_status )
13393 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
13394 See \`config.log' for more details." >&5
13395 echo "$as_me: error: cannot compute sizeof (short int), 77
13396 See \`config.log' for more details." >&2;}
13397 { (exit 1); exit 1; }; }
13399 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13404 ac_cv_sizeof_short_int=0
13407 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
13408 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
13409 cat >>confdefs.h <<_ACEOF
13410 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
13414 echo "$as_me:$LINENO: checking for int" >&5
13415 echo $ECHO_N "checking for int... $ECHO_C" >&6
13416 if test "${ac_cv_type_int+set}" = set; then
13417 echo $ECHO_N "(cached) $ECHO_C" >&6
13419 cat >conftest.$ac_ext <<_ACEOF
13420 #line $LINENO "configure"
13423 cat confdefs.h >>conftest.$ac_ext
13424 cat >>conftest.$ac_ext <<_ACEOF
13425 /* end confdefs.h. */
13426 $ac_includes_default
13438 rm -f conftest.$ac_objext
13439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13440 (eval $ac_compile) 2>&5
13442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13443 (exit $ac_status); } &&
13444 { ac_try='test -s conftest.$ac_objext'
13445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13446 (eval $ac_try) 2>&5
13448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13449 (exit $ac_status); }; }; then
13452 echo "$as_me: failed program was:" >&5
13453 sed 's/^/| /' conftest.$ac_ext >&5
13457 rm -f conftest.$ac_objext conftest.$ac_ext
13459 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13460 echo "${ECHO_T}$ac_cv_type_int" >&6
13462 echo "$as_me:$LINENO: checking size of int" >&5
13463 echo $ECHO_N "checking size of int... $ECHO_C" >&6
13464 if test "${ac_cv_sizeof_int+set}" = set; then
13465 echo $ECHO_N "(cached) $ECHO_C" >&6
13467 if test "$ac_cv_type_int" = yes; then
13468 # The cast to unsigned long works around a bug in the HP C Compiler
13469 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13470 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13471 # This bug is HP SR number 8606223364.
13472 if test "$cross_compiling" = yes; then
13473 # Depending upon the size, compute the lo and hi bounds.
13474 cat >conftest.$ac_ext <<_ACEOF
13475 #line $LINENO "configure"
13478 cat confdefs.h >>conftest.$ac_ext
13479 cat >>conftest.$ac_ext <<_ACEOF
13480 /* end confdefs.h. */
13481 $ac_includes_default
13485 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
13492 rm -f conftest.$ac_objext
13493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13494 (eval $ac_compile) 2>&5
13496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13497 (exit $ac_status); } &&
13498 { ac_try='test -s conftest.$ac_objext'
13499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13500 (eval $ac_try) 2>&5
13502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13503 (exit $ac_status); }; }; then
13506 cat >conftest.$ac_ext <<_ACEOF
13507 #line $LINENO "configure"
13510 cat confdefs.h >>conftest.$ac_ext
13511 cat >>conftest.$ac_ext <<_ACEOF
13512 /* end confdefs.h. */
13513 $ac_includes_default
13517 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13524 rm -f conftest.$ac_objext
13525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13526 (eval $ac_compile) 2>&5
13528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13529 (exit $ac_status); } &&
13530 { ac_try='test -s conftest.$ac_objext'
13531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13532 (eval $ac_try) 2>&5
13534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13535 (exit $ac_status); }; }; then
13536 ac_hi=$ac_mid; break
13538 echo "$as_me: failed program was:" >&5
13539 sed 's/^/| /' conftest.$ac_ext >&5
13541 ac_lo=`expr $ac_mid + 1`
13542 if test $ac_lo -le $ac_mid; then
13546 ac_mid=`expr 2 '*' $ac_mid + 1`
13548 rm -f conftest.$ac_objext conftest.$ac_ext
13551 echo "$as_me: failed program was:" >&5
13552 sed 's/^/| /' conftest.$ac_ext >&5
13554 cat >conftest.$ac_ext <<_ACEOF
13555 #line $LINENO "configure"
13558 cat confdefs.h >>conftest.$ac_ext
13559 cat >>conftest.$ac_ext <<_ACEOF
13560 /* end confdefs.h. */
13561 $ac_includes_default
13565 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
13572 rm -f conftest.$ac_objext
13573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13574 (eval $ac_compile) 2>&5
13576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13577 (exit $ac_status); } &&
13578 { ac_try='test -s conftest.$ac_objext'
13579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13580 (eval $ac_try) 2>&5
13582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13583 (exit $ac_status); }; }; then
13586 cat >conftest.$ac_ext <<_ACEOF
13587 #line $LINENO "configure"
13590 cat confdefs.h >>conftest.$ac_ext
13591 cat >>conftest.$ac_ext <<_ACEOF
13592 /* end confdefs.h. */
13593 $ac_includes_default
13597 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
13604 rm -f conftest.$ac_objext
13605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13606 (eval $ac_compile) 2>&5
13608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13609 (exit $ac_status); } &&
13610 { ac_try='test -s conftest.$ac_objext'
13611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13612 (eval $ac_try) 2>&5
13614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13615 (exit $ac_status); }; }; then
13616 ac_lo=$ac_mid; break
13618 echo "$as_me: failed program was:" >&5
13619 sed 's/^/| /' conftest.$ac_ext >&5
13621 ac_hi=`expr '(' $ac_mid ')' - 1`
13622 if test $ac_mid -le $ac_hi; then
13626 ac_mid=`expr 2 '*' $ac_mid`
13628 rm -f conftest.$ac_objext conftest.$ac_ext
13631 echo "$as_me: failed program was:" >&5
13632 sed 's/^/| /' conftest.$ac_ext >&5
13636 rm -f conftest.$ac_objext conftest.$ac_ext
13638 rm -f conftest.$ac_objext conftest.$ac_ext
13639 # Binary search between lo and hi bounds.
13640 while test "x$ac_lo" != "x$ac_hi"; do
13641 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13642 cat >conftest.$ac_ext <<_ACEOF
13643 #line $LINENO "configure"
13646 cat confdefs.h >>conftest.$ac_ext
13647 cat >>conftest.$ac_ext <<_ACEOF
13648 /* end confdefs.h. */
13649 $ac_includes_default
13653 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13660 rm -f conftest.$ac_objext
13661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13662 (eval $ac_compile) 2>&5
13664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13665 (exit $ac_status); } &&
13666 { ac_try='test -s conftest.$ac_objext'
13667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13668 (eval $ac_try) 2>&5
13670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13671 (exit $ac_status); }; }; then
13674 echo "$as_me: failed program was:" >&5
13675 sed 's/^/| /' conftest.$ac_ext >&5
13677 ac_lo=`expr '(' $ac_mid ')' + 1`
13679 rm -f conftest.$ac_objext conftest.$ac_ext
13682 ?*) ac_cv_sizeof_int=$ac_lo;;
13683 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13684 See \`config.log' for more details." >&5
13685 echo "$as_me: error: cannot compute sizeof (int), 77
13686 See \`config.log' for more details." >&2;}
13687 { (exit 1); exit 1; }; } ;;
13690 if test "$cross_compiling" = yes; then
13691 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13692 See \`config.log' for more details." >&5
13693 echo "$as_me: error: cannot run test program while cross compiling
13694 See \`config.log' for more details." >&2;}
13695 { (exit 1); exit 1; }; }
13697 cat >conftest.$ac_ext <<_ACEOF
13698 #line $LINENO "configure"
13701 cat confdefs.h >>conftest.$ac_ext
13702 cat >>conftest.$ac_ext <<_ACEOF
13703 /* end confdefs.h. */
13704 $ac_includes_default
13705 long longval () { return (long) (sizeof (int)); }
13706 unsigned long ulongval () { return (long) (sizeof (int)); }
13708 #include <stdlib.h>
13713 FILE *f = fopen ("conftest.val", "w");
13716 if (((long) (sizeof (int))) < 0)
13718 long i = longval ();
13719 if (i != ((long) (sizeof (int))))
13721 fprintf (f, "%ld\n", i);
13725 unsigned long i = ulongval ();
13726 if (i != ((long) (sizeof (int))))
13728 fprintf (f, "%lu\n", i);
13730 exit (ferror (f) || fclose (f) != 0);
13736 rm -f conftest$ac_exeext
13737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13738 (eval $ac_link) 2>&5
13740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13741 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13743 (eval $ac_try) 2>&5
13745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13746 (exit $ac_status); }; }; then
13747 ac_cv_sizeof_int=`cat conftest.val`
13749 echo "$as_me: program exited with status $ac_status" >&5
13750 echo "$as_me: failed program was:" >&5
13751 sed 's/^/| /' conftest.$ac_ext >&5
13753 ( exit $ac_status )
13754 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13755 See \`config.log' for more details." >&5
13756 echo "$as_me: error: cannot compute sizeof (int), 77
13757 See \`config.log' for more details." >&2;}
13758 { (exit 1); exit 1; }; }
13760 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13768 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13769 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
13770 cat >>confdefs.h <<_ACEOF
13771 #define SIZEOF_INT $ac_cv_sizeof_int
13775 echo "$as_me:$LINENO: checking for long int" >&5
13776 echo $ECHO_N "checking for long int... $ECHO_C" >&6
13777 if test "${ac_cv_type_long_int+set}" = set; then
13778 echo $ECHO_N "(cached) $ECHO_C" >&6
13780 cat >conftest.$ac_ext <<_ACEOF
13781 #line $LINENO "configure"
13784 cat confdefs.h >>conftest.$ac_ext
13785 cat >>conftest.$ac_ext <<_ACEOF
13786 /* end confdefs.h. */
13787 $ac_includes_default
13791 if ((long int *) 0)
13793 if (sizeof (long int))
13799 rm -f conftest.$ac_objext
13800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13801 (eval $ac_compile) 2>&5
13803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13804 (exit $ac_status); } &&
13805 { ac_try='test -s conftest.$ac_objext'
13806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13807 (eval $ac_try) 2>&5
13809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13810 (exit $ac_status); }; }; then
13811 ac_cv_type_long_int=yes
13813 echo "$as_me: failed program was:" >&5
13814 sed 's/^/| /' conftest.$ac_ext >&5
13816 ac_cv_type_long_int=no
13818 rm -f conftest.$ac_objext conftest.$ac_ext
13820 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
13821 echo "${ECHO_T}$ac_cv_type_long_int" >&6
13823 echo "$as_me:$LINENO: checking size of long int" >&5
13824 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
13825 if test "${ac_cv_sizeof_long_int+set}" = set; then
13826 echo $ECHO_N "(cached) $ECHO_C" >&6
13828 if test "$ac_cv_type_long_int" = yes; then
13829 # The cast to unsigned long works around a bug in the HP C Compiler
13830 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13831 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13832 # This bug is HP SR number 8606223364.
13833 if test "$cross_compiling" = yes; then
13834 # Depending upon the size, compute the lo and hi bounds.
13835 cat >conftest.$ac_ext <<_ACEOF
13836 #line $LINENO "configure"
13839 cat confdefs.h >>conftest.$ac_ext
13840 cat >>conftest.$ac_ext <<_ACEOF
13841 /* end confdefs.h. */
13842 $ac_includes_default
13846 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
13853 rm -f conftest.$ac_objext
13854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13855 (eval $ac_compile) 2>&5
13857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13858 (exit $ac_status); } &&
13859 { ac_try='test -s conftest.$ac_objext'
13860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13861 (eval $ac_try) 2>&5
13863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13864 (exit $ac_status); }; }; then
13867 cat >conftest.$ac_ext <<_ACEOF
13868 #line $LINENO "configure"
13871 cat confdefs.h >>conftest.$ac_ext
13872 cat >>conftest.$ac_ext <<_ACEOF
13873 /* end confdefs.h. */
13874 $ac_includes_default
13878 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13885 rm -f conftest.$ac_objext
13886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13887 (eval $ac_compile) 2>&5
13889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13890 (exit $ac_status); } &&
13891 { ac_try='test -s conftest.$ac_objext'
13892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13893 (eval $ac_try) 2>&5
13895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13896 (exit $ac_status); }; }; then
13897 ac_hi=$ac_mid; break
13899 echo "$as_me: failed program was:" >&5
13900 sed 's/^/| /' conftest.$ac_ext >&5
13902 ac_lo=`expr $ac_mid + 1`
13903 if test $ac_lo -le $ac_mid; then
13907 ac_mid=`expr 2 '*' $ac_mid + 1`
13909 rm -f conftest.$ac_objext conftest.$ac_ext
13912 echo "$as_me: failed program was:" >&5
13913 sed 's/^/| /' conftest.$ac_ext >&5
13915 cat >conftest.$ac_ext <<_ACEOF
13916 #line $LINENO "configure"
13919 cat confdefs.h >>conftest.$ac_ext
13920 cat >>conftest.$ac_ext <<_ACEOF
13921 /* end confdefs.h. */
13922 $ac_includes_default
13926 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
13933 rm -f conftest.$ac_objext
13934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13935 (eval $ac_compile) 2>&5
13937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13938 (exit $ac_status); } &&
13939 { ac_try='test -s conftest.$ac_objext'
13940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13941 (eval $ac_try) 2>&5
13943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13944 (exit $ac_status); }; }; then
13947 cat >conftest.$ac_ext <<_ACEOF
13948 #line $LINENO "configure"
13951 cat confdefs.h >>conftest.$ac_ext
13952 cat >>conftest.$ac_ext <<_ACEOF
13953 /* end confdefs.h. */
13954 $ac_includes_default
13958 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
13965 rm -f conftest.$ac_objext
13966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13967 (eval $ac_compile) 2>&5
13969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13970 (exit $ac_status); } &&
13971 { ac_try='test -s conftest.$ac_objext'
13972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13973 (eval $ac_try) 2>&5
13975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13976 (exit $ac_status); }; }; then
13977 ac_lo=$ac_mid; break
13979 echo "$as_me: failed program was:" >&5
13980 sed 's/^/| /' conftest.$ac_ext >&5
13982 ac_hi=`expr '(' $ac_mid ')' - 1`
13983 if test $ac_mid -le $ac_hi; then
13987 ac_mid=`expr 2 '*' $ac_mid`
13989 rm -f conftest.$ac_objext conftest.$ac_ext
13992 echo "$as_me: failed program was:" >&5
13993 sed 's/^/| /' conftest.$ac_ext >&5
13997 rm -f conftest.$ac_objext conftest.$ac_ext
13999 rm -f conftest.$ac_objext conftest.$ac_ext
14000 # Binary search between lo and hi bounds.
14001 while test "x$ac_lo" != "x$ac_hi"; do
14002 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14003 cat >conftest.$ac_ext <<_ACEOF
14004 #line $LINENO "configure"
14007 cat confdefs.h >>conftest.$ac_ext
14008 cat >>conftest.$ac_ext <<_ACEOF
14009 /* end confdefs.h. */
14010 $ac_includes_default
14014 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
14021 rm -f conftest.$ac_objext
14022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14023 (eval $ac_compile) 2>&5
14025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14026 (exit $ac_status); } &&
14027 { ac_try='test -s conftest.$ac_objext'
14028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14029 (eval $ac_try) 2>&5
14031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14032 (exit $ac_status); }; }; then
14035 echo "$as_me: failed program was:" >&5
14036 sed 's/^/| /' conftest.$ac_ext >&5
14038 ac_lo=`expr '(' $ac_mid ')' + 1`
14040 rm -f conftest.$ac_objext conftest.$ac_ext
14043 ?*) ac_cv_sizeof_long_int=$ac_lo;;
14044 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
14045 See \`config.log' for more details." >&5
14046 echo "$as_me: error: cannot compute sizeof (long int), 77
14047 See \`config.log' for more details." >&2;}
14048 { (exit 1); exit 1; }; } ;;
14051 if test "$cross_compiling" = yes; then
14052 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14053 See \`config.log' for more details." >&5
14054 echo "$as_me: error: cannot run test program while cross compiling
14055 See \`config.log' for more details." >&2;}
14056 { (exit 1); exit 1; }; }
14058 cat >conftest.$ac_ext <<_ACEOF
14059 #line $LINENO "configure"
14062 cat confdefs.h >>conftest.$ac_ext
14063 cat >>conftest.$ac_ext <<_ACEOF
14064 /* end confdefs.h. */
14065 $ac_includes_default
14066 long longval () { return (long) (sizeof (long int)); }
14067 unsigned long ulongval () { return (long) (sizeof (long int)); }
14069 #include <stdlib.h>
14074 FILE *f = fopen ("conftest.val", "w");
14077 if (((long) (sizeof (long int))) < 0)
14079 long i = longval ();
14080 if (i != ((long) (sizeof (long int))))
14082 fprintf (f, "%ld\n", i);
14086 unsigned long i = ulongval ();
14087 if (i != ((long) (sizeof (long int))))
14089 fprintf (f, "%lu\n", i);
14091 exit (ferror (f) || fclose (f) != 0);
14097 rm -f conftest$ac_exeext
14098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14099 (eval $ac_link) 2>&5
14101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14102 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14104 (eval $ac_try) 2>&5
14106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107 (exit $ac_status); }; }; then
14108 ac_cv_sizeof_long_int=`cat conftest.val`
14110 echo "$as_me: program exited with status $ac_status" >&5
14111 echo "$as_me: failed program was:" >&5
14112 sed 's/^/| /' conftest.$ac_ext >&5
14114 ( exit $ac_status )
14115 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
14116 See \`config.log' for more details." >&5
14117 echo "$as_me: error: cannot compute sizeof (long int), 77
14118 See \`config.log' for more details." >&2;}
14119 { (exit 1); exit 1; }; }
14121 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14126 ac_cv_sizeof_long_int=0
14129 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
14130 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
14131 cat >>confdefs.h <<_ACEOF
14132 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
14136 echo "$as_me:$LINENO: checking for long long int" >&5
14137 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
14138 if test "${ac_cv_type_long_long_int+set}" = set; then
14139 echo $ECHO_N "(cached) $ECHO_C" >&6
14141 cat >conftest.$ac_ext <<_ACEOF
14142 #line $LINENO "configure"
14145 cat confdefs.h >>conftest.$ac_ext
14146 cat >>conftest.$ac_ext <<_ACEOF
14147 /* end confdefs.h. */
14148 $ac_includes_default
14152 if ((long long int *) 0)
14154 if (sizeof (long long int))
14160 rm -f conftest.$ac_objext
14161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14162 (eval $ac_compile) 2>&5
14164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14165 (exit $ac_status); } &&
14166 { ac_try='test -s conftest.$ac_objext'
14167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14168 (eval $ac_try) 2>&5
14170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14171 (exit $ac_status); }; }; then
14172 ac_cv_type_long_long_int=yes
14174 echo "$as_me: failed program was:" >&5
14175 sed 's/^/| /' conftest.$ac_ext >&5
14177 ac_cv_type_long_long_int=no
14179 rm -f conftest.$ac_objext conftest.$ac_ext
14181 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
14182 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
14184 echo "$as_me:$LINENO: checking size of long long int" >&5
14185 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
14186 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
14187 echo $ECHO_N "(cached) $ECHO_C" >&6
14189 if test "$ac_cv_type_long_long_int" = yes; then
14190 # The cast to unsigned long works around a bug in the HP C Compiler
14191 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14192 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14193 # This bug is HP SR number 8606223364.
14194 if test "$cross_compiling" = yes; then
14195 # Depending upon the size, compute the lo and hi bounds.
14196 cat >conftest.$ac_ext <<_ACEOF
14197 #line $LINENO "configure"
14200 cat confdefs.h >>conftest.$ac_ext
14201 cat >>conftest.$ac_ext <<_ACEOF
14202 /* end confdefs.h. */
14203 $ac_includes_default
14207 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
14214 rm -f conftest.$ac_objext
14215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14216 (eval $ac_compile) 2>&5
14218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14219 (exit $ac_status); } &&
14220 { ac_try='test -s conftest.$ac_objext'
14221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14222 (eval $ac_try) 2>&5
14224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14225 (exit $ac_status); }; }; then
14228 cat >conftest.$ac_ext <<_ACEOF
14229 #line $LINENO "configure"
14232 cat confdefs.h >>conftest.$ac_ext
14233 cat >>conftest.$ac_ext <<_ACEOF
14234 /* end confdefs.h. */
14235 $ac_includes_default
14239 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
14246 rm -f conftest.$ac_objext
14247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14248 (eval $ac_compile) 2>&5
14250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14251 (exit $ac_status); } &&
14252 { ac_try='test -s conftest.$ac_objext'
14253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14254 (eval $ac_try) 2>&5
14256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14257 (exit $ac_status); }; }; then
14258 ac_hi=$ac_mid; break
14260 echo "$as_me: failed program was:" >&5
14261 sed 's/^/| /' conftest.$ac_ext >&5
14263 ac_lo=`expr $ac_mid + 1`
14264 if test $ac_lo -le $ac_mid; then
14268 ac_mid=`expr 2 '*' $ac_mid + 1`
14270 rm -f conftest.$ac_objext conftest.$ac_ext
14273 echo "$as_me: failed program was:" >&5
14274 sed 's/^/| /' conftest.$ac_ext >&5
14276 cat >conftest.$ac_ext <<_ACEOF
14277 #line $LINENO "configure"
14280 cat confdefs.h >>conftest.$ac_ext
14281 cat >>conftest.$ac_ext <<_ACEOF
14282 /* end confdefs.h. */
14283 $ac_includes_default
14287 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
14294 rm -f conftest.$ac_objext
14295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14296 (eval $ac_compile) 2>&5
14298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14299 (exit $ac_status); } &&
14300 { ac_try='test -s conftest.$ac_objext'
14301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14302 (eval $ac_try) 2>&5
14304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14305 (exit $ac_status); }; }; then
14308 cat >conftest.$ac_ext <<_ACEOF
14309 #line $LINENO "configure"
14312 cat confdefs.h >>conftest.$ac_ext
14313 cat >>conftest.$ac_ext <<_ACEOF
14314 /* end confdefs.h. */
14315 $ac_includes_default
14319 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
14326 rm -f conftest.$ac_objext
14327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14328 (eval $ac_compile) 2>&5
14330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14331 (exit $ac_status); } &&
14332 { ac_try='test -s conftest.$ac_objext'
14333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14334 (eval $ac_try) 2>&5
14336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14337 (exit $ac_status); }; }; then
14338 ac_lo=$ac_mid; break
14340 echo "$as_me: failed program was:" >&5
14341 sed 's/^/| /' conftest.$ac_ext >&5
14343 ac_hi=`expr '(' $ac_mid ')' - 1`
14344 if test $ac_mid -le $ac_hi; then
14348 ac_mid=`expr 2 '*' $ac_mid`
14350 rm -f conftest.$ac_objext conftest.$ac_ext
14353 echo "$as_me: failed program was:" >&5
14354 sed 's/^/| /' conftest.$ac_ext >&5
14358 rm -f conftest.$ac_objext conftest.$ac_ext
14360 rm -f conftest.$ac_objext conftest.$ac_ext
14361 # Binary search between lo and hi bounds.
14362 while test "x$ac_lo" != "x$ac_hi"; do
14363 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14364 cat >conftest.$ac_ext <<_ACEOF
14365 #line $LINENO "configure"
14368 cat confdefs.h >>conftest.$ac_ext
14369 cat >>conftest.$ac_ext <<_ACEOF
14370 /* end confdefs.h. */
14371 $ac_includes_default
14375 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
14382 rm -f conftest.$ac_objext
14383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14384 (eval $ac_compile) 2>&5
14386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14387 (exit $ac_status); } &&
14388 { ac_try='test -s conftest.$ac_objext'
14389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14390 (eval $ac_try) 2>&5
14392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14393 (exit $ac_status); }; }; then
14396 echo "$as_me: failed program was:" >&5
14397 sed 's/^/| /' conftest.$ac_ext >&5
14399 ac_lo=`expr '(' $ac_mid ')' + 1`
14401 rm -f conftest.$ac_objext conftest.$ac_ext
14404 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
14405 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
14406 See \`config.log' for more details." >&5
14407 echo "$as_me: error: cannot compute sizeof (long long int), 77
14408 See \`config.log' for more details." >&2;}
14409 { (exit 1); exit 1; }; } ;;
14412 if test "$cross_compiling" = yes; then
14413 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14414 See \`config.log' for more details." >&5
14415 echo "$as_me: error: cannot run test program while cross compiling
14416 See \`config.log' for more details." >&2;}
14417 { (exit 1); exit 1; }; }
14419 cat >conftest.$ac_ext <<_ACEOF
14420 #line $LINENO "configure"
14423 cat confdefs.h >>conftest.$ac_ext
14424 cat >>conftest.$ac_ext <<_ACEOF
14425 /* end confdefs.h. */
14426 $ac_includes_default
14427 long longval () { return (long) (sizeof (long long int)); }
14428 unsigned long ulongval () { return (long) (sizeof (long long int)); }
14430 #include <stdlib.h>
14435 FILE *f = fopen ("conftest.val", "w");
14438 if (((long) (sizeof (long long int))) < 0)
14440 long i = longval ();
14441 if (i != ((long) (sizeof (long long int))))
14443 fprintf (f, "%ld\n", i);
14447 unsigned long i = ulongval ();
14448 if (i != ((long) (sizeof (long long int))))
14450 fprintf (f, "%lu\n", i);
14452 exit (ferror (f) || fclose (f) != 0);
14458 rm -f conftest$ac_exeext
14459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14460 (eval $ac_link) 2>&5
14462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14463 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14465 (eval $ac_try) 2>&5
14467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14468 (exit $ac_status); }; }; then
14469 ac_cv_sizeof_long_long_int=`cat conftest.val`
14471 echo "$as_me: program exited with status $ac_status" >&5
14472 echo "$as_me: failed program was:" >&5
14473 sed 's/^/| /' conftest.$ac_ext >&5
14475 ( exit $ac_status )
14476 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
14477 See \`config.log' for more details." >&5
14478 echo "$as_me: error: cannot compute sizeof (long long int), 77
14479 See \`config.log' for more details." >&2;}
14480 { (exit 1); exit 1; }; }
14482 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14487 ac_cv_sizeof_long_long_int=0
14490 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
14491 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
14492 cat >>confdefs.h <<_ACEOF
14493 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
14497 echo "$as_me:$LINENO: checking for int *" >&5
14498 echo $ECHO_N "checking for int *... $ECHO_C" >&6
14499 if test "${ac_cv_type_int_p+set}" = set; then
14500 echo $ECHO_N "(cached) $ECHO_C" >&6
14502 cat >conftest.$ac_ext <<_ACEOF
14503 #line $LINENO "configure"
14506 cat confdefs.h >>conftest.$ac_ext
14507 cat >>conftest.$ac_ext <<_ACEOF
14508 /* end confdefs.h. */
14509 $ac_includes_default
14515 if (sizeof (int *))
14521 rm -f conftest.$ac_objext
14522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14523 (eval $ac_compile) 2>&5
14525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14526 (exit $ac_status); } &&
14527 { ac_try='test -s conftest.$ac_objext'
14528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14529 (eval $ac_try) 2>&5
14531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14532 (exit $ac_status); }; }; then
14533 ac_cv_type_int_p=yes
14535 echo "$as_me: failed program was:" >&5
14536 sed 's/^/| /' conftest.$ac_ext >&5
14538 ac_cv_type_int_p=no
14540 rm -f conftest.$ac_objext conftest.$ac_ext
14542 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
14543 echo "${ECHO_T}$ac_cv_type_int_p" >&6
14545 echo "$as_me:$LINENO: checking size of int *" >&5
14546 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
14547 if test "${ac_cv_sizeof_int_p+set}" = set; then
14548 echo $ECHO_N "(cached) $ECHO_C" >&6
14550 if test "$ac_cv_type_int_p" = yes; then
14551 # The cast to unsigned long works around a bug in the HP C Compiler
14552 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14553 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14554 # This bug is HP SR number 8606223364.
14555 if test "$cross_compiling" = yes; then
14556 # Depending upon the size, compute the lo and hi bounds.
14557 cat >conftest.$ac_ext <<_ACEOF
14558 #line $LINENO "configure"
14561 cat confdefs.h >>conftest.$ac_ext
14562 cat >>conftest.$ac_ext <<_ACEOF
14563 /* end confdefs.h. */
14564 $ac_includes_default
14568 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
14575 rm -f conftest.$ac_objext
14576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14577 (eval $ac_compile) 2>&5
14579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580 (exit $ac_status); } &&
14581 { ac_try='test -s conftest.$ac_objext'
14582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14583 (eval $ac_try) 2>&5
14585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14586 (exit $ac_status); }; }; then
14589 cat >conftest.$ac_ext <<_ACEOF
14590 #line $LINENO "configure"
14593 cat confdefs.h >>conftest.$ac_ext
14594 cat >>conftest.$ac_ext <<_ACEOF
14595 /* end confdefs.h. */
14596 $ac_includes_default
14600 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14607 rm -f conftest.$ac_objext
14608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14609 (eval $ac_compile) 2>&5
14611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14612 (exit $ac_status); } &&
14613 { ac_try='test -s conftest.$ac_objext'
14614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14615 (eval $ac_try) 2>&5
14617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14618 (exit $ac_status); }; }; then
14619 ac_hi=$ac_mid; break
14621 echo "$as_me: failed program was:" >&5
14622 sed 's/^/| /' conftest.$ac_ext >&5
14624 ac_lo=`expr $ac_mid + 1`
14625 if test $ac_lo -le $ac_mid; then
14629 ac_mid=`expr 2 '*' $ac_mid + 1`
14631 rm -f conftest.$ac_objext conftest.$ac_ext
14634 echo "$as_me: failed program was:" >&5
14635 sed 's/^/| /' conftest.$ac_ext >&5
14637 cat >conftest.$ac_ext <<_ACEOF
14638 #line $LINENO "configure"
14641 cat confdefs.h >>conftest.$ac_ext
14642 cat >>conftest.$ac_ext <<_ACEOF
14643 /* end confdefs.h. */
14644 $ac_includes_default
14648 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
14655 rm -f conftest.$ac_objext
14656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14657 (eval $ac_compile) 2>&5
14659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14660 (exit $ac_status); } &&
14661 { ac_try='test -s conftest.$ac_objext'
14662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14663 (eval $ac_try) 2>&5
14665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14666 (exit $ac_status); }; }; then
14669 cat >conftest.$ac_ext <<_ACEOF
14670 #line $LINENO "configure"
14673 cat confdefs.h >>conftest.$ac_ext
14674 cat >>conftest.$ac_ext <<_ACEOF
14675 /* end confdefs.h. */
14676 $ac_includes_default
14680 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
14687 rm -f conftest.$ac_objext
14688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14689 (eval $ac_compile) 2>&5
14691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14692 (exit $ac_status); } &&
14693 { ac_try='test -s conftest.$ac_objext'
14694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14695 (eval $ac_try) 2>&5
14697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14698 (exit $ac_status); }; }; then
14699 ac_lo=$ac_mid; break
14701 echo "$as_me: failed program was:" >&5
14702 sed 's/^/| /' conftest.$ac_ext >&5
14704 ac_hi=`expr '(' $ac_mid ')' - 1`
14705 if test $ac_mid -le $ac_hi; then
14709 ac_mid=`expr 2 '*' $ac_mid`
14711 rm -f conftest.$ac_objext conftest.$ac_ext
14714 echo "$as_me: failed program was:" >&5
14715 sed 's/^/| /' conftest.$ac_ext >&5
14719 rm -f conftest.$ac_objext conftest.$ac_ext
14721 rm -f conftest.$ac_objext conftest.$ac_ext
14722 # Binary search between lo and hi bounds.
14723 while test "x$ac_lo" != "x$ac_hi"; do
14724 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14725 cat >conftest.$ac_ext <<_ACEOF
14726 #line $LINENO "configure"
14729 cat confdefs.h >>conftest.$ac_ext
14730 cat >>conftest.$ac_ext <<_ACEOF
14731 /* end confdefs.h. */
14732 $ac_includes_default
14736 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14743 rm -f conftest.$ac_objext
14744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14745 (eval $ac_compile) 2>&5
14747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14748 (exit $ac_status); } &&
14749 { ac_try='test -s conftest.$ac_objext'
14750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14751 (eval $ac_try) 2>&5
14753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14754 (exit $ac_status); }; }; then
14757 echo "$as_me: failed program was:" >&5
14758 sed 's/^/| /' conftest.$ac_ext >&5
14760 ac_lo=`expr '(' $ac_mid ')' + 1`
14762 rm -f conftest.$ac_objext conftest.$ac_ext
14765 ?*) ac_cv_sizeof_int_p=$ac_lo;;
14766 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14767 See \`config.log' for more details." >&5
14768 echo "$as_me: error: cannot compute sizeof (int *), 77
14769 See \`config.log' for more details." >&2;}
14770 { (exit 1); exit 1; }; } ;;
14773 if test "$cross_compiling" = yes; then
14774 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14775 See \`config.log' for more details." >&5
14776 echo "$as_me: error: cannot run test program while cross compiling
14777 See \`config.log' for more details." >&2;}
14778 { (exit 1); exit 1; }; }
14780 cat >conftest.$ac_ext <<_ACEOF
14781 #line $LINENO "configure"
14784 cat confdefs.h >>conftest.$ac_ext
14785 cat >>conftest.$ac_ext <<_ACEOF
14786 /* end confdefs.h. */
14787 $ac_includes_default
14788 long longval () { return (long) (sizeof (int *)); }
14789 unsigned long ulongval () { return (long) (sizeof (int *)); }
14791 #include <stdlib.h>
14796 FILE *f = fopen ("conftest.val", "w");
14799 if (((long) (sizeof (int *))) < 0)
14801 long i = longval ();
14802 if (i != ((long) (sizeof (int *))))
14804 fprintf (f, "%ld\n", i);
14808 unsigned long i = ulongval ();
14809 if (i != ((long) (sizeof (int *))))
14811 fprintf (f, "%lu\n", i);
14813 exit (ferror (f) || fclose (f) != 0);
14819 rm -f conftest$ac_exeext
14820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14821 (eval $ac_link) 2>&5
14823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14824 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14826 (eval $ac_try) 2>&5
14828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14829 (exit $ac_status); }; }; then
14830 ac_cv_sizeof_int_p=`cat conftest.val`
14832 echo "$as_me: program exited with status $ac_status" >&5
14833 echo "$as_me: failed program was:" >&5
14834 sed 's/^/| /' conftest.$ac_ext >&5
14836 ( exit $ac_status )
14837 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14838 See \`config.log' for more details." >&5
14839 echo "$as_me: error: cannot compute sizeof (int *), 77
14840 See \`config.log' for more details." >&2;}
14841 { (exit 1); exit 1; }; }
14843 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14848 ac_cv_sizeof_int_p=0
14851 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
14852 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
14853 cat >>confdefs.h <<_ACEOF
14854 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
14859 # Check for sys/types.h types
14860 echo "$as_me:$LINENO: checking for u_int type" >&5
14861 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
14862 if test "${ac_cv_have_u_int+set}" = set; then
14863 echo $ECHO_N "(cached) $ECHO_C" >&6
14866 cat >conftest.$ac_ext <<_ACEOF
14867 #line $LINENO "configure"
14870 cat confdefs.h >>conftest.$ac_ext
14871 cat >>conftest.$ac_ext <<_ACEOF
14872 /* end confdefs.h. */
14873 #include <sys/types.h>
14882 rm -f conftest.$ac_objext
14883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14884 (eval $ac_compile) 2>&5
14886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14887 (exit $ac_status); } &&
14888 { ac_try='test -s conftest.$ac_objext'
14889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14890 (eval $ac_try) 2>&5
14892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14893 (exit $ac_status); }; }; then
14894 ac_cv_have_u_int="yes"
14896 echo "$as_me: failed program was:" >&5
14897 sed 's/^/| /' conftest.$ac_ext >&5
14899 ac_cv_have_u_int="no"
14902 rm -f conftest.$ac_objext conftest.$ac_ext
14905 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
14906 echo "${ECHO_T}$ac_cv_have_u_int" >&6
14907 if test "x$ac_cv_have_u_int" = "xyes" ; then
14908 cat >>confdefs.h <<\_ACEOF
14909 #define HAVE_U_INT 1
14915 echo "$as_me:$LINENO: checking for intmax_t type" >&5
14916 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
14917 if test "${ac_cv_have_intmax_t+set}" = set; then
14918 echo $ECHO_N "(cached) $ECHO_C" >&6
14921 cat >conftest.$ac_ext <<_ACEOF
14922 #line $LINENO "configure"
14925 cat confdefs.h >>conftest.$ac_ext
14926 cat >>conftest.$ac_ext <<_ACEOF
14927 /* end confdefs.h. */
14928 #include <sys/types.h>
14937 rm -f conftest.$ac_objext
14938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14939 (eval $ac_compile) 2>&5
14941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14942 (exit $ac_status); } &&
14943 { ac_try='test -s conftest.$ac_objext'
14944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14945 (eval $ac_try) 2>&5
14947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14948 (exit $ac_status); }; }; then
14949 ac_cv_have_intmax_t="yes"
14951 echo "$as_me: failed program was:" >&5
14952 sed 's/^/| /' conftest.$ac_ext >&5
14955 cat >conftest.$ac_ext <<_ACEOF
14956 #line $LINENO "configure"
14959 cat confdefs.h >>conftest.$ac_ext
14960 cat >>conftest.$ac_ext <<_ACEOF
14961 /* end confdefs.h. */
14962 #include <stdint.h>
14971 rm -f conftest.$ac_objext
14972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14973 (eval $ac_compile) 2>&5
14975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14976 (exit $ac_status); } &&
14977 { ac_try='test -s conftest.$ac_objext'
14978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14979 (eval $ac_try) 2>&5
14981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14982 (exit $ac_status); }; }; then
14983 ac_cv_have_intmax_t="yes"
14985 echo "$as_me: failed program was:" >&5
14986 sed 's/^/| /' conftest.$ac_ext >&5
14988 ac_cv_have_intmax_t="no"
14991 rm -f conftest.$ac_objext conftest.$ac_ext
14995 rm -f conftest.$ac_objext conftest.$ac_ext
14999 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
15000 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
15001 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
15002 cat >>confdefs.h <<\_ACEOF
15003 #define HAVE_INTMAX_T 1
15010 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
15011 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
15012 if test "${ac_cv_have_u_intmax_t+set}" = set; then
15013 echo $ECHO_N "(cached) $ECHO_C" >&6
15016 cat >conftest.$ac_ext <<_ACEOF
15017 #line $LINENO "configure"
15020 cat confdefs.h >>conftest.$ac_ext
15021 cat >>conftest.$ac_ext <<_ACEOF
15022 /* end confdefs.h. */
15023 #include <sys/types.h>
15027 u_intmax_t a; a = 1;
15032 rm -f conftest.$ac_objext
15033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15034 (eval $ac_compile) 2>&5
15036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037 (exit $ac_status); } &&
15038 { ac_try='test -s conftest.$ac_objext'
15039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15040 (eval $ac_try) 2>&5
15042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15043 (exit $ac_status); }; }; then
15044 ac_cv_have_u_intmax_t="yes"
15046 echo "$as_me: failed program was:" >&5
15047 sed 's/^/| /' conftest.$ac_ext >&5
15050 cat >conftest.$ac_ext <<_ACEOF
15051 #line $LINENO "configure"
15054 cat confdefs.h >>conftest.$ac_ext
15055 cat >>conftest.$ac_ext <<_ACEOF
15056 /* end confdefs.h. */
15057 #include <stdint.h>
15061 u_intmax_t a; a = 1;
15066 rm -f conftest.$ac_objext
15067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15068 (eval $ac_compile) 2>&5
15070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15071 (exit $ac_status); } &&
15072 { ac_try='test -s conftest.$ac_objext'
15073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15074 (eval $ac_try) 2>&5
15076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15077 (exit $ac_status); }; }; then
15078 ac_cv_have_u_intmax_t="yes"
15080 echo "$as_me: failed program was:" >&5
15081 sed 's/^/| /' conftest.$ac_ext >&5
15083 ac_cv_have_u_intmax_t="no"
15086 rm -f conftest.$ac_objext conftest.$ac_ext
15090 rm -f conftest.$ac_objext conftest.$ac_ext
15093 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
15094 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
15095 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
15096 cat >>confdefs.h <<\_ACEOF
15097 #define HAVE_U_INTMAX_T 1
15104 echo "$as_me:$LINENO: checking for intXX_t types" >&5
15105 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
15106 if test "${ac_cv_have_intxx_t+set}" = set; then
15107 echo $ECHO_N "(cached) $ECHO_C" >&6
15110 cat >conftest.$ac_ext <<_ACEOF
15111 #line $LINENO "configure"
15114 cat confdefs.h >>conftest.$ac_ext
15115 cat >>conftest.$ac_ext <<_ACEOF
15116 /* end confdefs.h. */
15117 #include <sys/types.h>
15121 int8_t a; int16_t b; int32_t c; a = b = c = 1;
15126 rm -f conftest.$ac_objext
15127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15128 (eval $ac_compile) 2>&5
15130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15131 (exit $ac_status); } &&
15132 { ac_try='test -s conftest.$ac_objext'
15133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15134 (eval $ac_try) 2>&5
15136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15137 (exit $ac_status); }; }; then
15138 ac_cv_have_intxx_t="yes"
15140 echo "$as_me: failed program was:" >&5
15141 sed 's/^/| /' conftest.$ac_ext >&5
15143 ac_cv_have_intxx_t="no"
15146 rm -f conftest.$ac_objext conftest.$ac_ext
15149 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
15150 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
15151 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
15152 cat >>confdefs.h <<\_ACEOF
15153 #define HAVE_INTXX_T 1
15159 echo "$as_me:$LINENO: checking for int64_t type" >&5
15160 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
15161 if test "${ac_cv_have_int64_t+set}" = set; then
15162 echo $ECHO_N "(cached) $ECHO_C" >&6
15165 cat >conftest.$ac_ext <<_ACEOF
15166 #line $LINENO "configure"
15169 cat confdefs.h >>conftest.$ac_ext
15170 cat >>conftest.$ac_ext <<_ACEOF
15171 /* end confdefs.h. */
15172 #include <sys/types.h>
15181 rm -f conftest.$ac_objext
15182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15183 (eval $ac_compile) 2>&5
15185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15186 (exit $ac_status); } &&
15187 { ac_try='test -s conftest.$ac_objext'
15188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15189 (eval $ac_try) 2>&5
15191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15192 (exit $ac_status); }; }; then
15193 ac_cv_have_int64_t="yes"
15195 echo "$as_me: failed program was:" >&5
15196 sed 's/^/| /' conftest.$ac_ext >&5
15198 ac_cv_have_int64_t="no"
15201 rm -f conftest.$ac_objext conftest.$ac_ext
15204 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
15205 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
15206 if test "x$ac_cv_have_int64_t" = "xyes" ; then
15207 cat >>confdefs.h <<\_ACEOF
15208 #define HAVE_INT64_T 1
15214 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
15215 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
15216 if test "${ac_cv_have_u_intxx_t+set}" = set; then
15217 echo $ECHO_N "(cached) $ECHO_C" >&6
15220 cat >conftest.$ac_ext <<_ACEOF
15221 #line $LINENO "configure"
15224 cat confdefs.h >>conftest.$ac_ext
15225 cat >>conftest.$ac_ext <<_ACEOF
15226 /* end confdefs.h. */
15227 #include <sys/types.h>
15231 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
15236 rm -f conftest.$ac_objext
15237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15238 (eval $ac_compile) 2>&5
15240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15241 (exit $ac_status); } &&
15242 { ac_try='test -s conftest.$ac_objext'
15243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15244 (eval $ac_try) 2>&5
15246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15247 (exit $ac_status); }; }; then
15248 ac_cv_have_u_intxx_t="yes"
15250 echo "$as_me: failed program was:" >&5
15251 sed 's/^/| /' conftest.$ac_ext >&5
15253 ac_cv_have_u_intxx_t="no"
15256 rm -f conftest.$ac_objext conftest.$ac_ext
15259 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
15260 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
15261 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
15262 cat >>confdefs.h <<\_ACEOF
15263 #define HAVE_U_INTXX_T 1
15269 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
15270 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
15271 if test "${ac_cv_have_u_int64_t+set}" = set; then
15272 echo $ECHO_N "(cached) $ECHO_C" >&6
15275 cat >conftest.$ac_ext <<_ACEOF
15276 #line $LINENO "configure"
15279 cat confdefs.h >>conftest.$ac_ext
15280 cat >>conftest.$ac_ext <<_ACEOF
15281 /* end confdefs.h. */
15282 #include <sys/types.h>
15286 u_int64_t a; a = 1;
15291 rm -f conftest.$ac_objext
15292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15293 (eval $ac_compile) 2>&5
15295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15296 (exit $ac_status); } &&
15297 { ac_try='test -s conftest.$ac_objext'
15298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15299 (eval $ac_try) 2>&5
15301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15302 (exit $ac_status); }; }; then
15303 ac_cv_have_u_int64_t="yes"
15305 echo "$as_me: failed program was:" >&5
15306 sed 's/^/| /' conftest.$ac_ext >&5
15308 ac_cv_have_u_int64_t="no"
15311 rm -f conftest.$ac_objext conftest.$ac_ext
15314 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
15315 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
15316 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
15317 cat >>confdefs.h <<\_ACEOF
15318 #define HAVE_U_INT64_T 1
15324 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
15325 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
15327 echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
15328 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
15329 cat >conftest.$ac_ext <<_ACEOF
15330 #line $LINENO "configure"
15333 cat confdefs.h >>conftest.$ac_ext
15334 cat >>conftest.$ac_ext <<_ACEOF
15335 /* end confdefs.h. */
15336 #include <sys/bitypes.h>
15340 int8_t a; int16_t b; int32_t c;
15341 u_int8_t e; u_int16_t f; u_int32_t g;
15342 a = b = c = e = f = g = 1;
15347 rm -f conftest.$ac_objext
15348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15349 (eval $ac_compile) 2>&5
15351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15352 (exit $ac_status); } &&
15353 { ac_try='test -s conftest.$ac_objext'
15354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15355 (eval $ac_try) 2>&5
15357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15358 (exit $ac_status); }; }; then
15359 cat >>confdefs.h <<\_ACEOF
15360 #define HAVE_U_INTXX_T 1
15363 cat >>confdefs.h <<\_ACEOF
15364 #define HAVE_INTXX_T 1
15367 cat >>confdefs.h <<\_ACEOF
15368 #define HAVE_SYS_BITYPES_H 1
15371 echo "$as_me:$LINENO: result: yes" >&5
15372 echo "${ECHO_T}yes" >&6
15374 echo "$as_me: failed program was:" >&5
15375 sed 's/^/| /' conftest.$ac_ext >&5
15377 echo "$as_me:$LINENO: result: no" >&5
15378 echo "${ECHO_T}no" >&6
15381 rm -f conftest.$ac_objext conftest.$ac_ext
15384 if test -z "$have_u_intxx_t" ; then
15385 echo "$as_me:$LINENO: checking for uintXX_t types" >&5
15386 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
15387 if test "${ac_cv_have_uintxx_t+set}" = set; then
15388 echo $ECHO_N "(cached) $ECHO_C" >&6
15391 cat >conftest.$ac_ext <<_ACEOF
15392 #line $LINENO "configure"
15395 cat confdefs.h >>conftest.$ac_ext
15396 cat >>conftest.$ac_ext <<_ACEOF
15397 /* end confdefs.h. */
15398 #include <sys/types.h>
15402 uint8_t a; uint16_t b;
15403 uint32_t c; a = b = c = 1;
15408 rm -f conftest.$ac_objext
15409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15410 (eval $ac_compile) 2>&5
15412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15413 (exit $ac_status); } &&
15414 { ac_try='test -s conftest.$ac_objext'
15415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15416 (eval $ac_try) 2>&5
15418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15419 (exit $ac_status); }; }; then
15420 ac_cv_have_uintxx_t="yes"
15422 echo "$as_me: failed program was:" >&5
15423 sed 's/^/| /' conftest.$ac_ext >&5
15425 ac_cv_have_uintxx_t="no"
15428 rm -f conftest.$ac_objext conftest.$ac_ext
15431 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
15432 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
15433 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
15434 cat >>confdefs.h <<\_ACEOF
15435 #define HAVE_UINTXX_T 1
15441 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
15442 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
15444 echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
15445 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
15446 cat >conftest.$ac_ext <<_ACEOF
15447 #line $LINENO "configure"
15450 cat confdefs.h >>conftest.$ac_ext
15451 cat >>conftest.$ac_ext <<_ACEOF
15452 /* end confdefs.h. */
15453 #include <sys/bitypes.h>
15457 int64_t a; u_int64_t b;
15463 rm -f conftest.$ac_objext
15464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15465 (eval $ac_compile) 2>&5
15467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15468 (exit $ac_status); } &&
15469 { ac_try='test -s conftest.$ac_objext'
15470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15471 (eval $ac_try) 2>&5
15473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15474 (exit $ac_status); }; }; then
15475 cat >>confdefs.h <<\_ACEOF
15476 #define HAVE_U_INT64_T 1
15479 cat >>confdefs.h <<\_ACEOF
15480 #define HAVE_INT64_T 1
15483 echo "$as_me:$LINENO: result: yes" >&5
15484 echo "${ECHO_T}yes" >&6
15486 echo "$as_me: failed program was:" >&5
15487 sed 's/^/| /' conftest.$ac_ext >&5
15489 echo "$as_me:$LINENO: result: no" >&5
15490 echo "${ECHO_T}no" >&6
15493 rm -f conftest.$ac_objext conftest.$ac_ext
15496 if (test -z "$have_uintxx_t" && \
15497 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
15499 echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
15500 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
15501 cat >conftest.$ac_ext <<_ACEOF
15502 #line $LINENO "configure"
15505 cat confdefs.h >>conftest.$ac_ext
15506 cat >>conftest.$ac_ext <<_ACEOF
15507 /* end confdefs.h. */
15508 #include <sys/bitypes.h>
15512 uint8_t a; uint16_t b;
15513 uint32_t c; a = b = c = 1;
15518 rm -f conftest.$ac_objext
15519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15520 (eval $ac_compile) 2>&5
15522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15523 (exit $ac_status); } &&
15524 { ac_try='test -s conftest.$ac_objext'
15525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15526 (eval $ac_try) 2>&5
15528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15529 (exit $ac_status); }; }; then
15530 cat >>confdefs.h <<\_ACEOF
15531 #define HAVE_UINTXX_T 1
15534 echo "$as_me:$LINENO: result: yes" >&5
15535 echo "${ECHO_T}yes" >&6
15537 echo "$as_me: failed program was:" >&5
15538 sed 's/^/| /' conftest.$ac_ext >&5
15540 echo "$as_me:$LINENO: result: no" >&5
15541 echo "${ECHO_T}no" >&6
15544 rm -f conftest.$ac_objext conftest.$ac_ext
15580 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15581 echo "$as_me:$LINENO: checking for $ac_func" >&5
15582 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15583 if eval "test \"\${$as_ac_var+set}\" = set"; then
15584 echo $ECHO_N "(cached) $ECHO_C" >&6
15586 cat >conftest.$ac_ext <<_ACEOF
15587 #line $LINENO "configure"
15590 cat confdefs.h >>conftest.$ac_ext
15591 cat >>conftest.$ac_ext <<_ACEOF
15592 /* end confdefs.h. */
15593 /* System header to define __stub macros and hopefully few prototypes,
15594 which can conflict with char $ac_func (); below.
15595 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15596 <limits.h> exists even on freestanding compilers. */
15598 # include <limits.h>
15600 # include <assert.h>
15602 /* Override any gcc2 internal prototype to avoid an error. */
15607 /* We use char because int might match the return type of a gcc2
15608 builtin and then its argument prototype would still apply. */
15610 /* The GNU C library defines this for functions which it implements
15611 to always fail with ENOSYS. Some functions are actually named
15612 something starting with __ and the normal name is an alias. */
15613 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15616 char (*f) () = $ac_func;
15625 return f != $ac_func;
15630 rm -f conftest.$ac_objext conftest$ac_exeext
15631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15632 (eval $ac_link) 2>&5
15634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15635 (exit $ac_status); } &&
15636 { ac_try='test -s conftest$ac_exeext'
15637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15638 (eval $ac_try) 2>&5
15640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15641 (exit $ac_status); }; }; then
15642 eval "$as_ac_var=yes"
15644 echo "$as_me: failed program was:" >&5
15645 sed 's/^/| /' conftest.$ac_ext >&5
15647 eval "$as_ac_var=no"
15649 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15651 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15652 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15653 if test `eval echo '${'$as_ac_var'}'` = yes; then
15654 cat >>confdefs.h <<_ACEOF
15655 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15659 echo 'configure: cannot find needed function.'; exit 1
15666 for ac_func in fchdir
15668 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15669 echo "$as_me:$LINENO: checking for $ac_func" >&5
15670 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15671 if eval "test \"\${$as_ac_var+set}\" = set"; then
15672 echo $ECHO_N "(cached) $ECHO_C" >&6
15674 cat >conftest.$ac_ext <<_ACEOF
15675 #line $LINENO "configure"
15678 cat confdefs.h >>conftest.$ac_ext
15679 cat >>conftest.$ac_ext <<_ACEOF
15680 /* end confdefs.h. */
15681 /* System header to define __stub macros and hopefully few prototypes,
15682 which can conflict with char $ac_func (); below.
15683 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15684 <limits.h> exists even on freestanding compilers. */
15686 # include <limits.h>
15688 # include <assert.h>
15690 /* Override any gcc2 internal prototype to avoid an error. */
15695 /* We use char because int might match the return type of a gcc2
15696 builtin and then its argument prototype would still apply. */
15698 /* The GNU C library defines this for functions which it implements
15699 to always fail with ENOSYS. Some functions are actually named
15700 something starting with __ and the normal name is an alias. */
15701 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15704 char (*f) () = $ac_func;
15713 return f != $ac_func;
15718 rm -f conftest.$ac_objext conftest$ac_exeext
15719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15720 (eval $ac_link) 2>&5
15722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15723 (exit $ac_status); } &&
15724 { ac_try='test -s conftest$ac_exeext'
15725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15726 (eval $ac_try) 2>&5
15728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15729 (exit $ac_status); }; }; then
15730 eval "$as_ac_var=yes"
15732 echo "$as_me: failed program was:" >&5
15733 sed 's/^/| /' conftest.$ac_ext >&5
15735 eval "$as_ac_var=no"
15737 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15739 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15740 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15741 if test `eval echo '${'$as_ac_var'}'` = yes; then
15742 cat >>confdefs.h <<_ACEOF
15743 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15745 cat >>confdefs.h <<\_ACEOF
15746 #define HAVE_FCHDIR 1
15753 for ac_func in strtoll
15755 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15756 echo "$as_me:$LINENO: checking for $ac_func" >&5
15757 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15758 if eval "test \"\${$as_ac_var+set}\" = set"; then
15759 echo $ECHO_N "(cached) $ECHO_C" >&6
15761 cat >conftest.$ac_ext <<_ACEOF
15762 #line $LINENO "configure"
15765 cat confdefs.h >>conftest.$ac_ext
15766 cat >>conftest.$ac_ext <<_ACEOF
15767 /* end confdefs.h. */
15768 /* System header to define __stub macros and hopefully few prototypes,
15769 which can conflict with char $ac_func (); below.
15770 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15771 <limits.h> exists even on freestanding compilers. */
15773 # include <limits.h>
15775 # include <assert.h>
15777 /* Override any gcc2 internal prototype to avoid an error. */
15782 /* We use char because int might match the return type of a gcc2
15783 builtin and then its argument prototype would still apply. */
15785 /* The GNU C library defines this for functions which it implements
15786 to always fail with ENOSYS. Some functions are actually named
15787 something starting with __ and the normal name is an alias. */
15788 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15791 char (*f) () = $ac_func;
15800 return f != $ac_func;
15805 rm -f conftest.$ac_objext conftest$ac_exeext
15806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15807 (eval $ac_link) 2>&5
15809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15810 (exit $ac_status); } &&
15811 { ac_try='test -s conftest$ac_exeext'
15812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15813 (eval $ac_try) 2>&5
15815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15816 (exit $ac_status); }; }; then
15817 eval "$as_ac_var=yes"
15819 echo "$as_me: failed program was:" >&5
15820 sed 's/^/| /' conftest.$ac_ext >&5
15822 eval "$as_ac_var=no"
15824 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15826 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15827 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15828 if test `eval echo '${'$as_ac_var'}'` = yes; then
15829 cat >>confdefs.h <<_ACEOF
15830 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15832 cat >>confdefs.h <<\_ACEOF
15833 #define HAVE_STRTOLL 1
15841 for ac_func in chflags
15843 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15844 echo "$as_me:$LINENO: checking for $ac_func" >&5
15845 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15846 if eval "test \"\${$as_ac_var+set}\" = set"; then
15847 echo $ECHO_N "(cached) $ECHO_C" >&6
15849 cat >conftest.$ac_ext <<_ACEOF
15850 #line $LINENO "configure"
15853 cat confdefs.h >>conftest.$ac_ext
15854 cat >>conftest.$ac_ext <<_ACEOF
15855 /* end confdefs.h. */
15856 /* System header to define __stub macros and hopefully few prototypes,
15857 which can conflict with char $ac_func (); below.
15858 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15859 <limits.h> exists even on freestanding compilers. */
15861 # include <limits.h>
15863 # include <assert.h>
15865 /* Override any gcc2 internal prototype to avoid an error. */
15870 /* We use char because int might match the return type of a gcc2
15871 builtin and then its argument prototype would still apply. */
15873 /* The GNU C library defines this for functions which it implements
15874 to always fail with ENOSYS. Some functions are actually named
15875 something starting with __ and the normal name is an alias. */
15876 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15879 char (*f) () = $ac_func;
15888 return f != $ac_func;
15893 rm -f conftest.$ac_objext conftest$ac_exeext
15894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15895 (eval $ac_link) 2>&5
15897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898 (exit $ac_status); } &&
15899 { ac_try='test -s conftest$ac_exeext'
15900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15901 (eval $ac_try) 2>&5
15903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15904 (exit $ac_status); }; }; then
15905 eval "$as_ac_var=yes"
15907 echo "$as_me: failed program was:" >&5
15908 sed 's/^/| /' conftest.$ac_ext >&5
15910 eval "$as_ac_var=no"
15912 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15914 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15915 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15916 if test `eval echo '${'$as_ac_var'}'` = yes; then
15917 cat >>confdefs.h <<_ACEOF
15918 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15929 for ac_func in snprintf vsnprintf gethostid getdomainname
15931 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15932 echo "$as_me:$LINENO: checking for $ac_func" >&5
15933 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15934 if eval "test \"\${$as_ac_var+set}\" = set"; then
15935 echo $ECHO_N "(cached) $ECHO_C" >&6
15937 cat >conftest.$ac_ext <<_ACEOF
15938 #line $LINENO "configure"
15941 cat confdefs.h >>conftest.$ac_ext
15942 cat >>conftest.$ac_ext <<_ACEOF
15943 /* end confdefs.h. */
15944 /* System header to define __stub macros and hopefully few prototypes,
15945 which can conflict with char $ac_func (); below.
15946 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15947 <limits.h> exists even on freestanding compilers. */
15949 # include <limits.h>
15951 # include <assert.h>
15953 /* Override any gcc2 internal prototype to avoid an error. */
15958 /* We use char because int might match the return type of a gcc2
15959 builtin and then its argument prototype would still apply. */
15961 /* The GNU C library defines this for functions which it implements
15962 to always fail with ENOSYS. Some functions are actually named
15963 something starting with __ and the normal name is an alias. */
15964 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15967 char (*f) () = $ac_func;
15976 return f != $ac_func;
15981 rm -f conftest.$ac_objext conftest$ac_exeext
15982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15983 (eval $ac_link) 2>&5
15985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15986 (exit $ac_status); } &&
15987 { ac_try='test -s conftest$ac_exeext'
15988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15989 (eval $ac_try) 2>&5
15991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15992 (exit $ac_status); }; }; then
15993 eval "$as_ac_var=yes"
15995 echo "$as_me: failed program was:" >&5
15996 sed 's/^/| /' conftest.$ac_ext >&5
15998 eval "$as_ac_var=no"
16000 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16002 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16003 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16004 if test `eval echo '${'$as_ac_var'}'` = yes; then
16005 cat >>confdefs.h <<_ACEOF
16006 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16017 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
16019 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16020 echo "$as_me:$LINENO: checking for $ac_func" >&5
16021 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16022 if eval "test \"\${$as_ac_var+set}\" = set"; then
16023 echo $ECHO_N "(cached) $ECHO_C" >&6
16025 cat >conftest.$ac_ext <<_ACEOF
16026 #line $LINENO "configure"
16029 cat confdefs.h >>conftest.$ac_ext
16030 cat >>conftest.$ac_ext <<_ACEOF
16031 /* end confdefs.h. */
16032 /* System header to define __stub macros and hopefully few prototypes,
16033 which can conflict with char $ac_func (); below.
16034 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16035 <limits.h> exists even on freestanding compilers. */
16037 # include <limits.h>
16039 # include <assert.h>
16041 /* Override any gcc2 internal prototype to avoid an error. */
16046 /* We use char because int might match the return type of a gcc2
16047 builtin and then its argument prototype would still apply. */
16049 /* The GNU C library defines this for functions which it implements
16050 to always fail with ENOSYS. Some functions are actually named
16051 something starting with __ and the normal name is an alias. */
16052 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16055 char (*f) () = $ac_func;
16064 return f != $ac_func;
16069 rm -f conftest.$ac_objext conftest$ac_exeext
16070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16071 (eval $ac_link) 2>&5
16073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16074 (exit $ac_status); } &&
16075 { ac_try='test -s conftest$ac_exeext'
16076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16077 (eval $ac_try) 2>&5
16079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16080 (exit $ac_status); }; }; then
16081 eval "$as_ac_var=yes"
16083 echo "$as_me: failed program was:" >&5
16084 sed 's/^/| /' conftest.$ac_ext >&5
16086 eval "$as_ac_var=no"
16088 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16090 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16091 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16092 if test `eval echo '${'$as_ac_var'}'` = yes; then
16093 cat >>confdefs.h <<_ACEOF
16094 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16101 # If resolver functions are not in libc check for -lnsl or -lresolv.
16102 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
16103 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
16104 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
16105 echo $ECHO_N "(cached) $ECHO_C" >&6
16107 cat >conftest.$ac_ext <<_ACEOF
16108 #line $LINENO "configure"
16111 cat confdefs.h >>conftest.$ac_ext
16112 cat >>conftest.$ac_ext <<_ACEOF
16113 /* end confdefs.h. */
16114 /* System header to define __stub macros and hopefully few prototypes,
16115 which can conflict with char gethostbyname_r (); below.
16116 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16117 <limits.h> exists even on freestanding compilers. */
16119 # include <limits.h>
16121 # include <assert.h>
16123 /* Override any gcc2 internal prototype to avoid an error. */
16128 /* We use char because int might match the return type of a gcc2
16129 builtin and then its argument prototype would still apply. */
16130 char gethostbyname_r ();
16131 /* The GNU C library defines this for functions which it implements
16132 to always fail with ENOSYS. Some functions are actually named
16133 something starting with __ and the normal name is an alias. */
16134 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
16137 char (*f) () = gethostbyname_r;
16146 return f != gethostbyname_r;
16151 rm -f conftest.$ac_objext conftest$ac_exeext
16152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16153 (eval $ac_link) 2>&5
16155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16156 (exit $ac_status); } &&
16157 { ac_try='test -s conftest$ac_exeext'
16158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16159 (eval $ac_try) 2>&5
16161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16162 (exit $ac_status); }; }; then
16163 ac_cv_func_gethostbyname_r=yes
16165 echo "$as_me: failed program was:" >&5
16166 sed 's/^/| /' conftest.$ac_ext >&5
16168 ac_cv_func_gethostbyname_r=no
16170 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16172 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
16173 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
16174 if test $ac_cv_func_gethostbyname_r = yes; then
16175 echo "$as_me:$LINENO: result: using libc's resolver" >&5
16176 echo "${ECHO_T}using libc's resolver" >&6
16179 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
16180 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
16181 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
16182 echo $ECHO_N "(cached) $ECHO_C" >&6
16184 ac_check_lib_save_LIBS=$LIBS
16186 cat >conftest.$ac_ext <<_ACEOF
16187 #line $LINENO "configure"
16190 cat confdefs.h >>conftest.$ac_ext
16191 cat >>conftest.$ac_ext <<_ACEOF
16192 /* end confdefs.h. */
16194 /* Override any gcc2 internal prototype to avoid an error. */
16198 /* We use char because int might match the return type of a gcc2
16199 builtin and then its argument prototype would still apply. */
16200 char gethostbyname_r ();
16204 gethostbyname_r ();
16209 rm -f conftest.$ac_objext conftest$ac_exeext
16210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16211 (eval $ac_link) 2>&5
16213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16214 (exit $ac_status); } &&
16215 { ac_try='test -s conftest$ac_exeext'
16216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16217 (eval $ac_try) 2>&5
16219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16220 (exit $ac_status); }; }; then
16221 ac_cv_lib_nsl_gethostbyname_r=yes
16223 echo "$as_me: failed program was:" >&5
16224 sed 's/^/| /' conftest.$ac_ext >&5
16226 ac_cv_lib_nsl_gethostbyname_r=no
16228 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16229 LIBS=$ac_check_lib_save_LIBS
16231 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
16232 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
16233 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
16234 cat >>confdefs.h <<_ACEOF
16235 #define HAVE_LIBNSL 1
16243 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
16244 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
16245 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
16246 echo $ECHO_N "(cached) $ECHO_C" >&6
16248 ac_check_lib_save_LIBS=$LIBS
16249 LIBS="-lresolv $LIBS"
16250 cat >conftest.$ac_ext <<_ACEOF
16251 #line $LINENO "configure"
16254 cat confdefs.h >>conftest.$ac_ext
16255 cat >>conftest.$ac_ext <<_ACEOF
16256 /* end confdefs.h. */
16258 /* Override any gcc2 internal prototype to avoid an error. */
16262 /* We use char because int might match the return type of a gcc2
16263 builtin and then its argument prototype would still apply. */
16264 char gethostbyname_r ();
16268 gethostbyname_r ();
16273 rm -f conftest.$ac_objext conftest$ac_exeext
16274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16275 (eval $ac_link) 2>&5
16277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16278 (exit $ac_status); } &&
16279 { ac_try='test -s conftest$ac_exeext'
16280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16281 (eval $ac_try) 2>&5
16283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16284 (exit $ac_status); }; }; then
16285 ac_cv_lib_resolv_gethostbyname_r=yes
16287 echo "$as_me: failed program was:" >&5
16288 sed 's/^/| /' conftest.$ac_ext >&5
16290 ac_cv_lib_resolv_gethostbyname_r=no
16292 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16293 LIBS=$ac_check_lib_save_LIBS
16295 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
16296 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
16297 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
16298 cat >>confdefs.h <<_ACEOF
16299 #define HAVE_LIBRESOLV 1
16302 LIBS="-lresolv $LIBS"
16310 # Find where sockets are (especially for Solaris)
16311 echo "$as_me:$LINENO: checking for socket" >&5
16312 echo $ECHO_N "checking for socket... $ECHO_C" >&6
16313 if test "${ac_cv_func_socket+set}" = set; then
16314 echo $ECHO_N "(cached) $ECHO_C" >&6
16316 cat >conftest.$ac_ext <<_ACEOF
16317 #line $LINENO "configure"
16320 cat confdefs.h >>conftest.$ac_ext
16321 cat >>conftest.$ac_ext <<_ACEOF
16322 /* end confdefs.h. */
16323 /* System header to define __stub macros and hopefully few prototypes,
16324 which can conflict with char socket (); below.
16325 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16326 <limits.h> exists even on freestanding compilers. */
16328 # include <limits.h>
16330 # include <assert.h>
16332 /* Override any gcc2 internal prototype to avoid an error. */
16337 /* We use char because int might match the return type of a gcc2
16338 builtin and then its argument prototype would still apply. */
16340 /* The GNU C library defines this for functions which it implements
16341 to always fail with ENOSYS. Some functions are actually named
16342 something starting with __ and the normal name is an alias. */
16343 #if defined (__stub_socket) || defined (__stub___socket)
16346 char (*f) () = socket;
16355 return f != socket;
16360 rm -f conftest.$ac_objext conftest$ac_exeext
16361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16362 (eval $ac_link) 2>&5
16364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16365 (exit $ac_status); } &&
16366 { ac_try='test -s conftest$ac_exeext'
16367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16368 (eval $ac_try) 2>&5
16370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16371 (exit $ac_status); }; }; then
16372 ac_cv_func_socket=yes
16374 echo "$as_me: failed program was:" >&5
16375 sed 's/^/| /' conftest.$ac_ext >&5
16377 ac_cv_func_socket=no
16379 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16381 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
16382 echo "${ECHO_T}$ac_cv_func_socket" >&6
16383 if test $ac_cv_func_socket = yes; then
16384 echo "$as_me:$LINENO: result: using libc's socket" >&5
16385 echo "${ECHO_T}using libc's socket" >&6
16388 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
16389 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
16390 if test "${ac_cv_lib_xnet_socket+set}" = set; then
16391 echo $ECHO_N "(cached) $ECHO_C" >&6
16393 ac_check_lib_save_LIBS=$LIBS
16394 LIBS="-lxnet $LIBS"
16395 cat >conftest.$ac_ext <<_ACEOF
16396 #line $LINENO "configure"
16399 cat confdefs.h >>conftest.$ac_ext
16400 cat >>conftest.$ac_ext <<_ACEOF
16401 /* end confdefs.h. */
16403 /* Override any gcc2 internal prototype to avoid an error. */
16407 /* We use char because int might match the return type of a gcc2
16408 builtin and then its argument prototype would still apply. */
16418 rm -f conftest.$ac_objext conftest$ac_exeext
16419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16420 (eval $ac_link) 2>&5
16422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16423 (exit $ac_status); } &&
16424 { ac_try='test -s conftest$ac_exeext'
16425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16426 (eval $ac_try) 2>&5
16428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16429 (exit $ac_status); }; }; then
16430 ac_cv_lib_xnet_socket=yes
16432 echo "$as_me: failed program was:" >&5
16433 sed 's/^/| /' conftest.$ac_ext >&5
16435 ac_cv_lib_xnet_socket=no
16437 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16438 LIBS=$ac_check_lib_save_LIBS
16440 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
16441 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
16442 if test $ac_cv_lib_xnet_socket = yes; then
16443 cat >>confdefs.h <<_ACEOF
16444 #define HAVE_LIBXNET 1
16447 LIBS="-lxnet $LIBS"
16452 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
16453 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
16454 if test "${ac_cv_lib_socket_socket+set}" = set; then
16455 echo $ECHO_N "(cached) $ECHO_C" >&6
16457 ac_check_lib_save_LIBS=$LIBS
16458 LIBS="-lsocket $LIBS"
16459 cat >conftest.$ac_ext <<_ACEOF
16460 #line $LINENO "configure"
16463 cat confdefs.h >>conftest.$ac_ext
16464 cat >>conftest.$ac_ext <<_ACEOF
16465 /* end confdefs.h. */
16467 /* Override any gcc2 internal prototype to avoid an error. */
16471 /* We use char because int might match the return type of a gcc2
16472 builtin and then its argument prototype would still apply. */
16482 rm -f conftest.$ac_objext conftest$ac_exeext
16483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16484 (eval $ac_link) 2>&5
16486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16487 (exit $ac_status); } &&
16488 { ac_try='test -s conftest$ac_exeext'
16489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16490 (eval $ac_try) 2>&5
16492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16493 (exit $ac_status); }; }; then
16494 ac_cv_lib_socket_socket=yes
16496 echo "$as_me: failed program was:" >&5
16497 sed 's/^/| /' conftest.$ac_ext >&5
16499 ac_cv_lib_socket_socket=no
16501 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16502 LIBS=$ac_check_lib_save_LIBS
16504 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
16505 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
16506 if test $ac_cv_lib_socket_socket = yes; then
16507 cat >>confdefs.h <<_ACEOF
16508 #define HAVE_LIBSOCKET 1
16511 LIBS="-lsocket $LIBS"
16516 echo "$as_me:$LINENO: checking for socket in -linet" >&5
16517 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
16518 if test "${ac_cv_lib_inet_socket+set}" = set; then
16519 echo $ECHO_N "(cached) $ECHO_C" >&6
16521 ac_check_lib_save_LIBS=$LIBS
16522 LIBS="-linet $LIBS"
16523 cat >conftest.$ac_ext <<_ACEOF
16524 #line $LINENO "configure"
16527 cat confdefs.h >>conftest.$ac_ext
16528 cat >>conftest.$ac_ext <<_ACEOF
16529 /* end confdefs.h. */
16531 /* Override any gcc2 internal prototype to avoid an error. */
16535 /* We use char because int might match the return type of a gcc2
16536 builtin and then its argument prototype would still apply. */
16546 rm -f conftest.$ac_objext conftest$ac_exeext
16547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16548 (eval $ac_link) 2>&5
16550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16551 (exit $ac_status); } &&
16552 { ac_try='test -s conftest$ac_exeext'
16553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16554 (eval $ac_try) 2>&5
16556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16557 (exit $ac_status); }; }; then
16558 ac_cv_lib_inet_socket=yes
16560 echo "$as_me: failed program was:" >&5
16561 sed 's/^/| /' conftest.$ac_ext >&5
16563 ac_cv_lib_inet_socket=no
16565 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16566 LIBS=$ac_check_lib_save_LIBS
16568 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
16569 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
16570 if test $ac_cv_lib_inet_socket = yes; then
16571 cat >>confdefs.h <<_ACEOF
16572 #define HAVE_LIBINET 1
16575 LIBS="-linet $LIBS"
16583 for ac_func in inet_pton
16585 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16586 echo "$as_me:$LINENO: checking for $ac_func" >&5
16587 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16588 if eval "test \"\${$as_ac_var+set}\" = set"; then
16589 echo $ECHO_N "(cached) $ECHO_C" >&6
16591 cat >conftest.$ac_ext <<_ACEOF
16592 #line $LINENO "configure"
16595 cat confdefs.h >>conftest.$ac_ext
16596 cat >>conftest.$ac_ext <<_ACEOF
16597 /* end confdefs.h. */
16598 /* System header to define __stub macros and hopefully few prototypes,
16599 which can conflict with char $ac_func (); below.
16600 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16601 <limits.h> exists even on freestanding compilers. */
16603 # include <limits.h>
16605 # include <assert.h>
16607 /* Override any gcc2 internal prototype to avoid an error. */
16612 /* We use char because int might match the return type of a gcc2
16613 builtin and then its argument prototype would still apply. */
16615 /* The GNU C library defines this for functions which it implements
16616 to always fail with ENOSYS. Some functions are actually named
16617 something starting with __ and the normal name is an alias. */
16618 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16621 char (*f) () = $ac_func;
16630 return f != $ac_func;
16635 rm -f conftest.$ac_objext conftest$ac_exeext
16636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16637 (eval $ac_link) 2>&5
16639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16640 (exit $ac_status); } &&
16641 { ac_try='test -s conftest$ac_exeext'
16642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16643 (eval $ac_try) 2>&5
16645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16646 (exit $ac_status); }; }; then
16647 eval "$as_ac_var=yes"
16649 echo "$as_me: failed program was:" >&5
16650 sed 's/^/| /' conftest.$ac_ext >&5
16652 eval "$as_ac_var=no"
16654 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16656 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16657 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16658 if test `eval echo '${'$as_ac_var'}'` = yes; then
16659 cat >>confdefs.h <<_ACEOF
16660 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16662 cat >>confdefs.h <<\_ACEOF
16663 #define HAVE_INET_PTON 1
16670 for ac_func in inet_ntop
16672 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16673 echo "$as_me:$LINENO: checking for $ac_func" >&5
16674 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16675 if eval "test \"\${$as_ac_var+set}\" = set"; then
16676 echo $ECHO_N "(cached) $ECHO_C" >&6
16678 cat >conftest.$ac_ext <<_ACEOF
16679 #line $LINENO "configure"
16682 cat confdefs.h >>conftest.$ac_ext
16683 cat >>conftest.$ac_ext <<_ACEOF
16684 /* end confdefs.h. */
16685 /* System header to define __stub macros and hopefully few prototypes,
16686 which can conflict with char $ac_func (); below.
16687 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16688 <limits.h> exists even on freestanding compilers. */
16690 # include <limits.h>
16692 # include <assert.h>
16694 /* Override any gcc2 internal prototype to avoid an error. */
16699 /* We use char because int might match the return type of a gcc2
16700 builtin and then its argument prototype would still apply. */
16702 /* The GNU C library defines this for functions which it implements
16703 to always fail with ENOSYS. Some functions are actually named
16704 something starting with __ and the normal name is an alias. */
16705 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16708 char (*f) () = $ac_func;
16717 return f != $ac_func;
16722 rm -f conftest.$ac_objext conftest$ac_exeext
16723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16724 (eval $ac_link) 2>&5
16726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16727 (exit $ac_status); } &&
16728 { ac_try='test -s conftest$ac_exeext'
16729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16730 (eval $ac_try) 2>&5
16732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16733 (exit $ac_status); }; }; then
16734 eval "$as_ac_var=yes"
16736 echo "$as_me: failed program was:" >&5
16737 sed 's/^/| /' conftest.$ac_ext >&5
16739 eval "$as_ac_var=no"
16741 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16743 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16744 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16745 if test `eval echo '${'$as_ac_var'}'` = yes; then
16746 cat >>confdefs.h <<_ACEOF
16747 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16749 cat >>confdefs.h <<\_ACEOF
16750 #define HAVE_INET_NTOP 1
16757 for ac_func in gethostbyname2
16759 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16760 echo "$as_me:$LINENO: checking for $ac_func" >&5
16761 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16762 if eval "test \"\${$as_ac_var+set}\" = set"; then
16763 echo $ECHO_N "(cached) $ECHO_C" >&6
16765 cat >conftest.$ac_ext <<_ACEOF
16766 #line $LINENO "configure"
16769 cat confdefs.h >>conftest.$ac_ext
16770 cat >>conftest.$ac_ext <<_ACEOF
16771 /* end confdefs.h. */
16772 /* System header to define __stub macros and hopefully few prototypes,
16773 which can conflict with char $ac_func (); below.
16774 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16775 <limits.h> exists even on freestanding compilers. */
16777 # include <limits.h>
16779 # include <assert.h>
16781 /* Override any gcc2 internal prototype to avoid an error. */
16786 /* We use char because int might match the return type of a gcc2
16787 builtin and then its argument prototype would still apply. */
16789 /* The GNU C library defines this for functions which it implements
16790 to always fail with ENOSYS. Some functions are actually named
16791 something starting with __ and the normal name is an alias. */
16792 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16795 char (*f) () = $ac_func;
16804 return f != $ac_func;
16809 rm -f conftest.$ac_objext conftest$ac_exeext
16810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16811 (eval $ac_link) 2>&5
16813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16814 (exit $ac_status); } &&
16815 { ac_try='test -s conftest$ac_exeext'
16816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16817 (eval $ac_try) 2>&5
16819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16820 (exit $ac_status); }; }; then
16821 eval "$as_ac_var=yes"
16823 echo "$as_me: failed program was:" >&5
16824 sed 's/^/| /' conftest.$ac_ext >&5
16826 eval "$as_ac_var=no"
16828 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16830 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16831 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16832 if test `eval echo '${'$as_ac_var'}'` = yes; then
16833 cat >>confdefs.h <<_ACEOF
16834 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16836 cat >>confdefs.h <<\_ACEOF
16837 #define HAVE_GETHOSTBYNAME2 1
16844 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
16845 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
16846 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
16847 echo $ECHO_N "(cached) $ECHO_C" >&6
16849 cat >conftest.$ac_ext <<_ACEOF
16850 #line $LINENO "configure"
16853 cat confdefs.h >>conftest.$ac_ext
16854 cat >>conftest.$ac_ext <<_ACEOF
16855 /* end confdefs.h. */
16856 #include <sys/socket.h>
16860 struct sockaddr s; s.sa_len;
16865 rm -f conftest.$ac_objext
16866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16867 (eval $ac_compile) 2>&5
16869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16870 (exit $ac_status); } &&
16871 { ac_try='test -s conftest.$ac_objext'
16872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16873 (eval $ac_try) 2>&5
16875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16876 (exit $ac_status); }; }; then
16877 ac_cv_struct_sockaddr_sa_len=yes
16879 echo "$as_me: failed program was:" >&5
16880 sed 's/^/| /' conftest.$ac_ext >&5
16882 ac_cv_struct_sockaddr_sa_len=no
16884 rm -f conftest.$ac_objext conftest.$ac_ext
16886 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
16887 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
16889 if test $ac_cv_struct_sockaddr_sa_len = yes; then
16891 cat >>confdefs.h <<\_ACEOF
16892 #define HAVE_SA_LEN 1
16898 echo "$as_me:$LINENO: checking for IPv6 support" >&5
16899 echo $ECHO_N "checking for IPv6 support... $ECHO_C" >&6
16900 if test "${ac_cv_ipv6_support+set}" = set; then
16901 echo $ECHO_N "(cached) $ECHO_C" >&6
16903 cat >conftest.$ac_ext <<_ACEOF
16904 #line $LINENO "configure"
16907 cat confdefs.h >>conftest.$ac_ext
16908 cat >>conftest.$ac_ext <<_ACEOF
16909 /* end confdefs.h. */
16910 #include <sys/types.h>
16911 #include <sys/socket.h>
16912 #include <netinet/in.h>
16916 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] =
16922 rm -f conftest.$ac_objext conftest$ac_exeext
16923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16924 (eval $ac_link) 2>&5
16926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16927 (exit $ac_status); } &&
16928 { ac_try='test -s conftest$ac_exeext'
16929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16930 (eval $ac_try) 2>&5
16932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16933 (exit $ac_status); }; }; then
16934 ac_cv_ipv6_support=yes
16936 echo "$as_me: failed program was:" >&5
16937 sed 's/^/| /' conftest.$ac_ext >&5
16939 ac_cv_ipv6_support=no
16941 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16943 echo "$as_me:$LINENO: result: $ac_cv_ipv6_support" >&5
16944 echo "${ECHO_T}$ac_cv_ipv6_support" >&6
16946 if test "$ac_cv_ipv6_support" = yes; then
16948 cat >>confdefs.h <<\_ACEOF
16949 #define HAVE_IPV6 1
16957 for ac_func in strftime
16959 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16960 echo "$as_me:$LINENO: checking for $ac_func" >&5
16961 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16962 if eval "test \"\${$as_ac_var+set}\" = set"; then
16963 echo $ECHO_N "(cached) $ECHO_C" >&6
16965 cat >conftest.$ac_ext <<_ACEOF
16966 #line $LINENO "configure"
16969 cat confdefs.h >>conftest.$ac_ext
16970 cat >>conftest.$ac_ext <<_ACEOF
16971 /* end confdefs.h. */
16972 /* System header to define __stub macros and hopefully few prototypes,
16973 which can conflict with char $ac_func (); below.
16974 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16975 <limits.h> exists even on freestanding compilers. */
16977 # include <limits.h>
16979 # include <assert.h>
16981 /* Override any gcc2 internal prototype to avoid an error. */
16986 /* We use char because int might match the return type of a gcc2
16987 builtin and then its argument prototype would still apply. */
16989 /* The GNU C library defines this for functions which it implements
16990 to always fail with ENOSYS. Some functions are actually named
16991 something starting with __ and the normal name is an alias. */
16992 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16995 char (*f) () = $ac_func;
17004 return f != $ac_func;
17009 rm -f conftest.$ac_objext conftest$ac_exeext
17010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17011 (eval $ac_link) 2>&5
17013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17014 (exit $ac_status); } &&
17015 { ac_try='test -s conftest$ac_exeext'
17016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17017 (eval $ac_try) 2>&5
17019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17020 (exit $ac_status); }; }; then
17021 eval "$as_ac_var=yes"
17023 echo "$as_me: failed program was:" >&5
17024 sed 's/^/| /' conftest.$ac_ext >&5
17026 eval "$as_ac_var=no"
17028 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17030 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17031 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17032 if test `eval echo '${'$as_ac_var'}'` = yes; then
17033 cat >>confdefs.h <<_ACEOF
17034 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17038 # strftime is in -lintl on SCO UNIX.
17039 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
17040 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
17041 if test "${ac_cv_lib_intl_strftime+set}" = set; then
17042 echo $ECHO_N "(cached) $ECHO_C" >&6
17044 ac_check_lib_save_LIBS=$LIBS
17045 LIBS="-lintl $LIBS"
17046 cat >conftest.$ac_ext <<_ACEOF
17047 #line $LINENO "configure"
17050 cat confdefs.h >>conftest.$ac_ext
17051 cat >>conftest.$ac_ext <<_ACEOF
17052 /* end confdefs.h. */
17054 /* Override any gcc2 internal prototype to avoid an error. */
17058 /* We use char because int might match the return type of a gcc2
17059 builtin and then its argument prototype would still apply. */
17069 rm -f conftest.$ac_objext conftest$ac_exeext
17070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17071 (eval $ac_link) 2>&5
17073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17074 (exit $ac_status); } &&
17075 { ac_try='test -s conftest$ac_exeext'
17076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17077 (eval $ac_try) 2>&5
17079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17080 (exit $ac_status); }; }; then
17081 ac_cv_lib_intl_strftime=yes
17083 echo "$as_me: failed program was:" >&5
17084 sed 's/^/| /' conftest.$ac_ext >&5
17086 ac_cv_lib_intl_strftime=no
17088 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17089 LIBS=$ac_check_lib_save_LIBS
17091 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
17092 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
17093 if test $ac_cv_lib_intl_strftime = yes; then
17094 cat >>confdefs.h <<\_ACEOF
17095 #define HAVE_STRFTIME 1
17098 LIBS="-lintl $LIBS"
17105 for ac_func in vprintf
17107 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17108 echo "$as_me:$LINENO: checking for $ac_func" >&5
17109 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17110 if eval "test \"\${$as_ac_var+set}\" = set"; then
17111 echo $ECHO_N "(cached) $ECHO_C" >&6
17113 cat >conftest.$ac_ext <<_ACEOF
17114 #line $LINENO "configure"
17117 cat confdefs.h >>conftest.$ac_ext
17118 cat >>conftest.$ac_ext <<_ACEOF
17119 /* end confdefs.h. */
17120 /* System header to define __stub macros and hopefully few prototypes,
17121 which can conflict with char $ac_func (); below.
17122 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17123 <limits.h> exists even on freestanding compilers. */
17125 # include <limits.h>
17127 # include <assert.h>
17129 /* Override any gcc2 internal prototype to avoid an error. */
17134 /* We use char because int might match the return type of a gcc2
17135 builtin and then its argument prototype would still apply. */
17137 /* The GNU C library defines this for functions which it implements
17138 to always fail with ENOSYS. Some functions are actually named
17139 something starting with __ and the normal name is an alias. */
17140 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17143 char (*f) () = $ac_func;
17152 return f != $ac_func;
17157 rm -f conftest.$ac_objext conftest$ac_exeext
17158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17159 (eval $ac_link) 2>&5
17161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17162 (exit $ac_status); } &&
17163 { ac_try='test -s conftest$ac_exeext'
17164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17165 (eval $ac_try) 2>&5
17167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17168 (exit $ac_status); }; }; then
17169 eval "$as_ac_var=yes"
17171 echo "$as_me: failed program was:" >&5
17172 sed 's/^/| /' conftest.$ac_ext >&5
17174 eval "$as_ac_var=no"
17176 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17178 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17179 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17180 if test `eval echo '${'$as_ac_var'}'` = yes; then
17181 cat >>confdefs.h <<_ACEOF
17182 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17185 echo "$as_me:$LINENO: checking for _doprnt" >&5
17186 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
17187 if test "${ac_cv_func__doprnt+set}" = set; then
17188 echo $ECHO_N "(cached) $ECHO_C" >&6
17190 cat >conftest.$ac_ext <<_ACEOF
17191 #line $LINENO "configure"
17194 cat confdefs.h >>conftest.$ac_ext
17195 cat >>conftest.$ac_ext <<_ACEOF
17196 /* end confdefs.h. */
17197 /* System header to define __stub macros and hopefully few prototypes,
17198 which can conflict with char _doprnt (); below.
17199 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17200 <limits.h> exists even on freestanding compilers. */
17202 # include <limits.h>
17204 # include <assert.h>
17206 /* Override any gcc2 internal prototype to avoid an error. */
17211 /* We use char because int might match the return type of a gcc2
17212 builtin and then its argument prototype would still apply. */
17214 /* The GNU C library defines this for functions which it implements
17215 to always fail with ENOSYS. Some functions are actually named
17216 something starting with __ and the normal name is an alias. */
17217 #if defined (__stub__doprnt) || defined (__stub____doprnt)
17220 char (*f) () = _doprnt;
17229 return f != _doprnt;
17234 rm -f conftest.$ac_objext conftest$ac_exeext
17235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17236 (eval $ac_link) 2>&5
17238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17239 (exit $ac_status); } &&
17240 { ac_try='test -s conftest$ac_exeext'
17241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17242 (eval $ac_try) 2>&5
17244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17245 (exit $ac_status); }; }; then
17246 ac_cv_func__doprnt=yes
17248 echo "$as_me: failed program was:" >&5
17249 sed 's/^/| /' conftest.$ac_ext >&5
17251 ac_cv_func__doprnt=no
17253 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17255 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
17256 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
17257 if test $ac_cv_func__doprnt = yes; then
17259 cat >>confdefs.h <<\_ACEOF
17260 #define HAVE_DOPRNT 1
17269 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
17270 # for constant arguments. Useless!
17271 echo "$as_me:$LINENO: checking for working alloca.h" >&5
17272 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
17273 if test "${ac_cv_working_alloca_h+set}" = set; then
17274 echo $ECHO_N "(cached) $ECHO_C" >&6
17276 cat >conftest.$ac_ext <<_ACEOF
17277 #line $LINENO "configure"
17280 cat confdefs.h >>conftest.$ac_ext
17281 cat >>conftest.$ac_ext <<_ACEOF
17282 /* end confdefs.h. */
17283 #include <alloca.h>
17287 char *p = (char *) alloca (2 * sizeof (int));
17292 rm -f conftest.$ac_objext conftest$ac_exeext
17293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17294 (eval $ac_link) 2>&5
17296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17297 (exit $ac_status); } &&
17298 { ac_try='test -s conftest$ac_exeext'
17299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17300 (eval $ac_try) 2>&5
17302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17303 (exit $ac_status); }; }; then
17304 ac_cv_working_alloca_h=yes
17306 echo "$as_me: failed program was:" >&5
17307 sed 's/^/| /' conftest.$ac_ext >&5
17309 ac_cv_working_alloca_h=no
17311 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17313 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
17314 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
17315 if test $ac_cv_working_alloca_h = yes; then
17317 cat >>confdefs.h <<\_ACEOF
17318 #define HAVE_ALLOCA_H 1
17323 echo "$as_me:$LINENO: checking for alloca" >&5
17324 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
17325 if test "${ac_cv_func_alloca_works+set}" = set; then
17326 echo $ECHO_N "(cached) $ECHO_C" >&6
17328 cat >conftest.$ac_ext <<_ACEOF
17329 #line $LINENO "configure"
17332 cat confdefs.h >>conftest.$ac_ext
17333 cat >>conftest.$ac_ext <<_ACEOF
17334 /* end confdefs.h. */
17336 # define alloca __builtin_alloca
17339 # include <malloc.h>
17340 # define alloca _alloca
17343 # include <alloca.h>
17348 # ifndef alloca /* predefined by HP cc +Olibcalls */
17359 char *p = (char *) alloca (1);
17364 rm -f conftest.$ac_objext conftest$ac_exeext
17365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17366 (eval $ac_link) 2>&5
17368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17369 (exit $ac_status); } &&
17370 { ac_try='test -s conftest$ac_exeext'
17371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17372 (eval $ac_try) 2>&5
17374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17375 (exit $ac_status); }; }; then
17376 ac_cv_func_alloca_works=yes
17378 echo "$as_me: failed program was:" >&5
17379 sed 's/^/| /' conftest.$ac_ext >&5
17381 ac_cv_func_alloca_works=no
17383 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17385 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
17386 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
17388 if test $ac_cv_func_alloca_works = yes; then
17390 cat >>confdefs.h <<\_ACEOF
17391 #define HAVE_ALLOCA 1
17395 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
17396 # that cause trouble. Some versions do not even contain alloca or
17397 # contain a buggy version. If you still want to use their alloca,
17398 # use ar to extract alloca.o from them instead of compiling alloca.c.
17400 ALLOCA=alloca.$ac_objext
17402 cat >>confdefs.h <<\_ACEOF
17407 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
17408 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
17409 if test "${ac_cv_os_cray+set}" = set; then
17410 echo $ECHO_N "(cached) $ECHO_C" >&6
17412 cat >conftest.$ac_ext <<_ACEOF
17413 #line $LINENO "configure"
17416 cat confdefs.h >>conftest.$ac_ext
17417 cat >>conftest.$ac_ext <<_ACEOF
17418 /* end confdefs.h. */
17419 #if defined(CRAY) && ! defined(CRAY2)
17426 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17427 $EGREP "webecray" >/dev/null 2>&1; then
17435 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
17436 echo "${ECHO_T}$ac_cv_os_cray" >&6
17437 if test $ac_cv_os_cray = yes; then
17438 for ac_func in _getb67 GETB67 getb67; do
17439 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17440 echo "$as_me:$LINENO: checking for $ac_func" >&5
17441 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17442 if eval "test \"\${$as_ac_var+set}\" = set"; then
17443 echo $ECHO_N "(cached) $ECHO_C" >&6
17445 cat >conftest.$ac_ext <<_ACEOF
17446 #line $LINENO "configure"
17449 cat confdefs.h >>conftest.$ac_ext
17450 cat >>conftest.$ac_ext <<_ACEOF
17451 /* end confdefs.h. */
17452 /* System header to define __stub macros and hopefully few prototypes,
17453 which can conflict with char $ac_func (); below.
17454 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17455 <limits.h> exists even on freestanding compilers. */
17457 # include <limits.h>
17459 # include <assert.h>
17461 /* Override any gcc2 internal prototype to avoid an error. */
17466 /* We use char because int might match the return type of a gcc2
17467 builtin and then its argument prototype would still apply. */
17469 /* The GNU C library defines this for functions which it implements
17470 to always fail with ENOSYS. Some functions are actually named
17471 something starting with __ and the normal name is an alias. */
17472 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17475 char (*f) () = $ac_func;
17484 return f != $ac_func;
17489 rm -f conftest.$ac_objext conftest$ac_exeext
17490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17491 (eval $ac_link) 2>&5
17493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17494 (exit $ac_status); } &&
17495 { ac_try='test -s conftest$ac_exeext'
17496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17497 (eval $ac_try) 2>&5
17499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17500 (exit $ac_status); }; }; then
17501 eval "$as_ac_var=yes"
17503 echo "$as_me: failed program was:" >&5
17504 sed 's/^/| /' conftest.$ac_ext >&5
17506 eval "$as_ac_var=no"
17508 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17510 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17511 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17512 if test `eval echo '${'$as_ac_var'}'` = yes; then
17514 cat >>confdefs.h <<_ACEOF
17515 #define CRAY_STACKSEG_END $ac_func
17524 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
17525 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
17526 if test "${ac_cv_c_stack_direction+set}" = set; then
17527 echo $ECHO_N "(cached) $ECHO_C" >&6
17529 if test "$cross_compiling" = yes; then
17530 ac_cv_c_stack_direction=0
17532 cat >conftest.$ac_ext <<_ACEOF
17533 #line $LINENO "configure"
17536 cat confdefs.h >>conftest.$ac_ext
17537 cat >>conftest.$ac_ext <<_ACEOF
17538 /* end confdefs.h. */
17540 find_stack_direction ()
17542 static char *addr = 0;
17547 return find_stack_direction ();
17550 return (&dummy > addr) ? 1 : -1;
17556 exit (find_stack_direction () < 0);
17559 rm -f conftest$ac_exeext
17560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17561 (eval $ac_link) 2>&5
17563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17564 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17566 (eval $ac_try) 2>&5
17568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17569 (exit $ac_status); }; }; then
17570 ac_cv_c_stack_direction=1
17572 echo "$as_me: program exited with status $ac_status" >&5
17573 echo "$as_me: failed program was:" >&5
17574 sed 's/^/| /' conftest.$ac_ext >&5
17576 ( exit $ac_status )
17577 ac_cv_c_stack_direction=-1
17579 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17582 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
17583 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
17585 cat >>confdefs.h <<_ACEOF
17586 #define STACK_DIRECTION $ac_cv_c_stack_direction
17592 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
17593 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
17594 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
17595 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
17596 echo $ECHO_N "(cached) $ECHO_C" >&6
17598 ac_check_lib_save_LIBS=$LIBS
17600 cat >conftest.$ac_ext <<_ACEOF
17601 #line $LINENO "configure"
17604 cat confdefs.h >>conftest.$ac_ext
17605 cat >>conftest.$ac_ext <<_ACEOF
17606 /* end confdefs.h. */
17608 /* Override any gcc2 internal prototype to avoid an error. */
17612 /* We use char because int might match the return type of a gcc2
17613 builtin and then its argument prototype would still apply. */
17623 rm -f conftest.$ac_objext conftest$ac_exeext
17624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17625 (eval $ac_link) 2>&5
17627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17628 (exit $ac_status); } &&
17629 { ac_try='test -s conftest$ac_exeext'
17630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17631 (eval $ac_try) 2>&5
17633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17634 (exit $ac_status); }; }; then
17635 ac_cv_lib_sun_getmntent=yes
17637 echo "$as_me: failed program was:" >&5
17638 sed 's/^/| /' conftest.$ac_ext >&5
17640 ac_cv_lib_sun_getmntent=no
17642 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17643 LIBS=$ac_check_lib_save_LIBS
17645 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
17646 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
17647 if test $ac_cv_lib_sun_getmntent = yes; then
17650 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
17651 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
17652 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
17653 echo $ECHO_N "(cached) $ECHO_C" >&6
17655 ac_check_lib_save_LIBS=$LIBS
17657 cat >conftest.$ac_ext <<_ACEOF
17658 #line $LINENO "configure"
17661 cat confdefs.h >>conftest.$ac_ext
17662 cat >>conftest.$ac_ext <<_ACEOF
17663 /* end confdefs.h. */
17665 /* Override any gcc2 internal prototype to avoid an error. */
17669 /* We use char because int might match the return type of a gcc2
17670 builtin and then its argument prototype would still apply. */
17680 rm -f conftest.$ac_objext conftest$ac_exeext
17681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17682 (eval $ac_link) 2>&5
17684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17685 (exit $ac_status); } &&
17686 { ac_try='test -s conftest$ac_exeext'
17687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17688 (eval $ac_try) 2>&5
17690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17691 (exit $ac_status); }; }; then
17692 ac_cv_lib_seq_getmntent=yes
17694 echo "$as_me: failed program was:" >&5
17695 sed 's/^/| /' conftest.$ac_ext >&5
17697 ac_cv_lib_seq_getmntent=no
17699 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17700 LIBS=$ac_check_lib_save_LIBS
17702 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
17703 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
17704 if test $ac_cv_lib_seq_getmntent = yes; then
17707 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
17708 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
17709 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
17710 echo $ECHO_N "(cached) $ECHO_C" >&6
17712 ac_check_lib_save_LIBS=$LIBS
17714 cat >conftest.$ac_ext <<_ACEOF
17715 #line $LINENO "configure"
17718 cat confdefs.h >>conftest.$ac_ext
17719 cat >>conftest.$ac_ext <<_ACEOF
17720 /* end confdefs.h. */
17722 /* Override any gcc2 internal prototype to avoid an error. */
17726 /* We use char because int might match the return type of a gcc2
17727 builtin and then its argument prototype would still apply. */
17737 rm -f conftest.$ac_objext conftest$ac_exeext
17738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17739 (eval $ac_link) 2>&5
17741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17742 (exit $ac_status); } &&
17743 { ac_try='test -s conftest$ac_exeext'
17744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17745 (eval $ac_try) 2>&5
17747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17748 (exit $ac_status); }; }; then
17749 ac_cv_lib_gen_getmntent=yes
17751 echo "$as_me: failed program was:" >&5
17752 sed 's/^/| /' conftest.$ac_ext >&5
17754 ac_cv_lib_gen_getmntent=no
17756 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17757 LIBS=$ac_check_lib_save_LIBS
17759 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
17760 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
17761 if test $ac_cv_lib_gen_getmntent = yes; then
17770 for ac_func in getmntent
17772 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17773 echo "$as_me:$LINENO: checking for $ac_func" >&5
17774 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17775 if eval "test \"\${$as_ac_var+set}\" = set"; then
17776 echo $ECHO_N "(cached) $ECHO_C" >&6
17778 cat >conftest.$ac_ext <<_ACEOF
17779 #line $LINENO "configure"
17782 cat confdefs.h >>conftest.$ac_ext
17783 cat >>conftest.$ac_ext <<_ACEOF
17784 /* end confdefs.h. */
17785 /* System header to define __stub macros and hopefully few prototypes,
17786 which can conflict with char $ac_func (); below.
17787 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17788 <limits.h> exists even on freestanding compilers. */
17790 # include <limits.h>
17792 # include <assert.h>
17794 /* Override any gcc2 internal prototype to avoid an error. */
17799 /* We use char because int might match the return type of a gcc2
17800 builtin and then its argument prototype would still apply. */
17802 /* The GNU C library defines this for functions which it implements
17803 to always fail with ENOSYS. Some functions are actually named
17804 something starting with __ and the normal name is an alias. */
17805 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17808 char (*f) () = $ac_func;
17817 return f != $ac_func;
17822 rm -f conftest.$ac_objext conftest$ac_exeext
17823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17824 (eval $ac_link) 2>&5
17826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17827 (exit $ac_status); } &&
17828 { ac_try='test -s conftest$ac_exeext'
17829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17830 (eval $ac_try) 2>&5
17832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17833 (exit $ac_status); }; }; then
17834 eval "$as_ac_var=yes"
17836 echo "$as_me: failed program was:" >&5
17837 sed 's/^/| /' conftest.$ac_ext >&5
17839 eval "$as_ac_var=no"
17841 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17843 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17844 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17845 if test `eval echo '${'$as_ac_var'}'` = yes; then
17846 cat >>confdefs.h <<_ACEOF
17847 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17854 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
17855 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
17856 if test "${ac_cv_func_closedir_void+set}" = set; then
17857 echo $ECHO_N "(cached) $ECHO_C" >&6
17859 if test "$cross_compiling" = yes; then
17860 ac_cv_func_closedir_void=yes
17862 cat >conftest.$ac_ext <<_ACEOF
17863 #line $LINENO "configure"
17866 cat confdefs.h >>conftest.$ac_ext
17867 cat >>conftest.$ac_ext <<_ACEOF
17868 /* end confdefs.h. */
17869 $ac_includes_default
17870 #include <$ac_header_dirent>
17871 #ifndef __cplusplus
17878 exit (closedir (opendir (".")) != 0);
17883 rm -f conftest$ac_exeext
17884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17885 (eval $ac_link) 2>&5
17887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17888 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17890 (eval $ac_try) 2>&5
17892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17893 (exit $ac_status); }; }; then
17894 ac_cv_func_closedir_void=no
17896 echo "$as_me: program exited with status $ac_status" >&5
17897 echo "$as_me: failed program was:" >&5
17898 sed 's/^/| /' conftest.$ac_ext >&5
17900 ( exit $ac_status )
17901 ac_cv_func_closedir_void=yes
17903 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17906 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
17907 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
17908 if test $ac_cv_func_closedir_void = yes; then
17910 cat >>confdefs.h <<\_ACEOF
17911 #define CLOSEDIR_VOID 1
17916 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
17917 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
17918 if test "${ac_cv_func_setpgrp_void+set}" = set; then
17919 echo $ECHO_N "(cached) $ECHO_C" >&6
17921 if test "$cross_compiling" = yes; then
17922 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
17923 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
17924 { (exit 1); exit 1; }; }
17926 cat >conftest.$ac_ext <<_ACEOF
17927 #line $LINENO "configure"
17930 cat confdefs.h >>conftest.$ac_ext
17931 cat >>conftest.$ac_ext <<_ACEOF
17932 /* end confdefs.h. */
17934 # include <unistd.h>
17940 /* If this system has a BSD-style setpgrp which takes arguments,
17941 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
17942 exit successfully. */
17943 exit (setpgrp (1,1) == -1 ? 0 : 1);
17948 rm -f conftest$ac_exeext
17949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17950 (eval $ac_link) 2>&5
17952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17953 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17955 (eval $ac_try) 2>&5
17957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17958 (exit $ac_status); }; }; then
17959 ac_cv_func_setpgrp_void=no
17961 echo "$as_me: program exited with status $ac_status" >&5
17962 echo "$as_me: failed program was:" >&5
17963 sed 's/^/| /' conftest.$ac_ext >&5
17965 ( exit $ac_status )
17966 ac_cv_func_setpgrp_void=yes
17968 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17971 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
17972 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
17973 if test $ac_cv_func_setpgrp_void = yes; then
17975 cat >>confdefs.h <<\_ACEOF
17976 #define SETPGRP_VOID 1
17980 echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
17981 echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6
17982 if test "${ac_cv_func_fnmatch_works+set}" = set; then
17983 echo $ECHO_N "(cached) $ECHO_C" >&6
17985 # Some versions of Solaris, SCO, and the GNU C Library
17986 # have a broken or incompatible fnmatch.
17987 # So we run a test program. If we are cross-compiling, take no chance.
17988 # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
17989 if test "$cross_compiling" = yes; then
17990 ac_cv_func_fnmatch_works=cross
17992 cat >conftest.$ac_ext <<_ACEOF
17993 #line $LINENO "configure"
17996 cat confdefs.h >>conftest.$ac_ext
17997 cat >>conftest.$ac_ext <<_ACEOF
17998 /* end confdefs.h. */
17999 #include <fnmatch.h>
18000 # define y(a, b, c) (fnmatch (a, b, c) == 0)
18001 # define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
18007 (!(y ("a*", "abc", 0)
18008 && n ("d*/*1", "d/s/1", FNM_PATHNAME)
18009 && y ("a\\\\bc", "abc", 0)
18010 && n ("a\\\\bc", "abc", FNM_NOESCAPE)
18011 && y ("*x", ".x", 0)
18012 && n ("*x", ".x", FNM_PERIOD)
18018 rm -f conftest$ac_exeext
18019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18020 (eval $ac_link) 2>&5
18022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18023 (exit $ac_status); } && { ac_try='./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_func_fnmatch_works=yes
18031 echo "$as_me: program exited with status $ac_status" >&5
18032 echo "$as_me: failed program was:" >&5
18033 sed 's/^/| /' conftest.$ac_ext >&5
18035 ( exit $ac_status )
18036 ac_cv_func_fnmatch_works=no
18038 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18041 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_works" >&5
18042 echo "${ECHO_T}$ac_cv_func_fnmatch_works" >&6
18043 if test $ac_cv_func_fnmatch_works = yes; then
18045 cat >>confdefs.h <<\_ACEOF
18046 #define HAVE_FNMATCH 1
18055 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
18056 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
18057 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
18058 echo $ECHO_N "(cached) $ECHO_C" >&6
18060 ac_check_lib_save_LIBS=$LIBS
18061 LIBS="-lxpg4 $LIBS"
18062 cat >conftest.$ac_ext <<_ACEOF
18063 #line $LINENO "configure"
18066 cat confdefs.h >>conftest.$ac_ext
18067 cat >>conftest.$ac_ext <<_ACEOF
18068 /* end confdefs.h. */
18070 /* Override any gcc2 internal prototype to avoid an error. */
18074 /* We use char because int might match the return type of a gcc2
18075 builtin and then its argument prototype would still apply. */
18085 rm -f conftest.$ac_objext conftest$ac_exeext
18086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18087 (eval $ac_link) 2>&5
18089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18090 (exit $ac_status); } &&
18091 { ac_try='test -s conftest$ac_exeext'
18092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18093 (eval $ac_try) 2>&5
18095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18096 (exit $ac_status); }; }; then
18097 ac_cv_lib_xpg4_setlocale=yes
18099 echo "$as_me: failed program was:" >&5
18100 sed 's/^/| /' conftest.$ac_ext >&5
18102 ac_cv_lib_xpg4_setlocale=no
18104 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18105 LIBS=$ac_check_lib_save_LIBS
18107 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
18108 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
18109 if test $ac_cv_lib_xpg4_setlocale = yes; then
18110 LIBS="$LIBS -lxpg4"
18116 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
18117 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
18118 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
18119 echo $ECHO_N "(cached) $ECHO_C" >&6
18121 ac_check_lib_save_LIBS=$LIBS
18123 cat >conftest.$ac_ext <<_ACEOF
18124 #line $LINENO "configure"
18127 cat confdefs.h >>conftest.$ac_ext
18128 cat >>conftest.$ac_ext <<_ACEOF
18129 /* end confdefs.h. */
18131 /* Override any gcc2 internal prototype to avoid an error. */
18135 /* We use char because int might match the return type of a gcc2
18136 builtin and then its argument prototype would still apply. */
18146 rm -f conftest.$ac_objext conftest$ac_exeext
18147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18148 (eval $ac_link) 2>&5
18150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18151 (exit $ac_status); } &&
18152 { ac_try='test -s conftest$ac_exeext'
18153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18154 (eval $ac_try) 2>&5
18156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18157 (exit $ac_status); }; }; then
18158 ac_cv_lib_sun_getpwnam=yes
18160 echo "$as_me: failed program was:" >&5
18161 sed 's/^/| /' conftest.$ac_ext >&5
18163 ac_cv_lib_sun_getpwnam=no
18165 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18166 LIBS=$ac_check_lib_save_LIBS
18168 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
18169 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
18170 if test $ac_cv_lib_sun_getpwnam = yes; then
18171 cat >>confdefs.h <<_ACEOF
18172 #define HAVE_LIBSUN 1
18181 for ac_header in zlib.h
18183 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18184 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18185 echo "$as_me:$LINENO: checking for $ac_header" >&5
18186 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18187 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18188 echo $ECHO_N "(cached) $ECHO_C" >&6
18190 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18191 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18193 # Is the header compilable?
18194 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18195 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18196 cat >conftest.$ac_ext <<_ACEOF
18197 #line $LINENO "configure"
18200 cat confdefs.h >>conftest.$ac_ext
18201 cat >>conftest.$ac_ext <<_ACEOF
18202 /* end confdefs.h. */
18203 $ac_includes_default
18204 #include <$ac_header>
18206 rm -f conftest.$ac_objext
18207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18208 (eval $ac_compile) 2>&5
18210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18211 (exit $ac_status); } &&
18212 { ac_try='test -s conftest.$ac_objext'
18213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18214 (eval $ac_try) 2>&5
18216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18217 (exit $ac_status); }; }; then
18218 ac_header_compiler=yes
18220 echo "$as_me: failed program was:" >&5
18221 sed 's/^/| /' conftest.$ac_ext >&5
18223 ac_header_compiler=no
18225 rm -f conftest.$ac_objext conftest.$ac_ext
18226 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18227 echo "${ECHO_T}$ac_header_compiler" >&6
18229 # Is the header present?
18230 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18231 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18232 cat >conftest.$ac_ext <<_ACEOF
18233 #line $LINENO "configure"
18236 cat confdefs.h >>conftest.$ac_ext
18237 cat >>conftest.$ac_ext <<_ACEOF
18238 /* end confdefs.h. */
18239 #include <$ac_header>
18241 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18242 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18244 grep -v '^ *+' conftest.er1 >conftest.err
18246 cat conftest.err >&5
18247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18248 (exit $ac_status); } >/dev/null; then
18249 if test -s conftest.err; then
18250 ac_cpp_err=$ac_c_preproc_warn_flag
18257 if test -z "$ac_cpp_err"; then
18258 ac_header_preproc=yes
18260 echo "$as_me: failed program was:" >&5
18261 sed 's/^/| /' conftest.$ac_ext >&5
18263 ac_header_preproc=no
18265 rm -f conftest.err conftest.$ac_ext
18266 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18267 echo "${ECHO_T}$ac_header_preproc" >&6
18269 # So? What about this header?
18270 case $ac_header_compiler:$ac_header_preproc in
18272 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18273 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18274 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18275 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18278 ## ------------------------------------ ##
18279 ## Report this to bug-autoconf@gnu.org. ##
18280 ## ------------------------------------ ##
18283 sed "s/^/$as_me: WARNING: /" >&2
18286 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18287 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18288 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18289 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18290 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18291 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18294 ## ------------------------------------ ##
18295 ## Report this to bug-autoconf@gnu.org. ##
18296 ## ------------------------------------ ##
18299 sed "s/^/$as_me: WARNING: /" >&2
18302 echo "$as_me:$LINENO: checking for $ac_header" >&5
18303 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18304 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18305 echo $ECHO_N "(cached) $ECHO_C" >&6
18307 eval "$as_ac_Header=$ac_header_preproc"
18309 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18310 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18313 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18314 cat >>confdefs.h <<_ACEOF
18315 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18322 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
18323 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
18324 if test "${ac_cv_lib_z_deflate+set}" = set; then
18325 echo $ECHO_N "(cached) $ECHO_C" >&6
18327 ac_check_lib_save_LIBS=$LIBS
18329 cat >conftest.$ac_ext <<_ACEOF
18330 #line $LINENO "configure"
18333 cat confdefs.h >>conftest.$ac_ext
18334 cat >>conftest.$ac_ext <<_ACEOF
18335 /* end confdefs.h. */
18337 /* Override any gcc2 internal prototype to avoid an error. */
18341 /* We use char because int might match the return type of a gcc2
18342 builtin and then its argument prototype would still apply. */
18352 rm -f conftest.$ac_objext conftest$ac_exeext
18353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18354 (eval $ac_link) 2>&5
18356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18357 (exit $ac_status); } &&
18358 { ac_try='test -s conftest$ac_exeext'
18359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18360 (eval $ac_try) 2>&5
18362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18363 (exit $ac_status); }; }; then
18364 ac_cv_lib_z_deflate=yes
18366 echo "$as_me: failed program was:" >&5
18367 sed 's/^/| /' conftest.$ac_ext >&5
18369 ac_cv_lib_z_deflate=no
18371 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18372 LIBS=$ac_check_lib_save_LIBS
18374 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
18375 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
18376 if test $ac_cv_lib_z_deflate = yes; then
18381 if test x$FDLIBS = x-lz; then
18382 cat >>confdefs.h <<\_ACEOF
18383 #define HAVE_LIBZ 1
18389 if test "${ac_cv_header_sys_acl_h+set}" = set; then
18390 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
18391 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
18392 if test "${ac_cv_header_sys_acl_h+set}" = set; then
18393 echo $ECHO_N "(cached) $ECHO_C" >&6
18395 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
18396 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
18398 # Is the header compilable?
18399 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
18400 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
18401 cat >conftest.$ac_ext <<_ACEOF
18402 #line $LINENO "configure"
18405 cat confdefs.h >>conftest.$ac_ext
18406 cat >>conftest.$ac_ext <<_ACEOF
18407 /* end confdefs.h. */
18408 $ac_includes_default
18409 #include <sys/acl.h>
18411 rm -f conftest.$ac_objext
18412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18413 (eval $ac_compile) 2>&5
18415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18416 (exit $ac_status); } &&
18417 { ac_try='test -s conftest.$ac_objext'
18418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18419 (eval $ac_try) 2>&5
18421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18422 (exit $ac_status); }; }; then
18423 ac_header_compiler=yes
18425 echo "$as_me: failed program was:" >&5
18426 sed 's/^/| /' conftest.$ac_ext >&5
18428 ac_header_compiler=no
18430 rm -f conftest.$ac_objext conftest.$ac_ext
18431 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18432 echo "${ECHO_T}$ac_header_compiler" >&6
18434 # Is the header present?
18435 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
18436 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
18437 cat >conftest.$ac_ext <<_ACEOF
18438 #line $LINENO "configure"
18441 cat confdefs.h >>conftest.$ac_ext
18442 cat >>conftest.$ac_ext <<_ACEOF
18443 /* end confdefs.h. */
18444 #include <sys/acl.h>
18446 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18447 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18449 grep -v '^ *+' conftest.er1 >conftest.err
18451 cat conftest.err >&5
18452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18453 (exit $ac_status); } >/dev/null; then
18454 if test -s conftest.err; then
18455 ac_cpp_err=$ac_c_preproc_warn_flag
18462 if test -z "$ac_cpp_err"; then
18463 ac_header_preproc=yes
18465 echo "$as_me: failed program was:" >&5
18466 sed 's/^/| /' conftest.$ac_ext >&5
18468 ac_header_preproc=no
18470 rm -f conftest.err conftest.$ac_ext
18471 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18472 echo "${ECHO_T}$ac_header_preproc" >&6
18474 # So? What about this header?
18475 case $ac_header_compiler:$ac_header_preproc in
18477 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
18478 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18479 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
18480 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
18483 ## ------------------------------------ ##
18484 ## Report this to bug-autoconf@gnu.org. ##
18485 ## ------------------------------------ ##
18488 sed "s/^/$as_me: WARNING: /" >&2
18491 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
18492 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
18493 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
18494 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
18495 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
18496 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
18499 ## ------------------------------------ ##
18500 ## Report this to bug-autoconf@gnu.org. ##
18501 ## ------------------------------------ ##
18504 sed "s/^/$as_me: WARNING: /" >&2
18507 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
18508 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
18509 if test "${ac_cv_header_sys_acl_h+set}" = set; then
18510 echo $ECHO_N "(cached) $ECHO_C" >&6
18512 ac_cv_header_sys_acl_h=$ac_header_preproc
18514 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
18515 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
18520 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
18521 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
18522 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
18523 echo $ECHO_N "(cached) $ECHO_C" >&6
18525 ac_check_lib_save_LIBS=$LIBS
18527 cat >conftest.$ac_ext <<_ACEOF
18528 #line $LINENO "configure"
18531 cat confdefs.h >>conftest.$ac_ext
18532 cat >>conftest.$ac_ext <<_ACEOF
18533 /* end confdefs.h. */
18535 /* Override any gcc2 internal prototype to avoid an error. */
18539 /* We use char because int might match the return type of a gcc2
18540 builtin and then its argument prototype would still apply. */
18541 char acl_get_file ();
18550 rm -f conftest.$ac_objext conftest$ac_exeext
18551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18552 (eval $ac_link) 2>&5
18554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18555 (exit $ac_status); } &&
18556 { ac_try='test -s conftest$ac_exeext'
18557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18558 (eval $ac_try) 2>&5
18560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18561 (exit $ac_status); }; }; then
18562 ac_cv_lib_acl_acl_get_file=yes
18564 echo "$as_me: failed program was:" >&5
18565 sed 's/^/| /' conftest.$ac_ext >&5
18567 ac_cv_lib_acl_acl_get_file=no
18569 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18570 LIBS=$ac_check_lib_save_LIBS
18572 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
18573 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
18574 if test $ac_cv_lib_acl_acl_get_file = yes; then
18575 FDLIBS="-lacl $FDLIBS"
18579 if test $ac_cv_lib_acl_acl_get_file = yes; then
18580 cat >>confdefs.h <<\_ACEOF
18588 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
18589 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
18590 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
18591 echo $ECHO_N "(cached) $ECHO_C" >&6
18593 ac_check_lib_save_LIBS=$LIBS
18594 LIBS="-lpthread $LIBS"
18595 cat >conftest.$ac_ext <<_ACEOF
18596 #line $LINENO "configure"
18599 cat confdefs.h >>conftest.$ac_ext
18600 cat >>conftest.$ac_ext <<_ACEOF
18601 /* end confdefs.h. */
18603 /* Override any gcc2 internal prototype to avoid an error. */
18607 /* We use char because int might match the return type of a gcc2
18608 builtin and then its argument prototype would still apply. */
18609 char pthread_create ();
18618 rm -f conftest.$ac_objext conftest$ac_exeext
18619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18620 (eval $ac_link) 2>&5
18622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18623 (exit $ac_status); } &&
18624 { ac_try='test -s conftest$ac_exeext'
18625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18626 (eval $ac_try) 2>&5
18628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18629 (exit $ac_status); }; }; then
18630 ac_cv_lib_pthread_pthread_create=yes
18632 echo "$as_me: failed program was:" >&5
18633 sed 's/^/| /' conftest.$ac_ext >&5
18635 ac_cv_lib_pthread_pthread_create=no
18637 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18638 LIBS=$ac_check_lib_save_LIBS
18640 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
18641 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
18642 if test $ac_cv_lib_pthread_pthread_create = yes; then
18643 PTHREAD_LIB="-lpthread"
18645 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
18646 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
18647 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
18648 echo $ECHO_N "(cached) $ECHO_C" >&6
18650 ac_check_lib_save_LIBS=$LIBS
18651 LIBS="-lpthreads $LIBS"
18652 cat >conftest.$ac_ext <<_ACEOF
18653 #line $LINENO "configure"
18656 cat confdefs.h >>conftest.$ac_ext
18657 cat >>conftest.$ac_ext <<_ACEOF
18658 /* end confdefs.h. */
18660 /* Override any gcc2 internal prototype to avoid an error. */
18664 /* We use char because int might match the return type of a gcc2
18665 builtin and then its argument prototype would still apply. */
18666 char pthread_create ();
18675 rm -f conftest.$ac_objext conftest$ac_exeext
18676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18677 (eval $ac_link) 2>&5
18679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18680 (exit $ac_status); } &&
18681 { ac_try='test -s conftest$ac_exeext'
18682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18683 (eval $ac_try) 2>&5
18685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18686 (exit $ac_status); }; }; then
18687 ac_cv_lib_pthreads_pthread_create=yes
18689 echo "$as_me: failed program was:" >&5
18690 sed 's/^/| /' conftest.$ac_ext >&5
18692 ac_cv_lib_pthreads_pthread_create=no
18694 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18695 LIBS=$ac_check_lib_save_LIBS
18697 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
18698 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
18699 if test $ac_cv_lib_pthreads_pthread_create = yes; then
18700 PTHREAD_LIB="-lpthreads"
18702 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
18703 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
18704 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
18705 echo $ECHO_N "(cached) $ECHO_C" >&6
18707 ac_check_lib_save_LIBS=$LIBS
18709 cat >conftest.$ac_ext <<_ACEOF
18710 #line $LINENO "configure"
18713 cat confdefs.h >>conftest.$ac_ext
18714 cat >>conftest.$ac_ext <<_ACEOF
18715 /* end confdefs.h. */
18717 /* Override any gcc2 internal prototype to avoid an error. */
18721 /* We use char because int might match the return type of a gcc2
18722 builtin and then its argument prototype would still apply. */
18723 char pthread_create ();
18732 rm -f conftest.$ac_objext conftest$ac_exeext
18733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18734 (eval $ac_link) 2>&5
18736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18737 (exit $ac_status); } &&
18738 { ac_try='test -s conftest$ac_exeext'
18739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18740 (eval $ac_try) 2>&5
18742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18743 (exit $ac_status); }; }; then
18744 ac_cv_lib_c_r_pthread_create=yes
18746 echo "$as_me: failed program was:" >&5
18747 sed 's/^/| /' conftest.$ac_ext >&5
18749 ac_cv_lib_c_r_pthread_create=no
18751 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18752 LIBS=$ac_check_lib_save_LIBS
18754 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
18755 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
18756 if test $ac_cv_lib_c_r_pthread_create = yes; then
18757 PTHREAD_LIB="-lc_r"
18759 echo "$as_me:$LINENO: checking for pthread_create" >&5
18760 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
18761 if test "${ac_cv_func_pthread_create+set}" = set; then
18762 echo $ECHO_N "(cached) $ECHO_C" >&6
18764 cat >conftest.$ac_ext <<_ACEOF
18765 #line $LINENO "configure"
18768 cat confdefs.h >>conftest.$ac_ext
18769 cat >>conftest.$ac_ext <<_ACEOF
18770 /* end confdefs.h. */
18771 /* System header to define __stub macros and hopefully few prototypes,
18772 which can conflict with char pthread_create (); below.
18773 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18774 <limits.h> exists even on freestanding compilers. */
18776 # include <limits.h>
18778 # include <assert.h>
18780 /* Override any gcc2 internal prototype to avoid an error. */
18785 /* We use char because int might match the return type of a gcc2
18786 builtin and then its argument prototype would still apply. */
18787 char pthread_create ();
18788 /* The GNU C library defines this for functions which it implements
18789 to always fail with ENOSYS. Some functions are actually named
18790 something starting with __ and the normal name is an alias. */
18791 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
18794 char (*f) () = pthread_create;
18803 return f != pthread_create;
18808 rm -f conftest.$ac_objext conftest$ac_exeext
18809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18810 (eval $ac_link) 2>&5
18812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18813 (exit $ac_status); } &&
18814 { ac_try='test -s conftest$ac_exeext'
18815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18816 (eval $ac_try) 2>&5
18818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18819 (exit $ac_status); }; }; then
18820 ac_cv_func_pthread_create=yes
18822 echo "$as_me: failed program was:" >&5
18823 sed 's/^/| /' conftest.$ac_ext >&5
18825 ac_cv_func_pthread_create=no
18827 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18829 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
18830 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
18843 cat >>confdefs.h <<\_ACEOF
18849 CFLAGS=${CFLAGS--O}
18850 LDFLAGS=${LDFLAGS--O}
18851 DB_LIBS="${SQL_LFLAGS}"
18853 CPPFLAGS="$CPPFLAGS"
18878 # Finally we set appropriate distribution specific
18879 # variables and defaults
18881 # PFILES are platform specific files
18882 PFILES="platforms/Makefile"
18886 hostname=`uname -n | cut -d '.' -f 1`
18887 case "$DISTNAME" in
18890 PSCMD="ps -e -o pid,comm"
18891 PFILES="${PFILES} \
18892 platforms/aix/Makefile"
18893 TAPEDRIVE="/dev/rmt0.1"
18897 PTHREAD_LIB="-lpthread -lexc"
18898 if test "${CC}" = "gcc" ; then
18905 TAPEDRIVE="/dev/nrmt0"
18908 DISTVER=`uname -a |awk '{print $3}'`
18909 TAPEDRIVE="/dev/nrmt0"
18910 PTHREAD_LIB="-pthread"
18911 CFLAGS="${CFLAGS} -pthread"
18912 PSCMD="ps -x -o pid,command"
18915 PFILES="${PFILES} \
18916 platforms/bsdi/Makefile \
18917 platforms/bsdi/bacula-fd \
18918 platforms/bsdi/bacula-sd \
18919 platforms/bsdi/bacula-dir"
18920 largefile_support="yes"
18923 DISTVER=`uname -a |awk '{print $3}'`
18924 TAPEDRIVE="/dev/nrst0"
18926 WCFLAGS="-mwindows"
18927 WLDFLAGS="-mwindows"
18931 TAPEDRIVE="/dev/nst0"
18932 PSCMD="ps -e -o pid,command"
18934 PFILES="${PFILES} \
18935 platforms/darwin/Makefile"
18938 DISTVER=`cat /etc/debian_version`
18939 TAPEDRIVE="/dev/nrst0"
18940 PSCMD="ps -e -o pid,command"
18943 DISTVER=`uname -a |awk '{print $3}'`
18944 VER=`echo $DISTVER | cut -c 1`
18945 if test x$VER = x4 ; then
18946 PTHREAD_LIB="-pthread"
18947 CFLAGS="${CFLAGS} -pthread"
18951 TAPEDRIVE="/dev/nrsa0"
18952 PSCMD="ps -x -o pid,command"
18953 PFILES="${PFILES} \
18954 platforms/freebsd/Makefile \
18955 platforms/freebsd/bacula-fd \
18956 platforms/freebsd/bacula-sd \
18957 platforms/freebsd/bacula-dir"
18958 largefile_support="yes"
18961 PSCMD="UNIX95=1 ps -e -o pid,comm"
18962 CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
18964 TAPEDRIVE="/dev/rmt/0hnb"
18968 TAPEDRIVE="/dev/rmt/0cbn"
18969 PSCMD="ps -e -o pid,comm"
18970 PFILES="${PFILES} \
18971 platforms/irix/Makefile \
18972 platforms/irix/bacula-fd \
18973 platforms/irix/bacula-sd \
18974 platforms/irix/bacula-dir"
18977 DISTVER=`uname -a |awk '{print $3}'`
18980 TAPEDRIVE="/dev/nrst0"
18981 PSCMD="ps -a -o pid,command"
18982 PTHREAD_LIB="-pthread"
18983 CFLAGS="${CFLAGS} -pthread"
18986 DISTVER=`uname -a |awk '{print $3}'`
18989 TAPEDRIVE="/dev/nrst0"
18990 PSCMD="ps -a -o pid,command"
18991 PTHREAD_LIB="-pthread"
18992 CFLAGS="${CFLAGS} -pthread"
18993 PFILES="${PFILES} \
18994 platforms/openbsd/Makefile \
18995 platforms/openbsd/bacula-fd \
18996 platforms/openbsd/bacula-sd \
18997 platforms/openbsd/bacula-dir"
19000 if test -f /etc/whitebox-release ; then
19001 f=/etc/whitebox-release
19003 f=/etc/redhat-release
19005 if test `cat $f | grep release |\
19006 cut -f 3 -d ' '`x = "Enterprise"x ; then
19007 DISTVER="Enterprise "`cat $f | grep release |\
19010 DISTVER=`cat /etc/redhat-release | grep release |\
19013 TAPEDRIVE="/dev/nst0"
19014 PSCMD="ps -e -o pid,command"
19015 PFILES="${PFILES} \
19016 platforms/redhat/Makefile \
19017 platforms/redhat/bacula-fd \
19018 platforms/redhat/bacula-sd \
19019 platforms/redhat/bacula-dir \
19020 platforms/redhat/bacula.spec \
19022 hostname=`hostname -s`
19025 DISTVER=`cat /etc/mandrake-release | grep release |\
19027 TAPEDRIVE="/dev/nst0"
19028 PSCMD="ps -e -o pid,command"
19029 PFILES="${PFILES} \
19030 platforms/mandrake/Makefile \
19031 platforms/mandrake/bacula-fd \
19032 platforms/mandrake/bacula-sd \
19033 platforms/mandrake/bacula-dir \
19034 platforms/mandrake/bacula.spec \
19038 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
19039 TAPEDRIVE="/dev/nst0"
19040 PSCMD="ps -e -o pid,command"
19041 PFILES="${PFILES} \
19042 platforms/gentoo/Makefile \
19043 platforms/gentoo/bacula-fd \
19044 platforms/gentoo/bacula-sd \
19045 platforms/gentoo/bacula-dir"
19048 DISTVER=`cat /etc/slackware-version`
19049 TAPEDRIVE="/dev/nst0"
19050 PSCMD="ps -e -o pid,command"
19051 PFILES="${PFILES} \
19052 platforms/slackware/Makefile \
19053 platforms/slackware/rc.bacula-fd \
19054 platforms/slackware/rc.bacula-sd \
19055 platforms/slackware/rc.bacula-dir\
19056 platforms/slackware/functions.bacula"
19060 TAPEDRIVE="/dev/rmt/0cbn"
19061 PSCMD="ps -e -o pid,comm"
19062 PFILES="${PFILES} \
19063 platforms/solaris/Makefile \
19064 platforms/solaris/bacula-fd \
19065 platforms/solaris/bacula-sd \
19066 platforms/solaris/bacula-dir"
19067 if test x$DISTVER = x5.6 ; then
19068 cat >>confdefs.h <<\_ACEOF
19069 #define HAVE_OLD_SOCKOPT 1
19075 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
19077 TAPEDRIVE="/dev/nst0"
19078 PSCMD="ps -e -o pid,command"
19079 PFILES="${PFILES} \
19080 platforms/suse/Makefile \
19081 platforms/suse/bacula-fd \
19082 platforms/suse/bacula-sd \
19083 platforms/suse/bacula-dir \
19084 platforms/suse/bacula \
19085 platforms/suse/bacula.spec"
19090 TAPEDRIVE="/dev/nst0"
19091 PSCMD="ps -e -o pid,command"
19092 PFILES="${PFILES} \
19093 platforms/suse/Makefile \
19094 platforms/suse/bacula-fd \
19095 platforms/suse/bacula-sd \
19096 platforms/suse/bacula-dir"
19100 TAPEDRIVE="/dev/nst0"
19103 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
19109 LIBS="$PTHREAD_LIB $LIBS"
19111 cat >>confdefs.h <<_ACEOF
19115 cat >>confdefs.h <<_ACEOF
19126 MCOMMON=./autoconf/Make.common
19129 if test "x${subsysdir}" = "x${sbindir}" ; then
19132 echo "You have set both --sbindir and --with-subsys-dir"
19133 echo " equal to: ${subsysdir} "
19134 echo "This is not permitted. Please reconfigure."
19136 echo "Aborting configuration ..."
19142 ac_config_files="$ac_config_files autoconf/Make.common Makefile rescue/Makefile rescue/linux/Makefile rescue/linux/floppy/Makefile rescue/linux/cdrom/Makefile rescue/freebsd/Makefile rescue/solaris/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/gnome-console.console_apps scripts/mtx-changer doc/Makefile src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome-console/Makefile src/gnome-console/gnome-console.conf src/gnome2-console/Makefile src/gnome2-console/gnome-console.conf src/wx-console/Makefile src/wx-console/wx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/filed/win32/Makefile src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile src/win32/winbacula.nsi src/win32/baculafd/bacula-fd.conf src/win32/Makefile src/win32/console/bconsole.conf src/win32/wx-console/wx-console.conf $PFILES"
19143 ac_config_commands="$ac_config_commands default"
19144 cat >confcache <<\_ACEOF
19145 # This file is a shell script that caches the results of configure
19146 # tests run on this system so they can be shared between configure
19147 # scripts and configure runs, see configure's option --config-cache.
19148 # It is not useful on other systems. If it contains results you don't
19149 # want to keep, you may remove or edit it.
19151 # config.status only pays attention to the cache file if you give it
19152 # the --recheck option to rerun configure.
19154 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19155 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19156 # following values.
19160 # The following way of writing the cache mishandles newlines in values,
19161 # but we know of no workaround that is simple, portable, and efficient.
19162 # So, don't put newlines in cache variables' values.
19163 # Ultrix sh set writes to stderr and can't be redirected directly,
19164 # and sets the high bit in the cache file unless we assign to the vars.
19167 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19169 # `set' does not quote correctly, so add quotes (double-quote
19170 # substitution turns \\\\ into \\, and sed turns \\ into \).
19173 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19176 # `set' quotes correctly as required by POSIX, so do not add quotes.
19178 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19185 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19187 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19189 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19190 if test -w $cache_file; then
19191 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19192 cat confcache >$cache_file
19194 echo "not updating unwritable cache $cache_file"
19199 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19200 # Let make expand exec_prefix.
19201 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19203 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19204 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19205 # trailing colons and then remove the whole line if VPATH becomes empty
19206 # (actually we leave an empty line to preserve line numbers).
19207 if test "x$srcdir" = x.; then
19208 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19209 s/:*\$(srcdir):*/:/;
19210 s/:*\${srcdir}:*/:/;
19212 s/^\([^=]*=[ ]*\):*/\1/;
19218 DEFS=-DHAVE_CONFIG_H
19222 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19223 # 1. Remove the extension, and $U if already installed.
19224 ac_i=`echo "$ac_i" |
19225 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19227 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19228 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19230 LIBOBJS=$ac_libobjs
19232 LTLIBOBJS=$ac_ltlibobjs
19236 : ${CONFIG_STATUS=./config.status}
19237 ac_clean_files_save=$ac_clean_files
19238 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19239 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19240 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19241 cat >$CONFIG_STATUS <<_ACEOF
19243 # Generated by $as_me.
19244 # Run this file to recreate the current configuration.
19245 # Compiler output produced by configure, useful for debugging
19246 # configure, is in config.log if it exists.
19249 ac_cs_recheck=false
19251 SHELL=\${CONFIG_SHELL-$SHELL}
19254 cat >>$CONFIG_STATUS <<\_ACEOF
19255 ## --------------------- ##
19256 ## M4sh Initialization. ##
19257 ## --------------------- ##
19259 # Be Bourne compatible
19260 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19263 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19264 # is contrary to our usage. Disable this feature.
19265 alias -g '${1+"$@"}'='"$@"'
19266 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19270 # Support unset when possible.
19271 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
19278 # Work around bugs in pre-3.0 UWIN ksh.
19279 $as_unset ENV MAIL MAILPATH
19286 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19287 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19288 LC_TELEPHONE LC_TIME
19290 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
19291 eval $as_var=C; export $as_var
19297 # Required to use basename.
19298 if expr a : '\(a\)' >/dev/null 2>&1; then
19304 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19305 as_basename=basename
19311 # Name of the executable.
19312 as_me=`$as_basename "$0" ||
19313 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19314 X"$0" : 'X\(//\)$' \| \
19315 X"$0" : 'X\(/\)$' \| \
19316 . : '\(.\)' 2>/dev/null ||
19318 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19319 /^X\/\(\/\/\)$/{ s//\1/; q; }
19320 /^X\/\(\/\).*/{ s//\1/; q; }
19324 # PATH needs CR, and LINENO needs CR and PATH.
19325 # Avoid depending upon Character Ranges.
19326 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19327 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19328 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19329 as_cr_digits='0123456789'
19330 as_cr_alnum=$as_cr_Letters$as_cr_digits
19332 # The user is always right.
19333 if test "${PATH_SEPARATOR+set}" != set; then
19334 echo "#! /bin/sh" >conf$$.sh
19335 echo "exit 0" >>conf$$.sh
19337 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19346 as_lineno_1=$LINENO
19347 as_lineno_2=$LINENO
19348 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19349 test "x$as_lineno_1" != "x$as_lineno_2" &&
19350 test "x$as_lineno_3" = "x$as_lineno_2" || {
19351 # Find who we are. Look in the path if we contain no path at all
19354 *[\\/]* ) as_myself=$0 ;;
19355 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19356 for as_dir in $PATH
19359 test -z "$as_dir" && as_dir=.
19360 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19365 # We did not find ourselves, most probably we were run as `sh COMMAND'
19366 # in which case we are not to be found in the path.
19367 if test "x$as_myself" = x; then
19370 if test ! -f "$as_myself"; then
19371 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19372 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19373 { (exit 1); exit 1; }; }
19375 case $CONFIG_SHELL in
19377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19378 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19381 test -z "$as_dir" && as_dir=.
19382 for as_base in sh bash ksh sh5; do
19385 if ("$as_dir/$as_base" -c '
19386 as_lineno_1=$LINENO
19387 as_lineno_2=$LINENO
19388 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19389 test "x$as_lineno_1" != "x$as_lineno_2" &&
19390 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
19391 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19392 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19393 CONFIG_SHELL=$as_dir/$as_base
19394 export CONFIG_SHELL
19395 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19403 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19404 # uniformly replaced by the line number. The first 'sed' inserts a
19405 # line-number line before each line; the second 'sed' does the real
19406 # work. The second script uses 'N' to pair each line-number line
19407 # with the numbered line, and appends trailing '-' during
19408 # substitution so that $LINENO is not a special case at line end.
19409 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19410 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19411 sed '=' <$as_myself |
19416 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19419 s,^['$as_cr_digits']*\n,,
19420 ' >$as_me.lineno &&
19421 chmod +x $as_me.lineno ||
19422 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19423 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19424 { (exit 1); exit 1; }; }
19426 # Don't try to exec as it changes $[0], causing all sort of problems
19427 # (the dirname of $[0] is not the place where we might find the
19428 # original and so on. Autoconf is especially sensible to this).
19430 # Exit status is that of the last command.
19435 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19436 *c*,-n*) ECHO_N= ECHO_C='
19438 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19439 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
19442 if expr a : '\(a\)' >/dev/null 2>&1; then
19448 rm -f conf$$ conf$$.exe conf$$.file
19450 if ln -s conf$$.file conf$$ 2>/dev/null; then
19451 # We could just check for DJGPP; but this test a) works b) is more generic
19452 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19453 if test -f conf$$.exe; then
19454 # Don't use ln at all; we don't have any links
19459 elif ln conf$$.file conf$$ 2>/dev/null; then
19464 rm -f conf$$ conf$$.exe conf$$.file
19466 if mkdir -p . 2>/dev/null; then
19472 as_executable_p="test -f"
19474 # Sed expression to map a string onto a valid CPP name.
19475 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
19477 # Sed expression to map a string onto a valid variable name.
19478 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
19482 # We need space, tab and new line, in precisely that order.
19492 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19493 # report actual input values of CONFIG_FILES etc. instead of their
19494 # values after options handling. Logging --version etc. is OK.
19498 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19499 ## Running $as_me. ##
19504 This file was extended by $as_me, which was
19505 generated by GNU Autoconf 2.57. Invocation command line was
19507 CONFIG_FILES = $CONFIG_FILES
19508 CONFIG_HEADERS = $CONFIG_HEADERS
19509 CONFIG_LINKS = $CONFIG_LINKS
19510 CONFIG_COMMANDS = $CONFIG_COMMANDS
19514 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19518 # Files that config.status was made for.
19519 if test -n "$ac_config_files"; then
19520 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19523 if test -n "$ac_config_headers"; then
19524 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19527 if test -n "$ac_config_links"; then
19528 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19531 if test -n "$ac_config_commands"; then
19532 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19535 cat >>$CONFIG_STATUS <<\_ACEOF
19538 \`$as_me' instantiates files from templates according to the
19539 current configuration.
19541 Usage: $0 [OPTIONS] [FILE]...
19543 -h, --help print this help, then exit
19544 -V, --version print version number, then exit
19545 -q, --quiet do not print progress messages
19546 -d, --debug don't remove temporary files
19547 --recheck update $as_me by reconfiguring in the same conditions
19548 --file=FILE[:TEMPLATE]
19549 instantiate the configuration file FILE
19550 --header=FILE[:TEMPLATE]
19551 instantiate the configuration header FILE
19553 Configuration files:
19556 Configuration headers:
19559 Configuration commands:
19562 Report bugs to <bug-autoconf@gnu.org>."
19565 cat >>$CONFIG_STATUS <<_ACEOF
19568 configured by $0, generated by GNU Autoconf 2.57,
19569 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19571 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
19572 Free Software Foundation, Inc.
19573 This config.status script is free software; the Free Software Foundation
19574 gives unlimited permission to copy, distribute and modify it."
19579 cat >>$CONFIG_STATUS <<\_ACEOF
19580 # If no file are specified by the user, then we need to provide default
19581 # value. By we need to know if files were specified by the user.
19587 ac_option=`expr "x$1" : 'x\([^=]*\)='`
19588 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19596 *) # This is not an option, so the user has probably given explicit
19599 ac_need_defaults=false;;
19603 # Handling of the options.
19605 cat >>$CONFIG_STATUS <<\_ACEOF
19606 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19608 --version | --vers* | -V )
19609 echo "$ac_cs_version"; exit 0 ;;
19611 # Conflict between --help and --header
19612 { { echo "$as_me:$LINENO: error: ambiguous option: $1
19613 Try \`$0 --help' for more information." >&5
19614 echo "$as_me: error: ambiguous option: $1
19615 Try \`$0 --help' for more information." >&2;}
19616 { (exit 1); exit 1; }; };;
19617 --help | --hel | -h )
19618 echo "$ac_cs_usage"; exit 0 ;;
19619 --debug | --d* | -d )
19621 --file | --fil | --fi | --f )
19623 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19624 ac_need_defaults=false;;
19625 --header | --heade | --head | --hea )
19627 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19628 ac_need_defaults=false;;
19629 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19630 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19633 # This is an error.
19634 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19635 Try \`$0 --help' for more information." >&5
19636 echo "$as_me: error: unrecognized option: $1
19637 Try \`$0 --help' for more information." >&2;}
19638 { (exit 1); exit 1; }; } ;;
19640 *) ac_config_targets="$ac_config_targets $1" ;;
19646 ac_configure_extra_args=
19648 if $ac_cs_silent; then
19650 ac_configure_extra_args="$ac_configure_extra_args --silent"
19654 cat >>$CONFIG_STATUS <<_ACEOF
19655 if \$ac_cs_recheck; then
19656 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19657 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19666 cat >>$CONFIG_STATUS <<\_ACEOF
19667 for ac_config_target in $ac_config_targets
19669 case "$ac_config_target" in
19670 # Handling of arguments.
19671 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
19672 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19673 "rescue/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/Makefile" ;;
19674 "rescue/linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/Makefile" ;;
19675 "rescue/linux/floppy/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/floppy/Makefile" ;;
19676 "rescue/linux/cdrom/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/cdrom/Makefile" ;;
19677 "rescue/freebsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/freebsd/Makefile" ;;
19678 "rescue/solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/solaris/Makefile" ;;
19679 "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
19680 "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
19681 "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
19682 "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
19683 "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
19684 "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
19685 "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
19686 "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
19687 "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
19688 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
19689 "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
19690 "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
19691 "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
19692 "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
19693 "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
19694 "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
19695 "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
19696 "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
19697 "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
19698 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
19699 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19700 "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
19701 "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
19702 "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
19703 "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
19704 "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
19705 "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
19706 "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
19707 "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
19708 "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
19709 "src/tray-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
19710 "src/tray-monitor/tray-monitor.conf" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
19711 "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
19712 "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
19713 "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
19714 "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
19715 "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
19716 "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
19717 "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
19718 "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
19719 "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
19720 "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
19721 "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
19722 "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
19723 "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
19724 "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
19725 "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
19726 "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
19727 "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
19728 "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
19729 "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
19730 "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
19731 "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
19732 "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
19733 "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
19734 "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
19735 "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
19736 "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
19737 "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
19738 "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
19739 "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
19740 "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
19741 "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
19742 "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
19743 "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
19744 "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
19745 "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
19746 "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
19747 "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
19748 "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
19749 "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
19750 "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
19751 "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
19752 "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
19753 "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
19754 "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
19755 "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
19756 "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
19757 "src/win32/baculafd/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/baculafd/bacula-fd.conf" ;;
19758 "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
19759 "src/win32/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/console/bconsole.conf" ;;
19760 "src/win32/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/wx-console/wx-console.conf" ;;
19761 "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
19762 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
19763 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
19764 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19765 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19766 { (exit 1); exit 1; }; };;
19770 # If the user did not use the arguments to specify the items to instantiate,
19771 # then the envvar interface is used. Set only those that are not.
19772 # We use the long form for the default assignment because of an extremely
19773 # bizarre bug on SunOS 4.1.3.
19774 if $ac_need_defaults; then
19775 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19776 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19777 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19780 # Have a temporary directory for convenience. Make it in the build tree
19781 # simply because there is no reason to put it here, and in addition,
19782 # creating and moving files from /tmp can sometimes cause problems.
19783 # Create a temporary directory, and hook for its removal unless debugging.
19786 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19787 trap '{ (exit 1); exit 1; }' 1 2 13 15
19790 # Create a (secure) tmp directory for tmp files.
19793 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19794 test -n "$tmp" && test -d "$tmp"
19797 tmp=./confstat$$-$RANDOM
19798 (umask 077 && mkdir $tmp)
19801 echo "$me: cannot create a temporary directory in ." >&2
19802 { (exit 1); exit 1; }
19807 cat >>$CONFIG_STATUS <<_ACEOF
19810 # CONFIG_FILES section.
19813 # No need to generate the scripts if there are no CONFIG_FILES.
19814 # This happens for instance when ./config.status config.h
19815 if test -n "\$CONFIG_FILES"; then
19816 # Protect against being on the right side of a sed subst in config.status.
19817 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19818 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19819 s,@SHELL@,$SHELL,;t t
19820 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19821 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19822 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19823 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19824 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19825 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19826 s,@exec_prefix@,$exec_prefix,;t t
19827 s,@prefix@,$prefix,;t t
19828 s,@program_transform_name@,$program_transform_name,;t t
19829 s,@bindir@,$bindir,;t t
19830 s,@sbindir@,$sbindir,;t t
19831 s,@libexecdir@,$libexecdir,;t t
19832 s,@datadir@,$datadir,;t t
19833 s,@sysconfdir@,$sysconfdir,;t t
19834 s,@sharedstatedir@,$sharedstatedir,;t t
19835 s,@localstatedir@,$localstatedir,;t t
19836 s,@libdir@,$libdir,;t t
19837 s,@includedir@,$includedir,;t t
19838 s,@oldincludedir@,$oldincludedir,;t t
19839 s,@infodir@,$infodir,;t t
19840 s,@mandir@,$mandir,;t t
19841 s,@build_alias@,$build_alias,;t t
19842 s,@host_alias@,$host_alias,;t t
19843 s,@target_alias@,$target_alias,;t t
19844 s,@DEFS@,$DEFS,;t t
19845 s,@ECHO_C@,$ECHO_C,;t t
19846 s,@ECHO_N@,$ECHO_N,;t t
19847 s,@ECHO_T@,$ECHO_T,;t t
19848 s,@LIBS@,$LIBS,;t t
19849 s,@BUILD_DIR@,$BUILD_DIR,;t t
19850 s,@TRUEPRG@,$TRUEPRG,;t t
19851 s,@FALSEPRG@,$FALSEPRG,;t t
19852 s,@VERSION@,$VERSION,;t t
19853 s,@DATE@,$DATE,;t t
19854 s,@LSMDATE@,$LSMDATE,;t t
19856 s,@CFLAGS@,$CFLAGS,;t t
19857 s,@LDFLAGS@,$LDFLAGS,;t t
19858 s,@CPPFLAGS@,$CPPFLAGS,;t t
19859 s,@ac_ct_CC@,$ac_ct_CC,;t t
19860 s,@EXEEXT@,$EXEEXT,;t t
19861 s,@OBJEXT@,$OBJEXT,;t t
19863 s,@CXXFLAGS@,$CXXFLAGS,;t t
19864 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
19866 s,@EGREP@,$EGREP,;t t
19867 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19868 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19869 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19870 s,@RANLIB@,$RANLIB,;t t
19871 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19877 s,@ECHO@,$ECHO,;t t
19881 s,@OPENSSL@,$OPENSSL,;t t
19883 s,@PKGCONFIG@,$PKGCONFIG,;t t
19884 s,@WXCONFIG@,$WXCONFIG,;t t
19885 s,@CDRECORD@,$CDRECORD,;t t
19886 s,@ARFLAGS@,$ARFLAGS,;t t
19887 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
19888 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
19889 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
19890 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
19891 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
19892 s,@build@,$build,;t t
19893 s,@build_cpu@,$build_cpu,;t t
19894 s,@build_vendor@,$build_vendor,;t t
19895 s,@build_os@,$build_os,;t t
19896 s,@host@,$host,;t t
19897 s,@host_cpu@,$host_cpu,;t t
19898 s,@host_vendor@,$host_vendor,;t t
19899 s,@host_os@,$host_os,;t t
19900 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
19901 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
19902 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
19903 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
19904 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
19905 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
19906 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
19907 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
19908 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
19909 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
19910 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
19911 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
19912 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
19913 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
19914 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
19915 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
19916 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
19917 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
19918 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
19919 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
19920 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
19921 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
19922 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
19923 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
19924 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
19925 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
19926 s,@MSGFMT@,$MSGFMT,;t t
19927 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
19928 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
19929 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
19930 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
19931 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
19932 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
19933 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
19934 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
19935 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
19936 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
19937 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
19938 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
19939 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
19940 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
19941 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
19942 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
19943 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
19944 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
19945 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
19946 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
19947 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
19948 s,@GNOME_DIR@,$GNOME_DIR,;t t
19949 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
19950 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
19951 s,@WX_DIR@,$WX_DIR,;t t
19952 s,@TRAY_MONITOR_CPPFLAGS@,$TRAY_MONITOR_CPPFLAGS,;t t
19953 s,@TRAY_MONITOR_LDFLAGS@,$TRAY_MONITOR_LDFLAGS,;t t
19954 s,@TRAY_MONITOR_DIR@,$TRAY_MONITOR_DIR,;t t
19955 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
19956 s,@STATIC_FD@,$STATIC_FD,;t t
19957 s,@STATIC_SD@,$STATIC_SD,;t t
19958 s,@STATIC_DIR@,$STATIC_DIR,;t t
19959 s,@STATIC_CONS@,$STATIC_CONS,;t t
19960 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
19961 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
19962 s,@ALL_DIRS@,$ALL_DIRS,;t t
19963 s,@CONS_INC@,$CONS_INC,;t t
19964 s,@CONS_OBJ@,$CONS_OBJ,;t t
19965 s,@CONS_SRC@,$CONS_SRC,;t t
19966 s,@CONS_LIBS@,$CONS_LIBS,;t t
19967 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
19968 s,@READLINE_SRC@,$READLINE_SRC,;t t
19969 s,@CDSTL@,$CDSTL,;t t
19970 s,@working_dir@,$working_dir,;t t
19971 s,@scriptdir@,$scriptdir,;t t
19972 s,@dump_email@,$dump_email,;t t
19973 s,@job_email@,$job_email,;t t
19974 s,@smtp_host@,$smtp_host,;t t
19975 s,@piddir@,$piddir,;t t
19976 s,@subsysdir@,$subsysdir,;t t
19977 s,@baseport@,$baseport,;t t
19978 s,@dir_port@,$dir_port,;t t
19979 s,@fd_port@,$fd_port,;t t
19980 s,@sd_port@,$sd_port,;t t
19981 s,@dir_password@,$dir_password,;t t
19982 s,@fd_password@,$fd_password,;t t
19983 s,@sd_password@,$sd_password,;t t
19984 s,@mon_dir_password@,$mon_dir_password,;t t
19985 s,@mon_fd_password@,$mon_fd_password,;t t
19986 s,@mon_sd_password@,$mon_sd_password,;t t
19987 s,@dir_user@,$dir_user,;t t
19988 s,@dir_group@,$dir_group,;t t
19989 s,@sd_user@,$sd_user,;t t
19990 s,@sd_group@,$sd_group,;t t
19991 s,@fd_user@,$fd_user,;t t
19992 s,@fd_group@,$fd_group,;t t
19993 s,@SBINPERM@,$SBINPERM,;t t
19994 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
19995 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
19996 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
19997 s,@cats@,$cats,;t t
19998 s,@DB_NAME@,$DB_NAME,;t t
19999 s,@GETCONF@,$GETCONF,;t t
20000 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
20001 s,@X_CFLAGS@,$X_CFLAGS,;t t
20002 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
20003 s,@X_LIBS@,$X_LIBS,;t t
20004 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
20005 s,@LIBOBJS@,$LIBOBJS,;t t
20006 s,@ALLOCA@,$ALLOCA,;t t
20007 s,@FDLIBS@,$FDLIBS,;t t
20008 s,@DEBUG@,$DEBUG,;t t
20009 s,@DINCLUDE@,$DINCLUDE,;t t
20010 s,@DLIB@,$DLIB,;t t
20011 s,@DB_LIBS@,$DB_LIBS,;t t
20012 s,@WCFLAGS@,$WCFLAGS,;t t
20013 s,@WLDFLAGS@,$WLDFLAGS,;t t
20014 s,@OBJLIST@,$OBJLIST,;t t
20015 s,@hostname@,$hostname,;t t
20016 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
20017 s,@PSCMD@,$PSCMD,;t t
20018 s,@WIN32@,$WIN32,;t t
20019 s,@MACOSX@,$MACOSX,;t t
20020 s,@DISTNAME@,$DISTNAME,;t t
20021 s,@DISTVER@,$DISTVER,;t t
20022 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20023 /@MCOMMON@/r $MCOMMON
20029 cat >>$CONFIG_STATUS <<\_ACEOF
20030 # Split the substitutions into bite-sized pieces for seds with
20031 # small command number limits, like on Digital OSF/1 and HP-UX.
20032 ac_max_sed_lines=48
20033 ac_sed_frag=1 # Number of current file.
20034 ac_beg=1 # First line for current file.
20035 ac_end=$ac_max_sed_lines # Line after last line for current file.
20038 while $ac_more_lines; do
20039 if test $ac_beg -gt 1; then
20040 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20042 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20044 if test ! -s $tmp/subs.frag; then
20045 ac_more_lines=false
20047 # The purpose of the label and of the branching condition is to
20048 # speed up the sed processing (if there are no `@' at all, there
20049 # is no need to browse any of the substitutions).
20050 # These are the two extra sed commands mentioned above.
20052 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20053 if test -z "$ac_sed_cmds"; then
20054 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20056 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20058 ac_sed_frag=`expr $ac_sed_frag + 1`
20060 ac_end=`expr $ac_end + $ac_max_sed_lines`
20063 if test -z "$ac_sed_cmds"; then
20066 fi # test -n "$CONFIG_FILES"
20069 cat >>$CONFIG_STATUS <<\_ACEOF
20070 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20071 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20073 - | *:- | *:-:* ) # input from stdin
20075 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20076 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20077 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20078 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20079 * ) ac_file_in=$ac_file.in ;;
20082 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20083 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20084 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20085 X"$ac_file" : 'X\(//\)[^/]' \| \
20086 X"$ac_file" : 'X\(//\)$' \| \
20087 X"$ac_file" : 'X\(/\)' \| \
20088 . : '\(.\)' 2>/dev/null ||
20090 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20091 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20092 /^X\(\/\/\)$/{ s//\1/; q; }
20093 /^X\(\/\).*/{ s//\1/; q; }
20095 { if $as_mkdir_p; then
20100 while test ! -d "$as_dir"; do
20101 as_dirs="$as_dir $as_dirs"
20102 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20103 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20104 X"$as_dir" : 'X\(//\)[^/]' \| \
20105 X"$as_dir" : 'X\(//\)$' \| \
20106 X"$as_dir" : 'X\(/\)' \| \
20107 . : '\(.\)' 2>/dev/null ||
20109 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20110 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20111 /^X\(\/\/\)$/{ s//\1/; q; }
20112 /^X\(\/\).*/{ s//\1/; q; }
20115 test ! -n "$as_dirs" || mkdir $as_dirs
20116 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20117 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20118 { (exit 1); exit 1; }; }; }
20122 if test "$ac_dir" != .; then
20123 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20124 # A "../" for each directory in $ac_dir_suffix.
20125 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20127 ac_dir_suffix= ac_top_builddir=
20131 .) # No --srcdir option. We are building in place.
20133 if test -z "$ac_top_builddir"; then
20136 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20138 [\\/]* | ?:[\\/]* ) # Absolute path.
20139 ac_srcdir=$srcdir$ac_dir_suffix;
20140 ac_top_srcdir=$srcdir ;;
20141 *) # Relative path.
20142 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20143 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20145 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
20147 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
20148 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
20149 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
20150 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
20154 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20155 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20158 if test x"$ac_file" != x-; then
20159 { echo "$as_me:$LINENO: creating $ac_file" >&5
20160 echo "$as_me: creating $ac_file" >&6;}
20163 # Let's still pretend it is `configure' which instantiates (i.e., don't
20164 # use $as_me), people would be surprised to read:
20165 # /* config.h. Generated by config.status. */
20166 if test x"$ac_file" = x-; then
20169 configure_input="$ac_file. "
20171 configure_input=$configure_input"Generated from `echo $ac_file_in |
20172 sed 's,.*/,,'` by configure."
20174 # First look for the input files in the build tree, otherwise in the
20176 ac_file_inputs=`IFS=:
20177 for f in $ac_file_in; do
20179 -) echo $tmp/stdin ;;
20181 # Absolute (can't be DOS-style, as IFS=:)
20182 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20183 echo "$as_me: error: cannot find input file: $f" >&2;}
20184 { (exit 1); exit 1; }; }
20187 if test -f "$f"; then
20190 elif test -f "$srcdir/$f"; then
20195 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20196 echo "$as_me: error: cannot find input file: $f" >&2;}
20197 { (exit 1); exit 1; }; }
20200 done` || { (exit 1); exit 1; }
20202 cat >>$CONFIG_STATUS <<_ACEOF
20206 cat >>$CONFIG_STATUS <<\_ACEOF
20208 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20209 s,@configure_input@,$configure_input,;t t
20210 s,@srcdir@,$ac_srcdir,;t t
20211 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20212 s,@top_srcdir@,$ac_top_srcdir,;t t
20213 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20214 s,@builddir@,$ac_builddir,;t t
20215 s,@abs_builddir@,$ac_abs_builddir,;t t
20216 s,@top_builddir@,$ac_top_builddir,;t t
20217 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20218 s,@INSTALL@,$ac_INSTALL,;t t
20219 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20221 if test x"$ac_file" != x-; then
20222 mv $tmp/out $ac_file
20230 cat >>$CONFIG_STATUS <<\_ACEOF
20233 # CONFIG_HEADER section.
20236 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20237 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20239 # ac_d sets the value in "#define NAME VALUE" lines.
20240 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20241 ac_dB='[ ].*$,\1#\2'
20244 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20245 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20246 ac_uB='$,\1#\2define\3'
20250 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20251 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20253 - | *:- | *:-:* ) # input from stdin
20255 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20256 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20257 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20258 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20259 * ) ac_file_in=$ac_file.in ;;
20262 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20263 echo "$as_me: creating $ac_file" >&6;}
20265 # First look for the input files in the build tree, otherwise in the
20267 ac_file_inputs=`IFS=:
20268 for f in $ac_file_in; do
20270 -) echo $tmp/stdin ;;
20272 # Absolute (can't be DOS-style, as IFS=:)
20273 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20274 echo "$as_me: error: cannot find input file: $f" >&2;}
20275 { (exit 1); exit 1; }; }
20278 if test -f "$f"; then
20281 elif test -f "$srcdir/$f"; then
20286 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20287 echo "$as_me: error: cannot find input file: $f" >&2;}
20288 { (exit 1); exit 1; }; }
20291 done` || { (exit 1); exit 1; }
20292 # Remove the trailing spaces.
20293 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20297 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20298 # `conftest.undefs', that substitutes the proper values into
20299 # config.h.in to produce config.h. The first handles `#define'
20300 # templates, and the second `#undef' templates.
20301 # And first: Protect against being on the right side of a sed subst in
20302 # config.status. Protect against being in an unquoted here document
20303 # in config.status.
20304 rm -f conftest.defines conftest.undefs
20305 # Using a here document instead of a string reduces the quoting nightmare.
20306 # Putting comments in sed scripts is not portable.
20308 # `end' is used to avoid that the second main sed command (meant for
20309 # 0-ary CPP macros) applies to n-ary macro definitions.
20310 # See the Autoconf documentation for `clear'.
20311 cat >confdef2sed.sed <<\_ACEOF
20316 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20318 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20321 # If some macros were called several times there might be several times
20322 # the same #defines, which is useless. Nevertheless, we may not want to
20323 # sort them, since we want the *last* AC-DEFINE to be honored.
20324 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20325 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20326 rm -f confdef2sed.sed
20328 # This sed command replaces #undef with comments. This is necessary, for
20329 # example, in the case of _POSIX_SOURCE, which is predefined and required
20330 # on some systems where configure will not decide to define it.
20331 cat >>conftest.undefs <<\_ACEOF
20332 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20335 # Break up conftest.defines because some shells have a limit on the size
20336 # of here documents, and old seds have small limits too (100 cmds).
20337 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20338 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20339 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20340 echo ' :' >>$CONFIG_STATUS
20341 rm -f conftest.tail
20342 while grep . conftest.defines >/dev/null
20344 # Write a limited-size here document to $tmp/defines.sed.
20345 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20346 # Speed up: don't consider the non `#define' lines.
20347 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20348 # Work around the forget-to-reset-the-flag bug.
20349 echo 't clr' >>$CONFIG_STATUS
20350 echo ': clr' >>$CONFIG_STATUS
20351 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20353 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20355 mv $tmp/out $tmp/in
20357 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20358 rm -f conftest.defines
20359 mv conftest.tail conftest.defines
20361 rm -f conftest.defines
20362 echo ' fi # grep' >>$CONFIG_STATUS
20363 echo >>$CONFIG_STATUS
20365 # Break up conftest.undefs because some shells have a limit on the size
20366 # of here documents, and old seds have small limits too (100 cmds).
20367 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20368 rm -f conftest.tail
20369 while grep . conftest.undefs >/dev/null
20371 # Write a limited-size here document to $tmp/undefs.sed.
20372 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20373 # Speed up: don't consider the non `#undef'
20374 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20375 # Work around the forget-to-reset-the-flag bug.
20376 echo 't clr' >>$CONFIG_STATUS
20377 echo ': clr' >>$CONFIG_STATUS
20378 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20380 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20382 mv $tmp/out $tmp/in
20384 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20385 rm -f conftest.undefs
20386 mv conftest.tail conftest.undefs
20388 rm -f conftest.undefs
20390 cat >>$CONFIG_STATUS <<\_ACEOF
20391 # Let's still pretend it is `configure' which instantiates (i.e., don't
20392 # use $as_me), people would be surprised to read:
20393 # /* config.h. Generated by config.status. */
20394 if test x"$ac_file" = x-; then
20395 echo "/* Generated by configure. */" >$tmp/config.h
20397 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20399 cat $tmp/in >>$tmp/config.h
20401 if test x"$ac_file" != x-; then
20402 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20403 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20404 echo "$as_me: $ac_file is unchanged" >&6;}
20406 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20407 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20408 X"$ac_file" : 'X\(//\)[^/]' \| \
20409 X"$ac_file" : 'X\(//\)$' \| \
20410 X"$ac_file" : 'X\(/\)' \| \
20411 . : '\(.\)' 2>/dev/null ||
20413 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20414 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20415 /^X\(\/\/\)$/{ s//\1/; q; }
20416 /^X\(\/\).*/{ s//\1/; q; }
20418 { if $as_mkdir_p; then
20423 while test ! -d "$as_dir"; do
20424 as_dirs="$as_dir $as_dirs"
20425 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20426 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20427 X"$as_dir" : 'X\(//\)[^/]' \| \
20428 X"$as_dir" : 'X\(//\)$' \| \
20429 X"$as_dir" : 'X\(/\)' \| \
20430 . : '\(.\)' 2>/dev/null ||
20432 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20433 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20434 /^X\(\/\/\)$/{ s//\1/; q; }
20435 /^X\(\/\).*/{ s//\1/; q; }
20438 test ! -n "$as_dirs" || mkdir $as_dirs
20439 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20440 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20441 { (exit 1); exit 1; }; }; }
20444 mv $tmp/config.h $ac_file
20448 rm -f $tmp/config.h
20452 cat >>$CONFIG_STATUS <<\_ACEOF
20455 # CONFIG_COMMANDS section.
20457 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20458 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20459 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20460 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20461 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20462 X"$ac_dest" : 'X\(//\)[^/]' \| \
20463 X"$ac_dest" : 'X\(//\)$' \| \
20464 X"$ac_dest" : 'X\(/\)' \| \
20465 . : '\(.\)' 2>/dev/null ||
20467 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20468 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20469 /^X\(\/\/\)$/{ s//\1/; q; }
20470 /^X\(\/\).*/{ s//\1/; q; }
20474 if test "$ac_dir" != .; then
20475 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20476 # A "../" for each directory in $ac_dir_suffix.
20477 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20479 ac_dir_suffix= ac_top_builddir=
20483 .) # No --srcdir option. We are building in place.
20485 if test -z "$ac_top_builddir"; then
20488 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20490 [\\/]* | ?:[\\/]* ) # Absolute path.
20491 ac_srcdir=$srcdir$ac_dir_suffix;
20492 ac_top_srcdir=$srcdir ;;
20493 *) # Relative path.
20494 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20495 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20497 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
20499 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
20500 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
20501 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
20502 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
20505 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20506 echo "$as_me: executing $ac_dest commands" >&6;}
20508 default ) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
20514 cat >>$CONFIG_STATUS <<\_ACEOF
20516 { (exit 0); exit 0; }
20518 chmod +x $CONFIG_STATUS
20519 ac_clean_files=$ac_clean_files_save
20522 # configure is writing to config.log, and then calls config.status.
20523 # config.status does its own redirection, appending to config.log.
20524 # Unfortunately, on DOS this fails, as config.log is still kept open
20525 # by configure, so config.status won't be able to write to it; its
20526 # output is simply discarded. So we exec the FD to /dev/null,
20527 # effectively closing config.log, so it can be properly (re)opened and
20528 # appended to by config.status. When coming back to configure, we
20529 # need to make the FD available again.
20530 if test "$no_create" != yes; then
20532 ac_config_status_args=
20533 test "$silent" = yes &&
20534 ac_config_status_args="$ac_config_status_args --quiet"
20536 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20538 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20539 # would make configure fail if this is the last instruction.
20540 $ac_cs_success || { (exit 1); exit 1; }
20545 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
20546 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
20551 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
20552 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
20554 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
20555 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
20557 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
20558 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
20560 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
20561 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
20563 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
20564 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
20566 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
20567 chmod 755 $c/sqlite
20570 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
20571 largefile_support="yes"
20575 # A whole lot of hand springs to get the compiler version.
20576 # This is because gcc changed the output in version 3.0
20578 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
20579 if test "x${CCVERSION}" = "x" ; then
20580 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
20582 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
20583 if test x"${CXXVERSION}" = x ; then
20584 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
20587 if test "x${subsysdir}" = "x${sbindir}" ; then
20590 echo "You have set --sbindir and --with-subsys-dir"
20591 echo " both equal to: ${subsysdir} "
20592 echo " This is not permitted. Please reconfigure."
20594 echo "Aborting configuration ..."
20600 if test "x${db_name}" = "xInternal" ; then
20603 echo "You have not specified either --enable-client-only or one of the"
20604 echo " supported databases: MySQL, PostgreSQL, or SQLite".
20605 echo " This is not permitted. Please reconfigure."
20607 echo "Aborting the configuration ..."
20614 Configuration on `date`:
20616 Host: $host -- ${DISTNAME} ${DISTVER}
20617 Bacula version: ${VERSION} (${DATE})
20618 Source code location: ${srcdir}
20619 Install binaries: ${sbindir}
20620 Install config files: ${sysconfdir}
20621 Scripts directory: ${scriptdir}
20622 Working directory: ${working_dir}
20623 PID directory: ${piddir}
20624 Subsys directory: ${subsysdir}
20625 C Compiler: ${CC} ${CCVERSION}
20626 C++ Compiler: ${CXX} ${CXXVERSION}
20627 Compiler flags: ${WCFLAGS} ${CFLAGS}
20628 Linker flags: ${WLDFLAGS} ${LDFLAGS}
20630 Statically Linked Tools: ${support_static_tools}
20631 Statically Linked FD: ${support_static_fd}
20632 Statically Linked SD: ${support_static_sd}
20633 Statically Linked DIR: ${support_static_dir}
20634 Statically Linked CONS: ${support_static_cons}
20635 Database type: ${db_name}
20636 Database lib: ${DB_LIBS}
20638 Job Output Email: ${job_email}
20639 Traceback Email: ${dump_email}
20640 SMTP Host Address: ${smtp_host}
20642 Director Port: ${dir_port}
20643 File daemon Port: ${fd_port}
20644 Storage daemon Port: ${sd_port}
20646 Director User: ${dir_user}
20647 Director Group: ${dir_group}
20648 Storage Daemon User: ${sd_user}
20649 Storage DaemonGroup: ${sd_group}
20650 File Daemon User: ${fd_user}
20651 File Daemon Group: ${fd_group}
20653 SQL binaries Directory ${SQL_BINDIR}
20655 Large file support: $largefile_support
20656 Bacula conio support: ${got_conio} ${CONS_LIBS}
20657 readline support: ${got_readline} ${PRTREADLINE_SRC}
20658 TCP Wrappers support: ${TCPW_MSG}
20659 ZLIB support: ${have_zlib}
20660 enable-smartalloc: ${support_smartalloc}
20661 enable-gnome: ${support_gnome} ${gnome_version}
20662 enable-wx-console: ${support_wx_console}
20663 enable-tray-monitor: ${support_tray_monitor}
20664 client-only: ${build_client_only}
20665 ACL support: ${have_acl}
20672 # cweb support: ${got_cweb} ${CWEB_SRC}
20673 # gmp support: ${got_gmp} ${GMP_SRC}