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 ECHO CMP TBL AR OPENSSL MTX MKISOFS PYTHON GROWISOFS DVDRWMEDIAINFO PKGCONFIG WXCONFIG WXFLAGS CDRECORD PIDOF AWK 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 OPENSSL_LIBS OPENSSL_INC 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
781 ac_env_WXCONFIG_set=${WXCONFIG+set}
782 ac_env_WXCONFIG_value=$WXCONFIG
783 ac_cv_env_WXCONFIG_set=${WXCONFIG+set}
784 ac_cv_env_WXCONFIG_value=$WXCONFIG
785 ac_env_WXFLAGS_set=${WXFLAGS+set}
786 ac_env_WXFLAGS_value=$WXFLAGS
787 ac_cv_env_WXFLAGS_set=${WXFLAGS+set}
788 ac_cv_env_WXFLAGS_value=$WXFLAGS
791 # Report the --help message.
793 if test "$ac_init_help" = "long"; then
794 # Omit some internal or obsolete options to make the list less imposing.
795 # This message is too long to be a string in the A/UX 3.1 sh.
797 \`configure' configures this package to adapt to many kinds of systems.
799 Usage: $0 [OPTION]... [VAR=VALUE]...
801 To assign environment variables (e.g., CC, CFLAGS...), specify them as
802 VAR=VALUE. See below for descriptions of some of the useful variables.
804 Defaults for the options are specified in brackets.
807 -h, --help display this help and exit
808 --help=short display options specific to this package
809 --help=recursive display the short help of all the included packages
810 -V, --version display version information and exit
811 -q, --quiet, --silent do not print \`checking...' messages
812 --cache-file=FILE cache test results in FILE [disabled]
813 -C, --config-cache alias for \`--cache-file=config.cache'
814 -n, --no-create do not create output files
815 --srcdir=DIR find the sources in DIR [configure dir or \`..']
820 Installation directories:
821 --prefix=PREFIX install architecture-independent files in PREFIX
823 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
826 By default, \`make install' will install all the files in
827 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
828 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
829 for instance \`--prefix=\$HOME'.
831 For better control, use the options below.
833 Fine tuning of the installation directories:
834 --bindir=DIR user executables [EPREFIX/bin]
835 --sbindir=DIR system admin executables [EPREFIX/sbin]
836 --libexecdir=DIR program executables [EPREFIX/libexec]
837 --datadir=DIR read-only architecture-independent data [PREFIX/share]
838 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
839 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
840 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
841 --libdir=DIR object code libraries [EPREFIX/lib]
842 --includedir=DIR C header files [PREFIX/include]
843 --oldincludedir=DIR C header files for non-gcc [/usr/include]
844 --infodir=DIR info documentation [PREFIX/info]
845 --mandir=DIR man documentation [PREFIX/man]
851 --x-includes=DIR X include files are in DIR
852 --x-libraries=DIR X library files are in DIR
855 --build=BUILD configure for building on BUILD [guessed]
856 --host=HOST cross-compile to build programs to run on HOST [BUILD]
860 if test -n "$ac_init_help"; then
865 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
866 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
867 --enable-gnome enable build of gnome-console GUI disabled
868 --enable-wx-console enable build of wxWidgets console disabled
869 --enable-tray-monitor enable build of Gnome tray monitor (compatible with KDE) disabled
870 --enable-smartalloc enable smartalloc debugging support disabled
871 --enable-static-tools enable static tape tools disabled
872 --enable-static-fd enable static File daemon disabled
873 --enable-static-sd enable static Storage daemon disabled
874 --enable-static-dir enable static Director disabled
875 --enable-static-cons enable static Console disabled
876 --enable-client-only build client (File daemon) only disabled
877 --disable-conio disable conio support enabled
879 --disable-readline disable readline support disable
881 --disable-largefile omit support for large files
884 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
885 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
886 --with-gnome-includes Specify location of GNOME headers
887 --with-gnome-libs Specify location of GNOME libs
888 --with-gnome Specify prefix for GNOME files
889 --with-readline=DIR specify readline library directory
891 --with-python=DIR Include Python support. DIR is the Python base
892 install directory, default is to search through
893 a number of common places for the Python files.
894 --with-tcp-wrappers=DIR enable tcpwrappers support
896 Include OpenSSL support. DIR is the OpenSSL base
897 --with-working-dir=PATH specify path of Bacula working directory
898 --with-scriptdir=PATH specify path of Bacula scripts directory
899 --with-dump-email=EMAIL dump email address
900 --with-job-email=EMAIL job output email address
901 --with-smtp-host=HOST SMTP mail host address
902 --with-pid-dir=PATH specify location of Bacula pid files
903 --with-subsys-dir=PATH specify location of Bacula subsys file
904 --with-baseport=PORT specify base port address for daemons
905 --with-dir-password=PASSWORD specify Director's password
906 --with-fd-password=PASSWORD specify Client's password
907 --with-sd-password=PASSWORD specify Storage daemon's password
908 --with-mon-dir-password=PASSWORD specify Director's password used by the monitor
909 --with-mon-fd-password=PASSWORD specify Client's password used by the monitor
910 --with-mon-sd-password=PASSWORD specify Storage daemon's password used by the monitor
911 --with-bimagemgr-cgidir=DIR specify bimagemgr cgi-bin dir
912 --with-bimagemgr-docdir=DIR specify bimagemgr doc root dir
913 --with-bimagemgr-binowner=USER specify bimagemgr binary file owner
914 --with-bimagemgr-bingroup=USER specify bimagemgr binary file group
915 --with-bimagemgr-dataowner=USER specify bimagemgr data file owner
916 --with-bimagemgr-datagroup=USER specify bimagemgr data file group
917 --with-dir-user=USER specify user for Director daemon
918 --with-dir-group=GROUP specify group for Director daemon
919 --with-sd-user=USER specify user for Storage daemon
920 --with-sd-group=GROUP specify group for Storage daemon
921 --with-fd-user=USER specify user for File daemon
922 --with-fd-group=GROUP specify group for File daemon
923 --with-sbin-perm=MODE specify permissions for sbin binaries (0754)
924 --with-postgresql=DIR Include PostgreSQL support. DIR is the PostgreSQL
925 base install directory, defaults to /usr/local/pgsql
927 --with-mysql=DIR Include MySQL support. DIR is the MySQL base
928 install directory, default is to search through
929 a number of common places for the MySQL files.
931 --with-embedded-mysql=DIR Include MySQL support. DIR is the MySQL base
932 install directory, default is to search through
933 a number of common places for the MySQL files.
935 --with-sqlite3=DIR Include SQLite3 support. DIR is the SQLite3 base
936 install directory, default is to search through
937 a number of common places for the SQLite3 files.
939 --with-sqlite=DIR Include SQLite support. DIR is the SQLite base
940 install directory, default is to search through
941 a number of common places for the SQLite files.
942 --with-x use the X Window System
944 Some influential environment variables:
945 CC C compiler command
946 CFLAGS C compiler flags
947 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
948 nonstandard directory <lib dir>
949 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
950 headers in a nonstandard directory <include dir>
951 CXX C++ compiler command
952 CXXFLAGS C++ compiler flags
954 WXCONFIG wx-config command. On some systems, you must set it to
955 wx-config-2.6 to use wxWidgets 2.6.
956 WXFLAGS Parameters to pass to wx-config (e.g. --unicode=no).
958 Use these variables to override the choices made by `configure' or to help
959 it to find libraries and programs with nonstandard names/locations.
964 if test "$ac_init_help" = "recursive"; then
965 # If there are subdirs, report their specific --help.
967 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
968 test -d $ac_dir || continue
971 if test "$ac_dir" != .; then
972 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
973 # A "../" for each directory in $ac_dir_suffix.
974 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
976 ac_dir_suffix= ac_top_builddir=
980 .) # No --srcdir option. We are building in place.
982 if test -z "$ac_top_builddir"; then
985 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
987 [\\/]* | ?:[\\/]* ) # Absolute path.
988 ac_srcdir=$srcdir$ac_dir_suffix;
989 ac_top_srcdir=$srcdir ;;
991 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
992 ac_top_srcdir=$ac_top_builddir$srcdir ;;
995 # Do not use `cd foo && pwd` to compute absolute paths, because
996 # the directories may not exist.
998 .) ac_abs_builddir="$ac_dir";;
1001 .) ac_abs_builddir=`pwd`;;
1002 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1003 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1006 case $ac_abs_builddir in
1007 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1009 case ${ac_top_builddir}. in
1010 .) ac_abs_top_builddir=$ac_abs_builddir;;
1011 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1012 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1015 case $ac_abs_builddir in
1016 .) ac_abs_srcdir=$ac_srcdir;;
1019 .) ac_abs_srcdir=$ac_abs_builddir;;
1020 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1021 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1024 case $ac_abs_builddir in
1025 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1027 case $ac_top_srcdir in
1028 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1029 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1030 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1035 # Check for guested configure; otherwise get Cygnus style configure.
1036 if test -f $ac_srcdir/configure.gnu; then
1038 $SHELL $ac_srcdir/configure.gnu --help=recursive
1039 elif test -f $ac_srcdir/configure; then
1041 $SHELL $ac_srcdir/configure --help=recursive
1042 elif test -f $ac_srcdir/configure.ac ||
1043 test -f $ac_srcdir/configure.in; then
1045 $ac_configure --help
1047 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1053 test -n "$ac_init_help" && exit 0
1054 if $ac_init_version; then
1057 Copyright (C) 2003 Free Software Foundation, Inc.
1058 This configure script is free software; the Free Software Foundation
1059 gives unlimited permission to copy, distribute and modify it.
1065 This file contains any messages produced by compilers while
1066 running configure, to aid debugging if configure makes a mistake.
1068 It was created by $as_me, which was
1069 generated by GNU Autoconf 2.59. Invocation command line was
1080 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1081 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1082 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1083 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1084 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1086 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1087 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1089 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1090 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1091 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1092 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1093 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1094 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1095 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1103 test -z "$as_dir" && as_dir=.
1104 echo "PATH: $as_dir"
1119 # Keep a trace of the command line.
1120 # Strip out --no-create and --no-recursion so they do not pile up.
1121 # Strip out --silent because we don't want to record it for future runs.
1122 # Also quote any args containing shell meta-characters.
1123 # Make two passes to allow for proper duplicate-argument suppression.
1128 ac_must_keep_next=false
1134 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1135 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1136 | -silent | --silent | --silen | --sile | --sil)
1138 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1139 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1142 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1144 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1145 if test $ac_must_keep_next = true; then
1146 ac_must_keep_next=false # Got value, back to normal.
1149 *=* | --config-cache | -C | -disable-* | --disable-* \
1150 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1151 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1152 | -with-* | --with-* | -without-* | --without-* | --x)
1153 case "$ac_configure_args0 " in
1154 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1157 -* ) ac_must_keep_next=true ;;
1160 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1161 # Get rid of the leading space.
1167 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1168 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1170 # When interrupted or exit'd, cleanup temporary files, and complete
1171 # config.log. We remove comments because anyway the quotes in there
1172 # would cause problems or look ugly.
1173 # WARNING: Be sure not to use single quotes in there, as some shells,
1174 # such as our DU 5.0 friend, will then `close' the trap.
1175 trap 'exit_status=$?
1176 # Save into config.log some information that might help in debugging.
1181 ## ---------------- ##
1182 ## Cache variables. ##
1183 ## ---------------- ##
1186 # The following way of writing the cache mishandles newlines in values,
1189 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1192 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1193 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1197 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1204 ## ----------------- ##
1205 ## Output variables. ##
1206 ## ----------------- ##
1209 for ac_var in $ac_subst_vars
1211 eval ac_val=$`echo $ac_var`
1212 echo "$ac_var='"'"'$ac_val'"'"'"
1216 if test -n "$ac_subst_files"; then
1223 for ac_var in $ac_subst_files
1225 eval ac_val=$`echo $ac_var`
1226 echo "$ac_var='"'"'$ac_val'"'"'"
1231 if test -s confdefs.h; then
1238 sed "/^$/d" confdefs.h | sort
1241 test "$ac_signal" != 0 &&
1242 echo "$as_me: caught signal $ac_signal"
1243 echo "$as_me: exit $exit_status"
1245 rm -f core *.core &&
1246 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1249 for ac_signal in 1 2 13 15; do
1250 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1254 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1255 rm -rf conftest* confdefs.h
1256 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1259 # Predefined preprocessor variables.
1261 cat >>confdefs.h <<_ACEOF
1262 #define PACKAGE_NAME "$PACKAGE_NAME"
1266 cat >>confdefs.h <<_ACEOF
1267 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1271 cat >>confdefs.h <<_ACEOF
1272 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1276 cat >>confdefs.h <<_ACEOF
1277 #define PACKAGE_STRING "$PACKAGE_STRING"
1281 cat >>confdefs.h <<_ACEOF
1282 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1286 # Let the site file select an alternate cache file if it wants to.
1287 # Prefer explicitly selected file to automatically selected ones.
1288 if test -z "$CONFIG_SITE"; then
1289 if test "x$prefix" != xNONE; then
1290 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1292 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1295 for ac_site_file in $CONFIG_SITE; do
1296 if test -r "$ac_site_file"; then
1297 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1298 echo "$as_me: loading site script $ac_site_file" >&6;}
1299 sed 's/^/| /' "$ac_site_file" >&5
1304 if test -r "$cache_file"; then
1305 # Some versions of bash will fail to source /dev/null (special
1306 # files actually), so we avoid doing that.
1307 if test -f "$cache_file"; then
1308 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1309 echo "$as_me: loading cache $cache_file" >&6;}
1311 [\\/]* | ?:[\\/]* ) . $cache_file;;
1312 *) . ./$cache_file;;
1316 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1317 echo "$as_me: creating cache $cache_file" >&6;}
1321 # Check that the precious variables saved in the cache have kept the same
1323 ac_cache_corrupted=false
1324 for ac_var in `(set) 2>&1 |
1325 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1326 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1327 eval ac_new_set=\$ac_env_${ac_var}_set
1328 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1329 eval ac_new_val="\$ac_env_${ac_var}_value"
1330 case $ac_old_set,$ac_new_set in
1332 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1333 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1334 ac_cache_corrupted=: ;;
1336 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1337 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1338 ac_cache_corrupted=: ;;
1341 if test "x$ac_old_val" != "x$ac_new_val"; then
1342 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1343 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1344 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1345 echo "$as_me: former value: $ac_old_val" >&2;}
1346 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1347 echo "$as_me: current value: $ac_new_val" >&2;}
1348 ac_cache_corrupted=:
1351 # Pass precious variables to config.status.
1352 if test "$ac_new_set" = set; then
1354 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1355 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1356 *) ac_arg=$ac_var=$ac_new_val ;;
1358 case " $ac_configure_args " in
1359 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1360 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1364 if $ac_cache_corrupted; then
1365 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1366 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1367 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1368 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1369 { (exit 1); exit 1; }; }
1373 ac_cpp='$CPP $CPPFLAGS'
1374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1402 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1403 if test -f $ac_dir/install-sh; then
1405 ac_install_sh="$ac_aux_dir/install-sh -c"
1407 elif test -f $ac_dir/install.sh; then
1409 ac_install_sh="$ac_aux_dir/install.sh -c"
1411 elif test -f $ac_dir/shtool; then
1413 ac_install_sh="$ac_aux_dir/shtool install -c"
1417 if test -z "$ac_aux_dir"; then
1418 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1419 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1420 { (exit 1); exit 1; }; }
1422 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1423 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1424 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1426 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1434 # Extract the first word of "$ac_prog", so it can be a program name with args.
1435 set dummy $ac_prog; ac_word=$2
1436 echo "$as_me:$LINENO: checking for $ac_word" >&5
1437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1438 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1439 echo $ECHO_N "(cached) $ECHO_C" >&6
1443 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1450 test -z "$as_dir" && as_dir=.
1451 for ac_exec_ext in '' $ac_executable_extensions; do
1452 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1453 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1463 TRUEPRG=$ac_cv_path_TRUEPRG
1465 if test -n "$TRUEPRG"; then
1466 echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1467 echo "${ECHO_T}$TRUEPRG" >&6
1469 echo "$as_me:$LINENO: result: no" >&5
1470 echo "${ECHO_T}no" >&6
1473 test -n "$TRUEPRG" && break
1475 test -n "$TRUEPRG" || TRUEPRG=":"
1477 for ac_prog in false
1479 # Extract the first word of "$ac_prog", so it can be a program name with args.
1480 set dummy $ac_prog; ac_word=$2
1481 echo "$as_me:$LINENO: checking for $ac_word" >&5
1482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1483 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1484 echo $ECHO_N "(cached) $ECHO_C" >&6
1488 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1495 test -z "$as_dir" && as_dir=.
1496 for ac_exec_ext in '' $ac_executable_extensions; do
1497 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1498 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1508 FALSEPRG=$ac_cv_path_FALSEPRG
1510 if test -n "$FALSEPRG"; then
1511 echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1512 echo "${ECHO_T}$FALSEPRG" >&6
1514 echo "$as_me:$LINENO: result: no" >&5
1515 echo "${ECHO_T}no" >&6
1518 test -n "$FALSEPRG" && break
1520 test -n "$FALSEPRG" || FALSEPRG=":"
1525 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1526 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1527 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1528 echo "configuring for bacula $VERSION ($DATE)"
1533 ac_cpp='$CPP $CPPFLAGS'
1534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1537 if test -n "$ac_tool_prefix"; then
1538 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1539 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1540 echo "$as_me:$LINENO: checking for $ac_word" >&5
1541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1542 if test "${ac_cv_prog_CC+set}" = set; then
1543 echo $ECHO_N "(cached) $ECHO_C" >&6
1545 if test -n "$CC"; then
1546 ac_cv_prog_CC="$CC" # Let the user override the test.
1548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1552 test -z "$as_dir" && as_dir=.
1553 for ac_exec_ext in '' $ac_executable_extensions; do
1554 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1555 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1565 if test -n "$CC"; then
1566 echo "$as_me:$LINENO: result: $CC" >&5
1567 echo "${ECHO_T}$CC" >&6
1569 echo "$as_me:$LINENO: result: no" >&5
1570 echo "${ECHO_T}no" >&6
1574 if test -z "$ac_cv_prog_CC"; then
1576 # Extract the first word of "gcc", so it can be a program name with args.
1577 set dummy gcc; ac_word=$2
1578 echo "$as_me:$LINENO: checking for $ac_word" >&5
1579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1580 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1581 echo $ECHO_N "(cached) $ECHO_C" >&6
1583 if test -n "$ac_ct_CC"; then
1584 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1590 test -z "$as_dir" && as_dir=.
1591 for ac_exec_ext in '' $ac_executable_extensions; do
1592 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1593 ac_cv_prog_ac_ct_CC="gcc"
1594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1602 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1603 if test -n "$ac_ct_CC"; then
1604 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1605 echo "${ECHO_T}$ac_ct_CC" >&6
1607 echo "$as_me:$LINENO: result: no" >&5
1608 echo "${ECHO_T}no" >&6
1616 if test -z "$CC"; then
1617 if test -n "$ac_tool_prefix"; then
1618 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1619 set dummy ${ac_tool_prefix}cc; ac_word=$2
1620 echo "$as_me:$LINENO: checking for $ac_word" >&5
1621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1622 if test "${ac_cv_prog_CC+set}" = set; then
1623 echo $ECHO_N "(cached) $ECHO_C" >&6
1625 if test -n "$CC"; then
1626 ac_cv_prog_CC="$CC" # Let the user override the test.
1628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1632 test -z "$as_dir" && as_dir=.
1633 for ac_exec_ext in '' $ac_executable_extensions; do
1634 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1635 ac_cv_prog_CC="${ac_tool_prefix}cc"
1636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1645 if test -n "$CC"; then
1646 echo "$as_me:$LINENO: result: $CC" >&5
1647 echo "${ECHO_T}$CC" >&6
1649 echo "$as_me:$LINENO: result: no" >&5
1650 echo "${ECHO_T}no" >&6
1654 if test -z "$ac_cv_prog_CC"; then
1656 # Extract the first word of "cc", so it can be a program name with args.
1657 set dummy cc; ac_word=$2
1658 echo "$as_me:$LINENO: checking for $ac_word" >&5
1659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1660 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1661 echo $ECHO_N "(cached) $ECHO_C" >&6
1663 if test -n "$ac_ct_CC"; then
1664 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1670 test -z "$as_dir" && as_dir=.
1671 for ac_exec_ext in '' $ac_executable_extensions; do
1672 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1673 ac_cv_prog_ac_ct_CC="cc"
1674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1682 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1683 if test -n "$ac_ct_CC"; then
1684 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1685 echo "${ECHO_T}$ac_ct_CC" >&6
1687 echo "$as_me:$LINENO: result: no" >&5
1688 echo "${ECHO_T}no" >&6
1697 if test -z "$CC"; then
1698 # Extract the first word of "cc", so it can be a program name with args.
1699 set dummy cc; ac_word=$2
1700 echo "$as_me:$LINENO: checking for $ac_word" >&5
1701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1702 if test "${ac_cv_prog_CC+set}" = set; then
1703 echo $ECHO_N "(cached) $ECHO_C" >&6
1705 if test -n "$CC"; then
1706 ac_cv_prog_CC="$CC" # Let the user override the test.
1709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1713 test -z "$as_dir" && as_dir=.
1714 for ac_exec_ext in '' $ac_executable_extensions; do
1715 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1716 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1717 ac_prog_rejected=yes
1721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1727 if test $ac_prog_rejected = yes; then
1728 # We found a bogon in the path, so make sure we never use it.
1729 set dummy $ac_cv_prog_CC
1731 if test $# != 0; then
1732 # We chose a different compiler from the bogus one.
1733 # However, it has the same basename, so the bogon will be chosen
1734 # first if we set CC to just the basename; use the full file name.
1736 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1742 if test -n "$CC"; then
1743 echo "$as_me:$LINENO: result: $CC" >&5
1744 echo "${ECHO_T}$CC" >&6
1746 echo "$as_me:$LINENO: result: no" >&5
1747 echo "${ECHO_T}no" >&6
1751 if test -z "$CC"; then
1752 if test -n "$ac_tool_prefix"; then
1755 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1756 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1757 echo "$as_me:$LINENO: checking for $ac_word" >&5
1758 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1759 if test "${ac_cv_prog_CC+set}" = set; then
1760 echo $ECHO_N "(cached) $ECHO_C" >&6
1762 if test -n "$CC"; then
1763 ac_cv_prog_CC="$CC" # Let the user override the test.
1765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1769 test -z "$as_dir" && as_dir=.
1770 for ac_exec_ext in '' $ac_executable_extensions; do
1771 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1772 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1782 if test -n "$CC"; then
1783 echo "$as_me:$LINENO: result: $CC" >&5
1784 echo "${ECHO_T}$CC" >&6
1786 echo "$as_me:$LINENO: result: no" >&5
1787 echo "${ECHO_T}no" >&6
1790 test -n "$CC" && break
1793 if test -z "$CC"; then
1797 # Extract the first word of "$ac_prog", so it can be a program name with args.
1798 set dummy $ac_prog; ac_word=$2
1799 echo "$as_me:$LINENO: checking for $ac_word" >&5
1800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1801 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1802 echo $ECHO_N "(cached) $ECHO_C" >&6
1804 if test -n "$ac_ct_CC"; then
1805 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1811 test -z "$as_dir" && as_dir=.
1812 for ac_exec_ext in '' $ac_executable_extensions; do
1813 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1814 ac_cv_prog_ac_ct_CC="$ac_prog"
1815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1823 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1824 if test -n "$ac_ct_CC"; then
1825 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1826 echo "${ECHO_T}$ac_ct_CC" >&6
1828 echo "$as_me:$LINENO: result: no" >&5
1829 echo "${ECHO_T}no" >&6
1832 test -n "$ac_ct_CC" && break
1841 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1842 See \`config.log' for more details." >&5
1843 echo "$as_me: error: no acceptable C compiler found in \$PATH
1844 See \`config.log' for more details." >&2;}
1845 { (exit 1); exit 1; }; }
1847 # Provide some information about the compiler.
1848 echo "$as_me:$LINENO:" \
1849 "checking for C compiler version" >&5
1850 ac_compiler=`set X $ac_compile; echo $2`
1851 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1852 (eval $ac_compiler --version </dev/null >&5) 2>&5
1854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1855 (exit $ac_status); }
1856 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1857 (eval $ac_compiler -v </dev/null >&5) 2>&5
1859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1860 (exit $ac_status); }
1861 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1862 (eval $ac_compiler -V </dev/null >&5) 2>&5
1864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1865 (exit $ac_status); }
1867 cat >conftest.$ac_ext <<_ACEOF
1870 cat confdefs.h >>conftest.$ac_ext
1871 cat >>conftest.$ac_ext <<_ACEOF
1872 /* end confdefs.h. */
1882 ac_clean_files_save=$ac_clean_files
1883 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1884 # Try to create an executable without -o first, disregard a.out.
1885 # It will help us diagnose broken compilers, and finding out an intuition
1887 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1888 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1889 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1890 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1891 (eval $ac_link_default) 2>&5
1893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1894 (exit $ac_status); }; then
1895 # Find the output, starting from the most likely. This scheme is
1896 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1899 # Be careful to initialize this variable, since it used to be cached.
1900 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1902 # b.out is created by i960 compilers.
1903 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1905 test -f "$ac_file" || continue
1907 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1910 # This is the source file.
1913 # We found the default executable, but exeext='' is most
1917 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1918 # FIXME: I believe we export ac_cv_exeext for Libtool,
1919 # but it would be cool to find out if it's true. Does anybody
1920 # maintain Libtool? --akim.
1928 echo "$as_me: failed program was:" >&5
1929 sed 's/^/| /' conftest.$ac_ext >&5
1931 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1932 See \`config.log' for more details." >&5
1933 echo "$as_me: error: C compiler cannot create executables
1934 See \`config.log' for more details." >&2;}
1935 { (exit 77); exit 77; }; }
1938 ac_exeext=$ac_cv_exeext
1939 echo "$as_me:$LINENO: result: $ac_file" >&5
1940 echo "${ECHO_T}$ac_file" >&6
1942 # Check the compiler produces executables we can run. If not, either
1943 # the compiler is broken, or we cross compile.
1944 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1945 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1946 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1947 # If not cross compiling, check that we can run a simple program.
1948 if test "$cross_compiling" != yes; then
1949 if { ac_try='./$ac_file'
1950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1954 (exit $ac_status); }; }; then
1957 if test "$cross_compiling" = maybe; then
1960 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1961 If you meant to cross compile, use \`--host'.
1962 See \`config.log' for more details." >&5
1963 echo "$as_me: error: cannot run C compiled programs.
1964 If you meant to cross compile, use \`--host'.
1965 See \`config.log' for more details." >&2;}
1966 { (exit 1); exit 1; }; }
1970 echo "$as_me:$LINENO: result: yes" >&5
1971 echo "${ECHO_T}yes" >&6
1973 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1974 ac_clean_files=$ac_clean_files_save
1975 # Check the compiler produces executables we can run. If not, either
1976 # the compiler is broken, or we cross compile.
1977 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1978 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1979 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1980 echo "${ECHO_T}$cross_compiling" >&6
1982 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1983 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1985 (eval $ac_link) 2>&5
1987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1988 (exit $ac_status); }; then
1989 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1990 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1991 # work properly (i.e., refer to `conftest.exe'), while it won't with
1993 for ac_file in conftest.exe conftest conftest.*; do
1994 test -f "$ac_file" || continue
1996 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1997 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2004 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2005 See \`config.log' for more details." >&5
2006 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2007 See \`config.log' for more details." >&2;}
2008 { (exit 1); exit 1; }; }
2011 rm -f conftest$ac_cv_exeext
2012 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2013 echo "${ECHO_T}$ac_cv_exeext" >&6
2015 rm -f conftest.$ac_ext
2016 EXEEXT=$ac_cv_exeext
2018 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2019 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2020 if test "${ac_cv_objext+set}" = set; then
2021 echo $ECHO_N "(cached) $ECHO_C" >&6
2023 cat >conftest.$ac_ext <<_ACEOF
2026 cat confdefs.h >>conftest.$ac_ext
2027 cat >>conftest.$ac_ext <<_ACEOF
2028 /* end confdefs.h. */
2038 rm -f conftest.o conftest.obj
2039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2040 (eval $ac_compile) 2>&5
2042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2043 (exit $ac_status); }; then
2044 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2046 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2047 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2052 echo "$as_me: failed program was:" >&5
2053 sed 's/^/| /' conftest.$ac_ext >&5
2055 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2056 See \`config.log' for more details." >&5
2057 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2058 See \`config.log' for more details." >&2;}
2059 { (exit 1); exit 1; }; }
2062 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2064 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2065 echo "${ECHO_T}$ac_cv_objext" >&6
2066 OBJEXT=$ac_cv_objext
2068 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2069 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2070 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2071 echo $ECHO_N "(cached) $ECHO_C" >&6
2073 cat >conftest.$ac_ext <<_ACEOF
2076 cat confdefs.h >>conftest.$ac_ext
2077 cat >>conftest.$ac_ext <<_ACEOF
2078 /* end confdefs.h. */
2091 rm -f conftest.$ac_objext
2092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2093 (eval $ac_compile) 2>conftest.er1
2095 grep -v '^ *+' conftest.er1 >conftest.err
2097 cat conftest.err >&5
2098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099 (exit $ac_status); } &&
2100 { ac_try='test -z "$ac_c_werror_flag"
2101 || test ! -s conftest.err'
2102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2106 (exit $ac_status); }; } &&
2107 { ac_try='test -s conftest.$ac_objext'
2108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2112 (exit $ac_status); }; }; then
2115 echo "$as_me: failed program was:" >&5
2116 sed 's/^/| /' conftest.$ac_ext >&5
2120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2121 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2124 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2125 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2126 GCC=`test $ac_compiler_gnu = yes && echo yes`
2127 ac_test_CFLAGS=${CFLAGS+set}
2128 ac_save_CFLAGS=$CFLAGS
2130 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2131 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2132 if test "${ac_cv_prog_cc_g+set}" = set; then
2133 echo $ECHO_N "(cached) $ECHO_C" >&6
2135 cat >conftest.$ac_ext <<_ACEOF
2138 cat confdefs.h >>conftest.$ac_ext
2139 cat >>conftest.$ac_ext <<_ACEOF
2140 /* end confdefs.h. */
2150 rm -f conftest.$ac_objext
2151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2152 (eval $ac_compile) 2>conftest.er1
2154 grep -v '^ *+' conftest.er1 >conftest.err
2156 cat conftest.err >&5
2157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158 (exit $ac_status); } &&
2159 { ac_try='test -z "$ac_c_werror_flag"
2160 || test ! -s conftest.err'
2161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2165 (exit $ac_status); }; } &&
2166 { ac_try='test -s conftest.$ac_objext'
2167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2171 (exit $ac_status); }; }; then
2174 echo "$as_me: failed program was:" >&5
2175 sed 's/^/| /' conftest.$ac_ext >&5
2179 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2181 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2182 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2183 if test "$ac_test_CFLAGS" = set; then
2184 CFLAGS=$ac_save_CFLAGS
2185 elif test $ac_cv_prog_cc_g = yes; then
2186 if test "$GCC" = yes; then
2192 if test "$GCC" = yes; then
2198 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2199 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2200 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2201 echo $ECHO_N "(cached) $ECHO_C" >&6
2203 ac_cv_prog_cc_stdc=no
2205 cat >conftest.$ac_ext <<_ACEOF
2208 cat confdefs.h >>conftest.$ac_ext
2209 cat >>conftest.$ac_ext <<_ACEOF
2210 /* end confdefs.h. */
2213 #include <sys/types.h>
2214 #include <sys/stat.h>
2215 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2216 struct buf { int x; };
2217 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2218 static char *e (p, i)
2224 static char *f (char * (*g) (char **, int), char **p, ...)
2229 s = g (p, va_arg (v,int));
2234 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2235 function prototypes and stuff, but not '\xHH' hex character constants.
2236 These don't provoke an error unfortunately, instead are silently treated
2237 as 'x'. The following induces an error, until -std1 is added to get
2238 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2239 array size at least. It's necessary to write '\x00'==0 to get something
2240 that's true only with -std1. */
2241 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2243 int test (int i, double x);
2244 struct s1 {int (*f) (int a);};
2245 struct s2 {int (*f) (double a);};
2246 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2252 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2257 # Don't try gcc -ansi; that turns off useful extensions and
2258 # breaks some systems' header files.
2259 # AIX -qlanglvl=ansi
2260 # Ultrix and OSF/1 -std1
2261 # HP-UX 10.20 and later -Ae
2262 # HP-UX older versions -Aa -D_HPUX_SOURCE
2263 # SVR4 -Xc -D__EXTENSIONS__
2264 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2266 CC="$ac_save_CC $ac_arg"
2267 rm -f conftest.$ac_objext
2268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2269 (eval $ac_compile) 2>conftest.er1
2271 grep -v '^ *+' conftest.er1 >conftest.err
2273 cat conftest.err >&5
2274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2275 (exit $ac_status); } &&
2276 { ac_try='test -z "$ac_c_werror_flag"
2277 || test ! -s conftest.err'
2278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282 (exit $ac_status); }; } &&
2283 { ac_try='test -s conftest.$ac_objext'
2284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2288 (exit $ac_status); }; }; then
2289 ac_cv_prog_cc_stdc=$ac_arg
2292 echo "$as_me: failed program was:" >&5
2293 sed 's/^/| /' conftest.$ac_ext >&5
2296 rm -f conftest.err conftest.$ac_objext
2298 rm -f conftest.$ac_ext conftest.$ac_objext
2303 case "x$ac_cv_prog_cc_stdc" in
2305 echo "$as_me:$LINENO: result: none needed" >&5
2306 echo "${ECHO_T}none needed" >&6 ;;
2308 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2309 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2310 CC="$CC $ac_cv_prog_cc_stdc" ;;
2313 # Some people use a C++ compiler to compile C. Since we use `exit',
2314 # in C++ we need to declare it. In case someone uses the same compiler
2315 # for both compiling C and C++ we need to have the C++ compiler decide
2316 # the declaration of exit, since it's the most demanding environment.
2317 cat >conftest.$ac_ext <<_ACEOF
2322 rm -f conftest.$ac_objext
2323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2324 (eval $ac_compile) 2>conftest.er1
2326 grep -v '^ *+' conftest.er1 >conftest.err
2328 cat conftest.err >&5
2329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330 (exit $ac_status); } &&
2331 { ac_try='test -z "$ac_c_werror_flag"
2332 || test ! -s conftest.err'
2333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337 (exit $ac_status); }; } &&
2338 { ac_try='test -s conftest.$ac_objext'
2339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2343 (exit $ac_status); }; }; then
2344 for ac_declaration in \
2346 'extern "C" void std::exit (int) throw (); using std::exit;' \
2347 'extern "C" void std::exit (int); using std::exit;' \
2348 'extern "C" void exit (int) throw ();' \
2349 'extern "C" void exit (int);' \
2352 cat >conftest.$ac_ext <<_ACEOF
2355 cat confdefs.h >>conftest.$ac_ext
2356 cat >>conftest.$ac_ext <<_ACEOF
2357 /* end confdefs.h. */
2368 rm -f conftest.$ac_objext
2369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2370 (eval $ac_compile) 2>conftest.er1
2372 grep -v '^ *+' conftest.er1 >conftest.err
2374 cat conftest.err >&5
2375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376 (exit $ac_status); } &&
2377 { ac_try='test -z "$ac_c_werror_flag"
2378 || test ! -s conftest.err'
2379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2383 (exit $ac_status); }; } &&
2384 { ac_try='test -s conftest.$ac_objext'
2385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389 (exit $ac_status); }; }; then
2392 echo "$as_me: failed program was:" >&5
2393 sed 's/^/| /' conftest.$ac_ext >&5
2397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2398 cat >conftest.$ac_ext <<_ACEOF
2401 cat confdefs.h >>conftest.$ac_ext
2402 cat >>conftest.$ac_ext <<_ACEOF
2403 /* end confdefs.h. */
2413 rm -f conftest.$ac_objext
2414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2415 (eval $ac_compile) 2>conftest.er1
2417 grep -v '^ *+' conftest.er1 >conftest.err
2419 cat conftest.err >&5
2420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421 (exit $ac_status); } &&
2422 { ac_try='test -z "$ac_c_werror_flag"
2423 || test ! -s conftest.err'
2424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428 (exit $ac_status); }; } &&
2429 { ac_try='test -s conftest.$ac_objext'
2430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434 (exit $ac_status); }; }; then
2437 echo "$as_me: failed program was:" >&5
2438 sed 's/^/| /' conftest.$ac_ext >&5
2441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2444 if test -n "$ac_declaration"; then
2445 echo '#ifdef __cplusplus' >>confdefs.h
2446 echo $ac_declaration >>confdefs.h
2447 echo '#endif' >>confdefs.h
2451 echo "$as_me: failed program was:" >&5
2452 sed 's/^/| /' conftest.$ac_ext >&5
2455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2457 ac_cpp='$CPP $CPPFLAGS'
2458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2463 ac_cpp='$CXXCPP $CPPFLAGS'
2464 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2465 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2466 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2467 if test -n "$ac_tool_prefix"; then
2468 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2470 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2471 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2472 echo "$as_me:$LINENO: checking for $ac_word" >&5
2473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2474 if test "${ac_cv_prog_CXX+set}" = set; then
2475 echo $ECHO_N "(cached) $ECHO_C" >&6
2477 if test -n "$CXX"; then
2478 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2484 test -z "$as_dir" && as_dir=.
2485 for ac_exec_ext in '' $ac_executable_extensions; do
2486 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2487 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2497 if test -n "$CXX"; then
2498 echo "$as_me:$LINENO: result: $CXX" >&5
2499 echo "${ECHO_T}$CXX" >&6
2501 echo "$as_me:$LINENO: result: no" >&5
2502 echo "${ECHO_T}no" >&6
2505 test -n "$CXX" && break
2508 if test -z "$CXX"; then
2510 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2512 # Extract the first word of "$ac_prog", so it can be a program name with args.
2513 set dummy $ac_prog; ac_word=$2
2514 echo "$as_me:$LINENO: checking for $ac_word" >&5
2515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2516 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2517 echo $ECHO_N "(cached) $ECHO_C" >&6
2519 if test -n "$ac_ct_CXX"; then
2520 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2526 test -z "$as_dir" && as_dir=.
2527 for ac_exec_ext in '' $ac_executable_extensions; do
2528 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2529 ac_cv_prog_ac_ct_CXX="$ac_prog"
2530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2538 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2539 if test -n "$ac_ct_CXX"; then
2540 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2541 echo "${ECHO_T}$ac_ct_CXX" >&6
2543 echo "$as_me:$LINENO: result: no" >&5
2544 echo "${ECHO_T}no" >&6
2547 test -n "$ac_ct_CXX" && break
2549 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2555 # Provide some information about the compiler.
2556 echo "$as_me:$LINENO:" \
2557 "checking for C++ compiler version" >&5
2558 ac_compiler=`set X $ac_compile; echo $2`
2559 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2560 (eval $ac_compiler --version </dev/null >&5) 2>&5
2562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563 (exit $ac_status); }
2564 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2565 (eval $ac_compiler -v </dev/null >&5) 2>&5
2567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568 (exit $ac_status); }
2569 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2570 (eval $ac_compiler -V </dev/null >&5) 2>&5
2572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573 (exit $ac_status); }
2575 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2576 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2577 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2578 echo $ECHO_N "(cached) $ECHO_C" >&6
2580 cat >conftest.$ac_ext <<_ACEOF
2583 cat confdefs.h >>conftest.$ac_ext
2584 cat >>conftest.$ac_ext <<_ACEOF
2585 /* end confdefs.h. */
2598 rm -f conftest.$ac_objext
2599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2600 (eval $ac_compile) 2>conftest.er1
2602 grep -v '^ *+' conftest.er1 >conftest.err
2604 cat conftest.err >&5
2605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606 (exit $ac_status); } &&
2607 { ac_try='test -z "$ac_cxx_werror_flag"
2608 || test ! -s conftest.err'
2609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613 (exit $ac_status); }; } &&
2614 { ac_try='test -s conftest.$ac_objext'
2615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619 (exit $ac_status); }; }; then
2622 echo "$as_me: failed program was:" >&5
2623 sed 's/^/| /' conftest.$ac_ext >&5
2627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2628 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2631 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2632 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2633 GXX=`test $ac_compiler_gnu = yes && echo yes`
2634 ac_test_CXXFLAGS=${CXXFLAGS+set}
2635 ac_save_CXXFLAGS=$CXXFLAGS
2637 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2638 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2639 if test "${ac_cv_prog_cxx_g+set}" = set; then
2640 echo $ECHO_N "(cached) $ECHO_C" >&6
2642 cat >conftest.$ac_ext <<_ACEOF
2645 cat confdefs.h >>conftest.$ac_ext
2646 cat >>conftest.$ac_ext <<_ACEOF
2647 /* end confdefs.h. */
2657 rm -f conftest.$ac_objext
2658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2659 (eval $ac_compile) 2>conftest.er1
2661 grep -v '^ *+' conftest.er1 >conftest.err
2663 cat conftest.err >&5
2664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665 (exit $ac_status); } &&
2666 { ac_try='test -z "$ac_cxx_werror_flag"
2667 || test ! -s conftest.err'
2668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672 (exit $ac_status); }; } &&
2673 { ac_try='test -s conftest.$ac_objext'
2674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678 (exit $ac_status); }; }; then
2679 ac_cv_prog_cxx_g=yes
2681 echo "$as_me: failed program was:" >&5
2682 sed 's/^/| /' conftest.$ac_ext >&5
2686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2688 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2689 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2690 if test "$ac_test_CXXFLAGS" = set; then
2691 CXXFLAGS=$ac_save_CXXFLAGS
2692 elif test $ac_cv_prog_cxx_g = yes; then
2693 if test "$GXX" = yes; then
2699 if test "$GXX" = yes; then
2705 for ac_declaration in \
2707 'extern "C" void std::exit (int) throw (); using std::exit;' \
2708 'extern "C" void std::exit (int); using std::exit;' \
2709 'extern "C" void exit (int) throw ();' \
2710 'extern "C" void exit (int);' \
2713 cat >conftest.$ac_ext <<_ACEOF
2716 cat confdefs.h >>conftest.$ac_ext
2717 cat >>conftest.$ac_ext <<_ACEOF
2718 /* end confdefs.h. */
2729 rm -f conftest.$ac_objext
2730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2731 (eval $ac_compile) 2>conftest.er1
2733 grep -v '^ *+' conftest.er1 >conftest.err
2735 cat conftest.err >&5
2736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737 (exit $ac_status); } &&
2738 { ac_try='test -z "$ac_cxx_werror_flag"
2739 || test ! -s conftest.err'
2740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744 (exit $ac_status); }; } &&
2745 { ac_try='test -s conftest.$ac_objext'
2746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750 (exit $ac_status); }; }; then
2753 echo "$as_me: failed program was:" >&5
2754 sed 's/^/| /' conftest.$ac_ext >&5
2758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2759 cat >conftest.$ac_ext <<_ACEOF
2762 cat confdefs.h >>conftest.$ac_ext
2763 cat >>conftest.$ac_ext <<_ACEOF
2764 /* end confdefs.h. */
2774 rm -f conftest.$ac_objext
2775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2776 (eval $ac_compile) 2>conftest.er1
2778 grep -v '^ *+' conftest.er1 >conftest.err
2780 cat conftest.err >&5
2781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782 (exit $ac_status); } &&
2783 { ac_try='test -z "$ac_cxx_werror_flag"
2784 || test ! -s conftest.err'
2785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789 (exit $ac_status); }; } &&
2790 { ac_try='test -s conftest.$ac_objext'
2791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795 (exit $ac_status); }; }; then
2798 echo "$as_me: failed program was:" >&5
2799 sed 's/^/| /' conftest.$ac_ext >&5
2802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2805 if test -n "$ac_declaration"; then
2806 echo '#ifdef __cplusplus' >>confdefs.h
2807 echo $ac_declaration >>confdefs.h
2808 echo '#endif' >>confdefs.h
2812 ac_cpp='$CPP $CPPFLAGS'
2813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2817 if test "x$CC" != xcc; then
2818 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2819 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2821 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2822 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2824 set dummy $CC; ac_cc=`echo $2 |
2825 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2826 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2827 echo $ECHO_N "(cached) $ECHO_C" >&6
2829 cat >conftest.$ac_ext <<_ACEOF
2832 cat confdefs.h >>conftest.$ac_ext
2833 cat >>conftest.$ac_ext <<_ACEOF
2834 /* end confdefs.h. */
2844 # Make sure it works both with $CC and with simple cc.
2845 # We do the test twice because some compilers refuse to overwrite an
2846 # existing .o file with -o, though they will create one.
2847 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2848 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852 (exit $ac_status); } &&
2853 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857 (exit $ac_status); };
2859 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2860 if test "x$CC" != xcc; then
2861 # Test first that cc exists at all.
2862 if { ac_try='cc -c conftest.$ac_ext >&5'
2863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867 (exit $ac_status); }; }; then
2868 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2869 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873 (exit $ac_status); } &&
2874 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2878 (exit $ac_status); };
2883 # cc exists but doesn't like -o.
2884 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2889 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2894 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2895 echo "$as_me:$LINENO: result: yes" >&5
2896 echo "${ECHO_T}yes" >&6
2898 echo "$as_me:$LINENO: result: no" >&5
2899 echo "${ECHO_T}no" >&6
2901 cat >>confdefs.h <<\_ACEOF
2902 #define NO_MINUS_C_MINUS_O 1
2908 ac_cpp='$CPP $CPPFLAGS'
2909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2912 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2913 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2914 # On Suns, sometimes $CPP names a directory.
2915 if test -n "$CPP" && test -d "$CPP"; then
2918 if test -z "$CPP"; then
2919 if test "${ac_cv_prog_CPP+set}" = set; then
2920 echo $ECHO_N "(cached) $ECHO_C" >&6
2922 # Double quotes because CPP needs to be expanded
2923 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2926 for ac_c_preproc_warn_flag in '' yes
2928 # Use a header file that comes with gcc, so configuring glibc
2929 # with a fresh cross-compiler works.
2930 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2931 # <limits.h> exists even on freestanding compilers.
2932 # On the NeXT, cc -E runs the code through the compiler's parser,
2933 # not just through cpp. "Syntax error" is here to catch this case.
2934 cat >conftest.$ac_ext <<_ACEOF
2937 cat confdefs.h >>conftest.$ac_ext
2938 cat >>conftest.$ac_ext <<_ACEOF
2939 /* end confdefs.h. */
2941 # include <limits.h>
2943 # include <assert.h>
2947 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2948 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2950 grep -v '^ *+' conftest.er1 >conftest.err
2952 cat conftest.err >&5
2953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954 (exit $ac_status); } >/dev/null; then
2955 if test -s conftest.err; then
2956 ac_cpp_err=$ac_c_preproc_warn_flag
2957 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2964 if test -z "$ac_cpp_err"; then
2967 echo "$as_me: failed program was:" >&5
2968 sed 's/^/| /' conftest.$ac_ext >&5
2970 # Broken: fails on valid input.
2973 rm -f conftest.err conftest.$ac_ext
2975 # OK, works on sane cases. Now check whether non-existent headers
2976 # can be detected and how.
2977 cat >conftest.$ac_ext <<_ACEOF
2980 cat confdefs.h >>conftest.$ac_ext
2981 cat >>conftest.$ac_ext <<_ACEOF
2982 /* end confdefs.h. */
2983 #include <ac_nonexistent.h>
2985 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2986 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2988 grep -v '^ *+' conftest.er1 >conftest.err
2990 cat conftest.err >&5
2991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992 (exit $ac_status); } >/dev/null; then
2993 if test -s conftest.err; then
2994 ac_cpp_err=$ac_c_preproc_warn_flag
2995 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3002 if test -z "$ac_cpp_err"; then
3003 # Broken: success on invalid input.
3006 echo "$as_me: failed program was:" >&5
3007 sed 's/^/| /' conftest.$ac_ext >&5
3009 # Passes both tests.
3013 rm -f conftest.err conftest.$ac_ext
3016 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3017 rm -f conftest.err conftest.$ac_ext
3018 if $ac_preproc_ok; then
3030 echo "$as_me:$LINENO: result: $CPP" >&5
3031 echo "${ECHO_T}$CPP" >&6
3033 for ac_c_preproc_warn_flag in '' yes
3035 # Use a header file that comes with gcc, so configuring glibc
3036 # with a fresh cross-compiler works.
3037 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3038 # <limits.h> exists even on freestanding compilers.
3039 # On the NeXT, cc -E runs the code through the compiler's parser,
3040 # not just through cpp. "Syntax error" is here to catch this case.
3041 cat >conftest.$ac_ext <<_ACEOF
3044 cat confdefs.h >>conftest.$ac_ext
3045 cat >>conftest.$ac_ext <<_ACEOF
3046 /* end confdefs.h. */
3048 # include <limits.h>
3050 # include <assert.h>
3054 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3055 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3057 grep -v '^ *+' conftest.er1 >conftest.err
3059 cat conftest.err >&5
3060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061 (exit $ac_status); } >/dev/null; then
3062 if test -s conftest.err; then
3063 ac_cpp_err=$ac_c_preproc_warn_flag
3064 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3071 if test -z "$ac_cpp_err"; then
3074 echo "$as_me: failed program was:" >&5
3075 sed 's/^/| /' conftest.$ac_ext >&5
3077 # Broken: fails on valid input.
3080 rm -f conftest.err conftest.$ac_ext
3082 # OK, works on sane cases. Now check whether non-existent headers
3083 # can be detected and how.
3084 cat >conftest.$ac_ext <<_ACEOF
3087 cat confdefs.h >>conftest.$ac_ext
3088 cat >>conftest.$ac_ext <<_ACEOF
3089 /* end confdefs.h. */
3090 #include <ac_nonexistent.h>
3092 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3093 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3095 grep -v '^ *+' conftest.er1 >conftest.err
3097 cat conftest.err >&5
3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099 (exit $ac_status); } >/dev/null; then
3100 if test -s conftest.err; then
3101 ac_cpp_err=$ac_c_preproc_warn_flag
3102 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3109 if test -z "$ac_cpp_err"; then
3110 # Broken: success on invalid input.
3113 echo "$as_me: failed program was:" >&5
3114 sed 's/^/| /' conftest.$ac_ext >&5
3116 # Passes both tests.
3120 rm -f conftest.err conftest.$ac_ext
3123 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3124 rm -f conftest.err conftest.$ac_ext
3125 if $ac_preproc_ok; then
3128 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3129 See \`config.log' for more details." >&5
3130 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3131 See \`config.log' for more details." >&2;}
3132 { (exit 1); exit 1; }; }
3136 ac_cpp='$CPP $CPPFLAGS'
3137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3142 echo "$as_me:$LINENO: checking for egrep" >&5
3143 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3144 if test "${ac_cv_prog_egrep+set}" = set; then
3145 echo $ECHO_N "(cached) $ECHO_C" >&6
3147 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3148 then ac_cv_prog_egrep='grep -E'
3149 else ac_cv_prog_egrep='egrep'
3152 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3153 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3154 EGREP=$ac_cv_prog_egrep
3157 if test $ac_cv_c_compiler_gnu = yes; then
3158 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3159 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3160 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3161 echo $ECHO_N "(cached) $ECHO_C" >&6
3163 ac_pattern="Autoconf.*'x'"
3164 cat >conftest.$ac_ext <<_ACEOF
3167 cat confdefs.h >>conftest.$ac_ext
3168 cat >>conftest.$ac_ext <<_ACEOF
3169 /* end confdefs.h. */
3173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3174 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3175 ac_cv_prog_gcc_traditional=yes
3177 ac_cv_prog_gcc_traditional=no
3182 if test $ac_cv_prog_gcc_traditional = no; then
3183 cat >conftest.$ac_ext <<_ACEOF
3186 cat confdefs.h >>conftest.$ac_ext
3187 cat >>conftest.$ac_ext <<_ACEOF
3188 /* end confdefs.h. */
3192 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3193 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3194 ac_cv_prog_gcc_traditional=yes
3200 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3201 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3202 if test $ac_cv_prog_gcc_traditional = yes; then
3203 CC="$CC -traditional"
3207 if test "x$CC" = xgcc; then
3208 cat >>confdefs.h <<\_ACEOF
3213 # Extract the first word of "$CXX", so it can be a program name with args.
3214 set dummy $CXX; ac_word=$2
3215 echo "$as_me:$LINENO: checking for $ac_word" >&5
3216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3217 if test "${ac_cv_path_CXX+set}" = set; then
3218 echo $ECHO_N "(cached) $ECHO_C" >&6
3222 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3229 test -z "$as_dir" && as_dir=.
3230 for ac_exec_ext in '' $ac_executable_extensions; do
3231 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3232 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3239 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
3245 if test -n "$CXX"; then
3246 echo "$as_me:$LINENO: result: $CXX" >&5
3247 echo "${ECHO_T}$CXX" >&6
3249 echo "$as_me:$LINENO: result: no" >&5
3250 echo "${ECHO_T}no" >&6
3253 if test ! -e $CXX; then
3254 { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
3255 echo "$as_me: error: Unable to find C++ compiler" >&2;}
3256 { (exit 1); exit 1; }; }
3259 # Find a good install program. We prefer a C program (faster),
3260 # so one script is as good as another. But avoid the broken or
3261 # incompatible versions:
3262 # SysV /etc/install, /usr/sbin/install
3263 # SunOS /usr/etc/install
3264 # IRIX /sbin/install
3266 # AmigaOS /C/install, which installs bootblocks on floppy discs
3267 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3268 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3269 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3270 # OS/2's system install, which has a completely different semantic
3271 # ./install, which can be erroneously created by make from ./install.sh.
3272 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3273 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3274 if test -z "$INSTALL"; then
3275 if test "${ac_cv_path_install+set}" = set; then
3276 echo $ECHO_N "(cached) $ECHO_C" >&6
3278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3282 test -z "$as_dir" && as_dir=.
3283 # Account for people who put trailing slashes in PATH elements.
3285 ./ | .// | /cC/* | \
3286 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3287 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3290 # OSF1 and SCO ODT 3.0 have their own names for install.
3291 # Don't use installbsd from OSF since it installs stuff as root
3293 for ac_prog in ginstall scoinst install; do
3294 for ac_exec_ext in '' $ac_executable_extensions; do
3295 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3296 if test $ac_prog = install &&
3297 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3298 # AIX install. It has an incompatible calling convention.
3300 elif test $ac_prog = install &&
3301 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3302 # program-specific install script used by HP pwplus--don't use.
3305 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3317 if test "${ac_cv_path_install+set}" = set; then
3318 INSTALL=$ac_cv_path_install
3320 # As a last resort, use the slow shell script. We don't cache a
3321 # path for INSTALL within a source directory, because that will
3322 # break other packages using the cache if that directory is
3323 # removed, or if the path is relative.
3324 INSTALL=$ac_install_sh
3327 echo "$as_me:$LINENO: result: $INSTALL" >&5
3328 echo "${ECHO_T}$INSTALL" >&6
3330 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3331 # It thinks the first close brace ends the variable substitution.
3332 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3334 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3336 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3338 if test -n "$ac_tool_prefix"; then
3339 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3340 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3341 echo "$as_me:$LINENO: checking for $ac_word" >&5
3342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3343 if test "${ac_cv_prog_RANLIB+set}" = set; then
3344 echo $ECHO_N "(cached) $ECHO_C" >&6
3346 if test -n "$RANLIB"; then
3347 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3353 test -z "$as_dir" && as_dir=.
3354 for ac_exec_ext in '' $ac_executable_extensions; do
3355 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3356 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3365 RANLIB=$ac_cv_prog_RANLIB
3366 if test -n "$RANLIB"; then
3367 echo "$as_me:$LINENO: result: $RANLIB" >&5
3368 echo "${ECHO_T}$RANLIB" >&6
3370 echo "$as_me:$LINENO: result: no" >&5
3371 echo "${ECHO_T}no" >&6
3375 if test -z "$ac_cv_prog_RANLIB"; then
3376 ac_ct_RANLIB=$RANLIB
3377 # Extract the first word of "ranlib", so it can be a program name with args.
3378 set dummy ranlib; ac_word=$2
3379 echo "$as_me:$LINENO: checking for $ac_word" >&5
3380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3381 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3382 echo $ECHO_N "(cached) $ECHO_C" >&6
3384 if test -n "$ac_ct_RANLIB"; then
3385 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3391 test -z "$as_dir" && as_dir=.
3392 for ac_exec_ext in '' $ac_executable_extensions; do
3393 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3394 ac_cv_prog_ac_ct_RANLIB="ranlib"
3395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3401 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3404 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3405 if test -n "$ac_ct_RANLIB"; then
3406 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3407 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3409 echo "$as_me:$LINENO: result: no" >&5
3410 echo "${ECHO_T}no" >&6
3413 RANLIB=$ac_ct_RANLIB
3415 RANLIB="$ac_cv_prog_RANLIB"
3418 # Extract the first word of "mv", so it can be a program name with args.
3419 set dummy mv; ac_word=$2
3420 echo "$as_me:$LINENO: checking for $ac_word" >&5
3421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3422 if test "${ac_cv_path_MV+set}" = set; then
3423 echo $ECHO_N "(cached) $ECHO_C" >&6
3427 ac_cv_path_MV="$MV" # Let the user override the test with a path.
3430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3434 test -z "$as_dir" && as_dir=.
3435 for ac_exec_ext in '' $ac_executable_extensions; do
3436 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3437 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3444 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3450 if test -n "$MV"; then
3451 echo "$as_me:$LINENO: result: $MV" >&5
3452 echo "${ECHO_T}$MV" >&6
3454 echo "$as_me:$LINENO: result: no" >&5
3455 echo "${ECHO_T}no" >&6
3458 # Extract the first word of "rm", so it can be a program name with args.
3459 set dummy rm; ac_word=$2
3460 echo "$as_me:$LINENO: checking for $ac_word" >&5
3461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3462 if test "${ac_cv_path_RM+set}" = set; then
3463 echo $ECHO_N "(cached) $ECHO_C" >&6
3467 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3474 test -z "$as_dir" && as_dir=.
3475 for ac_exec_ext in '' $ac_executable_extensions; do
3476 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3477 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3484 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3490 if test -n "$RM"; then
3491 echo "$as_me:$LINENO: result: $RM" >&5
3492 echo "${ECHO_T}$RM" >&6
3494 echo "$as_me:$LINENO: result: no" >&5
3495 echo "${ECHO_T}no" >&6
3498 # Extract the first word of "cp", so it can be a program name with args.
3499 set dummy cp; ac_word=$2
3500 echo "$as_me:$LINENO: checking for $ac_word" >&5
3501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3502 if test "${ac_cv_path_CP+set}" = set; then
3503 echo $ECHO_N "(cached) $ECHO_C" >&6
3507 ac_cv_path_CP="$CP" # Let the user override the test with a path.
3510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3514 test -z "$as_dir" && as_dir=.
3515 for ac_exec_ext in '' $ac_executable_extensions; do
3516 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3517 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3524 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3530 if test -n "$CP"; then
3531 echo "$as_me:$LINENO: result: $CP" >&5
3532 echo "${ECHO_T}$CP" >&6
3534 echo "$as_me:$LINENO: result: no" >&5
3535 echo "${ECHO_T}no" >&6
3538 # Extract the first word of "sed", so it can be a program name with args.
3539 set dummy sed; ac_word=$2
3540 echo "$as_me:$LINENO: checking for $ac_word" >&5
3541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3542 if test "${ac_cv_path_SED+set}" = set; then
3543 echo $ECHO_N "(cached) $ECHO_C" >&6
3547 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3554 test -z "$as_dir" && as_dir=.
3555 for ac_exec_ext in '' $ac_executable_extensions; do
3556 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3557 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3564 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3570 if test -n "$SED"; then
3571 echo "$as_me:$LINENO: result: $SED" >&5
3572 echo "${ECHO_T}$SED" >&6
3574 echo "$as_me:$LINENO: result: no" >&5
3575 echo "${ECHO_T}no" >&6
3578 # Extract the first word of "echo", so it can be a program name with args.
3579 set dummy echo; ac_word=$2
3580 echo "$as_me:$LINENO: checking for $ac_word" >&5
3581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3582 if test "${ac_cv_path_ECHO+set}" = set; then
3583 echo $ECHO_N "(cached) $ECHO_C" >&6
3587 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3594 test -z "$as_dir" && as_dir=.
3595 for ac_exec_ext in '' $ac_executable_extensions; do
3596 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3597 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3604 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3608 ECHO=$ac_cv_path_ECHO
3610 if test -n "$ECHO"; then
3611 echo "$as_me:$LINENO: result: $ECHO" >&5
3612 echo "${ECHO_T}$ECHO" >&6
3614 echo "$as_me:$LINENO: result: no" >&5
3615 echo "${ECHO_T}no" >&6
3618 # Extract the first word of "cmp", so it can be a program name with args.
3619 set dummy cmp; ac_word=$2
3620 echo "$as_me:$LINENO: checking for $ac_word" >&5
3621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3622 if test "${ac_cv_path_CMP+set}" = set; then
3623 echo $ECHO_N "(cached) $ECHO_C" >&6
3627 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3634 test -z "$as_dir" && as_dir=.
3635 for ac_exec_ext in '' $ac_executable_extensions; do
3636 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3637 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3644 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3650 if test -n "$CMP"; then
3651 echo "$as_me:$LINENO: result: $CMP" >&5
3652 echo "${ECHO_T}$CMP" >&6
3654 echo "$as_me:$LINENO: result: no" >&5
3655 echo "${ECHO_T}no" >&6
3658 # Extract the first word of "tbl", so it can be a program name with args.
3659 set dummy tbl; ac_word=$2
3660 echo "$as_me:$LINENO: checking for $ac_word" >&5
3661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3662 if test "${ac_cv_path_TBL+set}" = set; then
3663 echo $ECHO_N "(cached) $ECHO_C" >&6
3667 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3674 test -z "$as_dir" && as_dir=.
3675 for ac_exec_ext in '' $ac_executable_extensions; do
3676 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3677 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3684 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3690 if test -n "$TBL"; then
3691 echo "$as_me:$LINENO: result: $TBL" >&5
3692 echo "${ECHO_T}$TBL" >&6
3694 echo "$as_me:$LINENO: result: no" >&5
3695 echo "${ECHO_T}no" >&6
3698 # Extract the first word of "ar", so it can be a program name with args.
3699 set dummy ar; ac_word=$2
3700 echo "$as_me:$LINENO: checking for $ac_word" >&5
3701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3702 if test "${ac_cv_path_AR+set}" = set; then
3703 echo $ECHO_N "(cached) $ECHO_C" >&6
3707 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3714 test -z "$as_dir" && as_dir=.
3715 for ac_exec_ext in '' $ac_executable_extensions; do
3716 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3717 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3724 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3730 if test -n "$AR"; then
3731 echo "$as_me:$LINENO: result: $AR" >&5
3732 echo "${ECHO_T}$AR" >&6
3734 echo "$as_me:$LINENO: result: no" >&5
3735 echo "${ECHO_T}no" >&6
3738 # Extract the first word of "openssl", so it can be a program name with args.
3739 set dummy openssl; ac_word=$2
3740 echo "$as_me:$LINENO: checking for $ac_word" >&5
3741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3742 if test "${ac_cv_path_OPENSSL+set}" = set; then
3743 echo $ECHO_N "(cached) $ECHO_C" >&6
3747 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3754 test -z "$as_dir" && as_dir=.
3755 for ac_exec_ext in '' $ac_executable_extensions; do
3756 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3757 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3764 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3768 OPENSSL=$ac_cv_path_OPENSSL
3770 if test -n "$OPENSSL"; then
3771 echo "$as_me:$LINENO: result: $OPENSSL" >&5
3772 echo "${ECHO_T}$OPENSSL" >&6
3774 echo "$as_me:$LINENO: result: no" >&5
3775 echo "${ECHO_T}no" >&6
3778 # Extract the first word of "mtx", so it can be a program name with args.
3779 set dummy mtx; ac_word=$2
3780 echo "$as_me:$LINENO: checking for $ac_word" >&5
3781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3782 if test "${ac_cv_path_MTX+set}" = set; then
3783 echo $ECHO_N "(cached) $ECHO_C" >&6
3787 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3794 test -z "$as_dir" && as_dir=.
3795 for ac_exec_ext in '' $ac_executable_extensions; do
3796 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3797 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3804 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3810 if test -n "$MTX"; then
3811 echo "$as_me:$LINENO: result: $MTX" >&5
3812 echo "${ECHO_T}$MTX" >&6
3814 echo "$as_me:$LINENO: result: no" >&5
3815 echo "${ECHO_T}no" >&6
3818 # Extract the first word of "mkisofs", so it can be a program name with args.
3819 set dummy mkisofs; ac_word=$2
3820 echo "$as_me:$LINENO: checking for $ac_word" >&5
3821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3822 if test "${ac_cv_path_MKISOFS+set}" = set; then
3823 echo $ECHO_N "(cached) $ECHO_C" >&6
3827 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
3830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3834 test -z "$as_dir" && as_dir=.
3835 for ac_exec_ext in '' $ac_executable_extensions; do
3836 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3837 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
3838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3844 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
3848 MKISOFS=$ac_cv_path_MKISOFS
3850 if test -n "$MKISOFS"; then
3851 echo "$as_me:$LINENO: result: $MKISOFS" >&5
3852 echo "${ECHO_T}$MKISOFS" >&6
3854 echo "$as_me:$LINENO: result: no" >&5
3855 echo "${ECHO_T}no" >&6
3858 # Extract the first word of "python", so it can be a program name with args.
3859 set dummy python; ac_word=$2
3860 echo "$as_me:$LINENO: checking for $ac_word" >&5
3861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3862 if test "${ac_cv_path_PYTHON+set}" = set; then
3863 echo $ECHO_N "(cached) $ECHO_C" >&6
3867 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
3870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3874 test -z "$as_dir" && as_dir=.
3875 for ac_exec_ext in '' $ac_executable_extensions; do
3876 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3877 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
3878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3884 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
3888 PYTHON=$ac_cv_path_PYTHON
3890 if test -n "$PYTHON"; then
3891 echo "$as_me:$LINENO: result: $PYTHON" >&5
3892 echo "${ECHO_T}$PYTHON" >&6
3894 echo "$as_me:$LINENO: result: no" >&5
3895 echo "${ECHO_T}no" >&6
3898 # Extract the first word of "growisofs", so it can be a program name with args.
3899 set dummy growisofs; ac_word=$2
3900 echo "$as_me:$LINENO: checking for $ac_word" >&5
3901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3902 if test "${ac_cv_path_GROWISOFS+set}" = set; then
3903 echo $ECHO_N "(cached) $ECHO_C" >&6
3907 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
3910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3914 test -z "$as_dir" && as_dir=.
3915 for ac_exec_ext in '' $ac_executable_extensions; do
3916 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3917 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
3918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3924 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
3928 GROWISOFS=$ac_cv_path_GROWISOFS
3930 if test -n "$GROWISOFS"; then
3931 echo "$as_me:$LINENO: result: $GROWISOFS" >&5
3932 echo "${ECHO_T}$GROWISOFS" >&6
3934 echo "$as_me:$LINENO: result: no" >&5
3935 echo "${ECHO_T}no" >&6
3938 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
3939 set dummy dvd+rw-mediainfo; ac_word=$2
3940 echo "$as_me:$LINENO: checking for $ac_word" >&5
3941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3942 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
3943 echo $ECHO_N "(cached) $ECHO_C" >&6
3945 case $DVDRWMEDIAINFO in
3947 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
3950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3954 test -z "$as_dir" && as_dir=.
3955 for ac_exec_ext in '' $ac_executable_extensions; do
3956 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3957 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
3958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3964 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
3968 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
3970 if test -n "$DVDRWMEDIAINFO"; then
3971 echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
3972 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6
3974 echo "$as_me:$LINENO: result: no" >&5
3975 echo "${ECHO_T}no" >&6
3978 # Extract the first word of "pkg-config", so it can be a program name with args.
3979 set dummy pkg-config; ac_word=$2
3980 echo "$as_me:$LINENO: checking for $ac_word" >&5
3981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3982 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
3983 echo $ECHO_N "(cached) $ECHO_C" >&6
3987 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
3990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3994 test -z "$as_dir" && as_dir=.
3995 for ac_exec_ext in '' $ac_executable_extensions; do
3996 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3997 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
3998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4004 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
4008 PKGCONFIG=$ac_cv_path_PKGCONFIG
4010 if test -n "$PKGCONFIG"; then
4011 echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
4012 echo "${ECHO_T}$PKGCONFIG" >&6
4014 echo "$as_me:$LINENO: result: no" >&5
4015 echo "${ECHO_T}no" >&6
4019 if test "x$WXCONFIG" = x; then
4022 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
4023 set dummy ${WXCONFIG}; ac_word=$2
4024 echo "$as_me:$LINENO: checking for $ac_word" >&5
4025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4026 if test "${ac_cv_path_WXCONFIG+set}" = set; then
4027 echo $ECHO_N "(cached) $ECHO_C" >&6
4031 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
4034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4038 test -z "$as_dir" && as_dir=.
4039 for ac_exec_ext in '' $ac_executable_extensions; do
4040 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4041 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
4042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4048 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
4052 WXCONFIG=$ac_cv_path_WXCONFIG
4054 if test -n "$WXCONFIG"; then
4055 echo "$as_me:$LINENO: result: $WXCONFIG" >&5
4056 echo "${ECHO_T}$WXCONFIG" >&6
4058 echo "$as_me:$LINENO: result: no" >&5
4059 echo "${ECHO_T}no" >&6
4063 # Extract the first word of "cdrecord", so it can be a program name with args.
4064 set dummy cdrecord; ac_word=$2
4065 echo "$as_me:$LINENO: checking for $ac_word" >&5
4066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4067 if test "${ac_cv_path_CDRECORD+set}" = set; then
4068 echo $ECHO_N "(cached) $ECHO_C" >&6
4072 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
4075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4079 test -z "$as_dir" && as_dir=.
4080 for ac_exec_ext in '' $ac_executable_extensions; do
4081 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4082 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
4083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4089 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
4093 CDRECORD=$ac_cv_path_CDRECORD
4095 if test -n "$CDRECORD"; then
4096 echo "$as_me:$LINENO: result: $CDRECORD" >&5
4097 echo "${ECHO_T}$CDRECORD" >&6
4099 echo "$as_me:$LINENO: result: no" >&5
4100 echo "${ECHO_T}no" >&6
4103 # Extract the first word of "pidof", so it can be a program name with args.
4104 set dummy pidof; ac_word=$2
4105 echo "$as_me:$LINENO: checking for $ac_word" >&5
4106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4107 if test "${ac_cv_path_PIDOF+set}" = set; then
4108 echo $ECHO_N "(cached) $ECHO_C" >&6
4112 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
4115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4119 test -z "$as_dir" && as_dir=.
4120 for ac_exec_ext in '' $ac_executable_extensions; do
4121 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4122 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
4123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4129 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
4133 PIDOF=$ac_cv_path_PIDOF
4135 if test -n "$PIDOF"; then
4136 echo "$as_me:$LINENO: result: $PIDOF" >&5
4137 echo "${ECHO_T}$PIDOF" >&6
4139 echo "$as_me:$LINENO: result: no" >&5
4140 echo "${ECHO_T}no" >&6
4143 for ac_prog in gawk mawk nawk awk
4145 # Extract the first word of "$ac_prog", so it can be a program name with args.
4146 set dummy $ac_prog; ac_word=$2
4147 echo "$as_me:$LINENO: checking for $ac_word" >&5
4148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4149 if test "${ac_cv_prog_AWK+set}" = set; then
4150 echo $ECHO_N "(cached) $ECHO_C" >&6
4152 if test -n "$AWK"; then
4153 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4159 test -z "$as_dir" && as_dir=.
4160 for ac_exec_ext in '' $ac_executable_extensions; do
4161 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4162 ac_cv_prog_AWK="$ac_prog"
4163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4172 if test -n "$AWK"; then
4173 echo "$as_me:$LINENO: result: $AWK" >&5
4174 echo "${ECHO_T}$AWK" >&6
4176 echo "$as_me:$LINENO: result: no" >&5
4177 echo "${ECHO_T}no" >&6
4180 test -n "$AWK" && break
4183 # Some AWK programs fail, so test it and warn the user
4184 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
4185 { if ((prog == $2) || (("(" prog ")") == $2) ||
4186 (("" prog "") == $2) ||
4187 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
4189 { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4190 The regex engine of $AWK is too broken to be used you
4191 might want to install GNU AWK.
4192 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
4193 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4194 The regex engine of $AWK is too broken to be used you
4195 might want to install GNU AWK.
4196 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
4197 { (exit 1); exit 1; }; }
4200 # Extract the first word of "$THE_AWK", so it can be a program name with args.
4201 set dummy $THE_AWK; ac_word=$2
4202 echo "$as_me:$LINENO: checking for $ac_word" >&5
4203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4204 if test "${ac_cv_path_AWK+set}" = set; then
4205 echo $ECHO_N "(cached) $ECHO_C" >&6
4209 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
4212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4216 test -z "$as_dir" && as_dir=.
4217 for ac_exec_ext in '' $ac_executable_extensions; do
4218 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4219 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
4220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4226 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
4232 if test -n "$AWK"; then
4233 echo "$as_me:$LINENO: result: $AWK" >&5
4234 echo "${ECHO_T}$AWK" >&6
4236 echo "$as_me:$LINENO: result: no" >&5
4237 echo "${ECHO_T}no" >&6
4241 test -n "$ARFLAG" || ARFLAGS="cr"
4254 # Make sure we can run config.sub.
4255 $ac_config_sub sun4 >/dev/null 2>&1 ||
4256 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4257 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4258 { (exit 1); exit 1; }; }
4260 echo "$as_me:$LINENO: checking build system type" >&5
4261 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4262 if test "${ac_cv_build+set}" = set; then
4263 echo $ECHO_N "(cached) $ECHO_C" >&6
4265 ac_cv_build_alias=$build_alias
4266 test -z "$ac_cv_build_alias" &&
4267 ac_cv_build_alias=`$ac_config_guess`
4268 test -z "$ac_cv_build_alias" &&
4269 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4270 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4271 { (exit 1); exit 1; }; }
4272 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4273 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4274 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4275 { (exit 1); exit 1; }; }
4278 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4279 echo "${ECHO_T}$ac_cv_build" >&6
4281 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4282 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4283 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4287 echo "$as_me:$LINENO: checking host system type" >&5
4288 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4289 if test "${ac_cv_host+set}" = set; then
4290 echo $ECHO_N "(cached) $ECHO_C" >&6
4292 ac_cv_host_alias=$host_alias
4293 test -z "$ac_cv_host_alias" &&
4294 ac_cv_host_alias=$ac_cv_build_alias
4295 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4296 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4297 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4298 { (exit 1); exit 1; }; }
4301 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4302 echo "${ECHO_T}$ac_cv_host" >&6
4304 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4305 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4306 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4310 *cygwin* ) CYGWIN=yes;;
4314 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4320 HAVE_SUN_OS_FALSE='#'
4322 HAVE_SUN_OS_TRUE='#'
4325 cat >>confdefs.h <<\_ACEOF
4326 #define HAVE_SUN_OS 1
4334 HAVE_SUN_OS_FALSE='#'
4336 HAVE_SUN_OS_TRUE='#'
4341 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4347 HAVE_OSF1_OS_FALSE='#'
4349 HAVE_OSF1_OS_TRUE='#'
4352 cat >>confdefs.h <<\_ACEOF
4353 #define HAVE_OSF1_OS 1
4361 HAVE_OSF1_OS_FALSE='#'
4363 HAVE_OSF1_OS_TRUE='#'
4368 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4374 HAVE_AIX_OS_FALSE='#'
4376 HAVE_AIX_OS_TRUE='#'
4379 cat >>confdefs.h <<\_ACEOF
4380 #define HAVE_AIX_OS 1
4388 HAVE_AIX_OS_FALSE='#'
4390 HAVE_AIX_OS_TRUE='#'
4395 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4401 HAVE_HPUX_OS_FALSE='#'
4403 HAVE_HPUX_OS_TRUE='#'
4406 cat >>confdefs.h <<\_ACEOF
4407 #define HAVE_HPUX_OS 1
4415 HAVE_HPUX_OS_FALSE='#'
4417 HAVE_HPUX_OS_TRUE='#'
4422 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
4428 HAVE_LINUX_OS_FALSE='#'
4430 HAVE_LINUX_OS_TRUE='#'
4431 HAVE_LINUX_OS_FALSE=
4433 cat >>confdefs.h <<\_ACEOF
4434 #define HAVE_LINUX_OS 1
4442 HAVE_LINUX_OS_FALSE='#'
4444 HAVE_LINUX_OS_TRUE='#'
4445 HAVE_LINUX_OS_FALSE=
4449 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4454 HAVE_FREEBSD_OS_TRUE=
4455 HAVE_FREEBSD_OS_FALSE='#'
4457 HAVE_FREEBSD_OS_TRUE='#'
4458 HAVE_FREEBSD_OS_FALSE=
4460 cat >>confdefs.h <<\_ACEOF
4461 #define HAVE_FREEBSD_OS 1
4468 HAVE_FREEBSD_OS_TRUE=
4469 HAVE_FREEBSD_OS_FALSE='#'
4471 HAVE_FREEBSD_OS_TRUE='#'
4472 HAVE_FREEBSD_OS_FALSE=
4476 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4481 HAVE_NETBSD_OS_TRUE=
4482 HAVE_NETBSD_OS_FALSE='#'
4484 HAVE_NETBSD_OS_TRUE='#'
4485 HAVE_NETBSD_OS_FALSE=
4487 cat >>confdefs.h <<\_ACEOF
4488 #define HAVE_NETBSD_OS 1
4495 HAVE_NETBSD_OS_TRUE=
4496 HAVE_NETBSD_OS_FALSE='#'
4498 HAVE_NETBSD_OS_TRUE='#'
4499 HAVE_NETBSD_OS_FALSE=
4503 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4508 HAVE_OPENBSD_OS_TRUE=
4509 HAVE_OPENBSD_OS_FALSE='#'
4511 HAVE_OPENBSD_OS_TRUE='#'
4512 HAVE_OPENBSD_OS_FALSE=
4514 cat >>confdefs.h <<\_ACEOF
4515 #define HAVE_OPENBSD_OS 1
4522 HAVE_OPENBSD_OS_TRUE=
4523 HAVE_OPENBSD_OS_FALSE='#'
4525 HAVE_OPENBSD_OS_TRUE='#'
4526 HAVE_OPENBSD_OS_FALSE=
4530 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4536 HAVE_BSDI_OS_FALSE='#'
4538 HAVE_BSDI_OS_TRUE='#'
4541 cat >>confdefs.h <<\_ACEOF
4542 #define HAVE_BSDI_OS 1
4550 HAVE_BSDI_OS_FALSE='#'
4552 HAVE_BSDI_OS_TRUE='#'
4557 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4563 HAVE_SGI_OS_FALSE='#'
4565 HAVE_SGI_OS_TRUE='#'
4568 cat >>confdefs.h <<\_ACEOF
4569 #define HAVE_SGI_OS 1
4577 HAVE_SGI_OS_FALSE='#'
4579 HAVE_SGI_OS_TRUE='#'
4584 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4590 HAVE_IRIX_OS_FALSE='#'
4592 HAVE_IRIX_OS_TRUE='#'
4595 cat >>confdefs.h <<\_ACEOF
4596 #define HAVE_IRIX_OS 1
4604 HAVE_IRIX_OS_FALSE='#'
4606 HAVE_IRIX_OS_TRUE='#'
4611 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4616 HAVE_DARWIN_OS_TRUE=
4617 HAVE_DARWIN_OS_FALSE='#'
4619 HAVE_DARWIN_OS_TRUE='#'
4620 HAVE_DARWIN_OS_FALSE=
4622 cat >>confdefs.h <<\_ACEOF
4623 #define HAVE_DARWIN_OS 1
4630 HAVE_DARWIN_OS_TRUE=
4631 HAVE_DARWIN_OS_FALSE='#'
4633 HAVE_DARWIN_OS_TRUE='#'
4634 HAVE_DARWIN_OS_FALSE=
4639 # -----------------------------------------------------------
4640 # ----------------------------------------------------------
4641 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4642 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4643 if test "x$DISTNAME" != "x"
4645 echo "distname set to $DISTNAME"
4646 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4649 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4652 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4655 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4658 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4661 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4664 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4667 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4670 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4673 elif test -f /etc/SuSE-release
4676 elif test -d /etc/SuSEconfig
4679 elif test -f /etc/mandrake-release
4682 elif test -f /etc/whitebox-release
4685 elif test -f /etc/redhat-release
4688 elif test -f /etc/gentoo-release
4691 elif test -f /etc/debian_version
4694 elif test -f /etc/slackware-version
4697 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4700 elif test -f /etc/engarde-version
4703 elif test "$CYGWIN" = yes
4706 cat >>confdefs.h <<\_ACEOF
4707 #define HAVE_CYGWIN 1
4713 echo "$as_me:$LINENO: result: done" >&5
4714 echo "${ECHO_T}done" >&6
4717 # -----------------------------------------------------------
4718 # ----------------------------------------------------------
4723 INSIDE_GNOME_COMMON_TRUE=
4724 INSIDE_GNOME_COMMON_FALSE='#'
4726 INSIDE_GNOME_COMMON_TRUE='#'
4727 INSIDE_GNOME_COMMON_FALSE=
4730 test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
4732 for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
4735 # ------------------------------------------------------------------
4736 # If the user has not set --prefix, we set our default to nothing.
4737 # In this case, if the user has not set --sysconfdir, we set it
4738 # to the package default of /etc/bacula. If either --prefix or
4739 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
4740 # ------------------------------------------------------------------
4741 if test x${prefix} = xNONE ; then
4742 if test `eval echo ${sysconfdir}` = NONE/etc ; then
4743 sysconfdir=/etc/bacula
4747 sysconfdir=`eval echo ${sysconfdir}`
4749 # -------------------------------------------------------------------------
4750 # If the user has not set --exec-prefix, we default to ${prefix}
4751 # -------------------------------------------------------------------------
4752 if test x${exec_prefix} = xNONE ; then
4753 exec_prefix=${prefix}
4756 # ------------------------------------------------------------------
4757 # If the user has not set --sbindir, we set our default as /sbin
4758 # ------------------------------------------------------------------
4759 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4760 sbindir=${exec_prefix}/sbin
4762 sbindir=`eval echo ${sbindir}`
4764 # -------------------------------------------------------------------------
4765 # If the user has not set --mandir, we default to /usr/share/man
4766 # -------------------------------------------------------------------------
4767 if test x$mandir = x'${prefix}/man' ; then
4768 mandir=/usr/share/man
4772 # ------------------------------------------------------------------
4773 # All list of languages for which a translation exist. Each
4774 # language is separated by a space.
4775 # ------------------------------------------------------------------
4778 for ac_prog in msgfmt
4780 # Extract the first word of "$ac_prog", so it can be a program name with args.
4781 set dummy $ac_prog; ac_word=$2
4782 echo "$as_me:$LINENO: checking for $ac_word" >&5
4783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4784 if test "${ac_cv_path_MSGFMT+set}" = set; then
4785 echo $ECHO_N "(cached) $ECHO_C" >&6
4789 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4796 test -z "$as_dir" && as_dir=.
4797 for ac_exec_ext in '' $ac_executable_extensions; do
4798 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4799 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4809 MSGFMT=$ac_cv_path_MSGFMT
4811 if test -n "$MSGFMT"; then
4812 echo "$as_me:$LINENO: result: $MSGFMT" >&5
4813 echo "${ECHO_T}$MSGFMT" >&6
4815 echo "$as_me:$LINENO: result: no" >&5
4816 echo "${ECHO_T}no" >&6
4819 test -n "$MSGFMT" && break
4821 test -n "$MSGFMT" || MSGFMT="no"
4823 if test "$MSGFMT" = "no"
4825 echo 'msgfmt program not found, disabling NLS !'
4827 USE_INCLUDED_LIBINTL=no
4836 support_postgresql=no
4837 support_smartalloc=yes
4838 support_readline=yes
4841 support_wx_console=no
4845 support_static_tools=no
4846 support_static_fd=no
4847 support_static_sd=no
4848 support_static_dir=no
4849 support_static_cons=no
4851 build_client_only=no
4857 # -------------------------------------------
4858 # gnome (default off)
4859 # -------------------------------------------
4860 # Check whether --enable-gnome or --disable-gnome was given.
4861 if test "${enable_gnome+set}" = set; then
4862 enableval="$enable_gnome"
4863 if test x$enableval = xyes; then
4869 if test x$support_gnome = xyes; then
4870 abc=`$PKGCONFIG --exists libgnomeui-2.0`
4872 if test $pkg = 0; then
4873 GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
4874 GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4875 GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
4876 GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4881 GNOME_DIR=src/gnome2-console
4882 gnome_version="Version 2.x"
4895 # Check whether --with-gnome-includes or --without-gnome-includes was given.
4896 if test "${with_gnome_includes+set}" = set; then
4897 withval="$with_gnome_includes"
4899 CFLAGS="$CFLAGS -I$withval"
4904 # Check whether --with-gnome-libs or --without-gnome-libs was given.
4905 if test "${with_gnome_libs+set}" = set; then
4906 withval="$with_gnome_libs"
4908 LDFLAGS="$LDFLAGS -L$withval"
4909 gnome_prefix=$withval
4914 # Check whether --with-gnome or --without-gnome was given.
4915 if test "${with_gnome+set}" = set; then
4916 withval="$with_gnome"
4917 if test x$withval = xyes; then
4921 if test "x$withval" = xno; then
4925 LDFLAGS="$LDFLAGS -L$withval/lib"
4926 CFLAGS="$CFLAGS -I$withval/include"
4927 gnome_prefix=$withval/lib
4934 if test "x$want_gnome" = xyes; then
4936 # Extract the first word of "gnome-config", so it can be a program name with args.
4937 set dummy gnome-config; ac_word=$2
4938 echo "$as_me:$LINENO: checking for $ac_word" >&5
4939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4940 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
4941 echo $ECHO_N "(cached) $ECHO_C" >&6
4943 case $GNOME_CONFIG in
4945 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
4948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4952 test -z "$as_dir" && as_dir=.
4953 for ac_exec_ext in '' $ac_executable_extensions; do
4954 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4955 ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4962 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
4966 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
4968 if test -n "$GNOME_CONFIG"; then
4969 echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
4970 echo "${ECHO_T}$GNOME_CONFIG" >&6
4972 echo "$as_me:$LINENO: result: no" >&5
4973 echo "${ECHO_T}no" >&6
4976 if test "$GNOME_CONFIG" = "no"; then
4977 no_gnome_config="yes"
4979 echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
4980 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
4981 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
4982 echo "$as_me:$LINENO: result: yes" >&5
4983 echo "${ECHO_T}yes" >&6
4986 # Extract the first word of "orbit-config", so it can be a program name with args.
4987 set dummy orbit-config; ac_word=$2
4988 echo "$as_me:$LINENO: checking for $ac_word" >&5
4989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4990 if test "${ac_cv_path_ORBIT_CONFIG+set}" = set; then
4991 echo $ECHO_N "(cached) $ECHO_C" >&6
4993 case $ORBIT_CONFIG in
4995 ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
4998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5002 test -z "$as_dir" && as_dir=.
5003 for ac_exec_ext in '' $ac_executable_extensions; do
5004 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5005 ac_cv_path_ORBIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5012 test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
5016 ORBIT_CONFIG=$ac_cv_path_ORBIT_CONFIG
5018 if test -n "$ORBIT_CONFIG"; then
5019 echo "$as_me:$LINENO: result: $ORBIT_CONFIG" >&5
5020 echo "${ECHO_T}$ORBIT_CONFIG" >&6
5022 echo "$as_me:$LINENO: result: no" >&5
5023 echo "${ECHO_T}no" >&6
5026 # Extract the first word of "orbit-idl", so it can be a program name with args.
5027 set dummy orbit-idl; ac_word=$2
5028 echo "$as_me:$LINENO: checking for $ac_word" >&5
5029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5030 if test "${ac_cv_path_ORBIT_IDL+set}" = set; then
5031 echo $ECHO_N "(cached) $ECHO_C" >&6
5035 ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
5038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5042 test -z "$as_dir" && as_dir=.
5043 for ac_exec_ext in '' $ac_executable_extensions; do
5044 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5045 ac_cv_path_ORBIT_IDL="$as_dir/$ac_word$ac_exec_ext"
5046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5052 test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
5056 ORBIT_IDL=$ac_cv_path_ORBIT_IDL
5058 if test -n "$ORBIT_IDL"; then
5059 echo "$as_me:$LINENO: result: $ORBIT_IDL" >&5
5060 echo "${ECHO_T}$ORBIT_IDL" >&6
5062 echo "$as_me:$LINENO: result: no" >&5
5063 echo "${ECHO_T}no" >&6
5066 echo "$as_me:$LINENO: checking for working ORBit environment" >&5
5067 echo $ECHO_N "checking for working ORBit environment... $ECHO_C" >&6
5068 if test "${gnome_cv_orbit_found+set}" = set; then
5069 echo $ECHO_N "(cached) $ECHO_C" >&6
5072 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
5073 gnome_cv_orbit_found=no
5075 gnome_cv_orbit_found=yes
5079 echo "$as_me:$LINENO: result: $gnome_cv_orbit_found" >&5
5080 echo "${ECHO_T}$gnome_cv_orbit_found" >&6
5083 if test x$gnome_cv_orbit_found = xyes; then
5085 HAVE_ORBIT_FALSE='#'
5090 if test x$gnome_cv_orbit_found = xyes; then
5092 ORBIT_CFLAGS=`orbit-config --cflags client server`
5093 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
5097 if test xfail = xfailure; then
5098 { { echo "$as_me:$LINENO: error: ORBit not installed or installation problem" >&5
5099 echo "$as_me: error: ORBit not installed or installation problem" >&2;}
5100 { (exit 1); exit 1; }; }
5104 echo "$as_me:$LINENO: checking for gnorba libraries" >&5
5105 echo $ECHO_N "checking for gnorba libraries... $ECHO_C" >&6
5106 if test "${gnome_cv_gnorba_found+set}" = set; then
5107 echo $ECHO_N "(cached) $ECHO_C" >&6
5110 gnome_cv_gnorba_found=no
5111 if test x$gnome_cv_orbit_found = xyes; then
5112 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
5113 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
5114 if test -n "$GNORBA_LIBS"; then
5115 gnome_cv_gnorba_found=yes
5120 echo "$as_me:$LINENO: result: $gnome_cv_gnorba_found" >&5
5121 echo "${ECHO_T}$gnome_cv_gnorba_found" >&6
5124 if test x$gnome_cv_gnorba_found = xyes; then
5126 HAVE_GNORBA_FALSE='#'
5128 HAVE_GNORBA_TRUE='#'
5131 if test x$gnome_cv_orbit_found = xyes; then
5133 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
5134 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
5138 if test xfail = xfailure; then
5139 { { echo "$as_me:$LINENO: error: gnorba library not installed or installation problem" >&5
5140 echo "$as_me: error: gnorba library not installed or installation problem" >&2;}
5141 { (exit 1); exit 1; }; }
5145 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
5146 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
5147 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
5148 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
5149 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
5150 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
5151 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
5154 echo "$as_me:$LINENO: result: no" >&5
5155 echo "${ECHO_T}no" >&6
5156 no_gnome_config="yes"
5160 if test x$exec_prefix = xNONE; then
5161 if test x$prefix = xNONE; then
5162 gnome_prefix=$ac_default_prefix/lib
5164 gnome_prefix=$prefix/lib
5167 gnome_prefix=`eval echo \`echo $libdir\``
5170 if test "$no_gnome_config" = "yes"; then
5171 echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
5172 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
5173 if test -f $gnome_prefix/gnomeConf.sh; then
5174 echo "$as_me:$LINENO: result: found" >&5
5175 echo "${ECHO_T}found" >&6
5176 echo "loading gnome configuration from" \
5177 "$gnome_prefix/gnomeConf.sh"
5178 . $gnome_prefix/gnomeConf.sh
5181 echo "$as_me:$LINENO: result: not found" >&5
5182 echo "${ECHO_T}not found" >&6
5183 if test xfail = xfail; then
5184 { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
5185 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
5186 { (exit 1); exit 1; }; }
5195 echo "$as_me:$LINENO: checking extra library \"$i\"" >&5
5196 echo $ECHO_N "checking extra library \"$i\"... $ECHO_C" >&6
5200 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
5201 echo "$as_me:$LINENO: result: $GNOME_APPLETS_LIBS" >&5
5202 echo "${ECHO_T}$GNOME_APPLETS_LIBS" >&6;;
5205 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
5206 echo "$as_me:$LINENO: result: $GNOME_DOCKLETS_LIBS" >&5
5207 echo "${ECHO_T}$GNOME_DOCKLETS_LIBS" >&6;;
5210 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
5211 echo "$as_me:$LINENO: result: $GNOME_CAPPLET_LIBS" >&5
5212 echo "${ECHO_T}$GNOME_CAPPLET_LIBS" >&6;;
5214 echo "$as_me:$LINENO: result: unknown library" >&5
5215 echo "${ECHO_T}unknown library" >&6
5217 EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
5218 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
5223 GNOME_DIR=src/gnome-console
5224 gnome_version="Version 1.4"
5230 # -------------------------------------------
5231 # wx-console (default off)
5232 # -------------------------------------------
5233 # Check whether --enable-wx-console or --disable-wx-console was given.
5234 if test "${enable_wx_console+set}" = set; then
5235 enableval="$enable_wx_console"
5236 if test x$enableval = xyes; then
5237 support_wx_console=yes
5242 if test x$support_wx_console = xyes; then
5243 abc=`$WXCONFIG $WXFLAGS --cppflags`
5245 if test $pkg = 0; then
5246 wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
5247 WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
5248 WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
5252 WX_DIR=src/wx-console
5255 echo "wx-config program not found. wx-console disabled."
5257 support_wx_console=no
5263 # -------------------------------------------
5264 # tray-monitor (default off)
5265 # -------------------------------------------
5266 # Check whether --enable-tray-monitor or --disable-tray-monitor was given.
5267 if test "${enable_tray_monitor+set}" = set; then
5268 enableval="$enable_tray_monitor"
5269 if test x$enableval = xyes; then
5270 support_tray_monitor=yes
5275 if test x$support_tray_monitor = xyes; then
5276 abc=`$PKGCONFIG --exists gtk+-2.0`
5278 if test $pkg = 0; then
5279 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
5280 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
5283 TRAY_MONITOR_DIR=src/tray-monitor
5284 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
5286 if test $pkg = 0; then
5287 cat >>confdefs.h <<\_ACEOF
5288 #define HAVE_GTK_2_4 1
5296 # -------------------------------------------
5297 # smartalloc (default off)
5298 # -------------------------------------------
5299 # Check whether --enable-smartalloc or --disable-smartalloc was given.
5300 if test "${enable_smartalloc+set}" = set; then
5301 enableval="$enable_smartalloc"
5302 if test x$enableval = xno; then
5303 support_smartalloc=no
5307 if test x$support_smartalloc = xyes; then
5308 cat >>confdefs.h <<\_ACEOF
5309 #define SMARTALLOC 1
5314 # -------------------------------------------
5315 # static-tools (default off)
5316 # -------------------------------------------
5317 # Check whether --enable-static-tools or --disable-static-tools was given.
5318 if test "${enable_static_tools+set}" = set; then
5319 enableval="$enable_static_tools"
5320 if test x$enableval = xyes; then
5321 support_static_tools=yes
5326 if test x$support_static_tools = xyes; then
5327 TTOOL_LDFLAGS="-static"
5331 # -------------------------------------------
5332 # static-fd (default off)
5333 # -------------------------------------------
5334 # Check whether --enable-static-fd or --disable-static-fd was given.
5335 if test "${enable_static_fd+set}" = set; then
5336 enableval="$enable_static_fd"
5337 if test x$enableval = xyes; then
5338 support_static_fd=yes
5343 if test x$support_static_fd = xyes; then
5344 STATIC_FD="static-bacula-fd"
5348 # -------------------------------------------
5349 # static-sd (default off)
5350 # -------------------------------------------
5351 # Check whether --enable-static-sd or --disable-static-sd was given.
5352 if test "${enable_static_sd+set}" = set; then
5353 enableval="$enable_static_sd"
5354 if test x$enableval = xyes; then
5355 support_static_sd=yes
5360 if test x$support_static_sd = xyes; then
5361 STATIC_SD="static-bacula-sd"
5365 # -------------------------------------------
5366 # static-dir (default off)
5367 # -------------------------------------------
5368 # Check whether --enable-static-dir or --disable-static-dir was given.
5369 if test "${enable_static_dir+set}" = set; then
5370 enableval="$enable_static_dir"
5371 if test x$enableval = xyes; then
5372 support_static_dir=yes
5377 if test x$support_static_dir = xyes; then
5378 STATIC_DIR="static-bacula-dir"
5382 # -------------------------------------------
5383 # static-cons (default off)
5384 # -------------------------------------------
5385 # Check whether --enable-static-cons or --disable-static-cons was given.
5386 if test "${enable_static_cons+set}" = set; then
5387 enableval="$enable_static_cons"
5388 if test x$enableval = xyes; then
5389 support_static_cons=yes
5396 if test x$support_static_cons = xyes; then
5397 STATIC_CONS="static-bconsole"
5398 STATIC_GNOME_CONS="static-gnome-console"
5399 STATIC_WX_CONS="static-wx-console"
5405 # -------------------------------------------
5406 # client_only (default off)
5407 # -------------------------------------------
5408 # Check whether --enable-client-only or --disable-client-only was given.
5409 if test "${enable_client_only+set}" = set; then
5410 enableval="$enable_client_only"
5411 if test x$enableval = xyes; then
5412 build_client_only=yes
5417 if test x$build_client_only = xno; then
5424 # ---------------------------------------------------
5425 # Check for conio (Bacula readline substitute)(
5426 # ---------------------------------------------------
5427 # this allows you to turn it completely off
5428 # Check whether --enable-conio or --disable-conio was given.
5429 if test "${enable_conio+set}" = set; then
5430 enableval="$enable_conio"
5431 if test x$enableval = xno; then
5437 if test x$support_conio = xyes; then
5438 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5439 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5440 if test "${ac_cv_header_stdc+set}" = set; then
5441 echo $ECHO_N "(cached) $ECHO_C" >&6
5443 cat >conftest.$ac_ext <<_ACEOF
5446 cat confdefs.h >>conftest.$ac_ext
5447 cat >>conftest.$ac_ext <<_ACEOF
5448 /* end confdefs.h. */
5462 rm -f conftest.$ac_objext
5463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5464 (eval $ac_compile) 2>conftest.er1
5466 grep -v '^ *+' conftest.er1 >conftest.err
5468 cat conftest.err >&5
5469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470 (exit $ac_status); } &&
5471 { ac_try='test -z "$ac_c_werror_flag"
5472 || test ! -s conftest.err'
5473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477 (exit $ac_status); }; } &&
5478 { ac_try='test -s conftest.$ac_objext'
5479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5483 (exit $ac_status); }; }; then
5484 ac_cv_header_stdc=yes
5486 echo "$as_me: failed program was:" >&5
5487 sed 's/^/| /' conftest.$ac_ext >&5
5489 ac_cv_header_stdc=no
5491 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5493 if test $ac_cv_header_stdc = yes; then
5494 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5495 cat >conftest.$ac_ext <<_ACEOF
5498 cat confdefs.h >>conftest.$ac_ext
5499 cat >>conftest.$ac_ext <<_ACEOF
5500 /* end confdefs.h. */
5504 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5505 $EGREP "memchr" >/dev/null 2>&1; then
5508 ac_cv_header_stdc=no
5514 if test $ac_cv_header_stdc = yes; then
5515 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5516 cat >conftest.$ac_ext <<_ACEOF
5519 cat confdefs.h >>conftest.$ac_ext
5520 cat >>conftest.$ac_ext <<_ACEOF
5521 /* end confdefs.h. */
5525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5526 $EGREP "free" >/dev/null 2>&1; then
5529 ac_cv_header_stdc=no
5535 if test $ac_cv_header_stdc = yes; then
5536 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5537 if test "$cross_compiling" = yes; then
5540 cat >conftest.$ac_ext <<_ACEOF
5543 cat confdefs.h >>conftest.$ac_ext
5544 cat >>conftest.$ac_ext <<_ACEOF
5545 /* end confdefs.h. */
5547 #if ((' ' & 0x0FF) == 0x020)
5548 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5549 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5551 # define ISLOWER(c) \
5552 (('a' <= (c) && (c) <= 'i') \
5553 || ('j' <= (c) && (c) <= 'r') \
5554 || ('s' <= (c) && (c) <= 'z'))
5555 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5558 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5563 for (i = 0; i < 256; i++)
5564 if (XOR (islower (i), ISLOWER (i))
5565 || toupper (i) != TOUPPER (i))
5570 rm -f conftest$ac_exeext
5571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5572 (eval $ac_link) 2>&5
5574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5575 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580 (exit $ac_status); }; }; then
5583 echo "$as_me: program exited with status $ac_status" >&5
5584 echo "$as_me: failed program was:" >&5
5585 sed 's/^/| /' conftest.$ac_ext >&5
5588 ac_cv_header_stdc=no
5590 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5594 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5595 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5596 if test $ac_cv_header_stdc = yes; then
5598 cat >>confdefs.h <<\_ACEOF
5599 #define STDC_HEADERS 1
5604 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5614 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5615 inttypes.h stdint.h unistd.h
5617 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5618 echo "$as_me:$LINENO: checking for $ac_header" >&5
5619 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5620 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5621 echo $ECHO_N "(cached) $ECHO_C" >&6
5623 cat >conftest.$ac_ext <<_ACEOF
5626 cat confdefs.h >>conftest.$ac_ext
5627 cat >>conftest.$ac_ext <<_ACEOF
5628 /* end confdefs.h. */
5629 $ac_includes_default
5631 #include <$ac_header>
5633 rm -f conftest.$ac_objext
5634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5635 (eval $ac_compile) 2>conftest.er1
5637 grep -v '^ *+' conftest.er1 >conftest.err
5639 cat conftest.err >&5
5640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5641 (exit $ac_status); } &&
5642 { ac_try='test -z "$ac_c_werror_flag"
5643 || test ! -s conftest.err'
5644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5648 (exit $ac_status); }; } &&
5649 { ac_try='test -s conftest.$ac_objext'
5650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654 (exit $ac_status); }; }; then
5655 eval "$as_ac_Header=yes"
5657 echo "$as_me: failed program was:" >&5
5658 sed 's/^/| /' conftest.$ac_ext >&5
5660 eval "$as_ac_Header=no"
5662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5664 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5665 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5666 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5667 cat >>confdefs.h <<_ACEOF
5668 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5676 if test "${ac_cv_header_termcap_h+set}" = set; then
5677 echo "$as_me:$LINENO: checking for termcap.h" >&5
5678 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5679 if test "${ac_cv_header_termcap_h+set}" = set; then
5680 echo $ECHO_N "(cached) $ECHO_C" >&6
5682 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5683 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5685 # Is the header compilable?
5686 echo "$as_me:$LINENO: checking termcap.h usability" >&5
5687 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
5688 cat >conftest.$ac_ext <<_ACEOF
5691 cat confdefs.h >>conftest.$ac_ext
5692 cat >>conftest.$ac_ext <<_ACEOF
5693 /* end confdefs.h. */
5694 $ac_includes_default
5695 #include <termcap.h>
5697 rm -f conftest.$ac_objext
5698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5699 (eval $ac_compile) 2>conftest.er1
5701 grep -v '^ *+' conftest.er1 >conftest.err
5703 cat conftest.err >&5
5704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5705 (exit $ac_status); } &&
5706 { ac_try='test -z "$ac_c_werror_flag"
5707 || test ! -s conftest.err'
5708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712 (exit $ac_status); }; } &&
5713 { ac_try='test -s conftest.$ac_objext'
5714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718 (exit $ac_status); }; }; then
5719 ac_header_compiler=yes
5721 echo "$as_me: failed program was:" >&5
5722 sed 's/^/| /' conftest.$ac_ext >&5
5724 ac_header_compiler=no
5726 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5727 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5728 echo "${ECHO_T}$ac_header_compiler" >&6
5730 # Is the header present?
5731 echo "$as_me:$LINENO: checking termcap.h presence" >&5
5732 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
5733 cat >conftest.$ac_ext <<_ACEOF
5736 cat confdefs.h >>conftest.$ac_ext
5737 cat >>conftest.$ac_ext <<_ACEOF
5738 /* end confdefs.h. */
5739 #include <termcap.h>
5741 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5742 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5744 grep -v '^ *+' conftest.er1 >conftest.err
5746 cat conftest.err >&5
5747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748 (exit $ac_status); } >/dev/null; then
5749 if test -s conftest.err; then
5750 ac_cpp_err=$ac_c_preproc_warn_flag
5751 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5758 if test -z "$ac_cpp_err"; then
5759 ac_header_preproc=yes
5761 echo "$as_me: failed program was:" >&5
5762 sed 's/^/| /' conftest.$ac_ext >&5
5764 ac_header_preproc=no
5766 rm -f conftest.err conftest.$ac_ext
5767 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5768 echo "${ECHO_T}$ac_header_preproc" >&6
5770 # So? What about this header?
5771 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5773 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
5774 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5775 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
5776 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
5777 ac_header_preproc=yes
5780 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
5781 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
5782 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
5783 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
5784 { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
5785 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
5786 { echo "$as_me:$LINENO: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&5
5787 echo "$as_me: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
5788 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5789 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5790 { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
5791 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
5794 ## ------------------------------------------ ##
5795 ## Report this to the AC_PACKAGE_NAME lists. ##
5796 ## ------------------------------------------ ##
5799 sed "s/^/$as_me: WARNING: /" >&2
5802 echo "$as_me:$LINENO: checking for termcap.h" >&5
5803 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5804 if test "${ac_cv_header_termcap_h+set}" = set; then
5805 echo $ECHO_N "(cached) $ECHO_C" >&6
5807 ac_cv_header_termcap_h=$ac_header_preproc
5809 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5810 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5813 if test $ac_cv_header_termcap_h = yes; then
5814 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5815 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
5816 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5817 echo $ECHO_N "(cached) $ECHO_C" >&6
5819 ac_check_lib_save_LIBS=$LIBS
5820 LIBS="-ltermcap $LIBS"
5821 cat >conftest.$ac_ext <<_ACEOF
5824 cat confdefs.h >>conftest.$ac_ext
5825 cat >>conftest.$ac_ext <<_ACEOF
5826 /* end confdefs.h. */
5828 /* Override any gcc2 internal prototype to avoid an error. */
5832 /* We use char because int might match the return type of a gcc2
5833 builtin and then its argument prototype would still apply. */
5843 rm -f conftest.$ac_objext conftest$ac_exeext
5844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5845 (eval $ac_link) 2>conftest.er1
5847 grep -v '^ *+' conftest.er1 >conftest.err
5849 cat conftest.err >&5
5850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5851 (exit $ac_status); } &&
5852 { ac_try='test -z "$ac_c_werror_flag"
5853 || test ! -s conftest.err'
5854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858 (exit $ac_status); }; } &&
5859 { ac_try='test -s conftest$ac_exeext'
5860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864 (exit $ac_status); }; }; then
5865 ac_cv_lib_termcap_tgetent=yes
5867 echo "$as_me: failed program was:" >&5
5868 sed 's/^/| /' conftest.$ac_ext >&5
5870 ac_cv_lib_termcap_tgetent=no
5872 rm -f conftest.err conftest.$ac_objext \
5873 conftest$ac_exeext conftest.$ac_ext
5874 LIBS=$ac_check_lib_save_LIBS
5876 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5877 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
5878 if test $ac_cv_lib_termcap_tgetent = yes; then
5879 CONS_LIBS="-ltermcap"
5885 cat >>confdefs.h <<\_ACEOF
5886 #define HAVE_CONIO 1
5891 echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
5892 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
5893 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
5894 echo $ECHO_N "(cached) $ECHO_C" >&6
5896 ac_check_lib_save_LIBS=$LIBS
5897 LIBS="-lncurses $LIBS"
5898 cat >conftest.$ac_ext <<_ACEOF
5901 cat confdefs.h >>conftest.$ac_ext
5902 cat >>conftest.$ac_ext <<_ACEOF
5903 /* end confdefs.h. */
5905 /* Override any gcc2 internal prototype to avoid an error. */
5909 /* We use char because int might match the return type of a gcc2
5910 builtin and then its argument prototype would still apply. */
5920 rm -f conftest.$ac_objext conftest$ac_exeext
5921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5922 (eval $ac_link) 2>conftest.er1
5924 grep -v '^ *+' conftest.er1 >conftest.err
5926 cat conftest.err >&5
5927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928 (exit $ac_status); } &&
5929 { ac_try='test -z "$ac_c_werror_flag"
5930 || test ! -s conftest.err'
5931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5935 (exit $ac_status); }; } &&
5936 { ac_try='test -s conftest$ac_exeext'
5937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941 (exit $ac_status); }; }; then
5942 ac_cv_lib_ncurses_tgetent=yes
5944 echo "$as_me: failed program was:" >&5
5945 sed 's/^/| /' conftest.$ac_ext >&5
5947 ac_cv_lib_ncurses_tgetent=no
5949 rm -f conftest.err conftest.$ac_objext \
5950 conftest$ac_exeext conftest.$ac_ext
5951 LIBS=$ac_check_lib_save_LIBS
5953 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
5954 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
5955 if test $ac_cv_lib_ncurses_tgetent = yes; then
5956 CONS_LIBS="-lncurses"
5962 cat >>confdefs.h <<\_ACEOF
5963 #define HAVE_CONIO 1
5976 for ac_header in curses.h
5978 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5979 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5980 echo "$as_me:$LINENO: checking for $ac_header" >&5
5981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5982 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5983 echo $ECHO_N "(cached) $ECHO_C" >&6
5985 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5986 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5988 # Is the header compilable?
5989 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5990 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5991 cat >conftest.$ac_ext <<_ACEOF
5994 cat confdefs.h >>conftest.$ac_ext
5995 cat >>conftest.$ac_ext <<_ACEOF
5996 /* end confdefs.h. */
5997 $ac_includes_default
5998 #include <$ac_header>
6000 rm -f conftest.$ac_objext
6001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6002 (eval $ac_compile) 2>conftest.er1
6004 grep -v '^ *+' conftest.er1 >conftest.err
6006 cat conftest.err >&5
6007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008 (exit $ac_status); } &&
6009 { ac_try='test -z "$ac_c_werror_flag"
6010 || test ! -s conftest.err'
6011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015 (exit $ac_status); }; } &&
6016 { ac_try='test -s conftest.$ac_objext'
6017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); }; }; then
6022 ac_header_compiler=yes
6024 echo "$as_me: failed program was:" >&5
6025 sed 's/^/| /' conftest.$ac_ext >&5
6027 ac_header_compiler=no
6029 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6030 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6031 echo "${ECHO_T}$ac_header_compiler" >&6
6033 # Is the header present?
6034 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6035 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6036 cat >conftest.$ac_ext <<_ACEOF
6039 cat confdefs.h >>conftest.$ac_ext
6040 cat >>conftest.$ac_ext <<_ACEOF
6041 /* end confdefs.h. */
6042 #include <$ac_header>
6044 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6045 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6047 grep -v '^ *+' conftest.er1 >conftest.err
6049 cat conftest.err >&5
6050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051 (exit $ac_status); } >/dev/null; then
6052 if test -s conftest.err; then
6053 ac_cpp_err=$ac_c_preproc_warn_flag
6054 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6061 if test -z "$ac_cpp_err"; then
6062 ac_header_preproc=yes
6064 echo "$as_me: failed program was:" >&5
6065 sed 's/^/| /' conftest.$ac_ext >&5
6067 ac_header_preproc=no
6069 rm -f conftest.err conftest.$ac_ext
6070 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6071 echo "${ECHO_T}$ac_header_preproc" >&6
6073 # So? What about this header?
6074 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6076 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6077 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6078 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6079 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6080 ac_header_preproc=yes
6083 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6084 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6085 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6086 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6087 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6088 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6089 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6090 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6091 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6092 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6093 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6094 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6097 ## ------------------------------------------ ##
6098 ## Report this to the AC_PACKAGE_NAME lists. ##
6099 ## ------------------------------------------ ##
6102 sed "s/^/$as_me: WARNING: /" >&2
6105 echo "$as_me:$LINENO: checking for $ac_header" >&5
6106 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6107 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6108 echo $ECHO_N "(cached) $ECHO_C" >&6
6110 eval "$as_ac_Header=\$ac_header_preproc"
6112 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6113 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6116 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6117 cat >>confdefs.h <<_ACEOF
6118 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6125 echo "$as_me:$LINENO: checking for term.h" >&5
6126 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
6127 if test "${ac_cv_header_term_h+set}" = set; then
6128 echo $ECHO_N "(cached) $ECHO_C" >&6
6130 cat >conftest.$ac_ext <<_ACEOF
6133 cat confdefs.h >>conftest.$ac_ext
6134 cat >>conftest.$ac_ext <<_ACEOF
6135 /* end confdefs.h. */
6143 rm -f conftest.$ac_objext
6144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6145 (eval $ac_compile) 2>conftest.er1
6147 grep -v '^ *+' conftest.er1 >conftest.err
6149 cat conftest.err >&5
6150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151 (exit $ac_status); } &&
6152 { ac_try='test -z "$ac_c_werror_flag"
6153 || test ! -s conftest.err'
6154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6158 (exit $ac_status); }; } &&
6159 { ac_try='test -s conftest.$ac_objext'
6160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6164 (exit $ac_status); }; }; then
6165 ac_cv_header_term_h=yes
6167 echo "$as_me: failed program was:" >&5
6168 sed 's/^/| /' conftest.$ac_ext >&5
6170 ac_cv_header_term_h=no
6172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6174 echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
6175 echo "${ECHO_T}$ac_cv_header_term_h" >&6
6176 if test $ac_cv_header_term_h = yes; then
6177 echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
6178 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
6179 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
6180 echo $ECHO_N "(cached) $ECHO_C" >&6
6182 ac_check_lib_save_LIBS=$LIBS
6183 LIBS="-lcurses $LIBS"
6184 cat >conftest.$ac_ext <<_ACEOF
6187 cat confdefs.h >>conftest.$ac_ext
6188 cat >>conftest.$ac_ext <<_ACEOF
6189 /* end confdefs.h. */
6191 /* Override any gcc2 internal prototype to avoid an error. */
6195 /* We use char because int might match the return type of a gcc2
6196 builtin and then its argument prototype would still apply. */
6206 rm -f conftest.$ac_objext conftest$ac_exeext
6207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6208 (eval $ac_link) 2>conftest.er1
6210 grep -v '^ *+' conftest.er1 >conftest.err
6212 cat conftest.err >&5
6213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6214 (exit $ac_status); } &&
6215 { ac_try='test -z "$ac_c_werror_flag"
6216 || test ! -s conftest.err'
6217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6221 (exit $ac_status); }; } &&
6222 { ac_try='test -s conftest$ac_exeext'
6223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227 (exit $ac_status); }; }; then
6228 ac_cv_lib_curses_tgetent=yes
6230 echo "$as_me: failed program was:" >&5
6231 sed 's/^/| /' conftest.$ac_ext >&5
6233 ac_cv_lib_curses_tgetent=no
6235 rm -f conftest.err conftest.$ac_objext \
6236 conftest$ac_exeext conftest.$ac_ext
6237 LIBS=$ac_check_lib_save_LIBS
6239 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
6240 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
6241 if test $ac_cv_lib_curses_tgetent = yes; then
6242 CONS_LIBS="-lcurses"
6248 cat >>confdefs.h <<\_ACEOF
6249 #define HAVE_CONIO 1
6257 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
6268 # ---------------------------------------------------
6269 # Check for readline support/directory (default off)
6270 # ---------------------------------------------------
6271 # this allows you to turn it completely off
6272 # Check whether --enable-readline or --disable-readline was given.
6273 if test "${enable_readline+set}" = set; then
6274 enableval="$enable_readline"
6275 if test x$enableval = xno; then
6282 if test x$support_readline = xyes; then
6284 # Check whether --with-readline or --without-readline was given.
6285 if test "${with_readline+set}" = set; then
6286 withval="$with_readline"
6288 case "$with_readline" in
6291 if test "$with_readline" != "yes"; then
6292 CONS_INC="-I${with_readline}"
6293 CONS_LDFLAGS="-L$with_readline"
6295 with_readline="/usr/include/readline"
6297 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
6298 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6299 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
6300 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
6301 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6302 echo $ECHO_N "(cached) $ECHO_C" >&6
6304 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6305 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6307 # Is the header compilable?
6308 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
6309 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
6310 cat >conftest.$ac_ext <<_ACEOF
6313 cat confdefs.h >>conftest.$ac_ext
6314 cat >>conftest.$ac_ext <<_ACEOF
6315 /* end confdefs.h. */
6316 $ac_includes_default
6317 #include <${with_readline}/readline.h>
6319 rm -f conftest.$ac_objext
6320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6321 (eval $ac_compile) 2>conftest.er1
6323 grep -v '^ *+' conftest.er1 >conftest.err
6325 cat conftest.err >&5
6326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327 (exit $ac_status); } &&
6328 { ac_try='test -z "$ac_c_werror_flag"
6329 || test ! -s conftest.err'
6330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334 (exit $ac_status); }; } &&
6335 { ac_try='test -s conftest.$ac_objext'
6336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6340 (exit $ac_status); }; }; then
6341 ac_header_compiler=yes
6343 echo "$as_me: failed program was:" >&5
6344 sed 's/^/| /' conftest.$ac_ext >&5
6346 ac_header_compiler=no
6348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6349 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6350 echo "${ECHO_T}$ac_header_compiler" >&6
6352 # Is the header present?
6353 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
6354 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
6355 cat >conftest.$ac_ext <<_ACEOF
6358 cat confdefs.h >>conftest.$ac_ext
6359 cat >>conftest.$ac_ext <<_ACEOF
6360 /* end confdefs.h. */
6361 #include <${with_readline}/readline.h>
6363 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6364 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6366 grep -v '^ *+' conftest.er1 >conftest.err
6368 cat conftest.err >&5
6369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370 (exit $ac_status); } >/dev/null; then
6371 if test -s conftest.err; then
6372 ac_cpp_err=$ac_c_preproc_warn_flag
6373 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6380 if test -z "$ac_cpp_err"; then
6381 ac_header_preproc=yes
6383 echo "$as_me: failed program was:" >&5
6384 sed 's/^/| /' conftest.$ac_ext >&5
6386 ac_header_preproc=no
6388 rm -f conftest.err conftest.$ac_ext
6389 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6390 echo "${ECHO_T}$ac_header_preproc" >&6
6392 # So? What about this header?
6393 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6395 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6396 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6397 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
6398 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
6399 ac_header_preproc=yes
6402 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
6403 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
6404 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
6405 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
6406 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
6407 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
6408 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&5
6409 echo "$as_me: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
6410 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
6411 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
6412 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
6413 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
6416 ## ------------------------------------------ ##
6417 ## Report this to the AC_PACKAGE_NAME lists. ##
6418 ## ------------------------------------------ ##
6421 sed "s/^/$as_me: WARNING: /" >&2
6424 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
6425 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
6426 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6427 echo $ECHO_N "(cached) $ECHO_C" >&6
6429 eval "$as_ac_Header=\$ac_header_preproc"
6431 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6432 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6435 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6436 cat >>confdefs.h <<\_ACEOF
6437 #define HAVE_READLINE 1
6440 CONS_LIBS="-lreadline -ltermcap"
6445 echo "readline.h not found. readline turned off ..."
6457 # check for standard readline library
6458 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6459 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
6460 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
6461 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6462 echo $ECHO_N "(cached) $ECHO_C" >&6
6464 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
6465 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
6467 # Is the header compilable?
6468 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
6469 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
6470 cat >conftest.$ac_ext <<_ACEOF
6473 cat confdefs.h >>conftest.$ac_ext
6474 cat >>conftest.$ac_ext <<_ACEOF
6475 /* end confdefs.h. */
6476 $ac_includes_default
6477 #include </usr/include/readline/readline.h>
6479 rm -f conftest.$ac_objext
6480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6481 (eval $ac_compile) 2>conftest.er1
6483 grep -v '^ *+' conftest.er1 >conftest.err
6485 cat conftest.err >&5
6486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6487 (exit $ac_status); } &&
6488 { ac_try='test -z "$ac_c_werror_flag"
6489 || test ! -s conftest.err'
6490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6494 (exit $ac_status); }; } &&
6495 { ac_try='test -s conftest.$ac_objext'
6496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6500 (exit $ac_status); }; }; then
6501 ac_header_compiler=yes
6503 echo "$as_me: failed program was:" >&5
6504 sed 's/^/| /' conftest.$ac_ext >&5
6506 ac_header_compiler=no
6508 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6509 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6510 echo "${ECHO_T}$ac_header_compiler" >&6
6512 # Is the header present?
6513 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
6514 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
6515 cat >conftest.$ac_ext <<_ACEOF
6518 cat confdefs.h >>conftest.$ac_ext
6519 cat >>conftest.$ac_ext <<_ACEOF
6520 /* end confdefs.h. */
6521 #include </usr/include/readline/readline.h>
6523 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6524 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6526 grep -v '^ *+' conftest.er1 >conftest.err
6528 cat conftest.err >&5
6529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530 (exit $ac_status); } >/dev/null; then
6531 if test -s conftest.err; then
6532 ac_cpp_err=$ac_c_preproc_warn_flag
6533 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6540 if test -z "$ac_cpp_err"; then
6541 ac_header_preproc=yes
6543 echo "$as_me: failed program was:" >&5
6544 sed 's/^/| /' conftest.$ac_ext >&5
6546 ac_header_preproc=no
6548 rm -f conftest.err conftest.$ac_ext
6549 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6550 echo "${ECHO_T}$ac_header_preproc" >&6
6552 # So? What about this header?
6553 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6555 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6556 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6557 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
6558 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
6559 ac_header_preproc=yes
6562 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
6563 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
6564 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
6565 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
6566 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
6567 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
6568 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
6569 echo "$as_me: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
6570 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
6571 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6572 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
6573 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
6576 ## ------------------------------------------ ##
6577 ## Report this to the AC_PACKAGE_NAME lists. ##
6578 ## ------------------------------------------ ##
6581 sed "s/^/$as_me: WARNING: /" >&2
6584 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
6585 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
6586 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6587 echo $ECHO_N "(cached) $ECHO_C" >&6
6589 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
6591 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
6592 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
6595 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
6596 cat >>confdefs.h <<\_ACEOF
6597 #define HAVE_READLINE 1
6601 CONS_INC="-I/usr/include/readline"
6602 CONS_LIBS="-lreadline -ltermcap"
6606 # Did not find standard library, so try Bacula's default
6607 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
6608 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6609 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
6610 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
6611 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6612 echo $ECHO_N "(cached) $ECHO_C" >&6
6614 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6615 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6617 # Is the header compilable?
6618 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
6619 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
6620 cat >conftest.$ac_ext <<_ACEOF
6623 cat confdefs.h >>conftest.$ac_ext
6624 cat >>conftest.$ac_ext <<_ACEOF
6625 /* end confdefs.h. */
6626 $ac_includes_default
6627 #include <${TOP_DIR}/depkgs/readline/readline.h>
6629 rm -f conftest.$ac_objext
6630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6631 (eval $ac_compile) 2>conftest.er1
6633 grep -v '^ *+' conftest.er1 >conftest.err
6635 cat conftest.err >&5
6636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6637 (exit $ac_status); } &&
6638 { ac_try='test -z "$ac_c_werror_flag"
6639 || test ! -s conftest.err'
6640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6644 (exit $ac_status); }; } &&
6645 { ac_try='test -s conftest.$ac_objext'
6646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6650 (exit $ac_status); }; }; then
6651 ac_header_compiler=yes
6653 echo "$as_me: failed program was:" >&5
6654 sed 's/^/| /' conftest.$ac_ext >&5
6656 ac_header_compiler=no
6658 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6659 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6660 echo "${ECHO_T}$ac_header_compiler" >&6
6662 # Is the header present?
6663 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
6664 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
6665 cat >conftest.$ac_ext <<_ACEOF
6668 cat confdefs.h >>conftest.$ac_ext
6669 cat >>conftest.$ac_ext <<_ACEOF
6670 /* end confdefs.h. */
6671 #include <${TOP_DIR}/depkgs/readline/readline.h>
6673 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6674 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6676 grep -v '^ *+' conftest.er1 >conftest.err
6678 cat conftest.err >&5
6679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6680 (exit $ac_status); } >/dev/null; then
6681 if test -s conftest.err; then
6682 ac_cpp_err=$ac_c_preproc_warn_flag
6683 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6690 if test -z "$ac_cpp_err"; then
6691 ac_header_preproc=yes
6693 echo "$as_me: failed program was:" >&5
6694 sed 's/^/| /' conftest.$ac_ext >&5
6696 ac_header_preproc=no
6698 rm -f conftest.err conftest.$ac_ext
6699 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6700 echo "${ECHO_T}$ac_header_preproc" >&6
6702 # So? What about this header?
6703 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6705 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6706 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6707 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
6708 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
6709 ac_header_preproc=yes
6712 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
6713 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
6714 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
6715 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
6716 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
6717 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
6718 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
6719 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
6720 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
6721 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6722 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
6723 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
6726 ## ------------------------------------------ ##
6727 ## Report this to the AC_PACKAGE_NAME lists. ##
6728 ## ------------------------------------------ ##
6731 sed "s/^/$as_me: WARNING: /" >&2
6734 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
6735 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
6736 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6737 echo $ECHO_N "(cached) $ECHO_C" >&6
6739 eval "$as_ac_Header=\$ac_header_preproc"
6741 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6742 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6745 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6746 cat >>confdefs.h <<\_ACEOF
6747 #define HAVE_READLINE 1
6751 CONS_INC="-I${TOP_DIR}/depkgs/readline"
6752 CONS_LIBS="-lreadline -lhistory -ltermcap"
6753 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
6754 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
6758 echo "readline.h not found. readline turned off ..."
6784 # Minimal stuff for readline Makefile configuration
6787 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6788 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
6789 if test "${ac_cv_header_stat_broken+set}" = set; then
6790 echo $ECHO_N "(cached) $ECHO_C" >&6
6792 cat >conftest.$ac_ext <<_ACEOF
6795 cat confdefs.h >>conftest.$ac_ext
6796 cat >>conftest.$ac_ext <<_ACEOF
6797 /* end confdefs.h. */
6798 #include <sys/types.h>
6799 #include <sys/stat.h>
6801 #if defined(S_ISBLK) && defined(S_IFDIR)
6802 # if S_ISBLK (S_IFDIR)
6807 #if defined(S_ISBLK) && defined(S_IFCHR)
6808 # if S_ISBLK (S_IFCHR)
6813 #if defined(S_ISLNK) && defined(S_IFREG)
6814 # if S_ISLNK (S_IFREG)
6819 #if defined(S_ISSOCK) && defined(S_IFREG)
6820 # if S_ISSOCK (S_IFREG)
6826 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6827 $EGREP "You lose" >/dev/null 2>&1; then
6828 ac_cv_header_stat_broken=yes
6830 ac_cv_header_stat_broken=no
6835 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6836 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
6837 if test $ac_cv_header_stat_broken = yes; then
6839 cat >>confdefs.h <<\_ACEOF
6840 #define STAT_MACROS_BROKEN 1
6851 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6852 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6853 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6854 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6855 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6856 echo $ECHO_N "(cached) $ECHO_C" >&6
6858 cat >conftest.$ac_ext <<_ACEOF
6861 cat confdefs.h >>conftest.$ac_ext
6862 cat >>conftest.$ac_ext <<_ACEOF
6863 /* end confdefs.h. */
6864 #include <sys/types.h>
6876 rm -f conftest.$ac_objext
6877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6878 (eval $ac_compile) 2>conftest.er1
6880 grep -v '^ *+' conftest.er1 >conftest.err
6882 cat conftest.err >&5
6883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6884 (exit $ac_status); } &&
6885 { ac_try='test -z "$ac_c_werror_flag"
6886 || test ! -s conftest.err'
6887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6891 (exit $ac_status); }; } &&
6892 { ac_try='test -s conftest.$ac_objext'
6893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6897 (exit $ac_status); }; }; then
6898 eval "$as_ac_Header=yes"
6900 echo "$as_me: failed program was:" >&5
6901 sed 's/^/| /' conftest.$ac_ext >&5
6903 eval "$as_ac_Header=no"
6905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6907 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6908 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6909 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6910 cat >>confdefs.h <<_ACEOF
6911 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6914 ac_header_dirent=$ac_hdr; break
6918 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6919 if test $ac_header_dirent = dirent.h; then
6920 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6921 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6922 if test "${ac_cv_search_opendir+set}" = set; then
6923 echo $ECHO_N "(cached) $ECHO_C" >&6
6925 ac_func_search_save_LIBS=$LIBS
6926 ac_cv_search_opendir=no
6927 cat >conftest.$ac_ext <<_ACEOF
6930 cat confdefs.h >>conftest.$ac_ext
6931 cat >>conftest.$ac_ext <<_ACEOF
6932 /* end confdefs.h. */
6934 /* Override any gcc2 internal prototype to avoid an error. */
6938 /* We use char because int might match the return type of a gcc2
6939 builtin and then its argument prototype would still apply. */
6949 rm -f conftest.$ac_objext conftest$ac_exeext
6950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6951 (eval $ac_link) 2>conftest.er1
6953 grep -v '^ *+' conftest.er1 >conftest.err
6955 cat conftest.err >&5
6956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6957 (exit $ac_status); } &&
6958 { ac_try='test -z "$ac_c_werror_flag"
6959 || test ! -s conftest.err'
6960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6964 (exit $ac_status); }; } &&
6965 { ac_try='test -s conftest$ac_exeext'
6966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6970 (exit $ac_status); }; }; then
6971 ac_cv_search_opendir="none required"
6973 echo "$as_me: failed program was:" >&5
6974 sed 's/^/| /' conftest.$ac_ext >&5
6977 rm -f conftest.err conftest.$ac_objext \
6978 conftest$ac_exeext conftest.$ac_ext
6979 if test "$ac_cv_search_opendir" = no; then
6980 for ac_lib in dir; do
6981 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6982 cat >conftest.$ac_ext <<_ACEOF
6985 cat confdefs.h >>conftest.$ac_ext
6986 cat >>conftest.$ac_ext <<_ACEOF
6987 /* end confdefs.h. */
6989 /* Override any gcc2 internal prototype to avoid an error. */
6993 /* We use char because int might match the return type of a gcc2
6994 builtin and then its argument prototype would still apply. */
7004 rm -f conftest.$ac_objext conftest$ac_exeext
7005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7006 (eval $ac_link) 2>conftest.er1
7008 grep -v '^ *+' conftest.er1 >conftest.err
7010 cat conftest.err >&5
7011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7012 (exit $ac_status); } &&
7013 { ac_try='test -z "$ac_c_werror_flag"
7014 || test ! -s conftest.err'
7015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019 (exit $ac_status); }; } &&
7020 { ac_try='test -s conftest$ac_exeext'
7021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7025 (exit $ac_status); }; }; then
7026 ac_cv_search_opendir="-l$ac_lib"
7029 echo "$as_me: failed program was:" >&5
7030 sed 's/^/| /' conftest.$ac_ext >&5
7033 rm -f conftest.err conftest.$ac_objext \
7034 conftest$ac_exeext conftest.$ac_ext
7037 LIBS=$ac_func_search_save_LIBS
7039 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7040 echo "${ECHO_T}$ac_cv_search_opendir" >&6
7041 if test "$ac_cv_search_opendir" != no; then
7042 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
7047 echo "$as_me:$LINENO: checking for library containing opendir" >&5
7048 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
7049 if test "${ac_cv_search_opendir+set}" = set; then
7050 echo $ECHO_N "(cached) $ECHO_C" >&6
7052 ac_func_search_save_LIBS=$LIBS
7053 ac_cv_search_opendir=no
7054 cat >conftest.$ac_ext <<_ACEOF
7057 cat confdefs.h >>conftest.$ac_ext
7058 cat >>conftest.$ac_ext <<_ACEOF
7059 /* end confdefs.h. */
7061 /* Override any gcc2 internal prototype to avoid an error. */
7065 /* We use char because int might match the return type of a gcc2
7066 builtin and then its argument prototype would still apply. */
7076 rm -f conftest.$ac_objext conftest$ac_exeext
7077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7078 (eval $ac_link) 2>conftest.er1
7080 grep -v '^ *+' conftest.er1 >conftest.err
7082 cat conftest.err >&5
7083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084 (exit $ac_status); } &&
7085 { ac_try='test -z "$ac_c_werror_flag"
7086 || test ! -s conftest.err'
7087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7091 (exit $ac_status); }; } &&
7092 { ac_try='test -s conftest$ac_exeext'
7093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7097 (exit $ac_status); }; }; then
7098 ac_cv_search_opendir="none required"
7100 echo "$as_me: failed program was:" >&5
7101 sed 's/^/| /' conftest.$ac_ext >&5
7104 rm -f conftest.err conftest.$ac_objext \
7105 conftest$ac_exeext conftest.$ac_ext
7106 if test "$ac_cv_search_opendir" = no; then
7108 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7109 cat >conftest.$ac_ext <<_ACEOF
7112 cat confdefs.h >>conftest.$ac_ext
7113 cat >>conftest.$ac_ext <<_ACEOF
7114 /* end confdefs.h. */
7116 /* Override any gcc2 internal prototype to avoid an error. */
7120 /* We use char because int might match the return type of a gcc2
7121 builtin and then its argument prototype would still apply. */
7131 rm -f conftest.$ac_objext conftest$ac_exeext
7132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7133 (eval $ac_link) 2>conftest.er1
7135 grep -v '^ *+' conftest.er1 >conftest.err
7137 cat conftest.err >&5
7138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7139 (exit $ac_status); } &&
7140 { ac_try='test -z "$ac_c_werror_flag"
7141 || test ! -s conftest.err'
7142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7146 (exit $ac_status); }; } &&
7147 { ac_try='test -s conftest$ac_exeext'
7148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7152 (exit $ac_status); }; }; then
7153 ac_cv_search_opendir="-l$ac_lib"
7156 echo "$as_me: failed program was:" >&5
7157 sed 's/^/| /' conftest.$ac_ext >&5
7160 rm -f conftest.err conftest.$ac_objext \
7161 conftest$ac_exeext conftest.$ac_ext
7164 LIBS=$ac_func_search_save_LIBS
7166 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7167 echo "${ECHO_T}$ac_cv_search_opendir" >&6
7168 if test "$ac_cv_search_opendir" != no; then
7169 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
7183 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
7185 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7186 echo "$as_me:$LINENO: checking for $ac_func" >&5
7187 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7188 if eval "test \"\${$as_ac_var+set}\" = set"; then
7189 echo $ECHO_N "(cached) $ECHO_C" >&6
7191 cat >conftest.$ac_ext <<_ACEOF
7194 cat confdefs.h >>conftest.$ac_ext
7195 cat >>conftest.$ac_ext <<_ACEOF
7196 /* end confdefs.h. */
7197 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7198 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7199 #define $ac_func innocuous_$ac_func
7201 /* System header to define __stub macros and hopefully few prototypes,
7202 which can conflict with char $ac_func (); below.
7203 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7204 <limits.h> exists even on freestanding compilers. */
7207 # include <limits.h>
7209 # include <assert.h>
7214 /* Override any gcc2 internal prototype to avoid an error. */
7219 /* We use char because int might match the return type of a gcc2
7220 builtin and then its argument prototype would still apply. */
7222 /* The GNU C library defines this for functions which it implements
7223 to always fail with ENOSYS. Some functions are actually named
7224 something starting with __ and the normal name is an alias. */
7225 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7228 char (*f) () = $ac_func;
7237 return f != $ac_func;
7242 rm -f conftest.$ac_objext conftest$ac_exeext
7243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7244 (eval $ac_link) 2>conftest.er1
7246 grep -v '^ *+' conftest.er1 >conftest.err
7248 cat conftest.err >&5
7249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7250 (exit $ac_status); } &&
7251 { ac_try='test -z "$ac_c_werror_flag"
7252 || test ! -s conftest.err'
7253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7257 (exit $ac_status); }; } &&
7258 { ac_try='test -s conftest$ac_exeext'
7259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7263 (exit $ac_status); }; }; then
7264 eval "$as_ac_var=yes"
7266 echo "$as_me: failed program was:" >&5
7267 sed 's/^/| /' conftest.$ac_ext >&5
7269 eval "$as_ac_var=no"
7271 rm -f conftest.err conftest.$ac_objext \
7272 conftest$ac_exeext conftest.$ac_ext
7274 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7275 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7276 if test `eval echo '${'$as_ac_var'}'` = yes; then
7277 cat >>confdefs.h <<_ACEOF
7278 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7286 for ac_func in nanosleep nl_langinfo
7288 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7289 echo "$as_me:$LINENO: checking for $ac_func" >&5
7290 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7291 if eval "test \"\${$as_ac_var+set}\" = set"; then
7292 echo $ECHO_N "(cached) $ECHO_C" >&6
7294 cat >conftest.$ac_ext <<_ACEOF
7297 cat confdefs.h >>conftest.$ac_ext
7298 cat >>conftest.$ac_ext <<_ACEOF
7299 /* end confdefs.h. */
7300 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7301 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7302 #define $ac_func innocuous_$ac_func
7304 /* System header to define __stub macros and hopefully few prototypes,
7305 which can conflict with char $ac_func (); below.
7306 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7307 <limits.h> exists even on freestanding compilers. */
7310 # include <limits.h>
7312 # include <assert.h>
7317 /* Override any gcc2 internal prototype to avoid an error. */
7322 /* We use char because int might match the return type of a gcc2
7323 builtin and then its argument prototype would still apply. */
7325 /* The GNU C library defines this for functions which it implements
7326 to always fail with ENOSYS. Some functions are actually named
7327 something starting with __ and the normal name is an alias. */
7328 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7331 char (*f) () = $ac_func;
7340 return f != $ac_func;
7345 rm -f conftest.$ac_objext conftest$ac_exeext
7346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7347 (eval $ac_link) 2>conftest.er1
7349 grep -v '^ *+' conftest.er1 >conftest.err
7351 cat conftest.err >&5
7352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7353 (exit $ac_status); } &&
7354 { ac_try='test -z "$ac_c_werror_flag"
7355 || test ! -s conftest.err'
7356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7360 (exit $ac_status); }; } &&
7361 { ac_try='test -s conftest$ac_exeext'
7362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7366 (exit $ac_status); }; }; then
7367 eval "$as_ac_var=yes"
7369 echo "$as_me: failed program was:" >&5
7370 sed 's/^/| /' conftest.$ac_ext >&5
7372 eval "$as_ac_var=no"
7374 rm -f conftest.err conftest.$ac_objext \
7375 conftest$ac_exeext conftest.$ac_ext
7377 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7378 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7379 if test `eval echo '${'$as_ac_var'}'` = yes; then
7380 cat >>confdefs.h <<_ACEOF
7381 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7388 for ac_header in varargs.h
7390 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7391 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7392 echo "$as_me:$LINENO: checking for $ac_header" >&5
7393 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7394 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7395 echo $ECHO_N "(cached) $ECHO_C" >&6
7397 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7398 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7400 # Is the header compilable?
7401 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7402 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7403 cat >conftest.$ac_ext <<_ACEOF
7406 cat confdefs.h >>conftest.$ac_ext
7407 cat >>conftest.$ac_ext <<_ACEOF
7408 /* end confdefs.h. */
7409 $ac_includes_default
7410 #include <$ac_header>
7412 rm -f conftest.$ac_objext
7413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7414 (eval $ac_compile) 2>conftest.er1
7416 grep -v '^ *+' conftest.er1 >conftest.err
7418 cat conftest.err >&5
7419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7420 (exit $ac_status); } &&
7421 { ac_try='test -z "$ac_c_werror_flag"
7422 || test ! -s conftest.err'
7423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7427 (exit $ac_status); }; } &&
7428 { ac_try='test -s conftest.$ac_objext'
7429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7433 (exit $ac_status); }; }; then
7434 ac_header_compiler=yes
7436 echo "$as_me: failed program was:" >&5
7437 sed 's/^/| /' conftest.$ac_ext >&5
7439 ac_header_compiler=no
7441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7442 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7443 echo "${ECHO_T}$ac_header_compiler" >&6
7445 # Is the header present?
7446 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7447 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7448 cat >conftest.$ac_ext <<_ACEOF
7451 cat confdefs.h >>conftest.$ac_ext
7452 cat >>conftest.$ac_ext <<_ACEOF
7453 /* end confdefs.h. */
7454 #include <$ac_header>
7456 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7457 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7459 grep -v '^ *+' conftest.er1 >conftest.err
7461 cat conftest.err >&5
7462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7463 (exit $ac_status); } >/dev/null; then
7464 if test -s conftest.err; then
7465 ac_cpp_err=$ac_c_preproc_warn_flag
7466 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7473 if test -z "$ac_cpp_err"; then
7474 ac_header_preproc=yes
7476 echo "$as_me: failed program was:" >&5
7477 sed 's/^/| /' conftest.$ac_ext >&5
7479 ac_header_preproc=no
7481 rm -f conftest.err conftest.$ac_ext
7482 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7483 echo "${ECHO_T}$ac_header_preproc" >&6
7485 # So? What about this header?
7486 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7488 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7489 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7490 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7491 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7492 ac_header_preproc=yes
7495 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7496 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7497 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7498 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7499 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7500 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7501 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7502 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7503 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7504 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7505 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7506 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7509 ## ------------------------------------------ ##
7510 ## Report this to the AC_PACKAGE_NAME lists. ##
7511 ## ------------------------------------------ ##
7514 sed "s/^/$as_me: WARNING: /" >&2
7517 echo "$as_me:$LINENO: checking for $ac_header" >&5
7518 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7519 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7520 echo $ECHO_N "(cached) $ECHO_C" >&6
7522 eval "$as_ac_Header=\$ac_header_preproc"
7524 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7525 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7528 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7529 cat >>confdefs.h <<_ACEOF
7530 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7538 # End of readline/conio stuff
7539 # -----------------------------------------------------------------------
7541 # -----------------------------------------------------------------------
7542 # Check for Python support
7544 echo "$as_me:$LINENO: checking for Python support" >&5
7545 echo $ECHO_N "checking for Python support... $ECHO_C" >&6
7547 # Check whether --with-python or --without-python was given.
7548 if test "${with_python+set}" = set; then
7549 withval="$with_python"
7553 if test "$withval" != "no"; then
7554 if test "$withval" = "yes"; then
7555 if test -f /usr/include/python2.2/Python.h; then
7556 PYTHON_INCDIR=-I/usr/include/python2.2
7557 PYTHON_LIBS="-L/usr/lib/python2.2/config -lpython2.2 -lutil -ldl"
7558 elif test -f /usr/include/python2.3/Python.h; then
7559 PYTHON_INCDIR=-I/usr/include/python2.3
7560 PYTHON_LIBS="-L/usr/lib/python2.3/config -lpython2.3 -lutil -ldl"
7561 elif test -f /usr/include/python2.4/Python.h; then
7562 PYTHON_INCDIR=-I/usr/include/python2.4
7563 PYTHON_LIBS="-L/usr/lib/python2.4/config -lpython2.4 -lutil -ldl"
7564 elif test -f $prefix/include/Python.h; then
7565 PYTHON_INCDIR=-I$prefix/include
7566 PYTHON_LIBS="-L$prefix/lib/config -lpython -lutil -ldl"
7568 echo "$as_me:$LINENO: result: no" >&5
7569 echo "${ECHO_T}no" >&6
7570 { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
7571 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
7572 { (exit 1); exit 1; }; }
7575 if test -f $withval/Python.h; then
7576 PYTHON_INCDIR=-I$withval
7577 PYTHON_LIBS="-L$withval/config -lpython -lutil -ldl"
7578 elif test -f $withval/include/Python.h; then
7579 PYTHON_INCDIR=-I$withval/include
7580 PYTHON_LIBS="-L$withval/lib/config -lpython -lutil -ldl"
7582 echo "$as_me:$LINENO: result: no" >&5
7583 echo "${ECHO_T}no" >&6
7584 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
7585 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
7586 { (exit 1); exit 1; }; }
7589 cat >>confdefs.h <<\_ACEOF
7590 #define HAVE_PYTHON 1
7593 echo "$as_me:$LINENO: result: yes" >&5
7594 echo "${ECHO_T}yes" >&6
7598 echo "$as_me:$LINENO: result: no" >&5
7599 echo "${ECHO_T}no" >&6
7604 echo "$as_me:$LINENO: result: no" >&5
7605 echo "${ECHO_T}no" >&6
7613 # Find where sockets are (especially for Solaris)
7614 # Do this before the TCP Wrappers test since tcp wrappers
7615 # uses the socket library and some linkers are stupid.
7617 echo "$as_me:$LINENO: checking for socket" >&5
7618 echo $ECHO_N "checking for socket... $ECHO_C" >&6
7619 if test "${ac_cv_func_socket+set}" = set; then
7620 echo $ECHO_N "(cached) $ECHO_C" >&6
7622 cat >conftest.$ac_ext <<_ACEOF
7625 cat confdefs.h >>conftest.$ac_ext
7626 cat >>conftest.$ac_ext <<_ACEOF
7627 /* end confdefs.h. */
7628 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
7629 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7630 #define socket innocuous_socket
7632 /* System header to define __stub macros and hopefully few prototypes,
7633 which can conflict with char socket (); below.
7634 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7635 <limits.h> exists even on freestanding compilers. */
7638 # include <limits.h>
7640 # include <assert.h>
7645 /* Override any gcc2 internal prototype to avoid an error. */
7650 /* We use char because int might match the return type of a gcc2
7651 builtin and then its argument prototype would still apply. */
7653 /* The GNU C library defines this for functions which it implements
7654 to always fail with ENOSYS. Some functions are actually named
7655 something starting with __ and the normal name is an alias. */
7656 #if defined (__stub_socket) || defined (__stub___socket)
7659 char (*f) () = socket;
7673 rm -f conftest.$ac_objext conftest$ac_exeext
7674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7675 (eval $ac_link) 2>conftest.er1
7677 grep -v '^ *+' conftest.er1 >conftest.err
7679 cat conftest.err >&5
7680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7681 (exit $ac_status); } &&
7682 { ac_try='test -z "$ac_c_werror_flag"
7683 || test ! -s conftest.err'
7684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7688 (exit $ac_status); }; } &&
7689 { ac_try='test -s conftest$ac_exeext'
7690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7694 (exit $ac_status); }; }; then
7695 ac_cv_func_socket=yes
7697 echo "$as_me: failed program was:" >&5
7698 sed 's/^/| /' conftest.$ac_ext >&5
7700 ac_cv_func_socket=no
7702 rm -f conftest.err conftest.$ac_objext \
7703 conftest$ac_exeext conftest.$ac_ext
7705 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
7706 echo "${ECHO_T}$ac_cv_func_socket" >&6
7707 if test $ac_cv_func_socket = yes; then
7708 echo "$as_me:$LINENO: result: using libc's socket" >&5
7709 echo "${ECHO_T}using libc's socket" >&6
7712 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
7713 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
7714 if test "${ac_cv_lib_xnet_socket+set}" = set; then
7715 echo $ECHO_N "(cached) $ECHO_C" >&6
7717 ac_check_lib_save_LIBS=$LIBS
7719 cat >conftest.$ac_ext <<_ACEOF
7722 cat confdefs.h >>conftest.$ac_ext
7723 cat >>conftest.$ac_ext <<_ACEOF
7724 /* end confdefs.h. */
7726 /* Override any gcc2 internal prototype to avoid an error. */
7730 /* We use char because int might match the return type of a gcc2
7731 builtin and then its argument prototype would still apply. */
7741 rm -f conftest.$ac_objext conftest$ac_exeext
7742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7743 (eval $ac_link) 2>conftest.er1
7745 grep -v '^ *+' conftest.er1 >conftest.err
7747 cat conftest.err >&5
7748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7749 (exit $ac_status); } &&
7750 { ac_try='test -z "$ac_c_werror_flag"
7751 || test ! -s conftest.err'
7752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7756 (exit $ac_status); }; } &&
7757 { ac_try='test -s conftest$ac_exeext'
7758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7762 (exit $ac_status); }; }; then
7763 ac_cv_lib_xnet_socket=yes
7765 echo "$as_me: failed program was:" >&5
7766 sed 's/^/| /' conftest.$ac_ext >&5
7768 ac_cv_lib_xnet_socket=no
7770 rm -f conftest.err conftest.$ac_objext \
7771 conftest$ac_exeext conftest.$ac_ext
7772 LIBS=$ac_check_lib_save_LIBS
7774 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
7775 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
7776 if test $ac_cv_lib_xnet_socket = yes; then
7777 cat >>confdefs.h <<_ACEOF
7778 #define HAVE_LIBXNET 1
7786 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
7787 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
7788 if test "${ac_cv_lib_socket_socket+set}" = set; then
7789 echo $ECHO_N "(cached) $ECHO_C" >&6
7791 ac_check_lib_save_LIBS=$LIBS
7792 LIBS="-lsocket $LIBS"
7793 cat >conftest.$ac_ext <<_ACEOF
7796 cat confdefs.h >>conftest.$ac_ext
7797 cat >>conftest.$ac_ext <<_ACEOF
7798 /* end confdefs.h. */
7800 /* Override any gcc2 internal prototype to avoid an error. */
7804 /* We use char because int might match the return type of a gcc2
7805 builtin and then its argument prototype would still apply. */
7815 rm -f conftest.$ac_objext conftest$ac_exeext
7816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7817 (eval $ac_link) 2>conftest.er1
7819 grep -v '^ *+' conftest.er1 >conftest.err
7821 cat conftest.err >&5
7822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7823 (exit $ac_status); } &&
7824 { ac_try='test -z "$ac_c_werror_flag"
7825 || test ! -s conftest.err'
7826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7830 (exit $ac_status); }; } &&
7831 { ac_try='test -s conftest$ac_exeext'
7832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7836 (exit $ac_status); }; }; then
7837 ac_cv_lib_socket_socket=yes
7839 echo "$as_me: failed program was:" >&5
7840 sed 's/^/| /' conftest.$ac_ext >&5
7842 ac_cv_lib_socket_socket=no
7844 rm -f conftest.err conftest.$ac_objext \
7845 conftest$ac_exeext conftest.$ac_ext
7846 LIBS=$ac_check_lib_save_LIBS
7848 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
7849 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
7850 if test $ac_cv_lib_socket_socket = yes; then
7851 cat >>confdefs.h <<_ACEOF
7852 #define HAVE_LIBSOCKET 1
7855 LIBS="-lsocket $LIBS"
7860 echo "$as_me:$LINENO: checking for socket in -linet" >&5
7861 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
7862 if test "${ac_cv_lib_inet_socket+set}" = set; then
7863 echo $ECHO_N "(cached) $ECHO_C" >&6
7865 ac_check_lib_save_LIBS=$LIBS
7867 cat >conftest.$ac_ext <<_ACEOF
7870 cat confdefs.h >>conftest.$ac_ext
7871 cat >>conftest.$ac_ext <<_ACEOF
7872 /* end confdefs.h. */
7874 /* Override any gcc2 internal prototype to avoid an error. */
7878 /* We use char because int might match the return type of a gcc2
7879 builtin and then its argument prototype would still apply. */
7889 rm -f conftest.$ac_objext conftest$ac_exeext
7890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7891 (eval $ac_link) 2>conftest.er1
7893 grep -v '^ *+' conftest.er1 >conftest.err
7895 cat conftest.err >&5
7896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7897 (exit $ac_status); } &&
7898 { ac_try='test -z "$ac_c_werror_flag"
7899 || test ! -s conftest.err'
7900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904 (exit $ac_status); }; } &&
7905 { ac_try='test -s conftest$ac_exeext'
7906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7910 (exit $ac_status); }; }; then
7911 ac_cv_lib_inet_socket=yes
7913 echo "$as_me: failed program was:" >&5
7914 sed 's/^/| /' conftest.$ac_ext >&5
7916 ac_cv_lib_inet_socket=no
7918 rm -f conftest.err conftest.$ac_objext \
7919 conftest$ac_exeext conftest.$ac_ext
7920 LIBS=$ac_check_lib_save_LIBS
7922 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
7923 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
7924 if test $ac_cv_lib_inet_socket = yes; then
7925 cat >>confdefs.h <<_ACEOF
7926 #define HAVE_LIBINET 1
7937 # -----------------------------------------------------------
7938 # Check whether user wants TCP wrappers support (default off)
7939 # -----------------------------------------------------------
7942 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
7943 if test "${with_tcp_wrappers+set}" = set; then
7944 withval="$with_tcp_wrappers"
7946 if test "x$withval" != "xno" ; then
7948 LIBS="$saved_LIBS -lwrap"
7949 echo "$as_me:$LINENO: checking for libwrap" >&5
7950 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
7951 cat >conftest.$ac_ext <<_ACEOF
7954 cat confdefs.h >>conftest.$ac_ext
7955 cat >>conftest.$ac_ext <<_ACEOF
7956 /* end confdefs.h. */
7958 int deny_severity = 0;
7959 int allow_severity = 0;
7960 struct request_info *req;
7969 rm -f conftest.$ac_objext conftest$ac_exeext
7970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7971 (eval $ac_link) 2>conftest.er1
7973 grep -v '^ *+' conftest.er1 >conftest.err
7975 cat conftest.err >&5
7976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977 (exit $ac_status); } &&
7978 { ac_try='test -z "$ac_c_werror_flag"
7979 || test ! -s conftest.err'
7980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984 (exit $ac_status); }; } &&
7985 { ac_try='test -s conftest$ac_exeext'
7986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7990 (exit $ac_status); }; }; then
7992 echo "$as_me:$LINENO: result: yes" >&5
7993 echo "${ECHO_T}yes" >&6
7994 cat >>confdefs.h <<\_ACEOF
7995 #define HAVE_LIBWRAP 1
8001 echo "$as_me: failed program was:" >&5
8002 sed 's/^/| /' conftest.$ac_ext >&5
8005 LIBS="$saved_LIBS -lwrap -lnsl"
8006 cat >conftest.$ac_ext <<_ACEOF
8009 cat confdefs.h >>conftest.$ac_ext
8010 cat >>conftest.$ac_ext <<_ACEOF
8011 /* end confdefs.h. */
8013 int deny_severity = 0;
8014 int allow_severity = 0;
8015 struct request_info *req;
8024 rm -f conftest.$ac_objext conftest$ac_exeext
8025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8026 (eval $ac_link) 2>conftest.er1
8028 grep -v '^ *+' conftest.er1 >conftest.err
8030 cat conftest.err >&5
8031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8032 (exit $ac_status); } &&
8033 { ac_try='test -z "$ac_c_werror_flag"
8034 || test ! -s conftest.err'
8035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8039 (exit $ac_status); }; } &&
8040 { ac_try='test -s conftest$ac_exeext'
8041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045 (exit $ac_status); }; }; then
8047 echo "$as_me:$LINENO: result: yes" >&5
8048 echo "${ECHO_T}yes" >&6
8049 cat >>confdefs.h <<\_ACEOF
8050 #define HAVE_LIBWRAP 1
8056 echo "$as_me: failed program was:" >&5
8057 sed 's/^/| /' conftest.$ac_ext >&5
8059 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
8060 echo "$as_me: error: *** libwrap missing" >&2;}
8061 { (exit 1); exit 1; }; }
8064 rm -f conftest.err conftest.$ac_objext \
8065 conftest$ac_exeext conftest.$ac_ext
8068 rm -f conftest.err conftest.$ac_objext \
8069 conftest$ac_exeext conftest.$ac_ext
8075 # -----------------------------------------------------------
8076 # Check whether OpenSSL is available
8077 # -----------------------------------------------------------
8078 echo "$as_me:$LINENO: checking for OpenSSL" >&5
8079 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6
8081 # Check whether --with-openssl or --without-openssl was given.
8082 if test "${with_openssl+set}" = set; then
8083 withval="$with_openssl"
8084 with_openssl_directory=${withval}
8087 if test "x$with_openssl_directory" != "x"; then
8088 OPENSSL_LIBS="-lssl -lcrypto"
8091 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
8092 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
8093 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
8097 saved_CFLAGS="$CFLAGS"
8098 LIBS="$saved_LIBS $OPENSSL_LIBS"
8099 CFLAGS="$saved_CFLAGS $OPENSSL_INC"
8101 cat >conftest.$ac_ext <<_ACEOF
8104 cat confdefs.h >>conftest.$ac_ext
8105 cat >>conftest.$ac_ext <<_ACEOF
8106 /* end confdefs.h. */
8107 #include <openssl/ssl.h>
8111 CRYPTO_set_id_callback(NULL);
8116 rm -f conftest.$ac_objext conftest$ac_exeext
8117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8118 (eval $ac_link) 2>conftest.er1
8120 grep -v '^ *+' conftest.er1 >conftest.err
8122 cat conftest.err >&5
8123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8124 (exit $ac_status); } &&
8125 { ac_try='test -z "$ac_c_werror_flag"
8126 || test ! -s conftest.err'
8127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8131 (exit $ac_status); }; } &&
8132 { ac_try='test -s conftest$ac_exeext'
8133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8137 (exit $ac_status); }; }; then
8140 echo "$as_me: failed program was:" >&5
8141 sed 's/^/| /' conftest.$ac_ext >&5
8146 rm -f conftest.err conftest.$ac_objext \
8147 conftest$ac_exeext conftest.$ac_ext
8150 CFLAGS="$saved_CFLAGS"
8152 if test "$support_tls" = "yes"; then
8154 cat >>confdefs.h <<\_ACEOF
8155 #define HAVE_OPENSSL 1
8159 cat >>confdefs.h <<\_ACEOF
8170 echo "$as_me:$LINENO: result: $support_tls" >&5
8171 echo "${ECHO_T}$support_tls" >&6
8177 # ------------------------------------------
8178 # Where to place working dir
8179 # ------------------------------------------
8180 working_dir=`eval echo ${prefix}/var/bacula/working`
8182 # Check whether --with-working-dir or --without-working-dir was given.
8183 if test "${with_working_dir+set}" = set; then
8184 withval="$with_working_dir"
8186 if test "x$withval" != "xno" ; then
8187 working_dir=$withval
8196 # ------------------------------------------
8197 # Where to place scriptdir (script files)
8198 # ------------------------------------------
8199 scriptdir=`eval echo ${sysconfdir}`
8201 # Check whether --with-scriptdir or --without-scriptdir was given.
8202 if test "${with_scriptdir+set}" = set; then
8203 withval="$with_scriptdir"
8205 if test "x$withval" != "xno" ; then
8215 # ------------------------------------------
8216 # Where to send dump email
8217 # ------------------------------------------
8218 dump_email=root@localhost
8220 # Check whether --with-dump-email or --without-dump-email was given.
8221 if test "${with_dump_email+set}" = set; then
8222 withval="$with_dump_email"
8224 if test "x$withval" != "xno" ; then
8233 # ------------------------------------------
8234 # Where to send job email
8235 # ------------------------------------------
8236 job_email=root@localhost
8238 # Check whether --with-job-email or --without-job-email was given.
8239 if test "${with_job_email+set}" = set; then
8240 withval="$with_job_email"
8242 if test "x$withval" != "xno" ; then
8251 # ------------------------------------------
8252 # Where to find smtp host
8253 # ------------------------------------------
8256 # Check whether --with-smtp_host or --without-smtp_host was given.
8257 if test "${with_smtp_host+set}" = set; then
8258 withval="$with_smtp_host"
8260 if test "x$withval" != "xno" ; then
8270 # ------------------------------------
8271 # Where to place pid files
8272 # ------------------------------------
8275 # Check whether --with-pid-dir or --without-pid-dir was given.
8276 if test "${with_pid_dir+set}" = set; then
8277 withval="$with_pid_dir"
8279 if test "x$withval" != "xno" ; then
8286 cat >>confdefs.h <<_ACEOF
8287 #define _PATH_BACULA_PIDDIR "$piddir"
8293 # ------------------------------------
8294 # Where to place subsys "lock file"
8295 # ------------------------------------
8296 subsysdir=/var/run/subsys
8298 # Check whether --with-subsys-dir or --without-subsys-dir was given.
8299 if test "${with_subsys_dir+set}" = set; then
8300 withval="$with_subsys_dir"
8302 if test "x$withval" != "xno" ; then
8313 # ------------------------------------
8314 # Where to start assigning ports
8315 # ------------------------------------
8318 # Check whether --with-baseport or --without-baseport was given.
8319 if test "${with_baseport+set}" = set; then
8320 withval="$with_baseport"
8322 if test "x$withval" != "xno" ; then
8330 dir_port=`expr $baseport`
8331 fd_port=`expr $baseport + 1`
8332 sd_port=`expr $fd_port + 1`
8339 # ------------------------------------------
8340 # Generate passwords
8341 # ------------------------------------------
8344 # Check whether --with-dir-password or --without-dir-password was given.
8345 if test "${with_dir_password+set}" = set; then
8346 withval="$with_dir_password"
8348 if test "x$withval" != "xno" ; then
8349 dir_password=$withval
8355 if test "x$dir_password" = "x" ; then
8356 if test "x$OPENSSL" = "xnone" ; then
8357 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
8358 key=`autoconf/randpass 33`
8360 key=`openssl rand -base64 33`
8367 # Check whether --with-fd-password or --without-fd-password was given.
8368 if test "${with_fd_password+set}" = set; then
8369 withval="$with_fd_password"
8371 if test "x$withval" != "xno" ; then
8372 fd_password=$withval
8378 if test "x$fd_password" = "x" ; then
8379 if test "x$OPENSSL" = "xnone" ; then
8380 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
8381 key=`autoconf/randpass 37`
8383 key=`openssl rand -base64 33`
8390 # Check whether --with-sd-password or --without-sd-password was given.
8391 if test "${with_sd_password+set}" = set; then
8392 withval="$with_sd_password"
8394 if test "x$withval" != "xno" ; then
8395 sd_password=$withval
8401 if test "x$sd_password" = "x" ; then
8402 if test "x$OPENSSL" = "xnone" ; then
8403 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
8404 key=`autoconf/randpass 41`
8406 key=`openssl rand -base64 33`
8413 # Check whether --with-mon-dir-password or --without-mon-dir-password was given.
8414 if test "${with_mon_dir_password+set}" = set; then
8415 withval="$with_mon_dir_password"
8417 if test "x$withval" != "xno" ; then
8418 mon_dir_password=$withval
8424 if test "x$mon_dir_password" = "x" ; then
8425 if test "x$OPENSSL" = "xnone" ; then
8426 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
8427 key=`autoconf/randpass 33`
8429 key=`openssl rand -base64 33`
8431 mon_dir_password=$key
8436 # Check whether --with-mon-fd-password or --without-mon-fd-password was given.
8437 if test "${with_mon_fd_password+set}" = set; then
8438 withval="$with_mon_fd_password"
8440 if test "x$withval" != "xno" ; then
8441 mon_fd_password=$withval
8447 if test "x$mon_fd_password" = "x" ; then
8448 if test "x$OPENSSL" = "xnone" ; then
8449 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
8450 key=`autoconf/randpass 37`
8452 key=`openssl rand -base64 33`
8454 mon_fd_password=$key
8459 # Check whether --with-mon-sd-password or --without-mon-sd-password was given.
8460 if test "${with_mon_sd_password+set}" = set; then
8461 withval="$with_mon_sd_password"
8463 if test "x$withval" != "xno" ; then
8464 mon_sd_password=$withval
8470 if test "x$mon_sd_password" = "x" ; then
8471 if test "x$OPENSSL" = "xnone" ; then
8472 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
8473 key=`autoconf/randpass 41`
8475 key=`openssl rand -base64 33`
8477 mon_sd_password=$key
8487 # -------------------------------------------------------------------------
8488 # Set variables for bimagemgr installation
8489 # -------------------------------------------------------------------------
8490 bimagemgr_cgidir=/var/www/cgi-bin
8492 # Check whether --with-bimagemgr-cgidir or --without-bimagemgr-cgidir was given.
8493 if test "${with_bimagemgr_cgidir+set}" = set; then
8494 withval="$with_bimagemgr_cgidir"
8496 if test "x$withval" != "xno" ; then
8497 bimagemgr_cgidir=$withval
8503 bimagemgr_docdir=/var/www/html
8505 # Check whether --with-bimagemgr-docdir or --without-bimagemgr-docdir was given.
8506 if test "${with_bimagemgr_docdir+set}" = set; then
8507 withval="$with_bimagemgr_docdir"
8509 if test "x$withval" != "xno" ; then
8510 bimagemgr_docdir=$withval
8516 bimagemgr_binowner=root
8518 # Check whether --with-bimagemgr-binowner or --without-bimagemgr-binowner was given.
8519 if test "${with_bimagemgr_binowner+set}" = set; then
8520 withval="$with_bimagemgr_binowner"
8522 if test "x$withval" != "xno" ; then
8523 bimagemgr_binowner=$withval
8529 bimagemgr_bingroup=root
8531 # Check whether --with-bimagemgr-bingroup or --without-bimagemgr-bingroup was given.
8532 if test "${with_bimagemgr_bingroup+set}" = set; then
8533 withval="$with_bimagemgr_bingroup"
8535 if test "x$withval" != "xno" ; then
8536 bimagemgr_bingroup=$withval
8542 bimagemgr_dataowner=apache
8544 # Check whether --with-bimagemgr-dataowner or --without-bimagemgr-dataowner was given.
8545 if test "${with_bimagemgr_dataowner+set}" = set; then
8546 withval="$with_bimagemgr_dataowner"
8548 if test "x$withval" != "xno" ; then
8549 bimagemgr_dataowner=$withval
8555 bimagemgr_datagroup=apache
8557 # Check whether --with-bimagemgr-datagroup or --without-bimagemgr-datagroup was given.
8558 if test "${with_bimagemgr_datagroup+set}" = set; then
8559 withval="$with_bimagemgr_datagroup"
8561 if test "x$withval" != "xno" ; then
8562 bimagemgr_datagroup=$withval
8576 # Handle users and groups for each daemon
8580 # Check whether --with-dir_user or --without-dir_user was given.
8581 if test "${with_dir_user+set}" = set; then
8582 withval="$with_dir_user"
8584 if test "x$withval" != "x" ; then
8593 # Check whether --with-dir_group or --without-dir_group was given.
8594 if test "${with_dir_group+set}" = set; then
8595 withval="$with_dir_group"
8597 if test "x$withval" != "x" ; then
8606 # Check whether --with-sd_user or --without-sd_user was given.
8607 if test "${with_sd_user+set}" = set; then
8608 withval="$with_sd_user"
8610 if test "x$withval" != "x" ; then
8619 # Check whether --with-sd_group or --without-sd_group was given.
8620 if test "${with_sd_group+set}" = set; then
8621 withval="$with_sd_group"
8623 if test "x$withval" != "x" ; then
8632 # Check whether --with-fd_user or --without-fd_user was given.
8633 if test "${with_fd_user+set}" = set; then
8634 withval="$with_fd_user"
8636 if test "x$withval" != "x" ; then
8645 # Check whether --with-fd_group or --without-fd_group was given.
8646 if test "${with_fd_group+set}" = set; then
8647 withval="$with_fd_group"
8649 if test "x$withval" != "x" ; then
8667 # allow setting default executable permissions
8671 # Check whether --with-sbin-perm or --without-sbin-perm was given.
8672 if test "${with_sbin_perm+set}" = set; then
8673 withval="$with_sbin_perm"
8675 if test "x$withval" != "x" ; then
8684 # ------------------------------------------------
8685 # Bacula check for various SQL database engines
8686 # ------------------------------------------------
8689 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
8690 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
8692 # Check whether --with-postgresql or --without-postgresql was given.
8693 if test "${with_postgresql+set}" = set; then
8694 withval="$with_postgresql"
8696 if test "$withval" != "no"; then
8697 if test "$db_found" = "yes"; then
8698 echo "$as_me:$LINENO: result: error" >&5
8699 echo "${ECHO_T}error" >&6
8700 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
8701 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
8702 { (exit 1); exit 1; }; };
8704 if test "$withval" = "yes"; then
8705 if test -f /usr/local/include/libpq-fe.h; then
8706 POSTGRESQL_INCDIR=/usr/local/include
8707 POSTGRESQL_LIBDIR=/usr/local/lib
8708 POSTGRESQL_BINDIR=/usr/local/bin
8709 elif test -f /usr/include/libpq-fe.h; then
8710 POSTGRESQL_INCDIR=/usr/include
8711 POSTGRESQL_LIBDIR=/usr/lib
8712 POSTGRESQL_BINDIR=/usr/bin
8713 elif test -f /usr/include/pgsql/libpq-fe.h; then
8714 POSTGRESQL_INCDIR=/usr/include/pgsql
8715 POSTGRESQL_LIBDIR=/usr/lib/pgsql
8716 POSTGRESQL_BINDIR=/usr/bin
8717 elif test -f /usr/include/postgresql/libpq-fe.h; then
8718 POSTGRESQL_INCDIR=/usr/include/postgresql
8719 POSTGRESQL_LIBDIR=/usr/lib/postgresql
8720 POSTGRESQL_BINDIR=/usr/bin
8722 echo "$as_me:$LINENO: result: no" >&5
8723 echo "${ECHO_T}no" >&6
8724 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
8725 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
8726 { (exit 1); exit 1; }; }
8728 elif test -f $withval/include/libpq-fe.h; then
8729 POSTGRESQL_INCDIR=$withval/include
8730 POSTGRESQL_LIBDIR=$withval/lib
8731 POSTGRESQL_BINDIR=$withval/bin
8732 elif test -f $withval/include/postgresql/libpq-fe.h; then
8733 POSTGRESQL_INCDIR=$withval/include/postgresql
8734 POSTGRESQL_LIBDIR=$withval/lib
8735 POSTGRESQL_BINDIR=$withval/bin
8737 echo "$as_me:$LINENO: result: no" >&5
8738 echo "${ECHO_T}no" >&6
8739 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
8740 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
8741 { (exit 1); exit 1; }; }
8743 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
8744 echo "$as_me:$LINENO: checking for crypt" >&5
8745 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
8746 if test "${ac_cv_func_crypt+set}" = set; then
8747 echo $ECHO_N "(cached) $ECHO_C" >&6
8749 cat >conftest.$ac_ext <<_ACEOF
8752 cat confdefs.h >>conftest.$ac_ext
8753 cat >>conftest.$ac_ext <<_ACEOF
8754 /* end confdefs.h. */
8755 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
8756 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8757 #define crypt innocuous_crypt
8759 /* System header to define __stub macros and hopefully few prototypes,
8760 which can conflict with char crypt (); below.
8761 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8762 <limits.h> exists even on freestanding compilers. */
8765 # include <limits.h>
8767 # include <assert.h>
8772 /* Override any gcc2 internal prototype to avoid an error. */
8777 /* We use char because int might match the return type of a gcc2
8778 builtin and then its argument prototype would still apply. */
8780 /* The GNU C library defines this for functions which it implements
8781 to always fail with ENOSYS. Some functions are actually named
8782 something starting with __ and the normal name is an alias. */
8783 #if defined (__stub_crypt) || defined (__stub___crypt)
8786 char (*f) () = crypt;
8800 rm -f conftest.$ac_objext conftest$ac_exeext
8801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8802 (eval $ac_link) 2>conftest.er1
8804 grep -v '^ *+' conftest.er1 >conftest.err
8806 cat conftest.err >&5
8807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808 (exit $ac_status); } &&
8809 { ac_try='test -z "$ac_c_werror_flag"
8810 || test ! -s conftest.err'
8811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8815 (exit $ac_status); }; } &&
8816 { ac_try='test -s conftest$ac_exeext'
8817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8821 (exit $ac_status); }; }; then
8822 ac_cv_func_crypt=yes
8824 echo "$as_me: failed program was:" >&5
8825 sed 's/^/| /' conftest.$ac_ext >&5
8829 rm -f conftest.err conftest.$ac_objext \
8830 conftest$ac_exeext conftest.$ac_ext
8832 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
8833 echo "${ECHO_T}$ac_cv_func_crypt" >&6
8834 if test $ac_cv_func_crypt = yes; then
8837 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
8838 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
8839 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
8840 echo $ECHO_N "(cached) $ECHO_C" >&6
8842 ac_check_lib_save_LIBS=$LIBS
8843 LIBS="-lcrypt $LIBS"
8844 cat >conftest.$ac_ext <<_ACEOF
8847 cat confdefs.h >>conftest.$ac_ext
8848 cat >>conftest.$ac_ext <<_ACEOF
8849 /* end confdefs.h. */
8851 /* Override any gcc2 internal prototype to avoid an error. */
8855 /* We use char because int might match the return type of a gcc2
8856 builtin and then its argument prototype would still apply. */
8866 rm -f conftest.$ac_objext conftest$ac_exeext
8867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8868 (eval $ac_link) 2>conftest.er1
8870 grep -v '^ *+' conftest.er1 >conftest.err
8872 cat conftest.err >&5
8873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874 (exit $ac_status); } &&
8875 { ac_try='test -z "$ac_c_werror_flag"
8876 || test ! -s conftest.err'
8877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8881 (exit $ac_status); }; } &&
8882 { ac_try='test -s conftest$ac_exeext'
8883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8887 (exit $ac_status); }; }; then
8888 ac_cv_lib_crypt_crypt=yes
8890 echo "$as_me: failed program was:" >&5
8891 sed 's/^/| /' conftest.$ac_ext >&5
8893 ac_cv_lib_crypt_crypt=no
8895 rm -f conftest.err conftest.$ac_objext \
8896 conftest$ac_exeext conftest.$ac_ext
8897 LIBS=$ac_check_lib_save_LIBS
8899 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
8900 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
8901 if test $ac_cv_lib_crypt_crypt = yes; then
8902 POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
8907 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
8908 SQL_LFLAGS=$POSTGRESQL_LFLAGS
8909 SQL_BINDIR=$POSTGRESQL_BINDIR
8910 cat >>confdefs.h <<\_ACEOF
8911 #define HAVE_POSTGRESQL 1
8914 echo "$as_me:$LINENO: result: yes" >&5
8915 echo "${ECHO_T}yes" >&6
8917 support_postgresql=yes
8921 echo "$as_me:$LINENO: result: no" >&5
8922 echo "${ECHO_T}no" >&6
8927 echo "$as_me:$LINENO: result: no" >&5
8928 echo "${ECHO_T}no" >&6
8939 echo "$as_me:$LINENO: checking for MySQL support" >&5
8940 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
8942 # Check whether --with-mysql or --without-mysql was given.
8943 if test "${with_mysql+set}" = set; then
8944 withval="$with_mysql"
8946 if test "$withval" != "no"; then
8947 if test "$withval" = "yes"; then
8948 if test -f /usr/local/mysql/include/mysql/mysql.h; then
8949 MYSQL_INCDIR=/usr/local/mysql/include/mysql
8950 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
8951 MYSQL_BINDIR=/usr/local/mysql/bin
8952 elif test -f /usr/include/mysql/mysql.h; then
8953 MYSQL_INCDIR=/usr/include/mysql
8954 MYSQL_LIBDIR=/usr/lib/mysql
8955 MYSQL_BINDIR=/usr/bin
8956 elif test -f /usr/include/mysql.h; then
8957 MYSQL_INCDIR=/usr/include
8958 MYSQL_LIBDIR=/usr/lib
8959 MYSQL_BINDIR=/usr/bin
8960 elif test -f /usr/local/include/mysql/mysql.h; then
8961 MYSQL_INCDIR=/usr/local/include/mysql
8962 MYSQL_LIBDIR=/usr/local/lib/mysql
8963 MYSQL_BINDIR=/usr/local/bin
8964 elif test -f /usr/local/include/mysql.h; then
8965 MYSQL_INCDIR=/usr/local/include
8966 MYSQL_LIBDIR=/usr/local/lib
8967 MYSQL_BINDIR=/usr/local/bin
8969 echo "$as_me:$LINENO: result: no" >&5
8970 echo "${ECHO_T}no" >&6
8971 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
8972 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
8973 { (exit 1); exit 1; }; }
8976 if test -f $withval/include/mysql/mysql.h; then
8977 MYSQL_INCDIR=$withval/include/mysql
8978 MYSQL_LIBDIR=$withval/lib/mysql
8979 MYSQL_BINDIR=$withval/bin
8980 elif test -f $withval/include/mysql.h; then
8981 MYSQL_INCDIR=$withval/include
8982 MYSQL_LIBDIR=$withval/lib
8983 MYSQL_BINDIR=$withval/bin
8985 echo "$as_me:$LINENO: result: no" >&5
8986 echo "${ECHO_T}no" >&6
8987 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
8988 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
8989 { (exit 1); exit 1; }; }
8992 SQL_INCLUDE=-I$MYSQL_INCDIR
8993 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
8994 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
8995 cat >>confdefs.h <<\_ACEOF
8996 #define HAVE_THREAD_SAFE_MYSQL 1
9000 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
9002 SQL_BINDIR=$MYSQL_BINDIR
9004 cat >>confdefs.h <<\_ACEOF
9005 #define HAVE_MYSQL 1
9008 echo "$as_me:$LINENO: result: yes" >&5
9009 echo "${ECHO_T}yes" >&6
9016 echo "$as_me:$LINENO: result: no" >&5
9017 echo "${ECHO_T}no" >&6
9024 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
9025 if test "${with_embedded_mysql+set}" = set; then
9026 withval="$with_embedded_mysql"
9028 if test "$withval" != "no"; then
9029 if test "$withval" = "yes"; then
9030 if test -f /usr/local/mysql/include/mysql/mysql.h; then
9031 MYSQL_INCDIR=/usr/local/mysql/include/mysql
9032 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
9033 MYSQL_BINDIR=/usr/local/mysql/bin
9034 elif test -f /usr/include/mysql/mysql.h; then
9035 MYSQL_INCDIR=/usr/include/mysql
9036 MYSQL_LIBDIR=/usr/lib/mysql
9037 MYSQL_BINDIR=/usr/bin
9038 elif test -f /usr/include/mysql.h; then
9039 MYSQL_INCDIR=/usr/include
9040 MYSQL_LIBDIR=/usr/lib
9041 MYSQL_BINDIR=/usr/bin
9042 elif test -f /usr/local/include/mysql/mysql.h; then
9043 MYSQL_INCDIR=/usr/local/include/mysql
9044 MYSQL_LIBDIR=/usr/local/lib/mysql
9045 MYSQL_BINDIR=/usr/local/bin
9046 elif test -f /usr/local/include/mysql.h; then
9047 MYSQL_INCDIR=/usr/local/include
9048 MYSQL_LIBDIR=/usr/local/lib
9049 MYSQL_BINDIR=/usr/local/bin
9051 echo "$as_me:$LINENO: result: no" >&5
9052 echo "${ECHO_T}no" >&6
9053 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
9054 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
9055 { (exit 1); exit 1; }; }
9058 if test -f $withval/include/mysql/mysql.h; then
9059 MYSQL_INCDIR=$withval/include/mysql
9060 MYSQL_LIBDIR=$withval/lib/mysql
9061 MYSQL_BINDIR=$withval/bin
9062 elif test -f $withval/include/mysql.h; then
9063 MYSQL_INCDIR=$withval/include
9064 MYSQL_LIBDIR=$withval/lib
9065 MYSQL_BINDIR=$withval/bin
9067 echo "$as_me:$LINENO: result: no" >&5
9068 echo "${ECHO_T}no" >&6
9069 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
9070 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
9071 { (exit 1); exit 1; }; }
9074 SQL_INCLUDE=-I$MYSQL_INCDIR
9075 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
9076 SQL_BINDIR=$MYSQL_BINDIR
9078 cat >>confdefs.h <<\_ACEOF
9079 #define HAVE_MYSQL 1
9082 cat >>confdefs.h <<\_ACEOF
9083 #define HAVE_EMBEDDED_MYSQL 1
9086 echo "$as_me:$LINENO: result: yes" >&5
9087 echo "${ECHO_T}yes" >&6
9094 echo "$as_me:$LINENO: result: no" >&5
9095 echo "${ECHO_T}no" >&6
9110 echo "$as_me:$LINENO: checking for SQLite3 support" >&5
9111 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6
9113 # Check whether --with-sqlite3 or --without-sqlite3 was given.
9114 if test "${with_sqlite3+set}" = set; then
9115 withval="$with_sqlite3"
9117 if test "$withval" != "no"; then
9118 if test "$withval" = "yes"; then
9119 if test -f /usr/local/include/sqlite3.h; then
9120 SQLITE_INCDIR=/usr/local/include
9121 SQLITE_LIBDIR=/usr/local/lib
9122 SQLITE_BINDIR=/usr/local/bin
9123 elif test -f /usr/include/sqlite3.h; then
9124 SQLITE_INCDIR=/usr/include
9125 SQLITE_LIBDIR=/usr/lib
9126 SQLITE_BINDIR=/usr/bin
9127 elif test -f $prefix/include/sqlite3.h; then
9128 SQLITE_INCDIR=$prefix/include
9129 SQLITE_LIBDIR=$prefix/lib
9130 SQLITE_BINDIR=$prefix/bin
9132 echo "$as_me:$LINENO: result: no" >&5
9133 echo "${ECHO_T}no" >&6
9134 { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
9135 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
9136 { (exit 1); exit 1; }; }
9139 if test -f $withval/sqlite3.h; then
9140 SQLITE_INCDIR=$withval
9141 SQLITE_LIBDIR=$withval
9142 SQLITE_BINDIR=$withval
9143 elif test -f $withval/include/sqlite3.h; then
9144 SQLITE_INCDIR=$withval/include
9145 SQLITE_LIBDIR=$withval/lib
9146 SQLITE_BINDIR=$withval/bin
9148 echo "$as_me:$LINENO: result: no" >&5
9149 echo "${ECHO_T}no" >&6
9150 { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
9151 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
9152 { (exit 1); exit 1; }; }
9155 SQL_INCLUDE=-I$SQLITE_INCDIR
9156 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
9157 SQL_BINDIR=$SQLITE_BINDIR
9159 cat >>confdefs.h <<\_ACEOF
9160 #define HAVE_SQLITE3 1
9163 echo "$as_me:$LINENO: result: yes" >&5
9164 echo "${ECHO_T}yes" >&6
9171 echo "$as_me:$LINENO: result: no" >&5
9172 echo "${ECHO_T}no" >&6
9177 echo "$as_me:$LINENO: result: no" >&5
9178 echo "${ECHO_T}no" >&6
9189 echo "$as_me:$LINENO: checking for SQLite support" >&5
9190 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
9192 # Check whether --with-sqlite or --without-sqlite was given.
9193 if test "${with_sqlite+set}" = set; then
9194 withval="$with_sqlite"
9196 if test "$withval" != "no"; then
9197 if test "$withval" = "yes"; then
9198 if test -f /usr/local/include/sqlite.h; then
9199 SQLITE_INCDIR=/usr/local/include
9200 SQLITE_LIBDIR=/usr/local/lib
9201 SQLITE_BINDIR=/usr/local/bin
9202 elif test -f /usr/include/sqlite.h; then
9203 SQLITE_INCDIR=/usr/include
9204 SQLITE_LIBDIR=/usr/lib
9205 SQLITE_BINDIR=/usr/bin
9206 elif test -f $prefix/include/sqlite.h; then
9207 SQLITE_INCDIR=$prefix/include
9208 SQLITE_LIBDIR=$prefix/lib
9209 SQLITE_BINDIR=$prefix/bin
9211 echo "$as_me:$LINENO: result: no" >&5
9212 echo "${ECHO_T}no" >&6
9213 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
9214 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
9215 { (exit 1); exit 1; }; }
9218 if test -f $withval/sqlite.h; then
9219 SQLITE_INCDIR=$withval
9220 SQLITE_LIBDIR=$withval
9221 SQLITE_BINDIR=$withval
9222 elif test -f $withval/include/sqlite.h; then
9223 SQLITE_INCDIR=$withval/include
9224 SQLITE_LIBDIR=$withval/lib
9225 SQLITE_BINDIR=$withval/bin
9227 echo "$as_me:$LINENO: result: no" >&5
9228 echo "${ECHO_T}no" >&6
9229 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
9230 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
9231 { (exit 1); exit 1; }; }
9234 SQL_INCLUDE=-I$SQLITE_INCDIR
9235 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
9236 SQL_BINDIR=$SQLITE_BINDIR
9238 cat >>confdefs.h <<\_ACEOF
9239 #define HAVE_SQLITE 1
9242 echo "$as_me:$LINENO: result: yes" >&5
9243 echo "${ECHO_T}yes" >&6
9250 echo "$as_me:$LINENO: result: no" >&5
9251 echo "${ECHO_T}no" >&6
9256 echo "$as_me:$LINENO: result: no" >&5
9257 echo "${ECHO_T}no" >&6
9269 cat >>confdefs.h <<\_ACEOF
9270 #define PROTOTYPES 1
9274 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
9275 if test -z "$CCOPTS"; then
9276 CCOPTS='-g -O2 -Wall'
9284 largefile_support="no"
9286 # Check whether --enable-largefile or --disable-largefile was given.
9287 if test "${enable_largefile+set}" = set; then
9288 enableval="$enable_largefile"
9291 if test "$enable_largefile" != no; then
9292 if test -n "$ac_tool_prefix"; then
9293 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
9294 set dummy ${ac_tool_prefix}getconf; ac_word=$2
9295 echo "$as_me:$LINENO: checking for $ac_word" >&5
9296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9297 if test "${ac_cv_prog_GETCONF+set}" = set; then
9298 echo $ECHO_N "(cached) $ECHO_C" >&6
9300 if test -n "$GETCONF"; then
9301 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
9303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9307 test -z "$as_dir" && as_dir=.
9308 for ac_exec_ext in '' $ac_executable_extensions; do
9309 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9310 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
9311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9319 GETCONF=$ac_cv_prog_GETCONF
9320 if test -n "$GETCONF"; then
9321 echo "$as_me:$LINENO: result: $GETCONF" >&5
9322 echo "${ECHO_T}$GETCONF" >&6
9324 echo "$as_me:$LINENO: result: no" >&5
9325 echo "${ECHO_T}no" >&6
9329 if test -z "$ac_cv_prog_GETCONF"; then
9330 ac_ct_GETCONF=$GETCONF
9331 # Extract the first word of "getconf", so it can be a program name with args.
9332 set dummy getconf; ac_word=$2
9333 echo "$as_me:$LINENO: checking for $ac_word" >&5
9334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9335 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
9336 echo $ECHO_N "(cached) $ECHO_C" >&6
9338 if test -n "$ac_ct_GETCONF"; then
9339 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
9341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9345 test -z "$as_dir" && as_dir=.
9346 for ac_exec_ext in '' $ac_executable_extensions; do
9347 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9348 ac_cv_prog_ac_ct_GETCONF="getconf"
9349 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9357 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
9358 if test -n "$ac_ct_GETCONF"; then
9359 echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
9360 echo "${ECHO_T}$ac_ct_GETCONF" >&6
9362 echo "$as_me:$LINENO: result: no" >&5
9363 echo "${ECHO_T}no" >&6
9366 GETCONF=$ac_ct_GETCONF
9368 GETCONF="$ac_cv_prog_GETCONF"
9371 echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
9372 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
9373 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
9374 echo $ECHO_N "(cached) $ECHO_C" >&6
9376 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
9377 ac_cv_sys_largefile_CFLAGS=no
9379 # IRIX 6.2 and later require cc -n32.
9380 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
9381 if test "$GCC" != yes; then
9382 ac_cv_sys_largefile_CFLAGS=-n32
9385 CC="$CC $ac_cv_sys_largefile_CFLAGS"
9386 cat >conftest.$ac_ext <<_ACEOF
9389 cat confdefs.h >>conftest.$ac_ext
9390 cat >>conftest.$ac_ext <<_ACEOF
9391 /* end confdefs.h. */
9401 rm -f conftest.$ac_objext conftest$ac_exeext
9402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9403 (eval $ac_link) 2>conftest.er1
9405 grep -v '^ *+' conftest.er1 >conftest.err
9407 cat conftest.err >&5
9408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9409 (exit $ac_status); } &&
9410 { ac_try='test -z "$ac_c_werror_flag"
9411 || test ! -s conftest.err'
9412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9416 (exit $ac_status); }; } &&
9417 { ac_try='test -s conftest$ac_exeext'
9418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9422 (exit $ac_status); }; }; then
9425 echo "$as_me: failed program was:" >&5
9426 sed 's/^/| /' conftest.$ac_ext >&5
9428 ac_cv_sys_largefile_CFLAGS=no
9430 rm -f conftest.err conftest.$ac_objext \
9431 conftest$ac_exeext conftest.$ac_ext
9436 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
9437 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
9438 echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
9439 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
9440 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
9441 echo $ECHO_N "(cached) $ECHO_C" >&6
9443 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
9444 ac_cv_sys_largefile_LDFLAGS=no
9448 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
9449 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
9450 echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
9451 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
9452 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
9453 echo $ECHO_N "(cached) $ECHO_C" >&6
9455 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
9456 ac_cv_sys_largefile_LIBS=no
9460 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
9461 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
9463 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9466 -D_FILE_OFFSET_BITS=*) ;;
9467 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
9468 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
9474 '') CPPFLAGS="$ac_flag" ;;
9475 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
9483 '') CFLAGS="$ac_flag" ;;
9484 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
9489 case "$ac_cv_sys_largefile_LDFLAGS" in
9493 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
9494 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
9497 case "$ac_cv_sys_largefile_LIBS" in
9501 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
9502 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
9505 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
9506 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
9507 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
9508 echo $ECHO_N "(cached) $ECHO_C" >&6
9510 ac_cv_sys_file_offset_bits=no
9511 ac_cv_sys_file_offset_bits=64
9512 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9514 -D_FILE_OFFSET_BITS)
9515 ac_cv_sys_file_offset_bits=1 ;;
9516 -D_FILE_OFFSET_BITS=*)
9517 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9522 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
9523 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
9524 if test "$ac_cv_sys_file_offset_bits" != no; then
9526 cat >>confdefs.h <<_ACEOF
9527 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9531 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
9532 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
9533 if test "${ac_cv_sys_largefile_source+set}" = set; then
9534 echo $ECHO_N "(cached) $ECHO_C" >&6
9536 ac_cv_sys_largefile_source=no
9537 ac_cv_sys_largefile_source=1
9538 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9540 -D_LARGEFILE_SOURCE)
9541 ac_cv_sys_largefile_source=1 ;;
9542 -D_LARGEFILE_SOURCE=*)
9543 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9548 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
9549 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
9550 if test "$ac_cv_sys_largefile_source" != no; then
9552 cat >>confdefs.h <<_ACEOF
9553 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9557 echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
9558 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
9559 if test "${ac_cv_sys_large_files+set}" = set; then
9560 echo $ECHO_N "(cached) $ECHO_C" >&6
9562 ac_cv_sys_large_files=no
9563 ac_cv_sys_large_files=1
9564 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9567 ac_cv_sys_large_files=1 ;;
9569 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9574 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
9575 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
9576 if test "$ac_cv_sys_large_files" != no; then
9578 cat >>confdefs.h <<_ACEOF
9579 #define _LARGE_FILES $ac_cv_sys_large_files
9587 echo "$as_me:$LINENO: checking for X" >&5
9588 echo $ECHO_N "checking for X... $ECHO_C" >&6
9591 # Check whether --with-x or --without-x was given.
9592 if test "${with_x+set}" = set; then
9596 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9597 if test "x$with_x" = xno; then
9598 # The user explicitly disabled X.
9601 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
9602 # Both variables are already set.
9605 if test "${ac_cv_have_x+set}" = set; then
9606 echo $ECHO_N "(cached) $ECHO_C" >&6
9608 # One or both of the vars are not set, and there is no cached value.
9609 ac_x_includes=no ac_x_libraries=no
9611 if mkdir conftest.dir; then
9613 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
9614 cat >Imakefile <<'_ACEOF'
9616 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9618 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9619 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9620 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9621 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9622 for ac_extension in a so sl; do
9623 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
9624 test -f $ac_im_libdir/libX11.$ac_extension; then
9625 ac_im_usrlibdir=$ac_im_libdir; break
9628 # Screen out bogus values from the imake configuration. They are
9629 # bogus both because they are the default anyway, and because
9630 # using them would break gcc on systems where it needs fixed includes.
9631 case $ac_im_incroot in
9633 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9635 case $ac_im_usrlibdir in
9637 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9644 # Standard set of common directories for X headers.
9645 # Check X11 before X11Rn because it is often a symlink to the current release.
9657 /usr/local/X11/include
9658 /usr/local/X11R6/include
9659 /usr/local/X11R5/include
9660 /usr/local/X11R4/include
9662 /usr/local/include/X11
9663 /usr/local/include/X11R6
9664 /usr/local/include/X11R5
9665 /usr/local/include/X11R4
9669 /usr/XFree86/include/X11
9673 /usr/unsupported/include
9675 /usr/local/x11r5/include
9676 /usr/lpp/Xamples/include
9678 /usr/openwin/include
9679 /usr/openwin/share/include'
9681 if test "$ac_x_includes" = no; then
9682 # Guess where to find include files, by looking for Intrinsic.h.
9683 # First, try using that file with no special directory specified.
9684 cat >conftest.$ac_ext <<_ACEOF
9687 cat confdefs.h >>conftest.$ac_ext
9688 cat >>conftest.$ac_ext <<_ACEOF
9689 /* end confdefs.h. */
9690 #include <X11/Intrinsic.h>
9692 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9693 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9695 grep -v '^ *+' conftest.er1 >conftest.err
9697 cat conftest.err >&5
9698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9699 (exit $ac_status); } >/dev/null; then
9700 if test -s conftest.err; then
9701 ac_cpp_err=$ac_c_preproc_warn_flag
9702 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9709 if test -z "$ac_cpp_err"; then
9710 # We can compile using X headers with no special include directory.
9713 echo "$as_me: failed program was:" >&5
9714 sed 's/^/| /' conftest.$ac_ext >&5
9716 for ac_dir in $ac_x_header_dirs; do
9717 if test -r "$ac_dir/X11/Intrinsic.h"; then
9718 ac_x_includes=$ac_dir
9723 rm -f conftest.err conftest.$ac_ext
9724 fi # $ac_x_includes = no
9726 if test "$ac_x_libraries" = no; then
9727 # Check for the libraries.
9728 # See if we find them without any special options.
9729 # Don't add to $LIBS permanently.
9732 cat >conftest.$ac_ext <<_ACEOF
9735 cat confdefs.h >>conftest.$ac_ext
9736 cat >>conftest.$ac_ext <<_ACEOF
9737 /* end confdefs.h. */
9738 #include <X11/Intrinsic.h>
9747 rm -f conftest.$ac_objext conftest$ac_exeext
9748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9749 (eval $ac_link) 2>conftest.er1
9751 grep -v '^ *+' conftest.er1 >conftest.err
9753 cat conftest.err >&5
9754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755 (exit $ac_status); } &&
9756 { ac_try='test -z "$ac_c_werror_flag"
9757 || test ! -s conftest.err'
9758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762 (exit $ac_status); }; } &&
9763 { ac_try='test -s conftest$ac_exeext'
9764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9768 (exit $ac_status); }; }; then
9770 # We can link X programs with no special library path.
9773 echo "$as_me: failed program was:" >&5
9774 sed 's/^/| /' conftest.$ac_ext >&5
9777 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9779 # Don't even attempt the hair of trying to link an X program!
9780 for ac_extension in a so sl; do
9781 if test -r $ac_dir/libXt.$ac_extension; then
9782 ac_x_libraries=$ac_dir
9788 rm -f conftest.err conftest.$ac_objext \
9789 conftest$ac_exeext conftest.$ac_ext
9790 fi # $ac_x_libraries = no
9792 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
9793 # Didn't find X anywhere. Cache the known absence of X.
9794 ac_cv_have_x="have_x=no"
9796 # Record where we found X for the cache.
9797 ac_cv_have_x="have_x=yes \
9798 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9803 eval "$ac_cv_have_x"
9806 if test "$have_x" != yes; then
9807 echo "$as_me:$LINENO: result: $have_x" >&5
9808 echo "${ECHO_T}$have_x" >&6
9811 # If each of the values was on the command line, it overrides each guess.
9812 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9813 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9814 # Update the cache value to reflect the command line values.
9815 ac_cv_have_x="have_x=yes \
9816 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9817 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9818 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
9821 if test "$no_x" = yes; then
9822 # Not all programs may use this symbol, but it does not hurt to define it.
9824 cat >>confdefs.h <<\_ACEOF
9825 #define X_DISPLAY_MISSING 1
9828 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
9830 if test -n "$x_includes"; then
9831 X_CFLAGS="$X_CFLAGS -I$x_includes"
9834 # It would also be nice to do this for all -L options, not just this one.
9835 if test -n "$x_libraries"; then
9836 X_LIBS="$X_LIBS -L$x_libraries"
9837 # For Solaris; some versions of Sun CC require a space after -R and
9838 # others require no space. Words are not sufficient . . . .
9839 case `(uname -sr) 2>/dev/null` in
9841 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
9842 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
9843 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
9844 cat >conftest.$ac_ext <<_ACEOF
9847 cat confdefs.h >>conftest.$ac_ext
9848 cat >>conftest.$ac_ext <<_ACEOF
9849 /* end confdefs.h. */
9859 rm -f conftest.$ac_objext conftest$ac_exeext
9860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9861 (eval $ac_link) 2>conftest.er1
9863 grep -v '^ *+' conftest.er1 >conftest.err
9865 cat conftest.err >&5
9866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9867 (exit $ac_status); } &&
9868 { ac_try='test -z "$ac_c_werror_flag"
9869 || test ! -s conftest.err'
9870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874 (exit $ac_status); }; } &&
9875 { ac_try='test -s conftest$ac_exeext'
9876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880 (exit $ac_status); }; }; then
9883 echo "$as_me: failed program was:" >&5
9884 sed 's/^/| /' conftest.$ac_ext >&5
9888 rm -f conftest.err conftest.$ac_objext \
9889 conftest$ac_exeext conftest.$ac_ext
9890 if test $ac_R_nospace = yes; then
9891 echo "$as_me:$LINENO: result: no" >&5
9892 echo "${ECHO_T}no" >&6
9893 X_LIBS="$X_LIBS -R$x_libraries"
9895 LIBS="$ac_xsave_LIBS -R $x_libraries"
9896 cat >conftest.$ac_ext <<_ACEOF
9899 cat confdefs.h >>conftest.$ac_ext
9900 cat >>conftest.$ac_ext <<_ACEOF
9901 /* end confdefs.h. */
9911 rm -f conftest.$ac_objext conftest$ac_exeext
9912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9913 (eval $ac_link) 2>conftest.er1
9915 grep -v '^ *+' conftest.er1 >conftest.err
9917 cat conftest.err >&5
9918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919 (exit $ac_status); } &&
9920 { ac_try='test -z "$ac_c_werror_flag"
9921 || test ! -s conftest.err'
9922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926 (exit $ac_status); }; } &&
9927 { ac_try='test -s conftest$ac_exeext'
9928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9932 (exit $ac_status); }; }; then
9935 echo "$as_me: failed program was:" >&5
9936 sed 's/^/| /' conftest.$ac_ext >&5
9940 rm -f conftest.err conftest.$ac_objext \
9941 conftest$ac_exeext conftest.$ac_ext
9942 if test $ac_R_space = yes; then
9943 echo "$as_me:$LINENO: result: yes" >&5
9944 echo "${ECHO_T}yes" >&6
9945 X_LIBS="$X_LIBS -R $x_libraries"
9947 echo "$as_me:$LINENO: result: neither works" >&5
9948 echo "${ECHO_T}neither works" >&6
9955 # Check for system-dependent libraries X programs must link with.
9956 # Do this before checking for the system-independent R6 libraries
9957 # (-lICE), since we may need -lsocket or whatever for X linking.
9959 if test "$ISC" = yes; then
9960 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
9962 # Martyn Johnson says this is needed for Ultrix, if the X
9963 # libraries were built with DECnet support. And Karl Berry says
9964 # the Alpha needs dnet_stub (dnet does not exist).
9965 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
9966 cat >conftest.$ac_ext <<_ACEOF
9969 cat confdefs.h >>conftest.$ac_ext
9970 cat >>conftest.$ac_ext <<_ACEOF
9971 /* end confdefs.h. */
9973 /* Override any gcc2 internal prototype to avoid an error. */
9977 /* We use char because int might match the return type of a gcc2
9978 builtin and then its argument prototype would still apply. */
9979 char XOpenDisplay ();
9988 rm -f conftest.$ac_objext conftest$ac_exeext
9989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9990 (eval $ac_link) 2>conftest.er1
9992 grep -v '^ *+' conftest.er1 >conftest.err
9994 cat conftest.err >&5
9995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9996 (exit $ac_status); } &&
9997 { ac_try='test -z "$ac_c_werror_flag"
9998 || test ! -s conftest.err'
9999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10000 (eval $ac_try) 2>&5
10002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003 (exit $ac_status); }; } &&
10004 { ac_try='test -s conftest$ac_exeext'
10005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10006 (eval $ac_try) 2>&5
10008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10009 (exit $ac_status); }; }; then
10012 echo "$as_me: failed program was:" >&5
10013 sed 's/^/| /' conftest.$ac_ext >&5
10015 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10016 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
10017 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10018 echo $ECHO_N "(cached) $ECHO_C" >&6
10020 ac_check_lib_save_LIBS=$LIBS
10021 LIBS="-ldnet $LIBS"
10022 cat >conftest.$ac_ext <<_ACEOF
10025 cat confdefs.h >>conftest.$ac_ext
10026 cat >>conftest.$ac_ext <<_ACEOF
10027 /* end confdefs.h. */
10029 /* Override any gcc2 internal prototype to avoid an error. */
10033 /* We use char because int might match the return type of a gcc2
10034 builtin and then its argument prototype would still apply. */
10044 rm -f conftest.$ac_objext conftest$ac_exeext
10045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10046 (eval $ac_link) 2>conftest.er1
10048 grep -v '^ *+' conftest.er1 >conftest.err
10050 cat conftest.err >&5
10051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10052 (exit $ac_status); } &&
10053 { ac_try='test -z "$ac_c_werror_flag"
10054 || test ! -s conftest.err'
10055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10056 (eval $ac_try) 2>&5
10058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10059 (exit $ac_status); }; } &&
10060 { ac_try='test -s conftest$ac_exeext'
10061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10062 (eval $ac_try) 2>&5
10064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10065 (exit $ac_status); }; }; then
10066 ac_cv_lib_dnet_dnet_ntoa=yes
10068 echo "$as_me: failed program was:" >&5
10069 sed 's/^/| /' conftest.$ac_ext >&5
10071 ac_cv_lib_dnet_dnet_ntoa=no
10073 rm -f conftest.err conftest.$ac_objext \
10074 conftest$ac_exeext conftest.$ac_ext
10075 LIBS=$ac_check_lib_save_LIBS
10077 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10078 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
10079 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10080 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
10083 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
10084 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
10085 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
10086 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
10087 echo $ECHO_N "(cached) $ECHO_C" >&6
10089 ac_check_lib_save_LIBS=$LIBS
10090 LIBS="-ldnet_stub $LIBS"
10091 cat >conftest.$ac_ext <<_ACEOF
10094 cat confdefs.h >>conftest.$ac_ext
10095 cat >>conftest.$ac_ext <<_ACEOF
10096 /* end confdefs.h. */
10098 /* Override any gcc2 internal prototype to avoid an error. */
10102 /* We use char because int might match the return type of a gcc2
10103 builtin and then its argument prototype would still apply. */
10113 rm -f conftest.$ac_objext conftest$ac_exeext
10114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10115 (eval $ac_link) 2>conftest.er1
10117 grep -v '^ *+' conftest.er1 >conftest.err
10119 cat conftest.err >&5
10120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10121 (exit $ac_status); } &&
10122 { ac_try='test -z "$ac_c_werror_flag"
10123 || test ! -s conftest.err'
10124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10125 (eval $ac_try) 2>&5
10127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128 (exit $ac_status); }; } &&
10129 { ac_try='test -s conftest$ac_exeext'
10130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10131 (eval $ac_try) 2>&5
10133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10134 (exit $ac_status); }; }; then
10135 ac_cv_lib_dnet_stub_dnet_ntoa=yes
10137 echo "$as_me: failed program was:" >&5
10138 sed 's/^/| /' conftest.$ac_ext >&5
10140 ac_cv_lib_dnet_stub_dnet_ntoa=no
10142 rm -f conftest.err conftest.$ac_objext \
10143 conftest$ac_exeext conftest.$ac_ext
10144 LIBS=$ac_check_lib_save_LIBS
10146 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
10147 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
10148 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
10149 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
10154 rm -f conftest.err conftest.$ac_objext \
10155 conftest$ac_exeext conftest.$ac_ext
10156 LIBS="$ac_xsave_LIBS"
10158 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
10159 # to get the SysV transport functions.
10160 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
10162 # The nsl library prevents programs from opening the X display
10163 # on Irix 5.2, according to T.E. Dickey.
10164 # The functions gethostbyname, getservbyname, and inet_addr are
10165 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
10166 echo "$as_me:$LINENO: checking for gethostbyname" >&5
10167 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
10168 if test "${ac_cv_func_gethostbyname+set}" = set; then
10169 echo $ECHO_N "(cached) $ECHO_C" >&6
10171 cat >conftest.$ac_ext <<_ACEOF
10174 cat confdefs.h >>conftest.$ac_ext
10175 cat >>conftest.$ac_ext <<_ACEOF
10176 /* end confdefs.h. */
10177 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
10178 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10179 #define gethostbyname innocuous_gethostbyname
10181 /* System header to define __stub macros and hopefully few prototypes,
10182 which can conflict with char gethostbyname (); below.
10183 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10184 <limits.h> exists even on freestanding compilers. */
10187 # include <limits.h>
10189 # include <assert.h>
10192 #undef gethostbyname
10194 /* Override any gcc2 internal prototype to avoid an error. */
10199 /* We use char because int might match the return type of a gcc2
10200 builtin and then its argument prototype would still apply. */
10201 char gethostbyname ();
10202 /* The GNU C library defines this for functions which it implements
10203 to always fail with ENOSYS. Some functions are actually named
10204 something starting with __ and the normal name is an alias. */
10205 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
10208 char (*f) () = gethostbyname;
10217 return f != gethostbyname;
10222 rm -f conftest.$ac_objext conftest$ac_exeext
10223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10224 (eval $ac_link) 2>conftest.er1
10226 grep -v '^ *+' conftest.er1 >conftest.err
10228 cat conftest.err >&5
10229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10230 (exit $ac_status); } &&
10231 { ac_try='test -z "$ac_c_werror_flag"
10232 || test ! -s conftest.err'
10233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10234 (eval $ac_try) 2>&5
10236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237 (exit $ac_status); }; } &&
10238 { ac_try='test -s conftest$ac_exeext'
10239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10240 (eval $ac_try) 2>&5
10242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10243 (exit $ac_status); }; }; then
10244 ac_cv_func_gethostbyname=yes
10246 echo "$as_me: failed program was:" >&5
10247 sed 's/^/| /' conftest.$ac_ext >&5
10249 ac_cv_func_gethostbyname=no
10251 rm -f conftest.err conftest.$ac_objext \
10252 conftest$ac_exeext conftest.$ac_ext
10254 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
10255 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
10257 if test $ac_cv_func_gethostbyname = no; then
10258 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
10259 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
10260 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
10261 echo $ECHO_N "(cached) $ECHO_C" >&6
10263 ac_check_lib_save_LIBS=$LIBS
10265 cat >conftest.$ac_ext <<_ACEOF
10268 cat confdefs.h >>conftest.$ac_ext
10269 cat >>conftest.$ac_ext <<_ACEOF
10270 /* end confdefs.h. */
10272 /* Override any gcc2 internal prototype to avoid an error. */
10276 /* We use char because int might match the return type of a gcc2
10277 builtin and then its argument prototype would still apply. */
10278 char gethostbyname ();
10287 rm -f conftest.$ac_objext conftest$ac_exeext
10288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10289 (eval $ac_link) 2>conftest.er1
10291 grep -v '^ *+' conftest.er1 >conftest.err
10293 cat conftest.err >&5
10294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10295 (exit $ac_status); } &&
10296 { ac_try='test -z "$ac_c_werror_flag"
10297 || test ! -s conftest.err'
10298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10299 (eval $ac_try) 2>&5
10301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302 (exit $ac_status); }; } &&
10303 { ac_try='test -s conftest$ac_exeext'
10304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10305 (eval $ac_try) 2>&5
10307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10308 (exit $ac_status); }; }; then
10309 ac_cv_lib_nsl_gethostbyname=yes
10311 echo "$as_me: failed program was:" >&5
10312 sed 's/^/| /' conftest.$ac_ext >&5
10314 ac_cv_lib_nsl_gethostbyname=no
10316 rm -f conftest.err conftest.$ac_objext \
10317 conftest$ac_exeext conftest.$ac_ext
10318 LIBS=$ac_check_lib_save_LIBS
10320 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
10321 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
10322 if test $ac_cv_lib_nsl_gethostbyname = yes; then
10323 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
10326 if test $ac_cv_lib_nsl_gethostbyname = no; then
10327 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
10328 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
10329 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
10330 echo $ECHO_N "(cached) $ECHO_C" >&6
10332 ac_check_lib_save_LIBS=$LIBS
10334 cat >conftest.$ac_ext <<_ACEOF
10337 cat confdefs.h >>conftest.$ac_ext
10338 cat >>conftest.$ac_ext <<_ACEOF
10339 /* end confdefs.h. */
10341 /* Override any gcc2 internal prototype to avoid an error. */
10345 /* We use char because int might match the return type of a gcc2
10346 builtin and then its argument prototype would still apply. */
10347 char gethostbyname ();
10356 rm -f conftest.$ac_objext conftest$ac_exeext
10357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10358 (eval $ac_link) 2>conftest.er1
10360 grep -v '^ *+' conftest.er1 >conftest.err
10362 cat conftest.err >&5
10363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10364 (exit $ac_status); } &&
10365 { ac_try='test -z "$ac_c_werror_flag"
10366 || test ! -s conftest.err'
10367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10368 (eval $ac_try) 2>&5
10370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10371 (exit $ac_status); }; } &&
10372 { ac_try='test -s conftest$ac_exeext'
10373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10374 (eval $ac_try) 2>&5
10376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10377 (exit $ac_status); }; }; then
10378 ac_cv_lib_bsd_gethostbyname=yes
10380 echo "$as_me: failed program was:" >&5
10381 sed 's/^/| /' conftest.$ac_ext >&5
10383 ac_cv_lib_bsd_gethostbyname=no
10385 rm -f conftest.err conftest.$ac_objext \
10386 conftest$ac_exeext conftest.$ac_ext
10387 LIBS=$ac_check_lib_save_LIBS
10389 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
10390 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
10391 if test $ac_cv_lib_bsd_gethostbyname = yes; then
10392 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
10398 # lieder@skyler.mavd.honeywell.com says without -lsocket,
10399 # socket/setsockopt and other routines are undefined under SCO ODT
10400 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
10401 # on later versions), says Simon Leinen: it contains gethostby*
10402 # variants that don't use the name server (or something). -lsocket
10403 # must be given before -lnsl if both are needed. We assume that
10404 # if connect needs -lnsl, so does gethostbyname.
10405 echo "$as_me:$LINENO: checking for connect" >&5
10406 echo $ECHO_N "checking for connect... $ECHO_C" >&6
10407 if test "${ac_cv_func_connect+set}" = set; then
10408 echo $ECHO_N "(cached) $ECHO_C" >&6
10410 cat >conftest.$ac_ext <<_ACEOF
10413 cat confdefs.h >>conftest.$ac_ext
10414 cat >>conftest.$ac_ext <<_ACEOF
10415 /* end confdefs.h. */
10416 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
10417 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10418 #define connect innocuous_connect
10420 /* System header to define __stub macros and hopefully few prototypes,
10421 which can conflict with char connect (); below.
10422 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10423 <limits.h> exists even on freestanding compilers. */
10426 # include <limits.h>
10428 # include <assert.h>
10433 /* Override any gcc2 internal prototype to avoid an error. */
10438 /* We use char because int might match the return type of a gcc2
10439 builtin and then its argument prototype would still apply. */
10441 /* The GNU C library defines this for functions which it implements
10442 to always fail with ENOSYS. Some functions are actually named
10443 something starting with __ and the normal name is an alias. */
10444 #if defined (__stub_connect) || defined (__stub___connect)
10447 char (*f) () = connect;
10456 return f != connect;
10461 rm -f conftest.$ac_objext conftest$ac_exeext
10462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10463 (eval $ac_link) 2>conftest.er1
10465 grep -v '^ *+' conftest.er1 >conftest.err
10467 cat conftest.err >&5
10468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10469 (exit $ac_status); } &&
10470 { ac_try='test -z "$ac_c_werror_flag"
10471 || test ! -s conftest.err'
10472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10473 (eval $ac_try) 2>&5
10475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10476 (exit $ac_status); }; } &&
10477 { ac_try='test -s conftest$ac_exeext'
10478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10479 (eval $ac_try) 2>&5
10481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10482 (exit $ac_status); }; }; then
10483 ac_cv_func_connect=yes
10485 echo "$as_me: failed program was:" >&5
10486 sed 's/^/| /' conftest.$ac_ext >&5
10488 ac_cv_func_connect=no
10490 rm -f conftest.err conftest.$ac_objext \
10491 conftest$ac_exeext conftest.$ac_ext
10493 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
10494 echo "${ECHO_T}$ac_cv_func_connect" >&6
10496 if test $ac_cv_func_connect = no; then
10497 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
10498 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
10499 if test "${ac_cv_lib_socket_connect+set}" = set; then
10500 echo $ECHO_N "(cached) $ECHO_C" >&6
10502 ac_check_lib_save_LIBS=$LIBS
10503 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
10504 cat >conftest.$ac_ext <<_ACEOF
10507 cat confdefs.h >>conftest.$ac_ext
10508 cat >>conftest.$ac_ext <<_ACEOF
10509 /* end confdefs.h. */
10511 /* Override any gcc2 internal prototype to avoid an error. */
10515 /* We use char because int might match the return type of a gcc2
10516 builtin and then its argument prototype would still apply. */
10526 rm -f conftest.$ac_objext conftest$ac_exeext
10527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10528 (eval $ac_link) 2>conftest.er1
10530 grep -v '^ *+' conftest.er1 >conftest.err
10532 cat conftest.err >&5
10533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10534 (exit $ac_status); } &&
10535 { ac_try='test -z "$ac_c_werror_flag"
10536 || test ! -s conftest.err'
10537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10538 (eval $ac_try) 2>&5
10540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10541 (exit $ac_status); }; } &&
10542 { ac_try='test -s conftest$ac_exeext'
10543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10544 (eval $ac_try) 2>&5
10546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10547 (exit $ac_status); }; }; then
10548 ac_cv_lib_socket_connect=yes
10550 echo "$as_me: failed program was:" >&5
10551 sed 's/^/| /' conftest.$ac_ext >&5
10553 ac_cv_lib_socket_connect=no
10555 rm -f conftest.err conftest.$ac_objext \
10556 conftest$ac_exeext conftest.$ac_ext
10557 LIBS=$ac_check_lib_save_LIBS
10559 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
10560 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
10561 if test $ac_cv_lib_socket_connect = yes; then
10562 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
10567 # Guillermo Gomez says -lposix is necessary on A/UX.
10568 echo "$as_me:$LINENO: checking for remove" >&5
10569 echo $ECHO_N "checking for remove... $ECHO_C" >&6
10570 if test "${ac_cv_func_remove+set}" = set; then
10571 echo $ECHO_N "(cached) $ECHO_C" >&6
10573 cat >conftest.$ac_ext <<_ACEOF
10576 cat confdefs.h >>conftest.$ac_ext
10577 cat >>conftest.$ac_ext <<_ACEOF
10578 /* end confdefs.h. */
10579 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
10580 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10581 #define remove innocuous_remove
10583 /* System header to define __stub macros and hopefully few prototypes,
10584 which can conflict with char remove (); below.
10585 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10586 <limits.h> exists even on freestanding compilers. */
10589 # include <limits.h>
10591 # include <assert.h>
10596 /* Override any gcc2 internal prototype to avoid an error. */
10601 /* We use char because int might match the return type of a gcc2
10602 builtin and then its argument prototype would still apply. */
10604 /* The GNU C library defines this for functions which it implements
10605 to always fail with ENOSYS. Some functions are actually named
10606 something starting with __ and the normal name is an alias. */
10607 #if defined (__stub_remove) || defined (__stub___remove)
10610 char (*f) () = remove;
10619 return f != remove;
10624 rm -f conftest.$ac_objext conftest$ac_exeext
10625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10626 (eval $ac_link) 2>conftest.er1
10628 grep -v '^ *+' conftest.er1 >conftest.err
10630 cat conftest.err >&5
10631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10632 (exit $ac_status); } &&
10633 { ac_try='test -z "$ac_c_werror_flag"
10634 || test ! -s conftest.err'
10635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10636 (eval $ac_try) 2>&5
10638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10639 (exit $ac_status); }; } &&
10640 { ac_try='test -s conftest$ac_exeext'
10641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10642 (eval $ac_try) 2>&5
10644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10645 (exit $ac_status); }; }; then
10646 ac_cv_func_remove=yes
10648 echo "$as_me: failed program was:" >&5
10649 sed 's/^/| /' conftest.$ac_ext >&5
10651 ac_cv_func_remove=no
10653 rm -f conftest.err conftest.$ac_objext \
10654 conftest$ac_exeext conftest.$ac_ext
10656 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
10657 echo "${ECHO_T}$ac_cv_func_remove" >&6
10659 if test $ac_cv_func_remove = no; then
10660 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
10661 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
10662 if test "${ac_cv_lib_posix_remove+set}" = set; then
10663 echo $ECHO_N "(cached) $ECHO_C" >&6
10665 ac_check_lib_save_LIBS=$LIBS
10666 LIBS="-lposix $LIBS"
10667 cat >conftest.$ac_ext <<_ACEOF
10670 cat confdefs.h >>conftest.$ac_ext
10671 cat >>conftest.$ac_ext <<_ACEOF
10672 /* end confdefs.h. */
10674 /* Override any gcc2 internal prototype to avoid an error. */
10678 /* We use char because int might match the return type of a gcc2
10679 builtin and then its argument prototype would still apply. */
10689 rm -f conftest.$ac_objext conftest$ac_exeext
10690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10691 (eval $ac_link) 2>conftest.er1
10693 grep -v '^ *+' conftest.er1 >conftest.err
10695 cat conftest.err >&5
10696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10697 (exit $ac_status); } &&
10698 { ac_try='test -z "$ac_c_werror_flag"
10699 || test ! -s conftest.err'
10700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10701 (eval $ac_try) 2>&5
10703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10704 (exit $ac_status); }; } &&
10705 { ac_try='test -s conftest$ac_exeext'
10706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10707 (eval $ac_try) 2>&5
10709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10710 (exit $ac_status); }; }; then
10711 ac_cv_lib_posix_remove=yes
10713 echo "$as_me: failed program was:" >&5
10714 sed 's/^/| /' conftest.$ac_ext >&5
10716 ac_cv_lib_posix_remove=no
10718 rm -f conftest.err conftest.$ac_objext \
10719 conftest$ac_exeext conftest.$ac_ext
10720 LIBS=$ac_check_lib_save_LIBS
10722 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
10723 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
10724 if test $ac_cv_lib_posix_remove = yes; then
10725 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
10730 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
10731 echo "$as_me:$LINENO: checking for shmat" >&5
10732 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
10733 if test "${ac_cv_func_shmat+set}" = set; then
10734 echo $ECHO_N "(cached) $ECHO_C" >&6
10736 cat >conftest.$ac_ext <<_ACEOF
10739 cat confdefs.h >>conftest.$ac_ext
10740 cat >>conftest.$ac_ext <<_ACEOF
10741 /* end confdefs.h. */
10742 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
10743 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10744 #define shmat innocuous_shmat
10746 /* System header to define __stub macros and hopefully few prototypes,
10747 which can conflict with char shmat (); below.
10748 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10749 <limits.h> exists even on freestanding compilers. */
10752 # include <limits.h>
10754 # include <assert.h>
10759 /* Override any gcc2 internal prototype to avoid an error. */
10764 /* We use char because int might match the return type of a gcc2
10765 builtin and then its argument prototype would still apply. */
10767 /* The GNU C library defines this for functions which it implements
10768 to always fail with ENOSYS. Some functions are actually named
10769 something starting with __ and the normal name is an alias. */
10770 #if defined (__stub_shmat) || defined (__stub___shmat)
10773 char (*f) () = shmat;
10787 rm -f conftest.$ac_objext conftest$ac_exeext
10788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10789 (eval $ac_link) 2>conftest.er1
10791 grep -v '^ *+' conftest.er1 >conftest.err
10793 cat conftest.err >&5
10794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10795 (exit $ac_status); } &&
10796 { ac_try='test -z "$ac_c_werror_flag"
10797 || test ! -s conftest.err'
10798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10799 (eval $ac_try) 2>&5
10801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10802 (exit $ac_status); }; } &&
10803 { ac_try='test -s conftest$ac_exeext'
10804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10805 (eval $ac_try) 2>&5
10807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10808 (exit $ac_status); }; }; then
10809 ac_cv_func_shmat=yes
10811 echo "$as_me: failed program was:" >&5
10812 sed 's/^/| /' conftest.$ac_ext >&5
10814 ac_cv_func_shmat=no
10816 rm -f conftest.err conftest.$ac_objext \
10817 conftest$ac_exeext conftest.$ac_ext
10819 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
10820 echo "${ECHO_T}$ac_cv_func_shmat" >&6
10822 if test $ac_cv_func_shmat = no; then
10823 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
10824 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
10825 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
10826 echo $ECHO_N "(cached) $ECHO_C" >&6
10828 ac_check_lib_save_LIBS=$LIBS
10830 cat >conftest.$ac_ext <<_ACEOF
10833 cat confdefs.h >>conftest.$ac_ext
10834 cat >>conftest.$ac_ext <<_ACEOF
10835 /* end confdefs.h. */
10837 /* Override any gcc2 internal prototype to avoid an error. */
10841 /* We use char because int might match the return type of a gcc2
10842 builtin and then its argument prototype would still apply. */
10852 rm -f conftest.$ac_objext conftest$ac_exeext
10853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10854 (eval $ac_link) 2>conftest.er1
10856 grep -v '^ *+' conftest.er1 >conftest.err
10858 cat conftest.err >&5
10859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10860 (exit $ac_status); } &&
10861 { ac_try='test -z "$ac_c_werror_flag"
10862 || test ! -s conftest.err'
10863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10864 (eval $ac_try) 2>&5
10866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10867 (exit $ac_status); }; } &&
10868 { ac_try='test -s conftest$ac_exeext'
10869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10870 (eval $ac_try) 2>&5
10872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10873 (exit $ac_status); }; }; then
10874 ac_cv_lib_ipc_shmat=yes
10876 echo "$as_me: failed program was:" >&5
10877 sed 's/^/| /' conftest.$ac_ext >&5
10879 ac_cv_lib_ipc_shmat=no
10881 rm -f conftest.err conftest.$ac_objext \
10882 conftest$ac_exeext conftest.$ac_ext
10883 LIBS=$ac_check_lib_save_LIBS
10885 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
10886 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
10887 if test $ac_cv_lib_ipc_shmat = yes; then
10888 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
10894 # Check for libraries that X11R6 Xt/Xaw programs need.
10895 ac_save_LDFLAGS=$LDFLAGS
10896 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
10897 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
10898 # check for ICE first), but we must link in the order -lSM -lICE or
10899 # we get undefined symbols. So assume we have SM if we have ICE.
10900 # These have to be linked with before -lX11, unlike the other
10901 # libraries we check for below, so use a different variable.
10902 # John Interrante, Karl Berry
10903 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
10904 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
10905 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
10906 echo $ECHO_N "(cached) $ECHO_C" >&6
10908 ac_check_lib_save_LIBS=$LIBS
10909 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
10910 cat >conftest.$ac_ext <<_ACEOF
10913 cat confdefs.h >>conftest.$ac_ext
10914 cat >>conftest.$ac_ext <<_ACEOF
10915 /* end confdefs.h. */
10917 /* Override any gcc2 internal prototype to avoid an error. */
10921 /* We use char because int might match the return type of a gcc2
10922 builtin and then its argument prototype would still apply. */
10923 char IceConnectionNumber ();
10927 IceConnectionNumber ();
10932 rm -f conftest.$ac_objext conftest$ac_exeext
10933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10934 (eval $ac_link) 2>conftest.er1
10936 grep -v '^ *+' conftest.er1 >conftest.err
10938 cat conftest.err >&5
10939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10940 (exit $ac_status); } &&
10941 { ac_try='test -z "$ac_c_werror_flag"
10942 || test ! -s conftest.err'
10943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10944 (eval $ac_try) 2>&5
10946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10947 (exit $ac_status); }; } &&
10948 { ac_try='test -s conftest$ac_exeext'
10949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10950 (eval $ac_try) 2>&5
10952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10953 (exit $ac_status); }; }; then
10954 ac_cv_lib_ICE_IceConnectionNumber=yes
10956 echo "$as_me: failed program was:" >&5
10957 sed 's/^/| /' conftest.$ac_ext >&5
10959 ac_cv_lib_ICE_IceConnectionNumber=no
10961 rm -f conftest.err conftest.$ac_objext \
10962 conftest$ac_exeext conftest.$ac_ext
10963 LIBS=$ac_check_lib_save_LIBS
10965 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
10966 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
10967 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
10968 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
10971 LDFLAGS=$ac_save_LDFLAGS
11033 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11034 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11035 echo "$as_me:$LINENO: checking for $ac_header" >&5
11036 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11037 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11038 echo $ECHO_N "(cached) $ECHO_C" >&6
11040 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11041 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11043 # Is the header compilable?
11044 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11045 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11046 cat >conftest.$ac_ext <<_ACEOF
11049 cat confdefs.h >>conftest.$ac_ext
11050 cat >>conftest.$ac_ext <<_ACEOF
11051 /* end confdefs.h. */
11052 $ac_includes_default
11053 #include <$ac_header>
11055 rm -f conftest.$ac_objext
11056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11057 (eval $ac_compile) 2>conftest.er1
11059 grep -v '^ *+' conftest.er1 >conftest.err
11061 cat conftest.err >&5
11062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063 (exit $ac_status); } &&
11064 { ac_try='test -z "$ac_c_werror_flag"
11065 || test ! -s conftest.err'
11066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11067 (eval $ac_try) 2>&5
11069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11070 (exit $ac_status); }; } &&
11071 { ac_try='test -s conftest.$ac_objext'
11072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11073 (eval $ac_try) 2>&5
11075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11076 (exit $ac_status); }; }; then
11077 ac_header_compiler=yes
11079 echo "$as_me: failed program was:" >&5
11080 sed 's/^/| /' conftest.$ac_ext >&5
11082 ac_header_compiler=no
11084 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11085 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11086 echo "${ECHO_T}$ac_header_compiler" >&6
11088 # Is the header present?
11089 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11090 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11091 cat >conftest.$ac_ext <<_ACEOF
11094 cat confdefs.h >>conftest.$ac_ext
11095 cat >>conftest.$ac_ext <<_ACEOF
11096 /* end confdefs.h. */
11097 #include <$ac_header>
11099 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11100 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11102 grep -v '^ *+' conftest.er1 >conftest.err
11104 cat conftest.err >&5
11105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11106 (exit $ac_status); } >/dev/null; then
11107 if test -s conftest.err; then
11108 ac_cpp_err=$ac_c_preproc_warn_flag
11109 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11116 if test -z "$ac_cpp_err"; then
11117 ac_header_preproc=yes
11119 echo "$as_me: failed program was:" >&5
11120 sed 's/^/| /' conftest.$ac_ext >&5
11122 ac_header_preproc=no
11124 rm -f conftest.err conftest.$ac_ext
11125 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11126 echo "${ECHO_T}$ac_header_preproc" >&6
11128 # So? What about this header?
11129 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11131 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11132 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11133 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11134 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11135 ac_header_preproc=yes
11138 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11139 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11140 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11141 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11142 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11143 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11144 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11145 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11146 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11147 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11148 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11149 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11152 ## ------------------------------------------ ##
11153 ## Report this to the AC_PACKAGE_NAME lists. ##
11154 ## ------------------------------------------ ##
11157 sed "s/^/$as_me: WARNING: /" >&2
11160 echo "$as_me:$LINENO: checking for $ac_header" >&5
11161 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11162 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11163 echo $ECHO_N "(cached) $ECHO_C" >&6
11165 eval "$as_ac_Header=\$ac_header_preproc"
11167 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11168 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11171 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11172 cat >>confdefs.h <<_ACEOF
11173 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11180 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
11181 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11182 if test "${ac_cv_header_stdc+set}" = set; then
11183 echo $ECHO_N "(cached) $ECHO_C" >&6
11185 cat >conftest.$ac_ext <<_ACEOF
11188 cat confdefs.h >>conftest.$ac_ext
11189 cat >>conftest.$ac_ext <<_ACEOF
11190 /* end confdefs.h. */
11191 #include <stdlib.h>
11192 #include <stdarg.h>
11193 #include <string.h>
11204 rm -f conftest.$ac_objext
11205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11206 (eval $ac_compile) 2>conftest.er1
11208 grep -v '^ *+' conftest.er1 >conftest.err
11210 cat conftest.err >&5
11211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11212 (exit $ac_status); } &&
11213 { ac_try='test -z "$ac_c_werror_flag"
11214 || test ! -s conftest.err'
11215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11216 (eval $ac_try) 2>&5
11218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11219 (exit $ac_status); }; } &&
11220 { ac_try='test -s conftest.$ac_objext'
11221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11222 (eval $ac_try) 2>&5
11224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11225 (exit $ac_status); }; }; then
11226 ac_cv_header_stdc=yes
11228 echo "$as_me: failed program was:" >&5
11229 sed 's/^/| /' conftest.$ac_ext >&5
11231 ac_cv_header_stdc=no
11233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11235 if test $ac_cv_header_stdc = yes; then
11236 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11237 cat >conftest.$ac_ext <<_ACEOF
11240 cat confdefs.h >>conftest.$ac_ext
11241 cat >>conftest.$ac_ext <<_ACEOF
11242 /* end confdefs.h. */
11243 #include <string.h>
11246 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11247 $EGREP "memchr" >/dev/null 2>&1; then
11250 ac_cv_header_stdc=no
11256 if test $ac_cv_header_stdc = yes; then
11257 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11258 cat >conftest.$ac_ext <<_ACEOF
11261 cat confdefs.h >>conftest.$ac_ext
11262 cat >>conftest.$ac_ext <<_ACEOF
11263 /* end confdefs.h. */
11264 #include <stdlib.h>
11267 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11268 $EGREP "free" >/dev/null 2>&1; then
11271 ac_cv_header_stdc=no
11277 if test $ac_cv_header_stdc = yes; then
11278 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11279 if test "$cross_compiling" = yes; then
11282 cat >conftest.$ac_ext <<_ACEOF
11285 cat confdefs.h >>conftest.$ac_ext
11286 cat >>conftest.$ac_ext <<_ACEOF
11287 /* end confdefs.h. */
11289 #if ((' ' & 0x0FF) == 0x020)
11290 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11291 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11293 # define ISLOWER(c) \
11294 (('a' <= (c) && (c) <= 'i') \
11295 || ('j' <= (c) && (c) <= 'r') \
11296 || ('s' <= (c) && (c) <= 'z'))
11297 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11300 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11305 for (i = 0; i < 256; i++)
11306 if (XOR (islower (i), ISLOWER (i))
11307 || toupper (i) != TOUPPER (i))
11312 rm -f conftest$ac_exeext
11313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11314 (eval $ac_link) 2>&5
11316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11317 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11319 (eval $ac_try) 2>&5
11321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11322 (exit $ac_status); }; }; then
11325 echo "$as_me: program exited with status $ac_status" >&5
11326 echo "$as_me: failed program was:" >&5
11327 sed 's/^/| /' conftest.$ac_ext >&5
11329 ( exit $ac_status )
11330 ac_cv_header_stdc=no
11332 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11336 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11337 echo "${ECHO_T}$ac_cv_header_stdc" >&6
11338 if test $ac_cv_header_stdc = yes; then
11340 cat >>confdefs.h <<\_ACEOF
11341 #define STDC_HEADERS 1
11346 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
11347 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
11348 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
11349 echo $ECHO_N "(cached) $ECHO_C" >&6
11351 cat >conftest.$ac_ext <<_ACEOF
11354 cat confdefs.h >>conftest.$ac_ext
11355 cat >>conftest.$ac_ext <<_ACEOF
11356 /* end confdefs.h. */
11357 #include <sys/types.h>
11361 return makedev(0, 0);
11366 rm -f conftest.$ac_objext conftest$ac_exeext
11367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11368 (eval $ac_link) 2>conftest.er1
11370 grep -v '^ *+' conftest.er1 >conftest.err
11372 cat conftest.err >&5
11373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374 (exit $ac_status); } &&
11375 { ac_try='test -z "$ac_c_werror_flag"
11376 || test ! -s conftest.err'
11377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11378 (eval $ac_try) 2>&5
11380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11381 (exit $ac_status); }; } &&
11382 { ac_try='test -s conftest$ac_exeext'
11383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11384 (eval $ac_try) 2>&5
11386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11387 (exit $ac_status); }; }; then
11388 ac_cv_header_sys_types_h_makedev=yes
11390 echo "$as_me: failed program was:" >&5
11391 sed 's/^/| /' conftest.$ac_ext >&5
11393 ac_cv_header_sys_types_h_makedev=no
11395 rm -f conftest.err conftest.$ac_objext \
11396 conftest$ac_exeext conftest.$ac_ext
11399 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
11400 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
11402 if test $ac_cv_header_sys_types_h_makedev = no; then
11403 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
11404 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
11405 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
11406 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
11407 echo $ECHO_N "(cached) $ECHO_C" >&6
11409 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
11410 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
11412 # Is the header compilable?
11413 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
11414 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
11415 cat >conftest.$ac_ext <<_ACEOF
11418 cat confdefs.h >>conftest.$ac_ext
11419 cat >>conftest.$ac_ext <<_ACEOF
11420 /* end confdefs.h. */
11421 $ac_includes_default
11422 #include <sys/mkdev.h>
11424 rm -f conftest.$ac_objext
11425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11426 (eval $ac_compile) 2>conftest.er1
11428 grep -v '^ *+' conftest.er1 >conftest.err
11430 cat conftest.err >&5
11431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11432 (exit $ac_status); } &&
11433 { ac_try='test -z "$ac_c_werror_flag"
11434 || test ! -s conftest.err'
11435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11436 (eval $ac_try) 2>&5
11438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11439 (exit $ac_status); }; } &&
11440 { ac_try='test -s conftest.$ac_objext'
11441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11442 (eval $ac_try) 2>&5
11444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11445 (exit $ac_status); }; }; then
11446 ac_header_compiler=yes
11448 echo "$as_me: failed program was:" >&5
11449 sed 's/^/| /' conftest.$ac_ext >&5
11451 ac_header_compiler=no
11453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11454 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11455 echo "${ECHO_T}$ac_header_compiler" >&6
11457 # Is the header present?
11458 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
11459 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
11460 cat >conftest.$ac_ext <<_ACEOF
11463 cat confdefs.h >>conftest.$ac_ext
11464 cat >>conftest.$ac_ext <<_ACEOF
11465 /* end confdefs.h. */
11466 #include <sys/mkdev.h>
11468 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11469 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11471 grep -v '^ *+' conftest.er1 >conftest.err
11473 cat conftest.err >&5
11474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11475 (exit $ac_status); } >/dev/null; then
11476 if test -s conftest.err; then
11477 ac_cpp_err=$ac_c_preproc_warn_flag
11478 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11485 if test -z "$ac_cpp_err"; then
11486 ac_header_preproc=yes
11488 echo "$as_me: failed program was:" >&5
11489 sed 's/^/| /' conftest.$ac_ext >&5
11491 ac_header_preproc=no
11493 rm -f conftest.err conftest.$ac_ext
11494 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11495 echo "${ECHO_T}$ac_header_preproc" >&6
11497 # So? What about this header?
11498 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11500 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
11501 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11502 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
11503 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
11504 ac_header_preproc=yes
11507 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
11508 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
11509 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
11510 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
11511 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
11512 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
11513 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
11514 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
11515 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
11516 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
11517 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
11518 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
11521 ## ------------------------------------------ ##
11522 ## Report this to the AC_PACKAGE_NAME lists. ##
11523 ## ------------------------------------------ ##
11526 sed "s/^/$as_me: WARNING: /" >&2
11529 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
11530 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
11531 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
11532 echo $ECHO_N "(cached) $ECHO_C" >&6
11534 ac_cv_header_sys_mkdev_h=$ac_header_preproc
11536 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
11537 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
11540 if test $ac_cv_header_sys_mkdev_h = yes; then
11542 cat >>confdefs.h <<\_ACEOF
11543 #define MAJOR_IN_MKDEV 1
11550 if test $ac_cv_header_sys_mkdev_h = no; then
11551 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
11552 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
11553 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
11554 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
11555 echo $ECHO_N "(cached) $ECHO_C" >&6
11557 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
11558 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
11560 # Is the header compilable?
11561 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
11562 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
11563 cat >conftest.$ac_ext <<_ACEOF
11566 cat confdefs.h >>conftest.$ac_ext
11567 cat >>conftest.$ac_ext <<_ACEOF
11568 /* end confdefs.h. */
11569 $ac_includes_default
11570 #include <sys/sysmacros.h>
11572 rm -f conftest.$ac_objext
11573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11574 (eval $ac_compile) 2>conftest.er1
11576 grep -v '^ *+' conftest.er1 >conftest.err
11578 cat conftest.err >&5
11579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11580 (exit $ac_status); } &&
11581 { ac_try='test -z "$ac_c_werror_flag"
11582 || test ! -s conftest.err'
11583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11584 (eval $ac_try) 2>&5
11586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11587 (exit $ac_status); }; } &&
11588 { ac_try='test -s conftest.$ac_objext'
11589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11590 (eval $ac_try) 2>&5
11592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11593 (exit $ac_status); }; }; then
11594 ac_header_compiler=yes
11596 echo "$as_me: failed program was:" >&5
11597 sed 's/^/| /' conftest.$ac_ext >&5
11599 ac_header_compiler=no
11601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11602 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11603 echo "${ECHO_T}$ac_header_compiler" >&6
11605 # Is the header present?
11606 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
11607 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
11608 cat >conftest.$ac_ext <<_ACEOF
11611 cat confdefs.h >>conftest.$ac_ext
11612 cat >>conftest.$ac_ext <<_ACEOF
11613 /* end confdefs.h. */
11614 #include <sys/sysmacros.h>
11616 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11617 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11619 grep -v '^ *+' conftest.er1 >conftest.err
11621 cat conftest.err >&5
11622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11623 (exit $ac_status); } >/dev/null; then
11624 if test -s conftest.err; then
11625 ac_cpp_err=$ac_c_preproc_warn_flag
11626 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11633 if test -z "$ac_cpp_err"; then
11634 ac_header_preproc=yes
11636 echo "$as_me: failed program was:" >&5
11637 sed 's/^/| /' conftest.$ac_ext >&5
11639 ac_header_preproc=no
11641 rm -f conftest.err conftest.$ac_ext
11642 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11643 echo "${ECHO_T}$ac_header_preproc" >&6
11645 # So? What about this header?
11646 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11648 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
11649 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11650 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
11651 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
11652 ac_header_preproc=yes
11655 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
11656 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
11657 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
11658 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
11659 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
11660 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
11661 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
11662 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
11663 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
11664 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
11665 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
11666 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
11669 ## ------------------------------------------ ##
11670 ## Report this to the AC_PACKAGE_NAME lists. ##
11671 ## ------------------------------------------ ##
11674 sed "s/^/$as_me: WARNING: /" >&2
11677 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
11678 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
11679 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
11680 echo $ECHO_N "(cached) $ECHO_C" >&6
11682 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
11684 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
11685 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
11688 if test $ac_cv_header_sys_sysmacros_h = yes; then
11690 cat >>confdefs.h <<\_ACEOF
11691 #define MAJOR_IN_SYSMACROS 1
11705 ac_header_dirent=no
11706 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11707 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11708 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
11709 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
11710 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11711 echo $ECHO_N "(cached) $ECHO_C" >&6
11713 cat >conftest.$ac_ext <<_ACEOF
11716 cat confdefs.h >>conftest.$ac_ext
11717 cat >>conftest.$ac_ext <<_ACEOF
11718 /* end confdefs.h. */
11719 #include <sys/types.h>
11731 rm -f conftest.$ac_objext
11732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11733 (eval $ac_compile) 2>conftest.er1
11735 grep -v '^ *+' conftest.er1 >conftest.err
11737 cat conftest.err >&5
11738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11739 (exit $ac_status); } &&
11740 { ac_try='test -z "$ac_c_werror_flag"
11741 || test ! -s conftest.err'
11742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11743 (eval $ac_try) 2>&5
11745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11746 (exit $ac_status); }; } &&
11747 { ac_try='test -s conftest.$ac_objext'
11748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11749 (eval $ac_try) 2>&5
11751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11752 (exit $ac_status); }; }; then
11753 eval "$as_ac_Header=yes"
11755 echo "$as_me: failed program was:" >&5
11756 sed 's/^/| /' conftest.$ac_ext >&5
11758 eval "$as_ac_Header=no"
11760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11762 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11763 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11764 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11765 cat >>confdefs.h <<_ACEOF
11766 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11769 ac_header_dirent=$ac_hdr; break
11773 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11774 if test $ac_header_dirent = dirent.h; then
11775 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11776 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11777 if test "${ac_cv_search_opendir+set}" = set; then
11778 echo $ECHO_N "(cached) $ECHO_C" >&6
11780 ac_func_search_save_LIBS=$LIBS
11781 ac_cv_search_opendir=no
11782 cat >conftest.$ac_ext <<_ACEOF
11785 cat confdefs.h >>conftest.$ac_ext
11786 cat >>conftest.$ac_ext <<_ACEOF
11787 /* end confdefs.h. */
11789 /* Override any gcc2 internal prototype to avoid an error. */
11793 /* We use char because int might match the return type of a gcc2
11794 builtin and then its argument prototype would still apply. */
11804 rm -f conftest.$ac_objext conftest$ac_exeext
11805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11806 (eval $ac_link) 2>conftest.er1
11808 grep -v '^ *+' conftest.er1 >conftest.err
11810 cat conftest.err >&5
11811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11812 (exit $ac_status); } &&
11813 { ac_try='test -z "$ac_c_werror_flag"
11814 || test ! -s conftest.err'
11815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11816 (eval $ac_try) 2>&5
11818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11819 (exit $ac_status); }; } &&
11820 { ac_try='test -s conftest$ac_exeext'
11821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11822 (eval $ac_try) 2>&5
11824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11825 (exit $ac_status); }; }; then
11826 ac_cv_search_opendir="none required"
11828 echo "$as_me: failed program was:" >&5
11829 sed 's/^/| /' conftest.$ac_ext >&5
11832 rm -f conftest.err conftest.$ac_objext \
11833 conftest$ac_exeext conftest.$ac_ext
11834 if test "$ac_cv_search_opendir" = no; then
11835 for ac_lib in dir; do
11836 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11837 cat >conftest.$ac_ext <<_ACEOF
11840 cat confdefs.h >>conftest.$ac_ext
11841 cat >>conftest.$ac_ext <<_ACEOF
11842 /* end confdefs.h. */
11844 /* Override any gcc2 internal prototype to avoid an error. */
11848 /* We use char because int might match the return type of a gcc2
11849 builtin and then its argument prototype would still apply. */
11859 rm -f conftest.$ac_objext conftest$ac_exeext
11860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11861 (eval $ac_link) 2>conftest.er1
11863 grep -v '^ *+' conftest.er1 >conftest.err
11865 cat conftest.err >&5
11866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11867 (exit $ac_status); } &&
11868 { ac_try='test -z "$ac_c_werror_flag"
11869 || test ! -s conftest.err'
11870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11871 (eval $ac_try) 2>&5
11873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11874 (exit $ac_status); }; } &&
11875 { ac_try='test -s conftest$ac_exeext'
11876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11877 (eval $ac_try) 2>&5
11879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11880 (exit $ac_status); }; }; then
11881 ac_cv_search_opendir="-l$ac_lib"
11884 echo "$as_me: failed program was:" >&5
11885 sed 's/^/| /' conftest.$ac_ext >&5
11888 rm -f conftest.err conftest.$ac_objext \
11889 conftest$ac_exeext conftest.$ac_ext
11892 LIBS=$ac_func_search_save_LIBS
11894 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11895 echo "${ECHO_T}$ac_cv_search_opendir" >&6
11896 if test "$ac_cv_search_opendir" != no; then
11897 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11902 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11903 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11904 if test "${ac_cv_search_opendir+set}" = set; then
11905 echo $ECHO_N "(cached) $ECHO_C" >&6
11907 ac_func_search_save_LIBS=$LIBS
11908 ac_cv_search_opendir=no
11909 cat >conftest.$ac_ext <<_ACEOF
11912 cat confdefs.h >>conftest.$ac_ext
11913 cat >>conftest.$ac_ext <<_ACEOF
11914 /* end confdefs.h. */
11916 /* Override any gcc2 internal prototype to avoid an error. */
11920 /* We use char because int might match the return type of a gcc2
11921 builtin and then its argument prototype would still apply. */
11931 rm -f conftest.$ac_objext conftest$ac_exeext
11932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11933 (eval $ac_link) 2>conftest.er1
11935 grep -v '^ *+' conftest.er1 >conftest.err
11937 cat conftest.err >&5
11938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11939 (exit $ac_status); } &&
11940 { ac_try='test -z "$ac_c_werror_flag"
11941 || test ! -s conftest.err'
11942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11943 (eval $ac_try) 2>&5
11945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11946 (exit $ac_status); }; } &&
11947 { ac_try='test -s conftest$ac_exeext'
11948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11949 (eval $ac_try) 2>&5
11951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11952 (exit $ac_status); }; }; then
11953 ac_cv_search_opendir="none required"
11955 echo "$as_me: failed program was:" >&5
11956 sed 's/^/| /' conftest.$ac_ext >&5
11959 rm -f conftest.err conftest.$ac_objext \
11960 conftest$ac_exeext conftest.$ac_ext
11961 if test "$ac_cv_search_opendir" = no; then
11962 for ac_lib in x; do
11963 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11964 cat >conftest.$ac_ext <<_ACEOF
11967 cat confdefs.h >>conftest.$ac_ext
11968 cat >>conftest.$ac_ext <<_ACEOF
11969 /* end confdefs.h. */
11971 /* Override any gcc2 internal prototype to avoid an error. */
11975 /* We use char because int might match the return type of a gcc2
11976 builtin and then its argument prototype would still apply. */
11986 rm -f conftest.$ac_objext conftest$ac_exeext
11987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11988 (eval $ac_link) 2>conftest.er1
11990 grep -v '^ *+' conftest.er1 >conftest.err
11992 cat conftest.err >&5
11993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994 (exit $ac_status); } &&
11995 { ac_try='test -z "$ac_c_werror_flag"
11996 || test ! -s conftest.err'
11997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11998 (eval $ac_try) 2>&5
12000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12001 (exit $ac_status); }; } &&
12002 { ac_try='test -s conftest$ac_exeext'
12003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12004 (eval $ac_try) 2>&5
12006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007 (exit $ac_status); }; }; then
12008 ac_cv_search_opendir="-l$ac_lib"
12011 echo "$as_me: failed program was:" >&5
12012 sed 's/^/| /' conftest.$ac_ext >&5
12015 rm -f conftest.err conftest.$ac_objext \
12016 conftest$ac_exeext conftest.$ac_ext
12019 LIBS=$ac_func_search_save_LIBS
12021 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
12022 echo "${ECHO_T}$ac_cv_search_opendir" >&6
12023 if test "$ac_cv_search_opendir" != no; then
12024 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
12030 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
12031 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
12032 if test "${ac_cv_header_stat_broken+set}" = set; then
12033 echo $ECHO_N "(cached) $ECHO_C" >&6
12035 cat >conftest.$ac_ext <<_ACEOF
12038 cat confdefs.h >>conftest.$ac_ext
12039 cat >>conftest.$ac_ext <<_ACEOF
12040 /* end confdefs.h. */
12041 #include <sys/types.h>
12042 #include <sys/stat.h>
12044 #if defined(S_ISBLK) && defined(S_IFDIR)
12045 # if S_ISBLK (S_IFDIR)
12050 #if defined(S_ISBLK) && defined(S_IFCHR)
12051 # if S_ISBLK (S_IFCHR)
12056 #if defined(S_ISLNK) && defined(S_IFREG)
12057 # if S_ISLNK (S_IFREG)
12062 #if defined(S_ISSOCK) && defined(S_IFREG)
12063 # if S_ISSOCK (S_IFREG)
12069 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12070 $EGREP "You lose" >/dev/null 2>&1; then
12071 ac_cv_header_stat_broken=yes
12073 ac_cv_header_stat_broken=no
12078 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
12079 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
12080 if test $ac_cv_header_stat_broken = yes; then
12082 cat >>confdefs.h <<\_ACEOF
12083 #define STAT_MACROS_BROKEN 1
12088 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
12089 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
12090 if test "${ac_cv_header_sys_wait_h+set}" = set; then
12091 echo $ECHO_N "(cached) $ECHO_C" >&6
12093 cat >conftest.$ac_ext <<_ACEOF
12096 cat confdefs.h >>conftest.$ac_ext
12097 cat >>conftest.$ac_ext <<_ACEOF
12098 /* end confdefs.h. */
12099 #include <sys/types.h>
12100 #include <sys/wait.h>
12101 #ifndef WEXITSTATUS
12102 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
12105 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
12113 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
12118 rm -f conftest.$ac_objext
12119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12120 (eval $ac_compile) 2>conftest.er1
12122 grep -v '^ *+' conftest.er1 >conftest.err
12124 cat conftest.err >&5
12125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12126 (exit $ac_status); } &&
12127 { ac_try='test -z "$ac_c_werror_flag"
12128 || test ! -s conftest.err'
12129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12130 (eval $ac_try) 2>&5
12132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12133 (exit $ac_status); }; } &&
12134 { ac_try='test -s conftest.$ac_objext'
12135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12136 (eval $ac_try) 2>&5
12138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12139 (exit $ac_status); }; }; then
12140 ac_cv_header_sys_wait_h=yes
12142 echo "$as_me: failed program was:" >&5
12143 sed 's/^/| /' conftest.$ac_ext >&5
12145 ac_cv_header_sys_wait_h=no
12147 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12149 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
12150 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
12151 if test $ac_cv_header_sys_wait_h = yes; then
12153 cat >>confdefs.h <<\_ACEOF
12154 #define HAVE_SYS_WAIT_H 1
12159 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
12160 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
12161 if test "${ac_cv_header_time+set}" = set; then
12162 echo $ECHO_N "(cached) $ECHO_C" >&6
12164 cat >conftest.$ac_ext <<_ACEOF
12167 cat confdefs.h >>conftest.$ac_ext
12168 cat >>conftest.$ac_ext <<_ACEOF
12169 /* end confdefs.h. */
12170 #include <sys/types.h>
12171 #include <sys/time.h>
12177 if ((struct tm *) 0)
12183 rm -f conftest.$ac_objext
12184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12185 (eval $ac_compile) 2>conftest.er1
12187 grep -v '^ *+' conftest.er1 >conftest.err
12189 cat conftest.err >&5
12190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12191 (exit $ac_status); } &&
12192 { ac_try='test -z "$ac_c_werror_flag"
12193 || test ! -s conftest.err'
12194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12195 (eval $ac_try) 2>&5
12197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12198 (exit $ac_status); }; } &&
12199 { ac_try='test -s conftest.$ac_objext'
12200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12201 (eval $ac_try) 2>&5
12203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12204 (exit $ac_status); }; }; then
12205 ac_cv_header_time=yes
12207 echo "$as_me: failed program was:" >&5
12208 sed 's/^/| /' conftest.$ac_ext >&5
12210 ac_cv_header_time=no
12212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12214 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
12215 echo "${ECHO_T}$ac_cv_header_time" >&6
12216 if test $ac_cv_header_time = yes; then
12218 cat >>confdefs.h <<\_ACEOF
12219 #define TIME_WITH_SYS_TIME 1
12225 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
12226 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
12227 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
12228 echo $ECHO_N "(cached) $ECHO_C" >&6
12230 cat >conftest.$ac_ext <<_ACEOF
12233 cat confdefs.h >>conftest.$ac_ext
12234 cat >>conftest.$ac_ext <<_ACEOF
12235 /* end confdefs.h. */
12236 $ac_includes_default
12240 static struct stat ac_aggr;
12241 if (ac_aggr.st_blksize)
12247 rm -f conftest.$ac_objext
12248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12249 (eval $ac_compile) 2>conftest.er1
12251 grep -v '^ *+' conftest.er1 >conftest.err
12253 cat conftest.err >&5
12254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12255 (exit $ac_status); } &&
12256 { ac_try='test -z "$ac_c_werror_flag"
12257 || test ! -s conftest.err'
12258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12259 (eval $ac_try) 2>&5
12261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12262 (exit $ac_status); }; } &&
12263 { ac_try='test -s conftest.$ac_objext'
12264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12265 (eval $ac_try) 2>&5
12267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12268 (exit $ac_status); }; }; then
12269 ac_cv_member_struct_stat_st_blksize=yes
12271 echo "$as_me: failed program was:" >&5
12272 sed 's/^/| /' conftest.$ac_ext >&5
12274 cat >conftest.$ac_ext <<_ACEOF
12277 cat confdefs.h >>conftest.$ac_ext
12278 cat >>conftest.$ac_ext <<_ACEOF
12279 /* end confdefs.h. */
12280 $ac_includes_default
12284 static struct stat ac_aggr;
12285 if (sizeof ac_aggr.st_blksize)
12291 rm -f conftest.$ac_objext
12292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12293 (eval $ac_compile) 2>conftest.er1
12295 grep -v '^ *+' conftest.er1 >conftest.err
12297 cat conftest.err >&5
12298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12299 (exit $ac_status); } &&
12300 { ac_try='test -z "$ac_c_werror_flag"
12301 || test ! -s conftest.err'
12302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12303 (eval $ac_try) 2>&5
12305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306 (exit $ac_status); }; } &&
12307 { ac_try='test -s conftest.$ac_objext'
12308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12309 (eval $ac_try) 2>&5
12311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12312 (exit $ac_status); }; }; then
12313 ac_cv_member_struct_stat_st_blksize=yes
12315 echo "$as_me: failed program was:" >&5
12316 sed 's/^/| /' conftest.$ac_ext >&5
12318 ac_cv_member_struct_stat_st_blksize=no
12320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12322 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12324 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
12325 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
12326 if test $ac_cv_member_struct_stat_st_blksize = yes; then
12328 cat >>confdefs.h <<_ACEOF
12329 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
12333 cat >>confdefs.h <<\_ACEOF
12334 #define HAVE_ST_BLKSIZE 1
12340 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
12341 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
12342 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
12343 echo $ECHO_N "(cached) $ECHO_C" >&6
12345 cat >conftest.$ac_ext <<_ACEOF
12348 cat confdefs.h >>conftest.$ac_ext
12349 cat >>conftest.$ac_ext <<_ACEOF
12350 /* end confdefs.h. */
12351 $ac_includes_default
12355 static struct stat ac_aggr;
12356 if (ac_aggr.st_blocks)
12362 rm -f conftest.$ac_objext
12363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12364 (eval $ac_compile) 2>conftest.er1
12366 grep -v '^ *+' conftest.er1 >conftest.err
12368 cat conftest.err >&5
12369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12370 (exit $ac_status); } &&
12371 { ac_try='test -z "$ac_c_werror_flag"
12372 || test ! -s conftest.err'
12373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12374 (eval $ac_try) 2>&5
12376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12377 (exit $ac_status); }; } &&
12378 { ac_try='test -s conftest.$ac_objext'
12379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12380 (eval $ac_try) 2>&5
12382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12383 (exit $ac_status); }; }; then
12384 ac_cv_member_struct_stat_st_blocks=yes
12386 echo "$as_me: failed program was:" >&5
12387 sed 's/^/| /' conftest.$ac_ext >&5
12389 cat >conftest.$ac_ext <<_ACEOF
12392 cat confdefs.h >>conftest.$ac_ext
12393 cat >>conftest.$ac_ext <<_ACEOF
12394 /* end confdefs.h. */
12395 $ac_includes_default
12399 static struct stat ac_aggr;
12400 if (sizeof ac_aggr.st_blocks)
12406 rm -f conftest.$ac_objext
12407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12408 (eval $ac_compile) 2>conftest.er1
12410 grep -v '^ *+' conftest.er1 >conftest.err
12412 cat conftest.err >&5
12413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12414 (exit $ac_status); } &&
12415 { ac_try='test -z "$ac_c_werror_flag"
12416 || test ! -s conftest.err'
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); }; } &&
12422 { ac_try='test -s conftest.$ac_objext'
12423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12424 (eval $ac_try) 2>&5
12426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427 (exit $ac_status); }; }; then
12428 ac_cv_member_struct_stat_st_blocks=yes
12430 echo "$as_me: failed program was:" >&5
12431 sed 's/^/| /' conftest.$ac_ext >&5
12433 ac_cv_member_struct_stat_st_blocks=no
12435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12439 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
12440 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
12441 if test $ac_cv_member_struct_stat_st_blocks = yes; then
12443 cat >>confdefs.h <<_ACEOF
12444 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12448 cat >>confdefs.h <<\_ACEOF
12449 #define HAVE_ST_BLOCKS 1
12454 "fileblocks.$ac_objext" | \
12455 *" fileblocks.$ac_objext" | \
12456 "fileblocks.$ac_objext "* | \
12457 *" fileblocks.$ac_objext "* ) ;;
12458 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
12464 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12465 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
12466 if test "${ac_cv_struct_tm+set}" = set; then
12467 echo $ECHO_N "(cached) $ECHO_C" >&6
12469 cat >conftest.$ac_ext <<_ACEOF
12472 cat confdefs.h >>conftest.$ac_ext
12473 cat >>conftest.$ac_ext <<_ACEOF
12474 /* end confdefs.h. */
12475 #include <sys/types.h>
12481 struct tm *tp; tp->tm_sec;
12486 rm -f conftest.$ac_objext
12487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12488 (eval $ac_compile) 2>conftest.er1
12490 grep -v '^ *+' conftest.er1 >conftest.err
12492 cat conftest.err >&5
12493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12494 (exit $ac_status); } &&
12495 { ac_try='test -z "$ac_c_werror_flag"
12496 || test ! -s conftest.err'
12497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12498 (eval $ac_try) 2>&5
12500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12501 (exit $ac_status); }; } &&
12502 { ac_try='test -s conftest.$ac_objext'
12503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12504 (eval $ac_try) 2>&5
12506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12507 (exit $ac_status); }; }; then
12508 ac_cv_struct_tm=time.h
12510 echo "$as_me: failed program was:" >&5
12511 sed 's/^/| /' conftest.$ac_ext >&5
12513 ac_cv_struct_tm=sys/time.h
12515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12517 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12518 echo "${ECHO_T}$ac_cv_struct_tm" >&6
12519 if test $ac_cv_struct_tm = sys/time.h; then
12521 cat >>confdefs.h <<\_ACEOF
12522 #define TM_IN_SYS_TIME 1
12527 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
12528 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
12529 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
12530 echo $ECHO_N "(cached) $ECHO_C" >&6
12532 cat >conftest.$ac_ext <<_ACEOF
12535 cat confdefs.h >>conftest.$ac_ext
12536 cat >>conftest.$ac_ext <<_ACEOF
12537 /* end confdefs.h. */
12538 #include <sys/types.h>
12539 #include <$ac_cv_struct_tm>
12545 static struct tm ac_aggr;
12546 if (ac_aggr.tm_zone)
12552 rm -f conftest.$ac_objext
12553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12554 (eval $ac_compile) 2>conftest.er1
12556 grep -v '^ *+' conftest.er1 >conftest.err
12558 cat conftest.err >&5
12559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12560 (exit $ac_status); } &&
12561 { ac_try='test -z "$ac_c_werror_flag"
12562 || test ! -s conftest.err'
12563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12564 (eval $ac_try) 2>&5
12566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12567 (exit $ac_status); }; } &&
12568 { ac_try='test -s conftest.$ac_objext'
12569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12570 (eval $ac_try) 2>&5
12572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12573 (exit $ac_status); }; }; then
12574 ac_cv_member_struct_tm_tm_zone=yes
12576 echo "$as_me: failed program was:" >&5
12577 sed 's/^/| /' conftest.$ac_ext >&5
12579 cat >conftest.$ac_ext <<_ACEOF
12582 cat confdefs.h >>conftest.$ac_ext
12583 cat >>conftest.$ac_ext <<_ACEOF
12584 /* end confdefs.h. */
12585 #include <sys/types.h>
12586 #include <$ac_cv_struct_tm>
12592 static struct tm ac_aggr;
12593 if (sizeof ac_aggr.tm_zone)
12599 rm -f conftest.$ac_objext
12600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12601 (eval $ac_compile) 2>conftest.er1
12603 grep -v '^ *+' conftest.er1 >conftest.err
12605 cat conftest.err >&5
12606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12607 (exit $ac_status); } &&
12608 { ac_try='test -z "$ac_c_werror_flag"
12609 || test ! -s conftest.err'
12610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12611 (eval $ac_try) 2>&5
12613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12614 (exit $ac_status); }; } &&
12615 { ac_try='test -s conftest.$ac_objext'
12616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12617 (eval $ac_try) 2>&5
12619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12620 (exit $ac_status); }; }; then
12621 ac_cv_member_struct_tm_tm_zone=yes
12623 echo "$as_me: failed program was:" >&5
12624 sed 's/^/| /' conftest.$ac_ext >&5
12626 ac_cv_member_struct_tm_tm_zone=no
12628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12630 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12632 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
12633 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
12634 if test $ac_cv_member_struct_tm_tm_zone = yes; then
12636 cat >>confdefs.h <<_ACEOF
12637 #define HAVE_STRUCT_TM_TM_ZONE 1
12643 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
12645 cat >>confdefs.h <<\_ACEOF
12646 #define HAVE_TM_ZONE 1
12650 echo "$as_me:$LINENO: checking for tzname" >&5
12651 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
12652 if test "${ac_cv_var_tzname+set}" = set; then
12653 echo $ECHO_N "(cached) $ECHO_C" >&6
12655 cat >conftest.$ac_ext <<_ACEOF
12658 cat confdefs.h >>conftest.$ac_ext
12659 cat >>conftest.$ac_ext <<_ACEOF
12660 /* end confdefs.h. */
12662 #ifndef tzname /* For SGI. */
12663 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
12674 rm -f conftest.$ac_objext conftest$ac_exeext
12675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12676 (eval $ac_link) 2>conftest.er1
12678 grep -v '^ *+' conftest.er1 >conftest.err
12680 cat conftest.err >&5
12681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12682 (exit $ac_status); } &&
12683 { ac_try='test -z "$ac_c_werror_flag"
12684 || test ! -s conftest.err'
12685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12686 (eval $ac_try) 2>&5
12688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12689 (exit $ac_status); }; } &&
12690 { ac_try='test -s conftest$ac_exeext'
12691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12692 (eval $ac_try) 2>&5
12694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12695 (exit $ac_status); }; }; then
12696 ac_cv_var_tzname=yes
12698 echo "$as_me: failed program was:" >&5
12699 sed 's/^/| /' conftest.$ac_ext >&5
12701 ac_cv_var_tzname=no
12703 rm -f conftest.err conftest.$ac_objext \
12704 conftest$ac_exeext conftest.$ac_ext
12706 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
12707 echo "${ECHO_T}$ac_cv_var_tzname" >&6
12708 if test $ac_cv_var_tzname = yes; then
12710 cat >>confdefs.h <<\_ACEOF
12711 #define HAVE_TZNAME 1
12718 echo "$as_me:$LINENO: checking for utime.h" >&5
12719 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
12720 if test "${ba_cv_header_utime_h+set}" = set; then
12721 echo $ECHO_N "(cached) $ECHO_C" >&6
12723 cat >conftest.$ac_ext <<_ACEOF
12726 cat confdefs.h >>conftest.$ac_ext
12727 cat >>conftest.$ac_ext <<_ACEOF
12728 /* end confdefs.h. */
12730 #include <sys/types.h>
12740 rm -f conftest.$ac_objext
12741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12742 (eval $ac_compile) 2>conftest.er1
12744 grep -v '^ *+' conftest.er1 >conftest.err
12746 cat conftest.err >&5
12747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12748 (exit $ac_status); } &&
12749 { ac_try='test -z "$ac_c_werror_flag"
12750 || test ! -s conftest.err'
12751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12752 (eval $ac_try) 2>&5
12754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12755 (exit $ac_status); }; } &&
12756 { ac_try='test -s conftest.$ac_objext'
12757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12758 (eval $ac_try) 2>&5
12760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12761 (exit $ac_status); }; }; then
12762 ba_cv_header_utime_h=yes
12764 echo "$as_me: failed program was:" >&5
12765 sed 's/^/| /' conftest.$ac_ext >&5
12767 ba_cv_header_utime_h=no
12769 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12771 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
12772 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
12773 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
12774 #define HAVE_UTIME_H 1
12778 echo "$as_me:$LINENO: checking for socklen_t" >&5
12779 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
12780 if test "${ba_cv_header_socklen_t+set}" = set; then
12781 echo $ECHO_N "(cached) $ECHO_C" >&6
12783 cat >conftest.$ac_ext <<_ACEOF
12786 cat confdefs.h >>conftest.$ac_ext
12787 cat >>conftest.$ac_ext <<_ACEOF
12788 /* end confdefs.h. */
12790 #include <sys/types.h>
12791 #include <sys/socket.h>
12800 rm -f conftest.$ac_objext
12801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12802 (eval $ac_compile) 2>conftest.er1
12804 grep -v '^ *+' conftest.er1 >conftest.err
12806 cat conftest.err >&5
12807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12808 (exit $ac_status); } &&
12809 { ac_try='test -z "$ac_c_werror_flag"
12810 || test ! -s conftest.err'
12811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12812 (eval $ac_try) 2>&5
12814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12815 (exit $ac_status); }; } &&
12816 { ac_try='test -s conftest.$ac_objext'
12817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12818 (eval $ac_try) 2>&5
12820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12821 (exit $ac_status); }; }; then
12822 ba_cv_header_socklen_t=yes
12824 echo "$as_me: failed program was:" >&5
12825 sed 's/^/| /' conftest.$ac_ext >&5
12827 ba_cv_header_socklen_t=no
12829 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12831 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
12832 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
12833 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
12834 #define HAVE_SOCKLEN_T 1
12838 echo "$as_me:$LINENO: checking for bigendian" >&5
12839 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
12840 if test "${ba_cv_bigendian+set}" = set; then
12841 echo $ECHO_N "(cached) $ECHO_C" >&6
12843 if test "$cross_compiling" = yes; then
12846 cat >conftest.$ac_ext <<_ACEOF
12849 cat confdefs.h >>conftest.$ac_ext
12850 cat >>conftest.$ac_ext <<_ACEOF
12851 /* end confdefs.h. */
12852 main(){long a=1L; char *p=(char *)&a; exit(*p);}
12854 rm -f conftest$ac_exeext
12855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12856 (eval $ac_link) 2>&5
12858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12861 (eval $ac_try) 2>&5
12863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864 (exit $ac_status); }; }; then
12865 ba_cv_bigendian=yes
12867 echo "$as_me: program exited with status $ac_status" >&5
12868 echo "$as_me: failed program was:" >&5
12869 sed 's/^/| /' conftest.$ac_ext >&5
12871 ( exit $ac_status )
12874 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12877 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
12878 echo "${ECHO_T}$ba_cv_bigendian" >&6
12879 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
12880 #define HAVE_BIGENDIAN 1
12885 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12886 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12887 if test "${ac_cv_c_const+set}" = set; then
12888 echo $ECHO_N "(cached) $ECHO_C" >&6
12890 cat >conftest.$ac_ext <<_ACEOF
12893 cat confdefs.h >>conftest.$ac_ext
12894 cat >>conftest.$ac_ext <<_ACEOF
12895 /* end confdefs.h. */
12900 /* FIXME: Include the comments suggested by Paul. */
12901 #ifndef __cplusplus
12902 /* Ultrix mips cc rejects this. */
12903 typedef int charset[2];
12905 /* SunOS 4.1.1 cc rejects this. */
12906 char const *const *ccp;
12908 /* NEC SVR4.0.2 mips cc rejects this. */
12909 struct point {int x, y;};
12910 static struct point const zero = {0,0};
12911 /* AIX XL C 1.02.0.0 rejects this.
12912 It does not let you subtract one const X* pointer from another in
12913 an arm of an if-expression whose if-part is not a constant
12915 const char *g = "string";
12916 ccp = &g + (g ? g-g : 0);
12917 /* HPUX 7.0 cc rejects these. */
12920 ccp = (char const *const *) p;
12921 { /* SCO 3.2v4 cc rejects this. */
12923 char const *s = 0 ? (char *) 0 : (char const *) 0;
12927 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12928 int x[] = {25, 17};
12929 const int *foo = &x[0];
12932 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12933 typedef const int *iptr;
12937 { /* AIX XL C 1.02.0.0 rejects this saying
12938 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12939 struct s { int j; const int *ap[3]; };
12940 struct s *b; b->j = 5;
12942 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12943 const int foo = 10;
12951 rm -f conftest.$ac_objext
12952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12953 (eval $ac_compile) 2>conftest.er1
12955 grep -v '^ *+' conftest.er1 >conftest.err
12957 cat conftest.err >&5
12958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12959 (exit $ac_status); } &&
12960 { ac_try='test -z "$ac_c_werror_flag"
12961 || test ! -s conftest.err'
12962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12963 (eval $ac_try) 2>&5
12965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12966 (exit $ac_status); }; } &&
12967 { ac_try='test -s conftest.$ac_objext'
12968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12969 (eval $ac_try) 2>&5
12971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12972 (exit $ac_status); }; }; then
12975 echo "$as_me: failed program was:" >&5
12976 sed 's/^/| /' conftest.$ac_ext >&5
12980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12982 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12983 echo "${ECHO_T}$ac_cv_c_const" >&6
12984 if test $ac_cv_c_const = no; then
12986 cat >>confdefs.h <<\_ACEOF
12994 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
12995 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
12997 # The order of these tests is important.
12998 cat >conftest.$ac_ext <<_ACEOF
13001 cat confdefs.h >>conftest.$ac_ext
13002 cat >>conftest.$ac_ext <<_ACEOF
13003 /* end confdefs.h. */
13004 #include <sys/statvfs.h>
13005 #include <sys/fstyp.h>
13007 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13008 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13010 grep -v '^ *+' conftest.er1 >conftest.err
13012 cat conftest.err >&5
13013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13014 (exit $ac_status); } >/dev/null; then
13015 if test -s conftest.err; then
13016 ac_cpp_err=$ac_c_preproc_warn_flag
13017 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13024 if test -z "$ac_cpp_err"; then
13025 cat >>confdefs.h <<\_ACEOF
13026 #define FSTYPE_STATVFS 1
13030 echo "$as_me: failed program was:" >&5
13031 sed 's/^/| /' conftest.$ac_ext >&5
13035 rm -f conftest.err conftest.$ac_ext
13036 if test $fstype = no; then
13037 cat >conftest.$ac_ext <<_ACEOF
13040 cat confdefs.h >>conftest.$ac_ext
13041 cat >>conftest.$ac_ext <<_ACEOF
13042 /* end confdefs.h. */
13043 #include <sys/statfs.h>
13044 #include <sys/fstyp.h>
13046 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13047 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13049 grep -v '^ *+' conftest.er1 >conftest.err
13051 cat conftest.err >&5
13052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13053 (exit $ac_status); } >/dev/null; then
13054 if test -s conftest.err; then
13055 ac_cpp_err=$ac_c_preproc_warn_flag
13056 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13063 if test -z "$ac_cpp_err"; then
13064 cat >>confdefs.h <<\_ACEOF
13065 #define FSTYPE_USG_STATFS 1
13069 echo "$as_me: failed program was:" >&5
13070 sed 's/^/| /' conftest.$ac_ext >&5
13074 rm -f conftest.err conftest.$ac_ext
13076 if test $fstype = no; then
13077 cat >conftest.$ac_ext <<_ACEOF
13080 cat confdefs.h >>conftest.$ac_ext
13081 cat >>conftest.$ac_ext <<_ACEOF
13082 /* end confdefs.h. */
13083 #include <sys/statfs.h>
13084 #include <sys/vmount.h>
13086 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13087 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13089 grep -v '^ *+' conftest.er1 >conftest.err
13091 cat conftest.err >&5
13092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13093 (exit $ac_status); } >/dev/null; then
13094 if test -s conftest.err; then
13095 ac_cpp_err=$ac_c_preproc_warn_flag
13096 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13103 if test -z "$ac_cpp_err"; then
13104 cat >>confdefs.h <<\_ACEOF
13105 #define FSTYPE_AIX_STATFS 1
13109 echo "$as_me: failed program was:" >&5
13110 sed 's/^/| /' conftest.$ac_ext >&5
13114 rm -f conftest.err conftest.$ac_ext
13116 if test $fstype = no; then
13117 cat >conftest.$ac_ext <<_ACEOF
13120 cat confdefs.h >>conftest.$ac_ext
13121 cat >>conftest.$ac_ext <<_ACEOF
13122 /* end confdefs.h. */
13123 #include <mntent.h>
13125 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13126 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13128 grep -v '^ *+' conftest.er1 >conftest.err
13130 cat conftest.err >&5
13131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13132 (exit $ac_status); } >/dev/null; then
13133 if test -s conftest.err; then
13134 ac_cpp_err=$ac_c_preproc_warn_flag
13135 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13142 if test -z "$ac_cpp_err"; then
13143 cat >>confdefs.h <<\_ACEOF
13144 #define FSTYPE_MNTENT 1
13148 echo "$as_me: failed program was:" >&5
13149 sed 's/^/| /' conftest.$ac_ext >&5
13153 rm -f conftest.err conftest.$ac_ext
13155 if test $fstype = no; then
13156 cat >conftest.$ac_ext <<_ACEOF
13159 cat confdefs.h >>conftest.$ac_ext
13160 cat >>conftest.$ac_ext <<_ACEOF
13161 /* end confdefs.h. */
13162 #include <sys/mount.h>
13165 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13166 $EGREP "f_type;" >/dev/null 2>&1; then
13167 cat >>confdefs.h <<\_ACEOF
13168 #define FSTYPE_STATFS 1
13175 if test $fstype = no; then
13176 cat >conftest.$ac_ext <<_ACEOF
13179 cat confdefs.h >>conftest.$ac_ext
13180 cat >>conftest.$ac_ext <<_ACEOF
13181 /* end confdefs.h. */
13182 #include <sys/mount.h>
13183 #include <sys/fs_types.h>
13185 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13186 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13188 grep -v '^ *+' conftest.er1 >conftest.err
13190 cat conftest.err >&5
13191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13192 (exit $ac_status); } >/dev/null; then
13193 if test -s conftest.err; then
13194 ac_cpp_err=$ac_c_preproc_warn_flag
13195 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13202 if test -z "$ac_cpp_err"; then
13203 cat >>confdefs.h <<\_ACEOF
13204 #define FSTYPE_GETMNT 1
13208 echo "$as_me: failed program was:" >&5
13209 sed 's/^/| /' conftest.$ac_ext >&5
13213 rm -f conftest.err conftest.$ac_ext
13215 echo "$as_me:$LINENO: result: $fstype" >&5
13216 echo "${ECHO_T}$fstype" >&6
13218 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13219 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
13220 if test "${ac_cv_type_signal+set}" = set; then
13221 echo $ECHO_N "(cached) $ECHO_C" >&6
13223 cat >conftest.$ac_ext <<_ACEOF
13226 cat confdefs.h >>conftest.$ac_ext
13227 cat >>conftest.$ac_ext <<_ACEOF
13228 /* end confdefs.h. */
13229 #include <sys/types.h>
13230 #include <signal.h>
13235 extern "C" void (*signal (int, void (*)(int)))(int);
13237 void (*signal ()) ();
13248 rm -f conftest.$ac_objext
13249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13250 (eval $ac_compile) 2>conftest.er1
13252 grep -v '^ *+' conftest.er1 >conftest.err
13254 cat conftest.err >&5
13255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13256 (exit $ac_status); } &&
13257 { ac_try='test -z "$ac_c_werror_flag"
13258 || test ! -s conftest.err'
13259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13260 (eval $ac_try) 2>&5
13262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13263 (exit $ac_status); }; } &&
13264 { ac_try='test -s conftest.$ac_objext'
13265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13266 (eval $ac_try) 2>&5
13268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13269 (exit $ac_status); }; }; then
13270 ac_cv_type_signal=void
13272 echo "$as_me: failed program was:" >&5
13273 sed 's/^/| /' conftest.$ac_ext >&5
13275 ac_cv_type_signal=int
13277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13279 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13280 echo "${ECHO_T}$ac_cv_type_signal" >&6
13282 cat >>confdefs.h <<_ACEOF
13283 #define RETSIGTYPE $ac_cv_type_signal
13288 echo "$as_me:$LINENO: checking for type of signal functions" >&5
13289 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
13290 if test "${bash_cv_signal_vintage+set}" = set; then
13291 echo $ECHO_N "(cached) $ECHO_C" >&6
13294 cat >conftest.$ac_ext <<_ACEOF
13297 cat confdefs.h >>conftest.$ac_ext
13298 cat >>conftest.$ac_ext <<_ACEOF
13299 /* end confdefs.h. */
13300 #include <signal.h>
13306 struct sigaction sa;
13307 sigemptyset(&ss); sigsuspend(&ss);
13308 sigaction(SIGINT, &sa, (struct sigaction *) 0);
13309 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
13315 rm -f conftest.$ac_objext conftest$ac_exeext
13316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13317 (eval $ac_link) 2>conftest.er1
13319 grep -v '^ *+' conftest.er1 >conftest.err
13321 cat conftest.err >&5
13322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13323 (exit $ac_status); } &&
13324 { ac_try='test -z "$ac_c_werror_flag"
13325 || test ! -s conftest.err'
13326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13327 (eval $ac_try) 2>&5
13329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13330 (exit $ac_status); }; } &&
13331 { ac_try='test -s conftest$ac_exeext'
13332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13333 (eval $ac_try) 2>&5
13335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13336 (exit $ac_status); }; }; then
13337 bash_cv_signal_vintage=posix
13339 echo "$as_me: failed program was:" >&5
13340 sed 's/^/| /' conftest.$ac_ext >&5
13343 cat >conftest.$ac_ext <<_ACEOF
13346 cat confdefs.h >>conftest.$ac_ext
13347 cat >>conftest.$ac_ext <<_ACEOF
13348 /* end confdefs.h. */
13349 #include <signal.h>
13354 int mask = sigmask(SIGINT);
13355 sigsetmask(mask); sigblock(mask); sigpause(mask);
13361 rm -f conftest.$ac_objext conftest$ac_exeext
13362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13363 (eval $ac_link) 2>conftest.er1
13365 grep -v '^ *+' conftest.er1 >conftest.err
13367 cat conftest.err >&5
13368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13369 (exit $ac_status); } &&
13370 { ac_try='test -z "$ac_c_werror_flag"
13371 || test ! -s conftest.err'
13372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13373 (eval $ac_try) 2>&5
13375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13376 (exit $ac_status); }; } &&
13377 { ac_try='test -s conftest$ac_exeext'
13378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13379 (eval $ac_try) 2>&5
13381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13382 (exit $ac_status); }; }; then
13383 bash_cv_signal_vintage=4.2bsd
13385 echo "$as_me: failed program was:" >&5
13386 sed 's/^/| /' conftest.$ac_ext >&5
13389 cat >conftest.$ac_ext <<_ACEOF
13392 cat confdefs.h >>conftest.$ac_ext
13393 cat >>conftest.$ac_ext <<_ACEOF
13394 /* end confdefs.h. */
13396 #include <signal.h>
13397 RETSIGTYPE foo() { }
13402 int mask = sigmask(SIGINT);
13403 sigset(SIGINT, foo); sigrelse(SIGINT);
13404 sighold(SIGINT); sigpause(SIGINT);
13410 rm -f conftest.$ac_objext conftest$ac_exeext
13411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13412 (eval $ac_link) 2>conftest.er1
13414 grep -v '^ *+' conftest.er1 >conftest.err
13416 cat conftest.err >&5
13417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13418 (exit $ac_status); } &&
13419 { ac_try='test -z "$ac_c_werror_flag"
13420 || test ! -s conftest.err'
13421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13422 (eval $ac_try) 2>&5
13424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425 (exit $ac_status); }; } &&
13426 { ac_try='test -s conftest$ac_exeext'
13427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13428 (eval $ac_try) 2>&5
13430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13431 (exit $ac_status); }; }; then
13432 bash_cv_signal_vintage=svr3
13434 echo "$as_me: failed program was:" >&5
13435 sed 's/^/| /' conftest.$ac_ext >&5
13437 bash_cv_signal_vintage=v7
13440 rm -f conftest.err conftest.$ac_objext \
13441 conftest$ac_exeext conftest.$ac_ext
13444 rm -f conftest.err conftest.$ac_objext \
13445 conftest$ac_exeext conftest.$ac_ext
13448 rm -f conftest.err conftest.$ac_objext \
13449 conftest$ac_exeext conftest.$ac_ext
13453 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
13454 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
13455 if test "$bash_cv_signal_vintage" = posix; then
13456 cat >>confdefs.h <<\_ACEOF
13457 #define HAVE_POSIX_SIGNALS 1
13460 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
13461 cat >>confdefs.h <<\_ACEOF
13462 #define HAVE_BSD_SIGNALS 1
13465 elif test "$bash_cv_signal_vintage" = svr3; then
13466 cat >>confdefs.h <<\_ACEOF
13467 #define HAVE_USG_SIGHOLD 1
13472 echo "$as_me:$LINENO: checking for mode_t" >&5
13473 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
13474 if test "${ac_cv_type_mode_t+set}" = set; then
13475 echo $ECHO_N "(cached) $ECHO_C" >&6
13477 cat >conftest.$ac_ext <<_ACEOF
13480 cat confdefs.h >>conftest.$ac_ext
13481 cat >>conftest.$ac_ext <<_ACEOF
13482 /* end confdefs.h. */
13483 $ac_includes_default
13489 if (sizeof (mode_t))
13495 rm -f conftest.$ac_objext
13496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13497 (eval $ac_compile) 2>conftest.er1
13499 grep -v '^ *+' conftest.er1 >conftest.err
13501 cat conftest.err >&5
13502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13503 (exit $ac_status); } &&
13504 { ac_try='test -z "$ac_c_werror_flag"
13505 || test ! -s conftest.err'
13506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13507 (eval $ac_try) 2>&5
13509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13510 (exit $ac_status); }; } &&
13511 { ac_try='test -s conftest.$ac_objext'
13512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13513 (eval $ac_try) 2>&5
13515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13516 (exit $ac_status); }; }; then
13517 ac_cv_type_mode_t=yes
13519 echo "$as_me: failed program was:" >&5
13520 sed 's/^/| /' conftest.$ac_ext >&5
13522 ac_cv_type_mode_t=no
13524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13526 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
13527 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
13528 if test $ac_cv_type_mode_t = yes; then
13532 cat >>confdefs.h <<_ACEOF
13538 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
13539 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
13540 if test "${ac_cv_type_uid_t+set}" = set; then
13541 echo $ECHO_N "(cached) $ECHO_C" >&6
13543 cat >conftest.$ac_ext <<_ACEOF
13546 cat confdefs.h >>conftest.$ac_ext
13547 cat >>conftest.$ac_ext <<_ACEOF
13548 /* end confdefs.h. */
13549 #include <sys/types.h>
13552 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13553 $EGREP "uid_t" >/dev/null 2>&1; then
13554 ac_cv_type_uid_t=yes
13556 ac_cv_type_uid_t=no
13561 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
13562 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
13563 if test $ac_cv_type_uid_t = no; then
13565 cat >>confdefs.h <<\_ACEOF
13570 cat >>confdefs.h <<\_ACEOF
13576 echo "$as_me:$LINENO: checking for size_t" >&5
13577 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
13578 if test "${ac_cv_type_size_t+set}" = set; then
13579 echo $ECHO_N "(cached) $ECHO_C" >&6
13581 cat >conftest.$ac_ext <<_ACEOF
13584 cat confdefs.h >>conftest.$ac_ext
13585 cat >>conftest.$ac_ext <<_ACEOF
13586 /* end confdefs.h. */
13587 $ac_includes_default
13593 if (sizeof (size_t))
13599 rm -f conftest.$ac_objext
13600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13601 (eval $ac_compile) 2>conftest.er1
13603 grep -v '^ *+' conftest.er1 >conftest.err
13605 cat conftest.err >&5
13606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13607 (exit $ac_status); } &&
13608 { ac_try='test -z "$ac_c_werror_flag"
13609 || test ! -s conftest.err'
13610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13611 (eval $ac_try) 2>&5
13613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13614 (exit $ac_status); }; } &&
13615 { ac_try='test -s conftest.$ac_objext'
13616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13617 (eval $ac_try) 2>&5
13619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13620 (exit $ac_status); }; }; then
13621 ac_cv_type_size_t=yes
13623 echo "$as_me: failed program was:" >&5
13624 sed 's/^/| /' conftest.$ac_ext >&5
13626 ac_cv_type_size_t=no
13628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13630 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13631 echo "${ECHO_T}$ac_cv_type_size_t" >&6
13632 if test $ac_cv_type_size_t = yes; then
13636 cat >>confdefs.h <<_ACEOF
13637 #define size_t unsigned
13642 echo "$as_me:$LINENO: checking for pid_t" >&5
13643 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
13644 if test "${ac_cv_type_pid_t+set}" = set; then
13645 echo $ECHO_N "(cached) $ECHO_C" >&6
13647 cat >conftest.$ac_ext <<_ACEOF
13650 cat confdefs.h >>conftest.$ac_ext
13651 cat >>conftest.$ac_ext <<_ACEOF
13652 /* end confdefs.h. */
13653 $ac_includes_default
13659 if (sizeof (pid_t))
13665 rm -f conftest.$ac_objext
13666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13667 (eval $ac_compile) 2>conftest.er1
13669 grep -v '^ *+' conftest.er1 >conftest.err
13671 cat conftest.err >&5
13672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13673 (exit $ac_status); } &&
13674 { ac_try='test -z "$ac_c_werror_flag"
13675 || test ! -s conftest.err'
13676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13677 (eval $ac_try) 2>&5
13679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13680 (exit $ac_status); }; } &&
13681 { ac_try='test -s conftest.$ac_objext'
13682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13683 (eval $ac_try) 2>&5
13685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13686 (exit $ac_status); }; }; then
13687 ac_cv_type_pid_t=yes
13689 echo "$as_me: failed program was:" >&5
13690 sed 's/^/| /' conftest.$ac_ext >&5
13692 ac_cv_type_pid_t=no
13694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13696 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
13697 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
13698 if test $ac_cv_type_pid_t = yes; then
13702 cat >>confdefs.h <<_ACEOF
13708 echo "$as_me:$LINENO: checking for off_t" >&5
13709 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
13710 if test "${ac_cv_type_off_t+set}" = set; then
13711 echo $ECHO_N "(cached) $ECHO_C" >&6
13713 cat >conftest.$ac_ext <<_ACEOF
13716 cat confdefs.h >>conftest.$ac_ext
13717 cat >>conftest.$ac_ext <<_ACEOF
13718 /* end confdefs.h. */
13719 $ac_includes_default
13725 if (sizeof (off_t))
13731 rm -f conftest.$ac_objext
13732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13733 (eval $ac_compile) 2>conftest.er1
13735 grep -v '^ *+' conftest.er1 >conftest.err
13737 cat conftest.err >&5
13738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13739 (exit $ac_status); } &&
13740 { ac_try='test -z "$ac_c_werror_flag"
13741 || test ! -s conftest.err'
13742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13743 (eval $ac_try) 2>&5
13745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13746 (exit $ac_status); }; } &&
13747 { ac_try='test -s conftest.$ac_objext'
13748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13749 (eval $ac_try) 2>&5
13751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13752 (exit $ac_status); }; }; then
13753 ac_cv_type_off_t=yes
13755 echo "$as_me: failed program was:" >&5
13756 sed 's/^/| /' conftest.$ac_ext >&5
13758 ac_cv_type_off_t=no
13760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13762 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
13763 echo "${ECHO_T}$ac_cv_type_off_t" >&6
13764 if test $ac_cv_type_off_t = yes; then
13768 cat >>confdefs.h <<_ACEOF
13774 echo "$as_me:$LINENO: checking for ino_t" >&5
13775 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
13776 if test "${ac_cv_type_ino_t+set}" = set; then
13777 echo $ECHO_N "(cached) $ECHO_C" >&6
13779 cat >conftest.$ac_ext <<_ACEOF
13782 cat confdefs.h >>conftest.$ac_ext
13783 cat >>conftest.$ac_ext <<_ACEOF
13784 /* end confdefs.h. */
13785 $ac_includes_default
13791 if (sizeof (ino_t))
13797 rm -f conftest.$ac_objext
13798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13799 (eval $ac_compile) 2>conftest.er1
13801 grep -v '^ *+' conftest.er1 >conftest.err
13803 cat conftest.err >&5
13804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13805 (exit $ac_status); } &&
13806 { ac_try='test -z "$ac_c_werror_flag"
13807 || test ! -s conftest.err'
13808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13809 (eval $ac_try) 2>&5
13811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13812 (exit $ac_status); }; } &&
13813 { ac_try='test -s conftest.$ac_objext'
13814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13815 (eval $ac_try) 2>&5
13817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13818 (exit $ac_status); }; }; then
13819 ac_cv_type_ino_t=yes
13821 echo "$as_me: failed program was:" >&5
13822 sed 's/^/| /' conftest.$ac_ext >&5
13824 ac_cv_type_ino_t=no
13826 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13828 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
13829 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
13830 if test $ac_cv_type_ino_t = yes; then
13834 cat >>confdefs.h <<_ACEOF
13835 #define ino_t unsigned long
13840 echo "$as_me:$LINENO: checking for dev_t" >&5
13841 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
13842 if test "${ac_cv_type_dev_t+set}" = set; then
13843 echo $ECHO_N "(cached) $ECHO_C" >&6
13845 cat >conftest.$ac_ext <<_ACEOF
13848 cat confdefs.h >>conftest.$ac_ext
13849 cat >>conftest.$ac_ext <<_ACEOF
13850 /* end confdefs.h. */
13851 $ac_includes_default
13857 if (sizeof (dev_t))
13863 rm -f conftest.$ac_objext
13864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13865 (eval $ac_compile) 2>conftest.er1
13867 grep -v '^ *+' conftest.er1 >conftest.err
13869 cat conftest.err >&5
13870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13871 (exit $ac_status); } &&
13872 { ac_try='test -z "$ac_c_werror_flag"
13873 || test ! -s conftest.err'
13874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13875 (eval $ac_try) 2>&5
13877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13878 (exit $ac_status); }; } &&
13879 { ac_try='test -s conftest.$ac_objext'
13880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13881 (eval $ac_try) 2>&5
13883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13884 (exit $ac_status); }; }; then
13885 ac_cv_type_dev_t=yes
13887 echo "$as_me: failed program was:" >&5
13888 sed 's/^/| /' conftest.$ac_ext >&5
13890 ac_cv_type_dev_t=no
13892 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13894 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
13895 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
13896 if test $ac_cv_type_dev_t = yes; then
13900 cat >>confdefs.h <<_ACEOF
13901 #define dev_t unsigned long
13906 echo "$as_me:$LINENO: checking for daddr_t" >&5
13907 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
13908 if test "${ac_cv_type_daddr_t+set}" = set; then
13909 echo $ECHO_N "(cached) $ECHO_C" >&6
13911 cat >conftest.$ac_ext <<_ACEOF
13914 cat confdefs.h >>conftest.$ac_ext
13915 cat >>conftest.$ac_ext <<_ACEOF
13916 /* end confdefs.h. */
13917 $ac_includes_default
13923 if (sizeof (daddr_t))
13929 rm -f conftest.$ac_objext
13930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13931 (eval $ac_compile) 2>conftest.er1
13933 grep -v '^ *+' conftest.er1 >conftest.err
13935 cat conftest.err >&5
13936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13937 (exit $ac_status); } &&
13938 { ac_try='test -z "$ac_c_werror_flag"
13939 || test ! -s conftest.err'
13940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13941 (eval $ac_try) 2>&5
13943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13944 (exit $ac_status); }; } &&
13945 { ac_try='test -s conftest.$ac_objext'
13946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13947 (eval $ac_try) 2>&5
13949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13950 (exit $ac_status); }; }; then
13951 ac_cv_type_daddr_t=yes
13953 echo "$as_me: failed program was:" >&5
13954 sed 's/^/| /' conftest.$ac_ext >&5
13956 ac_cv_type_daddr_t=no
13958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13960 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
13961 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
13962 if test $ac_cv_type_daddr_t = yes; then
13966 cat >>confdefs.h <<_ACEOF
13967 #define daddr_t long
13972 echo "$as_me:$LINENO: checking for major_t" >&5
13973 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
13974 if test "${ac_cv_type_major_t+set}" = set; then
13975 echo $ECHO_N "(cached) $ECHO_C" >&6
13977 cat >conftest.$ac_ext <<_ACEOF
13980 cat confdefs.h >>conftest.$ac_ext
13981 cat >>conftest.$ac_ext <<_ACEOF
13982 /* end confdefs.h. */
13983 $ac_includes_default
13989 if (sizeof (major_t))
13995 rm -f conftest.$ac_objext
13996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13997 (eval $ac_compile) 2>conftest.er1
13999 grep -v '^ *+' conftest.er1 >conftest.err
14001 cat conftest.err >&5
14002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14003 (exit $ac_status); } &&
14004 { ac_try='test -z "$ac_c_werror_flag"
14005 || test ! -s conftest.err'
14006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14007 (eval $ac_try) 2>&5
14009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14010 (exit $ac_status); }; } &&
14011 { ac_try='test -s conftest.$ac_objext'
14012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14013 (eval $ac_try) 2>&5
14015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14016 (exit $ac_status); }; }; then
14017 ac_cv_type_major_t=yes
14019 echo "$as_me: failed program was:" >&5
14020 sed 's/^/| /' conftest.$ac_ext >&5
14022 ac_cv_type_major_t=no
14024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14026 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
14027 echo "${ECHO_T}$ac_cv_type_major_t" >&6
14028 if test $ac_cv_type_major_t = yes; then
14032 cat >>confdefs.h <<_ACEOF
14033 #define major_t int
14038 echo "$as_me:$LINENO: checking for minor_t" >&5
14039 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
14040 if test "${ac_cv_type_minor_t+set}" = set; then
14041 echo $ECHO_N "(cached) $ECHO_C" >&6
14043 cat >conftest.$ac_ext <<_ACEOF
14046 cat confdefs.h >>conftest.$ac_ext
14047 cat >>conftest.$ac_ext <<_ACEOF
14048 /* end confdefs.h. */
14049 $ac_includes_default
14055 if (sizeof (minor_t))
14061 rm -f conftest.$ac_objext
14062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14063 (eval $ac_compile) 2>conftest.er1
14065 grep -v '^ *+' conftest.er1 >conftest.err
14067 cat conftest.err >&5
14068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14069 (exit $ac_status); } &&
14070 { ac_try='test -z "$ac_c_werror_flag"
14071 || test ! -s conftest.err'
14072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14073 (eval $ac_try) 2>&5
14075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14076 (exit $ac_status); }; } &&
14077 { ac_try='test -s conftest.$ac_objext'
14078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14079 (eval $ac_try) 2>&5
14081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14082 (exit $ac_status); }; }; then
14083 ac_cv_type_minor_t=yes
14085 echo "$as_me: failed program was:" >&5
14086 sed 's/^/| /' conftest.$ac_ext >&5
14088 ac_cv_type_minor_t=no
14090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14092 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
14093 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
14094 if test $ac_cv_type_minor_t = yes; then
14098 cat >>confdefs.h <<_ACEOF
14099 #define minor_t int
14104 echo "$as_me:$LINENO: checking for ssize_t" >&5
14105 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
14106 if test "${ac_cv_type_ssize_t+set}" = set; then
14107 echo $ECHO_N "(cached) $ECHO_C" >&6
14109 cat >conftest.$ac_ext <<_ACEOF
14112 cat confdefs.h >>conftest.$ac_ext
14113 cat >>conftest.$ac_ext <<_ACEOF
14114 /* end confdefs.h. */
14115 $ac_includes_default
14121 if (sizeof (ssize_t))
14127 rm -f conftest.$ac_objext
14128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14129 (eval $ac_compile) 2>conftest.er1
14131 grep -v '^ *+' conftest.er1 >conftest.err
14133 cat conftest.err >&5
14134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14135 (exit $ac_status); } &&
14136 { ac_try='test -z "$ac_c_werror_flag"
14137 || test ! -s conftest.err'
14138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14139 (eval $ac_try) 2>&5
14141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14142 (exit $ac_status); }; } &&
14143 { ac_try='test -s conftest.$ac_objext'
14144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14145 (eval $ac_try) 2>&5
14147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14148 (exit $ac_status); }; }; then
14149 ac_cv_type_ssize_t=yes
14151 echo "$as_me: failed program was:" >&5
14152 sed 's/^/| /' conftest.$ac_ext >&5
14154 ac_cv_type_ssize_t=no
14156 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14158 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
14159 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
14160 if test $ac_cv_type_ssize_t = yes; then
14164 cat >>confdefs.h <<_ACEOF
14165 #define ssize_t int
14170 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
14171 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
14172 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
14173 echo $ECHO_N "(cached) $ECHO_C" >&6
14175 cat >conftest.$ac_ext <<_ACEOF
14178 cat confdefs.h >>conftest.$ac_ext
14179 cat >>conftest.$ac_ext <<_ACEOF
14180 /* end confdefs.h. */
14181 $ac_includes_default
14185 static struct stat ac_aggr;
14186 if (ac_aggr.st_blocks)
14192 rm -f conftest.$ac_objext
14193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14194 (eval $ac_compile) 2>conftest.er1
14196 grep -v '^ *+' conftest.er1 >conftest.err
14198 cat conftest.err >&5
14199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14200 (exit $ac_status); } &&
14201 { ac_try='test -z "$ac_c_werror_flag"
14202 || test ! -s conftest.err'
14203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14204 (eval $ac_try) 2>&5
14206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14207 (exit $ac_status); }; } &&
14208 { ac_try='test -s conftest.$ac_objext'
14209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14210 (eval $ac_try) 2>&5
14212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14213 (exit $ac_status); }; }; then
14214 ac_cv_member_struct_stat_st_blocks=yes
14216 echo "$as_me: failed program was:" >&5
14217 sed 's/^/| /' conftest.$ac_ext >&5
14219 cat >conftest.$ac_ext <<_ACEOF
14222 cat confdefs.h >>conftest.$ac_ext
14223 cat >>conftest.$ac_ext <<_ACEOF
14224 /* end confdefs.h. */
14225 $ac_includes_default
14229 static struct stat ac_aggr;
14230 if (sizeof ac_aggr.st_blocks)
14236 rm -f conftest.$ac_objext
14237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14238 (eval $ac_compile) 2>conftest.er1
14240 grep -v '^ *+' conftest.er1 >conftest.err
14242 cat conftest.err >&5
14243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14244 (exit $ac_status); } &&
14245 { ac_try='test -z "$ac_c_werror_flag"
14246 || test ! -s conftest.err'
14247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14248 (eval $ac_try) 2>&5
14250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14251 (exit $ac_status); }; } &&
14252 { ac_try='test -s conftest.$ac_objext'
14253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14254 (eval $ac_try) 2>&5
14256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14257 (exit $ac_status); }; }; then
14258 ac_cv_member_struct_stat_st_blocks=yes
14260 echo "$as_me: failed program was:" >&5
14261 sed 's/^/| /' conftest.$ac_ext >&5
14263 ac_cv_member_struct_stat_st_blocks=no
14265 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14267 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14269 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
14270 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
14271 if test $ac_cv_member_struct_stat_st_blocks = yes; then
14273 cat >>confdefs.h <<_ACEOF
14274 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
14278 cat >>confdefs.h <<\_ACEOF
14279 #define HAVE_ST_BLOCKS 1
14284 "fileblocks.$ac_objext" | \
14285 *" fileblocks.$ac_objext" | \
14286 "fileblocks.$ac_objext "* | \
14287 *" fileblocks.$ac_objext "* ) ;;
14288 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
14295 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
14296 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
14297 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
14298 echo $ECHO_N "(cached) $ECHO_C" >&6
14300 cat >conftest.$ac_ext <<_ACEOF
14303 cat confdefs.h >>conftest.$ac_ext
14304 cat >>conftest.$ac_ext <<_ACEOF
14305 /* end confdefs.h. */
14306 $ac_includes_default
14310 static struct stat ac_aggr;
14311 if (ac_aggr.st_rdev)
14317 rm -f conftest.$ac_objext
14318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14319 (eval $ac_compile) 2>conftest.er1
14321 grep -v '^ *+' conftest.er1 >conftest.err
14323 cat conftest.err >&5
14324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14325 (exit $ac_status); } &&
14326 { ac_try='test -z "$ac_c_werror_flag"
14327 || test ! -s conftest.err'
14328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14329 (eval $ac_try) 2>&5
14331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14332 (exit $ac_status); }; } &&
14333 { ac_try='test -s conftest.$ac_objext'
14334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14335 (eval $ac_try) 2>&5
14337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14338 (exit $ac_status); }; }; then
14339 ac_cv_member_struct_stat_st_rdev=yes
14341 echo "$as_me: failed program was:" >&5
14342 sed 's/^/| /' conftest.$ac_ext >&5
14344 cat >conftest.$ac_ext <<_ACEOF
14347 cat confdefs.h >>conftest.$ac_ext
14348 cat >>conftest.$ac_ext <<_ACEOF
14349 /* end confdefs.h. */
14350 $ac_includes_default
14354 static struct stat ac_aggr;
14355 if (sizeof ac_aggr.st_rdev)
14361 rm -f conftest.$ac_objext
14362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14363 (eval $ac_compile) 2>conftest.er1
14365 grep -v '^ *+' conftest.er1 >conftest.err
14367 cat conftest.err >&5
14368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14369 (exit $ac_status); } &&
14370 { ac_try='test -z "$ac_c_werror_flag"
14371 || test ! -s conftest.err'
14372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14373 (eval $ac_try) 2>&5
14375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14376 (exit $ac_status); }; } &&
14377 { ac_try='test -s conftest.$ac_objext'
14378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14379 (eval $ac_try) 2>&5
14381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14382 (exit $ac_status); }; }; then
14383 ac_cv_member_struct_stat_st_rdev=yes
14385 echo "$as_me: failed program was:" >&5
14386 sed 's/^/| /' conftest.$ac_ext >&5
14388 ac_cv_member_struct_stat_st_rdev=no
14390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14394 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
14395 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
14396 if test $ac_cv_member_struct_stat_st_rdev = yes; then
14398 cat >>confdefs.h <<_ACEOF
14399 #define HAVE_STRUCT_STAT_ST_RDEV 1
14403 cat >>confdefs.h <<\_ACEOF
14404 #define HAVE_ST_RDEV 1
14410 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
14411 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
14412 if test "${ac_cv_struct_tm+set}" = set; then
14413 echo $ECHO_N "(cached) $ECHO_C" >&6
14415 cat >conftest.$ac_ext <<_ACEOF
14418 cat confdefs.h >>conftest.$ac_ext
14419 cat >>conftest.$ac_ext <<_ACEOF
14420 /* end confdefs.h. */
14421 #include <sys/types.h>
14427 struct tm *tp; tp->tm_sec;
14432 rm -f conftest.$ac_objext
14433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14434 (eval $ac_compile) 2>conftest.er1
14436 grep -v '^ *+' conftest.er1 >conftest.err
14438 cat conftest.err >&5
14439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14440 (exit $ac_status); } &&
14441 { ac_try='test -z "$ac_c_werror_flag"
14442 || test ! -s conftest.err'
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); }; } &&
14448 { ac_try='test -s conftest.$ac_objext'
14449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14450 (eval $ac_try) 2>&5
14452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453 (exit $ac_status); }; }; then
14454 ac_cv_struct_tm=time.h
14456 echo "$as_me: failed program was:" >&5
14457 sed 's/^/| /' conftest.$ac_ext >&5
14459 ac_cv_struct_tm=sys/time.h
14461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14463 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
14464 echo "${ECHO_T}$ac_cv_struct_tm" >&6
14465 if test $ac_cv_struct_tm = sys/time.h; then
14467 cat >>confdefs.h <<\_ACEOF
14468 #define TM_IN_SYS_TIME 1
14473 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14474 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14475 if test "${ac_cv_c_const+set}" = set; then
14476 echo $ECHO_N "(cached) $ECHO_C" >&6
14478 cat >conftest.$ac_ext <<_ACEOF
14481 cat confdefs.h >>conftest.$ac_ext
14482 cat >>conftest.$ac_ext <<_ACEOF
14483 /* end confdefs.h. */
14488 /* FIXME: Include the comments suggested by Paul. */
14489 #ifndef __cplusplus
14490 /* Ultrix mips cc rejects this. */
14491 typedef int charset[2];
14493 /* SunOS 4.1.1 cc rejects this. */
14494 char const *const *ccp;
14496 /* NEC SVR4.0.2 mips cc rejects this. */
14497 struct point {int x, y;};
14498 static struct point const zero = {0,0};
14499 /* AIX XL C 1.02.0.0 rejects this.
14500 It does not let you subtract one const X* pointer from another in
14501 an arm of an if-expression whose if-part is not a constant
14503 const char *g = "string";
14504 ccp = &g + (g ? g-g : 0);
14505 /* HPUX 7.0 cc rejects these. */
14508 ccp = (char const *const *) p;
14509 { /* SCO 3.2v4 cc rejects this. */
14511 char const *s = 0 ? (char *) 0 : (char const *) 0;
14515 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14516 int x[] = {25, 17};
14517 const int *foo = &x[0];
14520 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14521 typedef const int *iptr;
14525 { /* AIX XL C 1.02.0.0 rejects this saying
14526 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14527 struct s { int j; const int *ap[3]; };
14528 struct s *b; b->j = 5;
14530 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14531 const int foo = 10;
14539 rm -f conftest.$ac_objext
14540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14541 (eval $ac_compile) 2>conftest.er1
14543 grep -v '^ *+' conftest.er1 >conftest.err
14545 cat conftest.err >&5
14546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14547 (exit $ac_status); } &&
14548 { ac_try='test -z "$ac_c_werror_flag"
14549 || test ! -s conftest.err'
14550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14551 (eval $ac_try) 2>&5
14553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14554 (exit $ac_status); }; } &&
14555 { ac_try='test -s conftest.$ac_objext'
14556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14557 (eval $ac_try) 2>&5
14559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14560 (exit $ac_status); }; }; then
14563 echo "$as_me: failed program was:" >&5
14564 sed 's/^/| /' conftest.$ac_ext >&5
14568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14570 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14571 echo "${ECHO_T}$ac_cv_c_const" >&6
14572 if test $ac_cv_c_const = no; then
14574 cat >>confdefs.h <<\_ACEOF
14582 echo "$as_me:$LINENO: checking for char" >&5
14583 echo $ECHO_N "checking for char... $ECHO_C" >&6
14584 if test "${ac_cv_type_char+set}" = set; then
14585 echo $ECHO_N "(cached) $ECHO_C" >&6
14587 cat >conftest.$ac_ext <<_ACEOF
14590 cat confdefs.h >>conftest.$ac_ext
14591 cat >>conftest.$ac_ext <<_ACEOF
14592 /* end confdefs.h. */
14593 $ac_includes_default
14605 rm -f conftest.$ac_objext
14606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14607 (eval $ac_compile) 2>conftest.er1
14609 grep -v '^ *+' conftest.er1 >conftest.err
14611 cat conftest.err >&5
14612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14613 (exit $ac_status); } &&
14614 { ac_try='test -z "$ac_c_werror_flag"
14615 || test ! -s conftest.err'
14616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14617 (eval $ac_try) 2>&5
14619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14620 (exit $ac_status); }; } &&
14621 { ac_try='test -s conftest.$ac_objext'
14622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14623 (eval $ac_try) 2>&5
14625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14626 (exit $ac_status); }; }; then
14627 ac_cv_type_char=yes
14629 echo "$as_me: failed program was:" >&5
14630 sed 's/^/| /' conftest.$ac_ext >&5
14634 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14636 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14637 echo "${ECHO_T}$ac_cv_type_char" >&6
14639 echo "$as_me:$LINENO: checking size of char" >&5
14640 echo $ECHO_N "checking size of char... $ECHO_C" >&6
14641 if test "${ac_cv_sizeof_char+set}" = set; then
14642 echo $ECHO_N "(cached) $ECHO_C" >&6
14644 if test "$ac_cv_type_char" = yes; then
14645 # The cast to unsigned long works around a bug in the HP C Compiler
14646 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14647 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14648 # This bug is HP SR number 8606223364.
14649 if test "$cross_compiling" = yes; then
14650 # Depending upon the size, compute the lo and hi bounds.
14651 cat >conftest.$ac_ext <<_ACEOF
14654 cat confdefs.h >>conftest.$ac_ext
14655 cat >>conftest.$ac_ext <<_ACEOF
14656 /* end confdefs.h. */
14657 $ac_includes_default
14661 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
14668 rm -f conftest.$ac_objext
14669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14670 (eval $ac_compile) 2>conftest.er1
14672 grep -v '^ *+' conftest.er1 >conftest.err
14674 cat conftest.err >&5
14675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14676 (exit $ac_status); } &&
14677 { ac_try='test -z "$ac_c_werror_flag"
14678 || test ! -s conftest.err'
14679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14680 (eval $ac_try) 2>&5
14682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14683 (exit $ac_status); }; } &&
14684 { ac_try='test -s conftest.$ac_objext'
14685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14686 (eval $ac_try) 2>&5
14688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14689 (exit $ac_status); }; }; then
14692 cat >conftest.$ac_ext <<_ACEOF
14695 cat confdefs.h >>conftest.$ac_ext
14696 cat >>conftest.$ac_ext <<_ACEOF
14697 /* end confdefs.h. */
14698 $ac_includes_default
14702 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14709 rm -f conftest.$ac_objext
14710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14711 (eval $ac_compile) 2>conftest.er1
14713 grep -v '^ *+' conftest.er1 >conftest.err
14715 cat conftest.err >&5
14716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14717 (exit $ac_status); } &&
14718 { ac_try='test -z "$ac_c_werror_flag"
14719 || test ! -s conftest.err'
14720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14721 (eval $ac_try) 2>&5
14723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14724 (exit $ac_status); }; } &&
14725 { ac_try='test -s conftest.$ac_objext'
14726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14727 (eval $ac_try) 2>&5
14729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14730 (exit $ac_status); }; }; then
14731 ac_hi=$ac_mid; break
14733 echo "$as_me: failed program was:" >&5
14734 sed 's/^/| /' conftest.$ac_ext >&5
14736 ac_lo=`expr $ac_mid + 1`
14737 if test $ac_lo -le $ac_mid; then
14741 ac_mid=`expr 2 '*' $ac_mid + 1`
14743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14746 echo "$as_me: failed program was:" >&5
14747 sed 's/^/| /' conftest.$ac_ext >&5
14749 cat >conftest.$ac_ext <<_ACEOF
14752 cat confdefs.h >>conftest.$ac_ext
14753 cat >>conftest.$ac_ext <<_ACEOF
14754 /* end confdefs.h. */
14755 $ac_includes_default
14759 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
14766 rm -f conftest.$ac_objext
14767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14768 (eval $ac_compile) 2>conftest.er1
14770 grep -v '^ *+' conftest.er1 >conftest.err
14772 cat conftest.err >&5
14773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14774 (exit $ac_status); } &&
14775 { ac_try='test -z "$ac_c_werror_flag"
14776 || test ! -s conftest.err'
14777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14778 (eval $ac_try) 2>&5
14780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14781 (exit $ac_status); }; } &&
14782 { ac_try='test -s conftest.$ac_objext'
14783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14784 (eval $ac_try) 2>&5
14786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14787 (exit $ac_status); }; }; then
14790 cat >conftest.$ac_ext <<_ACEOF
14793 cat confdefs.h >>conftest.$ac_ext
14794 cat >>conftest.$ac_ext <<_ACEOF
14795 /* end confdefs.h. */
14796 $ac_includes_default
14800 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
14807 rm -f conftest.$ac_objext
14808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14809 (eval $ac_compile) 2>conftest.er1
14811 grep -v '^ *+' conftest.er1 >conftest.err
14813 cat conftest.err >&5
14814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14815 (exit $ac_status); } &&
14816 { ac_try='test -z "$ac_c_werror_flag"
14817 || test ! -s conftest.err'
14818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14819 (eval $ac_try) 2>&5
14821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14822 (exit $ac_status); }; } &&
14823 { ac_try='test -s conftest.$ac_objext'
14824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14825 (eval $ac_try) 2>&5
14827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14828 (exit $ac_status); }; }; then
14829 ac_lo=$ac_mid; break
14831 echo "$as_me: failed program was:" >&5
14832 sed 's/^/| /' conftest.$ac_ext >&5
14834 ac_hi=`expr '(' $ac_mid ')' - 1`
14835 if test $ac_mid -le $ac_hi; then
14839 ac_mid=`expr 2 '*' $ac_mid`
14841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14844 echo "$as_me: failed program was:" >&5
14845 sed 's/^/| /' conftest.$ac_ext >&5
14849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14852 # Binary search between lo and hi bounds.
14853 while test "x$ac_lo" != "x$ac_hi"; do
14854 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14855 cat >conftest.$ac_ext <<_ACEOF
14858 cat confdefs.h >>conftest.$ac_ext
14859 cat >>conftest.$ac_ext <<_ACEOF
14860 /* end confdefs.h. */
14861 $ac_includes_default
14865 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14872 rm -f conftest.$ac_objext
14873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14874 (eval $ac_compile) 2>conftest.er1
14876 grep -v '^ *+' conftest.er1 >conftest.err
14878 cat conftest.err >&5
14879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14880 (exit $ac_status); } &&
14881 { ac_try='test -z "$ac_c_werror_flag"
14882 || test ! -s conftest.err'
14883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14884 (eval $ac_try) 2>&5
14886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14887 (exit $ac_status); }; } &&
14888 { ac_try='test -s conftest.$ac_objext'
14889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14890 (eval $ac_try) 2>&5
14892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14893 (exit $ac_status); }; }; then
14896 echo "$as_me: failed program was:" >&5
14897 sed 's/^/| /' conftest.$ac_ext >&5
14899 ac_lo=`expr '(' $ac_mid ')' + 1`
14901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14904 ?*) ac_cv_sizeof_char=$ac_lo;;
14905 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14906 See \`config.log' for more details." >&5
14907 echo "$as_me: error: cannot compute sizeof (char), 77
14908 See \`config.log' for more details." >&2;}
14909 { (exit 1); exit 1; }; } ;;
14912 if test "$cross_compiling" = yes; then
14913 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14914 See \`config.log' for more details." >&5
14915 echo "$as_me: error: cannot run test program while cross compiling
14916 See \`config.log' for more details." >&2;}
14917 { (exit 1); exit 1; }; }
14919 cat >conftest.$ac_ext <<_ACEOF
14922 cat confdefs.h >>conftest.$ac_ext
14923 cat >>conftest.$ac_ext <<_ACEOF
14924 /* end confdefs.h. */
14925 $ac_includes_default
14926 long longval () { return (long) (sizeof (char)); }
14927 unsigned long ulongval () { return (long) (sizeof (char)); }
14929 #include <stdlib.h>
14934 FILE *f = fopen ("conftest.val", "w");
14937 if (((long) (sizeof (char))) < 0)
14939 long i = longval ();
14940 if (i != ((long) (sizeof (char))))
14942 fprintf (f, "%ld\n", i);
14946 unsigned long i = ulongval ();
14947 if (i != ((long) (sizeof (char))))
14949 fprintf (f, "%lu\n", i);
14951 exit (ferror (f) || fclose (f) != 0);
14957 rm -f conftest$ac_exeext
14958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14959 (eval $ac_link) 2>&5
14961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14962 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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
14968 ac_cv_sizeof_char=`cat conftest.val`
14970 echo "$as_me: program exited with status $ac_status" >&5
14971 echo "$as_me: failed program was:" >&5
14972 sed 's/^/| /' conftest.$ac_ext >&5
14974 ( exit $ac_status )
14975 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14976 See \`config.log' for more details." >&5
14977 echo "$as_me: error: cannot compute sizeof (char), 77
14978 See \`config.log' for more details." >&2;}
14979 { (exit 1); exit 1; }; }
14981 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14986 ac_cv_sizeof_char=0
14989 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14990 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14991 cat >>confdefs.h <<_ACEOF
14992 #define SIZEOF_CHAR $ac_cv_sizeof_char
14996 echo "$as_me:$LINENO: checking for short int" >&5
14997 echo $ECHO_N "checking for short int... $ECHO_C" >&6
14998 if test "${ac_cv_type_short_int+set}" = set; then
14999 echo $ECHO_N "(cached) $ECHO_C" >&6
15001 cat >conftest.$ac_ext <<_ACEOF
15004 cat confdefs.h >>conftest.$ac_ext
15005 cat >>conftest.$ac_ext <<_ACEOF
15006 /* end confdefs.h. */
15007 $ac_includes_default
15011 if ((short int *) 0)
15013 if (sizeof (short int))
15019 rm -f conftest.$ac_objext
15020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15021 (eval $ac_compile) 2>conftest.er1
15023 grep -v '^ *+' conftest.er1 >conftest.err
15025 cat conftest.err >&5
15026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15027 (exit $ac_status); } &&
15028 { ac_try='test -z "$ac_c_werror_flag"
15029 || test ! -s conftest.err'
15030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15031 (eval $ac_try) 2>&5
15033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15034 (exit $ac_status); }; } &&
15035 { ac_try='test -s conftest.$ac_objext'
15036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15037 (eval $ac_try) 2>&5
15039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15040 (exit $ac_status); }; }; then
15041 ac_cv_type_short_int=yes
15043 echo "$as_me: failed program was:" >&5
15044 sed 's/^/| /' conftest.$ac_ext >&5
15046 ac_cv_type_short_int=no
15048 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15050 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
15051 echo "${ECHO_T}$ac_cv_type_short_int" >&6
15053 echo "$as_me:$LINENO: checking size of short int" >&5
15054 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
15055 if test "${ac_cv_sizeof_short_int+set}" = set; then
15056 echo $ECHO_N "(cached) $ECHO_C" >&6
15058 if test "$ac_cv_type_short_int" = yes; then
15059 # The cast to unsigned long works around a bug in the HP C Compiler
15060 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15061 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15062 # This bug is HP SR number 8606223364.
15063 if test "$cross_compiling" = yes; then
15064 # Depending upon the size, compute the lo and hi bounds.
15065 cat >conftest.$ac_ext <<_ACEOF
15068 cat confdefs.h >>conftest.$ac_ext
15069 cat >>conftest.$ac_ext <<_ACEOF
15070 /* end confdefs.h. */
15071 $ac_includes_default
15075 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
15082 rm -f conftest.$ac_objext
15083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15084 (eval $ac_compile) 2>conftest.er1
15086 grep -v '^ *+' conftest.er1 >conftest.err
15088 cat conftest.err >&5
15089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15090 (exit $ac_status); } &&
15091 { ac_try='test -z "$ac_c_werror_flag"
15092 || test ! -s conftest.err'
15093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15094 (eval $ac_try) 2>&5
15096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15097 (exit $ac_status); }; } &&
15098 { ac_try='test -s conftest.$ac_objext'
15099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15100 (eval $ac_try) 2>&5
15102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15103 (exit $ac_status); }; }; then
15106 cat >conftest.$ac_ext <<_ACEOF
15109 cat confdefs.h >>conftest.$ac_ext
15110 cat >>conftest.$ac_ext <<_ACEOF
15111 /* end confdefs.h. */
15112 $ac_includes_default
15116 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
15123 rm -f conftest.$ac_objext
15124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15125 (eval $ac_compile) 2>conftest.er1
15127 grep -v '^ *+' conftest.er1 >conftest.err
15129 cat conftest.err >&5
15130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15131 (exit $ac_status); } &&
15132 { ac_try='test -z "$ac_c_werror_flag"
15133 || test ! -s conftest.err'
15134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15135 (eval $ac_try) 2>&5
15137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15138 (exit $ac_status); }; } &&
15139 { ac_try='test -s conftest.$ac_objext'
15140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15141 (eval $ac_try) 2>&5
15143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15144 (exit $ac_status); }; }; then
15145 ac_hi=$ac_mid; break
15147 echo "$as_me: failed program was:" >&5
15148 sed 's/^/| /' conftest.$ac_ext >&5
15150 ac_lo=`expr $ac_mid + 1`
15151 if test $ac_lo -le $ac_mid; then
15155 ac_mid=`expr 2 '*' $ac_mid + 1`
15157 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15160 echo "$as_me: failed program was:" >&5
15161 sed 's/^/| /' conftest.$ac_ext >&5
15163 cat >conftest.$ac_ext <<_ACEOF
15166 cat confdefs.h >>conftest.$ac_ext
15167 cat >>conftest.$ac_ext <<_ACEOF
15168 /* end confdefs.h. */
15169 $ac_includes_default
15173 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
15180 rm -f conftest.$ac_objext
15181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15182 (eval $ac_compile) 2>conftest.er1
15184 grep -v '^ *+' conftest.er1 >conftest.err
15186 cat conftest.err >&5
15187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15188 (exit $ac_status); } &&
15189 { ac_try='test -z "$ac_c_werror_flag"
15190 || test ! -s conftest.err'
15191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15192 (eval $ac_try) 2>&5
15194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15195 (exit $ac_status); }; } &&
15196 { ac_try='test -s conftest.$ac_objext'
15197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15198 (eval $ac_try) 2>&5
15200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15201 (exit $ac_status); }; }; then
15204 cat >conftest.$ac_ext <<_ACEOF
15207 cat confdefs.h >>conftest.$ac_ext
15208 cat >>conftest.$ac_ext <<_ACEOF
15209 /* end confdefs.h. */
15210 $ac_includes_default
15214 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
15221 rm -f conftest.$ac_objext
15222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15223 (eval $ac_compile) 2>conftest.er1
15225 grep -v '^ *+' conftest.er1 >conftest.err
15227 cat conftest.err >&5
15228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15229 (exit $ac_status); } &&
15230 { ac_try='test -z "$ac_c_werror_flag"
15231 || test ! -s conftest.err'
15232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15233 (eval $ac_try) 2>&5
15235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15236 (exit $ac_status); }; } &&
15237 { ac_try='test -s conftest.$ac_objext'
15238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15239 (eval $ac_try) 2>&5
15241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15242 (exit $ac_status); }; }; then
15243 ac_lo=$ac_mid; break
15245 echo "$as_me: failed program was:" >&5
15246 sed 's/^/| /' conftest.$ac_ext >&5
15248 ac_hi=`expr '(' $ac_mid ')' - 1`
15249 if test $ac_mid -le $ac_hi; then
15253 ac_mid=`expr 2 '*' $ac_mid`
15255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15258 echo "$as_me: failed program was:" >&5
15259 sed 's/^/| /' conftest.$ac_ext >&5
15263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15265 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15266 # Binary search between lo and hi bounds.
15267 while test "x$ac_lo" != "x$ac_hi"; do
15268 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15269 cat >conftest.$ac_ext <<_ACEOF
15272 cat confdefs.h >>conftest.$ac_ext
15273 cat >>conftest.$ac_ext <<_ACEOF
15274 /* end confdefs.h. */
15275 $ac_includes_default
15279 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
15286 rm -f conftest.$ac_objext
15287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15288 (eval $ac_compile) 2>conftest.er1
15290 grep -v '^ *+' conftest.er1 >conftest.err
15292 cat conftest.err >&5
15293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15294 (exit $ac_status); } &&
15295 { ac_try='test -z "$ac_c_werror_flag"
15296 || test ! -s conftest.err'
15297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15298 (eval $ac_try) 2>&5
15300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15301 (exit $ac_status); }; } &&
15302 { ac_try='test -s conftest.$ac_objext'
15303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15304 (eval $ac_try) 2>&5
15306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15307 (exit $ac_status); }; }; then
15310 echo "$as_me: failed program was:" >&5
15311 sed 's/^/| /' conftest.$ac_ext >&5
15313 ac_lo=`expr '(' $ac_mid ')' + 1`
15315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15318 ?*) ac_cv_sizeof_short_int=$ac_lo;;
15319 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
15320 See \`config.log' for more details." >&5
15321 echo "$as_me: error: cannot compute sizeof (short int), 77
15322 See \`config.log' for more details." >&2;}
15323 { (exit 1); exit 1; }; } ;;
15326 if test "$cross_compiling" = yes; then
15327 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15328 See \`config.log' for more details." >&5
15329 echo "$as_me: error: cannot run test program while cross compiling
15330 See \`config.log' for more details." >&2;}
15331 { (exit 1); exit 1; }; }
15333 cat >conftest.$ac_ext <<_ACEOF
15336 cat confdefs.h >>conftest.$ac_ext
15337 cat >>conftest.$ac_ext <<_ACEOF
15338 /* end confdefs.h. */
15339 $ac_includes_default
15340 long longval () { return (long) (sizeof (short int)); }
15341 unsigned long ulongval () { return (long) (sizeof (short int)); }
15343 #include <stdlib.h>
15348 FILE *f = fopen ("conftest.val", "w");
15351 if (((long) (sizeof (short int))) < 0)
15353 long i = longval ();
15354 if (i != ((long) (sizeof (short int))))
15356 fprintf (f, "%ld\n", i);
15360 unsigned long i = ulongval ();
15361 if (i != ((long) (sizeof (short int))))
15363 fprintf (f, "%lu\n", i);
15365 exit (ferror (f) || fclose (f) != 0);
15371 rm -f conftest$ac_exeext
15372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15373 (eval $ac_link) 2>&5
15375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15376 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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
15382 ac_cv_sizeof_short_int=`cat conftest.val`
15384 echo "$as_me: program exited with status $ac_status" >&5
15385 echo "$as_me: failed program was:" >&5
15386 sed 's/^/| /' conftest.$ac_ext >&5
15388 ( exit $ac_status )
15389 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
15390 See \`config.log' for more details." >&5
15391 echo "$as_me: error: cannot compute sizeof (short int), 77
15392 See \`config.log' for more details." >&2;}
15393 { (exit 1); exit 1; }; }
15395 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15400 ac_cv_sizeof_short_int=0
15403 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
15404 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
15405 cat >>confdefs.h <<_ACEOF
15406 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
15410 echo "$as_me:$LINENO: checking for int" >&5
15411 echo $ECHO_N "checking for int... $ECHO_C" >&6
15412 if test "${ac_cv_type_int+set}" = set; then
15413 echo $ECHO_N "(cached) $ECHO_C" >&6
15415 cat >conftest.$ac_ext <<_ACEOF
15418 cat confdefs.h >>conftest.$ac_ext
15419 cat >>conftest.$ac_ext <<_ACEOF
15420 /* end confdefs.h. */
15421 $ac_includes_default
15433 rm -f conftest.$ac_objext
15434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15435 (eval $ac_compile) 2>conftest.er1
15437 grep -v '^ *+' conftest.er1 >conftest.err
15439 cat conftest.err >&5
15440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15441 (exit $ac_status); } &&
15442 { ac_try='test -z "$ac_c_werror_flag"
15443 || test ! -s conftest.err'
15444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15445 (eval $ac_try) 2>&5
15447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15448 (exit $ac_status); }; } &&
15449 { ac_try='test -s conftest.$ac_objext'
15450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15451 (eval $ac_try) 2>&5
15453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15454 (exit $ac_status); }; }; then
15457 echo "$as_me: failed program was:" >&5
15458 sed 's/^/| /' conftest.$ac_ext >&5
15462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15464 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15465 echo "${ECHO_T}$ac_cv_type_int" >&6
15467 echo "$as_me:$LINENO: checking size of int" >&5
15468 echo $ECHO_N "checking size of int... $ECHO_C" >&6
15469 if test "${ac_cv_sizeof_int+set}" = set; then
15470 echo $ECHO_N "(cached) $ECHO_C" >&6
15472 if test "$ac_cv_type_int" = yes; then
15473 # The cast to unsigned long works around a bug in the HP C Compiler
15474 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15475 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15476 # This bug is HP SR number 8606223364.
15477 if test "$cross_compiling" = yes; then
15478 # Depending upon the size, compute the lo and hi bounds.
15479 cat >conftest.$ac_ext <<_ACEOF
15482 cat confdefs.h >>conftest.$ac_ext
15483 cat >>conftest.$ac_ext <<_ACEOF
15484 /* end confdefs.h. */
15485 $ac_includes_default
15489 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15496 rm -f conftest.$ac_objext
15497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15498 (eval $ac_compile) 2>conftest.er1
15500 grep -v '^ *+' conftest.er1 >conftest.err
15502 cat conftest.err >&5
15503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15504 (exit $ac_status); } &&
15505 { ac_try='test -z "$ac_c_werror_flag"
15506 || test ! -s conftest.err'
15507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15508 (eval $ac_try) 2>&5
15510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15511 (exit $ac_status); }; } &&
15512 { ac_try='test -s conftest.$ac_objext'
15513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15514 (eval $ac_try) 2>&5
15516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15517 (exit $ac_status); }; }; then
15520 cat >conftest.$ac_ext <<_ACEOF
15523 cat confdefs.h >>conftest.$ac_ext
15524 cat >>conftest.$ac_ext <<_ACEOF
15525 /* end confdefs.h. */
15526 $ac_includes_default
15530 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15537 rm -f conftest.$ac_objext
15538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15539 (eval $ac_compile) 2>conftest.er1
15541 grep -v '^ *+' conftest.er1 >conftest.err
15543 cat conftest.err >&5
15544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15545 (exit $ac_status); } &&
15546 { ac_try='test -z "$ac_c_werror_flag"
15547 || test ! -s conftest.err'
15548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15549 (eval $ac_try) 2>&5
15551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15552 (exit $ac_status); }; } &&
15553 { ac_try='test -s conftest.$ac_objext'
15554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15555 (eval $ac_try) 2>&5
15557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15558 (exit $ac_status); }; }; then
15559 ac_hi=$ac_mid; break
15561 echo "$as_me: failed program was:" >&5
15562 sed 's/^/| /' conftest.$ac_ext >&5
15564 ac_lo=`expr $ac_mid + 1`
15565 if test $ac_lo -le $ac_mid; then
15569 ac_mid=`expr 2 '*' $ac_mid + 1`
15571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15574 echo "$as_me: failed program was:" >&5
15575 sed 's/^/| /' conftest.$ac_ext >&5
15577 cat >conftest.$ac_ext <<_ACEOF
15580 cat confdefs.h >>conftest.$ac_ext
15581 cat >>conftest.$ac_ext <<_ACEOF
15582 /* end confdefs.h. */
15583 $ac_includes_default
15587 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15594 rm -f conftest.$ac_objext
15595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15596 (eval $ac_compile) 2>conftest.er1
15598 grep -v '^ *+' conftest.er1 >conftest.err
15600 cat conftest.err >&5
15601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15602 (exit $ac_status); } &&
15603 { ac_try='test -z "$ac_c_werror_flag"
15604 || test ! -s conftest.err'
15605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15606 (eval $ac_try) 2>&5
15608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15609 (exit $ac_status); }; } &&
15610 { ac_try='test -s conftest.$ac_objext'
15611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15612 (eval $ac_try) 2>&5
15614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15615 (exit $ac_status); }; }; then
15618 cat >conftest.$ac_ext <<_ACEOF
15621 cat confdefs.h >>conftest.$ac_ext
15622 cat >>conftest.$ac_ext <<_ACEOF
15623 /* end confdefs.h. */
15624 $ac_includes_default
15628 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15635 rm -f conftest.$ac_objext
15636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15637 (eval $ac_compile) 2>conftest.er1
15639 grep -v '^ *+' conftest.er1 >conftest.err
15641 cat conftest.err >&5
15642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15643 (exit $ac_status); } &&
15644 { ac_try='test -z "$ac_c_werror_flag"
15645 || test ! -s conftest.err'
15646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15647 (eval $ac_try) 2>&5
15649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15650 (exit $ac_status); }; } &&
15651 { ac_try='test -s conftest.$ac_objext'
15652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15653 (eval $ac_try) 2>&5
15655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15656 (exit $ac_status); }; }; then
15657 ac_lo=$ac_mid; break
15659 echo "$as_me: failed program was:" >&5
15660 sed 's/^/| /' conftest.$ac_ext >&5
15662 ac_hi=`expr '(' $ac_mid ')' - 1`
15663 if test $ac_mid -le $ac_hi; then
15667 ac_mid=`expr 2 '*' $ac_mid`
15669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15672 echo "$as_me: failed program was:" >&5
15673 sed 's/^/| /' conftest.$ac_ext >&5
15677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15680 # Binary search between lo and hi bounds.
15681 while test "x$ac_lo" != "x$ac_hi"; do
15682 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15683 cat >conftest.$ac_ext <<_ACEOF
15686 cat confdefs.h >>conftest.$ac_ext
15687 cat >>conftest.$ac_ext <<_ACEOF
15688 /* end confdefs.h. */
15689 $ac_includes_default
15693 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15700 rm -f conftest.$ac_objext
15701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15702 (eval $ac_compile) 2>conftest.er1
15704 grep -v '^ *+' conftest.er1 >conftest.err
15706 cat conftest.err >&5
15707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15708 (exit $ac_status); } &&
15709 { ac_try='test -z "$ac_c_werror_flag"
15710 || test ! -s conftest.err'
15711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15712 (eval $ac_try) 2>&5
15714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15715 (exit $ac_status); }; } &&
15716 { ac_try='test -s conftest.$ac_objext'
15717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15718 (eval $ac_try) 2>&5
15720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15721 (exit $ac_status); }; }; then
15724 echo "$as_me: failed program was:" >&5
15725 sed 's/^/| /' conftest.$ac_ext >&5
15727 ac_lo=`expr '(' $ac_mid ')' + 1`
15729 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15732 ?*) ac_cv_sizeof_int=$ac_lo;;
15733 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15734 See \`config.log' for more details." >&5
15735 echo "$as_me: error: cannot compute sizeof (int), 77
15736 See \`config.log' for more details." >&2;}
15737 { (exit 1); exit 1; }; } ;;
15740 if test "$cross_compiling" = yes; then
15741 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15742 See \`config.log' for more details." >&5
15743 echo "$as_me: error: cannot run test program while cross compiling
15744 See \`config.log' for more details." >&2;}
15745 { (exit 1); exit 1; }; }
15747 cat >conftest.$ac_ext <<_ACEOF
15750 cat confdefs.h >>conftest.$ac_ext
15751 cat >>conftest.$ac_ext <<_ACEOF
15752 /* end confdefs.h. */
15753 $ac_includes_default
15754 long longval () { return (long) (sizeof (int)); }
15755 unsigned long ulongval () { return (long) (sizeof (int)); }
15757 #include <stdlib.h>
15762 FILE *f = fopen ("conftest.val", "w");
15765 if (((long) (sizeof (int))) < 0)
15767 long i = longval ();
15768 if (i != ((long) (sizeof (int))))
15770 fprintf (f, "%ld\n", i);
15774 unsigned long i = ulongval ();
15775 if (i != ((long) (sizeof (int))))
15777 fprintf (f, "%lu\n", i);
15779 exit (ferror (f) || fclose (f) != 0);
15785 rm -f conftest$ac_exeext
15786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15787 (eval $ac_link) 2>&5
15789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15790 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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
15796 ac_cv_sizeof_int=`cat conftest.val`
15798 echo "$as_me: program exited with status $ac_status" >&5
15799 echo "$as_me: failed program was:" >&5
15800 sed 's/^/| /' conftest.$ac_ext >&5
15802 ( exit $ac_status )
15803 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15804 See \`config.log' for more details." >&5
15805 echo "$as_me: error: cannot compute sizeof (int), 77
15806 See \`config.log' for more details." >&2;}
15807 { (exit 1); exit 1; }; }
15809 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15817 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15818 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15819 cat >>confdefs.h <<_ACEOF
15820 #define SIZEOF_INT $ac_cv_sizeof_int
15824 echo "$as_me:$LINENO: checking for long int" >&5
15825 echo $ECHO_N "checking for long int... $ECHO_C" >&6
15826 if test "${ac_cv_type_long_int+set}" = set; then
15827 echo $ECHO_N "(cached) $ECHO_C" >&6
15829 cat >conftest.$ac_ext <<_ACEOF
15832 cat confdefs.h >>conftest.$ac_ext
15833 cat >>conftest.$ac_ext <<_ACEOF
15834 /* end confdefs.h. */
15835 $ac_includes_default
15839 if ((long int *) 0)
15841 if (sizeof (long int))
15847 rm -f conftest.$ac_objext
15848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15849 (eval $ac_compile) 2>conftest.er1
15851 grep -v '^ *+' conftest.er1 >conftest.err
15853 cat conftest.err >&5
15854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15855 (exit $ac_status); } &&
15856 { ac_try='test -z "$ac_c_werror_flag"
15857 || test ! -s conftest.err'
15858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15859 (eval $ac_try) 2>&5
15861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15862 (exit $ac_status); }; } &&
15863 { ac_try='test -s conftest.$ac_objext'
15864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15865 (eval $ac_try) 2>&5
15867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15868 (exit $ac_status); }; }; then
15869 ac_cv_type_long_int=yes
15871 echo "$as_me: failed program was:" >&5
15872 sed 's/^/| /' conftest.$ac_ext >&5
15874 ac_cv_type_long_int=no
15876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15878 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
15879 echo "${ECHO_T}$ac_cv_type_long_int" >&6
15881 echo "$as_me:$LINENO: checking size of long int" >&5
15882 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
15883 if test "${ac_cv_sizeof_long_int+set}" = set; then
15884 echo $ECHO_N "(cached) $ECHO_C" >&6
15886 if test "$ac_cv_type_long_int" = yes; then
15887 # The cast to unsigned long works around a bug in the HP C Compiler
15888 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15889 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15890 # This bug is HP SR number 8606223364.
15891 if test "$cross_compiling" = yes; then
15892 # Depending upon the size, compute the lo and hi bounds.
15893 cat >conftest.$ac_ext <<_ACEOF
15896 cat confdefs.h >>conftest.$ac_ext
15897 cat >>conftest.$ac_ext <<_ACEOF
15898 /* end confdefs.h. */
15899 $ac_includes_default
15903 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
15910 rm -f conftest.$ac_objext
15911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15912 (eval $ac_compile) 2>conftest.er1
15914 grep -v '^ *+' conftest.er1 >conftest.err
15916 cat conftest.err >&5
15917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15918 (exit $ac_status); } &&
15919 { ac_try='test -z "$ac_c_werror_flag"
15920 || test ! -s conftest.err'
15921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15922 (eval $ac_try) 2>&5
15924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15925 (exit $ac_status); }; } &&
15926 { ac_try='test -s conftest.$ac_objext'
15927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15928 (eval $ac_try) 2>&5
15930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15931 (exit $ac_status); }; }; then
15934 cat >conftest.$ac_ext <<_ACEOF
15937 cat confdefs.h >>conftest.$ac_ext
15938 cat >>conftest.$ac_ext <<_ACEOF
15939 /* end confdefs.h. */
15940 $ac_includes_default
15944 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
15951 rm -f conftest.$ac_objext
15952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15953 (eval $ac_compile) 2>conftest.er1
15955 grep -v '^ *+' conftest.er1 >conftest.err
15957 cat conftest.err >&5
15958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15959 (exit $ac_status); } &&
15960 { ac_try='test -z "$ac_c_werror_flag"
15961 || test ! -s conftest.err'
15962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15963 (eval $ac_try) 2>&5
15965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15966 (exit $ac_status); }; } &&
15967 { ac_try='test -s conftest.$ac_objext'
15968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15969 (eval $ac_try) 2>&5
15971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15972 (exit $ac_status); }; }; then
15973 ac_hi=$ac_mid; break
15975 echo "$as_me: failed program was:" >&5
15976 sed 's/^/| /' conftest.$ac_ext >&5
15978 ac_lo=`expr $ac_mid + 1`
15979 if test $ac_lo -le $ac_mid; then
15983 ac_mid=`expr 2 '*' $ac_mid + 1`
15985 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15988 echo "$as_me: failed program was:" >&5
15989 sed 's/^/| /' conftest.$ac_ext >&5
15991 cat >conftest.$ac_ext <<_ACEOF
15994 cat confdefs.h >>conftest.$ac_ext
15995 cat >>conftest.$ac_ext <<_ACEOF
15996 /* end confdefs.h. */
15997 $ac_includes_default
16001 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
16008 rm -f conftest.$ac_objext
16009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16010 (eval $ac_compile) 2>conftest.er1
16012 grep -v '^ *+' conftest.er1 >conftest.err
16014 cat conftest.err >&5
16015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16016 (exit $ac_status); } &&
16017 { ac_try='test -z "$ac_c_werror_flag"
16018 || test ! -s conftest.err'
16019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16020 (eval $ac_try) 2>&5
16022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16023 (exit $ac_status); }; } &&
16024 { ac_try='test -s conftest.$ac_objext'
16025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16026 (eval $ac_try) 2>&5
16028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16029 (exit $ac_status); }; }; then
16032 cat >conftest.$ac_ext <<_ACEOF
16035 cat confdefs.h >>conftest.$ac_ext
16036 cat >>conftest.$ac_ext <<_ACEOF
16037 /* end confdefs.h. */
16038 $ac_includes_default
16042 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
16049 rm -f conftest.$ac_objext
16050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16051 (eval $ac_compile) 2>conftest.er1
16053 grep -v '^ *+' conftest.er1 >conftest.err
16055 cat conftest.err >&5
16056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16057 (exit $ac_status); } &&
16058 { ac_try='test -z "$ac_c_werror_flag"
16059 || test ! -s conftest.err'
16060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16061 (eval $ac_try) 2>&5
16063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16064 (exit $ac_status); }; } &&
16065 { ac_try='test -s conftest.$ac_objext'
16066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16067 (eval $ac_try) 2>&5
16069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16070 (exit $ac_status); }; }; then
16071 ac_lo=$ac_mid; break
16073 echo "$as_me: failed program was:" >&5
16074 sed 's/^/| /' conftest.$ac_ext >&5
16076 ac_hi=`expr '(' $ac_mid ')' - 1`
16077 if test $ac_mid -le $ac_hi; then
16081 ac_mid=`expr 2 '*' $ac_mid`
16083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16086 echo "$as_me: failed program was:" >&5
16087 sed 's/^/| /' conftest.$ac_ext >&5
16091 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16094 # Binary search between lo and hi bounds.
16095 while test "x$ac_lo" != "x$ac_hi"; do
16096 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16097 cat >conftest.$ac_ext <<_ACEOF
16100 cat confdefs.h >>conftest.$ac_ext
16101 cat >>conftest.$ac_ext <<_ACEOF
16102 /* end confdefs.h. */
16103 $ac_includes_default
16107 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
16114 rm -f conftest.$ac_objext
16115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16116 (eval $ac_compile) 2>conftest.er1
16118 grep -v '^ *+' conftest.er1 >conftest.err
16120 cat conftest.err >&5
16121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16122 (exit $ac_status); } &&
16123 { ac_try='test -z "$ac_c_werror_flag"
16124 || test ! -s conftest.err'
16125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16126 (eval $ac_try) 2>&5
16128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16129 (exit $ac_status); }; } &&
16130 { ac_try='test -s conftest.$ac_objext'
16131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16132 (eval $ac_try) 2>&5
16134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16135 (exit $ac_status); }; }; then
16138 echo "$as_me: failed program was:" >&5
16139 sed 's/^/| /' conftest.$ac_ext >&5
16141 ac_lo=`expr '(' $ac_mid ')' + 1`
16143 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16146 ?*) ac_cv_sizeof_long_int=$ac_lo;;
16147 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
16148 See \`config.log' for more details." >&5
16149 echo "$as_me: error: cannot compute sizeof (long int), 77
16150 See \`config.log' for more details." >&2;}
16151 { (exit 1); exit 1; }; } ;;
16154 if test "$cross_compiling" = yes; then
16155 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16156 See \`config.log' for more details." >&5
16157 echo "$as_me: error: cannot run test program while cross compiling
16158 See \`config.log' for more details." >&2;}
16159 { (exit 1); exit 1; }; }
16161 cat >conftest.$ac_ext <<_ACEOF
16164 cat confdefs.h >>conftest.$ac_ext
16165 cat >>conftest.$ac_ext <<_ACEOF
16166 /* end confdefs.h. */
16167 $ac_includes_default
16168 long longval () { return (long) (sizeof (long int)); }
16169 unsigned long ulongval () { return (long) (sizeof (long int)); }
16171 #include <stdlib.h>
16176 FILE *f = fopen ("conftest.val", "w");
16179 if (((long) (sizeof (long int))) < 0)
16181 long i = longval ();
16182 if (i != ((long) (sizeof (long int))))
16184 fprintf (f, "%ld\n", i);
16188 unsigned long i = ulongval ();
16189 if (i != ((long) (sizeof (long int))))
16191 fprintf (f, "%lu\n", i);
16193 exit (ferror (f) || fclose (f) != 0);
16199 rm -f conftest$ac_exeext
16200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16201 (eval $ac_link) 2>&5
16203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16204 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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
16210 ac_cv_sizeof_long_int=`cat conftest.val`
16212 echo "$as_me: program exited with status $ac_status" >&5
16213 echo "$as_me: failed program was:" >&5
16214 sed 's/^/| /' conftest.$ac_ext >&5
16216 ( exit $ac_status )
16217 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
16218 See \`config.log' for more details." >&5
16219 echo "$as_me: error: cannot compute sizeof (long int), 77
16220 See \`config.log' for more details." >&2;}
16221 { (exit 1); exit 1; }; }
16223 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16228 ac_cv_sizeof_long_int=0
16231 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
16232 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
16233 cat >>confdefs.h <<_ACEOF
16234 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
16238 echo "$as_me:$LINENO: checking for long long int" >&5
16239 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
16240 if test "${ac_cv_type_long_long_int+set}" = set; then
16241 echo $ECHO_N "(cached) $ECHO_C" >&6
16243 cat >conftest.$ac_ext <<_ACEOF
16246 cat confdefs.h >>conftest.$ac_ext
16247 cat >>conftest.$ac_ext <<_ACEOF
16248 /* end confdefs.h. */
16249 $ac_includes_default
16253 if ((long long int *) 0)
16255 if (sizeof (long long int))
16261 rm -f conftest.$ac_objext
16262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16263 (eval $ac_compile) 2>conftest.er1
16265 grep -v '^ *+' conftest.er1 >conftest.err
16267 cat conftest.err >&5
16268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16269 (exit $ac_status); } &&
16270 { ac_try='test -z "$ac_c_werror_flag"
16271 || test ! -s conftest.err'
16272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16273 (eval $ac_try) 2>&5
16275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16276 (exit $ac_status); }; } &&
16277 { ac_try='test -s conftest.$ac_objext'
16278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16279 (eval $ac_try) 2>&5
16281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16282 (exit $ac_status); }; }; then
16283 ac_cv_type_long_long_int=yes
16285 echo "$as_me: failed program was:" >&5
16286 sed 's/^/| /' conftest.$ac_ext >&5
16288 ac_cv_type_long_long_int=no
16290 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16292 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
16293 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
16295 echo "$as_me:$LINENO: checking size of long long int" >&5
16296 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
16297 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
16298 echo $ECHO_N "(cached) $ECHO_C" >&6
16300 if test "$ac_cv_type_long_long_int" = yes; then
16301 # The cast to unsigned long works around a bug in the HP C Compiler
16302 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16303 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16304 # This bug is HP SR number 8606223364.
16305 if test "$cross_compiling" = yes; then
16306 # Depending upon the size, compute the lo and hi bounds.
16307 cat >conftest.$ac_ext <<_ACEOF
16310 cat confdefs.h >>conftest.$ac_ext
16311 cat >>conftest.$ac_ext <<_ACEOF
16312 /* end confdefs.h. */
16313 $ac_includes_default
16317 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
16324 rm -f conftest.$ac_objext
16325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16326 (eval $ac_compile) 2>conftest.er1
16328 grep -v '^ *+' conftest.er1 >conftest.err
16330 cat conftest.err >&5
16331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16332 (exit $ac_status); } &&
16333 { ac_try='test -z "$ac_c_werror_flag"
16334 || test ! -s conftest.err'
16335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16336 (eval $ac_try) 2>&5
16338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16339 (exit $ac_status); }; } &&
16340 { ac_try='test -s conftest.$ac_objext'
16341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16342 (eval $ac_try) 2>&5
16344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16345 (exit $ac_status); }; }; then
16348 cat >conftest.$ac_ext <<_ACEOF
16351 cat confdefs.h >>conftest.$ac_ext
16352 cat >>conftest.$ac_ext <<_ACEOF
16353 /* end confdefs.h. */
16354 $ac_includes_default
16358 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
16365 rm -f conftest.$ac_objext
16366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16367 (eval $ac_compile) 2>conftest.er1
16369 grep -v '^ *+' conftest.er1 >conftest.err
16371 cat conftest.err >&5
16372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16373 (exit $ac_status); } &&
16374 { ac_try='test -z "$ac_c_werror_flag"
16375 || test ! -s conftest.err'
16376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16377 (eval $ac_try) 2>&5
16379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16380 (exit $ac_status); }; } &&
16381 { ac_try='test -s conftest.$ac_objext'
16382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16383 (eval $ac_try) 2>&5
16385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16386 (exit $ac_status); }; }; then
16387 ac_hi=$ac_mid; break
16389 echo "$as_me: failed program was:" >&5
16390 sed 's/^/| /' conftest.$ac_ext >&5
16392 ac_lo=`expr $ac_mid + 1`
16393 if test $ac_lo -le $ac_mid; then
16397 ac_mid=`expr 2 '*' $ac_mid + 1`
16399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16402 echo "$as_me: failed program was:" >&5
16403 sed 's/^/| /' conftest.$ac_ext >&5
16405 cat >conftest.$ac_ext <<_ACEOF
16408 cat confdefs.h >>conftest.$ac_ext
16409 cat >>conftest.$ac_ext <<_ACEOF
16410 /* end confdefs.h. */
16411 $ac_includes_default
16415 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
16422 rm -f conftest.$ac_objext
16423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16424 (eval $ac_compile) 2>conftest.er1
16426 grep -v '^ *+' conftest.er1 >conftest.err
16428 cat conftest.err >&5
16429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16430 (exit $ac_status); } &&
16431 { ac_try='test -z "$ac_c_werror_flag"
16432 || test ! -s conftest.err'
16433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16434 (eval $ac_try) 2>&5
16436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16437 (exit $ac_status); }; } &&
16438 { ac_try='test -s conftest.$ac_objext'
16439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16440 (eval $ac_try) 2>&5
16442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16443 (exit $ac_status); }; }; then
16446 cat >conftest.$ac_ext <<_ACEOF
16449 cat confdefs.h >>conftest.$ac_ext
16450 cat >>conftest.$ac_ext <<_ACEOF
16451 /* end confdefs.h. */
16452 $ac_includes_default
16456 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
16463 rm -f conftest.$ac_objext
16464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16465 (eval $ac_compile) 2>conftest.er1
16467 grep -v '^ *+' conftest.er1 >conftest.err
16469 cat conftest.err >&5
16470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16471 (exit $ac_status); } &&
16472 { ac_try='test -z "$ac_c_werror_flag"
16473 || test ! -s conftest.err'
16474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16475 (eval $ac_try) 2>&5
16477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16478 (exit $ac_status); }; } &&
16479 { ac_try='test -s conftest.$ac_objext'
16480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16481 (eval $ac_try) 2>&5
16483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16484 (exit $ac_status); }; }; then
16485 ac_lo=$ac_mid; break
16487 echo "$as_me: failed program was:" >&5
16488 sed 's/^/| /' conftest.$ac_ext >&5
16490 ac_hi=`expr '(' $ac_mid ')' - 1`
16491 if test $ac_mid -le $ac_hi; then
16495 ac_mid=`expr 2 '*' $ac_mid`
16497 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16500 echo "$as_me: failed program was:" >&5
16501 sed 's/^/| /' conftest.$ac_ext >&5
16505 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16507 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16508 # Binary search between lo and hi bounds.
16509 while test "x$ac_lo" != "x$ac_hi"; do
16510 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16511 cat >conftest.$ac_ext <<_ACEOF
16514 cat confdefs.h >>conftest.$ac_ext
16515 cat >>conftest.$ac_ext <<_ACEOF
16516 /* end confdefs.h. */
16517 $ac_includes_default
16521 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
16528 rm -f conftest.$ac_objext
16529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16530 (eval $ac_compile) 2>conftest.er1
16532 grep -v '^ *+' conftest.er1 >conftest.err
16534 cat conftest.err >&5
16535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16536 (exit $ac_status); } &&
16537 { ac_try='test -z "$ac_c_werror_flag"
16538 || test ! -s conftest.err'
16539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16540 (eval $ac_try) 2>&5
16542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16543 (exit $ac_status); }; } &&
16544 { ac_try='test -s conftest.$ac_objext'
16545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16546 (eval $ac_try) 2>&5
16548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16549 (exit $ac_status); }; }; then
16552 echo "$as_me: failed program was:" >&5
16553 sed 's/^/| /' conftest.$ac_ext >&5
16555 ac_lo=`expr '(' $ac_mid ')' + 1`
16557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16560 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
16561 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
16562 See \`config.log' for more details." >&5
16563 echo "$as_me: error: cannot compute sizeof (long long int), 77
16564 See \`config.log' for more details." >&2;}
16565 { (exit 1); exit 1; }; } ;;
16568 if test "$cross_compiling" = yes; then
16569 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16570 See \`config.log' for more details." >&5
16571 echo "$as_me: error: cannot run test program while cross compiling
16572 See \`config.log' for more details." >&2;}
16573 { (exit 1); exit 1; }; }
16575 cat >conftest.$ac_ext <<_ACEOF
16578 cat confdefs.h >>conftest.$ac_ext
16579 cat >>conftest.$ac_ext <<_ACEOF
16580 /* end confdefs.h. */
16581 $ac_includes_default
16582 long longval () { return (long) (sizeof (long long int)); }
16583 unsigned long ulongval () { return (long) (sizeof (long long int)); }
16585 #include <stdlib.h>
16590 FILE *f = fopen ("conftest.val", "w");
16593 if (((long) (sizeof (long long int))) < 0)
16595 long i = longval ();
16596 if (i != ((long) (sizeof (long long int))))
16598 fprintf (f, "%ld\n", i);
16602 unsigned long i = ulongval ();
16603 if (i != ((long) (sizeof (long long int))))
16605 fprintf (f, "%lu\n", i);
16607 exit (ferror (f) || fclose (f) != 0);
16613 rm -f conftest$ac_exeext
16614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16615 (eval $ac_link) 2>&5
16617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16618 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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
16624 ac_cv_sizeof_long_long_int=`cat conftest.val`
16626 echo "$as_me: program exited with status $ac_status" >&5
16627 echo "$as_me: failed program was:" >&5
16628 sed 's/^/| /' conftest.$ac_ext >&5
16630 ( exit $ac_status )
16631 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
16632 See \`config.log' for more details." >&5
16633 echo "$as_me: error: cannot compute sizeof (long long int), 77
16634 See \`config.log' for more details." >&2;}
16635 { (exit 1); exit 1; }; }
16637 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16642 ac_cv_sizeof_long_long_int=0
16645 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
16646 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
16647 cat >>confdefs.h <<_ACEOF
16648 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
16652 echo "$as_me:$LINENO: checking for int *" >&5
16653 echo $ECHO_N "checking for int *... $ECHO_C" >&6
16654 if test "${ac_cv_type_int_p+set}" = set; then
16655 echo $ECHO_N "(cached) $ECHO_C" >&6
16657 cat >conftest.$ac_ext <<_ACEOF
16660 cat confdefs.h >>conftest.$ac_ext
16661 cat >>conftest.$ac_ext <<_ACEOF
16662 /* end confdefs.h. */
16663 $ac_includes_default
16669 if (sizeof (int *))
16675 rm -f conftest.$ac_objext
16676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16677 (eval $ac_compile) 2>conftest.er1
16679 grep -v '^ *+' conftest.er1 >conftest.err
16681 cat conftest.err >&5
16682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16683 (exit $ac_status); } &&
16684 { ac_try='test -z "$ac_c_werror_flag"
16685 || test ! -s conftest.err'
16686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16687 (eval $ac_try) 2>&5
16689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16690 (exit $ac_status); }; } &&
16691 { ac_try='test -s conftest.$ac_objext'
16692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16693 (eval $ac_try) 2>&5
16695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16696 (exit $ac_status); }; }; then
16697 ac_cv_type_int_p=yes
16699 echo "$as_me: failed program was:" >&5
16700 sed 's/^/| /' conftest.$ac_ext >&5
16702 ac_cv_type_int_p=no
16704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16706 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
16707 echo "${ECHO_T}$ac_cv_type_int_p" >&6
16709 echo "$as_me:$LINENO: checking size of int *" >&5
16710 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
16711 if test "${ac_cv_sizeof_int_p+set}" = set; then
16712 echo $ECHO_N "(cached) $ECHO_C" >&6
16714 if test "$ac_cv_type_int_p" = yes; then
16715 # The cast to unsigned long works around a bug in the HP C Compiler
16716 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16717 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16718 # This bug is HP SR number 8606223364.
16719 if test "$cross_compiling" = yes; then
16720 # Depending upon the size, compute the lo and hi bounds.
16721 cat >conftest.$ac_ext <<_ACEOF
16724 cat confdefs.h >>conftest.$ac_ext
16725 cat >>conftest.$ac_ext <<_ACEOF
16726 /* end confdefs.h. */
16727 $ac_includes_default
16731 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
16738 rm -f conftest.$ac_objext
16739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16740 (eval $ac_compile) 2>conftest.er1
16742 grep -v '^ *+' conftest.er1 >conftest.err
16744 cat conftest.err >&5
16745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16746 (exit $ac_status); } &&
16747 { ac_try='test -z "$ac_c_werror_flag"
16748 || test ! -s conftest.err'
16749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16750 (eval $ac_try) 2>&5
16752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16753 (exit $ac_status); }; } &&
16754 { ac_try='test -s conftest.$ac_objext'
16755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16756 (eval $ac_try) 2>&5
16758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16759 (exit $ac_status); }; }; then
16762 cat >conftest.$ac_ext <<_ACEOF
16765 cat confdefs.h >>conftest.$ac_ext
16766 cat >>conftest.$ac_ext <<_ACEOF
16767 /* end confdefs.h. */
16768 $ac_includes_default
16772 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
16779 rm -f conftest.$ac_objext
16780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16781 (eval $ac_compile) 2>conftest.er1
16783 grep -v '^ *+' conftest.er1 >conftest.err
16785 cat conftest.err >&5
16786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16787 (exit $ac_status); } &&
16788 { ac_try='test -z "$ac_c_werror_flag"
16789 || test ! -s conftest.err'
16790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16791 (eval $ac_try) 2>&5
16793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16794 (exit $ac_status); }; } &&
16795 { ac_try='test -s conftest.$ac_objext'
16796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16797 (eval $ac_try) 2>&5
16799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16800 (exit $ac_status); }; }; then
16801 ac_hi=$ac_mid; break
16803 echo "$as_me: failed program was:" >&5
16804 sed 's/^/| /' conftest.$ac_ext >&5
16806 ac_lo=`expr $ac_mid + 1`
16807 if test $ac_lo -le $ac_mid; then
16811 ac_mid=`expr 2 '*' $ac_mid + 1`
16813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16816 echo "$as_me: failed program was:" >&5
16817 sed 's/^/| /' conftest.$ac_ext >&5
16819 cat >conftest.$ac_ext <<_ACEOF
16822 cat confdefs.h >>conftest.$ac_ext
16823 cat >>conftest.$ac_ext <<_ACEOF
16824 /* end confdefs.h. */
16825 $ac_includes_default
16829 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
16836 rm -f conftest.$ac_objext
16837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16838 (eval $ac_compile) 2>conftest.er1
16840 grep -v '^ *+' conftest.er1 >conftest.err
16842 cat conftest.err >&5
16843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16844 (exit $ac_status); } &&
16845 { ac_try='test -z "$ac_c_werror_flag"
16846 || test ! -s conftest.err'
16847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16848 (eval $ac_try) 2>&5
16850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16851 (exit $ac_status); }; } &&
16852 { ac_try='test -s conftest.$ac_objext'
16853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16854 (eval $ac_try) 2>&5
16856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16857 (exit $ac_status); }; }; then
16860 cat >conftest.$ac_ext <<_ACEOF
16863 cat confdefs.h >>conftest.$ac_ext
16864 cat >>conftest.$ac_ext <<_ACEOF
16865 /* end confdefs.h. */
16866 $ac_includes_default
16870 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
16877 rm -f conftest.$ac_objext
16878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16879 (eval $ac_compile) 2>conftest.er1
16881 grep -v '^ *+' conftest.er1 >conftest.err
16883 cat conftest.err >&5
16884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16885 (exit $ac_status); } &&
16886 { ac_try='test -z "$ac_c_werror_flag"
16887 || test ! -s conftest.err'
16888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16889 (eval $ac_try) 2>&5
16891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16892 (exit $ac_status); }; } &&
16893 { ac_try='test -s conftest.$ac_objext'
16894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16895 (eval $ac_try) 2>&5
16897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16898 (exit $ac_status); }; }; then
16899 ac_lo=$ac_mid; break
16901 echo "$as_me: failed program was:" >&5
16902 sed 's/^/| /' conftest.$ac_ext >&5
16904 ac_hi=`expr '(' $ac_mid ')' - 1`
16905 if test $ac_mid -le $ac_hi; then
16909 ac_mid=`expr 2 '*' $ac_mid`
16911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16914 echo "$as_me: failed program was:" >&5
16915 sed 's/^/| /' conftest.$ac_ext >&5
16919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16921 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16922 # Binary search between lo and hi bounds.
16923 while test "x$ac_lo" != "x$ac_hi"; do
16924 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16925 cat >conftest.$ac_ext <<_ACEOF
16928 cat confdefs.h >>conftest.$ac_ext
16929 cat >>conftest.$ac_ext <<_ACEOF
16930 /* end confdefs.h. */
16931 $ac_includes_default
16935 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
16942 rm -f conftest.$ac_objext
16943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16944 (eval $ac_compile) 2>conftest.er1
16946 grep -v '^ *+' conftest.er1 >conftest.err
16948 cat conftest.err >&5
16949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16950 (exit $ac_status); } &&
16951 { ac_try='test -z "$ac_c_werror_flag"
16952 || test ! -s conftest.err'
16953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16954 (eval $ac_try) 2>&5
16956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16957 (exit $ac_status); }; } &&
16958 { ac_try='test -s conftest.$ac_objext'
16959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16960 (eval $ac_try) 2>&5
16962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16963 (exit $ac_status); }; }; then
16966 echo "$as_me: failed program was:" >&5
16967 sed 's/^/| /' conftest.$ac_ext >&5
16969 ac_lo=`expr '(' $ac_mid ')' + 1`
16971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16974 ?*) ac_cv_sizeof_int_p=$ac_lo;;
16975 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
16976 See \`config.log' for more details." >&5
16977 echo "$as_me: error: cannot compute sizeof (int *), 77
16978 See \`config.log' for more details." >&2;}
16979 { (exit 1); exit 1; }; } ;;
16982 if test "$cross_compiling" = yes; then
16983 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16984 See \`config.log' for more details." >&5
16985 echo "$as_me: error: cannot run test program while cross compiling
16986 See \`config.log' for more details." >&2;}
16987 { (exit 1); exit 1; }; }
16989 cat >conftest.$ac_ext <<_ACEOF
16992 cat confdefs.h >>conftest.$ac_ext
16993 cat >>conftest.$ac_ext <<_ACEOF
16994 /* end confdefs.h. */
16995 $ac_includes_default
16996 long longval () { return (long) (sizeof (int *)); }
16997 unsigned long ulongval () { return (long) (sizeof (int *)); }
16999 #include <stdlib.h>
17004 FILE *f = fopen ("conftest.val", "w");
17007 if (((long) (sizeof (int *))) < 0)
17009 long i = longval ();
17010 if (i != ((long) (sizeof (int *))))
17012 fprintf (f, "%ld\n", i);
17016 unsigned long i = ulongval ();
17017 if (i != ((long) (sizeof (int *))))
17019 fprintf (f, "%lu\n", i);
17021 exit (ferror (f) || fclose (f) != 0);
17027 rm -f conftest$ac_exeext
17028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17029 (eval $ac_link) 2>&5
17031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17032 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17034 (eval $ac_try) 2>&5
17036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17037 (exit $ac_status); }; }; then
17038 ac_cv_sizeof_int_p=`cat conftest.val`
17040 echo "$as_me: program exited with status $ac_status" >&5
17041 echo "$as_me: failed program was:" >&5
17042 sed 's/^/| /' conftest.$ac_ext >&5
17044 ( exit $ac_status )
17045 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
17046 See \`config.log' for more details." >&5
17047 echo "$as_me: error: cannot compute sizeof (int *), 77
17048 See \`config.log' for more details." >&2;}
17049 { (exit 1); exit 1; }; }
17051 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17056 ac_cv_sizeof_int_p=0
17059 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
17060 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
17061 cat >>confdefs.h <<_ACEOF
17062 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
17067 # Check for sys/types.h types
17068 echo "$as_me:$LINENO: checking for u_int type" >&5
17069 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
17070 if test "${ac_cv_have_u_int+set}" = set; then
17071 echo $ECHO_N "(cached) $ECHO_C" >&6
17074 cat >conftest.$ac_ext <<_ACEOF
17077 cat confdefs.h >>conftest.$ac_ext
17078 cat >>conftest.$ac_ext <<_ACEOF
17079 /* end confdefs.h. */
17080 #include <sys/types.h>
17089 rm -f conftest.$ac_objext
17090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17091 (eval $ac_compile) 2>conftest.er1
17093 grep -v '^ *+' conftest.er1 >conftest.err
17095 cat conftest.err >&5
17096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17097 (exit $ac_status); } &&
17098 { ac_try='test -z "$ac_c_werror_flag"
17099 || test ! -s conftest.err'
17100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17101 (eval $ac_try) 2>&5
17103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17104 (exit $ac_status); }; } &&
17105 { ac_try='test -s conftest.$ac_objext'
17106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17107 (eval $ac_try) 2>&5
17109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17110 (exit $ac_status); }; }; then
17111 ac_cv_have_u_int="yes"
17113 echo "$as_me: failed program was:" >&5
17114 sed 's/^/| /' conftest.$ac_ext >&5
17116 ac_cv_have_u_int="no"
17119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17122 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
17123 echo "${ECHO_T}$ac_cv_have_u_int" >&6
17124 if test "x$ac_cv_have_u_int" = "xyes" ; then
17125 cat >>confdefs.h <<\_ACEOF
17126 #define HAVE_U_INT 1
17132 echo "$as_me:$LINENO: checking for intmax_t type" >&5
17133 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
17134 if test "${ac_cv_have_intmax_t+set}" = set; then
17135 echo $ECHO_N "(cached) $ECHO_C" >&6
17138 cat >conftest.$ac_ext <<_ACEOF
17141 cat confdefs.h >>conftest.$ac_ext
17142 cat >>conftest.$ac_ext <<_ACEOF
17143 /* end confdefs.h. */
17144 #include <sys/types.h>
17153 rm -f conftest.$ac_objext
17154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17155 (eval $ac_compile) 2>conftest.er1
17157 grep -v '^ *+' conftest.er1 >conftest.err
17159 cat conftest.err >&5
17160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17161 (exit $ac_status); } &&
17162 { ac_try='test -z "$ac_c_werror_flag"
17163 || test ! -s conftest.err'
17164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17165 (eval $ac_try) 2>&5
17167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17168 (exit $ac_status); }; } &&
17169 { ac_try='test -s conftest.$ac_objext'
17170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17171 (eval $ac_try) 2>&5
17173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17174 (exit $ac_status); }; }; then
17175 ac_cv_have_intmax_t="yes"
17177 echo "$as_me: failed program was:" >&5
17178 sed 's/^/| /' conftest.$ac_ext >&5
17181 cat >conftest.$ac_ext <<_ACEOF
17184 cat confdefs.h >>conftest.$ac_ext
17185 cat >>conftest.$ac_ext <<_ACEOF
17186 /* end confdefs.h. */
17187 #include <stdint.h>
17196 rm -f conftest.$ac_objext
17197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17198 (eval $ac_compile) 2>conftest.er1
17200 grep -v '^ *+' conftest.er1 >conftest.err
17202 cat conftest.err >&5
17203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17204 (exit $ac_status); } &&
17205 { ac_try='test -z "$ac_c_werror_flag"
17206 || test ! -s conftest.err'
17207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17208 (eval $ac_try) 2>&5
17210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17211 (exit $ac_status); }; } &&
17212 { ac_try='test -s conftest.$ac_objext'
17213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17214 (eval $ac_try) 2>&5
17216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17217 (exit $ac_status); }; }; then
17218 ac_cv_have_intmax_t="yes"
17220 echo "$as_me: failed program was:" >&5
17221 sed 's/^/| /' conftest.$ac_ext >&5
17223 ac_cv_have_intmax_t="no"
17226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17234 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
17235 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
17236 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
17237 cat >>confdefs.h <<\_ACEOF
17238 #define HAVE_INTMAX_T 1
17245 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
17246 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
17247 if test "${ac_cv_have_u_intmax_t+set}" = set; then
17248 echo $ECHO_N "(cached) $ECHO_C" >&6
17251 cat >conftest.$ac_ext <<_ACEOF
17254 cat confdefs.h >>conftest.$ac_ext
17255 cat >>conftest.$ac_ext <<_ACEOF
17256 /* end confdefs.h. */
17257 #include <sys/types.h>
17261 u_intmax_t a; a = 1;
17266 rm -f conftest.$ac_objext
17267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17268 (eval $ac_compile) 2>conftest.er1
17270 grep -v '^ *+' conftest.er1 >conftest.err
17272 cat conftest.err >&5
17273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17274 (exit $ac_status); } &&
17275 { ac_try='test -z "$ac_c_werror_flag"
17276 || test ! -s conftest.err'
17277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17278 (eval $ac_try) 2>&5
17280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17281 (exit $ac_status); }; } &&
17282 { ac_try='test -s conftest.$ac_objext'
17283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17284 (eval $ac_try) 2>&5
17286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17287 (exit $ac_status); }; }; then
17288 ac_cv_have_u_intmax_t="yes"
17290 echo "$as_me: failed program was:" >&5
17291 sed 's/^/| /' conftest.$ac_ext >&5
17294 cat >conftest.$ac_ext <<_ACEOF
17297 cat confdefs.h >>conftest.$ac_ext
17298 cat >>conftest.$ac_ext <<_ACEOF
17299 /* end confdefs.h. */
17300 #include <stdint.h>
17304 u_intmax_t a; a = 1;
17309 rm -f conftest.$ac_objext
17310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17311 (eval $ac_compile) 2>conftest.er1
17313 grep -v '^ *+' conftest.er1 >conftest.err
17315 cat conftest.err >&5
17316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17317 (exit $ac_status); } &&
17318 { ac_try='test -z "$ac_c_werror_flag"
17319 || test ! -s conftest.err'
17320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17321 (eval $ac_try) 2>&5
17323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17324 (exit $ac_status); }; } &&
17325 { ac_try='test -s conftest.$ac_objext'
17326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17327 (eval $ac_try) 2>&5
17329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17330 (exit $ac_status); }; }; then
17331 ac_cv_have_u_intmax_t="yes"
17333 echo "$as_me: failed program was:" >&5
17334 sed 's/^/| /' conftest.$ac_ext >&5
17336 ac_cv_have_u_intmax_t="no"
17339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17346 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
17347 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
17348 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
17349 cat >>confdefs.h <<\_ACEOF
17350 #define HAVE_U_INTMAX_T 1
17357 echo "$as_me:$LINENO: checking for intXX_t types" >&5
17358 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
17359 if test "${ac_cv_have_intxx_t+set}" = set; then
17360 echo $ECHO_N "(cached) $ECHO_C" >&6
17363 cat >conftest.$ac_ext <<_ACEOF
17366 cat confdefs.h >>conftest.$ac_ext
17367 cat >>conftest.$ac_ext <<_ACEOF
17368 /* end confdefs.h. */
17369 #include <sys/types.h>
17373 int8_t a; int16_t b; int32_t c; a = b = c = 1;
17378 rm -f conftest.$ac_objext
17379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17380 (eval $ac_compile) 2>conftest.er1
17382 grep -v '^ *+' conftest.er1 >conftest.err
17384 cat conftest.err >&5
17385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17386 (exit $ac_status); } &&
17387 { ac_try='test -z "$ac_c_werror_flag"
17388 || test ! -s conftest.err'
17389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17390 (eval $ac_try) 2>&5
17392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17393 (exit $ac_status); }; } &&
17394 { ac_try='test -s conftest.$ac_objext'
17395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17396 (eval $ac_try) 2>&5
17398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17399 (exit $ac_status); }; }; then
17400 ac_cv_have_intxx_t="yes"
17402 echo "$as_me: failed program was:" >&5
17403 sed 's/^/| /' conftest.$ac_ext >&5
17405 ac_cv_have_intxx_t="no"
17408 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17411 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
17412 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
17413 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
17414 cat >>confdefs.h <<\_ACEOF
17415 #define HAVE_INTXX_T 1
17421 echo "$as_me:$LINENO: checking for int64_t type" >&5
17422 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
17423 if test "${ac_cv_have_int64_t+set}" = set; then
17424 echo $ECHO_N "(cached) $ECHO_C" >&6
17427 cat >conftest.$ac_ext <<_ACEOF
17430 cat confdefs.h >>conftest.$ac_ext
17431 cat >>conftest.$ac_ext <<_ACEOF
17432 /* end confdefs.h. */
17433 #include <sys/types.h>
17442 rm -f conftest.$ac_objext
17443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17444 (eval $ac_compile) 2>conftest.er1
17446 grep -v '^ *+' conftest.er1 >conftest.err
17448 cat conftest.err >&5
17449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17450 (exit $ac_status); } &&
17451 { ac_try='test -z "$ac_c_werror_flag"
17452 || test ! -s conftest.err'
17453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17454 (eval $ac_try) 2>&5
17456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17457 (exit $ac_status); }; } &&
17458 { ac_try='test -s conftest.$ac_objext'
17459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17460 (eval $ac_try) 2>&5
17462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17463 (exit $ac_status); }; }; then
17464 ac_cv_have_int64_t="yes"
17466 echo "$as_me: failed program was:" >&5
17467 sed 's/^/| /' conftest.$ac_ext >&5
17469 ac_cv_have_int64_t="no"
17472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17475 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
17476 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
17477 if test "x$ac_cv_have_int64_t" = "xyes" ; then
17478 cat >>confdefs.h <<\_ACEOF
17479 #define HAVE_INT64_T 1
17485 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
17486 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
17487 if test "${ac_cv_have_u_intxx_t+set}" = set; then
17488 echo $ECHO_N "(cached) $ECHO_C" >&6
17491 cat >conftest.$ac_ext <<_ACEOF
17494 cat confdefs.h >>conftest.$ac_ext
17495 cat >>conftest.$ac_ext <<_ACEOF
17496 /* end confdefs.h. */
17497 #include <sys/types.h>
17501 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
17506 rm -f conftest.$ac_objext
17507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17508 (eval $ac_compile) 2>conftest.er1
17510 grep -v '^ *+' conftest.er1 >conftest.err
17512 cat conftest.err >&5
17513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17514 (exit $ac_status); } &&
17515 { ac_try='test -z "$ac_c_werror_flag"
17516 || test ! -s conftest.err'
17517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17518 (eval $ac_try) 2>&5
17520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17521 (exit $ac_status); }; } &&
17522 { ac_try='test -s conftest.$ac_objext'
17523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17524 (eval $ac_try) 2>&5
17526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17527 (exit $ac_status); }; }; then
17528 ac_cv_have_u_intxx_t="yes"
17530 echo "$as_me: failed program was:" >&5
17531 sed 's/^/| /' conftest.$ac_ext >&5
17533 ac_cv_have_u_intxx_t="no"
17536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17539 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
17540 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
17541 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
17542 cat >>confdefs.h <<\_ACEOF
17543 #define HAVE_U_INTXX_T 1
17549 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
17550 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
17551 if test "${ac_cv_have_u_int64_t+set}" = set; then
17552 echo $ECHO_N "(cached) $ECHO_C" >&6
17555 cat >conftest.$ac_ext <<_ACEOF
17558 cat confdefs.h >>conftest.$ac_ext
17559 cat >>conftest.$ac_ext <<_ACEOF
17560 /* end confdefs.h. */
17561 #include <sys/types.h>
17565 u_int64_t a; a = 1;
17570 rm -f conftest.$ac_objext
17571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17572 (eval $ac_compile) 2>conftest.er1
17574 grep -v '^ *+' conftest.er1 >conftest.err
17576 cat conftest.err >&5
17577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17578 (exit $ac_status); } &&
17579 { ac_try='test -z "$ac_c_werror_flag"
17580 || test ! -s conftest.err'
17581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17582 (eval $ac_try) 2>&5
17584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17585 (exit $ac_status); }; } &&
17586 { ac_try='test -s conftest.$ac_objext'
17587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17588 (eval $ac_try) 2>&5
17590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17591 (exit $ac_status); }; }; then
17592 ac_cv_have_u_int64_t="yes"
17594 echo "$as_me: failed program was:" >&5
17595 sed 's/^/| /' conftest.$ac_ext >&5
17597 ac_cv_have_u_int64_t="no"
17600 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17603 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
17604 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
17605 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
17606 cat >>confdefs.h <<\_ACEOF
17607 #define HAVE_U_INT64_T 1
17613 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
17614 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
17616 echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
17617 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
17618 cat >conftest.$ac_ext <<_ACEOF
17621 cat confdefs.h >>conftest.$ac_ext
17622 cat >>conftest.$ac_ext <<_ACEOF
17623 /* end confdefs.h. */
17624 #include <sys/bitypes.h>
17628 int8_t a; int16_t b; int32_t c;
17629 u_int8_t e; u_int16_t f; u_int32_t g;
17630 a = b = c = e = f = g = 1;
17635 rm -f conftest.$ac_objext
17636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17637 (eval $ac_compile) 2>conftest.er1
17639 grep -v '^ *+' conftest.er1 >conftest.err
17641 cat conftest.err >&5
17642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17643 (exit $ac_status); } &&
17644 { ac_try='test -z "$ac_c_werror_flag"
17645 || test ! -s conftest.err'
17646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17647 (eval $ac_try) 2>&5
17649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17650 (exit $ac_status); }; } &&
17651 { ac_try='test -s conftest.$ac_objext'
17652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17653 (eval $ac_try) 2>&5
17655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17656 (exit $ac_status); }; }; then
17657 cat >>confdefs.h <<\_ACEOF
17658 #define HAVE_U_INTXX_T 1
17661 cat >>confdefs.h <<\_ACEOF
17662 #define HAVE_INTXX_T 1
17665 cat >>confdefs.h <<\_ACEOF
17666 #define HAVE_SYS_BITYPES_H 1
17669 echo "$as_me:$LINENO: result: yes" >&5
17670 echo "${ECHO_T}yes" >&6
17672 echo "$as_me: failed program was:" >&5
17673 sed 's/^/| /' conftest.$ac_ext >&5
17675 echo "$as_me:$LINENO: result: no" >&5
17676 echo "${ECHO_T}no" >&6
17679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17682 if test -z "$have_u_intxx_t" ; then
17683 echo "$as_me:$LINENO: checking for uintXX_t types" >&5
17684 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
17685 if test "${ac_cv_have_uintxx_t+set}" = set; then
17686 echo $ECHO_N "(cached) $ECHO_C" >&6
17689 cat >conftest.$ac_ext <<_ACEOF
17692 cat confdefs.h >>conftest.$ac_ext
17693 cat >>conftest.$ac_ext <<_ACEOF
17694 /* end confdefs.h. */
17695 #include <sys/types.h>
17699 uint8_t a; uint16_t b;
17700 uint32_t c; a = b = c = 1;
17705 rm -f conftest.$ac_objext
17706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17707 (eval $ac_compile) 2>conftest.er1
17709 grep -v '^ *+' conftest.er1 >conftest.err
17711 cat conftest.err >&5
17712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17713 (exit $ac_status); } &&
17714 { ac_try='test -z "$ac_c_werror_flag"
17715 || test ! -s conftest.err'
17716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17717 (eval $ac_try) 2>&5
17719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17720 (exit $ac_status); }; } &&
17721 { ac_try='test -s conftest.$ac_objext'
17722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17723 (eval $ac_try) 2>&5
17725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17726 (exit $ac_status); }; }; then
17727 ac_cv_have_uintxx_t="yes"
17729 echo "$as_me: failed program was:" >&5
17730 sed 's/^/| /' conftest.$ac_ext >&5
17732 ac_cv_have_uintxx_t="no"
17735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17738 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
17739 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
17740 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
17741 cat >>confdefs.h <<\_ACEOF
17742 #define HAVE_UINTXX_T 1
17748 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
17749 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
17751 echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
17752 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
17753 cat >conftest.$ac_ext <<_ACEOF
17756 cat confdefs.h >>conftest.$ac_ext
17757 cat >>conftest.$ac_ext <<_ACEOF
17758 /* end confdefs.h. */
17759 #include <sys/bitypes.h>
17763 int64_t a; u_int64_t b;
17769 rm -f conftest.$ac_objext
17770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17771 (eval $ac_compile) 2>conftest.er1
17773 grep -v '^ *+' conftest.er1 >conftest.err
17775 cat conftest.err >&5
17776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17777 (exit $ac_status); } &&
17778 { ac_try='test -z "$ac_c_werror_flag"
17779 || test ! -s conftest.err'
17780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17781 (eval $ac_try) 2>&5
17783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17784 (exit $ac_status); }; } &&
17785 { ac_try='test -s conftest.$ac_objext'
17786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17787 (eval $ac_try) 2>&5
17789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17790 (exit $ac_status); }; }; then
17791 cat >>confdefs.h <<\_ACEOF
17792 #define HAVE_U_INT64_T 1
17795 cat >>confdefs.h <<\_ACEOF
17796 #define HAVE_INT64_T 1
17799 echo "$as_me:$LINENO: result: yes" >&5
17800 echo "${ECHO_T}yes" >&6
17802 echo "$as_me: failed program was:" >&5
17803 sed 's/^/| /' conftest.$ac_ext >&5
17805 echo "$as_me:$LINENO: result: no" >&5
17806 echo "${ECHO_T}no" >&6
17809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17812 if (test -z "$have_uintxx_t" && \
17813 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
17815 echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
17816 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
17817 cat >conftest.$ac_ext <<_ACEOF
17820 cat confdefs.h >>conftest.$ac_ext
17821 cat >>conftest.$ac_ext <<_ACEOF
17822 /* end confdefs.h. */
17823 #include <sys/bitypes.h>
17827 uint8_t a; uint16_t b;
17828 uint32_t c; a = b = c = 1;
17833 rm -f conftest.$ac_objext
17834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17835 (eval $ac_compile) 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_objext'
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 cat >>confdefs.h <<\_ACEOF
17856 #define HAVE_UINTXX_T 1
17859 echo "$as_me:$LINENO: result: yes" >&5
17860 echo "${ECHO_T}yes" >&6
17862 echo "$as_me: failed program was:" >&5
17863 sed 's/^/| /' conftest.$ac_ext >&5
17865 echo "$as_me:$LINENO: result: no" >&5
17866 echo "${ECHO_T}no" >&6
17869 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17905 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17906 echo "$as_me:$LINENO: checking for $ac_func" >&5
17907 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17908 if eval "test \"\${$as_ac_var+set}\" = set"; then
17909 echo $ECHO_N "(cached) $ECHO_C" >&6
17911 cat >conftest.$ac_ext <<_ACEOF
17914 cat confdefs.h >>conftest.$ac_ext
17915 cat >>conftest.$ac_ext <<_ACEOF
17916 /* end confdefs.h. */
17917 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17918 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17919 #define $ac_func innocuous_$ac_func
17921 /* System header to define __stub macros and hopefully few prototypes,
17922 which can conflict with char $ac_func (); below.
17923 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17924 <limits.h> exists even on freestanding compilers. */
17927 # include <limits.h>
17929 # include <assert.h>
17934 /* Override any gcc2 internal prototype to avoid an error. */
17939 /* We use char because int might match the return type of a gcc2
17940 builtin and then its argument prototype would still apply. */
17942 /* The GNU C library defines this for functions which it implements
17943 to always fail with ENOSYS. Some functions are actually named
17944 something starting with __ and the normal name is an alias. */
17945 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17948 char (*f) () = $ac_func;
17957 return f != $ac_func;
17962 rm -f conftest.$ac_objext conftest$ac_exeext
17963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17964 (eval $ac_link) 2>conftest.er1
17966 grep -v '^ *+' conftest.er1 >conftest.err
17968 cat conftest.err >&5
17969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17970 (exit $ac_status); } &&
17971 { ac_try='test -z "$ac_c_werror_flag"
17972 || test ! -s conftest.err'
17973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17974 (eval $ac_try) 2>&5
17976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17977 (exit $ac_status); }; } &&
17978 { ac_try='test -s conftest$ac_exeext'
17979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17980 (eval $ac_try) 2>&5
17982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17983 (exit $ac_status); }; }; then
17984 eval "$as_ac_var=yes"
17986 echo "$as_me: failed program was:" >&5
17987 sed 's/^/| /' conftest.$ac_ext >&5
17989 eval "$as_ac_var=no"
17991 rm -f conftest.err conftest.$ac_objext \
17992 conftest$ac_exeext conftest.$ac_ext
17994 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17995 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17996 if test `eval echo '${'$as_ac_var'}'` = yes; then
17997 cat >>confdefs.h <<_ACEOF
17998 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18002 echo 'configure: cannot find needed function.'; exit 1
18009 for ac_func in fchdir
18011 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18012 echo "$as_me:$LINENO: checking for $ac_func" >&5
18013 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18014 if eval "test \"\${$as_ac_var+set}\" = set"; then
18015 echo $ECHO_N "(cached) $ECHO_C" >&6
18017 cat >conftest.$ac_ext <<_ACEOF
18020 cat confdefs.h >>conftest.$ac_ext
18021 cat >>conftest.$ac_ext <<_ACEOF
18022 /* end confdefs.h. */
18023 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18024 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18025 #define $ac_func innocuous_$ac_func
18027 /* System header to define __stub macros and hopefully few prototypes,
18028 which can conflict with char $ac_func (); below.
18029 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18030 <limits.h> exists even on freestanding compilers. */
18033 # include <limits.h>
18035 # include <assert.h>
18040 /* Override any gcc2 internal prototype to avoid an error. */
18045 /* We use char because int might match the return type of a gcc2
18046 builtin and then its argument prototype would still apply. */
18048 /* The GNU C library defines this for functions which it implements
18049 to always fail with ENOSYS. Some functions are actually named
18050 something starting with __ and the normal name is an alias. */
18051 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18054 char (*f) () = $ac_func;
18063 return f != $ac_func;
18068 rm -f conftest.$ac_objext conftest$ac_exeext
18069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18070 (eval $ac_link) 2>conftest.er1
18072 grep -v '^ *+' conftest.er1 >conftest.err
18074 cat conftest.err >&5
18075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18076 (exit $ac_status); } &&
18077 { ac_try='test -z "$ac_c_werror_flag"
18078 || test ! -s conftest.err'
18079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18080 (eval $ac_try) 2>&5
18082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18083 (exit $ac_status); }; } &&
18084 { ac_try='test -s conftest$ac_exeext'
18085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18086 (eval $ac_try) 2>&5
18088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18089 (exit $ac_status); }; }; then
18090 eval "$as_ac_var=yes"
18092 echo "$as_me: failed program was:" >&5
18093 sed 's/^/| /' conftest.$ac_ext >&5
18095 eval "$as_ac_var=no"
18097 rm -f conftest.err conftest.$ac_objext \
18098 conftest$ac_exeext conftest.$ac_ext
18100 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18101 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18102 if test `eval echo '${'$as_ac_var'}'` = yes; then
18103 cat >>confdefs.h <<_ACEOF
18104 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18106 cat >>confdefs.h <<\_ACEOF
18107 #define HAVE_FCHDIR 1
18114 for ac_func in strtoll
18116 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18117 echo "$as_me:$LINENO: checking for $ac_func" >&5
18118 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18119 if eval "test \"\${$as_ac_var+set}\" = set"; then
18120 echo $ECHO_N "(cached) $ECHO_C" >&6
18122 cat >conftest.$ac_ext <<_ACEOF
18125 cat confdefs.h >>conftest.$ac_ext
18126 cat >>conftest.$ac_ext <<_ACEOF
18127 /* end confdefs.h. */
18128 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18129 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18130 #define $ac_func innocuous_$ac_func
18132 /* System header to define __stub macros and hopefully few prototypes,
18133 which can conflict with char $ac_func (); below.
18134 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18135 <limits.h> exists even on freestanding compilers. */
18138 # include <limits.h>
18140 # include <assert.h>
18145 /* Override any gcc2 internal prototype to avoid an error. */
18150 /* We use char because int might match the return type of a gcc2
18151 builtin and then its argument prototype would still apply. */
18153 /* The GNU C library defines this for functions which it implements
18154 to always fail with ENOSYS. Some functions are actually named
18155 something starting with __ and the normal name is an alias. */
18156 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18159 char (*f) () = $ac_func;
18168 return f != $ac_func;
18173 rm -f conftest.$ac_objext conftest$ac_exeext
18174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18175 (eval $ac_link) 2>conftest.er1
18177 grep -v '^ *+' conftest.er1 >conftest.err
18179 cat conftest.err >&5
18180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18181 (exit $ac_status); } &&
18182 { ac_try='test -z "$ac_c_werror_flag"
18183 || test ! -s conftest.err'
18184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18185 (eval $ac_try) 2>&5
18187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18188 (exit $ac_status); }; } &&
18189 { ac_try='test -s conftest$ac_exeext'
18190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18191 (eval $ac_try) 2>&5
18193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18194 (exit $ac_status); }; }; then
18195 eval "$as_ac_var=yes"
18197 echo "$as_me: failed program was:" >&5
18198 sed 's/^/| /' conftest.$ac_ext >&5
18200 eval "$as_ac_var=no"
18202 rm -f conftest.err conftest.$ac_objext \
18203 conftest$ac_exeext conftest.$ac_ext
18205 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18206 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18207 if test `eval echo '${'$as_ac_var'}'` = yes; then
18208 cat >>confdefs.h <<_ACEOF
18209 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18211 cat >>confdefs.h <<\_ACEOF
18212 #define HAVE_STRTOLL 1
18220 for ac_func in chflags
18222 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18223 echo "$as_me:$LINENO: checking for $ac_func" >&5
18224 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18225 if eval "test \"\${$as_ac_var+set}\" = set"; then
18226 echo $ECHO_N "(cached) $ECHO_C" >&6
18228 cat >conftest.$ac_ext <<_ACEOF
18231 cat confdefs.h >>conftest.$ac_ext
18232 cat >>conftest.$ac_ext <<_ACEOF
18233 /* end confdefs.h. */
18234 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18235 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18236 #define $ac_func innocuous_$ac_func
18238 /* System header to define __stub macros and hopefully few prototypes,
18239 which can conflict with char $ac_func (); below.
18240 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18241 <limits.h> exists even on freestanding compilers. */
18244 # include <limits.h>
18246 # include <assert.h>
18251 /* Override any gcc2 internal prototype to avoid an error. */
18256 /* We use char because int might match the return type of a gcc2
18257 builtin and then its argument prototype would still apply. */
18259 /* The GNU C library defines this for functions which it implements
18260 to always fail with ENOSYS. Some functions are actually named
18261 something starting with __ and the normal name is an alias. */
18262 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18265 char (*f) () = $ac_func;
18274 return f != $ac_func;
18279 rm -f conftest.$ac_objext conftest$ac_exeext
18280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18281 (eval $ac_link) 2>conftest.er1
18283 grep -v '^ *+' conftest.er1 >conftest.err
18285 cat conftest.err >&5
18286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18287 (exit $ac_status); } &&
18288 { ac_try='test -z "$ac_c_werror_flag"
18289 || test ! -s conftest.err'
18290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18291 (eval $ac_try) 2>&5
18293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18294 (exit $ac_status); }; } &&
18295 { ac_try='test -s conftest$ac_exeext'
18296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18297 (eval $ac_try) 2>&5
18299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18300 (exit $ac_status); }; }; then
18301 eval "$as_ac_var=yes"
18303 echo "$as_me: failed program was:" >&5
18304 sed 's/^/| /' conftest.$ac_ext >&5
18306 eval "$as_ac_var=no"
18308 rm -f conftest.err conftest.$ac_objext \
18309 conftest$ac_exeext conftest.$ac_ext
18311 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18312 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18313 if test `eval echo '${'$as_ac_var'}'` = yes; then
18314 cat >>confdefs.h <<_ACEOF
18315 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18326 for ac_func in snprintf vsnprintf gethostid fseeko
18328 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18329 echo "$as_me:$LINENO: checking for $ac_func" >&5
18330 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18331 if eval "test \"\${$as_ac_var+set}\" = set"; then
18332 echo $ECHO_N "(cached) $ECHO_C" >&6
18334 cat >conftest.$ac_ext <<_ACEOF
18337 cat confdefs.h >>conftest.$ac_ext
18338 cat >>conftest.$ac_ext <<_ACEOF
18339 /* end confdefs.h. */
18340 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18341 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18342 #define $ac_func innocuous_$ac_func
18344 /* System header to define __stub macros and hopefully few prototypes,
18345 which can conflict with char $ac_func (); below.
18346 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18347 <limits.h> exists even on freestanding compilers. */
18350 # include <limits.h>
18352 # include <assert.h>
18357 /* Override any gcc2 internal prototype to avoid an error. */
18362 /* We use char because int might match the return type of a gcc2
18363 builtin and then its argument prototype would still apply. */
18365 /* The GNU C library defines this for functions which it implements
18366 to always fail with ENOSYS. Some functions are actually named
18367 something starting with __ and the normal name is an alias. */
18368 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18371 char (*f) () = $ac_func;
18380 return f != $ac_func;
18385 rm -f conftest.$ac_objext conftest$ac_exeext
18386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18387 (eval $ac_link) 2>conftest.er1
18389 grep -v '^ *+' conftest.er1 >conftest.err
18391 cat conftest.err >&5
18392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18393 (exit $ac_status); } &&
18394 { ac_try='test -z "$ac_c_werror_flag"
18395 || test ! -s conftest.err'
18396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18397 (eval $ac_try) 2>&5
18399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18400 (exit $ac_status); }; } &&
18401 { ac_try='test -s conftest$ac_exeext'
18402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18403 (eval $ac_try) 2>&5
18405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18406 (exit $ac_status); }; }; then
18407 eval "$as_ac_var=yes"
18409 echo "$as_me: failed program was:" >&5
18410 sed 's/^/| /' conftest.$ac_ext >&5
18412 eval "$as_ac_var=no"
18414 rm -f conftest.err conftest.$ac_objext \
18415 conftest$ac_exeext conftest.$ac_ext
18417 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18418 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18419 if test `eval echo '${'$as_ac_var'}'` = yes; then
18420 cat >>confdefs.h <<_ACEOF
18421 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18432 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
18434 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18435 echo "$as_me:$LINENO: checking for $ac_func" >&5
18436 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18437 if eval "test \"\${$as_ac_var+set}\" = set"; then
18438 echo $ECHO_N "(cached) $ECHO_C" >&6
18440 cat >conftest.$ac_ext <<_ACEOF
18443 cat confdefs.h >>conftest.$ac_ext
18444 cat >>conftest.$ac_ext <<_ACEOF
18445 /* end confdefs.h. */
18446 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18447 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18448 #define $ac_func innocuous_$ac_func
18450 /* System header to define __stub macros and hopefully few prototypes,
18451 which can conflict with char $ac_func (); below.
18452 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18453 <limits.h> exists even on freestanding compilers. */
18456 # include <limits.h>
18458 # include <assert.h>
18463 /* Override any gcc2 internal prototype to avoid an error. */
18468 /* We use char because int might match the return type of a gcc2
18469 builtin and then its argument prototype would still apply. */
18471 /* The GNU C library defines this for functions which it implements
18472 to always fail with ENOSYS. Some functions are actually named
18473 something starting with __ and the normal name is an alias. */
18474 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18477 char (*f) () = $ac_func;
18486 return f != $ac_func;
18491 rm -f conftest.$ac_objext conftest$ac_exeext
18492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18493 (eval $ac_link) 2>conftest.er1
18495 grep -v '^ *+' conftest.er1 >conftest.err
18497 cat conftest.err >&5
18498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18499 (exit $ac_status); } &&
18500 { ac_try='test -z "$ac_c_werror_flag"
18501 || test ! -s conftest.err'
18502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18503 (eval $ac_try) 2>&5
18505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18506 (exit $ac_status); }; } &&
18507 { ac_try='test -s conftest$ac_exeext'
18508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18509 (eval $ac_try) 2>&5
18511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18512 (exit $ac_status); }; }; then
18513 eval "$as_ac_var=yes"
18515 echo "$as_me: failed program was:" >&5
18516 sed 's/^/| /' conftest.$ac_ext >&5
18518 eval "$as_ac_var=no"
18520 rm -f conftest.err conftest.$ac_objext \
18521 conftest$ac_exeext conftest.$ac_ext
18523 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18524 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18525 if test `eval echo '${'$as_ac_var'}'` = yes; then
18526 cat >>confdefs.h <<_ACEOF
18527 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18534 # If resolver functions are not in libc check for -lnsl or -lresolv.
18535 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
18536 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
18537 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
18538 echo $ECHO_N "(cached) $ECHO_C" >&6
18540 cat >conftest.$ac_ext <<_ACEOF
18543 cat confdefs.h >>conftest.$ac_ext
18544 cat >>conftest.$ac_ext <<_ACEOF
18545 /* end confdefs.h. */
18546 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
18547 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18548 #define gethostbyname_r innocuous_gethostbyname_r
18550 /* System header to define __stub macros and hopefully few prototypes,
18551 which can conflict with char gethostbyname_r (); below.
18552 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18553 <limits.h> exists even on freestanding compilers. */
18556 # include <limits.h>
18558 # include <assert.h>
18561 #undef gethostbyname_r
18563 /* Override any gcc2 internal prototype to avoid an error. */
18568 /* We use char because int might match the return type of a gcc2
18569 builtin and then its argument prototype would still apply. */
18570 char gethostbyname_r ();
18571 /* The GNU C library defines this for functions which it implements
18572 to always fail with ENOSYS. Some functions are actually named
18573 something starting with __ and the normal name is an alias. */
18574 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
18577 char (*f) () = gethostbyname_r;
18586 return f != gethostbyname_r;
18591 rm -f conftest.$ac_objext conftest$ac_exeext
18592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18593 (eval $ac_link) 2>conftest.er1
18595 grep -v '^ *+' conftest.er1 >conftest.err
18597 cat conftest.err >&5
18598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18599 (exit $ac_status); } &&
18600 { ac_try='test -z "$ac_c_werror_flag"
18601 || test ! -s conftest.err'
18602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18603 (eval $ac_try) 2>&5
18605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18606 (exit $ac_status); }; } &&
18607 { ac_try='test -s conftest$ac_exeext'
18608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18609 (eval $ac_try) 2>&5
18611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18612 (exit $ac_status); }; }; then
18613 ac_cv_func_gethostbyname_r=yes
18615 echo "$as_me: failed program was:" >&5
18616 sed 's/^/| /' conftest.$ac_ext >&5
18618 ac_cv_func_gethostbyname_r=no
18620 rm -f conftest.err conftest.$ac_objext \
18621 conftest$ac_exeext conftest.$ac_ext
18623 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
18624 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
18625 if test $ac_cv_func_gethostbyname_r = yes; then
18626 echo "$as_me:$LINENO: result: using libc's resolver" >&5
18627 echo "${ECHO_T}using libc's resolver" >&6
18630 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
18631 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
18632 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
18633 echo $ECHO_N "(cached) $ECHO_C" >&6
18635 ac_check_lib_save_LIBS=$LIBS
18637 cat >conftest.$ac_ext <<_ACEOF
18640 cat confdefs.h >>conftest.$ac_ext
18641 cat >>conftest.$ac_ext <<_ACEOF
18642 /* end confdefs.h. */
18644 /* Override any gcc2 internal prototype to avoid an error. */
18648 /* We use char because int might match the return type of a gcc2
18649 builtin and then its argument prototype would still apply. */
18650 char gethostbyname_r ();
18654 gethostbyname_r ();
18659 rm -f conftest.$ac_objext conftest$ac_exeext
18660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18661 (eval $ac_link) 2>conftest.er1
18663 grep -v '^ *+' conftest.er1 >conftest.err
18665 cat conftest.err >&5
18666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18667 (exit $ac_status); } &&
18668 { ac_try='test -z "$ac_c_werror_flag"
18669 || test ! -s conftest.err'
18670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18671 (eval $ac_try) 2>&5
18673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18674 (exit $ac_status); }; } &&
18675 { ac_try='test -s conftest$ac_exeext'
18676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18677 (eval $ac_try) 2>&5
18679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18680 (exit $ac_status); }; }; then
18681 ac_cv_lib_nsl_gethostbyname_r=yes
18683 echo "$as_me: failed program was:" >&5
18684 sed 's/^/| /' conftest.$ac_ext >&5
18686 ac_cv_lib_nsl_gethostbyname_r=no
18688 rm -f conftest.err conftest.$ac_objext \
18689 conftest$ac_exeext conftest.$ac_ext
18690 LIBS=$ac_check_lib_save_LIBS
18692 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
18693 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
18694 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
18695 cat >>confdefs.h <<_ACEOF
18696 #define HAVE_LIBNSL 1
18704 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
18705 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
18706 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
18707 echo $ECHO_N "(cached) $ECHO_C" >&6
18709 ac_check_lib_save_LIBS=$LIBS
18710 LIBS="-lresolv $LIBS"
18711 cat >conftest.$ac_ext <<_ACEOF
18714 cat confdefs.h >>conftest.$ac_ext
18715 cat >>conftest.$ac_ext <<_ACEOF
18716 /* end confdefs.h. */
18718 /* Override any gcc2 internal prototype to avoid an error. */
18722 /* We use char because int might match the return type of a gcc2
18723 builtin and then its argument prototype would still apply. */
18724 char gethostbyname_r ();
18728 gethostbyname_r ();
18733 rm -f conftest.$ac_objext conftest$ac_exeext
18734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18735 (eval $ac_link) 2>conftest.er1
18737 grep -v '^ *+' conftest.er1 >conftest.err
18739 cat conftest.err >&5
18740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18741 (exit $ac_status); } &&
18742 { ac_try='test -z "$ac_c_werror_flag"
18743 || test ! -s conftest.err'
18744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18745 (eval $ac_try) 2>&5
18747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18748 (exit $ac_status); }; } &&
18749 { ac_try='test -s conftest$ac_exeext'
18750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18751 (eval $ac_try) 2>&5
18753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18754 (exit $ac_status); }; }; then
18755 ac_cv_lib_resolv_gethostbyname_r=yes
18757 echo "$as_me: failed program was:" >&5
18758 sed 's/^/| /' conftest.$ac_ext >&5
18760 ac_cv_lib_resolv_gethostbyname_r=no
18762 rm -f conftest.err conftest.$ac_objext \
18763 conftest$ac_exeext conftest.$ac_ext
18764 LIBS=$ac_check_lib_save_LIBS
18766 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
18767 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
18768 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
18769 cat >>confdefs.h <<_ACEOF
18770 #define HAVE_LIBRESOLV 1
18773 LIBS="-lresolv $LIBS"
18783 for ac_func in inet_pton
18785 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18786 echo "$as_me:$LINENO: checking for $ac_func" >&5
18787 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18788 if eval "test \"\${$as_ac_var+set}\" = set"; then
18789 echo $ECHO_N "(cached) $ECHO_C" >&6
18791 cat >conftest.$ac_ext <<_ACEOF
18794 cat confdefs.h >>conftest.$ac_ext
18795 cat >>conftest.$ac_ext <<_ACEOF
18796 /* end confdefs.h. */
18797 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18798 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18799 #define $ac_func innocuous_$ac_func
18801 /* System header to define __stub macros and hopefully few prototypes,
18802 which can conflict with char $ac_func (); below.
18803 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18804 <limits.h> exists even on freestanding compilers. */
18807 # include <limits.h>
18809 # include <assert.h>
18814 /* Override any gcc2 internal prototype to avoid an error. */
18819 /* We use char because int might match the return type of a gcc2
18820 builtin and then its argument prototype would still apply. */
18822 /* The GNU C library defines this for functions which it implements
18823 to always fail with ENOSYS. Some functions are actually named
18824 something starting with __ and the normal name is an alias. */
18825 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18828 char (*f) () = $ac_func;
18837 return f != $ac_func;
18842 rm -f conftest.$ac_objext conftest$ac_exeext
18843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18844 (eval $ac_link) 2>conftest.er1
18846 grep -v '^ *+' conftest.er1 >conftest.err
18848 cat conftest.err >&5
18849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18850 (exit $ac_status); } &&
18851 { ac_try='test -z "$ac_c_werror_flag"
18852 || test ! -s conftest.err'
18853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18854 (eval $ac_try) 2>&5
18856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18857 (exit $ac_status); }; } &&
18858 { ac_try='test -s conftest$ac_exeext'
18859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18860 (eval $ac_try) 2>&5
18862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18863 (exit $ac_status); }; }; then
18864 eval "$as_ac_var=yes"
18866 echo "$as_me: failed program was:" >&5
18867 sed 's/^/| /' conftest.$ac_ext >&5
18869 eval "$as_ac_var=no"
18871 rm -f conftest.err conftest.$ac_objext \
18872 conftest$ac_exeext conftest.$ac_ext
18874 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18875 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18876 if test `eval echo '${'$as_ac_var'}'` = yes; then
18877 cat >>confdefs.h <<_ACEOF
18878 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18880 cat >>confdefs.h <<\_ACEOF
18881 #define HAVE_INET_PTON 1
18888 for ac_func in inet_ntop
18890 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18891 echo "$as_me:$LINENO: checking for $ac_func" >&5
18892 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18893 if eval "test \"\${$as_ac_var+set}\" = set"; then
18894 echo $ECHO_N "(cached) $ECHO_C" >&6
18896 cat >conftest.$ac_ext <<_ACEOF
18899 cat confdefs.h >>conftest.$ac_ext
18900 cat >>conftest.$ac_ext <<_ACEOF
18901 /* end confdefs.h. */
18902 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18903 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18904 #define $ac_func innocuous_$ac_func
18906 /* System header to define __stub macros and hopefully few prototypes,
18907 which can conflict with char $ac_func (); below.
18908 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18909 <limits.h> exists even on freestanding compilers. */
18912 # include <limits.h>
18914 # include <assert.h>
18919 /* Override any gcc2 internal prototype to avoid an error. */
18924 /* We use char because int might match the return type of a gcc2
18925 builtin and then its argument prototype would still apply. */
18927 /* The GNU C library defines this for functions which it implements
18928 to always fail with ENOSYS. Some functions are actually named
18929 something starting with __ and the normal name is an alias. */
18930 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18933 char (*f) () = $ac_func;
18942 return f != $ac_func;
18947 rm -f conftest.$ac_objext conftest$ac_exeext
18948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18949 (eval $ac_link) 2>conftest.er1
18951 grep -v '^ *+' conftest.er1 >conftest.err
18953 cat conftest.err >&5
18954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18955 (exit $ac_status); } &&
18956 { ac_try='test -z "$ac_c_werror_flag"
18957 || test ! -s conftest.err'
18958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18959 (eval $ac_try) 2>&5
18961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18962 (exit $ac_status); }; } &&
18963 { ac_try='test -s conftest$ac_exeext'
18964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18965 (eval $ac_try) 2>&5
18967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18968 (exit $ac_status); }; }; then
18969 eval "$as_ac_var=yes"
18971 echo "$as_me: failed program was:" >&5
18972 sed 's/^/| /' conftest.$ac_ext >&5
18974 eval "$as_ac_var=no"
18976 rm -f conftest.err conftest.$ac_objext \
18977 conftest$ac_exeext conftest.$ac_ext
18979 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18980 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18981 if test `eval echo '${'$as_ac_var'}'` = yes; then
18982 cat >>confdefs.h <<_ACEOF
18983 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18985 cat >>confdefs.h <<\_ACEOF
18986 #define HAVE_INET_NTOP 1
18993 for ac_func in gethostbyname2
18995 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18996 echo "$as_me:$LINENO: checking for $ac_func" >&5
18997 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18998 if eval "test \"\${$as_ac_var+set}\" = set"; then
18999 echo $ECHO_N "(cached) $ECHO_C" >&6
19001 cat >conftest.$ac_ext <<_ACEOF
19004 cat confdefs.h >>conftest.$ac_ext
19005 cat >>conftest.$ac_ext <<_ACEOF
19006 /* end confdefs.h. */
19007 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19008 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19009 #define $ac_func innocuous_$ac_func
19011 /* System header to define __stub macros and hopefully few prototypes,
19012 which can conflict with char $ac_func (); below.
19013 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19014 <limits.h> exists even on freestanding compilers. */
19017 # include <limits.h>
19019 # include <assert.h>
19024 /* Override any gcc2 internal prototype to avoid an error. */
19029 /* We use char because int might match the return type of a gcc2
19030 builtin and then its argument prototype would still apply. */
19032 /* The GNU C library defines this for functions which it implements
19033 to always fail with ENOSYS. Some functions are actually named
19034 something starting with __ and the normal name is an alias. */
19035 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19038 char (*f) () = $ac_func;
19047 return f != $ac_func;
19052 rm -f conftest.$ac_objext conftest$ac_exeext
19053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19054 (eval $ac_link) 2>conftest.er1
19056 grep -v '^ *+' conftest.er1 >conftest.err
19058 cat conftest.err >&5
19059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19060 (exit $ac_status); } &&
19061 { ac_try='test -z "$ac_c_werror_flag"
19062 || test ! -s conftest.err'
19063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19064 (eval $ac_try) 2>&5
19066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19067 (exit $ac_status); }; } &&
19068 { ac_try='test -s conftest$ac_exeext'
19069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19070 (eval $ac_try) 2>&5
19072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19073 (exit $ac_status); }; }; then
19074 eval "$as_ac_var=yes"
19076 echo "$as_me: failed program was:" >&5
19077 sed 's/^/| /' conftest.$ac_ext >&5
19079 eval "$as_ac_var=no"
19081 rm -f conftest.err conftest.$ac_objext \
19082 conftest$ac_exeext conftest.$ac_ext
19084 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19085 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19086 if test `eval echo '${'$as_ac_var'}'` = yes; then
19087 cat >>confdefs.h <<_ACEOF
19088 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19090 cat >>confdefs.h <<\_ACEOF
19091 #define HAVE_GETHOSTBYNAME2 1
19098 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
19099 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
19100 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
19101 echo $ECHO_N "(cached) $ECHO_C" >&6
19103 cat >conftest.$ac_ext <<_ACEOF
19106 cat confdefs.h >>conftest.$ac_ext
19107 cat >>conftest.$ac_ext <<_ACEOF
19108 /* end confdefs.h. */
19109 #include <sys/socket.h>
19113 struct sockaddr s; s.sa_len;
19118 rm -f conftest.$ac_objext
19119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19120 (eval $ac_compile) 2>conftest.er1
19122 grep -v '^ *+' conftest.er1 >conftest.err
19124 cat conftest.err >&5
19125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19126 (exit $ac_status); } &&
19127 { ac_try='test -z "$ac_c_werror_flag"
19128 || test ! -s conftest.err'
19129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19130 (eval $ac_try) 2>&5
19132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19133 (exit $ac_status); }; } &&
19134 { ac_try='test -s conftest.$ac_objext'
19135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19136 (eval $ac_try) 2>&5
19138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19139 (exit $ac_status); }; }; then
19140 ac_cv_struct_sockaddr_sa_len=yes
19142 echo "$as_me: failed program was:" >&5
19143 sed 's/^/| /' conftest.$ac_ext >&5
19145 ac_cv_struct_sockaddr_sa_len=no
19147 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19149 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
19150 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
19152 if test $ac_cv_struct_sockaddr_sa_len = yes; then
19154 cat >>confdefs.h <<\_ACEOF
19155 #define HAVE_SA_LEN 1
19161 echo "$as_me:$LINENO: checking for IPv6 support" >&5
19162 echo $ECHO_N "checking for IPv6 support... $ECHO_C" >&6
19163 if test "${ac_cv_ipv6_support+set}" = set; then
19164 echo $ECHO_N "(cached) $ECHO_C" >&6
19166 cat >conftest.$ac_ext <<_ACEOF
19169 cat confdefs.h >>conftest.$ac_ext
19170 cat >>conftest.$ac_ext <<_ACEOF
19171 /* end confdefs.h. */
19172 #include <sys/types.h>
19173 #include <sys/socket.h>
19174 #include <netinet/in.h>
19178 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] =
19184 rm -f conftest.$ac_objext conftest$ac_exeext
19185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19186 (eval $ac_link) 2>conftest.er1
19188 grep -v '^ *+' conftest.er1 >conftest.err
19190 cat conftest.err >&5
19191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19192 (exit $ac_status); } &&
19193 { ac_try='test -z "$ac_c_werror_flag"
19194 || test ! -s conftest.err'
19195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19196 (eval $ac_try) 2>&5
19198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19199 (exit $ac_status); }; } &&
19200 { ac_try='test -s conftest$ac_exeext'
19201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19202 (eval $ac_try) 2>&5
19204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19205 (exit $ac_status); }; }; then
19206 ac_cv_ipv6_support=yes
19208 echo "$as_me: failed program was:" >&5
19209 sed 's/^/| /' conftest.$ac_ext >&5
19211 ac_cv_ipv6_support=no
19213 rm -f conftest.err conftest.$ac_objext \
19214 conftest$ac_exeext conftest.$ac_ext
19216 echo "$as_me:$LINENO: result: $ac_cv_ipv6_support" >&5
19217 echo "${ECHO_T}$ac_cv_ipv6_support" >&6
19219 if test "$ac_cv_ipv6_support" = yes; then
19221 cat >>confdefs.h <<\_ACEOF
19222 #define HAVE_IPV6 1
19230 for ac_func in strftime
19232 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19233 echo "$as_me:$LINENO: checking for $ac_func" >&5
19234 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19235 if eval "test \"\${$as_ac_var+set}\" = set"; then
19236 echo $ECHO_N "(cached) $ECHO_C" >&6
19238 cat >conftest.$ac_ext <<_ACEOF
19241 cat confdefs.h >>conftest.$ac_ext
19242 cat >>conftest.$ac_ext <<_ACEOF
19243 /* end confdefs.h. */
19244 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19245 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19246 #define $ac_func innocuous_$ac_func
19248 /* System header to define __stub macros and hopefully few prototypes,
19249 which can conflict with char $ac_func (); below.
19250 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19251 <limits.h> exists even on freestanding compilers. */
19254 # include <limits.h>
19256 # include <assert.h>
19261 /* Override any gcc2 internal prototype to avoid an error. */
19266 /* We use char because int might match the return type of a gcc2
19267 builtin and then its argument prototype would still apply. */
19269 /* The GNU C library defines this for functions which it implements
19270 to always fail with ENOSYS. Some functions are actually named
19271 something starting with __ and the normal name is an alias. */
19272 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19275 char (*f) () = $ac_func;
19284 return f != $ac_func;
19289 rm -f conftest.$ac_objext conftest$ac_exeext
19290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19291 (eval $ac_link) 2>conftest.er1
19293 grep -v '^ *+' conftest.er1 >conftest.err
19295 cat conftest.err >&5
19296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19297 (exit $ac_status); } &&
19298 { ac_try='test -z "$ac_c_werror_flag"
19299 || test ! -s conftest.err'
19300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19301 (eval $ac_try) 2>&5
19303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19304 (exit $ac_status); }; } &&
19305 { ac_try='test -s conftest$ac_exeext'
19306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19307 (eval $ac_try) 2>&5
19309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19310 (exit $ac_status); }; }; then
19311 eval "$as_ac_var=yes"
19313 echo "$as_me: failed program was:" >&5
19314 sed 's/^/| /' conftest.$ac_ext >&5
19316 eval "$as_ac_var=no"
19318 rm -f conftest.err conftest.$ac_objext \
19319 conftest$ac_exeext conftest.$ac_ext
19321 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19322 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19323 if test `eval echo '${'$as_ac_var'}'` = yes; then
19324 cat >>confdefs.h <<_ACEOF
19325 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19329 # strftime is in -lintl on SCO UNIX.
19330 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
19331 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
19332 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19333 echo $ECHO_N "(cached) $ECHO_C" >&6
19335 ac_check_lib_save_LIBS=$LIBS
19336 LIBS="-lintl $LIBS"
19337 cat >conftest.$ac_ext <<_ACEOF
19340 cat confdefs.h >>conftest.$ac_ext
19341 cat >>conftest.$ac_ext <<_ACEOF
19342 /* end confdefs.h. */
19344 /* Override any gcc2 internal prototype to avoid an error. */
19348 /* We use char because int might match the return type of a gcc2
19349 builtin and then its argument prototype would still apply. */
19359 rm -f conftest.$ac_objext conftest$ac_exeext
19360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19361 (eval $ac_link) 2>conftest.er1
19363 grep -v '^ *+' conftest.er1 >conftest.err
19365 cat conftest.err >&5
19366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19367 (exit $ac_status); } &&
19368 { ac_try='test -z "$ac_c_werror_flag"
19369 || test ! -s conftest.err'
19370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19371 (eval $ac_try) 2>&5
19373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19374 (exit $ac_status); }; } &&
19375 { ac_try='test -s conftest$ac_exeext'
19376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19377 (eval $ac_try) 2>&5
19379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19380 (exit $ac_status); }; }; then
19381 ac_cv_lib_intl_strftime=yes
19383 echo "$as_me: failed program was:" >&5
19384 sed 's/^/| /' conftest.$ac_ext >&5
19386 ac_cv_lib_intl_strftime=no
19388 rm -f conftest.err conftest.$ac_objext \
19389 conftest$ac_exeext conftest.$ac_ext
19390 LIBS=$ac_check_lib_save_LIBS
19392 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
19393 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
19394 if test $ac_cv_lib_intl_strftime = yes; then
19395 cat >>confdefs.h <<\_ACEOF
19396 #define HAVE_STRFTIME 1
19399 LIBS="-lintl $LIBS"
19406 for ac_func in vprintf
19408 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19409 echo "$as_me:$LINENO: checking for $ac_func" >&5
19410 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19411 if eval "test \"\${$as_ac_var+set}\" = set"; then
19412 echo $ECHO_N "(cached) $ECHO_C" >&6
19414 cat >conftest.$ac_ext <<_ACEOF
19417 cat confdefs.h >>conftest.$ac_ext
19418 cat >>conftest.$ac_ext <<_ACEOF
19419 /* end confdefs.h. */
19420 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19421 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19422 #define $ac_func innocuous_$ac_func
19424 /* System header to define __stub macros and hopefully few prototypes,
19425 which can conflict with char $ac_func (); below.
19426 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19427 <limits.h> exists even on freestanding compilers. */
19430 # include <limits.h>
19432 # include <assert.h>
19437 /* Override any gcc2 internal prototype to avoid an error. */
19442 /* We use char because int might match the return type of a gcc2
19443 builtin and then its argument prototype would still apply. */
19445 /* The GNU C library defines this for functions which it implements
19446 to always fail with ENOSYS. Some functions are actually named
19447 something starting with __ and the normal name is an alias. */
19448 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19451 char (*f) () = $ac_func;
19460 return f != $ac_func;
19465 rm -f conftest.$ac_objext conftest$ac_exeext
19466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19467 (eval $ac_link) 2>conftest.er1
19469 grep -v '^ *+' conftest.er1 >conftest.err
19471 cat conftest.err >&5
19472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19473 (exit $ac_status); } &&
19474 { ac_try='test -z "$ac_c_werror_flag"
19475 || test ! -s conftest.err'
19476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19477 (eval $ac_try) 2>&5
19479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19480 (exit $ac_status); }; } &&
19481 { ac_try='test -s conftest$ac_exeext'
19482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19483 (eval $ac_try) 2>&5
19485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19486 (exit $ac_status); }; }; then
19487 eval "$as_ac_var=yes"
19489 echo "$as_me: failed program was:" >&5
19490 sed 's/^/| /' conftest.$ac_ext >&5
19492 eval "$as_ac_var=no"
19494 rm -f conftest.err conftest.$ac_objext \
19495 conftest$ac_exeext conftest.$ac_ext
19497 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19498 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19499 if test `eval echo '${'$as_ac_var'}'` = yes; then
19500 cat >>confdefs.h <<_ACEOF
19501 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19504 echo "$as_me:$LINENO: checking for _doprnt" >&5
19505 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
19506 if test "${ac_cv_func__doprnt+set}" = set; then
19507 echo $ECHO_N "(cached) $ECHO_C" >&6
19509 cat >conftest.$ac_ext <<_ACEOF
19512 cat confdefs.h >>conftest.$ac_ext
19513 cat >>conftest.$ac_ext <<_ACEOF
19514 /* end confdefs.h. */
19515 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
19516 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19517 #define _doprnt innocuous__doprnt
19519 /* System header to define __stub macros and hopefully few prototypes,
19520 which can conflict with char _doprnt (); below.
19521 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19522 <limits.h> exists even on freestanding compilers. */
19525 # include <limits.h>
19527 # include <assert.h>
19532 /* Override any gcc2 internal prototype to avoid an error. */
19537 /* We use char because int might match the return type of a gcc2
19538 builtin and then its argument prototype would still apply. */
19540 /* The GNU C library defines this for functions which it implements
19541 to always fail with ENOSYS. Some functions are actually named
19542 something starting with __ and the normal name is an alias. */
19543 #if defined (__stub__doprnt) || defined (__stub____doprnt)
19546 char (*f) () = _doprnt;
19555 return f != _doprnt;
19560 rm -f conftest.$ac_objext conftest$ac_exeext
19561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19562 (eval $ac_link) 2>conftest.er1
19564 grep -v '^ *+' conftest.er1 >conftest.err
19566 cat conftest.err >&5
19567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19568 (exit $ac_status); } &&
19569 { ac_try='test -z "$ac_c_werror_flag"
19570 || test ! -s conftest.err'
19571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19572 (eval $ac_try) 2>&5
19574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19575 (exit $ac_status); }; } &&
19576 { ac_try='test -s conftest$ac_exeext'
19577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19578 (eval $ac_try) 2>&5
19580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19581 (exit $ac_status); }; }; then
19582 ac_cv_func__doprnt=yes
19584 echo "$as_me: failed program was:" >&5
19585 sed 's/^/| /' conftest.$ac_ext >&5
19587 ac_cv_func__doprnt=no
19589 rm -f conftest.err conftest.$ac_objext \
19590 conftest$ac_exeext conftest.$ac_ext
19592 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
19593 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
19594 if test $ac_cv_func__doprnt = yes; then
19596 cat >>confdefs.h <<\_ACEOF
19597 #define HAVE_DOPRNT 1
19606 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19607 # for constant arguments. Useless!
19608 echo "$as_me:$LINENO: checking for working alloca.h" >&5
19609 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
19610 if test "${ac_cv_working_alloca_h+set}" = set; then
19611 echo $ECHO_N "(cached) $ECHO_C" >&6
19613 cat >conftest.$ac_ext <<_ACEOF
19616 cat confdefs.h >>conftest.$ac_ext
19617 cat >>conftest.$ac_ext <<_ACEOF
19618 /* end confdefs.h. */
19619 #include <alloca.h>
19623 char *p = (char *) alloca (2 * sizeof (int));
19628 rm -f conftest.$ac_objext conftest$ac_exeext
19629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19630 (eval $ac_link) 2>conftest.er1
19632 grep -v '^ *+' conftest.er1 >conftest.err
19634 cat conftest.err >&5
19635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19636 (exit $ac_status); } &&
19637 { ac_try='test -z "$ac_c_werror_flag"
19638 || test ! -s conftest.err'
19639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19640 (eval $ac_try) 2>&5
19642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19643 (exit $ac_status); }; } &&
19644 { ac_try='test -s conftest$ac_exeext'
19645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19646 (eval $ac_try) 2>&5
19648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19649 (exit $ac_status); }; }; then
19650 ac_cv_working_alloca_h=yes
19652 echo "$as_me: failed program was:" >&5
19653 sed 's/^/| /' conftest.$ac_ext >&5
19655 ac_cv_working_alloca_h=no
19657 rm -f conftest.err conftest.$ac_objext \
19658 conftest$ac_exeext conftest.$ac_ext
19660 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19661 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
19662 if test $ac_cv_working_alloca_h = yes; then
19664 cat >>confdefs.h <<\_ACEOF
19665 #define HAVE_ALLOCA_H 1
19670 echo "$as_me:$LINENO: checking for alloca" >&5
19671 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
19672 if test "${ac_cv_func_alloca_works+set}" = set; then
19673 echo $ECHO_N "(cached) $ECHO_C" >&6
19675 cat >conftest.$ac_ext <<_ACEOF
19678 cat confdefs.h >>conftest.$ac_ext
19679 cat >>conftest.$ac_ext <<_ACEOF
19680 /* end confdefs.h. */
19682 # define alloca __builtin_alloca
19685 # include <malloc.h>
19686 # define alloca _alloca
19689 # include <alloca.h>
19694 # ifndef alloca /* predefined by HP cc +Olibcalls */
19705 char *p = (char *) alloca (1);
19710 rm -f conftest.$ac_objext conftest$ac_exeext
19711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19712 (eval $ac_link) 2>conftest.er1
19714 grep -v '^ *+' conftest.er1 >conftest.err
19716 cat conftest.err >&5
19717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19718 (exit $ac_status); } &&
19719 { ac_try='test -z "$ac_c_werror_flag"
19720 || test ! -s conftest.err'
19721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19722 (eval $ac_try) 2>&5
19724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19725 (exit $ac_status); }; } &&
19726 { ac_try='test -s conftest$ac_exeext'
19727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19728 (eval $ac_try) 2>&5
19730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19731 (exit $ac_status); }; }; then
19732 ac_cv_func_alloca_works=yes
19734 echo "$as_me: failed program was:" >&5
19735 sed 's/^/| /' conftest.$ac_ext >&5
19737 ac_cv_func_alloca_works=no
19739 rm -f conftest.err conftest.$ac_objext \
19740 conftest$ac_exeext conftest.$ac_ext
19742 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19743 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
19745 if test $ac_cv_func_alloca_works = yes; then
19747 cat >>confdefs.h <<\_ACEOF
19748 #define HAVE_ALLOCA 1
19752 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19753 # that cause trouble. Some versions do not even contain alloca or
19754 # contain a buggy version. If you still want to use their alloca,
19755 # use ar to extract alloca.o from them instead of compiling alloca.c.
19757 ALLOCA=alloca.$ac_objext
19759 cat >>confdefs.h <<\_ACEOF
19764 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19765 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
19766 if test "${ac_cv_os_cray+set}" = set; then
19767 echo $ECHO_N "(cached) $ECHO_C" >&6
19769 cat >conftest.$ac_ext <<_ACEOF
19772 cat confdefs.h >>conftest.$ac_ext
19773 cat >>conftest.$ac_ext <<_ACEOF
19774 /* end confdefs.h. */
19775 #if defined(CRAY) && ! defined(CRAY2)
19782 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19783 $EGREP "webecray" >/dev/null 2>&1; then
19791 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19792 echo "${ECHO_T}$ac_cv_os_cray" >&6
19793 if test $ac_cv_os_cray = yes; then
19794 for ac_func in _getb67 GETB67 getb67; do
19795 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19796 echo "$as_me:$LINENO: checking for $ac_func" >&5
19797 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19798 if eval "test \"\${$as_ac_var+set}\" = set"; then
19799 echo $ECHO_N "(cached) $ECHO_C" >&6
19801 cat >conftest.$ac_ext <<_ACEOF
19804 cat confdefs.h >>conftest.$ac_ext
19805 cat >>conftest.$ac_ext <<_ACEOF
19806 /* end confdefs.h. */
19807 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19808 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19809 #define $ac_func innocuous_$ac_func
19811 /* System header to define __stub macros and hopefully few prototypes,
19812 which can conflict with char $ac_func (); below.
19813 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19814 <limits.h> exists even on freestanding compilers. */
19817 # include <limits.h>
19819 # include <assert.h>
19824 /* Override any gcc2 internal prototype to avoid an error. */
19829 /* We use char because int might match the return type of a gcc2
19830 builtin and then its argument prototype would still apply. */
19832 /* The GNU C library defines this for functions which it implements
19833 to always fail with ENOSYS. Some functions are actually named
19834 something starting with __ and the normal name is an alias. */
19835 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19838 char (*f) () = $ac_func;
19847 return f != $ac_func;
19852 rm -f conftest.$ac_objext conftest$ac_exeext
19853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19854 (eval $ac_link) 2>conftest.er1
19856 grep -v '^ *+' conftest.er1 >conftest.err
19858 cat conftest.err >&5
19859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19860 (exit $ac_status); } &&
19861 { ac_try='test -z "$ac_c_werror_flag"
19862 || test ! -s conftest.err'
19863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19864 (eval $ac_try) 2>&5
19866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19867 (exit $ac_status); }; } &&
19868 { ac_try='test -s conftest$ac_exeext'
19869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19870 (eval $ac_try) 2>&5
19872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19873 (exit $ac_status); }; }; then
19874 eval "$as_ac_var=yes"
19876 echo "$as_me: failed program was:" >&5
19877 sed 's/^/| /' conftest.$ac_ext >&5
19879 eval "$as_ac_var=no"
19881 rm -f conftest.err conftest.$ac_objext \
19882 conftest$ac_exeext conftest.$ac_ext
19884 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19885 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19886 if test `eval echo '${'$as_ac_var'}'` = yes; then
19888 cat >>confdefs.h <<_ACEOF
19889 #define CRAY_STACKSEG_END $ac_func
19898 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19899 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
19900 if test "${ac_cv_c_stack_direction+set}" = set; then
19901 echo $ECHO_N "(cached) $ECHO_C" >&6
19903 if test "$cross_compiling" = yes; then
19904 ac_cv_c_stack_direction=0
19906 cat >conftest.$ac_ext <<_ACEOF
19909 cat confdefs.h >>conftest.$ac_ext
19910 cat >>conftest.$ac_ext <<_ACEOF
19911 /* end confdefs.h. */
19913 find_stack_direction ()
19915 static char *addr = 0;
19920 return find_stack_direction ();
19923 return (&dummy > addr) ? 1 : -1;
19929 exit (find_stack_direction () < 0);
19932 rm -f conftest$ac_exeext
19933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19934 (eval $ac_link) 2>&5
19936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19937 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19939 (eval $ac_try) 2>&5
19941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19942 (exit $ac_status); }; }; then
19943 ac_cv_c_stack_direction=1
19945 echo "$as_me: program exited with status $ac_status" >&5
19946 echo "$as_me: failed program was:" >&5
19947 sed 's/^/| /' conftest.$ac_ext >&5
19949 ( exit $ac_status )
19950 ac_cv_c_stack_direction=-1
19952 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19955 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19956 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
19958 cat >>confdefs.h <<_ACEOF
19959 #define STACK_DIRECTION $ac_cv_c_stack_direction
19965 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
19966 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
19967 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
19968 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
19969 echo $ECHO_N "(cached) $ECHO_C" >&6
19971 ac_check_lib_save_LIBS=$LIBS
19973 cat >conftest.$ac_ext <<_ACEOF
19976 cat confdefs.h >>conftest.$ac_ext
19977 cat >>conftest.$ac_ext <<_ACEOF
19978 /* end confdefs.h. */
19980 /* Override any gcc2 internal prototype to avoid an error. */
19984 /* We use char because int might match the return type of a gcc2
19985 builtin and then its argument prototype would still apply. */
19995 rm -f conftest.$ac_objext conftest$ac_exeext
19996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19997 (eval $ac_link) 2>conftest.er1
19999 grep -v '^ *+' conftest.er1 >conftest.err
20001 cat conftest.err >&5
20002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20003 (exit $ac_status); } &&
20004 { ac_try='test -z "$ac_c_werror_flag"
20005 || test ! -s conftest.err'
20006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20007 (eval $ac_try) 2>&5
20009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20010 (exit $ac_status); }; } &&
20011 { ac_try='test -s conftest$ac_exeext'
20012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20013 (eval $ac_try) 2>&5
20015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20016 (exit $ac_status); }; }; then
20017 ac_cv_lib_sun_getmntent=yes
20019 echo "$as_me: failed program was:" >&5
20020 sed 's/^/| /' conftest.$ac_ext >&5
20022 ac_cv_lib_sun_getmntent=no
20024 rm -f conftest.err conftest.$ac_objext \
20025 conftest$ac_exeext conftest.$ac_ext
20026 LIBS=$ac_check_lib_save_LIBS
20028 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
20029 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
20030 if test $ac_cv_lib_sun_getmntent = yes; then
20033 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
20034 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
20035 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
20036 echo $ECHO_N "(cached) $ECHO_C" >&6
20038 ac_check_lib_save_LIBS=$LIBS
20040 cat >conftest.$ac_ext <<_ACEOF
20043 cat confdefs.h >>conftest.$ac_ext
20044 cat >>conftest.$ac_ext <<_ACEOF
20045 /* end confdefs.h. */
20047 /* Override any gcc2 internal prototype to avoid an error. */
20051 /* We use char because int might match the return type of a gcc2
20052 builtin and then its argument prototype would still apply. */
20062 rm -f conftest.$ac_objext conftest$ac_exeext
20063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20064 (eval $ac_link) 2>conftest.er1
20066 grep -v '^ *+' conftest.er1 >conftest.err
20068 cat conftest.err >&5
20069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20070 (exit $ac_status); } &&
20071 { ac_try='test -z "$ac_c_werror_flag"
20072 || test ! -s conftest.err'
20073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20074 (eval $ac_try) 2>&5
20076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20077 (exit $ac_status); }; } &&
20078 { ac_try='test -s conftest$ac_exeext'
20079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20080 (eval $ac_try) 2>&5
20082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20083 (exit $ac_status); }; }; then
20084 ac_cv_lib_seq_getmntent=yes
20086 echo "$as_me: failed program was:" >&5
20087 sed 's/^/| /' conftest.$ac_ext >&5
20089 ac_cv_lib_seq_getmntent=no
20091 rm -f conftest.err conftest.$ac_objext \
20092 conftest$ac_exeext conftest.$ac_ext
20093 LIBS=$ac_check_lib_save_LIBS
20095 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
20096 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
20097 if test $ac_cv_lib_seq_getmntent = yes; then
20100 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
20101 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
20102 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
20103 echo $ECHO_N "(cached) $ECHO_C" >&6
20105 ac_check_lib_save_LIBS=$LIBS
20107 cat >conftest.$ac_ext <<_ACEOF
20110 cat confdefs.h >>conftest.$ac_ext
20111 cat >>conftest.$ac_ext <<_ACEOF
20112 /* end confdefs.h. */
20114 /* Override any gcc2 internal prototype to avoid an error. */
20118 /* We use char because int might match the return type of a gcc2
20119 builtin and then its argument prototype would still apply. */
20129 rm -f conftest.$ac_objext conftest$ac_exeext
20130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20131 (eval $ac_link) 2>conftest.er1
20133 grep -v '^ *+' conftest.er1 >conftest.err
20135 cat conftest.err >&5
20136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20137 (exit $ac_status); } &&
20138 { ac_try='test -z "$ac_c_werror_flag"
20139 || test ! -s conftest.err'
20140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20141 (eval $ac_try) 2>&5
20143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20144 (exit $ac_status); }; } &&
20145 { ac_try='test -s conftest$ac_exeext'
20146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20147 (eval $ac_try) 2>&5
20149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20150 (exit $ac_status); }; }; then
20151 ac_cv_lib_gen_getmntent=yes
20153 echo "$as_me: failed program was:" >&5
20154 sed 's/^/| /' conftest.$ac_ext >&5
20156 ac_cv_lib_gen_getmntent=no
20158 rm -f conftest.err conftest.$ac_objext \
20159 conftest$ac_exeext conftest.$ac_ext
20160 LIBS=$ac_check_lib_save_LIBS
20162 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
20163 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
20164 if test $ac_cv_lib_gen_getmntent = yes; then
20173 for ac_func in getmntent
20175 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20176 echo "$as_me:$LINENO: checking for $ac_func" >&5
20177 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20178 if eval "test \"\${$as_ac_var+set}\" = set"; then
20179 echo $ECHO_N "(cached) $ECHO_C" >&6
20181 cat >conftest.$ac_ext <<_ACEOF
20184 cat confdefs.h >>conftest.$ac_ext
20185 cat >>conftest.$ac_ext <<_ACEOF
20186 /* end confdefs.h. */
20187 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20188 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20189 #define $ac_func innocuous_$ac_func
20191 /* System header to define __stub macros and hopefully few prototypes,
20192 which can conflict with char $ac_func (); below.
20193 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20194 <limits.h> exists even on freestanding compilers. */
20197 # include <limits.h>
20199 # include <assert.h>
20204 /* Override any gcc2 internal prototype to avoid an error. */
20209 /* We use char because int might match the return type of a gcc2
20210 builtin and then its argument prototype would still apply. */
20212 /* The GNU C library defines this for functions which it implements
20213 to always fail with ENOSYS. Some functions are actually named
20214 something starting with __ and the normal name is an alias. */
20215 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20218 char (*f) () = $ac_func;
20227 return f != $ac_func;
20232 rm -f conftest.$ac_objext conftest$ac_exeext
20233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20234 (eval $ac_link) 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_exeext'
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 eval "$as_ac_var=yes"
20256 echo "$as_me: failed program was:" >&5
20257 sed 's/^/| /' conftest.$ac_ext >&5
20259 eval "$as_ac_var=no"
20261 rm -f conftest.err conftest.$ac_objext \
20262 conftest$ac_exeext conftest.$ac_ext
20264 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20265 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20266 if test `eval echo '${'$as_ac_var'}'` = yes; then
20267 cat >>confdefs.h <<_ACEOF
20268 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20275 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
20276 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
20277 if test "${ac_cv_func_closedir_void+set}" = set; then
20278 echo $ECHO_N "(cached) $ECHO_C" >&6
20280 if test "$cross_compiling" = yes; then
20281 ac_cv_func_closedir_void=yes
20283 cat >conftest.$ac_ext <<_ACEOF
20286 cat confdefs.h >>conftest.$ac_ext
20287 cat >>conftest.$ac_ext <<_ACEOF
20288 /* end confdefs.h. */
20289 $ac_includes_default
20290 #include <$ac_header_dirent>
20291 #ifndef __cplusplus
20298 exit (closedir (opendir (".")) != 0);
20303 rm -f conftest$ac_exeext
20304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20305 (eval $ac_link) 2>&5
20307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20308 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20310 (eval $ac_try) 2>&5
20312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20313 (exit $ac_status); }; }; then
20314 ac_cv_func_closedir_void=no
20316 echo "$as_me: program exited with status $ac_status" >&5
20317 echo "$as_me: failed program was:" >&5
20318 sed 's/^/| /' conftest.$ac_ext >&5
20320 ( exit $ac_status )
20321 ac_cv_func_closedir_void=yes
20323 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20326 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
20327 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
20328 if test $ac_cv_func_closedir_void = yes; then
20330 cat >>confdefs.h <<\_ACEOF
20331 #define CLOSEDIR_VOID 1
20336 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
20337 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
20338 if test "${ac_cv_func_setpgrp_void+set}" = set; then
20339 echo $ECHO_N "(cached) $ECHO_C" >&6
20341 if test "$cross_compiling" = yes; then
20342 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
20343 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
20344 { (exit 1); exit 1; }; }
20346 cat >conftest.$ac_ext <<_ACEOF
20349 cat confdefs.h >>conftest.$ac_ext
20350 cat >>conftest.$ac_ext <<_ACEOF
20351 /* end confdefs.h. */
20353 # include <unistd.h>
20359 /* If this system has a BSD-style setpgrp which takes arguments,
20360 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
20361 exit successfully. */
20362 exit (setpgrp (1,1) == -1 ? 0 : 1);
20367 rm -f conftest$ac_exeext
20368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20369 (eval $ac_link) 2>&5
20371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20372 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20374 (eval $ac_try) 2>&5
20376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20377 (exit $ac_status); }; }; then
20378 ac_cv_func_setpgrp_void=no
20380 echo "$as_me: program exited with status $ac_status" >&5
20381 echo "$as_me: failed program was:" >&5
20382 sed 's/^/| /' conftest.$ac_ext >&5
20384 ( exit $ac_status )
20385 ac_cv_func_setpgrp_void=yes
20387 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20390 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
20391 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
20392 if test $ac_cv_func_setpgrp_void = yes; then
20394 cat >>confdefs.h <<\_ACEOF
20395 #define SETPGRP_VOID 1
20399 # AC_FUNC_FNMATCH dnl use local version
20402 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
20403 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
20404 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
20405 echo $ECHO_N "(cached) $ECHO_C" >&6
20407 ac_check_lib_save_LIBS=$LIBS
20408 LIBS="-lxpg4 $LIBS"
20409 cat >conftest.$ac_ext <<_ACEOF
20412 cat confdefs.h >>conftest.$ac_ext
20413 cat >>conftest.$ac_ext <<_ACEOF
20414 /* end confdefs.h. */
20416 /* Override any gcc2 internal prototype to avoid an error. */
20420 /* We use char because int might match the return type of a gcc2
20421 builtin and then its argument prototype would still apply. */
20431 rm -f conftest.$ac_objext conftest$ac_exeext
20432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20433 (eval $ac_link) 2>conftest.er1
20435 grep -v '^ *+' conftest.er1 >conftest.err
20437 cat conftest.err >&5
20438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20439 (exit $ac_status); } &&
20440 { ac_try='test -z "$ac_c_werror_flag"
20441 || test ! -s conftest.err'
20442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20443 (eval $ac_try) 2>&5
20445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20446 (exit $ac_status); }; } &&
20447 { ac_try='test -s conftest$ac_exeext'
20448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20449 (eval $ac_try) 2>&5
20451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20452 (exit $ac_status); }; }; then
20453 ac_cv_lib_xpg4_setlocale=yes
20455 echo "$as_me: failed program was:" >&5
20456 sed 's/^/| /' conftest.$ac_ext >&5
20458 ac_cv_lib_xpg4_setlocale=no
20460 rm -f conftest.err conftest.$ac_objext \
20461 conftest$ac_exeext conftest.$ac_ext
20462 LIBS=$ac_check_lib_save_LIBS
20464 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
20465 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
20466 if test $ac_cv_lib_xpg4_setlocale = yes; then
20467 LIBS="$LIBS -lxpg4"
20473 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
20474 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
20475 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
20476 echo $ECHO_N "(cached) $ECHO_C" >&6
20478 ac_check_lib_save_LIBS=$LIBS
20480 cat >conftest.$ac_ext <<_ACEOF
20483 cat confdefs.h >>conftest.$ac_ext
20484 cat >>conftest.$ac_ext <<_ACEOF
20485 /* end confdefs.h. */
20487 /* Override any gcc2 internal prototype to avoid an error. */
20491 /* We use char because int might match the return type of a gcc2
20492 builtin and then its argument prototype would still apply. */
20502 rm -f conftest.$ac_objext conftest$ac_exeext
20503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20504 (eval $ac_link) 2>conftest.er1
20506 grep -v '^ *+' conftest.er1 >conftest.err
20508 cat conftest.err >&5
20509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20510 (exit $ac_status); } &&
20511 { ac_try='test -z "$ac_c_werror_flag"
20512 || test ! -s conftest.err'
20513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20514 (eval $ac_try) 2>&5
20516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20517 (exit $ac_status); }; } &&
20518 { ac_try='test -s conftest$ac_exeext'
20519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20520 (eval $ac_try) 2>&5
20522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20523 (exit $ac_status); }; }; then
20524 ac_cv_lib_sun_getpwnam=yes
20526 echo "$as_me: failed program was:" >&5
20527 sed 's/^/| /' conftest.$ac_ext >&5
20529 ac_cv_lib_sun_getpwnam=no
20531 rm -f conftest.err conftest.$ac_objext \
20532 conftest$ac_exeext conftest.$ac_ext
20533 LIBS=$ac_check_lib_save_LIBS
20535 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
20536 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
20537 if test $ac_cv_lib_sun_getpwnam = yes; then
20538 cat >>confdefs.h <<_ACEOF
20539 #define HAVE_LIBSUN 1
20548 for ac_header in zlib.h
20550 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20551 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20552 echo "$as_me:$LINENO: checking for $ac_header" >&5
20553 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20554 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20555 echo $ECHO_N "(cached) $ECHO_C" >&6
20557 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20558 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20560 # Is the header compilable?
20561 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20562 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20563 cat >conftest.$ac_ext <<_ACEOF
20566 cat confdefs.h >>conftest.$ac_ext
20567 cat >>conftest.$ac_ext <<_ACEOF
20568 /* end confdefs.h. */
20569 $ac_includes_default
20570 #include <$ac_header>
20572 rm -f conftest.$ac_objext
20573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20574 (eval $ac_compile) 2>conftest.er1
20576 grep -v '^ *+' conftest.er1 >conftest.err
20578 cat conftest.err >&5
20579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20580 (exit $ac_status); } &&
20581 { ac_try='test -z "$ac_c_werror_flag"
20582 || test ! -s conftest.err'
20583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20584 (eval $ac_try) 2>&5
20586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20587 (exit $ac_status); }; } &&
20588 { ac_try='test -s conftest.$ac_objext'
20589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20590 (eval $ac_try) 2>&5
20592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20593 (exit $ac_status); }; }; then
20594 ac_header_compiler=yes
20596 echo "$as_me: failed program was:" >&5
20597 sed 's/^/| /' conftest.$ac_ext >&5
20599 ac_header_compiler=no
20601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20602 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20603 echo "${ECHO_T}$ac_header_compiler" >&6
20605 # Is the header present?
20606 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20607 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20608 cat >conftest.$ac_ext <<_ACEOF
20611 cat confdefs.h >>conftest.$ac_ext
20612 cat >>conftest.$ac_ext <<_ACEOF
20613 /* end confdefs.h. */
20614 #include <$ac_header>
20616 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20617 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20619 grep -v '^ *+' conftest.er1 >conftest.err
20621 cat conftest.err >&5
20622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20623 (exit $ac_status); } >/dev/null; then
20624 if test -s conftest.err; then
20625 ac_cpp_err=$ac_c_preproc_warn_flag
20626 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20633 if test -z "$ac_cpp_err"; then
20634 ac_header_preproc=yes
20636 echo "$as_me: failed program was:" >&5
20637 sed 's/^/| /' conftest.$ac_ext >&5
20639 ac_header_preproc=no
20641 rm -f conftest.err conftest.$ac_ext
20642 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20643 echo "${ECHO_T}$ac_header_preproc" >&6
20645 # So? What about this header?
20646 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20648 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20649 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20650 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20651 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20652 ac_header_preproc=yes
20655 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20656 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20657 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20658 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20659 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20660 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20661 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20662 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20663 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20664 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20665 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20666 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20669 ## ------------------------------------------ ##
20670 ## Report this to the AC_PACKAGE_NAME lists. ##
20671 ## ------------------------------------------ ##
20674 sed "s/^/$as_me: WARNING: /" >&2
20677 echo "$as_me:$LINENO: checking for $ac_header" >&5
20678 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20679 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20680 echo $ECHO_N "(cached) $ECHO_C" >&6
20682 eval "$as_ac_Header=\$ac_header_preproc"
20684 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20685 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20688 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20689 cat >>confdefs.h <<_ACEOF
20690 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20697 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
20698 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
20699 if test "${ac_cv_lib_z_deflate+set}" = set; then
20700 echo $ECHO_N "(cached) $ECHO_C" >&6
20702 ac_check_lib_save_LIBS=$LIBS
20704 cat >conftest.$ac_ext <<_ACEOF
20707 cat confdefs.h >>conftest.$ac_ext
20708 cat >>conftest.$ac_ext <<_ACEOF
20709 /* end confdefs.h. */
20711 /* Override any gcc2 internal prototype to avoid an error. */
20715 /* We use char because int might match the return type of a gcc2
20716 builtin and then its argument prototype would still apply. */
20726 rm -f conftest.$ac_objext conftest$ac_exeext
20727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20728 (eval $ac_link) 2>conftest.er1
20730 grep -v '^ *+' conftest.er1 >conftest.err
20732 cat conftest.err >&5
20733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20734 (exit $ac_status); } &&
20735 { ac_try='test -z "$ac_c_werror_flag"
20736 || test ! -s conftest.err'
20737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20738 (eval $ac_try) 2>&5
20740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20741 (exit $ac_status); }; } &&
20742 { ac_try='test -s conftest$ac_exeext'
20743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20744 (eval $ac_try) 2>&5
20746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20747 (exit $ac_status); }; }; then
20748 ac_cv_lib_z_deflate=yes
20750 echo "$as_me: failed program was:" >&5
20751 sed 's/^/| /' conftest.$ac_ext >&5
20753 ac_cv_lib_z_deflate=no
20755 rm -f conftest.err conftest.$ac_objext \
20756 conftest$ac_exeext conftest.$ac_ext
20757 LIBS=$ac_check_lib_save_LIBS
20759 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
20760 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
20761 if test $ac_cv_lib_z_deflate = yes; then
20766 if test x$FDLIBS = x-lz; then
20767 cat >>confdefs.h <<\_ACEOF
20768 #define HAVE_LIBZ 1
20774 if test "${ac_cv_header_sys_acl_h+set}" = set; then
20775 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
20776 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
20777 if test "${ac_cv_header_sys_acl_h+set}" = set; then
20778 echo $ECHO_N "(cached) $ECHO_C" >&6
20780 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
20781 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
20783 # Is the header compilable?
20784 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
20785 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
20786 cat >conftest.$ac_ext <<_ACEOF
20789 cat confdefs.h >>conftest.$ac_ext
20790 cat >>conftest.$ac_ext <<_ACEOF
20791 /* end confdefs.h. */
20792 $ac_includes_default
20793 #include <sys/acl.h>
20795 rm -f conftest.$ac_objext
20796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20797 (eval $ac_compile) 2>conftest.er1
20799 grep -v '^ *+' conftest.er1 >conftest.err
20801 cat conftest.err >&5
20802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20803 (exit $ac_status); } &&
20804 { ac_try='test -z "$ac_c_werror_flag"
20805 || test ! -s conftest.err'
20806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20807 (eval $ac_try) 2>&5
20809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20810 (exit $ac_status); }; } &&
20811 { ac_try='test -s conftest.$ac_objext'
20812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20813 (eval $ac_try) 2>&5
20815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20816 (exit $ac_status); }; }; then
20817 ac_header_compiler=yes
20819 echo "$as_me: failed program was:" >&5
20820 sed 's/^/| /' conftest.$ac_ext >&5
20822 ac_header_compiler=no
20824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20825 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20826 echo "${ECHO_T}$ac_header_compiler" >&6
20828 # Is the header present?
20829 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
20830 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
20831 cat >conftest.$ac_ext <<_ACEOF
20834 cat confdefs.h >>conftest.$ac_ext
20835 cat >>conftest.$ac_ext <<_ACEOF
20836 /* end confdefs.h. */
20837 #include <sys/acl.h>
20839 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20840 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20842 grep -v '^ *+' conftest.er1 >conftest.err
20844 cat conftest.err >&5
20845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20846 (exit $ac_status); } >/dev/null; then
20847 if test -s conftest.err; then
20848 ac_cpp_err=$ac_c_preproc_warn_flag
20849 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20856 if test -z "$ac_cpp_err"; then
20857 ac_header_preproc=yes
20859 echo "$as_me: failed program was:" >&5
20860 sed 's/^/| /' conftest.$ac_ext >&5
20862 ac_header_preproc=no
20864 rm -f conftest.err conftest.$ac_ext
20865 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20866 echo "${ECHO_T}$ac_header_preproc" >&6
20868 # So? What about this header?
20869 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20871 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
20872 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20873 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
20874 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
20875 ac_header_preproc=yes
20878 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
20879 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
20880 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
20881 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
20882 { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
20883 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
20884 { echo "$as_me:$LINENO: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&5
20885 echo "$as_me: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&2;}
20886 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
20887 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
20888 { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
20889 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
20892 ## ------------------------------------------ ##
20893 ## Report this to the AC_PACKAGE_NAME lists. ##
20894 ## ------------------------------------------ ##
20897 sed "s/^/$as_me: WARNING: /" >&2
20900 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
20901 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
20902 if test "${ac_cv_header_sys_acl_h+set}" = set; then
20903 echo $ECHO_N "(cached) $ECHO_C" >&6
20905 ac_cv_header_sys_acl_h=$ac_header_preproc
20907 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
20908 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
20913 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
20914 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
20915 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
20916 echo $ECHO_N "(cached) $ECHO_C" >&6
20918 ac_check_lib_save_LIBS=$LIBS
20920 cat >conftest.$ac_ext <<_ACEOF
20923 cat confdefs.h >>conftest.$ac_ext
20924 cat >>conftest.$ac_ext <<_ACEOF
20925 /* end confdefs.h. */
20927 /* Override any gcc2 internal prototype to avoid an error. */
20931 /* We use char because int might match the return type of a gcc2
20932 builtin and then its argument prototype would still apply. */
20933 char acl_get_file ();
20942 rm -f conftest.$ac_objext conftest$ac_exeext
20943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20944 (eval $ac_link) 2>conftest.er1
20946 grep -v '^ *+' conftest.er1 >conftest.err
20948 cat conftest.err >&5
20949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20950 (exit $ac_status); } &&
20951 { ac_try='test -z "$ac_c_werror_flag"
20952 || test ! -s conftest.err'
20953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20954 (eval $ac_try) 2>&5
20956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20957 (exit $ac_status); }; } &&
20958 { ac_try='test -s conftest$ac_exeext'
20959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20960 (eval $ac_try) 2>&5
20962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20963 (exit $ac_status); }; }; then
20964 ac_cv_lib_acl_acl_get_file=yes
20966 echo "$as_me: failed program was:" >&5
20967 sed 's/^/| /' conftest.$ac_ext >&5
20969 ac_cv_lib_acl_acl_get_file=no
20971 rm -f conftest.err conftest.$ac_objext \
20972 conftest$ac_exeext conftest.$ac_ext
20973 LIBS=$ac_check_lib_save_LIBS
20975 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
20976 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
20977 if test $ac_cv_lib_acl_acl_get_file = yes; then
20978 FDLIBS="-lacl $FDLIBS"
20982 if test $ac_cv_lib_acl_acl_get_file = yes; then
20983 cat >>confdefs.h <<\_ACEOF
20991 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
20992 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
20993 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
20994 echo $ECHO_N "(cached) $ECHO_C" >&6
20996 ac_check_lib_save_LIBS=$LIBS
20997 LIBS="-lpthread $LIBS"
20998 cat >conftest.$ac_ext <<_ACEOF
21001 cat confdefs.h >>conftest.$ac_ext
21002 cat >>conftest.$ac_ext <<_ACEOF
21003 /* end confdefs.h. */
21005 /* Override any gcc2 internal prototype to avoid an error. */
21009 /* We use char because int might match the return type of a gcc2
21010 builtin and then its argument prototype would still apply. */
21011 char pthread_create ();
21020 rm -f conftest.$ac_objext conftest$ac_exeext
21021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21022 (eval $ac_link) 2>conftest.er1
21024 grep -v '^ *+' conftest.er1 >conftest.err
21026 cat conftest.err >&5
21027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21028 (exit $ac_status); } &&
21029 { ac_try='test -z "$ac_c_werror_flag"
21030 || test ! -s conftest.err'
21031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21032 (eval $ac_try) 2>&5
21034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21035 (exit $ac_status); }; } &&
21036 { ac_try='test -s conftest$ac_exeext'
21037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21038 (eval $ac_try) 2>&5
21040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21041 (exit $ac_status); }; }; then
21042 ac_cv_lib_pthread_pthread_create=yes
21044 echo "$as_me: failed program was:" >&5
21045 sed 's/^/| /' conftest.$ac_ext >&5
21047 ac_cv_lib_pthread_pthread_create=no
21049 rm -f conftest.err conftest.$ac_objext \
21050 conftest$ac_exeext conftest.$ac_ext
21051 LIBS=$ac_check_lib_save_LIBS
21053 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
21054 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
21055 if test $ac_cv_lib_pthread_pthread_create = yes; then
21056 PTHREAD_LIB="-lpthread"
21058 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
21059 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
21060 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
21061 echo $ECHO_N "(cached) $ECHO_C" >&6
21063 ac_check_lib_save_LIBS=$LIBS
21064 LIBS="-lpthreads $LIBS"
21065 cat >conftest.$ac_ext <<_ACEOF
21068 cat confdefs.h >>conftest.$ac_ext
21069 cat >>conftest.$ac_ext <<_ACEOF
21070 /* end confdefs.h. */
21072 /* Override any gcc2 internal prototype to avoid an error. */
21076 /* We use char because int might match the return type of a gcc2
21077 builtin and then its argument prototype would still apply. */
21078 char pthread_create ();
21087 rm -f conftest.$ac_objext conftest$ac_exeext
21088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21089 (eval $ac_link) 2>conftest.er1
21091 grep -v '^ *+' conftest.er1 >conftest.err
21093 cat conftest.err >&5
21094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21095 (exit $ac_status); } &&
21096 { ac_try='test -z "$ac_c_werror_flag"
21097 || test ! -s conftest.err'
21098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21099 (eval $ac_try) 2>&5
21101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21102 (exit $ac_status); }; } &&
21103 { ac_try='test -s conftest$ac_exeext'
21104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21105 (eval $ac_try) 2>&5
21107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21108 (exit $ac_status); }; }; then
21109 ac_cv_lib_pthreads_pthread_create=yes
21111 echo "$as_me: failed program was:" >&5
21112 sed 's/^/| /' conftest.$ac_ext >&5
21114 ac_cv_lib_pthreads_pthread_create=no
21116 rm -f conftest.err conftest.$ac_objext \
21117 conftest$ac_exeext conftest.$ac_ext
21118 LIBS=$ac_check_lib_save_LIBS
21120 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
21121 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
21122 if test $ac_cv_lib_pthreads_pthread_create = yes; then
21123 PTHREAD_LIB="-lpthreads"
21125 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
21126 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
21127 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
21128 echo $ECHO_N "(cached) $ECHO_C" >&6
21130 ac_check_lib_save_LIBS=$LIBS
21132 cat >conftest.$ac_ext <<_ACEOF
21135 cat confdefs.h >>conftest.$ac_ext
21136 cat >>conftest.$ac_ext <<_ACEOF
21137 /* end confdefs.h. */
21139 /* Override any gcc2 internal prototype to avoid an error. */
21143 /* We use char because int might match the return type of a gcc2
21144 builtin and then its argument prototype would still apply. */
21145 char pthread_create ();
21154 rm -f conftest.$ac_objext conftest$ac_exeext
21155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21156 (eval $ac_link) 2>conftest.er1
21158 grep -v '^ *+' conftest.er1 >conftest.err
21160 cat conftest.err >&5
21161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21162 (exit $ac_status); } &&
21163 { ac_try='test -z "$ac_c_werror_flag"
21164 || test ! -s conftest.err'
21165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21166 (eval $ac_try) 2>&5
21168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21169 (exit $ac_status); }; } &&
21170 { ac_try='test -s conftest$ac_exeext'
21171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21172 (eval $ac_try) 2>&5
21174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21175 (exit $ac_status); }; }; then
21176 ac_cv_lib_c_r_pthread_create=yes
21178 echo "$as_me: failed program was:" >&5
21179 sed 's/^/| /' conftest.$ac_ext >&5
21181 ac_cv_lib_c_r_pthread_create=no
21183 rm -f conftest.err conftest.$ac_objext \
21184 conftest$ac_exeext conftest.$ac_ext
21185 LIBS=$ac_check_lib_save_LIBS
21187 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
21188 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
21189 if test $ac_cv_lib_c_r_pthread_create = yes; then
21190 PTHREAD_LIB="-lc_r"
21192 echo "$as_me:$LINENO: checking for pthread_create" >&5
21193 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
21194 if test "${ac_cv_func_pthread_create+set}" = set; then
21195 echo $ECHO_N "(cached) $ECHO_C" >&6
21197 cat >conftest.$ac_ext <<_ACEOF
21200 cat confdefs.h >>conftest.$ac_ext
21201 cat >>conftest.$ac_ext <<_ACEOF
21202 /* end confdefs.h. */
21203 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
21204 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21205 #define pthread_create innocuous_pthread_create
21207 /* System header to define __stub macros and hopefully few prototypes,
21208 which can conflict with char pthread_create (); below.
21209 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21210 <limits.h> exists even on freestanding compilers. */
21213 # include <limits.h>
21215 # include <assert.h>
21218 #undef pthread_create
21220 /* Override any gcc2 internal prototype to avoid an error. */
21225 /* We use char because int might match the return type of a gcc2
21226 builtin and then its argument prototype would still apply. */
21227 char pthread_create ();
21228 /* The GNU C library defines this for functions which it implements
21229 to always fail with ENOSYS. Some functions are actually named
21230 something starting with __ and the normal name is an alias. */
21231 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
21234 char (*f) () = pthread_create;
21243 return f != pthread_create;
21248 rm -f conftest.$ac_objext conftest$ac_exeext
21249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21250 (eval $ac_link) 2>conftest.er1
21252 grep -v '^ *+' conftest.er1 >conftest.err
21254 cat conftest.err >&5
21255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21256 (exit $ac_status); } &&
21257 { ac_try='test -z "$ac_c_werror_flag"
21258 || test ! -s conftest.err'
21259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21260 (eval $ac_try) 2>&5
21262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21263 (exit $ac_status); }; } &&
21264 { ac_try='test -s conftest$ac_exeext'
21265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21266 (eval $ac_try) 2>&5
21268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21269 (exit $ac_status); }; }; then
21270 ac_cv_func_pthread_create=yes
21272 echo "$as_me: failed program was:" >&5
21273 sed 's/^/| /' conftest.$ac_ext >&5
21275 ac_cv_func_pthread_create=no
21277 rm -f conftest.err conftest.$ac_objext \
21278 conftest$ac_exeext conftest.$ac_ext
21280 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
21281 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
21294 cat >>confdefs.h <<\_ACEOF
21300 CFLAGS=${CFLAGS--O}
21301 LDFLAGS=${LDFLAGS--O}
21302 DB_LIBS="${SQL_LFLAGS}"
21304 CPPFLAGS="$CPPFLAGS"
21329 # Finally we set appropriate distribution specific
21330 # variables and defaults
21332 # PFILES are platform specific files
21333 PFILES="platforms/Makefile"
21337 hostname=`uname -n | cut -d '.' -f 1`
21338 case "$DISTNAME" in
21341 PSCMD="ps -e -o pid,comm"
21342 PFILES="${PFILES} \
21343 platforms/aix/Makefile"
21344 TAPEDRIVE="/dev/rmt0.1"
21348 PTHREAD_LIB="-lpthread -lexc"
21349 if test "${CC}" = "gcc" ; then
21356 TAPEDRIVE="/dev/nrmt0"
21359 DISTVER=`uname -a |awk '{print $3}'`
21360 TAPEDRIVE="/dev/nrmt0"
21361 PTHREAD_LIB="-pthread"
21362 CFLAGS="${CFLAGS} -pthread"
21363 PSCMD="ps -ax -o pid,command"
21366 PFILES="${PFILES} \
21367 platforms/bsdi/Makefile \
21368 platforms/bsdi/bacula-fd \
21369 platforms/bsdi/bacula-sd \
21370 platforms/bsdi/bacula-dir"
21371 largefile_support="yes"
21374 DISTVER=`uname -a |awk '{print $3}'`
21375 TAPEDRIVE="/dev/nrst0"
21377 WCFLAGS="-mwindows"
21378 WLDFLAGS="-mwindows"
21382 TAPEDRIVE="/dev/nst0"
21383 PSCMD="ps -e -o pid,command"
21385 PFILES="${PFILES} \
21386 platforms/darwin/Makefile"
21389 DISTVER=`cat /etc/debian_version`
21390 TAPEDRIVE="/dev/nrst0"
21391 PSCMD="ps -e -o pid,command"
21394 DISTVER=`uname -a |awk '{print $3}'`
21395 VER=`echo $DISTVER | cut -c 1`
21396 if test x$VER = x4 ; then
21397 PTHREAD_LIB="-pthread"
21398 CFLAGS="${CFLAGS} -pthread"
21402 TAPEDRIVE="/dev/nrsa0"
21403 PSCMD="ps -ax -o pid,command"
21404 PFILES="${PFILES} \
21405 platforms/freebsd/Makefile \
21406 platforms/freebsd/bacula-fd \
21407 platforms/freebsd/bacula-sd \
21408 platforms/freebsd/bacula-dir"
21409 largefile_support="yes"
21412 PSCMD="UNIX95=1 ps -e -o pid,comm"
21413 CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
21415 TAPEDRIVE="/dev/rmt/0hnb"
21416 PTHREAD_LIB="-lpthread"
21417 cat >>confdefs.h <<\_ACEOF
21418 #define _INCLUDE_LONGLONG 1
21424 TAPEDRIVE="/dev/rmt/0cbn"
21425 PSCMD="ps -e -o pid,comm"
21426 PFILES="${PFILES} \
21427 platforms/irix/Makefile \
21428 platforms/irix/bacula-fd \
21429 platforms/irix/bacula-sd \
21430 platforms/irix/bacula-dir"
21433 DISTVER=`uname -a |awk '{print $3}'`
21436 TAPEDRIVE="/dev/nrst0"
21437 PSCMD="ps -ax -o pid,command"
21438 PTHREAD_LIB="-pthread"
21439 CFLAGS="${CFLAGS} -pthread"
21442 DISTVER=`uname -a |awk '{print $3}'`
21445 TAPEDRIVE="/dev/nrst0"
21446 PSCMD="ps -ax -o pid,command"
21447 PTHREAD_LIB="-pthread"
21448 CFLAGS="${CFLAGS} -pthread"
21449 PFILES="${PFILES} \
21450 platforms/openbsd/Makefile \
21451 platforms/openbsd/bacula-fd \
21452 platforms/openbsd/bacula-sd \
21453 platforms/openbsd/bacula-dir"
21456 if test -f /etc/whitebox-release ; then
21457 f=/etc/whitebox-release
21459 f=/etc/redhat-release
21461 if test `cat $f | grep release |\
21462 cut -f 3 -d ' '`x = "Enterprise"x ; then
21463 DISTVER="Enterprise "`cat $f | grep release |\
21466 DISTVER=`cat /etc/redhat-release | grep release |\
21469 TAPEDRIVE="/dev/nst0"
21470 PSCMD="ps -e -o pid,command"
21471 PFILES="${PFILES} \
21472 platforms/redhat/Makefile \
21473 platforms/redhat/bacula-fd \
21474 platforms/redhat/bacula-sd \
21475 platforms/redhat/bacula-dir \
21476 platforms/redhat/bacula.spec \
21478 hostname=`hostname -s`
21481 DISTVER=`cat /etc/mandrake-release | grep release |\
21483 TAPEDRIVE="/dev/nst0"
21484 PSCMD="ps -e -o pid,command"
21485 PFILES="${PFILES} \
21486 platforms/mandrake/Makefile \
21487 platforms/mandrake/bacula-fd \
21488 platforms/mandrake/bacula-sd \
21489 platforms/mandrake/bacula-dir \
21490 platforms/mandrake/bacula.spec \
21494 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
21495 TAPEDRIVE="/dev/nst0"
21496 PSCMD="ps -e -o pid,command"
21497 PFILES="${PFILES} \
21498 platforms/gentoo/Makefile \
21499 platforms/gentoo/bacula-init \
21500 platforms/gentoo/bacula-fd \
21501 platforms/gentoo/bacula-sd \
21502 platforms/gentoo/bacula-dir"
21505 DISTVER=`cat /etc/slackware-version`
21506 TAPEDRIVE="/dev/nst0"
21507 PSCMD="ps -e -o pid,command"
21508 PFILES="${PFILES} \
21509 platforms/slackware/Makefile \
21510 platforms/slackware/rc.bacula-fd \
21511 platforms/slackware/rc.bacula-sd \
21512 platforms/slackware/rc.bacula-dir\
21513 platforms/slackware/functions.bacula"
21517 TAPEDRIVE="/dev/rmt/0cbn"
21518 PSCMD="ps -e -o pid,comm"
21519 PFILES="${PFILES} \
21520 platforms/solaris/Makefile \
21521 platforms/solaris/bacula-fd \
21522 platforms/solaris/bacula-sd \
21523 platforms/solaris/bacula-dir"
21524 if test x$DISTVER = x5.6 ; then
21525 cat >>confdefs.h <<\_ACEOF
21526 #define HAVE_OLD_SOCKOPT 1
21530 LIBS="$LIBS -lresolv"
21533 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
21535 TAPEDRIVE="/dev/nst0"
21536 PSCMD="ps -e -o pid,command"
21537 PFILES="${PFILES} \
21538 platforms/suse/Makefile \
21539 platforms/suse/bacula-fd \
21540 platforms/suse/bacula-sd \
21541 platforms/suse/bacula-dir \
21542 platforms/suse/bacula \
21543 platforms/suse/bacula.spec"
21548 TAPEDRIVE="/dev/nst0"
21549 PSCMD="ps -e -o pid,command"
21550 PFILES="${PFILES} \
21551 platforms/suse/Makefile \
21552 platforms/suse/bacula-fd \
21553 platforms/suse/bacula-sd \
21554 platforms/suse/bacula-dir"
21558 TAPEDRIVE="/dev/nst0"
21561 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
21567 LIBS="$PTHREAD_LIB $LIBS"
21569 cat >>confdefs.h <<_ACEOF
21573 cat >>confdefs.h <<_ACEOF
21584 MCOMMON=./autoconf/Make.common
21587 if test "x${subsysdir}" = "x${sbindir}" ; then
21590 echo "You have set both --sbindir and --with-subsys-dir"
21591 echo " equal to: ${subsysdir} "
21592 echo "This is not permitted. Please reconfigure."
21594 echo "Aborting configuration ..."
21600 ac_config_files="$ac_config_files autoconf/Make.common 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/dvd-writepart scripts/dvd-freespace scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf 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/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_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"
21601 ac_config_commands="$ac_config_commands default"
21602 cat >confcache <<\_ACEOF
21603 # This file is a shell script that caches the results of configure
21604 # tests run on this system so they can be shared between configure
21605 # scripts and configure runs, see configure's option --config-cache.
21606 # It is not useful on other systems. If it contains results you don't
21607 # want to keep, you may remove or edit it.
21609 # config.status only pays attention to the cache file if you give it
21610 # the --recheck option to rerun configure.
21612 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21613 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21614 # following values.
21618 # The following way of writing the cache mishandles newlines in values,
21619 # but we know of no workaround that is simple, portable, and efficient.
21620 # So, don't put newlines in cache variables' values.
21621 # Ultrix sh set writes to stderr and can't be redirected directly,
21622 # and sets the high bit in the cache file unless we assign to the vars.
21625 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21627 # `set' does not quote correctly, so add quotes (double-quote
21628 # substitution turns \\\\ into \\, and sed turns \\ into \).
21631 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21634 # `set' quotes correctly as required by POSIX, so do not add quotes.
21636 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21643 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21645 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21647 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21648 if test -w $cache_file; then
21649 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21650 cat confcache >$cache_file
21652 echo "not updating unwritable cache $cache_file"
21657 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21658 # Let make expand exec_prefix.
21659 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21661 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21662 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21663 # trailing colons and then remove the whole line if VPATH becomes empty
21664 # (actually we leave an empty line to preserve line numbers).
21665 if test "x$srcdir" = x.; then
21666 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21667 s/:*\$(srcdir):*/:/;
21668 s/:*\${srcdir}:*/:/;
21670 s/^\([^=]*=[ ]*\):*/\1/;
21676 DEFS=-DHAVE_CONFIG_H
21680 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21681 # 1. Remove the extension, and $U if already installed.
21682 ac_i=`echo "$ac_i" |
21683 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21685 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21686 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21688 LIBOBJS=$ac_libobjs
21690 LTLIBOBJS=$ac_ltlibobjs
21694 : ${CONFIG_STATUS=./config.status}
21695 ac_clean_files_save=$ac_clean_files
21696 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21697 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21698 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21699 cat >$CONFIG_STATUS <<_ACEOF
21701 # Generated by $as_me.
21702 # Run this file to recreate the current configuration.
21703 # Compiler output produced by configure, useful for debugging
21704 # configure, is in config.log if it exists.
21707 ac_cs_recheck=false
21709 SHELL=\${CONFIG_SHELL-$SHELL}
21712 cat >>$CONFIG_STATUS <<\_ACEOF
21713 ## --------------------- ##
21714 ## M4sh Initialization. ##
21715 ## --------------------- ##
21717 # Be Bourne compatible
21718 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21721 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21722 # is contrary to our usage. Disable this feature.
21723 alias -g '${1+"$@"}'='"$@"'
21724 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21727 DUALCASE=1; export DUALCASE # for MKS sh
21729 # Support unset when possible.
21730 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21737 # Work around bugs in pre-3.0 UWIN ksh.
21738 $as_unset ENV MAIL MAILPATH
21745 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21746 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21747 LC_TELEPHONE LC_TIME
21749 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21750 eval $as_var=C; export $as_var
21756 # Required to use basename.
21757 if expr a : '\(a\)' >/dev/null 2>&1; then
21763 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21764 as_basename=basename
21770 # Name of the executable.
21771 as_me=`$as_basename "$0" ||
21772 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21773 X"$0" : 'X\(//\)$' \| \
21774 X"$0" : 'X\(/\)$' \| \
21775 . : '\(.\)' 2>/dev/null ||
21777 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21778 /^X\/\(\/\/\)$/{ s//\1/; q; }
21779 /^X\/\(\/\).*/{ s//\1/; q; }
21783 # PATH needs CR, and LINENO needs CR and PATH.
21784 # Avoid depending upon Character Ranges.
21785 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21786 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21787 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21788 as_cr_digits='0123456789'
21789 as_cr_alnum=$as_cr_Letters$as_cr_digits
21791 # The user is always right.
21792 if test "${PATH_SEPARATOR+set}" != set; then
21793 echo "#! /bin/sh" >conf$$.sh
21794 echo "exit 0" >>conf$$.sh
21796 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21805 as_lineno_1=$LINENO
21806 as_lineno_2=$LINENO
21807 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21808 test "x$as_lineno_1" != "x$as_lineno_2" &&
21809 test "x$as_lineno_3" = "x$as_lineno_2" || {
21810 # Find who we are. Look in the path if we contain no path at all
21813 *[\\/]* ) as_myself=$0 ;;
21814 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21815 for as_dir in $PATH
21818 test -z "$as_dir" && as_dir=.
21819 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21824 # We did not find ourselves, most probably we were run as `sh COMMAND'
21825 # in which case we are not to be found in the path.
21826 if test "x$as_myself" = x; then
21829 if test ! -f "$as_myself"; then
21830 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21831 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21832 { (exit 1); exit 1; }; }
21834 case $CONFIG_SHELL in
21836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21837 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21840 test -z "$as_dir" && as_dir=.
21841 for as_base in sh bash ksh sh5; do
21844 if ("$as_dir/$as_base" -c '
21845 as_lineno_1=$LINENO
21846 as_lineno_2=$LINENO
21847 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21848 test "x$as_lineno_1" != "x$as_lineno_2" &&
21849 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
21850 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21851 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21852 CONFIG_SHELL=$as_dir/$as_base
21853 export CONFIG_SHELL
21854 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21862 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21863 # uniformly replaced by the line number. The first 'sed' inserts a
21864 # line-number line before each line; the second 'sed' does the real
21865 # work. The second script uses 'N' to pair each line-number line
21866 # with the numbered line, and appends trailing '-' during
21867 # substitution so that $LINENO is not a special case at line end.
21868 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21869 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21870 sed '=' <$as_myself |
21875 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21878 s,^['$as_cr_digits']*\n,,
21879 ' >$as_me.lineno &&
21880 chmod +x $as_me.lineno ||
21881 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21882 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21883 { (exit 1); exit 1; }; }
21885 # Don't try to exec as it changes $[0], causing all sort of problems
21886 # (the dirname of $[0] is not the place where we might find the
21887 # original and so on. Autoconf is especially sensible to this).
21889 # Exit status is that of the last command.
21894 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21895 *c*,-n*) ECHO_N= ECHO_C='
21897 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21898 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
21901 if expr a : '\(a\)' >/dev/null 2>&1; then
21907 rm -f conf$$ conf$$.exe conf$$.file
21909 if ln -s conf$$.file conf$$ 2>/dev/null; then
21910 # We could just check for DJGPP; but this test a) works b) is more generic
21911 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21912 if test -f conf$$.exe; then
21913 # Don't use ln at all; we don't have any links
21918 elif ln conf$$.file conf$$ 2>/dev/null; then
21923 rm -f conf$$ conf$$.exe conf$$.file
21925 if mkdir -p . 2>/dev/null; then
21928 test -d ./-p && rmdir ./-p
21932 as_executable_p="test -f"
21934 # Sed expression to map a string onto a valid CPP name.
21935 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21937 # Sed expression to map a string onto a valid variable name.
21938 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21942 # We need space, tab and new line, in precisely that order.
21952 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21953 # report actual input values of CONFIG_FILES etc. instead of their
21954 # values after options handling. Logging --version etc. is OK.
21958 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21959 ## Running $as_me. ##
21964 This file was extended by $as_me, which was
21965 generated by GNU Autoconf 2.59. Invocation command line was
21967 CONFIG_FILES = $CONFIG_FILES
21968 CONFIG_HEADERS = $CONFIG_HEADERS
21969 CONFIG_LINKS = $CONFIG_LINKS
21970 CONFIG_COMMANDS = $CONFIG_COMMANDS
21974 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21978 # Files that config.status was made for.
21979 if test -n "$ac_config_files"; then
21980 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21983 if test -n "$ac_config_headers"; then
21984 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21987 if test -n "$ac_config_links"; then
21988 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21991 if test -n "$ac_config_commands"; then
21992 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21995 cat >>$CONFIG_STATUS <<\_ACEOF
21998 \`$as_me' instantiates files from templates according to the
21999 current configuration.
22001 Usage: $0 [OPTIONS] [FILE]...
22003 -h, --help print this help, then exit
22004 -V, --version print version number, then exit
22005 -q, --quiet do not print progress messages
22006 -d, --debug don't remove temporary files
22007 --recheck update $as_me by reconfiguring in the same conditions
22008 --file=FILE[:TEMPLATE]
22009 instantiate the configuration file FILE
22010 --header=FILE[:TEMPLATE]
22011 instantiate the configuration header FILE
22013 Configuration files:
22016 Configuration headers:
22019 Configuration commands:
22022 Report bugs to <bug-autoconf@gnu.org>."
22025 cat >>$CONFIG_STATUS <<_ACEOF
22028 configured by $0, generated by GNU Autoconf 2.59,
22029 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22031 Copyright (C) 2003 Free Software Foundation, Inc.
22032 This config.status script is free software; the Free Software Foundation
22033 gives unlimited permission to copy, distribute and modify it."
22038 cat >>$CONFIG_STATUS <<\_ACEOF
22039 # If no file are specified by the user, then we need to provide default
22040 # value. By we need to know if files were specified by the user.
22046 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22047 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22055 *) # This is not an option, so the user has probably given explicit
22058 ac_need_defaults=false;;
22062 # Handling of the options.
22064 cat >>$CONFIG_STATUS <<\_ACEOF
22065 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22067 --version | --vers* | -V )
22068 echo "$ac_cs_version"; exit 0 ;;
22070 # Conflict between --help and --header
22071 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22072 Try \`$0 --help' for more information." >&5
22073 echo "$as_me: error: ambiguous option: $1
22074 Try \`$0 --help' for more information." >&2;}
22075 { (exit 1); exit 1; }; };;
22076 --help | --hel | -h )
22077 echo "$ac_cs_usage"; exit 0 ;;
22078 --debug | --d* | -d )
22080 --file | --fil | --fi | --f )
22082 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22083 ac_need_defaults=false;;
22084 --header | --heade | --head | --hea )
22086 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22087 ac_need_defaults=false;;
22088 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22089 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22092 # This is an error.
22093 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22094 Try \`$0 --help' for more information." >&5
22095 echo "$as_me: error: unrecognized option: $1
22096 Try \`$0 --help' for more information." >&2;}
22097 { (exit 1); exit 1; }; } ;;
22099 *) ac_config_targets="$ac_config_targets $1" ;;
22105 ac_configure_extra_args=
22107 if $ac_cs_silent; then
22109 ac_configure_extra_args="$ac_configure_extra_args --silent"
22113 cat >>$CONFIG_STATUS <<_ACEOF
22114 if \$ac_cs_recheck; then
22115 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22116 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22125 cat >>$CONFIG_STATUS <<\_ACEOF
22126 for ac_config_target in $ac_config_targets
22128 case "$ac_config_target" in
22129 # Handling of arguments.
22130 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
22131 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22132 "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
22133 "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
22134 "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
22135 "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
22136 "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
22137 "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
22138 "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
22139 "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
22140 "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
22141 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
22142 "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
22143 "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
22144 "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
22145 "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
22146 "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
22147 "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
22148 "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
22149 "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
22150 "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
22151 "scripts/dvd-writepart" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-writepart" ;;
22152 "scripts/dvd-freespace" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-freespace" ;;
22153 "scripts/bacula-tray-monitor.desktop" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
22154 "scripts/logwatch/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
22155 "scripts/logwatch/logfile.bacula.conf" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
22156 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22157 "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
22158 "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
22159 "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
22160 "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
22161 "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
22162 "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
22163 "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
22164 "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
22165 "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
22166 "src/tray-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
22167 "src/tray-monitor/tray-monitor.conf" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
22168 "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
22169 "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
22170 "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
22171 "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
22172 "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
22173 "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
22174 "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
22175 "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
22176 "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
22177 "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
22178 "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
22179 "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
22180 "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
22181 "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
22182 "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
22183 "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
22184 "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
22185 "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
22186 "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
22187 "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
22188 "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
22189 "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
22190 "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
22191 "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
22192 "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
22193 "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
22194 "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
22195 "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
22196 "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
22197 "src/cats/create_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
22198 "src/cats/update_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
22199 "src/cats/make_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
22200 "src/cats/grant_sqlite3_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
22201 "src/cats/drop_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
22202 "src/cats/drop_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
22203 "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
22204 "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
22205 "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
22206 "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
22207 "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
22208 "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
22209 "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
22210 "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
22211 "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
22212 "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
22213 "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
22214 "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
22215 "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
22216 "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
22217 "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
22218 "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
22219 "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
22220 "src/win32/baculafd/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/baculafd/bacula-fd.conf" ;;
22221 "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
22222 "src/win32/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/console/bconsole.conf" ;;
22223 "src/win32/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/wx-console/wx-console.conf" ;;
22224 "src/win32/pebuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/pebuilder/Makefile" ;;
22225 "src/bimagemgr/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/bimagemgr/Makefile" ;;
22226 "src/bimagemgr/bacula-bimagemgr.spec" ) CONFIG_FILES="$CONFIG_FILES src/bimagemgr/bacula-bimagemgr.spec" ;;
22227 "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
22228 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
22229 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
22230 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22231 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22232 { (exit 1); exit 1; }; };;
22236 # If the user did not use the arguments to specify the items to instantiate,
22237 # then the envvar interface is used. Set only those that are not.
22238 # We use the long form for the default assignment because of an extremely
22239 # bizarre bug on SunOS 4.1.3.
22240 if $ac_need_defaults; then
22241 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22242 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22243 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22246 # Have a temporary directory for convenience. Make it in the build tree
22247 # simply because there is no reason to put it here, and in addition,
22248 # creating and moving files from /tmp can sometimes cause problems.
22249 # Create a temporary directory, and hook for its removal unless debugging.
22252 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22253 trap '{ (exit 1); exit 1; }' 1 2 13 15
22256 # Create a (secure) tmp directory for tmp files.
22259 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22260 test -n "$tmp" && test -d "$tmp"
22263 tmp=./confstat$$-$RANDOM
22264 (umask 077 && mkdir $tmp)
22267 echo "$me: cannot create a temporary directory in ." >&2
22268 { (exit 1); exit 1; }
22273 cat >>$CONFIG_STATUS <<_ACEOF
22276 # CONFIG_FILES section.
22279 # No need to generate the scripts if there are no CONFIG_FILES.
22280 # This happens for instance when ./config.status config.h
22281 if test -n "\$CONFIG_FILES"; then
22282 # Protect against being on the right side of a sed subst in config.status.
22283 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22284 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22285 s,@SHELL@,$SHELL,;t t
22286 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22287 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22288 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22289 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22290 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22291 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22292 s,@exec_prefix@,$exec_prefix,;t t
22293 s,@prefix@,$prefix,;t t
22294 s,@program_transform_name@,$program_transform_name,;t t
22295 s,@bindir@,$bindir,;t t
22296 s,@sbindir@,$sbindir,;t t
22297 s,@libexecdir@,$libexecdir,;t t
22298 s,@datadir@,$datadir,;t t
22299 s,@sysconfdir@,$sysconfdir,;t t
22300 s,@sharedstatedir@,$sharedstatedir,;t t
22301 s,@localstatedir@,$localstatedir,;t t
22302 s,@libdir@,$libdir,;t t
22303 s,@includedir@,$includedir,;t t
22304 s,@oldincludedir@,$oldincludedir,;t t
22305 s,@infodir@,$infodir,;t t
22306 s,@mandir@,$mandir,;t t
22307 s,@build_alias@,$build_alias,;t t
22308 s,@host_alias@,$host_alias,;t t
22309 s,@target_alias@,$target_alias,;t t
22310 s,@DEFS@,$DEFS,;t t
22311 s,@ECHO_C@,$ECHO_C,;t t
22312 s,@ECHO_N@,$ECHO_N,;t t
22313 s,@ECHO_T@,$ECHO_T,;t t
22314 s,@LIBS@,$LIBS,;t t
22315 s,@BUILD_DIR@,$BUILD_DIR,;t t
22316 s,@TRUEPRG@,$TRUEPRG,;t t
22317 s,@FALSEPRG@,$FALSEPRG,;t t
22318 s,@VERSION@,$VERSION,;t t
22319 s,@DATE@,$DATE,;t t
22320 s,@LSMDATE@,$LSMDATE,;t t
22322 s,@CFLAGS@,$CFLAGS,;t t
22323 s,@LDFLAGS@,$LDFLAGS,;t t
22324 s,@CPPFLAGS@,$CPPFLAGS,;t t
22325 s,@ac_ct_CC@,$ac_ct_CC,;t t
22326 s,@EXEEXT@,$EXEEXT,;t t
22327 s,@OBJEXT@,$OBJEXT,;t t
22329 s,@CXXFLAGS@,$CXXFLAGS,;t t
22330 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22332 s,@EGREP@,$EGREP,;t t
22333 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22334 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22335 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22336 s,@RANLIB@,$RANLIB,;t t
22337 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22342 s,@ECHO@,$ECHO,;t t
22346 s,@OPENSSL@,$OPENSSL,;t t
22348 s,@MKISOFS@,$MKISOFS,;t t
22349 s,@PYTHON@,$PYTHON,;t t
22350 s,@GROWISOFS@,$GROWISOFS,;t t
22351 s,@DVDRWMEDIAINFO@,$DVDRWMEDIAINFO,;t t
22352 s,@PKGCONFIG@,$PKGCONFIG,;t t
22353 s,@WXCONFIG@,$WXCONFIG,;t t
22354 s,@WXFLAGS@,$WXFLAGS,;t t
22355 s,@CDRECORD@,$CDRECORD,;t t
22356 s,@PIDOF@,$PIDOF,;t t
22358 s,@ARFLAGS@,$ARFLAGS,;t t
22359 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
22360 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
22361 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
22362 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
22363 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
22364 s,@build@,$build,;t t
22365 s,@build_cpu@,$build_cpu,;t t
22366 s,@build_vendor@,$build_vendor,;t t
22367 s,@build_os@,$build_os,;t t
22368 s,@host@,$host,;t t
22369 s,@host_cpu@,$host_cpu,;t t
22370 s,@host_vendor@,$host_vendor,;t t
22371 s,@host_os@,$host_os,;t t
22372 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
22373 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
22374 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
22375 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
22376 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
22377 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
22378 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
22379 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
22380 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
22381 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
22382 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
22383 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
22384 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
22385 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
22386 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
22387 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
22388 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
22389 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
22390 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
22391 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
22392 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
22393 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
22394 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
22395 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
22396 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
22397 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
22398 s,@MSGFMT@,$MSGFMT,;t t
22399 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
22400 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
22401 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
22402 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
22403 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
22404 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
22405 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
22406 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
22407 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
22408 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
22409 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
22410 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
22411 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
22412 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
22413 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
22414 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
22415 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
22416 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
22417 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
22418 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
22419 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
22420 s,@GNOME_DIR@,$GNOME_DIR,;t t
22421 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
22422 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
22423 s,@WX_DIR@,$WX_DIR,;t t
22424 s,@TRAY_MONITOR_CPPFLAGS@,$TRAY_MONITOR_CPPFLAGS,;t t
22425 s,@TRAY_MONITOR_LDFLAGS@,$TRAY_MONITOR_LDFLAGS,;t t
22426 s,@TRAY_MONITOR_DIR@,$TRAY_MONITOR_DIR,;t t
22427 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
22428 s,@STATIC_FD@,$STATIC_FD,;t t
22429 s,@STATIC_SD@,$STATIC_SD,;t t
22430 s,@STATIC_DIR@,$STATIC_DIR,;t t
22431 s,@STATIC_CONS@,$STATIC_CONS,;t t
22432 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
22433 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
22434 s,@ALL_DIRS@,$ALL_DIRS,;t t
22435 s,@CONS_INC@,$CONS_INC,;t t
22436 s,@CONS_OBJ@,$CONS_OBJ,;t t
22437 s,@CONS_SRC@,$CONS_SRC,;t t
22438 s,@CONS_LIBS@,$CONS_LIBS,;t t
22439 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
22440 s,@READLINE_SRC@,$READLINE_SRC,;t t
22441 s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t
22442 s,@PYTHON_INCDIR@,$PYTHON_INCDIR,;t t
22443 s,@OPENSSL_LIBS@,$OPENSSL_LIBS,;t t
22444 s,@OPENSSL_INC@,$OPENSSL_INC,;t t
22445 s,@working_dir@,$working_dir,;t t
22446 s,@scriptdir@,$scriptdir,;t t
22447 s,@dump_email@,$dump_email,;t t
22448 s,@job_email@,$job_email,;t t
22449 s,@smtp_host@,$smtp_host,;t t
22450 s,@piddir@,$piddir,;t t
22451 s,@subsysdir@,$subsysdir,;t t
22452 s,@baseport@,$baseport,;t t
22453 s,@dir_port@,$dir_port,;t t
22454 s,@fd_port@,$fd_port,;t t
22455 s,@sd_port@,$sd_port,;t t
22456 s,@dir_password@,$dir_password,;t t
22457 s,@fd_password@,$fd_password,;t t
22458 s,@sd_password@,$sd_password,;t t
22459 s,@mon_dir_password@,$mon_dir_password,;t t
22460 s,@mon_fd_password@,$mon_fd_password,;t t
22461 s,@mon_sd_password@,$mon_sd_password,;t t
22462 s,@bimagemgr_cgidir@,$bimagemgr_cgidir,;t t
22463 s,@bimagemgr_docdir@,$bimagemgr_docdir,;t t
22464 s,@bimagemgr_binowner@,$bimagemgr_binowner,;t t
22465 s,@bimagemgr_bingroup@,$bimagemgr_bingroup,;t t
22466 s,@bimagemgr_dataowner@,$bimagemgr_dataowner,;t t
22467 s,@bimagemgr_datagroup@,$bimagemgr_datagroup,;t t
22468 s,@dir_user@,$dir_user,;t t
22469 s,@dir_group@,$dir_group,;t t
22470 s,@sd_user@,$sd_user,;t t
22471 s,@sd_group@,$sd_group,;t t
22472 s,@fd_user@,$fd_user,;t t
22473 s,@fd_group@,$fd_group,;t t
22474 s,@SBINPERM@,$SBINPERM,;t t
22475 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
22476 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
22477 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
22478 s,@cats@,$cats,;t t
22479 s,@DB_NAME@,$DB_NAME,;t t
22480 s,@GETCONF@,$GETCONF,;t t
22481 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
22482 s,@X_CFLAGS@,$X_CFLAGS,;t t
22483 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
22484 s,@X_LIBS@,$X_LIBS,;t t
22485 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
22486 s,@LIBOBJS@,$LIBOBJS,;t t
22487 s,@ALLOCA@,$ALLOCA,;t t
22488 s,@FDLIBS@,$FDLIBS,;t t
22489 s,@DEBUG@,$DEBUG,;t t
22490 s,@DINCLUDE@,$DINCLUDE,;t t
22491 s,@DLIB@,$DLIB,;t t
22492 s,@DB_LIBS@,$DB_LIBS,;t t
22493 s,@WCFLAGS@,$WCFLAGS,;t t
22494 s,@WLDFLAGS@,$WLDFLAGS,;t t
22495 s,@OBJLIST@,$OBJLIST,;t t
22496 s,@hostname@,$hostname,;t t
22497 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
22498 s,@PSCMD@,$PSCMD,;t t
22499 s,@WIN32@,$WIN32,;t t
22500 s,@MACOSX@,$MACOSX,;t t
22501 s,@DISTNAME@,$DISTNAME,;t t
22502 s,@DISTVER@,$DISTVER,;t t
22503 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22504 /@MCOMMON@/r $MCOMMON
22510 cat >>$CONFIG_STATUS <<\_ACEOF
22511 # Split the substitutions into bite-sized pieces for seds with
22512 # small command number limits, like on Digital OSF/1 and HP-UX.
22513 ac_max_sed_lines=48
22514 ac_sed_frag=1 # Number of current file.
22515 ac_beg=1 # First line for current file.
22516 ac_end=$ac_max_sed_lines # Line after last line for current file.
22519 while $ac_more_lines; do
22520 if test $ac_beg -gt 1; then
22521 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22523 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22525 if test ! -s $tmp/subs.frag; then
22526 ac_more_lines=false
22528 # The purpose of the label and of the branching condition is to
22529 # speed up the sed processing (if there are no `@' at all, there
22530 # is no need to browse any of the substitutions).
22531 # These are the two extra sed commands mentioned above.
22533 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22534 if test -z "$ac_sed_cmds"; then
22535 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22537 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22539 ac_sed_frag=`expr $ac_sed_frag + 1`
22541 ac_end=`expr $ac_end + $ac_max_sed_lines`
22544 if test -z "$ac_sed_cmds"; then
22547 fi # test -n "$CONFIG_FILES"
22550 cat >>$CONFIG_STATUS <<\_ACEOF
22551 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22552 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22554 - | *:- | *:-:* ) # input from stdin
22556 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22557 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22558 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22559 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22560 * ) ac_file_in=$ac_file.in ;;
22563 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22564 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22565 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22566 X"$ac_file" : 'X\(//\)[^/]' \| \
22567 X"$ac_file" : 'X\(//\)$' \| \
22568 X"$ac_file" : 'X\(/\)' \| \
22569 . : '\(.\)' 2>/dev/null ||
22571 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22572 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22573 /^X\(\/\/\)$/{ s//\1/; q; }
22574 /^X\(\/\).*/{ s//\1/; q; }
22576 { if $as_mkdir_p; then
22581 while test ! -d "$as_dir"; do
22582 as_dirs="$as_dir $as_dirs"
22583 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22584 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22585 X"$as_dir" : 'X\(//\)[^/]' \| \
22586 X"$as_dir" : 'X\(//\)$' \| \
22587 X"$as_dir" : 'X\(/\)' \| \
22588 . : '\(.\)' 2>/dev/null ||
22590 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22591 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22592 /^X\(\/\/\)$/{ s//\1/; q; }
22593 /^X\(\/\).*/{ s//\1/; q; }
22596 test ! -n "$as_dirs" || mkdir $as_dirs
22597 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22598 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22599 { (exit 1); exit 1; }; }; }
22603 if test "$ac_dir" != .; then
22604 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22605 # A "../" for each directory in $ac_dir_suffix.
22606 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22608 ac_dir_suffix= ac_top_builddir=
22612 .) # No --srcdir option. We are building in place.
22614 if test -z "$ac_top_builddir"; then
22617 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22619 [\\/]* | ?:[\\/]* ) # Absolute path.
22620 ac_srcdir=$srcdir$ac_dir_suffix;
22621 ac_top_srcdir=$srcdir ;;
22622 *) # Relative path.
22623 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22624 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22627 # Do not use `cd foo && pwd` to compute absolute paths, because
22628 # the directories may not exist.
22630 .) ac_abs_builddir="$ac_dir";;
22633 .) ac_abs_builddir=`pwd`;;
22634 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22635 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22638 case $ac_abs_builddir in
22639 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22641 case ${ac_top_builddir}. in
22642 .) ac_abs_top_builddir=$ac_abs_builddir;;
22643 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22644 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22647 case $ac_abs_builddir in
22648 .) ac_abs_srcdir=$ac_srcdir;;
22651 .) ac_abs_srcdir=$ac_abs_builddir;;
22652 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22653 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22656 case $ac_abs_builddir in
22657 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22659 case $ac_top_srcdir in
22660 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22661 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22662 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22668 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22669 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22672 if test x"$ac_file" != x-; then
22673 { echo "$as_me:$LINENO: creating $ac_file" >&5
22674 echo "$as_me: creating $ac_file" >&6;}
22677 # Let's still pretend it is `configure' which instantiates (i.e., don't
22678 # use $as_me), people would be surprised to read:
22679 # /* config.h. Generated by config.status. */
22680 if test x"$ac_file" = x-; then
22683 configure_input="$ac_file. "
22685 configure_input=$configure_input"Generated from `echo $ac_file_in |
22686 sed 's,.*/,,'` by configure."
22688 # First look for the input files in the build tree, otherwise in the
22690 ac_file_inputs=`IFS=:
22691 for f in $ac_file_in; do
22693 -) echo $tmp/stdin ;;
22695 # Absolute (can't be DOS-style, as IFS=:)
22696 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22697 echo "$as_me: error: cannot find input file: $f" >&2;}
22698 { (exit 1); exit 1; }; }
22701 if test -f "$f"; then
22704 elif test -f "$srcdir/$f"; then
22709 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22710 echo "$as_me: error: cannot find input file: $f" >&2;}
22711 { (exit 1); exit 1; }; }
22714 done` || { (exit 1); exit 1; }
22716 cat >>$CONFIG_STATUS <<_ACEOF
22720 cat >>$CONFIG_STATUS <<\_ACEOF
22722 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22723 s,@configure_input@,$configure_input,;t t
22724 s,@srcdir@,$ac_srcdir,;t t
22725 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22726 s,@top_srcdir@,$ac_top_srcdir,;t t
22727 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22728 s,@builddir@,$ac_builddir,;t t
22729 s,@abs_builddir@,$ac_abs_builddir,;t t
22730 s,@top_builddir@,$ac_top_builddir,;t t
22731 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22732 s,@INSTALL@,$ac_INSTALL,;t t
22733 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22735 if test x"$ac_file" != x-; then
22736 mv $tmp/out $ac_file
22744 cat >>$CONFIG_STATUS <<\_ACEOF
22747 # CONFIG_HEADER section.
22750 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22751 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22753 # ac_d sets the value in "#define NAME VALUE" lines.
22754 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22755 ac_dB='[ ].*$,\1#\2'
22758 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22759 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22760 ac_uB='$,\1#\2define\3'
22764 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22765 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22767 - | *:- | *:-:* ) # input from stdin
22769 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22770 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22771 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22772 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22773 * ) ac_file_in=$ac_file.in ;;
22776 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22777 echo "$as_me: creating $ac_file" >&6;}
22779 # First look for the input files in the build tree, otherwise in the
22781 ac_file_inputs=`IFS=:
22782 for f in $ac_file_in; do
22784 -) echo $tmp/stdin ;;
22786 # Absolute (can't be DOS-style, as IFS=:)
22787 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22788 echo "$as_me: error: cannot find input file: $f" >&2;}
22789 { (exit 1); exit 1; }; }
22790 # Do quote $f, to prevent DOS paths from being IFS'd.
22793 if test -f "$f"; then
22796 elif test -f "$srcdir/$f"; then
22801 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22802 echo "$as_me: error: cannot find input file: $f" >&2;}
22803 { (exit 1); exit 1; }; }
22806 done` || { (exit 1); exit 1; }
22807 # Remove the trailing spaces.
22808 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22812 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22813 # `conftest.undefs', that substitutes the proper values into
22814 # config.h.in to produce config.h. The first handles `#define'
22815 # templates, and the second `#undef' templates.
22816 # And first: Protect against being on the right side of a sed subst in
22817 # config.status. Protect against being in an unquoted here document
22818 # in config.status.
22819 rm -f conftest.defines conftest.undefs
22820 # Using a here document instead of a string reduces the quoting nightmare.
22821 # Putting comments in sed scripts is not portable.
22823 # `end' is used to avoid that the second main sed command (meant for
22824 # 0-ary CPP macros) applies to n-ary macro definitions.
22825 # See the Autoconf documentation for `clear'.
22826 cat >confdef2sed.sed <<\_ACEOF
22831 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22833 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22836 # If some macros were called several times there might be several times
22837 # the same #defines, which is useless. Nevertheless, we may not want to
22838 # sort them, since we want the *last* AC-DEFINE to be honored.
22839 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22840 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22841 rm -f confdef2sed.sed
22843 # This sed command replaces #undef with comments. This is necessary, for
22844 # example, in the case of _POSIX_SOURCE, which is predefined and required
22845 # on some systems where configure will not decide to define it.
22846 cat >>conftest.undefs <<\_ACEOF
22847 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22850 # Break up conftest.defines because some shells have a limit on the size
22851 # of here documents, and old seds have small limits too (100 cmds).
22852 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22853 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22854 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22855 echo ' :' >>$CONFIG_STATUS
22856 rm -f conftest.tail
22857 while grep . conftest.defines >/dev/null
22859 # Write a limited-size here document to $tmp/defines.sed.
22860 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22861 # Speed up: don't consider the non `#define' lines.
22862 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22863 # Work around the forget-to-reset-the-flag bug.
22864 echo 't clr' >>$CONFIG_STATUS
22865 echo ': clr' >>$CONFIG_STATUS
22866 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22868 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22870 mv $tmp/out $tmp/in
22872 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22873 rm -f conftest.defines
22874 mv conftest.tail conftest.defines
22876 rm -f conftest.defines
22877 echo ' fi # grep' >>$CONFIG_STATUS
22878 echo >>$CONFIG_STATUS
22880 # Break up conftest.undefs because some shells have a limit on the size
22881 # of here documents, and old seds have small limits too (100 cmds).
22882 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22883 rm -f conftest.tail
22884 while grep . conftest.undefs >/dev/null
22886 # Write a limited-size here document to $tmp/undefs.sed.
22887 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22888 # Speed up: don't consider the non `#undef'
22889 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22890 # Work around the forget-to-reset-the-flag bug.
22891 echo 't clr' >>$CONFIG_STATUS
22892 echo ': clr' >>$CONFIG_STATUS
22893 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22895 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22897 mv $tmp/out $tmp/in
22899 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22900 rm -f conftest.undefs
22901 mv conftest.tail conftest.undefs
22903 rm -f conftest.undefs
22905 cat >>$CONFIG_STATUS <<\_ACEOF
22906 # Let's still pretend it is `configure' which instantiates (i.e., don't
22907 # use $as_me), people would be surprised to read:
22908 # /* config.h. Generated by config.status. */
22909 if test x"$ac_file" = x-; then
22910 echo "/* Generated by configure. */" >$tmp/config.h
22912 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22914 cat $tmp/in >>$tmp/config.h
22916 if test x"$ac_file" != x-; then
22917 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22918 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22919 echo "$as_me: $ac_file is unchanged" >&6;}
22921 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22922 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22923 X"$ac_file" : 'X\(//\)[^/]' \| \
22924 X"$ac_file" : 'X\(//\)$' \| \
22925 X"$ac_file" : 'X\(/\)' \| \
22926 . : '\(.\)' 2>/dev/null ||
22928 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22929 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22930 /^X\(\/\/\)$/{ s//\1/; q; }
22931 /^X\(\/\).*/{ s//\1/; q; }
22933 { if $as_mkdir_p; then
22938 while test ! -d "$as_dir"; do
22939 as_dirs="$as_dir $as_dirs"
22940 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22941 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22942 X"$as_dir" : 'X\(//\)[^/]' \| \
22943 X"$as_dir" : 'X\(//\)$' \| \
22944 X"$as_dir" : 'X\(/\)' \| \
22945 . : '\(.\)' 2>/dev/null ||
22947 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22948 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22949 /^X\(\/\/\)$/{ s//\1/; q; }
22950 /^X\(\/\).*/{ s//\1/; q; }
22953 test ! -n "$as_dirs" || mkdir $as_dirs
22954 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22955 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22956 { (exit 1); exit 1; }; }; }
22959 mv $tmp/config.h $ac_file
22963 rm -f $tmp/config.h
22967 cat >>$CONFIG_STATUS <<\_ACEOF
22970 # CONFIG_COMMANDS section.
22972 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22973 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22974 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22975 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22976 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22977 X"$ac_dest" : 'X\(//\)[^/]' \| \
22978 X"$ac_dest" : 'X\(//\)$' \| \
22979 X"$ac_dest" : 'X\(/\)' \| \
22980 . : '\(.\)' 2>/dev/null ||
22982 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22983 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22984 /^X\(\/\/\)$/{ s//\1/; q; }
22985 /^X\(\/\).*/{ s//\1/; q; }
22987 { if $as_mkdir_p; then
22992 while test ! -d "$as_dir"; do
22993 as_dirs="$as_dir $as_dirs"
22994 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22995 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22996 X"$as_dir" : 'X\(//\)[^/]' \| \
22997 X"$as_dir" : 'X\(//\)$' \| \
22998 X"$as_dir" : 'X\(/\)' \| \
22999 . : '\(.\)' 2>/dev/null ||
23001 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23002 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23003 /^X\(\/\/\)$/{ s//\1/; q; }
23004 /^X\(\/\).*/{ s//\1/; q; }
23007 test ! -n "$as_dirs" || mkdir $as_dirs
23008 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23009 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23010 { (exit 1); exit 1; }; }; }
23014 if test "$ac_dir" != .; then
23015 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23016 # A "../" for each directory in $ac_dir_suffix.
23017 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23019 ac_dir_suffix= ac_top_builddir=
23023 .) # No --srcdir option. We are building in place.
23025 if test -z "$ac_top_builddir"; then
23028 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23030 [\\/]* | ?:[\\/]* ) # Absolute path.
23031 ac_srcdir=$srcdir$ac_dir_suffix;
23032 ac_top_srcdir=$srcdir ;;
23033 *) # Relative path.
23034 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23035 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23038 # Do not use `cd foo && pwd` to compute absolute paths, because
23039 # the directories may not exist.
23041 .) ac_abs_builddir="$ac_dir";;
23044 .) ac_abs_builddir=`pwd`;;
23045 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23046 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23049 case $ac_abs_builddir in
23050 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23052 case ${ac_top_builddir}. in
23053 .) ac_abs_top_builddir=$ac_abs_builddir;;
23054 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23055 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23058 case $ac_abs_builddir in
23059 .) ac_abs_srcdir=$ac_srcdir;;
23062 .) ac_abs_srcdir=$ac_abs_builddir;;
23063 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23064 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23067 case $ac_abs_builddir in
23068 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23070 case $ac_top_srcdir in
23071 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23072 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23073 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23078 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23079 echo "$as_me: executing $ac_dest commands" >&6;}
23081 default ) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
23087 cat >>$CONFIG_STATUS <<\_ACEOF
23089 { (exit 0); exit 0; }
23091 chmod +x $CONFIG_STATUS
23092 ac_clean_files=$ac_clean_files_save
23095 # configure is writing to config.log, and then calls config.status.
23096 # config.status does its own redirection, appending to config.log.
23097 # Unfortunately, on DOS this fails, as config.log is still kept open
23098 # by configure, so config.status won't be able to write to it; its
23099 # output is simply discarded. So we exec the FD to /dev/null,
23100 # effectively closing config.log, so it can be properly (re)opened and
23101 # appended to by config.status. When coming back to configure, we
23102 # need to make the FD available again.
23103 if test "$no_create" != yes; then
23105 ac_config_status_args=
23106 test "$silent" = yes &&
23107 ac_config_status_args="$ac_config_status_args --quiet"
23109 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23111 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23112 # would make configure fail if this is the last instruction.
23113 $ac_cs_success || { (exit 1); exit 1; }
23118 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
23119 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
23124 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
23125 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
23127 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
23128 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
23130 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
23131 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
23133 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
23134 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
23136 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
23137 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
23139 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
23140 chmod 755 $c/sqlite
23143 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
23144 largefile_support="yes"
23148 # A whole lot of hand springs to get the compiler version.
23149 # This is because gcc changed the output in version 3.0
23151 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
23152 if test "x${CCVERSION}" = "x" ; then
23153 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
23155 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
23156 if test x"${CXXVERSION}" = x ; then
23157 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
23160 if test "x${subsysdir}" = "x${sbindir}" ; then
23163 echo "You have set --sbindir and --with-subsys-dir"
23164 echo " both equal to: ${subsysdir} "
23165 echo " This is not permitted. Please reconfigure."
23167 echo "Aborting configuration ..."
23173 if test "x${db_name}" = "xInternal" ; then
23176 echo "You have not specified either --enable-client-only or one of the"
23177 echo " supported databases: MySQL, PostgreSQL, SQLite3 or SQLite."
23178 echo " This is not permitted. Please reconfigure."
23180 echo "Aborting the configuration ..."
23187 Configuration on `date`:
23189 Host: $host -- ${DISTNAME} ${DISTVER}
23190 Bacula version: ${VERSION} (${DATE})
23191 Source code location: ${srcdir}
23192 Install binaries: ${sbindir}
23193 Install config files: ${sysconfdir}
23194 Scripts directory: ${scriptdir}
23195 Working directory: ${working_dir}
23196 PID directory: ${piddir}
23197 Subsys directory: ${subsysdir}
23198 Man directory: ${mandir}
23199 C Compiler: ${CC} ${CCVERSION}
23200 C++ Compiler: ${CXX} ${CXXVERSION}
23201 Compiler flags: ${WCFLAGS} ${CFLAGS}
23202 Linker flags: ${WLDFLAGS} ${LDFLAGS}
23204 Statically Linked Tools: ${support_static_tools}
23205 Statically Linked FD: ${support_static_fd}
23206 Statically Linked SD: ${support_static_sd}
23207 Statically Linked DIR: ${support_static_dir}
23208 Statically Linked CONS: ${support_static_cons}
23209 Database type: ${db_name}
23210 Database lib: ${DB_LIBS}
23212 Job Output Email: ${job_email}
23213 Traceback Email: ${dump_email}
23214 SMTP Host Address: ${smtp_host}
23216 Director Port: ${dir_port}
23217 File daemon Port: ${fd_port}
23218 Storage daemon Port: ${sd_port}
23220 Director User: ${dir_user}
23221 Director Group: ${dir_group}
23222 Storage Daemon User: ${sd_user}
23223 Storage DaemonGroup: ${sd_group}
23224 File Daemon User: ${fd_user}
23225 File Daemon Group: ${fd_group}
23227 SQL binaries Directory ${SQL_BINDIR}
23229 Large file support: $largefile_support
23230 Bacula conio support: ${got_conio} ${CONS_LIBS}
23231 readline support: ${got_readline} ${PRTREADLINE_SRC}
23232 TCP Wrappers support: ${TCPW_MSG}
23233 TLS support: ${support_tls}
23234 ZLIB support: ${have_zlib}
23235 enable-smartalloc: ${support_smartalloc}
23236 enable-gnome: ${support_gnome} ${gnome_version}
23237 enable-wx-console: ${support_wx_console} ${wx_version}
23238 enable-tray-monitor: ${support_tray_monitor}
23239 client-only: ${build_client_only}
23240 ACL support: ${have_acl}
23241 Python support: ${support_python} ${PYTHON_LIBS}