2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/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 -z "`(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
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file="src/version.h"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 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 PIDOF 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 PYTHON_LIBS PYTHON_INCDIR 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 bimagemgr_cgidir bimagemgr_docdir bimagemgr_binowner bimagemgr_bingroup bimagemgr_dataowner bimagemgr_datagroup 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'
313 ac_subst_files='MCOMMON'
315 # Initialize some variables set by options.
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name=s,x,x,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
430 -help | --help | --hel | --he | -h)
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 # Obsolete; use --without-fp.
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
560 -site=* | --site=* | --sit=*)
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 -version | --version | --versio | --versi | --vers | -V)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CXX_set=${CXX+set}
770 ac_env_CXX_value=$CXX
771 ac_cv_env_CXX_set=${CXX+set}
772 ac_cv_env_CXX_value=$CXX
773 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
774 ac_env_CXXFLAGS_value=$CXXFLAGS
775 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
776 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
777 ac_env_CPP_set=${CPP+set}
778 ac_env_CPP_value=$CPP
779 ac_cv_env_CPP_set=${CPP+set}
780 ac_cv_env_CPP_value=$CPP
783 # Report the --help message.
785 if test "$ac_init_help" = "long"; then
786 # Omit some internal or obsolete options to make the list less imposing.
787 # This message is too long to be a string in the A/UX 3.1 sh.
789 \`configure' configures this package to adapt to many kinds of systems.
791 Usage: $0 [OPTION]... [VAR=VALUE]...
793 To assign environment variables (e.g., CC, CFLAGS...), specify them as
794 VAR=VALUE. See below for descriptions of some of the useful variables.
796 Defaults for the options are specified in brackets.
799 -h, --help display this help and exit
800 --help=short display options specific to this package
801 --help=recursive display the short help of all the included packages
802 -V, --version display version information and exit
803 -q, --quiet, --silent do not print \`checking...' messages
804 --cache-file=FILE cache test results in FILE [disabled]
805 -C, --config-cache alias for \`--cache-file=config.cache'
806 -n, --no-create do not create output files
807 --srcdir=DIR find the sources in DIR [configure dir or \`..']
812 Installation directories:
813 --prefix=PREFIX install architecture-independent files in PREFIX
815 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
818 By default, \`make install' will install all the files in
819 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
820 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
821 for instance \`--prefix=\$HOME'.
823 For better control, use the options below.
825 Fine tuning of the installation directories:
826 --bindir=DIR user executables [EPREFIX/bin]
827 --sbindir=DIR system admin executables [EPREFIX/sbin]
828 --libexecdir=DIR program executables [EPREFIX/libexec]
829 --datadir=DIR read-only architecture-independent data [PREFIX/share]
830 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
831 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
832 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
833 --libdir=DIR object code libraries [EPREFIX/lib]
834 --includedir=DIR C header files [PREFIX/include]
835 --oldincludedir=DIR C header files for non-gcc [/usr/include]
836 --infodir=DIR info documentation [PREFIX/info]
837 --mandir=DIR man documentation [PREFIX/man]
843 --x-includes=DIR X include files are in DIR
844 --x-libraries=DIR X library files are in DIR
847 --build=BUILD configure for building on BUILD [guessed]
848 --host=HOST cross-compile to build programs to run on HOST [BUILD]
852 if test -n "$ac_init_help"; then
857 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
858 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
859 --enable-gnome enable build of gnome-console GUI disabled
860 --enable-wx-console enable build of wxWidgets console disabled
861 --enable-tray-monitor enable build of Gnome tray monitor (compatible with KDE) disabled
862 --enable-smartalloc enable smartalloc debugging support disabled
863 --enable-static-tools enable static tape tools disabled
864 --enable-static-fd enable static File daemon disabled
865 --enable-static-sd enable static Storage daemon disabled
866 --enable-static-dir enable static Director disabled
867 --enable-static-cons enable static Console disabled
868 --enable-client-only build client (File daemon) only disabled
869 --disable-conio disable conio support enabled
871 --disable-readline disable readline support disable
873 --disable-largefile omit support for large files
876 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
877 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
878 --with-gnome-includes Specify location of GNOME headers
879 --with-gnome-libs Specify location of GNOME libs
880 --with-gnome Specify prefix for GNOME files
881 --with-readline=DIR specify readline library directory
883 --with-python=DIR Include Python support. DIR is the Python base
884 install directory, default is to search through
885 a number of common places for the Python files.
886 --with-tcp-wrappers=DIR enable tcpwrappers support
887 --with-working-dir=PATH specify path of Bacula working directory
888 --with-scriptdir=PATH specify path of Bacula scripts directory
889 --with-dump-email=EMAIL dump email address
890 --with-job-email=EMAIL job output email address
891 --with-smtp-host=HOST SMTP mail host address
892 --with-pid-dir=PATH specify location of Bacula pid files
893 --with-subsys-dir=PATH specify location of Bacula subsys file
894 --with-baseport=PORT specify base port address for daemons
895 --with-dir-password=PASSWORD specify Director's password
896 --with-fd-password=PASSWORD specify Client's password
897 --with-sd-password=PASSWORD specify Storage daemon's password
898 --with-mon-dir-password=PASSWORD specify Director's password used by the monitor
899 --with-mon-fd-password=PASSWORD specify Client's password used by the monitor
900 --with-mon-sd-password=PASSWORD specify Storage daemon's password used by the monitor
901 --with-bimagemgr-cgidir=DIR specify bimagemgr cgi-bin dir
902 --with-bimagemgr-docdir=DIR specify bimagemgr doc root dir
903 --with-bimagemgr-binowner=USER specify bimagemgr binary file owner
904 --with-bimagemgr-bingroup=USER specify bimagemgr binary file group
905 --with-bimagemgr-dataowner=USER specify bimagemgr data file owner
906 --with-bimagemgr-datagroup=USER specify bimagemgr data file group
907 --with-dir-user=USER specify user for Director daemon
908 --with-dir-group=GROUP specify group for Director daemon
909 --with-sd-user=USER specify user for Storage daemon
910 --with-sd-group=GROUP specify group for Storage daemon
911 --with-fd-user=USER specify user for File daemon
912 --with-fd-group=GROUP specify group for File daemon
913 --with-sbin-perm=MODE specify permissions for sbin binaries (0754)
914 --with-postgresql=DIR Include PostgreSQL support. DIR is the PostgreSQL
915 base install directory, defaults to /usr/local/pgsql
917 --with-mysql=DIR Include MySQL support. DIR is the MySQL base
918 install directory, default is to search through
919 a number of common places for the MySQL files.
921 --with-embedded-mysql=DIR Include MySQL support. DIR is the MySQL base
922 install directory, default is to search through
923 a number of common places for the MySQL files.
925 --with-sqlite=DIR Include SQLite support. DIR is the SQLite base
926 install directory, default is to search through
927 a number of common places for the SQLite files.
928 --with-x use the X Window System
930 Some influential environment variables:
931 CC C compiler command
932 CFLAGS C compiler flags
933 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
934 nonstandard directory <lib dir>
935 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
936 headers in a nonstandard directory <include dir>
937 CXX C++ compiler command
938 CXXFLAGS C++ compiler flags
941 Use these variables to override the choices made by `configure' or to help
942 it to find libraries and programs with nonstandard names/locations.
947 if test "$ac_init_help" = "recursive"; then
948 # If there are subdirs, report their specific --help.
950 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
951 test -d $ac_dir || continue
954 if test "$ac_dir" != .; then
955 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
956 # A "../" for each directory in $ac_dir_suffix.
957 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
959 ac_dir_suffix= ac_top_builddir=
963 .) # No --srcdir option. We are building in place.
965 if test -z "$ac_top_builddir"; then
968 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
970 [\\/]* | ?:[\\/]* ) # Absolute path.
971 ac_srcdir=$srcdir$ac_dir_suffix;
972 ac_top_srcdir=$srcdir ;;
974 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
975 ac_top_srcdir=$ac_top_builddir$srcdir ;;
978 # Do not use `cd foo && pwd` to compute absolute paths, because
979 # the directories may not exist.
981 .) ac_abs_builddir="$ac_dir";;
984 .) ac_abs_builddir=`pwd`;;
985 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
986 *) ac_abs_builddir=`pwd`/"$ac_dir";;
989 case $ac_abs_builddir in
990 .) ac_abs_top_builddir=${ac_top_builddir}.;;
992 case ${ac_top_builddir}. in
993 .) ac_abs_top_builddir=$ac_abs_builddir;;
994 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
995 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
998 case $ac_abs_builddir in
999 .) ac_abs_srcdir=$ac_srcdir;;
1002 .) ac_abs_srcdir=$ac_abs_builddir;;
1003 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1004 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1007 case $ac_abs_builddir in
1008 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1010 case $ac_top_srcdir in
1011 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1012 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1013 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1018 # Check for guested configure; otherwise get Cygnus style configure.
1019 if test -f $ac_srcdir/configure.gnu; then
1021 $SHELL $ac_srcdir/configure.gnu --help=recursive
1022 elif test -f $ac_srcdir/configure; then
1024 $SHELL $ac_srcdir/configure --help=recursive
1025 elif test -f $ac_srcdir/configure.ac ||
1026 test -f $ac_srcdir/configure.in; then
1028 $ac_configure --help
1030 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1036 test -n "$ac_init_help" && exit 0
1037 if $ac_init_version; then
1040 Copyright (C) 2003 Free Software Foundation, Inc.
1041 This configure script is free software; the Free Software Foundation
1042 gives unlimited permission to copy, distribute and modify it.
1048 This file contains any messages produced by compilers while
1049 running configure, to aid debugging if configure makes a mistake.
1051 It was created by $as_me, which was
1052 generated by GNU Autoconf 2.59. Invocation command line was
1063 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1064 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1065 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1066 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1067 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1069 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1070 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1072 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1073 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1074 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1075 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1076 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1077 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1078 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1086 test -z "$as_dir" && as_dir=.
1087 echo "PATH: $as_dir"
1102 # Keep a trace of the command line.
1103 # Strip out --no-create and --no-recursion so they do not pile up.
1104 # Strip out --silent because we don't want to record it for future runs.
1105 # Also quote any args containing shell meta-characters.
1106 # Make two passes to allow for proper duplicate-argument suppression.
1111 ac_must_keep_next=false
1117 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1118 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1119 | -silent | --silent | --silen | --sile | --sil)
1121 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1122 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1125 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1127 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1128 if test $ac_must_keep_next = true; then
1129 ac_must_keep_next=false # Got value, back to normal.
1132 *=* | --config-cache | -C | -disable-* | --disable-* \
1133 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1134 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1135 | -with-* | --with-* | -without-* | --without-* | --x)
1136 case "$ac_configure_args0 " in
1137 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1140 -* ) ac_must_keep_next=true ;;
1143 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1144 # Get rid of the leading space.
1150 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1151 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1153 # When interrupted or exit'd, cleanup temporary files, and complete
1154 # config.log. We remove comments because anyway the quotes in there
1155 # would cause problems or look ugly.
1156 # WARNING: Be sure not to use single quotes in there, as some shells,
1157 # such as our DU 5.0 friend, will then `close' the trap.
1158 trap 'exit_status=$?
1159 # Save into config.log some information that might help in debugging.
1164 ## ---------------- ##
1165 ## Cache variables. ##
1166 ## ---------------- ##
1169 # The following way of writing the cache mishandles newlines in values,
1172 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1175 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1176 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1180 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1187 ## ----------------- ##
1188 ## Output variables. ##
1189 ## ----------------- ##
1192 for ac_var in $ac_subst_vars
1194 eval ac_val=$`echo $ac_var`
1195 echo "$ac_var='"'"'$ac_val'"'"'"
1199 if test -n "$ac_subst_files"; then
1206 for ac_var in $ac_subst_files
1208 eval ac_val=$`echo $ac_var`
1209 echo "$ac_var='"'"'$ac_val'"'"'"
1214 if test -s confdefs.h; then
1221 sed "/^$/d" confdefs.h | sort
1224 test "$ac_signal" != 0 &&
1225 echo "$as_me: caught signal $ac_signal"
1226 echo "$as_me: exit $exit_status"
1228 rm -f core *.core &&
1229 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1232 for ac_signal in 1 2 13 15; do
1233 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1237 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1238 rm -rf conftest* confdefs.h
1239 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1242 # Predefined preprocessor variables.
1244 cat >>confdefs.h <<_ACEOF
1245 #define PACKAGE_NAME "$PACKAGE_NAME"
1249 cat >>confdefs.h <<_ACEOF
1250 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1254 cat >>confdefs.h <<_ACEOF
1255 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1259 cat >>confdefs.h <<_ACEOF
1260 #define PACKAGE_STRING "$PACKAGE_STRING"
1264 cat >>confdefs.h <<_ACEOF
1265 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1269 # Let the site file select an alternate cache file if it wants to.
1270 # Prefer explicitly selected file to automatically selected ones.
1271 if test -z "$CONFIG_SITE"; then
1272 if test "x$prefix" != xNONE; then
1273 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1275 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1278 for ac_site_file in $CONFIG_SITE; do
1279 if test -r "$ac_site_file"; then
1280 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1281 echo "$as_me: loading site script $ac_site_file" >&6;}
1282 sed 's/^/| /' "$ac_site_file" >&5
1287 if test -r "$cache_file"; then
1288 # Some versions of bash will fail to source /dev/null (special
1289 # files actually), so we avoid doing that.
1290 if test -f "$cache_file"; then
1291 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1292 echo "$as_me: loading cache $cache_file" >&6;}
1294 [\\/]* | ?:[\\/]* ) . $cache_file;;
1295 *) . ./$cache_file;;
1299 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1300 echo "$as_me: creating cache $cache_file" >&6;}
1304 # Check that the precious variables saved in the cache have kept the same
1306 ac_cache_corrupted=false
1307 for ac_var in `(set) 2>&1 |
1308 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1309 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1310 eval ac_new_set=\$ac_env_${ac_var}_set
1311 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1312 eval ac_new_val="\$ac_env_${ac_var}_value"
1313 case $ac_old_set,$ac_new_set in
1315 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1316 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1317 ac_cache_corrupted=: ;;
1319 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1320 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1321 ac_cache_corrupted=: ;;
1324 if test "x$ac_old_val" != "x$ac_new_val"; then
1325 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1326 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1327 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1328 echo "$as_me: former value: $ac_old_val" >&2;}
1329 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1330 echo "$as_me: current value: $ac_new_val" >&2;}
1331 ac_cache_corrupted=:
1334 # Pass precious variables to config.status.
1335 if test "$ac_new_set" = set; then
1337 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1338 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1339 *) ac_arg=$ac_var=$ac_new_val ;;
1341 case " $ac_configure_args " in
1342 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1343 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1347 if $ac_cache_corrupted; then
1348 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1349 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1350 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1351 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1352 { (exit 1); exit 1; }; }
1356 ac_cpp='$CPP $CPPFLAGS'
1357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1385 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1386 if test -f $ac_dir/install-sh; then
1388 ac_install_sh="$ac_aux_dir/install-sh -c"
1390 elif test -f $ac_dir/install.sh; then
1392 ac_install_sh="$ac_aux_dir/install.sh -c"
1394 elif test -f $ac_dir/shtool; then
1396 ac_install_sh="$ac_aux_dir/shtool install -c"
1400 if test -z "$ac_aux_dir"; then
1401 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1402 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1403 { (exit 1); exit 1; }; }
1405 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1406 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1407 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1409 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1417 # Extract the first word of "$ac_prog", so it can be a program name with args.
1418 set dummy $ac_prog; ac_word=$2
1419 echo "$as_me:$LINENO: checking for $ac_word" >&5
1420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1421 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1422 echo $ECHO_N "(cached) $ECHO_C" >&6
1426 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1433 test -z "$as_dir" && as_dir=.
1434 for ac_exec_ext in '' $ac_executable_extensions; do
1435 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1436 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1446 TRUEPRG=$ac_cv_path_TRUEPRG
1448 if test -n "$TRUEPRG"; then
1449 echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1450 echo "${ECHO_T}$TRUEPRG" >&6
1452 echo "$as_me:$LINENO: result: no" >&5
1453 echo "${ECHO_T}no" >&6
1456 test -n "$TRUEPRG" && break
1458 test -n "$TRUEPRG" || TRUEPRG=":"
1460 for ac_prog in false
1462 # Extract the first word of "$ac_prog", so it can be a program name with args.
1463 set dummy $ac_prog; ac_word=$2
1464 echo "$as_me:$LINENO: checking for $ac_word" >&5
1465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1466 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1467 echo $ECHO_N "(cached) $ECHO_C" >&6
1471 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1478 test -z "$as_dir" && as_dir=.
1479 for ac_exec_ext in '' $ac_executable_extensions; do
1480 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1481 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1491 FALSEPRG=$ac_cv_path_FALSEPRG
1493 if test -n "$FALSEPRG"; then
1494 echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1495 echo "${ECHO_T}$FALSEPRG" >&6
1497 echo "$as_me:$LINENO: result: no" >&5
1498 echo "${ECHO_T}no" >&6
1501 test -n "$FALSEPRG" && break
1503 test -n "$FALSEPRG" || FALSEPRG=":"
1508 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1509 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1510 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1511 echo "configuring for bacula $VERSION ($DATE)"
1516 ac_cpp='$CPP $CPPFLAGS'
1517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1520 if test -n "$ac_tool_prefix"; then
1521 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1522 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1523 echo "$as_me:$LINENO: checking for $ac_word" >&5
1524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1525 if test "${ac_cv_prog_CC+set}" = set; then
1526 echo $ECHO_N "(cached) $ECHO_C" >&6
1528 if test -n "$CC"; then
1529 ac_cv_prog_CC="$CC" # Let the user override the test.
1531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1535 test -z "$as_dir" && as_dir=.
1536 for ac_exec_ext in '' $ac_executable_extensions; do
1537 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1538 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1548 if test -n "$CC"; then
1549 echo "$as_me:$LINENO: result: $CC" >&5
1550 echo "${ECHO_T}$CC" >&6
1552 echo "$as_me:$LINENO: result: no" >&5
1553 echo "${ECHO_T}no" >&6
1557 if test -z "$ac_cv_prog_CC"; then
1559 # Extract the first word of "gcc", so it can be a program name with args.
1560 set dummy gcc; ac_word=$2
1561 echo "$as_me:$LINENO: checking for $ac_word" >&5
1562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1563 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1564 echo $ECHO_N "(cached) $ECHO_C" >&6
1566 if test -n "$ac_ct_CC"; then
1567 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1573 test -z "$as_dir" && as_dir=.
1574 for ac_exec_ext in '' $ac_executable_extensions; do
1575 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1576 ac_cv_prog_ac_ct_CC="gcc"
1577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1585 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1586 if test -n "$ac_ct_CC"; then
1587 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1588 echo "${ECHO_T}$ac_ct_CC" >&6
1590 echo "$as_me:$LINENO: result: no" >&5
1591 echo "${ECHO_T}no" >&6
1599 if test -z "$CC"; then
1600 if test -n "$ac_tool_prefix"; then
1601 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1602 set dummy ${ac_tool_prefix}cc; ac_word=$2
1603 echo "$as_me:$LINENO: checking for $ac_word" >&5
1604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1605 if test "${ac_cv_prog_CC+set}" = set; then
1606 echo $ECHO_N "(cached) $ECHO_C" >&6
1608 if test -n "$CC"; then
1609 ac_cv_prog_CC="$CC" # Let the user override the test.
1611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1615 test -z "$as_dir" && as_dir=.
1616 for ac_exec_ext in '' $ac_executable_extensions; do
1617 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1618 ac_cv_prog_CC="${ac_tool_prefix}cc"
1619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1628 if test -n "$CC"; then
1629 echo "$as_me:$LINENO: result: $CC" >&5
1630 echo "${ECHO_T}$CC" >&6
1632 echo "$as_me:$LINENO: result: no" >&5
1633 echo "${ECHO_T}no" >&6
1637 if test -z "$ac_cv_prog_CC"; then
1639 # Extract the first word of "cc", so it can be a program name with args.
1640 set dummy cc; ac_word=$2
1641 echo "$as_me:$LINENO: checking for $ac_word" >&5
1642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1643 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1644 echo $ECHO_N "(cached) $ECHO_C" >&6
1646 if test -n "$ac_ct_CC"; then
1647 ac_cv_prog_ac_ct_CC="$ac_ct_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 ac_cv_prog_ac_ct_CC="cc"
1657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1665 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1666 if test -n "$ac_ct_CC"; then
1667 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1668 echo "${ECHO_T}$ac_ct_CC" >&6
1670 echo "$as_me:$LINENO: result: no" >&5
1671 echo "${ECHO_T}no" >&6
1680 if test -z "$CC"; then
1681 # Extract the first word of "cc", so it can be a program name with args.
1682 set dummy cc; ac_word=$2
1683 echo "$as_me:$LINENO: checking for $ac_word" >&5
1684 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1685 if test "${ac_cv_prog_CC+set}" = set; then
1686 echo $ECHO_N "(cached) $ECHO_C" >&6
1688 if test -n "$CC"; then
1689 ac_cv_prog_CC="$CC" # Let the user override the test.
1692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1696 test -z "$as_dir" && as_dir=.
1697 for ac_exec_ext in '' $ac_executable_extensions; do
1698 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1699 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1700 ac_prog_rejected=yes
1704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1710 if test $ac_prog_rejected = yes; then
1711 # We found a bogon in the path, so make sure we never use it.
1712 set dummy $ac_cv_prog_CC
1714 if test $# != 0; then
1715 # We chose a different compiler from the bogus one.
1716 # However, it has the same basename, so the bogon will be chosen
1717 # first if we set CC to just the basename; use the full file name.
1719 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1725 if test -n "$CC"; then
1726 echo "$as_me:$LINENO: result: $CC" >&5
1727 echo "${ECHO_T}$CC" >&6
1729 echo "$as_me:$LINENO: result: no" >&5
1730 echo "${ECHO_T}no" >&6
1734 if test -z "$CC"; then
1735 if test -n "$ac_tool_prefix"; then
1738 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1739 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1740 echo "$as_me:$LINENO: checking for $ac_word" >&5
1741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1742 if test "${ac_cv_prog_CC+set}" = set; then
1743 echo $ECHO_N "(cached) $ECHO_C" >&6
1745 if test -n "$CC"; then
1746 ac_cv_prog_CC="$CC" # Let the user override the test.
1748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1752 test -z "$as_dir" && as_dir=.
1753 for ac_exec_ext in '' $ac_executable_extensions; do
1754 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1755 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1765 if test -n "$CC"; then
1766 echo "$as_me:$LINENO: result: $CC" >&5
1767 echo "${ECHO_T}$CC" >&6
1769 echo "$as_me:$LINENO: result: no" >&5
1770 echo "${ECHO_T}no" >&6
1773 test -n "$CC" && break
1776 if test -z "$CC"; then
1780 # Extract the first word of "$ac_prog", so it can be a program name with args.
1781 set dummy $ac_prog; ac_word=$2
1782 echo "$as_me:$LINENO: checking for $ac_word" >&5
1783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1784 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1785 echo $ECHO_N "(cached) $ECHO_C" >&6
1787 if test -n "$ac_ct_CC"; then
1788 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1794 test -z "$as_dir" && as_dir=.
1795 for ac_exec_ext in '' $ac_executable_extensions; do
1796 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1797 ac_cv_prog_ac_ct_CC="$ac_prog"
1798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1806 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1807 if test -n "$ac_ct_CC"; then
1808 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1809 echo "${ECHO_T}$ac_ct_CC" >&6
1811 echo "$as_me:$LINENO: result: no" >&5
1812 echo "${ECHO_T}no" >&6
1815 test -n "$ac_ct_CC" && break
1824 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1825 See \`config.log' for more details." >&5
1826 echo "$as_me: error: no acceptable C compiler found in \$PATH
1827 See \`config.log' for more details." >&2;}
1828 { (exit 1); exit 1; }; }
1830 # Provide some information about the compiler.
1831 echo "$as_me:$LINENO:" \
1832 "checking for C compiler version" >&5
1833 ac_compiler=`set X $ac_compile; echo $2`
1834 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1835 (eval $ac_compiler --version </dev/null >&5) 2>&5
1837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1838 (exit $ac_status); }
1839 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1840 (eval $ac_compiler -v </dev/null >&5) 2>&5
1842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1843 (exit $ac_status); }
1844 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1845 (eval $ac_compiler -V </dev/null >&5) 2>&5
1847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1848 (exit $ac_status); }
1850 cat >conftest.$ac_ext <<_ACEOF
1853 cat confdefs.h >>conftest.$ac_ext
1854 cat >>conftest.$ac_ext <<_ACEOF
1855 /* end confdefs.h. */
1865 ac_clean_files_save=$ac_clean_files
1866 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1867 # Try to create an executable without -o first, disregard a.out.
1868 # It will help us diagnose broken compilers, and finding out an intuition
1870 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1871 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1872 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1873 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1874 (eval $ac_link_default) 2>&5
1876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1877 (exit $ac_status); }; then
1878 # Find the output, starting from the most likely. This scheme is
1879 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1882 # Be careful to initialize this variable, since it used to be cached.
1883 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1885 # b.out is created by i960 compilers.
1886 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1888 test -f "$ac_file" || continue
1890 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1893 # This is the source file.
1896 # We found the default executable, but exeext='' is most
1900 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1901 # FIXME: I believe we export ac_cv_exeext for Libtool,
1902 # but it would be cool to find out if it's true. Does anybody
1903 # maintain Libtool? --akim.
1911 echo "$as_me: failed program was:" >&5
1912 sed 's/^/| /' conftest.$ac_ext >&5
1914 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1915 See \`config.log' for more details." >&5
1916 echo "$as_me: error: C compiler cannot create executables
1917 See \`config.log' for more details." >&2;}
1918 { (exit 77); exit 77; }; }
1921 ac_exeext=$ac_cv_exeext
1922 echo "$as_me:$LINENO: result: $ac_file" >&5
1923 echo "${ECHO_T}$ac_file" >&6
1925 # Check the compiler produces executables we can run. If not, either
1926 # the compiler is broken, or we cross compile.
1927 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1928 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1929 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1930 # If not cross compiling, check that we can run a simple program.
1931 if test "$cross_compiling" != yes; then
1932 if { ac_try='./$ac_file'
1933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1937 (exit $ac_status); }; }; then
1940 if test "$cross_compiling" = maybe; then
1943 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1944 If you meant to cross compile, use \`--host'.
1945 See \`config.log' for more details." >&5
1946 echo "$as_me: error: cannot run C compiled programs.
1947 If you meant to cross compile, use \`--host'.
1948 See \`config.log' for more details." >&2;}
1949 { (exit 1); exit 1; }; }
1953 echo "$as_me:$LINENO: result: yes" >&5
1954 echo "${ECHO_T}yes" >&6
1956 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1957 ac_clean_files=$ac_clean_files_save
1958 # Check the compiler produces executables we can run. If not, either
1959 # the compiler is broken, or we cross compile.
1960 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1961 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1962 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1963 echo "${ECHO_T}$cross_compiling" >&6
1965 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1966 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1968 (eval $ac_link) 2>&5
1970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1971 (exit $ac_status); }; then
1972 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1973 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1974 # work properly (i.e., refer to `conftest.exe'), while it won't with
1976 for ac_file in conftest.exe conftest conftest.*; do
1977 test -f "$ac_file" || continue
1979 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1980 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1987 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1988 See \`config.log' for more details." >&5
1989 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1990 See \`config.log' for more details." >&2;}
1991 { (exit 1); exit 1; }; }
1994 rm -f conftest$ac_cv_exeext
1995 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1996 echo "${ECHO_T}$ac_cv_exeext" >&6
1998 rm -f conftest.$ac_ext
1999 EXEEXT=$ac_cv_exeext
2001 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2002 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2003 if test "${ac_cv_objext+set}" = set; then
2004 echo $ECHO_N "(cached) $ECHO_C" >&6
2006 cat >conftest.$ac_ext <<_ACEOF
2009 cat confdefs.h >>conftest.$ac_ext
2010 cat >>conftest.$ac_ext <<_ACEOF
2011 /* end confdefs.h. */
2021 rm -f conftest.o conftest.obj
2022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2023 (eval $ac_compile) 2>&5
2025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2026 (exit $ac_status); }; then
2027 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2029 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2030 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2035 echo "$as_me: failed program was:" >&5
2036 sed 's/^/| /' conftest.$ac_ext >&5
2038 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2039 See \`config.log' for more details." >&5
2040 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2041 See \`config.log' for more details." >&2;}
2042 { (exit 1); exit 1; }; }
2045 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2047 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2048 echo "${ECHO_T}$ac_cv_objext" >&6
2049 OBJEXT=$ac_cv_objext
2051 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2052 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2053 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2054 echo $ECHO_N "(cached) $ECHO_C" >&6
2056 cat >conftest.$ac_ext <<_ACEOF
2059 cat confdefs.h >>conftest.$ac_ext
2060 cat >>conftest.$ac_ext <<_ACEOF
2061 /* end confdefs.h. */
2074 rm -f conftest.$ac_objext
2075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2076 (eval $ac_compile) 2>conftest.er1
2078 grep -v '^ *+' conftest.er1 >conftest.err
2080 cat conftest.err >&5
2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2082 (exit $ac_status); } &&
2083 { ac_try='test -z "$ac_c_werror_flag"
2084 || test ! -s conftest.err'
2085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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.err conftest.$ac_objext conftest.$ac_ext
2104 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2107 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2108 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2109 GCC=`test $ac_compiler_gnu = yes && echo yes`
2110 ac_test_CFLAGS=${CFLAGS+set}
2111 ac_save_CFLAGS=$CFLAGS
2113 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2114 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2115 if test "${ac_cv_prog_cc_g+set}" = set; then
2116 echo $ECHO_N "(cached) $ECHO_C" >&6
2118 cat >conftest.$ac_ext <<_ACEOF
2121 cat confdefs.h >>conftest.$ac_ext
2122 cat >>conftest.$ac_ext <<_ACEOF
2123 /* end confdefs.h. */
2133 rm -f conftest.$ac_objext
2134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2135 (eval $ac_compile) 2>conftest.er1
2137 grep -v '^ *+' conftest.er1 >conftest.err
2139 cat conftest.err >&5
2140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2141 (exit $ac_status); } &&
2142 { ac_try='test -z "$ac_c_werror_flag"
2143 || test ! -s conftest.err'
2144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2148 (exit $ac_status); }; } &&
2149 { ac_try='test -s conftest.$ac_objext'
2150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154 (exit $ac_status); }; }; then
2157 echo "$as_me: failed program was:" >&5
2158 sed 's/^/| /' conftest.$ac_ext >&5
2162 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2164 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2165 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2166 if test "$ac_test_CFLAGS" = set; then
2167 CFLAGS=$ac_save_CFLAGS
2168 elif test $ac_cv_prog_cc_g = yes; then
2169 if test "$GCC" = yes; then
2175 if test "$GCC" = yes; then
2181 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2182 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2183 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2184 echo $ECHO_N "(cached) $ECHO_C" >&6
2186 ac_cv_prog_cc_stdc=no
2188 cat >conftest.$ac_ext <<_ACEOF
2191 cat confdefs.h >>conftest.$ac_ext
2192 cat >>conftest.$ac_ext <<_ACEOF
2193 /* end confdefs.h. */
2196 #include <sys/types.h>
2197 #include <sys/stat.h>
2198 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2199 struct buf { int x; };
2200 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2201 static char *e (p, i)
2207 static char *f (char * (*g) (char **, int), char **p, ...)
2212 s = g (p, va_arg (v,int));
2217 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2218 function prototypes and stuff, but not '\xHH' hex character constants.
2219 These don't provoke an error unfortunately, instead are silently treated
2220 as 'x'. The following induces an error, until -std1 is added to get
2221 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2222 array size at least. It's necessary to write '\x00'==0 to get something
2223 that's true only with -std1. */
2224 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2226 int test (int i, double x);
2227 struct s1 {int (*f) (int a);};
2228 struct s2 {int (*f) (double a);};
2229 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2235 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2240 # Don't try gcc -ansi; that turns off useful extensions and
2241 # breaks some systems' header files.
2242 # AIX -qlanglvl=ansi
2243 # Ultrix and OSF/1 -std1
2244 # HP-UX 10.20 and later -Ae
2245 # HP-UX older versions -Aa -D_HPUX_SOURCE
2246 # SVR4 -Xc -D__EXTENSIONS__
2247 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2249 CC="$ac_save_CC $ac_arg"
2250 rm -f conftest.$ac_objext
2251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2252 (eval $ac_compile) 2>conftest.er1
2254 grep -v '^ *+' conftest.er1 >conftest.err
2256 cat conftest.err >&5
2257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258 (exit $ac_status); } &&
2259 { ac_try='test -z "$ac_c_werror_flag"
2260 || test ! -s conftest.err'
2261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265 (exit $ac_status); }; } &&
2266 { ac_try='test -s conftest.$ac_objext'
2267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271 (exit $ac_status); }; }; then
2272 ac_cv_prog_cc_stdc=$ac_arg
2275 echo "$as_me: failed program was:" >&5
2276 sed 's/^/| /' conftest.$ac_ext >&5
2279 rm -f conftest.err conftest.$ac_objext
2281 rm -f conftest.$ac_ext conftest.$ac_objext
2286 case "x$ac_cv_prog_cc_stdc" in
2288 echo "$as_me:$LINENO: result: none needed" >&5
2289 echo "${ECHO_T}none needed" >&6 ;;
2291 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2292 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2293 CC="$CC $ac_cv_prog_cc_stdc" ;;
2296 # Some people use a C++ compiler to compile C. Since we use `exit',
2297 # in C++ we need to declare it. In case someone uses the same compiler
2298 # for both compiling C and C++ we need to have the C++ compiler decide
2299 # the declaration of exit, since it's the most demanding environment.
2300 cat >conftest.$ac_ext <<_ACEOF
2305 rm -f conftest.$ac_objext
2306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2307 (eval $ac_compile) 2>conftest.er1
2309 grep -v '^ *+' conftest.er1 >conftest.err
2311 cat conftest.err >&5
2312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313 (exit $ac_status); } &&
2314 { ac_try='test -z "$ac_c_werror_flag"
2315 || test ! -s conftest.err'
2316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320 (exit $ac_status); }; } &&
2321 { ac_try='test -s conftest.$ac_objext'
2322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326 (exit $ac_status); }; }; then
2327 for ac_declaration in \
2329 'extern "C" void std::exit (int) throw (); using std::exit;' \
2330 'extern "C" void std::exit (int); using std::exit;' \
2331 'extern "C" void exit (int) throw ();' \
2332 'extern "C" void exit (int);' \
2335 cat >conftest.$ac_ext <<_ACEOF
2338 cat confdefs.h >>conftest.$ac_ext
2339 cat >>conftest.$ac_ext <<_ACEOF
2340 /* end confdefs.h. */
2351 rm -f conftest.$ac_objext
2352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2353 (eval $ac_compile) 2>conftest.er1
2355 grep -v '^ *+' conftest.er1 >conftest.err
2357 cat conftest.err >&5
2358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2359 (exit $ac_status); } &&
2360 { ac_try='test -z "$ac_c_werror_flag"
2361 || test ! -s conftest.err'
2362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366 (exit $ac_status); }; } &&
2367 { ac_try='test -s conftest.$ac_objext'
2368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372 (exit $ac_status); }; }; then
2375 echo "$as_me: failed program was:" >&5
2376 sed 's/^/| /' conftest.$ac_ext >&5
2380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2381 cat >conftest.$ac_ext <<_ACEOF
2384 cat confdefs.h >>conftest.$ac_ext
2385 cat >>conftest.$ac_ext <<_ACEOF
2386 /* end confdefs.h. */
2396 rm -f conftest.$ac_objext
2397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2398 (eval $ac_compile) 2>conftest.er1
2400 grep -v '^ *+' conftest.er1 >conftest.err
2402 cat conftest.err >&5
2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); } &&
2405 { ac_try='test -z "$ac_c_werror_flag"
2406 || test ! -s conftest.err'
2407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411 (exit $ac_status); }; } &&
2412 { ac_try='test -s conftest.$ac_objext'
2413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417 (exit $ac_status); }; }; then
2420 echo "$as_me: failed program was:" >&5
2421 sed 's/^/| /' conftest.$ac_ext >&5
2424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2427 if test -n "$ac_declaration"; then
2428 echo '#ifdef __cplusplus' >>confdefs.h
2429 echo $ac_declaration >>confdefs.h
2430 echo '#endif' >>confdefs.h
2434 echo "$as_me: failed program was:" >&5
2435 sed 's/^/| /' conftest.$ac_ext >&5
2438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2440 ac_cpp='$CPP $CPPFLAGS'
2441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2446 ac_cpp='$CXXCPP $CPPFLAGS'
2447 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2448 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2449 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2450 if test -n "$ac_tool_prefix"; then
2451 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2453 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2454 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2455 echo "$as_me:$LINENO: checking for $ac_word" >&5
2456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2457 if test "${ac_cv_prog_CXX+set}" = set; then
2458 echo $ECHO_N "(cached) $ECHO_C" >&6
2460 if test -n "$CXX"; then
2461 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2467 test -z "$as_dir" && as_dir=.
2468 for ac_exec_ext in '' $ac_executable_extensions; do
2469 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2470 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2480 if test -n "$CXX"; then
2481 echo "$as_me:$LINENO: result: $CXX" >&5
2482 echo "${ECHO_T}$CXX" >&6
2484 echo "$as_me:$LINENO: result: no" >&5
2485 echo "${ECHO_T}no" >&6
2488 test -n "$CXX" && break
2491 if test -z "$CXX"; then
2493 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2495 # Extract the first word of "$ac_prog", so it can be a program name with args.
2496 set dummy $ac_prog; ac_word=$2
2497 echo "$as_me:$LINENO: checking for $ac_word" >&5
2498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2499 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2500 echo $ECHO_N "(cached) $ECHO_C" >&6
2502 if test -n "$ac_ct_CXX"; then
2503 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2509 test -z "$as_dir" && as_dir=.
2510 for ac_exec_ext in '' $ac_executable_extensions; do
2511 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2512 ac_cv_prog_ac_ct_CXX="$ac_prog"
2513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2521 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2522 if test -n "$ac_ct_CXX"; then
2523 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2524 echo "${ECHO_T}$ac_ct_CXX" >&6
2526 echo "$as_me:$LINENO: result: no" >&5
2527 echo "${ECHO_T}no" >&6
2530 test -n "$ac_ct_CXX" && break
2532 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2538 # Provide some information about the compiler.
2539 echo "$as_me:$LINENO:" \
2540 "checking for C++ compiler version" >&5
2541 ac_compiler=`set X $ac_compile; echo $2`
2542 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2543 (eval $ac_compiler --version </dev/null >&5) 2>&5
2545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546 (exit $ac_status); }
2547 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2548 (eval $ac_compiler -v </dev/null >&5) 2>&5
2550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2551 (exit $ac_status); }
2552 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2553 (eval $ac_compiler -V </dev/null >&5) 2>&5
2555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2556 (exit $ac_status); }
2558 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2559 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2560 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2561 echo $ECHO_N "(cached) $ECHO_C" >&6
2563 cat >conftest.$ac_ext <<_ACEOF
2566 cat confdefs.h >>conftest.$ac_ext
2567 cat >>conftest.$ac_ext <<_ACEOF
2568 /* end confdefs.h. */
2581 rm -f conftest.$ac_objext
2582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2583 (eval $ac_compile) 2>conftest.er1
2585 grep -v '^ *+' conftest.er1 >conftest.err
2587 cat conftest.err >&5
2588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589 (exit $ac_status); } &&
2590 { ac_try='test -z "$ac_cxx_werror_flag"
2591 || test ! -s conftest.err'
2592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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.err conftest.$ac_objext conftest.$ac_ext
2611 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2614 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2615 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2616 GXX=`test $ac_compiler_gnu = yes && echo yes`
2617 ac_test_CXXFLAGS=${CXXFLAGS+set}
2618 ac_save_CXXFLAGS=$CXXFLAGS
2620 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2621 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2622 if test "${ac_cv_prog_cxx_g+set}" = set; then
2623 echo $ECHO_N "(cached) $ECHO_C" >&6
2625 cat >conftest.$ac_ext <<_ACEOF
2628 cat confdefs.h >>conftest.$ac_ext
2629 cat >>conftest.$ac_ext <<_ACEOF
2630 /* end confdefs.h. */
2640 rm -f conftest.$ac_objext
2641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2642 (eval $ac_compile) 2>conftest.er1
2644 grep -v '^ *+' conftest.er1 >conftest.err
2646 cat conftest.err >&5
2647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648 (exit $ac_status); } &&
2649 { ac_try='test -z "$ac_cxx_werror_flag"
2650 || test ! -s conftest.err'
2651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655 (exit $ac_status); }; } &&
2656 { ac_try='test -s conftest.$ac_objext'
2657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661 (exit $ac_status); }; }; then
2662 ac_cv_prog_cxx_g=yes
2664 echo "$as_me: failed program was:" >&5
2665 sed 's/^/| /' conftest.$ac_ext >&5
2669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2671 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2672 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2673 if test "$ac_test_CXXFLAGS" = set; then
2674 CXXFLAGS=$ac_save_CXXFLAGS
2675 elif test $ac_cv_prog_cxx_g = yes; then
2676 if test "$GXX" = yes; then
2682 if test "$GXX" = yes; then
2688 for ac_declaration in \
2690 'extern "C" void std::exit (int) throw (); using std::exit;' \
2691 'extern "C" void std::exit (int); using std::exit;' \
2692 'extern "C" void exit (int) throw ();' \
2693 'extern "C" void exit (int);' \
2696 cat >conftest.$ac_ext <<_ACEOF
2699 cat confdefs.h >>conftest.$ac_ext
2700 cat >>conftest.$ac_ext <<_ACEOF
2701 /* end confdefs.h. */
2712 rm -f conftest.$ac_objext
2713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2714 (eval $ac_compile) 2>conftest.er1
2716 grep -v '^ *+' conftest.er1 >conftest.err
2718 cat conftest.err >&5
2719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720 (exit $ac_status); } &&
2721 { ac_try='test -z "$ac_cxx_werror_flag"
2722 || test ! -s conftest.err'
2723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727 (exit $ac_status); }; } &&
2728 { ac_try='test -s conftest.$ac_objext'
2729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733 (exit $ac_status); }; }; then
2736 echo "$as_me: failed program was:" >&5
2737 sed 's/^/| /' conftest.$ac_ext >&5
2741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2742 cat >conftest.$ac_ext <<_ACEOF
2745 cat confdefs.h >>conftest.$ac_ext
2746 cat >>conftest.$ac_ext <<_ACEOF
2747 /* end confdefs.h. */
2757 rm -f conftest.$ac_objext
2758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2759 (eval $ac_compile) 2>conftest.er1
2761 grep -v '^ *+' conftest.er1 >conftest.err
2763 cat conftest.err >&5
2764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765 (exit $ac_status); } &&
2766 { ac_try='test -z "$ac_cxx_werror_flag"
2767 || test ! -s conftest.err'
2768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772 (exit $ac_status); }; } &&
2773 { ac_try='test -s conftest.$ac_objext'
2774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778 (exit $ac_status); }; }; then
2781 echo "$as_me: failed program was:" >&5
2782 sed 's/^/| /' conftest.$ac_ext >&5
2785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2788 if test -n "$ac_declaration"; then
2789 echo '#ifdef __cplusplus' >>confdefs.h
2790 echo $ac_declaration >>confdefs.h
2791 echo '#endif' >>confdefs.h
2795 ac_cpp='$CPP $CPPFLAGS'
2796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2800 if test "x$CC" != xcc; then
2801 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2802 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2804 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2805 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2807 set dummy $CC; ac_cc=`echo $2 |
2808 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2809 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2810 echo $ECHO_N "(cached) $ECHO_C" >&6
2812 cat >conftest.$ac_ext <<_ACEOF
2815 cat confdefs.h >>conftest.$ac_ext
2816 cat >>conftest.$ac_ext <<_ACEOF
2817 /* end confdefs.h. */
2827 # Make sure it works both with $CC and with simple cc.
2828 # We do the test twice because some compilers refuse to overwrite an
2829 # existing .o file with -o, though they will create one.
2830 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2831 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835 (exit $ac_status); } &&
2836 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840 (exit $ac_status); };
2842 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2843 if test "x$CC" != xcc; then
2844 # Test first that cc exists at all.
2845 if { ac_try='cc -c conftest.$ac_ext >&5'
2846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850 (exit $ac_status); }; }; then
2851 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2852 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856 (exit $ac_status); } &&
2857 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861 (exit $ac_status); };
2866 # cc exists but doesn't like -o.
2867 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2872 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2877 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2878 echo "$as_me:$LINENO: result: yes" >&5
2879 echo "${ECHO_T}yes" >&6
2881 echo "$as_me:$LINENO: result: no" >&5
2882 echo "${ECHO_T}no" >&6
2884 cat >>confdefs.h <<\_ACEOF
2885 #define NO_MINUS_C_MINUS_O 1
2891 ac_cpp='$CPP $CPPFLAGS'
2892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2895 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2896 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2897 # On Suns, sometimes $CPP names a directory.
2898 if test -n "$CPP" && test -d "$CPP"; then
2901 if test -z "$CPP"; then
2902 if test "${ac_cv_prog_CPP+set}" = set; then
2903 echo $ECHO_N "(cached) $ECHO_C" >&6
2905 # Double quotes because CPP needs to be expanded
2906 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2909 for ac_c_preproc_warn_flag in '' yes
2911 # Use a header file that comes with gcc, so configuring glibc
2912 # with a fresh cross-compiler works.
2913 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2914 # <limits.h> exists even on freestanding compilers.
2915 # On the NeXT, cc -E runs the code through the compiler's parser,
2916 # not just through cpp. "Syntax error" is here to catch this case.
2917 cat >conftest.$ac_ext <<_ACEOF
2920 cat confdefs.h >>conftest.$ac_ext
2921 cat >>conftest.$ac_ext <<_ACEOF
2922 /* end confdefs.h. */
2924 # include <limits.h>
2926 # include <assert.h>
2930 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2931 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2933 grep -v '^ *+' conftest.er1 >conftest.err
2935 cat conftest.err >&5
2936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937 (exit $ac_status); } >/dev/null; then
2938 if test -s conftest.err; then
2939 ac_cpp_err=$ac_c_preproc_warn_flag
2940 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2947 if test -z "$ac_cpp_err"; then
2950 echo "$as_me: failed program was:" >&5
2951 sed 's/^/| /' conftest.$ac_ext >&5
2953 # Broken: fails on valid input.
2956 rm -f conftest.err conftest.$ac_ext
2958 # OK, works on sane cases. Now check whether non-existent headers
2959 # can be detected and how.
2960 cat >conftest.$ac_ext <<_ACEOF
2963 cat confdefs.h >>conftest.$ac_ext
2964 cat >>conftest.$ac_ext <<_ACEOF
2965 /* end confdefs.h. */
2966 #include <ac_nonexistent.h>
2968 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2969 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2971 grep -v '^ *+' conftest.er1 >conftest.err
2973 cat conftest.err >&5
2974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975 (exit $ac_status); } >/dev/null; then
2976 if test -s conftest.err; then
2977 ac_cpp_err=$ac_c_preproc_warn_flag
2978 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2985 if test -z "$ac_cpp_err"; then
2986 # Broken: success on invalid input.
2989 echo "$as_me: failed program was:" >&5
2990 sed 's/^/| /' conftest.$ac_ext >&5
2992 # Passes both tests.
2996 rm -f conftest.err conftest.$ac_ext
2999 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3000 rm -f conftest.err conftest.$ac_ext
3001 if $ac_preproc_ok; then
3013 echo "$as_me:$LINENO: result: $CPP" >&5
3014 echo "${ECHO_T}$CPP" >&6
3016 for ac_c_preproc_warn_flag in '' yes
3018 # Use a header file that comes with gcc, so configuring glibc
3019 # with a fresh cross-compiler works.
3020 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3021 # <limits.h> exists even on freestanding compilers.
3022 # On the NeXT, cc -E runs the code through the compiler's parser,
3023 # not just through cpp. "Syntax error" is here to catch this case.
3024 cat >conftest.$ac_ext <<_ACEOF
3027 cat confdefs.h >>conftest.$ac_ext
3028 cat >>conftest.$ac_ext <<_ACEOF
3029 /* end confdefs.h. */
3031 # include <limits.h>
3033 # include <assert.h>
3037 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3038 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3040 grep -v '^ *+' conftest.er1 >conftest.err
3042 cat conftest.err >&5
3043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044 (exit $ac_status); } >/dev/null; then
3045 if test -s conftest.err; then
3046 ac_cpp_err=$ac_c_preproc_warn_flag
3047 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3054 if test -z "$ac_cpp_err"; then
3057 echo "$as_me: failed program was:" >&5
3058 sed 's/^/| /' conftest.$ac_ext >&5
3060 # Broken: fails on valid input.
3063 rm -f conftest.err conftest.$ac_ext
3065 # OK, works on sane cases. Now check whether non-existent headers
3066 # can be detected and how.
3067 cat >conftest.$ac_ext <<_ACEOF
3070 cat confdefs.h >>conftest.$ac_ext
3071 cat >>conftest.$ac_ext <<_ACEOF
3072 /* end confdefs.h. */
3073 #include <ac_nonexistent.h>
3075 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3076 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3078 grep -v '^ *+' conftest.er1 >conftest.err
3080 cat conftest.err >&5
3081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082 (exit $ac_status); } >/dev/null; then
3083 if test -s conftest.err; then
3084 ac_cpp_err=$ac_c_preproc_warn_flag
3085 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3092 if test -z "$ac_cpp_err"; then
3093 # Broken: success on invalid input.
3096 echo "$as_me: failed program was:" >&5
3097 sed 's/^/| /' conftest.$ac_ext >&5
3099 # Passes both tests.
3103 rm -f conftest.err conftest.$ac_ext
3106 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3107 rm -f conftest.err conftest.$ac_ext
3108 if $ac_preproc_ok; then
3111 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3112 See \`config.log' for more details." >&5
3113 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3114 See \`config.log' for more details." >&2;}
3115 { (exit 1); exit 1; }; }
3119 ac_cpp='$CPP $CPPFLAGS'
3120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3125 echo "$as_me:$LINENO: checking for egrep" >&5
3126 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3127 if test "${ac_cv_prog_egrep+set}" = set; then
3128 echo $ECHO_N "(cached) $ECHO_C" >&6
3130 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3131 then ac_cv_prog_egrep='grep -E'
3132 else ac_cv_prog_egrep='egrep'
3135 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3136 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3137 EGREP=$ac_cv_prog_egrep
3140 if test $ac_cv_c_compiler_gnu = yes; then
3141 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3142 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3143 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3144 echo $ECHO_N "(cached) $ECHO_C" >&6
3146 ac_pattern="Autoconf.*'x'"
3147 cat >conftest.$ac_ext <<_ACEOF
3150 cat confdefs.h >>conftest.$ac_ext
3151 cat >>conftest.$ac_ext <<_ACEOF
3152 /* end confdefs.h. */
3156 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3157 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3158 ac_cv_prog_gcc_traditional=yes
3160 ac_cv_prog_gcc_traditional=no
3165 if test $ac_cv_prog_gcc_traditional = no; then
3166 cat >conftest.$ac_ext <<_ACEOF
3169 cat confdefs.h >>conftest.$ac_ext
3170 cat >>conftest.$ac_ext <<_ACEOF
3171 /* end confdefs.h. */
3175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3176 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3177 ac_cv_prog_gcc_traditional=yes
3183 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3184 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3185 if test $ac_cv_prog_gcc_traditional = yes; then
3186 CC="$CC -traditional"
3190 if test "x$CC" = xgcc
3192 cat >>confdefs.h <<\_ACEOF
3198 # Find a good install program. We prefer a C program (faster),
3199 # so one script is as good as another. But avoid the broken or
3200 # incompatible versions:
3201 # SysV /etc/install, /usr/sbin/install
3202 # SunOS /usr/etc/install
3203 # IRIX /sbin/install
3205 # AmigaOS /C/install, which installs bootblocks on floppy discs
3206 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3207 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3208 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3209 # OS/2's system install, which has a completely different semantic
3210 # ./install, which can be erroneously created by make from ./install.sh.
3211 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3212 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3213 if test -z "$INSTALL"; then
3214 if test "${ac_cv_path_install+set}" = set; then
3215 echo $ECHO_N "(cached) $ECHO_C" >&6
3217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3221 test -z "$as_dir" && as_dir=.
3222 # Account for people who put trailing slashes in PATH elements.
3224 ./ | .// | /cC/* | \
3225 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3226 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3229 # OSF1 and SCO ODT 3.0 have their own names for install.
3230 # Don't use installbsd from OSF since it installs stuff as root
3232 for ac_prog in ginstall scoinst install; do
3233 for ac_exec_ext in '' $ac_executable_extensions; do
3234 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3235 if test $ac_prog = install &&
3236 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3237 # AIX install. It has an incompatible calling convention.
3239 elif test $ac_prog = install &&
3240 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3241 # program-specific install script used by HP pwplus--don't use.
3244 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3256 if test "${ac_cv_path_install+set}" = set; then
3257 INSTALL=$ac_cv_path_install
3259 # As a last resort, use the slow shell script. We don't cache a
3260 # path for INSTALL within a source directory, because that will
3261 # break other packages using the cache if that directory is
3262 # removed, or if the path is relative.
3263 INSTALL=$ac_install_sh
3266 echo "$as_me:$LINENO: result: $INSTALL" >&5
3267 echo "${ECHO_T}$INSTALL" >&6
3269 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3270 # It thinks the first close brace ends the variable substitution.
3271 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3273 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3275 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3277 if test -n "$ac_tool_prefix"; then
3278 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3279 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3280 echo "$as_me:$LINENO: checking for $ac_word" >&5
3281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3282 if test "${ac_cv_prog_RANLIB+set}" = set; then
3283 echo $ECHO_N "(cached) $ECHO_C" >&6
3285 if test -n "$RANLIB"; then
3286 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3292 test -z "$as_dir" && as_dir=.
3293 for ac_exec_ext in '' $ac_executable_extensions; do
3294 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3295 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3304 RANLIB=$ac_cv_prog_RANLIB
3305 if test -n "$RANLIB"; then
3306 echo "$as_me:$LINENO: result: $RANLIB" >&5
3307 echo "${ECHO_T}$RANLIB" >&6
3309 echo "$as_me:$LINENO: result: no" >&5
3310 echo "${ECHO_T}no" >&6
3314 if test -z "$ac_cv_prog_RANLIB"; then
3315 ac_ct_RANLIB=$RANLIB
3316 # Extract the first word of "ranlib", so it can be a program name with args.
3317 set dummy ranlib; ac_word=$2
3318 echo "$as_me:$LINENO: checking for $ac_word" >&5
3319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3320 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3321 echo $ECHO_N "(cached) $ECHO_C" >&6
3323 if test -n "$ac_ct_RANLIB"; then
3324 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3330 test -z "$as_dir" && as_dir=.
3331 for ac_exec_ext in '' $ac_executable_extensions; do
3332 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3333 ac_cv_prog_ac_ct_RANLIB="ranlib"
3334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3340 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3343 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3344 if test -n "$ac_ct_RANLIB"; then
3345 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3346 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3348 echo "$as_me:$LINENO: result: no" >&5
3349 echo "${ECHO_T}no" >&6
3352 RANLIB=$ac_ct_RANLIB
3354 RANLIB="$ac_cv_prog_RANLIB"
3357 # Extract the first word of "mv", so it can be a program name with args.
3358 set dummy mv; ac_word=$2
3359 echo "$as_me:$LINENO: checking for $ac_word" >&5
3360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3361 if test "${ac_cv_path_MV+set}" = set; then
3362 echo $ECHO_N "(cached) $ECHO_C" >&6
3366 ac_cv_path_MV="$MV" # Let the user override the test with a path.
3369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3373 test -z "$as_dir" && as_dir=.
3374 for ac_exec_ext in '' $ac_executable_extensions; do
3375 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3376 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3383 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3389 if test -n "$MV"; then
3390 echo "$as_me:$LINENO: result: $MV" >&5
3391 echo "${ECHO_T}$MV" >&6
3393 echo "$as_me:$LINENO: result: no" >&5
3394 echo "${ECHO_T}no" >&6
3397 # Extract the first word of "rm", so it can be a program name with args.
3398 set dummy rm; ac_word=$2
3399 echo "$as_me:$LINENO: checking for $ac_word" >&5
3400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3401 if test "${ac_cv_path_RM+set}" = set; then
3402 echo $ECHO_N "(cached) $ECHO_C" >&6
3406 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3413 test -z "$as_dir" && as_dir=.
3414 for ac_exec_ext in '' $ac_executable_extensions; do
3415 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3416 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3423 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3429 if test -n "$RM"; then
3430 echo "$as_me:$LINENO: result: $RM" >&5
3431 echo "${ECHO_T}$RM" >&6
3433 echo "$as_me:$LINENO: result: no" >&5
3434 echo "${ECHO_T}no" >&6
3437 # Extract the first word of "cp", so it can be a program name with args.
3438 set dummy cp; ac_word=$2
3439 echo "$as_me:$LINENO: checking for $ac_word" >&5
3440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3441 if test "${ac_cv_path_CP+set}" = set; then
3442 echo $ECHO_N "(cached) $ECHO_C" >&6
3446 ac_cv_path_CP="$CP" # Let the user override the test with a path.
3449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3453 test -z "$as_dir" && as_dir=.
3454 for ac_exec_ext in '' $ac_executable_extensions; do
3455 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3456 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3463 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3469 if test -n "$CP"; then
3470 echo "$as_me:$LINENO: result: $CP" >&5
3471 echo "${ECHO_T}$CP" >&6
3473 echo "$as_me:$LINENO: result: no" >&5
3474 echo "${ECHO_T}no" >&6
3477 # Extract the first word of "sed", so it can be a program name with args.
3478 set dummy sed; ac_word=$2
3479 echo "$as_me:$LINENO: checking for $ac_word" >&5
3480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3481 if test "${ac_cv_path_SED+set}" = set; then
3482 echo $ECHO_N "(cached) $ECHO_C" >&6
3486 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3493 test -z "$as_dir" && as_dir=.
3494 for ac_exec_ext in '' $ac_executable_extensions; do
3495 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3496 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3503 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3509 if test -n "$SED"; then
3510 echo "$as_me:$LINENO: result: $SED" >&5
3511 echo "${ECHO_T}$SED" >&6
3513 echo "$as_me:$LINENO: result: no" >&5
3514 echo "${ECHO_T}no" >&6
3517 # Extract the first word of "awk", so it can be a program name with args.
3518 set dummy awk; ac_word=$2
3519 echo "$as_me:$LINENO: checking for $ac_word" >&5
3520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3521 if test "${ac_cv_path_AWK+set}" = set; then
3522 echo $ECHO_N "(cached) $ECHO_C" >&6
3526 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
3529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3533 test -z "$as_dir" && as_dir=.
3534 for ac_exec_ext in '' $ac_executable_extensions; do
3535 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3536 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
3537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3543 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
3549 if test -n "$AWK"; then
3550 echo "$as_me:$LINENO: result: $AWK" >&5
3551 echo "${ECHO_T}$AWK" >&6
3553 echo "$as_me:$LINENO: result: no" >&5
3554 echo "${ECHO_T}no" >&6
3557 # Extract the first word of "echo", so it can be a program name with args.
3558 set dummy echo; ac_word=$2
3559 echo "$as_me:$LINENO: checking for $ac_word" >&5
3560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3561 if test "${ac_cv_path_ECHO+set}" = set; then
3562 echo $ECHO_N "(cached) $ECHO_C" >&6
3566 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3573 test -z "$as_dir" && as_dir=.
3574 for ac_exec_ext in '' $ac_executable_extensions; do
3575 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3576 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3583 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3587 ECHO=$ac_cv_path_ECHO
3589 if test -n "$ECHO"; then
3590 echo "$as_me:$LINENO: result: $ECHO" >&5
3591 echo "${ECHO_T}$ECHO" >&6
3593 echo "$as_me:$LINENO: result: no" >&5
3594 echo "${ECHO_T}no" >&6
3597 # Extract the first word of "cmp", so it can be a program name with args.
3598 set dummy cmp; ac_word=$2
3599 echo "$as_me:$LINENO: checking for $ac_word" >&5
3600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3601 if test "${ac_cv_path_CMP+set}" = set; then
3602 echo $ECHO_N "(cached) $ECHO_C" >&6
3606 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3613 test -z "$as_dir" && as_dir=.
3614 for ac_exec_ext in '' $ac_executable_extensions; do
3615 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3616 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3623 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3629 if test -n "$CMP"; then
3630 echo "$as_me:$LINENO: result: $CMP" >&5
3631 echo "${ECHO_T}$CMP" >&6
3633 echo "$as_me:$LINENO: result: no" >&5
3634 echo "${ECHO_T}no" >&6
3637 # Extract the first word of "tbl", so it can be a program name with args.
3638 set dummy tbl; ac_word=$2
3639 echo "$as_me:$LINENO: checking for $ac_word" >&5
3640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3641 if test "${ac_cv_path_TBL+set}" = set; then
3642 echo $ECHO_N "(cached) $ECHO_C" >&6
3646 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3653 test -z "$as_dir" && as_dir=.
3654 for ac_exec_ext in '' $ac_executable_extensions; do
3655 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3656 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3663 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3669 if test -n "$TBL"; then
3670 echo "$as_me:$LINENO: result: $TBL" >&5
3671 echo "${ECHO_T}$TBL" >&6
3673 echo "$as_me:$LINENO: result: no" >&5
3674 echo "${ECHO_T}no" >&6
3677 # Extract the first word of "ar", so it can be a program name with args.
3678 set dummy ar; ac_word=$2
3679 echo "$as_me:$LINENO: checking for $ac_word" >&5
3680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3681 if test "${ac_cv_path_AR+set}" = set; then
3682 echo $ECHO_N "(cached) $ECHO_C" >&6
3686 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3693 test -z "$as_dir" && as_dir=.
3694 for ac_exec_ext in '' $ac_executable_extensions; do
3695 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3696 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3703 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3709 if test -n "$AR"; then
3710 echo "$as_me:$LINENO: result: $AR" >&5
3711 echo "${ECHO_T}$AR" >&6
3713 echo "$as_me:$LINENO: result: no" >&5
3714 echo "${ECHO_T}no" >&6
3717 # Extract the first word of "openssl", so it can be a program name with args.
3718 set dummy openssl; ac_word=$2
3719 echo "$as_me:$LINENO: checking for $ac_word" >&5
3720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3721 if test "${ac_cv_path_OPENSSL+set}" = set; then
3722 echo $ECHO_N "(cached) $ECHO_C" >&6
3726 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3733 test -z "$as_dir" && as_dir=.
3734 for ac_exec_ext in '' $ac_executable_extensions; do
3735 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3736 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3743 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3747 OPENSSL=$ac_cv_path_OPENSSL
3749 if test -n "$OPENSSL"; then
3750 echo "$as_me:$LINENO: result: $OPENSSL" >&5
3751 echo "${ECHO_T}$OPENSSL" >&6
3753 echo "$as_me:$LINENO: result: no" >&5
3754 echo "${ECHO_T}no" >&6
3757 # Extract the first word of "mtx", so it can be a program name with args.
3758 set dummy mtx; ac_word=$2
3759 echo "$as_me:$LINENO: checking for $ac_word" >&5
3760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3761 if test "${ac_cv_path_MTX+set}" = set; then
3762 echo $ECHO_N "(cached) $ECHO_C" >&6
3766 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3773 test -z "$as_dir" && as_dir=.
3774 for ac_exec_ext in '' $ac_executable_extensions; do
3775 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3776 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3783 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3789 if test -n "$MTX"; then
3790 echo "$as_me:$LINENO: result: $MTX" >&5
3791 echo "${ECHO_T}$MTX" >&6
3793 echo "$as_me:$LINENO: result: no" >&5
3794 echo "${ECHO_T}no" >&6
3797 # Extract the first word of "pkg-config", so it can be a program name with args.
3798 set dummy pkg-config; ac_word=$2
3799 echo "$as_me:$LINENO: checking for $ac_word" >&5
3800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3801 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
3802 echo $ECHO_N "(cached) $ECHO_C" >&6
3806 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
3809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3813 test -z "$as_dir" && as_dir=.
3814 for ac_exec_ext in '' $ac_executable_extensions; do
3815 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3816 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
3817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3823 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
3827 PKGCONFIG=$ac_cv_path_PKGCONFIG
3829 if test -n "$PKGCONFIG"; then
3830 echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
3831 echo "${ECHO_T}$PKGCONFIG" >&6
3833 echo "$as_me:$LINENO: result: no" >&5
3834 echo "${ECHO_T}no" >&6
3837 # Extract the first word of "wx-config", so it can be a program name with args.
3838 set dummy wx-config; ac_word=$2
3839 echo "$as_me:$LINENO: checking for $ac_word" >&5
3840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3841 if test "${ac_cv_path_WXCONFIG+set}" = set; then
3842 echo $ECHO_N "(cached) $ECHO_C" >&6
3846 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
3849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3853 test -z "$as_dir" && as_dir=.
3854 for ac_exec_ext in '' $ac_executable_extensions; do
3855 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3856 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
3857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3863 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="wx-config"
3867 WXCONFIG=$ac_cv_path_WXCONFIG
3869 if test -n "$WXCONFIG"; then
3870 echo "$as_me:$LINENO: result: $WXCONFIG" >&5
3871 echo "${ECHO_T}$WXCONFIG" >&6
3873 echo "$as_me:$LINENO: result: no" >&5
3874 echo "${ECHO_T}no" >&6
3877 # Extract the first word of "cdrecord", so it can be a program name with args.
3878 set dummy cdrecord; ac_word=$2
3879 echo "$as_me:$LINENO: checking for $ac_word" >&5
3880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3881 if test "${ac_cv_path_CDRECORD+set}" = set; then
3882 echo $ECHO_N "(cached) $ECHO_C" >&6
3886 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
3889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3893 test -z "$as_dir" && as_dir=.
3894 for ac_exec_ext in '' $ac_executable_extensions; do
3895 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3896 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
3897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3903 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
3907 CDRECORD=$ac_cv_path_CDRECORD
3909 if test -n "$CDRECORD"; then
3910 echo "$as_me:$LINENO: result: $CDRECORD" >&5
3911 echo "${ECHO_T}$CDRECORD" >&6
3913 echo "$as_me:$LINENO: result: no" >&5
3914 echo "${ECHO_T}no" >&6
3917 # Extract the first word of "pidof", so it can be a program name with args.
3918 set dummy pidof; ac_word=$2
3919 echo "$as_me:$LINENO: checking for $ac_word" >&5
3920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3921 if test "${ac_cv_path_PIDOF+set}" = set; then
3922 echo $ECHO_N "(cached) $ECHO_C" >&6
3926 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
3929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3933 test -z "$as_dir" && as_dir=.
3934 for ac_exec_ext in '' $ac_executable_extensions; do
3935 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3936 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
3937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3943 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
3947 PIDOF=$ac_cv_path_PIDOF
3949 if test -n "$PIDOF"; then
3950 echo "$as_me:$LINENO: result: $PIDOF" >&5
3951 echo "${ECHO_T}$PIDOF" >&6
3953 echo "$as_me:$LINENO: result: no" >&5
3954 echo "${ECHO_T}no" >&6
3958 test -n "$ARFLAG" || ARFLAGS="cr"
3971 # Make sure we can run config.sub.
3972 $ac_config_sub sun4 >/dev/null 2>&1 ||
3973 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3974 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3975 { (exit 1); exit 1; }; }
3977 echo "$as_me:$LINENO: checking build system type" >&5
3978 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3979 if test "${ac_cv_build+set}" = set; then
3980 echo $ECHO_N "(cached) $ECHO_C" >&6
3982 ac_cv_build_alias=$build_alias
3983 test -z "$ac_cv_build_alias" &&
3984 ac_cv_build_alias=`$ac_config_guess`
3985 test -z "$ac_cv_build_alias" &&
3986 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3987 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3988 { (exit 1); exit 1; }; }
3989 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3990 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3991 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3992 { (exit 1); exit 1; }; }
3995 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3996 echo "${ECHO_T}$ac_cv_build" >&6
3998 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3999 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4000 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4004 echo "$as_me:$LINENO: checking host system type" >&5
4005 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4006 if test "${ac_cv_host+set}" = set; then
4007 echo $ECHO_N "(cached) $ECHO_C" >&6
4009 ac_cv_host_alias=$host_alias
4010 test -z "$ac_cv_host_alias" &&
4011 ac_cv_host_alias=$ac_cv_build_alias
4012 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4013 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4014 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4015 { (exit 1); exit 1; }; }
4018 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4019 echo "${ECHO_T}$ac_cv_host" >&6
4021 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4022 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4023 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4027 *cygwin* ) CYGWIN=yes;;
4031 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4037 HAVE_SUN_OS_FALSE='#'
4039 HAVE_SUN_OS_TRUE='#'
4042 cat >>confdefs.h <<\_ACEOF
4043 #define HAVE_SUN_OS 1
4051 HAVE_SUN_OS_FALSE='#'
4053 HAVE_SUN_OS_TRUE='#'
4058 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4064 HAVE_OSF1_OS_FALSE='#'
4066 HAVE_OSF1_OS_TRUE='#'
4069 cat >>confdefs.h <<\_ACEOF
4070 #define HAVE_OSF1_OS 1
4078 HAVE_OSF1_OS_FALSE='#'
4080 HAVE_OSF1_OS_TRUE='#'
4085 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4091 HAVE_AIX_OS_FALSE='#'
4093 HAVE_AIX_OS_TRUE='#'
4096 cat >>confdefs.h <<\_ACEOF
4097 #define HAVE_AIX_OS 1
4105 HAVE_AIX_OS_FALSE='#'
4107 HAVE_AIX_OS_TRUE='#'
4112 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4118 HAVE_HPUX_OS_FALSE='#'
4120 HAVE_HPUX_OS_TRUE='#'
4123 cat >>confdefs.h <<\_ACEOF
4124 #define HAVE_HPUX_OS 1
4132 HAVE_HPUX_OS_FALSE='#'
4134 HAVE_HPUX_OS_TRUE='#'
4139 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
4145 HAVE_LINUX_OS_FALSE='#'
4147 HAVE_LINUX_OS_TRUE='#'
4148 HAVE_LINUX_OS_FALSE=
4150 cat >>confdefs.h <<\_ACEOF
4151 #define HAVE_LINUX_OS 1
4159 HAVE_LINUX_OS_FALSE='#'
4161 HAVE_LINUX_OS_TRUE='#'
4162 HAVE_LINUX_OS_FALSE=
4166 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4171 HAVE_FREEBSD_OS_TRUE=
4172 HAVE_FREEBSD_OS_FALSE='#'
4174 HAVE_FREEBSD_OS_TRUE='#'
4175 HAVE_FREEBSD_OS_FALSE=
4177 cat >>confdefs.h <<\_ACEOF
4178 #define HAVE_FREEBSD_OS 1
4185 HAVE_FREEBSD_OS_TRUE=
4186 HAVE_FREEBSD_OS_FALSE='#'
4188 HAVE_FREEBSD_OS_TRUE='#'
4189 HAVE_FREEBSD_OS_FALSE=
4193 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4198 HAVE_NETBSD_OS_TRUE=
4199 HAVE_NETBSD_OS_FALSE='#'
4201 HAVE_NETBSD_OS_TRUE='#'
4202 HAVE_NETBSD_OS_FALSE=
4204 cat >>confdefs.h <<\_ACEOF
4205 #define HAVE_NETBSD_OS 1
4212 HAVE_NETBSD_OS_TRUE=
4213 HAVE_NETBSD_OS_FALSE='#'
4215 HAVE_NETBSD_OS_TRUE='#'
4216 HAVE_NETBSD_OS_FALSE=
4220 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4225 HAVE_OPENBSD_OS_TRUE=
4226 HAVE_OPENBSD_OS_FALSE='#'
4228 HAVE_OPENBSD_OS_TRUE='#'
4229 HAVE_OPENBSD_OS_FALSE=
4231 cat >>confdefs.h <<\_ACEOF
4232 #define HAVE_OPENBSD_OS 1
4239 HAVE_OPENBSD_OS_TRUE=
4240 HAVE_OPENBSD_OS_FALSE='#'
4242 HAVE_OPENBSD_OS_TRUE='#'
4243 HAVE_OPENBSD_OS_FALSE=
4247 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4253 HAVE_BSDI_OS_FALSE='#'
4255 HAVE_BSDI_OS_TRUE='#'
4258 cat >>confdefs.h <<\_ACEOF
4259 #define HAVE_BSDI_OS 1
4267 HAVE_BSDI_OS_FALSE='#'
4269 HAVE_BSDI_OS_TRUE='#'
4274 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4280 HAVE_SGI_OS_FALSE='#'
4282 HAVE_SGI_OS_TRUE='#'
4285 cat >>confdefs.h <<\_ACEOF
4286 #define HAVE_SGI_OS 1
4294 HAVE_SGI_OS_FALSE='#'
4296 HAVE_SGI_OS_TRUE='#'
4301 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4307 HAVE_IRIX_OS_FALSE='#'
4309 HAVE_IRIX_OS_TRUE='#'
4312 cat >>confdefs.h <<\_ACEOF
4313 #define HAVE_IRIX_OS 1
4321 HAVE_IRIX_OS_FALSE='#'
4323 HAVE_IRIX_OS_TRUE='#'
4328 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4333 HAVE_DARWIN_OS_TRUE=
4334 HAVE_DARWIN_OS_FALSE='#'
4336 HAVE_DARWIN_OS_TRUE='#'
4337 HAVE_DARWIN_OS_FALSE=
4339 cat >>confdefs.h <<\_ACEOF
4340 #define HAVE_DARWIN_OS 1
4347 HAVE_DARWIN_OS_TRUE=
4348 HAVE_DARWIN_OS_FALSE='#'
4350 HAVE_DARWIN_OS_TRUE='#'
4351 HAVE_DARWIN_OS_FALSE=
4356 # -----------------------------------------------------------
4357 # ----------------------------------------------------------
4358 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4359 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4360 if test "x$DISTNAME" != "x"
4362 echo "distname set to $DISTNAME"
4363 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4366 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4369 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4372 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4375 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4378 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4381 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4384 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4387 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4390 elif test -f /etc/SuSE-release
4393 elif test -d /etc/SuSEconfig
4396 elif test -f /etc/mandrake-release
4399 elif test -f /etc/whitebox-release
4402 elif test -f /etc/redhat-release
4405 elif test -f /etc/gentoo-release
4408 elif test -f /etc/debian_version
4411 elif test -f /etc/slackware-version
4414 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4417 elif test -f /etc/engarde-version
4420 elif test "$CYGWIN" = yes
4423 cat >>confdefs.h <<\_ACEOF
4424 #define HAVE_CYGWIN 1
4430 echo "$as_me:$LINENO: result: done" >&5
4431 echo "${ECHO_T}done" >&6
4434 # -----------------------------------------------------------
4435 # ----------------------------------------------------------
4440 INSIDE_GNOME_COMMON_TRUE=
4441 INSIDE_GNOME_COMMON_FALSE='#'
4443 INSIDE_GNOME_COMMON_TRUE='#'
4444 INSIDE_GNOME_COMMON_FALSE=
4447 test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
4449 for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
4452 # ------------------------------------------------------------------
4453 # If the user has not set --prefix, we set our default to nothing.
4454 # In this case, if the user has not set --sysconfdir, we set it
4455 # to the package default of /etc/bacula. If either --prefix or
4456 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
4457 # ------------------------------------------------------------------
4458 if test x${prefix} = xNONE ; then
4459 if test `eval echo ${sysconfdir}` = NONE/etc ; then
4460 sysconfdir=/etc/bacula
4464 sysconfdir=`eval echo ${sysconfdir}`
4466 # -------------------------------------------------------------------------
4467 # If the user has not set --exec-prefix, we default to ${prefix}
4468 # -------------------------------------------------------------------------
4469 if test x${exec_prefix} = xNONE ; then
4470 exec_prefix=${prefix}
4473 # ------------------------------------------------------------------
4474 # If the user has not set --sbindir, we set our default as /sbin
4475 # ------------------------------------------------------------------
4476 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4477 sbindir=${exec_prefix}/sbin
4479 sbindir=`eval echo ${sbindir}`
4481 # ------------------------------------------------------------------
4482 # All list of languages for which a translation exist. Each
4483 # language is separated by a space.
4484 # ------------------------------------------------------------------
4487 for ac_prog in msgfmt
4489 # Extract the first word of "$ac_prog", so it can be a program name with args.
4490 set dummy $ac_prog; ac_word=$2
4491 echo "$as_me:$LINENO: checking for $ac_word" >&5
4492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4493 if test "${ac_cv_path_MSGFMT+set}" = set; then
4494 echo $ECHO_N "(cached) $ECHO_C" >&6
4498 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4505 test -z "$as_dir" && as_dir=.
4506 for ac_exec_ext in '' $ac_executable_extensions; do
4507 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4508 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4518 MSGFMT=$ac_cv_path_MSGFMT
4520 if test -n "$MSGFMT"; then
4521 echo "$as_me:$LINENO: result: $MSGFMT" >&5
4522 echo "${ECHO_T}$MSGFMT" >&6
4524 echo "$as_me:$LINENO: result: no" >&5
4525 echo "${ECHO_T}no" >&6
4528 test -n "$MSGFMT" && break
4530 test -n "$MSGFMT" || MSGFMT="no"
4532 if test "$MSGFMT" = "no"
4534 echo 'msgfmt program not found, disabling NLS !'
4536 USE_INCLUDED_LIBINTL=no
4544 support_postgresql=no
4545 support_smartalloc=yes
4546 support_readline=yes
4549 support_wx_console=no
4551 support_static_tools=no
4552 support_static_fd=no
4553 support_static_sd=no
4554 support_static_dir=no
4555 support_static_cons=no
4557 build_client_only=no
4563 # -------------------------------------------
4564 # gnome (default off)
4565 # -------------------------------------------
4566 # Check whether --enable-gnome or --disable-gnome was given.
4567 if test "${enable_gnome+set}" = set; then
4568 enableval="$enable_gnome"
4569 if test x$enableval = xyes; then
4575 if test x$support_gnome = xyes; then
4576 abc=`$PKGCONFIG --exists libgnomeui-2.0`
4578 if test $pkg = 0; then
4579 GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
4580 GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4581 GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
4582 GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4587 GNOME_DIR=src/gnome2-console
4588 gnome_version="Version 2.x"
4601 # Check whether --with-gnome-includes or --without-gnome-includes was given.
4602 if test "${with_gnome_includes+set}" = set; then
4603 withval="$with_gnome_includes"
4605 CFLAGS="$CFLAGS -I$withval"
4610 # Check whether --with-gnome-libs or --without-gnome-libs was given.
4611 if test "${with_gnome_libs+set}" = set; then
4612 withval="$with_gnome_libs"
4614 LDFLAGS="$LDFLAGS -L$withval"
4615 gnome_prefix=$withval
4620 # Check whether --with-gnome or --without-gnome was given.
4621 if test "${with_gnome+set}" = set; then
4622 withval="$with_gnome"
4623 if test x$withval = xyes; then
4627 if test "x$withval" = xno; then
4631 LDFLAGS="$LDFLAGS -L$withval/lib"
4632 CFLAGS="$CFLAGS -I$withval/include"
4633 gnome_prefix=$withval/lib
4640 if test "x$want_gnome" = xyes; then
4642 # Extract the first word of "gnome-config", so it can be a program name with args.
4643 set dummy gnome-config; ac_word=$2
4644 echo "$as_me:$LINENO: checking for $ac_word" >&5
4645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4646 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
4647 echo $ECHO_N "(cached) $ECHO_C" >&6
4649 case $GNOME_CONFIG in
4651 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
4654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4658 test -z "$as_dir" && as_dir=.
4659 for ac_exec_ext in '' $ac_executable_extensions; do
4660 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4661 ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4668 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
4672 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
4674 if test -n "$GNOME_CONFIG"; then
4675 echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
4676 echo "${ECHO_T}$GNOME_CONFIG" >&6
4678 echo "$as_me:$LINENO: result: no" >&5
4679 echo "${ECHO_T}no" >&6
4682 if test "$GNOME_CONFIG" = "no"; then
4683 no_gnome_config="yes"
4685 echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
4686 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
4687 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
4688 echo "$as_me:$LINENO: result: yes" >&5
4689 echo "${ECHO_T}yes" >&6
4692 # Extract the first word of "orbit-config", so it can be a program name with args.
4693 set dummy orbit-config; ac_word=$2
4694 echo "$as_me:$LINENO: checking for $ac_word" >&5
4695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4696 if test "${ac_cv_path_ORBIT_CONFIG+set}" = set; then
4697 echo $ECHO_N "(cached) $ECHO_C" >&6
4699 case $ORBIT_CONFIG in
4701 ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
4704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4708 test -z "$as_dir" && as_dir=.
4709 for ac_exec_ext in '' $ac_executable_extensions; do
4710 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4711 ac_cv_path_ORBIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4718 test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
4722 ORBIT_CONFIG=$ac_cv_path_ORBIT_CONFIG
4724 if test -n "$ORBIT_CONFIG"; then
4725 echo "$as_me:$LINENO: result: $ORBIT_CONFIG" >&5
4726 echo "${ECHO_T}$ORBIT_CONFIG" >&6
4728 echo "$as_me:$LINENO: result: no" >&5
4729 echo "${ECHO_T}no" >&6
4732 # Extract the first word of "orbit-idl", so it can be a program name with args.
4733 set dummy orbit-idl; ac_word=$2
4734 echo "$as_me:$LINENO: checking for $ac_word" >&5
4735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4736 if test "${ac_cv_path_ORBIT_IDL+set}" = set; then
4737 echo $ECHO_N "(cached) $ECHO_C" >&6
4741 ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
4744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4748 test -z "$as_dir" && as_dir=.
4749 for ac_exec_ext in '' $ac_executable_extensions; do
4750 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4751 ac_cv_path_ORBIT_IDL="$as_dir/$ac_word$ac_exec_ext"
4752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4758 test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
4762 ORBIT_IDL=$ac_cv_path_ORBIT_IDL
4764 if test -n "$ORBIT_IDL"; then
4765 echo "$as_me:$LINENO: result: $ORBIT_IDL" >&5
4766 echo "${ECHO_T}$ORBIT_IDL" >&6
4768 echo "$as_me:$LINENO: result: no" >&5
4769 echo "${ECHO_T}no" >&6
4772 echo "$as_me:$LINENO: checking for working ORBit environment" >&5
4773 echo $ECHO_N "checking for working ORBit environment... $ECHO_C" >&6
4774 if test "${gnome_cv_orbit_found+set}" = set; then
4775 echo $ECHO_N "(cached) $ECHO_C" >&6
4778 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
4779 gnome_cv_orbit_found=no
4781 gnome_cv_orbit_found=yes
4785 echo "$as_me:$LINENO: result: $gnome_cv_orbit_found" >&5
4786 echo "${ECHO_T}$gnome_cv_orbit_found" >&6
4789 if test x$gnome_cv_orbit_found = xyes; then
4791 HAVE_ORBIT_FALSE='#'
4796 if test x$gnome_cv_orbit_found = xyes; then
4798 ORBIT_CFLAGS=`orbit-config --cflags client server`
4799 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
4803 if test xfail = xfailure; then
4804 { { echo "$as_me:$LINENO: error: ORBit not installed or installation problem" >&5
4805 echo "$as_me: error: ORBit not installed or installation problem" >&2;}
4806 { (exit 1); exit 1; }; }
4810 echo "$as_me:$LINENO: checking for gnorba libraries" >&5
4811 echo $ECHO_N "checking for gnorba libraries... $ECHO_C" >&6
4812 if test "${gnome_cv_gnorba_found+set}" = set; then
4813 echo $ECHO_N "(cached) $ECHO_C" >&6
4816 gnome_cv_gnorba_found=no
4817 if test x$gnome_cv_orbit_found = xyes; then
4818 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4819 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4820 if test -n "$GNORBA_LIBS"; then
4821 gnome_cv_gnorba_found=yes
4826 echo "$as_me:$LINENO: result: $gnome_cv_gnorba_found" >&5
4827 echo "${ECHO_T}$gnome_cv_gnorba_found" >&6
4830 if test x$gnome_cv_gnorba_found = xyes; then
4832 HAVE_GNORBA_FALSE='#'
4834 HAVE_GNORBA_TRUE='#'
4837 if test x$gnome_cv_orbit_found = xyes; then
4839 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4840 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4844 if test xfail = xfailure; then
4845 { { echo "$as_me:$LINENO: error: gnorba library not installed or installation problem" >&5
4846 echo "$as_me: error: gnorba library not installed or installation problem" >&2;}
4847 { (exit 1); exit 1; }; }
4851 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
4852 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
4853 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
4854 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
4855 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
4856 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
4857 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
4860 echo "$as_me:$LINENO: result: no" >&5
4861 echo "${ECHO_T}no" >&6
4862 no_gnome_config="yes"
4866 if test x$exec_prefix = xNONE; then
4867 if test x$prefix = xNONE; then
4868 gnome_prefix=$ac_default_prefix/lib
4870 gnome_prefix=$prefix/lib
4873 gnome_prefix=`eval echo \`echo $libdir\``
4876 if test "$no_gnome_config" = "yes"; then
4877 echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
4878 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
4879 if test -f $gnome_prefix/gnomeConf.sh; then
4880 echo "$as_me:$LINENO: result: found" >&5
4881 echo "${ECHO_T}found" >&6
4882 echo "loading gnome configuration from" \
4883 "$gnome_prefix/gnomeConf.sh"
4884 . $gnome_prefix/gnomeConf.sh
4887 echo "$as_me:$LINENO: result: not found" >&5
4888 echo "${ECHO_T}not found" >&6
4889 if test xfail = xfail; then
4890 { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
4891 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
4892 { (exit 1); exit 1; }; }
4901 echo "$as_me:$LINENO: checking extra library \"$i\"" >&5
4902 echo $ECHO_N "checking extra library \"$i\"... $ECHO_C" >&6
4906 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
4907 echo "$as_me:$LINENO: result: $GNOME_APPLETS_LIBS" >&5
4908 echo "${ECHO_T}$GNOME_APPLETS_LIBS" >&6;;
4911 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
4912 echo "$as_me:$LINENO: result: $GNOME_DOCKLETS_LIBS" >&5
4913 echo "${ECHO_T}$GNOME_DOCKLETS_LIBS" >&6;;
4916 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
4917 echo "$as_me:$LINENO: result: $GNOME_CAPPLET_LIBS" >&5
4918 echo "${ECHO_T}$GNOME_CAPPLET_LIBS" >&6;;
4920 echo "$as_me:$LINENO: result: unknown library" >&5
4921 echo "${ECHO_T}unknown library" >&6
4923 EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
4924 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
4929 GNOME_DIR=src/gnome-console
4930 gnome_version="Version 1.4"
4936 # -------------------------------------------
4937 # wx-console (default off)
4938 # -------------------------------------------
4939 # Check whether --enable-wx-console or --disable-wx-console was given.
4940 if test "${enable_wx_console+set}" = set; then
4941 enableval="$enable_wx_console"
4942 if test x$enableval = xyes; then
4943 support_wx_console=yes
4948 if test x$support_wx_console = xyes; then
4949 abc=`$WXCONFIG --cppflags`
4951 if test $pkg = 0; then
4952 WXCONS_CPPFLAGS=`$WXCONFIG --cppflags`
4953 WXCONS_LDFLAGS=`$WXCONFIG --libs`
4956 WX_DIR=src/wx-console
4959 echo "wx-config program not found. wx-console disabled."
4961 support_wx_console=no
4967 # -------------------------------------------
4968 # tray-monitor (default off)
4969 # -------------------------------------------
4970 # Check whether --enable-tray-monitor or --disable-tray-monitor was given.
4971 if test "${enable_tray_monitor+set}" = set; then
4972 enableval="$enable_tray_monitor"
4973 if test x$enableval = xyes; then
4974 support_tray_monitor=yes
4979 if test x$support_tray_monitor = xyes; then
4980 abc=`$PKGCONFIG --exists gtk+-2.0`
4982 if test $pkg = 0; then
4983 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
4984 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
4987 TRAY_MONITOR_DIR=src/tray-monitor
4988 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
4990 if test $pkg = 0; then
4991 cat >>confdefs.h <<\_ACEOF
4992 #define HAVE_GTK_2_4 1
5000 # -------------------------------------------
5001 # smartalloc (default off)
5002 # -------------------------------------------
5003 # Check whether --enable-smartalloc or --disable-smartalloc was given.
5004 if test "${enable_smartalloc+set}" = set; then
5005 enableval="$enable_smartalloc"
5006 if test x$enableval = xno; then
5007 support_smartalloc=no
5011 if test x$support_smartalloc = xyes; then
5012 cat >>confdefs.h <<\_ACEOF
5013 #define SMARTALLOC 1
5018 # -------------------------------------------
5019 # static-tools (default off)
5020 # -------------------------------------------
5021 # Check whether --enable-static-tools or --disable-static-tools was given.
5022 if test "${enable_static_tools+set}" = set; then
5023 enableval="$enable_static_tools"
5024 if test x$enableval = xyes; then
5025 support_static_tools=yes
5030 if test x$support_static_tools = xyes; then
5031 TTOOL_LDFLAGS="-static"
5035 # -------------------------------------------
5036 # static-fd (default off)
5037 # -------------------------------------------
5038 # Check whether --enable-static-fd or --disable-static-fd was given.
5039 if test "${enable_static_fd+set}" = set; then
5040 enableval="$enable_static_fd"
5041 if test x$enableval = xyes; then
5042 support_static_fd=yes
5047 if test x$support_static_fd = xyes; then
5048 STATIC_FD="static-bacula-fd"
5052 # -------------------------------------------
5053 # static-sd (default off)
5054 # -------------------------------------------
5055 # Check whether --enable-static-sd or --disable-static-sd was given.
5056 if test "${enable_static_sd+set}" = set; then
5057 enableval="$enable_static_sd"
5058 if test x$enableval = xyes; then
5059 support_static_sd=yes
5064 if test x$support_static_sd = xyes; then
5065 STATIC_SD="static-bacula-sd"
5069 # -------------------------------------------
5070 # static-dir (default off)
5071 # -------------------------------------------
5072 # Check whether --enable-static-dir or --disable-static-dir was given.
5073 if test "${enable_static_dir+set}" = set; then
5074 enableval="$enable_static_dir"
5075 if test x$enableval = xyes; then
5076 support_static_dir=yes
5081 if test x$support_static_dir = xyes; then
5082 STATIC_DIR="static-bacula-dir"
5086 # -------------------------------------------
5087 # static-cons (default off)
5088 # -------------------------------------------
5089 # Check whether --enable-static-cons or --disable-static-cons was given.
5090 if test "${enable_static_cons+set}" = set; then
5091 enableval="$enable_static_cons"
5092 if test x$enableval = xyes; then
5093 support_static_cons=yes
5100 if test x$support_static_cons = xyes; then
5101 STATIC_CONS="static-bconsole"
5102 STATIC_GNOME_CONS="static-gnome-console"
5103 STATIC_WX_CONS="static-wx-console"
5109 # -------------------------------------------
5110 # client_only (default off)
5111 # -------------------------------------------
5112 # Check whether --enable-client-only or --disable-client-only was given.
5113 if test "${enable_client_only+set}" = set; then
5114 enableval="$enable_client_only"
5115 if test x$enableval = xyes; then
5116 build_client_only=yes
5121 if test x$build_client_only = xno; then
5128 # ---------------------------------------------------
5129 # Check for conio (Bacula readline substitute)(
5130 # ---------------------------------------------------
5131 # this allows you to turn it completely off
5132 # Check whether --enable-conio or --disable-conio was given.
5133 if test "${enable_conio+set}" = set; then
5134 enableval="$enable_conio"
5135 if test x$enableval = xno; then
5141 if test x$support_conio = xyes; then
5142 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5143 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5144 if test "${ac_cv_header_stdc+set}" = set; then
5145 echo $ECHO_N "(cached) $ECHO_C" >&6
5147 cat >conftest.$ac_ext <<_ACEOF
5150 cat confdefs.h >>conftest.$ac_ext
5151 cat >>conftest.$ac_ext <<_ACEOF
5152 /* end confdefs.h. */
5166 rm -f conftest.$ac_objext
5167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5168 (eval $ac_compile) 2>conftest.er1
5170 grep -v '^ *+' conftest.er1 >conftest.err
5172 cat conftest.err >&5
5173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5174 (exit $ac_status); } &&
5175 { ac_try='test -z "$ac_c_werror_flag"
5176 || test ! -s conftest.err'
5177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5181 (exit $ac_status); }; } &&
5182 { ac_try='test -s conftest.$ac_objext'
5183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5187 (exit $ac_status); }; }; then
5188 ac_cv_header_stdc=yes
5190 echo "$as_me: failed program was:" >&5
5191 sed 's/^/| /' conftest.$ac_ext >&5
5193 ac_cv_header_stdc=no
5195 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5197 if test $ac_cv_header_stdc = yes; then
5198 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5199 cat >conftest.$ac_ext <<_ACEOF
5202 cat confdefs.h >>conftest.$ac_ext
5203 cat >>conftest.$ac_ext <<_ACEOF
5204 /* end confdefs.h. */
5208 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5209 $EGREP "memchr" >/dev/null 2>&1; then
5212 ac_cv_header_stdc=no
5218 if test $ac_cv_header_stdc = yes; then
5219 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5220 cat >conftest.$ac_ext <<_ACEOF
5223 cat confdefs.h >>conftest.$ac_ext
5224 cat >>conftest.$ac_ext <<_ACEOF
5225 /* end confdefs.h. */
5229 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5230 $EGREP "free" >/dev/null 2>&1; then
5233 ac_cv_header_stdc=no
5239 if test $ac_cv_header_stdc = yes; then
5240 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5241 if test "$cross_compiling" = yes; then
5244 cat >conftest.$ac_ext <<_ACEOF
5247 cat confdefs.h >>conftest.$ac_ext
5248 cat >>conftest.$ac_ext <<_ACEOF
5249 /* end confdefs.h. */
5251 #if ((' ' & 0x0FF) == 0x020)
5252 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5253 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5255 # define ISLOWER(c) \
5256 (('a' <= (c) && (c) <= 'i') \
5257 || ('j' <= (c) && (c) <= 'r') \
5258 || ('s' <= (c) && (c) <= 'z'))
5259 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5262 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5267 for (i = 0; i < 256; i++)
5268 if (XOR (islower (i), ISLOWER (i))
5269 || toupper (i) != TOUPPER (i))
5274 rm -f conftest$ac_exeext
5275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5276 (eval $ac_link) 2>&5
5278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5279 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5284 (exit $ac_status); }; }; then
5287 echo "$as_me: program exited with status $ac_status" >&5
5288 echo "$as_me: failed program was:" >&5
5289 sed 's/^/| /' conftest.$ac_ext >&5
5292 ac_cv_header_stdc=no
5294 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5298 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5299 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5300 if test $ac_cv_header_stdc = yes; then
5302 cat >>confdefs.h <<\_ACEOF
5303 #define STDC_HEADERS 1
5308 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5318 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5319 inttypes.h stdint.h unistd.h
5321 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5322 echo "$as_me:$LINENO: checking for $ac_header" >&5
5323 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5324 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5325 echo $ECHO_N "(cached) $ECHO_C" >&6
5327 cat >conftest.$ac_ext <<_ACEOF
5330 cat confdefs.h >>conftest.$ac_ext
5331 cat >>conftest.$ac_ext <<_ACEOF
5332 /* end confdefs.h. */
5333 $ac_includes_default
5335 #include <$ac_header>
5337 rm -f conftest.$ac_objext
5338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5339 (eval $ac_compile) 2>conftest.er1
5341 grep -v '^ *+' conftest.er1 >conftest.err
5343 cat conftest.err >&5
5344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345 (exit $ac_status); } &&
5346 { ac_try='test -z "$ac_c_werror_flag"
5347 || test ! -s conftest.err'
5348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5352 (exit $ac_status); }; } &&
5353 { ac_try='test -s conftest.$ac_objext'
5354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5358 (exit $ac_status); }; }; then
5359 eval "$as_ac_Header=yes"
5361 echo "$as_me: failed program was:" >&5
5362 sed 's/^/| /' conftest.$ac_ext >&5
5364 eval "$as_ac_Header=no"
5366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5368 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5369 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5370 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5371 cat >>confdefs.h <<_ACEOF
5372 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5380 if test "${ac_cv_header_termcap_h+set}" = set; then
5381 echo "$as_me:$LINENO: checking for termcap.h" >&5
5382 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5383 if test "${ac_cv_header_termcap_h+set}" = set; then
5384 echo $ECHO_N "(cached) $ECHO_C" >&6
5386 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5387 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5389 # Is the header compilable?
5390 echo "$as_me:$LINENO: checking termcap.h usability" >&5
5391 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
5392 cat >conftest.$ac_ext <<_ACEOF
5395 cat confdefs.h >>conftest.$ac_ext
5396 cat >>conftest.$ac_ext <<_ACEOF
5397 /* end confdefs.h. */
5398 $ac_includes_default
5399 #include <termcap.h>
5401 rm -f conftest.$ac_objext
5402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5403 (eval $ac_compile) 2>conftest.er1
5405 grep -v '^ *+' conftest.er1 >conftest.err
5407 cat conftest.err >&5
5408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5409 (exit $ac_status); } &&
5410 { ac_try='test -z "$ac_c_werror_flag"
5411 || test ! -s conftest.err'
5412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416 (exit $ac_status); }; } &&
5417 { ac_try='test -s conftest.$ac_objext'
5418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422 (exit $ac_status); }; }; then
5423 ac_header_compiler=yes
5425 echo "$as_me: failed program was:" >&5
5426 sed 's/^/| /' conftest.$ac_ext >&5
5428 ac_header_compiler=no
5430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5431 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5432 echo "${ECHO_T}$ac_header_compiler" >&6
5434 # Is the header present?
5435 echo "$as_me:$LINENO: checking termcap.h presence" >&5
5436 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
5437 cat >conftest.$ac_ext <<_ACEOF
5440 cat confdefs.h >>conftest.$ac_ext
5441 cat >>conftest.$ac_ext <<_ACEOF
5442 /* end confdefs.h. */
5443 #include <termcap.h>
5445 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5446 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5448 grep -v '^ *+' conftest.er1 >conftest.err
5450 cat conftest.err >&5
5451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452 (exit $ac_status); } >/dev/null; then
5453 if test -s conftest.err; then
5454 ac_cpp_err=$ac_c_preproc_warn_flag
5455 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5462 if test -z "$ac_cpp_err"; then
5463 ac_header_preproc=yes
5465 echo "$as_me: failed program was:" >&5
5466 sed 's/^/| /' conftest.$ac_ext >&5
5468 ac_header_preproc=no
5470 rm -f conftest.err conftest.$ac_ext
5471 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5472 echo "${ECHO_T}$ac_header_preproc" >&6
5474 # So? What about this header?
5475 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5477 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
5478 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5479 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
5480 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
5481 ac_header_preproc=yes
5484 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
5485 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
5486 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
5487 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
5488 { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
5489 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
5490 { echo "$as_me:$LINENO: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&5
5491 echo "$as_me: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
5492 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5493 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5494 { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
5495 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
5498 ## ------------------------------------------ ##
5499 ## Report this to the AC_PACKAGE_NAME lists. ##
5500 ## ------------------------------------------ ##
5503 sed "s/^/$as_me: WARNING: /" >&2
5506 echo "$as_me:$LINENO: checking for termcap.h" >&5
5507 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5508 if test "${ac_cv_header_termcap_h+set}" = set; then
5509 echo $ECHO_N "(cached) $ECHO_C" >&6
5511 ac_cv_header_termcap_h=$ac_header_preproc
5513 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5514 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5517 if test $ac_cv_header_termcap_h = yes; then
5518 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5519 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
5520 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5521 echo $ECHO_N "(cached) $ECHO_C" >&6
5523 ac_check_lib_save_LIBS=$LIBS
5524 LIBS="-ltermcap $LIBS"
5525 cat >conftest.$ac_ext <<_ACEOF
5528 cat confdefs.h >>conftest.$ac_ext
5529 cat >>conftest.$ac_ext <<_ACEOF
5530 /* end confdefs.h. */
5532 /* Override any gcc2 internal prototype to avoid an error. */
5536 /* We use char because int might match the return type of a gcc2
5537 builtin and then its argument prototype would still apply. */
5547 rm -f conftest.$ac_objext conftest$ac_exeext
5548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5549 (eval $ac_link) 2>conftest.er1
5551 grep -v '^ *+' conftest.er1 >conftest.err
5553 cat conftest.err >&5
5554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555 (exit $ac_status); } &&
5556 { ac_try='test -z "$ac_c_werror_flag"
5557 || test ! -s conftest.err'
5558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5562 (exit $ac_status); }; } &&
5563 { ac_try='test -s conftest$ac_exeext'
5564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5568 (exit $ac_status); }; }; then
5569 ac_cv_lib_termcap_tgetent=yes
5571 echo "$as_me: failed program was:" >&5
5572 sed 's/^/| /' conftest.$ac_ext >&5
5574 ac_cv_lib_termcap_tgetent=no
5576 rm -f conftest.err conftest.$ac_objext \
5577 conftest$ac_exeext conftest.$ac_ext
5578 LIBS=$ac_check_lib_save_LIBS
5580 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5581 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
5582 if test $ac_cv_lib_termcap_tgetent = yes; then
5583 CONS_LIBS="-ltermcap"
5589 cat >>confdefs.h <<\_ACEOF
5590 #define HAVE_CONIO 1
5595 echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
5596 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
5597 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
5598 echo $ECHO_N "(cached) $ECHO_C" >&6
5600 ac_check_lib_save_LIBS=$LIBS
5601 LIBS="-lncurses $LIBS"
5602 cat >conftest.$ac_ext <<_ACEOF
5605 cat confdefs.h >>conftest.$ac_ext
5606 cat >>conftest.$ac_ext <<_ACEOF
5607 /* end confdefs.h. */
5609 /* Override any gcc2 internal prototype to avoid an error. */
5613 /* We use char because int might match the return type of a gcc2
5614 builtin and then its argument prototype would still apply. */
5624 rm -f conftest.$ac_objext conftest$ac_exeext
5625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5626 (eval $ac_link) 2>conftest.er1
5628 grep -v '^ *+' conftest.er1 >conftest.err
5630 cat conftest.err >&5
5631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632 (exit $ac_status); } &&
5633 { ac_try='test -z "$ac_c_werror_flag"
5634 || test ! -s conftest.err'
5635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639 (exit $ac_status); }; } &&
5640 { ac_try='test -s conftest$ac_exeext'
5641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5645 (exit $ac_status); }; }; then
5646 ac_cv_lib_ncurses_tgetent=yes
5648 echo "$as_me: failed program was:" >&5
5649 sed 's/^/| /' conftest.$ac_ext >&5
5651 ac_cv_lib_ncurses_tgetent=no
5653 rm -f conftest.err conftest.$ac_objext \
5654 conftest$ac_exeext conftest.$ac_ext
5655 LIBS=$ac_check_lib_save_LIBS
5657 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
5658 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
5659 if test $ac_cv_lib_ncurses_tgetent = yes; then
5660 CONS_LIBS="-lncurses"
5666 cat >>confdefs.h <<\_ACEOF
5667 #define HAVE_CONIO 1
5680 for ac_header in curses.h
5682 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5683 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5684 echo "$as_me:$LINENO: checking for $ac_header" >&5
5685 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5686 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5687 echo $ECHO_N "(cached) $ECHO_C" >&6
5689 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5690 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5692 # Is the header compilable?
5693 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5694 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5695 cat >conftest.$ac_ext <<_ACEOF
5698 cat confdefs.h >>conftest.$ac_ext
5699 cat >>conftest.$ac_ext <<_ACEOF
5700 /* end confdefs.h. */
5701 $ac_includes_default
5702 #include <$ac_header>
5704 rm -f conftest.$ac_objext
5705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5706 (eval $ac_compile) 2>conftest.er1
5708 grep -v '^ *+' conftest.er1 >conftest.err
5710 cat conftest.err >&5
5711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712 (exit $ac_status); } &&
5713 { ac_try='test -z "$ac_c_werror_flag"
5714 || test ! -s conftest.err'
5715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719 (exit $ac_status); }; } &&
5720 { ac_try='test -s conftest.$ac_objext'
5721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725 (exit $ac_status); }; }; then
5726 ac_header_compiler=yes
5728 echo "$as_me: failed program was:" >&5
5729 sed 's/^/| /' conftest.$ac_ext >&5
5731 ac_header_compiler=no
5733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5734 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5735 echo "${ECHO_T}$ac_header_compiler" >&6
5737 # Is the header present?
5738 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5739 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5740 cat >conftest.$ac_ext <<_ACEOF
5743 cat confdefs.h >>conftest.$ac_ext
5744 cat >>conftest.$ac_ext <<_ACEOF
5745 /* end confdefs.h. */
5746 #include <$ac_header>
5748 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5749 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5751 grep -v '^ *+' conftest.er1 >conftest.err
5753 cat conftest.err >&5
5754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5755 (exit $ac_status); } >/dev/null; then
5756 if test -s conftest.err; then
5757 ac_cpp_err=$ac_c_preproc_warn_flag
5758 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5765 if test -z "$ac_cpp_err"; then
5766 ac_header_preproc=yes
5768 echo "$as_me: failed program was:" >&5
5769 sed 's/^/| /' conftest.$ac_ext >&5
5771 ac_header_preproc=no
5773 rm -f conftest.err conftest.$ac_ext
5774 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5775 echo "${ECHO_T}$ac_header_preproc" >&6
5777 # So? What about this header?
5778 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5780 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5781 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5782 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5783 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5784 ac_header_preproc=yes
5787 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5788 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5789 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5790 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5791 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5792 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5793 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5794 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5795 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5796 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5797 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5798 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5801 ## ------------------------------------------ ##
5802 ## Report this to the AC_PACKAGE_NAME lists. ##
5803 ## ------------------------------------------ ##
5806 sed "s/^/$as_me: WARNING: /" >&2
5809 echo "$as_me:$LINENO: checking for $ac_header" >&5
5810 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5811 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5812 echo $ECHO_N "(cached) $ECHO_C" >&6
5814 eval "$as_ac_Header=\$ac_header_preproc"
5816 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5817 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5820 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5821 cat >>confdefs.h <<_ACEOF
5822 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5829 echo "$as_me:$LINENO: checking for term.h" >&5
5830 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
5831 if test "${ac_cv_header_term_h+set}" = set; then
5832 echo $ECHO_N "(cached) $ECHO_C" >&6
5834 cat >conftest.$ac_ext <<_ACEOF
5837 cat confdefs.h >>conftest.$ac_ext
5838 cat >>conftest.$ac_ext <<_ACEOF
5839 /* end confdefs.h. */
5847 rm -f conftest.$ac_objext
5848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5849 (eval $ac_compile) 2>conftest.er1
5851 grep -v '^ *+' conftest.er1 >conftest.err
5853 cat conftest.err >&5
5854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855 (exit $ac_status); } &&
5856 { ac_try='test -z "$ac_c_werror_flag"
5857 || test ! -s conftest.err'
5858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862 (exit $ac_status); }; } &&
5863 { ac_try='test -s conftest.$ac_objext'
5864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868 (exit $ac_status); }; }; then
5869 ac_cv_header_term_h=yes
5871 echo "$as_me: failed program was:" >&5
5872 sed 's/^/| /' conftest.$ac_ext >&5
5874 ac_cv_header_term_h=no
5876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5878 echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
5879 echo "${ECHO_T}$ac_cv_header_term_h" >&6
5880 if test $ac_cv_header_term_h = yes; then
5881 echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
5882 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
5883 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
5884 echo $ECHO_N "(cached) $ECHO_C" >&6
5886 ac_check_lib_save_LIBS=$LIBS
5887 LIBS="-lcurses $LIBS"
5888 cat >conftest.$ac_ext <<_ACEOF
5891 cat confdefs.h >>conftest.$ac_ext
5892 cat >>conftest.$ac_ext <<_ACEOF
5893 /* end confdefs.h. */
5895 /* Override any gcc2 internal prototype to avoid an error. */
5899 /* We use char because int might match the return type of a gcc2
5900 builtin and then its argument prototype would still apply. */
5910 rm -f conftest.$ac_objext conftest$ac_exeext
5911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5912 (eval $ac_link) 2>conftest.er1
5914 grep -v '^ *+' conftest.er1 >conftest.err
5916 cat conftest.err >&5
5917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918 (exit $ac_status); } &&
5919 { ac_try='test -z "$ac_c_werror_flag"
5920 || test ! -s conftest.err'
5921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5925 (exit $ac_status); }; } &&
5926 { ac_try='test -s conftest$ac_exeext'
5927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931 (exit $ac_status); }; }; then
5932 ac_cv_lib_curses_tgetent=yes
5934 echo "$as_me: failed program was:" >&5
5935 sed 's/^/| /' conftest.$ac_ext >&5
5937 ac_cv_lib_curses_tgetent=no
5939 rm -f conftest.err conftest.$ac_objext \
5940 conftest$ac_exeext conftest.$ac_ext
5941 LIBS=$ac_check_lib_save_LIBS
5943 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
5944 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
5945 if test $ac_cv_lib_curses_tgetent = yes; then
5946 CONS_LIBS="-lcurses"
5952 cat >>confdefs.h <<\_ACEOF
5953 #define HAVE_CONIO 1
5961 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
5972 # ---------------------------------------------------
5973 # Check for readline support/directory (default off)
5974 # ---------------------------------------------------
5975 # this allows you to turn it completely off
5976 # Check whether --enable-readline or --disable-readline was given.
5977 if test "${enable_readline+set}" = set; then
5978 enableval="$enable_readline"
5979 if test x$enableval = xno; then
5986 if test x$support_readline = xyes; then
5988 # Check whether --with-readline or --without-readline was given.
5989 if test "${with_readline+set}" = set; then
5990 withval="$with_readline"
5992 case "$with_readline" in
5995 if test "$with_readline" != "yes"; then
5996 CONS_INC="-I${with_readline}"
5997 CONS_LDFLAGS="-L$with_readline"
5999 with_readline="/usr/include/readline"
6001 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
6002 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6003 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
6004 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
6005 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6006 echo $ECHO_N "(cached) $ECHO_C" >&6
6008 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6009 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6011 # Is the header compilable?
6012 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
6013 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
6014 cat >conftest.$ac_ext <<_ACEOF
6017 cat confdefs.h >>conftest.$ac_ext
6018 cat >>conftest.$ac_ext <<_ACEOF
6019 /* end confdefs.h. */
6020 $ac_includes_default
6021 #include <${with_readline}/readline.h>
6023 rm -f conftest.$ac_objext
6024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6025 (eval $ac_compile) 2>conftest.er1
6027 grep -v '^ *+' conftest.er1 >conftest.err
6029 cat conftest.err >&5
6030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031 (exit $ac_status); } &&
6032 { ac_try='test -z "$ac_c_werror_flag"
6033 || test ! -s conftest.err'
6034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6038 (exit $ac_status); }; } &&
6039 { ac_try='test -s conftest.$ac_objext'
6040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6044 (exit $ac_status); }; }; then
6045 ac_header_compiler=yes
6047 echo "$as_me: failed program was:" >&5
6048 sed 's/^/| /' conftest.$ac_ext >&5
6050 ac_header_compiler=no
6052 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6053 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6054 echo "${ECHO_T}$ac_header_compiler" >&6
6056 # Is the header present?
6057 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
6058 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
6059 cat >conftest.$ac_ext <<_ACEOF
6062 cat confdefs.h >>conftest.$ac_ext
6063 cat >>conftest.$ac_ext <<_ACEOF
6064 /* end confdefs.h. */
6065 #include <${with_readline}/readline.h>
6067 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6068 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6070 grep -v '^ *+' conftest.er1 >conftest.err
6072 cat conftest.err >&5
6073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074 (exit $ac_status); } >/dev/null; then
6075 if test -s conftest.err; then
6076 ac_cpp_err=$ac_c_preproc_warn_flag
6077 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6084 if test -z "$ac_cpp_err"; then
6085 ac_header_preproc=yes
6087 echo "$as_me: failed program was:" >&5
6088 sed 's/^/| /' conftest.$ac_ext >&5
6090 ac_header_preproc=no
6092 rm -f conftest.err conftest.$ac_ext
6093 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6094 echo "${ECHO_T}$ac_header_preproc" >&6
6096 # So? What about this header?
6097 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6099 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6100 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6101 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
6102 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
6103 ac_header_preproc=yes
6106 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
6107 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
6108 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
6109 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
6110 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
6111 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
6112 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&5
6113 echo "$as_me: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
6114 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
6115 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
6116 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
6117 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
6120 ## ------------------------------------------ ##
6121 ## Report this to the AC_PACKAGE_NAME lists. ##
6122 ## ------------------------------------------ ##
6125 sed "s/^/$as_me: WARNING: /" >&2
6128 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
6129 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
6130 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6131 echo $ECHO_N "(cached) $ECHO_C" >&6
6133 eval "$as_ac_Header=\$ac_header_preproc"
6135 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6136 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6139 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6140 cat >>confdefs.h <<\_ACEOF
6141 #define HAVE_READLINE 1
6144 CONS_LIBS="-lreadline -ltermcap"
6149 echo "readline.h not found. readline turned off ..."
6161 # check for standard readline library
6162 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6163 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
6164 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
6165 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6166 echo $ECHO_N "(cached) $ECHO_C" >&6
6168 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
6169 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
6171 # Is the header compilable?
6172 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
6173 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
6174 cat >conftest.$ac_ext <<_ACEOF
6177 cat confdefs.h >>conftest.$ac_ext
6178 cat >>conftest.$ac_ext <<_ACEOF
6179 /* end confdefs.h. */
6180 $ac_includes_default
6181 #include </usr/include/readline/readline.h>
6183 rm -f conftest.$ac_objext
6184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6185 (eval $ac_compile) 2>conftest.er1
6187 grep -v '^ *+' conftest.er1 >conftest.err
6189 cat conftest.err >&5
6190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191 (exit $ac_status); } &&
6192 { ac_try='test -z "$ac_c_werror_flag"
6193 || test ! -s conftest.err'
6194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198 (exit $ac_status); }; } &&
6199 { ac_try='test -s conftest.$ac_objext'
6200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204 (exit $ac_status); }; }; then
6205 ac_header_compiler=yes
6207 echo "$as_me: failed program was:" >&5
6208 sed 's/^/| /' conftest.$ac_ext >&5
6210 ac_header_compiler=no
6212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6213 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6214 echo "${ECHO_T}$ac_header_compiler" >&6
6216 # Is the header present?
6217 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
6218 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
6219 cat >conftest.$ac_ext <<_ACEOF
6222 cat confdefs.h >>conftest.$ac_ext
6223 cat >>conftest.$ac_ext <<_ACEOF
6224 /* end confdefs.h. */
6225 #include </usr/include/readline/readline.h>
6227 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6228 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6230 grep -v '^ *+' conftest.er1 >conftest.err
6232 cat conftest.err >&5
6233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6234 (exit $ac_status); } >/dev/null; then
6235 if test -s conftest.err; then
6236 ac_cpp_err=$ac_c_preproc_warn_flag
6237 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6244 if test -z "$ac_cpp_err"; then
6245 ac_header_preproc=yes
6247 echo "$as_me: failed program was:" >&5
6248 sed 's/^/| /' conftest.$ac_ext >&5
6250 ac_header_preproc=no
6252 rm -f conftest.err conftest.$ac_ext
6253 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6254 echo "${ECHO_T}$ac_header_preproc" >&6
6256 # So? What about this header?
6257 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6259 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6260 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6261 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
6262 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
6263 ac_header_preproc=yes
6266 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
6267 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
6268 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
6269 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
6270 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
6271 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
6272 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
6273 echo "$as_me: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
6274 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
6275 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6276 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
6277 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
6280 ## ------------------------------------------ ##
6281 ## Report this to the AC_PACKAGE_NAME lists. ##
6282 ## ------------------------------------------ ##
6285 sed "s/^/$as_me: WARNING: /" >&2
6288 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
6289 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
6290 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6291 echo $ECHO_N "(cached) $ECHO_C" >&6
6293 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
6295 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
6296 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
6299 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
6300 cat >>confdefs.h <<\_ACEOF
6301 #define HAVE_READLINE 1
6305 CONS_INC="-I/usr/include/readline"
6306 CONS_LIBS="-lreadline -ltermcap"
6310 # Did not find standard library, so try Bacula's default
6311 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
6312 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6313 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
6314 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
6315 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6316 echo $ECHO_N "(cached) $ECHO_C" >&6
6318 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6319 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6321 # Is the header compilable?
6322 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
6323 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
6324 cat >conftest.$ac_ext <<_ACEOF
6327 cat confdefs.h >>conftest.$ac_ext
6328 cat >>conftest.$ac_ext <<_ACEOF
6329 /* end confdefs.h. */
6330 $ac_includes_default
6331 #include <${TOP_DIR}/depkgs/readline/readline.h>
6333 rm -f conftest.$ac_objext
6334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6335 (eval $ac_compile) 2>conftest.er1
6337 grep -v '^ *+' conftest.er1 >conftest.err
6339 cat conftest.err >&5
6340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341 (exit $ac_status); } &&
6342 { ac_try='test -z "$ac_c_werror_flag"
6343 || test ! -s conftest.err'
6344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6348 (exit $ac_status); }; } &&
6349 { ac_try='test -s conftest.$ac_objext'
6350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354 (exit $ac_status); }; }; then
6355 ac_header_compiler=yes
6357 echo "$as_me: failed program was:" >&5
6358 sed 's/^/| /' conftest.$ac_ext >&5
6360 ac_header_compiler=no
6362 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6363 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6364 echo "${ECHO_T}$ac_header_compiler" >&6
6366 # Is the header present?
6367 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
6368 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
6369 cat >conftest.$ac_ext <<_ACEOF
6372 cat confdefs.h >>conftest.$ac_ext
6373 cat >>conftest.$ac_ext <<_ACEOF
6374 /* end confdefs.h. */
6375 #include <${TOP_DIR}/depkgs/readline/readline.h>
6377 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6378 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6380 grep -v '^ *+' conftest.er1 >conftest.err
6382 cat conftest.err >&5
6383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6384 (exit $ac_status); } >/dev/null; then
6385 if test -s conftest.err; then
6386 ac_cpp_err=$ac_c_preproc_warn_flag
6387 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6394 if test -z "$ac_cpp_err"; then
6395 ac_header_preproc=yes
6397 echo "$as_me: failed program was:" >&5
6398 sed 's/^/| /' conftest.$ac_ext >&5
6400 ac_header_preproc=no
6402 rm -f conftest.err conftest.$ac_ext
6403 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6404 echo "${ECHO_T}$ac_header_preproc" >&6
6406 # So? What about this header?
6407 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6409 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6410 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6411 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
6412 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
6413 ac_header_preproc=yes
6416 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
6417 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
6418 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
6419 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
6420 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
6421 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
6422 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
6423 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
6424 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
6425 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6426 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
6427 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
6430 ## ------------------------------------------ ##
6431 ## Report this to the AC_PACKAGE_NAME lists. ##
6432 ## ------------------------------------------ ##
6435 sed "s/^/$as_me: WARNING: /" >&2
6438 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
6439 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
6440 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6441 echo $ECHO_N "(cached) $ECHO_C" >&6
6443 eval "$as_ac_Header=\$ac_header_preproc"
6445 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6446 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6449 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6450 cat >>confdefs.h <<\_ACEOF
6451 #define HAVE_READLINE 1
6455 CONS_INC="-I${TOP_DIR}/depkgs/readline"
6456 CONS_LIBS="-lreadline -lhistory -ltermcap"
6457 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
6458 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
6462 echo "readline.h not found. readline turned off ..."
6488 # Minimal stuff for readline Makefile configuration
6491 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6492 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
6493 if test "${ac_cv_header_stat_broken+set}" = set; then
6494 echo $ECHO_N "(cached) $ECHO_C" >&6
6496 cat >conftest.$ac_ext <<_ACEOF
6499 cat confdefs.h >>conftest.$ac_ext
6500 cat >>conftest.$ac_ext <<_ACEOF
6501 /* end confdefs.h. */
6502 #include <sys/types.h>
6503 #include <sys/stat.h>
6505 #if defined(S_ISBLK) && defined(S_IFDIR)
6506 # if S_ISBLK (S_IFDIR)
6511 #if defined(S_ISBLK) && defined(S_IFCHR)
6512 # if S_ISBLK (S_IFCHR)
6517 #if defined(S_ISLNK) && defined(S_IFREG)
6518 # if S_ISLNK (S_IFREG)
6523 #if defined(S_ISSOCK) && defined(S_IFREG)
6524 # if S_ISSOCK (S_IFREG)
6530 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6531 $EGREP "You lose" >/dev/null 2>&1; then
6532 ac_cv_header_stat_broken=yes
6534 ac_cv_header_stat_broken=no
6539 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6540 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
6541 if test $ac_cv_header_stat_broken = yes; then
6543 cat >>confdefs.h <<\_ACEOF
6544 #define STAT_MACROS_BROKEN 1
6555 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6556 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6557 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6558 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6559 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6560 echo $ECHO_N "(cached) $ECHO_C" >&6
6562 cat >conftest.$ac_ext <<_ACEOF
6565 cat confdefs.h >>conftest.$ac_ext
6566 cat >>conftest.$ac_ext <<_ACEOF
6567 /* end confdefs.h. */
6568 #include <sys/types.h>
6580 rm -f conftest.$ac_objext
6581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6582 (eval $ac_compile) 2>conftest.er1
6584 grep -v '^ *+' conftest.er1 >conftest.err
6586 cat conftest.err >&5
6587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588 (exit $ac_status); } &&
6589 { ac_try='test -z "$ac_c_werror_flag"
6590 || test ! -s conftest.err'
6591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595 (exit $ac_status); }; } &&
6596 { ac_try='test -s conftest.$ac_objext'
6597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601 (exit $ac_status); }; }; then
6602 eval "$as_ac_Header=yes"
6604 echo "$as_me: failed program was:" >&5
6605 sed 's/^/| /' conftest.$ac_ext >&5
6607 eval "$as_ac_Header=no"
6609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6611 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6612 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6613 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6614 cat >>confdefs.h <<_ACEOF
6615 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6618 ac_header_dirent=$ac_hdr; break
6622 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6623 if test $ac_header_dirent = dirent.h; then
6624 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6625 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6626 if test "${ac_cv_search_opendir+set}" = set; then
6627 echo $ECHO_N "(cached) $ECHO_C" >&6
6629 ac_func_search_save_LIBS=$LIBS
6630 ac_cv_search_opendir=no
6631 cat >conftest.$ac_ext <<_ACEOF
6634 cat confdefs.h >>conftest.$ac_ext
6635 cat >>conftest.$ac_ext <<_ACEOF
6636 /* end confdefs.h. */
6638 /* Override any gcc2 internal prototype to avoid an error. */
6642 /* We use char because int might match the return type of a gcc2
6643 builtin and then its argument prototype would still apply. */
6653 rm -f conftest.$ac_objext conftest$ac_exeext
6654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6655 (eval $ac_link) 2>conftest.er1
6657 grep -v '^ *+' conftest.er1 >conftest.err
6659 cat conftest.err >&5
6660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661 (exit $ac_status); } &&
6662 { ac_try='test -z "$ac_c_werror_flag"
6663 || test ! -s conftest.err'
6664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6668 (exit $ac_status); }; } &&
6669 { ac_try='test -s conftest$ac_exeext'
6670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6674 (exit $ac_status); }; }; then
6675 ac_cv_search_opendir="none required"
6677 echo "$as_me: failed program was:" >&5
6678 sed 's/^/| /' conftest.$ac_ext >&5
6681 rm -f conftest.err conftest.$ac_objext \
6682 conftest$ac_exeext conftest.$ac_ext
6683 if test "$ac_cv_search_opendir" = no; then
6684 for ac_lib in dir; do
6685 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6686 cat >conftest.$ac_ext <<_ACEOF
6689 cat confdefs.h >>conftest.$ac_ext
6690 cat >>conftest.$ac_ext <<_ACEOF
6691 /* end confdefs.h. */
6693 /* Override any gcc2 internal prototype to avoid an error. */
6697 /* We use char because int might match the return type of a gcc2
6698 builtin and then its argument prototype would still apply. */
6708 rm -f conftest.$ac_objext conftest$ac_exeext
6709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6710 (eval $ac_link) 2>conftest.er1
6712 grep -v '^ *+' conftest.er1 >conftest.err
6714 cat conftest.err >&5
6715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6716 (exit $ac_status); } &&
6717 { ac_try='test -z "$ac_c_werror_flag"
6718 || test ! -s conftest.err'
6719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6723 (exit $ac_status); }; } &&
6724 { ac_try='test -s conftest$ac_exeext'
6725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6729 (exit $ac_status); }; }; then
6730 ac_cv_search_opendir="-l$ac_lib"
6733 echo "$as_me: failed program was:" >&5
6734 sed 's/^/| /' conftest.$ac_ext >&5
6737 rm -f conftest.err conftest.$ac_objext \
6738 conftest$ac_exeext conftest.$ac_ext
6741 LIBS=$ac_func_search_save_LIBS
6743 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6744 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6745 if test "$ac_cv_search_opendir" != no; then
6746 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6751 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6752 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6753 if test "${ac_cv_search_opendir+set}" = set; then
6754 echo $ECHO_N "(cached) $ECHO_C" >&6
6756 ac_func_search_save_LIBS=$LIBS
6757 ac_cv_search_opendir=no
6758 cat >conftest.$ac_ext <<_ACEOF
6761 cat confdefs.h >>conftest.$ac_ext
6762 cat >>conftest.$ac_ext <<_ACEOF
6763 /* end confdefs.h. */
6765 /* Override any gcc2 internal prototype to avoid an error. */
6769 /* We use char because int might match the return type of a gcc2
6770 builtin and then its argument prototype would still apply. */
6780 rm -f conftest.$ac_objext conftest$ac_exeext
6781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6782 (eval $ac_link) 2>conftest.er1
6784 grep -v '^ *+' conftest.er1 >conftest.err
6786 cat conftest.err >&5
6787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6788 (exit $ac_status); } &&
6789 { ac_try='test -z "$ac_c_werror_flag"
6790 || test ! -s conftest.err'
6791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6795 (exit $ac_status); }; } &&
6796 { ac_try='test -s conftest$ac_exeext'
6797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6801 (exit $ac_status); }; }; then
6802 ac_cv_search_opendir="none required"
6804 echo "$as_me: failed program was:" >&5
6805 sed 's/^/| /' conftest.$ac_ext >&5
6808 rm -f conftest.err conftest.$ac_objext \
6809 conftest$ac_exeext conftest.$ac_ext
6810 if test "$ac_cv_search_opendir" = no; then
6812 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6813 cat >conftest.$ac_ext <<_ACEOF
6816 cat confdefs.h >>conftest.$ac_ext
6817 cat >>conftest.$ac_ext <<_ACEOF
6818 /* end confdefs.h. */
6820 /* Override any gcc2 internal prototype to avoid an error. */
6824 /* We use char because int might match the return type of a gcc2
6825 builtin and then its argument prototype would still apply. */
6835 rm -f conftest.$ac_objext conftest$ac_exeext
6836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6837 (eval $ac_link) 2>conftest.er1
6839 grep -v '^ *+' conftest.er1 >conftest.err
6841 cat conftest.err >&5
6842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6843 (exit $ac_status); } &&
6844 { ac_try='test -z "$ac_c_werror_flag"
6845 || test ! -s conftest.err'
6846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6850 (exit $ac_status); }; } &&
6851 { ac_try='test -s conftest$ac_exeext'
6852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6856 (exit $ac_status); }; }; then
6857 ac_cv_search_opendir="-l$ac_lib"
6860 echo "$as_me: failed program was:" >&5
6861 sed 's/^/| /' conftest.$ac_ext >&5
6864 rm -f conftest.err conftest.$ac_objext \
6865 conftest$ac_exeext conftest.$ac_ext
6868 LIBS=$ac_func_search_save_LIBS
6870 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6871 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6872 if test "$ac_cv_search_opendir" != no; then
6873 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6887 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
6889 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6890 echo "$as_me:$LINENO: checking for $ac_func" >&5
6891 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6892 if eval "test \"\${$as_ac_var+set}\" = set"; then
6893 echo $ECHO_N "(cached) $ECHO_C" >&6
6895 cat >conftest.$ac_ext <<_ACEOF
6898 cat confdefs.h >>conftest.$ac_ext
6899 cat >>conftest.$ac_ext <<_ACEOF
6900 /* end confdefs.h. */
6901 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6902 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6903 #define $ac_func innocuous_$ac_func
6905 /* System header to define __stub macros and hopefully few prototypes,
6906 which can conflict with char $ac_func (); below.
6907 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6908 <limits.h> exists even on freestanding compilers. */
6911 # include <limits.h>
6913 # include <assert.h>
6918 /* Override any gcc2 internal prototype to avoid an error. */
6923 /* We use char because int might match the return type of a gcc2
6924 builtin and then its argument prototype would still apply. */
6926 /* The GNU C library defines this for functions which it implements
6927 to always fail with ENOSYS. Some functions are actually named
6928 something starting with __ and the normal name is an alias. */
6929 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6932 char (*f) () = $ac_func;
6941 return f != $ac_func;
6946 rm -f conftest.$ac_objext conftest$ac_exeext
6947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6948 (eval $ac_link) 2>conftest.er1
6950 grep -v '^ *+' conftest.er1 >conftest.err
6952 cat conftest.err >&5
6953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6954 (exit $ac_status); } &&
6955 { ac_try='test -z "$ac_c_werror_flag"
6956 || test ! -s conftest.err'
6957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961 (exit $ac_status); }; } &&
6962 { ac_try='test -s conftest$ac_exeext'
6963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6967 (exit $ac_status); }; }; then
6968 eval "$as_ac_var=yes"
6970 echo "$as_me: failed program was:" >&5
6971 sed 's/^/| /' conftest.$ac_ext >&5
6973 eval "$as_ac_var=no"
6975 rm -f conftest.err conftest.$ac_objext \
6976 conftest$ac_exeext conftest.$ac_ext
6978 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6979 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6980 if test `eval echo '${'$as_ac_var'}'` = yes; then
6981 cat >>confdefs.h <<_ACEOF
6982 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6990 for ac_func in nanosleep nl_langinfo
6992 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6993 echo "$as_me:$LINENO: checking for $ac_func" >&5
6994 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6995 if eval "test \"\${$as_ac_var+set}\" = set"; then
6996 echo $ECHO_N "(cached) $ECHO_C" >&6
6998 cat >conftest.$ac_ext <<_ACEOF
7001 cat confdefs.h >>conftest.$ac_ext
7002 cat >>conftest.$ac_ext <<_ACEOF
7003 /* end confdefs.h. */
7004 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7005 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7006 #define $ac_func innocuous_$ac_func
7008 /* System header to define __stub macros and hopefully few prototypes,
7009 which can conflict with char $ac_func (); below.
7010 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7011 <limits.h> exists even on freestanding compilers. */
7014 # include <limits.h>
7016 # include <assert.h>
7021 /* Override any gcc2 internal prototype to avoid an error. */
7026 /* We use char because int might match the return type of a gcc2
7027 builtin and then its argument prototype would still apply. */
7029 /* The GNU C library defines this for functions which it implements
7030 to always fail with ENOSYS. Some functions are actually named
7031 something starting with __ and the normal name is an alias. */
7032 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7035 char (*f) () = $ac_func;
7044 return f != $ac_func;
7049 rm -f conftest.$ac_objext conftest$ac_exeext
7050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7051 (eval $ac_link) 2>conftest.er1
7053 grep -v '^ *+' conftest.er1 >conftest.err
7055 cat conftest.err >&5
7056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7057 (exit $ac_status); } &&
7058 { ac_try='test -z "$ac_c_werror_flag"
7059 || test ! -s conftest.err'
7060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7064 (exit $ac_status); }; } &&
7065 { ac_try='test -s conftest$ac_exeext'
7066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7070 (exit $ac_status); }; }; then
7071 eval "$as_ac_var=yes"
7073 echo "$as_me: failed program was:" >&5
7074 sed 's/^/| /' conftest.$ac_ext >&5
7076 eval "$as_ac_var=no"
7078 rm -f conftest.err conftest.$ac_objext \
7079 conftest$ac_exeext conftest.$ac_ext
7081 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7082 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7083 if test `eval echo '${'$as_ac_var'}'` = yes; then
7084 cat >>confdefs.h <<_ACEOF
7085 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7092 for ac_header in varargs.h
7094 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7095 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7096 echo "$as_me:$LINENO: checking for $ac_header" >&5
7097 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7098 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7099 echo $ECHO_N "(cached) $ECHO_C" >&6
7101 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7102 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7104 # Is the header compilable?
7105 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7106 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7107 cat >conftest.$ac_ext <<_ACEOF
7110 cat confdefs.h >>conftest.$ac_ext
7111 cat >>conftest.$ac_ext <<_ACEOF
7112 /* end confdefs.h. */
7113 $ac_includes_default
7114 #include <$ac_header>
7116 rm -f conftest.$ac_objext
7117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7118 (eval $ac_compile) 2>conftest.er1
7120 grep -v '^ *+' conftest.er1 >conftest.err
7122 cat conftest.err >&5
7123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124 (exit $ac_status); } &&
7125 { ac_try='test -z "$ac_c_werror_flag"
7126 || test ! -s conftest.err'
7127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7131 (exit $ac_status); }; } &&
7132 { ac_try='test -s conftest.$ac_objext'
7133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7137 (exit $ac_status); }; }; then
7138 ac_header_compiler=yes
7140 echo "$as_me: failed program was:" >&5
7141 sed 's/^/| /' conftest.$ac_ext >&5
7143 ac_header_compiler=no
7145 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7146 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7147 echo "${ECHO_T}$ac_header_compiler" >&6
7149 # Is the header present?
7150 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7151 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7152 cat >conftest.$ac_ext <<_ACEOF
7155 cat confdefs.h >>conftest.$ac_ext
7156 cat >>conftest.$ac_ext <<_ACEOF
7157 /* end confdefs.h. */
7158 #include <$ac_header>
7160 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7161 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7163 grep -v '^ *+' conftest.er1 >conftest.err
7165 cat conftest.err >&5
7166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7167 (exit $ac_status); } >/dev/null; then
7168 if test -s conftest.err; then
7169 ac_cpp_err=$ac_c_preproc_warn_flag
7170 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7177 if test -z "$ac_cpp_err"; then
7178 ac_header_preproc=yes
7180 echo "$as_me: failed program was:" >&5
7181 sed 's/^/| /' conftest.$ac_ext >&5
7183 ac_header_preproc=no
7185 rm -f conftest.err conftest.$ac_ext
7186 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7187 echo "${ECHO_T}$ac_header_preproc" >&6
7189 # So? What about this header?
7190 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7192 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7193 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7194 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7195 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7196 ac_header_preproc=yes
7199 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7200 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7201 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7202 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7203 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7204 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7205 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7206 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7207 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7208 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7209 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7210 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7213 ## ------------------------------------------ ##
7214 ## Report this to the AC_PACKAGE_NAME lists. ##
7215 ## ------------------------------------------ ##
7218 sed "s/^/$as_me: WARNING: /" >&2
7221 echo "$as_me:$LINENO: checking for $ac_header" >&5
7222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7223 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7224 echo $ECHO_N "(cached) $ECHO_C" >&6
7226 eval "$as_ac_Header=\$ac_header_preproc"
7228 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7229 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7232 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7233 cat >>confdefs.h <<_ACEOF
7234 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7242 # End of readline/conio stuff
7243 # -----------------------------------------------------------------------
7245 # -----------------------------------------------------------------------
7246 # Check for Python support
7248 echo "$as_me:$LINENO: checking for Python support" >&5
7249 echo $ECHO_N "checking for Python support... $ECHO_C" >&6
7251 # Check whether --with-python or --without-python was given.
7252 if test "${with_python+set}" = set; then
7253 withval="$with_python"
7257 if test "$withval" != "no"; then
7258 if test "$withval" = "yes"; then
7259 if test -f /usr/include/python2.2/Python.h; then
7260 PYTHON_INCDIR=-I/usr/include/python2.2
7261 PYTHON_LIBS="-L/usr/lib/python2.2/config -lpython2.2 -lutil -ldl"
7262 elif test -f /usr/include/python2.3/Python.h; then
7263 PYTHON_INCDIR=-I/usr/include/python2.3
7264 PYTHON_LIBS="-L/usr/lib/python2.3/config -lpython2.3 -lutil -ldl"
7265 elif test -f /usr/include/python2.4/Python.h; then
7266 PYTHON_INCDIR=-I/usr/include/python2.4
7267 PYTHON_LIBS="-L/usr/lib/python2.4/config -lpython2.4 -lutil -ldl"
7268 elif test -f $prefix/include/Python.h; then
7269 PYTHON_INCDIR=-I$prefix/include
7270 PYTHON_LIBS="-L$prefix/lib/config -lpython -lutil -ldl"
7272 echo "$as_me:$LINENO: result: no" >&5
7273 echo "${ECHO_T}no" >&6
7274 { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
7275 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
7276 { (exit 1); exit 1; }; }
7279 if test -f $withval/Python.h; then
7280 PYTHON_INCDIR=-I$withval
7281 PYTHON_LIBS="-L$withval/config -lpython -lutil -ldl"
7282 elif test -f $withval/include/Python.h; then
7283 PYTHON_INCDIR=-I$withval/include
7284 PYTHON_LIBS="-L$withval/lib/config -lpython -lutil -ldl"
7286 echo "$as_me:$LINENO: result: no" >&5
7287 echo "${ECHO_T}no" >&6
7288 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
7289 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
7290 { (exit 1); exit 1; }; }
7293 cat >>confdefs.h <<\_ACEOF
7294 #define HAVE_PYTHON 1
7297 echo "$as_me:$LINENO: result: yes" >&5
7298 echo "${ECHO_T}yes" >&6
7302 echo "$as_me:$LINENO: result: no" >&5
7303 echo "${ECHO_T}no" >&6
7308 echo "$as_me:$LINENO: result: no" >&5
7309 echo "${ECHO_T}no" >&6
7316 # -------------------------------------------
7317 # check for cdrecord writer location
7318 # get scsibus,target,lun
7319 # -------------------------------------------
7321 if test ! x$CDRECORD = x ; then
7322 CDSTL=`${CDRECORD} -scanbus 2>/dev/null | grep CD-RW | ${AWK} '{print $1}'`
7323 if test x${CDSTL} = x ; then
7324 CDSTL=`${CDRECORD} -scanbus 2>/dev/null | grep CD+RW | ${AWK} '{print $1}'`
7326 if test x${CDSTL} = x ; then
7333 # ---------------------------------------------------
7334 # Check for GMP support/directory
7335 # ---------------------------------------------------
7339 # [ --with-gmp[=DIR] Specify gmp library directory],
7341 # case "$with_gmp" in
7344 # if test "$with_gmp" != "yes"; then
7345 # GMP_INC="-I$with_gmp"
7347 # GMP_LDFLAGS="-L$with_gmp"
7349 # with_gmp="/usr/include"
7351 # AC_CHECK_HEADER($with_gmp/gmp.h,
7352 # [ AC_MSG_RESULT(yes)
7353 # AC_DEFINE(HAVE_GMP)
7357 # [ AC_MSG_ERROR([*** gmp library missing])
7363 # # check for standard gmp library
7364 # AC_CHECK_HEADER(/usr/include/gmp.h,
7365 # [ AC_MSG_RESULT(yes)
7366 # AC_DEFINE(HAVE_GMP)
7371 # # Did not find standard library, so use our own
7372 # AC_MSG_RESULT(yes)
7373 # AC_DEFINE(HAVE_GMP)
7376 # GMP_INC="-I${TOP_DIR}/depkgs/gmp"
7378 # GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
7379 # GMP_SRC="${TOP_DIR}/depkgs/gmp"
7385 #AC_SUBST(GMP_LDFLAGS)
7389 # -----------------------------------------------------------------------
7392 # ---------------------------------------------------
7393 # Check for CWEB support/directory
7394 # ---------------------------------------------------
7399 # [ --with-cweb[=DIR] Specify cweb library directory],
7401 # case "$with_cweb" in
7404 # if test "$with_cweb" != "yes"; then
7405 # CWEB_INC="-I$with_cweb"
7406 # CWEB_LIBS="-lcweb"
7407 # CWEB_LDFLAGS="-L$with_cweb"
7409 # with_cweb="/usr/include"
7411 # AC_CHECK_HEADER($with_cweb/cweb.h,
7412 # [ AC_MSG_RESULT(yes)
7413 # AC_DEFINE(HAVE_CWEB)
7414 # CWEB_LIBS="-lcweb"
7417 # [ AC_MSG_ERROR([*** cweb library missing])
7423 # # check for standard cweb library
7424 # AC_CHECK_HEADER(/usr/include/cweb.h,
7425 # [ AC_MSG_RESULT(yes)
7426 # AC_DEFINE(HAVE_CWEB)
7429 # CWEB_LIBS="-lcweb"
7431 # # Did not find starndard library, so use our own
7432 # AC_MSG_RESULT(yes)
7433 # AC_DEFINE(HAVE_CWEB)
7436 # CWEB=${TOP_DIR}/depkgs/cweb
7437 # CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
7438 # CWEB_LIBS="-lcweb"
7439 # CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
7440 # CWEB_SRC="${TOP_DIR}/depkgs/cweb"
7446 #AC_SUBST(CWEB_LIBS)
7447 #AC_SUBST(CWEB_LDFLAGS)
7451 # -----------------------------------------------------------------------
7454 # Find where sockets are (especially for Solaris)
7455 # Do this before the TCP Wrappers test since tcp wrappers
7456 # uses the socket library and some linkers are stupid.
7458 echo "$as_me:$LINENO: checking for socket" >&5
7459 echo $ECHO_N "checking for socket... $ECHO_C" >&6
7460 if test "${ac_cv_func_socket+set}" = set; then
7461 echo $ECHO_N "(cached) $ECHO_C" >&6
7463 cat >conftest.$ac_ext <<_ACEOF
7466 cat confdefs.h >>conftest.$ac_ext
7467 cat >>conftest.$ac_ext <<_ACEOF
7468 /* end confdefs.h. */
7469 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
7470 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7471 #define socket innocuous_socket
7473 /* System header to define __stub macros and hopefully few prototypes,
7474 which can conflict with char socket (); below.
7475 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7476 <limits.h> exists even on freestanding compilers. */
7479 # include <limits.h>
7481 # include <assert.h>
7486 /* Override any gcc2 internal prototype to avoid an error. */
7491 /* We use char because int might match the return type of a gcc2
7492 builtin and then its argument prototype would still apply. */
7494 /* The GNU C library defines this for functions which it implements
7495 to always fail with ENOSYS. Some functions are actually named
7496 something starting with __ and the normal name is an alias. */
7497 #if defined (__stub_socket) || defined (__stub___socket)
7500 char (*f) () = socket;
7514 rm -f conftest.$ac_objext conftest$ac_exeext
7515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7516 (eval $ac_link) 2>conftest.er1
7518 grep -v '^ *+' conftest.er1 >conftest.err
7520 cat conftest.err >&5
7521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7522 (exit $ac_status); } &&
7523 { ac_try='test -z "$ac_c_werror_flag"
7524 || test ! -s conftest.err'
7525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7529 (exit $ac_status); }; } &&
7530 { ac_try='test -s conftest$ac_exeext'
7531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7535 (exit $ac_status); }; }; then
7536 ac_cv_func_socket=yes
7538 echo "$as_me: failed program was:" >&5
7539 sed 's/^/| /' conftest.$ac_ext >&5
7541 ac_cv_func_socket=no
7543 rm -f conftest.err conftest.$ac_objext \
7544 conftest$ac_exeext conftest.$ac_ext
7546 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
7547 echo "${ECHO_T}$ac_cv_func_socket" >&6
7548 if test $ac_cv_func_socket = yes; then
7549 echo "$as_me:$LINENO: result: using libc's socket" >&5
7550 echo "${ECHO_T}using libc's socket" >&6
7553 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
7554 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
7555 if test "${ac_cv_lib_xnet_socket+set}" = set; then
7556 echo $ECHO_N "(cached) $ECHO_C" >&6
7558 ac_check_lib_save_LIBS=$LIBS
7560 cat >conftest.$ac_ext <<_ACEOF
7563 cat confdefs.h >>conftest.$ac_ext
7564 cat >>conftest.$ac_ext <<_ACEOF
7565 /* end confdefs.h. */
7567 /* Override any gcc2 internal prototype to avoid an error. */
7571 /* We use char because int might match the return type of a gcc2
7572 builtin and then its argument prototype would still apply. */
7582 rm -f conftest.$ac_objext conftest$ac_exeext
7583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7584 (eval $ac_link) 2>conftest.er1
7586 grep -v '^ *+' conftest.er1 >conftest.err
7588 cat conftest.err >&5
7589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7590 (exit $ac_status); } &&
7591 { ac_try='test -z "$ac_c_werror_flag"
7592 || test ! -s conftest.err'
7593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7597 (exit $ac_status); }; } &&
7598 { ac_try='test -s conftest$ac_exeext'
7599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7603 (exit $ac_status); }; }; then
7604 ac_cv_lib_xnet_socket=yes
7606 echo "$as_me: failed program was:" >&5
7607 sed 's/^/| /' conftest.$ac_ext >&5
7609 ac_cv_lib_xnet_socket=no
7611 rm -f conftest.err conftest.$ac_objext \
7612 conftest$ac_exeext conftest.$ac_ext
7613 LIBS=$ac_check_lib_save_LIBS
7615 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
7616 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
7617 if test $ac_cv_lib_xnet_socket = yes; then
7618 cat >>confdefs.h <<_ACEOF
7619 #define HAVE_LIBXNET 1
7627 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
7628 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
7629 if test "${ac_cv_lib_socket_socket+set}" = set; then
7630 echo $ECHO_N "(cached) $ECHO_C" >&6
7632 ac_check_lib_save_LIBS=$LIBS
7633 LIBS="-lsocket $LIBS"
7634 cat >conftest.$ac_ext <<_ACEOF
7637 cat confdefs.h >>conftest.$ac_ext
7638 cat >>conftest.$ac_ext <<_ACEOF
7639 /* end confdefs.h. */
7641 /* Override any gcc2 internal prototype to avoid an error. */
7645 /* We use char because int might match the return type of a gcc2
7646 builtin and then its argument prototype would still apply. */
7656 rm -f conftest.$ac_objext conftest$ac_exeext
7657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7658 (eval $ac_link) 2>conftest.er1
7660 grep -v '^ *+' conftest.er1 >conftest.err
7662 cat conftest.err >&5
7663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7664 (exit $ac_status); } &&
7665 { ac_try='test -z "$ac_c_werror_flag"
7666 || test ! -s conftest.err'
7667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7671 (exit $ac_status); }; } &&
7672 { ac_try='test -s conftest$ac_exeext'
7673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7677 (exit $ac_status); }; }; then
7678 ac_cv_lib_socket_socket=yes
7680 echo "$as_me: failed program was:" >&5
7681 sed 's/^/| /' conftest.$ac_ext >&5
7683 ac_cv_lib_socket_socket=no
7685 rm -f conftest.err conftest.$ac_objext \
7686 conftest$ac_exeext conftest.$ac_ext
7687 LIBS=$ac_check_lib_save_LIBS
7689 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
7690 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
7691 if test $ac_cv_lib_socket_socket = yes; then
7692 cat >>confdefs.h <<_ACEOF
7693 #define HAVE_LIBSOCKET 1
7696 LIBS="-lsocket $LIBS"
7701 echo "$as_me:$LINENO: checking for socket in -linet" >&5
7702 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
7703 if test "${ac_cv_lib_inet_socket+set}" = set; then
7704 echo $ECHO_N "(cached) $ECHO_C" >&6
7706 ac_check_lib_save_LIBS=$LIBS
7708 cat >conftest.$ac_ext <<_ACEOF
7711 cat confdefs.h >>conftest.$ac_ext
7712 cat >>conftest.$ac_ext <<_ACEOF
7713 /* end confdefs.h. */
7715 /* Override any gcc2 internal prototype to avoid an error. */
7719 /* We use char because int might match the return type of a gcc2
7720 builtin and then its argument prototype would still apply. */
7730 rm -f conftest.$ac_objext conftest$ac_exeext
7731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7732 (eval $ac_link) 2>conftest.er1
7734 grep -v '^ *+' conftest.er1 >conftest.err
7736 cat conftest.err >&5
7737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7738 (exit $ac_status); } &&
7739 { ac_try='test -z "$ac_c_werror_flag"
7740 || test ! -s conftest.err'
7741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7745 (exit $ac_status); }; } &&
7746 { ac_try='test -s conftest$ac_exeext'
7747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7751 (exit $ac_status); }; }; then
7752 ac_cv_lib_inet_socket=yes
7754 echo "$as_me: failed program was:" >&5
7755 sed 's/^/| /' conftest.$ac_ext >&5
7757 ac_cv_lib_inet_socket=no
7759 rm -f conftest.err conftest.$ac_objext \
7760 conftest$ac_exeext conftest.$ac_ext
7761 LIBS=$ac_check_lib_save_LIBS
7763 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
7764 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
7765 if test $ac_cv_lib_inet_socket = yes; then
7766 cat >>confdefs.h <<_ACEOF
7767 #define HAVE_LIBINET 1
7778 # -----------------------------------------------------------
7779 # Check whether user wants TCP wrappers support (default off)
7780 # -----------------------------------------------------------
7783 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
7784 if test "${with_tcp_wrappers+set}" = set; then
7785 withval="$with_tcp_wrappers"
7787 if test "x$withval" != "xno" ; then
7789 LIBS="$saved_LIBS -lwrap"
7790 echo "$as_me:$LINENO: checking for libwrap" >&5
7791 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
7792 cat >conftest.$ac_ext <<_ACEOF
7795 cat confdefs.h >>conftest.$ac_ext
7796 cat >>conftest.$ac_ext <<_ACEOF
7797 /* end confdefs.h. */
7799 int deny_severity = 0;
7800 int allow_severity = 0;
7801 struct request_info *req;
7810 rm -f conftest.$ac_objext conftest$ac_exeext
7811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7812 (eval $ac_link) 2>conftest.er1
7814 grep -v '^ *+' conftest.er1 >conftest.err
7816 cat conftest.err >&5
7817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7818 (exit $ac_status); } &&
7819 { ac_try='test -z "$ac_c_werror_flag"
7820 || test ! -s conftest.err'
7821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825 (exit $ac_status); }; } &&
7826 { ac_try='test -s conftest$ac_exeext'
7827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831 (exit $ac_status); }; }; then
7833 echo "$as_me:$LINENO: result: yes" >&5
7834 echo "${ECHO_T}yes" >&6
7835 cat >>confdefs.h <<\_ACEOF
7836 #define HAVE_LIBWRAP 1
7842 echo "$as_me: failed program was:" >&5
7843 sed 's/^/| /' conftest.$ac_ext >&5
7846 LIBS="$saved_LIBS -lwrap -lnsl"
7847 cat >conftest.$ac_ext <<_ACEOF
7850 cat confdefs.h >>conftest.$ac_ext
7851 cat >>conftest.$ac_ext <<_ACEOF
7852 /* end confdefs.h. */
7854 int deny_severity = 0;
7855 int allow_severity = 0;
7856 struct request_info *req;
7865 rm -f conftest.$ac_objext conftest$ac_exeext
7866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7867 (eval $ac_link) 2>conftest.er1
7869 grep -v '^ *+' conftest.er1 >conftest.err
7871 cat conftest.err >&5
7872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7873 (exit $ac_status); } &&
7874 { ac_try='test -z "$ac_c_werror_flag"
7875 || test ! -s conftest.err'
7876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7880 (exit $ac_status); }; } &&
7881 { ac_try='test -s conftest$ac_exeext'
7882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7886 (exit $ac_status); }; }; then
7888 echo "$as_me:$LINENO: result: yes" >&5
7889 echo "${ECHO_T}yes" >&6
7890 cat >>confdefs.h <<\_ACEOF
7891 #define HAVE_LIBWRAP 1
7897 echo "$as_me: failed program was:" >&5
7898 sed 's/^/| /' conftest.$ac_ext >&5
7900 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
7901 echo "$as_me: error: *** libwrap missing" >&2;}
7902 { (exit 1); exit 1; }; }
7905 rm -f conftest.err conftest.$ac_objext \
7906 conftest$ac_exeext conftest.$ac_ext
7909 rm -f conftest.err conftest.$ac_objext \
7910 conftest$ac_exeext conftest.$ac_ext
7916 # ------------------------------------------
7917 # Where to place working dir
7918 # ------------------------------------------
7919 working_dir=`eval echo ${prefix}/var/bacula/working`
7921 # Check whether --with-working-dir or --without-working-dir was given.
7922 if test "${with_working_dir+set}" = set; then
7923 withval="$with_working_dir"
7925 if test "x$withval" != "xno" ; then
7926 working_dir=$withval
7935 # ------------------------------------------
7936 # Where to place scriptdir (script files)
7937 # ------------------------------------------
7938 scriptdir=`eval echo ${sysconfdir}`
7940 # Check whether --with-scriptdir or --without-scriptdir was given.
7941 if test "${with_scriptdir+set}" = set; then
7942 withval="$with_scriptdir"
7944 if test "x$withval" != "xno" ; then
7954 # ------------------------------------------
7955 # Where to send dump email
7956 # ------------------------------------------
7957 dump_email=root@localhost
7959 # Check whether --with-dump-email or --without-dump-email was given.
7960 if test "${with_dump_email+set}" = set; then
7961 withval="$with_dump_email"
7963 if test "x$withval" != "xno" ; then
7972 # ------------------------------------------
7973 # Where to send job email
7974 # ------------------------------------------
7975 job_email=root@localhost
7977 # Check whether --with-job-email or --without-job-email was given.
7978 if test "${with_job_email+set}" = set; then
7979 withval="$with_job_email"
7981 if test "x$withval" != "xno" ; then
7990 # ------------------------------------------
7991 # Where to find smtp host
7992 # ------------------------------------------
7995 # Check whether --with-smtp_host or --without-smtp_host was given.
7996 if test "${with_smtp_host+set}" = set; then
7997 withval="$with_smtp_host"
7999 if test "x$withval" != "xno" ; then
8009 # ------------------------------------
8010 # Where to place pid files
8011 # ------------------------------------
8014 # Check whether --with-pid-dir or --without-pid-dir was given.
8015 if test "${with_pid_dir+set}" = set; then
8016 withval="$with_pid_dir"
8018 if test "x$withval" != "xno" ; then
8025 cat >>confdefs.h <<_ACEOF
8026 #define _PATH_BACULA_PIDDIR "$piddir"
8032 # ------------------------------------
8033 # Where to place subsys "lock file"
8034 # ------------------------------------
8035 subsysdir=/var/run/subsys
8037 # Check whether --with-subsys-dir or --without-subsys-dir was given.
8038 if test "${with_subsys_dir+set}" = set; then
8039 withval="$with_subsys_dir"
8041 if test "x$withval" != "xno" ; then
8052 # ------------------------------------
8053 # Where to start assigning ports
8054 # ------------------------------------
8057 # Check whether --with-baseport or --without-baseport was given.
8058 if test "${with_baseport+set}" = set; then
8059 withval="$with_baseport"
8061 if test "x$withval" != "xno" ; then
8069 dir_port=`expr $baseport`
8070 fd_port=`expr $baseport + 1`
8071 sd_port=`expr $fd_port + 1`
8078 # ------------------------------------------
8079 # Generate passwords
8080 # ------------------------------------------
8083 # Check whether --with-dir-password or --without-dir-password was given.
8084 if test "${with_dir_password+set}" = set; then
8085 withval="$with_dir_password"
8087 if test "x$withval" != "xno" ; then
8088 dir_password=$withval
8094 if test "x$dir_password" = "x" ; then
8095 if test "x$OPENSSL" = "xnone" ; then
8096 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
8097 key=`autoconf/randpass 33`
8099 key=`openssl rand -base64 33`
8106 # Check whether --with-fd-password or --without-fd-password was given.
8107 if test "${with_fd_password+set}" = set; then
8108 withval="$with_fd_password"
8110 if test "x$withval" != "xno" ; then
8111 fd_password=$withval
8117 if test "x$fd_password" = "x" ; then
8118 if test "x$OPENSSL" = "xnone" ; then
8119 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
8120 key=`autoconf/randpass 37`
8122 key=`openssl rand -base64 33`
8129 # Check whether --with-sd-password or --without-sd-password was given.
8130 if test "${with_sd_password+set}" = set; then
8131 withval="$with_sd_password"
8133 if test "x$withval" != "xno" ; then
8134 sd_password=$withval
8140 if test "x$sd_password" = "x" ; then
8141 if test "x$OPENSSL" = "xnone" ; then
8142 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
8143 key=`autoconf/randpass 41`
8145 key=`openssl rand -base64 33`
8152 # Check whether --with-mon-dir-password or --without-mon-dir-password was given.
8153 if test "${with_mon_dir_password+set}" = set; then
8154 withval="$with_mon_dir_password"
8156 if test "x$withval" != "xno" ; then
8157 mon_dir_password=$withval
8163 if test "x$mon_dir_password" = "x" ; then
8164 if test "x$OPENSSL" = "xnone" ; then
8165 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
8166 key=`autoconf/randpass 33`
8168 key=`openssl rand -base64 33`
8170 mon_dir_password=$key
8175 # Check whether --with-mon-fd-password or --without-mon-fd-password was given.
8176 if test "${with_mon_fd_password+set}" = set; then
8177 withval="$with_mon_fd_password"
8179 if test "x$withval" != "xno" ; then
8180 mon_fd_password=$withval
8186 if test "x$mon_fd_password" = "x" ; then
8187 if test "x$OPENSSL" = "xnone" ; then
8188 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
8189 key=`autoconf/randpass 37`
8191 key=`openssl rand -base64 33`
8193 mon_fd_password=$key
8198 # Check whether --with-mon-sd-password or --without-mon-sd-password was given.
8199 if test "${with_mon_sd_password+set}" = set; then
8200 withval="$with_mon_sd_password"
8202 if test "x$withval" != "xno" ; then
8203 mon_sd_password=$withval
8209 if test "x$mon_sd_password" = "x" ; then
8210 if test "x$OPENSSL" = "xnone" ; then
8211 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
8212 key=`autoconf/randpass 41`
8214 key=`openssl rand -base64 33`
8216 mon_sd_password=$key
8226 # -------------------------------------------------------------------------
8227 # Set variables for bimagemgr installation
8228 # -------------------------------------------------------------------------
8229 bimagemgr_cgidir=/var/www/cgi-bin
8231 # Check whether --with-bimagemgr-cgidir or --without-bimagemgr-cgidir was given.
8232 if test "${with_bimagemgr_cgidir+set}" = set; then
8233 withval="$with_bimagemgr_cgidir"
8235 if test "x$withval" != "xno" ; then
8236 bimagemgr_cgidir=$withval
8242 bimagemgr_docdir=/var/www/html
8244 # Check whether --with-bimagemgr-docdir or --without-bimagemgr-docdir was given.
8245 if test "${with_bimagemgr_docdir+set}" = set; then
8246 withval="$with_bimagemgr_docdir"
8248 if test "x$withval" != "xno" ; then
8249 bimagemgr_docdir=$withval
8255 bimagemgr_binowner=root
8257 # Check whether --with-bimagemgr-binowner or --without-bimagemgr-binowner was given.
8258 if test "${with_bimagemgr_binowner+set}" = set; then
8259 withval="$with_bimagemgr_binowner"
8261 if test "x$withval" != "xno" ; then
8262 bimagemgr_binowner=$withval
8268 bimagemgr_bingroup=root
8270 # Check whether --with-bimagemgr-bingroup or --without-bimagemgr-bingroup was given.
8271 if test "${with_bimagemgr_bingroup+set}" = set; then
8272 withval="$with_bimagemgr_bingroup"
8274 if test "x$withval" != "xno" ; then
8275 bimagemgr_bingroup=$withval
8281 bimagemgr_dataowner=apache
8283 # Check whether --with-bimagemgr-dataowner or --without-bimagemgr-dataowner was given.
8284 if test "${with_bimagemgr_dataowner+set}" = set; then
8285 withval="$with_bimagemgr_dataowner"
8287 if test "x$withval" != "xno" ; then
8288 bimagemgr_dataowner=$withval
8294 bimagemgr_datagroup=apache
8296 # Check whether --with-bimagemgr-datagroup or --without-bimagemgr-datagroup was given.
8297 if test "${with_bimagemgr_datagroup+set}" = set; then
8298 withval="$with_bimagemgr_datagroup"
8300 if test "x$withval" != "xno" ; then
8301 bimagemgr_datagroup=$withval
8315 # Handle users and groups for each daemon
8319 # Check whether --with-dir_user or --without-dir_user was given.
8320 if test "${with_dir_user+set}" = set; then
8321 withval="$with_dir_user"
8323 if test "x$withval" != "x" ; then
8332 # Check whether --with-dir_group or --without-dir_group was given.
8333 if test "${with_dir_group+set}" = set; then
8334 withval="$with_dir_group"
8336 if test "x$withval" != "x" ; then
8345 # Check whether --with-sd_user or --without-sd_user was given.
8346 if test "${with_sd_user+set}" = set; then
8347 withval="$with_sd_user"
8349 if test "x$withval" != "x" ; then
8358 # Check whether --with-sd_group or --without-sd_group was given.
8359 if test "${with_sd_group+set}" = set; then
8360 withval="$with_sd_group"
8362 if test "x$withval" != "x" ; then
8371 # Check whether --with-fd_user or --without-fd_user was given.
8372 if test "${with_fd_user+set}" = set; then
8373 withval="$with_fd_user"
8375 if test "x$withval" != "x" ; then
8384 # Check whether --with-fd_group or --without-fd_group was given.
8385 if test "${with_fd_group+set}" = set; then
8386 withval="$with_fd_group"
8388 if test "x$withval" != "x" ; then
8406 # allow setting default executable permissions
8410 # Check whether --with-sbin-perm or --without-sbin-perm was given.
8411 if test "${with_sbin_perm+set}" = set; then
8412 withval="$with_sbin_perm"
8414 if test "x$withval" != "x" ; then
8423 # ------------------------------------------------
8424 # Bacula check for various SQL database engines
8425 # ------------------------------------------------
8428 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
8429 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
8431 # Check whether --with-postgresql or --without-postgresql was given.
8432 if test "${with_postgresql+set}" = set; then
8433 withval="$with_postgresql"
8435 if test "$withval" != "no"; then
8436 if test "$db_found" = "yes"; then
8437 echo "$as_me:$LINENO: result: error" >&5
8438 echo "${ECHO_T}error" >&6
8439 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
8440 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
8441 { (exit 1); exit 1; }; };
8443 if test "$withval" = "yes"; then
8444 if test -f /usr/local/include/libpq-fe.h; then
8445 POSTGRESQL_INCDIR=/usr/local/include
8446 POSTGRESQL_LIBDIR=/usr/local/lib
8447 POSTGRESQL_BINDIR=/usr/local/bin
8448 elif test -f /usr/include/libpq-fe.h; then
8449 POSTGRESQL_INCDIR=/usr/include
8450 POSTGRESQL_LIBDIR=/usr/lib
8451 POSTGRESQL_BINDIR=/usr/bin
8452 elif test -f /usr/include/pgsql/libpq-fe.h; then
8453 POSTGRESQL_INCDIR=/usr/include/pgsql
8454 POSTGRESQL_LIBDIR=/usr/lib/pgsql
8455 POSTGRESQL_BINDIR=/usr/bin
8456 elif test -f /usr/include/postgresql/libpq-fe.h; then
8457 POSTGRESQL_INCDIR=/usr/include/postgresql
8458 POSTGRESQL_LIBDIR=/usr/lib/postgresql
8459 POSTGRESQL_BINDIR=/usr/bin
8461 echo "$as_me:$LINENO: result: no" >&5
8462 echo "${ECHO_T}no" >&6
8463 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
8464 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
8465 { (exit 1); exit 1; }; }
8467 elif test -f $withval/include/libpq-fe.h; then
8468 POSTGRESQL_INCDIR=$withval/include
8469 POSTGRESQL_LIBDIR=$withval/lib
8470 POSTGRESQL_BINDIR=$withval/bin
8471 elif test -f $withval/include/postgresql/libpq-fe.h; then
8472 POSTGRESQL_INCDIR=$withval/include/postgresql
8473 POSTGRESQL_LIBDIR=$withval/lib
8474 POSTGRESQL_BINDIR=$withval/bin
8476 echo "$as_me:$LINENO: result: no" >&5
8477 echo "${ECHO_T}no" >&6
8478 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
8479 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
8480 { (exit 1); exit 1; }; }
8482 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
8483 echo "$as_me:$LINENO: checking for crypt" >&5
8484 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
8485 if test "${ac_cv_func_crypt+set}" = set; then
8486 echo $ECHO_N "(cached) $ECHO_C" >&6
8488 cat >conftest.$ac_ext <<_ACEOF
8491 cat confdefs.h >>conftest.$ac_ext
8492 cat >>conftest.$ac_ext <<_ACEOF
8493 /* end confdefs.h. */
8494 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
8495 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8496 #define crypt innocuous_crypt
8498 /* System header to define __stub macros and hopefully few prototypes,
8499 which can conflict with char crypt (); below.
8500 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8501 <limits.h> exists even on freestanding compilers. */
8504 # include <limits.h>
8506 # include <assert.h>
8511 /* Override any gcc2 internal prototype to avoid an error. */
8516 /* We use char because int might match the return type of a gcc2
8517 builtin and then its argument prototype would still apply. */
8519 /* The GNU C library defines this for functions which it implements
8520 to always fail with ENOSYS. Some functions are actually named
8521 something starting with __ and the normal name is an alias. */
8522 #if defined (__stub_crypt) || defined (__stub___crypt)
8525 char (*f) () = crypt;
8539 rm -f conftest.$ac_objext conftest$ac_exeext
8540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8541 (eval $ac_link) 2>conftest.er1
8543 grep -v '^ *+' conftest.er1 >conftest.err
8545 cat conftest.err >&5
8546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547 (exit $ac_status); } &&
8548 { ac_try='test -z "$ac_c_werror_flag"
8549 || test ! -s conftest.err'
8550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8554 (exit $ac_status); }; } &&
8555 { ac_try='test -s conftest$ac_exeext'
8556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560 (exit $ac_status); }; }; then
8561 ac_cv_func_crypt=yes
8563 echo "$as_me: failed program was:" >&5
8564 sed 's/^/| /' conftest.$ac_ext >&5
8568 rm -f conftest.err conftest.$ac_objext \
8569 conftest$ac_exeext conftest.$ac_ext
8571 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
8572 echo "${ECHO_T}$ac_cv_func_crypt" >&6
8573 if test $ac_cv_func_crypt = yes; then
8576 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
8577 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
8578 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
8579 echo $ECHO_N "(cached) $ECHO_C" >&6
8581 ac_check_lib_save_LIBS=$LIBS
8582 LIBS="-lcrypt $LIBS"
8583 cat >conftest.$ac_ext <<_ACEOF
8586 cat confdefs.h >>conftest.$ac_ext
8587 cat >>conftest.$ac_ext <<_ACEOF
8588 /* end confdefs.h. */
8590 /* Override any gcc2 internal prototype to avoid an error. */
8594 /* We use char because int might match the return type of a gcc2
8595 builtin and then its argument prototype would still apply. */
8605 rm -f conftest.$ac_objext conftest$ac_exeext
8606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8607 (eval $ac_link) 2>conftest.er1
8609 grep -v '^ *+' conftest.er1 >conftest.err
8611 cat conftest.err >&5
8612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8613 (exit $ac_status); } &&
8614 { ac_try='test -z "$ac_c_werror_flag"
8615 || test ! -s conftest.err'
8616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620 (exit $ac_status); }; } &&
8621 { ac_try='test -s conftest$ac_exeext'
8622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626 (exit $ac_status); }; }; then
8627 ac_cv_lib_crypt_crypt=yes
8629 echo "$as_me: failed program was:" >&5
8630 sed 's/^/| /' conftest.$ac_ext >&5
8632 ac_cv_lib_crypt_crypt=no
8634 rm -f conftest.err conftest.$ac_objext \
8635 conftest$ac_exeext conftest.$ac_ext
8636 LIBS=$ac_check_lib_save_LIBS
8638 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
8639 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
8640 if test $ac_cv_lib_crypt_crypt = yes; then
8641 POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
8646 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
8647 SQL_LFLAGS=$POSTGRESQL_LFLAGS
8648 SQL_BINDIR=$POSTGRESQL_BINDIR
8649 cat >>confdefs.h <<\_ACEOF
8650 #define HAVE_POSTGRESQL 1
8653 echo "$as_me:$LINENO: result: yes" >&5
8654 echo "${ECHO_T}yes" >&6
8656 support_postgresql=yes
8660 echo "$as_me:$LINENO: result: no" >&5
8661 echo "${ECHO_T}no" >&6
8666 echo "$as_me:$LINENO: result: no" >&5
8667 echo "${ECHO_T}no" >&6
8678 echo "$as_me:$LINENO: checking for MySQL support" >&5
8679 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
8681 # Check whether --with-mysql or --without-mysql was given.
8682 if test "${with_mysql+set}" = set; then
8683 withval="$with_mysql"
8685 if test "$withval" != "no"; then
8686 if test "$withval" = "yes"; then
8687 if test -f /usr/local/mysql/include/mysql/mysql.h; then
8688 MYSQL_INCDIR=/usr/local/mysql/include/mysql
8689 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
8690 MYSQL_BINDIR=/usr/local/mysql/bin
8691 elif test -f /usr/include/mysql/mysql.h; then
8692 MYSQL_INCDIR=/usr/include/mysql
8693 MYSQL_LIBDIR=/usr/lib/mysql
8694 MYSQL_BINDIR=/usr/bin
8695 elif test -f /usr/include/mysql.h; then
8696 MYSQL_INCDIR=/usr/include
8697 MYSQL_LIBDIR=/usr/lib
8698 MYSQL_BINDIR=/usr/bin
8699 elif test -f /usr/local/include/mysql/mysql.h; then
8700 MYSQL_INCDIR=/usr/local/include/mysql
8701 MYSQL_LIBDIR=/usr/local/lib/mysql
8702 MYSQL_BINDIR=/usr/local/bin
8703 elif test -f /usr/local/include/mysql.h; then
8704 MYSQL_INCDIR=/usr/local/include
8705 MYSQL_LIBDIR=/usr/local/lib
8706 MYSQL_BINDIR=/usr/local/bin
8708 echo "$as_me:$LINENO: result: no" >&5
8709 echo "${ECHO_T}no" >&6
8710 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
8711 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
8712 { (exit 1); exit 1; }; }
8715 if test -f $withval/include/mysql/mysql.h; then
8716 MYSQL_INCDIR=$withval/include/mysql
8717 MYSQL_LIBDIR=$withval/lib/mysql
8718 MYSQL_BINDIR=$withval/bin
8719 elif test -f $withval/include/mysql.h; then
8720 MYSQL_INCDIR=$withval/include
8721 MYSQL_LIBDIR=$withval/lib
8722 MYSQL_BINDIR=$withval/bin
8724 echo "$as_me:$LINENO: result: no" >&5
8725 echo "${ECHO_T}no" >&6
8726 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
8727 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
8728 { (exit 1); exit 1; }; }
8731 SQL_INCLUDE=-I$MYSQL_INCDIR
8732 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
8733 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
8734 cat >>confdefs.h <<\_ACEOF
8735 #define HAVE_THREAD_SAFE_MYSQL 1
8739 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
8741 SQL_BINDIR=$MYSQL_BINDIR
8743 cat >>confdefs.h <<\_ACEOF
8744 #define HAVE_MYSQL 1
8747 echo "$as_me:$LINENO: result: yes" >&5
8748 echo "${ECHO_T}yes" >&6
8755 echo "$as_me:$LINENO: result: no" >&5
8756 echo "${ECHO_T}no" >&6
8763 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
8764 if test "${with_embedded_mysql+set}" = set; then
8765 withval="$with_embedded_mysql"
8767 if test "$withval" != "no"; then
8768 if test "$withval" = "yes"; then
8769 if test -f /usr/local/mysql/include/mysql/mysql.h; then
8770 MYSQL_INCDIR=/usr/local/mysql/include/mysql
8771 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
8772 MYSQL_BINDIR=/usr/local/mysql/bin
8773 elif test -f /usr/include/mysql/mysql.h; then
8774 MYSQL_INCDIR=/usr/include/mysql
8775 MYSQL_LIBDIR=/usr/lib/mysql
8776 MYSQL_BINDIR=/usr/bin
8777 elif test -f /usr/include/mysql.h; then
8778 MYSQL_INCDIR=/usr/include
8779 MYSQL_LIBDIR=/usr/lib
8780 MYSQL_BINDIR=/usr/bin
8781 elif test -f /usr/local/include/mysql/mysql.h; then
8782 MYSQL_INCDIR=/usr/local/include/mysql
8783 MYSQL_LIBDIR=/usr/local/lib/mysql
8784 MYSQL_BINDIR=/usr/local/bin
8785 elif test -f /usr/local/include/mysql.h; then
8786 MYSQL_INCDIR=/usr/local/include
8787 MYSQL_LIBDIR=/usr/local/lib
8788 MYSQL_BINDIR=/usr/local/bin
8790 echo "$as_me:$LINENO: result: no" >&5
8791 echo "${ECHO_T}no" >&6
8792 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
8793 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
8794 { (exit 1); exit 1; }; }
8797 if test -f $withval/include/mysql/mysql.h; then
8798 MYSQL_INCDIR=$withval/include/mysql
8799 MYSQL_LIBDIR=$withval/lib/mysql
8800 MYSQL_BINDIR=$withval/bin
8801 elif test -f $withval/include/mysql.h; then
8802 MYSQL_INCDIR=$withval/include
8803 MYSQL_LIBDIR=$withval/lib
8804 MYSQL_BINDIR=$withval/bin
8806 echo "$as_me:$LINENO: result: no" >&5
8807 echo "${ECHO_T}no" >&6
8808 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
8809 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
8810 { (exit 1); exit 1; }; }
8813 SQL_INCLUDE=-I$MYSQL_INCDIR
8814 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
8815 SQL_BINDIR=$MYSQL_BINDIR
8817 cat >>confdefs.h <<\_ACEOF
8818 #define HAVE_MYSQL 1
8821 cat >>confdefs.h <<\_ACEOF
8822 #define HAVE_EMBEDDED_MYSQL 1
8825 echo "$as_me:$LINENO: result: yes" >&5
8826 echo "${ECHO_T}yes" >&6
8833 echo "$as_me:$LINENO: result: no" >&5
8834 echo "${ECHO_T}no" >&6
8849 echo "$as_me:$LINENO: checking for SQLite support" >&5
8850 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
8852 # Check whether --with-sqlite or --without-sqlite was given.
8853 if test "${with_sqlite+set}" = set; then
8854 withval="$with_sqlite"
8856 if test "$withval" != "no"; then
8857 if test "$withval" = "yes"; then
8858 if test -f /usr/local/include/sqlite.h; then
8859 SQLITE_INCDIR=/usr/local/include
8860 SQLITE_LIBDIR=/usr/local/lib
8861 SQLITE_BINDIR=/usr/local/bin
8862 elif test -f /usr/include/sqlite.h; then
8863 SQLITE_INCDIR=/usr/include
8864 SQLITE_LIBDIR=/usr/lib
8865 SQLITE_BINDIR=/usr/bin
8866 elif test -f $prefix/include/sqlite.h; then
8867 SQLITE_INCDIR=$prefix/include
8868 SQLITE_LIBDIR=$prefix/lib
8869 SQLITE_BINDIR=$prefix/bin
8871 echo "$as_me:$LINENO: result: no" >&5
8872 echo "${ECHO_T}no" >&6
8873 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
8874 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
8875 { (exit 1); exit 1; }; }
8878 if test -f $withval/sqlite.h; then
8879 SQLITE_INCDIR=$withval
8880 SQLITE_LIBDIR=$withval
8881 SQLITE_BINDIR=$withval
8882 elif test -f $withval/include/sqlite.h; then
8883 SQLITE_INCDIR=$withval/include
8884 SQLITE_LIBDIR=$withval/lib
8885 SQLITE_BINDIR=$withval/bin
8887 echo "$as_me:$LINENO: result: no" >&5
8888 echo "${ECHO_T}no" >&6
8889 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
8890 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
8891 { (exit 1); exit 1; }; }
8894 SQL_INCLUDE=-I$SQLITE_INCDIR
8895 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
8896 SQL_BINDIR=$SQLITE_BINDIR
8898 cat >>confdefs.h <<\_ACEOF
8899 #define HAVE_SQLITE 1
8902 echo "$as_me:$LINENO: result: yes" >&5
8903 echo "${ECHO_T}yes" >&6
8910 echo "$as_me:$LINENO: result: no" >&5
8911 echo "${ECHO_T}no" >&6
8916 echo "$as_me:$LINENO: result: no" >&5
8917 echo "${ECHO_T}no" >&6
8929 cat >>confdefs.h <<\_ACEOF
8930 #define PROTOTYPES 1
8934 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
8935 if test -z "$CCOPTS"; then
8936 CCOPTS='-g -O2 -Wall'
8944 largefile_support="no"
8946 # Check whether --enable-largefile or --disable-largefile was given.
8947 if test "${enable_largefile+set}" = set; then
8948 enableval="$enable_largefile"
8951 if test "$enable_largefile" != no; then
8952 if test -n "$ac_tool_prefix"; then
8953 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
8954 set dummy ${ac_tool_prefix}getconf; ac_word=$2
8955 echo "$as_me:$LINENO: checking for $ac_word" >&5
8956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8957 if test "${ac_cv_prog_GETCONF+set}" = set; then
8958 echo $ECHO_N "(cached) $ECHO_C" >&6
8960 if test -n "$GETCONF"; then
8961 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
8963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8967 test -z "$as_dir" && as_dir=.
8968 for ac_exec_ext in '' $ac_executable_extensions; do
8969 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8970 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
8971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8979 GETCONF=$ac_cv_prog_GETCONF
8980 if test -n "$GETCONF"; then
8981 echo "$as_me:$LINENO: result: $GETCONF" >&5
8982 echo "${ECHO_T}$GETCONF" >&6
8984 echo "$as_me:$LINENO: result: no" >&5
8985 echo "${ECHO_T}no" >&6
8989 if test -z "$ac_cv_prog_GETCONF"; then
8990 ac_ct_GETCONF=$GETCONF
8991 # Extract the first word of "getconf", so it can be a program name with args.
8992 set dummy getconf; ac_word=$2
8993 echo "$as_me:$LINENO: checking for $ac_word" >&5
8994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8995 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
8996 echo $ECHO_N "(cached) $ECHO_C" >&6
8998 if test -n "$ac_ct_GETCONF"; then
8999 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
9001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9005 test -z "$as_dir" && as_dir=.
9006 for ac_exec_ext in '' $ac_executable_extensions; do
9007 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9008 ac_cv_prog_ac_ct_GETCONF="getconf"
9009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9017 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
9018 if test -n "$ac_ct_GETCONF"; then
9019 echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
9020 echo "${ECHO_T}$ac_ct_GETCONF" >&6
9022 echo "$as_me:$LINENO: result: no" >&5
9023 echo "${ECHO_T}no" >&6
9026 GETCONF=$ac_ct_GETCONF
9028 GETCONF="$ac_cv_prog_GETCONF"
9031 echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
9032 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
9033 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
9034 echo $ECHO_N "(cached) $ECHO_C" >&6
9036 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
9037 ac_cv_sys_largefile_CFLAGS=no
9039 # IRIX 6.2 and later require cc -n32.
9040 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
9041 if test "$GCC" != yes; then
9042 ac_cv_sys_largefile_CFLAGS=-n32
9045 CC="$CC $ac_cv_sys_largefile_CFLAGS"
9046 cat >conftest.$ac_ext <<_ACEOF
9049 cat confdefs.h >>conftest.$ac_ext
9050 cat >>conftest.$ac_ext <<_ACEOF
9051 /* end confdefs.h. */
9061 rm -f conftest.$ac_objext conftest$ac_exeext
9062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9063 (eval $ac_link) 2>conftest.er1
9065 grep -v '^ *+' conftest.er1 >conftest.err
9067 cat conftest.err >&5
9068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9069 (exit $ac_status); } &&
9070 { ac_try='test -z "$ac_c_werror_flag"
9071 || test ! -s conftest.err'
9072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9076 (exit $ac_status); }; } &&
9077 { ac_try='test -s conftest$ac_exeext'
9078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9082 (exit $ac_status); }; }; then
9085 echo "$as_me: failed program was:" >&5
9086 sed 's/^/| /' conftest.$ac_ext >&5
9088 ac_cv_sys_largefile_CFLAGS=no
9090 rm -f conftest.err conftest.$ac_objext \
9091 conftest$ac_exeext conftest.$ac_ext
9096 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
9097 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
9098 echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
9099 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
9100 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
9101 echo $ECHO_N "(cached) $ECHO_C" >&6
9103 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
9104 ac_cv_sys_largefile_LDFLAGS=no
9108 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
9109 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
9110 echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
9111 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
9112 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
9113 echo $ECHO_N "(cached) $ECHO_C" >&6
9115 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
9116 ac_cv_sys_largefile_LIBS=no
9120 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
9121 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
9123 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9126 -D_FILE_OFFSET_BITS=*) ;;
9127 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
9128 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
9134 '') CPPFLAGS="$ac_flag" ;;
9135 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
9143 '') CFLAGS="$ac_flag" ;;
9144 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
9149 case "$ac_cv_sys_largefile_LDFLAGS" in
9153 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
9154 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
9157 case "$ac_cv_sys_largefile_LIBS" in
9161 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
9162 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
9165 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
9166 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
9167 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
9168 echo $ECHO_N "(cached) $ECHO_C" >&6
9170 ac_cv_sys_file_offset_bits=no
9171 ac_cv_sys_file_offset_bits=64
9172 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9174 -D_FILE_OFFSET_BITS)
9175 ac_cv_sys_file_offset_bits=1 ;;
9176 -D_FILE_OFFSET_BITS=*)
9177 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9182 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
9183 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
9184 if test "$ac_cv_sys_file_offset_bits" != no; then
9186 cat >>confdefs.h <<_ACEOF
9187 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9191 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
9192 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
9193 if test "${ac_cv_sys_largefile_source+set}" = set; then
9194 echo $ECHO_N "(cached) $ECHO_C" >&6
9196 ac_cv_sys_largefile_source=no
9197 ac_cv_sys_largefile_source=1
9198 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9200 -D_LARGEFILE_SOURCE)
9201 ac_cv_sys_largefile_source=1 ;;
9202 -D_LARGEFILE_SOURCE=*)
9203 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9208 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
9209 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
9210 if test "$ac_cv_sys_largefile_source" != no; then
9212 cat >>confdefs.h <<_ACEOF
9213 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9217 echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
9218 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
9219 if test "${ac_cv_sys_large_files+set}" = set; then
9220 echo $ECHO_N "(cached) $ECHO_C" >&6
9222 ac_cv_sys_large_files=no
9223 ac_cv_sys_large_files=1
9224 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9227 ac_cv_sys_large_files=1 ;;
9229 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9234 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
9235 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
9236 if test "$ac_cv_sys_large_files" != no; then
9238 cat >>confdefs.h <<_ACEOF
9239 #define _LARGE_FILES $ac_cv_sys_large_files
9247 echo "$as_me:$LINENO: checking for X" >&5
9248 echo $ECHO_N "checking for X... $ECHO_C" >&6
9251 # Check whether --with-x or --without-x was given.
9252 if test "${with_x+set}" = set; then
9256 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9257 if test "x$with_x" = xno; then
9258 # The user explicitly disabled X.
9261 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
9262 # Both variables are already set.
9265 if test "${ac_cv_have_x+set}" = set; then
9266 echo $ECHO_N "(cached) $ECHO_C" >&6
9268 # One or both of the vars are not set, and there is no cached value.
9269 ac_x_includes=no ac_x_libraries=no
9271 if mkdir conftest.dir; then
9273 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
9274 cat >Imakefile <<'_ACEOF'
9276 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9278 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9279 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9280 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9281 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9282 for ac_extension in a so sl; do
9283 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
9284 test -f $ac_im_libdir/libX11.$ac_extension; then
9285 ac_im_usrlibdir=$ac_im_libdir; break
9288 # Screen out bogus values from the imake configuration. They are
9289 # bogus both because they are the default anyway, and because
9290 # using them would break gcc on systems where it needs fixed includes.
9291 case $ac_im_incroot in
9293 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9295 case $ac_im_usrlibdir in
9297 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9304 # Standard set of common directories for X headers.
9305 # Check X11 before X11Rn because it is often a symlink to the current release.
9317 /usr/local/X11/include
9318 /usr/local/X11R6/include
9319 /usr/local/X11R5/include
9320 /usr/local/X11R4/include
9322 /usr/local/include/X11
9323 /usr/local/include/X11R6
9324 /usr/local/include/X11R5
9325 /usr/local/include/X11R4
9329 /usr/XFree86/include/X11
9333 /usr/unsupported/include
9335 /usr/local/x11r5/include
9336 /usr/lpp/Xamples/include
9338 /usr/openwin/include
9339 /usr/openwin/share/include'
9341 if test "$ac_x_includes" = no; then
9342 # Guess where to find include files, by looking for Intrinsic.h.
9343 # First, try using that file with no special directory specified.
9344 cat >conftest.$ac_ext <<_ACEOF
9347 cat confdefs.h >>conftest.$ac_ext
9348 cat >>conftest.$ac_ext <<_ACEOF
9349 /* end confdefs.h. */
9350 #include <X11/Intrinsic.h>
9352 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9353 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9355 grep -v '^ *+' conftest.er1 >conftest.err
9357 cat conftest.err >&5
9358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9359 (exit $ac_status); } >/dev/null; then
9360 if test -s conftest.err; then
9361 ac_cpp_err=$ac_c_preproc_warn_flag
9362 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9369 if test -z "$ac_cpp_err"; then
9370 # We can compile using X headers with no special include directory.
9373 echo "$as_me: failed program was:" >&5
9374 sed 's/^/| /' conftest.$ac_ext >&5
9376 for ac_dir in $ac_x_header_dirs; do
9377 if test -r "$ac_dir/X11/Intrinsic.h"; then
9378 ac_x_includes=$ac_dir
9383 rm -f conftest.err conftest.$ac_ext
9384 fi # $ac_x_includes = no
9386 if test "$ac_x_libraries" = no; then
9387 # Check for the libraries.
9388 # See if we find them without any special options.
9389 # Don't add to $LIBS permanently.
9392 cat >conftest.$ac_ext <<_ACEOF
9395 cat confdefs.h >>conftest.$ac_ext
9396 cat >>conftest.$ac_ext <<_ACEOF
9397 /* end confdefs.h. */
9398 #include <X11/Intrinsic.h>
9407 rm -f conftest.$ac_objext conftest$ac_exeext
9408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9409 (eval $ac_link) 2>conftest.er1
9411 grep -v '^ *+' conftest.er1 >conftest.err
9413 cat conftest.err >&5
9414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9415 (exit $ac_status); } &&
9416 { ac_try='test -z "$ac_c_werror_flag"
9417 || test ! -s conftest.err'
9418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9422 (exit $ac_status); }; } &&
9423 { ac_try='test -s conftest$ac_exeext'
9424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9428 (exit $ac_status); }; }; then
9430 # We can link X programs with no special library path.
9433 echo "$as_me: failed program was:" >&5
9434 sed 's/^/| /' conftest.$ac_ext >&5
9437 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9439 # Don't even attempt the hair of trying to link an X program!
9440 for ac_extension in a so sl; do
9441 if test -r $ac_dir/libXt.$ac_extension; then
9442 ac_x_libraries=$ac_dir
9448 rm -f conftest.err conftest.$ac_objext \
9449 conftest$ac_exeext conftest.$ac_ext
9450 fi # $ac_x_libraries = no
9452 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
9453 # Didn't find X anywhere. Cache the known absence of X.
9454 ac_cv_have_x="have_x=no"
9456 # Record where we found X for the cache.
9457 ac_cv_have_x="have_x=yes \
9458 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9463 eval "$ac_cv_have_x"
9466 if test "$have_x" != yes; then
9467 echo "$as_me:$LINENO: result: $have_x" >&5
9468 echo "${ECHO_T}$have_x" >&6
9471 # If each of the values was on the command line, it overrides each guess.
9472 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9473 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9474 # Update the cache value to reflect the command line values.
9475 ac_cv_have_x="have_x=yes \
9476 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9477 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9478 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
9481 if test "$no_x" = yes; then
9482 # Not all programs may use this symbol, but it does not hurt to define it.
9484 cat >>confdefs.h <<\_ACEOF
9485 #define X_DISPLAY_MISSING 1
9488 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
9490 if test -n "$x_includes"; then
9491 X_CFLAGS="$X_CFLAGS -I$x_includes"
9494 # It would also be nice to do this for all -L options, not just this one.
9495 if test -n "$x_libraries"; then
9496 X_LIBS="$X_LIBS -L$x_libraries"
9497 # For Solaris; some versions of Sun CC require a space after -R and
9498 # others require no space. Words are not sufficient . . . .
9499 case `(uname -sr) 2>/dev/null` in
9501 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
9502 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
9503 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
9504 cat >conftest.$ac_ext <<_ACEOF
9507 cat confdefs.h >>conftest.$ac_ext
9508 cat >>conftest.$ac_ext <<_ACEOF
9509 /* end confdefs.h. */
9519 rm -f conftest.$ac_objext conftest$ac_exeext
9520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9521 (eval $ac_link) 2>conftest.er1
9523 grep -v '^ *+' conftest.er1 >conftest.err
9525 cat conftest.err >&5
9526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527 (exit $ac_status); } &&
9528 { ac_try='test -z "$ac_c_werror_flag"
9529 || test ! -s conftest.err'
9530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9534 (exit $ac_status); }; } &&
9535 { ac_try='test -s conftest$ac_exeext'
9536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540 (exit $ac_status); }; }; then
9543 echo "$as_me: failed program was:" >&5
9544 sed 's/^/| /' conftest.$ac_ext >&5
9548 rm -f conftest.err conftest.$ac_objext \
9549 conftest$ac_exeext conftest.$ac_ext
9550 if test $ac_R_nospace = yes; then
9551 echo "$as_me:$LINENO: result: no" >&5
9552 echo "${ECHO_T}no" >&6
9553 X_LIBS="$X_LIBS -R$x_libraries"
9555 LIBS="$ac_xsave_LIBS -R $x_libraries"
9556 cat >conftest.$ac_ext <<_ACEOF
9559 cat confdefs.h >>conftest.$ac_ext
9560 cat >>conftest.$ac_ext <<_ACEOF
9561 /* end confdefs.h. */
9571 rm -f conftest.$ac_objext conftest$ac_exeext
9572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9573 (eval $ac_link) 2>conftest.er1
9575 grep -v '^ *+' conftest.er1 >conftest.err
9577 cat conftest.err >&5
9578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9579 (exit $ac_status); } &&
9580 { ac_try='test -z "$ac_c_werror_flag"
9581 || test ! -s conftest.err'
9582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9586 (exit $ac_status); }; } &&
9587 { ac_try='test -s conftest$ac_exeext'
9588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9592 (exit $ac_status); }; }; then
9595 echo "$as_me: failed program was:" >&5
9596 sed 's/^/| /' conftest.$ac_ext >&5
9600 rm -f conftest.err conftest.$ac_objext \
9601 conftest$ac_exeext conftest.$ac_ext
9602 if test $ac_R_space = yes; then
9603 echo "$as_me:$LINENO: result: yes" >&5
9604 echo "${ECHO_T}yes" >&6
9605 X_LIBS="$X_LIBS -R $x_libraries"
9607 echo "$as_me:$LINENO: result: neither works" >&5
9608 echo "${ECHO_T}neither works" >&6
9615 # Check for system-dependent libraries X programs must link with.
9616 # Do this before checking for the system-independent R6 libraries
9617 # (-lICE), since we may need -lsocket or whatever for X linking.
9619 if test "$ISC" = yes; then
9620 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
9622 # Martyn Johnson says this is needed for Ultrix, if the X
9623 # libraries were built with DECnet support. And Karl Berry says
9624 # the Alpha needs dnet_stub (dnet does not exist).
9625 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
9626 cat >conftest.$ac_ext <<_ACEOF
9629 cat confdefs.h >>conftest.$ac_ext
9630 cat >>conftest.$ac_ext <<_ACEOF
9631 /* end confdefs.h. */
9633 /* Override any gcc2 internal prototype to avoid an error. */
9637 /* We use char because int might match the return type of a gcc2
9638 builtin and then its argument prototype would still apply. */
9639 char XOpenDisplay ();
9648 rm -f conftest.$ac_objext conftest$ac_exeext
9649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9650 (eval $ac_link) 2>conftest.er1
9652 grep -v '^ *+' conftest.er1 >conftest.err
9654 cat conftest.err >&5
9655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9656 (exit $ac_status); } &&
9657 { ac_try='test -z "$ac_c_werror_flag"
9658 || test ! -s conftest.err'
9659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663 (exit $ac_status); }; } &&
9664 { ac_try='test -s conftest$ac_exeext'
9665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669 (exit $ac_status); }; }; then
9672 echo "$as_me: failed program was:" >&5
9673 sed 's/^/| /' conftest.$ac_ext >&5
9675 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9676 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9677 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9678 echo $ECHO_N "(cached) $ECHO_C" >&6
9680 ac_check_lib_save_LIBS=$LIBS
9682 cat >conftest.$ac_ext <<_ACEOF
9685 cat confdefs.h >>conftest.$ac_ext
9686 cat >>conftest.$ac_ext <<_ACEOF
9687 /* end confdefs.h. */
9689 /* Override any gcc2 internal prototype to avoid an error. */
9693 /* We use char because int might match the return type of a gcc2
9694 builtin and then its argument prototype would still apply. */
9704 rm -f conftest.$ac_objext conftest$ac_exeext
9705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9706 (eval $ac_link) 2>conftest.er1
9708 grep -v '^ *+' conftest.er1 >conftest.err
9710 cat conftest.err >&5
9711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9712 (exit $ac_status); } &&
9713 { ac_try='test -z "$ac_c_werror_flag"
9714 || test ! -s conftest.err'
9715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9719 (exit $ac_status); }; } &&
9720 { ac_try='test -s conftest$ac_exeext'
9721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9725 (exit $ac_status); }; }; then
9726 ac_cv_lib_dnet_dnet_ntoa=yes
9728 echo "$as_me: failed program was:" >&5
9729 sed 's/^/| /' conftest.$ac_ext >&5
9731 ac_cv_lib_dnet_dnet_ntoa=no
9733 rm -f conftest.err conftest.$ac_objext \
9734 conftest$ac_exeext conftest.$ac_ext
9735 LIBS=$ac_check_lib_save_LIBS
9737 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9738 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9739 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9740 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
9743 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
9744 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
9745 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
9746 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
9747 echo $ECHO_N "(cached) $ECHO_C" >&6
9749 ac_check_lib_save_LIBS=$LIBS
9750 LIBS="-ldnet_stub $LIBS"
9751 cat >conftest.$ac_ext <<_ACEOF
9754 cat confdefs.h >>conftest.$ac_ext
9755 cat >>conftest.$ac_ext <<_ACEOF
9756 /* end confdefs.h. */
9758 /* Override any gcc2 internal prototype to avoid an error. */
9762 /* We use char because int might match the return type of a gcc2
9763 builtin and then its argument prototype would still apply. */
9773 rm -f conftest.$ac_objext conftest$ac_exeext
9774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9775 (eval $ac_link) 2>conftest.er1
9777 grep -v '^ *+' conftest.er1 >conftest.err
9779 cat conftest.err >&5
9780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781 (exit $ac_status); } &&
9782 { ac_try='test -z "$ac_c_werror_flag"
9783 || test ! -s conftest.err'
9784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9788 (exit $ac_status); }; } &&
9789 { ac_try='test -s conftest$ac_exeext'
9790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9794 (exit $ac_status); }; }; then
9795 ac_cv_lib_dnet_stub_dnet_ntoa=yes
9797 echo "$as_me: failed program was:" >&5
9798 sed 's/^/| /' conftest.$ac_ext >&5
9800 ac_cv_lib_dnet_stub_dnet_ntoa=no
9802 rm -f conftest.err conftest.$ac_objext \
9803 conftest$ac_exeext conftest.$ac_ext
9804 LIBS=$ac_check_lib_save_LIBS
9806 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
9807 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
9808 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
9809 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
9814 rm -f conftest.err conftest.$ac_objext \
9815 conftest$ac_exeext conftest.$ac_ext
9816 LIBS="$ac_xsave_LIBS"
9818 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
9819 # to get the SysV transport functions.
9820 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
9822 # The nsl library prevents programs from opening the X display
9823 # on Irix 5.2, according to T.E. Dickey.
9824 # The functions gethostbyname, getservbyname, and inet_addr are
9825 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
9826 echo "$as_me:$LINENO: checking for gethostbyname" >&5
9827 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
9828 if test "${ac_cv_func_gethostbyname+set}" = set; then
9829 echo $ECHO_N "(cached) $ECHO_C" >&6
9831 cat >conftest.$ac_ext <<_ACEOF
9834 cat confdefs.h >>conftest.$ac_ext
9835 cat >>conftest.$ac_ext <<_ACEOF
9836 /* end confdefs.h. */
9837 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
9838 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9839 #define gethostbyname innocuous_gethostbyname
9841 /* System header to define __stub macros and hopefully few prototypes,
9842 which can conflict with char gethostbyname (); below.
9843 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9844 <limits.h> exists even on freestanding compilers. */
9847 # include <limits.h>
9849 # include <assert.h>
9852 #undef gethostbyname
9854 /* Override any gcc2 internal prototype to avoid an error. */
9859 /* We use char because int might match the return type of a gcc2
9860 builtin and then its argument prototype would still apply. */
9861 char gethostbyname ();
9862 /* The GNU C library defines this for functions which it implements
9863 to always fail with ENOSYS. Some functions are actually named
9864 something starting with __ and the normal name is an alias. */
9865 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
9868 char (*f) () = gethostbyname;
9877 return f != gethostbyname;
9882 rm -f conftest.$ac_objext conftest$ac_exeext
9883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9884 (eval $ac_link) 2>conftest.er1
9886 grep -v '^ *+' conftest.er1 >conftest.err
9888 cat conftest.err >&5
9889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9890 (exit $ac_status); } &&
9891 { ac_try='test -z "$ac_c_werror_flag"
9892 || test ! -s conftest.err'
9893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897 (exit $ac_status); }; } &&
9898 { ac_try='test -s conftest$ac_exeext'
9899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9903 (exit $ac_status); }; }; then
9904 ac_cv_func_gethostbyname=yes
9906 echo "$as_me: failed program was:" >&5
9907 sed 's/^/| /' conftest.$ac_ext >&5
9909 ac_cv_func_gethostbyname=no
9911 rm -f conftest.err conftest.$ac_objext \
9912 conftest$ac_exeext conftest.$ac_ext
9914 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
9915 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
9917 if test $ac_cv_func_gethostbyname = no; then
9918 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
9919 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
9920 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
9921 echo $ECHO_N "(cached) $ECHO_C" >&6
9923 ac_check_lib_save_LIBS=$LIBS
9925 cat >conftest.$ac_ext <<_ACEOF
9928 cat confdefs.h >>conftest.$ac_ext
9929 cat >>conftest.$ac_ext <<_ACEOF
9930 /* end confdefs.h. */
9932 /* Override any gcc2 internal prototype to avoid an error. */
9936 /* We use char because int might match the return type of a gcc2
9937 builtin and then its argument prototype would still apply. */
9938 char gethostbyname ();
9947 rm -f conftest.$ac_objext conftest$ac_exeext
9948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9949 (eval $ac_link) 2>conftest.er1
9951 grep -v '^ *+' conftest.er1 >conftest.err
9953 cat conftest.err >&5
9954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955 (exit $ac_status); } &&
9956 { ac_try='test -z "$ac_c_werror_flag"
9957 || test ! -s conftest.err'
9958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9962 (exit $ac_status); }; } &&
9963 { ac_try='test -s conftest$ac_exeext'
9964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968 (exit $ac_status); }; }; then
9969 ac_cv_lib_nsl_gethostbyname=yes
9971 echo "$as_me: failed program was:" >&5
9972 sed 's/^/| /' conftest.$ac_ext >&5
9974 ac_cv_lib_nsl_gethostbyname=no
9976 rm -f conftest.err conftest.$ac_objext \
9977 conftest$ac_exeext conftest.$ac_ext
9978 LIBS=$ac_check_lib_save_LIBS
9980 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
9981 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
9982 if test $ac_cv_lib_nsl_gethostbyname = yes; then
9983 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
9986 if test $ac_cv_lib_nsl_gethostbyname = no; then
9987 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
9988 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
9989 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
9990 echo $ECHO_N "(cached) $ECHO_C" >&6
9992 ac_check_lib_save_LIBS=$LIBS
9994 cat >conftest.$ac_ext <<_ACEOF
9997 cat confdefs.h >>conftest.$ac_ext
9998 cat >>conftest.$ac_ext <<_ACEOF
9999 /* end confdefs.h. */
10001 /* Override any gcc2 internal prototype to avoid an error. */
10005 /* We use char because int might match the return type of a gcc2
10006 builtin and then its argument prototype would still apply. */
10007 char gethostbyname ();
10016 rm -f conftest.$ac_objext conftest$ac_exeext
10017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10018 (eval $ac_link) 2>conftest.er1
10020 grep -v '^ *+' conftest.er1 >conftest.err
10022 cat conftest.err >&5
10023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10024 (exit $ac_status); } &&
10025 { ac_try='test -z "$ac_c_werror_flag"
10026 || test ! -s conftest.err'
10027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10028 (eval $ac_try) 2>&5
10030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031 (exit $ac_status); }; } &&
10032 { ac_try='test -s conftest$ac_exeext'
10033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10034 (eval $ac_try) 2>&5
10036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10037 (exit $ac_status); }; }; then
10038 ac_cv_lib_bsd_gethostbyname=yes
10040 echo "$as_me: failed program was:" >&5
10041 sed 's/^/| /' conftest.$ac_ext >&5
10043 ac_cv_lib_bsd_gethostbyname=no
10045 rm -f conftest.err conftest.$ac_objext \
10046 conftest$ac_exeext conftest.$ac_ext
10047 LIBS=$ac_check_lib_save_LIBS
10049 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
10050 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
10051 if test $ac_cv_lib_bsd_gethostbyname = yes; then
10052 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
10058 # lieder@skyler.mavd.honeywell.com says without -lsocket,
10059 # socket/setsockopt and other routines are undefined under SCO ODT
10060 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
10061 # on later versions), says Simon Leinen: it contains gethostby*
10062 # variants that don't use the name server (or something). -lsocket
10063 # must be given before -lnsl if both are needed. We assume that
10064 # if connect needs -lnsl, so does gethostbyname.
10065 echo "$as_me:$LINENO: checking for connect" >&5
10066 echo $ECHO_N "checking for connect... $ECHO_C" >&6
10067 if test "${ac_cv_func_connect+set}" = set; then
10068 echo $ECHO_N "(cached) $ECHO_C" >&6
10070 cat >conftest.$ac_ext <<_ACEOF
10073 cat confdefs.h >>conftest.$ac_ext
10074 cat >>conftest.$ac_ext <<_ACEOF
10075 /* end confdefs.h. */
10076 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
10077 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10078 #define connect innocuous_connect
10080 /* System header to define __stub macros and hopefully few prototypes,
10081 which can conflict with char connect (); below.
10082 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10083 <limits.h> exists even on freestanding compilers. */
10086 # include <limits.h>
10088 # include <assert.h>
10093 /* Override any gcc2 internal prototype to avoid an error. */
10098 /* We use char because int might match the return type of a gcc2
10099 builtin and then its argument prototype would still apply. */
10101 /* The GNU C library defines this for functions which it implements
10102 to always fail with ENOSYS. Some functions are actually named
10103 something starting with __ and the normal name is an alias. */
10104 #if defined (__stub_connect) || defined (__stub___connect)
10107 char (*f) () = connect;
10116 return f != connect;
10121 rm -f conftest.$ac_objext conftest$ac_exeext
10122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10123 (eval $ac_link) 2>conftest.er1
10125 grep -v '^ *+' conftest.er1 >conftest.err
10127 cat conftest.err >&5
10128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10129 (exit $ac_status); } &&
10130 { ac_try='test -z "$ac_c_werror_flag"
10131 || test ! -s conftest.err'
10132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10133 (eval $ac_try) 2>&5
10135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10136 (exit $ac_status); }; } &&
10137 { ac_try='test -s conftest$ac_exeext'
10138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10139 (eval $ac_try) 2>&5
10141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10142 (exit $ac_status); }; }; then
10143 ac_cv_func_connect=yes
10145 echo "$as_me: failed program was:" >&5
10146 sed 's/^/| /' conftest.$ac_ext >&5
10148 ac_cv_func_connect=no
10150 rm -f conftest.err conftest.$ac_objext \
10151 conftest$ac_exeext conftest.$ac_ext
10153 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
10154 echo "${ECHO_T}$ac_cv_func_connect" >&6
10156 if test $ac_cv_func_connect = no; then
10157 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
10158 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
10159 if test "${ac_cv_lib_socket_connect+set}" = set; then
10160 echo $ECHO_N "(cached) $ECHO_C" >&6
10162 ac_check_lib_save_LIBS=$LIBS
10163 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
10164 cat >conftest.$ac_ext <<_ACEOF
10167 cat confdefs.h >>conftest.$ac_ext
10168 cat >>conftest.$ac_ext <<_ACEOF
10169 /* end confdefs.h. */
10171 /* Override any gcc2 internal prototype to avoid an error. */
10175 /* We use char because int might match the return type of a gcc2
10176 builtin and then its argument prototype would still apply. */
10186 rm -f conftest.$ac_objext conftest$ac_exeext
10187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10188 (eval $ac_link) 2>conftest.er1
10190 grep -v '^ *+' conftest.er1 >conftest.err
10192 cat conftest.err >&5
10193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194 (exit $ac_status); } &&
10195 { ac_try='test -z "$ac_c_werror_flag"
10196 || test ! -s conftest.err'
10197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10198 (eval $ac_try) 2>&5
10200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10201 (exit $ac_status); }; } &&
10202 { ac_try='test -s conftest$ac_exeext'
10203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10204 (eval $ac_try) 2>&5
10206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207 (exit $ac_status); }; }; then
10208 ac_cv_lib_socket_connect=yes
10210 echo "$as_me: failed program was:" >&5
10211 sed 's/^/| /' conftest.$ac_ext >&5
10213 ac_cv_lib_socket_connect=no
10215 rm -f conftest.err conftest.$ac_objext \
10216 conftest$ac_exeext conftest.$ac_ext
10217 LIBS=$ac_check_lib_save_LIBS
10219 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
10220 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
10221 if test $ac_cv_lib_socket_connect = yes; then
10222 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
10227 # Guillermo Gomez says -lposix is necessary on A/UX.
10228 echo "$as_me:$LINENO: checking for remove" >&5
10229 echo $ECHO_N "checking for remove... $ECHO_C" >&6
10230 if test "${ac_cv_func_remove+set}" = set; then
10231 echo $ECHO_N "(cached) $ECHO_C" >&6
10233 cat >conftest.$ac_ext <<_ACEOF
10236 cat confdefs.h >>conftest.$ac_ext
10237 cat >>conftest.$ac_ext <<_ACEOF
10238 /* end confdefs.h. */
10239 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
10240 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10241 #define remove innocuous_remove
10243 /* System header to define __stub macros and hopefully few prototypes,
10244 which can conflict with char remove (); below.
10245 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10246 <limits.h> exists even on freestanding compilers. */
10249 # include <limits.h>
10251 # include <assert.h>
10256 /* Override any gcc2 internal prototype to avoid an error. */
10261 /* We use char because int might match the return type of a gcc2
10262 builtin and then its argument prototype would still apply. */
10264 /* The GNU C library defines this for functions which it implements
10265 to always fail with ENOSYS. Some functions are actually named
10266 something starting with __ and the normal name is an alias. */
10267 #if defined (__stub_remove) || defined (__stub___remove)
10270 char (*f) () = remove;
10279 return f != remove;
10284 rm -f conftest.$ac_objext conftest$ac_exeext
10285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10286 (eval $ac_link) 2>conftest.er1
10288 grep -v '^ *+' conftest.er1 >conftest.err
10290 cat conftest.err >&5
10291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10292 (exit $ac_status); } &&
10293 { ac_try='test -z "$ac_c_werror_flag"
10294 || test ! -s conftest.err'
10295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10296 (eval $ac_try) 2>&5
10298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10299 (exit $ac_status); }; } &&
10300 { ac_try='test -s conftest$ac_exeext'
10301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10302 (eval $ac_try) 2>&5
10304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10305 (exit $ac_status); }; }; then
10306 ac_cv_func_remove=yes
10308 echo "$as_me: failed program was:" >&5
10309 sed 's/^/| /' conftest.$ac_ext >&5
10311 ac_cv_func_remove=no
10313 rm -f conftest.err conftest.$ac_objext \
10314 conftest$ac_exeext conftest.$ac_ext
10316 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
10317 echo "${ECHO_T}$ac_cv_func_remove" >&6
10319 if test $ac_cv_func_remove = no; then
10320 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
10321 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
10322 if test "${ac_cv_lib_posix_remove+set}" = set; then
10323 echo $ECHO_N "(cached) $ECHO_C" >&6
10325 ac_check_lib_save_LIBS=$LIBS
10326 LIBS="-lposix $LIBS"
10327 cat >conftest.$ac_ext <<_ACEOF
10330 cat confdefs.h >>conftest.$ac_ext
10331 cat >>conftest.$ac_ext <<_ACEOF
10332 /* end confdefs.h. */
10334 /* Override any gcc2 internal prototype to avoid an error. */
10338 /* We use char because int might match the return type of a gcc2
10339 builtin and then its argument prototype would still apply. */
10349 rm -f conftest.$ac_objext conftest$ac_exeext
10350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10351 (eval $ac_link) 2>conftest.er1
10353 grep -v '^ *+' conftest.er1 >conftest.err
10355 cat conftest.err >&5
10356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357 (exit $ac_status); } &&
10358 { ac_try='test -z "$ac_c_werror_flag"
10359 || test ! -s conftest.err'
10360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10361 (eval $ac_try) 2>&5
10363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10364 (exit $ac_status); }; } &&
10365 { ac_try='test -s conftest$ac_exeext'
10366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10367 (eval $ac_try) 2>&5
10369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370 (exit $ac_status); }; }; then
10371 ac_cv_lib_posix_remove=yes
10373 echo "$as_me: failed program was:" >&5
10374 sed 's/^/| /' conftest.$ac_ext >&5
10376 ac_cv_lib_posix_remove=no
10378 rm -f conftest.err conftest.$ac_objext \
10379 conftest$ac_exeext conftest.$ac_ext
10380 LIBS=$ac_check_lib_save_LIBS
10382 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
10383 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
10384 if test $ac_cv_lib_posix_remove = yes; then
10385 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
10390 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
10391 echo "$as_me:$LINENO: checking for shmat" >&5
10392 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
10393 if test "${ac_cv_func_shmat+set}" = set; then
10394 echo $ECHO_N "(cached) $ECHO_C" >&6
10396 cat >conftest.$ac_ext <<_ACEOF
10399 cat confdefs.h >>conftest.$ac_ext
10400 cat >>conftest.$ac_ext <<_ACEOF
10401 /* end confdefs.h. */
10402 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
10403 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10404 #define shmat innocuous_shmat
10406 /* System header to define __stub macros and hopefully few prototypes,
10407 which can conflict with char shmat (); below.
10408 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10409 <limits.h> exists even on freestanding compilers. */
10412 # include <limits.h>
10414 # include <assert.h>
10419 /* Override any gcc2 internal prototype to avoid an error. */
10424 /* We use char because int might match the return type of a gcc2
10425 builtin and then its argument prototype would still apply. */
10427 /* The GNU C library defines this for functions which it implements
10428 to always fail with ENOSYS. Some functions are actually named
10429 something starting with __ and the normal name is an alias. */
10430 #if defined (__stub_shmat) || defined (__stub___shmat)
10433 char (*f) () = shmat;
10447 rm -f conftest.$ac_objext conftest$ac_exeext
10448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10449 (eval $ac_link) 2>conftest.er1
10451 grep -v '^ *+' conftest.er1 >conftest.err
10453 cat conftest.err >&5
10454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10455 (exit $ac_status); } &&
10456 { ac_try='test -z "$ac_c_werror_flag"
10457 || test ! -s conftest.err'
10458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10459 (eval $ac_try) 2>&5
10461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10462 (exit $ac_status); }; } &&
10463 { ac_try='test -s conftest$ac_exeext'
10464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10465 (eval $ac_try) 2>&5
10467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10468 (exit $ac_status); }; }; then
10469 ac_cv_func_shmat=yes
10471 echo "$as_me: failed program was:" >&5
10472 sed 's/^/| /' conftest.$ac_ext >&5
10474 ac_cv_func_shmat=no
10476 rm -f conftest.err conftest.$ac_objext \
10477 conftest$ac_exeext conftest.$ac_ext
10479 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
10480 echo "${ECHO_T}$ac_cv_func_shmat" >&6
10482 if test $ac_cv_func_shmat = no; then
10483 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
10484 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
10485 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
10486 echo $ECHO_N "(cached) $ECHO_C" >&6
10488 ac_check_lib_save_LIBS=$LIBS
10490 cat >conftest.$ac_ext <<_ACEOF
10493 cat confdefs.h >>conftest.$ac_ext
10494 cat >>conftest.$ac_ext <<_ACEOF
10495 /* end confdefs.h. */
10497 /* Override any gcc2 internal prototype to avoid an error. */
10501 /* We use char because int might match the return type of a gcc2
10502 builtin and then its argument prototype would still apply. */
10512 rm -f conftest.$ac_objext conftest$ac_exeext
10513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10514 (eval $ac_link) 2>conftest.er1
10516 grep -v '^ *+' conftest.er1 >conftest.err
10518 cat conftest.err >&5
10519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520 (exit $ac_status); } &&
10521 { ac_try='test -z "$ac_c_werror_flag"
10522 || test ! -s conftest.err'
10523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10524 (eval $ac_try) 2>&5
10526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10527 (exit $ac_status); }; } &&
10528 { ac_try='test -s conftest$ac_exeext'
10529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10530 (eval $ac_try) 2>&5
10532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10533 (exit $ac_status); }; }; then
10534 ac_cv_lib_ipc_shmat=yes
10536 echo "$as_me: failed program was:" >&5
10537 sed 's/^/| /' conftest.$ac_ext >&5
10539 ac_cv_lib_ipc_shmat=no
10541 rm -f conftest.err conftest.$ac_objext \
10542 conftest$ac_exeext conftest.$ac_ext
10543 LIBS=$ac_check_lib_save_LIBS
10545 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
10546 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
10547 if test $ac_cv_lib_ipc_shmat = yes; then
10548 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
10554 # Check for libraries that X11R6 Xt/Xaw programs need.
10555 ac_save_LDFLAGS=$LDFLAGS
10556 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
10557 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
10558 # check for ICE first), but we must link in the order -lSM -lICE or
10559 # we get undefined symbols. So assume we have SM if we have ICE.
10560 # These have to be linked with before -lX11, unlike the other
10561 # libraries we check for below, so use a different variable.
10562 # John Interrante, Karl Berry
10563 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
10564 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
10565 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
10566 echo $ECHO_N "(cached) $ECHO_C" >&6
10568 ac_check_lib_save_LIBS=$LIBS
10569 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
10570 cat >conftest.$ac_ext <<_ACEOF
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. */
10583 char IceConnectionNumber ();
10587 IceConnectionNumber ();
10592 rm -f conftest.$ac_objext conftest$ac_exeext
10593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10594 (eval $ac_link) 2>conftest.er1
10596 grep -v '^ *+' conftest.er1 >conftest.err
10598 cat conftest.err >&5
10599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600 (exit $ac_status); } &&
10601 { ac_try='test -z "$ac_c_werror_flag"
10602 || test ! -s conftest.err'
10603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10604 (eval $ac_try) 2>&5
10606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607 (exit $ac_status); }; } &&
10608 { ac_try='test -s conftest$ac_exeext'
10609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10610 (eval $ac_try) 2>&5
10612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10613 (exit $ac_status); }; }; then
10614 ac_cv_lib_ICE_IceConnectionNumber=yes
10616 echo "$as_me: failed program was:" >&5
10617 sed 's/^/| /' conftest.$ac_ext >&5
10619 ac_cv_lib_ICE_IceConnectionNumber=no
10621 rm -f conftest.err conftest.$ac_objext \
10622 conftest$ac_exeext conftest.$ac_ext
10623 LIBS=$ac_check_lib_save_LIBS
10625 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
10626 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
10627 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
10628 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
10631 LDFLAGS=$ac_save_LDFLAGS
10693 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10694 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10695 echo "$as_me:$LINENO: checking for $ac_header" >&5
10696 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10697 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10698 echo $ECHO_N "(cached) $ECHO_C" >&6
10700 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10701 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10703 # Is the header compilable?
10704 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10705 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10706 cat >conftest.$ac_ext <<_ACEOF
10709 cat confdefs.h >>conftest.$ac_ext
10710 cat >>conftest.$ac_ext <<_ACEOF
10711 /* end confdefs.h. */
10712 $ac_includes_default
10713 #include <$ac_header>
10715 rm -f conftest.$ac_objext
10716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10717 (eval $ac_compile) 2>conftest.er1
10719 grep -v '^ *+' conftest.er1 >conftest.err
10721 cat conftest.err >&5
10722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10723 (exit $ac_status); } &&
10724 { ac_try='test -z "$ac_c_werror_flag"
10725 || test ! -s conftest.err'
10726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10727 (eval $ac_try) 2>&5
10729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10730 (exit $ac_status); }; } &&
10731 { ac_try='test -s conftest.$ac_objext'
10732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10733 (eval $ac_try) 2>&5
10735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10736 (exit $ac_status); }; }; then
10737 ac_header_compiler=yes
10739 echo "$as_me: failed program was:" >&5
10740 sed 's/^/| /' conftest.$ac_ext >&5
10742 ac_header_compiler=no
10744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10745 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10746 echo "${ECHO_T}$ac_header_compiler" >&6
10748 # Is the header present?
10749 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10750 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10751 cat >conftest.$ac_ext <<_ACEOF
10754 cat confdefs.h >>conftest.$ac_ext
10755 cat >>conftest.$ac_ext <<_ACEOF
10756 /* end confdefs.h. */
10757 #include <$ac_header>
10759 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10760 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10762 grep -v '^ *+' conftest.er1 >conftest.err
10764 cat conftest.err >&5
10765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10766 (exit $ac_status); } >/dev/null; then
10767 if test -s conftest.err; then
10768 ac_cpp_err=$ac_c_preproc_warn_flag
10769 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10776 if test -z "$ac_cpp_err"; then
10777 ac_header_preproc=yes
10779 echo "$as_me: failed program was:" >&5
10780 sed 's/^/| /' conftest.$ac_ext >&5
10782 ac_header_preproc=no
10784 rm -f conftest.err conftest.$ac_ext
10785 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10786 echo "${ECHO_T}$ac_header_preproc" >&6
10788 # So? What about this header?
10789 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10791 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10792 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10793 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10794 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10795 ac_header_preproc=yes
10798 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10799 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10800 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10801 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10802 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10803 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10804 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10805 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10806 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10807 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10808 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10809 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10812 ## ------------------------------------------ ##
10813 ## Report this to the AC_PACKAGE_NAME lists. ##
10814 ## ------------------------------------------ ##
10817 sed "s/^/$as_me: WARNING: /" >&2
10820 echo "$as_me:$LINENO: checking for $ac_header" >&5
10821 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10822 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10823 echo $ECHO_N "(cached) $ECHO_C" >&6
10825 eval "$as_ac_Header=\$ac_header_preproc"
10827 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10828 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10831 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10832 cat >>confdefs.h <<_ACEOF
10833 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10840 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
10841 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
10842 if test "${ac_cv_header_stdc+set}" = set; then
10843 echo $ECHO_N "(cached) $ECHO_C" >&6
10845 cat >conftest.$ac_ext <<_ACEOF
10848 cat confdefs.h >>conftest.$ac_ext
10849 cat >>conftest.$ac_ext <<_ACEOF
10850 /* end confdefs.h. */
10851 #include <stdlib.h>
10852 #include <stdarg.h>
10853 #include <string.h>
10864 rm -f conftest.$ac_objext
10865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10866 (eval $ac_compile) 2>conftest.er1
10868 grep -v '^ *+' conftest.er1 >conftest.err
10870 cat conftest.err >&5
10871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10872 (exit $ac_status); } &&
10873 { ac_try='test -z "$ac_c_werror_flag"
10874 || test ! -s conftest.err'
10875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10876 (eval $ac_try) 2>&5
10878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10879 (exit $ac_status); }; } &&
10880 { ac_try='test -s conftest.$ac_objext'
10881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10882 (eval $ac_try) 2>&5
10884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10885 (exit $ac_status); }; }; then
10886 ac_cv_header_stdc=yes
10888 echo "$as_me: failed program was:" >&5
10889 sed 's/^/| /' conftest.$ac_ext >&5
10891 ac_cv_header_stdc=no
10893 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10895 if test $ac_cv_header_stdc = yes; then
10896 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10897 cat >conftest.$ac_ext <<_ACEOF
10900 cat confdefs.h >>conftest.$ac_ext
10901 cat >>conftest.$ac_ext <<_ACEOF
10902 /* end confdefs.h. */
10903 #include <string.h>
10906 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10907 $EGREP "memchr" >/dev/null 2>&1; then
10910 ac_cv_header_stdc=no
10916 if test $ac_cv_header_stdc = yes; then
10917 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10918 cat >conftest.$ac_ext <<_ACEOF
10921 cat confdefs.h >>conftest.$ac_ext
10922 cat >>conftest.$ac_ext <<_ACEOF
10923 /* end confdefs.h. */
10924 #include <stdlib.h>
10927 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10928 $EGREP "free" >/dev/null 2>&1; then
10931 ac_cv_header_stdc=no
10937 if test $ac_cv_header_stdc = yes; then
10938 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10939 if test "$cross_compiling" = yes; then
10942 cat >conftest.$ac_ext <<_ACEOF
10945 cat confdefs.h >>conftest.$ac_ext
10946 cat >>conftest.$ac_ext <<_ACEOF
10947 /* end confdefs.h. */
10949 #if ((' ' & 0x0FF) == 0x020)
10950 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10951 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10953 # define ISLOWER(c) \
10954 (('a' <= (c) && (c) <= 'i') \
10955 || ('j' <= (c) && (c) <= 'r') \
10956 || ('s' <= (c) && (c) <= 'z'))
10957 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10960 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10965 for (i = 0; i < 256; i++)
10966 if (XOR (islower (i), ISLOWER (i))
10967 || toupper (i) != TOUPPER (i))
10972 rm -f conftest$ac_exeext
10973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10974 (eval $ac_link) 2>&5
10976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10977 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10979 (eval $ac_try) 2>&5
10981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10982 (exit $ac_status); }; }; then
10985 echo "$as_me: program exited with status $ac_status" >&5
10986 echo "$as_me: failed program was:" >&5
10987 sed 's/^/| /' conftest.$ac_ext >&5
10989 ( exit $ac_status )
10990 ac_cv_header_stdc=no
10992 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10996 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10997 echo "${ECHO_T}$ac_cv_header_stdc" >&6
10998 if test $ac_cv_header_stdc = yes; then
11000 cat >>confdefs.h <<\_ACEOF
11001 #define STDC_HEADERS 1
11006 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
11007 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
11008 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
11009 echo $ECHO_N "(cached) $ECHO_C" >&6
11011 cat >conftest.$ac_ext <<_ACEOF
11014 cat confdefs.h >>conftest.$ac_ext
11015 cat >>conftest.$ac_ext <<_ACEOF
11016 /* end confdefs.h. */
11017 #include <sys/types.h>
11021 return makedev(0, 0);
11026 rm -f conftest.$ac_objext conftest$ac_exeext
11027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11028 (eval $ac_link) 2>conftest.er1
11030 grep -v '^ *+' conftest.er1 >conftest.err
11032 cat conftest.err >&5
11033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11034 (exit $ac_status); } &&
11035 { ac_try='test -z "$ac_c_werror_flag"
11036 || test ! -s conftest.err'
11037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11038 (eval $ac_try) 2>&5
11040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11041 (exit $ac_status); }; } &&
11042 { ac_try='test -s conftest$ac_exeext'
11043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11044 (eval $ac_try) 2>&5
11046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11047 (exit $ac_status); }; }; then
11048 ac_cv_header_sys_types_h_makedev=yes
11050 echo "$as_me: failed program was:" >&5
11051 sed 's/^/| /' conftest.$ac_ext >&5
11053 ac_cv_header_sys_types_h_makedev=no
11055 rm -f conftest.err conftest.$ac_objext \
11056 conftest$ac_exeext conftest.$ac_ext
11059 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
11060 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
11062 if test $ac_cv_header_sys_types_h_makedev = no; then
11063 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
11064 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
11065 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
11066 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
11067 echo $ECHO_N "(cached) $ECHO_C" >&6
11069 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
11070 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
11072 # Is the header compilable?
11073 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
11074 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
11075 cat >conftest.$ac_ext <<_ACEOF
11078 cat confdefs.h >>conftest.$ac_ext
11079 cat >>conftest.$ac_ext <<_ACEOF
11080 /* end confdefs.h. */
11081 $ac_includes_default
11082 #include <sys/mkdev.h>
11084 rm -f conftest.$ac_objext
11085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11086 (eval $ac_compile) 2>conftest.er1
11088 grep -v '^ *+' conftest.er1 >conftest.err
11090 cat conftest.err >&5
11091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11092 (exit $ac_status); } &&
11093 { ac_try='test -z "$ac_c_werror_flag"
11094 || test ! -s conftest.err'
11095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11096 (eval $ac_try) 2>&5
11098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11099 (exit $ac_status); }; } &&
11100 { ac_try='test -s conftest.$ac_objext'
11101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11102 (eval $ac_try) 2>&5
11104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11105 (exit $ac_status); }; }; then
11106 ac_header_compiler=yes
11108 echo "$as_me: failed program was:" >&5
11109 sed 's/^/| /' conftest.$ac_ext >&5
11111 ac_header_compiler=no
11113 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11114 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11115 echo "${ECHO_T}$ac_header_compiler" >&6
11117 # Is the header present?
11118 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
11119 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
11120 cat >conftest.$ac_ext <<_ACEOF
11123 cat confdefs.h >>conftest.$ac_ext
11124 cat >>conftest.$ac_ext <<_ACEOF
11125 /* end confdefs.h. */
11126 #include <sys/mkdev.h>
11128 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11129 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11131 grep -v '^ *+' conftest.er1 >conftest.err
11133 cat conftest.err >&5
11134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11135 (exit $ac_status); } >/dev/null; then
11136 if test -s conftest.err; then
11137 ac_cpp_err=$ac_c_preproc_warn_flag
11138 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11145 if test -z "$ac_cpp_err"; then
11146 ac_header_preproc=yes
11148 echo "$as_me: failed program was:" >&5
11149 sed 's/^/| /' conftest.$ac_ext >&5
11151 ac_header_preproc=no
11153 rm -f conftest.err conftest.$ac_ext
11154 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11155 echo "${ECHO_T}$ac_header_preproc" >&6
11157 # So? What about this header?
11158 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11160 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
11161 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11162 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
11163 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
11164 ac_header_preproc=yes
11167 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
11168 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
11169 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
11170 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
11171 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
11172 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
11173 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
11174 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
11175 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
11176 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
11177 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
11178 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
11181 ## ------------------------------------------ ##
11182 ## Report this to the AC_PACKAGE_NAME lists. ##
11183 ## ------------------------------------------ ##
11186 sed "s/^/$as_me: WARNING: /" >&2
11189 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
11190 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
11191 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
11192 echo $ECHO_N "(cached) $ECHO_C" >&6
11194 ac_cv_header_sys_mkdev_h=$ac_header_preproc
11196 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
11197 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
11200 if test $ac_cv_header_sys_mkdev_h = yes; then
11202 cat >>confdefs.h <<\_ACEOF
11203 #define MAJOR_IN_MKDEV 1
11210 if test $ac_cv_header_sys_mkdev_h = no; then
11211 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
11212 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
11213 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
11214 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
11215 echo $ECHO_N "(cached) $ECHO_C" >&6
11217 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
11218 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
11220 # Is the header compilable?
11221 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
11222 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
11223 cat >conftest.$ac_ext <<_ACEOF
11226 cat confdefs.h >>conftest.$ac_ext
11227 cat >>conftest.$ac_ext <<_ACEOF
11228 /* end confdefs.h. */
11229 $ac_includes_default
11230 #include <sys/sysmacros.h>
11232 rm -f conftest.$ac_objext
11233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11234 (eval $ac_compile) 2>conftest.er1
11236 grep -v '^ *+' conftest.er1 >conftest.err
11238 cat conftest.err >&5
11239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11240 (exit $ac_status); } &&
11241 { ac_try='test -z "$ac_c_werror_flag"
11242 || test ! -s conftest.err'
11243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11244 (eval $ac_try) 2>&5
11246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11247 (exit $ac_status); }; } &&
11248 { ac_try='test -s conftest.$ac_objext'
11249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11250 (eval $ac_try) 2>&5
11252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11253 (exit $ac_status); }; }; then
11254 ac_header_compiler=yes
11256 echo "$as_me: failed program was:" >&5
11257 sed 's/^/| /' conftest.$ac_ext >&5
11259 ac_header_compiler=no
11261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11262 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11263 echo "${ECHO_T}$ac_header_compiler" >&6
11265 # Is the header present?
11266 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
11267 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
11268 cat >conftest.$ac_ext <<_ACEOF
11271 cat confdefs.h >>conftest.$ac_ext
11272 cat >>conftest.$ac_ext <<_ACEOF
11273 /* end confdefs.h. */
11274 #include <sys/sysmacros.h>
11276 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11277 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11279 grep -v '^ *+' conftest.er1 >conftest.err
11281 cat conftest.err >&5
11282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11283 (exit $ac_status); } >/dev/null; then
11284 if test -s conftest.err; then
11285 ac_cpp_err=$ac_c_preproc_warn_flag
11286 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11293 if test -z "$ac_cpp_err"; then
11294 ac_header_preproc=yes
11296 echo "$as_me: failed program was:" >&5
11297 sed 's/^/| /' conftest.$ac_ext >&5
11299 ac_header_preproc=no
11301 rm -f conftest.err conftest.$ac_ext
11302 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11303 echo "${ECHO_T}$ac_header_preproc" >&6
11305 # So? What about this header?
11306 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11308 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
11309 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11310 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
11311 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
11312 ac_header_preproc=yes
11315 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
11316 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
11317 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
11318 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
11319 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
11320 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
11321 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
11322 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
11323 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
11324 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
11325 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
11326 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
11329 ## ------------------------------------------ ##
11330 ## Report this to the AC_PACKAGE_NAME lists. ##
11331 ## ------------------------------------------ ##
11334 sed "s/^/$as_me: WARNING: /" >&2
11337 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
11338 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
11339 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
11340 echo $ECHO_N "(cached) $ECHO_C" >&6
11342 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
11344 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
11345 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
11348 if test $ac_cv_header_sys_sysmacros_h = yes; then
11350 cat >>confdefs.h <<\_ACEOF
11351 #define MAJOR_IN_SYSMACROS 1
11365 ac_header_dirent=no
11366 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11367 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11368 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
11369 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
11370 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11371 echo $ECHO_N "(cached) $ECHO_C" >&6
11373 cat >conftest.$ac_ext <<_ACEOF
11376 cat confdefs.h >>conftest.$ac_ext
11377 cat >>conftest.$ac_ext <<_ACEOF
11378 /* end confdefs.h. */
11379 #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>conftest.er1
11395 grep -v '^ *+' conftest.er1 >conftest.err
11397 cat conftest.err >&5
11398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11399 (exit $ac_status); } &&
11400 { ac_try='test -z "$ac_c_werror_flag"
11401 || test ! -s conftest.err'
11402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11403 (eval $ac_try) 2>&5
11405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11406 (exit $ac_status); }; } &&
11407 { ac_try='test -s conftest.$ac_objext'
11408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11409 (eval $ac_try) 2>&5
11411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11412 (exit $ac_status); }; }; then
11413 eval "$as_ac_Header=yes"
11415 echo "$as_me: failed program was:" >&5
11416 sed 's/^/| /' conftest.$ac_ext >&5
11418 eval "$as_ac_Header=no"
11420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11422 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11423 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11424 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11425 cat >>confdefs.h <<_ACEOF
11426 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11429 ac_header_dirent=$ac_hdr; break
11433 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11434 if test $ac_header_dirent = dirent.h; then
11435 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11436 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11437 if test "${ac_cv_search_opendir+set}" = set; then
11438 echo $ECHO_N "(cached) $ECHO_C" >&6
11440 ac_func_search_save_LIBS=$LIBS
11441 ac_cv_search_opendir=no
11442 cat >conftest.$ac_ext <<_ACEOF
11445 cat confdefs.h >>conftest.$ac_ext
11446 cat >>conftest.$ac_ext <<_ACEOF
11447 /* end confdefs.h. */
11449 /* Override any gcc2 internal prototype to avoid an error. */
11453 /* We use char because int might match the return type of a gcc2
11454 builtin and then its argument prototype would still apply. */
11464 rm -f conftest.$ac_objext conftest$ac_exeext
11465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11466 (eval $ac_link) 2>conftest.er1
11468 grep -v '^ *+' conftest.er1 >conftest.err
11470 cat conftest.err >&5
11471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11472 (exit $ac_status); } &&
11473 { ac_try='test -z "$ac_c_werror_flag"
11474 || test ! -s conftest.err'
11475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11476 (eval $ac_try) 2>&5
11478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11479 (exit $ac_status); }; } &&
11480 { ac_try='test -s conftest$ac_exeext'
11481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11482 (eval $ac_try) 2>&5
11484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11485 (exit $ac_status); }; }; then
11486 ac_cv_search_opendir="none required"
11488 echo "$as_me: failed program was:" >&5
11489 sed 's/^/| /' conftest.$ac_ext >&5
11492 rm -f conftest.err conftest.$ac_objext \
11493 conftest$ac_exeext conftest.$ac_ext
11494 if test "$ac_cv_search_opendir" = no; then
11495 for ac_lib in dir; do
11496 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11497 cat >conftest.$ac_ext <<_ACEOF
11500 cat confdefs.h >>conftest.$ac_ext
11501 cat >>conftest.$ac_ext <<_ACEOF
11502 /* end confdefs.h. */
11504 /* Override any gcc2 internal prototype to avoid an error. */
11508 /* We use char because int might match the return type of a gcc2
11509 builtin and then its argument prototype would still apply. */
11519 rm -f conftest.$ac_objext conftest$ac_exeext
11520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11521 (eval $ac_link) 2>conftest.er1
11523 grep -v '^ *+' conftest.er1 >conftest.err
11525 cat conftest.err >&5
11526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11527 (exit $ac_status); } &&
11528 { ac_try='test -z "$ac_c_werror_flag"
11529 || test ! -s conftest.err'
11530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11531 (eval $ac_try) 2>&5
11533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11534 (exit $ac_status); }; } &&
11535 { ac_try='test -s conftest$ac_exeext'
11536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11537 (eval $ac_try) 2>&5
11539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11540 (exit $ac_status); }; }; then
11541 ac_cv_search_opendir="-l$ac_lib"
11544 echo "$as_me: failed program was:" >&5
11545 sed 's/^/| /' conftest.$ac_ext >&5
11548 rm -f conftest.err conftest.$ac_objext \
11549 conftest$ac_exeext conftest.$ac_ext
11552 LIBS=$ac_func_search_save_LIBS
11554 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11555 echo "${ECHO_T}$ac_cv_search_opendir" >&6
11556 if test "$ac_cv_search_opendir" != no; then
11557 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11562 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11563 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11564 if test "${ac_cv_search_opendir+set}" = set; then
11565 echo $ECHO_N "(cached) $ECHO_C" >&6
11567 ac_func_search_save_LIBS=$LIBS
11568 ac_cv_search_opendir=no
11569 cat >conftest.$ac_ext <<_ACEOF
11572 cat confdefs.h >>conftest.$ac_ext
11573 cat >>conftest.$ac_ext <<_ACEOF
11574 /* end confdefs.h. */
11576 /* Override any gcc2 internal prototype to avoid an error. */
11580 /* We use char because int might match the return type of a gcc2
11581 builtin and then its argument prototype would still apply. */
11591 rm -f conftest.$ac_objext conftest$ac_exeext
11592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11593 (eval $ac_link) 2>conftest.er1
11595 grep -v '^ *+' conftest.er1 >conftest.err
11597 cat conftest.err >&5
11598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11599 (exit $ac_status); } &&
11600 { ac_try='test -z "$ac_c_werror_flag"
11601 || test ! -s conftest.err'
11602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11603 (eval $ac_try) 2>&5
11605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11606 (exit $ac_status); }; } &&
11607 { ac_try='test -s conftest$ac_exeext'
11608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11609 (eval $ac_try) 2>&5
11611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11612 (exit $ac_status); }; }; then
11613 ac_cv_search_opendir="none required"
11615 echo "$as_me: failed program was:" >&5
11616 sed 's/^/| /' conftest.$ac_ext >&5
11619 rm -f conftest.err conftest.$ac_objext \
11620 conftest$ac_exeext conftest.$ac_ext
11621 if test "$ac_cv_search_opendir" = no; then
11622 for ac_lib in x; do
11623 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11624 cat >conftest.$ac_ext <<_ACEOF
11627 cat confdefs.h >>conftest.$ac_ext
11628 cat >>conftest.$ac_ext <<_ACEOF
11629 /* end confdefs.h. */
11631 /* Override any gcc2 internal prototype to avoid an error. */
11635 /* We use char because int might match the return type of a gcc2
11636 builtin and then its argument prototype would still apply. */
11646 rm -f conftest.$ac_objext conftest$ac_exeext
11647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11648 (eval $ac_link) 2>conftest.er1
11650 grep -v '^ *+' conftest.er1 >conftest.err
11652 cat conftest.err >&5
11653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11654 (exit $ac_status); } &&
11655 { ac_try='test -z "$ac_c_werror_flag"
11656 || test ! -s conftest.err'
11657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11658 (eval $ac_try) 2>&5
11660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11661 (exit $ac_status); }; } &&
11662 { ac_try='test -s conftest$ac_exeext'
11663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11664 (eval $ac_try) 2>&5
11666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11667 (exit $ac_status); }; }; then
11668 ac_cv_search_opendir="-l$ac_lib"
11671 echo "$as_me: failed program was:" >&5
11672 sed 's/^/| /' conftest.$ac_ext >&5
11675 rm -f conftest.err conftest.$ac_objext \
11676 conftest$ac_exeext conftest.$ac_ext
11679 LIBS=$ac_func_search_save_LIBS
11681 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11682 echo "${ECHO_T}$ac_cv_search_opendir" >&6
11683 if test "$ac_cv_search_opendir" != no; then
11684 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11690 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
11691 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
11692 if test "${ac_cv_header_stat_broken+set}" = set; then
11693 echo $ECHO_N "(cached) $ECHO_C" >&6
11695 cat >conftest.$ac_ext <<_ACEOF
11698 cat confdefs.h >>conftest.$ac_ext
11699 cat >>conftest.$ac_ext <<_ACEOF
11700 /* end confdefs.h. */
11701 #include <sys/types.h>
11702 #include <sys/stat.h>
11704 #if defined(S_ISBLK) && defined(S_IFDIR)
11705 # if S_ISBLK (S_IFDIR)
11710 #if defined(S_ISBLK) && defined(S_IFCHR)
11711 # if S_ISBLK (S_IFCHR)
11716 #if defined(S_ISLNK) && defined(S_IFREG)
11717 # if S_ISLNK (S_IFREG)
11722 #if defined(S_ISSOCK) && defined(S_IFREG)
11723 # if S_ISSOCK (S_IFREG)
11729 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11730 $EGREP "You lose" >/dev/null 2>&1; then
11731 ac_cv_header_stat_broken=yes
11733 ac_cv_header_stat_broken=no
11738 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
11739 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
11740 if test $ac_cv_header_stat_broken = yes; then
11742 cat >>confdefs.h <<\_ACEOF
11743 #define STAT_MACROS_BROKEN 1
11748 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
11749 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
11750 if test "${ac_cv_header_sys_wait_h+set}" = set; then
11751 echo $ECHO_N "(cached) $ECHO_C" >&6
11753 cat >conftest.$ac_ext <<_ACEOF
11756 cat confdefs.h >>conftest.$ac_ext
11757 cat >>conftest.$ac_ext <<_ACEOF
11758 /* end confdefs.h. */
11759 #include <sys/types.h>
11760 #include <sys/wait.h>
11761 #ifndef WEXITSTATUS
11762 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
11765 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
11773 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11778 rm -f conftest.$ac_objext
11779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11780 (eval $ac_compile) 2>conftest.er1
11782 grep -v '^ *+' conftest.er1 >conftest.err
11784 cat conftest.err >&5
11785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786 (exit $ac_status); } &&
11787 { ac_try='test -z "$ac_c_werror_flag"
11788 || test ! -s conftest.err'
11789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11790 (eval $ac_try) 2>&5
11792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793 (exit $ac_status); }; } &&
11794 { ac_try='test -s conftest.$ac_objext'
11795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11796 (eval $ac_try) 2>&5
11798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11799 (exit $ac_status); }; }; then
11800 ac_cv_header_sys_wait_h=yes
11802 echo "$as_me: failed program was:" >&5
11803 sed 's/^/| /' conftest.$ac_ext >&5
11805 ac_cv_header_sys_wait_h=no
11807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11809 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
11810 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
11811 if test $ac_cv_header_sys_wait_h = yes; then
11813 cat >>confdefs.h <<\_ACEOF
11814 #define HAVE_SYS_WAIT_H 1
11819 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11820 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
11821 if test "${ac_cv_header_time+set}" = set; then
11822 echo $ECHO_N "(cached) $ECHO_C" >&6
11824 cat >conftest.$ac_ext <<_ACEOF
11827 cat confdefs.h >>conftest.$ac_ext
11828 cat >>conftest.$ac_ext <<_ACEOF
11829 /* end confdefs.h. */
11830 #include <sys/types.h>
11831 #include <sys/time.h>
11837 if ((struct tm *) 0)
11843 rm -f conftest.$ac_objext
11844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11845 (eval $ac_compile) 2>conftest.er1
11847 grep -v '^ *+' conftest.er1 >conftest.err
11849 cat conftest.err >&5
11850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11851 (exit $ac_status); } &&
11852 { ac_try='test -z "$ac_c_werror_flag"
11853 || test ! -s conftest.err'
11854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11855 (eval $ac_try) 2>&5
11857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11858 (exit $ac_status); }; } &&
11859 { ac_try='test -s conftest.$ac_objext'
11860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11861 (eval $ac_try) 2>&5
11863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11864 (exit $ac_status); }; }; then
11865 ac_cv_header_time=yes
11867 echo "$as_me: failed program was:" >&5
11868 sed 's/^/| /' conftest.$ac_ext >&5
11870 ac_cv_header_time=no
11872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11874 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11875 echo "${ECHO_T}$ac_cv_header_time" >&6
11876 if test $ac_cv_header_time = yes; then
11878 cat >>confdefs.h <<\_ACEOF
11879 #define TIME_WITH_SYS_TIME 1
11885 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
11886 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
11887 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
11888 echo $ECHO_N "(cached) $ECHO_C" >&6
11890 cat >conftest.$ac_ext <<_ACEOF
11893 cat confdefs.h >>conftest.$ac_ext
11894 cat >>conftest.$ac_ext <<_ACEOF
11895 /* end confdefs.h. */
11896 $ac_includes_default
11900 static struct stat ac_aggr;
11901 if (ac_aggr.st_blksize)
11907 rm -f conftest.$ac_objext
11908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11909 (eval $ac_compile) 2>conftest.er1
11911 grep -v '^ *+' conftest.er1 >conftest.err
11913 cat conftest.err >&5
11914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915 (exit $ac_status); } &&
11916 { ac_try='test -z "$ac_c_werror_flag"
11917 || test ! -s conftest.err'
11918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11919 (eval $ac_try) 2>&5
11921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11922 (exit $ac_status); }; } &&
11923 { ac_try='test -s conftest.$ac_objext'
11924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11925 (eval $ac_try) 2>&5
11927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11928 (exit $ac_status); }; }; then
11929 ac_cv_member_struct_stat_st_blksize=yes
11931 echo "$as_me: failed program was:" >&5
11932 sed 's/^/| /' conftest.$ac_ext >&5
11934 cat >conftest.$ac_ext <<_ACEOF
11937 cat confdefs.h >>conftest.$ac_ext
11938 cat >>conftest.$ac_ext <<_ACEOF
11939 /* end confdefs.h. */
11940 $ac_includes_default
11944 static struct stat ac_aggr;
11945 if (sizeof ac_aggr.st_blksize)
11951 rm -f conftest.$ac_objext
11952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11953 (eval $ac_compile) 2>conftest.er1
11955 grep -v '^ *+' conftest.er1 >conftest.err
11957 cat conftest.err >&5
11958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11959 (exit $ac_status); } &&
11960 { ac_try='test -z "$ac_c_werror_flag"
11961 || test ! -s conftest.err'
11962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11963 (eval $ac_try) 2>&5
11965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11966 (exit $ac_status); }; } &&
11967 { ac_try='test -s conftest.$ac_objext'
11968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11969 (eval $ac_try) 2>&5
11971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11972 (exit $ac_status); }; }; then
11973 ac_cv_member_struct_stat_st_blksize=yes
11975 echo "$as_me: failed program was:" >&5
11976 sed 's/^/| /' conftest.$ac_ext >&5
11978 ac_cv_member_struct_stat_st_blksize=no
11980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11982 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11984 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
11985 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
11986 if test $ac_cv_member_struct_stat_st_blksize = yes; then
11988 cat >>confdefs.h <<_ACEOF
11989 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
11993 cat >>confdefs.h <<\_ACEOF
11994 #define HAVE_ST_BLKSIZE 1
12000 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
12001 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
12002 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
12003 echo $ECHO_N "(cached) $ECHO_C" >&6
12005 cat >conftest.$ac_ext <<_ACEOF
12008 cat confdefs.h >>conftest.$ac_ext
12009 cat >>conftest.$ac_ext <<_ACEOF
12010 /* end confdefs.h. */
12011 $ac_includes_default
12015 static struct stat ac_aggr;
12016 if (ac_aggr.st_blocks)
12022 rm -f conftest.$ac_objext
12023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12024 (eval $ac_compile) 2>conftest.er1
12026 grep -v '^ *+' conftest.er1 >conftest.err
12028 cat conftest.err >&5
12029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12030 (exit $ac_status); } &&
12031 { ac_try='test -z "$ac_c_werror_flag"
12032 || test ! -s conftest.err'
12033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12034 (eval $ac_try) 2>&5
12036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12037 (exit $ac_status); }; } &&
12038 { ac_try='test -s conftest.$ac_objext'
12039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12040 (eval $ac_try) 2>&5
12042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043 (exit $ac_status); }; }; then
12044 ac_cv_member_struct_stat_st_blocks=yes
12046 echo "$as_me: failed program was:" >&5
12047 sed 's/^/| /' conftest.$ac_ext >&5
12049 cat >conftest.$ac_ext <<_ACEOF
12052 cat confdefs.h >>conftest.$ac_ext
12053 cat >>conftest.$ac_ext <<_ACEOF
12054 /* end confdefs.h. */
12055 $ac_includes_default
12059 static struct stat ac_aggr;
12060 if (sizeof ac_aggr.st_blocks)
12066 rm -f conftest.$ac_objext
12067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12068 (eval $ac_compile) 2>conftest.er1
12070 grep -v '^ *+' conftest.er1 >conftest.err
12072 cat conftest.err >&5
12073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12074 (exit $ac_status); } &&
12075 { ac_try='test -z "$ac_c_werror_flag"
12076 || test ! -s conftest.err'
12077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12078 (eval $ac_try) 2>&5
12080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081 (exit $ac_status); }; } &&
12082 { ac_try='test -s conftest.$ac_objext'
12083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12084 (eval $ac_try) 2>&5
12086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12087 (exit $ac_status); }; }; then
12088 ac_cv_member_struct_stat_st_blocks=yes
12090 echo "$as_me: failed program was:" >&5
12091 sed 's/^/| /' conftest.$ac_ext >&5
12093 ac_cv_member_struct_stat_st_blocks=no
12095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12099 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
12100 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
12101 if test $ac_cv_member_struct_stat_st_blocks = yes; then
12103 cat >>confdefs.h <<_ACEOF
12104 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12108 cat >>confdefs.h <<\_ACEOF
12109 #define HAVE_ST_BLOCKS 1
12114 "fileblocks.$ac_objext" | \
12115 *" fileblocks.$ac_objext" | \
12116 "fileblocks.$ac_objext "* | \
12117 *" fileblocks.$ac_objext "* ) ;;
12118 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
12124 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12125 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
12126 if test "${ac_cv_struct_tm+set}" = set; then
12127 echo $ECHO_N "(cached) $ECHO_C" >&6
12129 cat >conftest.$ac_ext <<_ACEOF
12132 cat confdefs.h >>conftest.$ac_ext
12133 cat >>conftest.$ac_ext <<_ACEOF
12134 /* end confdefs.h. */
12135 #include <sys/types.h>
12141 struct tm *tp; tp->tm_sec;
12146 rm -f conftest.$ac_objext
12147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12148 (eval $ac_compile) 2>conftest.er1
12150 grep -v '^ *+' conftest.er1 >conftest.err
12152 cat conftest.err >&5
12153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12154 (exit $ac_status); } &&
12155 { ac_try='test -z "$ac_c_werror_flag"
12156 || test ! -s conftest.err'
12157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12158 (eval $ac_try) 2>&5
12160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12161 (exit $ac_status); }; } &&
12162 { ac_try='test -s conftest.$ac_objext'
12163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12164 (eval $ac_try) 2>&5
12166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12167 (exit $ac_status); }; }; then
12168 ac_cv_struct_tm=time.h
12170 echo "$as_me: failed program was:" >&5
12171 sed 's/^/| /' conftest.$ac_ext >&5
12173 ac_cv_struct_tm=sys/time.h
12175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12177 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12178 echo "${ECHO_T}$ac_cv_struct_tm" >&6
12179 if test $ac_cv_struct_tm = sys/time.h; then
12181 cat >>confdefs.h <<\_ACEOF
12182 #define TM_IN_SYS_TIME 1
12187 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
12188 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
12189 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
12190 echo $ECHO_N "(cached) $ECHO_C" >&6
12192 cat >conftest.$ac_ext <<_ACEOF
12195 cat confdefs.h >>conftest.$ac_ext
12196 cat >>conftest.$ac_ext <<_ACEOF
12197 /* end confdefs.h. */
12198 #include <sys/types.h>
12199 #include <$ac_cv_struct_tm>
12205 static struct tm ac_aggr;
12206 if (ac_aggr.tm_zone)
12212 rm -f conftest.$ac_objext
12213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12214 (eval $ac_compile) 2>conftest.er1
12216 grep -v '^ *+' conftest.er1 >conftest.err
12218 cat conftest.err >&5
12219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12220 (exit $ac_status); } &&
12221 { ac_try='test -z "$ac_c_werror_flag"
12222 || test ! -s conftest.err'
12223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12224 (eval $ac_try) 2>&5
12226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227 (exit $ac_status); }; } &&
12228 { ac_try='test -s conftest.$ac_objext'
12229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12230 (eval $ac_try) 2>&5
12232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12233 (exit $ac_status); }; }; then
12234 ac_cv_member_struct_tm_tm_zone=yes
12236 echo "$as_me: failed program was:" >&5
12237 sed 's/^/| /' conftest.$ac_ext >&5
12239 cat >conftest.$ac_ext <<_ACEOF
12242 cat confdefs.h >>conftest.$ac_ext
12243 cat >>conftest.$ac_ext <<_ACEOF
12244 /* end confdefs.h. */
12245 #include <sys/types.h>
12246 #include <$ac_cv_struct_tm>
12252 static struct tm ac_aggr;
12253 if (sizeof ac_aggr.tm_zone)
12259 rm -f conftest.$ac_objext
12260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12261 (eval $ac_compile) 2>conftest.er1
12263 grep -v '^ *+' conftest.er1 >conftest.err
12265 cat conftest.err >&5
12266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12267 (exit $ac_status); } &&
12268 { ac_try='test -z "$ac_c_werror_flag"
12269 || test ! -s conftest.err'
12270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12271 (eval $ac_try) 2>&5
12273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12274 (exit $ac_status); }; } &&
12275 { ac_try='test -s conftest.$ac_objext'
12276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12277 (eval $ac_try) 2>&5
12279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12280 (exit $ac_status); }; }; then
12281 ac_cv_member_struct_tm_tm_zone=yes
12283 echo "$as_me: failed program was:" >&5
12284 sed 's/^/| /' conftest.$ac_ext >&5
12286 ac_cv_member_struct_tm_tm_zone=no
12288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12290 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12292 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
12293 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
12294 if test $ac_cv_member_struct_tm_tm_zone = yes; then
12296 cat >>confdefs.h <<_ACEOF
12297 #define HAVE_STRUCT_TM_TM_ZONE 1
12303 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
12305 cat >>confdefs.h <<\_ACEOF
12306 #define HAVE_TM_ZONE 1
12310 echo "$as_me:$LINENO: checking for tzname" >&5
12311 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
12312 if test "${ac_cv_var_tzname+set}" = set; then
12313 echo $ECHO_N "(cached) $ECHO_C" >&6
12315 cat >conftest.$ac_ext <<_ACEOF
12318 cat confdefs.h >>conftest.$ac_ext
12319 cat >>conftest.$ac_ext <<_ACEOF
12320 /* end confdefs.h. */
12322 #ifndef tzname /* For SGI. */
12323 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
12334 rm -f conftest.$ac_objext conftest$ac_exeext
12335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12336 (eval $ac_link) 2>conftest.er1
12338 grep -v '^ *+' conftest.er1 >conftest.err
12340 cat conftest.err >&5
12341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12342 (exit $ac_status); } &&
12343 { ac_try='test -z "$ac_c_werror_flag"
12344 || test ! -s conftest.err'
12345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12346 (eval $ac_try) 2>&5
12348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349 (exit $ac_status); }; } &&
12350 { ac_try='test -s conftest$ac_exeext'
12351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12352 (eval $ac_try) 2>&5
12354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12355 (exit $ac_status); }; }; then
12356 ac_cv_var_tzname=yes
12358 echo "$as_me: failed program was:" >&5
12359 sed 's/^/| /' conftest.$ac_ext >&5
12361 ac_cv_var_tzname=no
12363 rm -f conftest.err conftest.$ac_objext \
12364 conftest$ac_exeext conftest.$ac_ext
12366 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
12367 echo "${ECHO_T}$ac_cv_var_tzname" >&6
12368 if test $ac_cv_var_tzname = yes; then
12370 cat >>confdefs.h <<\_ACEOF
12371 #define HAVE_TZNAME 1
12378 echo "$as_me:$LINENO: checking for utime.h" >&5
12379 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
12380 if test "${ba_cv_header_utime_h+set}" = set; then
12381 echo $ECHO_N "(cached) $ECHO_C" >&6
12383 cat >conftest.$ac_ext <<_ACEOF
12386 cat confdefs.h >>conftest.$ac_ext
12387 cat >>conftest.$ac_ext <<_ACEOF
12388 /* end confdefs.h. */
12390 #include <sys/types.h>
12400 rm -f conftest.$ac_objext
12401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12402 (eval $ac_compile) 2>conftest.er1
12404 grep -v '^ *+' conftest.er1 >conftest.err
12406 cat conftest.err >&5
12407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12408 (exit $ac_status); } &&
12409 { ac_try='test -z "$ac_c_werror_flag"
12410 || test ! -s conftest.err'
12411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12412 (eval $ac_try) 2>&5
12414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12415 (exit $ac_status); }; } &&
12416 { ac_try='test -s conftest.$ac_objext'
12417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12418 (eval $ac_try) 2>&5
12420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12421 (exit $ac_status); }; }; then
12422 ba_cv_header_utime_h=yes
12424 echo "$as_me: failed program was:" >&5
12425 sed 's/^/| /' conftest.$ac_ext >&5
12427 ba_cv_header_utime_h=no
12429 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12431 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
12432 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
12433 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
12434 #define HAVE_UTIME_H 1
12438 echo "$as_me:$LINENO: checking for socklen_t" >&5
12439 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
12440 if test "${ba_cv_header_socklen_t+set}" = set; then
12441 echo $ECHO_N "(cached) $ECHO_C" >&6
12443 cat >conftest.$ac_ext <<_ACEOF
12446 cat confdefs.h >>conftest.$ac_ext
12447 cat >>conftest.$ac_ext <<_ACEOF
12448 /* end confdefs.h. */
12450 #include <sys/types.h>
12451 #include <sys/socket.h>
12460 rm -f conftest.$ac_objext
12461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12462 (eval $ac_compile) 2>conftest.er1
12464 grep -v '^ *+' conftest.er1 >conftest.err
12466 cat conftest.err >&5
12467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12468 (exit $ac_status); } &&
12469 { ac_try='test -z "$ac_c_werror_flag"
12470 || test ! -s conftest.err'
12471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12472 (eval $ac_try) 2>&5
12474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475 (exit $ac_status); }; } &&
12476 { ac_try='test -s conftest.$ac_objext'
12477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12478 (eval $ac_try) 2>&5
12480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481 (exit $ac_status); }; }; then
12482 ba_cv_header_socklen_t=yes
12484 echo "$as_me: failed program was:" >&5
12485 sed 's/^/| /' conftest.$ac_ext >&5
12487 ba_cv_header_socklen_t=no
12489 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12491 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
12492 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
12493 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
12494 #define HAVE_SOCKLEN_T 1
12498 echo "$as_me:$LINENO: checking for bigendian" >&5
12499 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
12500 if test "${ba_cv_bigendian+set}" = set; then
12501 echo $ECHO_N "(cached) $ECHO_C" >&6
12503 if test "$cross_compiling" = yes; then
12506 cat >conftest.$ac_ext <<_ACEOF
12509 cat confdefs.h >>conftest.$ac_ext
12510 cat >>conftest.$ac_ext <<_ACEOF
12511 /* end confdefs.h. */
12512 main(){long a=1L; char *p=(char *)&a; exit(*p);}
12514 rm -f conftest$ac_exeext
12515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12516 (eval $ac_link) 2>&5
12518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12519 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12521 (eval $ac_try) 2>&5
12523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12524 (exit $ac_status); }; }; then
12525 ba_cv_bigendian=yes
12527 echo "$as_me: program exited with status $ac_status" >&5
12528 echo "$as_me: failed program was:" >&5
12529 sed 's/^/| /' conftest.$ac_ext >&5
12531 ( exit $ac_status )
12534 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12537 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
12538 echo "${ECHO_T}$ba_cv_bigendian" >&6
12539 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
12540 #define HAVE_BIGENDIAN 1
12545 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12546 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12547 if test "${ac_cv_c_const+set}" = set; then
12548 echo $ECHO_N "(cached) $ECHO_C" >&6
12550 cat >conftest.$ac_ext <<_ACEOF
12553 cat confdefs.h >>conftest.$ac_ext
12554 cat >>conftest.$ac_ext <<_ACEOF
12555 /* end confdefs.h. */
12560 /* FIXME: Include the comments suggested by Paul. */
12561 #ifndef __cplusplus
12562 /* Ultrix mips cc rejects this. */
12563 typedef int charset[2];
12565 /* SunOS 4.1.1 cc rejects this. */
12566 char const *const *ccp;
12568 /* NEC SVR4.0.2 mips cc rejects this. */
12569 struct point {int x, y;};
12570 static struct point const zero = {0,0};
12571 /* AIX XL C 1.02.0.0 rejects this.
12572 It does not let you subtract one const X* pointer from another in
12573 an arm of an if-expression whose if-part is not a constant
12575 const char *g = "string";
12576 ccp = &g + (g ? g-g : 0);
12577 /* HPUX 7.0 cc rejects these. */
12580 ccp = (char const *const *) p;
12581 { /* SCO 3.2v4 cc rejects this. */
12583 char const *s = 0 ? (char *) 0 : (char const *) 0;
12587 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12588 int x[] = {25, 17};
12589 const int *foo = &x[0];
12592 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12593 typedef const int *iptr;
12597 { /* AIX XL C 1.02.0.0 rejects this saying
12598 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12599 struct s { int j; const int *ap[3]; };
12600 struct s *b; b->j = 5;
12602 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12603 const int foo = 10;
12611 rm -f conftest.$ac_objext
12612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12613 (eval $ac_compile) 2>conftest.er1
12615 grep -v '^ *+' conftest.er1 >conftest.err
12617 cat conftest.err >&5
12618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619 (exit $ac_status); } &&
12620 { ac_try='test -z "$ac_c_werror_flag"
12621 || test ! -s conftest.err'
12622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12623 (eval $ac_try) 2>&5
12625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12626 (exit $ac_status); }; } &&
12627 { ac_try='test -s conftest.$ac_objext'
12628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12629 (eval $ac_try) 2>&5
12631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12632 (exit $ac_status); }; }; then
12635 echo "$as_me: failed program was:" >&5
12636 sed 's/^/| /' conftest.$ac_ext >&5
12640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12642 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12643 echo "${ECHO_T}$ac_cv_c_const" >&6
12644 if test $ac_cv_c_const = no; then
12646 cat >>confdefs.h <<\_ACEOF
12654 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
12655 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
12657 # The order of these tests is important.
12658 cat >conftest.$ac_ext <<_ACEOF
12661 cat confdefs.h >>conftest.$ac_ext
12662 cat >>conftest.$ac_ext <<_ACEOF
12663 /* end confdefs.h. */
12664 #include <sys/statvfs.h>
12665 #include <sys/fstyp.h>
12667 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12668 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12670 grep -v '^ *+' conftest.er1 >conftest.err
12672 cat conftest.err >&5
12673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12674 (exit $ac_status); } >/dev/null; then
12675 if test -s conftest.err; then
12676 ac_cpp_err=$ac_c_preproc_warn_flag
12677 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12684 if test -z "$ac_cpp_err"; then
12685 cat >>confdefs.h <<\_ACEOF
12686 #define FSTYPE_STATVFS 1
12690 echo "$as_me: failed program was:" >&5
12691 sed 's/^/| /' conftest.$ac_ext >&5
12695 rm -f conftest.err conftest.$ac_ext
12696 if test $fstype = no; then
12697 cat >conftest.$ac_ext <<_ACEOF
12700 cat confdefs.h >>conftest.$ac_ext
12701 cat >>conftest.$ac_ext <<_ACEOF
12702 /* end confdefs.h. */
12703 #include <sys/statfs.h>
12704 #include <sys/fstyp.h>
12706 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12707 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12709 grep -v '^ *+' conftest.er1 >conftest.err
12711 cat conftest.err >&5
12712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12713 (exit $ac_status); } >/dev/null; then
12714 if test -s conftest.err; then
12715 ac_cpp_err=$ac_c_preproc_warn_flag
12716 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12723 if test -z "$ac_cpp_err"; then
12724 cat >>confdefs.h <<\_ACEOF
12725 #define FSTYPE_USG_STATFS 1
12729 echo "$as_me: failed program was:" >&5
12730 sed 's/^/| /' conftest.$ac_ext >&5
12734 rm -f conftest.err conftest.$ac_ext
12736 if test $fstype = no; then
12737 cat >conftest.$ac_ext <<_ACEOF
12740 cat confdefs.h >>conftest.$ac_ext
12741 cat >>conftest.$ac_ext <<_ACEOF
12742 /* end confdefs.h. */
12743 #include <sys/statfs.h>
12744 #include <sys/vmount.h>
12746 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12747 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12749 grep -v '^ *+' conftest.er1 >conftest.err
12751 cat conftest.err >&5
12752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12753 (exit $ac_status); } >/dev/null; then
12754 if test -s conftest.err; then
12755 ac_cpp_err=$ac_c_preproc_warn_flag
12756 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12763 if test -z "$ac_cpp_err"; then
12764 cat >>confdefs.h <<\_ACEOF
12765 #define FSTYPE_AIX_STATFS 1
12769 echo "$as_me: failed program was:" >&5
12770 sed 's/^/| /' conftest.$ac_ext >&5
12774 rm -f conftest.err conftest.$ac_ext
12776 if test $fstype = no; then
12777 cat >conftest.$ac_ext <<_ACEOF
12780 cat confdefs.h >>conftest.$ac_ext
12781 cat >>conftest.$ac_ext <<_ACEOF
12782 /* end confdefs.h. */
12783 #include <mntent.h>
12785 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12786 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12788 grep -v '^ *+' conftest.er1 >conftest.err
12790 cat conftest.err >&5
12791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12792 (exit $ac_status); } >/dev/null; then
12793 if test -s conftest.err; then
12794 ac_cpp_err=$ac_c_preproc_warn_flag
12795 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12802 if test -z "$ac_cpp_err"; then
12803 cat >>confdefs.h <<\_ACEOF
12804 #define FSTYPE_MNTENT 1
12808 echo "$as_me: failed program was:" >&5
12809 sed 's/^/| /' conftest.$ac_ext >&5
12813 rm -f conftest.err conftest.$ac_ext
12815 if test $fstype = no; then
12816 cat >conftest.$ac_ext <<_ACEOF
12819 cat confdefs.h >>conftest.$ac_ext
12820 cat >>conftest.$ac_ext <<_ACEOF
12821 /* end confdefs.h. */
12822 #include <sys/mount.h>
12825 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12826 $EGREP "f_type;" >/dev/null 2>&1; then
12827 cat >>confdefs.h <<\_ACEOF
12828 #define FSTYPE_STATFS 1
12835 if test $fstype = no; then
12836 cat >conftest.$ac_ext <<_ACEOF
12839 cat confdefs.h >>conftest.$ac_ext
12840 cat >>conftest.$ac_ext <<_ACEOF
12841 /* end confdefs.h. */
12842 #include <sys/mount.h>
12843 #include <sys/fs_types.h>
12845 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12846 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12848 grep -v '^ *+' conftest.er1 >conftest.err
12850 cat conftest.err >&5
12851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12852 (exit $ac_status); } >/dev/null; then
12853 if test -s conftest.err; then
12854 ac_cpp_err=$ac_c_preproc_warn_flag
12855 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12862 if test -z "$ac_cpp_err"; then
12863 cat >>confdefs.h <<\_ACEOF
12864 #define FSTYPE_GETMNT 1
12868 echo "$as_me: failed program was:" >&5
12869 sed 's/^/| /' conftest.$ac_ext >&5
12873 rm -f conftest.err conftest.$ac_ext
12875 echo "$as_me:$LINENO: result: $fstype" >&5
12876 echo "${ECHO_T}$fstype" >&6
12878 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12879 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
12880 if test "${ac_cv_type_signal+set}" = set; then
12881 echo $ECHO_N "(cached) $ECHO_C" >&6
12883 cat >conftest.$ac_ext <<_ACEOF
12886 cat confdefs.h >>conftest.$ac_ext
12887 cat >>conftest.$ac_ext <<_ACEOF
12888 /* end confdefs.h. */
12889 #include <sys/types.h>
12890 #include <signal.h>
12895 extern "C" void (*signal (int, void (*)(int)))(int);
12897 void (*signal ()) ();
12908 rm -f conftest.$ac_objext
12909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12910 (eval $ac_compile) 2>conftest.er1
12912 grep -v '^ *+' conftest.er1 >conftest.err
12914 cat conftest.err >&5
12915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12916 (exit $ac_status); } &&
12917 { ac_try='test -z "$ac_c_werror_flag"
12918 || test ! -s conftest.err'
12919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12920 (eval $ac_try) 2>&5
12922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12923 (exit $ac_status); }; } &&
12924 { ac_try='test -s conftest.$ac_objext'
12925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12926 (eval $ac_try) 2>&5
12928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12929 (exit $ac_status); }; }; then
12930 ac_cv_type_signal=void
12932 echo "$as_me: failed program was:" >&5
12933 sed 's/^/| /' conftest.$ac_ext >&5
12935 ac_cv_type_signal=int
12937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12939 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12940 echo "${ECHO_T}$ac_cv_type_signal" >&6
12942 cat >>confdefs.h <<_ACEOF
12943 #define RETSIGTYPE $ac_cv_type_signal
12948 echo "$as_me:$LINENO: checking for type of signal functions" >&5
12949 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
12950 if test "${bash_cv_signal_vintage+set}" = set; then
12951 echo $ECHO_N "(cached) $ECHO_C" >&6
12954 cat >conftest.$ac_ext <<_ACEOF
12957 cat confdefs.h >>conftest.$ac_ext
12958 cat >>conftest.$ac_ext <<_ACEOF
12959 /* end confdefs.h. */
12960 #include <signal.h>
12966 struct sigaction sa;
12967 sigemptyset(&ss); sigsuspend(&ss);
12968 sigaction(SIGINT, &sa, (struct sigaction *) 0);
12969 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
12975 rm -f conftest.$ac_objext conftest$ac_exeext
12976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12977 (eval $ac_link) 2>conftest.er1
12979 grep -v '^ *+' conftest.er1 >conftest.err
12981 cat conftest.err >&5
12982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12983 (exit $ac_status); } &&
12984 { ac_try='test -z "$ac_c_werror_flag"
12985 || test ! -s conftest.err'
12986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12987 (eval $ac_try) 2>&5
12989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12990 (exit $ac_status); }; } &&
12991 { ac_try='test -s conftest$ac_exeext'
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
12997 bash_cv_signal_vintage=posix
12999 echo "$as_me: failed program was:" >&5
13000 sed 's/^/| /' conftest.$ac_ext >&5
13003 cat >conftest.$ac_ext <<_ACEOF
13006 cat confdefs.h >>conftest.$ac_ext
13007 cat >>conftest.$ac_ext <<_ACEOF
13008 /* end confdefs.h. */
13009 #include <signal.h>
13014 int mask = sigmask(SIGINT);
13015 sigsetmask(mask); sigblock(mask); sigpause(mask);
13021 rm -f conftest.$ac_objext conftest$ac_exeext
13022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13023 (eval $ac_link) 2>conftest.er1
13025 grep -v '^ *+' conftest.er1 >conftest.err
13027 cat conftest.err >&5
13028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13029 (exit $ac_status); } &&
13030 { ac_try='test -z "$ac_c_werror_flag"
13031 || test ! -s conftest.err'
13032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13033 (eval $ac_try) 2>&5
13035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13036 (exit $ac_status); }; } &&
13037 { ac_try='test -s conftest$ac_exeext'
13038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13039 (eval $ac_try) 2>&5
13041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13042 (exit $ac_status); }; }; then
13043 bash_cv_signal_vintage=4.2bsd
13045 echo "$as_me: failed program was:" >&5
13046 sed 's/^/| /' conftest.$ac_ext >&5
13049 cat >conftest.$ac_ext <<_ACEOF
13052 cat confdefs.h >>conftest.$ac_ext
13053 cat >>conftest.$ac_ext <<_ACEOF
13054 /* end confdefs.h. */
13056 #include <signal.h>
13057 RETSIGTYPE foo() { }
13062 int mask = sigmask(SIGINT);
13063 sigset(SIGINT, foo); sigrelse(SIGINT);
13064 sighold(SIGINT); sigpause(SIGINT);
13070 rm -f conftest.$ac_objext conftest$ac_exeext
13071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13072 (eval $ac_link) 2>conftest.er1
13074 grep -v '^ *+' conftest.er1 >conftest.err
13076 cat conftest.err >&5
13077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13078 (exit $ac_status); } &&
13079 { ac_try='test -z "$ac_c_werror_flag"
13080 || test ! -s conftest.err'
13081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13082 (eval $ac_try) 2>&5
13084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13085 (exit $ac_status); }; } &&
13086 { ac_try='test -s conftest$ac_exeext'
13087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13088 (eval $ac_try) 2>&5
13090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13091 (exit $ac_status); }; }; then
13092 bash_cv_signal_vintage=svr3
13094 echo "$as_me: failed program was:" >&5
13095 sed 's/^/| /' conftest.$ac_ext >&5
13097 bash_cv_signal_vintage=v7
13100 rm -f conftest.err conftest.$ac_objext \
13101 conftest$ac_exeext conftest.$ac_ext
13104 rm -f conftest.err conftest.$ac_objext \
13105 conftest$ac_exeext conftest.$ac_ext
13108 rm -f conftest.err conftest.$ac_objext \
13109 conftest$ac_exeext conftest.$ac_ext
13113 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
13114 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
13115 if test "$bash_cv_signal_vintage" = posix; then
13116 cat >>confdefs.h <<\_ACEOF
13117 #define HAVE_POSIX_SIGNALS 1
13120 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
13121 cat >>confdefs.h <<\_ACEOF
13122 #define HAVE_BSD_SIGNALS 1
13125 elif test "$bash_cv_signal_vintage" = svr3; then
13126 cat >>confdefs.h <<\_ACEOF
13127 #define HAVE_USG_SIGHOLD 1
13132 echo "$as_me:$LINENO: checking for mode_t" >&5
13133 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
13134 if test "${ac_cv_type_mode_t+set}" = set; then
13135 echo $ECHO_N "(cached) $ECHO_C" >&6
13137 cat >conftest.$ac_ext <<_ACEOF
13140 cat confdefs.h >>conftest.$ac_ext
13141 cat >>conftest.$ac_ext <<_ACEOF
13142 /* end confdefs.h. */
13143 $ac_includes_default
13149 if (sizeof (mode_t))
13155 rm -f conftest.$ac_objext
13156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13157 (eval $ac_compile) 2>conftest.er1
13159 grep -v '^ *+' conftest.er1 >conftest.err
13161 cat conftest.err >&5
13162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13163 (exit $ac_status); } &&
13164 { ac_try='test -z "$ac_c_werror_flag"
13165 || test ! -s conftest.err'
13166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13167 (eval $ac_try) 2>&5
13169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13170 (exit $ac_status); }; } &&
13171 { ac_try='test -s conftest.$ac_objext'
13172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13173 (eval $ac_try) 2>&5
13175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13176 (exit $ac_status); }; }; then
13177 ac_cv_type_mode_t=yes
13179 echo "$as_me: failed program was:" >&5
13180 sed 's/^/| /' conftest.$ac_ext >&5
13182 ac_cv_type_mode_t=no
13184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13186 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
13187 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
13188 if test $ac_cv_type_mode_t = yes; then
13192 cat >>confdefs.h <<_ACEOF
13198 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
13199 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
13200 if test "${ac_cv_type_uid_t+set}" = set; then
13201 echo $ECHO_N "(cached) $ECHO_C" >&6
13203 cat >conftest.$ac_ext <<_ACEOF
13206 cat confdefs.h >>conftest.$ac_ext
13207 cat >>conftest.$ac_ext <<_ACEOF
13208 /* end confdefs.h. */
13209 #include <sys/types.h>
13212 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13213 $EGREP "uid_t" >/dev/null 2>&1; then
13214 ac_cv_type_uid_t=yes
13216 ac_cv_type_uid_t=no
13221 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
13222 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
13223 if test $ac_cv_type_uid_t = no; then
13225 cat >>confdefs.h <<\_ACEOF
13230 cat >>confdefs.h <<\_ACEOF
13236 echo "$as_me:$LINENO: checking for size_t" >&5
13237 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
13238 if test "${ac_cv_type_size_t+set}" = set; then
13239 echo $ECHO_N "(cached) $ECHO_C" >&6
13241 cat >conftest.$ac_ext <<_ACEOF
13244 cat confdefs.h >>conftest.$ac_ext
13245 cat >>conftest.$ac_ext <<_ACEOF
13246 /* end confdefs.h. */
13247 $ac_includes_default
13253 if (sizeof (size_t))
13259 rm -f conftest.$ac_objext
13260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13261 (eval $ac_compile) 2>conftest.er1
13263 grep -v '^ *+' conftest.er1 >conftest.err
13265 cat conftest.err >&5
13266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13267 (exit $ac_status); } &&
13268 { ac_try='test -z "$ac_c_werror_flag"
13269 || test ! -s conftest.err'
13270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13271 (eval $ac_try) 2>&5
13273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13274 (exit $ac_status); }; } &&
13275 { ac_try='test -s conftest.$ac_objext'
13276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13277 (eval $ac_try) 2>&5
13279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13280 (exit $ac_status); }; }; then
13281 ac_cv_type_size_t=yes
13283 echo "$as_me: failed program was:" >&5
13284 sed 's/^/| /' conftest.$ac_ext >&5
13286 ac_cv_type_size_t=no
13288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13290 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13291 echo "${ECHO_T}$ac_cv_type_size_t" >&6
13292 if test $ac_cv_type_size_t = yes; then
13296 cat >>confdefs.h <<_ACEOF
13297 #define size_t unsigned
13302 echo "$as_me:$LINENO: checking for pid_t" >&5
13303 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
13304 if test "${ac_cv_type_pid_t+set}" = set; then
13305 echo $ECHO_N "(cached) $ECHO_C" >&6
13307 cat >conftest.$ac_ext <<_ACEOF
13310 cat confdefs.h >>conftest.$ac_ext
13311 cat >>conftest.$ac_ext <<_ACEOF
13312 /* end confdefs.h. */
13313 $ac_includes_default
13319 if (sizeof (pid_t))
13325 rm -f conftest.$ac_objext
13326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13327 (eval $ac_compile) 2>conftest.er1
13329 grep -v '^ *+' conftest.er1 >conftest.err
13331 cat conftest.err >&5
13332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13333 (exit $ac_status); } &&
13334 { ac_try='test -z "$ac_c_werror_flag"
13335 || test ! -s conftest.err'
13336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13337 (eval $ac_try) 2>&5
13339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13340 (exit $ac_status); }; } &&
13341 { ac_try='test -s conftest.$ac_objext'
13342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13343 (eval $ac_try) 2>&5
13345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13346 (exit $ac_status); }; }; then
13347 ac_cv_type_pid_t=yes
13349 echo "$as_me: failed program was:" >&5
13350 sed 's/^/| /' conftest.$ac_ext >&5
13352 ac_cv_type_pid_t=no
13354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13356 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
13357 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
13358 if test $ac_cv_type_pid_t = yes; then
13362 cat >>confdefs.h <<_ACEOF
13368 echo "$as_me:$LINENO: checking for off_t" >&5
13369 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
13370 if test "${ac_cv_type_off_t+set}" = set; then
13371 echo $ECHO_N "(cached) $ECHO_C" >&6
13373 cat >conftest.$ac_ext <<_ACEOF
13376 cat confdefs.h >>conftest.$ac_ext
13377 cat >>conftest.$ac_ext <<_ACEOF
13378 /* end confdefs.h. */
13379 $ac_includes_default
13385 if (sizeof (off_t))
13391 rm -f conftest.$ac_objext
13392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13393 (eval $ac_compile) 2>conftest.er1
13395 grep -v '^ *+' conftest.er1 >conftest.err
13397 cat conftest.err >&5
13398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13399 (exit $ac_status); } &&
13400 { ac_try='test -z "$ac_c_werror_flag"
13401 || test ! -s conftest.err'
13402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13403 (eval $ac_try) 2>&5
13405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13406 (exit $ac_status); }; } &&
13407 { ac_try='test -s conftest.$ac_objext'
13408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13409 (eval $ac_try) 2>&5
13411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13412 (exit $ac_status); }; }; then
13413 ac_cv_type_off_t=yes
13415 echo "$as_me: failed program was:" >&5
13416 sed 's/^/| /' conftest.$ac_ext >&5
13418 ac_cv_type_off_t=no
13420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13422 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
13423 echo "${ECHO_T}$ac_cv_type_off_t" >&6
13424 if test $ac_cv_type_off_t = yes; then
13428 cat >>confdefs.h <<_ACEOF
13434 echo "$as_me:$LINENO: checking for ino_t" >&5
13435 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
13436 if test "${ac_cv_type_ino_t+set}" = set; then
13437 echo $ECHO_N "(cached) $ECHO_C" >&6
13439 cat >conftest.$ac_ext <<_ACEOF
13442 cat confdefs.h >>conftest.$ac_ext
13443 cat >>conftest.$ac_ext <<_ACEOF
13444 /* end confdefs.h. */
13445 $ac_includes_default
13451 if (sizeof (ino_t))
13457 rm -f conftest.$ac_objext
13458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13459 (eval $ac_compile) 2>conftest.er1
13461 grep -v '^ *+' conftest.er1 >conftest.err
13463 cat conftest.err >&5
13464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13465 (exit $ac_status); } &&
13466 { ac_try='test -z "$ac_c_werror_flag"
13467 || test ! -s conftest.err'
13468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13469 (eval $ac_try) 2>&5
13471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13472 (exit $ac_status); }; } &&
13473 { ac_try='test -s conftest.$ac_objext'
13474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13475 (eval $ac_try) 2>&5
13477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13478 (exit $ac_status); }; }; then
13479 ac_cv_type_ino_t=yes
13481 echo "$as_me: failed program was:" >&5
13482 sed 's/^/| /' conftest.$ac_ext >&5
13484 ac_cv_type_ino_t=no
13486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13488 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
13489 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
13490 if test $ac_cv_type_ino_t = yes; then
13494 cat >>confdefs.h <<_ACEOF
13495 #define ino_t unsigned long
13500 echo "$as_me:$LINENO: checking for dev_t" >&5
13501 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
13502 if test "${ac_cv_type_dev_t+set}" = set; then
13503 echo $ECHO_N "(cached) $ECHO_C" >&6
13505 cat >conftest.$ac_ext <<_ACEOF
13508 cat confdefs.h >>conftest.$ac_ext
13509 cat >>conftest.$ac_ext <<_ACEOF
13510 /* end confdefs.h. */
13511 $ac_includes_default
13517 if (sizeof (dev_t))
13523 rm -f conftest.$ac_objext
13524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13525 (eval $ac_compile) 2>conftest.er1
13527 grep -v '^ *+' conftest.er1 >conftest.err
13529 cat conftest.err >&5
13530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13531 (exit $ac_status); } &&
13532 { ac_try='test -z "$ac_c_werror_flag"
13533 || test ! -s conftest.err'
13534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13535 (eval $ac_try) 2>&5
13537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13538 (exit $ac_status); }; } &&
13539 { ac_try='test -s conftest.$ac_objext'
13540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13541 (eval $ac_try) 2>&5
13543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13544 (exit $ac_status); }; }; then
13545 ac_cv_type_dev_t=yes
13547 echo "$as_me: failed program was:" >&5
13548 sed 's/^/| /' conftest.$ac_ext >&5
13550 ac_cv_type_dev_t=no
13552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13554 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
13555 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
13556 if test $ac_cv_type_dev_t = yes; then
13560 cat >>confdefs.h <<_ACEOF
13561 #define dev_t unsigned long
13566 echo "$as_me:$LINENO: checking for daddr_t" >&5
13567 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
13568 if test "${ac_cv_type_daddr_t+set}" = set; then
13569 echo $ECHO_N "(cached) $ECHO_C" >&6
13571 cat >conftest.$ac_ext <<_ACEOF
13574 cat confdefs.h >>conftest.$ac_ext
13575 cat >>conftest.$ac_ext <<_ACEOF
13576 /* end confdefs.h. */
13577 $ac_includes_default
13583 if (sizeof (daddr_t))
13589 rm -f conftest.$ac_objext
13590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13591 (eval $ac_compile) 2>conftest.er1
13593 grep -v '^ *+' conftest.er1 >conftest.err
13595 cat conftest.err >&5
13596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13597 (exit $ac_status); } &&
13598 { ac_try='test -z "$ac_c_werror_flag"
13599 || test ! -s conftest.err'
13600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13601 (eval $ac_try) 2>&5
13603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13604 (exit $ac_status); }; } &&
13605 { ac_try='test -s conftest.$ac_objext'
13606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13607 (eval $ac_try) 2>&5
13609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13610 (exit $ac_status); }; }; then
13611 ac_cv_type_daddr_t=yes
13613 echo "$as_me: failed program was:" >&5
13614 sed 's/^/| /' conftest.$ac_ext >&5
13616 ac_cv_type_daddr_t=no
13618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13620 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
13621 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
13622 if test $ac_cv_type_daddr_t = yes; then
13626 cat >>confdefs.h <<_ACEOF
13627 #define daddr_t long
13632 echo "$as_me:$LINENO: checking for major_t" >&5
13633 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
13634 if test "${ac_cv_type_major_t+set}" = set; then
13635 echo $ECHO_N "(cached) $ECHO_C" >&6
13637 cat >conftest.$ac_ext <<_ACEOF
13640 cat confdefs.h >>conftest.$ac_ext
13641 cat >>conftest.$ac_ext <<_ACEOF
13642 /* end confdefs.h. */
13643 $ac_includes_default
13649 if (sizeof (major_t))
13655 rm -f conftest.$ac_objext
13656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13657 (eval $ac_compile) 2>conftest.er1
13659 grep -v '^ *+' conftest.er1 >conftest.err
13661 cat conftest.err >&5
13662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13663 (exit $ac_status); } &&
13664 { ac_try='test -z "$ac_c_werror_flag"
13665 || test ! -s conftest.err'
13666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13667 (eval $ac_try) 2>&5
13669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13670 (exit $ac_status); }; } &&
13671 { ac_try='test -s conftest.$ac_objext'
13672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13673 (eval $ac_try) 2>&5
13675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13676 (exit $ac_status); }; }; then
13677 ac_cv_type_major_t=yes
13679 echo "$as_me: failed program was:" >&5
13680 sed 's/^/| /' conftest.$ac_ext >&5
13682 ac_cv_type_major_t=no
13684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13686 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
13687 echo "${ECHO_T}$ac_cv_type_major_t" >&6
13688 if test $ac_cv_type_major_t = yes; then
13692 cat >>confdefs.h <<_ACEOF
13693 #define major_t int
13698 echo "$as_me:$LINENO: checking for minor_t" >&5
13699 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
13700 if test "${ac_cv_type_minor_t+set}" = set; then
13701 echo $ECHO_N "(cached) $ECHO_C" >&6
13703 cat >conftest.$ac_ext <<_ACEOF
13706 cat confdefs.h >>conftest.$ac_ext
13707 cat >>conftest.$ac_ext <<_ACEOF
13708 /* end confdefs.h. */
13709 $ac_includes_default
13715 if (sizeof (minor_t))
13721 rm -f conftest.$ac_objext
13722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13723 (eval $ac_compile) 2>conftest.er1
13725 grep -v '^ *+' conftest.er1 >conftest.err
13727 cat conftest.err >&5
13728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13729 (exit $ac_status); } &&
13730 { ac_try='test -z "$ac_c_werror_flag"
13731 || test ! -s conftest.err'
13732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13733 (eval $ac_try) 2>&5
13735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13736 (exit $ac_status); }; } &&
13737 { ac_try='test -s conftest.$ac_objext'
13738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13739 (eval $ac_try) 2>&5
13741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13742 (exit $ac_status); }; }; then
13743 ac_cv_type_minor_t=yes
13745 echo "$as_me: failed program was:" >&5
13746 sed 's/^/| /' conftest.$ac_ext >&5
13748 ac_cv_type_minor_t=no
13750 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13752 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
13753 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
13754 if test $ac_cv_type_minor_t = yes; then
13758 cat >>confdefs.h <<_ACEOF
13759 #define minor_t int
13764 echo "$as_me:$LINENO: checking for ssize_t" >&5
13765 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
13766 if test "${ac_cv_type_ssize_t+set}" = set; then
13767 echo $ECHO_N "(cached) $ECHO_C" >&6
13769 cat >conftest.$ac_ext <<_ACEOF
13772 cat confdefs.h >>conftest.$ac_ext
13773 cat >>conftest.$ac_ext <<_ACEOF
13774 /* end confdefs.h. */
13775 $ac_includes_default
13781 if (sizeof (ssize_t))
13787 rm -f conftest.$ac_objext
13788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13789 (eval $ac_compile) 2>conftest.er1
13791 grep -v '^ *+' conftest.er1 >conftest.err
13793 cat conftest.err >&5
13794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13795 (exit $ac_status); } &&
13796 { ac_try='test -z "$ac_c_werror_flag"
13797 || test ! -s conftest.err'
13798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13799 (eval $ac_try) 2>&5
13801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13802 (exit $ac_status); }; } &&
13803 { ac_try='test -s conftest.$ac_objext'
13804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13805 (eval $ac_try) 2>&5
13807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13808 (exit $ac_status); }; }; then
13809 ac_cv_type_ssize_t=yes
13811 echo "$as_me: failed program was:" >&5
13812 sed 's/^/| /' conftest.$ac_ext >&5
13814 ac_cv_type_ssize_t=no
13816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13818 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
13819 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
13820 if test $ac_cv_type_ssize_t = yes; then
13824 cat >>confdefs.h <<_ACEOF
13825 #define ssize_t int
13830 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
13831 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
13832 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
13833 echo $ECHO_N "(cached) $ECHO_C" >&6
13835 cat >conftest.$ac_ext <<_ACEOF
13838 cat confdefs.h >>conftest.$ac_ext
13839 cat >>conftest.$ac_ext <<_ACEOF
13840 /* end confdefs.h. */
13841 $ac_includes_default
13845 static struct stat ac_aggr;
13846 if (ac_aggr.st_blocks)
13852 rm -f conftest.$ac_objext
13853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13854 (eval $ac_compile) 2>conftest.er1
13856 grep -v '^ *+' conftest.er1 >conftest.err
13858 cat conftest.err >&5
13859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13860 (exit $ac_status); } &&
13861 { ac_try='test -z "$ac_c_werror_flag"
13862 || test ! -s conftest.err'
13863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13864 (eval $ac_try) 2>&5
13866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13867 (exit $ac_status); }; } &&
13868 { ac_try='test -s conftest.$ac_objext'
13869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13870 (eval $ac_try) 2>&5
13872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13873 (exit $ac_status); }; }; then
13874 ac_cv_member_struct_stat_st_blocks=yes
13876 echo "$as_me: failed program was:" >&5
13877 sed 's/^/| /' conftest.$ac_ext >&5
13879 cat >conftest.$ac_ext <<_ACEOF
13882 cat confdefs.h >>conftest.$ac_ext
13883 cat >>conftest.$ac_ext <<_ACEOF
13884 /* end confdefs.h. */
13885 $ac_includes_default
13889 static struct stat ac_aggr;
13890 if (sizeof ac_aggr.st_blocks)
13896 rm -f conftest.$ac_objext
13897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13898 (eval $ac_compile) 2>conftest.er1
13900 grep -v '^ *+' conftest.er1 >conftest.err
13902 cat conftest.err >&5
13903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13904 (exit $ac_status); } &&
13905 { ac_try='test -z "$ac_c_werror_flag"
13906 || test ! -s conftest.err'
13907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13908 (eval $ac_try) 2>&5
13910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13911 (exit $ac_status); }; } &&
13912 { ac_try='test -s conftest.$ac_objext'
13913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13914 (eval $ac_try) 2>&5
13916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13917 (exit $ac_status); }; }; then
13918 ac_cv_member_struct_stat_st_blocks=yes
13920 echo "$as_me: failed program was:" >&5
13921 sed 's/^/| /' conftest.$ac_ext >&5
13923 ac_cv_member_struct_stat_st_blocks=no
13925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13929 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
13930 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
13931 if test $ac_cv_member_struct_stat_st_blocks = yes; then
13933 cat >>confdefs.h <<_ACEOF
13934 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
13938 cat >>confdefs.h <<\_ACEOF
13939 #define HAVE_ST_BLOCKS 1
13944 "fileblocks.$ac_objext" | \
13945 *" fileblocks.$ac_objext" | \
13946 "fileblocks.$ac_objext "* | \
13947 *" fileblocks.$ac_objext "* ) ;;
13948 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
13955 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
13956 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
13957 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
13958 echo $ECHO_N "(cached) $ECHO_C" >&6
13960 cat >conftest.$ac_ext <<_ACEOF
13963 cat confdefs.h >>conftest.$ac_ext
13964 cat >>conftest.$ac_ext <<_ACEOF
13965 /* end confdefs.h. */
13966 $ac_includes_default
13970 static struct stat ac_aggr;
13971 if (ac_aggr.st_rdev)
13977 rm -f conftest.$ac_objext
13978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13979 (eval $ac_compile) 2>conftest.er1
13981 grep -v '^ *+' conftest.er1 >conftest.err
13983 cat conftest.err >&5
13984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13985 (exit $ac_status); } &&
13986 { ac_try='test -z "$ac_c_werror_flag"
13987 || test ! -s conftest.err'
13988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13989 (eval $ac_try) 2>&5
13991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13992 (exit $ac_status); }; } &&
13993 { ac_try='test -s conftest.$ac_objext'
13994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13995 (eval $ac_try) 2>&5
13997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13998 (exit $ac_status); }; }; then
13999 ac_cv_member_struct_stat_st_rdev=yes
14001 echo "$as_me: failed program was:" >&5
14002 sed 's/^/| /' conftest.$ac_ext >&5
14004 cat >conftest.$ac_ext <<_ACEOF
14007 cat confdefs.h >>conftest.$ac_ext
14008 cat >>conftest.$ac_ext <<_ACEOF
14009 /* end confdefs.h. */
14010 $ac_includes_default
14014 static struct stat ac_aggr;
14015 if (sizeof ac_aggr.st_rdev)
14021 rm -f conftest.$ac_objext
14022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14023 (eval $ac_compile) 2>conftest.er1
14025 grep -v '^ *+' conftest.er1 >conftest.err
14027 cat conftest.err >&5
14028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14029 (exit $ac_status); } &&
14030 { ac_try='test -z "$ac_c_werror_flag"
14031 || test ! -s conftest.err'
14032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14033 (eval $ac_try) 2>&5
14035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14036 (exit $ac_status); }; } &&
14037 { ac_try='test -s conftest.$ac_objext'
14038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14039 (eval $ac_try) 2>&5
14041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14042 (exit $ac_status); }; }; then
14043 ac_cv_member_struct_stat_st_rdev=yes
14045 echo "$as_me: failed program was:" >&5
14046 sed 's/^/| /' conftest.$ac_ext >&5
14048 ac_cv_member_struct_stat_st_rdev=no
14050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14052 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14054 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
14055 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
14056 if test $ac_cv_member_struct_stat_st_rdev = yes; then
14058 cat >>confdefs.h <<_ACEOF
14059 #define HAVE_STRUCT_STAT_ST_RDEV 1
14063 cat >>confdefs.h <<\_ACEOF
14064 #define HAVE_ST_RDEV 1
14070 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
14071 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
14072 if test "${ac_cv_struct_tm+set}" = set; then
14073 echo $ECHO_N "(cached) $ECHO_C" >&6
14075 cat >conftest.$ac_ext <<_ACEOF
14078 cat confdefs.h >>conftest.$ac_ext
14079 cat >>conftest.$ac_ext <<_ACEOF
14080 /* end confdefs.h. */
14081 #include <sys/types.h>
14087 struct tm *tp; tp->tm_sec;
14092 rm -f conftest.$ac_objext
14093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14094 (eval $ac_compile) 2>conftest.er1
14096 grep -v '^ *+' conftest.er1 >conftest.err
14098 cat conftest.err >&5
14099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14100 (exit $ac_status); } &&
14101 { ac_try='test -z "$ac_c_werror_flag"
14102 || test ! -s conftest.err'
14103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14104 (eval $ac_try) 2>&5
14106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107 (exit $ac_status); }; } &&
14108 { ac_try='test -s conftest.$ac_objext'
14109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14110 (eval $ac_try) 2>&5
14112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14113 (exit $ac_status); }; }; then
14114 ac_cv_struct_tm=time.h
14116 echo "$as_me: failed program was:" >&5
14117 sed 's/^/| /' conftest.$ac_ext >&5
14119 ac_cv_struct_tm=sys/time.h
14121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14123 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
14124 echo "${ECHO_T}$ac_cv_struct_tm" >&6
14125 if test $ac_cv_struct_tm = sys/time.h; then
14127 cat >>confdefs.h <<\_ACEOF
14128 #define TM_IN_SYS_TIME 1
14133 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14134 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14135 if test "${ac_cv_c_const+set}" = set; then
14136 echo $ECHO_N "(cached) $ECHO_C" >&6
14138 cat >conftest.$ac_ext <<_ACEOF
14141 cat confdefs.h >>conftest.$ac_ext
14142 cat >>conftest.$ac_ext <<_ACEOF
14143 /* end confdefs.h. */
14148 /* FIXME: Include the comments suggested by Paul. */
14149 #ifndef __cplusplus
14150 /* Ultrix mips cc rejects this. */
14151 typedef int charset[2];
14153 /* SunOS 4.1.1 cc rejects this. */
14154 char const *const *ccp;
14156 /* NEC SVR4.0.2 mips cc rejects this. */
14157 struct point {int x, y;};
14158 static struct point const zero = {0,0};
14159 /* AIX XL C 1.02.0.0 rejects this.
14160 It does not let you subtract one const X* pointer from another in
14161 an arm of an if-expression whose if-part is not a constant
14163 const char *g = "string";
14164 ccp = &g + (g ? g-g : 0);
14165 /* HPUX 7.0 cc rejects these. */
14168 ccp = (char const *const *) p;
14169 { /* SCO 3.2v4 cc rejects this. */
14171 char const *s = 0 ? (char *) 0 : (char const *) 0;
14175 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14176 int x[] = {25, 17};
14177 const int *foo = &x[0];
14180 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14181 typedef const int *iptr;
14185 { /* AIX XL C 1.02.0.0 rejects this saying
14186 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14187 struct s { int j; const int *ap[3]; };
14188 struct s *b; b->j = 5;
14190 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14191 const int foo = 10;
14199 rm -f conftest.$ac_objext
14200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14201 (eval $ac_compile) 2>conftest.er1
14203 grep -v '^ *+' conftest.er1 >conftest.err
14205 cat conftest.err >&5
14206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14207 (exit $ac_status); } &&
14208 { ac_try='test -z "$ac_c_werror_flag"
14209 || test ! -s conftest.err'
14210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14211 (eval $ac_try) 2>&5
14213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14214 (exit $ac_status); }; } &&
14215 { ac_try='test -s conftest.$ac_objext'
14216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14217 (eval $ac_try) 2>&5
14219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14220 (exit $ac_status); }; }; then
14223 echo "$as_me: failed program was:" >&5
14224 sed 's/^/| /' conftest.$ac_ext >&5
14228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14230 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14231 echo "${ECHO_T}$ac_cv_c_const" >&6
14232 if test $ac_cv_c_const = no; then
14234 cat >>confdefs.h <<\_ACEOF
14242 echo "$as_me:$LINENO: checking for char" >&5
14243 echo $ECHO_N "checking for char... $ECHO_C" >&6
14244 if test "${ac_cv_type_char+set}" = set; then
14245 echo $ECHO_N "(cached) $ECHO_C" >&6
14247 cat >conftest.$ac_ext <<_ACEOF
14250 cat confdefs.h >>conftest.$ac_ext
14251 cat >>conftest.$ac_ext <<_ACEOF
14252 /* end confdefs.h. */
14253 $ac_includes_default
14265 rm -f conftest.$ac_objext
14266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14267 (eval $ac_compile) 2>conftest.er1
14269 grep -v '^ *+' conftest.er1 >conftest.err
14271 cat conftest.err >&5
14272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14273 (exit $ac_status); } &&
14274 { ac_try='test -z "$ac_c_werror_flag"
14275 || test ! -s conftest.err'
14276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14277 (eval $ac_try) 2>&5
14279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14280 (exit $ac_status); }; } &&
14281 { ac_try='test -s conftest.$ac_objext'
14282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14283 (eval $ac_try) 2>&5
14285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14286 (exit $ac_status); }; }; then
14287 ac_cv_type_char=yes
14289 echo "$as_me: failed program was:" >&5
14290 sed 's/^/| /' conftest.$ac_ext >&5
14294 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14296 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14297 echo "${ECHO_T}$ac_cv_type_char" >&6
14299 echo "$as_me:$LINENO: checking size of char" >&5
14300 echo $ECHO_N "checking size of char... $ECHO_C" >&6
14301 if test "${ac_cv_sizeof_char+set}" = set; then
14302 echo $ECHO_N "(cached) $ECHO_C" >&6
14304 if test "$ac_cv_type_char" = yes; then
14305 # The cast to unsigned long works around a bug in the HP C Compiler
14306 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14307 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14308 # This bug is HP SR number 8606223364.
14309 if test "$cross_compiling" = yes; then
14310 # Depending upon the size, compute the lo and hi bounds.
14311 cat >conftest.$ac_ext <<_ACEOF
14314 cat confdefs.h >>conftest.$ac_ext
14315 cat >>conftest.$ac_ext <<_ACEOF
14316 /* end confdefs.h. */
14317 $ac_includes_default
14321 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
14328 rm -f conftest.$ac_objext
14329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14330 (eval $ac_compile) 2>conftest.er1
14332 grep -v '^ *+' conftest.er1 >conftest.err
14334 cat conftest.err >&5
14335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14336 (exit $ac_status); } &&
14337 { ac_try='test -z "$ac_c_werror_flag"
14338 || test ! -s conftest.err'
14339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14340 (eval $ac_try) 2>&5
14342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14343 (exit $ac_status); }; } &&
14344 { ac_try='test -s conftest.$ac_objext'
14345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14346 (eval $ac_try) 2>&5
14348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14349 (exit $ac_status); }; }; then
14352 cat >conftest.$ac_ext <<_ACEOF
14355 cat confdefs.h >>conftest.$ac_ext
14356 cat >>conftest.$ac_ext <<_ACEOF
14357 /* end confdefs.h. */
14358 $ac_includes_default
14362 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14369 rm -f conftest.$ac_objext
14370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14371 (eval $ac_compile) 2>conftest.er1
14373 grep -v '^ *+' conftest.er1 >conftest.err
14375 cat conftest.err >&5
14376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14377 (exit $ac_status); } &&
14378 { ac_try='test -z "$ac_c_werror_flag"
14379 || test ! -s conftest.err'
14380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14381 (eval $ac_try) 2>&5
14383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14384 (exit $ac_status); }; } &&
14385 { ac_try='test -s conftest.$ac_objext'
14386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14387 (eval $ac_try) 2>&5
14389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14390 (exit $ac_status); }; }; then
14391 ac_hi=$ac_mid; break
14393 echo "$as_me: failed program was:" >&5
14394 sed 's/^/| /' conftest.$ac_ext >&5
14396 ac_lo=`expr $ac_mid + 1`
14397 if test $ac_lo -le $ac_mid; then
14401 ac_mid=`expr 2 '*' $ac_mid + 1`
14403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14406 echo "$as_me: failed program was:" >&5
14407 sed 's/^/| /' conftest.$ac_ext >&5
14409 cat >conftest.$ac_ext <<_ACEOF
14412 cat confdefs.h >>conftest.$ac_ext
14413 cat >>conftest.$ac_ext <<_ACEOF
14414 /* end confdefs.h. */
14415 $ac_includes_default
14419 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
14426 rm -f conftest.$ac_objext
14427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14428 (eval $ac_compile) 2>conftest.er1
14430 grep -v '^ *+' conftest.er1 >conftest.err
14432 cat conftest.err >&5
14433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14434 (exit $ac_status); } &&
14435 { ac_try='test -z "$ac_c_werror_flag"
14436 || test ! -s conftest.err'
14437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14438 (eval $ac_try) 2>&5
14440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14441 (exit $ac_status); }; } &&
14442 { ac_try='test -s conftest.$ac_objext'
14443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14444 (eval $ac_try) 2>&5
14446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14447 (exit $ac_status); }; }; then
14450 cat >conftest.$ac_ext <<_ACEOF
14453 cat confdefs.h >>conftest.$ac_ext
14454 cat >>conftest.$ac_ext <<_ACEOF
14455 /* end confdefs.h. */
14456 $ac_includes_default
14460 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
14467 rm -f conftest.$ac_objext
14468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14469 (eval $ac_compile) 2>conftest.er1
14471 grep -v '^ *+' conftest.er1 >conftest.err
14473 cat conftest.err >&5
14474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14475 (exit $ac_status); } &&
14476 { ac_try='test -z "$ac_c_werror_flag"
14477 || test ! -s conftest.err'
14478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14479 (eval $ac_try) 2>&5
14481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14482 (exit $ac_status); }; } &&
14483 { ac_try='test -s conftest.$ac_objext'
14484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14485 (eval $ac_try) 2>&5
14487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14488 (exit $ac_status); }; }; then
14489 ac_lo=$ac_mid; break
14491 echo "$as_me: failed program was:" >&5
14492 sed 's/^/| /' conftest.$ac_ext >&5
14494 ac_hi=`expr '(' $ac_mid ')' - 1`
14495 if test $ac_mid -le $ac_hi; then
14499 ac_mid=`expr 2 '*' $ac_mid`
14501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14504 echo "$as_me: failed program was:" >&5
14505 sed 's/^/| /' conftest.$ac_ext >&5
14509 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14512 # Binary search between lo and hi bounds.
14513 while test "x$ac_lo" != "x$ac_hi"; do
14514 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14515 cat >conftest.$ac_ext <<_ACEOF
14518 cat confdefs.h >>conftest.$ac_ext
14519 cat >>conftest.$ac_ext <<_ACEOF
14520 /* end confdefs.h. */
14521 $ac_includes_default
14525 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14532 rm -f conftest.$ac_objext
14533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14534 (eval $ac_compile) 2>conftest.er1
14536 grep -v '^ *+' conftest.er1 >conftest.err
14538 cat conftest.err >&5
14539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14540 (exit $ac_status); } &&
14541 { ac_try='test -z "$ac_c_werror_flag"
14542 || test ! -s conftest.err'
14543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14544 (eval $ac_try) 2>&5
14546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14547 (exit $ac_status); }; } &&
14548 { ac_try='test -s conftest.$ac_objext'
14549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14550 (eval $ac_try) 2>&5
14552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14553 (exit $ac_status); }; }; then
14556 echo "$as_me: failed program was:" >&5
14557 sed 's/^/| /' conftest.$ac_ext >&5
14559 ac_lo=`expr '(' $ac_mid ')' + 1`
14561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14564 ?*) ac_cv_sizeof_char=$ac_lo;;
14565 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14566 See \`config.log' for more details." >&5
14567 echo "$as_me: error: cannot compute sizeof (char), 77
14568 See \`config.log' for more details." >&2;}
14569 { (exit 1); exit 1; }; } ;;
14572 if test "$cross_compiling" = yes; then
14573 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14574 See \`config.log' for more details." >&5
14575 echo "$as_me: error: cannot run test program while cross compiling
14576 See \`config.log' for more details." >&2;}
14577 { (exit 1); exit 1; }; }
14579 cat >conftest.$ac_ext <<_ACEOF
14582 cat confdefs.h >>conftest.$ac_ext
14583 cat >>conftest.$ac_ext <<_ACEOF
14584 /* end confdefs.h. */
14585 $ac_includes_default
14586 long longval () { return (long) (sizeof (char)); }
14587 unsigned long ulongval () { return (long) (sizeof (char)); }
14589 #include <stdlib.h>
14594 FILE *f = fopen ("conftest.val", "w");
14597 if (((long) (sizeof (char))) < 0)
14599 long i = longval ();
14600 if (i != ((long) (sizeof (char))))
14602 fprintf (f, "%ld\n", i);
14606 unsigned long i = ulongval ();
14607 if (i != ((long) (sizeof (char))))
14609 fprintf (f, "%lu\n", i);
14611 exit (ferror (f) || fclose (f) != 0);
14617 rm -f conftest$ac_exeext
14618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14619 (eval $ac_link) 2>&5
14621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14622 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14624 (eval $ac_try) 2>&5
14626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14627 (exit $ac_status); }; }; then
14628 ac_cv_sizeof_char=`cat conftest.val`
14630 echo "$as_me: program exited with status $ac_status" >&5
14631 echo "$as_me: failed program was:" >&5
14632 sed 's/^/| /' conftest.$ac_ext >&5
14634 ( exit $ac_status )
14635 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14636 See \`config.log' for more details." >&5
14637 echo "$as_me: error: cannot compute sizeof (char), 77
14638 See \`config.log' for more details." >&2;}
14639 { (exit 1); exit 1; }; }
14641 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14646 ac_cv_sizeof_char=0
14649 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14650 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14651 cat >>confdefs.h <<_ACEOF
14652 #define SIZEOF_CHAR $ac_cv_sizeof_char
14656 echo "$as_me:$LINENO: checking for short int" >&5
14657 echo $ECHO_N "checking for short int... $ECHO_C" >&6
14658 if test "${ac_cv_type_short_int+set}" = set; then
14659 echo $ECHO_N "(cached) $ECHO_C" >&6
14661 cat >conftest.$ac_ext <<_ACEOF
14664 cat confdefs.h >>conftest.$ac_ext
14665 cat >>conftest.$ac_ext <<_ACEOF
14666 /* end confdefs.h. */
14667 $ac_includes_default
14671 if ((short int *) 0)
14673 if (sizeof (short int))
14679 rm -f conftest.$ac_objext
14680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14681 (eval $ac_compile) 2>conftest.er1
14683 grep -v '^ *+' conftest.er1 >conftest.err
14685 cat conftest.err >&5
14686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14687 (exit $ac_status); } &&
14688 { ac_try='test -z "$ac_c_werror_flag"
14689 || test ! -s conftest.err'
14690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14691 (eval $ac_try) 2>&5
14693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14694 (exit $ac_status); }; } &&
14695 { ac_try='test -s conftest.$ac_objext'
14696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14697 (eval $ac_try) 2>&5
14699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14700 (exit $ac_status); }; }; then
14701 ac_cv_type_short_int=yes
14703 echo "$as_me: failed program was:" >&5
14704 sed 's/^/| /' conftest.$ac_ext >&5
14706 ac_cv_type_short_int=no
14708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14710 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
14711 echo "${ECHO_T}$ac_cv_type_short_int" >&6
14713 echo "$as_me:$LINENO: checking size of short int" >&5
14714 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
14715 if test "${ac_cv_sizeof_short_int+set}" = set; then
14716 echo $ECHO_N "(cached) $ECHO_C" >&6
14718 if test "$ac_cv_type_short_int" = yes; then
14719 # The cast to unsigned long works around a bug in the HP C Compiler
14720 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14721 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14722 # This bug is HP SR number 8606223364.
14723 if test "$cross_compiling" = yes; then
14724 # Depending upon the size, compute the lo and hi bounds.
14725 cat >conftest.$ac_ext <<_ACEOF
14728 cat confdefs.h >>conftest.$ac_ext
14729 cat >>conftest.$ac_ext <<_ACEOF
14730 /* end confdefs.h. */
14731 $ac_includes_default
14735 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
14742 rm -f conftest.$ac_objext
14743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14744 (eval $ac_compile) 2>conftest.er1
14746 grep -v '^ *+' conftest.er1 >conftest.err
14748 cat conftest.err >&5
14749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14750 (exit $ac_status); } &&
14751 { ac_try='test -z "$ac_c_werror_flag"
14752 || test ! -s conftest.err'
14753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14754 (eval $ac_try) 2>&5
14756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14757 (exit $ac_status); }; } &&
14758 { ac_try='test -s conftest.$ac_objext'
14759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14760 (eval $ac_try) 2>&5
14762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763 (exit $ac_status); }; }; then
14766 cat >conftest.$ac_ext <<_ACEOF
14769 cat confdefs.h >>conftest.$ac_ext
14770 cat >>conftest.$ac_ext <<_ACEOF
14771 /* end confdefs.h. */
14772 $ac_includes_default
14776 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
14783 rm -f conftest.$ac_objext
14784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14785 (eval $ac_compile) 2>conftest.er1
14787 grep -v '^ *+' conftest.er1 >conftest.err
14789 cat conftest.err >&5
14790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14791 (exit $ac_status); } &&
14792 { ac_try='test -z "$ac_c_werror_flag"
14793 || test ! -s conftest.err'
14794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14795 (eval $ac_try) 2>&5
14797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14798 (exit $ac_status); }; } &&
14799 { ac_try='test -s conftest.$ac_objext'
14800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14801 (eval $ac_try) 2>&5
14803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14804 (exit $ac_status); }; }; then
14805 ac_hi=$ac_mid; break
14807 echo "$as_me: failed program was:" >&5
14808 sed 's/^/| /' conftest.$ac_ext >&5
14810 ac_lo=`expr $ac_mid + 1`
14811 if test $ac_lo -le $ac_mid; then
14815 ac_mid=`expr 2 '*' $ac_mid + 1`
14817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14820 echo "$as_me: failed program was:" >&5
14821 sed 's/^/| /' conftest.$ac_ext >&5
14823 cat >conftest.$ac_ext <<_ACEOF
14826 cat confdefs.h >>conftest.$ac_ext
14827 cat >>conftest.$ac_ext <<_ACEOF
14828 /* end confdefs.h. */
14829 $ac_includes_default
14833 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
14840 rm -f conftest.$ac_objext
14841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14842 (eval $ac_compile) 2>conftest.er1
14844 grep -v '^ *+' conftest.er1 >conftest.err
14846 cat conftest.err >&5
14847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14848 (exit $ac_status); } &&
14849 { ac_try='test -z "$ac_c_werror_flag"
14850 || test ! -s conftest.err'
14851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14852 (eval $ac_try) 2>&5
14854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14855 (exit $ac_status); }; } &&
14856 { ac_try='test -s conftest.$ac_objext'
14857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14858 (eval $ac_try) 2>&5
14860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14861 (exit $ac_status); }; }; then
14864 cat >conftest.$ac_ext <<_ACEOF
14867 cat confdefs.h >>conftest.$ac_ext
14868 cat >>conftest.$ac_ext <<_ACEOF
14869 /* end confdefs.h. */
14870 $ac_includes_default
14874 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
14881 rm -f conftest.$ac_objext
14882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14883 (eval $ac_compile) 2>conftest.er1
14885 grep -v '^ *+' conftest.er1 >conftest.err
14887 cat conftest.err >&5
14888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14889 (exit $ac_status); } &&
14890 { ac_try='test -z "$ac_c_werror_flag"
14891 || test ! -s conftest.err'
14892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14893 (eval $ac_try) 2>&5
14895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14896 (exit $ac_status); }; } &&
14897 { ac_try='test -s conftest.$ac_objext'
14898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14899 (eval $ac_try) 2>&5
14901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14902 (exit $ac_status); }; }; then
14903 ac_lo=$ac_mid; break
14905 echo "$as_me: failed program was:" >&5
14906 sed 's/^/| /' conftest.$ac_ext >&5
14908 ac_hi=`expr '(' $ac_mid ')' - 1`
14909 if test $ac_mid -le $ac_hi; then
14913 ac_mid=`expr 2 '*' $ac_mid`
14915 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14918 echo "$as_me: failed program was:" >&5
14919 sed 's/^/| /' conftest.$ac_ext >&5
14923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14926 # Binary search between lo and hi bounds.
14927 while test "x$ac_lo" != "x$ac_hi"; do
14928 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14929 cat >conftest.$ac_ext <<_ACEOF
14932 cat confdefs.h >>conftest.$ac_ext
14933 cat >>conftest.$ac_ext <<_ACEOF
14934 /* end confdefs.h. */
14935 $ac_includes_default
14939 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
14946 rm -f conftest.$ac_objext
14947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14948 (eval $ac_compile) 2>conftest.er1
14950 grep -v '^ *+' conftest.er1 >conftest.err
14952 cat conftest.err >&5
14953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14954 (exit $ac_status); } &&
14955 { ac_try='test -z "$ac_c_werror_flag"
14956 || test ! -s conftest.err'
14957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14958 (eval $ac_try) 2>&5
14960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14961 (exit $ac_status); }; } &&
14962 { ac_try='test -s conftest.$ac_objext'
14963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14964 (eval $ac_try) 2>&5
14966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14967 (exit $ac_status); }; }; then
14970 echo "$as_me: failed program was:" >&5
14971 sed 's/^/| /' conftest.$ac_ext >&5
14973 ac_lo=`expr '(' $ac_mid ')' + 1`
14975 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14978 ?*) ac_cv_sizeof_short_int=$ac_lo;;
14979 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
14980 See \`config.log' for more details." >&5
14981 echo "$as_me: error: cannot compute sizeof (short int), 77
14982 See \`config.log' for more details." >&2;}
14983 { (exit 1); exit 1; }; } ;;
14986 if test "$cross_compiling" = yes; then
14987 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14988 See \`config.log' for more details." >&5
14989 echo "$as_me: error: cannot run test program while cross compiling
14990 See \`config.log' for more details." >&2;}
14991 { (exit 1); exit 1; }; }
14993 cat >conftest.$ac_ext <<_ACEOF
14996 cat confdefs.h >>conftest.$ac_ext
14997 cat >>conftest.$ac_ext <<_ACEOF
14998 /* end confdefs.h. */
14999 $ac_includes_default
15000 long longval () { return (long) (sizeof (short int)); }
15001 unsigned long ulongval () { return (long) (sizeof (short int)); }
15003 #include <stdlib.h>
15008 FILE *f = fopen ("conftest.val", "w");
15011 if (((long) (sizeof (short int))) < 0)
15013 long i = longval ();
15014 if (i != ((long) (sizeof (short int))))
15016 fprintf (f, "%ld\n", i);
15020 unsigned long i = ulongval ();
15021 if (i != ((long) (sizeof (short int))))
15023 fprintf (f, "%lu\n", i);
15025 exit (ferror (f) || fclose (f) != 0);
15031 rm -f conftest$ac_exeext
15032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15033 (eval $ac_link) 2>&5
15035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15036 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15038 (eval $ac_try) 2>&5
15040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15041 (exit $ac_status); }; }; then
15042 ac_cv_sizeof_short_int=`cat conftest.val`
15044 echo "$as_me: program exited with status $ac_status" >&5
15045 echo "$as_me: failed program was:" >&5
15046 sed 's/^/| /' conftest.$ac_ext >&5
15048 ( exit $ac_status )
15049 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
15050 See \`config.log' for more details." >&5
15051 echo "$as_me: error: cannot compute sizeof (short int), 77
15052 See \`config.log' for more details." >&2;}
15053 { (exit 1); exit 1; }; }
15055 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15060 ac_cv_sizeof_short_int=0
15063 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
15064 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
15065 cat >>confdefs.h <<_ACEOF
15066 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
15070 echo "$as_me:$LINENO: checking for int" >&5
15071 echo $ECHO_N "checking for int... $ECHO_C" >&6
15072 if test "${ac_cv_type_int+set}" = set; then
15073 echo $ECHO_N "(cached) $ECHO_C" >&6
15075 cat >conftest.$ac_ext <<_ACEOF
15078 cat confdefs.h >>conftest.$ac_ext
15079 cat >>conftest.$ac_ext <<_ACEOF
15080 /* end confdefs.h. */
15081 $ac_includes_default
15093 rm -f conftest.$ac_objext
15094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15095 (eval $ac_compile) 2>conftest.er1
15097 grep -v '^ *+' conftest.er1 >conftest.err
15099 cat conftest.err >&5
15100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15101 (exit $ac_status); } &&
15102 { ac_try='test -z "$ac_c_werror_flag"
15103 || test ! -s conftest.err'
15104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15105 (eval $ac_try) 2>&5
15107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15108 (exit $ac_status); }; } &&
15109 { ac_try='test -s conftest.$ac_objext'
15110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15111 (eval $ac_try) 2>&5
15113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15114 (exit $ac_status); }; }; then
15117 echo "$as_me: failed program was:" >&5
15118 sed 's/^/| /' conftest.$ac_ext >&5
15122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15124 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15125 echo "${ECHO_T}$ac_cv_type_int" >&6
15127 echo "$as_me:$LINENO: checking size of int" >&5
15128 echo $ECHO_N "checking size of int... $ECHO_C" >&6
15129 if test "${ac_cv_sizeof_int+set}" = set; then
15130 echo $ECHO_N "(cached) $ECHO_C" >&6
15132 if test "$ac_cv_type_int" = yes; then
15133 # The cast to unsigned long works around a bug in the HP C Compiler
15134 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15135 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15136 # This bug is HP SR number 8606223364.
15137 if test "$cross_compiling" = yes; then
15138 # Depending upon the size, compute the lo and hi bounds.
15139 cat >conftest.$ac_ext <<_ACEOF
15142 cat confdefs.h >>conftest.$ac_ext
15143 cat >>conftest.$ac_ext <<_ACEOF
15144 /* end confdefs.h. */
15145 $ac_includes_default
15149 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15156 rm -f conftest.$ac_objext
15157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15158 (eval $ac_compile) 2>conftest.er1
15160 grep -v '^ *+' conftest.er1 >conftest.err
15162 cat conftest.err >&5
15163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15164 (exit $ac_status); } &&
15165 { ac_try='test -z "$ac_c_werror_flag"
15166 || test ! -s conftest.err'
15167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15168 (eval $ac_try) 2>&5
15170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15171 (exit $ac_status); }; } &&
15172 { ac_try='test -s conftest.$ac_objext'
15173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15174 (eval $ac_try) 2>&5
15176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15177 (exit $ac_status); }; }; then
15180 cat >conftest.$ac_ext <<_ACEOF
15183 cat confdefs.h >>conftest.$ac_ext
15184 cat >>conftest.$ac_ext <<_ACEOF
15185 /* end confdefs.h. */
15186 $ac_includes_default
15190 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15197 rm -f conftest.$ac_objext
15198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15199 (eval $ac_compile) 2>conftest.er1
15201 grep -v '^ *+' conftest.er1 >conftest.err
15203 cat conftest.err >&5
15204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15205 (exit $ac_status); } &&
15206 { ac_try='test -z "$ac_c_werror_flag"
15207 || test ! -s conftest.err'
15208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15209 (eval $ac_try) 2>&5
15211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15212 (exit $ac_status); }; } &&
15213 { ac_try='test -s conftest.$ac_objext'
15214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15215 (eval $ac_try) 2>&5
15217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15218 (exit $ac_status); }; }; then
15219 ac_hi=$ac_mid; break
15221 echo "$as_me: failed program was:" >&5
15222 sed 's/^/| /' conftest.$ac_ext >&5
15224 ac_lo=`expr $ac_mid + 1`
15225 if test $ac_lo -le $ac_mid; then
15229 ac_mid=`expr 2 '*' $ac_mid + 1`
15231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15234 echo "$as_me: failed program was:" >&5
15235 sed 's/^/| /' conftest.$ac_ext >&5
15237 cat >conftest.$ac_ext <<_ACEOF
15240 cat confdefs.h >>conftest.$ac_ext
15241 cat >>conftest.$ac_ext <<_ACEOF
15242 /* end confdefs.h. */
15243 $ac_includes_default
15247 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15254 rm -f conftest.$ac_objext
15255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15256 (eval $ac_compile) 2>conftest.er1
15258 grep -v '^ *+' conftest.er1 >conftest.err
15260 cat conftest.err >&5
15261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15262 (exit $ac_status); } &&
15263 { ac_try='test -z "$ac_c_werror_flag"
15264 || test ! -s conftest.err'
15265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15266 (eval $ac_try) 2>&5
15268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15269 (exit $ac_status); }; } &&
15270 { ac_try='test -s conftest.$ac_objext'
15271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15272 (eval $ac_try) 2>&5
15274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15275 (exit $ac_status); }; }; then
15278 cat >conftest.$ac_ext <<_ACEOF
15281 cat confdefs.h >>conftest.$ac_ext
15282 cat >>conftest.$ac_ext <<_ACEOF
15283 /* end confdefs.h. */
15284 $ac_includes_default
15288 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15295 rm -f conftest.$ac_objext
15296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15297 (eval $ac_compile) 2>conftest.er1
15299 grep -v '^ *+' conftest.er1 >conftest.err
15301 cat conftest.err >&5
15302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15303 (exit $ac_status); } &&
15304 { ac_try='test -z "$ac_c_werror_flag"
15305 || test ! -s conftest.err'
15306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15307 (eval $ac_try) 2>&5
15309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15310 (exit $ac_status); }; } &&
15311 { ac_try='test -s conftest.$ac_objext'
15312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15313 (eval $ac_try) 2>&5
15315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15316 (exit $ac_status); }; }; then
15317 ac_lo=$ac_mid; break
15319 echo "$as_me: failed program was:" >&5
15320 sed 's/^/| /' conftest.$ac_ext >&5
15322 ac_hi=`expr '(' $ac_mid ')' - 1`
15323 if test $ac_mid -le $ac_hi; then
15327 ac_mid=`expr 2 '*' $ac_mid`
15329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15332 echo "$as_me: failed program was:" >&5
15333 sed 's/^/| /' conftest.$ac_ext >&5
15337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15340 # Binary search between lo and hi bounds.
15341 while test "x$ac_lo" != "x$ac_hi"; do
15342 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15343 cat >conftest.$ac_ext <<_ACEOF
15346 cat confdefs.h >>conftest.$ac_ext
15347 cat >>conftest.$ac_ext <<_ACEOF
15348 /* end confdefs.h. */
15349 $ac_includes_default
15353 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15360 rm -f conftest.$ac_objext
15361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15362 (eval $ac_compile) 2>conftest.er1
15364 grep -v '^ *+' conftest.er1 >conftest.err
15366 cat conftest.err >&5
15367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15368 (exit $ac_status); } &&
15369 { ac_try='test -z "$ac_c_werror_flag"
15370 || test ! -s conftest.err'
15371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15372 (eval $ac_try) 2>&5
15374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15375 (exit $ac_status); }; } &&
15376 { ac_try='test -s conftest.$ac_objext'
15377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15378 (eval $ac_try) 2>&5
15380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15381 (exit $ac_status); }; }; then
15384 echo "$as_me: failed program was:" >&5
15385 sed 's/^/| /' conftest.$ac_ext >&5
15387 ac_lo=`expr '(' $ac_mid ')' + 1`
15389 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15392 ?*) ac_cv_sizeof_int=$ac_lo;;
15393 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15394 See \`config.log' for more details." >&5
15395 echo "$as_me: error: cannot compute sizeof (int), 77
15396 See \`config.log' for more details." >&2;}
15397 { (exit 1); exit 1; }; } ;;
15400 if test "$cross_compiling" = yes; then
15401 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15402 See \`config.log' for more details." >&5
15403 echo "$as_me: error: cannot run test program while cross compiling
15404 See \`config.log' for more details." >&2;}
15405 { (exit 1); exit 1; }; }
15407 cat >conftest.$ac_ext <<_ACEOF
15410 cat confdefs.h >>conftest.$ac_ext
15411 cat >>conftest.$ac_ext <<_ACEOF
15412 /* end confdefs.h. */
15413 $ac_includes_default
15414 long longval () { return (long) (sizeof (int)); }
15415 unsigned long ulongval () { return (long) (sizeof (int)); }
15417 #include <stdlib.h>
15422 FILE *f = fopen ("conftest.val", "w");
15425 if (((long) (sizeof (int))) < 0)
15427 long i = longval ();
15428 if (i != ((long) (sizeof (int))))
15430 fprintf (f, "%ld\n", i);
15434 unsigned long i = ulongval ();
15435 if (i != ((long) (sizeof (int))))
15437 fprintf (f, "%lu\n", i);
15439 exit (ferror (f) || fclose (f) != 0);
15445 rm -f conftest$ac_exeext
15446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15447 (eval $ac_link) 2>&5
15449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15450 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15452 (eval $ac_try) 2>&5
15454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15455 (exit $ac_status); }; }; then
15456 ac_cv_sizeof_int=`cat conftest.val`
15458 echo "$as_me: program exited with status $ac_status" >&5
15459 echo "$as_me: failed program was:" >&5
15460 sed 's/^/| /' conftest.$ac_ext >&5
15462 ( exit $ac_status )
15463 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15464 See \`config.log' for more details." >&5
15465 echo "$as_me: error: cannot compute sizeof (int), 77
15466 See \`config.log' for more details." >&2;}
15467 { (exit 1); exit 1; }; }
15469 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15477 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15478 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15479 cat >>confdefs.h <<_ACEOF
15480 #define SIZEOF_INT $ac_cv_sizeof_int
15484 echo "$as_me:$LINENO: checking for long int" >&5
15485 echo $ECHO_N "checking for long int... $ECHO_C" >&6
15486 if test "${ac_cv_type_long_int+set}" = set; then
15487 echo $ECHO_N "(cached) $ECHO_C" >&6
15489 cat >conftest.$ac_ext <<_ACEOF
15492 cat confdefs.h >>conftest.$ac_ext
15493 cat >>conftest.$ac_ext <<_ACEOF
15494 /* end confdefs.h. */
15495 $ac_includes_default
15499 if ((long int *) 0)
15501 if (sizeof (long int))
15507 rm -f conftest.$ac_objext
15508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15509 (eval $ac_compile) 2>conftest.er1
15511 grep -v '^ *+' conftest.er1 >conftest.err
15513 cat conftest.err >&5
15514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15515 (exit $ac_status); } &&
15516 { ac_try='test -z "$ac_c_werror_flag"
15517 || test ! -s conftest.err'
15518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15519 (eval $ac_try) 2>&5
15521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15522 (exit $ac_status); }; } &&
15523 { ac_try='test -s conftest.$ac_objext'
15524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15525 (eval $ac_try) 2>&5
15527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15528 (exit $ac_status); }; }; then
15529 ac_cv_type_long_int=yes
15531 echo "$as_me: failed program was:" >&5
15532 sed 's/^/| /' conftest.$ac_ext >&5
15534 ac_cv_type_long_int=no
15536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15538 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
15539 echo "${ECHO_T}$ac_cv_type_long_int" >&6
15541 echo "$as_me:$LINENO: checking size of long int" >&5
15542 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
15543 if test "${ac_cv_sizeof_long_int+set}" = set; then
15544 echo $ECHO_N "(cached) $ECHO_C" >&6
15546 if test "$ac_cv_type_long_int" = yes; then
15547 # The cast to unsigned long works around a bug in the HP C Compiler
15548 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15549 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15550 # This bug is HP SR number 8606223364.
15551 if test "$cross_compiling" = yes; then
15552 # Depending upon the size, compute the lo and hi bounds.
15553 cat >conftest.$ac_ext <<_ACEOF
15556 cat confdefs.h >>conftest.$ac_ext
15557 cat >>conftest.$ac_ext <<_ACEOF
15558 /* end confdefs.h. */
15559 $ac_includes_default
15563 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
15570 rm -f conftest.$ac_objext
15571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15572 (eval $ac_compile) 2>conftest.er1
15574 grep -v '^ *+' conftest.er1 >conftest.err
15576 cat conftest.err >&5
15577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15578 (exit $ac_status); } &&
15579 { ac_try='test -z "$ac_c_werror_flag"
15580 || test ! -s conftest.err'
15581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15582 (eval $ac_try) 2>&5
15584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15585 (exit $ac_status); }; } &&
15586 { ac_try='test -s conftest.$ac_objext'
15587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15588 (eval $ac_try) 2>&5
15590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15591 (exit $ac_status); }; }; then
15594 cat >conftest.$ac_ext <<_ACEOF
15597 cat confdefs.h >>conftest.$ac_ext
15598 cat >>conftest.$ac_ext <<_ACEOF
15599 /* end confdefs.h. */
15600 $ac_includes_default
15604 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
15611 rm -f conftest.$ac_objext
15612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15613 (eval $ac_compile) 2>conftest.er1
15615 grep -v '^ *+' conftest.er1 >conftest.err
15617 cat conftest.err >&5
15618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15619 (exit $ac_status); } &&
15620 { ac_try='test -z "$ac_c_werror_flag"
15621 || test ! -s conftest.err'
15622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15623 (eval $ac_try) 2>&5
15625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15626 (exit $ac_status); }; } &&
15627 { ac_try='test -s conftest.$ac_objext'
15628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15629 (eval $ac_try) 2>&5
15631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15632 (exit $ac_status); }; }; then
15633 ac_hi=$ac_mid; break
15635 echo "$as_me: failed program was:" >&5
15636 sed 's/^/| /' conftest.$ac_ext >&5
15638 ac_lo=`expr $ac_mid + 1`
15639 if test $ac_lo -le $ac_mid; then
15643 ac_mid=`expr 2 '*' $ac_mid + 1`
15645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15648 echo "$as_me: failed program was:" >&5
15649 sed 's/^/| /' conftest.$ac_ext >&5
15651 cat >conftest.$ac_ext <<_ACEOF
15654 cat confdefs.h >>conftest.$ac_ext
15655 cat >>conftest.$ac_ext <<_ACEOF
15656 /* end confdefs.h. */
15657 $ac_includes_default
15661 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
15668 rm -f conftest.$ac_objext
15669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15670 (eval $ac_compile) 2>conftest.er1
15672 grep -v '^ *+' conftest.er1 >conftest.err
15674 cat conftest.err >&5
15675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15676 (exit $ac_status); } &&
15677 { ac_try='test -z "$ac_c_werror_flag"
15678 || test ! -s conftest.err'
15679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15680 (eval $ac_try) 2>&5
15682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15683 (exit $ac_status); }; } &&
15684 { ac_try='test -s conftest.$ac_objext'
15685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15686 (eval $ac_try) 2>&5
15688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15689 (exit $ac_status); }; }; then
15692 cat >conftest.$ac_ext <<_ACEOF
15695 cat confdefs.h >>conftest.$ac_ext
15696 cat >>conftest.$ac_ext <<_ACEOF
15697 /* end confdefs.h. */
15698 $ac_includes_default
15702 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
15709 rm -f conftest.$ac_objext
15710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15711 (eval $ac_compile) 2>conftest.er1
15713 grep -v '^ *+' conftest.er1 >conftest.err
15715 cat conftest.err >&5
15716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15717 (exit $ac_status); } &&
15718 { ac_try='test -z "$ac_c_werror_flag"
15719 || test ! -s conftest.err'
15720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15721 (eval $ac_try) 2>&5
15723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15724 (exit $ac_status); }; } &&
15725 { ac_try='test -s conftest.$ac_objext'
15726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15727 (eval $ac_try) 2>&5
15729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15730 (exit $ac_status); }; }; then
15731 ac_lo=$ac_mid; break
15733 echo "$as_me: failed program was:" >&5
15734 sed 's/^/| /' conftest.$ac_ext >&5
15736 ac_hi=`expr '(' $ac_mid ')' - 1`
15737 if test $ac_mid -le $ac_hi; then
15741 ac_mid=`expr 2 '*' $ac_mid`
15743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15746 echo "$as_me: failed program was:" >&5
15747 sed 's/^/| /' conftest.$ac_ext >&5
15751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15753 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15754 # Binary search between lo and hi bounds.
15755 while test "x$ac_lo" != "x$ac_hi"; do
15756 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15757 cat >conftest.$ac_ext <<_ACEOF
15760 cat confdefs.h >>conftest.$ac_ext
15761 cat >>conftest.$ac_ext <<_ACEOF
15762 /* end confdefs.h. */
15763 $ac_includes_default
15767 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
15774 rm -f conftest.$ac_objext
15775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15776 (eval $ac_compile) 2>conftest.er1
15778 grep -v '^ *+' conftest.er1 >conftest.err
15780 cat conftest.err >&5
15781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15782 (exit $ac_status); } &&
15783 { ac_try='test -z "$ac_c_werror_flag"
15784 || test ! -s conftest.err'
15785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15786 (eval $ac_try) 2>&5
15788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789 (exit $ac_status); }; } &&
15790 { ac_try='test -s conftest.$ac_objext'
15791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15792 (eval $ac_try) 2>&5
15794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15795 (exit $ac_status); }; }; then
15798 echo "$as_me: failed program was:" >&5
15799 sed 's/^/| /' conftest.$ac_ext >&5
15801 ac_lo=`expr '(' $ac_mid ')' + 1`
15803 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15806 ?*) ac_cv_sizeof_long_int=$ac_lo;;
15807 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
15808 See \`config.log' for more details." >&5
15809 echo "$as_me: error: cannot compute sizeof (long int), 77
15810 See \`config.log' for more details." >&2;}
15811 { (exit 1); exit 1; }; } ;;
15814 if test "$cross_compiling" = yes; then
15815 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15816 See \`config.log' for more details." >&5
15817 echo "$as_me: error: cannot run test program while cross compiling
15818 See \`config.log' for more details." >&2;}
15819 { (exit 1); exit 1; }; }
15821 cat >conftest.$ac_ext <<_ACEOF
15824 cat confdefs.h >>conftest.$ac_ext
15825 cat >>conftest.$ac_ext <<_ACEOF
15826 /* end confdefs.h. */
15827 $ac_includes_default
15828 long longval () { return (long) (sizeof (long int)); }
15829 unsigned long ulongval () { return (long) (sizeof (long int)); }
15831 #include <stdlib.h>
15836 FILE *f = fopen ("conftest.val", "w");
15839 if (((long) (sizeof (long int))) < 0)
15841 long i = longval ();
15842 if (i != ((long) (sizeof (long int))))
15844 fprintf (f, "%ld\n", i);
15848 unsigned long i = ulongval ();
15849 if (i != ((long) (sizeof (long int))))
15851 fprintf (f, "%lu\n", i);
15853 exit (ferror (f) || fclose (f) != 0);
15859 rm -f conftest$ac_exeext
15860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15861 (eval $ac_link) 2>&5
15863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15864 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15866 (eval $ac_try) 2>&5
15868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15869 (exit $ac_status); }; }; then
15870 ac_cv_sizeof_long_int=`cat conftest.val`
15872 echo "$as_me: program exited with status $ac_status" >&5
15873 echo "$as_me: failed program was:" >&5
15874 sed 's/^/| /' conftest.$ac_ext >&5
15876 ( exit $ac_status )
15877 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
15878 See \`config.log' for more details." >&5
15879 echo "$as_me: error: cannot compute sizeof (long int), 77
15880 See \`config.log' for more details." >&2;}
15881 { (exit 1); exit 1; }; }
15883 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15888 ac_cv_sizeof_long_int=0
15891 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
15892 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
15893 cat >>confdefs.h <<_ACEOF
15894 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
15898 echo "$as_me:$LINENO: checking for long long int" >&5
15899 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
15900 if test "${ac_cv_type_long_long_int+set}" = set; then
15901 echo $ECHO_N "(cached) $ECHO_C" >&6
15903 cat >conftest.$ac_ext <<_ACEOF
15906 cat confdefs.h >>conftest.$ac_ext
15907 cat >>conftest.$ac_ext <<_ACEOF
15908 /* end confdefs.h. */
15909 $ac_includes_default
15913 if ((long long int *) 0)
15915 if (sizeof (long long int))
15921 rm -f conftest.$ac_objext
15922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15923 (eval $ac_compile) 2>conftest.er1
15925 grep -v '^ *+' conftest.er1 >conftest.err
15927 cat conftest.err >&5
15928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15929 (exit $ac_status); } &&
15930 { ac_try='test -z "$ac_c_werror_flag"
15931 || test ! -s conftest.err'
15932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15933 (eval $ac_try) 2>&5
15935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15936 (exit $ac_status); }; } &&
15937 { ac_try='test -s conftest.$ac_objext'
15938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15939 (eval $ac_try) 2>&5
15941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15942 (exit $ac_status); }; }; then
15943 ac_cv_type_long_long_int=yes
15945 echo "$as_me: failed program was:" >&5
15946 sed 's/^/| /' conftest.$ac_ext >&5
15948 ac_cv_type_long_long_int=no
15950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15952 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
15953 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
15955 echo "$as_me:$LINENO: checking size of long long int" >&5
15956 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
15957 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
15958 echo $ECHO_N "(cached) $ECHO_C" >&6
15960 if test "$ac_cv_type_long_long_int" = yes; then
15961 # The cast to unsigned long works around a bug in the HP C Compiler
15962 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15963 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15964 # This bug is HP SR number 8606223364.
15965 if test "$cross_compiling" = yes; then
15966 # Depending upon the size, compute the lo and hi bounds.
15967 cat >conftest.$ac_ext <<_ACEOF
15970 cat confdefs.h >>conftest.$ac_ext
15971 cat >>conftest.$ac_ext <<_ACEOF
15972 /* end confdefs.h. */
15973 $ac_includes_default
15977 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
15984 rm -f conftest.$ac_objext
15985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15986 (eval $ac_compile) 2>conftest.er1
15988 grep -v '^ *+' conftest.er1 >conftest.err
15990 cat conftest.err >&5
15991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15992 (exit $ac_status); } &&
15993 { ac_try='test -z "$ac_c_werror_flag"
15994 || test ! -s conftest.err'
15995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15996 (eval $ac_try) 2>&5
15998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15999 (exit $ac_status); }; } &&
16000 { ac_try='test -s conftest.$ac_objext'
16001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16002 (eval $ac_try) 2>&5
16004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16005 (exit $ac_status); }; }; then
16008 cat >conftest.$ac_ext <<_ACEOF
16011 cat confdefs.h >>conftest.$ac_ext
16012 cat >>conftest.$ac_ext <<_ACEOF
16013 /* end confdefs.h. */
16014 $ac_includes_default
16018 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
16025 rm -f conftest.$ac_objext
16026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16027 (eval $ac_compile) 2>conftest.er1
16029 grep -v '^ *+' conftest.er1 >conftest.err
16031 cat conftest.err >&5
16032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16033 (exit $ac_status); } &&
16034 { ac_try='test -z "$ac_c_werror_flag"
16035 || test ! -s conftest.err'
16036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16037 (eval $ac_try) 2>&5
16039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16040 (exit $ac_status); }; } &&
16041 { ac_try='test -s conftest.$ac_objext'
16042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16043 (eval $ac_try) 2>&5
16045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16046 (exit $ac_status); }; }; then
16047 ac_hi=$ac_mid; break
16049 echo "$as_me: failed program was:" >&5
16050 sed 's/^/| /' conftest.$ac_ext >&5
16052 ac_lo=`expr $ac_mid + 1`
16053 if test $ac_lo -le $ac_mid; then
16057 ac_mid=`expr 2 '*' $ac_mid + 1`
16059 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16062 echo "$as_me: failed program was:" >&5
16063 sed 's/^/| /' conftest.$ac_ext >&5
16065 cat >conftest.$ac_ext <<_ACEOF
16068 cat confdefs.h >>conftest.$ac_ext
16069 cat >>conftest.$ac_ext <<_ACEOF
16070 /* end confdefs.h. */
16071 $ac_includes_default
16075 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
16082 rm -f conftest.$ac_objext
16083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16084 (eval $ac_compile) 2>conftest.er1
16086 grep -v '^ *+' conftest.er1 >conftest.err
16088 cat conftest.err >&5
16089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16090 (exit $ac_status); } &&
16091 { ac_try='test -z "$ac_c_werror_flag"
16092 || test ! -s conftest.err'
16093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16094 (eval $ac_try) 2>&5
16096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16097 (exit $ac_status); }; } &&
16098 { ac_try='test -s conftest.$ac_objext'
16099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16100 (eval $ac_try) 2>&5
16102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16103 (exit $ac_status); }; }; then
16106 cat >conftest.$ac_ext <<_ACEOF
16109 cat confdefs.h >>conftest.$ac_ext
16110 cat >>conftest.$ac_ext <<_ACEOF
16111 /* end confdefs.h. */
16112 $ac_includes_default
16116 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
16123 rm -f conftest.$ac_objext
16124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16125 (eval $ac_compile) 2>conftest.er1
16127 grep -v '^ *+' conftest.er1 >conftest.err
16129 cat conftest.err >&5
16130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16131 (exit $ac_status); } &&
16132 { ac_try='test -z "$ac_c_werror_flag"
16133 || test ! -s conftest.err'
16134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16135 (eval $ac_try) 2>&5
16137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16138 (exit $ac_status); }; } &&
16139 { ac_try='test -s conftest.$ac_objext'
16140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16141 (eval $ac_try) 2>&5
16143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16144 (exit $ac_status); }; }; then
16145 ac_lo=$ac_mid; break
16147 echo "$as_me: failed program was:" >&5
16148 sed 's/^/| /' conftest.$ac_ext >&5
16150 ac_hi=`expr '(' $ac_mid ')' - 1`
16151 if test $ac_mid -le $ac_hi; then
16155 ac_mid=`expr 2 '*' $ac_mid`
16157 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16160 echo "$as_me: failed program was:" >&5
16161 sed 's/^/| /' conftest.$ac_ext >&5
16165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16168 # Binary search between lo and hi bounds.
16169 while test "x$ac_lo" != "x$ac_hi"; do
16170 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16171 cat >conftest.$ac_ext <<_ACEOF
16174 cat confdefs.h >>conftest.$ac_ext
16175 cat >>conftest.$ac_ext <<_ACEOF
16176 /* end confdefs.h. */
16177 $ac_includes_default
16181 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
16188 rm -f conftest.$ac_objext
16189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16190 (eval $ac_compile) 2>conftest.er1
16192 grep -v '^ *+' conftest.er1 >conftest.err
16194 cat conftest.err >&5
16195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16196 (exit $ac_status); } &&
16197 { ac_try='test -z "$ac_c_werror_flag"
16198 || test ! -s conftest.err'
16199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16200 (eval $ac_try) 2>&5
16202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16203 (exit $ac_status); }; } &&
16204 { ac_try='test -s conftest.$ac_objext'
16205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16206 (eval $ac_try) 2>&5
16208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16209 (exit $ac_status); }; }; then
16212 echo "$as_me: failed program was:" >&5
16213 sed 's/^/| /' conftest.$ac_ext >&5
16215 ac_lo=`expr '(' $ac_mid ')' + 1`
16217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16220 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
16221 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
16222 See \`config.log' for more details." >&5
16223 echo "$as_me: error: cannot compute sizeof (long long int), 77
16224 See \`config.log' for more details." >&2;}
16225 { (exit 1); exit 1; }; } ;;
16228 if test "$cross_compiling" = yes; then
16229 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16230 See \`config.log' for more details." >&5
16231 echo "$as_me: error: cannot run test program while cross compiling
16232 See \`config.log' for more details." >&2;}
16233 { (exit 1); exit 1; }; }
16235 cat >conftest.$ac_ext <<_ACEOF
16238 cat confdefs.h >>conftest.$ac_ext
16239 cat >>conftest.$ac_ext <<_ACEOF
16240 /* end confdefs.h. */
16241 $ac_includes_default
16242 long longval () { return (long) (sizeof (long long int)); }
16243 unsigned long ulongval () { return (long) (sizeof (long long int)); }
16245 #include <stdlib.h>
16250 FILE *f = fopen ("conftest.val", "w");
16253 if (((long) (sizeof (long long int))) < 0)
16255 long i = longval ();
16256 if (i != ((long) (sizeof (long long int))))
16258 fprintf (f, "%ld\n", i);
16262 unsigned long i = ulongval ();
16263 if (i != ((long) (sizeof (long long int))))
16265 fprintf (f, "%lu\n", i);
16267 exit (ferror (f) || fclose (f) != 0);
16273 rm -f conftest$ac_exeext
16274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16275 (eval $ac_link) 2>&5
16277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16278 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16280 (eval $ac_try) 2>&5
16282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16283 (exit $ac_status); }; }; then
16284 ac_cv_sizeof_long_long_int=`cat conftest.val`
16286 echo "$as_me: program exited with status $ac_status" >&5
16287 echo "$as_me: failed program was:" >&5
16288 sed 's/^/| /' conftest.$ac_ext >&5
16290 ( exit $ac_status )
16291 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
16292 See \`config.log' for more details." >&5
16293 echo "$as_me: error: cannot compute sizeof (long long int), 77
16294 See \`config.log' for more details." >&2;}
16295 { (exit 1); exit 1; }; }
16297 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16302 ac_cv_sizeof_long_long_int=0
16305 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
16306 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
16307 cat >>confdefs.h <<_ACEOF
16308 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
16312 echo "$as_me:$LINENO: checking for int *" >&5
16313 echo $ECHO_N "checking for int *... $ECHO_C" >&6
16314 if test "${ac_cv_type_int_p+set}" = set; then
16315 echo $ECHO_N "(cached) $ECHO_C" >&6
16317 cat >conftest.$ac_ext <<_ACEOF
16320 cat confdefs.h >>conftest.$ac_ext
16321 cat >>conftest.$ac_ext <<_ACEOF
16322 /* end confdefs.h. */
16323 $ac_includes_default
16329 if (sizeof (int *))
16335 rm -f conftest.$ac_objext
16336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16337 (eval $ac_compile) 2>conftest.er1
16339 grep -v '^ *+' conftest.er1 >conftest.err
16341 cat conftest.err >&5
16342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16343 (exit $ac_status); } &&
16344 { ac_try='test -z "$ac_c_werror_flag"
16345 || test ! -s conftest.err'
16346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16347 (eval $ac_try) 2>&5
16349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16350 (exit $ac_status); }; } &&
16351 { ac_try='test -s conftest.$ac_objext'
16352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16353 (eval $ac_try) 2>&5
16355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16356 (exit $ac_status); }; }; then
16357 ac_cv_type_int_p=yes
16359 echo "$as_me: failed program was:" >&5
16360 sed 's/^/| /' conftest.$ac_ext >&5
16362 ac_cv_type_int_p=no
16364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16366 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
16367 echo "${ECHO_T}$ac_cv_type_int_p" >&6
16369 echo "$as_me:$LINENO: checking size of int *" >&5
16370 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
16371 if test "${ac_cv_sizeof_int_p+set}" = set; then
16372 echo $ECHO_N "(cached) $ECHO_C" >&6
16374 if test "$ac_cv_type_int_p" = yes; then
16375 # The cast to unsigned long works around a bug in the HP C Compiler
16376 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16377 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16378 # This bug is HP SR number 8606223364.
16379 if test "$cross_compiling" = yes; then
16380 # Depending upon the size, compute the lo and hi bounds.
16381 cat >conftest.$ac_ext <<_ACEOF
16384 cat confdefs.h >>conftest.$ac_ext
16385 cat >>conftest.$ac_ext <<_ACEOF
16386 /* end confdefs.h. */
16387 $ac_includes_default
16391 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
16398 rm -f conftest.$ac_objext
16399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16400 (eval $ac_compile) 2>conftest.er1
16402 grep -v '^ *+' conftest.er1 >conftest.err
16404 cat conftest.err >&5
16405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16406 (exit $ac_status); } &&
16407 { ac_try='test -z "$ac_c_werror_flag"
16408 || test ! -s conftest.err'
16409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16410 (eval $ac_try) 2>&5
16412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16413 (exit $ac_status); }; } &&
16414 { ac_try='test -s conftest.$ac_objext'
16415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16416 (eval $ac_try) 2>&5
16418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16419 (exit $ac_status); }; }; then
16422 cat >conftest.$ac_ext <<_ACEOF
16425 cat confdefs.h >>conftest.$ac_ext
16426 cat >>conftest.$ac_ext <<_ACEOF
16427 /* end confdefs.h. */
16428 $ac_includes_default
16432 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
16439 rm -f conftest.$ac_objext
16440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16441 (eval $ac_compile) 2>conftest.er1
16443 grep -v '^ *+' conftest.er1 >conftest.err
16445 cat conftest.err >&5
16446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16447 (exit $ac_status); } &&
16448 { ac_try='test -z "$ac_c_werror_flag"
16449 || test ! -s conftest.err'
16450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16451 (eval $ac_try) 2>&5
16453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16454 (exit $ac_status); }; } &&
16455 { ac_try='test -s conftest.$ac_objext'
16456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16457 (eval $ac_try) 2>&5
16459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16460 (exit $ac_status); }; }; then
16461 ac_hi=$ac_mid; break
16463 echo "$as_me: failed program was:" >&5
16464 sed 's/^/| /' conftest.$ac_ext >&5
16466 ac_lo=`expr $ac_mid + 1`
16467 if test $ac_lo -le $ac_mid; then
16471 ac_mid=`expr 2 '*' $ac_mid + 1`
16473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16476 echo "$as_me: failed program was:" >&5
16477 sed 's/^/| /' conftest.$ac_ext >&5
16479 cat >conftest.$ac_ext <<_ACEOF
16482 cat confdefs.h >>conftest.$ac_ext
16483 cat >>conftest.$ac_ext <<_ACEOF
16484 /* end confdefs.h. */
16485 $ac_includes_default
16489 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
16496 rm -f conftest.$ac_objext
16497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16498 (eval $ac_compile) 2>conftest.er1
16500 grep -v '^ *+' conftest.er1 >conftest.err
16502 cat conftest.err >&5
16503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16504 (exit $ac_status); } &&
16505 { ac_try='test -z "$ac_c_werror_flag"
16506 || test ! -s conftest.err'
16507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16508 (eval $ac_try) 2>&5
16510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16511 (exit $ac_status); }; } &&
16512 { ac_try='test -s conftest.$ac_objext'
16513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16514 (eval $ac_try) 2>&5
16516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16517 (exit $ac_status); }; }; then
16520 cat >conftest.$ac_ext <<_ACEOF
16523 cat confdefs.h >>conftest.$ac_ext
16524 cat >>conftest.$ac_ext <<_ACEOF
16525 /* end confdefs.h. */
16526 $ac_includes_default
16530 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
16537 rm -f conftest.$ac_objext
16538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16539 (eval $ac_compile) 2>conftest.er1
16541 grep -v '^ *+' conftest.er1 >conftest.err
16543 cat conftest.err >&5
16544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16545 (exit $ac_status); } &&
16546 { ac_try='test -z "$ac_c_werror_flag"
16547 || test ! -s conftest.err'
16548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16549 (eval $ac_try) 2>&5
16551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16552 (exit $ac_status); }; } &&
16553 { ac_try='test -s conftest.$ac_objext'
16554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16555 (eval $ac_try) 2>&5
16557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16558 (exit $ac_status); }; }; then
16559 ac_lo=$ac_mid; break
16561 echo "$as_me: failed program was:" >&5
16562 sed 's/^/| /' conftest.$ac_ext >&5
16564 ac_hi=`expr '(' $ac_mid ')' - 1`
16565 if test $ac_mid -le $ac_hi; then
16569 ac_mid=`expr 2 '*' $ac_mid`
16571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16574 echo "$as_me: failed program was:" >&5
16575 sed 's/^/| /' conftest.$ac_ext >&5
16579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16581 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16582 # Binary search between lo and hi bounds.
16583 while test "x$ac_lo" != "x$ac_hi"; do
16584 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16585 cat >conftest.$ac_ext <<_ACEOF
16588 cat confdefs.h >>conftest.$ac_ext
16589 cat >>conftest.$ac_ext <<_ACEOF
16590 /* end confdefs.h. */
16591 $ac_includes_default
16595 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
16602 rm -f conftest.$ac_objext
16603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16604 (eval $ac_compile) 2>conftest.er1
16606 grep -v '^ *+' conftest.er1 >conftest.err
16608 cat conftest.err >&5
16609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16610 (exit $ac_status); } &&
16611 { ac_try='test -z "$ac_c_werror_flag"
16612 || test ! -s conftest.err'
16613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16614 (eval $ac_try) 2>&5
16616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16617 (exit $ac_status); }; } &&
16618 { ac_try='test -s conftest.$ac_objext'
16619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16620 (eval $ac_try) 2>&5
16622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16623 (exit $ac_status); }; }; then
16626 echo "$as_me: failed program was:" >&5
16627 sed 's/^/| /' conftest.$ac_ext >&5
16629 ac_lo=`expr '(' $ac_mid ')' + 1`
16631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16634 ?*) ac_cv_sizeof_int_p=$ac_lo;;
16635 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
16636 See \`config.log' for more details." >&5
16637 echo "$as_me: error: cannot compute sizeof (int *), 77
16638 See \`config.log' for more details." >&2;}
16639 { (exit 1); exit 1; }; } ;;
16642 if test "$cross_compiling" = yes; then
16643 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16644 See \`config.log' for more details." >&5
16645 echo "$as_me: error: cannot run test program while cross compiling
16646 See \`config.log' for more details." >&2;}
16647 { (exit 1); exit 1; }; }
16649 cat >conftest.$ac_ext <<_ACEOF
16652 cat confdefs.h >>conftest.$ac_ext
16653 cat >>conftest.$ac_ext <<_ACEOF
16654 /* end confdefs.h. */
16655 $ac_includes_default
16656 long longval () { return (long) (sizeof (int *)); }
16657 unsigned long ulongval () { return (long) (sizeof (int *)); }
16659 #include <stdlib.h>
16664 FILE *f = fopen ("conftest.val", "w");
16667 if (((long) (sizeof (int *))) < 0)
16669 long i = longval ();
16670 if (i != ((long) (sizeof (int *))))
16672 fprintf (f, "%ld\n", i);
16676 unsigned long i = ulongval ();
16677 if (i != ((long) (sizeof (int *))))
16679 fprintf (f, "%lu\n", i);
16681 exit (ferror (f) || fclose (f) != 0);
16687 rm -f conftest$ac_exeext
16688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16689 (eval $ac_link) 2>&5
16691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16692 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16694 (eval $ac_try) 2>&5
16696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16697 (exit $ac_status); }; }; then
16698 ac_cv_sizeof_int_p=`cat conftest.val`
16700 echo "$as_me: program exited with status $ac_status" >&5
16701 echo "$as_me: failed program was:" >&5
16702 sed 's/^/| /' conftest.$ac_ext >&5
16704 ( exit $ac_status )
16705 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
16706 See \`config.log' for more details." >&5
16707 echo "$as_me: error: cannot compute sizeof (int *), 77
16708 See \`config.log' for more details." >&2;}
16709 { (exit 1); exit 1; }; }
16711 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16716 ac_cv_sizeof_int_p=0
16719 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
16720 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
16721 cat >>confdefs.h <<_ACEOF
16722 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
16727 # Check for sys/types.h types
16728 echo "$as_me:$LINENO: checking for u_int type" >&5
16729 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
16730 if test "${ac_cv_have_u_int+set}" = set; then
16731 echo $ECHO_N "(cached) $ECHO_C" >&6
16734 cat >conftest.$ac_ext <<_ACEOF
16737 cat confdefs.h >>conftest.$ac_ext
16738 cat >>conftest.$ac_ext <<_ACEOF
16739 /* end confdefs.h. */
16740 #include <sys/types.h>
16749 rm -f conftest.$ac_objext
16750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16751 (eval $ac_compile) 2>conftest.er1
16753 grep -v '^ *+' conftest.er1 >conftest.err
16755 cat conftest.err >&5
16756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16757 (exit $ac_status); } &&
16758 { ac_try='test -z "$ac_c_werror_flag"
16759 || test ! -s conftest.err'
16760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16761 (eval $ac_try) 2>&5
16763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16764 (exit $ac_status); }; } &&
16765 { ac_try='test -s conftest.$ac_objext'
16766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16767 (eval $ac_try) 2>&5
16769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16770 (exit $ac_status); }; }; then
16771 ac_cv_have_u_int="yes"
16773 echo "$as_me: failed program was:" >&5
16774 sed 's/^/| /' conftest.$ac_ext >&5
16776 ac_cv_have_u_int="no"
16779 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16782 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
16783 echo "${ECHO_T}$ac_cv_have_u_int" >&6
16784 if test "x$ac_cv_have_u_int" = "xyes" ; then
16785 cat >>confdefs.h <<\_ACEOF
16786 #define HAVE_U_INT 1
16792 echo "$as_me:$LINENO: checking for intmax_t type" >&5
16793 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
16794 if test "${ac_cv_have_intmax_t+set}" = set; then
16795 echo $ECHO_N "(cached) $ECHO_C" >&6
16798 cat >conftest.$ac_ext <<_ACEOF
16801 cat confdefs.h >>conftest.$ac_ext
16802 cat >>conftest.$ac_ext <<_ACEOF
16803 /* end confdefs.h. */
16804 #include <sys/types.h>
16813 rm -f conftest.$ac_objext
16814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16815 (eval $ac_compile) 2>conftest.er1
16817 grep -v '^ *+' conftest.er1 >conftest.err
16819 cat conftest.err >&5
16820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16821 (exit $ac_status); } &&
16822 { ac_try='test -z "$ac_c_werror_flag"
16823 || test ! -s conftest.err'
16824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16825 (eval $ac_try) 2>&5
16827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16828 (exit $ac_status); }; } &&
16829 { ac_try='test -s conftest.$ac_objext'
16830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16831 (eval $ac_try) 2>&5
16833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834 (exit $ac_status); }; }; then
16835 ac_cv_have_intmax_t="yes"
16837 echo "$as_me: failed program was:" >&5
16838 sed 's/^/| /' conftest.$ac_ext >&5
16841 cat >conftest.$ac_ext <<_ACEOF
16844 cat confdefs.h >>conftest.$ac_ext
16845 cat >>conftest.$ac_ext <<_ACEOF
16846 /* end confdefs.h. */
16847 #include <stdint.h>
16856 rm -f conftest.$ac_objext
16857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16858 (eval $ac_compile) 2>conftest.er1
16860 grep -v '^ *+' conftest.er1 >conftest.err
16862 cat conftest.err >&5
16863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16864 (exit $ac_status); } &&
16865 { ac_try='test -z "$ac_c_werror_flag"
16866 || test ! -s conftest.err'
16867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16868 (eval $ac_try) 2>&5
16870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16871 (exit $ac_status); }; } &&
16872 { ac_try='test -s conftest.$ac_objext'
16873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16874 (eval $ac_try) 2>&5
16876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16877 (exit $ac_status); }; }; then
16878 ac_cv_have_intmax_t="yes"
16880 echo "$as_me: failed program was:" >&5
16881 sed 's/^/| /' conftest.$ac_ext >&5
16883 ac_cv_have_intmax_t="no"
16886 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16894 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
16895 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
16896 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
16897 cat >>confdefs.h <<\_ACEOF
16898 #define HAVE_INTMAX_T 1
16905 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
16906 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
16907 if test "${ac_cv_have_u_intmax_t+set}" = set; then
16908 echo $ECHO_N "(cached) $ECHO_C" >&6
16911 cat >conftest.$ac_ext <<_ACEOF
16914 cat confdefs.h >>conftest.$ac_ext
16915 cat >>conftest.$ac_ext <<_ACEOF
16916 /* end confdefs.h. */
16917 #include <sys/types.h>
16921 u_intmax_t a; a = 1;
16926 rm -f conftest.$ac_objext
16927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16928 (eval $ac_compile) 2>conftest.er1
16930 grep -v '^ *+' conftest.er1 >conftest.err
16932 cat conftest.err >&5
16933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16934 (exit $ac_status); } &&
16935 { ac_try='test -z "$ac_c_werror_flag"
16936 || test ! -s conftest.err'
16937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16938 (eval $ac_try) 2>&5
16940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16941 (exit $ac_status); }; } &&
16942 { ac_try='test -s conftest.$ac_objext'
16943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16944 (eval $ac_try) 2>&5
16946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16947 (exit $ac_status); }; }; then
16948 ac_cv_have_u_intmax_t="yes"
16950 echo "$as_me: failed program was:" >&5
16951 sed 's/^/| /' conftest.$ac_ext >&5
16954 cat >conftest.$ac_ext <<_ACEOF
16957 cat confdefs.h >>conftest.$ac_ext
16958 cat >>conftest.$ac_ext <<_ACEOF
16959 /* end confdefs.h. */
16960 #include <stdint.h>
16964 u_intmax_t a; a = 1;
16969 rm -f conftest.$ac_objext
16970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16971 (eval $ac_compile) 2>conftest.er1
16973 grep -v '^ *+' conftest.er1 >conftest.err
16975 cat conftest.err >&5
16976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16977 (exit $ac_status); } &&
16978 { ac_try='test -z "$ac_c_werror_flag"
16979 || test ! -s conftest.err'
16980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16981 (eval $ac_try) 2>&5
16983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16984 (exit $ac_status); }; } &&
16985 { ac_try='test -s conftest.$ac_objext'
16986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16987 (eval $ac_try) 2>&5
16989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16990 (exit $ac_status); }; }; then
16991 ac_cv_have_u_intmax_t="yes"
16993 echo "$as_me: failed program was:" >&5
16994 sed 's/^/| /' conftest.$ac_ext >&5
16996 ac_cv_have_u_intmax_t="no"
16999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17006 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
17007 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
17008 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
17009 cat >>confdefs.h <<\_ACEOF
17010 #define HAVE_U_INTMAX_T 1
17017 echo "$as_me:$LINENO: checking for intXX_t types" >&5
17018 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
17019 if test "${ac_cv_have_intxx_t+set}" = set; then
17020 echo $ECHO_N "(cached) $ECHO_C" >&6
17023 cat >conftest.$ac_ext <<_ACEOF
17026 cat confdefs.h >>conftest.$ac_ext
17027 cat >>conftest.$ac_ext <<_ACEOF
17028 /* end confdefs.h. */
17029 #include <sys/types.h>
17033 int8_t a; int16_t b; int32_t c; a = b = c = 1;
17038 rm -f conftest.$ac_objext
17039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17040 (eval $ac_compile) 2>conftest.er1
17042 grep -v '^ *+' conftest.er1 >conftest.err
17044 cat conftest.err >&5
17045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17046 (exit $ac_status); } &&
17047 { ac_try='test -z "$ac_c_werror_flag"
17048 || test ! -s conftest.err'
17049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17050 (eval $ac_try) 2>&5
17052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17053 (exit $ac_status); }; } &&
17054 { ac_try='test -s conftest.$ac_objext'
17055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17056 (eval $ac_try) 2>&5
17058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17059 (exit $ac_status); }; }; then
17060 ac_cv_have_intxx_t="yes"
17062 echo "$as_me: failed program was:" >&5
17063 sed 's/^/| /' conftest.$ac_ext >&5
17065 ac_cv_have_intxx_t="no"
17068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17071 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
17072 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
17073 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
17074 cat >>confdefs.h <<\_ACEOF
17075 #define HAVE_INTXX_T 1
17081 echo "$as_me:$LINENO: checking for int64_t type" >&5
17082 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
17083 if test "${ac_cv_have_int64_t+set}" = set; then
17084 echo $ECHO_N "(cached) $ECHO_C" >&6
17087 cat >conftest.$ac_ext <<_ACEOF
17090 cat confdefs.h >>conftest.$ac_ext
17091 cat >>conftest.$ac_ext <<_ACEOF
17092 /* end confdefs.h. */
17093 #include <sys/types.h>
17102 rm -f conftest.$ac_objext
17103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17104 (eval $ac_compile) 2>conftest.er1
17106 grep -v '^ *+' conftest.er1 >conftest.err
17108 cat conftest.err >&5
17109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17110 (exit $ac_status); } &&
17111 { ac_try='test -z "$ac_c_werror_flag"
17112 || test ! -s conftest.err'
17113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17114 (eval $ac_try) 2>&5
17116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17117 (exit $ac_status); }; } &&
17118 { ac_try='test -s conftest.$ac_objext'
17119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17120 (eval $ac_try) 2>&5
17122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17123 (exit $ac_status); }; }; then
17124 ac_cv_have_int64_t="yes"
17126 echo "$as_me: failed program was:" >&5
17127 sed 's/^/| /' conftest.$ac_ext >&5
17129 ac_cv_have_int64_t="no"
17132 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17135 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
17136 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
17137 if test "x$ac_cv_have_int64_t" = "xyes" ; then
17138 cat >>confdefs.h <<\_ACEOF
17139 #define HAVE_INT64_T 1
17145 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
17146 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
17147 if test "${ac_cv_have_u_intxx_t+set}" = set; then
17148 echo $ECHO_N "(cached) $ECHO_C" >&6
17151 cat >conftest.$ac_ext <<_ACEOF
17154 cat confdefs.h >>conftest.$ac_ext
17155 cat >>conftest.$ac_ext <<_ACEOF
17156 /* end confdefs.h. */
17157 #include <sys/types.h>
17161 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
17166 rm -f conftest.$ac_objext
17167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17168 (eval $ac_compile) 2>conftest.er1
17170 grep -v '^ *+' conftest.er1 >conftest.err
17172 cat conftest.err >&5
17173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17174 (exit $ac_status); } &&
17175 { ac_try='test -z "$ac_c_werror_flag"
17176 || test ! -s conftest.err'
17177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17178 (eval $ac_try) 2>&5
17180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17181 (exit $ac_status); }; } &&
17182 { ac_try='test -s conftest.$ac_objext'
17183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17184 (eval $ac_try) 2>&5
17186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17187 (exit $ac_status); }; }; then
17188 ac_cv_have_u_intxx_t="yes"
17190 echo "$as_me: failed program was:" >&5
17191 sed 's/^/| /' conftest.$ac_ext >&5
17193 ac_cv_have_u_intxx_t="no"
17196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17199 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
17200 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
17201 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
17202 cat >>confdefs.h <<\_ACEOF
17203 #define HAVE_U_INTXX_T 1
17209 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
17210 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
17211 if test "${ac_cv_have_u_int64_t+set}" = set; then
17212 echo $ECHO_N "(cached) $ECHO_C" >&6
17215 cat >conftest.$ac_ext <<_ACEOF
17218 cat confdefs.h >>conftest.$ac_ext
17219 cat >>conftest.$ac_ext <<_ACEOF
17220 /* end confdefs.h. */
17221 #include <sys/types.h>
17225 u_int64_t a; a = 1;
17230 rm -f conftest.$ac_objext
17231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17232 (eval $ac_compile) 2>conftest.er1
17234 grep -v '^ *+' conftest.er1 >conftest.err
17236 cat conftest.err >&5
17237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17238 (exit $ac_status); } &&
17239 { ac_try='test -z "$ac_c_werror_flag"
17240 || test ! -s conftest.err'
17241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17242 (eval $ac_try) 2>&5
17244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17245 (exit $ac_status); }; } &&
17246 { ac_try='test -s conftest.$ac_objext'
17247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17248 (eval $ac_try) 2>&5
17250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17251 (exit $ac_status); }; }; then
17252 ac_cv_have_u_int64_t="yes"
17254 echo "$as_me: failed program was:" >&5
17255 sed 's/^/| /' conftest.$ac_ext >&5
17257 ac_cv_have_u_int64_t="no"
17260 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17263 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
17264 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
17265 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
17266 cat >>confdefs.h <<\_ACEOF
17267 #define HAVE_U_INT64_T 1
17273 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
17274 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
17276 echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
17277 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
17278 cat >conftest.$ac_ext <<_ACEOF
17281 cat confdefs.h >>conftest.$ac_ext
17282 cat >>conftest.$ac_ext <<_ACEOF
17283 /* end confdefs.h. */
17284 #include <sys/bitypes.h>
17288 int8_t a; int16_t b; int32_t c;
17289 u_int8_t e; u_int16_t f; u_int32_t g;
17290 a = b = c = e = f = g = 1;
17295 rm -f conftest.$ac_objext
17296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17297 (eval $ac_compile) 2>conftest.er1
17299 grep -v '^ *+' conftest.er1 >conftest.err
17301 cat conftest.err >&5
17302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17303 (exit $ac_status); } &&
17304 { ac_try='test -z "$ac_c_werror_flag"
17305 || test ! -s conftest.err'
17306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17307 (eval $ac_try) 2>&5
17309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17310 (exit $ac_status); }; } &&
17311 { ac_try='test -s conftest.$ac_objext'
17312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17313 (eval $ac_try) 2>&5
17315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17316 (exit $ac_status); }; }; then
17317 cat >>confdefs.h <<\_ACEOF
17318 #define HAVE_U_INTXX_T 1
17321 cat >>confdefs.h <<\_ACEOF
17322 #define HAVE_INTXX_T 1
17325 cat >>confdefs.h <<\_ACEOF
17326 #define HAVE_SYS_BITYPES_H 1
17329 echo "$as_me:$LINENO: result: yes" >&5
17330 echo "${ECHO_T}yes" >&6
17332 echo "$as_me: failed program was:" >&5
17333 sed 's/^/| /' conftest.$ac_ext >&5
17335 echo "$as_me:$LINENO: result: no" >&5
17336 echo "${ECHO_T}no" >&6
17339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17342 if test -z "$have_u_intxx_t" ; then
17343 echo "$as_me:$LINENO: checking for uintXX_t types" >&5
17344 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
17345 if test "${ac_cv_have_uintxx_t+set}" = set; then
17346 echo $ECHO_N "(cached) $ECHO_C" >&6
17349 cat >conftest.$ac_ext <<_ACEOF
17352 cat confdefs.h >>conftest.$ac_ext
17353 cat >>conftest.$ac_ext <<_ACEOF
17354 /* end confdefs.h. */
17355 #include <sys/types.h>
17359 uint8_t a; uint16_t b;
17360 uint32_t c; a = b = c = 1;
17365 rm -f conftest.$ac_objext
17366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17367 (eval $ac_compile) 2>conftest.er1
17369 grep -v '^ *+' conftest.er1 >conftest.err
17371 cat conftest.err >&5
17372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17373 (exit $ac_status); } &&
17374 { ac_try='test -z "$ac_c_werror_flag"
17375 || test ! -s conftest.err'
17376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17377 (eval $ac_try) 2>&5
17379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17380 (exit $ac_status); }; } &&
17381 { ac_try='test -s conftest.$ac_objext'
17382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17383 (eval $ac_try) 2>&5
17385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17386 (exit $ac_status); }; }; then
17387 ac_cv_have_uintxx_t="yes"
17389 echo "$as_me: failed program was:" >&5
17390 sed 's/^/| /' conftest.$ac_ext >&5
17392 ac_cv_have_uintxx_t="no"
17395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17398 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
17399 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
17400 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
17401 cat >>confdefs.h <<\_ACEOF
17402 #define HAVE_UINTXX_T 1
17408 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
17409 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
17411 echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
17412 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
17413 cat >conftest.$ac_ext <<_ACEOF
17416 cat confdefs.h >>conftest.$ac_ext
17417 cat >>conftest.$ac_ext <<_ACEOF
17418 /* end confdefs.h. */
17419 #include <sys/bitypes.h>
17423 int64_t a; u_int64_t b;
17429 rm -f conftest.$ac_objext
17430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17431 (eval $ac_compile) 2>conftest.er1
17433 grep -v '^ *+' conftest.er1 >conftest.err
17435 cat conftest.err >&5
17436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17437 (exit $ac_status); } &&
17438 { ac_try='test -z "$ac_c_werror_flag"
17439 || test ! -s conftest.err'
17440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17441 (eval $ac_try) 2>&5
17443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17444 (exit $ac_status); }; } &&
17445 { ac_try='test -s conftest.$ac_objext'
17446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17447 (eval $ac_try) 2>&5
17449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17450 (exit $ac_status); }; }; then
17451 cat >>confdefs.h <<\_ACEOF
17452 #define HAVE_U_INT64_T 1
17455 cat >>confdefs.h <<\_ACEOF
17456 #define HAVE_INT64_T 1
17459 echo "$as_me:$LINENO: result: yes" >&5
17460 echo "${ECHO_T}yes" >&6
17462 echo "$as_me: failed program was:" >&5
17463 sed 's/^/| /' conftest.$ac_ext >&5
17465 echo "$as_me:$LINENO: result: no" >&5
17466 echo "${ECHO_T}no" >&6
17469 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17472 if (test -z "$have_uintxx_t" && \
17473 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
17475 echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
17476 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
17477 cat >conftest.$ac_ext <<_ACEOF
17480 cat confdefs.h >>conftest.$ac_ext
17481 cat >>conftest.$ac_ext <<_ACEOF
17482 /* end confdefs.h. */
17483 #include <sys/bitypes.h>
17487 uint8_t a; uint16_t b;
17488 uint32_t c; a = b = c = 1;
17493 rm -f conftest.$ac_objext
17494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17495 (eval $ac_compile) 2>conftest.er1
17497 grep -v '^ *+' conftest.er1 >conftest.err
17499 cat conftest.err >&5
17500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17501 (exit $ac_status); } &&
17502 { ac_try='test -z "$ac_c_werror_flag"
17503 || test ! -s conftest.err'
17504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17505 (eval $ac_try) 2>&5
17507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17508 (exit $ac_status); }; } &&
17509 { ac_try='test -s conftest.$ac_objext'
17510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17511 (eval $ac_try) 2>&5
17513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17514 (exit $ac_status); }; }; then
17515 cat >>confdefs.h <<\_ACEOF
17516 #define HAVE_UINTXX_T 1
17519 echo "$as_me:$LINENO: result: yes" >&5
17520 echo "${ECHO_T}yes" >&6
17522 echo "$as_me: failed program was:" >&5
17523 sed 's/^/| /' conftest.$ac_ext >&5
17525 echo "$as_me:$LINENO: result: no" >&5
17526 echo "${ECHO_T}no" >&6
17529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17565 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17566 echo "$as_me:$LINENO: checking for $ac_func" >&5
17567 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17568 if eval "test \"\${$as_ac_var+set}\" = set"; then
17569 echo $ECHO_N "(cached) $ECHO_C" >&6
17571 cat >conftest.$ac_ext <<_ACEOF
17574 cat confdefs.h >>conftest.$ac_ext
17575 cat >>conftest.$ac_ext <<_ACEOF
17576 /* end confdefs.h. */
17577 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17578 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17579 #define $ac_func innocuous_$ac_func
17581 /* System header to define __stub macros and hopefully few prototypes,
17582 which can conflict with char $ac_func (); below.
17583 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17584 <limits.h> exists even on freestanding compilers. */
17587 # include <limits.h>
17589 # include <assert.h>
17594 /* Override any gcc2 internal prototype to avoid an error. */
17599 /* We use char because int might match the return type of a gcc2
17600 builtin and then its argument prototype would still apply. */
17602 /* The GNU C library defines this for functions which it implements
17603 to always fail with ENOSYS. Some functions are actually named
17604 something starting with __ and the normal name is an alias. */
17605 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17608 char (*f) () = $ac_func;
17617 return f != $ac_func;
17622 rm -f conftest.$ac_objext conftest$ac_exeext
17623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17624 (eval $ac_link) 2>conftest.er1
17626 grep -v '^ *+' conftest.er1 >conftest.err
17628 cat conftest.err >&5
17629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17630 (exit $ac_status); } &&
17631 { ac_try='test -z "$ac_c_werror_flag"
17632 || test ! -s conftest.err'
17633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17634 (eval $ac_try) 2>&5
17636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17637 (exit $ac_status); }; } &&
17638 { ac_try='test -s conftest$ac_exeext'
17639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17640 (eval $ac_try) 2>&5
17642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17643 (exit $ac_status); }; }; then
17644 eval "$as_ac_var=yes"
17646 echo "$as_me: failed program was:" >&5
17647 sed 's/^/| /' conftest.$ac_ext >&5
17649 eval "$as_ac_var=no"
17651 rm -f conftest.err conftest.$ac_objext \
17652 conftest$ac_exeext conftest.$ac_ext
17654 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17655 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17656 if test `eval echo '${'$as_ac_var'}'` = yes; then
17657 cat >>confdefs.h <<_ACEOF
17658 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17662 echo 'configure: cannot find needed function.'; exit 1
17669 for ac_func in fchdir
17671 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17672 echo "$as_me:$LINENO: checking for $ac_func" >&5
17673 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17674 if eval "test \"\${$as_ac_var+set}\" = set"; then
17675 echo $ECHO_N "(cached) $ECHO_C" >&6
17677 cat >conftest.$ac_ext <<_ACEOF
17680 cat confdefs.h >>conftest.$ac_ext
17681 cat >>conftest.$ac_ext <<_ACEOF
17682 /* end confdefs.h. */
17683 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17684 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17685 #define $ac_func innocuous_$ac_func
17687 /* System header to define __stub macros and hopefully few prototypes,
17688 which can conflict with char $ac_func (); below.
17689 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17690 <limits.h> exists even on freestanding compilers. */
17693 # include <limits.h>
17695 # include <assert.h>
17700 /* Override any gcc2 internal prototype to avoid an error. */
17705 /* We use char because int might match the return type of a gcc2
17706 builtin and then its argument prototype would still apply. */
17708 /* The GNU C library defines this for functions which it implements
17709 to always fail with ENOSYS. Some functions are actually named
17710 something starting with __ and the normal name is an alias. */
17711 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17714 char (*f) () = $ac_func;
17723 return f != $ac_func;
17728 rm -f conftest.$ac_objext conftest$ac_exeext
17729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17730 (eval $ac_link) 2>conftest.er1
17732 grep -v '^ *+' conftest.er1 >conftest.err
17734 cat conftest.err >&5
17735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17736 (exit $ac_status); } &&
17737 { ac_try='test -z "$ac_c_werror_flag"
17738 || test ! -s conftest.err'
17739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17740 (eval $ac_try) 2>&5
17742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17743 (exit $ac_status); }; } &&
17744 { ac_try='test -s conftest$ac_exeext'
17745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17746 (eval $ac_try) 2>&5
17748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17749 (exit $ac_status); }; }; then
17750 eval "$as_ac_var=yes"
17752 echo "$as_me: failed program was:" >&5
17753 sed 's/^/| /' conftest.$ac_ext >&5
17755 eval "$as_ac_var=no"
17757 rm -f conftest.err conftest.$ac_objext \
17758 conftest$ac_exeext conftest.$ac_ext
17760 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17761 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17762 if test `eval echo '${'$as_ac_var'}'` = yes; then
17763 cat >>confdefs.h <<_ACEOF
17764 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17766 cat >>confdefs.h <<\_ACEOF
17767 #define HAVE_FCHDIR 1
17774 for ac_func in strtoll
17776 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17777 echo "$as_me:$LINENO: checking for $ac_func" >&5
17778 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17779 if eval "test \"\${$as_ac_var+set}\" = set"; then
17780 echo $ECHO_N "(cached) $ECHO_C" >&6
17782 cat >conftest.$ac_ext <<_ACEOF
17785 cat confdefs.h >>conftest.$ac_ext
17786 cat >>conftest.$ac_ext <<_ACEOF
17787 /* end confdefs.h. */
17788 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17789 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17790 #define $ac_func innocuous_$ac_func
17792 /* System header to define __stub macros and hopefully few prototypes,
17793 which can conflict with char $ac_func (); below.
17794 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17795 <limits.h> exists even on freestanding compilers. */
17798 # include <limits.h>
17800 # include <assert.h>
17805 /* Override any gcc2 internal prototype to avoid an error. */
17810 /* We use char because int might match the return type of a gcc2
17811 builtin and then its argument prototype would still apply. */
17813 /* The GNU C library defines this for functions which it implements
17814 to always fail with ENOSYS. Some functions are actually named
17815 something starting with __ and the normal name is an alias. */
17816 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17819 char (*f) () = $ac_func;
17828 return f != $ac_func;
17833 rm -f conftest.$ac_objext conftest$ac_exeext
17834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17835 (eval $ac_link) 2>conftest.er1
17837 grep -v '^ *+' conftest.er1 >conftest.err
17839 cat conftest.err >&5
17840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17841 (exit $ac_status); } &&
17842 { ac_try='test -z "$ac_c_werror_flag"
17843 || test ! -s conftest.err'
17844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17845 (eval $ac_try) 2>&5
17847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17848 (exit $ac_status); }; } &&
17849 { ac_try='test -s conftest$ac_exeext'
17850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17851 (eval $ac_try) 2>&5
17853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17854 (exit $ac_status); }; }; then
17855 eval "$as_ac_var=yes"
17857 echo "$as_me: failed program was:" >&5
17858 sed 's/^/| /' conftest.$ac_ext >&5
17860 eval "$as_ac_var=no"
17862 rm -f conftest.err conftest.$ac_objext \
17863 conftest$ac_exeext conftest.$ac_ext
17865 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17866 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17867 if test `eval echo '${'$as_ac_var'}'` = yes; then
17868 cat >>confdefs.h <<_ACEOF
17869 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17871 cat >>confdefs.h <<\_ACEOF
17872 #define HAVE_STRTOLL 1
17880 for ac_func in chflags
17882 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17883 echo "$as_me:$LINENO: checking for $ac_func" >&5
17884 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17885 if eval "test \"\${$as_ac_var+set}\" = set"; then
17886 echo $ECHO_N "(cached) $ECHO_C" >&6
17888 cat >conftest.$ac_ext <<_ACEOF
17891 cat confdefs.h >>conftest.$ac_ext
17892 cat >>conftest.$ac_ext <<_ACEOF
17893 /* end confdefs.h. */
17894 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17895 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17896 #define $ac_func innocuous_$ac_func
17898 /* System header to define __stub macros and hopefully few prototypes,
17899 which can conflict with char $ac_func (); below.
17900 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17901 <limits.h> exists even on freestanding compilers. */
17904 # include <limits.h>
17906 # include <assert.h>
17911 /* Override any gcc2 internal prototype to avoid an error. */
17916 /* We use char because int might match the return type of a gcc2
17917 builtin and then its argument prototype would still apply. */
17919 /* The GNU C library defines this for functions which it implements
17920 to always fail with ENOSYS. Some functions are actually named
17921 something starting with __ and the normal name is an alias. */
17922 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17925 char (*f) () = $ac_func;
17934 return f != $ac_func;
17939 rm -f conftest.$ac_objext conftest$ac_exeext
17940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17941 (eval $ac_link) 2>conftest.er1
17943 grep -v '^ *+' conftest.er1 >conftest.err
17945 cat conftest.err >&5
17946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17947 (exit $ac_status); } &&
17948 { ac_try='test -z "$ac_c_werror_flag"
17949 || test ! -s conftest.err'
17950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17951 (eval $ac_try) 2>&5
17953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17954 (exit $ac_status); }; } &&
17955 { ac_try='test -s conftest$ac_exeext'
17956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17957 (eval $ac_try) 2>&5
17959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17960 (exit $ac_status); }; }; then
17961 eval "$as_ac_var=yes"
17963 echo "$as_me: failed program was:" >&5
17964 sed 's/^/| /' conftest.$ac_ext >&5
17966 eval "$as_ac_var=no"
17968 rm -f conftest.err conftest.$ac_objext \
17969 conftest$ac_exeext conftest.$ac_ext
17971 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17972 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17973 if test `eval echo '${'$as_ac_var'}'` = yes; then
17974 cat >>confdefs.h <<_ACEOF
17975 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17986 for ac_func in snprintf vsnprintf gethostid getdomainname
17988 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17989 echo "$as_me:$LINENO: checking for $ac_func" >&5
17990 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17991 if eval "test \"\${$as_ac_var+set}\" = set"; then
17992 echo $ECHO_N "(cached) $ECHO_C" >&6
17994 cat >conftest.$ac_ext <<_ACEOF
17997 cat confdefs.h >>conftest.$ac_ext
17998 cat >>conftest.$ac_ext <<_ACEOF
17999 /* end confdefs.h. */
18000 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18001 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18002 #define $ac_func innocuous_$ac_func
18004 /* System header to define __stub macros and hopefully few prototypes,
18005 which can conflict with char $ac_func (); below.
18006 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18007 <limits.h> exists even on freestanding compilers. */
18010 # include <limits.h>
18012 # include <assert.h>
18017 /* Override any gcc2 internal prototype to avoid an error. */
18022 /* We use char because int might match the return type of a gcc2
18023 builtin and then its argument prototype would still apply. */
18025 /* The GNU C library defines this for functions which it implements
18026 to always fail with ENOSYS. Some functions are actually named
18027 something starting with __ and the normal name is an alias. */
18028 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18031 char (*f) () = $ac_func;
18040 return f != $ac_func;
18045 rm -f conftest.$ac_objext conftest$ac_exeext
18046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18047 (eval $ac_link) 2>conftest.er1
18049 grep -v '^ *+' conftest.er1 >conftest.err
18051 cat conftest.err >&5
18052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18053 (exit $ac_status); } &&
18054 { ac_try='test -z "$ac_c_werror_flag"
18055 || test ! -s conftest.err'
18056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18057 (eval $ac_try) 2>&5
18059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18060 (exit $ac_status); }; } &&
18061 { ac_try='test -s conftest$ac_exeext'
18062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18063 (eval $ac_try) 2>&5
18065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18066 (exit $ac_status); }; }; then
18067 eval "$as_ac_var=yes"
18069 echo "$as_me: failed program was:" >&5
18070 sed 's/^/| /' conftest.$ac_ext >&5
18072 eval "$as_ac_var=no"
18074 rm -f conftest.err conftest.$ac_objext \
18075 conftest$ac_exeext conftest.$ac_ext
18077 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18078 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18079 if test `eval echo '${'$as_ac_var'}'` = yes; then
18080 cat >>confdefs.h <<_ACEOF
18081 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18092 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
18094 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18095 echo "$as_me:$LINENO: checking for $ac_func" >&5
18096 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18097 if eval "test \"\${$as_ac_var+set}\" = set"; then
18098 echo $ECHO_N "(cached) $ECHO_C" >&6
18100 cat >conftest.$ac_ext <<_ACEOF
18103 cat confdefs.h >>conftest.$ac_ext
18104 cat >>conftest.$ac_ext <<_ACEOF
18105 /* end confdefs.h. */
18106 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18107 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18108 #define $ac_func innocuous_$ac_func
18110 /* System header to define __stub macros and hopefully few prototypes,
18111 which can conflict with char $ac_func (); below.
18112 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18113 <limits.h> exists even on freestanding compilers. */
18116 # include <limits.h>
18118 # include <assert.h>
18123 /* Override any gcc2 internal prototype to avoid an error. */
18128 /* We use char because int might match the return type of a gcc2
18129 builtin and then its argument prototype would still apply. */
18131 /* The GNU C library defines this for functions which it implements
18132 to always fail with ENOSYS. Some functions are actually named
18133 something starting with __ and the normal name is an alias. */
18134 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18137 char (*f) () = $ac_func;
18146 return f != $ac_func;
18151 rm -f conftest.$ac_objext conftest$ac_exeext
18152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18153 (eval $ac_link) 2>conftest.er1
18155 grep -v '^ *+' conftest.er1 >conftest.err
18157 cat conftest.err >&5
18158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18159 (exit $ac_status); } &&
18160 { ac_try='test -z "$ac_c_werror_flag"
18161 || test ! -s conftest.err'
18162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18163 (eval $ac_try) 2>&5
18165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18166 (exit $ac_status); }; } &&
18167 { ac_try='test -s conftest$ac_exeext'
18168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18169 (eval $ac_try) 2>&5
18171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18172 (exit $ac_status); }; }; then
18173 eval "$as_ac_var=yes"
18175 echo "$as_me: failed program was:" >&5
18176 sed 's/^/| /' conftest.$ac_ext >&5
18178 eval "$as_ac_var=no"
18180 rm -f conftest.err conftest.$ac_objext \
18181 conftest$ac_exeext conftest.$ac_ext
18183 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18184 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18185 if test `eval echo '${'$as_ac_var'}'` = yes; then
18186 cat >>confdefs.h <<_ACEOF
18187 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18194 # If resolver functions are not in libc check for -lnsl or -lresolv.
18195 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
18196 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
18197 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
18198 echo $ECHO_N "(cached) $ECHO_C" >&6
18200 cat >conftest.$ac_ext <<_ACEOF
18203 cat confdefs.h >>conftest.$ac_ext
18204 cat >>conftest.$ac_ext <<_ACEOF
18205 /* end confdefs.h. */
18206 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
18207 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18208 #define gethostbyname_r innocuous_gethostbyname_r
18210 /* System header to define __stub macros and hopefully few prototypes,
18211 which can conflict with char gethostbyname_r (); below.
18212 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18213 <limits.h> exists even on freestanding compilers. */
18216 # include <limits.h>
18218 # include <assert.h>
18221 #undef gethostbyname_r
18223 /* Override any gcc2 internal prototype to avoid an error. */
18228 /* We use char because int might match the return type of a gcc2
18229 builtin and then its argument prototype would still apply. */
18230 char gethostbyname_r ();
18231 /* The GNU C library defines this for functions which it implements
18232 to always fail with ENOSYS. Some functions are actually named
18233 something starting with __ and the normal name is an alias. */
18234 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
18237 char (*f) () = gethostbyname_r;
18246 return f != gethostbyname_r;
18251 rm -f conftest.$ac_objext conftest$ac_exeext
18252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18253 (eval $ac_link) 2>conftest.er1
18255 grep -v '^ *+' conftest.er1 >conftest.err
18257 cat conftest.err >&5
18258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18259 (exit $ac_status); } &&
18260 { ac_try='test -z "$ac_c_werror_flag"
18261 || test ! -s conftest.err'
18262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18263 (eval $ac_try) 2>&5
18265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18266 (exit $ac_status); }; } &&
18267 { ac_try='test -s conftest$ac_exeext'
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_cv_func_gethostbyname_r=yes
18275 echo "$as_me: failed program was:" >&5
18276 sed 's/^/| /' conftest.$ac_ext >&5
18278 ac_cv_func_gethostbyname_r=no
18280 rm -f conftest.err conftest.$ac_objext \
18281 conftest$ac_exeext conftest.$ac_ext
18283 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
18284 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
18285 if test $ac_cv_func_gethostbyname_r = yes; then
18286 echo "$as_me:$LINENO: result: using libc's resolver" >&5
18287 echo "${ECHO_T}using libc's resolver" >&6
18290 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
18291 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
18292 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
18293 echo $ECHO_N "(cached) $ECHO_C" >&6
18295 ac_check_lib_save_LIBS=$LIBS
18297 cat >conftest.$ac_ext <<_ACEOF
18300 cat confdefs.h >>conftest.$ac_ext
18301 cat >>conftest.$ac_ext <<_ACEOF
18302 /* end confdefs.h. */
18304 /* Override any gcc2 internal prototype to avoid an error. */
18308 /* We use char because int might match the return type of a gcc2
18309 builtin and then its argument prototype would still apply. */
18310 char gethostbyname_r ();
18314 gethostbyname_r ();
18319 rm -f conftest.$ac_objext conftest$ac_exeext
18320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18321 (eval $ac_link) 2>conftest.er1
18323 grep -v '^ *+' conftest.er1 >conftest.err
18325 cat conftest.err >&5
18326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18327 (exit $ac_status); } &&
18328 { ac_try='test -z "$ac_c_werror_flag"
18329 || test ! -s conftest.err'
18330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18331 (eval $ac_try) 2>&5
18333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18334 (exit $ac_status); }; } &&
18335 { ac_try='test -s conftest$ac_exeext'
18336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18337 (eval $ac_try) 2>&5
18339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18340 (exit $ac_status); }; }; then
18341 ac_cv_lib_nsl_gethostbyname_r=yes
18343 echo "$as_me: failed program was:" >&5
18344 sed 's/^/| /' conftest.$ac_ext >&5
18346 ac_cv_lib_nsl_gethostbyname_r=no
18348 rm -f conftest.err conftest.$ac_objext \
18349 conftest$ac_exeext conftest.$ac_ext
18350 LIBS=$ac_check_lib_save_LIBS
18352 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
18353 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
18354 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
18355 cat >>confdefs.h <<_ACEOF
18356 #define HAVE_LIBNSL 1
18364 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
18365 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
18366 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
18367 echo $ECHO_N "(cached) $ECHO_C" >&6
18369 ac_check_lib_save_LIBS=$LIBS
18370 LIBS="-lresolv $LIBS"
18371 cat >conftest.$ac_ext <<_ACEOF
18374 cat confdefs.h >>conftest.$ac_ext
18375 cat >>conftest.$ac_ext <<_ACEOF
18376 /* end confdefs.h. */
18378 /* Override any gcc2 internal prototype to avoid an error. */
18382 /* We use char because int might match the return type of a gcc2
18383 builtin and then its argument prototype would still apply. */
18384 char gethostbyname_r ();
18388 gethostbyname_r ();
18393 rm -f conftest.$ac_objext conftest$ac_exeext
18394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18395 (eval $ac_link) 2>conftest.er1
18397 grep -v '^ *+' conftest.er1 >conftest.err
18399 cat conftest.err >&5
18400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18401 (exit $ac_status); } &&
18402 { ac_try='test -z "$ac_c_werror_flag"
18403 || test ! -s conftest.err'
18404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18405 (eval $ac_try) 2>&5
18407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18408 (exit $ac_status); }; } &&
18409 { ac_try='test -s conftest$ac_exeext'
18410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18411 (eval $ac_try) 2>&5
18413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18414 (exit $ac_status); }; }; then
18415 ac_cv_lib_resolv_gethostbyname_r=yes
18417 echo "$as_me: failed program was:" >&5
18418 sed 's/^/| /' conftest.$ac_ext >&5
18420 ac_cv_lib_resolv_gethostbyname_r=no
18422 rm -f conftest.err conftest.$ac_objext \
18423 conftest$ac_exeext conftest.$ac_ext
18424 LIBS=$ac_check_lib_save_LIBS
18426 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
18427 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
18428 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
18429 cat >>confdefs.h <<_ACEOF
18430 #define HAVE_LIBRESOLV 1
18433 LIBS="-lresolv $LIBS"
18443 for ac_func in inet_pton
18445 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18446 echo "$as_me:$LINENO: checking for $ac_func" >&5
18447 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18448 if eval "test \"\${$as_ac_var+set}\" = set"; then
18449 echo $ECHO_N "(cached) $ECHO_C" >&6
18451 cat >conftest.$ac_ext <<_ACEOF
18454 cat confdefs.h >>conftest.$ac_ext
18455 cat >>conftest.$ac_ext <<_ACEOF
18456 /* end confdefs.h. */
18457 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18458 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18459 #define $ac_func innocuous_$ac_func
18461 /* System header to define __stub macros and hopefully few prototypes,
18462 which can conflict with char $ac_func (); below.
18463 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18464 <limits.h> exists even on freestanding compilers. */
18467 # include <limits.h>
18469 # include <assert.h>
18474 /* Override any gcc2 internal prototype to avoid an error. */
18479 /* We use char because int might match the return type of a gcc2
18480 builtin and then its argument prototype would still apply. */
18482 /* The GNU C library defines this for functions which it implements
18483 to always fail with ENOSYS. Some functions are actually named
18484 something starting with __ and the normal name is an alias. */
18485 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18488 char (*f) () = $ac_func;
18497 return f != $ac_func;
18502 rm -f conftest.$ac_objext conftest$ac_exeext
18503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18504 (eval $ac_link) 2>conftest.er1
18506 grep -v '^ *+' conftest.er1 >conftest.err
18508 cat conftest.err >&5
18509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18510 (exit $ac_status); } &&
18511 { ac_try='test -z "$ac_c_werror_flag"
18512 || test ! -s conftest.err'
18513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18514 (eval $ac_try) 2>&5
18516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18517 (exit $ac_status); }; } &&
18518 { ac_try='test -s conftest$ac_exeext'
18519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18520 (eval $ac_try) 2>&5
18522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18523 (exit $ac_status); }; }; then
18524 eval "$as_ac_var=yes"
18526 echo "$as_me: failed program was:" >&5
18527 sed 's/^/| /' conftest.$ac_ext >&5
18529 eval "$as_ac_var=no"
18531 rm -f conftest.err conftest.$ac_objext \
18532 conftest$ac_exeext conftest.$ac_ext
18534 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18535 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18536 if test `eval echo '${'$as_ac_var'}'` = yes; then
18537 cat >>confdefs.h <<_ACEOF
18538 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18540 cat >>confdefs.h <<\_ACEOF
18541 #define HAVE_INET_PTON 1
18548 for ac_func in inet_ntop
18550 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18551 echo "$as_me:$LINENO: checking for $ac_func" >&5
18552 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18553 if eval "test \"\${$as_ac_var+set}\" = set"; then
18554 echo $ECHO_N "(cached) $ECHO_C" >&6
18556 cat >conftest.$ac_ext <<_ACEOF
18559 cat confdefs.h >>conftest.$ac_ext
18560 cat >>conftest.$ac_ext <<_ACEOF
18561 /* end confdefs.h. */
18562 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18563 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18564 #define $ac_func innocuous_$ac_func
18566 /* System header to define __stub macros and hopefully few prototypes,
18567 which can conflict with char $ac_func (); below.
18568 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18569 <limits.h> exists even on freestanding compilers. */
18572 # include <limits.h>
18574 # include <assert.h>
18579 /* Override any gcc2 internal prototype to avoid an error. */
18584 /* We use char because int might match the return type of a gcc2
18585 builtin and then its argument prototype would still apply. */
18587 /* The GNU C library defines this for functions which it implements
18588 to always fail with ENOSYS. Some functions are actually named
18589 something starting with __ and the normal name is an alias. */
18590 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18593 char (*f) () = $ac_func;
18602 return f != $ac_func;
18607 rm -f conftest.$ac_objext conftest$ac_exeext
18608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18609 (eval $ac_link) 2>conftest.er1
18611 grep -v '^ *+' conftest.er1 >conftest.err
18613 cat conftest.err >&5
18614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18615 (exit $ac_status); } &&
18616 { ac_try='test -z "$ac_c_werror_flag"
18617 || test ! -s conftest.err'
18618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18619 (eval $ac_try) 2>&5
18621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18622 (exit $ac_status); }; } &&
18623 { ac_try='test -s conftest$ac_exeext'
18624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18625 (eval $ac_try) 2>&5
18627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18628 (exit $ac_status); }; }; then
18629 eval "$as_ac_var=yes"
18631 echo "$as_me: failed program was:" >&5
18632 sed 's/^/| /' conftest.$ac_ext >&5
18634 eval "$as_ac_var=no"
18636 rm -f conftest.err conftest.$ac_objext \
18637 conftest$ac_exeext conftest.$ac_ext
18639 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18640 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18641 if test `eval echo '${'$as_ac_var'}'` = yes; then
18642 cat >>confdefs.h <<_ACEOF
18643 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18645 cat >>confdefs.h <<\_ACEOF
18646 #define HAVE_INET_NTOP 1
18653 for ac_func in gethostbyname2
18655 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18656 echo "$as_me:$LINENO: checking for $ac_func" >&5
18657 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18658 if eval "test \"\${$as_ac_var+set}\" = set"; then
18659 echo $ECHO_N "(cached) $ECHO_C" >&6
18661 cat >conftest.$ac_ext <<_ACEOF
18664 cat confdefs.h >>conftest.$ac_ext
18665 cat >>conftest.$ac_ext <<_ACEOF
18666 /* end confdefs.h. */
18667 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18668 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18669 #define $ac_func innocuous_$ac_func
18671 /* System header to define __stub macros and hopefully few prototypes,
18672 which can conflict with char $ac_func (); below.
18673 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18674 <limits.h> exists even on freestanding compilers. */
18677 # include <limits.h>
18679 # include <assert.h>
18684 /* Override any gcc2 internal prototype to avoid an error. */
18689 /* We use char because int might match the return type of a gcc2
18690 builtin and then its argument prototype would still apply. */
18692 /* The GNU C library defines this for functions which it implements
18693 to always fail with ENOSYS. Some functions are actually named
18694 something starting with __ and the normal name is an alias. */
18695 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18698 char (*f) () = $ac_func;
18707 return f != $ac_func;
18712 rm -f conftest.$ac_objext conftest$ac_exeext
18713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18714 (eval $ac_link) 2>conftest.er1
18716 grep -v '^ *+' conftest.er1 >conftest.err
18718 cat conftest.err >&5
18719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18720 (exit $ac_status); } &&
18721 { ac_try='test -z "$ac_c_werror_flag"
18722 || test ! -s conftest.err'
18723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18724 (eval $ac_try) 2>&5
18726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18727 (exit $ac_status); }; } &&
18728 { ac_try='test -s conftest$ac_exeext'
18729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18730 (eval $ac_try) 2>&5
18732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18733 (exit $ac_status); }; }; then
18734 eval "$as_ac_var=yes"
18736 echo "$as_me: failed program was:" >&5
18737 sed 's/^/| /' conftest.$ac_ext >&5
18739 eval "$as_ac_var=no"
18741 rm -f conftest.err conftest.$ac_objext \
18742 conftest$ac_exeext conftest.$ac_ext
18744 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18745 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18746 if test `eval echo '${'$as_ac_var'}'` = yes; then
18747 cat >>confdefs.h <<_ACEOF
18748 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18750 cat >>confdefs.h <<\_ACEOF
18751 #define HAVE_GETHOSTBYNAME2 1
18758 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
18759 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
18760 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
18761 echo $ECHO_N "(cached) $ECHO_C" >&6
18763 cat >conftest.$ac_ext <<_ACEOF
18766 cat confdefs.h >>conftest.$ac_ext
18767 cat >>conftest.$ac_ext <<_ACEOF
18768 /* end confdefs.h. */
18769 #include <sys/socket.h>
18773 struct sockaddr s; s.sa_len;
18778 rm -f conftest.$ac_objext
18779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18780 (eval $ac_compile) 2>conftest.er1
18782 grep -v '^ *+' conftest.er1 >conftest.err
18784 cat conftest.err >&5
18785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18786 (exit $ac_status); } &&
18787 { ac_try='test -z "$ac_c_werror_flag"
18788 || test ! -s conftest.err'
18789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18790 (eval $ac_try) 2>&5
18792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18793 (exit $ac_status); }; } &&
18794 { ac_try='test -s conftest.$ac_objext'
18795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18796 (eval $ac_try) 2>&5
18798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18799 (exit $ac_status); }; }; then
18800 ac_cv_struct_sockaddr_sa_len=yes
18802 echo "$as_me: failed program was:" >&5
18803 sed 's/^/| /' conftest.$ac_ext >&5
18805 ac_cv_struct_sockaddr_sa_len=no
18807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18809 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
18810 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
18812 if test $ac_cv_struct_sockaddr_sa_len = yes; then
18814 cat >>confdefs.h <<\_ACEOF
18815 #define HAVE_SA_LEN 1
18821 echo "$as_me:$LINENO: checking for IPv6 support" >&5
18822 echo $ECHO_N "checking for IPv6 support... $ECHO_C" >&6
18823 if test "${ac_cv_ipv6_support+set}" = set; then
18824 echo $ECHO_N "(cached) $ECHO_C" >&6
18826 cat >conftest.$ac_ext <<_ACEOF
18829 cat confdefs.h >>conftest.$ac_ext
18830 cat >>conftest.$ac_ext <<_ACEOF
18831 /* end confdefs.h. */
18832 #include <sys/types.h>
18833 #include <sys/socket.h>
18834 #include <netinet/in.h>
18838 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] =
18844 rm -f conftest.$ac_objext conftest$ac_exeext
18845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18846 (eval $ac_link) 2>conftest.er1
18848 grep -v '^ *+' conftest.er1 >conftest.err
18850 cat conftest.err >&5
18851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18852 (exit $ac_status); } &&
18853 { ac_try='test -z "$ac_c_werror_flag"
18854 || test ! -s conftest.err'
18855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18856 (eval $ac_try) 2>&5
18858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18859 (exit $ac_status); }; } &&
18860 { ac_try='test -s conftest$ac_exeext'
18861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18862 (eval $ac_try) 2>&5
18864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18865 (exit $ac_status); }; }; then
18866 ac_cv_ipv6_support=yes
18868 echo "$as_me: failed program was:" >&5
18869 sed 's/^/| /' conftest.$ac_ext >&5
18871 ac_cv_ipv6_support=no
18873 rm -f conftest.err conftest.$ac_objext \
18874 conftest$ac_exeext conftest.$ac_ext
18876 echo "$as_me:$LINENO: result: $ac_cv_ipv6_support" >&5
18877 echo "${ECHO_T}$ac_cv_ipv6_support" >&6
18879 if test "$ac_cv_ipv6_support" = yes; then
18881 cat >>confdefs.h <<\_ACEOF
18882 #define HAVE_IPV6 1
18890 for ac_func in strftime
18892 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18893 echo "$as_me:$LINENO: checking for $ac_func" >&5
18894 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18895 if eval "test \"\${$as_ac_var+set}\" = set"; then
18896 echo $ECHO_N "(cached) $ECHO_C" >&6
18898 cat >conftest.$ac_ext <<_ACEOF
18901 cat confdefs.h >>conftest.$ac_ext
18902 cat >>conftest.$ac_ext <<_ACEOF
18903 /* end confdefs.h. */
18904 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18905 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18906 #define $ac_func innocuous_$ac_func
18908 /* System header to define __stub macros and hopefully few prototypes,
18909 which can conflict with char $ac_func (); below.
18910 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18911 <limits.h> exists even on freestanding compilers. */
18914 # include <limits.h>
18916 # include <assert.h>
18921 /* Override any gcc2 internal prototype to avoid an error. */
18926 /* We use char because int might match the return type of a gcc2
18927 builtin and then its argument prototype would still apply. */
18929 /* The GNU C library defines this for functions which it implements
18930 to always fail with ENOSYS. Some functions are actually named
18931 something starting with __ and the normal name is an alias. */
18932 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18935 char (*f) () = $ac_func;
18944 return f != $ac_func;
18949 rm -f conftest.$ac_objext conftest$ac_exeext
18950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18951 (eval $ac_link) 2>conftest.er1
18953 grep -v '^ *+' conftest.er1 >conftest.err
18955 cat conftest.err >&5
18956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18957 (exit $ac_status); } &&
18958 { ac_try='test -z "$ac_c_werror_flag"
18959 || test ! -s conftest.err'
18960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18961 (eval $ac_try) 2>&5
18963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18964 (exit $ac_status); }; } &&
18965 { ac_try='test -s conftest$ac_exeext'
18966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18967 (eval $ac_try) 2>&5
18969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18970 (exit $ac_status); }; }; then
18971 eval "$as_ac_var=yes"
18973 echo "$as_me: failed program was:" >&5
18974 sed 's/^/| /' conftest.$ac_ext >&5
18976 eval "$as_ac_var=no"
18978 rm -f conftest.err conftest.$ac_objext \
18979 conftest$ac_exeext conftest.$ac_ext
18981 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18982 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18983 if test `eval echo '${'$as_ac_var'}'` = yes; then
18984 cat >>confdefs.h <<_ACEOF
18985 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18989 # strftime is in -lintl on SCO UNIX.
18990 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
18991 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
18992 if test "${ac_cv_lib_intl_strftime+set}" = set; then
18993 echo $ECHO_N "(cached) $ECHO_C" >&6
18995 ac_check_lib_save_LIBS=$LIBS
18996 LIBS="-lintl $LIBS"
18997 cat >conftest.$ac_ext <<_ACEOF
19000 cat confdefs.h >>conftest.$ac_ext
19001 cat >>conftest.$ac_ext <<_ACEOF
19002 /* end confdefs.h. */
19004 /* Override any gcc2 internal prototype to avoid an error. */
19008 /* We use char because int might match the return type of a gcc2
19009 builtin and then its argument prototype would still apply. */
19019 rm -f conftest.$ac_objext conftest$ac_exeext
19020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19021 (eval $ac_link) 2>conftest.er1
19023 grep -v '^ *+' conftest.er1 >conftest.err
19025 cat conftest.err >&5
19026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19027 (exit $ac_status); } &&
19028 { ac_try='test -z "$ac_c_werror_flag"
19029 || test ! -s conftest.err'
19030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19031 (eval $ac_try) 2>&5
19033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19034 (exit $ac_status); }; } &&
19035 { ac_try='test -s conftest$ac_exeext'
19036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19037 (eval $ac_try) 2>&5
19039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19040 (exit $ac_status); }; }; then
19041 ac_cv_lib_intl_strftime=yes
19043 echo "$as_me: failed program was:" >&5
19044 sed 's/^/| /' conftest.$ac_ext >&5
19046 ac_cv_lib_intl_strftime=no
19048 rm -f conftest.err conftest.$ac_objext \
19049 conftest$ac_exeext conftest.$ac_ext
19050 LIBS=$ac_check_lib_save_LIBS
19052 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
19053 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
19054 if test $ac_cv_lib_intl_strftime = yes; then
19055 cat >>confdefs.h <<\_ACEOF
19056 #define HAVE_STRFTIME 1
19059 LIBS="-lintl $LIBS"
19066 for ac_func in vprintf
19068 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19069 echo "$as_me:$LINENO: checking for $ac_func" >&5
19070 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19071 if eval "test \"\${$as_ac_var+set}\" = set"; then
19072 echo $ECHO_N "(cached) $ECHO_C" >&6
19074 cat >conftest.$ac_ext <<_ACEOF
19077 cat confdefs.h >>conftest.$ac_ext
19078 cat >>conftest.$ac_ext <<_ACEOF
19079 /* end confdefs.h. */
19080 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19081 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19082 #define $ac_func innocuous_$ac_func
19084 /* System header to define __stub macros and hopefully few prototypes,
19085 which can conflict with char $ac_func (); below.
19086 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19087 <limits.h> exists even on freestanding compilers. */
19090 # include <limits.h>
19092 # include <assert.h>
19097 /* Override any gcc2 internal prototype to avoid an error. */
19102 /* We use char because int might match the return type of a gcc2
19103 builtin and then its argument prototype would still apply. */
19105 /* The GNU C library defines this for functions which it implements
19106 to always fail with ENOSYS. Some functions are actually named
19107 something starting with __ and the normal name is an alias. */
19108 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19111 char (*f) () = $ac_func;
19120 return f != $ac_func;
19125 rm -f conftest.$ac_objext conftest$ac_exeext
19126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19127 (eval $ac_link) 2>conftest.er1
19129 grep -v '^ *+' conftest.er1 >conftest.err
19131 cat conftest.err >&5
19132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19133 (exit $ac_status); } &&
19134 { ac_try='test -z "$ac_c_werror_flag"
19135 || test ! -s conftest.err'
19136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19137 (eval $ac_try) 2>&5
19139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19140 (exit $ac_status); }; } &&
19141 { ac_try='test -s conftest$ac_exeext'
19142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19143 (eval $ac_try) 2>&5
19145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19146 (exit $ac_status); }; }; then
19147 eval "$as_ac_var=yes"
19149 echo "$as_me: failed program was:" >&5
19150 sed 's/^/| /' conftest.$ac_ext >&5
19152 eval "$as_ac_var=no"
19154 rm -f conftest.err conftest.$ac_objext \
19155 conftest$ac_exeext conftest.$ac_ext
19157 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19158 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19159 if test `eval echo '${'$as_ac_var'}'` = yes; then
19160 cat >>confdefs.h <<_ACEOF
19161 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19164 echo "$as_me:$LINENO: checking for _doprnt" >&5
19165 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
19166 if test "${ac_cv_func__doprnt+set}" = set; then
19167 echo $ECHO_N "(cached) $ECHO_C" >&6
19169 cat >conftest.$ac_ext <<_ACEOF
19172 cat confdefs.h >>conftest.$ac_ext
19173 cat >>conftest.$ac_ext <<_ACEOF
19174 /* end confdefs.h. */
19175 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
19176 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19177 #define _doprnt innocuous__doprnt
19179 /* System header to define __stub macros and hopefully few prototypes,
19180 which can conflict with char _doprnt (); below.
19181 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19182 <limits.h> exists even on freestanding compilers. */
19185 # include <limits.h>
19187 # include <assert.h>
19192 /* Override any gcc2 internal prototype to avoid an error. */
19197 /* We use char because int might match the return type of a gcc2
19198 builtin and then its argument prototype would still apply. */
19200 /* The GNU C library defines this for functions which it implements
19201 to always fail with ENOSYS. Some functions are actually named
19202 something starting with __ and the normal name is an alias. */
19203 #if defined (__stub__doprnt) || defined (__stub____doprnt)
19206 char (*f) () = _doprnt;
19215 return f != _doprnt;
19220 rm -f conftest.$ac_objext conftest$ac_exeext
19221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19222 (eval $ac_link) 2>conftest.er1
19224 grep -v '^ *+' conftest.er1 >conftest.err
19226 cat conftest.err >&5
19227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19228 (exit $ac_status); } &&
19229 { ac_try='test -z "$ac_c_werror_flag"
19230 || test ! -s conftest.err'
19231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19232 (eval $ac_try) 2>&5
19234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19235 (exit $ac_status); }; } &&
19236 { ac_try='test -s conftest$ac_exeext'
19237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19238 (eval $ac_try) 2>&5
19240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19241 (exit $ac_status); }; }; then
19242 ac_cv_func__doprnt=yes
19244 echo "$as_me: failed program was:" >&5
19245 sed 's/^/| /' conftest.$ac_ext >&5
19247 ac_cv_func__doprnt=no
19249 rm -f conftest.err conftest.$ac_objext \
19250 conftest$ac_exeext conftest.$ac_ext
19252 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
19253 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
19254 if test $ac_cv_func__doprnt = yes; then
19256 cat >>confdefs.h <<\_ACEOF
19257 #define HAVE_DOPRNT 1
19266 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19267 # for constant arguments. Useless!
19268 echo "$as_me:$LINENO: checking for working alloca.h" >&5
19269 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
19270 if test "${ac_cv_working_alloca_h+set}" = set; then
19271 echo $ECHO_N "(cached) $ECHO_C" >&6
19273 cat >conftest.$ac_ext <<_ACEOF
19276 cat confdefs.h >>conftest.$ac_ext
19277 cat >>conftest.$ac_ext <<_ACEOF
19278 /* end confdefs.h. */
19279 #include <alloca.h>
19283 char *p = (char *) alloca (2 * sizeof (int));
19288 rm -f conftest.$ac_objext conftest$ac_exeext
19289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19290 (eval $ac_link) 2>conftest.er1
19292 grep -v '^ *+' conftest.er1 >conftest.err
19294 cat conftest.err >&5
19295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19296 (exit $ac_status); } &&
19297 { ac_try='test -z "$ac_c_werror_flag"
19298 || test ! -s conftest.err'
19299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19300 (eval $ac_try) 2>&5
19302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19303 (exit $ac_status); }; } &&
19304 { ac_try='test -s conftest$ac_exeext'
19305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19306 (eval $ac_try) 2>&5
19308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19309 (exit $ac_status); }; }; then
19310 ac_cv_working_alloca_h=yes
19312 echo "$as_me: failed program was:" >&5
19313 sed 's/^/| /' conftest.$ac_ext >&5
19315 ac_cv_working_alloca_h=no
19317 rm -f conftest.err conftest.$ac_objext \
19318 conftest$ac_exeext conftest.$ac_ext
19320 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19321 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
19322 if test $ac_cv_working_alloca_h = yes; then
19324 cat >>confdefs.h <<\_ACEOF
19325 #define HAVE_ALLOCA_H 1
19330 echo "$as_me:$LINENO: checking for alloca" >&5
19331 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
19332 if test "${ac_cv_func_alloca_works+set}" = set; then
19333 echo $ECHO_N "(cached) $ECHO_C" >&6
19335 cat >conftest.$ac_ext <<_ACEOF
19338 cat confdefs.h >>conftest.$ac_ext
19339 cat >>conftest.$ac_ext <<_ACEOF
19340 /* end confdefs.h. */
19342 # define alloca __builtin_alloca
19345 # include <malloc.h>
19346 # define alloca _alloca
19349 # include <alloca.h>
19354 # ifndef alloca /* predefined by HP cc +Olibcalls */
19365 char *p = (char *) alloca (1);
19370 rm -f conftest.$ac_objext conftest$ac_exeext
19371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19372 (eval $ac_link) 2>conftest.er1
19374 grep -v '^ *+' conftest.er1 >conftest.err
19376 cat conftest.err >&5
19377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19378 (exit $ac_status); } &&
19379 { ac_try='test -z "$ac_c_werror_flag"
19380 || test ! -s conftest.err'
19381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19382 (eval $ac_try) 2>&5
19384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19385 (exit $ac_status); }; } &&
19386 { ac_try='test -s conftest$ac_exeext'
19387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19388 (eval $ac_try) 2>&5
19390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19391 (exit $ac_status); }; }; then
19392 ac_cv_func_alloca_works=yes
19394 echo "$as_me: failed program was:" >&5
19395 sed 's/^/| /' conftest.$ac_ext >&5
19397 ac_cv_func_alloca_works=no
19399 rm -f conftest.err conftest.$ac_objext \
19400 conftest$ac_exeext conftest.$ac_ext
19402 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19403 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
19405 if test $ac_cv_func_alloca_works = yes; then
19407 cat >>confdefs.h <<\_ACEOF
19408 #define HAVE_ALLOCA 1
19412 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19413 # that cause trouble. Some versions do not even contain alloca or
19414 # contain a buggy version. If you still want to use their alloca,
19415 # use ar to extract alloca.o from them instead of compiling alloca.c.
19417 ALLOCA=alloca.$ac_objext
19419 cat >>confdefs.h <<\_ACEOF
19424 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19425 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
19426 if test "${ac_cv_os_cray+set}" = set; then
19427 echo $ECHO_N "(cached) $ECHO_C" >&6
19429 cat >conftest.$ac_ext <<_ACEOF
19432 cat confdefs.h >>conftest.$ac_ext
19433 cat >>conftest.$ac_ext <<_ACEOF
19434 /* end confdefs.h. */
19435 #if defined(CRAY) && ! defined(CRAY2)
19442 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19443 $EGREP "webecray" >/dev/null 2>&1; then
19451 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19452 echo "${ECHO_T}$ac_cv_os_cray" >&6
19453 if test $ac_cv_os_cray = yes; then
19454 for ac_func in _getb67 GETB67 getb67; do
19455 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19456 echo "$as_me:$LINENO: checking for $ac_func" >&5
19457 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19458 if eval "test \"\${$as_ac_var+set}\" = set"; then
19459 echo $ECHO_N "(cached) $ECHO_C" >&6
19461 cat >conftest.$ac_ext <<_ACEOF
19464 cat confdefs.h >>conftest.$ac_ext
19465 cat >>conftest.$ac_ext <<_ACEOF
19466 /* end confdefs.h. */
19467 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19468 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19469 #define $ac_func innocuous_$ac_func
19471 /* System header to define __stub macros and hopefully few prototypes,
19472 which can conflict with char $ac_func (); below.
19473 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19474 <limits.h> exists even on freestanding compilers. */
19477 # include <limits.h>
19479 # include <assert.h>
19484 /* Override any gcc2 internal prototype to avoid an error. */
19489 /* We use char because int might match the return type of a gcc2
19490 builtin and then its argument prototype would still apply. */
19492 /* The GNU C library defines this for functions which it implements
19493 to always fail with ENOSYS. Some functions are actually named
19494 something starting with __ and the normal name is an alias. */
19495 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19498 char (*f) () = $ac_func;
19507 return f != $ac_func;
19512 rm -f conftest.$ac_objext conftest$ac_exeext
19513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19514 (eval $ac_link) 2>conftest.er1
19516 grep -v '^ *+' conftest.er1 >conftest.err
19518 cat conftest.err >&5
19519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19520 (exit $ac_status); } &&
19521 { ac_try='test -z "$ac_c_werror_flag"
19522 || test ! -s conftest.err'
19523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19524 (eval $ac_try) 2>&5
19526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19527 (exit $ac_status); }; } &&
19528 { ac_try='test -s conftest$ac_exeext'
19529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19530 (eval $ac_try) 2>&5
19532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19533 (exit $ac_status); }; }; then
19534 eval "$as_ac_var=yes"
19536 echo "$as_me: failed program was:" >&5
19537 sed 's/^/| /' conftest.$ac_ext >&5
19539 eval "$as_ac_var=no"
19541 rm -f conftest.err conftest.$ac_objext \
19542 conftest$ac_exeext conftest.$ac_ext
19544 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19545 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19546 if test `eval echo '${'$as_ac_var'}'` = yes; then
19548 cat >>confdefs.h <<_ACEOF
19549 #define CRAY_STACKSEG_END $ac_func
19558 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19559 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
19560 if test "${ac_cv_c_stack_direction+set}" = set; then
19561 echo $ECHO_N "(cached) $ECHO_C" >&6
19563 if test "$cross_compiling" = yes; then
19564 ac_cv_c_stack_direction=0
19566 cat >conftest.$ac_ext <<_ACEOF
19569 cat confdefs.h >>conftest.$ac_ext
19570 cat >>conftest.$ac_ext <<_ACEOF
19571 /* end confdefs.h. */
19573 find_stack_direction ()
19575 static char *addr = 0;
19580 return find_stack_direction ();
19583 return (&dummy > addr) ? 1 : -1;
19589 exit (find_stack_direction () < 0);
19592 rm -f conftest$ac_exeext
19593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19594 (eval $ac_link) 2>&5
19596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19597 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19599 (eval $ac_try) 2>&5
19601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19602 (exit $ac_status); }; }; then
19603 ac_cv_c_stack_direction=1
19605 echo "$as_me: program exited with status $ac_status" >&5
19606 echo "$as_me: failed program was:" >&5
19607 sed 's/^/| /' conftest.$ac_ext >&5
19609 ( exit $ac_status )
19610 ac_cv_c_stack_direction=-1
19612 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19615 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19616 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
19618 cat >>confdefs.h <<_ACEOF
19619 #define STACK_DIRECTION $ac_cv_c_stack_direction
19625 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
19626 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
19627 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
19628 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
19629 echo $ECHO_N "(cached) $ECHO_C" >&6
19631 ac_check_lib_save_LIBS=$LIBS
19633 cat >conftest.$ac_ext <<_ACEOF
19636 cat confdefs.h >>conftest.$ac_ext
19637 cat >>conftest.$ac_ext <<_ACEOF
19638 /* end confdefs.h. */
19640 /* Override any gcc2 internal prototype to avoid an error. */
19644 /* We use char because int might match the return type of a gcc2
19645 builtin and then its argument prototype would still apply. */
19655 rm -f conftest.$ac_objext conftest$ac_exeext
19656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19657 (eval $ac_link) 2>conftest.er1
19659 grep -v '^ *+' conftest.er1 >conftest.err
19661 cat conftest.err >&5
19662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19663 (exit $ac_status); } &&
19664 { ac_try='test -z "$ac_c_werror_flag"
19665 || test ! -s conftest.err'
19666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19667 (eval $ac_try) 2>&5
19669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19670 (exit $ac_status); }; } &&
19671 { ac_try='test -s conftest$ac_exeext'
19672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19673 (eval $ac_try) 2>&5
19675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19676 (exit $ac_status); }; }; then
19677 ac_cv_lib_sun_getmntent=yes
19679 echo "$as_me: failed program was:" >&5
19680 sed 's/^/| /' conftest.$ac_ext >&5
19682 ac_cv_lib_sun_getmntent=no
19684 rm -f conftest.err conftest.$ac_objext \
19685 conftest$ac_exeext conftest.$ac_ext
19686 LIBS=$ac_check_lib_save_LIBS
19688 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
19689 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
19690 if test $ac_cv_lib_sun_getmntent = yes; then
19693 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
19694 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
19695 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
19696 echo $ECHO_N "(cached) $ECHO_C" >&6
19698 ac_check_lib_save_LIBS=$LIBS
19700 cat >conftest.$ac_ext <<_ACEOF
19703 cat confdefs.h >>conftest.$ac_ext
19704 cat >>conftest.$ac_ext <<_ACEOF
19705 /* end confdefs.h. */
19707 /* Override any gcc2 internal prototype to avoid an error. */
19711 /* We use char because int might match the return type of a gcc2
19712 builtin and then its argument prototype would still apply. */
19722 rm -f conftest.$ac_objext conftest$ac_exeext
19723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19724 (eval $ac_link) 2>conftest.er1
19726 grep -v '^ *+' conftest.er1 >conftest.err
19728 cat conftest.err >&5
19729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19730 (exit $ac_status); } &&
19731 { ac_try='test -z "$ac_c_werror_flag"
19732 || test ! -s conftest.err'
19733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19734 (eval $ac_try) 2>&5
19736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19737 (exit $ac_status); }; } &&
19738 { ac_try='test -s conftest$ac_exeext'
19739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19740 (eval $ac_try) 2>&5
19742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19743 (exit $ac_status); }; }; then
19744 ac_cv_lib_seq_getmntent=yes
19746 echo "$as_me: failed program was:" >&5
19747 sed 's/^/| /' conftest.$ac_ext >&5
19749 ac_cv_lib_seq_getmntent=no
19751 rm -f conftest.err conftest.$ac_objext \
19752 conftest$ac_exeext conftest.$ac_ext
19753 LIBS=$ac_check_lib_save_LIBS
19755 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
19756 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
19757 if test $ac_cv_lib_seq_getmntent = yes; then
19760 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
19761 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
19762 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
19763 echo $ECHO_N "(cached) $ECHO_C" >&6
19765 ac_check_lib_save_LIBS=$LIBS
19767 cat >conftest.$ac_ext <<_ACEOF
19770 cat confdefs.h >>conftest.$ac_ext
19771 cat >>conftest.$ac_ext <<_ACEOF
19772 /* end confdefs.h. */
19774 /* Override any gcc2 internal prototype to avoid an error. */
19778 /* We use char because int might match the return type of a gcc2
19779 builtin and then its argument prototype would still apply. */
19789 rm -f conftest.$ac_objext conftest$ac_exeext
19790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19791 (eval $ac_link) 2>conftest.er1
19793 grep -v '^ *+' conftest.er1 >conftest.err
19795 cat conftest.err >&5
19796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19797 (exit $ac_status); } &&
19798 { ac_try='test -z "$ac_c_werror_flag"
19799 || test ! -s conftest.err'
19800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19801 (eval $ac_try) 2>&5
19803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19804 (exit $ac_status); }; } &&
19805 { ac_try='test -s conftest$ac_exeext'
19806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19807 (eval $ac_try) 2>&5
19809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19810 (exit $ac_status); }; }; then
19811 ac_cv_lib_gen_getmntent=yes
19813 echo "$as_me: failed program was:" >&5
19814 sed 's/^/| /' conftest.$ac_ext >&5
19816 ac_cv_lib_gen_getmntent=no
19818 rm -f conftest.err conftest.$ac_objext \
19819 conftest$ac_exeext conftest.$ac_ext
19820 LIBS=$ac_check_lib_save_LIBS
19822 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
19823 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
19824 if test $ac_cv_lib_gen_getmntent = yes; then
19833 for ac_func in getmntent
19835 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19836 echo "$as_me:$LINENO: checking for $ac_func" >&5
19837 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19838 if eval "test \"\${$as_ac_var+set}\" = set"; then
19839 echo $ECHO_N "(cached) $ECHO_C" >&6
19841 cat >conftest.$ac_ext <<_ACEOF
19844 cat confdefs.h >>conftest.$ac_ext
19845 cat >>conftest.$ac_ext <<_ACEOF
19846 /* end confdefs.h. */
19847 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19848 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19849 #define $ac_func innocuous_$ac_func
19851 /* System header to define __stub macros and hopefully few prototypes,
19852 which can conflict with char $ac_func (); below.
19853 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19854 <limits.h> exists even on freestanding compilers. */
19857 # include <limits.h>
19859 # include <assert.h>
19864 /* Override any gcc2 internal prototype to avoid an error. */
19869 /* We use char because int might match the return type of a gcc2
19870 builtin and then its argument prototype would still apply. */
19872 /* The GNU C library defines this for functions which it implements
19873 to always fail with ENOSYS. Some functions are actually named
19874 something starting with __ and the normal name is an alias. */
19875 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19878 char (*f) () = $ac_func;
19887 return f != $ac_func;
19892 rm -f conftest.$ac_objext conftest$ac_exeext
19893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19894 (eval $ac_link) 2>conftest.er1
19896 grep -v '^ *+' conftest.er1 >conftest.err
19898 cat conftest.err >&5
19899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19900 (exit $ac_status); } &&
19901 { ac_try='test -z "$ac_c_werror_flag"
19902 || test ! -s conftest.err'
19903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19904 (eval $ac_try) 2>&5
19906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19907 (exit $ac_status); }; } &&
19908 { ac_try='test -s conftest$ac_exeext'
19909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19910 (eval $ac_try) 2>&5
19912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19913 (exit $ac_status); }; }; then
19914 eval "$as_ac_var=yes"
19916 echo "$as_me: failed program was:" >&5
19917 sed 's/^/| /' conftest.$ac_ext >&5
19919 eval "$as_ac_var=no"
19921 rm -f conftest.err conftest.$ac_objext \
19922 conftest$ac_exeext conftest.$ac_ext
19924 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19925 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19926 if test `eval echo '${'$as_ac_var'}'` = yes; then
19927 cat >>confdefs.h <<_ACEOF
19928 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19935 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
19936 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
19937 if test "${ac_cv_func_closedir_void+set}" = set; then
19938 echo $ECHO_N "(cached) $ECHO_C" >&6
19940 if test "$cross_compiling" = yes; then
19941 ac_cv_func_closedir_void=yes
19943 cat >conftest.$ac_ext <<_ACEOF
19946 cat confdefs.h >>conftest.$ac_ext
19947 cat >>conftest.$ac_ext <<_ACEOF
19948 /* end confdefs.h. */
19949 $ac_includes_default
19950 #include <$ac_header_dirent>
19951 #ifndef __cplusplus
19958 exit (closedir (opendir (".")) != 0);
19963 rm -f conftest$ac_exeext
19964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19965 (eval $ac_link) 2>&5
19967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19968 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19970 (eval $ac_try) 2>&5
19972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19973 (exit $ac_status); }; }; then
19974 ac_cv_func_closedir_void=no
19976 echo "$as_me: program exited with status $ac_status" >&5
19977 echo "$as_me: failed program was:" >&5
19978 sed 's/^/| /' conftest.$ac_ext >&5
19980 ( exit $ac_status )
19981 ac_cv_func_closedir_void=yes
19983 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19986 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
19987 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
19988 if test $ac_cv_func_closedir_void = yes; then
19990 cat >>confdefs.h <<\_ACEOF
19991 #define CLOSEDIR_VOID 1
19996 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
19997 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
19998 if test "${ac_cv_func_setpgrp_void+set}" = set; then
19999 echo $ECHO_N "(cached) $ECHO_C" >&6
20001 if test "$cross_compiling" = yes; then
20002 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
20003 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
20004 { (exit 1); exit 1; }; }
20006 cat >conftest.$ac_ext <<_ACEOF
20009 cat confdefs.h >>conftest.$ac_ext
20010 cat >>conftest.$ac_ext <<_ACEOF
20011 /* end confdefs.h. */
20013 # include <unistd.h>
20019 /* If this system has a BSD-style setpgrp which takes arguments,
20020 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
20021 exit successfully. */
20022 exit (setpgrp (1,1) == -1 ? 0 : 1);
20027 rm -f conftest$ac_exeext
20028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20029 (eval $ac_link) 2>&5
20031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20032 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20034 (eval $ac_try) 2>&5
20036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20037 (exit $ac_status); }; }; then
20038 ac_cv_func_setpgrp_void=no
20040 echo "$as_me: program exited with status $ac_status" >&5
20041 echo "$as_me: failed program was:" >&5
20042 sed 's/^/| /' conftest.$ac_ext >&5
20044 ( exit $ac_status )
20045 ac_cv_func_setpgrp_void=yes
20047 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20050 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
20051 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
20052 if test $ac_cv_func_setpgrp_void = yes; then
20054 cat >>confdefs.h <<\_ACEOF
20055 #define SETPGRP_VOID 1
20059 # AC_FUNC_FNMATCH dnl use local version
20062 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
20063 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
20064 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
20065 echo $ECHO_N "(cached) $ECHO_C" >&6
20067 ac_check_lib_save_LIBS=$LIBS
20068 LIBS="-lxpg4 $LIBS"
20069 cat >conftest.$ac_ext <<_ACEOF
20072 cat confdefs.h >>conftest.$ac_ext
20073 cat >>conftest.$ac_ext <<_ACEOF
20074 /* end confdefs.h. */
20076 /* Override any gcc2 internal prototype to avoid an error. */
20080 /* We use char because int might match the return type of a gcc2
20081 builtin and then its argument prototype would still apply. */
20091 rm -f conftest.$ac_objext conftest$ac_exeext
20092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20093 (eval $ac_link) 2>conftest.er1
20095 grep -v '^ *+' conftest.er1 >conftest.err
20097 cat conftest.err >&5
20098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20099 (exit $ac_status); } &&
20100 { ac_try='test -z "$ac_c_werror_flag"
20101 || test ! -s conftest.err'
20102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20103 (eval $ac_try) 2>&5
20105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20106 (exit $ac_status); }; } &&
20107 { ac_try='test -s conftest$ac_exeext'
20108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20109 (eval $ac_try) 2>&5
20111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20112 (exit $ac_status); }; }; then
20113 ac_cv_lib_xpg4_setlocale=yes
20115 echo "$as_me: failed program was:" >&5
20116 sed 's/^/| /' conftest.$ac_ext >&5
20118 ac_cv_lib_xpg4_setlocale=no
20120 rm -f conftest.err conftest.$ac_objext \
20121 conftest$ac_exeext conftest.$ac_ext
20122 LIBS=$ac_check_lib_save_LIBS
20124 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
20125 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
20126 if test $ac_cv_lib_xpg4_setlocale = yes; then
20127 LIBS="$LIBS -lxpg4"
20133 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
20134 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
20135 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
20136 echo $ECHO_N "(cached) $ECHO_C" >&6
20138 ac_check_lib_save_LIBS=$LIBS
20140 cat >conftest.$ac_ext <<_ACEOF
20143 cat confdefs.h >>conftest.$ac_ext
20144 cat >>conftest.$ac_ext <<_ACEOF
20145 /* end confdefs.h. */
20147 /* Override any gcc2 internal prototype to avoid an error. */
20151 /* We use char because int might match the return type of a gcc2
20152 builtin and then its argument prototype would still apply. */
20162 rm -f conftest.$ac_objext conftest$ac_exeext
20163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20164 (eval $ac_link) 2>conftest.er1
20166 grep -v '^ *+' conftest.er1 >conftest.err
20168 cat conftest.err >&5
20169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20170 (exit $ac_status); } &&
20171 { ac_try='test -z "$ac_c_werror_flag"
20172 || test ! -s conftest.err'
20173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20174 (eval $ac_try) 2>&5
20176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20177 (exit $ac_status); }; } &&
20178 { ac_try='test -s conftest$ac_exeext'
20179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20180 (eval $ac_try) 2>&5
20182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20183 (exit $ac_status); }; }; then
20184 ac_cv_lib_sun_getpwnam=yes
20186 echo "$as_me: failed program was:" >&5
20187 sed 's/^/| /' conftest.$ac_ext >&5
20189 ac_cv_lib_sun_getpwnam=no
20191 rm -f conftest.err conftest.$ac_objext \
20192 conftest$ac_exeext conftest.$ac_ext
20193 LIBS=$ac_check_lib_save_LIBS
20195 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
20196 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
20197 if test $ac_cv_lib_sun_getpwnam = yes; then
20198 cat >>confdefs.h <<_ACEOF
20199 #define HAVE_LIBSUN 1
20208 for ac_header in zlib.h
20210 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20211 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20212 echo "$as_me:$LINENO: checking for $ac_header" >&5
20213 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20214 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20215 echo $ECHO_N "(cached) $ECHO_C" >&6
20217 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20218 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20220 # Is the header compilable?
20221 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20222 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20223 cat >conftest.$ac_ext <<_ACEOF
20226 cat confdefs.h >>conftest.$ac_ext
20227 cat >>conftest.$ac_ext <<_ACEOF
20228 /* end confdefs.h. */
20229 $ac_includes_default
20230 #include <$ac_header>
20232 rm -f conftest.$ac_objext
20233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20234 (eval $ac_compile) 2>conftest.er1
20236 grep -v '^ *+' conftest.er1 >conftest.err
20238 cat conftest.err >&5
20239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20240 (exit $ac_status); } &&
20241 { ac_try='test -z "$ac_c_werror_flag"
20242 || test ! -s conftest.err'
20243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20244 (eval $ac_try) 2>&5
20246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20247 (exit $ac_status); }; } &&
20248 { ac_try='test -s conftest.$ac_objext'
20249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20250 (eval $ac_try) 2>&5
20252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20253 (exit $ac_status); }; }; then
20254 ac_header_compiler=yes
20256 echo "$as_me: failed program was:" >&5
20257 sed 's/^/| /' conftest.$ac_ext >&5
20259 ac_header_compiler=no
20261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20262 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20263 echo "${ECHO_T}$ac_header_compiler" >&6
20265 # Is the header present?
20266 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20267 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20268 cat >conftest.$ac_ext <<_ACEOF
20271 cat confdefs.h >>conftest.$ac_ext
20272 cat >>conftest.$ac_ext <<_ACEOF
20273 /* end confdefs.h. */
20274 #include <$ac_header>
20276 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20277 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20279 grep -v '^ *+' conftest.er1 >conftest.err
20281 cat conftest.err >&5
20282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20283 (exit $ac_status); } >/dev/null; then
20284 if test -s conftest.err; then
20285 ac_cpp_err=$ac_c_preproc_warn_flag
20286 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20293 if test -z "$ac_cpp_err"; then
20294 ac_header_preproc=yes
20296 echo "$as_me: failed program was:" >&5
20297 sed 's/^/| /' conftest.$ac_ext >&5
20299 ac_header_preproc=no
20301 rm -f conftest.err conftest.$ac_ext
20302 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20303 echo "${ECHO_T}$ac_header_preproc" >&6
20305 # So? What about this header?
20306 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20308 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20309 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20310 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20311 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20312 ac_header_preproc=yes
20315 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20316 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20317 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20318 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20319 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20320 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20321 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20322 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20323 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20324 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20325 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20326 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20329 ## ------------------------------------------ ##
20330 ## Report this to the AC_PACKAGE_NAME lists. ##
20331 ## ------------------------------------------ ##
20334 sed "s/^/$as_me: WARNING: /" >&2
20337 echo "$as_me:$LINENO: checking for $ac_header" >&5
20338 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20339 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20340 echo $ECHO_N "(cached) $ECHO_C" >&6
20342 eval "$as_ac_Header=\$ac_header_preproc"
20344 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20345 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20348 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20349 cat >>confdefs.h <<_ACEOF
20350 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20357 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
20358 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
20359 if test "${ac_cv_lib_z_deflate+set}" = set; then
20360 echo $ECHO_N "(cached) $ECHO_C" >&6
20362 ac_check_lib_save_LIBS=$LIBS
20364 cat >conftest.$ac_ext <<_ACEOF
20367 cat confdefs.h >>conftest.$ac_ext
20368 cat >>conftest.$ac_ext <<_ACEOF
20369 /* end confdefs.h. */
20371 /* Override any gcc2 internal prototype to avoid an error. */
20375 /* We use char because int might match the return type of a gcc2
20376 builtin and then its argument prototype would still apply. */
20386 rm -f conftest.$ac_objext conftest$ac_exeext
20387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20388 (eval $ac_link) 2>conftest.er1
20390 grep -v '^ *+' conftest.er1 >conftest.err
20392 cat conftest.err >&5
20393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20394 (exit $ac_status); } &&
20395 { ac_try='test -z "$ac_c_werror_flag"
20396 || test ! -s conftest.err'
20397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20398 (eval $ac_try) 2>&5
20400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20401 (exit $ac_status); }; } &&
20402 { ac_try='test -s conftest$ac_exeext'
20403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20404 (eval $ac_try) 2>&5
20406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20407 (exit $ac_status); }; }; then
20408 ac_cv_lib_z_deflate=yes
20410 echo "$as_me: failed program was:" >&5
20411 sed 's/^/| /' conftest.$ac_ext >&5
20413 ac_cv_lib_z_deflate=no
20415 rm -f conftest.err conftest.$ac_objext \
20416 conftest$ac_exeext conftest.$ac_ext
20417 LIBS=$ac_check_lib_save_LIBS
20419 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
20420 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
20421 if test $ac_cv_lib_z_deflate = yes; then
20426 if test x$FDLIBS = x-lz; then
20427 cat >>confdefs.h <<\_ACEOF
20428 #define HAVE_LIBZ 1
20434 if test "${ac_cv_header_sys_acl_h+set}" = set; then
20435 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
20436 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
20437 if test "${ac_cv_header_sys_acl_h+set}" = set; then
20438 echo $ECHO_N "(cached) $ECHO_C" >&6
20440 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
20441 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
20443 # Is the header compilable?
20444 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
20445 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
20446 cat >conftest.$ac_ext <<_ACEOF
20449 cat confdefs.h >>conftest.$ac_ext
20450 cat >>conftest.$ac_ext <<_ACEOF
20451 /* end confdefs.h. */
20452 $ac_includes_default
20453 #include <sys/acl.h>
20455 rm -f conftest.$ac_objext
20456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20457 (eval $ac_compile) 2>conftest.er1
20459 grep -v '^ *+' conftest.er1 >conftest.err
20461 cat conftest.err >&5
20462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20463 (exit $ac_status); } &&
20464 { ac_try='test -z "$ac_c_werror_flag"
20465 || test ! -s conftest.err'
20466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20467 (eval $ac_try) 2>&5
20469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20470 (exit $ac_status); }; } &&
20471 { ac_try='test -s conftest.$ac_objext'
20472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20473 (eval $ac_try) 2>&5
20475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20476 (exit $ac_status); }; }; then
20477 ac_header_compiler=yes
20479 echo "$as_me: failed program was:" >&5
20480 sed 's/^/| /' conftest.$ac_ext >&5
20482 ac_header_compiler=no
20484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20485 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20486 echo "${ECHO_T}$ac_header_compiler" >&6
20488 # Is the header present?
20489 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
20490 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
20491 cat >conftest.$ac_ext <<_ACEOF
20494 cat confdefs.h >>conftest.$ac_ext
20495 cat >>conftest.$ac_ext <<_ACEOF
20496 /* end confdefs.h. */
20497 #include <sys/acl.h>
20499 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20500 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20502 grep -v '^ *+' conftest.er1 >conftest.err
20504 cat conftest.err >&5
20505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20506 (exit $ac_status); } >/dev/null; then
20507 if test -s conftest.err; then
20508 ac_cpp_err=$ac_c_preproc_warn_flag
20509 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20516 if test -z "$ac_cpp_err"; then
20517 ac_header_preproc=yes
20519 echo "$as_me: failed program was:" >&5
20520 sed 's/^/| /' conftest.$ac_ext >&5
20522 ac_header_preproc=no
20524 rm -f conftest.err conftest.$ac_ext
20525 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20526 echo "${ECHO_T}$ac_header_preproc" >&6
20528 # So? What about this header?
20529 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20531 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
20532 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20533 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
20534 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
20535 ac_header_preproc=yes
20538 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
20539 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
20540 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
20541 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
20542 { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
20543 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
20544 { echo "$as_me:$LINENO: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&5
20545 echo "$as_me: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&2;}
20546 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
20547 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
20548 { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
20549 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
20552 ## ------------------------------------------ ##
20553 ## Report this to the AC_PACKAGE_NAME lists. ##
20554 ## ------------------------------------------ ##
20557 sed "s/^/$as_me: WARNING: /" >&2
20560 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
20561 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
20562 if test "${ac_cv_header_sys_acl_h+set}" = set; then
20563 echo $ECHO_N "(cached) $ECHO_C" >&6
20565 ac_cv_header_sys_acl_h=$ac_header_preproc
20567 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
20568 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
20573 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
20574 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
20575 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
20576 echo $ECHO_N "(cached) $ECHO_C" >&6
20578 ac_check_lib_save_LIBS=$LIBS
20580 cat >conftest.$ac_ext <<_ACEOF
20583 cat confdefs.h >>conftest.$ac_ext
20584 cat >>conftest.$ac_ext <<_ACEOF
20585 /* end confdefs.h. */
20587 /* Override any gcc2 internal prototype to avoid an error. */
20591 /* We use char because int might match the return type of a gcc2
20592 builtin and then its argument prototype would still apply. */
20593 char acl_get_file ();
20602 rm -f conftest.$ac_objext conftest$ac_exeext
20603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20604 (eval $ac_link) 2>conftest.er1
20606 grep -v '^ *+' conftest.er1 >conftest.err
20608 cat conftest.err >&5
20609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20610 (exit $ac_status); } &&
20611 { ac_try='test -z "$ac_c_werror_flag"
20612 || test ! -s conftest.err'
20613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20614 (eval $ac_try) 2>&5
20616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20617 (exit $ac_status); }; } &&
20618 { ac_try='test -s conftest$ac_exeext'
20619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20620 (eval $ac_try) 2>&5
20622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20623 (exit $ac_status); }; }; then
20624 ac_cv_lib_acl_acl_get_file=yes
20626 echo "$as_me: failed program was:" >&5
20627 sed 's/^/| /' conftest.$ac_ext >&5
20629 ac_cv_lib_acl_acl_get_file=no
20631 rm -f conftest.err conftest.$ac_objext \
20632 conftest$ac_exeext conftest.$ac_ext
20633 LIBS=$ac_check_lib_save_LIBS
20635 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
20636 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
20637 if test $ac_cv_lib_acl_acl_get_file = yes; then
20638 FDLIBS="-lacl $FDLIBS"
20642 if test $ac_cv_lib_acl_acl_get_file = yes; then
20643 cat >>confdefs.h <<\_ACEOF
20651 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
20652 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
20653 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
20654 echo $ECHO_N "(cached) $ECHO_C" >&6
20656 ac_check_lib_save_LIBS=$LIBS
20657 LIBS="-lpthread $LIBS"
20658 cat >conftest.$ac_ext <<_ACEOF
20661 cat confdefs.h >>conftest.$ac_ext
20662 cat >>conftest.$ac_ext <<_ACEOF
20663 /* end confdefs.h. */
20665 /* Override any gcc2 internal prototype to avoid an error. */
20669 /* We use char because int might match the return type of a gcc2
20670 builtin and then its argument prototype would still apply. */
20671 char pthread_create ();
20680 rm -f conftest.$ac_objext conftest$ac_exeext
20681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20682 (eval $ac_link) 2>conftest.er1
20684 grep -v '^ *+' conftest.er1 >conftest.err
20686 cat conftest.err >&5
20687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20688 (exit $ac_status); } &&
20689 { ac_try='test -z "$ac_c_werror_flag"
20690 || test ! -s conftest.err'
20691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20692 (eval $ac_try) 2>&5
20694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20695 (exit $ac_status); }; } &&
20696 { ac_try='test -s conftest$ac_exeext'
20697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20698 (eval $ac_try) 2>&5
20700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20701 (exit $ac_status); }; }; then
20702 ac_cv_lib_pthread_pthread_create=yes
20704 echo "$as_me: failed program was:" >&5
20705 sed 's/^/| /' conftest.$ac_ext >&5
20707 ac_cv_lib_pthread_pthread_create=no
20709 rm -f conftest.err conftest.$ac_objext \
20710 conftest$ac_exeext conftest.$ac_ext
20711 LIBS=$ac_check_lib_save_LIBS
20713 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
20714 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
20715 if test $ac_cv_lib_pthread_pthread_create = yes; then
20716 PTHREAD_LIB="-lpthread"
20718 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
20719 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
20720 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
20721 echo $ECHO_N "(cached) $ECHO_C" >&6
20723 ac_check_lib_save_LIBS=$LIBS
20724 LIBS="-lpthreads $LIBS"
20725 cat >conftest.$ac_ext <<_ACEOF
20728 cat confdefs.h >>conftest.$ac_ext
20729 cat >>conftest.$ac_ext <<_ACEOF
20730 /* end confdefs.h. */
20732 /* Override any gcc2 internal prototype to avoid an error. */
20736 /* We use char because int might match the return type of a gcc2
20737 builtin and then its argument prototype would still apply. */
20738 char pthread_create ();
20747 rm -f conftest.$ac_objext conftest$ac_exeext
20748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20749 (eval $ac_link) 2>conftest.er1
20751 grep -v '^ *+' conftest.er1 >conftest.err
20753 cat conftest.err >&5
20754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20755 (exit $ac_status); } &&
20756 { ac_try='test -z "$ac_c_werror_flag"
20757 || test ! -s conftest.err'
20758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20759 (eval $ac_try) 2>&5
20761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20762 (exit $ac_status); }; } &&
20763 { ac_try='test -s conftest$ac_exeext'
20764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20765 (eval $ac_try) 2>&5
20767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20768 (exit $ac_status); }; }; then
20769 ac_cv_lib_pthreads_pthread_create=yes
20771 echo "$as_me: failed program was:" >&5
20772 sed 's/^/| /' conftest.$ac_ext >&5
20774 ac_cv_lib_pthreads_pthread_create=no
20776 rm -f conftest.err conftest.$ac_objext \
20777 conftest$ac_exeext conftest.$ac_ext
20778 LIBS=$ac_check_lib_save_LIBS
20780 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
20781 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
20782 if test $ac_cv_lib_pthreads_pthread_create = yes; then
20783 PTHREAD_LIB="-lpthreads"
20785 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
20786 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
20787 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
20788 echo $ECHO_N "(cached) $ECHO_C" >&6
20790 ac_check_lib_save_LIBS=$LIBS
20792 cat >conftest.$ac_ext <<_ACEOF
20795 cat confdefs.h >>conftest.$ac_ext
20796 cat >>conftest.$ac_ext <<_ACEOF
20797 /* end confdefs.h. */
20799 /* Override any gcc2 internal prototype to avoid an error. */
20803 /* We use char because int might match the return type of a gcc2
20804 builtin and then its argument prototype would still apply. */
20805 char pthread_create ();
20814 rm -f conftest.$ac_objext conftest$ac_exeext
20815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20816 (eval $ac_link) 2>conftest.er1
20818 grep -v '^ *+' conftest.er1 >conftest.err
20820 cat conftest.err >&5
20821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20822 (exit $ac_status); } &&
20823 { ac_try='test -z "$ac_c_werror_flag"
20824 || test ! -s conftest.err'
20825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20826 (eval $ac_try) 2>&5
20828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20829 (exit $ac_status); }; } &&
20830 { ac_try='test -s conftest$ac_exeext'
20831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20832 (eval $ac_try) 2>&5
20834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20835 (exit $ac_status); }; }; then
20836 ac_cv_lib_c_r_pthread_create=yes
20838 echo "$as_me: failed program was:" >&5
20839 sed 's/^/| /' conftest.$ac_ext >&5
20841 ac_cv_lib_c_r_pthread_create=no
20843 rm -f conftest.err conftest.$ac_objext \
20844 conftest$ac_exeext conftest.$ac_ext
20845 LIBS=$ac_check_lib_save_LIBS
20847 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
20848 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
20849 if test $ac_cv_lib_c_r_pthread_create = yes; then
20850 PTHREAD_LIB="-lc_r"
20852 echo "$as_me:$LINENO: checking for pthread_create" >&5
20853 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
20854 if test "${ac_cv_func_pthread_create+set}" = set; then
20855 echo $ECHO_N "(cached) $ECHO_C" >&6
20857 cat >conftest.$ac_ext <<_ACEOF
20860 cat confdefs.h >>conftest.$ac_ext
20861 cat >>conftest.$ac_ext <<_ACEOF
20862 /* end confdefs.h. */
20863 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
20864 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20865 #define pthread_create innocuous_pthread_create
20867 /* System header to define __stub macros and hopefully few prototypes,
20868 which can conflict with char pthread_create (); below.
20869 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20870 <limits.h> exists even on freestanding compilers. */
20873 # include <limits.h>
20875 # include <assert.h>
20878 #undef pthread_create
20880 /* Override any gcc2 internal prototype to avoid an error. */
20885 /* We use char because int might match the return type of a gcc2
20886 builtin and then its argument prototype would still apply. */
20887 char pthread_create ();
20888 /* The GNU C library defines this for functions which it implements
20889 to always fail with ENOSYS. Some functions are actually named
20890 something starting with __ and the normal name is an alias. */
20891 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
20894 char (*f) () = pthread_create;
20903 return f != pthread_create;
20908 rm -f conftest.$ac_objext conftest$ac_exeext
20909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20910 (eval $ac_link) 2>conftest.er1
20912 grep -v '^ *+' conftest.er1 >conftest.err
20914 cat conftest.err >&5
20915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20916 (exit $ac_status); } &&
20917 { ac_try='test -z "$ac_c_werror_flag"
20918 || test ! -s conftest.err'
20919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20920 (eval $ac_try) 2>&5
20922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20923 (exit $ac_status); }; } &&
20924 { ac_try='test -s conftest$ac_exeext'
20925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20926 (eval $ac_try) 2>&5
20928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20929 (exit $ac_status); }; }; then
20930 ac_cv_func_pthread_create=yes
20932 echo "$as_me: failed program was:" >&5
20933 sed 's/^/| /' conftest.$ac_ext >&5
20935 ac_cv_func_pthread_create=no
20937 rm -f conftest.err conftest.$ac_objext \
20938 conftest$ac_exeext conftest.$ac_ext
20940 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
20941 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
20954 cat >>confdefs.h <<\_ACEOF
20960 CFLAGS=${CFLAGS--O}
20961 LDFLAGS=${LDFLAGS--O}
20962 DB_LIBS="${SQL_LFLAGS}"
20964 CPPFLAGS="$CPPFLAGS"
20989 # Finally we set appropriate distribution specific
20990 # variables and defaults
20992 # PFILES are platform specific files
20993 PFILES="platforms/Makefile"
20997 hostname=`uname -n | cut -d '.' -f 1`
20998 case "$DISTNAME" in
21001 PSCMD="ps -e -o pid,comm"
21002 PFILES="${PFILES} \
21003 platforms/aix/Makefile"
21004 TAPEDRIVE="/dev/rmt0.1"
21008 PTHREAD_LIB="-lpthread -lexc"
21009 if test "${CC}" = "gcc" ; then
21016 TAPEDRIVE="/dev/nrmt0"
21019 DISTVER=`uname -a |awk '{print $3}'`
21020 TAPEDRIVE="/dev/nrmt0"
21021 PTHREAD_LIB="-pthread"
21022 CFLAGS="${CFLAGS} -pthread"
21023 PSCMD="ps -x -o pid,command"
21026 PFILES="${PFILES} \
21027 platforms/bsdi/Makefile \
21028 platforms/bsdi/bacula-fd \
21029 platforms/bsdi/bacula-sd \
21030 platforms/bsdi/bacula-dir"
21031 largefile_support="yes"
21034 DISTVER=`uname -a |awk '{print $3}'`
21035 TAPEDRIVE="/dev/nrst0"
21037 WCFLAGS="-mwindows"
21038 WLDFLAGS="-mwindows"
21042 TAPEDRIVE="/dev/nst0"
21043 PSCMD="ps -e -o pid,command"
21045 PFILES="${PFILES} \
21046 platforms/darwin/Makefile"
21049 DISTVER=`cat /etc/debian_version`
21050 TAPEDRIVE="/dev/nrst0"
21051 PSCMD="ps -e -o pid,command"
21054 DISTVER=`uname -a |awk '{print $3}'`
21055 VER=`echo $DISTVER | cut -c 1`
21056 if test x$VER = x4 ; then
21057 PTHREAD_LIB="-pthread"
21058 CFLAGS="${CFLAGS} -pthread"
21062 TAPEDRIVE="/dev/nrsa0"
21063 PSCMD="ps -x -o pid,command"
21064 PFILES="${PFILES} \
21065 platforms/freebsd/Makefile \
21066 platforms/freebsd/bacula-fd \
21067 platforms/freebsd/bacula-sd \
21068 platforms/freebsd/bacula-dir"
21069 largefile_support="yes"
21072 PSCMD="UNIX95=1 ps -e -o pid,comm"
21073 CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
21075 TAPEDRIVE="/dev/rmt/0hnb"
21079 TAPEDRIVE="/dev/rmt/0cbn"
21080 PSCMD="ps -e -o pid,comm"
21081 PFILES="${PFILES} \
21082 platforms/irix/Makefile \
21083 platforms/irix/bacula-fd \
21084 platforms/irix/bacula-sd \
21085 platforms/irix/bacula-dir"
21088 DISTVER=`uname -a |awk '{print $3}'`
21091 TAPEDRIVE="/dev/nrst0"
21092 PSCMD="ps -a -o pid,command"
21093 PTHREAD_LIB="-pthread"
21094 CFLAGS="${CFLAGS} -pthread"
21097 DISTVER=`uname -a |awk '{print $3}'`
21100 TAPEDRIVE="/dev/nrst0"
21101 PSCMD="ps -ax -o pid,command"
21102 PTHREAD_LIB="-pthread"
21103 CFLAGS="${CFLAGS} -pthread"
21104 PFILES="${PFILES} \
21105 platforms/openbsd/Makefile \
21106 platforms/openbsd/bacula-fd \
21107 platforms/openbsd/bacula-sd \
21108 platforms/openbsd/bacula-dir"
21111 if test -f /etc/whitebox-release ; then
21112 f=/etc/whitebox-release
21114 f=/etc/redhat-release
21116 if test `cat $f | grep release |\
21117 cut -f 3 -d ' '`x = "Enterprise"x ; then
21118 DISTVER="Enterprise "`cat $f | grep release |\
21121 DISTVER=`cat /etc/redhat-release | grep release |\
21124 TAPEDRIVE="/dev/nst0"
21125 PSCMD="ps -e -o pid,command"
21126 PFILES="${PFILES} \
21127 platforms/redhat/Makefile \
21128 platforms/redhat/bacula-fd \
21129 platforms/redhat/bacula-sd \
21130 platforms/redhat/bacula-dir \
21131 platforms/redhat/bacula.spec \
21133 hostname=`hostname -s`
21136 DISTVER=`cat /etc/mandrake-release | grep release |\
21138 TAPEDRIVE="/dev/nst0"
21139 PSCMD="ps -e -o pid,command"
21140 PFILES="${PFILES} \
21141 platforms/mandrake/Makefile \
21142 platforms/mandrake/bacula-fd \
21143 platforms/mandrake/bacula-sd \
21144 platforms/mandrake/bacula-dir \
21145 platforms/mandrake/bacula.spec \
21149 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
21150 TAPEDRIVE="/dev/nst0"
21151 PSCMD="ps -e -o pid,command"
21152 PFILES="${PFILES} \
21153 platforms/gentoo/Makefile \
21154 platforms/gentoo/bacula-init \
21155 platforms/gentoo/bacula-fd \
21156 platforms/gentoo/bacula-sd \
21157 platforms/gentoo/bacula-dir"
21160 DISTVER=`cat /etc/slackware-version`
21161 TAPEDRIVE="/dev/nst0"
21162 PSCMD="ps -e -o pid,command"
21163 PFILES="${PFILES} \
21164 platforms/slackware/Makefile \
21165 platforms/slackware/rc.bacula-fd \
21166 platforms/slackware/rc.bacula-sd \
21167 platforms/slackware/rc.bacula-dir\
21168 platforms/slackware/functions.bacula"
21172 TAPEDRIVE="/dev/rmt/0cbn"
21173 PSCMD="ps -e -o pid,comm"
21174 PFILES="${PFILES} \
21175 platforms/solaris/Makefile \
21176 platforms/solaris/bacula-fd \
21177 platforms/solaris/bacula-sd \
21178 platforms/solaris/bacula-dir"
21179 if test x$DISTVER = x5.6 ; then
21180 cat >>confdefs.h <<\_ACEOF
21181 #define HAVE_OLD_SOCKOPT 1
21187 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
21189 TAPEDRIVE="/dev/nst0"
21190 PSCMD="ps -e -o pid,command"
21191 PFILES="${PFILES} \
21192 platforms/suse/Makefile \
21193 platforms/suse/bacula-fd \
21194 platforms/suse/bacula-sd \
21195 platforms/suse/bacula-dir \
21196 platforms/suse/bacula \
21197 platforms/suse/bacula.spec"
21202 TAPEDRIVE="/dev/nst0"
21203 PSCMD="ps -e -o pid,command"
21204 PFILES="${PFILES} \
21205 platforms/suse/Makefile \
21206 platforms/suse/bacula-fd \
21207 platforms/suse/bacula-sd \
21208 platforms/suse/bacula-dir"
21212 TAPEDRIVE="/dev/nst0"
21215 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
21221 LIBS="$PTHREAD_LIB $LIBS"
21223 cat >>confdefs.h <<_ACEOF
21227 cat >>confdefs.h <<_ACEOF
21238 MCOMMON=./autoconf/Make.common
21241 if test "x${subsysdir}" = "x${sbindir}" ; then
21244 echo "You have set both --sbindir and --with-subsys-dir"
21245 echo " equal to: ${subsysdir} "
21246 echo "This is not permitted. Please reconfigure."
21248 echo "Aborting configuration ..."
21254 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 src/win32/pebuilder/Makefile src/bimagemgr/Makefile src/bimagemgr/bacula-bimagemgr.spec $PFILES"
21255 ac_config_commands="$ac_config_commands default"
21256 cat >confcache <<\_ACEOF
21257 # This file is a shell script that caches the results of configure
21258 # tests run on this system so they can be shared between configure
21259 # scripts and configure runs, see configure's option --config-cache.
21260 # It is not useful on other systems. If it contains results you don't
21261 # want to keep, you may remove or edit it.
21263 # config.status only pays attention to the cache file if you give it
21264 # the --recheck option to rerun configure.
21266 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21267 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21268 # following values.
21272 # The following way of writing the cache mishandles newlines in values,
21273 # but we know of no workaround that is simple, portable, and efficient.
21274 # So, don't put newlines in cache variables' values.
21275 # Ultrix sh set writes to stderr and can't be redirected directly,
21276 # and sets the high bit in the cache file unless we assign to the vars.
21279 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21281 # `set' does not quote correctly, so add quotes (double-quote
21282 # substitution turns \\\\ into \\, and sed turns \\ into \).
21285 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21288 # `set' quotes correctly as required by POSIX, so do not add quotes.
21290 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21297 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21299 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21301 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21302 if test -w $cache_file; then
21303 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21304 cat confcache >$cache_file
21306 echo "not updating unwritable cache $cache_file"
21311 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21312 # Let make expand exec_prefix.
21313 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21315 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21316 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21317 # trailing colons and then remove the whole line if VPATH becomes empty
21318 # (actually we leave an empty line to preserve line numbers).
21319 if test "x$srcdir" = x.; then
21320 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21321 s/:*\$(srcdir):*/:/;
21322 s/:*\${srcdir}:*/:/;
21324 s/^\([^=]*=[ ]*\):*/\1/;
21330 DEFS=-DHAVE_CONFIG_H
21334 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21335 # 1. Remove the extension, and $U if already installed.
21336 ac_i=`echo "$ac_i" |
21337 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21339 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21340 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21342 LIBOBJS=$ac_libobjs
21344 LTLIBOBJS=$ac_ltlibobjs
21348 : ${CONFIG_STATUS=./config.status}
21349 ac_clean_files_save=$ac_clean_files
21350 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21351 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21352 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21353 cat >$CONFIG_STATUS <<_ACEOF
21355 # Generated by $as_me.
21356 # Run this file to recreate the current configuration.
21357 # Compiler output produced by configure, useful for debugging
21358 # configure, is in config.log if it exists.
21361 ac_cs_recheck=false
21363 SHELL=\${CONFIG_SHELL-$SHELL}
21366 cat >>$CONFIG_STATUS <<\_ACEOF
21367 ## --------------------- ##
21368 ## M4sh Initialization. ##
21369 ## --------------------- ##
21371 # Be Bourne compatible
21372 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21375 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21376 # is contrary to our usage. Disable this feature.
21377 alias -g '${1+"$@"}'='"$@"'
21378 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21381 DUALCASE=1; export DUALCASE # for MKS sh
21383 # Support unset when possible.
21384 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21391 # Work around bugs in pre-3.0 UWIN ksh.
21392 $as_unset ENV MAIL MAILPATH
21399 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21400 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21401 LC_TELEPHONE LC_TIME
21403 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21404 eval $as_var=C; export $as_var
21410 # Required to use basename.
21411 if expr a : '\(a\)' >/dev/null 2>&1; then
21417 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21418 as_basename=basename
21424 # Name of the executable.
21425 as_me=`$as_basename "$0" ||
21426 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21427 X"$0" : 'X\(//\)$' \| \
21428 X"$0" : 'X\(/\)$' \| \
21429 . : '\(.\)' 2>/dev/null ||
21431 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21432 /^X\/\(\/\/\)$/{ s//\1/; q; }
21433 /^X\/\(\/\).*/{ s//\1/; q; }
21437 # PATH needs CR, and LINENO needs CR and PATH.
21438 # Avoid depending upon Character Ranges.
21439 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21440 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21441 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21442 as_cr_digits='0123456789'
21443 as_cr_alnum=$as_cr_Letters$as_cr_digits
21445 # The user is always right.
21446 if test "${PATH_SEPARATOR+set}" != set; then
21447 echo "#! /bin/sh" >conf$$.sh
21448 echo "exit 0" >>conf$$.sh
21450 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21459 as_lineno_1=$LINENO
21460 as_lineno_2=$LINENO
21461 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21462 test "x$as_lineno_1" != "x$as_lineno_2" &&
21463 test "x$as_lineno_3" = "x$as_lineno_2" || {
21464 # Find who we are. Look in the path if we contain no path at all
21467 *[\\/]* ) as_myself=$0 ;;
21468 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21469 for as_dir in $PATH
21472 test -z "$as_dir" && as_dir=.
21473 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21478 # We did not find ourselves, most probably we were run as `sh COMMAND'
21479 # in which case we are not to be found in the path.
21480 if test "x$as_myself" = x; then
21483 if test ! -f "$as_myself"; then
21484 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21485 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21486 { (exit 1); exit 1; }; }
21488 case $CONFIG_SHELL in
21490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21491 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21494 test -z "$as_dir" && as_dir=.
21495 for as_base in sh bash ksh sh5; do
21498 if ("$as_dir/$as_base" -c '
21499 as_lineno_1=$LINENO
21500 as_lineno_2=$LINENO
21501 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21502 test "x$as_lineno_1" != "x$as_lineno_2" &&
21503 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
21504 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21505 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21506 CONFIG_SHELL=$as_dir/$as_base
21507 export CONFIG_SHELL
21508 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21516 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21517 # uniformly replaced by the line number. The first 'sed' inserts a
21518 # line-number line before each line; the second 'sed' does the real
21519 # work. The second script uses 'N' to pair each line-number line
21520 # with the numbered line, and appends trailing '-' during
21521 # substitution so that $LINENO is not a special case at line end.
21522 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21523 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21524 sed '=' <$as_myself |
21529 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21532 s,^['$as_cr_digits']*\n,,
21533 ' >$as_me.lineno &&
21534 chmod +x $as_me.lineno ||
21535 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21536 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21537 { (exit 1); exit 1; }; }
21539 # Don't try to exec as it changes $[0], causing all sort of problems
21540 # (the dirname of $[0] is not the place where we might find the
21541 # original and so on. Autoconf is especially sensible to this).
21543 # Exit status is that of the last command.
21548 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21549 *c*,-n*) ECHO_N= ECHO_C='
21551 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21552 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
21555 if expr a : '\(a\)' >/dev/null 2>&1; then
21561 rm -f conf$$ conf$$.exe conf$$.file
21563 if ln -s conf$$.file conf$$ 2>/dev/null; then
21564 # We could just check for DJGPP; but this test a) works b) is more generic
21565 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21566 if test -f conf$$.exe; then
21567 # Don't use ln at all; we don't have any links
21572 elif ln conf$$.file conf$$ 2>/dev/null; then
21577 rm -f conf$$ conf$$.exe conf$$.file
21579 if mkdir -p . 2>/dev/null; then
21582 test -d ./-p && rmdir ./-p
21586 as_executable_p="test -f"
21588 # Sed expression to map a string onto a valid CPP name.
21589 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21591 # Sed expression to map a string onto a valid variable name.
21592 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21596 # We need space, tab and new line, in precisely that order.
21606 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21607 # report actual input values of CONFIG_FILES etc. instead of their
21608 # values after options handling. Logging --version etc. is OK.
21612 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21613 ## Running $as_me. ##
21618 This file was extended by $as_me, which was
21619 generated by GNU Autoconf 2.59. Invocation command line was
21621 CONFIG_FILES = $CONFIG_FILES
21622 CONFIG_HEADERS = $CONFIG_HEADERS
21623 CONFIG_LINKS = $CONFIG_LINKS
21624 CONFIG_COMMANDS = $CONFIG_COMMANDS
21628 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21632 # Files that config.status was made for.
21633 if test -n "$ac_config_files"; then
21634 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21637 if test -n "$ac_config_headers"; then
21638 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21641 if test -n "$ac_config_links"; then
21642 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21645 if test -n "$ac_config_commands"; then
21646 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21649 cat >>$CONFIG_STATUS <<\_ACEOF
21652 \`$as_me' instantiates files from templates according to the
21653 current configuration.
21655 Usage: $0 [OPTIONS] [FILE]...
21657 -h, --help print this help, then exit
21658 -V, --version print version number, then exit
21659 -q, --quiet do not print progress messages
21660 -d, --debug don't remove temporary files
21661 --recheck update $as_me by reconfiguring in the same conditions
21662 --file=FILE[:TEMPLATE]
21663 instantiate the configuration file FILE
21664 --header=FILE[:TEMPLATE]
21665 instantiate the configuration header FILE
21667 Configuration files:
21670 Configuration headers:
21673 Configuration commands:
21676 Report bugs to <bug-autoconf@gnu.org>."
21679 cat >>$CONFIG_STATUS <<_ACEOF
21682 configured by $0, generated by GNU Autoconf 2.59,
21683 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21685 Copyright (C) 2003 Free Software Foundation, Inc.
21686 This config.status script is free software; the Free Software Foundation
21687 gives unlimited permission to copy, distribute and modify it."
21692 cat >>$CONFIG_STATUS <<\_ACEOF
21693 # If no file are specified by the user, then we need to provide default
21694 # value. By we need to know if files were specified by the user.
21700 ac_option=`expr "x$1" : 'x\([^=]*\)='`
21701 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21709 *) # This is not an option, so the user has probably given explicit
21712 ac_need_defaults=false;;
21716 # Handling of the options.
21718 cat >>$CONFIG_STATUS <<\_ACEOF
21719 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21721 --version | --vers* | -V )
21722 echo "$ac_cs_version"; exit 0 ;;
21724 # Conflict between --help and --header
21725 { { echo "$as_me:$LINENO: error: ambiguous option: $1
21726 Try \`$0 --help' for more information." >&5
21727 echo "$as_me: error: ambiguous option: $1
21728 Try \`$0 --help' for more information." >&2;}
21729 { (exit 1); exit 1; }; };;
21730 --help | --hel | -h )
21731 echo "$ac_cs_usage"; exit 0 ;;
21732 --debug | --d* | -d )
21734 --file | --fil | --fi | --f )
21736 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21737 ac_need_defaults=false;;
21738 --header | --heade | --head | --hea )
21740 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21741 ac_need_defaults=false;;
21742 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21743 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21746 # This is an error.
21747 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21748 Try \`$0 --help' for more information." >&5
21749 echo "$as_me: error: unrecognized option: $1
21750 Try \`$0 --help' for more information." >&2;}
21751 { (exit 1); exit 1; }; } ;;
21753 *) ac_config_targets="$ac_config_targets $1" ;;
21759 ac_configure_extra_args=
21761 if $ac_cs_silent; then
21763 ac_configure_extra_args="$ac_configure_extra_args --silent"
21767 cat >>$CONFIG_STATUS <<_ACEOF
21768 if \$ac_cs_recheck; then
21769 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21770 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21779 cat >>$CONFIG_STATUS <<\_ACEOF
21780 for ac_config_target in $ac_config_targets
21782 case "$ac_config_target" in
21783 # Handling of arguments.
21784 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
21785 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21786 "rescue/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/Makefile" ;;
21787 "rescue/linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/Makefile" ;;
21788 "rescue/linux/floppy/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/floppy/Makefile" ;;
21789 "rescue/linux/cdrom/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/cdrom/Makefile" ;;
21790 "rescue/linux/cdrom/bacula/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/cdrom/bacula/Makefile" ;;
21791 "rescue/freebsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/freebsd/Makefile" ;;
21792 "rescue/solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/solaris/Makefile" ;;
21793 "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
21794 "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
21795 "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
21796 "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
21797 "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
21798 "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
21799 "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
21800 "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
21801 "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
21802 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
21803 "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
21804 "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
21805 "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
21806 "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
21807 "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
21808 "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
21809 "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
21810 "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
21811 "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
21812 "scripts/bacula-tray-monitor.desktop" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
21813 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
21814 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21815 "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
21816 "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
21817 "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
21818 "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
21819 "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
21820 "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
21821 "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
21822 "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
21823 "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
21824 "src/tray-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
21825 "src/tray-monitor/tray-monitor.conf" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
21826 "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
21827 "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
21828 "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
21829 "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
21830 "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
21831 "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
21832 "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
21833 "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
21834 "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
21835 "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
21836 "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
21837 "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
21838 "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
21839 "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
21840 "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
21841 "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
21842 "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
21843 "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
21844 "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
21845 "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
21846 "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
21847 "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
21848 "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
21849 "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
21850 "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
21851 "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
21852 "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
21853 "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
21854 "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
21855 "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
21856 "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
21857 "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
21858 "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
21859 "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
21860 "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
21861 "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
21862 "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
21863 "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
21864 "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
21865 "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
21866 "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
21867 "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
21868 "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
21869 "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
21870 "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
21871 "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
21872 "src/win32/baculafd/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/baculafd/bacula-fd.conf" ;;
21873 "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
21874 "src/win32/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/console/bconsole.conf" ;;
21875 "src/win32/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/wx-console/wx-console.conf" ;;
21876 "src/win32/pebuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/pebuilder/Makefile" ;;
21877 "src/bimagemgr/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/bimagemgr/Makefile" ;;
21878 "src/bimagemgr/bacula-bimagemgr.spec" ) CONFIG_FILES="$CONFIG_FILES src/bimagemgr/bacula-bimagemgr.spec" ;;
21879 "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
21880 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
21881 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
21882 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21883 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21884 { (exit 1); exit 1; }; };;
21888 # If the user did not use the arguments to specify the items to instantiate,
21889 # then the envvar interface is used. Set only those that are not.
21890 # We use the long form for the default assignment because of an extremely
21891 # bizarre bug on SunOS 4.1.3.
21892 if $ac_need_defaults; then
21893 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21894 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21895 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21898 # Have a temporary directory for convenience. Make it in the build tree
21899 # simply because there is no reason to put it here, and in addition,
21900 # creating and moving files from /tmp can sometimes cause problems.
21901 # Create a temporary directory, and hook for its removal unless debugging.
21904 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21905 trap '{ (exit 1); exit 1; }' 1 2 13 15
21908 # Create a (secure) tmp directory for tmp files.
21911 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21912 test -n "$tmp" && test -d "$tmp"
21915 tmp=./confstat$$-$RANDOM
21916 (umask 077 && mkdir $tmp)
21919 echo "$me: cannot create a temporary directory in ." >&2
21920 { (exit 1); exit 1; }
21925 cat >>$CONFIG_STATUS <<_ACEOF
21928 # CONFIG_FILES section.
21931 # No need to generate the scripts if there are no CONFIG_FILES.
21932 # This happens for instance when ./config.status config.h
21933 if test -n "\$CONFIG_FILES"; then
21934 # Protect against being on the right side of a sed subst in config.status.
21935 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21936 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21937 s,@SHELL@,$SHELL,;t t
21938 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21939 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21940 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21941 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21942 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21943 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21944 s,@exec_prefix@,$exec_prefix,;t t
21945 s,@prefix@,$prefix,;t t
21946 s,@program_transform_name@,$program_transform_name,;t t
21947 s,@bindir@,$bindir,;t t
21948 s,@sbindir@,$sbindir,;t t
21949 s,@libexecdir@,$libexecdir,;t t
21950 s,@datadir@,$datadir,;t t
21951 s,@sysconfdir@,$sysconfdir,;t t
21952 s,@sharedstatedir@,$sharedstatedir,;t t
21953 s,@localstatedir@,$localstatedir,;t t
21954 s,@libdir@,$libdir,;t t
21955 s,@includedir@,$includedir,;t t
21956 s,@oldincludedir@,$oldincludedir,;t t
21957 s,@infodir@,$infodir,;t t
21958 s,@mandir@,$mandir,;t t
21959 s,@build_alias@,$build_alias,;t t
21960 s,@host_alias@,$host_alias,;t t
21961 s,@target_alias@,$target_alias,;t t
21962 s,@DEFS@,$DEFS,;t t
21963 s,@ECHO_C@,$ECHO_C,;t t
21964 s,@ECHO_N@,$ECHO_N,;t t
21965 s,@ECHO_T@,$ECHO_T,;t t
21966 s,@LIBS@,$LIBS,;t t
21967 s,@BUILD_DIR@,$BUILD_DIR,;t t
21968 s,@TRUEPRG@,$TRUEPRG,;t t
21969 s,@FALSEPRG@,$FALSEPRG,;t t
21970 s,@VERSION@,$VERSION,;t t
21971 s,@DATE@,$DATE,;t t
21972 s,@LSMDATE@,$LSMDATE,;t t
21974 s,@CFLAGS@,$CFLAGS,;t t
21975 s,@LDFLAGS@,$LDFLAGS,;t t
21976 s,@CPPFLAGS@,$CPPFLAGS,;t t
21977 s,@ac_ct_CC@,$ac_ct_CC,;t t
21978 s,@EXEEXT@,$EXEEXT,;t t
21979 s,@OBJEXT@,$OBJEXT,;t t
21981 s,@CXXFLAGS@,$CXXFLAGS,;t t
21982 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21984 s,@EGREP@,$EGREP,;t t
21985 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21986 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21987 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21988 s,@RANLIB@,$RANLIB,;t t
21989 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21995 s,@ECHO@,$ECHO,;t t
21999 s,@OPENSSL@,$OPENSSL,;t t
22001 s,@PKGCONFIG@,$PKGCONFIG,;t t
22002 s,@WXCONFIG@,$WXCONFIG,;t t
22003 s,@CDRECORD@,$CDRECORD,;t t
22004 s,@PIDOF@,$PIDOF,;t t
22005 s,@ARFLAGS@,$ARFLAGS,;t t
22006 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
22007 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
22008 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
22009 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
22010 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
22011 s,@build@,$build,;t t
22012 s,@build_cpu@,$build_cpu,;t t
22013 s,@build_vendor@,$build_vendor,;t t
22014 s,@build_os@,$build_os,;t t
22015 s,@host@,$host,;t t
22016 s,@host_cpu@,$host_cpu,;t t
22017 s,@host_vendor@,$host_vendor,;t t
22018 s,@host_os@,$host_os,;t t
22019 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
22020 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
22021 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
22022 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
22023 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
22024 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
22025 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
22026 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
22027 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
22028 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
22029 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
22030 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
22031 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
22032 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
22033 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
22034 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
22035 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
22036 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
22037 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
22038 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
22039 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
22040 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
22041 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
22042 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
22043 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
22044 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
22045 s,@MSGFMT@,$MSGFMT,;t t
22046 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
22047 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
22048 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
22049 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
22050 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
22051 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
22052 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
22053 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
22054 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
22055 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
22056 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
22057 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
22058 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
22059 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
22060 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
22061 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
22062 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
22063 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
22064 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
22065 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
22066 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
22067 s,@GNOME_DIR@,$GNOME_DIR,;t t
22068 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
22069 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
22070 s,@WX_DIR@,$WX_DIR,;t t
22071 s,@TRAY_MONITOR_CPPFLAGS@,$TRAY_MONITOR_CPPFLAGS,;t t
22072 s,@TRAY_MONITOR_LDFLAGS@,$TRAY_MONITOR_LDFLAGS,;t t
22073 s,@TRAY_MONITOR_DIR@,$TRAY_MONITOR_DIR,;t t
22074 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
22075 s,@STATIC_FD@,$STATIC_FD,;t t
22076 s,@STATIC_SD@,$STATIC_SD,;t t
22077 s,@STATIC_DIR@,$STATIC_DIR,;t t
22078 s,@STATIC_CONS@,$STATIC_CONS,;t t
22079 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
22080 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
22081 s,@ALL_DIRS@,$ALL_DIRS,;t t
22082 s,@CONS_INC@,$CONS_INC,;t t
22083 s,@CONS_OBJ@,$CONS_OBJ,;t t
22084 s,@CONS_SRC@,$CONS_SRC,;t t
22085 s,@CONS_LIBS@,$CONS_LIBS,;t t
22086 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
22087 s,@READLINE_SRC@,$READLINE_SRC,;t t
22088 s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t
22089 s,@PYTHON_INCDIR@,$PYTHON_INCDIR,;t t
22090 s,@CDSTL@,$CDSTL,;t t
22091 s,@working_dir@,$working_dir,;t t
22092 s,@scriptdir@,$scriptdir,;t t
22093 s,@dump_email@,$dump_email,;t t
22094 s,@job_email@,$job_email,;t t
22095 s,@smtp_host@,$smtp_host,;t t
22096 s,@piddir@,$piddir,;t t
22097 s,@subsysdir@,$subsysdir,;t t
22098 s,@baseport@,$baseport,;t t
22099 s,@dir_port@,$dir_port,;t t
22100 s,@fd_port@,$fd_port,;t t
22101 s,@sd_port@,$sd_port,;t t
22102 s,@dir_password@,$dir_password,;t t
22103 s,@fd_password@,$fd_password,;t t
22104 s,@sd_password@,$sd_password,;t t
22105 s,@mon_dir_password@,$mon_dir_password,;t t
22106 s,@mon_fd_password@,$mon_fd_password,;t t
22107 s,@mon_sd_password@,$mon_sd_password,;t t
22108 s,@bimagemgr_cgidir@,$bimagemgr_cgidir,;t t
22109 s,@bimagemgr_docdir@,$bimagemgr_docdir,;t t
22110 s,@bimagemgr_binowner@,$bimagemgr_binowner,;t t
22111 s,@bimagemgr_bingroup@,$bimagemgr_bingroup,;t t
22112 s,@bimagemgr_dataowner@,$bimagemgr_dataowner,;t t
22113 s,@bimagemgr_datagroup@,$bimagemgr_datagroup,;t t
22114 s,@dir_user@,$dir_user,;t t
22115 s,@dir_group@,$dir_group,;t t
22116 s,@sd_user@,$sd_user,;t t
22117 s,@sd_group@,$sd_group,;t t
22118 s,@fd_user@,$fd_user,;t t
22119 s,@fd_group@,$fd_group,;t t
22120 s,@SBINPERM@,$SBINPERM,;t t
22121 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
22122 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
22123 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
22124 s,@cats@,$cats,;t t
22125 s,@DB_NAME@,$DB_NAME,;t t
22126 s,@GETCONF@,$GETCONF,;t t
22127 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
22128 s,@X_CFLAGS@,$X_CFLAGS,;t t
22129 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
22130 s,@X_LIBS@,$X_LIBS,;t t
22131 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
22132 s,@LIBOBJS@,$LIBOBJS,;t t
22133 s,@ALLOCA@,$ALLOCA,;t t
22134 s,@FDLIBS@,$FDLIBS,;t t
22135 s,@DEBUG@,$DEBUG,;t t
22136 s,@DINCLUDE@,$DINCLUDE,;t t
22137 s,@DLIB@,$DLIB,;t t
22138 s,@DB_LIBS@,$DB_LIBS,;t t
22139 s,@WCFLAGS@,$WCFLAGS,;t t
22140 s,@WLDFLAGS@,$WLDFLAGS,;t t
22141 s,@OBJLIST@,$OBJLIST,;t t
22142 s,@hostname@,$hostname,;t t
22143 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
22144 s,@PSCMD@,$PSCMD,;t t
22145 s,@WIN32@,$WIN32,;t t
22146 s,@MACOSX@,$MACOSX,;t t
22147 s,@DISTNAME@,$DISTNAME,;t t
22148 s,@DISTVER@,$DISTVER,;t t
22149 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22150 /@MCOMMON@/r $MCOMMON
22156 cat >>$CONFIG_STATUS <<\_ACEOF
22157 # Split the substitutions into bite-sized pieces for seds with
22158 # small command number limits, like on Digital OSF/1 and HP-UX.
22159 ac_max_sed_lines=48
22160 ac_sed_frag=1 # Number of current file.
22161 ac_beg=1 # First line for current file.
22162 ac_end=$ac_max_sed_lines # Line after last line for current file.
22165 while $ac_more_lines; do
22166 if test $ac_beg -gt 1; then
22167 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22169 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22171 if test ! -s $tmp/subs.frag; then
22172 ac_more_lines=false
22174 # The purpose of the label and of the branching condition is to
22175 # speed up the sed processing (if there are no `@' at all, there
22176 # is no need to browse any of the substitutions).
22177 # These are the two extra sed commands mentioned above.
22179 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22180 if test -z "$ac_sed_cmds"; then
22181 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22183 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22185 ac_sed_frag=`expr $ac_sed_frag + 1`
22187 ac_end=`expr $ac_end + $ac_max_sed_lines`
22190 if test -z "$ac_sed_cmds"; then
22193 fi # test -n "$CONFIG_FILES"
22196 cat >>$CONFIG_STATUS <<\_ACEOF
22197 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22198 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22200 - | *:- | *:-:* ) # input from stdin
22202 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22203 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22204 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22205 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22206 * ) ac_file_in=$ac_file.in ;;
22209 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22210 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22211 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22212 X"$ac_file" : 'X\(//\)[^/]' \| \
22213 X"$ac_file" : 'X\(//\)$' \| \
22214 X"$ac_file" : 'X\(/\)' \| \
22215 . : '\(.\)' 2>/dev/null ||
22217 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22218 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22219 /^X\(\/\/\)$/{ s//\1/; q; }
22220 /^X\(\/\).*/{ s//\1/; q; }
22222 { if $as_mkdir_p; then
22227 while test ! -d "$as_dir"; do
22228 as_dirs="$as_dir $as_dirs"
22229 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22230 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22231 X"$as_dir" : 'X\(//\)[^/]' \| \
22232 X"$as_dir" : 'X\(//\)$' \| \
22233 X"$as_dir" : 'X\(/\)' \| \
22234 . : '\(.\)' 2>/dev/null ||
22236 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22237 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22238 /^X\(\/\/\)$/{ s//\1/; q; }
22239 /^X\(\/\).*/{ s//\1/; q; }
22242 test ! -n "$as_dirs" || mkdir $as_dirs
22243 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22244 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22245 { (exit 1); exit 1; }; }; }
22249 if test "$ac_dir" != .; then
22250 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22251 # A "../" for each directory in $ac_dir_suffix.
22252 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22254 ac_dir_suffix= ac_top_builddir=
22258 .) # No --srcdir option. We are building in place.
22260 if test -z "$ac_top_builddir"; then
22263 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22265 [\\/]* | ?:[\\/]* ) # Absolute path.
22266 ac_srcdir=$srcdir$ac_dir_suffix;
22267 ac_top_srcdir=$srcdir ;;
22268 *) # Relative path.
22269 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22270 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22273 # Do not use `cd foo && pwd` to compute absolute paths, because
22274 # the directories may not exist.
22276 .) ac_abs_builddir="$ac_dir";;
22279 .) ac_abs_builddir=`pwd`;;
22280 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22281 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22284 case $ac_abs_builddir in
22285 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22287 case ${ac_top_builddir}. in
22288 .) ac_abs_top_builddir=$ac_abs_builddir;;
22289 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22290 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22293 case $ac_abs_builddir in
22294 .) ac_abs_srcdir=$ac_srcdir;;
22297 .) ac_abs_srcdir=$ac_abs_builddir;;
22298 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22299 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22302 case $ac_abs_builddir in
22303 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22305 case $ac_top_srcdir in
22306 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22307 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22308 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22314 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22315 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22318 if test x"$ac_file" != x-; then
22319 { echo "$as_me:$LINENO: creating $ac_file" >&5
22320 echo "$as_me: creating $ac_file" >&6;}
22323 # Let's still pretend it is `configure' which instantiates (i.e., don't
22324 # use $as_me), people would be surprised to read:
22325 # /* config.h. Generated by config.status. */
22326 if test x"$ac_file" = x-; then
22329 configure_input="$ac_file. "
22331 configure_input=$configure_input"Generated from `echo $ac_file_in |
22332 sed 's,.*/,,'` by configure."
22334 # First look for the input files in the build tree, otherwise in the
22336 ac_file_inputs=`IFS=:
22337 for f in $ac_file_in; do
22339 -) echo $tmp/stdin ;;
22341 # Absolute (can't be DOS-style, as IFS=:)
22342 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22343 echo "$as_me: error: cannot find input file: $f" >&2;}
22344 { (exit 1); exit 1; }; }
22347 if test -f "$f"; then
22350 elif test -f "$srcdir/$f"; then
22355 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22356 echo "$as_me: error: cannot find input file: $f" >&2;}
22357 { (exit 1); exit 1; }; }
22360 done` || { (exit 1); exit 1; }
22362 cat >>$CONFIG_STATUS <<_ACEOF
22366 cat >>$CONFIG_STATUS <<\_ACEOF
22368 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22369 s,@configure_input@,$configure_input,;t t
22370 s,@srcdir@,$ac_srcdir,;t t
22371 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22372 s,@top_srcdir@,$ac_top_srcdir,;t t
22373 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22374 s,@builddir@,$ac_builddir,;t t
22375 s,@abs_builddir@,$ac_abs_builddir,;t t
22376 s,@top_builddir@,$ac_top_builddir,;t t
22377 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22378 s,@INSTALL@,$ac_INSTALL,;t t
22379 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22381 if test x"$ac_file" != x-; then
22382 mv $tmp/out $ac_file
22390 cat >>$CONFIG_STATUS <<\_ACEOF
22393 # CONFIG_HEADER section.
22396 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22397 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22399 # ac_d sets the value in "#define NAME VALUE" lines.
22400 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22401 ac_dB='[ ].*$,\1#\2'
22404 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22405 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22406 ac_uB='$,\1#\2define\3'
22410 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22411 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22413 - | *:- | *:-:* ) # input from stdin
22415 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22416 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22417 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22418 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22419 * ) ac_file_in=$ac_file.in ;;
22422 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22423 echo "$as_me: creating $ac_file" >&6;}
22425 # First look for the input files in the build tree, otherwise in the
22427 ac_file_inputs=`IFS=:
22428 for f in $ac_file_in; do
22430 -) echo $tmp/stdin ;;
22432 # Absolute (can't be DOS-style, as IFS=:)
22433 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22434 echo "$as_me: error: cannot find input file: $f" >&2;}
22435 { (exit 1); exit 1; }; }
22436 # Do quote $f, to prevent DOS paths from being IFS'd.
22439 if test -f "$f"; then
22442 elif test -f "$srcdir/$f"; then
22447 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22448 echo "$as_me: error: cannot find input file: $f" >&2;}
22449 { (exit 1); exit 1; }; }
22452 done` || { (exit 1); exit 1; }
22453 # Remove the trailing spaces.
22454 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22458 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22459 # `conftest.undefs', that substitutes the proper values into
22460 # config.h.in to produce config.h. The first handles `#define'
22461 # templates, and the second `#undef' templates.
22462 # And first: Protect against being on the right side of a sed subst in
22463 # config.status. Protect against being in an unquoted here document
22464 # in config.status.
22465 rm -f conftest.defines conftest.undefs
22466 # Using a here document instead of a string reduces the quoting nightmare.
22467 # Putting comments in sed scripts is not portable.
22469 # `end' is used to avoid that the second main sed command (meant for
22470 # 0-ary CPP macros) applies to n-ary macro definitions.
22471 # See the Autoconf documentation for `clear'.
22472 cat >confdef2sed.sed <<\_ACEOF
22477 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22479 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22482 # If some macros were called several times there might be several times
22483 # the same #defines, which is useless. Nevertheless, we may not want to
22484 # sort them, since we want the *last* AC-DEFINE to be honored.
22485 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22486 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22487 rm -f confdef2sed.sed
22489 # This sed command replaces #undef with comments. This is necessary, for
22490 # example, in the case of _POSIX_SOURCE, which is predefined and required
22491 # on some systems where configure will not decide to define it.
22492 cat >>conftest.undefs <<\_ACEOF
22493 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22496 # Break up conftest.defines because some shells have a limit on the size
22497 # of here documents, and old seds have small limits too (100 cmds).
22498 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22499 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22500 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22501 echo ' :' >>$CONFIG_STATUS
22502 rm -f conftest.tail
22503 while grep . conftest.defines >/dev/null
22505 # Write a limited-size here document to $tmp/defines.sed.
22506 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22507 # Speed up: don't consider the non `#define' lines.
22508 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22509 # Work around the forget-to-reset-the-flag bug.
22510 echo 't clr' >>$CONFIG_STATUS
22511 echo ': clr' >>$CONFIG_STATUS
22512 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22514 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22516 mv $tmp/out $tmp/in
22518 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22519 rm -f conftest.defines
22520 mv conftest.tail conftest.defines
22522 rm -f conftest.defines
22523 echo ' fi # grep' >>$CONFIG_STATUS
22524 echo >>$CONFIG_STATUS
22526 # Break up conftest.undefs because some shells have a limit on the size
22527 # of here documents, and old seds have small limits too (100 cmds).
22528 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22529 rm -f conftest.tail
22530 while grep . conftest.undefs >/dev/null
22532 # Write a limited-size here document to $tmp/undefs.sed.
22533 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22534 # Speed up: don't consider the non `#undef'
22535 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22536 # Work around the forget-to-reset-the-flag bug.
22537 echo 't clr' >>$CONFIG_STATUS
22538 echo ': clr' >>$CONFIG_STATUS
22539 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22541 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22543 mv $tmp/out $tmp/in
22545 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22546 rm -f conftest.undefs
22547 mv conftest.tail conftest.undefs
22549 rm -f conftest.undefs
22551 cat >>$CONFIG_STATUS <<\_ACEOF
22552 # Let's still pretend it is `configure' which instantiates (i.e., don't
22553 # use $as_me), people would be surprised to read:
22554 # /* config.h. Generated by config.status. */
22555 if test x"$ac_file" = x-; then
22556 echo "/* Generated by configure. */" >$tmp/config.h
22558 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22560 cat $tmp/in >>$tmp/config.h
22562 if test x"$ac_file" != x-; then
22563 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22564 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22565 echo "$as_me: $ac_file is unchanged" >&6;}
22567 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22568 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22569 X"$ac_file" : 'X\(//\)[^/]' \| \
22570 X"$ac_file" : 'X\(//\)$' \| \
22571 X"$ac_file" : 'X\(/\)' \| \
22572 . : '\(.\)' 2>/dev/null ||
22574 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22575 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22576 /^X\(\/\/\)$/{ s//\1/; q; }
22577 /^X\(\/\).*/{ s//\1/; q; }
22579 { if $as_mkdir_p; then
22584 while test ! -d "$as_dir"; do
22585 as_dirs="$as_dir $as_dirs"
22586 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22587 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22588 X"$as_dir" : 'X\(//\)[^/]' \| \
22589 X"$as_dir" : 'X\(//\)$' \| \
22590 X"$as_dir" : 'X\(/\)' \| \
22591 . : '\(.\)' 2>/dev/null ||
22593 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22594 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22595 /^X\(\/\/\)$/{ s//\1/; q; }
22596 /^X\(\/\).*/{ s//\1/; q; }
22599 test ! -n "$as_dirs" || mkdir $as_dirs
22600 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22601 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22602 { (exit 1); exit 1; }; }; }
22605 mv $tmp/config.h $ac_file
22609 rm -f $tmp/config.h
22613 cat >>$CONFIG_STATUS <<\_ACEOF
22616 # CONFIG_COMMANDS section.
22618 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22619 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22620 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22621 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22622 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22623 X"$ac_dest" : 'X\(//\)[^/]' \| \
22624 X"$ac_dest" : 'X\(//\)$' \| \
22625 X"$ac_dest" : 'X\(/\)' \| \
22626 . : '\(.\)' 2>/dev/null ||
22628 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22629 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22630 /^X\(\/\/\)$/{ s//\1/; q; }
22631 /^X\(\/\).*/{ s//\1/; q; }
22633 { if $as_mkdir_p; then
22638 while test ! -d "$as_dir"; do
22639 as_dirs="$as_dir $as_dirs"
22640 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22641 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22642 X"$as_dir" : 'X\(//\)[^/]' \| \
22643 X"$as_dir" : 'X\(//\)$' \| \
22644 X"$as_dir" : 'X\(/\)' \| \
22645 . : '\(.\)' 2>/dev/null ||
22647 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22648 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22649 /^X\(\/\/\)$/{ s//\1/; q; }
22650 /^X\(\/\).*/{ s//\1/; q; }
22653 test ! -n "$as_dirs" || mkdir $as_dirs
22654 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22655 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22656 { (exit 1); exit 1; }; }; }
22660 if test "$ac_dir" != .; then
22661 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22662 # A "../" for each directory in $ac_dir_suffix.
22663 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22665 ac_dir_suffix= ac_top_builddir=
22669 .) # No --srcdir option. We are building in place.
22671 if test -z "$ac_top_builddir"; then
22674 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22676 [\\/]* | ?:[\\/]* ) # Absolute path.
22677 ac_srcdir=$srcdir$ac_dir_suffix;
22678 ac_top_srcdir=$srcdir ;;
22679 *) # Relative path.
22680 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22681 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22684 # Do not use `cd foo && pwd` to compute absolute paths, because
22685 # the directories may not exist.
22687 .) ac_abs_builddir="$ac_dir";;
22690 .) ac_abs_builddir=`pwd`;;
22691 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22692 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22695 case $ac_abs_builddir in
22696 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22698 case ${ac_top_builddir}. in
22699 .) ac_abs_top_builddir=$ac_abs_builddir;;
22700 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22701 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22704 case $ac_abs_builddir in
22705 .) ac_abs_srcdir=$ac_srcdir;;
22708 .) ac_abs_srcdir=$ac_abs_builddir;;
22709 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22710 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22713 case $ac_abs_builddir in
22714 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22716 case $ac_top_srcdir in
22717 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22718 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22719 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22724 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22725 echo "$as_me: executing $ac_dest commands" >&6;}
22727 default ) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
22733 cat >>$CONFIG_STATUS <<\_ACEOF
22735 { (exit 0); exit 0; }
22737 chmod +x $CONFIG_STATUS
22738 ac_clean_files=$ac_clean_files_save
22741 # configure is writing to config.log, and then calls config.status.
22742 # config.status does its own redirection, appending to config.log.
22743 # Unfortunately, on DOS this fails, as config.log is still kept open
22744 # by configure, so config.status won't be able to write to it; its
22745 # output is simply discarded. So we exec the FD to /dev/null,
22746 # effectively closing config.log, so it can be properly (re)opened and
22747 # appended to by config.status. When coming back to configure, we
22748 # need to make the FD available again.
22749 if test "$no_create" != yes; then
22751 ac_config_status_args=
22752 test "$silent" = yes &&
22753 ac_config_status_args="$ac_config_status_args --quiet"
22755 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22757 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22758 # would make configure fail if this is the last instruction.
22759 $ac_cs_success || { (exit 1); exit 1; }
22764 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
22765 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
22770 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
22771 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
22773 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
22774 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
22776 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
22777 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
22779 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
22780 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
22782 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
22783 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
22785 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
22786 chmod 755 $c/sqlite
22789 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
22790 largefile_support="yes"
22794 # A whole lot of hand springs to get the compiler version.
22795 # This is because gcc changed the output in version 3.0
22797 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
22798 if test "x${CCVERSION}" = "x" ; then
22799 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
22801 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
22802 if test x"${CXXVERSION}" = x ; then
22803 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
22806 if test "x${subsysdir}" = "x${sbindir}" ; then
22809 echo "You have set --sbindir and --with-subsys-dir"
22810 echo " both equal to: ${subsysdir} "
22811 echo " This is not permitted. Please reconfigure."
22813 echo "Aborting configuration ..."
22819 if test "x${db_name}" = "xInternal" ; then
22822 echo "You have not specified either --enable-client-only or one of the"
22823 echo " supported databases: MySQL, PostgreSQL, or SQLite".
22824 echo " This is not permitted. Please reconfigure."
22826 echo "Aborting the configuration ..."
22833 Configuration on `date`:
22835 Host: $host -- ${DISTNAME} ${DISTVER}
22836 Bacula version: ${VERSION} (${DATE})
22837 Source code location: ${srcdir}
22838 Install binaries: ${sbindir}
22839 Install config files: ${sysconfdir}
22840 Scripts directory: ${scriptdir}
22841 Working directory: ${working_dir}
22842 PID directory: ${piddir}
22843 Subsys directory: ${subsysdir}
22844 C Compiler: ${CC} ${CCVERSION}
22845 C++ Compiler: ${CXX} ${CXXVERSION}
22846 Compiler flags: ${WCFLAGS} ${CFLAGS}
22847 Linker flags: ${WLDFLAGS} ${LDFLAGS}
22849 Statically Linked Tools: ${support_static_tools}
22850 Statically Linked FD: ${support_static_fd}
22851 Statically Linked SD: ${support_static_sd}
22852 Statically Linked DIR: ${support_static_dir}
22853 Statically Linked CONS: ${support_static_cons}
22854 Database type: ${db_name}
22855 Database lib: ${DB_LIBS}
22857 Job Output Email: ${job_email}
22858 Traceback Email: ${dump_email}
22859 SMTP Host Address: ${smtp_host}
22861 Director Port: ${dir_port}
22862 File daemon Port: ${fd_port}
22863 Storage daemon Port: ${sd_port}
22865 Director User: ${dir_user}
22866 Director Group: ${dir_group}
22867 Storage Daemon User: ${sd_user}
22868 Storage DaemonGroup: ${sd_group}
22869 File Daemon User: ${fd_user}
22870 File Daemon Group: ${fd_group}
22872 SQL binaries Directory ${SQL_BINDIR}
22874 Large file support: $largefile_support
22875 Bacula conio support: ${got_conio} ${CONS_LIBS}
22876 readline support: ${got_readline} ${PRTREADLINE_SRC}
22877 TCP Wrappers support: ${TCPW_MSG}
22878 ZLIB support: ${have_zlib}
22879 enable-smartalloc: ${support_smartalloc}
22880 enable-gnome: ${support_gnome} ${gnome_version}
22881 enable-wx-console: ${support_wx_console}
22882 enable-tray-monitor: ${support_tray_monitor}
22883 client-only: ${build_client_only}
22884 ACL support: ${have_acl}
22885 Python support: ${support_python} ${PYTHON_LIBS}
22892 # cweb support: ${got_cweb} ${CWEB_SRC}
22893 # gmp support: ${got_gmp} ${GMP_SRC}