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"
3053 if test "x$CC" = xgcc
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
5456 for ac_header in curses.h
5458 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5459 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5460 echo "$as_me:$LINENO: checking for $ac_header" >&5
5461 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5462 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5463 echo $ECHO_N "(cached) $ECHO_C" >&6
5465 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5466 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5468 # Is the header compilable?
5469 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5470 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5471 cat >conftest.$ac_ext <<_ACEOF
5472 #line $LINENO "configure"
5475 cat confdefs.h >>conftest.$ac_ext
5476 cat >>conftest.$ac_ext <<_ACEOF
5477 /* end confdefs.h. */
5478 $ac_includes_default
5479 #include <$ac_header>
5481 rm -f conftest.$ac_objext
5482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5483 (eval $ac_compile) 2>&5
5485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5486 (exit $ac_status); } &&
5487 { ac_try='test -s conftest.$ac_objext'
5488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492 (exit $ac_status); }; }; then
5493 ac_header_compiler=yes
5495 echo "$as_me: failed program was:" >&5
5496 sed 's/^/| /' conftest.$ac_ext >&5
5498 ac_header_compiler=no
5500 rm -f conftest.$ac_objext conftest.$ac_ext
5501 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5502 echo "${ECHO_T}$ac_header_compiler" >&6
5504 # Is the header present?
5505 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5506 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5507 cat >conftest.$ac_ext <<_ACEOF
5508 #line $LINENO "configure"
5511 cat confdefs.h >>conftest.$ac_ext
5512 cat >>conftest.$ac_ext <<_ACEOF
5513 /* end confdefs.h. */
5514 #include <$ac_header>
5516 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5517 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5519 grep -v '^ *+' conftest.er1 >conftest.err
5521 cat conftest.err >&5
5522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523 (exit $ac_status); } >/dev/null; then
5524 if test -s conftest.err; then
5525 ac_cpp_err=$ac_c_preproc_warn_flag
5532 if test -z "$ac_cpp_err"; then
5533 ac_header_preproc=yes
5535 echo "$as_me: failed program was:" >&5
5536 sed 's/^/| /' conftest.$ac_ext >&5
5538 ac_header_preproc=no
5540 rm -f conftest.err conftest.$ac_ext
5541 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5542 echo "${ECHO_T}$ac_header_preproc" >&6
5544 # So? What about this header?
5545 case $ac_header_compiler:$ac_header_preproc in
5547 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5548 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5549 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5550 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5553 ## ------------------------------------ ##
5554 ## Report this to bug-autoconf@gnu.org. ##
5555 ## ------------------------------------ ##
5558 sed "s/^/$as_me: WARNING: /" >&2
5561 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5562 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5563 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5564 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5565 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5566 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5569 ## ------------------------------------ ##
5570 ## Report this to bug-autoconf@gnu.org. ##
5571 ## ------------------------------------ ##
5574 sed "s/^/$as_me: WARNING: /" >&2
5577 echo "$as_me:$LINENO: checking for $ac_header" >&5
5578 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5579 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5580 echo $ECHO_N "(cached) $ECHO_C" >&6
5582 eval "$as_ac_Header=$ac_header_preproc"
5584 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5585 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5588 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5589 cat >>confdefs.h <<_ACEOF
5590 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5597 echo "$as_me:$LINENO: checking for term.h" >&5
5598 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
5599 if test "${ac_cv_header_term_h+set}" = set; then
5600 echo $ECHO_N "(cached) $ECHO_C" >&6
5602 cat >conftest.$ac_ext <<_ACEOF
5603 #line $LINENO "configure"
5606 cat confdefs.h >>conftest.$ac_ext
5607 cat >>conftest.$ac_ext <<_ACEOF
5608 /* end confdefs.h. */
5616 rm -f conftest.$ac_objext
5617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5618 (eval $ac_compile) 2>&5
5620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621 (exit $ac_status); } &&
5622 { ac_try='test -s conftest.$ac_objext'
5623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5627 (exit $ac_status); }; }; then
5628 ac_cv_header_term_h=yes
5630 echo "$as_me: failed program was:" >&5
5631 sed 's/^/| /' conftest.$ac_ext >&5
5633 ac_cv_header_term_h=no
5635 rm -f conftest.$ac_objext conftest.$ac_ext
5637 echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
5638 echo "${ECHO_T}$ac_cv_header_term_h" >&6
5639 if test $ac_cv_header_term_h = yes; then
5640 echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
5641 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
5642 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
5643 echo $ECHO_N "(cached) $ECHO_C" >&6
5645 ac_check_lib_save_LIBS=$LIBS
5646 LIBS="-lcurses $LIBS"
5647 cat >conftest.$ac_ext <<_ACEOF
5648 #line $LINENO "configure"
5651 cat confdefs.h >>conftest.$ac_ext
5652 cat >>conftest.$ac_ext <<_ACEOF
5653 /* end confdefs.h. */
5655 /* Override any gcc2 internal prototype to avoid an error. */
5659 /* We use char because int might match the return type of a gcc2
5660 builtin and then its argument prototype would still apply. */
5670 rm -f conftest.$ac_objext conftest$ac_exeext
5671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5672 (eval $ac_link) 2>&5
5674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675 (exit $ac_status); } &&
5676 { ac_try='test -s conftest$ac_exeext'
5677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5681 (exit $ac_status); }; }; then
5682 ac_cv_lib_curses_tgetent=yes
5684 echo "$as_me: failed program was:" >&5
5685 sed 's/^/| /' conftest.$ac_ext >&5
5687 ac_cv_lib_curses_tgetent=no
5689 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5690 LIBS=$ac_check_lib_save_LIBS
5692 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
5693 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
5694 if test $ac_cv_lib_curses_tgetent = yes; then
5695 CONS_LIBS="-lcurses"
5701 cat >>confdefs.h <<\_ACEOF
5702 #define HAVE_CONIO 1
5710 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
5721 # ---------------------------------------------------
5722 # Check for readline support/directory (default off)
5723 # ---------------------------------------------------
5724 # this allows you to turn it completely off
5725 # Check whether --enable-readline or --disable-readline was given.
5726 if test "${enable_readline+set}" = set; then
5727 enableval="$enable_readline"
5728 if test x$enableval = xno; then
5735 if test x$support_readline = xyes; then
5737 # Check whether --with-readline or --without-readline was given.
5738 if test "${with_readline+set}" = set; then
5739 withval="$with_readline"
5741 case "$with_readline" in
5744 if test "$with_readline" != "yes"; then
5745 CONS_INC="-I${with_readline}"
5746 CONS_LDFLAGS="-L$with_readline"
5748 with_readline="/usr/include/readline"
5750 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
5751 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5752 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5753 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5754 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5755 echo $ECHO_N "(cached) $ECHO_C" >&6
5757 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5758 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5760 # Is the header compilable?
5761 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
5762 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
5763 cat >conftest.$ac_ext <<_ACEOF
5764 #line $LINENO "configure"
5767 cat confdefs.h >>conftest.$ac_ext
5768 cat >>conftest.$ac_ext <<_ACEOF
5769 /* end confdefs.h. */
5770 $ac_includes_default
5771 #include <${with_readline}/readline.h>
5773 rm -f conftest.$ac_objext
5774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5775 (eval $ac_compile) 2>&5
5777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778 (exit $ac_status); } &&
5779 { ac_try='test -s conftest.$ac_objext'
5780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784 (exit $ac_status); }; }; then
5785 ac_header_compiler=yes
5787 echo "$as_me: failed program was:" >&5
5788 sed 's/^/| /' conftest.$ac_ext >&5
5790 ac_header_compiler=no
5792 rm -f conftest.$ac_objext conftest.$ac_ext
5793 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5794 echo "${ECHO_T}$ac_header_compiler" >&6
5796 # Is the header present?
5797 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
5798 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
5799 cat >conftest.$ac_ext <<_ACEOF
5800 #line $LINENO "configure"
5803 cat confdefs.h >>conftest.$ac_ext
5804 cat >>conftest.$ac_ext <<_ACEOF
5805 /* end confdefs.h. */
5806 #include <${with_readline}/readline.h>
5808 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5809 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5811 grep -v '^ *+' conftest.er1 >conftest.err
5813 cat conftest.err >&5
5814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815 (exit $ac_status); } >/dev/null; then
5816 if test -s conftest.err; then
5817 ac_cpp_err=$ac_c_preproc_warn_flag
5824 if test -z "$ac_cpp_err"; then
5825 ac_header_preproc=yes
5827 echo "$as_me: failed program was:" >&5
5828 sed 's/^/| /' conftest.$ac_ext >&5
5830 ac_header_preproc=no
5832 rm -f conftest.err conftest.$ac_ext
5833 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5834 echo "${ECHO_T}$ac_header_preproc" >&6
5836 # So? What about this header?
5837 case $ac_header_compiler:$ac_header_preproc in
5839 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5840 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5841 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5842 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5845 ## ------------------------------------ ##
5846 ## Report this to bug-autoconf@gnu.org. ##
5847 ## ------------------------------------ ##
5850 sed "s/^/$as_me: WARNING: /" >&2
5853 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
5854 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
5855 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
5856 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
5857 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5858 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5861 ## ------------------------------------ ##
5862 ## Report this to bug-autoconf@gnu.org. ##
5863 ## ------------------------------------ ##
5866 sed "s/^/$as_me: WARNING: /" >&2
5869 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5870 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5871 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5872 echo $ECHO_N "(cached) $ECHO_C" >&6
5874 eval "$as_ac_Header=$ac_header_preproc"
5876 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5877 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5880 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5881 cat >>confdefs.h <<\_ACEOF
5882 #define HAVE_READLINE 1
5885 CONS_LIBS="-lreadline -ltermcap"
5890 echo "readline.h not found. readline turned off ..."
5902 # check for standard readline library
5903 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5904 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5905 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5906 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5907 echo $ECHO_N "(cached) $ECHO_C" >&6
5909 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5910 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5912 # Is the header compilable?
5913 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
5914 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
5915 cat >conftest.$ac_ext <<_ACEOF
5916 #line $LINENO "configure"
5919 cat confdefs.h >>conftest.$ac_ext
5920 cat >>conftest.$ac_ext <<_ACEOF
5921 /* end confdefs.h. */
5922 $ac_includes_default
5923 #include </usr/include/readline/readline.h>
5925 rm -f conftest.$ac_objext
5926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5927 (eval $ac_compile) 2>&5
5929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930 (exit $ac_status); } &&
5931 { ac_try='test -s conftest.$ac_objext'
5932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); }; }; then
5937 ac_header_compiler=yes
5939 echo "$as_me: failed program was:" >&5
5940 sed 's/^/| /' conftest.$ac_ext >&5
5942 ac_header_compiler=no
5944 rm -f conftest.$ac_objext conftest.$ac_ext
5945 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5946 echo "${ECHO_T}$ac_header_compiler" >&6
5948 # Is the header present?
5949 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
5950 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
5951 cat >conftest.$ac_ext <<_ACEOF
5952 #line $LINENO "configure"
5955 cat confdefs.h >>conftest.$ac_ext
5956 cat >>conftest.$ac_ext <<_ACEOF
5957 /* end confdefs.h. */
5958 #include </usr/include/readline/readline.h>
5960 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5961 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5963 grep -v '^ *+' conftest.er1 >conftest.err
5965 cat conftest.err >&5
5966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967 (exit $ac_status); } >/dev/null; then
5968 if test -s conftest.err; then
5969 ac_cpp_err=$ac_c_preproc_warn_flag
5976 if test -z "$ac_cpp_err"; then
5977 ac_header_preproc=yes
5979 echo "$as_me: failed program was:" >&5
5980 sed 's/^/| /' conftest.$ac_ext >&5
5982 ac_header_preproc=no
5984 rm -f conftest.err conftest.$ac_ext
5985 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5986 echo "${ECHO_T}$ac_header_preproc" >&6
5988 # So? What about this header?
5989 case $ac_header_compiler:$ac_header_preproc in
5991 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5992 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5993 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5994 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5997 ## ------------------------------------ ##
5998 ## Report this to bug-autoconf@gnu.org. ##
5999 ## ------------------------------------ ##
6002 sed "s/^/$as_me: WARNING: /" >&2
6005 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
6006 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
6007 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
6008 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
6009 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
6010 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6013 ## ------------------------------------ ##
6014 ## Report this to bug-autoconf@gnu.org. ##
6015 ## ------------------------------------ ##
6018 sed "s/^/$as_me: WARNING: /" >&2
6021 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
6022 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
6023 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6024 echo $ECHO_N "(cached) $ECHO_C" >&6
6026 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
6028 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
6029 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
6032 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
6033 cat >>confdefs.h <<\_ACEOF
6034 #define HAVE_READLINE 1
6038 CONS_INC="-I/usr/include/readline"
6039 CONS_LIBS="-lreadline -ltermcap"
6043 # Did not find standard library, so try Bacula's default
6044 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
6045 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6046 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
6047 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
6048 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6049 echo $ECHO_N "(cached) $ECHO_C" >&6
6051 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6052 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6054 # Is the header compilable?
6055 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
6056 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
6057 cat >conftest.$ac_ext <<_ACEOF
6058 #line $LINENO "configure"
6061 cat confdefs.h >>conftest.$ac_ext
6062 cat >>conftest.$ac_ext <<_ACEOF
6063 /* end confdefs.h. */
6064 $ac_includes_default
6065 #include <${TOP_DIR}/depkgs/readline/readline.h>
6067 rm -f conftest.$ac_objext
6068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6069 (eval $ac_compile) 2>&5
6071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6072 (exit $ac_status); } &&
6073 { ac_try='test -s conftest.$ac_objext'
6074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078 (exit $ac_status); }; }; then
6079 ac_header_compiler=yes
6081 echo "$as_me: failed program was:" >&5
6082 sed 's/^/| /' conftest.$ac_ext >&5
6084 ac_header_compiler=no
6086 rm -f conftest.$ac_objext conftest.$ac_ext
6087 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6088 echo "${ECHO_T}$ac_header_compiler" >&6
6090 # Is the header present?
6091 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
6092 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
6093 cat >conftest.$ac_ext <<_ACEOF
6094 #line $LINENO "configure"
6097 cat confdefs.h >>conftest.$ac_ext
6098 cat >>conftest.$ac_ext <<_ACEOF
6099 /* end confdefs.h. */
6100 #include <${TOP_DIR}/depkgs/readline/readline.h>
6102 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6103 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6105 grep -v '^ *+' conftest.er1 >conftest.err
6107 cat conftest.err >&5
6108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109 (exit $ac_status); } >/dev/null; then
6110 if test -s conftest.err; then
6111 ac_cpp_err=$ac_c_preproc_warn_flag
6118 if test -z "$ac_cpp_err"; then
6119 ac_header_preproc=yes
6121 echo "$as_me: failed program was:" >&5
6122 sed 's/^/| /' conftest.$ac_ext >&5
6124 ac_header_preproc=no
6126 rm -f conftest.err conftest.$ac_ext
6127 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6128 echo "${ECHO_T}$ac_header_preproc" >&6
6130 # So? What about this header?
6131 case $ac_header_compiler:$ac_header_preproc in
6133 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6134 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6135 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
6136 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6139 ## ------------------------------------ ##
6140 ## Report this to bug-autoconf@gnu.org. ##
6141 ## ------------------------------------ ##
6144 sed "s/^/$as_me: WARNING: /" >&2
6147 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
6148 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
6149 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
6150 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
6151 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
6152 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6155 ## ------------------------------------ ##
6156 ## Report this to bug-autoconf@gnu.org. ##
6157 ## ------------------------------------ ##
6160 sed "s/^/$as_me: WARNING: /" >&2
6163 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
6164 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
6165 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6166 echo $ECHO_N "(cached) $ECHO_C" >&6
6168 eval "$as_ac_Header=$ac_header_preproc"
6170 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6171 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6174 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6175 cat >>confdefs.h <<\_ACEOF
6176 #define HAVE_READLINE 1
6180 CONS_INC="-I${TOP_DIR}/depkgs/readline"
6181 CONS_LIBS="-lreadline -lhistory -ltermcap"
6182 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
6183 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
6187 echo "readline.h not found. readline turned off ..."
6213 # Minimal stuff for readline Makefile configuration
6216 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6217 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
6218 if test "${ac_cv_header_stat_broken+set}" = set; then
6219 echo $ECHO_N "(cached) $ECHO_C" >&6
6221 cat >conftest.$ac_ext <<_ACEOF
6222 #line $LINENO "configure"
6225 cat confdefs.h >>conftest.$ac_ext
6226 cat >>conftest.$ac_ext <<_ACEOF
6227 /* end confdefs.h. */
6228 #include <sys/types.h>
6229 #include <sys/stat.h>
6231 #if defined(S_ISBLK) && defined(S_IFDIR)
6232 # if S_ISBLK (S_IFDIR)
6237 #if defined(S_ISBLK) && defined(S_IFCHR)
6238 # if S_ISBLK (S_IFCHR)
6243 #if defined(S_ISLNK) && defined(S_IFREG)
6244 # if S_ISLNK (S_IFREG)
6249 #if defined(S_ISSOCK) && defined(S_IFREG)
6250 # if S_ISSOCK (S_IFREG)
6256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6257 $EGREP "You lose" >/dev/null 2>&1; then
6258 ac_cv_header_stat_broken=yes
6260 ac_cv_header_stat_broken=no
6265 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6266 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
6267 if test $ac_cv_header_stat_broken = yes; then
6269 cat >>confdefs.h <<\_ACEOF
6270 #define STAT_MACROS_BROKEN 1
6281 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6282 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6283 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6284 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6285 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6286 echo $ECHO_N "(cached) $ECHO_C" >&6
6288 cat >conftest.$ac_ext <<_ACEOF
6289 #line $LINENO "configure"
6292 cat confdefs.h >>conftest.$ac_ext
6293 cat >>conftest.$ac_ext <<_ACEOF
6294 /* end confdefs.h. */
6295 #include <sys/types.h>
6307 rm -f conftest.$ac_objext
6308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6309 (eval $ac_compile) 2>&5
6311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6312 (exit $ac_status); } &&
6313 { ac_try='test -s conftest.$ac_objext'
6314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318 (exit $ac_status); }; }; then
6319 eval "$as_ac_Header=yes"
6321 echo "$as_me: failed program was:" >&5
6322 sed 's/^/| /' conftest.$ac_ext >&5
6324 eval "$as_ac_Header=no"
6326 rm -f conftest.$ac_objext conftest.$ac_ext
6328 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6329 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6330 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6331 cat >>confdefs.h <<_ACEOF
6332 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6335 ac_header_dirent=$ac_hdr; break
6339 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6340 if test $ac_header_dirent = dirent.h; then
6341 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6342 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6343 if test "${ac_cv_search_opendir+set}" = set; then
6344 echo $ECHO_N "(cached) $ECHO_C" >&6
6346 ac_func_search_save_LIBS=$LIBS
6347 ac_cv_search_opendir=no
6348 cat >conftest.$ac_ext <<_ACEOF
6349 #line $LINENO "configure"
6352 cat confdefs.h >>conftest.$ac_ext
6353 cat >>conftest.$ac_ext <<_ACEOF
6354 /* end confdefs.h. */
6356 /* Override any gcc2 internal prototype to avoid an error. */
6360 /* We use char because int might match the return type of a gcc2
6361 builtin and then its argument prototype would still apply. */
6371 rm -f conftest.$ac_objext conftest$ac_exeext
6372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6373 (eval $ac_link) 2>&5
6375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6376 (exit $ac_status); } &&
6377 { ac_try='test -s conftest$ac_exeext'
6378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6382 (exit $ac_status); }; }; then
6383 ac_cv_search_opendir="none required"
6385 echo "$as_me: failed program was:" >&5
6386 sed 's/^/| /' conftest.$ac_ext >&5
6389 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6390 if test "$ac_cv_search_opendir" = no; then
6391 for ac_lib in dir; do
6392 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6393 cat >conftest.$ac_ext <<_ACEOF
6394 #line $LINENO "configure"
6397 cat confdefs.h >>conftest.$ac_ext
6398 cat >>conftest.$ac_ext <<_ACEOF
6399 /* end confdefs.h. */
6401 /* Override any gcc2 internal prototype to avoid an error. */
6405 /* We use char because int might match the return type of a gcc2
6406 builtin and then its argument prototype would still apply. */
6416 rm -f conftest.$ac_objext conftest$ac_exeext
6417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6418 (eval $ac_link) 2>&5
6420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6421 (exit $ac_status); } &&
6422 { ac_try='test -s conftest$ac_exeext'
6423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6427 (exit $ac_status); }; }; then
6428 ac_cv_search_opendir="-l$ac_lib"
6431 echo "$as_me: failed program was:" >&5
6432 sed 's/^/| /' conftest.$ac_ext >&5
6435 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6438 LIBS=$ac_func_search_save_LIBS
6440 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6441 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6442 if test "$ac_cv_search_opendir" != no; then
6443 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6448 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6449 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6450 if test "${ac_cv_search_opendir+set}" = set; then
6451 echo $ECHO_N "(cached) $ECHO_C" >&6
6453 ac_func_search_save_LIBS=$LIBS
6454 ac_cv_search_opendir=no
6455 cat >conftest.$ac_ext <<_ACEOF
6456 #line $LINENO "configure"
6459 cat confdefs.h >>conftest.$ac_ext
6460 cat >>conftest.$ac_ext <<_ACEOF
6461 /* end confdefs.h. */
6463 /* Override any gcc2 internal prototype to avoid an error. */
6467 /* We use char because int might match the return type of a gcc2
6468 builtin and then its argument prototype would still apply. */
6478 rm -f conftest.$ac_objext conftest$ac_exeext
6479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6480 (eval $ac_link) 2>&5
6482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6483 (exit $ac_status); } &&
6484 { ac_try='test -s conftest$ac_exeext'
6485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489 (exit $ac_status); }; }; then
6490 ac_cv_search_opendir="none required"
6492 echo "$as_me: failed program was:" >&5
6493 sed 's/^/| /' conftest.$ac_ext >&5
6496 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6497 if test "$ac_cv_search_opendir" = no; then
6499 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6500 cat >conftest.$ac_ext <<_ACEOF
6501 #line $LINENO "configure"
6504 cat confdefs.h >>conftest.$ac_ext
6505 cat >>conftest.$ac_ext <<_ACEOF
6506 /* end confdefs.h. */
6508 /* Override any gcc2 internal prototype to avoid an error. */
6512 /* We use char because int might match the return type of a gcc2
6513 builtin and then its argument prototype would still apply. */
6523 rm -f conftest.$ac_objext conftest$ac_exeext
6524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6525 (eval $ac_link) 2>&5
6527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6528 (exit $ac_status); } &&
6529 { ac_try='test -s conftest$ac_exeext'
6530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6534 (exit $ac_status); }; }; then
6535 ac_cv_search_opendir="-l$ac_lib"
6538 echo "$as_me: failed program was:" >&5
6539 sed 's/^/| /' conftest.$ac_ext >&5
6542 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6545 LIBS=$ac_func_search_save_LIBS
6547 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6548 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6549 if test "$ac_cv_search_opendir" != no; then
6550 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6564 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
6566 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6567 echo "$as_me:$LINENO: checking for $ac_func" >&5
6568 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6569 if eval "test \"\${$as_ac_var+set}\" = set"; then
6570 echo $ECHO_N "(cached) $ECHO_C" >&6
6572 cat >conftest.$ac_ext <<_ACEOF
6573 #line $LINENO "configure"
6576 cat confdefs.h >>conftest.$ac_ext
6577 cat >>conftest.$ac_ext <<_ACEOF
6578 /* end confdefs.h. */
6579 /* System header to define __stub macros and hopefully few prototypes,
6580 which can conflict with char $ac_func (); below.
6581 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6582 <limits.h> exists even on freestanding compilers. */
6584 # include <limits.h>
6586 # include <assert.h>
6588 /* Override any gcc2 internal prototype to avoid an error. */
6593 /* We use char because int might match the return type of a gcc2
6594 builtin and then its argument prototype would still apply. */
6596 /* The GNU C library defines this for functions which it implements
6597 to always fail with ENOSYS. Some functions are actually named
6598 something starting with __ and the normal name is an alias. */
6599 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6602 char (*f) () = $ac_func;
6611 return f != $ac_func;
6616 rm -f conftest.$ac_objext conftest$ac_exeext
6617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6618 (eval $ac_link) 2>&5
6620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6621 (exit $ac_status); } &&
6622 { ac_try='test -s conftest$ac_exeext'
6623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627 (exit $ac_status); }; }; then
6628 eval "$as_ac_var=yes"
6630 echo "$as_me: failed program was:" >&5
6631 sed 's/^/| /' conftest.$ac_ext >&5
6633 eval "$as_ac_var=no"
6635 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6637 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6638 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6639 if test `eval echo '${'$as_ac_var'}'` = yes; then
6640 cat >>confdefs.h <<_ACEOF
6641 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6649 for ac_func in nanosleep nl_langinfo
6651 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6652 echo "$as_me:$LINENO: checking for $ac_func" >&5
6653 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6654 if eval "test \"\${$as_ac_var+set}\" = set"; then
6655 echo $ECHO_N "(cached) $ECHO_C" >&6
6657 cat >conftest.$ac_ext <<_ACEOF
6658 #line $LINENO "configure"
6661 cat confdefs.h >>conftest.$ac_ext
6662 cat >>conftest.$ac_ext <<_ACEOF
6663 /* end confdefs.h. */
6664 /* System header to define __stub macros and hopefully few prototypes,
6665 which can conflict with char $ac_func (); below.
6666 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6667 <limits.h> exists even on freestanding compilers. */
6669 # include <limits.h>
6671 # include <assert.h>
6673 /* Override any gcc2 internal prototype to avoid an error. */
6678 /* We use char because int might match the return type of a gcc2
6679 builtin and then its argument prototype would still apply. */
6681 /* The GNU C library defines this for functions which it implements
6682 to always fail with ENOSYS. Some functions are actually named
6683 something starting with __ and the normal name is an alias. */
6684 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6687 char (*f) () = $ac_func;
6696 return f != $ac_func;
6701 rm -f conftest.$ac_objext conftest$ac_exeext
6702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6703 (eval $ac_link) 2>&5
6705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706 (exit $ac_status); } &&
6707 { ac_try='test -s conftest$ac_exeext'
6708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712 (exit $ac_status); }; }; then
6713 eval "$as_ac_var=yes"
6715 echo "$as_me: failed program was:" >&5
6716 sed 's/^/| /' conftest.$ac_ext >&5
6718 eval "$as_ac_var=no"
6720 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6722 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6723 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6724 if test `eval echo '${'$as_ac_var'}'` = yes; then
6725 cat >>confdefs.h <<_ACEOF
6726 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6733 for ac_header in varargs.h
6735 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6736 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6737 echo "$as_me:$LINENO: checking for $ac_header" >&5
6738 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6739 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6740 echo $ECHO_N "(cached) $ECHO_C" >&6
6742 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6743 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6745 # Is the header compilable?
6746 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6747 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6748 cat >conftest.$ac_ext <<_ACEOF
6749 #line $LINENO "configure"
6752 cat confdefs.h >>conftest.$ac_ext
6753 cat >>conftest.$ac_ext <<_ACEOF
6754 /* end confdefs.h. */
6755 $ac_includes_default
6756 #include <$ac_header>
6758 rm -f conftest.$ac_objext
6759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6760 (eval $ac_compile) 2>&5
6762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763 (exit $ac_status); } &&
6764 { ac_try='test -s conftest.$ac_objext'
6765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6769 (exit $ac_status); }; }; then
6770 ac_header_compiler=yes
6772 echo "$as_me: failed program was:" >&5
6773 sed 's/^/| /' conftest.$ac_ext >&5
6775 ac_header_compiler=no
6777 rm -f conftest.$ac_objext conftest.$ac_ext
6778 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6779 echo "${ECHO_T}$ac_header_compiler" >&6
6781 # Is the header present?
6782 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6783 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6784 cat >conftest.$ac_ext <<_ACEOF
6785 #line $LINENO "configure"
6788 cat confdefs.h >>conftest.$ac_ext
6789 cat >>conftest.$ac_ext <<_ACEOF
6790 /* end confdefs.h. */
6791 #include <$ac_header>
6793 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6794 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6796 grep -v '^ *+' conftest.er1 >conftest.err
6798 cat conftest.err >&5
6799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6800 (exit $ac_status); } >/dev/null; then
6801 if test -s conftest.err; then
6802 ac_cpp_err=$ac_c_preproc_warn_flag
6809 if test -z "$ac_cpp_err"; then
6810 ac_header_preproc=yes
6812 echo "$as_me: failed program was:" >&5
6813 sed 's/^/| /' conftest.$ac_ext >&5
6815 ac_header_preproc=no
6817 rm -f conftest.err conftest.$ac_ext
6818 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6819 echo "${ECHO_T}$ac_header_preproc" >&6
6821 # So? What about this header?
6822 case $ac_header_compiler:$ac_header_preproc in
6824 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6825 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6826 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6827 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6830 ## ------------------------------------ ##
6831 ## Report this to bug-autoconf@gnu.org. ##
6832 ## ------------------------------------ ##
6835 sed "s/^/$as_me: WARNING: /" >&2
6838 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6839 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6840 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6841 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6842 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6843 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6846 ## ------------------------------------ ##
6847 ## Report this to bug-autoconf@gnu.org. ##
6848 ## ------------------------------------ ##
6851 sed "s/^/$as_me: WARNING: /" >&2
6854 echo "$as_me:$LINENO: checking for $ac_header" >&5
6855 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6856 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6857 echo $ECHO_N "(cached) $ECHO_C" >&6
6859 eval "$as_ac_Header=$ac_header_preproc"
6861 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6862 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6865 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6866 cat >>confdefs.h <<_ACEOF
6867 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6875 # End of readline/conio stuff
6876 # -----------------------------------------------------------------------
6878 # -------------------------------------------
6879 # check for cdrecord writer location
6880 # get scsibus,target,lun
6881 # -------------------------------------------
6883 if test ! x$CDRECORD = x ; then
6884 CDSTL=`${CDRECORD} -scanbus 2>/dev/null | grep CD-RW | ${AWK} '{print $1}'`
6885 if test x${CDSTL} = x ; then
6886 CDSTL=`${CDRECORD} -scanbus 2>/dev/null | grep CD+RW | ${AWK} '{print $1}'`
6888 if test x${CDSTL} = x ; then
6895 # ---------------------------------------------------
6896 # Check for GMP support/directory
6897 # ---------------------------------------------------
6901 # [ --with-gmp[=DIR] Specify gmp library directory],
6903 # case "$with_gmp" in
6906 # if test "$with_gmp" != "yes"; then
6907 # GMP_INC="-I$with_gmp"
6909 # GMP_LDFLAGS="-L$with_gmp"
6911 # with_gmp="/usr/include"
6913 # AC_CHECK_HEADER($with_gmp/gmp.h,
6914 # [ AC_MSG_RESULT(yes)
6915 # AC_DEFINE(HAVE_GMP)
6919 # [ AC_MSG_ERROR([*** gmp library missing])
6925 # # check for standard gmp library
6926 # AC_CHECK_HEADER(/usr/include/gmp.h,
6927 # [ AC_MSG_RESULT(yes)
6928 # AC_DEFINE(HAVE_GMP)
6933 # # Did not find standard library, so use our own
6934 # AC_MSG_RESULT(yes)
6935 # AC_DEFINE(HAVE_GMP)
6938 # GMP_INC="-I${TOP_DIR}/depkgs/gmp"
6940 # GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
6941 # GMP_SRC="${TOP_DIR}/depkgs/gmp"
6947 #AC_SUBST(GMP_LDFLAGS)
6951 # -----------------------------------------------------------------------
6954 # ---------------------------------------------------
6955 # Check for CWEB support/directory
6956 # ---------------------------------------------------
6961 # [ --with-cweb[=DIR] Specify cweb library directory],
6963 # case "$with_cweb" in
6966 # if test "$with_cweb" != "yes"; then
6967 # CWEB_INC="-I$with_cweb"
6968 # CWEB_LIBS="-lcweb"
6969 # CWEB_LDFLAGS="-L$with_cweb"
6971 # with_cweb="/usr/include"
6973 # AC_CHECK_HEADER($with_cweb/cweb.h,
6974 # [ AC_MSG_RESULT(yes)
6975 # AC_DEFINE(HAVE_CWEB)
6976 # CWEB_LIBS="-lcweb"
6979 # [ AC_MSG_ERROR([*** cweb library missing])
6985 # # check for standard cweb library
6986 # AC_CHECK_HEADER(/usr/include/cweb.h,
6987 # [ AC_MSG_RESULT(yes)
6988 # AC_DEFINE(HAVE_CWEB)
6991 # CWEB_LIBS="-lcweb"
6993 # # Did not find starndard library, so use our own
6994 # AC_MSG_RESULT(yes)
6995 # AC_DEFINE(HAVE_CWEB)
6998 # CWEB=${TOP_DIR}/depkgs/cweb
6999 # CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
7000 # CWEB_LIBS="-lcweb"
7001 # CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
7002 # CWEB_SRC="${TOP_DIR}/depkgs/cweb"
7008 #AC_SUBST(CWEB_LIBS)
7009 #AC_SUBST(CWEB_LDFLAGS)
7013 # -----------------------------------------------------------------------
7016 # Find where sockets are (especially for Solaris)
7017 # Do this before the TCP Wrappers test since tcp wrappers
7018 # uses the socket library and some linkers are stupid.
7020 echo "$as_me:$LINENO: checking for socket" >&5
7021 echo $ECHO_N "checking for socket... $ECHO_C" >&6
7022 if test "${ac_cv_func_socket+set}" = set; then
7023 echo $ECHO_N "(cached) $ECHO_C" >&6
7025 cat >conftest.$ac_ext <<_ACEOF
7026 #line $LINENO "configure"
7029 cat confdefs.h >>conftest.$ac_ext
7030 cat >>conftest.$ac_ext <<_ACEOF
7031 /* end confdefs.h. */
7032 /* System header to define __stub macros and hopefully few prototypes,
7033 which can conflict with char socket (); below.
7034 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7035 <limits.h> exists even on freestanding compilers. */
7037 # include <limits.h>
7039 # include <assert.h>
7041 /* Override any gcc2 internal prototype to avoid an error. */
7046 /* We use char because int might match the return type of a gcc2
7047 builtin and then its argument prototype would still apply. */
7049 /* The GNU C library defines this for functions which it implements
7050 to always fail with ENOSYS. Some functions are actually named
7051 something starting with __ and the normal name is an alias. */
7052 #if defined (__stub_socket) || defined (__stub___socket)
7055 char (*f) () = socket;
7069 rm -f conftest.$ac_objext conftest$ac_exeext
7070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7071 (eval $ac_link) 2>&5
7073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7074 (exit $ac_status); } &&
7075 { ac_try='test -s conftest$ac_exeext'
7076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080 (exit $ac_status); }; }; then
7081 ac_cv_func_socket=yes
7083 echo "$as_me: failed program was:" >&5
7084 sed 's/^/| /' conftest.$ac_ext >&5
7086 ac_cv_func_socket=no
7088 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7090 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
7091 echo "${ECHO_T}$ac_cv_func_socket" >&6
7092 if test $ac_cv_func_socket = yes; then
7093 echo "$as_me:$LINENO: result: using libc's socket" >&5
7094 echo "${ECHO_T}using libc's socket" >&6
7097 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
7098 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
7099 if test "${ac_cv_lib_xnet_socket+set}" = set; then
7100 echo $ECHO_N "(cached) $ECHO_C" >&6
7102 ac_check_lib_save_LIBS=$LIBS
7104 cat >conftest.$ac_ext <<_ACEOF
7105 #line $LINENO "configure"
7108 cat confdefs.h >>conftest.$ac_ext
7109 cat >>conftest.$ac_ext <<_ACEOF
7110 /* end confdefs.h. */
7112 /* Override any gcc2 internal prototype to avoid an error. */
7116 /* We use char because int might match the return type of a gcc2
7117 builtin and then its argument prototype would still apply. */
7127 rm -f conftest.$ac_objext conftest$ac_exeext
7128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7129 (eval $ac_link) 2>&5
7131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7132 (exit $ac_status); } &&
7133 { ac_try='test -s conftest$ac_exeext'
7134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7138 (exit $ac_status); }; }; then
7139 ac_cv_lib_xnet_socket=yes
7141 echo "$as_me: failed program was:" >&5
7142 sed 's/^/| /' conftest.$ac_ext >&5
7144 ac_cv_lib_xnet_socket=no
7146 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7147 LIBS=$ac_check_lib_save_LIBS
7149 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
7150 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
7151 if test $ac_cv_lib_xnet_socket = yes; then
7152 cat >>confdefs.h <<_ACEOF
7153 #define HAVE_LIBXNET 1
7161 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
7162 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
7163 if test "${ac_cv_lib_socket_socket+set}" = set; then
7164 echo $ECHO_N "(cached) $ECHO_C" >&6
7166 ac_check_lib_save_LIBS=$LIBS
7167 LIBS="-lsocket $LIBS"
7168 cat >conftest.$ac_ext <<_ACEOF
7169 #line $LINENO "configure"
7172 cat confdefs.h >>conftest.$ac_ext
7173 cat >>conftest.$ac_ext <<_ACEOF
7174 /* end confdefs.h. */
7176 /* Override any gcc2 internal prototype to avoid an error. */
7180 /* We use char because int might match the return type of a gcc2
7181 builtin and then its argument prototype would still apply. */
7191 rm -f conftest.$ac_objext conftest$ac_exeext
7192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7193 (eval $ac_link) 2>&5
7195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196 (exit $ac_status); } &&
7197 { ac_try='test -s conftest$ac_exeext'
7198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7202 (exit $ac_status); }; }; then
7203 ac_cv_lib_socket_socket=yes
7205 echo "$as_me: failed program was:" >&5
7206 sed 's/^/| /' conftest.$ac_ext >&5
7208 ac_cv_lib_socket_socket=no
7210 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7211 LIBS=$ac_check_lib_save_LIBS
7213 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
7214 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
7215 if test $ac_cv_lib_socket_socket = yes; then
7216 cat >>confdefs.h <<_ACEOF
7217 #define HAVE_LIBSOCKET 1
7220 LIBS="-lsocket $LIBS"
7225 echo "$as_me:$LINENO: checking for socket in -linet" >&5
7226 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
7227 if test "${ac_cv_lib_inet_socket+set}" = set; then
7228 echo $ECHO_N "(cached) $ECHO_C" >&6
7230 ac_check_lib_save_LIBS=$LIBS
7232 cat >conftest.$ac_ext <<_ACEOF
7233 #line $LINENO "configure"
7236 cat confdefs.h >>conftest.$ac_ext
7237 cat >>conftest.$ac_ext <<_ACEOF
7238 /* end confdefs.h. */
7240 /* Override any gcc2 internal prototype to avoid an error. */
7244 /* We use char because int might match the return type of a gcc2
7245 builtin and then its argument prototype would still apply. */
7255 rm -f conftest.$ac_objext conftest$ac_exeext
7256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7257 (eval $ac_link) 2>&5
7259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7260 (exit $ac_status); } &&
7261 { ac_try='test -s conftest$ac_exeext'
7262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7266 (exit $ac_status); }; }; then
7267 ac_cv_lib_inet_socket=yes
7269 echo "$as_me: failed program was:" >&5
7270 sed 's/^/| /' conftest.$ac_ext >&5
7272 ac_cv_lib_inet_socket=no
7274 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7275 LIBS=$ac_check_lib_save_LIBS
7277 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
7278 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
7279 if test $ac_cv_lib_inet_socket = yes; then
7280 cat >>confdefs.h <<_ACEOF
7281 #define HAVE_LIBINET 1
7292 # -----------------------------------------------------------
7293 # Check whether user wants TCP wrappers support (default off)
7294 # -----------------------------------------------------------
7297 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
7298 if test "${with_tcp_wrappers+set}" = set; then
7299 withval="$with_tcp_wrappers"
7301 if test "x$withval" != "xno" ; then
7303 LIBS="$saved_LIBS -lwrap"
7304 echo "$as_me:$LINENO: checking for libwrap" >&5
7305 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
7306 cat >conftest.$ac_ext <<_ACEOF
7307 #line $LINENO "configure"
7310 cat confdefs.h >>conftest.$ac_ext
7311 cat >>conftest.$ac_ext <<_ACEOF
7312 /* end confdefs.h. */
7314 int deny_severity = 0;
7315 int allow_severity = 0;
7316 struct request_info *req;
7325 rm -f conftest.$ac_objext conftest$ac_exeext
7326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7327 (eval $ac_link) 2>&5
7329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7330 (exit $ac_status); } &&
7331 { ac_try='test -s conftest$ac_exeext'
7332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7336 (exit $ac_status); }; }; then
7338 echo "$as_me:$LINENO: result: yes" >&5
7339 echo "${ECHO_T}yes" >&6
7340 cat >>confdefs.h <<\_ACEOF
7341 #define HAVE_LIBWRAP 1
7347 echo "$as_me: failed program was:" >&5
7348 sed 's/^/| /' conftest.$ac_ext >&5
7351 LIBS="$saved_LIBS -lwrap -lnsl"
7352 cat >conftest.$ac_ext <<_ACEOF
7353 #line $LINENO "configure"
7356 cat confdefs.h >>conftest.$ac_ext
7357 cat >>conftest.$ac_ext <<_ACEOF
7358 /* end confdefs.h. */
7360 int deny_severity = 0;
7361 int allow_severity = 0;
7362 struct request_info *req;
7371 rm -f conftest.$ac_objext conftest$ac_exeext
7372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7373 (eval $ac_link) 2>&5
7375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7376 (exit $ac_status); } &&
7377 { ac_try='test -s conftest$ac_exeext'
7378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7382 (exit $ac_status); }; }; then
7384 echo "$as_me:$LINENO: result: yes" >&5
7385 echo "${ECHO_T}yes" >&6
7386 cat >>confdefs.h <<\_ACEOF
7387 #define HAVE_LIBWRAP 1
7393 echo "$as_me: failed program was:" >&5
7394 sed 's/^/| /' conftest.$ac_ext >&5
7396 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
7397 echo "$as_me: error: *** libwrap missing" >&2;}
7398 { (exit 1); exit 1; }; }
7401 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7404 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7410 # ------------------------------------------
7411 # Where to place working dir
7412 # ------------------------------------------
7413 working_dir=`eval echo ${prefix}/var/bacula/working`
7415 # Check whether --with-working-dir or --without-working-dir was given.
7416 if test "${with_working_dir+set}" = set; then
7417 withval="$with_working_dir"
7419 if test "x$withval" != "xno" ; then
7420 working_dir=$withval
7429 # ------------------------------------------
7430 # Where to place scriptdir (script files)
7431 # ------------------------------------------
7432 scriptdir=`eval echo ${sysconfdir}`
7434 # Check whether --with-scriptdir or --without-scriptdir was given.
7435 if test "${with_scriptdir+set}" = set; then
7436 withval="$with_scriptdir"
7438 if test "x$withval" != "xno" ; then
7448 # ------------------------------------------
7449 # Where to send dump email
7450 # ------------------------------------------
7451 dump_email=root@localhost
7453 # Check whether --with-dump-email or --without-dump-email was given.
7454 if test "${with_dump_email+set}" = set; then
7455 withval="$with_dump_email"
7457 if test "x$withval" != "xno" ; then
7466 # ------------------------------------------
7467 # Where to send job email
7468 # ------------------------------------------
7469 job_email=root@localhost
7471 # Check whether --with-job-email or --without-job-email was given.
7472 if test "${with_job_email+set}" = set; then
7473 withval="$with_job_email"
7475 if test "x$withval" != "xno" ; then
7484 # ------------------------------------------
7485 # Where to find smtp host
7486 # ------------------------------------------
7489 # Check whether --with-smtp_host or --without-smtp_host was given.
7490 if test "${with_smtp_host+set}" = set; then
7491 withval="$with_smtp_host"
7493 if test "x$withval" != "xno" ; then
7503 # ------------------------------------
7504 # Where to place pid files
7505 # ------------------------------------
7508 # Check whether --with-pid-dir or --without-pid-dir was given.
7509 if test "${with_pid_dir+set}" = set; then
7510 withval="$with_pid_dir"
7512 if test "x$withval" != "xno" ; then
7519 cat >>confdefs.h <<_ACEOF
7520 #define _PATH_BACULA_PIDDIR "$piddir"
7526 # ------------------------------------
7527 # Where to place subsys "lock file"
7528 # ------------------------------------
7529 subsysdir=/var/run/subsys
7531 # Check whether --with-subsys-dir or --without-subsys-dir was given.
7532 if test "${with_subsys_dir+set}" = set; then
7533 withval="$with_subsys_dir"
7535 if test "x$withval" != "xno" ; then
7546 # ------------------------------------
7547 # Where to start assigning ports
7548 # ------------------------------------
7551 # Check whether --with-baseport or --without-baseport was given.
7552 if test "${with_baseport+set}" = set; then
7553 withval="$with_baseport"
7555 if test "x$withval" != "xno" ; then
7563 dir_port=`expr $baseport`
7564 fd_port=`expr $baseport + 1`
7565 sd_port=`expr $fd_port + 1`
7572 # ------------------------------------------
7573 # Generate passwords
7574 # ------------------------------------------
7577 # Check whether --with-dir-password or --without-dir-password was given.
7578 if test "${with_dir_password+set}" = set; then
7579 withval="$with_dir_password"
7581 if test "x$withval" != "xno" ; then
7582 dir_password=$withval
7588 if test "x$dir_password" = "x" ; then
7589 if test "x$OPENSSL" = "xnone" ; then
7590 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
7591 key=`autoconf/randpass 33`
7593 key=`openssl rand -base64 33`
7600 # Check whether --with-fd-password or --without-fd-password was given.
7601 if test "${with_fd_password+set}" = set; then
7602 withval="$with_fd_password"
7604 if test "x$withval" != "xno" ; then
7605 fd_password=$withval
7611 if test "x$fd_password" = "x" ; then
7612 if test "x$OPENSSL" = "xnone" ; then
7613 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
7614 key=`autoconf/randpass 37`
7616 key=`openssl rand -base64 33`
7623 # Check whether --with-sd-password or --without-sd-password was given.
7624 if test "${with_sd_password+set}" = set; then
7625 withval="$with_sd_password"
7627 if test "x$withval" != "xno" ; then
7628 sd_password=$withval
7634 if test "x$sd_password" = "x" ; then
7635 if test "x$OPENSSL" = "xnone" ; then
7636 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
7637 key=`autoconf/randpass 41`
7639 key=`openssl rand -base64 33`
7646 # Check whether --with-mon-dir-password or --without-mon-dir-password was given.
7647 if test "${with_mon_dir_password+set}" = set; then
7648 withval="$with_mon_dir_password"
7650 if test "x$withval" != "xno" ; then
7651 mon_dir_password=$withval
7657 if test "x$mon_dir_password" = "x" ; then
7658 if test "x$OPENSSL" = "xnone" ; then
7659 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
7660 key=`autoconf/randpass 33`
7662 key=`openssl rand -base64 33`
7664 mon_dir_password=$key
7669 # Check whether --with-mon-fd-password or --without-mon-fd-password was given.
7670 if test "${with_mon_fd_password+set}" = set; then
7671 withval="$with_mon_fd_password"
7673 if test "x$withval" != "xno" ; then
7674 mon_fd_password=$withval
7680 if test "x$mon_fd_password" = "x" ; then
7681 if test "x$OPENSSL" = "xnone" ; then
7682 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
7683 key=`autoconf/randpass 37`
7685 key=`openssl rand -base64 33`
7687 mon_fd_password=$key
7692 # Check whether --with-mon-sd-password or --without-mon-sd-password was given.
7693 if test "${with_mon_sd_password+set}" = set; then
7694 withval="$with_mon_sd_password"
7696 if test "x$withval" != "xno" ; then
7697 mon_sd_password=$withval
7703 if test "x$mon_sd_password" = "x" ; then
7704 if test "x$OPENSSL" = "xnone" ; then
7705 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
7706 key=`autoconf/randpass 41`
7708 key=`openssl rand -base64 33`
7710 mon_sd_password=$key
7721 # Handle users and groups for each daemon
7725 # Check whether --with-dir_user or --without-dir_user was given.
7726 if test "${with_dir_user+set}" = set; then
7727 withval="$with_dir_user"
7729 if test "x$withval" != "x" ; then
7738 # Check whether --with-dir_group or --without-dir_group was given.
7739 if test "${with_dir_group+set}" = set; then
7740 withval="$with_dir_group"
7742 if test "x$withval" != "x" ; then
7751 # Check whether --with-sd_user or --without-sd_user was given.
7752 if test "${with_sd_user+set}" = set; then
7753 withval="$with_sd_user"
7755 if test "x$withval" != "x" ; then
7764 # Check whether --with-sd_group or --without-sd_group was given.
7765 if test "${with_sd_group+set}" = set; then
7766 withval="$with_sd_group"
7768 if test "x$withval" != "x" ; then
7777 # Check whether --with-fd_user or --without-fd_user was given.
7778 if test "${with_fd_user+set}" = set; then
7779 withval="$with_fd_user"
7781 if test "x$withval" != "x" ; then
7790 # Check whether --with-fd_group or --without-fd_group was given.
7791 if test "${with_fd_group+set}" = set; then
7792 withval="$with_fd_group"
7794 if test "x$withval" != "x" ; then
7812 # allow setting default executable permissions
7816 # Check whether --with-sbin-perm or --without-sbin-perm was given.
7817 if test "${with_sbin_perm+set}" = set; then
7818 withval="$with_sbin_perm"
7820 if test "x$withval" != "x" ; then
7829 # ------------------------------------------------
7830 # Bacula check for various SQL database engines
7831 # ------------------------------------------------
7834 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
7835 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
7837 # Check whether --with-postgresql or --without-postgresql was given.
7838 if test "${with_postgresql+set}" = set; then
7839 withval="$with_postgresql"
7841 if test "$withval" != "no"; then
7842 if test "$db_found" = "yes"; then
7843 echo "$as_me:$LINENO: result: error" >&5
7844 echo "${ECHO_T}error" >&6
7845 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
7846 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
7847 { (exit 1); exit 1; }; };
7849 if test "$withval" = "yes"; then
7850 if test -f /usr/local/include/libpq-fe.h; then
7851 POSTGRESQL_INCDIR=/usr/local/include
7852 POSTGRESQL_LIBDIR=/usr/local/lib
7853 POSTGRESQL_BINDIR=/usr/local/bin
7854 elif test -f /usr/include/libpq-fe.h; then
7855 POSTGRESQL_INCDIR=/usr/include
7856 POSTGRESQL_LIBDIR=/usr/lib
7857 POSTGRESQL_BINDIR=/usr/bin
7858 elif test -f /usr/include/pgsql/libpq-fe.h; then
7859 POSTGRESQL_INCDIR=/usr/include/pgsql
7860 POSTGRESQL_LIBDIR=/usr/lib/pgsql
7861 POSTGRESQL_BINDIR=/usr/bin
7862 elif test -f /usr/include/postgresql/libpq-fe.h; then
7863 POSTGRESQL_INCDIR=/usr/include/postgresql
7864 POSTGRESQL_LIBDIR=/usr/lib/postgresql
7865 POSTGRESQL_BINDIR=/usr/bin
7867 echo "$as_me:$LINENO: result: no" >&5
7868 echo "${ECHO_T}no" >&6
7869 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
7870 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
7871 { (exit 1); exit 1; }; }
7873 elif test -f $withval/include/libpq-fe.h; then
7874 POSTGRESQL_INCDIR=$withval/include
7875 POSTGRESQL_LIBDIR=$withval/lib
7876 POSTGRESQL_BINDIR=$withval/bin
7877 elif test -f $withval/include/postgresql/libpq-fe.h; then
7878 POSTGRESQL_INCDIR=$withval/include/postgresql
7879 POSTGRESQL_LIBDIR=$withval/lib
7880 POSTGRESQL_BINDIR=$withval/bin
7882 echo "$as_me:$LINENO: result: no" >&5
7883 echo "${ECHO_T}no" >&6
7884 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
7885 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
7886 { (exit 1); exit 1; }; }
7888 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
7889 echo "$as_me:$LINENO: checking for crypt" >&5
7890 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
7891 if test "${ac_cv_func_crypt+set}" = set; then
7892 echo $ECHO_N "(cached) $ECHO_C" >&6
7894 cat >conftest.$ac_ext <<_ACEOF
7895 #line $LINENO "configure"
7898 cat confdefs.h >>conftest.$ac_ext
7899 cat >>conftest.$ac_ext <<_ACEOF
7900 /* end confdefs.h. */
7901 /* System header to define __stub macros and hopefully few prototypes,
7902 which can conflict with char crypt (); below.
7903 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7904 <limits.h> exists even on freestanding compilers. */
7906 # include <limits.h>
7908 # include <assert.h>
7910 /* Override any gcc2 internal prototype to avoid an error. */
7915 /* We use char because int might match the return type of a gcc2
7916 builtin and then its argument prototype would still apply. */
7918 /* The GNU C library defines this for functions which it implements
7919 to always fail with ENOSYS. Some functions are actually named
7920 something starting with __ and the normal name is an alias. */
7921 #if defined (__stub_crypt) || defined (__stub___crypt)
7924 char (*f) () = crypt;
7938 rm -f conftest.$ac_objext conftest$ac_exeext
7939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7940 (eval $ac_link) 2>&5
7942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7943 (exit $ac_status); } &&
7944 { ac_try='test -s conftest$ac_exeext'
7945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949 (exit $ac_status); }; }; then
7950 ac_cv_func_crypt=yes
7952 echo "$as_me: failed program was:" >&5
7953 sed 's/^/| /' conftest.$ac_ext >&5
7957 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7959 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
7960 echo "${ECHO_T}$ac_cv_func_crypt" >&6
7961 if test $ac_cv_func_crypt = yes; then
7964 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
7965 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
7966 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
7967 echo $ECHO_N "(cached) $ECHO_C" >&6
7969 ac_check_lib_save_LIBS=$LIBS
7970 LIBS="-lcrypt $LIBS"
7971 cat >conftest.$ac_ext <<_ACEOF
7972 #line $LINENO "configure"
7975 cat confdefs.h >>conftest.$ac_ext
7976 cat >>conftest.$ac_ext <<_ACEOF
7977 /* end confdefs.h. */
7979 /* Override any gcc2 internal prototype to avoid an error. */
7983 /* We use char because int might match the return type of a gcc2
7984 builtin and then its argument prototype would still apply. */
7994 rm -f conftest.$ac_objext conftest$ac_exeext
7995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7996 (eval $ac_link) 2>&5
7998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7999 (exit $ac_status); } &&
8000 { ac_try='test -s conftest$ac_exeext'
8001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8005 (exit $ac_status); }; }; then
8006 ac_cv_lib_crypt_crypt=yes
8008 echo "$as_me: failed program was:" >&5
8009 sed 's/^/| /' conftest.$ac_ext >&5
8011 ac_cv_lib_crypt_crypt=no
8013 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8014 LIBS=$ac_check_lib_save_LIBS
8016 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
8017 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
8018 if test $ac_cv_lib_crypt_crypt = yes; then
8019 POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
8024 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
8025 SQL_LFLAGS=$POSTGRESQL_LFLAGS
8026 SQL_BINDIR=$POSTGRESQL_BINDIR
8027 cat >>confdefs.h <<\_ACEOF
8028 #define HAVE_POSTGRESQL 1
8031 echo "$as_me:$LINENO: result: yes" >&5
8032 echo "${ECHO_T}yes" >&6
8034 support_postgresql=yes
8038 echo "$as_me:$LINENO: result: no" >&5
8039 echo "${ECHO_T}no" >&6
8044 echo "$as_me:$LINENO: result: no" >&5
8045 echo "${ECHO_T}no" >&6
8056 echo "$as_me:$LINENO: checking for MySQL support" >&5
8057 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
8059 # Check whether --with-mysql or --without-mysql was given.
8060 if test "${with_mysql+set}" = set; then
8061 withval="$with_mysql"
8063 if test "$withval" != "no"; then
8064 if test "$withval" = "yes"; then
8065 if test -f /usr/local/mysql/include/mysql/mysql.h; then
8066 MYSQL_INCDIR=/usr/local/mysql/include/mysql
8067 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
8068 MYSQL_BINDIR=/usr/local/mysql/bin
8069 elif test -f /usr/include/mysql/mysql.h; then
8070 MYSQL_INCDIR=/usr/include/mysql
8071 MYSQL_LIBDIR=/usr/lib/mysql
8072 MYSQL_BINDIR=/usr/bin
8073 elif test -f /usr/include/mysql.h; then
8074 MYSQL_INCDIR=/usr/include
8075 MYSQL_LIBDIR=/usr/lib
8076 MYSQL_BINDIR=/usr/bin
8077 elif test -f /usr/local/include/mysql/mysql.h; then
8078 MYSQL_INCDIR=/usr/local/include/mysql
8079 MYSQL_LIBDIR=/usr/local/lib/mysql
8080 MYSQL_BINDIR=/usr/local/bin
8081 elif test -f /usr/local/include/mysql.h; then
8082 MYSQL_INCDIR=/usr/local/include
8083 MYSQL_LIBDIR=/usr/local/lib
8084 MYSQL_BINDIR=/usr/local/bin
8086 echo "$as_me:$LINENO: result: no" >&5
8087 echo "${ECHO_T}no" >&6
8088 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
8089 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
8090 { (exit 1); exit 1; }; }
8093 if test -f $withval/include/mysql/mysql.h; then
8094 MYSQL_INCDIR=$withval/include/mysql
8095 MYSQL_LIBDIR=$withval/lib/mysql
8096 MYSQL_BINDIR=$withval/bin
8097 elif test -f $withval/include/mysql.h; then
8098 MYSQL_INCDIR=$withval/include
8099 MYSQL_LIBDIR=$withval/lib
8100 MYSQL_BINDIR=$withval/bin
8102 echo "$as_me:$LINENO: result: no" >&5
8103 echo "${ECHO_T}no" >&6
8104 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
8105 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
8106 { (exit 1); exit 1; }; }
8109 SQL_INCLUDE=-I$MYSQL_INCDIR
8110 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
8111 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
8112 cat >>confdefs.h <<\_ACEOF
8113 #define HAVE_THREAD_SAFE_MYSQL 1
8117 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
8119 SQL_BINDIR=$MYSQL_BINDIR
8121 cat >>confdefs.h <<\_ACEOF
8122 #define HAVE_MYSQL 1
8125 echo "$as_me:$LINENO: result: yes" >&5
8126 echo "${ECHO_T}yes" >&6
8133 echo "$as_me:$LINENO: result: no" >&5
8134 echo "${ECHO_T}no" >&6
8141 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
8142 if test "${with_embedded_mysql+set}" = set; then
8143 withval="$with_embedded_mysql"
8145 if test "$withval" != "no"; then
8146 if test "$withval" = "yes"; then
8147 if test -f /usr/local/mysql/include/mysql/mysql.h; then
8148 MYSQL_INCDIR=/usr/local/mysql/include/mysql
8149 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
8150 MYSQL_BINDIR=/usr/local/mysql/bin
8151 elif test -f /usr/include/mysql/mysql.h; then
8152 MYSQL_INCDIR=/usr/include/mysql
8153 MYSQL_LIBDIR=/usr/lib/mysql
8154 MYSQL_BINDIR=/usr/bin
8155 elif test -f /usr/include/mysql.h; then
8156 MYSQL_INCDIR=/usr/include
8157 MYSQL_LIBDIR=/usr/lib
8158 MYSQL_BINDIR=/usr/bin
8159 elif test -f /usr/local/include/mysql/mysql.h; then
8160 MYSQL_INCDIR=/usr/local/include/mysql
8161 MYSQL_LIBDIR=/usr/local/lib/mysql
8162 MYSQL_BINDIR=/usr/local/bin
8163 elif test -f /usr/local/include/mysql.h; then
8164 MYSQL_INCDIR=/usr/local/include
8165 MYSQL_LIBDIR=/usr/local/lib
8166 MYSQL_BINDIR=/usr/local/bin
8168 echo "$as_me:$LINENO: result: no" >&5
8169 echo "${ECHO_T}no" >&6
8170 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
8171 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
8172 { (exit 1); exit 1; }; }
8175 if test -f $withval/include/mysql/mysql.h; then
8176 MYSQL_INCDIR=$withval/include/mysql
8177 MYSQL_LIBDIR=$withval/lib/mysql
8178 MYSQL_BINDIR=$withval/bin
8179 elif test -f $withval/include/mysql.h; then
8180 MYSQL_INCDIR=$withval/include
8181 MYSQL_LIBDIR=$withval/lib
8182 MYSQL_BINDIR=$withval/bin
8184 echo "$as_me:$LINENO: result: no" >&5
8185 echo "${ECHO_T}no" >&6
8186 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
8187 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
8188 { (exit 1); exit 1; }; }
8191 SQL_INCLUDE=-I$MYSQL_INCDIR
8192 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
8193 SQL_BINDIR=$MYSQL_BINDIR
8195 cat >>confdefs.h <<\_ACEOF
8196 #define HAVE_MYSQL 1
8199 cat >>confdefs.h <<\_ACEOF
8200 #define HAVE_EMBEDDED_MYSQL 1
8203 echo "$as_me:$LINENO: result: yes" >&5
8204 echo "${ECHO_T}yes" >&6
8211 echo "$as_me:$LINENO: result: no" >&5
8212 echo "${ECHO_T}no" >&6
8227 echo "$as_me:$LINENO: checking for SQLite support" >&5
8228 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
8230 # Check whether --with-sqlite or --without-sqlite was given.
8231 if test "${with_sqlite+set}" = set; then
8232 withval="$with_sqlite"
8234 if test "$withval" != "no"; then
8235 if test "$withval" = "yes"; then
8236 if test -f /usr/local/include/sqlite.h; then
8237 SQLITE_INCDIR=/usr/local/include
8238 SQLITE_LIBDIR=/usr/local/lib
8239 SQLITE_BINDIR=/usr/local/bin
8240 elif test -f /usr/include/sqlite.h; then
8241 SQLITE_INCDIR=/usr/include
8242 SQLITE_LIBDIR=/usr/lib
8243 SQLITE_BINDIR=/usr/bin
8244 elif test -f $prefix/include/sqlite.h; then
8245 SQLITE_INCDIR=$prefix/include
8246 SQLITE_LIBDIR=$prefix/lib
8247 SQLITE_BINDIR=$prefix/bin
8249 echo "$as_me:$LINENO: result: no" >&5
8250 echo "${ECHO_T}no" >&6
8251 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
8252 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
8253 { (exit 1); exit 1; }; }
8256 if test -f $withval/sqlite.h; then
8257 SQLITE_INCDIR=$withval
8258 SQLITE_LIBDIR=$withval
8259 SQLITE_BINDIR=$withval
8260 elif test -f $withval/include/sqlite.h; then
8261 SQLITE_INCDIR=$withval/include
8262 SQLITE_LIBDIR=$withval/lib
8263 SQLITE_BINDIR=$withval/bin
8265 echo "$as_me:$LINENO: result: no" >&5
8266 echo "${ECHO_T}no" >&6
8267 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
8268 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
8269 { (exit 1); exit 1; }; }
8272 SQL_INCLUDE=-I$SQLITE_INCDIR
8273 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
8274 SQL_BINDIR=$SQLITE_BINDIR
8276 cat >>confdefs.h <<\_ACEOF
8277 #define HAVE_SQLITE 1
8280 echo "$as_me:$LINENO: result: yes" >&5
8281 echo "${ECHO_T}yes" >&6
8288 echo "$as_me:$LINENO: result: no" >&5
8289 echo "${ECHO_T}no" >&6
8294 echo "$as_me:$LINENO: result: no" >&5
8295 echo "${ECHO_T}no" >&6
8307 cat >>confdefs.h <<\_ACEOF
8308 #define PROTOTYPES 1
8312 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
8313 if test -z "$CCOPTS"; then
8314 CCOPTS='-g -O2 -Wall'
8322 largefile_support="no"
8324 # Check whether --enable-largefile or --disable-largefile was given.
8325 if test "${enable_largefile+set}" = set; then
8326 enableval="$enable_largefile"
8329 if test "$enable_largefile" != no; then
8330 if test -n "$ac_tool_prefix"; then
8331 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
8332 set dummy ${ac_tool_prefix}getconf; ac_word=$2
8333 echo "$as_me:$LINENO: checking for $ac_word" >&5
8334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8335 if test "${ac_cv_prog_GETCONF+set}" = set; then
8336 echo $ECHO_N "(cached) $ECHO_C" >&6
8338 if test -n "$GETCONF"; then
8339 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
8341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8345 test -z "$as_dir" && as_dir=.
8346 for ac_exec_ext in '' $ac_executable_extensions; do
8347 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8348 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
8349 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8357 GETCONF=$ac_cv_prog_GETCONF
8358 if test -n "$GETCONF"; then
8359 echo "$as_me:$LINENO: result: $GETCONF" >&5
8360 echo "${ECHO_T}$GETCONF" >&6
8362 echo "$as_me:$LINENO: result: no" >&5
8363 echo "${ECHO_T}no" >&6
8367 if test -z "$ac_cv_prog_GETCONF"; then
8368 ac_ct_GETCONF=$GETCONF
8369 # Extract the first word of "getconf", so it can be a program name with args.
8370 set dummy getconf; ac_word=$2
8371 echo "$as_me:$LINENO: checking for $ac_word" >&5
8372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8373 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
8374 echo $ECHO_N "(cached) $ECHO_C" >&6
8376 if test -n "$ac_ct_GETCONF"; then
8377 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
8379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8383 test -z "$as_dir" && as_dir=.
8384 for ac_exec_ext in '' $ac_executable_extensions; do
8385 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8386 ac_cv_prog_ac_ct_GETCONF="getconf"
8387 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8395 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
8396 if test -n "$ac_ct_GETCONF"; then
8397 echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
8398 echo "${ECHO_T}$ac_ct_GETCONF" >&6
8400 echo "$as_me:$LINENO: result: no" >&5
8401 echo "${ECHO_T}no" >&6
8404 GETCONF=$ac_ct_GETCONF
8406 GETCONF="$ac_cv_prog_GETCONF"
8409 echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
8410 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
8411 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
8412 echo $ECHO_N "(cached) $ECHO_C" >&6
8414 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
8415 ac_cv_sys_largefile_CFLAGS=no
8417 # IRIX 6.2 and later require cc -n32.
8418 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
8419 if test "$GCC" != yes; then
8420 ac_cv_sys_largefile_CFLAGS=-n32
8423 CC="$CC $ac_cv_sys_largefile_CFLAGS"
8424 cat >conftest.$ac_ext <<_ACEOF
8425 #line $LINENO "configure"
8428 cat confdefs.h >>conftest.$ac_ext
8429 cat >>conftest.$ac_ext <<_ACEOF
8430 /* end confdefs.h. */
8440 rm -f conftest.$ac_objext conftest$ac_exeext
8441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8442 (eval $ac_link) 2>&5
8444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8445 (exit $ac_status); } &&
8446 { ac_try='test -s conftest$ac_exeext'
8447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451 (exit $ac_status); }; }; then
8454 echo "$as_me: failed program was:" >&5
8455 sed 's/^/| /' conftest.$ac_ext >&5
8457 ac_cv_sys_largefile_CFLAGS=no
8459 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8464 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
8465 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
8466 echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
8467 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
8468 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
8469 echo $ECHO_N "(cached) $ECHO_C" >&6
8471 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
8472 ac_cv_sys_largefile_LDFLAGS=no
8476 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
8477 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
8478 echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
8479 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
8480 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
8481 echo $ECHO_N "(cached) $ECHO_C" >&6
8483 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
8484 ac_cv_sys_largefile_LIBS=no
8488 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
8489 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
8491 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
8494 -D_FILE_OFFSET_BITS=*) ;;
8495 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
8496 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
8502 '') CPPFLAGS="$ac_flag" ;;
8503 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
8511 '') CFLAGS="$ac_flag" ;;
8512 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
8517 case "$ac_cv_sys_largefile_LDFLAGS" in
8521 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
8522 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
8525 case "$ac_cv_sys_largefile_LIBS" in
8529 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
8530 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
8533 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
8534 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
8535 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
8536 echo $ECHO_N "(cached) $ECHO_C" >&6
8538 ac_cv_sys_file_offset_bits=no
8539 ac_cv_sys_file_offset_bits=64
8540 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
8542 -D_FILE_OFFSET_BITS)
8543 ac_cv_sys_file_offset_bits=1 ;;
8544 -D_FILE_OFFSET_BITS=*)
8545 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
8550 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
8551 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
8552 if test "$ac_cv_sys_file_offset_bits" != no; then
8554 cat >>confdefs.h <<_ACEOF
8555 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8559 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
8560 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
8561 if test "${ac_cv_sys_largefile_source+set}" = set; then
8562 echo $ECHO_N "(cached) $ECHO_C" >&6
8564 ac_cv_sys_largefile_source=no
8565 ac_cv_sys_largefile_source=1
8566 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
8568 -D_LARGEFILE_SOURCE)
8569 ac_cv_sys_largefile_source=1 ;;
8570 -D_LARGEFILE_SOURCE=*)
8571 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
8576 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
8577 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
8578 if test "$ac_cv_sys_largefile_source" != no; then
8580 cat >>confdefs.h <<_ACEOF
8581 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
8585 echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
8586 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
8587 if test "${ac_cv_sys_large_files+set}" = set; then
8588 echo $ECHO_N "(cached) $ECHO_C" >&6
8590 ac_cv_sys_large_files=no
8591 ac_cv_sys_large_files=1
8592 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
8595 ac_cv_sys_large_files=1 ;;
8597 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
8602 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
8603 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
8604 if test "$ac_cv_sys_large_files" != no; then
8606 cat >>confdefs.h <<_ACEOF
8607 #define _LARGE_FILES $ac_cv_sys_large_files
8615 echo "$as_me:$LINENO: checking for X" >&5
8616 echo $ECHO_N "checking for X... $ECHO_C" >&6
8619 # Check whether --with-x or --without-x was given.
8620 if test "${with_x+set}" = set; then
8624 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8625 if test "x$with_x" = xno; then
8626 # The user explicitly disabled X.
8629 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8630 # Both variables are already set.
8633 if test "${ac_cv_have_x+set}" = set; then
8634 echo $ECHO_N "(cached) $ECHO_C" >&6
8636 # One or both of the vars are not set, and there is no cached value.
8637 ac_x_includes=no ac_x_libraries=no
8639 if mkdir conftest.dir; then
8641 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8642 cat >Imakefile <<'_ACEOF'
8644 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8646 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8647 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8648 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8649 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8650 for ac_extension in a so sl; do
8651 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8652 test -f $ac_im_libdir/libX11.$ac_extension; then
8653 ac_im_usrlibdir=$ac_im_libdir; break
8656 # Screen out bogus values from the imake configuration. They are
8657 # bogus both because they are the default anyway, and because
8658 # using them would break gcc on systems where it needs fixed includes.
8659 case $ac_im_incroot in
8661 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8663 case $ac_im_usrlibdir in
8665 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8672 # Standard set of common directories for X headers.
8673 # Check X11 before X11Rn because it is often a symlink to the current release.
8685 /usr/local/X11/include
8686 /usr/local/X11R6/include
8687 /usr/local/X11R5/include
8688 /usr/local/X11R4/include
8690 /usr/local/include/X11
8691 /usr/local/include/X11R6
8692 /usr/local/include/X11R5
8693 /usr/local/include/X11R4
8697 /usr/XFree86/include/X11
8701 /usr/unsupported/include
8703 /usr/local/x11r5/include
8704 /usr/lpp/Xamples/include
8706 /usr/openwin/include
8707 /usr/openwin/share/include'
8709 if test "$ac_x_includes" = no; then
8710 # Guess where to find include files, by looking for Intrinsic.h.
8711 # First, try using that file with no special directory specified.
8712 cat >conftest.$ac_ext <<_ACEOF
8713 #line $LINENO "configure"
8716 cat confdefs.h >>conftest.$ac_ext
8717 cat >>conftest.$ac_ext <<_ACEOF
8718 /* end confdefs.h. */
8719 #include <X11/Intrinsic.h>
8721 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8722 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8724 grep -v '^ *+' conftest.er1 >conftest.err
8726 cat conftest.err >&5
8727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8728 (exit $ac_status); } >/dev/null; then
8729 if test -s conftest.err; then
8730 ac_cpp_err=$ac_c_preproc_warn_flag
8737 if test -z "$ac_cpp_err"; then
8738 # We can compile using X headers with no special include directory.
8741 echo "$as_me: failed program was:" >&5
8742 sed 's/^/| /' conftest.$ac_ext >&5
8744 for ac_dir in $ac_x_header_dirs; do
8745 if test -r "$ac_dir/X11/Intrinsic.h"; then
8746 ac_x_includes=$ac_dir
8751 rm -f conftest.err conftest.$ac_ext
8752 fi # $ac_x_includes = no
8754 if test "$ac_x_libraries" = no; then
8755 # Check for the libraries.
8756 # See if we find them without any special options.
8757 # Don't add to $LIBS permanently.
8760 cat >conftest.$ac_ext <<_ACEOF
8761 #line $LINENO "configure"
8764 cat confdefs.h >>conftest.$ac_ext
8765 cat >>conftest.$ac_ext <<_ACEOF
8766 /* end confdefs.h. */
8767 #include <X11/Intrinsic.h>
8776 rm -f conftest.$ac_objext conftest$ac_exeext
8777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8778 (eval $ac_link) 2>&5
8780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8781 (exit $ac_status); } &&
8782 { ac_try='test -s conftest$ac_exeext'
8783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8787 (exit $ac_status); }; }; then
8789 # We can link X programs with no special library path.
8792 echo "$as_me: failed program was:" >&5
8793 sed 's/^/| /' conftest.$ac_ext >&5
8796 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8798 # Don't even attempt the hair of trying to link an X program!
8799 for ac_extension in a so sl; do
8800 if test -r $ac_dir/libXt.$ac_extension; then
8801 ac_x_libraries=$ac_dir
8807 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8808 fi # $ac_x_libraries = no
8810 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8811 # Didn't find X anywhere. Cache the known absence of X.
8812 ac_cv_have_x="have_x=no"
8814 # Record where we found X for the cache.
8815 ac_cv_have_x="have_x=yes \
8816 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8821 eval "$ac_cv_have_x"
8824 if test "$have_x" != yes; then
8825 echo "$as_me:$LINENO: result: $have_x" >&5
8826 echo "${ECHO_T}$have_x" >&6
8829 # If each of the values was on the command line, it overrides each guess.
8830 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8831 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8832 # Update the cache value to reflect the command line values.
8833 ac_cv_have_x="have_x=yes \
8834 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8835 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8836 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8839 if test "$no_x" = yes; then
8840 # Not all programs may use this symbol, but it does not hurt to define it.
8842 cat >>confdefs.h <<\_ACEOF
8843 #define X_DISPLAY_MISSING 1
8846 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8848 if test -n "$x_includes"; then
8849 X_CFLAGS="$X_CFLAGS -I$x_includes"
8852 # It would also be nice to do this for all -L options, not just this one.
8853 if test -n "$x_libraries"; then
8854 X_LIBS="$X_LIBS -L$x_libraries"
8855 # For Solaris; some versions of Sun CC require a space after -R and
8856 # others require no space. Words are not sufficient . . . .
8857 case `(uname -sr) 2>/dev/null` in
8859 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
8860 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
8861 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8862 cat >conftest.$ac_ext <<_ACEOF
8863 #line $LINENO "configure"
8866 cat confdefs.h >>conftest.$ac_ext
8867 cat >>conftest.$ac_ext <<_ACEOF
8868 /* end confdefs.h. */
8878 rm -f conftest.$ac_objext conftest$ac_exeext
8879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8880 (eval $ac_link) 2>&5
8882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8883 (exit $ac_status); } &&
8884 { ac_try='test -s conftest$ac_exeext'
8885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8889 (exit $ac_status); }; }; then
8892 echo "$as_me: failed program was:" >&5
8893 sed 's/^/| /' conftest.$ac_ext >&5
8897 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8898 if test $ac_R_nospace = yes; then
8899 echo "$as_me:$LINENO: result: no" >&5
8900 echo "${ECHO_T}no" >&6
8901 X_LIBS="$X_LIBS -R$x_libraries"
8903 LIBS="$ac_xsave_LIBS -R $x_libraries"
8904 cat >conftest.$ac_ext <<_ACEOF
8905 #line $LINENO "configure"
8908 cat confdefs.h >>conftest.$ac_ext
8909 cat >>conftest.$ac_ext <<_ACEOF
8910 /* end confdefs.h. */
8920 rm -f conftest.$ac_objext conftest$ac_exeext
8921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8922 (eval $ac_link) 2>&5
8924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8925 (exit $ac_status); } &&
8926 { ac_try='test -s conftest$ac_exeext'
8927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8931 (exit $ac_status); }; }; then
8934 echo "$as_me: failed program was:" >&5
8935 sed 's/^/| /' conftest.$ac_ext >&5
8939 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8940 if test $ac_R_space = yes; then
8941 echo "$as_me:$LINENO: result: yes" >&5
8942 echo "${ECHO_T}yes" >&6
8943 X_LIBS="$X_LIBS -R $x_libraries"
8945 echo "$as_me:$LINENO: result: neither works" >&5
8946 echo "${ECHO_T}neither works" >&6
8953 # Check for system-dependent libraries X programs must link with.
8954 # Do this before checking for the system-independent R6 libraries
8955 # (-lICE), since we may need -lsocket or whatever for X linking.
8957 if test "$ISC" = yes; then
8958 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8960 # Martyn Johnson says this is needed for Ultrix, if the X
8961 # libraries were built with DECnet support. And Karl Berry says
8962 # the Alpha needs dnet_stub (dnet does not exist).
8963 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8964 cat >conftest.$ac_ext <<_ACEOF
8965 #line $LINENO "configure"
8968 cat confdefs.h >>conftest.$ac_ext
8969 cat >>conftest.$ac_ext <<_ACEOF
8970 /* end confdefs.h. */
8972 /* Override any gcc2 internal prototype to avoid an error. */
8976 /* We use char because int might match the return type of a gcc2
8977 builtin and then its argument prototype would still apply. */
8978 char XOpenDisplay ();
8987 rm -f conftest.$ac_objext conftest$ac_exeext
8988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8989 (eval $ac_link) 2>&5
8991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8992 (exit $ac_status); } &&
8993 { ac_try='test -s conftest$ac_exeext'
8994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8998 (exit $ac_status); }; }; then
9001 echo "$as_me: failed program was:" >&5
9002 sed 's/^/| /' conftest.$ac_ext >&5
9004 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9005 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9006 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9007 echo $ECHO_N "(cached) $ECHO_C" >&6
9009 ac_check_lib_save_LIBS=$LIBS
9011 cat >conftest.$ac_ext <<_ACEOF
9012 #line $LINENO "configure"
9015 cat confdefs.h >>conftest.$ac_ext
9016 cat >>conftest.$ac_ext <<_ACEOF
9017 /* end confdefs.h. */
9019 /* Override any gcc2 internal prototype to avoid an error. */
9023 /* We use char because int might match the return type of a gcc2
9024 builtin and then its argument prototype would still apply. */
9034 rm -f conftest.$ac_objext conftest$ac_exeext
9035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9036 (eval $ac_link) 2>&5
9038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9039 (exit $ac_status); } &&
9040 { ac_try='test -s conftest$ac_exeext'
9041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9045 (exit $ac_status); }; }; then
9046 ac_cv_lib_dnet_dnet_ntoa=yes
9048 echo "$as_me: failed program was:" >&5
9049 sed 's/^/| /' conftest.$ac_ext >&5
9051 ac_cv_lib_dnet_dnet_ntoa=no
9053 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9054 LIBS=$ac_check_lib_save_LIBS
9056 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9057 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9058 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9059 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
9062 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
9063 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
9064 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
9065 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
9066 echo $ECHO_N "(cached) $ECHO_C" >&6
9068 ac_check_lib_save_LIBS=$LIBS
9069 LIBS="-ldnet_stub $LIBS"
9070 cat >conftest.$ac_ext <<_ACEOF
9071 #line $LINENO "configure"
9074 cat confdefs.h >>conftest.$ac_ext
9075 cat >>conftest.$ac_ext <<_ACEOF
9076 /* end confdefs.h. */
9078 /* Override any gcc2 internal prototype to avoid an error. */
9082 /* We use char because int might match the return type of a gcc2
9083 builtin and then its argument prototype would still apply. */
9093 rm -f conftest.$ac_objext conftest$ac_exeext
9094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9095 (eval $ac_link) 2>&5
9097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9098 (exit $ac_status); } &&
9099 { ac_try='test -s conftest$ac_exeext'
9100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9104 (exit $ac_status); }; }; then
9105 ac_cv_lib_dnet_stub_dnet_ntoa=yes
9107 echo "$as_me: failed program was:" >&5
9108 sed 's/^/| /' conftest.$ac_ext >&5
9110 ac_cv_lib_dnet_stub_dnet_ntoa=no
9112 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9113 LIBS=$ac_check_lib_save_LIBS
9115 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
9116 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
9117 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
9118 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
9123 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9124 LIBS="$ac_xsave_LIBS"
9126 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
9127 # to get the SysV transport functions.
9128 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
9130 # The nsl library prevents programs from opening the X display
9131 # on Irix 5.2, according to T.E. Dickey.
9132 # The functions gethostbyname, getservbyname, and inet_addr are
9133 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
9134 echo "$as_me:$LINENO: checking for gethostbyname" >&5
9135 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
9136 if test "${ac_cv_func_gethostbyname+set}" = set; then
9137 echo $ECHO_N "(cached) $ECHO_C" >&6
9139 cat >conftest.$ac_ext <<_ACEOF
9140 #line $LINENO "configure"
9143 cat confdefs.h >>conftest.$ac_ext
9144 cat >>conftest.$ac_ext <<_ACEOF
9145 /* end confdefs.h. */
9146 /* System header to define __stub macros and hopefully few prototypes,
9147 which can conflict with char gethostbyname (); below.
9148 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9149 <limits.h> exists even on freestanding compilers. */
9151 # include <limits.h>
9153 # include <assert.h>
9155 /* Override any gcc2 internal prototype to avoid an error. */
9160 /* We use char because int might match the return type of a gcc2
9161 builtin and then its argument prototype would still apply. */
9162 char gethostbyname ();
9163 /* The GNU C library defines this for functions which it implements
9164 to always fail with ENOSYS. Some functions are actually named
9165 something starting with __ and the normal name is an alias. */
9166 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
9169 char (*f) () = gethostbyname;
9178 return f != gethostbyname;
9183 rm -f conftest.$ac_objext conftest$ac_exeext
9184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9185 (eval $ac_link) 2>&5
9187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9188 (exit $ac_status); } &&
9189 { ac_try='test -s conftest$ac_exeext'
9190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9194 (exit $ac_status); }; }; then
9195 ac_cv_func_gethostbyname=yes
9197 echo "$as_me: failed program was:" >&5
9198 sed 's/^/| /' conftest.$ac_ext >&5
9200 ac_cv_func_gethostbyname=no
9202 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9204 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
9205 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
9207 if test $ac_cv_func_gethostbyname = no; then
9208 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
9209 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
9210 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
9211 echo $ECHO_N "(cached) $ECHO_C" >&6
9213 ac_check_lib_save_LIBS=$LIBS
9215 cat >conftest.$ac_ext <<_ACEOF
9216 #line $LINENO "configure"
9219 cat confdefs.h >>conftest.$ac_ext
9220 cat >>conftest.$ac_ext <<_ACEOF
9221 /* end confdefs.h. */
9223 /* Override any gcc2 internal prototype to avoid an error. */
9227 /* We use char because int might match the return type of a gcc2
9228 builtin and then its argument prototype would still apply. */
9229 char gethostbyname ();
9238 rm -f conftest.$ac_objext conftest$ac_exeext
9239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9240 (eval $ac_link) 2>&5
9242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9243 (exit $ac_status); } &&
9244 { ac_try='test -s conftest$ac_exeext'
9245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9249 (exit $ac_status); }; }; then
9250 ac_cv_lib_nsl_gethostbyname=yes
9252 echo "$as_me: failed program was:" >&5
9253 sed 's/^/| /' conftest.$ac_ext >&5
9255 ac_cv_lib_nsl_gethostbyname=no
9257 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9258 LIBS=$ac_check_lib_save_LIBS
9260 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
9261 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
9262 if test $ac_cv_lib_nsl_gethostbyname = yes; then
9263 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
9266 if test $ac_cv_lib_nsl_gethostbyname = no; then
9267 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
9268 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
9269 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
9270 echo $ECHO_N "(cached) $ECHO_C" >&6
9272 ac_check_lib_save_LIBS=$LIBS
9274 cat >conftest.$ac_ext <<_ACEOF
9275 #line $LINENO "configure"
9278 cat confdefs.h >>conftest.$ac_ext
9279 cat >>conftest.$ac_ext <<_ACEOF
9280 /* end confdefs.h. */
9282 /* Override any gcc2 internal prototype to avoid an error. */
9286 /* We use char because int might match the return type of a gcc2
9287 builtin and then its argument prototype would still apply. */
9288 char gethostbyname ();
9297 rm -f conftest.$ac_objext conftest$ac_exeext
9298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9299 (eval $ac_link) 2>&5
9301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9302 (exit $ac_status); } &&
9303 { ac_try='test -s conftest$ac_exeext'
9304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9308 (exit $ac_status); }; }; then
9309 ac_cv_lib_bsd_gethostbyname=yes
9311 echo "$as_me: failed program was:" >&5
9312 sed 's/^/| /' conftest.$ac_ext >&5
9314 ac_cv_lib_bsd_gethostbyname=no
9316 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9317 LIBS=$ac_check_lib_save_LIBS
9319 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
9320 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
9321 if test $ac_cv_lib_bsd_gethostbyname = yes; then
9322 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
9328 # lieder@skyler.mavd.honeywell.com says without -lsocket,
9329 # socket/setsockopt and other routines are undefined under SCO ODT
9330 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
9331 # on later versions), says Simon Leinen: it contains gethostby*
9332 # variants that don't use the name server (or something). -lsocket
9333 # must be given before -lnsl if both are needed. We assume that
9334 # if connect needs -lnsl, so does gethostbyname.
9335 echo "$as_me:$LINENO: checking for connect" >&5
9336 echo $ECHO_N "checking for connect... $ECHO_C" >&6
9337 if test "${ac_cv_func_connect+set}" = set; then
9338 echo $ECHO_N "(cached) $ECHO_C" >&6
9340 cat >conftest.$ac_ext <<_ACEOF
9341 #line $LINENO "configure"
9344 cat confdefs.h >>conftest.$ac_ext
9345 cat >>conftest.$ac_ext <<_ACEOF
9346 /* end confdefs.h. */
9347 /* System header to define __stub macros and hopefully few prototypes,
9348 which can conflict with char connect (); below.
9349 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9350 <limits.h> exists even on freestanding compilers. */
9352 # include <limits.h>
9354 # include <assert.h>
9356 /* Override any gcc2 internal prototype to avoid an error. */
9361 /* We use char because int might match the return type of a gcc2
9362 builtin and then its argument prototype would still apply. */
9364 /* The GNU C library defines this for functions which it implements
9365 to always fail with ENOSYS. Some functions are actually named
9366 something starting with __ and the normal name is an alias. */
9367 #if defined (__stub_connect) || defined (__stub___connect)
9370 char (*f) () = connect;
9379 return f != connect;
9384 rm -f conftest.$ac_objext conftest$ac_exeext
9385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9386 (eval $ac_link) 2>&5
9388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9389 (exit $ac_status); } &&
9390 { ac_try='test -s conftest$ac_exeext'
9391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9395 (exit $ac_status); }; }; then
9396 ac_cv_func_connect=yes
9398 echo "$as_me: failed program was:" >&5
9399 sed 's/^/| /' conftest.$ac_ext >&5
9401 ac_cv_func_connect=no
9403 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9405 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
9406 echo "${ECHO_T}$ac_cv_func_connect" >&6
9408 if test $ac_cv_func_connect = no; then
9409 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
9410 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
9411 if test "${ac_cv_lib_socket_connect+set}" = set; then
9412 echo $ECHO_N "(cached) $ECHO_C" >&6
9414 ac_check_lib_save_LIBS=$LIBS
9415 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
9416 cat >conftest.$ac_ext <<_ACEOF
9417 #line $LINENO "configure"
9420 cat confdefs.h >>conftest.$ac_ext
9421 cat >>conftest.$ac_ext <<_ACEOF
9422 /* end confdefs.h. */
9424 /* Override any gcc2 internal prototype to avoid an error. */
9428 /* We use char because int might match the return type of a gcc2
9429 builtin and then its argument prototype would still apply. */
9439 rm -f conftest.$ac_objext conftest$ac_exeext
9440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9441 (eval $ac_link) 2>&5
9443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9444 (exit $ac_status); } &&
9445 { ac_try='test -s conftest$ac_exeext'
9446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9450 (exit $ac_status); }; }; then
9451 ac_cv_lib_socket_connect=yes
9453 echo "$as_me: failed program was:" >&5
9454 sed 's/^/| /' conftest.$ac_ext >&5
9456 ac_cv_lib_socket_connect=no
9458 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9459 LIBS=$ac_check_lib_save_LIBS
9461 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
9462 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
9463 if test $ac_cv_lib_socket_connect = yes; then
9464 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
9469 # Guillermo Gomez says -lposix is necessary on A/UX.
9470 echo "$as_me:$LINENO: checking for remove" >&5
9471 echo $ECHO_N "checking for remove... $ECHO_C" >&6
9472 if test "${ac_cv_func_remove+set}" = set; then
9473 echo $ECHO_N "(cached) $ECHO_C" >&6
9475 cat >conftest.$ac_ext <<_ACEOF
9476 #line $LINENO "configure"
9479 cat confdefs.h >>conftest.$ac_ext
9480 cat >>conftest.$ac_ext <<_ACEOF
9481 /* end confdefs.h. */
9482 /* System header to define __stub macros and hopefully few prototypes,
9483 which can conflict with char remove (); below.
9484 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9485 <limits.h> exists even on freestanding compilers. */
9487 # include <limits.h>
9489 # include <assert.h>
9491 /* Override any gcc2 internal prototype to avoid an error. */
9496 /* We use char because int might match the return type of a gcc2
9497 builtin and then its argument prototype would still apply. */
9499 /* The GNU C library defines this for functions which it implements
9500 to always fail with ENOSYS. Some functions are actually named
9501 something starting with __ and the normal name is an alias. */
9502 #if defined (__stub_remove) || defined (__stub___remove)
9505 char (*f) () = remove;
9519 rm -f conftest.$ac_objext conftest$ac_exeext
9520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9521 (eval $ac_link) 2>&5
9523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9524 (exit $ac_status); } &&
9525 { ac_try='test -s conftest$ac_exeext'
9526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9530 (exit $ac_status); }; }; then
9531 ac_cv_func_remove=yes
9533 echo "$as_me: failed program was:" >&5
9534 sed 's/^/| /' conftest.$ac_ext >&5
9536 ac_cv_func_remove=no
9538 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9540 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
9541 echo "${ECHO_T}$ac_cv_func_remove" >&6
9543 if test $ac_cv_func_remove = no; then
9544 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
9545 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
9546 if test "${ac_cv_lib_posix_remove+set}" = set; then
9547 echo $ECHO_N "(cached) $ECHO_C" >&6
9549 ac_check_lib_save_LIBS=$LIBS
9550 LIBS="-lposix $LIBS"
9551 cat >conftest.$ac_ext <<_ACEOF
9552 #line $LINENO "configure"
9555 cat confdefs.h >>conftest.$ac_ext
9556 cat >>conftest.$ac_ext <<_ACEOF
9557 /* end confdefs.h. */
9559 /* Override any gcc2 internal prototype to avoid an error. */
9563 /* We use char because int might match the return type of a gcc2
9564 builtin and then its argument prototype would still apply. */
9574 rm -f conftest.$ac_objext conftest$ac_exeext
9575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9576 (eval $ac_link) 2>&5
9578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9579 (exit $ac_status); } &&
9580 { ac_try='test -s conftest$ac_exeext'
9581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9585 (exit $ac_status); }; }; then
9586 ac_cv_lib_posix_remove=yes
9588 echo "$as_me: failed program was:" >&5
9589 sed 's/^/| /' conftest.$ac_ext >&5
9591 ac_cv_lib_posix_remove=no
9593 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9594 LIBS=$ac_check_lib_save_LIBS
9596 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
9597 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
9598 if test $ac_cv_lib_posix_remove = yes; then
9599 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
9604 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
9605 echo "$as_me:$LINENO: checking for shmat" >&5
9606 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
9607 if test "${ac_cv_func_shmat+set}" = set; then
9608 echo $ECHO_N "(cached) $ECHO_C" >&6
9610 cat >conftest.$ac_ext <<_ACEOF
9611 #line $LINENO "configure"
9614 cat confdefs.h >>conftest.$ac_ext
9615 cat >>conftest.$ac_ext <<_ACEOF
9616 /* end confdefs.h. */
9617 /* System header to define __stub macros and hopefully few prototypes,
9618 which can conflict with char shmat (); below.
9619 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9620 <limits.h> exists even on freestanding compilers. */
9622 # include <limits.h>
9624 # include <assert.h>
9626 /* Override any gcc2 internal prototype to avoid an error. */
9631 /* We use char because int might match the return type of a gcc2
9632 builtin and then its argument prototype would still apply. */
9634 /* The GNU C library defines this for functions which it implements
9635 to always fail with ENOSYS. Some functions are actually named
9636 something starting with __ and the normal name is an alias. */
9637 #if defined (__stub_shmat) || defined (__stub___shmat)
9640 char (*f) () = shmat;
9654 rm -f conftest.$ac_objext conftest$ac_exeext
9655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9656 (eval $ac_link) 2>&5
9658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9659 (exit $ac_status); } &&
9660 { ac_try='test -s conftest$ac_exeext'
9661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9665 (exit $ac_status); }; }; then
9666 ac_cv_func_shmat=yes
9668 echo "$as_me: failed program was:" >&5
9669 sed 's/^/| /' conftest.$ac_ext >&5
9673 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9675 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
9676 echo "${ECHO_T}$ac_cv_func_shmat" >&6
9678 if test $ac_cv_func_shmat = no; then
9679 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
9680 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
9681 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
9682 echo $ECHO_N "(cached) $ECHO_C" >&6
9684 ac_check_lib_save_LIBS=$LIBS
9686 cat >conftest.$ac_ext <<_ACEOF
9687 #line $LINENO "configure"
9690 cat confdefs.h >>conftest.$ac_ext
9691 cat >>conftest.$ac_ext <<_ACEOF
9692 /* end confdefs.h. */
9694 /* Override any gcc2 internal prototype to avoid an error. */
9698 /* We use char because int might match the return type of a gcc2
9699 builtin and then its argument prototype would still apply. */
9709 rm -f conftest.$ac_objext conftest$ac_exeext
9710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9711 (eval $ac_link) 2>&5
9713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9714 (exit $ac_status); } &&
9715 { ac_try='test -s conftest$ac_exeext'
9716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9720 (exit $ac_status); }; }; then
9721 ac_cv_lib_ipc_shmat=yes
9723 echo "$as_me: failed program was:" >&5
9724 sed 's/^/| /' conftest.$ac_ext >&5
9726 ac_cv_lib_ipc_shmat=no
9728 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9729 LIBS=$ac_check_lib_save_LIBS
9731 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
9732 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
9733 if test $ac_cv_lib_ipc_shmat = yes; then
9734 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9740 # Check for libraries that X11R6 Xt/Xaw programs need.
9741 ac_save_LDFLAGS=$LDFLAGS
9742 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9743 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9744 # check for ICE first), but we must link in the order -lSM -lICE or
9745 # we get undefined symbols. So assume we have SM if we have ICE.
9746 # These have to be linked with before -lX11, unlike the other
9747 # libraries we check for below, so use a different variable.
9748 # John Interrante, Karl Berry
9749 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
9750 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
9751 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
9752 echo $ECHO_N "(cached) $ECHO_C" >&6
9754 ac_check_lib_save_LIBS=$LIBS
9755 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9756 cat >conftest.$ac_ext <<_ACEOF
9757 #line $LINENO "configure"
9760 cat confdefs.h >>conftest.$ac_ext
9761 cat >>conftest.$ac_ext <<_ACEOF
9762 /* end confdefs.h. */
9764 /* Override any gcc2 internal prototype to avoid an error. */
9768 /* We use char because int might match the return type of a gcc2
9769 builtin and then its argument prototype would still apply. */
9770 char IceConnectionNumber ();
9774 IceConnectionNumber ();
9779 rm -f conftest.$ac_objext conftest$ac_exeext
9780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9781 (eval $ac_link) 2>&5
9783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9784 (exit $ac_status); } &&
9785 { ac_try='test -s conftest$ac_exeext'
9786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9790 (exit $ac_status); }; }; then
9791 ac_cv_lib_ICE_IceConnectionNumber=yes
9793 echo "$as_me: failed program was:" >&5
9794 sed 's/^/| /' conftest.$ac_ext >&5
9796 ac_cv_lib_ICE_IceConnectionNumber=no
9798 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9799 LIBS=$ac_check_lib_save_LIBS
9801 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9802 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
9803 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
9804 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9807 LDFLAGS=$ac_save_LDFLAGS
9869 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9870 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9871 echo "$as_me:$LINENO: checking for $ac_header" >&5
9872 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9873 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9874 echo $ECHO_N "(cached) $ECHO_C" >&6
9876 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9877 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9879 # Is the header compilable?
9880 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9881 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9882 cat >conftest.$ac_ext <<_ACEOF
9883 #line $LINENO "configure"
9886 cat confdefs.h >>conftest.$ac_ext
9887 cat >>conftest.$ac_ext <<_ACEOF
9888 /* end confdefs.h. */
9889 $ac_includes_default
9890 #include <$ac_header>
9892 rm -f conftest.$ac_objext
9893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9894 (eval $ac_compile) 2>&5
9896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897 (exit $ac_status); } &&
9898 { ac_try='test -s conftest.$ac_objext'
9899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9903 (exit $ac_status); }; }; then
9904 ac_header_compiler=yes
9906 echo "$as_me: failed program was:" >&5
9907 sed 's/^/| /' conftest.$ac_ext >&5
9909 ac_header_compiler=no
9911 rm -f conftest.$ac_objext conftest.$ac_ext
9912 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9913 echo "${ECHO_T}$ac_header_compiler" >&6
9915 # Is the header present?
9916 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9917 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9918 cat >conftest.$ac_ext <<_ACEOF
9919 #line $LINENO "configure"
9922 cat confdefs.h >>conftest.$ac_ext
9923 cat >>conftest.$ac_ext <<_ACEOF
9924 /* end confdefs.h. */
9925 #include <$ac_header>
9927 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9928 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9930 grep -v '^ *+' conftest.er1 >conftest.err
9932 cat conftest.err >&5
9933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9934 (exit $ac_status); } >/dev/null; then
9935 if test -s conftest.err; then
9936 ac_cpp_err=$ac_c_preproc_warn_flag
9943 if test -z "$ac_cpp_err"; then
9944 ac_header_preproc=yes
9946 echo "$as_me: failed program was:" >&5
9947 sed 's/^/| /' conftest.$ac_ext >&5
9949 ac_header_preproc=no
9951 rm -f conftest.err conftest.$ac_ext
9952 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9953 echo "${ECHO_T}$ac_header_preproc" >&6
9955 # So? What about this header?
9956 case $ac_header_compiler:$ac_header_preproc in
9958 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9959 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9960 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9961 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9964 ## ------------------------------------ ##
9965 ## Report this to bug-autoconf@gnu.org. ##
9966 ## ------------------------------------ ##
9969 sed "s/^/$as_me: WARNING: /" >&2
9972 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9973 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9974 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9975 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9976 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9977 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9980 ## ------------------------------------ ##
9981 ## Report this to bug-autoconf@gnu.org. ##
9982 ## ------------------------------------ ##
9985 sed "s/^/$as_me: WARNING: /" >&2
9988 echo "$as_me:$LINENO: checking for $ac_header" >&5
9989 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9990 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9991 echo $ECHO_N "(cached) $ECHO_C" >&6
9993 eval "$as_ac_Header=$ac_header_preproc"
9995 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9996 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9999 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10000 cat >>confdefs.h <<_ACEOF
10001 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10008 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
10009 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
10010 if test "${ac_cv_header_stdc+set}" = set; then
10011 echo $ECHO_N "(cached) $ECHO_C" >&6
10013 cat >conftest.$ac_ext <<_ACEOF
10014 #line $LINENO "configure"
10017 cat confdefs.h >>conftest.$ac_ext
10018 cat >>conftest.$ac_ext <<_ACEOF
10019 /* end confdefs.h. */
10020 #include <stdlib.h>
10021 #include <stdarg.h>
10022 #include <string.h>
10033 rm -f conftest.$ac_objext
10034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10035 (eval $ac_compile) 2>&5
10037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10038 (exit $ac_status); } &&
10039 { ac_try='test -s conftest.$ac_objext'
10040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10041 (eval $ac_try) 2>&5
10043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044 (exit $ac_status); }; }; then
10045 ac_cv_header_stdc=yes
10047 echo "$as_me: failed program was:" >&5
10048 sed 's/^/| /' conftest.$ac_ext >&5
10050 ac_cv_header_stdc=no
10052 rm -f conftest.$ac_objext conftest.$ac_ext
10054 if test $ac_cv_header_stdc = yes; then
10055 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10056 cat >conftest.$ac_ext <<_ACEOF
10057 #line $LINENO "configure"
10060 cat confdefs.h >>conftest.$ac_ext
10061 cat >>conftest.$ac_ext <<_ACEOF
10062 /* end confdefs.h. */
10063 #include <string.h>
10066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10067 $EGREP "memchr" >/dev/null 2>&1; then
10070 ac_cv_header_stdc=no
10076 if test $ac_cv_header_stdc = yes; then
10077 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10078 cat >conftest.$ac_ext <<_ACEOF
10079 #line $LINENO "configure"
10082 cat confdefs.h >>conftest.$ac_ext
10083 cat >>conftest.$ac_ext <<_ACEOF
10084 /* end confdefs.h. */
10085 #include <stdlib.h>
10088 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10089 $EGREP "free" >/dev/null 2>&1; then
10092 ac_cv_header_stdc=no
10098 if test $ac_cv_header_stdc = yes; then
10099 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10100 if test "$cross_compiling" = yes; then
10103 cat >conftest.$ac_ext <<_ACEOF
10104 #line $LINENO "configure"
10107 cat confdefs.h >>conftest.$ac_ext
10108 cat >>conftest.$ac_ext <<_ACEOF
10109 /* end confdefs.h. */
10111 #if ((' ' & 0x0FF) == 0x020)
10112 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10113 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10115 # define ISLOWER(c) \
10116 (('a' <= (c) && (c) <= 'i') \
10117 || ('j' <= (c) && (c) <= 'r') \
10118 || ('s' <= (c) && (c) <= 'z'))
10119 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10122 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10127 for (i = 0; i < 256; i++)
10128 if (XOR (islower (i), ISLOWER (i))
10129 || toupper (i) != TOUPPER (i))
10134 rm -f conftest$ac_exeext
10135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10136 (eval $ac_link) 2>&5
10138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10139 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10141 (eval $ac_try) 2>&5
10143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10144 (exit $ac_status); }; }; then
10147 echo "$as_me: program exited with status $ac_status" >&5
10148 echo "$as_me: failed program was:" >&5
10149 sed 's/^/| /' conftest.$ac_ext >&5
10151 ( exit $ac_status )
10152 ac_cv_header_stdc=no
10154 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10158 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10159 echo "${ECHO_T}$ac_cv_header_stdc" >&6
10160 if test $ac_cv_header_stdc = yes; then
10162 cat >>confdefs.h <<\_ACEOF
10163 #define STDC_HEADERS 1
10168 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
10169 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
10170 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
10171 echo $ECHO_N "(cached) $ECHO_C" >&6
10173 cat >conftest.$ac_ext <<_ACEOF
10174 #line $LINENO "configure"
10177 cat confdefs.h >>conftest.$ac_ext
10178 cat >>conftest.$ac_ext <<_ACEOF
10179 /* end confdefs.h. */
10180 #include <sys/types.h>
10184 return makedev(0, 0);
10189 rm -f conftest.$ac_objext conftest$ac_exeext
10190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10191 (eval $ac_link) 2>&5
10193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194 (exit $ac_status); } &&
10195 { ac_try='test -s conftest$ac_exeext'
10196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10197 (eval $ac_try) 2>&5
10199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200 (exit $ac_status); }; }; then
10201 ac_cv_header_sys_types_h_makedev=yes
10203 echo "$as_me: failed program was:" >&5
10204 sed 's/^/| /' conftest.$ac_ext >&5
10206 ac_cv_header_sys_types_h_makedev=no
10208 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10211 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
10212 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
10214 if test $ac_cv_header_sys_types_h_makedev = no; then
10215 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
10216 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
10217 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
10218 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
10219 echo $ECHO_N "(cached) $ECHO_C" >&6
10221 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
10222 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
10224 # Is the header compilable?
10225 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
10226 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
10227 cat >conftest.$ac_ext <<_ACEOF
10228 #line $LINENO "configure"
10231 cat confdefs.h >>conftest.$ac_ext
10232 cat >>conftest.$ac_ext <<_ACEOF
10233 /* end confdefs.h. */
10234 $ac_includes_default
10235 #include <sys/mkdev.h>
10237 rm -f conftest.$ac_objext
10238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10239 (eval $ac_compile) 2>&5
10241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242 (exit $ac_status); } &&
10243 { ac_try='test -s conftest.$ac_objext'
10244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10245 (eval $ac_try) 2>&5
10247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248 (exit $ac_status); }; }; then
10249 ac_header_compiler=yes
10251 echo "$as_me: failed program was:" >&5
10252 sed 's/^/| /' conftest.$ac_ext >&5
10254 ac_header_compiler=no
10256 rm -f conftest.$ac_objext conftest.$ac_ext
10257 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10258 echo "${ECHO_T}$ac_header_compiler" >&6
10260 # Is the header present?
10261 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
10262 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
10263 cat >conftest.$ac_ext <<_ACEOF
10264 #line $LINENO "configure"
10267 cat confdefs.h >>conftest.$ac_ext
10268 cat >>conftest.$ac_ext <<_ACEOF
10269 /* end confdefs.h. */
10270 #include <sys/mkdev.h>
10272 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10273 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10275 grep -v '^ *+' conftest.er1 >conftest.err
10277 cat conftest.err >&5
10278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10279 (exit $ac_status); } >/dev/null; then
10280 if test -s conftest.err; then
10281 ac_cpp_err=$ac_c_preproc_warn_flag
10288 if test -z "$ac_cpp_err"; then
10289 ac_header_preproc=yes
10291 echo "$as_me: failed program was:" >&5
10292 sed 's/^/| /' conftest.$ac_ext >&5
10294 ac_header_preproc=no
10296 rm -f conftest.err conftest.$ac_ext
10297 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10298 echo "${ECHO_T}$ac_header_preproc" >&6
10300 # So? What about this header?
10301 case $ac_header_compiler:$ac_header_preproc in
10303 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
10304 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10305 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
10306 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
10309 ## ------------------------------------ ##
10310 ## Report this to bug-autoconf@gnu.org. ##
10311 ## ------------------------------------ ##
10314 sed "s/^/$as_me: WARNING: /" >&2
10317 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
10318 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
10319 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
10320 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
10321 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
10322 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
10325 ## ------------------------------------ ##
10326 ## Report this to bug-autoconf@gnu.org. ##
10327 ## ------------------------------------ ##
10330 sed "s/^/$as_me: WARNING: /" >&2
10333 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
10334 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
10335 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
10336 echo $ECHO_N "(cached) $ECHO_C" >&6
10338 ac_cv_header_sys_mkdev_h=$ac_header_preproc
10340 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
10341 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
10344 if test $ac_cv_header_sys_mkdev_h = yes; then
10346 cat >>confdefs.h <<\_ACEOF
10347 #define MAJOR_IN_MKDEV 1
10354 if test $ac_cv_header_sys_mkdev_h = no; then
10355 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
10356 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
10357 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
10358 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
10359 echo $ECHO_N "(cached) $ECHO_C" >&6
10361 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
10362 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
10364 # Is the header compilable?
10365 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
10366 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
10367 cat >conftest.$ac_ext <<_ACEOF
10368 #line $LINENO "configure"
10371 cat confdefs.h >>conftest.$ac_ext
10372 cat >>conftest.$ac_ext <<_ACEOF
10373 /* end confdefs.h. */
10374 $ac_includes_default
10375 #include <sys/sysmacros.h>
10377 rm -f conftest.$ac_objext
10378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10379 (eval $ac_compile) 2>&5
10381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10382 (exit $ac_status); } &&
10383 { ac_try='test -s conftest.$ac_objext'
10384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10385 (eval $ac_try) 2>&5
10387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10388 (exit $ac_status); }; }; then
10389 ac_header_compiler=yes
10391 echo "$as_me: failed program was:" >&5
10392 sed 's/^/| /' conftest.$ac_ext >&5
10394 ac_header_compiler=no
10396 rm -f conftest.$ac_objext conftest.$ac_ext
10397 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10398 echo "${ECHO_T}$ac_header_compiler" >&6
10400 # Is the header present?
10401 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
10402 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
10403 cat >conftest.$ac_ext <<_ACEOF
10404 #line $LINENO "configure"
10407 cat confdefs.h >>conftest.$ac_ext
10408 cat >>conftest.$ac_ext <<_ACEOF
10409 /* end confdefs.h. */
10410 #include <sys/sysmacros.h>
10412 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10413 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10415 grep -v '^ *+' conftest.er1 >conftest.err
10417 cat conftest.err >&5
10418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10419 (exit $ac_status); } >/dev/null; then
10420 if test -s conftest.err; then
10421 ac_cpp_err=$ac_c_preproc_warn_flag
10428 if test -z "$ac_cpp_err"; then
10429 ac_header_preproc=yes
10431 echo "$as_me: failed program was:" >&5
10432 sed 's/^/| /' conftest.$ac_ext >&5
10434 ac_header_preproc=no
10436 rm -f conftest.err conftest.$ac_ext
10437 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10438 echo "${ECHO_T}$ac_header_preproc" >&6
10440 # So? What about this header?
10441 case $ac_header_compiler:$ac_header_preproc in
10443 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
10444 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10445 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
10446 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
10449 ## ------------------------------------ ##
10450 ## Report this to bug-autoconf@gnu.org. ##
10451 ## ------------------------------------ ##
10454 sed "s/^/$as_me: WARNING: /" >&2
10457 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
10458 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
10459 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
10460 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
10461 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
10462 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
10465 ## ------------------------------------ ##
10466 ## Report this to bug-autoconf@gnu.org. ##
10467 ## ------------------------------------ ##
10470 sed "s/^/$as_me: WARNING: /" >&2
10473 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
10474 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
10475 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
10476 echo $ECHO_N "(cached) $ECHO_C" >&6
10478 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
10480 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
10481 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
10484 if test $ac_cv_header_sys_sysmacros_h = yes; then
10486 cat >>confdefs.h <<\_ACEOF
10487 #define MAJOR_IN_SYSMACROS 1
10501 ac_header_dirent=no
10502 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10503 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10504 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10505 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
10506 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10507 echo $ECHO_N "(cached) $ECHO_C" >&6
10509 cat >conftest.$ac_ext <<_ACEOF
10510 #line $LINENO "configure"
10513 cat confdefs.h >>conftest.$ac_ext
10514 cat >>conftest.$ac_ext <<_ACEOF
10515 /* end confdefs.h. */
10516 #include <sys/types.h>
10528 rm -f conftest.$ac_objext
10529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10530 (eval $ac_compile) 2>&5
10532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10533 (exit $ac_status); } &&
10534 { ac_try='test -s conftest.$ac_objext'
10535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10536 (eval $ac_try) 2>&5
10538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10539 (exit $ac_status); }; }; then
10540 eval "$as_ac_Header=yes"
10542 echo "$as_me: failed program was:" >&5
10543 sed 's/^/| /' conftest.$ac_ext >&5
10545 eval "$as_ac_Header=no"
10547 rm -f conftest.$ac_objext conftest.$ac_ext
10549 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10550 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10551 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10552 cat >>confdefs.h <<_ACEOF
10553 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10556 ac_header_dirent=$ac_hdr; break
10560 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10561 if test $ac_header_dirent = dirent.h; then
10562 echo "$as_me:$LINENO: checking for library containing opendir" >&5
10563 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
10564 if test "${ac_cv_search_opendir+set}" = set; then
10565 echo $ECHO_N "(cached) $ECHO_C" >&6
10567 ac_func_search_save_LIBS=$LIBS
10568 ac_cv_search_opendir=no
10569 cat >conftest.$ac_ext <<_ACEOF
10570 #line $LINENO "configure"
10573 cat confdefs.h >>conftest.$ac_ext
10574 cat >>conftest.$ac_ext <<_ACEOF
10575 /* end confdefs.h. */
10577 /* Override any gcc2 internal prototype to avoid an error. */
10581 /* We use char because int might match the return type of a gcc2
10582 builtin and then its argument prototype would still apply. */
10592 rm -f conftest.$ac_objext conftest$ac_exeext
10593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10594 (eval $ac_link) 2>&5
10596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10597 (exit $ac_status); } &&
10598 { ac_try='test -s conftest$ac_exeext'
10599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10600 (eval $ac_try) 2>&5
10602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10603 (exit $ac_status); }; }; then
10604 ac_cv_search_opendir="none required"
10606 echo "$as_me: failed program was:" >&5
10607 sed 's/^/| /' conftest.$ac_ext >&5
10610 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10611 if test "$ac_cv_search_opendir" = no; then
10612 for ac_lib in dir; do
10613 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10614 cat >conftest.$ac_ext <<_ACEOF
10615 #line $LINENO "configure"
10618 cat confdefs.h >>conftest.$ac_ext
10619 cat >>conftest.$ac_ext <<_ACEOF
10620 /* end confdefs.h. */
10622 /* Override any gcc2 internal prototype to avoid an error. */
10626 /* We use char because int might match the return type of a gcc2
10627 builtin and then its argument prototype would still apply. */
10637 rm -f conftest.$ac_objext conftest$ac_exeext
10638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10639 (eval $ac_link) 2>&5
10641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10642 (exit $ac_status); } &&
10643 { ac_try='test -s conftest$ac_exeext'
10644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10645 (eval $ac_try) 2>&5
10647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10648 (exit $ac_status); }; }; then
10649 ac_cv_search_opendir="-l$ac_lib"
10652 echo "$as_me: failed program was:" >&5
10653 sed 's/^/| /' conftest.$ac_ext >&5
10656 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10659 LIBS=$ac_func_search_save_LIBS
10661 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10662 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10663 if test "$ac_cv_search_opendir" != no; then
10664 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10669 echo "$as_me:$LINENO: checking for library containing opendir" >&5
10670 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
10671 if test "${ac_cv_search_opendir+set}" = set; then
10672 echo $ECHO_N "(cached) $ECHO_C" >&6
10674 ac_func_search_save_LIBS=$LIBS
10675 ac_cv_search_opendir=no
10676 cat >conftest.$ac_ext <<_ACEOF
10677 #line $LINENO "configure"
10680 cat confdefs.h >>conftest.$ac_ext
10681 cat >>conftest.$ac_ext <<_ACEOF
10682 /* end confdefs.h. */
10684 /* Override any gcc2 internal prototype to avoid an error. */
10688 /* We use char because int might match the return type of a gcc2
10689 builtin and then its argument prototype would still apply. */
10699 rm -f conftest.$ac_objext conftest$ac_exeext
10700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10701 (eval $ac_link) 2>&5
10703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10704 (exit $ac_status); } &&
10705 { ac_try='test -s conftest$ac_exeext'
10706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10707 (eval $ac_try) 2>&5
10709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10710 (exit $ac_status); }; }; then
10711 ac_cv_search_opendir="none required"
10713 echo "$as_me: failed program was:" >&5
10714 sed 's/^/| /' conftest.$ac_ext >&5
10717 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10718 if test "$ac_cv_search_opendir" = no; then
10719 for ac_lib in x; do
10720 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10721 cat >conftest.$ac_ext <<_ACEOF
10722 #line $LINENO "configure"
10725 cat confdefs.h >>conftest.$ac_ext
10726 cat >>conftest.$ac_ext <<_ACEOF
10727 /* end confdefs.h. */
10729 /* Override any gcc2 internal prototype to avoid an error. */
10733 /* We use char because int might match the return type of a gcc2
10734 builtin and then its argument prototype would still apply. */
10744 rm -f conftest.$ac_objext conftest$ac_exeext
10745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10746 (eval $ac_link) 2>&5
10748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10749 (exit $ac_status); } &&
10750 { ac_try='test -s conftest$ac_exeext'
10751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10752 (eval $ac_try) 2>&5
10754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10755 (exit $ac_status); }; }; then
10756 ac_cv_search_opendir="-l$ac_lib"
10759 echo "$as_me: failed program was:" >&5
10760 sed 's/^/| /' conftest.$ac_ext >&5
10763 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10766 LIBS=$ac_func_search_save_LIBS
10768 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10769 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10770 if test "$ac_cv_search_opendir" != no; then
10771 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10777 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10778 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
10779 if test "${ac_cv_header_stat_broken+set}" = set; then
10780 echo $ECHO_N "(cached) $ECHO_C" >&6
10782 cat >conftest.$ac_ext <<_ACEOF
10783 #line $LINENO "configure"
10786 cat confdefs.h >>conftest.$ac_ext
10787 cat >>conftest.$ac_ext <<_ACEOF
10788 /* end confdefs.h. */
10789 #include <sys/types.h>
10790 #include <sys/stat.h>
10792 #if defined(S_ISBLK) && defined(S_IFDIR)
10793 # if S_ISBLK (S_IFDIR)
10798 #if defined(S_ISBLK) && defined(S_IFCHR)
10799 # if S_ISBLK (S_IFCHR)
10804 #if defined(S_ISLNK) && defined(S_IFREG)
10805 # if S_ISLNK (S_IFREG)
10810 #if defined(S_ISSOCK) && defined(S_IFREG)
10811 # if S_ISSOCK (S_IFREG)
10817 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10818 $EGREP "You lose" >/dev/null 2>&1; then
10819 ac_cv_header_stat_broken=yes
10821 ac_cv_header_stat_broken=no
10826 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10827 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
10828 if test $ac_cv_header_stat_broken = yes; then
10830 cat >>confdefs.h <<\_ACEOF
10831 #define STAT_MACROS_BROKEN 1
10836 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10837 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
10838 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10839 echo $ECHO_N "(cached) $ECHO_C" >&6
10841 cat >conftest.$ac_ext <<_ACEOF
10842 #line $LINENO "configure"
10845 cat confdefs.h >>conftest.$ac_ext
10846 cat >>conftest.$ac_ext <<_ACEOF
10847 /* end confdefs.h. */
10848 #include <sys/types.h>
10849 #include <sys/wait.h>
10850 #ifndef WEXITSTATUS
10851 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
10854 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10862 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10867 rm -f conftest.$ac_objext
10868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10869 (eval $ac_compile) 2>&5
10871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10872 (exit $ac_status); } &&
10873 { ac_try='test -s conftest.$ac_objext'
10874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10875 (eval $ac_try) 2>&5
10877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10878 (exit $ac_status); }; }; then
10879 ac_cv_header_sys_wait_h=yes
10881 echo "$as_me: failed program was:" >&5
10882 sed 's/^/| /' conftest.$ac_ext >&5
10884 ac_cv_header_sys_wait_h=no
10886 rm -f conftest.$ac_objext conftest.$ac_ext
10888 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10889 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
10890 if test $ac_cv_header_sys_wait_h = yes; then
10892 cat >>confdefs.h <<\_ACEOF
10893 #define HAVE_SYS_WAIT_H 1
10898 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10899 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10900 if test "${ac_cv_header_time+set}" = set; then
10901 echo $ECHO_N "(cached) $ECHO_C" >&6
10903 cat >conftest.$ac_ext <<_ACEOF
10904 #line $LINENO "configure"
10907 cat confdefs.h >>conftest.$ac_ext
10908 cat >>conftest.$ac_ext <<_ACEOF
10909 /* end confdefs.h. */
10910 #include <sys/types.h>
10911 #include <sys/time.h>
10917 if ((struct tm *) 0)
10923 rm -f conftest.$ac_objext
10924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10925 (eval $ac_compile) 2>&5
10927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10928 (exit $ac_status); } &&
10929 { ac_try='test -s conftest.$ac_objext'
10930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10931 (eval $ac_try) 2>&5
10933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10934 (exit $ac_status); }; }; then
10935 ac_cv_header_time=yes
10937 echo "$as_me: failed program was:" >&5
10938 sed 's/^/| /' conftest.$ac_ext >&5
10940 ac_cv_header_time=no
10942 rm -f conftest.$ac_objext conftest.$ac_ext
10944 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10945 echo "${ECHO_T}$ac_cv_header_time" >&6
10946 if test $ac_cv_header_time = yes; then
10948 cat >>confdefs.h <<\_ACEOF
10949 #define TIME_WITH_SYS_TIME 1
10955 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
10956 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
10957 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
10958 echo $ECHO_N "(cached) $ECHO_C" >&6
10960 cat >conftest.$ac_ext <<_ACEOF
10961 #line $LINENO "configure"
10964 cat confdefs.h >>conftest.$ac_ext
10965 cat >>conftest.$ac_ext <<_ACEOF
10966 /* end confdefs.h. */
10967 $ac_includes_default
10971 static struct stat ac_aggr;
10972 if (ac_aggr.st_blksize)
10978 rm -f conftest.$ac_objext
10979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10980 (eval $ac_compile) 2>&5
10982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10983 (exit $ac_status); } &&
10984 { ac_try='test -s conftest.$ac_objext'
10985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10986 (eval $ac_try) 2>&5
10988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10989 (exit $ac_status); }; }; then
10990 ac_cv_member_struct_stat_st_blksize=yes
10992 echo "$as_me: failed program was:" >&5
10993 sed 's/^/| /' conftest.$ac_ext >&5
10995 cat >conftest.$ac_ext <<_ACEOF
10996 #line $LINENO "configure"
10999 cat confdefs.h >>conftest.$ac_ext
11000 cat >>conftest.$ac_ext <<_ACEOF
11001 /* end confdefs.h. */
11002 $ac_includes_default
11006 static struct stat ac_aggr;
11007 if (sizeof ac_aggr.st_blksize)
11013 rm -f conftest.$ac_objext
11014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11015 (eval $ac_compile) 2>&5
11017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018 (exit $ac_status); } &&
11019 { ac_try='test -s conftest.$ac_objext'
11020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11021 (eval $ac_try) 2>&5
11023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024 (exit $ac_status); }; }; then
11025 ac_cv_member_struct_stat_st_blksize=yes
11027 echo "$as_me: failed program was:" >&5
11028 sed 's/^/| /' conftest.$ac_ext >&5
11030 ac_cv_member_struct_stat_st_blksize=no
11032 rm -f conftest.$ac_objext conftest.$ac_ext
11034 rm -f conftest.$ac_objext conftest.$ac_ext
11036 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
11037 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
11038 if test $ac_cv_member_struct_stat_st_blksize = yes; then
11040 cat >>confdefs.h <<_ACEOF
11041 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
11045 cat >>confdefs.h <<\_ACEOF
11046 #define HAVE_ST_BLKSIZE 1
11052 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
11053 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
11054 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
11055 echo $ECHO_N "(cached) $ECHO_C" >&6
11057 cat >conftest.$ac_ext <<_ACEOF
11058 #line $LINENO "configure"
11061 cat confdefs.h >>conftest.$ac_ext
11062 cat >>conftest.$ac_ext <<_ACEOF
11063 /* end confdefs.h. */
11064 $ac_includes_default
11068 static struct stat ac_aggr;
11069 if (ac_aggr.st_blocks)
11075 rm -f conftest.$ac_objext
11076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11077 (eval $ac_compile) 2>&5
11079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11080 (exit $ac_status); } &&
11081 { ac_try='test -s conftest.$ac_objext'
11082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11083 (eval $ac_try) 2>&5
11085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11086 (exit $ac_status); }; }; then
11087 ac_cv_member_struct_stat_st_blocks=yes
11089 echo "$as_me: failed program was:" >&5
11090 sed 's/^/| /' conftest.$ac_ext >&5
11092 cat >conftest.$ac_ext <<_ACEOF
11093 #line $LINENO "configure"
11096 cat confdefs.h >>conftest.$ac_ext
11097 cat >>conftest.$ac_ext <<_ACEOF
11098 /* end confdefs.h. */
11099 $ac_includes_default
11103 static struct stat ac_aggr;
11104 if (sizeof ac_aggr.st_blocks)
11110 rm -f conftest.$ac_objext
11111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11112 (eval $ac_compile) 2>&5
11114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11115 (exit $ac_status); } &&
11116 { ac_try='test -s conftest.$ac_objext'
11117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11118 (eval $ac_try) 2>&5
11120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11121 (exit $ac_status); }; }; then
11122 ac_cv_member_struct_stat_st_blocks=yes
11124 echo "$as_me: failed program was:" >&5
11125 sed 's/^/| /' conftest.$ac_ext >&5
11127 ac_cv_member_struct_stat_st_blocks=no
11129 rm -f conftest.$ac_objext conftest.$ac_ext
11131 rm -f conftest.$ac_objext conftest.$ac_ext
11133 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
11134 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
11135 if test $ac_cv_member_struct_stat_st_blocks = yes; then
11137 cat >>confdefs.h <<_ACEOF
11138 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
11142 cat >>confdefs.h <<\_ACEOF
11143 #define HAVE_ST_BLOCKS 1
11147 LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
11151 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11152 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
11153 if test "${ac_cv_struct_tm+set}" = set; then
11154 echo $ECHO_N "(cached) $ECHO_C" >&6
11156 cat >conftest.$ac_ext <<_ACEOF
11157 #line $LINENO "configure"
11160 cat confdefs.h >>conftest.$ac_ext
11161 cat >>conftest.$ac_ext <<_ACEOF
11162 /* end confdefs.h. */
11163 #include <sys/types.h>
11169 struct tm *tp; tp->tm_sec;
11174 rm -f conftest.$ac_objext
11175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11176 (eval $ac_compile) 2>&5
11178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11179 (exit $ac_status); } &&
11180 { ac_try='test -s conftest.$ac_objext'
11181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11182 (eval $ac_try) 2>&5
11184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11185 (exit $ac_status); }; }; then
11186 ac_cv_struct_tm=time.h
11188 echo "$as_me: failed program was:" >&5
11189 sed 's/^/| /' conftest.$ac_ext >&5
11191 ac_cv_struct_tm=sys/time.h
11193 rm -f conftest.$ac_objext conftest.$ac_ext
11195 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11196 echo "${ECHO_T}$ac_cv_struct_tm" >&6
11197 if test $ac_cv_struct_tm = sys/time.h; then
11199 cat >>confdefs.h <<\_ACEOF
11200 #define TM_IN_SYS_TIME 1
11205 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
11206 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
11207 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
11208 echo $ECHO_N "(cached) $ECHO_C" >&6
11210 cat >conftest.$ac_ext <<_ACEOF
11211 #line $LINENO "configure"
11214 cat confdefs.h >>conftest.$ac_ext
11215 cat >>conftest.$ac_ext <<_ACEOF
11216 /* end confdefs.h. */
11217 #include <sys/types.h>
11218 #include <$ac_cv_struct_tm>
11224 static struct tm ac_aggr;
11225 if (ac_aggr.tm_zone)
11231 rm -f conftest.$ac_objext
11232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11233 (eval $ac_compile) 2>&5
11235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236 (exit $ac_status); } &&
11237 { ac_try='test -s conftest.$ac_objext'
11238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11239 (eval $ac_try) 2>&5
11241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11242 (exit $ac_status); }; }; then
11243 ac_cv_member_struct_tm_tm_zone=yes
11245 echo "$as_me: failed program was:" >&5
11246 sed 's/^/| /' conftest.$ac_ext >&5
11248 cat >conftest.$ac_ext <<_ACEOF
11249 #line $LINENO "configure"
11252 cat confdefs.h >>conftest.$ac_ext
11253 cat >>conftest.$ac_ext <<_ACEOF
11254 /* end confdefs.h. */
11255 #include <sys/types.h>
11256 #include <$ac_cv_struct_tm>
11262 static struct tm ac_aggr;
11263 if (sizeof ac_aggr.tm_zone)
11269 rm -f conftest.$ac_objext
11270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11271 (eval $ac_compile) 2>&5
11273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11274 (exit $ac_status); } &&
11275 { ac_try='test -s conftest.$ac_objext'
11276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11277 (eval $ac_try) 2>&5
11279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11280 (exit $ac_status); }; }; then
11281 ac_cv_member_struct_tm_tm_zone=yes
11283 echo "$as_me: failed program was:" >&5
11284 sed 's/^/| /' conftest.$ac_ext >&5
11286 ac_cv_member_struct_tm_tm_zone=no
11288 rm -f conftest.$ac_objext conftest.$ac_ext
11290 rm -f conftest.$ac_objext conftest.$ac_ext
11292 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
11293 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
11294 if test $ac_cv_member_struct_tm_tm_zone = yes; then
11296 cat >>confdefs.h <<_ACEOF
11297 #define HAVE_STRUCT_TM_TM_ZONE 1
11303 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
11305 cat >>confdefs.h <<\_ACEOF
11306 #define HAVE_TM_ZONE 1
11310 echo "$as_me:$LINENO: checking for tzname" >&5
11311 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
11312 if test "${ac_cv_var_tzname+set}" = set; then
11313 echo $ECHO_N "(cached) $ECHO_C" >&6
11315 cat >conftest.$ac_ext <<_ACEOF
11316 #line $LINENO "configure"
11319 cat confdefs.h >>conftest.$ac_ext
11320 cat >>conftest.$ac_ext <<_ACEOF
11321 /* end confdefs.h. */
11323 #ifndef tzname /* For SGI. */
11324 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
11335 rm -f conftest.$ac_objext conftest$ac_exeext
11336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11337 (eval $ac_link) 2>&5
11339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340 (exit $ac_status); } &&
11341 { ac_try='test -s conftest$ac_exeext'
11342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11343 (eval $ac_try) 2>&5
11345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11346 (exit $ac_status); }; }; then
11347 ac_cv_var_tzname=yes
11349 echo "$as_me: failed program was:" >&5
11350 sed 's/^/| /' conftest.$ac_ext >&5
11352 ac_cv_var_tzname=no
11354 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11356 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
11357 echo "${ECHO_T}$ac_cv_var_tzname" >&6
11358 if test $ac_cv_var_tzname = yes; then
11360 cat >>confdefs.h <<\_ACEOF
11361 #define HAVE_TZNAME 1
11368 echo "$as_me:$LINENO: checking for utime.h" >&5
11369 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
11370 if test "${ba_cv_header_utime_h+set}" = set; then
11371 echo $ECHO_N "(cached) $ECHO_C" >&6
11373 cat >conftest.$ac_ext <<_ACEOF
11374 #line $LINENO "configure"
11377 cat confdefs.h >>conftest.$ac_ext
11378 cat >>conftest.$ac_ext <<_ACEOF
11379 /* end confdefs.h. */
11381 #include <sys/types.h>
11391 rm -f conftest.$ac_objext
11392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11393 (eval $ac_compile) 2>&5
11395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11396 (exit $ac_status); } &&
11397 { ac_try='test -s conftest.$ac_objext'
11398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11399 (eval $ac_try) 2>&5
11401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11402 (exit $ac_status); }; }; then
11403 ba_cv_header_utime_h=yes
11405 echo "$as_me: failed program was:" >&5
11406 sed 's/^/| /' conftest.$ac_ext >&5
11408 ba_cv_header_utime_h=no
11410 rm -f conftest.$ac_objext conftest.$ac_ext
11412 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
11413 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
11414 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
11415 #define HAVE_UTIME_H 1
11419 echo "$as_me:$LINENO: checking for socklen_t" >&5
11420 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
11421 if test "${ba_cv_header_socklen_t+set}" = set; then
11422 echo $ECHO_N "(cached) $ECHO_C" >&6
11424 cat >conftest.$ac_ext <<_ACEOF
11425 #line $LINENO "configure"
11428 cat confdefs.h >>conftest.$ac_ext
11429 cat >>conftest.$ac_ext <<_ACEOF
11430 /* end confdefs.h. */
11432 #include <sys/types.h>
11433 #include <sys/socket.h>
11442 rm -f conftest.$ac_objext
11443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11444 (eval $ac_compile) 2>&5
11446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11447 (exit $ac_status); } &&
11448 { ac_try='test -s conftest.$ac_objext'
11449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11450 (eval $ac_try) 2>&5
11452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11453 (exit $ac_status); }; }; then
11454 ba_cv_header_socklen_t=yes
11456 echo "$as_me: failed program was:" >&5
11457 sed 's/^/| /' conftest.$ac_ext >&5
11459 ba_cv_header_socklen_t=no
11461 rm -f conftest.$ac_objext conftest.$ac_ext
11463 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
11464 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
11465 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
11466 #define HAVE_SOCKLEN_T 1
11470 echo "$as_me:$LINENO: checking for bigendian" >&5
11471 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
11472 if test "${ba_cv_bigendian+set}" = set; then
11473 echo $ECHO_N "(cached) $ECHO_C" >&6
11475 if test "$cross_compiling" = yes; then
11478 cat >conftest.$ac_ext <<_ACEOF
11479 #line $LINENO "configure"
11482 cat confdefs.h >>conftest.$ac_ext
11483 cat >>conftest.$ac_ext <<_ACEOF
11484 /* end confdefs.h. */
11485 main(){long a=1L; char *p=(char *)&a; exit(*p);}
11487 rm -f conftest$ac_exeext
11488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11489 (eval $ac_link) 2>&5
11491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11492 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11494 (eval $ac_try) 2>&5
11496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497 (exit $ac_status); }; }; then
11498 ba_cv_bigendian=yes
11500 echo "$as_me: program exited with status $ac_status" >&5
11501 echo "$as_me: failed program was:" >&5
11502 sed 's/^/| /' conftest.$ac_ext >&5
11504 ( exit $ac_status )
11507 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11510 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
11511 echo "${ECHO_T}$ba_cv_bigendian" >&6
11512 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
11513 #define HAVE_BIGENDIAN 1
11518 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11519 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
11520 if test "${ac_cv_c_const+set}" = set; then
11521 echo $ECHO_N "(cached) $ECHO_C" >&6
11523 cat >conftest.$ac_ext <<_ACEOF
11524 #line $LINENO "configure"
11527 cat confdefs.h >>conftest.$ac_ext
11528 cat >>conftest.$ac_ext <<_ACEOF
11529 /* end confdefs.h. */
11534 /* FIXME: Include the comments suggested by Paul. */
11535 #ifndef __cplusplus
11536 /* Ultrix mips cc rejects this. */
11537 typedef int charset[2];
11539 /* SunOS 4.1.1 cc rejects this. */
11540 char const *const *ccp;
11542 /* NEC SVR4.0.2 mips cc rejects this. */
11543 struct point {int x, y;};
11544 static struct point const zero = {0,0};
11545 /* AIX XL C 1.02.0.0 rejects this.
11546 It does not let you subtract one const X* pointer from another in
11547 an arm of an if-expression whose if-part is not a constant
11549 const char *g = "string";
11550 ccp = &g + (g ? g-g : 0);
11551 /* HPUX 7.0 cc rejects these. */
11554 ccp = (char const *const *) p;
11555 { /* SCO 3.2v4 cc rejects this. */
11557 char const *s = 0 ? (char *) 0 : (char const *) 0;
11561 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11562 int x[] = {25, 17};
11563 const int *foo = &x[0];
11566 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11567 typedef const int *iptr;
11571 { /* AIX XL C 1.02.0.0 rejects this saying
11572 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11573 struct s { int j; const int *ap[3]; };
11574 struct s *b; b->j = 5;
11576 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11577 const int foo = 10;
11585 rm -f conftest.$ac_objext
11586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11587 (eval $ac_compile) 2>&5
11589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11590 (exit $ac_status); } &&
11591 { ac_try='test -s conftest.$ac_objext'
11592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11593 (eval $ac_try) 2>&5
11595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11596 (exit $ac_status); }; }; then
11599 echo "$as_me: failed program was:" >&5
11600 sed 's/^/| /' conftest.$ac_ext >&5
11604 rm -f conftest.$ac_objext conftest.$ac_ext
11606 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11607 echo "${ECHO_T}$ac_cv_c_const" >&6
11608 if test $ac_cv_c_const = no; then
11610 cat >>confdefs.h <<\_ACEOF
11618 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
11619 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
11621 # The order of these tests is important.
11622 cat >conftest.$ac_ext <<_ACEOF
11623 #line $LINENO "configure"
11626 cat confdefs.h >>conftest.$ac_ext
11627 cat >>conftest.$ac_ext <<_ACEOF
11628 /* end confdefs.h. */
11629 #include <sys/statvfs.h>
11630 #include <sys/fstyp.h>
11632 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11633 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11635 grep -v '^ *+' conftest.er1 >conftest.err
11637 cat conftest.err >&5
11638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11639 (exit $ac_status); } >/dev/null; then
11640 if test -s conftest.err; then
11641 ac_cpp_err=$ac_c_preproc_warn_flag
11648 if test -z "$ac_cpp_err"; then
11649 cat >>confdefs.h <<\_ACEOF
11650 #define FSTYPE_STATVFS 1
11654 echo "$as_me: failed program was:" >&5
11655 sed 's/^/| /' conftest.$ac_ext >&5
11659 rm -f conftest.err conftest.$ac_ext
11660 if test $fstype = no; then
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. */
11668 #include <sys/statfs.h>
11669 #include <sys/fstyp.h>
11671 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11672 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11674 grep -v '^ *+' conftest.er1 >conftest.err
11676 cat conftest.err >&5
11677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11678 (exit $ac_status); } >/dev/null; then
11679 if test -s conftest.err; then
11680 ac_cpp_err=$ac_c_preproc_warn_flag
11687 if test -z "$ac_cpp_err"; then
11688 cat >>confdefs.h <<\_ACEOF
11689 #define FSTYPE_USG_STATFS 1
11693 echo "$as_me: failed program was:" >&5
11694 sed 's/^/| /' conftest.$ac_ext >&5
11698 rm -f conftest.err conftest.$ac_ext
11700 if test $fstype = no; then
11701 cat >conftest.$ac_ext <<_ACEOF
11702 #line $LINENO "configure"
11705 cat confdefs.h >>conftest.$ac_ext
11706 cat >>conftest.$ac_ext <<_ACEOF
11707 /* end confdefs.h. */
11708 #include <sys/statfs.h>
11709 #include <sys/vmount.h>
11711 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11712 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11714 grep -v '^ *+' conftest.er1 >conftest.err
11716 cat conftest.err >&5
11717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11718 (exit $ac_status); } >/dev/null; then
11719 if test -s conftest.err; then
11720 ac_cpp_err=$ac_c_preproc_warn_flag
11727 if test -z "$ac_cpp_err"; then
11728 cat >>confdefs.h <<\_ACEOF
11729 #define FSTYPE_AIX_STATFS 1
11733 echo "$as_me: failed program was:" >&5
11734 sed 's/^/| /' conftest.$ac_ext >&5
11738 rm -f conftest.err conftest.$ac_ext
11740 if test $fstype = no; then
11741 cat >conftest.$ac_ext <<_ACEOF
11742 #line $LINENO "configure"
11745 cat confdefs.h >>conftest.$ac_ext
11746 cat >>conftest.$ac_ext <<_ACEOF
11747 /* end confdefs.h. */
11748 #include <mntent.h>
11750 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11751 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11753 grep -v '^ *+' conftest.er1 >conftest.err
11755 cat conftest.err >&5
11756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11757 (exit $ac_status); } >/dev/null; then
11758 if test -s conftest.err; then
11759 ac_cpp_err=$ac_c_preproc_warn_flag
11766 if test -z "$ac_cpp_err"; then
11767 cat >>confdefs.h <<\_ACEOF
11768 #define FSTYPE_MNTENT 1
11772 echo "$as_me: failed program was:" >&5
11773 sed 's/^/| /' conftest.$ac_ext >&5
11777 rm -f conftest.err conftest.$ac_ext
11779 if test $fstype = no; then
11780 cat >conftest.$ac_ext <<_ACEOF
11781 #line $LINENO "configure"
11784 cat confdefs.h >>conftest.$ac_ext
11785 cat >>conftest.$ac_ext <<_ACEOF
11786 /* end confdefs.h. */
11787 #include <sys/mount.h>
11790 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11791 $EGREP "f_type;" >/dev/null 2>&1; then
11792 cat >>confdefs.h <<\_ACEOF
11793 #define FSTYPE_STATFS 1
11800 if test $fstype = no; then
11801 cat >conftest.$ac_ext <<_ACEOF
11802 #line $LINENO "configure"
11805 cat confdefs.h >>conftest.$ac_ext
11806 cat >>conftest.$ac_ext <<_ACEOF
11807 /* end confdefs.h. */
11808 #include <sys/mount.h>
11809 #include <sys/fs_types.h>
11811 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11812 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11814 grep -v '^ *+' conftest.er1 >conftest.err
11816 cat conftest.err >&5
11817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11818 (exit $ac_status); } >/dev/null; then
11819 if test -s conftest.err; then
11820 ac_cpp_err=$ac_c_preproc_warn_flag
11827 if test -z "$ac_cpp_err"; then
11828 cat >>confdefs.h <<\_ACEOF
11829 #define FSTYPE_GETMNT 1
11833 echo "$as_me: failed program was:" >&5
11834 sed 's/^/| /' conftest.$ac_ext >&5
11838 rm -f conftest.err conftest.$ac_ext
11840 echo "$as_me:$LINENO: result: $fstype" >&5
11841 echo "${ECHO_T}$fstype" >&6
11843 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
11844 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
11845 if test "${ac_cv_type_signal+set}" = set; then
11846 echo $ECHO_N "(cached) $ECHO_C" >&6
11848 cat >conftest.$ac_ext <<_ACEOF
11849 #line $LINENO "configure"
11852 cat confdefs.h >>conftest.$ac_ext
11853 cat >>conftest.$ac_ext <<_ACEOF
11854 /* end confdefs.h. */
11855 #include <sys/types.h>
11856 #include <signal.h>
11861 extern "C" void (*signal (int, void (*)(int)))(int);
11863 void (*signal ()) ();
11874 rm -f conftest.$ac_objext
11875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11876 (eval $ac_compile) 2>&5
11878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11879 (exit $ac_status); } &&
11880 { ac_try='test -s conftest.$ac_objext'
11881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11882 (eval $ac_try) 2>&5
11884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11885 (exit $ac_status); }; }; then
11886 ac_cv_type_signal=void
11888 echo "$as_me: failed program was:" >&5
11889 sed 's/^/| /' conftest.$ac_ext >&5
11891 ac_cv_type_signal=int
11893 rm -f conftest.$ac_objext conftest.$ac_ext
11895 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
11896 echo "${ECHO_T}$ac_cv_type_signal" >&6
11898 cat >>confdefs.h <<_ACEOF
11899 #define RETSIGTYPE $ac_cv_type_signal
11904 echo "$as_me:$LINENO: checking for type of signal functions" >&5
11905 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
11906 if test "${bash_cv_signal_vintage+set}" = set; then
11907 echo $ECHO_N "(cached) $ECHO_C" >&6
11910 cat >conftest.$ac_ext <<_ACEOF
11911 #line $LINENO "configure"
11914 cat confdefs.h >>conftest.$ac_ext
11915 cat >>conftest.$ac_ext <<_ACEOF
11916 /* end confdefs.h. */
11917 #include <signal.h>
11923 struct sigaction sa;
11924 sigemptyset(&ss); sigsuspend(&ss);
11925 sigaction(SIGINT, &sa, (struct sigaction *) 0);
11926 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
11932 rm -f conftest.$ac_objext conftest$ac_exeext
11933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11934 (eval $ac_link) 2>&5
11936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11937 (exit $ac_status); } &&
11938 { ac_try='test -s conftest$ac_exeext'
11939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11940 (eval $ac_try) 2>&5
11942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11943 (exit $ac_status); }; }; then
11944 bash_cv_signal_vintage=posix
11946 echo "$as_me: failed program was:" >&5
11947 sed 's/^/| /' conftest.$ac_ext >&5
11950 cat >conftest.$ac_ext <<_ACEOF
11951 #line $LINENO "configure"
11954 cat confdefs.h >>conftest.$ac_ext
11955 cat >>conftest.$ac_ext <<_ACEOF
11956 /* end confdefs.h. */
11957 #include <signal.h>
11962 int mask = sigmask(SIGINT);
11963 sigsetmask(mask); sigblock(mask); sigpause(mask);
11969 rm -f conftest.$ac_objext conftest$ac_exeext
11970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11971 (eval $ac_link) 2>&5
11973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11974 (exit $ac_status); } &&
11975 { ac_try='test -s conftest$ac_exeext'
11976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11977 (eval $ac_try) 2>&5
11979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11980 (exit $ac_status); }; }; then
11981 bash_cv_signal_vintage=4.2bsd
11983 echo "$as_me: failed program was:" >&5
11984 sed 's/^/| /' conftest.$ac_ext >&5
11987 cat >conftest.$ac_ext <<_ACEOF
11988 #line $LINENO "configure"
11991 cat confdefs.h >>conftest.$ac_ext
11992 cat >>conftest.$ac_ext <<_ACEOF
11993 /* end confdefs.h. */
11995 #include <signal.h>
11996 RETSIGTYPE foo() { }
12001 int mask = sigmask(SIGINT);
12002 sigset(SIGINT, foo); sigrelse(SIGINT);
12003 sighold(SIGINT); sigpause(SIGINT);
12009 rm -f conftest.$ac_objext conftest$ac_exeext
12010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12011 (eval $ac_link) 2>&5
12013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12014 (exit $ac_status); } &&
12015 { ac_try='test -s conftest$ac_exeext'
12016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12017 (eval $ac_try) 2>&5
12019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12020 (exit $ac_status); }; }; then
12021 bash_cv_signal_vintage=svr3
12023 echo "$as_me: failed program was:" >&5
12024 sed 's/^/| /' conftest.$ac_ext >&5
12026 bash_cv_signal_vintage=v7
12029 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12032 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12035 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12039 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
12040 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
12041 if test "$bash_cv_signal_vintage" = posix; then
12042 cat >>confdefs.h <<\_ACEOF
12043 #define HAVE_POSIX_SIGNALS 1
12046 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
12047 cat >>confdefs.h <<\_ACEOF
12048 #define HAVE_BSD_SIGNALS 1
12051 elif test "$bash_cv_signal_vintage" = svr3; then
12052 cat >>confdefs.h <<\_ACEOF
12053 #define HAVE_USG_SIGHOLD 1
12058 echo "$as_me:$LINENO: checking for mode_t" >&5
12059 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
12060 if test "${ac_cv_type_mode_t+set}" = set; then
12061 echo $ECHO_N "(cached) $ECHO_C" >&6
12063 cat >conftest.$ac_ext <<_ACEOF
12064 #line $LINENO "configure"
12067 cat confdefs.h >>conftest.$ac_ext
12068 cat >>conftest.$ac_ext <<_ACEOF
12069 /* end confdefs.h. */
12070 $ac_includes_default
12076 if (sizeof (mode_t))
12082 rm -f conftest.$ac_objext
12083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12084 (eval $ac_compile) 2>&5
12086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12087 (exit $ac_status); } &&
12088 { ac_try='test -s conftest.$ac_objext'
12089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12090 (eval $ac_try) 2>&5
12092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12093 (exit $ac_status); }; }; then
12094 ac_cv_type_mode_t=yes
12096 echo "$as_me: failed program was:" >&5
12097 sed 's/^/| /' conftest.$ac_ext >&5
12099 ac_cv_type_mode_t=no
12101 rm -f conftest.$ac_objext conftest.$ac_ext
12103 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
12104 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
12105 if test $ac_cv_type_mode_t = yes; then
12109 cat >>confdefs.h <<_ACEOF
12115 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
12116 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
12117 if test "${ac_cv_type_uid_t+set}" = set; then
12118 echo $ECHO_N "(cached) $ECHO_C" >&6
12120 cat >conftest.$ac_ext <<_ACEOF
12121 #line $LINENO "configure"
12124 cat confdefs.h >>conftest.$ac_ext
12125 cat >>conftest.$ac_ext <<_ACEOF
12126 /* end confdefs.h. */
12127 #include <sys/types.h>
12130 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12131 $EGREP "uid_t" >/dev/null 2>&1; then
12132 ac_cv_type_uid_t=yes
12134 ac_cv_type_uid_t=no
12139 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
12140 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
12141 if test $ac_cv_type_uid_t = no; then
12143 cat >>confdefs.h <<\_ACEOF
12148 cat >>confdefs.h <<\_ACEOF
12154 echo "$as_me:$LINENO: checking for size_t" >&5
12155 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
12156 if test "${ac_cv_type_size_t+set}" = set; then
12157 echo $ECHO_N "(cached) $ECHO_C" >&6
12159 cat >conftest.$ac_ext <<_ACEOF
12160 #line $LINENO "configure"
12163 cat confdefs.h >>conftest.$ac_ext
12164 cat >>conftest.$ac_ext <<_ACEOF
12165 /* end confdefs.h. */
12166 $ac_includes_default
12172 if (sizeof (size_t))
12178 rm -f conftest.$ac_objext
12179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12180 (eval $ac_compile) 2>&5
12182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12183 (exit $ac_status); } &&
12184 { ac_try='test -s conftest.$ac_objext'
12185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12186 (eval $ac_try) 2>&5
12188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12189 (exit $ac_status); }; }; then
12190 ac_cv_type_size_t=yes
12192 echo "$as_me: failed program was:" >&5
12193 sed 's/^/| /' conftest.$ac_ext >&5
12195 ac_cv_type_size_t=no
12197 rm -f conftest.$ac_objext conftest.$ac_ext
12199 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
12200 echo "${ECHO_T}$ac_cv_type_size_t" >&6
12201 if test $ac_cv_type_size_t = yes; then
12205 cat >>confdefs.h <<_ACEOF
12206 #define size_t unsigned
12211 echo "$as_me:$LINENO: checking for pid_t" >&5
12212 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
12213 if test "${ac_cv_type_pid_t+set}" = set; then
12214 echo $ECHO_N "(cached) $ECHO_C" >&6
12216 cat >conftest.$ac_ext <<_ACEOF
12217 #line $LINENO "configure"
12220 cat confdefs.h >>conftest.$ac_ext
12221 cat >>conftest.$ac_ext <<_ACEOF
12222 /* end confdefs.h. */
12223 $ac_includes_default
12229 if (sizeof (pid_t))
12235 rm -f conftest.$ac_objext
12236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12237 (eval $ac_compile) 2>&5
12239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12240 (exit $ac_status); } &&
12241 { ac_try='test -s conftest.$ac_objext'
12242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12243 (eval $ac_try) 2>&5
12245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12246 (exit $ac_status); }; }; then
12247 ac_cv_type_pid_t=yes
12249 echo "$as_me: failed program was:" >&5
12250 sed 's/^/| /' conftest.$ac_ext >&5
12252 ac_cv_type_pid_t=no
12254 rm -f conftest.$ac_objext conftest.$ac_ext
12256 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
12257 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
12258 if test $ac_cv_type_pid_t = yes; then
12262 cat >>confdefs.h <<_ACEOF
12268 echo "$as_me:$LINENO: checking for off_t" >&5
12269 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
12270 if test "${ac_cv_type_off_t+set}" = set; then
12271 echo $ECHO_N "(cached) $ECHO_C" >&6
12273 cat >conftest.$ac_ext <<_ACEOF
12274 #line $LINENO "configure"
12277 cat confdefs.h >>conftest.$ac_ext
12278 cat >>conftest.$ac_ext <<_ACEOF
12279 /* end confdefs.h. */
12280 $ac_includes_default
12286 if (sizeof (off_t))
12292 rm -f conftest.$ac_objext
12293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12294 (eval $ac_compile) 2>&5
12296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12297 (exit $ac_status); } &&
12298 { ac_try='test -s conftest.$ac_objext'
12299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12300 (eval $ac_try) 2>&5
12302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12303 (exit $ac_status); }; }; then
12304 ac_cv_type_off_t=yes
12306 echo "$as_me: failed program was:" >&5
12307 sed 's/^/| /' conftest.$ac_ext >&5
12309 ac_cv_type_off_t=no
12311 rm -f conftest.$ac_objext conftest.$ac_ext
12313 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
12314 echo "${ECHO_T}$ac_cv_type_off_t" >&6
12315 if test $ac_cv_type_off_t = yes; then
12319 cat >>confdefs.h <<_ACEOF
12325 echo "$as_me:$LINENO: checking for ino_t" >&5
12326 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
12327 if test "${ac_cv_type_ino_t+set}" = set; then
12328 echo $ECHO_N "(cached) $ECHO_C" >&6
12330 cat >conftest.$ac_ext <<_ACEOF
12331 #line $LINENO "configure"
12334 cat confdefs.h >>conftest.$ac_ext
12335 cat >>conftest.$ac_ext <<_ACEOF
12336 /* end confdefs.h. */
12337 $ac_includes_default
12343 if (sizeof (ino_t))
12349 rm -f conftest.$ac_objext
12350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12351 (eval $ac_compile) 2>&5
12353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12354 (exit $ac_status); } &&
12355 { ac_try='test -s conftest.$ac_objext'
12356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12357 (eval $ac_try) 2>&5
12359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12360 (exit $ac_status); }; }; then
12361 ac_cv_type_ino_t=yes
12363 echo "$as_me: failed program was:" >&5
12364 sed 's/^/| /' conftest.$ac_ext >&5
12366 ac_cv_type_ino_t=no
12368 rm -f conftest.$ac_objext conftest.$ac_ext
12370 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
12371 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
12372 if test $ac_cv_type_ino_t = yes; then
12376 cat >>confdefs.h <<_ACEOF
12377 #define ino_t unsigned long
12382 echo "$as_me:$LINENO: checking for dev_t" >&5
12383 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
12384 if test "${ac_cv_type_dev_t+set}" = set; then
12385 echo $ECHO_N "(cached) $ECHO_C" >&6
12387 cat >conftest.$ac_ext <<_ACEOF
12388 #line $LINENO "configure"
12391 cat confdefs.h >>conftest.$ac_ext
12392 cat >>conftest.$ac_ext <<_ACEOF
12393 /* end confdefs.h. */
12394 $ac_includes_default
12400 if (sizeof (dev_t))
12406 rm -f conftest.$ac_objext
12407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12408 (eval $ac_compile) 2>&5
12410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12411 (exit $ac_status); } &&
12412 { ac_try='test -s conftest.$ac_objext'
12413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12414 (eval $ac_try) 2>&5
12416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12417 (exit $ac_status); }; }; then
12418 ac_cv_type_dev_t=yes
12420 echo "$as_me: failed program was:" >&5
12421 sed 's/^/| /' conftest.$ac_ext >&5
12423 ac_cv_type_dev_t=no
12425 rm -f conftest.$ac_objext conftest.$ac_ext
12427 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
12428 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
12429 if test $ac_cv_type_dev_t = yes; then
12433 cat >>confdefs.h <<_ACEOF
12434 #define dev_t unsigned long
12439 echo "$as_me:$LINENO: checking for daddr_t" >&5
12440 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
12441 if test "${ac_cv_type_daddr_t+set}" = set; then
12442 echo $ECHO_N "(cached) $ECHO_C" >&6
12444 cat >conftest.$ac_ext <<_ACEOF
12445 #line $LINENO "configure"
12448 cat confdefs.h >>conftest.$ac_ext
12449 cat >>conftest.$ac_ext <<_ACEOF
12450 /* end confdefs.h. */
12451 $ac_includes_default
12457 if (sizeof (daddr_t))
12463 rm -f conftest.$ac_objext
12464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12465 (eval $ac_compile) 2>&5
12467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12468 (exit $ac_status); } &&
12469 { ac_try='test -s conftest.$ac_objext'
12470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12471 (eval $ac_try) 2>&5
12473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474 (exit $ac_status); }; }; then
12475 ac_cv_type_daddr_t=yes
12477 echo "$as_me: failed program was:" >&5
12478 sed 's/^/| /' conftest.$ac_ext >&5
12480 ac_cv_type_daddr_t=no
12482 rm -f conftest.$ac_objext conftest.$ac_ext
12484 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
12485 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
12486 if test $ac_cv_type_daddr_t = yes; then
12490 cat >>confdefs.h <<_ACEOF
12491 #define daddr_t long
12496 echo "$as_me:$LINENO: checking for major_t" >&5
12497 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
12498 if test "${ac_cv_type_major_t+set}" = set; then
12499 echo $ECHO_N "(cached) $ECHO_C" >&6
12501 cat >conftest.$ac_ext <<_ACEOF
12502 #line $LINENO "configure"
12505 cat confdefs.h >>conftest.$ac_ext
12506 cat >>conftest.$ac_ext <<_ACEOF
12507 /* end confdefs.h. */
12508 $ac_includes_default
12514 if (sizeof (major_t))
12520 rm -f conftest.$ac_objext
12521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12522 (eval $ac_compile) 2>&5
12524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12525 (exit $ac_status); } &&
12526 { ac_try='test -s conftest.$ac_objext'
12527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12528 (eval $ac_try) 2>&5
12530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12531 (exit $ac_status); }; }; then
12532 ac_cv_type_major_t=yes
12534 echo "$as_me: failed program was:" >&5
12535 sed 's/^/| /' conftest.$ac_ext >&5
12537 ac_cv_type_major_t=no
12539 rm -f conftest.$ac_objext conftest.$ac_ext
12541 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
12542 echo "${ECHO_T}$ac_cv_type_major_t" >&6
12543 if test $ac_cv_type_major_t = yes; then
12547 cat >>confdefs.h <<_ACEOF
12548 #define major_t int
12553 echo "$as_me:$LINENO: checking for minor_t" >&5
12554 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
12555 if test "${ac_cv_type_minor_t+set}" = set; then
12556 echo $ECHO_N "(cached) $ECHO_C" >&6
12558 cat >conftest.$ac_ext <<_ACEOF
12559 #line $LINENO "configure"
12562 cat confdefs.h >>conftest.$ac_ext
12563 cat >>conftest.$ac_ext <<_ACEOF
12564 /* end confdefs.h. */
12565 $ac_includes_default
12571 if (sizeof (minor_t))
12577 rm -f conftest.$ac_objext
12578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12579 (eval $ac_compile) 2>&5
12581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12582 (exit $ac_status); } &&
12583 { ac_try='test -s conftest.$ac_objext'
12584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12585 (eval $ac_try) 2>&5
12587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12588 (exit $ac_status); }; }; then
12589 ac_cv_type_minor_t=yes
12591 echo "$as_me: failed program was:" >&5
12592 sed 's/^/| /' conftest.$ac_ext >&5
12594 ac_cv_type_minor_t=no
12596 rm -f conftest.$ac_objext conftest.$ac_ext
12598 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
12599 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
12600 if test $ac_cv_type_minor_t = yes; then
12604 cat >>confdefs.h <<_ACEOF
12605 #define minor_t int
12610 echo "$as_me:$LINENO: checking for ssize_t" >&5
12611 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
12612 if test "${ac_cv_type_ssize_t+set}" = set; then
12613 echo $ECHO_N "(cached) $ECHO_C" >&6
12615 cat >conftest.$ac_ext <<_ACEOF
12616 #line $LINENO "configure"
12619 cat confdefs.h >>conftest.$ac_ext
12620 cat >>conftest.$ac_ext <<_ACEOF
12621 /* end confdefs.h. */
12622 $ac_includes_default
12628 if (sizeof (ssize_t))
12634 rm -f conftest.$ac_objext
12635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12636 (eval $ac_compile) 2>&5
12638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639 (exit $ac_status); } &&
12640 { ac_try='test -s conftest.$ac_objext'
12641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12642 (eval $ac_try) 2>&5
12644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12645 (exit $ac_status); }; }; then
12646 ac_cv_type_ssize_t=yes
12648 echo "$as_me: failed program was:" >&5
12649 sed 's/^/| /' conftest.$ac_ext >&5
12651 ac_cv_type_ssize_t=no
12653 rm -f conftest.$ac_objext conftest.$ac_ext
12655 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
12656 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
12657 if test $ac_cv_type_ssize_t = yes; then
12661 cat >>confdefs.h <<_ACEOF
12662 #define ssize_t int
12667 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
12668 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
12669 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
12670 echo $ECHO_N "(cached) $ECHO_C" >&6
12672 cat >conftest.$ac_ext <<_ACEOF
12673 #line $LINENO "configure"
12676 cat confdefs.h >>conftest.$ac_ext
12677 cat >>conftest.$ac_ext <<_ACEOF
12678 /* end confdefs.h. */
12679 $ac_includes_default
12683 static struct stat ac_aggr;
12684 if (ac_aggr.st_blocks)
12690 rm -f conftest.$ac_objext
12691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12692 (eval $ac_compile) 2>&5
12694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12695 (exit $ac_status); } &&
12696 { ac_try='test -s conftest.$ac_objext'
12697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12698 (eval $ac_try) 2>&5
12700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12701 (exit $ac_status); }; }; then
12702 ac_cv_member_struct_stat_st_blocks=yes
12704 echo "$as_me: failed program was:" >&5
12705 sed 's/^/| /' conftest.$ac_ext >&5
12707 cat >conftest.$ac_ext <<_ACEOF
12708 #line $LINENO "configure"
12711 cat confdefs.h >>conftest.$ac_ext
12712 cat >>conftest.$ac_ext <<_ACEOF
12713 /* end confdefs.h. */
12714 $ac_includes_default
12718 static struct stat ac_aggr;
12719 if (sizeof ac_aggr.st_blocks)
12725 rm -f conftest.$ac_objext
12726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12727 (eval $ac_compile) 2>&5
12729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12730 (exit $ac_status); } &&
12731 { ac_try='test -s conftest.$ac_objext'
12732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12733 (eval $ac_try) 2>&5
12735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12736 (exit $ac_status); }; }; then
12737 ac_cv_member_struct_stat_st_blocks=yes
12739 echo "$as_me: failed program was:" >&5
12740 sed 's/^/| /' conftest.$ac_ext >&5
12742 ac_cv_member_struct_stat_st_blocks=no
12744 rm -f conftest.$ac_objext conftest.$ac_ext
12746 rm -f conftest.$ac_objext conftest.$ac_ext
12748 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
12749 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
12750 if test $ac_cv_member_struct_stat_st_blocks = yes; then
12752 cat >>confdefs.h <<_ACEOF
12753 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12757 cat >>confdefs.h <<\_ACEOF
12758 #define HAVE_ST_BLOCKS 1
12762 LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
12767 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
12768 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
12769 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
12770 echo $ECHO_N "(cached) $ECHO_C" >&6
12772 cat >conftest.$ac_ext <<_ACEOF
12773 #line $LINENO "configure"
12776 cat confdefs.h >>conftest.$ac_ext
12777 cat >>conftest.$ac_ext <<_ACEOF
12778 /* end confdefs.h. */
12779 $ac_includes_default
12783 static struct stat ac_aggr;
12784 if (ac_aggr.st_rdev)
12790 rm -f conftest.$ac_objext
12791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12792 (eval $ac_compile) 2>&5
12794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795 (exit $ac_status); } &&
12796 { ac_try='test -s conftest.$ac_objext'
12797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12798 (eval $ac_try) 2>&5
12800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801 (exit $ac_status); }; }; then
12802 ac_cv_member_struct_stat_st_rdev=yes
12804 echo "$as_me: failed program was:" >&5
12805 sed 's/^/| /' conftest.$ac_ext >&5
12807 cat >conftest.$ac_ext <<_ACEOF
12808 #line $LINENO "configure"
12811 cat confdefs.h >>conftest.$ac_ext
12812 cat >>conftest.$ac_ext <<_ACEOF
12813 /* end confdefs.h. */
12814 $ac_includes_default
12818 static struct stat ac_aggr;
12819 if (sizeof ac_aggr.st_rdev)
12825 rm -f conftest.$ac_objext
12826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12827 (eval $ac_compile) 2>&5
12829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12830 (exit $ac_status); } &&
12831 { ac_try='test -s conftest.$ac_objext'
12832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12833 (eval $ac_try) 2>&5
12835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12836 (exit $ac_status); }; }; then
12837 ac_cv_member_struct_stat_st_rdev=yes
12839 echo "$as_me: failed program was:" >&5
12840 sed 's/^/| /' conftest.$ac_ext >&5
12842 ac_cv_member_struct_stat_st_rdev=no
12844 rm -f conftest.$ac_objext conftest.$ac_ext
12846 rm -f conftest.$ac_objext conftest.$ac_ext
12848 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
12849 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
12850 if test $ac_cv_member_struct_stat_st_rdev = yes; then
12852 cat >>confdefs.h <<_ACEOF
12853 #define HAVE_STRUCT_STAT_ST_RDEV 1
12857 cat >>confdefs.h <<\_ACEOF
12858 #define HAVE_ST_RDEV 1
12864 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12865 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
12866 if test "${ac_cv_struct_tm+set}" = set; then
12867 echo $ECHO_N "(cached) $ECHO_C" >&6
12869 cat >conftest.$ac_ext <<_ACEOF
12870 #line $LINENO "configure"
12873 cat confdefs.h >>conftest.$ac_ext
12874 cat >>conftest.$ac_ext <<_ACEOF
12875 /* end confdefs.h. */
12876 #include <sys/types.h>
12882 struct tm *tp; tp->tm_sec;
12887 rm -f conftest.$ac_objext
12888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12889 (eval $ac_compile) 2>&5
12891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12892 (exit $ac_status); } &&
12893 { ac_try='test -s conftest.$ac_objext'
12894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12895 (eval $ac_try) 2>&5
12897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12898 (exit $ac_status); }; }; then
12899 ac_cv_struct_tm=time.h
12901 echo "$as_me: failed program was:" >&5
12902 sed 's/^/| /' conftest.$ac_ext >&5
12904 ac_cv_struct_tm=sys/time.h
12906 rm -f conftest.$ac_objext conftest.$ac_ext
12908 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12909 echo "${ECHO_T}$ac_cv_struct_tm" >&6
12910 if test $ac_cv_struct_tm = sys/time.h; then
12912 cat >>confdefs.h <<\_ACEOF
12913 #define TM_IN_SYS_TIME 1
12918 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12919 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12920 if test "${ac_cv_c_const+set}" = set; then
12921 echo $ECHO_N "(cached) $ECHO_C" >&6
12923 cat >conftest.$ac_ext <<_ACEOF
12924 #line $LINENO "configure"
12927 cat confdefs.h >>conftest.$ac_ext
12928 cat >>conftest.$ac_ext <<_ACEOF
12929 /* end confdefs.h. */
12934 /* FIXME: Include the comments suggested by Paul. */
12935 #ifndef __cplusplus
12936 /* Ultrix mips cc rejects this. */
12937 typedef int charset[2];
12939 /* SunOS 4.1.1 cc rejects this. */
12940 char const *const *ccp;
12942 /* NEC SVR4.0.2 mips cc rejects this. */
12943 struct point {int x, y;};
12944 static struct point const zero = {0,0};
12945 /* AIX XL C 1.02.0.0 rejects this.
12946 It does not let you subtract one const X* pointer from another in
12947 an arm of an if-expression whose if-part is not a constant
12949 const char *g = "string";
12950 ccp = &g + (g ? g-g : 0);
12951 /* HPUX 7.0 cc rejects these. */
12954 ccp = (char const *const *) p;
12955 { /* SCO 3.2v4 cc rejects this. */
12957 char const *s = 0 ? (char *) 0 : (char const *) 0;
12961 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12962 int x[] = {25, 17};
12963 const int *foo = &x[0];
12966 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12967 typedef const int *iptr;
12971 { /* AIX XL C 1.02.0.0 rejects this saying
12972 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12973 struct s { int j; const int *ap[3]; };
12974 struct s *b; b->j = 5;
12976 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12977 const int foo = 10;
12985 rm -f conftest.$ac_objext
12986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12987 (eval $ac_compile) 2>&5
12989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12990 (exit $ac_status); } &&
12991 { ac_try='test -s conftest.$ac_objext'
12992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12993 (eval $ac_try) 2>&5
12995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12996 (exit $ac_status); }; }; then
12999 echo "$as_me: failed program was:" >&5
13000 sed 's/^/| /' conftest.$ac_ext >&5
13004 rm -f conftest.$ac_objext conftest.$ac_ext
13006 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13007 echo "${ECHO_T}$ac_cv_c_const" >&6
13008 if test $ac_cv_c_const = no; then
13010 cat >>confdefs.h <<\_ACEOF
13018 echo "$as_me:$LINENO: checking for char" >&5
13019 echo $ECHO_N "checking for char... $ECHO_C" >&6
13020 if test "${ac_cv_type_char+set}" = set; then
13021 echo $ECHO_N "(cached) $ECHO_C" >&6
13023 cat >conftest.$ac_ext <<_ACEOF
13024 #line $LINENO "configure"
13027 cat confdefs.h >>conftest.$ac_ext
13028 cat >>conftest.$ac_ext <<_ACEOF
13029 /* end confdefs.h. */
13030 $ac_includes_default
13042 rm -f conftest.$ac_objext
13043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13044 (eval $ac_compile) 2>&5
13046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13047 (exit $ac_status); } &&
13048 { ac_try='test -s conftest.$ac_objext'
13049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13050 (eval $ac_try) 2>&5
13052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13053 (exit $ac_status); }; }; then
13054 ac_cv_type_char=yes
13056 echo "$as_me: failed program was:" >&5
13057 sed 's/^/| /' conftest.$ac_ext >&5
13061 rm -f conftest.$ac_objext conftest.$ac_ext
13063 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
13064 echo "${ECHO_T}$ac_cv_type_char" >&6
13066 echo "$as_me:$LINENO: checking size of char" >&5
13067 echo $ECHO_N "checking size of char... $ECHO_C" >&6
13068 if test "${ac_cv_sizeof_char+set}" = set; then
13069 echo $ECHO_N "(cached) $ECHO_C" >&6
13071 if test "$ac_cv_type_char" = yes; then
13072 # The cast to unsigned long works around a bug in the HP C Compiler
13073 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13074 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13075 # This bug is HP SR number 8606223364.
13076 if test "$cross_compiling" = yes; then
13077 # Depending upon the size, compute the lo and hi bounds.
13078 cat >conftest.$ac_ext <<_ACEOF
13079 #line $LINENO "configure"
13082 cat confdefs.h >>conftest.$ac_ext
13083 cat >>conftest.$ac_ext <<_ACEOF
13084 /* end confdefs.h. */
13085 $ac_includes_default
13089 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
13096 rm -f conftest.$ac_objext
13097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13098 (eval $ac_compile) 2>&5
13100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13101 (exit $ac_status); } &&
13102 { ac_try='test -s conftest.$ac_objext'
13103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13104 (eval $ac_try) 2>&5
13106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13107 (exit $ac_status); }; }; then
13110 cat >conftest.$ac_ext <<_ACEOF
13111 #line $LINENO "configure"
13114 cat confdefs.h >>conftest.$ac_ext
13115 cat >>conftest.$ac_ext <<_ACEOF
13116 /* end confdefs.h. */
13117 $ac_includes_default
13121 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
13128 rm -f conftest.$ac_objext
13129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13130 (eval $ac_compile) 2>&5
13132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13133 (exit $ac_status); } &&
13134 { ac_try='test -s conftest.$ac_objext'
13135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13136 (eval $ac_try) 2>&5
13138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13139 (exit $ac_status); }; }; then
13140 ac_hi=$ac_mid; break
13142 echo "$as_me: failed program was:" >&5
13143 sed 's/^/| /' conftest.$ac_ext >&5
13145 ac_lo=`expr $ac_mid + 1`
13146 if test $ac_lo -le $ac_mid; then
13150 ac_mid=`expr 2 '*' $ac_mid + 1`
13152 rm -f conftest.$ac_objext conftest.$ac_ext
13155 echo "$as_me: failed program was:" >&5
13156 sed 's/^/| /' conftest.$ac_ext >&5
13158 cat >conftest.$ac_ext <<_ACEOF
13159 #line $LINENO "configure"
13162 cat confdefs.h >>conftest.$ac_ext
13163 cat >>conftest.$ac_ext <<_ACEOF
13164 /* end confdefs.h. */
13165 $ac_includes_default
13169 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
13176 rm -f conftest.$ac_objext
13177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13178 (eval $ac_compile) 2>&5
13180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13181 (exit $ac_status); } &&
13182 { ac_try='test -s conftest.$ac_objext'
13183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13184 (eval $ac_try) 2>&5
13186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13187 (exit $ac_status); }; }; then
13190 cat >conftest.$ac_ext <<_ACEOF
13191 #line $LINENO "configure"
13194 cat confdefs.h >>conftest.$ac_ext
13195 cat >>conftest.$ac_ext <<_ACEOF
13196 /* end confdefs.h. */
13197 $ac_includes_default
13201 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
13208 rm -f conftest.$ac_objext
13209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13210 (eval $ac_compile) 2>&5
13212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13213 (exit $ac_status); } &&
13214 { ac_try='test -s conftest.$ac_objext'
13215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13216 (eval $ac_try) 2>&5
13218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13219 (exit $ac_status); }; }; then
13220 ac_lo=$ac_mid; break
13222 echo "$as_me: failed program was:" >&5
13223 sed 's/^/| /' conftest.$ac_ext >&5
13225 ac_hi=`expr '(' $ac_mid ')' - 1`
13226 if test $ac_mid -le $ac_hi; then
13230 ac_mid=`expr 2 '*' $ac_mid`
13232 rm -f conftest.$ac_objext conftest.$ac_ext
13235 echo "$as_me: failed program was:" >&5
13236 sed 's/^/| /' conftest.$ac_ext >&5
13240 rm -f conftest.$ac_objext conftest.$ac_ext
13242 rm -f conftest.$ac_objext conftest.$ac_ext
13243 # Binary search between lo and hi bounds.
13244 while test "x$ac_lo" != "x$ac_hi"; do
13245 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13246 cat >conftest.$ac_ext <<_ACEOF
13247 #line $LINENO "configure"
13250 cat confdefs.h >>conftest.$ac_ext
13251 cat >>conftest.$ac_ext <<_ACEOF
13252 /* end confdefs.h. */
13253 $ac_includes_default
13257 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
13264 rm -f conftest.$ac_objext
13265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13266 (eval $ac_compile) 2>&5
13268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13269 (exit $ac_status); } &&
13270 { ac_try='test -s conftest.$ac_objext'
13271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13272 (eval $ac_try) 2>&5
13274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13275 (exit $ac_status); }; }; then
13278 echo "$as_me: failed program was:" >&5
13279 sed 's/^/| /' conftest.$ac_ext >&5
13281 ac_lo=`expr '(' $ac_mid ')' + 1`
13283 rm -f conftest.$ac_objext conftest.$ac_ext
13286 ?*) ac_cv_sizeof_char=$ac_lo;;
13287 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
13288 See \`config.log' for more details." >&5
13289 echo "$as_me: error: cannot compute sizeof (char), 77
13290 See \`config.log' for more details." >&2;}
13291 { (exit 1); exit 1; }; } ;;
13294 if test "$cross_compiling" = yes; then
13295 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13296 See \`config.log' for more details." >&5
13297 echo "$as_me: error: cannot run test program while cross compiling
13298 See \`config.log' for more details." >&2;}
13299 { (exit 1); exit 1; }; }
13301 cat >conftest.$ac_ext <<_ACEOF
13302 #line $LINENO "configure"
13305 cat confdefs.h >>conftest.$ac_ext
13306 cat >>conftest.$ac_ext <<_ACEOF
13307 /* end confdefs.h. */
13308 $ac_includes_default
13309 long longval () { return (long) (sizeof (char)); }
13310 unsigned long ulongval () { return (long) (sizeof (char)); }
13312 #include <stdlib.h>
13317 FILE *f = fopen ("conftest.val", "w");
13320 if (((long) (sizeof (char))) < 0)
13322 long i = longval ();
13323 if (i != ((long) (sizeof (char))))
13325 fprintf (f, "%ld\n", i);
13329 unsigned long i = ulongval ();
13330 if (i != ((long) (sizeof (char))))
13332 fprintf (f, "%lu\n", i);
13334 exit (ferror (f) || fclose (f) != 0);
13340 rm -f conftest$ac_exeext
13341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13342 (eval $ac_link) 2>&5
13344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13345 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13347 (eval $ac_try) 2>&5
13349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13350 (exit $ac_status); }; }; then
13351 ac_cv_sizeof_char=`cat conftest.val`
13353 echo "$as_me: program exited with status $ac_status" >&5
13354 echo "$as_me: failed program was:" >&5
13355 sed 's/^/| /' conftest.$ac_ext >&5
13357 ( exit $ac_status )
13358 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
13359 See \`config.log' for more details." >&5
13360 echo "$as_me: error: cannot compute sizeof (char), 77
13361 See \`config.log' for more details." >&2;}
13362 { (exit 1); exit 1; }; }
13364 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13369 ac_cv_sizeof_char=0
13372 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
13373 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
13374 cat >>confdefs.h <<_ACEOF
13375 #define SIZEOF_CHAR $ac_cv_sizeof_char
13379 echo "$as_me:$LINENO: checking for short int" >&5
13380 echo $ECHO_N "checking for short int... $ECHO_C" >&6
13381 if test "${ac_cv_type_short_int+set}" = set; then
13382 echo $ECHO_N "(cached) $ECHO_C" >&6
13384 cat >conftest.$ac_ext <<_ACEOF
13385 #line $LINENO "configure"
13388 cat confdefs.h >>conftest.$ac_ext
13389 cat >>conftest.$ac_ext <<_ACEOF
13390 /* end confdefs.h. */
13391 $ac_includes_default
13395 if ((short int *) 0)
13397 if (sizeof (short int))
13403 rm -f conftest.$ac_objext
13404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13405 (eval $ac_compile) 2>&5
13407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13408 (exit $ac_status); } &&
13409 { ac_try='test -s conftest.$ac_objext'
13410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13411 (eval $ac_try) 2>&5
13413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13414 (exit $ac_status); }; }; then
13415 ac_cv_type_short_int=yes
13417 echo "$as_me: failed program was:" >&5
13418 sed 's/^/| /' conftest.$ac_ext >&5
13420 ac_cv_type_short_int=no
13422 rm -f conftest.$ac_objext conftest.$ac_ext
13424 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
13425 echo "${ECHO_T}$ac_cv_type_short_int" >&6
13427 echo "$as_me:$LINENO: checking size of short int" >&5
13428 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
13429 if test "${ac_cv_sizeof_short_int+set}" = set; then
13430 echo $ECHO_N "(cached) $ECHO_C" >&6
13432 if test "$ac_cv_type_short_int" = yes; then
13433 # The cast to unsigned long works around a bug in the HP C Compiler
13434 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13435 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13436 # This bug is HP SR number 8606223364.
13437 if test "$cross_compiling" = yes; then
13438 # Depending upon the size, compute the lo and hi bounds.
13439 cat >conftest.$ac_ext <<_ACEOF
13440 #line $LINENO "configure"
13443 cat confdefs.h >>conftest.$ac_ext
13444 cat >>conftest.$ac_ext <<_ACEOF
13445 /* end confdefs.h. */
13446 $ac_includes_default
13450 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
13457 rm -f conftest.$ac_objext
13458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13459 (eval $ac_compile) 2>&5
13461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13462 (exit $ac_status); } &&
13463 { ac_try='test -s conftest.$ac_objext'
13464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13465 (eval $ac_try) 2>&5
13467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13468 (exit $ac_status); }; }; then
13471 cat >conftest.$ac_ext <<_ACEOF
13472 #line $LINENO "configure"
13475 cat confdefs.h >>conftest.$ac_ext
13476 cat >>conftest.$ac_ext <<_ACEOF
13477 /* end confdefs.h. */
13478 $ac_includes_default
13482 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
13489 rm -f conftest.$ac_objext
13490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13491 (eval $ac_compile) 2>&5
13493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13494 (exit $ac_status); } &&
13495 { ac_try='test -s conftest.$ac_objext'
13496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13497 (eval $ac_try) 2>&5
13499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13500 (exit $ac_status); }; }; then
13501 ac_hi=$ac_mid; break
13503 echo "$as_me: failed program was:" >&5
13504 sed 's/^/| /' conftest.$ac_ext >&5
13506 ac_lo=`expr $ac_mid + 1`
13507 if test $ac_lo -le $ac_mid; then
13511 ac_mid=`expr 2 '*' $ac_mid + 1`
13513 rm -f conftest.$ac_objext conftest.$ac_ext
13516 echo "$as_me: failed program was:" >&5
13517 sed 's/^/| /' conftest.$ac_ext >&5
13519 cat >conftest.$ac_ext <<_ACEOF
13520 #line $LINENO "configure"
13523 cat confdefs.h >>conftest.$ac_ext
13524 cat >>conftest.$ac_ext <<_ACEOF
13525 /* end confdefs.h. */
13526 $ac_includes_default
13530 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
13537 rm -f conftest.$ac_objext
13538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13539 (eval $ac_compile) 2>&5
13541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13542 (exit $ac_status); } &&
13543 { ac_try='test -s conftest.$ac_objext'
13544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13545 (eval $ac_try) 2>&5
13547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13548 (exit $ac_status); }; }; then
13551 cat >conftest.$ac_ext <<_ACEOF
13552 #line $LINENO "configure"
13555 cat confdefs.h >>conftest.$ac_ext
13556 cat >>conftest.$ac_ext <<_ACEOF
13557 /* end confdefs.h. */
13558 $ac_includes_default
13562 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
13569 rm -f conftest.$ac_objext
13570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13571 (eval $ac_compile) 2>&5
13573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13574 (exit $ac_status); } &&
13575 { ac_try='test -s conftest.$ac_objext'
13576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13577 (eval $ac_try) 2>&5
13579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13580 (exit $ac_status); }; }; then
13581 ac_lo=$ac_mid; break
13583 echo "$as_me: failed program was:" >&5
13584 sed 's/^/| /' conftest.$ac_ext >&5
13586 ac_hi=`expr '(' $ac_mid ')' - 1`
13587 if test $ac_mid -le $ac_hi; then
13591 ac_mid=`expr 2 '*' $ac_mid`
13593 rm -f conftest.$ac_objext conftest.$ac_ext
13596 echo "$as_me: failed program was:" >&5
13597 sed 's/^/| /' conftest.$ac_ext >&5
13601 rm -f conftest.$ac_objext conftest.$ac_ext
13603 rm -f conftest.$ac_objext conftest.$ac_ext
13604 # Binary search between lo and hi bounds.
13605 while test "x$ac_lo" != "x$ac_hi"; do
13606 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13607 cat >conftest.$ac_ext <<_ACEOF
13608 #line $LINENO "configure"
13611 cat confdefs.h >>conftest.$ac_ext
13612 cat >>conftest.$ac_ext <<_ACEOF
13613 /* end confdefs.h. */
13614 $ac_includes_default
13618 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
13625 rm -f conftest.$ac_objext
13626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13627 (eval $ac_compile) 2>&5
13629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13630 (exit $ac_status); } &&
13631 { ac_try='test -s conftest.$ac_objext'
13632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13633 (eval $ac_try) 2>&5
13635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13636 (exit $ac_status); }; }; then
13639 echo "$as_me: failed program was:" >&5
13640 sed 's/^/| /' conftest.$ac_ext >&5
13642 ac_lo=`expr '(' $ac_mid ')' + 1`
13644 rm -f conftest.$ac_objext conftest.$ac_ext
13647 ?*) ac_cv_sizeof_short_int=$ac_lo;;
13648 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
13649 See \`config.log' for more details." >&5
13650 echo "$as_me: error: cannot compute sizeof (short int), 77
13651 See \`config.log' for more details." >&2;}
13652 { (exit 1); exit 1; }; } ;;
13655 if test "$cross_compiling" = yes; then
13656 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13657 See \`config.log' for more details." >&5
13658 echo "$as_me: error: cannot run test program while cross compiling
13659 See \`config.log' for more details." >&2;}
13660 { (exit 1); exit 1; }; }
13662 cat >conftest.$ac_ext <<_ACEOF
13663 #line $LINENO "configure"
13666 cat confdefs.h >>conftest.$ac_ext
13667 cat >>conftest.$ac_ext <<_ACEOF
13668 /* end confdefs.h. */
13669 $ac_includes_default
13670 long longval () { return (long) (sizeof (short int)); }
13671 unsigned long ulongval () { return (long) (sizeof (short int)); }
13673 #include <stdlib.h>
13678 FILE *f = fopen ("conftest.val", "w");
13681 if (((long) (sizeof (short int))) < 0)
13683 long i = longval ();
13684 if (i != ((long) (sizeof (short int))))
13686 fprintf (f, "%ld\n", i);
13690 unsigned long i = ulongval ();
13691 if (i != ((long) (sizeof (short int))))
13693 fprintf (f, "%lu\n", i);
13695 exit (ferror (f) || fclose (f) != 0);
13701 rm -f conftest$ac_exeext
13702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13703 (eval $ac_link) 2>&5
13705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13706 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13708 (eval $ac_try) 2>&5
13710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13711 (exit $ac_status); }; }; then
13712 ac_cv_sizeof_short_int=`cat conftest.val`
13714 echo "$as_me: program exited with status $ac_status" >&5
13715 echo "$as_me: failed program was:" >&5
13716 sed 's/^/| /' conftest.$ac_ext >&5
13718 ( exit $ac_status )
13719 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
13720 See \`config.log' for more details." >&5
13721 echo "$as_me: error: cannot compute sizeof (short int), 77
13722 See \`config.log' for more details." >&2;}
13723 { (exit 1); exit 1; }; }
13725 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13730 ac_cv_sizeof_short_int=0
13733 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
13734 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
13735 cat >>confdefs.h <<_ACEOF
13736 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
13740 echo "$as_me:$LINENO: checking for int" >&5
13741 echo $ECHO_N "checking for int... $ECHO_C" >&6
13742 if test "${ac_cv_type_int+set}" = set; then
13743 echo $ECHO_N "(cached) $ECHO_C" >&6
13745 cat >conftest.$ac_ext <<_ACEOF
13746 #line $LINENO "configure"
13749 cat confdefs.h >>conftest.$ac_ext
13750 cat >>conftest.$ac_ext <<_ACEOF
13751 /* end confdefs.h. */
13752 $ac_includes_default
13764 rm -f conftest.$ac_objext
13765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13766 (eval $ac_compile) 2>&5
13768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13769 (exit $ac_status); } &&
13770 { ac_try='test -s conftest.$ac_objext'
13771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13772 (eval $ac_try) 2>&5
13774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13775 (exit $ac_status); }; }; then
13778 echo "$as_me: failed program was:" >&5
13779 sed 's/^/| /' conftest.$ac_ext >&5
13783 rm -f conftest.$ac_objext conftest.$ac_ext
13785 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13786 echo "${ECHO_T}$ac_cv_type_int" >&6
13788 echo "$as_me:$LINENO: checking size of int" >&5
13789 echo $ECHO_N "checking size of int... $ECHO_C" >&6
13790 if test "${ac_cv_sizeof_int+set}" = set; then
13791 echo $ECHO_N "(cached) $ECHO_C" >&6
13793 if test "$ac_cv_type_int" = yes; then
13794 # The cast to unsigned long works around a bug in the HP C Compiler
13795 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13796 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13797 # This bug is HP SR number 8606223364.
13798 if test "$cross_compiling" = yes; then
13799 # Depending upon the size, compute the lo and hi bounds.
13800 cat >conftest.$ac_ext <<_ACEOF
13801 #line $LINENO "configure"
13804 cat confdefs.h >>conftest.$ac_ext
13805 cat >>conftest.$ac_ext <<_ACEOF
13806 /* end confdefs.h. */
13807 $ac_includes_default
13811 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
13818 rm -f conftest.$ac_objext
13819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13820 (eval $ac_compile) 2>&5
13822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13823 (exit $ac_status); } &&
13824 { ac_try='test -s conftest.$ac_objext'
13825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13826 (eval $ac_try) 2>&5
13828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13829 (exit $ac_status); }; }; then
13832 cat >conftest.$ac_ext <<_ACEOF
13833 #line $LINENO "configure"
13836 cat confdefs.h >>conftest.$ac_ext
13837 cat >>conftest.$ac_ext <<_ACEOF
13838 /* end confdefs.h. */
13839 $ac_includes_default
13843 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13850 rm -f conftest.$ac_objext
13851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13852 (eval $ac_compile) 2>&5
13854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13855 (exit $ac_status); } &&
13856 { ac_try='test -s conftest.$ac_objext'
13857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13858 (eval $ac_try) 2>&5
13860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13861 (exit $ac_status); }; }; then
13862 ac_hi=$ac_mid; break
13864 echo "$as_me: failed program was:" >&5
13865 sed 's/^/| /' conftest.$ac_ext >&5
13867 ac_lo=`expr $ac_mid + 1`
13868 if test $ac_lo -le $ac_mid; then
13872 ac_mid=`expr 2 '*' $ac_mid + 1`
13874 rm -f conftest.$ac_objext conftest.$ac_ext
13877 echo "$as_me: failed program was:" >&5
13878 sed 's/^/| /' conftest.$ac_ext >&5
13880 cat >conftest.$ac_ext <<_ACEOF
13881 #line $LINENO "configure"
13884 cat confdefs.h >>conftest.$ac_ext
13885 cat >>conftest.$ac_ext <<_ACEOF
13886 /* end confdefs.h. */
13887 $ac_includes_default
13891 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
13898 rm -f conftest.$ac_objext
13899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13900 (eval $ac_compile) 2>&5
13902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13903 (exit $ac_status); } &&
13904 { ac_try='test -s conftest.$ac_objext'
13905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13906 (eval $ac_try) 2>&5
13908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13909 (exit $ac_status); }; }; then
13912 cat >conftest.$ac_ext <<_ACEOF
13913 #line $LINENO "configure"
13916 cat confdefs.h >>conftest.$ac_ext
13917 cat >>conftest.$ac_ext <<_ACEOF
13918 /* end confdefs.h. */
13919 $ac_includes_default
13923 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
13930 rm -f conftest.$ac_objext
13931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13932 (eval $ac_compile) 2>&5
13934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13935 (exit $ac_status); } &&
13936 { ac_try='test -s conftest.$ac_objext'
13937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13938 (eval $ac_try) 2>&5
13940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13941 (exit $ac_status); }; }; then
13942 ac_lo=$ac_mid; break
13944 echo "$as_me: failed program was:" >&5
13945 sed 's/^/| /' conftest.$ac_ext >&5
13947 ac_hi=`expr '(' $ac_mid ')' - 1`
13948 if test $ac_mid -le $ac_hi; then
13952 ac_mid=`expr 2 '*' $ac_mid`
13954 rm -f conftest.$ac_objext conftest.$ac_ext
13957 echo "$as_me: failed program was:" >&5
13958 sed 's/^/| /' conftest.$ac_ext >&5
13962 rm -f conftest.$ac_objext conftest.$ac_ext
13964 rm -f conftest.$ac_objext conftest.$ac_ext
13965 # Binary search between lo and hi bounds.
13966 while test "x$ac_lo" != "x$ac_hi"; do
13967 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13968 cat >conftest.$ac_ext <<_ACEOF
13969 #line $LINENO "configure"
13972 cat confdefs.h >>conftest.$ac_ext
13973 cat >>conftest.$ac_ext <<_ACEOF
13974 /* end confdefs.h. */
13975 $ac_includes_default
13979 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13986 rm -f conftest.$ac_objext
13987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13988 (eval $ac_compile) 2>&5
13990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13991 (exit $ac_status); } &&
13992 { ac_try='test -s conftest.$ac_objext'
13993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13994 (eval $ac_try) 2>&5
13996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13997 (exit $ac_status); }; }; then
14000 echo "$as_me: failed program was:" >&5
14001 sed 's/^/| /' conftest.$ac_ext >&5
14003 ac_lo=`expr '(' $ac_mid ')' + 1`
14005 rm -f conftest.$ac_objext conftest.$ac_ext
14008 ?*) ac_cv_sizeof_int=$ac_lo;;
14009 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
14010 See \`config.log' for more details." >&5
14011 echo "$as_me: error: cannot compute sizeof (int), 77
14012 See \`config.log' for more details." >&2;}
14013 { (exit 1); exit 1; }; } ;;
14016 if test "$cross_compiling" = yes; then
14017 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14018 See \`config.log' for more details." >&5
14019 echo "$as_me: error: cannot run test program while cross compiling
14020 See \`config.log' for more details." >&2;}
14021 { (exit 1); exit 1; }; }
14023 cat >conftest.$ac_ext <<_ACEOF
14024 #line $LINENO "configure"
14027 cat confdefs.h >>conftest.$ac_ext
14028 cat >>conftest.$ac_ext <<_ACEOF
14029 /* end confdefs.h. */
14030 $ac_includes_default
14031 long longval () { return (long) (sizeof (int)); }
14032 unsigned long ulongval () { return (long) (sizeof (int)); }
14034 #include <stdlib.h>
14039 FILE *f = fopen ("conftest.val", "w");
14042 if (((long) (sizeof (int))) < 0)
14044 long i = longval ();
14045 if (i != ((long) (sizeof (int))))
14047 fprintf (f, "%ld\n", i);
14051 unsigned long i = ulongval ();
14052 if (i != ((long) (sizeof (int))))
14054 fprintf (f, "%lu\n", i);
14056 exit (ferror (f) || fclose (f) != 0);
14062 rm -f conftest$ac_exeext
14063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14064 (eval $ac_link) 2>&5
14066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14067 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14069 (eval $ac_try) 2>&5
14071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14072 (exit $ac_status); }; }; then
14073 ac_cv_sizeof_int=`cat conftest.val`
14075 echo "$as_me: program exited with status $ac_status" >&5
14076 echo "$as_me: failed program was:" >&5
14077 sed 's/^/| /' conftest.$ac_ext >&5
14079 ( exit $ac_status )
14080 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
14081 See \`config.log' for more details." >&5
14082 echo "$as_me: error: cannot compute sizeof (int), 77
14083 See \`config.log' for more details." >&2;}
14084 { (exit 1); exit 1; }; }
14086 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14094 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
14095 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
14096 cat >>confdefs.h <<_ACEOF
14097 #define SIZEOF_INT $ac_cv_sizeof_int
14101 echo "$as_me:$LINENO: checking for long int" >&5
14102 echo $ECHO_N "checking for long int... $ECHO_C" >&6
14103 if test "${ac_cv_type_long_int+set}" = set; then
14104 echo $ECHO_N "(cached) $ECHO_C" >&6
14106 cat >conftest.$ac_ext <<_ACEOF
14107 #line $LINENO "configure"
14110 cat confdefs.h >>conftest.$ac_ext
14111 cat >>conftest.$ac_ext <<_ACEOF
14112 /* end confdefs.h. */
14113 $ac_includes_default
14117 if ((long int *) 0)
14119 if (sizeof (long int))
14125 rm -f conftest.$ac_objext
14126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14127 (eval $ac_compile) 2>&5
14129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14130 (exit $ac_status); } &&
14131 { ac_try='test -s conftest.$ac_objext'
14132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14133 (eval $ac_try) 2>&5
14135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14136 (exit $ac_status); }; }; then
14137 ac_cv_type_long_int=yes
14139 echo "$as_me: failed program was:" >&5
14140 sed 's/^/| /' conftest.$ac_ext >&5
14142 ac_cv_type_long_int=no
14144 rm -f conftest.$ac_objext conftest.$ac_ext
14146 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
14147 echo "${ECHO_T}$ac_cv_type_long_int" >&6
14149 echo "$as_me:$LINENO: checking size of long int" >&5
14150 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
14151 if test "${ac_cv_sizeof_long_int+set}" = set; then
14152 echo $ECHO_N "(cached) $ECHO_C" >&6
14154 if test "$ac_cv_type_long_int" = yes; then
14155 # The cast to unsigned long works around a bug in the HP C Compiler
14156 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14157 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14158 # This bug is HP SR number 8606223364.
14159 if test "$cross_compiling" = yes; then
14160 # Depending upon the size, compute the lo and hi bounds.
14161 cat >conftest.$ac_ext <<_ACEOF
14162 #line $LINENO "configure"
14165 cat confdefs.h >>conftest.$ac_ext
14166 cat >>conftest.$ac_ext <<_ACEOF
14167 /* end confdefs.h. */
14168 $ac_includes_default
14172 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
14179 rm -f conftest.$ac_objext
14180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14181 (eval $ac_compile) 2>&5
14183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184 (exit $ac_status); } &&
14185 { ac_try='test -s conftest.$ac_objext'
14186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14187 (eval $ac_try) 2>&5
14189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14190 (exit $ac_status); }; }; then
14193 cat >conftest.$ac_ext <<_ACEOF
14194 #line $LINENO "configure"
14197 cat confdefs.h >>conftest.$ac_ext
14198 cat >>conftest.$ac_ext <<_ACEOF
14199 /* end confdefs.h. */
14200 $ac_includes_default
14204 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
14211 rm -f conftest.$ac_objext
14212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14213 (eval $ac_compile) 2>&5
14215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14216 (exit $ac_status); } &&
14217 { ac_try='test -s conftest.$ac_objext'
14218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14219 (eval $ac_try) 2>&5
14221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14222 (exit $ac_status); }; }; then
14223 ac_hi=$ac_mid; break
14225 echo "$as_me: failed program was:" >&5
14226 sed 's/^/| /' conftest.$ac_ext >&5
14228 ac_lo=`expr $ac_mid + 1`
14229 if test $ac_lo -le $ac_mid; then
14233 ac_mid=`expr 2 '*' $ac_mid + 1`
14235 rm -f conftest.$ac_objext conftest.$ac_ext
14238 echo "$as_me: failed program was:" >&5
14239 sed 's/^/| /' conftest.$ac_ext >&5
14241 cat >conftest.$ac_ext <<_ACEOF
14242 #line $LINENO "configure"
14245 cat confdefs.h >>conftest.$ac_ext
14246 cat >>conftest.$ac_ext <<_ACEOF
14247 /* end confdefs.h. */
14248 $ac_includes_default
14252 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
14259 rm -f conftest.$ac_objext
14260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14261 (eval $ac_compile) 2>&5
14263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14264 (exit $ac_status); } &&
14265 { ac_try='test -s conftest.$ac_objext'
14266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14267 (eval $ac_try) 2>&5
14269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14270 (exit $ac_status); }; }; then
14273 cat >conftest.$ac_ext <<_ACEOF
14274 #line $LINENO "configure"
14277 cat confdefs.h >>conftest.$ac_ext
14278 cat >>conftest.$ac_ext <<_ACEOF
14279 /* end confdefs.h. */
14280 $ac_includes_default
14284 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
14291 rm -f conftest.$ac_objext
14292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14293 (eval $ac_compile) 2>&5
14295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14296 (exit $ac_status); } &&
14297 { ac_try='test -s conftest.$ac_objext'
14298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14299 (eval $ac_try) 2>&5
14301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14302 (exit $ac_status); }; }; then
14303 ac_lo=$ac_mid; break
14305 echo "$as_me: failed program was:" >&5
14306 sed 's/^/| /' conftest.$ac_ext >&5
14308 ac_hi=`expr '(' $ac_mid ')' - 1`
14309 if test $ac_mid -le $ac_hi; then
14313 ac_mid=`expr 2 '*' $ac_mid`
14315 rm -f conftest.$ac_objext conftest.$ac_ext
14318 echo "$as_me: failed program was:" >&5
14319 sed 's/^/| /' conftest.$ac_ext >&5
14323 rm -f conftest.$ac_objext conftest.$ac_ext
14325 rm -f conftest.$ac_objext conftest.$ac_ext
14326 # Binary search between lo and hi bounds.
14327 while test "x$ac_lo" != "x$ac_hi"; do
14328 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14329 cat >conftest.$ac_ext <<_ACEOF
14330 #line $LINENO "configure"
14333 cat confdefs.h >>conftest.$ac_ext
14334 cat >>conftest.$ac_ext <<_ACEOF
14335 /* end confdefs.h. */
14336 $ac_includes_default
14340 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
14347 rm -f conftest.$ac_objext
14348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14349 (eval $ac_compile) 2>&5
14351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14352 (exit $ac_status); } &&
14353 { ac_try='test -s conftest.$ac_objext'
14354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14355 (eval $ac_try) 2>&5
14357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14358 (exit $ac_status); }; }; then
14361 echo "$as_me: failed program was:" >&5
14362 sed 's/^/| /' conftest.$ac_ext >&5
14364 ac_lo=`expr '(' $ac_mid ')' + 1`
14366 rm -f conftest.$ac_objext conftest.$ac_ext
14369 ?*) ac_cv_sizeof_long_int=$ac_lo;;
14370 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
14371 See \`config.log' for more details." >&5
14372 echo "$as_me: error: cannot compute sizeof (long int), 77
14373 See \`config.log' for more details." >&2;}
14374 { (exit 1); exit 1; }; } ;;
14377 if test "$cross_compiling" = yes; then
14378 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14379 See \`config.log' for more details." >&5
14380 echo "$as_me: error: cannot run test program while cross compiling
14381 See \`config.log' for more details." >&2;}
14382 { (exit 1); exit 1; }; }
14384 cat >conftest.$ac_ext <<_ACEOF
14385 #line $LINENO "configure"
14388 cat confdefs.h >>conftest.$ac_ext
14389 cat >>conftest.$ac_ext <<_ACEOF
14390 /* end confdefs.h. */
14391 $ac_includes_default
14392 long longval () { return (long) (sizeof (long int)); }
14393 unsigned long ulongval () { return (long) (sizeof (long int)); }
14395 #include <stdlib.h>
14400 FILE *f = fopen ("conftest.val", "w");
14403 if (((long) (sizeof (long int))) < 0)
14405 long i = longval ();
14406 if (i != ((long) (sizeof (long int))))
14408 fprintf (f, "%ld\n", i);
14412 unsigned long i = ulongval ();
14413 if (i != ((long) (sizeof (long int))))
14415 fprintf (f, "%lu\n", i);
14417 exit (ferror (f) || fclose (f) != 0);
14423 rm -f conftest$ac_exeext
14424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14425 (eval $ac_link) 2>&5
14427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14428 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14430 (eval $ac_try) 2>&5
14432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14433 (exit $ac_status); }; }; then
14434 ac_cv_sizeof_long_int=`cat conftest.val`
14436 echo "$as_me: program exited with status $ac_status" >&5
14437 echo "$as_me: failed program was:" >&5
14438 sed 's/^/| /' conftest.$ac_ext >&5
14440 ( exit $ac_status )
14441 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
14442 See \`config.log' for more details." >&5
14443 echo "$as_me: error: cannot compute sizeof (long int), 77
14444 See \`config.log' for more details." >&2;}
14445 { (exit 1); exit 1; }; }
14447 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14452 ac_cv_sizeof_long_int=0
14455 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
14456 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
14457 cat >>confdefs.h <<_ACEOF
14458 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
14462 echo "$as_me:$LINENO: checking for long long int" >&5
14463 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
14464 if test "${ac_cv_type_long_long_int+set}" = set; then
14465 echo $ECHO_N "(cached) $ECHO_C" >&6
14467 cat >conftest.$ac_ext <<_ACEOF
14468 #line $LINENO "configure"
14471 cat confdefs.h >>conftest.$ac_ext
14472 cat >>conftest.$ac_ext <<_ACEOF
14473 /* end confdefs.h. */
14474 $ac_includes_default
14478 if ((long long int *) 0)
14480 if (sizeof (long long int))
14486 rm -f conftest.$ac_objext
14487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14488 (eval $ac_compile) 2>&5
14490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14491 (exit $ac_status); } &&
14492 { ac_try='test -s conftest.$ac_objext'
14493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14494 (eval $ac_try) 2>&5
14496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14497 (exit $ac_status); }; }; then
14498 ac_cv_type_long_long_int=yes
14500 echo "$as_me: failed program was:" >&5
14501 sed 's/^/| /' conftest.$ac_ext >&5
14503 ac_cv_type_long_long_int=no
14505 rm -f conftest.$ac_objext conftest.$ac_ext
14507 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
14508 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
14510 echo "$as_me:$LINENO: checking size of long long int" >&5
14511 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
14512 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
14513 echo $ECHO_N "(cached) $ECHO_C" >&6
14515 if test "$ac_cv_type_long_long_int" = yes; then
14516 # The cast to unsigned long works around a bug in the HP C Compiler
14517 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14518 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14519 # This bug is HP SR number 8606223364.
14520 if test "$cross_compiling" = yes; then
14521 # Depending upon the size, compute the lo and hi bounds.
14522 cat >conftest.$ac_ext <<_ACEOF
14523 #line $LINENO "configure"
14526 cat confdefs.h >>conftest.$ac_ext
14527 cat >>conftest.$ac_ext <<_ACEOF
14528 /* end confdefs.h. */
14529 $ac_includes_default
14533 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
14540 rm -f conftest.$ac_objext
14541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14542 (eval $ac_compile) 2>&5
14544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14545 (exit $ac_status); } &&
14546 { ac_try='test -s conftest.$ac_objext'
14547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14548 (eval $ac_try) 2>&5
14550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14551 (exit $ac_status); }; }; then
14554 cat >conftest.$ac_ext <<_ACEOF
14555 #line $LINENO "configure"
14558 cat confdefs.h >>conftest.$ac_ext
14559 cat >>conftest.$ac_ext <<_ACEOF
14560 /* end confdefs.h. */
14561 $ac_includes_default
14565 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
14572 rm -f conftest.$ac_objext
14573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14574 (eval $ac_compile) 2>&5
14576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14577 (exit $ac_status); } &&
14578 { ac_try='test -s conftest.$ac_objext'
14579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14580 (eval $ac_try) 2>&5
14582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14583 (exit $ac_status); }; }; then
14584 ac_hi=$ac_mid; break
14586 echo "$as_me: failed program was:" >&5
14587 sed 's/^/| /' conftest.$ac_ext >&5
14589 ac_lo=`expr $ac_mid + 1`
14590 if test $ac_lo -le $ac_mid; then
14594 ac_mid=`expr 2 '*' $ac_mid + 1`
14596 rm -f conftest.$ac_objext conftest.$ac_ext
14599 echo "$as_me: failed program was:" >&5
14600 sed 's/^/| /' conftest.$ac_ext >&5
14602 cat >conftest.$ac_ext <<_ACEOF
14603 #line $LINENO "configure"
14606 cat confdefs.h >>conftest.$ac_ext
14607 cat >>conftest.$ac_ext <<_ACEOF
14608 /* end confdefs.h. */
14609 $ac_includes_default
14613 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
14620 rm -f conftest.$ac_objext
14621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14622 (eval $ac_compile) 2>&5
14624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14625 (exit $ac_status); } &&
14626 { ac_try='test -s conftest.$ac_objext'
14627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14628 (eval $ac_try) 2>&5
14630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14631 (exit $ac_status); }; }; then
14634 cat >conftest.$ac_ext <<_ACEOF
14635 #line $LINENO "configure"
14638 cat confdefs.h >>conftest.$ac_ext
14639 cat >>conftest.$ac_ext <<_ACEOF
14640 /* end confdefs.h. */
14641 $ac_includes_default
14645 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
14652 rm -f conftest.$ac_objext
14653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14654 (eval $ac_compile) 2>&5
14656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14657 (exit $ac_status); } &&
14658 { ac_try='test -s conftest.$ac_objext'
14659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14660 (eval $ac_try) 2>&5
14662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14663 (exit $ac_status); }; }; then
14664 ac_lo=$ac_mid; break
14666 echo "$as_me: failed program was:" >&5
14667 sed 's/^/| /' conftest.$ac_ext >&5
14669 ac_hi=`expr '(' $ac_mid ')' - 1`
14670 if test $ac_mid -le $ac_hi; then
14674 ac_mid=`expr 2 '*' $ac_mid`
14676 rm -f conftest.$ac_objext conftest.$ac_ext
14679 echo "$as_me: failed program was:" >&5
14680 sed 's/^/| /' conftest.$ac_ext >&5
14684 rm -f conftest.$ac_objext conftest.$ac_ext
14686 rm -f conftest.$ac_objext conftest.$ac_ext
14687 # Binary search between lo and hi bounds.
14688 while test "x$ac_lo" != "x$ac_hi"; do
14689 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14690 cat >conftest.$ac_ext <<_ACEOF
14691 #line $LINENO "configure"
14694 cat confdefs.h >>conftest.$ac_ext
14695 cat >>conftest.$ac_ext <<_ACEOF
14696 /* end confdefs.h. */
14697 $ac_includes_default
14701 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
14708 rm -f conftest.$ac_objext
14709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14710 (eval $ac_compile) 2>&5
14712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14713 (exit $ac_status); } &&
14714 { ac_try='test -s conftest.$ac_objext'
14715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14716 (eval $ac_try) 2>&5
14718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14719 (exit $ac_status); }; }; then
14722 echo "$as_me: failed program was:" >&5
14723 sed 's/^/| /' conftest.$ac_ext >&5
14725 ac_lo=`expr '(' $ac_mid ')' + 1`
14727 rm -f conftest.$ac_objext conftest.$ac_ext
14730 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
14731 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
14732 See \`config.log' for more details." >&5
14733 echo "$as_me: error: cannot compute sizeof (long long int), 77
14734 See \`config.log' for more details." >&2;}
14735 { (exit 1); exit 1; }; } ;;
14738 if test "$cross_compiling" = yes; then
14739 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14740 See \`config.log' for more details." >&5
14741 echo "$as_me: error: cannot run test program while cross compiling
14742 See \`config.log' for more details." >&2;}
14743 { (exit 1); exit 1; }; }
14745 cat >conftest.$ac_ext <<_ACEOF
14746 #line $LINENO "configure"
14749 cat confdefs.h >>conftest.$ac_ext
14750 cat >>conftest.$ac_ext <<_ACEOF
14751 /* end confdefs.h. */
14752 $ac_includes_default
14753 long longval () { return (long) (sizeof (long long int)); }
14754 unsigned long ulongval () { return (long) (sizeof (long long int)); }
14756 #include <stdlib.h>
14761 FILE *f = fopen ("conftest.val", "w");
14764 if (((long) (sizeof (long long int))) < 0)
14766 long i = longval ();
14767 if (i != ((long) (sizeof (long long int))))
14769 fprintf (f, "%ld\n", i);
14773 unsigned long i = ulongval ();
14774 if (i != ((long) (sizeof (long long int))))
14776 fprintf (f, "%lu\n", i);
14778 exit (ferror (f) || fclose (f) != 0);
14784 rm -f conftest$ac_exeext
14785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14786 (eval $ac_link) 2>&5
14788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14789 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14791 (eval $ac_try) 2>&5
14793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14794 (exit $ac_status); }; }; then
14795 ac_cv_sizeof_long_long_int=`cat conftest.val`
14797 echo "$as_me: program exited with status $ac_status" >&5
14798 echo "$as_me: failed program was:" >&5
14799 sed 's/^/| /' conftest.$ac_ext >&5
14801 ( exit $ac_status )
14802 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
14803 See \`config.log' for more details." >&5
14804 echo "$as_me: error: cannot compute sizeof (long long int), 77
14805 See \`config.log' for more details." >&2;}
14806 { (exit 1); exit 1; }; }
14808 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14813 ac_cv_sizeof_long_long_int=0
14816 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
14817 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
14818 cat >>confdefs.h <<_ACEOF
14819 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
14823 echo "$as_me:$LINENO: checking for int *" >&5
14824 echo $ECHO_N "checking for int *... $ECHO_C" >&6
14825 if test "${ac_cv_type_int_p+set}" = set; then
14826 echo $ECHO_N "(cached) $ECHO_C" >&6
14828 cat >conftest.$ac_ext <<_ACEOF
14829 #line $LINENO "configure"
14832 cat confdefs.h >>conftest.$ac_ext
14833 cat >>conftest.$ac_ext <<_ACEOF
14834 /* end confdefs.h. */
14835 $ac_includes_default
14841 if (sizeof (int *))
14847 rm -f conftest.$ac_objext
14848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14849 (eval $ac_compile) 2>&5
14851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14852 (exit $ac_status); } &&
14853 { ac_try='test -s conftest.$ac_objext'
14854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14855 (eval $ac_try) 2>&5
14857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14858 (exit $ac_status); }; }; then
14859 ac_cv_type_int_p=yes
14861 echo "$as_me: failed program was:" >&5
14862 sed 's/^/| /' conftest.$ac_ext >&5
14864 ac_cv_type_int_p=no
14866 rm -f conftest.$ac_objext conftest.$ac_ext
14868 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
14869 echo "${ECHO_T}$ac_cv_type_int_p" >&6
14871 echo "$as_me:$LINENO: checking size of int *" >&5
14872 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
14873 if test "${ac_cv_sizeof_int_p+set}" = set; then
14874 echo $ECHO_N "(cached) $ECHO_C" >&6
14876 if test "$ac_cv_type_int_p" = yes; then
14877 # The cast to unsigned long works around a bug in the HP C Compiler
14878 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14879 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14880 # This bug is HP SR number 8606223364.
14881 if test "$cross_compiling" = yes; then
14882 # Depending upon the size, compute the lo and hi bounds.
14883 cat >conftest.$ac_ext <<_ACEOF
14884 #line $LINENO "configure"
14887 cat confdefs.h >>conftest.$ac_ext
14888 cat >>conftest.$ac_ext <<_ACEOF
14889 /* end confdefs.h. */
14890 $ac_includes_default
14894 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
14901 rm -f conftest.$ac_objext
14902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14903 (eval $ac_compile) 2>&5
14905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14906 (exit $ac_status); } &&
14907 { ac_try='test -s conftest.$ac_objext'
14908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14909 (eval $ac_try) 2>&5
14911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14912 (exit $ac_status); }; }; then
14915 cat >conftest.$ac_ext <<_ACEOF
14916 #line $LINENO "configure"
14919 cat confdefs.h >>conftest.$ac_ext
14920 cat >>conftest.$ac_ext <<_ACEOF
14921 /* end confdefs.h. */
14922 $ac_includes_default
14926 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14933 rm -f conftest.$ac_objext
14934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14935 (eval $ac_compile) 2>&5
14937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14938 (exit $ac_status); } &&
14939 { ac_try='test -s conftest.$ac_objext'
14940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14941 (eval $ac_try) 2>&5
14943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14944 (exit $ac_status); }; }; then
14945 ac_hi=$ac_mid; break
14947 echo "$as_me: failed program was:" >&5
14948 sed 's/^/| /' conftest.$ac_ext >&5
14950 ac_lo=`expr $ac_mid + 1`
14951 if test $ac_lo -le $ac_mid; then
14955 ac_mid=`expr 2 '*' $ac_mid + 1`
14957 rm -f conftest.$ac_objext conftest.$ac_ext
14960 echo "$as_me: failed program was:" >&5
14961 sed 's/^/| /' conftest.$ac_ext >&5
14963 cat >conftest.$ac_ext <<_ACEOF
14964 #line $LINENO "configure"
14967 cat confdefs.h >>conftest.$ac_ext
14968 cat >>conftest.$ac_ext <<_ACEOF
14969 /* end confdefs.h. */
14970 $ac_includes_default
14974 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
14981 rm -f conftest.$ac_objext
14982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14983 (eval $ac_compile) 2>&5
14985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14986 (exit $ac_status); } &&
14987 { ac_try='test -s conftest.$ac_objext'
14988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14989 (eval $ac_try) 2>&5
14991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14992 (exit $ac_status); }; }; then
14995 cat >conftest.$ac_ext <<_ACEOF
14996 #line $LINENO "configure"
14999 cat confdefs.h >>conftest.$ac_ext
15000 cat >>conftest.$ac_ext <<_ACEOF
15001 /* end confdefs.h. */
15002 $ac_includes_default
15006 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
15013 rm -f conftest.$ac_objext
15014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15015 (eval $ac_compile) 2>&5
15017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15018 (exit $ac_status); } &&
15019 { ac_try='test -s conftest.$ac_objext'
15020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15021 (eval $ac_try) 2>&5
15023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15024 (exit $ac_status); }; }; then
15025 ac_lo=$ac_mid; break
15027 echo "$as_me: failed program was:" >&5
15028 sed 's/^/| /' conftest.$ac_ext >&5
15030 ac_hi=`expr '(' $ac_mid ')' - 1`
15031 if test $ac_mid -le $ac_hi; then
15035 ac_mid=`expr 2 '*' $ac_mid`
15037 rm -f conftest.$ac_objext conftest.$ac_ext
15040 echo "$as_me: failed program was:" >&5
15041 sed 's/^/| /' conftest.$ac_ext >&5
15045 rm -f conftest.$ac_objext conftest.$ac_ext
15047 rm -f conftest.$ac_objext conftest.$ac_ext
15048 # Binary search between lo and hi bounds.
15049 while test "x$ac_lo" != "x$ac_hi"; do
15050 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15051 cat >conftest.$ac_ext <<_ACEOF
15052 #line $LINENO "configure"
15055 cat confdefs.h >>conftest.$ac_ext
15056 cat >>conftest.$ac_ext <<_ACEOF
15057 /* end confdefs.h. */
15058 $ac_includes_default
15062 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
15069 rm -f conftest.$ac_objext
15070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15071 (eval $ac_compile) 2>&5
15073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15074 (exit $ac_status); } &&
15075 { ac_try='test -s conftest.$ac_objext'
15076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15077 (eval $ac_try) 2>&5
15079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15080 (exit $ac_status); }; }; then
15083 echo "$as_me: failed program was:" >&5
15084 sed 's/^/| /' conftest.$ac_ext >&5
15086 ac_lo=`expr '(' $ac_mid ')' + 1`
15088 rm -f conftest.$ac_objext conftest.$ac_ext
15091 ?*) ac_cv_sizeof_int_p=$ac_lo;;
15092 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
15093 See \`config.log' for more details." >&5
15094 echo "$as_me: error: cannot compute sizeof (int *), 77
15095 See \`config.log' for more details." >&2;}
15096 { (exit 1); exit 1; }; } ;;
15099 if test "$cross_compiling" = yes; then
15100 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15101 See \`config.log' for more details." >&5
15102 echo "$as_me: error: cannot run test program while cross compiling
15103 See \`config.log' for more details." >&2;}
15104 { (exit 1); exit 1; }; }
15106 cat >conftest.$ac_ext <<_ACEOF
15107 #line $LINENO "configure"
15110 cat confdefs.h >>conftest.$ac_ext
15111 cat >>conftest.$ac_ext <<_ACEOF
15112 /* end confdefs.h. */
15113 $ac_includes_default
15114 long longval () { return (long) (sizeof (int *)); }
15115 unsigned long ulongval () { return (long) (sizeof (int *)); }
15117 #include <stdlib.h>
15122 FILE *f = fopen ("conftest.val", "w");
15125 if (((long) (sizeof (int *))) < 0)
15127 long i = longval ();
15128 if (i != ((long) (sizeof (int *))))
15130 fprintf (f, "%ld\n", i);
15134 unsigned long i = ulongval ();
15135 if (i != ((long) (sizeof (int *))))
15137 fprintf (f, "%lu\n", i);
15139 exit (ferror (f) || fclose (f) != 0);
15145 rm -f conftest$ac_exeext
15146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15147 (eval $ac_link) 2>&5
15149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15150 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15152 (eval $ac_try) 2>&5
15154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15155 (exit $ac_status); }; }; then
15156 ac_cv_sizeof_int_p=`cat conftest.val`
15158 echo "$as_me: program exited with status $ac_status" >&5
15159 echo "$as_me: failed program was:" >&5
15160 sed 's/^/| /' conftest.$ac_ext >&5
15162 ( exit $ac_status )
15163 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
15164 See \`config.log' for more details." >&5
15165 echo "$as_me: error: cannot compute sizeof (int *), 77
15166 See \`config.log' for more details." >&2;}
15167 { (exit 1); exit 1; }; }
15169 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15174 ac_cv_sizeof_int_p=0
15177 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
15178 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
15179 cat >>confdefs.h <<_ACEOF
15180 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
15185 # Check for sys/types.h types
15186 echo "$as_me:$LINENO: checking for u_int type" >&5
15187 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
15188 if test "${ac_cv_have_u_int+set}" = set; then
15189 echo $ECHO_N "(cached) $ECHO_C" >&6
15192 cat >conftest.$ac_ext <<_ACEOF
15193 #line $LINENO "configure"
15196 cat confdefs.h >>conftest.$ac_ext
15197 cat >>conftest.$ac_ext <<_ACEOF
15198 /* end confdefs.h. */
15199 #include <sys/types.h>
15208 rm -f conftest.$ac_objext
15209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15210 (eval $ac_compile) 2>&5
15212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15213 (exit $ac_status); } &&
15214 { ac_try='test -s conftest.$ac_objext'
15215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15216 (eval $ac_try) 2>&5
15218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15219 (exit $ac_status); }; }; then
15220 ac_cv_have_u_int="yes"
15222 echo "$as_me: failed program was:" >&5
15223 sed 's/^/| /' conftest.$ac_ext >&5
15225 ac_cv_have_u_int="no"
15228 rm -f conftest.$ac_objext conftest.$ac_ext
15231 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
15232 echo "${ECHO_T}$ac_cv_have_u_int" >&6
15233 if test "x$ac_cv_have_u_int" = "xyes" ; then
15234 cat >>confdefs.h <<\_ACEOF
15235 #define HAVE_U_INT 1
15241 echo "$as_me:$LINENO: checking for intmax_t type" >&5
15242 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
15243 if test "${ac_cv_have_intmax_t+set}" = set; then
15244 echo $ECHO_N "(cached) $ECHO_C" >&6
15247 cat >conftest.$ac_ext <<_ACEOF
15248 #line $LINENO "configure"
15251 cat confdefs.h >>conftest.$ac_ext
15252 cat >>conftest.$ac_ext <<_ACEOF
15253 /* end confdefs.h. */
15254 #include <sys/types.h>
15263 rm -f conftest.$ac_objext
15264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15265 (eval $ac_compile) 2>&5
15267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15268 (exit $ac_status); } &&
15269 { ac_try='test -s conftest.$ac_objext'
15270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15271 (eval $ac_try) 2>&5
15273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15274 (exit $ac_status); }; }; then
15275 ac_cv_have_intmax_t="yes"
15277 echo "$as_me: failed program was:" >&5
15278 sed 's/^/| /' conftest.$ac_ext >&5
15281 cat >conftest.$ac_ext <<_ACEOF
15282 #line $LINENO "configure"
15285 cat confdefs.h >>conftest.$ac_ext
15286 cat >>conftest.$ac_ext <<_ACEOF
15287 /* end confdefs.h. */
15288 #include <stdint.h>
15297 rm -f conftest.$ac_objext
15298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15299 (eval $ac_compile) 2>&5
15301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15302 (exit $ac_status); } &&
15303 { ac_try='test -s conftest.$ac_objext'
15304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15305 (eval $ac_try) 2>&5
15307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15308 (exit $ac_status); }; }; then
15309 ac_cv_have_intmax_t="yes"
15311 echo "$as_me: failed program was:" >&5
15312 sed 's/^/| /' conftest.$ac_ext >&5
15314 ac_cv_have_intmax_t="no"
15317 rm -f conftest.$ac_objext conftest.$ac_ext
15321 rm -f conftest.$ac_objext conftest.$ac_ext
15325 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
15326 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
15327 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
15328 cat >>confdefs.h <<\_ACEOF
15329 #define HAVE_INTMAX_T 1
15336 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
15337 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
15338 if test "${ac_cv_have_u_intmax_t+set}" = set; then
15339 echo $ECHO_N "(cached) $ECHO_C" >&6
15342 cat >conftest.$ac_ext <<_ACEOF
15343 #line $LINENO "configure"
15346 cat confdefs.h >>conftest.$ac_ext
15347 cat >>conftest.$ac_ext <<_ACEOF
15348 /* end confdefs.h. */
15349 #include <sys/types.h>
15353 u_intmax_t a; a = 1;
15358 rm -f conftest.$ac_objext
15359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15360 (eval $ac_compile) 2>&5
15362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15363 (exit $ac_status); } &&
15364 { ac_try='test -s conftest.$ac_objext'
15365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15366 (eval $ac_try) 2>&5
15368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15369 (exit $ac_status); }; }; then
15370 ac_cv_have_u_intmax_t="yes"
15372 echo "$as_me: failed program was:" >&5
15373 sed 's/^/| /' conftest.$ac_ext >&5
15376 cat >conftest.$ac_ext <<_ACEOF
15377 #line $LINENO "configure"
15380 cat confdefs.h >>conftest.$ac_ext
15381 cat >>conftest.$ac_ext <<_ACEOF
15382 /* end confdefs.h. */
15383 #include <stdint.h>
15387 u_intmax_t a; a = 1;
15392 rm -f conftest.$ac_objext
15393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15394 (eval $ac_compile) 2>&5
15396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15397 (exit $ac_status); } &&
15398 { ac_try='test -s conftest.$ac_objext'
15399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15400 (eval $ac_try) 2>&5
15402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15403 (exit $ac_status); }; }; then
15404 ac_cv_have_u_intmax_t="yes"
15406 echo "$as_me: failed program was:" >&5
15407 sed 's/^/| /' conftest.$ac_ext >&5
15409 ac_cv_have_u_intmax_t="no"
15412 rm -f conftest.$ac_objext conftest.$ac_ext
15416 rm -f conftest.$ac_objext conftest.$ac_ext
15419 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
15420 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
15421 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
15422 cat >>confdefs.h <<\_ACEOF
15423 #define HAVE_U_INTMAX_T 1
15430 echo "$as_me:$LINENO: checking for intXX_t types" >&5
15431 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
15432 if test "${ac_cv_have_intxx_t+set}" = set; then
15433 echo $ECHO_N "(cached) $ECHO_C" >&6
15436 cat >conftest.$ac_ext <<_ACEOF
15437 #line $LINENO "configure"
15440 cat confdefs.h >>conftest.$ac_ext
15441 cat >>conftest.$ac_ext <<_ACEOF
15442 /* end confdefs.h. */
15443 #include <sys/types.h>
15447 int8_t a; int16_t b; int32_t c; a = b = c = 1;
15452 rm -f conftest.$ac_objext
15453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15454 (eval $ac_compile) 2>&5
15456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15457 (exit $ac_status); } &&
15458 { ac_try='test -s conftest.$ac_objext'
15459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15460 (eval $ac_try) 2>&5
15462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15463 (exit $ac_status); }; }; then
15464 ac_cv_have_intxx_t="yes"
15466 echo "$as_me: failed program was:" >&5
15467 sed 's/^/| /' conftest.$ac_ext >&5
15469 ac_cv_have_intxx_t="no"
15472 rm -f conftest.$ac_objext conftest.$ac_ext
15475 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
15476 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
15477 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
15478 cat >>confdefs.h <<\_ACEOF
15479 #define HAVE_INTXX_T 1
15485 echo "$as_me:$LINENO: checking for int64_t type" >&5
15486 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
15487 if test "${ac_cv_have_int64_t+set}" = set; then
15488 echo $ECHO_N "(cached) $ECHO_C" >&6
15491 cat >conftest.$ac_ext <<_ACEOF
15492 #line $LINENO "configure"
15495 cat confdefs.h >>conftest.$ac_ext
15496 cat >>conftest.$ac_ext <<_ACEOF
15497 /* end confdefs.h. */
15498 #include <sys/types.h>
15507 rm -f conftest.$ac_objext
15508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15509 (eval $ac_compile) 2>&5
15511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15512 (exit $ac_status); } &&
15513 { ac_try='test -s conftest.$ac_objext'
15514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15515 (eval $ac_try) 2>&5
15517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15518 (exit $ac_status); }; }; then
15519 ac_cv_have_int64_t="yes"
15521 echo "$as_me: failed program was:" >&5
15522 sed 's/^/| /' conftest.$ac_ext >&5
15524 ac_cv_have_int64_t="no"
15527 rm -f conftest.$ac_objext conftest.$ac_ext
15530 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
15531 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
15532 if test "x$ac_cv_have_int64_t" = "xyes" ; then
15533 cat >>confdefs.h <<\_ACEOF
15534 #define HAVE_INT64_T 1
15540 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
15541 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
15542 if test "${ac_cv_have_u_intxx_t+set}" = set; then
15543 echo $ECHO_N "(cached) $ECHO_C" >&6
15546 cat >conftest.$ac_ext <<_ACEOF
15547 #line $LINENO "configure"
15550 cat confdefs.h >>conftest.$ac_ext
15551 cat >>conftest.$ac_ext <<_ACEOF
15552 /* end confdefs.h. */
15553 #include <sys/types.h>
15557 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
15562 rm -f conftest.$ac_objext
15563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15564 (eval $ac_compile) 2>&5
15566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15567 (exit $ac_status); } &&
15568 { ac_try='test -s conftest.$ac_objext'
15569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15570 (eval $ac_try) 2>&5
15572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15573 (exit $ac_status); }; }; then
15574 ac_cv_have_u_intxx_t="yes"
15576 echo "$as_me: failed program was:" >&5
15577 sed 's/^/| /' conftest.$ac_ext >&5
15579 ac_cv_have_u_intxx_t="no"
15582 rm -f conftest.$ac_objext conftest.$ac_ext
15585 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
15586 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
15587 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
15588 cat >>confdefs.h <<\_ACEOF
15589 #define HAVE_U_INTXX_T 1
15595 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
15596 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
15597 if test "${ac_cv_have_u_int64_t+set}" = set; then
15598 echo $ECHO_N "(cached) $ECHO_C" >&6
15601 cat >conftest.$ac_ext <<_ACEOF
15602 #line $LINENO "configure"
15605 cat confdefs.h >>conftest.$ac_ext
15606 cat >>conftest.$ac_ext <<_ACEOF
15607 /* end confdefs.h. */
15608 #include <sys/types.h>
15612 u_int64_t a; a = 1;
15617 rm -f conftest.$ac_objext
15618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15619 (eval $ac_compile) 2>&5
15621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15622 (exit $ac_status); } &&
15623 { ac_try='test -s conftest.$ac_objext'
15624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15625 (eval $ac_try) 2>&5
15627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15628 (exit $ac_status); }; }; then
15629 ac_cv_have_u_int64_t="yes"
15631 echo "$as_me: failed program was:" >&5
15632 sed 's/^/| /' conftest.$ac_ext >&5
15634 ac_cv_have_u_int64_t="no"
15637 rm -f conftest.$ac_objext conftest.$ac_ext
15640 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
15641 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
15642 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
15643 cat >>confdefs.h <<\_ACEOF
15644 #define HAVE_U_INT64_T 1
15650 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
15651 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
15653 echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
15654 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
15655 cat >conftest.$ac_ext <<_ACEOF
15656 #line $LINENO "configure"
15659 cat confdefs.h >>conftest.$ac_ext
15660 cat >>conftest.$ac_ext <<_ACEOF
15661 /* end confdefs.h. */
15662 #include <sys/bitypes.h>
15666 int8_t a; int16_t b; int32_t c;
15667 u_int8_t e; u_int16_t f; u_int32_t g;
15668 a = b = c = e = f = g = 1;
15673 rm -f conftest.$ac_objext
15674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15675 (eval $ac_compile) 2>&5
15677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15678 (exit $ac_status); } &&
15679 { ac_try='test -s conftest.$ac_objext'
15680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15681 (eval $ac_try) 2>&5
15683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15684 (exit $ac_status); }; }; then
15685 cat >>confdefs.h <<\_ACEOF
15686 #define HAVE_U_INTXX_T 1
15689 cat >>confdefs.h <<\_ACEOF
15690 #define HAVE_INTXX_T 1
15693 cat >>confdefs.h <<\_ACEOF
15694 #define HAVE_SYS_BITYPES_H 1
15697 echo "$as_me:$LINENO: result: yes" >&5
15698 echo "${ECHO_T}yes" >&6
15700 echo "$as_me: failed program was:" >&5
15701 sed 's/^/| /' conftest.$ac_ext >&5
15703 echo "$as_me:$LINENO: result: no" >&5
15704 echo "${ECHO_T}no" >&6
15707 rm -f conftest.$ac_objext conftest.$ac_ext
15710 if test -z "$have_u_intxx_t" ; then
15711 echo "$as_me:$LINENO: checking for uintXX_t types" >&5
15712 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
15713 if test "${ac_cv_have_uintxx_t+set}" = set; then
15714 echo $ECHO_N "(cached) $ECHO_C" >&6
15717 cat >conftest.$ac_ext <<_ACEOF
15718 #line $LINENO "configure"
15721 cat confdefs.h >>conftest.$ac_ext
15722 cat >>conftest.$ac_ext <<_ACEOF
15723 /* end confdefs.h. */
15724 #include <sys/types.h>
15728 uint8_t a; uint16_t b;
15729 uint32_t c; a = b = c = 1;
15734 rm -f conftest.$ac_objext
15735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15736 (eval $ac_compile) 2>&5
15738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15739 (exit $ac_status); } &&
15740 { ac_try='test -s conftest.$ac_objext'
15741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15742 (eval $ac_try) 2>&5
15744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15745 (exit $ac_status); }; }; then
15746 ac_cv_have_uintxx_t="yes"
15748 echo "$as_me: failed program was:" >&5
15749 sed 's/^/| /' conftest.$ac_ext >&5
15751 ac_cv_have_uintxx_t="no"
15754 rm -f conftest.$ac_objext conftest.$ac_ext
15757 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
15758 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
15759 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
15760 cat >>confdefs.h <<\_ACEOF
15761 #define HAVE_UINTXX_T 1
15767 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
15768 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
15770 echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
15771 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
15772 cat >conftest.$ac_ext <<_ACEOF
15773 #line $LINENO "configure"
15776 cat confdefs.h >>conftest.$ac_ext
15777 cat >>conftest.$ac_ext <<_ACEOF
15778 /* end confdefs.h. */
15779 #include <sys/bitypes.h>
15783 int64_t a; u_int64_t b;
15789 rm -f conftest.$ac_objext
15790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15791 (eval $ac_compile) 2>&5
15793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15794 (exit $ac_status); } &&
15795 { ac_try='test -s conftest.$ac_objext'
15796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15797 (eval $ac_try) 2>&5
15799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15800 (exit $ac_status); }; }; then
15801 cat >>confdefs.h <<\_ACEOF
15802 #define HAVE_U_INT64_T 1
15805 cat >>confdefs.h <<\_ACEOF
15806 #define HAVE_INT64_T 1
15809 echo "$as_me:$LINENO: result: yes" >&5
15810 echo "${ECHO_T}yes" >&6
15812 echo "$as_me: failed program was:" >&5
15813 sed 's/^/| /' conftest.$ac_ext >&5
15815 echo "$as_me:$LINENO: result: no" >&5
15816 echo "${ECHO_T}no" >&6
15819 rm -f conftest.$ac_objext conftest.$ac_ext
15822 if (test -z "$have_uintxx_t" && \
15823 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
15825 echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
15826 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
15827 cat >conftest.$ac_ext <<_ACEOF
15828 #line $LINENO "configure"
15831 cat confdefs.h >>conftest.$ac_ext
15832 cat >>conftest.$ac_ext <<_ACEOF
15833 /* end confdefs.h. */
15834 #include <sys/bitypes.h>
15838 uint8_t a; uint16_t b;
15839 uint32_t c; a = b = c = 1;
15844 rm -f conftest.$ac_objext
15845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15846 (eval $ac_compile) 2>&5
15848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15849 (exit $ac_status); } &&
15850 { ac_try='test -s conftest.$ac_objext'
15851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15852 (eval $ac_try) 2>&5
15854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15855 (exit $ac_status); }; }; then
15856 cat >>confdefs.h <<\_ACEOF
15857 #define HAVE_UINTXX_T 1
15860 echo "$as_me:$LINENO: result: yes" >&5
15861 echo "${ECHO_T}yes" >&6
15863 echo "$as_me: failed program was:" >&5
15864 sed 's/^/| /' conftest.$ac_ext >&5
15866 echo "$as_me:$LINENO: result: no" >&5
15867 echo "${ECHO_T}no" >&6
15870 rm -f conftest.$ac_objext conftest.$ac_ext
15906 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15907 echo "$as_me:$LINENO: checking for $ac_func" >&5
15908 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15909 if eval "test \"\${$as_ac_var+set}\" = set"; then
15910 echo $ECHO_N "(cached) $ECHO_C" >&6
15912 cat >conftest.$ac_ext <<_ACEOF
15913 #line $LINENO "configure"
15916 cat confdefs.h >>conftest.$ac_ext
15917 cat >>conftest.$ac_ext <<_ACEOF
15918 /* end confdefs.h. */
15919 /* System header to define __stub macros and hopefully few prototypes,
15920 which can conflict with char $ac_func (); below.
15921 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15922 <limits.h> exists even on freestanding compilers. */
15924 # include <limits.h>
15926 # include <assert.h>
15928 /* Override any gcc2 internal prototype to avoid an error. */
15933 /* We use char because int might match the return type of a gcc2
15934 builtin and then its argument prototype would still apply. */
15936 /* The GNU C library defines this for functions which it implements
15937 to always fail with ENOSYS. Some functions are actually named
15938 something starting with __ and the normal name is an alias. */
15939 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15942 char (*f) () = $ac_func;
15951 return f != $ac_func;
15956 rm -f conftest.$ac_objext conftest$ac_exeext
15957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15958 (eval $ac_link) 2>&5
15960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15961 (exit $ac_status); } &&
15962 { ac_try='test -s conftest$ac_exeext'
15963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15964 (eval $ac_try) 2>&5
15966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15967 (exit $ac_status); }; }; then
15968 eval "$as_ac_var=yes"
15970 echo "$as_me: failed program was:" >&5
15971 sed 's/^/| /' conftest.$ac_ext >&5
15973 eval "$as_ac_var=no"
15975 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15977 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15978 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15979 if test `eval echo '${'$as_ac_var'}'` = yes; then
15980 cat >>confdefs.h <<_ACEOF
15981 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15985 echo 'configure: cannot find needed function.'; exit 1
15992 for ac_func in fchdir
15994 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15995 echo "$as_me:$LINENO: checking for $ac_func" >&5
15996 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15997 if eval "test \"\${$as_ac_var+set}\" = set"; then
15998 echo $ECHO_N "(cached) $ECHO_C" >&6
16000 cat >conftest.$ac_ext <<_ACEOF
16001 #line $LINENO "configure"
16004 cat confdefs.h >>conftest.$ac_ext
16005 cat >>conftest.$ac_ext <<_ACEOF
16006 /* end confdefs.h. */
16007 /* System header to define __stub macros and hopefully few prototypes,
16008 which can conflict with char $ac_func (); below.
16009 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16010 <limits.h> exists even on freestanding compilers. */
16012 # include <limits.h>
16014 # include <assert.h>
16016 /* Override any gcc2 internal prototype to avoid an error. */
16021 /* We use char because int might match the return type of a gcc2
16022 builtin and then its argument prototype would still apply. */
16024 /* The GNU C library defines this for functions which it implements
16025 to always fail with ENOSYS. Some functions are actually named
16026 something starting with __ and the normal name is an alias. */
16027 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16030 char (*f) () = $ac_func;
16039 return f != $ac_func;
16044 rm -f conftest.$ac_objext conftest$ac_exeext
16045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16046 (eval $ac_link) 2>&5
16048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16049 (exit $ac_status); } &&
16050 { ac_try='test -s conftest$ac_exeext'
16051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16052 (eval $ac_try) 2>&5
16054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16055 (exit $ac_status); }; }; then
16056 eval "$as_ac_var=yes"
16058 echo "$as_me: failed program was:" >&5
16059 sed 's/^/| /' conftest.$ac_ext >&5
16061 eval "$as_ac_var=no"
16063 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16065 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16066 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16067 if test `eval echo '${'$as_ac_var'}'` = yes; then
16068 cat >>confdefs.h <<_ACEOF
16069 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16071 cat >>confdefs.h <<\_ACEOF
16072 #define HAVE_FCHDIR 1
16079 for ac_func in strtoll
16081 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16082 echo "$as_me:$LINENO: checking for $ac_func" >&5
16083 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16084 if eval "test \"\${$as_ac_var+set}\" = set"; then
16085 echo $ECHO_N "(cached) $ECHO_C" >&6
16087 cat >conftest.$ac_ext <<_ACEOF
16088 #line $LINENO "configure"
16091 cat confdefs.h >>conftest.$ac_ext
16092 cat >>conftest.$ac_ext <<_ACEOF
16093 /* end confdefs.h. */
16094 /* System header to define __stub macros and hopefully few prototypes,
16095 which can conflict with char $ac_func (); below.
16096 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16097 <limits.h> exists even on freestanding compilers. */
16099 # include <limits.h>
16101 # include <assert.h>
16103 /* Override any gcc2 internal prototype to avoid an error. */
16108 /* We use char because int might match the return type of a gcc2
16109 builtin and then its argument prototype would still apply. */
16111 /* The GNU C library defines this for functions which it implements
16112 to always fail with ENOSYS. Some functions are actually named
16113 something starting with __ and the normal name is an alias. */
16114 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16117 char (*f) () = $ac_func;
16126 return f != $ac_func;
16131 rm -f conftest.$ac_objext conftest$ac_exeext
16132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16133 (eval $ac_link) 2>&5
16135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16136 (exit $ac_status); } &&
16137 { ac_try='test -s conftest$ac_exeext'
16138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16139 (eval $ac_try) 2>&5
16141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16142 (exit $ac_status); }; }; then
16143 eval "$as_ac_var=yes"
16145 echo "$as_me: failed program was:" >&5
16146 sed 's/^/| /' conftest.$ac_ext >&5
16148 eval "$as_ac_var=no"
16150 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16152 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16153 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16154 if test `eval echo '${'$as_ac_var'}'` = yes; then
16155 cat >>confdefs.h <<_ACEOF
16156 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16158 cat >>confdefs.h <<\_ACEOF
16159 #define HAVE_STRTOLL 1
16167 for ac_func in chflags
16169 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16170 echo "$as_me:$LINENO: checking for $ac_func" >&5
16171 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16172 if eval "test \"\${$as_ac_var+set}\" = set"; then
16173 echo $ECHO_N "(cached) $ECHO_C" >&6
16175 cat >conftest.$ac_ext <<_ACEOF
16176 #line $LINENO "configure"
16179 cat confdefs.h >>conftest.$ac_ext
16180 cat >>conftest.$ac_ext <<_ACEOF
16181 /* end confdefs.h. */
16182 /* System header to define __stub macros and hopefully few prototypes,
16183 which can conflict with char $ac_func (); below.
16184 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16185 <limits.h> exists even on freestanding compilers. */
16187 # include <limits.h>
16189 # include <assert.h>
16191 /* Override any gcc2 internal prototype to avoid an error. */
16196 /* We use char because int might match the return type of a gcc2
16197 builtin and then its argument prototype would still apply. */
16199 /* The GNU C library defines this for functions which it implements
16200 to always fail with ENOSYS. Some functions are actually named
16201 something starting with __ and the normal name is an alias. */
16202 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16205 char (*f) () = $ac_func;
16214 return f != $ac_func;
16219 rm -f conftest.$ac_objext conftest$ac_exeext
16220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16221 (eval $ac_link) 2>&5
16223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16224 (exit $ac_status); } &&
16225 { ac_try='test -s conftest$ac_exeext'
16226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16227 (eval $ac_try) 2>&5
16229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16230 (exit $ac_status); }; }; then
16231 eval "$as_ac_var=yes"
16233 echo "$as_me: failed program was:" >&5
16234 sed 's/^/| /' conftest.$ac_ext >&5
16236 eval "$as_ac_var=no"
16238 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16240 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16241 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16242 if test `eval echo '${'$as_ac_var'}'` = yes; then
16243 cat >>confdefs.h <<_ACEOF
16244 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16255 for ac_func in snprintf vsnprintf gethostid getdomainname
16257 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16258 echo "$as_me:$LINENO: checking for $ac_func" >&5
16259 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16260 if eval "test \"\${$as_ac_var+set}\" = set"; then
16261 echo $ECHO_N "(cached) $ECHO_C" >&6
16263 cat >conftest.$ac_ext <<_ACEOF
16264 #line $LINENO "configure"
16267 cat confdefs.h >>conftest.$ac_ext
16268 cat >>conftest.$ac_ext <<_ACEOF
16269 /* end confdefs.h. */
16270 /* System header to define __stub macros and hopefully few prototypes,
16271 which can conflict with char $ac_func (); below.
16272 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16273 <limits.h> exists even on freestanding compilers. */
16275 # include <limits.h>
16277 # include <assert.h>
16279 /* Override any gcc2 internal prototype to avoid an error. */
16284 /* We use char because int might match the return type of a gcc2
16285 builtin and then its argument prototype would still apply. */
16287 /* The GNU C library defines this for functions which it implements
16288 to always fail with ENOSYS. Some functions are actually named
16289 something starting with __ and the normal name is an alias. */
16290 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16293 char (*f) () = $ac_func;
16302 return f != $ac_func;
16307 rm -f conftest.$ac_objext conftest$ac_exeext
16308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16309 (eval $ac_link) 2>&5
16311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16312 (exit $ac_status); } &&
16313 { ac_try='test -s conftest$ac_exeext'
16314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16315 (eval $ac_try) 2>&5
16317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16318 (exit $ac_status); }; }; then
16319 eval "$as_ac_var=yes"
16321 echo "$as_me: failed program was:" >&5
16322 sed 's/^/| /' conftest.$ac_ext >&5
16324 eval "$as_ac_var=no"
16326 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16328 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16329 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16330 if test `eval echo '${'$as_ac_var'}'` = yes; then
16331 cat >>confdefs.h <<_ACEOF
16332 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16343 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
16345 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16346 echo "$as_me:$LINENO: checking for $ac_func" >&5
16347 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16348 if eval "test \"\${$as_ac_var+set}\" = set"; then
16349 echo $ECHO_N "(cached) $ECHO_C" >&6
16351 cat >conftest.$ac_ext <<_ACEOF
16352 #line $LINENO "configure"
16355 cat confdefs.h >>conftest.$ac_ext
16356 cat >>conftest.$ac_ext <<_ACEOF
16357 /* end confdefs.h. */
16358 /* System header to define __stub macros and hopefully few prototypes,
16359 which can conflict with char $ac_func (); below.
16360 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16361 <limits.h> exists even on freestanding compilers. */
16363 # include <limits.h>
16365 # include <assert.h>
16367 /* Override any gcc2 internal prototype to avoid an error. */
16372 /* We use char because int might match the return type of a gcc2
16373 builtin and then its argument prototype would still apply. */
16375 /* The GNU C library defines this for functions which it implements
16376 to always fail with ENOSYS. Some functions are actually named
16377 something starting with __ and the normal name is an alias. */
16378 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16381 char (*f) () = $ac_func;
16390 return f != $ac_func;
16395 rm -f conftest.$ac_objext conftest$ac_exeext
16396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16397 (eval $ac_link) 2>&5
16399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16400 (exit $ac_status); } &&
16401 { ac_try='test -s conftest$ac_exeext'
16402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16403 (eval $ac_try) 2>&5
16405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16406 (exit $ac_status); }; }; then
16407 eval "$as_ac_var=yes"
16409 echo "$as_me: failed program was:" >&5
16410 sed 's/^/| /' conftest.$ac_ext >&5
16412 eval "$as_ac_var=no"
16414 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16416 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16417 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16418 if test `eval echo '${'$as_ac_var'}'` = yes; then
16419 cat >>confdefs.h <<_ACEOF
16420 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16427 # If resolver functions are not in libc check for -lnsl or -lresolv.
16428 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
16429 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
16430 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
16431 echo $ECHO_N "(cached) $ECHO_C" >&6
16433 cat >conftest.$ac_ext <<_ACEOF
16434 #line $LINENO "configure"
16437 cat confdefs.h >>conftest.$ac_ext
16438 cat >>conftest.$ac_ext <<_ACEOF
16439 /* end confdefs.h. */
16440 /* System header to define __stub macros and hopefully few prototypes,
16441 which can conflict with char gethostbyname_r (); below.
16442 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16443 <limits.h> exists even on freestanding compilers. */
16445 # include <limits.h>
16447 # include <assert.h>
16449 /* Override any gcc2 internal prototype to avoid an error. */
16454 /* We use char because int might match the return type of a gcc2
16455 builtin and then its argument prototype would still apply. */
16456 char gethostbyname_r ();
16457 /* The GNU C library defines this for functions which it implements
16458 to always fail with ENOSYS. Some functions are actually named
16459 something starting with __ and the normal name is an alias. */
16460 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
16463 char (*f) () = gethostbyname_r;
16472 return f != gethostbyname_r;
16477 rm -f conftest.$ac_objext conftest$ac_exeext
16478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16479 (eval $ac_link) 2>&5
16481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16482 (exit $ac_status); } &&
16483 { ac_try='test -s conftest$ac_exeext'
16484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16485 (eval $ac_try) 2>&5
16487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16488 (exit $ac_status); }; }; then
16489 ac_cv_func_gethostbyname_r=yes
16491 echo "$as_me: failed program was:" >&5
16492 sed 's/^/| /' conftest.$ac_ext >&5
16494 ac_cv_func_gethostbyname_r=no
16496 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16498 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
16499 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
16500 if test $ac_cv_func_gethostbyname_r = yes; then
16501 echo "$as_me:$LINENO: result: using libc's resolver" >&5
16502 echo "${ECHO_T}using libc's resolver" >&6
16505 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
16506 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
16507 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
16508 echo $ECHO_N "(cached) $ECHO_C" >&6
16510 ac_check_lib_save_LIBS=$LIBS
16512 cat >conftest.$ac_ext <<_ACEOF
16513 #line $LINENO "configure"
16516 cat confdefs.h >>conftest.$ac_ext
16517 cat >>conftest.$ac_ext <<_ACEOF
16518 /* end confdefs.h. */
16520 /* Override any gcc2 internal prototype to avoid an error. */
16524 /* We use char because int might match the return type of a gcc2
16525 builtin and then its argument prototype would still apply. */
16526 char gethostbyname_r ();
16530 gethostbyname_r ();
16535 rm -f conftest.$ac_objext conftest$ac_exeext
16536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16537 (eval $ac_link) 2>&5
16539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16540 (exit $ac_status); } &&
16541 { ac_try='test -s conftest$ac_exeext'
16542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16543 (eval $ac_try) 2>&5
16545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16546 (exit $ac_status); }; }; then
16547 ac_cv_lib_nsl_gethostbyname_r=yes
16549 echo "$as_me: failed program was:" >&5
16550 sed 's/^/| /' conftest.$ac_ext >&5
16552 ac_cv_lib_nsl_gethostbyname_r=no
16554 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16555 LIBS=$ac_check_lib_save_LIBS
16557 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
16558 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
16559 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
16560 cat >>confdefs.h <<_ACEOF
16561 #define HAVE_LIBNSL 1
16569 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
16570 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
16571 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
16572 echo $ECHO_N "(cached) $ECHO_C" >&6
16574 ac_check_lib_save_LIBS=$LIBS
16575 LIBS="-lresolv $LIBS"
16576 cat >conftest.$ac_ext <<_ACEOF
16577 #line $LINENO "configure"
16580 cat confdefs.h >>conftest.$ac_ext
16581 cat >>conftest.$ac_ext <<_ACEOF
16582 /* end confdefs.h. */
16584 /* Override any gcc2 internal prototype to avoid an error. */
16588 /* We use char because int might match the return type of a gcc2
16589 builtin and then its argument prototype would still apply. */
16590 char gethostbyname_r ();
16594 gethostbyname_r ();
16599 rm -f conftest.$ac_objext conftest$ac_exeext
16600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16601 (eval $ac_link) 2>&5
16603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16604 (exit $ac_status); } &&
16605 { ac_try='test -s conftest$ac_exeext'
16606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16607 (eval $ac_try) 2>&5
16609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16610 (exit $ac_status); }; }; then
16611 ac_cv_lib_resolv_gethostbyname_r=yes
16613 echo "$as_me: failed program was:" >&5
16614 sed 's/^/| /' conftest.$ac_ext >&5
16616 ac_cv_lib_resolv_gethostbyname_r=no
16618 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16619 LIBS=$ac_check_lib_save_LIBS
16621 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
16622 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
16623 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
16624 cat >>confdefs.h <<_ACEOF
16625 #define HAVE_LIBRESOLV 1
16628 LIBS="-lresolv $LIBS"
16638 for ac_func in inet_pton
16640 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16641 echo "$as_me:$LINENO: checking for $ac_func" >&5
16642 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16643 if eval "test \"\${$as_ac_var+set}\" = set"; then
16644 echo $ECHO_N "(cached) $ECHO_C" >&6
16646 cat >conftest.$ac_ext <<_ACEOF
16647 #line $LINENO "configure"
16650 cat confdefs.h >>conftest.$ac_ext
16651 cat >>conftest.$ac_ext <<_ACEOF
16652 /* end confdefs.h. */
16653 /* System header to define __stub macros and hopefully few prototypes,
16654 which can conflict with char $ac_func (); below.
16655 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16656 <limits.h> exists even on freestanding compilers. */
16658 # include <limits.h>
16660 # include <assert.h>
16662 /* Override any gcc2 internal prototype to avoid an error. */
16667 /* We use char because int might match the return type of a gcc2
16668 builtin and then its argument prototype would still apply. */
16670 /* The GNU C library defines this for functions which it implements
16671 to always fail with ENOSYS. Some functions are actually named
16672 something starting with __ and the normal name is an alias. */
16673 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16676 char (*f) () = $ac_func;
16685 return f != $ac_func;
16690 rm -f conftest.$ac_objext conftest$ac_exeext
16691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16692 (eval $ac_link) 2>&5
16694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16695 (exit $ac_status); } &&
16696 { ac_try='test -s conftest$ac_exeext'
16697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16698 (eval $ac_try) 2>&5
16700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16701 (exit $ac_status); }; }; then
16702 eval "$as_ac_var=yes"
16704 echo "$as_me: failed program was:" >&5
16705 sed 's/^/| /' conftest.$ac_ext >&5
16707 eval "$as_ac_var=no"
16709 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16711 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16712 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16713 if test `eval echo '${'$as_ac_var'}'` = yes; then
16714 cat >>confdefs.h <<_ACEOF
16715 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16717 cat >>confdefs.h <<\_ACEOF
16718 #define HAVE_INET_PTON 1
16725 for ac_func in inet_ntop
16727 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16728 echo "$as_me:$LINENO: checking for $ac_func" >&5
16729 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16730 if eval "test \"\${$as_ac_var+set}\" = set"; then
16731 echo $ECHO_N "(cached) $ECHO_C" >&6
16733 cat >conftest.$ac_ext <<_ACEOF
16734 #line $LINENO "configure"
16737 cat confdefs.h >>conftest.$ac_ext
16738 cat >>conftest.$ac_ext <<_ACEOF
16739 /* end confdefs.h. */
16740 /* System header to define __stub macros and hopefully few prototypes,
16741 which can conflict with char $ac_func (); below.
16742 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16743 <limits.h> exists even on freestanding compilers. */
16745 # include <limits.h>
16747 # include <assert.h>
16749 /* Override any gcc2 internal prototype to avoid an error. */
16754 /* We use char because int might match the return type of a gcc2
16755 builtin and then its argument prototype would still apply. */
16757 /* The GNU C library defines this for functions which it implements
16758 to always fail with ENOSYS. Some functions are actually named
16759 something starting with __ and the normal name is an alias. */
16760 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16763 char (*f) () = $ac_func;
16772 return f != $ac_func;
16777 rm -f conftest.$ac_objext conftest$ac_exeext
16778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16779 (eval $ac_link) 2>&5
16781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16782 (exit $ac_status); } &&
16783 { ac_try='test -s conftest$ac_exeext'
16784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16785 (eval $ac_try) 2>&5
16787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16788 (exit $ac_status); }; }; then
16789 eval "$as_ac_var=yes"
16791 echo "$as_me: failed program was:" >&5
16792 sed 's/^/| /' conftest.$ac_ext >&5
16794 eval "$as_ac_var=no"
16796 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16798 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16799 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16800 if test `eval echo '${'$as_ac_var'}'` = yes; then
16801 cat >>confdefs.h <<_ACEOF
16802 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16804 cat >>confdefs.h <<\_ACEOF
16805 #define HAVE_INET_NTOP 1
16812 for ac_func in gethostbyname2
16814 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16815 echo "$as_me:$LINENO: checking for $ac_func" >&5
16816 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16817 if eval "test \"\${$as_ac_var+set}\" = set"; then
16818 echo $ECHO_N "(cached) $ECHO_C" >&6
16820 cat >conftest.$ac_ext <<_ACEOF
16821 #line $LINENO "configure"
16824 cat confdefs.h >>conftest.$ac_ext
16825 cat >>conftest.$ac_ext <<_ACEOF
16826 /* end confdefs.h. */
16827 /* System header to define __stub macros and hopefully few prototypes,
16828 which can conflict with char $ac_func (); below.
16829 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16830 <limits.h> exists even on freestanding compilers. */
16832 # include <limits.h>
16834 # include <assert.h>
16836 /* Override any gcc2 internal prototype to avoid an error. */
16841 /* We use char because int might match the return type of a gcc2
16842 builtin and then its argument prototype would still apply. */
16844 /* The GNU C library defines this for functions which it implements
16845 to always fail with ENOSYS. Some functions are actually named
16846 something starting with __ and the normal name is an alias. */
16847 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16850 char (*f) () = $ac_func;
16859 return f != $ac_func;
16864 rm -f conftest.$ac_objext conftest$ac_exeext
16865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16866 (eval $ac_link) 2>&5
16868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16869 (exit $ac_status); } &&
16870 { ac_try='test -s conftest$ac_exeext'
16871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16872 (eval $ac_try) 2>&5
16874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16875 (exit $ac_status); }; }; then
16876 eval "$as_ac_var=yes"
16878 echo "$as_me: failed program was:" >&5
16879 sed 's/^/| /' conftest.$ac_ext >&5
16881 eval "$as_ac_var=no"
16883 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16885 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16886 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16887 if test `eval echo '${'$as_ac_var'}'` = yes; then
16888 cat >>confdefs.h <<_ACEOF
16889 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16891 cat >>confdefs.h <<\_ACEOF
16892 #define HAVE_GETHOSTBYNAME2 1
16899 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
16900 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
16901 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
16902 echo $ECHO_N "(cached) $ECHO_C" >&6
16904 cat >conftest.$ac_ext <<_ACEOF
16905 #line $LINENO "configure"
16908 cat confdefs.h >>conftest.$ac_ext
16909 cat >>conftest.$ac_ext <<_ACEOF
16910 /* end confdefs.h. */
16911 #include <sys/socket.h>
16915 struct sockaddr s; s.sa_len;
16920 rm -f conftest.$ac_objext
16921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16922 (eval $ac_compile) 2>&5
16924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16925 (exit $ac_status); } &&
16926 { ac_try='test -s conftest.$ac_objext'
16927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16928 (eval $ac_try) 2>&5
16930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16931 (exit $ac_status); }; }; then
16932 ac_cv_struct_sockaddr_sa_len=yes
16934 echo "$as_me: failed program was:" >&5
16935 sed 's/^/| /' conftest.$ac_ext >&5
16937 ac_cv_struct_sockaddr_sa_len=no
16939 rm -f conftest.$ac_objext conftest.$ac_ext
16941 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
16942 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
16944 if test $ac_cv_struct_sockaddr_sa_len = yes; then
16946 cat >>confdefs.h <<\_ACEOF
16947 #define HAVE_SA_LEN 1
16953 echo "$as_me:$LINENO: checking for IPv6 support" >&5
16954 echo $ECHO_N "checking for IPv6 support... $ECHO_C" >&6
16955 if test "${ac_cv_ipv6_support+set}" = set; then
16956 echo $ECHO_N "(cached) $ECHO_C" >&6
16958 cat >conftest.$ac_ext <<_ACEOF
16959 #line $LINENO "configure"
16962 cat confdefs.h >>conftest.$ac_ext
16963 cat >>conftest.$ac_ext <<_ACEOF
16964 /* end confdefs.h. */
16965 #include <sys/types.h>
16966 #include <sys/socket.h>
16967 #include <netinet/in.h>
16971 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] =
16977 rm -f conftest.$ac_objext conftest$ac_exeext
16978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16979 (eval $ac_link) 2>&5
16981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16982 (exit $ac_status); } &&
16983 { ac_try='test -s conftest$ac_exeext'
16984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16985 (eval $ac_try) 2>&5
16987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16988 (exit $ac_status); }; }; then
16989 ac_cv_ipv6_support=yes
16991 echo "$as_me: failed program was:" >&5
16992 sed 's/^/| /' conftest.$ac_ext >&5
16994 ac_cv_ipv6_support=no
16996 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16998 echo "$as_me:$LINENO: result: $ac_cv_ipv6_support" >&5
16999 echo "${ECHO_T}$ac_cv_ipv6_support" >&6
17001 if test "$ac_cv_ipv6_support" = yes; then
17003 cat >>confdefs.h <<\_ACEOF
17004 #define HAVE_IPV6 1
17012 for ac_func in strftime
17014 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17015 echo "$as_me:$LINENO: checking for $ac_func" >&5
17016 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17017 if eval "test \"\${$as_ac_var+set}\" = set"; then
17018 echo $ECHO_N "(cached) $ECHO_C" >&6
17020 cat >conftest.$ac_ext <<_ACEOF
17021 #line $LINENO "configure"
17024 cat confdefs.h >>conftest.$ac_ext
17025 cat >>conftest.$ac_ext <<_ACEOF
17026 /* end confdefs.h. */
17027 /* System header to define __stub macros and hopefully few prototypes,
17028 which can conflict with char $ac_func (); below.
17029 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17030 <limits.h> exists even on freestanding compilers. */
17032 # include <limits.h>
17034 # include <assert.h>
17036 /* Override any gcc2 internal prototype to avoid an error. */
17041 /* We use char because int might match the return type of a gcc2
17042 builtin and then its argument prototype would still apply. */
17044 /* The GNU C library defines this for functions which it implements
17045 to always fail with ENOSYS. Some functions are actually named
17046 something starting with __ and the normal name is an alias. */
17047 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17050 char (*f) () = $ac_func;
17059 return f != $ac_func;
17064 rm -f conftest.$ac_objext conftest$ac_exeext
17065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17066 (eval $ac_link) 2>&5
17068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17069 (exit $ac_status); } &&
17070 { ac_try='test -s conftest$ac_exeext'
17071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17072 (eval $ac_try) 2>&5
17074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17075 (exit $ac_status); }; }; then
17076 eval "$as_ac_var=yes"
17078 echo "$as_me: failed program was:" >&5
17079 sed 's/^/| /' conftest.$ac_ext >&5
17081 eval "$as_ac_var=no"
17083 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17085 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17086 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17087 if test `eval echo '${'$as_ac_var'}'` = yes; then
17088 cat >>confdefs.h <<_ACEOF
17089 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17093 # strftime is in -lintl on SCO UNIX.
17094 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
17095 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
17096 if test "${ac_cv_lib_intl_strftime+set}" = set; then
17097 echo $ECHO_N "(cached) $ECHO_C" >&6
17099 ac_check_lib_save_LIBS=$LIBS
17100 LIBS="-lintl $LIBS"
17101 cat >conftest.$ac_ext <<_ACEOF
17102 #line $LINENO "configure"
17105 cat confdefs.h >>conftest.$ac_ext
17106 cat >>conftest.$ac_ext <<_ACEOF
17107 /* end confdefs.h. */
17109 /* Override any gcc2 internal prototype to avoid an error. */
17113 /* We use char because int might match the return type of a gcc2
17114 builtin and then its argument prototype would still apply. */
17124 rm -f conftest.$ac_objext conftest$ac_exeext
17125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17126 (eval $ac_link) 2>&5
17128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17129 (exit $ac_status); } &&
17130 { ac_try='test -s conftest$ac_exeext'
17131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17132 (eval $ac_try) 2>&5
17134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17135 (exit $ac_status); }; }; then
17136 ac_cv_lib_intl_strftime=yes
17138 echo "$as_me: failed program was:" >&5
17139 sed 's/^/| /' conftest.$ac_ext >&5
17141 ac_cv_lib_intl_strftime=no
17143 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17144 LIBS=$ac_check_lib_save_LIBS
17146 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
17147 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
17148 if test $ac_cv_lib_intl_strftime = yes; then
17149 cat >>confdefs.h <<\_ACEOF
17150 #define HAVE_STRFTIME 1
17153 LIBS="-lintl $LIBS"
17160 for ac_func in vprintf
17162 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17163 echo "$as_me:$LINENO: checking for $ac_func" >&5
17164 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17165 if eval "test \"\${$as_ac_var+set}\" = set"; then
17166 echo $ECHO_N "(cached) $ECHO_C" >&6
17168 cat >conftest.$ac_ext <<_ACEOF
17169 #line $LINENO "configure"
17172 cat confdefs.h >>conftest.$ac_ext
17173 cat >>conftest.$ac_ext <<_ACEOF
17174 /* end confdefs.h. */
17175 /* System header to define __stub macros and hopefully few prototypes,
17176 which can conflict with char $ac_func (); below.
17177 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17178 <limits.h> exists even on freestanding compilers. */
17180 # include <limits.h>
17182 # include <assert.h>
17184 /* Override any gcc2 internal prototype to avoid an error. */
17189 /* We use char because int might match the return type of a gcc2
17190 builtin and then its argument prototype would still apply. */
17192 /* The GNU C library defines this for functions which it implements
17193 to always fail with ENOSYS. Some functions are actually named
17194 something starting with __ and the normal name is an alias. */
17195 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17198 char (*f) () = $ac_func;
17207 return f != $ac_func;
17212 rm -f conftest.$ac_objext conftest$ac_exeext
17213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17214 (eval $ac_link) 2>&5
17216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17217 (exit $ac_status); } &&
17218 { ac_try='test -s conftest$ac_exeext'
17219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17220 (eval $ac_try) 2>&5
17222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17223 (exit $ac_status); }; }; then
17224 eval "$as_ac_var=yes"
17226 echo "$as_me: failed program was:" >&5
17227 sed 's/^/| /' conftest.$ac_ext >&5
17229 eval "$as_ac_var=no"
17231 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17233 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17234 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17235 if test `eval echo '${'$as_ac_var'}'` = yes; then
17236 cat >>confdefs.h <<_ACEOF
17237 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17240 echo "$as_me:$LINENO: checking for _doprnt" >&5
17241 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
17242 if test "${ac_cv_func__doprnt+set}" = set; then
17243 echo $ECHO_N "(cached) $ECHO_C" >&6
17245 cat >conftest.$ac_ext <<_ACEOF
17246 #line $LINENO "configure"
17249 cat confdefs.h >>conftest.$ac_ext
17250 cat >>conftest.$ac_ext <<_ACEOF
17251 /* end confdefs.h. */
17252 /* System header to define __stub macros and hopefully few prototypes,
17253 which can conflict with char _doprnt (); below.
17254 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17255 <limits.h> exists even on freestanding compilers. */
17257 # include <limits.h>
17259 # include <assert.h>
17261 /* Override any gcc2 internal prototype to avoid an error. */
17266 /* We use char because int might match the return type of a gcc2
17267 builtin and then its argument prototype would still apply. */
17269 /* The GNU C library defines this for functions which it implements
17270 to always fail with ENOSYS. Some functions are actually named
17271 something starting with __ and the normal name is an alias. */
17272 #if defined (__stub__doprnt) || defined (__stub____doprnt)
17275 char (*f) () = _doprnt;
17284 return f != _doprnt;
17289 rm -f conftest.$ac_objext conftest$ac_exeext
17290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17291 (eval $ac_link) 2>&5
17293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17294 (exit $ac_status); } &&
17295 { ac_try='test -s conftest$ac_exeext'
17296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17297 (eval $ac_try) 2>&5
17299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17300 (exit $ac_status); }; }; then
17301 ac_cv_func__doprnt=yes
17303 echo "$as_me: failed program was:" >&5
17304 sed 's/^/| /' conftest.$ac_ext >&5
17306 ac_cv_func__doprnt=no
17308 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17310 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
17311 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
17312 if test $ac_cv_func__doprnt = yes; then
17314 cat >>confdefs.h <<\_ACEOF
17315 #define HAVE_DOPRNT 1
17324 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
17325 # for constant arguments. Useless!
17326 echo "$as_me:$LINENO: checking for working alloca.h" >&5
17327 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
17328 if test "${ac_cv_working_alloca_h+set}" = set; then
17329 echo $ECHO_N "(cached) $ECHO_C" >&6
17331 cat >conftest.$ac_ext <<_ACEOF
17332 #line $LINENO "configure"
17335 cat confdefs.h >>conftest.$ac_ext
17336 cat >>conftest.$ac_ext <<_ACEOF
17337 /* end confdefs.h. */
17338 #include <alloca.h>
17342 char *p = (char *) alloca (2 * sizeof (int));
17347 rm -f conftest.$ac_objext conftest$ac_exeext
17348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17349 (eval $ac_link) 2>&5
17351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17352 (exit $ac_status); } &&
17353 { ac_try='test -s conftest$ac_exeext'
17354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17355 (eval $ac_try) 2>&5
17357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17358 (exit $ac_status); }; }; then
17359 ac_cv_working_alloca_h=yes
17361 echo "$as_me: failed program was:" >&5
17362 sed 's/^/| /' conftest.$ac_ext >&5
17364 ac_cv_working_alloca_h=no
17366 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17368 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
17369 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
17370 if test $ac_cv_working_alloca_h = yes; then
17372 cat >>confdefs.h <<\_ACEOF
17373 #define HAVE_ALLOCA_H 1
17378 echo "$as_me:$LINENO: checking for alloca" >&5
17379 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
17380 if test "${ac_cv_func_alloca_works+set}" = set; then
17381 echo $ECHO_N "(cached) $ECHO_C" >&6
17383 cat >conftest.$ac_ext <<_ACEOF
17384 #line $LINENO "configure"
17387 cat confdefs.h >>conftest.$ac_ext
17388 cat >>conftest.$ac_ext <<_ACEOF
17389 /* end confdefs.h. */
17391 # define alloca __builtin_alloca
17394 # include <malloc.h>
17395 # define alloca _alloca
17398 # include <alloca.h>
17403 # ifndef alloca /* predefined by HP cc +Olibcalls */
17414 char *p = (char *) alloca (1);
17419 rm -f conftest.$ac_objext conftest$ac_exeext
17420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17421 (eval $ac_link) 2>&5
17423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17424 (exit $ac_status); } &&
17425 { ac_try='test -s conftest$ac_exeext'
17426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17427 (eval $ac_try) 2>&5
17429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17430 (exit $ac_status); }; }; then
17431 ac_cv_func_alloca_works=yes
17433 echo "$as_me: failed program was:" >&5
17434 sed 's/^/| /' conftest.$ac_ext >&5
17436 ac_cv_func_alloca_works=no
17438 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17440 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
17441 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
17443 if test $ac_cv_func_alloca_works = yes; then
17445 cat >>confdefs.h <<\_ACEOF
17446 #define HAVE_ALLOCA 1
17450 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
17451 # that cause trouble. Some versions do not even contain alloca or
17452 # contain a buggy version. If you still want to use their alloca,
17453 # use ar to extract alloca.o from them instead of compiling alloca.c.
17455 ALLOCA=alloca.$ac_objext
17457 cat >>confdefs.h <<\_ACEOF
17462 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
17463 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
17464 if test "${ac_cv_os_cray+set}" = set; then
17465 echo $ECHO_N "(cached) $ECHO_C" >&6
17467 cat >conftest.$ac_ext <<_ACEOF
17468 #line $LINENO "configure"
17471 cat confdefs.h >>conftest.$ac_ext
17472 cat >>conftest.$ac_ext <<_ACEOF
17473 /* end confdefs.h. */
17474 #if defined(CRAY) && ! defined(CRAY2)
17481 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17482 $EGREP "webecray" >/dev/null 2>&1; then
17490 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
17491 echo "${ECHO_T}$ac_cv_os_cray" >&6
17492 if test $ac_cv_os_cray = yes; then
17493 for ac_func in _getb67 GETB67 getb67; do
17494 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17495 echo "$as_me:$LINENO: checking for $ac_func" >&5
17496 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17497 if eval "test \"\${$as_ac_var+set}\" = set"; then
17498 echo $ECHO_N "(cached) $ECHO_C" >&6
17500 cat >conftest.$ac_ext <<_ACEOF
17501 #line $LINENO "configure"
17504 cat confdefs.h >>conftest.$ac_ext
17505 cat >>conftest.$ac_ext <<_ACEOF
17506 /* end confdefs.h. */
17507 /* System header to define __stub macros and hopefully few prototypes,
17508 which can conflict with char $ac_func (); below.
17509 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17510 <limits.h> exists even on freestanding compilers. */
17512 # include <limits.h>
17514 # include <assert.h>
17516 /* Override any gcc2 internal prototype to avoid an error. */
17521 /* We use char because int might match the return type of a gcc2
17522 builtin and then its argument prototype would still apply. */
17524 /* The GNU C library defines this for functions which it implements
17525 to always fail with ENOSYS. Some functions are actually named
17526 something starting with __ and the normal name is an alias. */
17527 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17530 char (*f) () = $ac_func;
17539 return f != $ac_func;
17544 rm -f conftest.$ac_objext conftest$ac_exeext
17545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17546 (eval $ac_link) 2>&5
17548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17549 (exit $ac_status); } &&
17550 { ac_try='test -s conftest$ac_exeext'
17551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17552 (eval $ac_try) 2>&5
17554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17555 (exit $ac_status); }; }; then
17556 eval "$as_ac_var=yes"
17558 echo "$as_me: failed program was:" >&5
17559 sed 's/^/| /' conftest.$ac_ext >&5
17561 eval "$as_ac_var=no"
17563 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17565 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17566 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17567 if test `eval echo '${'$as_ac_var'}'` = yes; then
17569 cat >>confdefs.h <<_ACEOF
17570 #define CRAY_STACKSEG_END $ac_func
17579 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
17580 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
17581 if test "${ac_cv_c_stack_direction+set}" = set; then
17582 echo $ECHO_N "(cached) $ECHO_C" >&6
17584 if test "$cross_compiling" = yes; then
17585 ac_cv_c_stack_direction=0
17587 cat >conftest.$ac_ext <<_ACEOF
17588 #line $LINENO "configure"
17591 cat confdefs.h >>conftest.$ac_ext
17592 cat >>conftest.$ac_ext <<_ACEOF
17593 /* end confdefs.h. */
17595 find_stack_direction ()
17597 static char *addr = 0;
17602 return find_stack_direction ();
17605 return (&dummy > addr) ? 1 : -1;
17611 exit (find_stack_direction () < 0);
17614 rm -f conftest$ac_exeext
17615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17616 (eval $ac_link) 2>&5
17618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17619 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17621 (eval $ac_try) 2>&5
17623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17624 (exit $ac_status); }; }; then
17625 ac_cv_c_stack_direction=1
17627 echo "$as_me: program exited with status $ac_status" >&5
17628 echo "$as_me: failed program was:" >&5
17629 sed 's/^/| /' conftest.$ac_ext >&5
17631 ( exit $ac_status )
17632 ac_cv_c_stack_direction=-1
17634 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17637 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
17638 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
17640 cat >>confdefs.h <<_ACEOF
17641 #define STACK_DIRECTION $ac_cv_c_stack_direction
17647 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
17648 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
17649 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
17650 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
17651 echo $ECHO_N "(cached) $ECHO_C" >&6
17653 ac_check_lib_save_LIBS=$LIBS
17655 cat >conftest.$ac_ext <<_ACEOF
17656 #line $LINENO "configure"
17659 cat confdefs.h >>conftest.$ac_ext
17660 cat >>conftest.$ac_ext <<_ACEOF
17661 /* end confdefs.h. */
17663 /* Override any gcc2 internal prototype to avoid an error. */
17667 /* We use char because int might match the return type of a gcc2
17668 builtin and then its argument prototype would still apply. */
17678 rm -f conftest.$ac_objext conftest$ac_exeext
17679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17680 (eval $ac_link) 2>&5
17682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17683 (exit $ac_status); } &&
17684 { ac_try='test -s conftest$ac_exeext'
17685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17686 (eval $ac_try) 2>&5
17688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17689 (exit $ac_status); }; }; then
17690 ac_cv_lib_sun_getmntent=yes
17692 echo "$as_me: failed program was:" >&5
17693 sed 's/^/| /' conftest.$ac_ext >&5
17695 ac_cv_lib_sun_getmntent=no
17697 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17698 LIBS=$ac_check_lib_save_LIBS
17700 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
17701 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
17702 if test $ac_cv_lib_sun_getmntent = yes; then
17705 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
17706 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
17707 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
17708 echo $ECHO_N "(cached) $ECHO_C" >&6
17710 ac_check_lib_save_LIBS=$LIBS
17712 cat >conftest.$ac_ext <<_ACEOF
17713 #line $LINENO "configure"
17716 cat confdefs.h >>conftest.$ac_ext
17717 cat >>conftest.$ac_ext <<_ACEOF
17718 /* end confdefs.h. */
17720 /* Override any gcc2 internal prototype to avoid an error. */
17724 /* We use char because int might match the return type of a gcc2
17725 builtin and then its argument prototype would still apply. */
17735 rm -f conftest.$ac_objext conftest$ac_exeext
17736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17737 (eval $ac_link) 2>&5
17739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17740 (exit $ac_status); } &&
17741 { ac_try='test -s conftest$ac_exeext'
17742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17743 (eval $ac_try) 2>&5
17745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17746 (exit $ac_status); }; }; then
17747 ac_cv_lib_seq_getmntent=yes
17749 echo "$as_me: failed program was:" >&5
17750 sed 's/^/| /' conftest.$ac_ext >&5
17752 ac_cv_lib_seq_getmntent=no
17754 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17755 LIBS=$ac_check_lib_save_LIBS
17757 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
17758 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
17759 if test $ac_cv_lib_seq_getmntent = yes; then
17762 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
17763 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
17764 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
17765 echo $ECHO_N "(cached) $ECHO_C" >&6
17767 ac_check_lib_save_LIBS=$LIBS
17769 cat >conftest.$ac_ext <<_ACEOF
17770 #line $LINENO "configure"
17773 cat confdefs.h >>conftest.$ac_ext
17774 cat >>conftest.$ac_ext <<_ACEOF
17775 /* end confdefs.h. */
17777 /* Override any gcc2 internal prototype to avoid an error. */
17781 /* We use char because int might match the return type of a gcc2
17782 builtin and then its argument prototype would still apply. */
17792 rm -f conftest.$ac_objext conftest$ac_exeext
17793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17794 (eval $ac_link) 2>&5
17796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17797 (exit $ac_status); } &&
17798 { ac_try='test -s conftest$ac_exeext'
17799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17800 (eval $ac_try) 2>&5
17802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17803 (exit $ac_status); }; }; then
17804 ac_cv_lib_gen_getmntent=yes
17806 echo "$as_me: failed program was:" >&5
17807 sed 's/^/| /' conftest.$ac_ext >&5
17809 ac_cv_lib_gen_getmntent=no
17811 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17812 LIBS=$ac_check_lib_save_LIBS
17814 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
17815 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
17816 if test $ac_cv_lib_gen_getmntent = yes; then
17825 for ac_func in getmntent
17827 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17828 echo "$as_me:$LINENO: checking for $ac_func" >&5
17829 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17830 if eval "test \"\${$as_ac_var+set}\" = set"; then
17831 echo $ECHO_N "(cached) $ECHO_C" >&6
17833 cat >conftest.$ac_ext <<_ACEOF
17834 #line $LINENO "configure"
17837 cat confdefs.h >>conftest.$ac_ext
17838 cat >>conftest.$ac_ext <<_ACEOF
17839 /* end confdefs.h. */
17840 /* System header to define __stub macros and hopefully few prototypes,
17841 which can conflict with char $ac_func (); below.
17842 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17843 <limits.h> exists even on freestanding compilers. */
17845 # include <limits.h>
17847 # include <assert.h>
17849 /* Override any gcc2 internal prototype to avoid an error. */
17854 /* We use char because int might match the return type of a gcc2
17855 builtin and then its argument prototype would still apply. */
17857 /* The GNU C library defines this for functions which it implements
17858 to always fail with ENOSYS. Some functions are actually named
17859 something starting with __ and the normal name is an alias. */
17860 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17863 char (*f) () = $ac_func;
17872 return f != $ac_func;
17877 rm -f conftest.$ac_objext conftest$ac_exeext
17878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17879 (eval $ac_link) 2>&5
17881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17882 (exit $ac_status); } &&
17883 { ac_try='test -s conftest$ac_exeext'
17884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17885 (eval $ac_try) 2>&5
17887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17888 (exit $ac_status); }; }; then
17889 eval "$as_ac_var=yes"
17891 echo "$as_me: failed program was:" >&5
17892 sed 's/^/| /' conftest.$ac_ext >&5
17894 eval "$as_ac_var=no"
17896 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17898 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17899 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17900 if test `eval echo '${'$as_ac_var'}'` = yes; then
17901 cat >>confdefs.h <<_ACEOF
17902 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17909 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
17910 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
17911 if test "${ac_cv_func_closedir_void+set}" = set; then
17912 echo $ECHO_N "(cached) $ECHO_C" >&6
17914 if test "$cross_compiling" = yes; then
17915 ac_cv_func_closedir_void=yes
17917 cat >conftest.$ac_ext <<_ACEOF
17918 #line $LINENO "configure"
17921 cat confdefs.h >>conftest.$ac_ext
17922 cat >>conftest.$ac_ext <<_ACEOF
17923 /* end confdefs.h. */
17924 $ac_includes_default
17925 #include <$ac_header_dirent>
17926 #ifndef __cplusplus
17933 exit (closedir (opendir (".")) != 0);
17938 rm -f conftest$ac_exeext
17939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17940 (eval $ac_link) 2>&5
17942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17943 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17945 (eval $ac_try) 2>&5
17947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17948 (exit $ac_status); }; }; then
17949 ac_cv_func_closedir_void=no
17951 echo "$as_me: program exited with status $ac_status" >&5
17952 echo "$as_me: failed program was:" >&5
17953 sed 's/^/| /' conftest.$ac_ext >&5
17955 ( exit $ac_status )
17956 ac_cv_func_closedir_void=yes
17958 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17961 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
17962 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
17963 if test $ac_cv_func_closedir_void = yes; then
17965 cat >>confdefs.h <<\_ACEOF
17966 #define CLOSEDIR_VOID 1
17971 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
17972 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
17973 if test "${ac_cv_func_setpgrp_void+set}" = set; then
17974 echo $ECHO_N "(cached) $ECHO_C" >&6
17976 if test "$cross_compiling" = yes; then
17977 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
17978 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
17979 { (exit 1); exit 1; }; }
17981 cat >conftest.$ac_ext <<_ACEOF
17982 #line $LINENO "configure"
17985 cat confdefs.h >>conftest.$ac_ext
17986 cat >>conftest.$ac_ext <<_ACEOF
17987 /* end confdefs.h. */
17989 # include <unistd.h>
17995 /* If this system has a BSD-style setpgrp which takes arguments,
17996 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
17997 exit successfully. */
17998 exit (setpgrp (1,1) == -1 ? 0 : 1);
18003 rm -f conftest$ac_exeext
18004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18005 (eval $ac_link) 2>&5
18007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18008 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18010 (eval $ac_try) 2>&5
18012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18013 (exit $ac_status); }; }; then
18014 ac_cv_func_setpgrp_void=no
18016 echo "$as_me: program exited with status $ac_status" >&5
18017 echo "$as_me: failed program was:" >&5
18018 sed 's/^/| /' conftest.$ac_ext >&5
18020 ( exit $ac_status )
18021 ac_cv_func_setpgrp_void=yes
18023 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18026 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
18027 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
18028 if test $ac_cv_func_setpgrp_void = yes; then
18030 cat >>confdefs.h <<\_ACEOF
18031 #define SETPGRP_VOID 1
18035 echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
18036 echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6
18037 if test "${ac_cv_func_fnmatch_works+set}" = set; then
18038 echo $ECHO_N "(cached) $ECHO_C" >&6
18040 # Some versions of Solaris, SCO, and the GNU C Library
18041 # have a broken or incompatible fnmatch.
18042 # So we run a test program. If we are cross-compiling, take no chance.
18043 # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
18044 if test "$cross_compiling" = yes; then
18045 ac_cv_func_fnmatch_works=cross
18047 cat >conftest.$ac_ext <<_ACEOF
18048 #line $LINENO "configure"
18051 cat confdefs.h >>conftest.$ac_ext
18052 cat >>conftest.$ac_ext <<_ACEOF
18053 /* end confdefs.h. */
18054 #include <fnmatch.h>
18055 # define y(a, b, c) (fnmatch (a, b, c) == 0)
18056 # define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
18062 (!(y ("a*", "abc", 0)
18063 && n ("d*/*1", "d/s/1", FNM_PATHNAME)
18064 && y ("a\\\\bc", "abc", 0)
18065 && n ("a\\\\bc", "abc", FNM_NOESCAPE)
18066 && y ("*x", ".x", 0)
18067 && n ("*x", ".x", FNM_PERIOD)
18073 rm -f conftest$ac_exeext
18074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18075 (eval $ac_link) 2>&5
18077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18078 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18080 (eval $ac_try) 2>&5
18082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18083 (exit $ac_status); }; }; then
18084 ac_cv_func_fnmatch_works=yes
18086 echo "$as_me: program exited with status $ac_status" >&5
18087 echo "$as_me: failed program was:" >&5
18088 sed 's/^/| /' conftest.$ac_ext >&5
18090 ( exit $ac_status )
18091 ac_cv_func_fnmatch_works=no
18093 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18096 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_works" >&5
18097 echo "${ECHO_T}$ac_cv_func_fnmatch_works" >&6
18098 if test $ac_cv_func_fnmatch_works = yes; then
18100 cat >>confdefs.h <<\_ACEOF
18101 #define HAVE_FNMATCH 1
18110 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
18111 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
18112 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
18113 echo $ECHO_N "(cached) $ECHO_C" >&6
18115 ac_check_lib_save_LIBS=$LIBS
18116 LIBS="-lxpg4 $LIBS"
18117 cat >conftest.$ac_ext <<_ACEOF
18118 #line $LINENO "configure"
18121 cat confdefs.h >>conftest.$ac_ext
18122 cat >>conftest.$ac_ext <<_ACEOF
18123 /* end confdefs.h. */
18125 /* Override any gcc2 internal prototype to avoid an error. */
18129 /* We use char because int might match the return type of a gcc2
18130 builtin and then its argument prototype would still apply. */
18140 rm -f conftest.$ac_objext conftest$ac_exeext
18141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18142 (eval $ac_link) 2>&5
18144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18145 (exit $ac_status); } &&
18146 { ac_try='test -s conftest$ac_exeext'
18147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18148 (eval $ac_try) 2>&5
18150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18151 (exit $ac_status); }; }; then
18152 ac_cv_lib_xpg4_setlocale=yes
18154 echo "$as_me: failed program was:" >&5
18155 sed 's/^/| /' conftest.$ac_ext >&5
18157 ac_cv_lib_xpg4_setlocale=no
18159 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18160 LIBS=$ac_check_lib_save_LIBS
18162 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
18163 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
18164 if test $ac_cv_lib_xpg4_setlocale = yes; then
18165 LIBS="$LIBS -lxpg4"
18171 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
18172 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
18173 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
18174 echo $ECHO_N "(cached) $ECHO_C" >&6
18176 ac_check_lib_save_LIBS=$LIBS
18178 cat >conftest.$ac_ext <<_ACEOF
18179 #line $LINENO "configure"
18182 cat confdefs.h >>conftest.$ac_ext
18183 cat >>conftest.$ac_ext <<_ACEOF
18184 /* end confdefs.h. */
18186 /* Override any gcc2 internal prototype to avoid an error. */
18190 /* We use char because int might match the return type of a gcc2
18191 builtin and then its argument prototype would still apply. */
18201 rm -f conftest.$ac_objext conftest$ac_exeext
18202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18203 (eval $ac_link) 2>&5
18205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18206 (exit $ac_status); } &&
18207 { ac_try='test -s conftest$ac_exeext'
18208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18209 (eval $ac_try) 2>&5
18211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18212 (exit $ac_status); }; }; then
18213 ac_cv_lib_sun_getpwnam=yes
18215 echo "$as_me: failed program was:" >&5
18216 sed 's/^/| /' conftest.$ac_ext >&5
18218 ac_cv_lib_sun_getpwnam=no
18220 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18221 LIBS=$ac_check_lib_save_LIBS
18223 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
18224 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
18225 if test $ac_cv_lib_sun_getpwnam = yes; then
18226 cat >>confdefs.h <<_ACEOF
18227 #define HAVE_LIBSUN 1
18236 for ac_header in zlib.h
18238 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18239 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18240 echo "$as_me:$LINENO: checking for $ac_header" >&5
18241 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18242 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18243 echo $ECHO_N "(cached) $ECHO_C" >&6
18245 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18246 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18248 # Is the header compilable?
18249 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18250 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18251 cat >conftest.$ac_ext <<_ACEOF
18252 #line $LINENO "configure"
18255 cat confdefs.h >>conftest.$ac_ext
18256 cat >>conftest.$ac_ext <<_ACEOF
18257 /* end confdefs.h. */
18258 $ac_includes_default
18259 #include <$ac_header>
18261 rm -f conftest.$ac_objext
18262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18263 (eval $ac_compile) 2>&5
18265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18266 (exit $ac_status); } &&
18267 { ac_try='test -s conftest.$ac_objext'
18268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18269 (eval $ac_try) 2>&5
18271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18272 (exit $ac_status); }; }; then
18273 ac_header_compiler=yes
18275 echo "$as_me: failed program was:" >&5
18276 sed 's/^/| /' conftest.$ac_ext >&5
18278 ac_header_compiler=no
18280 rm -f conftest.$ac_objext conftest.$ac_ext
18281 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18282 echo "${ECHO_T}$ac_header_compiler" >&6
18284 # Is the header present?
18285 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18286 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18287 cat >conftest.$ac_ext <<_ACEOF
18288 #line $LINENO "configure"
18291 cat confdefs.h >>conftest.$ac_ext
18292 cat >>conftest.$ac_ext <<_ACEOF
18293 /* end confdefs.h. */
18294 #include <$ac_header>
18296 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18297 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18299 grep -v '^ *+' conftest.er1 >conftest.err
18301 cat conftest.err >&5
18302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18303 (exit $ac_status); } >/dev/null; then
18304 if test -s conftest.err; then
18305 ac_cpp_err=$ac_c_preproc_warn_flag
18312 if test -z "$ac_cpp_err"; then
18313 ac_header_preproc=yes
18315 echo "$as_me: failed program was:" >&5
18316 sed 's/^/| /' conftest.$ac_ext >&5
18318 ac_header_preproc=no
18320 rm -f conftest.err conftest.$ac_ext
18321 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18322 echo "${ECHO_T}$ac_header_preproc" >&6
18324 # So? What about this header?
18325 case $ac_header_compiler:$ac_header_preproc in
18327 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18328 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18329 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18330 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18333 ## ------------------------------------ ##
18334 ## Report this to bug-autoconf@gnu.org. ##
18335 ## ------------------------------------ ##
18338 sed "s/^/$as_me: WARNING: /" >&2
18341 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18342 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18343 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18344 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18345 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18346 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18349 ## ------------------------------------ ##
18350 ## Report this to bug-autoconf@gnu.org. ##
18351 ## ------------------------------------ ##
18354 sed "s/^/$as_me: WARNING: /" >&2
18357 echo "$as_me:$LINENO: checking for $ac_header" >&5
18358 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18359 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18360 echo $ECHO_N "(cached) $ECHO_C" >&6
18362 eval "$as_ac_Header=$ac_header_preproc"
18364 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18365 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18368 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18369 cat >>confdefs.h <<_ACEOF
18370 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18377 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
18378 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
18379 if test "${ac_cv_lib_z_deflate+set}" = set; then
18380 echo $ECHO_N "(cached) $ECHO_C" >&6
18382 ac_check_lib_save_LIBS=$LIBS
18384 cat >conftest.$ac_ext <<_ACEOF
18385 #line $LINENO "configure"
18388 cat confdefs.h >>conftest.$ac_ext
18389 cat >>conftest.$ac_ext <<_ACEOF
18390 /* end confdefs.h. */
18392 /* Override any gcc2 internal prototype to avoid an error. */
18396 /* We use char because int might match the return type of a gcc2
18397 builtin and then its argument prototype would still apply. */
18407 rm -f conftest.$ac_objext conftest$ac_exeext
18408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18409 (eval $ac_link) 2>&5
18411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18412 (exit $ac_status); } &&
18413 { ac_try='test -s conftest$ac_exeext'
18414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18415 (eval $ac_try) 2>&5
18417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18418 (exit $ac_status); }; }; then
18419 ac_cv_lib_z_deflate=yes
18421 echo "$as_me: failed program was:" >&5
18422 sed 's/^/| /' conftest.$ac_ext >&5
18424 ac_cv_lib_z_deflate=no
18426 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18427 LIBS=$ac_check_lib_save_LIBS
18429 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
18430 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
18431 if test $ac_cv_lib_z_deflate = yes; then
18436 if test x$FDLIBS = x-lz; then
18437 cat >>confdefs.h <<\_ACEOF
18438 #define HAVE_LIBZ 1
18444 if test "${ac_cv_header_sys_acl_h+set}" = set; then
18445 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
18446 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
18447 if test "${ac_cv_header_sys_acl_h+set}" = set; then
18448 echo $ECHO_N "(cached) $ECHO_C" >&6
18450 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
18451 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
18453 # Is the header compilable?
18454 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
18455 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
18456 cat >conftest.$ac_ext <<_ACEOF
18457 #line $LINENO "configure"
18460 cat confdefs.h >>conftest.$ac_ext
18461 cat >>conftest.$ac_ext <<_ACEOF
18462 /* end confdefs.h. */
18463 $ac_includes_default
18464 #include <sys/acl.h>
18466 rm -f conftest.$ac_objext
18467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18468 (eval $ac_compile) 2>&5
18470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18471 (exit $ac_status); } &&
18472 { ac_try='test -s conftest.$ac_objext'
18473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18474 (eval $ac_try) 2>&5
18476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18477 (exit $ac_status); }; }; then
18478 ac_header_compiler=yes
18480 echo "$as_me: failed program was:" >&5
18481 sed 's/^/| /' conftest.$ac_ext >&5
18483 ac_header_compiler=no
18485 rm -f conftest.$ac_objext conftest.$ac_ext
18486 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18487 echo "${ECHO_T}$ac_header_compiler" >&6
18489 # Is the header present?
18490 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
18491 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
18492 cat >conftest.$ac_ext <<_ACEOF
18493 #line $LINENO "configure"
18496 cat confdefs.h >>conftest.$ac_ext
18497 cat >>conftest.$ac_ext <<_ACEOF
18498 /* end confdefs.h. */
18499 #include <sys/acl.h>
18501 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18502 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18504 grep -v '^ *+' conftest.er1 >conftest.err
18506 cat conftest.err >&5
18507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18508 (exit $ac_status); } >/dev/null; then
18509 if test -s conftest.err; then
18510 ac_cpp_err=$ac_c_preproc_warn_flag
18517 if test -z "$ac_cpp_err"; then
18518 ac_header_preproc=yes
18520 echo "$as_me: failed program was:" >&5
18521 sed 's/^/| /' conftest.$ac_ext >&5
18523 ac_header_preproc=no
18525 rm -f conftest.err conftest.$ac_ext
18526 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18527 echo "${ECHO_T}$ac_header_preproc" >&6
18529 # So? What about this header?
18530 case $ac_header_compiler:$ac_header_preproc in
18532 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
18533 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18534 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
18535 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
18538 ## ------------------------------------ ##
18539 ## Report this to bug-autoconf@gnu.org. ##
18540 ## ------------------------------------ ##
18543 sed "s/^/$as_me: WARNING: /" >&2
18546 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
18547 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
18548 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
18549 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
18550 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
18551 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
18554 ## ------------------------------------ ##
18555 ## Report this to bug-autoconf@gnu.org. ##
18556 ## ------------------------------------ ##
18559 sed "s/^/$as_me: WARNING: /" >&2
18562 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
18563 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
18564 if test "${ac_cv_header_sys_acl_h+set}" = set; then
18565 echo $ECHO_N "(cached) $ECHO_C" >&6
18567 ac_cv_header_sys_acl_h=$ac_header_preproc
18569 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
18570 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
18575 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
18576 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
18577 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
18578 echo $ECHO_N "(cached) $ECHO_C" >&6
18580 ac_check_lib_save_LIBS=$LIBS
18582 cat >conftest.$ac_ext <<_ACEOF
18583 #line $LINENO "configure"
18586 cat confdefs.h >>conftest.$ac_ext
18587 cat >>conftest.$ac_ext <<_ACEOF
18588 /* end confdefs.h. */
18590 /* Override any gcc2 internal prototype to avoid an error. */
18594 /* We use char because int might match the return type of a gcc2
18595 builtin and then its argument prototype would still apply. */
18596 char acl_get_file ();
18605 rm -f conftest.$ac_objext conftest$ac_exeext
18606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18607 (eval $ac_link) 2>&5
18609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18610 (exit $ac_status); } &&
18611 { ac_try='test -s conftest$ac_exeext'
18612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18613 (eval $ac_try) 2>&5
18615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18616 (exit $ac_status); }; }; then
18617 ac_cv_lib_acl_acl_get_file=yes
18619 echo "$as_me: failed program was:" >&5
18620 sed 's/^/| /' conftest.$ac_ext >&5
18622 ac_cv_lib_acl_acl_get_file=no
18624 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18625 LIBS=$ac_check_lib_save_LIBS
18627 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
18628 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
18629 if test $ac_cv_lib_acl_acl_get_file = yes; then
18630 FDLIBS="-lacl $FDLIBS"
18634 if test $ac_cv_lib_acl_acl_get_file = yes; then
18635 cat >>confdefs.h <<\_ACEOF
18643 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
18644 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
18645 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
18646 echo $ECHO_N "(cached) $ECHO_C" >&6
18648 ac_check_lib_save_LIBS=$LIBS
18649 LIBS="-lpthread $LIBS"
18650 cat >conftest.$ac_ext <<_ACEOF
18651 #line $LINENO "configure"
18654 cat confdefs.h >>conftest.$ac_ext
18655 cat >>conftest.$ac_ext <<_ACEOF
18656 /* end confdefs.h. */
18658 /* Override any gcc2 internal prototype to avoid an error. */
18662 /* We use char because int might match the return type of a gcc2
18663 builtin and then its argument prototype would still apply. */
18664 char pthread_create ();
18673 rm -f conftest.$ac_objext conftest$ac_exeext
18674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18675 (eval $ac_link) 2>&5
18677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18678 (exit $ac_status); } &&
18679 { ac_try='test -s conftest$ac_exeext'
18680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18681 (eval $ac_try) 2>&5
18683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18684 (exit $ac_status); }; }; then
18685 ac_cv_lib_pthread_pthread_create=yes
18687 echo "$as_me: failed program was:" >&5
18688 sed 's/^/| /' conftest.$ac_ext >&5
18690 ac_cv_lib_pthread_pthread_create=no
18692 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18693 LIBS=$ac_check_lib_save_LIBS
18695 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
18696 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
18697 if test $ac_cv_lib_pthread_pthread_create = yes; then
18698 PTHREAD_LIB="-lpthread"
18700 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
18701 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
18702 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
18703 echo $ECHO_N "(cached) $ECHO_C" >&6
18705 ac_check_lib_save_LIBS=$LIBS
18706 LIBS="-lpthreads $LIBS"
18707 cat >conftest.$ac_ext <<_ACEOF
18708 #line $LINENO "configure"
18711 cat confdefs.h >>conftest.$ac_ext
18712 cat >>conftest.$ac_ext <<_ACEOF
18713 /* end confdefs.h. */
18715 /* Override any gcc2 internal prototype to avoid an error. */
18719 /* We use char because int might match the return type of a gcc2
18720 builtin and then its argument prototype would still apply. */
18721 char pthread_create ();
18730 rm -f conftest.$ac_objext conftest$ac_exeext
18731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18732 (eval $ac_link) 2>&5
18734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18735 (exit $ac_status); } &&
18736 { ac_try='test -s conftest$ac_exeext'
18737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18738 (eval $ac_try) 2>&5
18740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18741 (exit $ac_status); }; }; then
18742 ac_cv_lib_pthreads_pthread_create=yes
18744 echo "$as_me: failed program was:" >&5
18745 sed 's/^/| /' conftest.$ac_ext >&5
18747 ac_cv_lib_pthreads_pthread_create=no
18749 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18750 LIBS=$ac_check_lib_save_LIBS
18752 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
18753 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
18754 if test $ac_cv_lib_pthreads_pthread_create = yes; then
18755 PTHREAD_LIB="-lpthreads"
18757 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
18758 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
18759 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
18760 echo $ECHO_N "(cached) $ECHO_C" >&6
18762 ac_check_lib_save_LIBS=$LIBS
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. */
18772 /* Override any gcc2 internal prototype to avoid an error. */
18776 /* We use char because int might match the return type of a gcc2
18777 builtin and then its argument prototype would still apply. */
18778 char pthread_create ();
18787 rm -f conftest.$ac_objext conftest$ac_exeext
18788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18789 (eval $ac_link) 2>&5
18791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18792 (exit $ac_status); } &&
18793 { ac_try='test -s conftest$ac_exeext'
18794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18795 (eval $ac_try) 2>&5
18797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18798 (exit $ac_status); }; }; then
18799 ac_cv_lib_c_r_pthread_create=yes
18801 echo "$as_me: failed program was:" >&5
18802 sed 's/^/| /' conftest.$ac_ext >&5
18804 ac_cv_lib_c_r_pthread_create=no
18806 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18807 LIBS=$ac_check_lib_save_LIBS
18809 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
18810 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
18811 if test $ac_cv_lib_c_r_pthread_create = yes; then
18812 PTHREAD_LIB="-lc_r"
18814 echo "$as_me:$LINENO: checking for pthread_create" >&5
18815 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
18816 if test "${ac_cv_func_pthread_create+set}" = set; then
18817 echo $ECHO_N "(cached) $ECHO_C" >&6
18819 cat >conftest.$ac_ext <<_ACEOF
18820 #line $LINENO "configure"
18823 cat confdefs.h >>conftest.$ac_ext
18824 cat >>conftest.$ac_ext <<_ACEOF
18825 /* end confdefs.h. */
18826 /* System header to define __stub macros and hopefully few prototypes,
18827 which can conflict with char pthread_create (); below.
18828 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18829 <limits.h> exists even on freestanding compilers. */
18831 # include <limits.h>
18833 # include <assert.h>
18835 /* Override any gcc2 internal prototype to avoid an error. */
18840 /* We use char because int might match the return type of a gcc2
18841 builtin and then its argument prototype would still apply. */
18842 char pthread_create ();
18843 /* The GNU C library defines this for functions which it implements
18844 to always fail with ENOSYS. Some functions are actually named
18845 something starting with __ and the normal name is an alias. */
18846 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
18849 char (*f) () = pthread_create;
18858 return f != pthread_create;
18863 rm -f conftest.$ac_objext conftest$ac_exeext
18864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18865 (eval $ac_link) 2>&5
18867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18868 (exit $ac_status); } &&
18869 { ac_try='test -s conftest$ac_exeext'
18870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18871 (eval $ac_try) 2>&5
18873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18874 (exit $ac_status); }; }; then
18875 ac_cv_func_pthread_create=yes
18877 echo "$as_me: failed program was:" >&5
18878 sed 's/^/| /' conftest.$ac_ext >&5
18880 ac_cv_func_pthread_create=no
18882 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18884 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
18885 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
18898 cat >>confdefs.h <<\_ACEOF
18904 CFLAGS=${CFLAGS--O}
18905 LDFLAGS=${LDFLAGS--O}
18906 DB_LIBS="${SQL_LFLAGS}"
18908 CPPFLAGS="$CPPFLAGS"
18933 # Finally we set appropriate distribution specific
18934 # variables and defaults
18936 # PFILES are platform specific files
18937 PFILES="platforms/Makefile"
18941 hostname=`uname -n | cut -d '.' -f 1`
18942 case "$DISTNAME" in
18945 PSCMD="ps -e -o pid,comm"
18946 PFILES="${PFILES} \
18947 platforms/aix/Makefile"
18948 TAPEDRIVE="/dev/rmt0.1"
18952 PTHREAD_LIB="-lpthread -lexc"
18953 if test "${CC}" = "gcc" ; then
18960 TAPEDRIVE="/dev/nrmt0"
18963 DISTVER=`uname -a |awk '{print $3}'`
18964 TAPEDRIVE="/dev/nrmt0"
18965 PTHREAD_LIB="-pthread"
18966 CFLAGS="${CFLAGS} -pthread"
18967 PSCMD="ps -x -o pid,command"
18970 PFILES="${PFILES} \
18971 platforms/bsdi/Makefile \
18972 platforms/bsdi/bacula-fd \
18973 platforms/bsdi/bacula-sd \
18974 platforms/bsdi/bacula-dir"
18975 largefile_support="yes"
18978 DISTVER=`uname -a |awk '{print $3}'`
18979 TAPEDRIVE="/dev/nrst0"
18981 WCFLAGS="-mwindows"
18982 WLDFLAGS="-mwindows"
18986 TAPEDRIVE="/dev/nst0"
18987 PSCMD="ps -e -o pid,command"
18989 PFILES="${PFILES} \
18990 platforms/darwin/Makefile"
18993 DISTVER=`cat /etc/debian_version`
18994 TAPEDRIVE="/dev/nrst0"
18995 PSCMD="ps -e -o pid,command"
18998 DISTVER=`uname -a |awk '{print $3}'`
18999 VER=`echo $DISTVER | cut -c 1`
19000 if test x$VER = x4 ; then
19001 PTHREAD_LIB="-pthread"
19002 CFLAGS="${CFLAGS} -pthread"
19006 TAPEDRIVE="/dev/nrsa0"
19007 PSCMD="ps -x -o pid,command"
19008 PFILES="${PFILES} \
19009 platforms/freebsd/Makefile \
19010 platforms/freebsd/bacula-fd \
19011 platforms/freebsd/bacula-sd \
19012 platforms/freebsd/bacula-dir"
19013 largefile_support="yes"
19016 PSCMD="UNIX95=1 ps -e -o pid,comm"
19017 CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
19019 TAPEDRIVE="/dev/rmt/0hnb"
19023 TAPEDRIVE="/dev/rmt/0cbn"
19024 PSCMD="ps -e -o pid,comm"
19025 PFILES="${PFILES} \
19026 platforms/irix/Makefile \
19027 platforms/irix/bacula-fd \
19028 platforms/irix/bacula-sd \
19029 platforms/irix/bacula-dir"
19032 DISTVER=`uname -a |awk '{print $3}'`
19035 TAPEDRIVE="/dev/nrst0"
19036 PSCMD="ps -a -o pid,command"
19037 PTHREAD_LIB="-pthread"
19038 CFLAGS="${CFLAGS} -pthread"
19041 DISTVER=`uname -a |awk '{print $3}'`
19044 TAPEDRIVE="/dev/nrst0"
19045 PSCMD="ps -ax -o pid,command"
19046 PTHREAD_LIB="-pthread"
19047 CFLAGS="${CFLAGS} -pthread"
19048 PFILES="${PFILES} \
19049 platforms/openbsd/Makefile \
19050 platforms/openbsd/bacula-fd \
19051 platforms/openbsd/bacula-sd \
19052 platforms/openbsd/bacula-dir"
19055 if test -f /etc/whitebox-release ; then
19056 f=/etc/whitebox-release
19058 f=/etc/redhat-release
19060 if test `cat $f | grep release |\
19061 cut -f 3 -d ' '`x = "Enterprise"x ; then
19062 DISTVER="Enterprise "`cat $f | grep release |\
19065 DISTVER=`cat /etc/redhat-release | grep release |\
19068 TAPEDRIVE="/dev/nst0"
19069 PSCMD="ps -e -o pid,command"
19070 PFILES="${PFILES} \
19071 platforms/redhat/Makefile \
19072 platforms/redhat/bacula-fd \
19073 platforms/redhat/bacula-sd \
19074 platforms/redhat/bacula-dir \
19075 platforms/redhat/bacula.spec \
19077 hostname=`hostname -s`
19080 DISTVER=`cat /etc/mandrake-release | grep release |\
19082 TAPEDRIVE="/dev/nst0"
19083 PSCMD="ps -e -o pid,command"
19084 PFILES="${PFILES} \
19085 platforms/mandrake/Makefile \
19086 platforms/mandrake/bacula-fd \
19087 platforms/mandrake/bacula-sd \
19088 platforms/mandrake/bacula-dir \
19089 platforms/mandrake/bacula.spec \
19093 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
19094 TAPEDRIVE="/dev/nst0"
19095 PSCMD="ps -e -o pid,command"
19096 PFILES="${PFILES} \
19097 platforms/gentoo/Makefile \
19098 platforms/gentoo/bacula-init \
19099 platforms/gentoo/bacula-fd \
19100 platforms/gentoo/bacula-sd \
19101 platforms/gentoo/bacula-dir"
19104 DISTVER=`cat /etc/slackware-version`
19105 TAPEDRIVE="/dev/nst0"
19106 PSCMD="ps -e -o pid,command"
19107 PFILES="${PFILES} \
19108 platforms/slackware/Makefile \
19109 platforms/slackware/rc.bacula-fd \
19110 platforms/slackware/rc.bacula-sd \
19111 platforms/slackware/rc.bacula-dir\
19112 platforms/slackware/functions.bacula"
19116 TAPEDRIVE="/dev/rmt/0cbn"
19117 PSCMD="ps -e -o pid,comm"
19118 PFILES="${PFILES} \
19119 platforms/solaris/Makefile \
19120 platforms/solaris/bacula-fd \
19121 platforms/solaris/bacula-sd \
19122 platforms/solaris/bacula-dir"
19123 if test x$DISTVER = x5.6 ; then
19124 cat >>confdefs.h <<\_ACEOF
19125 #define HAVE_OLD_SOCKOPT 1
19131 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
19133 TAPEDRIVE="/dev/nst0"
19134 PSCMD="ps -e -o pid,command"
19135 PFILES="${PFILES} \
19136 platforms/suse/Makefile \
19137 platforms/suse/bacula-fd \
19138 platforms/suse/bacula-sd \
19139 platforms/suse/bacula-dir \
19140 platforms/suse/bacula \
19141 platforms/suse/bacula.spec"
19146 TAPEDRIVE="/dev/nst0"
19147 PSCMD="ps -e -o pid,command"
19148 PFILES="${PFILES} \
19149 platforms/suse/Makefile \
19150 platforms/suse/bacula-fd \
19151 platforms/suse/bacula-sd \
19152 platforms/suse/bacula-dir"
19156 TAPEDRIVE="/dev/nst0"
19159 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
19165 LIBS="$PTHREAD_LIB $LIBS"
19167 cat >>confdefs.h <<_ACEOF
19171 cat >>confdefs.h <<_ACEOF
19182 MCOMMON=./autoconf/Make.common
19185 if test "x${subsysdir}" = "x${sbindir}" ; then
19188 echo "You have set both --sbindir and --with-subsys-dir"
19189 echo " equal to: ${subsysdir} "
19190 echo "This is not permitted. Please reconfigure."
19192 echo "Aborting configuration ..."
19198 ac_config_files="$ac_config_files autoconf/Make.common Makefile rescue/Makefile rescue/linux/Makefile rescue/linux/floppy/Makefile rescue/linux/cdrom/Makefile rescue/linux/cdrom/bacula/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 scripts/bacula-tray-monitor.desktop 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"
19199 ac_config_commands="$ac_config_commands default"
19200 cat >confcache <<\_ACEOF
19201 # This file is a shell script that caches the results of configure
19202 # tests run on this system so they can be shared between configure
19203 # scripts and configure runs, see configure's option --config-cache.
19204 # It is not useful on other systems. If it contains results you don't
19205 # want to keep, you may remove or edit it.
19207 # config.status only pays attention to the cache file if you give it
19208 # the --recheck option to rerun configure.
19210 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19211 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19212 # following values.
19216 # The following way of writing the cache mishandles newlines in values,
19217 # but we know of no workaround that is simple, portable, and efficient.
19218 # So, don't put newlines in cache variables' values.
19219 # Ultrix sh set writes to stderr and can't be redirected directly,
19220 # and sets the high bit in the cache file unless we assign to the vars.
19223 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19225 # `set' does not quote correctly, so add quotes (double-quote
19226 # substitution turns \\\\ into \\, and sed turns \\ into \).
19229 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19232 # `set' quotes correctly as required by POSIX, so do not add quotes.
19234 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19241 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19243 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19245 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19246 if test -w $cache_file; then
19247 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19248 cat confcache >$cache_file
19250 echo "not updating unwritable cache $cache_file"
19255 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19256 # Let make expand exec_prefix.
19257 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19259 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19260 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19261 # trailing colons and then remove the whole line if VPATH becomes empty
19262 # (actually we leave an empty line to preserve line numbers).
19263 if test "x$srcdir" = x.; then
19264 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19265 s/:*\$(srcdir):*/:/;
19266 s/:*\${srcdir}:*/:/;
19268 s/^\([^=]*=[ ]*\):*/\1/;
19274 DEFS=-DHAVE_CONFIG_H
19278 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19279 # 1. Remove the extension, and $U if already installed.
19280 ac_i=`echo "$ac_i" |
19281 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19283 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19284 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19286 LIBOBJS=$ac_libobjs
19288 LTLIBOBJS=$ac_ltlibobjs
19292 : ${CONFIG_STATUS=./config.status}
19293 ac_clean_files_save=$ac_clean_files
19294 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19295 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19296 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19297 cat >$CONFIG_STATUS <<_ACEOF
19299 # Generated by $as_me.
19300 # Run this file to recreate the current configuration.
19301 # Compiler output produced by configure, useful for debugging
19302 # configure, is in config.log if it exists.
19305 ac_cs_recheck=false
19307 SHELL=\${CONFIG_SHELL-$SHELL}
19310 cat >>$CONFIG_STATUS <<\_ACEOF
19311 ## --------------------- ##
19312 ## M4sh Initialization. ##
19313 ## --------------------- ##
19315 # Be Bourne compatible
19316 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19319 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19320 # is contrary to our usage. Disable this feature.
19321 alias -g '${1+"$@"}'='"$@"'
19322 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19326 # Support unset when possible.
19327 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
19334 # Work around bugs in pre-3.0 UWIN ksh.
19335 $as_unset ENV MAIL MAILPATH
19342 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19343 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19344 LC_TELEPHONE LC_TIME
19346 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
19347 eval $as_var=C; export $as_var
19353 # Required to use basename.
19354 if expr a : '\(a\)' >/dev/null 2>&1; then
19360 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19361 as_basename=basename
19367 # Name of the executable.
19368 as_me=`$as_basename "$0" ||
19369 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19370 X"$0" : 'X\(//\)$' \| \
19371 X"$0" : 'X\(/\)$' \| \
19372 . : '\(.\)' 2>/dev/null ||
19374 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19375 /^X\/\(\/\/\)$/{ s//\1/; q; }
19376 /^X\/\(\/\).*/{ s//\1/; q; }
19380 # PATH needs CR, and LINENO needs CR and PATH.
19381 # Avoid depending upon Character Ranges.
19382 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19383 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19384 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19385 as_cr_digits='0123456789'
19386 as_cr_alnum=$as_cr_Letters$as_cr_digits
19388 # The user is always right.
19389 if test "${PATH_SEPARATOR+set}" != set; then
19390 echo "#! /bin/sh" >conf$$.sh
19391 echo "exit 0" >>conf$$.sh
19393 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19402 as_lineno_1=$LINENO
19403 as_lineno_2=$LINENO
19404 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19405 test "x$as_lineno_1" != "x$as_lineno_2" &&
19406 test "x$as_lineno_3" = "x$as_lineno_2" || {
19407 # Find who we are. Look in the path if we contain no path at all
19410 *[\\/]* ) as_myself=$0 ;;
19411 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19412 for as_dir in $PATH
19415 test -z "$as_dir" && as_dir=.
19416 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19421 # We did not find ourselves, most probably we were run as `sh COMMAND'
19422 # in which case we are not to be found in the path.
19423 if test "x$as_myself" = x; then
19426 if test ! -f "$as_myself"; then
19427 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19428 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19429 { (exit 1); exit 1; }; }
19431 case $CONFIG_SHELL in
19433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19434 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19437 test -z "$as_dir" && as_dir=.
19438 for as_base in sh bash ksh sh5; do
19441 if ("$as_dir/$as_base" -c '
19442 as_lineno_1=$LINENO
19443 as_lineno_2=$LINENO
19444 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19445 test "x$as_lineno_1" != "x$as_lineno_2" &&
19446 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
19447 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19448 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19449 CONFIG_SHELL=$as_dir/$as_base
19450 export CONFIG_SHELL
19451 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19459 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19460 # uniformly replaced by the line number. The first 'sed' inserts a
19461 # line-number line before each line; the second 'sed' does the real
19462 # work. The second script uses 'N' to pair each line-number line
19463 # with the numbered line, and appends trailing '-' during
19464 # substitution so that $LINENO is not a special case at line end.
19465 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19466 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19467 sed '=' <$as_myself |
19472 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19475 s,^['$as_cr_digits']*\n,,
19476 ' >$as_me.lineno &&
19477 chmod +x $as_me.lineno ||
19478 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19479 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19480 { (exit 1); exit 1; }; }
19482 # Don't try to exec as it changes $[0], causing all sort of problems
19483 # (the dirname of $[0] is not the place where we might find the
19484 # original and so on. Autoconf is especially sensible to this).
19486 # Exit status is that of the last command.
19491 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19492 *c*,-n*) ECHO_N= ECHO_C='
19494 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19495 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
19498 if expr a : '\(a\)' >/dev/null 2>&1; then
19504 rm -f conf$$ conf$$.exe conf$$.file
19506 if ln -s conf$$.file conf$$ 2>/dev/null; then
19507 # We could just check for DJGPP; but this test a) works b) is more generic
19508 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19509 if test -f conf$$.exe; then
19510 # Don't use ln at all; we don't have any links
19515 elif ln conf$$.file conf$$ 2>/dev/null; then
19520 rm -f conf$$ conf$$.exe conf$$.file
19522 if mkdir -p . 2>/dev/null; then
19528 as_executable_p="test -f"
19530 # Sed expression to map a string onto a valid CPP name.
19531 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
19533 # Sed expression to map a string onto a valid variable name.
19534 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
19538 # We need space, tab and new line, in precisely that order.
19548 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19549 # report actual input values of CONFIG_FILES etc. instead of their
19550 # values after options handling. Logging --version etc. is OK.
19554 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19555 ## Running $as_me. ##
19560 This file was extended by $as_me, which was
19561 generated by GNU Autoconf 2.57. Invocation command line was
19563 CONFIG_FILES = $CONFIG_FILES
19564 CONFIG_HEADERS = $CONFIG_HEADERS
19565 CONFIG_LINKS = $CONFIG_LINKS
19566 CONFIG_COMMANDS = $CONFIG_COMMANDS
19570 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19574 # Files that config.status was made for.
19575 if test -n "$ac_config_files"; then
19576 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19579 if test -n "$ac_config_headers"; then
19580 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19583 if test -n "$ac_config_links"; then
19584 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19587 if test -n "$ac_config_commands"; then
19588 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19591 cat >>$CONFIG_STATUS <<\_ACEOF
19594 \`$as_me' instantiates files from templates according to the
19595 current configuration.
19597 Usage: $0 [OPTIONS] [FILE]...
19599 -h, --help print this help, then exit
19600 -V, --version print version number, then exit
19601 -q, --quiet do not print progress messages
19602 -d, --debug don't remove temporary files
19603 --recheck update $as_me by reconfiguring in the same conditions
19604 --file=FILE[:TEMPLATE]
19605 instantiate the configuration file FILE
19606 --header=FILE[:TEMPLATE]
19607 instantiate the configuration header FILE
19609 Configuration files:
19612 Configuration headers:
19615 Configuration commands:
19618 Report bugs to <bug-autoconf@gnu.org>."
19621 cat >>$CONFIG_STATUS <<_ACEOF
19624 configured by $0, generated by GNU Autoconf 2.57,
19625 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19627 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
19628 Free Software Foundation, Inc.
19629 This config.status script is free software; the Free Software Foundation
19630 gives unlimited permission to copy, distribute and modify it."
19635 cat >>$CONFIG_STATUS <<\_ACEOF
19636 # If no file are specified by the user, then we need to provide default
19637 # value. By we need to know if files were specified by the user.
19643 ac_option=`expr "x$1" : 'x\([^=]*\)='`
19644 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19652 *) # This is not an option, so the user has probably given explicit
19655 ac_need_defaults=false;;
19659 # Handling of the options.
19661 cat >>$CONFIG_STATUS <<\_ACEOF
19662 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19664 --version | --vers* | -V )
19665 echo "$ac_cs_version"; exit 0 ;;
19667 # Conflict between --help and --header
19668 { { echo "$as_me:$LINENO: error: ambiguous option: $1
19669 Try \`$0 --help' for more information." >&5
19670 echo "$as_me: error: ambiguous option: $1
19671 Try \`$0 --help' for more information." >&2;}
19672 { (exit 1); exit 1; }; };;
19673 --help | --hel | -h )
19674 echo "$ac_cs_usage"; exit 0 ;;
19675 --debug | --d* | -d )
19677 --file | --fil | --fi | --f )
19679 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19680 ac_need_defaults=false;;
19681 --header | --heade | --head | --hea )
19683 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19684 ac_need_defaults=false;;
19685 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19686 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19689 # This is an error.
19690 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19691 Try \`$0 --help' for more information." >&5
19692 echo "$as_me: error: unrecognized option: $1
19693 Try \`$0 --help' for more information." >&2;}
19694 { (exit 1); exit 1; }; } ;;
19696 *) ac_config_targets="$ac_config_targets $1" ;;
19702 ac_configure_extra_args=
19704 if $ac_cs_silent; then
19706 ac_configure_extra_args="$ac_configure_extra_args --silent"
19710 cat >>$CONFIG_STATUS <<_ACEOF
19711 if \$ac_cs_recheck; then
19712 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19713 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19722 cat >>$CONFIG_STATUS <<\_ACEOF
19723 for ac_config_target in $ac_config_targets
19725 case "$ac_config_target" in
19726 # Handling of arguments.
19727 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
19728 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19729 "rescue/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/Makefile" ;;
19730 "rescue/linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/Makefile" ;;
19731 "rescue/linux/floppy/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/floppy/Makefile" ;;
19732 "rescue/linux/cdrom/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/cdrom/Makefile" ;;
19733 "rescue/linux/cdrom/bacula/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/cdrom/bacula/Makefile" ;;
19734 "rescue/freebsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/freebsd/Makefile" ;;
19735 "rescue/solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/solaris/Makefile" ;;
19736 "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
19737 "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
19738 "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
19739 "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
19740 "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
19741 "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
19742 "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
19743 "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
19744 "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
19745 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
19746 "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
19747 "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
19748 "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
19749 "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
19750 "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
19751 "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
19752 "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
19753 "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
19754 "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
19755 "scripts/bacula-tray-monitor.desktop" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
19756 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
19757 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19758 "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
19759 "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
19760 "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
19761 "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
19762 "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
19763 "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
19764 "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
19765 "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
19766 "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
19767 "src/tray-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
19768 "src/tray-monitor/tray-monitor.conf" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
19769 "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
19770 "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
19771 "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
19772 "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
19773 "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
19774 "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
19775 "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
19776 "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
19777 "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
19778 "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
19779 "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
19780 "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
19781 "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
19782 "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
19783 "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
19784 "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
19785 "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
19786 "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
19787 "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
19788 "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
19789 "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
19790 "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
19791 "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
19792 "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
19793 "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
19794 "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
19795 "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
19796 "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
19797 "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
19798 "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
19799 "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
19800 "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
19801 "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
19802 "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
19803 "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
19804 "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
19805 "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
19806 "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
19807 "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
19808 "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
19809 "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
19810 "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
19811 "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
19812 "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
19813 "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
19814 "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
19815 "src/win32/baculafd/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/baculafd/bacula-fd.conf" ;;
19816 "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
19817 "src/win32/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/console/bconsole.conf" ;;
19818 "src/win32/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/wx-console/wx-console.conf" ;;
19819 "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
19820 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
19821 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
19822 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19823 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19824 { (exit 1); exit 1; }; };;
19828 # If the user did not use the arguments to specify the items to instantiate,
19829 # then the envvar interface is used. Set only those that are not.
19830 # We use the long form for the default assignment because of an extremely
19831 # bizarre bug on SunOS 4.1.3.
19832 if $ac_need_defaults; then
19833 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19834 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19835 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19838 # Have a temporary directory for convenience. Make it in the build tree
19839 # simply because there is no reason to put it here, and in addition,
19840 # creating and moving files from /tmp can sometimes cause problems.
19841 # Create a temporary directory, and hook for its removal unless debugging.
19844 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19845 trap '{ (exit 1); exit 1; }' 1 2 13 15
19848 # Create a (secure) tmp directory for tmp files.
19851 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19852 test -n "$tmp" && test -d "$tmp"
19855 tmp=./confstat$$-$RANDOM
19856 (umask 077 && mkdir $tmp)
19859 echo "$me: cannot create a temporary directory in ." >&2
19860 { (exit 1); exit 1; }
19865 cat >>$CONFIG_STATUS <<_ACEOF
19868 # CONFIG_FILES section.
19871 # No need to generate the scripts if there are no CONFIG_FILES.
19872 # This happens for instance when ./config.status config.h
19873 if test -n "\$CONFIG_FILES"; then
19874 # Protect against being on the right side of a sed subst in config.status.
19875 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19876 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19877 s,@SHELL@,$SHELL,;t t
19878 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19879 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19880 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19881 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19882 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19883 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19884 s,@exec_prefix@,$exec_prefix,;t t
19885 s,@prefix@,$prefix,;t t
19886 s,@program_transform_name@,$program_transform_name,;t t
19887 s,@bindir@,$bindir,;t t
19888 s,@sbindir@,$sbindir,;t t
19889 s,@libexecdir@,$libexecdir,;t t
19890 s,@datadir@,$datadir,;t t
19891 s,@sysconfdir@,$sysconfdir,;t t
19892 s,@sharedstatedir@,$sharedstatedir,;t t
19893 s,@localstatedir@,$localstatedir,;t t
19894 s,@libdir@,$libdir,;t t
19895 s,@includedir@,$includedir,;t t
19896 s,@oldincludedir@,$oldincludedir,;t t
19897 s,@infodir@,$infodir,;t t
19898 s,@mandir@,$mandir,;t t
19899 s,@build_alias@,$build_alias,;t t
19900 s,@host_alias@,$host_alias,;t t
19901 s,@target_alias@,$target_alias,;t t
19902 s,@DEFS@,$DEFS,;t t
19903 s,@ECHO_C@,$ECHO_C,;t t
19904 s,@ECHO_N@,$ECHO_N,;t t
19905 s,@ECHO_T@,$ECHO_T,;t t
19906 s,@LIBS@,$LIBS,;t t
19907 s,@BUILD_DIR@,$BUILD_DIR,;t t
19908 s,@TRUEPRG@,$TRUEPRG,;t t
19909 s,@FALSEPRG@,$FALSEPRG,;t t
19910 s,@VERSION@,$VERSION,;t t
19911 s,@DATE@,$DATE,;t t
19912 s,@LSMDATE@,$LSMDATE,;t t
19914 s,@CFLAGS@,$CFLAGS,;t t
19915 s,@LDFLAGS@,$LDFLAGS,;t t
19916 s,@CPPFLAGS@,$CPPFLAGS,;t t
19917 s,@ac_ct_CC@,$ac_ct_CC,;t t
19918 s,@EXEEXT@,$EXEEXT,;t t
19919 s,@OBJEXT@,$OBJEXT,;t t
19921 s,@CXXFLAGS@,$CXXFLAGS,;t t
19922 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
19924 s,@EGREP@,$EGREP,;t t
19925 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19926 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19927 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19928 s,@RANLIB@,$RANLIB,;t t
19929 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19935 s,@ECHO@,$ECHO,;t t
19939 s,@OPENSSL@,$OPENSSL,;t t
19941 s,@PKGCONFIG@,$PKGCONFIG,;t t
19942 s,@WXCONFIG@,$WXCONFIG,;t t
19943 s,@CDRECORD@,$CDRECORD,;t t
19944 s,@ARFLAGS@,$ARFLAGS,;t t
19945 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
19946 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
19947 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
19948 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
19949 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
19950 s,@build@,$build,;t t
19951 s,@build_cpu@,$build_cpu,;t t
19952 s,@build_vendor@,$build_vendor,;t t
19953 s,@build_os@,$build_os,;t t
19954 s,@host@,$host,;t t
19955 s,@host_cpu@,$host_cpu,;t t
19956 s,@host_vendor@,$host_vendor,;t t
19957 s,@host_os@,$host_os,;t t
19958 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
19959 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
19960 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
19961 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
19962 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
19963 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
19964 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
19965 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
19966 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
19967 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
19968 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
19969 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
19970 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
19971 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
19972 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
19973 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
19974 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
19975 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
19976 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
19977 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
19978 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
19979 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
19980 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
19981 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
19982 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
19983 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
19984 s,@MSGFMT@,$MSGFMT,;t t
19985 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
19986 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
19987 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
19988 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
19989 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
19990 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
19991 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
19992 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
19993 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
19994 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
19995 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
19996 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
19997 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
19998 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
19999 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
20000 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
20001 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
20002 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
20003 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
20004 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
20005 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
20006 s,@GNOME_DIR@,$GNOME_DIR,;t t
20007 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
20008 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
20009 s,@WX_DIR@,$WX_DIR,;t t
20010 s,@TRAY_MONITOR_CPPFLAGS@,$TRAY_MONITOR_CPPFLAGS,;t t
20011 s,@TRAY_MONITOR_LDFLAGS@,$TRAY_MONITOR_LDFLAGS,;t t
20012 s,@TRAY_MONITOR_DIR@,$TRAY_MONITOR_DIR,;t t
20013 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
20014 s,@STATIC_FD@,$STATIC_FD,;t t
20015 s,@STATIC_SD@,$STATIC_SD,;t t
20016 s,@STATIC_DIR@,$STATIC_DIR,;t t
20017 s,@STATIC_CONS@,$STATIC_CONS,;t t
20018 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
20019 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
20020 s,@ALL_DIRS@,$ALL_DIRS,;t t
20021 s,@CONS_INC@,$CONS_INC,;t t
20022 s,@CONS_OBJ@,$CONS_OBJ,;t t
20023 s,@CONS_SRC@,$CONS_SRC,;t t
20024 s,@CONS_LIBS@,$CONS_LIBS,;t t
20025 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
20026 s,@READLINE_SRC@,$READLINE_SRC,;t t
20027 s,@CDSTL@,$CDSTL,;t t
20028 s,@working_dir@,$working_dir,;t t
20029 s,@scriptdir@,$scriptdir,;t t
20030 s,@dump_email@,$dump_email,;t t
20031 s,@job_email@,$job_email,;t t
20032 s,@smtp_host@,$smtp_host,;t t
20033 s,@piddir@,$piddir,;t t
20034 s,@subsysdir@,$subsysdir,;t t
20035 s,@baseport@,$baseport,;t t
20036 s,@dir_port@,$dir_port,;t t
20037 s,@fd_port@,$fd_port,;t t
20038 s,@sd_port@,$sd_port,;t t
20039 s,@dir_password@,$dir_password,;t t
20040 s,@fd_password@,$fd_password,;t t
20041 s,@sd_password@,$sd_password,;t t
20042 s,@mon_dir_password@,$mon_dir_password,;t t
20043 s,@mon_fd_password@,$mon_fd_password,;t t
20044 s,@mon_sd_password@,$mon_sd_password,;t t
20045 s,@dir_user@,$dir_user,;t t
20046 s,@dir_group@,$dir_group,;t t
20047 s,@sd_user@,$sd_user,;t t
20048 s,@sd_group@,$sd_group,;t t
20049 s,@fd_user@,$fd_user,;t t
20050 s,@fd_group@,$fd_group,;t t
20051 s,@SBINPERM@,$SBINPERM,;t t
20052 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
20053 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
20054 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
20055 s,@cats@,$cats,;t t
20056 s,@DB_NAME@,$DB_NAME,;t t
20057 s,@GETCONF@,$GETCONF,;t t
20058 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
20059 s,@X_CFLAGS@,$X_CFLAGS,;t t
20060 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
20061 s,@X_LIBS@,$X_LIBS,;t t
20062 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
20063 s,@LIBOBJS@,$LIBOBJS,;t t
20064 s,@ALLOCA@,$ALLOCA,;t t
20065 s,@FDLIBS@,$FDLIBS,;t t
20066 s,@DEBUG@,$DEBUG,;t t
20067 s,@DINCLUDE@,$DINCLUDE,;t t
20068 s,@DLIB@,$DLIB,;t t
20069 s,@DB_LIBS@,$DB_LIBS,;t t
20070 s,@WCFLAGS@,$WCFLAGS,;t t
20071 s,@WLDFLAGS@,$WLDFLAGS,;t t
20072 s,@OBJLIST@,$OBJLIST,;t t
20073 s,@hostname@,$hostname,;t t
20074 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
20075 s,@PSCMD@,$PSCMD,;t t
20076 s,@WIN32@,$WIN32,;t t
20077 s,@MACOSX@,$MACOSX,;t t
20078 s,@DISTNAME@,$DISTNAME,;t t
20079 s,@DISTVER@,$DISTVER,;t t
20080 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20081 /@MCOMMON@/r $MCOMMON
20087 cat >>$CONFIG_STATUS <<\_ACEOF
20088 # Split the substitutions into bite-sized pieces for seds with
20089 # small command number limits, like on Digital OSF/1 and HP-UX.
20090 ac_max_sed_lines=48
20091 ac_sed_frag=1 # Number of current file.
20092 ac_beg=1 # First line for current file.
20093 ac_end=$ac_max_sed_lines # Line after last line for current file.
20096 while $ac_more_lines; do
20097 if test $ac_beg -gt 1; then
20098 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20100 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20102 if test ! -s $tmp/subs.frag; then
20103 ac_more_lines=false
20105 # The purpose of the label and of the branching condition is to
20106 # speed up the sed processing (if there are no `@' at all, there
20107 # is no need to browse any of the substitutions).
20108 # These are the two extra sed commands mentioned above.
20110 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20111 if test -z "$ac_sed_cmds"; then
20112 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20114 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20116 ac_sed_frag=`expr $ac_sed_frag + 1`
20118 ac_end=`expr $ac_end + $ac_max_sed_lines`
20121 if test -z "$ac_sed_cmds"; then
20124 fi # test -n "$CONFIG_FILES"
20127 cat >>$CONFIG_STATUS <<\_ACEOF
20128 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20129 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20131 - | *:- | *:-:* ) # input from stdin
20133 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20134 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20135 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20136 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20137 * ) ac_file_in=$ac_file.in ;;
20140 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20141 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20142 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20143 X"$ac_file" : 'X\(//\)[^/]' \| \
20144 X"$ac_file" : 'X\(//\)$' \| \
20145 X"$ac_file" : 'X\(/\)' \| \
20146 . : '\(.\)' 2>/dev/null ||
20148 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20149 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20150 /^X\(\/\/\)$/{ s//\1/; q; }
20151 /^X\(\/\).*/{ s//\1/; q; }
20153 { if $as_mkdir_p; then
20158 while test ! -d "$as_dir"; do
20159 as_dirs="$as_dir $as_dirs"
20160 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20161 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20162 X"$as_dir" : 'X\(//\)[^/]' \| \
20163 X"$as_dir" : 'X\(//\)$' \| \
20164 X"$as_dir" : 'X\(/\)' \| \
20165 . : '\(.\)' 2>/dev/null ||
20167 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20168 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20169 /^X\(\/\/\)$/{ s//\1/; q; }
20170 /^X\(\/\).*/{ s//\1/; q; }
20173 test ! -n "$as_dirs" || mkdir $as_dirs
20174 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20175 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20176 { (exit 1); exit 1; }; }; }
20180 if test "$ac_dir" != .; then
20181 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20182 # A "../" for each directory in $ac_dir_suffix.
20183 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20185 ac_dir_suffix= ac_top_builddir=
20189 .) # No --srcdir option. We are building in place.
20191 if test -z "$ac_top_builddir"; then
20194 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20196 [\\/]* | ?:[\\/]* ) # Absolute path.
20197 ac_srcdir=$srcdir$ac_dir_suffix;
20198 ac_top_srcdir=$srcdir ;;
20199 *) # Relative path.
20200 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20201 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20203 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
20205 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
20206 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
20207 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
20208 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
20212 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20213 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20216 if test x"$ac_file" != x-; then
20217 { echo "$as_me:$LINENO: creating $ac_file" >&5
20218 echo "$as_me: creating $ac_file" >&6;}
20221 # Let's still pretend it is `configure' which instantiates (i.e., don't
20222 # use $as_me), people would be surprised to read:
20223 # /* config.h. Generated by config.status. */
20224 if test x"$ac_file" = x-; then
20227 configure_input="$ac_file. "
20229 configure_input=$configure_input"Generated from `echo $ac_file_in |
20230 sed 's,.*/,,'` by configure."
20232 # First look for the input files in the build tree, otherwise in the
20234 ac_file_inputs=`IFS=:
20235 for f in $ac_file_in; do
20237 -) echo $tmp/stdin ;;
20239 # Absolute (can't be DOS-style, as IFS=:)
20240 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20241 echo "$as_me: error: cannot find input file: $f" >&2;}
20242 { (exit 1); exit 1; }; }
20245 if test -f "$f"; then
20248 elif test -f "$srcdir/$f"; then
20253 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20254 echo "$as_me: error: cannot find input file: $f" >&2;}
20255 { (exit 1); exit 1; }; }
20258 done` || { (exit 1); exit 1; }
20260 cat >>$CONFIG_STATUS <<_ACEOF
20264 cat >>$CONFIG_STATUS <<\_ACEOF
20266 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20267 s,@configure_input@,$configure_input,;t t
20268 s,@srcdir@,$ac_srcdir,;t t
20269 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20270 s,@top_srcdir@,$ac_top_srcdir,;t t
20271 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20272 s,@builddir@,$ac_builddir,;t t
20273 s,@abs_builddir@,$ac_abs_builddir,;t t
20274 s,@top_builddir@,$ac_top_builddir,;t t
20275 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20276 s,@INSTALL@,$ac_INSTALL,;t t
20277 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20279 if test x"$ac_file" != x-; then
20280 mv $tmp/out $ac_file
20288 cat >>$CONFIG_STATUS <<\_ACEOF
20291 # CONFIG_HEADER section.
20294 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20295 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20297 # ac_d sets the value in "#define NAME VALUE" lines.
20298 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20299 ac_dB='[ ].*$,\1#\2'
20302 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20303 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20304 ac_uB='$,\1#\2define\3'
20308 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20309 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20311 - | *:- | *:-:* ) # input from stdin
20313 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20314 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20315 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20316 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20317 * ) ac_file_in=$ac_file.in ;;
20320 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20321 echo "$as_me: creating $ac_file" >&6;}
20323 # First look for the input files in the build tree, otherwise in the
20325 ac_file_inputs=`IFS=:
20326 for f in $ac_file_in; do
20328 -) echo $tmp/stdin ;;
20330 # Absolute (can't be DOS-style, as IFS=:)
20331 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20332 echo "$as_me: error: cannot find input file: $f" >&2;}
20333 { (exit 1); exit 1; }; }
20336 if test -f "$f"; then
20339 elif test -f "$srcdir/$f"; then
20344 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20345 echo "$as_me: error: cannot find input file: $f" >&2;}
20346 { (exit 1); exit 1; }; }
20349 done` || { (exit 1); exit 1; }
20350 # Remove the trailing spaces.
20351 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20355 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20356 # `conftest.undefs', that substitutes the proper values into
20357 # config.h.in to produce config.h. The first handles `#define'
20358 # templates, and the second `#undef' templates.
20359 # And first: Protect against being on the right side of a sed subst in
20360 # config.status. Protect against being in an unquoted here document
20361 # in config.status.
20362 rm -f conftest.defines conftest.undefs
20363 # Using a here document instead of a string reduces the quoting nightmare.
20364 # Putting comments in sed scripts is not portable.
20366 # `end' is used to avoid that the second main sed command (meant for
20367 # 0-ary CPP macros) applies to n-ary macro definitions.
20368 # See the Autoconf documentation for `clear'.
20369 cat >confdef2sed.sed <<\_ACEOF
20374 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20376 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20379 # If some macros were called several times there might be several times
20380 # the same #defines, which is useless. Nevertheless, we may not want to
20381 # sort them, since we want the *last* AC-DEFINE to be honored.
20382 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20383 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20384 rm -f confdef2sed.sed
20386 # This sed command replaces #undef with comments. This is necessary, for
20387 # example, in the case of _POSIX_SOURCE, which is predefined and required
20388 # on some systems where configure will not decide to define it.
20389 cat >>conftest.undefs <<\_ACEOF
20390 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20393 # Break up conftest.defines because some shells have a limit on the size
20394 # of here documents, and old seds have small limits too (100 cmds).
20395 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20396 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20397 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20398 echo ' :' >>$CONFIG_STATUS
20399 rm -f conftest.tail
20400 while grep . conftest.defines >/dev/null
20402 # Write a limited-size here document to $tmp/defines.sed.
20403 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20404 # Speed up: don't consider the non `#define' lines.
20405 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20406 # Work around the forget-to-reset-the-flag bug.
20407 echo 't clr' >>$CONFIG_STATUS
20408 echo ': clr' >>$CONFIG_STATUS
20409 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20411 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20413 mv $tmp/out $tmp/in
20415 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20416 rm -f conftest.defines
20417 mv conftest.tail conftest.defines
20419 rm -f conftest.defines
20420 echo ' fi # grep' >>$CONFIG_STATUS
20421 echo >>$CONFIG_STATUS
20423 # Break up conftest.undefs because some shells have a limit on the size
20424 # of here documents, and old seds have small limits too (100 cmds).
20425 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20426 rm -f conftest.tail
20427 while grep . conftest.undefs >/dev/null
20429 # Write a limited-size here document to $tmp/undefs.sed.
20430 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20431 # Speed up: don't consider the non `#undef'
20432 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20433 # Work around the forget-to-reset-the-flag bug.
20434 echo 't clr' >>$CONFIG_STATUS
20435 echo ': clr' >>$CONFIG_STATUS
20436 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20438 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20440 mv $tmp/out $tmp/in
20442 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20443 rm -f conftest.undefs
20444 mv conftest.tail conftest.undefs
20446 rm -f conftest.undefs
20448 cat >>$CONFIG_STATUS <<\_ACEOF
20449 # Let's still pretend it is `configure' which instantiates (i.e., don't
20450 # use $as_me), people would be surprised to read:
20451 # /* config.h. Generated by config.status. */
20452 if test x"$ac_file" = x-; then
20453 echo "/* Generated by configure. */" >$tmp/config.h
20455 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20457 cat $tmp/in >>$tmp/config.h
20459 if test x"$ac_file" != x-; then
20460 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20461 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20462 echo "$as_me: $ac_file is unchanged" >&6;}
20464 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20465 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20466 X"$ac_file" : 'X\(//\)[^/]' \| \
20467 X"$ac_file" : 'X\(//\)$' \| \
20468 X"$ac_file" : 'X\(/\)' \| \
20469 . : '\(.\)' 2>/dev/null ||
20471 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20472 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20473 /^X\(\/\/\)$/{ s//\1/; q; }
20474 /^X\(\/\).*/{ s//\1/; q; }
20476 { if $as_mkdir_p; then
20481 while test ! -d "$as_dir"; do
20482 as_dirs="$as_dir $as_dirs"
20483 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20484 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20485 X"$as_dir" : 'X\(//\)[^/]' \| \
20486 X"$as_dir" : 'X\(//\)$' \| \
20487 X"$as_dir" : 'X\(/\)' \| \
20488 . : '\(.\)' 2>/dev/null ||
20490 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20491 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20492 /^X\(\/\/\)$/{ s//\1/; q; }
20493 /^X\(\/\).*/{ s//\1/; q; }
20496 test ! -n "$as_dirs" || mkdir $as_dirs
20497 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20498 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20499 { (exit 1); exit 1; }; }; }
20502 mv $tmp/config.h $ac_file
20506 rm -f $tmp/config.h
20510 cat >>$CONFIG_STATUS <<\_ACEOF
20513 # CONFIG_COMMANDS section.
20515 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20516 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20517 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20518 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20519 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20520 X"$ac_dest" : 'X\(//\)[^/]' \| \
20521 X"$ac_dest" : 'X\(//\)$' \| \
20522 X"$ac_dest" : 'X\(/\)' \| \
20523 . : '\(.\)' 2>/dev/null ||
20525 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20526 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20527 /^X\(\/\/\)$/{ s//\1/; q; }
20528 /^X\(\/\).*/{ s//\1/; q; }
20532 if test "$ac_dir" != .; then
20533 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20534 # A "../" for each directory in $ac_dir_suffix.
20535 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20537 ac_dir_suffix= ac_top_builddir=
20541 .) # No --srcdir option. We are building in place.
20543 if test -z "$ac_top_builddir"; then
20546 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20548 [\\/]* | ?:[\\/]* ) # Absolute path.
20549 ac_srcdir=$srcdir$ac_dir_suffix;
20550 ac_top_srcdir=$srcdir ;;
20551 *) # Relative path.
20552 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20553 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20555 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
20557 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
20558 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
20559 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
20560 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
20563 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20564 echo "$as_me: executing $ac_dest commands" >&6;}
20566 default ) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
20572 cat >>$CONFIG_STATUS <<\_ACEOF
20574 { (exit 0); exit 0; }
20576 chmod +x $CONFIG_STATUS
20577 ac_clean_files=$ac_clean_files_save
20580 # configure is writing to config.log, and then calls config.status.
20581 # config.status does its own redirection, appending to config.log.
20582 # Unfortunately, on DOS this fails, as config.log is still kept open
20583 # by configure, so config.status won't be able to write to it; its
20584 # output is simply discarded. So we exec the FD to /dev/null,
20585 # effectively closing config.log, so it can be properly (re)opened and
20586 # appended to by config.status. When coming back to configure, we
20587 # need to make the FD available again.
20588 if test "$no_create" != yes; then
20590 ac_config_status_args=
20591 test "$silent" = yes &&
20592 ac_config_status_args="$ac_config_status_args --quiet"
20594 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20596 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20597 # would make configure fail if this is the last instruction.
20598 $ac_cs_success || { (exit 1); exit 1; }
20603 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
20604 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
20609 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
20610 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
20612 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
20613 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
20615 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
20616 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
20618 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
20619 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
20621 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
20622 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
20624 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
20625 chmod 755 $c/sqlite
20628 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
20629 largefile_support="yes"
20633 # A whole lot of hand springs to get the compiler version.
20634 # This is because gcc changed the output in version 3.0
20636 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
20637 if test "x${CCVERSION}" = "x" ; then
20638 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
20640 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
20641 if test x"${CXXVERSION}" = x ; then
20642 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
20645 if test "x${subsysdir}" = "x${sbindir}" ; then
20648 echo "You have set --sbindir and --with-subsys-dir"
20649 echo " both equal to: ${subsysdir} "
20650 echo " This is not permitted. Please reconfigure."
20652 echo "Aborting configuration ..."
20658 if test "x${db_name}" = "xInternal" ; then
20661 echo "You have not specified either --enable-client-only or one of the"
20662 echo " supported databases: MySQL, PostgreSQL, or SQLite".
20663 echo " This is not permitted. Please reconfigure."
20665 echo "Aborting the configuration ..."
20672 Configuration on `date`:
20674 Host: $host -- ${DISTNAME} ${DISTVER}
20675 Bacula version: ${VERSION} (${DATE})
20676 Source code location: ${srcdir}
20677 Install binaries: ${sbindir}
20678 Install config files: ${sysconfdir}
20679 Scripts directory: ${scriptdir}
20680 Working directory: ${working_dir}
20681 PID directory: ${piddir}
20682 Subsys directory: ${subsysdir}
20683 C Compiler: ${CC} ${CCVERSION}
20684 C++ Compiler: ${CXX} ${CXXVERSION}
20685 Compiler flags: ${WCFLAGS} ${CFLAGS}
20686 Linker flags: ${WLDFLAGS} ${LDFLAGS}
20688 Statically Linked Tools: ${support_static_tools}
20689 Statically Linked FD: ${support_static_fd}
20690 Statically Linked SD: ${support_static_sd}
20691 Statically Linked DIR: ${support_static_dir}
20692 Statically Linked CONS: ${support_static_cons}
20693 Database type: ${db_name}
20694 Database lib: ${DB_LIBS}
20696 Job Output Email: ${job_email}
20697 Traceback Email: ${dump_email}
20698 SMTP Host Address: ${smtp_host}
20700 Director Port: ${dir_port}
20701 File daemon Port: ${fd_port}
20702 Storage daemon Port: ${sd_port}
20704 Director User: ${dir_user}
20705 Director Group: ${dir_group}
20706 Storage Daemon User: ${sd_user}
20707 Storage DaemonGroup: ${sd_group}
20708 File Daemon User: ${fd_user}
20709 File Daemon Group: ${fd_group}
20711 SQL binaries Directory ${SQL_BINDIR}
20713 Large file support: $largefile_support
20714 Bacula conio support: ${got_conio} ${CONS_LIBS}
20715 readline support: ${got_readline} ${PRTREADLINE_SRC}
20716 TCP Wrappers support: ${TCPW_MSG}
20717 ZLIB support: ${have_zlib}
20718 enable-smartalloc: ${support_smartalloc}
20719 enable-gnome: ${support_gnome} ${gnome_version}
20720 enable-wx-console: ${support_wx_console}
20721 enable-tray-monitor: ${support_tray_monitor}
20722 client-only: ${build_client_only}
20723 ACL support: ${have_acl}
20730 # cweb support: ${got_cweb} ${CWEB_SRC}
20731 # gmp support: ${got_gmp} ${GMP_SRC}