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 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 CDSTL working_dir scriptdir dump_email job_email smtp_host piddir subsysdir baseport dir_port fd_port sd_port dir_password fd_password sd_password mon_dir_password mon_fd_password mon_sd_password bimagemgr_cgidir bimagemgr_docdir bimagemgr_binowner bimagemgr_bingroup bimagemgr_dataowner bimagemgr_datagroup dir_user dir_group sd_user sd_group fd_user fd_group SBINPERM SQL_LFLAGS SQL_INCLUDE SQL_BINDIR cats DB_NAME GETCONF ac_ct_GETCONF X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LIBOBJS ALLOCA FDLIBS DEBUG DINCLUDE DLIB DB_LIBS WCFLAGS WLDFLAGS OBJLIST hostname TAPEDRIVE PSCMD WIN32 MACOSX DISTNAME DISTVER LTLIBOBJS'
313 ac_subst_files='MCOMMON'
315 # Initialize some variables set by options.
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name=s,x,x,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
430 -help | --help | --hel | --he | -h)
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 # Obsolete; use --without-fp.
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
560 -site=* | --site=* | --sit=*)
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 -version | --version | --versio | --versi | --vers | -V)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CXX_set=${CXX+set}
770 ac_env_CXX_value=$CXX
771 ac_cv_env_CXX_set=${CXX+set}
772 ac_cv_env_CXX_value=$CXX
773 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
774 ac_env_CXXFLAGS_value=$CXXFLAGS
775 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
776 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
777 ac_env_CPP_set=${CPP+set}
778 ac_env_CPP_value=$CPP
779 ac_cv_env_CPP_set=${CPP+set}
780 ac_cv_env_CPP_value=$CPP
783 # Report the --help message.
785 if test "$ac_init_help" = "long"; then
786 # Omit some internal or obsolete options to make the list less imposing.
787 # This message is too long to be a string in the A/UX 3.1 sh.
789 \`configure' configures this package to adapt to many kinds of systems.
791 Usage: $0 [OPTION]... [VAR=VALUE]...
793 To assign environment variables (e.g., CC, CFLAGS...), specify them as
794 VAR=VALUE. See below for descriptions of some of the useful variables.
796 Defaults for the options are specified in brackets.
799 -h, --help display this help and exit
800 --help=short display options specific to this package
801 --help=recursive display the short help of all the included packages
802 -V, --version display version information and exit
803 -q, --quiet, --silent do not print \`checking...' messages
804 --cache-file=FILE cache test results in FILE [disabled]
805 -C, --config-cache alias for \`--cache-file=config.cache'
806 -n, --no-create do not create output files
807 --srcdir=DIR find the sources in DIR [configure dir or \`..']
812 Installation directories:
813 --prefix=PREFIX install architecture-independent files in PREFIX
815 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
818 By default, \`make install' will install all the files in
819 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
820 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
821 for instance \`--prefix=\$HOME'.
823 For better control, use the options below.
825 Fine tuning of the installation directories:
826 --bindir=DIR user executables [EPREFIX/bin]
827 --sbindir=DIR system admin executables [EPREFIX/sbin]
828 --libexecdir=DIR program executables [EPREFIX/libexec]
829 --datadir=DIR read-only architecture-independent data [PREFIX/share]
830 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
831 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
832 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
833 --libdir=DIR object code libraries [EPREFIX/lib]
834 --includedir=DIR C header files [PREFIX/include]
835 --oldincludedir=DIR C header files for non-gcc [/usr/include]
836 --infodir=DIR info documentation [PREFIX/info]
837 --mandir=DIR man documentation [PREFIX/man]
843 --x-includes=DIR X include files are in DIR
844 --x-libraries=DIR X library files are in DIR
847 --build=BUILD configure for building on BUILD [guessed]
848 --host=HOST cross-compile to build programs to run on HOST [BUILD]
852 if test -n "$ac_init_help"; then
857 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
858 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
859 --enable-gnome enable build of gnome-console GUI disabled
860 --enable-wx-console enable build of wxWidgets console disabled
861 --enable-tray-monitor enable build of Gnome tray monitor (compatible with KDE) disabled
862 --enable-smartalloc enable smartalloc debugging support disabled
863 --enable-static-tools enable static tape tools disabled
864 --enable-static-fd enable static File daemon disabled
865 --enable-static-sd enable static Storage daemon disabled
866 --enable-static-dir enable static Director disabled
867 --enable-static-cons enable static Console disabled
868 --enable-client-only build client (File daemon) only disabled
869 --disable-conio disable conio support enabled
871 --disable-readline disable readline support disable
873 --disable-largefile omit support for large files
876 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
877 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
878 --with-gnome-includes Specify location of GNOME headers
879 --with-gnome-libs Specify location of GNOME libs
880 --with-gnome Specify prefix for GNOME files
881 --with-readline=DIR specify readline library directory
883 --with-python=DIR Include Python support. DIR is the Python base
884 install directory, default is to search through
885 a number of common places for the Python files.
886 --with-tcp-wrappers=DIR enable tcpwrappers support
887 --with-working-dir=PATH specify path of Bacula working directory
888 --with-scriptdir=PATH specify path of Bacula scripts directory
889 --with-dump-email=EMAIL dump email address
890 --with-job-email=EMAIL job output email address
891 --with-smtp-host=HOST SMTP mail host address
892 --with-pid-dir=PATH specify location of Bacula pid files
893 --with-subsys-dir=PATH specify location of Bacula subsys file
894 --with-baseport=PORT specify base port address for daemons
895 --with-dir-password=PASSWORD specify Director's password
896 --with-fd-password=PASSWORD specify Client's password
897 --with-sd-password=PASSWORD specify Storage daemon's password
898 --with-mon-dir-password=PASSWORD specify Director's password used by the monitor
899 --with-mon-fd-password=PASSWORD specify Client's password used by the monitor
900 --with-mon-sd-password=PASSWORD specify Storage daemon's password used by the monitor
901 --with-bimagemgr-cgidir=DIR specify bimagemgr cgi-bin dir
902 --with-bimagemgr-docdir=DIR specify bimagemgr doc root dir
903 --with-bimagemgr-binowner=USER specify bimagemgr binary file owner
904 --with-bimagemgr-bingroup=USER specify bimagemgr binary file group
905 --with-bimagemgr-dataowner=USER specify bimagemgr data file owner
906 --with-bimagemgr-datagroup=USER specify bimagemgr data file group
907 --with-dir-user=USER specify user for Director daemon
908 --with-dir-group=GROUP specify group for Director daemon
909 --with-sd-user=USER specify user for Storage daemon
910 --with-sd-group=GROUP specify group for Storage daemon
911 --with-fd-user=USER specify user for File daemon
912 --with-fd-group=GROUP specify group for File daemon
913 --with-sbin-perm=MODE specify permissions for sbin binaries (0754)
914 --with-postgresql=DIR Include PostgreSQL support. DIR is the PostgreSQL
915 base install directory, defaults to /usr/local/pgsql
917 --with-mysql=DIR Include MySQL support. DIR is the MySQL base
918 install directory, default is to search through
919 a number of common places for the MySQL files.
921 --with-embedded-mysql=DIR Include MySQL support. DIR is the MySQL base
922 install directory, default is to search through
923 a number of common places for the MySQL files.
925 --with-sqlite3=DIR Include SQLite3 support. DIR is the SQLite3 base
926 install directory, default is to search through
927 a number of common places for the SQLite3 files.
929 --with-sqlite=DIR Include SQLite support. DIR is the SQLite base
930 install directory, default is to search through
931 a number of common places for the SQLite files.
932 --with-x use the X Window System
934 Some influential environment variables:
935 CC C compiler command
936 CFLAGS C compiler flags
937 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
938 nonstandard directory <lib dir>
939 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
940 headers in a nonstandard directory <include dir>
941 CXX C++ compiler command
942 CXXFLAGS C++ compiler flags
945 Use these variables to override the choices made by `configure' or to help
946 it to find libraries and programs with nonstandard names/locations.
951 if test "$ac_init_help" = "recursive"; then
952 # If there are subdirs, report their specific --help.
954 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
955 test -d $ac_dir || continue
958 if test "$ac_dir" != .; then
959 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
960 # A "../" for each directory in $ac_dir_suffix.
961 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
963 ac_dir_suffix= ac_top_builddir=
967 .) # No --srcdir option. We are building in place.
969 if test -z "$ac_top_builddir"; then
972 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
974 [\\/]* | ?:[\\/]* ) # Absolute path.
975 ac_srcdir=$srcdir$ac_dir_suffix;
976 ac_top_srcdir=$srcdir ;;
978 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
979 ac_top_srcdir=$ac_top_builddir$srcdir ;;
982 # Do not use `cd foo && pwd` to compute absolute paths, because
983 # the directories may not exist.
985 .) ac_abs_builddir="$ac_dir";;
988 .) ac_abs_builddir=`pwd`;;
989 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
990 *) ac_abs_builddir=`pwd`/"$ac_dir";;
993 case $ac_abs_builddir in
994 .) ac_abs_top_builddir=${ac_top_builddir}.;;
996 case ${ac_top_builddir}. in
997 .) ac_abs_top_builddir=$ac_abs_builddir;;
998 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
999 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1002 case $ac_abs_builddir in
1003 .) ac_abs_srcdir=$ac_srcdir;;
1006 .) ac_abs_srcdir=$ac_abs_builddir;;
1007 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1008 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1011 case $ac_abs_builddir in
1012 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1014 case $ac_top_srcdir in
1015 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1016 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1017 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1022 # Check for guested configure; otherwise get Cygnus style configure.
1023 if test -f $ac_srcdir/configure.gnu; then
1025 $SHELL $ac_srcdir/configure.gnu --help=recursive
1026 elif test -f $ac_srcdir/configure; then
1028 $SHELL $ac_srcdir/configure --help=recursive
1029 elif test -f $ac_srcdir/configure.ac ||
1030 test -f $ac_srcdir/configure.in; then
1032 $ac_configure --help
1034 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1040 test -n "$ac_init_help" && exit 0
1041 if $ac_init_version; then
1044 Copyright (C) 2003 Free Software Foundation, Inc.
1045 This configure script is free software; the Free Software Foundation
1046 gives unlimited permission to copy, distribute and modify it.
1052 This file contains any messages produced by compilers while
1053 running configure, to aid debugging if configure makes a mistake.
1055 It was created by $as_me, which was
1056 generated by GNU Autoconf 2.59. Invocation command line was
1067 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1068 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1069 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1070 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1071 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1073 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1074 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1076 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1077 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1078 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1079 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1080 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1081 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1082 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1090 test -z "$as_dir" && as_dir=.
1091 echo "PATH: $as_dir"
1106 # Keep a trace of the command line.
1107 # Strip out --no-create and --no-recursion so they do not pile up.
1108 # Strip out --silent because we don't want to record it for future runs.
1109 # Also quote any args containing shell meta-characters.
1110 # Make two passes to allow for proper duplicate-argument suppression.
1115 ac_must_keep_next=false
1121 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1122 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1123 | -silent | --silent | --silen | --sile | --sil)
1125 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1126 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1129 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1131 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1132 if test $ac_must_keep_next = true; then
1133 ac_must_keep_next=false # Got value, back to normal.
1136 *=* | --config-cache | -C | -disable-* | --disable-* \
1137 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1138 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1139 | -with-* | --with-* | -without-* | --without-* | --x)
1140 case "$ac_configure_args0 " in
1141 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1144 -* ) ac_must_keep_next=true ;;
1147 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1148 # Get rid of the leading space.
1154 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1155 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1157 # When interrupted or exit'd, cleanup temporary files, and complete
1158 # config.log. We remove comments because anyway the quotes in there
1159 # would cause problems or look ugly.
1160 # WARNING: Be sure not to use single quotes in there, as some shells,
1161 # such as our DU 5.0 friend, will then `close' the trap.
1162 trap 'exit_status=$?
1163 # Save into config.log some information that might help in debugging.
1168 ## ---------------- ##
1169 ## Cache variables. ##
1170 ## ---------------- ##
1173 # The following way of writing the cache mishandles newlines in values,
1176 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1179 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1180 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1184 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1191 ## ----------------- ##
1192 ## Output variables. ##
1193 ## ----------------- ##
1196 for ac_var in $ac_subst_vars
1198 eval ac_val=$`echo $ac_var`
1199 echo "$ac_var='"'"'$ac_val'"'"'"
1203 if test -n "$ac_subst_files"; then
1210 for ac_var in $ac_subst_files
1212 eval ac_val=$`echo $ac_var`
1213 echo "$ac_var='"'"'$ac_val'"'"'"
1218 if test -s confdefs.h; then
1225 sed "/^$/d" confdefs.h | sort
1228 test "$ac_signal" != 0 &&
1229 echo "$as_me: caught signal $ac_signal"
1230 echo "$as_me: exit $exit_status"
1232 rm -f core *.core &&
1233 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1236 for ac_signal in 1 2 13 15; do
1237 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1241 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1242 rm -rf conftest* confdefs.h
1243 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1246 # Predefined preprocessor variables.
1248 cat >>confdefs.h <<_ACEOF
1249 #define PACKAGE_NAME "$PACKAGE_NAME"
1253 cat >>confdefs.h <<_ACEOF
1254 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1258 cat >>confdefs.h <<_ACEOF
1259 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1263 cat >>confdefs.h <<_ACEOF
1264 #define PACKAGE_STRING "$PACKAGE_STRING"
1268 cat >>confdefs.h <<_ACEOF
1269 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1273 # Let the site file select an alternate cache file if it wants to.
1274 # Prefer explicitly selected file to automatically selected ones.
1275 if test -z "$CONFIG_SITE"; then
1276 if test "x$prefix" != xNONE; then
1277 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1279 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1282 for ac_site_file in $CONFIG_SITE; do
1283 if test -r "$ac_site_file"; then
1284 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1285 echo "$as_me: loading site script $ac_site_file" >&6;}
1286 sed 's/^/| /' "$ac_site_file" >&5
1291 if test -r "$cache_file"; then
1292 # Some versions of bash will fail to source /dev/null (special
1293 # files actually), so we avoid doing that.
1294 if test -f "$cache_file"; then
1295 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1296 echo "$as_me: loading cache $cache_file" >&6;}
1298 [\\/]* | ?:[\\/]* ) . $cache_file;;
1299 *) . ./$cache_file;;
1303 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1304 echo "$as_me: creating cache $cache_file" >&6;}
1308 # Check that the precious variables saved in the cache have kept the same
1310 ac_cache_corrupted=false
1311 for ac_var in `(set) 2>&1 |
1312 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1313 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1314 eval ac_new_set=\$ac_env_${ac_var}_set
1315 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1316 eval ac_new_val="\$ac_env_${ac_var}_value"
1317 case $ac_old_set,$ac_new_set in
1319 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1320 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1321 ac_cache_corrupted=: ;;
1323 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1324 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1325 ac_cache_corrupted=: ;;
1328 if test "x$ac_old_val" != "x$ac_new_val"; then
1329 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1330 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1331 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1332 echo "$as_me: former value: $ac_old_val" >&2;}
1333 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1334 echo "$as_me: current value: $ac_new_val" >&2;}
1335 ac_cache_corrupted=:
1338 # Pass precious variables to config.status.
1339 if test "$ac_new_set" = set; then
1341 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1342 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1343 *) ac_arg=$ac_var=$ac_new_val ;;
1345 case " $ac_configure_args " in
1346 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1347 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1351 if $ac_cache_corrupted; then
1352 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1353 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1354 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1355 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1356 { (exit 1); exit 1; }; }
1360 ac_cpp='$CPP $CPPFLAGS'
1361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1389 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1390 if test -f $ac_dir/install-sh; then
1392 ac_install_sh="$ac_aux_dir/install-sh -c"
1394 elif test -f $ac_dir/install.sh; then
1396 ac_install_sh="$ac_aux_dir/install.sh -c"
1398 elif test -f $ac_dir/shtool; then
1400 ac_install_sh="$ac_aux_dir/shtool install -c"
1404 if test -z "$ac_aux_dir"; then
1405 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1406 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1407 { (exit 1); exit 1; }; }
1409 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1410 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1411 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1413 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1421 # Extract the first word of "$ac_prog", so it can be a program name with args.
1422 set dummy $ac_prog; ac_word=$2
1423 echo "$as_me:$LINENO: checking for $ac_word" >&5
1424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1425 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1426 echo $ECHO_N "(cached) $ECHO_C" >&6
1430 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1437 test -z "$as_dir" && as_dir=.
1438 for ac_exec_ext in '' $ac_executable_extensions; do
1439 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1440 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1450 TRUEPRG=$ac_cv_path_TRUEPRG
1452 if test -n "$TRUEPRG"; then
1453 echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1454 echo "${ECHO_T}$TRUEPRG" >&6
1456 echo "$as_me:$LINENO: result: no" >&5
1457 echo "${ECHO_T}no" >&6
1460 test -n "$TRUEPRG" && break
1462 test -n "$TRUEPRG" || TRUEPRG=":"
1464 for ac_prog in false
1466 # Extract the first word of "$ac_prog", so it can be a program name with args.
1467 set dummy $ac_prog; ac_word=$2
1468 echo "$as_me:$LINENO: checking for $ac_word" >&5
1469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1470 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1471 echo $ECHO_N "(cached) $ECHO_C" >&6
1475 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1482 test -z "$as_dir" && as_dir=.
1483 for ac_exec_ext in '' $ac_executable_extensions; do
1484 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1485 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1495 FALSEPRG=$ac_cv_path_FALSEPRG
1497 if test -n "$FALSEPRG"; then
1498 echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1499 echo "${ECHO_T}$FALSEPRG" >&6
1501 echo "$as_me:$LINENO: result: no" >&5
1502 echo "${ECHO_T}no" >&6
1505 test -n "$FALSEPRG" && break
1507 test -n "$FALSEPRG" || FALSEPRG=":"
1512 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1513 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1514 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1515 echo "configuring for bacula $VERSION ($DATE)"
1520 ac_cpp='$CPP $CPPFLAGS'
1521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1524 if test -n "$ac_tool_prefix"; then
1525 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1526 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1527 echo "$as_me:$LINENO: checking for $ac_word" >&5
1528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1529 if test "${ac_cv_prog_CC+set}" = set; then
1530 echo $ECHO_N "(cached) $ECHO_C" >&6
1532 if test -n "$CC"; then
1533 ac_cv_prog_CC="$CC" # Let the user override the test.
1535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1539 test -z "$as_dir" && as_dir=.
1540 for ac_exec_ext in '' $ac_executable_extensions; do
1541 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1542 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1552 if test -n "$CC"; then
1553 echo "$as_me:$LINENO: result: $CC" >&5
1554 echo "${ECHO_T}$CC" >&6
1556 echo "$as_me:$LINENO: result: no" >&5
1557 echo "${ECHO_T}no" >&6
1561 if test -z "$ac_cv_prog_CC"; then
1563 # Extract the first word of "gcc", so it can be a program name with args.
1564 set dummy gcc; ac_word=$2
1565 echo "$as_me:$LINENO: checking for $ac_word" >&5
1566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1567 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1568 echo $ECHO_N "(cached) $ECHO_C" >&6
1570 if test -n "$ac_ct_CC"; then
1571 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1577 test -z "$as_dir" && as_dir=.
1578 for ac_exec_ext in '' $ac_executable_extensions; do
1579 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1580 ac_cv_prog_ac_ct_CC="gcc"
1581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1589 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1590 if test -n "$ac_ct_CC"; then
1591 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1592 echo "${ECHO_T}$ac_ct_CC" >&6
1594 echo "$as_me:$LINENO: result: no" >&5
1595 echo "${ECHO_T}no" >&6
1603 if test -z "$CC"; then
1604 if test -n "$ac_tool_prefix"; then
1605 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1606 set dummy ${ac_tool_prefix}cc; ac_word=$2
1607 echo "$as_me:$LINENO: checking for $ac_word" >&5
1608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1609 if test "${ac_cv_prog_CC+set}" = set; then
1610 echo $ECHO_N "(cached) $ECHO_C" >&6
1612 if test -n "$CC"; then
1613 ac_cv_prog_CC="$CC" # Let the user override the test.
1615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1619 test -z "$as_dir" && as_dir=.
1620 for ac_exec_ext in '' $ac_executable_extensions; do
1621 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1622 ac_cv_prog_CC="${ac_tool_prefix}cc"
1623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1632 if test -n "$CC"; then
1633 echo "$as_me:$LINENO: result: $CC" >&5
1634 echo "${ECHO_T}$CC" >&6
1636 echo "$as_me:$LINENO: result: no" >&5
1637 echo "${ECHO_T}no" >&6
1641 if test -z "$ac_cv_prog_CC"; then
1643 # Extract the first word of "cc", so it can be a program name with args.
1644 set dummy cc; ac_word=$2
1645 echo "$as_me:$LINENO: checking for $ac_word" >&5
1646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1647 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1648 echo $ECHO_N "(cached) $ECHO_C" >&6
1650 if test -n "$ac_ct_CC"; then
1651 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1657 test -z "$as_dir" && as_dir=.
1658 for ac_exec_ext in '' $ac_executable_extensions; do
1659 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1660 ac_cv_prog_ac_ct_CC="cc"
1661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1669 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1670 if test -n "$ac_ct_CC"; then
1671 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1672 echo "${ECHO_T}$ac_ct_CC" >&6
1674 echo "$as_me:$LINENO: result: no" >&5
1675 echo "${ECHO_T}no" >&6
1684 if test -z "$CC"; then
1685 # Extract the first word of "cc", so it can be a program name with args.
1686 set dummy cc; ac_word=$2
1687 echo "$as_me:$LINENO: checking for $ac_word" >&5
1688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1689 if test "${ac_cv_prog_CC+set}" = set; then
1690 echo $ECHO_N "(cached) $ECHO_C" >&6
1692 if test -n "$CC"; then
1693 ac_cv_prog_CC="$CC" # Let the user override the test.
1696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1700 test -z "$as_dir" && as_dir=.
1701 for ac_exec_ext in '' $ac_executable_extensions; do
1702 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1703 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1704 ac_prog_rejected=yes
1708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1714 if test $ac_prog_rejected = yes; then
1715 # We found a bogon in the path, so make sure we never use it.
1716 set dummy $ac_cv_prog_CC
1718 if test $# != 0; then
1719 # We chose a different compiler from the bogus one.
1720 # However, it has the same basename, so the bogon will be chosen
1721 # first if we set CC to just the basename; use the full file name.
1723 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1729 if test -n "$CC"; then
1730 echo "$as_me:$LINENO: result: $CC" >&5
1731 echo "${ECHO_T}$CC" >&6
1733 echo "$as_me:$LINENO: result: no" >&5
1734 echo "${ECHO_T}no" >&6
1738 if test -z "$CC"; then
1739 if test -n "$ac_tool_prefix"; then
1742 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1743 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1744 echo "$as_me:$LINENO: checking for $ac_word" >&5
1745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1746 if test "${ac_cv_prog_CC+set}" = set; then
1747 echo $ECHO_N "(cached) $ECHO_C" >&6
1749 if test -n "$CC"; then
1750 ac_cv_prog_CC="$CC" # Let the user override the test.
1752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1756 test -z "$as_dir" && as_dir=.
1757 for ac_exec_ext in '' $ac_executable_extensions; do
1758 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1759 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1769 if test -n "$CC"; then
1770 echo "$as_me:$LINENO: result: $CC" >&5
1771 echo "${ECHO_T}$CC" >&6
1773 echo "$as_me:$LINENO: result: no" >&5
1774 echo "${ECHO_T}no" >&6
1777 test -n "$CC" && break
1780 if test -z "$CC"; then
1784 # Extract the first word of "$ac_prog", so it can be a program name with args.
1785 set dummy $ac_prog; ac_word=$2
1786 echo "$as_me:$LINENO: checking for $ac_word" >&5
1787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1788 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1789 echo $ECHO_N "(cached) $ECHO_C" >&6
1791 if test -n "$ac_ct_CC"; then
1792 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1798 test -z "$as_dir" && as_dir=.
1799 for ac_exec_ext in '' $ac_executable_extensions; do
1800 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1801 ac_cv_prog_ac_ct_CC="$ac_prog"
1802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1810 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1811 if test -n "$ac_ct_CC"; then
1812 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1813 echo "${ECHO_T}$ac_ct_CC" >&6
1815 echo "$as_me:$LINENO: result: no" >&5
1816 echo "${ECHO_T}no" >&6
1819 test -n "$ac_ct_CC" && break
1828 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1829 See \`config.log' for more details." >&5
1830 echo "$as_me: error: no acceptable C compiler found in \$PATH
1831 See \`config.log' for more details." >&2;}
1832 { (exit 1); exit 1; }; }
1834 # Provide some information about the compiler.
1835 echo "$as_me:$LINENO:" \
1836 "checking for C compiler version" >&5
1837 ac_compiler=`set X $ac_compile; echo $2`
1838 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1839 (eval $ac_compiler --version </dev/null >&5) 2>&5
1841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1842 (exit $ac_status); }
1843 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1844 (eval $ac_compiler -v </dev/null >&5) 2>&5
1846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1847 (exit $ac_status); }
1848 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1849 (eval $ac_compiler -V </dev/null >&5) 2>&5
1851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1852 (exit $ac_status); }
1854 cat >conftest.$ac_ext <<_ACEOF
1857 cat confdefs.h >>conftest.$ac_ext
1858 cat >>conftest.$ac_ext <<_ACEOF
1859 /* end confdefs.h. */
1869 ac_clean_files_save=$ac_clean_files
1870 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1871 # Try to create an executable without -o first, disregard a.out.
1872 # It will help us diagnose broken compilers, and finding out an intuition
1874 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1875 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1876 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1877 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1878 (eval $ac_link_default) 2>&5
1880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1881 (exit $ac_status); }; then
1882 # Find the output, starting from the most likely. This scheme is
1883 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1886 # Be careful to initialize this variable, since it used to be cached.
1887 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1889 # b.out is created by i960 compilers.
1890 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1892 test -f "$ac_file" || continue
1894 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1897 # This is the source file.
1900 # We found the default executable, but exeext='' is most
1904 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1905 # FIXME: I believe we export ac_cv_exeext for Libtool,
1906 # but it would be cool to find out if it's true. Does anybody
1907 # maintain Libtool? --akim.
1915 echo "$as_me: failed program was:" >&5
1916 sed 's/^/| /' conftest.$ac_ext >&5
1918 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1919 See \`config.log' for more details." >&5
1920 echo "$as_me: error: C compiler cannot create executables
1921 See \`config.log' for more details." >&2;}
1922 { (exit 77); exit 77; }; }
1925 ac_exeext=$ac_cv_exeext
1926 echo "$as_me:$LINENO: result: $ac_file" >&5
1927 echo "${ECHO_T}$ac_file" >&6
1929 # Check the compiler produces executables we can run. If not, either
1930 # the compiler is broken, or we cross compile.
1931 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1932 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1933 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1934 # If not cross compiling, check that we can run a simple program.
1935 if test "$cross_compiling" != yes; then
1936 if { ac_try='./$ac_file'
1937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1941 (exit $ac_status); }; }; then
1944 if test "$cross_compiling" = maybe; then
1947 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1948 If you meant to cross compile, use \`--host'.
1949 See \`config.log' for more details." >&5
1950 echo "$as_me: error: cannot run C compiled programs.
1951 If you meant to cross compile, use \`--host'.
1952 See \`config.log' for more details." >&2;}
1953 { (exit 1); exit 1; }; }
1957 echo "$as_me:$LINENO: result: yes" >&5
1958 echo "${ECHO_T}yes" >&6
1960 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1961 ac_clean_files=$ac_clean_files_save
1962 # Check the compiler produces executables we can run. If not, either
1963 # the compiler is broken, or we cross compile.
1964 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1965 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1966 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1967 echo "${ECHO_T}$cross_compiling" >&6
1969 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1970 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1972 (eval $ac_link) 2>&5
1974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1975 (exit $ac_status); }; then
1976 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1977 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1978 # work properly (i.e., refer to `conftest.exe'), while it won't with
1980 for ac_file in conftest.exe conftest conftest.*; do
1981 test -f "$ac_file" || continue
1983 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1984 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1991 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1992 See \`config.log' for more details." >&5
1993 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1994 See \`config.log' for more details." >&2;}
1995 { (exit 1); exit 1; }; }
1998 rm -f conftest$ac_cv_exeext
1999 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2000 echo "${ECHO_T}$ac_cv_exeext" >&6
2002 rm -f conftest.$ac_ext
2003 EXEEXT=$ac_cv_exeext
2005 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2006 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2007 if test "${ac_cv_objext+set}" = set; then
2008 echo $ECHO_N "(cached) $ECHO_C" >&6
2010 cat >conftest.$ac_ext <<_ACEOF
2013 cat confdefs.h >>conftest.$ac_ext
2014 cat >>conftest.$ac_ext <<_ACEOF
2015 /* end confdefs.h. */
2025 rm -f conftest.o conftest.obj
2026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2027 (eval $ac_compile) 2>&5
2029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2030 (exit $ac_status); }; then
2031 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2033 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2034 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2039 echo "$as_me: failed program was:" >&5
2040 sed 's/^/| /' conftest.$ac_ext >&5
2042 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2043 See \`config.log' for more details." >&5
2044 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2045 See \`config.log' for more details." >&2;}
2046 { (exit 1); exit 1; }; }
2049 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2051 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2052 echo "${ECHO_T}$ac_cv_objext" >&6
2053 OBJEXT=$ac_cv_objext
2055 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2056 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2057 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2058 echo $ECHO_N "(cached) $ECHO_C" >&6
2060 cat >conftest.$ac_ext <<_ACEOF
2063 cat confdefs.h >>conftest.$ac_ext
2064 cat >>conftest.$ac_ext <<_ACEOF
2065 /* end confdefs.h. */
2078 rm -f conftest.$ac_objext
2079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2080 (eval $ac_compile) 2>conftest.er1
2082 grep -v '^ *+' conftest.er1 >conftest.err
2084 cat conftest.err >&5
2085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086 (exit $ac_status); } &&
2087 { ac_try='test -z "$ac_c_werror_flag"
2088 || test ! -s conftest.err'
2089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2093 (exit $ac_status); }; } &&
2094 { ac_try='test -s conftest.$ac_objext'
2095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099 (exit $ac_status); }; }; then
2102 echo "$as_me: failed program was:" >&5
2103 sed 's/^/| /' conftest.$ac_ext >&5
2107 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2108 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2111 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2112 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2113 GCC=`test $ac_compiler_gnu = yes && echo yes`
2114 ac_test_CFLAGS=${CFLAGS+set}
2115 ac_save_CFLAGS=$CFLAGS
2117 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2118 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2119 if test "${ac_cv_prog_cc_g+set}" = set; then
2120 echo $ECHO_N "(cached) $ECHO_C" >&6
2122 cat >conftest.$ac_ext <<_ACEOF
2125 cat confdefs.h >>conftest.$ac_ext
2126 cat >>conftest.$ac_ext <<_ACEOF
2127 /* end confdefs.h. */
2137 rm -f conftest.$ac_objext
2138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2139 (eval $ac_compile) 2>conftest.er1
2141 grep -v '^ *+' conftest.er1 >conftest.err
2143 cat conftest.err >&5
2144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2145 (exit $ac_status); } &&
2146 { ac_try='test -z "$ac_c_werror_flag"
2147 || test ! -s conftest.err'
2148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152 (exit $ac_status); }; } &&
2153 { ac_try='test -s conftest.$ac_objext'
2154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158 (exit $ac_status); }; }; then
2161 echo "$as_me: failed program was:" >&5
2162 sed 's/^/| /' conftest.$ac_ext >&5
2166 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2168 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2169 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2170 if test "$ac_test_CFLAGS" = set; then
2171 CFLAGS=$ac_save_CFLAGS
2172 elif test $ac_cv_prog_cc_g = yes; then
2173 if test "$GCC" = yes; then
2179 if test "$GCC" = yes; then
2185 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2186 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2187 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2188 echo $ECHO_N "(cached) $ECHO_C" >&6
2190 ac_cv_prog_cc_stdc=no
2192 cat >conftest.$ac_ext <<_ACEOF
2195 cat confdefs.h >>conftest.$ac_ext
2196 cat >>conftest.$ac_ext <<_ACEOF
2197 /* end confdefs.h. */
2200 #include <sys/types.h>
2201 #include <sys/stat.h>
2202 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2203 struct buf { int x; };
2204 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2205 static char *e (p, i)
2211 static char *f (char * (*g) (char **, int), char **p, ...)
2216 s = g (p, va_arg (v,int));
2221 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2222 function prototypes and stuff, but not '\xHH' hex character constants.
2223 These don't provoke an error unfortunately, instead are silently treated
2224 as 'x'. The following induces an error, until -std1 is added to get
2225 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2226 array size at least. It's necessary to write '\x00'==0 to get something
2227 that's true only with -std1. */
2228 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2230 int test (int i, double x);
2231 struct s1 {int (*f) (int a);};
2232 struct s2 {int (*f) (double a);};
2233 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2239 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2244 # Don't try gcc -ansi; that turns off useful extensions and
2245 # breaks some systems' header files.
2246 # AIX -qlanglvl=ansi
2247 # Ultrix and OSF/1 -std1
2248 # HP-UX 10.20 and later -Ae
2249 # HP-UX older versions -Aa -D_HPUX_SOURCE
2250 # SVR4 -Xc -D__EXTENSIONS__
2251 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2253 CC="$ac_save_CC $ac_arg"
2254 rm -f conftest.$ac_objext
2255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2256 (eval $ac_compile) 2>conftest.er1
2258 grep -v '^ *+' conftest.er1 >conftest.err
2260 cat conftest.err >&5
2261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262 (exit $ac_status); } &&
2263 { ac_try='test -z "$ac_c_werror_flag"
2264 || test ! -s conftest.err'
2265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269 (exit $ac_status); }; } &&
2270 { ac_try='test -s conftest.$ac_objext'
2271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2275 (exit $ac_status); }; }; then
2276 ac_cv_prog_cc_stdc=$ac_arg
2279 echo "$as_me: failed program was:" >&5
2280 sed 's/^/| /' conftest.$ac_ext >&5
2283 rm -f conftest.err conftest.$ac_objext
2285 rm -f conftest.$ac_ext conftest.$ac_objext
2290 case "x$ac_cv_prog_cc_stdc" in
2292 echo "$as_me:$LINENO: result: none needed" >&5
2293 echo "${ECHO_T}none needed" >&6 ;;
2295 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2296 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2297 CC="$CC $ac_cv_prog_cc_stdc" ;;
2300 # Some people use a C++ compiler to compile C. Since we use `exit',
2301 # in C++ we need to declare it. In case someone uses the same compiler
2302 # for both compiling C and C++ we need to have the C++ compiler decide
2303 # the declaration of exit, since it's the most demanding environment.
2304 cat >conftest.$ac_ext <<_ACEOF
2309 rm -f conftest.$ac_objext
2310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2311 (eval $ac_compile) 2>conftest.er1
2313 grep -v '^ *+' conftest.er1 >conftest.err
2315 cat conftest.err >&5
2316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317 (exit $ac_status); } &&
2318 { ac_try='test -z "$ac_c_werror_flag"
2319 || test ! -s conftest.err'
2320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324 (exit $ac_status); }; } &&
2325 { ac_try='test -s conftest.$ac_objext'
2326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330 (exit $ac_status); }; }; then
2331 for ac_declaration in \
2333 'extern "C" void std::exit (int) throw (); using std::exit;' \
2334 'extern "C" void std::exit (int); using std::exit;' \
2335 'extern "C" void exit (int) throw ();' \
2336 'extern "C" void exit (int);' \
2339 cat >conftest.$ac_ext <<_ACEOF
2342 cat confdefs.h >>conftest.$ac_ext
2343 cat >>conftest.$ac_ext <<_ACEOF
2344 /* end confdefs.h. */
2355 rm -f conftest.$ac_objext
2356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2357 (eval $ac_compile) 2>conftest.er1
2359 grep -v '^ *+' conftest.er1 >conftest.err
2361 cat conftest.err >&5
2362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363 (exit $ac_status); } &&
2364 { ac_try='test -z "$ac_c_werror_flag"
2365 || test ! -s conftest.err'
2366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370 (exit $ac_status); }; } &&
2371 { ac_try='test -s conftest.$ac_objext'
2372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376 (exit $ac_status); }; }; then
2379 echo "$as_me: failed program was:" >&5
2380 sed 's/^/| /' conftest.$ac_ext >&5
2384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2385 cat >conftest.$ac_ext <<_ACEOF
2388 cat confdefs.h >>conftest.$ac_ext
2389 cat >>conftest.$ac_ext <<_ACEOF
2390 /* end confdefs.h. */
2400 rm -f conftest.$ac_objext
2401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2402 (eval $ac_compile) 2>conftest.er1
2404 grep -v '^ *+' conftest.er1 >conftest.err
2406 cat conftest.err >&5
2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408 (exit $ac_status); } &&
2409 { ac_try='test -z "$ac_c_werror_flag"
2410 || test ! -s conftest.err'
2411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415 (exit $ac_status); }; } &&
2416 { ac_try='test -s conftest.$ac_objext'
2417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421 (exit $ac_status); }; }; then
2424 echo "$as_me: failed program was:" >&5
2425 sed 's/^/| /' conftest.$ac_ext >&5
2428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2431 if test -n "$ac_declaration"; then
2432 echo '#ifdef __cplusplus' >>confdefs.h
2433 echo $ac_declaration >>confdefs.h
2434 echo '#endif' >>confdefs.h
2438 echo "$as_me: failed program was:" >&5
2439 sed 's/^/| /' conftest.$ac_ext >&5
2442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2444 ac_cpp='$CPP $CPPFLAGS'
2445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2450 ac_cpp='$CXXCPP $CPPFLAGS'
2451 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2452 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2453 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2454 if test -n "$ac_tool_prefix"; then
2455 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2457 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2458 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2459 echo "$as_me:$LINENO: checking for $ac_word" >&5
2460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2461 if test "${ac_cv_prog_CXX+set}" = set; then
2462 echo $ECHO_N "(cached) $ECHO_C" >&6
2464 if test -n "$CXX"; then
2465 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2471 test -z "$as_dir" && as_dir=.
2472 for ac_exec_ext in '' $ac_executable_extensions; do
2473 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2474 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2484 if test -n "$CXX"; then
2485 echo "$as_me:$LINENO: result: $CXX" >&5
2486 echo "${ECHO_T}$CXX" >&6
2488 echo "$as_me:$LINENO: result: no" >&5
2489 echo "${ECHO_T}no" >&6
2492 test -n "$CXX" && break
2495 if test -z "$CXX"; then
2497 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2499 # Extract the first word of "$ac_prog", so it can be a program name with args.
2500 set dummy $ac_prog; ac_word=$2
2501 echo "$as_me:$LINENO: checking for $ac_word" >&5
2502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2503 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2504 echo $ECHO_N "(cached) $ECHO_C" >&6
2506 if test -n "$ac_ct_CXX"; then
2507 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2513 test -z "$as_dir" && as_dir=.
2514 for ac_exec_ext in '' $ac_executable_extensions; do
2515 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2516 ac_cv_prog_ac_ct_CXX="$ac_prog"
2517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2525 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2526 if test -n "$ac_ct_CXX"; then
2527 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2528 echo "${ECHO_T}$ac_ct_CXX" >&6
2530 echo "$as_me:$LINENO: result: no" >&5
2531 echo "${ECHO_T}no" >&6
2534 test -n "$ac_ct_CXX" && break
2536 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2542 # Provide some information about the compiler.
2543 echo "$as_me:$LINENO:" \
2544 "checking for C++ compiler version" >&5
2545 ac_compiler=`set X $ac_compile; echo $2`
2546 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2547 (eval $ac_compiler --version </dev/null >&5) 2>&5
2549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550 (exit $ac_status); }
2551 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2552 (eval $ac_compiler -v </dev/null >&5) 2>&5
2554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555 (exit $ac_status); }
2556 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2557 (eval $ac_compiler -V </dev/null >&5) 2>&5
2559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560 (exit $ac_status); }
2562 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2563 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2564 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2565 echo $ECHO_N "(cached) $ECHO_C" >&6
2567 cat >conftest.$ac_ext <<_ACEOF
2570 cat confdefs.h >>conftest.$ac_ext
2571 cat >>conftest.$ac_ext <<_ACEOF
2572 /* end confdefs.h. */
2585 rm -f conftest.$ac_objext
2586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2587 (eval $ac_compile) 2>conftest.er1
2589 grep -v '^ *+' conftest.er1 >conftest.err
2591 cat conftest.err >&5
2592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593 (exit $ac_status); } &&
2594 { ac_try='test -z "$ac_cxx_werror_flag"
2595 || test ! -s conftest.err'
2596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600 (exit $ac_status); }; } &&
2601 { ac_try='test -s conftest.$ac_objext'
2602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606 (exit $ac_status); }; }; then
2609 echo "$as_me: failed program was:" >&5
2610 sed 's/^/| /' conftest.$ac_ext >&5
2614 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2615 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2618 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2619 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2620 GXX=`test $ac_compiler_gnu = yes && echo yes`
2621 ac_test_CXXFLAGS=${CXXFLAGS+set}
2622 ac_save_CXXFLAGS=$CXXFLAGS
2624 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2625 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2626 if test "${ac_cv_prog_cxx_g+set}" = set; then
2627 echo $ECHO_N "(cached) $ECHO_C" >&6
2629 cat >conftest.$ac_ext <<_ACEOF
2632 cat confdefs.h >>conftest.$ac_ext
2633 cat >>conftest.$ac_ext <<_ACEOF
2634 /* end confdefs.h. */
2644 rm -f conftest.$ac_objext
2645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2646 (eval $ac_compile) 2>conftest.er1
2648 grep -v '^ *+' conftest.er1 >conftest.err
2650 cat conftest.err >&5
2651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652 (exit $ac_status); } &&
2653 { ac_try='test -z "$ac_cxx_werror_flag"
2654 || test ! -s conftest.err'
2655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659 (exit $ac_status); }; } &&
2660 { ac_try='test -s conftest.$ac_objext'
2661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665 (exit $ac_status); }; }; then
2666 ac_cv_prog_cxx_g=yes
2668 echo "$as_me: failed program was:" >&5
2669 sed 's/^/| /' conftest.$ac_ext >&5
2673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2675 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2676 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2677 if test "$ac_test_CXXFLAGS" = set; then
2678 CXXFLAGS=$ac_save_CXXFLAGS
2679 elif test $ac_cv_prog_cxx_g = yes; then
2680 if test "$GXX" = yes; then
2686 if test "$GXX" = yes; then
2692 for ac_declaration in \
2694 'extern "C" void std::exit (int) throw (); using std::exit;' \
2695 'extern "C" void std::exit (int); using std::exit;' \
2696 'extern "C" void exit (int) throw ();' \
2697 'extern "C" void exit (int);' \
2700 cat >conftest.$ac_ext <<_ACEOF
2703 cat confdefs.h >>conftest.$ac_ext
2704 cat >>conftest.$ac_ext <<_ACEOF
2705 /* end confdefs.h. */
2716 rm -f conftest.$ac_objext
2717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2718 (eval $ac_compile) 2>conftest.er1
2720 grep -v '^ *+' conftest.er1 >conftest.err
2722 cat conftest.err >&5
2723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724 (exit $ac_status); } &&
2725 { ac_try='test -z "$ac_cxx_werror_flag"
2726 || test ! -s conftest.err'
2727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); }; } &&
2732 { ac_try='test -s conftest.$ac_objext'
2733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737 (exit $ac_status); }; }; then
2740 echo "$as_me: failed program was:" >&5
2741 sed 's/^/| /' conftest.$ac_ext >&5
2745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2746 cat >conftest.$ac_ext <<_ACEOF
2749 cat confdefs.h >>conftest.$ac_ext
2750 cat >>conftest.$ac_ext <<_ACEOF
2751 /* end confdefs.h. */
2761 rm -f conftest.$ac_objext
2762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2763 (eval $ac_compile) 2>conftest.er1
2765 grep -v '^ *+' conftest.er1 >conftest.err
2767 cat conftest.err >&5
2768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769 (exit $ac_status); } &&
2770 { ac_try='test -z "$ac_cxx_werror_flag"
2771 || test ! -s conftest.err'
2772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776 (exit $ac_status); }; } &&
2777 { ac_try='test -s conftest.$ac_objext'
2778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782 (exit $ac_status); }; }; then
2785 echo "$as_me: failed program was:" >&5
2786 sed 's/^/| /' conftest.$ac_ext >&5
2789 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2792 if test -n "$ac_declaration"; then
2793 echo '#ifdef __cplusplus' >>confdefs.h
2794 echo $ac_declaration >>confdefs.h
2795 echo '#endif' >>confdefs.h
2799 ac_cpp='$CPP $CPPFLAGS'
2800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2804 if test "x$CC" != xcc; then
2805 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2806 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2808 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2809 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2811 set dummy $CC; ac_cc=`echo $2 |
2812 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2813 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2814 echo $ECHO_N "(cached) $ECHO_C" >&6
2816 cat >conftest.$ac_ext <<_ACEOF
2819 cat confdefs.h >>conftest.$ac_ext
2820 cat >>conftest.$ac_ext <<_ACEOF
2821 /* end confdefs.h. */
2831 # Make sure it works both with $CC and with simple cc.
2832 # We do the test twice because some compilers refuse to overwrite an
2833 # existing .o file with -o, though they will create one.
2834 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2835 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839 (exit $ac_status); } &&
2840 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844 (exit $ac_status); };
2846 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2847 if test "x$CC" != xcc; then
2848 # Test first that cc exists at all.
2849 if { ac_try='cc -c conftest.$ac_ext >&5'
2850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854 (exit $ac_status); }; }; then
2855 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2856 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2860 (exit $ac_status); } &&
2861 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865 (exit $ac_status); };
2870 # cc exists but doesn't like -o.
2871 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2876 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2881 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2882 echo "$as_me:$LINENO: result: yes" >&5
2883 echo "${ECHO_T}yes" >&6
2885 echo "$as_me:$LINENO: result: no" >&5
2886 echo "${ECHO_T}no" >&6
2888 cat >>confdefs.h <<\_ACEOF
2889 #define NO_MINUS_C_MINUS_O 1
2895 ac_cpp='$CPP $CPPFLAGS'
2896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2899 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2900 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2901 # On Suns, sometimes $CPP names a directory.
2902 if test -n "$CPP" && test -d "$CPP"; then
2905 if test -z "$CPP"; then
2906 if test "${ac_cv_prog_CPP+set}" = set; then
2907 echo $ECHO_N "(cached) $ECHO_C" >&6
2909 # Double quotes because CPP needs to be expanded
2910 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2913 for ac_c_preproc_warn_flag in '' yes
2915 # Use a header file that comes with gcc, so configuring glibc
2916 # with a fresh cross-compiler works.
2917 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2918 # <limits.h> exists even on freestanding compilers.
2919 # On the NeXT, cc -E runs the code through the compiler's parser,
2920 # not just through cpp. "Syntax error" is here to catch this case.
2921 cat >conftest.$ac_ext <<_ACEOF
2924 cat confdefs.h >>conftest.$ac_ext
2925 cat >>conftest.$ac_ext <<_ACEOF
2926 /* end confdefs.h. */
2928 # include <limits.h>
2930 # include <assert.h>
2934 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2935 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2937 grep -v '^ *+' conftest.er1 >conftest.err
2939 cat conftest.err >&5
2940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941 (exit $ac_status); } >/dev/null; then
2942 if test -s conftest.err; then
2943 ac_cpp_err=$ac_c_preproc_warn_flag
2944 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2951 if test -z "$ac_cpp_err"; then
2954 echo "$as_me: failed program was:" >&5
2955 sed 's/^/| /' conftest.$ac_ext >&5
2957 # Broken: fails on valid input.
2960 rm -f conftest.err conftest.$ac_ext
2962 # OK, works on sane cases. Now check whether non-existent headers
2963 # can be detected and how.
2964 cat >conftest.$ac_ext <<_ACEOF
2967 cat confdefs.h >>conftest.$ac_ext
2968 cat >>conftest.$ac_ext <<_ACEOF
2969 /* end confdefs.h. */
2970 #include <ac_nonexistent.h>
2972 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2973 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2975 grep -v '^ *+' conftest.er1 >conftest.err
2977 cat conftest.err >&5
2978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979 (exit $ac_status); } >/dev/null; then
2980 if test -s conftest.err; then
2981 ac_cpp_err=$ac_c_preproc_warn_flag
2982 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2989 if test -z "$ac_cpp_err"; then
2990 # Broken: success on invalid input.
2993 echo "$as_me: failed program was:" >&5
2994 sed 's/^/| /' conftest.$ac_ext >&5
2996 # Passes both tests.
3000 rm -f conftest.err conftest.$ac_ext
3003 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3004 rm -f conftest.err conftest.$ac_ext
3005 if $ac_preproc_ok; then
3017 echo "$as_me:$LINENO: result: $CPP" >&5
3018 echo "${ECHO_T}$CPP" >&6
3020 for ac_c_preproc_warn_flag in '' yes
3022 # Use a header file that comes with gcc, so configuring glibc
3023 # with a fresh cross-compiler works.
3024 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3025 # <limits.h> exists even on freestanding compilers.
3026 # On the NeXT, cc -E runs the code through the compiler's parser,
3027 # not just through cpp. "Syntax error" is here to catch this case.
3028 cat >conftest.$ac_ext <<_ACEOF
3031 cat confdefs.h >>conftest.$ac_ext
3032 cat >>conftest.$ac_ext <<_ACEOF
3033 /* end confdefs.h. */
3035 # include <limits.h>
3037 # include <assert.h>
3041 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3042 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3044 grep -v '^ *+' conftest.er1 >conftest.err
3046 cat conftest.err >&5
3047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048 (exit $ac_status); } >/dev/null; then
3049 if test -s conftest.err; then
3050 ac_cpp_err=$ac_c_preproc_warn_flag
3051 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3058 if test -z "$ac_cpp_err"; then
3061 echo "$as_me: failed program was:" >&5
3062 sed 's/^/| /' conftest.$ac_ext >&5
3064 # Broken: fails on valid input.
3067 rm -f conftest.err conftest.$ac_ext
3069 # OK, works on sane cases. Now check whether non-existent headers
3070 # can be detected and how.
3071 cat >conftest.$ac_ext <<_ACEOF
3074 cat confdefs.h >>conftest.$ac_ext
3075 cat >>conftest.$ac_ext <<_ACEOF
3076 /* end confdefs.h. */
3077 #include <ac_nonexistent.h>
3079 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3080 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3082 grep -v '^ *+' conftest.er1 >conftest.err
3084 cat conftest.err >&5
3085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086 (exit $ac_status); } >/dev/null; then
3087 if test -s conftest.err; then
3088 ac_cpp_err=$ac_c_preproc_warn_flag
3089 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3096 if test -z "$ac_cpp_err"; then
3097 # Broken: success on invalid input.
3100 echo "$as_me: failed program was:" >&5
3101 sed 's/^/| /' conftest.$ac_ext >&5
3103 # Passes both tests.
3107 rm -f conftest.err conftest.$ac_ext
3110 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3111 rm -f conftest.err conftest.$ac_ext
3112 if $ac_preproc_ok; then
3115 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3116 See \`config.log' for more details." >&5
3117 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3118 See \`config.log' for more details." >&2;}
3119 { (exit 1); exit 1; }; }
3123 ac_cpp='$CPP $CPPFLAGS'
3124 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3125 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3126 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3129 echo "$as_me:$LINENO: checking for egrep" >&5
3130 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3131 if test "${ac_cv_prog_egrep+set}" = set; then
3132 echo $ECHO_N "(cached) $ECHO_C" >&6
3134 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3135 then ac_cv_prog_egrep='grep -E'
3136 else ac_cv_prog_egrep='egrep'
3139 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3140 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3141 EGREP=$ac_cv_prog_egrep
3144 if test $ac_cv_c_compiler_gnu = yes; then
3145 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3146 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3147 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3148 echo $ECHO_N "(cached) $ECHO_C" >&6
3150 ac_pattern="Autoconf.*'x'"
3151 cat >conftest.$ac_ext <<_ACEOF
3154 cat confdefs.h >>conftest.$ac_ext
3155 cat >>conftest.$ac_ext <<_ACEOF
3156 /* end confdefs.h. */
3160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3161 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3162 ac_cv_prog_gcc_traditional=yes
3164 ac_cv_prog_gcc_traditional=no
3169 if test $ac_cv_prog_gcc_traditional = no; then
3170 cat >conftest.$ac_ext <<_ACEOF
3173 cat confdefs.h >>conftest.$ac_ext
3174 cat >>conftest.$ac_ext <<_ACEOF
3175 /* end confdefs.h. */
3179 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3180 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3181 ac_cv_prog_gcc_traditional=yes
3187 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3188 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3189 if test $ac_cv_prog_gcc_traditional = yes; then
3190 CC="$CC -traditional"
3194 if test "x$CC" = xgcc
3196 cat >>confdefs.h <<\_ACEOF
3202 # Find a good install program. We prefer a C program (faster),
3203 # so one script is as good as another. But avoid the broken or
3204 # incompatible versions:
3205 # SysV /etc/install, /usr/sbin/install
3206 # SunOS /usr/etc/install
3207 # IRIX /sbin/install
3209 # AmigaOS /C/install, which installs bootblocks on floppy discs
3210 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3211 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3212 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3213 # OS/2's system install, which has a completely different semantic
3214 # ./install, which can be erroneously created by make from ./install.sh.
3215 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3216 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3217 if test -z "$INSTALL"; then
3218 if test "${ac_cv_path_install+set}" = set; then
3219 echo $ECHO_N "(cached) $ECHO_C" >&6
3221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3225 test -z "$as_dir" && as_dir=.
3226 # Account for people who put trailing slashes in PATH elements.
3228 ./ | .// | /cC/* | \
3229 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3230 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3233 # OSF1 and SCO ODT 3.0 have their own names for install.
3234 # Don't use installbsd from OSF since it installs stuff as root
3236 for ac_prog in ginstall scoinst install; do
3237 for ac_exec_ext in '' $ac_executable_extensions; do
3238 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3239 if test $ac_prog = install &&
3240 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3241 # AIX install. It has an incompatible calling convention.
3243 elif test $ac_prog = install &&
3244 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3245 # program-specific install script used by HP pwplus--don't use.
3248 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3260 if test "${ac_cv_path_install+set}" = set; then
3261 INSTALL=$ac_cv_path_install
3263 # As a last resort, use the slow shell script. We don't cache a
3264 # path for INSTALL within a source directory, because that will
3265 # break other packages using the cache if that directory is
3266 # removed, or if the path is relative.
3267 INSTALL=$ac_install_sh
3270 echo "$as_me:$LINENO: result: $INSTALL" >&5
3271 echo "${ECHO_T}$INSTALL" >&6
3273 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3274 # It thinks the first close brace ends the variable substitution.
3275 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3277 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3279 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3281 if test -n "$ac_tool_prefix"; then
3282 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3283 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3284 echo "$as_me:$LINENO: checking for $ac_word" >&5
3285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3286 if test "${ac_cv_prog_RANLIB+set}" = set; then
3287 echo $ECHO_N "(cached) $ECHO_C" >&6
3289 if test -n "$RANLIB"; then
3290 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3296 test -z "$as_dir" && as_dir=.
3297 for ac_exec_ext in '' $ac_executable_extensions; do
3298 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3299 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3308 RANLIB=$ac_cv_prog_RANLIB
3309 if test -n "$RANLIB"; then
3310 echo "$as_me:$LINENO: result: $RANLIB" >&5
3311 echo "${ECHO_T}$RANLIB" >&6
3313 echo "$as_me:$LINENO: result: no" >&5
3314 echo "${ECHO_T}no" >&6
3318 if test -z "$ac_cv_prog_RANLIB"; then
3319 ac_ct_RANLIB=$RANLIB
3320 # Extract the first word of "ranlib", so it can be a program name with args.
3321 set dummy ranlib; ac_word=$2
3322 echo "$as_me:$LINENO: checking for $ac_word" >&5
3323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3324 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3325 echo $ECHO_N "(cached) $ECHO_C" >&6
3327 if test -n "$ac_ct_RANLIB"; then
3328 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3334 test -z "$as_dir" && as_dir=.
3335 for ac_exec_ext in '' $ac_executable_extensions; do
3336 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3337 ac_cv_prog_ac_ct_RANLIB="ranlib"
3338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3344 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3347 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3348 if test -n "$ac_ct_RANLIB"; then
3349 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3350 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3352 echo "$as_me:$LINENO: result: no" >&5
3353 echo "${ECHO_T}no" >&6
3356 RANLIB=$ac_ct_RANLIB
3358 RANLIB="$ac_cv_prog_RANLIB"
3361 # Extract the first word of "mv", so it can be a program name with args.
3362 set dummy mv; ac_word=$2
3363 echo "$as_me:$LINENO: checking for $ac_word" >&5
3364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3365 if test "${ac_cv_path_MV+set}" = set; then
3366 echo $ECHO_N "(cached) $ECHO_C" >&6
3370 ac_cv_path_MV="$MV" # Let the user override the test with a path.
3373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3377 test -z "$as_dir" && as_dir=.
3378 for ac_exec_ext in '' $ac_executable_extensions; do
3379 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3380 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3387 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3393 if test -n "$MV"; then
3394 echo "$as_me:$LINENO: result: $MV" >&5
3395 echo "${ECHO_T}$MV" >&6
3397 echo "$as_me:$LINENO: result: no" >&5
3398 echo "${ECHO_T}no" >&6
3401 # Extract the first word of "rm", so it can be a program name with args.
3402 set dummy rm; ac_word=$2
3403 echo "$as_me:$LINENO: checking for $ac_word" >&5
3404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3405 if test "${ac_cv_path_RM+set}" = set; then
3406 echo $ECHO_N "(cached) $ECHO_C" >&6
3410 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3417 test -z "$as_dir" && as_dir=.
3418 for ac_exec_ext in '' $ac_executable_extensions; do
3419 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3420 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3427 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3433 if test -n "$RM"; then
3434 echo "$as_me:$LINENO: result: $RM" >&5
3435 echo "${ECHO_T}$RM" >&6
3437 echo "$as_me:$LINENO: result: no" >&5
3438 echo "${ECHO_T}no" >&6
3441 # Extract the first word of "cp", so it can be a program name with args.
3442 set dummy cp; ac_word=$2
3443 echo "$as_me:$LINENO: checking for $ac_word" >&5
3444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3445 if test "${ac_cv_path_CP+set}" = set; then
3446 echo $ECHO_N "(cached) $ECHO_C" >&6
3450 ac_cv_path_CP="$CP" # Let the user override the test with a path.
3453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3457 test -z "$as_dir" && as_dir=.
3458 for ac_exec_ext in '' $ac_executable_extensions; do
3459 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3460 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3467 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3473 if test -n "$CP"; then
3474 echo "$as_me:$LINENO: result: $CP" >&5
3475 echo "${ECHO_T}$CP" >&6
3477 echo "$as_me:$LINENO: result: no" >&5
3478 echo "${ECHO_T}no" >&6
3481 # Extract the first word of "sed", so it can be a program name with args.
3482 set dummy sed; ac_word=$2
3483 echo "$as_me:$LINENO: checking for $ac_word" >&5
3484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3485 if test "${ac_cv_path_SED+set}" = set; then
3486 echo $ECHO_N "(cached) $ECHO_C" >&6
3490 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3497 test -z "$as_dir" && as_dir=.
3498 for ac_exec_ext in '' $ac_executable_extensions; do
3499 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3500 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3507 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3513 if test -n "$SED"; then
3514 echo "$as_me:$LINENO: result: $SED" >&5
3515 echo "${ECHO_T}$SED" >&6
3517 echo "$as_me:$LINENO: result: no" >&5
3518 echo "${ECHO_T}no" >&6
3521 # Extract the first word of "echo", so it can be a program name with args.
3522 set dummy echo; ac_word=$2
3523 echo "$as_me:$LINENO: checking for $ac_word" >&5
3524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3525 if test "${ac_cv_path_ECHO+set}" = set; then
3526 echo $ECHO_N "(cached) $ECHO_C" >&6
3530 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3537 test -z "$as_dir" && as_dir=.
3538 for ac_exec_ext in '' $ac_executable_extensions; do
3539 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3540 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3541 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3547 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3551 ECHO=$ac_cv_path_ECHO
3553 if test -n "$ECHO"; then
3554 echo "$as_me:$LINENO: result: $ECHO" >&5
3555 echo "${ECHO_T}$ECHO" >&6
3557 echo "$as_me:$LINENO: result: no" >&5
3558 echo "${ECHO_T}no" >&6
3561 # Extract the first word of "cmp", so it can be a program name with args.
3562 set dummy cmp; ac_word=$2
3563 echo "$as_me:$LINENO: checking for $ac_word" >&5
3564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3565 if test "${ac_cv_path_CMP+set}" = set; then
3566 echo $ECHO_N "(cached) $ECHO_C" >&6
3570 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3577 test -z "$as_dir" && as_dir=.
3578 for ac_exec_ext in '' $ac_executable_extensions; do
3579 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3580 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3587 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3593 if test -n "$CMP"; then
3594 echo "$as_me:$LINENO: result: $CMP" >&5
3595 echo "${ECHO_T}$CMP" >&6
3597 echo "$as_me:$LINENO: result: no" >&5
3598 echo "${ECHO_T}no" >&6
3601 # Extract the first word of "tbl", so it can be a program name with args.
3602 set dummy tbl; ac_word=$2
3603 echo "$as_me:$LINENO: checking for $ac_word" >&5
3604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3605 if test "${ac_cv_path_TBL+set}" = set; then
3606 echo $ECHO_N "(cached) $ECHO_C" >&6
3610 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3617 test -z "$as_dir" && as_dir=.
3618 for ac_exec_ext in '' $ac_executable_extensions; do
3619 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3620 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3627 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3633 if test -n "$TBL"; then
3634 echo "$as_me:$LINENO: result: $TBL" >&5
3635 echo "${ECHO_T}$TBL" >&6
3637 echo "$as_me:$LINENO: result: no" >&5
3638 echo "${ECHO_T}no" >&6
3641 # Extract the first word of "ar", so it can be a program name with args.
3642 set dummy ar; ac_word=$2
3643 echo "$as_me:$LINENO: checking for $ac_word" >&5
3644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3645 if test "${ac_cv_path_AR+set}" = set; then
3646 echo $ECHO_N "(cached) $ECHO_C" >&6
3650 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3657 test -z "$as_dir" && as_dir=.
3658 for ac_exec_ext in '' $ac_executable_extensions; do
3659 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3660 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3667 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3673 if test -n "$AR"; then
3674 echo "$as_me:$LINENO: result: $AR" >&5
3675 echo "${ECHO_T}$AR" >&6
3677 echo "$as_me:$LINENO: result: no" >&5
3678 echo "${ECHO_T}no" >&6
3681 # Extract the first word of "openssl", so it can be a program name with args.
3682 set dummy openssl; ac_word=$2
3683 echo "$as_me:$LINENO: checking for $ac_word" >&5
3684 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3685 if test "${ac_cv_path_OPENSSL+set}" = set; then
3686 echo $ECHO_N "(cached) $ECHO_C" >&6
3690 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3697 test -z "$as_dir" && as_dir=.
3698 for ac_exec_ext in '' $ac_executable_extensions; do
3699 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3700 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3707 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3711 OPENSSL=$ac_cv_path_OPENSSL
3713 if test -n "$OPENSSL"; then
3714 echo "$as_me:$LINENO: result: $OPENSSL" >&5
3715 echo "${ECHO_T}$OPENSSL" >&6
3717 echo "$as_me:$LINENO: result: no" >&5
3718 echo "${ECHO_T}no" >&6
3721 # Extract the first word of "mtx", so it can be a program name with args.
3722 set dummy mtx; ac_word=$2
3723 echo "$as_me:$LINENO: checking for $ac_word" >&5
3724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3725 if test "${ac_cv_path_MTX+set}" = set; then
3726 echo $ECHO_N "(cached) $ECHO_C" >&6
3730 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3737 test -z "$as_dir" && as_dir=.
3738 for ac_exec_ext in '' $ac_executable_extensions; do
3739 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3740 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3747 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3753 if test -n "$MTX"; then
3754 echo "$as_me:$LINENO: result: $MTX" >&5
3755 echo "${ECHO_T}$MTX" >&6
3757 echo "$as_me:$LINENO: result: no" >&5
3758 echo "${ECHO_T}no" >&6
3761 # Extract the first word of "mkisofs", so it can be a program name with args.
3762 set dummy mkisofs; ac_word=$2
3763 echo "$as_me:$LINENO: checking for $ac_word" >&5
3764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3765 if test "${ac_cv_path_MKISOFS+set}" = set; then
3766 echo $ECHO_N "(cached) $ECHO_C" >&6
3770 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
3773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3777 test -z "$as_dir" && as_dir=.
3778 for ac_exec_ext in '' $ac_executable_extensions; do
3779 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3780 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
3781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3787 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
3791 MKISOFS=$ac_cv_path_MKISOFS
3793 if test -n "$MKISOFS"; then
3794 echo "$as_me:$LINENO: result: $MKISOFS" >&5
3795 echo "${ECHO_T}$MKISOFS" >&6
3797 echo "$as_me:$LINENO: result: no" >&5
3798 echo "${ECHO_T}no" >&6
3801 # Extract the first word of "python", so it can be a program name with args.
3802 set dummy python; ac_word=$2
3803 echo "$as_me:$LINENO: checking for $ac_word" >&5
3804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3805 if test "${ac_cv_path_PYTHON+set}" = set; then
3806 echo $ECHO_N "(cached) $ECHO_C" >&6
3810 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
3813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3817 test -z "$as_dir" && as_dir=.
3818 for ac_exec_ext in '' $ac_executable_extensions; do
3819 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3820 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
3821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3827 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
3831 PYTHON=$ac_cv_path_PYTHON
3833 if test -n "$PYTHON"; then
3834 echo "$as_me:$LINENO: result: $PYTHON" >&5
3835 echo "${ECHO_T}$PYTHON" >&6
3837 echo "$as_me:$LINENO: result: no" >&5
3838 echo "${ECHO_T}no" >&6
3841 # Extract the first word of "growisofs", so it can be a program name with args.
3842 set dummy growisofs; ac_word=$2
3843 echo "$as_me:$LINENO: checking for $ac_word" >&5
3844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3845 if test "${ac_cv_path_GROWISOFS+set}" = set; then
3846 echo $ECHO_N "(cached) $ECHO_C" >&6
3850 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
3853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3857 test -z "$as_dir" && as_dir=.
3858 for ac_exec_ext in '' $ac_executable_extensions; do
3859 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3860 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
3861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3867 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
3871 GROWISOFS=$ac_cv_path_GROWISOFS
3873 if test -n "$GROWISOFS"; then
3874 echo "$as_me:$LINENO: result: $GROWISOFS" >&5
3875 echo "${ECHO_T}$GROWISOFS" >&6
3877 echo "$as_me:$LINENO: result: no" >&5
3878 echo "${ECHO_T}no" >&6
3881 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
3882 set dummy dvd+rw-mediainfo; ac_word=$2
3883 echo "$as_me:$LINENO: checking for $ac_word" >&5
3884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3885 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
3886 echo $ECHO_N "(cached) $ECHO_C" >&6
3888 case $DVDRWMEDIAINFO in
3890 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
3893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3897 test -z "$as_dir" && as_dir=.
3898 for ac_exec_ext in '' $ac_executable_extensions; do
3899 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3900 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
3901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3907 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
3911 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
3913 if test -n "$DVDRWMEDIAINFO"; then
3914 echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
3915 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6
3917 echo "$as_me:$LINENO: result: no" >&5
3918 echo "${ECHO_T}no" >&6
3921 # Extract the first word of "pkg-config", so it can be a program name with args.
3922 set dummy pkg-config; ac_word=$2
3923 echo "$as_me:$LINENO: checking for $ac_word" >&5
3924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3925 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
3926 echo $ECHO_N "(cached) $ECHO_C" >&6
3930 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
3933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3937 test -z "$as_dir" && as_dir=.
3938 for ac_exec_ext in '' $ac_executable_extensions; do
3939 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3940 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
3941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3947 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
3951 PKGCONFIG=$ac_cv_path_PKGCONFIG
3953 if test -n "$PKGCONFIG"; then
3954 echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
3955 echo "${ECHO_T}$PKGCONFIG" >&6
3957 echo "$as_me:$LINENO: result: no" >&5
3958 echo "${ECHO_T}no" >&6
3961 # Extract the first word of "wx-config", so it can be a program name with args.
3962 set dummy wx-config; ac_word=$2
3963 echo "$as_me:$LINENO: checking for $ac_word" >&5
3964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3965 if test "${ac_cv_path_WXCONFIG+set}" = set; then
3966 echo $ECHO_N "(cached) $ECHO_C" >&6
3970 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
3973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3977 test -z "$as_dir" && as_dir=.
3978 for ac_exec_ext in '' $ac_executable_extensions; do
3979 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3980 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
3981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3987 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="wx-config"
3991 WXCONFIG=$ac_cv_path_WXCONFIG
3993 if test -n "$WXCONFIG"; then
3994 echo "$as_me:$LINENO: result: $WXCONFIG" >&5
3995 echo "${ECHO_T}$WXCONFIG" >&6
3997 echo "$as_me:$LINENO: result: no" >&5
3998 echo "${ECHO_T}no" >&6
4001 # Extract the first word of "cdrecord", so it can be a program name with args.
4002 set dummy cdrecord; ac_word=$2
4003 echo "$as_me:$LINENO: checking for $ac_word" >&5
4004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4005 if test "${ac_cv_path_CDRECORD+set}" = set; then
4006 echo $ECHO_N "(cached) $ECHO_C" >&6
4010 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
4013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4017 test -z "$as_dir" && as_dir=.
4018 for ac_exec_ext in '' $ac_executable_extensions; do
4019 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4020 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
4021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4027 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
4031 CDRECORD=$ac_cv_path_CDRECORD
4033 if test -n "$CDRECORD"; then
4034 echo "$as_me:$LINENO: result: $CDRECORD" >&5
4035 echo "${ECHO_T}$CDRECORD" >&6
4037 echo "$as_me:$LINENO: result: no" >&5
4038 echo "${ECHO_T}no" >&6
4041 # Extract the first word of "pidof", so it can be a program name with args.
4042 set dummy pidof; ac_word=$2
4043 echo "$as_me:$LINENO: checking for $ac_word" >&5
4044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4045 if test "${ac_cv_path_PIDOF+set}" = set; then
4046 echo $ECHO_N "(cached) $ECHO_C" >&6
4050 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
4053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4057 test -z "$as_dir" && as_dir=.
4058 for ac_exec_ext in '' $ac_executable_extensions; do
4059 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4060 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
4061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4067 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
4071 PIDOF=$ac_cv_path_PIDOF
4073 if test -n "$PIDOF"; then
4074 echo "$as_me:$LINENO: result: $PIDOF" >&5
4075 echo "${ECHO_T}$PIDOF" >&6
4077 echo "$as_me:$LINENO: result: no" >&5
4078 echo "${ECHO_T}no" >&6
4081 for ac_prog in gawk mawk nawk awk
4083 # Extract the first word of "$ac_prog", so it can be a program name with args.
4084 set dummy $ac_prog; ac_word=$2
4085 echo "$as_me:$LINENO: checking for $ac_word" >&5
4086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4087 if test "${ac_cv_prog_AWK+set}" = set; then
4088 echo $ECHO_N "(cached) $ECHO_C" >&6
4090 if test -n "$AWK"; then
4091 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4097 test -z "$as_dir" && as_dir=.
4098 for ac_exec_ext in '' $ac_executable_extensions; do
4099 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4100 ac_cv_prog_AWK="$ac_prog"
4101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4110 if test -n "$AWK"; then
4111 echo "$as_me:$LINENO: result: $AWK" >&5
4112 echo "${ECHO_T}$AWK" >&6
4114 echo "$as_me:$LINENO: result: no" >&5
4115 echo "${ECHO_T}no" >&6
4118 test -n "$AWK" && break
4121 # Some AWK programs fail, so test it and warn the user
4122 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
4123 { if ((prog == $2) || (("(" prog ")") == $2) ||
4124 (("" prog "") == $2) ||
4125 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
4127 { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4128 The regex engine of $AWK is too broken to be used you
4129 might want to install GNU AWK.
4130 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
4131 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4132 The regex engine of $AWK is too broken to be used you
4133 might want to install GNU AWK.
4134 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
4135 { (exit 1); exit 1; }; }
4138 # Extract the first word of "$THE_AWK", so it can be a program name with args.
4139 set dummy $THE_AWK; ac_word=$2
4140 echo "$as_me:$LINENO: checking for $ac_word" >&5
4141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4142 if test "${ac_cv_path_AWK+set}" = set; then
4143 echo $ECHO_N "(cached) $ECHO_C" >&6
4147 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
4150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4154 test -z "$as_dir" && as_dir=.
4155 for ac_exec_ext in '' $ac_executable_extensions; do
4156 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4157 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
4158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4164 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
4170 if test -n "$AWK"; then
4171 echo "$as_me:$LINENO: result: $AWK" >&5
4172 echo "${ECHO_T}$AWK" >&6
4174 echo "$as_me:$LINENO: result: no" >&5
4175 echo "${ECHO_T}no" >&6
4179 test -n "$ARFLAG" || ARFLAGS="cr"
4192 # Make sure we can run config.sub.
4193 $ac_config_sub sun4 >/dev/null 2>&1 ||
4194 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4195 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4196 { (exit 1); exit 1; }; }
4198 echo "$as_me:$LINENO: checking build system type" >&5
4199 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4200 if test "${ac_cv_build+set}" = set; then
4201 echo $ECHO_N "(cached) $ECHO_C" >&6
4203 ac_cv_build_alias=$build_alias
4204 test -z "$ac_cv_build_alias" &&
4205 ac_cv_build_alias=`$ac_config_guess`
4206 test -z "$ac_cv_build_alias" &&
4207 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4208 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4209 { (exit 1); exit 1; }; }
4210 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4211 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4212 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4213 { (exit 1); exit 1; }; }
4216 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4217 echo "${ECHO_T}$ac_cv_build" >&6
4219 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4220 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4221 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4225 echo "$as_me:$LINENO: checking host system type" >&5
4226 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4227 if test "${ac_cv_host+set}" = set; then
4228 echo $ECHO_N "(cached) $ECHO_C" >&6
4230 ac_cv_host_alias=$host_alias
4231 test -z "$ac_cv_host_alias" &&
4232 ac_cv_host_alias=$ac_cv_build_alias
4233 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4234 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4235 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4236 { (exit 1); exit 1; }; }
4239 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4240 echo "${ECHO_T}$ac_cv_host" >&6
4242 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4243 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4244 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4248 *cygwin* ) CYGWIN=yes;;
4252 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4258 HAVE_SUN_OS_FALSE='#'
4260 HAVE_SUN_OS_TRUE='#'
4263 cat >>confdefs.h <<\_ACEOF
4264 #define HAVE_SUN_OS 1
4272 HAVE_SUN_OS_FALSE='#'
4274 HAVE_SUN_OS_TRUE='#'
4279 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4285 HAVE_OSF1_OS_FALSE='#'
4287 HAVE_OSF1_OS_TRUE='#'
4290 cat >>confdefs.h <<\_ACEOF
4291 #define HAVE_OSF1_OS 1
4299 HAVE_OSF1_OS_FALSE='#'
4301 HAVE_OSF1_OS_TRUE='#'
4306 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4312 HAVE_AIX_OS_FALSE='#'
4314 HAVE_AIX_OS_TRUE='#'
4317 cat >>confdefs.h <<\_ACEOF
4318 #define HAVE_AIX_OS 1
4326 HAVE_AIX_OS_FALSE='#'
4328 HAVE_AIX_OS_TRUE='#'
4333 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4339 HAVE_HPUX_OS_FALSE='#'
4341 HAVE_HPUX_OS_TRUE='#'
4344 cat >>confdefs.h <<\_ACEOF
4345 #define HAVE_HPUX_OS 1
4353 HAVE_HPUX_OS_FALSE='#'
4355 HAVE_HPUX_OS_TRUE='#'
4360 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
4366 HAVE_LINUX_OS_FALSE='#'
4368 HAVE_LINUX_OS_TRUE='#'
4369 HAVE_LINUX_OS_FALSE=
4371 cat >>confdefs.h <<\_ACEOF
4372 #define HAVE_LINUX_OS 1
4380 HAVE_LINUX_OS_FALSE='#'
4382 HAVE_LINUX_OS_TRUE='#'
4383 HAVE_LINUX_OS_FALSE=
4387 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4392 HAVE_FREEBSD_OS_TRUE=
4393 HAVE_FREEBSD_OS_FALSE='#'
4395 HAVE_FREEBSD_OS_TRUE='#'
4396 HAVE_FREEBSD_OS_FALSE=
4398 cat >>confdefs.h <<\_ACEOF
4399 #define HAVE_FREEBSD_OS 1
4406 HAVE_FREEBSD_OS_TRUE=
4407 HAVE_FREEBSD_OS_FALSE='#'
4409 HAVE_FREEBSD_OS_TRUE='#'
4410 HAVE_FREEBSD_OS_FALSE=
4414 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4419 HAVE_NETBSD_OS_TRUE=
4420 HAVE_NETBSD_OS_FALSE='#'
4422 HAVE_NETBSD_OS_TRUE='#'
4423 HAVE_NETBSD_OS_FALSE=
4425 cat >>confdefs.h <<\_ACEOF
4426 #define HAVE_NETBSD_OS 1
4433 HAVE_NETBSD_OS_TRUE=
4434 HAVE_NETBSD_OS_FALSE='#'
4436 HAVE_NETBSD_OS_TRUE='#'
4437 HAVE_NETBSD_OS_FALSE=
4441 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4446 HAVE_OPENBSD_OS_TRUE=
4447 HAVE_OPENBSD_OS_FALSE='#'
4449 HAVE_OPENBSD_OS_TRUE='#'
4450 HAVE_OPENBSD_OS_FALSE=
4452 cat >>confdefs.h <<\_ACEOF
4453 #define HAVE_OPENBSD_OS 1
4460 HAVE_OPENBSD_OS_TRUE=
4461 HAVE_OPENBSD_OS_FALSE='#'
4463 HAVE_OPENBSD_OS_TRUE='#'
4464 HAVE_OPENBSD_OS_FALSE=
4468 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4474 HAVE_BSDI_OS_FALSE='#'
4476 HAVE_BSDI_OS_TRUE='#'
4479 cat >>confdefs.h <<\_ACEOF
4480 #define HAVE_BSDI_OS 1
4488 HAVE_BSDI_OS_FALSE='#'
4490 HAVE_BSDI_OS_TRUE='#'
4495 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4501 HAVE_SGI_OS_FALSE='#'
4503 HAVE_SGI_OS_TRUE='#'
4506 cat >>confdefs.h <<\_ACEOF
4507 #define HAVE_SGI_OS 1
4515 HAVE_SGI_OS_FALSE='#'
4517 HAVE_SGI_OS_TRUE='#'
4522 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4528 HAVE_IRIX_OS_FALSE='#'
4530 HAVE_IRIX_OS_TRUE='#'
4533 cat >>confdefs.h <<\_ACEOF
4534 #define HAVE_IRIX_OS 1
4542 HAVE_IRIX_OS_FALSE='#'
4544 HAVE_IRIX_OS_TRUE='#'
4549 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4554 HAVE_DARWIN_OS_TRUE=
4555 HAVE_DARWIN_OS_FALSE='#'
4557 HAVE_DARWIN_OS_TRUE='#'
4558 HAVE_DARWIN_OS_FALSE=
4560 cat >>confdefs.h <<\_ACEOF
4561 #define HAVE_DARWIN_OS 1
4568 HAVE_DARWIN_OS_TRUE=
4569 HAVE_DARWIN_OS_FALSE='#'
4571 HAVE_DARWIN_OS_TRUE='#'
4572 HAVE_DARWIN_OS_FALSE=
4577 # -----------------------------------------------------------
4578 # ----------------------------------------------------------
4579 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4580 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4581 if test "x$DISTNAME" != "x"
4583 echo "distname set to $DISTNAME"
4584 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4587 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4590 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4593 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4596 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4599 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4602 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4605 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4608 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4611 elif test -f /etc/SuSE-release
4614 elif test -d /etc/SuSEconfig
4617 elif test -f /etc/mandrake-release
4620 elif test -f /etc/whitebox-release
4623 elif test -f /etc/redhat-release
4626 elif test -f /etc/gentoo-release
4629 elif test -f /etc/debian_version
4632 elif test -f /etc/slackware-version
4635 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4638 elif test -f /etc/engarde-version
4641 elif test "$CYGWIN" = yes
4644 cat >>confdefs.h <<\_ACEOF
4645 #define HAVE_CYGWIN 1
4651 echo "$as_me:$LINENO: result: done" >&5
4652 echo "${ECHO_T}done" >&6
4655 # -----------------------------------------------------------
4656 # ----------------------------------------------------------
4661 INSIDE_GNOME_COMMON_TRUE=
4662 INSIDE_GNOME_COMMON_FALSE='#'
4664 INSIDE_GNOME_COMMON_TRUE='#'
4665 INSIDE_GNOME_COMMON_FALSE=
4668 test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
4670 for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
4673 # ------------------------------------------------------------------
4674 # If the user has not set --prefix, we set our default to nothing.
4675 # In this case, if the user has not set --sysconfdir, we set it
4676 # to the package default of /etc/bacula. If either --prefix or
4677 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
4678 # ------------------------------------------------------------------
4679 if test x${prefix} = xNONE ; then
4680 if test `eval echo ${sysconfdir}` = NONE/etc ; then
4681 sysconfdir=/etc/bacula
4685 sysconfdir=`eval echo ${sysconfdir}`
4687 # -------------------------------------------------------------------------
4688 # If the user has not set --exec-prefix, we default to ${prefix}
4689 # -------------------------------------------------------------------------
4690 if test x${exec_prefix} = xNONE ; then
4691 exec_prefix=${prefix}
4694 # ------------------------------------------------------------------
4695 # If the user has not set --sbindir, we set our default as /sbin
4696 # ------------------------------------------------------------------
4697 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4698 sbindir=${exec_prefix}/sbin
4700 sbindir=`eval echo ${sbindir}`
4702 # ------------------------------------------------------------------
4703 # All list of languages for which a translation exist. Each
4704 # language is separated by a space.
4705 # ------------------------------------------------------------------
4708 for ac_prog in msgfmt
4710 # Extract the first word of "$ac_prog", so it can be a program name with args.
4711 set dummy $ac_prog; ac_word=$2
4712 echo "$as_me:$LINENO: checking for $ac_word" >&5
4713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4714 if test "${ac_cv_path_MSGFMT+set}" = set; then
4715 echo $ECHO_N "(cached) $ECHO_C" >&6
4719 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4726 test -z "$as_dir" && as_dir=.
4727 for ac_exec_ext in '' $ac_executable_extensions; do
4728 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4729 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4739 MSGFMT=$ac_cv_path_MSGFMT
4741 if test -n "$MSGFMT"; then
4742 echo "$as_me:$LINENO: result: $MSGFMT" >&5
4743 echo "${ECHO_T}$MSGFMT" >&6
4745 echo "$as_me:$LINENO: result: no" >&5
4746 echo "${ECHO_T}no" >&6
4749 test -n "$MSGFMT" && break
4751 test -n "$MSGFMT" || MSGFMT="no"
4753 if test "$MSGFMT" = "no"
4755 echo 'msgfmt program not found, disabling NLS !'
4757 USE_INCLUDED_LIBINTL=no
4766 support_postgresql=no
4767 support_smartalloc=yes
4768 support_readline=yes
4771 support_wx_console=no
4773 support_static_tools=no
4774 support_static_fd=no
4775 support_static_sd=no
4776 support_static_dir=no
4777 support_static_cons=no
4779 build_client_only=no
4785 # -------------------------------------------
4786 # gnome (default off)
4787 # -------------------------------------------
4788 # Check whether --enable-gnome or --disable-gnome was given.
4789 if test "${enable_gnome+set}" = set; then
4790 enableval="$enable_gnome"
4791 if test x$enableval = xyes; then
4797 if test x$support_gnome = xyes; then
4798 abc=`$PKGCONFIG --exists libgnomeui-2.0`
4800 if test $pkg = 0; then
4801 GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
4802 GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4803 GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
4804 GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4809 GNOME_DIR=src/gnome2-console
4810 gnome_version="Version 2.x"
4823 # Check whether --with-gnome-includes or --without-gnome-includes was given.
4824 if test "${with_gnome_includes+set}" = set; then
4825 withval="$with_gnome_includes"
4827 CFLAGS="$CFLAGS -I$withval"
4832 # Check whether --with-gnome-libs or --without-gnome-libs was given.
4833 if test "${with_gnome_libs+set}" = set; then
4834 withval="$with_gnome_libs"
4836 LDFLAGS="$LDFLAGS -L$withval"
4837 gnome_prefix=$withval
4842 # Check whether --with-gnome or --without-gnome was given.
4843 if test "${with_gnome+set}" = set; then
4844 withval="$with_gnome"
4845 if test x$withval = xyes; then
4849 if test "x$withval" = xno; then
4853 LDFLAGS="$LDFLAGS -L$withval/lib"
4854 CFLAGS="$CFLAGS -I$withval/include"
4855 gnome_prefix=$withval/lib
4862 if test "x$want_gnome" = xyes; then
4864 # Extract the first word of "gnome-config", so it can be a program name with args.
4865 set dummy gnome-config; ac_word=$2
4866 echo "$as_me:$LINENO: checking for $ac_word" >&5
4867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4868 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
4869 echo $ECHO_N "(cached) $ECHO_C" >&6
4871 case $GNOME_CONFIG in
4873 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
4876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4880 test -z "$as_dir" && as_dir=.
4881 for ac_exec_ext in '' $ac_executable_extensions; do
4882 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4883 ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4890 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
4894 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
4896 if test -n "$GNOME_CONFIG"; then
4897 echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
4898 echo "${ECHO_T}$GNOME_CONFIG" >&6
4900 echo "$as_me:$LINENO: result: no" >&5
4901 echo "${ECHO_T}no" >&6
4904 if test "$GNOME_CONFIG" = "no"; then
4905 no_gnome_config="yes"
4907 echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
4908 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
4909 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
4910 echo "$as_me:$LINENO: result: yes" >&5
4911 echo "${ECHO_T}yes" >&6
4914 # Extract the first word of "orbit-config", so it can be a program name with args.
4915 set dummy orbit-config; ac_word=$2
4916 echo "$as_me:$LINENO: checking for $ac_word" >&5
4917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4918 if test "${ac_cv_path_ORBIT_CONFIG+set}" = set; then
4919 echo $ECHO_N "(cached) $ECHO_C" >&6
4921 case $ORBIT_CONFIG in
4923 ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
4926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4930 test -z "$as_dir" && as_dir=.
4931 for ac_exec_ext in '' $ac_executable_extensions; do
4932 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4933 ac_cv_path_ORBIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4940 test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
4944 ORBIT_CONFIG=$ac_cv_path_ORBIT_CONFIG
4946 if test -n "$ORBIT_CONFIG"; then
4947 echo "$as_me:$LINENO: result: $ORBIT_CONFIG" >&5
4948 echo "${ECHO_T}$ORBIT_CONFIG" >&6
4950 echo "$as_me:$LINENO: result: no" >&5
4951 echo "${ECHO_T}no" >&6
4954 # Extract the first word of "orbit-idl", so it can be a program name with args.
4955 set dummy orbit-idl; ac_word=$2
4956 echo "$as_me:$LINENO: checking for $ac_word" >&5
4957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4958 if test "${ac_cv_path_ORBIT_IDL+set}" = set; then
4959 echo $ECHO_N "(cached) $ECHO_C" >&6
4963 ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
4966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4970 test -z "$as_dir" && as_dir=.
4971 for ac_exec_ext in '' $ac_executable_extensions; do
4972 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4973 ac_cv_path_ORBIT_IDL="$as_dir/$ac_word$ac_exec_ext"
4974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4980 test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
4984 ORBIT_IDL=$ac_cv_path_ORBIT_IDL
4986 if test -n "$ORBIT_IDL"; then
4987 echo "$as_me:$LINENO: result: $ORBIT_IDL" >&5
4988 echo "${ECHO_T}$ORBIT_IDL" >&6
4990 echo "$as_me:$LINENO: result: no" >&5
4991 echo "${ECHO_T}no" >&6
4994 echo "$as_me:$LINENO: checking for working ORBit environment" >&5
4995 echo $ECHO_N "checking for working ORBit environment... $ECHO_C" >&6
4996 if test "${gnome_cv_orbit_found+set}" = set; then
4997 echo $ECHO_N "(cached) $ECHO_C" >&6
5000 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
5001 gnome_cv_orbit_found=no
5003 gnome_cv_orbit_found=yes
5007 echo "$as_me:$LINENO: result: $gnome_cv_orbit_found" >&5
5008 echo "${ECHO_T}$gnome_cv_orbit_found" >&6
5011 if test x$gnome_cv_orbit_found = xyes; then
5013 HAVE_ORBIT_FALSE='#'
5018 if test x$gnome_cv_orbit_found = xyes; then
5020 ORBIT_CFLAGS=`orbit-config --cflags client server`
5021 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
5025 if test xfail = xfailure; then
5026 { { echo "$as_me:$LINENO: error: ORBit not installed or installation problem" >&5
5027 echo "$as_me: error: ORBit not installed or installation problem" >&2;}
5028 { (exit 1); exit 1; }; }
5032 echo "$as_me:$LINENO: checking for gnorba libraries" >&5
5033 echo $ECHO_N "checking for gnorba libraries... $ECHO_C" >&6
5034 if test "${gnome_cv_gnorba_found+set}" = set; then
5035 echo $ECHO_N "(cached) $ECHO_C" >&6
5038 gnome_cv_gnorba_found=no
5039 if test x$gnome_cv_orbit_found = xyes; then
5040 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
5041 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
5042 if test -n "$GNORBA_LIBS"; then
5043 gnome_cv_gnorba_found=yes
5048 echo "$as_me:$LINENO: result: $gnome_cv_gnorba_found" >&5
5049 echo "${ECHO_T}$gnome_cv_gnorba_found" >&6
5052 if test x$gnome_cv_gnorba_found = xyes; then
5054 HAVE_GNORBA_FALSE='#'
5056 HAVE_GNORBA_TRUE='#'
5059 if test x$gnome_cv_orbit_found = xyes; then
5061 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
5062 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
5066 if test xfail = xfailure; then
5067 { { echo "$as_me:$LINENO: error: gnorba library not installed or installation problem" >&5
5068 echo "$as_me: error: gnorba library not installed or installation problem" >&2;}
5069 { (exit 1); exit 1; }; }
5073 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
5074 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
5075 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
5076 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
5077 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
5078 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
5079 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
5082 echo "$as_me:$LINENO: result: no" >&5
5083 echo "${ECHO_T}no" >&6
5084 no_gnome_config="yes"
5088 if test x$exec_prefix = xNONE; then
5089 if test x$prefix = xNONE; then
5090 gnome_prefix=$ac_default_prefix/lib
5092 gnome_prefix=$prefix/lib
5095 gnome_prefix=`eval echo \`echo $libdir\``
5098 if test "$no_gnome_config" = "yes"; then
5099 echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
5100 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
5101 if test -f $gnome_prefix/gnomeConf.sh; then
5102 echo "$as_me:$LINENO: result: found" >&5
5103 echo "${ECHO_T}found" >&6
5104 echo "loading gnome configuration from" \
5105 "$gnome_prefix/gnomeConf.sh"
5106 . $gnome_prefix/gnomeConf.sh
5109 echo "$as_me:$LINENO: result: not found" >&5
5110 echo "${ECHO_T}not found" >&6
5111 if test xfail = xfail; then
5112 { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
5113 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
5114 { (exit 1); exit 1; }; }
5123 echo "$as_me:$LINENO: checking extra library \"$i\"" >&5
5124 echo $ECHO_N "checking extra library \"$i\"... $ECHO_C" >&6
5128 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
5129 echo "$as_me:$LINENO: result: $GNOME_APPLETS_LIBS" >&5
5130 echo "${ECHO_T}$GNOME_APPLETS_LIBS" >&6;;
5133 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
5134 echo "$as_me:$LINENO: result: $GNOME_DOCKLETS_LIBS" >&5
5135 echo "${ECHO_T}$GNOME_DOCKLETS_LIBS" >&6;;
5138 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
5139 echo "$as_me:$LINENO: result: $GNOME_CAPPLET_LIBS" >&5
5140 echo "${ECHO_T}$GNOME_CAPPLET_LIBS" >&6;;
5142 echo "$as_me:$LINENO: result: unknown library" >&5
5143 echo "${ECHO_T}unknown library" >&6
5145 EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
5146 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
5151 GNOME_DIR=src/gnome-console
5152 gnome_version="Version 1.4"
5158 # -------------------------------------------
5159 # wx-console (default off)
5160 # -------------------------------------------
5161 # Check whether --enable-wx-console or --disable-wx-console was given.
5162 if test "${enable_wx_console+set}" = set; then
5163 enableval="$enable_wx_console"
5164 if test x$enableval = xyes; then
5165 support_wx_console=yes
5170 if test x$support_wx_console = xyes; then
5171 abc=`$WXCONFIG --cppflags`
5173 if test $pkg = 0; then
5174 WXCONS_CPPFLAGS=`$WXCONFIG --cppflags`
5175 WXCONS_LDFLAGS=`$WXCONFIG --libs`
5178 WX_DIR=src/wx-console
5181 echo "wx-config program not found. wx-console disabled."
5183 support_wx_console=no
5189 # -------------------------------------------
5190 # tray-monitor (default off)
5191 # -------------------------------------------
5192 # Check whether --enable-tray-monitor or --disable-tray-monitor was given.
5193 if test "${enable_tray_monitor+set}" = set; then
5194 enableval="$enable_tray_monitor"
5195 if test x$enableval = xyes; then
5196 support_tray_monitor=yes
5201 if test x$support_tray_monitor = xyes; then
5202 abc=`$PKGCONFIG --exists gtk+-2.0`
5204 if test $pkg = 0; then
5205 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
5206 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
5209 TRAY_MONITOR_DIR=src/tray-monitor
5210 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
5212 if test $pkg = 0; then
5213 cat >>confdefs.h <<\_ACEOF
5214 #define HAVE_GTK_2_4 1
5222 # -------------------------------------------
5223 # smartalloc (default off)
5224 # -------------------------------------------
5225 # Check whether --enable-smartalloc or --disable-smartalloc was given.
5226 if test "${enable_smartalloc+set}" = set; then
5227 enableval="$enable_smartalloc"
5228 if test x$enableval = xno; then
5229 support_smartalloc=no
5233 if test x$support_smartalloc = xyes; then
5234 cat >>confdefs.h <<\_ACEOF
5235 #define SMARTALLOC 1
5240 # -------------------------------------------
5241 # static-tools (default off)
5242 # -------------------------------------------
5243 # Check whether --enable-static-tools or --disable-static-tools was given.
5244 if test "${enable_static_tools+set}" = set; then
5245 enableval="$enable_static_tools"
5246 if test x$enableval = xyes; then
5247 support_static_tools=yes
5252 if test x$support_static_tools = xyes; then
5253 TTOOL_LDFLAGS="-static"
5257 # -------------------------------------------
5258 # static-fd (default off)
5259 # -------------------------------------------
5260 # Check whether --enable-static-fd or --disable-static-fd was given.
5261 if test "${enable_static_fd+set}" = set; then
5262 enableval="$enable_static_fd"
5263 if test x$enableval = xyes; then
5264 support_static_fd=yes
5269 if test x$support_static_fd = xyes; then
5270 STATIC_FD="static-bacula-fd"
5274 # -------------------------------------------
5275 # static-sd (default off)
5276 # -------------------------------------------
5277 # Check whether --enable-static-sd or --disable-static-sd was given.
5278 if test "${enable_static_sd+set}" = set; then
5279 enableval="$enable_static_sd"
5280 if test x$enableval = xyes; then
5281 support_static_sd=yes
5286 if test x$support_static_sd = xyes; then
5287 STATIC_SD="static-bacula-sd"
5291 # -------------------------------------------
5292 # static-dir (default off)
5293 # -------------------------------------------
5294 # Check whether --enable-static-dir or --disable-static-dir was given.
5295 if test "${enable_static_dir+set}" = set; then
5296 enableval="$enable_static_dir"
5297 if test x$enableval = xyes; then
5298 support_static_dir=yes
5303 if test x$support_static_dir = xyes; then
5304 STATIC_DIR="static-bacula-dir"
5308 # -------------------------------------------
5309 # static-cons (default off)
5310 # -------------------------------------------
5311 # Check whether --enable-static-cons or --disable-static-cons was given.
5312 if test "${enable_static_cons+set}" = set; then
5313 enableval="$enable_static_cons"
5314 if test x$enableval = xyes; then
5315 support_static_cons=yes
5322 if test x$support_static_cons = xyes; then
5323 STATIC_CONS="static-bconsole"
5324 STATIC_GNOME_CONS="static-gnome-console"
5325 STATIC_WX_CONS="static-wx-console"
5331 # -------------------------------------------
5332 # client_only (default off)
5333 # -------------------------------------------
5334 # Check whether --enable-client-only or --disable-client-only was given.
5335 if test "${enable_client_only+set}" = set; then
5336 enableval="$enable_client_only"
5337 if test x$enableval = xyes; then
5338 build_client_only=yes
5343 if test x$build_client_only = xno; then
5350 # ---------------------------------------------------
5351 # Check for conio (Bacula readline substitute)(
5352 # ---------------------------------------------------
5353 # this allows you to turn it completely off
5354 # Check whether --enable-conio or --disable-conio was given.
5355 if test "${enable_conio+set}" = set; then
5356 enableval="$enable_conio"
5357 if test x$enableval = xno; then
5363 if test x$support_conio = xyes; then
5364 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5365 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5366 if test "${ac_cv_header_stdc+set}" = set; then
5367 echo $ECHO_N "(cached) $ECHO_C" >&6
5369 cat >conftest.$ac_ext <<_ACEOF
5372 cat confdefs.h >>conftest.$ac_ext
5373 cat >>conftest.$ac_ext <<_ACEOF
5374 /* end confdefs.h. */
5388 rm -f conftest.$ac_objext
5389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5390 (eval $ac_compile) 2>conftest.er1
5392 grep -v '^ *+' conftest.er1 >conftest.err
5394 cat conftest.err >&5
5395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396 (exit $ac_status); } &&
5397 { ac_try='test -z "$ac_c_werror_flag"
5398 || test ! -s conftest.err'
5399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403 (exit $ac_status); }; } &&
5404 { ac_try='test -s conftest.$ac_objext'
5405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5409 (exit $ac_status); }; }; then
5410 ac_cv_header_stdc=yes
5412 echo "$as_me: failed program was:" >&5
5413 sed 's/^/| /' conftest.$ac_ext >&5
5415 ac_cv_header_stdc=no
5417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5419 if test $ac_cv_header_stdc = yes; then
5420 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5421 cat >conftest.$ac_ext <<_ACEOF
5424 cat confdefs.h >>conftest.$ac_ext
5425 cat >>conftest.$ac_ext <<_ACEOF
5426 /* end confdefs.h. */
5430 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5431 $EGREP "memchr" >/dev/null 2>&1; then
5434 ac_cv_header_stdc=no
5440 if test $ac_cv_header_stdc = yes; then
5441 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5442 cat >conftest.$ac_ext <<_ACEOF
5445 cat confdefs.h >>conftest.$ac_ext
5446 cat >>conftest.$ac_ext <<_ACEOF
5447 /* end confdefs.h. */
5451 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5452 $EGREP "free" >/dev/null 2>&1; then
5455 ac_cv_header_stdc=no
5461 if test $ac_cv_header_stdc = yes; then
5462 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5463 if test "$cross_compiling" = yes; then
5466 cat >conftest.$ac_ext <<_ACEOF
5469 cat confdefs.h >>conftest.$ac_ext
5470 cat >>conftest.$ac_ext <<_ACEOF
5471 /* end confdefs.h. */
5473 #if ((' ' & 0x0FF) == 0x020)
5474 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5475 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5477 # define ISLOWER(c) \
5478 (('a' <= (c) && (c) <= 'i') \
5479 || ('j' <= (c) && (c) <= 'r') \
5480 || ('s' <= (c) && (c) <= 'z'))
5481 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5484 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5489 for (i = 0; i < 256; i++)
5490 if (XOR (islower (i), ISLOWER (i))
5491 || toupper (i) != TOUPPER (i))
5496 rm -f conftest$ac_exeext
5497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5498 (eval $ac_link) 2>&5
5500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5501 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5506 (exit $ac_status); }; }; then
5509 echo "$as_me: program exited with status $ac_status" >&5
5510 echo "$as_me: failed program was:" >&5
5511 sed 's/^/| /' conftest.$ac_ext >&5
5514 ac_cv_header_stdc=no
5516 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5520 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5521 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5522 if test $ac_cv_header_stdc = yes; then
5524 cat >>confdefs.h <<\_ACEOF
5525 #define STDC_HEADERS 1
5530 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5540 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5541 inttypes.h stdint.h unistd.h
5543 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5544 echo "$as_me:$LINENO: checking for $ac_header" >&5
5545 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5546 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5547 echo $ECHO_N "(cached) $ECHO_C" >&6
5549 cat >conftest.$ac_ext <<_ACEOF
5552 cat confdefs.h >>conftest.$ac_ext
5553 cat >>conftest.$ac_ext <<_ACEOF
5554 /* end confdefs.h. */
5555 $ac_includes_default
5557 #include <$ac_header>
5559 rm -f conftest.$ac_objext
5560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5561 (eval $ac_compile) 2>conftest.er1
5563 grep -v '^ *+' conftest.er1 >conftest.err
5565 cat conftest.err >&5
5566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5567 (exit $ac_status); } &&
5568 { ac_try='test -z "$ac_c_werror_flag"
5569 || test ! -s conftest.err'
5570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5574 (exit $ac_status); }; } &&
5575 { ac_try='test -s conftest.$ac_objext'
5576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580 (exit $ac_status); }; }; then
5581 eval "$as_ac_Header=yes"
5583 echo "$as_me: failed program was:" >&5
5584 sed 's/^/| /' conftest.$ac_ext >&5
5586 eval "$as_ac_Header=no"
5588 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5590 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5591 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5592 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5593 cat >>confdefs.h <<_ACEOF
5594 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5602 if test "${ac_cv_header_termcap_h+set}" = set; then
5603 echo "$as_me:$LINENO: checking for termcap.h" >&5
5604 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5605 if test "${ac_cv_header_termcap_h+set}" = set; then
5606 echo $ECHO_N "(cached) $ECHO_C" >&6
5608 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5609 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5611 # Is the header compilable?
5612 echo "$as_me:$LINENO: checking termcap.h usability" >&5
5613 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
5614 cat >conftest.$ac_ext <<_ACEOF
5617 cat confdefs.h >>conftest.$ac_ext
5618 cat >>conftest.$ac_ext <<_ACEOF
5619 /* end confdefs.h. */
5620 $ac_includes_default
5621 #include <termcap.h>
5623 rm -f conftest.$ac_objext
5624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5625 (eval $ac_compile) 2>conftest.er1
5627 grep -v '^ *+' conftest.er1 >conftest.err
5629 cat conftest.err >&5
5630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5631 (exit $ac_status); } &&
5632 { ac_try='test -z "$ac_c_werror_flag"
5633 || test ! -s conftest.err'
5634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638 (exit $ac_status); }; } &&
5639 { ac_try='test -s conftest.$ac_objext'
5640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5644 (exit $ac_status); }; }; then
5645 ac_header_compiler=yes
5647 echo "$as_me: failed program was:" >&5
5648 sed 's/^/| /' conftest.$ac_ext >&5
5650 ac_header_compiler=no
5652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5653 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5654 echo "${ECHO_T}$ac_header_compiler" >&6
5656 # Is the header present?
5657 echo "$as_me:$LINENO: checking termcap.h presence" >&5
5658 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
5659 cat >conftest.$ac_ext <<_ACEOF
5662 cat confdefs.h >>conftest.$ac_ext
5663 cat >>conftest.$ac_ext <<_ACEOF
5664 /* end confdefs.h. */
5665 #include <termcap.h>
5667 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5668 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5670 grep -v '^ *+' conftest.er1 >conftest.err
5672 cat conftest.err >&5
5673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674 (exit $ac_status); } >/dev/null; then
5675 if test -s conftest.err; then
5676 ac_cpp_err=$ac_c_preproc_warn_flag
5677 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5684 if test -z "$ac_cpp_err"; then
5685 ac_header_preproc=yes
5687 echo "$as_me: failed program was:" >&5
5688 sed 's/^/| /' conftest.$ac_ext >&5
5690 ac_header_preproc=no
5692 rm -f conftest.err conftest.$ac_ext
5693 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5694 echo "${ECHO_T}$ac_header_preproc" >&6
5696 # So? What about this header?
5697 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5699 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
5700 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5701 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
5702 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
5703 ac_header_preproc=yes
5706 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
5707 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
5708 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
5709 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
5710 { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
5711 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
5712 { echo "$as_me:$LINENO: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&5
5713 echo "$as_me: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
5714 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5715 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5716 { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
5717 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
5720 ## ------------------------------------------ ##
5721 ## Report this to the AC_PACKAGE_NAME lists. ##
5722 ## ------------------------------------------ ##
5725 sed "s/^/$as_me: WARNING: /" >&2
5728 echo "$as_me:$LINENO: checking for termcap.h" >&5
5729 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5730 if test "${ac_cv_header_termcap_h+set}" = set; then
5731 echo $ECHO_N "(cached) $ECHO_C" >&6
5733 ac_cv_header_termcap_h=$ac_header_preproc
5735 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5736 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5739 if test $ac_cv_header_termcap_h = yes; then
5740 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5741 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
5742 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5743 echo $ECHO_N "(cached) $ECHO_C" >&6
5745 ac_check_lib_save_LIBS=$LIBS
5746 LIBS="-ltermcap $LIBS"
5747 cat >conftest.$ac_ext <<_ACEOF
5750 cat confdefs.h >>conftest.$ac_ext
5751 cat >>conftest.$ac_ext <<_ACEOF
5752 /* end confdefs.h. */
5754 /* Override any gcc2 internal prototype to avoid an error. */
5758 /* We use char because int might match the return type of a gcc2
5759 builtin and then its argument prototype would still apply. */
5769 rm -f conftest.$ac_objext conftest$ac_exeext
5770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5771 (eval $ac_link) 2>conftest.er1
5773 grep -v '^ *+' conftest.er1 >conftest.err
5775 cat conftest.err >&5
5776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5777 (exit $ac_status); } &&
5778 { ac_try='test -z "$ac_c_werror_flag"
5779 || test ! -s conftest.err'
5780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784 (exit $ac_status); }; } &&
5785 { ac_try='test -s conftest$ac_exeext'
5786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790 (exit $ac_status); }; }; then
5791 ac_cv_lib_termcap_tgetent=yes
5793 echo "$as_me: failed program was:" >&5
5794 sed 's/^/| /' conftest.$ac_ext >&5
5796 ac_cv_lib_termcap_tgetent=no
5798 rm -f conftest.err conftest.$ac_objext \
5799 conftest$ac_exeext conftest.$ac_ext
5800 LIBS=$ac_check_lib_save_LIBS
5802 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5803 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
5804 if test $ac_cv_lib_termcap_tgetent = yes; then
5805 CONS_LIBS="-ltermcap"
5811 cat >>confdefs.h <<\_ACEOF
5812 #define HAVE_CONIO 1
5817 echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
5818 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
5819 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
5820 echo $ECHO_N "(cached) $ECHO_C" >&6
5822 ac_check_lib_save_LIBS=$LIBS
5823 LIBS="-lncurses $LIBS"
5824 cat >conftest.$ac_ext <<_ACEOF
5827 cat confdefs.h >>conftest.$ac_ext
5828 cat >>conftest.$ac_ext <<_ACEOF
5829 /* end confdefs.h. */
5831 /* Override any gcc2 internal prototype to avoid an error. */
5835 /* We use char because int might match the return type of a gcc2
5836 builtin and then its argument prototype would still apply. */
5846 rm -f conftest.$ac_objext conftest$ac_exeext
5847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5848 (eval $ac_link) 2>conftest.er1
5850 grep -v '^ *+' conftest.er1 >conftest.err
5852 cat conftest.err >&5
5853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5854 (exit $ac_status); } &&
5855 { ac_try='test -z "$ac_c_werror_flag"
5856 || test ! -s conftest.err'
5857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861 (exit $ac_status); }; } &&
5862 { ac_try='test -s conftest$ac_exeext'
5863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867 (exit $ac_status); }; }; then
5868 ac_cv_lib_ncurses_tgetent=yes
5870 echo "$as_me: failed program was:" >&5
5871 sed 's/^/| /' conftest.$ac_ext >&5
5873 ac_cv_lib_ncurses_tgetent=no
5875 rm -f conftest.err conftest.$ac_objext \
5876 conftest$ac_exeext conftest.$ac_ext
5877 LIBS=$ac_check_lib_save_LIBS
5879 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
5880 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
5881 if test $ac_cv_lib_ncurses_tgetent = yes; then
5882 CONS_LIBS="-lncurses"
5888 cat >>confdefs.h <<\_ACEOF
5889 #define HAVE_CONIO 1
5902 for ac_header in curses.h
5904 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5905 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5906 echo "$as_me:$LINENO: checking for $ac_header" >&5
5907 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5908 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5909 echo $ECHO_N "(cached) $ECHO_C" >&6
5911 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5912 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5914 # Is the header compilable?
5915 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5916 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5917 cat >conftest.$ac_ext <<_ACEOF
5920 cat confdefs.h >>conftest.$ac_ext
5921 cat >>conftest.$ac_ext <<_ACEOF
5922 /* end confdefs.h. */
5923 $ac_includes_default
5924 #include <$ac_header>
5926 rm -f conftest.$ac_objext
5927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5928 (eval $ac_compile) 2>conftest.er1
5930 grep -v '^ *+' conftest.er1 >conftest.err
5932 cat conftest.err >&5
5933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934 (exit $ac_status); } &&
5935 { ac_try='test -z "$ac_c_werror_flag"
5936 || test ! -s conftest.err'
5937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941 (exit $ac_status); }; } &&
5942 { ac_try='test -s conftest.$ac_objext'
5943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947 (exit $ac_status); }; }; then
5948 ac_header_compiler=yes
5950 echo "$as_me: failed program was:" >&5
5951 sed 's/^/| /' conftest.$ac_ext >&5
5953 ac_header_compiler=no
5955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5956 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5957 echo "${ECHO_T}$ac_header_compiler" >&6
5959 # Is the header present?
5960 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5961 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5962 cat >conftest.$ac_ext <<_ACEOF
5965 cat confdefs.h >>conftest.$ac_ext
5966 cat >>conftest.$ac_ext <<_ACEOF
5967 /* end confdefs.h. */
5968 #include <$ac_header>
5970 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5971 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5973 grep -v '^ *+' conftest.er1 >conftest.err
5975 cat conftest.err >&5
5976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977 (exit $ac_status); } >/dev/null; then
5978 if test -s conftest.err; then
5979 ac_cpp_err=$ac_c_preproc_warn_flag
5980 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5987 if test -z "$ac_cpp_err"; then
5988 ac_header_preproc=yes
5990 echo "$as_me: failed program was:" >&5
5991 sed 's/^/| /' conftest.$ac_ext >&5
5993 ac_header_preproc=no
5995 rm -f conftest.err conftest.$ac_ext
5996 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5997 echo "${ECHO_T}$ac_header_preproc" >&6
5999 # So? What about this header?
6000 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6002 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6003 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6004 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6005 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6006 ac_header_preproc=yes
6009 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6010 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6011 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6012 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6013 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6014 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6015 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6016 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6017 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6018 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6019 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6020 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6023 ## ------------------------------------------ ##
6024 ## Report this to the AC_PACKAGE_NAME lists. ##
6025 ## ------------------------------------------ ##
6028 sed "s/^/$as_me: WARNING: /" >&2
6031 echo "$as_me:$LINENO: checking for $ac_header" >&5
6032 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6033 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6034 echo $ECHO_N "(cached) $ECHO_C" >&6
6036 eval "$as_ac_Header=\$ac_header_preproc"
6038 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6039 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6042 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6043 cat >>confdefs.h <<_ACEOF
6044 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6051 echo "$as_me:$LINENO: checking for term.h" >&5
6052 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
6053 if test "${ac_cv_header_term_h+set}" = set; then
6054 echo $ECHO_N "(cached) $ECHO_C" >&6
6056 cat >conftest.$ac_ext <<_ACEOF
6059 cat confdefs.h >>conftest.$ac_ext
6060 cat >>conftest.$ac_ext <<_ACEOF
6061 /* end confdefs.h. */
6069 rm -f conftest.$ac_objext
6070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6071 (eval $ac_compile) 2>conftest.er1
6073 grep -v '^ *+' conftest.er1 >conftest.err
6075 cat conftest.err >&5
6076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077 (exit $ac_status); } &&
6078 { ac_try='test -z "$ac_c_werror_flag"
6079 || test ! -s conftest.err'
6080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084 (exit $ac_status); }; } &&
6085 { ac_try='test -s conftest.$ac_objext'
6086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090 (exit $ac_status); }; }; then
6091 ac_cv_header_term_h=yes
6093 echo "$as_me: failed program was:" >&5
6094 sed 's/^/| /' conftest.$ac_ext >&5
6096 ac_cv_header_term_h=no
6098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6100 echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
6101 echo "${ECHO_T}$ac_cv_header_term_h" >&6
6102 if test $ac_cv_header_term_h = yes; then
6103 echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
6104 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
6105 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
6106 echo $ECHO_N "(cached) $ECHO_C" >&6
6108 ac_check_lib_save_LIBS=$LIBS
6109 LIBS="-lcurses $LIBS"
6110 cat >conftest.$ac_ext <<_ACEOF
6113 cat confdefs.h >>conftest.$ac_ext
6114 cat >>conftest.$ac_ext <<_ACEOF
6115 /* end confdefs.h. */
6117 /* Override any gcc2 internal prototype to avoid an error. */
6121 /* We use char because int might match the return type of a gcc2
6122 builtin and then its argument prototype would still apply. */
6132 rm -f conftest.$ac_objext conftest$ac_exeext
6133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6134 (eval $ac_link) 2>conftest.er1
6136 grep -v '^ *+' conftest.er1 >conftest.err
6138 cat conftest.err >&5
6139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140 (exit $ac_status); } &&
6141 { ac_try='test -z "$ac_c_werror_flag"
6142 || test ! -s conftest.err'
6143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147 (exit $ac_status); }; } &&
6148 { ac_try='test -s conftest$ac_exeext'
6149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153 (exit $ac_status); }; }; then
6154 ac_cv_lib_curses_tgetent=yes
6156 echo "$as_me: failed program was:" >&5
6157 sed 's/^/| /' conftest.$ac_ext >&5
6159 ac_cv_lib_curses_tgetent=no
6161 rm -f conftest.err conftest.$ac_objext \
6162 conftest$ac_exeext conftest.$ac_ext
6163 LIBS=$ac_check_lib_save_LIBS
6165 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
6166 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
6167 if test $ac_cv_lib_curses_tgetent = yes; then
6168 CONS_LIBS="-lcurses"
6174 cat >>confdefs.h <<\_ACEOF
6175 #define HAVE_CONIO 1
6183 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
6194 # ---------------------------------------------------
6195 # Check for readline support/directory (default off)
6196 # ---------------------------------------------------
6197 # this allows you to turn it completely off
6198 # Check whether --enable-readline or --disable-readline was given.
6199 if test "${enable_readline+set}" = set; then
6200 enableval="$enable_readline"
6201 if test x$enableval = xno; then
6208 if test x$support_readline = xyes; then
6210 # Check whether --with-readline or --without-readline was given.
6211 if test "${with_readline+set}" = set; then
6212 withval="$with_readline"
6214 case "$with_readline" in
6217 if test "$with_readline" != "yes"; then
6218 CONS_INC="-I${with_readline}"
6219 CONS_LDFLAGS="-L$with_readline"
6221 with_readline="/usr/include/readline"
6223 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
6224 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6225 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
6226 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
6227 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6228 echo $ECHO_N "(cached) $ECHO_C" >&6
6230 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6231 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6233 # Is the header compilable?
6234 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
6235 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
6236 cat >conftest.$ac_ext <<_ACEOF
6239 cat confdefs.h >>conftest.$ac_ext
6240 cat >>conftest.$ac_ext <<_ACEOF
6241 /* end confdefs.h. */
6242 $ac_includes_default
6243 #include <${with_readline}/readline.h>
6245 rm -f conftest.$ac_objext
6246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6247 (eval $ac_compile) 2>conftest.er1
6249 grep -v '^ *+' conftest.er1 >conftest.err
6251 cat conftest.err >&5
6252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253 (exit $ac_status); } &&
6254 { ac_try='test -z "$ac_c_werror_flag"
6255 || test ! -s conftest.err'
6256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260 (exit $ac_status); }; } &&
6261 { ac_try='test -s conftest.$ac_objext'
6262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266 (exit $ac_status); }; }; then
6267 ac_header_compiler=yes
6269 echo "$as_me: failed program was:" >&5
6270 sed 's/^/| /' conftest.$ac_ext >&5
6272 ac_header_compiler=no
6274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6275 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6276 echo "${ECHO_T}$ac_header_compiler" >&6
6278 # Is the header present?
6279 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
6280 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
6281 cat >conftest.$ac_ext <<_ACEOF
6284 cat confdefs.h >>conftest.$ac_ext
6285 cat >>conftest.$ac_ext <<_ACEOF
6286 /* end confdefs.h. */
6287 #include <${with_readline}/readline.h>
6289 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6290 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6292 grep -v '^ *+' conftest.er1 >conftest.err
6294 cat conftest.err >&5
6295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296 (exit $ac_status); } >/dev/null; then
6297 if test -s conftest.err; then
6298 ac_cpp_err=$ac_c_preproc_warn_flag
6299 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6306 if test -z "$ac_cpp_err"; then
6307 ac_header_preproc=yes
6309 echo "$as_me: failed program was:" >&5
6310 sed 's/^/| /' conftest.$ac_ext >&5
6312 ac_header_preproc=no
6314 rm -f conftest.err conftest.$ac_ext
6315 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6316 echo "${ECHO_T}$ac_header_preproc" >&6
6318 # So? What about this header?
6319 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6321 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6322 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6323 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
6324 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
6325 ac_header_preproc=yes
6328 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
6329 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
6330 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
6331 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
6332 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
6333 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
6334 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&5
6335 echo "$as_me: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
6336 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
6337 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
6338 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
6339 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
6342 ## ------------------------------------------ ##
6343 ## Report this to the AC_PACKAGE_NAME lists. ##
6344 ## ------------------------------------------ ##
6347 sed "s/^/$as_me: WARNING: /" >&2
6350 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
6351 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
6352 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6353 echo $ECHO_N "(cached) $ECHO_C" >&6
6355 eval "$as_ac_Header=\$ac_header_preproc"
6357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6358 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6361 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6362 cat >>confdefs.h <<\_ACEOF
6363 #define HAVE_READLINE 1
6366 CONS_LIBS="-lreadline -ltermcap"
6371 echo "readline.h not found. readline turned off ..."
6383 # check for standard readline library
6384 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6385 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
6386 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
6387 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6388 echo $ECHO_N "(cached) $ECHO_C" >&6
6390 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
6391 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
6393 # Is the header compilable?
6394 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
6395 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
6396 cat >conftest.$ac_ext <<_ACEOF
6399 cat confdefs.h >>conftest.$ac_ext
6400 cat >>conftest.$ac_ext <<_ACEOF
6401 /* end confdefs.h. */
6402 $ac_includes_default
6403 #include </usr/include/readline/readline.h>
6405 rm -f conftest.$ac_objext
6406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6407 (eval $ac_compile) 2>conftest.er1
6409 grep -v '^ *+' conftest.er1 >conftest.err
6411 cat conftest.err >&5
6412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413 (exit $ac_status); } &&
6414 { ac_try='test -z "$ac_c_werror_flag"
6415 || test ! -s conftest.err'
6416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420 (exit $ac_status); }; } &&
6421 { ac_try='test -s conftest.$ac_objext'
6422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426 (exit $ac_status); }; }; then
6427 ac_header_compiler=yes
6429 echo "$as_me: failed program was:" >&5
6430 sed 's/^/| /' conftest.$ac_ext >&5
6432 ac_header_compiler=no
6434 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6435 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6436 echo "${ECHO_T}$ac_header_compiler" >&6
6438 # Is the header present?
6439 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
6440 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
6441 cat >conftest.$ac_ext <<_ACEOF
6444 cat confdefs.h >>conftest.$ac_ext
6445 cat >>conftest.$ac_ext <<_ACEOF
6446 /* end confdefs.h. */
6447 #include </usr/include/readline/readline.h>
6449 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6450 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6452 grep -v '^ *+' conftest.er1 >conftest.err
6454 cat conftest.err >&5
6455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6456 (exit $ac_status); } >/dev/null; then
6457 if test -s conftest.err; then
6458 ac_cpp_err=$ac_c_preproc_warn_flag
6459 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6466 if test -z "$ac_cpp_err"; then
6467 ac_header_preproc=yes
6469 echo "$as_me: failed program was:" >&5
6470 sed 's/^/| /' conftest.$ac_ext >&5
6472 ac_header_preproc=no
6474 rm -f conftest.err conftest.$ac_ext
6475 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6476 echo "${ECHO_T}$ac_header_preproc" >&6
6478 # So? What about this header?
6479 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6481 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6482 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6483 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
6484 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
6485 ac_header_preproc=yes
6488 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
6489 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
6490 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
6491 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
6492 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
6493 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
6494 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
6495 echo "$as_me: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
6496 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
6497 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6498 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
6499 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
6502 ## ------------------------------------------ ##
6503 ## Report this to the AC_PACKAGE_NAME lists. ##
6504 ## ------------------------------------------ ##
6507 sed "s/^/$as_me: WARNING: /" >&2
6510 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
6511 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
6512 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6513 echo $ECHO_N "(cached) $ECHO_C" >&6
6515 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
6517 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
6518 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
6521 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
6522 cat >>confdefs.h <<\_ACEOF
6523 #define HAVE_READLINE 1
6527 CONS_INC="-I/usr/include/readline"
6528 CONS_LIBS="-lreadline -ltermcap"
6532 # Did not find standard library, so try Bacula's default
6533 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
6534 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6535 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
6536 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
6537 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6538 echo $ECHO_N "(cached) $ECHO_C" >&6
6540 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6541 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6543 # Is the header compilable?
6544 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
6545 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
6546 cat >conftest.$ac_ext <<_ACEOF
6549 cat confdefs.h >>conftest.$ac_ext
6550 cat >>conftest.$ac_ext <<_ACEOF
6551 /* end confdefs.h. */
6552 $ac_includes_default
6553 #include <${TOP_DIR}/depkgs/readline/readline.h>
6555 rm -f conftest.$ac_objext
6556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6557 (eval $ac_compile) 2>conftest.er1
6559 grep -v '^ *+' conftest.er1 >conftest.err
6561 cat conftest.err >&5
6562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563 (exit $ac_status); } &&
6564 { ac_try='test -z "$ac_c_werror_flag"
6565 || test ! -s conftest.err'
6566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6570 (exit $ac_status); }; } &&
6571 { ac_try='test -s conftest.$ac_objext'
6572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6576 (exit $ac_status); }; }; then
6577 ac_header_compiler=yes
6579 echo "$as_me: failed program was:" >&5
6580 sed 's/^/| /' conftest.$ac_ext >&5
6582 ac_header_compiler=no
6584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6585 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6586 echo "${ECHO_T}$ac_header_compiler" >&6
6588 # Is the header present?
6589 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
6590 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
6591 cat >conftest.$ac_ext <<_ACEOF
6594 cat confdefs.h >>conftest.$ac_ext
6595 cat >>conftest.$ac_ext <<_ACEOF
6596 /* end confdefs.h. */
6597 #include <${TOP_DIR}/depkgs/readline/readline.h>
6599 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6600 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6602 grep -v '^ *+' conftest.er1 >conftest.err
6604 cat conftest.err >&5
6605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606 (exit $ac_status); } >/dev/null; then
6607 if test -s conftest.err; then
6608 ac_cpp_err=$ac_c_preproc_warn_flag
6609 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6616 if test -z "$ac_cpp_err"; then
6617 ac_header_preproc=yes
6619 echo "$as_me: failed program was:" >&5
6620 sed 's/^/| /' conftest.$ac_ext >&5
6622 ac_header_preproc=no
6624 rm -f conftest.err conftest.$ac_ext
6625 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6626 echo "${ECHO_T}$ac_header_preproc" >&6
6628 # So? What about this header?
6629 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6631 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6632 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6633 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
6634 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
6635 ac_header_preproc=yes
6638 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
6639 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
6640 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
6641 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
6642 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
6643 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
6644 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
6645 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
6646 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
6647 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6648 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
6649 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
6652 ## ------------------------------------------ ##
6653 ## Report this to the AC_PACKAGE_NAME lists. ##
6654 ## ------------------------------------------ ##
6657 sed "s/^/$as_me: WARNING: /" >&2
6660 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
6661 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
6662 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6663 echo $ECHO_N "(cached) $ECHO_C" >&6
6665 eval "$as_ac_Header=\$ac_header_preproc"
6667 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6668 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6671 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6672 cat >>confdefs.h <<\_ACEOF
6673 #define HAVE_READLINE 1
6677 CONS_INC="-I${TOP_DIR}/depkgs/readline"
6678 CONS_LIBS="-lreadline -lhistory -ltermcap"
6679 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
6680 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
6684 echo "readline.h not found. readline turned off ..."
6710 # Minimal stuff for readline Makefile configuration
6713 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6714 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
6715 if test "${ac_cv_header_stat_broken+set}" = set; then
6716 echo $ECHO_N "(cached) $ECHO_C" >&6
6718 cat >conftest.$ac_ext <<_ACEOF
6721 cat confdefs.h >>conftest.$ac_ext
6722 cat >>conftest.$ac_ext <<_ACEOF
6723 /* end confdefs.h. */
6724 #include <sys/types.h>
6725 #include <sys/stat.h>
6727 #if defined(S_ISBLK) && defined(S_IFDIR)
6728 # if S_ISBLK (S_IFDIR)
6733 #if defined(S_ISBLK) && defined(S_IFCHR)
6734 # if S_ISBLK (S_IFCHR)
6739 #if defined(S_ISLNK) && defined(S_IFREG)
6740 # if S_ISLNK (S_IFREG)
6745 #if defined(S_ISSOCK) && defined(S_IFREG)
6746 # if S_ISSOCK (S_IFREG)
6752 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6753 $EGREP "You lose" >/dev/null 2>&1; then
6754 ac_cv_header_stat_broken=yes
6756 ac_cv_header_stat_broken=no
6761 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6762 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
6763 if test $ac_cv_header_stat_broken = yes; then
6765 cat >>confdefs.h <<\_ACEOF
6766 #define STAT_MACROS_BROKEN 1
6777 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6778 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6779 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6780 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6781 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6782 echo $ECHO_N "(cached) $ECHO_C" >&6
6784 cat >conftest.$ac_ext <<_ACEOF
6787 cat confdefs.h >>conftest.$ac_ext
6788 cat >>conftest.$ac_ext <<_ACEOF
6789 /* end confdefs.h. */
6790 #include <sys/types.h>
6802 rm -f conftest.$ac_objext
6803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6804 (eval $ac_compile) 2>conftest.er1
6806 grep -v '^ *+' conftest.er1 >conftest.err
6808 cat conftest.err >&5
6809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6810 (exit $ac_status); } &&
6811 { ac_try='test -z "$ac_c_werror_flag"
6812 || test ! -s conftest.err'
6813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6817 (exit $ac_status); }; } &&
6818 { ac_try='test -s conftest.$ac_objext'
6819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6823 (exit $ac_status); }; }; then
6824 eval "$as_ac_Header=yes"
6826 echo "$as_me: failed program was:" >&5
6827 sed 's/^/| /' conftest.$ac_ext >&5
6829 eval "$as_ac_Header=no"
6831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6833 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6834 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6835 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6836 cat >>confdefs.h <<_ACEOF
6837 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6840 ac_header_dirent=$ac_hdr; break
6844 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6845 if test $ac_header_dirent = dirent.h; then
6846 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6847 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6848 if test "${ac_cv_search_opendir+set}" = set; then
6849 echo $ECHO_N "(cached) $ECHO_C" >&6
6851 ac_func_search_save_LIBS=$LIBS
6852 ac_cv_search_opendir=no
6853 cat >conftest.$ac_ext <<_ACEOF
6856 cat confdefs.h >>conftest.$ac_ext
6857 cat >>conftest.$ac_ext <<_ACEOF
6858 /* end confdefs.h. */
6860 /* Override any gcc2 internal prototype to avoid an error. */
6864 /* We use char because int might match the return type of a gcc2
6865 builtin and then its argument prototype would still apply. */
6875 rm -f conftest.$ac_objext conftest$ac_exeext
6876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6877 (eval $ac_link) 2>conftest.er1
6879 grep -v '^ *+' conftest.er1 >conftest.err
6881 cat conftest.err >&5
6882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6883 (exit $ac_status); } &&
6884 { ac_try='test -z "$ac_c_werror_flag"
6885 || test ! -s conftest.err'
6886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6890 (exit $ac_status); }; } &&
6891 { ac_try='test -s conftest$ac_exeext'
6892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896 (exit $ac_status); }; }; then
6897 ac_cv_search_opendir="none required"
6899 echo "$as_me: failed program was:" >&5
6900 sed 's/^/| /' conftest.$ac_ext >&5
6903 rm -f conftest.err conftest.$ac_objext \
6904 conftest$ac_exeext conftest.$ac_ext
6905 if test "$ac_cv_search_opendir" = no; then
6906 for ac_lib in dir; do
6907 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6908 cat >conftest.$ac_ext <<_ACEOF
6911 cat confdefs.h >>conftest.$ac_ext
6912 cat >>conftest.$ac_ext <<_ACEOF
6913 /* end confdefs.h. */
6915 /* Override any gcc2 internal prototype to avoid an error. */
6919 /* We use char because int might match the return type of a gcc2
6920 builtin and then its argument prototype would still apply. */
6930 rm -f conftest.$ac_objext conftest$ac_exeext
6931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6932 (eval $ac_link) 2>conftest.er1
6934 grep -v '^ *+' conftest.er1 >conftest.err
6936 cat conftest.err >&5
6937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6938 (exit $ac_status); } &&
6939 { ac_try='test -z "$ac_c_werror_flag"
6940 || test ! -s conftest.err'
6941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6945 (exit $ac_status); }; } &&
6946 { ac_try='test -s conftest$ac_exeext'
6947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6951 (exit $ac_status); }; }; then
6952 ac_cv_search_opendir="-l$ac_lib"
6955 echo "$as_me: failed program was:" >&5
6956 sed 's/^/| /' conftest.$ac_ext >&5
6959 rm -f conftest.err conftest.$ac_objext \
6960 conftest$ac_exeext conftest.$ac_ext
6963 LIBS=$ac_func_search_save_LIBS
6965 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6966 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6967 if test "$ac_cv_search_opendir" != no; then
6968 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6973 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6974 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6975 if test "${ac_cv_search_opendir+set}" = set; then
6976 echo $ECHO_N "(cached) $ECHO_C" >&6
6978 ac_func_search_save_LIBS=$LIBS
6979 ac_cv_search_opendir=no
6980 cat >conftest.$ac_ext <<_ACEOF
6983 cat confdefs.h >>conftest.$ac_ext
6984 cat >>conftest.$ac_ext <<_ACEOF
6985 /* end confdefs.h. */
6987 /* Override any gcc2 internal prototype to avoid an error. */
6991 /* We use char because int might match the return type of a gcc2
6992 builtin and then its argument prototype would still apply. */
7002 rm -f conftest.$ac_objext conftest$ac_exeext
7003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7004 (eval $ac_link) 2>conftest.er1
7006 grep -v '^ *+' conftest.er1 >conftest.err
7008 cat conftest.err >&5
7009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7010 (exit $ac_status); } &&
7011 { ac_try='test -z "$ac_c_werror_flag"
7012 || test ! -s conftest.err'
7013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7017 (exit $ac_status); }; } &&
7018 { ac_try='test -s conftest$ac_exeext'
7019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7023 (exit $ac_status); }; }; then
7024 ac_cv_search_opendir="none required"
7026 echo "$as_me: failed program was:" >&5
7027 sed 's/^/| /' conftest.$ac_ext >&5
7030 rm -f conftest.err conftest.$ac_objext \
7031 conftest$ac_exeext conftest.$ac_ext
7032 if test "$ac_cv_search_opendir" = no; then
7034 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7035 cat >conftest.$ac_ext <<_ACEOF
7038 cat confdefs.h >>conftest.$ac_ext
7039 cat >>conftest.$ac_ext <<_ACEOF
7040 /* end confdefs.h. */
7042 /* Override any gcc2 internal prototype to avoid an error. */
7046 /* We use char because int might match the return type of a gcc2
7047 builtin and then its argument prototype would still apply. */
7057 rm -f conftest.$ac_objext conftest$ac_exeext
7058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7059 (eval $ac_link) 2>conftest.er1
7061 grep -v '^ *+' conftest.er1 >conftest.err
7063 cat conftest.err >&5
7064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065 (exit $ac_status); } &&
7066 { ac_try='test -z "$ac_c_werror_flag"
7067 || test ! -s conftest.err'
7068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072 (exit $ac_status); }; } &&
7073 { ac_try='test -s conftest$ac_exeext'
7074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7078 (exit $ac_status); }; }; then
7079 ac_cv_search_opendir="-l$ac_lib"
7082 echo "$as_me: failed program was:" >&5
7083 sed 's/^/| /' conftest.$ac_ext >&5
7086 rm -f conftest.err conftest.$ac_objext \
7087 conftest$ac_exeext conftest.$ac_ext
7090 LIBS=$ac_func_search_save_LIBS
7092 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7093 echo "${ECHO_T}$ac_cv_search_opendir" >&6
7094 if test "$ac_cv_search_opendir" != no; then
7095 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
7109 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
7111 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7112 echo "$as_me:$LINENO: checking for $ac_func" >&5
7113 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7114 if eval "test \"\${$as_ac_var+set}\" = set"; then
7115 echo $ECHO_N "(cached) $ECHO_C" >&6
7117 cat >conftest.$ac_ext <<_ACEOF
7120 cat confdefs.h >>conftest.$ac_ext
7121 cat >>conftest.$ac_ext <<_ACEOF
7122 /* end confdefs.h. */
7123 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7124 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7125 #define $ac_func innocuous_$ac_func
7127 /* System header to define __stub macros and hopefully few prototypes,
7128 which can conflict with char $ac_func (); below.
7129 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7130 <limits.h> exists even on freestanding compilers. */
7133 # include <limits.h>
7135 # include <assert.h>
7140 /* Override any gcc2 internal prototype to avoid an error. */
7145 /* We use char because int might match the return type of a gcc2
7146 builtin and then its argument prototype would still apply. */
7148 /* The GNU C library defines this for functions which it implements
7149 to always fail with ENOSYS. Some functions are actually named
7150 something starting with __ and the normal name is an alias. */
7151 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7154 char (*f) () = $ac_func;
7163 return f != $ac_func;
7168 rm -f conftest.$ac_objext conftest$ac_exeext
7169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7170 (eval $ac_link) 2>conftest.er1
7172 grep -v '^ *+' conftest.er1 >conftest.err
7174 cat conftest.err >&5
7175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7176 (exit $ac_status); } &&
7177 { ac_try='test -z "$ac_c_werror_flag"
7178 || test ! -s conftest.err'
7179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7183 (exit $ac_status); }; } &&
7184 { ac_try='test -s conftest$ac_exeext'
7185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7189 (exit $ac_status); }; }; then
7190 eval "$as_ac_var=yes"
7192 echo "$as_me: failed program was:" >&5
7193 sed 's/^/| /' conftest.$ac_ext >&5
7195 eval "$as_ac_var=no"
7197 rm -f conftest.err conftest.$ac_objext \
7198 conftest$ac_exeext conftest.$ac_ext
7200 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7201 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7202 if test `eval echo '${'$as_ac_var'}'` = yes; then
7203 cat >>confdefs.h <<_ACEOF
7204 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7212 for ac_func in nanosleep nl_langinfo
7214 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7215 echo "$as_me:$LINENO: checking for $ac_func" >&5
7216 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7217 if eval "test \"\${$as_ac_var+set}\" = set"; then
7218 echo $ECHO_N "(cached) $ECHO_C" >&6
7220 cat >conftest.$ac_ext <<_ACEOF
7223 cat confdefs.h >>conftest.$ac_ext
7224 cat >>conftest.$ac_ext <<_ACEOF
7225 /* end confdefs.h. */
7226 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7227 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7228 #define $ac_func innocuous_$ac_func
7230 /* System header to define __stub macros and hopefully few prototypes,
7231 which can conflict with char $ac_func (); below.
7232 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7233 <limits.h> exists even on freestanding compilers. */
7236 # include <limits.h>
7238 # include <assert.h>
7243 /* Override any gcc2 internal prototype to avoid an error. */
7248 /* We use char because int might match the return type of a gcc2
7249 builtin and then its argument prototype would still apply. */
7251 /* The GNU C library defines this for functions which it implements
7252 to always fail with ENOSYS. Some functions are actually named
7253 something starting with __ and the normal name is an alias. */
7254 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7257 char (*f) () = $ac_func;
7266 return f != $ac_func;
7271 rm -f conftest.$ac_objext conftest$ac_exeext
7272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7273 (eval $ac_link) 2>conftest.er1
7275 grep -v '^ *+' conftest.er1 >conftest.err
7277 cat conftest.err >&5
7278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7279 (exit $ac_status); } &&
7280 { ac_try='test -z "$ac_c_werror_flag"
7281 || test ! -s conftest.err'
7282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7286 (exit $ac_status); }; } &&
7287 { ac_try='test -s conftest$ac_exeext'
7288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7292 (exit $ac_status); }; }; then
7293 eval "$as_ac_var=yes"
7295 echo "$as_me: failed program was:" >&5
7296 sed 's/^/| /' conftest.$ac_ext >&5
7298 eval "$as_ac_var=no"
7300 rm -f conftest.err conftest.$ac_objext \
7301 conftest$ac_exeext conftest.$ac_ext
7303 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7304 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7305 if test `eval echo '${'$as_ac_var'}'` = yes; then
7306 cat >>confdefs.h <<_ACEOF
7307 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7314 for ac_header in varargs.h
7316 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7317 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7318 echo "$as_me:$LINENO: checking for $ac_header" >&5
7319 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7320 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7321 echo $ECHO_N "(cached) $ECHO_C" >&6
7323 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7324 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7326 # Is the header compilable?
7327 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7328 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7329 cat >conftest.$ac_ext <<_ACEOF
7332 cat confdefs.h >>conftest.$ac_ext
7333 cat >>conftest.$ac_ext <<_ACEOF
7334 /* end confdefs.h. */
7335 $ac_includes_default
7336 #include <$ac_header>
7338 rm -f conftest.$ac_objext
7339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7340 (eval $ac_compile) 2>conftest.er1
7342 grep -v '^ *+' conftest.er1 >conftest.err
7344 cat conftest.err >&5
7345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7346 (exit $ac_status); } &&
7347 { ac_try='test -z "$ac_c_werror_flag"
7348 || test ! -s conftest.err'
7349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7353 (exit $ac_status); }; } &&
7354 { ac_try='test -s conftest.$ac_objext'
7355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7359 (exit $ac_status); }; }; then
7360 ac_header_compiler=yes
7362 echo "$as_me: failed program was:" >&5
7363 sed 's/^/| /' conftest.$ac_ext >&5
7365 ac_header_compiler=no
7367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7368 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7369 echo "${ECHO_T}$ac_header_compiler" >&6
7371 # Is the header present?
7372 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7373 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7374 cat >conftest.$ac_ext <<_ACEOF
7377 cat confdefs.h >>conftest.$ac_ext
7378 cat >>conftest.$ac_ext <<_ACEOF
7379 /* end confdefs.h. */
7380 #include <$ac_header>
7382 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7383 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7385 grep -v '^ *+' conftest.er1 >conftest.err
7387 cat conftest.err >&5
7388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389 (exit $ac_status); } >/dev/null; then
7390 if test -s conftest.err; then
7391 ac_cpp_err=$ac_c_preproc_warn_flag
7392 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7399 if test -z "$ac_cpp_err"; then
7400 ac_header_preproc=yes
7402 echo "$as_me: failed program was:" >&5
7403 sed 's/^/| /' conftest.$ac_ext >&5
7405 ac_header_preproc=no
7407 rm -f conftest.err conftest.$ac_ext
7408 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7409 echo "${ECHO_T}$ac_header_preproc" >&6
7411 # So? What about this header?
7412 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7414 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7415 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7416 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7417 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7418 ac_header_preproc=yes
7421 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7422 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7423 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7424 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7425 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7426 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7427 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7428 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7429 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7430 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7431 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7432 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7435 ## ------------------------------------------ ##
7436 ## Report this to the AC_PACKAGE_NAME lists. ##
7437 ## ------------------------------------------ ##
7440 sed "s/^/$as_me: WARNING: /" >&2
7443 echo "$as_me:$LINENO: checking for $ac_header" >&5
7444 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7445 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7446 echo $ECHO_N "(cached) $ECHO_C" >&6
7448 eval "$as_ac_Header=\$ac_header_preproc"
7450 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7451 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7454 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7455 cat >>confdefs.h <<_ACEOF
7456 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7464 # End of readline/conio stuff
7465 # -----------------------------------------------------------------------
7467 # -----------------------------------------------------------------------
7468 # Check for Python support
7470 echo "$as_me:$LINENO: checking for Python support" >&5
7471 echo $ECHO_N "checking for Python support... $ECHO_C" >&6
7473 # Check whether --with-python or --without-python was given.
7474 if test "${with_python+set}" = set; then
7475 withval="$with_python"
7479 if test "$withval" != "no"; then
7480 if test "$withval" = "yes"; then
7481 if test -f /usr/include/python2.2/Python.h; then
7482 PYTHON_INCDIR=-I/usr/include/python2.2
7483 PYTHON_LIBS="-L/usr/lib/python2.2/config -lpython2.2 -lutil -ldl"
7484 elif test -f /usr/include/python2.3/Python.h; then
7485 PYTHON_INCDIR=-I/usr/include/python2.3
7486 PYTHON_LIBS="-L/usr/lib/python2.3/config -lpython2.3 -lutil -ldl"
7487 elif test -f /usr/include/python2.4/Python.h; then
7488 PYTHON_INCDIR=-I/usr/include/python2.4
7489 PYTHON_LIBS="-L/usr/lib/python2.4/config -lpython2.4 -lutil -ldl"
7490 elif test -f $prefix/include/Python.h; then
7491 PYTHON_INCDIR=-I$prefix/include
7492 PYTHON_LIBS="-L$prefix/lib/config -lpython -lutil -ldl"
7494 echo "$as_me:$LINENO: result: no" >&5
7495 echo "${ECHO_T}no" >&6
7496 { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
7497 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
7498 { (exit 1); exit 1; }; }
7501 if test -f $withval/Python.h; then
7502 PYTHON_INCDIR=-I$withval
7503 PYTHON_LIBS="-L$withval/config -lpython -lutil -ldl"
7504 elif test -f $withval/include/Python.h; then
7505 PYTHON_INCDIR=-I$withval/include
7506 PYTHON_LIBS="-L$withval/lib/config -lpython -lutil -ldl"
7508 echo "$as_me:$LINENO: result: no" >&5
7509 echo "${ECHO_T}no" >&6
7510 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
7511 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
7512 { (exit 1); exit 1; }; }
7515 cat >>confdefs.h <<\_ACEOF
7516 #define HAVE_PYTHON 1
7519 echo "$as_me:$LINENO: result: yes" >&5
7520 echo "${ECHO_T}yes" >&6
7524 echo "$as_me:$LINENO: result: no" >&5
7525 echo "${ECHO_T}no" >&6
7530 echo "$as_me:$LINENO: result: no" >&5
7531 echo "${ECHO_T}no" >&6
7538 # -------------------------------------------
7539 # check for cdrecord writer location
7540 # get scsibus,target,lun
7541 # -------------------------------------------
7543 if test ! x$CDRECORD = x ; then
7544 CDSTL=`${CDRECORD} -scanbus 2>/dev/null | grep CD-RW | ${AWK} '{print $1}'`
7545 if test x${CDSTL} = x ; then
7546 CDSTL=`${CDRECORD} -scanbus 2>/dev/null | grep CD+RW | ${AWK} '{print $1}'`
7548 if test x${CDSTL} = x ; then
7549 CDSTL=`${CDRECORD} -scanbus 2>/dev/null | grep DVD+RW | ${AWK} '{print $1}'`
7551 if test x${CDSTL} = x ; then
7552 CDSTL=`${CDRECORD} -scanbus 2>/dev/null | grep DVD-RW | ${AWK} '{print $1}'`
7554 if test x${CDSTL} = x ; then
7561 # ---------------------------------------------------
7562 # Check for GMP support/directory
7563 # ---------------------------------------------------
7567 # [ --with-gmp[=DIR] Specify gmp library directory],
7569 # case "$with_gmp" in
7572 # if test "$with_gmp" != "yes"; then
7573 # GMP_INC="-I$with_gmp"
7575 # GMP_LDFLAGS="-L$with_gmp"
7577 # with_gmp="/usr/include"
7579 # AC_CHECK_HEADER($with_gmp/gmp.h,
7580 # [ AC_MSG_RESULT(yes)
7581 # AC_DEFINE(HAVE_GMP)
7585 # [ AC_MSG_ERROR([*** gmp library missing])
7591 # # check for standard gmp library
7592 # AC_CHECK_HEADER(/usr/include/gmp.h,
7593 # [ AC_MSG_RESULT(yes)
7594 # AC_DEFINE(HAVE_GMP)
7599 # # Did not find standard library, so use our own
7600 # AC_MSG_RESULT(yes)
7601 # AC_DEFINE(HAVE_GMP)
7604 # GMP_INC="-I${TOP_DIR}/depkgs/gmp"
7606 # GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
7607 # GMP_SRC="${TOP_DIR}/depkgs/gmp"
7613 #AC_SUBST(GMP_LDFLAGS)
7617 # -----------------------------------------------------------------------
7620 # ---------------------------------------------------
7621 # Check for CWEB support/directory
7622 # ---------------------------------------------------
7627 # [ --with-cweb[=DIR] Specify cweb library directory],
7629 # case "$with_cweb" in
7632 # if test "$with_cweb" != "yes"; then
7633 # CWEB_INC="-I$with_cweb"
7634 # CWEB_LIBS="-lcweb"
7635 # CWEB_LDFLAGS="-L$with_cweb"
7637 # with_cweb="/usr/include"
7639 # AC_CHECK_HEADER($with_cweb/cweb.h,
7640 # [ AC_MSG_RESULT(yes)
7641 # AC_DEFINE(HAVE_CWEB)
7642 # CWEB_LIBS="-lcweb"
7645 # [ AC_MSG_ERROR([*** cweb library missing])
7651 # # check for standard cweb library
7652 # AC_CHECK_HEADER(/usr/include/cweb.h,
7653 # [ AC_MSG_RESULT(yes)
7654 # AC_DEFINE(HAVE_CWEB)
7657 # CWEB_LIBS="-lcweb"
7659 # # Did not find starndard library, so use our own
7660 # AC_MSG_RESULT(yes)
7661 # AC_DEFINE(HAVE_CWEB)
7664 # CWEB=${TOP_DIR}/depkgs/cweb
7665 # CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
7666 # CWEB_LIBS="-lcweb"
7667 # CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
7668 # CWEB_SRC="${TOP_DIR}/depkgs/cweb"
7674 #AC_SUBST(CWEB_LIBS)
7675 #AC_SUBST(CWEB_LDFLAGS)
7679 # -----------------------------------------------------------------------
7682 # Find where sockets are (especially for Solaris)
7683 # Do this before the TCP Wrappers test since tcp wrappers
7684 # uses the socket library and some linkers are stupid.
7686 echo "$as_me:$LINENO: checking for socket" >&5
7687 echo $ECHO_N "checking for socket... $ECHO_C" >&6
7688 if test "${ac_cv_func_socket+set}" = set; then
7689 echo $ECHO_N "(cached) $ECHO_C" >&6
7691 cat >conftest.$ac_ext <<_ACEOF
7694 cat confdefs.h >>conftest.$ac_ext
7695 cat >>conftest.$ac_ext <<_ACEOF
7696 /* end confdefs.h. */
7697 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
7698 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7699 #define socket innocuous_socket
7701 /* System header to define __stub macros and hopefully few prototypes,
7702 which can conflict with char socket (); below.
7703 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7704 <limits.h> exists even on freestanding compilers. */
7707 # include <limits.h>
7709 # include <assert.h>
7714 /* Override any gcc2 internal prototype to avoid an error. */
7719 /* We use char because int might match the return type of a gcc2
7720 builtin and then its argument prototype would still apply. */
7722 /* The GNU C library defines this for functions which it implements
7723 to always fail with ENOSYS. Some functions are actually named
7724 something starting with __ and the normal name is an alias. */
7725 #if defined (__stub_socket) || defined (__stub___socket)
7728 char (*f) () = socket;
7742 rm -f conftest.$ac_objext conftest$ac_exeext
7743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7744 (eval $ac_link) 2>conftest.er1
7746 grep -v '^ *+' conftest.er1 >conftest.err
7748 cat conftest.err >&5
7749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7750 (exit $ac_status); } &&
7751 { ac_try='test -z "$ac_c_werror_flag"
7752 || test ! -s conftest.err'
7753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7757 (exit $ac_status); }; } &&
7758 { ac_try='test -s conftest$ac_exeext'
7759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7763 (exit $ac_status); }; }; then
7764 ac_cv_func_socket=yes
7766 echo "$as_me: failed program was:" >&5
7767 sed 's/^/| /' conftest.$ac_ext >&5
7769 ac_cv_func_socket=no
7771 rm -f conftest.err conftest.$ac_objext \
7772 conftest$ac_exeext conftest.$ac_ext
7774 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
7775 echo "${ECHO_T}$ac_cv_func_socket" >&6
7776 if test $ac_cv_func_socket = yes; then
7777 echo "$as_me:$LINENO: result: using libc's socket" >&5
7778 echo "${ECHO_T}using libc's socket" >&6
7781 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
7782 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
7783 if test "${ac_cv_lib_xnet_socket+set}" = set; then
7784 echo $ECHO_N "(cached) $ECHO_C" >&6
7786 ac_check_lib_save_LIBS=$LIBS
7788 cat >conftest.$ac_ext <<_ACEOF
7791 cat confdefs.h >>conftest.$ac_ext
7792 cat >>conftest.$ac_ext <<_ACEOF
7793 /* end confdefs.h. */
7795 /* Override any gcc2 internal prototype to avoid an error. */
7799 /* We use char because int might match the return type of a gcc2
7800 builtin and then its argument prototype would still apply. */
7810 rm -f conftest.$ac_objext conftest$ac_exeext
7811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7812 (eval $ac_link) 2>conftest.er1
7814 grep -v '^ *+' conftest.er1 >conftest.err
7816 cat conftest.err >&5
7817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7818 (exit $ac_status); } &&
7819 { ac_try='test -z "$ac_c_werror_flag"
7820 || test ! -s conftest.err'
7821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825 (exit $ac_status); }; } &&
7826 { ac_try='test -s conftest$ac_exeext'
7827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831 (exit $ac_status); }; }; then
7832 ac_cv_lib_xnet_socket=yes
7834 echo "$as_me: failed program was:" >&5
7835 sed 's/^/| /' conftest.$ac_ext >&5
7837 ac_cv_lib_xnet_socket=no
7839 rm -f conftest.err conftest.$ac_objext \
7840 conftest$ac_exeext conftest.$ac_ext
7841 LIBS=$ac_check_lib_save_LIBS
7843 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
7844 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
7845 if test $ac_cv_lib_xnet_socket = yes; then
7846 cat >>confdefs.h <<_ACEOF
7847 #define HAVE_LIBXNET 1
7855 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
7856 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
7857 if test "${ac_cv_lib_socket_socket+set}" = set; then
7858 echo $ECHO_N "(cached) $ECHO_C" >&6
7860 ac_check_lib_save_LIBS=$LIBS
7861 LIBS="-lsocket $LIBS"
7862 cat >conftest.$ac_ext <<_ACEOF
7865 cat confdefs.h >>conftest.$ac_ext
7866 cat >>conftest.$ac_ext <<_ACEOF
7867 /* end confdefs.h. */
7869 /* Override any gcc2 internal prototype to avoid an error. */
7873 /* We use char because int might match the return type of a gcc2
7874 builtin and then its argument prototype would still apply. */
7884 rm -f conftest.$ac_objext conftest$ac_exeext
7885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7886 (eval $ac_link) 2>conftest.er1
7888 grep -v '^ *+' conftest.er1 >conftest.err
7890 cat conftest.err >&5
7891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7892 (exit $ac_status); } &&
7893 { ac_try='test -z "$ac_c_werror_flag"
7894 || test ! -s conftest.err'
7895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7899 (exit $ac_status); }; } &&
7900 { ac_try='test -s conftest$ac_exeext'
7901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7905 (exit $ac_status); }; }; then
7906 ac_cv_lib_socket_socket=yes
7908 echo "$as_me: failed program was:" >&5
7909 sed 's/^/| /' conftest.$ac_ext >&5
7911 ac_cv_lib_socket_socket=no
7913 rm -f conftest.err conftest.$ac_objext \
7914 conftest$ac_exeext conftest.$ac_ext
7915 LIBS=$ac_check_lib_save_LIBS
7917 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
7918 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
7919 if test $ac_cv_lib_socket_socket = yes; then
7920 cat >>confdefs.h <<_ACEOF
7921 #define HAVE_LIBSOCKET 1
7924 LIBS="-lsocket $LIBS"
7929 echo "$as_me:$LINENO: checking for socket in -linet" >&5
7930 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
7931 if test "${ac_cv_lib_inet_socket+set}" = set; then
7932 echo $ECHO_N "(cached) $ECHO_C" >&6
7934 ac_check_lib_save_LIBS=$LIBS
7936 cat >conftest.$ac_ext <<_ACEOF
7939 cat confdefs.h >>conftest.$ac_ext
7940 cat >>conftest.$ac_ext <<_ACEOF
7941 /* end confdefs.h. */
7943 /* Override any gcc2 internal prototype to avoid an error. */
7947 /* We use char because int might match the return type of a gcc2
7948 builtin and then its argument prototype would still apply. */
7958 rm -f conftest.$ac_objext conftest$ac_exeext
7959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7960 (eval $ac_link) 2>conftest.er1
7962 grep -v '^ *+' conftest.er1 >conftest.err
7964 cat conftest.err >&5
7965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7966 (exit $ac_status); } &&
7967 { ac_try='test -z "$ac_c_werror_flag"
7968 || test ! -s conftest.err'
7969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7973 (exit $ac_status); }; } &&
7974 { ac_try='test -s conftest$ac_exeext'
7975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7979 (exit $ac_status); }; }; then
7980 ac_cv_lib_inet_socket=yes
7982 echo "$as_me: failed program was:" >&5
7983 sed 's/^/| /' conftest.$ac_ext >&5
7985 ac_cv_lib_inet_socket=no
7987 rm -f conftest.err conftest.$ac_objext \
7988 conftest$ac_exeext conftest.$ac_ext
7989 LIBS=$ac_check_lib_save_LIBS
7991 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
7992 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
7993 if test $ac_cv_lib_inet_socket = yes; then
7994 cat >>confdefs.h <<_ACEOF
7995 #define HAVE_LIBINET 1
8006 # -----------------------------------------------------------
8007 # Check whether user wants TCP wrappers support (default off)
8008 # -----------------------------------------------------------
8011 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
8012 if test "${with_tcp_wrappers+set}" = set; then
8013 withval="$with_tcp_wrappers"
8015 if test "x$withval" != "xno" ; then
8017 LIBS="$saved_LIBS -lwrap"
8018 echo "$as_me:$LINENO: checking for libwrap" >&5
8019 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
8020 cat >conftest.$ac_ext <<_ACEOF
8023 cat confdefs.h >>conftest.$ac_ext
8024 cat >>conftest.$ac_ext <<_ACEOF
8025 /* end confdefs.h. */
8027 int deny_severity = 0;
8028 int allow_severity = 0;
8029 struct request_info *req;
8038 rm -f conftest.$ac_objext conftest$ac_exeext
8039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8040 (eval $ac_link) 2>conftest.er1
8042 grep -v '^ *+' conftest.er1 >conftest.err
8044 cat conftest.err >&5
8045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046 (exit $ac_status); } &&
8047 { ac_try='test -z "$ac_c_werror_flag"
8048 || test ! -s conftest.err'
8049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8053 (exit $ac_status); }; } &&
8054 { ac_try='test -s conftest$ac_exeext'
8055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8059 (exit $ac_status); }; }; then
8061 echo "$as_me:$LINENO: result: yes" >&5
8062 echo "${ECHO_T}yes" >&6
8063 cat >>confdefs.h <<\_ACEOF
8064 #define HAVE_LIBWRAP 1
8070 echo "$as_me: failed program was:" >&5
8071 sed 's/^/| /' conftest.$ac_ext >&5
8074 LIBS="$saved_LIBS -lwrap -lnsl"
8075 cat >conftest.$ac_ext <<_ACEOF
8078 cat confdefs.h >>conftest.$ac_ext
8079 cat >>conftest.$ac_ext <<_ACEOF
8080 /* end confdefs.h. */
8082 int deny_severity = 0;
8083 int allow_severity = 0;
8084 struct request_info *req;
8093 rm -f conftest.$ac_objext conftest$ac_exeext
8094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8095 (eval $ac_link) 2>conftest.er1
8097 grep -v '^ *+' conftest.er1 >conftest.err
8099 cat conftest.err >&5
8100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8101 (exit $ac_status); } &&
8102 { ac_try='test -z "$ac_c_werror_flag"
8103 || test ! -s conftest.err'
8104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8108 (exit $ac_status); }; } &&
8109 { ac_try='test -s conftest$ac_exeext'
8110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8114 (exit $ac_status); }; }; then
8116 echo "$as_me:$LINENO: result: yes" >&5
8117 echo "${ECHO_T}yes" >&6
8118 cat >>confdefs.h <<\_ACEOF
8119 #define HAVE_LIBWRAP 1
8125 echo "$as_me: failed program was:" >&5
8126 sed 's/^/| /' conftest.$ac_ext >&5
8128 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
8129 echo "$as_me: error: *** libwrap missing" >&2;}
8130 { (exit 1); exit 1; }; }
8133 rm -f conftest.err conftest.$ac_objext \
8134 conftest$ac_exeext conftest.$ac_ext
8137 rm -f conftest.err conftest.$ac_objext \
8138 conftest$ac_exeext conftest.$ac_ext
8144 # ------------------------------------------
8145 # Where to place working dir
8146 # ------------------------------------------
8147 working_dir=`eval echo ${prefix}/var/bacula/working`
8149 # Check whether --with-working-dir or --without-working-dir was given.
8150 if test "${with_working_dir+set}" = set; then
8151 withval="$with_working_dir"
8153 if test "x$withval" != "xno" ; then
8154 working_dir=$withval
8163 # ------------------------------------------
8164 # Where to place scriptdir (script files)
8165 # ------------------------------------------
8166 scriptdir=`eval echo ${sysconfdir}`
8168 # Check whether --with-scriptdir or --without-scriptdir was given.
8169 if test "${with_scriptdir+set}" = set; then
8170 withval="$with_scriptdir"
8172 if test "x$withval" != "xno" ; then
8182 # ------------------------------------------
8183 # Where to send dump email
8184 # ------------------------------------------
8185 dump_email=root@localhost
8187 # Check whether --with-dump-email or --without-dump-email was given.
8188 if test "${with_dump_email+set}" = set; then
8189 withval="$with_dump_email"
8191 if test "x$withval" != "xno" ; then
8200 # ------------------------------------------
8201 # Where to send job email
8202 # ------------------------------------------
8203 job_email=root@localhost
8205 # Check whether --with-job-email or --without-job-email was given.
8206 if test "${with_job_email+set}" = set; then
8207 withval="$with_job_email"
8209 if test "x$withval" != "xno" ; then
8218 # ------------------------------------------
8219 # Where to find smtp host
8220 # ------------------------------------------
8223 # Check whether --with-smtp_host or --without-smtp_host was given.
8224 if test "${with_smtp_host+set}" = set; then
8225 withval="$with_smtp_host"
8227 if test "x$withval" != "xno" ; then
8237 # ------------------------------------
8238 # Where to place pid files
8239 # ------------------------------------
8242 # Check whether --with-pid-dir or --without-pid-dir was given.
8243 if test "${with_pid_dir+set}" = set; then
8244 withval="$with_pid_dir"
8246 if test "x$withval" != "xno" ; then
8253 cat >>confdefs.h <<_ACEOF
8254 #define _PATH_BACULA_PIDDIR "$piddir"
8260 # ------------------------------------
8261 # Where to place subsys "lock file"
8262 # ------------------------------------
8263 subsysdir=/var/run/subsys
8265 # Check whether --with-subsys-dir or --without-subsys-dir was given.
8266 if test "${with_subsys_dir+set}" = set; then
8267 withval="$with_subsys_dir"
8269 if test "x$withval" != "xno" ; then
8280 # ------------------------------------
8281 # Where to start assigning ports
8282 # ------------------------------------
8285 # Check whether --with-baseport or --without-baseport was given.
8286 if test "${with_baseport+set}" = set; then
8287 withval="$with_baseport"
8289 if test "x$withval" != "xno" ; then
8297 dir_port=`expr $baseport`
8298 fd_port=`expr $baseport + 1`
8299 sd_port=`expr $fd_port + 1`
8306 # ------------------------------------------
8307 # Generate passwords
8308 # ------------------------------------------
8311 # Check whether --with-dir-password or --without-dir-password was given.
8312 if test "${with_dir_password+set}" = set; then
8313 withval="$with_dir_password"
8315 if test "x$withval" != "xno" ; then
8316 dir_password=$withval
8322 if test "x$dir_password" = "x" ; then
8323 if test "x$OPENSSL" = "xnone" ; then
8324 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
8325 key=`autoconf/randpass 33`
8327 key=`openssl rand -base64 33`
8334 # Check whether --with-fd-password or --without-fd-password was given.
8335 if test "${with_fd_password+set}" = set; then
8336 withval="$with_fd_password"
8338 if test "x$withval" != "xno" ; then
8339 fd_password=$withval
8345 if test "x$fd_password" = "x" ; then
8346 if test "x$OPENSSL" = "xnone" ; then
8347 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
8348 key=`autoconf/randpass 37`
8350 key=`openssl rand -base64 33`
8357 # Check whether --with-sd-password or --without-sd-password was given.
8358 if test "${with_sd_password+set}" = set; then
8359 withval="$with_sd_password"
8361 if test "x$withval" != "xno" ; then
8362 sd_password=$withval
8368 if test "x$sd_password" = "x" ; then
8369 if test "x$OPENSSL" = "xnone" ; then
8370 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
8371 key=`autoconf/randpass 41`
8373 key=`openssl rand -base64 33`
8380 # Check whether --with-mon-dir-password or --without-mon-dir-password was given.
8381 if test "${with_mon_dir_password+set}" = set; then
8382 withval="$with_mon_dir_password"
8384 if test "x$withval" != "xno" ; then
8385 mon_dir_password=$withval
8391 if test "x$mon_dir_password" = "x" ; then
8392 if test "x$OPENSSL" = "xnone" ; then
8393 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
8394 key=`autoconf/randpass 33`
8396 key=`openssl rand -base64 33`
8398 mon_dir_password=$key
8403 # Check whether --with-mon-fd-password or --without-mon-fd-password was given.
8404 if test "${with_mon_fd_password+set}" = set; then
8405 withval="$with_mon_fd_password"
8407 if test "x$withval" != "xno" ; then
8408 mon_fd_password=$withval
8414 if test "x$mon_fd_password" = "x" ; then
8415 if test "x$OPENSSL" = "xnone" ; then
8416 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
8417 key=`autoconf/randpass 37`
8419 key=`openssl rand -base64 33`
8421 mon_fd_password=$key
8426 # Check whether --with-mon-sd-password or --without-mon-sd-password was given.
8427 if test "${with_mon_sd_password+set}" = set; then
8428 withval="$with_mon_sd_password"
8430 if test "x$withval" != "xno" ; then
8431 mon_sd_password=$withval
8437 if test "x$mon_sd_password" = "x" ; then
8438 if test "x$OPENSSL" = "xnone" ; then
8439 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
8440 key=`autoconf/randpass 41`
8442 key=`openssl rand -base64 33`
8444 mon_sd_password=$key
8454 # -------------------------------------------------------------------------
8455 # Set variables for bimagemgr installation
8456 # -------------------------------------------------------------------------
8457 bimagemgr_cgidir=/var/www/cgi-bin
8459 # Check whether --with-bimagemgr-cgidir or --without-bimagemgr-cgidir was given.
8460 if test "${with_bimagemgr_cgidir+set}" = set; then
8461 withval="$with_bimagemgr_cgidir"
8463 if test "x$withval" != "xno" ; then
8464 bimagemgr_cgidir=$withval
8470 bimagemgr_docdir=/var/www/html
8472 # Check whether --with-bimagemgr-docdir or --without-bimagemgr-docdir was given.
8473 if test "${with_bimagemgr_docdir+set}" = set; then
8474 withval="$with_bimagemgr_docdir"
8476 if test "x$withval" != "xno" ; then
8477 bimagemgr_docdir=$withval
8483 bimagemgr_binowner=root
8485 # Check whether --with-bimagemgr-binowner or --without-bimagemgr-binowner was given.
8486 if test "${with_bimagemgr_binowner+set}" = set; then
8487 withval="$with_bimagemgr_binowner"
8489 if test "x$withval" != "xno" ; then
8490 bimagemgr_binowner=$withval
8496 bimagemgr_bingroup=root
8498 # Check whether --with-bimagemgr-bingroup or --without-bimagemgr-bingroup was given.
8499 if test "${with_bimagemgr_bingroup+set}" = set; then
8500 withval="$with_bimagemgr_bingroup"
8502 if test "x$withval" != "xno" ; then
8503 bimagemgr_bingroup=$withval
8509 bimagemgr_dataowner=apache
8511 # Check whether --with-bimagemgr-dataowner or --without-bimagemgr-dataowner was given.
8512 if test "${with_bimagemgr_dataowner+set}" = set; then
8513 withval="$with_bimagemgr_dataowner"
8515 if test "x$withval" != "xno" ; then
8516 bimagemgr_dataowner=$withval
8522 bimagemgr_datagroup=apache
8524 # Check whether --with-bimagemgr-datagroup or --without-bimagemgr-datagroup was given.
8525 if test "${with_bimagemgr_datagroup+set}" = set; then
8526 withval="$with_bimagemgr_datagroup"
8528 if test "x$withval" != "xno" ; then
8529 bimagemgr_datagroup=$withval
8543 # Handle users and groups for each daemon
8547 # Check whether --with-dir_user or --without-dir_user was given.
8548 if test "${with_dir_user+set}" = set; then
8549 withval="$with_dir_user"
8551 if test "x$withval" != "x" ; then
8560 # Check whether --with-dir_group or --without-dir_group was given.
8561 if test "${with_dir_group+set}" = set; then
8562 withval="$with_dir_group"
8564 if test "x$withval" != "x" ; then
8573 # Check whether --with-sd_user or --without-sd_user was given.
8574 if test "${with_sd_user+set}" = set; then
8575 withval="$with_sd_user"
8577 if test "x$withval" != "x" ; then
8586 # Check whether --with-sd_group or --without-sd_group was given.
8587 if test "${with_sd_group+set}" = set; then
8588 withval="$with_sd_group"
8590 if test "x$withval" != "x" ; then
8599 # Check whether --with-fd_user or --without-fd_user was given.
8600 if test "${with_fd_user+set}" = set; then
8601 withval="$with_fd_user"
8603 if test "x$withval" != "x" ; then
8612 # Check whether --with-fd_group or --without-fd_group was given.
8613 if test "${with_fd_group+set}" = set; then
8614 withval="$with_fd_group"
8616 if test "x$withval" != "x" ; then
8634 # allow setting default executable permissions
8638 # Check whether --with-sbin-perm or --without-sbin-perm was given.
8639 if test "${with_sbin_perm+set}" = set; then
8640 withval="$with_sbin_perm"
8642 if test "x$withval" != "x" ; then
8651 # ------------------------------------------------
8652 # Bacula check for various SQL database engines
8653 # ------------------------------------------------
8656 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
8657 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
8659 # Check whether --with-postgresql or --without-postgresql was given.
8660 if test "${with_postgresql+set}" = set; then
8661 withval="$with_postgresql"
8663 if test "$withval" != "no"; then
8664 if test "$db_found" = "yes"; then
8665 echo "$as_me:$LINENO: result: error" >&5
8666 echo "${ECHO_T}error" >&6
8667 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
8668 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
8669 { (exit 1); exit 1; }; };
8671 if test "$withval" = "yes"; then
8672 if test -f /usr/local/include/libpq-fe.h; then
8673 POSTGRESQL_INCDIR=/usr/local/include
8674 POSTGRESQL_LIBDIR=/usr/local/lib
8675 POSTGRESQL_BINDIR=/usr/local/bin
8676 elif test -f /usr/include/libpq-fe.h; then
8677 POSTGRESQL_INCDIR=/usr/include
8678 POSTGRESQL_LIBDIR=/usr/lib
8679 POSTGRESQL_BINDIR=/usr/bin
8680 elif test -f /usr/include/pgsql/libpq-fe.h; then
8681 POSTGRESQL_INCDIR=/usr/include/pgsql
8682 POSTGRESQL_LIBDIR=/usr/lib/pgsql
8683 POSTGRESQL_BINDIR=/usr/bin
8684 elif test -f /usr/include/postgresql/libpq-fe.h; then
8685 POSTGRESQL_INCDIR=/usr/include/postgresql
8686 POSTGRESQL_LIBDIR=/usr/lib/postgresql
8687 POSTGRESQL_BINDIR=/usr/bin
8689 echo "$as_me:$LINENO: result: no" >&5
8690 echo "${ECHO_T}no" >&6
8691 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
8692 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
8693 { (exit 1); exit 1; }; }
8695 elif test -f $withval/include/libpq-fe.h; then
8696 POSTGRESQL_INCDIR=$withval/include
8697 POSTGRESQL_LIBDIR=$withval/lib
8698 POSTGRESQL_BINDIR=$withval/bin
8699 elif test -f $withval/include/postgresql/libpq-fe.h; then
8700 POSTGRESQL_INCDIR=$withval/include/postgresql
8701 POSTGRESQL_LIBDIR=$withval/lib
8702 POSTGRESQL_BINDIR=$withval/bin
8704 echo "$as_me:$LINENO: result: no" >&5
8705 echo "${ECHO_T}no" >&6
8706 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
8707 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
8708 { (exit 1); exit 1; }; }
8710 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
8711 echo "$as_me:$LINENO: checking for crypt" >&5
8712 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
8713 if test "${ac_cv_func_crypt+set}" = set; then
8714 echo $ECHO_N "(cached) $ECHO_C" >&6
8716 cat >conftest.$ac_ext <<_ACEOF
8719 cat confdefs.h >>conftest.$ac_ext
8720 cat >>conftest.$ac_ext <<_ACEOF
8721 /* end confdefs.h. */
8722 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
8723 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8724 #define crypt innocuous_crypt
8726 /* System header to define __stub macros and hopefully few prototypes,
8727 which can conflict with char crypt (); below.
8728 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8729 <limits.h> exists even on freestanding compilers. */
8732 # include <limits.h>
8734 # include <assert.h>
8739 /* Override any gcc2 internal prototype to avoid an error. */
8744 /* We use char because int might match the return type of a gcc2
8745 builtin and then its argument prototype would still apply. */
8747 /* The GNU C library defines this for functions which it implements
8748 to always fail with ENOSYS. Some functions are actually named
8749 something starting with __ and the normal name is an alias. */
8750 #if defined (__stub_crypt) || defined (__stub___crypt)
8753 char (*f) () = crypt;
8767 rm -f conftest.$ac_objext conftest$ac_exeext
8768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8769 (eval $ac_link) 2>conftest.er1
8771 grep -v '^ *+' conftest.er1 >conftest.err
8773 cat conftest.err >&5
8774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8775 (exit $ac_status); } &&
8776 { ac_try='test -z "$ac_c_werror_flag"
8777 || test ! -s conftest.err'
8778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782 (exit $ac_status); }; } &&
8783 { ac_try='test -s conftest$ac_exeext'
8784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8788 (exit $ac_status); }; }; then
8789 ac_cv_func_crypt=yes
8791 echo "$as_me: failed program was:" >&5
8792 sed 's/^/| /' conftest.$ac_ext >&5
8796 rm -f conftest.err conftest.$ac_objext \
8797 conftest$ac_exeext conftest.$ac_ext
8799 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
8800 echo "${ECHO_T}$ac_cv_func_crypt" >&6
8801 if test $ac_cv_func_crypt = yes; then
8804 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
8805 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
8806 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
8807 echo $ECHO_N "(cached) $ECHO_C" >&6
8809 ac_check_lib_save_LIBS=$LIBS
8810 LIBS="-lcrypt $LIBS"
8811 cat >conftest.$ac_ext <<_ACEOF
8814 cat confdefs.h >>conftest.$ac_ext
8815 cat >>conftest.$ac_ext <<_ACEOF
8816 /* end confdefs.h. */
8818 /* Override any gcc2 internal prototype to avoid an error. */
8822 /* We use char because int might match the return type of a gcc2
8823 builtin and then its argument prototype would still apply. */
8833 rm -f conftest.$ac_objext conftest$ac_exeext
8834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8835 (eval $ac_link) 2>conftest.er1
8837 grep -v '^ *+' conftest.er1 >conftest.err
8839 cat conftest.err >&5
8840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8841 (exit $ac_status); } &&
8842 { ac_try='test -z "$ac_c_werror_flag"
8843 || test ! -s conftest.err'
8844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8848 (exit $ac_status); }; } &&
8849 { ac_try='test -s conftest$ac_exeext'
8850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8854 (exit $ac_status); }; }; then
8855 ac_cv_lib_crypt_crypt=yes
8857 echo "$as_me: failed program was:" >&5
8858 sed 's/^/| /' conftest.$ac_ext >&5
8860 ac_cv_lib_crypt_crypt=no
8862 rm -f conftest.err conftest.$ac_objext \
8863 conftest$ac_exeext conftest.$ac_ext
8864 LIBS=$ac_check_lib_save_LIBS
8866 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
8867 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
8868 if test $ac_cv_lib_crypt_crypt = yes; then
8869 POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
8874 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
8875 SQL_LFLAGS=$POSTGRESQL_LFLAGS
8876 SQL_BINDIR=$POSTGRESQL_BINDIR
8877 cat >>confdefs.h <<\_ACEOF
8878 #define HAVE_POSTGRESQL 1
8881 echo "$as_me:$LINENO: result: yes" >&5
8882 echo "${ECHO_T}yes" >&6
8884 support_postgresql=yes
8888 echo "$as_me:$LINENO: result: no" >&5
8889 echo "${ECHO_T}no" >&6
8894 echo "$as_me:$LINENO: result: no" >&5
8895 echo "${ECHO_T}no" >&6
8906 echo "$as_me:$LINENO: checking for MySQL support" >&5
8907 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
8909 # Check whether --with-mysql or --without-mysql was given.
8910 if test "${with_mysql+set}" = set; then
8911 withval="$with_mysql"
8913 if test "$withval" != "no"; then
8914 if test "$withval" = "yes"; then
8915 if test -f /usr/local/mysql/include/mysql/mysql.h; then
8916 MYSQL_INCDIR=/usr/local/mysql/include/mysql
8917 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
8918 MYSQL_BINDIR=/usr/local/mysql/bin
8919 elif test -f /usr/include/mysql/mysql.h; then
8920 MYSQL_INCDIR=/usr/include/mysql
8921 MYSQL_LIBDIR=/usr/lib/mysql
8922 MYSQL_BINDIR=/usr/bin
8923 elif test -f /usr/include/mysql.h; then
8924 MYSQL_INCDIR=/usr/include
8925 MYSQL_LIBDIR=/usr/lib
8926 MYSQL_BINDIR=/usr/bin
8927 elif test -f /usr/local/include/mysql/mysql.h; then
8928 MYSQL_INCDIR=/usr/local/include/mysql
8929 MYSQL_LIBDIR=/usr/local/lib/mysql
8930 MYSQL_BINDIR=/usr/local/bin
8931 elif test -f /usr/local/include/mysql.h; then
8932 MYSQL_INCDIR=/usr/local/include
8933 MYSQL_LIBDIR=/usr/local/lib
8934 MYSQL_BINDIR=/usr/local/bin
8936 echo "$as_me:$LINENO: result: no" >&5
8937 echo "${ECHO_T}no" >&6
8938 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
8939 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
8940 { (exit 1); exit 1; }; }
8943 if test -f $withval/include/mysql/mysql.h; then
8944 MYSQL_INCDIR=$withval/include/mysql
8945 MYSQL_LIBDIR=$withval/lib/mysql
8946 MYSQL_BINDIR=$withval/bin
8947 elif test -f $withval/include/mysql.h; then
8948 MYSQL_INCDIR=$withval/include
8949 MYSQL_LIBDIR=$withval/lib
8950 MYSQL_BINDIR=$withval/bin
8952 echo "$as_me:$LINENO: result: no" >&5
8953 echo "${ECHO_T}no" >&6
8954 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
8955 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
8956 { (exit 1); exit 1; }; }
8959 SQL_INCLUDE=-I$MYSQL_INCDIR
8960 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
8961 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
8962 cat >>confdefs.h <<\_ACEOF
8963 #define HAVE_THREAD_SAFE_MYSQL 1
8967 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
8969 SQL_BINDIR=$MYSQL_BINDIR
8971 cat >>confdefs.h <<\_ACEOF
8972 #define HAVE_MYSQL 1
8975 echo "$as_me:$LINENO: result: yes" >&5
8976 echo "${ECHO_T}yes" >&6
8983 echo "$as_me:$LINENO: result: no" >&5
8984 echo "${ECHO_T}no" >&6
8991 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
8992 if test "${with_embedded_mysql+set}" = set; then
8993 withval="$with_embedded_mysql"
8995 if test "$withval" != "no"; then
8996 if test "$withval" = "yes"; then
8997 if test -f /usr/local/mysql/include/mysql/mysql.h; then
8998 MYSQL_INCDIR=/usr/local/mysql/include/mysql
8999 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
9000 MYSQL_BINDIR=/usr/local/mysql/bin
9001 elif test -f /usr/include/mysql/mysql.h; then
9002 MYSQL_INCDIR=/usr/include/mysql
9003 MYSQL_LIBDIR=/usr/lib/mysql
9004 MYSQL_BINDIR=/usr/bin
9005 elif test -f /usr/include/mysql.h; then
9006 MYSQL_INCDIR=/usr/include
9007 MYSQL_LIBDIR=/usr/lib
9008 MYSQL_BINDIR=/usr/bin
9009 elif test -f /usr/local/include/mysql/mysql.h; then
9010 MYSQL_INCDIR=/usr/local/include/mysql
9011 MYSQL_LIBDIR=/usr/local/lib/mysql
9012 MYSQL_BINDIR=/usr/local/bin
9013 elif test -f /usr/local/include/mysql.h; then
9014 MYSQL_INCDIR=/usr/local/include
9015 MYSQL_LIBDIR=/usr/local/lib
9016 MYSQL_BINDIR=/usr/local/bin
9018 echo "$as_me:$LINENO: result: no" >&5
9019 echo "${ECHO_T}no" >&6
9020 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
9021 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
9022 { (exit 1); exit 1; }; }
9025 if test -f $withval/include/mysql/mysql.h; then
9026 MYSQL_INCDIR=$withval/include/mysql
9027 MYSQL_LIBDIR=$withval/lib/mysql
9028 MYSQL_BINDIR=$withval/bin
9029 elif test -f $withval/include/mysql.h; then
9030 MYSQL_INCDIR=$withval/include
9031 MYSQL_LIBDIR=$withval/lib
9032 MYSQL_BINDIR=$withval/bin
9034 echo "$as_me:$LINENO: result: no" >&5
9035 echo "${ECHO_T}no" >&6
9036 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
9037 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
9038 { (exit 1); exit 1; }; }
9041 SQL_INCLUDE=-I$MYSQL_INCDIR
9042 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
9043 SQL_BINDIR=$MYSQL_BINDIR
9045 cat >>confdefs.h <<\_ACEOF
9046 #define HAVE_MYSQL 1
9049 cat >>confdefs.h <<\_ACEOF
9050 #define HAVE_EMBEDDED_MYSQL 1
9053 echo "$as_me:$LINENO: result: yes" >&5
9054 echo "${ECHO_T}yes" >&6
9061 echo "$as_me:$LINENO: result: no" >&5
9062 echo "${ECHO_T}no" >&6
9077 echo "$as_me:$LINENO: checking for SQLite3 support" >&5
9078 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6
9080 # Check whether --with-sqlite3 or --without-sqlite3 was given.
9081 if test "${with_sqlite3+set}" = set; then
9082 withval="$with_sqlite3"
9084 if test "$withval" != "no"; then
9085 if test "$withval" = "yes"; then
9086 if test -f /usr/local/include/sqlite3.h; then
9087 SQLITE_INCDIR=/usr/local/include
9088 SQLITE_LIBDIR=/usr/local/lib
9089 SQLITE_BINDIR=/usr/local/bin
9090 elif test -f /usr/include/sqlite3.h; then
9091 SQLITE_INCDIR=/usr/include
9092 SQLITE_LIBDIR=/usr/lib
9093 SQLITE_BINDIR=/usr/bin
9094 elif test -f $prefix/include/sqlite3.h; then
9095 SQLITE_INCDIR=$prefix/include
9096 SQLITE_LIBDIR=$prefix/lib
9097 SQLITE_BINDIR=$prefix/bin
9099 echo "$as_me:$LINENO: result: no" >&5
9100 echo "${ECHO_T}no" >&6
9101 { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
9102 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
9103 { (exit 1); exit 1; }; }
9106 if test -f $withval/sqlite3.h; then
9107 SQLITE_INCDIR=$withval
9108 SQLITE_LIBDIR=$withval
9109 SQLITE_BINDIR=$withval
9110 elif test -f $withval/include/sqlite3.h; then
9111 SQLITE_INCDIR=$withval/include
9112 SQLITE_LIBDIR=$withval/lib
9113 SQLITE_BINDIR=$withval/bin
9115 echo "$as_me:$LINENO: result: no" >&5
9116 echo "${ECHO_T}no" >&6
9117 { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
9118 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
9119 { (exit 1); exit 1; }; }
9122 SQL_INCLUDE=-I$SQLITE_INCDIR
9123 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
9124 SQL_BINDIR=$SQLITE_BINDIR
9126 cat >>confdefs.h <<\_ACEOF
9127 #define HAVE_SQLITE3 1
9130 echo "$as_me:$LINENO: result: yes" >&5
9131 echo "${ECHO_T}yes" >&6
9138 echo "$as_me:$LINENO: result: no" >&5
9139 echo "${ECHO_T}no" >&6
9144 echo "$as_me:$LINENO: result: no" >&5
9145 echo "${ECHO_T}no" >&6
9156 echo "$as_me:$LINENO: checking for SQLite support" >&5
9157 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
9159 # Check whether --with-sqlite or --without-sqlite was given.
9160 if test "${with_sqlite+set}" = set; then
9161 withval="$with_sqlite"
9163 if test "$withval" != "no"; then
9164 if test "$withval" = "yes"; then
9165 if test -f /usr/local/include/sqlite.h; then
9166 SQLITE_INCDIR=/usr/local/include
9167 SQLITE_LIBDIR=/usr/local/lib
9168 SQLITE_BINDIR=/usr/local/bin
9169 elif test -f /usr/include/sqlite.h; then
9170 SQLITE_INCDIR=/usr/include
9171 SQLITE_LIBDIR=/usr/lib
9172 SQLITE_BINDIR=/usr/bin
9173 elif test -f $prefix/include/sqlite.h; then
9174 SQLITE_INCDIR=$prefix/include
9175 SQLITE_LIBDIR=$prefix/lib
9176 SQLITE_BINDIR=$prefix/bin
9178 echo "$as_me:$LINENO: result: no" >&5
9179 echo "${ECHO_T}no" >&6
9180 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
9181 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
9182 { (exit 1); exit 1; }; }
9185 if test -f $withval/sqlite.h; then
9186 SQLITE_INCDIR=$withval
9187 SQLITE_LIBDIR=$withval
9188 SQLITE_BINDIR=$withval
9189 elif test -f $withval/include/sqlite.h; then
9190 SQLITE_INCDIR=$withval/include
9191 SQLITE_LIBDIR=$withval/lib
9192 SQLITE_BINDIR=$withval/bin
9194 echo "$as_me:$LINENO: result: no" >&5
9195 echo "${ECHO_T}no" >&6
9196 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
9197 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
9198 { (exit 1); exit 1; }; }
9201 SQL_INCLUDE=-I$SQLITE_INCDIR
9202 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
9203 SQL_BINDIR=$SQLITE_BINDIR
9205 cat >>confdefs.h <<\_ACEOF
9206 #define HAVE_SQLITE 1
9209 echo "$as_me:$LINENO: result: yes" >&5
9210 echo "${ECHO_T}yes" >&6
9217 echo "$as_me:$LINENO: result: no" >&5
9218 echo "${ECHO_T}no" >&6
9223 echo "$as_me:$LINENO: result: no" >&5
9224 echo "${ECHO_T}no" >&6
9236 cat >>confdefs.h <<\_ACEOF
9237 #define PROTOTYPES 1
9241 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
9242 if test -z "$CCOPTS"; then
9243 CCOPTS='-g -O2 -Wall'
9251 largefile_support="no"
9253 # Check whether --enable-largefile or --disable-largefile was given.
9254 if test "${enable_largefile+set}" = set; then
9255 enableval="$enable_largefile"
9258 if test "$enable_largefile" != no; then
9259 if test -n "$ac_tool_prefix"; then
9260 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
9261 set dummy ${ac_tool_prefix}getconf; ac_word=$2
9262 echo "$as_me:$LINENO: checking for $ac_word" >&5
9263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9264 if test "${ac_cv_prog_GETCONF+set}" = set; then
9265 echo $ECHO_N "(cached) $ECHO_C" >&6
9267 if test -n "$GETCONF"; then
9268 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
9270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9274 test -z "$as_dir" && as_dir=.
9275 for ac_exec_ext in '' $ac_executable_extensions; do
9276 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9277 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
9278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9286 GETCONF=$ac_cv_prog_GETCONF
9287 if test -n "$GETCONF"; then
9288 echo "$as_me:$LINENO: result: $GETCONF" >&5
9289 echo "${ECHO_T}$GETCONF" >&6
9291 echo "$as_me:$LINENO: result: no" >&5
9292 echo "${ECHO_T}no" >&6
9296 if test -z "$ac_cv_prog_GETCONF"; then
9297 ac_ct_GETCONF=$GETCONF
9298 # Extract the first word of "getconf", so it can be a program name with args.
9299 set dummy getconf; ac_word=$2
9300 echo "$as_me:$LINENO: checking for $ac_word" >&5
9301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9302 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
9303 echo $ECHO_N "(cached) $ECHO_C" >&6
9305 if test -n "$ac_ct_GETCONF"; then
9306 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
9308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9312 test -z "$as_dir" && as_dir=.
9313 for ac_exec_ext in '' $ac_executable_extensions; do
9314 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9315 ac_cv_prog_ac_ct_GETCONF="getconf"
9316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9324 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
9325 if test -n "$ac_ct_GETCONF"; then
9326 echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
9327 echo "${ECHO_T}$ac_ct_GETCONF" >&6
9329 echo "$as_me:$LINENO: result: no" >&5
9330 echo "${ECHO_T}no" >&6
9333 GETCONF=$ac_ct_GETCONF
9335 GETCONF="$ac_cv_prog_GETCONF"
9338 echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
9339 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
9340 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
9341 echo $ECHO_N "(cached) $ECHO_C" >&6
9343 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
9344 ac_cv_sys_largefile_CFLAGS=no
9346 # IRIX 6.2 and later require cc -n32.
9347 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
9348 if test "$GCC" != yes; then
9349 ac_cv_sys_largefile_CFLAGS=-n32
9352 CC="$CC $ac_cv_sys_largefile_CFLAGS"
9353 cat >conftest.$ac_ext <<_ACEOF
9356 cat confdefs.h >>conftest.$ac_ext
9357 cat >>conftest.$ac_ext <<_ACEOF
9358 /* end confdefs.h. */
9368 rm -f conftest.$ac_objext conftest$ac_exeext
9369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9370 (eval $ac_link) 2>conftest.er1
9372 grep -v '^ *+' conftest.er1 >conftest.err
9374 cat conftest.err >&5
9375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9376 (exit $ac_status); } &&
9377 { ac_try='test -z "$ac_c_werror_flag"
9378 || test ! -s conftest.err'
9379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9383 (exit $ac_status); }; } &&
9384 { ac_try='test -s conftest$ac_exeext'
9385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9389 (exit $ac_status); }; }; then
9392 echo "$as_me: failed program was:" >&5
9393 sed 's/^/| /' conftest.$ac_ext >&5
9395 ac_cv_sys_largefile_CFLAGS=no
9397 rm -f conftest.err conftest.$ac_objext \
9398 conftest$ac_exeext conftest.$ac_ext
9403 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
9404 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
9405 echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
9406 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
9407 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
9408 echo $ECHO_N "(cached) $ECHO_C" >&6
9410 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
9411 ac_cv_sys_largefile_LDFLAGS=no
9415 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
9416 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
9417 echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
9418 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
9419 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
9420 echo $ECHO_N "(cached) $ECHO_C" >&6
9422 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
9423 ac_cv_sys_largefile_LIBS=no
9427 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
9428 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
9430 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9433 -D_FILE_OFFSET_BITS=*) ;;
9434 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
9435 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
9441 '') CPPFLAGS="$ac_flag" ;;
9442 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
9450 '') CFLAGS="$ac_flag" ;;
9451 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
9456 case "$ac_cv_sys_largefile_LDFLAGS" in
9460 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
9461 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
9464 case "$ac_cv_sys_largefile_LIBS" in
9468 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
9469 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
9472 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
9473 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
9474 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
9475 echo $ECHO_N "(cached) $ECHO_C" >&6
9477 ac_cv_sys_file_offset_bits=no
9478 ac_cv_sys_file_offset_bits=64
9479 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9481 -D_FILE_OFFSET_BITS)
9482 ac_cv_sys_file_offset_bits=1 ;;
9483 -D_FILE_OFFSET_BITS=*)
9484 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9489 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
9490 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
9491 if test "$ac_cv_sys_file_offset_bits" != no; then
9493 cat >>confdefs.h <<_ACEOF
9494 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9498 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
9499 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
9500 if test "${ac_cv_sys_largefile_source+set}" = set; then
9501 echo $ECHO_N "(cached) $ECHO_C" >&6
9503 ac_cv_sys_largefile_source=no
9504 ac_cv_sys_largefile_source=1
9505 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9507 -D_LARGEFILE_SOURCE)
9508 ac_cv_sys_largefile_source=1 ;;
9509 -D_LARGEFILE_SOURCE=*)
9510 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9515 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
9516 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
9517 if test "$ac_cv_sys_largefile_source" != no; then
9519 cat >>confdefs.h <<_ACEOF
9520 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9524 echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
9525 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
9526 if test "${ac_cv_sys_large_files+set}" = set; then
9527 echo $ECHO_N "(cached) $ECHO_C" >&6
9529 ac_cv_sys_large_files=no
9530 ac_cv_sys_large_files=1
9531 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9534 ac_cv_sys_large_files=1 ;;
9536 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9541 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
9542 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
9543 if test "$ac_cv_sys_large_files" != no; then
9545 cat >>confdefs.h <<_ACEOF
9546 #define _LARGE_FILES $ac_cv_sys_large_files
9554 echo "$as_me:$LINENO: checking for X" >&5
9555 echo $ECHO_N "checking for X... $ECHO_C" >&6
9558 # Check whether --with-x or --without-x was given.
9559 if test "${with_x+set}" = set; then
9563 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9564 if test "x$with_x" = xno; then
9565 # The user explicitly disabled X.
9568 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
9569 # Both variables are already set.
9572 if test "${ac_cv_have_x+set}" = set; then
9573 echo $ECHO_N "(cached) $ECHO_C" >&6
9575 # One or both of the vars are not set, and there is no cached value.
9576 ac_x_includes=no ac_x_libraries=no
9578 if mkdir conftest.dir; then
9580 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
9581 cat >Imakefile <<'_ACEOF'
9583 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9585 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9586 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9587 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9588 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9589 for ac_extension in a so sl; do
9590 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
9591 test -f $ac_im_libdir/libX11.$ac_extension; then
9592 ac_im_usrlibdir=$ac_im_libdir; break
9595 # Screen out bogus values from the imake configuration. They are
9596 # bogus both because they are the default anyway, and because
9597 # using them would break gcc on systems where it needs fixed includes.
9598 case $ac_im_incroot in
9600 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9602 case $ac_im_usrlibdir in
9604 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9611 # Standard set of common directories for X headers.
9612 # Check X11 before X11Rn because it is often a symlink to the current release.
9624 /usr/local/X11/include
9625 /usr/local/X11R6/include
9626 /usr/local/X11R5/include
9627 /usr/local/X11R4/include
9629 /usr/local/include/X11
9630 /usr/local/include/X11R6
9631 /usr/local/include/X11R5
9632 /usr/local/include/X11R4
9636 /usr/XFree86/include/X11
9640 /usr/unsupported/include
9642 /usr/local/x11r5/include
9643 /usr/lpp/Xamples/include
9645 /usr/openwin/include
9646 /usr/openwin/share/include'
9648 if test "$ac_x_includes" = no; then
9649 # Guess where to find include files, by looking for Intrinsic.h.
9650 # First, try using that file with no special directory specified.
9651 cat >conftest.$ac_ext <<_ACEOF
9654 cat confdefs.h >>conftest.$ac_ext
9655 cat >>conftest.$ac_ext <<_ACEOF
9656 /* end confdefs.h. */
9657 #include <X11/Intrinsic.h>
9659 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9660 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9662 grep -v '^ *+' conftest.er1 >conftest.err
9664 cat conftest.err >&5
9665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9666 (exit $ac_status); } >/dev/null; then
9667 if test -s conftest.err; then
9668 ac_cpp_err=$ac_c_preproc_warn_flag
9669 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9676 if test -z "$ac_cpp_err"; then
9677 # We can compile using X headers with no special include directory.
9680 echo "$as_me: failed program was:" >&5
9681 sed 's/^/| /' conftest.$ac_ext >&5
9683 for ac_dir in $ac_x_header_dirs; do
9684 if test -r "$ac_dir/X11/Intrinsic.h"; then
9685 ac_x_includes=$ac_dir
9690 rm -f conftest.err conftest.$ac_ext
9691 fi # $ac_x_includes = no
9693 if test "$ac_x_libraries" = no; then
9694 # Check for the libraries.
9695 # See if we find them without any special options.
9696 # Don't add to $LIBS permanently.
9699 cat >conftest.$ac_ext <<_ACEOF
9702 cat confdefs.h >>conftest.$ac_ext
9703 cat >>conftest.$ac_ext <<_ACEOF
9704 /* end confdefs.h. */
9705 #include <X11/Intrinsic.h>
9714 rm -f conftest.$ac_objext conftest$ac_exeext
9715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9716 (eval $ac_link) 2>conftest.er1
9718 grep -v '^ *+' conftest.er1 >conftest.err
9720 cat conftest.err >&5
9721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9722 (exit $ac_status); } &&
9723 { ac_try='test -z "$ac_c_werror_flag"
9724 || test ! -s conftest.err'
9725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9729 (exit $ac_status); }; } &&
9730 { ac_try='test -s conftest$ac_exeext'
9731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9735 (exit $ac_status); }; }; then
9737 # We can link X programs with no special library path.
9740 echo "$as_me: failed program was:" >&5
9741 sed 's/^/| /' conftest.$ac_ext >&5
9744 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9746 # Don't even attempt the hair of trying to link an X program!
9747 for ac_extension in a so sl; do
9748 if test -r $ac_dir/libXt.$ac_extension; then
9749 ac_x_libraries=$ac_dir
9755 rm -f conftest.err conftest.$ac_objext \
9756 conftest$ac_exeext conftest.$ac_ext
9757 fi # $ac_x_libraries = no
9759 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
9760 # Didn't find X anywhere. Cache the known absence of X.
9761 ac_cv_have_x="have_x=no"
9763 # Record where we found X for the cache.
9764 ac_cv_have_x="have_x=yes \
9765 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9770 eval "$ac_cv_have_x"
9773 if test "$have_x" != yes; then
9774 echo "$as_me:$LINENO: result: $have_x" >&5
9775 echo "${ECHO_T}$have_x" >&6
9778 # If each of the values was on the command line, it overrides each guess.
9779 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9780 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9781 # Update the cache value to reflect the command line values.
9782 ac_cv_have_x="have_x=yes \
9783 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9784 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9785 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
9788 if test "$no_x" = yes; then
9789 # Not all programs may use this symbol, but it does not hurt to define it.
9791 cat >>confdefs.h <<\_ACEOF
9792 #define X_DISPLAY_MISSING 1
9795 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
9797 if test -n "$x_includes"; then
9798 X_CFLAGS="$X_CFLAGS -I$x_includes"
9801 # It would also be nice to do this for all -L options, not just this one.
9802 if test -n "$x_libraries"; then
9803 X_LIBS="$X_LIBS -L$x_libraries"
9804 # For Solaris; some versions of Sun CC require a space after -R and
9805 # others require no space. Words are not sufficient . . . .
9806 case `(uname -sr) 2>/dev/null` in
9808 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
9809 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
9810 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
9811 cat >conftest.$ac_ext <<_ACEOF
9814 cat confdefs.h >>conftest.$ac_ext
9815 cat >>conftest.$ac_ext <<_ACEOF
9816 /* end confdefs.h. */
9826 rm -f conftest.$ac_objext conftest$ac_exeext
9827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9828 (eval $ac_link) 2>conftest.er1
9830 grep -v '^ *+' conftest.er1 >conftest.err
9832 cat conftest.err >&5
9833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9834 (exit $ac_status); } &&
9835 { ac_try='test -z "$ac_c_werror_flag"
9836 || test ! -s conftest.err'
9837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9841 (exit $ac_status); }; } &&
9842 { ac_try='test -s conftest$ac_exeext'
9843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9847 (exit $ac_status); }; }; then
9850 echo "$as_me: failed program was:" >&5
9851 sed 's/^/| /' conftest.$ac_ext >&5
9855 rm -f conftest.err conftest.$ac_objext \
9856 conftest$ac_exeext conftest.$ac_ext
9857 if test $ac_R_nospace = yes; then
9858 echo "$as_me:$LINENO: result: no" >&5
9859 echo "${ECHO_T}no" >&6
9860 X_LIBS="$X_LIBS -R$x_libraries"
9862 LIBS="$ac_xsave_LIBS -R $x_libraries"
9863 cat >conftest.$ac_ext <<_ACEOF
9866 cat confdefs.h >>conftest.$ac_ext
9867 cat >>conftest.$ac_ext <<_ACEOF
9868 /* end confdefs.h. */
9878 rm -f conftest.$ac_objext conftest$ac_exeext
9879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9880 (eval $ac_link) 2>conftest.er1
9882 grep -v '^ *+' conftest.er1 >conftest.err
9884 cat conftest.err >&5
9885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9886 (exit $ac_status); } &&
9887 { ac_try='test -z "$ac_c_werror_flag"
9888 || test ! -s conftest.err'
9889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9893 (exit $ac_status); }; } &&
9894 { ac_try='test -s conftest$ac_exeext'
9895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9899 (exit $ac_status); }; }; then
9902 echo "$as_me: failed program was:" >&5
9903 sed 's/^/| /' conftest.$ac_ext >&5
9907 rm -f conftest.err conftest.$ac_objext \
9908 conftest$ac_exeext conftest.$ac_ext
9909 if test $ac_R_space = yes; then
9910 echo "$as_me:$LINENO: result: yes" >&5
9911 echo "${ECHO_T}yes" >&6
9912 X_LIBS="$X_LIBS -R $x_libraries"
9914 echo "$as_me:$LINENO: result: neither works" >&5
9915 echo "${ECHO_T}neither works" >&6
9922 # Check for system-dependent libraries X programs must link with.
9923 # Do this before checking for the system-independent R6 libraries
9924 # (-lICE), since we may need -lsocket or whatever for X linking.
9926 if test "$ISC" = yes; then
9927 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
9929 # Martyn Johnson says this is needed for Ultrix, if the X
9930 # libraries were built with DECnet support. And Karl Berry says
9931 # the Alpha needs dnet_stub (dnet does not exist).
9932 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
9933 cat >conftest.$ac_ext <<_ACEOF
9936 cat confdefs.h >>conftest.$ac_ext
9937 cat >>conftest.$ac_ext <<_ACEOF
9938 /* end confdefs.h. */
9940 /* Override any gcc2 internal prototype to avoid an error. */
9944 /* We use char because int might match the return type of a gcc2
9945 builtin and then its argument prototype would still apply. */
9946 char XOpenDisplay ();
9955 rm -f conftest.$ac_objext conftest$ac_exeext
9956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9957 (eval $ac_link) 2>conftest.er1
9959 grep -v '^ *+' conftest.er1 >conftest.err
9961 cat conftest.err >&5
9962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9963 (exit $ac_status); } &&
9964 { ac_try='test -z "$ac_c_werror_flag"
9965 || test ! -s conftest.err'
9966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970 (exit $ac_status); }; } &&
9971 { ac_try='test -s conftest$ac_exeext'
9972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9976 (exit $ac_status); }; }; then
9979 echo "$as_me: failed program was:" >&5
9980 sed 's/^/| /' conftest.$ac_ext >&5
9982 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9983 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9984 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9985 echo $ECHO_N "(cached) $ECHO_C" >&6
9987 ac_check_lib_save_LIBS=$LIBS
9989 cat >conftest.$ac_ext <<_ACEOF
9992 cat confdefs.h >>conftest.$ac_ext
9993 cat >>conftest.$ac_ext <<_ACEOF
9994 /* end confdefs.h. */
9996 /* Override any gcc2 internal prototype to avoid an error. */
10000 /* We use char because int might match the return type of a gcc2
10001 builtin and then its argument prototype would still apply. */
10011 rm -f conftest.$ac_objext conftest$ac_exeext
10012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10013 (eval $ac_link) 2>conftest.er1
10015 grep -v '^ *+' conftest.er1 >conftest.err
10017 cat conftest.err >&5
10018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10019 (exit $ac_status); } &&
10020 { ac_try='test -z "$ac_c_werror_flag"
10021 || test ! -s conftest.err'
10022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10023 (eval $ac_try) 2>&5
10025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10026 (exit $ac_status); }; } &&
10027 { ac_try='test -s conftest$ac_exeext'
10028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10029 (eval $ac_try) 2>&5
10031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032 (exit $ac_status); }; }; then
10033 ac_cv_lib_dnet_dnet_ntoa=yes
10035 echo "$as_me: failed program was:" >&5
10036 sed 's/^/| /' conftest.$ac_ext >&5
10038 ac_cv_lib_dnet_dnet_ntoa=no
10040 rm -f conftest.err conftest.$ac_objext \
10041 conftest$ac_exeext conftest.$ac_ext
10042 LIBS=$ac_check_lib_save_LIBS
10044 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10045 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
10046 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10047 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
10050 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
10051 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
10052 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
10053 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
10054 echo $ECHO_N "(cached) $ECHO_C" >&6
10056 ac_check_lib_save_LIBS=$LIBS
10057 LIBS="-ldnet_stub $LIBS"
10058 cat >conftest.$ac_ext <<_ACEOF
10061 cat confdefs.h >>conftest.$ac_ext
10062 cat >>conftest.$ac_ext <<_ACEOF
10063 /* end confdefs.h. */
10065 /* Override any gcc2 internal prototype to avoid an error. */
10069 /* We use char because int might match the return type of a gcc2
10070 builtin and then its argument prototype would still apply. */
10080 rm -f conftest.$ac_objext conftest$ac_exeext
10081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10082 (eval $ac_link) 2>conftest.er1
10084 grep -v '^ *+' conftest.er1 >conftest.err
10086 cat conftest.err >&5
10087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10088 (exit $ac_status); } &&
10089 { ac_try='test -z "$ac_c_werror_flag"
10090 || test ! -s conftest.err'
10091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10092 (eval $ac_try) 2>&5
10094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10095 (exit $ac_status); }; } &&
10096 { ac_try='test -s conftest$ac_exeext'
10097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10098 (eval $ac_try) 2>&5
10100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10101 (exit $ac_status); }; }; then
10102 ac_cv_lib_dnet_stub_dnet_ntoa=yes
10104 echo "$as_me: failed program was:" >&5
10105 sed 's/^/| /' conftest.$ac_ext >&5
10107 ac_cv_lib_dnet_stub_dnet_ntoa=no
10109 rm -f conftest.err conftest.$ac_objext \
10110 conftest$ac_exeext conftest.$ac_ext
10111 LIBS=$ac_check_lib_save_LIBS
10113 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
10114 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
10115 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
10116 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
10121 rm -f conftest.err conftest.$ac_objext \
10122 conftest$ac_exeext conftest.$ac_ext
10123 LIBS="$ac_xsave_LIBS"
10125 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
10126 # to get the SysV transport functions.
10127 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
10129 # The nsl library prevents programs from opening the X display
10130 # on Irix 5.2, according to T.E. Dickey.
10131 # The functions gethostbyname, getservbyname, and inet_addr are
10132 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
10133 echo "$as_me:$LINENO: checking for gethostbyname" >&5
10134 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
10135 if test "${ac_cv_func_gethostbyname+set}" = set; then
10136 echo $ECHO_N "(cached) $ECHO_C" >&6
10138 cat >conftest.$ac_ext <<_ACEOF
10141 cat confdefs.h >>conftest.$ac_ext
10142 cat >>conftest.$ac_ext <<_ACEOF
10143 /* end confdefs.h. */
10144 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
10145 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10146 #define gethostbyname innocuous_gethostbyname
10148 /* System header to define __stub macros and hopefully few prototypes,
10149 which can conflict with char gethostbyname (); below.
10150 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10151 <limits.h> exists even on freestanding compilers. */
10154 # include <limits.h>
10156 # include <assert.h>
10159 #undef gethostbyname
10161 /* Override any gcc2 internal prototype to avoid an error. */
10166 /* We use char because int might match the return type of a gcc2
10167 builtin and then its argument prototype would still apply. */
10168 char gethostbyname ();
10169 /* The GNU C library defines this for functions which it implements
10170 to always fail with ENOSYS. Some functions are actually named
10171 something starting with __ and the normal name is an alias. */
10172 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
10175 char (*f) () = gethostbyname;
10184 return f != gethostbyname;
10189 rm -f conftest.$ac_objext conftest$ac_exeext
10190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10191 (eval $ac_link) 2>conftest.er1
10193 grep -v '^ *+' conftest.er1 >conftest.err
10195 cat conftest.err >&5
10196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10197 (exit $ac_status); } &&
10198 { ac_try='test -z "$ac_c_werror_flag"
10199 || test ! -s conftest.err'
10200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10201 (eval $ac_try) 2>&5
10203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10204 (exit $ac_status); }; } &&
10205 { ac_try='test -s conftest$ac_exeext'
10206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10207 (eval $ac_try) 2>&5
10209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10210 (exit $ac_status); }; }; then
10211 ac_cv_func_gethostbyname=yes
10213 echo "$as_me: failed program was:" >&5
10214 sed 's/^/| /' conftest.$ac_ext >&5
10216 ac_cv_func_gethostbyname=no
10218 rm -f conftest.err conftest.$ac_objext \
10219 conftest$ac_exeext conftest.$ac_ext
10221 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
10222 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
10224 if test $ac_cv_func_gethostbyname = no; then
10225 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
10226 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
10227 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
10228 echo $ECHO_N "(cached) $ECHO_C" >&6
10230 ac_check_lib_save_LIBS=$LIBS
10232 cat >conftest.$ac_ext <<_ACEOF
10235 cat confdefs.h >>conftest.$ac_ext
10236 cat >>conftest.$ac_ext <<_ACEOF
10237 /* end confdefs.h. */
10239 /* Override any gcc2 internal prototype to avoid an error. */
10243 /* We use char because int might match the return type of a gcc2
10244 builtin and then its argument prototype would still apply. */
10245 char gethostbyname ();
10254 rm -f conftest.$ac_objext conftest$ac_exeext
10255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10256 (eval $ac_link) 2>conftest.er1
10258 grep -v '^ *+' conftest.er1 >conftest.err
10260 cat conftest.err >&5
10261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10262 (exit $ac_status); } &&
10263 { ac_try='test -z "$ac_c_werror_flag"
10264 || test ! -s conftest.err'
10265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10266 (eval $ac_try) 2>&5
10268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269 (exit $ac_status); }; } &&
10270 { ac_try='test -s conftest$ac_exeext'
10271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10272 (eval $ac_try) 2>&5
10274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275 (exit $ac_status); }; }; then
10276 ac_cv_lib_nsl_gethostbyname=yes
10278 echo "$as_me: failed program was:" >&5
10279 sed 's/^/| /' conftest.$ac_ext >&5
10281 ac_cv_lib_nsl_gethostbyname=no
10283 rm -f conftest.err conftest.$ac_objext \
10284 conftest$ac_exeext conftest.$ac_ext
10285 LIBS=$ac_check_lib_save_LIBS
10287 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
10288 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
10289 if test $ac_cv_lib_nsl_gethostbyname = yes; then
10290 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
10293 if test $ac_cv_lib_nsl_gethostbyname = no; then
10294 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
10295 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
10296 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
10297 echo $ECHO_N "(cached) $ECHO_C" >&6
10299 ac_check_lib_save_LIBS=$LIBS
10301 cat >conftest.$ac_ext <<_ACEOF
10304 cat confdefs.h >>conftest.$ac_ext
10305 cat >>conftest.$ac_ext <<_ACEOF
10306 /* end confdefs.h. */
10308 /* Override any gcc2 internal prototype to avoid an error. */
10312 /* We use char because int might match the return type of a gcc2
10313 builtin and then its argument prototype would still apply. */
10314 char gethostbyname ();
10323 rm -f conftest.$ac_objext conftest$ac_exeext
10324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10325 (eval $ac_link) 2>conftest.er1
10327 grep -v '^ *+' conftest.er1 >conftest.err
10329 cat conftest.err >&5
10330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10331 (exit $ac_status); } &&
10332 { ac_try='test -z "$ac_c_werror_flag"
10333 || test ! -s conftest.err'
10334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10335 (eval $ac_try) 2>&5
10337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338 (exit $ac_status); }; } &&
10339 { ac_try='test -s conftest$ac_exeext'
10340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10341 (eval $ac_try) 2>&5
10343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10344 (exit $ac_status); }; }; then
10345 ac_cv_lib_bsd_gethostbyname=yes
10347 echo "$as_me: failed program was:" >&5
10348 sed 's/^/| /' conftest.$ac_ext >&5
10350 ac_cv_lib_bsd_gethostbyname=no
10352 rm -f conftest.err conftest.$ac_objext \
10353 conftest$ac_exeext conftest.$ac_ext
10354 LIBS=$ac_check_lib_save_LIBS
10356 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
10357 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
10358 if test $ac_cv_lib_bsd_gethostbyname = yes; then
10359 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
10365 # lieder@skyler.mavd.honeywell.com says without -lsocket,
10366 # socket/setsockopt and other routines are undefined under SCO ODT
10367 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
10368 # on later versions), says Simon Leinen: it contains gethostby*
10369 # variants that don't use the name server (or something). -lsocket
10370 # must be given before -lnsl if both are needed. We assume that
10371 # if connect needs -lnsl, so does gethostbyname.
10372 echo "$as_me:$LINENO: checking for connect" >&5
10373 echo $ECHO_N "checking for connect... $ECHO_C" >&6
10374 if test "${ac_cv_func_connect+set}" = set; then
10375 echo $ECHO_N "(cached) $ECHO_C" >&6
10377 cat >conftest.$ac_ext <<_ACEOF
10380 cat confdefs.h >>conftest.$ac_ext
10381 cat >>conftest.$ac_ext <<_ACEOF
10382 /* end confdefs.h. */
10383 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
10384 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10385 #define connect innocuous_connect
10387 /* System header to define __stub macros and hopefully few prototypes,
10388 which can conflict with char connect (); below.
10389 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10390 <limits.h> exists even on freestanding compilers. */
10393 # include <limits.h>
10395 # include <assert.h>
10400 /* Override any gcc2 internal prototype to avoid an error. */
10405 /* We use char because int might match the return type of a gcc2
10406 builtin and then its argument prototype would still apply. */
10408 /* The GNU C library defines this for functions which it implements
10409 to always fail with ENOSYS. Some functions are actually named
10410 something starting with __ and the normal name is an alias. */
10411 #if defined (__stub_connect) || defined (__stub___connect)
10414 char (*f) () = connect;
10423 return f != connect;
10428 rm -f conftest.$ac_objext conftest$ac_exeext
10429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10430 (eval $ac_link) 2>conftest.er1
10432 grep -v '^ *+' conftest.er1 >conftest.err
10434 cat conftest.err >&5
10435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10436 (exit $ac_status); } &&
10437 { ac_try='test -z "$ac_c_werror_flag"
10438 || test ! -s conftest.err'
10439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10440 (eval $ac_try) 2>&5
10442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443 (exit $ac_status); }; } &&
10444 { ac_try='test -s conftest$ac_exeext'
10445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10446 (eval $ac_try) 2>&5
10448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449 (exit $ac_status); }; }; then
10450 ac_cv_func_connect=yes
10452 echo "$as_me: failed program was:" >&5
10453 sed 's/^/| /' conftest.$ac_ext >&5
10455 ac_cv_func_connect=no
10457 rm -f conftest.err conftest.$ac_objext \
10458 conftest$ac_exeext conftest.$ac_ext
10460 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
10461 echo "${ECHO_T}$ac_cv_func_connect" >&6
10463 if test $ac_cv_func_connect = no; then
10464 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
10465 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
10466 if test "${ac_cv_lib_socket_connect+set}" = set; then
10467 echo $ECHO_N "(cached) $ECHO_C" >&6
10469 ac_check_lib_save_LIBS=$LIBS
10470 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
10471 cat >conftest.$ac_ext <<_ACEOF
10474 cat confdefs.h >>conftest.$ac_ext
10475 cat >>conftest.$ac_ext <<_ACEOF
10476 /* end confdefs.h. */
10478 /* Override any gcc2 internal prototype to avoid an error. */
10482 /* We use char because int might match the return type of a gcc2
10483 builtin and then its argument prototype would still apply. */
10493 rm -f conftest.$ac_objext conftest$ac_exeext
10494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10495 (eval $ac_link) 2>conftest.er1
10497 grep -v '^ *+' conftest.er1 >conftest.err
10499 cat conftest.err >&5
10500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10501 (exit $ac_status); } &&
10502 { ac_try='test -z "$ac_c_werror_flag"
10503 || test ! -s conftest.err'
10504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10505 (eval $ac_try) 2>&5
10507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10508 (exit $ac_status); }; } &&
10509 { ac_try='test -s conftest$ac_exeext'
10510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10511 (eval $ac_try) 2>&5
10513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10514 (exit $ac_status); }; }; then
10515 ac_cv_lib_socket_connect=yes
10517 echo "$as_me: failed program was:" >&5
10518 sed 's/^/| /' conftest.$ac_ext >&5
10520 ac_cv_lib_socket_connect=no
10522 rm -f conftest.err conftest.$ac_objext \
10523 conftest$ac_exeext conftest.$ac_ext
10524 LIBS=$ac_check_lib_save_LIBS
10526 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
10527 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
10528 if test $ac_cv_lib_socket_connect = yes; then
10529 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
10534 # Guillermo Gomez says -lposix is necessary on A/UX.
10535 echo "$as_me:$LINENO: checking for remove" >&5
10536 echo $ECHO_N "checking for remove... $ECHO_C" >&6
10537 if test "${ac_cv_func_remove+set}" = set; then
10538 echo $ECHO_N "(cached) $ECHO_C" >&6
10540 cat >conftest.$ac_ext <<_ACEOF
10543 cat confdefs.h >>conftest.$ac_ext
10544 cat >>conftest.$ac_ext <<_ACEOF
10545 /* end confdefs.h. */
10546 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
10547 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10548 #define remove innocuous_remove
10550 /* System header to define __stub macros and hopefully few prototypes,
10551 which can conflict with char remove (); below.
10552 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10553 <limits.h> exists even on freestanding compilers. */
10556 # include <limits.h>
10558 # include <assert.h>
10563 /* Override any gcc2 internal prototype to avoid an error. */
10568 /* We use char because int might match the return type of a gcc2
10569 builtin and then its argument prototype would still apply. */
10571 /* The GNU C library defines this for functions which it implements
10572 to always fail with ENOSYS. Some functions are actually named
10573 something starting with __ and the normal name is an alias. */
10574 #if defined (__stub_remove) || defined (__stub___remove)
10577 char (*f) () = remove;
10586 return f != remove;
10591 rm -f conftest.$ac_objext conftest$ac_exeext
10592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10593 (eval $ac_link) 2>conftest.er1
10595 grep -v '^ *+' conftest.er1 >conftest.err
10597 cat conftest.err >&5
10598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10599 (exit $ac_status); } &&
10600 { ac_try='test -z "$ac_c_werror_flag"
10601 || test ! -s conftest.err'
10602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10603 (eval $ac_try) 2>&5
10605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10606 (exit $ac_status); }; } &&
10607 { ac_try='test -s conftest$ac_exeext'
10608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10609 (eval $ac_try) 2>&5
10611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10612 (exit $ac_status); }; }; then
10613 ac_cv_func_remove=yes
10615 echo "$as_me: failed program was:" >&5
10616 sed 's/^/| /' conftest.$ac_ext >&5
10618 ac_cv_func_remove=no
10620 rm -f conftest.err conftest.$ac_objext \
10621 conftest$ac_exeext conftest.$ac_ext
10623 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
10624 echo "${ECHO_T}$ac_cv_func_remove" >&6
10626 if test $ac_cv_func_remove = no; then
10627 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
10628 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
10629 if test "${ac_cv_lib_posix_remove+set}" = set; then
10630 echo $ECHO_N "(cached) $ECHO_C" >&6
10632 ac_check_lib_save_LIBS=$LIBS
10633 LIBS="-lposix $LIBS"
10634 cat >conftest.$ac_ext <<_ACEOF
10637 cat confdefs.h >>conftest.$ac_ext
10638 cat >>conftest.$ac_ext <<_ACEOF
10639 /* end confdefs.h. */
10641 /* Override any gcc2 internal prototype to avoid an error. */
10645 /* We use char because int might match the return type of a gcc2
10646 builtin and then its argument prototype would still apply. */
10656 rm -f conftest.$ac_objext conftest$ac_exeext
10657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10658 (eval $ac_link) 2>conftest.er1
10660 grep -v '^ *+' conftest.er1 >conftest.err
10662 cat conftest.err >&5
10663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10664 (exit $ac_status); } &&
10665 { ac_try='test -z "$ac_c_werror_flag"
10666 || test ! -s conftest.err'
10667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10668 (eval $ac_try) 2>&5
10670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10671 (exit $ac_status); }; } &&
10672 { ac_try='test -s conftest$ac_exeext'
10673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10674 (eval $ac_try) 2>&5
10676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10677 (exit $ac_status); }; }; then
10678 ac_cv_lib_posix_remove=yes
10680 echo "$as_me: failed program was:" >&5
10681 sed 's/^/| /' conftest.$ac_ext >&5
10683 ac_cv_lib_posix_remove=no
10685 rm -f conftest.err conftest.$ac_objext \
10686 conftest$ac_exeext conftest.$ac_ext
10687 LIBS=$ac_check_lib_save_LIBS
10689 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
10690 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
10691 if test $ac_cv_lib_posix_remove = yes; then
10692 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
10697 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
10698 echo "$as_me:$LINENO: checking for shmat" >&5
10699 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
10700 if test "${ac_cv_func_shmat+set}" = set; then
10701 echo $ECHO_N "(cached) $ECHO_C" >&6
10703 cat >conftest.$ac_ext <<_ACEOF
10706 cat confdefs.h >>conftest.$ac_ext
10707 cat >>conftest.$ac_ext <<_ACEOF
10708 /* end confdefs.h. */
10709 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
10710 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10711 #define shmat innocuous_shmat
10713 /* System header to define __stub macros and hopefully few prototypes,
10714 which can conflict with char shmat (); below.
10715 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10716 <limits.h> exists even on freestanding compilers. */
10719 # include <limits.h>
10721 # include <assert.h>
10726 /* Override any gcc2 internal prototype to avoid an error. */
10731 /* We use char because int might match the return type of a gcc2
10732 builtin and then its argument prototype would still apply. */
10734 /* The GNU C library defines this for functions which it implements
10735 to always fail with ENOSYS. Some functions are actually named
10736 something starting with __ and the normal name is an alias. */
10737 #if defined (__stub_shmat) || defined (__stub___shmat)
10740 char (*f) () = shmat;
10754 rm -f conftest.$ac_objext conftest$ac_exeext
10755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10756 (eval $ac_link) 2>conftest.er1
10758 grep -v '^ *+' conftest.er1 >conftest.err
10760 cat conftest.err >&5
10761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10762 (exit $ac_status); } &&
10763 { ac_try='test -z "$ac_c_werror_flag"
10764 || test ! -s conftest.err'
10765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10766 (eval $ac_try) 2>&5
10768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769 (exit $ac_status); }; } &&
10770 { ac_try='test -s conftest$ac_exeext'
10771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10772 (eval $ac_try) 2>&5
10774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10775 (exit $ac_status); }; }; then
10776 ac_cv_func_shmat=yes
10778 echo "$as_me: failed program was:" >&5
10779 sed 's/^/| /' conftest.$ac_ext >&5
10781 ac_cv_func_shmat=no
10783 rm -f conftest.err conftest.$ac_objext \
10784 conftest$ac_exeext conftest.$ac_ext
10786 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
10787 echo "${ECHO_T}$ac_cv_func_shmat" >&6
10789 if test $ac_cv_func_shmat = no; then
10790 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
10791 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
10792 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
10793 echo $ECHO_N "(cached) $ECHO_C" >&6
10795 ac_check_lib_save_LIBS=$LIBS
10797 cat >conftest.$ac_ext <<_ACEOF
10800 cat confdefs.h >>conftest.$ac_ext
10801 cat >>conftest.$ac_ext <<_ACEOF
10802 /* end confdefs.h. */
10804 /* Override any gcc2 internal prototype to avoid an error. */
10808 /* We use char because int might match the return type of a gcc2
10809 builtin and then its argument prototype would still apply. */
10819 rm -f conftest.$ac_objext conftest$ac_exeext
10820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10821 (eval $ac_link) 2>conftest.er1
10823 grep -v '^ *+' conftest.er1 >conftest.err
10825 cat conftest.err >&5
10826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10827 (exit $ac_status); } &&
10828 { ac_try='test -z "$ac_c_werror_flag"
10829 || test ! -s conftest.err'
10830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10831 (eval $ac_try) 2>&5
10833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10834 (exit $ac_status); }; } &&
10835 { ac_try='test -s conftest$ac_exeext'
10836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10837 (eval $ac_try) 2>&5
10839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10840 (exit $ac_status); }; }; then
10841 ac_cv_lib_ipc_shmat=yes
10843 echo "$as_me: failed program was:" >&5
10844 sed 's/^/| /' conftest.$ac_ext >&5
10846 ac_cv_lib_ipc_shmat=no
10848 rm -f conftest.err conftest.$ac_objext \
10849 conftest$ac_exeext conftest.$ac_ext
10850 LIBS=$ac_check_lib_save_LIBS
10852 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
10853 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
10854 if test $ac_cv_lib_ipc_shmat = yes; then
10855 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
10861 # Check for libraries that X11R6 Xt/Xaw programs need.
10862 ac_save_LDFLAGS=$LDFLAGS
10863 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
10864 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
10865 # check for ICE first), but we must link in the order -lSM -lICE or
10866 # we get undefined symbols. So assume we have SM if we have ICE.
10867 # These have to be linked with before -lX11, unlike the other
10868 # libraries we check for below, so use a different variable.
10869 # John Interrante, Karl Berry
10870 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
10871 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
10872 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
10873 echo $ECHO_N "(cached) $ECHO_C" >&6
10875 ac_check_lib_save_LIBS=$LIBS
10876 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
10877 cat >conftest.$ac_ext <<_ACEOF
10880 cat confdefs.h >>conftest.$ac_ext
10881 cat >>conftest.$ac_ext <<_ACEOF
10882 /* end confdefs.h. */
10884 /* Override any gcc2 internal prototype to avoid an error. */
10888 /* We use char because int might match the return type of a gcc2
10889 builtin and then its argument prototype would still apply. */
10890 char IceConnectionNumber ();
10894 IceConnectionNumber ();
10899 rm -f conftest.$ac_objext conftest$ac_exeext
10900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10901 (eval $ac_link) 2>conftest.er1
10903 grep -v '^ *+' conftest.er1 >conftest.err
10905 cat conftest.err >&5
10906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10907 (exit $ac_status); } &&
10908 { ac_try='test -z "$ac_c_werror_flag"
10909 || test ! -s conftest.err'
10910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10911 (eval $ac_try) 2>&5
10913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10914 (exit $ac_status); }; } &&
10915 { ac_try='test -s conftest$ac_exeext'
10916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10917 (eval $ac_try) 2>&5
10919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10920 (exit $ac_status); }; }; then
10921 ac_cv_lib_ICE_IceConnectionNumber=yes
10923 echo "$as_me: failed program was:" >&5
10924 sed 's/^/| /' conftest.$ac_ext >&5
10926 ac_cv_lib_ICE_IceConnectionNumber=no
10928 rm -f conftest.err conftest.$ac_objext \
10929 conftest$ac_exeext conftest.$ac_ext
10930 LIBS=$ac_check_lib_save_LIBS
10932 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
10933 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
10934 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
10935 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
10938 LDFLAGS=$ac_save_LDFLAGS
11000 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11001 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11002 echo "$as_me:$LINENO: checking for $ac_header" >&5
11003 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11004 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11005 echo $ECHO_N "(cached) $ECHO_C" >&6
11007 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11008 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11010 # Is the header compilable?
11011 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11012 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11013 cat >conftest.$ac_ext <<_ACEOF
11016 cat confdefs.h >>conftest.$ac_ext
11017 cat >>conftest.$ac_ext <<_ACEOF
11018 /* end confdefs.h. */
11019 $ac_includes_default
11020 #include <$ac_header>
11022 rm -f conftest.$ac_objext
11023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11024 (eval $ac_compile) 2>conftest.er1
11026 grep -v '^ *+' conftest.er1 >conftest.err
11028 cat conftest.err >&5
11029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11030 (exit $ac_status); } &&
11031 { ac_try='test -z "$ac_c_werror_flag"
11032 || test ! -s conftest.err'
11033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11034 (eval $ac_try) 2>&5
11036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11037 (exit $ac_status); }; } &&
11038 { ac_try='test -s conftest.$ac_objext'
11039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11040 (eval $ac_try) 2>&5
11042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11043 (exit $ac_status); }; }; then
11044 ac_header_compiler=yes
11046 echo "$as_me: failed program was:" >&5
11047 sed 's/^/| /' conftest.$ac_ext >&5
11049 ac_header_compiler=no
11051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11052 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11053 echo "${ECHO_T}$ac_header_compiler" >&6
11055 # Is the header present?
11056 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11057 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11058 cat >conftest.$ac_ext <<_ACEOF
11061 cat confdefs.h >>conftest.$ac_ext
11062 cat >>conftest.$ac_ext <<_ACEOF
11063 /* end confdefs.h. */
11064 #include <$ac_header>
11066 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11067 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11069 grep -v '^ *+' conftest.er1 >conftest.err
11071 cat conftest.err >&5
11072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11073 (exit $ac_status); } >/dev/null; then
11074 if test -s conftest.err; then
11075 ac_cpp_err=$ac_c_preproc_warn_flag
11076 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11083 if test -z "$ac_cpp_err"; then
11084 ac_header_preproc=yes
11086 echo "$as_me: failed program was:" >&5
11087 sed 's/^/| /' conftest.$ac_ext >&5
11089 ac_header_preproc=no
11091 rm -f conftest.err conftest.$ac_ext
11092 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11093 echo "${ECHO_T}$ac_header_preproc" >&6
11095 # So? What about this header?
11096 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11098 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11099 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11100 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11101 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11102 ac_header_preproc=yes
11105 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11106 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11107 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11108 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11109 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11110 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11111 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11112 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11113 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11114 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11115 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11116 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11119 ## ------------------------------------------ ##
11120 ## Report this to the AC_PACKAGE_NAME lists. ##
11121 ## ------------------------------------------ ##
11124 sed "s/^/$as_me: WARNING: /" >&2
11127 echo "$as_me:$LINENO: checking for $ac_header" >&5
11128 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11129 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11130 echo $ECHO_N "(cached) $ECHO_C" >&6
11132 eval "$as_ac_Header=\$ac_header_preproc"
11134 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11135 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11138 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11139 cat >>confdefs.h <<_ACEOF
11140 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11147 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
11148 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11149 if test "${ac_cv_header_stdc+set}" = set; then
11150 echo $ECHO_N "(cached) $ECHO_C" >&6
11152 cat >conftest.$ac_ext <<_ACEOF
11155 cat confdefs.h >>conftest.$ac_ext
11156 cat >>conftest.$ac_ext <<_ACEOF
11157 /* end confdefs.h. */
11158 #include <stdlib.h>
11159 #include <stdarg.h>
11160 #include <string.h>
11171 rm -f conftest.$ac_objext
11172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11173 (eval $ac_compile) 2>conftest.er1
11175 grep -v '^ *+' conftest.er1 >conftest.err
11177 cat conftest.err >&5
11178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11179 (exit $ac_status); } &&
11180 { ac_try='test -z "$ac_c_werror_flag"
11181 || test ! -s conftest.err'
11182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11183 (eval $ac_try) 2>&5
11185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11186 (exit $ac_status); }; } &&
11187 { ac_try='test -s conftest.$ac_objext'
11188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11189 (eval $ac_try) 2>&5
11191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11192 (exit $ac_status); }; }; then
11193 ac_cv_header_stdc=yes
11195 echo "$as_me: failed program was:" >&5
11196 sed 's/^/| /' conftest.$ac_ext >&5
11198 ac_cv_header_stdc=no
11200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11202 if test $ac_cv_header_stdc = yes; then
11203 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11204 cat >conftest.$ac_ext <<_ACEOF
11207 cat confdefs.h >>conftest.$ac_ext
11208 cat >>conftest.$ac_ext <<_ACEOF
11209 /* end confdefs.h. */
11210 #include <string.h>
11213 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11214 $EGREP "memchr" >/dev/null 2>&1; then
11217 ac_cv_header_stdc=no
11223 if test $ac_cv_header_stdc = yes; then
11224 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11225 cat >conftest.$ac_ext <<_ACEOF
11228 cat confdefs.h >>conftest.$ac_ext
11229 cat >>conftest.$ac_ext <<_ACEOF
11230 /* end confdefs.h. */
11231 #include <stdlib.h>
11234 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11235 $EGREP "free" >/dev/null 2>&1; then
11238 ac_cv_header_stdc=no
11244 if test $ac_cv_header_stdc = yes; then
11245 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11246 if test "$cross_compiling" = yes; then
11249 cat >conftest.$ac_ext <<_ACEOF
11252 cat confdefs.h >>conftest.$ac_ext
11253 cat >>conftest.$ac_ext <<_ACEOF
11254 /* end confdefs.h. */
11256 #if ((' ' & 0x0FF) == 0x020)
11257 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11258 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11260 # define ISLOWER(c) \
11261 (('a' <= (c) && (c) <= 'i') \
11262 || ('j' <= (c) && (c) <= 'r') \
11263 || ('s' <= (c) && (c) <= 'z'))
11264 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11267 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11272 for (i = 0; i < 256; i++)
11273 if (XOR (islower (i), ISLOWER (i))
11274 || toupper (i) != TOUPPER (i))
11279 rm -f conftest$ac_exeext
11280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11281 (eval $ac_link) 2>&5
11283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11284 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11286 (eval $ac_try) 2>&5
11288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11289 (exit $ac_status); }; }; then
11292 echo "$as_me: program exited with status $ac_status" >&5
11293 echo "$as_me: failed program was:" >&5
11294 sed 's/^/| /' conftest.$ac_ext >&5
11296 ( exit $ac_status )
11297 ac_cv_header_stdc=no
11299 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11303 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11304 echo "${ECHO_T}$ac_cv_header_stdc" >&6
11305 if test $ac_cv_header_stdc = yes; then
11307 cat >>confdefs.h <<\_ACEOF
11308 #define STDC_HEADERS 1
11313 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
11314 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
11315 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
11316 echo $ECHO_N "(cached) $ECHO_C" >&6
11318 cat >conftest.$ac_ext <<_ACEOF
11321 cat confdefs.h >>conftest.$ac_ext
11322 cat >>conftest.$ac_ext <<_ACEOF
11323 /* end confdefs.h. */
11324 #include <sys/types.h>
11328 return makedev(0, 0);
11333 rm -f conftest.$ac_objext conftest$ac_exeext
11334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11335 (eval $ac_link) 2>conftest.er1
11337 grep -v '^ *+' conftest.er1 >conftest.err
11339 cat conftest.err >&5
11340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11341 (exit $ac_status); } &&
11342 { ac_try='test -z "$ac_c_werror_flag"
11343 || test ! -s conftest.err'
11344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11345 (eval $ac_try) 2>&5
11347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11348 (exit $ac_status); }; } &&
11349 { ac_try='test -s conftest$ac_exeext'
11350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11351 (eval $ac_try) 2>&5
11353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11354 (exit $ac_status); }; }; then
11355 ac_cv_header_sys_types_h_makedev=yes
11357 echo "$as_me: failed program was:" >&5
11358 sed 's/^/| /' conftest.$ac_ext >&5
11360 ac_cv_header_sys_types_h_makedev=no
11362 rm -f conftest.err conftest.$ac_objext \
11363 conftest$ac_exeext conftest.$ac_ext
11366 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
11367 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
11369 if test $ac_cv_header_sys_types_h_makedev = no; then
11370 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
11371 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
11372 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
11373 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
11374 echo $ECHO_N "(cached) $ECHO_C" >&6
11376 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
11377 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
11379 # Is the header compilable?
11380 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
11381 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
11382 cat >conftest.$ac_ext <<_ACEOF
11385 cat confdefs.h >>conftest.$ac_ext
11386 cat >>conftest.$ac_ext <<_ACEOF
11387 /* end confdefs.h. */
11388 $ac_includes_default
11389 #include <sys/mkdev.h>
11391 rm -f conftest.$ac_objext
11392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11393 (eval $ac_compile) 2>conftest.er1
11395 grep -v '^ *+' conftest.er1 >conftest.err
11397 cat conftest.err >&5
11398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11399 (exit $ac_status); } &&
11400 { ac_try='test -z "$ac_c_werror_flag"
11401 || test ! -s conftest.err'
11402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11403 (eval $ac_try) 2>&5
11405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11406 (exit $ac_status); }; } &&
11407 { ac_try='test -s conftest.$ac_objext'
11408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11409 (eval $ac_try) 2>&5
11411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11412 (exit $ac_status); }; }; then
11413 ac_header_compiler=yes
11415 echo "$as_me: failed program was:" >&5
11416 sed 's/^/| /' conftest.$ac_ext >&5
11418 ac_header_compiler=no
11420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11421 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11422 echo "${ECHO_T}$ac_header_compiler" >&6
11424 # Is the header present?
11425 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
11426 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
11427 cat >conftest.$ac_ext <<_ACEOF
11430 cat confdefs.h >>conftest.$ac_ext
11431 cat >>conftest.$ac_ext <<_ACEOF
11432 /* end confdefs.h. */
11433 #include <sys/mkdev.h>
11435 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11436 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11438 grep -v '^ *+' conftest.er1 >conftest.err
11440 cat conftest.err >&5
11441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11442 (exit $ac_status); } >/dev/null; then
11443 if test -s conftest.err; then
11444 ac_cpp_err=$ac_c_preproc_warn_flag
11445 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11452 if test -z "$ac_cpp_err"; then
11453 ac_header_preproc=yes
11455 echo "$as_me: failed program was:" >&5
11456 sed 's/^/| /' conftest.$ac_ext >&5
11458 ac_header_preproc=no
11460 rm -f conftest.err conftest.$ac_ext
11461 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11462 echo "${ECHO_T}$ac_header_preproc" >&6
11464 # So? What about this header?
11465 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11467 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
11468 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11469 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
11470 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
11471 ac_header_preproc=yes
11474 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
11475 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
11476 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
11477 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
11478 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
11479 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
11480 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
11481 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
11482 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
11483 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
11484 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
11485 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
11488 ## ------------------------------------------ ##
11489 ## Report this to the AC_PACKAGE_NAME lists. ##
11490 ## ------------------------------------------ ##
11493 sed "s/^/$as_me: WARNING: /" >&2
11496 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
11497 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
11498 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
11499 echo $ECHO_N "(cached) $ECHO_C" >&6
11501 ac_cv_header_sys_mkdev_h=$ac_header_preproc
11503 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
11504 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
11507 if test $ac_cv_header_sys_mkdev_h = yes; then
11509 cat >>confdefs.h <<\_ACEOF
11510 #define MAJOR_IN_MKDEV 1
11517 if test $ac_cv_header_sys_mkdev_h = no; then
11518 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
11519 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
11520 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
11521 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
11522 echo $ECHO_N "(cached) $ECHO_C" >&6
11524 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
11525 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
11527 # Is the header compilable?
11528 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
11529 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
11530 cat >conftest.$ac_ext <<_ACEOF
11533 cat confdefs.h >>conftest.$ac_ext
11534 cat >>conftest.$ac_ext <<_ACEOF
11535 /* end confdefs.h. */
11536 $ac_includes_default
11537 #include <sys/sysmacros.h>
11539 rm -f conftest.$ac_objext
11540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11541 (eval $ac_compile) 2>conftest.er1
11543 grep -v '^ *+' conftest.er1 >conftest.err
11545 cat conftest.err >&5
11546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11547 (exit $ac_status); } &&
11548 { ac_try='test -z "$ac_c_werror_flag"
11549 || test ! -s conftest.err'
11550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11551 (eval $ac_try) 2>&5
11553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11554 (exit $ac_status); }; } &&
11555 { ac_try='test -s conftest.$ac_objext'
11556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11557 (eval $ac_try) 2>&5
11559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11560 (exit $ac_status); }; }; then
11561 ac_header_compiler=yes
11563 echo "$as_me: failed program was:" >&5
11564 sed 's/^/| /' conftest.$ac_ext >&5
11566 ac_header_compiler=no
11568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11569 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11570 echo "${ECHO_T}$ac_header_compiler" >&6
11572 # Is the header present?
11573 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
11574 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
11575 cat >conftest.$ac_ext <<_ACEOF
11578 cat confdefs.h >>conftest.$ac_ext
11579 cat >>conftest.$ac_ext <<_ACEOF
11580 /* end confdefs.h. */
11581 #include <sys/sysmacros.h>
11583 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11584 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11586 grep -v '^ *+' conftest.er1 >conftest.err
11588 cat conftest.err >&5
11589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11590 (exit $ac_status); } >/dev/null; then
11591 if test -s conftest.err; then
11592 ac_cpp_err=$ac_c_preproc_warn_flag
11593 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11600 if test -z "$ac_cpp_err"; then
11601 ac_header_preproc=yes
11603 echo "$as_me: failed program was:" >&5
11604 sed 's/^/| /' conftest.$ac_ext >&5
11606 ac_header_preproc=no
11608 rm -f conftest.err conftest.$ac_ext
11609 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11610 echo "${ECHO_T}$ac_header_preproc" >&6
11612 # So? What about this header?
11613 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11615 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
11616 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11617 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
11618 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
11619 ac_header_preproc=yes
11622 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
11623 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
11624 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
11625 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
11626 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
11627 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
11628 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
11629 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
11630 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
11631 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
11632 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
11633 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
11636 ## ------------------------------------------ ##
11637 ## Report this to the AC_PACKAGE_NAME lists. ##
11638 ## ------------------------------------------ ##
11641 sed "s/^/$as_me: WARNING: /" >&2
11644 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
11645 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
11646 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
11647 echo $ECHO_N "(cached) $ECHO_C" >&6
11649 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
11651 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
11652 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
11655 if test $ac_cv_header_sys_sysmacros_h = yes; then
11657 cat >>confdefs.h <<\_ACEOF
11658 #define MAJOR_IN_SYSMACROS 1
11672 ac_header_dirent=no
11673 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11674 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11675 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
11676 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
11677 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11678 echo $ECHO_N "(cached) $ECHO_C" >&6
11680 cat >conftest.$ac_ext <<_ACEOF
11683 cat confdefs.h >>conftest.$ac_ext
11684 cat >>conftest.$ac_ext <<_ACEOF
11685 /* end confdefs.h. */
11686 #include <sys/types.h>
11698 rm -f conftest.$ac_objext
11699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11700 (eval $ac_compile) 2>conftest.er1
11702 grep -v '^ *+' conftest.er1 >conftest.err
11704 cat conftest.err >&5
11705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706 (exit $ac_status); } &&
11707 { ac_try='test -z "$ac_c_werror_flag"
11708 || test ! -s conftest.err'
11709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11710 (eval $ac_try) 2>&5
11712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11713 (exit $ac_status); }; } &&
11714 { ac_try='test -s conftest.$ac_objext'
11715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11716 (eval $ac_try) 2>&5
11718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11719 (exit $ac_status); }; }; then
11720 eval "$as_ac_Header=yes"
11722 echo "$as_me: failed program was:" >&5
11723 sed 's/^/| /' conftest.$ac_ext >&5
11725 eval "$as_ac_Header=no"
11727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11729 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11730 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11731 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11732 cat >>confdefs.h <<_ACEOF
11733 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11736 ac_header_dirent=$ac_hdr; break
11740 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11741 if test $ac_header_dirent = dirent.h; then
11742 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11743 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11744 if test "${ac_cv_search_opendir+set}" = set; then
11745 echo $ECHO_N "(cached) $ECHO_C" >&6
11747 ac_func_search_save_LIBS=$LIBS
11748 ac_cv_search_opendir=no
11749 cat >conftest.$ac_ext <<_ACEOF
11752 cat confdefs.h >>conftest.$ac_ext
11753 cat >>conftest.$ac_ext <<_ACEOF
11754 /* end confdefs.h. */
11756 /* Override any gcc2 internal prototype to avoid an error. */
11760 /* We use char because int might match the return type of a gcc2
11761 builtin and then its argument prototype would still apply. */
11771 rm -f conftest.$ac_objext conftest$ac_exeext
11772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11773 (eval $ac_link) 2>conftest.er1
11775 grep -v '^ *+' conftest.er1 >conftest.err
11777 cat conftest.err >&5
11778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11779 (exit $ac_status); } &&
11780 { ac_try='test -z "$ac_c_werror_flag"
11781 || test ! -s conftest.err'
11782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11783 (eval $ac_try) 2>&5
11785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786 (exit $ac_status); }; } &&
11787 { ac_try='test -s conftest$ac_exeext'
11788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11789 (eval $ac_try) 2>&5
11791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792 (exit $ac_status); }; }; then
11793 ac_cv_search_opendir="none required"
11795 echo "$as_me: failed program was:" >&5
11796 sed 's/^/| /' conftest.$ac_ext >&5
11799 rm -f conftest.err conftest.$ac_objext \
11800 conftest$ac_exeext conftest.$ac_ext
11801 if test "$ac_cv_search_opendir" = no; then
11802 for ac_lib in dir; do
11803 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11804 cat >conftest.$ac_ext <<_ACEOF
11807 cat confdefs.h >>conftest.$ac_ext
11808 cat >>conftest.$ac_ext <<_ACEOF
11809 /* end confdefs.h. */
11811 /* Override any gcc2 internal prototype to avoid an error. */
11815 /* We use char because int might match the return type of a gcc2
11816 builtin and then its argument prototype would still apply. */
11826 rm -f conftest.$ac_objext conftest$ac_exeext
11827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11828 (eval $ac_link) 2>conftest.er1
11830 grep -v '^ *+' conftest.er1 >conftest.err
11832 cat conftest.err >&5
11833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11834 (exit $ac_status); } &&
11835 { ac_try='test -z "$ac_c_werror_flag"
11836 || test ! -s conftest.err'
11837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11838 (eval $ac_try) 2>&5
11840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841 (exit $ac_status); }; } &&
11842 { ac_try='test -s conftest$ac_exeext'
11843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11844 (eval $ac_try) 2>&5
11846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847 (exit $ac_status); }; }; then
11848 ac_cv_search_opendir="-l$ac_lib"
11851 echo "$as_me: failed program was:" >&5
11852 sed 's/^/| /' conftest.$ac_ext >&5
11855 rm -f conftest.err conftest.$ac_objext \
11856 conftest$ac_exeext conftest.$ac_ext
11859 LIBS=$ac_func_search_save_LIBS
11861 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11862 echo "${ECHO_T}$ac_cv_search_opendir" >&6
11863 if test "$ac_cv_search_opendir" != no; then
11864 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11869 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11870 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11871 if test "${ac_cv_search_opendir+set}" = set; then
11872 echo $ECHO_N "(cached) $ECHO_C" >&6
11874 ac_func_search_save_LIBS=$LIBS
11875 ac_cv_search_opendir=no
11876 cat >conftest.$ac_ext <<_ACEOF
11879 cat confdefs.h >>conftest.$ac_ext
11880 cat >>conftest.$ac_ext <<_ACEOF
11881 /* end confdefs.h. */
11883 /* Override any gcc2 internal prototype to avoid an error. */
11887 /* We use char because int might match the return type of a gcc2
11888 builtin and then its argument prototype would still apply. */
11898 rm -f conftest.$ac_objext conftest$ac_exeext
11899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11900 (eval $ac_link) 2>conftest.er1
11902 grep -v '^ *+' conftest.er1 >conftest.err
11904 cat conftest.err >&5
11905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11906 (exit $ac_status); } &&
11907 { ac_try='test -z "$ac_c_werror_flag"
11908 || test ! -s conftest.err'
11909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11910 (eval $ac_try) 2>&5
11912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913 (exit $ac_status); }; } &&
11914 { ac_try='test -s conftest$ac_exeext'
11915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11916 (eval $ac_try) 2>&5
11918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11919 (exit $ac_status); }; }; then
11920 ac_cv_search_opendir="none required"
11922 echo "$as_me: failed program was:" >&5
11923 sed 's/^/| /' conftest.$ac_ext >&5
11926 rm -f conftest.err conftest.$ac_objext \
11927 conftest$ac_exeext conftest.$ac_ext
11928 if test "$ac_cv_search_opendir" = no; then
11929 for ac_lib in x; do
11930 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11931 cat >conftest.$ac_ext <<_ACEOF
11934 cat confdefs.h >>conftest.$ac_ext
11935 cat >>conftest.$ac_ext <<_ACEOF
11936 /* end confdefs.h. */
11938 /* Override any gcc2 internal prototype to avoid an error. */
11942 /* We use char because int might match the return type of a gcc2
11943 builtin and then its argument prototype would still apply. */
11953 rm -f conftest.$ac_objext conftest$ac_exeext
11954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11955 (eval $ac_link) 2>conftest.er1
11957 grep -v '^ *+' conftest.er1 >conftest.err
11959 cat conftest.err >&5
11960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11961 (exit $ac_status); } &&
11962 { ac_try='test -z "$ac_c_werror_flag"
11963 || test ! -s conftest.err'
11964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11965 (eval $ac_try) 2>&5
11967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11968 (exit $ac_status); }; } &&
11969 { ac_try='test -s conftest$ac_exeext'
11970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11971 (eval $ac_try) 2>&5
11973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11974 (exit $ac_status); }; }; then
11975 ac_cv_search_opendir="-l$ac_lib"
11978 echo "$as_me: failed program was:" >&5
11979 sed 's/^/| /' conftest.$ac_ext >&5
11982 rm -f conftest.err conftest.$ac_objext \
11983 conftest$ac_exeext conftest.$ac_ext
11986 LIBS=$ac_func_search_save_LIBS
11988 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11989 echo "${ECHO_T}$ac_cv_search_opendir" >&6
11990 if test "$ac_cv_search_opendir" != no; then
11991 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11997 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
11998 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
11999 if test "${ac_cv_header_stat_broken+set}" = set; then
12000 echo $ECHO_N "(cached) $ECHO_C" >&6
12002 cat >conftest.$ac_ext <<_ACEOF
12005 cat confdefs.h >>conftest.$ac_ext
12006 cat >>conftest.$ac_ext <<_ACEOF
12007 /* end confdefs.h. */
12008 #include <sys/types.h>
12009 #include <sys/stat.h>
12011 #if defined(S_ISBLK) && defined(S_IFDIR)
12012 # if S_ISBLK (S_IFDIR)
12017 #if defined(S_ISBLK) && defined(S_IFCHR)
12018 # if S_ISBLK (S_IFCHR)
12023 #if defined(S_ISLNK) && defined(S_IFREG)
12024 # if S_ISLNK (S_IFREG)
12029 #if defined(S_ISSOCK) && defined(S_IFREG)
12030 # if S_ISSOCK (S_IFREG)
12036 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12037 $EGREP "You lose" >/dev/null 2>&1; then
12038 ac_cv_header_stat_broken=yes
12040 ac_cv_header_stat_broken=no
12045 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
12046 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
12047 if test $ac_cv_header_stat_broken = yes; then
12049 cat >>confdefs.h <<\_ACEOF
12050 #define STAT_MACROS_BROKEN 1
12055 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
12056 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
12057 if test "${ac_cv_header_sys_wait_h+set}" = set; then
12058 echo $ECHO_N "(cached) $ECHO_C" >&6
12060 cat >conftest.$ac_ext <<_ACEOF
12063 cat confdefs.h >>conftest.$ac_ext
12064 cat >>conftest.$ac_ext <<_ACEOF
12065 /* end confdefs.h. */
12066 #include <sys/types.h>
12067 #include <sys/wait.h>
12068 #ifndef WEXITSTATUS
12069 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
12072 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
12080 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
12085 rm -f conftest.$ac_objext
12086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12087 (eval $ac_compile) 2>conftest.er1
12089 grep -v '^ *+' conftest.er1 >conftest.err
12091 cat conftest.err >&5
12092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12093 (exit $ac_status); } &&
12094 { ac_try='test -z "$ac_c_werror_flag"
12095 || test ! -s conftest.err'
12096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12097 (eval $ac_try) 2>&5
12099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12100 (exit $ac_status); }; } &&
12101 { ac_try='test -s conftest.$ac_objext'
12102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12103 (eval $ac_try) 2>&5
12105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12106 (exit $ac_status); }; }; then
12107 ac_cv_header_sys_wait_h=yes
12109 echo "$as_me: failed program was:" >&5
12110 sed 's/^/| /' conftest.$ac_ext >&5
12112 ac_cv_header_sys_wait_h=no
12114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12116 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
12117 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
12118 if test $ac_cv_header_sys_wait_h = yes; then
12120 cat >>confdefs.h <<\_ACEOF
12121 #define HAVE_SYS_WAIT_H 1
12126 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
12127 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
12128 if test "${ac_cv_header_time+set}" = set; then
12129 echo $ECHO_N "(cached) $ECHO_C" >&6
12131 cat >conftest.$ac_ext <<_ACEOF
12134 cat confdefs.h >>conftest.$ac_ext
12135 cat >>conftest.$ac_ext <<_ACEOF
12136 /* end confdefs.h. */
12137 #include <sys/types.h>
12138 #include <sys/time.h>
12144 if ((struct tm *) 0)
12150 rm -f conftest.$ac_objext
12151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12152 (eval $ac_compile) 2>conftest.er1
12154 grep -v '^ *+' conftest.er1 >conftest.err
12156 cat conftest.err >&5
12157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12158 (exit $ac_status); } &&
12159 { ac_try='test -z "$ac_c_werror_flag"
12160 || test ! -s conftest.err'
12161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12162 (eval $ac_try) 2>&5
12164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165 (exit $ac_status); }; } &&
12166 { ac_try='test -s conftest.$ac_objext'
12167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12168 (eval $ac_try) 2>&5
12170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12171 (exit $ac_status); }; }; then
12172 ac_cv_header_time=yes
12174 echo "$as_me: failed program was:" >&5
12175 sed 's/^/| /' conftest.$ac_ext >&5
12177 ac_cv_header_time=no
12179 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12181 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
12182 echo "${ECHO_T}$ac_cv_header_time" >&6
12183 if test $ac_cv_header_time = yes; then
12185 cat >>confdefs.h <<\_ACEOF
12186 #define TIME_WITH_SYS_TIME 1
12192 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
12193 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
12194 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
12195 echo $ECHO_N "(cached) $ECHO_C" >&6
12197 cat >conftest.$ac_ext <<_ACEOF
12200 cat confdefs.h >>conftest.$ac_ext
12201 cat >>conftest.$ac_ext <<_ACEOF
12202 /* end confdefs.h. */
12203 $ac_includes_default
12207 static struct stat ac_aggr;
12208 if (ac_aggr.st_blksize)
12214 rm -f conftest.$ac_objext
12215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12216 (eval $ac_compile) 2>conftest.er1
12218 grep -v '^ *+' conftest.er1 >conftest.err
12220 cat conftest.err >&5
12221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222 (exit $ac_status); } &&
12223 { ac_try='test -z "$ac_c_werror_flag"
12224 || test ! -s conftest.err'
12225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12226 (eval $ac_try) 2>&5
12228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229 (exit $ac_status); }; } &&
12230 { ac_try='test -s conftest.$ac_objext'
12231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12232 (eval $ac_try) 2>&5
12234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12235 (exit $ac_status); }; }; then
12236 ac_cv_member_struct_stat_st_blksize=yes
12238 echo "$as_me: failed program was:" >&5
12239 sed 's/^/| /' conftest.$ac_ext >&5
12241 cat >conftest.$ac_ext <<_ACEOF
12244 cat confdefs.h >>conftest.$ac_ext
12245 cat >>conftest.$ac_ext <<_ACEOF
12246 /* end confdefs.h. */
12247 $ac_includes_default
12251 static struct stat ac_aggr;
12252 if (sizeof ac_aggr.st_blksize)
12258 rm -f conftest.$ac_objext
12259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12260 (eval $ac_compile) 2>conftest.er1
12262 grep -v '^ *+' conftest.er1 >conftest.err
12264 cat conftest.err >&5
12265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12266 (exit $ac_status); } &&
12267 { ac_try='test -z "$ac_c_werror_flag"
12268 || test ! -s conftest.err'
12269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12270 (eval $ac_try) 2>&5
12272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12273 (exit $ac_status); }; } &&
12274 { ac_try='test -s conftest.$ac_objext'
12275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12276 (eval $ac_try) 2>&5
12278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279 (exit $ac_status); }; }; then
12280 ac_cv_member_struct_stat_st_blksize=yes
12282 echo "$as_me: failed program was:" >&5
12283 sed 's/^/| /' conftest.$ac_ext >&5
12285 ac_cv_member_struct_stat_st_blksize=no
12287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12291 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
12292 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
12293 if test $ac_cv_member_struct_stat_st_blksize = yes; then
12295 cat >>confdefs.h <<_ACEOF
12296 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
12300 cat >>confdefs.h <<\_ACEOF
12301 #define HAVE_ST_BLKSIZE 1
12307 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
12308 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
12309 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
12310 echo $ECHO_N "(cached) $ECHO_C" >&6
12312 cat >conftest.$ac_ext <<_ACEOF
12315 cat confdefs.h >>conftest.$ac_ext
12316 cat >>conftest.$ac_ext <<_ACEOF
12317 /* end confdefs.h. */
12318 $ac_includes_default
12322 static struct stat ac_aggr;
12323 if (ac_aggr.st_blocks)
12329 rm -f conftest.$ac_objext
12330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12331 (eval $ac_compile) 2>conftest.er1
12333 grep -v '^ *+' conftest.er1 >conftest.err
12335 cat conftest.err >&5
12336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12337 (exit $ac_status); } &&
12338 { ac_try='test -z "$ac_c_werror_flag"
12339 || test ! -s conftest.err'
12340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12341 (eval $ac_try) 2>&5
12343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344 (exit $ac_status); }; } &&
12345 { ac_try='test -s conftest.$ac_objext'
12346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12347 (eval $ac_try) 2>&5
12349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350 (exit $ac_status); }; }; then
12351 ac_cv_member_struct_stat_st_blocks=yes
12353 echo "$as_me: failed program was:" >&5
12354 sed 's/^/| /' conftest.$ac_ext >&5
12356 cat >conftest.$ac_ext <<_ACEOF
12359 cat confdefs.h >>conftest.$ac_ext
12360 cat >>conftest.$ac_ext <<_ACEOF
12361 /* end confdefs.h. */
12362 $ac_includes_default
12366 static struct stat ac_aggr;
12367 if (sizeof ac_aggr.st_blocks)
12373 rm -f conftest.$ac_objext
12374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12375 (eval $ac_compile) 2>conftest.er1
12377 grep -v '^ *+' conftest.er1 >conftest.err
12379 cat conftest.err >&5
12380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12381 (exit $ac_status); } &&
12382 { ac_try='test -z "$ac_c_werror_flag"
12383 || test ! -s conftest.err'
12384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12385 (eval $ac_try) 2>&5
12387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12388 (exit $ac_status); }; } &&
12389 { ac_try='test -s conftest.$ac_objext'
12390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12391 (eval $ac_try) 2>&5
12393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12394 (exit $ac_status); }; }; then
12395 ac_cv_member_struct_stat_st_blocks=yes
12397 echo "$as_me: failed program was:" >&5
12398 sed 's/^/| /' conftest.$ac_ext >&5
12400 ac_cv_member_struct_stat_st_blocks=no
12402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12406 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
12407 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
12408 if test $ac_cv_member_struct_stat_st_blocks = yes; then
12410 cat >>confdefs.h <<_ACEOF
12411 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12415 cat >>confdefs.h <<\_ACEOF
12416 #define HAVE_ST_BLOCKS 1
12421 "fileblocks.$ac_objext" | \
12422 *" fileblocks.$ac_objext" | \
12423 "fileblocks.$ac_objext "* | \
12424 *" fileblocks.$ac_objext "* ) ;;
12425 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
12431 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12432 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
12433 if test "${ac_cv_struct_tm+set}" = set; then
12434 echo $ECHO_N "(cached) $ECHO_C" >&6
12436 cat >conftest.$ac_ext <<_ACEOF
12439 cat confdefs.h >>conftest.$ac_ext
12440 cat >>conftest.$ac_ext <<_ACEOF
12441 /* end confdefs.h. */
12442 #include <sys/types.h>
12448 struct tm *tp; tp->tm_sec;
12453 rm -f conftest.$ac_objext
12454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12455 (eval $ac_compile) 2>conftest.er1
12457 grep -v '^ *+' conftest.er1 >conftest.err
12459 cat conftest.err >&5
12460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12461 (exit $ac_status); } &&
12462 { ac_try='test -z "$ac_c_werror_flag"
12463 || test ! -s conftest.err'
12464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12465 (eval $ac_try) 2>&5
12467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12468 (exit $ac_status); }; } &&
12469 { ac_try='test -s conftest.$ac_objext'
12470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12471 (eval $ac_try) 2>&5
12473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474 (exit $ac_status); }; }; then
12475 ac_cv_struct_tm=time.h
12477 echo "$as_me: failed program was:" >&5
12478 sed 's/^/| /' conftest.$ac_ext >&5
12480 ac_cv_struct_tm=sys/time.h
12482 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12484 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12485 echo "${ECHO_T}$ac_cv_struct_tm" >&6
12486 if test $ac_cv_struct_tm = sys/time.h; then
12488 cat >>confdefs.h <<\_ACEOF
12489 #define TM_IN_SYS_TIME 1
12494 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
12495 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
12496 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
12497 echo $ECHO_N "(cached) $ECHO_C" >&6
12499 cat >conftest.$ac_ext <<_ACEOF
12502 cat confdefs.h >>conftest.$ac_ext
12503 cat >>conftest.$ac_ext <<_ACEOF
12504 /* end confdefs.h. */
12505 #include <sys/types.h>
12506 #include <$ac_cv_struct_tm>
12512 static struct tm ac_aggr;
12513 if (ac_aggr.tm_zone)
12519 rm -f conftest.$ac_objext
12520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12521 (eval $ac_compile) 2>conftest.er1
12523 grep -v '^ *+' conftest.er1 >conftest.err
12525 cat conftest.err >&5
12526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12527 (exit $ac_status); } &&
12528 { ac_try='test -z "$ac_c_werror_flag"
12529 || test ! -s conftest.err'
12530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12531 (eval $ac_try) 2>&5
12533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12534 (exit $ac_status); }; } &&
12535 { ac_try='test -s conftest.$ac_objext'
12536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12537 (eval $ac_try) 2>&5
12539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540 (exit $ac_status); }; }; then
12541 ac_cv_member_struct_tm_tm_zone=yes
12543 echo "$as_me: failed program was:" >&5
12544 sed 's/^/| /' conftest.$ac_ext >&5
12546 cat >conftest.$ac_ext <<_ACEOF
12549 cat confdefs.h >>conftest.$ac_ext
12550 cat >>conftest.$ac_ext <<_ACEOF
12551 /* end confdefs.h. */
12552 #include <sys/types.h>
12553 #include <$ac_cv_struct_tm>
12559 static struct tm ac_aggr;
12560 if (sizeof ac_aggr.tm_zone)
12566 rm -f conftest.$ac_objext
12567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12568 (eval $ac_compile) 2>conftest.er1
12570 grep -v '^ *+' conftest.er1 >conftest.err
12572 cat conftest.err >&5
12573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12574 (exit $ac_status); } &&
12575 { ac_try='test -z "$ac_c_werror_flag"
12576 || test ! -s conftest.err'
12577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12578 (eval $ac_try) 2>&5
12580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12581 (exit $ac_status); }; } &&
12582 { ac_try='test -s conftest.$ac_objext'
12583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12584 (eval $ac_try) 2>&5
12586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12587 (exit $ac_status); }; }; then
12588 ac_cv_member_struct_tm_tm_zone=yes
12590 echo "$as_me: failed program was:" >&5
12591 sed 's/^/| /' conftest.$ac_ext >&5
12593 ac_cv_member_struct_tm_tm_zone=no
12595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12597 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12599 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
12600 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
12601 if test $ac_cv_member_struct_tm_tm_zone = yes; then
12603 cat >>confdefs.h <<_ACEOF
12604 #define HAVE_STRUCT_TM_TM_ZONE 1
12610 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
12612 cat >>confdefs.h <<\_ACEOF
12613 #define HAVE_TM_ZONE 1
12617 echo "$as_me:$LINENO: checking for tzname" >&5
12618 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
12619 if test "${ac_cv_var_tzname+set}" = set; then
12620 echo $ECHO_N "(cached) $ECHO_C" >&6
12622 cat >conftest.$ac_ext <<_ACEOF
12625 cat confdefs.h >>conftest.$ac_ext
12626 cat >>conftest.$ac_ext <<_ACEOF
12627 /* end confdefs.h. */
12629 #ifndef tzname /* For SGI. */
12630 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
12641 rm -f conftest.$ac_objext conftest$ac_exeext
12642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12643 (eval $ac_link) 2>conftest.er1
12645 grep -v '^ *+' conftest.er1 >conftest.err
12647 cat conftest.err >&5
12648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12649 (exit $ac_status); } &&
12650 { ac_try='test -z "$ac_c_werror_flag"
12651 || test ! -s conftest.err'
12652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12653 (eval $ac_try) 2>&5
12655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12656 (exit $ac_status); }; } &&
12657 { ac_try='test -s conftest$ac_exeext'
12658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12659 (eval $ac_try) 2>&5
12661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12662 (exit $ac_status); }; }; then
12663 ac_cv_var_tzname=yes
12665 echo "$as_me: failed program was:" >&5
12666 sed 's/^/| /' conftest.$ac_ext >&5
12668 ac_cv_var_tzname=no
12670 rm -f conftest.err conftest.$ac_objext \
12671 conftest$ac_exeext conftest.$ac_ext
12673 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
12674 echo "${ECHO_T}$ac_cv_var_tzname" >&6
12675 if test $ac_cv_var_tzname = yes; then
12677 cat >>confdefs.h <<\_ACEOF
12678 #define HAVE_TZNAME 1
12685 echo "$as_me:$LINENO: checking for utime.h" >&5
12686 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
12687 if test "${ba_cv_header_utime_h+set}" = set; then
12688 echo $ECHO_N "(cached) $ECHO_C" >&6
12690 cat >conftest.$ac_ext <<_ACEOF
12693 cat confdefs.h >>conftest.$ac_ext
12694 cat >>conftest.$ac_ext <<_ACEOF
12695 /* end confdefs.h. */
12697 #include <sys/types.h>
12707 rm -f conftest.$ac_objext
12708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12709 (eval $ac_compile) 2>conftest.er1
12711 grep -v '^ *+' conftest.er1 >conftest.err
12713 cat conftest.err >&5
12714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12715 (exit $ac_status); } &&
12716 { ac_try='test -z "$ac_c_werror_flag"
12717 || test ! -s conftest.err'
12718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12719 (eval $ac_try) 2>&5
12721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12722 (exit $ac_status); }; } &&
12723 { ac_try='test -s conftest.$ac_objext'
12724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12725 (eval $ac_try) 2>&5
12727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12728 (exit $ac_status); }; }; then
12729 ba_cv_header_utime_h=yes
12731 echo "$as_me: failed program was:" >&5
12732 sed 's/^/| /' conftest.$ac_ext >&5
12734 ba_cv_header_utime_h=no
12736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12738 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
12739 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
12740 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
12741 #define HAVE_UTIME_H 1
12745 echo "$as_me:$LINENO: checking for socklen_t" >&5
12746 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
12747 if test "${ba_cv_header_socklen_t+set}" = set; then
12748 echo $ECHO_N "(cached) $ECHO_C" >&6
12750 cat >conftest.$ac_ext <<_ACEOF
12753 cat confdefs.h >>conftest.$ac_ext
12754 cat >>conftest.$ac_ext <<_ACEOF
12755 /* end confdefs.h. */
12757 #include <sys/types.h>
12758 #include <sys/socket.h>
12767 rm -f conftest.$ac_objext
12768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12769 (eval $ac_compile) 2>conftest.er1
12771 grep -v '^ *+' conftest.er1 >conftest.err
12773 cat conftest.err >&5
12774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12775 (exit $ac_status); } &&
12776 { ac_try='test -z "$ac_c_werror_flag"
12777 || test ! -s conftest.err'
12778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12779 (eval $ac_try) 2>&5
12781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12782 (exit $ac_status); }; } &&
12783 { ac_try='test -s conftest.$ac_objext'
12784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12785 (eval $ac_try) 2>&5
12787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12788 (exit $ac_status); }; }; then
12789 ba_cv_header_socklen_t=yes
12791 echo "$as_me: failed program was:" >&5
12792 sed 's/^/| /' conftest.$ac_ext >&5
12794 ba_cv_header_socklen_t=no
12796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12798 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
12799 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
12800 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
12801 #define HAVE_SOCKLEN_T 1
12805 echo "$as_me:$LINENO: checking for bigendian" >&5
12806 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
12807 if test "${ba_cv_bigendian+set}" = set; then
12808 echo $ECHO_N "(cached) $ECHO_C" >&6
12810 if test "$cross_compiling" = yes; then
12813 cat >conftest.$ac_ext <<_ACEOF
12816 cat confdefs.h >>conftest.$ac_ext
12817 cat >>conftest.$ac_ext <<_ACEOF
12818 /* end confdefs.h. */
12819 main(){long a=1L; char *p=(char *)&a; exit(*p);}
12821 rm -f conftest$ac_exeext
12822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12823 (eval $ac_link) 2>&5
12825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12826 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12828 (eval $ac_try) 2>&5
12830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12831 (exit $ac_status); }; }; then
12832 ba_cv_bigendian=yes
12834 echo "$as_me: program exited with status $ac_status" >&5
12835 echo "$as_me: failed program was:" >&5
12836 sed 's/^/| /' conftest.$ac_ext >&5
12838 ( exit $ac_status )
12841 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12844 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
12845 echo "${ECHO_T}$ba_cv_bigendian" >&6
12846 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
12847 #define HAVE_BIGENDIAN 1
12852 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12853 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12854 if test "${ac_cv_c_const+set}" = set; then
12855 echo $ECHO_N "(cached) $ECHO_C" >&6
12857 cat >conftest.$ac_ext <<_ACEOF
12860 cat confdefs.h >>conftest.$ac_ext
12861 cat >>conftest.$ac_ext <<_ACEOF
12862 /* end confdefs.h. */
12867 /* FIXME: Include the comments suggested by Paul. */
12868 #ifndef __cplusplus
12869 /* Ultrix mips cc rejects this. */
12870 typedef int charset[2];
12872 /* SunOS 4.1.1 cc rejects this. */
12873 char const *const *ccp;
12875 /* NEC SVR4.0.2 mips cc rejects this. */
12876 struct point {int x, y;};
12877 static struct point const zero = {0,0};
12878 /* AIX XL C 1.02.0.0 rejects this.
12879 It does not let you subtract one const X* pointer from another in
12880 an arm of an if-expression whose if-part is not a constant
12882 const char *g = "string";
12883 ccp = &g + (g ? g-g : 0);
12884 /* HPUX 7.0 cc rejects these. */
12887 ccp = (char const *const *) p;
12888 { /* SCO 3.2v4 cc rejects this. */
12890 char const *s = 0 ? (char *) 0 : (char const *) 0;
12894 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12895 int x[] = {25, 17};
12896 const int *foo = &x[0];
12899 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12900 typedef const int *iptr;
12904 { /* AIX XL C 1.02.0.0 rejects this saying
12905 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12906 struct s { int j; const int *ap[3]; };
12907 struct s *b; b->j = 5;
12909 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12910 const int foo = 10;
12918 rm -f conftest.$ac_objext
12919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12920 (eval $ac_compile) 2>conftest.er1
12922 grep -v '^ *+' conftest.er1 >conftest.err
12924 cat conftest.err >&5
12925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12926 (exit $ac_status); } &&
12927 { ac_try='test -z "$ac_c_werror_flag"
12928 || test ! -s conftest.err'
12929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12930 (eval $ac_try) 2>&5
12932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12933 (exit $ac_status); }; } &&
12934 { ac_try='test -s conftest.$ac_objext'
12935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12936 (eval $ac_try) 2>&5
12938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12939 (exit $ac_status); }; }; then
12942 echo "$as_me: failed program was:" >&5
12943 sed 's/^/| /' conftest.$ac_ext >&5
12947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12949 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12950 echo "${ECHO_T}$ac_cv_c_const" >&6
12951 if test $ac_cv_c_const = no; then
12953 cat >>confdefs.h <<\_ACEOF
12961 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
12962 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
12964 # The order of these tests is important.
12965 cat >conftest.$ac_ext <<_ACEOF
12968 cat confdefs.h >>conftest.$ac_ext
12969 cat >>conftest.$ac_ext <<_ACEOF
12970 /* end confdefs.h. */
12971 #include <sys/statvfs.h>
12972 #include <sys/fstyp.h>
12974 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12975 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12977 grep -v '^ *+' conftest.er1 >conftest.err
12979 cat conftest.err >&5
12980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12981 (exit $ac_status); } >/dev/null; then
12982 if test -s conftest.err; then
12983 ac_cpp_err=$ac_c_preproc_warn_flag
12984 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12991 if test -z "$ac_cpp_err"; then
12992 cat >>confdefs.h <<\_ACEOF
12993 #define FSTYPE_STATVFS 1
12997 echo "$as_me: failed program was:" >&5
12998 sed 's/^/| /' conftest.$ac_ext >&5
13002 rm -f conftest.err conftest.$ac_ext
13003 if test $fstype = no; then
13004 cat >conftest.$ac_ext <<_ACEOF
13007 cat confdefs.h >>conftest.$ac_ext
13008 cat >>conftest.$ac_ext <<_ACEOF
13009 /* end confdefs.h. */
13010 #include <sys/statfs.h>
13011 #include <sys/fstyp.h>
13013 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13014 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13016 grep -v '^ *+' conftest.er1 >conftest.err
13018 cat conftest.err >&5
13019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13020 (exit $ac_status); } >/dev/null; then
13021 if test -s conftest.err; then
13022 ac_cpp_err=$ac_c_preproc_warn_flag
13023 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13030 if test -z "$ac_cpp_err"; then
13031 cat >>confdefs.h <<\_ACEOF
13032 #define FSTYPE_USG_STATFS 1
13036 echo "$as_me: failed program was:" >&5
13037 sed 's/^/| /' conftest.$ac_ext >&5
13041 rm -f conftest.err conftest.$ac_ext
13043 if test $fstype = no; then
13044 cat >conftest.$ac_ext <<_ACEOF
13047 cat confdefs.h >>conftest.$ac_ext
13048 cat >>conftest.$ac_ext <<_ACEOF
13049 /* end confdefs.h. */
13050 #include <sys/statfs.h>
13051 #include <sys/vmount.h>
13053 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13054 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13056 grep -v '^ *+' conftest.er1 >conftest.err
13058 cat conftest.err >&5
13059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13060 (exit $ac_status); } >/dev/null; then
13061 if test -s conftest.err; then
13062 ac_cpp_err=$ac_c_preproc_warn_flag
13063 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13070 if test -z "$ac_cpp_err"; then
13071 cat >>confdefs.h <<\_ACEOF
13072 #define FSTYPE_AIX_STATFS 1
13076 echo "$as_me: failed program was:" >&5
13077 sed 's/^/| /' conftest.$ac_ext >&5
13081 rm -f conftest.err conftest.$ac_ext
13083 if test $fstype = no; then
13084 cat >conftest.$ac_ext <<_ACEOF
13087 cat confdefs.h >>conftest.$ac_ext
13088 cat >>conftest.$ac_ext <<_ACEOF
13089 /* end confdefs.h. */
13090 #include <mntent.h>
13092 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13093 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13095 grep -v '^ *+' conftest.er1 >conftest.err
13097 cat conftest.err >&5
13098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13099 (exit $ac_status); } >/dev/null; then
13100 if test -s conftest.err; then
13101 ac_cpp_err=$ac_c_preproc_warn_flag
13102 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13109 if test -z "$ac_cpp_err"; then
13110 cat >>confdefs.h <<\_ACEOF
13111 #define FSTYPE_MNTENT 1
13115 echo "$as_me: failed program was:" >&5
13116 sed 's/^/| /' conftest.$ac_ext >&5
13120 rm -f conftest.err conftest.$ac_ext
13122 if test $fstype = no; then
13123 cat >conftest.$ac_ext <<_ACEOF
13126 cat confdefs.h >>conftest.$ac_ext
13127 cat >>conftest.$ac_ext <<_ACEOF
13128 /* end confdefs.h. */
13129 #include <sys/mount.h>
13132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13133 $EGREP "f_type;" >/dev/null 2>&1; then
13134 cat >>confdefs.h <<\_ACEOF
13135 #define FSTYPE_STATFS 1
13142 if test $fstype = no; then
13143 cat >conftest.$ac_ext <<_ACEOF
13146 cat confdefs.h >>conftest.$ac_ext
13147 cat >>conftest.$ac_ext <<_ACEOF
13148 /* end confdefs.h. */
13149 #include <sys/mount.h>
13150 #include <sys/fs_types.h>
13152 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13153 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13155 grep -v '^ *+' conftest.er1 >conftest.err
13157 cat conftest.err >&5
13158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13159 (exit $ac_status); } >/dev/null; then
13160 if test -s conftest.err; then
13161 ac_cpp_err=$ac_c_preproc_warn_flag
13162 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13169 if test -z "$ac_cpp_err"; then
13170 cat >>confdefs.h <<\_ACEOF
13171 #define FSTYPE_GETMNT 1
13175 echo "$as_me: failed program was:" >&5
13176 sed 's/^/| /' conftest.$ac_ext >&5
13180 rm -f conftest.err conftest.$ac_ext
13182 echo "$as_me:$LINENO: result: $fstype" >&5
13183 echo "${ECHO_T}$fstype" >&6
13185 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13186 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
13187 if test "${ac_cv_type_signal+set}" = set; then
13188 echo $ECHO_N "(cached) $ECHO_C" >&6
13190 cat >conftest.$ac_ext <<_ACEOF
13193 cat confdefs.h >>conftest.$ac_ext
13194 cat >>conftest.$ac_ext <<_ACEOF
13195 /* end confdefs.h. */
13196 #include <sys/types.h>
13197 #include <signal.h>
13202 extern "C" void (*signal (int, void (*)(int)))(int);
13204 void (*signal ()) ();
13215 rm -f conftest.$ac_objext
13216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13217 (eval $ac_compile) 2>conftest.er1
13219 grep -v '^ *+' conftest.er1 >conftest.err
13221 cat conftest.err >&5
13222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13223 (exit $ac_status); } &&
13224 { ac_try='test -z "$ac_c_werror_flag"
13225 || test ! -s conftest.err'
13226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13227 (eval $ac_try) 2>&5
13229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13230 (exit $ac_status); }; } &&
13231 { ac_try='test -s conftest.$ac_objext'
13232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13233 (eval $ac_try) 2>&5
13235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13236 (exit $ac_status); }; }; then
13237 ac_cv_type_signal=void
13239 echo "$as_me: failed program was:" >&5
13240 sed 's/^/| /' conftest.$ac_ext >&5
13242 ac_cv_type_signal=int
13244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13246 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13247 echo "${ECHO_T}$ac_cv_type_signal" >&6
13249 cat >>confdefs.h <<_ACEOF
13250 #define RETSIGTYPE $ac_cv_type_signal
13255 echo "$as_me:$LINENO: checking for type of signal functions" >&5
13256 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
13257 if test "${bash_cv_signal_vintage+set}" = set; then
13258 echo $ECHO_N "(cached) $ECHO_C" >&6
13261 cat >conftest.$ac_ext <<_ACEOF
13264 cat confdefs.h >>conftest.$ac_ext
13265 cat >>conftest.$ac_ext <<_ACEOF
13266 /* end confdefs.h. */
13267 #include <signal.h>
13273 struct sigaction sa;
13274 sigemptyset(&ss); sigsuspend(&ss);
13275 sigaction(SIGINT, &sa, (struct sigaction *) 0);
13276 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
13282 rm -f conftest.$ac_objext conftest$ac_exeext
13283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13284 (eval $ac_link) 2>conftest.er1
13286 grep -v '^ *+' conftest.er1 >conftest.err
13288 cat conftest.err >&5
13289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13290 (exit $ac_status); } &&
13291 { ac_try='test -z "$ac_c_werror_flag"
13292 || test ! -s conftest.err'
13293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13294 (eval $ac_try) 2>&5
13296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13297 (exit $ac_status); }; } &&
13298 { ac_try='test -s conftest$ac_exeext'
13299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13300 (eval $ac_try) 2>&5
13302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13303 (exit $ac_status); }; }; then
13304 bash_cv_signal_vintage=posix
13306 echo "$as_me: failed program was:" >&5
13307 sed 's/^/| /' conftest.$ac_ext >&5
13310 cat >conftest.$ac_ext <<_ACEOF
13313 cat confdefs.h >>conftest.$ac_ext
13314 cat >>conftest.$ac_ext <<_ACEOF
13315 /* end confdefs.h. */
13316 #include <signal.h>
13321 int mask = sigmask(SIGINT);
13322 sigsetmask(mask); sigblock(mask); sigpause(mask);
13328 rm -f conftest.$ac_objext conftest$ac_exeext
13329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13330 (eval $ac_link) 2>conftest.er1
13332 grep -v '^ *+' conftest.er1 >conftest.err
13334 cat conftest.err >&5
13335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13336 (exit $ac_status); } &&
13337 { ac_try='test -z "$ac_c_werror_flag"
13338 || test ! -s conftest.err'
13339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13340 (eval $ac_try) 2>&5
13342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13343 (exit $ac_status); }; } &&
13344 { ac_try='test -s conftest$ac_exeext'
13345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13346 (eval $ac_try) 2>&5
13348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13349 (exit $ac_status); }; }; then
13350 bash_cv_signal_vintage=4.2bsd
13352 echo "$as_me: failed program was:" >&5
13353 sed 's/^/| /' conftest.$ac_ext >&5
13356 cat >conftest.$ac_ext <<_ACEOF
13359 cat confdefs.h >>conftest.$ac_ext
13360 cat >>conftest.$ac_ext <<_ACEOF
13361 /* end confdefs.h. */
13363 #include <signal.h>
13364 RETSIGTYPE foo() { }
13369 int mask = sigmask(SIGINT);
13370 sigset(SIGINT, foo); sigrelse(SIGINT);
13371 sighold(SIGINT); sigpause(SIGINT);
13377 rm -f conftest.$ac_objext conftest$ac_exeext
13378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13379 (eval $ac_link) 2>conftest.er1
13381 grep -v '^ *+' conftest.er1 >conftest.err
13383 cat conftest.err >&5
13384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13385 (exit $ac_status); } &&
13386 { ac_try='test -z "$ac_c_werror_flag"
13387 || test ! -s conftest.err'
13388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13389 (eval $ac_try) 2>&5
13391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13392 (exit $ac_status); }; } &&
13393 { ac_try='test -s conftest$ac_exeext'
13394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13395 (eval $ac_try) 2>&5
13397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13398 (exit $ac_status); }; }; then
13399 bash_cv_signal_vintage=svr3
13401 echo "$as_me: failed program was:" >&5
13402 sed 's/^/| /' conftest.$ac_ext >&5
13404 bash_cv_signal_vintage=v7
13407 rm -f conftest.err conftest.$ac_objext \
13408 conftest$ac_exeext conftest.$ac_ext
13411 rm -f conftest.err conftest.$ac_objext \
13412 conftest$ac_exeext conftest.$ac_ext
13415 rm -f conftest.err conftest.$ac_objext \
13416 conftest$ac_exeext conftest.$ac_ext
13420 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
13421 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
13422 if test "$bash_cv_signal_vintage" = posix; then
13423 cat >>confdefs.h <<\_ACEOF
13424 #define HAVE_POSIX_SIGNALS 1
13427 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
13428 cat >>confdefs.h <<\_ACEOF
13429 #define HAVE_BSD_SIGNALS 1
13432 elif test "$bash_cv_signal_vintage" = svr3; then
13433 cat >>confdefs.h <<\_ACEOF
13434 #define HAVE_USG_SIGHOLD 1
13439 echo "$as_me:$LINENO: checking for mode_t" >&5
13440 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
13441 if test "${ac_cv_type_mode_t+set}" = set; then
13442 echo $ECHO_N "(cached) $ECHO_C" >&6
13444 cat >conftest.$ac_ext <<_ACEOF
13447 cat confdefs.h >>conftest.$ac_ext
13448 cat >>conftest.$ac_ext <<_ACEOF
13449 /* end confdefs.h. */
13450 $ac_includes_default
13456 if (sizeof (mode_t))
13462 rm -f conftest.$ac_objext
13463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13464 (eval $ac_compile) 2>conftest.er1
13466 grep -v '^ *+' conftest.er1 >conftest.err
13468 cat conftest.err >&5
13469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13470 (exit $ac_status); } &&
13471 { ac_try='test -z "$ac_c_werror_flag"
13472 || test ! -s conftest.err'
13473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13474 (eval $ac_try) 2>&5
13476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13477 (exit $ac_status); }; } &&
13478 { ac_try='test -s conftest.$ac_objext'
13479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13480 (eval $ac_try) 2>&5
13482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13483 (exit $ac_status); }; }; then
13484 ac_cv_type_mode_t=yes
13486 echo "$as_me: failed program was:" >&5
13487 sed 's/^/| /' conftest.$ac_ext >&5
13489 ac_cv_type_mode_t=no
13491 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13493 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
13494 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
13495 if test $ac_cv_type_mode_t = yes; then
13499 cat >>confdefs.h <<_ACEOF
13505 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
13506 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
13507 if test "${ac_cv_type_uid_t+set}" = set; then
13508 echo $ECHO_N "(cached) $ECHO_C" >&6
13510 cat >conftest.$ac_ext <<_ACEOF
13513 cat confdefs.h >>conftest.$ac_ext
13514 cat >>conftest.$ac_ext <<_ACEOF
13515 /* end confdefs.h. */
13516 #include <sys/types.h>
13519 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13520 $EGREP "uid_t" >/dev/null 2>&1; then
13521 ac_cv_type_uid_t=yes
13523 ac_cv_type_uid_t=no
13528 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
13529 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
13530 if test $ac_cv_type_uid_t = no; then
13532 cat >>confdefs.h <<\_ACEOF
13537 cat >>confdefs.h <<\_ACEOF
13543 echo "$as_me:$LINENO: checking for size_t" >&5
13544 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
13545 if test "${ac_cv_type_size_t+set}" = set; then
13546 echo $ECHO_N "(cached) $ECHO_C" >&6
13548 cat >conftest.$ac_ext <<_ACEOF
13551 cat confdefs.h >>conftest.$ac_ext
13552 cat >>conftest.$ac_ext <<_ACEOF
13553 /* end confdefs.h. */
13554 $ac_includes_default
13560 if (sizeof (size_t))
13566 rm -f conftest.$ac_objext
13567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13568 (eval $ac_compile) 2>conftest.er1
13570 grep -v '^ *+' conftest.er1 >conftest.err
13572 cat conftest.err >&5
13573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13574 (exit $ac_status); } &&
13575 { ac_try='test -z "$ac_c_werror_flag"
13576 || test ! -s conftest.err'
13577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13578 (eval $ac_try) 2>&5
13580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13581 (exit $ac_status); }; } &&
13582 { ac_try='test -s conftest.$ac_objext'
13583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13584 (eval $ac_try) 2>&5
13586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13587 (exit $ac_status); }; }; then
13588 ac_cv_type_size_t=yes
13590 echo "$as_me: failed program was:" >&5
13591 sed 's/^/| /' conftest.$ac_ext >&5
13593 ac_cv_type_size_t=no
13595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13597 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13598 echo "${ECHO_T}$ac_cv_type_size_t" >&6
13599 if test $ac_cv_type_size_t = yes; then
13603 cat >>confdefs.h <<_ACEOF
13604 #define size_t unsigned
13609 echo "$as_me:$LINENO: checking for pid_t" >&5
13610 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
13611 if test "${ac_cv_type_pid_t+set}" = set; then
13612 echo $ECHO_N "(cached) $ECHO_C" >&6
13614 cat >conftest.$ac_ext <<_ACEOF
13617 cat confdefs.h >>conftest.$ac_ext
13618 cat >>conftest.$ac_ext <<_ACEOF
13619 /* end confdefs.h. */
13620 $ac_includes_default
13626 if (sizeof (pid_t))
13632 rm -f conftest.$ac_objext
13633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13634 (eval $ac_compile) 2>conftest.er1
13636 grep -v '^ *+' conftest.er1 >conftest.err
13638 cat conftest.err >&5
13639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13640 (exit $ac_status); } &&
13641 { ac_try='test -z "$ac_c_werror_flag"
13642 || test ! -s conftest.err'
13643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13644 (eval $ac_try) 2>&5
13646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13647 (exit $ac_status); }; } &&
13648 { ac_try='test -s conftest.$ac_objext'
13649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13650 (eval $ac_try) 2>&5
13652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653 (exit $ac_status); }; }; then
13654 ac_cv_type_pid_t=yes
13656 echo "$as_me: failed program was:" >&5
13657 sed 's/^/| /' conftest.$ac_ext >&5
13659 ac_cv_type_pid_t=no
13661 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13663 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
13664 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
13665 if test $ac_cv_type_pid_t = yes; then
13669 cat >>confdefs.h <<_ACEOF
13675 echo "$as_me:$LINENO: checking for off_t" >&5
13676 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
13677 if test "${ac_cv_type_off_t+set}" = set; then
13678 echo $ECHO_N "(cached) $ECHO_C" >&6
13680 cat >conftest.$ac_ext <<_ACEOF
13683 cat confdefs.h >>conftest.$ac_ext
13684 cat >>conftest.$ac_ext <<_ACEOF
13685 /* end confdefs.h. */
13686 $ac_includes_default
13692 if (sizeof (off_t))
13698 rm -f conftest.$ac_objext
13699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13700 (eval $ac_compile) 2>conftest.er1
13702 grep -v '^ *+' conftest.er1 >conftest.err
13704 cat conftest.err >&5
13705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13706 (exit $ac_status); } &&
13707 { ac_try='test -z "$ac_c_werror_flag"
13708 || test ! -s conftest.err'
13709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13710 (eval $ac_try) 2>&5
13712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13713 (exit $ac_status); }; } &&
13714 { ac_try='test -s conftest.$ac_objext'
13715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13716 (eval $ac_try) 2>&5
13718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13719 (exit $ac_status); }; }; then
13720 ac_cv_type_off_t=yes
13722 echo "$as_me: failed program was:" >&5
13723 sed 's/^/| /' conftest.$ac_ext >&5
13725 ac_cv_type_off_t=no
13727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13729 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
13730 echo "${ECHO_T}$ac_cv_type_off_t" >&6
13731 if test $ac_cv_type_off_t = yes; then
13735 cat >>confdefs.h <<_ACEOF
13741 echo "$as_me:$LINENO: checking for ino_t" >&5
13742 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
13743 if test "${ac_cv_type_ino_t+set}" = set; then
13744 echo $ECHO_N "(cached) $ECHO_C" >&6
13746 cat >conftest.$ac_ext <<_ACEOF
13749 cat confdefs.h >>conftest.$ac_ext
13750 cat >>conftest.$ac_ext <<_ACEOF
13751 /* end confdefs.h. */
13752 $ac_includes_default
13758 if (sizeof (ino_t))
13764 rm -f conftest.$ac_objext
13765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13766 (eval $ac_compile) 2>conftest.er1
13768 grep -v '^ *+' conftest.er1 >conftest.err
13770 cat conftest.err >&5
13771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13772 (exit $ac_status); } &&
13773 { ac_try='test -z "$ac_c_werror_flag"
13774 || test ! -s conftest.err'
13775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13776 (eval $ac_try) 2>&5
13778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13779 (exit $ac_status); }; } &&
13780 { ac_try='test -s conftest.$ac_objext'
13781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13782 (eval $ac_try) 2>&5
13784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13785 (exit $ac_status); }; }; then
13786 ac_cv_type_ino_t=yes
13788 echo "$as_me: failed program was:" >&5
13789 sed 's/^/| /' conftest.$ac_ext >&5
13791 ac_cv_type_ino_t=no
13793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13795 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
13796 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
13797 if test $ac_cv_type_ino_t = yes; then
13801 cat >>confdefs.h <<_ACEOF
13802 #define ino_t unsigned long
13807 echo "$as_me:$LINENO: checking for dev_t" >&5
13808 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
13809 if test "${ac_cv_type_dev_t+set}" = set; then
13810 echo $ECHO_N "(cached) $ECHO_C" >&6
13812 cat >conftest.$ac_ext <<_ACEOF
13815 cat confdefs.h >>conftest.$ac_ext
13816 cat >>conftest.$ac_ext <<_ACEOF
13817 /* end confdefs.h. */
13818 $ac_includes_default
13824 if (sizeof (dev_t))
13830 rm -f conftest.$ac_objext
13831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13832 (eval $ac_compile) 2>conftest.er1
13834 grep -v '^ *+' conftest.er1 >conftest.err
13836 cat conftest.err >&5
13837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13838 (exit $ac_status); } &&
13839 { ac_try='test -z "$ac_c_werror_flag"
13840 || test ! -s conftest.err'
13841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13842 (eval $ac_try) 2>&5
13844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13845 (exit $ac_status); }; } &&
13846 { ac_try='test -s conftest.$ac_objext'
13847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13848 (eval $ac_try) 2>&5
13850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13851 (exit $ac_status); }; }; then
13852 ac_cv_type_dev_t=yes
13854 echo "$as_me: failed program was:" >&5
13855 sed 's/^/| /' conftest.$ac_ext >&5
13857 ac_cv_type_dev_t=no
13859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13861 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
13862 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
13863 if test $ac_cv_type_dev_t = yes; then
13867 cat >>confdefs.h <<_ACEOF
13868 #define dev_t unsigned long
13873 echo "$as_me:$LINENO: checking for daddr_t" >&5
13874 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
13875 if test "${ac_cv_type_daddr_t+set}" = set; then
13876 echo $ECHO_N "(cached) $ECHO_C" >&6
13878 cat >conftest.$ac_ext <<_ACEOF
13881 cat confdefs.h >>conftest.$ac_ext
13882 cat >>conftest.$ac_ext <<_ACEOF
13883 /* end confdefs.h. */
13884 $ac_includes_default
13890 if (sizeof (daddr_t))
13896 rm -f conftest.$ac_objext
13897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13898 (eval $ac_compile) 2>conftest.er1
13900 grep -v '^ *+' conftest.er1 >conftest.err
13902 cat conftest.err >&5
13903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13904 (exit $ac_status); } &&
13905 { ac_try='test -z "$ac_c_werror_flag"
13906 || test ! -s conftest.err'
13907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13908 (eval $ac_try) 2>&5
13910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13911 (exit $ac_status); }; } &&
13912 { ac_try='test -s conftest.$ac_objext'
13913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13914 (eval $ac_try) 2>&5
13916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13917 (exit $ac_status); }; }; then
13918 ac_cv_type_daddr_t=yes
13920 echo "$as_me: failed program was:" >&5
13921 sed 's/^/| /' conftest.$ac_ext >&5
13923 ac_cv_type_daddr_t=no
13925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13927 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
13928 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
13929 if test $ac_cv_type_daddr_t = yes; then
13933 cat >>confdefs.h <<_ACEOF
13934 #define daddr_t long
13939 echo "$as_me:$LINENO: checking for major_t" >&5
13940 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
13941 if test "${ac_cv_type_major_t+set}" = set; then
13942 echo $ECHO_N "(cached) $ECHO_C" >&6
13944 cat >conftest.$ac_ext <<_ACEOF
13947 cat confdefs.h >>conftest.$ac_ext
13948 cat >>conftest.$ac_ext <<_ACEOF
13949 /* end confdefs.h. */
13950 $ac_includes_default
13956 if (sizeof (major_t))
13962 rm -f conftest.$ac_objext
13963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13964 (eval $ac_compile) 2>conftest.er1
13966 grep -v '^ *+' conftest.er1 >conftest.err
13968 cat conftest.err >&5
13969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13970 (exit $ac_status); } &&
13971 { ac_try='test -z "$ac_c_werror_flag"
13972 || test ! -s conftest.err'
13973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13974 (eval $ac_try) 2>&5
13976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977 (exit $ac_status); }; } &&
13978 { ac_try='test -s conftest.$ac_objext'
13979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13980 (eval $ac_try) 2>&5
13982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13983 (exit $ac_status); }; }; then
13984 ac_cv_type_major_t=yes
13986 echo "$as_me: failed program was:" >&5
13987 sed 's/^/| /' conftest.$ac_ext >&5
13989 ac_cv_type_major_t=no
13991 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13993 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
13994 echo "${ECHO_T}$ac_cv_type_major_t" >&6
13995 if test $ac_cv_type_major_t = yes; then
13999 cat >>confdefs.h <<_ACEOF
14000 #define major_t int
14005 echo "$as_me:$LINENO: checking for minor_t" >&5
14006 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
14007 if test "${ac_cv_type_minor_t+set}" = set; then
14008 echo $ECHO_N "(cached) $ECHO_C" >&6
14010 cat >conftest.$ac_ext <<_ACEOF
14013 cat confdefs.h >>conftest.$ac_ext
14014 cat >>conftest.$ac_ext <<_ACEOF
14015 /* end confdefs.h. */
14016 $ac_includes_default
14022 if (sizeof (minor_t))
14028 rm -f conftest.$ac_objext
14029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14030 (eval $ac_compile) 2>conftest.er1
14032 grep -v '^ *+' conftest.er1 >conftest.err
14034 cat conftest.err >&5
14035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14036 (exit $ac_status); } &&
14037 { ac_try='test -z "$ac_c_werror_flag"
14038 || test ! -s conftest.err'
14039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14040 (eval $ac_try) 2>&5
14042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14043 (exit $ac_status); }; } &&
14044 { ac_try='test -s conftest.$ac_objext'
14045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14046 (eval $ac_try) 2>&5
14048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14049 (exit $ac_status); }; }; then
14050 ac_cv_type_minor_t=yes
14052 echo "$as_me: failed program was:" >&5
14053 sed 's/^/| /' conftest.$ac_ext >&5
14055 ac_cv_type_minor_t=no
14057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14059 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
14060 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
14061 if test $ac_cv_type_minor_t = yes; then
14065 cat >>confdefs.h <<_ACEOF
14066 #define minor_t int
14071 echo "$as_me:$LINENO: checking for ssize_t" >&5
14072 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
14073 if test "${ac_cv_type_ssize_t+set}" = set; then
14074 echo $ECHO_N "(cached) $ECHO_C" >&6
14076 cat >conftest.$ac_ext <<_ACEOF
14079 cat confdefs.h >>conftest.$ac_ext
14080 cat >>conftest.$ac_ext <<_ACEOF
14081 /* end confdefs.h. */
14082 $ac_includes_default
14088 if (sizeof (ssize_t))
14094 rm -f conftest.$ac_objext
14095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14096 (eval $ac_compile) 2>conftest.er1
14098 grep -v '^ *+' conftest.er1 >conftest.err
14100 cat conftest.err >&5
14101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14102 (exit $ac_status); } &&
14103 { ac_try='test -z "$ac_c_werror_flag"
14104 || test ! -s conftest.err'
14105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14106 (eval $ac_try) 2>&5
14108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14109 (exit $ac_status); }; } &&
14110 { ac_try='test -s conftest.$ac_objext'
14111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14112 (eval $ac_try) 2>&5
14114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14115 (exit $ac_status); }; }; then
14116 ac_cv_type_ssize_t=yes
14118 echo "$as_me: failed program was:" >&5
14119 sed 's/^/| /' conftest.$ac_ext >&5
14121 ac_cv_type_ssize_t=no
14123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14125 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
14126 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
14127 if test $ac_cv_type_ssize_t = yes; then
14131 cat >>confdefs.h <<_ACEOF
14132 #define ssize_t int
14137 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
14138 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
14139 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
14140 echo $ECHO_N "(cached) $ECHO_C" >&6
14142 cat >conftest.$ac_ext <<_ACEOF
14145 cat confdefs.h >>conftest.$ac_ext
14146 cat >>conftest.$ac_ext <<_ACEOF
14147 /* end confdefs.h. */
14148 $ac_includes_default
14152 static struct stat ac_aggr;
14153 if (ac_aggr.st_blocks)
14159 rm -f conftest.$ac_objext
14160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14161 (eval $ac_compile) 2>conftest.er1
14163 grep -v '^ *+' conftest.er1 >conftest.err
14165 cat conftest.err >&5
14166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14167 (exit $ac_status); } &&
14168 { ac_try='test -z "$ac_c_werror_flag"
14169 || test ! -s conftest.err'
14170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14171 (eval $ac_try) 2>&5
14173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14174 (exit $ac_status); }; } &&
14175 { ac_try='test -s conftest.$ac_objext'
14176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14177 (eval $ac_try) 2>&5
14179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14180 (exit $ac_status); }; }; then
14181 ac_cv_member_struct_stat_st_blocks=yes
14183 echo "$as_me: failed program was:" >&5
14184 sed 's/^/| /' conftest.$ac_ext >&5
14186 cat >conftest.$ac_ext <<_ACEOF
14189 cat confdefs.h >>conftest.$ac_ext
14190 cat >>conftest.$ac_ext <<_ACEOF
14191 /* end confdefs.h. */
14192 $ac_includes_default
14196 static struct stat ac_aggr;
14197 if (sizeof ac_aggr.st_blocks)
14203 rm -f conftest.$ac_objext
14204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14205 (eval $ac_compile) 2>conftest.er1
14207 grep -v '^ *+' conftest.er1 >conftest.err
14209 cat conftest.err >&5
14210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14211 (exit $ac_status); } &&
14212 { ac_try='test -z "$ac_c_werror_flag"
14213 || test ! -s conftest.err'
14214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14215 (eval $ac_try) 2>&5
14217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14218 (exit $ac_status); }; } &&
14219 { ac_try='test -s conftest.$ac_objext'
14220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14221 (eval $ac_try) 2>&5
14223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14224 (exit $ac_status); }; }; then
14225 ac_cv_member_struct_stat_st_blocks=yes
14227 echo "$as_me: failed program was:" >&5
14228 sed 's/^/| /' conftest.$ac_ext >&5
14230 ac_cv_member_struct_stat_st_blocks=no
14232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14236 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
14237 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
14238 if test $ac_cv_member_struct_stat_st_blocks = yes; then
14240 cat >>confdefs.h <<_ACEOF
14241 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
14245 cat >>confdefs.h <<\_ACEOF
14246 #define HAVE_ST_BLOCKS 1
14251 "fileblocks.$ac_objext" | \
14252 *" fileblocks.$ac_objext" | \
14253 "fileblocks.$ac_objext "* | \
14254 *" fileblocks.$ac_objext "* ) ;;
14255 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
14262 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
14263 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
14264 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
14265 echo $ECHO_N "(cached) $ECHO_C" >&6
14267 cat >conftest.$ac_ext <<_ACEOF
14270 cat confdefs.h >>conftest.$ac_ext
14271 cat >>conftest.$ac_ext <<_ACEOF
14272 /* end confdefs.h. */
14273 $ac_includes_default
14277 static struct stat ac_aggr;
14278 if (ac_aggr.st_rdev)
14284 rm -f conftest.$ac_objext
14285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14286 (eval $ac_compile) 2>conftest.er1
14288 grep -v '^ *+' conftest.er1 >conftest.err
14290 cat conftest.err >&5
14291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14292 (exit $ac_status); } &&
14293 { ac_try='test -z "$ac_c_werror_flag"
14294 || test ! -s conftest.err'
14295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14296 (eval $ac_try) 2>&5
14298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14299 (exit $ac_status); }; } &&
14300 { ac_try='test -s conftest.$ac_objext'
14301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14302 (eval $ac_try) 2>&5
14304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14305 (exit $ac_status); }; }; then
14306 ac_cv_member_struct_stat_st_rdev=yes
14308 echo "$as_me: failed program was:" >&5
14309 sed 's/^/| /' conftest.$ac_ext >&5
14311 cat >conftest.$ac_ext <<_ACEOF
14314 cat confdefs.h >>conftest.$ac_ext
14315 cat >>conftest.$ac_ext <<_ACEOF
14316 /* end confdefs.h. */
14317 $ac_includes_default
14321 static struct stat ac_aggr;
14322 if (sizeof ac_aggr.st_rdev)
14328 rm -f conftest.$ac_objext
14329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14330 (eval $ac_compile) 2>conftest.er1
14332 grep -v '^ *+' conftest.er1 >conftest.err
14334 cat conftest.err >&5
14335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14336 (exit $ac_status); } &&
14337 { ac_try='test -z "$ac_c_werror_flag"
14338 || test ! -s conftest.err'
14339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14340 (eval $ac_try) 2>&5
14342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14343 (exit $ac_status); }; } &&
14344 { ac_try='test -s conftest.$ac_objext'
14345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14346 (eval $ac_try) 2>&5
14348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14349 (exit $ac_status); }; }; then
14350 ac_cv_member_struct_stat_st_rdev=yes
14352 echo "$as_me: failed program was:" >&5
14353 sed 's/^/| /' conftest.$ac_ext >&5
14355 ac_cv_member_struct_stat_st_rdev=no
14357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14361 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
14362 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
14363 if test $ac_cv_member_struct_stat_st_rdev = yes; then
14365 cat >>confdefs.h <<_ACEOF
14366 #define HAVE_STRUCT_STAT_ST_RDEV 1
14370 cat >>confdefs.h <<\_ACEOF
14371 #define HAVE_ST_RDEV 1
14377 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
14378 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
14379 if test "${ac_cv_struct_tm+set}" = set; then
14380 echo $ECHO_N "(cached) $ECHO_C" >&6
14382 cat >conftest.$ac_ext <<_ACEOF
14385 cat confdefs.h >>conftest.$ac_ext
14386 cat >>conftest.$ac_ext <<_ACEOF
14387 /* end confdefs.h. */
14388 #include <sys/types.h>
14394 struct tm *tp; tp->tm_sec;
14399 rm -f conftest.$ac_objext
14400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14401 (eval $ac_compile) 2>conftest.er1
14403 grep -v '^ *+' conftest.er1 >conftest.err
14405 cat conftest.err >&5
14406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14407 (exit $ac_status); } &&
14408 { ac_try='test -z "$ac_c_werror_flag"
14409 || test ! -s conftest.err'
14410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14411 (eval $ac_try) 2>&5
14413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14414 (exit $ac_status); }; } &&
14415 { ac_try='test -s conftest.$ac_objext'
14416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14417 (eval $ac_try) 2>&5
14419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14420 (exit $ac_status); }; }; then
14421 ac_cv_struct_tm=time.h
14423 echo "$as_me: failed program was:" >&5
14424 sed 's/^/| /' conftest.$ac_ext >&5
14426 ac_cv_struct_tm=sys/time.h
14428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14430 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
14431 echo "${ECHO_T}$ac_cv_struct_tm" >&6
14432 if test $ac_cv_struct_tm = sys/time.h; then
14434 cat >>confdefs.h <<\_ACEOF
14435 #define TM_IN_SYS_TIME 1
14440 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14441 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14442 if test "${ac_cv_c_const+set}" = set; then
14443 echo $ECHO_N "(cached) $ECHO_C" >&6
14445 cat >conftest.$ac_ext <<_ACEOF
14448 cat confdefs.h >>conftest.$ac_ext
14449 cat >>conftest.$ac_ext <<_ACEOF
14450 /* end confdefs.h. */
14455 /* FIXME: Include the comments suggested by Paul. */
14456 #ifndef __cplusplus
14457 /* Ultrix mips cc rejects this. */
14458 typedef int charset[2];
14460 /* SunOS 4.1.1 cc rejects this. */
14461 char const *const *ccp;
14463 /* NEC SVR4.0.2 mips cc rejects this. */
14464 struct point {int x, y;};
14465 static struct point const zero = {0,0};
14466 /* AIX XL C 1.02.0.0 rejects this.
14467 It does not let you subtract one const X* pointer from another in
14468 an arm of an if-expression whose if-part is not a constant
14470 const char *g = "string";
14471 ccp = &g + (g ? g-g : 0);
14472 /* HPUX 7.0 cc rejects these. */
14475 ccp = (char const *const *) p;
14476 { /* SCO 3.2v4 cc rejects this. */
14478 char const *s = 0 ? (char *) 0 : (char const *) 0;
14482 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14483 int x[] = {25, 17};
14484 const int *foo = &x[0];
14487 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14488 typedef const int *iptr;
14492 { /* AIX XL C 1.02.0.0 rejects this saying
14493 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14494 struct s { int j; const int *ap[3]; };
14495 struct s *b; b->j = 5;
14497 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14498 const int foo = 10;
14506 rm -f conftest.$ac_objext
14507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14508 (eval $ac_compile) 2>conftest.er1
14510 grep -v '^ *+' conftest.er1 >conftest.err
14512 cat conftest.err >&5
14513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14514 (exit $ac_status); } &&
14515 { ac_try='test -z "$ac_c_werror_flag"
14516 || test ! -s conftest.err'
14517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14518 (eval $ac_try) 2>&5
14520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14521 (exit $ac_status); }; } &&
14522 { ac_try='test -s conftest.$ac_objext'
14523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14524 (eval $ac_try) 2>&5
14526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14527 (exit $ac_status); }; }; then
14530 echo "$as_me: failed program was:" >&5
14531 sed 's/^/| /' conftest.$ac_ext >&5
14535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14537 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14538 echo "${ECHO_T}$ac_cv_c_const" >&6
14539 if test $ac_cv_c_const = no; then
14541 cat >>confdefs.h <<\_ACEOF
14549 echo "$as_me:$LINENO: checking for char" >&5
14550 echo $ECHO_N "checking for char... $ECHO_C" >&6
14551 if test "${ac_cv_type_char+set}" = set; then
14552 echo $ECHO_N "(cached) $ECHO_C" >&6
14554 cat >conftest.$ac_ext <<_ACEOF
14557 cat confdefs.h >>conftest.$ac_ext
14558 cat >>conftest.$ac_ext <<_ACEOF
14559 /* end confdefs.h. */
14560 $ac_includes_default
14572 rm -f conftest.$ac_objext
14573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14574 (eval $ac_compile) 2>conftest.er1
14576 grep -v '^ *+' conftest.er1 >conftest.err
14578 cat conftest.err >&5
14579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580 (exit $ac_status); } &&
14581 { ac_try='test -z "$ac_c_werror_flag"
14582 || test ! -s conftest.err'
14583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14584 (eval $ac_try) 2>&5
14586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14587 (exit $ac_status); }; } &&
14588 { ac_try='test -s conftest.$ac_objext'
14589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14590 (eval $ac_try) 2>&5
14592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14593 (exit $ac_status); }; }; then
14594 ac_cv_type_char=yes
14596 echo "$as_me: failed program was:" >&5
14597 sed 's/^/| /' conftest.$ac_ext >&5
14601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14603 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14604 echo "${ECHO_T}$ac_cv_type_char" >&6
14606 echo "$as_me:$LINENO: checking size of char" >&5
14607 echo $ECHO_N "checking size of char... $ECHO_C" >&6
14608 if test "${ac_cv_sizeof_char+set}" = set; then
14609 echo $ECHO_N "(cached) $ECHO_C" >&6
14611 if test "$ac_cv_type_char" = yes; then
14612 # The cast to unsigned long works around a bug in the HP C Compiler
14613 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14614 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14615 # This bug is HP SR number 8606223364.
14616 if test "$cross_compiling" = yes; then
14617 # Depending upon the size, compute the lo and hi bounds.
14618 cat >conftest.$ac_ext <<_ACEOF
14621 cat confdefs.h >>conftest.$ac_ext
14622 cat >>conftest.$ac_ext <<_ACEOF
14623 /* end confdefs.h. */
14624 $ac_includes_default
14628 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
14635 rm -f conftest.$ac_objext
14636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14637 (eval $ac_compile) 2>conftest.er1
14639 grep -v '^ *+' conftest.er1 >conftest.err
14641 cat conftest.err >&5
14642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14643 (exit $ac_status); } &&
14644 { ac_try='test -z "$ac_c_werror_flag"
14645 || test ! -s conftest.err'
14646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14647 (eval $ac_try) 2>&5
14649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14650 (exit $ac_status); }; } &&
14651 { ac_try='test -s conftest.$ac_objext'
14652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14653 (eval $ac_try) 2>&5
14655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14656 (exit $ac_status); }; }; then
14659 cat >conftest.$ac_ext <<_ACEOF
14662 cat confdefs.h >>conftest.$ac_ext
14663 cat >>conftest.$ac_ext <<_ACEOF
14664 /* end confdefs.h. */
14665 $ac_includes_default
14669 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14676 rm -f conftest.$ac_objext
14677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14678 (eval $ac_compile) 2>conftest.er1
14680 grep -v '^ *+' conftest.er1 >conftest.err
14682 cat conftest.err >&5
14683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14684 (exit $ac_status); } &&
14685 { ac_try='test -z "$ac_c_werror_flag"
14686 || test ! -s conftest.err'
14687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14688 (eval $ac_try) 2>&5
14690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14691 (exit $ac_status); }; } &&
14692 { ac_try='test -s conftest.$ac_objext'
14693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14694 (eval $ac_try) 2>&5
14696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14697 (exit $ac_status); }; }; then
14698 ac_hi=$ac_mid; break
14700 echo "$as_me: failed program was:" >&5
14701 sed 's/^/| /' conftest.$ac_ext >&5
14703 ac_lo=`expr $ac_mid + 1`
14704 if test $ac_lo -le $ac_mid; then
14708 ac_mid=`expr 2 '*' $ac_mid + 1`
14710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14713 echo "$as_me: failed program was:" >&5
14714 sed 's/^/| /' conftest.$ac_ext >&5
14716 cat >conftest.$ac_ext <<_ACEOF
14719 cat confdefs.h >>conftest.$ac_ext
14720 cat >>conftest.$ac_ext <<_ACEOF
14721 /* end confdefs.h. */
14722 $ac_includes_default
14726 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
14733 rm -f conftest.$ac_objext
14734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14735 (eval $ac_compile) 2>conftest.er1
14737 grep -v '^ *+' conftest.er1 >conftest.err
14739 cat conftest.err >&5
14740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14741 (exit $ac_status); } &&
14742 { ac_try='test -z "$ac_c_werror_flag"
14743 || test ! -s conftest.err'
14744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14745 (eval $ac_try) 2>&5
14747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14748 (exit $ac_status); }; } &&
14749 { ac_try='test -s conftest.$ac_objext'
14750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14751 (eval $ac_try) 2>&5
14753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14754 (exit $ac_status); }; }; then
14757 cat >conftest.$ac_ext <<_ACEOF
14760 cat confdefs.h >>conftest.$ac_ext
14761 cat >>conftest.$ac_ext <<_ACEOF
14762 /* end confdefs.h. */
14763 $ac_includes_default
14767 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
14774 rm -f conftest.$ac_objext
14775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14776 (eval $ac_compile) 2>conftest.er1
14778 grep -v '^ *+' conftest.er1 >conftest.err
14780 cat conftest.err >&5
14781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14782 (exit $ac_status); } &&
14783 { ac_try='test -z "$ac_c_werror_flag"
14784 || test ! -s conftest.err'
14785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14786 (eval $ac_try) 2>&5
14788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14789 (exit $ac_status); }; } &&
14790 { ac_try='test -s conftest.$ac_objext'
14791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14792 (eval $ac_try) 2>&5
14794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14795 (exit $ac_status); }; }; then
14796 ac_lo=$ac_mid; break
14798 echo "$as_me: failed program was:" >&5
14799 sed 's/^/| /' conftest.$ac_ext >&5
14801 ac_hi=`expr '(' $ac_mid ')' - 1`
14802 if test $ac_mid -le $ac_hi; then
14806 ac_mid=`expr 2 '*' $ac_mid`
14808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14811 echo "$as_me: failed program was:" >&5
14812 sed 's/^/| /' conftest.$ac_ext >&5
14816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14819 # Binary search between lo and hi bounds.
14820 while test "x$ac_lo" != "x$ac_hi"; do
14821 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14822 cat >conftest.$ac_ext <<_ACEOF
14825 cat confdefs.h >>conftest.$ac_ext
14826 cat >>conftest.$ac_ext <<_ACEOF
14827 /* end confdefs.h. */
14828 $ac_includes_default
14832 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14839 rm -f conftest.$ac_objext
14840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14841 (eval $ac_compile) 2>conftest.er1
14843 grep -v '^ *+' conftest.er1 >conftest.err
14845 cat conftest.err >&5
14846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14847 (exit $ac_status); } &&
14848 { ac_try='test -z "$ac_c_werror_flag"
14849 || test ! -s conftest.err'
14850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14851 (eval $ac_try) 2>&5
14853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14854 (exit $ac_status); }; } &&
14855 { ac_try='test -s conftest.$ac_objext'
14856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14857 (eval $ac_try) 2>&5
14859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14860 (exit $ac_status); }; }; then
14863 echo "$as_me: failed program was:" >&5
14864 sed 's/^/| /' conftest.$ac_ext >&5
14866 ac_lo=`expr '(' $ac_mid ')' + 1`
14868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14871 ?*) ac_cv_sizeof_char=$ac_lo;;
14872 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14873 See \`config.log' for more details." >&5
14874 echo "$as_me: error: cannot compute sizeof (char), 77
14875 See \`config.log' for more details." >&2;}
14876 { (exit 1); exit 1; }; } ;;
14879 if test "$cross_compiling" = yes; then
14880 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14881 See \`config.log' for more details." >&5
14882 echo "$as_me: error: cannot run test program while cross compiling
14883 See \`config.log' for more details." >&2;}
14884 { (exit 1); exit 1; }; }
14886 cat >conftest.$ac_ext <<_ACEOF
14889 cat confdefs.h >>conftest.$ac_ext
14890 cat >>conftest.$ac_ext <<_ACEOF
14891 /* end confdefs.h. */
14892 $ac_includes_default
14893 long longval () { return (long) (sizeof (char)); }
14894 unsigned long ulongval () { return (long) (sizeof (char)); }
14896 #include <stdlib.h>
14901 FILE *f = fopen ("conftest.val", "w");
14904 if (((long) (sizeof (char))) < 0)
14906 long i = longval ();
14907 if (i != ((long) (sizeof (char))))
14909 fprintf (f, "%ld\n", i);
14913 unsigned long i = ulongval ();
14914 if (i != ((long) (sizeof (char))))
14916 fprintf (f, "%lu\n", i);
14918 exit (ferror (f) || fclose (f) != 0);
14924 rm -f conftest$ac_exeext
14925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14926 (eval $ac_link) 2>&5
14928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14929 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14931 (eval $ac_try) 2>&5
14933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14934 (exit $ac_status); }; }; then
14935 ac_cv_sizeof_char=`cat conftest.val`
14937 echo "$as_me: program exited with status $ac_status" >&5
14938 echo "$as_me: failed program was:" >&5
14939 sed 's/^/| /' conftest.$ac_ext >&5
14941 ( exit $ac_status )
14942 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14943 See \`config.log' for more details." >&5
14944 echo "$as_me: error: cannot compute sizeof (char), 77
14945 See \`config.log' for more details." >&2;}
14946 { (exit 1); exit 1; }; }
14948 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14953 ac_cv_sizeof_char=0
14956 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14957 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14958 cat >>confdefs.h <<_ACEOF
14959 #define SIZEOF_CHAR $ac_cv_sizeof_char
14963 echo "$as_me:$LINENO: checking for short int" >&5
14964 echo $ECHO_N "checking for short int... $ECHO_C" >&6
14965 if test "${ac_cv_type_short_int+set}" = set; then
14966 echo $ECHO_N "(cached) $ECHO_C" >&6
14968 cat >conftest.$ac_ext <<_ACEOF
14971 cat confdefs.h >>conftest.$ac_ext
14972 cat >>conftest.$ac_ext <<_ACEOF
14973 /* end confdefs.h. */
14974 $ac_includes_default
14978 if ((short int *) 0)
14980 if (sizeof (short int))
14986 rm -f conftest.$ac_objext
14987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14988 (eval $ac_compile) 2>conftest.er1
14990 grep -v '^ *+' conftest.er1 >conftest.err
14992 cat conftest.err >&5
14993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14994 (exit $ac_status); } &&
14995 { ac_try='test -z "$ac_c_werror_flag"
14996 || test ! -s conftest.err'
14997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14998 (eval $ac_try) 2>&5
15000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15001 (exit $ac_status); }; } &&
15002 { ac_try='test -s conftest.$ac_objext'
15003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15004 (eval $ac_try) 2>&5
15006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15007 (exit $ac_status); }; }; then
15008 ac_cv_type_short_int=yes
15010 echo "$as_me: failed program was:" >&5
15011 sed 's/^/| /' conftest.$ac_ext >&5
15013 ac_cv_type_short_int=no
15015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15017 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
15018 echo "${ECHO_T}$ac_cv_type_short_int" >&6
15020 echo "$as_me:$LINENO: checking size of short int" >&5
15021 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
15022 if test "${ac_cv_sizeof_short_int+set}" = set; then
15023 echo $ECHO_N "(cached) $ECHO_C" >&6
15025 if test "$ac_cv_type_short_int" = yes; then
15026 # The cast to unsigned long works around a bug in the HP C Compiler
15027 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15028 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15029 # This bug is HP SR number 8606223364.
15030 if test "$cross_compiling" = yes; then
15031 # Depending upon the size, compute the lo and hi bounds.
15032 cat >conftest.$ac_ext <<_ACEOF
15035 cat confdefs.h >>conftest.$ac_ext
15036 cat >>conftest.$ac_ext <<_ACEOF
15037 /* end confdefs.h. */
15038 $ac_includes_default
15042 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
15049 rm -f conftest.$ac_objext
15050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15051 (eval $ac_compile) 2>conftest.er1
15053 grep -v '^ *+' conftest.er1 >conftest.err
15055 cat conftest.err >&5
15056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15057 (exit $ac_status); } &&
15058 { ac_try='test -z "$ac_c_werror_flag"
15059 || test ! -s conftest.err'
15060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15061 (eval $ac_try) 2>&5
15063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15064 (exit $ac_status); }; } &&
15065 { ac_try='test -s conftest.$ac_objext'
15066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15067 (eval $ac_try) 2>&5
15069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15070 (exit $ac_status); }; }; then
15073 cat >conftest.$ac_ext <<_ACEOF
15076 cat confdefs.h >>conftest.$ac_ext
15077 cat >>conftest.$ac_ext <<_ACEOF
15078 /* end confdefs.h. */
15079 $ac_includes_default
15083 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
15090 rm -f conftest.$ac_objext
15091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15092 (eval $ac_compile) 2>conftest.er1
15094 grep -v '^ *+' conftest.er1 >conftest.err
15096 cat conftest.err >&5
15097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15098 (exit $ac_status); } &&
15099 { ac_try='test -z "$ac_c_werror_flag"
15100 || test ! -s conftest.err'
15101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15102 (eval $ac_try) 2>&5
15104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15105 (exit $ac_status); }; } &&
15106 { ac_try='test -s conftest.$ac_objext'
15107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15108 (eval $ac_try) 2>&5
15110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15111 (exit $ac_status); }; }; then
15112 ac_hi=$ac_mid; break
15114 echo "$as_me: failed program was:" >&5
15115 sed 's/^/| /' conftest.$ac_ext >&5
15117 ac_lo=`expr $ac_mid + 1`
15118 if test $ac_lo -le $ac_mid; then
15122 ac_mid=`expr 2 '*' $ac_mid + 1`
15124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15127 echo "$as_me: failed program was:" >&5
15128 sed 's/^/| /' conftest.$ac_ext >&5
15130 cat >conftest.$ac_ext <<_ACEOF
15133 cat confdefs.h >>conftest.$ac_ext
15134 cat >>conftest.$ac_ext <<_ACEOF
15135 /* end confdefs.h. */
15136 $ac_includes_default
15140 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
15147 rm -f conftest.$ac_objext
15148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15149 (eval $ac_compile) 2>conftest.er1
15151 grep -v '^ *+' conftest.er1 >conftest.err
15153 cat conftest.err >&5
15154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15155 (exit $ac_status); } &&
15156 { ac_try='test -z "$ac_c_werror_flag"
15157 || test ! -s conftest.err'
15158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15159 (eval $ac_try) 2>&5
15161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15162 (exit $ac_status); }; } &&
15163 { ac_try='test -s conftest.$ac_objext'
15164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15165 (eval $ac_try) 2>&5
15167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15168 (exit $ac_status); }; }; then
15171 cat >conftest.$ac_ext <<_ACEOF
15174 cat confdefs.h >>conftest.$ac_ext
15175 cat >>conftest.$ac_ext <<_ACEOF
15176 /* end confdefs.h. */
15177 $ac_includes_default
15181 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
15188 rm -f conftest.$ac_objext
15189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15190 (eval $ac_compile) 2>conftest.er1
15192 grep -v '^ *+' conftest.er1 >conftest.err
15194 cat conftest.err >&5
15195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15196 (exit $ac_status); } &&
15197 { ac_try='test -z "$ac_c_werror_flag"
15198 || test ! -s conftest.err'
15199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15200 (eval $ac_try) 2>&5
15202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15203 (exit $ac_status); }; } &&
15204 { ac_try='test -s conftest.$ac_objext'
15205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15206 (eval $ac_try) 2>&5
15208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15209 (exit $ac_status); }; }; then
15210 ac_lo=$ac_mid; break
15212 echo "$as_me: failed program was:" >&5
15213 sed 's/^/| /' conftest.$ac_ext >&5
15215 ac_hi=`expr '(' $ac_mid ')' - 1`
15216 if test $ac_mid -le $ac_hi; then
15220 ac_mid=`expr 2 '*' $ac_mid`
15222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15225 echo "$as_me: failed program was:" >&5
15226 sed 's/^/| /' conftest.$ac_ext >&5
15230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15233 # Binary search between lo and hi bounds.
15234 while test "x$ac_lo" != "x$ac_hi"; do
15235 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15236 cat >conftest.$ac_ext <<_ACEOF
15239 cat confdefs.h >>conftest.$ac_ext
15240 cat >>conftest.$ac_ext <<_ACEOF
15241 /* end confdefs.h. */
15242 $ac_includes_default
15246 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
15253 rm -f conftest.$ac_objext
15254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15255 (eval $ac_compile) 2>conftest.er1
15257 grep -v '^ *+' conftest.er1 >conftest.err
15259 cat conftest.err >&5
15260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15261 (exit $ac_status); } &&
15262 { ac_try='test -z "$ac_c_werror_flag"
15263 || test ! -s conftest.err'
15264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15265 (eval $ac_try) 2>&5
15267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15268 (exit $ac_status); }; } &&
15269 { ac_try='test -s conftest.$ac_objext'
15270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15271 (eval $ac_try) 2>&5
15273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15274 (exit $ac_status); }; }; then
15277 echo "$as_me: failed program was:" >&5
15278 sed 's/^/| /' conftest.$ac_ext >&5
15280 ac_lo=`expr '(' $ac_mid ')' + 1`
15282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15285 ?*) ac_cv_sizeof_short_int=$ac_lo;;
15286 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
15287 See \`config.log' for more details." >&5
15288 echo "$as_me: error: cannot compute sizeof (short int), 77
15289 See \`config.log' for more details." >&2;}
15290 { (exit 1); exit 1; }; } ;;
15293 if test "$cross_compiling" = yes; then
15294 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15295 See \`config.log' for more details." >&5
15296 echo "$as_me: error: cannot run test program while cross compiling
15297 See \`config.log' for more details." >&2;}
15298 { (exit 1); exit 1; }; }
15300 cat >conftest.$ac_ext <<_ACEOF
15303 cat confdefs.h >>conftest.$ac_ext
15304 cat >>conftest.$ac_ext <<_ACEOF
15305 /* end confdefs.h. */
15306 $ac_includes_default
15307 long longval () { return (long) (sizeof (short int)); }
15308 unsigned long ulongval () { return (long) (sizeof (short int)); }
15310 #include <stdlib.h>
15315 FILE *f = fopen ("conftest.val", "w");
15318 if (((long) (sizeof (short int))) < 0)
15320 long i = longval ();
15321 if (i != ((long) (sizeof (short int))))
15323 fprintf (f, "%ld\n", i);
15327 unsigned long i = ulongval ();
15328 if (i != ((long) (sizeof (short int))))
15330 fprintf (f, "%lu\n", i);
15332 exit (ferror (f) || fclose (f) != 0);
15338 rm -f conftest$ac_exeext
15339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15340 (eval $ac_link) 2>&5
15342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15343 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15345 (eval $ac_try) 2>&5
15347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15348 (exit $ac_status); }; }; then
15349 ac_cv_sizeof_short_int=`cat conftest.val`
15351 echo "$as_me: program exited with status $ac_status" >&5
15352 echo "$as_me: failed program was:" >&5
15353 sed 's/^/| /' conftest.$ac_ext >&5
15355 ( exit $ac_status )
15356 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
15357 See \`config.log' for more details." >&5
15358 echo "$as_me: error: cannot compute sizeof (short int), 77
15359 See \`config.log' for more details." >&2;}
15360 { (exit 1); exit 1; }; }
15362 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15367 ac_cv_sizeof_short_int=0
15370 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
15371 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
15372 cat >>confdefs.h <<_ACEOF
15373 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
15377 echo "$as_me:$LINENO: checking for int" >&5
15378 echo $ECHO_N "checking for int... $ECHO_C" >&6
15379 if test "${ac_cv_type_int+set}" = set; then
15380 echo $ECHO_N "(cached) $ECHO_C" >&6
15382 cat >conftest.$ac_ext <<_ACEOF
15385 cat confdefs.h >>conftest.$ac_ext
15386 cat >>conftest.$ac_ext <<_ACEOF
15387 /* end confdefs.h. */
15388 $ac_includes_default
15400 rm -f conftest.$ac_objext
15401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15402 (eval $ac_compile) 2>conftest.er1
15404 grep -v '^ *+' conftest.er1 >conftest.err
15406 cat conftest.err >&5
15407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15408 (exit $ac_status); } &&
15409 { ac_try='test -z "$ac_c_werror_flag"
15410 || test ! -s conftest.err'
15411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15412 (eval $ac_try) 2>&5
15414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15415 (exit $ac_status); }; } &&
15416 { ac_try='test -s conftest.$ac_objext'
15417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15418 (eval $ac_try) 2>&5
15420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15421 (exit $ac_status); }; }; then
15424 echo "$as_me: failed program was:" >&5
15425 sed 's/^/| /' conftest.$ac_ext >&5
15429 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15431 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15432 echo "${ECHO_T}$ac_cv_type_int" >&6
15434 echo "$as_me:$LINENO: checking size of int" >&5
15435 echo $ECHO_N "checking size of int... $ECHO_C" >&6
15436 if test "${ac_cv_sizeof_int+set}" = set; then
15437 echo $ECHO_N "(cached) $ECHO_C" >&6
15439 if test "$ac_cv_type_int" = yes; then
15440 # The cast to unsigned long works around a bug in the HP C Compiler
15441 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15442 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15443 # This bug is HP SR number 8606223364.
15444 if test "$cross_compiling" = yes; then
15445 # Depending upon the size, compute the lo and hi bounds.
15446 cat >conftest.$ac_ext <<_ACEOF
15449 cat confdefs.h >>conftest.$ac_ext
15450 cat >>conftest.$ac_ext <<_ACEOF
15451 /* end confdefs.h. */
15452 $ac_includes_default
15456 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15463 rm -f conftest.$ac_objext
15464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15465 (eval $ac_compile) 2>conftest.er1
15467 grep -v '^ *+' conftest.er1 >conftest.err
15469 cat conftest.err >&5
15470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15471 (exit $ac_status); } &&
15472 { ac_try='test -z "$ac_c_werror_flag"
15473 || test ! -s conftest.err'
15474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15475 (eval $ac_try) 2>&5
15477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15478 (exit $ac_status); }; } &&
15479 { ac_try='test -s conftest.$ac_objext'
15480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15481 (eval $ac_try) 2>&5
15483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15484 (exit $ac_status); }; }; then
15487 cat >conftest.$ac_ext <<_ACEOF
15490 cat confdefs.h >>conftest.$ac_ext
15491 cat >>conftest.$ac_ext <<_ACEOF
15492 /* end confdefs.h. */
15493 $ac_includes_default
15497 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15504 rm -f conftest.$ac_objext
15505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15506 (eval $ac_compile) 2>conftest.er1
15508 grep -v '^ *+' conftest.er1 >conftest.err
15510 cat conftest.err >&5
15511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15512 (exit $ac_status); } &&
15513 { ac_try='test -z "$ac_c_werror_flag"
15514 || test ! -s conftest.err'
15515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15516 (eval $ac_try) 2>&5
15518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15519 (exit $ac_status); }; } &&
15520 { ac_try='test -s conftest.$ac_objext'
15521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15522 (eval $ac_try) 2>&5
15524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15525 (exit $ac_status); }; }; then
15526 ac_hi=$ac_mid; break
15528 echo "$as_me: failed program was:" >&5
15529 sed 's/^/| /' conftest.$ac_ext >&5
15531 ac_lo=`expr $ac_mid + 1`
15532 if test $ac_lo -le $ac_mid; then
15536 ac_mid=`expr 2 '*' $ac_mid + 1`
15538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15541 echo "$as_me: failed program was:" >&5
15542 sed 's/^/| /' conftest.$ac_ext >&5
15544 cat >conftest.$ac_ext <<_ACEOF
15547 cat confdefs.h >>conftest.$ac_ext
15548 cat >>conftest.$ac_ext <<_ACEOF
15549 /* end confdefs.h. */
15550 $ac_includes_default
15554 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15561 rm -f conftest.$ac_objext
15562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15563 (eval $ac_compile) 2>conftest.er1
15565 grep -v '^ *+' conftest.er1 >conftest.err
15567 cat conftest.err >&5
15568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15569 (exit $ac_status); } &&
15570 { ac_try='test -z "$ac_c_werror_flag"
15571 || test ! -s conftest.err'
15572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15573 (eval $ac_try) 2>&5
15575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15576 (exit $ac_status); }; } &&
15577 { ac_try='test -s conftest.$ac_objext'
15578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15579 (eval $ac_try) 2>&5
15581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15582 (exit $ac_status); }; }; then
15585 cat >conftest.$ac_ext <<_ACEOF
15588 cat confdefs.h >>conftest.$ac_ext
15589 cat >>conftest.$ac_ext <<_ACEOF
15590 /* end confdefs.h. */
15591 $ac_includes_default
15595 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15602 rm -f conftest.$ac_objext
15603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15604 (eval $ac_compile) 2>conftest.er1
15606 grep -v '^ *+' conftest.er1 >conftest.err
15608 cat conftest.err >&5
15609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15610 (exit $ac_status); } &&
15611 { ac_try='test -z "$ac_c_werror_flag"
15612 || test ! -s conftest.err'
15613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15614 (eval $ac_try) 2>&5
15616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15617 (exit $ac_status); }; } &&
15618 { ac_try='test -s conftest.$ac_objext'
15619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15620 (eval $ac_try) 2>&5
15622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15623 (exit $ac_status); }; }; then
15624 ac_lo=$ac_mid; break
15626 echo "$as_me: failed program was:" >&5
15627 sed 's/^/| /' conftest.$ac_ext >&5
15629 ac_hi=`expr '(' $ac_mid ')' - 1`
15630 if test $ac_mid -le $ac_hi; then
15634 ac_mid=`expr 2 '*' $ac_mid`
15636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15639 echo "$as_me: failed program was:" >&5
15640 sed 's/^/| /' conftest.$ac_ext >&5
15644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15647 # Binary search between lo and hi bounds.
15648 while test "x$ac_lo" != "x$ac_hi"; do
15649 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15650 cat >conftest.$ac_ext <<_ACEOF
15653 cat confdefs.h >>conftest.$ac_ext
15654 cat >>conftest.$ac_ext <<_ACEOF
15655 /* end confdefs.h. */
15656 $ac_includes_default
15660 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15667 rm -f conftest.$ac_objext
15668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15669 (eval $ac_compile) 2>conftest.er1
15671 grep -v '^ *+' conftest.er1 >conftest.err
15673 cat conftest.err >&5
15674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15675 (exit $ac_status); } &&
15676 { ac_try='test -z "$ac_c_werror_flag"
15677 || test ! -s conftest.err'
15678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15679 (eval $ac_try) 2>&5
15681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15682 (exit $ac_status); }; } &&
15683 { ac_try='test -s conftest.$ac_objext'
15684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15685 (eval $ac_try) 2>&5
15687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15688 (exit $ac_status); }; }; then
15691 echo "$as_me: failed program was:" >&5
15692 sed 's/^/| /' conftest.$ac_ext >&5
15694 ac_lo=`expr '(' $ac_mid ')' + 1`
15696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15699 ?*) ac_cv_sizeof_int=$ac_lo;;
15700 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15701 See \`config.log' for more details." >&5
15702 echo "$as_me: error: cannot compute sizeof (int), 77
15703 See \`config.log' for more details." >&2;}
15704 { (exit 1); exit 1; }; } ;;
15707 if test "$cross_compiling" = yes; then
15708 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15709 See \`config.log' for more details." >&5
15710 echo "$as_me: error: cannot run test program while cross compiling
15711 See \`config.log' for more details." >&2;}
15712 { (exit 1); exit 1; }; }
15714 cat >conftest.$ac_ext <<_ACEOF
15717 cat confdefs.h >>conftest.$ac_ext
15718 cat >>conftest.$ac_ext <<_ACEOF
15719 /* end confdefs.h. */
15720 $ac_includes_default
15721 long longval () { return (long) (sizeof (int)); }
15722 unsigned long ulongval () { return (long) (sizeof (int)); }
15724 #include <stdlib.h>
15729 FILE *f = fopen ("conftest.val", "w");
15732 if (((long) (sizeof (int))) < 0)
15734 long i = longval ();
15735 if (i != ((long) (sizeof (int))))
15737 fprintf (f, "%ld\n", i);
15741 unsigned long i = ulongval ();
15742 if (i != ((long) (sizeof (int))))
15744 fprintf (f, "%lu\n", i);
15746 exit (ferror (f) || fclose (f) != 0);
15752 rm -f conftest$ac_exeext
15753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15754 (eval $ac_link) 2>&5
15756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15757 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15759 (eval $ac_try) 2>&5
15761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15762 (exit $ac_status); }; }; then
15763 ac_cv_sizeof_int=`cat conftest.val`
15765 echo "$as_me: program exited with status $ac_status" >&5
15766 echo "$as_me: failed program was:" >&5
15767 sed 's/^/| /' conftest.$ac_ext >&5
15769 ( exit $ac_status )
15770 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15771 See \`config.log' for more details." >&5
15772 echo "$as_me: error: cannot compute sizeof (int), 77
15773 See \`config.log' for more details." >&2;}
15774 { (exit 1); exit 1; }; }
15776 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15784 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15785 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15786 cat >>confdefs.h <<_ACEOF
15787 #define SIZEOF_INT $ac_cv_sizeof_int
15791 echo "$as_me:$LINENO: checking for long int" >&5
15792 echo $ECHO_N "checking for long int... $ECHO_C" >&6
15793 if test "${ac_cv_type_long_int+set}" = set; then
15794 echo $ECHO_N "(cached) $ECHO_C" >&6
15796 cat >conftest.$ac_ext <<_ACEOF
15799 cat confdefs.h >>conftest.$ac_ext
15800 cat >>conftest.$ac_ext <<_ACEOF
15801 /* end confdefs.h. */
15802 $ac_includes_default
15806 if ((long int *) 0)
15808 if (sizeof (long int))
15814 rm -f conftest.$ac_objext
15815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15816 (eval $ac_compile) 2>conftest.er1
15818 grep -v '^ *+' conftest.er1 >conftest.err
15820 cat conftest.err >&5
15821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15822 (exit $ac_status); } &&
15823 { ac_try='test -z "$ac_c_werror_flag"
15824 || test ! -s conftest.err'
15825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15826 (eval $ac_try) 2>&5
15828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15829 (exit $ac_status); }; } &&
15830 { ac_try='test -s conftest.$ac_objext'
15831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15832 (eval $ac_try) 2>&5
15834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15835 (exit $ac_status); }; }; then
15836 ac_cv_type_long_int=yes
15838 echo "$as_me: failed program was:" >&5
15839 sed 's/^/| /' conftest.$ac_ext >&5
15841 ac_cv_type_long_int=no
15843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15845 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
15846 echo "${ECHO_T}$ac_cv_type_long_int" >&6
15848 echo "$as_me:$LINENO: checking size of long int" >&5
15849 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
15850 if test "${ac_cv_sizeof_long_int+set}" = set; then
15851 echo $ECHO_N "(cached) $ECHO_C" >&6
15853 if test "$ac_cv_type_long_int" = yes; then
15854 # The cast to unsigned long works around a bug in the HP C Compiler
15855 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15856 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15857 # This bug is HP SR number 8606223364.
15858 if test "$cross_compiling" = yes; then
15859 # Depending upon the size, compute the lo and hi bounds.
15860 cat >conftest.$ac_ext <<_ACEOF
15863 cat confdefs.h >>conftest.$ac_ext
15864 cat >>conftest.$ac_ext <<_ACEOF
15865 /* end confdefs.h. */
15866 $ac_includes_default
15870 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
15877 rm -f conftest.$ac_objext
15878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15879 (eval $ac_compile) 2>conftest.er1
15881 grep -v '^ *+' conftest.er1 >conftest.err
15883 cat conftest.err >&5
15884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15885 (exit $ac_status); } &&
15886 { ac_try='test -z "$ac_c_werror_flag"
15887 || test ! -s conftest.err'
15888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15889 (eval $ac_try) 2>&5
15891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15892 (exit $ac_status); }; } &&
15893 { ac_try='test -s conftest.$ac_objext'
15894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15895 (eval $ac_try) 2>&5
15897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898 (exit $ac_status); }; }; then
15901 cat >conftest.$ac_ext <<_ACEOF
15904 cat confdefs.h >>conftest.$ac_ext
15905 cat >>conftest.$ac_ext <<_ACEOF
15906 /* end confdefs.h. */
15907 $ac_includes_default
15911 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
15918 rm -f conftest.$ac_objext
15919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15920 (eval $ac_compile) 2>conftest.er1
15922 grep -v '^ *+' conftest.er1 >conftest.err
15924 cat conftest.err >&5
15925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15926 (exit $ac_status); } &&
15927 { ac_try='test -z "$ac_c_werror_flag"
15928 || test ! -s conftest.err'
15929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15930 (eval $ac_try) 2>&5
15932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15933 (exit $ac_status); }; } &&
15934 { ac_try='test -s conftest.$ac_objext'
15935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15936 (eval $ac_try) 2>&5
15938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15939 (exit $ac_status); }; }; then
15940 ac_hi=$ac_mid; break
15942 echo "$as_me: failed program was:" >&5
15943 sed 's/^/| /' conftest.$ac_ext >&5
15945 ac_lo=`expr $ac_mid + 1`
15946 if test $ac_lo -le $ac_mid; then
15950 ac_mid=`expr 2 '*' $ac_mid + 1`
15952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15955 echo "$as_me: failed program was:" >&5
15956 sed 's/^/| /' conftest.$ac_ext >&5
15958 cat >conftest.$ac_ext <<_ACEOF
15961 cat confdefs.h >>conftest.$ac_ext
15962 cat >>conftest.$ac_ext <<_ACEOF
15963 /* end confdefs.h. */
15964 $ac_includes_default
15968 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
15975 rm -f conftest.$ac_objext
15976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15977 (eval $ac_compile) 2>conftest.er1
15979 grep -v '^ *+' conftest.er1 >conftest.err
15981 cat conftest.err >&5
15982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15983 (exit $ac_status); } &&
15984 { ac_try='test -z "$ac_c_werror_flag"
15985 || test ! -s conftest.err'
15986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15987 (eval $ac_try) 2>&5
15989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15990 (exit $ac_status); }; } &&
15991 { ac_try='test -s conftest.$ac_objext'
15992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15993 (eval $ac_try) 2>&5
15995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15996 (exit $ac_status); }; }; then
15999 cat >conftest.$ac_ext <<_ACEOF
16002 cat confdefs.h >>conftest.$ac_ext
16003 cat >>conftest.$ac_ext <<_ACEOF
16004 /* end confdefs.h. */
16005 $ac_includes_default
16009 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
16016 rm -f conftest.$ac_objext
16017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16018 (eval $ac_compile) 2>conftest.er1
16020 grep -v '^ *+' conftest.er1 >conftest.err
16022 cat conftest.err >&5
16023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16024 (exit $ac_status); } &&
16025 { ac_try='test -z "$ac_c_werror_flag"
16026 || test ! -s conftest.err'
16027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16028 (eval $ac_try) 2>&5
16030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16031 (exit $ac_status); }; } &&
16032 { ac_try='test -s conftest.$ac_objext'
16033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16034 (eval $ac_try) 2>&5
16036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16037 (exit $ac_status); }; }; then
16038 ac_lo=$ac_mid; break
16040 echo "$as_me: failed program was:" >&5
16041 sed 's/^/| /' conftest.$ac_ext >&5
16043 ac_hi=`expr '(' $ac_mid ')' - 1`
16044 if test $ac_mid -le $ac_hi; then
16048 ac_mid=`expr 2 '*' $ac_mid`
16050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16053 echo "$as_me: failed program was:" >&5
16054 sed 's/^/| /' conftest.$ac_ext >&5
16058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16061 # Binary search between lo and hi bounds.
16062 while test "x$ac_lo" != "x$ac_hi"; do
16063 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16064 cat >conftest.$ac_ext <<_ACEOF
16067 cat confdefs.h >>conftest.$ac_ext
16068 cat >>conftest.$ac_ext <<_ACEOF
16069 /* end confdefs.h. */
16070 $ac_includes_default
16074 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
16081 rm -f conftest.$ac_objext
16082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16083 (eval $ac_compile) 2>conftest.er1
16085 grep -v '^ *+' conftest.er1 >conftest.err
16087 cat conftest.err >&5
16088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16089 (exit $ac_status); } &&
16090 { ac_try='test -z "$ac_c_werror_flag"
16091 || test ! -s conftest.err'
16092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16093 (eval $ac_try) 2>&5
16095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16096 (exit $ac_status); }; } &&
16097 { ac_try='test -s conftest.$ac_objext'
16098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16099 (eval $ac_try) 2>&5
16101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16102 (exit $ac_status); }; }; then
16105 echo "$as_me: failed program was:" >&5
16106 sed 's/^/| /' conftest.$ac_ext >&5
16108 ac_lo=`expr '(' $ac_mid ')' + 1`
16110 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16113 ?*) ac_cv_sizeof_long_int=$ac_lo;;
16114 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
16115 See \`config.log' for more details." >&5
16116 echo "$as_me: error: cannot compute sizeof (long int), 77
16117 See \`config.log' for more details." >&2;}
16118 { (exit 1); exit 1; }; } ;;
16121 if test "$cross_compiling" = yes; then
16122 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16123 See \`config.log' for more details." >&5
16124 echo "$as_me: error: cannot run test program while cross compiling
16125 See \`config.log' for more details." >&2;}
16126 { (exit 1); exit 1; }; }
16128 cat >conftest.$ac_ext <<_ACEOF
16131 cat confdefs.h >>conftest.$ac_ext
16132 cat >>conftest.$ac_ext <<_ACEOF
16133 /* end confdefs.h. */
16134 $ac_includes_default
16135 long longval () { return (long) (sizeof (long int)); }
16136 unsigned long ulongval () { return (long) (sizeof (long int)); }
16138 #include <stdlib.h>
16143 FILE *f = fopen ("conftest.val", "w");
16146 if (((long) (sizeof (long int))) < 0)
16148 long i = longval ();
16149 if (i != ((long) (sizeof (long int))))
16151 fprintf (f, "%ld\n", i);
16155 unsigned long i = ulongval ();
16156 if (i != ((long) (sizeof (long int))))
16158 fprintf (f, "%lu\n", i);
16160 exit (ferror (f) || fclose (f) != 0);
16166 rm -f conftest$ac_exeext
16167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16168 (eval $ac_link) 2>&5
16170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16171 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16173 (eval $ac_try) 2>&5
16175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16176 (exit $ac_status); }; }; then
16177 ac_cv_sizeof_long_int=`cat conftest.val`
16179 echo "$as_me: program exited with status $ac_status" >&5
16180 echo "$as_me: failed program was:" >&5
16181 sed 's/^/| /' conftest.$ac_ext >&5
16183 ( exit $ac_status )
16184 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
16185 See \`config.log' for more details." >&5
16186 echo "$as_me: error: cannot compute sizeof (long int), 77
16187 See \`config.log' for more details." >&2;}
16188 { (exit 1); exit 1; }; }
16190 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16195 ac_cv_sizeof_long_int=0
16198 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
16199 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
16200 cat >>confdefs.h <<_ACEOF
16201 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
16205 echo "$as_me:$LINENO: checking for long long int" >&5
16206 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
16207 if test "${ac_cv_type_long_long_int+set}" = set; then
16208 echo $ECHO_N "(cached) $ECHO_C" >&6
16210 cat >conftest.$ac_ext <<_ACEOF
16213 cat confdefs.h >>conftest.$ac_ext
16214 cat >>conftest.$ac_ext <<_ACEOF
16215 /* end confdefs.h. */
16216 $ac_includes_default
16220 if ((long long int *) 0)
16222 if (sizeof (long long int))
16228 rm -f conftest.$ac_objext
16229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16230 (eval $ac_compile) 2>conftest.er1
16232 grep -v '^ *+' conftest.er1 >conftest.err
16234 cat conftest.err >&5
16235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16236 (exit $ac_status); } &&
16237 { ac_try='test -z "$ac_c_werror_flag"
16238 || test ! -s conftest.err'
16239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16240 (eval $ac_try) 2>&5
16242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16243 (exit $ac_status); }; } &&
16244 { ac_try='test -s conftest.$ac_objext'
16245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16246 (eval $ac_try) 2>&5
16248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16249 (exit $ac_status); }; }; then
16250 ac_cv_type_long_long_int=yes
16252 echo "$as_me: failed program was:" >&5
16253 sed 's/^/| /' conftest.$ac_ext >&5
16255 ac_cv_type_long_long_int=no
16257 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16259 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
16260 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
16262 echo "$as_me:$LINENO: checking size of long long int" >&5
16263 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
16264 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
16265 echo $ECHO_N "(cached) $ECHO_C" >&6
16267 if test "$ac_cv_type_long_long_int" = yes; then
16268 # The cast to unsigned long works around a bug in the HP C Compiler
16269 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16270 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16271 # This bug is HP SR number 8606223364.
16272 if test "$cross_compiling" = yes; then
16273 # Depending upon the size, compute the lo and hi bounds.
16274 cat >conftest.$ac_ext <<_ACEOF
16277 cat confdefs.h >>conftest.$ac_ext
16278 cat >>conftest.$ac_ext <<_ACEOF
16279 /* end confdefs.h. */
16280 $ac_includes_default
16284 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
16291 rm -f conftest.$ac_objext
16292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16293 (eval $ac_compile) 2>conftest.er1
16295 grep -v '^ *+' conftest.er1 >conftest.err
16297 cat conftest.err >&5
16298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16299 (exit $ac_status); } &&
16300 { ac_try='test -z "$ac_c_werror_flag"
16301 || test ! -s conftest.err'
16302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16303 (eval $ac_try) 2>&5
16305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16306 (exit $ac_status); }; } &&
16307 { ac_try='test -s conftest.$ac_objext'
16308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16309 (eval $ac_try) 2>&5
16311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16312 (exit $ac_status); }; }; then
16315 cat >conftest.$ac_ext <<_ACEOF
16318 cat confdefs.h >>conftest.$ac_ext
16319 cat >>conftest.$ac_ext <<_ACEOF
16320 /* end confdefs.h. */
16321 $ac_includes_default
16325 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
16332 rm -f conftest.$ac_objext
16333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16334 (eval $ac_compile) 2>conftest.er1
16336 grep -v '^ *+' conftest.er1 >conftest.err
16338 cat conftest.err >&5
16339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16340 (exit $ac_status); } &&
16341 { ac_try='test -z "$ac_c_werror_flag"
16342 || test ! -s conftest.err'
16343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16344 (eval $ac_try) 2>&5
16346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16347 (exit $ac_status); }; } &&
16348 { ac_try='test -s conftest.$ac_objext'
16349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16350 (eval $ac_try) 2>&5
16352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16353 (exit $ac_status); }; }; then
16354 ac_hi=$ac_mid; break
16356 echo "$as_me: failed program was:" >&5
16357 sed 's/^/| /' conftest.$ac_ext >&5
16359 ac_lo=`expr $ac_mid + 1`
16360 if test $ac_lo -le $ac_mid; then
16364 ac_mid=`expr 2 '*' $ac_mid + 1`
16366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16369 echo "$as_me: failed program was:" >&5
16370 sed 's/^/| /' conftest.$ac_ext >&5
16372 cat >conftest.$ac_ext <<_ACEOF
16375 cat confdefs.h >>conftest.$ac_ext
16376 cat >>conftest.$ac_ext <<_ACEOF
16377 /* end confdefs.h. */
16378 $ac_includes_default
16382 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
16389 rm -f conftest.$ac_objext
16390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16391 (eval $ac_compile) 2>conftest.er1
16393 grep -v '^ *+' conftest.er1 >conftest.err
16395 cat conftest.err >&5
16396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16397 (exit $ac_status); } &&
16398 { ac_try='test -z "$ac_c_werror_flag"
16399 || test ! -s conftest.err'
16400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16401 (eval $ac_try) 2>&5
16403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16404 (exit $ac_status); }; } &&
16405 { ac_try='test -s conftest.$ac_objext'
16406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16407 (eval $ac_try) 2>&5
16409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16410 (exit $ac_status); }; }; then
16413 cat >conftest.$ac_ext <<_ACEOF
16416 cat confdefs.h >>conftest.$ac_ext
16417 cat >>conftest.$ac_ext <<_ACEOF
16418 /* end confdefs.h. */
16419 $ac_includes_default
16423 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
16430 rm -f conftest.$ac_objext
16431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16432 (eval $ac_compile) 2>conftest.er1
16434 grep -v '^ *+' conftest.er1 >conftest.err
16436 cat conftest.err >&5
16437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16438 (exit $ac_status); } &&
16439 { ac_try='test -z "$ac_c_werror_flag"
16440 || test ! -s conftest.err'
16441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16442 (eval $ac_try) 2>&5
16444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16445 (exit $ac_status); }; } &&
16446 { ac_try='test -s conftest.$ac_objext'
16447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16448 (eval $ac_try) 2>&5
16450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16451 (exit $ac_status); }; }; then
16452 ac_lo=$ac_mid; break
16454 echo "$as_me: failed program was:" >&5
16455 sed 's/^/| /' conftest.$ac_ext >&5
16457 ac_hi=`expr '(' $ac_mid ')' - 1`
16458 if test $ac_mid -le $ac_hi; then
16462 ac_mid=`expr 2 '*' $ac_mid`
16464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16467 echo "$as_me: failed program was:" >&5
16468 sed 's/^/| /' conftest.$ac_ext >&5
16472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16475 # Binary search between lo and hi bounds.
16476 while test "x$ac_lo" != "x$ac_hi"; do
16477 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16478 cat >conftest.$ac_ext <<_ACEOF
16481 cat confdefs.h >>conftest.$ac_ext
16482 cat >>conftest.$ac_ext <<_ACEOF
16483 /* end confdefs.h. */
16484 $ac_includes_default
16488 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
16495 rm -f conftest.$ac_objext
16496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16497 (eval $ac_compile) 2>conftest.er1
16499 grep -v '^ *+' conftest.er1 >conftest.err
16501 cat conftest.err >&5
16502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16503 (exit $ac_status); } &&
16504 { ac_try='test -z "$ac_c_werror_flag"
16505 || test ! -s conftest.err'
16506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16507 (eval $ac_try) 2>&5
16509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16510 (exit $ac_status); }; } &&
16511 { ac_try='test -s conftest.$ac_objext'
16512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16513 (eval $ac_try) 2>&5
16515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16516 (exit $ac_status); }; }; then
16519 echo "$as_me: failed program was:" >&5
16520 sed 's/^/| /' conftest.$ac_ext >&5
16522 ac_lo=`expr '(' $ac_mid ')' + 1`
16524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16527 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
16528 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
16529 See \`config.log' for more details." >&5
16530 echo "$as_me: error: cannot compute sizeof (long long int), 77
16531 See \`config.log' for more details." >&2;}
16532 { (exit 1); exit 1; }; } ;;
16535 if test "$cross_compiling" = yes; then
16536 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16537 See \`config.log' for more details." >&5
16538 echo "$as_me: error: cannot run test program while cross compiling
16539 See \`config.log' for more details." >&2;}
16540 { (exit 1); exit 1; }; }
16542 cat >conftest.$ac_ext <<_ACEOF
16545 cat confdefs.h >>conftest.$ac_ext
16546 cat >>conftest.$ac_ext <<_ACEOF
16547 /* end confdefs.h. */
16548 $ac_includes_default
16549 long longval () { return (long) (sizeof (long long int)); }
16550 unsigned long ulongval () { return (long) (sizeof (long long int)); }
16552 #include <stdlib.h>
16557 FILE *f = fopen ("conftest.val", "w");
16560 if (((long) (sizeof (long long int))) < 0)
16562 long i = longval ();
16563 if (i != ((long) (sizeof (long long int))))
16565 fprintf (f, "%ld\n", i);
16569 unsigned long i = ulongval ();
16570 if (i != ((long) (sizeof (long long int))))
16572 fprintf (f, "%lu\n", i);
16574 exit (ferror (f) || fclose (f) != 0);
16580 rm -f conftest$ac_exeext
16581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16582 (eval $ac_link) 2>&5
16584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16585 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16587 (eval $ac_try) 2>&5
16589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16590 (exit $ac_status); }; }; then
16591 ac_cv_sizeof_long_long_int=`cat conftest.val`
16593 echo "$as_me: program exited with status $ac_status" >&5
16594 echo "$as_me: failed program was:" >&5
16595 sed 's/^/| /' conftest.$ac_ext >&5
16597 ( exit $ac_status )
16598 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
16599 See \`config.log' for more details." >&5
16600 echo "$as_me: error: cannot compute sizeof (long long int), 77
16601 See \`config.log' for more details." >&2;}
16602 { (exit 1); exit 1; }; }
16604 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16609 ac_cv_sizeof_long_long_int=0
16612 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
16613 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
16614 cat >>confdefs.h <<_ACEOF
16615 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
16619 echo "$as_me:$LINENO: checking for int *" >&5
16620 echo $ECHO_N "checking for int *... $ECHO_C" >&6
16621 if test "${ac_cv_type_int_p+set}" = set; then
16622 echo $ECHO_N "(cached) $ECHO_C" >&6
16624 cat >conftest.$ac_ext <<_ACEOF
16627 cat confdefs.h >>conftest.$ac_ext
16628 cat >>conftest.$ac_ext <<_ACEOF
16629 /* end confdefs.h. */
16630 $ac_includes_default
16636 if (sizeof (int *))
16642 rm -f conftest.$ac_objext
16643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16644 (eval $ac_compile) 2>conftest.er1
16646 grep -v '^ *+' conftest.er1 >conftest.err
16648 cat conftest.err >&5
16649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16650 (exit $ac_status); } &&
16651 { ac_try='test -z "$ac_c_werror_flag"
16652 || test ! -s conftest.err'
16653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16654 (eval $ac_try) 2>&5
16656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16657 (exit $ac_status); }; } &&
16658 { ac_try='test -s conftest.$ac_objext'
16659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16660 (eval $ac_try) 2>&5
16662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16663 (exit $ac_status); }; }; then
16664 ac_cv_type_int_p=yes
16666 echo "$as_me: failed program was:" >&5
16667 sed 's/^/| /' conftest.$ac_ext >&5
16669 ac_cv_type_int_p=no
16671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16673 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
16674 echo "${ECHO_T}$ac_cv_type_int_p" >&6
16676 echo "$as_me:$LINENO: checking size of int *" >&5
16677 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
16678 if test "${ac_cv_sizeof_int_p+set}" = set; then
16679 echo $ECHO_N "(cached) $ECHO_C" >&6
16681 if test "$ac_cv_type_int_p" = yes; then
16682 # The cast to unsigned long works around a bug in the HP C Compiler
16683 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16684 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16685 # This bug is HP SR number 8606223364.
16686 if test "$cross_compiling" = yes; then
16687 # Depending upon the size, compute the lo and hi bounds.
16688 cat >conftest.$ac_ext <<_ACEOF
16691 cat confdefs.h >>conftest.$ac_ext
16692 cat >>conftest.$ac_ext <<_ACEOF
16693 /* end confdefs.h. */
16694 $ac_includes_default
16698 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
16705 rm -f conftest.$ac_objext
16706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16707 (eval $ac_compile) 2>conftest.er1
16709 grep -v '^ *+' conftest.er1 >conftest.err
16711 cat conftest.err >&5
16712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16713 (exit $ac_status); } &&
16714 { ac_try='test -z "$ac_c_werror_flag"
16715 || test ! -s conftest.err'
16716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16717 (eval $ac_try) 2>&5
16719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16720 (exit $ac_status); }; } &&
16721 { ac_try='test -s conftest.$ac_objext'
16722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16723 (eval $ac_try) 2>&5
16725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16726 (exit $ac_status); }; }; then
16729 cat >conftest.$ac_ext <<_ACEOF
16732 cat confdefs.h >>conftest.$ac_ext
16733 cat >>conftest.$ac_ext <<_ACEOF
16734 /* end confdefs.h. */
16735 $ac_includes_default
16739 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
16746 rm -f conftest.$ac_objext
16747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16748 (eval $ac_compile) 2>conftest.er1
16750 grep -v '^ *+' conftest.er1 >conftest.err
16752 cat conftest.err >&5
16753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16754 (exit $ac_status); } &&
16755 { ac_try='test -z "$ac_c_werror_flag"
16756 || test ! -s conftest.err'
16757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16758 (eval $ac_try) 2>&5
16760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16761 (exit $ac_status); }; } &&
16762 { ac_try='test -s conftest.$ac_objext'
16763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16764 (eval $ac_try) 2>&5
16766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16767 (exit $ac_status); }; }; then
16768 ac_hi=$ac_mid; break
16770 echo "$as_me: failed program was:" >&5
16771 sed 's/^/| /' conftest.$ac_ext >&5
16773 ac_lo=`expr $ac_mid + 1`
16774 if test $ac_lo -le $ac_mid; then
16778 ac_mid=`expr 2 '*' $ac_mid + 1`
16780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16783 echo "$as_me: failed program was:" >&5
16784 sed 's/^/| /' conftest.$ac_ext >&5
16786 cat >conftest.$ac_ext <<_ACEOF
16789 cat confdefs.h >>conftest.$ac_ext
16790 cat >>conftest.$ac_ext <<_ACEOF
16791 /* end confdefs.h. */
16792 $ac_includes_default
16796 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
16803 rm -f conftest.$ac_objext
16804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16805 (eval $ac_compile) 2>conftest.er1
16807 grep -v '^ *+' conftest.er1 >conftest.err
16809 cat conftest.err >&5
16810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16811 (exit $ac_status); } &&
16812 { ac_try='test -z "$ac_c_werror_flag"
16813 || test ! -s conftest.err'
16814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16815 (eval $ac_try) 2>&5
16817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16818 (exit $ac_status); }; } &&
16819 { ac_try='test -s conftest.$ac_objext'
16820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16821 (eval $ac_try) 2>&5
16823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16824 (exit $ac_status); }; }; then
16827 cat >conftest.$ac_ext <<_ACEOF
16830 cat confdefs.h >>conftest.$ac_ext
16831 cat >>conftest.$ac_ext <<_ACEOF
16832 /* end confdefs.h. */
16833 $ac_includes_default
16837 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
16844 rm -f conftest.$ac_objext
16845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16846 (eval $ac_compile) 2>conftest.er1
16848 grep -v '^ *+' conftest.er1 >conftest.err
16850 cat conftest.err >&5
16851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16852 (exit $ac_status); } &&
16853 { ac_try='test -z "$ac_c_werror_flag"
16854 || test ! -s conftest.err'
16855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16856 (eval $ac_try) 2>&5
16858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16859 (exit $ac_status); }; } &&
16860 { ac_try='test -s conftest.$ac_objext'
16861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16862 (eval $ac_try) 2>&5
16864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16865 (exit $ac_status); }; }; then
16866 ac_lo=$ac_mid; break
16868 echo "$as_me: failed program was:" >&5
16869 sed 's/^/| /' conftest.$ac_ext >&5
16871 ac_hi=`expr '(' $ac_mid ')' - 1`
16872 if test $ac_mid -le $ac_hi; then
16876 ac_mid=`expr 2 '*' $ac_mid`
16878 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16881 echo "$as_me: failed program was:" >&5
16882 sed 's/^/| /' conftest.$ac_ext >&5
16886 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16889 # Binary search between lo and hi bounds.
16890 while test "x$ac_lo" != "x$ac_hi"; do
16891 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16892 cat >conftest.$ac_ext <<_ACEOF
16895 cat confdefs.h >>conftest.$ac_ext
16896 cat >>conftest.$ac_ext <<_ACEOF
16897 /* end confdefs.h. */
16898 $ac_includes_default
16902 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
16909 rm -f conftest.$ac_objext
16910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16911 (eval $ac_compile) 2>conftest.er1
16913 grep -v '^ *+' conftest.er1 >conftest.err
16915 cat conftest.err >&5
16916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16917 (exit $ac_status); } &&
16918 { ac_try='test -z "$ac_c_werror_flag"
16919 || test ! -s conftest.err'
16920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16921 (eval $ac_try) 2>&5
16923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16924 (exit $ac_status); }; } &&
16925 { ac_try='test -s conftest.$ac_objext'
16926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16927 (eval $ac_try) 2>&5
16929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16930 (exit $ac_status); }; }; then
16933 echo "$as_me: failed program was:" >&5
16934 sed 's/^/| /' conftest.$ac_ext >&5
16936 ac_lo=`expr '(' $ac_mid ')' + 1`
16938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16941 ?*) ac_cv_sizeof_int_p=$ac_lo;;
16942 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
16943 See \`config.log' for more details." >&5
16944 echo "$as_me: error: cannot compute sizeof (int *), 77
16945 See \`config.log' for more details." >&2;}
16946 { (exit 1); exit 1; }; } ;;
16949 if test "$cross_compiling" = yes; then
16950 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16951 See \`config.log' for more details." >&5
16952 echo "$as_me: error: cannot run test program while cross compiling
16953 See \`config.log' for more details." >&2;}
16954 { (exit 1); exit 1; }; }
16956 cat >conftest.$ac_ext <<_ACEOF
16959 cat confdefs.h >>conftest.$ac_ext
16960 cat >>conftest.$ac_ext <<_ACEOF
16961 /* end confdefs.h. */
16962 $ac_includes_default
16963 long longval () { return (long) (sizeof (int *)); }
16964 unsigned long ulongval () { return (long) (sizeof (int *)); }
16966 #include <stdlib.h>
16971 FILE *f = fopen ("conftest.val", "w");
16974 if (((long) (sizeof (int *))) < 0)
16976 long i = longval ();
16977 if (i != ((long) (sizeof (int *))))
16979 fprintf (f, "%ld\n", i);
16983 unsigned long i = ulongval ();
16984 if (i != ((long) (sizeof (int *))))
16986 fprintf (f, "%lu\n", i);
16988 exit (ferror (f) || fclose (f) != 0);
16994 rm -f conftest$ac_exeext
16995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16996 (eval $ac_link) 2>&5
16998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16999 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17001 (eval $ac_try) 2>&5
17003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17004 (exit $ac_status); }; }; then
17005 ac_cv_sizeof_int_p=`cat conftest.val`
17007 echo "$as_me: program exited with status $ac_status" >&5
17008 echo "$as_me: failed program was:" >&5
17009 sed 's/^/| /' conftest.$ac_ext >&5
17011 ( exit $ac_status )
17012 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
17013 See \`config.log' for more details." >&5
17014 echo "$as_me: error: cannot compute sizeof (int *), 77
17015 See \`config.log' for more details." >&2;}
17016 { (exit 1); exit 1; }; }
17018 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17023 ac_cv_sizeof_int_p=0
17026 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
17027 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
17028 cat >>confdefs.h <<_ACEOF
17029 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
17034 # Check for sys/types.h types
17035 echo "$as_me:$LINENO: checking for u_int type" >&5
17036 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
17037 if test "${ac_cv_have_u_int+set}" = set; then
17038 echo $ECHO_N "(cached) $ECHO_C" >&6
17041 cat >conftest.$ac_ext <<_ACEOF
17044 cat confdefs.h >>conftest.$ac_ext
17045 cat >>conftest.$ac_ext <<_ACEOF
17046 /* end confdefs.h. */
17047 #include <sys/types.h>
17056 rm -f conftest.$ac_objext
17057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17058 (eval $ac_compile) 2>conftest.er1
17060 grep -v '^ *+' conftest.er1 >conftest.err
17062 cat conftest.err >&5
17063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17064 (exit $ac_status); } &&
17065 { ac_try='test -z "$ac_c_werror_flag"
17066 || test ! -s conftest.err'
17067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17068 (eval $ac_try) 2>&5
17070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17071 (exit $ac_status); }; } &&
17072 { ac_try='test -s conftest.$ac_objext'
17073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17074 (eval $ac_try) 2>&5
17076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17077 (exit $ac_status); }; }; then
17078 ac_cv_have_u_int="yes"
17080 echo "$as_me: failed program was:" >&5
17081 sed 's/^/| /' conftest.$ac_ext >&5
17083 ac_cv_have_u_int="no"
17086 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17089 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
17090 echo "${ECHO_T}$ac_cv_have_u_int" >&6
17091 if test "x$ac_cv_have_u_int" = "xyes" ; then
17092 cat >>confdefs.h <<\_ACEOF
17093 #define HAVE_U_INT 1
17099 echo "$as_me:$LINENO: checking for intmax_t type" >&5
17100 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
17101 if test "${ac_cv_have_intmax_t+set}" = set; then
17102 echo $ECHO_N "(cached) $ECHO_C" >&6
17105 cat >conftest.$ac_ext <<_ACEOF
17108 cat confdefs.h >>conftest.$ac_ext
17109 cat >>conftest.$ac_ext <<_ACEOF
17110 /* end confdefs.h. */
17111 #include <sys/types.h>
17120 rm -f conftest.$ac_objext
17121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17122 (eval $ac_compile) 2>conftest.er1
17124 grep -v '^ *+' conftest.er1 >conftest.err
17126 cat conftest.err >&5
17127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17128 (exit $ac_status); } &&
17129 { ac_try='test -z "$ac_c_werror_flag"
17130 || test ! -s conftest.err'
17131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17132 (eval $ac_try) 2>&5
17134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17135 (exit $ac_status); }; } &&
17136 { ac_try='test -s conftest.$ac_objext'
17137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17138 (eval $ac_try) 2>&5
17140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17141 (exit $ac_status); }; }; then
17142 ac_cv_have_intmax_t="yes"
17144 echo "$as_me: failed program was:" >&5
17145 sed 's/^/| /' conftest.$ac_ext >&5
17148 cat >conftest.$ac_ext <<_ACEOF
17151 cat confdefs.h >>conftest.$ac_ext
17152 cat >>conftest.$ac_ext <<_ACEOF
17153 /* end confdefs.h. */
17154 #include <stdint.h>
17163 rm -f conftest.$ac_objext
17164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17165 (eval $ac_compile) 2>conftest.er1
17167 grep -v '^ *+' conftest.er1 >conftest.err
17169 cat conftest.err >&5
17170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17171 (exit $ac_status); } &&
17172 { ac_try='test -z "$ac_c_werror_flag"
17173 || test ! -s conftest.err'
17174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17175 (eval $ac_try) 2>&5
17177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17178 (exit $ac_status); }; } &&
17179 { ac_try='test -s conftest.$ac_objext'
17180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17181 (eval $ac_try) 2>&5
17183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17184 (exit $ac_status); }; }; then
17185 ac_cv_have_intmax_t="yes"
17187 echo "$as_me: failed program was:" >&5
17188 sed 's/^/| /' conftest.$ac_ext >&5
17190 ac_cv_have_intmax_t="no"
17193 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17201 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
17202 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
17203 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
17204 cat >>confdefs.h <<\_ACEOF
17205 #define HAVE_INTMAX_T 1
17212 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
17213 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
17214 if test "${ac_cv_have_u_intmax_t+set}" = set; then
17215 echo $ECHO_N "(cached) $ECHO_C" >&6
17218 cat >conftest.$ac_ext <<_ACEOF
17221 cat confdefs.h >>conftest.$ac_ext
17222 cat >>conftest.$ac_ext <<_ACEOF
17223 /* end confdefs.h. */
17224 #include <sys/types.h>
17228 u_intmax_t a; a = 1;
17233 rm -f conftest.$ac_objext
17234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17235 (eval $ac_compile) 2>conftest.er1
17237 grep -v '^ *+' conftest.er1 >conftest.err
17239 cat conftest.err >&5
17240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17241 (exit $ac_status); } &&
17242 { ac_try='test -z "$ac_c_werror_flag"
17243 || test ! -s conftest.err'
17244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17245 (eval $ac_try) 2>&5
17247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17248 (exit $ac_status); }; } &&
17249 { ac_try='test -s conftest.$ac_objext'
17250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17251 (eval $ac_try) 2>&5
17253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17254 (exit $ac_status); }; }; then
17255 ac_cv_have_u_intmax_t="yes"
17257 echo "$as_me: failed program was:" >&5
17258 sed 's/^/| /' conftest.$ac_ext >&5
17261 cat >conftest.$ac_ext <<_ACEOF
17264 cat confdefs.h >>conftest.$ac_ext
17265 cat >>conftest.$ac_ext <<_ACEOF
17266 /* end confdefs.h. */
17267 #include <stdint.h>
17271 u_intmax_t a; a = 1;
17276 rm -f conftest.$ac_objext
17277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17278 (eval $ac_compile) 2>conftest.er1
17280 grep -v '^ *+' conftest.er1 >conftest.err
17282 cat conftest.err >&5
17283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17284 (exit $ac_status); } &&
17285 { ac_try='test -z "$ac_c_werror_flag"
17286 || test ! -s conftest.err'
17287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17288 (eval $ac_try) 2>&5
17290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17291 (exit $ac_status); }; } &&
17292 { ac_try='test -s conftest.$ac_objext'
17293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17294 (eval $ac_try) 2>&5
17296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17297 (exit $ac_status); }; }; then
17298 ac_cv_have_u_intmax_t="yes"
17300 echo "$as_me: failed program was:" >&5
17301 sed 's/^/| /' conftest.$ac_ext >&5
17303 ac_cv_have_u_intmax_t="no"
17306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17313 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
17314 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
17315 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
17316 cat >>confdefs.h <<\_ACEOF
17317 #define HAVE_U_INTMAX_T 1
17324 echo "$as_me:$LINENO: checking for intXX_t types" >&5
17325 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
17326 if test "${ac_cv_have_intxx_t+set}" = set; then
17327 echo $ECHO_N "(cached) $ECHO_C" >&6
17330 cat >conftest.$ac_ext <<_ACEOF
17333 cat confdefs.h >>conftest.$ac_ext
17334 cat >>conftest.$ac_ext <<_ACEOF
17335 /* end confdefs.h. */
17336 #include <sys/types.h>
17340 int8_t a; int16_t b; int32_t c; a = b = c = 1;
17345 rm -f conftest.$ac_objext
17346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17347 (eval $ac_compile) 2>conftest.er1
17349 grep -v '^ *+' conftest.er1 >conftest.err
17351 cat conftest.err >&5
17352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17353 (exit $ac_status); } &&
17354 { ac_try='test -z "$ac_c_werror_flag"
17355 || test ! -s conftest.err'
17356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17357 (eval $ac_try) 2>&5
17359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17360 (exit $ac_status); }; } &&
17361 { ac_try='test -s conftest.$ac_objext'
17362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17363 (eval $ac_try) 2>&5
17365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17366 (exit $ac_status); }; }; then
17367 ac_cv_have_intxx_t="yes"
17369 echo "$as_me: failed program was:" >&5
17370 sed 's/^/| /' conftest.$ac_ext >&5
17372 ac_cv_have_intxx_t="no"
17375 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17378 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
17379 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
17380 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
17381 cat >>confdefs.h <<\_ACEOF
17382 #define HAVE_INTXX_T 1
17388 echo "$as_me:$LINENO: checking for int64_t type" >&5
17389 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
17390 if test "${ac_cv_have_int64_t+set}" = set; then
17391 echo $ECHO_N "(cached) $ECHO_C" >&6
17394 cat >conftest.$ac_ext <<_ACEOF
17397 cat confdefs.h >>conftest.$ac_ext
17398 cat >>conftest.$ac_ext <<_ACEOF
17399 /* end confdefs.h. */
17400 #include <sys/types.h>
17409 rm -f conftest.$ac_objext
17410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17411 (eval $ac_compile) 2>conftest.er1
17413 grep -v '^ *+' conftest.er1 >conftest.err
17415 cat conftest.err >&5
17416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17417 (exit $ac_status); } &&
17418 { ac_try='test -z "$ac_c_werror_flag"
17419 || test ! -s conftest.err'
17420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17421 (eval $ac_try) 2>&5
17423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17424 (exit $ac_status); }; } &&
17425 { ac_try='test -s conftest.$ac_objext'
17426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17427 (eval $ac_try) 2>&5
17429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17430 (exit $ac_status); }; }; then
17431 ac_cv_have_int64_t="yes"
17433 echo "$as_me: failed program was:" >&5
17434 sed 's/^/| /' conftest.$ac_ext >&5
17436 ac_cv_have_int64_t="no"
17439 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17442 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
17443 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
17444 if test "x$ac_cv_have_int64_t" = "xyes" ; then
17445 cat >>confdefs.h <<\_ACEOF
17446 #define HAVE_INT64_T 1
17452 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
17453 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
17454 if test "${ac_cv_have_u_intxx_t+set}" = set; then
17455 echo $ECHO_N "(cached) $ECHO_C" >&6
17458 cat >conftest.$ac_ext <<_ACEOF
17461 cat confdefs.h >>conftest.$ac_ext
17462 cat >>conftest.$ac_ext <<_ACEOF
17463 /* end confdefs.h. */
17464 #include <sys/types.h>
17468 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
17473 rm -f conftest.$ac_objext
17474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17475 (eval $ac_compile) 2>conftest.er1
17477 grep -v '^ *+' conftest.er1 >conftest.err
17479 cat conftest.err >&5
17480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17481 (exit $ac_status); } &&
17482 { ac_try='test -z "$ac_c_werror_flag"
17483 || test ! -s conftest.err'
17484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17485 (eval $ac_try) 2>&5
17487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17488 (exit $ac_status); }; } &&
17489 { ac_try='test -s conftest.$ac_objext'
17490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17491 (eval $ac_try) 2>&5
17493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17494 (exit $ac_status); }; }; then
17495 ac_cv_have_u_intxx_t="yes"
17497 echo "$as_me: failed program was:" >&5
17498 sed 's/^/| /' conftest.$ac_ext >&5
17500 ac_cv_have_u_intxx_t="no"
17503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17506 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
17507 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
17508 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
17509 cat >>confdefs.h <<\_ACEOF
17510 #define HAVE_U_INTXX_T 1
17516 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
17517 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
17518 if test "${ac_cv_have_u_int64_t+set}" = set; then
17519 echo $ECHO_N "(cached) $ECHO_C" >&6
17522 cat >conftest.$ac_ext <<_ACEOF
17525 cat confdefs.h >>conftest.$ac_ext
17526 cat >>conftest.$ac_ext <<_ACEOF
17527 /* end confdefs.h. */
17528 #include <sys/types.h>
17532 u_int64_t a; a = 1;
17537 rm -f conftest.$ac_objext
17538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17539 (eval $ac_compile) 2>conftest.er1
17541 grep -v '^ *+' conftest.er1 >conftest.err
17543 cat conftest.err >&5
17544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17545 (exit $ac_status); } &&
17546 { ac_try='test -z "$ac_c_werror_flag"
17547 || test ! -s conftest.err'
17548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17549 (eval $ac_try) 2>&5
17551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17552 (exit $ac_status); }; } &&
17553 { ac_try='test -s conftest.$ac_objext'
17554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17555 (eval $ac_try) 2>&5
17557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17558 (exit $ac_status); }; }; then
17559 ac_cv_have_u_int64_t="yes"
17561 echo "$as_me: failed program was:" >&5
17562 sed 's/^/| /' conftest.$ac_ext >&5
17564 ac_cv_have_u_int64_t="no"
17567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17570 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
17571 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
17572 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
17573 cat >>confdefs.h <<\_ACEOF
17574 #define HAVE_U_INT64_T 1
17580 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
17581 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
17583 echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
17584 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
17585 cat >conftest.$ac_ext <<_ACEOF
17588 cat confdefs.h >>conftest.$ac_ext
17589 cat >>conftest.$ac_ext <<_ACEOF
17590 /* end confdefs.h. */
17591 #include <sys/bitypes.h>
17595 int8_t a; int16_t b; int32_t c;
17596 u_int8_t e; u_int16_t f; u_int32_t g;
17597 a = b = c = e = f = g = 1;
17602 rm -f conftest.$ac_objext
17603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17604 (eval $ac_compile) 2>conftest.er1
17606 grep -v '^ *+' conftest.er1 >conftest.err
17608 cat conftest.err >&5
17609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17610 (exit $ac_status); } &&
17611 { ac_try='test -z "$ac_c_werror_flag"
17612 || test ! -s conftest.err'
17613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17614 (eval $ac_try) 2>&5
17616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17617 (exit $ac_status); }; } &&
17618 { ac_try='test -s conftest.$ac_objext'
17619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17620 (eval $ac_try) 2>&5
17622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17623 (exit $ac_status); }; }; then
17624 cat >>confdefs.h <<\_ACEOF
17625 #define HAVE_U_INTXX_T 1
17628 cat >>confdefs.h <<\_ACEOF
17629 #define HAVE_INTXX_T 1
17632 cat >>confdefs.h <<\_ACEOF
17633 #define HAVE_SYS_BITYPES_H 1
17636 echo "$as_me:$LINENO: result: yes" >&5
17637 echo "${ECHO_T}yes" >&6
17639 echo "$as_me: failed program was:" >&5
17640 sed 's/^/| /' conftest.$ac_ext >&5
17642 echo "$as_me:$LINENO: result: no" >&5
17643 echo "${ECHO_T}no" >&6
17646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17649 if test -z "$have_u_intxx_t" ; then
17650 echo "$as_me:$LINENO: checking for uintXX_t types" >&5
17651 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
17652 if test "${ac_cv_have_uintxx_t+set}" = set; then
17653 echo $ECHO_N "(cached) $ECHO_C" >&6
17656 cat >conftest.$ac_ext <<_ACEOF
17659 cat confdefs.h >>conftest.$ac_ext
17660 cat >>conftest.$ac_ext <<_ACEOF
17661 /* end confdefs.h. */
17662 #include <sys/types.h>
17666 uint8_t a; uint16_t b;
17667 uint32_t c; a = b = c = 1;
17672 rm -f conftest.$ac_objext
17673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17674 (eval $ac_compile) 2>conftest.er1
17676 grep -v '^ *+' conftest.er1 >conftest.err
17678 cat conftest.err >&5
17679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17680 (exit $ac_status); } &&
17681 { ac_try='test -z "$ac_c_werror_flag"
17682 || test ! -s conftest.err'
17683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17684 (eval $ac_try) 2>&5
17686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17687 (exit $ac_status); }; } &&
17688 { ac_try='test -s conftest.$ac_objext'
17689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17690 (eval $ac_try) 2>&5
17692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17693 (exit $ac_status); }; }; then
17694 ac_cv_have_uintxx_t="yes"
17696 echo "$as_me: failed program was:" >&5
17697 sed 's/^/| /' conftest.$ac_ext >&5
17699 ac_cv_have_uintxx_t="no"
17702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17705 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
17706 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
17707 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
17708 cat >>confdefs.h <<\_ACEOF
17709 #define HAVE_UINTXX_T 1
17715 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
17716 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
17718 echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
17719 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
17720 cat >conftest.$ac_ext <<_ACEOF
17723 cat confdefs.h >>conftest.$ac_ext
17724 cat >>conftest.$ac_ext <<_ACEOF
17725 /* end confdefs.h. */
17726 #include <sys/bitypes.h>
17730 int64_t a; u_int64_t b;
17736 rm -f conftest.$ac_objext
17737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17738 (eval $ac_compile) 2>conftest.er1
17740 grep -v '^ *+' conftest.er1 >conftest.err
17742 cat conftest.err >&5
17743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17744 (exit $ac_status); } &&
17745 { ac_try='test -z "$ac_c_werror_flag"
17746 || test ! -s conftest.err'
17747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17748 (eval $ac_try) 2>&5
17750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17751 (exit $ac_status); }; } &&
17752 { ac_try='test -s conftest.$ac_objext'
17753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17754 (eval $ac_try) 2>&5
17756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17757 (exit $ac_status); }; }; then
17758 cat >>confdefs.h <<\_ACEOF
17759 #define HAVE_U_INT64_T 1
17762 cat >>confdefs.h <<\_ACEOF
17763 #define HAVE_INT64_T 1
17766 echo "$as_me:$LINENO: result: yes" >&5
17767 echo "${ECHO_T}yes" >&6
17769 echo "$as_me: failed program was:" >&5
17770 sed 's/^/| /' conftest.$ac_ext >&5
17772 echo "$as_me:$LINENO: result: no" >&5
17773 echo "${ECHO_T}no" >&6
17776 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17779 if (test -z "$have_uintxx_t" && \
17780 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
17782 echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
17783 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
17784 cat >conftest.$ac_ext <<_ACEOF
17787 cat confdefs.h >>conftest.$ac_ext
17788 cat >>conftest.$ac_ext <<_ACEOF
17789 /* end confdefs.h. */
17790 #include <sys/bitypes.h>
17794 uint8_t a; uint16_t b;
17795 uint32_t c; a = b = c = 1;
17800 rm -f conftest.$ac_objext
17801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17802 (eval $ac_compile) 2>conftest.er1
17804 grep -v '^ *+' conftest.er1 >conftest.err
17806 cat conftest.err >&5
17807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17808 (exit $ac_status); } &&
17809 { ac_try='test -z "$ac_c_werror_flag"
17810 || test ! -s conftest.err'
17811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17812 (eval $ac_try) 2>&5
17814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17815 (exit $ac_status); }; } &&
17816 { ac_try='test -s conftest.$ac_objext'
17817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17818 (eval $ac_try) 2>&5
17820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17821 (exit $ac_status); }; }; then
17822 cat >>confdefs.h <<\_ACEOF
17823 #define HAVE_UINTXX_T 1
17826 echo "$as_me:$LINENO: result: yes" >&5
17827 echo "${ECHO_T}yes" >&6
17829 echo "$as_me: failed program was:" >&5
17830 sed 's/^/| /' conftest.$ac_ext >&5
17832 echo "$as_me:$LINENO: result: no" >&5
17833 echo "${ECHO_T}no" >&6
17836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17872 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17873 echo "$as_me:$LINENO: checking for $ac_func" >&5
17874 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17875 if eval "test \"\${$as_ac_var+set}\" = set"; then
17876 echo $ECHO_N "(cached) $ECHO_C" >&6
17878 cat >conftest.$ac_ext <<_ACEOF
17881 cat confdefs.h >>conftest.$ac_ext
17882 cat >>conftest.$ac_ext <<_ACEOF
17883 /* end confdefs.h. */
17884 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17885 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17886 #define $ac_func innocuous_$ac_func
17888 /* System header to define __stub macros and hopefully few prototypes,
17889 which can conflict with char $ac_func (); below.
17890 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17891 <limits.h> exists even on freestanding compilers. */
17894 # include <limits.h>
17896 # include <assert.h>
17901 /* Override any gcc2 internal prototype to avoid an error. */
17906 /* We use char because int might match the return type of a gcc2
17907 builtin and then its argument prototype would still apply. */
17909 /* The GNU C library defines this for functions which it implements
17910 to always fail with ENOSYS. Some functions are actually named
17911 something starting with __ and the normal name is an alias. */
17912 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17915 char (*f) () = $ac_func;
17924 return f != $ac_func;
17929 rm -f conftest.$ac_objext conftest$ac_exeext
17930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17931 (eval $ac_link) 2>conftest.er1
17933 grep -v '^ *+' conftest.er1 >conftest.err
17935 cat conftest.err >&5
17936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17937 (exit $ac_status); } &&
17938 { ac_try='test -z "$ac_c_werror_flag"
17939 || test ! -s conftest.err'
17940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17941 (eval $ac_try) 2>&5
17943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17944 (exit $ac_status); }; } &&
17945 { ac_try='test -s conftest$ac_exeext'
17946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17947 (eval $ac_try) 2>&5
17949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17950 (exit $ac_status); }; }; then
17951 eval "$as_ac_var=yes"
17953 echo "$as_me: failed program was:" >&5
17954 sed 's/^/| /' conftest.$ac_ext >&5
17956 eval "$as_ac_var=no"
17958 rm -f conftest.err conftest.$ac_objext \
17959 conftest$ac_exeext conftest.$ac_ext
17961 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17962 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17963 if test `eval echo '${'$as_ac_var'}'` = yes; then
17964 cat >>confdefs.h <<_ACEOF
17965 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17969 echo 'configure: cannot find needed function.'; exit 1
17976 for ac_func in fchdir
17978 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17979 echo "$as_me:$LINENO: checking for $ac_func" >&5
17980 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17981 if eval "test \"\${$as_ac_var+set}\" = set"; then
17982 echo $ECHO_N "(cached) $ECHO_C" >&6
17984 cat >conftest.$ac_ext <<_ACEOF
17987 cat confdefs.h >>conftest.$ac_ext
17988 cat >>conftest.$ac_ext <<_ACEOF
17989 /* end confdefs.h. */
17990 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17991 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17992 #define $ac_func innocuous_$ac_func
17994 /* System header to define __stub macros and hopefully few prototypes,
17995 which can conflict with char $ac_func (); below.
17996 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17997 <limits.h> exists even on freestanding compilers. */
18000 # include <limits.h>
18002 # include <assert.h>
18007 /* Override any gcc2 internal prototype to avoid an error. */
18012 /* We use char because int might match the return type of a gcc2
18013 builtin and then its argument prototype would still apply. */
18015 /* The GNU C library defines this for functions which it implements
18016 to always fail with ENOSYS. Some functions are actually named
18017 something starting with __ and the normal name is an alias. */
18018 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18021 char (*f) () = $ac_func;
18030 return f != $ac_func;
18035 rm -f conftest.$ac_objext conftest$ac_exeext
18036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18037 (eval $ac_link) 2>conftest.er1
18039 grep -v '^ *+' conftest.er1 >conftest.err
18041 cat conftest.err >&5
18042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18043 (exit $ac_status); } &&
18044 { ac_try='test -z "$ac_c_werror_flag"
18045 || test ! -s conftest.err'
18046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18047 (eval $ac_try) 2>&5
18049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18050 (exit $ac_status); }; } &&
18051 { ac_try='test -s conftest$ac_exeext'
18052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18053 (eval $ac_try) 2>&5
18055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18056 (exit $ac_status); }; }; then
18057 eval "$as_ac_var=yes"
18059 echo "$as_me: failed program was:" >&5
18060 sed 's/^/| /' conftest.$ac_ext >&5
18062 eval "$as_ac_var=no"
18064 rm -f conftest.err conftest.$ac_objext \
18065 conftest$ac_exeext conftest.$ac_ext
18067 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18068 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18069 if test `eval echo '${'$as_ac_var'}'` = yes; then
18070 cat >>confdefs.h <<_ACEOF
18071 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18073 cat >>confdefs.h <<\_ACEOF
18074 #define HAVE_FCHDIR 1
18081 for ac_func in strtoll
18083 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18084 echo "$as_me:$LINENO: checking for $ac_func" >&5
18085 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18086 if eval "test \"\${$as_ac_var+set}\" = set"; then
18087 echo $ECHO_N "(cached) $ECHO_C" >&6
18089 cat >conftest.$ac_ext <<_ACEOF
18092 cat confdefs.h >>conftest.$ac_ext
18093 cat >>conftest.$ac_ext <<_ACEOF
18094 /* end confdefs.h. */
18095 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18096 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18097 #define $ac_func innocuous_$ac_func
18099 /* System header to define __stub macros and hopefully few prototypes,
18100 which can conflict with char $ac_func (); below.
18101 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18102 <limits.h> exists even on freestanding compilers. */
18105 # include <limits.h>
18107 # include <assert.h>
18112 /* Override any gcc2 internal prototype to avoid an error. */
18117 /* We use char because int might match the return type of a gcc2
18118 builtin and then its argument prototype would still apply. */
18120 /* The GNU C library defines this for functions which it implements
18121 to always fail with ENOSYS. Some functions are actually named
18122 something starting with __ and the normal name is an alias. */
18123 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18126 char (*f) () = $ac_func;
18135 return f != $ac_func;
18140 rm -f conftest.$ac_objext conftest$ac_exeext
18141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18142 (eval $ac_link) 2>conftest.er1
18144 grep -v '^ *+' conftest.er1 >conftest.err
18146 cat conftest.err >&5
18147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18148 (exit $ac_status); } &&
18149 { ac_try='test -z "$ac_c_werror_flag"
18150 || test ! -s conftest.err'
18151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18152 (eval $ac_try) 2>&5
18154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18155 (exit $ac_status); }; } &&
18156 { ac_try='test -s conftest$ac_exeext'
18157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18158 (eval $ac_try) 2>&5
18160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18161 (exit $ac_status); }; }; then
18162 eval "$as_ac_var=yes"
18164 echo "$as_me: failed program was:" >&5
18165 sed 's/^/| /' conftest.$ac_ext >&5
18167 eval "$as_ac_var=no"
18169 rm -f conftest.err conftest.$ac_objext \
18170 conftest$ac_exeext conftest.$ac_ext
18172 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18173 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18174 if test `eval echo '${'$as_ac_var'}'` = yes; then
18175 cat >>confdefs.h <<_ACEOF
18176 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18178 cat >>confdefs.h <<\_ACEOF
18179 #define HAVE_STRTOLL 1
18187 for ac_func in chflags
18189 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18190 echo "$as_me:$LINENO: checking for $ac_func" >&5
18191 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18192 if eval "test \"\${$as_ac_var+set}\" = set"; then
18193 echo $ECHO_N "(cached) $ECHO_C" >&6
18195 cat >conftest.$ac_ext <<_ACEOF
18198 cat confdefs.h >>conftest.$ac_ext
18199 cat >>conftest.$ac_ext <<_ACEOF
18200 /* end confdefs.h. */
18201 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18202 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18203 #define $ac_func innocuous_$ac_func
18205 /* System header to define __stub macros and hopefully few prototypes,
18206 which can conflict with char $ac_func (); below.
18207 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18208 <limits.h> exists even on freestanding compilers. */
18211 # include <limits.h>
18213 # include <assert.h>
18218 /* Override any gcc2 internal prototype to avoid an error. */
18223 /* We use char because int might match the return type of a gcc2
18224 builtin and then its argument prototype would still apply. */
18226 /* The GNU C library defines this for functions which it implements
18227 to always fail with ENOSYS. Some functions are actually named
18228 something starting with __ and the normal name is an alias. */
18229 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18232 char (*f) () = $ac_func;
18241 return f != $ac_func;
18246 rm -f conftest.$ac_objext conftest$ac_exeext
18247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18248 (eval $ac_link) 2>conftest.er1
18250 grep -v '^ *+' conftest.er1 >conftest.err
18252 cat conftest.err >&5
18253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18254 (exit $ac_status); } &&
18255 { ac_try='test -z "$ac_c_werror_flag"
18256 || test ! -s conftest.err'
18257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18258 (eval $ac_try) 2>&5
18260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18261 (exit $ac_status); }; } &&
18262 { ac_try='test -s conftest$ac_exeext'
18263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18264 (eval $ac_try) 2>&5
18266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18267 (exit $ac_status); }; }; then
18268 eval "$as_ac_var=yes"
18270 echo "$as_me: failed program was:" >&5
18271 sed 's/^/| /' conftest.$ac_ext >&5
18273 eval "$as_ac_var=no"
18275 rm -f conftest.err conftest.$ac_objext \
18276 conftest$ac_exeext conftest.$ac_ext
18278 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18279 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18280 if test `eval echo '${'$as_ac_var'}'` = yes; then
18281 cat >>confdefs.h <<_ACEOF
18282 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18293 for ac_func in snprintf vsnprintf gethostid getdomainname
18295 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18296 echo "$as_me:$LINENO: checking for $ac_func" >&5
18297 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18298 if eval "test \"\${$as_ac_var+set}\" = set"; then
18299 echo $ECHO_N "(cached) $ECHO_C" >&6
18301 cat >conftest.$ac_ext <<_ACEOF
18304 cat confdefs.h >>conftest.$ac_ext
18305 cat >>conftest.$ac_ext <<_ACEOF
18306 /* end confdefs.h. */
18307 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18308 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18309 #define $ac_func innocuous_$ac_func
18311 /* System header to define __stub macros and hopefully few prototypes,
18312 which can conflict with char $ac_func (); below.
18313 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18314 <limits.h> exists even on freestanding compilers. */
18317 # include <limits.h>
18319 # include <assert.h>
18324 /* Override any gcc2 internal prototype to avoid an error. */
18329 /* We use char because int might match the return type of a gcc2
18330 builtin and then its argument prototype would still apply. */
18332 /* The GNU C library defines this for functions which it implements
18333 to always fail with ENOSYS. Some functions are actually named
18334 something starting with __ and the normal name is an alias. */
18335 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18338 char (*f) () = $ac_func;
18347 return f != $ac_func;
18352 rm -f conftest.$ac_objext conftest$ac_exeext
18353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18354 (eval $ac_link) 2>conftest.er1
18356 grep -v '^ *+' conftest.er1 >conftest.err
18358 cat conftest.err >&5
18359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18360 (exit $ac_status); } &&
18361 { ac_try='test -z "$ac_c_werror_flag"
18362 || test ! -s conftest.err'
18363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18364 (eval $ac_try) 2>&5
18366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18367 (exit $ac_status); }; } &&
18368 { ac_try='test -s conftest$ac_exeext'
18369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18370 (eval $ac_try) 2>&5
18372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18373 (exit $ac_status); }; }; then
18374 eval "$as_ac_var=yes"
18376 echo "$as_me: failed program was:" >&5
18377 sed 's/^/| /' conftest.$ac_ext >&5
18379 eval "$as_ac_var=no"
18381 rm -f conftest.err conftest.$ac_objext \
18382 conftest$ac_exeext conftest.$ac_ext
18384 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18385 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18386 if test `eval echo '${'$as_ac_var'}'` = yes; then
18387 cat >>confdefs.h <<_ACEOF
18388 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18399 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
18401 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18402 echo "$as_me:$LINENO: checking for $ac_func" >&5
18403 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18404 if eval "test \"\${$as_ac_var+set}\" = set"; then
18405 echo $ECHO_N "(cached) $ECHO_C" >&6
18407 cat >conftest.$ac_ext <<_ACEOF
18410 cat confdefs.h >>conftest.$ac_ext
18411 cat >>conftest.$ac_ext <<_ACEOF
18412 /* end confdefs.h. */
18413 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18414 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18415 #define $ac_func innocuous_$ac_func
18417 /* System header to define __stub macros and hopefully few prototypes,
18418 which can conflict with char $ac_func (); below.
18419 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18420 <limits.h> exists even on freestanding compilers. */
18423 # include <limits.h>
18425 # include <assert.h>
18430 /* Override any gcc2 internal prototype to avoid an error. */
18435 /* We use char because int might match the return type of a gcc2
18436 builtin and then its argument prototype would still apply. */
18438 /* The GNU C library defines this for functions which it implements
18439 to always fail with ENOSYS. Some functions are actually named
18440 something starting with __ and the normal name is an alias. */
18441 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18444 char (*f) () = $ac_func;
18453 return f != $ac_func;
18458 rm -f conftest.$ac_objext conftest$ac_exeext
18459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18460 (eval $ac_link) 2>conftest.er1
18462 grep -v '^ *+' conftest.er1 >conftest.err
18464 cat conftest.err >&5
18465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18466 (exit $ac_status); } &&
18467 { ac_try='test -z "$ac_c_werror_flag"
18468 || test ! -s conftest.err'
18469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18470 (eval $ac_try) 2>&5
18472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18473 (exit $ac_status); }; } &&
18474 { ac_try='test -s conftest$ac_exeext'
18475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18476 (eval $ac_try) 2>&5
18478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18479 (exit $ac_status); }; }; then
18480 eval "$as_ac_var=yes"
18482 echo "$as_me: failed program was:" >&5
18483 sed 's/^/| /' conftest.$ac_ext >&5
18485 eval "$as_ac_var=no"
18487 rm -f conftest.err conftest.$ac_objext \
18488 conftest$ac_exeext conftest.$ac_ext
18490 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18491 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18492 if test `eval echo '${'$as_ac_var'}'` = yes; then
18493 cat >>confdefs.h <<_ACEOF
18494 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18501 # If resolver functions are not in libc check for -lnsl or -lresolv.
18502 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
18503 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
18504 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
18505 echo $ECHO_N "(cached) $ECHO_C" >&6
18507 cat >conftest.$ac_ext <<_ACEOF
18510 cat confdefs.h >>conftest.$ac_ext
18511 cat >>conftest.$ac_ext <<_ACEOF
18512 /* end confdefs.h. */
18513 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
18514 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18515 #define gethostbyname_r innocuous_gethostbyname_r
18517 /* System header to define __stub macros and hopefully few prototypes,
18518 which can conflict with char gethostbyname_r (); below.
18519 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18520 <limits.h> exists even on freestanding compilers. */
18523 # include <limits.h>
18525 # include <assert.h>
18528 #undef gethostbyname_r
18530 /* Override any gcc2 internal prototype to avoid an error. */
18535 /* We use char because int might match the return type of a gcc2
18536 builtin and then its argument prototype would still apply. */
18537 char gethostbyname_r ();
18538 /* The GNU C library defines this for functions which it implements
18539 to always fail with ENOSYS. Some functions are actually named
18540 something starting with __ and the normal name is an alias. */
18541 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
18544 char (*f) () = gethostbyname_r;
18553 return f != gethostbyname_r;
18558 rm -f conftest.$ac_objext conftest$ac_exeext
18559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18560 (eval $ac_link) 2>conftest.er1
18562 grep -v '^ *+' conftest.er1 >conftest.err
18564 cat conftest.err >&5
18565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18566 (exit $ac_status); } &&
18567 { ac_try='test -z "$ac_c_werror_flag"
18568 || test ! -s conftest.err'
18569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18570 (eval $ac_try) 2>&5
18572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18573 (exit $ac_status); }; } &&
18574 { ac_try='test -s conftest$ac_exeext'
18575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18576 (eval $ac_try) 2>&5
18578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18579 (exit $ac_status); }; }; then
18580 ac_cv_func_gethostbyname_r=yes
18582 echo "$as_me: failed program was:" >&5
18583 sed 's/^/| /' conftest.$ac_ext >&5
18585 ac_cv_func_gethostbyname_r=no
18587 rm -f conftest.err conftest.$ac_objext \
18588 conftest$ac_exeext conftest.$ac_ext
18590 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
18591 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
18592 if test $ac_cv_func_gethostbyname_r = yes; then
18593 echo "$as_me:$LINENO: result: using libc's resolver" >&5
18594 echo "${ECHO_T}using libc's resolver" >&6
18597 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
18598 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
18599 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
18600 echo $ECHO_N "(cached) $ECHO_C" >&6
18602 ac_check_lib_save_LIBS=$LIBS
18604 cat >conftest.$ac_ext <<_ACEOF
18607 cat confdefs.h >>conftest.$ac_ext
18608 cat >>conftest.$ac_ext <<_ACEOF
18609 /* end confdefs.h. */
18611 /* Override any gcc2 internal prototype to avoid an error. */
18615 /* We use char because int might match the return type of a gcc2
18616 builtin and then its argument prototype would still apply. */
18617 char gethostbyname_r ();
18621 gethostbyname_r ();
18626 rm -f conftest.$ac_objext conftest$ac_exeext
18627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18628 (eval $ac_link) 2>conftest.er1
18630 grep -v '^ *+' conftest.er1 >conftest.err
18632 cat conftest.err >&5
18633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18634 (exit $ac_status); } &&
18635 { ac_try='test -z "$ac_c_werror_flag"
18636 || test ! -s conftest.err'
18637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18638 (eval $ac_try) 2>&5
18640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18641 (exit $ac_status); }; } &&
18642 { ac_try='test -s conftest$ac_exeext'
18643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18644 (eval $ac_try) 2>&5
18646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18647 (exit $ac_status); }; }; then
18648 ac_cv_lib_nsl_gethostbyname_r=yes
18650 echo "$as_me: failed program was:" >&5
18651 sed 's/^/| /' conftest.$ac_ext >&5
18653 ac_cv_lib_nsl_gethostbyname_r=no
18655 rm -f conftest.err conftest.$ac_objext \
18656 conftest$ac_exeext conftest.$ac_ext
18657 LIBS=$ac_check_lib_save_LIBS
18659 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
18660 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
18661 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
18662 cat >>confdefs.h <<_ACEOF
18663 #define HAVE_LIBNSL 1
18671 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
18672 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
18673 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
18674 echo $ECHO_N "(cached) $ECHO_C" >&6
18676 ac_check_lib_save_LIBS=$LIBS
18677 LIBS="-lresolv $LIBS"
18678 cat >conftest.$ac_ext <<_ACEOF
18681 cat confdefs.h >>conftest.$ac_ext
18682 cat >>conftest.$ac_ext <<_ACEOF
18683 /* end confdefs.h. */
18685 /* Override any gcc2 internal prototype to avoid an error. */
18689 /* We use char because int might match the return type of a gcc2
18690 builtin and then its argument prototype would still apply. */
18691 char gethostbyname_r ();
18695 gethostbyname_r ();
18700 rm -f conftest.$ac_objext conftest$ac_exeext
18701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18702 (eval $ac_link) 2>conftest.er1
18704 grep -v '^ *+' conftest.er1 >conftest.err
18706 cat conftest.err >&5
18707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18708 (exit $ac_status); } &&
18709 { ac_try='test -z "$ac_c_werror_flag"
18710 || test ! -s conftest.err'
18711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18712 (eval $ac_try) 2>&5
18714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18715 (exit $ac_status); }; } &&
18716 { ac_try='test -s conftest$ac_exeext'
18717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18718 (eval $ac_try) 2>&5
18720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18721 (exit $ac_status); }; }; then
18722 ac_cv_lib_resolv_gethostbyname_r=yes
18724 echo "$as_me: failed program was:" >&5
18725 sed 's/^/| /' conftest.$ac_ext >&5
18727 ac_cv_lib_resolv_gethostbyname_r=no
18729 rm -f conftest.err conftest.$ac_objext \
18730 conftest$ac_exeext conftest.$ac_ext
18731 LIBS=$ac_check_lib_save_LIBS
18733 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
18734 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
18735 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
18736 cat >>confdefs.h <<_ACEOF
18737 #define HAVE_LIBRESOLV 1
18740 LIBS="-lresolv $LIBS"
18750 for ac_func in inet_pton
18752 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18753 echo "$as_me:$LINENO: checking for $ac_func" >&5
18754 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18755 if eval "test \"\${$as_ac_var+set}\" = set"; then
18756 echo $ECHO_N "(cached) $ECHO_C" >&6
18758 cat >conftest.$ac_ext <<_ACEOF
18761 cat confdefs.h >>conftest.$ac_ext
18762 cat >>conftest.$ac_ext <<_ACEOF
18763 /* end confdefs.h. */
18764 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18765 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18766 #define $ac_func innocuous_$ac_func
18768 /* System header to define __stub macros and hopefully few prototypes,
18769 which can conflict with char $ac_func (); below.
18770 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18771 <limits.h> exists even on freestanding compilers. */
18774 # include <limits.h>
18776 # include <assert.h>
18781 /* Override any gcc2 internal prototype to avoid an error. */
18786 /* We use char because int might match the return type of a gcc2
18787 builtin and then its argument prototype would still apply. */
18789 /* The GNU C library defines this for functions which it implements
18790 to always fail with ENOSYS. Some functions are actually named
18791 something starting with __ and the normal name is an alias. */
18792 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18795 char (*f) () = $ac_func;
18804 return f != $ac_func;
18809 rm -f conftest.$ac_objext conftest$ac_exeext
18810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18811 (eval $ac_link) 2>conftest.er1
18813 grep -v '^ *+' conftest.er1 >conftest.err
18815 cat conftest.err >&5
18816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18817 (exit $ac_status); } &&
18818 { ac_try='test -z "$ac_c_werror_flag"
18819 || test ! -s conftest.err'
18820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18821 (eval $ac_try) 2>&5
18823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18824 (exit $ac_status); }; } &&
18825 { ac_try='test -s conftest$ac_exeext'
18826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18827 (eval $ac_try) 2>&5
18829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18830 (exit $ac_status); }; }; then
18831 eval "$as_ac_var=yes"
18833 echo "$as_me: failed program was:" >&5
18834 sed 's/^/| /' conftest.$ac_ext >&5
18836 eval "$as_ac_var=no"
18838 rm -f conftest.err conftest.$ac_objext \
18839 conftest$ac_exeext conftest.$ac_ext
18841 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18842 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18843 if test `eval echo '${'$as_ac_var'}'` = yes; then
18844 cat >>confdefs.h <<_ACEOF
18845 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18847 cat >>confdefs.h <<\_ACEOF
18848 #define HAVE_INET_PTON 1
18855 for ac_func in inet_ntop
18857 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18858 echo "$as_me:$LINENO: checking for $ac_func" >&5
18859 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18860 if eval "test \"\${$as_ac_var+set}\" = set"; then
18861 echo $ECHO_N "(cached) $ECHO_C" >&6
18863 cat >conftest.$ac_ext <<_ACEOF
18866 cat confdefs.h >>conftest.$ac_ext
18867 cat >>conftest.$ac_ext <<_ACEOF
18868 /* end confdefs.h. */
18869 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18870 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18871 #define $ac_func innocuous_$ac_func
18873 /* System header to define __stub macros and hopefully few prototypes,
18874 which can conflict with char $ac_func (); below.
18875 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18876 <limits.h> exists even on freestanding compilers. */
18879 # include <limits.h>
18881 # include <assert.h>
18886 /* Override any gcc2 internal prototype to avoid an error. */
18891 /* We use char because int might match the return type of a gcc2
18892 builtin and then its argument prototype would still apply. */
18894 /* The GNU C library defines this for functions which it implements
18895 to always fail with ENOSYS. Some functions are actually named
18896 something starting with __ and the normal name is an alias. */
18897 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18900 char (*f) () = $ac_func;
18909 return f != $ac_func;
18914 rm -f conftest.$ac_objext conftest$ac_exeext
18915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18916 (eval $ac_link) 2>conftest.er1
18918 grep -v '^ *+' conftest.er1 >conftest.err
18920 cat conftest.err >&5
18921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18922 (exit $ac_status); } &&
18923 { ac_try='test -z "$ac_c_werror_flag"
18924 || test ! -s conftest.err'
18925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18926 (eval $ac_try) 2>&5
18928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18929 (exit $ac_status); }; } &&
18930 { ac_try='test -s conftest$ac_exeext'
18931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18932 (eval $ac_try) 2>&5
18934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18935 (exit $ac_status); }; }; then
18936 eval "$as_ac_var=yes"
18938 echo "$as_me: failed program was:" >&5
18939 sed 's/^/| /' conftest.$ac_ext >&5
18941 eval "$as_ac_var=no"
18943 rm -f conftest.err conftest.$ac_objext \
18944 conftest$ac_exeext conftest.$ac_ext
18946 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18947 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18948 if test `eval echo '${'$as_ac_var'}'` = yes; then
18949 cat >>confdefs.h <<_ACEOF
18950 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18952 cat >>confdefs.h <<\_ACEOF
18953 #define HAVE_INET_NTOP 1
18960 for ac_func in gethostbyname2
18962 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18963 echo "$as_me:$LINENO: checking for $ac_func" >&5
18964 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18965 if eval "test \"\${$as_ac_var+set}\" = set"; then
18966 echo $ECHO_N "(cached) $ECHO_C" >&6
18968 cat >conftest.$ac_ext <<_ACEOF
18971 cat confdefs.h >>conftest.$ac_ext
18972 cat >>conftest.$ac_ext <<_ACEOF
18973 /* end confdefs.h. */
18974 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18975 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18976 #define $ac_func innocuous_$ac_func
18978 /* System header to define __stub macros and hopefully few prototypes,
18979 which can conflict with char $ac_func (); below.
18980 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18981 <limits.h> exists even on freestanding compilers. */
18984 # include <limits.h>
18986 # include <assert.h>
18991 /* Override any gcc2 internal prototype to avoid an error. */
18996 /* We use char because int might match the return type of a gcc2
18997 builtin and then its argument prototype would still apply. */
18999 /* The GNU C library defines this for functions which it implements
19000 to always fail with ENOSYS. Some functions are actually named
19001 something starting with __ and the normal name is an alias. */
19002 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19005 char (*f) () = $ac_func;
19014 return f != $ac_func;
19019 rm -f conftest.$ac_objext conftest$ac_exeext
19020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19021 (eval $ac_link) 2>conftest.er1
19023 grep -v '^ *+' conftest.er1 >conftest.err
19025 cat conftest.err >&5
19026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19027 (exit $ac_status); } &&
19028 { ac_try='test -z "$ac_c_werror_flag"
19029 || test ! -s conftest.err'
19030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19031 (eval $ac_try) 2>&5
19033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19034 (exit $ac_status); }; } &&
19035 { ac_try='test -s conftest$ac_exeext'
19036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19037 (eval $ac_try) 2>&5
19039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19040 (exit $ac_status); }; }; then
19041 eval "$as_ac_var=yes"
19043 echo "$as_me: failed program was:" >&5
19044 sed 's/^/| /' conftest.$ac_ext >&5
19046 eval "$as_ac_var=no"
19048 rm -f conftest.err conftest.$ac_objext \
19049 conftest$ac_exeext conftest.$ac_ext
19051 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19052 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19053 if test `eval echo '${'$as_ac_var'}'` = yes; then
19054 cat >>confdefs.h <<_ACEOF
19055 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19057 cat >>confdefs.h <<\_ACEOF
19058 #define HAVE_GETHOSTBYNAME2 1
19065 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
19066 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
19067 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
19068 echo $ECHO_N "(cached) $ECHO_C" >&6
19070 cat >conftest.$ac_ext <<_ACEOF
19073 cat confdefs.h >>conftest.$ac_ext
19074 cat >>conftest.$ac_ext <<_ACEOF
19075 /* end confdefs.h. */
19076 #include <sys/socket.h>
19080 struct sockaddr s; s.sa_len;
19085 rm -f conftest.$ac_objext
19086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19087 (eval $ac_compile) 2>conftest.er1
19089 grep -v '^ *+' conftest.er1 >conftest.err
19091 cat conftest.err >&5
19092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19093 (exit $ac_status); } &&
19094 { ac_try='test -z "$ac_c_werror_flag"
19095 || test ! -s conftest.err'
19096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19097 (eval $ac_try) 2>&5
19099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19100 (exit $ac_status); }; } &&
19101 { ac_try='test -s conftest.$ac_objext'
19102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19103 (eval $ac_try) 2>&5
19105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19106 (exit $ac_status); }; }; then
19107 ac_cv_struct_sockaddr_sa_len=yes
19109 echo "$as_me: failed program was:" >&5
19110 sed 's/^/| /' conftest.$ac_ext >&5
19112 ac_cv_struct_sockaddr_sa_len=no
19114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19116 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
19117 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
19119 if test $ac_cv_struct_sockaddr_sa_len = yes; then
19121 cat >>confdefs.h <<\_ACEOF
19122 #define HAVE_SA_LEN 1
19128 echo "$as_me:$LINENO: checking for IPv6 support" >&5
19129 echo $ECHO_N "checking for IPv6 support... $ECHO_C" >&6
19130 if test "${ac_cv_ipv6_support+set}" = set; then
19131 echo $ECHO_N "(cached) $ECHO_C" >&6
19133 cat >conftest.$ac_ext <<_ACEOF
19136 cat confdefs.h >>conftest.$ac_ext
19137 cat >>conftest.$ac_ext <<_ACEOF
19138 /* end confdefs.h. */
19139 #include <sys/types.h>
19140 #include <sys/socket.h>
19141 #include <netinet/in.h>
19145 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] =
19151 rm -f conftest.$ac_objext conftest$ac_exeext
19152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19153 (eval $ac_link) 2>conftest.er1
19155 grep -v '^ *+' conftest.er1 >conftest.err
19157 cat conftest.err >&5
19158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19159 (exit $ac_status); } &&
19160 { ac_try='test -z "$ac_c_werror_flag"
19161 || test ! -s conftest.err'
19162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19163 (eval $ac_try) 2>&5
19165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19166 (exit $ac_status); }; } &&
19167 { ac_try='test -s conftest$ac_exeext'
19168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19169 (eval $ac_try) 2>&5
19171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19172 (exit $ac_status); }; }; then
19173 ac_cv_ipv6_support=yes
19175 echo "$as_me: failed program was:" >&5
19176 sed 's/^/| /' conftest.$ac_ext >&5
19178 ac_cv_ipv6_support=no
19180 rm -f conftest.err conftest.$ac_objext \
19181 conftest$ac_exeext conftest.$ac_ext
19183 echo "$as_me:$LINENO: result: $ac_cv_ipv6_support" >&5
19184 echo "${ECHO_T}$ac_cv_ipv6_support" >&6
19186 if test "$ac_cv_ipv6_support" = yes; then
19188 cat >>confdefs.h <<\_ACEOF
19189 #define HAVE_IPV6 1
19197 for ac_func in strftime
19199 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19200 echo "$as_me:$LINENO: checking for $ac_func" >&5
19201 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19202 if eval "test \"\${$as_ac_var+set}\" = set"; then
19203 echo $ECHO_N "(cached) $ECHO_C" >&6
19205 cat >conftest.$ac_ext <<_ACEOF
19208 cat confdefs.h >>conftest.$ac_ext
19209 cat >>conftest.$ac_ext <<_ACEOF
19210 /* end confdefs.h. */
19211 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19212 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19213 #define $ac_func innocuous_$ac_func
19215 /* System header to define __stub macros and hopefully few prototypes,
19216 which can conflict with char $ac_func (); below.
19217 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19218 <limits.h> exists even on freestanding compilers. */
19221 # include <limits.h>
19223 # include <assert.h>
19228 /* Override any gcc2 internal prototype to avoid an error. */
19233 /* We use char because int might match the return type of a gcc2
19234 builtin and then its argument prototype would still apply. */
19236 /* The GNU C library defines this for functions which it implements
19237 to always fail with ENOSYS. Some functions are actually named
19238 something starting with __ and the normal name is an alias. */
19239 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19242 char (*f) () = $ac_func;
19251 return f != $ac_func;
19256 rm -f conftest.$ac_objext conftest$ac_exeext
19257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19258 (eval $ac_link) 2>conftest.er1
19260 grep -v '^ *+' conftest.er1 >conftest.err
19262 cat conftest.err >&5
19263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19264 (exit $ac_status); } &&
19265 { ac_try='test -z "$ac_c_werror_flag"
19266 || test ! -s conftest.err'
19267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19268 (eval $ac_try) 2>&5
19270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19271 (exit $ac_status); }; } &&
19272 { ac_try='test -s conftest$ac_exeext'
19273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19274 (eval $ac_try) 2>&5
19276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19277 (exit $ac_status); }; }; then
19278 eval "$as_ac_var=yes"
19280 echo "$as_me: failed program was:" >&5
19281 sed 's/^/| /' conftest.$ac_ext >&5
19283 eval "$as_ac_var=no"
19285 rm -f conftest.err conftest.$ac_objext \
19286 conftest$ac_exeext conftest.$ac_ext
19288 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19289 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19290 if test `eval echo '${'$as_ac_var'}'` = yes; then
19291 cat >>confdefs.h <<_ACEOF
19292 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19296 # strftime is in -lintl on SCO UNIX.
19297 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
19298 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
19299 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19300 echo $ECHO_N "(cached) $ECHO_C" >&6
19302 ac_check_lib_save_LIBS=$LIBS
19303 LIBS="-lintl $LIBS"
19304 cat >conftest.$ac_ext <<_ACEOF
19307 cat confdefs.h >>conftest.$ac_ext
19308 cat >>conftest.$ac_ext <<_ACEOF
19309 /* end confdefs.h. */
19311 /* Override any gcc2 internal prototype to avoid an error. */
19315 /* We use char because int might match the return type of a gcc2
19316 builtin and then its argument prototype would still apply. */
19326 rm -f conftest.$ac_objext conftest$ac_exeext
19327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19328 (eval $ac_link) 2>conftest.er1
19330 grep -v '^ *+' conftest.er1 >conftest.err
19332 cat conftest.err >&5
19333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19334 (exit $ac_status); } &&
19335 { ac_try='test -z "$ac_c_werror_flag"
19336 || test ! -s conftest.err'
19337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19338 (eval $ac_try) 2>&5
19340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19341 (exit $ac_status); }; } &&
19342 { ac_try='test -s conftest$ac_exeext'
19343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19344 (eval $ac_try) 2>&5
19346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19347 (exit $ac_status); }; }; then
19348 ac_cv_lib_intl_strftime=yes
19350 echo "$as_me: failed program was:" >&5
19351 sed 's/^/| /' conftest.$ac_ext >&5
19353 ac_cv_lib_intl_strftime=no
19355 rm -f conftest.err conftest.$ac_objext \
19356 conftest$ac_exeext conftest.$ac_ext
19357 LIBS=$ac_check_lib_save_LIBS
19359 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
19360 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
19361 if test $ac_cv_lib_intl_strftime = yes; then
19362 cat >>confdefs.h <<\_ACEOF
19363 #define HAVE_STRFTIME 1
19366 LIBS="-lintl $LIBS"
19373 for ac_func in vprintf
19375 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19376 echo "$as_me:$LINENO: checking for $ac_func" >&5
19377 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19378 if eval "test \"\${$as_ac_var+set}\" = set"; then
19379 echo $ECHO_N "(cached) $ECHO_C" >&6
19381 cat >conftest.$ac_ext <<_ACEOF
19384 cat confdefs.h >>conftest.$ac_ext
19385 cat >>conftest.$ac_ext <<_ACEOF
19386 /* end confdefs.h. */
19387 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19388 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19389 #define $ac_func innocuous_$ac_func
19391 /* System header to define __stub macros and hopefully few prototypes,
19392 which can conflict with char $ac_func (); below.
19393 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19394 <limits.h> exists even on freestanding compilers. */
19397 # include <limits.h>
19399 # include <assert.h>
19404 /* Override any gcc2 internal prototype to avoid an error. */
19409 /* We use char because int might match the return type of a gcc2
19410 builtin and then its argument prototype would still apply. */
19412 /* The GNU C library defines this for functions which it implements
19413 to always fail with ENOSYS. Some functions are actually named
19414 something starting with __ and the normal name is an alias. */
19415 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19418 char (*f) () = $ac_func;
19427 return f != $ac_func;
19432 rm -f conftest.$ac_objext conftest$ac_exeext
19433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19434 (eval $ac_link) 2>conftest.er1
19436 grep -v '^ *+' conftest.er1 >conftest.err
19438 cat conftest.err >&5
19439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19440 (exit $ac_status); } &&
19441 { ac_try='test -z "$ac_c_werror_flag"
19442 || test ! -s conftest.err'
19443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19444 (eval $ac_try) 2>&5
19446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19447 (exit $ac_status); }; } &&
19448 { ac_try='test -s conftest$ac_exeext'
19449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19450 (eval $ac_try) 2>&5
19452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19453 (exit $ac_status); }; }; then
19454 eval "$as_ac_var=yes"
19456 echo "$as_me: failed program was:" >&5
19457 sed 's/^/| /' conftest.$ac_ext >&5
19459 eval "$as_ac_var=no"
19461 rm -f conftest.err conftest.$ac_objext \
19462 conftest$ac_exeext conftest.$ac_ext
19464 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19465 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19466 if test `eval echo '${'$as_ac_var'}'` = yes; then
19467 cat >>confdefs.h <<_ACEOF
19468 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19471 echo "$as_me:$LINENO: checking for _doprnt" >&5
19472 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
19473 if test "${ac_cv_func__doprnt+set}" = set; then
19474 echo $ECHO_N "(cached) $ECHO_C" >&6
19476 cat >conftest.$ac_ext <<_ACEOF
19479 cat confdefs.h >>conftest.$ac_ext
19480 cat >>conftest.$ac_ext <<_ACEOF
19481 /* end confdefs.h. */
19482 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
19483 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19484 #define _doprnt innocuous__doprnt
19486 /* System header to define __stub macros and hopefully few prototypes,
19487 which can conflict with char _doprnt (); below.
19488 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19489 <limits.h> exists even on freestanding compilers. */
19492 # include <limits.h>
19494 # include <assert.h>
19499 /* Override any gcc2 internal prototype to avoid an error. */
19504 /* We use char because int might match the return type of a gcc2
19505 builtin and then its argument prototype would still apply. */
19507 /* The GNU C library defines this for functions which it implements
19508 to always fail with ENOSYS. Some functions are actually named
19509 something starting with __ and the normal name is an alias. */
19510 #if defined (__stub__doprnt) || defined (__stub____doprnt)
19513 char (*f) () = _doprnt;
19522 return f != _doprnt;
19527 rm -f conftest.$ac_objext conftest$ac_exeext
19528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19529 (eval $ac_link) 2>conftest.er1
19531 grep -v '^ *+' conftest.er1 >conftest.err
19533 cat conftest.err >&5
19534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19535 (exit $ac_status); } &&
19536 { ac_try='test -z "$ac_c_werror_flag"
19537 || test ! -s conftest.err'
19538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19539 (eval $ac_try) 2>&5
19541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19542 (exit $ac_status); }; } &&
19543 { ac_try='test -s conftest$ac_exeext'
19544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19545 (eval $ac_try) 2>&5
19547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19548 (exit $ac_status); }; }; then
19549 ac_cv_func__doprnt=yes
19551 echo "$as_me: failed program was:" >&5
19552 sed 's/^/| /' conftest.$ac_ext >&5
19554 ac_cv_func__doprnt=no
19556 rm -f conftest.err conftest.$ac_objext \
19557 conftest$ac_exeext conftest.$ac_ext
19559 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
19560 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
19561 if test $ac_cv_func__doprnt = yes; then
19563 cat >>confdefs.h <<\_ACEOF
19564 #define HAVE_DOPRNT 1
19573 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19574 # for constant arguments. Useless!
19575 echo "$as_me:$LINENO: checking for working alloca.h" >&5
19576 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
19577 if test "${ac_cv_working_alloca_h+set}" = set; then
19578 echo $ECHO_N "(cached) $ECHO_C" >&6
19580 cat >conftest.$ac_ext <<_ACEOF
19583 cat confdefs.h >>conftest.$ac_ext
19584 cat >>conftest.$ac_ext <<_ACEOF
19585 /* end confdefs.h. */
19586 #include <alloca.h>
19590 char *p = (char *) alloca (2 * sizeof (int));
19595 rm -f conftest.$ac_objext conftest$ac_exeext
19596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19597 (eval $ac_link) 2>conftest.er1
19599 grep -v '^ *+' conftest.er1 >conftest.err
19601 cat conftest.err >&5
19602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19603 (exit $ac_status); } &&
19604 { ac_try='test -z "$ac_c_werror_flag"
19605 || test ! -s conftest.err'
19606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19607 (eval $ac_try) 2>&5
19609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19610 (exit $ac_status); }; } &&
19611 { ac_try='test -s conftest$ac_exeext'
19612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19613 (eval $ac_try) 2>&5
19615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19616 (exit $ac_status); }; }; then
19617 ac_cv_working_alloca_h=yes
19619 echo "$as_me: failed program was:" >&5
19620 sed 's/^/| /' conftest.$ac_ext >&5
19622 ac_cv_working_alloca_h=no
19624 rm -f conftest.err conftest.$ac_objext \
19625 conftest$ac_exeext conftest.$ac_ext
19627 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19628 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
19629 if test $ac_cv_working_alloca_h = yes; then
19631 cat >>confdefs.h <<\_ACEOF
19632 #define HAVE_ALLOCA_H 1
19637 echo "$as_me:$LINENO: checking for alloca" >&5
19638 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
19639 if test "${ac_cv_func_alloca_works+set}" = set; then
19640 echo $ECHO_N "(cached) $ECHO_C" >&6
19642 cat >conftest.$ac_ext <<_ACEOF
19645 cat confdefs.h >>conftest.$ac_ext
19646 cat >>conftest.$ac_ext <<_ACEOF
19647 /* end confdefs.h. */
19649 # define alloca __builtin_alloca
19652 # include <malloc.h>
19653 # define alloca _alloca
19656 # include <alloca.h>
19661 # ifndef alloca /* predefined by HP cc +Olibcalls */
19672 char *p = (char *) alloca (1);
19677 rm -f conftest.$ac_objext conftest$ac_exeext
19678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19679 (eval $ac_link) 2>conftest.er1
19681 grep -v '^ *+' conftest.er1 >conftest.err
19683 cat conftest.err >&5
19684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19685 (exit $ac_status); } &&
19686 { ac_try='test -z "$ac_c_werror_flag"
19687 || test ! -s conftest.err'
19688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19689 (eval $ac_try) 2>&5
19691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19692 (exit $ac_status); }; } &&
19693 { ac_try='test -s conftest$ac_exeext'
19694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19695 (eval $ac_try) 2>&5
19697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19698 (exit $ac_status); }; }; then
19699 ac_cv_func_alloca_works=yes
19701 echo "$as_me: failed program was:" >&5
19702 sed 's/^/| /' conftest.$ac_ext >&5
19704 ac_cv_func_alloca_works=no
19706 rm -f conftest.err conftest.$ac_objext \
19707 conftest$ac_exeext conftest.$ac_ext
19709 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19710 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
19712 if test $ac_cv_func_alloca_works = yes; then
19714 cat >>confdefs.h <<\_ACEOF
19715 #define HAVE_ALLOCA 1
19719 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19720 # that cause trouble. Some versions do not even contain alloca or
19721 # contain a buggy version. If you still want to use their alloca,
19722 # use ar to extract alloca.o from them instead of compiling alloca.c.
19724 ALLOCA=alloca.$ac_objext
19726 cat >>confdefs.h <<\_ACEOF
19731 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19732 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
19733 if test "${ac_cv_os_cray+set}" = set; then
19734 echo $ECHO_N "(cached) $ECHO_C" >&6
19736 cat >conftest.$ac_ext <<_ACEOF
19739 cat confdefs.h >>conftest.$ac_ext
19740 cat >>conftest.$ac_ext <<_ACEOF
19741 /* end confdefs.h. */
19742 #if defined(CRAY) && ! defined(CRAY2)
19749 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19750 $EGREP "webecray" >/dev/null 2>&1; then
19758 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19759 echo "${ECHO_T}$ac_cv_os_cray" >&6
19760 if test $ac_cv_os_cray = yes; then
19761 for ac_func in _getb67 GETB67 getb67; do
19762 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19763 echo "$as_me:$LINENO: checking for $ac_func" >&5
19764 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19765 if eval "test \"\${$as_ac_var+set}\" = set"; then
19766 echo $ECHO_N "(cached) $ECHO_C" >&6
19768 cat >conftest.$ac_ext <<_ACEOF
19771 cat confdefs.h >>conftest.$ac_ext
19772 cat >>conftest.$ac_ext <<_ACEOF
19773 /* end confdefs.h. */
19774 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19775 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19776 #define $ac_func innocuous_$ac_func
19778 /* System header to define __stub macros and hopefully few prototypes,
19779 which can conflict with char $ac_func (); below.
19780 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19781 <limits.h> exists even on freestanding compilers. */
19784 # include <limits.h>
19786 # include <assert.h>
19791 /* Override any gcc2 internal prototype to avoid an error. */
19796 /* We use char because int might match the return type of a gcc2
19797 builtin and then its argument prototype would still apply. */
19799 /* The GNU C library defines this for functions which it implements
19800 to always fail with ENOSYS. Some functions are actually named
19801 something starting with __ and the normal name is an alias. */
19802 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19805 char (*f) () = $ac_func;
19814 return f != $ac_func;
19819 rm -f conftest.$ac_objext conftest$ac_exeext
19820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19821 (eval $ac_link) 2>conftest.er1
19823 grep -v '^ *+' conftest.er1 >conftest.err
19825 cat conftest.err >&5
19826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19827 (exit $ac_status); } &&
19828 { ac_try='test -z "$ac_c_werror_flag"
19829 || test ! -s conftest.err'
19830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19831 (eval $ac_try) 2>&5
19833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19834 (exit $ac_status); }; } &&
19835 { ac_try='test -s conftest$ac_exeext'
19836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19837 (eval $ac_try) 2>&5
19839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19840 (exit $ac_status); }; }; then
19841 eval "$as_ac_var=yes"
19843 echo "$as_me: failed program was:" >&5
19844 sed 's/^/| /' conftest.$ac_ext >&5
19846 eval "$as_ac_var=no"
19848 rm -f conftest.err conftest.$ac_objext \
19849 conftest$ac_exeext conftest.$ac_ext
19851 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19852 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19853 if test `eval echo '${'$as_ac_var'}'` = yes; then
19855 cat >>confdefs.h <<_ACEOF
19856 #define CRAY_STACKSEG_END $ac_func
19865 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19866 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
19867 if test "${ac_cv_c_stack_direction+set}" = set; then
19868 echo $ECHO_N "(cached) $ECHO_C" >&6
19870 if test "$cross_compiling" = yes; then
19871 ac_cv_c_stack_direction=0
19873 cat >conftest.$ac_ext <<_ACEOF
19876 cat confdefs.h >>conftest.$ac_ext
19877 cat >>conftest.$ac_ext <<_ACEOF
19878 /* end confdefs.h. */
19880 find_stack_direction ()
19882 static char *addr = 0;
19887 return find_stack_direction ();
19890 return (&dummy > addr) ? 1 : -1;
19896 exit (find_stack_direction () < 0);
19899 rm -f conftest$ac_exeext
19900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19901 (eval $ac_link) 2>&5
19903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19904 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19906 (eval $ac_try) 2>&5
19908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19909 (exit $ac_status); }; }; then
19910 ac_cv_c_stack_direction=1
19912 echo "$as_me: program exited with status $ac_status" >&5
19913 echo "$as_me: failed program was:" >&5
19914 sed 's/^/| /' conftest.$ac_ext >&5
19916 ( exit $ac_status )
19917 ac_cv_c_stack_direction=-1
19919 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19922 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19923 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
19925 cat >>confdefs.h <<_ACEOF
19926 #define STACK_DIRECTION $ac_cv_c_stack_direction
19932 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
19933 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
19934 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
19935 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
19936 echo $ECHO_N "(cached) $ECHO_C" >&6
19938 ac_check_lib_save_LIBS=$LIBS
19940 cat >conftest.$ac_ext <<_ACEOF
19943 cat confdefs.h >>conftest.$ac_ext
19944 cat >>conftest.$ac_ext <<_ACEOF
19945 /* end confdefs.h. */
19947 /* Override any gcc2 internal prototype to avoid an error. */
19951 /* We use char because int might match the return type of a gcc2
19952 builtin and then its argument prototype would still apply. */
19962 rm -f conftest.$ac_objext conftest$ac_exeext
19963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19964 (eval $ac_link) 2>conftest.er1
19966 grep -v '^ *+' conftest.er1 >conftest.err
19968 cat conftest.err >&5
19969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19970 (exit $ac_status); } &&
19971 { ac_try='test -z "$ac_c_werror_flag"
19972 || test ! -s conftest.err'
19973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19974 (eval $ac_try) 2>&5
19976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19977 (exit $ac_status); }; } &&
19978 { ac_try='test -s conftest$ac_exeext'
19979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19980 (eval $ac_try) 2>&5
19982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19983 (exit $ac_status); }; }; then
19984 ac_cv_lib_sun_getmntent=yes
19986 echo "$as_me: failed program was:" >&5
19987 sed 's/^/| /' conftest.$ac_ext >&5
19989 ac_cv_lib_sun_getmntent=no
19991 rm -f conftest.err conftest.$ac_objext \
19992 conftest$ac_exeext conftest.$ac_ext
19993 LIBS=$ac_check_lib_save_LIBS
19995 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
19996 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
19997 if test $ac_cv_lib_sun_getmntent = yes; then
20000 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
20001 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
20002 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
20003 echo $ECHO_N "(cached) $ECHO_C" >&6
20005 ac_check_lib_save_LIBS=$LIBS
20007 cat >conftest.$ac_ext <<_ACEOF
20010 cat confdefs.h >>conftest.$ac_ext
20011 cat >>conftest.$ac_ext <<_ACEOF
20012 /* end confdefs.h. */
20014 /* Override any gcc2 internal prototype to avoid an error. */
20018 /* We use char because int might match the return type of a gcc2
20019 builtin and then its argument prototype would still apply. */
20029 rm -f conftest.$ac_objext conftest$ac_exeext
20030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20031 (eval $ac_link) 2>conftest.er1
20033 grep -v '^ *+' conftest.er1 >conftest.err
20035 cat conftest.err >&5
20036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20037 (exit $ac_status); } &&
20038 { ac_try='test -z "$ac_c_werror_flag"
20039 || test ! -s conftest.err'
20040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20041 (eval $ac_try) 2>&5
20043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20044 (exit $ac_status); }; } &&
20045 { ac_try='test -s conftest$ac_exeext'
20046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20047 (eval $ac_try) 2>&5
20049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20050 (exit $ac_status); }; }; then
20051 ac_cv_lib_seq_getmntent=yes
20053 echo "$as_me: failed program was:" >&5
20054 sed 's/^/| /' conftest.$ac_ext >&5
20056 ac_cv_lib_seq_getmntent=no
20058 rm -f conftest.err conftest.$ac_objext \
20059 conftest$ac_exeext conftest.$ac_ext
20060 LIBS=$ac_check_lib_save_LIBS
20062 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
20063 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
20064 if test $ac_cv_lib_seq_getmntent = yes; then
20067 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
20068 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
20069 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
20070 echo $ECHO_N "(cached) $ECHO_C" >&6
20072 ac_check_lib_save_LIBS=$LIBS
20074 cat >conftest.$ac_ext <<_ACEOF
20077 cat confdefs.h >>conftest.$ac_ext
20078 cat >>conftest.$ac_ext <<_ACEOF
20079 /* end confdefs.h. */
20081 /* Override any gcc2 internal prototype to avoid an error. */
20085 /* We use char because int might match the return type of a gcc2
20086 builtin and then its argument prototype would still apply. */
20096 rm -f conftest.$ac_objext conftest$ac_exeext
20097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20098 (eval $ac_link) 2>conftest.er1
20100 grep -v '^ *+' conftest.er1 >conftest.err
20102 cat conftest.err >&5
20103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20104 (exit $ac_status); } &&
20105 { ac_try='test -z "$ac_c_werror_flag"
20106 || test ! -s conftest.err'
20107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20108 (eval $ac_try) 2>&5
20110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20111 (exit $ac_status); }; } &&
20112 { ac_try='test -s conftest$ac_exeext'
20113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20114 (eval $ac_try) 2>&5
20116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20117 (exit $ac_status); }; }; then
20118 ac_cv_lib_gen_getmntent=yes
20120 echo "$as_me: failed program was:" >&5
20121 sed 's/^/| /' conftest.$ac_ext >&5
20123 ac_cv_lib_gen_getmntent=no
20125 rm -f conftest.err conftest.$ac_objext \
20126 conftest$ac_exeext conftest.$ac_ext
20127 LIBS=$ac_check_lib_save_LIBS
20129 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
20130 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
20131 if test $ac_cv_lib_gen_getmntent = yes; then
20140 for ac_func in getmntent
20142 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20143 echo "$as_me:$LINENO: checking for $ac_func" >&5
20144 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20145 if eval "test \"\${$as_ac_var+set}\" = set"; then
20146 echo $ECHO_N "(cached) $ECHO_C" >&6
20148 cat >conftest.$ac_ext <<_ACEOF
20151 cat confdefs.h >>conftest.$ac_ext
20152 cat >>conftest.$ac_ext <<_ACEOF
20153 /* end confdefs.h. */
20154 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20155 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20156 #define $ac_func innocuous_$ac_func
20158 /* System header to define __stub macros and hopefully few prototypes,
20159 which can conflict with char $ac_func (); below.
20160 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20161 <limits.h> exists even on freestanding compilers. */
20164 # include <limits.h>
20166 # include <assert.h>
20171 /* Override any gcc2 internal prototype to avoid an error. */
20176 /* We use char because int might match the return type of a gcc2
20177 builtin and then its argument prototype would still apply. */
20179 /* The GNU C library defines this for functions which it implements
20180 to always fail with ENOSYS. Some functions are actually named
20181 something starting with __ and the normal name is an alias. */
20182 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20185 char (*f) () = $ac_func;
20194 return f != $ac_func;
20199 rm -f conftest.$ac_objext conftest$ac_exeext
20200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20201 (eval $ac_link) 2>conftest.er1
20203 grep -v '^ *+' conftest.er1 >conftest.err
20205 cat conftest.err >&5
20206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20207 (exit $ac_status); } &&
20208 { ac_try='test -z "$ac_c_werror_flag"
20209 || test ! -s conftest.err'
20210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20211 (eval $ac_try) 2>&5
20213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20214 (exit $ac_status); }; } &&
20215 { ac_try='test -s conftest$ac_exeext'
20216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20217 (eval $ac_try) 2>&5
20219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20220 (exit $ac_status); }; }; then
20221 eval "$as_ac_var=yes"
20223 echo "$as_me: failed program was:" >&5
20224 sed 's/^/| /' conftest.$ac_ext >&5
20226 eval "$as_ac_var=no"
20228 rm -f conftest.err conftest.$ac_objext \
20229 conftest$ac_exeext conftest.$ac_ext
20231 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20232 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20233 if test `eval echo '${'$as_ac_var'}'` = yes; then
20234 cat >>confdefs.h <<_ACEOF
20235 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20242 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
20243 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
20244 if test "${ac_cv_func_closedir_void+set}" = set; then
20245 echo $ECHO_N "(cached) $ECHO_C" >&6
20247 if test "$cross_compiling" = yes; then
20248 ac_cv_func_closedir_void=yes
20250 cat >conftest.$ac_ext <<_ACEOF
20253 cat confdefs.h >>conftest.$ac_ext
20254 cat >>conftest.$ac_ext <<_ACEOF
20255 /* end confdefs.h. */
20256 $ac_includes_default
20257 #include <$ac_header_dirent>
20258 #ifndef __cplusplus
20265 exit (closedir (opendir (".")) != 0);
20270 rm -f conftest$ac_exeext
20271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20272 (eval $ac_link) 2>&5
20274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20275 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20277 (eval $ac_try) 2>&5
20279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20280 (exit $ac_status); }; }; then
20281 ac_cv_func_closedir_void=no
20283 echo "$as_me: program exited with status $ac_status" >&5
20284 echo "$as_me: failed program was:" >&5
20285 sed 's/^/| /' conftest.$ac_ext >&5
20287 ( exit $ac_status )
20288 ac_cv_func_closedir_void=yes
20290 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20293 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
20294 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
20295 if test $ac_cv_func_closedir_void = yes; then
20297 cat >>confdefs.h <<\_ACEOF
20298 #define CLOSEDIR_VOID 1
20303 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
20304 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
20305 if test "${ac_cv_func_setpgrp_void+set}" = set; then
20306 echo $ECHO_N "(cached) $ECHO_C" >&6
20308 if test "$cross_compiling" = yes; then
20309 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
20310 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
20311 { (exit 1); exit 1; }; }
20313 cat >conftest.$ac_ext <<_ACEOF
20316 cat confdefs.h >>conftest.$ac_ext
20317 cat >>conftest.$ac_ext <<_ACEOF
20318 /* end confdefs.h. */
20320 # include <unistd.h>
20326 /* If this system has a BSD-style setpgrp which takes arguments,
20327 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
20328 exit successfully. */
20329 exit (setpgrp (1,1) == -1 ? 0 : 1);
20334 rm -f conftest$ac_exeext
20335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20336 (eval $ac_link) 2>&5
20338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20339 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20341 (eval $ac_try) 2>&5
20343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20344 (exit $ac_status); }; }; then
20345 ac_cv_func_setpgrp_void=no
20347 echo "$as_me: program exited with status $ac_status" >&5
20348 echo "$as_me: failed program was:" >&5
20349 sed 's/^/| /' conftest.$ac_ext >&5
20351 ( exit $ac_status )
20352 ac_cv_func_setpgrp_void=yes
20354 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20357 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
20358 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
20359 if test $ac_cv_func_setpgrp_void = yes; then
20361 cat >>confdefs.h <<\_ACEOF
20362 #define SETPGRP_VOID 1
20366 # AC_FUNC_FNMATCH dnl use local version
20369 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
20370 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
20371 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
20372 echo $ECHO_N "(cached) $ECHO_C" >&6
20374 ac_check_lib_save_LIBS=$LIBS
20375 LIBS="-lxpg4 $LIBS"
20376 cat >conftest.$ac_ext <<_ACEOF
20379 cat confdefs.h >>conftest.$ac_ext
20380 cat >>conftest.$ac_ext <<_ACEOF
20381 /* end confdefs.h. */
20383 /* Override any gcc2 internal prototype to avoid an error. */
20387 /* We use char because int might match the return type of a gcc2
20388 builtin and then its argument prototype would still apply. */
20398 rm -f conftest.$ac_objext conftest$ac_exeext
20399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20400 (eval $ac_link) 2>conftest.er1
20402 grep -v '^ *+' conftest.er1 >conftest.err
20404 cat conftest.err >&5
20405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20406 (exit $ac_status); } &&
20407 { ac_try='test -z "$ac_c_werror_flag"
20408 || test ! -s conftest.err'
20409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20410 (eval $ac_try) 2>&5
20412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20413 (exit $ac_status); }; } &&
20414 { ac_try='test -s conftest$ac_exeext'
20415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20416 (eval $ac_try) 2>&5
20418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20419 (exit $ac_status); }; }; then
20420 ac_cv_lib_xpg4_setlocale=yes
20422 echo "$as_me: failed program was:" >&5
20423 sed 's/^/| /' conftest.$ac_ext >&5
20425 ac_cv_lib_xpg4_setlocale=no
20427 rm -f conftest.err conftest.$ac_objext \
20428 conftest$ac_exeext conftest.$ac_ext
20429 LIBS=$ac_check_lib_save_LIBS
20431 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
20432 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
20433 if test $ac_cv_lib_xpg4_setlocale = yes; then
20434 LIBS="$LIBS -lxpg4"
20440 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
20441 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
20442 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
20443 echo $ECHO_N "(cached) $ECHO_C" >&6
20445 ac_check_lib_save_LIBS=$LIBS
20447 cat >conftest.$ac_ext <<_ACEOF
20450 cat confdefs.h >>conftest.$ac_ext
20451 cat >>conftest.$ac_ext <<_ACEOF
20452 /* end confdefs.h. */
20454 /* Override any gcc2 internal prototype to avoid an error. */
20458 /* We use char because int might match the return type of a gcc2
20459 builtin and then its argument prototype would still apply. */
20469 rm -f conftest.$ac_objext conftest$ac_exeext
20470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20471 (eval $ac_link) 2>conftest.er1
20473 grep -v '^ *+' conftest.er1 >conftest.err
20475 cat conftest.err >&5
20476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20477 (exit $ac_status); } &&
20478 { ac_try='test -z "$ac_c_werror_flag"
20479 || test ! -s conftest.err'
20480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20481 (eval $ac_try) 2>&5
20483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20484 (exit $ac_status); }; } &&
20485 { ac_try='test -s conftest$ac_exeext'
20486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20487 (eval $ac_try) 2>&5
20489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20490 (exit $ac_status); }; }; then
20491 ac_cv_lib_sun_getpwnam=yes
20493 echo "$as_me: failed program was:" >&5
20494 sed 's/^/| /' conftest.$ac_ext >&5
20496 ac_cv_lib_sun_getpwnam=no
20498 rm -f conftest.err conftest.$ac_objext \
20499 conftest$ac_exeext conftest.$ac_ext
20500 LIBS=$ac_check_lib_save_LIBS
20502 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
20503 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
20504 if test $ac_cv_lib_sun_getpwnam = yes; then
20505 cat >>confdefs.h <<_ACEOF
20506 #define HAVE_LIBSUN 1
20515 for ac_header in zlib.h
20517 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20518 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20519 echo "$as_me:$LINENO: checking for $ac_header" >&5
20520 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20521 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20522 echo $ECHO_N "(cached) $ECHO_C" >&6
20524 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20525 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20527 # Is the header compilable?
20528 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20529 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20530 cat >conftest.$ac_ext <<_ACEOF
20533 cat confdefs.h >>conftest.$ac_ext
20534 cat >>conftest.$ac_ext <<_ACEOF
20535 /* end confdefs.h. */
20536 $ac_includes_default
20537 #include <$ac_header>
20539 rm -f conftest.$ac_objext
20540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20541 (eval $ac_compile) 2>conftest.er1
20543 grep -v '^ *+' conftest.er1 >conftest.err
20545 cat conftest.err >&5
20546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20547 (exit $ac_status); } &&
20548 { ac_try='test -z "$ac_c_werror_flag"
20549 || test ! -s conftest.err'
20550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20551 (eval $ac_try) 2>&5
20553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20554 (exit $ac_status); }; } &&
20555 { ac_try='test -s conftest.$ac_objext'
20556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20557 (eval $ac_try) 2>&5
20559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20560 (exit $ac_status); }; }; then
20561 ac_header_compiler=yes
20563 echo "$as_me: failed program was:" >&5
20564 sed 's/^/| /' conftest.$ac_ext >&5
20566 ac_header_compiler=no
20568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20569 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20570 echo "${ECHO_T}$ac_header_compiler" >&6
20572 # Is the header present?
20573 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20574 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20575 cat >conftest.$ac_ext <<_ACEOF
20578 cat confdefs.h >>conftest.$ac_ext
20579 cat >>conftest.$ac_ext <<_ACEOF
20580 /* end confdefs.h. */
20581 #include <$ac_header>
20583 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20584 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20586 grep -v '^ *+' conftest.er1 >conftest.err
20588 cat conftest.err >&5
20589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20590 (exit $ac_status); } >/dev/null; then
20591 if test -s conftest.err; then
20592 ac_cpp_err=$ac_c_preproc_warn_flag
20593 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20600 if test -z "$ac_cpp_err"; then
20601 ac_header_preproc=yes
20603 echo "$as_me: failed program was:" >&5
20604 sed 's/^/| /' conftest.$ac_ext >&5
20606 ac_header_preproc=no
20608 rm -f conftest.err conftest.$ac_ext
20609 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20610 echo "${ECHO_T}$ac_header_preproc" >&6
20612 # So? What about this header?
20613 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20615 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20616 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20617 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20618 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20619 ac_header_preproc=yes
20622 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20623 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20624 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20625 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20626 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20627 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20628 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20629 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20630 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20631 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20632 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20633 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20636 ## ------------------------------------------ ##
20637 ## Report this to the AC_PACKAGE_NAME lists. ##
20638 ## ------------------------------------------ ##
20641 sed "s/^/$as_me: WARNING: /" >&2
20644 echo "$as_me:$LINENO: checking for $ac_header" >&5
20645 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20646 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20647 echo $ECHO_N "(cached) $ECHO_C" >&6
20649 eval "$as_ac_Header=\$ac_header_preproc"
20651 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20652 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20655 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20656 cat >>confdefs.h <<_ACEOF
20657 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20664 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
20665 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
20666 if test "${ac_cv_lib_z_deflate+set}" = set; then
20667 echo $ECHO_N "(cached) $ECHO_C" >&6
20669 ac_check_lib_save_LIBS=$LIBS
20671 cat >conftest.$ac_ext <<_ACEOF
20674 cat confdefs.h >>conftest.$ac_ext
20675 cat >>conftest.$ac_ext <<_ACEOF
20676 /* end confdefs.h. */
20678 /* Override any gcc2 internal prototype to avoid an error. */
20682 /* We use char because int might match the return type of a gcc2
20683 builtin and then its argument prototype would still apply. */
20693 rm -f conftest.$ac_objext conftest$ac_exeext
20694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20695 (eval $ac_link) 2>conftest.er1
20697 grep -v '^ *+' conftest.er1 >conftest.err
20699 cat conftest.err >&5
20700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20701 (exit $ac_status); } &&
20702 { ac_try='test -z "$ac_c_werror_flag"
20703 || test ! -s conftest.err'
20704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20705 (eval $ac_try) 2>&5
20707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20708 (exit $ac_status); }; } &&
20709 { ac_try='test -s conftest$ac_exeext'
20710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20711 (eval $ac_try) 2>&5
20713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20714 (exit $ac_status); }; }; then
20715 ac_cv_lib_z_deflate=yes
20717 echo "$as_me: failed program was:" >&5
20718 sed 's/^/| /' conftest.$ac_ext >&5
20720 ac_cv_lib_z_deflate=no
20722 rm -f conftest.err conftest.$ac_objext \
20723 conftest$ac_exeext conftest.$ac_ext
20724 LIBS=$ac_check_lib_save_LIBS
20726 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
20727 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
20728 if test $ac_cv_lib_z_deflate = yes; then
20733 if test x$FDLIBS = x-lz; then
20734 cat >>confdefs.h <<\_ACEOF
20735 #define HAVE_LIBZ 1
20741 if test "${ac_cv_header_sys_acl_h+set}" = set; then
20742 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
20743 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
20744 if test "${ac_cv_header_sys_acl_h+set}" = set; then
20745 echo $ECHO_N "(cached) $ECHO_C" >&6
20747 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
20748 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
20750 # Is the header compilable?
20751 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
20752 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
20753 cat >conftest.$ac_ext <<_ACEOF
20756 cat confdefs.h >>conftest.$ac_ext
20757 cat >>conftest.$ac_ext <<_ACEOF
20758 /* end confdefs.h. */
20759 $ac_includes_default
20760 #include <sys/acl.h>
20762 rm -f conftest.$ac_objext
20763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20764 (eval $ac_compile) 2>conftest.er1
20766 grep -v '^ *+' conftest.er1 >conftest.err
20768 cat conftest.err >&5
20769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20770 (exit $ac_status); } &&
20771 { ac_try='test -z "$ac_c_werror_flag"
20772 || test ! -s conftest.err'
20773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20774 (eval $ac_try) 2>&5
20776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20777 (exit $ac_status); }; } &&
20778 { ac_try='test -s conftest.$ac_objext'
20779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20780 (eval $ac_try) 2>&5
20782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20783 (exit $ac_status); }; }; then
20784 ac_header_compiler=yes
20786 echo "$as_me: failed program was:" >&5
20787 sed 's/^/| /' conftest.$ac_ext >&5
20789 ac_header_compiler=no
20791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20792 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20793 echo "${ECHO_T}$ac_header_compiler" >&6
20795 # Is the header present?
20796 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
20797 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
20798 cat >conftest.$ac_ext <<_ACEOF
20801 cat confdefs.h >>conftest.$ac_ext
20802 cat >>conftest.$ac_ext <<_ACEOF
20803 /* end confdefs.h. */
20804 #include <sys/acl.h>
20806 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20807 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20809 grep -v '^ *+' conftest.er1 >conftest.err
20811 cat conftest.err >&5
20812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20813 (exit $ac_status); } >/dev/null; then
20814 if test -s conftest.err; then
20815 ac_cpp_err=$ac_c_preproc_warn_flag
20816 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20823 if test -z "$ac_cpp_err"; then
20824 ac_header_preproc=yes
20826 echo "$as_me: failed program was:" >&5
20827 sed 's/^/| /' conftest.$ac_ext >&5
20829 ac_header_preproc=no
20831 rm -f conftest.err conftest.$ac_ext
20832 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20833 echo "${ECHO_T}$ac_header_preproc" >&6
20835 # So? What about this header?
20836 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20838 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
20839 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20840 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
20841 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
20842 ac_header_preproc=yes
20845 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
20846 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
20847 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
20848 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
20849 { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
20850 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
20851 { echo "$as_me:$LINENO: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&5
20852 echo "$as_me: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&2;}
20853 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
20854 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
20855 { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
20856 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
20859 ## ------------------------------------------ ##
20860 ## Report this to the AC_PACKAGE_NAME lists. ##
20861 ## ------------------------------------------ ##
20864 sed "s/^/$as_me: WARNING: /" >&2
20867 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
20868 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
20869 if test "${ac_cv_header_sys_acl_h+set}" = set; then
20870 echo $ECHO_N "(cached) $ECHO_C" >&6
20872 ac_cv_header_sys_acl_h=$ac_header_preproc
20874 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
20875 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
20880 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
20881 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
20882 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
20883 echo $ECHO_N "(cached) $ECHO_C" >&6
20885 ac_check_lib_save_LIBS=$LIBS
20887 cat >conftest.$ac_ext <<_ACEOF
20890 cat confdefs.h >>conftest.$ac_ext
20891 cat >>conftest.$ac_ext <<_ACEOF
20892 /* end confdefs.h. */
20894 /* Override any gcc2 internal prototype to avoid an error. */
20898 /* We use char because int might match the return type of a gcc2
20899 builtin and then its argument prototype would still apply. */
20900 char acl_get_file ();
20909 rm -f conftest.$ac_objext conftest$ac_exeext
20910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20911 (eval $ac_link) 2>conftest.er1
20913 grep -v '^ *+' conftest.er1 >conftest.err
20915 cat conftest.err >&5
20916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20917 (exit $ac_status); } &&
20918 { ac_try='test -z "$ac_c_werror_flag"
20919 || test ! -s conftest.err'
20920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20921 (eval $ac_try) 2>&5
20923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20924 (exit $ac_status); }; } &&
20925 { ac_try='test -s conftest$ac_exeext'
20926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20927 (eval $ac_try) 2>&5
20929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20930 (exit $ac_status); }; }; then
20931 ac_cv_lib_acl_acl_get_file=yes
20933 echo "$as_me: failed program was:" >&5
20934 sed 's/^/| /' conftest.$ac_ext >&5
20936 ac_cv_lib_acl_acl_get_file=no
20938 rm -f conftest.err conftest.$ac_objext \
20939 conftest$ac_exeext conftest.$ac_ext
20940 LIBS=$ac_check_lib_save_LIBS
20942 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
20943 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
20944 if test $ac_cv_lib_acl_acl_get_file = yes; then
20945 FDLIBS="-lacl $FDLIBS"
20949 if test $ac_cv_lib_acl_acl_get_file = yes; then
20950 cat >>confdefs.h <<\_ACEOF
20958 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
20959 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
20960 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
20961 echo $ECHO_N "(cached) $ECHO_C" >&6
20963 ac_check_lib_save_LIBS=$LIBS
20964 LIBS="-lpthread $LIBS"
20965 cat >conftest.$ac_ext <<_ACEOF
20968 cat confdefs.h >>conftest.$ac_ext
20969 cat >>conftest.$ac_ext <<_ACEOF
20970 /* end confdefs.h. */
20972 /* Override any gcc2 internal prototype to avoid an error. */
20976 /* We use char because int might match the return type of a gcc2
20977 builtin and then its argument prototype would still apply. */
20978 char pthread_create ();
20987 rm -f conftest.$ac_objext conftest$ac_exeext
20988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20989 (eval $ac_link) 2>conftest.er1
20991 grep -v '^ *+' conftest.er1 >conftest.err
20993 cat conftest.err >&5
20994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20995 (exit $ac_status); } &&
20996 { ac_try='test -z "$ac_c_werror_flag"
20997 || test ! -s conftest.err'
20998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20999 (eval $ac_try) 2>&5
21001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21002 (exit $ac_status); }; } &&
21003 { ac_try='test -s conftest$ac_exeext'
21004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21005 (eval $ac_try) 2>&5
21007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21008 (exit $ac_status); }; }; then
21009 ac_cv_lib_pthread_pthread_create=yes
21011 echo "$as_me: failed program was:" >&5
21012 sed 's/^/| /' conftest.$ac_ext >&5
21014 ac_cv_lib_pthread_pthread_create=no
21016 rm -f conftest.err conftest.$ac_objext \
21017 conftest$ac_exeext conftest.$ac_ext
21018 LIBS=$ac_check_lib_save_LIBS
21020 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
21021 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
21022 if test $ac_cv_lib_pthread_pthread_create = yes; then
21023 PTHREAD_LIB="-lpthread"
21025 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
21026 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
21027 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
21028 echo $ECHO_N "(cached) $ECHO_C" >&6
21030 ac_check_lib_save_LIBS=$LIBS
21031 LIBS="-lpthreads $LIBS"
21032 cat >conftest.$ac_ext <<_ACEOF
21035 cat confdefs.h >>conftest.$ac_ext
21036 cat >>conftest.$ac_ext <<_ACEOF
21037 /* end confdefs.h. */
21039 /* Override any gcc2 internal prototype to avoid an error. */
21043 /* We use char because int might match the return type of a gcc2
21044 builtin and then its argument prototype would still apply. */
21045 char pthread_create ();
21054 rm -f conftest.$ac_objext conftest$ac_exeext
21055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21056 (eval $ac_link) 2>conftest.er1
21058 grep -v '^ *+' conftest.er1 >conftest.err
21060 cat conftest.err >&5
21061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21062 (exit $ac_status); } &&
21063 { ac_try='test -z "$ac_c_werror_flag"
21064 || test ! -s conftest.err'
21065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21066 (eval $ac_try) 2>&5
21068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21069 (exit $ac_status); }; } &&
21070 { ac_try='test -s conftest$ac_exeext'
21071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21072 (eval $ac_try) 2>&5
21074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21075 (exit $ac_status); }; }; then
21076 ac_cv_lib_pthreads_pthread_create=yes
21078 echo "$as_me: failed program was:" >&5
21079 sed 's/^/| /' conftest.$ac_ext >&5
21081 ac_cv_lib_pthreads_pthread_create=no
21083 rm -f conftest.err conftest.$ac_objext \
21084 conftest$ac_exeext conftest.$ac_ext
21085 LIBS=$ac_check_lib_save_LIBS
21087 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
21088 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
21089 if test $ac_cv_lib_pthreads_pthread_create = yes; then
21090 PTHREAD_LIB="-lpthreads"
21092 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
21093 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
21094 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
21095 echo $ECHO_N "(cached) $ECHO_C" >&6
21097 ac_check_lib_save_LIBS=$LIBS
21099 cat >conftest.$ac_ext <<_ACEOF
21102 cat confdefs.h >>conftest.$ac_ext
21103 cat >>conftest.$ac_ext <<_ACEOF
21104 /* end confdefs.h. */
21106 /* Override any gcc2 internal prototype to avoid an error. */
21110 /* We use char because int might match the return type of a gcc2
21111 builtin and then its argument prototype would still apply. */
21112 char pthread_create ();
21121 rm -f conftest.$ac_objext conftest$ac_exeext
21122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21123 (eval $ac_link) 2>conftest.er1
21125 grep -v '^ *+' conftest.er1 >conftest.err
21127 cat conftest.err >&5
21128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21129 (exit $ac_status); } &&
21130 { ac_try='test -z "$ac_c_werror_flag"
21131 || test ! -s conftest.err'
21132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21133 (eval $ac_try) 2>&5
21135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21136 (exit $ac_status); }; } &&
21137 { ac_try='test -s conftest$ac_exeext'
21138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21139 (eval $ac_try) 2>&5
21141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21142 (exit $ac_status); }; }; then
21143 ac_cv_lib_c_r_pthread_create=yes
21145 echo "$as_me: failed program was:" >&5
21146 sed 's/^/| /' conftest.$ac_ext >&5
21148 ac_cv_lib_c_r_pthread_create=no
21150 rm -f conftest.err conftest.$ac_objext \
21151 conftest$ac_exeext conftest.$ac_ext
21152 LIBS=$ac_check_lib_save_LIBS
21154 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
21155 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
21156 if test $ac_cv_lib_c_r_pthread_create = yes; then
21157 PTHREAD_LIB="-lc_r"
21159 echo "$as_me:$LINENO: checking for pthread_create" >&5
21160 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
21161 if test "${ac_cv_func_pthread_create+set}" = set; then
21162 echo $ECHO_N "(cached) $ECHO_C" >&6
21164 cat >conftest.$ac_ext <<_ACEOF
21167 cat confdefs.h >>conftest.$ac_ext
21168 cat >>conftest.$ac_ext <<_ACEOF
21169 /* end confdefs.h. */
21170 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
21171 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21172 #define pthread_create innocuous_pthread_create
21174 /* System header to define __stub macros and hopefully few prototypes,
21175 which can conflict with char pthread_create (); below.
21176 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21177 <limits.h> exists even on freestanding compilers. */
21180 # include <limits.h>
21182 # include <assert.h>
21185 #undef pthread_create
21187 /* Override any gcc2 internal prototype to avoid an error. */
21192 /* We use char because int might match the return type of a gcc2
21193 builtin and then its argument prototype would still apply. */
21194 char pthread_create ();
21195 /* The GNU C library defines this for functions which it implements
21196 to always fail with ENOSYS. Some functions are actually named
21197 something starting with __ and the normal name is an alias. */
21198 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
21201 char (*f) () = pthread_create;
21210 return f != pthread_create;
21215 rm -f conftest.$ac_objext conftest$ac_exeext
21216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21217 (eval $ac_link) 2>conftest.er1
21219 grep -v '^ *+' conftest.er1 >conftest.err
21221 cat conftest.err >&5
21222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21223 (exit $ac_status); } &&
21224 { ac_try='test -z "$ac_c_werror_flag"
21225 || test ! -s conftest.err'
21226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21227 (eval $ac_try) 2>&5
21229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21230 (exit $ac_status); }; } &&
21231 { ac_try='test -s conftest$ac_exeext'
21232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21233 (eval $ac_try) 2>&5
21235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21236 (exit $ac_status); }; }; then
21237 ac_cv_func_pthread_create=yes
21239 echo "$as_me: failed program was:" >&5
21240 sed 's/^/| /' conftest.$ac_ext >&5
21242 ac_cv_func_pthread_create=no
21244 rm -f conftest.err conftest.$ac_objext \
21245 conftest$ac_exeext conftest.$ac_ext
21247 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
21248 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
21261 cat >>confdefs.h <<\_ACEOF
21267 CFLAGS=${CFLAGS--O}
21268 LDFLAGS=${LDFLAGS--O}
21269 DB_LIBS="${SQL_LFLAGS}"
21271 CPPFLAGS="$CPPFLAGS"
21296 # Finally we set appropriate distribution specific
21297 # variables and defaults
21299 # PFILES are platform specific files
21300 PFILES="platforms/Makefile"
21304 hostname=`uname -n | cut -d '.' -f 1`
21305 case "$DISTNAME" in
21308 PSCMD="ps -e -o pid,comm"
21309 PFILES="${PFILES} \
21310 platforms/aix/Makefile"
21311 TAPEDRIVE="/dev/rmt0.1"
21315 PTHREAD_LIB="-lpthread -lexc"
21316 if test "${CC}" = "gcc" ; then
21323 TAPEDRIVE="/dev/nrmt0"
21326 DISTVER=`uname -a |awk '{print $3}'`
21327 TAPEDRIVE="/dev/nrmt0"
21328 PTHREAD_LIB="-pthread"
21329 CFLAGS="${CFLAGS} -pthread"
21330 PSCMD="ps -x -o pid,command"
21333 PFILES="${PFILES} \
21334 platforms/bsdi/Makefile \
21335 platforms/bsdi/bacula-fd \
21336 platforms/bsdi/bacula-sd \
21337 platforms/bsdi/bacula-dir"
21338 largefile_support="yes"
21341 DISTVER=`uname -a |awk '{print $3}'`
21342 TAPEDRIVE="/dev/nrst0"
21344 WCFLAGS="-mwindows"
21345 WLDFLAGS="-mwindows"
21349 TAPEDRIVE="/dev/nst0"
21350 PSCMD="ps -e -o pid,command"
21352 PFILES="${PFILES} \
21353 platforms/darwin/Makefile"
21356 DISTVER=`cat /etc/debian_version`
21357 TAPEDRIVE="/dev/nrst0"
21358 PSCMD="ps -e -o pid,command"
21361 DISTVER=`uname -a |awk '{print $3}'`
21362 VER=`echo $DISTVER | cut -c 1`
21363 if test x$VER = x4 ; then
21364 PTHREAD_LIB="-pthread"
21365 CFLAGS="${CFLAGS} -pthread"
21369 TAPEDRIVE="/dev/nrsa0"
21370 PSCMD="ps -x -o pid,command"
21371 PFILES="${PFILES} \
21372 platforms/freebsd/Makefile \
21373 platforms/freebsd/bacula-fd \
21374 platforms/freebsd/bacula-sd \
21375 platforms/freebsd/bacula-dir"
21376 largefile_support="yes"
21379 PSCMD="UNIX95=1 ps -e -o pid,comm"
21380 CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
21382 TAPEDRIVE="/dev/rmt/0hnb"
21383 PTHREAD_LIB="-lpthread"
21387 TAPEDRIVE="/dev/rmt/0cbn"
21388 PSCMD="ps -e -o pid,comm"
21389 PFILES="${PFILES} \
21390 platforms/irix/Makefile \
21391 platforms/irix/bacula-fd \
21392 platforms/irix/bacula-sd \
21393 platforms/irix/bacula-dir"
21396 DISTVER=`uname -a |awk '{print $3}'`
21399 TAPEDRIVE="/dev/nrst0"
21400 PSCMD="ps -a -o pid,command"
21401 PTHREAD_LIB="-pthread"
21402 CFLAGS="${CFLAGS} -pthread"
21405 DISTVER=`uname -a |awk '{print $3}'`
21408 TAPEDRIVE="/dev/nrst0"
21409 PSCMD="ps -ax -o pid,command"
21410 PTHREAD_LIB="-pthread"
21411 CFLAGS="${CFLAGS} -pthread"
21412 PFILES="${PFILES} \
21413 platforms/openbsd/Makefile \
21414 platforms/openbsd/bacula-fd \
21415 platforms/openbsd/bacula-sd \
21416 platforms/openbsd/bacula-dir"
21419 if test -f /etc/whitebox-release ; then
21420 f=/etc/whitebox-release
21422 f=/etc/redhat-release
21424 if test `cat $f | grep release |\
21425 cut -f 3 -d ' '`x = "Enterprise"x ; then
21426 DISTVER="Enterprise "`cat $f | grep release |\
21429 DISTVER=`cat /etc/redhat-release | grep release |\
21432 TAPEDRIVE="/dev/nst0"
21433 PSCMD="ps -e -o pid,command"
21434 PFILES="${PFILES} \
21435 platforms/redhat/Makefile \
21436 platforms/redhat/bacula-fd \
21437 platforms/redhat/bacula-sd \
21438 platforms/redhat/bacula-dir \
21439 platforms/redhat/bacula.spec \
21441 hostname=`hostname -s`
21444 DISTVER=`cat /etc/mandrake-release | grep release |\
21446 TAPEDRIVE="/dev/nst0"
21447 PSCMD="ps -e -o pid,command"
21448 PFILES="${PFILES} \
21449 platforms/mandrake/Makefile \
21450 platforms/mandrake/bacula-fd \
21451 platforms/mandrake/bacula-sd \
21452 platforms/mandrake/bacula-dir \
21453 platforms/mandrake/bacula.spec \
21457 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
21458 TAPEDRIVE="/dev/nst0"
21459 PSCMD="ps -e -o pid,command"
21460 PFILES="${PFILES} \
21461 platforms/gentoo/Makefile \
21462 platforms/gentoo/bacula-init \
21463 platforms/gentoo/bacula-fd \
21464 platforms/gentoo/bacula-sd \
21465 platforms/gentoo/bacula-dir"
21468 DISTVER=`cat /etc/slackware-version`
21469 TAPEDRIVE="/dev/nst0"
21470 PSCMD="ps -e -o pid,command"
21471 PFILES="${PFILES} \
21472 platforms/slackware/Makefile \
21473 platforms/slackware/rc.bacula-fd \
21474 platforms/slackware/rc.bacula-sd \
21475 platforms/slackware/rc.bacula-dir\
21476 platforms/slackware/functions.bacula"
21480 TAPEDRIVE="/dev/rmt/0cbn"
21481 PSCMD="ps -e -o pid,comm"
21482 PFILES="${PFILES} \
21483 platforms/solaris/Makefile \
21484 platforms/solaris/bacula-fd \
21485 platforms/solaris/bacula-sd \
21486 platforms/solaris/bacula-dir"
21487 if test x$DISTVER = x5.6 ; then
21488 cat >>confdefs.h <<\_ACEOF
21489 #define HAVE_OLD_SOCKOPT 1
21495 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
21497 TAPEDRIVE="/dev/nst0"
21498 PSCMD="ps -e -o pid,command"
21499 PFILES="${PFILES} \
21500 platforms/suse/Makefile \
21501 platforms/suse/bacula-fd \
21502 platforms/suse/bacula-sd \
21503 platforms/suse/bacula-dir \
21504 platforms/suse/bacula \
21505 platforms/suse/bacula.spec"
21510 TAPEDRIVE="/dev/nst0"
21511 PSCMD="ps -e -o pid,command"
21512 PFILES="${PFILES} \
21513 platforms/suse/Makefile \
21514 platforms/suse/bacula-fd \
21515 platforms/suse/bacula-sd \
21516 platforms/suse/bacula-dir"
21520 TAPEDRIVE="/dev/nst0"
21523 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
21529 LIBS="$PTHREAD_LIB $LIBS"
21531 cat >>confdefs.h <<_ACEOF
21535 cat >>confdefs.h <<_ACEOF
21546 MCOMMON=./autoconf/Make.common
21549 if test "x${subsysdir}" = "x${sbindir}" ; then
21552 echo "You have set both --sbindir and --with-subsys-dir"
21553 echo " equal to: ${subsysdir} "
21554 echo "This is not permitted. Please reconfigure."
21556 echo "Aborting configuration ..."
21562 ac_config_files="$ac_config_files autoconf/Make.common Makefile rescue/Makefile rescue/linux/Makefile rescue/linux/floppy/Makefile rescue/linux/cdrom/Makefile rescue/linux/cdrom/bacula/Makefile rescue/freebsd/Makefile rescue/solaris/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/gnome-console.console_apps scripts/mtx-changer scripts/dvd-writepart scripts/dvd-freespace scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf doc/Makefile src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome-console/Makefile src/gnome-console/gnome-console.conf src/gnome2-console/Makefile src/gnome2-console/gnome-console.conf src/wx-console/Makefile src/wx-console/wx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/filed/win32/Makefile src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/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"
21563 ac_config_commands="$ac_config_commands default"
21564 cat >confcache <<\_ACEOF
21565 # This file is a shell script that caches the results of configure
21566 # tests run on this system so they can be shared between configure
21567 # scripts and configure runs, see configure's option --config-cache.
21568 # It is not useful on other systems. If it contains results you don't
21569 # want to keep, you may remove or edit it.
21571 # config.status only pays attention to the cache file if you give it
21572 # the --recheck option to rerun configure.
21574 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21575 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21576 # following values.
21580 # The following way of writing the cache mishandles newlines in values,
21581 # but we know of no workaround that is simple, portable, and efficient.
21582 # So, don't put newlines in cache variables' values.
21583 # Ultrix sh set writes to stderr and can't be redirected directly,
21584 # and sets the high bit in the cache file unless we assign to the vars.
21587 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21589 # `set' does not quote correctly, so add quotes (double-quote
21590 # substitution turns \\\\ into \\, and sed turns \\ into \).
21593 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21596 # `set' quotes correctly as required by POSIX, so do not add quotes.
21598 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21605 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21607 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21609 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21610 if test -w $cache_file; then
21611 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21612 cat confcache >$cache_file
21614 echo "not updating unwritable cache $cache_file"
21619 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21620 # Let make expand exec_prefix.
21621 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21623 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21624 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21625 # trailing colons and then remove the whole line if VPATH becomes empty
21626 # (actually we leave an empty line to preserve line numbers).
21627 if test "x$srcdir" = x.; then
21628 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21629 s/:*\$(srcdir):*/:/;
21630 s/:*\${srcdir}:*/:/;
21632 s/^\([^=]*=[ ]*\):*/\1/;
21638 DEFS=-DHAVE_CONFIG_H
21642 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21643 # 1. Remove the extension, and $U if already installed.
21644 ac_i=`echo "$ac_i" |
21645 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21647 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21648 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21650 LIBOBJS=$ac_libobjs
21652 LTLIBOBJS=$ac_ltlibobjs
21656 : ${CONFIG_STATUS=./config.status}
21657 ac_clean_files_save=$ac_clean_files
21658 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21659 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21660 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21661 cat >$CONFIG_STATUS <<_ACEOF
21663 # Generated by $as_me.
21664 # Run this file to recreate the current configuration.
21665 # Compiler output produced by configure, useful for debugging
21666 # configure, is in config.log if it exists.
21669 ac_cs_recheck=false
21671 SHELL=\${CONFIG_SHELL-$SHELL}
21674 cat >>$CONFIG_STATUS <<\_ACEOF
21675 ## --------------------- ##
21676 ## M4sh Initialization. ##
21677 ## --------------------- ##
21679 # Be Bourne compatible
21680 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21683 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21684 # is contrary to our usage. Disable this feature.
21685 alias -g '${1+"$@"}'='"$@"'
21686 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21689 DUALCASE=1; export DUALCASE # for MKS sh
21691 # Support unset when possible.
21692 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21699 # Work around bugs in pre-3.0 UWIN ksh.
21700 $as_unset ENV MAIL MAILPATH
21707 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21708 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21709 LC_TELEPHONE LC_TIME
21711 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21712 eval $as_var=C; export $as_var
21718 # Required to use basename.
21719 if expr a : '\(a\)' >/dev/null 2>&1; then
21725 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21726 as_basename=basename
21732 # Name of the executable.
21733 as_me=`$as_basename "$0" ||
21734 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21735 X"$0" : 'X\(//\)$' \| \
21736 X"$0" : 'X\(/\)$' \| \
21737 . : '\(.\)' 2>/dev/null ||
21739 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21740 /^X\/\(\/\/\)$/{ s//\1/; q; }
21741 /^X\/\(\/\).*/{ s//\1/; q; }
21745 # PATH needs CR, and LINENO needs CR and PATH.
21746 # Avoid depending upon Character Ranges.
21747 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21748 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21749 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21750 as_cr_digits='0123456789'
21751 as_cr_alnum=$as_cr_Letters$as_cr_digits
21753 # The user is always right.
21754 if test "${PATH_SEPARATOR+set}" != set; then
21755 echo "#! /bin/sh" >conf$$.sh
21756 echo "exit 0" >>conf$$.sh
21758 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21767 as_lineno_1=$LINENO
21768 as_lineno_2=$LINENO
21769 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21770 test "x$as_lineno_1" != "x$as_lineno_2" &&
21771 test "x$as_lineno_3" = "x$as_lineno_2" || {
21772 # Find who we are. Look in the path if we contain no path at all
21775 *[\\/]* ) as_myself=$0 ;;
21776 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21777 for as_dir in $PATH
21780 test -z "$as_dir" && as_dir=.
21781 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21786 # We did not find ourselves, most probably we were run as `sh COMMAND'
21787 # in which case we are not to be found in the path.
21788 if test "x$as_myself" = x; then
21791 if test ! -f "$as_myself"; then
21792 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21793 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21794 { (exit 1); exit 1; }; }
21796 case $CONFIG_SHELL in
21798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21799 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21802 test -z "$as_dir" && as_dir=.
21803 for as_base in sh bash ksh sh5; do
21806 if ("$as_dir/$as_base" -c '
21807 as_lineno_1=$LINENO
21808 as_lineno_2=$LINENO
21809 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21810 test "x$as_lineno_1" != "x$as_lineno_2" &&
21811 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
21812 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21813 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21814 CONFIG_SHELL=$as_dir/$as_base
21815 export CONFIG_SHELL
21816 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21824 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21825 # uniformly replaced by the line number. The first 'sed' inserts a
21826 # line-number line before each line; the second 'sed' does the real
21827 # work. The second script uses 'N' to pair each line-number line
21828 # with the numbered line, and appends trailing '-' during
21829 # substitution so that $LINENO is not a special case at line end.
21830 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21831 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21832 sed '=' <$as_myself |
21837 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21840 s,^['$as_cr_digits']*\n,,
21841 ' >$as_me.lineno &&
21842 chmod +x $as_me.lineno ||
21843 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21844 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21845 { (exit 1); exit 1; }; }
21847 # Don't try to exec as it changes $[0], causing all sort of problems
21848 # (the dirname of $[0] is not the place where we might find the
21849 # original and so on. Autoconf is especially sensible to this).
21851 # Exit status is that of the last command.
21856 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21857 *c*,-n*) ECHO_N= ECHO_C='
21859 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21860 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
21863 if expr a : '\(a\)' >/dev/null 2>&1; then
21869 rm -f conf$$ conf$$.exe conf$$.file
21871 if ln -s conf$$.file conf$$ 2>/dev/null; then
21872 # We could just check for DJGPP; but this test a) works b) is more generic
21873 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21874 if test -f conf$$.exe; then
21875 # Don't use ln at all; we don't have any links
21880 elif ln conf$$.file conf$$ 2>/dev/null; then
21885 rm -f conf$$ conf$$.exe conf$$.file
21887 if mkdir -p . 2>/dev/null; then
21890 test -d ./-p && rmdir ./-p
21894 as_executable_p="test -f"
21896 # Sed expression to map a string onto a valid CPP name.
21897 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21899 # Sed expression to map a string onto a valid variable name.
21900 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21904 # We need space, tab and new line, in precisely that order.
21914 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21915 # report actual input values of CONFIG_FILES etc. instead of their
21916 # values after options handling. Logging --version etc. is OK.
21920 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21921 ## Running $as_me. ##
21926 This file was extended by $as_me, which was
21927 generated by GNU Autoconf 2.59. Invocation command line was
21929 CONFIG_FILES = $CONFIG_FILES
21930 CONFIG_HEADERS = $CONFIG_HEADERS
21931 CONFIG_LINKS = $CONFIG_LINKS
21932 CONFIG_COMMANDS = $CONFIG_COMMANDS
21936 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21940 # Files that config.status was made for.
21941 if test -n "$ac_config_files"; then
21942 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21945 if test -n "$ac_config_headers"; then
21946 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21949 if test -n "$ac_config_links"; then
21950 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21953 if test -n "$ac_config_commands"; then
21954 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21957 cat >>$CONFIG_STATUS <<\_ACEOF
21960 \`$as_me' instantiates files from templates according to the
21961 current configuration.
21963 Usage: $0 [OPTIONS] [FILE]...
21965 -h, --help print this help, then exit
21966 -V, --version print version number, then exit
21967 -q, --quiet do not print progress messages
21968 -d, --debug don't remove temporary files
21969 --recheck update $as_me by reconfiguring in the same conditions
21970 --file=FILE[:TEMPLATE]
21971 instantiate the configuration file FILE
21972 --header=FILE[:TEMPLATE]
21973 instantiate the configuration header FILE
21975 Configuration files:
21978 Configuration headers:
21981 Configuration commands:
21984 Report bugs to <bug-autoconf@gnu.org>."
21987 cat >>$CONFIG_STATUS <<_ACEOF
21990 configured by $0, generated by GNU Autoconf 2.59,
21991 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21993 Copyright (C) 2003 Free Software Foundation, Inc.
21994 This config.status script is free software; the Free Software Foundation
21995 gives unlimited permission to copy, distribute and modify it."
22000 cat >>$CONFIG_STATUS <<\_ACEOF
22001 # If no file are specified by the user, then we need to provide default
22002 # value. By we need to know if files were specified by the user.
22008 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22009 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22017 *) # This is not an option, so the user has probably given explicit
22020 ac_need_defaults=false;;
22024 # Handling of the options.
22026 cat >>$CONFIG_STATUS <<\_ACEOF
22027 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22029 --version | --vers* | -V )
22030 echo "$ac_cs_version"; exit 0 ;;
22032 # Conflict between --help and --header
22033 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22034 Try \`$0 --help' for more information." >&5
22035 echo "$as_me: error: ambiguous option: $1
22036 Try \`$0 --help' for more information." >&2;}
22037 { (exit 1); exit 1; }; };;
22038 --help | --hel | -h )
22039 echo "$ac_cs_usage"; exit 0 ;;
22040 --debug | --d* | -d )
22042 --file | --fil | --fi | --f )
22044 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22045 ac_need_defaults=false;;
22046 --header | --heade | --head | --hea )
22048 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22049 ac_need_defaults=false;;
22050 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22051 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22054 # This is an error.
22055 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22056 Try \`$0 --help' for more information." >&5
22057 echo "$as_me: error: unrecognized option: $1
22058 Try \`$0 --help' for more information." >&2;}
22059 { (exit 1); exit 1; }; } ;;
22061 *) ac_config_targets="$ac_config_targets $1" ;;
22067 ac_configure_extra_args=
22069 if $ac_cs_silent; then
22071 ac_configure_extra_args="$ac_configure_extra_args --silent"
22075 cat >>$CONFIG_STATUS <<_ACEOF
22076 if \$ac_cs_recheck; then
22077 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22078 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22087 cat >>$CONFIG_STATUS <<\_ACEOF
22088 for ac_config_target in $ac_config_targets
22090 case "$ac_config_target" in
22091 # Handling of arguments.
22092 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
22093 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22094 "rescue/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/Makefile" ;;
22095 "rescue/linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/Makefile" ;;
22096 "rescue/linux/floppy/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/floppy/Makefile" ;;
22097 "rescue/linux/cdrom/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/cdrom/Makefile" ;;
22098 "rescue/linux/cdrom/bacula/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/cdrom/bacula/Makefile" ;;
22099 "rescue/freebsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/freebsd/Makefile" ;;
22100 "rescue/solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/solaris/Makefile" ;;
22101 "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
22102 "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
22103 "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
22104 "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
22105 "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
22106 "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
22107 "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
22108 "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
22109 "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
22110 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
22111 "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
22112 "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
22113 "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
22114 "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
22115 "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
22116 "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
22117 "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
22118 "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
22119 "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
22120 "scripts/dvd-writepart" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-writepart" ;;
22121 "scripts/dvd-freespace" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-freespace" ;;
22122 "scripts/bacula-tray-monitor.desktop" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
22123 "scripts/logwatch/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
22124 "scripts/logwatch/logfile.bacula.conf" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
22125 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
22126 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22127 "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
22128 "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
22129 "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
22130 "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
22131 "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
22132 "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
22133 "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
22134 "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
22135 "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
22136 "src/tray-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
22137 "src/tray-monitor/tray-monitor.conf" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
22138 "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
22139 "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
22140 "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
22141 "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
22142 "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
22143 "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
22144 "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
22145 "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
22146 "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
22147 "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
22148 "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
22149 "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
22150 "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
22151 "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
22152 "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
22153 "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
22154 "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
22155 "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
22156 "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
22157 "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
22158 "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
22159 "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
22160 "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
22161 "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
22162 "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
22163 "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
22164 "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
22165 "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
22166 "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
22167 "src/cats/create_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
22168 "src/cats/update_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
22169 "src/cats/make_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
22170 "src/cats/grant_sqlite3_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
22171 "src/cats/drop_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
22172 "src/cats/drop_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
22173 "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
22174 "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
22175 "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
22176 "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
22177 "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
22178 "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
22179 "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
22180 "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
22181 "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
22182 "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
22183 "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
22184 "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
22185 "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
22186 "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
22187 "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
22188 "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
22189 "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
22190 "src/win32/baculafd/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/baculafd/bacula-fd.conf" ;;
22191 "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
22192 "src/win32/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/console/bconsole.conf" ;;
22193 "src/win32/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/wx-console/wx-console.conf" ;;
22194 "src/win32/pebuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/pebuilder/Makefile" ;;
22195 "src/bimagemgr/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/bimagemgr/Makefile" ;;
22196 "src/bimagemgr/bacula-bimagemgr.spec" ) CONFIG_FILES="$CONFIG_FILES src/bimagemgr/bacula-bimagemgr.spec" ;;
22197 "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
22198 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
22199 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
22200 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22201 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22202 { (exit 1); exit 1; }; };;
22206 # If the user did not use the arguments to specify the items to instantiate,
22207 # then the envvar interface is used. Set only those that are not.
22208 # We use the long form for the default assignment because of an extremely
22209 # bizarre bug on SunOS 4.1.3.
22210 if $ac_need_defaults; then
22211 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22212 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22213 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22216 # Have a temporary directory for convenience. Make it in the build tree
22217 # simply because there is no reason to put it here, and in addition,
22218 # creating and moving files from /tmp can sometimes cause problems.
22219 # Create a temporary directory, and hook for its removal unless debugging.
22222 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22223 trap '{ (exit 1); exit 1; }' 1 2 13 15
22226 # Create a (secure) tmp directory for tmp files.
22229 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22230 test -n "$tmp" && test -d "$tmp"
22233 tmp=./confstat$$-$RANDOM
22234 (umask 077 && mkdir $tmp)
22237 echo "$me: cannot create a temporary directory in ." >&2
22238 { (exit 1); exit 1; }
22243 cat >>$CONFIG_STATUS <<_ACEOF
22246 # CONFIG_FILES section.
22249 # No need to generate the scripts if there are no CONFIG_FILES.
22250 # This happens for instance when ./config.status config.h
22251 if test -n "\$CONFIG_FILES"; then
22252 # Protect against being on the right side of a sed subst in config.status.
22253 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22254 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22255 s,@SHELL@,$SHELL,;t t
22256 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22257 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22258 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22259 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22260 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22261 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22262 s,@exec_prefix@,$exec_prefix,;t t
22263 s,@prefix@,$prefix,;t t
22264 s,@program_transform_name@,$program_transform_name,;t t
22265 s,@bindir@,$bindir,;t t
22266 s,@sbindir@,$sbindir,;t t
22267 s,@libexecdir@,$libexecdir,;t t
22268 s,@datadir@,$datadir,;t t
22269 s,@sysconfdir@,$sysconfdir,;t t
22270 s,@sharedstatedir@,$sharedstatedir,;t t
22271 s,@localstatedir@,$localstatedir,;t t
22272 s,@libdir@,$libdir,;t t
22273 s,@includedir@,$includedir,;t t
22274 s,@oldincludedir@,$oldincludedir,;t t
22275 s,@infodir@,$infodir,;t t
22276 s,@mandir@,$mandir,;t t
22277 s,@build_alias@,$build_alias,;t t
22278 s,@host_alias@,$host_alias,;t t
22279 s,@target_alias@,$target_alias,;t t
22280 s,@DEFS@,$DEFS,;t t
22281 s,@ECHO_C@,$ECHO_C,;t t
22282 s,@ECHO_N@,$ECHO_N,;t t
22283 s,@ECHO_T@,$ECHO_T,;t t
22284 s,@LIBS@,$LIBS,;t t
22285 s,@BUILD_DIR@,$BUILD_DIR,;t t
22286 s,@TRUEPRG@,$TRUEPRG,;t t
22287 s,@FALSEPRG@,$FALSEPRG,;t t
22288 s,@VERSION@,$VERSION,;t t
22289 s,@DATE@,$DATE,;t t
22290 s,@LSMDATE@,$LSMDATE,;t t
22292 s,@CFLAGS@,$CFLAGS,;t t
22293 s,@LDFLAGS@,$LDFLAGS,;t t
22294 s,@CPPFLAGS@,$CPPFLAGS,;t t
22295 s,@ac_ct_CC@,$ac_ct_CC,;t t
22296 s,@EXEEXT@,$EXEEXT,;t t
22297 s,@OBJEXT@,$OBJEXT,;t t
22299 s,@CXXFLAGS@,$CXXFLAGS,;t t
22300 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22302 s,@EGREP@,$EGREP,;t t
22303 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22304 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22305 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22306 s,@RANLIB@,$RANLIB,;t t
22307 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22312 s,@ECHO@,$ECHO,;t t
22316 s,@OPENSSL@,$OPENSSL,;t t
22318 s,@MKISOFS@,$MKISOFS,;t t
22319 s,@PYTHON@,$PYTHON,;t t
22320 s,@GROWISOFS@,$GROWISOFS,;t t
22321 s,@DVDRWMEDIAINFO@,$DVDRWMEDIAINFO,;t t
22322 s,@PKGCONFIG@,$PKGCONFIG,;t t
22323 s,@WXCONFIG@,$WXCONFIG,;t t
22324 s,@CDRECORD@,$CDRECORD,;t t
22325 s,@PIDOF@,$PIDOF,;t t
22327 s,@ARFLAGS@,$ARFLAGS,;t t
22328 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
22329 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
22330 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
22331 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
22332 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
22333 s,@build@,$build,;t t
22334 s,@build_cpu@,$build_cpu,;t t
22335 s,@build_vendor@,$build_vendor,;t t
22336 s,@build_os@,$build_os,;t t
22337 s,@host@,$host,;t t
22338 s,@host_cpu@,$host_cpu,;t t
22339 s,@host_vendor@,$host_vendor,;t t
22340 s,@host_os@,$host_os,;t t
22341 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
22342 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
22343 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
22344 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
22345 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
22346 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
22347 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
22348 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
22349 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
22350 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
22351 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
22352 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
22353 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
22354 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
22355 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
22356 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
22357 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
22358 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
22359 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
22360 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
22361 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
22362 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
22363 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
22364 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
22365 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
22366 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
22367 s,@MSGFMT@,$MSGFMT,;t t
22368 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
22369 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
22370 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
22371 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
22372 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
22373 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
22374 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
22375 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
22376 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
22377 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
22378 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
22379 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
22380 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
22381 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
22382 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
22383 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
22384 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
22385 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
22386 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
22387 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
22388 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
22389 s,@GNOME_DIR@,$GNOME_DIR,;t t
22390 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
22391 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
22392 s,@WX_DIR@,$WX_DIR,;t t
22393 s,@TRAY_MONITOR_CPPFLAGS@,$TRAY_MONITOR_CPPFLAGS,;t t
22394 s,@TRAY_MONITOR_LDFLAGS@,$TRAY_MONITOR_LDFLAGS,;t t
22395 s,@TRAY_MONITOR_DIR@,$TRAY_MONITOR_DIR,;t t
22396 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
22397 s,@STATIC_FD@,$STATIC_FD,;t t
22398 s,@STATIC_SD@,$STATIC_SD,;t t
22399 s,@STATIC_DIR@,$STATIC_DIR,;t t
22400 s,@STATIC_CONS@,$STATIC_CONS,;t t
22401 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
22402 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
22403 s,@ALL_DIRS@,$ALL_DIRS,;t t
22404 s,@CONS_INC@,$CONS_INC,;t t
22405 s,@CONS_OBJ@,$CONS_OBJ,;t t
22406 s,@CONS_SRC@,$CONS_SRC,;t t
22407 s,@CONS_LIBS@,$CONS_LIBS,;t t
22408 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
22409 s,@READLINE_SRC@,$READLINE_SRC,;t t
22410 s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t
22411 s,@PYTHON_INCDIR@,$PYTHON_INCDIR,;t t
22412 s,@CDSTL@,$CDSTL,;t t
22413 s,@working_dir@,$working_dir,;t t
22414 s,@scriptdir@,$scriptdir,;t t
22415 s,@dump_email@,$dump_email,;t t
22416 s,@job_email@,$job_email,;t t
22417 s,@smtp_host@,$smtp_host,;t t
22418 s,@piddir@,$piddir,;t t
22419 s,@subsysdir@,$subsysdir,;t t
22420 s,@baseport@,$baseport,;t t
22421 s,@dir_port@,$dir_port,;t t
22422 s,@fd_port@,$fd_port,;t t
22423 s,@sd_port@,$sd_port,;t t
22424 s,@dir_password@,$dir_password,;t t
22425 s,@fd_password@,$fd_password,;t t
22426 s,@sd_password@,$sd_password,;t t
22427 s,@mon_dir_password@,$mon_dir_password,;t t
22428 s,@mon_fd_password@,$mon_fd_password,;t t
22429 s,@mon_sd_password@,$mon_sd_password,;t t
22430 s,@bimagemgr_cgidir@,$bimagemgr_cgidir,;t t
22431 s,@bimagemgr_docdir@,$bimagemgr_docdir,;t t
22432 s,@bimagemgr_binowner@,$bimagemgr_binowner,;t t
22433 s,@bimagemgr_bingroup@,$bimagemgr_bingroup,;t t
22434 s,@bimagemgr_dataowner@,$bimagemgr_dataowner,;t t
22435 s,@bimagemgr_datagroup@,$bimagemgr_datagroup,;t t
22436 s,@dir_user@,$dir_user,;t t
22437 s,@dir_group@,$dir_group,;t t
22438 s,@sd_user@,$sd_user,;t t
22439 s,@sd_group@,$sd_group,;t t
22440 s,@fd_user@,$fd_user,;t t
22441 s,@fd_group@,$fd_group,;t t
22442 s,@SBINPERM@,$SBINPERM,;t t
22443 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
22444 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
22445 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
22446 s,@cats@,$cats,;t t
22447 s,@DB_NAME@,$DB_NAME,;t t
22448 s,@GETCONF@,$GETCONF,;t t
22449 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
22450 s,@X_CFLAGS@,$X_CFLAGS,;t t
22451 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
22452 s,@X_LIBS@,$X_LIBS,;t t
22453 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
22454 s,@LIBOBJS@,$LIBOBJS,;t t
22455 s,@ALLOCA@,$ALLOCA,;t t
22456 s,@FDLIBS@,$FDLIBS,;t t
22457 s,@DEBUG@,$DEBUG,;t t
22458 s,@DINCLUDE@,$DINCLUDE,;t t
22459 s,@DLIB@,$DLIB,;t t
22460 s,@DB_LIBS@,$DB_LIBS,;t t
22461 s,@WCFLAGS@,$WCFLAGS,;t t
22462 s,@WLDFLAGS@,$WLDFLAGS,;t t
22463 s,@OBJLIST@,$OBJLIST,;t t
22464 s,@hostname@,$hostname,;t t
22465 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
22466 s,@PSCMD@,$PSCMD,;t t
22467 s,@WIN32@,$WIN32,;t t
22468 s,@MACOSX@,$MACOSX,;t t
22469 s,@DISTNAME@,$DISTNAME,;t t
22470 s,@DISTVER@,$DISTVER,;t t
22471 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22472 /@MCOMMON@/r $MCOMMON
22478 cat >>$CONFIG_STATUS <<\_ACEOF
22479 # Split the substitutions into bite-sized pieces for seds with
22480 # small command number limits, like on Digital OSF/1 and HP-UX.
22481 ac_max_sed_lines=48
22482 ac_sed_frag=1 # Number of current file.
22483 ac_beg=1 # First line for current file.
22484 ac_end=$ac_max_sed_lines # Line after last line for current file.
22487 while $ac_more_lines; do
22488 if test $ac_beg -gt 1; then
22489 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22491 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22493 if test ! -s $tmp/subs.frag; then
22494 ac_more_lines=false
22496 # The purpose of the label and of the branching condition is to
22497 # speed up the sed processing (if there are no `@' at all, there
22498 # is no need to browse any of the substitutions).
22499 # These are the two extra sed commands mentioned above.
22501 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22502 if test -z "$ac_sed_cmds"; then
22503 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22505 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22507 ac_sed_frag=`expr $ac_sed_frag + 1`
22509 ac_end=`expr $ac_end + $ac_max_sed_lines`
22512 if test -z "$ac_sed_cmds"; then
22515 fi # test -n "$CONFIG_FILES"
22518 cat >>$CONFIG_STATUS <<\_ACEOF
22519 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22520 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22522 - | *:- | *:-:* ) # input from stdin
22524 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22525 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22526 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22527 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22528 * ) ac_file_in=$ac_file.in ;;
22531 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22532 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22533 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22534 X"$ac_file" : 'X\(//\)[^/]' \| \
22535 X"$ac_file" : 'X\(//\)$' \| \
22536 X"$ac_file" : 'X\(/\)' \| \
22537 . : '\(.\)' 2>/dev/null ||
22539 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22540 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22541 /^X\(\/\/\)$/{ s//\1/; q; }
22542 /^X\(\/\).*/{ s//\1/; q; }
22544 { if $as_mkdir_p; then
22549 while test ! -d "$as_dir"; do
22550 as_dirs="$as_dir $as_dirs"
22551 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22552 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22553 X"$as_dir" : 'X\(//\)[^/]' \| \
22554 X"$as_dir" : 'X\(//\)$' \| \
22555 X"$as_dir" : 'X\(/\)' \| \
22556 . : '\(.\)' 2>/dev/null ||
22558 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22559 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22560 /^X\(\/\/\)$/{ s//\1/; q; }
22561 /^X\(\/\).*/{ s//\1/; q; }
22564 test ! -n "$as_dirs" || mkdir $as_dirs
22565 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22566 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22567 { (exit 1); exit 1; }; }; }
22571 if test "$ac_dir" != .; then
22572 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22573 # A "../" for each directory in $ac_dir_suffix.
22574 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22576 ac_dir_suffix= ac_top_builddir=
22580 .) # No --srcdir option. We are building in place.
22582 if test -z "$ac_top_builddir"; then
22585 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22587 [\\/]* | ?:[\\/]* ) # Absolute path.
22588 ac_srcdir=$srcdir$ac_dir_suffix;
22589 ac_top_srcdir=$srcdir ;;
22590 *) # Relative path.
22591 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22592 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22595 # Do not use `cd foo && pwd` to compute absolute paths, because
22596 # the directories may not exist.
22598 .) ac_abs_builddir="$ac_dir";;
22601 .) ac_abs_builddir=`pwd`;;
22602 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22603 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22606 case $ac_abs_builddir in
22607 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22609 case ${ac_top_builddir}. in
22610 .) ac_abs_top_builddir=$ac_abs_builddir;;
22611 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22612 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22615 case $ac_abs_builddir in
22616 .) ac_abs_srcdir=$ac_srcdir;;
22619 .) ac_abs_srcdir=$ac_abs_builddir;;
22620 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22621 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22624 case $ac_abs_builddir in
22625 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22627 case $ac_top_srcdir in
22628 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22629 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22630 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22636 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22637 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22640 if test x"$ac_file" != x-; then
22641 { echo "$as_me:$LINENO: creating $ac_file" >&5
22642 echo "$as_me: creating $ac_file" >&6;}
22645 # Let's still pretend it is `configure' which instantiates (i.e., don't
22646 # use $as_me), people would be surprised to read:
22647 # /* config.h. Generated by config.status. */
22648 if test x"$ac_file" = x-; then
22651 configure_input="$ac_file. "
22653 configure_input=$configure_input"Generated from `echo $ac_file_in |
22654 sed 's,.*/,,'` by configure."
22656 # First look for the input files in the build tree, otherwise in the
22658 ac_file_inputs=`IFS=:
22659 for f in $ac_file_in; do
22661 -) echo $tmp/stdin ;;
22663 # Absolute (can't be DOS-style, as IFS=:)
22664 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22665 echo "$as_me: error: cannot find input file: $f" >&2;}
22666 { (exit 1); exit 1; }; }
22669 if test -f "$f"; then
22672 elif test -f "$srcdir/$f"; then
22677 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22678 echo "$as_me: error: cannot find input file: $f" >&2;}
22679 { (exit 1); exit 1; }; }
22682 done` || { (exit 1); exit 1; }
22684 cat >>$CONFIG_STATUS <<_ACEOF
22688 cat >>$CONFIG_STATUS <<\_ACEOF
22690 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22691 s,@configure_input@,$configure_input,;t t
22692 s,@srcdir@,$ac_srcdir,;t t
22693 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22694 s,@top_srcdir@,$ac_top_srcdir,;t t
22695 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22696 s,@builddir@,$ac_builddir,;t t
22697 s,@abs_builddir@,$ac_abs_builddir,;t t
22698 s,@top_builddir@,$ac_top_builddir,;t t
22699 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22700 s,@INSTALL@,$ac_INSTALL,;t t
22701 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22703 if test x"$ac_file" != x-; then
22704 mv $tmp/out $ac_file
22712 cat >>$CONFIG_STATUS <<\_ACEOF
22715 # CONFIG_HEADER section.
22718 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22719 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22721 # ac_d sets the value in "#define NAME VALUE" lines.
22722 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22723 ac_dB='[ ].*$,\1#\2'
22726 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22727 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22728 ac_uB='$,\1#\2define\3'
22732 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22733 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22735 - | *:- | *:-:* ) # input from stdin
22737 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22738 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22739 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22740 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22741 * ) ac_file_in=$ac_file.in ;;
22744 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22745 echo "$as_me: creating $ac_file" >&6;}
22747 # First look for the input files in the build tree, otherwise in the
22749 ac_file_inputs=`IFS=:
22750 for f in $ac_file_in; do
22752 -) echo $tmp/stdin ;;
22754 # Absolute (can't be DOS-style, as IFS=:)
22755 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22756 echo "$as_me: error: cannot find input file: $f" >&2;}
22757 { (exit 1); exit 1; }; }
22758 # Do quote $f, to prevent DOS paths from being IFS'd.
22761 if test -f "$f"; then
22764 elif test -f "$srcdir/$f"; then
22769 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22770 echo "$as_me: error: cannot find input file: $f" >&2;}
22771 { (exit 1); exit 1; }; }
22774 done` || { (exit 1); exit 1; }
22775 # Remove the trailing spaces.
22776 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22780 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22781 # `conftest.undefs', that substitutes the proper values into
22782 # config.h.in to produce config.h. The first handles `#define'
22783 # templates, and the second `#undef' templates.
22784 # And first: Protect against being on the right side of a sed subst in
22785 # config.status. Protect against being in an unquoted here document
22786 # in config.status.
22787 rm -f conftest.defines conftest.undefs
22788 # Using a here document instead of a string reduces the quoting nightmare.
22789 # Putting comments in sed scripts is not portable.
22791 # `end' is used to avoid that the second main sed command (meant for
22792 # 0-ary CPP macros) applies to n-ary macro definitions.
22793 # See the Autoconf documentation for `clear'.
22794 cat >confdef2sed.sed <<\_ACEOF
22799 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22801 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22804 # If some macros were called several times there might be several times
22805 # the same #defines, which is useless. Nevertheless, we may not want to
22806 # sort them, since we want the *last* AC-DEFINE to be honored.
22807 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22808 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22809 rm -f confdef2sed.sed
22811 # This sed command replaces #undef with comments. This is necessary, for
22812 # example, in the case of _POSIX_SOURCE, which is predefined and required
22813 # on some systems where configure will not decide to define it.
22814 cat >>conftest.undefs <<\_ACEOF
22815 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22818 # Break up conftest.defines because some shells have a limit on the size
22819 # of here documents, and old seds have small limits too (100 cmds).
22820 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22821 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22822 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22823 echo ' :' >>$CONFIG_STATUS
22824 rm -f conftest.tail
22825 while grep . conftest.defines >/dev/null
22827 # Write a limited-size here document to $tmp/defines.sed.
22828 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22829 # Speed up: don't consider the non `#define' lines.
22830 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22831 # Work around the forget-to-reset-the-flag bug.
22832 echo 't clr' >>$CONFIG_STATUS
22833 echo ': clr' >>$CONFIG_STATUS
22834 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22836 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22838 mv $tmp/out $tmp/in
22840 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22841 rm -f conftest.defines
22842 mv conftest.tail conftest.defines
22844 rm -f conftest.defines
22845 echo ' fi # grep' >>$CONFIG_STATUS
22846 echo >>$CONFIG_STATUS
22848 # Break up conftest.undefs because some shells have a limit on the size
22849 # of here documents, and old seds have small limits too (100 cmds).
22850 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22851 rm -f conftest.tail
22852 while grep . conftest.undefs >/dev/null
22854 # Write a limited-size here document to $tmp/undefs.sed.
22855 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22856 # Speed up: don't consider the non `#undef'
22857 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22858 # Work around the forget-to-reset-the-flag bug.
22859 echo 't clr' >>$CONFIG_STATUS
22860 echo ': clr' >>$CONFIG_STATUS
22861 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22863 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22865 mv $tmp/out $tmp/in
22867 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22868 rm -f conftest.undefs
22869 mv conftest.tail conftest.undefs
22871 rm -f conftest.undefs
22873 cat >>$CONFIG_STATUS <<\_ACEOF
22874 # Let's still pretend it is `configure' which instantiates (i.e., don't
22875 # use $as_me), people would be surprised to read:
22876 # /* config.h. Generated by config.status. */
22877 if test x"$ac_file" = x-; then
22878 echo "/* Generated by configure. */" >$tmp/config.h
22880 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22882 cat $tmp/in >>$tmp/config.h
22884 if test x"$ac_file" != x-; then
22885 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22886 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22887 echo "$as_me: $ac_file is unchanged" >&6;}
22889 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22890 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22891 X"$ac_file" : 'X\(//\)[^/]' \| \
22892 X"$ac_file" : 'X\(//\)$' \| \
22893 X"$ac_file" : 'X\(/\)' \| \
22894 . : '\(.\)' 2>/dev/null ||
22896 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22897 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22898 /^X\(\/\/\)$/{ s//\1/; q; }
22899 /^X\(\/\).*/{ s//\1/; q; }
22901 { if $as_mkdir_p; then
22906 while test ! -d "$as_dir"; do
22907 as_dirs="$as_dir $as_dirs"
22908 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22909 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22910 X"$as_dir" : 'X\(//\)[^/]' \| \
22911 X"$as_dir" : 'X\(//\)$' \| \
22912 X"$as_dir" : 'X\(/\)' \| \
22913 . : '\(.\)' 2>/dev/null ||
22915 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22916 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22917 /^X\(\/\/\)$/{ s//\1/; q; }
22918 /^X\(\/\).*/{ s//\1/; q; }
22921 test ! -n "$as_dirs" || mkdir $as_dirs
22922 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22923 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22924 { (exit 1); exit 1; }; }; }
22927 mv $tmp/config.h $ac_file
22931 rm -f $tmp/config.h
22935 cat >>$CONFIG_STATUS <<\_ACEOF
22938 # CONFIG_COMMANDS section.
22940 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22941 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22942 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22943 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22944 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22945 X"$ac_dest" : 'X\(//\)[^/]' \| \
22946 X"$ac_dest" : 'X\(//\)$' \| \
22947 X"$ac_dest" : 'X\(/\)' \| \
22948 . : '\(.\)' 2>/dev/null ||
22950 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22951 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22952 /^X\(\/\/\)$/{ s//\1/; q; }
22953 /^X\(\/\).*/{ s//\1/; q; }
22955 { if $as_mkdir_p; then
22960 while test ! -d "$as_dir"; do
22961 as_dirs="$as_dir $as_dirs"
22962 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22963 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22964 X"$as_dir" : 'X\(//\)[^/]' \| \
22965 X"$as_dir" : 'X\(//\)$' \| \
22966 X"$as_dir" : 'X\(/\)' \| \
22967 . : '\(.\)' 2>/dev/null ||
22969 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22970 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22971 /^X\(\/\/\)$/{ s//\1/; q; }
22972 /^X\(\/\).*/{ s//\1/; q; }
22975 test ! -n "$as_dirs" || mkdir $as_dirs
22976 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22977 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22978 { (exit 1); exit 1; }; }; }
22982 if test "$ac_dir" != .; then
22983 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22984 # A "../" for each directory in $ac_dir_suffix.
22985 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22987 ac_dir_suffix= ac_top_builddir=
22991 .) # No --srcdir option. We are building in place.
22993 if test -z "$ac_top_builddir"; then
22996 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22998 [\\/]* | ?:[\\/]* ) # Absolute path.
22999 ac_srcdir=$srcdir$ac_dir_suffix;
23000 ac_top_srcdir=$srcdir ;;
23001 *) # Relative path.
23002 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23003 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23006 # Do not use `cd foo && pwd` to compute absolute paths, because
23007 # the directories may not exist.
23009 .) ac_abs_builddir="$ac_dir";;
23012 .) ac_abs_builddir=`pwd`;;
23013 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23014 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23017 case $ac_abs_builddir in
23018 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23020 case ${ac_top_builddir}. in
23021 .) ac_abs_top_builddir=$ac_abs_builddir;;
23022 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23023 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23026 case $ac_abs_builddir in
23027 .) ac_abs_srcdir=$ac_srcdir;;
23030 .) ac_abs_srcdir=$ac_abs_builddir;;
23031 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23032 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23035 case $ac_abs_builddir in
23036 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23038 case $ac_top_srcdir in
23039 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23040 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23041 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23046 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23047 echo "$as_me: executing $ac_dest commands" >&6;}
23049 default ) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
23055 cat >>$CONFIG_STATUS <<\_ACEOF
23057 { (exit 0); exit 0; }
23059 chmod +x $CONFIG_STATUS
23060 ac_clean_files=$ac_clean_files_save
23063 # configure is writing to config.log, and then calls config.status.
23064 # config.status does its own redirection, appending to config.log.
23065 # Unfortunately, on DOS this fails, as config.log is still kept open
23066 # by configure, so config.status won't be able to write to it; its
23067 # output is simply discarded. So we exec the FD to /dev/null,
23068 # effectively closing config.log, so it can be properly (re)opened and
23069 # appended to by config.status. When coming back to configure, we
23070 # need to make the FD available again.
23071 if test "$no_create" != yes; then
23073 ac_config_status_args=
23074 test "$silent" = yes &&
23075 ac_config_status_args="$ac_config_status_args --quiet"
23077 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23079 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23080 # would make configure fail if this is the last instruction.
23081 $ac_cs_success || { (exit 1); exit 1; }
23086 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
23087 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
23092 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
23093 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
23095 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
23096 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
23098 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
23099 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
23101 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
23102 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
23104 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
23105 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
23107 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
23108 chmod 755 $c/sqlite
23111 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
23112 largefile_support="yes"
23116 # A whole lot of hand springs to get the compiler version.
23117 # This is because gcc changed the output in version 3.0
23119 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
23120 if test "x${CCVERSION}" = "x" ; then
23121 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
23123 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
23124 if test x"${CXXVERSION}" = x ; then
23125 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
23128 if test "x${subsysdir}" = "x${sbindir}" ; then
23131 echo "You have set --sbindir and --with-subsys-dir"
23132 echo " both equal to: ${subsysdir} "
23133 echo " This is not permitted. Please reconfigure."
23135 echo "Aborting configuration ..."
23141 if test "x${db_name}" = "xInternal" ; then
23144 echo "You have not specified either --enable-client-only or one of the"
23145 echo " supported databases: MySQL, PostgreSQL, SQLite3 or SQLite."
23146 echo " This is not permitted. Please reconfigure."
23148 echo "Aborting the configuration ..."
23155 Configuration on `date`:
23157 Host: $host -- ${DISTNAME} ${DISTVER}
23158 Bacula version: ${VERSION} (${DATE})
23159 Source code location: ${srcdir}
23160 Install binaries: ${sbindir}
23161 Install config files: ${sysconfdir}
23162 Scripts directory: ${scriptdir}
23163 Working directory: ${working_dir}
23164 PID directory: ${piddir}
23165 Subsys directory: ${subsysdir}
23166 C Compiler: ${CC} ${CCVERSION}
23167 C++ Compiler: ${CXX} ${CXXVERSION}
23168 Compiler flags: ${WCFLAGS} ${CFLAGS}
23169 Linker flags: ${WLDFLAGS} ${LDFLAGS}
23171 Statically Linked Tools: ${support_static_tools}
23172 Statically Linked FD: ${support_static_fd}
23173 Statically Linked SD: ${support_static_sd}
23174 Statically Linked DIR: ${support_static_dir}
23175 Statically Linked CONS: ${support_static_cons}
23176 Database type: ${db_name}
23177 Database lib: ${DB_LIBS}
23179 Job Output Email: ${job_email}
23180 Traceback Email: ${dump_email}
23181 SMTP Host Address: ${smtp_host}
23183 Director Port: ${dir_port}
23184 File daemon Port: ${fd_port}
23185 Storage daemon Port: ${sd_port}
23187 Director User: ${dir_user}
23188 Director Group: ${dir_group}
23189 Storage Daemon User: ${sd_user}
23190 Storage DaemonGroup: ${sd_group}
23191 File Daemon User: ${fd_user}
23192 File Daemon Group: ${fd_group}
23194 SQL binaries Directory ${SQL_BINDIR}
23196 Large file support: $largefile_support
23197 Bacula conio support: ${got_conio} ${CONS_LIBS}
23198 readline support: ${got_readline} ${PRTREADLINE_SRC}
23199 TCP Wrappers support: ${TCPW_MSG}
23200 ZLIB support: ${have_zlib}
23201 enable-smartalloc: ${support_smartalloc}
23202 enable-gnome: ${support_gnome} ${gnome_version}
23203 enable-wx-console: ${support_wx_console}
23204 enable-tray-monitor: ${support_tray_monitor}
23205 client-only: ${build_client_only}
23206 ACL support: ${have_acl}
23207 Python support: ${support_python} ${PYTHON_LIBS}
23214 # cweb support: ${got_cweb} ${CWEB_SRC}
23215 # gmp support: ${got_gmp} ${GMP_SRC}