2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file="src/version.h"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS BUILD_DIR TRUEPRG FALSEPRG VERSION DATE LSMDATE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB MV RM CP SED ECHO CMP TBL AR OPENSSL MTX MKISOFS PYTHON GROWISOFS DVDRWMEDIAINFO PKGCONFIG WXCONFIG WXFLAGS CDRECORD PIDOF AWK ARFLAGS MAKE_SHELL LOCAL_LIBS LOCAL_CFLAGS LOCAL_LDFLAGS LOCAL_DEFS build build_cpu build_vendor build_os host host_cpu host_vendor host_os HAVE_SUN_OS_TRUE HAVE_SUN_OS_FALSE HAVE_OSF1_OS_TRUE HAVE_OSF1_OS_FALSE HAVE_AIX_OS_TRUE HAVE_AIX_OS_FALSE HAVE_HPUX_OS_TRUE HAVE_HPUX_OS_FALSE HAVE_LINUX_OS_TRUE HAVE_LINUX_OS_FALSE HAVE_FREEBSD_OS_TRUE HAVE_FREEBSD_OS_FALSE HAVE_NETBSD_OS_TRUE HAVE_NETBSD_OS_FALSE HAVE_OPENBSD_OS_TRUE HAVE_OPENBSD_OS_FALSE HAVE_BSDI_OS_TRUE HAVE_BSDI_OS_FALSE HAVE_SGI_OS_TRUE HAVE_SGI_OS_FALSE HAVE_IRIX_OS_TRUE HAVE_IRIX_OS_FALSE HAVE_DARWIN_OS_TRUE HAVE_DARWIN_OS_FALSE INSIDE_GNOME_COMMON_TRUE INSIDE_GNOME_COMMON_FALSE MSGFMT GNOME_INCLUDEDIR GNOMEUI_LIBS GNOME_LIBDIR GNOME_LIBS GNOMEGNORBA_LIBS GTKXMHTML_LIBS ZVT_LIBS GNOME_CONFIG ORBIT_CONFIG ORBIT_IDL HAVE_ORBIT_TRUE HAVE_ORBIT_FALSE ORBIT_CFLAGS ORBIT_LIBS HAVE_GNORBA_TRUE HAVE_GNORBA_FALSE GNORBA_CFLAGS GNORBA_LIBS GNOME_APPLETS_LIBS GNOME_DOCKLETS_LIBS GNOME_CAPPLET_LIBS GNOME_DIR WXCONS_CPPFLAGS WXCONS_LDFLAGS WX_DIR TRAY_MONITOR_CPPFLAGS TRAY_MONITOR_LDFLAGS TRAY_MONITOR_DIR TTOOL_LDFLAGS STATIC_FD STATIC_SD STATIC_DIR STATIC_CONS STATIC_GNOME_CONS STATIC_WX_CONS ALL_DIRS CONS_INC CONS_OBJ CONS_SRC CONS_LIBS CONS_LDFLAGS READLINE_SRC PYTHON_LIBS PYTHON_INCDIR OPENSSL_LIBS OPENSSL_INC working_dir scriptdir dump_email job_email smtp_host piddir subsysdir baseport dir_port fd_port sd_port dir_password fd_password sd_password mon_dir_password mon_fd_password mon_sd_password bimagemgr_cgidir bimagemgr_docdir bimagemgr_binowner bimagemgr_bingroup bimagemgr_dataowner bimagemgr_datagroup dir_user dir_group sd_user sd_group fd_user fd_group SBINPERM SQL_LFLAGS SQL_INCLUDE SQL_BINDIR cats DB_NAME GETCONF ac_ct_GETCONF X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LIBOBJS ALLOCA FDLIBS DEBUG DINCLUDE DLIB DB_LIBS WCFLAGS WLDFLAGS OBJLIST hostname TAPEDRIVE PSCMD WIN32 MACOSX DISTNAME DISTVER LTLIBOBJS'
313 ac_subst_files='MCOMMON'
315 # Initialize some variables set by options.
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name=s,x,x,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
430 -help | --help | --hel | --he | -h)
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 # Obsolete; use --without-fp.
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
560 -site=* | --site=* | --sit=*)
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 -version | --version | --versio | --versi | --vers | -V)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CXX_set=${CXX+set}
770 ac_env_CXX_value=$CXX
771 ac_cv_env_CXX_set=${CXX+set}
772 ac_cv_env_CXX_value=$CXX
773 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
774 ac_env_CXXFLAGS_value=$CXXFLAGS
775 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
776 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
777 ac_env_CPP_set=${CPP+set}
778 ac_env_CPP_value=$CPP
779 ac_cv_env_CPP_set=${CPP+set}
780 ac_cv_env_CPP_value=$CPP
781 ac_env_WXCONFIG_set=${WXCONFIG+set}
782 ac_env_WXCONFIG_value=$WXCONFIG
783 ac_cv_env_WXCONFIG_set=${WXCONFIG+set}
784 ac_cv_env_WXCONFIG_value=$WXCONFIG
785 ac_env_WXFLAGS_set=${WXFLAGS+set}
786 ac_env_WXFLAGS_value=$WXFLAGS
787 ac_cv_env_WXFLAGS_set=${WXFLAGS+set}
788 ac_cv_env_WXFLAGS_value=$WXFLAGS
791 # Report the --help message.
793 if test "$ac_init_help" = "long"; then
794 # Omit some internal or obsolete options to make the list less imposing.
795 # This message is too long to be a string in the A/UX 3.1 sh.
797 \`configure' configures this package to adapt to many kinds of systems.
799 Usage: $0 [OPTION]... [VAR=VALUE]...
801 To assign environment variables (e.g., CC, CFLAGS...), specify them as
802 VAR=VALUE. See below for descriptions of some of the useful variables.
804 Defaults for the options are specified in brackets.
807 -h, --help display this help and exit
808 --help=short display options specific to this package
809 --help=recursive display the short help of all the included packages
810 -V, --version display version information and exit
811 -q, --quiet, --silent do not print \`checking...' messages
812 --cache-file=FILE cache test results in FILE [disabled]
813 -C, --config-cache alias for \`--cache-file=config.cache'
814 -n, --no-create do not create output files
815 --srcdir=DIR find the sources in DIR [configure dir or \`..']
820 Installation directories:
821 --prefix=PREFIX install architecture-independent files in PREFIX
823 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
826 By default, \`make install' will install all the files in
827 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
828 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
829 for instance \`--prefix=\$HOME'.
831 For better control, use the options below.
833 Fine tuning of the installation directories:
834 --bindir=DIR user executables [EPREFIX/bin]
835 --sbindir=DIR system admin executables [EPREFIX/sbin]
836 --libexecdir=DIR program executables [EPREFIX/libexec]
837 --datadir=DIR read-only architecture-independent data [PREFIX/share]
838 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
839 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
840 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
841 --libdir=DIR object code libraries [EPREFIX/lib]
842 --includedir=DIR C header files [PREFIX/include]
843 --oldincludedir=DIR C header files for non-gcc [/usr/include]
844 --infodir=DIR info documentation [PREFIX/info]
845 --mandir=DIR man documentation [PREFIX/man]
851 --x-includes=DIR X include files are in DIR
852 --x-libraries=DIR X library files are in DIR
855 --build=BUILD configure for building on BUILD [guessed]
856 --host=HOST cross-compile to build programs to run on HOST [BUILD]
860 if test -n "$ac_init_help"; then
865 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
866 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
867 --enable-gnome enable build of gnome-console GUI disabled
868 --enable-wx-console enable build of wxWidgets console disabled
869 --enable-tray-monitor enable build of Gnome tray monitor (compatible with KDE) disabled
870 --enable-smartalloc enable smartalloc debugging support disabled
871 --enable-static-tools enable static tape tools disabled
872 --enable-static-fd enable static File daemon disabled
873 --enable-static-sd enable static Storage daemon disabled
874 --enable-static-dir enable static Director disabled
875 --enable-static-cons enable static Console disabled
876 --enable-client-only build client (File daemon) only disabled
877 --disable-conio disable conio support enabled
879 --disable-readline disable readline support disable
881 --disable-largefile omit support for large files
884 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
885 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
886 --with-gnome-includes Specify location of GNOME headers
887 --with-gnome-libs Specify location of GNOME libs
888 --with-gnome Specify prefix for GNOME files
889 --with-readline=DIR specify readline library directory
891 --with-python=DIR Include Python support. DIR is the Python base
892 install directory, default is to search through
893 a number of common places for the Python files.
894 --with-tcp-wrappers=DIR enable tcpwrappers support
896 Include OpenSSL support. DIR is the OpenSSL base
897 --with-working-dir=PATH specify path of Bacula working directory
898 --with-scriptdir=PATH specify path of Bacula scripts directory
899 --with-dump-email=EMAIL dump email address
900 --with-job-email=EMAIL job output email address
901 --with-smtp-host=HOST SMTP mail host address
902 --with-pid-dir=PATH specify location of Bacula pid files
903 --with-subsys-dir=PATH specify location of Bacula subsys file
904 --with-baseport=PORT specify base port address for daemons
905 --with-dir-password=PASSWORD specify Director's password
906 --with-fd-password=PASSWORD specify Client's password
907 --with-sd-password=PASSWORD specify Storage daemon's password
908 --with-mon-dir-password=PASSWORD specify Director's password used by the monitor
909 --with-mon-fd-password=PASSWORD specify Client's password used by the monitor
910 --with-mon-sd-password=PASSWORD specify Storage daemon's password used by the monitor
911 --with-bimagemgr-cgidir=DIR specify bimagemgr cgi-bin dir
912 --with-bimagemgr-docdir=DIR specify bimagemgr doc root dir
913 --with-bimagemgr-binowner=USER specify bimagemgr binary file owner
914 --with-bimagemgr-bingroup=USER specify bimagemgr binary file group
915 --with-bimagemgr-dataowner=USER specify bimagemgr data file owner
916 --with-bimagemgr-datagroup=USER specify bimagemgr data file group
917 --with-dir-user=USER specify user for Director daemon
918 --with-dir-group=GROUP specify group for Director daemon
919 --with-sd-user=USER specify user for Storage daemon
920 --with-sd-group=GROUP specify group for Storage daemon
921 --with-fd-user=USER specify user for File daemon
922 --with-fd-group=GROUP specify group for File daemon
923 --with-sbin-perm=MODE specify permissions for sbin binaries (0754)
924 --with-postgresql=DIR Include PostgreSQL support. DIR is the PostgreSQL
925 base install directory, defaults to /usr/local/pgsql
927 --with-mysql=DIR Include MySQL support. DIR is the MySQL base
928 install directory, default is to search through
929 a number of common places for the MySQL files.
931 --with-embedded-mysql=DIR Include MySQL support. DIR is the MySQL base
932 install directory, default is to search through
933 a number of common places for the MySQL files.
935 --with-sqlite3=DIR Include SQLite3 support. DIR is the SQLite3 base
936 install directory, default is to search through
937 a number of common places for the SQLite3 files.
939 --with-sqlite=DIR Include SQLite support. DIR is the SQLite base
940 install directory, default is to search through
941 a number of common places for the SQLite files.
942 --with-x use the X Window System
944 Some influential environment variables:
945 CC C compiler command
946 CFLAGS C compiler flags
947 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
948 nonstandard directory <lib dir>
949 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
950 headers in a nonstandard directory <include dir>
951 CXX C++ compiler command
952 CXXFLAGS C++ compiler flags
954 WXCONFIG wx-config command. On some systems, you must set it to
955 wx-config-2.6 to use wxWidgets 2.6.
956 WXFLAGS Parameters to pass to wx-config (e.g. --unicode=no).
958 Use these variables to override the choices made by `configure' or to help
959 it to find libraries and programs with nonstandard names/locations.
964 if test "$ac_init_help" = "recursive"; then
965 # If there are subdirs, report their specific --help.
967 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
968 test -d $ac_dir || continue
971 if test "$ac_dir" != .; then
972 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
973 # A "../" for each directory in $ac_dir_suffix.
974 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
976 ac_dir_suffix= ac_top_builddir=
980 .) # No --srcdir option. We are building in place.
982 if test -z "$ac_top_builddir"; then
985 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
987 [\\/]* | ?:[\\/]* ) # Absolute path.
988 ac_srcdir=$srcdir$ac_dir_suffix;
989 ac_top_srcdir=$srcdir ;;
991 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
992 ac_top_srcdir=$ac_top_builddir$srcdir ;;
995 # Do not use `cd foo && pwd` to compute absolute paths, because
996 # the directories may not exist.
998 .) ac_abs_builddir="$ac_dir";;
1001 .) ac_abs_builddir=`pwd`;;
1002 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1003 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1006 case $ac_abs_builddir in
1007 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1009 case ${ac_top_builddir}. in
1010 .) ac_abs_top_builddir=$ac_abs_builddir;;
1011 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1012 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1015 case $ac_abs_builddir in
1016 .) ac_abs_srcdir=$ac_srcdir;;
1019 .) ac_abs_srcdir=$ac_abs_builddir;;
1020 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1021 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1024 case $ac_abs_builddir in
1025 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1027 case $ac_top_srcdir in
1028 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1029 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1030 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1035 # Check for guested configure; otherwise get Cygnus style configure.
1036 if test -f $ac_srcdir/configure.gnu; then
1038 $SHELL $ac_srcdir/configure.gnu --help=recursive
1039 elif test -f $ac_srcdir/configure; then
1041 $SHELL $ac_srcdir/configure --help=recursive
1042 elif test -f $ac_srcdir/configure.ac ||
1043 test -f $ac_srcdir/configure.in; then
1045 $ac_configure --help
1047 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1053 test -n "$ac_init_help" && exit 0
1054 if $ac_init_version; then
1057 Copyright (C) 2003 Free Software Foundation, Inc.
1058 This configure script is free software; the Free Software Foundation
1059 gives unlimited permission to copy, distribute and modify it.
1065 This file contains any messages produced by compilers while
1066 running configure, to aid debugging if configure makes a mistake.
1068 It was created by $as_me, which was
1069 generated by GNU Autoconf 2.59. Invocation command line was
1080 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1081 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1082 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1083 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1084 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1086 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1087 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1089 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1090 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1091 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1092 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1093 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1094 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1095 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1103 test -z "$as_dir" && as_dir=.
1104 echo "PATH: $as_dir"
1119 # Keep a trace of the command line.
1120 # Strip out --no-create and --no-recursion so they do not pile up.
1121 # Strip out --silent because we don't want to record it for future runs.
1122 # Also quote any args containing shell meta-characters.
1123 # Make two passes to allow for proper duplicate-argument suppression.
1128 ac_must_keep_next=false
1134 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1135 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1136 | -silent | --silent | --silen | --sile | --sil)
1138 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1139 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1142 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1144 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1145 if test $ac_must_keep_next = true; then
1146 ac_must_keep_next=false # Got value, back to normal.
1149 *=* | --config-cache | -C | -disable-* | --disable-* \
1150 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1151 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1152 | -with-* | --with-* | -without-* | --without-* | --x)
1153 case "$ac_configure_args0 " in
1154 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1157 -* ) ac_must_keep_next=true ;;
1160 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1161 # Get rid of the leading space.
1167 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1168 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1170 # When interrupted or exit'd, cleanup temporary files, and complete
1171 # config.log. We remove comments because anyway the quotes in there
1172 # would cause problems or look ugly.
1173 # WARNING: Be sure not to use single quotes in there, as some shells,
1174 # such as our DU 5.0 friend, will then `close' the trap.
1175 trap 'exit_status=$?
1176 # Save into config.log some information that might help in debugging.
1181 ## ---------------- ##
1182 ## Cache variables. ##
1183 ## ---------------- ##
1186 # The following way of writing the cache mishandles newlines in values,
1189 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1192 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1193 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1197 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1204 ## ----------------- ##
1205 ## Output variables. ##
1206 ## ----------------- ##
1209 for ac_var in $ac_subst_vars
1211 eval ac_val=$`echo $ac_var`
1212 echo "$ac_var='"'"'$ac_val'"'"'"
1216 if test -n "$ac_subst_files"; then
1223 for ac_var in $ac_subst_files
1225 eval ac_val=$`echo $ac_var`
1226 echo "$ac_var='"'"'$ac_val'"'"'"
1231 if test -s confdefs.h; then
1238 sed "/^$/d" confdefs.h | sort
1241 test "$ac_signal" != 0 &&
1242 echo "$as_me: caught signal $ac_signal"
1243 echo "$as_me: exit $exit_status"
1245 rm -f core *.core &&
1246 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1249 for ac_signal in 1 2 13 15; do
1250 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1254 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1255 rm -rf conftest* confdefs.h
1256 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1259 # Predefined preprocessor variables.
1261 cat >>confdefs.h <<_ACEOF
1262 #define PACKAGE_NAME "$PACKAGE_NAME"
1266 cat >>confdefs.h <<_ACEOF
1267 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1271 cat >>confdefs.h <<_ACEOF
1272 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1276 cat >>confdefs.h <<_ACEOF
1277 #define PACKAGE_STRING "$PACKAGE_STRING"
1281 cat >>confdefs.h <<_ACEOF
1282 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1286 # Let the site file select an alternate cache file if it wants to.
1287 # Prefer explicitly selected file to automatically selected ones.
1288 if test -z "$CONFIG_SITE"; then
1289 if test "x$prefix" != xNONE; then
1290 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1292 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1295 for ac_site_file in $CONFIG_SITE; do
1296 if test -r "$ac_site_file"; then
1297 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1298 echo "$as_me: loading site script $ac_site_file" >&6;}
1299 sed 's/^/| /' "$ac_site_file" >&5
1304 if test -r "$cache_file"; then
1305 # Some versions of bash will fail to source /dev/null (special
1306 # files actually), so we avoid doing that.
1307 if test -f "$cache_file"; then
1308 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1309 echo "$as_me: loading cache $cache_file" >&6;}
1311 [\\/]* | ?:[\\/]* ) . $cache_file;;
1312 *) . ./$cache_file;;
1316 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1317 echo "$as_me: creating cache $cache_file" >&6;}
1321 # Check that the precious variables saved in the cache have kept the same
1323 ac_cache_corrupted=false
1324 for ac_var in `(set) 2>&1 |
1325 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1326 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1327 eval ac_new_set=\$ac_env_${ac_var}_set
1328 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1329 eval ac_new_val="\$ac_env_${ac_var}_value"
1330 case $ac_old_set,$ac_new_set in
1332 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1333 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1334 ac_cache_corrupted=: ;;
1336 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1337 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1338 ac_cache_corrupted=: ;;
1341 if test "x$ac_old_val" != "x$ac_new_val"; then
1342 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1343 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1344 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1345 echo "$as_me: former value: $ac_old_val" >&2;}
1346 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1347 echo "$as_me: current value: $ac_new_val" >&2;}
1348 ac_cache_corrupted=:
1351 # Pass precious variables to config.status.
1352 if test "$ac_new_set" = set; then
1354 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1355 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1356 *) ac_arg=$ac_var=$ac_new_val ;;
1358 case " $ac_configure_args " in
1359 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1360 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1364 if $ac_cache_corrupted; then
1365 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1366 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1367 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1368 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1369 { (exit 1); exit 1; }; }
1373 ac_cpp='$CPP $CPPFLAGS'
1374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1402 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1403 if test -f $ac_dir/install-sh; then
1405 ac_install_sh="$ac_aux_dir/install-sh -c"
1407 elif test -f $ac_dir/install.sh; then
1409 ac_install_sh="$ac_aux_dir/install.sh -c"
1411 elif test -f $ac_dir/shtool; then
1413 ac_install_sh="$ac_aux_dir/shtool install -c"
1417 if test -z "$ac_aux_dir"; then
1418 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1419 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1420 { (exit 1); exit 1; }; }
1422 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1423 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1424 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1426 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1434 # Extract the first word of "$ac_prog", so it can be a program name with args.
1435 set dummy $ac_prog; ac_word=$2
1436 echo "$as_me:$LINENO: checking for $ac_word" >&5
1437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1438 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1439 echo $ECHO_N "(cached) $ECHO_C" >&6
1443 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1450 test -z "$as_dir" && as_dir=.
1451 for ac_exec_ext in '' $ac_executable_extensions; do
1452 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1453 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1463 TRUEPRG=$ac_cv_path_TRUEPRG
1465 if test -n "$TRUEPRG"; then
1466 echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1467 echo "${ECHO_T}$TRUEPRG" >&6
1469 echo "$as_me:$LINENO: result: no" >&5
1470 echo "${ECHO_T}no" >&6
1473 test -n "$TRUEPRG" && break
1475 test -n "$TRUEPRG" || TRUEPRG=":"
1477 for ac_prog in false
1479 # Extract the first word of "$ac_prog", so it can be a program name with args.
1480 set dummy $ac_prog; ac_word=$2
1481 echo "$as_me:$LINENO: checking for $ac_word" >&5
1482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1483 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1484 echo $ECHO_N "(cached) $ECHO_C" >&6
1488 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1495 test -z "$as_dir" && as_dir=.
1496 for ac_exec_ext in '' $ac_executable_extensions; do
1497 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1498 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1508 FALSEPRG=$ac_cv_path_FALSEPRG
1510 if test -n "$FALSEPRG"; then
1511 echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1512 echo "${ECHO_T}$FALSEPRG" >&6
1514 echo "$as_me:$LINENO: result: no" >&5
1515 echo "${ECHO_T}no" >&6
1518 test -n "$FALSEPRG" && break
1520 test -n "$FALSEPRG" || FALSEPRG=":"
1525 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1526 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1527 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1528 echo "configuring for bacula $VERSION ($DATE)"
1533 ac_cpp='$CPP $CPPFLAGS'
1534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1537 if test -n "$ac_tool_prefix"; then
1538 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1539 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1540 echo "$as_me:$LINENO: checking for $ac_word" >&5
1541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1542 if test "${ac_cv_prog_CC+set}" = set; then
1543 echo $ECHO_N "(cached) $ECHO_C" >&6
1545 if test -n "$CC"; then
1546 ac_cv_prog_CC="$CC" # Let the user override the test.
1548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1552 test -z "$as_dir" && as_dir=.
1553 for ac_exec_ext in '' $ac_executable_extensions; do
1554 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1555 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1565 if test -n "$CC"; then
1566 echo "$as_me:$LINENO: result: $CC" >&5
1567 echo "${ECHO_T}$CC" >&6
1569 echo "$as_me:$LINENO: result: no" >&5
1570 echo "${ECHO_T}no" >&6
1574 if test -z "$ac_cv_prog_CC"; then
1576 # Extract the first word of "gcc", so it can be a program name with args.
1577 set dummy gcc; ac_word=$2
1578 echo "$as_me:$LINENO: checking for $ac_word" >&5
1579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1580 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1581 echo $ECHO_N "(cached) $ECHO_C" >&6
1583 if test -n "$ac_ct_CC"; then
1584 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1590 test -z "$as_dir" && as_dir=.
1591 for ac_exec_ext in '' $ac_executable_extensions; do
1592 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1593 ac_cv_prog_ac_ct_CC="gcc"
1594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1602 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1603 if test -n "$ac_ct_CC"; then
1604 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1605 echo "${ECHO_T}$ac_ct_CC" >&6
1607 echo "$as_me:$LINENO: result: no" >&5
1608 echo "${ECHO_T}no" >&6
1616 if test -z "$CC"; then
1617 if test -n "$ac_tool_prefix"; then
1618 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1619 set dummy ${ac_tool_prefix}cc; ac_word=$2
1620 echo "$as_me:$LINENO: checking for $ac_word" >&5
1621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1622 if test "${ac_cv_prog_CC+set}" = set; then
1623 echo $ECHO_N "(cached) $ECHO_C" >&6
1625 if test -n "$CC"; then
1626 ac_cv_prog_CC="$CC" # Let the user override the test.
1628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1632 test -z "$as_dir" && as_dir=.
1633 for ac_exec_ext in '' $ac_executable_extensions; do
1634 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1635 ac_cv_prog_CC="${ac_tool_prefix}cc"
1636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1645 if test -n "$CC"; then
1646 echo "$as_me:$LINENO: result: $CC" >&5
1647 echo "${ECHO_T}$CC" >&6
1649 echo "$as_me:$LINENO: result: no" >&5
1650 echo "${ECHO_T}no" >&6
1654 if test -z "$ac_cv_prog_CC"; then
1656 # Extract the first word of "cc", so it can be a program name with args.
1657 set dummy cc; ac_word=$2
1658 echo "$as_me:$LINENO: checking for $ac_word" >&5
1659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1660 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1661 echo $ECHO_N "(cached) $ECHO_C" >&6
1663 if test -n "$ac_ct_CC"; then
1664 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1670 test -z "$as_dir" && as_dir=.
1671 for ac_exec_ext in '' $ac_executable_extensions; do
1672 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1673 ac_cv_prog_ac_ct_CC="cc"
1674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1682 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1683 if test -n "$ac_ct_CC"; then
1684 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1685 echo "${ECHO_T}$ac_ct_CC" >&6
1687 echo "$as_me:$LINENO: result: no" >&5
1688 echo "${ECHO_T}no" >&6
1697 if test -z "$CC"; then
1698 # Extract the first word of "cc", so it can be a program name with args.
1699 set dummy cc; ac_word=$2
1700 echo "$as_me:$LINENO: checking for $ac_word" >&5
1701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1702 if test "${ac_cv_prog_CC+set}" = set; then
1703 echo $ECHO_N "(cached) $ECHO_C" >&6
1705 if test -n "$CC"; then
1706 ac_cv_prog_CC="$CC" # Let the user override the test.
1709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1713 test -z "$as_dir" && as_dir=.
1714 for ac_exec_ext in '' $ac_executable_extensions; do
1715 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1716 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1717 ac_prog_rejected=yes
1721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1727 if test $ac_prog_rejected = yes; then
1728 # We found a bogon in the path, so make sure we never use it.
1729 set dummy $ac_cv_prog_CC
1731 if test $# != 0; then
1732 # We chose a different compiler from the bogus one.
1733 # However, it has the same basename, so the bogon will be chosen
1734 # first if we set CC to just the basename; use the full file name.
1736 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1742 if test -n "$CC"; then
1743 echo "$as_me:$LINENO: result: $CC" >&5
1744 echo "${ECHO_T}$CC" >&6
1746 echo "$as_me:$LINENO: result: no" >&5
1747 echo "${ECHO_T}no" >&6
1751 if test -z "$CC"; then
1752 if test -n "$ac_tool_prefix"; then
1755 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1756 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1757 echo "$as_me:$LINENO: checking for $ac_word" >&5
1758 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1759 if test "${ac_cv_prog_CC+set}" = set; then
1760 echo $ECHO_N "(cached) $ECHO_C" >&6
1762 if test -n "$CC"; then
1763 ac_cv_prog_CC="$CC" # Let the user override the test.
1765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1769 test -z "$as_dir" && as_dir=.
1770 for ac_exec_ext in '' $ac_executable_extensions; do
1771 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1772 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1782 if test -n "$CC"; then
1783 echo "$as_me:$LINENO: result: $CC" >&5
1784 echo "${ECHO_T}$CC" >&6
1786 echo "$as_me:$LINENO: result: no" >&5
1787 echo "${ECHO_T}no" >&6
1790 test -n "$CC" && break
1793 if test -z "$CC"; then
1797 # Extract the first word of "$ac_prog", so it can be a program name with args.
1798 set dummy $ac_prog; ac_word=$2
1799 echo "$as_me:$LINENO: checking for $ac_word" >&5
1800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1801 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1802 echo $ECHO_N "(cached) $ECHO_C" >&6
1804 if test -n "$ac_ct_CC"; then
1805 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1811 test -z "$as_dir" && as_dir=.
1812 for ac_exec_ext in '' $ac_executable_extensions; do
1813 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1814 ac_cv_prog_ac_ct_CC="$ac_prog"
1815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1823 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1824 if test -n "$ac_ct_CC"; then
1825 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1826 echo "${ECHO_T}$ac_ct_CC" >&6
1828 echo "$as_me:$LINENO: result: no" >&5
1829 echo "${ECHO_T}no" >&6
1832 test -n "$ac_ct_CC" && break
1841 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1842 See \`config.log' for more details." >&5
1843 echo "$as_me: error: no acceptable C compiler found in \$PATH
1844 See \`config.log' for more details." >&2;}
1845 { (exit 1); exit 1; }; }
1847 # Provide some information about the compiler.
1848 echo "$as_me:$LINENO:" \
1849 "checking for C compiler version" >&5
1850 ac_compiler=`set X $ac_compile; echo $2`
1851 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1852 (eval $ac_compiler --version </dev/null >&5) 2>&5
1854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1855 (exit $ac_status); }
1856 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1857 (eval $ac_compiler -v </dev/null >&5) 2>&5
1859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1860 (exit $ac_status); }
1861 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1862 (eval $ac_compiler -V </dev/null >&5) 2>&5
1864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1865 (exit $ac_status); }
1867 cat >conftest.$ac_ext <<_ACEOF
1870 cat confdefs.h >>conftest.$ac_ext
1871 cat >>conftest.$ac_ext <<_ACEOF
1872 /* end confdefs.h. */
1882 ac_clean_files_save=$ac_clean_files
1883 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1884 # Try to create an executable without -o first, disregard a.out.
1885 # It will help us diagnose broken compilers, and finding out an intuition
1887 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1888 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1889 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1890 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1891 (eval $ac_link_default) 2>&5
1893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1894 (exit $ac_status); }; then
1895 # Find the output, starting from the most likely. This scheme is
1896 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1899 # Be careful to initialize this variable, since it used to be cached.
1900 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1902 # b.out is created by i960 compilers.
1903 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1905 test -f "$ac_file" || continue
1907 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1910 # This is the source file.
1913 # We found the default executable, but exeext='' is most
1917 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1918 # FIXME: I believe we export ac_cv_exeext for Libtool,
1919 # but it would be cool to find out if it's true. Does anybody
1920 # maintain Libtool? --akim.
1928 echo "$as_me: failed program was:" >&5
1929 sed 's/^/| /' conftest.$ac_ext >&5
1931 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1932 See \`config.log' for more details." >&5
1933 echo "$as_me: error: C compiler cannot create executables
1934 See \`config.log' for more details." >&2;}
1935 { (exit 77); exit 77; }; }
1938 ac_exeext=$ac_cv_exeext
1939 echo "$as_me:$LINENO: result: $ac_file" >&5
1940 echo "${ECHO_T}$ac_file" >&6
1942 # Check the compiler produces executables we can run. If not, either
1943 # the compiler is broken, or we cross compile.
1944 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1945 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1946 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1947 # If not cross compiling, check that we can run a simple program.
1948 if test "$cross_compiling" != yes; then
1949 if { ac_try='./$ac_file'
1950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1954 (exit $ac_status); }; }; then
1957 if test "$cross_compiling" = maybe; then
1960 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1961 If you meant to cross compile, use \`--host'.
1962 See \`config.log' for more details." >&5
1963 echo "$as_me: error: cannot run C compiled programs.
1964 If you meant to cross compile, use \`--host'.
1965 See \`config.log' for more details." >&2;}
1966 { (exit 1); exit 1; }; }
1970 echo "$as_me:$LINENO: result: yes" >&5
1971 echo "${ECHO_T}yes" >&6
1973 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1974 ac_clean_files=$ac_clean_files_save
1975 # Check the compiler produces executables we can run. If not, either
1976 # the compiler is broken, or we cross compile.
1977 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1978 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1979 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1980 echo "${ECHO_T}$cross_compiling" >&6
1982 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1983 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1985 (eval $ac_link) 2>&5
1987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1988 (exit $ac_status); }; then
1989 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1990 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1991 # work properly (i.e., refer to `conftest.exe'), while it won't with
1993 for ac_file in conftest.exe conftest conftest.*; do
1994 test -f "$ac_file" || continue
1996 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1997 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2004 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2005 See \`config.log' for more details." >&5
2006 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2007 See \`config.log' for more details." >&2;}
2008 { (exit 1); exit 1; }; }
2011 rm -f conftest$ac_cv_exeext
2012 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2013 echo "${ECHO_T}$ac_cv_exeext" >&6
2015 rm -f conftest.$ac_ext
2016 EXEEXT=$ac_cv_exeext
2018 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2019 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2020 if test "${ac_cv_objext+set}" = set; then
2021 echo $ECHO_N "(cached) $ECHO_C" >&6
2023 cat >conftest.$ac_ext <<_ACEOF
2026 cat confdefs.h >>conftest.$ac_ext
2027 cat >>conftest.$ac_ext <<_ACEOF
2028 /* end confdefs.h. */
2038 rm -f conftest.o conftest.obj
2039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2040 (eval $ac_compile) 2>&5
2042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2043 (exit $ac_status); }; then
2044 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2046 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2047 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2052 echo "$as_me: failed program was:" >&5
2053 sed 's/^/| /' conftest.$ac_ext >&5
2055 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2056 See \`config.log' for more details." >&5
2057 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2058 See \`config.log' for more details." >&2;}
2059 { (exit 1); exit 1; }; }
2062 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2064 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2065 echo "${ECHO_T}$ac_cv_objext" >&6
2066 OBJEXT=$ac_cv_objext
2068 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2069 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2070 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2071 echo $ECHO_N "(cached) $ECHO_C" >&6
2073 cat >conftest.$ac_ext <<_ACEOF
2076 cat confdefs.h >>conftest.$ac_ext
2077 cat >>conftest.$ac_ext <<_ACEOF
2078 /* end confdefs.h. */
2091 rm -f conftest.$ac_objext
2092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2093 (eval $ac_compile) 2>conftest.er1
2095 grep -v '^ *+' conftest.er1 >conftest.err
2097 cat conftest.err >&5
2098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099 (exit $ac_status); } &&
2100 { ac_try='test -z "$ac_c_werror_flag"
2101 || test ! -s conftest.err'
2102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2106 (exit $ac_status); }; } &&
2107 { ac_try='test -s conftest.$ac_objext'
2108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2112 (exit $ac_status); }; }; then
2115 echo "$as_me: failed program was:" >&5
2116 sed 's/^/| /' conftest.$ac_ext >&5
2120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2121 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2124 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2125 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2126 GCC=`test $ac_compiler_gnu = yes && echo yes`
2127 ac_test_CFLAGS=${CFLAGS+set}
2128 ac_save_CFLAGS=$CFLAGS
2130 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2131 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2132 if test "${ac_cv_prog_cc_g+set}" = set; then
2133 echo $ECHO_N "(cached) $ECHO_C" >&6
2135 cat >conftest.$ac_ext <<_ACEOF
2138 cat confdefs.h >>conftest.$ac_ext
2139 cat >>conftest.$ac_ext <<_ACEOF
2140 /* end confdefs.h. */
2150 rm -f conftest.$ac_objext
2151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2152 (eval $ac_compile) 2>conftest.er1
2154 grep -v '^ *+' conftest.er1 >conftest.err
2156 cat conftest.err >&5
2157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158 (exit $ac_status); } &&
2159 { ac_try='test -z "$ac_c_werror_flag"
2160 || test ! -s conftest.err'
2161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2165 (exit $ac_status); }; } &&
2166 { ac_try='test -s conftest.$ac_objext'
2167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2171 (exit $ac_status); }; }; then
2174 echo "$as_me: failed program was:" >&5
2175 sed 's/^/| /' conftest.$ac_ext >&5
2179 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2181 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2182 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2183 if test "$ac_test_CFLAGS" = set; then
2184 CFLAGS=$ac_save_CFLAGS
2185 elif test $ac_cv_prog_cc_g = yes; then
2186 if test "$GCC" = yes; then
2192 if test "$GCC" = yes; then
2198 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2199 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2200 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2201 echo $ECHO_N "(cached) $ECHO_C" >&6
2203 ac_cv_prog_cc_stdc=no
2205 cat >conftest.$ac_ext <<_ACEOF
2208 cat confdefs.h >>conftest.$ac_ext
2209 cat >>conftest.$ac_ext <<_ACEOF
2210 /* end confdefs.h. */
2213 #include <sys/types.h>
2214 #include <sys/stat.h>
2215 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2216 struct buf { int x; };
2217 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2218 static char *e (p, i)
2224 static char *f (char * (*g) (char **, int), char **p, ...)
2229 s = g (p, va_arg (v,int));
2234 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2235 function prototypes and stuff, but not '\xHH' hex character constants.
2236 These don't provoke an error unfortunately, instead are silently treated
2237 as 'x'. The following induces an error, until -std1 is added to get
2238 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2239 array size at least. It's necessary to write '\x00'==0 to get something
2240 that's true only with -std1. */
2241 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2243 int test (int i, double x);
2244 struct s1 {int (*f) (int a);};
2245 struct s2 {int (*f) (double a);};
2246 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2252 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2257 # Don't try gcc -ansi; that turns off useful extensions and
2258 # breaks some systems' header files.
2259 # AIX -qlanglvl=ansi
2260 # Ultrix and OSF/1 -std1
2261 # HP-UX 10.20 and later -Ae
2262 # HP-UX older versions -Aa -D_HPUX_SOURCE
2263 # SVR4 -Xc -D__EXTENSIONS__
2264 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2266 CC="$ac_save_CC $ac_arg"
2267 rm -f conftest.$ac_objext
2268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2269 (eval $ac_compile) 2>conftest.er1
2271 grep -v '^ *+' conftest.er1 >conftest.err
2273 cat conftest.err >&5
2274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2275 (exit $ac_status); } &&
2276 { ac_try='test -z "$ac_c_werror_flag"
2277 || test ! -s conftest.err'
2278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282 (exit $ac_status); }; } &&
2283 { ac_try='test -s conftest.$ac_objext'
2284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2288 (exit $ac_status); }; }; then
2289 ac_cv_prog_cc_stdc=$ac_arg
2292 echo "$as_me: failed program was:" >&5
2293 sed 's/^/| /' conftest.$ac_ext >&5
2296 rm -f conftest.err conftest.$ac_objext
2298 rm -f conftest.$ac_ext conftest.$ac_objext
2303 case "x$ac_cv_prog_cc_stdc" in
2305 echo "$as_me:$LINENO: result: none needed" >&5
2306 echo "${ECHO_T}none needed" >&6 ;;
2308 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2309 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2310 CC="$CC $ac_cv_prog_cc_stdc" ;;
2313 # Some people use a C++ compiler to compile C. Since we use `exit',
2314 # in C++ we need to declare it. In case someone uses the same compiler
2315 # for both compiling C and C++ we need to have the C++ compiler decide
2316 # the declaration of exit, since it's the most demanding environment.
2317 cat >conftest.$ac_ext <<_ACEOF
2322 rm -f conftest.$ac_objext
2323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2324 (eval $ac_compile) 2>conftest.er1
2326 grep -v '^ *+' conftest.er1 >conftest.err
2328 cat conftest.err >&5
2329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330 (exit $ac_status); } &&
2331 { ac_try='test -z "$ac_c_werror_flag"
2332 || test ! -s conftest.err'
2333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337 (exit $ac_status); }; } &&
2338 { ac_try='test -s conftest.$ac_objext'
2339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2343 (exit $ac_status); }; }; then
2344 for ac_declaration in \
2346 'extern "C" void std::exit (int) throw (); using std::exit;' \
2347 'extern "C" void std::exit (int); using std::exit;' \
2348 'extern "C" void exit (int) throw ();' \
2349 'extern "C" void exit (int);' \
2352 cat >conftest.$ac_ext <<_ACEOF
2355 cat confdefs.h >>conftest.$ac_ext
2356 cat >>conftest.$ac_ext <<_ACEOF
2357 /* end confdefs.h. */
2368 rm -f conftest.$ac_objext
2369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2370 (eval $ac_compile) 2>conftest.er1
2372 grep -v '^ *+' conftest.er1 >conftest.err
2374 cat conftest.err >&5
2375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376 (exit $ac_status); } &&
2377 { ac_try='test -z "$ac_c_werror_flag"
2378 || test ! -s conftest.err'
2379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2383 (exit $ac_status); }; } &&
2384 { ac_try='test -s conftest.$ac_objext'
2385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389 (exit $ac_status); }; }; then
2392 echo "$as_me: failed program was:" >&5
2393 sed 's/^/| /' conftest.$ac_ext >&5
2397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2398 cat >conftest.$ac_ext <<_ACEOF
2401 cat confdefs.h >>conftest.$ac_ext
2402 cat >>conftest.$ac_ext <<_ACEOF
2403 /* end confdefs.h. */
2413 rm -f conftest.$ac_objext
2414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2415 (eval $ac_compile) 2>conftest.er1
2417 grep -v '^ *+' conftest.er1 >conftest.err
2419 cat conftest.err >&5
2420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421 (exit $ac_status); } &&
2422 { ac_try='test -z "$ac_c_werror_flag"
2423 || test ! -s conftest.err'
2424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428 (exit $ac_status); }; } &&
2429 { ac_try='test -s conftest.$ac_objext'
2430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434 (exit $ac_status); }; }; then
2437 echo "$as_me: failed program was:" >&5
2438 sed 's/^/| /' conftest.$ac_ext >&5
2441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2444 if test -n "$ac_declaration"; then
2445 echo '#ifdef __cplusplus' >>confdefs.h
2446 echo $ac_declaration >>confdefs.h
2447 echo '#endif' >>confdefs.h
2451 echo "$as_me: failed program was:" >&5
2452 sed 's/^/| /' conftest.$ac_ext >&5
2455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2457 ac_cpp='$CPP $CPPFLAGS'
2458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2463 ac_cpp='$CXXCPP $CPPFLAGS'
2464 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2465 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2466 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2467 if test -n "$ac_tool_prefix"; then
2468 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2470 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2471 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2472 echo "$as_me:$LINENO: checking for $ac_word" >&5
2473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2474 if test "${ac_cv_prog_CXX+set}" = set; then
2475 echo $ECHO_N "(cached) $ECHO_C" >&6
2477 if test -n "$CXX"; then
2478 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2484 test -z "$as_dir" && as_dir=.
2485 for ac_exec_ext in '' $ac_executable_extensions; do
2486 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2487 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2497 if test -n "$CXX"; then
2498 echo "$as_me:$LINENO: result: $CXX" >&5
2499 echo "${ECHO_T}$CXX" >&6
2501 echo "$as_me:$LINENO: result: no" >&5
2502 echo "${ECHO_T}no" >&6
2505 test -n "$CXX" && break
2508 if test -z "$CXX"; then
2510 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2512 # Extract the first word of "$ac_prog", so it can be a program name with args.
2513 set dummy $ac_prog; ac_word=$2
2514 echo "$as_me:$LINENO: checking for $ac_word" >&5
2515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2516 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2517 echo $ECHO_N "(cached) $ECHO_C" >&6
2519 if test -n "$ac_ct_CXX"; then
2520 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2526 test -z "$as_dir" && as_dir=.
2527 for ac_exec_ext in '' $ac_executable_extensions; do
2528 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2529 ac_cv_prog_ac_ct_CXX="$ac_prog"
2530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2538 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2539 if test -n "$ac_ct_CXX"; then
2540 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2541 echo "${ECHO_T}$ac_ct_CXX" >&6
2543 echo "$as_me:$LINENO: result: no" >&5
2544 echo "${ECHO_T}no" >&6
2547 test -n "$ac_ct_CXX" && break
2549 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2555 # Provide some information about the compiler.
2556 echo "$as_me:$LINENO:" \
2557 "checking for C++ compiler version" >&5
2558 ac_compiler=`set X $ac_compile; echo $2`
2559 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2560 (eval $ac_compiler --version </dev/null >&5) 2>&5
2562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563 (exit $ac_status); }
2564 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2565 (eval $ac_compiler -v </dev/null >&5) 2>&5
2567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568 (exit $ac_status); }
2569 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2570 (eval $ac_compiler -V </dev/null >&5) 2>&5
2572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573 (exit $ac_status); }
2575 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2576 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2577 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2578 echo $ECHO_N "(cached) $ECHO_C" >&6
2580 cat >conftest.$ac_ext <<_ACEOF
2583 cat confdefs.h >>conftest.$ac_ext
2584 cat >>conftest.$ac_ext <<_ACEOF
2585 /* end confdefs.h. */
2598 rm -f conftest.$ac_objext
2599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2600 (eval $ac_compile) 2>conftest.er1
2602 grep -v '^ *+' conftest.er1 >conftest.err
2604 cat conftest.err >&5
2605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606 (exit $ac_status); } &&
2607 { ac_try='test -z "$ac_cxx_werror_flag"
2608 || test ! -s conftest.err'
2609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613 (exit $ac_status); }; } &&
2614 { ac_try='test -s conftest.$ac_objext'
2615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619 (exit $ac_status); }; }; then
2622 echo "$as_me: failed program was:" >&5
2623 sed 's/^/| /' conftest.$ac_ext >&5
2627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2628 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2631 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2632 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2633 GXX=`test $ac_compiler_gnu = yes && echo yes`
2634 ac_test_CXXFLAGS=${CXXFLAGS+set}
2635 ac_save_CXXFLAGS=$CXXFLAGS
2637 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2638 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2639 if test "${ac_cv_prog_cxx_g+set}" = set; then
2640 echo $ECHO_N "(cached) $ECHO_C" >&6
2642 cat >conftest.$ac_ext <<_ACEOF
2645 cat confdefs.h >>conftest.$ac_ext
2646 cat >>conftest.$ac_ext <<_ACEOF
2647 /* end confdefs.h. */
2657 rm -f conftest.$ac_objext
2658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2659 (eval $ac_compile) 2>conftest.er1
2661 grep -v '^ *+' conftest.er1 >conftest.err
2663 cat conftest.err >&5
2664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665 (exit $ac_status); } &&
2666 { ac_try='test -z "$ac_cxx_werror_flag"
2667 || test ! -s conftest.err'
2668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672 (exit $ac_status); }; } &&
2673 { ac_try='test -s conftest.$ac_objext'
2674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678 (exit $ac_status); }; }; then
2679 ac_cv_prog_cxx_g=yes
2681 echo "$as_me: failed program was:" >&5
2682 sed 's/^/| /' conftest.$ac_ext >&5
2686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2688 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2689 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2690 if test "$ac_test_CXXFLAGS" = set; then
2691 CXXFLAGS=$ac_save_CXXFLAGS
2692 elif test $ac_cv_prog_cxx_g = yes; then
2693 if test "$GXX" = yes; then
2699 if test "$GXX" = yes; then
2705 for ac_declaration in \
2707 'extern "C" void std::exit (int) throw (); using std::exit;' \
2708 'extern "C" void std::exit (int); using std::exit;' \
2709 'extern "C" void exit (int) throw ();' \
2710 'extern "C" void exit (int);' \
2713 cat >conftest.$ac_ext <<_ACEOF
2716 cat confdefs.h >>conftest.$ac_ext
2717 cat >>conftest.$ac_ext <<_ACEOF
2718 /* end confdefs.h. */
2729 rm -f conftest.$ac_objext
2730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2731 (eval $ac_compile) 2>conftest.er1
2733 grep -v '^ *+' conftest.er1 >conftest.err
2735 cat conftest.err >&5
2736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737 (exit $ac_status); } &&
2738 { ac_try='test -z "$ac_cxx_werror_flag"
2739 || test ! -s conftest.err'
2740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744 (exit $ac_status); }; } &&
2745 { ac_try='test -s conftest.$ac_objext'
2746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750 (exit $ac_status); }; }; then
2753 echo "$as_me: failed program was:" >&5
2754 sed 's/^/| /' conftest.$ac_ext >&5
2758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2759 cat >conftest.$ac_ext <<_ACEOF
2762 cat confdefs.h >>conftest.$ac_ext
2763 cat >>conftest.$ac_ext <<_ACEOF
2764 /* end confdefs.h. */
2774 rm -f conftest.$ac_objext
2775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2776 (eval $ac_compile) 2>conftest.er1
2778 grep -v '^ *+' conftest.er1 >conftest.err
2780 cat conftest.err >&5
2781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782 (exit $ac_status); } &&
2783 { ac_try='test -z "$ac_cxx_werror_flag"
2784 || test ! -s conftest.err'
2785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789 (exit $ac_status); }; } &&
2790 { ac_try='test -s conftest.$ac_objext'
2791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795 (exit $ac_status); }; }; then
2798 echo "$as_me: failed program was:" >&5
2799 sed 's/^/| /' conftest.$ac_ext >&5
2802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2805 if test -n "$ac_declaration"; then
2806 echo '#ifdef __cplusplus' >>confdefs.h
2807 echo $ac_declaration >>confdefs.h
2808 echo '#endif' >>confdefs.h
2812 ac_cpp='$CPP $CPPFLAGS'
2813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2817 if test "x$CC" != xcc; then
2818 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2819 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2821 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2822 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2824 set dummy $CC; ac_cc=`echo $2 |
2825 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2826 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2827 echo $ECHO_N "(cached) $ECHO_C" >&6
2829 cat >conftest.$ac_ext <<_ACEOF
2832 cat confdefs.h >>conftest.$ac_ext
2833 cat >>conftest.$ac_ext <<_ACEOF
2834 /* end confdefs.h. */
2844 # Make sure it works both with $CC and with simple cc.
2845 # We do the test twice because some compilers refuse to overwrite an
2846 # existing .o file with -o, though they will create one.
2847 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2848 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852 (exit $ac_status); } &&
2853 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857 (exit $ac_status); };
2859 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2860 if test "x$CC" != xcc; then
2861 # Test first that cc exists at all.
2862 if { ac_try='cc -c conftest.$ac_ext >&5'
2863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867 (exit $ac_status); }; }; then
2868 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2869 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873 (exit $ac_status); } &&
2874 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2878 (exit $ac_status); };
2883 # cc exists but doesn't like -o.
2884 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2889 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2894 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2895 echo "$as_me:$LINENO: result: yes" >&5
2896 echo "${ECHO_T}yes" >&6
2898 echo "$as_me:$LINENO: result: no" >&5
2899 echo "${ECHO_T}no" >&6
2901 cat >>confdefs.h <<\_ACEOF
2902 #define NO_MINUS_C_MINUS_O 1
2908 ac_cpp='$CPP $CPPFLAGS'
2909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2912 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2913 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2914 # On Suns, sometimes $CPP names a directory.
2915 if test -n "$CPP" && test -d "$CPP"; then
2918 if test -z "$CPP"; then
2919 if test "${ac_cv_prog_CPP+set}" = set; then
2920 echo $ECHO_N "(cached) $ECHO_C" >&6
2922 # Double quotes because CPP needs to be expanded
2923 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2926 for ac_c_preproc_warn_flag in '' yes
2928 # Use a header file that comes with gcc, so configuring glibc
2929 # with a fresh cross-compiler works.
2930 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2931 # <limits.h> exists even on freestanding compilers.
2932 # On the NeXT, cc -E runs the code through the compiler's parser,
2933 # not just through cpp. "Syntax error" is here to catch this case.
2934 cat >conftest.$ac_ext <<_ACEOF
2937 cat confdefs.h >>conftest.$ac_ext
2938 cat >>conftest.$ac_ext <<_ACEOF
2939 /* end confdefs.h. */
2941 # include <limits.h>
2943 # include <assert.h>
2947 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2948 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2950 grep -v '^ *+' conftest.er1 >conftest.err
2952 cat conftest.err >&5
2953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954 (exit $ac_status); } >/dev/null; then
2955 if test -s conftest.err; then
2956 ac_cpp_err=$ac_c_preproc_warn_flag
2957 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2964 if test -z "$ac_cpp_err"; then
2967 echo "$as_me: failed program was:" >&5
2968 sed 's/^/| /' conftest.$ac_ext >&5
2970 # Broken: fails on valid input.
2973 rm -f conftest.err conftest.$ac_ext
2975 # OK, works on sane cases. Now check whether non-existent headers
2976 # can be detected and how.
2977 cat >conftest.$ac_ext <<_ACEOF
2980 cat confdefs.h >>conftest.$ac_ext
2981 cat >>conftest.$ac_ext <<_ACEOF
2982 /* end confdefs.h. */
2983 #include <ac_nonexistent.h>
2985 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2986 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2988 grep -v '^ *+' conftest.er1 >conftest.err
2990 cat conftest.err >&5
2991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992 (exit $ac_status); } >/dev/null; then
2993 if test -s conftest.err; then
2994 ac_cpp_err=$ac_c_preproc_warn_flag
2995 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3002 if test -z "$ac_cpp_err"; then
3003 # Broken: success on invalid input.
3006 echo "$as_me: failed program was:" >&5
3007 sed 's/^/| /' conftest.$ac_ext >&5
3009 # Passes both tests.
3013 rm -f conftest.err conftest.$ac_ext
3016 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3017 rm -f conftest.err conftest.$ac_ext
3018 if $ac_preproc_ok; then
3030 echo "$as_me:$LINENO: result: $CPP" >&5
3031 echo "${ECHO_T}$CPP" >&6
3033 for ac_c_preproc_warn_flag in '' yes
3035 # Use a header file that comes with gcc, so configuring glibc
3036 # with a fresh cross-compiler works.
3037 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3038 # <limits.h> exists even on freestanding compilers.
3039 # On the NeXT, cc -E runs the code through the compiler's parser,
3040 # not just through cpp. "Syntax error" is here to catch this case.
3041 cat >conftest.$ac_ext <<_ACEOF
3044 cat confdefs.h >>conftest.$ac_ext
3045 cat >>conftest.$ac_ext <<_ACEOF
3046 /* end confdefs.h. */
3048 # include <limits.h>
3050 # include <assert.h>
3054 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3055 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3057 grep -v '^ *+' conftest.er1 >conftest.err
3059 cat conftest.err >&5
3060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061 (exit $ac_status); } >/dev/null; then
3062 if test -s conftest.err; then
3063 ac_cpp_err=$ac_c_preproc_warn_flag
3064 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3071 if test -z "$ac_cpp_err"; then
3074 echo "$as_me: failed program was:" >&5
3075 sed 's/^/| /' conftest.$ac_ext >&5
3077 # Broken: fails on valid input.
3080 rm -f conftest.err conftest.$ac_ext
3082 # OK, works on sane cases. Now check whether non-existent headers
3083 # can be detected and how.
3084 cat >conftest.$ac_ext <<_ACEOF
3087 cat confdefs.h >>conftest.$ac_ext
3088 cat >>conftest.$ac_ext <<_ACEOF
3089 /* end confdefs.h. */
3090 #include <ac_nonexistent.h>
3092 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3093 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3095 grep -v '^ *+' conftest.er1 >conftest.err
3097 cat conftest.err >&5
3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099 (exit $ac_status); } >/dev/null; then
3100 if test -s conftest.err; then
3101 ac_cpp_err=$ac_c_preproc_warn_flag
3102 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3109 if test -z "$ac_cpp_err"; then
3110 # Broken: success on invalid input.
3113 echo "$as_me: failed program was:" >&5
3114 sed 's/^/| /' conftest.$ac_ext >&5
3116 # Passes both tests.
3120 rm -f conftest.err conftest.$ac_ext
3123 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3124 rm -f conftest.err conftest.$ac_ext
3125 if $ac_preproc_ok; then
3128 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3129 See \`config.log' for more details." >&5
3130 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3131 See \`config.log' for more details." >&2;}
3132 { (exit 1); exit 1; }; }
3136 ac_cpp='$CPP $CPPFLAGS'
3137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3142 echo "$as_me:$LINENO: checking for egrep" >&5
3143 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3144 if test "${ac_cv_prog_egrep+set}" = set; then
3145 echo $ECHO_N "(cached) $ECHO_C" >&6
3147 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3148 then ac_cv_prog_egrep='grep -E'
3149 else ac_cv_prog_egrep='egrep'
3152 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3153 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3154 EGREP=$ac_cv_prog_egrep
3157 if test $ac_cv_c_compiler_gnu = yes; then
3158 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3159 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3160 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3161 echo $ECHO_N "(cached) $ECHO_C" >&6
3163 ac_pattern="Autoconf.*'x'"
3164 cat >conftest.$ac_ext <<_ACEOF
3167 cat confdefs.h >>conftest.$ac_ext
3168 cat >>conftest.$ac_ext <<_ACEOF
3169 /* end confdefs.h. */
3173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3174 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3175 ac_cv_prog_gcc_traditional=yes
3177 ac_cv_prog_gcc_traditional=no
3182 if test $ac_cv_prog_gcc_traditional = no; then
3183 cat >conftest.$ac_ext <<_ACEOF
3186 cat confdefs.h >>conftest.$ac_ext
3187 cat >>conftest.$ac_ext <<_ACEOF
3188 /* end confdefs.h. */
3192 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3193 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3194 ac_cv_prog_gcc_traditional=yes
3200 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3201 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3202 if test $ac_cv_prog_gcc_traditional = yes; then
3203 CC="$CC -traditional"
3207 if test "x$CC" = xgcc
3209 cat >>confdefs.h <<\_ACEOF
3215 # Find a good install program. We prefer a C program (faster),
3216 # so one script is as good as another. But avoid the broken or
3217 # incompatible versions:
3218 # SysV /etc/install, /usr/sbin/install
3219 # SunOS /usr/etc/install
3220 # IRIX /sbin/install
3222 # AmigaOS /C/install, which installs bootblocks on floppy discs
3223 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3224 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3225 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3226 # OS/2's system install, which has a completely different semantic
3227 # ./install, which can be erroneously created by make from ./install.sh.
3228 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3229 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3230 if test -z "$INSTALL"; then
3231 if test "${ac_cv_path_install+set}" = set; then
3232 echo $ECHO_N "(cached) $ECHO_C" >&6
3234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3238 test -z "$as_dir" && as_dir=.
3239 # Account for people who put trailing slashes in PATH elements.
3241 ./ | .// | /cC/* | \
3242 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3243 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3246 # OSF1 and SCO ODT 3.0 have their own names for install.
3247 # Don't use installbsd from OSF since it installs stuff as root
3249 for ac_prog in ginstall scoinst install; do
3250 for ac_exec_ext in '' $ac_executable_extensions; do
3251 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3252 if test $ac_prog = install &&
3253 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3254 # AIX install. It has an incompatible calling convention.
3256 elif test $ac_prog = install &&
3257 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3258 # program-specific install script used by HP pwplus--don't use.
3261 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3273 if test "${ac_cv_path_install+set}" = set; then
3274 INSTALL=$ac_cv_path_install
3276 # As a last resort, use the slow shell script. We don't cache a
3277 # path for INSTALL within a source directory, because that will
3278 # break other packages using the cache if that directory is
3279 # removed, or if the path is relative.
3280 INSTALL=$ac_install_sh
3283 echo "$as_me:$LINENO: result: $INSTALL" >&5
3284 echo "${ECHO_T}$INSTALL" >&6
3286 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3287 # It thinks the first close brace ends the variable substitution.
3288 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3290 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3292 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3294 if test -n "$ac_tool_prefix"; then
3295 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3296 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3297 echo "$as_me:$LINENO: checking for $ac_word" >&5
3298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3299 if test "${ac_cv_prog_RANLIB+set}" = set; then
3300 echo $ECHO_N "(cached) $ECHO_C" >&6
3302 if test -n "$RANLIB"; then
3303 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3309 test -z "$as_dir" && as_dir=.
3310 for ac_exec_ext in '' $ac_executable_extensions; do
3311 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3312 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3313 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3321 RANLIB=$ac_cv_prog_RANLIB
3322 if test -n "$RANLIB"; then
3323 echo "$as_me:$LINENO: result: $RANLIB" >&5
3324 echo "${ECHO_T}$RANLIB" >&6
3326 echo "$as_me:$LINENO: result: no" >&5
3327 echo "${ECHO_T}no" >&6
3331 if test -z "$ac_cv_prog_RANLIB"; then
3332 ac_ct_RANLIB=$RANLIB
3333 # Extract the first word of "ranlib", so it can be a program name with args.
3334 set dummy ranlib; ac_word=$2
3335 echo "$as_me:$LINENO: checking for $ac_word" >&5
3336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3337 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3338 echo $ECHO_N "(cached) $ECHO_C" >&6
3340 if test -n "$ac_ct_RANLIB"; then
3341 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3347 test -z "$as_dir" && as_dir=.
3348 for ac_exec_ext in '' $ac_executable_extensions; do
3349 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3350 ac_cv_prog_ac_ct_RANLIB="ranlib"
3351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3357 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3360 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3361 if test -n "$ac_ct_RANLIB"; then
3362 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3363 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3365 echo "$as_me:$LINENO: result: no" >&5
3366 echo "${ECHO_T}no" >&6
3369 RANLIB=$ac_ct_RANLIB
3371 RANLIB="$ac_cv_prog_RANLIB"
3374 # Extract the first word of "mv", so it can be a program name with args.
3375 set dummy mv; ac_word=$2
3376 echo "$as_me:$LINENO: checking for $ac_word" >&5
3377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3378 if test "${ac_cv_path_MV+set}" = set; then
3379 echo $ECHO_N "(cached) $ECHO_C" >&6
3383 ac_cv_path_MV="$MV" # Let the user override the test with a path.
3386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3390 test -z "$as_dir" && as_dir=.
3391 for ac_exec_ext in '' $ac_executable_extensions; do
3392 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3393 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3400 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3406 if test -n "$MV"; then
3407 echo "$as_me:$LINENO: result: $MV" >&5
3408 echo "${ECHO_T}$MV" >&6
3410 echo "$as_me:$LINENO: result: no" >&5
3411 echo "${ECHO_T}no" >&6
3414 # Extract the first word of "rm", so it can be a program name with args.
3415 set dummy rm; ac_word=$2
3416 echo "$as_me:$LINENO: checking for $ac_word" >&5
3417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3418 if test "${ac_cv_path_RM+set}" = set; then
3419 echo $ECHO_N "(cached) $ECHO_C" >&6
3423 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3430 test -z "$as_dir" && as_dir=.
3431 for ac_exec_ext in '' $ac_executable_extensions; do
3432 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3433 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3440 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3446 if test -n "$RM"; then
3447 echo "$as_me:$LINENO: result: $RM" >&5
3448 echo "${ECHO_T}$RM" >&6
3450 echo "$as_me:$LINENO: result: no" >&5
3451 echo "${ECHO_T}no" >&6
3454 # Extract the first word of "cp", so it can be a program name with args.
3455 set dummy cp; ac_word=$2
3456 echo "$as_me:$LINENO: checking for $ac_word" >&5
3457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3458 if test "${ac_cv_path_CP+set}" = set; then
3459 echo $ECHO_N "(cached) $ECHO_C" >&6
3463 ac_cv_path_CP="$CP" # Let the user override the test with a path.
3466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3470 test -z "$as_dir" && as_dir=.
3471 for ac_exec_ext in '' $ac_executable_extensions; do
3472 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3473 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3480 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3486 if test -n "$CP"; then
3487 echo "$as_me:$LINENO: result: $CP" >&5
3488 echo "${ECHO_T}$CP" >&6
3490 echo "$as_me:$LINENO: result: no" >&5
3491 echo "${ECHO_T}no" >&6
3494 # Extract the first word of "sed", so it can be a program name with args.
3495 set dummy sed; ac_word=$2
3496 echo "$as_me:$LINENO: checking for $ac_word" >&5
3497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3498 if test "${ac_cv_path_SED+set}" = set; then
3499 echo $ECHO_N "(cached) $ECHO_C" >&6
3503 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3510 test -z "$as_dir" && as_dir=.
3511 for ac_exec_ext in '' $ac_executable_extensions; do
3512 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3513 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3520 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3526 if test -n "$SED"; then
3527 echo "$as_me:$LINENO: result: $SED" >&5
3528 echo "${ECHO_T}$SED" >&6
3530 echo "$as_me:$LINENO: result: no" >&5
3531 echo "${ECHO_T}no" >&6
3534 # Extract the first word of "echo", so it can be a program name with args.
3535 set dummy echo; ac_word=$2
3536 echo "$as_me:$LINENO: checking for $ac_word" >&5
3537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3538 if test "${ac_cv_path_ECHO+set}" = set; then
3539 echo $ECHO_N "(cached) $ECHO_C" >&6
3543 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3550 test -z "$as_dir" && as_dir=.
3551 for ac_exec_ext in '' $ac_executable_extensions; do
3552 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3553 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3560 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3564 ECHO=$ac_cv_path_ECHO
3566 if test -n "$ECHO"; then
3567 echo "$as_me:$LINENO: result: $ECHO" >&5
3568 echo "${ECHO_T}$ECHO" >&6
3570 echo "$as_me:$LINENO: result: no" >&5
3571 echo "${ECHO_T}no" >&6
3574 # Extract the first word of "cmp", so it can be a program name with args.
3575 set dummy cmp; ac_word=$2
3576 echo "$as_me:$LINENO: checking for $ac_word" >&5
3577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3578 if test "${ac_cv_path_CMP+set}" = set; then
3579 echo $ECHO_N "(cached) $ECHO_C" >&6
3583 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3590 test -z "$as_dir" && as_dir=.
3591 for ac_exec_ext in '' $ac_executable_extensions; do
3592 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3593 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3600 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3606 if test -n "$CMP"; then
3607 echo "$as_me:$LINENO: result: $CMP" >&5
3608 echo "${ECHO_T}$CMP" >&6
3610 echo "$as_me:$LINENO: result: no" >&5
3611 echo "${ECHO_T}no" >&6
3614 # Extract the first word of "tbl", so it can be a program name with args.
3615 set dummy tbl; ac_word=$2
3616 echo "$as_me:$LINENO: checking for $ac_word" >&5
3617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3618 if test "${ac_cv_path_TBL+set}" = set; then
3619 echo $ECHO_N "(cached) $ECHO_C" >&6
3623 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3630 test -z "$as_dir" && as_dir=.
3631 for ac_exec_ext in '' $ac_executable_extensions; do
3632 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3633 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3640 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3646 if test -n "$TBL"; then
3647 echo "$as_me:$LINENO: result: $TBL" >&5
3648 echo "${ECHO_T}$TBL" >&6
3650 echo "$as_me:$LINENO: result: no" >&5
3651 echo "${ECHO_T}no" >&6
3654 # Extract the first word of "ar", so it can be a program name with args.
3655 set dummy ar; ac_word=$2
3656 echo "$as_me:$LINENO: checking for $ac_word" >&5
3657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3658 if test "${ac_cv_path_AR+set}" = set; then
3659 echo $ECHO_N "(cached) $ECHO_C" >&6
3663 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3670 test -z "$as_dir" && as_dir=.
3671 for ac_exec_ext in '' $ac_executable_extensions; do
3672 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3673 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3680 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3686 if test -n "$AR"; then
3687 echo "$as_me:$LINENO: result: $AR" >&5
3688 echo "${ECHO_T}$AR" >&6
3690 echo "$as_me:$LINENO: result: no" >&5
3691 echo "${ECHO_T}no" >&6
3694 # Extract the first word of "openssl", so it can be a program name with args.
3695 set dummy openssl; ac_word=$2
3696 echo "$as_me:$LINENO: checking for $ac_word" >&5
3697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3698 if test "${ac_cv_path_OPENSSL+set}" = set; then
3699 echo $ECHO_N "(cached) $ECHO_C" >&6
3703 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3710 test -z "$as_dir" && as_dir=.
3711 for ac_exec_ext in '' $ac_executable_extensions; do
3712 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3713 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3720 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3724 OPENSSL=$ac_cv_path_OPENSSL
3726 if test -n "$OPENSSL"; then
3727 echo "$as_me:$LINENO: result: $OPENSSL" >&5
3728 echo "${ECHO_T}$OPENSSL" >&6
3730 echo "$as_me:$LINENO: result: no" >&5
3731 echo "${ECHO_T}no" >&6
3734 # Extract the first word of "mtx", so it can be a program name with args.
3735 set dummy mtx; ac_word=$2
3736 echo "$as_me:$LINENO: checking for $ac_word" >&5
3737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3738 if test "${ac_cv_path_MTX+set}" = set; then
3739 echo $ECHO_N "(cached) $ECHO_C" >&6
3743 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3750 test -z "$as_dir" && as_dir=.
3751 for ac_exec_ext in '' $ac_executable_extensions; do
3752 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3753 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3760 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3766 if test -n "$MTX"; then
3767 echo "$as_me:$LINENO: result: $MTX" >&5
3768 echo "${ECHO_T}$MTX" >&6
3770 echo "$as_me:$LINENO: result: no" >&5
3771 echo "${ECHO_T}no" >&6
3774 # Extract the first word of "mkisofs", so it can be a program name with args.
3775 set dummy mkisofs; ac_word=$2
3776 echo "$as_me:$LINENO: checking for $ac_word" >&5
3777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3778 if test "${ac_cv_path_MKISOFS+set}" = set; then
3779 echo $ECHO_N "(cached) $ECHO_C" >&6
3783 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
3786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3790 test -z "$as_dir" && as_dir=.
3791 for ac_exec_ext in '' $ac_executable_extensions; do
3792 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3793 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
3794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3800 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
3804 MKISOFS=$ac_cv_path_MKISOFS
3806 if test -n "$MKISOFS"; then
3807 echo "$as_me:$LINENO: result: $MKISOFS" >&5
3808 echo "${ECHO_T}$MKISOFS" >&6
3810 echo "$as_me:$LINENO: result: no" >&5
3811 echo "${ECHO_T}no" >&6
3814 # Extract the first word of "python", so it can be a program name with args.
3815 set dummy python; ac_word=$2
3816 echo "$as_me:$LINENO: checking for $ac_word" >&5
3817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3818 if test "${ac_cv_path_PYTHON+set}" = set; then
3819 echo $ECHO_N "(cached) $ECHO_C" >&6
3823 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
3826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3830 test -z "$as_dir" && as_dir=.
3831 for ac_exec_ext in '' $ac_executable_extensions; do
3832 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3833 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
3834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3840 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
3844 PYTHON=$ac_cv_path_PYTHON
3846 if test -n "$PYTHON"; then
3847 echo "$as_me:$LINENO: result: $PYTHON" >&5
3848 echo "${ECHO_T}$PYTHON" >&6
3850 echo "$as_me:$LINENO: result: no" >&5
3851 echo "${ECHO_T}no" >&6
3854 # Extract the first word of "growisofs", so it can be a program name with args.
3855 set dummy growisofs; ac_word=$2
3856 echo "$as_me:$LINENO: checking for $ac_word" >&5
3857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3858 if test "${ac_cv_path_GROWISOFS+set}" = set; then
3859 echo $ECHO_N "(cached) $ECHO_C" >&6
3863 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
3866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3870 test -z "$as_dir" && as_dir=.
3871 for ac_exec_ext in '' $ac_executable_extensions; do
3872 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3873 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
3874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3880 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
3884 GROWISOFS=$ac_cv_path_GROWISOFS
3886 if test -n "$GROWISOFS"; then
3887 echo "$as_me:$LINENO: result: $GROWISOFS" >&5
3888 echo "${ECHO_T}$GROWISOFS" >&6
3890 echo "$as_me:$LINENO: result: no" >&5
3891 echo "${ECHO_T}no" >&6
3894 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
3895 set dummy dvd+rw-mediainfo; ac_word=$2
3896 echo "$as_me:$LINENO: checking for $ac_word" >&5
3897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3898 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
3899 echo $ECHO_N "(cached) $ECHO_C" >&6
3901 case $DVDRWMEDIAINFO in
3903 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
3906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3910 test -z "$as_dir" && as_dir=.
3911 for ac_exec_ext in '' $ac_executable_extensions; do
3912 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3913 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
3914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3920 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
3924 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
3926 if test -n "$DVDRWMEDIAINFO"; then
3927 echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
3928 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6
3930 echo "$as_me:$LINENO: result: no" >&5
3931 echo "${ECHO_T}no" >&6
3934 # Extract the first word of "pkg-config", so it can be a program name with args.
3935 set dummy pkg-config; ac_word=$2
3936 echo "$as_me:$LINENO: checking for $ac_word" >&5
3937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3938 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
3939 echo $ECHO_N "(cached) $ECHO_C" >&6
3943 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
3946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3950 test -z "$as_dir" && as_dir=.
3951 for ac_exec_ext in '' $ac_executable_extensions; do
3952 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3953 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
3954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3960 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
3964 PKGCONFIG=$ac_cv_path_PKGCONFIG
3966 if test -n "$PKGCONFIG"; then
3967 echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
3968 echo "${ECHO_T}$PKGCONFIG" >&6
3970 echo "$as_me:$LINENO: result: no" >&5
3971 echo "${ECHO_T}no" >&6
3975 if test "x$WXCONFIG" = x; then
3978 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
3979 set dummy ${WXCONFIG}; ac_word=$2
3980 echo "$as_me:$LINENO: checking for $ac_word" >&5
3981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3982 if test "${ac_cv_path_WXCONFIG+set}" = set; then
3983 echo $ECHO_N "(cached) $ECHO_C" >&6
3987 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
3990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3994 test -z "$as_dir" && as_dir=.
3995 for ac_exec_ext in '' $ac_executable_extensions; do
3996 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3997 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
3998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4004 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
4008 WXCONFIG=$ac_cv_path_WXCONFIG
4010 if test -n "$WXCONFIG"; then
4011 echo "$as_me:$LINENO: result: $WXCONFIG" >&5
4012 echo "${ECHO_T}$WXCONFIG" >&6
4014 echo "$as_me:$LINENO: result: no" >&5
4015 echo "${ECHO_T}no" >&6
4019 # Extract the first word of "cdrecord", so it can be a program name with args.
4020 set dummy cdrecord; ac_word=$2
4021 echo "$as_me:$LINENO: checking for $ac_word" >&5
4022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4023 if test "${ac_cv_path_CDRECORD+set}" = set; then
4024 echo $ECHO_N "(cached) $ECHO_C" >&6
4028 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
4031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4035 test -z "$as_dir" && as_dir=.
4036 for ac_exec_ext in '' $ac_executable_extensions; do
4037 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4038 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
4039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4045 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
4049 CDRECORD=$ac_cv_path_CDRECORD
4051 if test -n "$CDRECORD"; then
4052 echo "$as_me:$LINENO: result: $CDRECORD" >&5
4053 echo "${ECHO_T}$CDRECORD" >&6
4055 echo "$as_me:$LINENO: result: no" >&5
4056 echo "${ECHO_T}no" >&6
4059 # Extract the first word of "pidof", so it can be a program name with args.
4060 set dummy pidof; ac_word=$2
4061 echo "$as_me:$LINENO: checking for $ac_word" >&5
4062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4063 if test "${ac_cv_path_PIDOF+set}" = set; then
4064 echo $ECHO_N "(cached) $ECHO_C" >&6
4068 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
4071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4075 test -z "$as_dir" && as_dir=.
4076 for ac_exec_ext in '' $ac_executable_extensions; do
4077 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4078 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
4079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4085 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
4089 PIDOF=$ac_cv_path_PIDOF
4091 if test -n "$PIDOF"; then
4092 echo "$as_me:$LINENO: result: $PIDOF" >&5
4093 echo "${ECHO_T}$PIDOF" >&6
4095 echo "$as_me:$LINENO: result: no" >&5
4096 echo "${ECHO_T}no" >&6
4099 for ac_prog in gawk mawk nawk awk
4101 # Extract the first word of "$ac_prog", so it can be a program name with args.
4102 set dummy $ac_prog; ac_word=$2
4103 echo "$as_me:$LINENO: checking for $ac_word" >&5
4104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4105 if test "${ac_cv_prog_AWK+set}" = set; then
4106 echo $ECHO_N "(cached) $ECHO_C" >&6
4108 if test -n "$AWK"; then
4109 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4115 test -z "$as_dir" && as_dir=.
4116 for ac_exec_ext in '' $ac_executable_extensions; do
4117 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4118 ac_cv_prog_AWK="$ac_prog"
4119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4128 if test -n "$AWK"; then
4129 echo "$as_me:$LINENO: result: $AWK" >&5
4130 echo "${ECHO_T}$AWK" >&6
4132 echo "$as_me:$LINENO: result: no" >&5
4133 echo "${ECHO_T}no" >&6
4136 test -n "$AWK" && break
4139 # Some AWK programs fail, so test it and warn the user
4140 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
4141 { if ((prog == $2) || (("(" prog ")") == $2) ||
4142 (("" prog "") == $2) ||
4143 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
4145 { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4146 The regex engine of $AWK is too broken to be used you
4147 might want to install GNU AWK.
4148 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
4149 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4150 The regex engine of $AWK is too broken to be used you
4151 might want to install GNU AWK.
4152 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
4153 { (exit 1); exit 1; }; }
4156 # Extract the first word of "$THE_AWK", so it can be a program name with args.
4157 set dummy $THE_AWK; ac_word=$2
4158 echo "$as_me:$LINENO: checking for $ac_word" >&5
4159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4160 if test "${ac_cv_path_AWK+set}" = set; then
4161 echo $ECHO_N "(cached) $ECHO_C" >&6
4165 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
4168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4172 test -z "$as_dir" && as_dir=.
4173 for ac_exec_ext in '' $ac_executable_extensions; do
4174 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4175 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
4176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4182 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
4188 if test -n "$AWK"; then
4189 echo "$as_me:$LINENO: result: $AWK" >&5
4190 echo "${ECHO_T}$AWK" >&6
4192 echo "$as_me:$LINENO: result: no" >&5
4193 echo "${ECHO_T}no" >&6
4197 test -n "$ARFLAG" || ARFLAGS="cr"
4210 # Make sure we can run config.sub.
4211 $ac_config_sub sun4 >/dev/null 2>&1 ||
4212 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4213 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4214 { (exit 1); exit 1; }; }
4216 echo "$as_me:$LINENO: checking build system type" >&5
4217 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4218 if test "${ac_cv_build+set}" = set; then
4219 echo $ECHO_N "(cached) $ECHO_C" >&6
4221 ac_cv_build_alias=$build_alias
4222 test -z "$ac_cv_build_alias" &&
4223 ac_cv_build_alias=`$ac_config_guess`
4224 test -z "$ac_cv_build_alias" &&
4225 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4226 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4227 { (exit 1); exit 1; }; }
4228 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4229 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4230 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4231 { (exit 1); exit 1; }; }
4234 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4235 echo "${ECHO_T}$ac_cv_build" >&6
4237 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4238 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4239 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4243 echo "$as_me:$LINENO: checking host system type" >&5
4244 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4245 if test "${ac_cv_host+set}" = set; then
4246 echo $ECHO_N "(cached) $ECHO_C" >&6
4248 ac_cv_host_alias=$host_alias
4249 test -z "$ac_cv_host_alias" &&
4250 ac_cv_host_alias=$ac_cv_build_alias
4251 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4252 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4253 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4254 { (exit 1); exit 1; }; }
4257 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4258 echo "${ECHO_T}$ac_cv_host" >&6
4260 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4261 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4262 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4266 *cygwin* ) CYGWIN=yes;;
4270 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4276 HAVE_SUN_OS_FALSE='#'
4278 HAVE_SUN_OS_TRUE='#'
4281 cat >>confdefs.h <<\_ACEOF
4282 #define HAVE_SUN_OS 1
4290 HAVE_SUN_OS_FALSE='#'
4292 HAVE_SUN_OS_TRUE='#'
4297 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4303 HAVE_OSF1_OS_FALSE='#'
4305 HAVE_OSF1_OS_TRUE='#'
4308 cat >>confdefs.h <<\_ACEOF
4309 #define HAVE_OSF1_OS 1
4317 HAVE_OSF1_OS_FALSE='#'
4319 HAVE_OSF1_OS_TRUE='#'
4324 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4330 HAVE_AIX_OS_FALSE='#'
4332 HAVE_AIX_OS_TRUE='#'
4335 cat >>confdefs.h <<\_ACEOF
4336 #define HAVE_AIX_OS 1
4344 HAVE_AIX_OS_FALSE='#'
4346 HAVE_AIX_OS_TRUE='#'
4351 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4357 HAVE_HPUX_OS_FALSE='#'
4359 HAVE_HPUX_OS_TRUE='#'
4362 cat >>confdefs.h <<\_ACEOF
4363 #define HAVE_HPUX_OS 1
4371 HAVE_HPUX_OS_FALSE='#'
4373 HAVE_HPUX_OS_TRUE='#'
4378 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
4384 HAVE_LINUX_OS_FALSE='#'
4386 HAVE_LINUX_OS_TRUE='#'
4387 HAVE_LINUX_OS_FALSE=
4389 cat >>confdefs.h <<\_ACEOF
4390 #define HAVE_LINUX_OS 1
4398 HAVE_LINUX_OS_FALSE='#'
4400 HAVE_LINUX_OS_TRUE='#'
4401 HAVE_LINUX_OS_FALSE=
4405 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4410 HAVE_FREEBSD_OS_TRUE=
4411 HAVE_FREEBSD_OS_FALSE='#'
4413 HAVE_FREEBSD_OS_TRUE='#'
4414 HAVE_FREEBSD_OS_FALSE=
4416 cat >>confdefs.h <<\_ACEOF
4417 #define HAVE_FREEBSD_OS 1
4424 HAVE_FREEBSD_OS_TRUE=
4425 HAVE_FREEBSD_OS_FALSE='#'
4427 HAVE_FREEBSD_OS_TRUE='#'
4428 HAVE_FREEBSD_OS_FALSE=
4432 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4437 HAVE_NETBSD_OS_TRUE=
4438 HAVE_NETBSD_OS_FALSE='#'
4440 HAVE_NETBSD_OS_TRUE='#'
4441 HAVE_NETBSD_OS_FALSE=
4443 cat >>confdefs.h <<\_ACEOF
4444 #define HAVE_NETBSD_OS 1
4451 HAVE_NETBSD_OS_TRUE=
4452 HAVE_NETBSD_OS_FALSE='#'
4454 HAVE_NETBSD_OS_TRUE='#'
4455 HAVE_NETBSD_OS_FALSE=
4459 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4464 HAVE_OPENBSD_OS_TRUE=
4465 HAVE_OPENBSD_OS_FALSE='#'
4467 HAVE_OPENBSD_OS_TRUE='#'
4468 HAVE_OPENBSD_OS_FALSE=
4470 cat >>confdefs.h <<\_ACEOF
4471 #define HAVE_OPENBSD_OS 1
4478 HAVE_OPENBSD_OS_TRUE=
4479 HAVE_OPENBSD_OS_FALSE='#'
4481 HAVE_OPENBSD_OS_TRUE='#'
4482 HAVE_OPENBSD_OS_FALSE=
4486 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4492 HAVE_BSDI_OS_FALSE='#'
4494 HAVE_BSDI_OS_TRUE='#'
4497 cat >>confdefs.h <<\_ACEOF
4498 #define HAVE_BSDI_OS 1
4506 HAVE_BSDI_OS_FALSE='#'
4508 HAVE_BSDI_OS_TRUE='#'
4513 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4519 HAVE_SGI_OS_FALSE='#'
4521 HAVE_SGI_OS_TRUE='#'
4524 cat >>confdefs.h <<\_ACEOF
4525 #define HAVE_SGI_OS 1
4533 HAVE_SGI_OS_FALSE='#'
4535 HAVE_SGI_OS_TRUE='#'
4540 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4546 HAVE_IRIX_OS_FALSE='#'
4548 HAVE_IRIX_OS_TRUE='#'
4551 cat >>confdefs.h <<\_ACEOF
4552 #define HAVE_IRIX_OS 1
4560 HAVE_IRIX_OS_FALSE='#'
4562 HAVE_IRIX_OS_TRUE='#'
4567 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4572 HAVE_DARWIN_OS_TRUE=
4573 HAVE_DARWIN_OS_FALSE='#'
4575 HAVE_DARWIN_OS_TRUE='#'
4576 HAVE_DARWIN_OS_FALSE=
4578 cat >>confdefs.h <<\_ACEOF
4579 #define HAVE_DARWIN_OS 1
4586 HAVE_DARWIN_OS_TRUE=
4587 HAVE_DARWIN_OS_FALSE='#'
4589 HAVE_DARWIN_OS_TRUE='#'
4590 HAVE_DARWIN_OS_FALSE=
4595 # -----------------------------------------------------------
4596 # ----------------------------------------------------------
4597 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4598 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4599 if test "x$DISTNAME" != "x"
4601 echo "distname set to $DISTNAME"
4602 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4605 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4608 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4611 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4614 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4617 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4620 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4623 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4626 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4629 elif test -f /etc/SuSE-release
4632 elif test -d /etc/SuSEconfig
4635 elif test -f /etc/mandrake-release
4638 elif test -f /etc/whitebox-release
4641 elif test -f /etc/redhat-release
4644 elif test -f /etc/gentoo-release
4647 elif test -f /etc/debian_version
4650 elif test -f /etc/slackware-version
4653 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4656 elif test -f /etc/engarde-version
4659 elif test "$CYGWIN" = yes
4662 cat >>confdefs.h <<\_ACEOF
4663 #define HAVE_CYGWIN 1
4669 echo "$as_me:$LINENO: result: done" >&5
4670 echo "${ECHO_T}done" >&6
4673 # -----------------------------------------------------------
4674 # ----------------------------------------------------------
4679 INSIDE_GNOME_COMMON_TRUE=
4680 INSIDE_GNOME_COMMON_FALSE='#'
4682 INSIDE_GNOME_COMMON_TRUE='#'
4683 INSIDE_GNOME_COMMON_FALSE=
4686 test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
4688 for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
4691 # ------------------------------------------------------------------
4692 # If the user has not set --prefix, we set our default to nothing.
4693 # In this case, if the user has not set --sysconfdir, we set it
4694 # to the package default of /etc/bacula. If either --prefix or
4695 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
4696 # ------------------------------------------------------------------
4697 if test x${prefix} = xNONE ; then
4698 if test `eval echo ${sysconfdir}` = NONE/etc ; then
4699 sysconfdir=/etc/bacula
4703 sysconfdir=`eval echo ${sysconfdir}`
4705 # -------------------------------------------------------------------------
4706 # If the user has not set --exec-prefix, we default to ${prefix}
4707 # -------------------------------------------------------------------------
4708 if test x${exec_prefix} = xNONE ; then
4709 exec_prefix=${prefix}
4712 # ------------------------------------------------------------------
4713 # If the user has not set --sbindir, we set our default as /sbin
4714 # ------------------------------------------------------------------
4715 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4716 sbindir=${exec_prefix}/sbin
4718 sbindir=`eval echo ${sbindir}`
4720 # ------------------------------------------------------------------
4721 # All list of languages for which a translation exist. Each
4722 # language is separated by a space.
4723 # ------------------------------------------------------------------
4726 for ac_prog in msgfmt
4728 # Extract the first word of "$ac_prog", so it can be a program name with args.
4729 set dummy $ac_prog; ac_word=$2
4730 echo "$as_me:$LINENO: checking for $ac_word" >&5
4731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4732 if test "${ac_cv_path_MSGFMT+set}" = set; then
4733 echo $ECHO_N "(cached) $ECHO_C" >&6
4737 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4744 test -z "$as_dir" && as_dir=.
4745 for ac_exec_ext in '' $ac_executable_extensions; do
4746 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4747 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4757 MSGFMT=$ac_cv_path_MSGFMT
4759 if test -n "$MSGFMT"; then
4760 echo "$as_me:$LINENO: result: $MSGFMT" >&5
4761 echo "${ECHO_T}$MSGFMT" >&6
4763 echo "$as_me:$LINENO: result: no" >&5
4764 echo "${ECHO_T}no" >&6
4767 test -n "$MSGFMT" && break
4769 test -n "$MSGFMT" || MSGFMT="no"
4771 if test "$MSGFMT" = "no"
4773 echo 'msgfmt program not found, disabling NLS !'
4775 USE_INCLUDED_LIBINTL=no
4784 support_postgresql=no
4785 support_smartalloc=yes
4786 support_readline=yes
4789 support_wx_console=no
4793 support_static_tools=no
4794 support_static_fd=no
4795 support_static_sd=no
4796 support_static_dir=no
4797 support_static_cons=no
4799 build_client_only=no
4805 # -------------------------------------------
4806 # gnome (default off)
4807 # -------------------------------------------
4808 # Check whether --enable-gnome or --disable-gnome was given.
4809 if test "${enable_gnome+set}" = set; then
4810 enableval="$enable_gnome"
4811 if test x$enableval = xyes; then
4817 if test x$support_gnome = xyes; then
4818 abc=`$PKGCONFIG --exists libgnomeui-2.0`
4820 if test $pkg = 0; then
4821 GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
4822 GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4823 GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
4824 GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4829 GNOME_DIR=src/gnome2-console
4830 gnome_version="Version 2.x"
4843 # Check whether --with-gnome-includes or --without-gnome-includes was given.
4844 if test "${with_gnome_includes+set}" = set; then
4845 withval="$with_gnome_includes"
4847 CFLAGS="$CFLAGS -I$withval"
4852 # Check whether --with-gnome-libs or --without-gnome-libs was given.
4853 if test "${with_gnome_libs+set}" = set; then
4854 withval="$with_gnome_libs"
4856 LDFLAGS="$LDFLAGS -L$withval"
4857 gnome_prefix=$withval
4862 # Check whether --with-gnome or --without-gnome was given.
4863 if test "${with_gnome+set}" = set; then
4864 withval="$with_gnome"
4865 if test x$withval = xyes; then
4869 if test "x$withval" = xno; then
4873 LDFLAGS="$LDFLAGS -L$withval/lib"
4874 CFLAGS="$CFLAGS -I$withval/include"
4875 gnome_prefix=$withval/lib
4882 if test "x$want_gnome" = xyes; then
4884 # Extract the first word of "gnome-config", so it can be a program name with args.
4885 set dummy gnome-config; ac_word=$2
4886 echo "$as_me:$LINENO: checking for $ac_word" >&5
4887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4888 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
4889 echo $ECHO_N "(cached) $ECHO_C" >&6
4891 case $GNOME_CONFIG in
4893 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
4896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4900 test -z "$as_dir" && as_dir=.
4901 for ac_exec_ext in '' $ac_executable_extensions; do
4902 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4903 ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4910 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
4914 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
4916 if test -n "$GNOME_CONFIG"; then
4917 echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
4918 echo "${ECHO_T}$GNOME_CONFIG" >&6
4920 echo "$as_me:$LINENO: result: no" >&5
4921 echo "${ECHO_T}no" >&6
4924 if test "$GNOME_CONFIG" = "no"; then
4925 no_gnome_config="yes"
4927 echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
4928 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
4929 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
4930 echo "$as_me:$LINENO: result: yes" >&5
4931 echo "${ECHO_T}yes" >&6
4934 # Extract the first word of "orbit-config", so it can be a program name with args.
4935 set dummy orbit-config; ac_word=$2
4936 echo "$as_me:$LINENO: checking for $ac_word" >&5
4937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4938 if test "${ac_cv_path_ORBIT_CONFIG+set}" = set; then
4939 echo $ECHO_N "(cached) $ECHO_C" >&6
4941 case $ORBIT_CONFIG in
4943 ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
4946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4950 test -z "$as_dir" && as_dir=.
4951 for ac_exec_ext in '' $ac_executable_extensions; do
4952 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4953 ac_cv_path_ORBIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4960 test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
4964 ORBIT_CONFIG=$ac_cv_path_ORBIT_CONFIG
4966 if test -n "$ORBIT_CONFIG"; then
4967 echo "$as_me:$LINENO: result: $ORBIT_CONFIG" >&5
4968 echo "${ECHO_T}$ORBIT_CONFIG" >&6
4970 echo "$as_me:$LINENO: result: no" >&5
4971 echo "${ECHO_T}no" >&6
4974 # Extract the first word of "orbit-idl", so it can be a program name with args.
4975 set dummy orbit-idl; ac_word=$2
4976 echo "$as_me:$LINENO: checking for $ac_word" >&5
4977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4978 if test "${ac_cv_path_ORBIT_IDL+set}" = set; then
4979 echo $ECHO_N "(cached) $ECHO_C" >&6
4983 ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
4986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4990 test -z "$as_dir" && as_dir=.
4991 for ac_exec_ext in '' $ac_executable_extensions; do
4992 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4993 ac_cv_path_ORBIT_IDL="$as_dir/$ac_word$ac_exec_ext"
4994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5000 test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
5004 ORBIT_IDL=$ac_cv_path_ORBIT_IDL
5006 if test -n "$ORBIT_IDL"; then
5007 echo "$as_me:$LINENO: result: $ORBIT_IDL" >&5
5008 echo "${ECHO_T}$ORBIT_IDL" >&6
5010 echo "$as_me:$LINENO: result: no" >&5
5011 echo "${ECHO_T}no" >&6
5014 echo "$as_me:$LINENO: checking for working ORBit environment" >&5
5015 echo $ECHO_N "checking for working ORBit environment... $ECHO_C" >&6
5016 if test "${gnome_cv_orbit_found+set}" = set; then
5017 echo $ECHO_N "(cached) $ECHO_C" >&6
5020 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
5021 gnome_cv_orbit_found=no
5023 gnome_cv_orbit_found=yes
5027 echo "$as_me:$LINENO: result: $gnome_cv_orbit_found" >&5
5028 echo "${ECHO_T}$gnome_cv_orbit_found" >&6
5031 if test x$gnome_cv_orbit_found = xyes; then
5033 HAVE_ORBIT_FALSE='#'
5038 if test x$gnome_cv_orbit_found = xyes; then
5040 ORBIT_CFLAGS=`orbit-config --cflags client server`
5041 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
5045 if test xfail = xfailure; then
5046 { { echo "$as_me:$LINENO: error: ORBit not installed or installation problem" >&5
5047 echo "$as_me: error: ORBit not installed or installation problem" >&2;}
5048 { (exit 1); exit 1; }; }
5052 echo "$as_me:$LINENO: checking for gnorba libraries" >&5
5053 echo $ECHO_N "checking for gnorba libraries... $ECHO_C" >&6
5054 if test "${gnome_cv_gnorba_found+set}" = set; then
5055 echo $ECHO_N "(cached) $ECHO_C" >&6
5058 gnome_cv_gnorba_found=no
5059 if test x$gnome_cv_orbit_found = xyes; then
5060 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
5061 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
5062 if test -n "$GNORBA_LIBS"; then
5063 gnome_cv_gnorba_found=yes
5068 echo "$as_me:$LINENO: result: $gnome_cv_gnorba_found" >&5
5069 echo "${ECHO_T}$gnome_cv_gnorba_found" >&6
5072 if test x$gnome_cv_gnorba_found = xyes; then
5074 HAVE_GNORBA_FALSE='#'
5076 HAVE_GNORBA_TRUE='#'
5079 if test x$gnome_cv_orbit_found = xyes; then
5081 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
5082 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
5086 if test xfail = xfailure; then
5087 { { echo "$as_me:$LINENO: error: gnorba library not installed or installation problem" >&5
5088 echo "$as_me: error: gnorba library not installed or installation problem" >&2;}
5089 { (exit 1); exit 1; }; }
5093 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
5094 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
5095 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
5096 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
5097 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
5098 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
5099 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
5102 echo "$as_me:$LINENO: result: no" >&5
5103 echo "${ECHO_T}no" >&6
5104 no_gnome_config="yes"
5108 if test x$exec_prefix = xNONE; then
5109 if test x$prefix = xNONE; then
5110 gnome_prefix=$ac_default_prefix/lib
5112 gnome_prefix=$prefix/lib
5115 gnome_prefix=`eval echo \`echo $libdir\``
5118 if test "$no_gnome_config" = "yes"; then
5119 echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
5120 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
5121 if test -f $gnome_prefix/gnomeConf.sh; then
5122 echo "$as_me:$LINENO: result: found" >&5
5123 echo "${ECHO_T}found" >&6
5124 echo "loading gnome configuration from" \
5125 "$gnome_prefix/gnomeConf.sh"
5126 . $gnome_prefix/gnomeConf.sh
5129 echo "$as_me:$LINENO: result: not found" >&5
5130 echo "${ECHO_T}not found" >&6
5131 if test xfail = xfail; then
5132 { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
5133 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
5134 { (exit 1); exit 1; }; }
5143 echo "$as_me:$LINENO: checking extra library \"$i\"" >&5
5144 echo $ECHO_N "checking extra library \"$i\"... $ECHO_C" >&6
5148 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
5149 echo "$as_me:$LINENO: result: $GNOME_APPLETS_LIBS" >&5
5150 echo "${ECHO_T}$GNOME_APPLETS_LIBS" >&6;;
5153 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
5154 echo "$as_me:$LINENO: result: $GNOME_DOCKLETS_LIBS" >&5
5155 echo "${ECHO_T}$GNOME_DOCKLETS_LIBS" >&6;;
5158 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
5159 echo "$as_me:$LINENO: result: $GNOME_CAPPLET_LIBS" >&5
5160 echo "${ECHO_T}$GNOME_CAPPLET_LIBS" >&6;;
5162 echo "$as_me:$LINENO: result: unknown library" >&5
5163 echo "${ECHO_T}unknown library" >&6
5165 EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
5166 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
5171 GNOME_DIR=src/gnome-console
5172 gnome_version="Version 1.4"
5178 # -------------------------------------------
5179 # wx-console (default off)
5180 # -------------------------------------------
5181 # Check whether --enable-wx-console or --disable-wx-console was given.
5182 if test "${enable_wx_console+set}" = set; then
5183 enableval="$enable_wx_console"
5184 if test x$enableval = xyes; then
5185 support_wx_console=yes
5190 if test x$support_wx_console = xyes; then
5191 abc=`$WXCONFIG $WXFLAGS --cppflags`
5193 if test $pkg = 0; then
5194 wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
5195 WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
5196 WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
5200 WX_DIR=src/wx-console
5203 echo "wx-config program not found. wx-console disabled."
5205 support_wx_console=no
5211 # -------------------------------------------
5212 # tray-monitor (default off)
5213 # -------------------------------------------
5214 # Check whether --enable-tray-monitor or --disable-tray-monitor was given.
5215 if test "${enable_tray_monitor+set}" = set; then
5216 enableval="$enable_tray_monitor"
5217 if test x$enableval = xyes; then
5218 support_tray_monitor=yes
5223 if test x$support_tray_monitor = xyes; then
5224 abc=`$PKGCONFIG --exists gtk+-2.0`
5226 if test $pkg = 0; then
5227 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
5228 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
5231 TRAY_MONITOR_DIR=src/tray-monitor
5232 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
5234 if test $pkg = 0; then
5235 cat >>confdefs.h <<\_ACEOF
5236 #define HAVE_GTK_2_4 1
5244 # -------------------------------------------
5245 # smartalloc (default off)
5246 # -------------------------------------------
5247 # Check whether --enable-smartalloc or --disable-smartalloc was given.
5248 if test "${enable_smartalloc+set}" = set; then
5249 enableval="$enable_smartalloc"
5250 if test x$enableval = xno; then
5251 support_smartalloc=no
5255 if test x$support_smartalloc = xyes; then
5256 cat >>confdefs.h <<\_ACEOF
5257 #define SMARTALLOC 1
5262 # -------------------------------------------
5263 # static-tools (default off)
5264 # -------------------------------------------
5265 # Check whether --enable-static-tools or --disable-static-tools was given.
5266 if test "${enable_static_tools+set}" = set; then
5267 enableval="$enable_static_tools"
5268 if test x$enableval = xyes; then
5269 support_static_tools=yes
5274 if test x$support_static_tools = xyes; then
5275 TTOOL_LDFLAGS="-static"
5279 # -------------------------------------------
5280 # static-fd (default off)
5281 # -------------------------------------------
5282 # Check whether --enable-static-fd or --disable-static-fd was given.
5283 if test "${enable_static_fd+set}" = set; then
5284 enableval="$enable_static_fd"
5285 if test x$enableval = xyes; then
5286 support_static_fd=yes
5291 if test x$support_static_fd = xyes; then
5292 STATIC_FD="static-bacula-fd"
5296 # -------------------------------------------
5297 # static-sd (default off)
5298 # -------------------------------------------
5299 # Check whether --enable-static-sd or --disable-static-sd was given.
5300 if test "${enable_static_sd+set}" = set; then
5301 enableval="$enable_static_sd"
5302 if test x$enableval = xyes; then
5303 support_static_sd=yes
5308 if test x$support_static_sd = xyes; then
5309 STATIC_SD="static-bacula-sd"
5313 # -------------------------------------------
5314 # static-dir (default off)
5315 # -------------------------------------------
5316 # Check whether --enable-static-dir or --disable-static-dir was given.
5317 if test "${enable_static_dir+set}" = set; then
5318 enableval="$enable_static_dir"
5319 if test x$enableval = xyes; then
5320 support_static_dir=yes
5325 if test x$support_static_dir = xyes; then
5326 STATIC_DIR="static-bacula-dir"
5330 # -------------------------------------------
5331 # static-cons (default off)
5332 # -------------------------------------------
5333 # Check whether --enable-static-cons or --disable-static-cons was given.
5334 if test "${enable_static_cons+set}" = set; then
5335 enableval="$enable_static_cons"
5336 if test x$enableval = xyes; then
5337 support_static_cons=yes
5344 if test x$support_static_cons = xyes; then
5345 STATIC_CONS="static-bconsole"
5346 STATIC_GNOME_CONS="static-gnome-console"
5347 STATIC_WX_CONS="static-wx-console"
5353 # -------------------------------------------
5354 # client_only (default off)
5355 # -------------------------------------------
5356 # Check whether --enable-client-only or --disable-client-only was given.
5357 if test "${enable_client_only+set}" = set; then
5358 enableval="$enable_client_only"
5359 if test x$enableval = xyes; then
5360 build_client_only=yes
5365 if test x$build_client_only = xno; then
5372 # ---------------------------------------------------
5373 # Check for conio (Bacula readline substitute)(
5374 # ---------------------------------------------------
5375 # this allows you to turn it completely off
5376 # Check whether --enable-conio or --disable-conio was given.
5377 if test "${enable_conio+set}" = set; then
5378 enableval="$enable_conio"
5379 if test x$enableval = xno; then
5385 if test x$support_conio = xyes; then
5386 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5387 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5388 if test "${ac_cv_header_stdc+set}" = set; then
5389 echo $ECHO_N "(cached) $ECHO_C" >&6
5391 cat >conftest.$ac_ext <<_ACEOF
5394 cat confdefs.h >>conftest.$ac_ext
5395 cat >>conftest.$ac_ext <<_ACEOF
5396 /* end confdefs.h. */
5410 rm -f conftest.$ac_objext
5411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5412 (eval $ac_compile) 2>conftest.er1
5414 grep -v '^ *+' conftest.er1 >conftest.err
5416 cat conftest.err >&5
5417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5418 (exit $ac_status); } &&
5419 { ac_try='test -z "$ac_c_werror_flag"
5420 || test ! -s conftest.err'
5421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5425 (exit $ac_status); }; } &&
5426 { ac_try='test -s conftest.$ac_objext'
5427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5431 (exit $ac_status); }; }; then
5432 ac_cv_header_stdc=yes
5434 echo "$as_me: failed program was:" >&5
5435 sed 's/^/| /' conftest.$ac_ext >&5
5437 ac_cv_header_stdc=no
5439 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5441 if test $ac_cv_header_stdc = yes; then
5442 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5443 cat >conftest.$ac_ext <<_ACEOF
5446 cat confdefs.h >>conftest.$ac_ext
5447 cat >>conftest.$ac_ext <<_ACEOF
5448 /* end confdefs.h. */
5452 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5453 $EGREP "memchr" >/dev/null 2>&1; then
5456 ac_cv_header_stdc=no
5462 if test $ac_cv_header_stdc = yes; then
5463 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5464 cat >conftest.$ac_ext <<_ACEOF
5467 cat confdefs.h >>conftest.$ac_ext
5468 cat >>conftest.$ac_ext <<_ACEOF
5469 /* end confdefs.h. */
5473 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5474 $EGREP "free" >/dev/null 2>&1; then
5477 ac_cv_header_stdc=no
5483 if test $ac_cv_header_stdc = yes; then
5484 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5485 if test "$cross_compiling" = yes; then
5488 cat >conftest.$ac_ext <<_ACEOF
5491 cat confdefs.h >>conftest.$ac_ext
5492 cat >>conftest.$ac_ext <<_ACEOF
5493 /* end confdefs.h. */
5495 #if ((' ' & 0x0FF) == 0x020)
5496 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5497 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5499 # define ISLOWER(c) \
5500 (('a' <= (c) && (c) <= 'i') \
5501 || ('j' <= (c) && (c) <= 'r') \
5502 || ('s' <= (c) && (c) <= 'z'))
5503 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5506 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5511 for (i = 0; i < 256; i++)
5512 if (XOR (islower (i), ISLOWER (i))
5513 || toupper (i) != TOUPPER (i))
5518 rm -f conftest$ac_exeext
5519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5520 (eval $ac_link) 2>&5
5522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5528 (exit $ac_status); }; }; then
5531 echo "$as_me: program exited with status $ac_status" >&5
5532 echo "$as_me: failed program was:" >&5
5533 sed 's/^/| /' conftest.$ac_ext >&5
5536 ac_cv_header_stdc=no
5538 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5542 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5543 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5544 if test $ac_cv_header_stdc = yes; then
5546 cat >>confdefs.h <<\_ACEOF
5547 #define STDC_HEADERS 1
5552 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5562 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5563 inttypes.h stdint.h unistd.h
5565 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5566 echo "$as_me:$LINENO: checking for $ac_header" >&5
5567 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5568 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5569 echo $ECHO_N "(cached) $ECHO_C" >&6
5571 cat >conftest.$ac_ext <<_ACEOF
5574 cat confdefs.h >>conftest.$ac_ext
5575 cat >>conftest.$ac_ext <<_ACEOF
5576 /* end confdefs.h. */
5577 $ac_includes_default
5579 #include <$ac_header>
5581 rm -f conftest.$ac_objext
5582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5583 (eval $ac_compile) 2>conftest.er1
5585 grep -v '^ *+' conftest.er1 >conftest.err
5587 cat conftest.err >&5
5588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5589 (exit $ac_status); } &&
5590 { ac_try='test -z "$ac_c_werror_flag"
5591 || test ! -s conftest.err'
5592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596 (exit $ac_status); }; } &&
5597 { ac_try='test -s conftest.$ac_objext'
5598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602 (exit $ac_status); }; }; then
5603 eval "$as_ac_Header=yes"
5605 echo "$as_me: failed program was:" >&5
5606 sed 's/^/| /' conftest.$ac_ext >&5
5608 eval "$as_ac_Header=no"
5610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5612 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5613 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5614 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5615 cat >>confdefs.h <<_ACEOF
5616 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5624 if test "${ac_cv_header_termcap_h+set}" = set; then
5625 echo "$as_me:$LINENO: checking for termcap.h" >&5
5626 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5627 if test "${ac_cv_header_termcap_h+set}" = set; then
5628 echo $ECHO_N "(cached) $ECHO_C" >&6
5630 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5631 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5633 # Is the header compilable?
5634 echo "$as_me:$LINENO: checking termcap.h usability" >&5
5635 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
5636 cat >conftest.$ac_ext <<_ACEOF
5639 cat confdefs.h >>conftest.$ac_ext
5640 cat >>conftest.$ac_ext <<_ACEOF
5641 /* end confdefs.h. */
5642 $ac_includes_default
5643 #include <termcap.h>
5645 rm -f conftest.$ac_objext
5646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5647 (eval $ac_compile) 2>conftest.er1
5649 grep -v '^ *+' conftest.er1 >conftest.err
5651 cat conftest.err >&5
5652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5653 (exit $ac_status); } &&
5654 { ac_try='test -z "$ac_c_werror_flag"
5655 || test ! -s conftest.err'
5656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5660 (exit $ac_status); }; } &&
5661 { ac_try='test -s conftest.$ac_objext'
5662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666 (exit $ac_status); }; }; then
5667 ac_header_compiler=yes
5669 echo "$as_me: failed program was:" >&5
5670 sed 's/^/| /' conftest.$ac_ext >&5
5672 ac_header_compiler=no
5674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5675 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5676 echo "${ECHO_T}$ac_header_compiler" >&6
5678 # Is the header present?
5679 echo "$as_me:$LINENO: checking termcap.h presence" >&5
5680 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
5681 cat >conftest.$ac_ext <<_ACEOF
5684 cat confdefs.h >>conftest.$ac_ext
5685 cat >>conftest.$ac_ext <<_ACEOF
5686 /* end confdefs.h. */
5687 #include <termcap.h>
5689 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5690 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5692 grep -v '^ *+' conftest.er1 >conftest.err
5694 cat conftest.err >&5
5695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696 (exit $ac_status); } >/dev/null; then
5697 if test -s conftest.err; then
5698 ac_cpp_err=$ac_c_preproc_warn_flag
5699 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5706 if test -z "$ac_cpp_err"; then
5707 ac_header_preproc=yes
5709 echo "$as_me: failed program was:" >&5
5710 sed 's/^/| /' conftest.$ac_ext >&5
5712 ac_header_preproc=no
5714 rm -f conftest.err conftest.$ac_ext
5715 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5716 echo "${ECHO_T}$ac_header_preproc" >&6
5718 # So? What about this header?
5719 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5721 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
5722 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5723 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
5724 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
5725 ac_header_preproc=yes
5728 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
5729 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
5730 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
5731 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
5732 { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
5733 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
5734 { echo "$as_me:$LINENO: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&5
5735 echo "$as_me: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
5736 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5737 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5738 { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
5739 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
5742 ## ------------------------------------------ ##
5743 ## Report this to the AC_PACKAGE_NAME lists. ##
5744 ## ------------------------------------------ ##
5747 sed "s/^/$as_me: WARNING: /" >&2
5750 echo "$as_me:$LINENO: checking for termcap.h" >&5
5751 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5752 if test "${ac_cv_header_termcap_h+set}" = set; then
5753 echo $ECHO_N "(cached) $ECHO_C" >&6
5755 ac_cv_header_termcap_h=$ac_header_preproc
5757 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5758 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5761 if test $ac_cv_header_termcap_h = yes; then
5762 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5763 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
5764 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5765 echo $ECHO_N "(cached) $ECHO_C" >&6
5767 ac_check_lib_save_LIBS=$LIBS
5768 LIBS="-ltermcap $LIBS"
5769 cat >conftest.$ac_ext <<_ACEOF
5772 cat confdefs.h >>conftest.$ac_ext
5773 cat >>conftest.$ac_ext <<_ACEOF
5774 /* end confdefs.h. */
5776 /* Override any gcc2 internal prototype to avoid an error. */
5780 /* We use char because int might match the return type of a gcc2
5781 builtin and then its argument prototype would still apply. */
5791 rm -f conftest.$ac_objext conftest$ac_exeext
5792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5793 (eval $ac_link) 2>conftest.er1
5795 grep -v '^ *+' conftest.er1 >conftest.err
5797 cat conftest.err >&5
5798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799 (exit $ac_status); } &&
5800 { ac_try='test -z "$ac_c_werror_flag"
5801 || test ! -s conftest.err'
5802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5806 (exit $ac_status); }; } &&
5807 { ac_try='test -s conftest$ac_exeext'
5808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812 (exit $ac_status); }; }; then
5813 ac_cv_lib_termcap_tgetent=yes
5815 echo "$as_me: failed program was:" >&5
5816 sed 's/^/| /' conftest.$ac_ext >&5
5818 ac_cv_lib_termcap_tgetent=no
5820 rm -f conftest.err conftest.$ac_objext \
5821 conftest$ac_exeext conftest.$ac_ext
5822 LIBS=$ac_check_lib_save_LIBS
5824 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5825 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
5826 if test $ac_cv_lib_termcap_tgetent = yes; then
5827 CONS_LIBS="-ltermcap"
5833 cat >>confdefs.h <<\_ACEOF
5834 #define HAVE_CONIO 1
5839 echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
5840 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
5841 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
5842 echo $ECHO_N "(cached) $ECHO_C" >&6
5844 ac_check_lib_save_LIBS=$LIBS
5845 LIBS="-lncurses $LIBS"
5846 cat >conftest.$ac_ext <<_ACEOF
5849 cat confdefs.h >>conftest.$ac_ext
5850 cat >>conftest.$ac_ext <<_ACEOF
5851 /* end confdefs.h. */
5853 /* Override any gcc2 internal prototype to avoid an error. */
5857 /* We use char because int might match the return type of a gcc2
5858 builtin and then its argument prototype would still apply. */
5868 rm -f conftest.$ac_objext conftest$ac_exeext
5869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5870 (eval $ac_link) 2>conftest.er1
5872 grep -v '^ *+' conftest.er1 >conftest.err
5874 cat conftest.err >&5
5875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876 (exit $ac_status); } &&
5877 { ac_try='test -z "$ac_c_werror_flag"
5878 || test ! -s conftest.err'
5879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5883 (exit $ac_status); }; } &&
5884 { ac_try='test -s conftest$ac_exeext'
5885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5889 (exit $ac_status); }; }; then
5890 ac_cv_lib_ncurses_tgetent=yes
5892 echo "$as_me: failed program was:" >&5
5893 sed 's/^/| /' conftest.$ac_ext >&5
5895 ac_cv_lib_ncurses_tgetent=no
5897 rm -f conftest.err conftest.$ac_objext \
5898 conftest$ac_exeext conftest.$ac_ext
5899 LIBS=$ac_check_lib_save_LIBS
5901 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
5902 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
5903 if test $ac_cv_lib_ncurses_tgetent = yes; then
5904 CONS_LIBS="-lncurses"
5910 cat >>confdefs.h <<\_ACEOF
5911 #define HAVE_CONIO 1
5924 for ac_header in curses.h
5926 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5927 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5928 echo "$as_me:$LINENO: checking for $ac_header" >&5
5929 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5930 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5931 echo $ECHO_N "(cached) $ECHO_C" >&6
5933 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5934 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5936 # Is the header compilable?
5937 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5938 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5939 cat >conftest.$ac_ext <<_ACEOF
5942 cat confdefs.h >>conftest.$ac_ext
5943 cat >>conftest.$ac_ext <<_ACEOF
5944 /* end confdefs.h. */
5945 $ac_includes_default
5946 #include <$ac_header>
5948 rm -f conftest.$ac_objext
5949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5950 (eval $ac_compile) 2>conftest.er1
5952 grep -v '^ *+' conftest.er1 >conftest.err
5954 cat conftest.err >&5
5955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5956 (exit $ac_status); } &&
5957 { ac_try='test -z "$ac_c_werror_flag"
5958 || test ! -s conftest.err'
5959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5963 (exit $ac_status); }; } &&
5964 { ac_try='test -s conftest.$ac_objext'
5965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5969 (exit $ac_status); }; }; then
5970 ac_header_compiler=yes
5972 echo "$as_me: failed program was:" >&5
5973 sed 's/^/| /' conftest.$ac_ext >&5
5975 ac_header_compiler=no
5977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5978 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5979 echo "${ECHO_T}$ac_header_compiler" >&6
5981 # Is the header present?
5982 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5983 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5984 cat >conftest.$ac_ext <<_ACEOF
5987 cat confdefs.h >>conftest.$ac_ext
5988 cat >>conftest.$ac_ext <<_ACEOF
5989 /* end confdefs.h. */
5990 #include <$ac_header>
5992 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5993 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5995 grep -v '^ *+' conftest.er1 >conftest.err
5997 cat conftest.err >&5
5998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5999 (exit $ac_status); } >/dev/null; then
6000 if test -s conftest.err; then
6001 ac_cpp_err=$ac_c_preproc_warn_flag
6002 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6009 if test -z "$ac_cpp_err"; then
6010 ac_header_preproc=yes
6012 echo "$as_me: failed program was:" >&5
6013 sed 's/^/| /' conftest.$ac_ext >&5
6015 ac_header_preproc=no
6017 rm -f conftest.err conftest.$ac_ext
6018 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6019 echo "${ECHO_T}$ac_header_preproc" >&6
6021 # So? What about this header?
6022 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6024 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6025 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6026 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6027 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6028 ac_header_preproc=yes
6031 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6032 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6033 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6034 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6035 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6036 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6037 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6038 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6039 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6040 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6041 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6042 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6045 ## ------------------------------------------ ##
6046 ## Report this to the AC_PACKAGE_NAME lists. ##
6047 ## ------------------------------------------ ##
6050 sed "s/^/$as_me: WARNING: /" >&2
6053 echo "$as_me:$LINENO: checking for $ac_header" >&5
6054 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6055 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6056 echo $ECHO_N "(cached) $ECHO_C" >&6
6058 eval "$as_ac_Header=\$ac_header_preproc"
6060 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6061 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6064 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6065 cat >>confdefs.h <<_ACEOF
6066 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6073 echo "$as_me:$LINENO: checking for term.h" >&5
6074 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
6075 if test "${ac_cv_header_term_h+set}" = set; then
6076 echo $ECHO_N "(cached) $ECHO_C" >&6
6078 cat >conftest.$ac_ext <<_ACEOF
6081 cat confdefs.h >>conftest.$ac_ext
6082 cat >>conftest.$ac_ext <<_ACEOF
6083 /* end confdefs.h. */
6091 rm -f conftest.$ac_objext
6092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6093 (eval $ac_compile) 2>conftest.er1
6095 grep -v '^ *+' conftest.er1 >conftest.err
6097 cat conftest.err >&5
6098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099 (exit $ac_status); } &&
6100 { ac_try='test -z "$ac_c_werror_flag"
6101 || test ! -s conftest.err'
6102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6106 (exit $ac_status); }; } &&
6107 { ac_try='test -s conftest.$ac_objext'
6108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112 (exit $ac_status); }; }; then
6113 ac_cv_header_term_h=yes
6115 echo "$as_me: failed program was:" >&5
6116 sed 's/^/| /' conftest.$ac_ext >&5
6118 ac_cv_header_term_h=no
6120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6122 echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
6123 echo "${ECHO_T}$ac_cv_header_term_h" >&6
6124 if test $ac_cv_header_term_h = yes; then
6125 echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
6126 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
6127 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
6128 echo $ECHO_N "(cached) $ECHO_C" >&6
6130 ac_check_lib_save_LIBS=$LIBS
6131 LIBS="-lcurses $LIBS"
6132 cat >conftest.$ac_ext <<_ACEOF
6135 cat confdefs.h >>conftest.$ac_ext
6136 cat >>conftest.$ac_ext <<_ACEOF
6137 /* end confdefs.h. */
6139 /* Override any gcc2 internal prototype to avoid an error. */
6143 /* We use char because int might match the return type of a gcc2
6144 builtin and then its argument prototype would still apply. */
6154 rm -f conftest.$ac_objext conftest$ac_exeext
6155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6156 (eval $ac_link) 2>conftest.er1
6158 grep -v '^ *+' conftest.er1 >conftest.err
6160 cat conftest.err >&5
6161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162 (exit $ac_status); } &&
6163 { ac_try='test -z "$ac_c_werror_flag"
6164 || test ! -s conftest.err'
6165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169 (exit $ac_status); }; } &&
6170 { ac_try='test -s conftest$ac_exeext'
6171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175 (exit $ac_status); }; }; then
6176 ac_cv_lib_curses_tgetent=yes
6178 echo "$as_me: failed program was:" >&5
6179 sed 's/^/| /' conftest.$ac_ext >&5
6181 ac_cv_lib_curses_tgetent=no
6183 rm -f conftest.err conftest.$ac_objext \
6184 conftest$ac_exeext conftest.$ac_ext
6185 LIBS=$ac_check_lib_save_LIBS
6187 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
6188 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
6189 if test $ac_cv_lib_curses_tgetent = yes; then
6190 CONS_LIBS="-lcurses"
6196 cat >>confdefs.h <<\_ACEOF
6197 #define HAVE_CONIO 1
6205 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
6216 # ---------------------------------------------------
6217 # Check for readline support/directory (default off)
6218 # ---------------------------------------------------
6219 # this allows you to turn it completely off
6220 # Check whether --enable-readline or --disable-readline was given.
6221 if test "${enable_readline+set}" = set; then
6222 enableval="$enable_readline"
6223 if test x$enableval = xno; then
6230 if test x$support_readline = xyes; then
6232 # Check whether --with-readline or --without-readline was given.
6233 if test "${with_readline+set}" = set; then
6234 withval="$with_readline"
6236 case "$with_readline" in
6239 if test "$with_readline" != "yes"; then
6240 CONS_INC="-I${with_readline}"
6241 CONS_LDFLAGS="-L$with_readline"
6243 with_readline="/usr/include/readline"
6245 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
6246 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6247 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
6248 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
6249 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6250 echo $ECHO_N "(cached) $ECHO_C" >&6
6252 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6253 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6255 # Is the header compilable?
6256 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
6257 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
6258 cat >conftest.$ac_ext <<_ACEOF
6261 cat confdefs.h >>conftest.$ac_ext
6262 cat >>conftest.$ac_ext <<_ACEOF
6263 /* end confdefs.h. */
6264 $ac_includes_default
6265 #include <${with_readline}/readline.h>
6267 rm -f conftest.$ac_objext
6268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6269 (eval $ac_compile) 2>conftest.er1
6271 grep -v '^ *+' conftest.er1 >conftest.err
6273 cat conftest.err >&5
6274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275 (exit $ac_status); } &&
6276 { ac_try='test -z "$ac_c_werror_flag"
6277 || test ! -s conftest.err'
6278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6282 (exit $ac_status); }; } &&
6283 { ac_try='test -s conftest.$ac_objext'
6284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6288 (exit $ac_status); }; }; then
6289 ac_header_compiler=yes
6291 echo "$as_me: failed program was:" >&5
6292 sed 's/^/| /' conftest.$ac_ext >&5
6294 ac_header_compiler=no
6296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6297 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6298 echo "${ECHO_T}$ac_header_compiler" >&6
6300 # Is the header present?
6301 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
6302 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
6303 cat >conftest.$ac_ext <<_ACEOF
6306 cat confdefs.h >>conftest.$ac_ext
6307 cat >>conftest.$ac_ext <<_ACEOF
6308 /* end confdefs.h. */
6309 #include <${with_readline}/readline.h>
6311 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6312 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6314 grep -v '^ *+' conftest.er1 >conftest.err
6316 cat conftest.err >&5
6317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318 (exit $ac_status); } >/dev/null; then
6319 if test -s conftest.err; then
6320 ac_cpp_err=$ac_c_preproc_warn_flag
6321 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6328 if test -z "$ac_cpp_err"; then
6329 ac_header_preproc=yes
6331 echo "$as_me: failed program was:" >&5
6332 sed 's/^/| /' conftest.$ac_ext >&5
6334 ac_header_preproc=no
6336 rm -f conftest.err conftest.$ac_ext
6337 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6338 echo "${ECHO_T}$ac_header_preproc" >&6
6340 # So? What about this header?
6341 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6343 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6344 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6345 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
6346 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
6347 ac_header_preproc=yes
6350 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
6351 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
6352 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
6353 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
6354 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
6355 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
6356 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&5
6357 echo "$as_me: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
6358 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
6359 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
6360 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
6361 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
6364 ## ------------------------------------------ ##
6365 ## Report this to the AC_PACKAGE_NAME lists. ##
6366 ## ------------------------------------------ ##
6369 sed "s/^/$as_me: WARNING: /" >&2
6372 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
6373 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
6374 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6375 echo $ECHO_N "(cached) $ECHO_C" >&6
6377 eval "$as_ac_Header=\$ac_header_preproc"
6379 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6380 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6383 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6384 cat >>confdefs.h <<\_ACEOF
6385 #define HAVE_READLINE 1
6388 CONS_LIBS="-lreadline -ltermcap"
6393 echo "readline.h not found. readline turned off ..."
6405 # check for standard readline library
6406 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6407 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
6408 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
6409 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6410 echo $ECHO_N "(cached) $ECHO_C" >&6
6412 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
6413 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
6415 # Is the header compilable?
6416 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
6417 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
6418 cat >conftest.$ac_ext <<_ACEOF
6421 cat confdefs.h >>conftest.$ac_ext
6422 cat >>conftest.$ac_ext <<_ACEOF
6423 /* end confdefs.h. */
6424 $ac_includes_default
6425 #include </usr/include/readline/readline.h>
6427 rm -f conftest.$ac_objext
6428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6429 (eval $ac_compile) 2>conftest.er1
6431 grep -v '^ *+' conftest.er1 >conftest.err
6433 cat conftest.err >&5
6434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6435 (exit $ac_status); } &&
6436 { ac_try='test -z "$ac_c_werror_flag"
6437 || test ! -s conftest.err'
6438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6442 (exit $ac_status); }; } &&
6443 { ac_try='test -s conftest.$ac_objext'
6444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448 (exit $ac_status); }; }; then
6449 ac_header_compiler=yes
6451 echo "$as_me: failed program was:" >&5
6452 sed 's/^/| /' conftest.$ac_ext >&5
6454 ac_header_compiler=no
6456 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6457 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6458 echo "${ECHO_T}$ac_header_compiler" >&6
6460 # Is the header present?
6461 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
6462 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
6463 cat >conftest.$ac_ext <<_ACEOF
6466 cat confdefs.h >>conftest.$ac_ext
6467 cat >>conftest.$ac_ext <<_ACEOF
6468 /* end confdefs.h. */
6469 #include </usr/include/readline/readline.h>
6471 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6472 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6474 grep -v '^ *+' conftest.er1 >conftest.err
6476 cat conftest.err >&5
6477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6478 (exit $ac_status); } >/dev/null; then
6479 if test -s conftest.err; then
6480 ac_cpp_err=$ac_c_preproc_warn_flag
6481 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6488 if test -z "$ac_cpp_err"; then
6489 ac_header_preproc=yes
6491 echo "$as_me: failed program was:" >&5
6492 sed 's/^/| /' conftest.$ac_ext >&5
6494 ac_header_preproc=no
6496 rm -f conftest.err conftest.$ac_ext
6497 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6498 echo "${ECHO_T}$ac_header_preproc" >&6
6500 # So? What about this header?
6501 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6503 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6504 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6505 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
6506 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
6507 ac_header_preproc=yes
6510 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
6511 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
6512 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
6513 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
6514 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
6515 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
6516 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
6517 echo "$as_me: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
6518 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
6519 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6520 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
6521 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
6524 ## ------------------------------------------ ##
6525 ## Report this to the AC_PACKAGE_NAME lists. ##
6526 ## ------------------------------------------ ##
6529 sed "s/^/$as_me: WARNING: /" >&2
6532 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
6533 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
6534 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6535 echo $ECHO_N "(cached) $ECHO_C" >&6
6537 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
6539 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
6540 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
6543 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
6544 cat >>confdefs.h <<\_ACEOF
6545 #define HAVE_READLINE 1
6549 CONS_INC="-I/usr/include/readline"
6550 CONS_LIBS="-lreadline -ltermcap"
6554 # Did not find standard library, so try Bacula's default
6555 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
6556 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6557 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
6558 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
6559 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6560 echo $ECHO_N "(cached) $ECHO_C" >&6
6562 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6563 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6565 # Is the header compilable?
6566 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
6567 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
6568 cat >conftest.$ac_ext <<_ACEOF
6571 cat confdefs.h >>conftest.$ac_ext
6572 cat >>conftest.$ac_ext <<_ACEOF
6573 /* end confdefs.h. */
6574 $ac_includes_default
6575 #include <${TOP_DIR}/depkgs/readline/readline.h>
6577 rm -f conftest.$ac_objext
6578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6579 (eval $ac_compile) 2>conftest.er1
6581 grep -v '^ *+' conftest.er1 >conftest.err
6583 cat conftest.err >&5
6584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585 (exit $ac_status); } &&
6586 { ac_try='test -z "$ac_c_werror_flag"
6587 || test ! -s conftest.err'
6588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6592 (exit $ac_status); }; } &&
6593 { ac_try='test -s conftest.$ac_objext'
6594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6598 (exit $ac_status); }; }; then
6599 ac_header_compiler=yes
6601 echo "$as_me: failed program was:" >&5
6602 sed 's/^/| /' conftest.$ac_ext >&5
6604 ac_header_compiler=no
6606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6607 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6608 echo "${ECHO_T}$ac_header_compiler" >&6
6610 # Is the header present?
6611 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
6612 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
6613 cat >conftest.$ac_ext <<_ACEOF
6616 cat confdefs.h >>conftest.$ac_ext
6617 cat >>conftest.$ac_ext <<_ACEOF
6618 /* end confdefs.h. */
6619 #include <${TOP_DIR}/depkgs/readline/readline.h>
6621 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6622 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6624 grep -v '^ *+' conftest.er1 >conftest.err
6626 cat conftest.err >&5
6627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6628 (exit $ac_status); } >/dev/null; then
6629 if test -s conftest.err; then
6630 ac_cpp_err=$ac_c_preproc_warn_flag
6631 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6638 if test -z "$ac_cpp_err"; then
6639 ac_header_preproc=yes
6641 echo "$as_me: failed program was:" >&5
6642 sed 's/^/| /' conftest.$ac_ext >&5
6644 ac_header_preproc=no
6646 rm -f conftest.err conftest.$ac_ext
6647 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6648 echo "${ECHO_T}$ac_header_preproc" >&6
6650 # So? What about this header?
6651 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6653 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6654 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6655 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
6656 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
6657 ac_header_preproc=yes
6660 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
6661 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
6662 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
6663 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
6664 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
6665 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
6666 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
6667 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
6668 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
6669 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6670 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
6671 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
6674 ## ------------------------------------------ ##
6675 ## Report this to the AC_PACKAGE_NAME lists. ##
6676 ## ------------------------------------------ ##
6679 sed "s/^/$as_me: WARNING: /" >&2
6682 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
6683 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
6684 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6685 echo $ECHO_N "(cached) $ECHO_C" >&6
6687 eval "$as_ac_Header=\$ac_header_preproc"
6689 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6690 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6693 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6694 cat >>confdefs.h <<\_ACEOF
6695 #define HAVE_READLINE 1
6699 CONS_INC="-I${TOP_DIR}/depkgs/readline"
6700 CONS_LIBS="-lreadline -lhistory -ltermcap"
6701 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
6702 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
6706 echo "readline.h not found. readline turned off ..."
6732 # Minimal stuff for readline Makefile configuration
6735 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6736 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
6737 if test "${ac_cv_header_stat_broken+set}" = set; then
6738 echo $ECHO_N "(cached) $ECHO_C" >&6
6740 cat >conftest.$ac_ext <<_ACEOF
6743 cat confdefs.h >>conftest.$ac_ext
6744 cat >>conftest.$ac_ext <<_ACEOF
6745 /* end confdefs.h. */
6746 #include <sys/types.h>
6747 #include <sys/stat.h>
6749 #if defined(S_ISBLK) && defined(S_IFDIR)
6750 # if S_ISBLK (S_IFDIR)
6755 #if defined(S_ISBLK) && defined(S_IFCHR)
6756 # if S_ISBLK (S_IFCHR)
6761 #if defined(S_ISLNK) && defined(S_IFREG)
6762 # if S_ISLNK (S_IFREG)
6767 #if defined(S_ISSOCK) && defined(S_IFREG)
6768 # if S_ISSOCK (S_IFREG)
6774 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6775 $EGREP "You lose" >/dev/null 2>&1; then
6776 ac_cv_header_stat_broken=yes
6778 ac_cv_header_stat_broken=no
6783 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6784 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
6785 if test $ac_cv_header_stat_broken = yes; then
6787 cat >>confdefs.h <<\_ACEOF
6788 #define STAT_MACROS_BROKEN 1
6799 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6800 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6801 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6802 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6803 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6804 echo $ECHO_N "(cached) $ECHO_C" >&6
6806 cat >conftest.$ac_ext <<_ACEOF
6809 cat confdefs.h >>conftest.$ac_ext
6810 cat >>conftest.$ac_ext <<_ACEOF
6811 /* end confdefs.h. */
6812 #include <sys/types.h>
6824 rm -f conftest.$ac_objext
6825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6826 (eval $ac_compile) 2>conftest.er1
6828 grep -v '^ *+' conftest.er1 >conftest.err
6830 cat conftest.err >&5
6831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6832 (exit $ac_status); } &&
6833 { ac_try='test -z "$ac_c_werror_flag"
6834 || test ! -s conftest.err'
6835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6839 (exit $ac_status); }; } &&
6840 { ac_try='test -s conftest.$ac_objext'
6841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6845 (exit $ac_status); }; }; then
6846 eval "$as_ac_Header=yes"
6848 echo "$as_me: failed program was:" >&5
6849 sed 's/^/| /' conftest.$ac_ext >&5
6851 eval "$as_ac_Header=no"
6853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6855 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6856 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6857 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6858 cat >>confdefs.h <<_ACEOF
6859 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6862 ac_header_dirent=$ac_hdr; break
6866 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6867 if test $ac_header_dirent = dirent.h; then
6868 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6869 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6870 if test "${ac_cv_search_opendir+set}" = set; then
6871 echo $ECHO_N "(cached) $ECHO_C" >&6
6873 ac_func_search_save_LIBS=$LIBS
6874 ac_cv_search_opendir=no
6875 cat >conftest.$ac_ext <<_ACEOF
6878 cat confdefs.h >>conftest.$ac_ext
6879 cat >>conftest.$ac_ext <<_ACEOF
6880 /* end confdefs.h. */
6882 /* Override any gcc2 internal prototype to avoid an error. */
6886 /* We use char because int might match the return type of a gcc2
6887 builtin and then its argument prototype would still apply. */
6897 rm -f conftest.$ac_objext conftest$ac_exeext
6898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6899 (eval $ac_link) 2>conftest.er1
6901 grep -v '^ *+' conftest.er1 >conftest.err
6903 cat conftest.err >&5
6904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6905 (exit $ac_status); } &&
6906 { ac_try='test -z "$ac_c_werror_flag"
6907 || test ! -s conftest.err'
6908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6912 (exit $ac_status); }; } &&
6913 { ac_try='test -s conftest$ac_exeext'
6914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6918 (exit $ac_status); }; }; then
6919 ac_cv_search_opendir="none required"
6921 echo "$as_me: failed program was:" >&5
6922 sed 's/^/| /' conftest.$ac_ext >&5
6925 rm -f conftest.err conftest.$ac_objext \
6926 conftest$ac_exeext conftest.$ac_ext
6927 if test "$ac_cv_search_opendir" = no; then
6928 for ac_lib in dir; do
6929 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6930 cat >conftest.$ac_ext <<_ACEOF
6933 cat confdefs.h >>conftest.$ac_ext
6934 cat >>conftest.$ac_ext <<_ACEOF
6935 /* end confdefs.h. */
6937 /* Override any gcc2 internal prototype to avoid an error. */
6941 /* We use char because int might match the return type of a gcc2
6942 builtin and then its argument prototype would still apply. */
6952 rm -f conftest.$ac_objext conftest$ac_exeext
6953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6954 (eval $ac_link) 2>conftest.er1
6956 grep -v '^ *+' conftest.er1 >conftest.err
6958 cat conftest.err >&5
6959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6960 (exit $ac_status); } &&
6961 { ac_try='test -z "$ac_c_werror_flag"
6962 || test ! -s conftest.err'
6963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6967 (exit $ac_status); }; } &&
6968 { ac_try='test -s conftest$ac_exeext'
6969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973 (exit $ac_status); }; }; then
6974 ac_cv_search_opendir="-l$ac_lib"
6977 echo "$as_me: failed program was:" >&5
6978 sed 's/^/| /' conftest.$ac_ext >&5
6981 rm -f conftest.err conftest.$ac_objext \
6982 conftest$ac_exeext conftest.$ac_ext
6985 LIBS=$ac_func_search_save_LIBS
6987 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6988 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6989 if test "$ac_cv_search_opendir" != no; then
6990 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6995 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6996 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6997 if test "${ac_cv_search_opendir+set}" = set; then
6998 echo $ECHO_N "(cached) $ECHO_C" >&6
7000 ac_func_search_save_LIBS=$LIBS
7001 ac_cv_search_opendir=no
7002 cat >conftest.$ac_ext <<_ACEOF
7005 cat confdefs.h >>conftest.$ac_ext
7006 cat >>conftest.$ac_ext <<_ACEOF
7007 /* end confdefs.h. */
7009 /* Override any gcc2 internal prototype to avoid an error. */
7013 /* We use char because int might match the return type of a gcc2
7014 builtin and then its argument prototype would still apply. */
7024 rm -f conftest.$ac_objext conftest$ac_exeext
7025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7026 (eval $ac_link) 2>conftest.er1
7028 grep -v '^ *+' conftest.er1 >conftest.err
7030 cat conftest.err >&5
7031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7032 (exit $ac_status); } &&
7033 { ac_try='test -z "$ac_c_werror_flag"
7034 || test ! -s conftest.err'
7035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7039 (exit $ac_status); }; } &&
7040 { ac_try='test -s conftest$ac_exeext'
7041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7045 (exit $ac_status); }; }; then
7046 ac_cv_search_opendir="none required"
7048 echo "$as_me: failed program was:" >&5
7049 sed 's/^/| /' conftest.$ac_ext >&5
7052 rm -f conftest.err conftest.$ac_objext \
7053 conftest$ac_exeext conftest.$ac_ext
7054 if test "$ac_cv_search_opendir" = no; then
7056 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7057 cat >conftest.$ac_ext <<_ACEOF
7060 cat confdefs.h >>conftest.$ac_ext
7061 cat >>conftest.$ac_ext <<_ACEOF
7062 /* end confdefs.h. */
7064 /* Override any gcc2 internal prototype to avoid an error. */
7068 /* We use char because int might match the return type of a gcc2
7069 builtin and then its argument prototype would still apply. */
7079 rm -f conftest.$ac_objext conftest$ac_exeext
7080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7081 (eval $ac_link) 2>conftest.er1
7083 grep -v '^ *+' conftest.er1 >conftest.err
7085 cat conftest.err >&5
7086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7087 (exit $ac_status); } &&
7088 { ac_try='test -z "$ac_c_werror_flag"
7089 || test ! -s conftest.err'
7090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7094 (exit $ac_status); }; } &&
7095 { ac_try='test -s conftest$ac_exeext'
7096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7100 (exit $ac_status); }; }; then
7101 ac_cv_search_opendir="-l$ac_lib"
7104 echo "$as_me: failed program was:" >&5
7105 sed 's/^/| /' conftest.$ac_ext >&5
7108 rm -f conftest.err conftest.$ac_objext \
7109 conftest$ac_exeext conftest.$ac_ext
7112 LIBS=$ac_func_search_save_LIBS
7114 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7115 echo "${ECHO_T}$ac_cv_search_opendir" >&6
7116 if test "$ac_cv_search_opendir" != no; then
7117 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
7131 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
7133 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7134 echo "$as_me:$LINENO: checking for $ac_func" >&5
7135 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7136 if eval "test \"\${$as_ac_var+set}\" = set"; then
7137 echo $ECHO_N "(cached) $ECHO_C" >&6
7139 cat >conftest.$ac_ext <<_ACEOF
7142 cat confdefs.h >>conftest.$ac_ext
7143 cat >>conftest.$ac_ext <<_ACEOF
7144 /* end confdefs.h. */
7145 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7146 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7147 #define $ac_func innocuous_$ac_func
7149 /* System header to define __stub macros and hopefully few prototypes,
7150 which can conflict with char $ac_func (); below.
7151 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7152 <limits.h> exists even on freestanding compilers. */
7155 # include <limits.h>
7157 # include <assert.h>
7162 /* Override any gcc2 internal prototype to avoid an error. */
7167 /* We use char because int might match the return type of a gcc2
7168 builtin and then its argument prototype would still apply. */
7170 /* The GNU C library defines this for functions which it implements
7171 to always fail with ENOSYS. Some functions are actually named
7172 something starting with __ and the normal name is an alias. */
7173 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7176 char (*f) () = $ac_func;
7185 return f != $ac_func;
7190 rm -f conftest.$ac_objext conftest$ac_exeext
7191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7192 (eval $ac_link) 2>conftest.er1
7194 grep -v '^ *+' conftest.er1 >conftest.err
7196 cat conftest.err >&5
7197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7198 (exit $ac_status); } &&
7199 { ac_try='test -z "$ac_c_werror_flag"
7200 || test ! -s conftest.err'
7201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7205 (exit $ac_status); }; } &&
7206 { ac_try='test -s conftest$ac_exeext'
7207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7211 (exit $ac_status); }; }; then
7212 eval "$as_ac_var=yes"
7214 echo "$as_me: failed program was:" >&5
7215 sed 's/^/| /' conftest.$ac_ext >&5
7217 eval "$as_ac_var=no"
7219 rm -f conftest.err conftest.$ac_objext \
7220 conftest$ac_exeext conftest.$ac_ext
7222 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7223 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7224 if test `eval echo '${'$as_ac_var'}'` = yes; then
7225 cat >>confdefs.h <<_ACEOF
7226 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7234 for ac_func in nanosleep nl_langinfo
7236 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7237 echo "$as_me:$LINENO: checking for $ac_func" >&5
7238 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7239 if eval "test \"\${$as_ac_var+set}\" = set"; then
7240 echo $ECHO_N "(cached) $ECHO_C" >&6
7242 cat >conftest.$ac_ext <<_ACEOF
7245 cat confdefs.h >>conftest.$ac_ext
7246 cat >>conftest.$ac_ext <<_ACEOF
7247 /* end confdefs.h. */
7248 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7249 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7250 #define $ac_func innocuous_$ac_func
7252 /* System header to define __stub macros and hopefully few prototypes,
7253 which can conflict with char $ac_func (); below.
7254 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7255 <limits.h> exists even on freestanding compilers. */
7258 # include <limits.h>
7260 # include <assert.h>
7265 /* Override any gcc2 internal prototype to avoid an error. */
7270 /* We use char because int might match the return type of a gcc2
7271 builtin and then its argument prototype would still apply. */
7273 /* The GNU C library defines this for functions which it implements
7274 to always fail with ENOSYS. Some functions are actually named
7275 something starting with __ and the normal name is an alias. */
7276 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7279 char (*f) () = $ac_func;
7288 return f != $ac_func;
7293 rm -f conftest.$ac_objext conftest$ac_exeext
7294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7295 (eval $ac_link) 2>conftest.er1
7297 grep -v '^ *+' conftest.er1 >conftest.err
7299 cat conftest.err >&5
7300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7301 (exit $ac_status); } &&
7302 { ac_try='test -z "$ac_c_werror_flag"
7303 || test ! -s conftest.err'
7304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7308 (exit $ac_status); }; } &&
7309 { ac_try='test -s conftest$ac_exeext'
7310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7314 (exit $ac_status); }; }; then
7315 eval "$as_ac_var=yes"
7317 echo "$as_me: failed program was:" >&5
7318 sed 's/^/| /' conftest.$ac_ext >&5
7320 eval "$as_ac_var=no"
7322 rm -f conftest.err conftest.$ac_objext \
7323 conftest$ac_exeext conftest.$ac_ext
7325 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7326 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7327 if test `eval echo '${'$as_ac_var'}'` = yes; then
7328 cat >>confdefs.h <<_ACEOF
7329 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7336 for ac_header in varargs.h
7338 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7339 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7340 echo "$as_me:$LINENO: checking for $ac_header" >&5
7341 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7342 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7343 echo $ECHO_N "(cached) $ECHO_C" >&6
7345 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7346 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7348 # Is the header compilable?
7349 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7350 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7351 cat >conftest.$ac_ext <<_ACEOF
7354 cat confdefs.h >>conftest.$ac_ext
7355 cat >>conftest.$ac_ext <<_ACEOF
7356 /* end confdefs.h. */
7357 $ac_includes_default
7358 #include <$ac_header>
7360 rm -f conftest.$ac_objext
7361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7362 (eval $ac_compile) 2>conftest.er1
7364 grep -v '^ *+' conftest.er1 >conftest.err
7366 cat conftest.err >&5
7367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7368 (exit $ac_status); } &&
7369 { ac_try='test -z "$ac_c_werror_flag"
7370 || test ! -s conftest.err'
7371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7375 (exit $ac_status); }; } &&
7376 { ac_try='test -s conftest.$ac_objext'
7377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7381 (exit $ac_status); }; }; then
7382 ac_header_compiler=yes
7384 echo "$as_me: failed program was:" >&5
7385 sed 's/^/| /' conftest.$ac_ext >&5
7387 ac_header_compiler=no
7389 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7390 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7391 echo "${ECHO_T}$ac_header_compiler" >&6
7393 # Is the header present?
7394 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7395 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7396 cat >conftest.$ac_ext <<_ACEOF
7399 cat confdefs.h >>conftest.$ac_ext
7400 cat >>conftest.$ac_ext <<_ACEOF
7401 /* end confdefs.h. */
7402 #include <$ac_header>
7404 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7405 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7407 grep -v '^ *+' conftest.er1 >conftest.err
7409 cat conftest.err >&5
7410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7411 (exit $ac_status); } >/dev/null; then
7412 if test -s conftest.err; then
7413 ac_cpp_err=$ac_c_preproc_warn_flag
7414 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7421 if test -z "$ac_cpp_err"; then
7422 ac_header_preproc=yes
7424 echo "$as_me: failed program was:" >&5
7425 sed 's/^/| /' conftest.$ac_ext >&5
7427 ac_header_preproc=no
7429 rm -f conftest.err conftest.$ac_ext
7430 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7431 echo "${ECHO_T}$ac_header_preproc" >&6
7433 # So? What about this header?
7434 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7436 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7437 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7438 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7439 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7440 ac_header_preproc=yes
7443 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7444 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7445 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7446 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7447 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7448 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7449 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7450 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7451 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7452 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7453 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7454 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7457 ## ------------------------------------------ ##
7458 ## Report this to the AC_PACKAGE_NAME lists. ##
7459 ## ------------------------------------------ ##
7462 sed "s/^/$as_me: WARNING: /" >&2
7465 echo "$as_me:$LINENO: checking for $ac_header" >&5
7466 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7467 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7468 echo $ECHO_N "(cached) $ECHO_C" >&6
7470 eval "$as_ac_Header=\$ac_header_preproc"
7472 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7473 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7476 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7477 cat >>confdefs.h <<_ACEOF
7478 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7486 # End of readline/conio stuff
7487 # -----------------------------------------------------------------------
7489 # -----------------------------------------------------------------------
7490 # Check for Python support
7492 echo "$as_me:$LINENO: checking for Python support" >&5
7493 echo $ECHO_N "checking for Python support... $ECHO_C" >&6
7495 # Check whether --with-python or --without-python was given.
7496 if test "${with_python+set}" = set; then
7497 withval="$with_python"
7501 if test "$withval" != "no"; then
7502 if test "$withval" = "yes"; then
7503 if test -f /usr/include/python2.2/Python.h; then
7504 PYTHON_INCDIR=-I/usr/include/python2.2
7505 PYTHON_LIBS="-L/usr/lib/python2.2/config -lpython2.2 -lutil -ldl"
7506 elif test -f /usr/include/python2.3/Python.h; then
7507 PYTHON_INCDIR=-I/usr/include/python2.3
7508 PYTHON_LIBS="-L/usr/lib/python2.3/config -lpython2.3 -lutil -ldl"
7509 elif test -f /usr/include/python2.4/Python.h; then
7510 PYTHON_INCDIR=-I/usr/include/python2.4
7511 PYTHON_LIBS="-L/usr/lib/python2.4/config -lpython2.4 -lutil -ldl"
7512 elif test -f $prefix/include/Python.h; then
7513 PYTHON_INCDIR=-I$prefix/include
7514 PYTHON_LIBS="-L$prefix/lib/config -lpython -lutil -ldl"
7516 echo "$as_me:$LINENO: result: no" >&5
7517 echo "${ECHO_T}no" >&6
7518 { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
7519 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
7520 { (exit 1); exit 1; }; }
7523 if test -f $withval/Python.h; then
7524 PYTHON_INCDIR=-I$withval
7525 PYTHON_LIBS="-L$withval/config -lpython -lutil -ldl"
7526 elif test -f $withval/include/Python.h; then
7527 PYTHON_INCDIR=-I$withval/include
7528 PYTHON_LIBS="-L$withval/lib/config -lpython -lutil -ldl"
7530 echo "$as_me:$LINENO: result: no" >&5
7531 echo "${ECHO_T}no" >&6
7532 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
7533 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
7534 { (exit 1); exit 1; }; }
7537 cat >>confdefs.h <<\_ACEOF
7538 #define HAVE_PYTHON 1
7541 echo "$as_me:$LINENO: result: yes" >&5
7542 echo "${ECHO_T}yes" >&6
7546 echo "$as_me:$LINENO: result: no" >&5
7547 echo "${ECHO_T}no" >&6
7552 echo "$as_me:$LINENO: result: no" >&5
7553 echo "${ECHO_T}no" >&6
7561 # Find where sockets are (especially for Solaris)
7562 # Do this before the TCP Wrappers test since tcp wrappers
7563 # uses the socket library and some linkers are stupid.
7565 echo "$as_me:$LINENO: checking for socket" >&5
7566 echo $ECHO_N "checking for socket... $ECHO_C" >&6
7567 if test "${ac_cv_func_socket+set}" = set; then
7568 echo $ECHO_N "(cached) $ECHO_C" >&6
7570 cat >conftest.$ac_ext <<_ACEOF
7573 cat confdefs.h >>conftest.$ac_ext
7574 cat >>conftest.$ac_ext <<_ACEOF
7575 /* end confdefs.h. */
7576 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
7577 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7578 #define socket innocuous_socket
7580 /* System header to define __stub macros and hopefully few prototypes,
7581 which can conflict with char socket (); below.
7582 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7583 <limits.h> exists even on freestanding compilers. */
7586 # include <limits.h>
7588 # include <assert.h>
7593 /* Override any gcc2 internal prototype to avoid an error. */
7598 /* We use char because int might match the return type of a gcc2
7599 builtin and then its argument prototype would still apply. */
7601 /* The GNU C library defines this for functions which it implements
7602 to always fail with ENOSYS. Some functions are actually named
7603 something starting with __ and the normal name is an alias. */
7604 #if defined (__stub_socket) || defined (__stub___socket)
7607 char (*f) () = socket;
7621 rm -f conftest.$ac_objext conftest$ac_exeext
7622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7623 (eval $ac_link) 2>conftest.er1
7625 grep -v '^ *+' conftest.er1 >conftest.err
7627 cat conftest.err >&5
7628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7629 (exit $ac_status); } &&
7630 { ac_try='test -z "$ac_c_werror_flag"
7631 || test ! -s conftest.err'
7632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7636 (exit $ac_status); }; } &&
7637 { ac_try='test -s conftest$ac_exeext'
7638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7642 (exit $ac_status); }; }; then
7643 ac_cv_func_socket=yes
7645 echo "$as_me: failed program was:" >&5
7646 sed 's/^/| /' conftest.$ac_ext >&5
7648 ac_cv_func_socket=no
7650 rm -f conftest.err conftest.$ac_objext \
7651 conftest$ac_exeext conftest.$ac_ext
7653 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
7654 echo "${ECHO_T}$ac_cv_func_socket" >&6
7655 if test $ac_cv_func_socket = yes; then
7656 echo "$as_me:$LINENO: result: using libc's socket" >&5
7657 echo "${ECHO_T}using libc's socket" >&6
7660 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
7661 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
7662 if test "${ac_cv_lib_xnet_socket+set}" = set; then
7663 echo $ECHO_N "(cached) $ECHO_C" >&6
7665 ac_check_lib_save_LIBS=$LIBS
7667 cat >conftest.$ac_ext <<_ACEOF
7670 cat confdefs.h >>conftest.$ac_ext
7671 cat >>conftest.$ac_ext <<_ACEOF
7672 /* end confdefs.h. */
7674 /* Override any gcc2 internal prototype to avoid an error. */
7678 /* We use char because int might match the return type of a gcc2
7679 builtin and then its argument prototype would still apply. */
7689 rm -f conftest.$ac_objext conftest$ac_exeext
7690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7691 (eval $ac_link) 2>conftest.er1
7693 grep -v '^ *+' conftest.er1 >conftest.err
7695 cat conftest.err >&5
7696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7697 (exit $ac_status); } &&
7698 { ac_try='test -z "$ac_c_werror_flag"
7699 || test ! -s conftest.err'
7700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7704 (exit $ac_status); }; } &&
7705 { ac_try='test -s conftest$ac_exeext'
7706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7710 (exit $ac_status); }; }; then
7711 ac_cv_lib_xnet_socket=yes
7713 echo "$as_me: failed program was:" >&5
7714 sed 's/^/| /' conftest.$ac_ext >&5
7716 ac_cv_lib_xnet_socket=no
7718 rm -f conftest.err conftest.$ac_objext \
7719 conftest$ac_exeext conftest.$ac_ext
7720 LIBS=$ac_check_lib_save_LIBS
7722 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
7723 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
7724 if test $ac_cv_lib_xnet_socket = yes; then
7725 cat >>confdefs.h <<_ACEOF
7726 #define HAVE_LIBXNET 1
7734 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
7735 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
7736 if test "${ac_cv_lib_socket_socket+set}" = set; then
7737 echo $ECHO_N "(cached) $ECHO_C" >&6
7739 ac_check_lib_save_LIBS=$LIBS
7740 LIBS="-lsocket $LIBS"
7741 cat >conftest.$ac_ext <<_ACEOF
7744 cat confdefs.h >>conftest.$ac_ext
7745 cat >>conftest.$ac_ext <<_ACEOF
7746 /* end confdefs.h. */
7748 /* Override any gcc2 internal prototype to avoid an error. */
7752 /* We use char because int might match the return type of a gcc2
7753 builtin and then its argument prototype would still apply. */
7763 rm -f conftest.$ac_objext conftest$ac_exeext
7764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7765 (eval $ac_link) 2>conftest.er1
7767 grep -v '^ *+' conftest.er1 >conftest.err
7769 cat conftest.err >&5
7770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7771 (exit $ac_status); } &&
7772 { ac_try='test -z "$ac_c_werror_flag"
7773 || test ! -s conftest.err'
7774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7778 (exit $ac_status); }; } &&
7779 { ac_try='test -s conftest$ac_exeext'
7780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7784 (exit $ac_status); }; }; then
7785 ac_cv_lib_socket_socket=yes
7787 echo "$as_me: failed program was:" >&5
7788 sed 's/^/| /' conftest.$ac_ext >&5
7790 ac_cv_lib_socket_socket=no
7792 rm -f conftest.err conftest.$ac_objext \
7793 conftest$ac_exeext conftest.$ac_ext
7794 LIBS=$ac_check_lib_save_LIBS
7796 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
7797 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
7798 if test $ac_cv_lib_socket_socket = yes; then
7799 cat >>confdefs.h <<_ACEOF
7800 #define HAVE_LIBSOCKET 1
7803 LIBS="-lsocket $LIBS"
7808 echo "$as_me:$LINENO: checking for socket in -linet" >&5
7809 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
7810 if test "${ac_cv_lib_inet_socket+set}" = set; then
7811 echo $ECHO_N "(cached) $ECHO_C" >&6
7813 ac_check_lib_save_LIBS=$LIBS
7815 cat >conftest.$ac_ext <<_ACEOF
7818 cat confdefs.h >>conftest.$ac_ext
7819 cat >>conftest.$ac_ext <<_ACEOF
7820 /* end confdefs.h. */
7822 /* Override any gcc2 internal prototype to avoid an error. */
7826 /* We use char because int might match the return type of a gcc2
7827 builtin and then its argument prototype would still apply. */
7837 rm -f conftest.$ac_objext conftest$ac_exeext
7838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7839 (eval $ac_link) 2>conftest.er1
7841 grep -v '^ *+' conftest.er1 >conftest.err
7843 cat conftest.err >&5
7844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7845 (exit $ac_status); } &&
7846 { ac_try='test -z "$ac_c_werror_flag"
7847 || test ! -s conftest.err'
7848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7852 (exit $ac_status); }; } &&
7853 { ac_try='test -s conftest$ac_exeext'
7854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7858 (exit $ac_status); }; }; then
7859 ac_cv_lib_inet_socket=yes
7861 echo "$as_me: failed program was:" >&5
7862 sed 's/^/| /' conftest.$ac_ext >&5
7864 ac_cv_lib_inet_socket=no
7866 rm -f conftest.err conftest.$ac_objext \
7867 conftest$ac_exeext conftest.$ac_ext
7868 LIBS=$ac_check_lib_save_LIBS
7870 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
7871 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
7872 if test $ac_cv_lib_inet_socket = yes; then
7873 cat >>confdefs.h <<_ACEOF
7874 #define HAVE_LIBINET 1
7885 # -----------------------------------------------------------
7886 # Check whether user wants TCP wrappers support (default off)
7887 # -----------------------------------------------------------
7890 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
7891 if test "${with_tcp_wrappers+set}" = set; then
7892 withval="$with_tcp_wrappers"
7894 if test "x$withval" != "xno" ; then
7896 LIBS="$saved_LIBS -lwrap"
7897 echo "$as_me:$LINENO: checking for libwrap" >&5
7898 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
7899 cat >conftest.$ac_ext <<_ACEOF
7902 cat confdefs.h >>conftest.$ac_ext
7903 cat >>conftest.$ac_ext <<_ACEOF
7904 /* end confdefs.h. */
7906 int deny_severity = 0;
7907 int allow_severity = 0;
7908 struct request_info *req;
7917 rm -f conftest.$ac_objext conftest$ac_exeext
7918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7919 (eval $ac_link) 2>conftest.er1
7921 grep -v '^ *+' conftest.er1 >conftest.err
7923 cat conftest.err >&5
7924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7925 (exit $ac_status); } &&
7926 { ac_try='test -z "$ac_c_werror_flag"
7927 || test ! -s conftest.err'
7928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7932 (exit $ac_status); }; } &&
7933 { ac_try='test -s conftest$ac_exeext'
7934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7938 (exit $ac_status); }; }; then
7940 echo "$as_me:$LINENO: result: yes" >&5
7941 echo "${ECHO_T}yes" >&6
7942 cat >>confdefs.h <<\_ACEOF
7943 #define HAVE_LIBWRAP 1
7949 echo "$as_me: failed program was:" >&5
7950 sed 's/^/| /' conftest.$ac_ext >&5
7953 LIBS="$saved_LIBS -lwrap -lnsl"
7954 cat >conftest.$ac_ext <<_ACEOF
7957 cat confdefs.h >>conftest.$ac_ext
7958 cat >>conftest.$ac_ext <<_ACEOF
7959 /* end confdefs.h. */
7961 int deny_severity = 0;
7962 int allow_severity = 0;
7963 struct request_info *req;
7972 rm -f conftest.$ac_objext conftest$ac_exeext
7973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7974 (eval $ac_link) 2>conftest.er1
7976 grep -v '^ *+' conftest.er1 >conftest.err
7978 cat conftest.err >&5
7979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7980 (exit $ac_status); } &&
7981 { ac_try='test -z "$ac_c_werror_flag"
7982 || test ! -s conftest.err'
7983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987 (exit $ac_status); }; } &&
7988 { ac_try='test -s conftest$ac_exeext'
7989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7993 (exit $ac_status); }; }; then
7995 echo "$as_me:$LINENO: result: yes" >&5
7996 echo "${ECHO_T}yes" >&6
7997 cat >>confdefs.h <<\_ACEOF
7998 #define HAVE_LIBWRAP 1
8004 echo "$as_me: failed program was:" >&5
8005 sed 's/^/| /' conftest.$ac_ext >&5
8007 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
8008 echo "$as_me: error: *** libwrap missing" >&2;}
8009 { (exit 1); exit 1; }; }
8012 rm -f conftest.err conftest.$ac_objext \
8013 conftest$ac_exeext conftest.$ac_ext
8016 rm -f conftest.err conftest.$ac_objext \
8017 conftest$ac_exeext conftest.$ac_ext
8023 # -----------------------------------------------------------
8024 # Check whether OpenSSL is available
8025 # -----------------------------------------------------------
8026 echo "$as_me:$LINENO: checking for OpenSSL" >&5
8027 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6
8029 # Check whether --with-openssl or --without-openssl was given.
8030 if test "${with_openssl+set}" = set; then
8031 withval="$with_openssl"
8032 with_openssl_directory=${withval}
8035 if test "x$with_openssl_directory" != "x"; then
8036 OPENSSL_LIBS="-lssl -lcrypto"
8039 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
8040 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
8041 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
8045 saved_CFLAGS="$CFLAGS"
8046 LIBS="$saved_LIBS $OPENSSL_LIBS"
8047 CFLAGS="$saved_CFLAGS $OPENSSL_INC"
8049 cat >conftest.$ac_ext <<_ACEOF
8052 cat confdefs.h >>conftest.$ac_ext
8053 cat >>conftest.$ac_ext <<_ACEOF
8054 /* end confdefs.h. */
8055 #include <openssl/ssl.h>
8059 CRYPTO_set_id_callback(NULL);
8064 rm -f conftest.$ac_objext conftest$ac_exeext
8065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8066 (eval $ac_link) 2>conftest.er1
8068 grep -v '^ *+' conftest.er1 >conftest.err
8070 cat conftest.err >&5
8071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8072 (exit $ac_status); } &&
8073 { ac_try='test -z "$ac_c_werror_flag"
8074 || test ! -s conftest.err'
8075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8079 (exit $ac_status); }; } &&
8080 { ac_try='test -s conftest$ac_exeext'
8081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8085 (exit $ac_status); }; }; then
8088 echo "$as_me: failed program was:" >&5
8089 sed 's/^/| /' conftest.$ac_ext >&5
8094 rm -f conftest.err conftest.$ac_objext \
8095 conftest$ac_exeext conftest.$ac_ext
8098 CFLAGS="$saved_CFLAGS"
8100 if test "$support_tls" = "yes"; then
8102 cat >>confdefs.h <<\_ACEOF
8103 #define HAVE_OPENSSL 1
8107 cat >>confdefs.h <<\_ACEOF
8118 echo "$as_me:$LINENO: result: $support_tls" >&5
8119 echo "${ECHO_T}$support_tls" >&6
8125 # ------------------------------------------
8126 # Where to place working dir
8127 # ------------------------------------------
8128 working_dir=`eval echo ${prefix}/var/bacula/working`
8130 # Check whether --with-working-dir or --without-working-dir was given.
8131 if test "${with_working_dir+set}" = set; then
8132 withval="$with_working_dir"
8134 if test "x$withval" != "xno" ; then
8135 working_dir=$withval
8144 # ------------------------------------------
8145 # Where to place scriptdir (script files)
8146 # ------------------------------------------
8147 scriptdir=`eval echo ${sysconfdir}`
8149 # Check whether --with-scriptdir or --without-scriptdir was given.
8150 if test "${with_scriptdir+set}" = set; then
8151 withval="$with_scriptdir"
8153 if test "x$withval" != "xno" ; then
8163 # ------------------------------------------
8164 # Where to send dump email
8165 # ------------------------------------------
8166 dump_email=root@localhost
8168 # Check whether --with-dump-email or --without-dump-email was given.
8169 if test "${with_dump_email+set}" = set; then
8170 withval="$with_dump_email"
8172 if test "x$withval" != "xno" ; then
8181 # ------------------------------------------
8182 # Where to send job email
8183 # ------------------------------------------
8184 job_email=root@localhost
8186 # Check whether --with-job-email or --without-job-email was given.
8187 if test "${with_job_email+set}" = set; then
8188 withval="$with_job_email"
8190 if test "x$withval" != "xno" ; then
8199 # ------------------------------------------
8200 # Where to find smtp host
8201 # ------------------------------------------
8204 # Check whether --with-smtp_host or --without-smtp_host was given.
8205 if test "${with_smtp_host+set}" = set; then
8206 withval="$with_smtp_host"
8208 if test "x$withval" != "xno" ; then
8218 # ------------------------------------
8219 # Where to place pid files
8220 # ------------------------------------
8223 # Check whether --with-pid-dir or --without-pid-dir was given.
8224 if test "${with_pid_dir+set}" = set; then
8225 withval="$with_pid_dir"
8227 if test "x$withval" != "xno" ; then
8234 cat >>confdefs.h <<_ACEOF
8235 #define _PATH_BACULA_PIDDIR "$piddir"
8241 # ------------------------------------
8242 # Where to place subsys "lock file"
8243 # ------------------------------------
8244 subsysdir=/var/run/subsys
8246 # Check whether --with-subsys-dir or --without-subsys-dir was given.
8247 if test "${with_subsys_dir+set}" = set; then
8248 withval="$with_subsys_dir"
8250 if test "x$withval" != "xno" ; then
8261 # ------------------------------------
8262 # Where to start assigning ports
8263 # ------------------------------------
8266 # Check whether --with-baseport or --without-baseport was given.
8267 if test "${with_baseport+set}" = set; then
8268 withval="$with_baseport"
8270 if test "x$withval" != "xno" ; then
8278 dir_port=`expr $baseport`
8279 fd_port=`expr $baseport + 1`
8280 sd_port=`expr $fd_port + 1`
8287 # ------------------------------------------
8288 # Generate passwords
8289 # ------------------------------------------
8292 # Check whether --with-dir-password or --without-dir-password was given.
8293 if test "${with_dir_password+set}" = set; then
8294 withval="$with_dir_password"
8296 if test "x$withval" != "xno" ; then
8297 dir_password=$withval
8303 if test "x$dir_password" = "x" ; then
8304 if test "x$OPENSSL" = "xnone" ; then
8305 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
8306 key=`autoconf/randpass 33`
8308 key=`openssl rand -base64 33`
8315 # Check whether --with-fd-password or --without-fd-password was given.
8316 if test "${with_fd_password+set}" = set; then
8317 withval="$with_fd_password"
8319 if test "x$withval" != "xno" ; then
8320 fd_password=$withval
8326 if test "x$fd_password" = "x" ; then
8327 if test "x$OPENSSL" = "xnone" ; then
8328 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
8329 key=`autoconf/randpass 37`
8331 key=`openssl rand -base64 33`
8338 # Check whether --with-sd-password or --without-sd-password was given.
8339 if test "${with_sd_password+set}" = set; then
8340 withval="$with_sd_password"
8342 if test "x$withval" != "xno" ; then
8343 sd_password=$withval
8349 if test "x$sd_password" = "x" ; then
8350 if test "x$OPENSSL" = "xnone" ; then
8351 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
8352 key=`autoconf/randpass 41`
8354 key=`openssl rand -base64 33`
8361 # Check whether --with-mon-dir-password or --without-mon-dir-password was given.
8362 if test "${with_mon_dir_password+set}" = set; then
8363 withval="$with_mon_dir_password"
8365 if test "x$withval" != "xno" ; then
8366 mon_dir_password=$withval
8372 if test "x$mon_dir_password" = "x" ; then
8373 if test "x$OPENSSL" = "xnone" ; then
8374 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
8375 key=`autoconf/randpass 33`
8377 key=`openssl rand -base64 33`
8379 mon_dir_password=$key
8384 # Check whether --with-mon-fd-password or --without-mon-fd-password was given.
8385 if test "${with_mon_fd_password+set}" = set; then
8386 withval="$with_mon_fd_password"
8388 if test "x$withval" != "xno" ; then
8389 mon_fd_password=$withval
8395 if test "x$mon_fd_password" = "x" ; then
8396 if test "x$OPENSSL" = "xnone" ; then
8397 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
8398 key=`autoconf/randpass 37`
8400 key=`openssl rand -base64 33`
8402 mon_fd_password=$key
8407 # Check whether --with-mon-sd-password or --without-mon-sd-password was given.
8408 if test "${with_mon_sd_password+set}" = set; then
8409 withval="$with_mon_sd_password"
8411 if test "x$withval" != "xno" ; then
8412 mon_sd_password=$withval
8418 if test "x$mon_sd_password" = "x" ; then
8419 if test "x$OPENSSL" = "xnone" ; then
8420 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
8421 key=`autoconf/randpass 41`
8423 key=`openssl rand -base64 33`
8425 mon_sd_password=$key
8435 # -------------------------------------------------------------------------
8436 # Set variables for bimagemgr installation
8437 # -------------------------------------------------------------------------
8438 bimagemgr_cgidir=/var/www/cgi-bin
8440 # Check whether --with-bimagemgr-cgidir or --without-bimagemgr-cgidir was given.
8441 if test "${with_bimagemgr_cgidir+set}" = set; then
8442 withval="$with_bimagemgr_cgidir"
8444 if test "x$withval" != "xno" ; then
8445 bimagemgr_cgidir=$withval
8451 bimagemgr_docdir=/var/www/html
8453 # Check whether --with-bimagemgr-docdir or --without-bimagemgr-docdir was given.
8454 if test "${with_bimagemgr_docdir+set}" = set; then
8455 withval="$with_bimagemgr_docdir"
8457 if test "x$withval" != "xno" ; then
8458 bimagemgr_docdir=$withval
8464 bimagemgr_binowner=root
8466 # Check whether --with-bimagemgr-binowner or --without-bimagemgr-binowner was given.
8467 if test "${with_bimagemgr_binowner+set}" = set; then
8468 withval="$with_bimagemgr_binowner"
8470 if test "x$withval" != "xno" ; then
8471 bimagemgr_binowner=$withval
8477 bimagemgr_bingroup=root
8479 # Check whether --with-bimagemgr-bingroup or --without-bimagemgr-bingroup was given.
8480 if test "${with_bimagemgr_bingroup+set}" = set; then
8481 withval="$with_bimagemgr_bingroup"
8483 if test "x$withval" != "xno" ; then
8484 bimagemgr_bingroup=$withval
8490 bimagemgr_dataowner=apache
8492 # Check whether --with-bimagemgr-dataowner or --without-bimagemgr-dataowner was given.
8493 if test "${with_bimagemgr_dataowner+set}" = set; then
8494 withval="$with_bimagemgr_dataowner"
8496 if test "x$withval" != "xno" ; then
8497 bimagemgr_dataowner=$withval
8503 bimagemgr_datagroup=apache
8505 # Check whether --with-bimagemgr-datagroup or --without-bimagemgr-datagroup was given.
8506 if test "${with_bimagemgr_datagroup+set}" = set; then
8507 withval="$with_bimagemgr_datagroup"
8509 if test "x$withval" != "xno" ; then
8510 bimagemgr_datagroup=$withval
8524 # Handle users and groups for each daemon
8528 # Check whether --with-dir_user or --without-dir_user was given.
8529 if test "${with_dir_user+set}" = set; then
8530 withval="$with_dir_user"
8532 if test "x$withval" != "x" ; then
8541 # Check whether --with-dir_group or --without-dir_group was given.
8542 if test "${with_dir_group+set}" = set; then
8543 withval="$with_dir_group"
8545 if test "x$withval" != "x" ; then
8554 # Check whether --with-sd_user or --without-sd_user was given.
8555 if test "${with_sd_user+set}" = set; then
8556 withval="$with_sd_user"
8558 if test "x$withval" != "x" ; then
8567 # Check whether --with-sd_group or --without-sd_group was given.
8568 if test "${with_sd_group+set}" = set; then
8569 withval="$with_sd_group"
8571 if test "x$withval" != "x" ; then
8580 # Check whether --with-fd_user or --without-fd_user was given.
8581 if test "${with_fd_user+set}" = set; then
8582 withval="$with_fd_user"
8584 if test "x$withval" != "x" ; then
8593 # Check whether --with-fd_group or --without-fd_group was given.
8594 if test "${with_fd_group+set}" = set; then
8595 withval="$with_fd_group"
8597 if test "x$withval" != "x" ; then
8615 # allow setting default executable permissions
8619 # Check whether --with-sbin-perm or --without-sbin-perm was given.
8620 if test "${with_sbin_perm+set}" = set; then
8621 withval="$with_sbin_perm"
8623 if test "x$withval" != "x" ; then
8632 # ------------------------------------------------
8633 # Bacula check for various SQL database engines
8634 # ------------------------------------------------
8637 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
8638 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
8640 # Check whether --with-postgresql or --without-postgresql was given.
8641 if test "${with_postgresql+set}" = set; then
8642 withval="$with_postgresql"
8644 if test "$withval" != "no"; then
8645 if test "$db_found" = "yes"; then
8646 echo "$as_me:$LINENO: result: error" >&5
8647 echo "${ECHO_T}error" >&6
8648 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
8649 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
8650 { (exit 1); exit 1; }; };
8652 if test "$withval" = "yes"; then
8653 if test -f /usr/local/include/libpq-fe.h; then
8654 POSTGRESQL_INCDIR=/usr/local/include
8655 POSTGRESQL_LIBDIR=/usr/local/lib
8656 POSTGRESQL_BINDIR=/usr/local/bin
8657 elif test -f /usr/include/libpq-fe.h; then
8658 POSTGRESQL_INCDIR=/usr/include
8659 POSTGRESQL_LIBDIR=/usr/lib
8660 POSTGRESQL_BINDIR=/usr/bin
8661 elif test -f /usr/include/pgsql/libpq-fe.h; then
8662 POSTGRESQL_INCDIR=/usr/include/pgsql
8663 POSTGRESQL_LIBDIR=/usr/lib/pgsql
8664 POSTGRESQL_BINDIR=/usr/bin
8665 elif test -f /usr/include/postgresql/libpq-fe.h; then
8666 POSTGRESQL_INCDIR=/usr/include/postgresql
8667 POSTGRESQL_LIBDIR=/usr/lib/postgresql
8668 POSTGRESQL_BINDIR=/usr/bin
8670 echo "$as_me:$LINENO: result: no" >&5
8671 echo "${ECHO_T}no" >&6
8672 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
8673 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
8674 { (exit 1); exit 1; }; }
8676 elif test -f $withval/include/libpq-fe.h; then
8677 POSTGRESQL_INCDIR=$withval/include
8678 POSTGRESQL_LIBDIR=$withval/lib
8679 POSTGRESQL_BINDIR=$withval/bin
8680 elif test -f $withval/include/postgresql/libpq-fe.h; then
8681 POSTGRESQL_INCDIR=$withval/include/postgresql
8682 POSTGRESQL_LIBDIR=$withval/lib
8683 POSTGRESQL_BINDIR=$withval/bin
8685 echo "$as_me:$LINENO: result: no" >&5
8686 echo "${ECHO_T}no" >&6
8687 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
8688 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
8689 { (exit 1); exit 1; }; }
8691 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
8692 echo "$as_me:$LINENO: checking for crypt" >&5
8693 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
8694 if test "${ac_cv_func_crypt+set}" = set; then
8695 echo $ECHO_N "(cached) $ECHO_C" >&6
8697 cat >conftest.$ac_ext <<_ACEOF
8700 cat confdefs.h >>conftest.$ac_ext
8701 cat >>conftest.$ac_ext <<_ACEOF
8702 /* end confdefs.h. */
8703 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
8704 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8705 #define crypt innocuous_crypt
8707 /* System header to define __stub macros and hopefully few prototypes,
8708 which can conflict with char crypt (); below.
8709 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8710 <limits.h> exists even on freestanding compilers. */
8713 # include <limits.h>
8715 # include <assert.h>
8720 /* Override any gcc2 internal prototype to avoid an error. */
8725 /* We use char because int might match the return type of a gcc2
8726 builtin and then its argument prototype would still apply. */
8728 /* The GNU C library defines this for functions which it implements
8729 to always fail with ENOSYS. Some functions are actually named
8730 something starting with __ and the normal name is an alias. */
8731 #if defined (__stub_crypt) || defined (__stub___crypt)
8734 char (*f) () = crypt;
8748 rm -f conftest.$ac_objext conftest$ac_exeext
8749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8750 (eval $ac_link) 2>conftest.er1
8752 grep -v '^ *+' conftest.er1 >conftest.err
8754 cat conftest.err >&5
8755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8756 (exit $ac_status); } &&
8757 { ac_try='test -z "$ac_c_werror_flag"
8758 || test ! -s conftest.err'
8759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763 (exit $ac_status); }; } &&
8764 { ac_try='test -s conftest$ac_exeext'
8765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8769 (exit $ac_status); }; }; then
8770 ac_cv_func_crypt=yes
8772 echo "$as_me: failed program was:" >&5
8773 sed 's/^/| /' conftest.$ac_ext >&5
8777 rm -f conftest.err conftest.$ac_objext \
8778 conftest$ac_exeext conftest.$ac_ext
8780 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
8781 echo "${ECHO_T}$ac_cv_func_crypt" >&6
8782 if test $ac_cv_func_crypt = yes; then
8785 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
8786 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
8787 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
8788 echo $ECHO_N "(cached) $ECHO_C" >&6
8790 ac_check_lib_save_LIBS=$LIBS
8791 LIBS="-lcrypt $LIBS"
8792 cat >conftest.$ac_ext <<_ACEOF
8795 cat confdefs.h >>conftest.$ac_ext
8796 cat >>conftest.$ac_ext <<_ACEOF
8797 /* end confdefs.h. */
8799 /* Override any gcc2 internal prototype to avoid an error. */
8803 /* We use char because int might match the return type of a gcc2
8804 builtin and then its argument prototype would still apply. */
8814 rm -f conftest.$ac_objext conftest$ac_exeext
8815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8816 (eval $ac_link) 2>conftest.er1
8818 grep -v '^ *+' conftest.er1 >conftest.err
8820 cat conftest.err >&5
8821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822 (exit $ac_status); } &&
8823 { ac_try='test -z "$ac_c_werror_flag"
8824 || test ! -s conftest.err'
8825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8829 (exit $ac_status); }; } &&
8830 { ac_try='test -s conftest$ac_exeext'
8831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8835 (exit $ac_status); }; }; then
8836 ac_cv_lib_crypt_crypt=yes
8838 echo "$as_me: failed program was:" >&5
8839 sed 's/^/| /' conftest.$ac_ext >&5
8841 ac_cv_lib_crypt_crypt=no
8843 rm -f conftest.err conftest.$ac_objext \
8844 conftest$ac_exeext conftest.$ac_ext
8845 LIBS=$ac_check_lib_save_LIBS
8847 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
8848 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
8849 if test $ac_cv_lib_crypt_crypt = yes; then
8850 POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
8855 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
8856 SQL_LFLAGS=$POSTGRESQL_LFLAGS
8857 SQL_BINDIR=$POSTGRESQL_BINDIR
8858 cat >>confdefs.h <<\_ACEOF
8859 #define HAVE_POSTGRESQL 1
8862 echo "$as_me:$LINENO: result: yes" >&5
8863 echo "${ECHO_T}yes" >&6
8865 support_postgresql=yes
8869 echo "$as_me:$LINENO: result: no" >&5
8870 echo "${ECHO_T}no" >&6
8875 echo "$as_me:$LINENO: result: no" >&5
8876 echo "${ECHO_T}no" >&6
8887 echo "$as_me:$LINENO: checking for MySQL support" >&5
8888 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
8890 # Check whether --with-mysql or --without-mysql was given.
8891 if test "${with_mysql+set}" = set; then
8892 withval="$with_mysql"
8894 if test "$withval" != "no"; then
8895 if test "$withval" = "yes"; then
8896 if test -f /usr/local/mysql/include/mysql/mysql.h; then
8897 MYSQL_INCDIR=/usr/local/mysql/include/mysql
8898 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
8899 MYSQL_BINDIR=/usr/local/mysql/bin
8900 elif test -f /usr/include/mysql/mysql.h; then
8901 MYSQL_INCDIR=/usr/include/mysql
8902 MYSQL_LIBDIR=/usr/lib/mysql
8903 MYSQL_BINDIR=/usr/bin
8904 elif test -f /usr/include/mysql.h; then
8905 MYSQL_INCDIR=/usr/include
8906 MYSQL_LIBDIR=/usr/lib
8907 MYSQL_BINDIR=/usr/bin
8908 elif test -f /usr/local/include/mysql/mysql.h; then
8909 MYSQL_INCDIR=/usr/local/include/mysql
8910 MYSQL_LIBDIR=/usr/local/lib/mysql
8911 MYSQL_BINDIR=/usr/local/bin
8912 elif test -f /usr/local/include/mysql.h; then
8913 MYSQL_INCDIR=/usr/local/include
8914 MYSQL_LIBDIR=/usr/local/lib
8915 MYSQL_BINDIR=/usr/local/bin
8917 echo "$as_me:$LINENO: result: no" >&5
8918 echo "${ECHO_T}no" >&6
8919 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
8920 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
8921 { (exit 1); exit 1; }; }
8924 if test -f $withval/include/mysql/mysql.h; then
8925 MYSQL_INCDIR=$withval/include/mysql
8926 MYSQL_LIBDIR=$withval/lib/mysql
8927 MYSQL_BINDIR=$withval/bin
8928 elif test -f $withval/include/mysql.h; then
8929 MYSQL_INCDIR=$withval/include
8930 MYSQL_LIBDIR=$withval/lib
8931 MYSQL_BINDIR=$withval/bin
8933 echo "$as_me:$LINENO: result: no" >&5
8934 echo "${ECHO_T}no" >&6
8935 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
8936 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
8937 { (exit 1); exit 1; }; }
8940 SQL_INCLUDE=-I$MYSQL_INCDIR
8941 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
8942 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
8943 cat >>confdefs.h <<\_ACEOF
8944 #define HAVE_THREAD_SAFE_MYSQL 1
8948 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
8950 SQL_BINDIR=$MYSQL_BINDIR
8952 cat >>confdefs.h <<\_ACEOF
8953 #define HAVE_MYSQL 1
8956 echo "$as_me:$LINENO: result: yes" >&5
8957 echo "${ECHO_T}yes" >&6
8964 echo "$as_me:$LINENO: result: no" >&5
8965 echo "${ECHO_T}no" >&6
8972 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
8973 if test "${with_embedded_mysql+set}" = set; then
8974 withval="$with_embedded_mysql"
8976 if test "$withval" != "no"; then
8977 if test "$withval" = "yes"; then
8978 if test -f /usr/local/mysql/include/mysql/mysql.h; then
8979 MYSQL_INCDIR=/usr/local/mysql/include/mysql
8980 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
8981 MYSQL_BINDIR=/usr/local/mysql/bin
8982 elif test -f /usr/include/mysql/mysql.h; then
8983 MYSQL_INCDIR=/usr/include/mysql
8984 MYSQL_LIBDIR=/usr/lib/mysql
8985 MYSQL_BINDIR=/usr/bin
8986 elif test -f /usr/include/mysql.h; then
8987 MYSQL_INCDIR=/usr/include
8988 MYSQL_LIBDIR=/usr/lib
8989 MYSQL_BINDIR=/usr/bin
8990 elif test -f /usr/local/include/mysql/mysql.h; then
8991 MYSQL_INCDIR=/usr/local/include/mysql
8992 MYSQL_LIBDIR=/usr/local/lib/mysql
8993 MYSQL_BINDIR=/usr/local/bin
8994 elif test -f /usr/local/include/mysql.h; then
8995 MYSQL_INCDIR=/usr/local/include
8996 MYSQL_LIBDIR=/usr/local/lib
8997 MYSQL_BINDIR=/usr/local/bin
8999 echo "$as_me:$LINENO: result: no" >&5
9000 echo "${ECHO_T}no" >&6
9001 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
9002 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
9003 { (exit 1); exit 1; }; }
9006 if test -f $withval/include/mysql/mysql.h; then
9007 MYSQL_INCDIR=$withval/include/mysql
9008 MYSQL_LIBDIR=$withval/lib/mysql
9009 MYSQL_BINDIR=$withval/bin
9010 elif test -f $withval/include/mysql.h; then
9011 MYSQL_INCDIR=$withval/include
9012 MYSQL_LIBDIR=$withval/lib
9013 MYSQL_BINDIR=$withval/bin
9015 echo "$as_me:$LINENO: result: no" >&5
9016 echo "${ECHO_T}no" >&6
9017 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
9018 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
9019 { (exit 1); exit 1; }; }
9022 SQL_INCLUDE=-I$MYSQL_INCDIR
9023 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
9024 SQL_BINDIR=$MYSQL_BINDIR
9026 cat >>confdefs.h <<\_ACEOF
9027 #define HAVE_MYSQL 1
9030 cat >>confdefs.h <<\_ACEOF
9031 #define HAVE_EMBEDDED_MYSQL 1
9034 echo "$as_me:$LINENO: result: yes" >&5
9035 echo "${ECHO_T}yes" >&6
9042 echo "$as_me:$LINENO: result: no" >&5
9043 echo "${ECHO_T}no" >&6
9058 echo "$as_me:$LINENO: checking for SQLite3 support" >&5
9059 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6
9061 # Check whether --with-sqlite3 or --without-sqlite3 was given.
9062 if test "${with_sqlite3+set}" = set; then
9063 withval="$with_sqlite3"
9065 if test "$withval" != "no"; then
9066 if test "$withval" = "yes"; then
9067 if test -f /usr/local/include/sqlite3.h; then
9068 SQLITE_INCDIR=/usr/local/include
9069 SQLITE_LIBDIR=/usr/local/lib
9070 SQLITE_BINDIR=/usr/local/bin
9071 elif test -f /usr/include/sqlite3.h; then
9072 SQLITE_INCDIR=/usr/include
9073 SQLITE_LIBDIR=/usr/lib
9074 SQLITE_BINDIR=/usr/bin
9075 elif test -f $prefix/include/sqlite3.h; then
9076 SQLITE_INCDIR=$prefix/include
9077 SQLITE_LIBDIR=$prefix/lib
9078 SQLITE_BINDIR=$prefix/bin
9080 echo "$as_me:$LINENO: result: no" >&5
9081 echo "${ECHO_T}no" >&6
9082 { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
9083 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
9084 { (exit 1); exit 1; }; }
9087 if test -f $withval/sqlite3.h; then
9088 SQLITE_INCDIR=$withval
9089 SQLITE_LIBDIR=$withval
9090 SQLITE_BINDIR=$withval
9091 elif test -f $withval/include/sqlite3.h; then
9092 SQLITE_INCDIR=$withval/include
9093 SQLITE_LIBDIR=$withval/lib
9094 SQLITE_BINDIR=$withval/bin
9096 echo "$as_me:$LINENO: result: no" >&5
9097 echo "${ECHO_T}no" >&6
9098 { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
9099 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
9100 { (exit 1); exit 1; }; }
9103 SQL_INCLUDE=-I$SQLITE_INCDIR
9104 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
9105 SQL_BINDIR=$SQLITE_BINDIR
9107 cat >>confdefs.h <<\_ACEOF
9108 #define HAVE_SQLITE3 1
9111 echo "$as_me:$LINENO: result: yes" >&5
9112 echo "${ECHO_T}yes" >&6
9119 echo "$as_me:$LINENO: result: no" >&5
9120 echo "${ECHO_T}no" >&6
9125 echo "$as_me:$LINENO: result: no" >&5
9126 echo "${ECHO_T}no" >&6
9137 echo "$as_me:$LINENO: checking for SQLite support" >&5
9138 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
9140 # Check whether --with-sqlite or --without-sqlite was given.
9141 if test "${with_sqlite+set}" = set; then
9142 withval="$with_sqlite"
9144 if test "$withval" != "no"; then
9145 if test "$withval" = "yes"; then
9146 if test -f /usr/local/include/sqlite.h; then
9147 SQLITE_INCDIR=/usr/local/include
9148 SQLITE_LIBDIR=/usr/local/lib
9149 SQLITE_BINDIR=/usr/local/bin
9150 elif test -f /usr/include/sqlite.h; then
9151 SQLITE_INCDIR=/usr/include
9152 SQLITE_LIBDIR=/usr/lib
9153 SQLITE_BINDIR=/usr/bin
9154 elif test -f $prefix/include/sqlite.h; then
9155 SQLITE_INCDIR=$prefix/include
9156 SQLITE_LIBDIR=$prefix/lib
9157 SQLITE_BINDIR=$prefix/bin
9159 echo "$as_me:$LINENO: result: no" >&5
9160 echo "${ECHO_T}no" >&6
9161 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
9162 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
9163 { (exit 1); exit 1; }; }
9166 if test -f $withval/sqlite.h; then
9167 SQLITE_INCDIR=$withval
9168 SQLITE_LIBDIR=$withval
9169 SQLITE_BINDIR=$withval
9170 elif test -f $withval/include/sqlite.h; then
9171 SQLITE_INCDIR=$withval/include
9172 SQLITE_LIBDIR=$withval/lib
9173 SQLITE_BINDIR=$withval/bin
9175 echo "$as_me:$LINENO: result: no" >&5
9176 echo "${ECHO_T}no" >&6
9177 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
9178 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
9179 { (exit 1); exit 1; }; }
9182 SQL_INCLUDE=-I$SQLITE_INCDIR
9183 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
9184 SQL_BINDIR=$SQLITE_BINDIR
9186 cat >>confdefs.h <<\_ACEOF
9187 #define HAVE_SQLITE 1
9190 echo "$as_me:$LINENO: result: yes" >&5
9191 echo "${ECHO_T}yes" >&6
9198 echo "$as_me:$LINENO: result: no" >&5
9199 echo "${ECHO_T}no" >&6
9204 echo "$as_me:$LINENO: result: no" >&5
9205 echo "${ECHO_T}no" >&6
9217 cat >>confdefs.h <<\_ACEOF
9218 #define PROTOTYPES 1
9222 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
9223 if test -z "$CCOPTS"; then
9224 CCOPTS='-g -O2 -Wall'
9232 largefile_support="no"
9234 # Check whether --enable-largefile or --disable-largefile was given.
9235 if test "${enable_largefile+set}" = set; then
9236 enableval="$enable_largefile"
9239 if test "$enable_largefile" != no; then
9240 if test -n "$ac_tool_prefix"; then
9241 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
9242 set dummy ${ac_tool_prefix}getconf; ac_word=$2
9243 echo "$as_me:$LINENO: checking for $ac_word" >&5
9244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9245 if test "${ac_cv_prog_GETCONF+set}" = set; then
9246 echo $ECHO_N "(cached) $ECHO_C" >&6
9248 if test -n "$GETCONF"; then
9249 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
9251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9255 test -z "$as_dir" && as_dir=.
9256 for ac_exec_ext in '' $ac_executable_extensions; do
9257 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9258 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
9259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9267 GETCONF=$ac_cv_prog_GETCONF
9268 if test -n "$GETCONF"; then
9269 echo "$as_me:$LINENO: result: $GETCONF" >&5
9270 echo "${ECHO_T}$GETCONF" >&6
9272 echo "$as_me:$LINENO: result: no" >&5
9273 echo "${ECHO_T}no" >&6
9277 if test -z "$ac_cv_prog_GETCONF"; then
9278 ac_ct_GETCONF=$GETCONF
9279 # Extract the first word of "getconf", so it can be a program name with args.
9280 set dummy getconf; ac_word=$2
9281 echo "$as_me:$LINENO: checking for $ac_word" >&5
9282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9283 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
9284 echo $ECHO_N "(cached) $ECHO_C" >&6
9286 if test -n "$ac_ct_GETCONF"; then
9287 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
9289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9293 test -z "$as_dir" && as_dir=.
9294 for ac_exec_ext in '' $ac_executable_extensions; do
9295 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9296 ac_cv_prog_ac_ct_GETCONF="getconf"
9297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9305 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
9306 if test -n "$ac_ct_GETCONF"; then
9307 echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
9308 echo "${ECHO_T}$ac_ct_GETCONF" >&6
9310 echo "$as_me:$LINENO: result: no" >&5
9311 echo "${ECHO_T}no" >&6
9314 GETCONF=$ac_ct_GETCONF
9316 GETCONF="$ac_cv_prog_GETCONF"
9319 echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
9320 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
9321 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
9322 echo $ECHO_N "(cached) $ECHO_C" >&6
9324 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
9325 ac_cv_sys_largefile_CFLAGS=no
9327 # IRIX 6.2 and later require cc -n32.
9328 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
9329 if test "$GCC" != yes; then
9330 ac_cv_sys_largefile_CFLAGS=-n32
9333 CC="$CC $ac_cv_sys_largefile_CFLAGS"
9334 cat >conftest.$ac_ext <<_ACEOF
9337 cat confdefs.h >>conftest.$ac_ext
9338 cat >>conftest.$ac_ext <<_ACEOF
9339 /* end confdefs.h. */
9349 rm -f conftest.$ac_objext conftest$ac_exeext
9350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9351 (eval $ac_link) 2>conftest.er1
9353 grep -v '^ *+' conftest.er1 >conftest.err
9355 cat conftest.err >&5
9356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9357 (exit $ac_status); } &&
9358 { ac_try='test -z "$ac_c_werror_flag"
9359 || test ! -s conftest.err'
9360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9364 (exit $ac_status); }; } &&
9365 { ac_try='test -s conftest$ac_exeext'
9366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9370 (exit $ac_status); }; }; then
9373 echo "$as_me: failed program was:" >&5
9374 sed 's/^/| /' conftest.$ac_ext >&5
9376 ac_cv_sys_largefile_CFLAGS=no
9378 rm -f conftest.err conftest.$ac_objext \
9379 conftest$ac_exeext conftest.$ac_ext
9384 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
9385 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
9386 echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
9387 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
9388 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
9389 echo $ECHO_N "(cached) $ECHO_C" >&6
9391 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
9392 ac_cv_sys_largefile_LDFLAGS=no
9396 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
9397 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
9398 echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
9399 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
9400 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
9401 echo $ECHO_N "(cached) $ECHO_C" >&6
9403 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
9404 ac_cv_sys_largefile_LIBS=no
9408 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
9409 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
9411 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9414 -D_FILE_OFFSET_BITS=*) ;;
9415 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
9416 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
9422 '') CPPFLAGS="$ac_flag" ;;
9423 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
9431 '') CFLAGS="$ac_flag" ;;
9432 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
9437 case "$ac_cv_sys_largefile_LDFLAGS" in
9441 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
9442 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
9445 case "$ac_cv_sys_largefile_LIBS" in
9449 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
9450 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
9453 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
9454 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
9455 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
9456 echo $ECHO_N "(cached) $ECHO_C" >&6
9458 ac_cv_sys_file_offset_bits=no
9459 ac_cv_sys_file_offset_bits=64
9460 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9462 -D_FILE_OFFSET_BITS)
9463 ac_cv_sys_file_offset_bits=1 ;;
9464 -D_FILE_OFFSET_BITS=*)
9465 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9470 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
9471 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
9472 if test "$ac_cv_sys_file_offset_bits" != no; then
9474 cat >>confdefs.h <<_ACEOF
9475 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9479 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
9480 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
9481 if test "${ac_cv_sys_largefile_source+set}" = set; then
9482 echo $ECHO_N "(cached) $ECHO_C" >&6
9484 ac_cv_sys_largefile_source=no
9485 ac_cv_sys_largefile_source=1
9486 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9488 -D_LARGEFILE_SOURCE)
9489 ac_cv_sys_largefile_source=1 ;;
9490 -D_LARGEFILE_SOURCE=*)
9491 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9496 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
9497 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
9498 if test "$ac_cv_sys_largefile_source" != no; then
9500 cat >>confdefs.h <<_ACEOF
9501 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9505 echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
9506 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
9507 if test "${ac_cv_sys_large_files+set}" = set; then
9508 echo $ECHO_N "(cached) $ECHO_C" >&6
9510 ac_cv_sys_large_files=no
9511 ac_cv_sys_large_files=1
9512 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9515 ac_cv_sys_large_files=1 ;;
9517 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9522 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
9523 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
9524 if test "$ac_cv_sys_large_files" != no; then
9526 cat >>confdefs.h <<_ACEOF
9527 #define _LARGE_FILES $ac_cv_sys_large_files
9535 echo "$as_me:$LINENO: checking for X" >&5
9536 echo $ECHO_N "checking for X... $ECHO_C" >&6
9539 # Check whether --with-x or --without-x was given.
9540 if test "${with_x+set}" = set; then
9544 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9545 if test "x$with_x" = xno; then
9546 # The user explicitly disabled X.
9549 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
9550 # Both variables are already set.
9553 if test "${ac_cv_have_x+set}" = set; then
9554 echo $ECHO_N "(cached) $ECHO_C" >&6
9556 # One or both of the vars are not set, and there is no cached value.
9557 ac_x_includes=no ac_x_libraries=no
9559 if mkdir conftest.dir; then
9561 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
9562 cat >Imakefile <<'_ACEOF'
9564 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9566 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9567 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9568 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9569 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9570 for ac_extension in a so sl; do
9571 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
9572 test -f $ac_im_libdir/libX11.$ac_extension; then
9573 ac_im_usrlibdir=$ac_im_libdir; break
9576 # Screen out bogus values from the imake configuration. They are
9577 # bogus both because they are the default anyway, and because
9578 # using them would break gcc on systems where it needs fixed includes.
9579 case $ac_im_incroot in
9581 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9583 case $ac_im_usrlibdir in
9585 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9592 # Standard set of common directories for X headers.
9593 # Check X11 before X11Rn because it is often a symlink to the current release.
9605 /usr/local/X11/include
9606 /usr/local/X11R6/include
9607 /usr/local/X11R5/include
9608 /usr/local/X11R4/include
9610 /usr/local/include/X11
9611 /usr/local/include/X11R6
9612 /usr/local/include/X11R5
9613 /usr/local/include/X11R4
9617 /usr/XFree86/include/X11
9621 /usr/unsupported/include
9623 /usr/local/x11r5/include
9624 /usr/lpp/Xamples/include
9626 /usr/openwin/include
9627 /usr/openwin/share/include'
9629 if test "$ac_x_includes" = no; then
9630 # Guess where to find include files, by looking for Intrinsic.h.
9631 # First, try using that file with no special directory specified.
9632 cat >conftest.$ac_ext <<_ACEOF
9635 cat confdefs.h >>conftest.$ac_ext
9636 cat >>conftest.$ac_ext <<_ACEOF
9637 /* end confdefs.h. */
9638 #include <X11/Intrinsic.h>
9640 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9641 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9643 grep -v '^ *+' conftest.er1 >conftest.err
9645 cat conftest.err >&5
9646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9647 (exit $ac_status); } >/dev/null; then
9648 if test -s conftest.err; then
9649 ac_cpp_err=$ac_c_preproc_warn_flag
9650 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9657 if test -z "$ac_cpp_err"; then
9658 # We can compile using X headers with no special include directory.
9661 echo "$as_me: failed program was:" >&5
9662 sed 's/^/| /' conftest.$ac_ext >&5
9664 for ac_dir in $ac_x_header_dirs; do
9665 if test -r "$ac_dir/X11/Intrinsic.h"; then
9666 ac_x_includes=$ac_dir
9671 rm -f conftest.err conftest.$ac_ext
9672 fi # $ac_x_includes = no
9674 if test "$ac_x_libraries" = no; then
9675 # Check for the libraries.
9676 # See if we find them without any special options.
9677 # Don't add to $LIBS permanently.
9680 cat >conftest.$ac_ext <<_ACEOF
9683 cat confdefs.h >>conftest.$ac_ext
9684 cat >>conftest.$ac_ext <<_ACEOF
9685 /* end confdefs.h. */
9686 #include <X11/Intrinsic.h>
9695 rm -f conftest.$ac_objext conftest$ac_exeext
9696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9697 (eval $ac_link) 2>conftest.er1
9699 grep -v '^ *+' conftest.er1 >conftest.err
9701 cat conftest.err >&5
9702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9703 (exit $ac_status); } &&
9704 { ac_try='test -z "$ac_c_werror_flag"
9705 || test ! -s conftest.err'
9706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9710 (exit $ac_status); }; } &&
9711 { ac_try='test -s conftest$ac_exeext'
9712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716 (exit $ac_status); }; }; then
9718 # We can link X programs with no special library path.
9721 echo "$as_me: failed program was:" >&5
9722 sed 's/^/| /' conftest.$ac_ext >&5
9725 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9727 # Don't even attempt the hair of trying to link an X program!
9728 for ac_extension in a so sl; do
9729 if test -r $ac_dir/libXt.$ac_extension; then
9730 ac_x_libraries=$ac_dir
9736 rm -f conftest.err conftest.$ac_objext \
9737 conftest$ac_exeext conftest.$ac_ext
9738 fi # $ac_x_libraries = no
9740 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
9741 # Didn't find X anywhere. Cache the known absence of X.
9742 ac_cv_have_x="have_x=no"
9744 # Record where we found X for the cache.
9745 ac_cv_have_x="have_x=yes \
9746 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9751 eval "$ac_cv_have_x"
9754 if test "$have_x" != yes; then
9755 echo "$as_me:$LINENO: result: $have_x" >&5
9756 echo "${ECHO_T}$have_x" >&6
9759 # If each of the values was on the command line, it overrides each guess.
9760 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9761 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9762 # Update the cache value to reflect the command line values.
9763 ac_cv_have_x="have_x=yes \
9764 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9765 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9766 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
9769 if test "$no_x" = yes; then
9770 # Not all programs may use this symbol, but it does not hurt to define it.
9772 cat >>confdefs.h <<\_ACEOF
9773 #define X_DISPLAY_MISSING 1
9776 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
9778 if test -n "$x_includes"; then
9779 X_CFLAGS="$X_CFLAGS -I$x_includes"
9782 # It would also be nice to do this for all -L options, not just this one.
9783 if test -n "$x_libraries"; then
9784 X_LIBS="$X_LIBS -L$x_libraries"
9785 # For Solaris; some versions of Sun CC require a space after -R and
9786 # others require no space. Words are not sufficient . . . .
9787 case `(uname -sr) 2>/dev/null` in
9789 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
9790 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
9791 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
9792 cat >conftest.$ac_ext <<_ACEOF
9795 cat confdefs.h >>conftest.$ac_ext
9796 cat >>conftest.$ac_ext <<_ACEOF
9797 /* end confdefs.h. */
9807 rm -f conftest.$ac_objext conftest$ac_exeext
9808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9809 (eval $ac_link) 2>conftest.er1
9811 grep -v '^ *+' conftest.er1 >conftest.err
9813 cat conftest.err >&5
9814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9815 (exit $ac_status); } &&
9816 { ac_try='test -z "$ac_c_werror_flag"
9817 || test ! -s conftest.err'
9818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822 (exit $ac_status); }; } &&
9823 { ac_try='test -s conftest$ac_exeext'
9824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828 (exit $ac_status); }; }; then
9831 echo "$as_me: failed program was:" >&5
9832 sed 's/^/| /' conftest.$ac_ext >&5
9836 rm -f conftest.err conftest.$ac_objext \
9837 conftest$ac_exeext conftest.$ac_ext
9838 if test $ac_R_nospace = yes; then
9839 echo "$as_me:$LINENO: result: no" >&5
9840 echo "${ECHO_T}no" >&6
9841 X_LIBS="$X_LIBS -R$x_libraries"
9843 LIBS="$ac_xsave_LIBS -R $x_libraries"
9844 cat >conftest.$ac_ext <<_ACEOF
9847 cat confdefs.h >>conftest.$ac_ext
9848 cat >>conftest.$ac_ext <<_ACEOF
9849 /* end confdefs.h. */
9859 rm -f conftest.$ac_objext conftest$ac_exeext
9860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9861 (eval $ac_link) 2>conftest.er1
9863 grep -v '^ *+' conftest.er1 >conftest.err
9865 cat conftest.err >&5
9866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9867 (exit $ac_status); } &&
9868 { ac_try='test -z "$ac_c_werror_flag"
9869 || test ! -s conftest.err'
9870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874 (exit $ac_status); }; } &&
9875 { ac_try='test -s conftest$ac_exeext'
9876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880 (exit $ac_status); }; }; then
9883 echo "$as_me: failed program was:" >&5
9884 sed 's/^/| /' conftest.$ac_ext >&5
9888 rm -f conftest.err conftest.$ac_objext \
9889 conftest$ac_exeext conftest.$ac_ext
9890 if test $ac_R_space = yes; then
9891 echo "$as_me:$LINENO: result: yes" >&5
9892 echo "${ECHO_T}yes" >&6
9893 X_LIBS="$X_LIBS -R $x_libraries"
9895 echo "$as_me:$LINENO: result: neither works" >&5
9896 echo "${ECHO_T}neither works" >&6
9903 # Check for system-dependent libraries X programs must link with.
9904 # Do this before checking for the system-independent R6 libraries
9905 # (-lICE), since we may need -lsocket or whatever for X linking.
9907 if test "$ISC" = yes; then
9908 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
9910 # Martyn Johnson says this is needed for Ultrix, if the X
9911 # libraries were built with DECnet support. And Karl Berry says
9912 # the Alpha needs dnet_stub (dnet does not exist).
9913 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
9914 cat >conftest.$ac_ext <<_ACEOF
9917 cat confdefs.h >>conftest.$ac_ext
9918 cat >>conftest.$ac_ext <<_ACEOF
9919 /* end confdefs.h. */
9921 /* Override any gcc2 internal prototype to avoid an error. */
9925 /* We use char because int might match the return type of a gcc2
9926 builtin and then its argument prototype would still apply. */
9927 char XOpenDisplay ();
9936 rm -f conftest.$ac_objext conftest$ac_exeext
9937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9938 (eval $ac_link) 2>conftest.er1
9940 grep -v '^ *+' conftest.er1 >conftest.err
9942 cat conftest.err >&5
9943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9944 (exit $ac_status); } &&
9945 { ac_try='test -z "$ac_c_werror_flag"
9946 || test ! -s conftest.err'
9947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9951 (exit $ac_status); }; } &&
9952 { ac_try='test -s conftest$ac_exeext'
9953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9957 (exit $ac_status); }; }; then
9960 echo "$as_me: failed program was:" >&5
9961 sed 's/^/| /' conftest.$ac_ext >&5
9963 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9964 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9965 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9966 echo $ECHO_N "(cached) $ECHO_C" >&6
9968 ac_check_lib_save_LIBS=$LIBS
9970 cat >conftest.$ac_ext <<_ACEOF
9973 cat confdefs.h >>conftest.$ac_ext
9974 cat >>conftest.$ac_ext <<_ACEOF
9975 /* end confdefs.h. */
9977 /* Override any gcc2 internal prototype to avoid an error. */
9981 /* We use char because int might match the return type of a gcc2
9982 builtin and then its argument prototype would still apply. */
9992 rm -f conftest.$ac_objext conftest$ac_exeext
9993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9994 (eval $ac_link) 2>conftest.er1
9996 grep -v '^ *+' conftest.er1 >conftest.err
9998 cat conftest.err >&5
9999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000 (exit $ac_status); } &&
10001 { ac_try='test -z "$ac_c_werror_flag"
10002 || test ! -s conftest.err'
10003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10004 (eval $ac_try) 2>&5
10006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10007 (exit $ac_status); }; } &&
10008 { ac_try='test -s conftest$ac_exeext'
10009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10010 (eval $ac_try) 2>&5
10012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10013 (exit $ac_status); }; }; then
10014 ac_cv_lib_dnet_dnet_ntoa=yes
10016 echo "$as_me: failed program was:" >&5
10017 sed 's/^/| /' conftest.$ac_ext >&5
10019 ac_cv_lib_dnet_dnet_ntoa=no
10021 rm -f conftest.err conftest.$ac_objext \
10022 conftest$ac_exeext conftest.$ac_ext
10023 LIBS=$ac_check_lib_save_LIBS
10025 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10026 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
10027 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10028 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
10031 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
10032 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
10033 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
10034 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
10035 echo $ECHO_N "(cached) $ECHO_C" >&6
10037 ac_check_lib_save_LIBS=$LIBS
10038 LIBS="-ldnet_stub $LIBS"
10039 cat >conftest.$ac_ext <<_ACEOF
10042 cat confdefs.h >>conftest.$ac_ext
10043 cat >>conftest.$ac_ext <<_ACEOF
10044 /* end confdefs.h. */
10046 /* Override any gcc2 internal prototype to avoid an error. */
10050 /* We use char because int might match the return type of a gcc2
10051 builtin and then its argument prototype would still apply. */
10061 rm -f conftest.$ac_objext conftest$ac_exeext
10062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10063 (eval $ac_link) 2>conftest.er1
10065 grep -v '^ *+' conftest.er1 >conftest.err
10067 cat conftest.err >&5
10068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10069 (exit $ac_status); } &&
10070 { ac_try='test -z "$ac_c_werror_flag"
10071 || test ! -s conftest.err'
10072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10073 (eval $ac_try) 2>&5
10075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076 (exit $ac_status); }; } &&
10077 { ac_try='test -s conftest$ac_exeext'
10078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10079 (eval $ac_try) 2>&5
10081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10082 (exit $ac_status); }; }; then
10083 ac_cv_lib_dnet_stub_dnet_ntoa=yes
10085 echo "$as_me: failed program was:" >&5
10086 sed 's/^/| /' conftest.$ac_ext >&5
10088 ac_cv_lib_dnet_stub_dnet_ntoa=no
10090 rm -f conftest.err conftest.$ac_objext \
10091 conftest$ac_exeext conftest.$ac_ext
10092 LIBS=$ac_check_lib_save_LIBS
10094 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
10095 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
10096 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
10097 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
10102 rm -f conftest.err conftest.$ac_objext \
10103 conftest$ac_exeext conftest.$ac_ext
10104 LIBS="$ac_xsave_LIBS"
10106 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
10107 # to get the SysV transport functions.
10108 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
10110 # The nsl library prevents programs from opening the X display
10111 # on Irix 5.2, according to T.E. Dickey.
10112 # The functions gethostbyname, getservbyname, and inet_addr are
10113 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
10114 echo "$as_me:$LINENO: checking for gethostbyname" >&5
10115 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
10116 if test "${ac_cv_func_gethostbyname+set}" = set; then
10117 echo $ECHO_N "(cached) $ECHO_C" >&6
10119 cat >conftest.$ac_ext <<_ACEOF
10122 cat confdefs.h >>conftest.$ac_ext
10123 cat >>conftest.$ac_ext <<_ACEOF
10124 /* end confdefs.h. */
10125 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
10126 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10127 #define gethostbyname innocuous_gethostbyname
10129 /* System header to define __stub macros and hopefully few prototypes,
10130 which can conflict with char gethostbyname (); below.
10131 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10132 <limits.h> exists even on freestanding compilers. */
10135 # include <limits.h>
10137 # include <assert.h>
10140 #undef gethostbyname
10142 /* Override any gcc2 internal prototype to avoid an error. */
10147 /* We use char because int might match the return type of a gcc2
10148 builtin and then its argument prototype would still apply. */
10149 char gethostbyname ();
10150 /* The GNU C library defines this for functions which it implements
10151 to always fail with ENOSYS. Some functions are actually named
10152 something starting with __ and the normal name is an alias. */
10153 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
10156 char (*f) () = gethostbyname;
10165 return f != gethostbyname;
10170 rm -f conftest.$ac_objext conftest$ac_exeext
10171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10172 (eval $ac_link) 2>conftest.er1
10174 grep -v '^ *+' conftest.er1 >conftest.err
10176 cat conftest.err >&5
10177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178 (exit $ac_status); } &&
10179 { ac_try='test -z "$ac_c_werror_flag"
10180 || test ! -s conftest.err'
10181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10182 (eval $ac_try) 2>&5
10184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10185 (exit $ac_status); }; } &&
10186 { ac_try='test -s conftest$ac_exeext'
10187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10188 (eval $ac_try) 2>&5
10190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10191 (exit $ac_status); }; }; then
10192 ac_cv_func_gethostbyname=yes
10194 echo "$as_me: failed program was:" >&5
10195 sed 's/^/| /' conftest.$ac_ext >&5
10197 ac_cv_func_gethostbyname=no
10199 rm -f conftest.err conftest.$ac_objext \
10200 conftest$ac_exeext conftest.$ac_ext
10202 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
10203 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
10205 if test $ac_cv_func_gethostbyname = no; then
10206 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
10207 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
10208 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
10209 echo $ECHO_N "(cached) $ECHO_C" >&6
10211 ac_check_lib_save_LIBS=$LIBS
10213 cat >conftest.$ac_ext <<_ACEOF
10216 cat confdefs.h >>conftest.$ac_ext
10217 cat >>conftest.$ac_ext <<_ACEOF
10218 /* end confdefs.h. */
10220 /* Override any gcc2 internal prototype to avoid an error. */
10224 /* We use char because int might match the return type of a gcc2
10225 builtin and then its argument prototype would still apply. */
10226 char gethostbyname ();
10235 rm -f conftest.$ac_objext conftest$ac_exeext
10236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10237 (eval $ac_link) 2>conftest.er1
10239 grep -v '^ *+' conftest.er1 >conftest.err
10241 cat conftest.err >&5
10242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10243 (exit $ac_status); } &&
10244 { ac_try='test -z "$ac_c_werror_flag"
10245 || test ! -s conftest.err'
10246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10247 (eval $ac_try) 2>&5
10249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10250 (exit $ac_status); }; } &&
10251 { ac_try='test -s conftest$ac_exeext'
10252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10253 (eval $ac_try) 2>&5
10255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256 (exit $ac_status); }; }; then
10257 ac_cv_lib_nsl_gethostbyname=yes
10259 echo "$as_me: failed program was:" >&5
10260 sed 's/^/| /' conftest.$ac_ext >&5
10262 ac_cv_lib_nsl_gethostbyname=no
10264 rm -f conftest.err conftest.$ac_objext \
10265 conftest$ac_exeext conftest.$ac_ext
10266 LIBS=$ac_check_lib_save_LIBS
10268 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
10269 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
10270 if test $ac_cv_lib_nsl_gethostbyname = yes; then
10271 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
10274 if test $ac_cv_lib_nsl_gethostbyname = no; then
10275 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
10276 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
10277 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
10278 echo $ECHO_N "(cached) $ECHO_C" >&6
10280 ac_check_lib_save_LIBS=$LIBS
10282 cat >conftest.$ac_ext <<_ACEOF
10285 cat confdefs.h >>conftest.$ac_ext
10286 cat >>conftest.$ac_ext <<_ACEOF
10287 /* end confdefs.h. */
10289 /* Override any gcc2 internal prototype to avoid an error. */
10293 /* We use char because int might match the return type of a gcc2
10294 builtin and then its argument prototype would still apply. */
10295 char gethostbyname ();
10304 rm -f conftest.$ac_objext conftest$ac_exeext
10305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10306 (eval $ac_link) 2>conftest.er1
10308 grep -v '^ *+' conftest.er1 >conftest.err
10310 cat conftest.err >&5
10311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10312 (exit $ac_status); } &&
10313 { ac_try='test -z "$ac_c_werror_flag"
10314 || test ! -s conftest.err'
10315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10316 (eval $ac_try) 2>&5
10318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10319 (exit $ac_status); }; } &&
10320 { ac_try='test -s conftest$ac_exeext'
10321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10322 (eval $ac_try) 2>&5
10324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10325 (exit $ac_status); }; }; then
10326 ac_cv_lib_bsd_gethostbyname=yes
10328 echo "$as_me: failed program was:" >&5
10329 sed 's/^/| /' conftest.$ac_ext >&5
10331 ac_cv_lib_bsd_gethostbyname=no
10333 rm -f conftest.err conftest.$ac_objext \
10334 conftest$ac_exeext conftest.$ac_ext
10335 LIBS=$ac_check_lib_save_LIBS
10337 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
10338 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
10339 if test $ac_cv_lib_bsd_gethostbyname = yes; then
10340 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
10346 # lieder@skyler.mavd.honeywell.com says without -lsocket,
10347 # socket/setsockopt and other routines are undefined under SCO ODT
10348 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
10349 # on later versions), says Simon Leinen: it contains gethostby*
10350 # variants that don't use the name server (or something). -lsocket
10351 # must be given before -lnsl if both are needed. We assume that
10352 # if connect needs -lnsl, so does gethostbyname.
10353 echo "$as_me:$LINENO: checking for connect" >&5
10354 echo $ECHO_N "checking for connect... $ECHO_C" >&6
10355 if test "${ac_cv_func_connect+set}" = set; then
10356 echo $ECHO_N "(cached) $ECHO_C" >&6
10358 cat >conftest.$ac_ext <<_ACEOF
10361 cat confdefs.h >>conftest.$ac_ext
10362 cat >>conftest.$ac_ext <<_ACEOF
10363 /* end confdefs.h. */
10364 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
10365 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10366 #define connect innocuous_connect
10368 /* System header to define __stub macros and hopefully few prototypes,
10369 which can conflict with char connect (); below.
10370 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10371 <limits.h> exists even on freestanding compilers. */
10374 # include <limits.h>
10376 # include <assert.h>
10381 /* Override any gcc2 internal prototype to avoid an error. */
10386 /* We use char because int might match the return type of a gcc2
10387 builtin and then its argument prototype would still apply. */
10389 /* The GNU C library defines this for functions which it implements
10390 to always fail with ENOSYS. Some functions are actually named
10391 something starting with __ and the normal name is an alias. */
10392 #if defined (__stub_connect) || defined (__stub___connect)
10395 char (*f) () = connect;
10404 return f != connect;
10409 rm -f conftest.$ac_objext conftest$ac_exeext
10410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10411 (eval $ac_link) 2>conftest.er1
10413 grep -v '^ *+' conftest.er1 >conftest.err
10415 cat conftest.err >&5
10416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10417 (exit $ac_status); } &&
10418 { ac_try='test -z "$ac_c_werror_flag"
10419 || test ! -s conftest.err'
10420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10421 (eval $ac_try) 2>&5
10423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424 (exit $ac_status); }; } &&
10425 { ac_try='test -s conftest$ac_exeext'
10426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10427 (eval $ac_try) 2>&5
10429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10430 (exit $ac_status); }; }; then
10431 ac_cv_func_connect=yes
10433 echo "$as_me: failed program was:" >&5
10434 sed 's/^/| /' conftest.$ac_ext >&5
10436 ac_cv_func_connect=no
10438 rm -f conftest.err conftest.$ac_objext \
10439 conftest$ac_exeext conftest.$ac_ext
10441 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
10442 echo "${ECHO_T}$ac_cv_func_connect" >&6
10444 if test $ac_cv_func_connect = no; then
10445 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
10446 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
10447 if test "${ac_cv_lib_socket_connect+set}" = set; then
10448 echo $ECHO_N "(cached) $ECHO_C" >&6
10450 ac_check_lib_save_LIBS=$LIBS
10451 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
10452 cat >conftest.$ac_ext <<_ACEOF
10455 cat confdefs.h >>conftest.$ac_ext
10456 cat >>conftest.$ac_ext <<_ACEOF
10457 /* end confdefs.h. */
10459 /* Override any gcc2 internal prototype to avoid an error. */
10463 /* We use char because int might match the return type of a gcc2
10464 builtin and then its argument prototype would still apply. */
10474 rm -f conftest.$ac_objext conftest$ac_exeext
10475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10476 (eval $ac_link) 2>conftest.er1
10478 grep -v '^ *+' conftest.er1 >conftest.err
10480 cat conftest.err >&5
10481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10482 (exit $ac_status); } &&
10483 { ac_try='test -z "$ac_c_werror_flag"
10484 || test ! -s conftest.err'
10485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10486 (eval $ac_try) 2>&5
10488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10489 (exit $ac_status); }; } &&
10490 { ac_try='test -s conftest$ac_exeext'
10491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10492 (eval $ac_try) 2>&5
10494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10495 (exit $ac_status); }; }; then
10496 ac_cv_lib_socket_connect=yes
10498 echo "$as_me: failed program was:" >&5
10499 sed 's/^/| /' conftest.$ac_ext >&5
10501 ac_cv_lib_socket_connect=no
10503 rm -f conftest.err conftest.$ac_objext \
10504 conftest$ac_exeext conftest.$ac_ext
10505 LIBS=$ac_check_lib_save_LIBS
10507 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
10508 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
10509 if test $ac_cv_lib_socket_connect = yes; then
10510 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
10515 # Guillermo Gomez says -lposix is necessary on A/UX.
10516 echo "$as_me:$LINENO: checking for remove" >&5
10517 echo $ECHO_N "checking for remove... $ECHO_C" >&6
10518 if test "${ac_cv_func_remove+set}" = set; then
10519 echo $ECHO_N "(cached) $ECHO_C" >&6
10521 cat >conftest.$ac_ext <<_ACEOF
10524 cat confdefs.h >>conftest.$ac_ext
10525 cat >>conftest.$ac_ext <<_ACEOF
10526 /* end confdefs.h. */
10527 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
10528 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10529 #define remove innocuous_remove
10531 /* System header to define __stub macros and hopefully few prototypes,
10532 which can conflict with char remove (); below.
10533 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10534 <limits.h> exists even on freestanding compilers. */
10537 # include <limits.h>
10539 # include <assert.h>
10544 /* Override any gcc2 internal prototype to avoid an error. */
10549 /* We use char because int might match the return type of a gcc2
10550 builtin and then its argument prototype would still apply. */
10552 /* The GNU C library defines this for functions which it implements
10553 to always fail with ENOSYS. Some functions are actually named
10554 something starting with __ and the normal name is an alias. */
10555 #if defined (__stub_remove) || defined (__stub___remove)
10558 char (*f) () = remove;
10567 return f != remove;
10572 rm -f conftest.$ac_objext conftest$ac_exeext
10573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10574 (eval $ac_link) 2>conftest.er1
10576 grep -v '^ *+' conftest.er1 >conftest.err
10578 cat conftest.err >&5
10579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10580 (exit $ac_status); } &&
10581 { ac_try='test -z "$ac_c_werror_flag"
10582 || test ! -s conftest.err'
10583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10584 (eval $ac_try) 2>&5
10586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587 (exit $ac_status); }; } &&
10588 { ac_try='test -s conftest$ac_exeext'
10589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10590 (eval $ac_try) 2>&5
10592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10593 (exit $ac_status); }; }; then
10594 ac_cv_func_remove=yes
10596 echo "$as_me: failed program was:" >&5
10597 sed 's/^/| /' conftest.$ac_ext >&5
10599 ac_cv_func_remove=no
10601 rm -f conftest.err conftest.$ac_objext \
10602 conftest$ac_exeext conftest.$ac_ext
10604 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
10605 echo "${ECHO_T}$ac_cv_func_remove" >&6
10607 if test $ac_cv_func_remove = no; then
10608 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
10609 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
10610 if test "${ac_cv_lib_posix_remove+set}" = set; then
10611 echo $ECHO_N "(cached) $ECHO_C" >&6
10613 ac_check_lib_save_LIBS=$LIBS
10614 LIBS="-lposix $LIBS"
10615 cat >conftest.$ac_ext <<_ACEOF
10618 cat confdefs.h >>conftest.$ac_ext
10619 cat >>conftest.$ac_ext <<_ACEOF
10620 /* end confdefs.h. */
10622 /* Override any gcc2 internal prototype to avoid an error. */
10626 /* We use char because int might match the return type of a gcc2
10627 builtin and then its argument prototype would still apply. */
10637 rm -f conftest.$ac_objext conftest$ac_exeext
10638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10639 (eval $ac_link) 2>conftest.er1
10641 grep -v '^ *+' conftest.er1 >conftest.err
10643 cat conftest.err >&5
10644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10645 (exit $ac_status); } &&
10646 { ac_try='test -z "$ac_c_werror_flag"
10647 || test ! -s conftest.err'
10648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10649 (eval $ac_try) 2>&5
10651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10652 (exit $ac_status); }; } &&
10653 { ac_try='test -s conftest$ac_exeext'
10654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10655 (eval $ac_try) 2>&5
10657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10658 (exit $ac_status); }; }; then
10659 ac_cv_lib_posix_remove=yes
10661 echo "$as_me: failed program was:" >&5
10662 sed 's/^/| /' conftest.$ac_ext >&5
10664 ac_cv_lib_posix_remove=no
10666 rm -f conftest.err conftest.$ac_objext \
10667 conftest$ac_exeext conftest.$ac_ext
10668 LIBS=$ac_check_lib_save_LIBS
10670 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
10671 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
10672 if test $ac_cv_lib_posix_remove = yes; then
10673 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
10678 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
10679 echo "$as_me:$LINENO: checking for shmat" >&5
10680 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
10681 if test "${ac_cv_func_shmat+set}" = set; then
10682 echo $ECHO_N "(cached) $ECHO_C" >&6
10684 cat >conftest.$ac_ext <<_ACEOF
10687 cat confdefs.h >>conftest.$ac_ext
10688 cat >>conftest.$ac_ext <<_ACEOF
10689 /* end confdefs.h. */
10690 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
10691 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10692 #define shmat innocuous_shmat
10694 /* System header to define __stub macros and hopefully few prototypes,
10695 which can conflict with char shmat (); below.
10696 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10697 <limits.h> exists even on freestanding compilers. */
10700 # include <limits.h>
10702 # include <assert.h>
10707 /* Override any gcc2 internal prototype to avoid an error. */
10712 /* We use char because int might match the return type of a gcc2
10713 builtin and then its argument prototype would still apply. */
10715 /* The GNU C library defines this for functions which it implements
10716 to always fail with ENOSYS. Some functions are actually named
10717 something starting with __ and the normal name is an alias. */
10718 #if defined (__stub_shmat) || defined (__stub___shmat)
10721 char (*f) () = shmat;
10735 rm -f conftest.$ac_objext conftest$ac_exeext
10736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10737 (eval $ac_link) 2>conftest.er1
10739 grep -v '^ *+' conftest.er1 >conftest.err
10741 cat conftest.err >&5
10742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10743 (exit $ac_status); } &&
10744 { ac_try='test -z "$ac_c_werror_flag"
10745 || test ! -s conftest.err'
10746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10747 (eval $ac_try) 2>&5
10749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10750 (exit $ac_status); }; } &&
10751 { ac_try='test -s conftest$ac_exeext'
10752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10753 (eval $ac_try) 2>&5
10755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10756 (exit $ac_status); }; }; then
10757 ac_cv_func_shmat=yes
10759 echo "$as_me: failed program was:" >&5
10760 sed 's/^/| /' conftest.$ac_ext >&5
10762 ac_cv_func_shmat=no
10764 rm -f conftest.err conftest.$ac_objext \
10765 conftest$ac_exeext conftest.$ac_ext
10767 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
10768 echo "${ECHO_T}$ac_cv_func_shmat" >&6
10770 if test $ac_cv_func_shmat = no; then
10771 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
10772 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
10773 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
10774 echo $ECHO_N "(cached) $ECHO_C" >&6
10776 ac_check_lib_save_LIBS=$LIBS
10778 cat >conftest.$ac_ext <<_ACEOF
10781 cat confdefs.h >>conftest.$ac_ext
10782 cat >>conftest.$ac_ext <<_ACEOF
10783 /* end confdefs.h. */
10785 /* Override any gcc2 internal prototype to avoid an error. */
10789 /* We use char because int might match the return type of a gcc2
10790 builtin and then its argument prototype would still apply. */
10800 rm -f conftest.$ac_objext conftest$ac_exeext
10801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10802 (eval $ac_link) 2>conftest.er1
10804 grep -v '^ *+' conftest.er1 >conftest.err
10806 cat conftest.err >&5
10807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10808 (exit $ac_status); } &&
10809 { ac_try='test -z "$ac_c_werror_flag"
10810 || test ! -s conftest.err'
10811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10812 (eval $ac_try) 2>&5
10814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10815 (exit $ac_status); }; } &&
10816 { ac_try='test -s conftest$ac_exeext'
10817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10818 (eval $ac_try) 2>&5
10820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10821 (exit $ac_status); }; }; then
10822 ac_cv_lib_ipc_shmat=yes
10824 echo "$as_me: failed program was:" >&5
10825 sed 's/^/| /' conftest.$ac_ext >&5
10827 ac_cv_lib_ipc_shmat=no
10829 rm -f conftest.err conftest.$ac_objext \
10830 conftest$ac_exeext conftest.$ac_ext
10831 LIBS=$ac_check_lib_save_LIBS
10833 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
10834 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
10835 if test $ac_cv_lib_ipc_shmat = yes; then
10836 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
10842 # Check for libraries that X11R6 Xt/Xaw programs need.
10843 ac_save_LDFLAGS=$LDFLAGS
10844 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
10845 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
10846 # check for ICE first), but we must link in the order -lSM -lICE or
10847 # we get undefined symbols. So assume we have SM if we have ICE.
10848 # These have to be linked with before -lX11, unlike the other
10849 # libraries we check for below, so use a different variable.
10850 # John Interrante, Karl Berry
10851 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
10852 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
10853 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
10854 echo $ECHO_N "(cached) $ECHO_C" >&6
10856 ac_check_lib_save_LIBS=$LIBS
10857 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
10858 cat >conftest.$ac_ext <<_ACEOF
10861 cat confdefs.h >>conftest.$ac_ext
10862 cat >>conftest.$ac_ext <<_ACEOF
10863 /* end confdefs.h. */
10865 /* Override any gcc2 internal prototype to avoid an error. */
10869 /* We use char because int might match the return type of a gcc2
10870 builtin and then its argument prototype would still apply. */
10871 char IceConnectionNumber ();
10875 IceConnectionNumber ();
10880 rm -f conftest.$ac_objext conftest$ac_exeext
10881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10882 (eval $ac_link) 2>conftest.er1
10884 grep -v '^ *+' conftest.er1 >conftest.err
10886 cat conftest.err >&5
10887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10888 (exit $ac_status); } &&
10889 { ac_try='test -z "$ac_c_werror_flag"
10890 || test ! -s conftest.err'
10891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10892 (eval $ac_try) 2>&5
10894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10895 (exit $ac_status); }; } &&
10896 { ac_try='test -s conftest$ac_exeext'
10897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10898 (eval $ac_try) 2>&5
10900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10901 (exit $ac_status); }; }; then
10902 ac_cv_lib_ICE_IceConnectionNumber=yes
10904 echo "$as_me: failed program was:" >&5
10905 sed 's/^/| /' conftest.$ac_ext >&5
10907 ac_cv_lib_ICE_IceConnectionNumber=no
10909 rm -f conftest.err conftest.$ac_objext \
10910 conftest$ac_exeext conftest.$ac_ext
10911 LIBS=$ac_check_lib_save_LIBS
10913 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
10914 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
10915 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
10916 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
10919 LDFLAGS=$ac_save_LDFLAGS
10981 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10982 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10983 echo "$as_me:$LINENO: checking for $ac_header" >&5
10984 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10985 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10986 echo $ECHO_N "(cached) $ECHO_C" >&6
10988 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10989 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10991 # Is the header compilable?
10992 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10993 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10994 cat >conftest.$ac_ext <<_ACEOF
10997 cat confdefs.h >>conftest.$ac_ext
10998 cat >>conftest.$ac_ext <<_ACEOF
10999 /* end confdefs.h. */
11000 $ac_includes_default
11001 #include <$ac_header>
11003 rm -f conftest.$ac_objext
11004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11005 (eval $ac_compile) 2>conftest.er1
11007 grep -v '^ *+' conftest.er1 >conftest.err
11009 cat conftest.err >&5
11010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11011 (exit $ac_status); } &&
11012 { ac_try='test -z "$ac_c_werror_flag"
11013 || test ! -s conftest.err'
11014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11015 (eval $ac_try) 2>&5
11017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018 (exit $ac_status); }; } &&
11019 { ac_try='test -s conftest.$ac_objext'
11020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11021 (eval $ac_try) 2>&5
11023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024 (exit $ac_status); }; }; then
11025 ac_header_compiler=yes
11027 echo "$as_me: failed program was:" >&5
11028 sed 's/^/| /' conftest.$ac_ext >&5
11030 ac_header_compiler=no
11032 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11033 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11034 echo "${ECHO_T}$ac_header_compiler" >&6
11036 # Is the header present?
11037 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11038 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11039 cat >conftest.$ac_ext <<_ACEOF
11042 cat confdefs.h >>conftest.$ac_ext
11043 cat >>conftest.$ac_ext <<_ACEOF
11044 /* end confdefs.h. */
11045 #include <$ac_header>
11047 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11048 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11050 grep -v '^ *+' conftest.er1 >conftest.err
11052 cat conftest.err >&5
11053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11054 (exit $ac_status); } >/dev/null; then
11055 if test -s conftest.err; then
11056 ac_cpp_err=$ac_c_preproc_warn_flag
11057 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11064 if test -z "$ac_cpp_err"; then
11065 ac_header_preproc=yes
11067 echo "$as_me: failed program was:" >&5
11068 sed 's/^/| /' conftest.$ac_ext >&5
11070 ac_header_preproc=no
11072 rm -f conftest.err conftest.$ac_ext
11073 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11074 echo "${ECHO_T}$ac_header_preproc" >&6
11076 # So? What about this header?
11077 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11079 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11080 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11081 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11082 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11083 ac_header_preproc=yes
11086 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11087 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11088 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11089 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11090 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11091 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11092 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11093 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11094 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11095 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11096 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11097 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11100 ## ------------------------------------------ ##
11101 ## Report this to the AC_PACKAGE_NAME lists. ##
11102 ## ------------------------------------------ ##
11105 sed "s/^/$as_me: WARNING: /" >&2
11108 echo "$as_me:$LINENO: checking for $ac_header" >&5
11109 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11110 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11111 echo $ECHO_N "(cached) $ECHO_C" >&6
11113 eval "$as_ac_Header=\$ac_header_preproc"
11115 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11116 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11119 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11120 cat >>confdefs.h <<_ACEOF
11121 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11128 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
11129 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11130 if test "${ac_cv_header_stdc+set}" = set; then
11131 echo $ECHO_N "(cached) $ECHO_C" >&6
11133 cat >conftest.$ac_ext <<_ACEOF
11136 cat confdefs.h >>conftest.$ac_ext
11137 cat >>conftest.$ac_ext <<_ACEOF
11138 /* end confdefs.h. */
11139 #include <stdlib.h>
11140 #include <stdarg.h>
11141 #include <string.h>
11152 rm -f conftest.$ac_objext
11153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11154 (eval $ac_compile) 2>conftest.er1
11156 grep -v '^ *+' conftest.er1 >conftest.err
11158 cat conftest.err >&5
11159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11160 (exit $ac_status); } &&
11161 { ac_try='test -z "$ac_c_werror_flag"
11162 || test ! -s conftest.err'
11163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11164 (eval $ac_try) 2>&5
11166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11167 (exit $ac_status); }; } &&
11168 { ac_try='test -s conftest.$ac_objext'
11169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11170 (eval $ac_try) 2>&5
11172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11173 (exit $ac_status); }; }; then
11174 ac_cv_header_stdc=yes
11176 echo "$as_me: failed program was:" >&5
11177 sed 's/^/| /' conftest.$ac_ext >&5
11179 ac_cv_header_stdc=no
11181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11183 if test $ac_cv_header_stdc = yes; then
11184 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11185 cat >conftest.$ac_ext <<_ACEOF
11188 cat confdefs.h >>conftest.$ac_ext
11189 cat >>conftest.$ac_ext <<_ACEOF
11190 /* end confdefs.h. */
11191 #include <string.h>
11194 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11195 $EGREP "memchr" >/dev/null 2>&1; then
11198 ac_cv_header_stdc=no
11204 if test $ac_cv_header_stdc = yes; then
11205 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11206 cat >conftest.$ac_ext <<_ACEOF
11209 cat confdefs.h >>conftest.$ac_ext
11210 cat >>conftest.$ac_ext <<_ACEOF
11211 /* end confdefs.h. */
11212 #include <stdlib.h>
11215 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11216 $EGREP "free" >/dev/null 2>&1; then
11219 ac_cv_header_stdc=no
11225 if test $ac_cv_header_stdc = yes; then
11226 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11227 if test "$cross_compiling" = yes; then
11230 cat >conftest.$ac_ext <<_ACEOF
11233 cat confdefs.h >>conftest.$ac_ext
11234 cat >>conftest.$ac_ext <<_ACEOF
11235 /* end confdefs.h. */
11237 #if ((' ' & 0x0FF) == 0x020)
11238 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11239 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11241 # define ISLOWER(c) \
11242 (('a' <= (c) && (c) <= 'i') \
11243 || ('j' <= (c) && (c) <= 'r') \
11244 || ('s' <= (c) && (c) <= 'z'))
11245 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11248 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11253 for (i = 0; i < 256; i++)
11254 if (XOR (islower (i), ISLOWER (i))
11255 || toupper (i) != TOUPPER (i))
11260 rm -f conftest$ac_exeext
11261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11262 (eval $ac_link) 2>&5
11264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11267 (eval $ac_try) 2>&5
11269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11270 (exit $ac_status); }; }; then
11273 echo "$as_me: program exited with status $ac_status" >&5
11274 echo "$as_me: failed program was:" >&5
11275 sed 's/^/| /' conftest.$ac_ext >&5
11277 ( exit $ac_status )
11278 ac_cv_header_stdc=no
11280 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11284 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11285 echo "${ECHO_T}$ac_cv_header_stdc" >&6
11286 if test $ac_cv_header_stdc = yes; then
11288 cat >>confdefs.h <<\_ACEOF
11289 #define STDC_HEADERS 1
11294 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
11295 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
11296 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
11297 echo $ECHO_N "(cached) $ECHO_C" >&6
11299 cat >conftest.$ac_ext <<_ACEOF
11302 cat confdefs.h >>conftest.$ac_ext
11303 cat >>conftest.$ac_ext <<_ACEOF
11304 /* end confdefs.h. */
11305 #include <sys/types.h>
11309 return makedev(0, 0);
11314 rm -f conftest.$ac_objext conftest$ac_exeext
11315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11316 (eval $ac_link) 2>conftest.er1
11318 grep -v '^ *+' conftest.er1 >conftest.err
11320 cat conftest.err >&5
11321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11322 (exit $ac_status); } &&
11323 { ac_try='test -z "$ac_c_werror_flag"
11324 || test ! -s conftest.err'
11325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11326 (eval $ac_try) 2>&5
11328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11329 (exit $ac_status); }; } &&
11330 { ac_try='test -s conftest$ac_exeext'
11331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11332 (eval $ac_try) 2>&5
11334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11335 (exit $ac_status); }; }; then
11336 ac_cv_header_sys_types_h_makedev=yes
11338 echo "$as_me: failed program was:" >&5
11339 sed 's/^/| /' conftest.$ac_ext >&5
11341 ac_cv_header_sys_types_h_makedev=no
11343 rm -f conftest.err conftest.$ac_objext \
11344 conftest$ac_exeext conftest.$ac_ext
11347 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
11348 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
11350 if test $ac_cv_header_sys_types_h_makedev = no; then
11351 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
11352 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
11353 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
11354 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
11355 echo $ECHO_N "(cached) $ECHO_C" >&6
11357 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
11358 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
11360 # Is the header compilable?
11361 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
11362 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
11363 cat >conftest.$ac_ext <<_ACEOF
11366 cat confdefs.h >>conftest.$ac_ext
11367 cat >>conftest.$ac_ext <<_ACEOF
11368 /* end confdefs.h. */
11369 $ac_includes_default
11370 #include <sys/mkdev.h>
11372 rm -f conftest.$ac_objext
11373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11374 (eval $ac_compile) 2>conftest.er1
11376 grep -v '^ *+' conftest.er1 >conftest.err
11378 cat conftest.err >&5
11379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11380 (exit $ac_status); } &&
11381 { ac_try='test -z "$ac_c_werror_flag"
11382 || test ! -s conftest.err'
11383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11384 (eval $ac_try) 2>&5
11386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11387 (exit $ac_status); }; } &&
11388 { ac_try='test -s conftest.$ac_objext'
11389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11390 (eval $ac_try) 2>&5
11392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11393 (exit $ac_status); }; }; then
11394 ac_header_compiler=yes
11396 echo "$as_me: failed program was:" >&5
11397 sed 's/^/| /' conftest.$ac_ext >&5
11399 ac_header_compiler=no
11401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11402 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11403 echo "${ECHO_T}$ac_header_compiler" >&6
11405 # Is the header present?
11406 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
11407 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
11408 cat >conftest.$ac_ext <<_ACEOF
11411 cat confdefs.h >>conftest.$ac_ext
11412 cat >>conftest.$ac_ext <<_ACEOF
11413 /* end confdefs.h. */
11414 #include <sys/mkdev.h>
11416 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11417 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11419 grep -v '^ *+' conftest.er1 >conftest.err
11421 cat conftest.err >&5
11422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11423 (exit $ac_status); } >/dev/null; then
11424 if test -s conftest.err; then
11425 ac_cpp_err=$ac_c_preproc_warn_flag
11426 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11433 if test -z "$ac_cpp_err"; then
11434 ac_header_preproc=yes
11436 echo "$as_me: failed program was:" >&5
11437 sed 's/^/| /' conftest.$ac_ext >&5
11439 ac_header_preproc=no
11441 rm -f conftest.err conftest.$ac_ext
11442 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11443 echo "${ECHO_T}$ac_header_preproc" >&6
11445 # So? What about this header?
11446 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11448 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
11449 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11450 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
11451 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
11452 ac_header_preproc=yes
11455 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
11456 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
11457 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
11458 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
11459 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
11460 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
11461 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
11462 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
11463 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
11464 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
11465 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
11466 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
11469 ## ------------------------------------------ ##
11470 ## Report this to the AC_PACKAGE_NAME lists. ##
11471 ## ------------------------------------------ ##
11474 sed "s/^/$as_me: WARNING: /" >&2
11477 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
11478 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
11479 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
11480 echo $ECHO_N "(cached) $ECHO_C" >&6
11482 ac_cv_header_sys_mkdev_h=$ac_header_preproc
11484 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
11485 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
11488 if test $ac_cv_header_sys_mkdev_h = yes; then
11490 cat >>confdefs.h <<\_ACEOF
11491 #define MAJOR_IN_MKDEV 1
11498 if test $ac_cv_header_sys_mkdev_h = no; then
11499 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
11500 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
11501 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
11502 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
11503 echo $ECHO_N "(cached) $ECHO_C" >&6
11505 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
11506 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
11508 # Is the header compilable?
11509 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
11510 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
11511 cat >conftest.$ac_ext <<_ACEOF
11514 cat confdefs.h >>conftest.$ac_ext
11515 cat >>conftest.$ac_ext <<_ACEOF
11516 /* end confdefs.h. */
11517 $ac_includes_default
11518 #include <sys/sysmacros.h>
11520 rm -f conftest.$ac_objext
11521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11522 (eval $ac_compile) 2>conftest.er1
11524 grep -v '^ *+' conftest.er1 >conftest.err
11526 cat conftest.err >&5
11527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11528 (exit $ac_status); } &&
11529 { ac_try='test -z "$ac_c_werror_flag"
11530 || test ! -s conftest.err'
11531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11532 (eval $ac_try) 2>&5
11534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11535 (exit $ac_status); }; } &&
11536 { ac_try='test -s conftest.$ac_objext'
11537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11538 (eval $ac_try) 2>&5
11540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11541 (exit $ac_status); }; }; then
11542 ac_header_compiler=yes
11544 echo "$as_me: failed program was:" >&5
11545 sed 's/^/| /' conftest.$ac_ext >&5
11547 ac_header_compiler=no
11549 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11550 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11551 echo "${ECHO_T}$ac_header_compiler" >&6
11553 # Is the header present?
11554 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
11555 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
11556 cat >conftest.$ac_ext <<_ACEOF
11559 cat confdefs.h >>conftest.$ac_ext
11560 cat >>conftest.$ac_ext <<_ACEOF
11561 /* end confdefs.h. */
11562 #include <sys/sysmacros.h>
11564 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11565 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11567 grep -v '^ *+' conftest.er1 >conftest.err
11569 cat conftest.err >&5
11570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11571 (exit $ac_status); } >/dev/null; then
11572 if test -s conftest.err; then
11573 ac_cpp_err=$ac_c_preproc_warn_flag
11574 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11581 if test -z "$ac_cpp_err"; then
11582 ac_header_preproc=yes
11584 echo "$as_me: failed program was:" >&5
11585 sed 's/^/| /' conftest.$ac_ext >&5
11587 ac_header_preproc=no
11589 rm -f conftest.err conftest.$ac_ext
11590 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11591 echo "${ECHO_T}$ac_header_preproc" >&6
11593 # So? What about this header?
11594 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11596 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
11597 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11598 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
11599 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
11600 ac_header_preproc=yes
11603 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
11604 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
11605 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
11606 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
11607 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
11608 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
11609 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
11610 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
11611 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
11612 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
11613 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
11614 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
11617 ## ------------------------------------------ ##
11618 ## Report this to the AC_PACKAGE_NAME lists. ##
11619 ## ------------------------------------------ ##
11622 sed "s/^/$as_me: WARNING: /" >&2
11625 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
11626 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
11627 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
11628 echo $ECHO_N "(cached) $ECHO_C" >&6
11630 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
11632 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
11633 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
11636 if test $ac_cv_header_sys_sysmacros_h = yes; then
11638 cat >>confdefs.h <<\_ACEOF
11639 #define MAJOR_IN_SYSMACROS 1
11653 ac_header_dirent=no
11654 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11655 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11656 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
11657 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
11658 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11659 echo $ECHO_N "(cached) $ECHO_C" >&6
11661 cat >conftest.$ac_ext <<_ACEOF
11664 cat confdefs.h >>conftest.$ac_ext
11665 cat >>conftest.$ac_ext <<_ACEOF
11666 /* end confdefs.h. */
11667 #include <sys/types.h>
11679 rm -f conftest.$ac_objext
11680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11681 (eval $ac_compile) 2>conftest.er1
11683 grep -v '^ *+' conftest.er1 >conftest.err
11685 cat conftest.err >&5
11686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11687 (exit $ac_status); } &&
11688 { ac_try='test -z "$ac_c_werror_flag"
11689 || test ! -s conftest.err'
11690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11691 (eval $ac_try) 2>&5
11693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11694 (exit $ac_status); }; } &&
11695 { ac_try='test -s conftest.$ac_objext'
11696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11697 (eval $ac_try) 2>&5
11699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11700 (exit $ac_status); }; }; then
11701 eval "$as_ac_Header=yes"
11703 echo "$as_me: failed program was:" >&5
11704 sed 's/^/| /' conftest.$ac_ext >&5
11706 eval "$as_ac_Header=no"
11708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11710 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11711 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11712 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11713 cat >>confdefs.h <<_ACEOF
11714 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11717 ac_header_dirent=$ac_hdr; break
11721 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11722 if test $ac_header_dirent = dirent.h; then
11723 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11724 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11725 if test "${ac_cv_search_opendir+set}" = set; then
11726 echo $ECHO_N "(cached) $ECHO_C" >&6
11728 ac_func_search_save_LIBS=$LIBS
11729 ac_cv_search_opendir=no
11730 cat >conftest.$ac_ext <<_ACEOF
11733 cat confdefs.h >>conftest.$ac_ext
11734 cat >>conftest.$ac_ext <<_ACEOF
11735 /* end confdefs.h. */
11737 /* Override any gcc2 internal prototype to avoid an error. */
11741 /* We use char because int might match the return type of a gcc2
11742 builtin and then its argument prototype would still apply. */
11752 rm -f conftest.$ac_objext conftest$ac_exeext
11753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11754 (eval $ac_link) 2>conftest.er1
11756 grep -v '^ *+' conftest.er1 >conftest.err
11758 cat conftest.err >&5
11759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11760 (exit $ac_status); } &&
11761 { ac_try='test -z "$ac_c_werror_flag"
11762 || test ! -s conftest.err'
11763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11764 (eval $ac_try) 2>&5
11766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11767 (exit $ac_status); }; } &&
11768 { ac_try='test -s conftest$ac_exeext'
11769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11770 (eval $ac_try) 2>&5
11772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11773 (exit $ac_status); }; }; then
11774 ac_cv_search_opendir="none required"
11776 echo "$as_me: failed program was:" >&5
11777 sed 's/^/| /' conftest.$ac_ext >&5
11780 rm -f conftest.err conftest.$ac_objext \
11781 conftest$ac_exeext conftest.$ac_ext
11782 if test "$ac_cv_search_opendir" = no; then
11783 for ac_lib in dir; do
11784 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11785 cat >conftest.$ac_ext <<_ACEOF
11788 cat confdefs.h >>conftest.$ac_ext
11789 cat >>conftest.$ac_ext <<_ACEOF
11790 /* end confdefs.h. */
11792 /* Override any gcc2 internal prototype to avoid an error. */
11796 /* We use char because int might match the return type of a gcc2
11797 builtin and then its argument prototype would still apply. */
11807 rm -f conftest.$ac_objext conftest$ac_exeext
11808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11809 (eval $ac_link) 2>conftest.er1
11811 grep -v '^ *+' conftest.er1 >conftest.err
11813 cat conftest.err >&5
11814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815 (exit $ac_status); } &&
11816 { ac_try='test -z "$ac_c_werror_flag"
11817 || test ! -s conftest.err'
11818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11819 (eval $ac_try) 2>&5
11821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822 (exit $ac_status); }; } &&
11823 { ac_try='test -s conftest$ac_exeext'
11824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11825 (eval $ac_try) 2>&5
11827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11828 (exit $ac_status); }; }; then
11829 ac_cv_search_opendir="-l$ac_lib"
11832 echo "$as_me: failed program was:" >&5
11833 sed 's/^/| /' conftest.$ac_ext >&5
11836 rm -f conftest.err conftest.$ac_objext \
11837 conftest$ac_exeext conftest.$ac_ext
11840 LIBS=$ac_func_search_save_LIBS
11842 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11843 echo "${ECHO_T}$ac_cv_search_opendir" >&6
11844 if test "$ac_cv_search_opendir" != no; then
11845 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11850 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11851 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11852 if test "${ac_cv_search_opendir+set}" = set; then
11853 echo $ECHO_N "(cached) $ECHO_C" >&6
11855 ac_func_search_save_LIBS=$LIBS
11856 ac_cv_search_opendir=no
11857 cat >conftest.$ac_ext <<_ACEOF
11860 cat confdefs.h >>conftest.$ac_ext
11861 cat >>conftest.$ac_ext <<_ACEOF
11862 /* end confdefs.h. */
11864 /* Override any gcc2 internal prototype to avoid an error. */
11868 /* We use char because int might match the return type of a gcc2
11869 builtin and then its argument prototype would still apply. */
11879 rm -f conftest.$ac_objext conftest$ac_exeext
11880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11881 (eval $ac_link) 2>conftest.er1
11883 grep -v '^ *+' conftest.er1 >conftest.err
11885 cat conftest.err >&5
11886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11887 (exit $ac_status); } &&
11888 { ac_try='test -z "$ac_c_werror_flag"
11889 || test ! -s conftest.err'
11890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11891 (eval $ac_try) 2>&5
11893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11894 (exit $ac_status); }; } &&
11895 { ac_try='test -s conftest$ac_exeext'
11896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11897 (eval $ac_try) 2>&5
11899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11900 (exit $ac_status); }; }; then
11901 ac_cv_search_opendir="none required"
11903 echo "$as_me: failed program was:" >&5
11904 sed 's/^/| /' conftest.$ac_ext >&5
11907 rm -f conftest.err conftest.$ac_objext \
11908 conftest$ac_exeext conftest.$ac_ext
11909 if test "$ac_cv_search_opendir" = no; then
11910 for ac_lib in x; do
11911 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11912 cat >conftest.$ac_ext <<_ACEOF
11915 cat confdefs.h >>conftest.$ac_ext
11916 cat >>conftest.$ac_ext <<_ACEOF
11917 /* end confdefs.h. */
11919 /* Override any gcc2 internal prototype to avoid an error. */
11923 /* We use char because int might match the return type of a gcc2
11924 builtin and then its argument prototype would still apply. */
11934 rm -f conftest.$ac_objext conftest$ac_exeext
11935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11936 (eval $ac_link) 2>conftest.er1
11938 grep -v '^ *+' conftest.er1 >conftest.err
11940 cat conftest.err >&5
11941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11942 (exit $ac_status); } &&
11943 { ac_try='test -z "$ac_c_werror_flag"
11944 || test ! -s conftest.err'
11945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11946 (eval $ac_try) 2>&5
11948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11949 (exit $ac_status); }; } &&
11950 { ac_try='test -s conftest$ac_exeext'
11951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11952 (eval $ac_try) 2>&5
11954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11955 (exit $ac_status); }; }; then
11956 ac_cv_search_opendir="-l$ac_lib"
11959 echo "$as_me: failed program was:" >&5
11960 sed 's/^/| /' conftest.$ac_ext >&5
11963 rm -f conftest.err conftest.$ac_objext \
11964 conftest$ac_exeext conftest.$ac_ext
11967 LIBS=$ac_func_search_save_LIBS
11969 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11970 echo "${ECHO_T}$ac_cv_search_opendir" >&6
11971 if test "$ac_cv_search_opendir" != no; then
11972 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11978 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
11979 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
11980 if test "${ac_cv_header_stat_broken+set}" = set; then
11981 echo $ECHO_N "(cached) $ECHO_C" >&6
11983 cat >conftest.$ac_ext <<_ACEOF
11986 cat confdefs.h >>conftest.$ac_ext
11987 cat >>conftest.$ac_ext <<_ACEOF
11988 /* end confdefs.h. */
11989 #include <sys/types.h>
11990 #include <sys/stat.h>
11992 #if defined(S_ISBLK) && defined(S_IFDIR)
11993 # if S_ISBLK (S_IFDIR)
11998 #if defined(S_ISBLK) && defined(S_IFCHR)
11999 # if S_ISBLK (S_IFCHR)
12004 #if defined(S_ISLNK) && defined(S_IFREG)
12005 # if S_ISLNK (S_IFREG)
12010 #if defined(S_ISSOCK) && defined(S_IFREG)
12011 # if S_ISSOCK (S_IFREG)
12017 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12018 $EGREP "You lose" >/dev/null 2>&1; then
12019 ac_cv_header_stat_broken=yes
12021 ac_cv_header_stat_broken=no
12026 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
12027 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
12028 if test $ac_cv_header_stat_broken = yes; then
12030 cat >>confdefs.h <<\_ACEOF
12031 #define STAT_MACROS_BROKEN 1
12036 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
12037 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
12038 if test "${ac_cv_header_sys_wait_h+set}" = set; then
12039 echo $ECHO_N "(cached) $ECHO_C" >&6
12041 cat >conftest.$ac_ext <<_ACEOF
12044 cat confdefs.h >>conftest.$ac_ext
12045 cat >>conftest.$ac_ext <<_ACEOF
12046 /* end confdefs.h. */
12047 #include <sys/types.h>
12048 #include <sys/wait.h>
12049 #ifndef WEXITSTATUS
12050 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
12053 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
12061 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
12066 rm -f conftest.$ac_objext
12067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12068 (eval $ac_compile) 2>conftest.er1
12070 grep -v '^ *+' conftest.er1 >conftest.err
12072 cat conftest.err >&5
12073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12074 (exit $ac_status); } &&
12075 { ac_try='test -z "$ac_c_werror_flag"
12076 || test ! -s conftest.err'
12077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12078 (eval $ac_try) 2>&5
12080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081 (exit $ac_status); }; } &&
12082 { ac_try='test -s conftest.$ac_objext'
12083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12084 (eval $ac_try) 2>&5
12086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12087 (exit $ac_status); }; }; then
12088 ac_cv_header_sys_wait_h=yes
12090 echo "$as_me: failed program was:" >&5
12091 sed 's/^/| /' conftest.$ac_ext >&5
12093 ac_cv_header_sys_wait_h=no
12095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12097 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
12098 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
12099 if test $ac_cv_header_sys_wait_h = yes; then
12101 cat >>confdefs.h <<\_ACEOF
12102 #define HAVE_SYS_WAIT_H 1
12107 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
12108 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
12109 if test "${ac_cv_header_time+set}" = set; then
12110 echo $ECHO_N "(cached) $ECHO_C" >&6
12112 cat >conftest.$ac_ext <<_ACEOF
12115 cat confdefs.h >>conftest.$ac_ext
12116 cat >>conftest.$ac_ext <<_ACEOF
12117 /* end confdefs.h. */
12118 #include <sys/types.h>
12119 #include <sys/time.h>
12125 if ((struct tm *) 0)
12131 rm -f conftest.$ac_objext
12132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12133 (eval $ac_compile) 2>conftest.er1
12135 grep -v '^ *+' conftest.er1 >conftest.err
12137 cat conftest.err >&5
12138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12139 (exit $ac_status); } &&
12140 { ac_try='test -z "$ac_c_werror_flag"
12141 || test ! -s conftest.err'
12142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12143 (eval $ac_try) 2>&5
12145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12146 (exit $ac_status); }; } &&
12147 { ac_try='test -s conftest.$ac_objext'
12148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12149 (eval $ac_try) 2>&5
12151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12152 (exit $ac_status); }; }; then
12153 ac_cv_header_time=yes
12155 echo "$as_me: failed program was:" >&5
12156 sed 's/^/| /' conftest.$ac_ext >&5
12158 ac_cv_header_time=no
12160 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12162 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
12163 echo "${ECHO_T}$ac_cv_header_time" >&6
12164 if test $ac_cv_header_time = yes; then
12166 cat >>confdefs.h <<\_ACEOF
12167 #define TIME_WITH_SYS_TIME 1
12173 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
12174 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
12175 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
12176 echo $ECHO_N "(cached) $ECHO_C" >&6
12178 cat >conftest.$ac_ext <<_ACEOF
12181 cat confdefs.h >>conftest.$ac_ext
12182 cat >>conftest.$ac_ext <<_ACEOF
12183 /* end confdefs.h. */
12184 $ac_includes_default
12188 static struct stat ac_aggr;
12189 if (ac_aggr.st_blksize)
12195 rm -f conftest.$ac_objext
12196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12197 (eval $ac_compile) 2>conftest.er1
12199 grep -v '^ *+' conftest.er1 >conftest.err
12201 cat conftest.err >&5
12202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12203 (exit $ac_status); } &&
12204 { ac_try='test -z "$ac_c_werror_flag"
12205 || test ! -s conftest.err'
12206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12207 (eval $ac_try) 2>&5
12209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12210 (exit $ac_status); }; } &&
12211 { ac_try='test -s conftest.$ac_objext'
12212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12213 (eval $ac_try) 2>&5
12215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12216 (exit $ac_status); }; }; then
12217 ac_cv_member_struct_stat_st_blksize=yes
12219 echo "$as_me: failed program was:" >&5
12220 sed 's/^/| /' conftest.$ac_ext >&5
12222 cat >conftest.$ac_ext <<_ACEOF
12225 cat confdefs.h >>conftest.$ac_ext
12226 cat >>conftest.$ac_ext <<_ACEOF
12227 /* end confdefs.h. */
12228 $ac_includes_default
12232 static struct stat ac_aggr;
12233 if (sizeof ac_aggr.st_blksize)
12239 rm -f conftest.$ac_objext
12240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12241 (eval $ac_compile) 2>conftest.er1
12243 grep -v '^ *+' conftest.er1 >conftest.err
12245 cat conftest.err >&5
12246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12247 (exit $ac_status); } &&
12248 { ac_try='test -z "$ac_c_werror_flag"
12249 || test ! -s conftest.err'
12250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12251 (eval $ac_try) 2>&5
12253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12254 (exit $ac_status); }; } &&
12255 { ac_try='test -s conftest.$ac_objext'
12256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12257 (eval $ac_try) 2>&5
12259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12260 (exit $ac_status); }; }; then
12261 ac_cv_member_struct_stat_st_blksize=yes
12263 echo "$as_me: failed program was:" >&5
12264 sed 's/^/| /' conftest.$ac_ext >&5
12266 ac_cv_member_struct_stat_st_blksize=no
12268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12270 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12272 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
12273 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
12274 if test $ac_cv_member_struct_stat_st_blksize = yes; then
12276 cat >>confdefs.h <<_ACEOF
12277 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
12281 cat >>confdefs.h <<\_ACEOF
12282 #define HAVE_ST_BLKSIZE 1
12288 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
12289 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
12290 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
12291 echo $ECHO_N "(cached) $ECHO_C" >&6
12293 cat >conftest.$ac_ext <<_ACEOF
12296 cat confdefs.h >>conftest.$ac_ext
12297 cat >>conftest.$ac_ext <<_ACEOF
12298 /* end confdefs.h. */
12299 $ac_includes_default
12303 static struct stat ac_aggr;
12304 if (ac_aggr.st_blocks)
12310 rm -f conftest.$ac_objext
12311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12312 (eval $ac_compile) 2>conftest.er1
12314 grep -v '^ *+' conftest.er1 >conftest.err
12316 cat conftest.err >&5
12317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12318 (exit $ac_status); } &&
12319 { ac_try='test -z "$ac_c_werror_flag"
12320 || test ! -s conftest.err'
12321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12322 (eval $ac_try) 2>&5
12324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12325 (exit $ac_status); }; } &&
12326 { ac_try='test -s conftest.$ac_objext'
12327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12328 (eval $ac_try) 2>&5
12330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12331 (exit $ac_status); }; }; then
12332 ac_cv_member_struct_stat_st_blocks=yes
12334 echo "$as_me: failed program was:" >&5
12335 sed 's/^/| /' conftest.$ac_ext >&5
12337 cat >conftest.$ac_ext <<_ACEOF
12340 cat confdefs.h >>conftest.$ac_ext
12341 cat >>conftest.$ac_ext <<_ACEOF
12342 /* end confdefs.h. */
12343 $ac_includes_default
12347 static struct stat ac_aggr;
12348 if (sizeof ac_aggr.st_blocks)
12354 rm -f conftest.$ac_objext
12355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12356 (eval $ac_compile) 2>conftest.er1
12358 grep -v '^ *+' conftest.er1 >conftest.err
12360 cat conftest.err >&5
12361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12362 (exit $ac_status); } &&
12363 { ac_try='test -z "$ac_c_werror_flag"
12364 || test ! -s conftest.err'
12365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12366 (eval $ac_try) 2>&5
12368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369 (exit $ac_status); }; } &&
12370 { ac_try='test -s conftest.$ac_objext'
12371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12372 (eval $ac_try) 2>&5
12374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12375 (exit $ac_status); }; }; then
12376 ac_cv_member_struct_stat_st_blocks=yes
12378 echo "$as_me: failed program was:" >&5
12379 sed 's/^/| /' conftest.$ac_ext >&5
12381 ac_cv_member_struct_stat_st_blocks=no
12383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12387 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
12388 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
12389 if test $ac_cv_member_struct_stat_st_blocks = yes; then
12391 cat >>confdefs.h <<_ACEOF
12392 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12396 cat >>confdefs.h <<\_ACEOF
12397 #define HAVE_ST_BLOCKS 1
12402 "fileblocks.$ac_objext" | \
12403 *" fileblocks.$ac_objext" | \
12404 "fileblocks.$ac_objext "* | \
12405 *" fileblocks.$ac_objext "* ) ;;
12406 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
12412 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12413 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
12414 if test "${ac_cv_struct_tm+set}" = set; then
12415 echo $ECHO_N "(cached) $ECHO_C" >&6
12417 cat >conftest.$ac_ext <<_ACEOF
12420 cat confdefs.h >>conftest.$ac_ext
12421 cat >>conftest.$ac_ext <<_ACEOF
12422 /* end confdefs.h. */
12423 #include <sys/types.h>
12429 struct tm *tp; tp->tm_sec;
12434 rm -f conftest.$ac_objext
12435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12436 (eval $ac_compile) 2>conftest.er1
12438 grep -v '^ *+' conftest.er1 >conftest.err
12440 cat conftest.err >&5
12441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12442 (exit $ac_status); } &&
12443 { ac_try='test -z "$ac_c_werror_flag"
12444 || test ! -s conftest.err'
12445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12446 (eval $ac_try) 2>&5
12448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12449 (exit $ac_status); }; } &&
12450 { ac_try='test -s conftest.$ac_objext'
12451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12452 (eval $ac_try) 2>&5
12454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12455 (exit $ac_status); }; }; then
12456 ac_cv_struct_tm=time.h
12458 echo "$as_me: failed program was:" >&5
12459 sed 's/^/| /' conftest.$ac_ext >&5
12461 ac_cv_struct_tm=sys/time.h
12463 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12465 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12466 echo "${ECHO_T}$ac_cv_struct_tm" >&6
12467 if test $ac_cv_struct_tm = sys/time.h; then
12469 cat >>confdefs.h <<\_ACEOF
12470 #define TM_IN_SYS_TIME 1
12475 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
12476 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
12477 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
12478 echo $ECHO_N "(cached) $ECHO_C" >&6
12480 cat >conftest.$ac_ext <<_ACEOF
12483 cat confdefs.h >>conftest.$ac_ext
12484 cat >>conftest.$ac_ext <<_ACEOF
12485 /* end confdefs.h. */
12486 #include <sys/types.h>
12487 #include <$ac_cv_struct_tm>
12493 static struct tm ac_aggr;
12494 if (ac_aggr.tm_zone)
12500 rm -f conftest.$ac_objext
12501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12502 (eval $ac_compile) 2>conftest.er1
12504 grep -v '^ *+' conftest.er1 >conftest.err
12506 cat conftest.err >&5
12507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12508 (exit $ac_status); } &&
12509 { ac_try='test -z "$ac_c_werror_flag"
12510 || test ! -s conftest.err'
12511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12512 (eval $ac_try) 2>&5
12514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12515 (exit $ac_status); }; } &&
12516 { ac_try='test -s conftest.$ac_objext'
12517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12518 (eval $ac_try) 2>&5
12520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12521 (exit $ac_status); }; }; then
12522 ac_cv_member_struct_tm_tm_zone=yes
12524 echo "$as_me: failed program was:" >&5
12525 sed 's/^/| /' conftest.$ac_ext >&5
12527 cat >conftest.$ac_ext <<_ACEOF
12530 cat confdefs.h >>conftest.$ac_ext
12531 cat >>conftest.$ac_ext <<_ACEOF
12532 /* end confdefs.h. */
12533 #include <sys/types.h>
12534 #include <$ac_cv_struct_tm>
12540 static struct tm ac_aggr;
12541 if (sizeof ac_aggr.tm_zone)
12547 rm -f conftest.$ac_objext
12548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12549 (eval $ac_compile) 2>conftest.er1
12551 grep -v '^ *+' conftest.er1 >conftest.err
12553 cat conftest.err >&5
12554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555 (exit $ac_status); } &&
12556 { ac_try='test -z "$ac_c_werror_flag"
12557 || test ! -s conftest.err'
12558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12559 (eval $ac_try) 2>&5
12561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562 (exit $ac_status); }; } &&
12563 { ac_try='test -s conftest.$ac_objext'
12564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12565 (eval $ac_try) 2>&5
12567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12568 (exit $ac_status); }; }; then
12569 ac_cv_member_struct_tm_tm_zone=yes
12571 echo "$as_me: failed program was:" >&5
12572 sed 's/^/| /' conftest.$ac_ext >&5
12574 ac_cv_member_struct_tm_tm_zone=no
12576 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12578 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12580 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
12581 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
12582 if test $ac_cv_member_struct_tm_tm_zone = yes; then
12584 cat >>confdefs.h <<_ACEOF
12585 #define HAVE_STRUCT_TM_TM_ZONE 1
12591 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
12593 cat >>confdefs.h <<\_ACEOF
12594 #define HAVE_TM_ZONE 1
12598 echo "$as_me:$LINENO: checking for tzname" >&5
12599 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
12600 if test "${ac_cv_var_tzname+set}" = set; then
12601 echo $ECHO_N "(cached) $ECHO_C" >&6
12603 cat >conftest.$ac_ext <<_ACEOF
12606 cat confdefs.h >>conftest.$ac_ext
12607 cat >>conftest.$ac_ext <<_ACEOF
12608 /* end confdefs.h. */
12610 #ifndef tzname /* For SGI. */
12611 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
12622 rm -f conftest.$ac_objext conftest$ac_exeext
12623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12624 (eval $ac_link) 2>conftest.er1
12626 grep -v '^ *+' conftest.er1 >conftest.err
12628 cat conftest.err >&5
12629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12630 (exit $ac_status); } &&
12631 { ac_try='test -z "$ac_c_werror_flag"
12632 || test ! -s conftest.err'
12633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12634 (eval $ac_try) 2>&5
12636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637 (exit $ac_status); }; } &&
12638 { ac_try='test -s conftest$ac_exeext'
12639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12640 (eval $ac_try) 2>&5
12642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12643 (exit $ac_status); }; }; then
12644 ac_cv_var_tzname=yes
12646 echo "$as_me: failed program was:" >&5
12647 sed 's/^/| /' conftest.$ac_ext >&5
12649 ac_cv_var_tzname=no
12651 rm -f conftest.err conftest.$ac_objext \
12652 conftest$ac_exeext conftest.$ac_ext
12654 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
12655 echo "${ECHO_T}$ac_cv_var_tzname" >&6
12656 if test $ac_cv_var_tzname = yes; then
12658 cat >>confdefs.h <<\_ACEOF
12659 #define HAVE_TZNAME 1
12666 echo "$as_me:$LINENO: checking for utime.h" >&5
12667 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
12668 if test "${ba_cv_header_utime_h+set}" = set; then
12669 echo $ECHO_N "(cached) $ECHO_C" >&6
12671 cat >conftest.$ac_ext <<_ACEOF
12674 cat confdefs.h >>conftest.$ac_ext
12675 cat >>conftest.$ac_ext <<_ACEOF
12676 /* end confdefs.h. */
12678 #include <sys/types.h>
12688 rm -f conftest.$ac_objext
12689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12690 (eval $ac_compile) 2>conftest.er1
12692 grep -v '^ *+' conftest.er1 >conftest.err
12694 cat conftest.err >&5
12695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12696 (exit $ac_status); } &&
12697 { ac_try='test -z "$ac_c_werror_flag"
12698 || test ! -s conftest.err'
12699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12700 (eval $ac_try) 2>&5
12702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12703 (exit $ac_status); }; } &&
12704 { ac_try='test -s conftest.$ac_objext'
12705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12706 (eval $ac_try) 2>&5
12708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12709 (exit $ac_status); }; }; then
12710 ba_cv_header_utime_h=yes
12712 echo "$as_me: failed program was:" >&5
12713 sed 's/^/| /' conftest.$ac_ext >&5
12715 ba_cv_header_utime_h=no
12717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12719 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
12720 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
12721 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
12722 #define HAVE_UTIME_H 1
12726 echo "$as_me:$LINENO: checking for socklen_t" >&5
12727 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
12728 if test "${ba_cv_header_socklen_t+set}" = set; then
12729 echo $ECHO_N "(cached) $ECHO_C" >&6
12731 cat >conftest.$ac_ext <<_ACEOF
12734 cat confdefs.h >>conftest.$ac_ext
12735 cat >>conftest.$ac_ext <<_ACEOF
12736 /* end confdefs.h. */
12738 #include <sys/types.h>
12739 #include <sys/socket.h>
12748 rm -f conftest.$ac_objext
12749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12750 (eval $ac_compile) 2>conftest.er1
12752 grep -v '^ *+' conftest.er1 >conftest.err
12754 cat conftest.err >&5
12755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12756 (exit $ac_status); } &&
12757 { ac_try='test -z "$ac_c_werror_flag"
12758 || test ! -s conftest.err'
12759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12760 (eval $ac_try) 2>&5
12762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12763 (exit $ac_status); }; } &&
12764 { ac_try='test -s conftest.$ac_objext'
12765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12766 (eval $ac_try) 2>&5
12768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12769 (exit $ac_status); }; }; then
12770 ba_cv_header_socklen_t=yes
12772 echo "$as_me: failed program was:" >&5
12773 sed 's/^/| /' conftest.$ac_ext >&5
12775 ba_cv_header_socklen_t=no
12777 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12779 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
12780 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
12781 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
12782 #define HAVE_SOCKLEN_T 1
12786 echo "$as_me:$LINENO: checking for bigendian" >&5
12787 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
12788 if test "${ba_cv_bigendian+set}" = set; then
12789 echo $ECHO_N "(cached) $ECHO_C" >&6
12791 if test "$cross_compiling" = yes; then
12794 cat >conftest.$ac_ext <<_ACEOF
12797 cat confdefs.h >>conftest.$ac_ext
12798 cat >>conftest.$ac_ext <<_ACEOF
12799 /* end confdefs.h. */
12800 main(){long a=1L; char *p=(char *)&a; exit(*p);}
12802 rm -f conftest$ac_exeext
12803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12804 (eval $ac_link) 2>&5
12806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12807 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12809 (eval $ac_try) 2>&5
12811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12812 (exit $ac_status); }; }; then
12813 ba_cv_bigendian=yes
12815 echo "$as_me: program exited with status $ac_status" >&5
12816 echo "$as_me: failed program was:" >&5
12817 sed 's/^/| /' conftest.$ac_ext >&5
12819 ( exit $ac_status )
12822 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12825 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
12826 echo "${ECHO_T}$ba_cv_bigendian" >&6
12827 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
12828 #define HAVE_BIGENDIAN 1
12833 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12834 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12835 if test "${ac_cv_c_const+set}" = set; then
12836 echo $ECHO_N "(cached) $ECHO_C" >&6
12838 cat >conftest.$ac_ext <<_ACEOF
12841 cat confdefs.h >>conftest.$ac_ext
12842 cat >>conftest.$ac_ext <<_ACEOF
12843 /* end confdefs.h. */
12848 /* FIXME: Include the comments suggested by Paul. */
12849 #ifndef __cplusplus
12850 /* Ultrix mips cc rejects this. */
12851 typedef int charset[2];
12853 /* SunOS 4.1.1 cc rejects this. */
12854 char const *const *ccp;
12856 /* NEC SVR4.0.2 mips cc rejects this. */
12857 struct point {int x, y;};
12858 static struct point const zero = {0,0};
12859 /* AIX XL C 1.02.0.0 rejects this.
12860 It does not let you subtract one const X* pointer from another in
12861 an arm of an if-expression whose if-part is not a constant
12863 const char *g = "string";
12864 ccp = &g + (g ? g-g : 0);
12865 /* HPUX 7.0 cc rejects these. */
12868 ccp = (char const *const *) p;
12869 { /* SCO 3.2v4 cc rejects this. */
12871 char const *s = 0 ? (char *) 0 : (char const *) 0;
12875 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12876 int x[] = {25, 17};
12877 const int *foo = &x[0];
12880 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12881 typedef const int *iptr;
12885 { /* AIX XL C 1.02.0.0 rejects this saying
12886 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12887 struct s { int j; const int *ap[3]; };
12888 struct s *b; b->j = 5;
12890 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12891 const int foo = 10;
12899 rm -f conftest.$ac_objext
12900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12901 (eval $ac_compile) 2>conftest.er1
12903 grep -v '^ *+' conftest.er1 >conftest.err
12905 cat conftest.err >&5
12906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12907 (exit $ac_status); } &&
12908 { ac_try='test -z "$ac_c_werror_flag"
12909 || test ! -s conftest.err'
12910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12911 (eval $ac_try) 2>&5
12913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12914 (exit $ac_status); }; } &&
12915 { ac_try='test -s conftest.$ac_objext'
12916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12917 (eval $ac_try) 2>&5
12919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920 (exit $ac_status); }; }; then
12923 echo "$as_me: failed program was:" >&5
12924 sed 's/^/| /' conftest.$ac_ext >&5
12928 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12930 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12931 echo "${ECHO_T}$ac_cv_c_const" >&6
12932 if test $ac_cv_c_const = no; then
12934 cat >>confdefs.h <<\_ACEOF
12942 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
12943 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
12945 # The order of these tests is important.
12946 cat >conftest.$ac_ext <<_ACEOF
12949 cat confdefs.h >>conftest.$ac_ext
12950 cat >>conftest.$ac_ext <<_ACEOF
12951 /* end confdefs.h. */
12952 #include <sys/statvfs.h>
12953 #include <sys/fstyp.h>
12955 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12956 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12958 grep -v '^ *+' conftest.er1 >conftest.err
12960 cat conftest.err >&5
12961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12962 (exit $ac_status); } >/dev/null; then
12963 if test -s conftest.err; then
12964 ac_cpp_err=$ac_c_preproc_warn_flag
12965 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12972 if test -z "$ac_cpp_err"; then
12973 cat >>confdefs.h <<\_ACEOF
12974 #define FSTYPE_STATVFS 1
12978 echo "$as_me: failed program was:" >&5
12979 sed 's/^/| /' conftest.$ac_ext >&5
12983 rm -f conftest.err conftest.$ac_ext
12984 if test $fstype = no; then
12985 cat >conftest.$ac_ext <<_ACEOF
12988 cat confdefs.h >>conftest.$ac_ext
12989 cat >>conftest.$ac_ext <<_ACEOF
12990 /* end confdefs.h. */
12991 #include <sys/statfs.h>
12992 #include <sys/fstyp.h>
12994 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12995 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12997 grep -v '^ *+' conftest.er1 >conftest.err
12999 cat conftest.err >&5
13000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13001 (exit $ac_status); } >/dev/null; then
13002 if test -s conftest.err; then
13003 ac_cpp_err=$ac_c_preproc_warn_flag
13004 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13011 if test -z "$ac_cpp_err"; then
13012 cat >>confdefs.h <<\_ACEOF
13013 #define FSTYPE_USG_STATFS 1
13017 echo "$as_me: failed program was:" >&5
13018 sed 's/^/| /' conftest.$ac_ext >&5
13022 rm -f conftest.err conftest.$ac_ext
13024 if test $fstype = no; then
13025 cat >conftest.$ac_ext <<_ACEOF
13028 cat confdefs.h >>conftest.$ac_ext
13029 cat >>conftest.$ac_ext <<_ACEOF
13030 /* end confdefs.h. */
13031 #include <sys/statfs.h>
13032 #include <sys/vmount.h>
13034 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13035 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13037 grep -v '^ *+' conftest.er1 >conftest.err
13039 cat conftest.err >&5
13040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13041 (exit $ac_status); } >/dev/null; then
13042 if test -s conftest.err; then
13043 ac_cpp_err=$ac_c_preproc_warn_flag
13044 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13051 if test -z "$ac_cpp_err"; then
13052 cat >>confdefs.h <<\_ACEOF
13053 #define FSTYPE_AIX_STATFS 1
13057 echo "$as_me: failed program was:" >&5
13058 sed 's/^/| /' conftest.$ac_ext >&5
13062 rm -f conftest.err conftest.$ac_ext
13064 if test $fstype = no; then
13065 cat >conftest.$ac_ext <<_ACEOF
13068 cat confdefs.h >>conftest.$ac_ext
13069 cat >>conftest.$ac_ext <<_ACEOF
13070 /* end confdefs.h. */
13071 #include <mntent.h>
13073 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13074 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13076 grep -v '^ *+' conftest.er1 >conftest.err
13078 cat conftest.err >&5
13079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13080 (exit $ac_status); } >/dev/null; then
13081 if test -s conftest.err; then
13082 ac_cpp_err=$ac_c_preproc_warn_flag
13083 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13090 if test -z "$ac_cpp_err"; then
13091 cat >>confdefs.h <<\_ACEOF
13092 #define FSTYPE_MNTENT 1
13096 echo "$as_me: failed program was:" >&5
13097 sed 's/^/| /' conftest.$ac_ext >&5
13101 rm -f conftest.err conftest.$ac_ext
13103 if test $fstype = no; then
13104 cat >conftest.$ac_ext <<_ACEOF
13107 cat confdefs.h >>conftest.$ac_ext
13108 cat >>conftest.$ac_ext <<_ACEOF
13109 /* end confdefs.h. */
13110 #include <sys/mount.h>
13113 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13114 $EGREP "f_type;" >/dev/null 2>&1; then
13115 cat >>confdefs.h <<\_ACEOF
13116 #define FSTYPE_STATFS 1
13123 if test $fstype = no; then
13124 cat >conftest.$ac_ext <<_ACEOF
13127 cat confdefs.h >>conftest.$ac_ext
13128 cat >>conftest.$ac_ext <<_ACEOF
13129 /* end confdefs.h. */
13130 #include <sys/mount.h>
13131 #include <sys/fs_types.h>
13133 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13134 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13136 grep -v '^ *+' conftest.er1 >conftest.err
13138 cat conftest.err >&5
13139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13140 (exit $ac_status); } >/dev/null; then
13141 if test -s conftest.err; then
13142 ac_cpp_err=$ac_c_preproc_warn_flag
13143 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13150 if test -z "$ac_cpp_err"; then
13151 cat >>confdefs.h <<\_ACEOF
13152 #define FSTYPE_GETMNT 1
13156 echo "$as_me: failed program was:" >&5
13157 sed 's/^/| /' conftest.$ac_ext >&5
13161 rm -f conftest.err conftest.$ac_ext
13163 echo "$as_me:$LINENO: result: $fstype" >&5
13164 echo "${ECHO_T}$fstype" >&6
13166 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13167 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
13168 if test "${ac_cv_type_signal+set}" = set; then
13169 echo $ECHO_N "(cached) $ECHO_C" >&6
13171 cat >conftest.$ac_ext <<_ACEOF
13174 cat confdefs.h >>conftest.$ac_ext
13175 cat >>conftest.$ac_ext <<_ACEOF
13176 /* end confdefs.h. */
13177 #include <sys/types.h>
13178 #include <signal.h>
13183 extern "C" void (*signal (int, void (*)(int)))(int);
13185 void (*signal ()) ();
13196 rm -f conftest.$ac_objext
13197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13198 (eval $ac_compile) 2>conftest.er1
13200 grep -v '^ *+' conftest.er1 >conftest.err
13202 cat conftest.err >&5
13203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13204 (exit $ac_status); } &&
13205 { ac_try='test -z "$ac_c_werror_flag"
13206 || test ! -s conftest.err'
13207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13208 (eval $ac_try) 2>&5
13210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13211 (exit $ac_status); }; } &&
13212 { ac_try='test -s conftest.$ac_objext'
13213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13214 (eval $ac_try) 2>&5
13216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13217 (exit $ac_status); }; }; then
13218 ac_cv_type_signal=void
13220 echo "$as_me: failed program was:" >&5
13221 sed 's/^/| /' conftest.$ac_ext >&5
13223 ac_cv_type_signal=int
13225 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13227 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13228 echo "${ECHO_T}$ac_cv_type_signal" >&6
13230 cat >>confdefs.h <<_ACEOF
13231 #define RETSIGTYPE $ac_cv_type_signal
13236 echo "$as_me:$LINENO: checking for type of signal functions" >&5
13237 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
13238 if test "${bash_cv_signal_vintage+set}" = set; then
13239 echo $ECHO_N "(cached) $ECHO_C" >&6
13242 cat >conftest.$ac_ext <<_ACEOF
13245 cat confdefs.h >>conftest.$ac_ext
13246 cat >>conftest.$ac_ext <<_ACEOF
13247 /* end confdefs.h. */
13248 #include <signal.h>
13254 struct sigaction sa;
13255 sigemptyset(&ss); sigsuspend(&ss);
13256 sigaction(SIGINT, &sa, (struct sigaction *) 0);
13257 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
13263 rm -f conftest.$ac_objext conftest$ac_exeext
13264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13265 (eval $ac_link) 2>conftest.er1
13267 grep -v '^ *+' conftest.er1 >conftest.err
13269 cat conftest.err >&5
13270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13271 (exit $ac_status); } &&
13272 { ac_try='test -z "$ac_c_werror_flag"
13273 || test ! -s conftest.err'
13274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13275 (eval $ac_try) 2>&5
13277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13278 (exit $ac_status); }; } &&
13279 { ac_try='test -s conftest$ac_exeext'
13280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13281 (eval $ac_try) 2>&5
13283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13284 (exit $ac_status); }; }; then
13285 bash_cv_signal_vintage=posix
13287 echo "$as_me: failed program was:" >&5
13288 sed 's/^/| /' conftest.$ac_ext >&5
13291 cat >conftest.$ac_ext <<_ACEOF
13294 cat confdefs.h >>conftest.$ac_ext
13295 cat >>conftest.$ac_ext <<_ACEOF
13296 /* end confdefs.h. */
13297 #include <signal.h>
13302 int mask = sigmask(SIGINT);
13303 sigsetmask(mask); sigblock(mask); sigpause(mask);
13309 rm -f conftest.$ac_objext conftest$ac_exeext
13310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13311 (eval $ac_link) 2>conftest.er1
13313 grep -v '^ *+' conftest.er1 >conftest.err
13315 cat conftest.err >&5
13316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13317 (exit $ac_status); } &&
13318 { ac_try='test -z "$ac_c_werror_flag"
13319 || test ! -s conftest.err'
13320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13321 (eval $ac_try) 2>&5
13323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13324 (exit $ac_status); }; } &&
13325 { ac_try='test -s conftest$ac_exeext'
13326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13327 (eval $ac_try) 2>&5
13329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13330 (exit $ac_status); }; }; then
13331 bash_cv_signal_vintage=4.2bsd
13333 echo "$as_me: failed program was:" >&5
13334 sed 's/^/| /' conftest.$ac_ext >&5
13337 cat >conftest.$ac_ext <<_ACEOF
13340 cat confdefs.h >>conftest.$ac_ext
13341 cat >>conftest.$ac_ext <<_ACEOF
13342 /* end confdefs.h. */
13344 #include <signal.h>
13345 RETSIGTYPE foo() { }
13350 int mask = sigmask(SIGINT);
13351 sigset(SIGINT, foo); sigrelse(SIGINT);
13352 sighold(SIGINT); sigpause(SIGINT);
13358 rm -f conftest.$ac_objext conftest$ac_exeext
13359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13360 (eval $ac_link) 2>conftest.er1
13362 grep -v '^ *+' conftest.er1 >conftest.err
13364 cat conftest.err >&5
13365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13366 (exit $ac_status); } &&
13367 { ac_try='test -z "$ac_c_werror_flag"
13368 || test ! -s conftest.err'
13369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13370 (eval $ac_try) 2>&5
13372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13373 (exit $ac_status); }; } &&
13374 { ac_try='test -s conftest$ac_exeext'
13375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13376 (eval $ac_try) 2>&5
13378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13379 (exit $ac_status); }; }; then
13380 bash_cv_signal_vintage=svr3
13382 echo "$as_me: failed program was:" >&5
13383 sed 's/^/| /' conftest.$ac_ext >&5
13385 bash_cv_signal_vintage=v7
13388 rm -f conftest.err conftest.$ac_objext \
13389 conftest$ac_exeext conftest.$ac_ext
13392 rm -f conftest.err conftest.$ac_objext \
13393 conftest$ac_exeext conftest.$ac_ext
13396 rm -f conftest.err conftest.$ac_objext \
13397 conftest$ac_exeext conftest.$ac_ext
13401 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
13402 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
13403 if test "$bash_cv_signal_vintage" = posix; then
13404 cat >>confdefs.h <<\_ACEOF
13405 #define HAVE_POSIX_SIGNALS 1
13408 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
13409 cat >>confdefs.h <<\_ACEOF
13410 #define HAVE_BSD_SIGNALS 1
13413 elif test "$bash_cv_signal_vintage" = svr3; then
13414 cat >>confdefs.h <<\_ACEOF
13415 #define HAVE_USG_SIGHOLD 1
13420 echo "$as_me:$LINENO: checking for mode_t" >&5
13421 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
13422 if test "${ac_cv_type_mode_t+set}" = set; then
13423 echo $ECHO_N "(cached) $ECHO_C" >&6
13425 cat >conftest.$ac_ext <<_ACEOF
13428 cat confdefs.h >>conftest.$ac_ext
13429 cat >>conftest.$ac_ext <<_ACEOF
13430 /* end confdefs.h. */
13431 $ac_includes_default
13437 if (sizeof (mode_t))
13443 rm -f conftest.$ac_objext
13444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13445 (eval $ac_compile) 2>conftest.er1
13447 grep -v '^ *+' conftest.er1 >conftest.err
13449 cat conftest.err >&5
13450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13451 (exit $ac_status); } &&
13452 { ac_try='test -z "$ac_c_werror_flag"
13453 || test ! -s conftest.err'
13454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13455 (eval $ac_try) 2>&5
13457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13458 (exit $ac_status); }; } &&
13459 { ac_try='test -s conftest.$ac_objext'
13460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13461 (eval $ac_try) 2>&5
13463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13464 (exit $ac_status); }; }; then
13465 ac_cv_type_mode_t=yes
13467 echo "$as_me: failed program was:" >&5
13468 sed 's/^/| /' conftest.$ac_ext >&5
13470 ac_cv_type_mode_t=no
13472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13474 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
13475 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
13476 if test $ac_cv_type_mode_t = yes; then
13480 cat >>confdefs.h <<_ACEOF
13486 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
13487 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
13488 if test "${ac_cv_type_uid_t+set}" = set; then
13489 echo $ECHO_N "(cached) $ECHO_C" >&6
13491 cat >conftest.$ac_ext <<_ACEOF
13494 cat confdefs.h >>conftest.$ac_ext
13495 cat >>conftest.$ac_ext <<_ACEOF
13496 /* end confdefs.h. */
13497 #include <sys/types.h>
13500 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13501 $EGREP "uid_t" >/dev/null 2>&1; then
13502 ac_cv_type_uid_t=yes
13504 ac_cv_type_uid_t=no
13509 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
13510 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
13511 if test $ac_cv_type_uid_t = no; then
13513 cat >>confdefs.h <<\_ACEOF
13518 cat >>confdefs.h <<\_ACEOF
13524 echo "$as_me:$LINENO: checking for size_t" >&5
13525 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
13526 if test "${ac_cv_type_size_t+set}" = set; then
13527 echo $ECHO_N "(cached) $ECHO_C" >&6
13529 cat >conftest.$ac_ext <<_ACEOF
13532 cat confdefs.h >>conftest.$ac_ext
13533 cat >>conftest.$ac_ext <<_ACEOF
13534 /* end confdefs.h. */
13535 $ac_includes_default
13541 if (sizeof (size_t))
13547 rm -f conftest.$ac_objext
13548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13549 (eval $ac_compile) 2>conftest.er1
13551 grep -v '^ *+' conftest.er1 >conftest.err
13553 cat conftest.err >&5
13554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13555 (exit $ac_status); } &&
13556 { ac_try='test -z "$ac_c_werror_flag"
13557 || test ! -s conftest.err'
13558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13559 (eval $ac_try) 2>&5
13561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13562 (exit $ac_status); }; } &&
13563 { ac_try='test -s conftest.$ac_objext'
13564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13565 (eval $ac_try) 2>&5
13567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13568 (exit $ac_status); }; }; then
13569 ac_cv_type_size_t=yes
13571 echo "$as_me: failed program was:" >&5
13572 sed 's/^/| /' conftest.$ac_ext >&5
13574 ac_cv_type_size_t=no
13576 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13578 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13579 echo "${ECHO_T}$ac_cv_type_size_t" >&6
13580 if test $ac_cv_type_size_t = yes; then
13584 cat >>confdefs.h <<_ACEOF
13585 #define size_t unsigned
13590 echo "$as_me:$LINENO: checking for pid_t" >&5
13591 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
13592 if test "${ac_cv_type_pid_t+set}" = set; then
13593 echo $ECHO_N "(cached) $ECHO_C" >&6
13595 cat >conftest.$ac_ext <<_ACEOF
13598 cat confdefs.h >>conftest.$ac_ext
13599 cat >>conftest.$ac_ext <<_ACEOF
13600 /* end confdefs.h. */
13601 $ac_includes_default
13607 if (sizeof (pid_t))
13613 rm -f conftest.$ac_objext
13614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13615 (eval $ac_compile) 2>conftest.er1
13617 grep -v '^ *+' conftest.er1 >conftest.err
13619 cat conftest.err >&5
13620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13621 (exit $ac_status); } &&
13622 { ac_try='test -z "$ac_c_werror_flag"
13623 || test ! -s conftest.err'
13624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13625 (eval $ac_try) 2>&5
13627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13628 (exit $ac_status); }; } &&
13629 { ac_try='test -s conftest.$ac_objext'
13630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13631 (eval $ac_try) 2>&5
13633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13634 (exit $ac_status); }; }; then
13635 ac_cv_type_pid_t=yes
13637 echo "$as_me: failed program was:" >&5
13638 sed 's/^/| /' conftest.$ac_ext >&5
13640 ac_cv_type_pid_t=no
13642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13644 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
13645 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
13646 if test $ac_cv_type_pid_t = yes; then
13650 cat >>confdefs.h <<_ACEOF
13656 echo "$as_me:$LINENO: checking for off_t" >&5
13657 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
13658 if test "${ac_cv_type_off_t+set}" = set; then
13659 echo $ECHO_N "(cached) $ECHO_C" >&6
13661 cat >conftest.$ac_ext <<_ACEOF
13664 cat confdefs.h >>conftest.$ac_ext
13665 cat >>conftest.$ac_ext <<_ACEOF
13666 /* end confdefs.h. */
13667 $ac_includes_default
13673 if (sizeof (off_t))
13679 rm -f conftest.$ac_objext
13680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13681 (eval $ac_compile) 2>conftest.er1
13683 grep -v '^ *+' conftest.er1 >conftest.err
13685 cat conftest.err >&5
13686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13687 (exit $ac_status); } &&
13688 { ac_try='test -z "$ac_c_werror_flag"
13689 || test ! -s conftest.err'
13690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13691 (eval $ac_try) 2>&5
13693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13694 (exit $ac_status); }; } &&
13695 { ac_try='test -s conftest.$ac_objext'
13696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13697 (eval $ac_try) 2>&5
13699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13700 (exit $ac_status); }; }; then
13701 ac_cv_type_off_t=yes
13703 echo "$as_me: failed program was:" >&5
13704 sed 's/^/| /' conftest.$ac_ext >&5
13706 ac_cv_type_off_t=no
13708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13710 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
13711 echo "${ECHO_T}$ac_cv_type_off_t" >&6
13712 if test $ac_cv_type_off_t = yes; then
13716 cat >>confdefs.h <<_ACEOF
13722 echo "$as_me:$LINENO: checking for ino_t" >&5
13723 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
13724 if test "${ac_cv_type_ino_t+set}" = set; then
13725 echo $ECHO_N "(cached) $ECHO_C" >&6
13727 cat >conftest.$ac_ext <<_ACEOF
13730 cat confdefs.h >>conftest.$ac_ext
13731 cat >>conftest.$ac_ext <<_ACEOF
13732 /* end confdefs.h. */
13733 $ac_includes_default
13739 if (sizeof (ino_t))
13745 rm -f conftest.$ac_objext
13746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13747 (eval $ac_compile) 2>conftest.er1
13749 grep -v '^ *+' conftest.er1 >conftest.err
13751 cat conftest.err >&5
13752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13753 (exit $ac_status); } &&
13754 { ac_try='test -z "$ac_c_werror_flag"
13755 || test ! -s conftest.err'
13756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13757 (eval $ac_try) 2>&5
13759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13760 (exit $ac_status); }; } &&
13761 { ac_try='test -s conftest.$ac_objext'
13762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13763 (eval $ac_try) 2>&5
13765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13766 (exit $ac_status); }; }; then
13767 ac_cv_type_ino_t=yes
13769 echo "$as_me: failed program was:" >&5
13770 sed 's/^/| /' conftest.$ac_ext >&5
13772 ac_cv_type_ino_t=no
13774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13776 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
13777 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
13778 if test $ac_cv_type_ino_t = yes; then
13782 cat >>confdefs.h <<_ACEOF
13783 #define ino_t unsigned long
13788 echo "$as_me:$LINENO: checking for dev_t" >&5
13789 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
13790 if test "${ac_cv_type_dev_t+set}" = set; then
13791 echo $ECHO_N "(cached) $ECHO_C" >&6
13793 cat >conftest.$ac_ext <<_ACEOF
13796 cat confdefs.h >>conftest.$ac_ext
13797 cat >>conftest.$ac_ext <<_ACEOF
13798 /* end confdefs.h. */
13799 $ac_includes_default
13805 if (sizeof (dev_t))
13811 rm -f conftest.$ac_objext
13812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13813 (eval $ac_compile) 2>conftest.er1
13815 grep -v '^ *+' conftest.er1 >conftest.err
13817 cat conftest.err >&5
13818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13819 (exit $ac_status); } &&
13820 { ac_try='test -z "$ac_c_werror_flag"
13821 || test ! -s conftest.err'
13822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13823 (eval $ac_try) 2>&5
13825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13826 (exit $ac_status); }; } &&
13827 { ac_try='test -s conftest.$ac_objext'
13828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13829 (eval $ac_try) 2>&5
13831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13832 (exit $ac_status); }; }; then
13833 ac_cv_type_dev_t=yes
13835 echo "$as_me: failed program was:" >&5
13836 sed 's/^/| /' conftest.$ac_ext >&5
13838 ac_cv_type_dev_t=no
13840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13842 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
13843 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
13844 if test $ac_cv_type_dev_t = yes; then
13848 cat >>confdefs.h <<_ACEOF
13849 #define dev_t unsigned long
13854 echo "$as_me:$LINENO: checking for daddr_t" >&5
13855 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
13856 if test "${ac_cv_type_daddr_t+set}" = set; then
13857 echo $ECHO_N "(cached) $ECHO_C" >&6
13859 cat >conftest.$ac_ext <<_ACEOF
13862 cat confdefs.h >>conftest.$ac_ext
13863 cat >>conftest.$ac_ext <<_ACEOF
13864 /* end confdefs.h. */
13865 $ac_includes_default
13871 if (sizeof (daddr_t))
13877 rm -f conftest.$ac_objext
13878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13879 (eval $ac_compile) 2>conftest.er1
13881 grep -v '^ *+' conftest.er1 >conftest.err
13883 cat conftest.err >&5
13884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13885 (exit $ac_status); } &&
13886 { ac_try='test -z "$ac_c_werror_flag"
13887 || test ! -s conftest.err'
13888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13889 (eval $ac_try) 2>&5
13891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13892 (exit $ac_status); }; } &&
13893 { ac_try='test -s conftest.$ac_objext'
13894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13895 (eval $ac_try) 2>&5
13897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13898 (exit $ac_status); }; }; then
13899 ac_cv_type_daddr_t=yes
13901 echo "$as_me: failed program was:" >&5
13902 sed 's/^/| /' conftest.$ac_ext >&5
13904 ac_cv_type_daddr_t=no
13906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13908 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
13909 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
13910 if test $ac_cv_type_daddr_t = yes; then
13914 cat >>confdefs.h <<_ACEOF
13915 #define daddr_t long
13920 echo "$as_me:$LINENO: checking for major_t" >&5
13921 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
13922 if test "${ac_cv_type_major_t+set}" = set; then
13923 echo $ECHO_N "(cached) $ECHO_C" >&6
13925 cat >conftest.$ac_ext <<_ACEOF
13928 cat confdefs.h >>conftest.$ac_ext
13929 cat >>conftest.$ac_ext <<_ACEOF
13930 /* end confdefs.h. */
13931 $ac_includes_default
13937 if (sizeof (major_t))
13943 rm -f conftest.$ac_objext
13944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13945 (eval $ac_compile) 2>conftest.er1
13947 grep -v '^ *+' conftest.er1 >conftest.err
13949 cat conftest.err >&5
13950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13951 (exit $ac_status); } &&
13952 { ac_try='test -z "$ac_c_werror_flag"
13953 || test ! -s conftest.err'
13954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13955 (eval $ac_try) 2>&5
13957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13958 (exit $ac_status); }; } &&
13959 { ac_try='test -s conftest.$ac_objext'
13960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13961 (eval $ac_try) 2>&5
13963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964 (exit $ac_status); }; }; then
13965 ac_cv_type_major_t=yes
13967 echo "$as_me: failed program was:" >&5
13968 sed 's/^/| /' conftest.$ac_ext >&5
13970 ac_cv_type_major_t=no
13972 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13974 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
13975 echo "${ECHO_T}$ac_cv_type_major_t" >&6
13976 if test $ac_cv_type_major_t = yes; then
13980 cat >>confdefs.h <<_ACEOF
13981 #define major_t int
13986 echo "$as_me:$LINENO: checking for minor_t" >&5
13987 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
13988 if test "${ac_cv_type_minor_t+set}" = set; then
13989 echo $ECHO_N "(cached) $ECHO_C" >&6
13991 cat >conftest.$ac_ext <<_ACEOF
13994 cat confdefs.h >>conftest.$ac_ext
13995 cat >>conftest.$ac_ext <<_ACEOF
13996 /* end confdefs.h. */
13997 $ac_includes_default
14003 if (sizeof (minor_t))
14009 rm -f conftest.$ac_objext
14010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14011 (eval $ac_compile) 2>conftest.er1
14013 grep -v '^ *+' conftest.er1 >conftest.err
14015 cat conftest.err >&5
14016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14017 (exit $ac_status); } &&
14018 { ac_try='test -z "$ac_c_werror_flag"
14019 || test ! -s conftest.err'
14020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14021 (eval $ac_try) 2>&5
14023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14024 (exit $ac_status); }; } &&
14025 { ac_try='test -s conftest.$ac_objext'
14026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14027 (eval $ac_try) 2>&5
14029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030 (exit $ac_status); }; }; then
14031 ac_cv_type_minor_t=yes
14033 echo "$as_me: failed program was:" >&5
14034 sed 's/^/| /' conftest.$ac_ext >&5
14036 ac_cv_type_minor_t=no
14038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14040 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
14041 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
14042 if test $ac_cv_type_minor_t = yes; then
14046 cat >>confdefs.h <<_ACEOF
14047 #define minor_t int
14052 echo "$as_me:$LINENO: checking for ssize_t" >&5
14053 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
14054 if test "${ac_cv_type_ssize_t+set}" = set; then
14055 echo $ECHO_N "(cached) $ECHO_C" >&6
14057 cat >conftest.$ac_ext <<_ACEOF
14060 cat confdefs.h >>conftest.$ac_ext
14061 cat >>conftest.$ac_ext <<_ACEOF
14062 /* end confdefs.h. */
14063 $ac_includes_default
14069 if (sizeof (ssize_t))
14075 rm -f conftest.$ac_objext
14076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14077 (eval $ac_compile) 2>conftest.er1
14079 grep -v '^ *+' conftest.er1 >conftest.err
14081 cat conftest.err >&5
14082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14083 (exit $ac_status); } &&
14084 { ac_try='test -z "$ac_c_werror_flag"
14085 || test ! -s conftest.err'
14086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14087 (eval $ac_try) 2>&5
14089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14090 (exit $ac_status); }; } &&
14091 { ac_try='test -s conftest.$ac_objext'
14092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14093 (eval $ac_try) 2>&5
14095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14096 (exit $ac_status); }; }; then
14097 ac_cv_type_ssize_t=yes
14099 echo "$as_me: failed program was:" >&5
14100 sed 's/^/| /' conftest.$ac_ext >&5
14102 ac_cv_type_ssize_t=no
14104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14106 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
14107 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
14108 if test $ac_cv_type_ssize_t = yes; then
14112 cat >>confdefs.h <<_ACEOF
14113 #define ssize_t int
14118 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
14119 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
14120 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
14121 echo $ECHO_N "(cached) $ECHO_C" >&6
14123 cat >conftest.$ac_ext <<_ACEOF
14126 cat confdefs.h >>conftest.$ac_ext
14127 cat >>conftest.$ac_ext <<_ACEOF
14128 /* end confdefs.h. */
14129 $ac_includes_default
14133 static struct stat ac_aggr;
14134 if (ac_aggr.st_blocks)
14140 rm -f conftest.$ac_objext
14141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14142 (eval $ac_compile) 2>conftest.er1
14144 grep -v '^ *+' conftest.er1 >conftest.err
14146 cat conftest.err >&5
14147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14148 (exit $ac_status); } &&
14149 { ac_try='test -z "$ac_c_werror_flag"
14150 || test ! -s conftest.err'
14151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14152 (eval $ac_try) 2>&5
14154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14155 (exit $ac_status); }; } &&
14156 { ac_try='test -s conftest.$ac_objext'
14157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14158 (eval $ac_try) 2>&5
14160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14161 (exit $ac_status); }; }; then
14162 ac_cv_member_struct_stat_st_blocks=yes
14164 echo "$as_me: failed program was:" >&5
14165 sed 's/^/| /' conftest.$ac_ext >&5
14167 cat >conftest.$ac_ext <<_ACEOF
14170 cat confdefs.h >>conftest.$ac_ext
14171 cat >>conftest.$ac_ext <<_ACEOF
14172 /* end confdefs.h. */
14173 $ac_includes_default
14177 static struct stat ac_aggr;
14178 if (sizeof ac_aggr.st_blocks)
14184 rm -f conftest.$ac_objext
14185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14186 (eval $ac_compile) 2>conftest.er1
14188 grep -v '^ *+' conftest.er1 >conftest.err
14190 cat conftest.err >&5
14191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14192 (exit $ac_status); } &&
14193 { ac_try='test -z "$ac_c_werror_flag"
14194 || test ! -s conftest.err'
14195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14196 (eval $ac_try) 2>&5
14198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14199 (exit $ac_status); }; } &&
14200 { ac_try='test -s conftest.$ac_objext'
14201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14202 (eval $ac_try) 2>&5
14204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14205 (exit $ac_status); }; }; then
14206 ac_cv_member_struct_stat_st_blocks=yes
14208 echo "$as_me: failed program was:" >&5
14209 sed 's/^/| /' conftest.$ac_ext >&5
14211 ac_cv_member_struct_stat_st_blocks=no
14213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14215 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14217 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
14218 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
14219 if test $ac_cv_member_struct_stat_st_blocks = yes; then
14221 cat >>confdefs.h <<_ACEOF
14222 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
14226 cat >>confdefs.h <<\_ACEOF
14227 #define HAVE_ST_BLOCKS 1
14232 "fileblocks.$ac_objext" | \
14233 *" fileblocks.$ac_objext" | \
14234 "fileblocks.$ac_objext "* | \
14235 *" fileblocks.$ac_objext "* ) ;;
14236 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
14243 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
14244 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
14245 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
14246 echo $ECHO_N "(cached) $ECHO_C" >&6
14248 cat >conftest.$ac_ext <<_ACEOF
14251 cat confdefs.h >>conftest.$ac_ext
14252 cat >>conftest.$ac_ext <<_ACEOF
14253 /* end confdefs.h. */
14254 $ac_includes_default
14258 static struct stat ac_aggr;
14259 if (ac_aggr.st_rdev)
14265 rm -f conftest.$ac_objext
14266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14267 (eval $ac_compile) 2>conftest.er1
14269 grep -v '^ *+' conftest.er1 >conftest.err
14271 cat conftest.err >&5
14272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14273 (exit $ac_status); } &&
14274 { ac_try='test -z "$ac_c_werror_flag"
14275 || test ! -s conftest.err'
14276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14277 (eval $ac_try) 2>&5
14279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14280 (exit $ac_status); }; } &&
14281 { ac_try='test -s conftest.$ac_objext'
14282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14283 (eval $ac_try) 2>&5
14285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14286 (exit $ac_status); }; }; then
14287 ac_cv_member_struct_stat_st_rdev=yes
14289 echo "$as_me: failed program was:" >&5
14290 sed 's/^/| /' conftest.$ac_ext >&5
14292 cat >conftest.$ac_ext <<_ACEOF
14295 cat confdefs.h >>conftest.$ac_ext
14296 cat >>conftest.$ac_ext <<_ACEOF
14297 /* end confdefs.h. */
14298 $ac_includes_default
14302 static struct stat ac_aggr;
14303 if (sizeof ac_aggr.st_rdev)
14309 rm -f conftest.$ac_objext
14310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14311 (eval $ac_compile) 2>conftest.er1
14313 grep -v '^ *+' conftest.er1 >conftest.err
14315 cat conftest.err >&5
14316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14317 (exit $ac_status); } &&
14318 { ac_try='test -z "$ac_c_werror_flag"
14319 || test ! -s conftest.err'
14320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14321 (eval $ac_try) 2>&5
14323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14324 (exit $ac_status); }; } &&
14325 { ac_try='test -s conftest.$ac_objext'
14326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14327 (eval $ac_try) 2>&5
14329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14330 (exit $ac_status); }; }; then
14331 ac_cv_member_struct_stat_st_rdev=yes
14333 echo "$as_me: failed program was:" >&5
14334 sed 's/^/| /' conftest.$ac_ext >&5
14336 ac_cv_member_struct_stat_st_rdev=no
14338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14342 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
14343 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
14344 if test $ac_cv_member_struct_stat_st_rdev = yes; then
14346 cat >>confdefs.h <<_ACEOF
14347 #define HAVE_STRUCT_STAT_ST_RDEV 1
14351 cat >>confdefs.h <<\_ACEOF
14352 #define HAVE_ST_RDEV 1
14358 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
14359 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
14360 if test "${ac_cv_struct_tm+set}" = set; then
14361 echo $ECHO_N "(cached) $ECHO_C" >&6
14363 cat >conftest.$ac_ext <<_ACEOF
14366 cat confdefs.h >>conftest.$ac_ext
14367 cat >>conftest.$ac_ext <<_ACEOF
14368 /* end confdefs.h. */
14369 #include <sys/types.h>
14375 struct tm *tp; tp->tm_sec;
14380 rm -f conftest.$ac_objext
14381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14382 (eval $ac_compile) 2>conftest.er1
14384 grep -v '^ *+' conftest.er1 >conftest.err
14386 cat conftest.err >&5
14387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14388 (exit $ac_status); } &&
14389 { ac_try='test -z "$ac_c_werror_flag"
14390 || test ! -s conftest.err'
14391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14392 (eval $ac_try) 2>&5
14394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14395 (exit $ac_status); }; } &&
14396 { ac_try='test -s conftest.$ac_objext'
14397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14398 (eval $ac_try) 2>&5
14400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14401 (exit $ac_status); }; }; then
14402 ac_cv_struct_tm=time.h
14404 echo "$as_me: failed program was:" >&5
14405 sed 's/^/| /' conftest.$ac_ext >&5
14407 ac_cv_struct_tm=sys/time.h
14409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14411 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
14412 echo "${ECHO_T}$ac_cv_struct_tm" >&6
14413 if test $ac_cv_struct_tm = sys/time.h; then
14415 cat >>confdefs.h <<\_ACEOF
14416 #define TM_IN_SYS_TIME 1
14421 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14422 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14423 if test "${ac_cv_c_const+set}" = set; then
14424 echo $ECHO_N "(cached) $ECHO_C" >&6
14426 cat >conftest.$ac_ext <<_ACEOF
14429 cat confdefs.h >>conftest.$ac_ext
14430 cat >>conftest.$ac_ext <<_ACEOF
14431 /* end confdefs.h. */
14436 /* FIXME: Include the comments suggested by Paul. */
14437 #ifndef __cplusplus
14438 /* Ultrix mips cc rejects this. */
14439 typedef int charset[2];
14441 /* SunOS 4.1.1 cc rejects this. */
14442 char const *const *ccp;
14444 /* NEC SVR4.0.2 mips cc rejects this. */
14445 struct point {int x, y;};
14446 static struct point const zero = {0,0};
14447 /* AIX XL C 1.02.0.0 rejects this.
14448 It does not let you subtract one const X* pointer from another in
14449 an arm of an if-expression whose if-part is not a constant
14451 const char *g = "string";
14452 ccp = &g + (g ? g-g : 0);
14453 /* HPUX 7.0 cc rejects these. */
14456 ccp = (char const *const *) p;
14457 { /* SCO 3.2v4 cc rejects this. */
14459 char const *s = 0 ? (char *) 0 : (char const *) 0;
14463 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14464 int x[] = {25, 17};
14465 const int *foo = &x[0];
14468 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14469 typedef const int *iptr;
14473 { /* AIX XL C 1.02.0.0 rejects this saying
14474 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14475 struct s { int j; const int *ap[3]; };
14476 struct s *b; b->j = 5;
14478 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14479 const int foo = 10;
14487 rm -f conftest.$ac_objext
14488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14489 (eval $ac_compile) 2>conftest.er1
14491 grep -v '^ *+' conftest.er1 >conftest.err
14493 cat conftest.err >&5
14494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14495 (exit $ac_status); } &&
14496 { ac_try='test -z "$ac_c_werror_flag"
14497 || test ! -s conftest.err'
14498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14499 (eval $ac_try) 2>&5
14501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14502 (exit $ac_status); }; } &&
14503 { ac_try='test -s conftest.$ac_objext'
14504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14505 (eval $ac_try) 2>&5
14507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14508 (exit $ac_status); }; }; then
14511 echo "$as_me: failed program was:" >&5
14512 sed 's/^/| /' conftest.$ac_ext >&5
14516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14518 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14519 echo "${ECHO_T}$ac_cv_c_const" >&6
14520 if test $ac_cv_c_const = no; then
14522 cat >>confdefs.h <<\_ACEOF
14530 echo "$as_me:$LINENO: checking for char" >&5
14531 echo $ECHO_N "checking for char... $ECHO_C" >&6
14532 if test "${ac_cv_type_char+set}" = set; then
14533 echo $ECHO_N "(cached) $ECHO_C" >&6
14535 cat >conftest.$ac_ext <<_ACEOF
14538 cat confdefs.h >>conftest.$ac_ext
14539 cat >>conftest.$ac_ext <<_ACEOF
14540 /* end confdefs.h. */
14541 $ac_includes_default
14553 rm -f conftest.$ac_objext
14554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14555 (eval $ac_compile) 2>conftest.er1
14557 grep -v '^ *+' conftest.er1 >conftest.err
14559 cat conftest.err >&5
14560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14561 (exit $ac_status); } &&
14562 { ac_try='test -z "$ac_c_werror_flag"
14563 || test ! -s conftest.err'
14564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14565 (eval $ac_try) 2>&5
14567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14568 (exit $ac_status); }; } &&
14569 { ac_try='test -s conftest.$ac_objext'
14570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14571 (eval $ac_try) 2>&5
14573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14574 (exit $ac_status); }; }; then
14575 ac_cv_type_char=yes
14577 echo "$as_me: failed program was:" >&5
14578 sed 's/^/| /' conftest.$ac_ext >&5
14582 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14584 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14585 echo "${ECHO_T}$ac_cv_type_char" >&6
14587 echo "$as_me:$LINENO: checking size of char" >&5
14588 echo $ECHO_N "checking size of char... $ECHO_C" >&6
14589 if test "${ac_cv_sizeof_char+set}" = set; then
14590 echo $ECHO_N "(cached) $ECHO_C" >&6
14592 if test "$ac_cv_type_char" = yes; then
14593 # The cast to unsigned long works around a bug in the HP C Compiler
14594 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14595 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14596 # This bug is HP SR number 8606223364.
14597 if test "$cross_compiling" = yes; then
14598 # Depending upon the size, compute the lo and hi bounds.
14599 cat >conftest.$ac_ext <<_ACEOF
14602 cat confdefs.h >>conftest.$ac_ext
14603 cat >>conftest.$ac_ext <<_ACEOF
14604 /* end confdefs.h. */
14605 $ac_includes_default
14609 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
14616 rm -f conftest.$ac_objext
14617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14618 (eval $ac_compile) 2>conftest.er1
14620 grep -v '^ *+' conftest.er1 >conftest.err
14622 cat conftest.err >&5
14623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14624 (exit $ac_status); } &&
14625 { ac_try='test -z "$ac_c_werror_flag"
14626 || test ! -s conftest.err'
14627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14628 (eval $ac_try) 2>&5
14630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14631 (exit $ac_status); }; } &&
14632 { ac_try='test -s conftest.$ac_objext'
14633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14634 (eval $ac_try) 2>&5
14636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14637 (exit $ac_status); }; }; then
14640 cat >conftest.$ac_ext <<_ACEOF
14643 cat confdefs.h >>conftest.$ac_ext
14644 cat >>conftest.$ac_ext <<_ACEOF
14645 /* end confdefs.h. */
14646 $ac_includes_default
14650 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14657 rm -f conftest.$ac_objext
14658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14659 (eval $ac_compile) 2>conftest.er1
14661 grep -v '^ *+' conftest.er1 >conftest.err
14663 cat conftest.err >&5
14664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14665 (exit $ac_status); } &&
14666 { ac_try='test -z "$ac_c_werror_flag"
14667 || test ! -s conftest.err'
14668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14669 (eval $ac_try) 2>&5
14671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14672 (exit $ac_status); }; } &&
14673 { ac_try='test -s conftest.$ac_objext'
14674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14675 (eval $ac_try) 2>&5
14677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14678 (exit $ac_status); }; }; then
14679 ac_hi=$ac_mid; break
14681 echo "$as_me: failed program was:" >&5
14682 sed 's/^/| /' conftest.$ac_ext >&5
14684 ac_lo=`expr $ac_mid + 1`
14685 if test $ac_lo -le $ac_mid; then
14689 ac_mid=`expr 2 '*' $ac_mid + 1`
14691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14694 echo "$as_me: failed program was:" >&5
14695 sed 's/^/| /' conftest.$ac_ext >&5
14697 cat >conftest.$ac_ext <<_ACEOF
14700 cat confdefs.h >>conftest.$ac_ext
14701 cat >>conftest.$ac_ext <<_ACEOF
14702 /* end confdefs.h. */
14703 $ac_includes_default
14707 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
14714 rm -f conftest.$ac_objext
14715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14716 (eval $ac_compile) 2>conftest.er1
14718 grep -v '^ *+' conftest.er1 >conftest.err
14720 cat conftest.err >&5
14721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14722 (exit $ac_status); } &&
14723 { ac_try='test -z "$ac_c_werror_flag"
14724 || test ! -s conftest.err'
14725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14726 (eval $ac_try) 2>&5
14728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14729 (exit $ac_status); }; } &&
14730 { ac_try='test -s conftest.$ac_objext'
14731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14732 (eval $ac_try) 2>&5
14734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14735 (exit $ac_status); }; }; then
14738 cat >conftest.$ac_ext <<_ACEOF
14741 cat confdefs.h >>conftest.$ac_ext
14742 cat >>conftest.$ac_ext <<_ACEOF
14743 /* end confdefs.h. */
14744 $ac_includes_default
14748 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
14755 rm -f conftest.$ac_objext
14756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14757 (eval $ac_compile) 2>conftest.er1
14759 grep -v '^ *+' conftest.er1 >conftest.err
14761 cat conftest.err >&5
14762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763 (exit $ac_status); } &&
14764 { ac_try='test -z "$ac_c_werror_flag"
14765 || test ! -s conftest.err'
14766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14767 (eval $ac_try) 2>&5
14769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14770 (exit $ac_status); }; } &&
14771 { ac_try='test -s conftest.$ac_objext'
14772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14773 (eval $ac_try) 2>&5
14775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14776 (exit $ac_status); }; }; then
14777 ac_lo=$ac_mid; break
14779 echo "$as_me: failed program was:" >&5
14780 sed 's/^/| /' conftest.$ac_ext >&5
14782 ac_hi=`expr '(' $ac_mid ')' - 1`
14783 if test $ac_mid -le $ac_hi; then
14787 ac_mid=`expr 2 '*' $ac_mid`
14789 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14792 echo "$as_me: failed program was:" >&5
14793 sed 's/^/| /' conftest.$ac_ext >&5
14797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14800 # Binary search between lo and hi bounds.
14801 while test "x$ac_lo" != "x$ac_hi"; do
14802 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14803 cat >conftest.$ac_ext <<_ACEOF
14806 cat confdefs.h >>conftest.$ac_ext
14807 cat >>conftest.$ac_ext <<_ACEOF
14808 /* end confdefs.h. */
14809 $ac_includes_default
14813 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14820 rm -f conftest.$ac_objext
14821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14822 (eval $ac_compile) 2>conftest.er1
14824 grep -v '^ *+' conftest.er1 >conftest.err
14826 cat conftest.err >&5
14827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14828 (exit $ac_status); } &&
14829 { ac_try='test -z "$ac_c_werror_flag"
14830 || test ! -s conftest.err'
14831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14832 (eval $ac_try) 2>&5
14834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14835 (exit $ac_status); }; } &&
14836 { ac_try='test -s conftest.$ac_objext'
14837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14838 (eval $ac_try) 2>&5
14840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14841 (exit $ac_status); }; }; then
14844 echo "$as_me: failed program was:" >&5
14845 sed 's/^/| /' conftest.$ac_ext >&5
14847 ac_lo=`expr '(' $ac_mid ')' + 1`
14849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14852 ?*) ac_cv_sizeof_char=$ac_lo;;
14853 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14854 See \`config.log' for more details." >&5
14855 echo "$as_me: error: cannot compute sizeof (char), 77
14856 See \`config.log' for more details." >&2;}
14857 { (exit 1); exit 1; }; } ;;
14860 if test "$cross_compiling" = yes; then
14861 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14862 See \`config.log' for more details." >&5
14863 echo "$as_me: error: cannot run test program while cross compiling
14864 See \`config.log' for more details." >&2;}
14865 { (exit 1); exit 1; }; }
14867 cat >conftest.$ac_ext <<_ACEOF
14870 cat confdefs.h >>conftest.$ac_ext
14871 cat >>conftest.$ac_ext <<_ACEOF
14872 /* end confdefs.h. */
14873 $ac_includes_default
14874 long longval () { return (long) (sizeof (char)); }
14875 unsigned long ulongval () { return (long) (sizeof (char)); }
14877 #include <stdlib.h>
14882 FILE *f = fopen ("conftest.val", "w");
14885 if (((long) (sizeof (char))) < 0)
14887 long i = longval ();
14888 if (i != ((long) (sizeof (char))))
14890 fprintf (f, "%ld\n", i);
14894 unsigned long i = ulongval ();
14895 if (i != ((long) (sizeof (char))))
14897 fprintf (f, "%lu\n", i);
14899 exit (ferror (f) || fclose (f) != 0);
14905 rm -f conftest$ac_exeext
14906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14907 (eval $ac_link) 2>&5
14909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14910 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14912 (eval $ac_try) 2>&5
14914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14915 (exit $ac_status); }; }; then
14916 ac_cv_sizeof_char=`cat conftest.val`
14918 echo "$as_me: program exited with status $ac_status" >&5
14919 echo "$as_me: failed program was:" >&5
14920 sed 's/^/| /' conftest.$ac_ext >&5
14922 ( exit $ac_status )
14923 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14924 See \`config.log' for more details." >&5
14925 echo "$as_me: error: cannot compute sizeof (char), 77
14926 See \`config.log' for more details." >&2;}
14927 { (exit 1); exit 1; }; }
14929 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14934 ac_cv_sizeof_char=0
14937 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14938 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14939 cat >>confdefs.h <<_ACEOF
14940 #define SIZEOF_CHAR $ac_cv_sizeof_char
14944 echo "$as_me:$LINENO: checking for short int" >&5
14945 echo $ECHO_N "checking for short int... $ECHO_C" >&6
14946 if test "${ac_cv_type_short_int+set}" = set; then
14947 echo $ECHO_N "(cached) $ECHO_C" >&6
14949 cat >conftest.$ac_ext <<_ACEOF
14952 cat confdefs.h >>conftest.$ac_ext
14953 cat >>conftest.$ac_ext <<_ACEOF
14954 /* end confdefs.h. */
14955 $ac_includes_default
14959 if ((short int *) 0)
14961 if (sizeof (short int))
14967 rm -f conftest.$ac_objext
14968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14969 (eval $ac_compile) 2>conftest.er1
14971 grep -v '^ *+' conftest.er1 >conftest.err
14973 cat conftest.err >&5
14974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14975 (exit $ac_status); } &&
14976 { ac_try='test -z "$ac_c_werror_flag"
14977 || test ! -s conftest.err'
14978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14979 (eval $ac_try) 2>&5
14981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14982 (exit $ac_status); }; } &&
14983 { ac_try='test -s conftest.$ac_objext'
14984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14985 (eval $ac_try) 2>&5
14987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14988 (exit $ac_status); }; }; then
14989 ac_cv_type_short_int=yes
14991 echo "$as_me: failed program was:" >&5
14992 sed 's/^/| /' conftest.$ac_ext >&5
14994 ac_cv_type_short_int=no
14996 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14998 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
14999 echo "${ECHO_T}$ac_cv_type_short_int" >&6
15001 echo "$as_me:$LINENO: checking size of short int" >&5
15002 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
15003 if test "${ac_cv_sizeof_short_int+set}" = set; then
15004 echo $ECHO_N "(cached) $ECHO_C" >&6
15006 if test "$ac_cv_type_short_int" = yes; then
15007 # The cast to unsigned long works around a bug in the HP C Compiler
15008 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15009 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15010 # This bug is HP SR number 8606223364.
15011 if test "$cross_compiling" = yes; then
15012 # Depending upon the size, compute the lo and hi bounds.
15013 cat >conftest.$ac_ext <<_ACEOF
15016 cat confdefs.h >>conftest.$ac_ext
15017 cat >>conftest.$ac_ext <<_ACEOF
15018 /* end confdefs.h. */
15019 $ac_includes_default
15023 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
15030 rm -f conftest.$ac_objext
15031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15032 (eval $ac_compile) 2>conftest.er1
15034 grep -v '^ *+' conftest.er1 >conftest.err
15036 cat conftest.err >&5
15037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15038 (exit $ac_status); } &&
15039 { ac_try='test -z "$ac_c_werror_flag"
15040 || test ! -s conftest.err'
15041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15042 (eval $ac_try) 2>&5
15044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15045 (exit $ac_status); }; } &&
15046 { ac_try='test -s conftest.$ac_objext'
15047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15048 (eval $ac_try) 2>&5
15050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15051 (exit $ac_status); }; }; then
15054 cat >conftest.$ac_ext <<_ACEOF
15057 cat confdefs.h >>conftest.$ac_ext
15058 cat >>conftest.$ac_ext <<_ACEOF
15059 /* end confdefs.h. */
15060 $ac_includes_default
15064 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
15071 rm -f conftest.$ac_objext
15072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15073 (eval $ac_compile) 2>conftest.er1
15075 grep -v '^ *+' conftest.er1 >conftest.err
15077 cat conftest.err >&5
15078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15079 (exit $ac_status); } &&
15080 { ac_try='test -z "$ac_c_werror_flag"
15081 || test ! -s conftest.err'
15082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15083 (eval $ac_try) 2>&5
15085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15086 (exit $ac_status); }; } &&
15087 { ac_try='test -s conftest.$ac_objext'
15088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15089 (eval $ac_try) 2>&5
15091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15092 (exit $ac_status); }; }; then
15093 ac_hi=$ac_mid; break
15095 echo "$as_me: failed program was:" >&5
15096 sed 's/^/| /' conftest.$ac_ext >&5
15098 ac_lo=`expr $ac_mid + 1`
15099 if test $ac_lo -le $ac_mid; then
15103 ac_mid=`expr 2 '*' $ac_mid + 1`
15105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15108 echo "$as_me: failed program was:" >&5
15109 sed 's/^/| /' conftest.$ac_ext >&5
15111 cat >conftest.$ac_ext <<_ACEOF
15114 cat confdefs.h >>conftest.$ac_ext
15115 cat >>conftest.$ac_ext <<_ACEOF
15116 /* end confdefs.h. */
15117 $ac_includes_default
15121 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
15128 rm -f conftest.$ac_objext
15129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15130 (eval $ac_compile) 2>conftest.er1
15132 grep -v '^ *+' conftest.er1 >conftest.err
15134 cat conftest.err >&5
15135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15136 (exit $ac_status); } &&
15137 { ac_try='test -z "$ac_c_werror_flag"
15138 || test ! -s conftest.err'
15139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15140 (eval $ac_try) 2>&5
15142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15143 (exit $ac_status); }; } &&
15144 { ac_try='test -s conftest.$ac_objext'
15145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15146 (eval $ac_try) 2>&5
15148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15149 (exit $ac_status); }; }; then
15152 cat >conftest.$ac_ext <<_ACEOF
15155 cat confdefs.h >>conftest.$ac_ext
15156 cat >>conftest.$ac_ext <<_ACEOF
15157 /* end confdefs.h. */
15158 $ac_includes_default
15162 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
15169 rm -f conftest.$ac_objext
15170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15171 (eval $ac_compile) 2>conftest.er1
15173 grep -v '^ *+' conftest.er1 >conftest.err
15175 cat conftest.err >&5
15176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15177 (exit $ac_status); } &&
15178 { ac_try='test -z "$ac_c_werror_flag"
15179 || test ! -s conftest.err'
15180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15181 (eval $ac_try) 2>&5
15183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15184 (exit $ac_status); }; } &&
15185 { ac_try='test -s conftest.$ac_objext'
15186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15187 (eval $ac_try) 2>&5
15189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15190 (exit $ac_status); }; }; then
15191 ac_lo=$ac_mid; break
15193 echo "$as_me: failed program was:" >&5
15194 sed 's/^/| /' conftest.$ac_ext >&5
15196 ac_hi=`expr '(' $ac_mid ')' - 1`
15197 if test $ac_mid -le $ac_hi; then
15201 ac_mid=`expr 2 '*' $ac_mid`
15203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15206 echo "$as_me: failed program was:" >&5
15207 sed 's/^/| /' conftest.$ac_ext >&5
15211 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15214 # Binary search between lo and hi bounds.
15215 while test "x$ac_lo" != "x$ac_hi"; do
15216 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15217 cat >conftest.$ac_ext <<_ACEOF
15220 cat confdefs.h >>conftest.$ac_ext
15221 cat >>conftest.$ac_ext <<_ACEOF
15222 /* end confdefs.h. */
15223 $ac_includes_default
15227 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
15234 rm -f conftest.$ac_objext
15235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15236 (eval $ac_compile) 2>conftest.er1
15238 grep -v '^ *+' conftest.er1 >conftest.err
15240 cat conftest.err >&5
15241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15242 (exit $ac_status); } &&
15243 { ac_try='test -z "$ac_c_werror_flag"
15244 || test ! -s conftest.err'
15245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15246 (eval $ac_try) 2>&5
15248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15249 (exit $ac_status); }; } &&
15250 { ac_try='test -s conftest.$ac_objext'
15251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15252 (eval $ac_try) 2>&5
15254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15255 (exit $ac_status); }; }; then
15258 echo "$as_me: failed program was:" >&5
15259 sed 's/^/| /' conftest.$ac_ext >&5
15261 ac_lo=`expr '(' $ac_mid ')' + 1`
15263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15266 ?*) ac_cv_sizeof_short_int=$ac_lo;;
15267 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
15268 See \`config.log' for more details." >&5
15269 echo "$as_me: error: cannot compute sizeof (short int), 77
15270 See \`config.log' for more details." >&2;}
15271 { (exit 1); exit 1; }; } ;;
15274 if test "$cross_compiling" = yes; then
15275 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15276 See \`config.log' for more details." >&5
15277 echo "$as_me: error: cannot run test program while cross compiling
15278 See \`config.log' for more details." >&2;}
15279 { (exit 1); exit 1; }; }
15281 cat >conftest.$ac_ext <<_ACEOF
15284 cat confdefs.h >>conftest.$ac_ext
15285 cat >>conftest.$ac_ext <<_ACEOF
15286 /* end confdefs.h. */
15287 $ac_includes_default
15288 long longval () { return (long) (sizeof (short int)); }
15289 unsigned long ulongval () { return (long) (sizeof (short int)); }
15291 #include <stdlib.h>
15296 FILE *f = fopen ("conftest.val", "w");
15299 if (((long) (sizeof (short int))) < 0)
15301 long i = longval ();
15302 if (i != ((long) (sizeof (short int))))
15304 fprintf (f, "%ld\n", i);
15308 unsigned long i = ulongval ();
15309 if (i != ((long) (sizeof (short int))))
15311 fprintf (f, "%lu\n", i);
15313 exit (ferror (f) || fclose (f) != 0);
15319 rm -f conftest$ac_exeext
15320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15321 (eval $ac_link) 2>&5
15323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15324 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15326 (eval $ac_try) 2>&5
15328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15329 (exit $ac_status); }; }; then
15330 ac_cv_sizeof_short_int=`cat conftest.val`
15332 echo "$as_me: program exited with status $ac_status" >&5
15333 echo "$as_me: failed program was:" >&5
15334 sed 's/^/| /' conftest.$ac_ext >&5
15336 ( exit $ac_status )
15337 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
15338 See \`config.log' for more details." >&5
15339 echo "$as_me: error: cannot compute sizeof (short int), 77
15340 See \`config.log' for more details." >&2;}
15341 { (exit 1); exit 1; }; }
15343 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15348 ac_cv_sizeof_short_int=0
15351 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
15352 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
15353 cat >>confdefs.h <<_ACEOF
15354 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
15358 echo "$as_me:$LINENO: checking for int" >&5
15359 echo $ECHO_N "checking for int... $ECHO_C" >&6
15360 if test "${ac_cv_type_int+set}" = set; then
15361 echo $ECHO_N "(cached) $ECHO_C" >&6
15363 cat >conftest.$ac_ext <<_ACEOF
15366 cat confdefs.h >>conftest.$ac_ext
15367 cat >>conftest.$ac_ext <<_ACEOF
15368 /* end confdefs.h. */
15369 $ac_includes_default
15381 rm -f conftest.$ac_objext
15382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15383 (eval $ac_compile) 2>conftest.er1
15385 grep -v '^ *+' conftest.er1 >conftest.err
15387 cat conftest.err >&5
15388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15389 (exit $ac_status); } &&
15390 { ac_try='test -z "$ac_c_werror_flag"
15391 || test ! -s conftest.err'
15392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15393 (eval $ac_try) 2>&5
15395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15396 (exit $ac_status); }; } &&
15397 { ac_try='test -s conftest.$ac_objext'
15398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15399 (eval $ac_try) 2>&5
15401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15402 (exit $ac_status); }; }; then
15405 echo "$as_me: failed program was:" >&5
15406 sed 's/^/| /' conftest.$ac_ext >&5
15410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15412 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15413 echo "${ECHO_T}$ac_cv_type_int" >&6
15415 echo "$as_me:$LINENO: checking size of int" >&5
15416 echo $ECHO_N "checking size of int... $ECHO_C" >&6
15417 if test "${ac_cv_sizeof_int+set}" = set; then
15418 echo $ECHO_N "(cached) $ECHO_C" >&6
15420 if test "$ac_cv_type_int" = yes; then
15421 # The cast to unsigned long works around a bug in the HP C Compiler
15422 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15423 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15424 # This bug is HP SR number 8606223364.
15425 if test "$cross_compiling" = yes; then
15426 # Depending upon the size, compute the lo and hi bounds.
15427 cat >conftest.$ac_ext <<_ACEOF
15430 cat confdefs.h >>conftest.$ac_ext
15431 cat >>conftest.$ac_ext <<_ACEOF
15432 /* end confdefs.h. */
15433 $ac_includes_default
15437 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15444 rm -f conftest.$ac_objext
15445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15446 (eval $ac_compile) 2>conftest.er1
15448 grep -v '^ *+' conftest.er1 >conftest.err
15450 cat conftest.err >&5
15451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15452 (exit $ac_status); } &&
15453 { ac_try='test -z "$ac_c_werror_flag"
15454 || test ! -s conftest.err'
15455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15456 (eval $ac_try) 2>&5
15458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15459 (exit $ac_status); }; } &&
15460 { ac_try='test -s conftest.$ac_objext'
15461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15462 (eval $ac_try) 2>&5
15464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15465 (exit $ac_status); }; }; then
15468 cat >conftest.$ac_ext <<_ACEOF
15471 cat confdefs.h >>conftest.$ac_ext
15472 cat >>conftest.$ac_ext <<_ACEOF
15473 /* end confdefs.h. */
15474 $ac_includes_default
15478 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15485 rm -f conftest.$ac_objext
15486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15487 (eval $ac_compile) 2>conftest.er1
15489 grep -v '^ *+' conftest.er1 >conftest.err
15491 cat conftest.err >&5
15492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15493 (exit $ac_status); } &&
15494 { ac_try='test -z "$ac_c_werror_flag"
15495 || test ! -s conftest.err'
15496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15497 (eval $ac_try) 2>&5
15499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15500 (exit $ac_status); }; } &&
15501 { ac_try='test -s conftest.$ac_objext'
15502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15503 (eval $ac_try) 2>&5
15505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15506 (exit $ac_status); }; }; then
15507 ac_hi=$ac_mid; break
15509 echo "$as_me: failed program was:" >&5
15510 sed 's/^/| /' conftest.$ac_ext >&5
15512 ac_lo=`expr $ac_mid + 1`
15513 if test $ac_lo -le $ac_mid; then
15517 ac_mid=`expr 2 '*' $ac_mid + 1`
15519 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15522 echo "$as_me: failed program was:" >&5
15523 sed 's/^/| /' conftest.$ac_ext >&5
15525 cat >conftest.$ac_ext <<_ACEOF
15528 cat confdefs.h >>conftest.$ac_ext
15529 cat >>conftest.$ac_ext <<_ACEOF
15530 /* end confdefs.h. */
15531 $ac_includes_default
15535 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15542 rm -f conftest.$ac_objext
15543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15544 (eval $ac_compile) 2>conftest.er1
15546 grep -v '^ *+' conftest.er1 >conftest.err
15548 cat conftest.err >&5
15549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15550 (exit $ac_status); } &&
15551 { ac_try='test -z "$ac_c_werror_flag"
15552 || test ! -s conftest.err'
15553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15554 (eval $ac_try) 2>&5
15556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15557 (exit $ac_status); }; } &&
15558 { ac_try='test -s conftest.$ac_objext'
15559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15560 (eval $ac_try) 2>&5
15562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15563 (exit $ac_status); }; }; then
15566 cat >conftest.$ac_ext <<_ACEOF
15569 cat confdefs.h >>conftest.$ac_ext
15570 cat >>conftest.$ac_ext <<_ACEOF
15571 /* end confdefs.h. */
15572 $ac_includes_default
15576 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15583 rm -f conftest.$ac_objext
15584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15585 (eval $ac_compile) 2>conftest.er1
15587 grep -v '^ *+' conftest.er1 >conftest.err
15589 cat conftest.err >&5
15590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15591 (exit $ac_status); } &&
15592 { ac_try='test -z "$ac_c_werror_flag"
15593 || test ! -s conftest.err'
15594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15595 (eval $ac_try) 2>&5
15597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15598 (exit $ac_status); }; } &&
15599 { ac_try='test -s conftest.$ac_objext'
15600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15601 (eval $ac_try) 2>&5
15603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15604 (exit $ac_status); }; }; then
15605 ac_lo=$ac_mid; break
15607 echo "$as_me: failed program was:" >&5
15608 sed 's/^/| /' conftest.$ac_ext >&5
15610 ac_hi=`expr '(' $ac_mid ')' - 1`
15611 if test $ac_mid -le $ac_hi; then
15615 ac_mid=`expr 2 '*' $ac_mid`
15617 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15620 echo "$as_me: failed program was:" >&5
15621 sed 's/^/| /' conftest.$ac_ext >&5
15625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15628 # Binary search between lo and hi bounds.
15629 while test "x$ac_lo" != "x$ac_hi"; do
15630 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15631 cat >conftest.$ac_ext <<_ACEOF
15634 cat confdefs.h >>conftest.$ac_ext
15635 cat >>conftest.$ac_ext <<_ACEOF
15636 /* end confdefs.h. */
15637 $ac_includes_default
15641 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15648 rm -f conftest.$ac_objext
15649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15650 (eval $ac_compile) 2>conftest.er1
15652 grep -v '^ *+' conftest.er1 >conftest.err
15654 cat conftest.err >&5
15655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15656 (exit $ac_status); } &&
15657 { ac_try='test -z "$ac_c_werror_flag"
15658 || test ! -s conftest.err'
15659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15660 (eval $ac_try) 2>&5
15662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15663 (exit $ac_status); }; } &&
15664 { ac_try='test -s conftest.$ac_objext'
15665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15666 (eval $ac_try) 2>&5
15668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15669 (exit $ac_status); }; }; then
15672 echo "$as_me: failed program was:" >&5
15673 sed 's/^/| /' conftest.$ac_ext >&5
15675 ac_lo=`expr '(' $ac_mid ')' + 1`
15677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15680 ?*) ac_cv_sizeof_int=$ac_lo;;
15681 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15682 See \`config.log' for more details." >&5
15683 echo "$as_me: error: cannot compute sizeof (int), 77
15684 See \`config.log' for more details." >&2;}
15685 { (exit 1); exit 1; }; } ;;
15688 if test "$cross_compiling" = yes; then
15689 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15690 See \`config.log' for more details." >&5
15691 echo "$as_me: error: cannot run test program while cross compiling
15692 See \`config.log' for more details." >&2;}
15693 { (exit 1); exit 1; }; }
15695 cat >conftest.$ac_ext <<_ACEOF
15698 cat confdefs.h >>conftest.$ac_ext
15699 cat >>conftest.$ac_ext <<_ACEOF
15700 /* end confdefs.h. */
15701 $ac_includes_default
15702 long longval () { return (long) (sizeof (int)); }
15703 unsigned long ulongval () { return (long) (sizeof (int)); }
15705 #include <stdlib.h>
15710 FILE *f = fopen ("conftest.val", "w");
15713 if (((long) (sizeof (int))) < 0)
15715 long i = longval ();
15716 if (i != ((long) (sizeof (int))))
15718 fprintf (f, "%ld\n", i);
15722 unsigned long i = ulongval ();
15723 if (i != ((long) (sizeof (int))))
15725 fprintf (f, "%lu\n", i);
15727 exit (ferror (f) || fclose (f) != 0);
15733 rm -f conftest$ac_exeext
15734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15735 (eval $ac_link) 2>&5
15737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15740 (eval $ac_try) 2>&5
15742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15743 (exit $ac_status); }; }; then
15744 ac_cv_sizeof_int=`cat conftest.val`
15746 echo "$as_me: program exited with status $ac_status" >&5
15747 echo "$as_me: failed program was:" >&5
15748 sed 's/^/| /' conftest.$ac_ext >&5
15750 ( exit $ac_status )
15751 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15752 See \`config.log' for more details." >&5
15753 echo "$as_me: error: cannot compute sizeof (int), 77
15754 See \`config.log' for more details." >&2;}
15755 { (exit 1); exit 1; }; }
15757 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15765 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15766 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15767 cat >>confdefs.h <<_ACEOF
15768 #define SIZEOF_INT $ac_cv_sizeof_int
15772 echo "$as_me:$LINENO: checking for long int" >&5
15773 echo $ECHO_N "checking for long int... $ECHO_C" >&6
15774 if test "${ac_cv_type_long_int+set}" = set; then
15775 echo $ECHO_N "(cached) $ECHO_C" >&6
15777 cat >conftest.$ac_ext <<_ACEOF
15780 cat confdefs.h >>conftest.$ac_ext
15781 cat >>conftest.$ac_ext <<_ACEOF
15782 /* end confdefs.h. */
15783 $ac_includes_default
15787 if ((long int *) 0)
15789 if (sizeof (long int))
15795 rm -f conftest.$ac_objext
15796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15797 (eval $ac_compile) 2>conftest.er1
15799 grep -v '^ *+' conftest.er1 >conftest.err
15801 cat conftest.err >&5
15802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15803 (exit $ac_status); } &&
15804 { ac_try='test -z "$ac_c_werror_flag"
15805 || test ! -s conftest.err'
15806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15807 (eval $ac_try) 2>&5
15809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15810 (exit $ac_status); }; } &&
15811 { ac_try='test -s conftest.$ac_objext'
15812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15813 (eval $ac_try) 2>&5
15815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15816 (exit $ac_status); }; }; then
15817 ac_cv_type_long_int=yes
15819 echo "$as_me: failed program was:" >&5
15820 sed 's/^/| /' conftest.$ac_ext >&5
15822 ac_cv_type_long_int=no
15824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15826 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
15827 echo "${ECHO_T}$ac_cv_type_long_int" >&6
15829 echo "$as_me:$LINENO: checking size of long int" >&5
15830 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
15831 if test "${ac_cv_sizeof_long_int+set}" = set; then
15832 echo $ECHO_N "(cached) $ECHO_C" >&6
15834 if test "$ac_cv_type_long_int" = yes; then
15835 # The cast to unsigned long works around a bug in the HP C Compiler
15836 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15837 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15838 # This bug is HP SR number 8606223364.
15839 if test "$cross_compiling" = yes; then
15840 # Depending upon the size, compute the lo and hi bounds.
15841 cat >conftest.$ac_ext <<_ACEOF
15844 cat confdefs.h >>conftest.$ac_ext
15845 cat >>conftest.$ac_ext <<_ACEOF
15846 /* end confdefs.h. */
15847 $ac_includes_default
15851 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
15858 rm -f conftest.$ac_objext
15859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15860 (eval $ac_compile) 2>conftest.er1
15862 grep -v '^ *+' conftest.er1 >conftest.err
15864 cat conftest.err >&5
15865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15866 (exit $ac_status); } &&
15867 { ac_try='test -z "$ac_c_werror_flag"
15868 || test ! -s conftest.err'
15869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15870 (eval $ac_try) 2>&5
15872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15873 (exit $ac_status); }; } &&
15874 { ac_try='test -s conftest.$ac_objext'
15875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15876 (eval $ac_try) 2>&5
15878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15879 (exit $ac_status); }; }; then
15882 cat >conftest.$ac_ext <<_ACEOF
15885 cat confdefs.h >>conftest.$ac_ext
15886 cat >>conftest.$ac_ext <<_ACEOF
15887 /* end confdefs.h. */
15888 $ac_includes_default
15892 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
15899 rm -f conftest.$ac_objext
15900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15901 (eval $ac_compile) 2>conftest.er1
15903 grep -v '^ *+' conftest.er1 >conftest.err
15905 cat conftest.err >&5
15906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15907 (exit $ac_status); } &&
15908 { ac_try='test -z "$ac_c_werror_flag"
15909 || test ! -s conftest.err'
15910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15911 (eval $ac_try) 2>&5
15913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15914 (exit $ac_status); }; } &&
15915 { ac_try='test -s conftest.$ac_objext'
15916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15917 (eval $ac_try) 2>&5
15919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15920 (exit $ac_status); }; }; then
15921 ac_hi=$ac_mid; break
15923 echo "$as_me: failed program was:" >&5
15924 sed 's/^/| /' conftest.$ac_ext >&5
15926 ac_lo=`expr $ac_mid + 1`
15927 if test $ac_lo -le $ac_mid; then
15931 ac_mid=`expr 2 '*' $ac_mid + 1`
15933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15936 echo "$as_me: failed program was:" >&5
15937 sed 's/^/| /' conftest.$ac_ext >&5
15939 cat >conftest.$ac_ext <<_ACEOF
15942 cat confdefs.h >>conftest.$ac_ext
15943 cat >>conftest.$ac_ext <<_ACEOF
15944 /* end confdefs.h. */
15945 $ac_includes_default
15949 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
15956 rm -f conftest.$ac_objext
15957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15958 (eval $ac_compile) 2>conftest.er1
15960 grep -v '^ *+' conftest.er1 >conftest.err
15962 cat conftest.err >&5
15963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15964 (exit $ac_status); } &&
15965 { ac_try='test -z "$ac_c_werror_flag"
15966 || test ! -s conftest.err'
15967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15968 (eval $ac_try) 2>&5
15970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15971 (exit $ac_status); }; } &&
15972 { ac_try='test -s conftest.$ac_objext'
15973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15974 (eval $ac_try) 2>&5
15976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15977 (exit $ac_status); }; }; then
15980 cat >conftest.$ac_ext <<_ACEOF
15983 cat confdefs.h >>conftest.$ac_ext
15984 cat >>conftest.$ac_ext <<_ACEOF
15985 /* end confdefs.h. */
15986 $ac_includes_default
15990 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
15997 rm -f conftest.$ac_objext
15998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15999 (eval $ac_compile) 2>conftest.er1
16001 grep -v '^ *+' conftest.er1 >conftest.err
16003 cat conftest.err >&5
16004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16005 (exit $ac_status); } &&
16006 { ac_try='test -z "$ac_c_werror_flag"
16007 || test ! -s conftest.err'
16008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16009 (eval $ac_try) 2>&5
16011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16012 (exit $ac_status); }; } &&
16013 { ac_try='test -s conftest.$ac_objext'
16014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16015 (eval $ac_try) 2>&5
16017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16018 (exit $ac_status); }; }; then
16019 ac_lo=$ac_mid; break
16021 echo "$as_me: failed program was:" >&5
16022 sed 's/^/| /' conftest.$ac_ext >&5
16024 ac_hi=`expr '(' $ac_mid ')' - 1`
16025 if test $ac_mid -le $ac_hi; then
16029 ac_mid=`expr 2 '*' $ac_mid`
16031 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16034 echo "$as_me: failed program was:" >&5
16035 sed 's/^/| /' conftest.$ac_ext >&5
16039 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16042 # Binary search between lo and hi bounds.
16043 while test "x$ac_lo" != "x$ac_hi"; do
16044 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16045 cat >conftest.$ac_ext <<_ACEOF
16048 cat confdefs.h >>conftest.$ac_ext
16049 cat >>conftest.$ac_ext <<_ACEOF
16050 /* end confdefs.h. */
16051 $ac_includes_default
16055 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
16062 rm -f conftest.$ac_objext
16063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16064 (eval $ac_compile) 2>conftest.er1
16066 grep -v '^ *+' conftest.er1 >conftest.err
16068 cat conftest.err >&5
16069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16070 (exit $ac_status); } &&
16071 { ac_try='test -z "$ac_c_werror_flag"
16072 || test ! -s conftest.err'
16073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16074 (eval $ac_try) 2>&5
16076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16077 (exit $ac_status); }; } &&
16078 { ac_try='test -s conftest.$ac_objext'
16079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16080 (eval $ac_try) 2>&5
16082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16083 (exit $ac_status); }; }; then
16086 echo "$as_me: failed program was:" >&5
16087 sed 's/^/| /' conftest.$ac_ext >&5
16089 ac_lo=`expr '(' $ac_mid ')' + 1`
16091 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16094 ?*) ac_cv_sizeof_long_int=$ac_lo;;
16095 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
16096 See \`config.log' for more details." >&5
16097 echo "$as_me: error: cannot compute sizeof (long int), 77
16098 See \`config.log' for more details." >&2;}
16099 { (exit 1); exit 1; }; } ;;
16102 if test "$cross_compiling" = yes; then
16103 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16104 See \`config.log' for more details." >&5
16105 echo "$as_me: error: cannot run test program while cross compiling
16106 See \`config.log' for more details." >&2;}
16107 { (exit 1); exit 1; }; }
16109 cat >conftest.$ac_ext <<_ACEOF
16112 cat confdefs.h >>conftest.$ac_ext
16113 cat >>conftest.$ac_ext <<_ACEOF
16114 /* end confdefs.h. */
16115 $ac_includes_default
16116 long longval () { return (long) (sizeof (long int)); }
16117 unsigned long ulongval () { return (long) (sizeof (long int)); }
16119 #include <stdlib.h>
16124 FILE *f = fopen ("conftest.val", "w");
16127 if (((long) (sizeof (long int))) < 0)
16129 long i = longval ();
16130 if (i != ((long) (sizeof (long int))))
16132 fprintf (f, "%ld\n", i);
16136 unsigned long i = ulongval ();
16137 if (i != ((long) (sizeof (long int))))
16139 fprintf (f, "%lu\n", i);
16141 exit (ferror (f) || fclose (f) != 0);
16147 rm -f conftest$ac_exeext
16148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16149 (eval $ac_link) 2>&5
16151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16152 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16154 (eval $ac_try) 2>&5
16156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16157 (exit $ac_status); }; }; then
16158 ac_cv_sizeof_long_int=`cat conftest.val`
16160 echo "$as_me: program exited with status $ac_status" >&5
16161 echo "$as_me: failed program was:" >&5
16162 sed 's/^/| /' conftest.$ac_ext >&5
16164 ( exit $ac_status )
16165 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
16166 See \`config.log' for more details." >&5
16167 echo "$as_me: error: cannot compute sizeof (long int), 77
16168 See \`config.log' for more details." >&2;}
16169 { (exit 1); exit 1; }; }
16171 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16176 ac_cv_sizeof_long_int=0
16179 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
16180 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
16181 cat >>confdefs.h <<_ACEOF
16182 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
16186 echo "$as_me:$LINENO: checking for long long int" >&5
16187 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
16188 if test "${ac_cv_type_long_long_int+set}" = set; then
16189 echo $ECHO_N "(cached) $ECHO_C" >&6
16191 cat >conftest.$ac_ext <<_ACEOF
16194 cat confdefs.h >>conftest.$ac_ext
16195 cat >>conftest.$ac_ext <<_ACEOF
16196 /* end confdefs.h. */
16197 $ac_includes_default
16201 if ((long long int *) 0)
16203 if (sizeof (long long int))
16209 rm -f conftest.$ac_objext
16210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16211 (eval $ac_compile) 2>conftest.er1
16213 grep -v '^ *+' conftest.er1 >conftest.err
16215 cat conftest.err >&5
16216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16217 (exit $ac_status); } &&
16218 { ac_try='test -z "$ac_c_werror_flag"
16219 || test ! -s conftest.err'
16220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16221 (eval $ac_try) 2>&5
16223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16224 (exit $ac_status); }; } &&
16225 { ac_try='test -s conftest.$ac_objext'
16226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16227 (eval $ac_try) 2>&5
16229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16230 (exit $ac_status); }; }; then
16231 ac_cv_type_long_long_int=yes
16233 echo "$as_me: failed program was:" >&5
16234 sed 's/^/| /' conftest.$ac_ext >&5
16236 ac_cv_type_long_long_int=no
16238 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16240 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
16241 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
16243 echo "$as_me:$LINENO: checking size of long long int" >&5
16244 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
16245 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
16246 echo $ECHO_N "(cached) $ECHO_C" >&6
16248 if test "$ac_cv_type_long_long_int" = yes; then
16249 # The cast to unsigned long works around a bug in the HP C Compiler
16250 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16251 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16252 # This bug is HP SR number 8606223364.
16253 if test "$cross_compiling" = yes; then
16254 # Depending upon the size, compute the lo and hi bounds.
16255 cat >conftest.$ac_ext <<_ACEOF
16258 cat confdefs.h >>conftest.$ac_ext
16259 cat >>conftest.$ac_ext <<_ACEOF
16260 /* end confdefs.h. */
16261 $ac_includes_default
16265 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
16272 rm -f conftest.$ac_objext
16273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16274 (eval $ac_compile) 2>conftest.er1
16276 grep -v '^ *+' conftest.er1 >conftest.err
16278 cat conftest.err >&5
16279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16280 (exit $ac_status); } &&
16281 { ac_try='test -z "$ac_c_werror_flag"
16282 || test ! -s conftest.err'
16283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16284 (eval $ac_try) 2>&5
16286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16287 (exit $ac_status); }; } &&
16288 { ac_try='test -s conftest.$ac_objext'
16289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16290 (eval $ac_try) 2>&5
16292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16293 (exit $ac_status); }; }; then
16296 cat >conftest.$ac_ext <<_ACEOF
16299 cat confdefs.h >>conftest.$ac_ext
16300 cat >>conftest.$ac_ext <<_ACEOF
16301 /* end confdefs.h. */
16302 $ac_includes_default
16306 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
16313 rm -f conftest.$ac_objext
16314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16315 (eval $ac_compile) 2>conftest.er1
16317 grep -v '^ *+' conftest.er1 >conftest.err
16319 cat conftest.err >&5
16320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16321 (exit $ac_status); } &&
16322 { ac_try='test -z "$ac_c_werror_flag"
16323 || test ! -s conftest.err'
16324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16325 (eval $ac_try) 2>&5
16327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16328 (exit $ac_status); }; } &&
16329 { ac_try='test -s conftest.$ac_objext'
16330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16331 (eval $ac_try) 2>&5
16333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16334 (exit $ac_status); }; }; then
16335 ac_hi=$ac_mid; break
16337 echo "$as_me: failed program was:" >&5
16338 sed 's/^/| /' conftest.$ac_ext >&5
16340 ac_lo=`expr $ac_mid + 1`
16341 if test $ac_lo -le $ac_mid; then
16345 ac_mid=`expr 2 '*' $ac_mid + 1`
16347 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16350 echo "$as_me: failed program was:" >&5
16351 sed 's/^/| /' conftest.$ac_ext >&5
16353 cat >conftest.$ac_ext <<_ACEOF
16356 cat confdefs.h >>conftest.$ac_ext
16357 cat >>conftest.$ac_ext <<_ACEOF
16358 /* end confdefs.h. */
16359 $ac_includes_default
16363 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
16370 rm -f conftest.$ac_objext
16371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16372 (eval $ac_compile) 2>conftest.er1
16374 grep -v '^ *+' conftest.er1 >conftest.err
16376 cat conftest.err >&5
16377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16378 (exit $ac_status); } &&
16379 { ac_try='test -z "$ac_c_werror_flag"
16380 || test ! -s conftest.err'
16381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16382 (eval $ac_try) 2>&5
16384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16385 (exit $ac_status); }; } &&
16386 { ac_try='test -s conftest.$ac_objext'
16387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16388 (eval $ac_try) 2>&5
16390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16391 (exit $ac_status); }; }; then
16394 cat >conftest.$ac_ext <<_ACEOF
16397 cat confdefs.h >>conftest.$ac_ext
16398 cat >>conftest.$ac_ext <<_ACEOF
16399 /* end confdefs.h. */
16400 $ac_includes_default
16404 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
16411 rm -f conftest.$ac_objext
16412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16413 (eval $ac_compile) 2>conftest.er1
16415 grep -v '^ *+' conftest.er1 >conftest.err
16417 cat conftest.err >&5
16418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16419 (exit $ac_status); } &&
16420 { ac_try='test -z "$ac_c_werror_flag"
16421 || test ! -s conftest.err'
16422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16423 (eval $ac_try) 2>&5
16425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16426 (exit $ac_status); }; } &&
16427 { ac_try='test -s conftest.$ac_objext'
16428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16429 (eval $ac_try) 2>&5
16431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16432 (exit $ac_status); }; }; then
16433 ac_lo=$ac_mid; break
16435 echo "$as_me: failed program was:" >&5
16436 sed 's/^/| /' conftest.$ac_ext >&5
16438 ac_hi=`expr '(' $ac_mid ')' - 1`
16439 if test $ac_mid -le $ac_hi; then
16443 ac_mid=`expr 2 '*' $ac_mid`
16445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16448 echo "$as_me: failed program was:" >&5
16449 sed 's/^/| /' conftest.$ac_ext >&5
16453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16456 # Binary search between lo and hi bounds.
16457 while test "x$ac_lo" != "x$ac_hi"; do
16458 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16459 cat >conftest.$ac_ext <<_ACEOF
16462 cat confdefs.h >>conftest.$ac_ext
16463 cat >>conftest.$ac_ext <<_ACEOF
16464 /* end confdefs.h. */
16465 $ac_includes_default
16469 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
16476 rm -f conftest.$ac_objext
16477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16478 (eval $ac_compile) 2>conftest.er1
16480 grep -v '^ *+' conftest.er1 >conftest.err
16482 cat conftest.err >&5
16483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16484 (exit $ac_status); } &&
16485 { ac_try='test -z "$ac_c_werror_flag"
16486 || test ! -s conftest.err'
16487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16488 (eval $ac_try) 2>&5
16490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16491 (exit $ac_status); }; } &&
16492 { ac_try='test -s conftest.$ac_objext'
16493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16494 (eval $ac_try) 2>&5
16496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16497 (exit $ac_status); }; }; then
16500 echo "$as_me: failed program was:" >&5
16501 sed 's/^/| /' conftest.$ac_ext >&5
16503 ac_lo=`expr '(' $ac_mid ')' + 1`
16505 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16508 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
16509 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
16510 See \`config.log' for more details." >&5
16511 echo "$as_me: error: cannot compute sizeof (long long int), 77
16512 See \`config.log' for more details." >&2;}
16513 { (exit 1); exit 1; }; } ;;
16516 if test "$cross_compiling" = yes; then
16517 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16518 See \`config.log' for more details." >&5
16519 echo "$as_me: error: cannot run test program while cross compiling
16520 See \`config.log' for more details." >&2;}
16521 { (exit 1); exit 1; }; }
16523 cat >conftest.$ac_ext <<_ACEOF
16526 cat confdefs.h >>conftest.$ac_ext
16527 cat >>conftest.$ac_ext <<_ACEOF
16528 /* end confdefs.h. */
16529 $ac_includes_default
16530 long longval () { return (long) (sizeof (long long int)); }
16531 unsigned long ulongval () { return (long) (sizeof (long long int)); }
16533 #include <stdlib.h>
16538 FILE *f = fopen ("conftest.val", "w");
16541 if (((long) (sizeof (long long int))) < 0)
16543 long i = longval ();
16544 if (i != ((long) (sizeof (long long int))))
16546 fprintf (f, "%ld\n", i);
16550 unsigned long i = ulongval ();
16551 if (i != ((long) (sizeof (long long int))))
16553 fprintf (f, "%lu\n", i);
16555 exit (ferror (f) || fclose (f) != 0);
16561 rm -f conftest$ac_exeext
16562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16563 (eval $ac_link) 2>&5
16565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16566 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16568 (eval $ac_try) 2>&5
16570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16571 (exit $ac_status); }; }; then
16572 ac_cv_sizeof_long_long_int=`cat conftest.val`
16574 echo "$as_me: program exited with status $ac_status" >&5
16575 echo "$as_me: failed program was:" >&5
16576 sed 's/^/| /' conftest.$ac_ext >&5
16578 ( exit $ac_status )
16579 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
16580 See \`config.log' for more details." >&5
16581 echo "$as_me: error: cannot compute sizeof (long long int), 77
16582 See \`config.log' for more details." >&2;}
16583 { (exit 1); exit 1; }; }
16585 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16590 ac_cv_sizeof_long_long_int=0
16593 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
16594 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
16595 cat >>confdefs.h <<_ACEOF
16596 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
16600 echo "$as_me:$LINENO: checking for int *" >&5
16601 echo $ECHO_N "checking for int *... $ECHO_C" >&6
16602 if test "${ac_cv_type_int_p+set}" = set; then
16603 echo $ECHO_N "(cached) $ECHO_C" >&6
16605 cat >conftest.$ac_ext <<_ACEOF
16608 cat confdefs.h >>conftest.$ac_ext
16609 cat >>conftest.$ac_ext <<_ACEOF
16610 /* end confdefs.h. */
16611 $ac_includes_default
16617 if (sizeof (int *))
16623 rm -f conftest.$ac_objext
16624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16625 (eval $ac_compile) 2>conftest.er1
16627 grep -v '^ *+' conftest.er1 >conftest.err
16629 cat conftest.err >&5
16630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16631 (exit $ac_status); } &&
16632 { ac_try='test -z "$ac_c_werror_flag"
16633 || test ! -s conftest.err'
16634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16635 (eval $ac_try) 2>&5
16637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16638 (exit $ac_status); }; } &&
16639 { ac_try='test -s conftest.$ac_objext'
16640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16641 (eval $ac_try) 2>&5
16643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16644 (exit $ac_status); }; }; then
16645 ac_cv_type_int_p=yes
16647 echo "$as_me: failed program was:" >&5
16648 sed 's/^/| /' conftest.$ac_ext >&5
16650 ac_cv_type_int_p=no
16652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16654 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
16655 echo "${ECHO_T}$ac_cv_type_int_p" >&6
16657 echo "$as_me:$LINENO: checking size of int *" >&5
16658 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
16659 if test "${ac_cv_sizeof_int_p+set}" = set; then
16660 echo $ECHO_N "(cached) $ECHO_C" >&6
16662 if test "$ac_cv_type_int_p" = yes; then
16663 # The cast to unsigned long works around a bug in the HP C Compiler
16664 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16665 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16666 # This bug is HP SR number 8606223364.
16667 if test "$cross_compiling" = yes; then
16668 # Depending upon the size, compute the lo and hi bounds.
16669 cat >conftest.$ac_ext <<_ACEOF
16672 cat confdefs.h >>conftest.$ac_ext
16673 cat >>conftest.$ac_ext <<_ACEOF
16674 /* end confdefs.h. */
16675 $ac_includes_default
16679 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
16686 rm -f conftest.$ac_objext
16687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16688 (eval $ac_compile) 2>conftest.er1
16690 grep -v '^ *+' conftest.er1 >conftest.err
16692 cat conftest.err >&5
16693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16694 (exit $ac_status); } &&
16695 { ac_try='test -z "$ac_c_werror_flag"
16696 || test ! -s conftest.err'
16697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16698 (eval $ac_try) 2>&5
16700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16701 (exit $ac_status); }; } &&
16702 { ac_try='test -s conftest.$ac_objext'
16703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16704 (eval $ac_try) 2>&5
16706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16707 (exit $ac_status); }; }; then
16710 cat >conftest.$ac_ext <<_ACEOF
16713 cat confdefs.h >>conftest.$ac_ext
16714 cat >>conftest.$ac_ext <<_ACEOF
16715 /* end confdefs.h. */
16716 $ac_includes_default
16720 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
16727 rm -f conftest.$ac_objext
16728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16729 (eval $ac_compile) 2>conftest.er1
16731 grep -v '^ *+' conftest.er1 >conftest.err
16733 cat conftest.err >&5
16734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16735 (exit $ac_status); } &&
16736 { ac_try='test -z "$ac_c_werror_flag"
16737 || test ! -s conftest.err'
16738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16739 (eval $ac_try) 2>&5
16741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16742 (exit $ac_status); }; } &&
16743 { ac_try='test -s conftest.$ac_objext'
16744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16745 (eval $ac_try) 2>&5
16747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16748 (exit $ac_status); }; }; then
16749 ac_hi=$ac_mid; break
16751 echo "$as_me: failed program was:" >&5
16752 sed 's/^/| /' conftest.$ac_ext >&5
16754 ac_lo=`expr $ac_mid + 1`
16755 if test $ac_lo -le $ac_mid; then
16759 ac_mid=`expr 2 '*' $ac_mid + 1`
16761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16764 echo "$as_me: failed program was:" >&5
16765 sed 's/^/| /' conftest.$ac_ext >&5
16767 cat >conftest.$ac_ext <<_ACEOF
16770 cat confdefs.h >>conftest.$ac_ext
16771 cat >>conftest.$ac_ext <<_ACEOF
16772 /* end confdefs.h. */
16773 $ac_includes_default
16777 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
16784 rm -f conftest.$ac_objext
16785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16786 (eval $ac_compile) 2>conftest.er1
16788 grep -v '^ *+' conftest.er1 >conftest.err
16790 cat conftest.err >&5
16791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16792 (exit $ac_status); } &&
16793 { ac_try='test -z "$ac_c_werror_flag"
16794 || test ! -s conftest.err'
16795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16796 (eval $ac_try) 2>&5
16798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16799 (exit $ac_status); }; } &&
16800 { ac_try='test -s conftest.$ac_objext'
16801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16802 (eval $ac_try) 2>&5
16804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16805 (exit $ac_status); }; }; then
16808 cat >conftest.$ac_ext <<_ACEOF
16811 cat confdefs.h >>conftest.$ac_ext
16812 cat >>conftest.$ac_ext <<_ACEOF
16813 /* end confdefs.h. */
16814 $ac_includes_default
16818 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
16825 rm -f conftest.$ac_objext
16826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16827 (eval $ac_compile) 2>conftest.er1
16829 grep -v '^ *+' conftest.er1 >conftest.err
16831 cat conftest.err >&5
16832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16833 (exit $ac_status); } &&
16834 { ac_try='test -z "$ac_c_werror_flag"
16835 || test ! -s conftest.err'
16836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16837 (eval $ac_try) 2>&5
16839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16840 (exit $ac_status); }; } &&
16841 { ac_try='test -s conftest.$ac_objext'
16842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16843 (eval $ac_try) 2>&5
16845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16846 (exit $ac_status); }; }; then
16847 ac_lo=$ac_mid; break
16849 echo "$as_me: failed program was:" >&5
16850 sed 's/^/| /' conftest.$ac_ext >&5
16852 ac_hi=`expr '(' $ac_mid ')' - 1`
16853 if test $ac_mid -le $ac_hi; then
16857 ac_mid=`expr 2 '*' $ac_mid`
16859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16862 echo "$as_me: failed program was:" >&5
16863 sed 's/^/| /' conftest.$ac_ext >&5
16867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16869 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16870 # Binary search between lo and hi bounds.
16871 while test "x$ac_lo" != "x$ac_hi"; do
16872 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16873 cat >conftest.$ac_ext <<_ACEOF
16876 cat confdefs.h >>conftest.$ac_ext
16877 cat >>conftest.$ac_ext <<_ACEOF
16878 /* end confdefs.h. */
16879 $ac_includes_default
16883 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
16890 rm -f conftest.$ac_objext
16891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16892 (eval $ac_compile) 2>conftest.er1
16894 grep -v '^ *+' conftest.er1 >conftest.err
16896 cat conftest.err >&5
16897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16898 (exit $ac_status); } &&
16899 { ac_try='test -z "$ac_c_werror_flag"
16900 || test ! -s conftest.err'
16901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16902 (eval $ac_try) 2>&5
16904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16905 (exit $ac_status); }; } &&
16906 { ac_try='test -s conftest.$ac_objext'
16907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16908 (eval $ac_try) 2>&5
16910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16911 (exit $ac_status); }; }; then
16914 echo "$as_me: failed program was:" >&5
16915 sed 's/^/| /' conftest.$ac_ext >&5
16917 ac_lo=`expr '(' $ac_mid ')' + 1`
16919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16922 ?*) ac_cv_sizeof_int_p=$ac_lo;;
16923 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
16924 See \`config.log' for more details." >&5
16925 echo "$as_me: error: cannot compute sizeof (int *), 77
16926 See \`config.log' for more details." >&2;}
16927 { (exit 1); exit 1; }; } ;;
16930 if test "$cross_compiling" = yes; then
16931 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16932 See \`config.log' for more details." >&5
16933 echo "$as_me: error: cannot run test program while cross compiling
16934 See \`config.log' for more details." >&2;}
16935 { (exit 1); exit 1; }; }
16937 cat >conftest.$ac_ext <<_ACEOF
16940 cat confdefs.h >>conftest.$ac_ext
16941 cat >>conftest.$ac_ext <<_ACEOF
16942 /* end confdefs.h. */
16943 $ac_includes_default
16944 long longval () { return (long) (sizeof (int *)); }
16945 unsigned long ulongval () { return (long) (sizeof (int *)); }
16947 #include <stdlib.h>
16952 FILE *f = fopen ("conftest.val", "w");
16955 if (((long) (sizeof (int *))) < 0)
16957 long i = longval ();
16958 if (i != ((long) (sizeof (int *))))
16960 fprintf (f, "%ld\n", i);
16964 unsigned long i = ulongval ();
16965 if (i != ((long) (sizeof (int *))))
16967 fprintf (f, "%lu\n", i);
16969 exit (ferror (f) || fclose (f) != 0);
16975 rm -f conftest$ac_exeext
16976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16977 (eval $ac_link) 2>&5
16979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16980 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16982 (eval $ac_try) 2>&5
16984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16985 (exit $ac_status); }; }; then
16986 ac_cv_sizeof_int_p=`cat conftest.val`
16988 echo "$as_me: program exited with status $ac_status" >&5
16989 echo "$as_me: failed program was:" >&5
16990 sed 's/^/| /' conftest.$ac_ext >&5
16992 ( exit $ac_status )
16993 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
16994 See \`config.log' for more details." >&5
16995 echo "$as_me: error: cannot compute sizeof (int *), 77
16996 See \`config.log' for more details." >&2;}
16997 { (exit 1); exit 1; }; }
16999 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17004 ac_cv_sizeof_int_p=0
17007 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
17008 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
17009 cat >>confdefs.h <<_ACEOF
17010 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
17015 # Check for sys/types.h types
17016 echo "$as_me:$LINENO: checking for u_int type" >&5
17017 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
17018 if test "${ac_cv_have_u_int+set}" = set; then
17019 echo $ECHO_N "(cached) $ECHO_C" >&6
17022 cat >conftest.$ac_ext <<_ACEOF
17025 cat confdefs.h >>conftest.$ac_ext
17026 cat >>conftest.$ac_ext <<_ACEOF
17027 /* end confdefs.h. */
17028 #include <sys/types.h>
17037 rm -f conftest.$ac_objext
17038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17039 (eval $ac_compile) 2>conftest.er1
17041 grep -v '^ *+' conftest.er1 >conftest.err
17043 cat conftest.err >&5
17044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17045 (exit $ac_status); } &&
17046 { ac_try='test -z "$ac_c_werror_flag"
17047 || test ! -s conftest.err'
17048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17049 (eval $ac_try) 2>&5
17051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17052 (exit $ac_status); }; } &&
17053 { ac_try='test -s conftest.$ac_objext'
17054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17055 (eval $ac_try) 2>&5
17057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17058 (exit $ac_status); }; }; then
17059 ac_cv_have_u_int="yes"
17061 echo "$as_me: failed program was:" >&5
17062 sed 's/^/| /' conftest.$ac_ext >&5
17064 ac_cv_have_u_int="no"
17067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17070 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
17071 echo "${ECHO_T}$ac_cv_have_u_int" >&6
17072 if test "x$ac_cv_have_u_int" = "xyes" ; then
17073 cat >>confdefs.h <<\_ACEOF
17074 #define HAVE_U_INT 1
17080 echo "$as_me:$LINENO: checking for intmax_t type" >&5
17081 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
17082 if test "${ac_cv_have_intmax_t+set}" = set; then
17083 echo $ECHO_N "(cached) $ECHO_C" >&6
17086 cat >conftest.$ac_ext <<_ACEOF
17089 cat confdefs.h >>conftest.$ac_ext
17090 cat >>conftest.$ac_ext <<_ACEOF
17091 /* end confdefs.h. */
17092 #include <sys/types.h>
17101 rm -f conftest.$ac_objext
17102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17103 (eval $ac_compile) 2>conftest.er1
17105 grep -v '^ *+' conftest.er1 >conftest.err
17107 cat conftest.err >&5
17108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17109 (exit $ac_status); } &&
17110 { ac_try='test -z "$ac_c_werror_flag"
17111 || test ! -s conftest.err'
17112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17113 (eval $ac_try) 2>&5
17115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17116 (exit $ac_status); }; } &&
17117 { ac_try='test -s conftest.$ac_objext'
17118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17119 (eval $ac_try) 2>&5
17121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17122 (exit $ac_status); }; }; then
17123 ac_cv_have_intmax_t="yes"
17125 echo "$as_me: failed program was:" >&5
17126 sed 's/^/| /' conftest.$ac_ext >&5
17129 cat >conftest.$ac_ext <<_ACEOF
17132 cat confdefs.h >>conftest.$ac_ext
17133 cat >>conftest.$ac_ext <<_ACEOF
17134 /* end confdefs.h. */
17135 #include <stdint.h>
17144 rm -f conftest.$ac_objext
17145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17146 (eval $ac_compile) 2>conftest.er1
17148 grep -v '^ *+' conftest.er1 >conftest.err
17150 cat conftest.err >&5
17151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17152 (exit $ac_status); } &&
17153 { ac_try='test -z "$ac_c_werror_flag"
17154 || test ! -s conftest.err'
17155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17156 (eval $ac_try) 2>&5
17158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17159 (exit $ac_status); }; } &&
17160 { ac_try='test -s conftest.$ac_objext'
17161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17162 (eval $ac_try) 2>&5
17164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17165 (exit $ac_status); }; }; then
17166 ac_cv_have_intmax_t="yes"
17168 echo "$as_me: failed program was:" >&5
17169 sed 's/^/| /' conftest.$ac_ext >&5
17171 ac_cv_have_intmax_t="no"
17174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17178 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17182 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
17183 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
17184 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
17185 cat >>confdefs.h <<\_ACEOF
17186 #define HAVE_INTMAX_T 1
17193 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
17194 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
17195 if test "${ac_cv_have_u_intmax_t+set}" = set; then
17196 echo $ECHO_N "(cached) $ECHO_C" >&6
17199 cat >conftest.$ac_ext <<_ACEOF
17202 cat confdefs.h >>conftest.$ac_ext
17203 cat >>conftest.$ac_ext <<_ACEOF
17204 /* end confdefs.h. */
17205 #include <sys/types.h>
17209 u_intmax_t a; a = 1;
17214 rm -f conftest.$ac_objext
17215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17216 (eval $ac_compile) 2>conftest.er1
17218 grep -v '^ *+' conftest.er1 >conftest.err
17220 cat conftest.err >&5
17221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17222 (exit $ac_status); } &&
17223 { ac_try='test -z "$ac_c_werror_flag"
17224 || test ! -s conftest.err'
17225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17226 (eval $ac_try) 2>&5
17228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17229 (exit $ac_status); }; } &&
17230 { ac_try='test -s conftest.$ac_objext'
17231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17232 (eval $ac_try) 2>&5
17234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17235 (exit $ac_status); }; }; then
17236 ac_cv_have_u_intmax_t="yes"
17238 echo "$as_me: failed program was:" >&5
17239 sed 's/^/| /' conftest.$ac_ext >&5
17242 cat >conftest.$ac_ext <<_ACEOF
17245 cat confdefs.h >>conftest.$ac_ext
17246 cat >>conftest.$ac_ext <<_ACEOF
17247 /* end confdefs.h. */
17248 #include <stdint.h>
17252 u_intmax_t a; a = 1;
17257 rm -f conftest.$ac_objext
17258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17259 (eval $ac_compile) 2>conftest.er1
17261 grep -v '^ *+' conftest.er1 >conftest.err
17263 cat conftest.err >&5
17264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17265 (exit $ac_status); } &&
17266 { ac_try='test -z "$ac_c_werror_flag"
17267 || test ! -s conftest.err'
17268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17269 (eval $ac_try) 2>&5
17271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17272 (exit $ac_status); }; } &&
17273 { ac_try='test -s conftest.$ac_objext'
17274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17275 (eval $ac_try) 2>&5
17277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17278 (exit $ac_status); }; }; then
17279 ac_cv_have_u_intmax_t="yes"
17281 echo "$as_me: failed program was:" >&5
17282 sed 's/^/| /' conftest.$ac_ext >&5
17284 ac_cv_have_u_intmax_t="no"
17287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17291 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17294 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
17295 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
17296 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
17297 cat >>confdefs.h <<\_ACEOF
17298 #define HAVE_U_INTMAX_T 1
17305 echo "$as_me:$LINENO: checking for intXX_t types" >&5
17306 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
17307 if test "${ac_cv_have_intxx_t+set}" = set; then
17308 echo $ECHO_N "(cached) $ECHO_C" >&6
17311 cat >conftest.$ac_ext <<_ACEOF
17314 cat confdefs.h >>conftest.$ac_ext
17315 cat >>conftest.$ac_ext <<_ACEOF
17316 /* end confdefs.h. */
17317 #include <sys/types.h>
17321 int8_t a; int16_t b; int32_t c; a = b = c = 1;
17326 rm -f conftest.$ac_objext
17327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17328 (eval $ac_compile) 2>conftest.er1
17330 grep -v '^ *+' conftest.er1 >conftest.err
17332 cat conftest.err >&5
17333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17334 (exit $ac_status); } &&
17335 { ac_try='test -z "$ac_c_werror_flag"
17336 || test ! -s conftest.err'
17337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17338 (eval $ac_try) 2>&5
17340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17341 (exit $ac_status); }; } &&
17342 { ac_try='test -s conftest.$ac_objext'
17343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17344 (eval $ac_try) 2>&5
17346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17347 (exit $ac_status); }; }; then
17348 ac_cv_have_intxx_t="yes"
17350 echo "$as_me: failed program was:" >&5
17351 sed 's/^/| /' conftest.$ac_ext >&5
17353 ac_cv_have_intxx_t="no"
17356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17359 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
17360 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
17361 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
17362 cat >>confdefs.h <<\_ACEOF
17363 #define HAVE_INTXX_T 1
17369 echo "$as_me:$LINENO: checking for int64_t type" >&5
17370 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
17371 if test "${ac_cv_have_int64_t+set}" = set; then
17372 echo $ECHO_N "(cached) $ECHO_C" >&6
17375 cat >conftest.$ac_ext <<_ACEOF
17378 cat confdefs.h >>conftest.$ac_ext
17379 cat >>conftest.$ac_ext <<_ACEOF
17380 /* end confdefs.h. */
17381 #include <sys/types.h>
17390 rm -f conftest.$ac_objext
17391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17392 (eval $ac_compile) 2>conftest.er1
17394 grep -v '^ *+' conftest.er1 >conftest.err
17396 cat conftest.err >&5
17397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17398 (exit $ac_status); } &&
17399 { ac_try='test -z "$ac_c_werror_flag"
17400 || test ! -s conftest.err'
17401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17402 (eval $ac_try) 2>&5
17404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17405 (exit $ac_status); }; } &&
17406 { ac_try='test -s conftest.$ac_objext'
17407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17408 (eval $ac_try) 2>&5
17410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17411 (exit $ac_status); }; }; then
17412 ac_cv_have_int64_t="yes"
17414 echo "$as_me: failed program was:" >&5
17415 sed 's/^/| /' conftest.$ac_ext >&5
17417 ac_cv_have_int64_t="no"
17420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17423 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
17424 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
17425 if test "x$ac_cv_have_int64_t" = "xyes" ; then
17426 cat >>confdefs.h <<\_ACEOF
17427 #define HAVE_INT64_T 1
17433 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
17434 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
17435 if test "${ac_cv_have_u_intxx_t+set}" = set; then
17436 echo $ECHO_N "(cached) $ECHO_C" >&6
17439 cat >conftest.$ac_ext <<_ACEOF
17442 cat confdefs.h >>conftest.$ac_ext
17443 cat >>conftest.$ac_ext <<_ACEOF
17444 /* end confdefs.h. */
17445 #include <sys/types.h>
17449 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
17454 rm -f conftest.$ac_objext
17455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17456 (eval $ac_compile) 2>conftest.er1
17458 grep -v '^ *+' conftest.er1 >conftest.err
17460 cat conftest.err >&5
17461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17462 (exit $ac_status); } &&
17463 { ac_try='test -z "$ac_c_werror_flag"
17464 || test ! -s conftest.err'
17465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17466 (eval $ac_try) 2>&5
17468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17469 (exit $ac_status); }; } &&
17470 { ac_try='test -s conftest.$ac_objext'
17471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17472 (eval $ac_try) 2>&5
17474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17475 (exit $ac_status); }; }; then
17476 ac_cv_have_u_intxx_t="yes"
17478 echo "$as_me: failed program was:" >&5
17479 sed 's/^/| /' conftest.$ac_ext >&5
17481 ac_cv_have_u_intxx_t="no"
17484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17487 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
17488 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
17489 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
17490 cat >>confdefs.h <<\_ACEOF
17491 #define HAVE_U_INTXX_T 1
17497 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
17498 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
17499 if test "${ac_cv_have_u_int64_t+set}" = set; then
17500 echo $ECHO_N "(cached) $ECHO_C" >&6
17503 cat >conftest.$ac_ext <<_ACEOF
17506 cat confdefs.h >>conftest.$ac_ext
17507 cat >>conftest.$ac_ext <<_ACEOF
17508 /* end confdefs.h. */
17509 #include <sys/types.h>
17513 u_int64_t a; a = 1;
17518 rm -f conftest.$ac_objext
17519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17520 (eval $ac_compile) 2>conftest.er1
17522 grep -v '^ *+' conftest.er1 >conftest.err
17524 cat conftest.err >&5
17525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17526 (exit $ac_status); } &&
17527 { ac_try='test -z "$ac_c_werror_flag"
17528 || test ! -s conftest.err'
17529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17530 (eval $ac_try) 2>&5
17532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17533 (exit $ac_status); }; } &&
17534 { ac_try='test -s conftest.$ac_objext'
17535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17536 (eval $ac_try) 2>&5
17538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17539 (exit $ac_status); }; }; then
17540 ac_cv_have_u_int64_t="yes"
17542 echo "$as_me: failed program was:" >&5
17543 sed 's/^/| /' conftest.$ac_ext >&5
17545 ac_cv_have_u_int64_t="no"
17548 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17551 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
17552 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
17553 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
17554 cat >>confdefs.h <<\_ACEOF
17555 #define HAVE_U_INT64_T 1
17561 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
17562 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
17564 echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
17565 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
17566 cat >conftest.$ac_ext <<_ACEOF
17569 cat confdefs.h >>conftest.$ac_ext
17570 cat >>conftest.$ac_ext <<_ACEOF
17571 /* end confdefs.h. */
17572 #include <sys/bitypes.h>
17576 int8_t a; int16_t b; int32_t c;
17577 u_int8_t e; u_int16_t f; u_int32_t g;
17578 a = b = c = e = f = g = 1;
17583 rm -f conftest.$ac_objext
17584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17585 (eval $ac_compile) 2>conftest.er1
17587 grep -v '^ *+' conftest.er1 >conftest.err
17589 cat conftest.err >&5
17590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17591 (exit $ac_status); } &&
17592 { ac_try='test -z "$ac_c_werror_flag"
17593 || test ! -s conftest.err'
17594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17595 (eval $ac_try) 2>&5
17597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17598 (exit $ac_status); }; } &&
17599 { ac_try='test -s conftest.$ac_objext'
17600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17601 (eval $ac_try) 2>&5
17603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17604 (exit $ac_status); }; }; then
17605 cat >>confdefs.h <<\_ACEOF
17606 #define HAVE_U_INTXX_T 1
17609 cat >>confdefs.h <<\_ACEOF
17610 #define HAVE_INTXX_T 1
17613 cat >>confdefs.h <<\_ACEOF
17614 #define HAVE_SYS_BITYPES_H 1
17617 echo "$as_me:$LINENO: result: yes" >&5
17618 echo "${ECHO_T}yes" >&6
17620 echo "$as_me: failed program was:" >&5
17621 sed 's/^/| /' conftest.$ac_ext >&5
17623 echo "$as_me:$LINENO: result: no" >&5
17624 echo "${ECHO_T}no" >&6
17627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17630 if test -z "$have_u_intxx_t" ; then
17631 echo "$as_me:$LINENO: checking for uintXX_t types" >&5
17632 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
17633 if test "${ac_cv_have_uintxx_t+set}" = set; then
17634 echo $ECHO_N "(cached) $ECHO_C" >&6
17637 cat >conftest.$ac_ext <<_ACEOF
17640 cat confdefs.h >>conftest.$ac_ext
17641 cat >>conftest.$ac_ext <<_ACEOF
17642 /* end confdefs.h. */
17643 #include <sys/types.h>
17647 uint8_t a; uint16_t b;
17648 uint32_t c; a = b = c = 1;
17653 rm -f conftest.$ac_objext
17654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17655 (eval $ac_compile) 2>conftest.er1
17657 grep -v '^ *+' conftest.er1 >conftest.err
17659 cat conftest.err >&5
17660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17661 (exit $ac_status); } &&
17662 { ac_try='test -z "$ac_c_werror_flag"
17663 || test ! -s conftest.err'
17664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17665 (eval $ac_try) 2>&5
17667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17668 (exit $ac_status); }; } &&
17669 { ac_try='test -s conftest.$ac_objext'
17670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17671 (eval $ac_try) 2>&5
17673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17674 (exit $ac_status); }; }; then
17675 ac_cv_have_uintxx_t="yes"
17677 echo "$as_me: failed program was:" >&5
17678 sed 's/^/| /' conftest.$ac_ext >&5
17680 ac_cv_have_uintxx_t="no"
17683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17686 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
17687 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
17688 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
17689 cat >>confdefs.h <<\_ACEOF
17690 #define HAVE_UINTXX_T 1
17696 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
17697 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
17699 echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
17700 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
17701 cat >conftest.$ac_ext <<_ACEOF
17704 cat confdefs.h >>conftest.$ac_ext
17705 cat >>conftest.$ac_ext <<_ACEOF
17706 /* end confdefs.h. */
17707 #include <sys/bitypes.h>
17711 int64_t a; u_int64_t b;
17717 rm -f conftest.$ac_objext
17718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17719 (eval $ac_compile) 2>conftest.er1
17721 grep -v '^ *+' conftest.er1 >conftest.err
17723 cat conftest.err >&5
17724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17725 (exit $ac_status); } &&
17726 { ac_try='test -z "$ac_c_werror_flag"
17727 || test ! -s conftest.err'
17728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17729 (eval $ac_try) 2>&5
17731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17732 (exit $ac_status); }; } &&
17733 { ac_try='test -s conftest.$ac_objext'
17734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17735 (eval $ac_try) 2>&5
17737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17738 (exit $ac_status); }; }; then
17739 cat >>confdefs.h <<\_ACEOF
17740 #define HAVE_U_INT64_T 1
17743 cat >>confdefs.h <<\_ACEOF
17744 #define HAVE_INT64_T 1
17747 echo "$as_me:$LINENO: result: yes" >&5
17748 echo "${ECHO_T}yes" >&6
17750 echo "$as_me: failed program was:" >&5
17751 sed 's/^/| /' conftest.$ac_ext >&5
17753 echo "$as_me:$LINENO: result: no" >&5
17754 echo "${ECHO_T}no" >&6
17757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17760 if (test -z "$have_uintxx_t" && \
17761 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
17763 echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
17764 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
17765 cat >conftest.$ac_ext <<_ACEOF
17768 cat confdefs.h >>conftest.$ac_ext
17769 cat >>conftest.$ac_ext <<_ACEOF
17770 /* end confdefs.h. */
17771 #include <sys/bitypes.h>
17775 uint8_t a; uint16_t b;
17776 uint32_t c; a = b = c = 1;
17781 rm -f conftest.$ac_objext
17782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17783 (eval $ac_compile) 2>conftest.er1
17785 grep -v '^ *+' conftest.er1 >conftest.err
17787 cat conftest.err >&5
17788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17789 (exit $ac_status); } &&
17790 { ac_try='test -z "$ac_c_werror_flag"
17791 || test ! -s conftest.err'
17792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17793 (eval $ac_try) 2>&5
17795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17796 (exit $ac_status); }; } &&
17797 { ac_try='test -s conftest.$ac_objext'
17798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17799 (eval $ac_try) 2>&5
17801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17802 (exit $ac_status); }; }; then
17803 cat >>confdefs.h <<\_ACEOF
17804 #define HAVE_UINTXX_T 1
17807 echo "$as_me:$LINENO: result: yes" >&5
17808 echo "${ECHO_T}yes" >&6
17810 echo "$as_me: failed program was:" >&5
17811 sed 's/^/| /' conftest.$ac_ext >&5
17813 echo "$as_me:$LINENO: result: no" >&5
17814 echo "${ECHO_T}no" >&6
17817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17853 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17854 echo "$as_me:$LINENO: checking for $ac_func" >&5
17855 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17856 if eval "test \"\${$as_ac_var+set}\" = set"; then
17857 echo $ECHO_N "(cached) $ECHO_C" >&6
17859 cat >conftest.$ac_ext <<_ACEOF
17862 cat confdefs.h >>conftest.$ac_ext
17863 cat >>conftest.$ac_ext <<_ACEOF
17864 /* end confdefs.h. */
17865 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17866 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17867 #define $ac_func innocuous_$ac_func
17869 /* System header to define __stub macros and hopefully few prototypes,
17870 which can conflict with char $ac_func (); below.
17871 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17872 <limits.h> exists even on freestanding compilers. */
17875 # include <limits.h>
17877 # include <assert.h>
17882 /* Override any gcc2 internal prototype to avoid an error. */
17887 /* We use char because int might match the return type of a gcc2
17888 builtin and then its argument prototype would still apply. */
17890 /* The GNU C library defines this for functions which it implements
17891 to always fail with ENOSYS. Some functions are actually named
17892 something starting with __ and the normal name is an alias. */
17893 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17896 char (*f) () = $ac_func;
17905 return f != $ac_func;
17910 rm -f conftest.$ac_objext conftest$ac_exeext
17911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17912 (eval $ac_link) 2>conftest.er1
17914 grep -v '^ *+' conftest.er1 >conftest.err
17916 cat conftest.err >&5
17917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17918 (exit $ac_status); } &&
17919 { ac_try='test -z "$ac_c_werror_flag"
17920 || test ! -s conftest.err'
17921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17922 (eval $ac_try) 2>&5
17924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17925 (exit $ac_status); }; } &&
17926 { ac_try='test -s conftest$ac_exeext'
17927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17928 (eval $ac_try) 2>&5
17930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17931 (exit $ac_status); }; }; then
17932 eval "$as_ac_var=yes"
17934 echo "$as_me: failed program was:" >&5
17935 sed 's/^/| /' conftest.$ac_ext >&5
17937 eval "$as_ac_var=no"
17939 rm -f conftest.err conftest.$ac_objext \
17940 conftest$ac_exeext conftest.$ac_ext
17942 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17943 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17944 if test `eval echo '${'$as_ac_var'}'` = yes; then
17945 cat >>confdefs.h <<_ACEOF
17946 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17950 echo 'configure: cannot find needed function.'; exit 1
17957 for ac_func in fchdir
17959 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17960 echo "$as_me:$LINENO: checking for $ac_func" >&5
17961 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17962 if eval "test \"\${$as_ac_var+set}\" = set"; then
17963 echo $ECHO_N "(cached) $ECHO_C" >&6
17965 cat >conftest.$ac_ext <<_ACEOF
17968 cat confdefs.h >>conftest.$ac_ext
17969 cat >>conftest.$ac_ext <<_ACEOF
17970 /* end confdefs.h. */
17971 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17972 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17973 #define $ac_func innocuous_$ac_func
17975 /* System header to define __stub macros and hopefully few prototypes,
17976 which can conflict with char $ac_func (); below.
17977 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17978 <limits.h> exists even on freestanding compilers. */
17981 # include <limits.h>
17983 # include <assert.h>
17988 /* Override any gcc2 internal prototype to avoid an error. */
17993 /* We use char because int might match the return type of a gcc2
17994 builtin and then its argument prototype would still apply. */
17996 /* The GNU C library defines this for functions which it implements
17997 to always fail with ENOSYS. Some functions are actually named
17998 something starting with __ and the normal name is an alias. */
17999 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18002 char (*f) () = $ac_func;
18011 return f != $ac_func;
18016 rm -f conftest.$ac_objext conftest$ac_exeext
18017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18018 (eval $ac_link) 2>conftest.er1
18020 grep -v '^ *+' conftest.er1 >conftest.err
18022 cat conftest.err >&5
18023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18024 (exit $ac_status); } &&
18025 { ac_try='test -z "$ac_c_werror_flag"
18026 || test ! -s conftest.err'
18027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18028 (eval $ac_try) 2>&5
18030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18031 (exit $ac_status); }; } &&
18032 { ac_try='test -s conftest$ac_exeext'
18033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18034 (eval $ac_try) 2>&5
18036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18037 (exit $ac_status); }; }; then
18038 eval "$as_ac_var=yes"
18040 echo "$as_me: failed program was:" >&5
18041 sed 's/^/| /' conftest.$ac_ext >&5
18043 eval "$as_ac_var=no"
18045 rm -f conftest.err conftest.$ac_objext \
18046 conftest$ac_exeext conftest.$ac_ext
18048 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18049 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18050 if test `eval echo '${'$as_ac_var'}'` = yes; then
18051 cat >>confdefs.h <<_ACEOF
18052 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18054 cat >>confdefs.h <<\_ACEOF
18055 #define HAVE_FCHDIR 1
18062 for ac_func in strtoll
18064 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18065 echo "$as_me:$LINENO: checking for $ac_func" >&5
18066 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18067 if eval "test \"\${$as_ac_var+set}\" = set"; then
18068 echo $ECHO_N "(cached) $ECHO_C" >&6
18070 cat >conftest.$ac_ext <<_ACEOF
18073 cat confdefs.h >>conftest.$ac_ext
18074 cat >>conftest.$ac_ext <<_ACEOF
18075 /* end confdefs.h. */
18076 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18077 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18078 #define $ac_func innocuous_$ac_func
18080 /* System header to define __stub macros and hopefully few prototypes,
18081 which can conflict with char $ac_func (); below.
18082 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18083 <limits.h> exists even on freestanding compilers. */
18086 # include <limits.h>
18088 # include <assert.h>
18093 /* Override any gcc2 internal prototype to avoid an error. */
18098 /* We use char because int might match the return type of a gcc2
18099 builtin and then its argument prototype would still apply. */
18101 /* The GNU C library defines this for functions which it implements
18102 to always fail with ENOSYS. Some functions are actually named
18103 something starting with __ and the normal name is an alias. */
18104 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18107 char (*f) () = $ac_func;
18116 return f != $ac_func;
18121 rm -f conftest.$ac_objext conftest$ac_exeext
18122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18123 (eval $ac_link) 2>conftest.er1
18125 grep -v '^ *+' conftest.er1 >conftest.err
18127 cat conftest.err >&5
18128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18129 (exit $ac_status); } &&
18130 { ac_try='test -z "$ac_c_werror_flag"
18131 || test ! -s conftest.err'
18132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18133 (eval $ac_try) 2>&5
18135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18136 (exit $ac_status); }; } &&
18137 { ac_try='test -s conftest$ac_exeext'
18138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18139 (eval $ac_try) 2>&5
18141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18142 (exit $ac_status); }; }; then
18143 eval "$as_ac_var=yes"
18145 echo "$as_me: failed program was:" >&5
18146 sed 's/^/| /' conftest.$ac_ext >&5
18148 eval "$as_ac_var=no"
18150 rm -f conftest.err conftest.$ac_objext \
18151 conftest$ac_exeext conftest.$ac_ext
18153 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18154 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18155 if test `eval echo '${'$as_ac_var'}'` = yes; then
18156 cat >>confdefs.h <<_ACEOF
18157 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18159 cat >>confdefs.h <<\_ACEOF
18160 #define HAVE_STRTOLL 1
18168 for ac_func in chflags
18170 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18171 echo "$as_me:$LINENO: checking for $ac_func" >&5
18172 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18173 if eval "test \"\${$as_ac_var+set}\" = set"; then
18174 echo $ECHO_N "(cached) $ECHO_C" >&6
18176 cat >conftest.$ac_ext <<_ACEOF
18179 cat confdefs.h >>conftest.$ac_ext
18180 cat >>conftest.$ac_ext <<_ACEOF
18181 /* end confdefs.h. */
18182 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18183 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18184 #define $ac_func innocuous_$ac_func
18186 /* System header to define __stub macros and hopefully few prototypes,
18187 which can conflict with char $ac_func (); below.
18188 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18189 <limits.h> exists even on freestanding compilers. */
18192 # include <limits.h>
18194 # include <assert.h>
18199 /* Override any gcc2 internal prototype to avoid an error. */
18204 /* We use char because int might match the return type of a gcc2
18205 builtin and then its argument prototype would still apply. */
18207 /* The GNU C library defines this for functions which it implements
18208 to always fail with ENOSYS. Some functions are actually named
18209 something starting with __ and the normal name is an alias. */
18210 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18213 char (*f) () = $ac_func;
18222 return f != $ac_func;
18227 rm -f conftest.$ac_objext conftest$ac_exeext
18228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18229 (eval $ac_link) 2>conftest.er1
18231 grep -v '^ *+' conftest.er1 >conftest.err
18233 cat conftest.err >&5
18234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18235 (exit $ac_status); } &&
18236 { ac_try='test -z "$ac_c_werror_flag"
18237 || test ! -s conftest.err'
18238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18239 (eval $ac_try) 2>&5
18241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18242 (exit $ac_status); }; } &&
18243 { ac_try='test -s conftest$ac_exeext'
18244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18245 (eval $ac_try) 2>&5
18247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18248 (exit $ac_status); }; }; then
18249 eval "$as_ac_var=yes"
18251 echo "$as_me: failed program was:" >&5
18252 sed 's/^/| /' conftest.$ac_ext >&5
18254 eval "$as_ac_var=no"
18256 rm -f conftest.err conftest.$ac_objext \
18257 conftest$ac_exeext conftest.$ac_ext
18259 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18260 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18261 if test `eval echo '${'$as_ac_var'}'` = yes; then
18262 cat >>confdefs.h <<_ACEOF
18263 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18274 for ac_func in snprintf vsnprintf gethostid fseeko
18276 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18277 echo "$as_me:$LINENO: checking for $ac_func" >&5
18278 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18279 if eval "test \"\${$as_ac_var+set}\" = set"; then
18280 echo $ECHO_N "(cached) $ECHO_C" >&6
18282 cat >conftest.$ac_ext <<_ACEOF
18285 cat confdefs.h >>conftest.$ac_ext
18286 cat >>conftest.$ac_ext <<_ACEOF
18287 /* end confdefs.h. */
18288 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18289 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18290 #define $ac_func innocuous_$ac_func
18292 /* System header to define __stub macros and hopefully few prototypes,
18293 which can conflict with char $ac_func (); below.
18294 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18295 <limits.h> exists even on freestanding compilers. */
18298 # include <limits.h>
18300 # include <assert.h>
18305 /* Override any gcc2 internal prototype to avoid an error. */
18310 /* We use char because int might match the return type of a gcc2
18311 builtin and then its argument prototype would still apply. */
18313 /* The GNU C library defines this for functions which it implements
18314 to always fail with ENOSYS. Some functions are actually named
18315 something starting with __ and the normal name is an alias. */
18316 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18319 char (*f) () = $ac_func;
18328 return f != $ac_func;
18333 rm -f conftest.$ac_objext conftest$ac_exeext
18334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18335 (eval $ac_link) 2>conftest.er1
18337 grep -v '^ *+' conftest.er1 >conftest.err
18339 cat conftest.err >&5
18340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18341 (exit $ac_status); } &&
18342 { ac_try='test -z "$ac_c_werror_flag"
18343 || test ! -s conftest.err'
18344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18345 (eval $ac_try) 2>&5
18347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18348 (exit $ac_status); }; } &&
18349 { ac_try='test -s conftest$ac_exeext'
18350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18351 (eval $ac_try) 2>&5
18353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18354 (exit $ac_status); }; }; then
18355 eval "$as_ac_var=yes"
18357 echo "$as_me: failed program was:" >&5
18358 sed 's/^/| /' conftest.$ac_ext >&5
18360 eval "$as_ac_var=no"
18362 rm -f conftest.err conftest.$ac_objext \
18363 conftest$ac_exeext conftest.$ac_ext
18365 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18366 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18367 if test `eval echo '${'$as_ac_var'}'` = yes; then
18368 cat >>confdefs.h <<_ACEOF
18369 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18380 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
18382 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18383 echo "$as_me:$LINENO: checking for $ac_func" >&5
18384 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18385 if eval "test \"\${$as_ac_var+set}\" = set"; then
18386 echo $ECHO_N "(cached) $ECHO_C" >&6
18388 cat >conftest.$ac_ext <<_ACEOF
18391 cat confdefs.h >>conftest.$ac_ext
18392 cat >>conftest.$ac_ext <<_ACEOF
18393 /* end confdefs.h. */
18394 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18395 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18396 #define $ac_func innocuous_$ac_func
18398 /* System header to define __stub macros and hopefully few prototypes,
18399 which can conflict with char $ac_func (); below.
18400 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18401 <limits.h> exists even on freestanding compilers. */
18404 # include <limits.h>
18406 # include <assert.h>
18411 /* Override any gcc2 internal prototype to avoid an error. */
18416 /* We use char because int might match the return type of a gcc2
18417 builtin and then its argument prototype would still apply. */
18419 /* The GNU C library defines this for functions which it implements
18420 to always fail with ENOSYS. Some functions are actually named
18421 something starting with __ and the normal name is an alias. */
18422 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18425 char (*f) () = $ac_func;
18434 return f != $ac_func;
18439 rm -f conftest.$ac_objext conftest$ac_exeext
18440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18441 (eval $ac_link) 2>conftest.er1
18443 grep -v '^ *+' conftest.er1 >conftest.err
18445 cat conftest.err >&5
18446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18447 (exit $ac_status); } &&
18448 { ac_try='test -z "$ac_c_werror_flag"
18449 || test ! -s conftest.err'
18450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18451 (eval $ac_try) 2>&5
18453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18454 (exit $ac_status); }; } &&
18455 { ac_try='test -s conftest$ac_exeext'
18456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18457 (eval $ac_try) 2>&5
18459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18460 (exit $ac_status); }; }; then
18461 eval "$as_ac_var=yes"
18463 echo "$as_me: failed program was:" >&5
18464 sed 's/^/| /' conftest.$ac_ext >&5
18466 eval "$as_ac_var=no"
18468 rm -f conftest.err conftest.$ac_objext \
18469 conftest$ac_exeext conftest.$ac_ext
18471 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18472 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18473 if test `eval echo '${'$as_ac_var'}'` = yes; then
18474 cat >>confdefs.h <<_ACEOF
18475 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18482 # If resolver functions are not in libc check for -lnsl or -lresolv.
18483 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
18484 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
18485 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
18486 echo $ECHO_N "(cached) $ECHO_C" >&6
18488 cat >conftest.$ac_ext <<_ACEOF
18491 cat confdefs.h >>conftest.$ac_ext
18492 cat >>conftest.$ac_ext <<_ACEOF
18493 /* end confdefs.h. */
18494 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
18495 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18496 #define gethostbyname_r innocuous_gethostbyname_r
18498 /* System header to define __stub macros and hopefully few prototypes,
18499 which can conflict with char gethostbyname_r (); below.
18500 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18501 <limits.h> exists even on freestanding compilers. */
18504 # include <limits.h>
18506 # include <assert.h>
18509 #undef gethostbyname_r
18511 /* Override any gcc2 internal prototype to avoid an error. */
18516 /* We use char because int might match the return type of a gcc2
18517 builtin and then its argument prototype would still apply. */
18518 char gethostbyname_r ();
18519 /* The GNU C library defines this for functions which it implements
18520 to always fail with ENOSYS. Some functions are actually named
18521 something starting with __ and the normal name is an alias. */
18522 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
18525 char (*f) () = gethostbyname_r;
18534 return f != gethostbyname_r;
18539 rm -f conftest.$ac_objext conftest$ac_exeext
18540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18541 (eval $ac_link) 2>conftest.er1
18543 grep -v '^ *+' conftest.er1 >conftest.err
18545 cat conftest.err >&5
18546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18547 (exit $ac_status); } &&
18548 { ac_try='test -z "$ac_c_werror_flag"
18549 || test ! -s conftest.err'
18550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18551 (eval $ac_try) 2>&5
18553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18554 (exit $ac_status); }; } &&
18555 { ac_try='test -s conftest$ac_exeext'
18556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18557 (eval $ac_try) 2>&5
18559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18560 (exit $ac_status); }; }; then
18561 ac_cv_func_gethostbyname_r=yes
18563 echo "$as_me: failed program was:" >&5
18564 sed 's/^/| /' conftest.$ac_ext >&5
18566 ac_cv_func_gethostbyname_r=no
18568 rm -f conftest.err conftest.$ac_objext \
18569 conftest$ac_exeext conftest.$ac_ext
18571 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
18572 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
18573 if test $ac_cv_func_gethostbyname_r = yes; then
18574 echo "$as_me:$LINENO: result: using libc's resolver" >&5
18575 echo "${ECHO_T}using libc's resolver" >&6
18578 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
18579 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
18580 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
18581 echo $ECHO_N "(cached) $ECHO_C" >&6
18583 ac_check_lib_save_LIBS=$LIBS
18585 cat >conftest.$ac_ext <<_ACEOF
18588 cat confdefs.h >>conftest.$ac_ext
18589 cat >>conftest.$ac_ext <<_ACEOF
18590 /* end confdefs.h. */
18592 /* Override any gcc2 internal prototype to avoid an error. */
18596 /* We use char because int might match the return type of a gcc2
18597 builtin and then its argument prototype would still apply. */
18598 char gethostbyname_r ();
18602 gethostbyname_r ();
18607 rm -f conftest.$ac_objext conftest$ac_exeext
18608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18609 (eval $ac_link) 2>conftest.er1
18611 grep -v '^ *+' conftest.er1 >conftest.err
18613 cat conftest.err >&5
18614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18615 (exit $ac_status); } &&
18616 { ac_try='test -z "$ac_c_werror_flag"
18617 || test ! -s conftest.err'
18618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18619 (eval $ac_try) 2>&5
18621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18622 (exit $ac_status); }; } &&
18623 { ac_try='test -s conftest$ac_exeext'
18624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18625 (eval $ac_try) 2>&5
18627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18628 (exit $ac_status); }; }; then
18629 ac_cv_lib_nsl_gethostbyname_r=yes
18631 echo "$as_me: failed program was:" >&5
18632 sed 's/^/| /' conftest.$ac_ext >&5
18634 ac_cv_lib_nsl_gethostbyname_r=no
18636 rm -f conftest.err conftest.$ac_objext \
18637 conftest$ac_exeext conftest.$ac_ext
18638 LIBS=$ac_check_lib_save_LIBS
18640 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
18641 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
18642 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
18643 cat >>confdefs.h <<_ACEOF
18644 #define HAVE_LIBNSL 1
18652 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
18653 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
18654 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
18655 echo $ECHO_N "(cached) $ECHO_C" >&6
18657 ac_check_lib_save_LIBS=$LIBS
18658 LIBS="-lresolv $LIBS"
18659 cat >conftest.$ac_ext <<_ACEOF
18662 cat confdefs.h >>conftest.$ac_ext
18663 cat >>conftest.$ac_ext <<_ACEOF
18664 /* end confdefs.h. */
18666 /* Override any gcc2 internal prototype to avoid an error. */
18670 /* We use char because int might match the return type of a gcc2
18671 builtin and then its argument prototype would still apply. */
18672 char gethostbyname_r ();
18676 gethostbyname_r ();
18681 rm -f conftest.$ac_objext conftest$ac_exeext
18682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18683 (eval $ac_link) 2>conftest.er1
18685 grep -v '^ *+' conftest.er1 >conftest.err
18687 cat conftest.err >&5
18688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18689 (exit $ac_status); } &&
18690 { ac_try='test -z "$ac_c_werror_flag"
18691 || test ! -s conftest.err'
18692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18693 (eval $ac_try) 2>&5
18695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18696 (exit $ac_status); }; } &&
18697 { ac_try='test -s conftest$ac_exeext'
18698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18699 (eval $ac_try) 2>&5
18701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18702 (exit $ac_status); }; }; then
18703 ac_cv_lib_resolv_gethostbyname_r=yes
18705 echo "$as_me: failed program was:" >&5
18706 sed 's/^/| /' conftest.$ac_ext >&5
18708 ac_cv_lib_resolv_gethostbyname_r=no
18710 rm -f conftest.err conftest.$ac_objext \
18711 conftest$ac_exeext conftest.$ac_ext
18712 LIBS=$ac_check_lib_save_LIBS
18714 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
18715 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
18716 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
18717 cat >>confdefs.h <<_ACEOF
18718 #define HAVE_LIBRESOLV 1
18721 LIBS="-lresolv $LIBS"
18731 for ac_func in inet_pton
18733 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18734 echo "$as_me:$LINENO: checking for $ac_func" >&5
18735 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18736 if eval "test \"\${$as_ac_var+set}\" = set"; then
18737 echo $ECHO_N "(cached) $ECHO_C" >&6
18739 cat >conftest.$ac_ext <<_ACEOF
18742 cat confdefs.h >>conftest.$ac_ext
18743 cat >>conftest.$ac_ext <<_ACEOF
18744 /* end confdefs.h. */
18745 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18746 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18747 #define $ac_func innocuous_$ac_func
18749 /* System header to define __stub macros and hopefully few prototypes,
18750 which can conflict with char $ac_func (); below.
18751 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18752 <limits.h> exists even on freestanding compilers. */
18755 # include <limits.h>
18757 # include <assert.h>
18762 /* Override any gcc2 internal prototype to avoid an error. */
18767 /* We use char because int might match the return type of a gcc2
18768 builtin and then its argument prototype would still apply. */
18770 /* The GNU C library defines this for functions which it implements
18771 to always fail with ENOSYS. Some functions are actually named
18772 something starting with __ and the normal name is an alias. */
18773 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18776 char (*f) () = $ac_func;
18785 return f != $ac_func;
18790 rm -f conftest.$ac_objext conftest$ac_exeext
18791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18792 (eval $ac_link) 2>conftest.er1
18794 grep -v '^ *+' conftest.er1 >conftest.err
18796 cat conftest.err >&5
18797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18798 (exit $ac_status); } &&
18799 { ac_try='test -z "$ac_c_werror_flag"
18800 || test ! -s conftest.err'
18801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18802 (eval $ac_try) 2>&5
18804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18805 (exit $ac_status); }; } &&
18806 { ac_try='test -s conftest$ac_exeext'
18807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18808 (eval $ac_try) 2>&5
18810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18811 (exit $ac_status); }; }; then
18812 eval "$as_ac_var=yes"
18814 echo "$as_me: failed program was:" >&5
18815 sed 's/^/| /' conftest.$ac_ext >&5
18817 eval "$as_ac_var=no"
18819 rm -f conftest.err conftest.$ac_objext \
18820 conftest$ac_exeext conftest.$ac_ext
18822 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18823 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18824 if test `eval echo '${'$as_ac_var'}'` = yes; then
18825 cat >>confdefs.h <<_ACEOF
18826 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18828 cat >>confdefs.h <<\_ACEOF
18829 #define HAVE_INET_PTON 1
18836 for ac_func in inet_ntop
18838 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18839 echo "$as_me:$LINENO: checking for $ac_func" >&5
18840 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18841 if eval "test \"\${$as_ac_var+set}\" = set"; then
18842 echo $ECHO_N "(cached) $ECHO_C" >&6
18844 cat >conftest.$ac_ext <<_ACEOF
18847 cat confdefs.h >>conftest.$ac_ext
18848 cat >>conftest.$ac_ext <<_ACEOF
18849 /* end confdefs.h. */
18850 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18851 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18852 #define $ac_func innocuous_$ac_func
18854 /* System header to define __stub macros and hopefully few prototypes,
18855 which can conflict with char $ac_func (); below.
18856 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18857 <limits.h> exists even on freestanding compilers. */
18860 # include <limits.h>
18862 # include <assert.h>
18867 /* Override any gcc2 internal prototype to avoid an error. */
18872 /* We use char because int might match the return type of a gcc2
18873 builtin and then its argument prototype would still apply. */
18875 /* The GNU C library defines this for functions which it implements
18876 to always fail with ENOSYS. Some functions are actually named
18877 something starting with __ and the normal name is an alias. */
18878 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18881 char (*f) () = $ac_func;
18890 return f != $ac_func;
18895 rm -f conftest.$ac_objext conftest$ac_exeext
18896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18897 (eval $ac_link) 2>conftest.er1
18899 grep -v '^ *+' conftest.er1 >conftest.err
18901 cat conftest.err >&5
18902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18903 (exit $ac_status); } &&
18904 { ac_try='test -z "$ac_c_werror_flag"
18905 || test ! -s conftest.err'
18906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18907 (eval $ac_try) 2>&5
18909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18910 (exit $ac_status); }; } &&
18911 { ac_try='test -s conftest$ac_exeext'
18912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18913 (eval $ac_try) 2>&5
18915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18916 (exit $ac_status); }; }; then
18917 eval "$as_ac_var=yes"
18919 echo "$as_me: failed program was:" >&5
18920 sed 's/^/| /' conftest.$ac_ext >&5
18922 eval "$as_ac_var=no"
18924 rm -f conftest.err conftest.$ac_objext \
18925 conftest$ac_exeext conftest.$ac_ext
18927 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18928 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18929 if test `eval echo '${'$as_ac_var'}'` = yes; then
18930 cat >>confdefs.h <<_ACEOF
18931 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18933 cat >>confdefs.h <<\_ACEOF
18934 #define HAVE_INET_NTOP 1
18941 for ac_func in gethostbyname2
18943 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18944 echo "$as_me:$LINENO: checking for $ac_func" >&5
18945 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18946 if eval "test \"\${$as_ac_var+set}\" = set"; then
18947 echo $ECHO_N "(cached) $ECHO_C" >&6
18949 cat >conftest.$ac_ext <<_ACEOF
18952 cat confdefs.h >>conftest.$ac_ext
18953 cat >>conftest.$ac_ext <<_ACEOF
18954 /* end confdefs.h. */
18955 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18956 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18957 #define $ac_func innocuous_$ac_func
18959 /* System header to define __stub macros and hopefully few prototypes,
18960 which can conflict with char $ac_func (); below.
18961 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18962 <limits.h> exists even on freestanding compilers. */
18965 # include <limits.h>
18967 # include <assert.h>
18972 /* Override any gcc2 internal prototype to avoid an error. */
18977 /* We use char because int might match the return type of a gcc2
18978 builtin and then its argument prototype would still apply. */
18980 /* The GNU C library defines this for functions which it implements
18981 to always fail with ENOSYS. Some functions are actually named
18982 something starting with __ and the normal name is an alias. */
18983 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18986 char (*f) () = $ac_func;
18995 return f != $ac_func;
19000 rm -f conftest.$ac_objext conftest$ac_exeext
19001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19002 (eval $ac_link) 2>conftest.er1
19004 grep -v '^ *+' conftest.er1 >conftest.err
19006 cat conftest.err >&5
19007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19008 (exit $ac_status); } &&
19009 { ac_try='test -z "$ac_c_werror_flag"
19010 || test ! -s conftest.err'
19011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19012 (eval $ac_try) 2>&5
19014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19015 (exit $ac_status); }; } &&
19016 { ac_try='test -s conftest$ac_exeext'
19017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19018 (eval $ac_try) 2>&5
19020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19021 (exit $ac_status); }; }; then
19022 eval "$as_ac_var=yes"
19024 echo "$as_me: failed program was:" >&5
19025 sed 's/^/| /' conftest.$ac_ext >&5
19027 eval "$as_ac_var=no"
19029 rm -f conftest.err conftest.$ac_objext \
19030 conftest$ac_exeext conftest.$ac_ext
19032 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19033 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19034 if test `eval echo '${'$as_ac_var'}'` = yes; then
19035 cat >>confdefs.h <<_ACEOF
19036 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19038 cat >>confdefs.h <<\_ACEOF
19039 #define HAVE_GETHOSTBYNAME2 1
19046 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
19047 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
19048 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
19049 echo $ECHO_N "(cached) $ECHO_C" >&6
19051 cat >conftest.$ac_ext <<_ACEOF
19054 cat confdefs.h >>conftest.$ac_ext
19055 cat >>conftest.$ac_ext <<_ACEOF
19056 /* end confdefs.h. */
19057 #include <sys/socket.h>
19061 struct sockaddr s; s.sa_len;
19066 rm -f conftest.$ac_objext
19067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19068 (eval $ac_compile) 2>conftest.er1
19070 grep -v '^ *+' conftest.er1 >conftest.err
19072 cat conftest.err >&5
19073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19074 (exit $ac_status); } &&
19075 { ac_try='test -z "$ac_c_werror_flag"
19076 || test ! -s conftest.err'
19077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19078 (eval $ac_try) 2>&5
19080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19081 (exit $ac_status); }; } &&
19082 { ac_try='test -s conftest.$ac_objext'
19083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19084 (eval $ac_try) 2>&5
19086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19087 (exit $ac_status); }; }; then
19088 ac_cv_struct_sockaddr_sa_len=yes
19090 echo "$as_me: failed program was:" >&5
19091 sed 's/^/| /' conftest.$ac_ext >&5
19093 ac_cv_struct_sockaddr_sa_len=no
19095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19097 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
19098 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
19100 if test $ac_cv_struct_sockaddr_sa_len = yes; then
19102 cat >>confdefs.h <<\_ACEOF
19103 #define HAVE_SA_LEN 1
19109 echo "$as_me:$LINENO: checking for IPv6 support" >&5
19110 echo $ECHO_N "checking for IPv6 support... $ECHO_C" >&6
19111 if test "${ac_cv_ipv6_support+set}" = set; then
19112 echo $ECHO_N "(cached) $ECHO_C" >&6
19114 cat >conftest.$ac_ext <<_ACEOF
19117 cat confdefs.h >>conftest.$ac_ext
19118 cat >>conftest.$ac_ext <<_ACEOF
19119 /* end confdefs.h. */
19120 #include <sys/types.h>
19121 #include <sys/socket.h>
19122 #include <netinet/in.h>
19126 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] =
19132 rm -f conftest.$ac_objext conftest$ac_exeext
19133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19134 (eval $ac_link) 2>conftest.er1
19136 grep -v '^ *+' conftest.er1 >conftest.err
19138 cat conftest.err >&5
19139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19140 (exit $ac_status); } &&
19141 { ac_try='test -z "$ac_c_werror_flag"
19142 || test ! -s conftest.err'
19143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19144 (eval $ac_try) 2>&5
19146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19147 (exit $ac_status); }; } &&
19148 { ac_try='test -s conftest$ac_exeext'
19149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19150 (eval $ac_try) 2>&5
19152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19153 (exit $ac_status); }; }; then
19154 ac_cv_ipv6_support=yes
19156 echo "$as_me: failed program was:" >&5
19157 sed 's/^/| /' conftest.$ac_ext >&5
19159 ac_cv_ipv6_support=no
19161 rm -f conftest.err conftest.$ac_objext \
19162 conftest$ac_exeext conftest.$ac_ext
19164 echo "$as_me:$LINENO: result: $ac_cv_ipv6_support" >&5
19165 echo "${ECHO_T}$ac_cv_ipv6_support" >&6
19167 if test "$ac_cv_ipv6_support" = yes; then
19169 cat >>confdefs.h <<\_ACEOF
19170 #define HAVE_IPV6 1
19178 for ac_func in strftime
19180 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19181 echo "$as_me:$LINENO: checking for $ac_func" >&5
19182 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19183 if eval "test \"\${$as_ac_var+set}\" = set"; then
19184 echo $ECHO_N "(cached) $ECHO_C" >&6
19186 cat >conftest.$ac_ext <<_ACEOF
19189 cat confdefs.h >>conftest.$ac_ext
19190 cat >>conftest.$ac_ext <<_ACEOF
19191 /* end confdefs.h. */
19192 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19193 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19194 #define $ac_func innocuous_$ac_func
19196 /* System header to define __stub macros and hopefully few prototypes,
19197 which can conflict with char $ac_func (); below.
19198 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19199 <limits.h> exists even on freestanding compilers. */
19202 # include <limits.h>
19204 # include <assert.h>
19209 /* Override any gcc2 internal prototype to avoid an error. */
19214 /* We use char because int might match the return type of a gcc2
19215 builtin and then its argument prototype would still apply. */
19217 /* The GNU C library defines this for functions which it implements
19218 to always fail with ENOSYS. Some functions are actually named
19219 something starting with __ and the normal name is an alias. */
19220 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19223 char (*f) () = $ac_func;
19232 return f != $ac_func;
19237 rm -f conftest.$ac_objext conftest$ac_exeext
19238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19239 (eval $ac_link) 2>conftest.er1
19241 grep -v '^ *+' conftest.er1 >conftest.err
19243 cat conftest.err >&5
19244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19245 (exit $ac_status); } &&
19246 { ac_try='test -z "$ac_c_werror_flag"
19247 || test ! -s conftest.err'
19248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19249 (eval $ac_try) 2>&5
19251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19252 (exit $ac_status); }; } &&
19253 { ac_try='test -s conftest$ac_exeext'
19254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19255 (eval $ac_try) 2>&5
19257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19258 (exit $ac_status); }; }; then
19259 eval "$as_ac_var=yes"
19261 echo "$as_me: failed program was:" >&5
19262 sed 's/^/| /' conftest.$ac_ext >&5
19264 eval "$as_ac_var=no"
19266 rm -f conftest.err conftest.$ac_objext \
19267 conftest$ac_exeext conftest.$ac_ext
19269 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19270 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19271 if test `eval echo '${'$as_ac_var'}'` = yes; then
19272 cat >>confdefs.h <<_ACEOF
19273 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19277 # strftime is in -lintl on SCO UNIX.
19278 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
19279 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
19280 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19281 echo $ECHO_N "(cached) $ECHO_C" >&6
19283 ac_check_lib_save_LIBS=$LIBS
19284 LIBS="-lintl $LIBS"
19285 cat >conftest.$ac_ext <<_ACEOF
19288 cat confdefs.h >>conftest.$ac_ext
19289 cat >>conftest.$ac_ext <<_ACEOF
19290 /* end confdefs.h. */
19292 /* Override any gcc2 internal prototype to avoid an error. */
19296 /* We use char because int might match the return type of a gcc2
19297 builtin and then its argument prototype would still apply. */
19307 rm -f conftest.$ac_objext conftest$ac_exeext
19308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19309 (eval $ac_link) 2>conftest.er1
19311 grep -v '^ *+' conftest.er1 >conftest.err
19313 cat conftest.err >&5
19314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19315 (exit $ac_status); } &&
19316 { ac_try='test -z "$ac_c_werror_flag"
19317 || test ! -s conftest.err'
19318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19319 (eval $ac_try) 2>&5
19321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19322 (exit $ac_status); }; } &&
19323 { ac_try='test -s conftest$ac_exeext'
19324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19325 (eval $ac_try) 2>&5
19327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19328 (exit $ac_status); }; }; then
19329 ac_cv_lib_intl_strftime=yes
19331 echo "$as_me: failed program was:" >&5
19332 sed 's/^/| /' conftest.$ac_ext >&5
19334 ac_cv_lib_intl_strftime=no
19336 rm -f conftest.err conftest.$ac_objext \
19337 conftest$ac_exeext conftest.$ac_ext
19338 LIBS=$ac_check_lib_save_LIBS
19340 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
19341 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
19342 if test $ac_cv_lib_intl_strftime = yes; then
19343 cat >>confdefs.h <<\_ACEOF
19344 #define HAVE_STRFTIME 1
19347 LIBS="-lintl $LIBS"
19354 for ac_func in vprintf
19356 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19357 echo "$as_me:$LINENO: checking for $ac_func" >&5
19358 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19359 if eval "test \"\${$as_ac_var+set}\" = set"; then
19360 echo $ECHO_N "(cached) $ECHO_C" >&6
19362 cat >conftest.$ac_ext <<_ACEOF
19365 cat confdefs.h >>conftest.$ac_ext
19366 cat >>conftest.$ac_ext <<_ACEOF
19367 /* end confdefs.h. */
19368 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19369 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19370 #define $ac_func innocuous_$ac_func
19372 /* System header to define __stub macros and hopefully few prototypes,
19373 which can conflict with char $ac_func (); below.
19374 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19375 <limits.h> exists even on freestanding compilers. */
19378 # include <limits.h>
19380 # include <assert.h>
19385 /* Override any gcc2 internal prototype to avoid an error. */
19390 /* We use char because int might match the return type of a gcc2
19391 builtin and then its argument prototype would still apply. */
19393 /* The GNU C library defines this for functions which it implements
19394 to always fail with ENOSYS. Some functions are actually named
19395 something starting with __ and the normal name is an alias. */
19396 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19399 char (*f) () = $ac_func;
19408 return f != $ac_func;
19413 rm -f conftest.$ac_objext conftest$ac_exeext
19414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19415 (eval $ac_link) 2>conftest.er1
19417 grep -v '^ *+' conftest.er1 >conftest.err
19419 cat conftest.err >&5
19420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19421 (exit $ac_status); } &&
19422 { ac_try='test -z "$ac_c_werror_flag"
19423 || test ! -s conftest.err'
19424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19425 (eval $ac_try) 2>&5
19427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19428 (exit $ac_status); }; } &&
19429 { ac_try='test -s conftest$ac_exeext'
19430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19431 (eval $ac_try) 2>&5
19433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19434 (exit $ac_status); }; }; then
19435 eval "$as_ac_var=yes"
19437 echo "$as_me: failed program was:" >&5
19438 sed 's/^/| /' conftest.$ac_ext >&5
19440 eval "$as_ac_var=no"
19442 rm -f conftest.err conftest.$ac_objext \
19443 conftest$ac_exeext conftest.$ac_ext
19445 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19446 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19447 if test `eval echo '${'$as_ac_var'}'` = yes; then
19448 cat >>confdefs.h <<_ACEOF
19449 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19452 echo "$as_me:$LINENO: checking for _doprnt" >&5
19453 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
19454 if test "${ac_cv_func__doprnt+set}" = set; then
19455 echo $ECHO_N "(cached) $ECHO_C" >&6
19457 cat >conftest.$ac_ext <<_ACEOF
19460 cat confdefs.h >>conftest.$ac_ext
19461 cat >>conftest.$ac_ext <<_ACEOF
19462 /* end confdefs.h. */
19463 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
19464 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19465 #define _doprnt innocuous__doprnt
19467 /* System header to define __stub macros and hopefully few prototypes,
19468 which can conflict with char _doprnt (); below.
19469 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19470 <limits.h> exists even on freestanding compilers. */
19473 # include <limits.h>
19475 # include <assert.h>
19480 /* Override any gcc2 internal prototype to avoid an error. */
19485 /* We use char because int might match the return type of a gcc2
19486 builtin and then its argument prototype would still apply. */
19488 /* The GNU C library defines this for functions which it implements
19489 to always fail with ENOSYS. Some functions are actually named
19490 something starting with __ and the normal name is an alias. */
19491 #if defined (__stub__doprnt) || defined (__stub____doprnt)
19494 char (*f) () = _doprnt;
19503 return f != _doprnt;
19508 rm -f conftest.$ac_objext conftest$ac_exeext
19509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19510 (eval $ac_link) 2>conftest.er1
19512 grep -v '^ *+' conftest.er1 >conftest.err
19514 cat conftest.err >&5
19515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19516 (exit $ac_status); } &&
19517 { ac_try='test -z "$ac_c_werror_flag"
19518 || test ! -s conftest.err'
19519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19520 (eval $ac_try) 2>&5
19522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19523 (exit $ac_status); }; } &&
19524 { ac_try='test -s conftest$ac_exeext'
19525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19526 (eval $ac_try) 2>&5
19528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19529 (exit $ac_status); }; }; then
19530 ac_cv_func__doprnt=yes
19532 echo "$as_me: failed program was:" >&5
19533 sed 's/^/| /' conftest.$ac_ext >&5
19535 ac_cv_func__doprnt=no
19537 rm -f conftest.err conftest.$ac_objext \
19538 conftest$ac_exeext conftest.$ac_ext
19540 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
19541 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
19542 if test $ac_cv_func__doprnt = yes; then
19544 cat >>confdefs.h <<\_ACEOF
19545 #define HAVE_DOPRNT 1
19554 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19555 # for constant arguments. Useless!
19556 echo "$as_me:$LINENO: checking for working alloca.h" >&5
19557 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
19558 if test "${ac_cv_working_alloca_h+set}" = set; then
19559 echo $ECHO_N "(cached) $ECHO_C" >&6
19561 cat >conftest.$ac_ext <<_ACEOF
19564 cat confdefs.h >>conftest.$ac_ext
19565 cat >>conftest.$ac_ext <<_ACEOF
19566 /* end confdefs.h. */
19567 #include <alloca.h>
19571 char *p = (char *) alloca (2 * sizeof (int));
19576 rm -f conftest.$ac_objext conftest$ac_exeext
19577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19578 (eval $ac_link) 2>conftest.er1
19580 grep -v '^ *+' conftest.er1 >conftest.err
19582 cat conftest.err >&5
19583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19584 (exit $ac_status); } &&
19585 { ac_try='test -z "$ac_c_werror_flag"
19586 || test ! -s conftest.err'
19587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19588 (eval $ac_try) 2>&5
19590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19591 (exit $ac_status); }; } &&
19592 { ac_try='test -s conftest$ac_exeext'
19593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19594 (eval $ac_try) 2>&5
19596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19597 (exit $ac_status); }; }; then
19598 ac_cv_working_alloca_h=yes
19600 echo "$as_me: failed program was:" >&5
19601 sed 's/^/| /' conftest.$ac_ext >&5
19603 ac_cv_working_alloca_h=no
19605 rm -f conftest.err conftest.$ac_objext \
19606 conftest$ac_exeext conftest.$ac_ext
19608 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19609 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
19610 if test $ac_cv_working_alloca_h = yes; then
19612 cat >>confdefs.h <<\_ACEOF
19613 #define HAVE_ALLOCA_H 1
19618 echo "$as_me:$LINENO: checking for alloca" >&5
19619 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
19620 if test "${ac_cv_func_alloca_works+set}" = set; then
19621 echo $ECHO_N "(cached) $ECHO_C" >&6
19623 cat >conftest.$ac_ext <<_ACEOF
19626 cat confdefs.h >>conftest.$ac_ext
19627 cat >>conftest.$ac_ext <<_ACEOF
19628 /* end confdefs.h. */
19630 # define alloca __builtin_alloca
19633 # include <malloc.h>
19634 # define alloca _alloca
19637 # include <alloca.h>
19642 # ifndef alloca /* predefined by HP cc +Olibcalls */
19653 char *p = (char *) alloca (1);
19658 rm -f conftest.$ac_objext conftest$ac_exeext
19659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19660 (eval $ac_link) 2>conftest.er1
19662 grep -v '^ *+' conftest.er1 >conftest.err
19664 cat conftest.err >&5
19665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19666 (exit $ac_status); } &&
19667 { ac_try='test -z "$ac_c_werror_flag"
19668 || test ! -s conftest.err'
19669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19670 (eval $ac_try) 2>&5
19672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19673 (exit $ac_status); }; } &&
19674 { ac_try='test -s conftest$ac_exeext'
19675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19676 (eval $ac_try) 2>&5
19678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19679 (exit $ac_status); }; }; then
19680 ac_cv_func_alloca_works=yes
19682 echo "$as_me: failed program was:" >&5
19683 sed 's/^/| /' conftest.$ac_ext >&5
19685 ac_cv_func_alloca_works=no
19687 rm -f conftest.err conftest.$ac_objext \
19688 conftest$ac_exeext conftest.$ac_ext
19690 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19691 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
19693 if test $ac_cv_func_alloca_works = yes; then
19695 cat >>confdefs.h <<\_ACEOF
19696 #define HAVE_ALLOCA 1
19700 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19701 # that cause trouble. Some versions do not even contain alloca or
19702 # contain a buggy version. If you still want to use their alloca,
19703 # use ar to extract alloca.o from them instead of compiling alloca.c.
19705 ALLOCA=alloca.$ac_objext
19707 cat >>confdefs.h <<\_ACEOF
19712 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19713 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
19714 if test "${ac_cv_os_cray+set}" = set; then
19715 echo $ECHO_N "(cached) $ECHO_C" >&6
19717 cat >conftest.$ac_ext <<_ACEOF
19720 cat confdefs.h >>conftest.$ac_ext
19721 cat >>conftest.$ac_ext <<_ACEOF
19722 /* end confdefs.h. */
19723 #if defined(CRAY) && ! defined(CRAY2)
19730 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19731 $EGREP "webecray" >/dev/null 2>&1; then
19739 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19740 echo "${ECHO_T}$ac_cv_os_cray" >&6
19741 if test $ac_cv_os_cray = yes; then
19742 for ac_func in _getb67 GETB67 getb67; do
19743 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19744 echo "$as_me:$LINENO: checking for $ac_func" >&5
19745 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19746 if eval "test \"\${$as_ac_var+set}\" = set"; then
19747 echo $ECHO_N "(cached) $ECHO_C" >&6
19749 cat >conftest.$ac_ext <<_ACEOF
19752 cat confdefs.h >>conftest.$ac_ext
19753 cat >>conftest.$ac_ext <<_ACEOF
19754 /* end confdefs.h. */
19755 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19756 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19757 #define $ac_func innocuous_$ac_func
19759 /* System header to define __stub macros and hopefully few prototypes,
19760 which can conflict with char $ac_func (); below.
19761 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19762 <limits.h> exists even on freestanding compilers. */
19765 # include <limits.h>
19767 # include <assert.h>
19772 /* Override any gcc2 internal prototype to avoid an error. */
19777 /* We use char because int might match the return type of a gcc2
19778 builtin and then its argument prototype would still apply. */
19780 /* The GNU C library defines this for functions which it implements
19781 to always fail with ENOSYS. Some functions are actually named
19782 something starting with __ and the normal name is an alias. */
19783 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19786 char (*f) () = $ac_func;
19795 return f != $ac_func;
19800 rm -f conftest.$ac_objext conftest$ac_exeext
19801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19802 (eval $ac_link) 2>conftest.er1
19804 grep -v '^ *+' conftest.er1 >conftest.err
19806 cat conftest.err >&5
19807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19808 (exit $ac_status); } &&
19809 { ac_try='test -z "$ac_c_werror_flag"
19810 || test ! -s conftest.err'
19811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19812 (eval $ac_try) 2>&5
19814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19815 (exit $ac_status); }; } &&
19816 { ac_try='test -s conftest$ac_exeext'
19817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19818 (eval $ac_try) 2>&5
19820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19821 (exit $ac_status); }; }; then
19822 eval "$as_ac_var=yes"
19824 echo "$as_me: failed program was:" >&5
19825 sed 's/^/| /' conftest.$ac_ext >&5
19827 eval "$as_ac_var=no"
19829 rm -f conftest.err conftest.$ac_objext \
19830 conftest$ac_exeext conftest.$ac_ext
19832 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19833 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19834 if test `eval echo '${'$as_ac_var'}'` = yes; then
19836 cat >>confdefs.h <<_ACEOF
19837 #define CRAY_STACKSEG_END $ac_func
19846 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19847 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
19848 if test "${ac_cv_c_stack_direction+set}" = set; then
19849 echo $ECHO_N "(cached) $ECHO_C" >&6
19851 if test "$cross_compiling" = yes; then
19852 ac_cv_c_stack_direction=0
19854 cat >conftest.$ac_ext <<_ACEOF
19857 cat confdefs.h >>conftest.$ac_ext
19858 cat >>conftest.$ac_ext <<_ACEOF
19859 /* end confdefs.h. */
19861 find_stack_direction ()
19863 static char *addr = 0;
19868 return find_stack_direction ();
19871 return (&dummy > addr) ? 1 : -1;
19877 exit (find_stack_direction () < 0);
19880 rm -f conftest$ac_exeext
19881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19882 (eval $ac_link) 2>&5
19884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19885 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19887 (eval $ac_try) 2>&5
19889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19890 (exit $ac_status); }; }; then
19891 ac_cv_c_stack_direction=1
19893 echo "$as_me: program exited with status $ac_status" >&5
19894 echo "$as_me: failed program was:" >&5
19895 sed 's/^/| /' conftest.$ac_ext >&5
19897 ( exit $ac_status )
19898 ac_cv_c_stack_direction=-1
19900 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19903 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19904 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
19906 cat >>confdefs.h <<_ACEOF
19907 #define STACK_DIRECTION $ac_cv_c_stack_direction
19913 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
19914 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
19915 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
19916 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
19917 echo $ECHO_N "(cached) $ECHO_C" >&6
19919 ac_check_lib_save_LIBS=$LIBS
19921 cat >conftest.$ac_ext <<_ACEOF
19924 cat confdefs.h >>conftest.$ac_ext
19925 cat >>conftest.$ac_ext <<_ACEOF
19926 /* end confdefs.h. */
19928 /* Override any gcc2 internal prototype to avoid an error. */
19932 /* We use char because int might match the return type of a gcc2
19933 builtin and then its argument prototype would still apply. */
19943 rm -f conftest.$ac_objext conftest$ac_exeext
19944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19945 (eval $ac_link) 2>conftest.er1
19947 grep -v '^ *+' conftest.er1 >conftest.err
19949 cat conftest.err >&5
19950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19951 (exit $ac_status); } &&
19952 { ac_try='test -z "$ac_c_werror_flag"
19953 || test ! -s conftest.err'
19954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19955 (eval $ac_try) 2>&5
19957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19958 (exit $ac_status); }; } &&
19959 { ac_try='test -s conftest$ac_exeext'
19960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19961 (eval $ac_try) 2>&5
19963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19964 (exit $ac_status); }; }; then
19965 ac_cv_lib_sun_getmntent=yes
19967 echo "$as_me: failed program was:" >&5
19968 sed 's/^/| /' conftest.$ac_ext >&5
19970 ac_cv_lib_sun_getmntent=no
19972 rm -f conftest.err conftest.$ac_objext \
19973 conftest$ac_exeext conftest.$ac_ext
19974 LIBS=$ac_check_lib_save_LIBS
19976 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
19977 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
19978 if test $ac_cv_lib_sun_getmntent = yes; then
19981 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
19982 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
19983 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
19984 echo $ECHO_N "(cached) $ECHO_C" >&6
19986 ac_check_lib_save_LIBS=$LIBS
19988 cat >conftest.$ac_ext <<_ACEOF
19991 cat confdefs.h >>conftest.$ac_ext
19992 cat >>conftest.$ac_ext <<_ACEOF
19993 /* end confdefs.h. */
19995 /* Override any gcc2 internal prototype to avoid an error. */
19999 /* We use char because int might match the return type of a gcc2
20000 builtin and then its argument prototype would still apply. */
20010 rm -f conftest.$ac_objext conftest$ac_exeext
20011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20012 (eval $ac_link) 2>conftest.er1
20014 grep -v '^ *+' conftest.er1 >conftest.err
20016 cat conftest.err >&5
20017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20018 (exit $ac_status); } &&
20019 { ac_try='test -z "$ac_c_werror_flag"
20020 || test ! -s conftest.err'
20021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20022 (eval $ac_try) 2>&5
20024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20025 (exit $ac_status); }; } &&
20026 { ac_try='test -s conftest$ac_exeext'
20027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20028 (eval $ac_try) 2>&5
20030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20031 (exit $ac_status); }; }; then
20032 ac_cv_lib_seq_getmntent=yes
20034 echo "$as_me: failed program was:" >&5
20035 sed 's/^/| /' conftest.$ac_ext >&5
20037 ac_cv_lib_seq_getmntent=no
20039 rm -f conftest.err conftest.$ac_objext \
20040 conftest$ac_exeext conftest.$ac_ext
20041 LIBS=$ac_check_lib_save_LIBS
20043 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
20044 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
20045 if test $ac_cv_lib_seq_getmntent = yes; then
20048 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
20049 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
20050 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
20051 echo $ECHO_N "(cached) $ECHO_C" >&6
20053 ac_check_lib_save_LIBS=$LIBS
20055 cat >conftest.$ac_ext <<_ACEOF
20058 cat confdefs.h >>conftest.$ac_ext
20059 cat >>conftest.$ac_ext <<_ACEOF
20060 /* end confdefs.h. */
20062 /* Override any gcc2 internal prototype to avoid an error. */
20066 /* We use char because int might match the return type of a gcc2
20067 builtin and then its argument prototype would still apply. */
20077 rm -f conftest.$ac_objext conftest$ac_exeext
20078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20079 (eval $ac_link) 2>conftest.er1
20081 grep -v '^ *+' conftest.er1 >conftest.err
20083 cat conftest.err >&5
20084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20085 (exit $ac_status); } &&
20086 { ac_try='test -z "$ac_c_werror_flag"
20087 || test ! -s conftest.err'
20088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20089 (eval $ac_try) 2>&5
20091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20092 (exit $ac_status); }; } &&
20093 { ac_try='test -s conftest$ac_exeext'
20094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20095 (eval $ac_try) 2>&5
20097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20098 (exit $ac_status); }; }; then
20099 ac_cv_lib_gen_getmntent=yes
20101 echo "$as_me: failed program was:" >&5
20102 sed 's/^/| /' conftest.$ac_ext >&5
20104 ac_cv_lib_gen_getmntent=no
20106 rm -f conftest.err conftest.$ac_objext \
20107 conftest$ac_exeext conftest.$ac_ext
20108 LIBS=$ac_check_lib_save_LIBS
20110 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
20111 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
20112 if test $ac_cv_lib_gen_getmntent = yes; then
20121 for ac_func in getmntent
20123 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20124 echo "$as_me:$LINENO: checking for $ac_func" >&5
20125 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20126 if eval "test \"\${$as_ac_var+set}\" = set"; then
20127 echo $ECHO_N "(cached) $ECHO_C" >&6
20129 cat >conftest.$ac_ext <<_ACEOF
20132 cat confdefs.h >>conftest.$ac_ext
20133 cat >>conftest.$ac_ext <<_ACEOF
20134 /* end confdefs.h. */
20135 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20136 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20137 #define $ac_func innocuous_$ac_func
20139 /* System header to define __stub macros and hopefully few prototypes,
20140 which can conflict with char $ac_func (); below.
20141 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20142 <limits.h> exists even on freestanding compilers. */
20145 # include <limits.h>
20147 # include <assert.h>
20152 /* Override any gcc2 internal prototype to avoid an error. */
20157 /* We use char because int might match the return type of a gcc2
20158 builtin and then its argument prototype would still apply. */
20160 /* The GNU C library defines this for functions which it implements
20161 to always fail with ENOSYS. Some functions are actually named
20162 something starting with __ and the normal name is an alias. */
20163 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20166 char (*f) () = $ac_func;
20175 return f != $ac_func;
20180 rm -f conftest.$ac_objext conftest$ac_exeext
20181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20182 (eval $ac_link) 2>conftest.er1
20184 grep -v '^ *+' conftest.er1 >conftest.err
20186 cat conftest.err >&5
20187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20188 (exit $ac_status); } &&
20189 { ac_try='test -z "$ac_c_werror_flag"
20190 || test ! -s conftest.err'
20191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20192 (eval $ac_try) 2>&5
20194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20195 (exit $ac_status); }; } &&
20196 { ac_try='test -s conftest$ac_exeext'
20197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20198 (eval $ac_try) 2>&5
20200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20201 (exit $ac_status); }; }; then
20202 eval "$as_ac_var=yes"
20204 echo "$as_me: failed program was:" >&5
20205 sed 's/^/| /' conftest.$ac_ext >&5
20207 eval "$as_ac_var=no"
20209 rm -f conftest.err conftest.$ac_objext \
20210 conftest$ac_exeext conftest.$ac_ext
20212 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20213 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20214 if test `eval echo '${'$as_ac_var'}'` = yes; then
20215 cat >>confdefs.h <<_ACEOF
20216 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20223 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
20224 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
20225 if test "${ac_cv_func_closedir_void+set}" = set; then
20226 echo $ECHO_N "(cached) $ECHO_C" >&6
20228 if test "$cross_compiling" = yes; then
20229 ac_cv_func_closedir_void=yes
20231 cat >conftest.$ac_ext <<_ACEOF
20234 cat confdefs.h >>conftest.$ac_ext
20235 cat >>conftest.$ac_ext <<_ACEOF
20236 /* end confdefs.h. */
20237 $ac_includes_default
20238 #include <$ac_header_dirent>
20239 #ifndef __cplusplus
20246 exit (closedir (opendir (".")) != 0);
20251 rm -f conftest$ac_exeext
20252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20253 (eval $ac_link) 2>&5
20255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20256 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20258 (eval $ac_try) 2>&5
20260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20261 (exit $ac_status); }; }; then
20262 ac_cv_func_closedir_void=no
20264 echo "$as_me: program exited with status $ac_status" >&5
20265 echo "$as_me: failed program was:" >&5
20266 sed 's/^/| /' conftest.$ac_ext >&5
20268 ( exit $ac_status )
20269 ac_cv_func_closedir_void=yes
20271 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20274 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
20275 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
20276 if test $ac_cv_func_closedir_void = yes; then
20278 cat >>confdefs.h <<\_ACEOF
20279 #define CLOSEDIR_VOID 1
20284 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
20285 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
20286 if test "${ac_cv_func_setpgrp_void+set}" = set; then
20287 echo $ECHO_N "(cached) $ECHO_C" >&6
20289 if test "$cross_compiling" = yes; then
20290 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
20291 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
20292 { (exit 1); exit 1; }; }
20294 cat >conftest.$ac_ext <<_ACEOF
20297 cat confdefs.h >>conftest.$ac_ext
20298 cat >>conftest.$ac_ext <<_ACEOF
20299 /* end confdefs.h. */
20301 # include <unistd.h>
20307 /* If this system has a BSD-style setpgrp which takes arguments,
20308 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
20309 exit successfully. */
20310 exit (setpgrp (1,1) == -1 ? 0 : 1);
20315 rm -f conftest$ac_exeext
20316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20317 (eval $ac_link) 2>&5
20319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20320 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20322 (eval $ac_try) 2>&5
20324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20325 (exit $ac_status); }; }; then
20326 ac_cv_func_setpgrp_void=no
20328 echo "$as_me: program exited with status $ac_status" >&5
20329 echo "$as_me: failed program was:" >&5
20330 sed 's/^/| /' conftest.$ac_ext >&5
20332 ( exit $ac_status )
20333 ac_cv_func_setpgrp_void=yes
20335 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20338 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
20339 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
20340 if test $ac_cv_func_setpgrp_void = yes; then
20342 cat >>confdefs.h <<\_ACEOF
20343 #define SETPGRP_VOID 1
20347 # AC_FUNC_FNMATCH dnl use local version
20350 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
20351 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
20352 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
20353 echo $ECHO_N "(cached) $ECHO_C" >&6
20355 ac_check_lib_save_LIBS=$LIBS
20356 LIBS="-lxpg4 $LIBS"
20357 cat >conftest.$ac_ext <<_ACEOF
20360 cat confdefs.h >>conftest.$ac_ext
20361 cat >>conftest.$ac_ext <<_ACEOF
20362 /* end confdefs.h. */
20364 /* Override any gcc2 internal prototype to avoid an error. */
20368 /* We use char because int might match the return type of a gcc2
20369 builtin and then its argument prototype would still apply. */
20379 rm -f conftest.$ac_objext conftest$ac_exeext
20380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20381 (eval $ac_link) 2>conftest.er1
20383 grep -v '^ *+' conftest.er1 >conftest.err
20385 cat conftest.err >&5
20386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20387 (exit $ac_status); } &&
20388 { ac_try='test -z "$ac_c_werror_flag"
20389 || test ! -s conftest.err'
20390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20391 (eval $ac_try) 2>&5
20393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20394 (exit $ac_status); }; } &&
20395 { ac_try='test -s conftest$ac_exeext'
20396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20397 (eval $ac_try) 2>&5
20399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20400 (exit $ac_status); }; }; then
20401 ac_cv_lib_xpg4_setlocale=yes
20403 echo "$as_me: failed program was:" >&5
20404 sed 's/^/| /' conftest.$ac_ext >&5
20406 ac_cv_lib_xpg4_setlocale=no
20408 rm -f conftest.err conftest.$ac_objext \
20409 conftest$ac_exeext conftest.$ac_ext
20410 LIBS=$ac_check_lib_save_LIBS
20412 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
20413 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
20414 if test $ac_cv_lib_xpg4_setlocale = yes; then
20415 LIBS="$LIBS -lxpg4"
20421 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
20422 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
20423 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
20424 echo $ECHO_N "(cached) $ECHO_C" >&6
20426 ac_check_lib_save_LIBS=$LIBS
20428 cat >conftest.$ac_ext <<_ACEOF
20431 cat confdefs.h >>conftest.$ac_ext
20432 cat >>conftest.$ac_ext <<_ACEOF
20433 /* end confdefs.h. */
20435 /* Override any gcc2 internal prototype to avoid an error. */
20439 /* We use char because int might match the return type of a gcc2
20440 builtin and then its argument prototype would still apply. */
20450 rm -f conftest.$ac_objext conftest$ac_exeext
20451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20452 (eval $ac_link) 2>conftest.er1
20454 grep -v '^ *+' conftest.er1 >conftest.err
20456 cat conftest.err >&5
20457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20458 (exit $ac_status); } &&
20459 { ac_try='test -z "$ac_c_werror_flag"
20460 || test ! -s conftest.err'
20461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20462 (eval $ac_try) 2>&5
20464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20465 (exit $ac_status); }; } &&
20466 { ac_try='test -s conftest$ac_exeext'
20467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20468 (eval $ac_try) 2>&5
20470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20471 (exit $ac_status); }; }; then
20472 ac_cv_lib_sun_getpwnam=yes
20474 echo "$as_me: failed program was:" >&5
20475 sed 's/^/| /' conftest.$ac_ext >&5
20477 ac_cv_lib_sun_getpwnam=no
20479 rm -f conftest.err conftest.$ac_objext \
20480 conftest$ac_exeext conftest.$ac_ext
20481 LIBS=$ac_check_lib_save_LIBS
20483 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
20484 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
20485 if test $ac_cv_lib_sun_getpwnam = yes; then
20486 cat >>confdefs.h <<_ACEOF
20487 #define HAVE_LIBSUN 1
20496 for ac_header in zlib.h
20498 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20499 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20500 echo "$as_me:$LINENO: checking for $ac_header" >&5
20501 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20502 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20503 echo $ECHO_N "(cached) $ECHO_C" >&6
20505 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20506 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20508 # Is the header compilable?
20509 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20510 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20511 cat >conftest.$ac_ext <<_ACEOF
20514 cat confdefs.h >>conftest.$ac_ext
20515 cat >>conftest.$ac_ext <<_ACEOF
20516 /* end confdefs.h. */
20517 $ac_includes_default
20518 #include <$ac_header>
20520 rm -f conftest.$ac_objext
20521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20522 (eval $ac_compile) 2>conftest.er1
20524 grep -v '^ *+' conftest.er1 >conftest.err
20526 cat conftest.err >&5
20527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20528 (exit $ac_status); } &&
20529 { ac_try='test -z "$ac_c_werror_flag"
20530 || test ! -s conftest.err'
20531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20532 (eval $ac_try) 2>&5
20534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20535 (exit $ac_status); }; } &&
20536 { ac_try='test -s conftest.$ac_objext'
20537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20538 (eval $ac_try) 2>&5
20540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20541 (exit $ac_status); }; }; then
20542 ac_header_compiler=yes
20544 echo "$as_me: failed program was:" >&5
20545 sed 's/^/| /' conftest.$ac_ext >&5
20547 ac_header_compiler=no
20549 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20550 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20551 echo "${ECHO_T}$ac_header_compiler" >&6
20553 # Is the header present?
20554 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20555 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20556 cat >conftest.$ac_ext <<_ACEOF
20559 cat confdefs.h >>conftest.$ac_ext
20560 cat >>conftest.$ac_ext <<_ACEOF
20561 /* end confdefs.h. */
20562 #include <$ac_header>
20564 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20565 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20567 grep -v '^ *+' conftest.er1 >conftest.err
20569 cat conftest.err >&5
20570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20571 (exit $ac_status); } >/dev/null; then
20572 if test -s conftest.err; then
20573 ac_cpp_err=$ac_c_preproc_warn_flag
20574 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20581 if test -z "$ac_cpp_err"; then
20582 ac_header_preproc=yes
20584 echo "$as_me: failed program was:" >&5
20585 sed 's/^/| /' conftest.$ac_ext >&5
20587 ac_header_preproc=no
20589 rm -f conftest.err conftest.$ac_ext
20590 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20591 echo "${ECHO_T}$ac_header_preproc" >&6
20593 # So? What about this header?
20594 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20596 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20597 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20598 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20599 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20600 ac_header_preproc=yes
20603 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20604 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20605 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20606 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20607 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20608 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20609 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20610 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20611 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20612 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20613 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20614 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20617 ## ------------------------------------------ ##
20618 ## Report this to the AC_PACKAGE_NAME lists. ##
20619 ## ------------------------------------------ ##
20622 sed "s/^/$as_me: WARNING: /" >&2
20625 echo "$as_me:$LINENO: checking for $ac_header" >&5
20626 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20627 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20628 echo $ECHO_N "(cached) $ECHO_C" >&6
20630 eval "$as_ac_Header=\$ac_header_preproc"
20632 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20633 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20636 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20637 cat >>confdefs.h <<_ACEOF
20638 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20645 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
20646 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
20647 if test "${ac_cv_lib_z_deflate+set}" = set; then
20648 echo $ECHO_N "(cached) $ECHO_C" >&6
20650 ac_check_lib_save_LIBS=$LIBS
20652 cat >conftest.$ac_ext <<_ACEOF
20655 cat confdefs.h >>conftest.$ac_ext
20656 cat >>conftest.$ac_ext <<_ACEOF
20657 /* end confdefs.h. */
20659 /* Override any gcc2 internal prototype to avoid an error. */
20663 /* We use char because int might match the return type of a gcc2
20664 builtin and then its argument prototype would still apply. */
20674 rm -f conftest.$ac_objext conftest$ac_exeext
20675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20676 (eval $ac_link) 2>conftest.er1
20678 grep -v '^ *+' conftest.er1 >conftest.err
20680 cat conftest.err >&5
20681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20682 (exit $ac_status); } &&
20683 { ac_try='test -z "$ac_c_werror_flag"
20684 || test ! -s conftest.err'
20685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20686 (eval $ac_try) 2>&5
20688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20689 (exit $ac_status); }; } &&
20690 { ac_try='test -s conftest$ac_exeext'
20691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20692 (eval $ac_try) 2>&5
20694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20695 (exit $ac_status); }; }; then
20696 ac_cv_lib_z_deflate=yes
20698 echo "$as_me: failed program was:" >&5
20699 sed 's/^/| /' conftest.$ac_ext >&5
20701 ac_cv_lib_z_deflate=no
20703 rm -f conftest.err conftest.$ac_objext \
20704 conftest$ac_exeext conftest.$ac_ext
20705 LIBS=$ac_check_lib_save_LIBS
20707 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
20708 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
20709 if test $ac_cv_lib_z_deflate = yes; then
20714 if test x$FDLIBS = x-lz; then
20715 cat >>confdefs.h <<\_ACEOF
20716 #define HAVE_LIBZ 1
20722 if test "${ac_cv_header_sys_acl_h+set}" = set; then
20723 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
20724 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
20725 if test "${ac_cv_header_sys_acl_h+set}" = set; then
20726 echo $ECHO_N "(cached) $ECHO_C" >&6
20728 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
20729 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
20731 # Is the header compilable?
20732 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
20733 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
20734 cat >conftest.$ac_ext <<_ACEOF
20737 cat confdefs.h >>conftest.$ac_ext
20738 cat >>conftest.$ac_ext <<_ACEOF
20739 /* end confdefs.h. */
20740 $ac_includes_default
20741 #include <sys/acl.h>
20743 rm -f conftest.$ac_objext
20744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20745 (eval $ac_compile) 2>conftest.er1
20747 grep -v '^ *+' conftest.er1 >conftest.err
20749 cat conftest.err >&5
20750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20751 (exit $ac_status); } &&
20752 { ac_try='test -z "$ac_c_werror_flag"
20753 || test ! -s conftest.err'
20754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20755 (eval $ac_try) 2>&5
20757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20758 (exit $ac_status); }; } &&
20759 { ac_try='test -s conftest.$ac_objext'
20760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20761 (eval $ac_try) 2>&5
20763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20764 (exit $ac_status); }; }; then
20765 ac_header_compiler=yes
20767 echo "$as_me: failed program was:" >&5
20768 sed 's/^/| /' conftest.$ac_ext >&5
20770 ac_header_compiler=no
20772 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20773 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20774 echo "${ECHO_T}$ac_header_compiler" >&6
20776 # Is the header present?
20777 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
20778 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
20779 cat >conftest.$ac_ext <<_ACEOF
20782 cat confdefs.h >>conftest.$ac_ext
20783 cat >>conftest.$ac_ext <<_ACEOF
20784 /* end confdefs.h. */
20785 #include <sys/acl.h>
20787 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20788 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20790 grep -v '^ *+' conftest.er1 >conftest.err
20792 cat conftest.err >&5
20793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20794 (exit $ac_status); } >/dev/null; then
20795 if test -s conftest.err; then
20796 ac_cpp_err=$ac_c_preproc_warn_flag
20797 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20804 if test -z "$ac_cpp_err"; then
20805 ac_header_preproc=yes
20807 echo "$as_me: failed program was:" >&5
20808 sed 's/^/| /' conftest.$ac_ext >&5
20810 ac_header_preproc=no
20812 rm -f conftest.err conftest.$ac_ext
20813 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20814 echo "${ECHO_T}$ac_header_preproc" >&6
20816 # So? What about this header?
20817 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20819 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
20820 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20821 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
20822 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
20823 ac_header_preproc=yes
20826 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
20827 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
20828 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
20829 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
20830 { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
20831 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
20832 { echo "$as_me:$LINENO: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&5
20833 echo "$as_me: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&2;}
20834 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
20835 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
20836 { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
20837 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
20840 ## ------------------------------------------ ##
20841 ## Report this to the AC_PACKAGE_NAME lists. ##
20842 ## ------------------------------------------ ##
20845 sed "s/^/$as_me: WARNING: /" >&2
20848 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
20849 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
20850 if test "${ac_cv_header_sys_acl_h+set}" = set; then
20851 echo $ECHO_N "(cached) $ECHO_C" >&6
20853 ac_cv_header_sys_acl_h=$ac_header_preproc
20855 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
20856 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
20861 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
20862 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
20863 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
20864 echo $ECHO_N "(cached) $ECHO_C" >&6
20866 ac_check_lib_save_LIBS=$LIBS
20868 cat >conftest.$ac_ext <<_ACEOF
20871 cat confdefs.h >>conftest.$ac_ext
20872 cat >>conftest.$ac_ext <<_ACEOF
20873 /* end confdefs.h. */
20875 /* Override any gcc2 internal prototype to avoid an error. */
20879 /* We use char because int might match the return type of a gcc2
20880 builtin and then its argument prototype would still apply. */
20881 char acl_get_file ();
20890 rm -f conftest.$ac_objext conftest$ac_exeext
20891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20892 (eval $ac_link) 2>conftest.er1
20894 grep -v '^ *+' conftest.er1 >conftest.err
20896 cat conftest.err >&5
20897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20898 (exit $ac_status); } &&
20899 { ac_try='test -z "$ac_c_werror_flag"
20900 || test ! -s conftest.err'
20901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20902 (eval $ac_try) 2>&5
20904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20905 (exit $ac_status); }; } &&
20906 { ac_try='test -s conftest$ac_exeext'
20907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20908 (eval $ac_try) 2>&5
20910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20911 (exit $ac_status); }; }; then
20912 ac_cv_lib_acl_acl_get_file=yes
20914 echo "$as_me: failed program was:" >&5
20915 sed 's/^/| /' conftest.$ac_ext >&5
20917 ac_cv_lib_acl_acl_get_file=no
20919 rm -f conftest.err conftest.$ac_objext \
20920 conftest$ac_exeext conftest.$ac_ext
20921 LIBS=$ac_check_lib_save_LIBS
20923 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
20924 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
20925 if test $ac_cv_lib_acl_acl_get_file = yes; then
20926 FDLIBS="-lacl $FDLIBS"
20930 if test $ac_cv_lib_acl_acl_get_file = yes; then
20931 cat >>confdefs.h <<\_ACEOF
20939 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
20940 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
20941 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
20942 echo $ECHO_N "(cached) $ECHO_C" >&6
20944 ac_check_lib_save_LIBS=$LIBS
20945 LIBS="-lpthread $LIBS"
20946 cat >conftest.$ac_ext <<_ACEOF
20949 cat confdefs.h >>conftest.$ac_ext
20950 cat >>conftest.$ac_ext <<_ACEOF
20951 /* end confdefs.h. */
20953 /* Override any gcc2 internal prototype to avoid an error. */
20957 /* We use char because int might match the return type of a gcc2
20958 builtin and then its argument prototype would still apply. */
20959 char pthread_create ();
20968 rm -f conftest.$ac_objext conftest$ac_exeext
20969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20970 (eval $ac_link) 2>conftest.er1
20972 grep -v '^ *+' conftest.er1 >conftest.err
20974 cat conftest.err >&5
20975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20976 (exit $ac_status); } &&
20977 { ac_try='test -z "$ac_c_werror_flag"
20978 || test ! -s conftest.err'
20979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20980 (eval $ac_try) 2>&5
20982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20983 (exit $ac_status); }; } &&
20984 { ac_try='test -s conftest$ac_exeext'
20985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20986 (eval $ac_try) 2>&5
20988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20989 (exit $ac_status); }; }; then
20990 ac_cv_lib_pthread_pthread_create=yes
20992 echo "$as_me: failed program was:" >&5
20993 sed 's/^/| /' conftest.$ac_ext >&5
20995 ac_cv_lib_pthread_pthread_create=no
20997 rm -f conftest.err conftest.$ac_objext \
20998 conftest$ac_exeext conftest.$ac_ext
20999 LIBS=$ac_check_lib_save_LIBS
21001 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
21002 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
21003 if test $ac_cv_lib_pthread_pthread_create = yes; then
21004 PTHREAD_LIB="-lpthread"
21006 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
21007 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
21008 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
21009 echo $ECHO_N "(cached) $ECHO_C" >&6
21011 ac_check_lib_save_LIBS=$LIBS
21012 LIBS="-lpthreads $LIBS"
21013 cat >conftest.$ac_ext <<_ACEOF
21016 cat confdefs.h >>conftest.$ac_ext
21017 cat >>conftest.$ac_ext <<_ACEOF
21018 /* end confdefs.h. */
21020 /* Override any gcc2 internal prototype to avoid an error. */
21024 /* We use char because int might match the return type of a gcc2
21025 builtin and then its argument prototype would still apply. */
21026 char pthread_create ();
21035 rm -f conftest.$ac_objext conftest$ac_exeext
21036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21037 (eval $ac_link) 2>conftest.er1
21039 grep -v '^ *+' conftest.er1 >conftest.err
21041 cat conftest.err >&5
21042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21043 (exit $ac_status); } &&
21044 { ac_try='test -z "$ac_c_werror_flag"
21045 || test ! -s conftest.err'
21046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21047 (eval $ac_try) 2>&5
21049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21050 (exit $ac_status); }; } &&
21051 { ac_try='test -s conftest$ac_exeext'
21052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21053 (eval $ac_try) 2>&5
21055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21056 (exit $ac_status); }; }; then
21057 ac_cv_lib_pthreads_pthread_create=yes
21059 echo "$as_me: failed program was:" >&5
21060 sed 's/^/| /' conftest.$ac_ext >&5
21062 ac_cv_lib_pthreads_pthread_create=no
21064 rm -f conftest.err conftest.$ac_objext \
21065 conftest$ac_exeext conftest.$ac_ext
21066 LIBS=$ac_check_lib_save_LIBS
21068 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
21069 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
21070 if test $ac_cv_lib_pthreads_pthread_create = yes; then
21071 PTHREAD_LIB="-lpthreads"
21073 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
21074 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
21075 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
21076 echo $ECHO_N "(cached) $ECHO_C" >&6
21078 ac_check_lib_save_LIBS=$LIBS
21080 cat >conftest.$ac_ext <<_ACEOF
21083 cat confdefs.h >>conftest.$ac_ext
21084 cat >>conftest.$ac_ext <<_ACEOF
21085 /* end confdefs.h. */
21087 /* Override any gcc2 internal prototype to avoid an error. */
21091 /* We use char because int might match the return type of a gcc2
21092 builtin and then its argument prototype would still apply. */
21093 char pthread_create ();
21102 rm -f conftest.$ac_objext conftest$ac_exeext
21103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21104 (eval $ac_link) 2>conftest.er1
21106 grep -v '^ *+' conftest.er1 >conftest.err
21108 cat conftest.err >&5
21109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21110 (exit $ac_status); } &&
21111 { ac_try='test -z "$ac_c_werror_flag"
21112 || test ! -s conftest.err'
21113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21114 (eval $ac_try) 2>&5
21116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21117 (exit $ac_status); }; } &&
21118 { ac_try='test -s conftest$ac_exeext'
21119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21120 (eval $ac_try) 2>&5
21122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21123 (exit $ac_status); }; }; then
21124 ac_cv_lib_c_r_pthread_create=yes
21126 echo "$as_me: failed program was:" >&5
21127 sed 's/^/| /' conftest.$ac_ext >&5
21129 ac_cv_lib_c_r_pthread_create=no
21131 rm -f conftest.err conftest.$ac_objext \
21132 conftest$ac_exeext conftest.$ac_ext
21133 LIBS=$ac_check_lib_save_LIBS
21135 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
21136 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
21137 if test $ac_cv_lib_c_r_pthread_create = yes; then
21138 PTHREAD_LIB="-lc_r"
21140 echo "$as_me:$LINENO: checking for pthread_create" >&5
21141 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
21142 if test "${ac_cv_func_pthread_create+set}" = set; then
21143 echo $ECHO_N "(cached) $ECHO_C" >&6
21145 cat >conftest.$ac_ext <<_ACEOF
21148 cat confdefs.h >>conftest.$ac_ext
21149 cat >>conftest.$ac_ext <<_ACEOF
21150 /* end confdefs.h. */
21151 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
21152 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21153 #define pthread_create innocuous_pthread_create
21155 /* System header to define __stub macros and hopefully few prototypes,
21156 which can conflict with char pthread_create (); below.
21157 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21158 <limits.h> exists even on freestanding compilers. */
21161 # include <limits.h>
21163 # include <assert.h>
21166 #undef pthread_create
21168 /* Override any gcc2 internal prototype to avoid an error. */
21173 /* We use char because int might match the return type of a gcc2
21174 builtin and then its argument prototype would still apply. */
21175 char pthread_create ();
21176 /* The GNU C library defines this for functions which it implements
21177 to always fail with ENOSYS. Some functions are actually named
21178 something starting with __ and the normal name is an alias. */
21179 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
21182 char (*f) () = pthread_create;
21191 return f != pthread_create;
21196 rm -f conftest.$ac_objext conftest$ac_exeext
21197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21198 (eval $ac_link) 2>conftest.er1
21200 grep -v '^ *+' conftest.er1 >conftest.err
21202 cat conftest.err >&5
21203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21204 (exit $ac_status); } &&
21205 { ac_try='test -z "$ac_c_werror_flag"
21206 || test ! -s conftest.err'
21207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21208 (eval $ac_try) 2>&5
21210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21211 (exit $ac_status); }; } &&
21212 { ac_try='test -s conftest$ac_exeext'
21213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21214 (eval $ac_try) 2>&5
21216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21217 (exit $ac_status); }; }; then
21218 ac_cv_func_pthread_create=yes
21220 echo "$as_me: failed program was:" >&5
21221 sed 's/^/| /' conftest.$ac_ext >&5
21223 ac_cv_func_pthread_create=no
21225 rm -f conftest.err conftest.$ac_objext \
21226 conftest$ac_exeext conftest.$ac_ext
21228 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
21229 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
21242 cat >>confdefs.h <<\_ACEOF
21248 CFLAGS=${CFLAGS--O}
21249 LDFLAGS=${LDFLAGS--O}
21250 DB_LIBS="${SQL_LFLAGS}"
21252 CPPFLAGS="$CPPFLAGS"
21277 # Finally we set appropriate distribution specific
21278 # variables and defaults
21280 # PFILES are platform specific files
21281 PFILES="platforms/Makefile"
21285 hostname=`uname -n | cut -d '.' -f 1`
21286 case "$DISTNAME" in
21289 PSCMD="ps -e -o pid,comm"
21290 PFILES="${PFILES} \
21291 platforms/aix/Makefile"
21292 TAPEDRIVE="/dev/rmt0.1"
21296 PTHREAD_LIB="-lpthread -lexc"
21297 if test "${CC}" = "gcc" ; then
21304 TAPEDRIVE="/dev/nrmt0"
21307 DISTVER=`uname -a |awk '{print $3}'`
21308 TAPEDRIVE="/dev/nrmt0"
21309 PTHREAD_LIB="-pthread"
21310 CFLAGS="${CFLAGS} -pthread"
21311 PSCMD="ps -ax -o pid,command"
21314 PFILES="${PFILES} \
21315 platforms/bsdi/Makefile \
21316 platforms/bsdi/bacula-fd \
21317 platforms/bsdi/bacula-sd \
21318 platforms/bsdi/bacula-dir"
21319 largefile_support="yes"
21322 DISTVER=`uname -a |awk '{print $3}'`
21323 TAPEDRIVE="/dev/nrst0"
21325 WCFLAGS="-mwindows"
21326 WLDFLAGS="-mwindows"
21330 TAPEDRIVE="/dev/nst0"
21331 PSCMD="ps -e -o pid,command"
21333 PFILES="${PFILES} \
21334 platforms/darwin/Makefile"
21337 DISTVER=`cat /etc/debian_version`
21338 TAPEDRIVE="/dev/nrst0"
21339 PSCMD="ps -e -o pid,command"
21342 DISTVER=`uname -a |awk '{print $3}'`
21343 VER=`echo $DISTVER | cut -c 1`
21344 if test x$VER = x4 ; then
21345 PTHREAD_LIB="-pthread"
21346 CFLAGS="${CFLAGS} -pthread"
21350 TAPEDRIVE="/dev/nrsa0"
21351 PSCMD="ps -ax -o pid,command"
21352 PFILES="${PFILES} \
21353 platforms/freebsd/Makefile \
21354 platforms/freebsd/bacula-fd \
21355 platforms/freebsd/bacula-sd \
21356 platforms/freebsd/bacula-dir"
21357 largefile_support="yes"
21360 PSCMD="UNIX95=1 ps -e -o pid,comm"
21361 CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
21363 TAPEDRIVE="/dev/rmt/0hnb"
21364 PTHREAD_LIB="-lpthread"
21365 cat >>confdefs.h <<\_ACEOF
21366 #define _INCLUDE_LONGLONG 1
21372 TAPEDRIVE="/dev/rmt/0cbn"
21373 PSCMD="ps -e -o pid,comm"
21374 PFILES="${PFILES} \
21375 platforms/irix/Makefile \
21376 platforms/irix/bacula-fd \
21377 platforms/irix/bacula-sd \
21378 platforms/irix/bacula-dir"
21381 DISTVER=`uname -a |awk '{print $3}'`
21384 TAPEDRIVE="/dev/nrst0"
21385 PSCMD="ps -ax -o pid,command"
21386 PTHREAD_LIB="-pthread"
21387 CFLAGS="${CFLAGS} -pthread"
21390 DISTVER=`uname -a |awk '{print $3}'`
21393 TAPEDRIVE="/dev/nrst0"
21394 PSCMD="ps -ax -o pid,command"
21395 PTHREAD_LIB="-pthread"
21396 CFLAGS="${CFLAGS} -pthread"
21397 PFILES="${PFILES} \
21398 platforms/openbsd/Makefile \
21399 platforms/openbsd/bacula-fd \
21400 platforms/openbsd/bacula-sd \
21401 platforms/openbsd/bacula-dir"
21404 if test -f /etc/whitebox-release ; then
21405 f=/etc/whitebox-release
21407 f=/etc/redhat-release
21409 if test `cat $f | grep release |\
21410 cut -f 3 -d ' '`x = "Enterprise"x ; then
21411 DISTVER="Enterprise "`cat $f | grep release |\
21414 DISTVER=`cat /etc/redhat-release | grep release |\
21417 TAPEDRIVE="/dev/nst0"
21418 PSCMD="ps -e -o pid,command"
21419 PFILES="${PFILES} \
21420 platforms/redhat/Makefile \
21421 platforms/redhat/bacula-fd \
21422 platforms/redhat/bacula-sd \
21423 platforms/redhat/bacula-dir \
21424 platforms/redhat/bacula.spec \
21426 hostname=`hostname -s`
21429 DISTVER=`cat /etc/mandrake-release | grep release |\
21431 TAPEDRIVE="/dev/nst0"
21432 PSCMD="ps -e -o pid,command"
21433 PFILES="${PFILES} \
21434 platforms/mandrake/Makefile \
21435 platforms/mandrake/bacula-fd \
21436 platforms/mandrake/bacula-sd \
21437 platforms/mandrake/bacula-dir \
21438 platforms/mandrake/bacula.spec \
21442 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
21443 TAPEDRIVE="/dev/nst0"
21444 PSCMD="ps -e -o pid,command"
21445 PFILES="${PFILES} \
21446 platforms/gentoo/Makefile \
21447 platforms/gentoo/bacula-init \
21448 platforms/gentoo/bacula-fd \
21449 platforms/gentoo/bacula-sd \
21450 platforms/gentoo/bacula-dir"
21453 DISTVER=`cat /etc/slackware-version`
21454 TAPEDRIVE="/dev/nst0"
21455 PSCMD="ps -e -o pid,command"
21456 PFILES="${PFILES} \
21457 platforms/slackware/Makefile \
21458 platforms/slackware/rc.bacula-fd \
21459 platforms/slackware/rc.bacula-sd \
21460 platforms/slackware/rc.bacula-dir\
21461 platforms/slackware/functions.bacula"
21465 TAPEDRIVE="/dev/rmt/0cbn"
21466 PSCMD="ps -e -o pid,comm"
21467 PFILES="${PFILES} \
21468 platforms/solaris/Makefile \
21469 platforms/solaris/bacula-fd \
21470 platforms/solaris/bacula-sd \
21471 platforms/solaris/bacula-dir"
21472 if test x$DISTVER = x5.6 ; then
21473 cat >>confdefs.h <<\_ACEOF
21474 #define HAVE_OLD_SOCKOPT 1
21478 LIBS="$LIBS -lresolv"
21481 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
21483 TAPEDRIVE="/dev/nst0"
21484 PSCMD="ps -e -o pid,command"
21485 PFILES="${PFILES} \
21486 platforms/suse/Makefile \
21487 platforms/suse/bacula-fd \
21488 platforms/suse/bacula-sd \
21489 platforms/suse/bacula-dir \
21490 platforms/suse/bacula \
21491 platforms/suse/bacula.spec"
21496 TAPEDRIVE="/dev/nst0"
21497 PSCMD="ps -e -o pid,command"
21498 PFILES="${PFILES} \
21499 platforms/suse/Makefile \
21500 platforms/suse/bacula-fd \
21501 platforms/suse/bacula-sd \
21502 platforms/suse/bacula-dir"
21506 TAPEDRIVE="/dev/nst0"
21509 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
21515 LIBS="$PTHREAD_LIB $LIBS"
21517 cat >>confdefs.h <<_ACEOF
21521 cat >>confdefs.h <<_ACEOF
21532 MCOMMON=./autoconf/Make.common
21535 if test "x${subsysdir}" = "x${sbindir}" ; then
21538 echo "You have set both --sbindir and --with-subsys-dir"
21539 echo " equal to: ${subsysdir} "
21540 echo "This is not permitted. Please reconfigure."
21542 echo "Aborting configuration ..."
21548 ac_config_files="$ac_config_files autoconf/Make.common Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/gnome-console.console_apps scripts/mtx-changer scripts/dvd-writepart scripts/dvd-freespace scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome-console/Makefile src/gnome-console/gnome-console.conf src/gnome2-console/Makefile src/gnome2-console/gnome-console.conf src/wx-console/Makefile src/wx-console/wx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/filed/win32/Makefile src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile src/win32/winbacula.nsi src/win32/baculafd/bacula-fd.conf src/win32/Makefile src/win32/console/bconsole.conf src/win32/wx-console/wx-console.conf src/win32/pebuilder/Makefile src/bimagemgr/Makefile src/bimagemgr/bacula-bimagemgr.spec $PFILES"
21549 ac_config_commands="$ac_config_commands default"
21550 cat >confcache <<\_ACEOF
21551 # This file is a shell script that caches the results of configure
21552 # tests run on this system so they can be shared between configure
21553 # scripts and configure runs, see configure's option --config-cache.
21554 # It is not useful on other systems. If it contains results you don't
21555 # want to keep, you may remove or edit it.
21557 # config.status only pays attention to the cache file if you give it
21558 # the --recheck option to rerun configure.
21560 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21561 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21562 # following values.
21566 # The following way of writing the cache mishandles newlines in values,
21567 # but we know of no workaround that is simple, portable, and efficient.
21568 # So, don't put newlines in cache variables' values.
21569 # Ultrix sh set writes to stderr and can't be redirected directly,
21570 # and sets the high bit in the cache file unless we assign to the vars.
21573 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21575 # `set' does not quote correctly, so add quotes (double-quote
21576 # substitution turns \\\\ into \\, and sed turns \\ into \).
21579 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21582 # `set' quotes correctly as required by POSIX, so do not add quotes.
21584 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21591 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21593 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21595 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21596 if test -w $cache_file; then
21597 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21598 cat confcache >$cache_file
21600 echo "not updating unwritable cache $cache_file"
21605 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21606 # Let make expand exec_prefix.
21607 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21609 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21610 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21611 # trailing colons and then remove the whole line if VPATH becomes empty
21612 # (actually we leave an empty line to preserve line numbers).
21613 if test "x$srcdir" = x.; then
21614 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21615 s/:*\$(srcdir):*/:/;
21616 s/:*\${srcdir}:*/:/;
21618 s/^\([^=]*=[ ]*\):*/\1/;
21624 DEFS=-DHAVE_CONFIG_H
21628 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21629 # 1. Remove the extension, and $U if already installed.
21630 ac_i=`echo "$ac_i" |
21631 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21633 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21634 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21636 LIBOBJS=$ac_libobjs
21638 LTLIBOBJS=$ac_ltlibobjs
21642 : ${CONFIG_STATUS=./config.status}
21643 ac_clean_files_save=$ac_clean_files
21644 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21645 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21646 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21647 cat >$CONFIG_STATUS <<_ACEOF
21649 # Generated by $as_me.
21650 # Run this file to recreate the current configuration.
21651 # Compiler output produced by configure, useful for debugging
21652 # configure, is in config.log if it exists.
21655 ac_cs_recheck=false
21657 SHELL=\${CONFIG_SHELL-$SHELL}
21660 cat >>$CONFIG_STATUS <<\_ACEOF
21661 ## --------------------- ##
21662 ## M4sh Initialization. ##
21663 ## --------------------- ##
21665 # Be Bourne compatible
21666 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21669 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21670 # is contrary to our usage. Disable this feature.
21671 alias -g '${1+"$@"}'='"$@"'
21672 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21675 DUALCASE=1; export DUALCASE # for MKS sh
21677 # Support unset when possible.
21678 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21685 # Work around bugs in pre-3.0 UWIN ksh.
21686 $as_unset ENV MAIL MAILPATH
21693 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21694 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21695 LC_TELEPHONE LC_TIME
21697 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21698 eval $as_var=C; export $as_var
21704 # Required to use basename.
21705 if expr a : '\(a\)' >/dev/null 2>&1; then
21711 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21712 as_basename=basename
21718 # Name of the executable.
21719 as_me=`$as_basename "$0" ||
21720 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21721 X"$0" : 'X\(//\)$' \| \
21722 X"$0" : 'X\(/\)$' \| \
21723 . : '\(.\)' 2>/dev/null ||
21725 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21726 /^X\/\(\/\/\)$/{ s//\1/; q; }
21727 /^X\/\(\/\).*/{ s//\1/; q; }
21731 # PATH needs CR, and LINENO needs CR and PATH.
21732 # Avoid depending upon Character Ranges.
21733 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21734 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21735 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21736 as_cr_digits='0123456789'
21737 as_cr_alnum=$as_cr_Letters$as_cr_digits
21739 # The user is always right.
21740 if test "${PATH_SEPARATOR+set}" != set; then
21741 echo "#! /bin/sh" >conf$$.sh
21742 echo "exit 0" >>conf$$.sh
21744 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21753 as_lineno_1=$LINENO
21754 as_lineno_2=$LINENO
21755 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21756 test "x$as_lineno_1" != "x$as_lineno_2" &&
21757 test "x$as_lineno_3" = "x$as_lineno_2" || {
21758 # Find who we are. Look in the path if we contain no path at all
21761 *[\\/]* ) as_myself=$0 ;;
21762 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21763 for as_dir in $PATH
21766 test -z "$as_dir" && as_dir=.
21767 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21772 # We did not find ourselves, most probably we were run as `sh COMMAND'
21773 # in which case we are not to be found in the path.
21774 if test "x$as_myself" = x; then
21777 if test ! -f "$as_myself"; then
21778 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21779 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21780 { (exit 1); exit 1; }; }
21782 case $CONFIG_SHELL in
21784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21785 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21788 test -z "$as_dir" && as_dir=.
21789 for as_base in sh bash ksh sh5; do
21792 if ("$as_dir/$as_base" -c '
21793 as_lineno_1=$LINENO
21794 as_lineno_2=$LINENO
21795 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21796 test "x$as_lineno_1" != "x$as_lineno_2" &&
21797 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
21798 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21799 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21800 CONFIG_SHELL=$as_dir/$as_base
21801 export CONFIG_SHELL
21802 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21810 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21811 # uniformly replaced by the line number. The first 'sed' inserts a
21812 # line-number line before each line; the second 'sed' does the real
21813 # work. The second script uses 'N' to pair each line-number line
21814 # with the numbered line, and appends trailing '-' during
21815 # substitution so that $LINENO is not a special case at line end.
21816 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21817 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21818 sed '=' <$as_myself |
21823 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21826 s,^['$as_cr_digits']*\n,,
21827 ' >$as_me.lineno &&
21828 chmod +x $as_me.lineno ||
21829 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21830 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21831 { (exit 1); exit 1; }; }
21833 # Don't try to exec as it changes $[0], causing all sort of problems
21834 # (the dirname of $[0] is not the place where we might find the
21835 # original and so on. Autoconf is especially sensible to this).
21837 # Exit status is that of the last command.
21842 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21843 *c*,-n*) ECHO_N= ECHO_C='
21845 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21846 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
21849 if expr a : '\(a\)' >/dev/null 2>&1; then
21855 rm -f conf$$ conf$$.exe conf$$.file
21857 if ln -s conf$$.file conf$$ 2>/dev/null; then
21858 # We could just check for DJGPP; but this test a) works b) is more generic
21859 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21860 if test -f conf$$.exe; then
21861 # Don't use ln at all; we don't have any links
21866 elif ln conf$$.file conf$$ 2>/dev/null; then
21871 rm -f conf$$ conf$$.exe conf$$.file
21873 if mkdir -p . 2>/dev/null; then
21876 test -d ./-p && rmdir ./-p
21880 as_executable_p="test -f"
21882 # Sed expression to map a string onto a valid CPP name.
21883 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21885 # Sed expression to map a string onto a valid variable name.
21886 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21890 # We need space, tab and new line, in precisely that order.
21900 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21901 # report actual input values of CONFIG_FILES etc. instead of their
21902 # values after options handling. Logging --version etc. is OK.
21906 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21907 ## Running $as_me. ##
21912 This file was extended by $as_me, which was
21913 generated by GNU Autoconf 2.59. Invocation command line was
21915 CONFIG_FILES = $CONFIG_FILES
21916 CONFIG_HEADERS = $CONFIG_HEADERS
21917 CONFIG_LINKS = $CONFIG_LINKS
21918 CONFIG_COMMANDS = $CONFIG_COMMANDS
21922 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21926 # Files that config.status was made for.
21927 if test -n "$ac_config_files"; then
21928 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21931 if test -n "$ac_config_headers"; then
21932 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21935 if test -n "$ac_config_links"; then
21936 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21939 if test -n "$ac_config_commands"; then
21940 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21943 cat >>$CONFIG_STATUS <<\_ACEOF
21946 \`$as_me' instantiates files from templates according to the
21947 current configuration.
21949 Usage: $0 [OPTIONS] [FILE]...
21951 -h, --help print this help, then exit
21952 -V, --version print version number, then exit
21953 -q, --quiet do not print progress messages
21954 -d, --debug don't remove temporary files
21955 --recheck update $as_me by reconfiguring in the same conditions
21956 --file=FILE[:TEMPLATE]
21957 instantiate the configuration file FILE
21958 --header=FILE[:TEMPLATE]
21959 instantiate the configuration header FILE
21961 Configuration files:
21964 Configuration headers:
21967 Configuration commands:
21970 Report bugs to <bug-autoconf@gnu.org>."
21973 cat >>$CONFIG_STATUS <<_ACEOF
21976 configured by $0, generated by GNU Autoconf 2.59,
21977 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21979 Copyright (C) 2003 Free Software Foundation, Inc.
21980 This config.status script is free software; the Free Software Foundation
21981 gives unlimited permission to copy, distribute and modify it."
21986 cat >>$CONFIG_STATUS <<\_ACEOF
21987 # If no file are specified by the user, then we need to provide default
21988 # value. By we need to know if files were specified by the user.
21994 ac_option=`expr "x$1" : 'x\([^=]*\)='`
21995 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22003 *) # This is not an option, so the user has probably given explicit
22006 ac_need_defaults=false;;
22010 # Handling of the options.
22012 cat >>$CONFIG_STATUS <<\_ACEOF
22013 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22015 --version | --vers* | -V )
22016 echo "$ac_cs_version"; exit 0 ;;
22018 # Conflict between --help and --header
22019 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22020 Try \`$0 --help' for more information." >&5
22021 echo "$as_me: error: ambiguous option: $1
22022 Try \`$0 --help' for more information." >&2;}
22023 { (exit 1); exit 1; }; };;
22024 --help | --hel | -h )
22025 echo "$ac_cs_usage"; exit 0 ;;
22026 --debug | --d* | -d )
22028 --file | --fil | --fi | --f )
22030 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22031 ac_need_defaults=false;;
22032 --header | --heade | --head | --hea )
22034 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22035 ac_need_defaults=false;;
22036 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22037 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22040 # This is an error.
22041 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22042 Try \`$0 --help' for more information." >&5
22043 echo "$as_me: error: unrecognized option: $1
22044 Try \`$0 --help' for more information." >&2;}
22045 { (exit 1); exit 1; }; } ;;
22047 *) ac_config_targets="$ac_config_targets $1" ;;
22053 ac_configure_extra_args=
22055 if $ac_cs_silent; then
22057 ac_configure_extra_args="$ac_configure_extra_args --silent"
22061 cat >>$CONFIG_STATUS <<_ACEOF
22062 if \$ac_cs_recheck; then
22063 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22064 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22073 cat >>$CONFIG_STATUS <<\_ACEOF
22074 for ac_config_target in $ac_config_targets
22076 case "$ac_config_target" in
22077 # Handling of arguments.
22078 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
22079 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22080 "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
22081 "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
22082 "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
22083 "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
22084 "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
22085 "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
22086 "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
22087 "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
22088 "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
22089 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
22090 "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
22091 "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
22092 "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
22093 "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
22094 "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
22095 "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
22096 "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
22097 "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
22098 "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
22099 "scripts/dvd-writepart" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-writepart" ;;
22100 "scripts/dvd-freespace" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-freespace" ;;
22101 "scripts/bacula-tray-monitor.desktop" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
22102 "scripts/logwatch/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
22103 "scripts/logwatch/logfile.bacula.conf" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
22104 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22105 "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
22106 "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
22107 "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
22108 "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
22109 "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
22110 "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
22111 "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
22112 "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
22113 "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
22114 "src/tray-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
22115 "src/tray-monitor/tray-monitor.conf" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
22116 "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
22117 "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
22118 "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
22119 "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
22120 "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
22121 "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
22122 "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
22123 "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
22124 "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
22125 "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
22126 "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
22127 "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
22128 "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
22129 "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
22130 "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
22131 "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
22132 "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
22133 "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
22134 "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
22135 "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
22136 "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
22137 "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
22138 "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
22139 "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
22140 "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
22141 "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
22142 "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
22143 "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
22144 "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
22145 "src/cats/create_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
22146 "src/cats/update_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
22147 "src/cats/make_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
22148 "src/cats/grant_sqlite3_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
22149 "src/cats/drop_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
22150 "src/cats/drop_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
22151 "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
22152 "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
22153 "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
22154 "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
22155 "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
22156 "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
22157 "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
22158 "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
22159 "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
22160 "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
22161 "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
22162 "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
22163 "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
22164 "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
22165 "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
22166 "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
22167 "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
22168 "src/win32/baculafd/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/baculafd/bacula-fd.conf" ;;
22169 "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
22170 "src/win32/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/console/bconsole.conf" ;;
22171 "src/win32/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/wx-console/wx-console.conf" ;;
22172 "src/win32/pebuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/pebuilder/Makefile" ;;
22173 "src/bimagemgr/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/bimagemgr/Makefile" ;;
22174 "src/bimagemgr/bacula-bimagemgr.spec" ) CONFIG_FILES="$CONFIG_FILES src/bimagemgr/bacula-bimagemgr.spec" ;;
22175 "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
22176 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
22177 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
22178 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22179 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22180 { (exit 1); exit 1; }; };;
22184 # If the user did not use the arguments to specify the items to instantiate,
22185 # then the envvar interface is used. Set only those that are not.
22186 # We use the long form for the default assignment because of an extremely
22187 # bizarre bug on SunOS 4.1.3.
22188 if $ac_need_defaults; then
22189 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22190 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22191 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22194 # Have a temporary directory for convenience. Make it in the build tree
22195 # simply because there is no reason to put it here, and in addition,
22196 # creating and moving files from /tmp can sometimes cause problems.
22197 # Create a temporary directory, and hook for its removal unless debugging.
22200 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22201 trap '{ (exit 1); exit 1; }' 1 2 13 15
22204 # Create a (secure) tmp directory for tmp files.
22207 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22208 test -n "$tmp" && test -d "$tmp"
22211 tmp=./confstat$$-$RANDOM
22212 (umask 077 && mkdir $tmp)
22215 echo "$me: cannot create a temporary directory in ." >&2
22216 { (exit 1); exit 1; }
22221 cat >>$CONFIG_STATUS <<_ACEOF
22224 # CONFIG_FILES section.
22227 # No need to generate the scripts if there are no CONFIG_FILES.
22228 # This happens for instance when ./config.status config.h
22229 if test -n "\$CONFIG_FILES"; then
22230 # Protect against being on the right side of a sed subst in config.status.
22231 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22232 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22233 s,@SHELL@,$SHELL,;t t
22234 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22235 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22236 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22237 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22238 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22239 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22240 s,@exec_prefix@,$exec_prefix,;t t
22241 s,@prefix@,$prefix,;t t
22242 s,@program_transform_name@,$program_transform_name,;t t
22243 s,@bindir@,$bindir,;t t
22244 s,@sbindir@,$sbindir,;t t
22245 s,@libexecdir@,$libexecdir,;t t
22246 s,@datadir@,$datadir,;t t
22247 s,@sysconfdir@,$sysconfdir,;t t
22248 s,@sharedstatedir@,$sharedstatedir,;t t
22249 s,@localstatedir@,$localstatedir,;t t
22250 s,@libdir@,$libdir,;t t
22251 s,@includedir@,$includedir,;t t
22252 s,@oldincludedir@,$oldincludedir,;t t
22253 s,@infodir@,$infodir,;t t
22254 s,@mandir@,$mandir,;t t
22255 s,@build_alias@,$build_alias,;t t
22256 s,@host_alias@,$host_alias,;t t
22257 s,@target_alias@,$target_alias,;t t
22258 s,@DEFS@,$DEFS,;t t
22259 s,@ECHO_C@,$ECHO_C,;t t
22260 s,@ECHO_N@,$ECHO_N,;t t
22261 s,@ECHO_T@,$ECHO_T,;t t
22262 s,@LIBS@,$LIBS,;t t
22263 s,@BUILD_DIR@,$BUILD_DIR,;t t
22264 s,@TRUEPRG@,$TRUEPRG,;t t
22265 s,@FALSEPRG@,$FALSEPRG,;t t
22266 s,@VERSION@,$VERSION,;t t
22267 s,@DATE@,$DATE,;t t
22268 s,@LSMDATE@,$LSMDATE,;t t
22270 s,@CFLAGS@,$CFLAGS,;t t
22271 s,@LDFLAGS@,$LDFLAGS,;t t
22272 s,@CPPFLAGS@,$CPPFLAGS,;t t
22273 s,@ac_ct_CC@,$ac_ct_CC,;t t
22274 s,@EXEEXT@,$EXEEXT,;t t
22275 s,@OBJEXT@,$OBJEXT,;t t
22277 s,@CXXFLAGS@,$CXXFLAGS,;t t
22278 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22280 s,@EGREP@,$EGREP,;t t
22281 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22282 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22283 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22284 s,@RANLIB@,$RANLIB,;t t
22285 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22290 s,@ECHO@,$ECHO,;t t
22294 s,@OPENSSL@,$OPENSSL,;t t
22296 s,@MKISOFS@,$MKISOFS,;t t
22297 s,@PYTHON@,$PYTHON,;t t
22298 s,@GROWISOFS@,$GROWISOFS,;t t
22299 s,@DVDRWMEDIAINFO@,$DVDRWMEDIAINFO,;t t
22300 s,@PKGCONFIG@,$PKGCONFIG,;t t
22301 s,@WXCONFIG@,$WXCONFIG,;t t
22302 s,@WXFLAGS@,$WXFLAGS,;t t
22303 s,@CDRECORD@,$CDRECORD,;t t
22304 s,@PIDOF@,$PIDOF,;t t
22306 s,@ARFLAGS@,$ARFLAGS,;t t
22307 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
22308 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
22309 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
22310 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
22311 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
22312 s,@build@,$build,;t t
22313 s,@build_cpu@,$build_cpu,;t t
22314 s,@build_vendor@,$build_vendor,;t t
22315 s,@build_os@,$build_os,;t t
22316 s,@host@,$host,;t t
22317 s,@host_cpu@,$host_cpu,;t t
22318 s,@host_vendor@,$host_vendor,;t t
22319 s,@host_os@,$host_os,;t t
22320 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
22321 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
22322 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
22323 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
22324 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
22325 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
22326 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
22327 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
22328 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
22329 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
22330 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
22331 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
22332 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
22333 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
22334 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
22335 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
22336 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
22337 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
22338 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
22339 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
22340 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
22341 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
22342 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
22343 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
22344 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
22345 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
22346 s,@MSGFMT@,$MSGFMT,;t t
22347 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
22348 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
22349 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
22350 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
22351 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
22352 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
22353 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
22354 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
22355 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
22356 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
22357 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
22358 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
22359 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
22360 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
22361 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
22362 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
22363 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
22364 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
22365 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
22366 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
22367 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
22368 s,@GNOME_DIR@,$GNOME_DIR,;t t
22369 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
22370 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
22371 s,@WX_DIR@,$WX_DIR,;t t
22372 s,@TRAY_MONITOR_CPPFLAGS@,$TRAY_MONITOR_CPPFLAGS,;t t
22373 s,@TRAY_MONITOR_LDFLAGS@,$TRAY_MONITOR_LDFLAGS,;t t
22374 s,@TRAY_MONITOR_DIR@,$TRAY_MONITOR_DIR,;t t
22375 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
22376 s,@STATIC_FD@,$STATIC_FD,;t t
22377 s,@STATIC_SD@,$STATIC_SD,;t t
22378 s,@STATIC_DIR@,$STATIC_DIR,;t t
22379 s,@STATIC_CONS@,$STATIC_CONS,;t t
22380 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
22381 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
22382 s,@ALL_DIRS@,$ALL_DIRS,;t t
22383 s,@CONS_INC@,$CONS_INC,;t t
22384 s,@CONS_OBJ@,$CONS_OBJ,;t t
22385 s,@CONS_SRC@,$CONS_SRC,;t t
22386 s,@CONS_LIBS@,$CONS_LIBS,;t t
22387 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
22388 s,@READLINE_SRC@,$READLINE_SRC,;t t
22389 s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t
22390 s,@PYTHON_INCDIR@,$PYTHON_INCDIR,;t t
22391 s,@OPENSSL_LIBS@,$OPENSSL_LIBS,;t t
22392 s,@OPENSSL_INC@,$OPENSSL_INC,;t t
22393 s,@working_dir@,$working_dir,;t t
22394 s,@scriptdir@,$scriptdir,;t t
22395 s,@dump_email@,$dump_email,;t t
22396 s,@job_email@,$job_email,;t t
22397 s,@smtp_host@,$smtp_host,;t t
22398 s,@piddir@,$piddir,;t t
22399 s,@subsysdir@,$subsysdir,;t t
22400 s,@baseport@,$baseport,;t t
22401 s,@dir_port@,$dir_port,;t t
22402 s,@fd_port@,$fd_port,;t t
22403 s,@sd_port@,$sd_port,;t t
22404 s,@dir_password@,$dir_password,;t t
22405 s,@fd_password@,$fd_password,;t t
22406 s,@sd_password@,$sd_password,;t t
22407 s,@mon_dir_password@,$mon_dir_password,;t t
22408 s,@mon_fd_password@,$mon_fd_password,;t t
22409 s,@mon_sd_password@,$mon_sd_password,;t t
22410 s,@bimagemgr_cgidir@,$bimagemgr_cgidir,;t t
22411 s,@bimagemgr_docdir@,$bimagemgr_docdir,;t t
22412 s,@bimagemgr_binowner@,$bimagemgr_binowner,;t t
22413 s,@bimagemgr_bingroup@,$bimagemgr_bingroup,;t t
22414 s,@bimagemgr_dataowner@,$bimagemgr_dataowner,;t t
22415 s,@bimagemgr_datagroup@,$bimagemgr_datagroup,;t t
22416 s,@dir_user@,$dir_user,;t t
22417 s,@dir_group@,$dir_group,;t t
22418 s,@sd_user@,$sd_user,;t t
22419 s,@sd_group@,$sd_group,;t t
22420 s,@fd_user@,$fd_user,;t t
22421 s,@fd_group@,$fd_group,;t t
22422 s,@SBINPERM@,$SBINPERM,;t t
22423 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
22424 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
22425 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
22426 s,@cats@,$cats,;t t
22427 s,@DB_NAME@,$DB_NAME,;t t
22428 s,@GETCONF@,$GETCONF,;t t
22429 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
22430 s,@X_CFLAGS@,$X_CFLAGS,;t t
22431 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
22432 s,@X_LIBS@,$X_LIBS,;t t
22433 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
22434 s,@LIBOBJS@,$LIBOBJS,;t t
22435 s,@ALLOCA@,$ALLOCA,;t t
22436 s,@FDLIBS@,$FDLIBS,;t t
22437 s,@DEBUG@,$DEBUG,;t t
22438 s,@DINCLUDE@,$DINCLUDE,;t t
22439 s,@DLIB@,$DLIB,;t t
22440 s,@DB_LIBS@,$DB_LIBS,;t t
22441 s,@WCFLAGS@,$WCFLAGS,;t t
22442 s,@WLDFLAGS@,$WLDFLAGS,;t t
22443 s,@OBJLIST@,$OBJLIST,;t t
22444 s,@hostname@,$hostname,;t t
22445 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
22446 s,@PSCMD@,$PSCMD,;t t
22447 s,@WIN32@,$WIN32,;t t
22448 s,@MACOSX@,$MACOSX,;t t
22449 s,@DISTNAME@,$DISTNAME,;t t
22450 s,@DISTVER@,$DISTVER,;t t
22451 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22452 /@MCOMMON@/r $MCOMMON
22458 cat >>$CONFIG_STATUS <<\_ACEOF
22459 # Split the substitutions into bite-sized pieces for seds with
22460 # small command number limits, like on Digital OSF/1 and HP-UX.
22461 ac_max_sed_lines=48
22462 ac_sed_frag=1 # Number of current file.
22463 ac_beg=1 # First line for current file.
22464 ac_end=$ac_max_sed_lines # Line after last line for current file.
22467 while $ac_more_lines; do
22468 if test $ac_beg -gt 1; then
22469 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22471 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22473 if test ! -s $tmp/subs.frag; then
22474 ac_more_lines=false
22476 # The purpose of the label and of the branching condition is to
22477 # speed up the sed processing (if there are no `@' at all, there
22478 # is no need to browse any of the substitutions).
22479 # These are the two extra sed commands mentioned above.
22481 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22482 if test -z "$ac_sed_cmds"; then
22483 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22485 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22487 ac_sed_frag=`expr $ac_sed_frag + 1`
22489 ac_end=`expr $ac_end + $ac_max_sed_lines`
22492 if test -z "$ac_sed_cmds"; then
22495 fi # test -n "$CONFIG_FILES"
22498 cat >>$CONFIG_STATUS <<\_ACEOF
22499 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22500 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22502 - | *:- | *:-:* ) # input from stdin
22504 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22505 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22506 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22507 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22508 * ) ac_file_in=$ac_file.in ;;
22511 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22512 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22513 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22514 X"$ac_file" : 'X\(//\)[^/]' \| \
22515 X"$ac_file" : 'X\(//\)$' \| \
22516 X"$ac_file" : 'X\(/\)' \| \
22517 . : '\(.\)' 2>/dev/null ||
22519 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22520 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22521 /^X\(\/\/\)$/{ s//\1/; q; }
22522 /^X\(\/\).*/{ s//\1/; q; }
22524 { if $as_mkdir_p; then
22529 while test ! -d "$as_dir"; do
22530 as_dirs="$as_dir $as_dirs"
22531 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22532 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22533 X"$as_dir" : 'X\(//\)[^/]' \| \
22534 X"$as_dir" : 'X\(//\)$' \| \
22535 X"$as_dir" : 'X\(/\)' \| \
22536 . : '\(.\)' 2>/dev/null ||
22538 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22539 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22540 /^X\(\/\/\)$/{ s//\1/; q; }
22541 /^X\(\/\).*/{ s//\1/; q; }
22544 test ! -n "$as_dirs" || mkdir $as_dirs
22545 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22546 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22547 { (exit 1); exit 1; }; }; }
22551 if test "$ac_dir" != .; then
22552 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22553 # A "../" for each directory in $ac_dir_suffix.
22554 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22556 ac_dir_suffix= ac_top_builddir=
22560 .) # No --srcdir option. We are building in place.
22562 if test -z "$ac_top_builddir"; then
22565 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22567 [\\/]* | ?:[\\/]* ) # Absolute path.
22568 ac_srcdir=$srcdir$ac_dir_suffix;
22569 ac_top_srcdir=$srcdir ;;
22570 *) # Relative path.
22571 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22572 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22575 # Do not use `cd foo && pwd` to compute absolute paths, because
22576 # the directories may not exist.
22578 .) ac_abs_builddir="$ac_dir";;
22581 .) ac_abs_builddir=`pwd`;;
22582 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22583 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22586 case $ac_abs_builddir in
22587 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22589 case ${ac_top_builddir}. in
22590 .) ac_abs_top_builddir=$ac_abs_builddir;;
22591 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22592 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22595 case $ac_abs_builddir in
22596 .) ac_abs_srcdir=$ac_srcdir;;
22599 .) ac_abs_srcdir=$ac_abs_builddir;;
22600 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22601 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22604 case $ac_abs_builddir in
22605 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22607 case $ac_top_srcdir in
22608 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22609 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22610 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22616 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22617 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22620 if test x"$ac_file" != x-; then
22621 { echo "$as_me:$LINENO: creating $ac_file" >&5
22622 echo "$as_me: creating $ac_file" >&6;}
22625 # Let's still pretend it is `configure' which instantiates (i.e., don't
22626 # use $as_me), people would be surprised to read:
22627 # /* config.h. Generated by config.status. */
22628 if test x"$ac_file" = x-; then
22631 configure_input="$ac_file. "
22633 configure_input=$configure_input"Generated from `echo $ac_file_in |
22634 sed 's,.*/,,'` by configure."
22636 # First look for the input files in the build tree, otherwise in the
22638 ac_file_inputs=`IFS=:
22639 for f in $ac_file_in; do
22641 -) echo $tmp/stdin ;;
22643 # Absolute (can't be DOS-style, as IFS=:)
22644 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22645 echo "$as_me: error: cannot find input file: $f" >&2;}
22646 { (exit 1); exit 1; }; }
22649 if test -f "$f"; then
22652 elif test -f "$srcdir/$f"; then
22657 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22658 echo "$as_me: error: cannot find input file: $f" >&2;}
22659 { (exit 1); exit 1; }; }
22662 done` || { (exit 1); exit 1; }
22664 cat >>$CONFIG_STATUS <<_ACEOF
22668 cat >>$CONFIG_STATUS <<\_ACEOF
22670 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22671 s,@configure_input@,$configure_input,;t t
22672 s,@srcdir@,$ac_srcdir,;t t
22673 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22674 s,@top_srcdir@,$ac_top_srcdir,;t t
22675 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22676 s,@builddir@,$ac_builddir,;t t
22677 s,@abs_builddir@,$ac_abs_builddir,;t t
22678 s,@top_builddir@,$ac_top_builddir,;t t
22679 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22680 s,@INSTALL@,$ac_INSTALL,;t t
22681 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22683 if test x"$ac_file" != x-; then
22684 mv $tmp/out $ac_file
22692 cat >>$CONFIG_STATUS <<\_ACEOF
22695 # CONFIG_HEADER section.
22698 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22699 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22701 # ac_d sets the value in "#define NAME VALUE" lines.
22702 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22703 ac_dB='[ ].*$,\1#\2'
22706 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22707 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22708 ac_uB='$,\1#\2define\3'
22712 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22713 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22715 - | *:- | *:-:* ) # input from stdin
22717 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22718 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22719 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22720 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22721 * ) ac_file_in=$ac_file.in ;;
22724 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22725 echo "$as_me: creating $ac_file" >&6;}
22727 # First look for the input files in the build tree, otherwise in the
22729 ac_file_inputs=`IFS=:
22730 for f in $ac_file_in; do
22732 -) echo $tmp/stdin ;;
22734 # Absolute (can't be DOS-style, as IFS=:)
22735 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22736 echo "$as_me: error: cannot find input file: $f" >&2;}
22737 { (exit 1); exit 1; }; }
22738 # Do quote $f, to prevent DOS paths from being IFS'd.
22741 if test -f "$f"; then
22744 elif test -f "$srcdir/$f"; then
22749 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22750 echo "$as_me: error: cannot find input file: $f" >&2;}
22751 { (exit 1); exit 1; }; }
22754 done` || { (exit 1); exit 1; }
22755 # Remove the trailing spaces.
22756 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22760 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22761 # `conftest.undefs', that substitutes the proper values into
22762 # config.h.in to produce config.h. The first handles `#define'
22763 # templates, and the second `#undef' templates.
22764 # And first: Protect against being on the right side of a sed subst in
22765 # config.status. Protect against being in an unquoted here document
22766 # in config.status.
22767 rm -f conftest.defines conftest.undefs
22768 # Using a here document instead of a string reduces the quoting nightmare.
22769 # Putting comments in sed scripts is not portable.
22771 # `end' is used to avoid that the second main sed command (meant for
22772 # 0-ary CPP macros) applies to n-ary macro definitions.
22773 # See the Autoconf documentation for `clear'.
22774 cat >confdef2sed.sed <<\_ACEOF
22779 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22781 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22784 # If some macros were called several times there might be several times
22785 # the same #defines, which is useless. Nevertheless, we may not want to
22786 # sort them, since we want the *last* AC-DEFINE to be honored.
22787 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22788 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22789 rm -f confdef2sed.sed
22791 # This sed command replaces #undef with comments. This is necessary, for
22792 # example, in the case of _POSIX_SOURCE, which is predefined and required
22793 # on some systems where configure will not decide to define it.
22794 cat >>conftest.undefs <<\_ACEOF
22795 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22798 # Break up conftest.defines because some shells have a limit on the size
22799 # of here documents, and old seds have small limits too (100 cmds).
22800 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22801 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22802 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22803 echo ' :' >>$CONFIG_STATUS
22804 rm -f conftest.tail
22805 while grep . conftest.defines >/dev/null
22807 # Write a limited-size here document to $tmp/defines.sed.
22808 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22809 # Speed up: don't consider the non `#define' lines.
22810 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22811 # Work around the forget-to-reset-the-flag bug.
22812 echo 't clr' >>$CONFIG_STATUS
22813 echo ': clr' >>$CONFIG_STATUS
22814 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22816 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22818 mv $tmp/out $tmp/in
22820 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22821 rm -f conftest.defines
22822 mv conftest.tail conftest.defines
22824 rm -f conftest.defines
22825 echo ' fi # grep' >>$CONFIG_STATUS
22826 echo >>$CONFIG_STATUS
22828 # Break up conftest.undefs because some shells have a limit on the size
22829 # of here documents, and old seds have small limits too (100 cmds).
22830 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22831 rm -f conftest.tail
22832 while grep . conftest.undefs >/dev/null
22834 # Write a limited-size here document to $tmp/undefs.sed.
22835 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22836 # Speed up: don't consider the non `#undef'
22837 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22838 # Work around the forget-to-reset-the-flag bug.
22839 echo 't clr' >>$CONFIG_STATUS
22840 echo ': clr' >>$CONFIG_STATUS
22841 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22843 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22845 mv $tmp/out $tmp/in
22847 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22848 rm -f conftest.undefs
22849 mv conftest.tail conftest.undefs
22851 rm -f conftest.undefs
22853 cat >>$CONFIG_STATUS <<\_ACEOF
22854 # Let's still pretend it is `configure' which instantiates (i.e., don't
22855 # use $as_me), people would be surprised to read:
22856 # /* config.h. Generated by config.status. */
22857 if test x"$ac_file" = x-; then
22858 echo "/* Generated by configure. */" >$tmp/config.h
22860 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22862 cat $tmp/in >>$tmp/config.h
22864 if test x"$ac_file" != x-; then
22865 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22866 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22867 echo "$as_me: $ac_file is unchanged" >&6;}
22869 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22870 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22871 X"$ac_file" : 'X\(//\)[^/]' \| \
22872 X"$ac_file" : 'X\(//\)$' \| \
22873 X"$ac_file" : 'X\(/\)' \| \
22874 . : '\(.\)' 2>/dev/null ||
22876 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22877 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22878 /^X\(\/\/\)$/{ s//\1/; q; }
22879 /^X\(\/\).*/{ s//\1/; q; }
22881 { if $as_mkdir_p; then
22886 while test ! -d "$as_dir"; do
22887 as_dirs="$as_dir $as_dirs"
22888 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22889 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22890 X"$as_dir" : 'X\(//\)[^/]' \| \
22891 X"$as_dir" : 'X\(//\)$' \| \
22892 X"$as_dir" : 'X\(/\)' \| \
22893 . : '\(.\)' 2>/dev/null ||
22895 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22896 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22897 /^X\(\/\/\)$/{ s//\1/; q; }
22898 /^X\(\/\).*/{ s//\1/; q; }
22901 test ! -n "$as_dirs" || mkdir $as_dirs
22902 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22903 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22904 { (exit 1); exit 1; }; }; }
22907 mv $tmp/config.h $ac_file
22911 rm -f $tmp/config.h
22915 cat >>$CONFIG_STATUS <<\_ACEOF
22918 # CONFIG_COMMANDS section.
22920 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22921 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22922 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22923 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22924 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22925 X"$ac_dest" : 'X\(//\)[^/]' \| \
22926 X"$ac_dest" : 'X\(//\)$' \| \
22927 X"$ac_dest" : 'X\(/\)' \| \
22928 . : '\(.\)' 2>/dev/null ||
22930 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22931 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22932 /^X\(\/\/\)$/{ s//\1/; q; }
22933 /^X\(\/\).*/{ s//\1/; q; }
22935 { if $as_mkdir_p; then
22940 while test ! -d "$as_dir"; do
22941 as_dirs="$as_dir $as_dirs"
22942 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22943 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22944 X"$as_dir" : 'X\(//\)[^/]' \| \
22945 X"$as_dir" : 'X\(//\)$' \| \
22946 X"$as_dir" : 'X\(/\)' \| \
22947 . : '\(.\)' 2>/dev/null ||
22949 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22950 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22951 /^X\(\/\/\)$/{ s//\1/; q; }
22952 /^X\(\/\).*/{ s//\1/; q; }
22955 test ! -n "$as_dirs" || mkdir $as_dirs
22956 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22957 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22958 { (exit 1); exit 1; }; }; }
22962 if test "$ac_dir" != .; then
22963 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22964 # A "../" for each directory in $ac_dir_suffix.
22965 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22967 ac_dir_suffix= ac_top_builddir=
22971 .) # No --srcdir option. We are building in place.
22973 if test -z "$ac_top_builddir"; then
22976 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22978 [\\/]* | ?:[\\/]* ) # Absolute path.
22979 ac_srcdir=$srcdir$ac_dir_suffix;
22980 ac_top_srcdir=$srcdir ;;
22981 *) # Relative path.
22982 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22983 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22986 # Do not use `cd foo && pwd` to compute absolute paths, because
22987 # the directories may not exist.
22989 .) ac_abs_builddir="$ac_dir";;
22992 .) ac_abs_builddir=`pwd`;;
22993 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22994 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22997 case $ac_abs_builddir in
22998 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23000 case ${ac_top_builddir}. in
23001 .) ac_abs_top_builddir=$ac_abs_builddir;;
23002 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23003 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23006 case $ac_abs_builddir in
23007 .) ac_abs_srcdir=$ac_srcdir;;
23010 .) ac_abs_srcdir=$ac_abs_builddir;;
23011 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23012 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23015 case $ac_abs_builddir in
23016 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23018 case $ac_top_srcdir in
23019 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23020 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23021 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23026 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23027 echo "$as_me: executing $ac_dest commands" >&6;}
23029 default ) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
23035 cat >>$CONFIG_STATUS <<\_ACEOF
23037 { (exit 0); exit 0; }
23039 chmod +x $CONFIG_STATUS
23040 ac_clean_files=$ac_clean_files_save
23043 # configure is writing to config.log, and then calls config.status.
23044 # config.status does its own redirection, appending to config.log.
23045 # Unfortunately, on DOS this fails, as config.log is still kept open
23046 # by configure, so config.status won't be able to write to it; its
23047 # output is simply discarded. So we exec the FD to /dev/null,
23048 # effectively closing config.log, so it can be properly (re)opened and
23049 # appended to by config.status. When coming back to configure, we
23050 # need to make the FD available again.
23051 if test "$no_create" != yes; then
23053 ac_config_status_args=
23054 test "$silent" = yes &&
23055 ac_config_status_args="$ac_config_status_args --quiet"
23057 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23059 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23060 # would make configure fail if this is the last instruction.
23061 $ac_cs_success || { (exit 1); exit 1; }
23066 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
23067 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
23072 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
23073 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
23075 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
23076 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
23078 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
23079 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
23081 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
23082 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
23084 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
23085 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
23087 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
23088 chmod 755 $c/sqlite
23091 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
23092 largefile_support="yes"
23096 # A whole lot of hand springs to get the compiler version.
23097 # This is because gcc changed the output in version 3.0
23099 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
23100 if test "x${CCVERSION}" = "x" ; then
23101 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
23103 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
23104 if test x"${CXXVERSION}" = x ; then
23105 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
23108 if test "x${subsysdir}" = "x${sbindir}" ; then
23111 echo "You have set --sbindir and --with-subsys-dir"
23112 echo " both equal to: ${subsysdir} "
23113 echo " This is not permitted. Please reconfigure."
23115 echo "Aborting configuration ..."
23121 if test "x${db_name}" = "xInternal" ; then
23124 echo "You have not specified either --enable-client-only or one of the"
23125 echo " supported databases: MySQL, PostgreSQL, SQLite3 or SQLite."
23126 echo " This is not permitted. Please reconfigure."
23128 echo "Aborting the configuration ..."
23135 Configuration on `date`:
23137 Host: $host -- ${DISTNAME} ${DISTVER}
23138 Bacula version: ${VERSION} (${DATE})
23139 Source code location: ${srcdir}
23140 Install binaries: ${sbindir}
23141 Install config files: ${sysconfdir}
23142 Scripts directory: ${scriptdir}
23143 Working directory: ${working_dir}
23144 PID directory: ${piddir}
23145 Subsys directory: ${subsysdir}
23146 C Compiler: ${CC} ${CCVERSION}
23147 C++ Compiler: ${CXX} ${CXXVERSION}
23148 Compiler flags: ${WCFLAGS} ${CFLAGS}
23149 Linker flags: ${WLDFLAGS} ${LDFLAGS}
23151 Statically Linked Tools: ${support_static_tools}
23152 Statically Linked FD: ${support_static_fd}
23153 Statically Linked SD: ${support_static_sd}
23154 Statically Linked DIR: ${support_static_dir}
23155 Statically Linked CONS: ${support_static_cons}
23156 Database type: ${db_name}
23157 Database lib: ${DB_LIBS}
23159 Job Output Email: ${job_email}
23160 Traceback Email: ${dump_email}
23161 SMTP Host Address: ${smtp_host}
23163 Director Port: ${dir_port}
23164 File daemon Port: ${fd_port}
23165 Storage daemon Port: ${sd_port}
23167 Director User: ${dir_user}
23168 Director Group: ${dir_group}
23169 Storage Daemon User: ${sd_user}
23170 Storage DaemonGroup: ${sd_group}
23171 File Daemon User: ${fd_user}
23172 File Daemon Group: ${fd_group}
23174 SQL binaries Directory ${SQL_BINDIR}
23176 Large file support: $largefile_support
23177 Bacula conio support: ${got_conio} ${CONS_LIBS}
23178 readline support: ${got_readline} ${PRTREADLINE_SRC}
23179 TCP Wrappers support: ${TCPW_MSG}
23180 TLS support: ${support_tls}
23181 ZLIB support: ${have_zlib}
23182 enable-smartalloc: ${support_smartalloc}
23183 enable-gnome: ${support_gnome} ${gnome_version}
23184 enable-wx-console: ${support_wx_console} ${wx_version}
23185 enable-tray-monitor: ${support_tray_monitor}
23186 client-only: ${build_client_only}
23187 ACL support: ${have_acl}
23188 Python support: ${support_python} ${PYTHON_LIBS}