2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file="src/version.h"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS BUILD_DIR TRUEPRG FALSEPRG VERSION DATE LSMDATE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB MV RM CP SED ECHO CMP TBL AR OPENSSL MTX MKISOFS PYTHON GROWISOFS DVDRWMEDIAINFO PKGCONFIG WXCONFIG CDRECORD PIDOF AWK ARFLAGS MAKE_SHELL LOCAL_LIBS LOCAL_CFLAGS LOCAL_LDFLAGS LOCAL_DEFS build build_cpu build_vendor build_os host host_cpu host_vendor host_os HAVE_SUN_OS_TRUE HAVE_SUN_OS_FALSE HAVE_OSF1_OS_TRUE HAVE_OSF1_OS_FALSE HAVE_AIX_OS_TRUE HAVE_AIX_OS_FALSE HAVE_HPUX_OS_TRUE HAVE_HPUX_OS_FALSE HAVE_LINUX_OS_TRUE HAVE_LINUX_OS_FALSE HAVE_FREEBSD_OS_TRUE HAVE_FREEBSD_OS_FALSE HAVE_NETBSD_OS_TRUE HAVE_NETBSD_OS_FALSE HAVE_OPENBSD_OS_TRUE HAVE_OPENBSD_OS_FALSE HAVE_BSDI_OS_TRUE HAVE_BSDI_OS_FALSE HAVE_SGI_OS_TRUE HAVE_SGI_OS_FALSE HAVE_IRIX_OS_TRUE HAVE_IRIX_OS_FALSE HAVE_DARWIN_OS_TRUE HAVE_DARWIN_OS_FALSE INSIDE_GNOME_COMMON_TRUE INSIDE_GNOME_COMMON_FALSE MSGFMT GNOME_INCLUDEDIR GNOMEUI_LIBS GNOME_LIBDIR GNOME_LIBS GNOMEGNORBA_LIBS GTKXMHTML_LIBS ZVT_LIBS GNOME_CONFIG ORBIT_CONFIG ORBIT_IDL HAVE_ORBIT_TRUE HAVE_ORBIT_FALSE ORBIT_CFLAGS ORBIT_LIBS HAVE_GNORBA_TRUE HAVE_GNORBA_FALSE GNORBA_CFLAGS GNORBA_LIBS GNOME_APPLETS_LIBS GNOME_DOCKLETS_LIBS GNOME_CAPPLET_LIBS GNOME_DIR WXCONS_CPPFLAGS WXCONS_LDFLAGS WX_DIR TRAY_MONITOR_CPPFLAGS TRAY_MONITOR_LDFLAGS TRAY_MONITOR_DIR TTOOL_LDFLAGS STATIC_FD STATIC_SD STATIC_DIR STATIC_CONS STATIC_GNOME_CONS STATIC_WX_CONS ALL_DIRS CONS_INC CONS_OBJ CONS_SRC CONS_LIBS CONS_LDFLAGS READLINE_SRC PYTHON_LIBS PYTHON_INCDIR 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
783 # Report the --help message.
785 if test "$ac_init_help" = "long"; then
786 # Omit some internal or obsolete options to make the list less imposing.
787 # This message is too long to be a string in the A/UX 3.1 sh.
789 \`configure' configures this package to adapt to many kinds of systems.
791 Usage: $0 [OPTION]... [VAR=VALUE]...
793 To assign environment variables (e.g., CC, CFLAGS...), specify them as
794 VAR=VALUE. See below for descriptions of some of the useful variables.
796 Defaults for the options are specified in brackets.
799 -h, --help display this help and exit
800 --help=short display options specific to this package
801 --help=recursive display the short help of all the included packages
802 -V, --version display version information and exit
803 -q, --quiet, --silent do not print \`checking...' messages
804 --cache-file=FILE cache test results in FILE [disabled]
805 -C, --config-cache alias for \`--cache-file=config.cache'
806 -n, --no-create do not create output files
807 --srcdir=DIR find the sources in DIR [configure dir or \`..']
812 Installation directories:
813 --prefix=PREFIX install architecture-independent files in PREFIX
815 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
818 By default, \`make install' will install all the files in
819 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
820 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
821 for instance \`--prefix=\$HOME'.
823 For better control, use the options below.
825 Fine tuning of the installation directories:
826 --bindir=DIR user executables [EPREFIX/bin]
827 --sbindir=DIR system admin executables [EPREFIX/sbin]
828 --libexecdir=DIR program executables [EPREFIX/libexec]
829 --datadir=DIR read-only architecture-independent data [PREFIX/share]
830 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
831 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
832 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
833 --libdir=DIR object code libraries [EPREFIX/lib]
834 --includedir=DIR C header files [PREFIX/include]
835 --oldincludedir=DIR C header files for non-gcc [/usr/include]
836 --infodir=DIR info documentation [PREFIX/info]
837 --mandir=DIR man documentation [PREFIX/man]
843 --x-includes=DIR X include files are in DIR
844 --x-libraries=DIR X library files are in DIR
847 --build=BUILD configure for building on BUILD [guessed]
848 --host=HOST cross-compile to build programs to run on HOST [BUILD]
852 if test -n "$ac_init_help"; then
857 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
858 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
859 --enable-gnome enable build of gnome-console GUI disabled
860 --enable-wx-console enable build of wxWidgets console disabled
861 --enable-tray-monitor enable build of Gnome tray monitor (compatible with KDE) disabled
862 --enable-smartalloc enable smartalloc debugging support disabled
863 --enable-static-tools enable static tape tools disabled
864 --enable-static-fd enable static File daemon disabled
865 --enable-static-sd enable static Storage daemon disabled
866 --enable-static-dir enable static Director disabled
867 --enable-static-cons enable static Console disabled
868 --enable-client-only build client (File daemon) only disabled
869 --disable-conio disable conio support enabled
871 --disable-readline disable readline support disable
873 --disable-largefile omit support for large files
876 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
877 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
878 --with-gnome-includes Specify location of GNOME headers
879 --with-gnome-libs Specify location of GNOME libs
880 --with-gnome Specify prefix for GNOME files
881 --with-readline=DIR specify readline library directory
883 --with-python=DIR Include Python support. DIR is the Python base
884 install directory, default is to search through
885 a number of common places for the Python files.
886 --with-tcp-wrappers=DIR enable tcpwrappers support
888 Include OpenSSL support. DIR is the OpenSSL base
889 --with-working-dir=PATH specify path of Bacula working directory
890 --with-scriptdir=PATH specify path of Bacula scripts directory
891 --with-dump-email=EMAIL dump email address
892 --with-job-email=EMAIL job output email address
893 --with-smtp-host=HOST SMTP mail host address
894 --with-pid-dir=PATH specify location of Bacula pid files
895 --with-subsys-dir=PATH specify location of Bacula subsys file
896 --with-baseport=PORT specify base port address for daemons
897 --with-dir-password=PASSWORD specify Director's password
898 --with-fd-password=PASSWORD specify Client's password
899 --with-sd-password=PASSWORD specify Storage daemon's password
900 --with-mon-dir-password=PASSWORD specify Director's password used by the monitor
901 --with-mon-fd-password=PASSWORD specify Client's password used by the monitor
902 --with-mon-sd-password=PASSWORD specify Storage daemon's password used by the monitor
903 --with-bimagemgr-cgidir=DIR specify bimagemgr cgi-bin dir
904 --with-bimagemgr-docdir=DIR specify bimagemgr doc root dir
905 --with-bimagemgr-binowner=USER specify bimagemgr binary file owner
906 --with-bimagemgr-bingroup=USER specify bimagemgr binary file group
907 --with-bimagemgr-dataowner=USER specify bimagemgr data file owner
908 --with-bimagemgr-datagroup=USER specify bimagemgr data file group
909 --with-dir-user=USER specify user for Director daemon
910 --with-dir-group=GROUP specify group for Director daemon
911 --with-sd-user=USER specify user for Storage daemon
912 --with-sd-group=GROUP specify group for Storage daemon
913 --with-fd-user=USER specify user for File daemon
914 --with-fd-group=GROUP specify group for File daemon
915 --with-sbin-perm=MODE specify permissions for sbin binaries (0754)
916 --with-postgresql=DIR Include PostgreSQL support. DIR is the PostgreSQL
917 base install directory, defaults to /usr/local/pgsql
919 --with-mysql=DIR Include MySQL support. DIR is the MySQL base
920 install directory, default is to search through
921 a number of common places for the MySQL files.
923 --with-embedded-mysql=DIR Include MySQL support. DIR is the MySQL base
924 install directory, default is to search through
925 a number of common places for the MySQL files.
927 --with-sqlite3=DIR Include SQLite3 support. DIR is the SQLite3 base
928 install directory, default is to search through
929 a number of common places for the SQLite3 files.
931 --with-sqlite=DIR Include SQLite support. DIR is the SQLite base
932 install directory, default is to search through
933 a number of common places for the SQLite files.
934 --with-x use the X Window System
936 Some influential environment variables:
937 CC C compiler command
938 CFLAGS C compiler flags
939 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
940 nonstandard directory <lib dir>
941 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
942 headers in a nonstandard directory <include dir>
943 CXX C++ compiler command
944 CXXFLAGS C++ compiler flags
947 Use these variables to override the choices made by `configure' or to help
948 it to find libraries and programs with nonstandard names/locations.
953 if test "$ac_init_help" = "recursive"; then
954 # If there are subdirs, report their specific --help.
956 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
957 test -d $ac_dir || continue
960 if test "$ac_dir" != .; then
961 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
962 # A "../" for each directory in $ac_dir_suffix.
963 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
965 ac_dir_suffix= ac_top_builddir=
969 .) # No --srcdir option. We are building in place.
971 if test -z "$ac_top_builddir"; then
974 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
976 [\\/]* | ?:[\\/]* ) # Absolute path.
977 ac_srcdir=$srcdir$ac_dir_suffix;
978 ac_top_srcdir=$srcdir ;;
980 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
981 ac_top_srcdir=$ac_top_builddir$srcdir ;;
984 # Do not use `cd foo && pwd` to compute absolute paths, because
985 # the directories may not exist.
987 .) ac_abs_builddir="$ac_dir";;
990 .) ac_abs_builddir=`pwd`;;
991 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
992 *) ac_abs_builddir=`pwd`/"$ac_dir";;
995 case $ac_abs_builddir in
996 .) ac_abs_top_builddir=${ac_top_builddir}.;;
998 case ${ac_top_builddir}. in
999 .) ac_abs_top_builddir=$ac_abs_builddir;;
1000 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1001 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1004 case $ac_abs_builddir in
1005 .) ac_abs_srcdir=$ac_srcdir;;
1008 .) ac_abs_srcdir=$ac_abs_builddir;;
1009 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1010 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1013 case $ac_abs_builddir in
1014 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1016 case $ac_top_srcdir in
1017 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1018 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1019 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1024 # Check for guested configure; otherwise get Cygnus style configure.
1025 if test -f $ac_srcdir/configure.gnu; then
1027 $SHELL $ac_srcdir/configure.gnu --help=recursive
1028 elif test -f $ac_srcdir/configure; then
1030 $SHELL $ac_srcdir/configure --help=recursive
1031 elif test -f $ac_srcdir/configure.ac ||
1032 test -f $ac_srcdir/configure.in; then
1034 $ac_configure --help
1036 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1042 test -n "$ac_init_help" && exit 0
1043 if $ac_init_version; then
1046 Copyright (C) 2003 Free Software Foundation, Inc.
1047 This configure script is free software; the Free Software Foundation
1048 gives unlimited permission to copy, distribute and modify it.
1054 This file contains any messages produced by compilers while
1055 running configure, to aid debugging if configure makes a mistake.
1057 It was created by $as_me, which was
1058 generated by GNU Autoconf 2.59. Invocation command line was
1069 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1070 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1071 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1072 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1073 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1075 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1076 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1078 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1079 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1080 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1081 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1082 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1083 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1084 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1092 test -z "$as_dir" && as_dir=.
1093 echo "PATH: $as_dir"
1108 # Keep a trace of the command line.
1109 # Strip out --no-create and --no-recursion so they do not pile up.
1110 # Strip out --silent because we don't want to record it for future runs.
1111 # Also quote any args containing shell meta-characters.
1112 # Make two passes to allow for proper duplicate-argument suppression.
1117 ac_must_keep_next=false
1123 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1124 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1125 | -silent | --silent | --silen | --sile | --sil)
1127 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1128 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1131 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1133 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1134 if test $ac_must_keep_next = true; then
1135 ac_must_keep_next=false # Got value, back to normal.
1138 *=* | --config-cache | -C | -disable-* | --disable-* \
1139 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1140 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1141 | -with-* | --with-* | -without-* | --without-* | --x)
1142 case "$ac_configure_args0 " in
1143 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1146 -* ) ac_must_keep_next=true ;;
1149 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1150 # Get rid of the leading space.
1156 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1157 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1159 # When interrupted or exit'd, cleanup temporary files, and complete
1160 # config.log. We remove comments because anyway the quotes in there
1161 # would cause problems or look ugly.
1162 # WARNING: Be sure not to use single quotes in there, as some shells,
1163 # such as our DU 5.0 friend, will then `close' the trap.
1164 trap 'exit_status=$?
1165 # Save into config.log some information that might help in debugging.
1170 ## ---------------- ##
1171 ## Cache variables. ##
1172 ## ---------------- ##
1175 # The following way of writing the cache mishandles newlines in values,
1178 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1181 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1182 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1186 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1193 ## ----------------- ##
1194 ## Output variables. ##
1195 ## ----------------- ##
1198 for ac_var in $ac_subst_vars
1200 eval ac_val=$`echo $ac_var`
1201 echo "$ac_var='"'"'$ac_val'"'"'"
1205 if test -n "$ac_subst_files"; then
1212 for ac_var in $ac_subst_files
1214 eval ac_val=$`echo $ac_var`
1215 echo "$ac_var='"'"'$ac_val'"'"'"
1220 if test -s confdefs.h; then
1227 sed "/^$/d" confdefs.h | sort
1230 test "$ac_signal" != 0 &&
1231 echo "$as_me: caught signal $ac_signal"
1232 echo "$as_me: exit $exit_status"
1234 rm -f core *.core &&
1235 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1238 for ac_signal in 1 2 13 15; do
1239 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1243 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1244 rm -rf conftest* confdefs.h
1245 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1248 # Predefined preprocessor variables.
1250 cat >>confdefs.h <<_ACEOF
1251 #define PACKAGE_NAME "$PACKAGE_NAME"
1255 cat >>confdefs.h <<_ACEOF
1256 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1260 cat >>confdefs.h <<_ACEOF
1261 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1265 cat >>confdefs.h <<_ACEOF
1266 #define PACKAGE_STRING "$PACKAGE_STRING"
1270 cat >>confdefs.h <<_ACEOF
1271 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1275 # Let the site file select an alternate cache file if it wants to.
1276 # Prefer explicitly selected file to automatically selected ones.
1277 if test -z "$CONFIG_SITE"; then
1278 if test "x$prefix" != xNONE; then
1279 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1281 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1284 for ac_site_file in $CONFIG_SITE; do
1285 if test -r "$ac_site_file"; then
1286 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1287 echo "$as_me: loading site script $ac_site_file" >&6;}
1288 sed 's/^/| /' "$ac_site_file" >&5
1293 if test -r "$cache_file"; then
1294 # Some versions of bash will fail to source /dev/null (special
1295 # files actually), so we avoid doing that.
1296 if test -f "$cache_file"; then
1297 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1298 echo "$as_me: loading cache $cache_file" >&6;}
1300 [\\/]* | ?:[\\/]* ) . $cache_file;;
1301 *) . ./$cache_file;;
1305 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1306 echo "$as_me: creating cache $cache_file" >&6;}
1310 # Check that the precious variables saved in the cache have kept the same
1312 ac_cache_corrupted=false
1313 for ac_var in `(set) 2>&1 |
1314 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1315 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1316 eval ac_new_set=\$ac_env_${ac_var}_set
1317 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1318 eval ac_new_val="\$ac_env_${ac_var}_value"
1319 case $ac_old_set,$ac_new_set in
1321 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1322 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1323 ac_cache_corrupted=: ;;
1325 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1326 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1327 ac_cache_corrupted=: ;;
1330 if test "x$ac_old_val" != "x$ac_new_val"; then
1331 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1332 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1333 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1334 echo "$as_me: former value: $ac_old_val" >&2;}
1335 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1336 echo "$as_me: current value: $ac_new_val" >&2;}
1337 ac_cache_corrupted=:
1340 # Pass precious variables to config.status.
1341 if test "$ac_new_set" = set; then
1343 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1344 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1345 *) ac_arg=$ac_var=$ac_new_val ;;
1347 case " $ac_configure_args " in
1348 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1349 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1353 if $ac_cache_corrupted; then
1354 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1355 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1356 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1357 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1358 { (exit 1); exit 1; }; }
1362 ac_cpp='$CPP $CPPFLAGS'
1363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1391 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1392 if test -f $ac_dir/install-sh; then
1394 ac_install_sh="$ac_aux_dir/install-sh -c"
1396 elif test -f $ac_dir/install.sh; then
1398 ac_install_sh="$ac_aux_dir/install.sh -c"
1400 elif test -f $ac_dir/shtool; then
1402 ac_install_sh="$ac_aux_dir/shtool install -c"
1406 if test -z "$ac_aux_dir"; then
1407 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1408 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1409 { (exit 1); exit 1; }; }
1411 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1412 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1413 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1415 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1423 # Extract the first word of "$ac_prog", so it can be a program name with args.
1424 set dummy $ac_prog; ac_word=$2
1425 echo "$as_me:$LINENO: checking for $ac_word" >&5
1426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1427 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1428 echo $ECHO_N "(cached) $ECHO_C" >&6
1432 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1439 test -z "$as_dir" && as_dir=.
1440 for ac_exec_ext in '' $ac_executable_extensions; do
1441 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1442 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1452 TRUEPRG=$ac_cv_path_TRUEPRG
1454 if test -n "$TRUEPRG"; then
1455 echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1456 echo "${ECHO_T}$TRUEPRG" >&6
1458 echo "$as_me:$LINENO: result: no" >&5
1459 echo "${ECHO_T}no" >&6
1462 test -n "$TRUEPRG" && break
1464 test -n "$TRUEPRG" || TRUEPRG=":"
1466 for ac_prog in false
1468 # Extract the first word of "$ac_prog", so it can be a program name with args.
1469 set dummy $ac_prog; ac_word=$2
1470 echo "$as_me:$LINENO: checking for $ac_word" >&5
1471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1472 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1473 echo $ECHO_N "(cached) $ECHO_C" >&6
1477 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1484 test -z "$as_dir" && as_dir=.
1485 for ac_exec_ext in '' $ac_executable_extensions; do
1486 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1487 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1497 FALSEPRG=$ac_cv_path_FALSEPRG
1499 if test -n "$FALSEPRG"; then
1500 echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1501 echo "${ECHO_T}$FALSEPRG" >&6
1503 echo "$as_me:$LINENO: result: no" >&5
1504 echo "${ECHO_T}no" >&6
1507 test -n "$FALSEPRG" && break
1509 test -n "$FALSEPRG" || FALSEPRG=":"
1514 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1515 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1516 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1517 echo "configuring for bacula $VERSION ($DATE)"
1522 ac_cpp='$CPP $CPPFLAGS'
1523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1526 if test -n "$ac_tool_prefix"; then
1527 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1528 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1529 echo "$as_me:$LINENO: checking for $ac_word" >&5
1530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1531 if test "${ac_cv_prog_CC+set}" = set; then
1532 echo $ECHO_N "(cached) $ECHO_C" >&6
1534 if test -n "$CC"; then
1535 ac_cv_prog_CC="$CC" # Let the user override the test.
1537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1541 test -z "$as_dir" && as_dir=.
1542 for ac_exec_ext in '' $ac_executable_extensions; do
1543 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1544 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1554 if test -n "$CC"; then
1555 echo "$as_me:$LINENO: result: $CC" >&5
1556 echo "${ECHO_T}$CC" >&6
1558 echo "$as_me:$LINENO: result: no" >&5
1559 echo "${ECHO_T}no" >&6
1563 if test -z "$ac_cv_prog_CC"; then
1565 # Extract the first word of "gcc", so it can be a program name with args.
1566 set dummy gcc; ac_word=$2
1567 echo "$as_me:$LINENO: checking for $ac_word" >&5
1568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1569 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1570 echo $ECHO_N "(cached) $ECHO_C" >&6
1572 if test -n "$ac_ct_CC"; then
1573 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1579 test -z "$as_dir" && as_dir=.
1580 for ac_exec_ext in '' $ac_executable_extensions; do
1581 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1582 ac_cv_prog_ac_ct_CC="gcc"
1583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1591 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1592 if test -n "$ac_ct_CC"; then
1593 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1594 echo "${ECHO_T}$ac_ct_CC" >&6
1596 echo "$as_me:$LINENO: result: no" >&5
1597 echo "${ECHO_T}no" >&6
1605 if test -z "$CC"; then
1606 if test -n "$ac_tool_prefix"; then
1607 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1608 set dummy ${ac_tool_prefix}cc; ac_word=$2
1609 echo "$as_me:$LINENO: checking for $ac_word" >&5
1610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1611 if test "${ac_cv_prog_CC+set}" = set; then
1612 echo $ECHO_N "(cached) $ECHO_C" >&6
1614 if test -n "$CC"; then
1615 ac_cv_prog_CC="$CC" # Let the user override the test.
1617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1621 test -z "$as_dir" && as_dir=.
1622 for ac_exec_ext in '' $ac_executable_extensions; do
1623 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1624 ac_cv_prog_CC="${ac_tool_prefix}cc"
1625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1634 if test -n "$CC"; then
1635 echo "$as_me:$LINENO: result: $CC" >&5
1636 echo "${ECHO_T}$CC" >&6
1638 echo "$as_me:$LINENO: result: no" >&5
1639 echo "${ECHO_T}no" >&6
1643 if test -z "$ac_cv_prog_CC"; then
1645 # Extract the first word of "cc", so it can be a program name with args.
1646 set dummy cc; ac_word=$2
1647 echo "$as_me:$LINENO: checking for $ac_word" >&5
1648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1649 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1650 echo $ECHO_N "(cached) $ECHO_C" >&6
1652 if test -n "$ac_ct_CC"; then
1653 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1659 test -z "$as_dir" && as_dir=.
1660 for ac_exec_ext in '' $ac_executable_extensions; do
1661 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1662 ac_cv_prog_ac_ct_CC="cc"
1663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1671 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1672 if test -n "$ac_ct_CC"; then
1673 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1674 echo "${ECHO_T}$ac_ct_CC" >&6
1676 echo "$as_me:$LINENO: result: no" >&5
1677 echo "${ECHO_T}no" >&6
1686 if test -z "$CC"; then
1687 # Extract the first word of "cc", so it can be a program name with args.
1688 set dummy cc; ac_word=$2
1689 echo "$as_me:$LINENO: checking for $ac_word" >&5
1690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1691 if test "${ac_cv_prog_CC+set}" = set; then
1692 echo $ECHO_N "(cached) $ECHO_C" >&6
1694 if test -n "$CC"; then
1695 ac_cv_prog_CC="$CC" # Let the user override the test.
1698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1702 test -z "$as_dir" && as_dir=.
1703 for ac_exec_ext in '' $ac_executable_extensions; do
1704 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1705 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1706 ac_prog_rejected=yes
1710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1716 if test $ac_prog_rejected = yes; then
1717 # We found a bogon in the path, so make sure we never use it.
1718 set dummy $ac_cv_prog_CC
1720 if test $# != 0; then
1721 # We chose a different compiler from the bogus one.
1722 # However, it has the same basename, so the bogon will be chosen
1723 # first if we set CC to just the basename; use the full file name.
1725 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1731 if test -n "$CC"; then
1732 echo "$as_me:$LINENO: result: $CC" >&5
1733 echo "${ECHO_T}$CC" >&6
1735 echo "$as_me:$LINENO: result: no" >&5
1736 echo "${ECHO_T}no" >&6
1740 if test -z "$CC"; then
1741 if test -n "$ac_tool_prefix"; then
1744 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1745 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1746 echo "$as_me:$LINENO: checking for $ac_word" >&5
1747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1748 if test "${ac_cv_prog_CC+set}" = set; then
1749 echo $ECHO_N "(cached) $ECHO_C" >&6
1751 if test -n "$CC"; then
1752 ac_cv_prog_CC="$CC" # Let the user override the test.
1754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1758 test -z "$as_dir" && as_dir=.
1759 for ac_exec_ext in '' $ac_executable_extensions; do
1760 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1761 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1762 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1771 if test -n "$CC"; then
1772 echo "$as_me:$LINENO: result: $CC" >&5
1773 echo "${ECHO_T}$CC" >&6
1775 echo "$as_me:$LINENO: result: no" >&5
1776 echo "${ECHO_T}no" >&6
1779 test -n "$CC" && break
1782 if test -z "$CC"; then
1786 # Extract the first word of "$ac_prog", so it can be a program name with args.
1787 set dummy $ac_prog; ac_word=$2
1788 echo "$as_me:$LINENO: checking for $ac_word" >&5
1789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1790 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1791 echo $ECHO_N "(cached) $ECHO_C" >&6
1793 if test -n "$ac_ct_CC"; then
1794 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1800 test -z "$as_dir" && as_dir=.
1801 for ac_exec_ext in '' $ac_executable_extensions; do
1802 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1803 ac_cv_prog_ac_ct_CC="$ac_prog"
1804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1812 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1813 if test -n "$ac_ct_CC"; then
1814 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1815 echo "${ECHO_T}$ac_ct_CC" >&6
1817 echo "$as_me:$LINENO: result: no" >&5
1818 echo "${ECHO_T}no" >&6
1821 test -n "$ac_ct_CC" && break
1830 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1831 See \`config.log' for more details." >&5
1832 echo "$as_me: error: no acceptable C compiler found in \$PATH
1833 See \`config.log' for more details." >&2;}
1834 { (exit 1); exit 1; }; }
1836 # Provide some information about the compiler.
1837 echo "$as_me:$LINENO:" \
1838 "checking for C compiler version" >&5
1839 ac_compiler=`set X $ac_compile; echo $2`
1840 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1841 (eval $ac_compiler --version </dev/null >&5) 2>&5
1843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1844 (exit $ac_status); }
1845 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1846 (eval $ac_compiler -v </dev/null >&5) 2>&5
1848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1849 (exit $ac_status); }
1850 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1851 (eval $ac_compiler -V </dev/null >&5) 2>&5
1853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1854 (exit $ac_status); }
1856 cat >conftest.$ac_ext <<_ACEOF
1859 cat confdefs.h >>conftest.$ac_ext
1860 cat >>conftest.$ac_ext <<_ACEOF
1861 /* end confdefs.h. */
1871 ac_clean_files_save=$ac_clean_files
1872 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1873 # Try to create an executable without -o first, disregard a.out.
1874 # It will help us diagnose broken compilers, and finding out an intuition
1876 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1877 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1878 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1879 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1880 (eval $ac_link_default) 2>&5
1882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1883 (exit $ac_status); }; then
1884 # Find the output, starting from the most likely. This scheme is
1885 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1888 # Be careful to initialize this variable, since it used to be cached.
1889 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1891 # b.out is created by i960 compilers.
1892 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1894 test -f "$ac_file" || continue
1896 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1899 # This is the source file.
1902 # We found the default executable, but exeext='' is most
1906 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1907 # FIXME: I believe we export ac_cv_exeext for Libtool,
1908 # but it would be cool to find out if it's true. Does anybody
1909 # maintain Libtool? --akim.
1917 echo "$as_me: failed program was:" >&5
1918 sed 's/^/| /' conftest.$ac_ext >&5
1920 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1921 See \`config.log' for more details." >&5
1922 echo "$as_me: error: C compiler cannot create executables
1923 See \`config.log' for more details." >&2;}
1924 { (exit 77); exit 77; }; }
1927 ac_exeext=$ac_cv_exeext
1928 echo "$as_me:$LINENO: result: $ac_file" >&5
1929 echo "${ECHO_T}$ac_file" >&6
1931 # Check the compiler produces executables we can run. If not, either
1932 # the compiler is broken, or we cross compile.
1933 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1934 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1935 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1936 # If not cross compiling, check that we can run a simple program.
1937 if test "$cross_compiling" != yes; then
1938 if { ac_try='./$ac_file'
1939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1943 (exit $ac_status); }; }; then
1946 if test "$cross_compiling" = maybe; then
1949 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1950 If you meant to cross compile, use \`--host'.
1951 See \`config.log' for more details." >&5
1952 echo "$as_me: error: cannot run C compiled programs.
1953 If you meant to cross compile, use \`--host'.
1954 See \`config.log' for more details." >&2;}
1955 { (exit 1); exit 1; }; }
1959 echo "$as_me:$LINENO: result: yes" >&5
1960 echo "${ECHO_T}yes" >&6
1962 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1963 ac_clean_files=$ac_clean_files_save
1964 # Check the compiler produces executables we can run. If not, either
1965 # the compiler is broken, or we cross compile.
1966 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1967 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1968 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1969 echo "${ECHO_T}$cross_compiling" >&6
1971 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1972 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1974 (eval $ac_link) 2>&5
1976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1977 (exit $ac_status); }; then
1978 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1979 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1980 # work properly (i.e., refer to `conftest.exe'), while it won't with
1982 for ac_file in conftest.exe conftest conftest.*; do
1983 test -f "$ac_file" || continue
1985 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1986 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1993 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1994 See \`config.log' for more details." >&5
1995 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1996 See \`config.log' for more details." >&2;}
1997 { (exit 1); exit 1; }; }
2000 rm -f conftest$ac_cv_exeext
2001 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2002 echo "${ECHO_T}$ac_cv_exeext" >&6
2004 rm -f conftest.$ac_ext
2005 EXEEXT=$ac_cv_exeext
2007 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2008 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2009 if test "${ac_cv_objext+set}" = set; then
2010 echo $ECHO_N "(cached) $ECHO_C" >&6
2012 cat >conftest.$ac_ext <<_ACEOF
2015 cat confdefs.h >>conftest.$ac_ext
2016 cat >>conftest.$ac_ext <<_ACEOF
2017 /* end confdefs.h. */
2027 rm -f conftest.o conftest.obj
2028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2029 (eval $ac_compile) 2>&5
2031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2032 (exit $ac_status); }; then
2033 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2035 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2036 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2041 echo "$as_me: failed program was:" >&5
2042 sed 's/^/| /' conftest.$ac_ext >&5
2044 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2045 See \`config.log' for more details." >&5
2046 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2047 See \`config.log' for more details." >&2;}
2048 { (exit 1); exit 1; }; }
2051 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2053 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2054 echo "${ECHO_T}$ac_cv_objext" >&6
2055 OBJEXT=$ac_cv_objext
2057 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2058 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2059 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2060 echo $ECHO_N "(cached) $ECHO_C" >&6
2062 cat >conftest.$ac_ext <<_ACEOF
2065 cat confdefs.h >>conftest.$ac_ext
2066 cat >>conftest.$ac_ext <<_ACEOF
2067 /* end confdefs.h. */
2080 rm -f conftest.$ac_objext
2081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2082 (eval $ac_compile) 2>conftest.er1
2084 grep -v '^ *+' conftest.er1 >conftest.err
2086 cat conftest.err >&5
2087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2088 (exit $ac_status); } &&
2089 { ac_try='test -z "$ac_c_werror_flag"
2090 || test ! -s conftest.err'
2091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2095 (exit $ac_status); }; } &&
2096 { ac_try='test -s conftest.$ac_objext'
2097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2101 (exit $ac_status); }; }; then
2104 echo "$as_me: failed program was:" >&5
2105 sed 's/^/| /' conftest.$ac_ext >&5
2109 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2110 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2113 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2114 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2115 GCC=`test $ac_compiler_gnu = yes && echo yes`
2116 ac_test_CFLAGS=${CFLAGS+set}
2117 ac_save_CFLAGS=$CFLAGS
2119 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2120 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2121 if test "${ac_cv_prog_cc_g+set}" = set; then
2122 echo $ECHO_N "(cached) $ECHO_C" >&6
2124 cat >conftest.$ac_ext <<_ACEOF
2127 cat confdefs.h >>conftest.$ac_ext
2128 cat >>conftest.$ac_ext <<_ACEOF
2129 /* end confdefs.h. */
2139 rm -f conftest.$ac_objext
2140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2141 (eval $ac_compile) 2>conftest.er1
2143 grep -v '^ *+' conftest.er1 >conftest.err
2145 cat conftest.err >&5
2146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2147 (exit $ac_status); } &&
2148 { ac_try='test -z "$ac_c_werror_flag"
2149 || test ! -s conftest.err'
2150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154 (exit $ac_status); }; } &&
2155 { ac_try='test -s conftest.$ac_objext'
2156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160 (exit $ac_status); }; }; then
2163 echo "$as_me: failed program was:" >&5
2164 sed 's/^/| /' conftest.$ac_ext >&5
2168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2170 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2171 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2172 if test "$ac_test_CFLAGS" = set; then
2173 CFLAGS=$ac_save_CFLAGS
2174 elif test $ac_cv_prog_cc_g = yes; then
2175 if test "$GCC" = yes; then
2181 if test "$GCC" = yes; then
2187 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2188 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2189 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2190 echo $ECHO_N "(cached) $ECHO_C" >&6
2192 ac_cv_prog_cc_stdc=no
2194 cat >conftest.$ac_ext <<_ACEOF
2197 cat confdefs.h >>conftest.$ac_ext
2198 cat >>conftest.$ac_ext <<_ACEOF
2199 /* end confdefs.h. */
2202 #include <sys/types.h>
2203 #include <sys/stat.h>
2204 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2205 struct buf { int x; };
2206 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2207 static char *e (p, i)
2213 static char *f (char * (*g) (char **, int), char **p, ...)
2218 s = g (p, va_arg (v,int));
2223 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2224 function prototypes and stuff, but not '\xHH' hex character constants.
2225 These don't provoke an error unfortunately, instead are silently treated
2226 as 'x'. The following induces an error, until -std1 is added to get
2227 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2228 array size at least. It's necessary to write '\x00'==0 to get something
2229 that's true only with -std1. */
2230 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2232 int test (int i, double x);
2233 struct s1 {int (*f) (int a);};
2234 struct s2 {int (*f) (double a);};
2235 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2241 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2246 # Don't try gcc -ansi; that turns off useful extensions and
2247 # breaks some systems' header files.
2248 # AIX -qlanglvl=ansi
2249 # Ultrix and OSF/1 -std1
2250 # HP-UX 10.20 and later -Ae
2251 # HP-UX older versions -Aa -D_HPUX_SOURCE
2252 # SVR4 -Xc -D__EXTENSIONS__
2253 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2255 CC="$ac_save_CC $ac_arg"
2256 rm -f conftest.$ac_objext
2257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2258 (eval $ac_compile) 2>conftest.er1
2260 grep -v '^ *+' conftest.er1 >conftest.err
2262 cat conftest.err >&5
2263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2264 (exit $ac_status); } &&
2265 { ac_try='test -z "$ac_c_werror_flag"
2266 || test ! -s conftest.err'
2267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271 (exit $ac_status); }; } &&
2272 { ac_try='test -s conftest.$ac_objext'
2273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277 (exit $ac_status); }; }; then
2278 ac_cv_prog_cc_stdc=$ac_arg
2281 echo "$as_me: failed program was:" >&5
2282 sed 's/^/| /' conftest.$ac_ext >&5
2285 rm -f conftest.err conftest.$ac_objext
2287 rm -f conftest.$ac_ext conftest.$ac_objext
2292 case "x$ac_cv_prog_cc_stdc" in
2294 echo "$as_me:$LINENO: result: none needed" >&5
2295 echo "${ECHO_T}none needed" >&6 ;;
2297 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2298 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2299 CC="$CC $ac_cv_prog_cc_stdc" ;;
2302 # Some people use a C++ compiler to compile C. Since we use `exit',
2303 # in C++ we need to declare it. In case someone uses the same compiler
2304 # for both compiling C and C++ we need to have the C++ compiler decide
2305 # the declaration of exit, since it's the most demanding environment.
2306 cat >conftest.$ac_ext <<_ACEOF
2311 rm -f conftest.$ac_objext
2312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2313 (eval $ac_compile) 2>conftest.er1
2315 grep -v '^ *+' conftest.er1 >conftest.err
2317 cat conftest.err >&5
2318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319 (exit $ac_status); } &&
2320 { ac_try='test -z "$ac_c_werror_flag"
2321 || test ! -s conftest.err'
2322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326 (exit $ac_status); }; } &&
2327 { ac_try='test -s conftest.$ac_objext'
2328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332 (exit $ac_status); }; }; then
2333 for ac_declaration in \
2335 'extern "C" void std::exit (int) throw (); using std::exit;' \
2336 'extern "C" void std::exit (int); using std::exit;' \
2337 'extern "C" void exit (int) throw ();' \
2338 'extern "C" void exit (int);' \
2341 cat >conftest.$ac_ext <<_ACEOF
2344 cat confdefs.h >>conftest.$ac_ext
2345 cat >>conftest.$ac_ext <<_ACEOF
2346 /* end confdefs.h. */
2357 rm -f conftest.$ac_objext
2358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2359 (eval $ac_compile) 2>conftest.er1
2361 grep -v '^ *+' conftest.er1 >conftest.err
2363 cat conftest.err >&5
2364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365 (exit $ac_status); } &&
2366 { ac_try='test -z "$ac_c_werror_flag"
2367 || test ! -s conftest.err'
2368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372 (exit $ac_status); }; } &&
2373 { ac_try='test -s conftest.$ac_objext'
2374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378 (exit $ac_status); }; }; then
2381 echo "$as_me: failed program was:" >&5
2382 sed 's/^/| /' conftest.$ac_ext >&5
2386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2387 cat >conftest.$ac_ext <<_ACEOF
2390 cat confdefs.h >>conftest.$ac_ext
2391 cat >>conftest.$ac_ext <<_ACEOF
2392 /* end confdefs.h. */
2402 rm -f conftest.$ac_objext
2403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2404 (eval $ac_compile) 2>conftest.er1
2406 grep -v '^ *+' conftest.er1 >conftest.err
2408 cat conftest.err >&5
2409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410 (exit $ac_status); } &&
2411 { ac_try='test -z "$ac_c_werror_flag"
2412 || test ! -s conftest.err'
2413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417 (exit $ac_status); }; } &&
2418 { ac_try='test -s conftest.$ac_objext'
2419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423 (exit $ac_status); }; }; then
2426 echo "$as_me: failed program was:" >&5
2427 sed 's/^/| /' conftest.$ac_ext >&5
2430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2433 if test -n "$ac_declaration"; then
2434 echo '#ifdef __cplusplus' >>confdefs.h
2435 echo $ac_declaration >>confdefs.h
2436 echo '#endif' >>confdefs.h
2440 echo "$as_me: failed program was:" >&5
2441 sed 's/^/| /' conftest.$ac_ext >&5
2444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2446 ac_cpp='$CPP $CPPFLAGS'
2447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2452 ac_cpp='$CXXCPP $CPPFLAGS'
2453 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2454 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2455 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2456 if test -n "$ac_tool_prefix"; then
2457 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2459 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2460 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2461 echo "$as_me:$LINENO: checking for $ac_word" >&5
2462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2463 if test "${ac_cv_prog_CXX+set}" = set; then
2464 echo $ECHO_N "(cached) $ECHO_C" >&6
2466 if test -n "$CXX"; then
2467 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2473 test -z "$as_dir" && as_dir=.
2474 for ac_exec_ext in '' $ac_executable_extensions; do
2475 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2476 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2486 if test -n "$CXX"; then
2487 echo "$as_me:$LINENO: result: $CXX" >&5
2488 echo "${ECHO_T}$CXX" >&6
2490 echo "$as_me:$LINENO: result: no" >&5
2491 echo "${ECHO_T}no" >&6
2494 test -n "$CXX" && break
2497 if test -z "$CXX"; then
2499 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2501 # Extract the first word of "$ac_prog", so it can be a program name with args.
2502 set dummy $ac_prog; ac_word=$2
2503 echo "$as_me:$LINENO: checking for $ac_word" >&5
2504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2505 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2506 echo $ECHO_N "(cached) $ECHO_C" >&6
2508 if test -n "$ac_ct_CXX"; then
2509 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2515 test -z "$as_dir" && as_dir=.
2516 for ac_exec_ext in '' $ac_executable_extensions; do
2517 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2518 ac_cv_prog_ac_ct_CXX="$ac_prog"
2519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2527 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2528 if test -n "$ac_ct_CXX"; then
2529 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2530 echo "${ECHO_T}$ac_ct_CXX" >&6
2532 echo "$as_me:$LINENO: result: no" >&5
2533 echo "${ECHO_T}no" >&6
2536 test -n "$ac_ct_CXX" && break
2538 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2544 # Provide some information about the compiler.
2545 echo "$as_me:$LINENO:" \
2546 "checking for C++ compiler version" >&5
2547 ac_compiler=`set X $ac_compile; echo $2`
2548 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2549 (eval $ac_compiler --version </dev/null >&5) 2>&5
2551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552 (exit $ac_status); }
2553 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2554 (eval $ac_compiler -v </dev/null >&5) 2>&5
2556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557 (exit $ac_status); }
2558 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2559 (eval $ac_compiler -V </dev/null >&5) 2>&5
2561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562 (exit $ac_status); }
2564 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2565 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2566 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2567 echo $ECHO_N "(cached) $ECHO_C" >&6
2569 cat >conftest.$ac_ext <<_ACEOF
2572 cat confdefs.h >>conftest.$ac_ext
2573 cat >>conftest.$ac_ext <<_ACEOF
2574 /* end confdefs.h. */
2587 rm -f conftest.$ac_objext
2588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2589 (eval $ac_compile) 2>conftest.er1
2591 grep -v '^ *+' conftest.er1 >conftest.err
2593 cat conftest.err >&5
2594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595 (exit $ac_status); } &&
2596 { ac_try='test -z "$ac_cxx_werror_flag"
2597 || test ! -s conftest.err'
2598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602 (exit $ac_status); }; } &&
2603 { ac_try='test -s conftest.$ac_objext'
2604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608 (exit $ac_status); }; }; then
2611 echo "$as_me: failed program was:" >&5
2612 sed 's/^/| /' conftest.$ac_ext >&5
2616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2617 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2620 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2621 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2622 GXX=`test $ac_compiler_gnu = yes && echo yes`
2623 ac_test_CXXFLAGS=${CXXFLAGS+set}
2624 ac_save_CXXFLAGS=$CXXFLAGS
2626 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2627 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2628 if test "${ac_cv_prog_cxx_g+set}" = set; then
2629 echo $ECHO_N "(cached) $ECHO_C" >&6
2631 cat >conftest.$ac_ext <<_ACEOF
2634 cat confdefs.h >>conftest.$ac_ext
2635 cat >>conftest.$ac_ext <<_ACEOF
2636 /* end confdefs.h. */
2646 rm -f conftest.$ac_objext
2647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2648 (eval $ac_compile) 2>conftest.er1
2650 grep -v '^ *+' conftest.er1 >conftest.err
2652 cat conftest.err >&5
2653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654 (exit $ac_status); } &&
2655 { ac_try='test -z "$ac_cxx_werror_flag"
2656 || test ! -s conftest.err'
2657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661 (exit $ac_status); }; } &&
2662 { ac_try='test -s conftest.$ac_objext'
2663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667 (exit $ac_status); }; }; then
2668 ac_cv_prog_cxx_g=yes
2670 echo "$as_me: failed program was:" >&5
2671 sed 's/^/| /' conftest.$ac_ext >&5
2675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2677 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2678 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2679 if test "$ac_test_CXXFLAGS" = set; then
2680 CXXFLAGS=$ac_save_CXXFLAGS
2681 elif test $ac_cv_prog_cxx_g = yes; then
2682 if test "$GXX" = yes; then
2688 if test "$GXX" = yes; then
2694 for ac_declaration in \
2696 'extern "C" void std::exit (int) throw (); using std::exit;' \
2697 'extern "C" void std::exit (int); using std::exit;' \
2698 'extern "C" void exit (int) throw ();' \
2699 'extern "C" void exit (int);' \
2702 cat >conftest.$ac_ext <<_ACEOF
2705 cat confdefs.h >>conftest.$ac_ext
2706 cat >>conftest.$ac_ext <<_ACEOF
2707 /* end confdefs.h. */
2718 rm -f conftest.$ac_objext
2719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2720 (eval $ac_compile) 2>conftest.er1
2722 grep -v '^ *+' conftest.er1 >conftest.err
2724 cat conftest.err >&5
2725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726 (exit $ac_status); } &&
2727 { ac_try='test -z "$ac_cxx_werror_flag"
2728 || test ! -s conftest.err'
2729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733 (exit $ac_status); }; } &&
2734 { ac_try='test -s conftest.$ac_objext'
2735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739 (exit $ac_status); }; }; then
2742 echo "$as_me: failed program was:" >&5
2743 sed 's/^/| /' conftest.$ac_ext >&5
2747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2748 cat >conftest.$ac_ext <<_ACEOF
2751 cat confdefs.h >>conftest.$ac_ext
2752 cat >>conftest.$ac_ext <<_ACEOF
2753 /* end confdefs.h. */
2763 rm -f conftest.$ac_objext
2764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2765 (eval $ac_compile) 2>conftest.er1
2767 grep -v '^ *+' conftest.er1 >conftest.err
2769 cat conftest.err >&5
2770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771 (exit $ac_status); } &&
2772 { ac_try='test -z "$ac_cxx_werror_flag"
2773 || test ! -s conftest.err'
2774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778 (exit $ac_status); }; } &&
2779 { ac_try='test -s conftest.$ac_objext'
2780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784 (exit $ac_status); }; }; then
2787 echo "$as_me: failed program was:" >&5
2788 sed 's/^/| /' conftest.$ac_ext >&5
2791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2794 if test -n "$ac_declaration"; then
2795 echo '#ifdef __cplusplus' >>confdefs.h
2796 echo $ac_declaration >>confdefs.h
2797 echo '#endif' >>confdefs.h
2801 ac_cpp='$CPP $CPPFLAGS'
2802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2806 if test "x$CC" != xcc; then
2807 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2808 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2810 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2811 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2813 set dummy $CC; ac_cc=`echo $2 |
2814 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2815 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2816 echo $ECHO_N "(cached) $ECHO_C" >&6
2818 cat >conftest.$ac_ext <<_ACEOF
2821 cat confdefs.h >>conftest.$ac_ext
2822 cat >>conftest.$ac_ext <<_ACEOF
2823 /* end confdefs.h. */
2833 # Make sure it works both with $CC and with simple cc.
2834 # We do the test twice because some compilers refuse to overwrite an
2835 # existing .o file with -o, though they will create one.
2836 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2837 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841 (exit $ac_status); } &&
2842 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846 (exit $ac_status); };
2848 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2849 if test "x$CC" != xcc; then
2850 # Test first that cc exists at all.
2851 if { ac_try='cc -c conftest.$ac_ext >&5'
2852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856 (exit $ac_status); }; }; then
2857 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2858 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862 (exit $ac_status); } &&
2863 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867 (exit $ac_status); };
2872 # cc exists but doesn't like -o.
2873 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2878 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2883 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2884 echo "$as_me:$LINENO: result: yes" >&5
2885 echo "${ECHO_T}yes" >&6
2887 echo "$as_me:$LINENO: result: no" >&5
2888 echo "${ECHO_T}no" >&6
2890 cat >>confdefs.h <<\_ACEOF
2891 #define NO_MINUS_C_MINUS_O 1
2897 ac_cpp='$CPP $CPPFLAGS'
2898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2901 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2902 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2903 # On Suns, sometimes $CPP names a directory.
2904 if test -n "$CPP" && test -d "$CPP"; then
2907 if test -z "$CPP"; then
2908 if test "${ac_cv_prog_CPP+set}" = set; then
2909 echo $ECHO_N "(cached) $ECHO_C" >&6
2911 # Double quotes because CPP needs to be expanded
2912 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2915 for ac_c_preproc_warn_flag in '' yes
2917 # Use a header file that comes with gcc, so configuring glibc
2918 # with a fresh cross-compiler works.
2919 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2920 # <limits.h> exists even on freestanding compilers.
2921 # On the NeXT, cc -E runs the code through the compiler's parser,
2922 # not just through cpp. "Syntax error" is here to catch this case.
2923 cat >conftest.$ac_ext <<_ACEOF
2926 cat confdefs.h >>conftest.$ac_ext
2927 cat >>conftest.$ac_ext <<_ACEOF
2928 /* end confdefs.h. */
2930 # include <limits.h>
2932 # include <assert.h>
2936 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2937 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2939 grep -v '^ *+' conftest.er1 >conftest.err
2941 cat conftest.err >&5
2942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943 (exit $ac_status); } >/dev/null; then
2944 if test -s conftest.err; then
2945 ac_cpp_err=$ac_c_preproc_warn_flag
2946 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2953 if test -z "$ac_cpp_err"; then
2956 echo "$as_me: failed program was:" >&5
2957 sed 's/^/| /' conftest.$ac_ext >&5
2959 # Broken: fails on valid input.
2962 rm -f conftest.err conftest.$ac_ext
2964 # OK, works on sane cases. Now check whether non-existent headers
2965 # can be detected and how.
2966 cat >conftest.$ac_ext <<_ACEOF
2969 cat confdefs.h >>conftest.$ac_ext
2970 cat >>conftest.$ac_ext <<_ACEOF
2971 /* end confdefs.h. */
2972 #include <ac_nonexistent.h>
2974 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2975 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2977 grep -v '^ *+' conftest.er1 >conftest.err
2979 cat conftest.err >&5
2980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981 (exit $ac_status); } >/dev/null; then
2982 if test -s conftest.err; then
2983 ac_cpp_err=$ac_c_preproc_warn_flag
2984 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2991 if test -z "$ac_cpp_err"; then
2992 # Broken: success on invalid input.
2995 echo "$as_me: failed program was:" >&5
2996 sed 's/^/| /' conftest.$ac_ext >&5
2998 # Passes both tests.
3002 rm -f conftest.err conftest.$ac_ext
3005 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3006 rm -f conftest.err conftest.$ac_ext
3007 if $ac_preproc_ok; then
3019 echo "$as_me:$LINENO: result: $CPP" >&5
3020 echo "${ECHO_T}$CPP" >&6
3022 for ac_c_preproc_warn_flag in '' yes
3024 # Use a header file that comes with gcc, so configuring glibc
3025 # with a fresh cross-compiler works.
3026 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3027 # <limits.h> exists even on freestanding compilers.
3028 # On the NeXT, cc -E runs the code through the compiler's parser,
3029 # not just through cpp. "Syntax error" is here to catch this case.
3030 cat >conftest.$ac_ext <<_ACEOF
3033 cat confdefs.h >>conftest.$ac_ext
3034 cat >>conftest.$ac_ext <<_ACEOF
3035 /* end confdefs.h. */
3037 # include <limits.h>
3039 # include <assert.h>
3043 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3044 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3046 grep -v '^ *+' conftest.er1 >conftest.err
3048 cat conftest.err >&5
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); } >/dev/null; then
3051 if test -s conftest.err; then
3052 ac_cpp_err=$ac_c_preproc_warn_flag
3053 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3060 if test -z "$ac_cpp_err"; then
3063 echo "$as_me: failed program was:" >&5
3064 sed 's/^/| /' conftest.$ac_ext >&5
3066 # Broken: fails on valid input.
3069 rm -f conftest.err conftest.$ac_ext
3071 # OK, works on sane cases. Now check whether non-existent headers
3072 # can be detected and how.
3073 cat >conftest.$ac_ext <<_ACEOF
3076 cat confdefs.h >>conftest.$ac_ext
3077 cat >>conftest.$ac_ext <<_ACEOF
3078 /* end confdefs.h. */
3079 #include <ac_nonexistent.h>
3081 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3082 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3084 grep -v '^ *+' conftest.er1 >conftest.err
3086 cat conftest.err >&5
3087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088 (exit $ac_status); } >/dev/null; then
3089 if test -s conftest.err; then
3090 ac_cpp_err=$ac_c_preproc_warn_flag
3091 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3098 if test -z "$ac_cpp_err"; then
3099 # Broken: success on invalid input.
3102 echo "$as_me: failed program was:" >&5
3103 sed 's/^/| /' conftest.$ac_ext >&5
3105 # Passes both tests.
3109 rm -f conftest.err conftest.$ac_ext
3112 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3113 rm -f conftest.err conftest.$ac_ext
3114 if $ac_preproc_ok; then
3117 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3118 See \`config.log' for more details." >&5
3119 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3120 See \`config.log' for more details." >&2;}
3121 { (exit 1); exit 1; }; }
3125 ac_cpp='$CPP $CPPFLAGS'
3126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3131 echo "$as_me:$LINENO: checking for egrep" >&5
3132 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3133 if test "${ac_cv_prog_egrep+set}" = set; then
3134 echo $ECHO_N "(cached) $ECHO_C" >&6
3136 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3137 then ac_cv_prog_egrep='grep -E'
3138 else ac_cv_prog_egrep='egrep'
3141 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3142 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3143 EGREP=$ac_cv_prog_egrep
3146 if test $ac_cv_c_compiler_gnu = yes; then
3147 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3148 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3149 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3150 echo $ECHO_N "(cached) $ECHO_C" >&6
3152 ac_pattern="Autoconf.*'x'"
3153 cat >conftest.$ac_ext <<_ACEOF
3156 cat confdefs.h >>conftest.$ac_ext
3157 cat >>conftest.$ac_ext <<_ACEOF
3158 /* end confdefs.h. */
3162 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3163 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3164 ac_cv_prog_gcc_traditional=yes
3166 ac_cv_prog_gcc_traditional=no
3171 if test $ac_cv_prog_gcc_traditional = no; then
3172 cat >conftest.$ac_ext <<_ACEOF
3175 cat confdefs.h >>conftest.$ac_ext
3176 cat >>conftest.$ac_ext <<_ACEOF
3177 /* end confdefs.h. */
3181 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3182 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3183 ac_cv_prog_gcc_traditional=yes
3189 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3190 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3191 if test $ac_cv_prog_gcc_traditional = yes; then
3192 CC="$CC -traditional"
3196 if test "x$CC" = xgcc
3198 cat >>confdefs.h <<\_ACEOF
3204 # Find a good install program. We prefer a C program (faster),
3205 # so one script is as good as another. But avoid the broken or
3206 # incompatible versions:
3207 # SysV /etc/install, /usr/sbin/install
3208 # SunOS /usr/etc/install
3209 # IRIX /sbin/install
3211 # AmigaOS /C/install, which installs bootblocks on floppy discs
3212 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3213 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3214 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3215 # OS/2's system install, which has a completely different semantic
3216 # ./install, which can be erroneously created by make from ./install.sh.
3217 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3218 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3219 if test -z "$INSTALL"; then
3220 if test "${ac_cv_path_install+set}" = set; then
3221 echo $ECHO_N "(cached) $ECHO_C" >&6
3223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3227 test -z "$as_dir" && as_dir=.
3228 # Account for people who put trailing slashes in PATH elements.
3230 ./ | .// | /cC/* | \
3231 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3232 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3235 # OSF1 and SCO ODT 3.0 have their own names for install.
3236 # Don't use installbsd from OSF since it installs stuff as root
3238 for ac_prog in ginstall scoinst install; do
3239 for ac_exec_ext in '' $ac_executable_extensions; do
3240 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3241 if test $ac_prog = install &&
3242 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3243 # AIX install. It has an incompatible calling convention.
3245 elif test $ac_prog = install &&
3246 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3247 # program-specific install script used by HP pwplus--don't use.
3250 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3262 if test "${ac_cv_path_install+set}" = set; then
3263 INSTALL=$ac_cv_path_install
3265 # As a last resort, use the slow shell script. We don't cache a
3266 # path for INSTALL within a source directory, because that will
3267 # break other packages using the cache if that directory is
3268 # removed, or if the path is relative.
3269 INSTALL=$ac_install_sh
3272 echo "$as_me:$LINENO: result: $INSTALL" >&5
3273 echo "${ECHO_T}$INSTALL" >&6
3275 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3276 # It thinks the first close brace ends the variable substitution.
3277 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3279 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3281 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3283 if test -n "$ac_tool_prefix"; then
3284 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3285 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3286 echo "$as_me:$LINENO: checking for $ac_word" >&5
3287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3288 if test "${ac_cv_prog_RANLIB+set}" = set; then
3289 echo $ECHO_N "(cached) $ECHO_C" >&6
3291 if test -n "$RANLIB"; then
3292 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3298 test -z "$as_dir" && as_dir=.
3299 for ac_exec_ext in '' $ac_executable_extensions; do
3300 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3301 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3310 RANLIB=$ac_cv_prog_RANLIB
3311 if test -n "$RANLIB"; then
3312 echo "$as_me:$LINENO: result: $RANLIB" >&5
3313 echo "${ECHO_T}$RANLIB" >&6
3315 echo "$as_me:$LINENO: result: no" >&5
3316 echo "${ECHO_T}no" >&6
3320 if test -z "$ac_cv_prog_RANLIB"; then
3321 ac_ct_RANLIB=$RANLIB
3322 # Extract the first word of "ranlib", so it can be a program name with args.
3323 set dummy ranlib; ac_word=$2
3324 echo "$as_me:$LINENO: checking for $ac_word" >&5
3325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3326 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3327 echo $ECHO_N "(cached) $ECHO_C" >&6
3329 if test -n "$ac_ct_RANLIB"; then
3330 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3336 test -z "$as_dir" && as_dir=.
3337 for ac_exec_ext in '' $ac_executable_extensions; do
3338 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3339 ac_cv_prog_ac_ct_RANLIB="ranlib"
3340 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3346 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3349 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3350 if test -n "$ac_ct_RANLIB"; then
3351 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3352 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3354 echo "$as_me:$LINENO: result: no" >&5
3355 echo "${ECHO_T}no" >&6
3358 RANLIB=$ac_ct_RANLIB
3360 RANLIB="$ac_cv_prog_RANLIB"
3363 # Extract the first word of "mv", so it can be a program name with args.
3364 set dummy mv; ac_word=$2
3365 echo "$as_me:$LINENO: checking for $ac_word" >&5
3366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3367 if test "${ac_cv_path_MV+set}" = set; then
3368 echo $ECHO_N "(cached) $ECHO_C" >&6
3372 ac_cv_path_MV="$MV" # Let the user override the test with a path.
3375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3379 test -z "$as_dir" && as_dir=.
3380 for ac_exec_ext in '' $ac_executable_extensions; do
3381 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3382 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3383 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3389 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3395 if test -n "$MV"; then
3396 echo "$as_me:$LINENO: result: $MV" >&5
3397 echo "${ECHO_T}$MV" >&6
3399 echo "$as_me:$LINENO: result: no" >&5
3400 echo "${ECHO_T}no" >&6
3403 # Extract the first word of "rm", so it can be a program name with args.
3404 set dummy rm; ac_word=$2
3405 echo "$as_me:$LINENO: checking for $ac_word" >&5
3406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3407 if test "${ac_cv_path_RM+set}" = set; then
3408 echo $ECHO_N "(cached) $ECHO_C" >&6
3412 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3419 test -z "$as_dir" && as_dir=.
3420 for ac_exec_ext in '' $ac_executable_extensions; do
3421 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3422 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3429 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3435 if test -n "$RM"; then
3436 echo "$as_me:$LINENO: result: $RM" >&5
3437 echo "${ECHO_T}$RM" >&6
3439 echo "$as_me:$LINENO: result: no" >&5
3440 echo "${ECHO_T}no" >&6
3443 # Extract the first word of "cp", so it can be a program name with args.
3444 set dummy cp; ac_word=$2
3445 echo "$as_me:$LINENO: checking for $ac_word" >&5
3446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3447 if test "${ac_cv_path_CP+set}" = set; then
3448 echo $ECHO_N "(cached) $ECHO_C" >&6
3452 ac_cv_path_CP="$CP" # Let the user override the test with a path.
3455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3459 test -z "$as_dir" && as_dir=.
3460 for ac_exec_ext in '' $ac_executable_extensions; do
3461 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3462 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3469 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3475 if test -n "$CP"; then
3476 echo "$as_me:$LINENO: result: $CP" >&5
3477 echo "${ECHO_T}$CP" >&6
3479 echo "$as_me:$LINENO: result: no" >&5
3480 echo "${ECHO_T}no" >&6
3483 # Extract the first word of "sed", so it can be a program name with args.
3484 set dummy sed; ac_word=$2
3485 echo "$as_me:$LINENO: checking for $ac_word" >&5
3486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3487 if test "${ac_cv_path_SED+set}" = set; then
3488 echo $ECHO_N "(cached) $ECHO_C" >&6
3492 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3499 test -z "$as_dir" && as_dir=.
3500 for ac_exec_ext in '' $ac_executable_extensions; do
3501 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3502 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3503 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3509 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3515 if test -n "$SED"; then
3516 echo "$as_me:$LINENO: result: $SED" >&5
3517 echo "${ECHO_T}$SED" >&6
3519 echo "$as_me:$LINENO: result: no" >&5
3520 echo "${ECHO_T}no" >&6
3523 # Extract the first word of "echo", so it can be a program name with args.
3524 set dummy echo; ac_word=$2
3525 echo "$as_me:$LINENO: checking for $ac_word" >&5
3526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3527 if test "${ac_cv_path_ECHO+set}" = set; then
3528 echo $ECHO_N "(cached) $ECHO_C" >&6
3532 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3539 test -z "$as_dir" && as_dir=.
3540 for ac_exec_ext in '' $ac_executable_extensions; do
3541 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3542 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3549 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3553 ECHO=$ac_cv_path_ECHO
3555 if test -n "$ECHO"; then
3556 echo "$as_me:$LINENO: result: $ECHO" >&5
3557 echo "${ECHO_T}$ECHO" >&6
3559 echo "$as_me:$LINENO: result: no" >&5
3560 echo "${ECHO_T}no" >&6
3563 # Extract the first word of "cmp", so it can be a program name with args.
3564 set dummy cmp; ac_word=$2
3565 echo "$as_me:$LINENO: checking for $ac_word" >&5
3566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3567 if test "${ac_cv_path_CMP+set}" = set; then
3568 echo $ECHO_N "(cached) $ECHO_C" >&6
3572 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3579 test -z "$as_dir" && as_dir=.
3580 for ac_exec_ext in '' $ac_executable_extensions; do
3581 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3582 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3589 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3595 if test -n "$CMP"; then
3596 echo "$as_me:$LINENO: result: $CMP" >&5
3597 echo "${ECHO_T}$CMP" >&6
3599 echo "$as_me:$LINENO: result: no" >&5
3600 echo "${ECHO_T}no" >&6
3603 # Extract the first word of "tbl", so it can be a program name with args.
3604 set dummy tbl; ac_word=$2
3605 echo "$as_me:$LINENO: checking for $ac_word" >&5
3606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3607 if test "${ac_cv_path_TBL+set}" = set; then
3608 echo $ECHO_N "(cached) $ECHO_C" >&6
3612 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3619 test -z "$as_dir" && as_dir=.
3620 for ac_exec_ext in '' $ac_executable_extensions; do
3621 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3622 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3629 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3635 if test -n "$TBL"; then
3636 echo "$as_me:$LINENO: result: $TBL" >&5
3637 echo "${ECHO_T}$TBL" >&6
3639 echo "$as_me:$LINENO: result: no" >&5
3640 echo "${ECHO_T}no" >&6
3643 # Extract the first word of "ar", so it can be a program name with args.
3644 set dummy ar; ac_word=$2
3645 echo "$as_me:$LINENO: checking for $ac_word" >&5
3646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3647 if test "${ac_cv_path_AR+set}" = set; then
3648 echo $ECHO_N "(cached) $ECHO_C" >&6
3652 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3659 test -z "$as_dir" && as_dir=.
3660 for ac_exec_ext in '' $ac_executable_extensions; do
3661 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3662 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3669 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3675 if test -n "$AR"; then
3676 echo "$as_me:$LINENO: result: $AR" >&5
3677 echo "${ECHO_T}$AR" >&6
3679 echo "$as_me:$LINENO: result: no" >&5
3680 echo "${ECHO_T}no" >&6
3683 # Extract the first word of "openssl", so it can be a program name with args.
3684 set dummy openssl; ac_word=$2
3685 echo "$as_me:$LINENO: checking for $ac_word" >&5
3686 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3687 if test "${ac_cv_path_OPENSSL+set}" = set; then
3688 echo $ECHO_N "(cached) $ECHO_C" >&6
3692 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3699 test -z "$as_dir" && as_dir=.
3700 for ac_exec_ext in '' $ac_executable_extensions; do
3701 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3702 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3709 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3713 OPENSSL=$ac_cv_path_OPENSSL
3715 if test -n "$OPENSSL"; then
3716 echo "$as_me:$LINENO: result: $OPENSSL" >&5
3717 echo "${ECHO_T}$OPENSSL" >&6
3719 echo "$as_me:$LINENO: result: no" >&5
3720 echo "${ECHO_T}no" >&6
3723 # Extract the first word of "mtx", so it can be a program name with args.
3724 set dummy mtx; ac_word=$2
3725 echo "$as_me:$LINENO: checking for $ac_word" >&5
3726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3727 if test "${ac_cv_path_MTX+set}" = set; then
3728 echo $ECHO_N "(cached) $ECHO_C" >&6
3732 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3739 test -z "$as_dir" && as_dir=.
3740 for ac_exec_ext in '' $ac_executable_extensions; do
3741 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3742 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3749 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3755 if test -n "$MTX"; then
3756 echo "$as_me:$LINENO: result: $MTX" >&5
3757 echo "${ECHO_T}$MTX" >&6
3759 echo "$as_me:$LINENO: result: no" >&5
3760 echo "${ECHO_T}no" >&6
3763 # Extract the first word of "mkisofs", so it can be a program name with args.
3764 set dummy mkisofs; ac_word=$2
3765 echo "$as_me:$LINENO: checking for $ac_word" >&5
3766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3767 if test "${ac_cv_path_MKISOFS+set}" = set; then
3768 echo $ECHO_N "(cached) $ECHO_C" >&6
3772 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
3775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3779 test -z "$as_dir" && as_dir=.
3780 for ac_exec_ext in '' $ac_executable_extensions; do
3781 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3782 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
3783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3789 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
3793 MKISOFS=$ac_cv_path_MKISOFS
3795 if test -n "$MKISOFS"; then
3796 echo "$as_me:$LINENO: result: $MKISOFS" >&5
3797 echo "${ECHO_T}$MKISOFS" >&6
3799 echo "$as_me:$LINENO: result: no" >&5
3800 echo "${ECHO_T}no" >&6
3803 # Extract the first word of "python", so it can be a program name with args.
3804 set dummy python; ac_word=$2
3805 echo "$as_me:$LINENO: checking for $ac_word" >&5
3806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3807 if test "${ac_cv_path_PYTHON+set}" = set; then
3808 echo $ECHO_N "(cached) $ECHO_C" >&6
3812 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
3815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3819 test -z "$as_dir" && as_dir=.
3820 for ac_exec_ext in '' $ac_executable_extensions; do
3821 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3822 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
3823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3829 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
3833 PYTHON=$ac_cv_path_PYTHON
3835 if test -n "$PYTHON"; then
3836 echo "$as_me:$LINENO: result: $PYTHON" >&5
3837 echo "${ECHO_T}$PYTHON" >&6
3839 echo "$as_me:$LINENO: result: no" >&5
3840 echo "${ECHO_T}no" >&6
3843 # Extract the first word of "growisofs", so it can be a program name with args.
3844 set dummy growisofs; ac_word=$2
3845 echo "$as_me:$LINENO: checking for $ac_word" >&5
3846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3847 if test "${ac_cv_path_GROWISOFS+set}" = set; then
3848 echo $ECHO_N "(cached) $ECHO_C" >&6
3852 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
3855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3859 test -z "$as_dir" && as_dir=.
3860 for ac_exec_ext in '' $ac_executable_extensions; do
3861 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3862 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
3863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3869 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
3873 GROWISOFS=$ac_cv_path_GROWISOFS
3875 if test -n "$GROWISOFS"; then
3876 echo "$as_me:$LINENO: result: $GROWISOFS" >&5
3877 echo "${ECHO_T}$GROWISOFS" >&6
3879 echo "$as_me:$LINENO: result: no" >&5
3880 echo "${ECHO_T}no" >&6
3883 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
3884 set dummy dvd+rw-mediainfo; ac_word=$2
3885 echo "$as_me:$LINENO: checking for $ac_word" >&5
3886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3887 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
3888 echo $ECHO_N "(cached) $ECHO_C" >&6
3890 case $DVDRWMEDIAINFO in
3892 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
3895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3899 test -z "$as_dir" && as_dir=.
3900 for ac_exec_ext in '' $ac_executable_extensions; do
3901 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3902 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
3903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3909 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
3913 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
3915 if test -n "$DVDRWMEDIAINFO"; then
3916 echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
3917 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6
3919 echo "$as_me:$LINENO: result: no" >&5
3920 echo "${ECHO_T}no" >&6
3923 # Extract the first word of "pkg-config", so it can be a program name with args.
3924 set dummy pkg-config; ac_word=$2
3925 echo "$as_me:$LINENO: checking for $ac_word" >&5
3926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3927 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
3928 echo $ECHO_N "(cached) $ECHO_C" >&6
3932 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
3935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3939 test -z "$as_dir" && as_dir=.
3940 for ac_exec_ext in '' $ac_executable_extensions; do
3941 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3942 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
3943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3949 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
3953 PKGCONFIG=$ac_cv_path_PKGCONFIG
3955 if test -n "$PKGCONFIG"; then
3956 echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
3957 echo "${ECHO_T}$PKGCONFIG" >&6
3959 echo "$as_me:$LINENO: result: no" >&5
3960 echo "${ECHO_T}no" >&6
3963 # Extract the first word of "wx-config", so it can be a program name with args.
3964 set dummy wx-config; ac_word=$2
3965 echo "$as_me:$LINENO: checking for $ac_word" >&5
3966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3967 if test "${ac_cv_path_WXCONFIG+set}" = set; then
3968 echo $ECHO_N "(cached) $ECHO_C" >&6
3972 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
3975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3979 test -z "$as_dir" && as_dir=.
3980 for ac_exec_ext in '' $ac_executable_extensions; do
3981 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3982 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
3983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3989 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="wx-config"
3993 WXCONFIG=$ac_cv_path_WXCONFIG
3995 if test -n "$WXCONFIG"; then
3996 echo "$as_me:$LINENO: result: $WXCONFIG" >&5
3997 echo "${ECHO_T}$WXCONFIG" >&6
3999 echo "$as_me:$LINENO: result: no" >&5
4000 echo "${ECHO_T}no" >&6
4003 # Extract the first word of "cdrecord", so it can be a program name with args.
4004 set dummy cdrecord; ac_word=$2
4005 echo "$as_me:$LINENO: checking for $ac_word" >&5
4006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4007 if test "${ac_cv_path_CDRECORD+set}" = set; then
4008 echo $ECHO_N "(cached) $ECHO_C" >&6
4012 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
4015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4019 test -z "$as_dir" && as_dir=.
4020 for ac_exec_ext in '' $ac_executable_extensions; do
4021 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4022 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
4023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4029 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
4033 CDRECORD=$ac_cv_path_CDRECORD
4035 if test -n "$CDRECORD"; then
4036 echo "$as_me:$LINENO: result: $CDRECORD" >&5
4037 echo "${ECHO_T}$CDRECORD" >&6
4039 echo "$as_me:$LINENO: result: no" >&5
4040 echo "${ECHO_T}no" >&6
4043 # Extract the first word of "pidof", so it can be a program name with args.
4044 set dummy pidof; ac_word=$2
4045 echo "$as_me:$LINENO: checking for $ac_word" >&5
4046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4047 if test "${ac_cv_path_PIDOF+set}" = set; then
4048 echo $ECHO_N "(cached) $ECHO_C" >&6
4052 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
4055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4059 test -z "$as_dir" && as_dir=.
4060 for ac_exec_ext in '' $ac_executable_extensions; do
4061 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4062 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
4063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4069 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
4073 PIDOF=$ac_cv_path_PIDOF
4075 if test -n "$PIDOF"; then
4076 echo "$as_me:$LINENO: result: $PIDOF" >&5
4077 echo "${ECHO_T}$PIDOF" >&6
4079 echo "$as_me:$LINENO: result: no" >&5
4080 echo "${ECHO_T}no" >&6
4083 for ac_prog in gawk mawk nawk awk
4085 # Extract the first word of "$ac_prog", so it can be a program name with args.
4086 set dummy $ac_prog; ac_word=$2
4087 echo "$as_me:$LINENO: checking for $ac_word" >&5
4088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4089 if test "${ac_cv_prog_AWK+set}" = set; then
4090 echo $ECHO_N "(cached) $ECHO_C" >&6
4092 if test -n "$AWK"; then
4093 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4099 test -z "$as_dir" && as_dir=.
4100 for ac_exec_ext in '' $ac_executable_extensions; do
4101 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4102 ac_cv_prog_AWK="$ac_prog"
4103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4112 if test -n "$AWK"; then
4113 echo "$as_me:$LINENO: result: $AWK" >&5
4114 echo "${ECHO_T}$AWK" >&6
4116 echo "$as_me:$LINENO: result: no" >&5
4117 echo "${ECHO_T}no" >&6
4120 test -n "$AWK" && break
4123 # Some AWK programs fail, so test it and warn the user
4124 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
4125 { if ((prog == $2) || (("(" prog ")") == $2) ||
4126 (("" prog "") == $2) ||
4127 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
4129 { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4130 The regex engine of $AWK is too broken to be used you
4131 might want to install GNU AWK.
4132 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
4133 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4134 The regex engine of $AWK is too broken to be used you
4135 might want to install GNU AWK.
4136 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
4137 { (exit 1); exit 1; }; }
4140 # Extract the first word of "$THE_AWK", so it can be a program name with args.
4141 set dummy $THE_AWK; ac_word=$2
4142 echo "$as_me:$LINENO: checking for $ac_word" >&5
4143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4144 if test "${ac_cv_path_AWK+set}" = set; then
4145 echo $ECHO_N "(cached) $ECHO_C" >&6
4149 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
4152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4156 test -z "$as_dir" && as_dir=.
4157 for ac_exec_ext in '' $ac_executable_extensions; do
4158 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4159 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
4160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4166 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
4172 if test -n "$AWK"; then
4173 echo "$as_me:$LINENO: result: $AWK" >&5
4174 echo "${ECHO_T}$AWK" >&6
4176 echo "$as_me:$LINENO: result: no" >&5
4177 echo "${ECHO_T}no" >&6
4181 test -n "$ARFLAG" || ARFLAGS="cr"
4194 # Make sure we can run config.sub.
4195 $ac_config_sub sun4 >/dev/null 2>&1 ||
4196 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4197 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4198 { (exit 1); exit 1; }; }
4200 echo "$as_me:$LINENO: checking build system type" >&5
4201 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4202 if test "${ac_cv_build+set}" = set; then
4203 echo $ECHO_N "(cached) $ECHO_C" >&6
4205 ac_cv_build_alias=$build_alias
4206 test -z "$ac_cv_build_alias" &&
4207 ac_cv_build_alias=`$ac_config_guess`
4208 test -z "$ac_cv_build_alias" &&
4209 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4210 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4211 { (exit 1); exit 1; }; }
4212 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4213 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4214 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4215 { (exit 1); exit 1; }; }
4218 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4219 echo "${ECHO_T}$ac_cv_build" >&6
4221 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4222 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4223 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4227 echo "$as_me:$LINENO: checking host system type" >&5
4228 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4229 if test "${ac_cv_host+set}" = set; then
4230 echo $ECHO_N "(cached) $ECHO_C" >&6
4232 ac_cv_host_alias=$host_alias
4233 test -z "$ac_cv_host_alias" &&
4234 ac_cv_host_alias=$ac_cv_build_alias
4235 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4236 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4237 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4238 { (exit 1); exit 1; }; }
4241 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4242 echo "${ECHO_T}$ac_cv_host" >&6
4244 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4245 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4246 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4250 *cygwin* ) CYGWIN=yes;;
4254 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4260 HAVE_SUN_OS_FALSE='#'
4262 HAVE_SUN_OS_TRUE='#'
4265 cat >>confdefs.h <<\_ACEOF
4266 #define HAVE_SUN_OS 1
4274 HAVE_SUN_OS_FALSE='#'
4276 HAVE_SUN_OS_TRUE='#'
4281 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4287 HAVE_OSF1_OS_FALSE='#'
4289 HAVE_OSF1_OS_TRUE='#'
4292 cat >>confdefs.h <<\_ACEOF
4293 #define HAVE_OSF1_OS 1
4301 HAVE_OSF1_OS_FALSE='#'
4303 HAVE_OSF1_OS_TRUE='#'
4308 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4314 HAVE_AIX_OS_FALSE='#'
4316 HAVE_AIX_OS_TRUE='#'
4319 cat >>confdefs.h <<\_ACEOF
4320 #define HAVE_AIX_OS 1
4328 HAVE_AIX_OS_FALSE='#'
4330 HAVE_AIX_OS_TRUE='#'
4335 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4341 HAVE_HPUX_OS_FALSE='#'
4343 HAVE_HPUX_OS_TRUE='#'
4346 cat >>confdefs.h <<\_ACEOF
4347 #define HAVE_HPUX_OS 1
4355 HAVE_HPUX_OS_FALSE='#'
4357 HAVE_HPUX_OS_TRUE='#'
4362 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
4368 HAVE_LINUX_OS_FALSE='#'
4370 HAVE_LINUX_OS_TRUE='#'
4371 HAVE_LINUX_OS_FALSE=
4373 cat >>confdefs.h <<\_ACEOF
4374 #define HAVE_LINUX_OS 1
4382 HAVE_LINUX_OS_FALSE='#'
4384 HAVE_LINUX_OS_TRUE='#'
4385 HAVE_LINUX_OS_FALSE=
4389 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4394 HAVE_FREEBSD_OS_TRUE=
4395 HAVE_FREEBSD_OS_FALSE='#'
4397 HAVE_FREEBSD_OS_TRUE='#'
4398 HAVE_FREEBSD_OS_FALSE=
4400 cat >>confdefs.h <<\_ACEOF
4401 #define HAVE_FREEBSD_OS 1
4408 HAVE_FREEBSD_OS_TRUE=
4409 HAVE_FREEBSD_OS_FALSE='#'
4411 HAVE_FREEBSD_OS_TRUE='#'
4412 HAVE_FREEBSD_OS_FALSE=
4416 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4421 HAVE_NETBSD_OS_TRUE=
4422 HAVE_NETBSD_OS_FALSE='#'
4424 HAVE_NETBSD_OS_TRUE='#'
4425 HAVE_NETBSD_OS_FALSE=
4427 cat >>confdefs.h <<\_ACEOF
4428 #define HAVE_NETBSD_OS 1
4435 HAVE_NETBSD_OS_TRUE=
4436 HAVE_NETBSD_OS_FALSE='#'
4438 HAVE_NETBSD_OS_TRUE='#'
4439 HAVE_NETBSD_OS_FALSE=
4443 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4448 HAVE_OPENBSD_OS_TRUE=
4449 HAVE_OPENBSD_OS_FALSE='#'
4451 HAVE_OPENBSD_OS_TRUE='#'
4452 HAVE_OPENBSD_OS_FALSE=
4454 cat >>confdefs.h <<\_ACEOF
4455 #define HAVE_OPENBSD_OS 1
4462 HAVE_OPENBSD_OS_TRUE=
4463 HAVE_OPENBSD_OS_FALSE='#'
4465 HAVE_OPENBSD_OS_TRUE='#'
4466 HAVE_OPENBSD_OS_FALSE=
4470 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4476 HAVE_BSDI_OS_FALSE='#'
4478 HAVE_BSDI_OS_TRUE='#'
4481 cat >>confdefs.h <<\_ACEOF
4482 #define HAVE_BSDI_OS 1
4490 HAVE_BSDI_OS_FALSE='#'
4492 HAVE_BSDI_OS_TRUE='#'
4497 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4503 HAVE_SGI_OS_FALSE='#'
4505 HAVE_SGI_OS_TRUE='#'
4508 cat >>confdefs.h <<\_ACEOF
4509 #define HAVE_SGI_OS 1
4517 HAVE_SGI_OS_FALSE='#'
4519 HAVE_SGI_OS_TRUE='#'
4524 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4530 HAVE_IRIX_OS_FALSE='#'
4532 HAVE_IRIX_OS_TRUE='#'
4535 cat >>confdefs.h <<\_ACEOF
4536 #define HAVE_IRIX_OS 1
4544 HAVE_IRIX_OS_FALSE='#'
4546 HAVE_IRIX_OS_TRUE='#'
4551 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4556 HAVE_DARWIN_OS_TRUE=
4557 HAVE_DARWIN_OS_FALSE='#'
4559 HAVE_DARWIN_OS_TRUE='#'
4560 HAVE_DARWIN_OS_FALSE=
4562 cat >>confdefs.h <<\_ACEOF
4563 #define HAVE_DARWIN_OS 1
4570 HAVE_DARWIN_OS_TRUE=
4571 HAVE_DARWIN_OS_FALSE='#'
4573 HAVE_DARWIN_OS_TRUE='#'
4574 HAVE_DARWIN_OS_FALSE=
4579 # -----------------------------------------------------------
4580 # ----------------------------------------------------------
4581 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4582 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4583 if test "x$DISTNAME" != "x"
4585 echo "distname set to $DISTNAME"
4586 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4589 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4592 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4595 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4598 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4601 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4604 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4607 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4610 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4613 elif test -f /etc/SuSE-release
4616 elif test -d /etc/SuSEconfig
4619 elif test -f /etc/mandrake-release
4622 elif test -f /etc/whitebox-release
4625 elif test -f /etc/redhat-release
4628 elif test -f /etc/gentoo-release
4631 elif test -f /etc/debian_version
4634 elif test -f /etc/slackware-version
4637 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4640 elif test -f /etc/engarde-version
4643 elif test "$CYGWIN" = yes
4646 cat >>confdefs.h <<\_ACEOF
4647 #define HAVE_CYGWIN 1
4653 echo "$as_me:$LINENO: result: done" >&5
4654 echo "${ECHO_T}done" >&6
4657 # -----------------------------------------------------------
4658 # ----------------------------------------------------------
4663 INSIDE_GNOME_COMMON_TRUE=
4664 INSIDE_GNOME_COMMON_FALSE='#'
4666 INSIDE_GNOME_COMMON_TRUE='#'
4667 INSIDE_GNOME_COMMON_FALSE=
4670 test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
4672 for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
4675 # ------------------------------------------------------------------
4676 # If the user has not set --prefix, we set our default to nothing.
4677 # In this case, if the user has not set --sysconfdir, we set it
4678 # to the package default of /etc/bacula. If either --prefix or
4679 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
4680 # ------------------------------------------------------------------
4681 if test x${prefix} = xNONE ; then
4682 if test `eval echo ${sysconfdir}` = NONE/etc ; then
4683 sysconfdir=/etc/bacula
4687 sysconfdir=`eval echo ${sysconfdir}`
4689 # -------------------------------------------------------------------------
4690 # If the user has not set --exec-prefix, we default to ${prefix}
4691 # -------------------------------------------------------------------------
4692 if test x${exec_prefix} = xNONE ; then
4693 exec_prefix=${prefix}
4696 # ------------------------------------------------------------------
4697 # If the user has not set --sbindir, we set our default as /sbin
4698 # ------------------------------------------------------------------
4699 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4700 sbindir=${exec_prefix}/sbin
4702 sbindir=`eval echo ${sbindir}`
4704 # ------------------------------------------------------------------
4705 # All list of languages for which a translation exist. Each
4706 # language is separated by a space.
4707 # ------------------------------------------------------------------
4710 for ac_prog in msgfmt
4712 # Extract the first word of "$ac_prog", so it can be a program name with args.
4713 set dummy $ac_prog; ac_word=$2
4714 echo "$as_me:$LINENO: checking for $ac_word" >&5
4715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4716 if test "${ac_cv_path_MSGFMT+set}" = set; then
4717 echo $ECHO_N "(cached) $ECHO_C" >&6
4721 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4728 test -z "$as_dir" && as_dir=.
4729 for ac_exec_ext in '' $ac_executable_extensions; do
4730 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4731 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4741 MSGFMT=$ac_cv_path_MSGFMT
4743 if test -n "$MSGFMT"; then
4744 echo "$as_me:$LINENO: result: $MSGFMT" >&5
4745 echo "${ECHO_T}$MSGFMT" >&6
4747 echo "$as_me:$LINENO: result: no" >&5
4748 echo "${ECHO_T}no" >&6
4751 test -n "$MSGFMT" && break
4753 test -n "$MSGFMT" || MSGFMT="no"
4755 if test "$MSGFMT" = "no"
4757 echo 'msgfmt program not found, disabling NLS !'
4759 USE_INCLUDED_LIBINTL=no
4768 support_postgresql=no
4769 support_smartalloc=yes
4770 support_readline=yes
4773 support_wx_console=no
4776 support_static_tools=no
4777 support_static_fd=no
4778 support_static_sd=no
4779 support_static_dir=no
4780 support_static_cons=no
4782 build_client_only=no
4788 # -------------------------------------------
4789 # gnome (default off)
4790 # -------------------------------------------
4791 # Check whether --enable-gnome or --disable-gnome was given.
4792 if test "${enable_gnome+set}" = set; then
4793 enableval="$enable_gnome"
4794 if test x$enableval = xyes; then
4800 if test x$support_gnome = xyes; then
4801 abc=`$PKGCONFIG --exists libgnomeui-2.0`
4803 if test $pkg = 0; then
4804 GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
4805 GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4806 GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
4807 GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4812 GNOME_DIR=src/gnome2-console
4813 gnome_version="Version 2.x"
4826 # Check whether --with-gnome-includes or --without-gnome-includes was given.
4827 if test "${with_gnome_includes+set}" = set; then
4828 withval="$with_gnome_includes"
4830 CFLAGS="$CFLAGS -I$withval"
4835 # Check whether --with-gnome-libs or --without-gnome-libs was given.
4836 if test "${with_gnome_libs+set}" = set; then
4837 withval="$with_gnome_libs"
4839 LDFLAGS="$LDFLAGS -L$withval"
4840 gnome_prefix=$withval
4845 # Check whether --with-gnome or --without-gnome was given.
4846 if test "${with_gnome+set}" = set; then
4847 withval="$with_gnome"
4848 if test x$withval = xyes; then
4852 if test "x$withval" = xno; then
4856 LDFLAGS="$LDFLAGS -L$withval/lib"
4857 CFLAGS="$CFLAGS -I$withval/include"
4858 gnome_prefix=$withval/lib
4865 if test "x$want_gnome" = xyes; then
4867 # Extract the first word of "gnome-config", so it can be a program name with args.
4868 set dummy gnome-config; ac_word=$2
4869 echo "$as_me:$LINENO: checking for $ac_word" >&5
4870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4871 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
4872 echo $ECHO_N "(cached) $ECHO_C" >&6
4874 case $GNOME_CONFIG in
4876 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
4879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4883 test -z "$as_dir" && as_dir=.
4884 for ac_exec_ext in '' $ac_executable_extensions; do
4885 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4886 ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4893 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
4897 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
4899 if test -n "$GNOME_CONFIG"; then
4900 echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
4901 echo "${ECHO_T}$GNOME_CONFIG" >&6
4903 echo "$as_me:$LINENO: result: no" >&5
4904 echo "${ECHO_T}no" >&6
4907 if test "$GNOME_CONFIG" = "no"; then
4908 no_gnome_config="yes"
4910 echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
4911 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
4912 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
4913 echo "$as_me:$LINENO: result: yes" >&5
4914 echo "${ECHO_T}yes" >&6
4917 # Extract the first word of "orbit-config", so it can be a program name with args.
4918 set dummy orbit-config; ac_word=$2
4919 echo "$as_me:$LINENO: checking for $ac_word" >&5
4920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4921 if test "${ac_cv_path_ORBIT_CONFIG+set}" = set; then
4922 echo $ECHO_N "(cached) $ECHO_C" >&6
4924 case $ORBIT_CONFIG in
4926 ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
4929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4933 test -z "$as_dir" && as_dir=.
4934 for ac_exec_ext in '' $ac_executable_extensions; do
4935 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4936 ac_cv_path_ORBIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4943 test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
4947 ORBIT_CONFIG=$ac_cv_path_ORBIT_CONFIG
4949 if test -n "$ORBIT_CONFIG"; then
4950 echo "$as_me:$LINENO: result: $ORBIT_CONFIG" >&5
4951 echo "${ECHO_T}$ORBIT_CONFIG" >&6
4953 echo "$as_me:$LINENO: result: no" >&5
4954 echo "${ECHO_T}no" >&6
4957 # Extract the first word of "orbit-idl", so it can be a program name with args.
4958 set dummy orbit-idl; ac_word=$2
4959 echo "$as_me:$LINENO: checking for $ac_word" >&5
4960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4961 if test "${ac_cv_path_ORBIT_IDL+set}" = set; then
4962 echo $ECHO_N "(cached) $ECHO_C" >&6
4966 ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
4969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4973 test -z "$as_dir" && as_dir=.
4974 for ac_exec_ext in '' $ac_executable_extensions; do
4975 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4976 ac_cv_path_ORBIT_IDL="$as_dir/$ac_word$ac_exec_ext"
4977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4983 test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
4987 ORBIT_IDL=$ac_cv_path_ORBIT_IDL
4989 if test -n "$ORBIT_IDL"; then
4990 echo "$as_me:$LINENO: result: $ORBIT_IDL" >&5
4991 echo "${ECHO_T}$ORBIT_IDL" >&6
4993 echo "$as_me:$LINENO: result: no" >&5
4994 echo "${ECHO_T}no" >&6
4997 echo "$as_me:$LINENO: checking for working ORBit environment" >&5
4998 echo $ECHO_N "checking for working ORBit environment... $ECHO_C" >&6
4999 if test "${gnome_cv_orbit_found+set}" = set; then
5000 echo $ECHO_N "(cached) $ECHO_C" >&6
5003 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
5004 gnome_cv_orbit_found=no
5006 gnome_cv_orbit_found=yes
5010 echo "$as_me:$LINENO: result: $gnome_cv_orbit_found" >&5
5011 echo "${ECHO_T}$gnome_cv_orbit_found" >&6
5014 if test x$gnome_cv_orbit_found = xyes; then
5016 HAVE_ORBIT_FALSE='#'
5021 if test x$gnome_cv_orbit_found = xyes; then
5023 ORBIT_CFLAGS=`orbit-config --cflags client server`
5024 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
5028 if test xfail = xfailure; then
5029 { { echo "$as_me:$LINENO: error: ORBit not installed or installation problem" >&5
5030 echo "$as_me: error: ORBit not installed or installation problem" >&2;}
5031 { (exit 1); exit 1; }; }
5035 echo "$as_me:$LINENO: checking for gnorba libraries" >&5
5036 echo $ECHO_N "checking for gnorba libraries... $ECHO_C" >&6
5037 if test "${gnome_cv_gnorba_found+set}" = set; then
5038 echo $ECHO_N "(cached) $ECHO_C" >&6
5041 gnome_cv_gnorba_found=no
5042 if test x$gnome_cv_orbit_found = xyes; then
5043 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
5044 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
5045 if test -n "$GNORBA_LIBS"; then
5046 gnome_cv_gnorba_found=yes
5051 echo "$as_me:$LINENO: result: $gnome_cv_gnorba_found" >&5
5052 echo "${ECHO_T}$gnome_cv_gnorba_found" >&6
5055 if test x$gnome_cv_gnorba_found = xyes; then
5057 HAVE_GNORBA_FALSE='#'
5059 HAVE_GNORBA_TRUE='#'
5062 if test x$gnome_cv_orbit_found = xyes; then
5064 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
5065 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
5069 if test xfail = xfailure; then
5070 { { echo "$as_me:$LINENO: error: gnorba library not installed or installation problem" >&5
5071 echo "$as_me: error: gnorba library not installed or installation problem" >&2;}
5072 { (exit 1); exit 1; }; }
5076 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
5077 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
5078 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
5079 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
5080 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
5081 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
5082 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
5085 echo "$as_me:$LINENO: result: no" >&5
5086 echo "${ECHO_T}no" >&6
5087 no_gnome_config="yes"
5091 if test x$exec_prefix = xNONE; then
5092 if test x$prefix = xNONE; then
5093 gnome_prefix=$ac_default_prefix/lib
5095 gnome_prefix=$prefix/lib
5098 gnome_prefix=`eval echo \`echo $libdir\``
5101 if test "$no_gnome_config" = "yes"; then
5102 echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
5103 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
5104 if test -f $gnome_prefix/gnomeConf.sh; then
5105 echo "$as_me:$LINENO: result: found" >&5
5106 echo "${ECHO_T}found" >&6
5107 echo "loading gnome configuration from" \
5108 "$gnome_prefix/gnomeConf.sh"
5109 . $gnome_prefix/gnomeConf.sh
5112 echo "$as_me:$LINENO: result: not found" >&5
5113 echo "${ECHO_T}not found" >&6
5114 if test xfail = xfail; then
5115 { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
5116 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
5117 { (exit 1); exit 1; }; }
5126 echo "$as_me:$LINENO: checking extra library \"$i\"" >&5
5127 echo $ECHO_N "checking extra library \"$i\"... $ECHO_C" >&6
5131 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
5132 echo "$as_me:$LINENO: result: $GNOME_APPLETS_LIBS" >&5
5133 echo "${ECHO_T}$GNOME_APPLETS_LIBS" >&6;;
5136 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
5137 echo "$as_me:$LINENO: result: $GNOME_DOCKLETS_LIBS" >&5
5138 echo "${ECHO_T}$GNOME_DOCKLETS_LIBS" >&6;;
5141 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
5142 echo "$as_me:$LINENO: result: $GNOME_CAPPLET_LIBS" >&5
5143 echo "${ECHO_T}$GNOME_CAPPLET_LIBS" >&6;;
5145 echo "$as_me:$LINENO: result: unknown library" >&5
5146 echo "${ECHO_T}unknown library" >&6
5148 EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
5149 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
5154 GNOME_DIR=src/gnome-console
5155 gnome_version="Version 1.4"
5161 # -------------------------------------------
5162 # wx-console (default off)
5163 # -------------------------------------------
5164 # Check whether --enable-wx-console or --disable-wx-console was given.
5165 if test "${enable_wx_console+set}" = set; then
5166 enableval="$enable_wx_console"
5167 if test x$enableval = xyes; then
5168 support_wx_console=yes
5173 if test x$support_wx_console = xyes; then
5174 abc=`$WXCONFIG --cppflags`
5176 if test $pkg = 0; then
5177 WXRELEASE=`$WXCONFIG --release`
5178 if test $WXRELEASE = 2.6; then
5179 WXCONS_CPPFLAGS=`$WXCONFIG --cppflags --unicode=no`
5180 WXCONS_LDFLAGS=`$WXCONFIG --libs --unicode=no`
5182 WXCONS_CPPFLAGS=`$WXCONFIG --cppflags`
5183 WXCONS_LDFLAGS=`$WXCONFIG --libs`
5188 WX_DIR=src/wx-console
5191 echo "wx-config program not found. wx-console disabled."
5193 support_wx_console=no
5199 # -------------------------------------------
5200 # tray-monitor (default off)
5201 # -------------------------------------------
5202 # Check whether --enable-tray-monitor or --disable-tray-monitor was given.
5203 if test "${enable_tray_monitor+set}" = set; then
5204 enableval="$enable_tray_monitor"
5205 if test x$enableval = xyes; then
5206 support_tray_monitor=yes
5211 if test x$support_tray_monitor = xyes; then
5212 abc=`$PKGCONFIG --exists gtk+-2.0`
5214 if test $pkg = 0; then
5215 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
5216 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
5219 TRAY_MONITOR_DIR=src/tray-monitor
5220 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
5222 if test $pkg = 0; then
5223 cat >>confdefs.h <<\_ACEOF
5224 #define HAVE_GTK_2_4 1
5232 # -------------------------------------------
5233 # smartalloc (default off)
5234 # -------------------------------------------
5235 # Check whether --enable-smartalloc or --disable-smartalloc was given.
5236 if test "${enable_smartalloc+set}" = set; then
5237 enableval="$enable_smartalloc"
5238 if test x$enableval = xno; then
5239 support_smartalloc=no
5243 if test x$support_smartalloc = xyes; then
5244 cat >>confdefs.h <<\_ACEOF
5245 #define SMARTALLOC 1
5250 # -------------------------------------------
5251 # static-tools (default off)
5252 # -------------------------------------------
5253 # Check whether --enable-static-tools or --disable-static-tools was given.
5254 if test "${enable_static_tools+set}" = set; then
5255 enableval="$enable_static_tools"
5256 if test x$enableval = xyes; then
5257 support_static_tools=yes
5262 if test x$support_static_tools = xyes; then
5263 TTOOL_LDFLAGS="-static"
5267 # -------------------------------------------
5268 # static-fd (default off)
5269 # -------------------------------------------
5270 # Check whether --enable-static-fd or --disable-static-fd was given.
5271 if test "${enable_static_fd+set}" = set; then
5272 enableval="$enable_static_fd"
5273 if test x$enableval = xyes; then
5274 support_static_fd=yes
5279 if test x$support_static_fd = xyes; then
5280 STATIC_FD="static-bacula-fd"
5284 # -------------------------------------------
5285 # static-sd (default off)
5286 # -------------------------------------------
5287 # Check whether --enable-static-sd or --disable-static-sd was given.
5288 if test "${enable_static_sd+set}" = set; then
5289 enableval="$enable_static_sd"
5290 if test x$enableval = xyes; then
5291 support_static_sd=yes
5296 if test x$support_static_sd = xyes; then
5297 STATIC_SD="static-bacula-sd"
5301 # -------------------------------------------
5302 # static-dir (default off)
5303 # -------------------------------------------
5304 # Check whether --enable-static-dir or --disable-static-dir was given.
5305 if test "${enable_static_dir+set}" = set; then
5306 enableval="$enable_static_dir"
5307 if test x$enableval = xyes; then
5308 support_static_dir=yes
5313 if test x$support_static_dir = xyes; then
5314 STATIC_DIR="static-bacula-dir"
5318 # -------------------------------------------
5319 # static-cons (default off)
5320 # -------------------------------------------
5321 # Check whether --enable-static-cons or --disable-static-cons was given.
5322 if test "${enable_static_cons+set}" = set; then
5323 enableval="$enable_static_cons"
5324 if test x$enableval = xyes; then
5325 support_static_cons=yes
5332 if test x$support_static_cons = xyes; then
5333 STATIC_CONS="static-bconsole"
5334 STATIC_GNOME_CONS="static-gnome-console"
5335 STATIC_WX_CONS="static-wx-console"
5341 # -------------------------------------------
5342 # client_only (default off)
5343 # -------------------------------------------
5344 # Check whether --enable-client-only or --disable-client-only was given.
5345 if test "${enable_client_only+set}" = set; then
5346 enableval="$enable_client_only"
5347 if test x$enableval = xyes; then
5348 build_client_only=yes
5353 if test x$build_client_only = xno; then
5360 # ---------------------------------------------------
5361 # Check for conio (Bacula readline substitute)(
5362 # ---------------------------------------------------
5363 # this allows you to turn it completely off
5364 # Check whether --enable-conio or --disable-conio was given.
5365 if test "${enable_conio+set}" = set; then
5366 enableval="$enable_conio"
5367 if test x$enableval = xno; then
5373 if test x$support_conio = xyes; then
5374 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5375 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5376 if test "${ac_cv_header_stdc+set}" = set; then
5377 echo $ECHO_N "(cached) $ECHO_C" >&6
5379 cat >conftest.$ac_ext <<_ACEOF
5382 cat confdefs.h >>conftest.$ac_ext
5383 cat >>conftest.$ac_ext <<_ACEOF
5384 /* end confdefs.h. */
5398 rm -f conftest.$ac_objext
5399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5400 (eval $ac_compile) 2>conftest.er1
5402 grep -v '^ *+' conftest.er1 >conftest.err
5404 cat conftest.err >&5
5405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406 (exit $ac_status); } &&
5407 { ac_try='test -z "$ac_c_werror_flag"
5408 || test ! -s conftest.err'
5409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5413 (exit $ac_status); }; } &&
5414 { ac_try='test -s conftest.$ac_objext'
5415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5419 (exit $ac_status); }; }; then
5420 ac_cv_header_stdc=yes
5422 echo "$as_me: failed program was:" >&5
5423 sed 's/^/| /' conftest.$ac_ext >&5
5425 ac_cv_header_stdc=no
5427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5429 if test $ac_cv_header_stdc = yes; then
5430 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5431 cat >conftest.$ac_ext <<_ACEOF
5434 cat confdefs.h >>conftest.$ac_ext
5435 cat >>conftest.$ac_ext <<_ACEOF
5436 /* end confdefs.h. */
5440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5441 $EGREP "memchr" >/dev/null 2>&1; then
5444 ac_cv_header_stdc=no
5450 if test $ac_cv_header_stdc = yes; then
5451 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5452 cat >conftest.$ac_ext <<_ACEOF
5455 cat confdefs.h >>conftest.$ac_ext
5456 cat >>conftest.$ac_ext <<_ACEOF
5457 /* end confdefs.h. */
5461 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5462 $EGREP "free" >/dev/null 2>&1; then
5465 ac_cv_header_stdc=no
5471 if test $ac_cv_header_stdc = yes; then
5472 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5473 if test "$cross_compiling" = yes; then
5476 cat >conftest.$ac_ext <<_ACEOF
5479 cat confdefs.h >>conftest.$ac_ext
5480 cat >>conftest.$ac_ext <<_ACEOF
5481 /* end confdefs.h. */
5483 #if ((' ' & 0x0FF) == 0x020)
5484 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5485 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5487 # define ISLOWER(c) \
5488 (('a' <= (c) && (c) <= 'i') \
5489 || ('j' <= (c) && (c) <= 'r') \
5490 || ('s' <= (c) && (c) <= 'z'))
5491 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5494 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5499 for (i = 0; i < 256; i++)
5500 if (XOR (islower (i), ISLOWER (i))
5501 || toupper (i) != TOUPPER (i))
5506 rm -f conftest$ac_exeext
5507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5508 (eval $ac_link) 2>&5
5510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5516 (exit $ac_status); }; }; then
5519 echo "$as_me: program exited with status $ac_status" >&5
5520 echo "$as_me: failed program was:" >&5
5521 sed 's/^/| /' conftest.$ac_ext >&5
5524 ac_cv_header_stdc=no
5526 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5530 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5531 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5532 if test $ac_cv_header_stdc = yes; then
5534 cat >>confdefs.h <<\_ACEOF
5535 #define STDC_HEADERS 1
5540 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5550 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5551 inttypes.h stdint.h unistd.h
5553 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5554 echo "$as_me:$LINENO: checking for $ac_header" >&5
5555 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5556 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5557 echo $ECHO_N "(cached) $ECHO_C" >&6
5559 cat >conftest.$ac_ext <<_ACEOF
5562 cat confdefs.h >>conftest.$ac_ext
5563 cat >>conftest.$ac_ext <<_ACEOF
5564 /* end confdefs.h. */
5565 $ac_includes_default
5567 #include <$ac_header>
5569 rm -f conftest.$ac_objext
5570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5571 (eval $ac_compile) 2>conftest.er1
5573 grep -v '^ *+' conftest.er1 >conftest.err
5575 cat conftest.err >&5
5576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577 (exit $ac_status); } &&
5578 { ac_try='test -z "$ac_c_werror_flag"
5579 || test ! -s conftest.err'
5580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5584 (exit $ac_status); }; } &&
5585 { ac_try='test -s conftest.$ac_objext'
5586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5590 (exit $ac_status); }; }; then
5591 eval "$as_ac_Header=yes"
5593 echo "$as_me: failed program was:" >&5
5594 sed 's/^/| /' conftest.$ac_ext >&5
5596 eval "$as_ac_Header=no"
5598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5600 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5601 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5602 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5603 cat >>confdefs.h <<_ACEOF
5604 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5612 if test "${ac_cv_header_termcap_h+set}" = set; then
5613 echo "$as_me:$LINENO: checking for termcap.h" >&5
5614 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5615 if test "${ac_cv_header_termcap_h+set}" = set; then
5616 echo $ECHO_N "(cached) $ECHO_C" >&6
5618 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5619 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5621 # Is the header compilable?
5622 echo "$as_me:$LINENO: checking termcap.h usability" >&5
5623 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
5624 cat >conftest.$ac_ext <<_ACEOF
5627 cat confdefs.h >>conftest.$ac_ext
5628 cat >>conftest.$ac_ext <<_ACEOF
5629 /* end confdefs.h. */
5630 $ac_includes_default
5631 #include <termcap.h>
5633 rm -f conftest.$ac_objext
5634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5635 (eval $ac_compile) 2>conftest.er1
5637 grep -v '^ *+' conftest.er1 >conftest.err
5639 cat conftest.err >&5
5640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5641 (exit $ac_status); } &&
5642 { ac_try='test -z "$ac_c_werror_flag"
5643 || test ! -s conftest.err'
5644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5648 (exit $ac_status); }; } &&
5649 { ac_try='test -s conftest.$ac_objext'
5650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654 (exit $ac_status); }; }; then
5655 ac_header_compiler=yes
5657 echo "$as_me: failed program was:" >&5
5658 sed 's/^/| /' conftest.$ac_ext >&5
5660 ac_header_compiler=no
5662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5663 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5664 echo "${ECHO_T}$ac_header_compiler" >&6
5666 # Is the header present?
5667 echo "$as_me:$LINENO: checking termcap.h presence" >&5
5668 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
5669 cat >conftest.$ac_ext <<_ACEOF
5672 cat confdefs.h >>conftest.$ac_ext
5673 cat >>conftest.$ac_ext <<_ACEOF
5674 /* end confdefs.h. */
5675 #include <termcap.h>
5677 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5678 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5680 grep -v '^ *+' conftest.er1 >conftest.err
5682 cat conftest.err >&5
5683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684 (exit $ac_status); } >/dev/null; then
5685 if test -s conftest.err; then
5686 ac_cpp_err=$ac_c_preproc_warn_flag
5687 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5694 if test -z "$ac_cpp_err"; then
5695 ac_header_preproc=yes
5697 echo "$as_me: failed program was:" >&5
5698 sed 's/^/| /' conftest.$ac_ext >&5
5700 ac_header_preproc=no
5702 rm -f conftest.err conftest.$ac_ext
5703 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5704 echo "${ECHO_T}$ac_header_preproc" >&6
5706 # So? What about this header?
5707 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5709 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
5710 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5711 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
5712 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
5713 ac_header_preproc=yes
5716 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
5717 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
5718 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
5719 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
5720 { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
5721 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
5722 { echo "$as_me:$LINENO: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&5
5723 echo "$as_me: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
5724 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5725 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5726 { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
5727 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
5730 ## ------------------------------------------ ##
5731 ## Report this to the AC_PACKAGE_NAME lists. ##
5732 ## ------------------------------------------ ##
5735 sed "s/^/$as_me: WARNING: /" >&2
5738 echo "$as_me:$LINENO: checking for termcap.h" >&5
5739 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5740 if test "${ac_cv_header_termcap_h+set}" = set; then
5741 echo $ECHO_N "(cached) $ECHO_C" >&6
5743 ac_cv_header_termcap_h=$ac_header_preproc
5745 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5746 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5749 if test $ac_cv_header_termcap_h = yes; then
5750 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5751 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
5752 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5753 echo $ECHO_N "(cached) $ECHO_C" >&6
5755 ac_check_lib_save_LIBS=$LIBS
5756 LIBS="-ltermcap $LIBS"
5757 cat >conftest.$ac_ext <<_ACEOF
5760 cat confdefs.h >>conftest.$ac_ext
5761 cat >>conftest.$ac_ext <<_ACEOF
5762 /* end confdefs.h. */
5764 /* Override any gcc2 internal prototype to avoid an error. */
5768 /* We use char because int might match the return type of a gcc2
5769 builtin and then its argument prototype would still apply. */
5779 rm -f conftest.$ac_objext conftest$ac_exeext
5780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5781 (eval $ac_link) 2>conftest.er1
5783 grep -v '^ *+' conftest.er1 >conftest.err
5785 cat conftest.err >&5
5786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787 (exit $ac_status); } &&
5788 { ac_try='test -z "$ac_c_werror_flag"
5789 || test ! -s conftest.err'
5790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794 (exit $ac_status); }; } &&
5795 { ac_try='test -s conftest$ac_exeext'
5796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800 (exit $ac_status); }; }; then
5801 ac_cv_lib_termcap_tgetent=yes
5803 echo "$as_me: failed program was:" >&5
5804 sed 's/^/| /' conftest.$ac_ext >&5
5806 ac_cv_lib_termcap_tgetent=no
5808 rm -f conftest.err conftest.$ac_objext \
5809 conftest$ac_exeext conftest.$ac_ext
5810 LIBS=$ac_check_lib_save_LIBS
5812 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5813 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
5814 if test $ac_cv_lib_termcap_tgetent = yes; then
5815 CONS_LIBS="-ltermcap"
5821 cat >>confdefs.h <<\_ACEOF
5822 #define HAVE_CONIO 1
5827 echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
5828 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
5829 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
5830 echo $ECHO_N "(cached) $ECHO_C" >&6
5832 ac_check_lib_save_LIBS=$LIBS
5833 LIBS="-lncurses $LIBS"
5834 cat >conftest.$ac_ext <<_ACEOF
5837 cat confdefs.h >>conftest.$ac_ext
5838 cat >>conftest.$ac_ext <<_ACEOF
5839 /* end confdefs.h. */
5841 /* Override any gcc2 internal prototype to avoid an error. */
5845 /* We use char because int might match the return type of a gcc2
5846 builtin and then its argument prototype would still apply. */
5856 rm -f conftest.$ac_objext conftest$ac_exeext
5857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5858 (eval $ac_link) 2>conftest.er1
5860 grep -v '^ *+' conftest.er1 >conftest.err
5862 cat conftest.err >&5
5863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864 (exit $ac_status); } &&
5865 { ac_try='test -z "$ac_c_werror_flag"
5866 || test ! -s conftest.err'
5867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871 (exit $ac_status); }; } &&
5872 { ac_try='test -s conftest$ac_exeext'
5873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877 (exit $ac_status); }; }; then
5878 ac_cv_lib_ncurses_tgetent=yes
5880 echo "$as_me: failed program was:" >&5
5881 sed 's/^/| /' conftest.$ac_ext >&5
5883 ac_cv_lib_ncurses_tgetent=no
5885 rm -f conftest.err conftest.$ac_objext \
5886 conftest$ac_exeext conftest.$ac_ext
5887 LIBS=$ac_check_lib_save_LIBS
5889 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
5890 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
5891 if test $ac_cv_lib_ncurses_tgetent = yes; then
5892 CONS_LIBS="-lncurses"
5898 cat >>confdefs.h <<\_ACEOF
5899 #define HAVE_CONIO 1
5912 for ac_header in curses.h
5914 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5915 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5916 echo "$as_me:$LINENO: checking for $ac_header" >&5
5917 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5918 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5919 echo $ECHO_N "(cached) $ECHO_C" >&6
5921 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5922 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5924 # Is the header compilable?
5925 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5926 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5927 cat >conftest.$ac_ext <<_ACEOF
5930 cat confdefs.h >>conftest.$ac_ext
5931 cat >>conftest.$ac_ext <<_ACEOF
5932 /* end confdefs.h. */
5933 $ac_includes_default
5934 #include <$ac_header>
5936 rm -f conftest.$ac_objext
5937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5938 (eval $ac_compile) 2>conftest.er1
5940 grep -v '^ *+' conftest.er1 >conftest.err
5942 cat conftest.err >&5
5943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944 (exit $ac_status); } &&
5945 { ac_try='test -z "$ac_c_werror_flag"
5946 || test ! -s conftest.err'
5947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951 (exit $ac_status); }; } &&
5952 { ac_try='test -s conftest.$ac_objext'
5953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957 (exit $ac_status); }; }; then
5958 ac_header_compiler=yes
5960 echo "$as_me: failed program was:" >&5
5961 sed 's/^/| /' conftest.$ac_ext >&5
5963 ac_header_compiler=no
5965 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5966 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5967 echo "${ECHO_T}$ac_header_compiler" >&6
5969 # Is the header present?
5970 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5971 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5972 cat >conftest.$ac_ext <<_ACEOF
5975 cat confdefs.h >>conftest.$ac_ext
5976 cat >>conftest.$ac_ext <<_ACEOF
5977 /* end confdefs.h. */
5978 #include <$ac_header>
5980 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5981 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5983 grep -v '^ *+' conftest.er1 >conftest.err
5985 cat conftest.err >&5
5986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987 (exit $ac_status); } >/dev/null; then
5988 if test -s conftest.err; then
5989 ac_cpp_err=$ac_c_preproc_warn_flag
5990 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5997 if test -z "$ac_cpp_err"; then
5998 ac_header_preproc=yes
6000 echo "$as_me: failed program was:" >&5
6001 sed 's/^/| /' conftest.$ac_ext >&5
6003 ac_header_preproc=no
6005 rm -f conftest.err conftest.$ac_ext
6006 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6007 echo "${ECHO_T}$ac_header_preproc" >&6
6009 # So? What about this header?
6010 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6012 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6013 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6014 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6015 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6016 ac_header_preproc=yes
6019 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6020 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6021 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6022 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6023 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6024 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6025 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6026 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6027 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6028 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6029 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6030 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6033 ## ------------------------------------------ ##
6034 ## Report this to the AC_PACKAGE_NAME lists. ##
6035 ## ------------------------------------------ ##
6038 sed "s/^/$as_me: WARNING: /" >&2
6041 echo "$as_me:$LINENO: checking for $ac_header" >&5
6042 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6043 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6044 echo $ECHO_N "(cached) $ECHO_C" >&6
6046 eval "$as_ac_Header=\$ac_header_preproc"
6048 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6049 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6052 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6053 cat >>confdefs.h <<_ACEOF
6054 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6061 echo "$as_me:$LINENO: checking for term.h" >&5
6062 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
6063 if test "${ac_cv_header_term_h+set}" = set; then
6064 echo $ECHO_N "(cached) $ECHO_C" >&6
6066 cat >conftest.$ac_ext <<_ACEOF
6069 cat confdefs.h >>conftest.$ac_ext
6070 cat >>conftest.$ac_ext <<_ACEOF
6071 /* end confdefs.h. */
6079 rm -f conftest.$ac_objext
6080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6081 (eval $ac_compile) 2>conftest.er1
6083 grep -v '^ *+' conftest.er1 >conftest.err
6085 cat conftest.err >&5
6086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087 (exit $ac_status); } &&
6088 { ac_try='test -z "$ac_c_werror_flag"
6089 || test ! -s conftest.err'
6090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094 (exit $ac_status); }; } &&
6095 { ac_try='test -s conftest.$ac_objext'
6096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6100 (exit $ac_status); }; }; then
6101 ac_cv_header_term_h=yes
6103 echo "$as_me: failed program was:" >&5
6104 sed 's/^/| /' conftest.$ac_ext >&5
6106 ac_cv_header_term_h=no
6108 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6110 echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
6111 echo "${ECHO_T}$ac_cv_header_term_h" >&6
6112 if test $ac_cv_header_term_h = yes; then
6113 echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
6114 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
6115 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
6116 echo $ECHO_N "(cached) $ECHO_C" >&6
6118 ac_check_lib_save_LIBS=$LIBS
6119 LIBS="-lcurses $LIBS"
6120 cat >conftest.$ac_ext <<_ACEOF
6123 cat confdefs.h >>conftest.$ac_ext
6124 cat >>conftest.$ac_ext <<_ACEOF
6125 /* end confdefs.h. */
6127 /* Override any gcc2 internal prototype to avoid an error. */
6131 /* We use char because int might match the return type of a gcc2
6132 builtin and then its argument prototype would still apply. */
6142 rm -f conftest.$ac_objext conftest$ac_exeext
6143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6144 (eval $ac_link) 2>conftest.er1
6146 grep -v '^ *+' conftest.er1 >conftest.err
6148 cat conftest.err >&5
6149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150 (exit $ac_status); } &&
6151 { ac_try='test -z "$ac_c_werror_flag"
6152 || test ! -s conftest.err'
6153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6157 (exit $ac_status); }; } &&
6158 { ac_try='test -s conftest$ac_exeext'
6159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163 (exit $ac_status); }; }; then
6164 ac_cv_lib_curses_tgetent=yes
6166 echo "$as_me: failed program was:" >&5
6167 sed 's/^/| /' conftest.$ac_ext >&5
6169 ac_cv_lib_curses_tgetent=no
6171 rm -f conftest.err conftest.$ac_objext \
6172 conftest$ac_exeext conftest.$ac_ext
6173 LIBS=$ac_check_lib_save_LIBS
6175 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
6176 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
6177 if test $ac_cv_lib_curses_tgetent = yes; then
6178 CONS_LIBS="-lcurses"
6184 cat >>confdefs.h <<\_ACEOF
6185 #define HAVE_CONIO 1
6193 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
6204 # ---------------------------------------------------
6205 # Check for readline support/directory (default off)
6206 # ---------------------------------------------------
6207 # this allows you to turn it completely off
6208 # Check whether --enable-readline or --disable-readline was given.
6209 if test "${enable_readline+set}" = set; then
6210 enableval="$enable_readline"
6211 if test x$enableval = xno; then
6218 if test x$support_readline = xyes; then
6220 # Check whether --with-readline or --without-readline was given.
6221 if test "${with_readline+set}" = set; then
6222 withval="$with_readline"
6224 case "$with_readline" in
6227 if test "$with_readline" != "yes"; then
6228 CONS_INC="-I${with_readline}"
6229 CONS_LDFLAGS="-L$with_readline"
6231 with_readline="/usr/include/readline"
6233 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
6234 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6235 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
6236 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
6237 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6238 echo $ECHO_N "(cached) $ECHO_C" >&6
6240 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6241 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6243 # Is the header compilable?
6244 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
6245 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
6246 cat >conftest.$ac_ext <<_ACEOF
6249 cat confdefs.h >>conftest.$ac_ext
6250 cat >>conftest.$ac_ext <<_ACEOF
6251 /* end confdefs.h. */
6252 $ac_includes_default
6253 #include <${with_readline}/readline.h>
6255 rm -f conftest.$ac_objext
6256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6257 (eval $ac_compile) 2>conftest.er1
6259 grep -v '^ *+' conftest.er1 >conftest.err
6261 cat conftest.err >&5
6262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263 (exit $ac_status); } &&
6264 { ac_try='test -z "$ac_c_werror_flag"
6265 || test ! -s conftest.err'
6266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270 (exit $ac_status); }; } &&
6271 { ac_try='test -s conftest.$ac_objext'
6272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6276 (exit $ac_status); }; }; then
6277 ac_header_compiler=yes
6279 echo "$as_me: failed program was:" >&5
6280 sed 's/^/| /' conftest.$ac_ext >&5
6282 ac_header_compiler=no
6284 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6285 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6286 echo "${ECHO_T}$ac_header_compiler" >&6
6288 # Is the header present?
6289 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
6290 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
6291 cat >conftest.$ac_ext <<_ACEOF
6294 cat confdefs.h >>conftest.$ac_ext
6295 cat >>conftest.$ac_ext <<_ACEOF
6296 /* end confdefs.h. */
6297 #include <${with_readline}/readline.h>
6299 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6300 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6302 grep -v '^ *+' conftest.er1 >conftest.err
6304 cat conftest.err >&5
6305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306 (exit $ac_status); } >/dev/null; then
6307 if test -s conftest.err; then
6308 ac_cpp_err=$ac_c_preproc_warn_flag
6309 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6316 if test -z "$ac_cpp_err"; then
6317 ac_header_preproc=yes
6319 echo "$as_me: failed program was:" >&5
6320 sed 's/^/| /' conftest.$ac_ext >&5
6322 ac_header_preproc=no
6324 rm -f conftest.err conftest.$ac_ext
6325 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6326 echo "${ECHO_T}$ac_header_preproc" >&6
6328 # So? What about this header?
6329 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6331 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6332 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6333 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
6334 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
6335 ac_header_preproc=yes
6338 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
6339 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
6340 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
6341 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
6342 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
6343 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
6344 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&5
6345 echo "$as_me: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
6346 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
6347 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
6348 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
6349 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
6352 ## ------------------------------------------ ##
6353 ## Report this to the AC_PACKAGE_NAME lists. ##
6354 ## ------------------------------------------ ##
6357 sed "s/^/$as_me: WARNING: /" >&2
6360 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
6361 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
6362 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6363 echo $ECHO_N "(cached) $ECHO_C" >&6
6365 eval "$as_ac_Header=\$ac_header_preproc"
6367 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6368 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6371 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6372 cat >>confdefs.h <<\_ACEOF
6373 #define HAVE_READLINE 1
6376 CONS_LIBS="-lreadline -ltermcap"
6381 echo "readline.h not found. readline turned off ..."
6393 # check for standard readline library
6394 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6395 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
6396 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
6397 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6398 echo $ECHO_N "(cached) $ECHO_C" >&6
6400 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
6401 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
6403 # Is the header compilable?
6404 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
6405 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
6406 cat >conftest.$ac_ext <<_ACEOF
6409 cat confdefs.h >>conftest.$ac_ext
6410 cat >>conftest.$ac_ext <<_ACEOF
6411 /* end confdefs.h. */
6412 $ac_includes_default
6413 #include </usr/include/readline/readline.h>
6415 rm -f conftest.$ac_objext
6416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6417 (eval $ac_compile) 2>conftest.er1
6419 grep -v '^ *+' conftest.er1 >conftest.err
6421 cat conftest.err >&5
6422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423 (exit $ac_status); } &&
6424 { ac_try='test -z "$ac_c_werror_flag"
6425 || test ! -s conftest.err'
6426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430 (exit $ac_status); }; } &&
6431 { ac_try='test -s conftest.$ac_objext'
6432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436 (exit $ac_status); }; }; then
6437 ac_header_compiler=yes
6439 echo "$as_me: failed program was:" >&5
6440 sed 's/^/| /' conftest.$ac_ext >&5
6442 ac_header_compiler=no
6444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6445 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6446 echo "${ECHO_T}$ac_header_compiler" >&6
6448 # Is the header present?
6449 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
6450 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
6451 cat >conftest.$ac_ext <<_ACEOF
6454 cat confdefs.h >>conftest.$ac_ext
6455 cat >>conftest.$ac_ext <<_ACEOF
6456 /* end confdefs.h. */
6457 #include </usr/include/readline/readline.h>
6459 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6460 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6462 grep -v '^ *+' conftest.er1 >conftest.err
6464 cat conftest.err >&5
6465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6466 (exit $ac_status); } >/dev/null; then
6467 if test -s conftest.err; then
6468 ac_cpp_err=$ac_c_preproc_warn_flag
6469 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6476 if test -z "$ac_cpp_err"; then
6477 ac_header_preproc=yes
6479 echo "$as_me: failed program was:" >&5
6480 sed 's/^/| /' conftest.$ac_ext >&5
6482 ac_header_preproc=no
6484 rm -f conftest.err conftest.$ac_ext
6485 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6486 echo "${ECHO_T}$ac_header_preproc" >&6
6488 # So? What about this header?
6489 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6491 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6492 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6493 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
6494 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
6495 ac_header_preproc=yes
6498 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
6499 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
6500 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
6501 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
6502 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
6503 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
6504 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
6505 echo "$as_me: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
6506 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
6507 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6508 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
6509 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
6512 ## ------------------------------------------ ##
6513 ## Report this to the AC_PACKAGE_NAME lists. ##
6514 ## ------------------------------------------ ##
6517 sed "s/^/$as_me: WARNING: /" >&2
6520 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
6521 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
6522 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6523 echo $ECHO_N "(cached) $ECHO_C" >&6
6525 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
6527 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
6528 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
6531 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
6532 cat >>confdefs.h <<\_ACEOF
6533 #define HAVE_READLINE 1
6537 CONS_INC="-I/usr/include/readline"
6538 CONS_LIBS="-lreadline -ltermcap"
6542 # Did not find standard library, so try Bacula's default
6543 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
6544 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6545 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
6546 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
6547 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6548 echo $ECHO_N "(cached) $ECHO_C" >&6
6550 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6551 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6553 # Is the header compilable?
6554 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
6555 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
6556 cat >conftest.$ac_ext <<_ACEOF
6559 cat confdefs.h >>conftest.$ac_ext
6560 cat >>conftest.$ac_ext <<_ACEOF
6561 /* end confdefs.h. */
6562 $ac_includes_default
6563 #include <${TOP_DIR}/depkgs/readline/readline.h>
6565 rm -f conftest.$ac_objext
6566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6567 (eval $ac_compile) 2>conftest.er1
6569 grep -v '^ *+' conftest.er1 >conftest.err
6571 cat conftest.err >&5
6572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6573 (exit $ac_status); } &&
6574 { ac_try='test -z "$ac_c_werror_flag"
6575 || test ! -s conftest.err'
6576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580 (exit $ac_status); }; } &&
6581 { ac_try='test -s conftest.$ac_objext'
6582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586 (exit $ac_status); }; }; then
6587 ac_header_compiler=yes
6589 echo "$as_me: failed program was:" >&5
6590 sed 's/^/| /' conftest.$ac_ext >&5
6592 ac_header_compiler=no
6594 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6595 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6596 echo "${ECHO_T}$ac_header_compiler" >&6
6598 # Is the header present?
6599 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
6600 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
6601 cat >conftest.$ac_ext <<_ACEOF
6604 cat confdefs.h >>conftest.$ac_ext
6605 cat >>conftest.$ac_ext <<_ACEOF
6606 /* end confdefs.h. */
6607 #include <${TOP_DIR}/depkgs/readline/readline.h>
6609 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6610 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6612 grep -v '^ *+' conftest.er1 >conftest.err
6614 cat conftest.err >&5
6615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616 (exit $ac_status); } >/dev/null; then
6617 if test -s conftest.err; then
6618 ac_cpp_err=$ac_c_preproc_warn_flag
6619 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6626 if test -z "$ac_cpp_err"; then
6627 ac_header_preproc=yes
6629 echo "$as_me: failed program was:" >&5
6630 sed 's/^/| /' conftest.$ac_ext >&5
6632 ac_header_preproc=no
6634 rm -f conftest.err conftest.$ac_ext
6635 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6636 echo "${ECHO_T}$ac_header_preproc" >&6
6638 # So? What about this header?
6639 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6641 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6642 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6643 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
6644 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
6645 ac_header_preproc=yes
6648 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
6649 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
6650 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
6651 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
6652 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
6653 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
6654 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
6655 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
6656 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
6657 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6658 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
6659 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
6662 ## ------------------------------------------ ##
6663 ## Report this to the AC_PACKAGE_NAME lists. ##
6664 ## ------------------------------------------ ##
6667 sed "s/^/$as_me: WARNING: /" >&2
6670 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
6671 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
6672 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6673 echo $ECHO_N "(cached) $ECHO_C" >&6
6675 eval "$as_ac_Header=\$ac_header_preproc"
6677 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6678 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6681 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6682 cat >>confdefs.h <<\_ACEOF
6683 #define HAVE_READLINE 1
6687 CONS_INC="-I${TOP_DIR}/depkgs/readline"
6688 CONS_LIBS="-lreadline -lhistory -ltermcap"
6689 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
6690 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
6694 echo "readline.h not found. readline turned off ..."
6720 # Minimal stuff for readline Makefile configuration
6723 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6724 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
6725 if test "${ac_cv_header_stat_broken+set}" = set; then
6726 echo $ECHO_N "(cached) $ECHO_C" >&6
6728 cat >conftest.$ac_ext <<_ACEOF
6731 cat confdefs.h >>conftest.$ac_ext
6732 cat >>conftest.$ac_ext <<_ACEOF
6733 /* end confdefs.h. */
6734 #include <sys/types.h>
6735 #include <sys/stat.h>
6737 #if defined(S_ISBLK) && defined(S_IFDIR)
6738 # if S_ISBLK (S_IFDIR)
6743 #if defined(S_ISBLK) && defined(S_IFCHR)
6744 # if S_ISBLK (S_IFCHR)
6749 #if defined(S_ISLNK) && defined(S_IFREG)
6750 # if S_ISLNK (S_IFREG)
6755 #if defined(S_ISSOCK) && defined(S_IFREG)
6756 # if S_ISSOCK (S_IFREG)
6762 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6763 $EGREP "You lose" >/dev/null 2>&1; then
6764 ac_cv_header_stat_broken=yes
6766 ac_cv_header_stat_broken=no
6771 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6772 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
6773 if test $ac_cv_header_stat_broken = yes; then
6775 cat >>confdefs.h <<\_ACEOF
6776 #define STAT_MACROS_BROKEN 1
6787 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6788 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6789 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6790 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6791 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6792 echo $ECHO_N "(cached) $ECHO_C" >&6
6794 cat >conftest.$ac_ext <<_ACEOF
6797 cat confdefs.h >>conftest.$ac_ext
6798 cat >>conftest.$ac_ext <<_ACEOF
6799 /* end confdefs.h. */
6800 #include <sys/types.h>
6812 rm -f conftest.$ac_objext
6813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6814 (eval $ac_compile) 2>conftest.er1
6816 grep -v '^ *+' conftest.er1 >conftest.err
6818 cat conftest.err >&5
6819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6820 (exit $ac_status); } &&
6821 { ac_try='test -z "$ac_c_werror_flag"
6822 || test ! -s conftest.err'
6823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6827 (exit $ac_status); }; } &&
6828 { ac_try='test -s conftest.$ac_objext'
6829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6833 (exit $ac_status); }; }; then
6834 eval "$as_ac_Header=yes"
6836 echo "$as_me: failed program was:" >&5
6837 sed 's/^/| /' conftest.$ac_ext >&5
6839 eval "$as_ac_Header=no"
6841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6843 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6844 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6845 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6846 cat >>confdefs.h <<_ACEOF
6847 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6850 ac_header_dirent=$ac_hdr; break
6854 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6855 if test $ac_header_dirent = dirent.h; then
6856 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6857 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6858 if test "${ac_cv_search_opendir+set}" = set; then
6859 echo $ECHO_N "(cached) $ECHO_C" >&6
6861 ac_func_search_save_LIBS=$LIBS
6862 ac_cv_search_opendir=no
6863 cat >conftest.$ac_ext <<_ACEOF
6866 cat confdefs.h >>conftest.$ac_ext
6867 cat >>conftest.$ac_ext <<_ACEOF
6868 /* end confdefs.h. */
6870 /* Override any gcc2 internal prototype to avoid an error. */
6874 /* We use char because int might match the return type of a gcc2
6875 builtin and then its argument prototype would still apply. */
6885 rm -f conftest.$ac_objext conftest$ac_exeext
6886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6887 (eval $ac_link) 2>conftest.er1
6889 grep -v '^ *+' conftest.er1 >conftest.err
6891 cat conftest.err >&5
6892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6893 (exit $ac_status); } &&
6894 { ac_try='test -z "$ac_c_werror_flag"
6895 || test ! -s conftest.err'
6896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6900 (exit $ac_status); }; } &&
6901 { ac_try='test -s conftest$ac_exeext'
6902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6906 (exit $ac_status); }; }; then
6907 ac_cv_search_opendir="none required"
6909 echo "$as_me: failed program was:" >&5
6910 sed 's/^/| /' conftest.$ac_ext >&5
6913 rm -f conftest.err conftest.$ac_objext \
6914 conftest$ac_exeext conftest.$ac_ext
6915 if test "$ac_cv_search_opendir" = no; then
6916 for ac_lib in dir; do
6917 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6918 cat >conftest.$ac_ext <<_ACEOF
6921 cat confdefs.h >>conftest.$ac_ext
6922 cat >>conftest.$ac_ext <<_ACEOF
6923 /* end confdefs.h. */
6925 /* Override any gcc2 internal prototype to avoid an error. */
6929 /* We use char because int might match the return type of a gcc2
6930 builtin and then its argument prototype would still apply. */
6940 rm -f conftest.$ac_objext conftest$ac_exeext
6941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6942 (eval $ac_link) 2>conftest.er1
6944 grep -v '^ *+' conftest.er1 >conftest.err
6946 cat conftest.err >&5
6947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6948 (exit $ac_status); } &&
6949 { ac_try='test -z "$ac_c_werror_flag"
6950 || test ! -s conftest.err'
6951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6955 (exit $ac_status); }; } &&
6956 { ac_try='test -s conftest$ac_exeext'
6957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961 (exit $ac_status); }; }; then
6962 ac_cv_search_opendir="-l$ac_lib"
6965 echo "$as_me: failed program was:" >&5
6966 sed 's/^/| /' conftest.$ac_ext >&5
6969 rm -f conftest.err conftest.$ac_objext \
6970 conftest$ac_exeext conftest.$ac_ext
6973 LIBS=$ac_func_search_save_LIBS
6975 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6976 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6977 if test "$ac_cv_search_opendir" != no; then
6978 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6983 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6984 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6985 if test "${ac_cv_search_opendir+set}" = set; then
6986 echo $ECHO_N "(cached) $ECHO_C" >&6
6988 ac_func_search_save_LIBS=$LIBS
6989 ac_cv_search_opendir=no
6990 cat >conftest.$ac_ext <<_ACEOF
6993 cat confdefs.h >>conftest.$ac_ext
6994 cat >>conftest.$ac_ext <<_ACEOF
6995 /* end confdefs.h. */
6997 /* Override any gcc2 internal prototype to avoid an error. */
7001 /* We use char because int might match the return type of a gcc2
7002 builtin and then its argument prototype would still apply. */
7012 rm -f conftest.$ac_objext conftest$ac_exeext
7013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7014 (eval $ac_link) 2>conftest.er1
7016 grep -v '^ *+' conftest.er1 >conftest.err
7018 cat conftest.err >&5
7019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7020 (exit $ac_status); } &&
7021 { ac_try='test -z "$ac_c_werror_flag"
7022 || test ! -s conftest.err'
7023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7027 (exit $ac_status); }; } &&
7028 { ac_try='test -s conftest$ac_exeext'
7029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7033 (exit $ac_status); }; }; then
7034 ac_cv_search_opendir="none required"
7036 echo "$as_me: failed program was:" >&5
7037 sed 's/^/| /' conftest.$ac_ext >&5
7040 rm -f conftest.err conftest.$ac_objext \
7041 conftest$ac_exeext conftest.$ac_ext
7042 if test "$ac_cv_search_opendir" = no; then
7044 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7045 cat >conftest.$ac_ext <<_ACEOF
7048 cat confdefs.h >>conftest.$ac_ext
7049 cat >>conftest.$ac_ext <<_ACEOF
7050 /* end confdefs.h. */
7052 /* Override any gcc2 internal prototype to avoid an error. */
7056 /* We use char because int might match the return type of a gcc2
7057 builtin and then its argument prototype would still apply. */
7067 rm -f conftest.$ac_objext conftest$ac_exeext
7068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7069 (eval $ac_link) 2>conftest.er1
7071 grep -v '^ *+' conftest.er1 >conftest.err
7073 cat conftest.err >&5
7074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7075 (exit $ac_status); } &&
7076 { ac_try='test -z "$ac_c_werror_flag"
7077 || test ! -s conftest.err'
7078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7082 (exit $ac_status); }; } &&
7083 { ac_try='test -s conftest$ac_exeext'
7084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7088 (exit $ac_status); }; }; then
7089 ac_cv_search_opendir="-l$ac_lib"
7092 echo "$as_me: failed program was:" >&5
7093 sed 's/^/| /' conftest.$ac_ext >&5
7096 rm -f conftest.err conftest.$ac_objext \
7097 conftest$ac_exeext conftest.$ac_ext
7100 LIBS=$ac_func_search_save_LIBS
7102 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7103 echo "${ECHO_T}$ac_cv_search_opendir" >&6
7104 if test "$ac_cv_search_opendir" != no; then
7105 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
7119 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
7121 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7122 echo "$as_me:$LINENO: checking for $ac_func" >&5
7123 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7124 if eval "test \"\${$as_ac_var+set}\" = set"; then
7125 echo $ECHO_N "(cached) $ECHO_C" >&6
7127 cat >conftest.$ac_ext <<_ACEOF
7130 cat confdefs.h >>conftest.$ac_ext
7131 cat >>conftest.$ac_ext <<_ACEOF
7132 /* end confdefs.h. */
7133 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7134 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7135 #define $ac_func innocuous_$ac_func
7137 /* System header to define __stub macros and hopefully few prototypes,
7138 which can conflict with char $ac_func (); below.
7139 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7140 <limits.h> exists even on freestanding compilers. */
7143 # include <limits.h>
7145 # include <assert.h>
7150 /* Override any gcc2 internal prototype to avoid an error. */
7155 /* We use char because int might match the return type of a gcc2
7156 builtin and then its argument prototype would still apply. */
7158 /* The GNU C library defines this for functions which it implements
7159 to always fail with ENOSYS. Some functions are actually named
7160 something starting with __ and the normal name is an alias. */
7161 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7164 char (*f) () = $ac_func;
7173 return f != $ac_func;
7178 rm -f conftest.$ac_objext conftest$ac_exeext
7179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7180 (eval $ac_link) 2>conftest.er1
7182 grep -v '^ *+' conftest.er1 >conftest.err
7184 cat conftest.err >&5
7185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7186 (exit $ac_status); } &&
7187 { ac_try='test -z "$ac_c_werror_flag"
7188 || test ! -s conftest.err'
7189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7193 (exit $ac_status); }; } &&
7194 { ac_try='test -s conftest$ac_exeext'
7195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7199 (exit $ac_status); }; }; then
7200 eval "$as_ac_var=yes"
7202 echo "$as_me: failed program was:" >&5
7203 sed 's/^/| /' conftest.$ac_ext >&5
7205 eval "$as_ac_var=no"
7207 rm -f conftest.err conftest.$ac_objext \
7208 conftest$ac_exeext conftest.$ac_ext
7210 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7211 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7212 if test `eval echo '${'$as_ac_var'}'` = yes; then
7213 cat >>confdefs.h <<_ACEOF
7214 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7222 for ac_func in nanosleep nl_langinfo
7224 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7225 echo "$as_me:$LINENO: checking for $ac_func" >&5
7226 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7227 if eval "test \"\${$as_ac_var+set}\" = set"; then
7228 echo $ECHO_N "(cached) $ECHO_C" >&6
7230 cat >conftest.$ac_ext <<_ACEOF
7233 cat confdefs.h >>conftest.$ac_ext
7234 cat >>conftest.$ac_ext <<_ACEOF
7235 /* end confdefs.h. */
7236 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7237 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7238 #define $ac_func innocuous_$ac_func
7240 /* System header to define __stub macros and hopefully few prototypes,
7241 which can conflict with char $ac_func (); below.
7242 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7243 <limits.h> exists even on freestanding compilers. */
7246 # include <limits.h>
7248 # include <assert.h>
7253 /* Override any gcc2 internal prototype to avoid an error. */
7258 /* We use char because int might match the return type of a gcc2
7259 builtin and then its argument prototype would still apply. */
7261 /* The GNU C library defines this for functions which it implements
7262 to always fail with ENOSYS. Some functions are actually named
7263 something starting with __ and the normal name is an alias. */
7264 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7267 char (*f) () = $ac_func;
7276 return f != $ac_func;
7281 rm -f conftest.$ac_objext conftest$ac_exeext
7282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7283 (eval $ac_link) 2>conftest.er1
7285 grep -v '^ *+' conftest.er1 >conftest.err
7287 cat conftest.err >&5
7288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7289 (exit $ac_status); } &&
7290 { ac_try='test -z "$ac_c_werror_flag"
7291 || test ! -s conftest.err'
7292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7296 (exit $ac_status); }; } &&
7297 { ac_try='test -s conftest$ac_exeext'
7298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7302 (exit $ac_status); }; }; then
7303 eval "$as_ac_var=yes"
7305 echo "$as_me: failed program was:" >&5
7306 sed 's/^/| /' conftest.$ac_ext >&5
7308 eval "$as_ac_var=no"
7310 rm -f conftest.err conftest.$ac_objext \
7311 conftest$ac_exeext conftest.$ac_ext
7313 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7314 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7315 if test `eval echo '${'$as_ac_var'}'` = yes; then
7316 cat >>confdefs.h <<_ACEOF
7317 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7324 for ac_header in varargs.h
7326 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7327 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7328 echo "$as_me:$LINENO: checking for $ac_header" >&5
7329 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7330 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7331 echo $ECHO_N "(cached) $ECHO_C" >&6
7333 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7334 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7336 # Is the header compilable?
7337 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7338 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7339 cat >conftest.$ac_ext <<_ACEOF
7342 cat confdefs.h >>conftest.$ac_ext
7343 cat >>conftest.$ac_ext <<_ACEOF
7344 /* end confdefs.h. */
7345 $ac_includes_default
7346 #include <$ac_header>
7348 rm -f conftest.$ac_objext
7349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7350 (eval $ac_compile) 2>conftest.er1
7352 grep -v '^ *+' conftest.er1 >conftest.err
7354 cat conftest.err >&5
7355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7356 (exit $ac_status); } &&
7357 { ac_try='test -z "$ac_c_werror_flag"
7358 || test ! -s conftest.err'
7359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7363 (exit $ac_status); }; } &&
7364 { ac_try='test -s conftest.$ac_objext'
7365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7369 (exit $ac_status); }; }; then
7370 ac_header_compiler=yes
7372 echo "$as_me: failed program was:" >&5
7373 sed 's/^/| /' conftest.$ac_ext >&5
7375 ac_header_compiler=no
7377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7378 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7379 echo "${ECHO_T}$ac_header_compiler" >&6
7381 # Is the header present?
7382 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7383 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7384 cat >conftest.$ac_ext <<_ACEOF
7387 cat confdefs.h >>conftest.$ac_ext
7388 cat >>conftest.$ac_ext <<_ACEOF
7389 /* end confdefs.h. */
7390 #include <$ac_header>
7392 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7393 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7395 grep -v '^ *+' conftest.er1 >conftest.err
7397 cat conftest.err >&5
7398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7399 (exit $ac_status); } >/dev/null; then
7400 if test -s conftest.err; then
7401 ac_cpp_err=$ac_c_preproc_warn_flag
7402 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7409 if test -z "$ac_cpp_err"; then
7410 ac_header_preproc=yes
7412 echo "$as_me: failed program was:" >&5
7413 sed 's/^/| /' conftest.$ac_ext >&5
7415 ac_header_preproc=no
7417 rm -f conftest.err conftest.$ac_ext
7418 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7419 echo "${ECHO_T}$ac_header_preproc" >&6
7421 # So? What about this header?
7422 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7424 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7425 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7426 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7427 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7428 ac_header_preproc=yes
7431 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7432 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7433 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7434 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7435 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7436 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7437 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7438 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7439 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7440 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7441 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7442 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7445 ## ------------------------------------------ ##
7446 ## Report this to the AC_PACKAGE_NAME lists. ##
7447 ## ------------------------------------------ ##
7450 sed "s/^/$as_me: WARNING: /" >&2
7453 echo "$as_me:$LINENO: checking for $ac_header" >&5
7454 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7455 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7456 echo $ECHO_N "(cached) $ECHO_C" >&6
7458 eval "$as_ac_Header=\$ac_header_preproc"
7460 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7461 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7464 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7465 cat >>confdefs.h <<_ACEOF
7466 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7474 # End of readline/conio stuff
7475 # -----------------------------------------------------------------------
7477 # -----------------------------------------------------------------------
7478 # Check for Python support
7480 echo "$as_me:$LINENO: checking for Python support" >&5
7481 echo $ECHO_N "checking for Python support... $ECHO_C" >&6
7483 # Check whether --with-python or --without-python was given.
7484 if test "${with_python+set}" = set; then
7485 withval="$with_python"
7489 if test "$withval" != "no"; then
7490 if test "$withval" = "yes"; then
7491 if test -f /usr/include/python2.2/Python.h; then
7492 PYTHON_INCDIR=-I/usr/include/python2.2
7493 PYTHON_LIBS="-L/usr/lib/python2.2/config -lpython2.2 -lutil -ldl"
7494 elif test -f /usr/include/python2.3/Python.h; then
7495 PYTHON_INCDIR=-I/usr/include/python2.3
7496 PYTHON_LIBS="-L/usr/lib/python2.3/config -lpython2.3 -lutil -ldl"
7497 elif test -f /usr/include/python2.4/Python.h; then
7498 PYTHON_INCDIR=-I/usr/include/python2.4
7499 PYTHON_LIBS="-L/usr/lib/python2.4/config -lpython2.4 -lutil -ldl"
7500 elif test -f $prefix/include/Python.h; then
7501 PYTHON_INCDIR=-I$prefix/include
7502 PYTHON_LIBS="-L$prefix/lib/config -lpython -lutil -ldl"
7504 echo "$as_me:$LINENO: result: no" >&5
7505 echo "${ECHO_T}no" >&6
7506 { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
7507 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
7508 { (exit 1); exit 1; }; }
7511 if test -f $withval/Python.h; then
7512 PYTHON_INCDIR=-I$withval
7513 PYTHON_LIBS="-L$withval/config -lpython -lutil -ldl"
7514 elif test -f $withval/include/Python.h; then
7515 PYTHON_INCDIR=-I$withval/include
7516 PYTHON_LIBS="-L$withval/lib/config -lpython -lutil -ldl"
7518 echo "$as_me:$LINENO: result: no" >&5
7519 echo "${ECHO_T}no" >&6
7520 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
7521 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
7522 { (exit 1); exit 1; }; }
7525 cat >>confdefs.h <<\_ACEOF
7526 #define HAVE_PYTHON 1
7529 echo "$as_me:$LINENO: result: yes" >&5
7530 echo "${ECHO_T}yes" >&6
7534 echo "$as_me:$LINENO: result: no" >&5
7535 echo "${ECHO_T}no" >&6
7540 echo "$as_me:$LINENO: result: no" >&5
7541 echo "${ECHO_T}no" >&6
7549 # Find where sockets are (especially for Solaris)
7550 # Do this before the TCP Wrappers test since tcp wrappers
7551 # uses the socket library and some linkers are stupid.
7553 echo "$as_me:$LINENO: checking for socket" >&5
7554 echo $ECHO_N "checking for socket... $ECHO_C" >&6
7555 if test "${ac_cv_func_socket+set}" = set; then
7556 echo $ECHO_N "(cached) $ECHO_C" >&6
7558 cat >conftest.$ac_ext <<_ACEOF
7561 cat confdefs.h >>conftest.$ac_ext
7562 cat >>conftest.$ac_ext <<_ACEOF
7563 /* end confdefs.h. */
7564 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
7565 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7566 #define socket innocuous_socket
7568 /* System header to define __stub macros and hopefully few prototypes,
7569 which can conflict with char socket (); below.
7570 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7571 <limits.h> exists even on freestanding compilers. */
7574 # include <limits.h>
7576 # include <assert.h>
7581 /* Override any gcc2 internal prototype to avoid an error. */
7586 /* We use char because int might match the return type of a gcc2
7587 builtin and then its argument prototype would still apply. */
7589 /* The GNU C library defines this for functions which it implements
7590 to always fail with ENOSYS. Some functions are actually named
7591 something starting with __ and the normal name is an alias. */
7592 #if defined (__stub_socket) || defined (__stub___socket)
7595 char (*f) () = socket;
7609 rm -f conftest.$ac_objext conftest$ac_exeext
7610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7611 (eval $ac_link) 2>conftest.er1
7613 grep -v '^ *+' conftest.er1 >conftest.err
7615 cat conftest.err >&5
7616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7617 (exit $ac_status); } &&
7618 { ac_try='test -z "$ac_c_werror_flag"
7619 || test ! -s conftest.err'
7620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7624 (exit $ac_status); }; } &&
7625 { ac_try='test -s conftest$ac_exeext'
7626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7630 (exit $ac_status); }; }; then
7631 ac_cv_func_socket=yes
7633 echo "$as_me: failed program was:" >&5
7634 sed 's/^/| /' conftest.$ac_ext >&5
7636 ac_cv_func_socket=no
7638 rm -f conftest.err conftest.$ac_objext \
7639 conftest$ac_exeext conftest.$ac_ext
7641 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
7642 echo "${ECHO_T}$ac_cv_func_socket" >&6
7643 if test $ac_cv_func_socket = yes; then
7644 echo "$as_me:$LINENO: result: using libc's socket" >&5
7645 echo "${ECHO_T}using libc's socket" >&6
7648 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
7649 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
7650 if test "${ac_cv_lib_xnet_socket+set}" = set; then
7651 echo $ECHO_N "(cached) $ECHO_C" >&6
7653 ac_check_lib_save_LIBS=$LIBS
7655 cat >conftest.$ac_ext <<_ACEOF
7658 cat confdefs.h >>conftest.$ac_ext
7659 cat >>conftest.$ac_ext <<_ACEOF
7660 /* end confdefs.h. */
7662 /* Override any gcc2 internal prototype to avoid an error. */
7666 /* We use char because int might match the return type of a gcc2
7667 builtin and then its argument prototype would still apply. */
7677 rm -f conftest.$ac_objext conftest$ac_exeext
7678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7679 (eval $ac_link) 2>conftest.er1
7681 grep -v '^ *+' conftest.er1 >conftest.err
7683 cat conftest.err >&5
7684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7685 (exit $ac_status); } &&
7686 { ac_try='test -z "$ac_c_werror_flag"
7687 || test ! -s conftest.err'
7688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7692 (exit $ac_status); }; } &&
7693 { ac_try='test -s conftest$ac_exeext'
7694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7698 (exit $ac_status); }; }; then
7699 ac_cv_lib_xnet_socket=yes
7701 echo "$as_me: failed program was:" >&5
7702 sed 's/^/| /' conftest.$ac_ext >&5
7704 ac_cv_lib_xnet_socket=no
7706 rm -f conftest.err conftest.$ac_objext \
7707 conftest$ac_exeext conftest.$ac_ext
7708 LIBS=$ac_check_lib_save_LIBS
7710 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
7711 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
7712 if test $ac_cv_lib_xnet_socket = yes; then
7713 cat >>confdefs.h <<_ACEOF
7714 #define HAVE_LIBXNET 1
7722 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
7723 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
7724 if test "${ac_cv_lib_socket_socket+set}" = set; then
7725 echo $ECHO_N "(cached) $ECHO_C" >&6
7727 ac_check_lib_save_LIBS=$LIBS
7728 LIBS="-lsocket $LIBS"
7729 cat >conftest.$ac_ext <<_ACEOF
7732 cat confdefs.h >>conftest.$ac_ext
7733 cat >>conftest.$ac_ext <<_ACEOF
7734 /* end confdefs.h. */
7736 /* Override any gcc2 internal prototype to avoid an error. */
7740 /* We use char because int might match the return type of a gcc2
7741 builtin and then its argument prototype would still apply. */
7751 rm -f conftest.$ac_objext conftest$ac_exeext
7752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7753 (eval $ac_link) 2>conftest.er1
7755 grep -v '^ *+' conftest.er1 >conftest.err
7757 cat conftest.err >&5
7758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7759 (exit $ac_status); } &&
7760 { ac_try='test -z "$ac_c_werror_flag"
7761 || test ! -s conftest.err'
7762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7766 (exit $ac_status); }; } &&
7767 { ac_try='test -s conftest$ac_exeext'
7768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772 (exit $ac_status); }; }; then
7773 ac_cv_lib_socket_socket=yes
7775 echo "$as_me: failed program was:" >&5
7776 sed 's/^/| /' conftest.$ac_ext >&5
7778 ac_cv_lib_socket_socket=no
7780 rm -f conftest.err conftest.$ac_objext \
7781 conftest$ac_exeext conftest.$ac_ext
7782 LIBS=$ac_check_lib_save_LIBS
7784 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
7785 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
7786 if test $ac_cv_lib_socket_socket = yes; then
7787 cat >>confdefs.h <<_ACEOF
7788 #define HAVE_LIBSOCKET 1
7791 LIBS="-lsocket $LIBS"
7796 echo "$as_me:$LINENO: checking for socket in -linet" >&5
7797 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
7798 if test "${ac_cv_lib_inet_socket+set}" = set; then
7799 echo $ECHO_N "(cached) $ECHO_C" >&6
7801 ac_check_lib_save_LIBS=$LIBS
7803 cat >conftest.$ac_ext <<_ACEOF
7806 cat confdefs.h >>conftest.$ac_ext
7807 cat >>conftest.$ac_ext <<_ACEOF
7808 /* end confdefs.h. */
7810 /* Override any gcc2 internal prototype to avoid an error. */
7814 /* We use char because int might match the return type of a gcc2
7815 builtin and then its argument prototype would still apply. */
7825 rm -f conftest.$ac_objext conftest$ac_exeext
7826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7827 (eval $ac_link) 2>conftest.er1
7829 grep -v '^ *+' conftest.er1 >conftest.err
7831 cat conftest.err >&5
7832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833 (exit $ac_status); } &&
7834 { ac_try='test -z "$ac_c_werror_flag"
7835 || test ! -s conftest.err'
7836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7840 (exit $ac_status); }; } &&
7841 { ac_try='test -s conftest$ac_exeext'
7842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7846 (exit $ac_status); }; }; then
7847 ac_cv_lib_inet_socket=yes
7849 echo "$as_me: failed program was:" >&5
7850 sed 's/^/| /' conftest.$ac_ext >&5
7852 ac_cv_lib_inet_socket=no
7854 rm -f conftest.err conftest.$ac_objext \
7855 conftest$ac_exeext conftest.$ac_ext
7856 LIBS=$ac_check_lib_save_LIBS
7858 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
7859 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
7860 if test $ac_cv_lib_inet_socket = yes; then
7861 cat >>confdefs.h <<_ACEOF
7862 #define HAVE_LIBINET 1
7873 # -----------------------------------------------------------
7874 # Check whether user wants TCP wrappers support (default off)
7875 # -----------------------------------------------------------
7878 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
7879 if test "${with_tcp_wrappers+set}" = set; then
7880 withval="$with_tcp_wrappers"
7882 if test "x$withval" != "xno" ; then
7884 LIBS="$saved_LIBS -lwrap"
7885 echo "$as_me:$LINENO: checking for libwrap" >&5
7886 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
7887 cat >conftest.$ac_ext <<_ACEOF
7890 cat confdefs.h >>conftest.$ac_ext
7891 cat >>conftest.$ac_ext <<_ACEOF
7892 /* end confdefs.h. */
7894 int deny_severity = 0;
7895 int allow_severity = 0;
7896 struct request_info *req;
7905 rm -f conftest.$ac_objext conftest$ac_exeext
7906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7907 (eval $ac_link) 2>conftest.er1
7909 grep -v '^ *+' conftest.er1 >conftest.err
7911 cat conftest.err >&5
7912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7913 (exit $ac_status); } &&
7914 { ac_try='test -z "$ac_c_werror_flag"
7915 || test ! -s conftest.err'
7916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7920 (exit $ac_status); }; } &&
7921 { ac_try='test -s conftest$ac_exeext'
7922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7926 (exit $ac_status); }; }; then
7928 echo "$as_me:$LINENO: result: yes" >&5
7929 echo "${ECHO_T}yes" >&6
7930 cat >>confdefs.h <<\_ACEOF
7931 #define HAVE_LIBWRAP 1
7937 echo "$as_me: failed program was:" >&5
7938 sed 's/^/| /' conftest.$ac_ext >&5
7941 LIBS="$saved_LIBS -lwrap -lnsl"
7942 cat >conftest.$ac_ext <<_ACEOF
7945 cat confdefs.h >>conftest.$ac_ext
7946 cat >>conftest.$ac_ext <<_ACEOF
7947 /* end confdefs.h. */
7949 int deny_severity = 0;
7950 int allow_severity = 0;
7951 struct request_info *req;
7960 rm -f conftest.$ac_objext conftest$ac_exeext
7961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7962 (eval $ac_link) 2>conftest.er1
7964 grep -v '^ *+' conftest.er1 >conftest.err
7966 cat conftest.err >&5
7967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968 (exit $ac_status); } &&
7969 { ac_try='test -z "$ac_c_werror_flag"
7970 || test ! -s conftest.err'
7971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7975 (exit $ac_status); }; } &&
7976 { ac_try='test -s conftest$ac_exeext'
7977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7981 (exit $ac_status); }; }; then
7983 echo "$as_me:$LINENO: result: yes" >&5
7984 echo "${ECHO_T}yes" >&6
7985 cat >>confdefs.h <<\_ACEOF
7986 #define HAVE_LIBWRAP 1
7992 echo "$as_me: failed program was:" >&5
7993 sed 's/^/| /' conftest.$ac_ext >&5
7995 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
7996 echo "$as_me: error: *** libwrap missing" >&2;}
7997 { (exit 1); exit 1; }; }
8000 rm -f conftest.err conftest.$ac_objext \
8001 conftest$ac_exeext conftest.$ac_ext
8004 rm -f conftest.err conftest.$ac_objext \
8005 conftest$ac_exeext conftest.$ac_ext
8011 # -----------------------------------------------------------
8012 # Check whether OpenSSL is available
8013 # -----------------------------------------------------------
8014 echo "$as_me:$LINENO: checking for OpenSSL" >&5
8015 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6
8017 # Check whether --with-openssl or --without-openssl was given.
8018 if test "${with_openssl+set}" = set; then
8019 withval="$with_openssl"
8020 with_openssl_directory=${withval}
8023 if test "x$with_openssl_directory" != "x"; then
8024 OPENSSL_LIBS="-lssl -lcrypto"
8027 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
8028 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
8029 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
8033 saved_CFLAGS="$CFLAGS"
8034 LIBS="$saved_LIBS $OPENSSL_LIBS"
8035 CFLAGS="$saved_CFLAGS $OPENSSL_INC"
8037 cat >conftest.$ac_ext <<_ACEOF
8040 cat confdefs.h >>conftest.$ac_ext
8041 cat >>conftest.$ac_ext <<_ACEOF
8042 /* end confdefs.h. */
8043 #include <openssl/ssl.h>
8047 CRYPTO_set_id_callback(NULL);
8052 rm -f conftest.$ac_objext conftest$ac_exeext
8053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8054 (eval $ac_link) 2>conftest.er1
8056 grep -v '^ *+' conftest.er1 >conftest.err
8058 cat conftest.err >&5
8059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8060 (exit $ac_status); } &&
8061 { ac_try='test -z "$ac_c_werror_flag"
8062 || test ! -s conftest.err'
8063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067 (exit $ac_status); }; } &&
8068 { ac_try='test -s conftest$ac_exeext'
8069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8073 (exit $ac_status); }; }; then
8076 echo "$as_me: failed program was:" >&5
8077 sed 's/^/| /' conftest.$ac_ext >&5
8082 rm -f conftest.err conftest.$ac_objext \
8083 conftest$ac_exeext conftest.$ac_ext
8086 CFLAGS="$saved_CFLAGS"
8088 if test "$support_tls" = "yes"; then
8090 cat >>confdefs.h <<\_ACEOF
8091 #define HAVE_OPENSSL 1
8095 cat >>confdefs.h <<\_ACEOF
8106 echo "$as_me:$LINENO: result: $support_tls" >&5
8107 echo "${ECHO_T}$support_tls" >&6
8113 # ------------------------------------------
8114 # Where to place working dir
8115 # ------------------------------------------
8116 working_dir=`eval echo ${prefix}/var/bacula/working`
8118 # Check whether --with-working-dir or --without-working-dir was given.
8119 if test "${with_working_dir+set}" = set; then
8120 withval="$with_working_dir"
8122 if test "x$withval" != "xno" ; then
8123 working_dir=$withval
8132 # ------------------------------------------
8133 # Where to place scriptdir (script files)
8134 # ------------------------------------------
8135 scriptdir=`eval echo ${sysconfdir}`
8137 # Check whether --with-scriptdir or --without-scriptdir was given.
8138 if test "${with_scriptdir+set}" = set; then
8139 withval="$with_scriptdir"
8141 if test "x$withval" != "xno" ; then
8151 # ------------------------------------------
8152 # Where to send dump email
8153 # ------------------------------------------
8154 dump_email=root@localhost
8156 # Check whether --with-dump-email or --without-dump-email was given.
8157 if test "${with_dump_email+set}" = set; then
8158 withval="$with_dump_email"
8160 if test "x$withval" != "xno" ; then
8169 # ------------------------------------------
8170 # Where to send job email
8171 # ------------------------------------------
8172 job_email=root@localhost
8174 # Check whether --with-job-email or --without-job-email was given.
8175 if test "${with_job_email+set}" = set; then
8176 withval="$with_job_email"
8178 if test "x$withval" != "xno" ; then
8187 # ------------------------------------------
8188 # Where to find smtp host
8189 # ------------------------------------------
8192 # Check whether --with-smtp_host or --without-smtp_host was given.
8193 if test "${with_smtp_host+set}" = set; then
8194 withval="$with_smtp_host"
8196 if test "x$withval" != "xno" ; then
8206 # ------------------------------------
8207 # Where to place pid files
8208 # ------------------------------------
8211 # Check whether --with-pid-dir or --without-pid-dir was given.
8212 if test "${with_pid_dir+set}" = set; then
8213 withval="$with_pid_dir"
8215 if test "x$withval" != "xno" ; then
8222 cat >>confdefs.h <<_ACEOF
8223 #define _PATH_BACULA_PIDDIR "$piddir"
8229 # ------------------------------------
8230 # Where to place subsys "lock file"
8231 # ------------------------------------
8232 subsysdir=/var/run/subsys
8234 # Check whether --with-subsys-dir or --without-subsys-dir was given.
8235 if test "${with_subsys_dir+set}" = set; then
8236 withval="$with_subsys_dir"
8238 if test "x$withval" != "xno" ; then
8249 # ------------------------------------
8250 # Where to start assigning ports
8251 # ------------------------------------
8254 # Check whether --with-baseport or --without-baseport was given.
8255 if test "${with_baseport+set}" = set; then
8256 withval="$with_baseport"
8258 if test "x$withval" != "xno" ; then
8266 dir_port=`expr $baseport`
8267 fd_port=`expr $baseport + 1`
8268 sd_port=`expr $fd_port + 1`
8275 # ------------------------------------------
8276 # Generate passwords
8277 # ------------------------------------------
8280 # Check whether --with-dir-password or --without-dir-password was given.
8281 if test "${with_dir_password+set}" = set; then
8282 withval="$with_dir_password"
8284 if test "x$withval" != "xno" ; then
8285 dir_password=$withval
8291 if test "x$dir_password" = "x" ; then
8292 if test "x$OPENSSL" = "xnone" ; then
8293 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
8294 key=`autoconf/randpass 33`
8296 key=`openssl rand -base64 33`
8303 # Check whether --with-fd-password or --without-fd-password was given.
8304 if test "${with_fd_password+set}" = set; then
8305 withval="$with_fd_password"
8307 if test "x$withval" != "xno" ; then
8308 fd_password=$withval
8314 if test "x$fd_password" = "x" ; then
8315 if test "x$OPENSSL" = "xnone" ; then
8316 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
8317 key=`autoconf/randpass 37`
8319 key=`openssl rand -base64 33`
8326 # Check whether --with-sd-password or --without-sd-password was given.
8327 if test "${with_sd_password+set}" = set; then
8328 withval="$with_sd_password"
8330 if test "x$withval" != "xno" ; then
8331 sd_password=$withval
8337 if test "x$sd_password" = "x" ; then
8338 if test "x$OPENSSL" = "xnone" ; then
8339 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
8340 key=`autoconf/randpass 41`
8342 key=`openssl rand -base64 33`
8349 # Check whether --with-mon-dir-password or --without-mon-dir-password was given.
8350 if test "${with_mon_dir_password+set}" = set; then
8351 withval="$with_mon_dir_password"
8353 if test "x$withval" != "xno" ; then
8354 mon_dir_password=$withval
8360 if test "x$mon_dir_password" = "x" ; then
8361 if test "x$OPENSSL" = "xnone" ; then
8362 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
8363 key=`autoconf/randpass 33`
8365 key=`openssl rand -base64 33`
8367 mon_dir_password=$key
8372 # Check whether --with-mon-fd-password or --without-mon-fd-password was given.
8373 if test "${with_mon_fd_password+set}" = set; then
8374 withval="$with_mon_fd_password"
8376 if test "x$withval" != "xno" ; then
8377 mon_fd_password=$withval
8383 if test "x$mon_fd_password" = "x" ; then
8384 if test "x$OPENSSL" = "xnone" ; then
8385 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
8386 key=`autoconf/randpass 37`
8388 key=`openssl rand -base64 33`
8390 mon_fd_password=$key
8395 # Check whether --with-mon-sd-password or --without-mon-sd-password was given.
8396 if test "${with_mon_sd_password+set}" = set; then
8397 withval="$with_mon_sd_password"
8399 if test "x$withval" != "xno" ; then
8400 mon_sd_password=$withval
8406 if test "x$mon_sd_password" = "x" ; then
8407 if test "x$OPENSSL" = "xnone" ; then
8408 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
8409 key=`autoconf/randpass 41`
8411 key=`openssl rand -base64 33`
8413 mon_sd_password=$key
8423 # -------------------------------------------------------------------------
8424 # Set variables for bimagemgr installation
8425 # -------------------------------------------------------------------------
8426 bimagemgr_cgidir=/var/www/cgi-bin
8428 # Check whether --with-bimagemgr-cgidir or --without-bimagemgr-cgidir was given.
8429 if test "${with_bimagemgr_cgidir+set}" = set; then
8430 withval="$with_bimagemgr_cgidir"
8432 if test "x$withval" != "xno" ; then
8433 bimagemgr_cgidir=$withval
8439 bimagemgr_docdir=/var/www/html
8441 # Check whether --with-bimagemgr-docdir or --without-bimagemgr-docdir was given.
8442 if test "${with_bimagemgr_docdir+set}" = set; then
8443 withval="$with_bimagemgr_docdir"
8445 if test "x$withval" != "xno" ; then
8446 bimagemgr_docdir=$withval
8452 bimagemgr_binowner=root
8454 # Check whether --with-bimagemgr-binowner or --without-bimagemgr-binowner was given.
8455 if test "${with_bimagemgr_binowner+set}" = set; then
8456 withval="$with_bimagemgr_binowner"
8458 if test "x$withval" != "xno" ; then
8459 bimagemgr_binowner=$withval
8465 bimagemgr_bingroup=root
8467 # Check whether --with-bimagemgr-bingroup or --without-bimagemgr-bingroup was given.
8468 if test "${with_bimagemgr_bingroup+set}" = set; then
8469 withval="$with_bimagemgr_bingroup"
8471 if test "x$withval" != "xno" ; then
8472 bimagemgr_bingroup=$withval
8478 bimagemgr_dataowner=apache
8480 # Check whether --with-bimagemgr-dataowner or --without-bimagemgr-dataowner was given.
8481 if test "${with_bimagemgr_dataowner+set}" = set; then
8482 withval="$with_bimagemgr_dataowner"
8484 if test "x$withval" != "xno" ; then
8485 bimagemgr_dataowner=$withval
8491 bimagemgr_datagroup=apache
8493 # Check whether --with-bimagemgr-datagroup or --without-bimagemgr-datagroup was given.
8494 if test "${with_bimagemgr_datagroup+set}" = set; then
8495 withval="$with_bimagemgr_datagroup"
8497 if test "x$withval" != "xno" ; then
8498 bimagemgr_datagroup=$withval
8512 # Handle users and groups for each daemon
8516 # Check whether --with-dir_user or --without-dir_user was given.
8517 if test "${with_dir_user+set}" = set; then
8518 withval="$with_dir_user"
8520 if test "x$withval" != "x" ; then
8529 # Check whether --with-dir_group or --without-dir_group was given.
8530 if test "${with_dir_group+set}" = set; then
8531 withval="$with_dir_group"
8533 if test "x$withval" != "x" ; then
8542 # Check whether --with-sd_user or --without-sd_user was given.
8543 if test "${with_sd_user+set}" = set; then
8544 withval="$with_sd_user"
8546 if test "x$withval" != "x" ; then
8555 # Check whether --with-sd_group or --without-sd_group was given.
8556 if test "${with_sd_group+set}" = set; then
8557 withval="$with_sd_group"
8559 if test "x$withval" != "x" ; then
8568 # Check whether --with-fd_user or --without-fd_user was given.
8569 if test "${with_fd_user+set}" = set; then
8570 withval="$with_fd_user"
8572 if test "x$withval" != "x" ; then
8581 # Check whether --with-fd_group or --without-fd_group was given.
8582 if test "${with_fd_group+set}" = set; then
8583 withval="$with_fd_group"
8585 if test "x$withval" != "x" ; then
8603 # allow setting default executable permissions
8607 # Check whether --with-sbin-perm or --without-sbin-perm was given.
8608 if test "${with_sbin_perm+set}" = set; then
8609 withval="$with_sbin_perm"
8611 if test "x$withval" != "x" ; then
8620 # ------------------------------------------------
8621 # Bacula check for various SQL database engines
8622 # ------------------------------------------------
8625 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
8626 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
8628 # Check whether --with-postgresql or --without-postgresql was given.
8629 if test "${with_postgresql+set}" = set; then
8630 withval="$with_postgresql"
8632 if test "$withval" != "no"; then
8633 if test "$db_found" = "yes"; then
8634 echo "$as_me:$LINENO: result: error" >&5
8635 echo "${ECHO_T}error" >&6
8636 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
8637 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
8638 { (exit 1); exit 1; }; };
8640 if test "$withval" = "yes"; then
8641 if test -f /usr/local/include/libpq-fe.h; then
8642 POSTGRESQL_INCDIR=/usr/local/include
8643 POSTGRESQL_LIBDIR=/usr/local/lib
8644 POSTGRESQL_BINDIR=/usr/local/bin
8645 elif test -f /usr/include/libpq-fe.h; then
8646 POSTGRESQL_INCDIR=/usr/include
8647 POSTGRESQL_LIBDIR=/usr/lib
8648 POSTGRESQL_BINDIR=/usr/bin
8649 elif test -f /usr/include/pgsql/libpq-fe.h; then
8650 POSTGRESQL_INCDIR=/usr/include/pgsql
8651 POSTGRESQL_LIBDIR=/usr/lib/pgsql
8652 POSTGRESQL_BINDIR=/usr/bin
8653 elif test -f /usr/include/postgresql/libpq-fe.h; then
8654 POSTGRESQL_INCDIR=/usr/include/postgresql
8655 POSTGRESQL_LIBDIR=/usr/lib/postgresql
8656 POSTGRESQL_BINDIR=/usr/bin
8658 echo "$as_me:$LINENO: result: no" >&5
8659 echo "${ECHO_T}no" >&6
8660 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
8661 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
8662 { (exit 1); exit 1; }; }
8664 elif test -f $withval/include/libpq-fe.h; then
8665 POSTGRESQL_INCDIR=$withval/include
8666 POSTGRESQL_LIBDIR=$withval/lib
8667 POSTGRESQL_BINDIR=$withval/bin
8668 elif test -f $withval/include/postgresql/libpq-fe.h; then
8669 POSTGRESQL_INCDIR=$withval/include/postgresql
8670 POSTGRESQL_LIBDIR=$withval/lib
8671 POSTGRESQL_BINDIR=$withval/bin
8673 echo "$as_me:$LINENO: result: no" >&5
8674 echo "${ECHO_T}no" >&6
8675 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
8676 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
8677 { (exit 1); exit 1; }; }
8679 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
8680 echo "$as_me:$LINENO: checking for crypt" >&5
8681 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
8682 if test "${ac_cv_func_crypt+set}" = set; then
8683 echo $ECHO_N "(cached) $ECHO_C" >&6
8685 cat >conftest.$ac_ext <<_ACEOF
8688 cat confdefs.h >>conftest.$ac_ext
8689 cat >>conftest.$ac_ext <<_ACEOF
8690 /* end confdefs.h. */
8691 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
8692 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8693 #define crypt innocuous_crypt
8695 /* System header to define __stub macros and hopefully few prototypes,
8696 which can conflict with char crypt (); below.
8697 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8698 <limits.h> exists even on freestanding compilers. */
8701 # include <limits.h>
8703 # include <assert.h>
8708 /* Override any gcc2 internal prototype to avoid an error. */
8713 /* We use char because int might match the return type of a gcc2
8714 builtin and then its argument prototype would still apply. */
8716 /* The GNU C library defines this for functions which it implements
8717 to always fail with ENOSYS. Some functions are actually named
8718 something starting with __ and the normal name is an alias. */
8719 #if defined (__stub_crypt) || defined (__stub___crypt)
8722 char (*f) () = crypt;
8736 rm -f conftest.$ac_objext conftest$ac_exeext
8737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8738 (eval $ac_link) 2>conftest.er1
8740 grep -v '^ *+' conftest.er1 >conftest.err
8742 cat conftest.err >&5
8743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8744 (exit $ac_status); } &&
8745 { ac_try='test -z "$ac_c_werror_flag"
8746 || test ! -s conftest.err'
8747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8751 (exit $ac_status); }; } &&
8752 { ac_try='test -s conftest$ac_exeext'
8753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8757 (exit $ac_status); }; }; then
8758 ac_cv_func_crypt=yes
8760 echo "$as_me: failed program was:" >&5
8761 sed 's/^/| /' conftest.$ac_ext >&5
8765 rm -f conftest.err conftest.$ac_objext \
8766 conftest$ac_exeext conftest.$ac_ext
8768 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
8769 echo "${ECHO_T}$ac_cv_func_crypt" >&6
8770 if test $ac_cv_func_crypt = yes; then
8773 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
8774 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
8775 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
8776 echo $ECHO_N "(cached) $ECHO_C" >&6
8778 ac_check_lib_save_LIBS=$LIBS
8779 LIBS="-lcrypt $LIBS"
8780 cat >conftest.$ac_ext <<_ACEOF
8783 cat confdefs.h >>conftest.$ac_ext
8784 cat >>conftest.$ac_ext <<_ACEOF
8785 /* end confdefs.h. */
8787 /* Override any gcc2 internal prototype to avoid an error. */
8791 /* We use char because int might match the return type of a gcc2
8792 builtin and then its argument prototype would still apply. */
8802 rm -f conftest.$ac_objext conftest$ac_exeext
8803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8804 (eval $ac_link) 2>conftest.er1
8806 grep -v '^ *+' conftest.er1 >conftest.err
8808 cat conftest.err >&5
8809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8810 (exit $ac_status); } &&
8811 { ac_try='test -z "$ac_c_werror_flag"
8812 || test ! -s conftest.err'
8813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8817 (exit $ac_status); }; } &&
8818 { ac_try='test -s conftest$ac_exeext'
8819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8823 (exit $ac_status); }; }; then
8824 ac_cv_lib_crypt_crypt=yes
8826 echo "$as_me: failed program was:" >&5
8827 sed 's/^/| /' conftest.$ac_ext >&5
8829 ac_cv_lib_crypt_crypt=no
8831 rm -f conftest.err conftest.$ac_objext \
8832 conftest$ac_exeext conftest.$ac_ext
8833 LIBS=$ac_check_lib_save_LIBS
8835 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
8836 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
8837 if test $ac_cv_lib_crypt_crypt = yes; then
8838 POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
8843 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
8844 SQL_LFLAGS=$POSTGRESQL_LFLAGS
8845 SQL_BINDIR=$POSTGRESQL_BINDIR
8846 cat >>confdefs.h <<\_ACEOF
8847 #define HAVE_POSTGRESQL 1
8850 echo "$as_me:$LINENO: result: yes" >&5
8851 echo "${ECHO_T}yes" >&6
8853 support_postgresql=yes
8857 echo "$as_me:$LINENO: result: no" >&5
8858 echo "${ECHO_T}no" >&6
8863 echo "$as_me:$LINENO: result: no" >&5
8864 echo "${ECHO_T}no" >&6
8875 echo "$as_me:$LINENO: checking for MySQL support" >&5
8876 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
8878 # Check whether --with-mysql or --without-mysql was given.
8879 if test "${with_mysql+set}" = set; then
8880 withval="$with_mysql"
8882 if test "$withval" != "no"; then
8883 if test "$withval" = "yes"; then
8884 if test -f /usr/local/mysql/include/mysql/mysql.h; then
8885 MYSQL_INCDIR=/usr/local/mysql/include/mysql
8886 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
8887 MYSQL_BINDIR=/usr/local/mysql/bin
8888 elif test -f /usr/include/mysql/mysql.h; then
8889 MYSQL_INCDIR=/usr/include/mysql
8890 MYSQL_LIBDIR=/usr/lib/mysql
8891 MYSQL_BINDIR=/usr/bin
8892 elif test -f /usr/include/mysql.h; then
8893 MYSQL_INCDIR=/usr/include
8894 MYSQL_LIBDIR=/usr/lib
8895 MYSQL_BINDIR=/usr/bin
8896 elif test -f /usr/local/include/mysql/mysql.h; then
8897 MYSQL_INCDIR=/usr/local/include/mysql
8898 MYSQL_LIBDIR=/usr/local/lib/mysql
8899 MYSQL_BINDIR=/usr/local/bin
8900 elif test -f /usr/local/include/mysql.h; then
8901 MYSQL_INCDIR=/usr/local/include
8902 MYSQL_LIBDIR=/usr/local/lib
8903 MYSQL_BINDIR=/usr/local/bin
8905 echo "$as_me:$LINENO: result: no" >&5
8906 echo "${ECHO_T}no" >&6
8907 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
8908 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
8909 { (exit 1); exit 1; }; }
8912 if test -f $withval/include/mysql/mysql.h; then
8913 MYSQL_INCDIR=$withval/include/mysql
8914 MYSQL_LIBDIR=$withval/lib/mysql
8915 MYSQL_BINDIR=$withval/bin
8916 elif test -f $withval/include/mysql.h; then
8917 MYSQL_INCDIR=$withval/include
8918 MYSQL_LIBDIR=$withval/lib
8919 MYSQL_BINDIR=$withval/bin
8921 echo "$as_me:$LINENO: result: no" >&5
8922 echo "${ECHO_T}no" >&6
8923 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
8924 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
8925 { (exit 1); exit 1; }; }
8928 SQL_INCLUDE=-I$MYSQL_INCDIR
8929 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
8930 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
8931 cat >>confdefs.h <<\_ACEOF
8932 #define HAVE_THREAD_SAFE_MYSQL 1
8936 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
8938 SQL_BINDIR=$MYSQL_BINDIR
8940 cat >>confdefs.h <<\_ACEOF
8941 #define HAVE_MYSQL 1
8944 echo "$as_me:$LINENO: result: yes" >&5
8945 echo "${ECHO_T}yes" >&6
8952 echo "$as_me:$LINENO: result: no" >&5
8953 echo "${ECHO_T}no" >&6
8960 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
8961 if test "${with_embedded_mysql+set}" = set; then
8962 withval="$with_embedded_mysql"
8964 if test "$withval" != "no"; then
8965 if test "$withval" = "yes"; then
8966 if test -f /usr/local/mysql/include/mysql/mysql.h; then
8967 MYSQL_INCDIR=/usr/local/mysql/include/mysql
8968 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
8969 MYSQL_BINDIR=/usr/local/mysql/bin
8970 elif test -f /usr/include/mysql/mysql.h; then
8971 MYSQL_INCDIR=/usr/include/mysql
8972 MYSQL_LIBDIR=/usr/lib/mysql
8973 MYSQL_BINDIR=/usr/bin
8974 elif test -f /usr/include/mysql.h; then
8975 MYSQL_INCDIR=/usr/include
8976 MYSQL_LIBDIR=/usr/lib
8977 MYSQL_BINDIR=/usr/bin
8978 elif test -f /usr/local/include/mysql/mysql.h; then
8979 MYSQL_INCDIR=/usr/local/include/mysql
8980 MYSQL_LIBDIR=/usr/local/lib/mysql
8981 MYSQL_BINDIR=/usr/local/bin
8982 elif test -f /usr/local/include/mysql.h; then
8983 MYSQL_INCDIR=/usr/local/include
8984 MYSQL_LIBDIR=/usr/local/lib
8985 MYSQL_BINDIR=/usr/local/bin
8987 echo "$as_me:$LINENO: result: no" >&5
8988 echo "${ECHO_T}no" >&6
8989 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
8990 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
8991 { (exit 1); exit 1; }; }
8994 if test -f $withval/include/mysql/mysql.h; then
8995 MYSQL_INCDIR=$withval/include/mysql
8996 MYSQL_LIBDIR=$withval/lib/mysql
8997 MYSQL_BINDIR=$withval/bin
8998 elif test -f $withval/include/mysql.h; then
8999 MYSQL_INCDIR=$withval/include
9000 MYSQL_LIBDIR=$withval/lib
9001 MYSQL_BINDIR=$withval/bin
9003 echo "$as_me:$LINENO: result: no" >&5
9004 echo "${ECHO_T}no" >&6
9005 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
9006 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
9007 { (exit 1); exit 1; }; }
9010 SQL_INCLUDE=-I$MYSQL_INCDIR
9011 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
9012 SQL_BINDIR=$MYSQL_BINDIR
9014 cat >>confdefs.h <<\_ACEOF
9015 #define HAVE_MYSQL 1
9018 cat >>confdefs.h <<\_ACEOF
9019 #define HAVE_EMBEDDED_MYSQL 1
9022 echo "$as_me:$LINENO: result: yes" >&5
9023 echo "${ECHO_T}yes" >&6
9030 echo "$as_me:$LINENO: result: no" >&5
9031 echo "${ECHO_T}no" >&6
9046 echo "$as_me:$LINENO: checking for SQLite3 support" >&5
9047 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6
9049 # Check whether --with-sqlite3 or --without-sqlite3 was given.
9050 if test "${with_sqlite3+set}" = set; then
9051 withval="$with_sqlite3"
9053 if test "$withval" != "no"; then
9054 if test "$withval" = "yes"; then
9055 if test -f /usr/local/include/sqlite3.h; then
9056 SQLITE_INCDIR=/usr/local/include
9057 SQLITE_LIBDIR=/usr/local/lib
9058 SQLITE_BINDIR=/usr/local/bin
9059 elif test -f /usr/include/sqlite3.h; then
9060 SQLITE_INCDIR=/usr/include
9061 SQLITE_LIBDIR=/usr/lib
9062 SQLITE_BINDIR=/usr/bin
9063 elif test -f $prefix/include/sqlite3.h; then
9064 SQLITE_INCDIR=$prefix/include
9065 SQLITE_LIBDIR=$prefix/lib
9066 SQLITE_BINDIR=$prefix/bin
9068 echo "$as_me:$LINENO: result: no" >&5
9069 echo "${ECHO_T}no" >&6
9070 { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
9071 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
9072 { (exit 1); exit 1; }; }
9075 if test -f $withval/sqlite3.h; then
9076 SQLITE_INCDIR=$withval
9077 SQLITE_LIBDIR=$withval
9078 SQLITE_BINDIR=$withval
9079 elif test -f $withval/include/sqlite3.h; then
9080 SQLITE_INCDIR=$withval/include
9081 SQLITE_LIBDIR=$withval/lib
9082 SQLITE_BINDIR=$withval/bin
9084 echo "$as_me:$LINENO: result: no" >&5
9085 echo "${ECHO_T}no" >&6
9086 { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
9087 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
9088 { (exit 1); exit 1; }; }
9091 SQL_INCLUDE=-I$SQLITE_INCDIR
9092 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
9093 SQL_BINDIR=$SQLITE_BINDIR
9095 cat >>confdefs.h <<\_ACEOF
9096 #define HAVE_SQLITE3 1
9099 echo "$as_me:$LINENO: result: yes" >&5
9100 echo "${ECHO_T}yes" >&6
9107 echo "$as_me:$LINENO: result: no" >&5
9108 echo "${ECHO_T}no" >&6
9113 echo "$as_me:$LINENO: result: no" >&5
9114 echo "${ECHO_T}no" >&6
9125 echo "$as_me:$LINENO: checking for SQLite support" >&5
9126 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
9128 # Check whether --with-sqlite or --without-sqlite was given.
9129 if test "${with_sqlite+set}" = set; then
9130 withval="$with_sqlite"
9132 if test "$withval" != "no"; then
9133 if test "$withval" = "yes"; then
9134 if test -f /usr/local/include/sqlite.h; then
9135 SQLITE_INCDIR=/usr/local/include
9136 SQLITE_LIBDIR=/usr/local/lib
9137 SQLITE_BINDIR=/usr/local/bin
9138 elif test -f /usr/include/sqlite.h; then
9139 SQLITE_INCDIR=/usr/include
9140 SQLITE_LIBDIR=/usr/lib
9141 SQLITE_BINDIR=/usr/bin
9142 elif test -f $prefix/include/sqlite.h; then
9143 SQLITE_INCDIR=$prefix/include
9144 SQLITE_LIBDIR=$prefix/lib
9145 SQLITE_BINDIR=$prefix/bin
9147 echo "$as_me:$LINENO: result: no" >&5
9148 echo "${ECHO_T}no" >&6
9149 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
9150 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
9151 { (exit 1); exit 1; }; }
9154 if test -f $withval/sqlite.h; then
9155 SQLITE_INCDIR=$withval
9156 SQLITE_LIBDIR=$withval
9157 SQLITE_BINDIR=$withval
9158 elif test -f $withval/include/sqlite.h; then
9159 SQLITE_INCDIR=$withval/include
9160 SQLITE_LIBDIR=$withval/lib
9161 SQLITE_BINDIR=$withval/bin
9163 echo "$as_me:$LINENO: result: no" >&5
9164 echo "${ECHO_T}no" >&6
9165 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
9166 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
9167 { (exit 1); exit 1; }; }
9170 SQL_INCLUDE=-I$SQLITE_INCDIR
9171 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
9172 SQL_BINDIR=$SQLITE_BINDIR
9174 cat >>confdefs.h <<\_ACEOF
9175 #define HAVE_SQLITE 1
9178 echo "$as_me:$LINENO: result: yes" >&5
9179 echo "${ECHO_T}yes" >&6
9186 echo "$as_me:$LINENO: result: no" >&5
9187 echo "${ECHO_T}no" >&6
9192 echo "$as_me:$LINENO: result: no" >&5
9193 echo "${ECHO_T}no" >&6
9205 cat >>confdefs.h <<\_ACEOF
9206 #define PROTOTYPES 1
9210 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
9211 if test -z "$CCOPTS"; then
9212 CCOPTS='-g -O2 -Wall'
9220 largefile_support="no"
9222 # Check whether --enable-largefile or --disable-largefile was given.
9223 if test "${enable_largefile+set}" = set; then
9224 enableval="$enable_largefile"
9227 if test "$enable_largefile" != no; then
9228 if test -n "$ac_tool_prefix"; then
9229 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
9230 set dummy ${ac_tool_prefix}getconf; ac_word=$2
9231 echo "$as_me:$LINENO: checking for $ac_word" >&5
9232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9233 if test "${ac_cv_prog_GETCONF+set}" = set; then
9234 echo $ECHO_N "(cached) $ECHO_C" >&6
9236 if test -n "$GETCONF"; then
9237 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
9239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9243 test -z "$as_dir" && as_dir=.
9244 for ac_exec_ext in '' $ac_executable_extensions; do
9245 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9246 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
9247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9255 GETCONF=$ac_cv_prog_GETCONF
9256 if test -n "$GETCONF"; then
9257 echo "$as_me:$LINENO: result: $GETCONF" >&5
9258 echo "${ECHO_T}$GETCONF" >&6
9260 echo "$as_me:$LINENO: result: no" >&5
9261 echo "${ECHO_T}no" >&6
9265 if test -z "$ac_cv_prog_GETCONF"; then
9266 ac_ct_GETCONF=$GETCONF
9267 # Extract the first word of "getconf", so it can be a program name with args.
9268 set dummy getconf; ac_word=$2
9269 echo "$as_me:$LINENO: checking for $ac_word" >&5
9270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9271 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
9272 echo $ECHO_N "(cached) $ECHO_C" >&6
9274 if test -n "$ac_ct_GETCONF"; then
9275 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
9277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9281 test -z "$as_dir" && as_dir=.
9282 for ac_exec_ext in '' $ac_executable_extensions; do
9283 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9284 ac_cv_prog_ac_ct_GETCONF="getconf"
9285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9293 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
9294 if test -n "$ac_ct_GETCONF"; then
9295 echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
9296 echo "${ECHO_T}$ac_ct_GETCONF" >&6
9298 echo "$as_me:$LINENO: result: no" >&5
9299 echo "${ECHO_T}no" >&6
9302 GETCONF=$ac_ct_GETCONF
9304 GETCONF="$ac_cv_prog_GETCONF"
9307 echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
9308 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
9309 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
9310 echo $ECHO_N "(cached) $ECHO_C" >&6
9312 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
9313 ac_cv_sys_largefile_CFLAGS=no
9315 # IRIX 6.2 and later require cc -n32.
9316 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
9317 if test "$GCC" != yes; then
9318 ac_cv_sys_largefile_CFLAGS=-n32
9321 CC="$CC $ac_cv_sys_largefile_CFLAGS"
9322 cat >conftest.$ac_ext <<_ACEOF
9325 cat confdefs.h >>conftest.$ac_ext
9326 cat >>conftest.$ac_ext <<_ACEOF
9327 /* end confdefs.h. */
9337 rm -f conftest.$ac_objext conftest$ac_exeext
9338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9339 (eval $ac_link) 2>conftest.er1
9341 grep -v '^ *+' conftest.er1 >conftest.err
9343 cat conftest.err >&5
9344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9345 (exit $ac_status); } &&
9346 { ac_try='test -z "$ac_c_werror_flag"
9347 || test ! -s conftest.err'
9348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9352 (exit $ac_status); }; } &&
9353 { ac_try='test -s conftest$ac_exeext'
9354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9358 (exit $ac_status); }; }; then
9361 echo "$as_me: failed program was:" >&5
9362 sed 's/^/| /' conftest.$ac_ext >&5
9364 ac_cv_sys_largefile_CFLAGS=no
9366 rm -f conftest.err conftest.$ac_objext \
9367 conftest$ac_exeext conftest.$ac_ext
9372 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
9373 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
9374 echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
9375 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
9376 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
9377 echo $ECHO_N "(cached) $ECHO_C" >&6
9379 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
9380 ac_cv_sys_largefile_LDFLAGS=no
9384 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
9385 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
9386 echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
9387 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
9388 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
9389 echo $ECHO_N "(cached) $ECHO_C" >&6
9391 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
9392 ac_cv_sys_largefile_LIBS=no
9396 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
9397 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
9399 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9402 -D_FILE_OFFSET_BITS=*) ;;
9403 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
9404 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
9410 '') CPPFLAGS="$ac_flag" ;;
9411 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
9419 '') CFLAGS="$ac_flag" ;;
9420 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
9425 case "$ac_cv_sys_largefile_LDFLAGS" in
9429 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
9430 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
9433 case "$ac_cv_sys_largefile_LIBS" in
9437 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
9438 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
9441 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
9442 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
9443 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
9444 echo $ECHO_N "(cached) $ECHO_C" >&6
9446 ac_cv_sys_file_offset_bits=no
9447 ac_cv_sys_file_offset_bits=64
9448 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9450 -D_FILE_OFFSET_BITS)
9451 ac_cv_sys_file_offset_bits=1 ;;
9452 -D_FILE_OFFSET_BITS=*)
9453 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9458 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
9459 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
9460 if test "$ac_cv_sys_file_offset_bits" != no; then
9462 cat >>confdefs.h <<_ACEOF
9463 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9467 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
9468 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
9469 if test "${ac_cv_sys_largefile_source+set}" = set; then
9470 echo $ECHO_N "(cached) $ECHO_C" >&6
9472 ac_cv_sys_largefile_source=no
9473 ac_cv_sys_largefile_source=1
9474 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9476 -D_LARGEFILE_SOURCE)
9477 ac_cv_sys_largefile_source=1 ;;
9478 -D_LARGEFILE_SOURCE=*)
9479 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9484 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
9485 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
9486 if test "$ac_cv_sys_largefile_source" != no; then
9488 cat >>confdefs.h <<_ACEOF
9489 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9493 echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
9494 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
9495 if test "${ac_cv_sys_large_files+set}" = set; then
9496 echo $ECHO_N "(cached) $ECHO_C" >&6
9498 ac_cv_sys_large_files=no
9499 ac_cv_sys_large_files=1
9500 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9503 ac_cv_sys_large_files=1 ;;
9505 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9510 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
9511 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
9512 if test "$ac_cv_sys_large_files" != no; then
9514 cat >>confdefs.h <<_ACEOF
9515 #define _LARGE_FILES $ac_cv_sys_large_files
9523 echo "$as_me:$LINENO: checking for X" >&5
9524 echo $ECHO_N "checking for X... $ECHO_C" >&6
9527 # Check whether --with-x or --without-x was given.
9528 if test "${with_x+set}" = set; then
9532 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9533 if test "x$with_x" = xno; then
9534 # The user explicitly disabled X.
9537 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
9538 # Both variables are already set.
9541 if test "${ac_cv_have_x+set}" = set; then
9542 echo $ECHO_N "(cached) $ECHO_C" >&6
9544 # One or both of the vars are not set, and there is no cached value.
9545 ac_x_includes=no ac_x_libraries=no
9547 if mkdir conftest.dir; then
9549 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
9550 cat >Imakefile <<'_ACEOF'
9552 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9554 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9555 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9556 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9557 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9558 for ac_extension in a so sl; do
9559 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
9560 test -f $ac_im_libdir/libX11.$ac_extension; then
9561 ac_im_usrlibdir=$ac_im_libdir; break
9564 # Screen out bogus values from the imake configuration. They are
9565 # bogus both because they are the default anyway, and because
9566 # using them would break gcc on systems where it needs fixed includes.
9567 case $ac_im_incroot in
9569 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9571 case $ac_im_usrlibdir in
9573 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9580 # Standard set of common directories for X headers.
9581 # Check X11 before X11Rn because it is often a symlink to the current release.
9593 /usr/local/X11/include
9594 /usr/local/X11R6/include
9595 /usr/local/X11R5/include
9596 /usr/local/X11R4/include
9598 /usr/local/include/X11
9599 /usr/local/include/X11R6
9600 /usr/local/include/X11R5
9601 /usr/local/include/X11R4
9605 /usr/XFree86/include/X11
9609 /usr/unsupported/include
9611 /usr/local/x11r5/include
9612 /usr/lpp/Xamples/include
9614 /usr/openwin/include
9615 /usr/openwin/share/include'
9617 if test "$ac_x_includes" = no; then
9618 # Guess where to find include files, by looking for Intrinsic.h.
9619 # First, try using that file with no special directory specified.
9620 cat >conftest.$ac_ext <<_ACEOF
9623 cat confdefs.h >>conftest.$ac_ext
9624 cat >>conftest.$ac_ext <<_ACEOF
9625 /* end confdefs.h. */
9626 #include <X11/Intrinsic.h>
9628 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9629 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9631 grep -v '^ *+' conftest.er1 >conftest.err
9633 cat conftest.err >&5
9634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9635 (exit $ac_status); } >/dev/null; then
9636 if test -s conftest.err; then
9637 ac_cpp_err=$ac_c_preproc_warn_flag
9638 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9645 if test -z "$ac_cpp_err"; then
9646 # We can compile using X headers with no special include directory.
9649 echo "$as_me: failed program was:" >&5
9650 sed 's/^/| /' conftest.$ac_ext >&5
9652 for ac_dir in $ac_x_header_dirs; do
9653 if test -r "$ac_dir/X11/Intrinsic.h"; then
9654 ac_x_includes=$ac_dir
9659 rm -f conftest.err conftest.$ac_ext
9660 fi # $ac_x_includes = no
9662 if test "$ac_x_libraries" = no; then
9663 # Check for the libraries.
9664 # See if we find them without any special options.
9665 # Don't add to $LIBS permanently.
9668 cat >conftest.$ac_ext <<_ACEOF
9671 cat confdefs.h >>conftest.$ac_ext
9672 cat >>conftest.$ac_ext <<_ACEOF
9673 /* end confdefs.h. */
9674 #include <X11/Intrinsic.h>
9683 rm -f conftest.$ac_objext conftest$ac_exeext
9684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9685 (eval $ac_link) 2>conftest.er1
9687 grep -v '^ *+' conftest.er1 >conftest.err
9689 cat conftest.err >&5
9690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9691 (exit $ac_status); } &&
9692 { ac_try='test -z "$ac_c_werror_flag"
9693 || test ! -s conftest.err'
9694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698 (exit $ac_status); }; } &&
9699 { ac_try='test -s conftest$ac_exeext'
9700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704 (exit $ac_status); }; }; then
9706 # We can link X programs with no special library path.
9709 echo "$as_me: failed program was:" >&5
9710 sed 's/^/| /' conftest.$ac_ext >&5
9713 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9715 # Don't even attempt the hair of trying to link an X program!
9716 for ac_extension in a so sl; do
9717 if test -r $ac_dir/libXt.$ac_extension; then
9718 ac_x_libraries=$ac_dir
9724 rm -f conftest.err conftest.$ac_objext \
9725 conftest$ac_exeext conftest.$ac_ext
9726 fi # $ac_x_libraries = no
9728 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
9729 # Didn't find X anywhere. Cache the known absence of X.
9730 ac_cv_have_x="have_x=no"
9732 # Record where we found X for the cache.
9733 ac_cv_have_x="have_x=yes \
9734 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9739 eval "$ac_cv_have_x"
9742 if test "$have_x" != yes; then
9743 echo "$as_me:$LINENO: result: $have_x" >&5
9744 echo "${ECHO_T}$have_x" >&6
9747 # If each of the values was on the command line, it overrides each guess.
9748 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9749 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9750 # Update the cache value to reflect the command line values.
9751 ac_cv_have_x="have_x=yes \
9752 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9753 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9754 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
9757 if test "$no_x" = yes; then
9758 # Not all programs may use this symbol, but it does not hurt to define it.
9760 cat >>confdefs.h <<\_ACEOF
9761 #define X_DISPLAY_MISSING 1
9764 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
9766 if test -n "$x_includes"; then
9767 X_CFLAGS="$X_CFLAGS -I$x_includes"
9770 # It would also be nice to do this for all -L options, not just this one.
9771 if test -n "$x_libraries"; then
9772 X_LIBS="$X_LIBS -L$x_libraries"
9773 # For Solaris; some versions of Sun CC require a space after -R and
9774 # others require no space. Words are not sufficient . . . .
9775 case `(uname -sr) 2>/dev/null` in
9777 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
9778 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
9779 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
9780 cat >conftest.$ac_ext <<_ACEOF
9783 cat confdefs.h >>conftest.$ac_ext
9784 cat >>conftest.$ac_ext <<_ACEOF
9785 /* end confdefs.h. */
9795 rm -f conftest.$ac_objext conftest$ac_exeext
9796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9797 (eval $ac_link) 2>conftest.er1
9799 grep -v '^ *+' conftest.er1 >conftest.err
9801 cat conftest.err >&5
9802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9803 (exit $ac_status); } &&
9804 { ac_try='test -z "$ac_c_werror_flag"
9805 || test ! -s conftest.err'
9806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9810 (exit $ac_status); }; } &&
9811 { ac_try='test -s conftest$ac_exeext'
9812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9816 (exit $ac_status); }; }; then
9819 echo "$as_me: failed program was:" >&5
9820 sed 's/^/| /' conftest.$ac_ext >&5
9824 rm -f conftest.err conftest.$ac_objext \
9825 conftest$ac_exeext conftest.$ac_ext
9826 if test $ac_R_nospace = yes; then
9827 echo "$as_me:$LINENO: result: no" >&5
9828 echo "${ECHO_T}no" >&6
9829 X_LIBS="$X_LIBS -R$x_libraries"
9831 LIBS="$ac_xsave_LIBS -R $x_libraries"
9832 cat >conftest.$ac_ext <<_ACEOF
9835 cat confdefs.h >>conftest.$ac_ext
9836 cat >>conftest.$ac_ext <<_ACEOF
9837 /* end confdefs.h. */
9847 rm -f conftest.$ac_objext conftest$ac_exeext
9848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9849 (eval $ac_link) 2>conftest.er1
9851 grep -v '^ *+' conftest.er1 >conftest.err
9853 cat conftest.err >&5
9854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9855 (exit $ac_status); } &&
9856 { ac_try='test -z "$ac_c_werror_flag"
9857 || test ! -s conftest.err'
9858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9862 (exit $ac_status); }; } &&
9863 { ac_try='test -s conftest$ac_exeext'
9864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868 (exit $ac_status); }; }; then
9871 echo "$as_me: failed program was:" >&5
9872 sed 's/^/| /' conftest.$ac_ext >&5
9876 rm -f conftest.err conftest.$ac_objext \
9877 conftest$ac_exeext conftest.$ac_ext
9878 if test $ac_R_space = yes; then
9879 echo "$as_me:$LINENO: result: yes" >&5
9880 echo "${ECHO_T}yes" >&6
9881 X_LIBS="$X_LIBS -R $x_libraries"
9883 echo "$as_me:$LINENO: result: neither works" >&5
9884 echo "${ECHO_T}neither works" >&6
9891 # Check for system-dependent libraries X programs must link with.
9892 # Do this before checking for the system-independent R6 libraries
9893 # (-lICE), since we may need -lsocket or whatever for X linking.
9895 if test "$ISC" = yes; then
9896 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
9898 # Martyn Johnson says this is needed for Ultrix, if the X
9899 # libraries were built with DECnet support. And Karl Berry says
9900 # the Alpha needs dnet_stub (dnet does not exist).
9901 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
9902 cat >conftest.$ac_ext <<_ACEOF
9905 cat confdefs.h >>conftest.$ac_ext
9906 cat >>conftest.$ac_ext <<_ACEOF
9907 /* end confdefs.h. */
9909 /* Override any gcc2 internal prototype to avoid an error. */
9913 /* We use char because int might match the return type of a gcc2
9914 builtin and then its argument prototype would still apply. */
9915 char XOpenDisplay ();
9924 rm -f conftest.$ac_objext conftest$ac_exeext
9925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9926 (eval $ac_link) 2>conftest.er1
9928 grep -v '^ *+' conftest.er1 >conftest.err
9930 cat conftest.err >&5
9931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9932 (exit $ac_status); } &&
9933 { ac_try='test -z "$ac_c_werror_flag"
9934 || test ! -s conftest.err'
9935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9939 (exit $ac_status); }; } &&
9940 { ac_try='test -s conftest$ac_exeext'
9941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945 (exit $ac_status); }; }; then
9948 echo "$as_me: failed program was:" >&5
9949 sed 's/^/| /' conftest.$ac_ext >&5
9951 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9952 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9953 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9954 echo $ECHO_N "(cached) $ECHO_C" >&6
9956 ac_check_lib_save_LIBS=$LIBS
9958 cat >conftest.$ac_ext <<_ACEOF
9961 cat confdefs.h >>conftest.$ac_ext
9962 cat >>conftest.$ac_ext <<_ACEOF
9963 /* end confdefs.h. */
9965 /* Override any gcc2 internal prototype to avoid an error. */
9969 /* We use char because int might match the return type of a gcc2
9970 builtin and then its argument prototype would still apply. */
9980 rm -f conftest.$ac_objext conftest$ac_exeext
9981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9982 (eval $ac_link) 2>conftest.er1
9984 grep -v '^ *+' conftest.er1 >conftest.err
9986 cat conftest.err >&5
9987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988 (exit $ac_status); } &&
9989 { ac_try='test -z "$ac_c_werror_flag"
9990 || test ! -s conftest.err'
9991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9995 (exit $ac_status); }; } &&
9996 { ac_try='test -s conftest$ac_exeext'
9997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10001 (exit $ac_status); }; }; then
10002 ac_cv_lib_dnet_dnet_ntoa=yes
10004 echo "$as_me: failed program was:" >&5
10005 sed 's/^/| /' conftest.$ac_ext >&5
10007 ac_cv_lib_dnet_dnet_ntoa=no
10009 rm -f conftest.err conftest.$ac_objext \
10010 conftest$ac_exeext conftest.$ac_ext
10011 LIBS=$ac_check_lib_save_LIBS
10013 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10014 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
10015 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10016 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
10019 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
10020 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
10021 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
10022 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
10023 echo $ECHO_N "(cached) $ECHO_C" >&6
10025 ac_check_lib_save_LIBS=$LIBS
10026 LIBS="-ldnet_stub $LIBS"
10027 cat >conftest.$ac_ext <<_ACEOF
10030 cat confdefs.h >>conftest.$ac_ext
10031 cat >>conftest.$ac_ext <<_ACEOF
10032 /* end confdefs.h. */
10034 /* Override any gcc2 internal prototype to avoid an error. */
10038 /* We use char because int might match the return type of a gcc2
10039 builtin and then its argument prototype would still apply. */
10049 rm -f conftest.$ac_objext conftest$ac_exeext
10050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10051 (eval $ac_link) 2>conftest.er1
10053 grep -v '^ *+' conftest.er1 >conftest.err
10055 cat conftest.err >&5
10056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057 (exit $ac_status); } &&
10058 { ac_try='test -z "$ac_c_werror_flag"
10059 || test ! -s conftest.err'
10060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10061 (eval $ac_try) 2>&5
10063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10064 (exit $ac_status); }; } &&
10065 { ac_try='test -s conftest$ac_exeext'
10066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10067 (eval $ac_try) 2>&5
10069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070 (exit $ac_status); }; }; then
10071 ac_cv_lib_dnet_stub_dnet_ntoa=yes
10073 echo "$as_me: failed program was:" >&5
10074 sed 's/^/| /' conftest.$ac_ext >&5
10076 ac_cv_lib_dnet_stub_dnet_ntoa=no
10078 rm -f conftest.err conftest.$ac_objext \
10079 conftest$ac_exeext conftest.$ac_ext
10080 LIBS=$ac_check_lib_save_LIBS
10082 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
10083 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
10084 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
10085 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
10090 rm -f conftest.err conftest.$ac_objext \
10091 conftest$ac_exeext conftest.$ac_ext
10092 LIBS="$ac_xsave_LIBS"
10094 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
10095 # to get the SysV transport functions.
10096 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
10098 # The nsl library prevents programs from opening the X display
10099 # on Irix 5.2, according to T.E. Dickey.
10100 # The functions gethostbyname, getservbyname, and inet_addr are
10101 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
10102 echo "$as_me:$LINENO: checking for gethostbyname" >&5
10103 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
10104 if test "${ac_cv_func_gethostbyname+set}" = set; then
10105 echo $ECHO_N "(cached) $ECHO_C" >&6
10107 cat >conftest.$ac_ext <<_ACEOF
10110 cat confdefs.h >>conftest.$ac_ext
10111 cat >>conftest.$ac_ext <<_ACEOF
10112 /* end confdefs.h. */
10113 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
10114 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10115 #define gethostbyname innocuous_gethostbyname
10117 /* System header to define __stub macros and hopefully few prototypes,
10118 which can conflict with char gethostbyname (); below.
10119 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10120 <limits.h> exists even on freestanding compilers. */
10123 # include <limits.h>
10125 # include <assert.h>
10128 #undef gethostbyname
10130 /* Override any gcc2 internal prototype to avoid an error. */
10135 /* We use char because int might match the return type of a gcc2
10136 builtin and then its argument prototype would still apply. */
10137 char gethostbyname ();
10138 /* The GNU C library defines this for functions which it implements
10139 to always fail with ENOSYS. Some functions are actually named
10140 something starting with __ and the normal name is an alias. */
10141 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
10144 char (*f) () = gethostbyname;
10153 return f != gethostbyname;
10158 rm -f conftest.$ac_objext conftest$ac_exeext
10159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10160 (eval $ac_link) 2>conftest.er1
10162 grep -v '^ *+' conftest.er1 >conftest.err
10164 cat conftest.err >&5
10165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166 (exit $ac_status); } &&
10167 { ac_try='test -z "$ac_c_werror_flag"
10168 || test ! -s conftest.err'
10169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10170 (eval $ac_try) 2>&5
10172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10173 (exit $ac_status); }; } &&
10174 { ac_try='test -s conftest$ac_exeext'
10175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10176 (eval $ac_try) 2>&5
10178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10179 (exit $ac_status); }; }; then
10180 ac_cv_func_gethostbyname=yes
10182 echo "$as_me: failed program was:" >&5
10183 sed 's/^/| /' conftest.$ac_ext >&5
10185 ac_cv_func_gethostbyname=no
10187 rm -f conftest.err conftest.$ac_objext \
10188 conftest$ac_exeext conftest.$ac_ext
10190 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
10191 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
10193 if test $ac_cv_func_gethostbyname = no; then
10194 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
10195 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
10196 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
10197 echo $ECHO_N "(cached) $ECHO_C" >&6
10199 ac_check_lib_save_LIBS=$LIBS
10201 cat >conftest.$ac_ext <<_ACEOF
10204 cat confdefs.h >>conftest.$ac_ext
10205 cat >>conftest.$ac_ext <<_ACEOF
10206 /* end confdefs.h. */
10208 /* Override any gcc2 internal prototype to avoid an error. */
10212 /* We use char because int might match the return type of a gcc2
10213 builtin and then its argument prototype would still apply. */
10214 char gethostbyname ();
10223 rm -f conftest.$ac_objext conftest$ac_exeext
10224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10225 (eval $ac_link) 2>conftest.er1
10227 grep -v '^ *+' conftest.er1 >conftest.err
10229 cat conftest.err >&5
10230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10231 (exit $ac_status); } &&
10232 { ac_try='test -z "$ac_c_werror_flag"
10233 || test ! -s conftest.err'
10234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10235 (eval $ac_try) 2>&5
10237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10238 (exit $ac_status); }; } &&
10239 { ac_try='test -s conftest$ac_exeext'
10240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10241 (eval $ac_try) 2>&5
10243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10244 (exit $ac_status); }; }; then
10245 ac_cv_lib_nsl_gethostbyname=yes
10247 echo "$as_me: failed program was:" >&5
10248 sed 's/^/| /' conftest.$ac_ext >&5
10250 ac_cv_lib_nsl_gethostbyname=no
10252 rm -f conftest.err conftest.$ac_objext \
10253 conftest$ac_exeext conftest.$ac_ext
10254 LIBS=$ac_check_lib_save_LIBS
10256 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
10257 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
10258 if test $ac_cv_lib_nsl_gethostbyname = yes; then
10259 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
10262 if test $ac_cv_lib_nsl_gethostbyname = no; then
10263 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
10264 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
10265 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
10266 echo $ECHO_N "(cached) $ECHO_C" >&6
10268 ac_check_lib_save_LIBS=$LIBS
10270 cat >conftest.$ac_ext <<_ACEOF
10273 cat confdefs.h >>conftest.$ac_ext
10274 cat >>conftest.$ac_ext <<_ACEOF
10275 /* end confdefs.h. */
10277 /* Override any gcc2 internal prototype to avoid an error. */
10281 /* We use char because int might match the return type of a gcc2
10282 builtin and then its argument prototype would still apply. */
10283 char gethostbyname ();
10292 rm -f conftest.$ac_objext conftest$ac_exeext
10293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10294 (eval $ac_link) 2>conftest.er1
10296 grep -v '^ *+' conftest.er1 >conftest.err
10298 cat conftest.err >&5
10299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300 (exit $ac_status); } &&
10301 { ac_try='test -z "$ac_c_werror_flag"
10302 || test ! -s conftest.err'
10303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10304 (eval $ac_try) 2>&5
10306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307 (exit $ac_status); }; } &&
10308 { ac_try='test -s conftest$ac_exeext'
10309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10310 (eval $ac_try) 2>&5
10312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10313 (exit $ac_status); }; }; then
10314 ac_cv_lib_bsd_gethostbyname=yes
10316 echo "$as_me: failed program was:" >&5
10317 sed 's/^/| /' conftest.$ac_ext >&5
10319 ac_cv_lib_bsd_gethostbyname=no
10321 rm -f conftest.err conftest.$ac_objext \
10322 conftest$ac_exeext conftest.$ac_ext
10323 LIBS=$ac_check_lib_save_LIBS
10325 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
10326 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
10327 if test $ac_cv_lib_bsd_gethostbyname = yes; then
10328 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
10334 # lieder@skyler.mavd.honeywell.com says without -lsocket,
10335 # socket/setsockopt and other routines are undefined under SCO ODT
10336 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
10337 # on later versions), says Simon Leinen: it contains gethostby*
10338 # variants that don't use the name server (or something). -lsocket
10339 # must be given before -lnsl if both are needed. We assume that
10340 # if connect needs -lnsl, so does gethostbyname.
10341 echo "$as_me:$LINENO: checking for connect" >&5
10342 echo $ECHO_N "checking for connect... $ECHO_C" >&6
10343 if test "${ac_cv_func_connect+set}" = set; then
10344 echo $ECHO_N "(cached) $ECHO_C" >&6
10346 cat >conftest.$ac_ext <<_ACEOF
10349 cat confdefs.h >>conftest.$ac_ext
10350 cat >>conftest.$ac_ext <<_ACEOF
10351 /* end confdefs.h. */
10352 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
10353 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10354 #define connect innocuous_connect
10356 /* System header to define __stub macros and hopefully few prototypes,
10357 which can conflict with char connect (); below.
10358 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10359 <limits.h> exists even on freestanding compilers. */
10362 # include <limits.h>
10364 # include <assert.h>
10369 /* Override any gcc2 internal prototype to avoid an error. */
10374 /* We use char because int might match the return type of a gcc2
10375 builtin and then its argument prototype would still apply. */
10377 /* The GNU C library defines this for functions which it implements
10378 to always fail with ENOSYS. Some functions are actually named
10379 something starting with __ and the normal name is an alias. */
10380 #if defined (__stub_connect) || defined (__stub___connect)
10383 char (*f) () = connect;
10392 return f != connect;
10397 rm -f conftest.$ac_objext conftest$ac_exeext
10398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10399 (eval $ac_link) 2>conftest.er1
10401 grep -v '^ *+' conftest.er1 >conftest.err
10403 cat conftest.err >&5
10404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10405 (exit $ac_status); } &&
10406 { ac_try='test -z "$ac_c_werror_flag"
10407 || test ! -s conftest.err'
10408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10409 (eval $ac_try) 2>&5
10411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10412 (exit $ac_status); }; } &&
10413 { ac_try='test -s conftest$ac_exeext'
10414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10415 (eval $ac_try) 2>&5
10417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10418 (exit $ac_status); }; }; then
10419 ac_cv_func_connect=yes
10421 echo "$as_me: failed program was:" >&5
10422 sed 's/^/| /' conftest.$ac_ext >&5
10424 ac_cv_func_connect=no
10426 rm -f conftest.err conftest.$ac_objext \
10427 conftest$ac_exeext conftest.$ac_ext
10429 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
10430 echo "${ECHO_T}$ac_cv_func_connect" >&6
10432 if test $ac_cv_func_connect = no; then
10433 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
10434 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
10435 if test "${ac_cv_lib_socket_connect+set}" = set; then
10436 echo $ECHO_N "(cached) $ECHO_C" >&6
10438 ac_check_lib_save_LIBS=$LIBS
10439 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
10440 cat >conftest.$ac_ext <<_ACEOF
10443 cat confdefs.h >>conftest.$ac_ext
10444 cat >>conftest.$ac_ext <<_ACEOF
10445 /* end confdefs.h. */
10447 /* Override any gcc2 internal prototype to avoid an error. */
10451 /* We use char because int might match the return type of a gcc2
10452 builtin and then its argument prototype would still apply. */
10462 rm -f conftest.$ac_objext conftest$ac_exeext
10463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10464 (eval $ac_link) 2>conftest.er1
10466 grep -v '^ *+' conftest.er1 >conftest.err
10468 cat conftest.err >&5
10469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10470 (exit $ac_status); } &&
10471 { ac_try='test -z "$ac_c_werror_flag"
10472 || test ! -s conftest.err'
10473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10474 (eval $ac_try) 2>&5
10476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10477 (exit $ac_status); }; } &&
10478 { ac_try='test -s conftest$ac_exeext'
10479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10480 (eval $ac_try) 2>&5
10482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10483 (exit $ac_status); }; }; then
10484 ac_cv_lib_socket_connect=yes
10486 echo "$as_me: failed program was:" >&5
10487 sed 's/^/| /' conftest.$ac_ext >&5
10489 ac_cv_lib_socket_connect=no
10491 rm -f conftest.err conftest.$ac_objext \
10492 conftest$ac_exeext conftest.$ac_ext
10493 LIBS=$ac_check_lib_save_LIBS
10495 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
10496 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
10497 if test $ac_cv_lib_socket_connect = yes; then
10498 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
10503 # Guillermo Gomez says -lposix is necessary on A/UX.
10504 echo "$as_me:$LINENO: checking for remove" >&5
10505 echo $ECHO_N "checking for remove... $ECHO_C" >&6
10506 if test "${ac_cv_func_remove+set}" = set; then
10507 echo $ECHO_N "(cached) $ECHO_C" >&6
10509 cat >conftest.$ac_ext <<_ACEOF
10512 cat confdefs.h >>conftest.$ac_ext
10513 cat >>conftest.$ac_ext <<_ACEOF
10514 /* end confdefs.h. */
10515 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
10516 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10517 #define remove innocuous_remove
10519 /* System header to define __stub macros and hopefully few prototypes,
10520 which can conflict with char remove (); below.
10521 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10522 <limits.h> exists even on freestanding compilers. */
10525 # include <limits.h>
10527 # include <assert.h>
10532 /* Override any gcc2 internal prototype to avoid an error. */
10537 /* We use char because int might match the return type of a gcc2
10538 builtin and then its argument prototype would still apply. */
10540 /* The GNU C library defines this for functions which it implements
10541 to always fail with ENOSYS. Some functions are actually named
10542 something starting with __ and the normal name is an alias. */
10543 #if defined (__stub_remove) || defined (__stub___remove)
10546 char (*f) () = remove;
10555 return f != remove;
10560 rm -f conftest.$ac_objext conftest$ac_exeext
10561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10562 (eval $ac_link) 2>conftest.er1
10564 grep -v '^ *+' conftest.er1 >conftest.err
10566 cat conftest.err >&5
10567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568 (exit $ac_status); } &&
10569 { ac_try='test -z "$ac_c_werror_flag"
10570 || test ! -s conftest.err'
10571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10572 (eval $ac_try) 2>&5
10574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10575 (exit $ac_status); }; } &&
10576 { ac_try='test -s conftest$ac_exeext'
10577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10578 (eval $ac_try) 2>&5
10580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10581 (exit $ac_status); }; }; then
10582 ac_cv_func_remove=yes
10584 echo "$as_me: failed program was:" >&5
10585 sed 's/^/| /' conftest.$ac_ext >&5
10587 ac_cv_func_remove=no
10589 rm -f conftest.err conftest.$ac_objext \
10590 conftest$ac_exeext conftest.$ac_ext
10592 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
10593 echo "${ECHO_T}$ac_cv_func_remove" >&6
10595 if test $ac_cv_func_remove = no; then
10596 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
10597 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
10598 if test "${ac_cv_lib_posix_remove+set}" = set; then
10599 echo $ECHO_N "(cached) $ECHO_C" >&6
10601 ac_check_lib_save_LIBS=$LIBS
10602 LIBS="-lposix $LIBS"
10603 cat >conftest.$ac_ext <<_ACEOF
10606 cat confdefs.h >>conftest.$ac_ext
10607 cat >>conftest.$ac_ext <<_ACEOF
10608 /* end confdefs.h. */
10610 /* Override any gcc2 internal prototype to avoid an error. */
10614 /* We use char because int might match the return type of a gcc2
10615 builtin and then its argument prototype would still apply. */
10625 rm -f conftest.$ac_objext conftest$ac_exeext
10626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10627 (eval $ac_link) 2>conftest.er1
10629 grep -v '^ *+' conftest.er1 >conftest.err
10631 cat conftest.err >&5
10632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10633 (exit $ac_status); } &&
10634 { ac_try='test -z "$ac_c_werror_flag"
10635 || test ! -s conftest.err'
10636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10637 (eval $ac_try) 2>&5
10639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10640 (exit $ac_status); }; } &&
10641 { ac_try='test -s conftest$ac_exeext'
10642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10643 (eval $ac_try) 2>&5
10645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10646 (exit $ac_status); }; }; then
10647 ac_cv_lib_posix_remove=yes
10649 echo "$as_me: failed program was:" >&5
10650 sed 's/^/| /' conftest.$ac_ext >&5
10652 ac_cv_lib_posix_remove=no
10654 rm -f conftest.err conftest.$ac_objext \
10655 conftest$ac_exeext conftest.$ac_ext
10656 LIBS=$ac_check_lib_save_LIBS
10658 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
10659 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
10660 if test $ac_cv_lib_posix_remove = yes; then
10661 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
10666 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
10667 echo "$as_me:$LINENO: checking for shmat" >&5
10668 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
10669 if test "${ac_cv_func_shmat+set}" = set; then
10670 echo $ECHO_N "(cached) $ECHO_C" >&6
10672 cat >conftest.$ac_ext <<_ACEOF
10675 cat confdefs.h >>conftest.$ac_ext
10676 cat >>conftest.$ac_ext <<_ACEOF
10677 /* end confdefs.h. */
10678 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
10679 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10680 #define shmat innocuous_shmat
10682 /* System header to define __stub macros and hopefully few prototypes,
10683 which can conflict with char shmat (); below.
10684 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10685 <limits.h> exists even on freestanding compilers. */
10688 # include <limits.h>
10690 # include <assert.h>
10695 /* Override any gcc2 internal prototype to avoid an error. */
10700 /* We use char because int might match the return type of a gcc2
10701 builtin and then its argument prototype would still apply. */
10703 /* The GNU C library defines this for functions which it implements
10704 to always fail with ENOSYS. Some functions are actually named
10705 something starting with __ and the normal name is an alias. */
10706 #if defined (__stub_shmat) || defined (__stub___shmat)
10709 char (*f) () = shmat;
10723 rm -f conftest.$ac_objext conftest$ac_exeext
10724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10725 (eval $ac_link) 2>conftest.er1
10727 grep -v '^ *+' conftest.er1 >conftest.err
10729 cat conftest.err >&5
10730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10731 (exit $ac_status); } &&
10732 { ac_try='test -z "$ac_c_werror_flag"
10733 || test ! -s conftest.err'
10734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10735 (eval $ac_try) 2>&5
10737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10738 (exit $ac_status); }; } &&
10739 { ac_try='test -s conftest$ac_exeext'
10740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10741 (eval $ac_try) 2>&5
10743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10744 (exit $ac_status); }; }; then
10745 ac_cv_func_shmat=yes
10747 echo "$as_me: failed program was:" >&5
10748 sed 's/^/| /' conftest.$ac_ext >&5
10750 ac_cv_func_shmat=no
10752 rm -f conftest.err conftest.$ac_objext \
10753 conftest$ac_exeext conftest.$ac_ext
10755 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
10756 echo "${ECHO_T}$ac_cv_func_shmat" >&6
10758 if test $ac_cv_func_shmat = no; then
10759 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
10760 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
10761 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
10762 echo $ECHO_N "(cached) $ECHO_C" >&6
10764 ac_check_lib_save_LIBS=$LIBS
10766 cat >conftest.$ac_ext <<_ACEOF
10769 cat confdefs.h >>conftest.$ac_ext
10770 cat >>conftest.$ac_ext <<_ACEOF
10771 /* end confdefs.h. */
10773 /* Override any gcc2 internal prototype to avoid an error. */
10777 /* We use char because int might match the return type of a gcc2
10778 builtin and then its argument prototype would still apply. */
10788 rm -f conftest.$ac_objext conftest$ac_exeext
10789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10790 (eval $ac_link) 2>conftest.er1
10792 grep -v '^ *+' conftest.er1 >conftest.err
10794 cat conftest.err >&5
10795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10796 (exit $ac_status); } &&
10797 { ac_try='test -z "$ac_c_werror_flag"
10798 || test ! -s conftest.err'
10799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10800 (eval $ac_try) 2>&5
10802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10803 (exit $ac_status); }; } &&
10804 { ac_try='test -s conftest$ac_exeext'
10805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10806 (eval $ac_try) 2>&5
10808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10809 (exit $ac_status); }; }; then
10810 ac_cv_lib_ipc_shmat=yes
10812 echo "$as_me: failed program was:" >&5
10813 sed 's/^/| /' conftest.$ac_ext >&5
10815 ac_cv_lib_ipc_shmat=no
10817 rm -f conftest.err conftest.$ac_objext \
10818 conftest$ac_exeext conftest.$ac_ext
10819 LIBS=$ac_check_lib_save_LIBS
10821 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
10822 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
10823 if test $ac_cv_lib_ipc_shmat = yes; then
10824 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
10830 # Check for libraries that X11R6 Xt/Xaw programs need.
10831 ac_save_LDFLAGS=$LDFLAGS
10832 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
10833 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
10834 # check for ICE first), but we must link in the order -lSM -lICE or
10835 # we get undefined symbols. So assume we have SM if we have ICE.
10836 # These have to be linked with before -lX11, unlike the other
10837 # libraries we check for below, so use a different variable.
10838 # John Interrante, Karl Berry
10839 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
10840 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
10841 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
10842 echo $ECHO_N "(cached) $ECHO_C" >&6
10844 ac_check_lib_save_LIBS=$LIBS
10845 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
10846 cat >conftest.$ac_ext <<_ACEOF
10849 cat confdefs.h >>conftest.$ac_ext
10850 cat >>conftest.$ac_ext <<_ACEOF
10851 /* end confdefs.h. */
10853 /* Override any gcc2 internal prototype to avoid an error. */
10857 /* We use char because int might match the return type of a gcc2
10858 builtin and then its argument prototype would still apply. */
10859 char IceConnectionNumber ();
10863 IceConnectionNumber ();
10868 rm -f conftest.$ac_objext conftest$ac_exeext
10869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10870 (eval $ac_link) 2>conftest.er1
10872 grep -v '^ *+' conftest.er1 >conftest.err
10874 cat conftest.err >&5
10875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10876 (exit $ac_status); } &&
10877 { ac_try='test -z "$ac_c_werror_flag"
10878 || test ! -s conftest.err'
10879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10880 (eval $ac_try) 2>&5
10882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10883 (exit $ac_status); }; } &&
10884 { ac_try='test -s conftest$ac_exeext'
10885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10886 (eval $ac_try) 2>&5
10888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10889 (exit $ac_status); }; }; then
10890 ac_cv_lib_ICE_IceConnectionNumber=yes
10892 echo "$as_me: failed program was:" >&5
10893 sed 's/^/| /' conftest.$ac_ext >&5
10895 ac_cv_lib_ICE_IceConnectionNumber=no
10897 rm -f conftest.err conftest.$ac_objext \
10898 conftest$ac_exeext conftest.$ac_ext
10899 LIBS=$ac_check_lib_save_LIBS
10901 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
10902 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
10903 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
10904 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
10907 LDFLAGS=$ac_save_LDFLAGS
10969 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10970 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10971 echo "$as_me:$LINENO: checking for $ac_header" >&5
10972 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10973 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10974 echo $ECHO_N "(cached) $ECHO_C" >&6
10976 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10977 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10979 # Is the header compilable?
10980 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10981 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10982 cat >conftest.$ac_ext <<_ACEOF
10985 cat confdefs.h >>conftest.$ac_ext
10986 cat >>conftest.$ac_ext <<_ACEOF
10987 /* end confdefs.h. */
10988 $ac_includes_default
10989 #include <$ac_header>
10991 rm -f conftest.$ac_objext
10992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10993 (eval $ac_compile) 2>conftest.er1
10995 grep -v '^ *+' conftest.er1 >conftest.err
10997 cat conftest.err >&5
10998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10999 (exit $ac_status); } &&
11000 { ac_try='test -z "$ac_c_werror_flag"
11001 || test ! -s conftest.err'
11002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11003 (eval $ac_try) 2>&5
11005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11006 (exit $ac_status); }; } &&
11007 { ac_try='test -s conftest.$ac_objext'
11008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11009 (eval $ac_try) 2>&5
11011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11012 (exit $ac_status); }; }; then
11013 ac_header_compiler=yes
11015 echo "$as_me: failed program was:" >&5
11016 sed 's/^/| /' conftest.$ac_ext >&5
11018 ac_header_compiler=no
11020 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11021 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11022 echo "${ECHO_T}$ac_header_compiler" >&6
11024 # Is the header present?
11025 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11026 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11027 cat >conftest.$ac_ext <<_ACEOF
11030 cat confdefs.h >>conftest.$ac_ext
11031 cat >>conftest.$ac_ext <<_ACEOF
11032 /* end confdefs.h. */
11033 #include <$ac_header>
11035 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11036 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11038 grep -v '^ *+' conftest.er1 >conftest.err
11040 cat conftest.err >&5
11041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042 (exit $ac_status); } >/dev/null; then
11043 if test -s conftest.err; then
11044 ac_cpp_err=$ac_c_preproc_warn_flag
11045 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11052 if test -z "$ac_cpp_err"; then
11053 ac_header_preproc=yes
11055 echo "$as_me: failed program was:" >&5
11056 sed 's/^/| /' conftest.$ac_ext >&5
11058 ac_header_preproc=no
11060 rm -f conftest.err conftest.$ac_ext
11061 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11062 echo "${ECHO_T}$ac_header_preproc" >&6
11064 # So? What about this header?
11065 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11067 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11068 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11069 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11070 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11071 ac_header_preproc=yes
11074 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11075 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11076 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11077 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11078 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11079 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11080 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11081 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11082 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11083 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11084 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11085 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11088 ## ------------------------------------------ ##
11089 ## Report this to the AC_PACKAGE_NAME lists. ##
11090 ## ------------------------------------------ ##
11093 sed "s/^/$as_me: WARNING: /" >&2
11096 echo "$as_me:$LINENO: checking for $ac_header" >&5
11097 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11098 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11099 echo $ECHO_N "(cached) $ECHO_C" >&6
11101 eval "$as_ac_Header=\$ac_header_preproc"
11103 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11104 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11107 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11108 cat >>confdefs.h <<_ACEOF
11109 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11116 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
11117 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11118 if test "${ac_cv_header_stdc+set}" = set; then
11119 echo $ECHO_N "(cached) $ECHO_C" >&6
11121 cat >conftest.$ac_ext <<_ACEOF
11124 cat confdefs.h >>conftest.$ac_ext
11125 cat >>conftest.$ac_ext <<_ACEOF
11126 /* end confdefs.h. */
11127 #include <stdlib.h>
11128 #include <stdarg.h>
11129 #include <string.h>
11140 rm -f conftest.$ac_objext
11141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11142 (eval $ac_compile) 2>conftest.er1
11144 grep -v '^ *+' conftest.er1 >conftest.err
11146 cat conftest.err >&5
11147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11148 (exit $ac_status); } &&
11149 { ac_try='test -z "$ac_c_werror_flag"
11150 || test ! -s conftest.err'
11151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11152 (eval $ac_try) 2>&5
11154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11155 (exit $ac_status); }; } &&
11156 { ac_try='test -s conftest.$ac_objext'
11157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11158 (eval $ac_try) 2>&5
11160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11161 (exit $ac_status); }; }; then
11162 ac_cv_header_stdc=yes
11164 echo "$as_me: failed program was:" >&5
11165 sed 's/^/| /' conftest.$ac_ext >&5
11167 ac_cv_header_stdc=no
11169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11171 if test $ac_cv_header_stdc = yes; then
11172 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11173 cat >conftest.$ac_ext <<_ACEOF
11176 cat confdefs.h >>conftest.$ac_ext
11177 cat >>conftest.$ac_ext <<_ACEOF
11178 /* end confdefs.h. */
11179 #include <string.h>
11182 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11183 $EGREP "memchr" >/dev/null 2>&1; then
11186 ac_cv_header_stdc=no
11192 if test $ac_cv_header_stdc = yes; then
11193 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11194 cat >conftest.$ac_ext <<_ACEOF
11197 cat confdefs.h >>conftest.$ac_ext
11198 cat >>conftest.$ac_ext <<_ACEOF
11199 /* end confdefs.h. */
11200 #include <stdlib.h>
11203 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11204 $EGREP "free" >/dev/null 2>&1; then
11207 ac_cv_header_stdc=no
11213 if test $ac_cv_header_stdc = yes; then
11214 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11215 if test "$cross_compiling" = yes; then
11218 cat >conftest.$ac_ext <<_ACEOF
11221 cat confdefs.h >>conftest.$ac_ext
11222 cat >>conftest.$ac_ext <<_ACEOF
11223 /* end confdefs.h. */
11225 #if ((' ' & 0x0FF) == 0x020)
11226 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11227 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11229 # define ISLOWER(c) \
11230 (('a' <= (c) && (c) <= 'i') \
11231 || ('j' <= (c) && (c) <= 'r') \
11232 || ('s' <= (c) && (c) <= 'z'))
11233 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11236 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11241 for (i = 0; i < 256; i++)
11242 if (XOR (islower (i), ISLOWER (i))
11243 || toupper (i) != TOUPPER (i))
11248 rm -f conftest$ac_exeext
11249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11250 (eval $ac_link) 2>&5
11252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11253 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11255 (eval $ac_try) 2>&5
11257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11258 (exit $ac_status); }; }; then
11261 echo "$as_me: program exited with status $ac_status" >&5
11262 echo "$as_me: failed program was:" >&5
11263 sed 's/^/| /' conftest.$ac_ext >&5
11265 ( exit $ac_status )
11266 ac_cv_header_stdc=no
11268 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11272 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11273 echo "${ECHO_T}$ac_cv_header_stdc" >&6
11274 if test $ac_cv_header_stdc = yes; then
11276 cat >>confdefs.h <<\_ACEOF
11277 #define STDC_HEADERS 1
11282 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
11283 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
11284 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
11285 echo $ECHO_N "(cached) $ECHO_C" >&6
11287 cat >conftest.$ac_ext <<_ACEOF
11290 cat confdefs.h >>conftest.$ac_ext
11291 cat >>conftest.$ac_ext <<_ACEOF
11292 /* end confdefs.h. */
11293 #include <sys/types.h>
11297 return makedev(0, 0);
11302 rm -f conftest.$ac_objext conftest$ac_exeext
11303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11304 (eval $ac_link) 2>conftest.er1
11306 grep -v '^ *+' conftest.er1 >conftest.err
11308 cat conftest.err >&5
11309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11310 (exit $ac_status); } &&
11311 { ac_try='test -z "$ac_c_werror_flag"
11312 || test ! -s conftest.err'
11313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11314 (eval $ac_try) 2>&5
11316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11317 (exit $ac_status); }; } &&
11318 { ac_try='test -s conftest$ac_exeext'
11319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11320 (eval $ac_try) 2>&5
11322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11323 (exit $ac_status); }; }; then
11324 ac_cv_header_sys_types_h_makedev=yes
11326 echo "$as_me: failed program was:" >&5
11327 sed 's/^/| /' conftest.$ac_ext >&5
11329 ac_cv_header_sys_types_h_makedev=no
11331 rm -f conftest.err conftest.$ac_objext \
11332 conftest$ac_exeext conftest.$ac_ext
11335 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
11336 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
11338 if test $ac_cv_header_sys_types_h_makedev = no; then
11339 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
11340 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
11341 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
11342 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
11343 echo $ECHO_N "(cached) $ECHO_C" >&6
11345 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
11346 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
11348 # Is the header compilable?
11349 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
11350 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
11351 cat >conftest.$ac_ext <<_ACEOF
11354 cat confdefs.h >>conftest.$ac_ext
11355 cat >>conftest.$ac_ext <<_ACEOF
11356 /* end confdefs.h. */
11357 $ac_includes_default
11358 #include <sys/mkdev.h>
11360 rm -f conftest.$ac_objext
11361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11362 (eval $ac_compile) 2>conftest.er1
11364 grep -v '^ *+' conftest.er1 >conftest.err
11366 cat conftest.err >&5
11367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11368 (exit $ac_status); } &&
11369 { ac_try='test -z "$ac_c_werror_flag"
11370 || test ! -s conftest.err'
11371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11372 (eval $ac_try) 2>&5
11374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375 (exit $ac_status); }; } &&
11376 { ac_try='test -s conftest.$ac_objext'
11377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11378 (eval $ac_try) 2>&5
11380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11381 (exit $ac_status); }; }; then
11382 ac_header_compiler=yes
11384 echo "$as_me: failed program was:" >&5
11385 sed 's/^/| /' conftest.$ac_ext >&5
11387 ac_header_compiler=no
11389 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11390 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11391 echo "${ECHO_T}$ac_header_compiler" >&6
11393 # Is the header present?
11394 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
11395 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
11396 cat >conftest.$ac_ext <<_ACEOF
11399 cat confdefs.h >>conftest.$ac_ext
11400 cat >>conftest.$ac_ext <<_ACEOF
11401 /* end confdefs.h. */
11402 #include <sys/mkdev.h>
11404 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11405 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11407 grep -v '^ *+' conftest.er1 >conftest.err
11409 cat conftest.err >&5
11410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11411 (exit $ac_status); } >/dev/null; then
11412 if test -s conftest.err; then
11413 ac_cpp_err=$ac_c_preproc_warn_flag
11414 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11421 if test -z "$ac_cpp_err"; then
11422 ac_header_preproc=yes
11424 echo "$as_me: failed program was:" >&5
11425 sed 's/^/| /' conftest.$ac_ext >&5
11427 ac_header_preproc=no
11429 rm -f conftest.err conftest.$ac_ext
11430 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11431 echo "${ECHO_T}$ac_header_preproc" >&6
11433 # So? What about this header?
11434 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11436 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
11437 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11438 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
11439 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
11440 ac_header_preproc=yes
11443 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
11444 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
11445 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
11446 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
11447 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
11448 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
11449 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
11450 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
11451 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
11452 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
11453 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
11454 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
11457 ## ------------------------------------------ ##
11458 ## Report this to the AC_PACKAGE_NAME lists. ##
11459 ## ------------------------------------------ ##
11462 sed "s/^/$as_me: WARNING: /" >&2
11465 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
11466 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
11467 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
11468 echo $ECHO_N "(cached) $ECHO_C" >&6
11470 ac_cv_header_sys_mkdev_h=$ac_header_preproc
11472 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
11473 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
11476 if test $ac_cv_header_sys_mkdev_h = yes; then
11478 cat >>confdefs.h <<\_ACEOF
11479 #define MAJOR_IN_MKDEV 1
11486 if test $ac_cv_header_sys_mkdev_h = no; then
11487 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
11488 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
11489 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
11490 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
11491 echo $ECHO_N "(cached) $ECHO_C" >&6
11493 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
11494 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
11496 # Is the header compilable?
11497 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
11498 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
11499 cat >conftest.$ac_ext <<_ACEOF
11502 cat confdefs.h >>conftest.$ac_ext
11503 cat >>conftest.$ac_ext <<_ACEOF
11504 /* end confdefs.h. */
11505 $ac_includes_default
11506 #include <sys/sysmacros.h>
11508 rm -f conftest.$ac_objext
11509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11510 (eval $ac_compile) 2>conftest.er1
11512 grep -v '^ *+' conftest.er1 >conftest.err
11514 cat conftest.err >&5
11515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11516 (exit $ac_status); } &&
11517 { ac_try='test -z "$ac_c_werror_flag"
11518 || test ! -s conftest.err'
11519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11520 (eval $ac_try) 2>&5
11522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11523 (exit $ac_status); }; } &&
11524 { ac_try='test -s conftest.$ac_objext'
11525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11526 (eval $ac_try) 2>&5
11528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11529 (exit $ac_status); }; }; then
11530 ac_header_compiler=yes
11532 echo "$as_me: failed program was:" >&5
11533 sed 's/^/| /' conftest.$ac_ext >&5
11535 ac_header_compiler=no
11537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11538 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11539 echo "${ECHO_T}$ac_header_compiler" >&6
11541 # Is the header present?
11542 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
11543 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
11544 cat >conftest.$ac_ext <<_ACEOF
11547 cat confdefs.h >>conftest.$ac_ext
11548 cat >>conftest.$ac_ext <<_ACEOF
11549 /* end confdefs.h. */
11550 #include <sys/sysmacros.h>
11552 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11553 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11555 grep -v '^ *+' conftest.er1 >conftest.err
11557 cat conftest.err >&5
11558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11559 (exit $ac_status); } >/dev/null; then
11560 if test -s conftest.err; then
11561 ac_cpp_err=$ac_c_preproc_warn_flag
11562 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11569 if test -z "$ac_cpp_err"; then
11570 ac_header_preproc=yes
11572 echo "$as_me: failed program was:" >&5
11573 sed 's/^/| /' conftest.$ac_ext >&5
11575 ac_header_preproc=no
11577 rm -f conftest.err conftest.$ac_ext
11578 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11579 echo "${ECHO_T}$ac_header_preproc" >&6
11581 # So? What about this header?
11582 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11584 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
11585 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11586 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
11587 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
11588 ac_header_preproc=yes
11591 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
11592 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
11593 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
11594 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
11595 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
11596 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
11597 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
11598 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
11599 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
11600 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
11601 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
11602 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
11605 ## ------------------------------------------ ##
11606 ## Report this to the AC_PACKAGE_NAME lists. ##
11607 ## ------------------------------------------ ##
11610 sed "s/^/$as_me: WARNING: /" >&2
11613 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
11614 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
11615 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
11616 echo $ECHO_N "(cached) $ECHO_C" >&6
11618 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
11620 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
11621 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
11624 if test $ac_cv_header_sys_sysmacros_h = yes; then
11626 cat >>confdefs.h <<\_ACEOF
11627 #define MAJOR_IN_SYSMACROS 1
11641 ac_header_dirent=no
11642 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11643 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11644 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
11645 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
11646 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11647 echo $ECHO_N "(cached) $ECHO_C" >&6
11649 cat >conftest.$ac_ext <<_ACEOF
11652 cat confdefs.h >>conftest.$ac_ext
11653 cat >>conftest.$ac_ext <<_ACEOF
11654 /* end confdefs.h. */
11655 #include <sys/types.h>
11667 rm -f conftest.$ac_objext
11668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11669 (eval $ac_compile) 2>conftest.er1
11671 grep -v '^ *+' conftest.er1 >conftest.err
11673 cat conftest.err >&5
11674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11675 (exit $ac_status); } &&
11676 { ac_try='test -z "$ac_c_werror_flag"
11677 || test ! -s conftest.err'
11678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11679 (eval $ac_try) 2>&5
11681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11682 (exit $ac_status); }; } &&
11683 { ac_try='test -s conftest.$ac_objext'
11684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11685 (eval $ac_try) 2>&5
11687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11688 (exit $ac_status); }; }; then
11689 eval "$as_ac_Header=yes"
11691 echo "$as_me: failed program was:" >&5
11692 sed 's/^/| /' conftest.$ac_ext >&5
11694 eval "$as_ac_Header=no"
11696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11698 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11699 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11700 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11701 cat >>confdefs.h <<_ACEOF
11702 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11705 ac_header_dirent=$ac_hdr; break
11709 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11710 if test $ac_header_dirent = dirent.h; then
11711 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11712 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11713 if test "${ac_cv_search_opendir+set}" = set; then
11714 echo $ECHO_N "(cached) $ECHO_C" >&6
11716 ac_func_search_save_LIBS=$LIBS
11717 ac_cv_search_opendir=no
11718 cat >conftest.$ac_ext <<_ACEOF
11721 cat confdefs.h >>conftest.$ac_ext
11722 cat >>conftest.$ac_ext <<_ACEOF
11723 /* end confdefs.h. */
11725 /* Override any gcc2 internal prototype to avoid an error. */
11729 /* We use char because int might match the return type of a gcc2
11730 builtin and then its argument prototype would still apply. */
11740 rm -f conftest.$ac_objext conftest$ac_exeext
11741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11742 (eval $ac_link) 2>conftest.er1
11744 grep -v '^ *+' conftest.er1 >conftest.err
11746 cat conftest.err >&5
11747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11748 (exit $ac_status); } &&
11749 { ac_try='test -z "$ac_c_werror_flag"
11750 || test ! -s conftest.err'
11751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11752 (eval $ac_try) 2>&5
11754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11755 (exit $ac_status); }; } &&
11756 { ac_try='test -s conftest$ac_exeext'
11757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11758 (eval $ac_try) 2>&5
11760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11761 (exit $ac_status); }; }; then
11762 ac_cv_search_opendir="none required"
11764 echo "$as_me: failed program was:" >&5
11765 sed 's/^/| /' conftest.$ac_ext >&5
11768 rm -f conftest.err conftest.$ac_objext \
11769 conftest$ac_exeext conftest.$ac_ext
11770 if test "$ac_cv_search_opendir" = no; then
11771 for ac_lib in dir; do
11772 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11773 cat >conftest.$ac_ext <<_ACEOF
11776 cat confdefs.h >>conftest.$ac_ext
11777 cat >>conftest.$ac_ext <<_ACEOF
11778 /* end confdefs.h. */
11780 /* Override any gcc2 internal prototype to avoid an error. */
11784 /* We use char because int might match the return type of a gcc2
11785 builtin and then its argument prototype would still apply. */
11795 rm -f conftest.$ac_objext conftest$ac_exeext
11796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11797 (eval $ac_link) 2>conftest.er1
11799 grep -v '^ *+' conftest.er1 >conftest.err
11801 cat conftest.err >&5
11802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803 (exit $ac_status); } &&
11804 { ac_try='test -z "$ac_c_werror_flag"
11805 || test ! -s conftest.err'
11806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11807 (eval $ac_try) 2>&5
11809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11810 (exit $ac_status); }; } &&
11811 { ac_try='test -s conftest$ac_exeext'
11812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11813 (eval $ac_try) 2>&5
11815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11816 (exit $ac_status); }; }; then
11817 ac_cv_search_opendir="-l$ac_lib"
11820 echo "$as_me: failed program was:" >&5
11821 sed 's/^/| /' conftest.$ac_ext >&5
11824 rm -f conftest.err conftest.$ac_objext \
11825 conftest$ac_exeext conftest.$ac_ext
11828 LIBS=$ac_func_search_save_LIBS
11830 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11831 echo "${ECHO_T}$ac_cv_search_opendir" >&6
11832 if test "$ac_cv_search_opendir" != no; then
11833 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11838 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11839 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11840 if test "${ac_cv_search_opendir+set}" = set; then
11841 echo $ECHO_N "(cached) $ECHO_C" >&6
11843 ac_func_search_save_LIBS=$LIBS
11844 ac_cv_search_opendir=no
11845 cat >conftest.$ac_ext <<_ACEOF
11848 cat confdefs.h >>conftest.$ac_ext
11849 cat >>conftest.$ac_ext <<_ACEOF
11850 /* end confdefs.h. */
11852 /* Override any gcc2 internal prototype to avoid an error. */
11856 /* We use char because int might match the return type of a gcc2
11857 builtin and then its argument prototype would still apply. */
11867 rm -f conftest.$ac_objext conftest$ac_exeext
11868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11869 (eval $ac_link) 2>conftest.er1
11871 grep -v '^ *+' conftest.er1 >conftest.err
11873 cat conftest.err >&5
11874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11875 (exit $ac_status); } &&
11876 { ac_try='test -z "$ac_c_werror_flag"
11877 || test ! -s conftest.err'
11878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11879 (eval $ac_try) 2>&5
11881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11882 (exit $ac_status); }; } &&
11883 { ac_try='test -s conftest$ac_exeext'
11884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11885 (eval $ac_try) 2>&5
11887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11888 (exit $ac_status); }; }; then
11889 ac_cv_search_opendir="none required"
11891 echo "$as_me: failed program was:" >&5
11892 sed 's/^/| /' conftest.$ac_ext >&5
11895 rm -f conftest.err conftest.$ac_objext \
11896 conftest$ac_exeext conftest.$ac_ext
11897 if test "$ac_cv_search_opendir" = no; then
11898 for ac_lib in x; do
11899 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11900 cat >conftest.$ac_ext <<_ACEOF
11903 cat confdefs.h >>conftest.$ac_ext
11904 cat >>conftest.$ac_ext <<_ACEOF
11905 /* end confdefs.h. */
11907 /* Override any gcc2 internal prototype to avoid an error. */
11911 /* We use char because int might match the return type of a gcc2
11912 builtin and then its argument prototype would still apply. */
11922 rm -f conftest.$ac_objext conftest$ac_exeext
11923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11924 (eval $ac_link) 2>conftest.er1
11926 grep -v '^ *+' conftest.er1 >conftest.err
11928 cat conftest.err >&5
11929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11930 (exit $ac_status); } &&
11931 { ac_try='test -z "$ac_c_werror_flag"
11932 || test ! -s conftest.err'
11933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11934 (eval $ac_try) 2>&5
11936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11937 (exit $ac_status); }; } &&
11938 { ac_try='test -s conftest$ac_exeext'
11939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11940 (eval $ac_try) 2>&5
11942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11943 (exit $ac_status); }; }; then
11944 ac_cv_search_opendir="-l$ac_lib"
11947 echo "$as_me: failed program was:" >&5
11948 sed 's/^/| /' conftest.$ac_ext >&5
11951 rm -f conftest.err conftest.$ac_objext \
11952 conftest$ac_exeext conftest.$ac_ext
11955 LIBS=$ac_func_search_save_LIBS
11957 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11958 echo "${ECHO_T}$ac_cv_search_opendir" >&6
11959 if test "$ac_cv_search_opendir" != no; then
11960 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11966 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
11967 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
11968 if test "${ac_cv_header_stat_broken+set}" = set; then
11969 echo $ECHO_N "(cached) $ECHO_C" >&6
11971 cat >conftest.$ac_ext <<_ACEOF
11974 cat confdefs.h >>conftest.$ac_ext
11975 cat >>conftest.$ac_ext <<_ACEOF
11976 /* end confdefs.h. */
11977 #include <sys/types.h>
11978 #include <sys/stat.h>
11980 #if defined(S_ISBLK) && defined(S_IFDIR)
11981 # if S_ISBLK (S_IFDIR)
11986 #if defined(S_ISBLK) && defined(S_IFCHR)
11987 # if S_ISBLK (S_IFCHR)
11992 #if defined(S_ISLNK) && defined(S_IFREG)
11993 # if S_ISLNK (S_IFREG)
11998 #if defined(S_ISSOCK) && defined(S_IFREG)
11999 # if S_ISSOCK (S_IFREG)
12005 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12006 $EGREP "You lose" >/dev/null 2>&1; then
12007 ac_cv_header_stat_broken=yes
12009 ac_cv_header_stat_broken=no
12014 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
12015 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
12016 if test $ac_cv_header_stat_broken = yes; then
12018 cat >>confdefs.h <<\_ACEOF
12019 #define STAT_MACROS_BROKEN 1
12024 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
12025 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
12026 if test "${ac_cv_header_sys_wait_h+set}" = set; then
12027 echo $ECHO_N "(cached) $ECHO_C" >&6
12029 cat >conftest.$ac_ext <<_ACEOF
12032 cat confdefs.h >>conftest.$ac_ext
12033 cat >>conftest.$ac_ext <<_ACEOF
12034 /* end confdefs.h. */
12035 #include <sys/types.h>
12036 #include <sys/wait.h>
12037 #ifndef WEXITSTATUS
12038 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
12041 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
12049 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
12054 rm -f conftest.$ac_objext
12055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12056 (eval $ac_compile) 2>conftest.er1
12058 grep -v '^ *+' conftest.er1 >conftest.err
12060 cat conftest.err >&5
12061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12062 (exit $ac_status); } &&
12063 { ac_try='test -z "$ac_c_werror_flag"
12064 || test ! -s conftest.err'
12065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12066 (eval $ac_try) 2>&5
12068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12069 (exit $ac_status); }; } &&
12070 { ac_try='test -s conftest.$ac_objext'
12071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12072 (eval $ac_try) 2>&5
12074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075 (exit $ac_status); }; }; then
12076 ac_cv_header_sys_wait_h=yes
12078 echo "$as_me: failed program was:" >&5
12079 sed 's/^/| /' conftest.$ac_ext >&5
12081 ac_cv_header_sys_wait_h=no
12083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12085 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
12086 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
12087 if test $ac_cv_header_sys_wait_h = yes; then
12089 cat >>confdefs.h <<\_ACEOF
12090 #define HAVE_SYS_WAIT_H 1
12095 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
12096 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
12097 if test "${ac_cv_header_time+set}" = set; then
12098 echo $ECHO_N "(cached) $ECHO_C" >&6
12100 cat >conftest.$ac_ext <<_ACEOF
12103 cat confdefs.h >>conftest.$ac_ext
12104 cat >>conftest.$ac_ext <<_ACEOF
12105 /* end confdefs.h. */
12106 #include <sys/types.h>
12107 #include <sys/time.h>
12113 if ((struct tm *) 0)
12119 rm -f conftest.$ac_objext
12120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12121 (eval $ac_compile) 2>conftest.er1
12123 grep -v '^ *+' conftest.er1 >conftest.err
12125 cat conftest.err >&5
12126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127 (exit $ac_status); } &&
12128 { ac_try='test -z "$ac_c_werror_flag"
12129 || test ! -s conftest.err'
12130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12131 (eval $ac_try) 2>&5
12133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134 (exit $ac_status); }; } &&
12135 { ac_try='test -s conftest.$ac_objext'
12136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12137 (eval $ac_try) 2>&5
12139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12140 (exit $ac_status); }; }; then
12141 ac_cv_header_time=yes
12143 echo "$as_me: failed program was:" >&5
12144 sed 's/^/| /' conftest.$ac_ext >&5
12146 ac_cv_header_time=no
12148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12150 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
12151 echo "${ECHO_T}$ac_cv_header_time" >&6
12152 if test $ac_cv_header_time = yes; then
12154 cat >>confdefs.h <<\_ACEOF
12155 #define TIME_WITH_SYS_TIME 1
12161 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
12162 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
12163 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
12164 echo $ECHO_N "(cached) $ECHO_C" >&6
12166 cat >conftest.$ac_ext <<_ACEOF
12169 cat confdefs.h >>conftest.$ac_ext
12170 cat >>conftest.$ac_ext <<_ACEOF
12171 /* end confdefs.h. */
12172 $ac_includes_default
12176 static struct stat ac_aggr;
12177 if (ac_aggr.st_blksize)
12183 rm -f conftest.$ac_objext
12184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12185 (eval $ac_compile) 2>conftest.er1
12187 grep -v '^ *+' conftest.er1 >conftest.err
12189 cat conftest.err >&5
12190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12191 (exit $ac_status); } &&
12192 { ac_try='test -z "$ac_c_werror_flag"
12193 || test ! -s conftest.err'
12194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12195 (eval $ac_try) 2>&5
12197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12198 (exit $ac_status); }; } &&
12199 { ac_try='test -s conftest.$ac_objext'
12200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12201 (eval $ac_try) 2>&5
12203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12204 (exit $ac_status); }; }; then
12205 ac_cv_member_struct_stat_st_blksize=yes
12207 echo "$as_me: failed program was:" >&5
12208 sed 's/^/| /' conftest.$ac_ext >&5
12210 cat >conftest.$ac_ext <<_ACEOF
12213 cat confdefs.h >>conftest.$ac_ext
12214 cat >>conftest.$ac_ext <<_ACEOF
12215 /* end confdefs.h. */
12216 $ac_includes_default
12220 static struct stat ac_aggr;
12221 if (sizeof ac_aggr.st_blksize)
12227 rm -f conftest.$ac_objext
12228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12229 (eval $ac_compile) 2>conftest.er1
12231 grep -v '^ *+' conftest.er1 >conftest.err
12233 cat conftest.err >&5
12234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12235 (exit $ac_status); } &&
12236 { ac_try='test -z "$ac_c_werror_flag"
12237 || test ! -s conftest.err'
12238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12239 (eval $ac_try) 2>&5
12241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12242 (exit $ac_status); }; } &&
12243 { ac_try='test -s conftest.$ac_objext'
12244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12245 (eval $ac_try) 2>&5
12247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12248 (exit $ac_status); }; }; then
12249 ac_cv_member_struct_stat_st_blksize=yes
12251 echo "$as_me: failed program was:" >&5
12252 sed 's/^/| /' conftest.$ac_ext >&5
12254 ac_cv_member_struct_stat_st_blksize=no
12256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12260 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
12261 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
12262 if test $ac_cv_member_struct_stat_st_blksize = yes; then
12264 cat >>confdefs.h <<_ACEOF
12265 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
12269 cat >>confdefs.h <<\_ACEOF
12270 #define HAVE_ST_BLKSIZE 1
12276 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
12277 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
12278 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
12279 echo $ECHO_N "(cached) $ECHO_C" >&6
12281 cat >conftest.$ac_ext <<_ACEOF
12284 cat confdefs.h >>conftest.$ac_ext
12285 cat >>conftest.$ac_ext <<_ACEOF
12286 /* end confdefs.h. */
12287 $ac_includes_default
12291 static struct stat ac_aggr;
12292 if (ac_aggr.st_blocks)
12298 rm -f conftest.$ac_objext
12299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12300 (eval $ac_compile) 2>conftest.er1
12302 grep -v '^ *+' conftest.er1 >conftest.err
12304 cat conftest.err >&5
12305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306 (exit $ac_status); } &&
12307 { ac_try='test -z "$ac_c_werror_flag"
12308 || test ! -s conftest.err'
12309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12310 (eval $ac_try) 2>&5
12312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12313 (exit $ac_status); }; } &&
12314 { ac_try='test -s conftest.$ac_objext'
12315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12316 (eval $ac_try) 2>&5
12318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12319 (exit $ac_status); }; }; then
12320 ac_cv_member_struct_stat_st_blocks=yes
12322 echo "$as_me: failed program was:" >&5
12323 sed 's/^/| /' conftest.$ac_ext >&5
12325 cat >conftest.$ac_ext <<_ACEOF
12328 cat confdefs.h >>conftest.$ac_ext
12329 cat >>conftest.$ac_ext <<_ACEOF
12330 /* end confdefs.h. */
12331 $ac_includes_default
12335 static struct stat ac_aggr;
12336 if (sizeof ac_aggr.st_blocks)
12342 rm -f conftest.$ac_objext
12343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12344 (eval $ac_compile) 2>conftest.er1
12346 grep -v '^ *+' conftest.er1 >conftest.err
12348 cat conftest.err >&5
12349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350 (exit $ac_status); } &&
12351 { ac_try='test -z "$ac_c_werror_flag"
12352 || test ! -s conftest.err'
12353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12354 (eval $ac_try) 2>&5
12356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357 (exit $ac_status); }; } &&
12358 { ac_try='test -s conftest.$ac_objext'
12359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12360 (eval $ac_try) 2>&5
12362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363 (exit $ac_status); }; }; then
12364 ac_cv_member_struct_stat_st_blocks=yes
12366 echo "$as_me: failed program was:" >&5
12367 sed 's/^/| /' conftest.$ac_ext >&5
12369 ac_cv_member_struct_stat_st_blocks=no
12371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12375 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
12376 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
12377 if test $ac_cv_member_struct_stat_st_blocks = yes; then
12379 cat >>confdefs.h <<_ACEOF
12380 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12384 cat >>confdefs.h <<\_ACEOF
12385 #define HAVE_ST_BLOCKS 1
12390 "fileblocks.$ac_objext" | \
12391 *" fileblocks.$ac_objext" | \
12392 "fileblocks.$ac_objext "* | \
12393 *" fileblocks.$ac_objext "* ) ;;
12394 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
12400 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12401 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
12402 if test "${ac_cv_struct_tm+set}" = set; then
12403 echo $ECHO_N "(cached) $ECHO_C" >&6
12405 cat >conftest.$ac_ext <<_ACEOF
12408 cat confdefs.h >>conftest.$ac_ext
12409 cat >>conftest.$ac_ext <<_ACEOF
12410 /* end confdefs.h. */
12411 #include <sys/types.h>
12417 struct tm *tp; tp->tm_sec;
12422 rm -f conftest.$ac_objext
12423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12424 (eval $ac_compile) 2>conftest.er1
12426 grep -v '^ *+' conftest.er1 >conftest.err
12428 cat conftest.err >&5
12429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12430 (exit $ac_status); } &&
12431 { ac_try='test -z "$ac_c_werror_flag"
12432 || test ! -s conftest.err'
12433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12434 (eval $ac_try) 2>&5
12436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12437 (exit $ac_status); }; } &&
12438 { ac_try='test -s conftest.$ac_objext'
12439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12440 (eval $ac_try) 2>&5
12442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12443 (exit $ac_status); }; }; then
12444 ac_cv_struct_tm=time.h
12446 echo "$as_me: failed program was:" >&5
12447 sed 's/^/| /' conftest.$ac_ext >&5
12449 ac_cv_struct_tm=sys/time.h
12451 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12453 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12454 echo "${ECHO_T}$ac_cv_struct_tm" >&6
12455 if test $ac_cv_struct_tm = sys/time.h; then
12457 cat >>confdefs.h <<\_ACEOF
12458 #define TM_IN_SYS_TIME 1
12463 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
12464 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
12465 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
12466 echo $ECHO_N "(cached) $ECHO_C" >&6
12468 cat >conftest.$ac_ext <<_ACEOF
12471 cat confdefs.h >>conftest.$ac_ext
12472 cat >>conftest.$ac_ext <<_ACEOF
12473 /* end confdefs.h. */
12474 #include <sys/types.h>
12475 #include <$ac_cv_struct_tm>
12481 static struct tm ac_aggr;
12482 if (ac_aggr.tm_zone)
12488 rm -f conftest.$ac_objext
12489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12490 (eval $ac_compile) 2>conftest.er1
12492 grep -v '^ *+' conftest.er1 >conftest.err
12494 cat conftest.err >&5
12495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12496 (exit $ac_status); } &&
12497 { ac_try='test -z "$ac_c_werror_flag"
12498 || test ! -s conftest.err'
12499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12500 (eval $ac_try) 2>&5
12502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12503 (exit $ac_status); }; } &&
12504 { ac_try='test -s conftest.$ac_objext'
12505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12506 (eval $ac_try) 2>&5
12508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12509 (exit $ac_status); }; }; then
12510 ac_cv_member_struct_tm_tm_zone=yes
12512 echo "$as_me: failed program was:" >&5
12513 sed 's/^/| /' conftest.$ac_ext >&5
12515 cat >conftest.$ac_ext <<_ACEOF
12518 cat confdefs.h >>conftest.$ac_ext
12519 cat >>conftest.$ac_ext <<_ACEOF
12520 /* end confdefs.h. */
12521 #include <sys/types.h>
12522 #include <$ac_cv_struct_tm>
12528 static struct tm ac_aggr;
12529 if (sizeof ac_aggr.tm_zone)
12535 rm -f conftest.$ac_objext
12536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12537 (eval $ac_compile) 2>conftest.er1
12539 grep -v '^ *+' conftest.er1 >conftest.err
12541 cat conftest.err >&5
12542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12543 (exit $ac_status); } &&
12544 { ac_try='test -z "$ac_c_werror_flag"
12545 || test ! -s conftest.err'
12546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12547 (eval $ac_try) 2>&5
12549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12550 (exit $ac_status); }; } &&
12551 { ac_try='test -s conftest.$ac_objext'
12552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12553 (eval $ac_try) 2>&5
12555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556 (exit $ac_status); }; }; then
12557 ac_cv_member_struct_tm_tm_zone=yes
12559 echo "$as_me: failed program was:" >&5
12560 sed 's/^/| /' conftest.$ac_ext >&5
12562 ac_cv_member_struct_tm_tm_zone=no
12564 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12568 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
12569 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
12570 if test $ac_cv_member_struct_tm_tm_zone = yes; then
12572 cat >>confdefs.h <<_ACEOF
12573 #define HAVE_STRUCT_TM_TM_ZONE 1
12579 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
12581 cat >>confdefs.h <<\_ACEOF
12582 #define HAVE_TM_ZONE 1
12586 echo "$as_me:$LINENO: checking for tzname" >&5
12587 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
12588 if test "${ac_cv_var_tzname+set}" = set; then
12589 echo $ECHO_N "(cached) $ECHO_C" >&6
12591 cat >conftest.$ac_ext <<_ACEOF
12594 cat confdefs.h >>conftest.$ac_ext
12595 cat >>conftest.$ac_ext <<_ACEOF
12596 /* end confdefs.h. */
12598 #ifndef tzname /* For SGI. */
12599 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
12610 rm -f conftest.$ac_objext conftest$ac_exeext
12611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12612 (eval $ac_link) 2>conftest.er1
12614 grep -v '^ *+' conftest.er1 >conftest.err
12616 cat conftest.err >&5
12617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12618 (exit $ac_status); } &&
12619 { ac_try='test -z "$ac_c_werror_flag"
12620 || test ! -s conftest.err'
12621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12622 (eval $ac_try) 2>&5
12624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12625 (exit $ac_status); }; } &&
12626 { ac_try='test -s conftest$ac_exeext'
12627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12628 (eval $ac_try) 2>&5
12630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12631 (exit $ac_status); }; }; then
12632 ac_cv_var_tzname=yes
12634 echo "$as_me: failed program was:" >&5
12635 sed 's/^/| /' conftest.$ac_ext >&5
12637 ac_cv_var_tzname=no
12639 rm -f conftest.err conftest.$ac_objext \
12640 conftest$ac_exeext conftest.$ac_ext
12642 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
12643 echo "${ECHO_T}$ac_cv_var_tzname" >&6
12644 if test $ac_cv_var_tzname = yes; then
12646 cat >>confdefs.h <<\_ACEOF
12647 #define HAVE_TZNAME 1
12654 echo "$as_me:$LINENO: checking for utime.h" >&5
12655 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
12656 if test "${ba_cv_header_utime_h+set}" = set; then
12657 echo $ECHO_N "(cached) $ECHO_C" >&6
12659 cat >conftest.$ac_ext <<_ACEOF
12662 cat confdefs.h >>conftest.$ac_ext
12663 cat >>conftest.$ac_ext <<_ACEOF
12664 /* end confdefs.h. */
12666 #include <sys/types.h>
12676 rm -f conftest.$ac_objext
12677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12678 (eval $ac_compile) 2>conftest.er1
12680 grep -v '^ *+' conftest.er1 >conftest.err
12682 cat conftest.err >&5
12683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12684 (exit $ac_status); } &&
12685 { ac_try='test -z "$ac_c_werror_flag"
12686 || test ! -s conftest.err'
12687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12688 (eval $ac_try) 2>&5
12690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12691 (exit $ac_status); }; } &&
12692 { ac_try='test -s conftest.$ac_objext'
12693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12694 (eval $ac_try) 2>&5
12696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12697 (exit $ac_status); }; }; then
12698 ba_cv_header_utime_h=yes
12700 echo "$as_me: failed program was:" >&5
12701 sed 's/^/| /' conftest.$ac_ext >&5
12703 ba_cv_header_utime_h=no
12705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12707 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
12708 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
12709 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
12710 #define HAVE_UTIME_H 1
12714 echo "$as_me:$LINENO: checking for socklen_t" >&5
12715 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
12716 if test "${ba_cv_header_socklen_t+set}" = set; then
12717 echo $ECHO_N "(cached) $ECHO_C" >&6
12719 cat >conftest.$ac_ext <<_ACEOF
12722 cat confdefs.h >>conftest.$ac_ext
12723 cat >>conftest.$ac_ext <<_ACEOF
12724 /* end confdefs.h. */
12726 #include <sys/types.h>
12727 #include <sys/socket.h>
12736 rm -f conftest.$ac_objext
12737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12738 (eval $ac_compile) 2>conftest.er1
12740 grep -v '^ *+' conftest.er1 >conftest.err
12742 cat conftest.err >&5
12743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744 (exit $ac_status); } &&
12745 { ac_try='test -z "$ac_c_werror_flag"
12746 || test ! -s conftest.err'
12747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12748 (eval $ac_try) 2>&5
12750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751 (exit $ac_status); }; } &&
12752 { ac_try='test -s conftest.$ac_objext'
12753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12754 (eval $ac_try) 2>&5
12756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12757 (exit $ac_status); }; }; then
12758 ba_cv_header_socklen_t=yes
12760 echo "$as_me: failed program was:" >&5
12761 sed 's/^/| /' conftest.$ac_ext >&5
12763 ba_cv_header_socklen_t=no
12765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12767 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
12768 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
12769 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
12770 #define HAVE_SOCKLEN_T 1
12774 echo "$as_me:$LINENO: checking for bigendian" >&5
12775 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
12776 if test "${ba_cv_bigendian+set}" = set; then
12777 echo $ECHO_N "(cached) $ECHO_C" >&6
12779 if test "$cross_compiling" = yes; then
12782 cat >conftest.$ac_ext <<_ACEOF
12785 cat confdefs.h >>conftest.$ac_ext
12786 cat >>conftest.$ac_ext <<_ACEOF
12787 /* end confdefs.h. */
12788 main(){long a=1L; char *p=(char *)&a; exit(*p);}
12790 rm -f conftest$ac_exeext
12791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12792 (eval $ac_link) 2>&5
12794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12797 (eval $ac_try) 2>&5
12799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800 (exit $ac_status); }; }; then
12801 ba_cv_bigendian=yes
12803 echo "$as_me: program exited with status $ac_status" >&5
12804 echo "$as_me: failed program was:" >&5
12805 sed 's/^/| /' conftest.$ac_ext >&5
12807 ( exit $ac_status )
12810 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12813 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
12814 echo "${ECHO_T}$ba_cv_bigendian" >&6
12815 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
12816 #define HAVE_BIGENDIAN 1
12821 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12822 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12823 if test "${ac_cv_c_const+set}" = set; then
12824 echo $ECHO_N "(cached) $ECHO_C" >&6
12826 cat >conftest.$ac_ext <<_ACEOF
12829 cat confdefs.h >>conftest.$ac_ext
12830 cat >>conftest.$ac_ext <<_ACEOF
12831 /* end confdefs.h. */
12836 /* FIXME: Include the comments suggested by Paul. */
12837 #ifndef __cplusplus
12838 /* Ultrix mips cc rejects this. */
12839 typedef int charset[2];
12841 /* SunOS 4.1.1 cc rejects this. */
12842 char const *const *ccp;
12844 /* NEC SVR4.0.2 mips cc rejects this. */
12845 struct point {int x, y;};
12846 static struct point const zero = {0,0};
12847 /* AIX XL C 1.02.0.0 rejects this.
12848 It does not let you subtract one const X* pointer from another in
12849 an arm of an if-expression whose if-part is not a constant
12851 const char *g = "string";
12852 ccp = &g + (g ? g-g : 0);
12853 /* HPUX 7.0 cc rejects these. */
12856 ccp = (char const *const *) p;
12857 { /* SCO 3.2v4 cc rejects this. */
12859 char const *s = 0 ? (char *) 0 : (char const *) 0;
12863 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12864 int x[] = {25, 17};
12865 const int *foo = &x[0];
12868 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12869 typedef const int *iptr;
12873 { /* AIX XL C 1.02.0.0 rejects this saying
12874 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12875 struct s { int j; const int *ap[3]; };
12876 struct s *b; b->j = 5;
12878 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12879 const int foo = 10;
12887 rm -f conftest.$ac_objext
12888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12889 (eval $ac_compile) 2>conftest.er1
12891 grep -v '^ *+' conftest.er1 >conftest.err
12893 cat conftest.err >&5
12894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12895 (exit $ac_status); } &&
12896 { ac_try='test -z "$ac_c_werror_flag"
12897 || test ! -s conftest.err'
12898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12899 (eval $ac_try) 2>&5
12901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12902 (exit $ac_status); }; } &&
12903 { ac_try='test -s conftest.$ac_objext'
12904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12905 (eval $ac_try) 2>&5
12907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12908 (exit $ac_status); }; }; then
12911 echo "$as_me: failed program was:" >&5
12912 sed 's/^/| /' conftest.$ac_ext >&5
12916 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12918 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12919 echo "${ECHO_T}$ac_cv_c_const" >&6
12920 if test $ac_cv_c_const = no; then
12922 cat >>confdefs.h <<\_ACEOF
12930 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
12931 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
12933 # The order of these tests is important.
12934 cat >conftest.$ac_ext <<_ACEOF
12937 cat confdefs.h >>conftest.$ac_ext
12938 cat >>conftest.$ac_ext <<_ACEOF
12939 /* end confdefs.h. */
12940 #include <sys/statvfs.h>
12941 #include <sys/fstyp.h>
12943 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12944 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12946 grep -v '^ *+' conftest.er1 >conftest.err
12948 cat conftest.err >&5
12949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12950 (exit $ac_status); } >/dev/null; then
12951 if test -s conftest.err; then
12952 ac_cpp_err=$ac_c_preproc_warn_flag
12953 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12960 if test -z "$ac_cpp_err"; then
12961 cat >>confdefs.h <<\_ACEOF
12962 #define FSTYPE_STATVFS 1
12966 echo "$as_me: failed program was:" >&5
12967 sed 's/^/| /' conftest.$ac_ext >&5
12971 rm -f conftest.err conftest.$ac_ext
12972 if test $fstype = no; then
12973 cat >conftest.$ac_ext <<_ACEOF
12976 cat confdefs.h >>conftest.$ac_ext
12977 cat >>conftest.$ac_ext <<_ACEOF
12978 /* end confdefs.h. */
12979 #include <sys/statfs.h>
12980 #include <sys/fstyp.h>
12982 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12983 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12985 grep -v '^ *+' conftest.er1 >conftest.err
12987 cat conftest.err >&5
12988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12989 (exit $ac_status); } >/dev/null; then
12990 if test -s conftest.err; then
12991 ac_cpp_err=$ac_c_preproc_warn_flag
12992 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12999 if test -z "$ac_cpp_err"; then
13000 cat >>confdefs.h <<\_ACEOF
13001 #define FSTYPE_USG_STATFS 1
13005 echo "$as_me: failed program was:" >&5
13006 sed 's/^/| /' conftest.$ac_ext >&5
13010 rm -f conftest.err conftest.$ac_ext
13012 if test $fstype = no; then
13013 cat >conftest.$ac_ext <<_ACEOF
13016 cat confdefs.h >>conftest.$ac_ext
13017 cat >>conftest.$ac_ext <<_ACEOF
13018 /* end confdefs.h. */
13019 #include <sys/statfs.h>
13020 #include <sys/vmount.h>
13022 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13023 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13025 grep -v '^ *+' conftest.er1 >conftest.err
13027 cat conftest.err >&5
13028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13029 (exit $ac_status); } >/dev/null; then
13030 if test -s conftest.err; then
13031 ac_cpp_err=$ac_c_preproc_warn_flag
13032 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13039 if test -z "$ac_cpp_err"; then
13040 cat >>confdefs.h <<\_ACEOF
13041 #define FSTYPE_AIX_STATFS 1
13045 echo "$as_me: failed program was:" >&5
13046 sed 's/^/| /' conftest.$ac_ext >&5
13050 rm -f conftest.err conftest.$ac_ext
13052 if test $fstype = no; then
13053 cat >conftest.$ac_ext <<_ACEOF
13056 cat confdefs.h >>conftest.$ac_ext
13057 cat >>conftest.$ac_ext <<_ACEOF
13058 /* end confdefs.h. */
13059 #include <mntent.h>
13061 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13062 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13064 grep -v '^ *+' conftest.er1 >conftest.err
13066 cat conftest.err >&5
13067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13068 (exit $ac_status); } >/dev/null; then
13069 if test -s conftest.err; then
13070 ac_cpp_err=$ac_c_preproc_warn_flag
13071 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13078 if test -z "$ac_cpp_err"; then
13079 cat >>confdefs.h <<\_ACEOF
13080 #define FSTYPE_MNTENT 1
13084 echo "$as_me: failed program was:" >&5
13085 sed 's/^/| /' conftest.$ac_ext >&5
13089 rm -f conftest.err conftest.$ac_ext
13091 if test $fstype = no; then
13092 cat >conftest.$ac_ext <<_ACEOF
13095 cat confdefs.h >>conftest.$ac_ext
13096 cat >>conftest.$ac_ext <<_ACEOF
13097 /* end confdefs.h. */
13098 #include <sys/mount.h>
13101 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13102 $EGREP "f_type;" >/dev/null 2>&1; then
13103 cat >>confdefs.h <<\_ACEOF
13104 #define FSTYPE_STATFS 1
13111 if test $fstype = no; then
13112 cat >conftest.$ac_ext <<_ACEOF
13115 cat confdefs.h >>conftest.$ac_ext
13116 cat >>conftest.$ac_ext <<_ACEOF
13117 /* end confdefs.h. */
13118 #include <sys/mount.h>
13119 #include <sys/fs_types.h>
13121 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13122 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13124 grep -v '^ *+' conftest.er1 >conftest.err
13126 cat conftest.err >&5
13127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13128 (exit $ac_status); } >/dev/null; then
13129 if test -s conftest.err; then
13130 ac_cpp_err=$ac_c_preproc_warn_flag
13131 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13138 if test -z "$ac_cpp_err"; then
13139 cat >>confdefs.h <<\_ACEOF
13140 #define FSTYPE_GETMNT 1
13144 echo "$as_me: failed program was:" >&5
13145 sed 's/^/| /' conftest.$ac_ext >&5
13149 rm -f conftest.err conftest.$ac_ext
13151 echo "$as_me:$LINENO: result: $fstype" >&5
13152 echo "${ECHO_T}$fstype" >&6
13154 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13155 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
13156 if test "${ac_cv_type_signal+set}" = set; then
13157 echo $ECHO_N "(cached) $ECHO_C" >&6
13159 cat >conftest.$ac_ext <<_ACEOF
13162 cat confdefs.h >>conftest.$ac_ext
13163 cat >>conftest.$ac_ext <<_ACEOF
13164 /* end confdefs.h. */
13165 #include <sys/types.h>
13166 #include <signal.h>
13171 extern "C" void (*signal (int, void (*)(int)))(int);
13173 void (*signal ()) ();
13184 rm -f conftest.$ac_objext
13185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13186 (eval $ac_compile) 2>conftest.er1
13188 grep -v '^ *+' conftest.er1 >conftest.err
13190 cat conftest.err >&5
13191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13192 (exit $ac_status); } &&
13193 { ac_try='test -z "$ac_c_werror_flag"
13194 || test ! -s conftest.err'
13195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13196 (eval $ac_try) 2>&5
13198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13199 (exit $ac_status); }; } &&
13200 { ac_try='test -s conftest.$ac_objext'
13201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13202 (eval $ac_try) 2>&5
13204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13205 (exit $ac_status); }; }; then
13206 ac_cv_type_signal=void
13208 echo "$as_me: failed program was:" >&5
13209 sed 's/^/| /' conftest.$ac_ext >&5
13211 ac_cv_type_signal=int
13213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13215 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13216 echo "${ECHO_T}$ac_cv_type_signal" >&6
13218 cat >>confdefs.h <<_ACEOF
13219 #define RETSIGTYPE $ac_cv_type_signal
13224 echo "$as_me:$LINENO: checking for type of signal functions" >&5
13225 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
13226 if test "${bash_cv_signal_vintage+set}" = set; then
13227 echo $ECHO_N "(cached) $ECHO_C" >&6
13230 cat >conftest.$ac_ext <<_ACEOF
13233 cat confdefs.h >>conftest.$ac_ext
13234 cat >>conftest.$ac_ext <<_ACEOF
13235 /* end confdefs.h. */
13236 #include <signal.h>
13242 struct sigaction sa;
13243 sigemptyset(&ss); sigsuspend(&ss);
13244 sigaction(SIGINT, &sa, (struct sigaction *) 0);
13245 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
13251 rm -f conftest.$ac_objext conftest$ac_exeext
13252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13253 (eval $ac_link) 2>conftest.er1
13255 grep -v '^ *+' conftest.er1 >conftest.err
13257 cat conftest.err >&5
13258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13259 (exit $ac_status); } &&
13260 { ac_try='test -z "$ac_c_werror_flag"
13261 || test ! -s conftest.err'
13262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13263 (eval $ac_try) 2>&5
13265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13266 (exit $ac_status); }; } &&
13267 { ac_try='test -s conftest$ac_exeext'
13268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13269 (eval $ac_try) 2>&5
13271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13272 (exit $ac_status); }; }; then
13273 bash_cv_signal_vintage=posix
13275 echo "$as_me: failed program was:" >&5
13276 sed 's/^/| /' conftest.$ac_ext >&5
13279 cat >conftest.$ac_ext <<_ACEOF
13282 cat confdefs.h >>conftest.$ac_ext
13283 cat >>conftest.$ac_ext <<_ACEOF
13284 /* end confdefs.h. */
13285 #include <signal.h>
13290 int mask = sigmask(SIGINT);
13291 sigsetmask(mask); sigblock(mask); sigpause(mask);
13297 rm -f conftest.$ac_objext conftest$ac_exeext
13298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13299 (eval $ac_link) 2>conftest.er1
13301 grep -v '^ *+' conftest.er1 >conftest.err
13303 cat conftest.err >&5
13304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13305 (exit $ac_status); } &&
13306 { ac_try='test -z "$ac_c_werror_flag"
13307 || test ! -s conftest.err'
13308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13309 (eval $ac_try) 2>&5
13311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13312 (exit $ac_status); }; } &&
13313 { ac_try='test -s conftest$ac_exeext'
13314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13315 (eval $ac_try) 2>&5
13317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13318 (exit $ac_status); }; }; then
13319 bash_cv_signal_vintage=4.2bsd
13321 echo "$as_me: failed program was:" >&5
13322 sed 's/^/| /' conftest.$ac_ext >&5
13325 cat >conftest.$ac_ext <<_ACEOF
13328 cat confdefs.h >>conftest.$ac_ext
13329 cat >>conftest.$ac_ext <<_ACEOF
13330 /* end confdefs.h. */
13332 #include <signal.h>
13333 RETSIGTYPE foo() { }
13338 int mask = sigmask(SIGINT);
13339 sigset(SIGINT, foo); sigrelse(SIGINT);
13340 sighold(SIGINT); sigpause(SIGINT);
13346 rm -f conftest.$ac_objext conftest$ac_exeext
13347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13348 (eval $ac_link) 2>conftest.er1
13350 grep -v '^ *+' conftest.er1 >conftest.err
13352 cat conftest.err >&5
13353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13354 (exit $ac_status); } &&
13355 { ac_try='test -z "$ac_c_werror_flag"
13356 || test ! -s conftest.err'
13357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13358 (eval $ac_try) 2>&5
13360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13361 (exit $ac_status); }; } &&
13362 { ac_try='test -s conftest$ac_exeext'
13363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13364 (eval $ac_try) 2>&5
13366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13367 (exit $ac_status); }; }; then
13368 bash_cv_signal_vintage=svr3
13370 echo "$as_me: failed program was:" >&5
13371 sed 's/^/| /' conftest.$ac_ext >&5
13373 bash_cv_signal_vintage=v7
13376 rm -f conftest.err conftest.$ac_objext \
13377 conftest$ac_exeext conftest.$ac_ext
13380 rm -f conftest.err conftest.$ac_objext \
13381 conftest$ac_exeext conftest.$ac_ext
13384 rm -f conftest.err conftest.$ac_objext \
13385 conftest$ac_exeext conftest.$ac_ext
13389 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
13390 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
13391 if test "$bash_cv_signal_vintage" = posix; then
13392 cat >>confdefs.h <<\_ACEOF
13393 #define HAVE_POSIX_SIGNALS 1
13396 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
13397 cat >>confdefs.h <<\_ACEOF
13398 #define HAVE_BSD_SIGNALS 1
13401 elif test "$bash_cv_signal_vintage" = svr3; then
13402 cat >>confdefs.h <<\_ACEOF
13403 #define HAVE_USG_SIGHOLD 1
13408 echo "$as_me:$LINENO: checking for mode_t" >&5
13409 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
13410 if test "${ac_cv_type_mode_t+set}" = set; then
13411 echo $ECHO_N "(cached) $ECHO_C" >&6
13413 cat >conftest.$ac_ext <<_ACEOF
13416 cat confdefs.h >>conftest.$ac_ext
13417 cat >>conftest.$ac_ext <<_ACEOF
13418 /* end confdefs.h. */
13419 $ac_includes_default
13425 if (sizeof (mode_t))
13431 rm -f conftest.$ac_objext
13432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13433 (eval $ac_compile) 2>conftest.er1
13435 grep -v '^ *+' conftest.er1 >conftest.err
13437 cat conftest.err >&5
13438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13439 (exit $ac_status); } &&
13440 { ac_try='test -z "$ac_c_werror_flag"
13441 || test ! -s conftest.err'
13442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13443 (eval $ac_try) 2>&5
13445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13446 (exit $ac_status); }; } &&
13447 { ac_try='test -s conftest.$ac_objext'
13448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13449 (eval $ac_try) 2>&5
13451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13452 (exit $ac_status); }; }; then
13453 ac_cv_type_mode_t=yes
13455 echo "$as_me: failed program was:" >&5
13456 sed 's/^/| /' conftest.$ac_ext >&5
13458 ac_cv_type_mode_t=no
13460 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13462 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
13463 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
13464 if test $ac_cv_type_mode_t = yes; then
13468 cat >>confdefs.h <<_ACEOF
13474 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
13475 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
13476 if test "${ac_cv_type_uid_t+set}" = set; then
13477 echo $ECHO_N "(cached) $ECHO_C" >&6
13479 cat >conftest.$ac_ext <<_ACEOF
13482 cat confdefs.h >>conftest.$ac_ext
13483 cat >>conftest.$ac_ext <<_ACEOF
13484 /* end confdefs.h. */
13485 #include <sys/types.h>
13488 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13489 $EGREP "uid_t" >/dev/null 2>&1; then
13490 ac_cv_type_uid_t=yes
13492 ac_cv_type_uid_t=no
13497 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
13498 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
13499 if test $ac_cv_type_uid_t = no; then
13501 cat >>confdefs.h <<\_ACEOF
13506 cat >>confdefs.h <<\_ACEOF
13512 echo "$as_me:$LINENO: checking for size_t" >&5
13513 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
13514 if test "${ac_cv_type_size_t+set}" = set; then
13515 echo $ECHO_N "(cached) $ECHO_C" >&6
13517 cat >conftest.$ac_ext <<_ACEOF
13520 cat confdefs.h >>conftest.$ac_ext
13521 cat >>conftest.$ac_ext <<_ACEOF
13522 /* end confdefs.h. */
13523 $ac_includes_default
13529 if (sizeof (size_t))
13535 rm -f conftest.$ac_objext
13536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13537 (eval $ac_compile) 2>conftest.er1
13539 grep -v '^ *+' conftest.er1 >conftest.err
13541 cat conftest.err >&5
13542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13543 (exit $ac_status); } &&
13544 { ac_try='test -z "$ac_c_werror_flag"
13545 || test ! -s conftest.err'
13546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13547 (eval $ac_try) 2>&5
13549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13550 (exit $ac_status); }; } &&
13551 { ac_try='test -s conftest.$ac_objext'
13552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13553 (eval $ac_try) 2>&5
13555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13556 (exit $ac_status); }; }; then
13557 ac_cv_type_size_t=yes
13559 echo "$as_me: failed program was:" >&5
13560 sed 's/^/| /' conftest.$ac_ext >&5
13562 ac_cv_type_size_t=no
13564 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13566 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13567 echo "${ECHO_T}$ac_cv_type_size_t" >&6
13568 if test $ac_cv_type_size_t = yes; then
13572 cat >>confdefs.h <<_ACEOF
13573 #define size_t unsigned
13578 echo "$as_me:$LINENO: checking for pid_t" >&5
13579 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
13580 if test "${ac_cv_type_pid_t+set}" = set; then
13581 echo $ECHO_N "(cached) $ECHO_C" >&6
13583 cat >conftest.$ac_ext <<_ACEOF
13586 cat confdefs.h >>conftest.$ac_ext
13587 cat >>conftest.$ac_ext <<_ACEOF
13588 /* end confdefs.h. */
13589 $ac_includes_default
13595 if (sizeof (pid_t))
13601 rm -f conftest.$ac_objext
13602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13603 (eval $ac_compile) 2>conftest.er1
13605 grep -v '^ *+' conftest.er1 >conftest.err
13607 cat conftest.err >&5
13608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13609 (exit $ac_status); } &&
13610 { ac_try='test -z "$ac_c_werror_flag"
13611 || test ! -s conftest.err'
13612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13613 (eval $ac_try) 2>&5
13615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13616 (exit $ac_status); }; } &&
13617 { ac_try='test -s conftest.$ac_objext'
13618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13619 (eval $ac_try) 2>&5
13621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13622 (exit $ac_status); }; }; then
13623 ac_cv_type_pid_t=yes
13625 echo "$as_me: failed program was:" >&5
13626 sed 's/^/| /' conftest.$ac_ext >&5
13628 ac_cv_type_pid_t=no
13630 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13632 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
13633 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
13634 if test $ac_cv_type_pid_t = yes; then
13638 cat >>confdefs.h <<_ACEOF
13644 echo "$as_me:$LINENO: checking for off_t" >&5
13645 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
13646 if test "${ac_cv_type_off_t+set}" = set; then
13647 echo $ECHO_N "(cached) $ECHO_C" >&6
13649 cat >conftest.$ac_ext <<_ACEOF
13652 cat confdefs.h >>conftest.$ac_ext
13653 cat >>conftest.$ac_ext <<_ACEOF
13654 /* end confdefs.h. */
13655 $ac_includes_default
13661 if (sizeof (off_t))
13667 rm -f conftest.$ac_objext
13668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13669 (eval $ac_compile) 2>conftest.er1
13671 grep -v '^ *+' conftest.er1 >conftest.err
13673 cat conftest.err >&5
13674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13675 (exit $ac_status); } &&
13676 { ac_try='test -z "$ac_c_werror_flag"
13677 || test ! -s conftest.err'
13678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13679 (eval $ac_try) 2>&5
13681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13682 (exit $ac_status); }; } &&
13683 { ac_try='test -s conftest.$ac_objext'
13684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13685 (eval $ac_try) 2>&5
13687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13688 (exit $ac_status); }; }; then
13689 ac_cv_type_off_t=yes
13691 echo "$as_me: failed program was:" >&5
13692 sed 's/^/| /' conftest.$ac_ext >&5
13694 ac_cv_type_off_t=no
13696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13698 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
13699 echo "${ECHO_T}$ac_cv_type_off_t" >&6
13700 if test $ac_cv_type_off_t = yes; then
13704 cat >>confdefs.h <<_ACEOF
13710 echo "$as_me:$LINENO: checking for ino_t" >&5
13711 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
13712 if test "${ac_cv_type_ino_t+set}" = set; then
13713 echo $ECHO_N "(cached) $ECHO_C" >&6
13715 cat >conftest.$ac_ext <<_ACEOF
13718 cat confdefs.h >>conftest.$ac_ext
13719 cat >>conftest.$ac_ext <<_ACEOF
13720 /* end confdefs.h. */
13721 $ac_includes_default
13727 if (sizeof (ino_t))
13733 rm -f conftest.$ac_objext
13734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13735 (eval $ac_compile) 2>conftest.er1
13737 grep -v '^ *+' conftest.er1 >conftest.err
13739 cat conftest.err >&5
13740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13741 (exit $ac_status); } &&
13742 { ac_try='test -z "$ac_c_werror_flag"
13743 || test ! -s conftest.err'
13744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13745 (eval $ac_try) 2>&5
13747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13748 (exit $ac_status); }; } &&
13749 { ac_try='test -s conftest.$ac_objext'
13750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13751 (eval $ac_try) 2>&5
13753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13754 (exit $ac_status); }; }; then
13755 ac_cv_type_ino_t=yes
13757 echo "$as_me: failed program was:" >&5
13758 sed 's/^/| /' conftest.$ac_ext >&5
13760 ac_cv_type_ino_t=no
13762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13764 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
13765 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
13766 if test $ac_cv_type_ino_t = yes; then
13770 cat >>confdefs.h <<_ACEOF
13771 #define ino_t unsigned long
13776 echo "$as_me:$LINENO: checking for dev_t" >&5
13777 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
13778 if test "${ac_cv_type_dev_t+set}" = set; then
13779 echo $ECHO_N "(cached) $ECHO_C" >&6
13781 cat >conftest.$ac_ext <<_ACEOF
13784 cat confdefs.h >>conftest.$ac_ext
13785 cat >>conftest.$ac_ext <<_ACEOF
13786 /* end confdefs.h. */
13787 $ac_includes_default
13793 if (sizeof (dev_t))
13799 rm -f conftest.$ac_objext
13800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13801 (eval $ac_compile) 2>conftest.er1
13803 grep -v '^ *+' conftest.er1 >conftest.err
13805 cat conftest.err >&5
13806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807 (exit $ac_status); } &&
13808 { ac_try='test -z "$ac_c_werror_flag"
13809 || test ! -s conftest.err'
13810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13811 (eval $ac_try) 2>&5
13813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13814 (exit $ac_status); }; } &&
13815 { ac_try='test -s conftest.$ac_objext'
13816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13817 (eval $ac_try) 2>&5
13819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13820 (exit $ac_status); }; }; then
13821 ac_cv_type_dev_t=yes
13823 echo "$as_me: failed program was:" >&5
13824 sed 's/^/| /' conftest.$ac_ext >&5
13826 ac_cv_type_dev_t=no
13828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13830 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
13831 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
13832 if test $ac_cv_type_dev_t = yes; then
13836 cat >>confdefs.h <<_ACEOF
13837 #define dev_t unsigned long
13842 echo "$as_me:$LINENO: checking for daddr_t" >&5
13843 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
13844 if test "${ac_cv_type_daddr_t+set}" = set; then
13845 echo $ECHO_N "(cached) $ECHO_C" >&6
13847 cat >conftest.$ac_ext <<_ACEOF
13850 cat confdefs.h >>conftest.$ac_ext
13851 cat >>conftest.$ac_ext <<_ACEOF
13852 /* end confdefs.h. */
13853 $ac_includes_default
13859 if (sizeof (daddr_t))
13865 rm -f conftest.$ac_objext
13866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13867 (eval $ac_compile) 2>conftest.er1
13869 grep -v '^ *+' conftest.er1 >conftest.err
13871 cat conftest.err >&5
13872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13873 (exit $ac_status); } &&
13874 { ac_try='test -z "$ac_c_werror_flag"
13875 || test ! -s conftest.err'
13876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13877 (eval $ac_try) 2>&5
13879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13880 (exit $ac_status); }; } &&
13881 { ac_try='test -s conftest.$ac_objext'
13882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13883 (eval $ac_try) 2>&5
13885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13886 (exit $ac_status); }; }; then
13887 ac_cv_type_daddr_t=yes
13889 echo "$as_me: failed program was:" >&5
13890 sed 's/^/| /' conftest.$ac_ext >&5
13892 ac_cv_type_daddr_t=no
13894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13896 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
13897 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
13898 if test $ac_cv_type_daddr_t = yes; then
13902 cat >>confdefs.h <<_ACEOF
13903 #define daddr_t long
13908 echo "$as_me:$LINENO: checking for major_t" >&5
13909 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
13910 if test "${ac_cv_type_major_t+set}" = set; then
13911 echo $ECHO_N "(cached) $ECHO_C" >&6
13913 cat >conftest.$ac_ext <<_ACEOF
13916 cat confdefs.h >>conftest.$ac_ext
13917 cat >>conftest.$ac_ext <<_ACEOF
13918 /* end confdefs.h. */
13919 $ac_includes_default
13925 if (sizeof (major_t))
13931 rm -f conftest.$ac_objext
13932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13933 (eval $ac_compile) 2>conftest.er1
13935 grep -v '^ *+' conftest.er1 >conftest.err
13937 cat conftest.err >&5
13938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13939 (exit $ac_status); } &&
13940 { ac_try='test -z "$ac_c_werror_flag"
13941 || test ! -s conftest.err'
13942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13943 (eval $ac_try) 2>&5
13945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13946 (exit $ac_status); }; } &&
13947 { ac_try='test -s conftest.$ac_objext'
13948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13949 (eval $ac_try) 2>&5
13951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13952 (exit $ac_status); }; }; then
13953 ac_cv_type_major_t=yes
13955 echo "$as_me: failed program was:" >&5
13956 sed 's/^/| /' conftest.$ac_ext >&5
13958 ac_cv_type_major_t=no
13960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13962 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
13963 echo "${ECHO_T}$ac_cv_type_major_t" >&6
13964 if test $ac_cv_type_major_t = yes; then
13968 cat >>confdefs.h <<_ACEOF
13969 #define major_t int
13974 echo "$as_me:$LINENO: checking for minor_t" >&5
13975 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
13976 if test "${ac_cv_type_minor_t+set}" = set; then
13977 echo $ECHO_N "(cached) $ECHO_C" >&6
13979 cat >conftest.$ac_ext <<_ACEOF
13982 cat confdefs.h >>conftest.$ac_ext
13983 cat >>conftest.$ac_ext <<_ACEOF
13984 /* end confdefs.h. */
13985 $ac_includes_default
13991 if (sizeof (minor_t))
13997 rm -f conftest.$ac_objext
13998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13999 (eval $ac_compile) 2>conftest.er1
14001 grep -v '^ *+' conftest.er1 >conftest.err
14003 cat conftest.err >&5
14004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14005 (exit $ac_status); } &&
14006 { ac_try='test -z "$ac_c_werror_flag"
14007 || test ! -s conftest.err'
14008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14009 (eval $ac_try) 2>&5
14011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14012 (exit $ac_status); }; } &&
14013 { ac_try='test -s conftest.$ac_objext'
14014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14015 (eval $ac_try) 2>&5
14017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14018 (exit $ac_status); }; }; then
14019 ac_cv_type_minor_t=yes
14021 echo "$as_me: failed program was:" >&5
14022 sed 's/^/| /' conftest.$ac_ext >&5
14024 ac_cv_type_minor_t=no
14026 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14028 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
14029 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
14030 if test $ac_cv_type_minor_t = yes; then
14034 cat >>confdefs.h <<_ACEOF
14035 #define minor_t int
14040 echo "$as_me:$LINENO: checking for ssize_t" >&5
14041 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
14042 if test "${ac_cv_type_ssize_t+set}" = set; then
14043 echo $ECHO_N "(cached) $ECHO_C" >&6
14045 cat >conftest.$ac_ext <<_ACEOF
14048 cat confdefs.h >>conftest.$ac_ext
14049 cat >>conftest.$ac_ext <<_ACEOF
14050 /* end confdefs.h. */
14051 $ac_includes_default
14057 if (sizeof (ssize_t))
14063 rm -f conftest.$ac_objext
14064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14065 (eval $ac_compile) 2>conftest.er1
14067 grep -v '^ *+' conftest.er1 >conftest.err
14069 cat conftest.err >&5
14070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14071 (exit $ac_status); } &&
14072 { ac_try='test -z "$ac_c_werror_flag"
14073 || test ! -s conftest.err'
14074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14075 (eval $ac_try) 2>&5
14077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14078 (exit $ac_status); }; } &&
14079 { ac_try='test -s conftest.$ac_objext'
14080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14081 (eval $ac_try) 2>&5
14083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14084 (exit $ac_status); }; }; then
14085 ac_cv_type_ssize_t=yes
14087 echo "$as_me: failed program was:" >&5
14088 sed 's/^/| /' conftest.$ac_ext >&5
14090 ac_cv_type_ssize_t=no
14092 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14094 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
14095 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
14096 if test $ac_cv_type_ssize_t = yes; then
14100 cat >>confdefs.h <<_ACEOF
14101 #define ssize_t int
14106 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
14107 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
14108 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
14109 echo $ECHO_N "(cached) $ECHO_C" >&6
14111 cat >conftest.$ac_ext <<_ACEOF
14114 cat confdefs.h >>conftest.$ac_ext
14115 cat >>conftest.$ac_ext <<_ACEOF
14116 /* end confdefs.h. */
14117 $ac_includes_default
14121 static struct stat ac_aggr;
14122 if (ac_aggr.st_blocks)
14128 rm -f conftest.$ac_objext
14129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14130 (eval $ac_compile) 2>conftest.er1
14132 grep -v '^ *+' conftest.er1 >conftest.err
14134 cat conftest.err >&5
14135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14136 (exit $ac_status); } &&
14137 { ac_try='test -z "$ac_c_werror_flag"
14138 || test ! -s conftest.err'
14139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14140 (eval $ac_try) 2>&5
14142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14143 (exit $ac_status); }; } &&
14144 { ac_try='test -s conftest.$ac_objext'
14145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14146 (eval $ac_try) 2>&5
14148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14149 (exit $ac_status); }; }; then
14150 ac_cv_member_struct_stat_st_blocks=yes
14152 echo "$as_me: failed program was:" >&5
14153 sed 's/^/| /' conftest.$ac_ext >&5
14155 cat >conftest.$ac_ext <<_ACEOF
14158 cat confdefs.h >>conftest.$ac_ext
14159 cat >>conftest.$ac_ext <<_ACEOF
14160 /* end confdefs.h. */
14161 $ac_includes_default
14165 static struct stat ac_aggr;
14166 if (sizeof ac_aggr.st_blocks)
14172 rm -f conftest.$ac_objext
14173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14174 (eval $ac_compile) 2>conftest.er1
14176 grep -v '^ *+' conftest.er1 >conftest.err
14178 cat conftest.err >&5
14179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14180 (exit $ac_status); } &&
14181 { ac_try='test -z "$ac_c_werror_flag"
14182 || test ! -s conftest.err'
14183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14184 (eval $ac_try) 2>&5
14186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14187 (exit $ac_status); }; } &&
14188 { ac_try='test -s conftest.$ac_objext'
14189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14190 (eval $ac_try) 2>&5
14192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14193 (exit $ac_status); }; }; then
14194 ac_cv_member_struct_stat_st_blocks=yes
14196 echo "$as_me: failed program was:" >&5
14197 sed 's/^/| /' conftest.$ac_ext >&5
14199 ac_cv_member_struct_stat_st_blocks=no
14201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14205 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
14206 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
14207 if test $ac_cv_member_struct_stat_st_blocks = yes; then
14209 cat >>confdefs.h <<_ACEOF
14210 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
14214 cat >>confdefs.h <<\_ACEOF
14215 #define HAVE_ST_BLOCKS 1
14220 "fileblocks.$ac_objext" | \
14221 *" fileblocks.$ac_objext" | \
14222 "fileblocks.$ac_objext "* | \
14223 *" fileblocks.$ac_objext "* ) ;;
14224 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
14231 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
14232 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
14233 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
14234 echo $ECHO_N "(cached) $ECHO_C" >&6
14236 cat >conftest.$ac_ext <<_ACEOF
14239 cat confdefs.h >>conftest.$ac_ext
14240 cat >>conftest.$ac_ext <<_ACEOF
14241 /* end confdefs.h. */
14242 $ac_includes_default
14246 static struct stat ac_aggr;
14247 if (ac_aggr.st_rdev)
14253 rm -f conftest.$ac_objext
14254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14255 (eval $ac_compile) 2>conftest.er1
14257 grep -v '^ *+' conftest.er1 >conftest.err
14259 cat conftest.err >&5
14260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14261 (exit $ac_status); } &&
14262 { ac_try='test -z "$ac_c_werror_flag"
14263 || test ! -s conftest.err'
14264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14265 (eval $ac_try) 2>&5
14267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14268 (exit $ac_status); }; } &&
14269 { ac_try='test -s conftest.$ac_objext'
14270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14271 (eval $ac_try) 2>&5
14273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14274 (exit $ac_status); }; }; then
14275 ac_cv_member_struct_stat_st_rdev=yes
14277 echo "$as_me: failed program was:" >&5
14278 sed 's/^/| /' conftest.$ac_ext >&5
14280 cat >conftest.$ac_ext <<_ACEOF
14283 cat confdefs.h >>conftest.$ac_ext
14284 cat >>conftest.$ac_ext <<_ACEOF
14285 /* end confdefs.h. */
14286 $ac_includes_default
14290 static struct stat ac_aggr;
14291 if (sizeof ac_aggr.st_rdev)
14297 rm -f conftest.$ac_objext
14298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14299 (eval $ac_compile) 2>conftest.er1
14301 grep -v '^ *+' conftest.er1 >conftest.err
14303 cat conftest.err >&5
14304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14305 (exit $ac_status); } &&
14306 { ac_try='test -z "$ac_c_werror_flag"
14307 || test ! -s conftest.err'
14308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14309 (eval $ac_try) 2>&5
14311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14312 (exit $ac_status); }; } &&
14313 { ac_try='test -s conftest.$ac_objext'
14314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14315 (eval $ac_try) 2>&5
14317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14318 (exit $ac_status); }; }; then
14319 ac_cv_member_struct_stat_st_rdev=yes
14321 echo "$as_me: failed program was:" >&5
14322 sed 's/^/| /' conftest.$ac_ext >&5
14324 ac_cv_member_struct_stat_st_rdev=no
14326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14328 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14330 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
14331 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
14332 if test $ac_cv_member_struct_stat_st_rdev = yes; then
14334 cat >>confdefs.h <<_ACEOF
14335 #define HAVE_STRUCT_STAT_ST_RDEV 1
14339 cat >>confdefs.h <<\_ACEOF
14340 #define HAVE_ST_RDEV 1
14346 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
14347 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
14348 if test "${ac_cv_struct_tm+set}" = set; then
14349 echo $ECHO_N "(cached) $ECHO_C" >&6
14351 cat >conftest.$ac_ext <<_ACEOF
14354 cat confdefs.h >>conftest.$ac_ext
14355 cat >>conftest.$ac_ext <<_ACEOF
14356 /* end confdefs.h. */
14357 #include <sys/types.h>
14363 struct tm *tp; tp->tm_sec;
14368 rm -f conftest.$ac_objext
14369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14370 (eval $ac_compile) 2>conftest.er1
14372 grep -v '^ *+' conftest.er1 >conftest.err
14374 cat conftest.err >&5
14375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14376 (exit $ac_status); } &&
14377 { ac_try='test -z "$ac_c_werror_flag"
14378 || test ! -s conftest.err'
14379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14380 (eval $ac_try) 2>&5
14382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14383 (exit $ac_status); }; } &&
14384 { ac_try='test -s conftest.$ac_objext'
14385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14386 (eval $ac_try) 2>&5
14388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14389 (exit $ac_status); }; }; then
14390 ac_cv_struct_tm=time.h
14392 echo "$as_me: failed program was:" >&5
14393 sed 's/^/| /' conftest.$ac_ext >&5
14395 ac_cv_struct_tm=sys/time.h
14397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14399 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
14400 echo "${ECHO_T}$ac_cv_struct_tm" >&6
14401 if test $ac_cv_struct_tm = sys/time.h; then
14403 cat >>confdefs.h <<\_ACEOF
14404 #define TM_IN_SYS_TIME 1
14409 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14410 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14411 if test "${ac_cv_c_const+set}" = set; then
14412 echo $ECHO_N "(cached) $ECHO_C" >&6
14414 cat >conftest.$ac_ext <<_ACEOF
14417 cat confdefs.h >>conftest.$ac_ext
14418 cat >>conftest.$ac_ext <<_ACEOF
14419 /* end confdefs.h. */
14424 /* FIXME: Include the comments suggested by Paul. */
14425 #ifndef __cplusplus
14426 /* Ultrix mips cc rejects this. */
14427 typedef int charset[2];
14429 /* SunOS 4.1.1 cc rejects this. */
14430 char const *const *ccp;
14432 /* NEC SVR4.0.2 mips cc rejects this. */
14433 struct point {int x, y;};
14434 static struct point const zero = {0,0};
14435 /* AIX XL C 1.02.0.0 rejects this.
14436 It does not let you subtract one const X* pointer from another in
14437 an arm of an if-expression whose if-part is not a constant
14439 const char *g = "string";
14440 ccp = &g + (g ? g-g : 0);
14441 /* HPUX 7.0 cc rejects these. */
14444 ccp = (char const *const *) p;
14445 { /* SCO 3.2v4 cc rejects this. */
14447 char const *s = 0 ? (char *) 0 : (char const *) 0;
14451 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14452 int x[] = {25, 17};
14453 const int *foo = &x[0];
14456 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14457 typedef const int *iptr;
14461 { /* AIX XL C 1.02.0.0 rejects this saying
14462 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14463 struct s { int j; const int *ap[3]; };
14464 struct s *b; b->j = 5;
14466 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14467 const int foo = 10;
14475 rm -f conftest.$ac_objext
14476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14477 (eval $ac_compile) 2>conftest.er1
14479 grep -v '^ *+' conftest.er1 >conftest.err
14481 cat conftest.err >&5
14482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14483 (exit $ac_status); } &&
14484 { ac_try='test -z "$ac_c_werror_flag"
14485 || test ! -s conftest.err'
14486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14487 (eval $ac_try) 2>&5
14489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14490 (exit $ac_status); }; } &&
14491 { ac_try='test -s conftest.$ac_objext'
14492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14493 (eval $ac_try) 2>&5
14495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14496 (exit $ac_status); }; }; then
14499 echo "$as_me: failed program was:" >&5
14500 sed 's/^/| /' conftest.$ac_ext >&5
14504 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14506 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14507 echo "${ECHO_T}$ac_cv_c_const" >&6
14508 if test $ac_cv_c_const = no; then
14510 cat >>confdefs.h <<\_ACEOF
14518 echo "$as_me:$LINENO: checking for char" >&5
14519 echo $ECHO_N "checking for char... $ECHO_C" >&6
14520 if test "${ac_cv_type_char+set}" = set; then
14521 echo $ECHO_N "(cached) $ECHO_C" >&6
14523 cat >conftest.$ac_ext <<_ACEOF
14526 cat confdefs.h >>conftest.$ac_ext
14527 cat >>conftest.$ac_ext <<_ACEOF
14528 /* end confdefs.h. */
14529 $ac_includes_default
14541 rm -f conftest.$ac_objext
14542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14543 (eval $ac_compile) 2>conftest.er1
14545 grep -v '^ *+' conftest.er1 >conftest.err
14547 cat conftest.err >&5
14548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14549 (exit $ac_status); } &&
14550 { ac_try='test -z "$ac_c_werror_flag"
14551 || test ! -s conftest.err'
14552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14553 (eval $ac_try) 2>&5
14555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14556 (exit $ac_status); }; } &&
14557 { ac_try='test -s conftest.$ac_objext'
14558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14559 (eval $ac_try) 2>&5
14561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14562 (exit $ac_status); }; }; then
14563 ac_cv_type_char=yes
14565 echo "$as_me: failed program was:" >&5
14566 sed 's/^/| /' conftest.$ac_ext >&5
14570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14572 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14573 echo "${ECHO_T}$ac_cv_type_char" >&6
14575 echo "$as_me:$LINENO: checking size of char" >&5
14576 echo $ECHO_N "checking size of char... $ECHO_C" >&6
14577 if test "${ac_cv_sizeof_char+set}" = set; then
14578 echo $ECHO_N "(cached) $ECHO_C" >&6
14580 if test "$ac_cv_type_char" = yes; then
14581 # The cast to unsigned long works around a bug in the HP C Compiler
14582 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14583 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14584 # This bug is HP SR number 8606223364.
14585 if test "$cross_compiling" = yes; then
14586 # Depending upon the size, compute the lo and hi bounds.
14587 cat >conftest.$ac_ext <<_ACEOF
14590 cat confdefs.h >>conftest.$ac_ext
14591 cat >>conftest.$ac_ext <<_ACEOF
14592 /* end confdefs.h. */
14593 $ac_includes_default
14597 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
14604 rm -f conftest.$ac_objext
14605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14606 (eval $ac_compile) 2>conftest.er1
14608 grep -v '^ *+' conftest.er1 >conftest.err
14610 cat conftest.err >&5
14611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14612 (exit $ac_status); } &&
14613 { ac_try='test -z "$ac_c_werror_flag"
14614 || test ! -s conftest.err'
14615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14616 (eval $ac_try) 2>&5
14618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14619 (exit $ac_status); }; } &&
14620 { ac_try='test -s conftest.$ac_objext'
14621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14622 (eval $ac_try) 2>&5
14624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14625 (exit $ac_status); }; }; then
14628 cat >conftest.$ac_ext <<_ACEOF
14631 cat confdefs.h >>conftest.$ac_ext
14632 cat >>conftest.$ac_ext <<_ACEOF
14633 /* end confdefs.h. */
14634 $ac_includes_default
14638 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14645 rm -f conftest.$ac_objext
14646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14647 (eval $ac_compile) 2>conftest.er1
14649 grep -v '^ *+' conftest.er1 >conftest.err
14651 cat conftest.err >&5
14652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14653 (exit $ac_status); } &&
14654 { ac_try='test -z "$ac_c_werror_flag"
14655 || test ! -s conftest.err'
14656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14657 (eval $ac_try) 2>&5
14659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14660 (exit $ac_status); }; } &&
14661 { ac_try='test -s conftest.$ac_objext'
14662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14663 (eval $ac_try) 2>&5
14665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14666 (exit $ac_status); }; }; then
14667 ac_hi=$ac_mid; break
14669 echo "$as_me: failed program was:" >&5
14670 sed 's/^/| /' conftest.$ac_ext >&5
14672 ac_lo=`expr $ac_mid + 1`
14673 if test $ac_lo -le $ac_mid; then
14677 ac_mid=`expr 2 '*' $ac_mid + 1`
14679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14682 echo "$as_me: failed program was:" >&5
14683 sed 's/^/| /' conftest.$ac_ext >&5
14685 cat >conftest.$ac_ext <<_ACEOF
14688 cat confdefs.h >>conftest.$ac_ext
14689 cat >>conftest.$ac_ext <<_ACEOF
14690 /* end confdefs.h. */
14691 $ac_includes_default
14695 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
14702 rm -f conftest.$ac_objext
14703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14704 (eval $ac_compile) 2>conftest.er1
14706 grep -v '^ *+' conftest.er1 >conftest.err
14708 cat conftest.err >&5
14709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14710 (exit $ac_status); } &&
14711 { ac_try='test -z "$ac_c_werror_flag"
14712 || test ! -s conftest.err'
14713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14714 (eval $ac_try) 2>&5
14716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14717 (exit $ac_status); }; } &&
14718 { ac_try='test -s conftest.$ac_objext'
14719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14720 (eval $ac_try) 2>&5
14722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14723 (exit $ac_status); }; }; then
14726 cat >conftest.$ac_ext <<_ACEOF
14729 cat confdefs.h >>conftest.$ac_ext
14730 cat >>conftest.$ac_ext <<_ACEOF
14731 /* end confdefs.h. */
14732 $ac_includes_default
14736 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
14743 rm -f conftest.$ac_objext
14744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14745 (eval $ac_compile) 2>conftest.er1
14747 grep -v '^ *+' conftest.er1 >conftest.err
14749 cat conftest.err >&5
14750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14751 (exit $ac_status); } &&
14752 { ac_try='test -z "$ac_c_werror_flag"
14753 || test ! -s conftest.err'
14754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14755 (eval $ac_try) 2>&5
14757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14758 (exit $ac_status); }; } &&
14759 { ac_try='test -s conftest.$ac_objext'
14760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14761 (eval $ac_try) 2>&5
14763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14764 (exit $ac_status); }; }; then
14765 ac_lo=$ac_mid; break
14767 echo "$as_me: failed program was:" >&5
14768 sed 's/^/| /' conftest.$ac_ext >&5
14770 ac_hi=`expr '(' $ac_mid ')' - 1`
14771 if test $ac_mid -le $ac_hi; then
14775 ac_mid=`expr 2 '*' $ac_mid`
14777 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14780 echo "$as_me: failed program was:" >&5
14781 sed 's/^/| /' conftest.$ac_ext >&5
14785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14787 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14788 # Binary search between lo and hi bounds.
14789 while test "x$ac_lo" != "x$ac_hi"; do
14790 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14791 cat >conftest.$ac_ext <<_ACEOF
14794 cat confdefs.h >>conftest.$ac_ext
14795 cat >>conftest.$ac_ext <<_ACEOF
14796 /* end confdefs.h. */
14797 $ac_includes_default
14801 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14808 rm -f conftest.$ac_objext
14809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14810 (eval $ac_compile) 2>conftest.er1
14812 grep -v '^ *+' conftest.er1 >conftest.err
14814 cat conftest.err >&5
14815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14816 (exit $ac_status); } &&
14817 { ac_try='test -z "$ac_c_werror_flag"
14818 || test ! -s conftest.err'
14819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14820 (eval $ac_try) 2>&5
14822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14823 (exit $ac_status); }; } &&
14824 { ac_try='test -s conftest.$ac_objext'
14825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14826 (eval $ac_try) 2>&5
14828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14829 (exit $ac_status); }; }; then
14832 echo "$as_me: failed program was:" >&5
14833 sed 's/^/| /' conftest.$ac_ext >&5
14835 ac_lo=`expr '(' $ac_mid ')' + 1`
14837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14840 ?*) ac_cv_sizeof_char=$ac_lo;;
14841 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14842 See \`config.log' for more details." >&5
14843 echo "$as_me: error: cannot compute sizeof (char), 77
14844 See \`config.log' for more details." >&2;}
14845 { (exit 1); exit 1; }; } ;;
14848 if test "$cross_compiling" = yes; then
14849 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14850 See \`config.log' for more details." >&5
14851 echo "$as_me: error: cannot run test program while cross compiling
14852 See \`config.log' for more details." >&2;}
14853 { (exit 1); exit 1; }; }
14855 cat >conftest.$ac_ext <<_ACEOF
14858 cat confdefs.h >>conftest.$ac_ext
14859 cat >>conftest.$ac_ext <<_ACEOF
14860 /* end confdefs.h. */
14861 $ac_includes_default
14862 long longval () { return (long) (sizeof (char)); }
14863 unsigned long ulongval () { return (long) (sizeof (char)); }
14865 #include <stdlib.h>
14870 FILE *f = fopen ("conftest.val", "w");
14873 if (((long) (sizeof (char))) < 0)
14875 long i = longval ();
14876 if (i != ((long) (sizeof (char))))
14878 fprintf (f, "%ld\n", i);
14882 unsigned long i = ulongval ();
14883 if (i != ((long) (sizeof (char))))
14885 fprintf (f, "%lu\n", i);
14887 exit (ferror (f) || fclose (f) != 0);
14893 rm -f conftest$ac_exeext
14894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14895 (eval $ac_link) 2>&5
14897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14898 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14900 (eval $ac_try) 2>&5
14902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14903 (exit $ac_status); }; }; then
14904 ac_cv_sizeof_char=`cat conftest.val`
14906 echo "$as_me: program exited with status $ac_status" >&5
14907 echo "$as_me: failed program was:" >&5
14908 sed 's/^/| /' conftest.$ac_ext >&5
14910 ( exit $ac_status )
14911 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14912 See \`config.log' for more details." >&5
14913 echo "$as_me: error: cannot compute sizeof (char), 77
14914 See \`config.log' for more details." >&2;}
14915 { (exit 1); exit 1; }; }
14917 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14922 ac_cv_sizeof_char=0
14925 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14926 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14927 cat >>confdefs.h <<_ACEOF
14928 #define SIZEOF_CHAR $ac_cv_sizeof_char
14932 echo "$as_me:$LINENO: checking for short int" >&5
14933 echo $ECHO_N "checking for short int... $ECHO_C" >&6
14934 if test "${ac_cv_type_short_int+set}" = set; then
14935 echo $ECHO_N "(cached) $ECHO_C" >&6
14937 cat >conftest.$ac_ext <<_ACEOF
14940 cat confdefs.h >>conftest.$ac_ext
14941 cat >>conftest.$ac_ext <<_ACEOF
14942 /* end confdefs.h. */
14943 $ac_includes_default
14947 if ((short int *) 0)
14949 if (sizeof (short int))
14955 rm -f conftest.$ac_objext
14956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14957 (eval $ac_compile) 2>conftest.er1
14959 grep -v '^ *+' conftest.er1 >conftest.err
14961 cat conftest.err >&5
14962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14963 (exit $ac_status); } &&
14964 { ac_try='test -z "$ac_c_werror_flag"
14965 || test ! -s conftest.err'
14966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14967 (eval $ac_try) 2>&5
14969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14970 (exit $ac_status); }; } &&
14971 { ac_try='test -s conftest.$ac_objext'
14972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14973 (eval $ac_try) 2>&5
14975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14976 (exit $ac_status); }; }; then
14977 ac_cv_type_short_int=yes
14979 echo "$as_me: failed program was:" >&5
14980 sed 's/^/| /' conftest.$ac_ext >&5
14982 ac_cv_type_short_int=no
14984 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14986 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
14987 echo "${ECHO_T}$ac_cv_type_short_int" >&6
14989 echo "$as_me:$LINENO: checking size of short int" >&5
14990 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
14991 if test "${ac_cv_sizeof_short_int+set}" = set; then
14992 echo $ECHO_N "(cached) $ECHO_C" >&6
14994 if test "$ac_cv_type_short_int" = yes; then
14995 # The cast to unsigned long works around a bug in the HP C Compiler
14996 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14997 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14998 # This bug is HP SR number 8606223364.
14999 if test "$cross_compiling" = yes; then
15000 # Depending upon the size, compute the lo and hi bounds.
15001 cat >conftest.$ac_ext <<_ACEOF
15004 cat confdefs.h >>conftest.$ac_ext
15005 cat >>conftest.$ac_ext <<_ACEOF
15006 /* end confdefs.h. */
15007 $ac_includes_default
15011 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
15018 rm -f conftest.$ac_objext
15019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15020 (eval $ac_compile) 2>conftest.er1
15022 grep -v '^ *+' conftest.er1 >conftest.err
15024 cat conftest.err >&5
15025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15026 (exit $ac_status); } &&
15027 { ac_try='test -z "$ac_c_werror_flag"
15028 || test ! -s conftest.err'
15029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15030 (eval $ac_try) 2>&5
15032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15033 (exit $ac_status); }; } &&
15034 { ac_try='test -s conftest.$ac_objext'
15035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15036 (eval $ac_try) 2>&5
15038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15039 (exit $ac_status); }; }; then
15042 cat >conftest.$ac_ext <<_ACEOF
15045 cat confdefs.h >>conftest.$ac_ext
15046 cat >>conftest.$ac_ext <<_ACEOF
15047 /* end confdefs.h. */
15048 $ac_includes_default
15052 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
15059 rm -f conftest.$ac_objext
15060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15061 (eval $ac_compile) 2>conftest.er1
15063 grep -v '^ *+' conftest.er1 >conftest.err
15065 cat conftest.err >&5
15066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15067 (exit $ac_status); } &&
15068 { ac_try='test -z "$ac_c_werror_flag"
15069 || test ! -s conftest.err'
15070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15071 (eval $ac_try) 2>&5
15073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15074 (exit $ac_status); }; } &&
15075 { ac_try='test -s conftest.$ac_objext'
15076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15077 (eval $ac_try) 2>&5
15079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15080 (exit $ac_status); }; }; then
15081 ac_hi=$ac_mid; break
15083 echo "$as_me: failed program was:" >&5
15084 sed 's/^/| /' conftest.$ac_ext >&5
15086 ac_lo=`expr $ac_mid + 1`
15087 if test $ac_lo -le $ac_mid; then
15091 ac_mid=`expr 2 '*' $ac_mid + 1`
15093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15096 echo "$as_me: failed program was:" >&5
15097 sed 's/^/| /' conftest.$ac_ext >&5
15099 cat >conftest.$ac_ext <<_ACEOF
15102 cat confdefs.h >>conftest.$ac_ext
15103 cat >>conftest.$ac_ext <<_ACEOF
15104 /* end confdefs.h. */
15105 $ac_includes_default
15109 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
15116 rm -f conftest.$ac_objext
15117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15118 (eval $ac_compile) 2>conftest.er1
15120 grep -v '^ *+' conftest.er1 >conftest.err
15122 cat conftest.err >&5
15123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15124 (exit $ac_status); } &&
15125 { ac_try='test -z "$ac_c_werror_flag"
15126 || test ! -s conftest.err'
15127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15128 (eval $ac_try) 2>&5
15130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15131 (exit $ac_status); }; } &&
15132 { ac_try='test -s conftest.$ac_objext'
15133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15134 (eval $ac_try) 2>&5
15136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15137 (exit $ac_status); }; }; then
15140 cat >conftest.$ac_ext <<_ACEOF
15143 cat confdefs.h >>conftest.$ac_ext
15144 cat >>conftest.$ac_ext <<_ACEOF
15145 /* end confdefs.h. */
15146 $ac_includes_default
15150 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
15157 rm -f conftest.$ac_objext
15158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15159 (eval $ac_compile) 2>conftest.er1
15161 grep -v '^ *+' conftest.er1 >conftest.err
15163 cat conftest.err >&5
15164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15165 (exit $ac_status); } &&
15166 { ac_try='test -z "$ac_c_werror_flag"
15167 || test ! -s conftest.err'
15168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15169 (eval $ac_try) 2>&5
15171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15172 (exit $ac_status); }; } &&
15173 { ac_try='test -s conftest.$ac_objext'
15174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15175 (eval $ac_try) 2>&5
15177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15178 (exit $ac_status); }; }; then
15179 ac_lo=$ac_mid; break
15181 echo "$as_me: failed program was:" >&5
15182 sed 's/^/| /' conftest.$ac_ext >&5
15184 ac_hi=`expr '(' $ac_mid ')' - 1`
15185 if test $ac_mid -le $ac_hi; then
15189 ac_mid=`expr 2 '*' $ac_mid`
15191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15194 echo "$as_me: failed program was:" >&5
15195 sed 's/^/| /' conftest.$ac_ext >&5
15199 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15202 # Binary search between lo and hi bounds.
15203 while test "x$ac_lo" != "x$ac_hi"; do
15204 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15205 cat >conftest.$ac_ext <<_ACEOF
15208 cat confdefs.h >>conftest.$ac_ext
15209 cat >>conftest.$ac_ext <<_ACEOF
15210 /* end confdefs.h. */
15211 $ac_includes_default
15215 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
15222 rm -f conftest.$ac_objext
15223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15224 (eval $ac_compile) 2>conftest.er1
15226 grep -v '^ *+' conftest.er1 >conftest.err
15228 cat conftest.err >&5
15229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15230 (exit $ac_status); } &&
15231 { ac_try='test -z "$ac_c_werror_flag"
15232 || test ! -s conftest.err'
15233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15234 (eval $ac_try) 2>&5
15236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15237 (exit $ac_status); }; } &&
15238 { ac_try='test -s conftest.$ac_objext'
15239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15240 (eval $ac_try) 2>&5
15242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15243 (exit $ac_status); }; }; then
15246 echo "$as_me: failed program was:" >&5
15247 sed 's/^/| /' conftest.$ac_ext >&5
15249 ac_lo=`expr '(' $ac_mid ')' + 1`
15251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15254 ?*) ac_cv_sizeof_short_int=$ac_lo;;
15255 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
15256 See \`config.log' for more details." >&5
15257 echo "$as_me: error: cannot compute sizeof (short int), 77
15258 See \`config.log' for more details." >&2;}
15259 { (exit 1); exit 1; }; } ;;
15262 if test "$cross_compiling" = yes; then
15263 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15264 See \`config.log' for more details." >&5
15265 echo "$as_me: error: cannot run test program while cross compiling
15266 See \`config.log' for more details." >&2;}
15267 { (exit 1); exit 1; }; }
15269 cat >conftest.$ac_ext <<_ACEOF
15272 cat confdefs.h >>conftest.$ac_ext
15273 cat >>conftest.$ac_ext <<_ACEOF
15274 /* end confdefs.h. */
15275 $ac_includes_default
15276 long longval () { return (long) (sizeof (short int)); }
15277 unsigned long ulongval () { return (long) (sizeof (short int)); }
15279 #include <stdlib.h>
15284 FILE *f = fopen ("conftest.val", "w");
15287 if (((long) (sizeof (short int))) < 0)
15289 long i = longval ();
15290 if (i != ((long) (sizeof (short int))))
15292 fprintf (f, "%ld\n", i);
15296 unsigned long i = ulongval ();
15297 if (i != ((long) (sizeof (short int))))
15299 fprintf (f, "%lu\n", i);
15301 exit (ferror (f) || fclose (f) != 0);
15307 rm -f conftest$ac_exeext
15308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15309 (eval $ac_link) 2>&5
15311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15312 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15314 (eval $ac_try) 2>&5
15316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15317 (exit $ac_status); }; }; then
15318 ac_cv_sizeof_short_int=`cat conftest.val`
15320 echo "$as_me: program exited with status $ac_status" >&5
15321 echo "$as_me: failed program was:" >&5
15322 sed 's/^/| /' conftest.$ac_ext >&5
15324 ( exit $ac_status )
15325 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
15326 See \`config.log' for more details." >&5
15327 echo "$as_me: error: cannot compute sizeof (short int), 77
15328 See \`config.log' for more details." >&2;}
15329 { (exit 1); exit 1; }; }
15331 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15336 ac_cv_sizeof_short_int=0
15339 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
15340 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
15341 cat >>confdefs.h <<_ACEOF
15342 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
15346 echo "$as_me:$LINENO: checking for int" >&5
15347 echo $ECHO_N "checking for int... $ECHO_C" >&6
15348 if test "${ac_cv_type_int+set}" = set; then
15349 echo $ECHO_N "(cached) $ECHO_C" >&6
15351 cat >conftest.$ac_ext <<_ACEOF
15354 cat confdefs.h >>conftest.$ac_ext
15355 cat >>conftest.$ac_ext <<_ACEOF
15356 /* end confdefs.h. */
15357 $ac_includes_default
15369 rm -f conftest.$ac_objext
15370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15371 (eval $ac_compile) 2>conftest.er1
15373 grep -v '^ *+' conftest.er1 >conftest.err
15375 cat conftest.err >&5
15376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15377 (exit $ac_status); } &&
15378 { ac_try='test -z "$ac_c_werror_flag"
15379 || test ! -s conftest.err'
15380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15381 (eval $ac_try) 2>&5
15383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15384 (exit $ac_status); }; } &&
15385 { ac_try='test -s conftest.$ac_objext'
15386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15387 (eval $ac_try) 2>&5
15389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15390 (exit $ac_status); }; }; then
15393 echo "$as_me: failed program was:" >&5
15394 sed 's/^/| /' conftest.$ac_ext >&5
15398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15400 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15401 echo "${ECHO_T}$ac_cv_type_int" >&6
15403 echo "$as_me:$LINENO: checking size of int" >&5
15404 echo $ECHO_N "checking size of int... $ECHO_C" >&6
15405 if test "${ac_cv_sizeof_int+set}" = set; then
15406 echo $ECHO_N "(cached) $ECHO_C" >&6
15408 if test "$ac_cv_type_int" = yes; then
15409 # The cast to unsigned long works around a bug in the HP C Compiler
15410 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15411 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15412 # This bug is HP SR number 8606223364.
15413 if test "$cross_compiling" = yes; then
15414 # Depending upon the size, compute the lo and hi bounds.
15415 cat >conftest.$ac_ext <<_ACEOF
15418 cat confdefs.h >>conftest.$ac_ext
15419 cat >>conftest.$ac_ext <<_ACEOF
15420 /* end confdefs.h. */
15421 $ac_includes_default
15425 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15432 rm -f conftest.$ac_objext
15433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15434 (eval $ac_compile) 2>conftest.er1
15436 grep -v '^ *+' conftest.er1 >conftest.err
15438 cat conftest.err >&5
15439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15440 (exit $ac_status); } &&
15441 { ac_try='test -z "$ac_c_werror_flag"
15442 || test ! -s conftest.err'
15443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15444 (eval $ac_try) 2>&5
15446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15447 (exit $ac_status); }; } &&
15448 { ac_try='test -s conftest.$ac_objext'
15449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15450 (eval $ac_try) 2>&5
15452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15453 (exit $ac_status); }; }; then
15456 cat >conftest.$ac_ext <<_ACEOF
15459 cat confdefs.h >>conftest.$ac_ext
15460 cat >>conftest.$ac_ext <<_ACEOF
15461 /* end confdefs.h. */
15462 $ac_includes_default
15466 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15473 rm -f conftest.$ac_objext
15474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15475 (eval $ac_compile) 2>conftest.er1
15477 grep -v '^ *+' conftest.er1 >conftest.err
15479 cat conftest.err >&5
15480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15481 (exit $ac_status); } &&
15482 { ac_try='test -z "$ac_c_werror_flag"
15483 || test ! -s conftest.err'
15484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15485 (eval $ac_try) 2>&5
15487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15488 (exit $ac_status); }; } &&
15489 { ac_try='test -s conftest.$ac_objext'
15490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15491 (eval $ac_try) 2>&5
15493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15494 (exit $ac_status); }; }; then
15495 ac_hi=$ac_mid; break
15497 echo "$as_me: failed program was:" >&5
15498 sed 's/^/| /' conftest.$ac_ext >&5
15500 ac_lo=`expr $ac_mid + 1`
15501 if test $ac_lo -le $ac_mid; then
15505 ac_mid=`expr 2 '*' $ac_mid + 1`
15507 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15510 echo "$as_me: failed program was:" >&5
15511 sed 's/^/| /' conftest.$ac_ext >&5
15513 cat >conftest.$ac_ext <<_ACEOF
15516 cat confdefs.h >>conftest.$ac_ext
15517 cat >>conftest.$ac_ext <<_ACEOF
15518 /* end confdefs.h. */
15519 $ac_includes_default
15523 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15530 rm -f conftest.$ac_objext
15531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15532 (eval $ac_compile) 2>conftest.er1
15534 grep -v '^ *+' conftest.er1 >conftest.err
15536 cat conftest.err >&5
15537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15538 (exit $ac_status); } &&
15539 { ac_try='test -z "$ac_c_werror_flag"
15540 || test ! -s conftest.err'
15541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15542 (eval $ac_try) 2>&5
15544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15545 (exit $ac_status); }; } &&
15546 { ac_try='test -s conftest.$ac_objext'
15547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15548 (eval $ac_try) 2>&5
15550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15551 (exit $ac_status); }; }; then
15554 cat >conftest.$ac_ext <<_ACEOF
15557 cat confdefs.h >>conftest.$ac_ext
15558 cat >>conftest.$ac_ext <<_ACEOF
15559 /* end confdefs.h. */
15560 $ac_includes_default
15564 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15571 rm -f conftest.$ac_objext
15572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15573 (eval $ac_compile) 2>conftest.er1
15575 grep -v '^ *+' conftest.er1 >conftest.err
15577 cat conftest.err >&5
15578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15579 (exit $ac_status); } &&
15580 { ac_try='test -z "$ac_c_werror_flag"
15581 || test ! -s conftest.err'
15582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15583 (eval $ac_try) 2>&5
15585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15586 (exit $ac_status); }; } &&
15587 { ac_try='test -s conftest.$ac_objext'
15588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15589 (eval $ac_try) 2>&5
15591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15592 (exit $ac_status); }; }; then
15593 ac_lo=$ac_mid; break
15595 echo "$as_me: failed program was:" >&5
15596 sed 's/^/| /' conftest.$ac_ext >&5
15598 ac_hi=`expr '(' $ac_mid ')' - 1`
15599 if test $ac_mid -le $ac_hi; then
15603 ac_mid=`expr 2 '*' $ac_mid`
15605 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15608 echo "$as_me: failed program was:" >&5
15609 sed 's/^/| /' conftest.$ac_ext >&5
15613 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15615 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15616 # Binary search between lo and hi bounds.
15617 while test "x$ac_lo" != "x$ac_hi"; do
15618 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15619 cat >conftest.$ac_ext <<_ACEOF
15622 cat confdefs.h >>conftest.$ac_ext
15623 cat >>conftest.$ac_ext <<_ACEOF
15624 /* end confdefs.h. */
15625 $ac_includes_default
15629 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15636 rm -f conftest.$ac_objext
15637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15638 (eval $ac_compile) 2>conftest.er1
15640 grep -v '^ *+' conftest.er1 >conftest.err
15642 cat conftest.err >&5
15643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15644 (exit $ac_status); } &&
15645 { ac_try='test -z "$ac_c_werror_flag"
15646 || test ! -s conftest.err'
15647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15648 (eval $ac_try) 2>&5
15650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15651 (exit $ac_status); }; } &&
15652 { ac_try='test -s conftest.$ac_objext'
15653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15654 (eval $ac_try) 2>&5
15656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15657 (exit $ac_status); }; }; then
15660 echo "$as_me: failed program was:" >&5
15661 sed 's/^/| /' conftest.$ac_ext >&5
15663 ac_lo=`expr '(' $ac_mid ')' + 1`
15665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15668 ?*) ac_cv_sizeof_int=$ac_lo;;
15669 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15670 See \`config.log' for more details." >&5
15671 echo "$as_me: error: cannot compute sizeof (int), 77
15672 See \`config.log' for more details." >&2;}
15673 { (exit 1); exit 1; }; } ;;
15676 if test "$cross_compiling" = yes; then
15677 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15678 See \`config.log' for more details." >&5
15679 echo "$as_me: error: cannot run test program while cross compiling
15680 See \`config.log' for more details." >&2;}
15681 { (exit 1); exit 1; }; }
15683 cat >conftest.$ac_ext <<_ACEOF
15686 cat confdefs.h >>conftest.$ac_ext
15687 cat >>conftest.$ac_ext <<_ACEOF
15688 /* end confdefs.h. */
15689 $ac_includes_default
15690 long longval () { return (long) (sizeof (int)); }
15691 unsigned long ulongval () { return (long) (sizeof (int)); }
15693 #include <stdlib.h>
15698 FILE *f = fopen ("conftest.val", "w");
15701 if (((long) (sizeof (int))) < 0)
15703 long i = longval ();
15704 if (i != ((long) (sizeof (int))))
15706 fprintf (f, "%ld\n", i);
15710 unsigned long i = ulongval ();
15711 if (i != ((long) (sizeof (int))))
15713 fprintf (f, "%lu\n", i);
15715 exit (ferror (f) || fclose (f) != 0);
15721 rm -f conftest$ac_exeext
15722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15723 (eval $ac_link) 2>&5
15725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15726 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15728 (eval $ac_try) 2>&5
15730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15731 (exit $ac_status); }; }; then
15732 ac_cv_sizeof_int=`cat conftest.val`
15734 echo "$as_me: program exited with status $ac_status" >&5
15735 echo "$as_me: failed program was:" >&5
15736 sed 's/^/| /' conftest.$ac_ext >&5
15738 ( exit $ac_status )
15739 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15740 See \`config.log' for more details." >&5
15741 echo "$as_me: error: cannot compute sizeof (int), 77
15742 See \`config.log' for more details." >&2;}
15743 { (exit 1); exit 1; }; }
15745 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15753 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15754 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15755 cat >>confdefs.h <<_ACEOF
15756 #define SIZEOF_INT $ac_cv_sizeof_int
15760 echo "$as_me:$LINENO: checking for long int" >&5
15761 echo $ECHO_N "checking for long int... $ECHO_C" >&6
15762 if test "${ac_cv_type_long_int+set}" = set; then
15763 echo $ECHO_N "(cached) $ECHO_C" >&6
15765 cat >conftest.$ac_ext <<_ACEOF
15768 cat confdefs.h >>conftest.$ac_ext
15769 cat >>conftest.$ac_ext <<_ACEOF
15770 /* end confdefs.h. */
15771 $ac_includes_default
15775 if ((long int *) 0)
15777 if (sizeof (long int))
15783 rm -f conftest.$ac_objext
15784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15785 (eval $ac_compile) 2>conftest.er1
15787 grep -v '^ *+' conftest.er1 >conftest.err
15789 cat conftest.err >&5
15790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15791 (exit $ac_status); } &&
15792 { ac_try='test -z "$ac_c_werror_flag"
15793 || test ! -s conftest.err'
15794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15795 (eval $ac_try) 2>&5
15797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15798 (exit $ac_status); }; } &&
15799 { ac_try='test -s conftest.$ac_objext'
15800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15801 (eval $ac_try) 2>&5
15803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804 (exit $ac_status); }; }; then
15805 ac_cv_type_long_int=yes
15807 echo "$as_me: failed program was:" >&5
15808 sed 's/^/| /' conftest.$ac_ext >&5
15810 ac_cv_type_long_int=no
15812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15814 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
15815 echo "${ECHO_T}$ac_cv_type_long_int" >&6
15817 echo "$as_me:$LINENO: checking size of long int" >&5
15818 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
15819 if test "${ac_cv_sizeof_long_int+set}" = set; then
15820 echo $ECHO_N "(cached) $ECHO_C" >&6
15822 if test "$ac_cv_type_long_int" = yes; then
15823 # The cast to unsigned long works around a bug in the HP C Compiler
15824 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15825 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15826 # This bug is HP SR number 8606223364.
15827 if test "$cross_compiling" = yes; then
15828 # Depending upon the size, compute the lo and hi bounds.
15829 cat >conftest.$ac_ext <<_ACEOF
15832 cat confdefs.h >>conftest.$ac_ext
15833 cat >>conftest.$ac_ext <<_ACEOF
15834 /* end confdefs.h. */
15835 $ac_includes_default
15839 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
15846 rm -f conftest.$ac_objext
15847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15848 (eval $ac_compile) 2>conftest.er1
15850 grep -v '^ *+' conftest.er1 >conftest.err
15852 cat conftest.err >&5
15853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15854 (exit $ac_status); } &&
15855 { ac_try='test -z "$ac_c_werror_flag"
15856 || test ! -s conftest.err'
15857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15858 (eval $ac_try) 2>&5
15860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15861 (exit $ac_status); }; } &&
15862 { ac_try='test -s conftest.$ac_objext'
15863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15864 (eval $ac_try) 2>&5
15866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15867 (exit $ac_status); }; }; then
15870 cat >conftest.$ac_ext <<_ACEOF
15873 cat confdefs.h >>conftest.$ac_ext
15874 cat >>conftest.$ac_ext <<_ACEOF
15875 /* end confdefs.h. */
15876 $ac_includes_default
15880 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
15887 rm -f conftest.$ac_objext
15888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15889 (eval $ac_compile) 2>conftest.er1
15891 grep -v '^ *+' conftest.er1 >conftest.err
15893 cat conftest.err >&5
15894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15895 (exit $ac_status); } &&
15896 { ac_try='test -z "$ac_c_werror_flag"
15897 || test ! -s conftest.err'
15898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15899 (eval $ac_try) 2>&5
15901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15902 (exit $ac_status); }; } &&
15903 { ac_try='test -s conftest.$ac_objext'
15904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15905 (eval $ac_try) 2>&5
15907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15908 (exit $ac_status); }; }; then
15909 ac_hi=$ac_mid; break
15911 echo "$as_me: failed program was:" >&5
15912 sed 's/^/| /' conftest.$ac_ext >&5
15914 ac_lo=`expr $ac_mid + 1`
15915 if test $ac_lo -le $ac_mid; then
15919 ac_mid=`expr 2 '*' $ac_mid + 1`
15921 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15924 echo "$as_me: failed program was:" >&5
15925 sed 's/^/| /' conftest.$ac_ext >&5
15927 cat >conftest.$ac_ext <<_ACEOF
15930 cat confdefs.h >>conftest.$ac_ext
15931 cat >>conftest.$ac_ext <<_ACEOF
15932 /* end confdefs.h. */
15933 $ac_includes_default
15937 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
15944 rm -f conftest.$ac_objext
15945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15946 (eval $ac_compile) 2>conftest.er1
15948 grep -v '^ *+' conftest.er1 >conftest.err
15950 cat conftest.err >&5
15951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15952 (exit $ac_status); } &&
15953 { ac_try='test -z "$ac_c_werror_flag"
15954 || test ! -s conftest.err'
15955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15956 (eval $ac_try) 2>&5
15958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15959 (exit $ac_status); }; } &&
15960 { ac_try='test -s conftest.$ac_objext'
15961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15962 (eval $ac_try) 2>&5
15964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15965 (exit $ac_status); }; }; then
15968 cat >conftest.$ac_ext <<_ACEOF
15971 cat confdefs.h >>conftest.$ac_ext
15972 cat >>conftest.$ac_ext <<_ACEOF
15973 /* end confdefs.h. */
15974 $ac_includes_default
15978 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
15985 rm -f conftest.$ac_objext
15986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15987 (eval $ac_compile) 2>conftest.er1
15989 grep -v '^ *+' conftest.er1 >conftest.err
15991 cat conftest.err >&5
15992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15993 (exit $ac_status); } &&
15994 { ac_try='test -z "$ac_c_werror_flag"
15995 || test ! -s conftest.err'
15996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15997 (eval $ac_try) 2>&5
15999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16000 (exit $ac_status); }; } &&
16001 { ac_try='test -s conftest.$ac_objext'
16002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16003 (eval $ac_try) 2>&5
16005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16006 (exit $ac_status); }; }; then
16007 ac_lo=$ac_mid; break
16009 echo "$as_me: failed program was:" >&5
16010 sed 's/^/| /' conftest.$ac_ext >&5
16012 ac_hi=`expr '(' $ac_mid ')' - 1`
16013 if test $ac_mid -le $ac_hi; then
16017 ac_mid=`expr 2 '*' $ac_mid`
16019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16022 echo "$as_me: failed program was:" >&5
16023 sed 's/^/| /' conftest.$ac_ext >&5
16027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16029 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16030 # Binary search between lo and hi bounds.
16031 while test "x$ac_lo" != "x$ac_hi"; do
16032 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16033 cat >conftest.$ac_ext <<_ACEOF
16036 cat confdefs.h >>conftest.$ac_ext
16037 cat >>conftest.$ac_ext <<_ACEOF
16038 /* end confdefs.h. */
16039 $ac_includes_default
16043 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
16050 rm -f conftest.$ac_objext
16051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16052 (eval $ac_compile) 2>conftest.er1
16054 grep -v '^ *+' conftest.er1 >conftest.err
16056 cat conftest.err >&5
16057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16058 (exit $ac_status); } &&
16059 { ac_try='test -z "$ac_c_werror_flag"
16060 || test ! -s conftest.err'
16061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16062 (eval $ac_try) 2>&5
16064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16065 (exit $ac_status); }; } &&
16066 { ac_try='test -s conftest.$ac_objext'
16067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16068 (eval $ac_try) 2>&5
16070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16071 (exit $ac_status); }; }; then
16074 echo "$as_me: failed program was:" >&5
16075 sed 's/^/| /' conftest.$ac_ext >&5
16077 ac_lo=`expr '(' $ac_mid ')' + 1`
16079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16082 ?*) ac_cv_sizeof_long_int=$ac_lo;;
16083 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
16084 See \`config.log' for more details." >&5
16085 echo "$as_me: error: cannot compute sizeof (long int), 77
16086 See \`config.log' for more details." >&2;}
16087 { (exit 1); exit 1; }; } ;;
16090 if test "$cross_compiling" = yes; then
16091 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16092 See \`config.log' for more details." >&5
16093 echo "$as_me: error: cannot run test program while cross compiling
16094 See \`config.log' for more details." >&2;}
16095 { (exit 1); exit 1; }; }
16097 cat >conftest.$ac_ext <<_ACEOF
16100 cat confdefs.h >>conftest.$ac_ext
16101 cat >>conftest.$ac_ext <<_ACEOF
16102 /* end confdefs.h. */
16103 $ac_includes_default
16104 long longval () { return (long) (sizeof (long int)); }
16105 unsigned long ulongval () { return (long) (sizeof (long int)); }
16107 #include <stdlib.h>
16112 FILE *f = fopen ("conftest.val", "w");
16115 if (((long) (sizeof (long int))) < 0)
16117 long i = longval ();
16118 if (i != ((long) (sizeof (long int))))
16120 fprintf (f, "%ld\n", i);
16124 unsigned long i = ulongval ();
16125 if (i != ((long) (sizeof (long int))))
16127 fprintf (f, "%lu\n", i);
16129 exit (ferror (f) || fclose (f) != 0);
16135 rm -f conftest$ac_exeext
16136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16137 (eval $ac_link) 2>&5
16139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16140 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16142 (eval $ac_try) 2>&5
16144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16145 (exit $ac_status); }; }; then
16146 ac_cv_sizeof_long_int=`cat conftest.val`
16148 echo "$as_me: program exited with status $ac_status" >&5
16149 echo "$as_me: failed program was:" >&5
16150 sed 's/^/| /' conftest.$ac_ext >&5
16152 ( exit $ac_status )
16153 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
16154 See \`config.log' for more details." >&5
16155 echo "$as_me: error: cannot compute sizeof (long int), 77
16156 See \`config.log' for more details." >&2;}
16157 { (exit 1); exit 1; }; }
16159 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16164 ac_cv_sizeof_long_int=0
16167 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
16168 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
16169 cat >>confdefs.h <<_ACEOF
16170 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
16174 echo "$as_me:$LINENO: checking for long long int" >&5
16175 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
16176 if test "${ac_cv_type_long_long_int+set}" = set; then
16177 echo $ECHO_N "(cached) $ECHO_C" >&6
16179 cat >conftest.$ac_ext <<_ACEOF
16182 cat confdefs.h >>conftest.$ac_ext
16183 cat >>conftest.$ac_ext <<_ACEOF
16184 /* end confdefs.h. */
16185 $ac_includes_default
16189 if ((long long int *) 0)
16191 if (sizeof (long long int))
16197 rm -f conftest.$ac_objext
16198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16199 (eval $ac_compile) 2>conftest.er1
16201 grep -v '^ *+' conftest.er1 >conftest.err
16203 cat conftest.err >&5
16204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16205 (exit $ac_status); } &&
16206 { ac_try='test -z "$ac_c_werror_flag"
16207 || test ! -s conftest.err'
16208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16209 (eval $ac_try) 2>&5
16211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16212 (exit $ac_status); }; } &&
16213 { ac_try='test -s conftest.$ac_objext'
16214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16215 (eval $ac_try) 2>&5
16217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16218 (exit $ac_status); }; }; then
16219 ac_cv_type_long_long_int=yes
16221 echo "$as_me: failed program was:" >&5
16222 sed 's/^/| /' conftest.$ac_ext >&5
16224 ac_cv_type_long_long_int=no
16226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16228 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
16229 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
16231 echo "$as_me:$LINENO: checking size of long long int" >&5
16232 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
16233 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
16234 echo $ECHO_N "(cached) $ECHO_C" >&6
16236 if test "$ac_cv_type_long_long_int" = yes; then
16237 # The cast to unsigned long works around a bug in the HP C Compiler
16238 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16239 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16240 # This bug is HP SR number 8606223364.
16241 if test "$cross_compiling" = yes; then
16242 # Depending upon the size, compute the lo and hi bounds.
16243 cat >conftest.$ac_ext <<_ACEOF
16246 cat confdefs.h >>conftest.$ac_ext
16247 cat >>conftest.$ac_ext <<_ACEOF
16248 /* end confdefs.h. */
16249 $ac_includes_default
16253 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
16260 rm -f conftest.$ac_objext
16261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16262 (eval $ac_compile) 2>conftest.er1
16264 grep -v '^ *+' conftest.er1 >conftest.err
16266 cat conftest.err >&5
16267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16268 (exit $ac_status); } &&
16269 { ac_try='test -z "$ac_c_werror_flag"
16270 || test ! -s conftest.err'
16271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16272 (eval $ac_try) 2>&5
16274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16275 (exit $ac_status); }; } &&
16276 { ac_try='test -s conftest.$ac_objext'
16277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16278 (eval $ac_try) 2>&5
16280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16281 (exit $ac_status); }; }; then
16284 cat >conftest.$ac_ext <<_ACEOF
16287 cat confdefs.h >>conftest.$ac_ext
16288 cat >>conftest.$ac_ext <<_ACEOF
16289 /* end confdefs.h. */
16290 $ac_includes_default
16294 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
16301 rm -f conftest.$ac_objext
16302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16303 (eval $ac_compile) 2>conftest.er1
16305 grep -v '^ *+' conftest.er1 >conftest.err
16307 cat conftest.err >&5
16308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16309 (exit $ac_status); } &&
16310 { ac_try='test -z "$ac_c_werror_flag"
16311 || test ! -s conftest.err'
16312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16313 (eval $ac_try) 2>&5
16315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16316 (exit $ac_status); }; } &&
16317 { ac_try='test -s conftest.$ac_objext'
16318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16319 (eval $ac_try) 2>&5
16321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16322 (exit $ac_status); }; }; then
16323 ac_hi=$ac_mid; break
16325 echo "$as_me: failed program was:" >&5
16326 sed 's/^/| /' conftest.$ac_ext >&5
16328 ac_lo=`expr $ac_mid + 1`
16329 if test $ac_lo -le $ac_mid; then
16333 ac_mid=`expr 2 '*' $ac_mid + 1`
16335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16338 echo "$as_me: failed program was:" >&5
16339 sed 's/^/| /' conftest.$ac_ext >&5
16341 cat >conftest.$ac_ext <<_ACEOF
16344 cat confdefs.h >>conftest.$ac_ext
16345 cat >>conftest.$ac_ext <<_ACEOF
16346 /* end confdefs.h. */
16347 $ac_includes_default
16351 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
16358 rm -f conftest.$ac_objext
16359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16360 (eval $ac_compile) 2>conftest.er1
16362 grep -v '^ *+' conftest.er1 >conftest.err
16364 cat conftest.err >&5
16365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16366 (exit $ac_status); } &&
16367 { ac_try='test -z "$ac_c_werror_flag"
16368 || test ! -s conftest.err'
16369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16370 (eval $ac_try) 2>&5
16372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16373 (exit $ac_status); }; } &&
16374 { ac_try='test -s conftest.$ac_objext'
16375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16376 (eval $ac_try) 2>&5
16378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16379 (exit $ac_status); }; }; then
16382 cat >conftest.$ac_ext <<_ACEOF
16385 cat confdefs.h >>conftest.$ac_ext
16386 cat >>conftest.$ac_ext <<_ACEOF
16387 /* end confdefs.h. */
16388 $ac_includes_default
16392 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
16399 rm -f conftest.$ac_objext
16400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16401 (eval $ac_compile) 2>conftest.er1
16403 grep -v '^ *+' conftest.er1 >conftest.err
16405 cat conftest.err >&5
16406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16407 (exit $ac_status); } &&
16408 { ac_try='test -z "$ac_c_werror_flag"
16409 || test ! -s conftest.err'
16410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16411 (eval $ac_try) 2>&5
16413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16414 (exit $ac_status); }; } &&
16415 { ac_try='test -s conftest.$ac_objext'
16416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16417 (eval $ac_try) 2>&5
16419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16420 (exit $ac_status); }; }; then
16421 ac_lo=$ac_mid; break
16423 echo "$as_me: failed program was:" >&5
16424 sed 's/^/| /' conftest.$ac_ext >&5
16426 ac_hi=`expr '(' $ac_mid ')' - 1`
16427 if test $ac_mid -le $ac_hi; then
16431 ac_mid=`expr 2 '*' $ac_mid`
16433 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16436 echo "$as_me: failed program was:" >&5
16437 sed 's/^/| /' conftest.$ac_ext >&5
16441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16444 # Binary search between lo and hi bounds.
16445 while test "x$ac_lo" != "x$ac_hi"; do
16446 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16447 cat >conftest.$ac_ext <<_ACEOF
16450 cat confdefs.h >>conftest.$ac_ext
16451 cat >>conftest.$ac_ext <<_ACEOF
16452 /* end confdefs.h. */
16453 $ac_includes_default
16457 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
16464 rm -f conftest.$ac_objext
16465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16466 (eval $ac_compile) 2>conftest.er1
16468 grep -v '^ *+' conftest.er1 >conftest.err
16470 cat conftest.err >&5
16471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16472 (exit $ac_status); } &&
16473 { ac_try='test -z "$ac_c_werror_flag"
16474 || test ! -s conftest.err'
16475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16476 (eval $ac_try) 2>&5
16478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16479 (exit $ac_status); }; } &&
16480 { ac_try='test -s conftest.$ac_objext'
16481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16482 (eval $ac_try) 2>&5
16484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16485 (exit $ac_status); }; }; then
16488 echo "$as_me: failed program was:" >&5
16489 sed 's/^/| /' conftest.$ac_ext >&5
16491 ac_lo=`expr '(' $ac_mid ')' + 1`
16493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16496 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
16497 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
16498 See \`config.log' for more details." >&5
16499 echo "$as_me: error: cannot compute sizeof (long long int), 77
16500 See \`config.log' for more details." >&2;}
16501 { (exit 1); exit 1; }; } ;;
16504 if test "$cross_compiling" = yes; then
16505 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16506 See \`config.log' for more details." >&5
16507 echo "$as_me: error: cannot run test program while cross compiling
16508 See \`config.log' for more details." >&2;}
16509 { (exit 1); exit 1; }; }
16511 cat >conftest.$ac_ext <<_ACEOF
16514 cat confdefs.h >>conftest.$ac_ext
16515 cat >>conftest.$ac_ext <<_ACEOF
16516 /* end confdefs.h. */
16517 $ac_includes_default
16518 long longval () { return (long) (sizeof (long long int)); }
16519 unsigned long ulongval () { return (long) (sizeof (long long int)); }
16521 #include <stdlib.h>
16526 FILE *f = fopen ("conftest.val", "w");
16529 if (((long) (sizeof (long long int))) < 0)
16531 long i = longval ();
16532 if (i != ((long) (sizeof (long long int))))
16534 fprintf (f, "%ld\n", i);
16538 unsigned long i = ulongval ();
16539 if (i != ((long) (sizeof (long long int))))
16541 fprintf (f, "%lu\n", i);
16543 exit (ferror (f) || fclose (f) != 0);
16549 rm -f conftest$ac_exeext
16550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16551 (eval $ac_link) 2>&5
16553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16554 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16556 (eval $ac_try) 2>&5
16558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16559 (exit $ac_status); }; }; then
16560 ac_cv_sizeof_long_long_int=`cat conftest.val`
16562 echo "$as_me: program exited with status $ac_status" >&5
16563 echo "$as_me: failed program was:" >&5
16564 sed 's/^/| /' conftest.$ac_ext >&5
16566 ( exit $ac_status )
16567 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
16568 See \`config.log' for more details." >&5
16569 echo "$as_me: error: cannot compute sizeof (long long int), 77
16570 See \`config.log' for more details." >&2;}
16571 { (exit 1); exit 1; }; }
16573 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16578 ac_cv_sizeof_long_long_int=0
16581 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
16582 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
16583 cat >>confdefs.h <<_ACEOF
16584 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
16588 echo "$as_me:$LINENO: checking for int *" >&5
16589 echo $ECHO_N "checking for int *... $ECHO_C" >&6
16590 if test "${ac_cv_type_int_p+set}" = set; then
16591 echo $ECHO_N "(cached) $ECHO_C" >&6
16593 cat >conftest.$ac_ext <<_ACEOF
16596 cat confdefs.h >>conftest.$ac_ext
16597 cat >>conftest.$ac_ext <<_ACEOF
16598 /* end confdefs.h. */
16599 $ac_includes_default
16605 if (sizeof (int *))
16611 rm -f conftest.$ac_objext
16612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16613 (eval $ac_compile) 2>conftest.er1
16615 grep -v '^ *+' conftest.er1 >conftest.err
16617 cat conftest.err >&5
16618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16619 (exit $ac_status); } &&
16620 { ac_try='test -z "$ac_c_werror_flag"
16621 || test ! -s conftest.err'
16622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16623 (eval $ac_try) 2>&5
16625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16626 (exit $ac_status); }; } &&
16627 { ac_try='test -s conftest.$ac_objext'
16628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16629 (eval $ac_try) 2>&5
16631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16632 (exit $ac_status); }; }; then
16633 ac_cv_type_int_p=yes
16635 echo "$as_me: failed program was:" >&5
16636 sed 's/^/| /' conftest.$ac_ext >&5
16638 ac_cv_type_int_p=no
16640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16642 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
16643 echo "${ECHO_T}$ac_cv_type_int_p" >&6
16645 echo "$as_me:$LINENO: checking size of int *" >&5
16646 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
16647 if test "${ac_cv_sizeof_int_p+set}" = set; then
16648 echo $ECHO_N "(cached) $ECHO_C" >&6
16650 if test "$ac_cv_type_int_p" = yes; then
16651 # The cast to unsigned long works around a bug in the HP C Compiler
16652 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16653 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16654 # This bug is HP SR number 8606223364.
16655 if test "$cross_compiling" = yes; then
16656 # Depending upon the size, compute the lo and hi bounds.
16657 cat >conftest.$ac_ext <<_ACEOF
16660 cat confdefs.h >>conftest.$ac_ext
16661 cat >>conftest.$ac_ext <<_ACEOF
16662 /* end confdefs.h. */
16663 $ac_includes_default
16667 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
16674 rm -f conftest.$ac_objext
16675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16676 (eval $ac_compile) 2>conftest.er1
16678 grep -v '^ *+' conftest.er1 >conftest.err
16680 cat conftest.err >&5
16681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16682 (exit $ac_status); } &&
16683 { ac_try='test -z "$ac_c_werror_flag"
16684 || test ! -s conftest.err'
16685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16686 (eval $ac_try) 2>&5
16688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16689 (exit $ac_status); }; } &&
16690 { ac_try='test -s conftest.$ac_objext'
16691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16692 (eval $ac_try) 2>&5
16694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16695 (exit $ac_status); }; }; then
16698 cat >conftest.$ac_ext <<_ACEOF
16701 cat confdefs.h >>conftest.$ac_ext
16702 cat >>conftest.$ac_ext <<_ACEOF
16703 /* end confdefs.h. */
16704 $ac_includes_default
16708 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
16715 rm -f conftest.$ac_objext
16716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16717 (eval $ac_compile) 2>conftest.er1
16719 grep -v '^ *+' conftest.er1 >conftest.err
16721 cat conftest.err >&5
16722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16723 (exit $ac_status); } &&
16724 { ac_try='test -z "$ac_c_werror_flag"
16725 || test ! -s conftest.err'
16726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16727 (eval $ac_try) 2>&5
16729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16730 (exit $ac_status); }; } &&
16731 { ac_try='test -s conftest.$ac_objext'
16732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16733 (eval $ac_try) 2>&5
16735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16736 (exit $ac_status); }; }; then
16737 ac_hi=$ac_mid; break
16739 echo "$as_me: failed program was:" >&5
16740 sed 's/^/| /' conftest.$ac_ext >&5
16742 ac_lo=`expr $ac_mid + 1`
16743 if test $ac_lo -le $ac_mid; then
16747 ac_mid=`expr 2 '*' $ac_mid + 1`
16749 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16752 echo "$as_me: failed program was:" >&5
16753 sed 's/^/| /' conftest.$ac_ext >&5
16755 cat >conftest.$ac_ext <<_ACEOF
16758 cat confdefs.h >>conftest.$ac_ext
16759 cat >>conftest.$ac_ext <<_ACEOF
16760 /* end confdefs.h. */
16761 $ac_includes_default
16765 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
16772 rm -f conftest.$ac_objext
16773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16774 (eval $ac_compile) 2>conftest.er1
16776 grep -v '^ *+' conftest.er1 >conftest.err
16778 cat conftest.err >&5
16779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16780 (exit $ac_status); } &&
16781 { ac_try='test -z "$ac_c_werror_flag"
16782 || test ! -s conftest.err'
16783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16784 (eval $ac_try) 2>&5
16786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16787 (exit $ac_status); }; } &&
16788 { ac_try='test -s conftest.$ac_objext'
16789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16790 (eval $ac_try) 2>&5
16792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16793 (exit $ac_status); }; }; then
16796 cat >conftest.$ac_ext <<_ACEOF
16799 cat confdefs.h >>conftest.$ac_ext
16800 cat >>conftest.$ac_ext <<_ACEOF
16801 /* end confdefs.h. */
16802 $ac_includes_default
16806 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
16813 rm -f conftest.$ac_objext
16814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16815 (eval $ac_compile) 2>conftest.er1
16817 grep -v '^ *+' conftest.er1 >conftest.err
16819 cat conftest.err >&5
16820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16821 (exit $ac_status); } &&
16822 { ac_try='test -z "$ac_c_werror_flag"
16823 || test ! -s conftest.err'
16824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16825 (eval $ac_try) 2>&5
16827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16828 (exit $ac_status); }; } &&
16829 { ac_try='test -s conftest.$ac_objext'
16830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16831 (eval $ac_try) 2>&5
16833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834 (exit $ac_status); }; }; then
16835 ac_lo=$ac_mid; break
16837 echo "$as_me: failed program was:" >&5
16838 sed 's/^/| /' conftest.$ac_ext >&5
16840 ac_hi=`expr '(' $ac_mid ')' - 1`
16841 if test $ac_mid -le $ac_hi; then
16845 ac_mid=`expr 2 '*' $ac_mid`
16847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16850 echo "$as_me: failed program was:" >&5
16851 sed 's/^/| /' conftest.$ac_ext >&5
16855 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16857 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16858 # Binary search between lo and hi bounds.
16859 while test "x$ac_lo" != "x$ac_hi"; do
16860 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16861 cat >conftest.$ac_ext <<_ACEOF
16864 cat confdefs.h >>conftest.$ac_ext
16865 cat >>conftest.$ac_ext <<_ACEOF
16866 /* end confdefs.h. */
16867 $ac_includes_default
16871 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
16878 rm -f conftest.$ac_objext
16879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16880 (eval $ac_compile) 2>conftest.er1
16882 grep -v '^ *+' conftest.er1 >conftest.err
16884 cat conftest.err >&5
16885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16886 (exit $ac_status); } &&
16887 { ac_try='test -z "$ac_c_werror_flag"
16888 || test ! -s conftest.err'
16889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16890 (eval $ac_try) 2>&5
16892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16893 (exit $ac_status); }; } &&
16894 { ac_try='test -s conftest.$ac_objext'
16895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16896 (eval $ac_try) 2>&5
16898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16899 (exit $ac_status); }; }; then
16902 echo "$as_me: failed program was:" >&5
16903 sed 's/^/| /' conftest.$ac_ext >&5
16905 ac_lo=`expr '(' $ac_mid ')' + 1`
16907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16910 ?*) ac_cv_sizeof_int_p=$ac_lo;;
16911 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
16912 See \`config.log' for more details." >&5
16913 echo "$as_me: error: cannot compute sizeof (int *), 77
16914 See \`config.log' for more details." >&2;}
16915 { (exit 1); exit 1; }; } ;;
16918 if test "$cross_compiling" = yes; then
16919 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16920 See \`config.log' for more details." >&5
16921 echo "$as_me: error: cannot run test program while cross compiling
16922 See \`config.log' for more details." >&2;}
16923 { (exit 1); exit 1; }; }
16925 cat >conftest.$ac_ext <<_ACEOF
16928 cat confdefs.h >>conftest.$ac_ext
16929 cat >>conftest.$ac_ext <<_ACEOF
16930 /* end confdefs.h. */
16931 $ac_includes_default
16932 long longval () { return (long) (sizeof (int *)); }
16933 unsigned long ulongval () { return (long) (sizeof (int *)); }
16935 #include <stdlib.h>
16940 FILE *f = fopen ("conftest.val", "w");
16943 if (((long) (sizeof (int *))) < 0)
16945 long i = longval ();
16946 if (i != ((long) (sizeof (int *))))
16948 fprintf (f, "%ld\n", i);
16952 unsigned long i = ulongval ();
16953 if (i != ((long) (sizeof (int *))))
16955 fprintf (f, "%lu\n", i);
16957 exit (ferror (f) || fclose (f) != 0);
16963 rm -f conftest$ac_exeext
16964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16965 (eval $ac_link) 2>&5
16967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16968 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16970 (eval $ac_try) 2>&5
16972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16973 (exit $ac_status); }; }; then
16974 ac_cv_sizeof_int_p=`cat conftest.val`
16976 echo "$as_me: program exited with status $ac_status" >&5
16977 echo "$as_me: failed program was:" >&5
16978 sed 's/^/| /' conftest.$ac_ext >&5
16980 ( exit $ac_status )
16981 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
16982 See \`config.log' for more details." >&5
16983 echo "$as_me: error: cannot compute sizeof (int *), 77
16984 See \`config.log' for more details." >&2;}
16985 { (exit 1); exit 1; }; }
16987 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16992 ac_cv_sizeof_int_p=0
16995 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
16996 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
16997 cat >>confdefs.h <<_ACEOF
16998 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
17003 # Check for sys/types.h types
17004 echo "$as_me:$LINENO: checking for u_int type" >&5
17005 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
17006 if test "${ac_cv_have_u_int+set}" = set; then
17007 echo $ECHO_N "(cached) $ECHO_C" >&6
17010 cat >conftest.$ac_ext <<_ACEOF
17013 cat confdefs.h >>conftest.$ac_ext
17014 cat >>conftest.$ac_ext <<_ACEOF
17015 /* end confdefs.h. */
17016 #include <sys/types.h>
17025 rm -f conftest.$ac_objext
17026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17027 (eval $ac_compile) 2>conftest.er1
17029 grep -v '^ *+' conftest.er1 >conftest.err
17031 cat conftest.err >&5
17032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17033 (exit $ac_status); } &&
17034 { ac_try='test -z "$ac_c_werror_flag"
17035 || test ! -s conftest.err'
17036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17037 (eval $ac_try) 2>&5
17039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17040 (exit $ac_status); }; } &&
17041 { ac_try='test -s conftest.$ac_objext'
17042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17043 (eval $ac_try) 2>&5
17045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17046 (exit $ac_status); }; }; then
17047 ac_cv_have_u_int="yes"
17049 echo "$as_me: failed program was:" >&5
17050 sed 's/^/| /' conftest.$ac_ext >&5
17052 ac_cv_have_u_int="no"
17055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17058 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
17059 echo "${ECHO_T}$ac_cv_have_u_int" >&6
17060 if test "x$ac_cv_have_u_int" = "xyes" ; then
17061 cat >>confdefs.h <<\_ACEOF
17062 #define HAVE_U_INT 1
17068 echo "$as_me:$LINENO: checking for intmax_t type" >&5
17069 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
17070 if test "${ac_cv_have_intmax_t+set}" = set; then
17071 echo $ECHO_N "(cached) $ECHO_C" >&6
17074 cat >conftest.$ac_ext <<_ACEOF
17077 cat confdefs.h >>conftest.$ac_ext
17078 cat >>conftest.$ac_ext <<_ACEOF
17079 /* end confdefs.h. */
17080 #include <sys/types.h>
17089 rm -f conftest.$ac_objext
17090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17091 (eval $ac_compile) 2>conftest.er1
17093 grep -v '^ *+' conftest.er1 >conftest.err
17095 cat conftest.err >&5
17096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17097 (exit $ac_status); } &&
17098 { ac_try='test -z "$ac_c_werror_flag"
17099 || test ! -s conftest.err'
17100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17101 (eval $ac_try) 2>&5
17103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17104 (exit $ac_status); }; } &&
17105 { ac_try='test -s conftest.$ac_objext'
17106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17107 (eval $ac_try) 2>&5
17109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17110 (exit $ac_status); }; }; then
17111 ac_cv_have_intmax_t="yes"
17113 echo "$as_me: failed program was:" >&5
17114 sed 's/^/| /' conftest.$ac_ext >&5
17117 cat >conftest.$ac_ext <<_ACEOF
17120 cat confdefs.h >>conftest.$ac_ext
17121 cat >>conftest.$ac_ext <<_ACEOF
17122 /* end confdefs.h. */
17123 #include <stdint.h>
17132 rm -f conftest.$ac_objext
17133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17134 (eval $ac_compile) 2>conftest.er1
17136 grep -v '^ *+' conftest.er1 >conftest.err
17138 cat conftest.err >&5
17139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17140 (exit $ac_status); } &&
17141 { ac_try='test -z "$ac_c_werror_flag"
17142 || test ! -s conftest.err'
17143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17144 (eval $ac_try) 2>&5
17146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17147 (exit $ac_status); }; } &&
17148 { ac_try='test -s conftest.$ac_objext'
17149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17150 (eval $ac_try) 2>&5
17152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17153 (exit $ac_status); }; }; then
17154 ac_cv_have_intmax_t="yes"
17156 echo "$as_me: failed program was:" >&5
17157 sed 's/^/| /' conftest.$ac_ext >&5
17159 ac_cv_have_intmax_t="no"
17162 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17166 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17170 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
17171 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
17172 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
17173 cat >>confdefs.h <<\_ACEOF
17174 #define HAVE_INTMAX_T 1
17181 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
17182 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
17183 if test "${ac_cv_have_u_intmax_t+set}" = set; then
17184 echo $ECHO_N "(cached) $ECHO_C" >&6
17187 cat >conftest.$ac_ext <<_ACEOF
17190 cat confdefs.h >>conftest.$ac_ext
17191 cat >>conftest.$ac_ext <<_ACEOF
17192 /* end confdefs.h. */
17193 #include <sys/types.h>
17197 u_intmax_t a; a = 1;
17202 rm -f conftest.$ac_objext
17203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17204 (eval $ac_compile) 2>conftest.er1
17206 grep -v '^ *+' conftest.er1 >conftest.err
17208 cat conftest.err >&5
17209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17210 (exit $ac_status); } &&
17211 { ac_try='test -z "$ac_c_werror_flag"
17212 || test ! -s conftest.err'
17213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17214 (eval $ac_try) 2>&5
17216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17217 (exit $ac_status); }; } &&
17218 { ac_try='test -s conftest.$ac_objext'
17219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17220 (eval $ac_try) 2>&5
17222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17223 (exit $ac_status); }; }; then
17224 ac_cv_have_u_intmax_t="yes"
17226 echo "$as_me: failed program was:" >&5
17227 sed 's/^/| /' conftest.$ac_ext >&5
17230 cat >conftest.$ac_ext <<_ACEOF
17233 cat confdefs.h >>conftest.$ac_ext
17234 cat >>conftest.$ac_ext <<_ACEOF
17235 /* end confdefs.h. */
17236 #include <stdint.h>
17240 u_intmax_t a; a = 1;
17245 rm -f conftest.$ac_objext
17246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17247 (eval $ac_compile) 2>conftest.er1
17249 grep -v '^ *+' conftest.er1 >conftest.err
17251 cat conftest.err >&5
17252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17253 (exit $ac_status); } &&
17254 { ac_try='test -z "$ac_c_werror_flag"
17255 || test ! -s conftest.err'
17256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17257 (eval $ac_try) 2>&5
17259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17260 (exit $ac_status); }; } &&
17261 { ac_try='test -s conftest.$ac_objext'
17262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17263 (eval $ac_try) 2>&5
17265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17266 (exit $ac_status); }; }; then
17267 ac_cv_have_u_intmax_t="yes"
17269 echo "$as_me: failed program was:" >&5
17270 sed 's/^/| /' conftest.$ac_ext >&5
17272 ac_cv_have_u_intmax_t="no"
17275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17279 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17282 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
17283 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
17284 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
17285 cat >>confdefs.h <<\_ACEOF
17286 #define HAVE_U_INTMAX_T 1
17293 echo "$as_me:$LINENO: checking for intXX_t types" >&5
17294 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
17295 if test "${ac_cv_have_intxx_t+set}" = set; then
17296 echo $ECHO_N "(cached) $ECHO_C" >&6
17299 cat >conftest.$ac_ext <<_ACEOF
17302 cat confdefs.h >>conftest.$ac_ext
17303 cat >>conftest.$ac_ext <<_ACEOF
17304 /* end confdefs.h. */
17305 #include <sys/types.h>
17309 int8_t a; int16_t b; int32_t c; a = b = c = 1;
17314 rm -f conftest.$ac_objext
17315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17316 (eval $ac_compile) 2>conftest.er1
17318 grep -v '^ *+' conftest.er1 >conftest.err
17320 cat conftest.err >&5
17321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17322 (exit $ac_status); } &&
17323 { ac_try='test -z "$ac_c_werror_flag"
17324 || test ! -s conftest.err'
17325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17326 (eval $ac_try) 2>&5
17328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17329 (exit $ac_status); }; } &&
17330 { ac_try='test -s conftest.$ac_objext'
17331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17332 (eval $ac_try) 2>&5
17334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17335 (exit $ac_status); }; }; then
17336 ac_cv_have_intxx_t="yes"
17338 echo "$as_me: failed program was:" >&5
17339 sed 's/^/| /' conftest.$ac_ext >&5
17341 ac_cv_have_intxx_t="no"
17344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17347 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
17348 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
17349 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
17350 cat >>confdefs.h <<\_ACEOF
17351 #define HAVE_INTXX_T 1
17357 echo "$as_me:$LINENO: checking for int64_t type" >&5
17358 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
17359 if test "${ac_cv_have_int64_t+set}" = set; then
17360 echo $ECHO_N "(cached) $ECHO_C" >&6
17363 cat >conftest.$ac_ext <<_ACEOF
17366 cat confdefs.h >>conftest.$ac_ext
17367 cat >>conftest.$ac_ext <<_ACEOF
17368 /* end confdefs.h. */
17369 #include <sys/types.h>
17378 rm -f conftest.$ac_objext
17379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17380 (eval $ac_compile) 2>conftest.er1
17382 grep -v '^ *+' conftest.er1 >conftest.err
17384 cat conftest.err >&5
17385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17386 (exit $ac_status); } &&
17387 { ac_try='test -z "$ac_c_werror_flag"
17388 || test ! -s conftest.err'
17389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17390 (eval $ac_try) 2>&5
17392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17393 (exit $ac_status); }; } &&
17394 { ac_try='test -s conftest.$ac_objext'
17395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17396 (eval $ac_try) 2>&5
17398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17399 (exit $ac_status); }; }; then
17400 ac_cv_have_int64_t="yes"
17402 echo "$as_me: failed program was:" >&5
17403 sed 's/^/| /' conftest.$ac_ext >&5
17405 ac_cv_have_int64_t="no"
17408 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17411 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
17412 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
17413 if test "x$ac_cv_have_int64_t" = "xyes" ; then
17414 cat >>confdefs.h <<\_ACEOF
17415 #define HAVE_INT64_T 1
17421 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
17422 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
17423 if test "${ac_cv_have_u_intxx_t+set}" = set; then
17424 echo $ECHO_N "(cached) $ECHO_C" >&6
17427 cat >conftest.$ac_ext <<_ACEOF
17430 cat confdefs.h >>conftest.$ac_ext
17431 cat >>conftest.$ac_ext <<_ACEOF
17432 /* end confdefs.h. */
17433 #include <sys/types.h>
17437 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
17442 rm -f conftest.$ac_objext
17443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17444 (eval $ac_compile) 2>conftest.er1
17446 grep -v '^ *+' conftest.er1 >conftest.err
17448 cat conftest.err >&5
17449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17450 (exit $ac_status); } &&
17451 { ac_try='test -z "$ac_c_werror_flag"
17452 || test ! -s conftest.err'
17453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17454 (eval $ac_try) 2>&5
17456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17457 (exit $ac_status); }; } &&
17458 { ac_try='test -s conftest.$ac_objext'
17459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17460 (eval $ac_try) 2>&5
17462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17463 (exit $ac_status); }; }; then
17464 ac_cv_have_u_intxx_t="yes"
17466 echo "$as_me: failed program was:" >&5
17467 sed 's/^/| /' conftest.$ac_ext >&5
17469 ac_cv_have_u_intxx_t="no"
17472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17475 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
17476 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
17477 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
17478 cat >>confdefs.h <<\_ACEOF
17479 #define HAVE_U_INTXX_T 1
17485 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
17486 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
17487 if test "${ac_cv_have_u_int64_t+set}" = set; then
17488 echo $ECHO_N "(cached) $ECHO_C" >&6
17491 cat >conftest.$ac_ext <<_ACEOF
17494 cat confdefs.h >>conftest.$ac_ext
17495 cat >>conftest.$ac_ext <<_ACEOF
17496 /* end confdefs.h. */
17497 #include <sys/types.h>
17501 u_int64_t a; a = 1;
17506 rm -f conftest.$ac_objext
17507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17508 (eval $ac_compile) 2>conftest.er1
17510 grep -v '^ *+' conftest.er1 >conftest.err
17512 cat conftest.err >&5
17513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17514 (exit $ac_status); } &&
17515 { ac_try='test -z "$ac_c_werror_flag"
17516 || test ! -s conftest.err'
17517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17518 (eval $ac_try) 2>&5
17520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17521 (exit $ac_status); }; } &&
17522 { ac_try='test -s conftest.$ac_objext'
17523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17524 (eval $ac_try) 2>&5
17526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17527 (exit $ac_status); }; }; then
17528 ac_cv_have_u_int64_t="yes"
17530 echo "$as_me: failed program was:" >&5
17531 sed 's/^/| /' conftest.$ac_ext >&5
17533 ac_cv_have_u_int64_t="no"
17536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17539 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
17540 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
17541 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
17542 cat >>confdefs.h <<\_ACEOF
17543 #define HAVE_U_INT64_T 1
17549 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
17550 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
17552 echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
17553 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
17554 cat >conftest.$ac_ext <<_ACEOF
17557 cat confdefs.h >>conftest.$ac_ext
17558 cat >>conftest.$ac_ext <<_ACEOF
17559 /* end confdefs.h. */
17560 #include <sys/bitypes.h>
17564 int8_t a; int16_t b; int32_t c;
17565 u_int8_t e; u_int16_t f; u_int32_t g;
17566 a = b = c = e = f = g = 1;
17571 rm -f conftest.$ac_objext
17572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17573 (eval $ac_compile) 2>conftest.er1
17575 grep -v '^ *+' conftest.er1 >conftest.err
17577 cat conftest.err >&5
17578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17579 (exit $ac_status); } &&
17580 { ac_try='test -z "$ac_c_werror_flag"
17581 || test ! -s conftest.err'
17582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17583 (eval $ac_try) 2>&5
17585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17586 (exit $ac_status); }; } &&
17587 { ac_try='test -s conftest.$ac_objext'
17588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17589 (eval $ac_try) 2>&5
17591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17592 (exit $ac_status); }; }; then
17593 cat >>confdefs.h <<\_ACEOF
17594 #define HAVE_U_INTXX_T 1
17597 cat >>confdefs.h <<\_ACEOF
17598 #define HAVE_INTXX_T 1
17601 cat >>confdefs.h <<\_ACEOF
17602 #define HAVE_SYS_BITYPES_H 1
17605 echo "$as_me:$LINENO: result: yes" >&5
17606 echo "${ECHO_T}yes" >&6
17608 echo "$as_me: failed program was:" >&5
17609 sed 's/^/| /' conftest.$ac_ext >&5
17611 echo "$as_me:$LINENO: result: no" >&5
17612 echo "${ECHO_T}no" >&6
17615 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17618 if test -z "$have_u_intxx_t" ; then
17619 echo "$as_me:$LINENO: checking for uintXX_t types" >&5
17620 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
17621 if test "${ac_cv_have_uintxx_t+set}" = set; then
17622 echo $ECHO_N "(cached) $ECHO_C" >&6
17625 cat >conftest.$ac_ext <<_ACEOF
17628 cat confdefs.h >>conftest.$ac_ext
17629 cat >>conftest.$ac_ext <<_ACEOF
17630 /* end confdefs.h. */
17631 #include <sys/types.h>
17635 uint8_t a; uint16_t b;
17636 uint32_t c; a = b = c = 1;
17641 rm -f conftest.$ac_objext
17642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17643 (eval $ac_compile) 2>conftest.er1
17645 grep -v '^ *+' conftest.er1 >conftest.err
17647 cat conftest.err >&5
17648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17649 (exit $ac_status); } &&
17650 { ac_try='test -z "$ac_c_werror_flag"
17651 || test ! -s conftest.err'
17652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17653 (eval $ac_try) 2>&5
17655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17656 (exit $ac_status); }; } &&
17657 { ac_try='test -s conftest.$ac_objext'
17658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17659 (eval $ac_try) 2>&5
17661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17662 (exit $ac_status); }; }; then
17663 ac_cv_have_uintxx_t="yes"
17665 echo "$as_me: failed program was:" >&5
17666 sed 's/^/| /' conftest.$ac_ext >&5
17668 ac_cv_have_uintxx_t="no"
17671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17674 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
17675 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
17676 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
17677 cat >>confdefs.h <<\_ACEOF
17678 #define HAVE_UINTXX_T 1
17684 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
17685 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
17687 echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
17688 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
17689 cat >conftest.$ac_ext <<_ACEOF
17692 cat confdefs.h >>conftest.$ac_ext
17693 cat >>conftest.$ac_ext <<_ACEOF
17694 /* end confdefs.h. */
17695 #include <sys/bitypes.h>
17699 int64_t a; u_int64_t b;
17705 rm -f conftest.$ac_objext
17706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17707 (eval $ac_compile) 2>conftest.er1
17709 grep -v '^ *+' conftest.er1 >conftest.err
17711 cat conftest.err >&5
17712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17713 (exit $ac_status); } &&
17714 { ac_try='test -z "$ac_c_werror_flag"
17715 || test ! -s conftest.err'
17716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17717 (eval $ac_try) 2>&5
17719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17720 (exit $ac_status); }; } &&
17721 { ac_try='test -s conftest.$ac_objext'
17722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17723 (eval $ac_try) 2>&5
17725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17726 (exit $ac_status); }; }; then
17727 cat >>confdefs.h <<\_ACEOF
17728 #define HAVE_U_INT64_T 1
17731 cat >>confdefs.h <<\_ACEOF
17732 #define HAVE_INT64_T 1
17735 echo "$as_me:$LINENO: result: yes" >&5
17736 echo "${ECHO_T}yes" >&6
17738 echo "$as_me: failed program was:" >&5
17739 sed 's/^/| /' conftest.$ac_ext >&5
17741 echo "$as_me:$LINENO: result: no" >&5
17742 echo "${ECHO_T}no" >&6
17745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17748 if (test -z "$have_uintxx_t" && \
17749 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
17751 echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
17752 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
17753 cat >conftest.$ac_ext <<_ACEOF
17756 cat confdefs.h >>conftest.$ac_ext
17757 cat >>conftest.$ac_ext <<_ACEOF
17758 /* end confdefs.h. */
17759 #include <sys/bitypes.h>
17763 uint8_t a; uint16_t b;
17764 uint32_t c; a = b = c = 1;
17769 rm -f conftest.$ac_objext
17770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17771 (eval $ac_compile) 2>conftest.er1
17773 grep -v '^ *+' conftest.er1 >conftest.err
17775 cat conftest.err >&5
17776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17777 (exit $ac_status); } &&
17778 { ac_try='test -z "$ac_c_werror_flag"
17779 || test ! -s conftest.err'
17780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17781 (eval $ac_try) 2>&5
17783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17784 (exit $ac_status); }; } &&
17785 { ac_try='test -s conftest.$ac_objext'
17786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17787 (eval $ac_try) 2>&5
17789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17790 (exit $ac_status); }; }; then
17791 cat >>confdefs.h <<\_ACEOF
17792 #define HAVE_UINTXX_T 1
17795 echo "$as_me:$LINENO: result: yes" >&5
17796 echo "${ECHO_T}yes" >&6
17798 echo "$as_me: failed program was:" >&5
17799 sed 's/^/| /' conftest.$ac_ext >&5
17801 echo "$as_me:$LINENO: result: no" >&5
17802 echo "${ECHO_T}no" >&6
17805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17841 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17842 echo "$as_me:$LINENO: checking for $ac_func" >&5
17843 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17844 if eval "test \"\${$as_ac_var+set}\" = set"; then
17845 echo $ECHO_N "(cached) $ECHO_C" >&6
17847 cat >conftest.$ac_ext <<_ACEOF
17850 cat confdefs.h >>conftest.$ac_ext
17851 cat >>conftest.$ac_ext <<_ACEOF
17852 /* end confdefs.h. */
17853 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17854 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17855 #define $ac_func innocuous_$ac_func
17857 /* System header to define __stub macros and hopefully few prototypes,
17858 which can conflict with char $ac_func (); below.
17859 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17860 <limits.h> exists even on freestanding compilers. */
17863 # include <limits.h>
17865 # include <assert.h>
17870 /* Override any gcc2 internal prototype to avoid an error. */
17875 /* We use char because int might match the return type of a gcc2
17876 builtin and then its argument prototype would still apply. */
17878 /* The GNU C library defines this for functions which it implements
17879 to always fail with ENOSYS. Some functions are actually named
17880 something starting with __ and the normal name is an alias. */
17881 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17884 char (*f) () = $ac_func;
17893 return f != $ac_func;
17898 rm -f conftest.$ac_objext conftest$ac_exeext
17899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17900 (eval $ac_link) 2>conftest.er1
17902 grep -v '^ *+' conftest.er1 >conftest.err
17904 cat conftest.err >&5
17905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17906 (exit $ac_status); } &&
17907 { ac_try='test -z "$ac_c_werror_flag"
17908 || test ! -s conftest.err'
17909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17910 (eval $ac_try) 2>&5
17912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17913 (exit $ac_status); }; } &&
17914 { ac_try='test -s conftest$ac_exeext'
17915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17916 (eval $ac_try) 2>&5
17918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17919 (exit $ac_status); }; }; then
17920 eval "$as_ac_var=yes"
17922 echo "$as_me: failed program was:" >&5
17923 sed 's/^/| /' conftest.$ac_ext >&5
17925 eval "$as_ac_var=no"
17927 rm -f conftest.err conftest.$ac_objext \
17928 conftest$ac_exeext conftest.$ac_ext
17930 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17931 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17932 if test `eval echo '${'$as_ac_var'}'` = yes; then
17933 cat >>confdefs.h <<_ACEOF
17934 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17938 echo 'configure: cannot find needed function.'; exit 1
17945 for ac_func in fchdir
17947 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17948 echo "$as_me:$LINENO: checking for $ac_func" >&5
17949 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17950 if eval "test \"\${$as_ac_var+set}\" = set"; then
17951 echo $ECHO_N "(cached) $ECHO_C" >&6
17953 cat >conftest.$ac_ext <<_ACEOF
17956 cat confdefs.h >>conftest.$ac_ext
17957 cat >>conftest.$ac_ext <<_ACEOF
17958 /* end confdefs.h. */
17959 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17960 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17961 #define $ac_func innocuous_$ac_func
17963 /* System header to define __stub macros and hopefully few prototypes,
17964 which can conflict with char $ac_func (); below.
17965 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17966 <limits.h> exists even on freestanding compilers. */
17969 # include <limits.h>
17971 # include <assert.h>
17976 /* Override any gcc2 internal prototype to avoid an error. */
17981 /* We use char because int might match the return type of a gcc2
17982 builtin and then its argument prototype would still apply. */
17984 /* The GNU C library defines this for functions which it implements
17985 to always fail with ENOSYS. Some functions are actually named
17986 something starting with __ and the normal name is an alias. */
17987 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17990 char (*f) () = $ac_func;
17999 return f != $ac_func;
18004 rm -f conftest.$ac_objext conftest$ac_exeext
18005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18006 (eval $ac_link) 2>conftest.er1
18008 grep -v '^ *+' conftest.er1 >conftest.err
18010 cat conftest.err >&5
18011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18012 (exit $ac_status); } &&
18013 { ac_try='test -z "$ac_c_werror_flag"
18014 || test ! -s conftest.err'
18015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18016 (eval $ac_try) 2>&5
18018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18019 (exit $ac_status); }; } &&
18020 { ac_try='test -s conftest$ac_exeext'
18021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18022 (eval $ac_try) 2>&5
18024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18025 (exit $ac_status); }; }; then
18026 eval "$as_ac_var=yes"
18028 echo "$as_me: failed program was:" >&5
18029 sed 's/^/| /' conftest.$ac_ext >&5
18031 eval "$as_ac_var=no"
18033 rm -f conftest.err conftest.$ac_objext \
18034 conftest$ac_exeext conftest.$ac_ext
18036 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18037 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18038 if test `eval echo '${'$as_ac_var'}'` = yes; then
18039 cat >>confdefs.h <<_ACEOF
18040 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18042 cat >>confdefs.h <<\_ACEOF
18043 #define HAVE_FCHDIR 1
18050 for ac_func in strtoll
18052 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18053 echo "$as_me:$LINENO: checking for $ac_func" >&5
18054 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18055 if eval "test \"\${$as_ac_var+set}\" = set"; then
18056 echo $ECHO_N "(cached) $ECHO_C" >&6
18058 cat >conftest.$ac_ext <<_ACEOF
18061 cat confdefs.h >>conftest.$ac_ext
18062 cat >>conftest.$ac_ext <<_ACEOF
18063 /* end confdefs.h. */
18064 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18065 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18066 #define $ac_func innocuous_$ac_func
18068 /* System header to define __stub macros and hopefully few prototypes,
18069 which can conflict with char $ac_func (); below.
18070 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18071 <limits.h> exists even on freestanding compilers. */
18074 # include <limits.h>
18076 # include <assert.h>
18081 /* Override any gcc2 internal prototype to avoid an error. */
18086 /* We use char because int might match the return type of a gcc2
18087 builtin and then its argument prototype would still apply. */
18089 /* The GNU C library defines this for functions which it implements
18090 to always fail with ENOSYS. Some functions are actually named
18091 something starting with __ and the normal name is an alias. */
18092 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18095 char (*f) () = $ac_func;
18104 return f != $ac_func;
18109 rm -f conftest.$ac_objext conftest$ac_exeext
18110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18111 (eval $ac_link) 2>conftest.er1
18113 grep -v '^ *+' conftest.er1 >conftest.err
18115 cat conftest.err >&5
18116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18117 (exit $ac_status); } &&
18118 { ac_try='test -z "$ac_c_werror_flag"
18119 || test ! -s conftest.err'
18120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18121 (eval $ac_try) 2>&5
18123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18124 (exit $ac_status); }; } &&
18125 { ac_try='test -s conftest$ac_exeext'
18126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18127 (eval $ac_try) 2>&5
18129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18130 (exit $ac_status); }; }; then
18131 eval "$as_ac_var=yes"
18133 echo "$as_me: failed program was:" >&5
18134 sed 's/^/| /' conftest.$ac_ext >&5
18136 eval "$as_ac_var=no"
18138 rm -f conftest.err conftest.$ac_objext \
18139 conftest$ac_exeext conftest.$ac_ext
18141 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18142 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18143 if test `eval echo '${'$as_ac_var'}'` = yes; then
18144 cat >>confdefs.h <<_ACEOF
18145 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18147 cat >>confdefs.h <<\_ACEOF
18148 #define HAVE_STRTOLL 1
18156 for ac_func in chflags
18158 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18159 echo "$as_me:$LINENO: checking for $ac_func" >&5
18160 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18161 if eval "test \"\${$as_ac_var+set}\" = set"; then
18162 echo $ECHO_N "(cached) $ECHO_C" >&6
18164 cat >conftest.$ac_ext <<_ACEOF
18167 cat confdefs.h >>conftest.$ac_ext
18168 cat >>conftest.$ac_ext <<_ACEOF
18169 /* end confdefs.h. */
18170 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18171 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18172 #define $ac_func innocuous_$ac_func
18174 /* System header to define __stub macros and hopefully few prototypes,
18175 which can conflict with char $ac_func (); below.
18176 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18177 <limits.h> exists even on freestanding compilers. */
18180 # include <limits.h>
18182 # include <assert.h>
18187 /* Override any gcc2 internal prototype to avoid an error. */
18192 /* We use char because int might match the return type of a gcc2
18193 builtin and then its argument prototype would still apply. */
18195 /* The GNU C library defines this for functions which it implements
18196 to always fail with ENOSYS. Some functions are actually named
18197 something starting with __ and the normal name is an alias. */
18198 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18201 char (*f) () = $ac_func;
18210 return f != $ac_func;
18215 rm -f conftest.$ac_objext conftest$ac_exeext
18216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18217 (eval $ac_link) 2>conftest.er1
18219 grep -v '^ *+' conftest.er1 >conftest.err
18221 cat conftest.err >&5
18222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18223 (exit $ac_status); } &&
18224 { ac_try='test -z "$ac_c_werror_flag"
18225 || test ! -s conftest.err'
18226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18227 (eval $ac_try) 2>&5
18229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18230 (exit $ac_status); }; } &&
18231 { ac_try='test -s conftest$ac_exeext'
18232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18233 (eval $ac_try) 2>&5
18235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18236 (exit $ac_status); }; }; then
18237 eval "$as_ac_var=yes"
18239 echo "$as_me: failed program was:" >&5
18240 sed 's/^/| /' conftest.$ac_ext >&5
18242 eval "$as_ac_var=no"
18244 rm -f conftest.err conftest.$ac_objext \
18245 conftest$ac_exeext conftest.$ac_ext
18247 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18248 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18249 if test `eval echo '${'$as_ac_var'}'` = yes; then
18250 cat >>confdefs.h <<_ACEOF
18251 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18262 for ac_func in snprintf vsnprintf gethostid fseeko
18264 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18265 echo "$as_me:$LINENO: checking for $ac_func" >&5
18266 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18267 if eval "test \"\${$as_ac_var+set}\" = set"; then
18268 echo $ECHO_N "(cached) $ECHO_C" >&6
18270 cat >conftest.$ac_ext <<_ACEOF
18273 cat confdefs.h >>conftest.$ac_ext
18274 cat >>conftest.$ac_ext <<_ACEOF
18275 /* end confdefs.h. */
18276 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18277 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18278 #define $ac_func innocuous_$ac_func
18280 /* System header to define __stub macros and hopefully few prototypes,
18281 which can conflict with char $ac_func (); below.
18282 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18283 <limits.h> exists even on freestanding compilers. */
18286 # include <limits.h>
18288 # include <assert.h>
18293 /* Override any gcc2 internal prototype to avoid an error. */
18298 /* We use char because int might match the return type of a gcc2
18299 builtin and then its argument prototype would still apply. */
18301 /* The GNU C library defines this for functions which it implements
18302 to always fail with ENOSYS. Some functions are actually named
18303 something starting with __ and the normal name is an alias. */
18304 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18307 char (*f) () = $ac_func;
18316 return f != $ac_func;
18321 rm -f conftest.$ac_objext conftest$ac_exeext
18322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18323 (eval $ac_link) 2>conftest.er1
18325 grep -v '^ *+' conftest.er1 >conftest.err
18327 cat conftest.err >&5
18328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18329 (exit $ac_status); } &&
18330 { ac_try='test -z "$ac_c_werror_flag"
18331 || test ! -s conftest.err'
18332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18333 (eval $ac_try) 2>&5
18335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18336 (exit $ac_status); }; } &&
18337 { ac_try='test -s conftest$ac_exeext'
18338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18339 (eval $ac_try) 2>&5
18341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18342 (exit $ac_status); }; }; then
18343 eval "$as_ac_var=yes"
18345 echo "$as_me: failed program was:" >&5
18346 sed 's/^/| /' conftest.$ac_ext >&5
18348 eval "$as_ac_var=no"
18350 rm -f conftest.err conftest.$ac_objext \
18351 conftest$ac_exeext conftest.$ac_ext
18353 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18354 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18355 if test `eval echo '${'$as_ac_var'}'` = yes; then
18356 cat >>confdefs.h <<_ACEOF
18357 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18368 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
18370 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18371 echo "$as_me:$LINENO: checking for $ac_func" >&5
18372 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18373 if eval "test \"\${$as_ac_var+set}\" = set"; then
18374 echo $ECHO_N "(cached) $ECHO_C" >&6
18376 cat >conftest.$ac_ext <<_ACEOF
18379 cat confdefs.h >>conftest.$ac_ext
18380 cat >>conftest.$ac_ext <<_ACEOF
18381 /* end confdefs.h. */
18382 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18383 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18384 #define $ac_func innocuous_$ac_func
18386 /* System header to define __stub macros and hopefully few prototypes,
18387 which can conflict with char $ac_func (); below.
18388 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18389 <limits.h> exists even on freestanding compilers. */
18392 # include <limits.h>
18394 # include <assert.h>
18399 /* Override any gcc2 internal prototype to avoid an error. */
18404 /* We use char because int might match the return type of a gcc2
18405 builtin and then its argument prototype would still apply. */
18407 /* The GNU C library defines this for functions which it implements
18408 to always fail with ENOSYS. Some functions are actually named
18409 something starting with __ and the normal name is an alias. */
18410 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18413 char (*f) () = $ac_func;
18422 return f != $ac_func;
18427 rm -f conftest.$ac_objext conftest$ac_exeext
18428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18429 (eval $ac_link) 2>conftest.er1
18431 grep -v '^ *+' conftest.er1 >conftest.err
18433 cat conftest.err >&5
18434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18435 (exit $ac_status); } &&
18436 { ac_try='test -z "$ac_c_werror_flag"
18437 || test ! -s conftest.err'
18438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18439 (eval $ac_try) 2>&5
18441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18442 (exit $ac_status); }; } &&
18443 { ac_try='test -s conftest$ac_exeext'
18444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18445 (eval $ac_try) 2>&5
18447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18448 (exit $ac_status); }; }; then
18449 eval "$as_ac_var=yes"
18451 echo "$as_me: failed program was:" >&5
18452 sed 's/^/| /' conftest.$ac_ext >&5
18454 eval "$as_ac_var=no"
18456 rm -f conftest.err conftest.$ac_objext \
18457 conftest$ac_exeext conftest.$ac_ext
18459 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18460 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18461 if test `eval echo '${'$as_ac_var'}'` = yes; then
18462 cat >>confdefs.h <<_ACEOF
18463 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18470 # If resolver functions are not in libc check for -lnsl or -lresolv.
18471 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
18472 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
18473 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
18474 echo $ECHO_N "(cached) $ECHO_C" >&6
18476 cat >conftest.$ac_ext <<_ACEOF
18479 cat confdefs.h >>conftest.$ac_ext
18480 cat >>conftest.$ac_ext <<_ACEOF
18481 /* end confdefs.h. */
18482 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
18483 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18484 #define gethostbyname_r innocuous_gethostbyname_r
18486 /* System header to define __stub macros and hopefully few prototypes,
18487 which can conflict with char gethostbyname_r (); below.
18488 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18489 <limits.h> exists even on freestanding compilers. */
18492 # include <limits.h>
18494 # include <assert.h>
18497 #undef gethostbyname_r
18499 /* Override any gcc2 internal prototype to avoid an error. */
18504 /* We use char because int might match the return type of a gcc2
18505 builtin and then its argument prototype would still apply. */
18506 char gethostbyname_r ();
18507 /* The GNU C library defines this for functions which it implements
18508 to always fail with ENOSYS. Some functions are actually named
18509 something starting with __ and the normal name is an alias. */
18510 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
18513 char (*f) () = gethostbyname_r;
18522 return f != gethostbyname_r;
18527 rm -f conftest.$ac_objext conftest$ac_exeext
18528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18529 (eval $ac_link) 2>conftest.er1
18531 grep -v '^ *+' conftest.er1 >conftest.err
18533 cat conftest.err >&5
18534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18535 (exit $ac_status); } &&
18536 { ac_try='test -z "$ac_c_werror_flag"
18537 || test ! -s conftest.err'
18538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18539 (eval $ac_try) 2>&5
18541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18542 (exit $ac_status); }; } &&
18543 { ac_try='test -s conftest$ac_exeext'
18544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18545 (eval $ac_try) 2>&5
18547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18548 (exit $ac_status); }; }; then
18549 ac_cv_func_gethostbyname_r=yes
18551 echo "$as_me: failed program was:" >&5
18552 sed 's/^/| /' conftest.$ac_ext >&5
18554 ac_cv_func_gethostbyname_r=no
18556 rm -f conftest.err conftest.$ac_objext \
18557 conftest$ac_exeext conftest.$ac_ext
18559 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
18560 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
18561 if test $ac_cv_func_gethostbyname_r = yes; then
18562 echo "$as_me:$LINENO: result: using libc's resolver" >&5
18563 echo "${ECHO_T}using libc's resolver" >&6
18566 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
18567 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
18568 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
18569 echo $ECHO_N "(cached) $ECHO_C" >&6
18571 ac_check_lib_save_LIBS=$LIBS
18573 cat >conftest.$ac_ext <<_ACEOF
18576 cat confdefs.h >>conftest.$ac_ext
18577 cat >>conftest.$ac_ext <<_ACEOF
18578 /* end confdefs.h. */
18580 /* Override any gcc2 internal prototype to avoid an error. */
18584 /* We use char because int might match the return type of a gcc2
18585 builtin and then its argument prototype would still apply. */
18586 char gethostbyname_r ();
18590 gethostbyname_r ();
18595 rm -f conftest.$ac_objext conftest$ac_exeext
18596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18597 (eval $ac_link) 2>conftest.er1
18599 grep -v '^ *+' conftest.er1 >conftest.err
18601 cat conftest.err >&5
18602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18603 (exit $ac_status); } &&
18604 { ac_try='test -z "$ac_c_werror_flag"
18605 || test ! -s conftest.err'
18606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18607 (eval $ac_try) 2>&5
18609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18610 (exit $ac_status); }; } &&
18611 { ac_try='test -s conftest$ac_exeext'
18612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18613 (eval $ac_try) 2>&5
18615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18616 (exit $ac_status); }; }; then
18617 ac_cv_lib_nsl_gethostbyname_r=yes
18619 echo "$as_me: failed program was:" >&5
18620 sed 's/^/| /' conftest.$ac_ext >&5
18622 ac_cv_lib_nsl_gethostbyname_r=no
18624 rm -f conftest.err conftest.$ac_objext \
18625 conftest$ac_exeext conftest.$ac_ext
18626 LIBS=$ac_check_lib_save_LIBS
18628 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
18629 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
18630 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
18631 cat >>confdefs.h <<_ACEOF
18632 #define HAVE_LIBNSL 1
18640 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
18641 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
18642 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
18643 echo $ECHO_N "(cached) $ECHO_C" >&6
18645 ac_check_lib_save_LIBS=$LIBS
18646 LIBS="-lresolv $LIBS"
18647 cat >conftest.$ac_ext <<_ACEOF
18650 cat confdefs.h >>conftest.$ac_ext
18651 cat >>conftest.$ac_ext <<_ACEOF
18652 /* end confdefs.h. */
18654 /* Override any gcc2 internal prototype to avoid an error. */
18658 /* We use char because int might match the return type of a gcc2
18659 builtin and then its argument prototype would still apply. */
18660 char gethostbyname_r ();
18664 gethostbyname_r ();
18669 rm -f conftest.$ac_objext conftest$ac_exeext
18670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18671 (eval $ac_link) 2>conftest.er1
18673 grep -v '^ *+' conftest.er1 >conftest.err
18675 cat conftest.err >&5
18676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18677 (exit $ac_status); } &&
18678 { ac_try='test -z "$ac_c_werror_flag"
18679 || test ! -s conftest.err'
18680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18681 (eval $ac_try) 2>&5
18683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18684 (exit $ac_status); }; } &&
18685 { ac_try='test -s conftest$ac_exeext'
18686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18687 (eval $ac_try) 2>&5
18689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18690 (exit $ac_status); }; }; then
18691 ac_cv_lib_resolv_gethostbyname_r=yes
18693 echo "$as_me: failed program was:" >&5
18694 sed 's/^/| /' conftest.$ac_ext >&5
18696 ac_cv_lib_resolv_gethostbyname_r=no
18698 rm -f conftest.err conftest.$ac_objext \
18699 conftest$ac_exeext conftest.$ac_ext
18700 LIBS=$ac_check_lib_save_LIBS
18702 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
18703 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
18704 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
18705 cat >>confdefs.h <<_ACEOF
18706 #define HAVE_LIBRESOLV 1
18709 LIBS="-lresolv $LIBS"
18719 for ac_func in inet_pton
18721 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18722 echo "$as_me:$LINENO: checking for $ac_func" >&5
18723 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18724 if eval "test \"\${$as_ac_var+set}\" = set"; then
18725 echo $ECHO_N "(cached) $ECHO_C" >&6
18727 cat >conftest.$ac_ext <<_ACEOF
18730 cat confdefs.h >>conftest.$ac_ext
18731 cat >>conftest.$ac_ext <<_ACEOF
18732 /* end confdefs.h. */
18733 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18734 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18735 #define $ac_func innocuous_$ac_func
18737 /* System header to define __stub macros and hopefully few prototypes,
18738 which can conflict with char $ac_func (); below.
18739 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18740 <limits.h> exists even on freestanding compilers. */
18743 # include <limits.h>
18745 # include <assert.h>
18750 /* Override any gcc2 internal prototype to avoid an error. */
18755 /* We use char because int might match the return type of a gcc2
18756 builtin and then its argument prototype would still apply. */
18758 /* The GNU C library defines this for functions which it implements
18759 to always fail with ENOSYS. Some functions are actually named
18760 something starting with __ and the normal name is an alias. */
18761 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18764 char (*f) () = $ac_func;
18773 return f != $ac_func;
18778 rm -f conftest.$ac_objext conftest$ac_exeext
18779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18780 (eval $ac_link) 2>conftest.er1
18782 grep -v '^ *+' conftest.er1 >conftest.err
18784 cat conftest.err >&5
18785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18786 (exit $ac_status); } &&
18787 { ac_try='test -z "$ac_c_werror_flag"
18788 || test ! -s conftest.err'
18789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18790 (eval $ac_try) 2>&5
18792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18793 (exit $ac_status); }; } &&
18794 { ac_try='test -s conftest$ac_exeext'
18795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18796 (eval $ac_try) 2>&5
18798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18799 (exit $ac_status); }; }; then
18800 eval "$as_ac_var=yes"
18802 echo "$as_me: failed program was:" >&5
18803 sed 's/^/| /' conftest.$ac_ext >&5
18805 eval "$as_ac_var=no"
18807 rm -f conftest.err conftest.$ac_objext \
18808 conftest$ac_exeext conftest.$ac_ext
18810 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18811 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18812 if test `eval echo '${'$as_ac_var'}'` = yes; then
18813 cat >>confdefs.h <<_ACEOF
18814 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18816 cat >>confdefs.h <<\_ACEOF
18817 #define HAVE_INET_PTON 1
18824 for ac_func in inet_ntop
18826 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18827 echo "$as_me:$LINENO: checking for $ac_func" >&5
18828 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18829 if eval "test \"\${$as_ac_var+set}\" = set"; then
18830 echo $ECHO_N "(cached) $ECHO_C" >&6
18832 cat >conftest.$ac_ext <<_ACEOF
18835 cat confdefs.h >>conftest.$ac_ext
18836 cat >>conftest.$ac_ext <<_ACEOF
18837 /* end confdefs.h. */
18838 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18839 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18840 #define $ac_func innocuous_$ac_func
18842 /* System header to define __stub macros and hopefully few prototypes,
18843 which can conflict with char $ac_func (); below.
18844 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18845 <limits.h> exists even on freestanding compilers. */
18848 # include <limits.h>
18850 # include <assert.h>
18855 /* Override any gcc2 internal prototype to avoid an error. */
18860 /* We use char because int might match the return type of a gcc2
18861 builtin and then its argument prototype would still apply. */
18863 /* The GNU C library defines this for functions which it implements
18864 to always fail with ENOSYS. Some functions are actually named
18865 something starting with __ and the normal name is an alias. */
18866 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18869 char (*f) () = $ac_func;
18878 return f != $ac_func;
18883 rm -f conftest.$ac_objext conftest$ac_exeext
18884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18885 (eval $ac_link) 2>conftest.er1
18887 grep -v '^ *+' conftest.er1 >conftest.err
18889 cat conftest.err >&5
18890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18891 (exit $ac_status); } &&
18892 { ac_try='test -z "$ac_c_werror_flag"
18893 || test ! -s conftest.err'
18894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18895 (eval $ac_try) 2>&5
18897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18898 (exit $ac_status); }; } &&
18899 { ac_try='test -s conftest$ac_exeext'
18900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18901 (eval $ac_try) 2>&5
18903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18904 (exit $ac_status); }; }; then
18905 eval "$as_ac_var=yes"
18907 echo "$as_me: failed program was:" >&5
18908 sed 's/^/| /' conftest.$ac_ext >&5
18910 eval "$as_ac_var=no"
18912 rm -f conftest.err conftest.$ac_objext \
18913 conftest$ac_exeext conftest.$ac_ext
18915 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18916 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18917 if test `eval echo '${'$as_ac_var'}'` = yes; then
18918 cat >>confdefs.h <<_ACEOF
18919 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18921 cat >>confdefs.h <<\_ACEOF
18922 #define HAVE_INET_NTOP 1
18929 for ac_func in gethostbyname2
18931 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18932 echo "$as_me:$LINENO: checking for $ac_func" >&5
18933 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18934 if eval "test \"\${$as_ac_var+set}\" = set"; then
18935 echo $ECHO_N "(cached) $ECHO_C" >&6
18937 cat >conftest.$ac_ext <<_ACEOF
18940 cat confdefs.h >>conftest.$ac_ext
18941 cat >>conftest.$ac_ext <<_ACEOF
18942 /* end confdefs.h. */
18943 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18944 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18945 #define $ac_func innocuous_$ac_func
18947 /* System header to define __stub macros and hopefully few prototypes,
18948 which can conflict with char $ac_func (); below.
18949 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18950 <limits.h> exists even on freestanding compilers. */
18953 # include <limits.h>
18955 # include <assert.h>
18960 /* Override any gcc2 internal prototype to avoid an error. */
18965 /* We use char because int might match the return type of a gcc2
18966 builtin and then its argument prototype would still apply. */
18968 /* The GNU C library defines this for functions which it implements
18969 to always fail with ENOSYS. Some functions are actually named
18970 something starting with __ and the normal name is an alias. */
18971 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18974 char (*f) () = $ac_func;
18983 return f != $ac_func;
18988 rm -f conftest.$ac_objext conftest$ac_exeext
18989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18990 (eval $ac_link) 2>conftest.er1
18992 grep -v '^ *+' conftest.er1 >conftest.err
18994 cat conftest.err >&5
18995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18996 (exit $ac_status); } &&
18997 { ac_try='test -z "$ac_c_werror_flag"
18998 || test ! -s conftest.err'
18999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19000 (eval $ac_try) 2>&5
19002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19003 (exit $ac_status); }; } &&
19004 { ac_try='test -s conftest$ac_exeext'
19005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19006 (eval $ac_try) 2>&5
19008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19009 (exit $ac_status); }; }; then
19010 eval "$as_ac_var=yes"
19012 echo "$as_me: failed program was:" >&5
19013 sed 's/^/| /' conftest.$ac_ext >&5
19015 eval "$as_ac_var=no"
19017 rm -f conftest.err conftest.$ac_objext \
19018 conftest$ac_exeext conftest.$ac_ext
19020 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19021 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19022 if test `eval echo '${'$as_ac_var'}'` = yes; then
19023 cat >>confdefs.h <<_ACEOF
19024 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19026 cat >>confdefs.h <<\_ACEOF
19027 #define HAVE_GETHOSTBYNAME2 1
19034 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
19035 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
19036 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
19037 echo $ECHO_N "(cached) $ECHO_C" >&6
19039 cat >conftest.$ac_ext <<_ACEOF
19042 cat confdefs.h >>conftest.$ac_ext
19043 cat >>conftest.$ac_ext <<_ACEOF
19044 /* end confdefs.h. */
19045 #include <sys/socket.h>
19049 struct sockaddr s; s.sa_len;
19054 rm -f conftest.$ac_objext
19055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19056 (eval $ac_compile) 2>conftest.er1
19058 grep -v '^ *+' conftest.er1 >conftest.err
19060 cat conftest.err >&5
19061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19062 (exit $ac_status); } &&
19063 { ac_try='test -z "$ac_c_werror_flag"
19064 || test ! -s conftest.err'
19065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19066 (eval $ac_try) 2>&5
19068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19069 (exit $ac_status); }; } &&
19070 { ac_try='test -s conftest.$ac_objext'
19071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19072 (eval $ac_try) 2>&5
19074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19075 (exit $ac_status); }; }; then
19076 ac_cv_struct_sockaddr_sa_len=yes
19078 echo "$as_me: failed program was:" >&5
19079 sed 's/^/| /' conftest.$ac_ext >&5
19081 ac_cv_struct_sockaddr_sa_len=no
19083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19085 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
19086 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
19088 if test $ac_cv_struct_sockaddr_sa_len = yes; then
19090 cat >>confdefs.h <<\_ACEOF
19091 #define HAVE_SA_LEN 1
19097 echo "$as_me:$LINENO: checking for IPv6 support" >&5
19098 echo $ECHO_N "checking for IPv6 support... $ECHO_C" >&6
19099 if test "${ac_cv_ipv6_support+set}" = set; then
19100 echo $ECHO_N "(cached) $ECHO_C" >&6
19102 cat >conftest.$ac_ext <<_ACEOF
19105 cat confdefs.h >>conftest.$ac_ext
19106 cat >>conftest.$ac_ext <<_ACEOF
19107 /* end confdefs.h. */
19108 #include <sys/types.h>
19109 #include <sys/socket.h>
19110 #include <netinet/in.h>
19114 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] =
19120 rm -f conftest.$ac_objext conftest$ac_exeext
19121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19122 (eval $ac_link) 2>conftest.er1
19124 grep -v '^ *+' conftest.er1 >conftest.err
19126 cat conftest.err >&5
19127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19128 (exit $ac_status); } &&
19129 { ac_try='test -z "$ac_c_werror_flag"
19130 || test ! -s conftest.err'
19131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19132 (eval $ac_try) 2>&5
19134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19135 (exit $ac_status); }; } &&
19136 { ac_try='test -s conftest$ac_exeext'
19137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19138 (eval $ac_try) 2>&5
19140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19141 (exit $ac_status); }; }; then
19142 ac_cv_ipv6_support=yes
19144 echo "$as_me: failed program was:" >&5
19145 sed 's/^/| /' conftest.$ac_ext >&5
19147 ac_cv_ipv6_support=no
19149 rm -f conftest.err conftest.$ac_objext \
19150 conftest$ac_exeext conftest.$ac_ext
19152 echo "$as_me:$LINENO: result: $ac_cv_ipv6_support" >&5
19153 echo "${ECHO_T}$ac_cv_ipv6_support" >&6
19155 if test "$ac_cv_ipv6_support" = yes; then
19157 cat >>confdefs.h <<\_ACEOF
19158 #define HAVE_IPV6 1
19166 for ac_func in strftime
19168 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19169 echo "$as_me:$LINENO: checking for $ac_func" >&5
19170 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19171 if eval "test \"\${$as_ac_var+set}\" = set"; then
19172 echo $ECHO_N "(cached) $ECHO_C" >&6
19174 cat >conftest.$ac_ext <<_ACEOF
19177 cat confdefs.h >>conftest.$ac_ext
19178 cat >>conftest.$ac_ext <<_ACEOF
19179 /* end confdefs.h. */
19180 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19181 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19182 #define $ac_func innocuous_$ac_func
19184 /* System header to define __stub macros and hopefully few prototypes,
19185 which can conflict with char $ac_func (); below.
19186 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19187 <limits.h> exists even on freestanding compilers. */
19190 # include <limits.h>
19192 # include <assert.h>
19197 /* Override any gcc2 internal prototype to avoid an error. */
19202 /* We use char because int might match the return type of a gcc2
19203 builtin and then its argument prototype would still apply. */
19205 /* The GNU C library defines this for functions which it implements
19206 to always fail with ENOSYS. Some functions are actually named
19207 something starting with __ and the normal name is an alias. */
19208 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19211 char (*f) () = $ac_func;
19220 return f != $ac_func;
19225 rm -f conftest.$ac_objext conftest$ac_exeext
19226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19227 (eval $ac_link) 2>conftest.er1
19229 grep -v '^ *+' conftest.er1 >conftest.err
19231 cat conftest.err >&5
19232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19233 (exit $ac_status); } &&
19234 { ac_try='test -z "$ac_c_werror_flag"
19235 || test ! -s conftest.err'
19236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19237 (eval $ac_try) 2>&5
19239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19240 (exit $ac_status); }; } &&
19241 { ac_try='test -s conftest$ac_exeext'
19242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19243 (eval $ac_try) 2>&5
19245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19246 (exit $ac_status); }; }; then
19247 eval "$as_ac_var=yes"
19249 echo "$as_me: failed program was:" >&5
19250 sed 's/^/| /' conftest.$ac_ext >&5
19252 eval "$as_ac_var=no"
19254 rm -f conftest.err conftest.$ac_objext \
19255 conftest$ac_exeext conftest.$ac_ext
19257 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19258 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19259 if test `eval echo '${'$as_ac_var'}'` = yes; then
19260 cat >>confdefs.h <<_ACEOF
19261 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19265 # strftime is in -lintl on SCO UNIX.
19266 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
19267 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
19268 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19269 echo $ECHO_N "(cached) $ECHO_C" >&6
19271 ac_check_lib_save_LIBS=$LIBS
19272 LIBS="-lintl $LIBS"
19273 cat >conftest.$ac_ext <<_ACEOF
19276 cat confdefs.h >>conftest.$ac_ext
19277 cat >>conftest.$ac_ext <<_ACEOF
19278 /* end confdefs.h. */
19280 /* Override any gcc2 internal prototype to avoid an error. */
19284 /* We use char because int might match the return type of a gcc2
19285 builtin and then its argument prototype would still apply. */
19295 rm -f conftest.$ac_objext conftest$ac_exeext
19296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19297 (eval $ac_link) 2>conftest.er1
19299 grep -v '^ *+' conftest.er1 >conftest.err
19301 cat conftest.err >&5
19302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19303 (exit $ac_status); } &&
19304 { ac_try='test -z "$ac_c_werror_flag"
19305 || test ! -s conftest.err'
19306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19307 (eval $ac_try) 2>&5
19309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19310 (exit $ac_status); }; } &&
19311 { ac_try='test -s conftest$ac_exeext'
19312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19313 (eval $ac_try) 2>&5
19315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19316 (exit $ac_status); }; }; then
19317 ac_cv_lib_intl_strftime=yes
19319 echo "$as_me: failed program was:" >&5
19320 sed 's/^/| /' conftest.$ac_ext >&5
19322 ac_cv_lib_intl_strftime=no
19324 rm -f conftest.err conftest.$ac_objext \
19325 conftest$ac_exeext conftest.$ac_ext
19326 LIBS=$ac_check_lib_save_LIBS
19328 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
19329 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
19330 if test $ac_cv_lib_intl_strftime = yes; then
19331 cat >>confdefs.h <<\_ACEOF
19332 #define HAVE_STRFTIME 1
19335 LIBS="-lintl $LIBS"
19342 for ac_func in vprintf
19344 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19345 echo "$as_me:$LINENO: checking for $ac_func" >&5
19346 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19347 if eval "test \"\${$as_ac_var+set}\" = set"; then
19348 echo $ECHO_N "(cached) $ECHO_C" >&6
19350 cat >conftest.$ac_ext <<_ACEOF
19353 cat confdefs.h >>conftest.$ac_ext
19354 cat >>conftest.$ac_ext <<_ACEOF
19355 /* end confdefs.h. */
19356 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19357 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19358 #define $ac_func innocuous_$ac_func
19360 /* System header to define __stub macros and hopefully few prototypes,
19361 which can conflict with char $ac_func (); below.
19362 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19363 <limits.h> exists even on freestanding compilers. */
19366 # include <limits.h>
19368 # include <assert.h>
19373 /* Override any gcc2 internal prototype to avoid an error. */
19378 /* We use char because int might match the return type of a gcc2
19379 builtin and then its argument prototype would still apply. */
19381 /* The GNU C library defines this for functions which it implements
19382 to always fail with ENOSYS. Some functions are actually named
19383 something starting with __ and the normal name is an alias. */
19384 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19387 char (*f) () = $ac_func;
19396 return f != $ac_func;
19401 rm -f conftest.$ac_objext conftest$ac_exeext
19402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19403 (eval $ac_link) 2>conftest.er1
19405 grep -v '^ *+' conftest.er1 >conftest.err
19407 cat conftest.err >&5
19408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19409 (exit $ac_status); } &&
19410 { ac_try='test -z "$ac_c_werror_flag"
19411 || test ! -s conftest.err'
19412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19413 (eval $ac_try) 2>&5
19415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19416 (exit $ac_status); }; } &&
19417 { ac_try='test -s conftest$ac_exeext'
19418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19419 (eval $ac_try) 2>&5
19421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19422 (exit $ac_status); }; }; then
19423 eval "$as_ac_var=yes"
19425 echo "$as_me: failed program was:" >&5
19426 sed 's/^/| /' conftest.$ac_ext >&5
19428 eval "$as_ac_var=no"
19430 rm -f conftest.err conftest.$ac_objext \
19431 conftest$ac_exeext conftest.$ac_ext
19433 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19434 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19435 if test `eval echo '${'$as_ac_var'}'` = yes; then
19436 cat >>confdefs.h <<_ACEOF
19437 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19440 echo "$as_me:$LINENO: checking for _doprnt" >&5
19441 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
19442 if test "${ac_cv_func__doprnt+set}" = set; then
19443 echo $ECHO_N "(cached) $ECHO_C" >&6
19445 cat >conftest.$ac_ext <<_ACEOF
19448 cat confdefs.h >>conftest.$ac_ext
19449 cat >>conftest.$ac_ext <<_ACEOF
19450 /* end confdefs.h. */
19451 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
19452 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19453 #define _doprnt innocuous__doprnt
19455 /* System header to define __stub macros and hopefully few prototypes,
19456 which can conflict with char _doprnt (); below.
19457 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19458 <limits.h> exists even on freestanding compilers. */
19461 # include <limits.h>
19463 # include <assert.h>
19468 /* Override any gcc2 internal prototype to avoid an error. */
19473 /* We use char because int might match the return type of a gcc2
19474 builtin and then its argument prototype would still apply. */
19476 /* The GNU C library defines this for functions which it implements
19477 to always fail with ENOSYS. Some functions are actually named
19478 something starting with __ and the normal name is an alias. */
19479 #if defined (__stub__doprnt) || defined (__stub____doprnt)
19482 char (*f) () = _doprnt;
19491 return f != _doprnt;
19496 rm -f conftest.$ac_objext conftest$ac_exeext
19497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19498 (eval $ac_link) 2>conftest.er1
19500 grep -v '^ *+' conftest.er1 >conftest.err
19502 cat conftest.err >&5
19503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19504 (exit $ac_status); } &&
19505 { ac_try='test -z "$ac_c_werror_flag"
19506 || test ! -s conftest.err'
19507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19508 (eval $ac_try) 2>&5
19510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19511 (exit $ac_status); }; } &&
19512 { ac_try='test -s conftest$ac_exeext'
19513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19514 (eval $ac_try) 2>&5
19516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19517 (exit $ac_status); }; }; then
19518 ac_cv_func__doprnt=yes
19520 echo "$as_me: failed program was:" >&5
19521 sed 's/^/| /' conftest.$ac_ext >&5
19523 ac_cv_func__doprnt=no
19525 rm -f conftest.err conftest.$ac_objext \
19526 conftest$ac_exeext conftest.$ac_ext
19528 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
19529 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
19530 if test $ac_cv_func__doprnt = yes; then
19532 cat >>confdefs.h <<\_ACEOF
19533 #define HAVE_DOPRNT 1
19542 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19543 # for constant arguments. Useless!
19544 echo "$as_me:$LINENO: checking for working alloca.h" >&5
19545 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
19546 if test "${ac_cv_working_alloca_h+set}" = set; then
19547 echo $ECHO_N "(cached) $ECHO_C" >&6
19549 cat >conftest.$ac_ext <<_ACEOF
19552 cat confdefs.h >>conftest.$ac_ext
19553 cat >>conftest.$ac_ext <<_ACEOF
19554 /* end confdefs.h. */
19555 #include <alloca.h>
19559 char *p = (char *) alloca (2 * sizeof (int));
19564 rm -f conftest.$ac_objext conftest$ac_exeext
19565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19566 (eval $ac_link) 2>conftest.er1
19568 grep -v '^ *+' conftest.er1 >conftest.err
19570 cat conftest.err >&5
19571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19572 (exit $ac_status); } &&
19573 { ac_try='test -z "$ac_c_werror_flag"
19574 || test ! -s conftest.err'
19575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19576 (eval $ac_try) 2>&5
19578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19579 (exit $ac_status); }; } &&
19580 { ac_try='test -s conftest$ac_exeext'
19581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19582 (eval $ac_try) 2>&5
19584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19585 (exit $ac_status); }; }; then
19586 ac_cv_working_alloca_h=yes
19588 echo "$as_me: failed program was:" >&5
19589 sed 's/^/| /' conftest.$ac_ext >&5
19591 ac_cv_working_alloca_h=no
19593 rm -f conftest.err conftest.$ac_objext \
19594 conftest$ac_exeext conftest.$ac_ext
19596 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19597 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
19598 if test $ac_cv_working_alloca_h = yes; then
19600 cat >>confdefs.h <<\_ACEOF
19601 #define HAVE_ALLOCA_H 1
19606 echo "$as_me:$LINENO: checking for alloca" >&5
19607 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
19608 if test "${ac_cv_func_alloca_works+set}" = set; then
19609 echo $ECHO_N "(cached) $ECHO_C" >&6
19611 cat >conftest.$ac_ext <<_ACEOF
19614 cat confdefs.h >>conftest.$ac_ext
19615 cat >>conftest.$ac_ext <<_ACEOF
19616 /* end confdefs.h. */
19618 # define alloca __builtin_alloca
19621 # include <malloc.h>
19622 # define alloca _alloca
19625 # include <alloca.h>
19630 # ifndef alloca /* predefined by HP cc +Olibcalls */
19641 char *p = (char *) alloca (1);
19646 rm -f conftest.$ac_objext conftest$ac_exeext
19647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19648 (eval $ac_link) 2>conftest.er1
19650 grep -v '^ *+' conftest.er1 >conftest.err
19652 cat conftest.err >&5
19653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19654 (exit $ac_status); } &&
19655 { ac_try='test -z "$ac_c_werror_flag"
19656 || test ! -s conftest.err'
19657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19658 (eval $ac_try) 2>&5
19660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19661 (exit $ac_status); }; } &&
19662 { ac_try='test -s conftest$ac_exeext'
19663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19664 (eval $ac_try) 2>&5
19666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19667 (exit $ac_status); }; }; then
19668 ac_cv_func_alloca_works=yes
19670 echo "$as_me: failed program was:" >&5
19671 sed 's/^/| /' conftest.$ac_ext >&5
19673 ac_cv_func_alloca_works=no
19675 rm -f conftest.err conftest.$ac_objext \
19676 conftest$ac_exeext conftest.$ac_ext
19678 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19679 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
19681 if test $ac_cv_func_alloca_works = yes; then
19683 cat >>confdefs.h <<\_ACEOF
19684 #define HAVE_ALLOCA 1
19688 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19689 # that cause trouble. Some versions do not even contain alloca or
19690 # contain a buggy version. If you still want to use their alloca,
19691 # use ar to extract alloca.o from them instead of compiling alloca.c.
19693 ALLOCA=alloca.$ac_objext
19695 cat >>confdefs.h <<\_ACEOF
19700 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19701 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
19702 if test "${ac_cv_os_cray+set}" = set; then
19703 echo $ECHO_N "(cached) $ECHO_C" >&6
19705 cat >conftest.$ac_ext <<_ACEOF
19708 cat confdefs.h >>conftest.$ac_ext
19709 cat >>conftest.$ac_ext <<_ACEOF
19710 /* end confdefs.h. */
19711 #if defined(CRAY) && ! defined(CRAY2)
19718 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19719 $EGREP "webecray" >/dev/null 2>&1; then
19727 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19728 echo "${ECHO_T}$ac_cv_os_cray" >&6
19729 if test $ac_cv_os_cray = yes; then
19730 for ac_func in _getb67 GETB67 getb67; do
19731 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19732 echo "$as_me:$LINENO: checking for $ac_func" >&5
19733 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19734 if eval "test \"\${$as_ac_var+set}\" = set"; then
19735 echo $ECHO_N "(cached) $ECHO_C" >&6
19737 cat >conftest.$ac_ext <<_ACEOF
19740 cat confdefs.h >>conftest.$ac_ext
19741 cat >>conftest.$ac_ext <<_ACEOF
19742 /* end confdefs.h. */
19743 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19744 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19745 #define $ac_func innocuous_$ac_func
19747 /* System header to define __stub macros and hopefully few prototypes,
19748 which can conflict with char $ac_func (); below.
19749 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19750 <limits.h> exists even on freestanding compilers. */
19753 # include <limits.h>
19755 # include <assert.h>
19760 /* Override any gcc2 internal prototype to avoid an error. */
19765 /* We use char because int might match the return type of a gcc2
19766 builtin and then its argument prototype would still apply. */
19768 /* The GNU C library defines this for functions which it implements
19769 to always fail with ENOSYS. Some functions are actually named
19770 something starting with __ and the normal name is an alias. */
19771 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19774 char (*f) () = $ac_func;
19783 return f != $ac_func;
19788 rm -f conftest.$ac_objext conftest$ac_exeext
19789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19790 (eval $ac_link) 2>conftest.er1
19792 grep -v '^ *+' conftest.er1 >conftest.err
19794 cat conftest.err >&5
19795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19796 (exit $ac_status); } &&
19797 { ac_try='test -z "$ac_c_werror_flag"
19798 || test ! -s conftest.err'
19799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19800 (eval $ac_try) 2>&5
19802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19803 (exit $ac_status); }; } &&
19804 { ac_try='test -s conftest$ac_exeext'
19805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19806 (eval $ac_try) 2>&5
19808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19809 (exit $ac_status); }; }; then
19810 eval "$as_ac_var=yes"
19812 echo "$as_me: failed program was:" >&5
19813 sed 's/^/| /' conftest.$ac_ext >&5
19815 eval "$as_ac_var=no"
19817 rm -f conftest.err conftest.$ac_objext \
19818 conftest$ac_exeext conftest.$ac_ext
19820 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19821 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19822 if test `eval echo '${'$as_ac_var'}'` = yes; then
19824 cat >>confdefs.h <<_ACEOF
19825 #define CRAY_STACKSEG_END $ac_func
19834 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19835 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
19836 if test "${ac_cv_c_stack_direction+set}" = set; then
19837 echo $ECHO_N "(cached) $ECHO_C" >&6
19839 if test "$cross_compiling" = yes; then
19840 ac_cv_c_stack_direction=0
19842 cat >conftest.$ac_ext <<_ACEOF
19845 cat confdefs.h >>conftest.$ac_ext
19846 cat >>conftest.$ac_ext <<_ACEOF
19847 /* end confdefs.h. */
19849 find_stack_direction ()
19851 static char *addr = 0;
19856 return find_stack_direction ();
19859 return (&dummy > addr) ? 1 : -1;
19865 exit (find_stack_direction () < 0);
19868 rm -f conftest$ac_exeext
19869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19870 (eval $ac_link) 2>&5
19872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19873 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19875 (eval $ac_try) 2>&5
19877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19878 (exit $ac_status); }; }; then
19879 ac_cv_c_stack_direction=1
19881 echo "$as_me: program exited with status $ac_status" >&5
19882 echo "$as_me: failed program was:" >&5
19883 sed 's/^/| /' conftest.$ac_ext >&5
19885 ( exit $ac_status )
19886 ac_cv_c_stack_direction=-1
19888 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19891 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19892 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
19894 cat >>confdefs.h <<_ACEOF
19895 #define STACK_DIRECTION $ac_cv_c_stack_direction
19901 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
19902 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
19903 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
19904 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
19905 echo $ECHO_N "(cached) $ECHO_C" >&6
19907 ac_check_lib_save_LIBS=$LIBS
19909 cat >conftest.$ac_ext <<_ACEOF
19912 cat confdefs.h >>conftest.$ac_ext
19913 cat >>conftest.$ac_ext <<_ACEOF
19914 /* end confdefs.h. */
19916 /* Override any gcc2 internal prototype to avoid an error. */
19920 /* We use char because int might match the return type of a gcc2
19921 builtin and then its argument prototype would still apply. */
19931 rm -f conftest.$ac_objext conftest$ac_exeext
19932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19933 (eval $ac_link) 2>conftest.er1
19935 grep -v '^ *+' conftest.er1 >conftest.err
19937 cat conftest.err >&5
19938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19939 (exit $ac_status); } &&
19940 { ac_try='test -z "$ac_c_werror_flag"
19941 || test ! -s conftest.err'
19942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19943 (eval $ac_try) 2>&5
19945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19946 (exit $ac_status); }; } &&
19947 { ac_try='test -s conftest$ac_exeext'
19948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19949 (eval $ac_try) 2>&5
19951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19952 (exit $ac_status); }; }; then
19953 ac_cv_lib_sun_getmntent=yes
19955 echo "$as_me: failed program was:" >&5
19956 sed 's/^/| /' conftest.$ac_ext >&5
19958 ac_cv_lib_sun_getmntent=no
19960 rm -f conftest.err conftest.$ac_objext \
19961 conftest$ac_exeext conftest.$ac_ext
19962 LIBS=$ac_check_lib_save_LIBS
19964 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
19965 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
19966 if test $ac_cv_lib_sun_getmntent = yes; then
19969 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
19970 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
19971 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
19972 echo $ECHO_N "(cached) $ECHO_C" >&6
19974 ac_check_lib_save_LIBS=$LIBS
19976 cat >conftest.$ac_ext <<_ACEOF
19979 cat confdefs.h >>conftest.$ac_ext
19980 cat >>conftest.$ac_ext <<_ACEOF
19981 /* end confdefs.h. */
19983 /* Override any gcc2 internal prototype to avoid an error. */
19987 /* We use char because int might match the return type of a gcc2
19988 builtin and then its argument prototype would still apply. */
19998 rm -f conftest.$ac_objext conftest$ac_exeext
19999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20000 (eval $ac_link) 2>conftest.er1
20002 grep -v '^ *+' conftest.er1 >conftest.err
20004 cat conftest.err >&5
20005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20006 (exit $ac_status); } &&
20007 { ac_try='test -z "$ac_c_werror_flag"
20008 || test ! -s conftest.err'
20009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20010 (eval $ac_try) 2>&5
20012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20013 (exit $ac_status); }; } &&
20014 { ac_try='test -s conftest$ac_exeext'
20015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20016 (eval $ac_try) 2>&5
20018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20019 (exit $ac_status); }; }; then
20020 ac_cv_lib_seq_getmntent=yes
20022 echo "$as_me: failed program was:" >&5
20023 sed 's/^/| /' conftest.$ac_ext >&5
20025 ac_cv_lib_seq_getmntent=no
20027 rm -f conftest.err conftest.$ac_objext \
20028 conftest$ac_exeext conftest.$ac_ext
20029 LIBS=$ac_check_lib_save_LIBS
20031 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
20032 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
20033 if test $ac_cv_lib_seq_getmntent = yes; then
20036 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
20037 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
20038 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
20039 echo $ECHO_N "(cached) $ECHO_C" >&6
20041 ac_check_lib_save_LIBS=$LIBS
20043 cat >conftest.$ac_ext <<_ACEOF
20046 cat confdefs.h >>conftest.$ac_ext
20047 cat >>conftest.$ac_ext <<_ACEOF
20048 /* end confdefs.h. */
20050 /* Override any gcc2 internal prototype to avoid an error. */
20054 /* We use char because int might match the return type of a gcc2
20055 builtin and then its argument prototype would still apply. */
20065 rm -f conftest.$ac_objext conftest$ac_exeext
20066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20067 (eval $ac_link) 2>conftest.er1
20069 grep -v '^ *+' conftest.er1 >conftest.err
20071 cat conftest.err >&5
20072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20073 (exit $ac_status); } &&
20074 { ac_try='test -z "$ac_c_werror_flag"
20075 || test ! -s conftest.err'
20076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20077 (eval $ac_try) 2>&5
20079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20080 (exit $ac_status); }; } &&
20081 { ac_try='test -s conftest$ac_exeext'
20082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20083 (eval $ac_try) 2>&5
20085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20086 (exit $ac_status); }; }; then
20087 ac_cv_lib_gen_getmntent=yes
20089 echo "$as_me: failed program was:" >&5
20090 sed 's/^/| /' conftest.$ac_ext >&5
20092 ac_cv_lib_gen_getmntent=no
20094 rm -f conftest.err conftest.$ac_objext \
20095 conftest$ac_exeext conftest.$ac_ext
20096 LIBS=$ac_check_lib_save_LIBS
20098 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
20099 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
20100 if test $ac_cv_lib_gen_getmntent = yes; then
20109 for ac_func in getmntent
20111 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20112 echo "$as_me:$LINENO: checking for $ac_func" >&5
20113 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20114 if eval "test \"\${$as_ac_var+set}\" = set"; then
20115 echo $ECHO_N "(cached) $ECHO_C" >&6
20117 cat >conftest.$ac_ext <<_ACEOF
20120 cat confdefs.h >>conftest.$ac_ext
20121 cat >>conftest.$ac_ext <<_ACEOF
20122 /* end confdefs.h. */
20123 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20124 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20125 #define $ac_func innocuous_$ac_func
20127 /* System header to define __stub macros and hopefully few prototypes,
20128 which can conflict with char $ac_func (); below.
20129 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20130 <limits.h> exists even on freestanding compilers. */
20133 # include <limits.h>
20135 # include <assert.h>
20140 /* Override any gcc2 internal prototype to avoid an error. */
20145 /* We use char because int might match the return type of a gcc2
20146 builtin and then its argument prototype would still apply. */
20148 /* The GNU C library defines this for functions which it implements
20149 to always fail with ENOSYS. Some functions are actually named
20150 something starting with __ and the normal name is an alias. */
20151 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20154 char (*f) () = $ac_func;
20163 return f != $ac_func;
20168 rm -f conftest.$ac_objext conftest$ac_exeext
20169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20170 (eval $ac_link) 2>conftest.er1
20172 grep -v '^ *+' conftest.er1 >conftest.err
20174 cat conftest.err >&5
20175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20176 (exit $ac_status); } &&
20177 { ac_try='test -z "$ac_c_werror_flag"
20178 || test ! -s conftest.err'
20179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20180 (eval $ac_try) 2>&5
20182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20183 (exit $ac_status); }; } &&
20184 { ac_try='test -s conftest$ac_exeext'
20185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20186 (eval $ac_try) 2>&5
20188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20189 (exit $ac_status); }; }; then
20190 eval "$as_ac_var=yes"
20192 echo "$as_me: failed program was:" >&5
20193 sed 's/^/| /' conftest.$ac_ext >&5
20195 eval "$as_ac_var=no"
20197 rm -f conftest.err conftest.$ac_objext \
20198 conftest$ac_exeext conftest.$ac_ext
20200 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20201 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20202 if test `eval echo '${'$as_ac_var'}'` = yes; then
20203 cat >>confdefs.h <<_ACEOF
20204 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20211 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
20212 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
20213 if test "${ac_cv_func_closedir_void+set}" = set; then
20214 echo $ECHO_N "(cached) $ECHO_C" >&6
20216 if test "$cross_compiling" = yes; then
20217 ac_cv_func_closedir_void=yes
20219 cat >conftest.$ac_ext <<_ACEOF
20222 cat confdefs.h >>conftest.$ac_ext
20223 cat >>conftest.$ac_ext <<_ACEOF
20224 /* end confdefs.h. */
20225 $ac_includes_default
20226 #include <$ac_header_dirent>
20227 #ifndef __cplusplus
20234 exit (closedir (opendir (".")) != 0);
20239 rm -f conftest$ac_exeext
20240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20241 (eval $ac_link) 2>&5
20243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20244 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20246 (eval $ac_try) 2>&5
20248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20249 (exit $ac_status); }; }; then
20250 ac_cv_func_closedir_void=no
20252 echo "$as_me: program exited with status $ac_status" >&5
20253 echo "$as_me: failed program was:" >&5
20254 sed 's/^/| /' conftest.$ac_ext >&5
20256 ( exit $ac_status )
20257 ac_cv_func_closedir_void=yes
20259 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20262 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
20263 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
20264 if test $ac_cv_func_closedir_void = yes; then
20266 cat >>confdefs.h <<\_ACEOF
20267 #define CLOSEDIR_VOID 1
20272 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
20273 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
20274 if test "${ac_cv_func_setpgrp_void+set}" = set; then
20275 echo $ECHO_N "(cached) $ECHO_C" >&6
20277 if test "$cross_compiling" = yes; then
20278 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
20279 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
20280 { (exit 1); exit 1; }; }
20282 cat >conftest.$ac_ext <<_ACEOF
20285 cat confdefs.h >>conftest.$ac_ext
20286 cat >>conftest.$ac_ext <<_ACEOF
20287 /* end confdefs.h. */
20289 # include <unistd.h>
20295 /* If this system has a BSD-style setpgrp which takes arguments,
20296 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
20297 exit successfully. */
20298 exit (setpgrp (1,1) == -1 ? 0 : 1);
20303 rm -f conftest$ac_exeext
20304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20305 (eval $ac_link) 2>&5
20307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20308 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20310 (eval $ac_try) 2>&5
20312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20313 (exit $ac_status); }; }; then
20314 ac_cv_func_setpgrp_void=no
20316 echo "$as_me: program exited with status $ac_status" >&5
20317 echo "$as_me: failed program was:" >&5
20318 sed 's/^/| /' conftest.$ac_ext >&5
20320 ( exit $ac_status )
20321 ac_cv_func_setpgrp_void=yes
20323 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20326 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
20327 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
20328 if test $ac_cv_func_setpgrp_void = yes; then
20330 cat >>confdefs.h <<\_ACEOF
20331 #define SETPGRP_VOID 1
20335 # AC_FUNC_FNMATCH dnl use local version
20338 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
20339 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
20340 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
20341 echo $ECHO_N "(cached) $ECHO_C" >&6
20343 ac_check_lib_save_LIBS=$LIBS
20344 LIBS="-lxpg4 $LIBS"
20345 cat >conftest.$ac_ext <<_ACEOF
20348 cat confdefs.h >>conftest.$ac_ext
20349 cat >>conftest.$ac_ext <<_ACEOF
20350 /* end confdefs.h. */
20352 /* Override any gcc2 internal prototype to avoid an error. */
20356 /* We use char because int might match the return type of a gcc2
20357 builtin and then its argument prototype would still apply. */
20367 rm -f conftest.$ac_objext conftest$ac_exeext
20368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20369 (eval $ac_link) 2>conftest.er1
20371 grep -v '^ *+' conftest.er1 >conftest.err
20373 cat conftest.err >&5
20374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20375 (exit $ac_status); } &&
20376 { ac_try='test -z "$ac_c_werror_flag"
20377 || test ! -s conftest.err'
20378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20379 (eval $ac_try) 2>&5
20381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20382 (exit $ac_status); }; } &&
20383 { ac_try='test -s conftest$ac_exeext'
20384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20385 (eval $ac_try) 2>&5
20387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20388 (exit $ac_status); }; }; then
20389 ac_cv_lib_xpg4_setlocale=yes
20391 echo "$as_me: failed program was:" >&5
20392 sed 's/^/| /' conftest.$ac_ext >&5
20394 ac_cv_lib_xpg4_setlocale=no
20396 rm -f conftest.err conftest.$ac_objext \
20397 conftest$ac_exeext conftest.$ac_ext
20398 LIBS=$ac_check_lib_save_LIBS
20400 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
20401 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
20402 if test $ac_cv_lib_xpg4_setlocale = yes; then
20403 LIBS="$LIBS -lxpg4"
20409 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
20410 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
20411 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
20412 echo $ECHO_N "(cached) $ECHO_C" >&6
20414 ac_check_lib_save_LIBS=$LIBS
20416 cat >conftest.$ac_ext <<_ACEOF
20419 cat confdefs.h >>conftest.$ac_ext
20420 cat >>conftest.$ac_ext <<_ACEOF
20421 /* end confdefs.h. */
20423 /* Override any gcc2 internal prototype to avoid an error. */
20427 /* We use char because int might match the return type of a gcc2
20428 builtin and then its argument prototype would still apply. */
20438 rm -f conftest.$ac_objext conftest$ac_exeext
20439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20440 (eval $ac_link) 2>conftest.er1
20442 grep -v '^ *+' conftest.er1 >conftest.err
20444 cat conftest.err >&5
20445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20446 (exit $ac_status); } &&
20447 { ac_try='test -z "$ac_c_werror_flag"
20448 || test ! -s conftest.err'
20449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20450 (eval $ac_try) 2>&5
20452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20453 (exit $ac_status); }; } &&
20454 { ac_try='test -s conftest$ac_exeext'
20455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20456 (eval $ac_try) 2>&5
20458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20459 (exit $ac_status); }; }; then
20460 ac_cv_lib_sun_getpwnam=yes
20462 echo "$as_me: failed program was:" >&5
20463 sed 's/^/| /' conftest.$ac_ext >&5
20465 ac_cv_lib_sun_getpwnam=no
20467 rm -f conftest.err conftest.$ac_objext \
20468 conftest$ac_exeext conftest.$ac_ext
20469 LIBS=$ac_check_lib_save_LIBS
20471 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
20472 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
20473 if test $ac_cv_lib_sun_getpwnam = yes; then
20474 cat >>confdefs.h <<_ACEOF
20475 #define HAVE_LIBSUN 1
20484 for ac_header in zlib.h
20486 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20487 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20488 echo "$as_me:$LINENO: checking for $ac_header" >&5
20489 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20490 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20491 echo $ECHO_N "(cached) $ECHO_C" >&6
20493 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20494 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20496 # Is the header compilable?
20497 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20498 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20499 cat >conftest.$ac_ext <<_ACEOF
20502 cat confdefs.h >>conftest.$ac_ext
20503 cat >>conftest.$ac_ext <<_ACEOF
20504 /* end confdefs.h. */
20505 $ac_includes_default
20506 #include <$ac_header>
20508 rm -f conftest.$ac_objext
20509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20510 (eval $ac_compile) 2>conftest.er1
20512 grep -v '^ *+' conftest.er1 >conftest.err
20514 cat conftest.err >&5
20515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20516 (exit $ac_status); } &&
20517 { ac_try='test -z "$ac_c_werror_flag"
20518 || test ! -s conftest.err'
20519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20520 (eval $ac_try) 2>&5
20522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20523 (exit $ac_status); }; } &&
20524 { ac_try='test -s conftest.$ac_objext'
20525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20526 (eval $ac_try) 2>&5
20528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20529 (exit $ac_status); }; }; then
20530 ac_header_compiler=yes
20532 echo "$as_me: failed program was:" >&5
20533 sed 's/^/| /' conftest.$ac_ext >&5
20535 ac_header_compiler=no
20537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20538 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20539 echo "${ECHO_T}$ac_header_compiler" >&6
20541 # Is the header present?
20542 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20543 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20544 cat >conftest.$ac_ext <<_ACEOF
20547 cat confdefs.h >>conftest.$ac_ext
20548 cat >>conftest.$ac_ext <<_ACEOF
20549 /* end confdefs.h. */
20550 #include <$ac_header>
20552 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20553 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20555 grep -v '^ *+' conftest.er1 >conftest.err
20557 cat conftest.err >&5
20558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20559 (exit $ac_status); } >/dev/null; then
20560 if test -s conftest.err; then
20561 ac_cpp_err=$ac_c_preproc_warn_flag
20562 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20569 if test -z "$ac_cpp_err"; then
20570 ac_header_preproc=yes
20572 echo "$as_me: failed program was:" >&5
20573 sed 's/^/| /' conftest.$ac_ext >&5
20575 ac_header_preproc=no
20577 rm -f conftest.err conftest.$ac_ext
20578 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20579 echo "${ECHO_T}$ac_header_preproc" >&6
20581 # So? What about this header?
20582 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20584 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20585 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20586 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20587 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20588 ac_header_preproc=yes
20591 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20592 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20593 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20594 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20595 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20596 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20597 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20598 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20599 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20600 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20601 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20602 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20605 ## ------------------------------------------ ##
20606 ## Report this to the AC_PACKAGE_NAME lists. ##
20607 ## ------------------------------------------ ##
20610 sed "s/^/$as_me: WARNING: /" >&2
20613 echo "$as_me:$LINENO: checking for $ac_header" >&5
20614 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20615 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20616 echo $ECHO_N "(cached) $ECHO_C" >&6
20618 eval "$as_ac_Header=\$ac_header_preproc"
20620 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20621 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20624 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20625 cat >>confdefs.h <<_ACEOF
20626 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20633 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
20634 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
20635 if test "${ac_cv_lib_z_deflate+set}" = set; then
20636 echo $ECHO_N "(cached) $ECHO_C" >&6
20638 ac_check_lib_save_LIBS=$LIBS
20640 cat >conftest.$ac_ext <<_ACEOF
20643 cat confdefs.h >>conftest.$ac_ext
20644 cat >>conftest.$ac_ext <<_ACEOF
20645 /* end confdefs.h. */
20647 /* Override any gcc2 internal prototype to avoid an error. */
20651 /* We use char because int might match the return type of a gcc2
20652 builtin and then its argument prototype would still apply. */
20662 rm -f conftest.$ac_objext conftest$ac_exeext
20663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20664 (eval $ac_link) 2>conftest.er1
20666 grep -v '^ *+' conftest.er1 >conftest.err
20668 cat conftest.err >&5
20669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20670 (exit $ac_status); } &&
20671 { ac_try='test -z "$ac_c_werror_flag"
20672 || test ! -s conftest.err'
20673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20674 (eval $ac_try) 2>&5
20676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20677 (exit $ac_status); }; } &&
20678 { ac_try='test -s conftest$ac_exeext'
20679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20680 (eval $ac_try) 2>&5
20682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20683 (exit $ac_status); }; }; then
20684 ac_cv_lib_z_deflate=yes
20686 echo "$as_me: failed program was:" >&5
20687 sed 's/^/| /' conftest.$ac_ext >&5
20689 ac_cv_lib_z_deflate=no
20691 rm -f conftest.err conftest.$ac_objext \
20692 conftest$ac_exeext conftest.$ac_ext
20693 LIBS=$ac_check_lib_save_LIBS
20695 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
20696 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
20697 if test $ac_cv_lib_z_deflate = yes; then
20702 if test x$FDLIBS = x-lz; then
20703 cat >>confdefs.h <<\_ACEOF
20704 #define HAVE_LIBZ 1
20710 if test "${ac_cv_header_sys_acl_h+set}" = set; then
20711 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
20712 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
20713 if test "${ac_cv_header_sys_acl_h+set}" = set; then
20714 echo $ECHO_N "(cached) $ECHO_C" >&6
20716 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
20717 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
20719 # Is the header compilable?
20720 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
20721 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
20722 cat >conftest.$ac_ext <<_ACEOF
20725 cat confdefs.h >>conftest.$ac_ext
20726 cat >>conftest.$ac_ext <<_ACEOF
20727 /* end confdefs.h. */
20728 $ac_includes_default
20729 #include <sys/acl.h>
20731 rm -f conftest.$ac_objext
20732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20733 (eval $ac_compile) 2>conftest.er1
20735 grep -v '^ *+' conftest.er1 >conftest.err
20737 cat conftest.err >&5
20738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20739 (exit $ac_status); } &&
20740 { ac_try='test -z "$ac_c_werror_flag"
20741 || test ! -s conftest.err'
20742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20743 (eval $ac_try) 2>&5
20745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20746 (exit $ac_status); }; } &&
20747 { ac_try='test -s conftest.$ac_objext'
20748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20749 (eval $ac_try) 2>&5
20751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20752 (exit $ac_status); }; }; then
20753 ac_header_compiler=yes
20755 echo "$as_me: failed program was:" >&5
20756 sed 's/^/| /' conftest.$ac_ext >&5
20758 ac_header_compiler=no
20760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20761 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20762 echo "${ECHO_T}$ac_header_compiler" >&6
20764 # Is the header present?
20765 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
20766 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
20767 cat >conftest.$ac_ext <<_ACEOF
20770 cat confdefs.h >>conftest.$ac_ext
20771 cat >>conftest.$ac_ext <<_ACEOF
20772 /* end confdefs.h. */
20773 #include <sys/acl.h>
20775 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20776 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20778 grep -v '^ *+' conftest.er1 >conftest.err
20780 cat conftest.err >&5
20781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20782 (exit $ac_status); } >/dev/null; then
20783 if test -s conftest.err; then
20784 ac_cpp_err=$ac_c_preproc_warn_flag
20785 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20792 if test -z "$ac_cpp_err"; then
20793 ac_header_preproc=yes
20795 echo "$as_me: failed program was:" >&5
20796 sed 's/^/| /' conftest.$ac_ext >&5
20798 ac_header_preproc=no
20800 rm -f conftest.err conftest.$ac_ext
20801 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20802 echo "${ECHO_T}$ac_header_preproc" >&6
20804 # So? What about this header?
20805 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20807 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
20808 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20809 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
20810 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
20811 ac_header_preproc=yes
20814 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
20815 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
20816 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
20817 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
20818 { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
20819 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
20820 { echo "$as_me:$LINENO: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&5
20821 echo "$as_me: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&2;}
20822 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
20823 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
20824 { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
20825 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
20828 ## ------------------------------------------ ##
20829 ## Report this to the AC_PACKAGE_NAME lists. ##
20830 ## ------------------------------------------ ##
20833 sed "s/^/$as_me: WARNING: /" >&2
20836 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
20837 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
20838 if test "${ac_cv_header_sys_acl_h+set}" = set; then
20839 echo $ECHO_N "(cached) $ECHO_C" >&6
20841 ac_cv_header_sys_acl_h=$ac_header_preproc
20843 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
20844 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
20849 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
20850 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
20851 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
20852 echo $ECHO_N "(cached) $ECHO_C" >&6
20854 ac_check_lib_save_LIBS=$LIBS
20856 cat >conftest.$ac_ext <<_ACEOF
20859 cat confdefs.h >>conftest.$ac_ext
20860 cat >>conftest.$ac_ext <<_ACEOF
20861 /* end confdefs.h. */
20863 /* Override any gcc2 internal prototype to avoid an error. */
20867 /* We use char because int might match the return type of a gcc2
20868 builtin and then its argument prototype would still apply. */
20869 char acl_get_file ();
20878 rm -f conftest.$ac_objext conftest$ac_exeext
20879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20880 (eval $ac_link) 2>conftest.er1
20882 grep -v '^ *+' conftest.er1 >conftest.err
20884 cat conftest.err >&5
20885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20886 (exit $ac_status); } &&
20887 { ac_try='test -z "$ac_c_werror_flag"
20888 || test ! -s conftest.err'
20889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20890 (eval $ac_try) 2>&5
20892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20893 (exit $ac_status); }; } &&
20894 { ac_try='test -s conftest$ac_exeext'
20895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20896 (eval $ac_try) 2>&5
20898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20899 (exit $ac_status); }; }; then
20900 ac_cv_lib_acl_acl_get_file=yes
20902 echo "$as_me: failed program was:" >&5
20903 sed 's/^/| /' conftest.$ac_ext >&5
20905 ac_cv_lib_acl_acl_get_file=no
20907 rm -f conftest.err conftest.$ac_objext \
20908 conftest$ac_exeext conftest.$ac_ext
20909 LIBS=$ac_check_lib_save_LIBS
20911 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
20912 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
20913 if test $ac_cv_lib_acl_acl_get_file = yes; then
20914 FDLIBS="-lacl $FDLIBS"
20918 if test $ac_cv_lib_acl_acl_get_file = yes; then
20919 cat >>confdefs.h <<\_ACEOF
20927 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
20928 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
20929 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
20930 echo $ECHO_N "(cached) $ECHO_C" >&6
20932 ac_check_lib_save_LIBS=$LIBS
20933 LIBS="-lpthread $LIBS"
20934 cat >conftest.$ac_ext <<_ACEOF
20937 cat confdefs.h >>conftest.$ac_ext
20938 cat >>conftest.$ac_ext <<_ACEOF
20939 /* end confdefs.h. */
20941 /* Override any gcc2 internal prototype to avoid an error. */
20945 /* We use char because int might match the return type of a gcc2
20946 builtin and then its argument prototype would still apply. */
20947 char pthread_create ();
20956 rm -f conftest.$ac_objext conftest$ac_exeext
20957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20958 (eval $ac_link) 2>conftest.er1
20960 grep -v '^ *+' conftest.er1 >conftest.err
20962 cat conftest.err >&5
20963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20964 (exit $ac_status); } &&
20965 { ac_try='test -z "$ac_c_werror_flag"
20966 || test ! -s conftest.err'
20967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20968 (eval $ac_try) 2>&5
20970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20971 (exit $ac_status); }; } &&
20972 { ac_try='test -s conftest$ac_exeext'
20973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20974 (eval $ac_try) 2>&5
20976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20977 (exit $ac_status); }; }; then
20978 ac_cv_lib_pthread_pthread_create=yes
20980 echo "$as_me: failed program was:" >&5
20981 sed 's/^/| /' conftest.$ac_ext >&5
20983 ac_cv_lib_pthread_pthread_create=no
20985 rm -f conftest.err conftest.$ac_objext \
20986 conftest$ac_exeext conftest.$ac_ext
20987 LIBS=$ac_check_lib_save_LIBS
20989 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
20990 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
20991 if test $ac_cv_lib_pthread_pthread_create = yes; then
20992 PTHREAD_LIB="-lpthread"
20994 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
20995 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
20996 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
20997 echo $ECHO_N "(cached) $ECHO_C" >&6
20999 ac_check_lib_save_LIBS=$LIBS
21000 LIBS="-lpthreads $LIBS"
21001 cat >conftest.$ac_ext <<_ACEOF
21004 cat confdefs.h >>conftest.$ac_ext
21005 cat >>conftest.$ac_ext <<_ACEOF
21006 /* end confdefs.h. */
21008 /* Override any gcc2 internal prototype to avoid an error. */
21012 /* We use char because int might match the return type of a gcc2
21013 builtin and then its argument prototype would still apply. */
21014 char pthread_create ();
21023 rm -f conftest.$ac_objext conftest$ac_exeext
21024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21025 (eval $ac_link) 2>conftest.er1
21027 grep -v '^ *+' conftest.er1 >conftest.err
21029 cat conftest.err >&5
21030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21031 (exit $ac_status); } &&
21032 { ac_try='test -z "$ac_c_werror_flag"
21033 || test ! -s conftest.err'
21034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21035 (eval $ac_try) 2>&5
21037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21038 (exit $ac_status); }; } &&
21039 { ac_try='test -s conftest$ac_exeext'
21040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21041 (eval $ac_try) 2>&5
21043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21044 (exit $ac_status); }; }; then
21045 ac_cv_lib_pthreads_pthread_create=yes
21047 echo "$as_me: failed program was:" >&5
21048 sed 's/^/| /' conftest.$ac_ext >&5
21050 ac_cv_lib_pthreads_pthread_create=no
21052 rm -f conftest.err conftest.$ac_objext \
21053 conftest$ac_exeext conftest.$ac_ext
21054 LIBS=$ac_check_lib_save_LIBS
21056 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
21057 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
21058 if test $ac_cv_lib_pthreads_pthread_create = yes; then
21059 PTHREAD_LIB="-lpthreads"
21061 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
21062 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
21063 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
21064 echo $ECHO_N "(cached) $ECHO_C" >&6
21066 ac_check_lib_save_LIBS=$LIBS
21068 cat >conftest.$ac_ext <<_ACEOF
21071 cat confdefs.h >>conftest.$ac_ext
21072 cat >>conftest.$ac_ext <<_ACEOF
21073 /* end confdefs.h. */
21075 /* Override any gcc2 internal prototype to avoid an error. */
21079 /* We use char because int might match the return type of a gcc2
21080 builtin and then its argument prototype would still apply. */
21081 char pthread_create ();
21090 rm -f conftest.$ac_objext conftest$ac_exeext
21091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21092 (eval $ac_link) 2>conftest.er1
21094 grep -v '^ *+' conftest.er1 >conftest.err
21096 cat conftest.err >&5
21097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21098 (exit $ac_status); } &&
21099 { ac_try='test -z "$ac_c_werror_flag"
21100 || test ! -s conftest.err'
21101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21102 (eval $ac_try) 2>&5
21104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21105 (exit $ac_status); }; } &&
21106 { ac_try='test -s conftest$ac_exeext'
21107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21108 (eval $ac_try) 2>&5
21110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21111 (exit $ac_status); }; }; then
21112 ac_cv_lib_c_r_pthread_create=yes
21114 echo "$as_me: failed program was:" >&5
21115 sed 's/^/| /' conftest.$ac_ext >&5
21117 ac_cv_lib_c_r_pthread_create=no
21119 rm -f conftest.err conftest.$ac_objext \
21120 conftest$ac_exeext conftest.$ac_ext
21121 LIBS=$ac_check_lib_save_LIBS
21123 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
21124 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
21125 if test $ac_cv_lib_c_r_pthread_create = yes; then
21126 PTHREAD_LIB="-lc_r"
21128 echo "$as_me:$LINENO: checking for pthread_create" >&5
21129 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
21130 if test "${ac_cv_func_pthread_create+set}" = set; then
21131 echo $ECHO_N "(cached) $ECHO_C" >&6
21133 cat >conftest.$ac_ext <<_ACEOF
21136 cat confdefs.h >>conftest.$ac_ext
21137 cat >>conftest.$ac_ext <<_ACEOF
21138 /* end confdefs.h. */
21139 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
21140 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21141 #define pthread_create innocuous_pthread_create
21143 /* System header to define __stub macros and hopefully few prototypes,
21144 which can conflict with char pthread_create (); below.
21145 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21146 <limits.h> exists even on freestanding compilers. */
21149 # include <limits.h>
21151 # include <assert.h>
21154 #undef pthread_create
21156 /* Override any gcc2 internal prototype to avoid an error. */
21161 /* We use char because int might match the return type of a gcc2
21162 builtin and then its argument prototype would still apply. */
21163 char pthread_create ();
21164 /* The GNU C library defines this for functions which it implements
21165 to always fail with ENOSYS. Some functions are actually named
21166 something starting with __ and the normal name is an alias. */
21167 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
21170 char (*f) () = pthread_create;
21179 return f != pthread_create;
21184 rm -f conftest.$ac_objext conftest$ac_exeext
21185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21186 (eval $ac_link) 2>conftest.er1
21188 grep -v '^ *+' conftest.er1 >conftest.err
21190 cat conftest.err >&5
21191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21192 (exit $ac_status); } &&
21193 { ac_try='test -z "$ac_c_werror_flag"
21194 || test ! -s conftest.err'
21195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21196 (eval $ac_try) 2>&5
21198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21199 (exit $ac_status); }; } &&
21200 { ac_try='test -s conftest$ac_exeext'
21201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21202 (eval $ac_try) 2>&5
21204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21205 (exit $ac_status); }; }; then
21206 ac_cv_func_pthread_create=yes
21208 echo "$as_me: failed program was:" >&5
21209 sed 's/^/| /' conftest.$ac_ext >&5
21211 ac_cv_func_pthread_create=no
21213 rm -f conftest.err conftest.$ac_objext \
21214 conftest$ac_exeext conftest.$ac_ext
21216 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
21217 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
21230 cat >>confdefs.h <<\_ACEOF
21236 CFLAGS=${CFLAGS--O}
21237 LDFLAGS=${LDFLAGS--O}
21238 DB_LIBS="${SQL_LFLAGS}"
21240 CPPFLAGS="$CPPFLAGS"
21265 # Finally we set appropriate distribution specific
21266 # variables and defaults
21268 # PFILES are platform specific files
21269 PFILES="platforms/Makefile"
21273 hostname=`uname -n | cut -d '.' -f 1`
21274 case "$DISTNAME" in
21277 PSCMD="ps -e -o pid,comm"
21278 PFILES="${PFILES} \
21279 platforms/aix/Makefile"
21280 TAPEDRIVE="/dev/rmt0.1"
21284 PTHREAD_LIB="-lpthread -lexc"
21285 if test "${CC}" = "gcc" ; then
21292 TAPEDRIVE="/dev/nrmt0"
21295 DISTVER=`uname -a |awk '{print $3}'`
21296 TAPEDRIVE="/dev/nrmt0"
21297 PTHREAD_LIB="-pthread"
21298 CFLAGS="${CFLAGS} -pthread"
21299 PSCMD="ps -x -o pid,command"
21302 PFILES="${PFILES} \
21303 platforms/bsdi/Makefile \
21304 platforms/bsdi/bacula-fd \
21305 platforms/bsdi/bacula-sd \
21306 platforms/bsdi/bacula-dir"
21307 largefile_support="yes"
21310 DISTVER=`uname -a |awk '{print $3}'`
21311 TAPEDRIVE="/dev/nrst0"
21313 WCFLAGS="-mwindows"
21314 WLDFLAGS="-mwindows"
21318 TAPEDRIVE="/dev/nst0"
21319 PSCMD="ps -e -o pid,command"
21321 PFILES="${PFILES} \
21322 platforms/darwin/Makefile"
21325 DISTVER=`cat /etc/debian_version`
21326 TAPEDRIVE="/dev/nrst0"
21327 PSCMD="ps -e -o pid,command"
21330 DISTVER=`uname -a |awk '{print $3}'`
21331 VER=`echo $DISTVER | cut -c 1`
21332 if test x$VER = x4 ; then
21333 PTHREAD_LIB="-pthread"
21334 CFLAGS="${CFLAGS} -pthread"
21338 TAPEDRIVE="/dev/nrsa0"
21339 PSCMD="ps -x -o pid,command"
21340 PFILES="${PFILES} \
21341 platforms/freebsd/Makefile \
21342 platforms/freebsd/bacula-fd \
21343 platforms/freebsd/bacula-sd \
21344 platforms/freebsd/bacula-dir"
21345 largefile_support="yes"
21348 PSCMD="UNIX95=1 ps -e -o pid,comm"
21349 CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
21351 TAPEDRIVE="/dev/rmt/0hnb"
21352 PTHREAD_LIB="-lpthread"
21353 cat >>confdefs.h <<\_ACEOF
21354 #define _INCLUDE_LONGLONG 1
21360 TAPEDRIVE="/dev/rmt/0cbn"
21361 PSCMD="ps -e -o pid,comm"
21362 PFILES="${PFILES} \
21363 platforms/irix/Makefile \
21364 platforms/irix/bacula-fd \
21365 platforms/irix/bacula-sd \
21366 platforms/irix/bacula-dir"
21369 DISTVER=`uname -a |awk '{print $3}'`
21372 TAPEDRIVE="/dev/nrst0"
21373 PSCMD="ps -a -o pid,command"
21374 PTHREAD_LIB="-pthread"
21375 CFLAGS="${CFLAGS} -pthread"
21378 DISTVER=`uname -a |awk '{print $3}'`
21381 TAPEDRIVE="/dev/nrst0"
21382 PSCMD="ps -ax -o pid,command"
21383 PTHREAD_LIB="-pthread"
21384 CFLAGS="${CFLAGS} -pthread"
21385 PFILES="${PFILES} \
21386 platforms/openbsd/Makefile \
21387 platforms/openbsd/bacula-fd \
21388 platforms/openbsd/bacula-sd \
21389 platforms/openbsd/bacula-dir"
21392 if test -f /etc/whitebox-release ; then
21393 f=/etc/whitebox-release
21395 f=/etc/redhat-release
21397 if test `cat $f | grep release |\
21398 cut -f 3 -d ' '`x = "Enterprise"x ; then
21399 DISTVER="Enterprise "`cat $f | grep release |\
21402 DISTVER=`cat /etc/redhat-release | grep release |\
21405 TAPEDRIVE="/dev/nst0"
21406 PSCMD="ps -e -o pid,command"
21407 PFILES="${PFILES} \
21408 platforms/redhat/Makefile \
21409 platforms/redhat/bacula-fd \
21410 platforms/redhat/bacula-sd \
21411 platforms/redhat/bacula-dir \
21412 platforms/redhat/bacula.spec \
21414 hostname=`hostname -s`
21417 DISTVER=`cat /etc/mandrake-release | grep release |\
21419 TAPEDRIVE="/dev/nst0"
21420 PSCMD="ps -e -o pid,command"
21421 PFILES="${PFILES} \
21422 platforms/mandrake/Makefile \
21423 platforms/mandrake/bacula-fd \
21424 platforms/mandrake/bacula-sd \
21425 platforms/mandrake/bacula-dir \
21426 platforms/mandrake/bacula.spec \
21430 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
21431 TAPEDRIVE="/dev/nst0"
21432 PSCMD="ps -e -o pid,command"
21433 PFILES="${PFILES} \
21434 platforms/gentoo/Makefile \
21435 platforms/gentoo/bacula-init \
21436 platforms/gentoo/bacula-fd \
21437 platforms/gentoo/bacula-sd \
21438 platforms/gentoo/bacula-dir"
21441 DISTVER=`cat /etc/slackware-version`
21442 TAPEDRIVE="/dev/nst0"
21443 PSCMD="ps -e -o pid,command"
21444 PFILES="${PFILES} \
21445 platforms/slackware/Makefile \
21446 platforms/slackware/rc.bacula-fd \
21447 platforms/slackware/rc.bacula-sd \
21448 platforms/slackware/rc.bacula-dir\
21449 platforms/slackware/functions.bacula"
21453 TAPEDRIVE="/dev/rmt/0cbn"
21454 PSCMD="ps -e -o pid,comm"
21455 PFILES="${PFILES} \
21456 platforms/solaris/Makefile \
21457 platforms/solaris/bacula-fd \
21458 platforms/solaris/bacula-sd \
21459 platforms/solaris/bacula-dir"
21460 if test x$DISTVER = x5.6 ; then
21461 cat >>confdefs.h <<\_ACEOF
21462 #define HAVE_OLD_SOCKOPT 1
21466 LIBS="$LIBS -lresolv"
21469 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
21471 TAPEDRIVE="/dev/nst0"
21472 PSCMD="ps -e -o pid,command"
21473 PFILES="${PFILES} \
21474 platforms/suse/Makefile \
21475 platforms/suse/bacula-fd \
21476 platforms/suse/bacula-sd \
21477 platforms/suse/bacula-dir \
21478 platforms/suse/bacula \
21479 platforms/suse/bacula.spec"
21484 TAPEDRIVE="/dev/nst0"
21485 PSCMD="ps -e -o pid,command"
21486 PFILES="${PFILES} \
21487 platforms/suse/Makefile \
21488 platforms/suse/bacula-fd \
21489 platforms/suse/bacula-sd \
21490 platforms/suse/bacula-dir"
21494 TAPEDRIVE="/dev/nst0"
21497 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
21503 LIBS="$PTHREAD_LIB $LIBS"
21505 cat >>confdefs.h <<_ACEOF
21509 cat >>confdefs.h <<_ACEOF
21520 MCOMMON=./autoconf/Make.common
21523 if test "x${subsysdir}" = "x${sbindir}" ; then
21526 echo "You have set both --sbindir and --with-subsys-dir"
21527 echo " equal to: ${subsysdir} "
21528 echo "This is not permitted. Please reconfigure."
21530 echo "Aborting configuration ..."
21536 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"
21537 ac_config_commands="$ac_config_commands default"
21538 cat >confcache <<\_ACEOF
21539 # This file is a shell script that caches the results of configure
21540 # tests run on this system so they can be shared between configure
21541 # scripts and configure runs, see configure's option --config-cache.
21542 # It is not useful on other systems. If it contains results you don't
21543 # want to keep, you may remove or edit it.
21545 # config.status only pays attention to the cache file if you give it
21546 # the --recheck option to rerun configure.
21548 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21549 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21550 # following values.
21554 # The following way of writing the cache mishandles newlines in values,
21555 # but we know of no workaround that is simple, portable, and efficient.
21556 # So, don't put newlines in cache variables' values.
21557 # Ultrix sh set writes to stderr and can't be redirected directly,
21558 # and sets the high bit in the cache file unless we assign to the vars.
21561 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21563 # `set' does not quote correctly, so add quotes (double-quote
21564 # substitution turns \\\\ into \\, and sed turns \\ into \).
21567 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21570 # `set' quotes correctly as required by POSIX, so do not add quotes.
21572 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21579 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21581 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21583 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21584 if test -w $cache_file; then
21585 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21586 cat confcache >$cache_file
21588 echo "not updating unwritable cache $cache_file"
21593 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21594 # Let make expand exec_prefix.
21595 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21597 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21598 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21599 # trailing colons and then remove the whole line if VPATH becomes empty
21600 # (actually we leave an empty line to preserve line numbers).
21601 if test "x$srcdir" = x.; then
21602 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21603 s/:*\$(srcdir):*/:/;
21604 s/:*\${srcdir}:*/:/;
21606 s/^\([^=]*=[ ]*\):*/\1/;
21612 DEFS=-DHAVE_CONFIG_H
21616 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21617 # 1. Remove the extension, and $U if already installed.
21618 ac_i=`echo "$ac_i" |
21619 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21621 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21622 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21624 LIBOBJS=$ac_libobjs
21626 LTLIBOBJS=$ac_ltlibobjs
21630 : ${CONFIG_STATUS=./config.status}
21631 ac_clean_files_save=$ac_clean_files
21632 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21633 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21634 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21635 cat >$CONFIG_STATUS <<_ACEOF
21637 # Generated by $as_me.
21638 # Run this file to recreate the current configuration.
21639 # Compiler output produced by configure, useful for debugging
21640 # configure, is in config.log if it exists.
21643 ac_cs_recheck=false
21645 SHELL=\${CONFIG_SHELL-$SHELL}
21648 cat >>$CONFIG_STATUS <<\_ACEOF
21649 ## --------------------- ##
21650 ## M4sh Initialization. ##
21651 ## --------------------- ##
21653 # Be Bourne compatible
21654 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21657 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21658 # is contrary to our usage. Disable this feature.
21659 alias -g '${1+"$@"}'='"$@"'
21660 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21663 DUALCASE=1; export DUALCASE # for MKS sh
21665 # Support unset when possible.
21666 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21673 # Work around bugs in pre-3.0 UWIN ksh.
21674 $as_unset ENV MAIL MAILPATH
21681 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21682 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21683 LC_TELEPHONE LC_TIME
21685 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21686 eval $as_var=C; export $as_var
21692 # Required to use basename.
21693 if expr a : '\(a\)' >/dev/null 2>&1; then
21699 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21700 as_basename=basename
21706 # Name of the executable.
21707 as_me=`$as_basename "$0" ||
21708 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21709 X"$0" : 'X\(//\)$' \| \
21710 X"$0" : 'X\(/\)$' \| \
21711 . : '\(.\)' 2>/dev/null ||
21713 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21714 /^X\/\(\/\/\)$/{ s//\1/; q; }
21715 /^X\/\(\/\).*/{ s//\1/; q; }
21719 # PATH needs CR, and LINENO needs CR and PATH.
21720 # Avoid depending upon Character Ranges.
21721 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21722 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21723 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21724 as_cr_digits='0123456789'
21725 as_cr_alnum=$as_cr_Letters$as_cr_digits
21727 # The user is always right.
21728 if test "${PATH_SEPARATOR+set}" != set; then
21729 echo "#! /bin/sh" >conf$$.sh
21730 echo "exit 0" >>conf$$.sh
21732 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21741 as_lineno_1=$LINENO
21742 as_lineno_2=$LINENO
21743 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21744 test "x$as_lineno_1" != "x$as_lineno_2" &&
21745 test "x$as_lineno_3" = "x$as_lineno_2" || {
21746 # Find who we are. Look in the path if we contain no path at all
21749 *[\\/]* ) as_myself=$0 ;;
21750 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21751 for as_dir in $PATH
21754 test -z "$as_dir" && as_dir=.
21755 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21760 # We did not find ourselves, most probably we were run as `sh COMMAND'
21761 # in which case we are not to be found in the path.
21762 if test "x$as_myself" = x; then
21765 if test ! -f "$as_myself"; then
21766 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21767 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21768 { (exit 1); exit 1; }; }
21770 case $CONFIG_SHELL in
21772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21773 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21776 test -z "$as_dir" && as_dir=.
21777 for as_base in sh bash ksh sh5; do
21780 if ("$as_dir/$as_base" -c '
21781 as_lineno_1=$LINENO
21782 as_lineno_2=$LINENO
21783 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21784 test "x$as_lineno_1" != "x$as_lineno_2" &&
21785 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
21786 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21787 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21788 CONFIG_SHELL=$as_dir/$as_base
21789 export CONFIG_SHELL
21790 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21798 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21799 # uniformly replaced by the line number. The first 'sed' inserts a
21800 # line-number line before each line; the second 'sed' does the real
21801 # work. The second script uses 'N' to pair each line-number line
21802 # with the numbered line, and appends trailing '-' during
21803 # substitution so that $LINENO is not a special case at line end.
21804 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21805 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21806 sed '=' <$as_myself |
21811 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21814 s,^['$as_cr_digits']*\n,,
21815 ' >$as_me.lineno &&
21816 chmod +x $as_me.lineno ||
21817 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21818 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21819 { (exit 1); exit 1; }; }
21821 # Don't try to exec as it changes $[0], causing all sort of problems
21822 # (the dirname of $[0] is not the place where we might find the
21823 # original and so on. Autoconf is especially sensible to this).
21825 # Exit status is that of the last command.
21830 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21831 *c*,-n*) ECHO_N= ECHO_C='
21833 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21834 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
21837 if expr a : '\(a\)' >/dev/null 2>&1; then
21843 rm -f conf$$ conf$$.exe conf$$.file
21845 if ln -s conf$$.file conf$$ 2>/dev/null; then
21846 # We could just check for DJGPP; but this test a) works b) is more generic
21847 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21848 if test -f conf$$.exe; then
21849 # Don't use ln at all; we don't have any links
21854 elif ln conf$$.file conf$$ 2>/dev/null; then
21859 rm -f conf$$ conf$$.exe conf$$.file
21861 if mkdir -p . 2>/dev/null; then
21864 test -d ./-p && rmdir ./-p
21868 as_executable_p="test -f"
21870 # Sed expression to map a string onto a valid CPP name.
21871 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21873 # Sed expression to map a string onto a valid variable name.
21874 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21878 # We need space, tab and new line, in precisely that order.
21888 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21889 # report actual input values of CONFIG_FILES etc. instead of their
21890 # values after options handling. Logging --version etc. is OK.
21894 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21895 ## Running $as_me. ##
21900 This file was extended by $as_me, which was
21901 generated by GNU Autoconf 2.59. Invocation command line was
21903 CONFIG_FILES = $CONFIG_FILES
21904 CONFIG_HEADERS = $CONFIG_HEADERS
21905 CONFIG_LINKS = $CONFIG_LINKS
21906 CONFIG_COMMANDS = $CONFIG_COMMANDS
21910 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21914 # Files that config.status was made for.
21915 if test -n "$ac_config_files"; then
21916 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21919 if test -n "$ac_config_headers"; then
21920 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21923 if test -n "$ac_config_links"; then
21924 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21927 if test -n "$ac_config_commands"; then
21928 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21931 cat >>$CONFIG_STATUS <<\_ACEOF
21934 \`$as_me' instantiates files from templates according to the
21935 current configuration.
21937 Usage: $0 [OPTIONS] [FILE]...
21939 -h, --help print this help, then exit
21940 -V, --version print version number, then exit
21941 -q, --quiet do not print progress messages
21942 -d, --debug don't remove temporary files
21943 --recheck update $as_me by reconfiguring in the same conditions
21944 --file=FILE[:TEMPLATE]
21945 instantiate the configuration file FILE
21946 --header=FILE[:TEMPLATE]
21947 instantiate the configuration header FILE
21949 Configuration files:
21952 Configuration headers:
21955 Configuration commands:
21958 Report bugs to <bug-autoconf@gnu.org>."
21961 cat >>$CONFIG_STATUS <<_ACEOF
21964 configured by $0, generated by GNU Autoconf 2.59,
21965 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21967 Copyright (C) 2003 Free Software Foundation, Inc.
21968 This config.status script is free software; the Free Software Foundation
21969 gives unlimited permission to copy, distribute and modify it."
21974 cat >>$CONFIG_STATUS <<\_ACEOF
21975 # If no file are specified by the user, then we need to provide default
21976 # value. By we need to know if files were specified by the user.
21982 ac_option=`expr "x$1" : 'x\([^=]*\)='`
21983 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21991 *) # This is not an option, so the user has probably given explicit
21994 ac_need_defaults=false;;
21998 # Handling of the options.
22000 cat >>$CONFIG_STATUS <<\_ACEOF
22001 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22003 --version | --vers* | -V )
22004 echo "$ac_cs_version"; exit 0 ;;
22006 # Conflict between --help and --header
22007 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22008 Try \`$0 --help' for more information." >&5
22009 echo "$as_me: error: ambiguous option: $1
22010 Try \`$0 --help' for more information." >&2;}
22011 { (exit 1); exit 1; }; };;
22012 --help | --hel | -h )
22013 echo "$ac_cs_usage"; exit 0 ;;
22014 --debug | --d* | -d )
22016 --file | --fil | --fi | --f )
22018 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22019 ac_need_defaults=false;;
22020 --header | --heade | --head | --hea )
22022 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22023 ac_need_defaults=false;;
22024 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22025 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22028 # This is an error.
22029 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22030 Try \`$0 --help' for more information." >&5
22031 echo "$as_me: error: unrecognized option: $1
22032 Try \`$0 --help' for more information." >&2;}
22033 { (exit 1); exit 1; }; } ;;
22035 *) ac_config_targets="$ac_config_targets $1" ;;
22041 ac_configure_extra_args=
22043 if $ac_cs_silent; then
22045 ac_configure_extra_args="$ac_configure_extra_args --silent"
22049 cat >>$CONFIG_STATUS <<_ACEOF
22050 if \$ac_cs_recheck; then
22051 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22052 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22061 cat >>$CONFIG_STATUS <<\_ACEOF
22062 for ac_config_target in $ac_config_targets
22064 case "$ac_config_target" in
22065 # Handling of arguments.
22066 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
22067 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22068 "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
22069 "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
22070 "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
22071 "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
22072 "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
22073 "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
22074 "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
22075 "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
22076 "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
22077 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
22078 "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
22079 "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
22080 "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
22081 "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
22082 "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
22083 "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
22084 "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
22085 "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
22086 "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
22087 "scripts/dvd-writepart" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-writepart" ;;
22088 "scripts/dvd-freespace" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-freespace" ;;
22089 "scripts/bacula-tray-monitor.desktop" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
22090 "scripts/logwatch/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
22091 "scripts/logwatch/logfile.bacula.conf" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
22092 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22093 "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
22094 "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
22095 "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
22096 "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
22097 "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
22098 "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
22099 "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
22100 "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
22101 "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
22102 "src/tray-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
22103 "src/tray-monitor/tray-monitor.conf" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
22104 "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
22105 "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
22106 "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
22107 "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
22108 "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
22109 "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
22110 "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
22111 "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
22112 "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
22113 "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
22114 "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
22115 "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
22116 "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
22117 "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
22118 "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
22119 "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
22120 "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
22121 "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
22122 "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
22123 "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
22124 "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
22125 "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
22126 "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
22127 "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
22128 "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
22129 "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
22130 "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
22131 "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
22132 "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
22133 "src/cats/create_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
22134 "src/cats/update_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
22135 "src/cats/make_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
22136 "src/cats/grant_sqlite3_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
22137 "src/cats/drop_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
22138 "src/cats/drop_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
22139 "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
22140 "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
22141 "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
22142 "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
22143 "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
22144 "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
22145 "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
22146 "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
22147 "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
22148 "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
22149 "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
22150 "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
22151 "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
22152 "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
22153 "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
22154 "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
22155 "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
22156 "src/win32/baculafd/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/baculafd/bacula-fd.conf" ;;
22157 "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
22158 "src/win32/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/console/bconsole.conf" ;;
22159 "src/win32/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/wx-console/wx-console.conf" ;;
22160 "src/win32/pebuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/pebuilder/Makefile" ;;
22161 "src/bimagemgr/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/bimagemgr/Makefile" ;;
22162 "src/bimagemgr/bacula-bimagemgr.spec" ) CONFIG_FILES="$CONFIG_FILES src/bimagemgr/bacula-bimagemgr.spec" ;;
22163 "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
22164 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
22165 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
22166 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22167 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22168 { (exit 1); exit 1; }; };;
22172 # If the user did not use the arguments to specify the items to instantiate,
22173 # then the envvar interface is used. Set only those that are not.
22174 # We use the long form for the default assignment because of an extremely
22175 # bizarre bug on SunOS 4.1.3.
22176 if $ac_need_defaults; then
22177 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22178 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22179 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22182 # Have a temporary directory for convenience. Make it in the build tree
22183 # simply because there is no reason to put it here, and in addition,
22184 # creating and moving files from /tmp can sometimes cause problems.
22185 # Create a temporary directory, and hook for its removal unless debugging.
22188 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22189 trap '{ (exit 1); exit 1; }' 1 2 13 15
22192 # Create a (secure) tmp directory for tmp files.
22195 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22196 test -n "$tmp" && test -d "$tmp"
22199 tmp=./confstat$$-$RANDOM
22200 (umask 077 && mkdir $tmp)
22203 echo "$me: cannot create a temporary directory in ." >&2
22204 { (exit 1); exit 1; }
22209 cat >>$CONFIG_STATUS <<_ACEOF
22212 # CONFIG_FILES section.
22215 # No need to generate the scripts if there are no CONFIG_FILES.
22216 # This happens for instance when ./config.status config.h
22217 if test -n "\$CONFIG_FILES"; then
22218 # Protect against being on the right side of a sed subst in config.status.
22219 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22220 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22221 s,@SHELL@,$SHELL,;t t
22222 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22223 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22224 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22225 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22226 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22227 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22228 s,@exec_prefix@,$exec_prefix,;t t
22229 s,@prefix@,$prefix,;t t
22230 s,@program_transform_name@,$program_transform_name,;t t
22231 s,@bindir@,$bindir,;t t
22232 s,@sbindir@,$sbindir,;t t
22233 s,@libexecdir@,$libexecdir,;t t
22234 s,@datadir@,$datadir,;t t
22235 s,@sysconfdir@,$sysconfdir,;t t
22236 s,@sharedstatedir@,$sharedstatedir,;t t
22237 s,@localstatedir@,$localstatedir,;t t
22238 s,@libdir@,$libdir,;t t
22239 s,@includedir@,$includedir,;t t
22240 s,@oldincludedir@,$oldincludedir,;t t
22241 s,@infodir@,$infodir,;t t
22242 s,@mandir@,$mandir,;t t
22243 s,@build_alias@,$build_alias,;t t
22244 s,@host_alias@,$host_alias,;t t
22245 s,@target_alias@,$target_alias,;t t
22246 s,@DEFS@,$DEFS,;t t
22247 s,@ECHO_C@,$ECHO_C,;t t
22248 s,@ECHO_N@,$ECHO_N,;t t
22249 s,@ECHO_T@,$ECHO_T,;t t
22250 s,@LIBS@,$LIBS,;t t
22251 s,@BUILD_DIR@,$BUILD_DIR,;t t
22252 s,@TRUEPRG@,$TRUEPRG,;t t
22253 s,@FALSEPRG@,$FALSEPRG,;t t
22254 s,@VERSION@,$VERSION,;t t
22255 s,@DATE@,$DATE,;t t
22256 s,@LSMDATE@,$LSMDATE,;t t
22258 s,@CFLAGS@,$CFLAGS,;t t
22259 s,@LDFLAGS@,$LDFLAGS,;t t
22260 s,@CPPFLAGS@,$CPPFLAGS,;t t
22261 s,@ac_ct_CC@,$ac_ct_CC,;t t
22262 s,@EXEEXT@,$EXEEXT,;t t
22263 s,@OBJEXT@,$OBJEXT,;t t
22265 s,@CXXFLAGS@,$CXXFLAGS,;t t
22266 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22268 s,@EGREP@,$EGREP,;t t
22269 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22270 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22271 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22272 s,@RANLIB@,$RANLIB,;t t
22273 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22278 s,@ECHO@,$ECHO,;t t
22282 s,@OPENSSL@,$OPENSSL,;t t
22284 s,@MKISOFS@,$MKISOFS,;t t
22285 s,@PYTHON@,$PYTHON,;t t
22286 s,@GROWISOFS@,$GROWISOFS,;t t
22287 s,@DVDRWMEDIAINFO@,$DVDRWMEDIAINFO,;t t
22288 s,@PKGCONFIG@,$PKGCONFIG,;t t
22289 s,@WXCONFIG@,$WXCONFIG,;t t
22290 s,@CDRECORD@,$CDRECORD,;t t
22291 s,@PIDOF@,$PIDOF,;t t
22293 s,@ARFLAGS@,$ARFLAGS,;t t
22294 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
22295 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
22296 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
22297 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
22298 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
22299 s,@build@,$build,;t t
22300 s,@build_cpu@,$build_cpu,;t t
22301 s,@build_vendor@,$build_vendor,;t t
22302 s,@build_os@,$build_os,;t t
22303 s,@host@,$host,;t t
22304 s,@host_cpu@,$host_cpu,;t t
22305 s,@host_vendor@,$host_vendor,;t t
22306 s,@host_os@,$host_os,;t t
22307 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
22308 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
22309 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
22310 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
22311 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
22312 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
22313 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
22314 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
22315 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
22316 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
22317 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
22318 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
22319 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
22320 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
22321 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
22322 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
22323 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
22324 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
22325 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
22326 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
22327 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
22328 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
22329 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
22330 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
22331 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
22332 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
22333 s,@MSGFMT@,$MSGFMT,;t t
22334 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
22335 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
22336 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
22337 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
22338 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
22339 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
22340 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
22341 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
22342 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
22343 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
22344 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
22345 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
22346 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
22347 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
22348 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
22349 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
22350 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
22351 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
22352 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
22353 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
22354 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
22355 s,@GNOME_DIR@,$GNOME_DIR,;t t
22356 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
22357 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
22358 s,@WX_DIR@,$WX_DIR,;t t
22359 s,@TRAY_MONITOR_CPPFLAGS@,$TRAY_MONITOR_CPPFLAGS,;t t
22360 s,@TRAY_MONITOR_LDFLAGS@,$TRAY_MONITOR_LDFLAGS,;t t
22361 s,@TRAY_MONITOR_DIR@,$TRAY_MONITOR_DIR,;t t
22362 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
22363 s,@STATIC_FD@,$STATIC_FD,;t t
22364 s,@STATIC_SD@,$STATIC_SD,;t t
22365 s,@STATIC_DIR@,$STATIC_DIR,;t t
22366 s,@STATIC_CONS@,$STATIC_CONS,;t t
22367 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
22368 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
22369 s,@ALL_DIRS@,$ALL_DIRS,;t t
22370 s,@CONS_INC@,$CONS_INC,;t t
22371 s,@CONS_OBJ@,$CONS_OBJ,;t t
22372 s,@CONS_SRC@,$CONS_SRC,;t t
22373 s,@CONS_LIBS@,$CONS_LIBS,;t t
22374 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
22375 s,@READLINE_SRC@,$READLINE_SRC,;t t
22376 s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t
22377 s,@PYTHON_INCDIR@,$PYTHON_INCDIR,;t t
22378 s,@OPENSSL_LIBS@,$OPENSSL_LIBS,;t t
22379 s,@OPENSSL_INC@,$OPENSSL_INC,;t t
22380 s,@working_dir@,$working_dir,;t t
22381 s,@scriptdir@,$scriptdir,;t t
22382 s,@dump_email@,$dump_email,;t t
22383 s,@job_email@,$job_email,;t t
22384 s,@smtp_host@,$smtp_host,;t t
22385 s,@piddir@,$piddir,;t t
22386 s,@subsysdir@,$subsysdir,;t t
22387 s,@baseport@,$baseport,;t t
22388 s,@dir_port@,$dir_port,;t t
22389 s,@fd_port@,$fd_port,;t t
22390 s,@sd_port@,$sd_port,;t t
22391 s,@dir_password@,$dir_password,;t t
22392 s,@fd_password@,$fd_password,;t t
22393 s,@sd_password@,$sd_password,;t t
22394 s,@mon_dir_password@,$mon_dir_password,;t t
22395 s,@mon_fd_password@,$mon_fd_password,;t t
22396 s,@mon_sd_password@,$mon_sd_password,;t t
22397 s,@bimagemgr_cgidir@,$bimagemgr_cgidir,;t t
22398 s,@bimagemgr_docdir@,$bimagemgr_docdir,;t t
22399 s,@bimagemgr_binowner@,$bimagemgr_binowner,;t t
22400 s,@bimagemgr_bingroup@,$bimagemgr_bingroup,;t t
22401 s,@bimagemgr_dataowner@,$bimagemgr_dataowner,;t t
22402 s,@bimagemgr_datagroup@,$bimagemgr_datagroup,;t t
22403 s,@dir_user@,$dir_user,;t t
22404 s,@dir_group@,$dir_group,;t t
22405 s,@sd_user@,$sd_user,;t t
22406 s,@sd_group@,$sd_group,;t t
22407 s,@fd_user@,$fd_user,;t t
22408 s,@fd_group@,$fd_group,;t t
22409 s,@SBINPERM@,$SBINPERM,;t t
22410 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
22411 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
22412 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
22413 s,@cats@,$cats,;t t
22414 s,@DB_NAME@,$DB_NAME,;t t
22415 s,@GETCONF@,$GETCONF,;t t
22416 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
22417 s,@X_CFLAGS@,$X_CFLAGS,;t t
22418 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
22419 s,@X_LIBS@,$X_LIBS,;t t
22420 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
22421 s,@LIBOBJS@,$LIBOBJS,;t t
22422 s,@ALLOCA@,$ALLOCA,;t t
22423 s,@FDLIBS@,$FDLIBS,;t t
22424 s,@DEBUG@,$DEBUG,;t t
22425 s,@DINCLUDE@,$DINCLUDE,;t t
22426 s,@DLIB@,$DLIB,;t t
22427 s,@DB_LIBS@,$DB_LIBS,;t t
22428 s,@WCFLAGS@,$WCFLAGS,;t t
22429 s,@WLDFLAGS@,$WLDFLAGS,;t t
22430 s,@OBJLIST@,$OBJLIST,;t t
22431 s,@hostname@,$hostname,;t t
22432 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
22433 s,@PSCMD@,$PSCMD,;t t
22434 s,@WIN32@,$WIN32,;t t
22435 s,@MACOSX@,$MACOSX,;t t
22436 s,@DISTNAME@,$DISTNAME,;t t
22437 s,@DISTVER@,$DISTVER,;t t
22438 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22439 /@MCOMMON@/r $MCOMMON
22445 cat >>$CONFIG_STATUS <<\_ACEOF
22446 # Split the substitutions into bite-sized pieces for seds with
22447 # small command number limits, like on Digital OSF/1 and HP-UX.
22448 ac_max_sed_lines=48
22449 ac_sed_frag=1 # Number of current file.
22450 ac_beg=1 # First line for current file.
22451 ac_end=$ac_max_sed_lines # Line after last line for current file.
22454 while $ac_more_lines; do
22455 if test $ac_beg -gt 1; then
22456 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22458 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22460 if test ! -s $tmp/subs.frag; then
22461 ac_more_lines=false
22463 # The purpose of the label and of the branching condition is to
22464 # speed up the sed processing (if there are no `@' at all, there
22465 # is no need to browse any of the substitutions).
22466 # These are the two extra sed commands mentioned above.
22468 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22469 if test -z "$ac_sed_cmds"; then
22470 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22472 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22474 ac_sed_frag=`expr $ac_sed_frag + 1`
22476 ac_end=`expr $ac_end + $ac_max_sed_lines`
22479 if test -z "$ac_sed_cmds"; then
22482 fi # test -n "$CONFIG_FILES"
22485 cat >>$CONFIG_STATUS <<\_ACEOF
22486 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22487 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22489 - | *:- | *:-:* ) # input from stdin
22491 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22492 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22493 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22494 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22495 * ) ac_file_in=$ac_file.in ;;
22498 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22499 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22500 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22501 X"$ac_file" : 'X\(//\)[^/]' \| \
22502 X"$ac_file" : 'X\(//\)$' \| \
22503 X"$ac_file" : 'X\(/\)' \| \
22504 . : '\(.\)' 2>/dev/null ||
22506 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22507 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22508 /^X\(\/\/\)$/{ s//\1/; q; }
22509 /^X\(\/\).*/{ s//\1/; q; }
22511 { if $as_mkdir_p; then
22516 while test ! -d "$as_dir"; do
22517 as_dirs="$as_dir $as_dirs"
22518 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22519 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22520 X"$as_dir" : 'X\(//\)[^/]' \| \
22521 X"$as_dir" : 'X\(//\)$' \| \
22522 X"$as_dir" : 'X\(/\)' \| \
22523 . : '\(.\)' 2>/dev/null ||
22525 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22526 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22527 /^X\(\/\/\)$/{ s//\1/; q; }
22528 /^X\(\/\).*/{ s//\1/; q; }
22531 test ! -n "$as_dirs" || mkdir $as_dirs
22532 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22533 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22534 { (exit 1); exit 1; }; }; }
22538 if test "$ac_dir" != .; then
22539 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22540 # A "../" for each directory in $ac_dir_suffix.
22541 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22543 ac_dir_suffix= ac_top_builddir=
22547 .) # No --srcdir option. We are building in place.
22549 if test -z "$ac_top_builddir"; then
22552 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22554 [\\/]* | ?:[\\/]* ) # Absolute path.
22555 ac_srcdir=$srcdir$ac_dir_suffix;
22556 ac_top_srcdir=$srcdir ;;
22557 *) # Relative path.
22558 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22559 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22562 # Do not use `cd foo && pwd` to compute absolute paths, because
22563 # the directories may not exist.
22565 .) ac_abs_builddir="$ac_dir";;
22568 .) ac_abs_builddir=`pwd`;;
22569 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22570 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22573 case $ac_abs_builddir in
22574 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22576 case ${ac_top_builddir}. in
22577 .) ac_abs_top_builddir=$ac_abs_builddir;;
22578 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22579 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22582 case $ac_abs_builddir in
22583 .) ac_abs_srcdir=$ac_srcdir;;
22586 .) ac_abs_srcdir=$ac_abs_builddir;;
22587 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22588 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22591 case $ac_abs_builddir in
22592 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22594 case $ac_top_srcdir in
22595 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22596 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22597 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22603 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22604 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22607 if test x"$ac_file" != x-; then
22608 { echo "$as_me:$LINENO: creating $ac_file" >&5
22609 echo "$as_me: creating $ac_file" >&6;}
22612 # Let's still pretend it is `configure' which instantiates (i.e., don't
22613 # use $as_me), people would be surprised to read:
22614 # /* config.h. Generated by config.status. */
22615 if test x"$ac_file" = x-; then
22618 configure_input="$ac_file. "
22620 configure_input=$configure_input"Generated from `echo $ac_file_in |
22621 sed 's,.*/,,'` by configure."
22623 # First look for the input files in the build tree, otherwise in the
22625 ac_file_inputs=`IFS=:
22626 for f in $ac_file_in; do
22628 -) echo $tmp/stdin ;;
22630 # Absolute (can't be DOS-style, as IFS=:)
22631 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22632 echo "$as_me: error: cannot find input file: $f" >&2;}
22633 { (exit 1); exit 1; }; }
22636 if test -f "$f"; then
22639 elif test -f "$srcdir/$f"; then
22644 { { 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 done` || { (exit 1); exit 1; }
22651 cat >>$CONFIG_STATUS <<_ACEOF
22655 cat >>$CONFIG_STATUS <<\_ACEOF
22657 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22658 s,@configure_input@,$configure_input,;t t
22659 s,@srcdir@,$ac_srcdir,;t t
22660 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22661 s,@top_srcdir@,$ac_top_srcdir,;t t
22662 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22663 s,@builddir@,$ac_builddir,;t t
22664 s,@abs_builddir@,$ac_abs_builddir,;t t
22665 s,@top_builddir@,$ac_top_builddir,;t t
22666 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22667 s,@INSTALL@,$ac_INSTALL,;t t
22668 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22670 if test x"$ac_file" != x-; then
22671 mv $tmp/out $ac_file
22679 cat >>$CONFIG_STATUS <<\_ACEOF
22682 # CONFIG_HEADER section.
22685 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22686 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22688 # ac_d sets the value in "#define NAME VALUE" lines.
22689 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22690 ac_dB='[ ].*$,\1#\2'
22693 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22694 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22695 ac_uB='$,\1#\2define\3'
22699 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22700 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22702 - | *:- | *:-:* ) # input from stdin
22704 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22705 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22706 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22707 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22708 * ) ac_file_in=$ac_file.in ;;
22711 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22712 echo "$as_me: creating $ac_file" >&6;}
22714 # First look for the input files in the build tree, otherwise in the
22716 ac_file_inputs=`IFS=:
22717 for f in $ac_file_in; do
22719 -) echo $tmp/stdin ;;
22721 # Absolute (can't be DOS-style, as IFS=:)
22722 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22723 echo "$as_me: error: cannot find input file: $f" >&2;}
22724 { (exit 1); exit 1; }; }
22725 # Do quote $f, to prevent DOS paths from being IFS'd.
22728 if test -f "$f"; then
22731 elif test -f "$srcdir/$f"; then
22736 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22737 echo "$as_me: error: cannot find input file: $f" >&2;}
22738 { (exit 1); exit 1; }; }
22741 done` || { (exit 1); exit 1; }
22742 # Remove the trailing spaces.
22743 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22747 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22748 # `conftest.undefs', that substitutes the proper values into
22749 # config.h.in to produce config.h. The first handles `#define'
22750 # templates, and the second `#undef' templates.
22751 # And first: Protect against being on the right side of a sed subst in
22752 # config.status. Protect against being in an unquoted here document
22753 # in config.status.
22754 rm -f conftest.defines conftest.undefs
22755 # Using a here document instead of a string reduces the quoting nightmare.
22756 # Putting comments in sed scripts is not portable.
22758 # `end' is used to avoid that the second main sed command (meant for
22759 # 0-ary CPP macros) applies to n-ary macro definitions.
22760 # See the Autoconf documentation for `clear'.
22761 cat >confdef2sed.sed <<\_ACEOF
22766 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22768 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22771 # If some macros were called several times there might be several times
22772 # the same #defines, which is useless. Nevertheless, we may not want to
22773 # sort them, since we want the *last* AC-DEFINE to be honored.
22774 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22775 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22776 rm -f confdef2sed.sed
22778 # This sed command replaces #undef with comments. This is necessary, for
22779 # example, in the case of _POSIX_SOURCE, which is predefined and required
22780 # on some systems where configure will not decide to define it.
22781 cat >>conftest.undefs <<\_ACEOF
22782 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22785 # Break up conftest.defines because some shells have a limit on the size
22786 # of here documents, and old seds have small limits too (100 cmds).
22787 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22788 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22789 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22790 echo ' :' >>$CONFIG_STATUS
22791 rm -f conftest.tail
22792 while grep . conftest.defines >/dev/null
22794 # Write a limited-size here document to $tmp/defines.sed.
22795 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22796 # Speed up: don't consider the non `#define' lines.
22797 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22798 # Work around the forget-to-reset-the-flag bug.
22799 echo 't clr' >>$CONFIG_STATUS
22800 echo ': clr' >>$CONFIG_STATUS
22801 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22803 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22805 mv $tmp/out $tmp/in
22807 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22808 rm -f conftest.defines
22809 mv conftest.tail conftest.defines
22811 rm -f conftest.defines
22812 echo ' fi # grep' >>$CONFIG_STATUS
22813 echo >>$CONFIG_STATUS
22815 # Break up conftest.undefs because some shells have a limit on the size
22816 # of here documents, and old seds have small limits too (100 cmds).
22817 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22818 rm -f conftest.tail
22819 while grep . conftest.undefs >/dev/null
22821 # Write a limited-size here document to $tmp/undefs.sed.
22822 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22823 # Speed up: don't consider the non `#undef'
22824 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22825 # Work around the forget-to-reset-the-flag bug.
22826 echo 't clr' >>$CONFIG_STATUS
22827 echo ': clr' >>$CONFIG_STATUS
22828 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22830 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22832 mv $tmp/out $tmp/in
22834 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22835 rm -f conftest.undefs
22836 mv conftest.tail conftest.undefs
22838 rm -f conftest.undefs
22840 cat >>$CONFIG_STATUS <<\_ACEOF
22841 # Let's still pretend it is `configure' which instantiates (i.e., don't
22842 # use $as_me), people would be surprised to read:
22843 # /* config.h. Generated by config.status. */
22844 if test x"$ac_file" = x-; then
22845 echo "/* Generated by configure. */" >$tmp/config.h
22847 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22849 cat $tmp/in >>$tmp/config.h
22851 if test x"$ac_file" != x-; then
22852 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22853 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22854 echo "$as_me: $ac_file is unchanged" >&6;}
22856 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22857 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22858 X"$ac_file" : 'X\(//\)[^/]' \| \
22859 X"$ac_file" : 'X\(//\)$' \| \
22860 X"$ac_file" : 'X\(/\)' \| \
22861 . : '\(.\)' 2>/dev/null ||
22863 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22864 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22865 /^X\(\/\/\)$/{ s//\1/; q; }
22866 /^X\(\/\).*/{ s//\1/; q; }
22868 { if $as_mkdir_p; then
22873 while test ! -d "$as_dir"; do
22874 as_dirs="$as_dir $as_dirs"
22875 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22876 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22877 X"$as_dir" : 'X\(//\)[^/]' \| \
22878 X"$as_dir" : 'X\(//\)$' \| \
22879 X"$as_dir" : 'X\(/\)' \| \
22880 . : '\(.\)' 2>/dev/null ||
22882 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22883 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22884 /^X\(\/\/\)$/{ s//\1/; q; }
22885 /^X\(\/\).*/{ s//\1/; q; }
22888 test ! -n "$as_dirs" || mkdir $as_dirs
22889 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22890 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22891 { (exit 1); exit 1; }; }; }
22894 mv $tmp/config.h $ac_file
22898 rm -f $tmp/config.h
22902 cat >>$CONFIG_STATUS <<\_ACEOF
22905 # CONFIG_COMMANDS section.
22907 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22908 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22909 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22910 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22911 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22912 X"$ac_dest" : 'X\(//\)[^/]' \| \
22913 X"$ac_dest" : 'X\(//\)$' \| \
22914 X"$ac_dest" : 'X\(/\)' \| \
22915 . : '\(.\)' 2>/dev/null ||
22917 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22918 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22919 /^X\(\/\/\)$/{ s//\1/; q; }
22920 /^X\(\/\).*/{ s//\1/; q; }
22922 { if $as_mkdir_p; then
22927 while test ! -d "$as_dir"; do
22928 as_dirs="$as_dir $as_dirs"
22929 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22930 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22931 X"$as_dir" : 'X\(//\)[^/]' \| \
22932 X"$as_dir" : 'X\(//\)$' \| \
22933 X"$as_dir" : 'X\(/\)' \| \
22934 . : '\(.\)' 2>/dev/null ||
22936 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22937 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22938 /^X\(\/\/\)$/{ s//\1/; q; }
22939 /^X\(\/\).*/{ s//\1/; q; }
22942 test ! -n "$as_dirs" || mkdir $as_dirs
22943 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22944 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22945 { (exit 1); exit 1; }; }; }
22949 if test "$ac_dir" != .; then
22950 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22951 # A "../" for each directory in $ac_dir_suffix.
22952 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22954 ac_dir_suffix= ac_top_builddir=
22958 .) # No --srcdir option. We are building in place.
22960 if test -z "$ac_top_builddir"; then
22963 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22965 [\\/]* | ?:[\\/]* ) # Absolute path.
22966 ac_srcdir=$srcdir$ac_dir_suffix;
22967 ac_top_srcdir=$srcdir ;;
22968 *) # Relative path.
22969 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22970 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22973 # Do not use `cd foo && pwd` to compute absolute paths, because
22974 # the directories may not exist.
22976 .) ac_abs_builddir="$ac_dir";;
22979 .) ac_abs_builddir=`pwd`;;
22980 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22981 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22984 case $ac_abs_builddir in
22985 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22987 case ${ac_top_builddir}. in
22988 .) ac_abs_top_builddir=$ac_abs_builddir;;
22989 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22990 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22993 case $ac_abs_builddir in
22994 .) ac_abs_srcdir=$ac_srcdir;;
22997 .) ac_abs_srcdir=$ac_abs_builddir;;
22998 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22999 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23002 case $ac_abs_builddir in
23003 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23005 case $ac_top_srcdir in
23006 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23007 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23008 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23013 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23014 echo "$as_me: executing $ac_dest commands" >&6;}
23016 default ) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
23022 cat >>$CONFIG_STATUS <<\_ACEOF
23024 { (exit 0); exit 0; }
23026 chmod +x $CONFIG_STATUS
23027 ac_clean_files=$ac_clean_files_save
23030 # configure is writing to config.log, and then calls config.status.
23031 # config.status does its own redirection, appending to config.log.
23032 # Unfortunately, on DOS this fails, as config.log is still kept open
23033 # by configure, so config.status won't be able to write to it; its
23034 # output is simply discarded. So we exec the FD to /dev/null,
23035 # effectively closing config.log, so it can be properly (re)opened and
23036 # appended to by config.status. When coming back to configure, we
23037 # need to make the FD available again.
23038 if test "$no_create" != yes; then
23040 ac_config_status_args=
23041 test "$silent" = yes &&
23042 ac_config_status_args="$ac_config_status_args --quiet"
23044 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23046 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23047 # would make configure fail if this is the last instruction.
23048 $ac_cs_success || { (exit 1); exit 1; }
23053 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
23054 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
23059 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
23060 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
23062 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
23063 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
23065 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
23066 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
23068 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
23069 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
23071 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
23072 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
23074 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
23075 chmod 755 $c/sqlite
23078 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
23079 largefile_support="yes"
23083 # A whole lot of hand springs to get the compiler version.
23084 # This is because gcc changed the output in version 3.0
23086 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
23087 if test "x${CCVERSION}" = "x" ; then
23088 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
23090 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
23091 if test x"${CXXVERSION}" = x ; then
23092 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
23095 if test "x${subsysdir}" = "x${sbindir}" ; then
23098 echo "You have set --sbindir and --with-subsys-dir"
23099 echo " both equal to: ${subsysdir} "
23100 echo " This is not permitted. Please reconfigure."
23102 echo "Aborting configuration ..."
23108 if test "x${db_name}" = "xInternal" ; then
23111 echo "You have not specified either --enable-client-only or one of the"
23112 echo " supported databases: MySQL, PostgreSQL, SQLite3 or SQLite."
23113 echo " This is not permitted. Please reconfigure."
23115 echo "Aborting the configuration ..."
23122 Configuration on `date`:
23124 Host: $host -- ${DISTNAME} ${DISTVER}
23125 Bacula version: ${VERSION} (${DATE})
23126 Source code location: ${srcdir}
23127 Install binaries: ${sbindir}
23128 Install config files: ${sysconfdir}
23129 Scripts directory: ${scriptdir}
23130 Working directory: ${working_dir}
23131 PID directory: ${piddir}
23132 Subsys directory: ${subsysdir}
23133 C Compiler: ${CC} ${CCVERSION}
23134 C++ Compiler: ${CXX} ${CXXVERSION}
23135 Compiler flags: ${WCFLAGS} ${CFLAGS}
23136 Linker flags: ${WLDFLAGS} ${LDFLAGS}
23138 Statically Linked Tools: ${support_static_tools}
23139 Statically Linked FD: ${support_static_fd}
23140 Statically Linked SD: ${support_static_sd}
23141 Statically Linked DIR: ${support_static_dir}
23142 Statically Linked CONS: ${support_static_cons}
23143 Database type: ${db_name}
23144 Database lib: ${DB_LIBS}
23146 Job Output Email: ${job_email}
23147 Traceback Email: ${dump_email}
23148 SMTP Host Address: ${smtp_host}
23150 Director Port: ${dir_port}
23151 File daemon Port: ${fd_port}
23152 Storage daemon Port: ${sd_port}
23154 Director User: ${dir_user}
23155 Director Group: ${dir_group}
23156 Storage Daemon User: ${sd_user}
23157 Storage DaemonGroup: ${sd_group}
23158 File Daemon User: ${fd_user}
23159 File Daemon Group: ${fd_group}
23161 SQL binaries Directory ${SQL_BINDIR}
23163 Large file support: $largefile_support
23164 Bacula conio support: ${got_conio} ${CONS_LIBS}
23165 readline support: ${got_readline} ${PRTREADLINE_SRC}
23166 TCP Wrappers support: ${TCPW_MSG}
23167 TLS support: ${support_tls}
23168 ZLIB support: ${have_zlib}
23169 enable-smartalloc: ${support_smartalloc}
23170 enable-gnome: ${support_gnome} ${gnome_version}
23171 enable-wx-console: ${support_wx_console}
23172 enable-tray-monitor: ${support_tray_monitor}
23173 client-only: ${build_client_only}
23174 ACL support: ${have_acl}
23175 Python support: ${support_python} ${PYTHON_LIBS}