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 DF MKISOFS PYTHON GROWISOFS DVDRWMEDIAINFO PKGCONFIG WXCONFIG WXFLAGS CDRECORD PIDOF AWK ARFLAGS MAKE_SHELL LOCAL_LIBS LOCAL_CFLAGS LOCAL_LDFLAGS LOCAL_DEFS build build_cpu build_vendor build_os host host_cpu host_vendor host_os HAVE_SUN_OS_TRUE HAVE_SUN_OS_FALSE HAVE_OSF1_OS_TRUE HAVE_OSF1_OS_FALSE HAVE_AIX_OS_TRUE HAVE_AIX_OS_FALSE HAVE_HPUX_OS_TRUE HAVE_HPUX_OS_FALSE HAVE_LINUX_OS_TRUE HAVE_LINUX_OS_FALSE HAVE_FREEBSD_OS_TRUE HAVE_FREEBSD_OS_FALSE HAVE_NETBSD_OS_TRUE HAVE_NETBSD_OS_FALSE HAVE_OPENBSD_OS_TRUE HAVE_OPENBSD_OS_FALSE HAVE_BSDI_OS_TRUE HAVE_BSDI_OS_FALSE HAVE_SGI_OS_TRUE HAVE_SGI_OS_FALSE HAVE_IRIX_OS_TRUE HAVE_IRIX_OS_FALSE HAVE_DARWIN_OS_TRUE HAVE_DARWIN_OS_FALSE INSIDE_GNOME_COMMON_TRUE INSIDE_GNOME_COMMON_FALSE MSGFMT GNOME_INCLUDEDIR GNOMEUI_LIBS GNOME_LIBDIR GNOME_LIBS 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 dir_user dir_group sd_user sd_group fd_user fd_group SBINPERM SQL_LFLAGS SQL_INCLUDE SQL_BINDIR cats DB_NAME GETCONF ac_ct_GETCONF X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LIBOBJS ALLOCA FDLIBS DEBUG DINCLUDE DLIB DB_LIBS WCFLAGS WLDFLAGS OBJLIST hostname TAPEDRIVE PSCMD WIN32 MACOSX DISTNAME DISTVER LTLIBOBJS'
313 ac_subst_files='MCOMMON'
315 # Initialize some variables set by options.
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name=s,x,x,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
430 -help | --help | --hel | --he | -h)
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 # Obsolete; use --without-fp.
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
560 -site=* | --site=* | --sit=*)
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 -version | --version | --versio | --versi | --vers | -V)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CXX_set=${CXX+set}
770 ac_env_CXX_value=$CXX
771 ac_cv_env_CXX_set=${CXX+set}
772 ac_cv_env_CXX_value=$CXX
773 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
774 ac_env_CXXFLAGS_value=$CXXFLAGS
775 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
776 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
777 ac_env_CPP_set=${CPP+set}
778 ac_env_CPP_value=$CPP
779 ac_cv_env_CPP_set=${CPP+set}
780 ac_cv_env_CPP_value=$CPP
781 ac_env_WXCONFIG_set=${WXCONFIG+set}
782 ac_env_WXCONFIG_value=$WXCONFIG
783 ac_cv_env_WXCONFIG_set=${WXCONFIG+set}
784 ac_cv_env_WXCONFIG_value=$WXCONFIG
785 ac_env_WXFLAGS_set=${WXFLAGS+set}
786 ac_env_WXFLAGS_value=$WXFLAGS
787 ac_cv_env_WXFLAGS_set=${WXFLAGS+set}
788 ac_cv_env_WXFLAGS_value=$WXFLAGS
791 # Report the --help message.
793 if test "$ac_init_help" = "long"; then
794 # Omit some internal or obsolete options to make the list less imposing.
795 # This message is too long to be a string in the A/UX 3.1 sh.
797 \`configure' configures this package to adapt to many kinds of systems.
799 Usage: $0 [OPTION]... [VAR=VALUE]...
801 To assign environment variables (e.g., CC, CFLAGS...), specify them as
802 VAR=VALUE. See below for descriptions of some of the useful variables.
804 Defaults for the options are specified in brackets.
807 -h, --help display this help and exit
808 --help=short display options specific to this package
809 --help=recursive display the short help of all the included packages
810 -V, --version display version information and exit
811 -q, --quiet, --silent do not print \`checking...' messages
812 --cache-file=FILE cache test results in FILE [disabled]
813 -C, --config-cache alias for \`--cache-file=config.cache'
814 -n, --no-create do not create output files
815 --srcdir=DIR find the sources in DIR [configure dir or \`..']
820 Installation directories:
821 --prefix=PREFIX install architecture-independent files in PREFIX
823 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
826 By default, \`make install' will install all the files in
827 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
828 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
829 for instance \`--prefix=\$HOME'.
831 For better control, use the options below.
833 Fine tuning of the installation directories:
834 --bindir=DIR user executables [EPREFIX/bin]
835 --sbindir=DIR system admin executables [EPREFIX/sbin]
836 --libexecdir=DIR program executables [EPREFIX/libexec]
837 --datadir=DIR read-only architecture-independent data [PREFIX/share]
838 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
839 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
840 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
841 --libdir=DIR object code libraries [EPREFIX/lib]
842 --includedir=DIR C header files [PREFIX/include]
843 --oldincludedir=DIR C header files for non-gcc [/usr/include]
844 --infodir=DIR info documentation [PREFIX/info]
845 --mandir=DIR man documentation [PREFIX/man]
851 --x-includes=DIR X include files are in DIR
852 --x-libraries=DIR X library files are in DIR
855 --build=BUILD configure for building on BUILD [guessed]
856 --host=HOST cross-compile to build programs to run on HOST [BUILD]
860 if test -n "$ac_init_help"; then
865 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
866 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
867 --enable-gnome enable build of gnome-console GUI disabled
868 --enable-wx-console enable build of wxWidgets console disabled
869 --enable-tray-monitor enable build of Gnome tray monitor (compatible with KDE) disabled
870 --enable-smartalloc enable smartalloc debugging support disabled
871 --enable-static-tools enable static tape tools disabled
872 --enable-static-fd enable static File daemon disabled
873 --enable-static-sd enable static Storage daemon disabled
874 --enable-static-dir enable static Director disabled
875 --enable-static-cons enable static Console disabled
876 --enable-client-only build client (File daemon) only disabled
877 --disable-conio disable conio support enabled
879 --disable-readline disable readline support disable
881 --disable-largefile omit support for large files
884 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
885 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
886 --with-readline=DIR specify readline library directory
888 --with-python=DIR Include Python support. DIR is the Python base
889 install directory, default is to search through
890 a number of common places for the Python files.
891 --with-tcp-wrappers=DIR enable tcpwrappers support
893 Include OpenSSL support. DIR is the OpenSSL base
894 --with-working-dir=PATH specify path of Bacula working directory
895 --with-scriptdir=PATH specify path of Bacula scripts directory
896 --with-dump-email=EMAIL dump email address
897 --with-job-email=EMAIL job output email address
898 --with-smtp-host=HOST SMTP mail host address
899 --with-pid-dir=PATH specify location of Bacula pid files
900 --with-subsys-dir=PATH specify location of Bacula subsys file
901 --with-baseport=PORT specify base port address for daemons
902 --with-dir-password=PASSWORD specify Director's password
903 --with-fd-password=PASSWORD specify Client's password
904 --with-sd-password=PASSWORD specify Storage daemon's password
905 --with-mon-dir-password=PASSWORD specify Director's password used by the monitor
906 --with-mon-fd-password=PASSWORD specify Client's password used by the monitor
907 --with-mon-sd-password=PASSWORD specify Storage daemon's password used by the monitor
908 --with-dir-user=USER specify user for Director daemon
909 --with-dir-group=GROUP specify group for Director daemon
910 --with-sd-user=USER specify user for Storage daemon
911 --with-sd-group=GROUP specify group for Storage daemon
912 --with-fd-user=USER specify user for File daemon
913 --with-fd-group=GROUP specify group for File daemon
914 --with-sbin-perm=MODE specify permissions for sbin binaries (0754)
915 --with-postgresql=DIR Include PostgreSQL support. DIR is the PostgreSQL
916 base install directory, defaults to /usr/local/pgsql
918 --with-mysql=DIR Include MySQL support. DIR is the MySQL base
919 install directory, default is to search through
920 a number of common places for the MySQL files.
922 --with-embedded-mysql=DIR Include MySQL support. DIR is the MySQL base
923 install directory, default is to search through
924 a number of common places for the MySQL files.
926 --with-sqlite3=DIR Include SQLite3 support. DIR is the SQLite3 base
927 install directory, default is to search through
928 a number of common places for the SQLite3 files.
930 --with-sqlite=DIR Include SQLite support. DIR is the SQLite base
931 install directory, default is to search through
932 a number of common places for the SQLite files.
933 --with-x use the X Window System
935 Some influential environment variables:
936 CC C compiler command
937 CFLAGS C compiler flags
938 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
939 nonstandard directory <lib dir>
940 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
941 headers in a nonstandard directory <include dir>
942 CXX C++ compiler command
943 CXXFLAGS C++ compiler flags
945 WXCONFIG wx-config command. On some systems, you must set it to
946 wx-config-2.6 to use wxWidgets 2.6.
947 WXFLAGS Parameters to pass to wx-config (e.g. --unicode=no).
949 Use these variables to override the choices made by `configure' or to help
950 it to find libraries and programs with nonstandard names/locations.
955 if test "$ac_init_help" = "recursive"; then
956 # If there are subdirs, report their specific --help.
958 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
959 test -d $ac_dir || continue
962 if test "$ac_dir" != .; then
963 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
964 # A "../" for each directory in $ac_dir_suffix.
965 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
967 ac_dir_suffix= ac_top_builddir=
971 .) # No --srcdir option. We are building in place.
973 if test -z "$ac_top_builddir"; then
976 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
978 [\\/]* | ?:[\\/]* ) # Absolute path.
979 ac_srcdir=$srcdir$ac_dir_suffix;
980 ac_top_srcdir=$srcdir ;;
982 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
983 ac_top_srcdir=$ac_top_builddir$srcdir ;;
986 # Do not use `cd foo && pwd` to compute absolute paths, because
987 # the directories may not exist.
989 .) ac_abs_builddir="$ac_dir";;
992 .) ac_abs_builddir=`pwd`;;
993 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
994 *) ac_abs_builddir=`pwd`/"$ac_dir";;
997 case $ac_abs_builddir in
998 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1000 case ${ac_top_builddir}. in
1001 .) ac_abs_top_builddir=$ac_abs_builddir;;
1002 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1003 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1006 case $ac_abs_builddir in
1007 .) ac_abs_srcdir=$ac_srcdir;;
1010 .) ac_abs_srcdir=$ac_abs_builddir;;
1011 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1012 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1015 case $ac_abs_builddir in
1016 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1018 case $ac_top_srcdir in
1019 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1020 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1021 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1026 # Check for guested configure; otherwise get Cygnus style configure.
1027 if test -f $ac_srcdir/configure.gnu; then
1029 $SHELL $ac_srcdir/configure.gnu --help=recursive
1030 elif test -f $ac_srcdir/configure; then
1032 $SHELL $ac_srcdir/configure --help=recursive
1033 elif test -f $ac_srcdir/configure.ac ||
1034 test -f $ac_srcdir/configure.in; then
1036 $ac_configure --help
1038 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1044 test -n "$ac_init_help" && exit 0
1045 if $ac_init_version; then
1048 Copyright (C) 2003 Free Software Foundation, Inc.
1049 This configure script is free software; the Free Software Foundation
1050 gives unlimited permission to copy, distribute and modify it.
1056 This file contains any messages produced by compilers while
1057 running configure, to aid debugging if configure makes a mistake.
1059 It was created by $as_me, which was
1060 generated by GNU Autoconf 2.59. Invocation command line was
1071 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1072 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1073 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1074 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1075 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1077 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1078 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1080 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1081 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1082 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1083 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1084 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1085 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1086 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1094 test -z "$as_dir" && as_dir=.
1095 echo "PATH: $as_dir"
1110 # Keep a trace of the command line.
1111 # Strip out --no-create and --no-recursion so they do not pile up.
1112 # Strip out --silent because we don't want to record it for future runs.
1113 # Also quote any args containing shell meta-characters.
1114 # Make two passes to allow for proper duplicate-argument suppression.
1119 ac_must_keep_next=false
1125 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1126 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1127 | -silent | --silent | --silen | --sile | --sil)
1129 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1130 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1133 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1135 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1136 if test $ac_must_keep_next = true; then
1137 ac_must_keep_next=false # Got value, back to normal.
1140 *=* | --config-cache | -C | -disable-* | --disable-* \
1141 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1142 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1143 | -with-* | --with-* | -without-* | --without-* | --x)
1144 case "$ac_configure_args0 " in
1145 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1148 -* ) ac_must_keep_next=true ;;
1151 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1152 # Get rid of the leading space.
1158 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1159 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1161 # When interrupted or exit'd, cleanup temporary files, and complete
1162 # config.log. We remove comments because anyway the quotes in there
1163 # would cause problems or look ugly.
1164 # WARNING: Be sure not to use single quotes in there, as some shells,
1165 # such as our DU 5.0 friend, will then `close' the trap.
1166 trap 'exit_status=$?
1167 # Save into config.log some information that might help in debugging.
1172 ## ---------------- ##
1173 ## Cache variables. ##
1174 ## ---------------- ##
1177 # The following way of writing the cache mishandles newlines in values,
1180 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1183 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1184 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1188 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1195 ## ----------------- ##
1196 ## Output variables. ##
1197 ## ----------------- ##
1200 for ac_var in $ac_subst_vars
1202 eval ac_val=$`echo $ac_var`
1203 echo "$ac_var='"'"'$ac_val'"'"'"
1207 if test -n "$ac_subst_files"; then
1214 for ac_var in $ac_subst_files
1216 eval ac_val=$`echo $ac_var`
1217 echo "$ac_var='"'"'$ac_val'"'"'"
1222 if test -s confdefs.h; then
1229 sed "/^$/d" confdefs.h | sort
1232 test "$ac_signal" != 0 &&
1233 echo "$as_me: caught signal $ac_signal"
1234 echo "$as_me: exit $exit_status"
1236 rm -f core *.core &&
1237 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1240 for ac_signal in 1 2 13 15; do
1241 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1245 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1246 rm -rf conftest* confdefs.h
1247 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1250 # Predefined preprocessor variables.
1252 cat >>confdefs.h <<_ACEOF
1253 #define PACKAGE_NAME "$PACKAGE_NAME"
1257 cat >>confdefs.h <<_ACEOF
1258 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1262 cat >>confdefs.h <<_ACEOF
1263 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1267 cat >>confdefs.h <<_ACEOF
1268 #define PACKAGE_STRING "$PACKAGE_STRING"
1272 cat >>confdefs.h <<_ACEOF
1273 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1277 # Let the site file select an alternate cache file if it wants to.
1278 # Prefer explicitly selected file to automatically selected ones.
1279 if test -z "$CONFIG_SITE"; then
1280 if test "x$prefix" != xNONE; then
1281 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1283 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1286 for ac_site_file in $CONFIG_SITE; do
1287 if test -r "$ac_site_file"; then
1288 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1289 echo "$as_me: loading site script $ac_site_file" >&6;}
1290 sed 's/^/| /' "$ac_site_file" >&5
1295 if test -r "$cache_file"; then
1296 # Some versions of bash will fail to source /dev/null (special
1297 # files actually), so we avoid doing that.
1298 if test -f "$cache_file"; then
1299 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1300 echo "$as_me: loading cache $cache_file" >&6;}
1302 [\\/]* | ?:[\\/]* ) . $cache_file;;
1303 *) . ./$cache_file;;
1307 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1308 echo "$as_me: creating cache $cache_file" >&6;}
1312 # Check that the precious variables saved in the cache have kept the same
1314 ac_cache_corrupted=false
1315 for ac_var in `(set) 2>&1 |
1316 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1317 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1318 eval ac_new_set=\$ac_env_${ac_var}_set
1319 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1320 eval ac_new_val="\$ac_env_${ac_var}_value"
1321 case $ac_old_set,$ac_new_set in
1323 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1324 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1325 ac_cache_corrupted=: ;;
1327 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1328 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1329 ac_cache_corrupted=: ;;
1332 if test "x$ac_old_val" != "x$ac_new_val"; then
1333 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1334 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1335 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1336 echo "$as_me: former value: $ac_old_val" >&2;}
1337 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1338 echo "$as_me: current value: $ac_new_val" >&2;}
1339 ac_cache_corrupted=:
1342 # Pass precious variables to config.status.
1343 if test "$ac_new_set" = set; then
1345 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1346 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1347 *) ac_arg=$ac_var=$ac_new_val ;;
1349 case " $ac_configure_args " in
1350 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1351 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1355 if $ac_cache_corrupted; then
1356 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1357 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1358 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1359 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1360 { (exit 1); exit 1; }; }
1364 ac_cpp='$CPP $CPPFLAGS'
1365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1393 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1394 if test -f $ac_dir/install-sh; then
1396 ac_install_sh="$ac_aux_dir/install-sh -c"
1398 elif test -f $ac_dir/install.sh; then
1400 ac_install_sh="$ac_aux_dir/install.sh -c"
1402 elif test -f $ac_dir/shtool; then
1404 ac_install_sh="$ac_aux_dir/shtool install -c"
1408 if test -z "$ac_aux_dir"; then
1409 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1410 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1411 { (exit 1); exit 1; }; }
1413 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1414 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1415 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1417 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1425 # Extract the first word of "$ac_prog", so it can be a program name with args.
1426 set dummy $ac_prog; ac_word=$2
1427 echo "$as_me:$LINENO: checking for $ac_word" >&5
1428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1429 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1430 echo $ECHO_N "(cached) $ECHO_C" >&6
1434 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1441 test -z "$as_dir" && as_dir=.
1442 for ac_exec_ext in '' $ac_executable_extensions; do
1443 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1444 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1454 TRUEPRG=$ac_cv_path_TRUEPRG
1456 if test -n "$TRUEPRG"; then
1457 echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1458 echo "${ECHO_T}$TRUEPRG" >&6
1460 echo "$as_me:$LINENO: result: no" >&5
1461 echo "${ECHO_T}no" >&6
1464 test -n "$TRUEPRG" && break
1466 test -n "$TRUEPRG" || TRUEPRG=":"
1468 for ac_prog in false
1470 # Extract the first word of "$ac_prog", so it can be a program name with args.
1471 set dummy $ac_prog; ac_word=$2
1472 echo "$as_me:$LINENO: checking for $ac_word" >&5
1473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1474 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1475 echo $ECHO_N "(cached) $ECHO_C" >&6
1479 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1486 test -z "$as_dir" && as_dir=.
1487 for ac_exec_ext in '' $ac_executable_extensions; do
1488 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1489 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1499 FALSEPRG=$ac_cv_path_FALSEPRG
1501 if test -n "$FALSEPRG"; then
1502 echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1503 echo "${ECHO_T}$FALSEPRG" >&6
1505 echo "$as_me:$LINENO: result: no" >&5
1506 echo "${ECHO_T}no" >&6
1509 test -n "$FALSEPRG" && break
1511 test -n "$FALSEPRG" || FALSEPRG=":"
1516 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1517 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1518 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1519 echo "configuring for bacula $VERSION ($DATE)"
1524 ac_cpp='$CPP $CPPFLAGS'
1525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1528 if test -n "$ac_tool_prefix"; then
1529 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1530 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1531 echo "$as_me:$LINENO: checking for $ac_word" >&5
1532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1533 if test "${ac_cv_prog_CC+set}" = set; then
1534 echo $ECHO_N "(cached) $ECHO_C" >&6
1536 if test -n "$CC"; then
1537 ac_cv_prog_CC="$CC" # Let the user override the test.
1539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1543 test -z "$as_dir" && as_dir=.
1544 for ac_exec_ext in '' $ac_executable_extensions; do
1545 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1546 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1556 if test -n "$CC"; then
1557 echo "$as_me:$LINENO: result: $CC" >&5
1558 echo "${ECHO_T}$CC" >&6
1560 echo "$as_me:$LINENO: result: no" >&5
1561 echo "${ECHO_T}no" >&6
1565 if test -z "$ac_cv_prog_CC"; then
1567 # Extract the first word of "gcc", so it can be a program name with args.
1568 set dummy gcc; ac_word=$2
1569 echo "$as_me:$LINENO: checking for $ac_word" >&5
1570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1571 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1572 echo $ECHO_N "(cached) $ECHO_C" >&6
1574 if test -n "$ac_ct_CC"; then
1575 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1581 test -z "$as_dir" && as_dir=.
1582 for ac_exec_ext in '' $ac_executable_extensions; do
1583 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1584 ac_cv_prog_ac_ct_CC="gcc"
1585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1593 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1594 if test -n "$ac_ct_CC"; then
1595 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1596 echo "${ECHO_T}$ac_ct_CC" >&6
1598 echo "$as_me:$LINENO: result: no" >&5
1599 echo "${ECHO_T}no" >&6
1607 if test -z "$CC"; then
1608 if test -n "$ac_tool_prefix"; then
1609 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1610 set dummy ${ac_tool_prefix}cc; ac_word=$2
1611 echo "$as_me:$LINENO: checking for $ac_word" >&5
1612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1613 if test "${ac_cv_prog_CC+set}" = set; then
1614 echo $ECHO_N "(cached) $ECHO_C" >&6
1616 if test -n "$CC"; then
1617 ac_cv_prog_CC="$CC" # Let the user override the test.
1619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1623 test -z "$as_dir" && as_dir=.
1624 for ac_exec_ext in '' $ac_executable_extensions; do
1625 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1626 ac_cv_prog_CC="${ac_tool_prefix}cc"
1627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1636 if test -n "$CC"; then
1637 echo "$as_me:$LINENO: result: $CC" >&5
1638 echo "${ECHO_T}$CC" >&6
1640 echo "$as_me:$LINENO: result: no" >&5
1641 echo "${ECHO_T}no" >&6
1645 if test -z "$ac_cv_prog_CC"; then
1647 # Extract the first word of "cc", so it can be a program name with args.
1648 set dummy cc; ac_word=$2
1649 echo "$as_me:$LINENO: checking for $ac_word" >&5
1650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1651 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1652 echo $ECHO_N "(cached) $ECHO_C" >&6
1654 if test -n "$ac_ct_CC"; then
1655 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1661 test -z "$as_dir" && as_dir=.
1662 for ac_exec_ext in '' $ac_executable_extensions; do
1663 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1664 ac_cv_prog_ac_ct_CC="cc"
1665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1673 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1674 if test -n "$ac_ct_CC"; then
1675 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1676 echo "${ECHO_T}$ac_ct_CC" >&6
1678 echo "$as_me:$LINENO: result: no" >&5
1679 echo "${ECHO_T}no" >&6
1688 if test -z "$CC"; then
1689 # Extract the first word of "cc", so it can be a program name with args.
1690 set dummy cc; ac_word=$2
1691 echo "$as_me:$LINENO: checking for $ac_word" >&5
1692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1693 if test "${ac_cv_prog_CC+set}" = set; then
1694 echo $ECHO_N "(cached) $ECHO_C" >&6
1696 if test -n "$CC"; then
1697 ac_cv_prog_CC="$CC" # Let the user override the test.
1700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1704 test -z "$as_dir" && as_dir=.
1705 for ac_exec_ext in '' $ac_executable_extensions; do
1706 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1707 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1708 ac_prog_rejected=yes
1712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1718 if test $ac_prog_rejected = yes; then
1719 # We found a bogon in the path, so make sure we never use it.
1720 set dummy $ac_cv_prog_CC
1722 if test $# != 0; then
1723 # We chose a different compiler from the bogus one.
1724 # However, it has the same basename, so the bogon will be chosen
1725 # first if we set CC to just the basename; use the full file name.
1727 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1733 if test -n "$CC"; then
1734 echo "$as_me:$LINENO: result: $CC" >&5
1735 echo "${ECHO_T}$CC" >&6
1737 echo "$as_me:$LINENO: result: no" >&5
1738 echo "${ECHO_T}no" >&6
1742 if test -z "$CC"; then
1743 if test -n "$ac_tool_prefix"; then
1746 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1747 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1748 echo "$as_me:$LINENO: checking for $ac_word" >&5
1749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1750 if test "${ac_cv_prog_CC+set}" = set; then
1751 echo $ECHO_N "(cached) $ECHO_C" >&6
1753 if test -n "$CC"; then
1754 ac_cv_prog_CC="$CC" # Let the user override the test.
1756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1760 test -z "$as_dir" && as_dir=.
1761 for ac_exec_ext in '' $ac_executable_extensions; do
1762 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1763 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1773 if test -n "$CC"; then
1774 echo "$as_me:$LINENO: result: $CC" >&5
1775 echo "${ECHO_T}$CC" >&6
1777 echo "$as_me:$LINENO: result: no" >&5
1778 echo "${ECHO_T}no" >&6
1781 test -n "$CC" && break
1784 if test -z "$CC"; then
1788 # Extract the first word of "$ac_prog", so it can be a program name with args.
1789 set dummy $ac_prog; ac_word=$2
1790 echo "$as_me:$LINENO: checking for $ac_word" >&5
1791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1792 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1793 echo $ECHO_N "(cached) $ECHO_C" >&6
1795 if test -n "$ac_ct_CC"; then
1796 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1802 test -z "$as_dir" && as_dir=.
1803 for ac_exec_ext in '' $ac_executable_extensions; do
1804 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1805 ac_cv_prog_ac_ct_CC="$ac_prog"
1806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1814 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1815 if test -n "$ac_ct_CC"; then
1816 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1817 echo "${ECHO_T}$ac_ct_CC" >&6
1819 echo "$as_me:$LINENO: result: no" >&5
1820 echo "${ECHO_T}no" >&6
1823 test -n "$ac_ct_CC" && break
1832 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1833 See \`config.log' for more details." >&5
1834 echo "$as_me: error: no acceptable C compiler found in \$PATH
1835 See \`config.log' for more details." >&2;}
1836 { (exit 1); exit 1; }; }
1838 # Provide some information about the compiler.
1839 echo "$as_me:$LINENO:" \
1840 "checking for C compiler version" >&5
1841 ac_compiler=`set X $ac_compile; echo $2`
1842 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1843 (eval $ac_compiler --version </dev/null >&5) 2>&5
1845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1846 (exit $ac_status); }
1847 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1848 (eval $ac_compiler -v </dev/null >&5) 2>&5
1850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1851 (exit $ac_status); }
1852 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1853 (eval $ac_compiler -V </dev/null >&5) 2>&5
1855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1856 (exit $ac_status); }
1858 cat >conftest.$ac_ext <<_ACEOF
1861 cat confdefs.h >>conftest.$ac_ext
1862 cat >>conftest.$ac_ext <<_ACEOF
1863 /* end confdefs.h. */
1873 ac_clean_files_save=$ac_clean_files
1874 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1875 # Try to create an executable without -o first, disregard a.out.
1876 # It will help us diagnose broken compilers, and finding out an intuition
1878 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1879 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1880 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1881 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1882 (eval $ac_link_default) 2>&5
1884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1885 (exit $ac_status); }; then
1886 # Find the output, starting from the most likely. This scheme is
1887 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1890 # Be careful to initialize this variable, since it used to be cached.
1891 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1893 # b.out is created by i960 compilers.
1894 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1896 test -f "$ac_file" || continue
1898 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1901 # This is the source file.
1904 # We found the default executable, but exeext='' is most
1908 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1909 # FIXME: I believe we export ac_cv_exeext for Libtool,
1910 # but it would be cool to find out if it's true. Does anybody
1911 # maintain Libtool? --akim.
1919 echo "$as_me: failed program was:" >&5
1920 sed 's/^/| /' conftest.$ac_ext >&5
1922 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1923 See \`config.log' for more details." >&5
1924 echo "$as_me: error: C compiler cannot create executables
1925 See \`config.log' for more details." >&2;}
1926 { (exit 77); exit 77; }; }
1929 ac_exeext=$ac_cv_exeext
1930 echo "$as_me:$LINENO: result: $ac_file" >&5
1931 echo "${ECHO_T}$ac_file" >&6
1933 # Check the compiler produces executables we can run. If not, either
1934 # the compiler is broken, or we cross compile.
1935 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1936 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1937 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1938 # If not cross compiling, check that we can run a simple program.
1939 if test "$cross_compiling" != yes; then
1940 if { ac_try='./$ac_file'
1941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1945 (exit $ac_status); }; }; then
1948 if test "$cross_compiling" = maybe; then
1951 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1952 If you meant to cross compile, use \`--host'.
1953 See \`config.log' for more details." >&5
1954 echo "$as_me: error: cannot run C compiled programs.
1955 If you meant to cross compile, use \`--host'.
1956 See \`config.log' for more details." >&2;}
1957 { (exit 1); exit 1; }; }
1961 echo "$as_me:$LINENO: result: yes" >&5
1962 echo "${ECHO_T}yes" >&6
1964 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1965 ac_clean_files=$ac_clean_files_save
1966 # Check the compiler produces executables we can run. If not, either
1967 # the compiler is broken, or we cross compile.
1968 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1969 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1970 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1971 echo "${ECHO_T}$cross_compiling" >&6
1973 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1974 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1976 (eval $ac_link) 2>&5
1978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1979 (exit $ac_status); }; then
1980 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1981 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1982 # work properly (i.e., refer to `conftest.exe'), while it won't with
1984 for ac_file in conftest.exe conftest conftest.*; do
1985 test -f "$ac_file" || continue
1987 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1988 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1995 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1996 See \`config.log' for more details." >&5
1997 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1998 See \`config.log' for more details." >&2;}
1999 { (exit 1); exit 1; }; }
2002 rm -f conftest$ac_cv_exeext
2003 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2004 echo "${ECHO_T}$ac_cv_exeext" >&6
2006 rm -f conftest.$ac_ext
2007 EXEEXT=$ac_cv_exeext
2009 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2010 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2011 if test "${ac_cv_objext+set}" = set; then
2012 echo $ECHO_N "(cached) $ECHO_C" >&6
2014 cat >conftest.$ac_ext <<_ACEOF
2017 cat confdefs.h >>conftest.$ac_ext
2018 cat >>conftest.$ac_ext <<_ACEOF
2019 /* end confdefs.h. */
2029 rm -f conftest.o conftest.obj
2030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2031 (eval $ac_compile) 2>&5
2033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2034 (exit $ac_status); }; then
2035 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2037 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2038 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2043 echo "$as_me: failed program was:" >&5
2044 sed 's/^/| /' conftest.$ac_ext >&5
2046 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2047 See \`config.log' for more details." >&5
2048 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2049 See \`config.log' for more details." >&2;}
2050 { (exit 1); exit 1; }; }
2053 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2055 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2056 echo "${ECHO_T}$ac_cv_objext" >&6
2057 OBJEXT=$ac_cv_objext
2059 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2060 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2061 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2062 echo $ECHO_N "(cached) $ECHO_C" >&6
2064 cat >conftest.$ac_ext <<_ACEOF
2067 cat confdefs.h >>conftest.$ac_ext
2068 cat >>conftest.$ac_ext <<_ACEOF
2069 /* end confdefs.h. */
2082 rm -f conftest.$ac_objext
2083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2084 (eval $ac_compile) 2>conftest.er1
2086 grep -v '^ *+' conftest.er1 >conftest.err
2088 cat conftest.err >&5
2089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2090 (exit $ac_status); } &&
2091 { ac_try='test -z "$ac_c_werror_flag"
2092 || test ! -s conftest.err'
2093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097 (exit $ac_status); }; } &&
2098 { ac_try='test -s conftest.$ac_objext'
2099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2103 (exit $ac_status); }; }; then
2106 echo "$as_me: failed program was:" >&5
2107 sed 's/^/| /' conftest.$ac_ext >&5
2111 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2112 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2115 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2116 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2117 GCC=`test $ac_compiler_gnu = yes && echo yes`
2118 ac_test_CFLAGS=${CFLAGS+set}
2119 ac_save_CFLAGS=$CFLAGS
2121 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2122 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2123 if test "${ac_cv_prog_cc_g+set}" = set; then
2124 echo $ECHO_N "(cached) $ECHO_C" >&6
2126 cat >conftest.$ac_ext <<_ACEOF
2129 cat confdefs.h >>conftest.$ac_ext
2130 cat >>conftest.$ac_ext <<_ACEOF
2131 /* end confdefs.h. */
2141 rm -f conftest.$ac_objext
2142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2143 (eval $ac_compile) 2>conftest.er1
2145 grep -v '^ *+' conftest.er1 >conftest.err
2147 cat conftest.err >&5
2148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2149 (exit $ac_status); } &&
2150 { ac_try='test -z "$ac_c_werror_flag"
2151 || test ! -s conftest.err'
2152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2156 (exit $ac_status); }; } &&
2157 { ac_try='test -s conftest.$ac_objext'
2158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2162 (exit $ac_status); }; }; then
2165 echo "$as_me: failed program was:" >&5
2166 sed 's/^/| /' conftest.$ac_ext >&5
2170 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2172 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2173 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2174 if test "$ac_test_CFLAGS" = set; then
2175 CFLAGS=$ac_save_CFLAGS
2176 elif test $ac_cv_prog_cc_g = yes; then
2177 if test "$GCC" = yes; then
2183 if test "$GCC" = yes; then
2189 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2190 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2191 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2192 echo $ECHO_N "(cached) $ECHO_C" >&6
2194 ac_cv_prog_cc_stdc=no
2196 cat >conftest.$ac_ext <<_ACEOF
2199 cat confdefs.h >>conftest.$ac_ext
2200 cat >>conftest.$ac_ext <<_ACEOF
2201 /* end confdefs.h. */
2204 #include <sys/types.h>
2205 #include <sys/stat.h>
2206 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2207 struct buf { int x; };
2208 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2209 static char *e (p, i)
2215 static char *f (char * (*g) (char **, int), char **p, ...)
2220 s = g (p, va_arg (v,int));
2225 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2226 function prototypes and stuff, but not '\xHH' hex character constants.
2227 These don't provoke an error unfortunately, instead are silently treated
2228 as 'x'. The following induces an error, until -std1 is added to get
2229 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2230 array size at least. It's necessary to write '\x00'==0 to get something
2231 that's true only with -std1. */
2232 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2234 int test (int i, double x);
2235 struct s1 {int (*f) (int a);};
2236 struct s2 {int (*f) (double a);};
2237 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2243 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2248 # Don't try gcc -ansi; that turns off useful extensions and
2249 # breaks some systems' header files.
2250 # AIX -qlanglvl=ansi
2251 # Ultrix and OSF/1 -std1
2252 # HP-UX 10.20 and later -Ae
2253 # HP-UX older versions -Aa -D_HPUX_SOURCE
2254 # SVR4 -Xc -D__EXTENSIONS__
2255 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2257 CC="$ac_save_CC $ac_arg"
2258 rm -f conftest.$ac_objext
2259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2260 (eval $ac_compile) 2>conftest.er1
2262 grep -v '^ *+' conftest.er1 >conftest.err
2264 cat conftest.err >&5
2265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266 (exit $ac_status); } &&
2267 { ac_try='test -z "$ac_c_werror_flag"
2268 || test ! -s conftest.err'
2269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273 (exit $ac_status); }; } &&
2274 { ac_try='test -s conftest.$ac_objext'
2275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2279 (exit $ac_status); }; }; then
2280 ac_cv_prog_cc_stdc=$ac_arg
2283 echo "$as_me: failed program was:" >&5
2284 sed 's/^/| /' conftest.$ac_ext >&5
2287 rm -f conftest.err conftest.$ac_objext
2289 rm -f conftest.$ac_ext conftest.$ac_objext
2294 case "x$ac_cv_prog_cc_stdc" in
2296 echo "$as_me:$LINENO: result: none needed" >&5
2297 echo "${ECHO_T}none needed" >&6 ;;
2299 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2300 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2301 CC="$CC $ac_cv_prog_cc_stdc" ;;
2304 # Some people use a C++ compiler to compile C. Since we use `exit',
2305 # in C++ we need to declare it. In case someone uses the same compiler
2306 # for both compiling C and C++ we need to have the C++ compiler decide
2307 # the declaration of exit, since it's the most demanding environment.
2308 cat >conftest.$ac_ext <<_ACEOF
2313 rm -f conftest.$ac_objext
2314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2315 (eval $ac_compile) 2>conftest.er1
2317 grep -v '^ *+' conftest.er1 >conftest.err
2319 cat conftest.err >&5
2320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2321 (exit $ac_status); } &&
2322 { ac_try='test -z "$ac_c_werror_flag"
2323 || test ! -s conftest.err'
2324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328 (exit $ac_status); }; } &&
2329 { ac_try='test -s conftest.$ac_objext'
2330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2334 (exit $ac_status); }; }; then
2335 for ac_declaration in \
2337 'extern "C" void std::exit (int) throw (); using std::exit;' \
2338 'extern "C" void std::exit (int); using std::exit;' \
2339 'extern "C" void exit (int) throw ();' \
2340 'extern "C" void exit (int);' \
2343 cat >conftest.$ac_ext <<_ACEOF
2346 cat confdefs.h >>conftest.$ac_ext
2347 cat >>conftest.$ac_ext <<_ACEOF
2348 /* end confdefs.h. */
2359 rm -f conftest.$ac_objext
2360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2361 (eval $ac_compile) 2>conftest.er1
2363 grep -v '^ *+' conftest.er1 >conftest.err
2365 cat conftest.err >&5
2366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2367 (exit $ac_status); } &&
2368 { ac_try='test -z "$ac_c_werror_flag"
2369 || test ! -s conftest.err'
2370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374 (exit $ac_status); }; } &&
2375 { ac_try='test -s conftest.$ac_objext'
2376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2380 (exit $ac_status); }; }; then
2383 echo "$as_me: failed program was:" >&5
2384 sed 's/^/| /' conftest.$ac_ext >&5
2388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2389 cat >conftest.$ac_ext <<_ACEOF
2392 cat confdefs.h >>conftest.$ac_ext
2393 cat >>conftest.$ac_ext <<_ACEOF
2394 /* end confdefs.h. */
2404 rm -f conftest.$ac_objext
2405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2406 (eval $ac_compile) 2>conftest.er1
2408 grep -v '^ *+' conftest.er1 >conftest.err
2410 cat conftest.err >&5
2411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412 (exit $ac_status); } &&
2413 { ac_try='test -z "$ac_c_werror_flag"
2414 || test ! -s conftest.err'
2415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419 (exit $ac_status); }; } &&
2420 { ac_try='test -s conftest.$ac_objext'
2421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425 (exit $ac_status); }; }; then
2428 echo "$as_me: failed program was:" >&5
2429 sed 's/^/| /' conftest.$ac_ext >&5
2432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2435 if test -n "$ac_declaration"; then
2436 echo '#ifdef __cplusplus' >>confdefs.h
2437 echo $ac_declaration >>confdefs.h
2438 echo '#endif' >>confdefs.h
2442 echo "$as_me: failed program was:" >&5
2443 sed 's/^/| /' conftest.$ac_ext >&5
2446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2448 ac_cpp='$CPP $CPPFLAGS'
2449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2454 ac_cpp='$CXXCPP $CPPFLAGS'
2455 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2456 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2457 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2458 if test -n "$ac_tool_prefix"; then
2459 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2461 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2462 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2463 echo "$as_me:$LINENO: checking for $ac_word" >&5
2464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2465 if test "${ac_cv_prog_CXX+set}" = set; then
2466 echo $ECHO_N "(cached) $ECHO_C" >&6
2468 if test -n "$CXX"; then
2469 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2475 test -z "$as_dir" && as_dir=.
2476 for ac_exec_ext in '' $ac_executable_extensions; do
2477 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2478 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2488 if test -n "$CXX"; then
2489 echo "$as_me:$LINENO: result: $CXX" >&5
2490 echo "${ECHO_T}$CXX" >&6
2492 echo "$as_me:$LINENO: result: no" >&5
2493 echo "${ECHO_T}no" >&6
2496 test -n "$CXX" && break
2499 if test -z "$CXX"; then
2501 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2503 # Extract the first word of "$ac_prog", so it can be a program name with args.
2504 set dummy $ac_prog; ac_word=$2
2505 echo "$as_me:$LINENO: checking for $ac_word" >&5
2506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2507 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2508 echo $ECHO_N "(cached) $ECHO_C" >&6
2510 if test -n "$ac_ct_CXX"; then
2511 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2517 test -z "$as_dir" && as_dir=.
2518 for ac_exec_ext in '' $ac_executable_extensions; do
2519 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2520 ac_cv_prog_ac_ct_CXX="$ac_prog"
2521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2529 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2530 if test -n "$ac_ct_CXX"; then
2531 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2532 echo "${ECHO_T}$ac_ct_CXX" >&6
2534 echo "$as_me:$LINENO: result: no" >&5
2535 echo "${ECHO_T}no" >&6
2538 test -n "$ac_ct_CXX" && break
2540 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2546 # Provide some information about the compiler.
2547 echo "$as_me:$LINENO:" \
2548 "checking for C++ compiler version" >&5
2549 ac_compiler=`set X $ac_compile; echo $2`
2550 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2551 (eval $ac_compiler --version </dev/null >&5) 2>&5
2553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554 (exit $ac_status); }
2555 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2556 (eval $ac_compiler -v </dev/null >&5) 2>&5
2558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559 (exit $ac_status); }
2560 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2561 (eval $ac_compiler -V </dev/null >&5) 2>&5
2563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564 (exit $ac_status); }
2566 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2567 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2568 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2569 echo $ECHO_N "(cached) $ECHO_C" >&6
2571 cat >conftest.$ac_ext <<_ACEOF
2574 cat confdefs.h >>conftest.$ac_ext
2575 cat >>conftest.$ac_ext <<_ACEOF
2576 /* end confdefs.h. */
2589 rm -f conftest.$ac_objext
2590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2591 (eval $ac_compile) 2>conftest.er1
2593 grep -v '^ *+' conftest.er1 >conftest.err
2595 cat conftest.err >&5
2596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597 (exit $ac_status); } &&
2598 { ac_try='test -z "$ac_cxx_werror_flag"
2599 || test ! -s conftest.err'
2600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604 (exit $ac_status); }; } &&
2605 { ac_try='test -s conftest.$ac_objext'
2606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610 (exit $ac_status); }; }; then
2613 echo "$as_me: failed program was:" >&5
2614 sed 's/^/| /' conftest.$ac_ext >&5
2618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2619 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2622 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2623 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2624 GXX=`test $ac_compiler_gnu = yes && echo yes`
2625 ac_test_CXXFLAGS=${CXXFLAGS+set}
2626 ac_save_CXXFLAGS=$CXXFLAGS
2628 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2629 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2630 if test "${ac_cv_prog_cxx_g+set}" = set; then
2631 echo $ECHO_N "(cached) $ECHO_C" >&6
2633 cat >conftest.$ac_ext <<_ACEOF
2636 cat confdefs.h >>conftest.$ac_ext
2637 cat >>conftest.$ac_ext <<_ACEOF
2638 /* end confdefs.h. */
2648 rm -f conftest.$ac_objext
2649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2650 (eval $ac_compile) 2>conftest.er1
2652 grep -v '^ *+' conftest.er1 >conftest.err
2654 cat conftest.err >&5
2655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656 (exit $ac_status); } &&
2657 { ac_try='test -z "$ac_cxx_werror_flag"
2658 || test ! -s conftest.err'
2659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663 (exit $ac_status); }; } &&
2664 { ac_try='test -s conftest.$ac_objext'
2665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669 (exit $ac_status); }; }; then
2670 ac_cv_prog_cxx_g=yes
2672 echo "$as_me: failed program was:" >&5
2673 sed 's/^/| /' conftest.$ac_ext >&5
2677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2679 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2680 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2681 if test "$ac_test_CXXFLAGS" = set; then
2682 CXXFLAGS=$ac_save_CXXFLAGS
2683 elif test $ac_cv_prog_cxx_g = yes; then
2684 if test "$GXX" = yes; then
2690 if test "$GXX" = yes; then
2696 for ac_declaration in \
2698 'extern "C" void std::exit (int) throw (); using std::exit;' \
2699 'extern "C" void std::exit (int); using std::exit;' \
2700 'extern "C" void exit (int) throw ();' \
2701 'extern "C" void exit (int);' \
2704 cat >conftest.$ac_ext <<_ACEOF
2707 cat confdefs.h >>conftest.$ac_ext
2708 cat >>conftest.$ac_ext <<_ACEOF
2709 /* end confdefs.h. */
2720 rm -f conftest.$ac_objext
2721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2722 (eval $ac_compile) 2>conftest.er1
2724 grep -v '^ *+' conftest.er1 >conftest.err
2726 cat conftest.err >&5
2727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728 (exit $ac_status); } &&
2729 { ac_try='test -z "$ac_cxx_werror_flag"
2730 || test ! -s conftest.err'
2731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735 (exit $ac_status); }; } &&
2736 { ac_try='test -s conftest.$ac_objext'
2737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); }; }; then
2744 echo "$as_me: failed program was:" >&5
2745 sed 's/^/| /' conftest.$ac_ext >&5
2749 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2750 cat >conftest.$ac_ext <<_ACEOF
2753 cat confdefs.h >>conftest.$ac_ext
2754 cat >>conftest.$ac_ext <<_ACEOF
2755 /* end confdefs.h. */
2765 rm -f conftest.$ac_objext
2766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2767 (eval $ac_compile) 2>conftest.er1
2769 grep -v '^ *+' conftest.er1 >conftest.err
2771 cat conftest.err >&5
2772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773 (exit $ac_status); } &&
2774 { ac_try='test -z "$ac_cxx_werror_flag"
2775 || test ! -s conftest.err'
2776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780 (exit $ac_status); }; } &&
2781 { ac_try='test -s conftest.$ac_objext'
2782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); }; }; then
2789 echo "$as_me: failed program was:" >&5
2790 sed 's/^/| /' conftest.$ac_ext >&5
2793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2796 if test -n "$ac_declaration"; then
2797 echo '#ifdef __cplusplus' >>confdefs.h
2798 echo $ac_declaration >>confdefs.h
2799 echo '#endif' >>confdefs.h
2803 ac_cpp='$CPP $CPPFLAGS'
2804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2808 if test "x$CC" != xcc; then
2809 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2810 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2812 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2813 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2815 set dummy $CC; ac_cc=`echo $2 |
2816 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2817 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2818 echo $ECHO_N "(cached) $ECHO_C" >&6
2820 cat >conftest.$ac_ext <<_ACEOF
2823 cat confdefs.h >>conftest.$ac_ext
2824 cat >>conftest.$ac_ext <<_ACEOF
2825 /* end confdefs.h. */
2835 # Make sure it works both with $CC and with simple cc.
2836 # We do the test twice because some compilers refuse to overwrite an
2837 # existing .o file with -o, though they will create one.
2838 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2839 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843 (exit $ac_status); } &&
2844 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848 (exit $ac_status); };
2850 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2851 if test "x$CC" != xcc; then
2852 # Test first that cc exists at all.
2853 if { ac_try='cc -c conftest.$ac_ext >&5'
2854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858 (exit $ac_status); }; }; then
2859 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2860 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864 (exit $ac_status); } &&
2865 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869 (exit $ac_status); };
2874 # cc exists but doesn't like -o.
2875 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2880 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2885 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2886 echo "$as_me:$LINENO: result: yes" >&5
2887 echo "${ECHO_T}yes" >&6
2889 echo "$as_me:$LINENO: result: no" >&5
2890 echo "${ECHO_T}no" >&6
2892 cat >>confdefs.h <<\_ACEOF
2893 #define NO_MINUS_C_MINUS_O 1
2899 ac_cpp='$CPP $CPPFLAGS'
2900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2903 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2904 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2905 # On Suns, sometimes $CPP names a directory.
2906 if test -n "$CPP" && test -d "$CPP"; then
2909 if test -z "$CPP"; then
2910 if test "${ac_cv_prog_CPP+set}" = set; then
2911 echo $ECHO_N "(cached) $ECHO_C" >&6
2913 # Double quotes because CPP needs to be expanded
2914 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2917 for ac_c_preproc_warn_flag in '' yes
2919 # Use a header file that comes with gcc, so configuring glibc
2920 # with a fresh cross-compiler works.
2921 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2922 # <limits.h> exists even on freestanding compilers.
2923 # On the NeXT, cc -E runs the code through the compiler's parser,
2924 # not just through cpp. "Syntax error" is here to catch this case.
2925 cat >conftest.$ac_ext <<_ACEOF
2928 cat confdefs.h >>conftest.$ac_ext
2929 cat >>conftest.$ac_ext <<_ACEOF
2930 /* end confdefs.h. */
2932 # include <limits.h>
2934 # include <assert.h>
2938 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2939 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2941 grep -v '^ *+' conftest.er1 >conftest.err
2943 cat conftest.err >&5
2944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945 (exit $ac_status); } >/dev/null; then
2946 if test -s conftest.err; then
2947 ac_cpp_err=$ac_c_preproc_warn_flag
2948 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2955 if test -z "$ac_cpp_err"; then
2958 echo "$as_me: failed program was:" >&5
2959 sed 's/^/| /' conftest.$ac_ext >&5
2961 # Broken: fails on valid input.
2964 rm -f conftest.err conftest.$ac_ext
2966 # OK, works on sane cases. Now check whether non-existent headers
2967 # can be detected and how.
2968 cat >conftest.$ac_ext <<_ACEOF
2971 cat confdefs.h >>conftest.$ac_ext
2972 cat >>conftest.$ac_ext <<_ACEOF
2973 /* end confdefs.h. */
2974 #include <ac_nonexistent.h>
2976 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2977 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2979 grep -v '^ *+' conftest.er1 >conftest.err
2981 cat conftest.err >&5
2982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983 (exit $ac_status); } >/dev/null; then
2984 if test -s conftest.err; then
2985 ac_cpp_err=$ac_c_preproc_warn_flag
2986 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2993 if test -z "$ac_cpp_err"; then
2994 # Broken: success on invalid input.
2997 echo "$as_me: failed program was:" >&5
2998 sed 's/^/| /' conftest.$ac_ext >&5
3000 # Passes both tests.
3004 rm -f conftest.err conftest.$ac_ext
3007 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3008 rm -f conftest.err conftest.$ac_ext
3009 if $ac_preproc_ok; then
3021 echo "$as_me:$LINENO: result: $CPP" >&5
3022 echo "${ECHO_T}$CPP" >&6
3024 for ac_c_preproc_warn_flag in '' yes
3026 # Use a header file that comes with gcc, so configuring glibc
3027 # with a fresh cross-compiler works.
3028 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3029 # <limits.h> exists even on freestanding compilers.
3030 # On the NeXT, cc -E runs the code through the compiler's parser,
3031 # not just through cpp. "Syntax error" is here to catch this case.
3032 cat >conftest.$ac_ext <<_ACEOF
3035 cat confdefs.h >>conftest.$ac_ext
3036 cat >>conftest.$ac_ext <<_ACEOF
3037 /* end confdefs.h. */
3039 # include <limits.h>
3041 # include <assert.h>
3045 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3046 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3048 grep -v '^ *+' conftest.er1 >conftest.err
3050 cat conftest.err >&5
3051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052 (exit $ac_status); } >/dev/null; then
3053 if test -s conftest.err; then
3054 ac_cpp_err=$ac_c_preproc_warn_flag
3055 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3062 if test -z "$ac_cpp_err"; then
3065 echo "$as_me: failed program was:" >&5
3066 sed 's/^/| /' conftest.$ac_ext >&5
3068 # Broken: fails on valid input.
3071 rm -f conftest.err conftest.$ac_ext
3073 # OK, works on sane cases. Now check whether non-existent headers
3074 # can be detected and how.
3075 cat >conftest.$ac_ext <<_ACEOF
3078 cat confdefs.h >>conftest.$ac_ext
3079 cat >>conftest.$ac_ext <<_ACEOF
3080 /* end confdefs.h. */
3081 #include <ac_nonexistent.h>
3083 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3084 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3086 grep -v '^ *+' conftest.er1 >conftest.err
3088 cat conftest.err >&5
3089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090 (exit $ac_status); } >/dev/null; then
3091 if test -s conftest.err; then
3092 ac_cpp_err=$ac_c_preproc_warn_flag
3093 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3100 if test -z "$ac_cpp_err"; then
3101 # Broken: success on invalid input.
3104 echo "$as_me: failed program was:" >&5
3105 sed 's/^/| /' conftest.$ac_ext >&5
3107 # Passes both tests.
3111 rm -f conftest.err conftest.$ac_ext
3114 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3115 rm -f conftest.err conftest.$ac_ext
3116 if $ac_preproc_ok; then
3119 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3120 See \`config.log' for more details." >&5
3121 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3122 See \`config.log' for more details." >&2;}
3123 { (exit 1); exit 1; }; }
3127 ac_cpp='$CPP $CPPFLAGS'
3128 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3129 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3130 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3133 echo "$as_me:$LINENO: checking for egrep" >&5
3134 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3135 if test "${ac_cv_prog_egrep+set}" = set; then
3136 echo $ECHO_N "(cached) $ECHO_C" >&6
3138 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3139 then ac_cv_prog_egrep='grep -E'
3140 else ac_cv_prog_egrep='egrep'
3143 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3144 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3145 EGREP=$ac_cv_prog_egrep
3148 if test $ac_cv_c_compiler_gnu = yes; then
3149 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3150 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3151 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3152 echo $ECHO_N "(cached) $ECHO_C" >&6
3154 ac_pattern="Autoconf.*'x'"
3155 cat >conftest.$ac_ext <<_ACEOF
3158 cat confdefs.h >>conftest.$ac_ext
3159 cat >>conftest.$ac_ext <<_ACEOF
3160 /* end confdefs.h. */
3164 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3165 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3166 ac_cv_prog_gcc_traditional=yes
3168 ac_cv_prog_gcc_traditional=no
3173 if test $ac_cv_prog_gcc_traditional = no; then
3174 cat >conftest.$ac_ext <<_ACEOF
3177 cat confdefs.h >>conftest.$ac_ext
3178 cat >>conftest.$ac_ext <<_ACEOF
3179 /* end confdefs.h. */
3183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3184 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3185 ac_cv_prog_gcc_traditional=yes
3191 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3192 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3193 if test $ac_cv_prog_gcc_traditional = yes; then
3194 CC="$CC -traditional"
3198 if test "x$CC" = xgcc; then
3199 cat >>confdefs.h <<\_ACEOF
3204 # Extract the first word of "$CXX", so it can be a program name with args.
3205 set dummy $CXX; ac_word=$2
3206 echo "$as_me:$LINENO: checking for $ac_word" >&5
3207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3208 if test "${ac_cv_path_CXX+set}" = set; then
3209 echo $ECHO_N "(cached) $ECHO_C" >&6
3213 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3220 test -z "$as_dir" && as_dir=.
3221 for ac_exec_ext in '' $ac_executable_extensions; do
3222 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3223 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3230 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
3236 if test -n "$CXX"; then
3237 echo "$as_me:$LINENO: result: $CXX" >&5
3238 echo "${ECHO_T}$CXX" >&6
3240 echo "$as_me:$LINENO: result: no" >&5
3241 echo "${ECHO_T}no" >&6
3244 if test ! -e $CXX; then
3245 { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
3246 echo "$as_me: error: Unable to find C++ compiler" >&2;}
3247 { (exit 1); exit 1; }; }
3250 # Find a good install program. We prefer a C program (faster),
3251 # so one script is as good as another. But avoid the broken or
3252 # incompatible versions:
3253 # SysV /etc/install, /usr/sbin/install
3254 # SunOS /usr/etc/install
3255 # IRIX /sbin/install
3257 # AmigaOS /C/install, which installs bootblocks on floppy discs
3258 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3259 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3260 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3261 # OS/2's system install, which has a completely different semantic
3262 # ./install, which can be erroneously created by make from ./install.sh.
3263 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3264 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3265 if test -z "$INSTALL"; then
3266 if test "${ac_cv_path_install+set}" = set; then
3267 echo $ECHO_N "(cached) $ECHO_C" >&6
3269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3273 test -z "$as_dir" && as_dir=.
3274 # Account for people who put trailing slashes in PATH elements.
3276 ./ | .// | /cC/* | \
3277 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3278 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3281 # OSF1 and SCO ODT 3.0 have their own names for install.
3282 # Don't use installbsd from OSF since it installs stuff as root
3284 for ac_prog in ginstall scoinst install; do
3285 for ac_exec_ext in '' $ac_executable_extensions; do
3286 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3287 if test $ac_prog = install &&
3288 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3289 # AIX install. It has an incompatible calling convention.
3291 elif test $ac_prog = install &&
3292 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3293 # program-specific install script used by HP pwplus--don't use.
3296 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3308 if test "${ac_cv_path_install+set}" = set; then
3309 INSTALL=$ac_cv_path_install
3311 # As a last resort, use the slow shell script. We don't cache a
3312 # path for INSTALL within a source directory, because that will
3313 # break other packages using the cache if that directory is
3314 # removed, or if the path is relative.
3315 INSTALL=$ac_install_sh
3318 echo "$as_me:$LINENO: result: $INSTALL" >&5
3319 echo "${ECHO_T}$INSTALL" >&6
3321 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3322 # It thinks the first close brace ends the variable substitution.
3323 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3325 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3327 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3329 if test -n "$ac_tool_prefix"; then
3330 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3331 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3332 echo "$as_me:$LINENO: checking for $ac_word" >&5
3333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3334 if test "${ac_cv_prog_RANLIB+set}" = set; then
3335 echo $ECHO_N "(cached) $ECHO_C" >&6
3337 if test -n "$RANLIB"; then
3338 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3344 test -z "$as_dir" && as_dir=.
3345 for ac_exec_ext in '' $ac_executable_extensions; do
3346 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3347 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3356 RANLIB=$ac_cv_prog_RANLIB
3357 if test -n "$RANLIB"; then
3358 echo "$as_me:$LINENO: result: $RANLIB" >&5
3359 echo "${ECHO_T}$RANLIB" >&6
3361 echo "$as_me:$LINENO: result: no" >&5
3362 echo "${ECHO_T}no" >&6
3366 if test -z "$ac_cv_prog_RANLIB"; then
3367 ac_ct_RANLIB=$RANLIB
3368 # Extract the first word of "ranlib", so it can be a program name with args.
3369 set dummy ranlib; ac_word=$2
3370 echo "$as_me:$LINENO: checking for $ac_word" >&5
3371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3372 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3373 echo $ECHO_N "(cached) $ECHO_C" >&6
3375 if test -n "$ac_ct_RANLIB"; then
3376 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3382 test -z "$as_dir" && as_dir=.
3383 for ac_exec_ext in '' $ac_executable_extensions; do
3384 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3385 ac_cv_prog_ac_ct_RANLIB="ranlib"
3386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3392 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3395 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3396 if test -n "$ac_ct_RANLIB"; then
3397 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3398 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3400 echo "$as_me:$LINENO: result: no" >&5
3401 echo "${ECHO_T}no" >&6
3404 RANLIB=$ac_ct_RANLIB
3406 RANLIB="$ac_cv_prog_RANLIB"
3409 # Extract the first word of "mv", so it can be a program name with args.
3410 set dummy mv; ac_word=$2
3411 echo "$as_me:$LINENO: checking for $ac_word" >&5
3412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3413 if test "${ac_cv_path_MV+set}" = set; then
3414 echo $ECHO_N "(cached) $ECHO_C" >&6
3418 ac_cv_path_MV="$MV" # Let the user override the test with a path.
3421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3425 test -z "$as_dir" && as_dir=.
3426 for ac_exec_ext in '' $ac_executable_extensions; do
3427 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3428 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3429 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3435 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3441 if test -n "$MV"; then
3442 echo "$as_me:$LINENO: result: $MV" >&5
3443 echo "${ECHO_T}$MV" >&6
3445 echo "$as_me:$LINENO: result: no" >&5
3446 echo "${ECHO_T}no" >&6
3449 # Extract the first word of "rm", so it can be a program name with args.
3450 set dummy rm; ac_word=$2
3451 echo "$as_me:$LINENO: checking for $ac_word" >&5
3452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3453 if test "${ac_cv_path_RM+set}" = set; then
3454 echo $ECHO_N "(cached) $ECHO_C" >&6
3458 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3465 test -z "$as_dir" && as_dir=.
3466 for ac_exec_ext in '' $ac_executable_extensions; do
3467 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3468 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3475 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3481 if test -n "$RM"; then
3482 echo "$as_me:$LINENO: result: $RM" >&5
3483 echo "${ECHO_T}$RM" >&6
3485 echo "$as_me:$LINENO: result: no" >&5
3486 echo "${ECHO_T}no" >&6
3489 # Extract the first word of "cp", so it can be a program name with args.
3490 set dummy cp; ac_word=$2
3491 echo "$as_me:$LINENO: checking for $ac_word" >&5
3492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3493 if test "${ac_cv_path_CP+set}" = set; then
3494 echo $ECHO_N "(cached) $ECHO_C" >&6
3498 ac_cv_path_CP="$CP" # Let the user override the test with a path.
3501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3505 test -z "$as_dir" && as_dir=.
3506 for ac_exec_ext in '' $ac_executable_extensions; do
3507 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3508 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3515 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3521 if test -n "$CP"; then
3522 echo "$as_me:$LINENO: result: $CP" >&5
3523 echo "${ECHO_T}$CP" >&6
3525 echo "$as_me:$LINENO: result: no" >&5
3526 echo "${ECHO_T}no" >&6
3529 # Extract the first word of "sed", so it can be a program name with args.
3530 set dummy sed; ac_word=$2
3531 echo "$as_me:$LINENO: checking for $ac_word" >&5
3532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3533 if test "${ac_cv_path_SED+set}" = set; then
3534 echo $ECHO_N "(cached) $ECHO_C" >&6
3538 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3545 test -z "$as_dir" && as_dir=.
3546 for ac_exec_ext in '' $ac_executable_extensions; do
3547 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3548 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3555 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3561 if test -n "$SED"; then
3562 echo "$as_me:$LINENO: result: $SED" >&5
3563 echo "${ECHO_T}$SED" >&6
3565 echo "$as_me:$LINENO: result: no" >&5
3566 echo "${ECHO_T}no" >&6
3569 # Extract the first word of "echo", so it can be a program name with args.
3570 set dummy echo; ac_word=$2
3571 echo "$as_me:$LINENO: checking for $ac_word" >&5
3572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3573 if test "${ac_cv_path_ECHO+set}" = set; then
3574 echo $ECHO_N "(cached) $ECHO_C" >&6
3578 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3585 test -z "$as_dir" && as_dir=.
3586 for ac_exec_ext in '' $ac_executable_extensions; do
3587 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3588 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3595 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3599 ECHO=$ac_cv_path_ECHO
3601 if test -n "$ECHO"; then
3602 echo "$as_me:$LINENO: result: $ECHO" >&5
3603 echo "${ECHO_T}$ECHO" >&6
3605 echo "$as_me:$LINENO: result: no" >&5
3606 echo "${ECHO_T}no" >&6
3609 # Extract the first word of "cmp", so it can be a program name with args.
3610 set dummy cmp; ac_word=$2
3611 echo "$as_me:$LINENO: checking for $ac_word" >&5
3612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3613 if test "${ac_cv_path_CMP+set}" = set; then
3614 echo $ECHO_N "(cached) $ECHO_C" >&6
3618 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3625 test -z "$as_dir" && as_dir=.
3626 for ac_exec_ext in '' $ac_executable_extensions; do
3627 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3628 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3635 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3641 if test -n "$CMP"; then
3642 echo "$as_me:$LINENO: result: $CMP" >&5
3643 echo "${ECHO_T}$CMP" >&6
3645 echo "$as_me:$LINENO: result: no" >&5
3646 echo "${ECHO_T}no" >&6
3649 # Extract the first word of "tbl", so it can be a program name with args.
3650 set dummy tbl; ac_word=$2
3651 echo "$as_me:$LINENO: checking for $ac_word" >&5
3652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3653 if test "${ac_cv_path_TBL+set}" = set; then
3654 echo $ECHO_N "(cached) $ECHO_C" >&6
3658 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3665 test -z "$as_dir" && as_dir=.
3666 for ac_exec_ext in '' $ac_executable_extensions; do
3667 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3668 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3675 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3681 if test -n "$TBL"; then
3682 echo "$as_me:$LINENO: result: $TBL" >&5
3683 echo "${ECHO_T}$TBL" >&6
3685 echo "$as_me:$LINENO: result: no" >&5
3686 echo "${ECHO_T}no" >&6
3689 # Extract the first word of "ar", so it can be a program name with args.
3690 set dummy ar; ac_word=$2
3691 echo "$as_me:$LINENO: checking for $ac_word" >&5
3692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3693 if test "${ac_cv_path_AR+set}" = set; then
3694 echo $ECHO_N "(cached) $ECHO_C" >&6
3698 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3705 test -z "$as_dir" && as_dir=.
3706 for ac_exec_ext in '' $ac_executable_extensions; do
3707 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3708 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3715 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3721 if test -n "$AR"; then
3722 echo "$as_me:$LINENO: result: $AR" >&5
3723 echo "${ECHO_T}$AR" >&6
3725 echo "$as_me:$LINENO: result: no" >&5
3726 echo "${ECHO_T}no" >&6
3729 # Extract the first word of "openssl", so it can be a program name with args.
3730 set dummy openssl; ac_word=$2
3731 echo "$as_me:$LINENO: checking for $ac_word" >&5
3732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3733 if test "${ac_cv_path_OPENSSL+set}" = set; then
3734 echo $ECHO_N "(cached) $ECHO_C" >&6
3738 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3745 test -z "$as_dir" && as_dir=.
3746 for ac_exec_ext in '' $ac_executable_extensions; do
3747 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3748 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3755 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3759 OPENSSL=$ac_cv_path_OPENSSL
3761 if test -n "$OPENSSL"; then
3762 echo "$as_me:$LINENO: result: $OPENSSL" >&5
3763 echo "${ECHO_T}$OPENSSL" >&6
3765 echo "$as_me:$LINENO: result: no" >&5
3766 echo "${ECHO_T}no" >&6
3769 # Extract the first word of "mtx", so it can be a program name with args.
3770 set dummy mtx; ac_word=$2
3771 echo "$as_me:$LINENO: checking for $ac_word" >&5
3772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3773 if test "${ac_cv_path_MTX+set}" = set; then
3774 echo $ECHO_N "(cached) $ECHO_C" >&6
3778 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3785 test -z "$as_dir" && as_dir=.
3786 for ac_exec_ext in '' $ac_executable_extensions; do
3787 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3788 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3795 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3801 if test -n "$MTX"; then
3802 echo "$as_me:$LINENO: result: $MTX" >&5
3803 echo "${ECHO_T}$MTX" >&6
3805 echo "$as_me:$LINENO: result: no" >&5
3806 echo "${ECHO_T}no" >&6
3809 # Extract the first word of "df", so it can be a program name with args.
3810 set dummy df; ac_word=$2
3811 echo "$as_me:$LINENO: checking for $ac_word" >&5
3812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3813 if test "${ac_cv_path_DF+set}" = set; then
3814 echo $ECHO_N "(cached) $ECHO_C" >&6
3818 ac_cv_path_DF="$DF" # Let the user override the test with a path.
3821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3825 test -z "$as_dir" && as_dir=.
3826 for ac_exec_ext in '' $ac_executable_extensions; do
3827 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3828 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
3829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3835 test -z "$ac_cv_path_DF" && ac_cv_path_DF="df"
3841 if test -n "$DF"; then
3842 echo "$as_me:$LINENO: result: $DF" >&5
3843 echo "${ECHO_T}$DF" >&6
3845 echo "$as_me:$LINENO: result: no" >&5
3846 echo "${ECHO_T}no" >&6
3849 # Extract the first word of "mkisofs", so it can be a program name with args.
3850 set dummy mkisofs; ac_word=$2
3851 echo "$as_me:$LINENO: checking for $ac_word" >&5
3852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3853 if test "${ac_cv_path_MKISOFS+set}" = set; then
3854 echo $ECHO_N "(cached) $ECHO_C" >&6
3858 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
3861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3865 test -z "$as_dir" && as_dir=.
3866 for ac_exec_ext in '' $ac_executable_extensions; do
3867 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3868 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
3869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3875 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
3879 MKISOFS=$ac_cv_path_MKISOFS
3881 if test -n "$MKISOFS"; then
3882 echo "$as_me:$LINENO: result: $MKISOFS" >&5
3883 echo "${ECHO_T}$MKISOFS" >&6
3885 echo "$as_me:$LINENO: result: no" >&5
3886 echo "${ECHO_T}no" >&6
3889 # Extract the first word of "python", so it can be a program name with args.
3890 set dummy python; ac_word=$2
3891 echo "$as_me:$LINENO: checking for $ac_word" >&5
3892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3893 if test "${ac_cv_path_PYTHON+set}" = set; then
3894 echo $ECHO_N "(cached) $ECHO_C" >&6
3898 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
3901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3905 test -z "$as_dir" && as_dir=.
3906 for ac_exec_ext in '' $ac_executable_extensions; do
3907 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3908 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
3909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3915 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
3919 PYTHON=$ac_cv_path_PYTHON
3921 if test -n "$PYTHON"; then
3922 echo "$as_me:$LINENO: result: $PYTHON" >&5
3923 echo "${ECHO_T}$PYTHON" >&6
3925 echo "$as_me:$LINENO: result: no" >&5
3926 echo "${ECHO_T}no" >&6
3929 # Extract the first word of "growisofs", so it can be a program name with args.
3930 set dummy growisofs; ac_word=$2
3931 echo "$as_me:$LINENO: checking for $ac_word" >&5
3932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3933 if test "${ac_cv_path_GROWISOFS+set}" = set; then
3934 echo $ECHO_N "(cached) $ECHO_C" >&6
3938 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
3941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3945 test -z "$as_dir" && as_dir=.
3946 for ac_exec_ext in '' $ac_executable_extensions; do
3947 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3948 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
3949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3955 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
3959 GROWISOFS=$ac_cv_path_GROWISOFS
3961 if test -n "$GROWISOFS"; then
3962 echo "$as_me:$LINENO: result: $GROWISOFS" >&5
3963 echo "${ECHO_T}$GROWISOFS" >&6
3965 echo "$as_me:$LINENO: result: no" >&5
3966 echo "${ECHO_T}no" >&6
3969 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
3970 set dummy dvd+rw-mediainfo; ac_word=$2
3971 echo "$as_me:$LINENO: checking for $ac_word" >&5
3972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3973 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
3974 echo $ECHO_N "(cached) $ECHO_C" >&6
3976 case $DVDRWMEDIAINFO in
3978 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
3981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3985 test -z "$as_dir" && as_dir=.
3986 for ac_exec_ext in '' $ac_executable_extensions; do
3987 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3988 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
3989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3995 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
3999 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4001 if test -n "$DVDRWMEDIAINFO"; then
4002 echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4003 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6
4005 echo "$as_me:$LINENO: result: no" >&5
4006 echo "${ECHO_T}no" >&6
4009 # Extract the first word of "pkg-config", so it can be a program name with args.
4010 set dummy pkg-config; ac_word=$2
4011 echo "$as_me:$LINENO: checking for $ac_word" >&5
4012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4013 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4014 echo $ECHO_N "(cached) $ECHO_C" >&6
4018 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4025 test -z "$as_dir" && as_dir=.
4026 for ac_exec_ext in '' $ac_executable_extensions; do
4027 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4028 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4035 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
4039 PKGCONFIG=$ac_cv_path_PKGCONFIG
4041 if test -n "$PKGCONFIG"; then
4042 echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
4043 echo "${ECHO_T}$PKGCONFIG" >&6
4045 echo "$as_me:$LINENO: result: no" >&5
4046 echo "${ECHO_T}no" >&6
4050 if test "x$WXCONFIG" = x; then
4053 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
4054 set dummy ${WXCONFIG}; ac_word=$2
4055 echo "$as_me:$LINENO: checking for $ac_word" >&5
4056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4057 if test "${ac_cv_path_WXCONFIG+set}" = set; then
4058 echo $ECHO_N "(cached) $ECHO_C" >&6
4062 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
4065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4069 test -z "$as_dir" && as_dir=.
4070 for ac_exec_ext in '' $ac_executable_extensions; do
4071 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4072 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
4073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4079 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
4083 WXCONFIG=$ac_cv_path_WXCONFIG
4085 if test -n "$WXCONFIG"; then
4086 echo "$as_me:$LINENO: result: $WXCONFIG" >&5
4087 echo "${ECHO_T}$WXCONFIG" >&6
4089 echo "$as_me:$LINENO: result: no" >&5
4090 echo "${ECHO_T}no" >&6
4094 # Extract the first word of "cdrecord", so it can be a program name with args.
4095 set dummy cdrecord; ac_word=$2
4096 echo "$as_me:$LINENO: checking for $ac_word" >&5
4097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4098 if test "${ac_cv_path_CDRECORD+set}" = set; then
4099 echo $ECHO_N "(cached) $ECHO_C" >&6
4103 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
4106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4110 test -z "$as_dir" && as_dir=.
4111 for ac_exec_ext in '' $ac_executable_extensions; do
4112 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4113 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
4114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4120 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
4124 CDRECORD=$ac_cv_path_CDRECORD
4126 if test -n "$CDRECORD"; then
4127 echo "$as_me:$LINENO: result: $CDRECORD" >&5
4128 echo "${ECHO_T}$CDRECORD" >&6
4130 echo "$as_me:$LINENO: result: no" >&5
4131 echo "${ECHO_T}no" >&6
4134 # Extract the first word of "pidof", so it can be a program name with args.
4135 set dummy pidof; ac_word=$2
4136 echo "$as_me:$LINENO: checking for $ac_word" >&5
4137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4138 if test "${ac_cv_path_PIDOF+set}" = set; then
4139 echo $ECHO_N "(cached) $ECHO_C" >&6
4143 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
4146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4150 test -z "$as_dir" && as_dir=.
4151 for ac_exec_ext in '' $ac_executable_extensions; do
4152 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4153 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
4154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4160 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
4164 PIDOF=$ac_cv_path_PIDOF
4166 if test -n "$PIDOF"; then
4167 echo "$as_me:$LINENO: result: $PIDOF" >&5
4168 echo "${ECHO_T}$PIDOF" >&6
4170 echo "$as_me:$LINENO: result: no" >&5
4171 echo "${ECHO_T}no" >&6
4174 for ac_prog in gawk mawk nawk awk
4176 # Extract the first word of "$ac_prog", so it can be a program name with args.
4177 set dummy $ac_prog; ac_word=$2
4178 echo "$as_me:$LINENO: checking for $ac_word" >&5
4179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4180 if test "${ac_cv_prog_AWK+set}" = set; then
4181 echo $ECHO_N "(cached) $ECHO_C" >&6
4183 if test -n "$AWK"; then
4184 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4190 test -z "$as_dir" && as_dir=.
4191 for ac_exec_ext in '' $ac_executable_extensions; do
4192 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4193 ac_cv_prog_AWK="$ac_prog"
4194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4203 if test -n "$AWK"; then
4204 echo "$as_me:$LINENO: result: $AWK" >&5
4205 echo "${ECHO_T}$AWK" >&6
4207 echo "$as_me:$LINENO: result: no" >&5
4208 echo "${ECHO_T}no" >&6
4211 test -n "$AWK" && break
4214 # Some AWK programs fail, so test it and warn the user
4215 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
4216 { if ((prog == $2) || (("(" prog ")") == $2) ||
4217 (("" prog "") == $2) ||
4218 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
4220 { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4221 The regex engine of $AWK is too broken to be used you
4222 might want to install GNU AWK.
4223 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
4224 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4225 The regex engine of $AWK is too broken to be used you
4226 might want to install GNU AWK.
4227 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
4228 { (exit 1); exit 1; }; }
4231 # Extract the first word of "$THE_AWK", so it can be a program name with args.
4232 set dummy $THE_AWK; ac_word=$2
4233 echo "$as_me:$LINENO: checking for $ac_word" >&5
4234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4235 if test "${ac_cv_path_AWK+set}" = set; then
4236 echo $ECHO_N "(cached) $ECHO_C" >&6
4240 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
4243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4247 test -z "$as_dir" && as_dir=.
4248 for ac_exec_ext in '' $ac_executable_extensions; do
4249 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4250 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
4251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4257 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
4263 if test -n "$AWK"; then
4264 echo "$as_me:$LINENO: result: $AWK" >&5
4265 echo "${ECHO_T}$AWK" >&6
4267 echo "$as_me:$LINENO: result: no" >&5
4268 echo "${ECHO_T}no" >&6
4272 test -n "$ARFLAG" || ARFLAGS="cr"
4285 # Make sure we can run config.sub.
4286 $ac_config_sub sun4 >/dev/null 2>&1 ||
4287 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4288 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4289 { (exit 1); exit 1; }; }
4291 echo "$as_me:$LINENO: checking build system type" >&5
4292 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4293 if test "${ac_cv_build+set}" = set; then
4294 echo $ECHO_N "(cached) $ECHO_C" >&6
4296 ac_cv_build_alias=$build_alias
4297 test -z "$ac_cv_build_alias" &&
4298 ac_cv_build_alias=`$ac_config_guess`
4299 test -z "$ac_cv_build_alias" &&
4300 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4301 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4302 { (exit 1); exit 1; }; }
4303 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4304 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4305 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4306 { (exit 1); exit 1; }; }
4309 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4310 echo "${ECHO_T}$ac_cv_build" >&6
4312 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4313 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4314 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4318 echo "$as_me:$LINENO: checking host system type" >&5
4319 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4320 if test "${ac_cv_host+set}" = set; then
4321 echo $ECHO_N "(cached) $ECHO_C" >&6
4323 ac_cv_host_alias=$host_alias
4324 test -z "$ac_cv_host_alias" &&
4325 ac_cv_host_alias=$ac_cv_build_alias
4326 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4327 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4328 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4329 { (exit 1); exit 1; }; }
4332 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4333 echo "${ECHO_T}$ac_cv_host" >&6
4335 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4336 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4337 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4341 *cygwin* ) CYGWIN=yes;;
4345 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4351 HAVE_SUN_OS_FALSE='#'
4353 HAVE_SUN_OS_TRUE='#'
4356 cat >>confdefs.h <<\_ACEOF
4357 #define HAVE_SUN_OS 1
4365 HAVE_SUN_OS_FALSE='#'
4367 HAVE_SUN_OS_TRUE='#'
4372 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4378 HAVE_OSF1_OS_FALSE='#'
4380 HAVE_OSF1_OS_TRUE='#'
4383 cat >>confdefs.h <<\_ACEOF
4384 #define HAVE_OSF1_OS 1
4392 HAVE_OSF1_OS_FALSE='#'
4394 HAVE_OSF1_OS_TRUE='#'
4399 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4405 HAVE_AIX_OS_FALSE='#'
4407 HAVE_AIX_OS_TRUE='#'
4410 cat >>confdefs.h <<\_ACEOF
4411 #define HAVE_AIX_OS 1
4419 HAVE_AIX_OS_FALSE='#'
4421 HAVE_AIX_OS_TRUE='#'
4426 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4432 HAVE_HPUX_OS_FALSE='#'
4434 HAVE_HPUX_OS_TRUE='#'
4437 cat >>confdefs.h <<\_ACEOF
4438 #define HAVE_HPUX_OS 1
4446 HAVE_HPUX_OS_FALSE='#'
4448 HAVE_HPUX_OS_TRUE='#'
4453 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
4459 HAVE_LINUX_OS_FALSE='#'
4461 HAVE_LINUX_OS_TRUE='#'
4462 HAVE_LINUX_OS_FALSE=
4464 cat >>confdefs.h <<\_ACEOF
4465 #define HAVE_LINUX_OS 1
4473 HAVE_LINUX_OS_FALSE='#'
4475 HAVE_LINUX_OS_TRUE='#'
4476 HAVE_LINUX_OS_FALSE=
4480 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4485 HAVE_FREEBSD_OS_TRUE=
4486 HAVE_FREEBSD_OS_FALSE='#'
4488 HAVE_FREEBSD_OS_TRUE='#'
4489 HAVE_FREEBSD_OS_FALSE=
4491 cat >>confdefs.h <<\_ACEOF
4492 #define HAVE_FREEBSD_OS 1
4499 HAVE_FREEBSD_OS_TRUE=
4500 HAVE_FREEBSD_OS_FALSE='#'
4502 HAVE_FREEBSD_OS_TRUE='#'
4503 HAVE_FREEBSD_OS_FALSE=
4507 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4512 HAVE_NETBSD_OS_TRUE=
4513 HAVE_NETBSD_OS_FALSE='#'
4515 HAVE_NETBSD_OS_TRUE='#'
4516 HAVE_NETBSD_OS_FALSE=
4518 cat >>confdefs.h <<\_ACEOF
4519 #define HAVE_NETBSD_OS 1
4526 HAVE_NETBSD_OS_TRUE=
4527 HAVE_NETBSD_OS_FALSE='#'
4529 HAVE_NETBSD_OS_TRUE='#'
4530 HAVE_NETBSD_OS_FALSE=
4534 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4539 HAVE_OPENBSD_OS_TRUE=
4540 HAVE_OPENBSD_OS_FALSE='#'
4542 HAVE_OPENBSD_OS_TRUE='#'
4543 HAVE_OPENBSD_OS_FALSE=
4545 cat >>confdefs.h <<\_ACEOF
4546 #define HAVE_OPENBSD_OS 1
4553 HAVE_OPENBSD_OS_TRUE=
4554 HAVE_OPENBSD_OS_FALSE='#'
4556 HAVE_OPENBSD_OS_TRUE='#'
4557 HAVE_OPENBSD_OS_FALSE=
4561 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4567 HAVE_BSDI_OS_FALSE='#'
4569 HAVE_BSDI_OS_TRUE='#'
4572 cat >>confdefs.h <<\_ACEOF
4573 #define HAVE_BSDI_OS 1
4581 HAVE_BSDI_OS_FALSE='#'
4583 HAVE_BSDI_OS_TRUE='#'
4588 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4594 HAVE_SGI_OS_FALSE='#'
4596 HAVE_SGI_OS_TRUE='#'
4599 cat >>confdefs.h <<\_ACEOF
4600 #define HAVE_SGI_OS 1
4608 HAVE_SGI_OS_FALSE='#'
4610 HAVE_SGI_OS_TRUE='#'
4615 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4621 HAVE_IRIX_OS_FALSE='#'
4623 HAVE_IRIX_OS_TRUE='#'
4626 cat >>confdefs.h <<\_ACEOF
4627 #define HAVE_IRIX_OS 1
4635 HAVE_IRIX_OS_FALSE='#'
4637 HAVE_IRIX_OS_TRUE='#'
4642 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4647 HAVE_DARWIN_OS_TRUE=
4648 HAVE_DARWIN_OS_FALSE='#'
4650 HAVE_DARWIN_OS_TRUE='#'
4651 HAVE_DARWIN_OS_FALSE=
4653 cat >>confdefs.h <<\_ACEOF
4654 #define HAVE_DARWIN_OS 1
4661 HAVE_DARWIN_OS_TRUE=
4662 HAVE_DARWIN_OS_FALSE='#'
4664 HAVE_DARWIN_OS_TRUE='#'
4665 HAVE_DARWIN_OS_FALSE=
4670 # -----------------------------------------------------------
4671 # ----------------------------------------------------------
4672 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4673 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4674 if test "x$DISTNAME" != "x"
4676 echo "distname set to $DISTNAME"
4677 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4680 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4683 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4686 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4689 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4692 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4695 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4698 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4701 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4704 elif test -f /etc/SuSE-release
4707 elif test -d /etc/SuSEconfig
4710 elif test -f /etc/mandrake-release
4713 elif test -f /etc/whitebox-release
4716 elif test -f /etc/redhat-release
4719 elif test -f /etc/gentoo-release
4722 elif test -f /etc/debian_version
4725 elif test -f /etc/slackware-version
4728 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4731 elif test -f /etc/engarde-version
4734 elif test "$CYGWIN" = yes
4737 cat >>confdefs.h <<\_ACEOF
4738 #define HAVE_CYGWIN 1
4744 echo "$as_me:$LINENO: result: done" >&5
4745 echo "${ECHO_T}done" >&6
4748 # -----------------------------------------------------------
4749 # ----------------------------------------------------------
4754 INSIDE_GNOME_COMMON_TRUE=
4755 INSIDE_GNOME_COMMON_FALSE='#'
4757 INSIDE_GNOME_COMMON_TRUE='#'
4758 INSIDE_GNOME_COMMON_FALSE=
4761 test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
4763 for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
4766 # ------------------------------------------------------------------
4767 # If the user has not set --prefix, we set our default to nothing.
4768 # In this case, if the user has not set --sysconfdir, we set it
4769 # to the package default of /etc/bacula. If either --prefix or
4770 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
4771 # ------------------------------------------------------------------
4772 if test x${prefix} = xNONE ; then
4773 if test `eval echo ${sysconfdir}` = NONE/etc ; then
4774 sysconfdir=/etc/bacula
4778 sysconfdir=`eval echo ${sysconfdir}`
4780 # -------------------------------------------------------------------------
4781 # If the user has not set --exec-prefix, we default to ${prefix}
4782 # -------------------------------------------------------------------------
4783 if test x${exec_prefix} = xNONE ; then
4784 exec_prefix=${prefix}
4787 # ------------------------------------------------------------------
4788 # If the user has not set --sbindir, we set our default as /sbin
4789 # ------------------------------------------------------------------
4790 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4791 sbindir=${exec_prefix}/sbin
4793 sbindir=`eval echo ${sbindir}`
4795 # -------------------------------------------------------------------------
4796 # If the user has not set --mandir, we default to /usr/share/man
4797 # -------------------------------------------------------------------------
4798 if test x$mandir = x'${prefix}/man' ; then
4799 mandir=/usr/share/man
4803 # ------------------------------------------------------------------
4804 # All list of languages for which a translation exist. Each
4805 # language is separated by a space.
4806 # ------------------------------------------------------------------
4809 for ac_prog in msgfmt
4811 # Extract the first word of "$ac_prog", so it can be a program name with args.
4812 set dummy $ac_prog; ac_word=$2
4813 echo "$as_me:$LINENO: checking for $ac_word" >&5
4814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4815 if test "${ac_cv_path_MSGFMT+set}" = set; then
4816 echo $ECHO_N "(cached) $ECHO_C" >&6
4820 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4827 test -z "$as_dir" && as_dir=.
4828 for ac_exec_ext in '' $ac_executable_extensions; do
4829 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4830 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4840 MSGFMT=$ac_cv_path_MSGFMT
4842 if test -n "$MSGFMT"; then
4843 echo "$as_me:$LINENO: result: $MSGFMT" >&5
4844 echo "${ECHO_T}$MSGFMT" >&6
4846 echo "$as_me:$LINENO: result: no" >&5
4847 echo "${ECHO_T}no" >&6
4850 test -n "$MSGFMT" && break
4852 test -n "$MSGFMT" || MSGFMT="no"
4854 if test "$MSGFMT" = "no"
4856 echo 'msgfmt program not found, disabling NLS !'
4858 USE_INCLUDED_LIBINTL=no
4867 support_postgresql=no
4868 support_smartalloc=yes
4869 support_readline=yes
4872 support_wx_console=no
4876 support_static_tools=no
4877 support_static_fd=no
4878 support_static_sd=no
4879 support_static_dir=no
4880 support_static_cons=no
4882 build_client_only=no
4888 # -------------------------------------------
4889 # gnome (default off)
4890 # -------------------------------------------
4891 # Check whether --enable-gnome or --disable-gnome was given.
4892 if test "${enable_gnome+set}" = set; then
4893 enableval="$enable_gnome"
4894 if test x$enableval = xyes; then
4900 if test x$support_gnome = xyes; then
4901 abc=`$PKGCONFIG --exists libgnomeui-2.0`
4903 if test $pkg = 0; then
4904 GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
4905 GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4906 GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
4907 GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4912 GNOME_DIR=src/gnome2-console
4913 gnome_version="Version 2.x"
4915 { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
4916 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
4917 { (exit 1); exit 1; }; }
4923 # -------------------------------------------
4924 # wx-console (default off)
4925 # -------------------------------------------
4926 # Check whether --enable-wx-console or --disable-wx-console was given.
4927 if test "${enable_wx_console+set}" = set; then
4928 enableval="$enable_wx_console"
4929 if test x$enableval = xyes; then
4930 support_wx_console=yes
4935 if test x$support_wx_console = xyes; then
4936 abc=`$WXCONFIG $WXFLAGS --cppflags`
4938 if test $pkg = 0; then
4939 wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
4940 WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
4941 WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
4945 WX_DIR=src/wx-console
4948 echo "wx-config program not found. wx-console disabled."
4950 support_wx_console=no
4956 # -------------------------------------------
4957 # tray-monitor (default off)
4958 # -------------------------------------------
4959 # Check whether --enable-tray-monitor or --disable-tray-monitor was given.
4960 if test "${enable_tray_monitor+set}" = set; then
4961 enableval="$enable_tray_monitor"
4962 if test x$enableval = xyes; then
4963 support_tray_monitor=yes
4968 if test x$support_tray_monitor = xyes; then
4969 abc=`$PKGCONFIG --exists gtk+-2.0`
4971 if test $pkg = 0; then
4972 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
4973 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
4976 TRAY_MONITOR_DIR=src/tray-monitor
4977 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
4979 if test $pkg = 0; then
4980 cat >>confdefs.h <<\_ACEOF
4981 #define HAVE_GTK_2_4 1
4989 # -------------------------------------------
4990 # smartalloc (default off)
4991 # -------------------------------------------
4992 # Check whether --enable-smartalloc or --disable-smartalloc was given.
4993 if test "${enable_smartalloc+set}" = set; then
4994 enableval="$enable_smartalloc"
4995 if test x$enableval = xno; then
4996 support_smartalloc=no
5000 if test x$support_smartalloc = xyes; then
5001 cat >>confdefs.h <<\_ACEOF
5002 #define SMARTALLOC 1
5007 # -------------------------------------------
5008 # static-tools (default off)
5009 # -------------------------------------------
5010 # Check whether --enable-static-tools or --disable-static-tools was given.
5011 if test "${enable_static_tools+set}" = set; then
5012 enableval="$enable_static_tools"
5013 if test x$enableval = xyes; then
5014 support_static_tools=yes
5019 if test x$support_static_tools = xyes; then
5020 TTOOL_LDFLAGS="-static"
5024 # -------------------------------------------
5025 # static-fd (default off)
5026 # -------------------------------------------
5027 # Check whether --enable-static-fd or --disable-static-fd was given.
5028 if test "${enable_static_fd+set}" = set; then
5029 enableval="$enable_static_fd"
5030 if test x$enableval = xyes; then
5031 support_static_fd=yes
5036 if test x$support_static_fd = xyes; then
5037 STATIC_FD="static-bacula-fd"
5041 # -------------------------------------------
5042 # static-sd (default off)
5043 # -------------------------------------------
5044 # Check whether --enable-static-sd or --disable-static-sd was given.
5045 if test "${enable_static_sd+set}" = set; then
5046 enableval="$enable_static_sd"
5047 if test x$enableval = xyes; then
5048 support_static_sd=yes
5053 if test x$support_static_sd = xyes; then
5054 STATIC_SD="static-bacula-sd"
5058 # -------------------------------------------
5059 # static-dir (default off)
5060 # -------------------------------------------
5061 # Check whether --enable-static-dir or --disable-static-dir was given.
5062 if test "${enable_static_dir+set}" = set; then
5063 enableval="$enable_static_dir"
5064 if test x$enableval = xyes; then
5065 support_static_dir=yes
5070 if test x$support_static_dir = xyes; then
5071 STATIC_DIR="static-bacula-dir"
5075 # -------------------------------------------
5076 # static-cons (default off)
5077 # -------------------------------------------
5078 # Check whether --enable-static-cons or --disable-static-cons was given.
5079 if test "${enable_static_cons+set}" = set; then
5080 enableval="$enable_static_cons"
5081 if test x$enableval = xyes; then
5082 support_static_cons=yes
5089 if test x$support_static_cons = xyes; then
5090 STATIC_CONS="static-bconsole"
5091 STATIC_GNOME_CONS="static-gnome-console"
5092 STATIC_WX_CONS="static-wx-console"
5098 # -------------------------------------------
5099 # client_only (default off)
5100 # -------------------------------------------
5101 # Check whether --enable-client-only or --disable-client-only was given.
5102 if test "${enable_client_only+set}" = set; then
5103 enableval="$enable_client_only"
5104 if test x$enableval = xyes; then
5105 build_client_only=yes
5110 if test x$build_client_only = xno; then
5117 # ---------------------------------------------------
5118 # Check for conio (Bacula readline substitute)(
5119 # ---------------------------------------------------
5120 # this allows you to turn it completely off
5121 # Check whether --enable-conio or --disable-conio was given.
5122 if test "${enable_conio+set}" = set; then
5123 enableval="$enable_conio"
5124 if test x$enableval = xno; then
5130 if test x$support_conio = xyes; then
5131 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5132 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5133 if test "${ac_cv_header_stdc+set}" = set; then
5134 echo $ECHO_N "(cached) $ECHO_C" >&6
5136 cat >conftest.$ac_ext <<_ACEOF
5139 cat confdefs.h >>conftest.$ac_ext
5140 cat >>conftest.$ac_ext <<_ACEOF
5141 /* end confdefs.h. */
5155 rm -f conftest.$ac_objext
5156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5157 (eval $ac_compile) 2>conftest.er1
5159 grep -v '^ *+' conftest.er1 >conftest.err
5161 cat conftest.err >&5
5162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5163 (exit $ac_status); } &&
5164 { ac_try='test -z "$ac_c_werror_flag"
5165 || test ! -s conftest.err'
5166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170 (exit $ac_status); }; } &&
5171 { ac_try='test -s conftest.$ac_objext'
5172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176 (exit $ac_status); }; }; then
5177 ac_cv_header_stdc=yes
5179 echo "$as_me: failed program was:" >&5
5180 sed 's/^/| /' conftest.$ac_ext >&5
5182 ac_cv_header_stdc=no
5184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5186 if test $ac_cv_header_stdc = yes; then
5187 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5188 cat >conftest.$ac_ext <<_ACEOF
5191 cat confdefs.h >>conftest.$ac_ext
5192 cat >>conftest.$ac_ext <<_ACEOF
5193 /* end confdefs.h. */
5197 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5198 $EGREP "memchr" >/dev/null 2>&1; then
5201 ac_cv_header_stdc=no
5207 if test $ac_cv_header_stdc = yes; then
5208 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5209 cat >conftest.$ac_ext <<_ACEOF
5212 cat confdefs.h >>conftest.$ac_ext
5213 cat >>conftest.$ac_ext <<_ACEOF
5214 /* end confdefs.h. */
5218 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5219 $EGREP "free" >/dev/null 2>&1; then
5222 ac_cv_header_stdc=no
5228 if test $ac_cv_header_stdc = yes; then
5229 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5230 if test "$cross_compiling" = yes; then
5233 cat >conftest.$ac_ext <<_ACEOF
5236 cat confdefs.h >>conftest.$ac_ext
5237 cat >>conftest.$ac_ext <<_ACEOF
5238 /* end confdefs.h. */
5240 #if ((' ' & 0x0FF) == 0x020)
5241 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5242 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5244 # define ISLOWER(c) \
5245 (('a' <= (c) && (c) <= 'i') \
5246 || ('j' <= (c) && (c) <= 'r') \
5247 || ('s' <= (c) && (c) <= 'z'))
5248 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5251 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5256 for (i = 0; i < 256; i++)
5257 if (XOR (islower (i), ISLOWER (i))
5258 || toupper (i) != TOUPPER (i))
5263 rm -f conftest$ac_exeext
5264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5265 (eval $ac_link) 2>&5
5267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5273 (exit $ac_status); }; }; then
5276 echo "$as_me: program exited with status $ac_status" >&5
5277 echo "$as_me: failed program was:" >&5
5278 sed 's/^/| /' conftest.$ac_ext >&5
5281 ac_cv_header_stdc=no
5283 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5287 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5288 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5289 if test $ac_cv_header_stdc = yes; then
5291 cat >>confdefs.h <<\_ACEOF
5292 #define STDC_HEADERS 1
5297 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5307 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5308 inttypes.h stdint.h unistd.h
5310 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5311 echo "$as_me:$LINENO: checking for $ac_header" >&5
5312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5313 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5314 echo $ECHO_N "(cached) $ECHO_C" >&6
5316 cat >conftest.$ac_ext <<_ACEOF
5319 cat confdefs.h >>conftest.$ac_ext
5320 cat >>conftest.$ac_ext <<_ACEOF
5321 /* end confdefs.h. */
5322 $ac_includes_default
5324 #include <$ac_header>
5326 rm -f conftest.$ac_objext
5327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5328 (eval $ac_compile) 2>conftest.er1
5330 grep -v '^ *+' conftest.er1 >conftest.err
5332 cat conftest.err >&5
5333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5334 (exit $ac_status); } &&
5335 { ac_try='test -z "$ac_c_werror_flag"
5336 || test ! -s conftest.err'
5337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341 (exit $ac_status); }; } &&
5342 { ac_try='test -s conftest.$ac_objext'
5343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347 (exit $ac_status); }; }; then
5348 eval "$as_ac_Header=yes"
5350 echo "$as_me: failed program was:" >&5
5351 sed 's/^/| /' conftest.$ac_ext >&5
5353 eval "$as_ac_Header=no"
5355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5358 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5359 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5360 cat >>confdefs.h <<_ACEOF
5361 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5369 if test "${ac_cv_header_termcap_h+set}" = set; then
5370 echo "$as_me:$LINENO: checking for termcap.h" >&5
5371 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5372 if test "${ac_cv_header_termcap_h+set}" = set; then
5373 echo $ECHO_N "(cached) $ECHO_C" >&6
5375 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5376 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5378 # Is the header compilable?
5379 echo "$as_me:$LINENO: checking termcap.h usability" >&5
5380 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
5381 cat >conftest.$ac_ext <<_ACEOF
5384 cat confdefs.h >>conftest.$ac_ext
5385 cat >>conftest.$ac_ext <<_ACEOF
5386 /* end confdefs.h. */
5387 $ac_includes_default
5388 #include <termcap.h>
5390 rm -f conftest.$ac_objext
5391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5392 (eval $ac_compile) 2>conftest.er1
5394 grep -v '^ *+' conftest.er1 >conftest.err
5396 cat conftest.err >&5
5397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398 (exit $ac_status); } &&
5399 { ac_try='test -z "$ac_c_werror_flag"
5400 || test ! -s conftest.err'
5401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405 (exit $ac_status); }; } &&
5406 { ac_try='test -s conftest.$ac_objext'
5407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411 (exit $ac_status); }; }; then
5412 ac_header_compiler=yes
5414 echo "$as_me: failed program was:" >&5
5415 sed 's/^/| /' conftest.$ac_ext >&5
5417 ac_header_compiler=no
5419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5420 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5421 echo "${ECHO_T}$ac_header_compiler" >&6
5423 # Is the header present?
5424 echo "$as_me:$LINENO: checking termcap.h presence" >&5
5425 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
5426 cat >conftest.$ac_ext <<_ACEOF
5429 cat confdefs.h >>conftest.$ac_ext
5430 cat >>conftest.$ac_ext <<_ACEOF
5431 /* end confdefs.h. */
5432 #include <termcap.h>
5434 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5435 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5437 grep -v '^ *+' conftest.er1 >conftest.err
5439 cat conftest.err >&5
5440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5441 (exit $ac_status); } >/dev/null; then
5442 if test -s conftest.err; then
5443 ac_cpp_err=$ac_c_preproc_warn_flag
5444 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5451 if test -z "$ac_cpp_err"; then
5452 ac_header_preproc=yes
5454 echo "$as_me: failed program was:" >&5
5455 sed 's/^/| /' conftest.$ac_ext >&5
5457 ac_header_preproc=no
5459 rm -f conftest.err conftest.$ac_ext
5460 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5461 echo "${ECHO_T}$ac_header_preproc" >&6
5463 # So? What about this header?
5464 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5466 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
5467 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5468 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
5469 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
5470 ac_header_preproc=yes
5473 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
5474 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
5475 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
5476 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
5477 { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
5478 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
5479 { echo "$as_me:$LINENO: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&5
5480 echo "$as_me: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
5481 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5482 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5483 { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
5484 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
5487 ## ------------------------------------------ ##
5488 ## Report this to the AC_PACKAGE_NAME lists. ##
5489 ## ------------------------------------------ ##
5492 sed "s/^/$as_me: WARNING: /" >&2
5495 echo "$as_me:$LINENO: checking for termcap.h" >&5
5496 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5497 if test "${ac_cv_header_termcap_h+set}" = set; then
5498 echo $ECHO_N "(cached) $ECHO_C" >&6
5500 ac_cv_header_termcap_h=$ac_header_preproc
5502 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5503 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5506 if test $ac_cv_header_termcap_h = yes; then
5507 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5508 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
5509 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5510 echo $ECHO_N "(cached) $ECHO_C" >&6
5512 ac_check_lib_save_LIBS=$LIBS
5513 LIBS="-ltermcap $LIBS"
5514 cat >conftest.$ac_ext <<_ACEOF
5517 cat confdefs.h >>conftest.$ac_ext
5518 cat >>conftest.$ac_ext <<_ACEOF
5519 /* end confdefs.h. */
5521 /* Override any gcc2 internal prototype to avoid an error. */
5525 /* We use char because int might match the return type of a gcc2
5526 builtin and then its argument prototype would still apply. */
5536 rm -f conftest.$ac_objext conftest$ac_exeext
5537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5538 (eval $ac_link) 2>conftest.er1
5540 grep -v '^ *+' conftest.er1 >conftest.err
5542 cat conftest.err >&5
5543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544 (exit $ac_status); } &&
5545 { ac_try='test -z "$ac_c_werror_flag"
5546 || test ! -s conftest.err'
5547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551 (exit $ac_status); }; } &&
5552 { ac_try='test -s conftest$ac_exeext'
5553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5557 (exit $ac_status); }; }; then
5558 ac_cv_lib_termcap_tgetent=yes
5560 echo "$as_me: failed program was:" >&5
5561 sed 's/^/| /' conftest.$ac_ext >&5
5563 ac_cv_lib_termcap_tgetent=no
5565 rm -f conftest.err conftest.$ac_objext \
5566 conftest$ac_exeext conftest.$ac_ext
5567 LIBS=$ac_check_lib_save_LIBS
5569 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5570 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
5571 if test $ac_cv_lib_termcap_tgetent = yes; then
5572 CONS_LIBS="-ltermcap"
5578 cat >>confdefs.h <<\_ACEOF
5579 #define HAVE_CONIO 1
5584 echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
5585 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
5586 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
5587 echo $ECHO_N "(cached) $ECHO_C" >&6
5589 ac_check_lib_save_LIBS=$LIBS
5590 LIBS="-lncurses $LIBS"
5591 cat >conftest.$ac_ext <<_ACEOF
5594 cat confdefs.h >>conftest.$ac_ext
5595 cat >>conftest.$ac_ext <<_ACEOF
5596 /* end confdefs.h. */
5598 /* Override any gcc2 internal prototype to avoid an error. */
5602 /* We use char because int might match the return type of a gcc2
5603 builtin and then its argument prototype would still apply. */
5613 rm -f conftest.$ac_objext conftest$ac_exeext
5614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5615 (eval $ac_link) 2>conftest.er1
5617 grep -v '^ *+' conftest.er1 >conftest.err
5619 cat conftest.err >&5
5620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621 (exit $ac_status); } &&
5622 { ac_try='test -z "$ac_c_werror_flag"
5623 || test ! -s conftest.err'
5624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628 (exit $ac_status); }; } &&
5629 { ac_try='test -s conftest$ac_exeext'
5630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634 (exit $ac_status); }; }; then
5635 ac_cv_lib_ncurses_tgetent=yes
5637 echo "$as_me: failed program was:" >&5
5638 sed 's/^/| /' conftest.$ac_ext >&5
5640 ac_cv_lib_ncurses_tgetent=no
5642 rm -f conftest.err conftest.$ac_objext \
5643 conftest$ac_exeext conftest.$ac_ext
5644 LIBS=$ac_check_lib_save_LIBS
5646 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
5647 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
5648 if test $ac_cv_lib_ncurses_tgetent = yes; then
5649 CONS_LIBS="-lncurses"
5655 cat >>confdefs.h <<\_ACEOF
5656 #define HAVE_CONIO 1
5669 for ac_header in curses.h
5671 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5672 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5673 echo "$as_me:$LINENO: checking for $ac_header" >&5
5674 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5675 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5676 echo $ECHO_N "(cached) $ECHO_C" >&6
5678 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5679 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5681 # Is the header compilable?
5682 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5683 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5684 cat >conftest.$ac_ext <<_ACEOF
5687 cat confdefs.h >>conftest.$ac_ext
5688 cat >>conftest.$ac_ext <<_ACEOF
5689 /* end confdefs.h. */
5690 $ac_includes_default
5691 #include <$ac_header>
5693 rm -f conftest.$ac_objext
5694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5695 (eval $ac_compile) 2>conftest.er1
5697 grep -v '^ *+' conftest.er1 >conftest.err
5699 cat conftest.err >&5
5700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5701 (exit $ac_status); } &&
5702 { ac_try='test -z "$ac_c_werror_flag"
5703 || test ! -s conftest.err'
5704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5708 (exit $ac_status); }; } &&
5709 { ac_try='test -s conftest.$ac_objext'
5710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5714 (exit $ac_status); }; }; then
5715 ac_header_compiler=yes
5717 echo "$as_me: failed program was:" >&5
5718 sed 's/^/| /' conftest.$ac_ext >&5
5720 ac_header_compiler=no
5722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5723 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5724 echo "${ECHO_T}$ac_header_compiler" >&6
5726 # Is the header present?
5727 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5728 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5729 cat >conftest.$ac_ext <<_ACEOF
5732 cat confdefs.h >>conftest.$ac_ext
5733 cat >>conftest.$ac_ext <<_ACEOF
5734 /* end confdefs.h. */
5735 #include <$ac_header>
5737 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5738 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5740 grep -v '^ *+' conftest.er1 >conftest.err
5742 cat conftest.err >&5
5743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744 (exit $ac_status); } >/dev/null; then
5745 if test -s conftest.err; then
5746 ac_cpp_err=$ac_c_preproc_warn_flag
5747 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5754 if test -z "$ac_cpp_err"; then
5755 ac_header_preproc=yes
5757 echo "$as_me: failed program was:" >&5
5758 sed 's/^/| /' conftest.$ac_ext >&5
5760 ac_header_preproc=no
5762 rm -f conftest.err conftest.$ac_ext
5763 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5764 echo "${ECHO_T}$ac_header_preproc" >&6
5766 # So? What about this header?
5767 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5769 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5770 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5771 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5772 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5773 ac_header_preproc=yes
5776 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5777 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5778 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5779 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5780 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5781 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5782 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5783 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5784 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5785 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5786 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5787 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5790 ## ------------------------------------------ ##
5791 ## Report this to the AC_PACKAGE_NAME lists. ##
5792 ## ------------------------------------------ ##
5795 sed "s/^/$as_me: WARNING: /" >&2
5798 echo "$as_me:$LINENO: checking for $ac_header" >&5
5799 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5800 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5801 echo $ECHO_N "(cached) $ECHO_C" >&6
5803 eval "$as_ac_Header=\$ac_header_preproc"
5805 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5806 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5809 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5810 cat >>confdefs.h <<_ACEOF
5811 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5818 echo "$as_me:$LINENO: checking for term.h" >&5
5819 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
5820 if test "${ac_cv_header_term_h+set}" = set; then
5821 echo $ECHO_N "(cached) $ECHO_C" >&6
5823 cat >conftest.$ac_ext <<_ACEOF
5826 cat confdefs.h >>conftest.$ac_ext
5827 cat >>conftest.$ac_ext <<_ACEOF
5828 /* end confdefs.h. */
5836 rm -f conftest.$ac_objext
5837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5838 (eval $ac_compile) 2>conftest.er1
5840 grep -v '^ *+' conftest.er1 >conftest.err
5842 cat conftest.err >&5
5843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844 (exit $ac_status); } &&
5845 { ac_try='test -z "$ac_c_werror_flag"
5846 || test ! -s conftest.err'
5847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5851 (exit $ac_status); }; } &&
5852 { ac_try='test -s conftest.$ac_objext'
5853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5857 (exit $ac_status); }; }; then
5858 ac_cv_header_term_h=yes
5860 echo "$as_me: failed program was:" >&5
5861 sed 's/^/| /' conftest.$ac_ext >&5
5863 ac_cv_header_term_h=no
5865 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5867 echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
5868 echo "${ECHO_T}$ac_cv_header_term_h" >&6
5869 if test $ac_cv_header_term_h = yes; then
5870 echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
5871 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
5872 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
5873 echo $ECHO_N "(cached) $ECHO_C" >&6
5875 ac_check_lib_save_LIBS=$LIBS
5876 LIBS="-lcurses $LIBS"
5877 cat >conftest.$ac_ext <<_ACEOF
5880 cat confdefs.h >>conftest.$ac_ext
5881 cat >>conftest.$ac_ext <<_ACEOF
5882 /* end confdefs.h. */
5884 /* Override any gcc2 internal prototype to avoid an error. */
5888 /* We use char because int might match the return type of a gcc2
5889 builtin and then its argument prototype would still apply. */
5899 rm -f conftest.$ac_objext conftest$ac_exeext
5900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5901 (eval $ac_link) 2>conftest.er1
5903 grep -v '^ *+' conftest.er1 >conftest.err
5905 cat conftest.err >&5
5906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5907 (exit $ac_status); } &&
5908 { ac_try='test -z "$ac_c_werror_flag"
5909 || test ! -s conftest.err'
5910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5914 (exit $ac_status); }; } &&
5915 { ac_try='test -s conftest$ac_exeext'
5916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920 (exit $ac_status); }; }; then
5921 ac_cv_lib_curses_tgetent=yes
5923 echo "$as_me: failed program was:" >&5
5924 sed 's/^/| /' conftest.$ac_ext >&5
5926 ac_cv_lib_curses_tgetent=no
5928 rm -f conftest.err conftest.$ac_objext \
5929 conftest$ac_exeext conftest.$ac_ext
5930 LIBS=$ac_check_lib_save_LIBS
5932 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
5933 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
5934 if test $ac_cv_lib_curses_tgetent = yes; then
5935 CONS_LIBS="-lcurses"
5941 cat >>confdefs.h <<\_ACEOF
5942 #define HAVE_CONIO 1
5950 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
5961 # ---------------------------------------------------
5962 # Check for readline support/directory (default off)
5963 # ---------------------------------------------------
5964 # this allows you to turn it completely off
5965 # Check whether --enable-readline or --disable-readline was given.
5966 if test "${enable_readline+set}" = set; then
5967 enableval="$enable_readline"
5968 if test x$enableval = xno; then
5975 if test x$support_readline = xyes; then
5977 # Check whether --with-readline or --without-readline was given.
5978 if test "${with_readline+set}" = set; then
5979 withval="$with_readline"
5981 case "$with_readline" in
5984 if test "$with_readline" != "yes"; then
5985 CONS_INC="-I${with_readline}"
5986 CONS_LDFLAGS="-L$with_readline"
5988 with_readline="/usr/include/readline"
5990 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
5991 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5992 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5993 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5994 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5995 echo $ECHO_N "(cached) $ECHO_C" >&6
5997 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5998 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6000 # Is the header compilable?
6001 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
6002 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
6003 cat >conftest.$ac_ext <<_ACEOF
6006 cat confdefs.h >>conftest.$ac_ext
6007 cat >>conftest.$ac_ext <<_ACEOF
6008 /* end confdefs.h. */
6009 $ac_includes_default
6010 #include <${with_readline}/readline.h>
6012 rm -f conftest.$ac_objext
6013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6014 (eval $ac_compile) 2>conftest.er1
6016 grep -v '^ *+' conftest.er1 >conftest.err
6018 cat conftest.err >&5
6019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020 (exit $ac_status); } &&
6021 { ac_try='test -z "$ac_c_werror_flag"
6022 || test ! -s conftest.err'
6023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027 (exit $ac_status); }; } &&
6028 { ac_try='test -s conftest.$ac_objext'
6029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6033 (exit $ac_status); }; }; then
6034 ac_header_compiler=yes
6036 echo "$as_me: failed program was:" >&5
6037 sed 's/^/| /' conftest.$ac_ext >&5
6039 ac_header_compiler=no
6041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6042 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6043 echo "${ECHO_T}$ac_header_compiler" >&6
6045 # Is the header present?
6046 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
6047 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
6048 cat >conftest.$ac_ext <<_ACEOF
6051 cat confdefs.h >>conftest.$ac_ext
6052 cat >>conftest.$ac_ext <<_ACEOF
6053 /* end confdefs.h. */
6054 #include <${with_readline}/readline.h>
6056 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6057 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6059 grep -v '^ *+' conftest.er1 >conftest.err
6061 cat conftest.err >&5
6062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6063 (exit $ac_status); } >/dev/null; then
6064 if test -s conftest.err; then
6065 ac_cpp_err=$ac_c_preproc_warn_flag
6066 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6073 if test -z "$ac_cpp_err"; then
6074 ac_header_preproc=yes
6076 echo "$as_me: failed program was:" >&5
6077 sed 's/^/| /' conftest.$ac_ext >&5
6079 ac_header_preproc=no
6081 rm -f conftest.err conftest.$ac_ext
6082 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6083 echo "${ECHO_T}$ac_header_preproc" >&6
6085 # So? What about this header?
6086 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6088 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6089 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6090 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
6091 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
6092 ac_header_preproc=yes
6095 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
6096 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
6097 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
6098 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
6099 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
6100 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
6101 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&5
6102 echo "$as_me: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
6103 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
6104 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
6105 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
6106 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
6109 ## ------------------------------------------ ##
6110 ## Report this to the AC_PACKAGE_NAME lists. ##
6111 ## ------------------------------------------ ##
6114 sed "s/^/$as_me: WARNING: /" >&2
6117 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
6118 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
6119 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6120 echo $ECHO_N "(cached) $ECHO_C" >&6
6122 eval "$as_ac_Header=\$ac_header_preproc"
6124 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6125 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6128 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6129 cat >>confdefs.h <<\_ACEOF
6130 #define HAVE_READLINE 1
6133 CONS_LIBS="-lreadline -ltermcap"
6138 echo "readline.h not found. readline turned off ..."
6150 # check for standard readline library
6151 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6152 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
6153 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
6154 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6155 echo $ECHO_N "(cached) $ECHO_C" >&6
6157 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
6158 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
6160 # Is the header compilable?
6161 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
6162 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
6163 cat >conftest.$ac_ext <<_ACEOF
6166 cat confdefs.h >>conftest.$ac_ext
6167 cat >>conftest.$ac_ext <<_ACEOF
6168 /* end confdefs.h. */
6169 $ac_includes_default
6170 #include </usr/include/readline/readline.h>
6172 rm -f conftest.$ac_objext
6173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6174 (eval $ac_compile) 2>conftest.er1
6176 grep -v '^ *+' conftest.er1 >conftest.err
6178 cat conftest.err >&5
6179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180 (exit $ac_status); } &&
6181 { ac_try='test -z "$ac_c_werror_flag"
6182 || test ! -s conftest.err'
6183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6187 (exit $ac_status); }; } &&
6188 { ac_try='test -s conftest.$ac_objext'
6189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6193 (exit $ac_status); }; }; then
6194 ac_header_compiler=yes
6196 echo "$as_me: failed program was:" >&5
6197 sed 's/^/| /' conftest.$ac_ext >&5
6199 ac_header_compiler=no
6201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6202 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6203 echo "${ECHO_T}$ac_header_compiler" >&6
6205 # Is the header present?
6206 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
6207 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
6208 cat >conftest.$ac_ext <<_ACEOF
6211 cat confdefs.h >>conftest.$ac_ext
6212 cat >>conftest.$ac_ext <<_ACEOF
6213 /* end confdefs.h. */
6214 #include </usr/include/readline/readline.h>
6216 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6217 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6219 grep -v '^ *+' conftest.er1 >conftest.err
6221 cat conftest.err >&5
6222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6223 (exit $ac_status); } >/dev/null; then
6224 if test -s conftest.err; then
6225 ac_cpp_err=$ac_c_preproc_warn_flag
6226 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6233 if test -z "$ac_cpp_err"; then
6234 ac_header_preproc=yes
6236 echo "$as_me: failed program was:" >&5
6237 sed 's/^/| /' conftest.$ac_ext >&5
6239 ac_header_preproc=no
6241 rm -f conftest.err conftest.$ac_ext
6242 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6243 echo "${ECHO_T}$ac_header_preproc" >&6
6245 # So? What about this header?
6246 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6248 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6249 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6250 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
6251 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
6252 ac_header_preproc=yes
6255 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
6256 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
6257 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
6258 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
6259 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
6260 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
6261 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
6262 echo "$as_me: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
6263 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
6264 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6265 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
6266 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
6269 ## ------------------------------------------ ##
6270 ## Report this to the AC_PACKAGE_NAME lists. ##
6271 ## ------------------------------------------ ##
6274 sed "s/^/$as_me: WARNING: /" >&2
6277 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
6278 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
6279 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6280 echo $ECHO_N "(cached) $ECHO_C" >&6
6282 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
6284 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
6285 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
6288 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
6289 cat >>confdefs.h <<\_ACEOF
6290 #define HAVE_READLINE 1
6294 CONS_INC="-I/usr/include/readline"
6295 CONS_LIBS="-lreadline -ltermcap"
6299 # Did not find standard library, so try Bacula's default
6300 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
6301 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6302 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
6303 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
6304 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6305 echo $ECHO_N "(cached) $ECHO_C" >&6
6307 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6308 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6310 # Is the header compilable?
6311 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
6312 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
6313 cat >conftest.$ac_ext <<_ACEOF
6316 cat confdefs.h >>conftest.$ac_ext
6317 cat >>conftest.$ac_ext <<_ACEOF
6318 /* end confdefs.h. */
6319 $ac_includes_default
6320 #include <${TOP_DIR}/depkgs/readline/readline.h>
6322 rm -f conftest.$ac_objext
6323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6324 (eval $ac_compile) 2>conftest.er1
6326 grep -v '^ *+' conftest.er1 >conftest.err
6328 cat conftest.err >&5
6329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6330 (exit $ac_status); } &&
6331 { ac_try='test -z "$ac_c_werror_flag"
6332 || test ! -s conftest.err'
6333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6337 (exit $ac_status); }; } &&
6338 { ac_try='test -s conftest.$ac_objext'
6339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6343 (exit $ac_status); }; }; then
6344 ac_header_compiler=yes
6346 echo "$as_me: failed program was:" >&5
6347 sed 's/^/| /' conftest.$ac_ext >&5
6349 ac_header_compiler=no
6351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6352 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6353 echo "${ECHO_T}$ac_header_compiler" >&6
6355 # Is the header present?
6356 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
6357 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
6358 cat >conftest.$ac_ext <<_ACEOF
6361 cat confdefs.h >>conftest.$ac_ext
6362 cat >>conftest.$ac_ext <<_ACEOF
6363 /* end confdefs.h. */
6364 #include <${TOP_DIR}/depkgs/readline/readline.h>
6366 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6367 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6369 grep -v '^ *+' conftest.er1 >conftest.err
6371 cat conftest.err >&5
6372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6373 (exit $ac_status); } >/dev/null; then
6374 if test -s conftest.err; then
6375 ac_cpp_err=$ac_c_preproc_warn_flag
6376 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6383 if test -z "$ac_cpp_err"; then
6384 ac_header_preproc=yes
6386 echo "$as_me: failed program was:" >&5
6387 sed 's/^/| /' conftest.$ac_ext >&5
6389 ac_header_preproc=no
6391 rm -f conftest.err conftest.$ac_ext
6392 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6393 echo "${ECHO_T}$ac_header_preproc" >&6
6395 # So? What about this header?
6396 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6398 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6399 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6400 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
6401 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
6402 ac_header_preproc=yes
6405 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
6406 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
6407 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
6408 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
6409 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
6410 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
6411 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
6412 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
6413 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
6414 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6415 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
6416 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
6419 ## ------------------------------------------ ##
6420 ## Report this to the AC_PACKAGE_NAME lists. ##
6421 ## ------------------------------------------ ##
6424 sed "s/^/$as_me: WARNING: /" >&2
6427 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
6428 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
6429 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6430 echo $ECHO_N "(cached) $ECHO_C" >&6
6432 eval "$as_ac_Header=\$ac_header_preproc"
6434 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6435 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6438 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6439 cat >>confdefs.h <<\_ACEOF
6440 #define HAVE_READLINE 1
6444 CONS_INC="-I${TOP_DIR}/depkgs/readline"
6445 CONS_LIBS="-lreadline -lhistory -ltermcap"
6446 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
6447 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
6451 echo "readline.h not found. readline turned off ..."
6477 # Minimal stuff for readline Makefile configuration
6480 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6481 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
6482 if test "${ac_cv_header_stat_broken+set}" = set; then
6483 echo $ECHO_N "(cached) $ECHO_C" >&6
6485 cat >conftest.$ac_ext <<_ACEOF
6488 cat confdefs.h >>conftest.$ac_ext
6489 cat >>conftest.$ac_ext <<_ACEOF
6490 /* end confdefs.h. */
6491 #include <sys/types.h>
6492 #include <sys/stat.h>
6494 #if defined(S_ISBLK) && defined(S_IFDIR)
6495 # if S_ISBLK (S_IFDIR)
6500 #if defined(S_ISBLK) && defined(S_IFCHR)
6501 # if S_ISBLK (S_IFCHR)
6506 #if defined(S_ISLNK) && defined(S_IFREG)
6507 # if S_ISLNK (S_IFREG)
6512 #if defined(S_ISSOCK) && defined(S_IFREG)
6513 # if S_ISSOCK (S_IFREG)
6519 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6520 $EGREP "You lose" >/dev/null 2>&1; then
6521 ac_cv_header_stat_broken=yes
6523 ac_cv_header_stat_broken=no
6528 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6529 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
6530 if test $ac_cv_header_stat_broken = yes; then
6532 cat >>confdefs.h <<\_ACEOF
6533 #define STAT_MACROS_BROKEN 1
6544 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6545 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6546 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6547 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6548 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6549 echo $ECHO_N "(cached) $ECHO_C" >&6
6551 cat >conftest.$ac_ext <<_ACEOF
6554 cat confdefs.h >>conftest.$ac_ext
6555 cat >>conftest.$ac_ext <<_ACEOF
6556 /* end confdefs.h. */
6557 #include <sys/types.h>
6569 rm -f conftest.$ac_objext
6570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6571 (eval $ac_compile) 2>conftest.er1
6573 grep -v '^ *+' conftest.er1 >conftest.err
6575 cat conftest.err >&5
6576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6577 (exit $ac_status); } &&
6578 { ac_try='test -z "$ac_c_werror_flag"
6579 || test ! -s conftest.err'
6580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6584 (exit $ac_status); }; } &&
6585 { ac_try='test -s conftest.$ac_objext'
6586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590 (exit $ac_status); }; }; then
6591 eval "$as_ac_Header=yes"
6593 echo "$as_me: failed program was:" >&5
6594 sed 's/^/| /' conftest.$ac_ext >&5
6596 eval "$as_ac_Header=no"
6598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6600 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6601 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6602 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6603 cat >>confdefs.h <<_ACEOF
6604 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6607 ac_header_dirent=$ac_hdr; break
6611 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6612 if test $ac_header_dirent = dirent.h; then
6613 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6614 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6615 if test "${ac_cv_search_opendir+set}" = set; then
6616 echo $ECHO_N "(cached) $ECHO_C" >&6
6618 ac_func_search_save_LIBS=$LIBS
6619 ac_cv_search_opendir=no
6620 cat >conftest.$ac_ext <<_ACEOF
6623 cat confdefs.h >>conftest.$ac_ext
6624 cat >>conftest.$ac_ext <<_ACEOF
6625 /* end confdefs.h. */
6627 /* Override any gcc2 internal prototype to avoid an error. */
6631 /* We use char because int might match the return type of a gcc2
6632 builtin and then its argument prototype would still apply. */
6642 rm -f conftest.$ac_objext conftest$ac_exeext
6643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6644 (eval $ac_link) 2>conftest.er1
6646 grep -v '^ *+' conftest.er1 >conftest.err
6648 cat conftest.err >&5
6649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6650 (exit $ac_status); } &&
6651 { ac_try='test -z "$ac_c_werror_flag"
6652 || test ! -s conftest.err'
6653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6657 (exit $ac_status); }; } &&
6658 { ac_try='test -s conftest$ac_exeext'
6659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6663 (exit $ac_status); }; }; then
6664 ac_cv_search_opendir="none required"
6666 echo "$as_me: failed program was:" >&5
6667 sed 's/^/| /' conftest.$ac_ext >&5
6670 rm -f conftest.err conftest.$ac_objext \
6671 conftest$ac_exeext conftest.$ac_ext
6672 if test "$ac_cv_search_opendir" = no; then
6673 for ac_lib in dir; do
6674 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6675 cat >conftest.$ac_ext <<_ACEOF
6678 cat confdefs.h >>conftest.$ac_ext
6679 cat >>conftest.$ac_ext <<_ACEOF
6680 /* end confdefs.h. */
6682 /* Override any gcc2 internal prototype to avoid an error. */
6686 /* We use char because int might match the return type of a gcc2
6687 builtin and then its argument prototype would still apply. */
6697 rm -f conftest.$ac_objext conftest$ac_exeext
6698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6699 (eval $ac_link) 2>conftest.er1
6701 grep -v '^ *+' conftest.er1 >conftest.err
6703 cat conftest.err >&5
6704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6705 (exit $ac_status); } &&
6706 { ac_try='test -z "$ac_c_werror_flag"
6707 || test ! -s conftest.err'
6708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712 (exit $ac_status); }; } &&
6713 { ac_try='test -s conftest$ac_exeext'
6714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6718 (exit $ac_status); }; }; then
6719 ac_cv_search_opendir="-l$ac_lib"
6722 echo "$as_me: failed program was:" >&5
6723 sed 's/^/| /' conftest.$ac_ext >&5
6726 rm -f conftest.err conftest.$ac_objext \
6727 conftest$ac_exeext conftest.$ac_ext
6730 LIBS=$ac_func_search_save_LIBS
6732 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6733 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6734 if test "$ac_cv_search_opendir" != no; then
6735 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6740 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6741 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6742 if test "${ac_cv_search_opendir+set}" = set; then
6743 echo $ECHO_N "(cached) $ECHO_C" >&6
6745 ac_func_search_save_LIBS=$LIBS
6746 ac_cv_search_opendir=no
6747 cat >conftest.$ac_ext <<_ACEOF
6750 cat confdefs.h >>conftest.$ac_ext
6751 cat >>conftest.$ac_ext <<_ACEOF
6752 /* end confdefs.h. */
6754 /* Override any gcc2 internal prototype to avoid an error. */
6758 /* We use char because int might match the return type of a gcc2
6759 builtin and then its argument prototype would still apply. */
6769 rm -f conftest.$ac_objext conftest$ac_exeext
6770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6771 (eval $ac_link) 2>conftest.er1
6773 grep -v '^ *+' conftest.er1 >conftest.err
6775 cat conftest.err >&5
6776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6777 (exit $ac_status); } &&
6778 { ac_try='test -z "$ac_c_werror_flag"
6779 || test ! -s conftest.err'
6780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6784 (exit $ac_status); }; } &&
6785 { ac_try='test -s conftest$ac_exeext'
6786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6790 (exit $ac_status); }; }; then
6791 ac_cv_search_opendir="none required"
6793 echo "$as_me: failed program was:" >&5
6794 sed 's/^/| /' conftest.$ac_ext >&5
6797 rm -f conftest.err conftest.$ac_objext \
6798 conftest$ac_exeext conftest.$ac_ext
6799 if test "$ac_cv_search_opendir" = no; then
6801 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6802 cat >conftest.$ac_ext <<_ACEOF
6805 cat confdefs.h >>conftest.$ac_ext
6806 cat >>conftest.$ac_ext <<_ACEOF
6807 /* end confdefs.h. */
6809 /* Override any gcc2 internal prototype to avoid an error. */
6813 /* We use char because int might match the return type of a gcc2
6814 builtin and then its argument prototype would still apply. */
6824 rm -f conftest.$ac_objext conftest$ac_exeext
6825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6826 (eval $ac_link) 2>conftest.er1
6828 grep -v '^ *+' conftest.er1 >conftest.err
6830 cat conftest.err >&5
6831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6832 (exit $ac_status); } &&
6833 { ac_try='test -z "$ac_c_werror_flag"
6834 || test ! -s conftest.err'
6835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6839 (exit $ac_status); }; } &&
6840 { ac_try='test -s conftest$ac_exeext'
6841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6845 (exit $ac_status); }; }; then
6846 ac_cv_search_opendir="-l$ac_lib"
6849 echo "$as_me: failed program was:" >&5
6850 sed 's/^/| /' conftest.$ac_ext >&5
6853 rm -f conftest.err conftest.$ac_objext \
6854 conftest$ac_exeext conftest.$ac_ext
6857 LIBS=$ac_func_search_save_LIBS
6859 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6860 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6861 if test "$ac_cv_search_opendir" != no; then
6862 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6876 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
6878 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6879 echo "$as_me:$LINENO: checking for $ac_func" >&5
6880 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6881 if eval "test \"\${$as_ac_var+set}\" = set"; then
6882 echo $ECHO_N "(cached) $ECHO_C" >&6
6884 cat >conftest.$ac_ext <<_ACEOF
6887 cat confdefs.h >>conftest.$ac_ext
6888 cat >>conftest.$ac_ext <<_ACEOF
6889 /* end confdefs.h. */
6890 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6891 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6892 #define $ac_func innocuous_$ac_func
6894 /* System header to define __stub macros and hopefully few prototypes,
6895 which can conflict with char $ac_func (); below.
6896 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6897 <limits.h> exists even on freestanding compilers. */
6900 # include <limits.h>
6902 # include <assert.h>
6907 /* Override any gcc2 internal prototype to avoid an error. */
6912 /* We use char because int might match the return type of a gcc2
6913 builtin and then its argument prototype would still apply. */
6915 /* The GNU C library defines this for functions which it implements
6916 to always fail with ENOSYS. Some functions are actually named
6917 something starting with __ and the normal name is an alias. */
6918 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6921 char (*f) () = $ac_func;
6930 return f != $ac_func;
6935 rm -f conftest.$ac_objext conftest$ac_exeext
6936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6937 (eval $ac_link) 2>conftest.er1
6939 grep -v '^ *+' conftest.er1 >conftest.err
6941 cat conftest.err >&5
6942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6943 (exit $ac_status); } &&
6944 { ac_try='test -z "$ac_c_werror_flag"
6945 || test ! -s conftest.err'
6946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6950 (exit $ac_status); }; } &&
6951 { ac_try='test -s conftest$ac_exeext'
6952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6956 (exit $ac_status); }; }; then
6957 eval "$as_ac_var=yes"
6959 echo "$as_me: failed program was:" >&5
6960 sed 's/^/| /' conftest.$ac_ext >&5
6962 eval "$as_ac_var=no"
6964 rm -f conftest.err conftest.$ac_objext \
6965 conftest$ac_exeext conftest.$ac_ext
6967 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6968 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6969 if test `eval echo '${'$as_ac_var'}'` = yes; then
6970 cat >>confdefs.h <<_ACEOF
6971 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6979 for ac_func in nanosleep nl_langinfo
6981 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6982 echo "$as_me:$LINENO: checking for $ac_func" >&5
6983 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6984 if eval "test \"\${$as_ac_var+set}\" = set"; then
6985 echo $ECHO_N "(cached) $ECHO_C" >&6
6987 cat >conftest.$ac_ext <<_ACEOF
6990 cat confdefs.h >>conftest.$ac_ext
6991 cat >>conftest.$ac_ext <<_ACEOF
6992 /* end confdefs.h. */
6993 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6994 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6995 #define $ac_func innocuous_$ac_func
6997 /* System header to define __stub macros and hopefully few prototypes,
6998 which can conflict with char $ac_func (); below.
6999 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7000 <limits.h> exists even on freestanding compilers. */
7003 # include <limits.h>
7005 # include <assert.h>
7010 /* Override any gcc2 internal prototype to avoid an error. */
7015 /* We use char because int might match the return type of a gcc2
7016 builtin and then its argument prototype would still apply. */
7018 /* The GNU C library defines this for functions which it implements
7019 to always fail with ENOSYS. Some functions are actually named
7020 something starting with __ and the normal name is an alias. */
7021 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7024 char (*f) () = $ac_func;
7033 return f != $ac_func;
7038 rm -f conftest.$ac_objext conftest$ac_exeext
7039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7040 (eval $ac_link) 2>conftest.er1
7042 grep -v '^ *+' conftest.er1 >conftest.err
7044 cat conftest.err >&5
7045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046 (exit $ac_status); } &&
7047 { ac_try='test -z "$ac_c_werror_flag"
7048 || test ! -s conftest.err'
7049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7053 (exit $ac_status); }; } &&
7054 { ac_try='test -s conftest$ac_exeext'
7055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7059 (exit $ac_status); }; }; then
7060 eval "$as_ac_var=yes"
7062 echo "$as_me: failed program was:" >&5
7063 sed 's/^/| /' conftest.$ac_ext >&5
7065 eval "$as_ac_var=no"
7067 rm -f conftest.err conftest.$ac_objext \
7068 conftest$ac_exeext conftest.$ac_ext
7070 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7071 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7072 if test `eval echo '${'$as_ac_var'}'` = yes; then
7073 cat >>confdefs.h <<_ACEOF
7074 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7081 for ac_header in varargs.h
7083 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7084 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7085 echo "$as_me:$LINENO: checking for $ac_header" >&5
7086 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7087 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7088 echo $ECHO_N "(cached) $ECHO_C" >&6
7090 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7091 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7093 # Is the header compilable?
7094 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7095 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7096 cat >conftest.$ac_ext <<_ACEOF
7099 cat confdefs.h >>conftest.$ac_ext
7100 cat >>conftest.$ac_ext <<_ACEOF
7101 /* end confdefs.h. */
7102 $ac_includes_default
7103 #include <$ac_header>
7105 rm -f conftest.$ac_objext
7106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7107 (eval $ac_compile) 2>conftest.er1
7109 grep -v '^ *+' conftest.er1 >conftest.err
7111 cat conftest.err >&5
7112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7113 (exit $ac_status); } &&
7114 { ac_try='test -z "$ac_c_werror_flag"
7115 || test ! -s conftest.err'
7116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7120 (exit $ac_status); }; } &&
7121 { ac_try='test -s conftest.$ac_objext'
7122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126 (exit $ac_status); }; }; then
7127 ac_header_compiler=yes
7129 echo "$as_me: failed program was:" >&5
7130 sed 's/^/| /' conftest.$ac_ext >&5
7132 ac_header_compiler=no
7134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7135 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7136 echo "${ECHO_T}$ac_header_compiler" >&6
7138 # Is the header present?
7139 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7140 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7141 cat >conftest.$ac_ext <<_ACEOF
7144 cat confdefs.h >>conftest.$ac_ext
7145 cat >>conftest.$ac_ext <<_ACEOF
7146 /* end confdefs.h. */
7147 #include <$ac_header>
7149 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7150 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7152 grep -v '^ *+' conftest.er1 >conftest.err
7154 cat conftest.err >&5
7155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7156 (exit $ac_status); } >/dev/null; then
7157 if test -s conftest.err; then
7158 ac_cpp_err=$ac_c_preproc_warn_flag
7159 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7166 if test -z "$ac_cpp_err"; then
7167 ac_header_preproc=yes
7169 echo "$as_me: failed program was:" >&5
7170 sed 's/^/| /' conftest.$ac_ext >&5
7172 ac_header_preproc=no
7174 rm -f conftest.err conftest.$ac_ext
7175 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7176 echo "${ECHO_T}$ac_header_preproc" >&6
7178 # So? What about this header?
7179 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7181 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7182 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7183 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7184 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7185 ac_header_preproc=yes
7188 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7189 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7190 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7191 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7192 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7193 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7194 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7195 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7196 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7197 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7198 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7199 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7202 ## ------------------------------------------ ##
7203 ## Report this to the AC_PACKAGE_NAME lists. ##
7204 ## ------------------------------------------ ##
7207 sed "s/^/$as_me: WARNING: /" >&2
7210 echo "$as_me:$LINENO: checking for $ac_header" >&5
7211 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7212 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7213 echo $ECHO_N "(cached) $ECHO_C" >&6
7215 eval "$as_ac_Header=\$ac_header_preproc"
7217 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7218 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7221 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7222 cat >>confdefs.h <<_ACEOF
7223 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7231 # End of readline/conio stuff
7232 # -----------------------------------------------------------------------
7234 # -----------------------------------------------------------------------
7235 # Check for Python support
7237 echo "$as_me:$LINENO: checking for Python support" >&5
7238 echo $ECHO_N "checking for Python support... $ECHO_C" >&6
7240 # Check whether --with-python or --without-python was given.
7241 if test "${with_python+set}" = set; then
7242 withval="$with_python"
7246 if test "$withval" != "no"; then
7247 if test "$withval" = "yes"; then
7248 if test -f /usr/include/python2.2/Python.h; then
7249 PYTHON_INCDIR=-I/usr/include/python2.2
7250 PYTHON_LIBS="-L/usr/lib/python2.2/config -lpython2.2 -lutil -ldl"
7251 elif test -f /usr/include/python2.3/Python.h; then
7252 PYTHON_INCDIR=-I/usr/include/python2.3
7253 PYTHON_LIBS="-L/usr/lib/python2.3/config -lpython2.3 -lutil -ldl"
7254 elif test -f /usr/include/python2.4/Python.h; then
7255 PYTHON_INCDIR=-I/usr/include/python2.4
7256 PYTHON_LIBS="-L/usr/lib/python2.4/config -lpython2.4 -lutil -ldl"
7257 elif test -f $prefix/include/Python.h; then
7258 PYTHON_INCDIR=-I$prefix/include
7259 PYTHON_LIBS="-L$prefix/lib/config -lpython -lutil -ldl"
7261 echo "$as_me:$LINENO: result: no" >&5
7262 echo "${ECHO_T}no" >&6
7263 { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
7264 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
7265 { (exit 1); exit 1; }; }
7268 if test -f $withval/Python.h; then
7269 PYTHON_INCDIR=-I$withval
7270 PYTHON_LIBS="-L$withval/config -lpython -lutil -ldl"
7271 elif test -f $withval/include/Python.h; then
7272 PYTHON_INCDIR=-I$withval/include
7273 PYTHON_LIBS="-L$withval/lib/config -lpython -lutil -ldl"
7275 echo "$as_me:$LINENO: result: no" >&5
7276 echo "${ECHO_T}no" >&6
7277 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
7278 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
7279 { (exit 1); exit 1; }; }
7282 cat >>confdefs.h <<\_ACEOF
7283 #define HAVE_PYTHON 1
7286 echo "$as_me:$LINENO: result: yes" >&5
7287 echo "${ECHO_T}yes" >&6
7291 echo "$as_me:$LINENO: result: no" >&5
7292 echo "${ECHO_T}no" >&6
7297 echo "$as_me:$LINENO: result: no" >&5
7298 echo "${ECHO_T}no" >&6
7306 # Find where sockets are (especially for Solaris)
7307 # Do this before the TCP Wrappers test since tcp wrappers
7308 # uses the socket library and some linkers are stupid.
7310 echo "$as_me:$LINENO: checking for socket" >&5
7311 echo $ECHO_N "checking for socket... $ECHO_C" >&6
7312 if test "${ac_cv_func_socket+set}" = set; then
7313 echo $ECHO_N "(cached) $ECHO_C" >&6
7315 cat >conftest.$ac_ext <<_ACEOF
7318 cat confdefs.h >>conftest.$ac_ext
7319 cat >>conftest.$ac_ext <<_ACEOF
7320 /* end confdefs.h. */
7321 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
7322 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7323 #define socket innocuous_socket
7325 /* System header to define __stub macros and hopefully few prototypes,
7326 which can conflict with char socket (); below.
7327 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7328 <limits.h> exists even on freestanding compilers. */
7331 # include <limits.h>
7333 # include <assert.h>
7338 /* Override any gcc2 internal prototype to avoid an error. */
7343 /* We use char because int might match the return type of a gcc2
7344 builtin and then its argument prototype would still apply. */
7346 /* The GNU C library defines this for functions which it implements
7347 to always fail with ENOSYS. Some functions are actually named
7348 something starting with __ and the normal name is an alias. */
7349 #if defined (__stub_socket) || defined (__stub___socket)
7352 char (*f) () = socket;
7366 rm -f conftest.$ac_objext conftest$ac_exeext
7367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7368 (eval $ac_link) 2>conftest.er1
7370 grep -v '^ *+' conftest.er1 >conftest.err
7372 cat conftest.err >&5
7373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7374 (exit $ac_status); } &&
7375 { ac_try='test -z "$ac_c_werror_flag"
7376 || test ! -s conftest.err'
7377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7381 (exit $ac_status); }; } &&
7382 { ac_try='test -s conftest$ac_exeext'
7383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7387 (exit $ac_status); }; }; then
7388 ac_cv_func_socket=yes
7390 echo "$as_me: failed program was:" >&5
7391 sed 's/^/| /' conftest.$ac_ext >&5
7393 ac_cv_func_socket=no
7395 rm -f conftest.err conftest.$ac_objext \
7396 conftest$ac_exeext conftest.$ac_ext
7398 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
7399 echo "${ECHO_T}$ac_cv_func_socket" >&6
7400 if test $ac_cv_func_socket = yes; then
7401 echo "$as_me:$LINENO: result: using libc's socket" >&5
7402 echo "${ECHO_T}using libc's socket" >&6
7405 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
7406 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
7407 if test "${ac_cv_lib_xnet_socket+set}" = set; then
7408 echo $ECHO_N "(cached) $ECHO_C" >&6
7410 ac_check_lib_save_LIBS=$LIBS
7412 cat >conftest.$ac_ext <<_ACEOF
7415 cat confdefs.h >>conftest.$ac_ext
7416 cat >>conftest.$ac_ext <<_ACEOF
7417 /* end confdefs.h. */
7419 /* Override any gcc2 internal prototype to avoid an error. */
7423 /* We use char because int might match the return type of a gcc2
7424 builtin and then its argument prototype would still apply. */
7434 rm -f conftest.$ac_objext conftest$ac_exeext
7435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7436 (eval $ac_link) 2>conftest.er1
7438 grep -v '^ *+' conftest.er1 >conftest.err
7440 cat conftest.err >&5
7441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7442 (exit $ac_status); } &&
7443 { ac_try='test -z "$ac_c_werror_flag"
7444 || test ! -s conftest.err'
7445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7449 (exit $ac_status); }; } &&
7450 { ac_try='test -s conftest$ac_exeext'
7451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7455 (exit $ac_status); }; }; then
7456 ac_cv_lib_xnet_socket=yes
7458 echo "$as_me: failed program was:" >&5
7459 sed 's/^/| /' conftest.$ac_ext >&5
7461 ac_cv_lib_xnet_socket=no
7463 rm -f conftest.err conftest.$ac_objext \
7464 conftest$ac_exeext conftest.$ac_ext
7465 LIBS=$ac_check_lib_save_LIBS
7467 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
7468 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
7469 if test $ac_cv_lib_xnet_socket = yes; then
7470 cat >>confdefs.h <<_ACEOF
7471 #define HAVE_LIBXNET 1
7479 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
7480 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
7481 if test "${ac_cv_lib_socket_socket+set}" = set; then
7482 echo $ECHO_N "(cached) $ECHO_C" >&6
7484 ac_check_lib_save_LIBS=$LIBS
7485 LIBS="-lsocket $LIBS"
7486 cat >conftest.$ac_ext <<_ACEOF
7489 cat confdefs.h >>conftest.$ac_ext
7490 cat >>conftest.$ac_ext <<_ACEOF
7491 /* end confdefs.h. */
7493 /* Override any gcc2 internal prototype to avoid an error. */
7497 /* We use char because int might match the return type of a gcc2
7498 builtin and then its argument prototype would still apply. */
7508 rm -f conftest.$ac_objext conftest$ac_exeext
7509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7510 (eval $ac_link) 2>conftest.er1
7512 grep -v '^ *+' conftest.er1 >conftest.err
7514 cat conftest.err >&5
7515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7516 (exit $ac_status); } &&
7517 { ac_try='test -z "$ac_c_werror_flag"
7518 || test ! -s conftest.err'
7519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7523 (exit $ac_status); }; } &&
7524 { ac_try='test -s conftest$ac_exeext'
7525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7529 (exit $ac_status); }; }; then
7530 ac_cv_lib_socket_socket=yes
7532 echo "$as_me: failed program was:" >&5
7533 sed 's/^/| /' conftest.$ac_ext >&5
7535 ac_cv_lib_socket_socket=no
7537 rm -f conftest.err conftest.$ac_objext \
7538 conftest$ac_exeext conftest.$ac_ext
7539 LIBS=$ac_check_lib_save_LIBS
7541 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
7542 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
7543 if test $ac_cv_lib_socket_socket = yes; then
7544 cat >>confdefs.h <<_ACEOF
7545 #define HAVE_LIBSOCKET 1
7548 LIBS="-lsocket $LIBS"
7553 echo "$as_me:$LINENO: checking for socket in -linet" >&5
7554 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
7555 if test "${ac_cv_lib_inet_socket+set}" = set; then
7556 echo $ECHO_N "(cached) $ECHO_C" >&6
7558 ac_check_lib_save_LIBS=$LIBS
7560 cat >conftest.$ac_ext <<_ACEOF
7563 cat confdefs.h >>conftest.$ac_ext
7564 cat >>conftest.$ac_ext <<_ACEOF
7565 /* end confdefs.h. */
7567 /* Override any gcc2 internal prototype to avoid an error. */
7571 /* We use char because int might match the return type of a gcc2
7572 builtin and then its argument prototype would still apply. */
7582 rm -f conftest.$ac_objext conftest$ac_exeext
7583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7584 (eval $ac_link) 2>conftest.er1
7586 grep -v '^ *+' conftest.er1 >conftest.err
7588 cat conftest.err >&5
7589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7590 (exit $ac_status); } &&
7591 { ac_try='test -z "$ac_c_werror_flag"
7592 || test ! -s conftest.err'
7593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7597 (exit $ac_status); }; } &&
7598 { ac_try='test -s conftest$ac_exeext'
7599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7603 (exit $ac_status); }; }; then
7604 ac_cv_lib_inet_socket=yes
7606 echo "$as_me: failed program was:" >&5
7607 sed 's/^/| /' conftest.$ac_ext >&5
7609 ac_cv_lib_inet_socket=no
7611 rm -f conftest.err conftest.$ac_objext \
7612 conftest$ac_exeext conftest.$ac_ext
7613 LIBS=$ac_check_lib_save_LIBS
7615 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
7616 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
7617 if test $ac_cv_lib_inet_socket = yes; then
7618 cat >>confdefs.h <<_ACEOF
7619 #define HAVE_LIBINET 1
7630 # -----------------------------------------------------------
7631 # Check whether user wants TCP wrappers support (default off)
7632 # -----------------------------------------------------------
7635 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
7636 if test "${with_tcp_wrappers+set}" = set; then
7637 withval="$with_tcp_wrappers"
7639 if test "x$withval" != "xno" ; then
7641 LIBS="$saved_LIBS -lwrap"
7642 echo "$as_me:$LINENO: checking for libwrap" >&5
7643 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
7644 cat >conftest.$ac_ext <<_ACEOF
7647 cat confdefs.h >>conftest.$ac_ext
7648 cat >>conftest.$ac_ext <<_ACEOF
7649 /* end confdefs.h. */
7651 int deny_severity = 0;
7652 int allow_severity = 0;
7653 struct request_info *req;
7662 rm -f conftest.$ac_objext conftest$ac_exeext
7663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7664 (eval $ac_link) 2>conftest.er1
7666 grep -v '^ *+' conftest.er1 >conftest.err
7668 cat conftest.err >&5
7669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7670 (exit $ac_status); } &&
7671 { ac_try='test -z "$ac_c_werror_flag"
7672 || test ! -s conftest.err'
7673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7677 (exit $ac_status); }; } &&
7678 { ac_try='test -s conftest$ac_exeext'
7679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7683 (exit $ac_status); }; }; then
7685 echo "$as_me:$LINENO: result: yes" >&5
7686 echo "${ECHO_T}yes" >&6
7687 cat >>confdefs.h <<\_ACEOF
7688 #define HAVE_LIBWRAP 1
7694 echo "$as_me: failed program was:" >&5
7695 sed 's/^/| /' conftest.$ac_ext >&5
7698 LIBS="$saved_LIBS -lwrap -lnsl"
7699 cat >conftest.$ac_ext <<_ACEOF
7702 cat confdefs.h >>conftest.$ac_ext
7703 cat >>conftest.$ac_ext <<_ACEOF
7704 /* end confdefs.h. */
7706 int deny_severity = 0;
7707 int allow_severity = 0;
7708 struct request_info *req;
7717 rm -f conftest.$ac_objext conftest$ac_exeext
7718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7719 (eval $ac_link) 2>conftest.er1
7721 grep -v '^ *+' conftest.er1 >conftest.err
7723 cat conftest.err >&5
7724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7725 (exit $ac_status); } &&
7726 { ac_try='test -z "$ac_c_werror_flag"
7727 || test ! -s conftest.err'
7728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7732 (exit $ac_status); }; } &&
7733 { ac_try='test -s conftest$ac_exeext'
7734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7738 (exit $ac_status); }; }; then
7740 echo "$as_me:$LINENO: result: yes" >&5
7741 echo "${ECHO_T}yes" >&6
7742 cat >>confdefs.h <<\_ACEOF
7743 #define HAVE_LIBWRAP 1
7749 echo "$as_me: failed program was:" >&5
7750 sed 's/^/| /' conftest.$ac_ext >&5
7752 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
7753 echo "$as_me: error: *** libwrap missing" >&2;}
7754 { (exit 1); exit 1; }; }
7757 rm -f conftest.err conftest.$ac_objext \
7758 conftest$ac_exeext conftest.$ac_ext
7761 rm -f conftest.err conftest.$ac_objext \
7762 conftest$ac_exeext conftest.$ac_ext
7768 # -----------------------------------------------------------
7769 # Check whether OpenSSL is available
7770 # -----------------------------------------------------------
7771 echo "$as_me:$LINENO: checking for OpenSSL" >&5
7772 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6
7774 # Check whether --with-openssl or --without-openssl was given.
7775 if test "${with_openssl+set}" = set; then
7776 withval="$with_openssl"
7777 with_openssl_directory=${withval}
7780 if test "x$with_openssl_directory" != "x"; then
7781 OPENSSL_LIBS="-lssl -lcrypto"
7784 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
7785 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
7786 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
7790 saved_CFLAGS="$CFLAGS"
7791 LIBS="$saved_LIBS $OPENSSL_LIBS"
7792 CFLAGS="$saved_CFLAGS $OPENSSL_INC"
7794 cat >conftest.$ac_ext <<_ACEOF
7797 cat confdefs.h >>conftest.$ac_ext
7798 cat >>conftest.$ac_ext <<_ACEOF
7799 /* end confdefs.h. */
7800 #include <openssl/ssl.h>
7804 CRYPTO_set_id_callback(NULL);
7809 rm -f conftest.$ac_objext conftest$ac_exeext
7810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7811 (eval $ac_link) 2>conftest.er1
7813 grep -v '^ *+' conftest.er1 >conftest.err
7815 cat conftest.err >&5
7816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7817 (exit $ac_status); } &&
7818 { ac_try='test -z "$ac_c_werror_flag"
7819 || test ! -s conftest.err'
7820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7824 (exit $ac_status); }; } &&
7825 { ac_try='test -s conftest$ac_exeext'
7826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7830 (exit $ac_status); }; }; then
7833 echo "$as_me: failed program was:" >&5
7834 sed 's/^/| /' conftest.$ac_ext >&5
7839 rm -f conftest.err conftest.$ac_objext \
7840 conftest$ac_exeext conftest.$ac_ext
7843 CFLAGS="$saved_CFLAGS"
7845 if test "$support_tls" = "yes"; then
7847 cat >>confdefs.h <<\_ACEOF
7848 #define HAVE_OPENSSL 1
7852 cat >>confdefs.h <<\_ACEOF
7863 echo "$as_me:$LINENO: result: $support_tls" >&5
7864 echo "${ECHO_T}$support_tls" >&6
7870 # ------------------------------------------
7871 # Where to place working dir
7872 # ------------------------------------------
7873 working_dir=`eval echo ${prefix}/var/bacula/working`
7875 # Check whether --with-working-dir or --without-working-dir was given.
7876 if test "${with_working_dir+set}" = set; then
7877 withval="$with_working_dir"
7879 if test "x$withval" != "xno" ; then
7880 working_dir=$withval
7889 # ------------------------------------------
7890 # Where to place scriptdir (script files)
7891 # ------------------------------------------
7892 scriptdir=`eval echo ${sysconfdir}`
7894 # Check whether --with-scriptdir or --without-scriptdir was given.
7895 if test "${with_scriptdir+set}" = set; then
7896 withval="$with_scriptdir"
7898 if test "x$withval" != "xno" ; then
7908 # ------------------------------------------
7909 # Where to send dump email
7910 # ------------------------------------------
7911 dump_email=root@localhost
7913 # Check whether --with-dump-email or --without-dump-email was given.
7914 if test "${with_dump_email+set}" = set; then
7915 withval="$with_dump_email"
7917 if test "x$withval" != "xno" ; then
7926 # ------------------------------------------
7927 # Where to send job email
7928 # ------------------------------------------
7929 job_email=root@localhost
7931 # Check whether --with-job-email or --without-job-email was given.
7932 if test "${with_job_email+set}" = set; then
7933 withval="$with_job_email"
7935 if test "x$withval" != "xno" ; then
7944 # ------------------------------------------
7945 # Where to find smtp host
7946 # ------------------------------------------
7949 # Check whether --with-smtp_host or --without-smtp_host was given.
7950 if test "${with_smtp_host+set}" = set; then
7951 withval="$with_smtp_host"
7953 if test "x$withval" != "xno" ; then
7963 # ------------------------------------
7964 # Where to place pid files
7965 # ------------------------------------
7968 # Check whether --with-pid-dir or --without-pid-dir was given.
7969 if test "${with_pid_dir+set}" = set; then
7970 withval="$with_pid_dir"
7972 if test "x$withval" != "xno" ; then
7979 cat >>confdefs.h <<_ACEOF
7980 #define _PATH_BACULA_PIDDIR "$piddir"
7986 # ------------------------------------
7987 # Where to place subsys "lock file"
7988 # ------------------------------------
7989 subsysdir=/var/run/subsys
7991 # Check whether --with-subsys-dir or --without-subsys-dir was given.
7992 if test "${with_subsys_dir+set}" = set; then
7993 withval="$with_subsys_dir"
7995 if test "x$withval" != "xno" ; then
8006 # ------------------------------------
8007 # Where to start assigning ports
8008 # ------------------------------------
8011 # Check whether --with-baseport or --without-baseport was given.
8012 if test "${with_baseport+set}" = set; then
8013 withval="$with_baseport"
8015 if test "x$withval" != "xno" ; then
8023 dir_port=`expr $baseport`
8024 fd_port=`expr $baseport + 1`
8025 sd_port=`expr $fd_port + 1`
8032 # ------------------------------------------
8033 # Generate passwords
8034 # ------------------------------------------
8037 # Check whether --with-dir-password or --without-dir-password was given.
8038 if test "${with_dir_password+set}" = set; then
8039 withval="$with_dir_password"
8041 if test "x$withval" != "xno" ; then
8042 dir_password=$withval
8048 if test "x$dir_password" = "x" ; then
8049 if test "x$OPENSSL" = "xnone" ; then
8050 key=`autoconf/randpass 33`
8052 key=`openssl rand -base64 33`
8059 # Check whether --with-fd-password or --without-fd-password was given.
8060 if test "${with_fd_password+set}" = set; then
8061 withval="$with_fd_password"
8063 if test "x$withval" != "xno" ; then
8064 fd_password=$withval
8070 if test "x$fd_password" = "x" ; then
8071 if test "x$OPENSSL" = "xnone" ; then
8072 key=`autoconf/randpass 37`
8074 key=`openssl rand -base64 33`
8081 # Check whether --with-sd-password or --without-sd-password was given.
8082 if test "${with_sd_password+set}" = set; then
8083 withval="$with_sd_password"
8085 if test "x$withval" != "xno" ; then
8086 sd_password=$withval
8092 if test "x$sd_password" = "x" ; then
8093 if test "x$OPENSSL" = "xnone" ; then
8094 key=`autoconf/randpass 41`
8096 key=`openssl rand -base64 33`
8103 # Check whether --with-mon-dir-password or --without-mon-dir-password was given.
8104 if test "${with_mon_dir_password+set}" = set; then
8105 withval="$with_mon_dir_password"
8107 if test "x$withval" != "xno" ; then
8108 mon_dir_password=$withval
8114 if test "x$mon_dir_password" = "x" ; then
8115 if test "x$OPENSSL" = "xnone" ; then
8116 key=`autoconf/randpass 33`
8118 key=`openssl rand -base64 33`
8120 mon_dir_password=$key
8125 # Check whether --with-mon-fd-password or --without-mon-fd-password was given.
8126 if test "${with_mon_fd_password+set}" = set; then
8127 withval="$with_mon_fd_password"
8129 if test "x$withval" != "xno" ; then
8130 mon_fd_password=$withval
8136 if test "x$mon_fd_password" = "x" ; then
8137 if test "x$OPENSSL" = "xnone" ; then
8138 key=`autoconf/randpass 37`
8140 key=`openssl rand -base64 33`
8142 mon_fd_password=$key
8147 # Check whether --with-mon-sd-password or --without-mon-sd-password was given.
8148 if test "${with_mon_sd_password+set}" = set; then
8149 withval="$with_mon_sd_password"
8151 if test "x$withval" != "xno" ; then
8152 mon_sd_password=$withval
8158 if test "x$mon_sd_password" = "x" ; then
8159 if test "x$OPENSSL" = "xnone" ; then
8160 key=`autoconf/randpass 41`
8162 key=`openssl rand -base64 33`
8164 mon_sd_password=$key
8176 # Handle users and groups for each daemon
8180 # Check whether --with-dir_user or --without-dir_user was given.
8181 if test "${with_dir_user+set}" = set; then
8182 withval="$with_dir_user"
8184 if test "x$withval" != "x" ; then
8193 # Check whether --with-dir_group or --without-dir_group was given.
8194 if test "${with_dir_group+set}" = set; then
8195 withval="$with_dir_group"
8197 if test "x$withval" != "x" ; then
8206 # Check whether --with-sd_user or --without-sd_user was given.
8207 if test "${with_sd_user+set}" = set; then
8208 withval="$with_sd_user"
8210 if test "x$withval" != "x" ; then
8219 # Check whether --with-sd_group or --without-sd_group was given.
8220 if test "${with_sd_group+set}" = set; then
8221 withval="$with_sd_group"
8223 if test "x$withval" != "x" ; then
8232 # Check whether --with-fd_user or --without-fd_user was given.
8233 if test "${with_fd_user+set}" = set; then
8234 withval="$with_fd_user"
8236 if test "x$withval" != "x" ; then
8245 # Check whether --with-fd_group or --without-fd_group was given.
8246 if test "${with_fd_group+set}" = set; then
8247 withval="$with_fd_group"
8249 if test "x$withval" != "x" ; then
8267 # allow setting default executable permissions
8271 # Check whether --with-sbin-perm or --without-sbin-perm was given.
8272 if test "${with_sbin_perm+set}" = set; then
8273 withval="$with_sbin_perm"
8275 if test "x$withval" != "x" ; then
8284 # ------------------------------------------------
8285 # Bacula check for various SQL database engines
8286 # ------------------------------------------------
8289 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
8290 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
8292 # Check whether --with-postgresql or --without-postgresql was given.
8293 if test "${with_postgresql+set}" = set; then
8294 withval="$with_postgresql"
8296 if test "$withval" != "no"; then
8297 if test "$db_found" = "yes"; then
8298 echo "$as_me:$LINENO: result: error" >&5
8299 echo "${ECHO_T}error" >&6
8300 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
8301 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
8302 { (exit 1); exit 1; }; };
8304 if test "$withval" = "yes"; then
8305 if test -f /usr/local/include/libpq-fe.h; then
8306 POSTGRESQL_INCDIR=/usr/local/include
8307 POSTGRESQL_LIBDIR=/usr/local/lib
8308 POSTGRESQL_BINDIR=/usr/local/bin
8309 elif test -f /usr/include/libpq-fe.h; then
8310 POSTGRESQL_INCDIR=/usr/include
8311 POSTGRESQL_LIBDIR=/usr/lib
8312 POSTGRESQL_BINDIR=/usr/bin
8313 elif test -f /usr/include/pgsql/libpq-fe.h; then
8314 POSTGRESQL_INCDIR=/usr/include/pgsql
8315 POSTGRESQL_LIBDIR=/usr/lib/pgsql
8316 POSTGRESQL_BINDIR=/usr/bin
8317 elif test -f /usr/include/postgresql/libpq-fe.h; then
8318 POSTGRESQL_INCDIR=/usr/include/postgresql
8319 POSTGRESQL_LIBDIR=/usr/lib/postgresql
8320 POSTGRESQL_BINDIR=/usr/bin
8322 echo "$as_me:$LINENO: result: no" >&5
8323 echo "${ECHO_T}no" >&6
8324 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
8325 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
8326 { (exit 1); exit 1; }; }
8328 elif test -f $withval/include/libpq-fe.h; then
8329 POSTGRESQL_INCDIR=$withval/include
8330 POSTGRESQL_LIBDIR=$withval/lib
8331 POSTGRESQL_BINDIR=$withval/bin
8332 elif test -f $withval/include/postgresql/libpq-fe.h; then
8333 POSTGRESQL_INCDIR=$withval/include/postgresql
8334 POSTGRESQL_LIBDIR=$withval/lib
8335 POSTGRESQL_BINDIR=$withval/bin
8337 echo "$as_me:$LINENO: result: no" >&5
8338 echo "${ECHO_T}no" >&6
8339 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
8340 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
8341 { (exit 1); exit 1; }; }
8343 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
8344 echo "$as_me:$LINENO: checking for crypt" >&5
8345 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
8346 if test "${ac_cv_func_crypt+set}" = set; then
8347 echo $ECHO_N "(cached) $ECHO_C" >&6
8349 cat >conftest.$ac_ext <<_ACEOF
8352 cat confdefs.h >>conftest.$ac_ext
8353 cat >>conftest.$ac_ext <<_ACEOF
8354 /* end confdefs.h. */
8355 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
8356 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8357 #define crypt innocuous_crypt
8359 /* System header to define __stub macros and hopefully few prototypes,
8360 which can conflict with char crypt (); below.
8361 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8362 <limits.h> exists even on freestanding compilers. */
8365 # include <limits.h>
8367 # include <assert.h>
8372 /* Override any gcc2 internal prototype to avoid an error. */
8377 /* We use char because int might match the return type of a gcc2
8378 builtin and then its argument prototype would still apply. */
8380 /* The GNU C library defines this for functions which it implements
8381 to always fail with ENOSYS. Some functions are actually named
8382 something starting with __ and the normal name is an alias. */
8383 #if defined (__stub_crypt) || defined (__stub___crypt)
8386 char (*f) () = crypt;
8400 rm -f conftest.$ac_objext conftest$ac_exeext
8401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8402 (eval $ac_link) 2>conftest.er1
8404 grep -v '^ *+' conftest.er1 >conftest.err
8406 cat conftest.err >&5
8407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408 (exit $ac_status); } &&
8409 { ac_try='test -z "$ac_c_werror_flag"
8410 || test ! -s conftest.err'
8411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8415 (exit $ac_status); }; } &&
8416 { ac_try='test -s conftest$ac_exeext'
8417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421 (exit $ac_status); }; }; then
8422 ac_cv_func_crypt=yes
8424 echo "$as_me: failed program was:" >&5
8425 sed 's/^/| /' conftest.$ac_ext >&5
8429 rm -f conftest.err conftest.$ac_objext \
8430 conftest$ac_exeext conftest.$ac_ext
8432 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
8433 echo "${ECHO_T}$ac_cv_func_crypt" >&6
8434 if test $ac_cv_func_crypt = yes; then
8437 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
8438 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
8439 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
8440 echo $ECHO_N "(cached) $ECHO_C" >&6
8442 ac_check_lib_save_LIBS=$LIBS
8443 LIBS="-lcrypt $LIBS"
8444 cat >conftest.$ac_ext <<_ACEOF
8447 cat confdefs.h >>conftest.$ac_ext
8448 cat >>conftest.$ac_ext <<_ACEOF
8449 /* end confdefs.h. */
8451 /* Override any gcc2 internal prototype to avoid an error. */
8455 /* We use char because int might match the return type of a gcc2
8456 builtin and then its argument prototype would still apply. */
8466 rm -f conftest.$ac_objext conftest$ac_exeext
8467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8468 (eval $ac_link) 2>conftest.er1
8470 grep -v '^ *+' conftest.er1 >conftest.err
8472 cat conftest.err >&5
8473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474 (exit $ac_status); } &&
8475 { ac_try='test -z "$ac_c_werror_flag"
8476 || test ! -s conftest.err'
8477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481 (exit $ac_status); }; } &&
8482 { ac_try='test -s conftest$ac_exeext'
8483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487 (exit $ac_status); }; }; then
8488 ac_cv_lib_crypt_crypt=yes
8490 echo "$as_me: failed program was:" >&5
8491 sed 's/^/| /' conftest.$ac_ext >&5
8493 ac_cv_lib_crypt_crypt=no
8495 rm -f conftest.err conftest.$ac_objext \
8496 conftest$ac_exeext conftest.$ac_ext
8497 LIBS=$ac_check_lib_save_LIBS
8499 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
8500 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
8501 if test $ac_cv_lib_crypt_crypt = yes; then
8502 POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
8507 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
8508 SQL_LFLAGS=$POSTGRESQL_LFLAGS
8509 SQL_BINDIR=$POSTGRESQL_BINDIR
8510 cat >>confdefs.h <<\_ACEOF
8511 #define HAVE_POSTGRESQL 1
8514 echo "$as_me:$LINENO: result: yes" >&5
8515 echo "${ECHO_T}yes" >&6
8517 support_postgresql=yes
8521 echo "$as_me:$LINENO: result: no" >&5
8522 echo "${ECHO_T}no" >&6
8527 echo "$as_me:$LINENO: result: no" >&5
8528 echo "${ECHO_T}no" >&6
8539 echo "$as_me:$LINENO: checking for MySQL support" >&5
8540 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
8542 # Check whether --with-mysql or --without-mysql was given.
8543 if test "${with_mysql+set}" = set; then
8544 withval="$with_mysql"
8546 if test "$withval" != "no"; then
8547 if test "$withval" = "yes"; then
8548 if test -f /usr/local/mysql/include/mysql/mysql.h; then
8549 MYSQL_INCDIR=/usr/local/mysql/include/mysql
8550 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
8551 MYSQL_BINDIR=/usr/local/mysql/bin
8552 elif test -f /usr/include/mysql/mysql.h; then
8553 MYSQL_INCDIR=/usr/include/mysql
8554 MYSQL_LIBDIR=/usr/lib/mysql
8555 MYSQL_BINDIR=/usr/bin
8556 elif test -f /usr/include/mysql.h; then
8557 MYSQL_INCDIR=/usr/include
8558 MYSQL_LIBDIR=/usr/lib
8559 MYSQL_BINDIR=/usr/bin
8560 elif test -f /usr/local/include/mysql/mysql.h; then
8561 MYSQL_INCDIR=/usr/local/include/mysql
8562 MYSQL_LIBDIR=/usr/local/lib/mysql
8563 MYSQL_BINDIR=/usr/local/bin
8564 elif test -f /usr/local/include/mysql.h; then
8565 MYSQL_INCDIR=/usr/local/include
8566 MYSQL_LIBDIR=/usr/local/lib
8567 MYSQL_BINDIR=/usr/local/bin
8569 echo "$as_me:$LINENO: result: no" >&5
8570 echo "${ECHO_T}no" >&6
8571 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
8572 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
8573 { (exit 1); exit 1; }; }
8576 if test -f $withval/include/mysql/mysql.h; then
8577 MYSQL_INCDIR=$withval/include/mysql
8578 MYSQL_LIBDIR=$withval/lib/mysql
8579 MYSQL_BINDIR=$withval/bin
8580 elif test -f $withval/include/mysql.h; then
8581 MYSQL_INCDIR=$withval/include
8582 MYSQL_LIBDIR=$withval/lib
8583 MYSQL_BINDIR=$withval/bin
8585 echo "$as_me:$LINENO: result: no" >&5
8586 echo "${ECHO_T}no" >&6
8587 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
8588 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
8589 { (exit 1); exit 1; }; }
8592 SQL_INCLUDE=-I$MYSQL_INCDIR
8593 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
8594 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
8595 cat >>confdefs.h <<\_ACEOF
8596 #define HAVE_THREAD_SAFE_MYSQL 1
8600 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
8602 SQL_BINDIR=$MYSQL_BINDIR
8604 cat >>confdefs.h <<\_ACEOF
8605 #define HAVE_MYSQL 1
8608 echo "$as_me:$LINENO: result: yes" >&5
8609 echo "${ECHO_T}yes" >&6
8616 echo "$as_me:$LINENO: result: no" >&5
8617 echo "${ECHO_T}no" >&6
8624 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
8625 if test "${with_embedded_mysql+set}" = set; then
8626 withval="$with_embedded_mysql"
8628 if test "$withval" != "no"; then
8629 if test "$withval" = "yes"; then
8630 if test -f /usr/local/mysql/include/mysql/mysql.h; then
8631 MYSQL_INCDIR=/usr/local/mysql/include/mysql
8632 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
8633 MYSQL_BINDIR=/usr/local/mysql/bin
8634 elif test -f /usr/include/mysql/mysql.h; then
8635 MYSQL_INCDIR=/usr/include/mysql
8636 MYSQL_LIBDIR=/usr/lib/mysql
8637 MYSQL_BINDIR=/usr/bin
8638 elif test -f /usr/include/mysql.h; then
8639 MYSQL_INCDIR=/usr/include
8640 MYSQL_LIBDIR=/usr/lib
8641 MYSQL_BINDIR=/usr/bin
8642 elif test -f /usr/local/include/mysql/mysql.h; then
8643 MYSQL_INCDIR=/usr/local/include/mysql
8644 MYSQL_LIBDIR=/usr/local/lib/mysql
8645 MYSQL_BINDIR=/usr/local/bin
8646 elif test -f /usr/local/include/mysql.h; then
8647 MYSQL_INCDIR=/usr/local/include
8648 MYSQL_LIBDIR=/usr/local/lib
8649 MYSQL_BINDIR=/usr/local/bin
8651 echo "$as_me:$LINENO: result: no" >&5
8652 echo "${ECHO_T}no" >&6
8653 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
8654 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
8655 { (exit 1); exit 1; }; }
8658 if test -f $withval/include/mysql/mysql.h; then
8659 MYSQL_INCDIR=$withval/include/mysql
8660 MYSQL_LIBDIR=$withval/lib/mysql
8661 MYSQL_BINDIR=$withval/bin
8662 elif test -f $withval/include/mysql.h; then
8663 MYSQL_INCDIR=$withval/include
8664 MYSQL_LIBDIR=$withval/lib
8665 MYSQL_BINDIR=$withval/bin
8667 echo "$as_me:$LINENO: result: no" >&5
8668 echo "${ECHO_T}no" >&6
8669 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
8670 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
8671 { (exit 1); exit 1; }; }
8674 SQL_INCLUDE=-I$MYSQL_INCDIR
8675 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
8676 SQL_BINDIR=$MYSQL_BINDIR
8678 cat >>confdefs.h <<\_ACEOF
8679 #define HAVE_MYSQL 1
8682 cat >>confdefs.h <<\_ACEOF
8683 #define HAVE_EMBEDDED_MYSQL 1
8686 echo "$as_me:$LINENO: result: yes" >&5
8687 echo "${ECHO_T}yes" >&6
8694 echo "$as_me:$LINENO: result: no" >&5
8695 echo "${ECHO_T}no" >&6
8710 echo "$as_me:$LINENO: checking for SQLite3 support" >&5
8711 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6
8713 # Check whether --with-sqlite3 or --without-sqlite3 was given.
8714 if test "${with_sqlite3+set}" = set; then
8715 withval="$with_sqlite3"
8717 if test "$withval" != "no"; then
8718 if test "$withval" = "yes"; then
8719 if test -f /usr/local/include/sqlite3.h; then
8720 SQLITE_INCDIR=/usr/local/include
8721 SQLITE_LIBDIR=/usr/local/lib
8722 SQLITE_BINDIR=/usr/local/bin
8723 elif test -f /usr/include/sqlite3.h; then
8724 SQLITE_INCDIR=/usr/include
8725 SQLITE_LIBDIR=/usr/lib
8726 SQLITE_BINDIR=/usr/bin
8727 elif test -f $prefix/include/sqlite3.h; then
8728 SQLITE_INCDIR=$prefix/include
8729 SQLITE_LIBDIR=$prefix/lib
8730 SQLITE_BINDIR=$prefix/bin
8732 echo "$as_me:$LINENO: result: no" >&5
8733 echo "${ECHO_T}no" >&6
8734 { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
8735 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
8736 { (exit 1); exit 1; }; }
8739 if test -f $withval/sqlite3.h; then
8740 SQLITE_INCDIR=$withval
8741 SQLITE_LIBDIR=$withval
8742 SQLITE_BINDIR=$withval
8743 elif test -f $withval/include/sqlite3.h; then
8744 SQLITE_INCDIR=$withval/include
8745 SQLITE_LIBDIR=$withval/lib
8746 SQLITE_BINDIR=$withval/bin
8748 echo "$as_me:$LINENO: result: no" >&5
8749 echo "${ECHO_T}no" >&6
8750 { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
8751 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
8752 { (exit 1); exit 1; }; }
8755 SQL_INCLUDE=-I$SQLITE_INCDIR
8756 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
8757 SQL_BINDIR=$SQLITE_BINDIR
8759 cat >>confdefs.h <<\_ACEOF
8760 #define HAVE_SQLITE3 1
8763 echo "$as_me:$LINENO: result: yes" >&5
8764 echo "${ECHO_T}yes" >&6
8771 echo "$as_me:$LINENO: result: no" >&5
8772 echo "${ECHO_T}no" >&6
8777 echo "$as_me:$LINENO: result: no" >&5
8778 echo "${ECHO_T}no" >&6
8789 echo "$as_me:$LINENO: checking for SQLite support" >&5
8790 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
8792 # Check whether --with-sqlite or --without-sqlite was given.
8793 if test "${with_sqlite+set}" = set; then
8794 withval="$with_sqlite"
8796 if test "$withval" != "no"; then
8797 if test "$withval" = "yes"; then
8798 if test -f /usr/local/include/sqlite.h; then
8799 SQLITE_INCDIR=/usr/local/include
8800 SQLITE_LIBDIR=/usr/local/lib
8801 SQLITE_BINDIR=/usr/local/bin
8802 elif test -f /usr/include/sqlite.h; then
8803 SQLITE_INCDIR=/usr/include
8804 SQLITE_LIBDIR=/usr/lib
8805 SQLITE_BINDIR=/usr/bin
8806 elif test -f $prefix/include/sqlite.h; then
8807 SQLITE_INCDIR=$prefix/include
8808 SQLITE_LIBDIR=$prefix/lib
8809 SQLITE_BINDIR=$prefix/bin
8811 echo "$as_me:$LINENO: result: no" >&5
8812 echo "${ECHO_T}no" >&6
8813 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
8814 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
8815 { (exit 1); exit 1; }; }
8818 if test -f $withval/sqlite.h; then
8819 SQLITE_INCDIR=$withval
8820 SQLITE_LIBDIR=$withval
8821 SQLITE_BINDIR=$withval
8822 elif test -f $withval/include/sqlite.h; then
8823 SQLITE_INCDIR=$withval/include
8824 SQLITE_LIBDIR=$withval/lib
8825 SQLITE_BINDIR=$withval/bin
8827 echo "$as_me:$LINENO: result: no" >&5
8828 echo "${ECHO_T}no" >&6
8829 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
8830 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
8831 { (exit 1); exit 1; }; }
8834 SQL_INCLUDE=-I$SQLITE_INCDIR
8835 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
8836 SQL_BINDIR=$SQLITE_BINDIR
8838 cat >>confdefs.h <<\_ACEOF
8839 #define HAVE_SQLITE 1
8842 echo "$as_me:$LINENO: result: yes" >&5
8843 echo "${ECHO_T}yes" >&6
8850 echo "$as_me:$LINENO: result: no" >&5
8851 echo "${ECHO_T}no" >&6
8856 echo "$as_me:$LINENO: result: no" >&5
8857 echo "${ECHO_T}no" >&6
8869 cat >>confdefs.h <<\_ACEOF
8870 #define PROTOTYPES 1
8874 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
8875 if test -z "$CCOPTS"; then
8876 CCOPTS='-g -O2 -Wall'
8884 largefile_support="no"
8886 # Check whether --enable-largefile or --disable-largefile was given.
8887 if test "${enable_largefile+set}" = set; then
8888 enableval="$enable_largefile"
8891 if test "$enable_largefile" != no; then
8892 if test -n "$ac_tool_prefix"; then
8893 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
8894 set dummy ${ac_tool_prefix}getconf; ac_word=$2
8895 echo "$as_me:$LINENO: checking for $ac_word" >&5
8896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8897 if test "${ac_cv_prog_GETCONF+set}" = set; then
8898 echo $ECHO_N "(cached) $ECHO_C" >&6
8900 if test -n "$GETCONF"; then
8901 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
8903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8907 test -z "$as_dir" && as_dir=.
8908 for ac_exec_ext in '' $ac_executable_extensions; do
8909 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8910 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
8911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8919 GETCONF=$ac_cv_prog_GETCONF
8920 if test -n "$GETCONF"; then
8921 echo "$as_me:$LINENO: result: $GETCONF" >&5
8922 echo "${ECHO_T}$GETCONF" >&6
8924 echo "$as_me:$LINENO: result: no" >&5
8925 echo "${ECHO_T}no" >&6
8929 if test -z "$ac_cv_prog_GETCONF"; then
8930 ac_ct_GETCONF=$GETCONF
8931 # Extract the first word of "getconf", so it can be a program name with args.
8932 set dummy getconf; ac_word=$2
8933 echo "$as_me:$LINENO: checking for $ac_word" >&5
8934 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8935 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
8936 echo $ECHO_N "(cached) $ECHO_C" >&6
8938 if test -n "$ac_ct_GETCONF"; then
8939 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
8941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8945 test -z "$as_dir" && as_dir=.
8946 for ac_exec_ext in '' $ac_executable_extensions; do
8947 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8948 ac_cv_prog_ac_ct_GETCONF="getconf"
8949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8957 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
8958 if test -n "$ac_ct_GETCONF"; then
8959 echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
8960 echo "${ECHO_T}$ac_ct_GETCONF" >&6
8962 echo "$as_me:$LINENO: result: no" >&5
8963 echo "${ECHO_T}no" >&6
8966 GETCONF=$ac_ct_GETCONF
8968 GETCONF="$ac_cv_prog_GETCONF"
8971 echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
8972 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
8973 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
8974 echo $ECHO_N "(cached) $ECHO_C" >&6
8976 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
8977 ac_cv_sys_largefile_CFLAGS=no
8979 # IRIX 6.2 and later require cc -n32.
8980 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
8981 if test "$GCC" != yes; then
8982 ac_cv_sys_largefile_CFLAGS=-n32
8985 CC="$CC $ac_cv_sys_largefile_CFLAGS"
8986 cat >conftest.$ac_ext <<_ACEOF
8989 cat confdefs.h >>conftest.$ac_ext
8990 cat >>conftest.$ac_ext <<_ACEOF
8991 /* end confdefs.h. */
9001 rm -f conftest.$ac_objext conftest$ac_exeext
9002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9003 (eval $ac_link) 2>conftest.er1
9005 grep -v '^ *+' conftest.er1 >conftest.err
9007 cat conftest.err >&5
9008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9009 (exit $ac_status); } &&
9010 { ac_try='test -z "$ac_c_werror_flag"
9011 || test ! -s conftest.err'
9012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9016 (exit $ac_status); }; } &&
9017 { ac_try='test -s conftest$ac_exeext'
9018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9022 (exit $ac_status); }; }; then
9025 echo "$as_me: failed program was:" >&5
9026 sed 's/^/| /' conftest.$ac_ext >&5
9028 ac_cv_sys_largefile_CFLAGS=no
9030 rm -f conftest.err conftest.$ac_objext \
9031 conftest$ac_exeext conftest.$ac_ext
9036 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
9037 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
9038 echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
9039 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
9040 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
9041 echo $ECHO_N "(cached) $ECHO_C" >&6
9043 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
9044 ac_cv_sys_largefile_LDFLAGS=no
9048 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
9049 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
9050 echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
9051 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
9052 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
9053 echo $ECHO_N "(cached) $ECHO_C" >&6
9055 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
9056 ac_cv_sys_largefile_LIBS=no
9060 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
9061 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
9063 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9066 -D_FILE_OFFSET_BITS=*) ;;
9067 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
9068 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
9074 '') CPPFLAGS="$ac_flag" ;;
9075 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
9083 '') CFLAGS="$ac_flag" ;;
9084 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
9089 case "$ac_cv_sys_largefile_LDFLAGS" in
9093 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
9094 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
9097 case "$ac_cv_sys_largefile_LIBS" in
9101 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
9102 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
9105 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
9106 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
9107 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
9108 echo $ECHO_N "(cached) $ECHO_C" >&6
9110 ac_cv_sys_file_offset_bits=no
9111 ac_cv_sys_file_offset_bits=64
9112 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9114 -D_FILE_OFFSET_BITS)
9115 ac_cv_sys_file_offset_bits=1 ;;
9116 -D_FILE_OFFSET_BITS=*)
9117 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9122 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
9123 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
9124 if test "$ac_cv_sys_file_offset_bits" != no; then
9126 cat >>confdefs.h <<_ACEOF
9127 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9131 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
9132 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
9133 if test "${ac_cv_sys_largefile_source+set}" = set; then
9134 echo $ECHO_N "(cached) $ECHO_C" >&6
9136 ac_cv_sys_largefile_source=no
9137 ac_cv_sys_largefile_source=1
9138 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9140 -D_LARGEFILE_SOURCE)
9141 ac_cv_sys_largefile_source=1 ;;
9142 -D_LARGEFILE_SOURCE=*)
9143 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9148 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
9149 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
9150 if test "$ac_cv_sys_largefile_source" != no; then
9152 cat >>confdefs.h <<_ACEOF
9153 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9157 echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
9158 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
9159 if test "${ac_cv_sys_large_files+set}" = set; then
9160 echo $ECHO_N "(cached) $ECHO_C" >&6
9162 ac_cv_sys_large_files=no
9163 ac_cv_sys_large_files=1
9164 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9167 ac_cv_sys_large_files=1 ;;
9169 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9174 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
9175 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
9176 if test "$ac_cv_sys_large_files" != no; then
9178 cat >>confdefs.h <<_ACEOF
9179 #define _LARGE_FILES $ac_cv_sys_large_files
9187 echo "$as_me:$LINENO: checking for X" >&5
9188 echo $ECHO_N "checking for X... $ECHO_C" >&6
9191 # Check whether --with-x or --without-x was given.
9192 if test "${with_x+set}" = set; then
9196 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9197 if test "x$with_x" = xno; then
9198 # The user explicitly disabled X.
9201 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
9202 # Both variables are already set.
9205 if test "${ac_cv_have_x+set}" = set; then
9206 echo $ECHO_N "(cached) $ECHO_C" >&6
9208 # One or both of the vars are not set, and there is no cached value.
9209 ac_x_includes=no ac_x_libraries=no
9211 if mkdir conftest.dir; then
9213 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
9214 cat >Imakefile <<'_ACEOF'
9216 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9218 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9219 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9220 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9221 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9222 for ac_extension in a so sl; do
9223 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
9224 test -f $ac_im_libdir/libX11.$ac_extension; then
9225 ac_im_usrlibdir=$ac_im_libdir; break
9228 # Screen out bogus values from the imake configuration. They are
9229 # bogus both because they are the default anyway, and because
9230 # using them would break gcc on systems where it needs fixed includes.
9231 case $ac_im_incroot in
9233 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9235 case $ac_im_usrlibdir in
9237 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9244 # Standard set of common directories for X headers.
9245 # Check X11 before X11Rn because it is often a symlink to the current release.
9257 /usr/local/X11/include
9258 /usr/local/X11R6/include
9259 /usr/local/X11R5/include
9260 /usr/local/X11R4/include
9262 /usr/local/include/X11
9263 /usr/local/include/X11R6
9264 /usr/local/include/X11R5
9265 /usr/local/include/X11R4
9269 /usr/XFree86/include/X11
9273 /usr/unsupported/include
9275 /usr/local/x11r5/include
9276 /usr/lpp/Xamples/include
9278 /usr/openwin/include
9279 /usr/openwin/share/include'
9281 if test "$ac_x_includes" = no; then
9282 # Guess where to find include files, by looking for Intrinsic.h.
9283 # First, try using that file with no special directory specified.
9284 cat >conftest.$ac_ext <<_ACEOF
9287 cat confdefs.h >>conftest.$ac_ext
9288 cat >>conftest.$ac_ext <<_ACEOF
9289 /* end confdefs.h. */
9290 #include <X11/Intrinsic.h>
9292 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9293 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9295 grep -v '^ *+' conftest.er1 >conftest.err
9297 cat conftest.err >&5
9298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9299 (exit $ac_status); } >/dev/null; then
9300 if test -s conftest.err; then
9301 ac_cpp_err=$ac_c_preproc_warn_flag
9302 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9309 if test -z "$ac_cpp_err"; then
9310 # We can compile using X headers with no special include directory.
9313 echo "$as_me: failed program was:" >&5
9314 sed 's/^/| /' conftest.$ac_ext >&5
9316 for ac_dir in $ac_x_header_dirs; do
9317 if test -r "$ac_dir/X11/Intrinsic.h"; then
9318 ac_x_includes=$ac_dir
9323 rm -f conftest.err conftest.$ac_ext
9324 fi # $ac_x_includes = no
9326 if test "$ac_x_libraries" = no; then
9327 # Check for the libraries.
9328 # See if we find them without any special options.
9329 # Don't add to $LIBS permanently.
9332 cat >conftest.$ac_ext <<_ACEOF
9335 cat confdefs.h >>conftest.$ac_ext
9336 cat >>conftest.$ac_ext <<_ACEOF
9337 /* end confdefs.h. */
9338 #include <X11/Intrinsic.h>
9347 rm -f conftest.$ac_objext conftest$ac_exeext
9348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9349 (eval $ac_link) 2>conftest.er1
9351 grep -v '^ *+' conftest.er1 >conftest.err
9353 cat conftest.err >&5
9354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9355 (exit $ac_status); } &&
9356 { ac_try='test -z "$ac_c_werror_flag"
9357 || test ! -s conftest.err'
9358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9362 (exit $ac_status); }; } &&
9363 { ac_try='test -s conftest$ac_exeext'
9364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9368 (exit $ac_status); }; }; then
9370 # We can link X programs with no special library path.
9373 echo "$as_me: failed program was:" >&5
9374 sed 's/^/| /' conftest.$ac_ext >&5
9377 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9379 # Don't even attempt the hair of trying to link an X program!
9380 for ac_extension in a so sl; do
9381 if test -r $ac_dir/libXt.$ac_extension; then
9382 ac_x_libraries=$ac_dir
9388 rm -f conftest.err conftest.$ac_objext \
9389 conftest$ac_exeext conftest.$ac_ext
9390 fi # $ac_x_libraries = no
9392 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
9393 # Didn't find X anywhere. Cache the known absence of X.
9394 ac_cv_have_x="have_x=no"
9396 # Record where we found X for the cache.
9397 ac_cv_have_x="have_x=yes \
9398 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9403 eval "$ac_cv_have_x"
9406 if test "$have_x" != yes; then
9407 echo "$as_me:$LINENO: result: $have_x" >&5
9408 echo "${ECHO_T}$have_x" >&6
9411 # If each of the values was on the command line, it overrides each guess.
9412 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9413 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9414 # Update the cache value to reflect the command line values.
9415 ac_cv_have_x="have_x=yes \
9416 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9417 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9418 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
9421 if test "$no_x" = yes; then
9422 # Not all programs may use this symbol, but it does not hurt to define it.
9424 cat >>confdefs.h <<\_ACEOF
9425 #define X_DISPLAY_MISSING 1
9428 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
9430 if test -n "$x_includes"; then
9431 X_CFLAGS="$X_CFLAGS -I$x_includes"
9434 # It would also be nice to do this for all -L options, not just this one.
9435 if test -n "$x_libraries"; then
9436 X_LIBS="$X_LIBS -L$x_libraries"
9437 # For Solaris; some versions of Sun CC require a space after -R and
9438 # others require no space. Words are not sufficient . . . .
9439 case `(uname -sr) 2>/dev/null` in
9441 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
9442 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
9443 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
9444 cat >conftest.$ac_ext <<_ACEOF
9447 cat confdefs.h >>conftest.$ac_ext
9448 cat >>conftest.$ac_ext <<_ACEOF
9449 /* end confdefs.h. */
9459 rm -f conftest.$ac_objext conftest$ac_exeext
9460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9461 (eval $ac_link) 2>conftest.er1
9463 grep -v '^ *+' conftest.er1 >conftest.err
9465 cat conftest.err >&5
9466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9467 (exit $ac_status); } &&
9468 { ac_try='test -z "$ac_c_werror_flag"
9469 || test ! -s conftest.err'
9470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9474 (exit $ac_status); }; } &&
9475 { ac_try='test -s conftest$ac_exeext'
9476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9480 (exit $ac_status); }; }; then
9483 echo "$as_me: failed program was:" >&5
9484 sed 's/^/| /' conftest.$ac_ext >&5
9488 rm -f conftest.err conftest.$ac_objext \
9489 conftest$ac_exeext conftest.$ac_ext
9490 if test $ac_R_nospace = yes; then
9491 echo "$as_me:$LINENO: result: no" >&5
9492 echo "${ECHO_T}no" >&6
9493 X_LIBS="$X_LIBS -R$x_libraries"
9495 LIBS="$ac_xsave_LIBS -R $x_libraries"
9496 cat >conftest.$ac_ext <<_ACEOF
9499 cat confdefs.h >>conftest.$ac_ext
9500 cat >>conftest.$ac_ext <<_ACEOF
9501 /* end confdefs.h. */
9511 rm -f conftest.$ac_objext conftest$ac_exeext
9512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9513 (eval $ac_link) 2>conftest.er1
9515 grep -v '^ *+' conftest.er1 >conftest.err
9517 cat conftest.err >&5
9518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9519 (exit $ac_status); } &&
9520 { ac_try='test -z "$ac_c_werror_flag"
9521 || test ! -s conftest.err'
9522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9526 (exit $ac_status); }; } &&
9527 { ac_try='test -s conftest$ac_exeext'
9528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9532 (exit $ac_status); }; }; then
9535 echo "$as_me: failed program was:" >&5
9536 sed 's/^/| /' conftest.$ac_ext >&5
9540 rm -f conftest.err conftest.$ac_objext \
9541 conftest$ac_exeext conftest.$ac_ext
9542 if test $ac_R_space = yes; then
9543 echo "$as_me:$LINENO: result: yes" >&5
9544 echo "${ECHO_T}yes" >&6
9545 X_LIBS="$X_LIBS -R $x_libraries"
9547 echo "$as_me:$LINENO: result: neither works" >&5
9548 echo "${ECHO_T}neither works" >&6
9555 # Check for system-dependent libraries X programs must link with.
9556 # Do this before checking for the system-independent R6 libraries
9557 # (-lICE), since we may need -lsocket or whatever for X linking.
9559 if test "$ISC" = yes; then
9560 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
9562 # Martyn Johnson says this is needed for Ultrix, if the X
9563 # libraries were built with DECnet support. And Karl Berry says
9564 # the Alpha needs dnet_stub (dnet does not exist).
9565 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
9566 cat >conftest.$ac_ext <<_ACEOF
9569 cat confdefs.h >>conftest.$ac_ext
9570 cat >>conftest.$ac_ext <<_ACEOF
9571 /* end confdefs.h. */
9573 /* Override any gcc2 internal prototype to avoid an error. */
9577 /* We use char because int might match the return type of a gcc2
9578 builtin and then its argument prototype would still apply. */
9579 char XOpenDisplay ();
9588 rm -f conftest.$ac_objext conftest$ac_exeext
9589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9590 (eval $ac_link) 2>conftest.er1
9592 grep -v '^ *+' conftest.er1 >conftest.err
9594 cat conftest.err >&5
9595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9596 (exit $ac_status); } &&
9597 { ac_try='test -z "$ac_c_werror_flag"
9598 || test ! -s conftest.err'
9599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9603 (exit $ac_status); }; } &&
9604 { ac_try='test -s conftest$ac_exeext'
9605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9609 (exit $ac_status); }; }; then
9612 echo "$as_me: failed program was:" >&5
9613 sed 's/^/| /' conftest.$ac_ext >&5
9615 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9616 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9617 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9618 echo $ECHO_N "(cached) $ECHO_C" >&6
9620 ac_check_lib_save_LIBS=$LIBS
9622 cat >conftest.$ac_ext <<_ACEOF
9625 cat confdefs.h >>conftest.$ac_ext
9626 cat >>conftest.$ac_ext <<_ACEOF
9627 /* end confdefs.h. */
9629 /* Override any gcc2 internal prototype to avoid an error. */
9633 /* We use char because int might match the return type of a gcc2
9634 builtin and then its argument prototype would still apply. */
9644 rm -f conftest.$ac_objext conftest$ac_exeext
9645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9646 (eval $ac_link) 2>conftest.er1
9648 grep -v '^ *+' conftest.er1 >conftest.err
9650 cat conftest.err >&5
9651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9652 (exit $ac_status); } &&
9653 { ac_try='test -z "$ac_c_werror_flag"
9654 || test ! -s conftest.err'
9655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9659 (exit $ac_status); }; } &&
9660 { ac_try='test -s conftest$ac_exeext'
9661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9665 (exit $ac_status); }; }; then
9666 ac_cv_lib_dnet_dnet_ntoa=yes
9668 echo "$as_me: failed program was:" >&5
9669 sed 's/^/| /' conftest.$ac_ext >&5
9671 ac_cv_lib_dnet_dnet_ntoa=no
9673 rm -f conftest.err conftest.$ac_objext \
9674 conftest$ac_exeext conftest.$ac_ext
9675 LIBS=$ac_check_lib_save_LIBS
9677 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9678 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9679 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9680 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
9683 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
9684 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
9685 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
9686 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
9687 echo $ECHO_N "(cached) $ECHO_C" >&6
9689 ac_check_lib_save_LIBS=$LIBS
9690 LIBS="-ldnet_stub $LIBS"
9691 cat >conftest.$ac_ext <<_ACEOF
9694 cat confdefs.h >>conftest.$ac_ext
9695 cat >>conftest.$ac_ext <<_ACEOF
9696 /* end confdefs.h. */
9698 /* Override any gcc2 internal prototype to avoid an error. */
9702 /* We use char because int might match the return type of a gcc2
9703 builtin and then its argument prototype would still apply. */
9713 rm -f conftest.$ac_objext conftest$ac_exeext
9714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9715 (eval $ac_link) 2>conftest.er1
9717 grep -v '^ *+' conftest.er1 >conftest.err
9719 cat conftest.err >&5
9720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721 (exit $ac_status); } &&
9722 { ac_try='test -z "$ac_c_werror_flag"
9723 || test ! -s conftest.err'
9724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9728 (exit $ac_status); }; } &&
9729 { ac_try='test -s conftest$ac_exeext'
9730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734 (exit $ac_status); }; }; then
9735 ac_cv_lib_dnet_stub_dnet_ntoa=yes
9737 echo "$as_me: failed program was:" >&5
9738 sed 's/^/| /' conftest.$ac_ext >&5
9740 ac_cv_lib_dnet_stub_dnet_ntoa=no
9742 rm -f conftest.err conftest.$ac_objext \
9743 conftest$ac_exeext conftest.$ac_ext
9744 LIBS=$ac_check_lib_save_LIBS
9746 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
9747 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
9748 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
9749 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
9754 rm -f conftest.err conftest.$ac_objext \
9755 conftest$ac_exeext conftest.$ac_ext
9756 LIBS="$ac_xsave_LIBS"
9758 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
9759 # to get the SysV transport functions.
9760 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
9762 # The nsl library prevents programs from opening the X display
9763 # on Irix 5.2, according to T.E. Dickey.
9764 # The functions gethostbyname, getservbyname, and inet_addr are
9765 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
9766 echo "$as_me:$LINENO: checking for gethostbyname" >&5
9767 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
9768 if test "${ac_cv_func_gethostbyname+set}" = set; then
9769 echo $ECHO_N "(cached) $ECHO_C" >&6
9771 cat >conftest.$ac_ext <<_ACEOF
9774 cat confdefs.h >>conftest.$ac_ext
9775 cat >>conftest.$ac_ext <<_ACEOF
9776 /* end confdefs.h. */
9777 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
9778 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9779 #define gethostbyname innocuous_gethostbyname
9781 /* System header to define __stub macros and hopefully few prototypes,
9782 which can conflict with char gethostbyname (); below.
9783 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9784 <limits.h> exists even on freestanding compilers. */
9787 # include <limits.h>
9789 # include <assert.h>
9792 #undef gethostbyname
9794 /* Override any gcc2 internal prototype to avoid an error. */
9799 /* We use char because int might match the return type of a gcc2
9800 builtin and then its argument prototype would still apply. */
9801 char gethostbyname ();
9802 /* The GNU C library defines this for functions which it implements
9803 to always fail with ENOSYS. Some functions are actually named
9804 something starting with __ and the normal name is an alias. */
9805 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
9808 char (*f) () = gethostbyname;
9817 return f != gethostbyname;
9822 rm -f conftest.$ac_objext conftest$ac_exeext
9823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9824 (eval $ac_link) 2>conftest.er1
9826 grep -v '^ *+' conftest.er1 >conftest.err
9828 cat conftest.err >&5
9829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9830 (exit $ac_status); } &&
9831 { ac_try='test -z "$ac_c_werror_flag"
9832 || test ! -s conftest.err'
9833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9837 (exit $ac_status); }; } &&
9838 { ac_try='test -s conftest$ac_exeext'
9839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843 (exit $ac_status); }; }; then
9844 ac_cv_func_gethostbyname=yes
9846 echo "$as_me: failed program was:" >&5
9847 sed 's/^/| /' conftest.$ac_ext >&5
9849 ac_cv_func_gethostbyname=no
9851 rm -f conftest.err conftest.$ac_objext \
9852 conftest$ac_exeext conftest.$ac_ext
9854 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
9855 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
9857 if test $ac_cv_func_gethostbyname = no; then
9858 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
9859 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
9860 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
9861 echo $ECHO_N "(cached) $ECHO_C" >&6
9863 ac_check_lib_save_LIBS=$LIBS
9865 cat >conftest.$ac_ext <<_ACEOF
9868 cat confdefs.h >>conftest.$ac_ext
9869 cat >>conftest.$ac_ext <<_ACEOF
9870 /* end confdefs.h. */
9872 /* Override any gcc2 internal prototype to avoid an error. */
9876 /* We use char because int might match the return type of a gcc2
9877 builtin and then its argument prototype would still apply. */
9878 char gethostbyname ();
9887 rm -f conftest.$ac_objext conftest$ac_exeext
9888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9889 (eval $ac_link) 2>conftest.er1
9891 grep -v '^ *+' conftest.er1 >conftest.err
9893 cat conftest.err >&5
9894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9895 (exit $ac_status); } &&
9896 { ac_try='test -z "$ac_c_werror_flag"
9897 || test ! -s conftest.err'
9898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9902 (exit $ac_status); }; } &&
9903 { ac_try='test -s conftest$ac_exeext'
9904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9908 (exit $ac_status); }; }; then
9909 ac_cv_lib_nsl_gethostbyname=yes
9911 echo "$as_me: failed program was:" >&5
9912 sed 's/^/| /' conftest.$ac_ext >&5
9914 ac_cv_lib_nsl_gethostbyname=no
9916 rm -f conftest.err conftest.$ac_objext \
9917 conftest$ac_exeext conftest.$ac_ext
9918 LIBS=$ac_check_lib_save_LIBS
9920 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
9921 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
9922 if test $ac_cv_lib_nsl_gethostbyname = yes; then
9923 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
9926 if test $ac_cv_lib_nsl_gethostbyname = no; then
9927 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
9928 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
9929 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
9930 echo $ECHO_N "(cached) $ECHO_C" >&6
9932 ac_check_lib_save_LIBS=$LIBS
9934 cat >conftest.$ac_ext <<_ACEOF
9937 cat confdefs.h >>conftest.$ac_ext
9938 cat >>conftest.$ac_ext <<_ACEOF
9939 /* end confdefs.h. */
9941 /* Override any gcc2 internal prototype to avoid an error. */
9945 /* We use char because int might match the return type of a gcc2
9946 builtin and then its argument prototype would still apply. */
9947 char gethostbyname ();
9956 rm -f conftest.$ac_objext conftest$ac_exeext
9957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9958 (eval $ac_link) 2>conftest.er1
9960 grep -v '^ *+' conftest.er1 >conftest.err
9962 cat conftest.err >&5
9963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964 (exit $ac_status); } &&
9965 { ac_try='test -z "$ac_c_werror_flag"
9966 || test ! -s conftest.err'
9967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971 (exit $ac_status); }; } &&
9972 { ac_try='test -s conftest$ac_exeext'
9973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977 (exit $ac_status); }; }; then
9978 ac_cv_lib_bsd_gethostbyname=yes
9980 echo "$as_me: failed program was:" >&5
9981 sed 's/^/| /' conftest.$ac_ext >&5
9983 ac_cv_lib_bsd_gethostbyname=no
9985 rm -f conftest.err conftest.$ac_objext \
9986 conftest$ac_exeext conftest.$ac_ext
9987 LIBS=$ac_check_lib_save_LIBS
9989 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
9990 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
9991 if test $ac_cv_lib_bsd_gethostbyname = yes; then
9992 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
9998 # lieder@skyler.mavd.honeywell.com says without -lsocket,
9999 # socket/setsockopt and other routines are undefined under SCO ODT
10000 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
10001 # on later versions), says Simon Leinen: it contains gethostby*
10002 # variants that don't use the name server (or something). -lsocket
10003 # must be given before -lnsl if both are needed. We assume that
10004 # if connect needs -lnsl, so does gethostbyname.
10005 echo "$as_me:$LINENO: checking for connect" >&5
10006 echo $ECHO_N "checking for connect... $ECHO_C" >&6
10007 if test "${ac_cv_func_connect+set}" = set; then
10008 echo $ECHO_N "(cached) $ECHO_C" >&6
10010 cat >conftest.$ac_ext <<_ACEOF
10013 cat confdefs.h >>conftest.$ac_ext
10014 cat >>conftest.$ac_ext <<_ACEOF
10015 /* end confdefs.h. */
10016 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
10017 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10018 #define connect innocuous_connect
10020 /* System header to define __stub macros and hopefully few prototypes,
10021 which can conflict with char connect (); below.
10022 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10023 <limits.h> exists even on freestanding compilers. */
10026 # include <limits.h>
10028 # include <assert.h>
10033 /* 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. */
10041 /* The GNU C library defines this for functions which it implements
10042 to always fail with ENOSYS. Some functions are actually named
10043 something starting with __ and the normal name is an alias. */
10044 #if defined (__stub_connect) || defined (__stub___connect)
10047 char (*f) () = connect;
10056 return f != connect;
10061 rm -f conftest.$ac_objext conftest$ac_exeext
10062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10063 (eval $ac_link) 2>conftest.er1
10065 grep -v '^ *+' conftest.er1 >conftest.err
10067 cat conftest.err >&5
10068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10069 (exit $ac_status); } &&
10070 { ac_try='test -z "$ac_c_werror_flag"
10071 || test ! -s conftest.err'
10072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10073 (eval $ac_try) 2>&5
10075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076 (exit $ac_status); }; } &&
10077 { ac_try='test -s conftest$ac_exeext'
10078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10079 (eval $ac_try) 2>&5
10081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10082 (exit $ac_status); }; }; then
10083 ac_cv_func_connect=yes
10085 echo "$as_me: failed program was:" >&5
10086 sed 's/^/| /' conftest.$ac_ext >&5
10088 ac_cv_func_connect=no
10090 rm -f conftest.err conftest.$ac_objext \
10091 conftest$ac_exeext conftest.$ac_ext
10093 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
10094 echo "${ECHO_T}$ac_cv_func_connect" >&6
10096 if test $ac_cv_func_connect = no; then
10097 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
10098 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
10099 if test "${ac_cv_lib_socket_connect+set}" = set; then
10100 echo $ECHO_N "(cached) $ECHO_C" >&6
10102 ac_check_lib_save_LIBS=$LIBS
10103 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
10104 cat >conftest.$ac_ext <<_ACEOF
10107 cat confdefs.h >>conftest.$ac_ext
10108 cat >>conftest.$ac_ext <<_ACEOF
10109 /* end confdefs.h. */
10111 /* Override any gcc2 internal prototype to avoid an error. */
10115 /* We use char because int might match the return type of a gcc2
10116 builtin and then its argument prototype would still apply. */
10126 rm -f conftest.$ac_objext conftest$ac_exeext
10127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10128 (eval $ac_link) 2>conftest.er1
10130 grep -v '^ *+' conftest.er1 >conftest.err
10132 cat conftest.err >&5
10133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10134 (exit $ac_status); } &&
10135 { ac_try='test -z "$ac_c_werror_flag"
10136 || test ! -s conftest.err'
10137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10138 (eval $ac_try) 2>&5
10140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10141 (exit $ac_status); }; } &&
10142 { ac_try='test -s conftest$ac_exeext'
10143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10144 (eval $ac_try) 2>&5
10146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147 (exit $ac_status); }; }; then
10148 ac_cv_lib_socket_connect=yes
10150 echo "$as_me: failed program was:" >&5
10151 sed 's/^/| /' conftest.$ac_ext >&5
10153 ac_cv_lib_socket_connect=no
10155 rm -f conftest.err conftest.$ac_objext \
10156 conftest$ac_exeext conftest.$ac_ext
10157 LIBS=$ac_check_lib_save_LIBS
10159 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
10160 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
10161 if test $ac_cv_lib_socket_connect = yes; then
10162 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
10167 # Guillermo Gomez says -lposix is necessary on A/UX.
10168 echo "$as_me:$LINENO: checking for remove" >&5
10169 echo $ECHO_N "checking for remove... $ECHO_C" >&6
10170 if test "${ac_cv_func_remove+set}" = set; then
10171 echo $ECHO_N "(cached) $ECHO_C" >&6
10173 cat >conftest.$ac_ext <<_ACEOF
10176 cat confdefs.h >>conftest.$ac_ext
10177 cat >>conftest.$ac_ext <<_ACEOF
10178 /* end confdefs.h. */
10179 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
10180 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10181 #define remove innocuous_remove
10183 /* System header to define __stub macros and hopefully few prototypes,
10184 which can conflict with char remove (); below.
10185 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10186 <limits.h> exists even on freestanding compilers. */
10189 # include <limits.h>
10191 # include <assert.h>
10196 /* Override any gcc2 internal prototype to avoid an error. */
10201 /* We use char because int might match the return type of a gcc2
10202 builtin and then its argument prototype would still apply. */
10204 /* The GNU C library defines this for functions which it implements
10205 to always fail with ENOSYS. Some functions are actually named
10206 something starting with __ and the normal name is an alias. */
10207 #if defined (__stub_remove) || defined (__stub___remove)
10210 char (*f) () = remove;
10219 return f != remove;
10224 rm -f conftest.$ac_objext conftest$ac_exeext
10225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10226 (eval $ac_link) 2>conftest.er1
10228 grep -v '^ *+' conftest.er1 >conftest.err
10230 cat conftest.err >&5
10231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10232 (exit $ac_status); } &&
10233 { ac_try='test -z "$ac_c_werror_flag"
10234 || test ! -s conftest.err'
10235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10236 (eval $ac_try) 2>&5
10238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10239 (exit $ac_status); }; } &&
10240 { ac_try='test -s conftest$ac_exeext'
10241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10242 (eval $ac_try) 2>&5
10244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10245 (exit $ac_status); }; }; then
10246 ac_cv_func_remove=yes
10248 echo "$as_me: failed program was:" >&5
10249 sed 's/^/| /' conftest.$ac_ext >&5
10251 ac_cv_func_remove=no
10253 rm -f conftest.err conftest.$ac_objext \
10254 conftest$ac_exeext conftest.$ac_ext
10256 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
10257 echo "${ECHO_T}$ac_cv_func_remove" >&6
10259 if test $ac_cv_func_remove = no; then
10260 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
10261 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
10262 if test "${ac_cv_lib_posix_remove+set}" = set; then
10263 echo $ECHO_N "(cached) $ECHO_C" >&6
10265 ac_check_lib_save_LIBS=$LIBS
10266 LIBS="-lposix $LIBS"
10267 cat >conftest.$ac_ext <<_ACEOF
10270 cat confdefs.h >>conftest.$ac_ext
10271 cat >>conftest.$ac_ext <<_ACEOF
10272 /* end confdefs.h. */
10274 /* Override any gcc2 internal prototype to avoid an error. */
10278 /* We use char because int might match the return type of a gcc2
10279 builtin and then its argument prototype would still apply. */
10289 rm -f conftest.$ac_objext conftest$ac_exeext
10290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10291 (eval $ac_link) 2>conftest.er1
10293 grep -v '^ *+' conftest.er1 >conftest.err
10295 cat conftest.err >&5
10296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10297 (exit $ac_status); } &&
10298 { ac_try='test -z "$ac_c_werror_flag"
10299 || test ! -s conftest.err'
10300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10301 (eval $ac_try) 2>&5
10303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304 (exit $ac_status); }; } &&
10305 { ac_try='test -s conftest$ac_exeext'
10306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10307 (eval $ac_try) 2>&5
10309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310 (exit $ac_status); }; }; then
10311 ac_cv_lib_posix_remove=yes
10313 echo "$as_me: failed program was:" >&5
10314 sed 's/^/| /' conftest.$ac_ext >&5
10316 ac_cv_lib_posix_remove=no
10318 rm -f conftest.err conftest.$ac_objext \
10319 conftest$ac_exeext conftest.$ac_ext
10320 LIBS=$ac_check_lib_save_LIBS
10322 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
10323 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
10324 if test $ac_cv_lib_posix_remove = yes; then
10325 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
10330 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
10331 echo "$as_me:$LINENO: checking for shmat" >&5
10332 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
10333 if test "${ac_cv_func_shmat+set}" = set; then
10334 echo $ECHO_N "(cached) $ECHO_C" >&6
10336 cat >conftest.$ac_ext <<_ACEOF
10339 cat confdefs.h >>conftest.$ac_ext
10340 cat >>conftest.$ac_ext <<_ACEOF
10341 /* end confdefs.h. */
10342 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
10343 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10344 #define shmat innocuous_shmat
10346 /* System header to define __stub macros and hopefully few prototypes,
10347 which can conflict with char shmat (); below.
10348 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10349 <limits.h> exists even on freestanding compilers. */
10352 # include <limits.h>
10354 # include <assert.h>
10359 /* Override any gcc2 internal prototype to avoid an error. */
10364 /* We use char because int might match the return type of a gcc2
10365 builtin and then its argument prototype would still apply. */
10367 /* The GNU C library defines this for functions which it implements
10368 to always fail with ENOSYS. Some functions are actually named
10369 something starting with __ and the normal name is an alias. */
10370 #if defined (__stub_shmat) || defined (__stub___shmat)
10373 char (*f) () = shmat;
10387 rm -f conftest.$ac_objext conftest$ac_exeext
10388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10389 (eval $ac_link) 2>conftest.er1
10391 grep -v '^ *+' conftest.er1 >conftest.err
10393 cat conftest.err >&5
10394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10395 (exit $ac_status); } &&
10396 { ac_try='test -z "$ac_c_werror_flag"
10397 || test ! -s conftest.err'
10398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10399 (eval $ac_try) 2>&5
10401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10402 (exit $ac_status); }; } &&
10403 { ac_try='test -s conftest$ac_exeext'
10404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10405 (eval $ac_try) 2>&5
10407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10408 (exit $ac_status); }; }; then
10409 ac_cv_func_shmat=yes
10411 echo "$as_me: failed program was:" >&5
10412 sed 's/^/| /' conftest.$ac_ext >&5
10414 ac_cv_func_shmat=no
10416 rm -f conftest.err conftest.$ac_objext \
10417 conftest$ac_exeext conftest.$ac_ext
10419 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
10420 echo "${ECHO_T}$ac_cv_func_shmat" >&6
10422 if test $ac_cv_func_shmat = no; then
10423 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
10424 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
10425 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
10426 echo $ECHO_N "(cached) $ECHO_C" >&6
10428 ac_check_lib_save_LIBS=$LIBS
10430 cat >conftest.$ac_ext <<_ACEOF
10433 cat confdefs.h >>conftest.$ac_ext
10434 cat >>conftest.$ac_ext <<_ACEOF
10435 /* end confdefs.h. */
10437 /* Override any gcc2 internal prototype to avoid an error. */
10441 /* We use char because int might match the return type of a gcc2
10442 builtin and then its argument prototype would still apply. */
10452 rm -f conftest.$ac_objext conftest$ac_exeext
10453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10454 (eval $ac_link) 2>conftest.er1
10456 grep -v '^ *+' conftest.er1 >conftest.err
10458 cat conftest.err >&5
10459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10460 (exit $ac_status); } &&
10461 { ac_try='test -z "$ac_c_werror_flag"
10462 || test ! -s conftest.err'
10463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10464 (eval $ac_try) 2>&5
10466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10467 (exit $ac_status); }; } &&
10468 { ac_try='test -s conftest$ac_exeext'
10469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10470 (eval $ac_try) 2>&5
10472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10473 (exit $ac_status); }; }; then
10474 ac_cv_lib_ipc_shmat=yes
10476 echo "$as_me: failed program was:" >&5
10477 sed 's/^/| /' conftest.$ac_ext >&5
10479 ac_cv_lib_ipc_shmat=no
10481 rm -f conftest.err conftest.$ac_objext \
10482 conftest$ac_exeext conftest.$ac_ext
10483 LIBS=$ac_check_lib_save_LIBS
10485 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
10486 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
10487 if test $ac_cv_lib_ipc_shmat = yes; then
10488 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
10494 # Check for libraries that X11R6 Xt/Xaw programs need.
10495 ac_save_LDFLAGS=$LDFLAGS
10496 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
10497 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
10498 # check for ICE first), but we must link in the order -lSM -lICE or
10499 # we get undefined symbols. So assume we have SM if we have ICE.
10500 # These have to be linked with before -lX11, unlike the other
10501 # libraries we check for below, so use a different variable.
10502 # John Interrante, Karl Berry
10503 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
10504 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
10505 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
10506 echo $ECHO_N "(cached) $ECHO_C" >&6
10508 ac_check_lib_save_LIBS=$LIBS
10509 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
10510 cat >conftest.$ac_ext <<_ACEOF
10513 cat confdefs.h >>conftest.$ac_ext
10514 cat >>conftest.$ac_ext <<_ACEOF
10515 /* end confdefs.h. */
10517 /* Override any gcc2 internal prototype to avoid an error. */
10521 /* We use char because int might match the return type of a gcc2
10522 builtin and then its argument prototype would still apply. */
10523 char IceConnectionNumber ();
10527 IceConnectionNumber ();
10532 rm -f conftest.$ac_objext conftest$ac_exeext
10533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10534 (eval $ac_link) 2>conftest.er1
10536 grep -v '^ *+' conftest.er1 >conftest.err
10538 cat conftest.err >&5
10539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540 (exit $ac_status); } &&
10541 { ac_try='test -z "$ac_c_werror_flag"
10542 || test ! -s conftest.err'
10543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10544 (eval $ac_try) 2>&5
10546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10547 (exit $ac_status); }; } &&
10548 { ac_try='test -s conftest$ac_exeext'
10549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10550 (eval $ac_try) 2>&5
10552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10553 (exit $ac_status); }; }; then
10554 ac_cv_lib_ICE_IceConnectionNumber=yes
10556 echo "$as_me: failed program was:" >&5
10557 sed 's/^/| /' conftest.$ac_ext >&5
10559 ac_cv_lib_ICE_IceConnectionNumber=no
10561 rm -f conftest.err conftest.$ac_objext \
10562 conftest$ac_exeext conftest.$ac_ext
10563 LIBS=$ac_check_lib_save_LIBS
10565 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
10566 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
10567 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
10568 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
10571 LDFLAGS=$ac_save_LDFLAGS
10633 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10634 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10635 echo "$as_me:$LINENO: checking for $ac_header" >&5
10636 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10637 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10638 echo $ECHO_N "(cached) $ECHO_C" >&6
10640 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10641 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10643 # Is the header compilable?
10644 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10645 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10646 cat >conftest.$ac_ext <<_ACEOF
10649 cat confdefs.h >>conftest.$ac_ext
10650 cat >>conftest.$ac_ext <<_ACEOF
10651 /* end confdefs.h. */
10652 $ac_includes_default
10653 #include <$ac_header>
10655 rm -f conftest.$ac_objext
10656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10657 (eval $ac_compile) 2>conftest.er1
10659 grep -v '^ *+' conftest.er1 >conftest.err
10661 cat conftest.err >&5
10662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663 (exit $ac_status); } &&
10664 { ac_try='test -z "$ac_c_werror_flag"
10665 || test ! -s conftest.err'
10666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10667 (eval $ac_try) 2>&5
10669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10670 (exit $ac_status); }; } &&
10671 { ac_try='test -s conftest.$ac_objext'
10672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10673 (eval $ac_try) 2>&5
10675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10676 (exit $ac_status); }; }; then
10677 ac_header_compiler=yes
10679 echo "$as_me: failed program was:" >&5
10680 sed 's/^/| /' conftest.$ac_ext >&5
10682 ac_header_compiler=no
10684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10685 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10686 echo "${ECHO_T}$ac_header_compiler" >&6
10688 # Is the header present?
10689 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10690 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10691 cat >conftest.$ac_ext <<_ACEOF
10694 cat confdefs.h >>conftest.$ac_ext
10695 cat >>conftest.$ac_ext <<_ACEOF
10696 /* end confdefs.h. */
10697 #include <$ac_header>
10699 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10700 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10702 grep -v '^ *+' conftest.er1 >conftest.err
10704 cat conftest.err >&5
10705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10706 (exit $ac_status); } >/dev/null; then
10707 if test -s conftest.err; then
10708 ac_cpp_err=$ac_c_preproc_warn_flag
10709 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10716 if test -z "$ac_cpp_err"; then
10717 ac_header_preproc=yes
10719 echo "$as_me: failed program was:" >&5
10720 sed 's/^/| /' conftest.$ac_ext >&5
10722 ac_header_preproc=no
10724 rm -f conftest.err conftest.$ac_ext
10725 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10726 echo "${ECHO_T}$ac_header_preproc" >&6
10728 # So? What about this header?
10729 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10731 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10732 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10733 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10734 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10735 ac_header_preproc=yes
10738 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10739 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10740 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10741 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10742 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10743 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10744 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10745 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10746 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10747 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10748 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10749 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10752 ## ------------------------------------------ ##
10753 ## Report this to the AC_PACKAGE_NAME lists. ##
10754 ## ------------------------------------------ ##
10757 sed "s/^/$as_me: WARNING: /" >&2
10760 echo "$as_me:$LINENO: checking for $ac_header" >&5
10761 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10762 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10763 echo $ECHO_N "(cached) $ECHO_C" >&6
10765 eval "$as_ac_Header=\$ac_header_preproc"
10767 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10768 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10771 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10772 cat >>confdefs.h <<_ACEOF
10773 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10780 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
10781 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
10782 if test "${ac_cv_header_stdc+set}" = set; then
10783 echo $ECHO_N "(cached) $ECHO_C" >&6
10785 cat >conftest.$ac_ext <<_ACEOF
10788 cat confdefs.h >>conftest.$ac_ext
10789 cat >>conftest.$ac_ext <<_ACEOF
10790 /* end confdefs.h. */
10791 #include <stdlib.h>
10792 #include <stdarg.h>
10793 #include <string.h>
10804 rm -f conftest.$ac_objext
10805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10806 (eval $ac_compile) 2>conftest.er1
10808 grep -v '^ *+' conftest.er1 >conftest.err
10810 cat conftest.err >&5
10811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10812 (exit $ac_status); } &&
10813 { ac_try='test -z "$ac_c_werror_flag"
10814 || test ! -s conftest.err'
10815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10816 (eval $ac_try) 2>&5
10818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10819 (exit $ac_status); }; } &&
10820 { ac_try='test -s conftest.$ac_objext'
10821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10822 (eval $ac_try) 2>&5
10824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10825 (exit $ac_status); }; }; then
10826 ac_cv_header_stdc=yes
10828 echo "$as_me: failed program was:" >&5
10829 sed 's/^/| /' conftest.$ac_ext >&5
10831 ac_cv_header_stdc=no
10833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10835 if test $ac_cv_header_stdc = yes; then
10836 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10837 cat >conftest.$ac_ext <<_ACEOF
10840 cat confdefs.h >>conftest.$ac_ext
10841 cat >>conftest.$ac_ext <<_ACEOF
10842 /* end confdefs.h. */
10843 #include <string.h>
10846 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10847 $EGREP "memchr" >/dev/null 2>&1; then
10850 ac_cv_header_stdc=no
10856 if test $ac_cv_header_stdc = yes; then
10857 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10858 cat >conftest.$ac_ext <<_ACEOF
10861 cat confdefs.h >>conftest.$ac_ext
10862 cat >>conftest.$ac_ext <<_ACEOF
10863 /* end confdefs.h. */
10864 #include <stdlib.h>
10867 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10868 $EGREP "free" >/dev/null 2>&1; then
10871 ac_cv_header_stdc=no
10877 if test $ac_cv_header_stdc = yes; then
10878 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10879 if test "$cross_compiling" = yes; then
10882 cat >conftest.$ac_ext <<_ACEOF
10885 cat confdefs.h >>conftest.$ac_ext
10886 cat >>conftest.$ac_ext <<_ACEOF
10887 /* end confdefs.h. */
10889 #if ((' ' & 0x0FF) == 0x020)
10890 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10891 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10893 # define ISLOWER(c) \
10894 (('a' <= (c) && (c) <= 'i') \
10895 || ('j' <= (c) && (c) <= 'r') \
10896 || ('s' <= (c) && (c) <= 'z'))
10897 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10900 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10905 for (i = 0; i < 256; i++)
10906 if (XOR (islower (i), ISLOWER (i))
10907 || toupper (i) != TOUPPER (i))
10912 rm -f conftest$ac_exeext
10913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10914 (eval $ac_link) 2>&5
10916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10917 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10919 (eval $ac_try) 2>&5
10921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10922 (exit $ac_status); }; }; then
10925 echo "$as_me: program exited with status $ac_status" >&5
10926 echo "$as_me: failed program was:" >&5
10927 sed 's/^/| /' conftest.$ac_ext >&5
10929 ( exit $ac_status )
10930 ac_cv_header_stdc=no
10932 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10936 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10937 echo "${ECHO_T}$ac_cv_header_stdc" >&6
10938 if test $ac_cv_header_stdc = yes; then
10940 cat >>confdefs.h <<\_ACEOF
10941 #define STDC_HEADERS 1
10946 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
10947 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
10948 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
10949 echo $ECHO_N "(cached) $ECHO_C" >&6
10951 cat >conftest.$ac_ext <<_ACEOF
10954 cat confdefs.h >>conftest.$ac_ext
10955 cat >>conftest.$ac_ext <<_ACEOF
10956 /* end confdefs.h. */
10957 #include <sys/types.h>
10961 return makedev(0, 0);
10966 rm -f conftest.$ac_objext conftest$ac_exeext
10967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10968 (eval $ac_link) 2>conftest.er1
10970 grep -v '^ *+' conftest.er1 >conftest.err
10972 cat conftest.err >&5
10973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10974 (exit $ac_status); } &&
10975 { ac_try='test -z "$ac_c_werror_flag"
10976 || test ! -s conftest.err'
10977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10978 (eval $ac_try) 2>&5
10980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10981 (exit $ac_status); }; } &&
10982 { ac_try='test -s conftest$ac_exeext'
10983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10984 (eval $ac_try) 2>&5
10986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10987 (exit $ac_status); }; }; then
10988 ac_cv_header_sys_types_h_makedev=yes
10990 echo "$as_me: failed program was:" >&5
10991 sed 's/^/| /' conftest.$ac_ext >&5
10993 ac_cv_header_sys_types_h_makedev=no
10995 rm -f conftest.err conftest.$ac_objext \
10996 conftest$ac_exeext conftest.$ac_ext
10999 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
11000 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
11002 if test $ac_cv_header_sys_types_h_makedev = no; then
11003 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
11004 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
11005 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
11006 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
11007 echo $ECHO_N "(cached) $ECHO_C" >&6
11009 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
11010 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
11012 # Is the header compilable?
11013 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
11014 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
11015 cat >conftest.$ac_ext <<_ACEOF
11018 cat confdefs.h >>conftest.$ac_ext
11019 cat >>conftest.$ac_ext <<_ACEOF
11020 /* end confdefs.h. */
11021 $ac_includes_default
11022 #include <sys/mkdev.h>
11024 rm -f conftest.$ac_objext
11025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11026 (eval $ac_compile) 2>conftest.er1
11028 grep -v '^ *+' conftest.er1 >conftest.err
11030 cat conftest.err >&5
11031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11032 (exit $ac_status); } &&
11033 { ac_try='test -z "$ac_c_werror_flag"
11034 || test ! -s conftest.err'
11035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11036 (eval $ac_try) 2>&5
11038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11039 (exit $ac_status); }; } &&
11040 { ac_try='test -s conftest.$ac_objext'
11041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11042 (eval $ac_try) 2>&5
11044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11045 (exit $ac_status); }; }; then
11046 ac_header_compiler=yes
11048 echo "$as_me: failed program was:" >&5
11049 sed 's/^/| /' conftest.$ac_ext >&5
11051 ac_header_compiler=no
11053 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11054 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11055 echo "${ECHO_T}$ac_header_compiler" >&6
11057 # Is the header present?
11058 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
11059 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
11060 cat >conftest.$ac_ext <<_ACEOF
11063 cat confdefs.h >>conftest.$ac_ext
11064 cat >>conftest.$ac_ext <<_ACEOF
11065 /* end confdefs.h. */
11066 #include <sys/mkdev.h>
11068 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11069 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11071 grep -v '^ *+' conftest.er1 >conftest.err
11073 cat conftest.err >&5
11074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11075 (exit $ac_status); } >/dev/null; then
11076 if test -s conftest.err; then
11077 ac_cpp_err=$ac_c_preproc_warn_flag
11078 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11085 if test -z "$ac_cpp_err"; then
11086 ac_header_preproc=yes
11088 echo "$as_me: failed program was:" >&5
11089 sed 's/^/| /' conftest.$ac_ext >&5
11091 ac_header_preproc=no
11093 rm -f conftest.err conftest.$ac_ext
11094 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11095 echo "${ECHO_T}$ac_header_preproc" >&6
11097 # So? What about this header?
11098 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11100 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
11101 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11102 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
11103 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
11104 ac_header_preproc=yes
11107 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
11108 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
11109 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
11110 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
11111 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
11112 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
11113 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
11114 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
11115 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
11116 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
11117 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
11118 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
11121 ## ------------------------------------------ ##
11122 ## Report this to the AC_PACKAGE_NAME lists. ##
11123 ## ------------------------------------------ ##
11126 sed "s/^/$as_me: WARNING: /" >&2
11129 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
11130 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
11131 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
11132 echo $ECHO_N "(cached) $ECHO_C" >&6
11134 ac_cv_header_sys_mkdev_h=$ac_header_preproc
11136 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
11137 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
11140 if test $ac_cv_header_sys_mkdev_h = yes; then
11142 cat >>confdefs.h <<\_ACEOF
11143 #define MAJOR_IN_MKDEV 1
11150 if test $ac_cv_header_sys_mkdev_h = no; then
11151 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
11152 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
11153 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
11154 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
11155 echo $ECHO_N "(cached) $ECHO_C" >&6
11157 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
11158 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
11160 # Is the header compilable?
11161 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
11162 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
11163 cat >conftest.$ac_ext <<_ACEOF
11166 cat confdefs.h >>conftest.$ac_ext
11167 cat >>conftest.$ac_ext <<_ACEOF
11168 /* end confdefs.h. */
11169 $ac_includes_default
11170 #include <sys/sysmacros.h>
11172 rm -f conftest.$ac_objext
11173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11174 (eval $ac_compile) 2>conftest.er1
11176 grep -v '^ *+' conftest.er1 >conftest.err
11178 cat conftest.err >&5
11179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11180 (exit $ac_status); } &&
11181 { ac_try='test -z "$ac_c_werror_flag"
11182 || test ! -s conftest.err'
11183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11184 (eval $ac_try) 2>&5
11186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11187 (exit $ac_status); }; } &&
11188 { ac_try='test -s conftest.$ac_objext'
11189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11190 (eval $ac_try) 2>&5
11192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11193 (exit $ac_status); }; }; then
11194 ac_header_compiler=yes
11196 echo "$as_me: failed program was:" >&5
11197 sed 's/^/| /' conftest.$ac_ext >&5
11199 ac_header_compiler=no
11201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11202 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11203 echo "${ECHO_T}$ac_header_compiler" >&6
11205 # Is the header present?
11206 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
11207 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
11208 cat >conftest.$ac_ext <<_ACEOF
11211 cat confdefs.h >>conftest.$ac_ext
11212 cat >>conftest.$ac_ext <<_ACEOF
11213 /* end confdefs.h. */
11214 #include <sys/sysmacros.h>
11216 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11217 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11219 grep -v '^ *+' conftest.er1 >conftest.err
11221 cat conftest.err >&5
11222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11223 (exit $ac_status); } >/dev/null; then
11224 if test -s conftest.err; then
11225 ac_cpp_err=$ac_c_preproc_warn_flag
11226 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11233 if test -z "$ac_cpp_err"; then
11234 ac_header_preproc=yes
11236 echo "$as_me: failed program was:" >&5
11237 sed 's/^/| /' conftest.$ac_ext >&5
11239 ac_header_preproc=no
11241 rm -f conftest.err conftest.$ac_ext
11242 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11243 echo "${ECHO_T}$ac_header_preproc" >&6
11245 # So? What about this header?
11246 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11248 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
11249 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11250 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
11251 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
11252 ac_header_preproc=yes
11255 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
11256 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
11257 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
11258 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
11259 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
11260 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
11261 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
11262 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
11263 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
11264 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
11265 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
11266 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
11269 ## ------------------------------------------ ##
11270 ## Report this to the AC_PACKAGE_NAME lists. ##
11271 ## ------------------------------------------ ##
11274 sed "s/^/$as_me: WARNING: /" >&2
11277 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
11278 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
11279 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
11280 echo $ECHO_N "(cached) $ECHO_C" >&6
11282 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
11284 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
11285 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
11288 if test $ac_cv_header_sys_sysmacros_h = yes; then
11290 cat >>confdefs.h <<\_ACEOF
11291 #define MAJOR_IN_SYSMACROS 1
11305 ac_header_dirent=no
11306 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11307 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11308 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
11309 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
11310 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11311 echo $ECHO_N "(cached) $ECHO_C" >&6
11313 cat >conftest.$ac_ext <<_ACEOF
11316 cat confdefs.h >>conftest.$ac_ext
11317 cat >>conftest.$ac_ext <<_ACEOF
11318 /* end confdefs.h. */
11319 #include <sys/types.h>
11331 rm -f conftest.$ac_objext
11332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11333 (eval $ac_compile) 2>conftest.er1
11335 grep -v '^ *+' conftest.er1 >conftest.err
11337 cat conftest.err >&5
11338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11339 (exit $ac_status); } &&
11340 { ac_try='test -z "$ac_c_werror_flag"
11341 || test ! -s conftest.err'
11342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11343 (eval $ac_try) 2>&5
11345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11346 (exit $ac_status); }; } &&
11347 { ac_try='test -s conftest.$ac_objext'
11348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11349 (eval $ac_try) 2>&5
11351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11352 (exit $ac_status); }; }; then
11353 eval "$as_ac_Header=yes"
11355 echo "$as_me: failed program was:" >&5
11356 sed 's/^/| /' conftest.$ac_ext >&5
11358 eval "$as_ac_Header=no"
11360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11362 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11363 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11364 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11365 cat >>confdefs.h <<_ACEOF
11366 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11369 ac_header_dirent=$ac_hdr; break
11373 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11374 if test $ac_header_dirent = dirent.h; then
11375 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11376 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11377 if test "${ac_cv_search_opendir+set}" = set; then
11378 echo $ECHO_N "(cached) $ECHO_C" >&6
11380 ac_func_search_save_LIBS=$LIBS
11381 ac_cv_search_opendir=no
11382 cat >conftest.$ac_ext <<_ACEOF
11385 cat confdefs.h >>conftest.$ac_ext
11386 cat >>conftest.$ac_ext <<_ACEOF
11387 /* end confdefs.h. */
11389 /* Override any gcc2 internal prototype to avoid an error. */
11393 /* We use char because int might match the return type of a gcc2
11394 builtin and then its argument prototype would still apply. */
11404 rm -f conftest.$ac_objext conftest$ac_exeext
11405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11406 (eval $ac_link) 2>conftest.er1
11408 grep -v '^ *+' conftest.er1 >conftest.err
11410 cat conftest.err >&5
11411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11412 (exit $ac_status); } &&
11413 { ac_try='test -z "$ac_c_werror_flag"
11414 || test ! -s conftest.err'
11415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11416 (eval $ac_try) 2>&5
11418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11419 (exit $ac_status); }; } &&
11420 { ac_try='test -s conftest$ac_exeext'
11421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11422 (eval $ac_try) 2>&5
11424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11425 (exit $ac_status); }; }; then
11426 ac_cv_search_opendir="none required"
11428 echo "$as_me: failed program was:" >&5
11429 sed 's/^/| /' conftest.$ac_ext >&5
11432 rm -f conftest.err conftest.$ac_objext \
11433 conftest$ac_exeext conftest.$ac_ext
11434 if test "$ac_cv_search_opendir" = no; then
11435 for ac_lib in dir; do
11436 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11437 cat >conftest.$ac_ext <<_ACEOF
11440 cat confdefs.h >>conftest.$ac_ext
11441 cat >>conftest.$ac_ext <<_ACEOF
11442 /* end confdefs.h. */
11444 /* Override any gcc2 internal prototype to avoid an error. */
11448 /* We use char because int might match the return type of a gcc2
11449 builtin and then its argument prototype would still apply. */
11459 rm -f conftest.$ac_objext conftest$ac_exeext
11460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11461 (eval $ac_link) 2>conftest.er1
11463 grep -v '^ *+' conftest.er1 >conftest.err
11465 cat conftest.err >&5
11466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11467 (exit $ac_status); } &&
11468 { ac_try='test -z "$ac_c_werror_flag"
11469 || test ! -s conftest.err'
11470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11471 (eval $ac_try) 2>&5
11473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11474 (exit $ac_status); }; } &&
11475 { ac_try='test -s conftest$ac_exeext'
11476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11477 (eval $ac_try) 2>&5
11479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11480 (exit $ac_status); }; }; then
11481 ac_cv_search_opendir="-l$ac_lib"
11484 echo "$as_me: failed program was:" >&5
11485 sed 's/^/| /' conftest.$ac_ext >&5
11488 rm -f conftest.err conftest.$ac_objext \
11489 conftest$ac_exeext conftest.$ac_ext
11492 LIBS=$ac_func_search_save_LIBS
11494 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11495 echo "${ECHO_T}$ac_cv_search_opendir" >&6
11496 if test "$ac_cv_search_opendir" != no; then
11497 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11502 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11503 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11504 if test "${ac_cv_search_opendir+set}" = set; then
11505 echo $ECHO_N "(cached) $ECHO_C" >&6
11507 ac_func_search_save_LIBS=$LIBS
11508 ac_cv_search_opendir=no
11509 cat >conftest.$ac_ext <<_ACEOF
11512 cat confdefs.h >>conftest.$ac_ext
11513 cat >>conftest.$ac_ext <<_ACEOF
11514 /* end confdefs.h. */
11516 /* Override any gcc2 internal prototype to avoid an error. */
11520 /* We use char because int might match the return type of a gcc2
11521 builtin and then its argument prototype would still apply. */
11531 rm -f conftest.$ac_objext conftest$ac_exeext
11532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11533 (eval $ac_link) 2>conftest.er1
11535 grep -v '^ *+' conftest.er1 >conftest.err
11537 cat conftest.err >&5
11538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11539 (exit $ac_status); } &&
11540 { ac_try='test -z "$ac_c_werror_flag"
11541 || test ! -s conftest.err'
11542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11543 (eval $ac_try) 2>&5
11545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11546 (exit $ac_status); }; } &&
11547 { ac_try='test -s conftest$ac_exeext'
11548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11549 (eval $ac_try) 2>&5
11551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11552 (exit $ac_status); }; }; then
11553 ac_cv_search_opendir="none required"
11555 echo "$as_me: failed program was:" >&5
11556 sed 's/^/| /' conftest.$ac_ext >&5
11559 rm -f conftest.err conftest.$ac_objext \
11560 conftest$ac_exeext conftest.$ac_ext
11561 if test "$ac_cv_search_opendir" = no; then
11562 for ac_lib in x; do
11563 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11564 cat >conftest.$ac_ext <<_ACEOF
11567 cat confdefs.h >>conftest.$ac_ext
11568 cat >>conftest.$ac_ext <<_ACEOF
11569 /* end confdefs.h. */
11571 /* Override any gcc2 internal prototype to avoid an error. */
11575 /* We use char because int might match the return type of a gcc2
11576 builtin and then its argument prototype would still apply. */
11586 rm -f conftest.$ac_objext conftest$ac_exeext
11587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11588 (eval $ac_link) 2>conftest.er1
11590 grep -v '^ *+' conftest.er1 >conftest.err
11592 cat conftest.err >&5
11593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11594 (exit $ac_status); } &&
11595 { ac_try='test -z "$ac_c_werror_flag"
11596 || test ! -s conftest.err'
11597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11598 (eval $ac_try) 2>&5
11600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11601 (exit $ac_status); }; } &&
11602 { ac_try='test -s conftest$ac_exeext'
11603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11604 (eval $ac_try) 2>&5
11606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11607 (exit $ac_status); }; }; then
11608 ac_cv_search_opendir="-l$ac_lib"
11611 echo "$as_me: failed program was:" >&5
11612 sed 's/^/| /' conftest.$ac_ext >&5
11615 rm -f conftest.err conftest.$ac_objext \
11616 conftest$ac_exeext conftest.$ac_ext
11619 LIBS=$ac_func_search_save_LIBS
11621 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11622 echo "${ECHO_T}$ac_cv_search_opendir" >&6
11623 if test "$ac_cv_search_opendir" != no; then
11624 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11630 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
11631 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
11632 if test "${ac_cv_header_stat_broken+set}" = set; then
11633 echo $ECHO_N "(cached) $ECHO_C" >&6
11635 cat >conftest.$ac_ext <<_ACEOF
11638 cat confdefs.h >>conftest.$ac_ext
11639 cat >>conftest.$ac_ext <<_ACEOF
11640 /* end confdefs.h. */
11641 #include <sys/types.h>
11642 #include <sys/stat.h>
11644 #if defined(S_ISBLK) && defined(S_IFDIR)
11645 # if S_ISBLK (S_IFDIR)
11650 #if defined(S_ISBLK) && defined(S_IFCHR)
11651 # if S_ISBLK (S_IFCHR)
11656 #if defined(S_ISLNK) && defined(S_IFREG)
11657 # if S_ISLNK (S_IFREG)
11662 #if defined(S_ISSOCK) && defined(S_IFREG)
11663 # if S_ISSOCK (S_IFREG)
11669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11670 $EGREP "You lose" >/dev/null 2>&1; then
11671 ac_cv_header_stat_broken=yes
11673 ac_cv_header_stat_broken=no
11678 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
11679 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
11680 if test $ac_cv_header_stat_broken = yes; then
11682 cat >>confdefs.h <<\_ACEOF
11683 #define STAT_MACROS_BROKEN 1
11688 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
11689 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
11690 if test "${ac_cv_header_sys_wait_h+set}" = set; then
11691 echo $ECHO_N "(cached) $ECHO_C" >&6
11693 cat >conftest.$ac_ext <<_ACEOF
11696 cat confdefs.h >>conftest.$ac_ext
11697 cat >>conftest.$ac_ext <<_ACEOF
11698 /* end confdefs.h. */
11699 #include <sys/types.h>
11700 #include <sys/wait.h>
11701 #ifndef WEXITSTATUS
11702 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
11705 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
11713 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11718 rm -f conftest.$ac_objext
11719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11720 (eval $ac_compile) 2>conftest.er1
11722 grep -v '^ *+' conftest.er1 >conftest.err
11724 cat conftest.err >&5
11725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11726 (exit $ac_status); } &&
11727 { ac_try='test -z "$ac_c_werror_flag"
11728 || test ! -s conftest.err'
11729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11730 (eval $ac_try) 2>&5
11732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11733 (exit $ac_status); }; } &&
11734 { ac_try='test -s conftest.$ac_objext'
11735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11736 (eval $ac_try) 2>&5
11738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11739 (exit $ac_status); }; }; then
11740 ac_cv_header_sys_wait_h=yes
11742 echo "$as_me: failed program was:" >&5
11743 sed 's/^/| /' conftest.$ac_ext >&5
11745 ac_cv_header_sys_wait_h=no
11747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11749 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
11750 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
11751 if test $ac_cv_header_sys_wait_h = yes; then
11753 cat >>confdefs.h <<\_ACEOF
11754 #define HAVE_SYS_WAIT_H 1
11759 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11760 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
11761 if test "${ac_cv_header_time+set}" = set; then
11762 echo $ECHO_N "(cached) $ECHO_C" >&6
11764 cat >conftest.$ac_ext <<_ACEOF
11767 cat confdefs.h >>conftest.$ac_ext
11768 cat >>conftest.$ac_ext <<_ACEOF
11769 /* end confdefs.h. */
11770 #include <sys/types.h>
11771 #include <sys/time.h>
11777 if ((struct tm *) 0)
11783 rm -f conftest.$ac_objext
11784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11785 (eval $ac_compile) 2>conftest.er1
11787 grep -v '^ *+' conftest.er1 >conftest.err
11789 cat conftest.err >&5
11790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11791 (exit $ac_status); } &&
11792 { ac_try='test -z "$ac_c_werror_flag"
11793 || test ! -s conftest.err'
11794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11795 (eval $ac_try) 2>&5
11797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11798 (exit $ac_status); }; } &&
11799 { ac_try='test -s conftest.$ac_objext'
11800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11801 (eval $ac_try) 2>&5
11803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804 (exit $ac_status); }; }; then
11805 ac_cv_header_time=yes
11807 echo "$as_me: failed program was:" >&5
11808 sed 's/^/| /' conftest.$ac_ext >&5
11810 ac_cv_header_time=no
11812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11814 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11815 echo "${ECHO_T}$ac_cv_header_time" >&6
11816 if test $ac_cv_header_time = yes; then
11818 cat >>confdefs.h <<\_ACEOF
11819 #define TIME_WITH_SYS_TIME 1
11825 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
11826 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
11827 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
11828 echo $ECHO_N "(cached) $ECHO_C" >&6
11830 cat >conftest.$ac_ext <<_ACEOF
11833 cat confdefs.h >>conftest.$ac_ext
11834 cat >>conftest.$ac_ext <<_ACEOF
11835 /* end confdefs.h. */
11836 $ac_includes_default
11840 static struct stat ac_aggr;
11841 if (ac_aggr.st_blksize)
11847 rm -f conftest.$ac_objext
11848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11849 (eval $ac_compile) 2>conftest.er1
11851 grep -v '^ *+' conftest.er1 >conftest.err
11853 cat conftest.err >&5
11854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11855 (exit $ac_status); } &&
11856 { ac_try='test -z "$ac_c_werror_flag"
11857 || test ! -s conftest.err'
11858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11859 (eval $ac_try) 2>&5
11861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11862 (exit $ac_status); }; } &&
11863 { ac_try='test -s conftest.$ac_objext'
11864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11865 (eval $ac_try) 2>&5
11867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11868 (exit $ac_status); }; }; then
11869 ac_cv_member_struct_stat_st_blksize=yes
11871 echo "$as_me: failed program was:" >&5
11872 sed 's/^/| /' conftest.$ac_ext >&5
11874 cat >conftest.$ac_ext <<_ACEOF
11877 cat confdefs.h >>conftest.$ac_ext
11878 cat >>conftest.$ac_ext <<_ACEOF
11879 /* end confdefs.h. */
11880 $ac_includes_default
11884 static struct stat ac_aggr;
11885 if (sizeof ac_aggr.st_blksize)
11891 rm -f conftest.$ac_objext
11892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11893 (eval $ac_compile) 2>conftest.er1
11895 grep -v '^ *+' conftest.er1 >conftest.err
11897 cat conftest.err >&5
11898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11899 (exit $ac_status); } &&
11900 { ac_try='test -z "$ac_c_werror_flag"
11901 || test ! -s conftest.err'
11902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11903 (eval $ac_try) 2>&5
11905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11906 (exit $ac_status); }; } &&
11907 { ac_try='test -s conftest.$ac_objext'
11908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11909 (eval $ac_try) 2>&5
11911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11912 (exit $ac_status); }; }; then
11913 ac_cv_member_struct_stat_st_blksize=yes
11915 echo "$as_me: failed program was:" >&5
11916 sed 's/^/| /' conftest.$ac_ext >&5
11918 ac_cv_member_struct_stat_st_blksize=no
11920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11922 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11924 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
11925 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
11926 if test $ac_cv_member_struct_stat_st_blksize = yes; then
11928 cat >>confdefs.h <<_ACEOF
11929 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
11933 cat >>confdefs.h <<\_ACEOF
11934 #define HAVE_ST_BLKSIZE 1
11940 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
11941 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
11942 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
11943 echo $ECHO_N "(cached) $ECHO_C" >&6
11945 cat >conftest.$ac_ext <<_ACEOF
11948 cat confdefs.h >>conftest.$ac_ext
11949 cat >>conftest.$ac_ext <<_ACEOF
11950 /* end confdefs.h. */
11951 $ac_includes_default
11955 static struct stat ac_aggr;
11956 if (ac_aggr.st_blocks)
11962 rm -f conftest.$ac_objext
11963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11964 (eval $ac_compile) 2>conftest.er1
11966 grep -v '^ *+' conftest.er1 >conftest.err
11968 cat conftest.err >&5
11969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11970 (exit $ac_status); } &&
11971 { ac_try='test -z "$ac_c_werror_flag"
11972 || test ! -s conftest.err'
11973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11974 (eval $ac_try) 2>&5
11976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11977 (exit $ac_status); }; } &&
11978 { ac_try='test -s conftest.$ac_objext'
11979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11980 (eval $ac_try) 2>&5
11982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11983 (exit $ac_status); }; }; then
11984 ac_cv_member_struct_stat_st_blocks=yes
11986 echo "$as_me: failed program was:" >&5
11987 sed 's/^/| /' conftest.$ac_ext >&5
11989 cat >conftest.$ac_ext <<_ACEOF
11992 cat confdefs.h >>conftest.$ac_ext
11993 cat >>conftest.$ac_ext <<_ACEOF
11994 /* end confdefs.h. */
11995 $ac_includes_default
11999 static struct stat ac_aggr;
12000 if (sizeof ac_aggr.st_blocks)
12006 rm -f conftest.$ac_objext
12007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12008 (eval $ac_compile) 2>conftest.er1
12010 grep -v '^ *+' conftest.er1 >conftest.err
12012 cat conftest.err >&5
12013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12014 (exit $ac_status); } &&
12015 { ac_try='test -z "$ac_c_werror_flag"
12016 || test ! -s conftest.err'
12017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12018 (eval $ac_try) 2>&5
12020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021 (exit $ac_status); }; } &&
12022 { ac_try='test -s conftest.$ac_objext'
12023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12024 (eval $ac_try) 2>&5
12026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12027 (exit $ac_status); }; }; then
12028 ac_cv_member_struct_stat_st_blocks=yes
12030 echo "$as_me: failed program was:" >&5
12031 sed 's/^/| /' conftest.$ac_ext >&5
12033 ac_cv_member_struct_stat_st_blocks=no
12035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12037 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12039 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
12040 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
12041 if test $ac_cv_member_struct_stat_st_blocks = yes; then
12043 cat >>confdefs.h <<_ACEOF
12044 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12048 cat >>confdefs.h <<\_ACEOF
12049 #define HAVE_ST_BLOCKS 1
12054 "fileblocks.$ac_objext" | \
12055 *" fileblocks.$ac_objext" | \
12056 "fileblocks.$ac_objext "* | \
12057 *" fileblocks.$ac_objext "* ) ;;
12058 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
12064 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12065 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
12066 if test "${ac_cv_struct_tm+set}" = set; then
12067 echo $ECHO_N "(cached) $ECHO_C" >&6
12069 cat >conftest.$ac_ext <<_ACEOF
12072 cat confdefs.h >>conftest.$ac_ext
12073 cat >>conftest.$ac_ext <<_ACEOF
12074 /* end confdefs.h. */
12075 #include <sys/types.h>
12081 struct tm *tp; tp->tm_sec;
12086 rm -f conftest.$ac_objext
12087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12088 (eval $ac_compile) 2>conftest.er1
12090 grep -v '^ *+' conftest.er1 >conftest.err
12092 cat conftest.err >&5
12093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094 (exit $ac_status); } &&
12095 { ac_try='test -z "$ac_c_werror_flag"
12096 || test ! -s conftest.err'
12097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12098 (eval $ac_try) 2>&5
12100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12101 (exit $ac_status); }; } &&
12102 { ac_try='test -s conftest.$ac_objext'
12103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12104 (eval $ac_try) 2>&5
12106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12107 (exit $ac_status); }; }; then
12108 ac_cv_struct_tm=time.h
12110 echo "$as_me: failed program was:" >&5
12111 sed 's/^/| /' conftest.$ac_ext >&5
12113 ac_cv_struct_tm=sys/time.h
12115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12117 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12118 echo "${ECHO_T}$ac_cv_struct_tm" >&6
12119 if test $ac_cv_struct_tm = sys/time.h; then
12121 cat >>confdefs.h <<\_ACEOF
12122 #define TM_IN_SYS_TIME 1
12127 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
12128 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
12129 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
12130 echo $ECHO_N "(cached) $ECHO_C" >&6
12132 cat >conftest.$ac_ext <<_ACEOF
12135 cat confdefs.h >>conftest.$ac_ext
12136 cat >>conftest.$ac_ext <<_ACEOF
12137 /* end confdefs.h. */
12138 #include <sys/types.h>
12139 #include <$ac_cv_struct_tm>
12145 static struct tm ac_aggr;
12146 if (ac_aggr.tm_zone)
12152 rm -f conftest.$ac_objext
12153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12154 (eval $ac_compile) 2>conftest.er1
12156 grep -v '^ *+' conftest.er1 >conftest.err
12158 cat conftest.err >&5
12159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12160 (exit $ac_status); } &&
12161 { ac_try='test -z "$ac_c_werror_flag"
12162 || test ! -s conftest.err'
12163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12164 (eval $ac_try) 2>&5
12166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12167 (exit $ac_status); }; } &&
12168 { ac_try='test -s conftest.$ac_objext'
12169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12170 (eval $ac_try) 2>&5
12172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12173 (exit $ac_status); }; }; then
12174 ac_cv_member_struct_tm_tm_zone=yes
12176 echo "$as_me: failed program was:" >&5
12177 sed 's/^/| /' conftest.$ac_ext >&5
12179 cat >conftest.$ac_ext <<_ACEOF
12182 cat confdefs.h >>conftest.$ac_ext
12183 cat >>conftest.$ac_ext <<_ACEOF
12184 /* end confdefs.h. */
12185 #include <sys/types.h>
12186 #include <$ac_cv_struct_tm>
12192 static struct tm ac_aggr;
12193 if (sizeof ac_aggr.tm_zone)
12199 rm -f conftest.$ac_objext
12200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12201 (eval $ac_compile) 2>conftest.er1
12203 grep -v '^ *+' conftest.er1 >conftest.err
12205 cat conftest.err >&5
12206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12207 (exit $ac_status); } &&
12208 { ac_try='test -z "$ac_c_werror_flag"
12209 || test ! -s conftest.err'
12210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12211 (eval $ac_try) 2>&5
12213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12214 (exit $ac_status); }; } &&
12215 { ac_try='test -s conftest.$ac_objext'
12216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12217 (eval $ac_try) 2>&5
12219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12220 (exit $ac_status); }; }; then
12221 ac_cv_member_struct_tm_tm_zone=yes
12223 echo "$as_me: failed program was:" >&5
12224 sed 's/^/| /' conftest.$ac_ext >&5
12226 ac_cv_member_struct_tm_tm_zone=no
12228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12232 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
12233 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
12234 if test $ac_cv_member_struct_tm_tm_zone = yes; then
12236 cat >>confdefs.h <<_ACEOF
12237 #define HAVE_STRUCT_TM_TM_ZONE 1
12243 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
12245 cat >>confdefs.h <<\_ACEOF
12246 #define HAVE_TM_ZONE 1
12250 echo "$as_me:$LINENO: checking for tzname" >&5
12251 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
12252 if test "${ac_cv_var_tzname+set}" = set; then
12253 echo $ECHO_N "(cached) $ECHO_C" >&6
12255 cat >conftest.$ac_ext <<_ACEOF
12258 cat confdefs.h >>conftest.$ac_ext
12259 cat >>conftest.$ac_ext <<_ACEOF
12260 /* end confdefs.h. */
12262 #ifndef tzname /* For SGI. */
12263 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
12274 rm -f conftest.$ac_objext conftest$ac_exeext
12275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12276 (eval $ac_link) 2>conftest.er1
12278 grep -v '^ *+' conftest.er1 >conftest.err
12280 cat conftest.err >&5
12281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12282 (exit $ac_status); } &&
12283 { ac_try='test -z "$ac_c_werror_flag"
12284 || test ! -s conftest.err'
12285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12286 (eval $ac_try) 2>&5
12288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289 (exit $ac_status); }; } &&
12290 { ac_try='test -s conftest$ac_exeext'
12291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12292 (eval $ac_try) 2>&5
12294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12295 (exit $ac_status); }; }; then
12296 ac_cv_var_tzname=yes
12298 echo "$as_me: failed program was:" >&5
12299 sed 's/^/| /' conftest.$ac_ext >&5
12301 ac_cv_var_tzname=no
12303 rm -f conftest.err conftest.$ac_objext \
12304 conftest$ac_exeext conftest.$ac_ext
12306 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
12307 echo "${ECHO_T}$ac_cv_var_tzname" >&6
12308 if test $ac_cv_var_tzname = yes; then
12310 cat >>confdefs.h <<\_ACEOF
12311 #define HAVE_TZNAME 1
12318 echo "$as_me:$LINENO: checking for utime.h" >&5
12319 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
12320 if test "${ba_cv_header_utime_h+set}" = set; then
12321 echo $ECHO_N "(cached) $ECHO_C" >&6
12323 cat >conftest.$ac_ext <<_ACEOF
12326 cat confdefs.h >>conftest.$ac_ext
12327 cat >>conftest.$ac_ext <<_ACEOF
12328 /* end confdefs.h. */
12330 #include <sys/types.h>
12340 rm -f conftest.$ac_objext
12341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12342 (eval $ac_compile) 2>conftest.er1
12344 grep -v '^ *+' conftest.er1 >conftest.err
12346 cat conftest.err >&5
12347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12348 (exit $ac_status); } &&
12349 { ac_try='test -z "$ac_c_werror_flag"
12350 || test ! -s conftest.err'
12351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12352 (eval $ac_try) 2>&5
12354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12355 (exit $ac_status); }; } &&
12356 { ac_try='test -s conftest.$ac_objext'
12357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12358 (eval $ac_try) 2>&5
12360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361 (exit $ac_status); }; }; then
12362 ba_cv_header_utime_h=yes
12364 echo "$as_me: failed program was:" >&5
12365 sed 's/^/| /' conftest.$ac_ext >&5
12367 ba_cv_header_utime_h=no
12369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12371 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
12372 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
12373 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
12374 #define HAVE_UTIME_H 1
12378 echo "$as_me:$LINENO: checking for socklen_t" >&5
12379 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
12380 if test "${ba_cv_header_socklen_t+set}" = set; then
12381 echo $ECHO_N "(cached) $ECHO_C" >&6
12383 cat >conftest.$ac_ext <<_ACEOF
12386 cat confdefs.h >>conftest.$ac_ext
12387 cat >>conftest.$ac_ext <<_ACEOF
12388 /* end confdefs.h. */
12390 #include <sys/types.h>
12391 #include <sys/socket.h>
12400 rm -f conftest.$ac_objext
12401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12402 (eval $ac_compile) 2>conftest.er1
12404 grep -v '^ *+' conftest.er1 >conftest.err
12406 cat conftest.err >&5
12407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12408 (exit $ac_status); } &&
12409 { ac_try='test -z "$ac_c_werror_flag"
12410 || test ! -s conftest.err'
12411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12412 (eval $ac_try) 2>&5
12414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12415 (exit $ac_status); }; } &&
12416 { ac_try='test -s conftest.$ac_objext'
12417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12418 (eval $ac_try) 2>&5
12420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12421 (exit $ac_status); }; }; then
12422 ba_cv_header_socklen_t=yes
12424 echo "$as_me: failed program was:" >&5
12425 sed 's/^/| /' conftest.$ac_ext >&5
12427 ba_cv_header_socklen_t=no
12429 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12431 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
12432 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
12433 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
12434 #define HAVE_SOCKLEN_T 1
12438 echo "$as_me:$LINENO: checking for bigendian" >&5
12439 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
12440 if test "${ba_cv_bigendian+set}" = set; then
12441 echo $ECHO_N "(cached) $ECHO_C" >&6
12443 if test "$cross_compiling" = yes; then
12446 cat >conftest.$ac_ext <<_ACEOF
12449 cat confdefs.h >>conftest.$ac_ext
12450 cat >>conftest.$ac_ext <<_ACEOF
12451 /* end confdefs.h. */
12452 main(){long a=1L; char *p=(char *)&a; exit(*p);}
12454 rm -f conftest$ac_exeext
12455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12456 (eval $ac_link) 2>&5
12458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12459 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12461 (eval $ac_try) 2>&5
12463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12464 (exit $ac_status); }; }; then
12465 ba_cv_bigendian=yes
12467 echo "$as_me: program exited with status $ac_status" >&5
12468 echo "$as_me: failed program was:" >&5
12469 sed 's/^/| /' conftest.$ac_ext >&5
12471 ( exit $ac_status )
12474 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12477 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
12478 echo "${ECHO_T}$ba_cv_bigendian" >&6
12479 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
12480 #define HAVE_BIGENDIAN 1
12485 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12486 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12487 if test "${ac_cv_c_const+set}" = set; then
12488 echo $ECHO_N "(cached) $ECHO_C" >&6
12490 cat >conftest.$ac_ext <<_ACEOF
12493 cat confdefs.h >>conftest.$ac_ext
12494 cat >>conftest.$ac_ext <<_ACEOF
12495 /* end confdefs.h. */
12500 /* FIXME: Include the comments suggested by Paul. */
12501 #ifndef __cplusplus
12502 /* Ultrix mips cc rejects this. */
12503 typedef int charset[2];
12505 /* SunOS 4.1.1 cc rejects this. */
12506 char const *const *ccp;
12508 /* NEC SVR4.0.2 mips cc rejects this. */
12509 struct point {int x, y;};
12510 static struct point const zero = {0,0};
12511 /* AIX XL C 1.02.0.0 rejects this.
12512 It does not let you subtract one const X* pointer from another in
12513 an arm of an if-expression whose if-part is not a constant
12515 const char *g = "string";
12516 ccp = &g + (g ? g-g : 0);
12517 /* HPUX 7.0 cc rejects these. */
12520 ccp = (char const *const *) p;
12521 { /* SCO 3.2v4 cc rejects this. */
12523 char const *s = 0 ? (char *) 0 : (char const *) 0;
12527 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12528 int x[] = {25, 17};
12529 const int *foo = &x[0];
12532 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12533 typedef const int *iptr;
12537 { /* AIX XL C 1.02.0.0 rejects this saying
12538 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12539 struct s { int j; const int *ap[3]; };
12540 struct s *b; b->j = 5;
12542 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12543 const int foo = 10;
12551 rm -f conftest.$ac_objext
12552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12553 (eval $ac_compile) 2>conftest.er1
12555 grep -v '^ *+' conftest.er1 >conftest.err
12557 cat conftest.err >&5
12558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12559 (exit $ac_status); } &&
12560 { ac_try='test -z "$ac_c_werror_flag"
12561 || test ! -s conftest.err'
12562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12563 (eval $ac_try) 2>&5
12565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12566 (exit $ac_status); }; } &&
12567 { ac_try='test -s conftest.$ac_objext'
12568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12569 (eval $ac_try) 2>&5
12571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12572 (exit $ac_status); }; }; then
12575 echo "$as_me: failed program was:" >&5
12576 sed 's/^/| /' conftest.$ac_ext >&5
12580 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12582 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12583 echo "${ECHO_T}$ac_cv_c_const" >&6
12584 if test $ac_cv_c_const = no; then
12586 cat >>confdefs.h <<\_ACEOF
12594 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
12595 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
12597 # The order of these tests is important.
12598 cat >conftest.$ac_ext <<_ACEOF
12601 cat confdefs.h >>conftest.$ac_ext
12602 cat >>conftest.$ac_ext <<_ACEOF
12603 /* end confdefs.h. */
12604 #include <sys/statvfs.h>
12605 #include <sys/fstyp.h>
12607 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12608 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12610 grep -v '^ *+' conftest.er1 >conftest.err
12612 cat conftest.err >&5
12613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12614 (exit $ac_status); } >/dev/null; then
12615 if test -s conftest.err; then
12616 ac_cpp_err=$ac_c_preproc_warn_flag
12617 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12624 if test -z "$ac_cpp_err"; then
12625 cat >>confdefs.h <<\_ACEOF
12626 #define FSTYPE_STATVFS 1
12630 echo "$as_me: failed program was:" >&5
12631 sed 's/^/| /' conftest.$ac_ext >&5
12635 rm -f conftest.err conftest.$ac_ext
12636 if test $fstype = no; then
12637 cat >conftest.$ac_ext <<_ACEOF
12640 cat confdefs.h >>conftest.$ac_ext
12641 cat >>conftest.$ac_ext <<_ACEOF
12642 /* end confdefs.h. */
12643 #include <sys/statfs.h>
12644 #include <sys/fstyp.h>
12646 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12647 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12649 grep -v '^ *+' conftest.er1 >conftest.err
12651 cat conftest.err >&5
12652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12653 (exit $ac_status); } >/dev/null; then
12654 if test -s conftest.err; then
12655 ac_cpp_err=$ac_c_preproc_warn_flag
12656 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12663 if test -z "$ac_cpp_err"; then
12664 cat >>confdefs.h <<\_ACEOF
12665 #define FSTYPE_USG_STATFS 1
12669 echo "$as_me: failed program was:" >&5
12670 sed 's/^/| /' conftest.$ac_ext >&5
12674 rm -f conftest.err conftest.$ac_ext
12676 if test $fstype = no; then
12677 cat >conftest.$ac_ext <<_ACEOF
12680 cat confdefs.h >>conftest.$ac_ext
12681 cat >>conftest.$ac_ext <<_ACEOF
12682 /* end confdefs.h. */
12683 #include <sys/statfs.h>
12684 #include <sys/vmount.h>
12686 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12687 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12689 grep -v '^ *+' conftest.er1 >conftest.err
12691 cat conftest.err >&5
12692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12693 (exit $ac_status); } >/dev/null; then
12694 if test -s conftest.err; then
12695 ac_cpp_err=$ac_c_preproc_warn_flag
12696 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12703 if test -z "$ac_cpp_err"; then
12704 cat >>confdefs.h <<\_ACEOF
12705 #define FSTYPE_AIX_STATFS 1
12709 echo "$as_me: failed program was:" >&5
12710 sed 's/^/| /' conftest.$ac_ext >&5
12714 rm -f conftest.err conftest.$ac_ext
12716 if test $fstype = no; then
12717 cat >conftest.$ac_ext <<_ACEOF
12720 cat confdefs.h >>conftest.$ac_ext
12721 cat >>conftest.$ac_ext <<_ACEOF
12722 /* end confdefs.h. */
12723 #include <mntent.h>
12725 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12726 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12728 grep -v '^ *+' conftest.er1 >conftest.err
12730 cat conftest.err >&5
12731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12732 (exit $ac_status); } >/dev/null; then
12733 if test -s conftest.err; then
12734 ac_cpp_err=$ac_c_preproc_warn_flag
12735 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12742 if test -z "$ac_cpp_err"; then
12743 cat >>confdefs.h <<\_ACEOF
12744 #define FSTYPE_MNTENT 1
12748 echo "$as_me: failed program was:" >&5
12749 sed 's/^/| /' conftest.$ac_ext >&5
12753 rm -f conftest.err conftest.$ac_ext
12755 if test $fstype = no; then
12756 cat >conftest.$ac_ext <<_ACEOF
12759 cat confdefs.h >>conftest.$ac_ext
12760 cat >>conftest.$ac_ext <<_ACEOF
12761 /* end confdefs.h. */
12762 #include <sys/mount.h>
12765 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12766 $EGREP "f_type;" >/dev/null 2>&1; then
12767 cat >>confdefs.h <<\_ACEOF
12768 #define FSTYPE_STATFS 1
12775 if test $fstype = no; then
12776 cat >conftest.$ac_ext <<_ACEOF
12779 cat confdefs.h >>conftest.$ac_ext
12780 cat >>conftest.$ac_ext <<_ACEOF
12781 /* end confdefs.h. */
12782 #include <sys/mount.h>
12783 #include <sys/fs_types.h>
12785 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12786 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12788 grep -v '^ *+' conftest.er1 >conftest.err
12790 cat conftest.err >&5
12791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12792 (exit $ac_status); } >/dev/null; then
12793 if test -s conftest.err; then
12794 ac_cpp_err=$ac_c_preproc_warn_flag
12795 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12802 if test -z "$ac_cpp_err"; then
12803 cat >>confdefs.h <<\_ACEOF
12804 #define FSTYPE_GETMNT 1
12808 echo "$as_me: failed program was:" >&5
12809 sed 's/^/| /' conftest.$ac_ext >&5
12813 rm -f conftest.err conftest.$ac_ext
12815 echo "$as_me:$LINENO: result: $fstype" >&5
12816 echo "${ECHO_T}$fstype" >&6
12818 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12819 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
12820 if test "${ac_cv_type_signal+set}" = set; then
12821 echo $ECHO_N "(cached) $ECHO_C" >&6
12823 cat >conftest.$ac_ext <<_ACEOF
12826 cat confdefs.h >>conftest.$ac_ext
12827 cat >>conftest.$ac_ext <<_ACEOF
12828 /* end confdefs.h. */
12829 #include <sys/types.h>
12830 #include <signal.h>
12835 extern "C" void (*signal (int, void (*)(int)))(int);
12837 void (*signal ()) ();
12848 rm -f conftest.$ac_objext
12849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12850 (eval $ac_compile) 2>conftest.er1
12852 grep -v '^ *+' conftest.er1 >conftest.err
12854 cat conftest.err >&5
12855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856 (exit $ac_status); } &&
12857 { ac_try='test -z "$ac_c_werror_flag"
12858 || test ! -s conftest.err'
12859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12860 (eval $ac_try) 2>&5
12862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12863 (exit $ac_status); }; } &&
12864 { ac_try='test -s conftest.$ac_objext'
12865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12866 (eval $ac_try) 2>&5
12868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12869 (exit $ac_status); }; }; then
12870 ac_cv_type_signal=void
12872 echo "$as_me: failed program was:" >&5
12873 sed 's/^/| /' conftest.$ac_ext >&5
12875 ac_cv_type_signal=int
12877 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12879 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12880 echo "${ECHO_T}$ac_cv_type_signal" >&6
12882 cat >>confdefs.h <<_ACEOF
12883 #define RETSIGTYPE $ac_cv_type_signal
12888 echo "$as_me:$LINENO: checking for type of signal functions" >&5
12889 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
12890 if test "${bash_cv_signal_vintage+set}" = set; then
12891 echo $ECHO_N "(cached) $ECHO_C" >&6
12894 cat >conftest.$ac_ext <<_ACEOF
12897 cat confdefs.h >>conftest.$ac_ext
12898 cat >>conftest.$ac_ext <<_ACEOF
12899 /* end confdefs.h. */
12900 #include <signal.h>
12906 struct sigaction sa;
12907 sigemptyset(&ss); sigsuspend(&ss);
12908 sigaction(SIGINT, &sa, (struct sigaction *) 0);
12909 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
12915 rm -f conftest.$ac_objext conftest$ac_exeext
12916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12917 (eval $ac_link) 2>conftest.er1
12919 grep -v '^ *+' conftest.er1 >conftest.err
12921 cat conftest.err >&5
12922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12923 (exit $ac_status); } &&
12924 { ac_try='test -z "$ac_c_werror_flag"
12925 || test ! -s conftest.err'
12926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12927 (eval $ac_try) 2>&5
12929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12930 (exit $ac_status); }; } &&
12931 { ac_try='test -s conftest$ac_exeext'
12932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12933 (eval $ac_try) 2>&5
12935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12936 (exit $ac_status); }; }; then
12937 bash_cv_signal_vintage=posix
12939 echo "$as_me: failed program was:" >&5
12940 sed 's/^/| /' conftest.$ac_ext >&5
12943 cat >conftest.$ac_ext <<_ACEOF
12946 cat confdefs.h >>conftest.$ac_ext
12947 cat >>conftest.$ac_ext <<_ACEOF
12948 /* end confdefs.h. */
12949 #include <signal.h>
12954 int mask = sigmask(SIGINT);
12955 sigsetmask(mask); sigblock(mask); sigpause(mask);
12961 rm -f conftest.$ac_objext conftest$ac_exeext
12962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12963 (eval $ac_link) 2>conftest.er1
12965 grep -v '^ *+' conftest.er1 >conftest.err
12967 cat conftest.err >&5
12968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12969 (exit $ac_status); } &&
12970 { ac_try='test -z "$ac_c_werror_flag"
12971 || test ! -s conftest.err'
12972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12973 (eval $ac_try) 2>&5
12975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12976 (exit $ac_status); }; } &&
12977 { ac_try='test -s conftest$ac_exeext'
12978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12979 (eval $ac_try) 2>&5
12981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982 (exit $ac_status); }; }; then
12983 bash_cv_signal_vintage=4.2bsd
12985 echo "$as_me: failed program was:" >&5
12986 sed 's/^/| /' conftest.$ac_ext >&5
12989 cat >conftest.$ac_ext <<_ACEOF
12992 cat confdefs.h >>conftest.$ac_ext
12993 cat >>conftest.$ac_ext <<_ACEOF
12994 /* end confdefs.h. */
12996 #include <signal.h>
12997 RETSIGTYPE foo() { }
13002 int mask = sigmask(SIGINT);
13003 sigset(SIGINT, foo); sigrelse(SIGINT);
13004 sighold(SIGINT); sigpause(SIGINT);
13010 rm -f conftest.$ac_objext conftest$ac_exeext
13011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13012 (eval $ac_link) 2>conftest.er1
13014 grep -v '^ *+' conftest.er1 >conftest.err
13016 cat conftest.err >&5
13017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13018 (exit $ac_status); } &&
13019 { ac_try='test -z "$ac_c_werror_flag"
13020 || test ! -s conftest.err'
13021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13022 (eval $ac_try) 2>&5
13024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13025 (exit $ac_status); }; } &&
13026 { ac_try='test -s conftest$ac_exeext'
13027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13028 (eval $ac_try) 2>&5
13030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13031 (exit $ac_status); }; }; then
13032 bash_cv_signal_vintage=svr3
13034 echo "$as_me: failed program was:" >&5
13035 sed 's/^/| /' conftest.$ac_ext >&5
13037 bash_cv_signal_vintage=v7
13040 rm -f conftest.err conftest.$ac_objext \
13041 conftest$ac_exeext conftest.$ac_ext
13044 rm -f conftest.err conftest.$ac_objext \
13045 conftest$ac_exeext conftest.$ac_ext
13048 rm -f conftest.err conftest.$ac_objext \
13049 conftest$ac_exeext conftest.$ac_ext
13053 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
13054 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
13055 if test "$bash_cv_signal_vintage" = posix; then
13056 cat >>confdefs.h <<\_ACEOF
13057 #define HAVE_POSIX_SIGNALS 1
13060 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
13061 cat >>confdefs.h <<\_ACEOF
13062 #define HAVE_BSD_SIGNALS 1
13065 elif test "$bash_cv_signal_vintage" = svr3; then
13066 cat >>confdefs.h <<\_ACEOF
13067 #define HAVE_USG_SIGHOLD 1
13072 echo "$as_me:$LINENO: checking for mode_t" >&5
13073 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
13074 if test "${ac_cv_type_mode_t+set}" = set; then
13075 echo $ECHO_N "(cached) $ECHO_C" >&6
13077 cat >conftest.$ac_ext <<_ACEOF
13080 cat confdefs.h >>conftest.$ac_ext
13081 cat >>conftest.$ac_ext <<_ACEOF
13082 /* end confdefs.h. */
13083 $ac_includes_default
13089 if (sizeof (mode_t))
13095 rm -f conftest.$ac_objext
13096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13097 (eval $ac_compile) 2>conftest.er1
13099 grep -v '^ *+' conftest.er1 >conftest.err
13101 cat conftest.err >&5
13102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13103 (exit $ac_status); } &&
13104 { ac_try='test -z "$ac_c_werror_flag"
13105 || test ! -s conftest.err'
13106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13107 (eval $ac_try) 2>&5
13109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13110 (exit $ac_status); }; } &&
13111 { ac_try='test -s conftest.$ac_objext'
13112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13113 (eval $ac_try) 2>&5
13115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13116 (exit $ac_status); }; }; then
13117 ac_cv_type_mode_t=yes
13119 echo "$as_me: failed program was:" >&5
13120 sed 's/^/| /' conftest.$ac_ext >&5
13122 ac_cv_type_mode_t=no
13124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13126 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
13127 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
13128 if test $ac_cv_type_mode_t = yes; then
13132 cat >>confdefs.h <<_ACEOF
13138 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
13139 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
13140 if test "${ac_cv_type_uid_t+set}" = set; then
13141 echo $ECHO_N "(cached) $ECHO_C" >&6
13143 cat >conftest.$ac_ext <<_ACEOF
13146 cat confdefs.h >>conftest.$ac_ext
13147 cat >>conftest.$ac_ext <<_ACEOF
13148 /* end confdefs.h. */
13149 #include <sys/types.h>
13152 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13153 $EGREP "uid_t" >/dev/null 2>&1; then
13154 ac_cv_type_uid_t=yes
13156 ac_cv_type_uid_t=no
13161 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
13162 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
13163 if test $ac_cv_type_uid_t = no; then
13165 cat >>confdefs.h <<\_ACEOF
13170 cat >>confdefs.h <<\_ACEOF
13176 echo "$as_me:$LINENO: checking for size_t" >&5
13177 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
13178 if test "${ac_cv_type_size_t+set}" = set; then
13179 echo $ECHO_N "(cached) $ECHO_C" >&6
13181 cat >conftest.$ac_ext <<_ACEOF
13184 cat confdefs.h >>conftest.$ac_ext
13185 cat >>conftest.$ac_ext <<_ACEOF
13186 /* end confdefs.h. */
13187 $ac_includes_default
13193 if (sizeof (size_t))
13199 rm -f conftest.$ac_objext
13200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13201 (eval $ac_compile) 2>conftest.er1
13203 grep -v '^ *+' conftest.er1 >conftest.err
13205 cat conftest.err >&5
13206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13207 (exit $ac_status); } &&
13208 { ac_try='test -z "$ac_c_werror_flag"
13209 || test ! -s conftest.err'
13210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13211 (eval $ac_try) 2>&5
13213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13214 (exit $ac_status); }; } &&
13215 { ac_try='test -s conftest.$ac_objext'
13216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13217 (eval $ac_try) 2>&5
13219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13220 (exit $ac_status); }; }; then
13221 ac_cv_type_size_t=yes
13223 echo "$as_me: failed program was:" >&5
13224 sed 's/^/| /' conftest.$ac_ext >&5
13226 ac_cv_type_size_t=no
13228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13230 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13231 echo "${ECHO_T}$ac_cv_type_size_t" >&6
13232 if test $ac_cv_type_size_t = yes; then
13236 cat >>confdefs.h <<_ACEOF
13237 #define size_t unsigned
13242 echo "$as_me:$LINENO: checking for pid_t" >&5
13243 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
13244 if test "${ac_cv_type_pid_t+set}" = set; then
13245 echo $ECHO_N "(cached) $ECHO_C" >&6
13247 cat >conftest.$ac_ext <<_ACEOF
13250 cat confdefs.h >>conftest.$ac_ext
13251 cat >>conftest.$ac_ext <<_ACEOF
13252 /* end confdefs.h. */
13253 $ac_includes_default
13259 if (sizeof (pid_t))
13265 rm -f conftest.$ac_objext
13266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13267 (eval $ac_compile) 2>conftest.er1
13269 grep -v '^ *+' conftest.er1 >conftest.err
13271 cat conftest.err >&5
13272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13273 (exit $ac_status); } &&
13274 { ac_try='test -z "$ac_c_werror_flag"
13275 || test ! -s conftest.err'
13276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13277 (eval $ac_try) 2>&5
13279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13280 (exit $ac_status); }; } &&
13281 { ac_try='test -s conftest.$ac_objext'
13282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13283 (eval $ac_try) 2>&5
13285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13286 (exit $ac_status); }; }; then
13287 ac_cv_type_pid_t=yes
13289 echo "$as_me: failed program was:" >&5
13290 sed 's/^/| /' conftest.$ac_ext >&5
13292 ac_cv_type_pid_t=no
13294 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13296 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
13297 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
13298 if test $ac_cv_type_pid_t = yes; then
13302 cat >>confdefs.h <<_ACEOF
13308 echo "$as_me:$LINENO: checking for off_t" >&5
13309 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
13310 if test "${ac_cv_type_off_t+set}" = set; then
13311 echo $ECHO_N "(cached) $ECHO_C" >&6
13313 cat >conftest.$ac_ext <<_ACEOF
13316 cat confdefs.h >>conftest.$ac_ext
13317 cat >>conftest.$ac_ext <<_ACEOF
13318 /* end confdefs.h. */
13319 $ac_includes_default
13325 if (sizeof (off_t))
13331 rm -f conftest.$ac_objext
13332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13333 (eval $ac_compile) 2>conftest.er1
13335 grep -v '^ *+' conftest.er1 >conftest.err
13337 cat conftest.err >&5
13338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13339 (exit $ac_status); } &&
13340 { ac_try='test -z "$ac_c_werror_flag"
13341 || test ! -s conftest.err'
13342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13343 (eval $ac_try) 2>&5
13345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13346 (exit $ac_status); }; } &&
13347 { ac_try='test -s conftest.$ac_objext'
13348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13349 (eval $ac_try) 2>&5
13351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13352 (exit $ac_status); }; }; then
13353 ac_cv_type_off_t=yes
13355 echo "$as_me: failed program was:" >&5
13356 sed 's/^/| /' conftest.$ac_ext >&5
13358 ac_cv_type_off_t=no
13360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13362 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
13363 echo "${ECHO_T}$ac_cv_type_off_t" >&6
13364 if test $ac_cv_type_off_t = yes; then
13368 cat >>confdefs.h <<_ACEOF
13374 echo "$as_me:$LINENO: checking for ino_t" >&5
13375 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
13376 if test "${ac_cv_type_ino_t+set}" = set; then
13377 echo $ECHO_N "(cached) $ECHO_C" >&6
13379 cat >conftest.$ac_ext <<_ACEOF
13382 cat confdefs.h >>conftest.$ac_ext
13383 cat >>conftest.$ac_ext <<_ACEOF
13384 /* end confdefs.h. */
13385 $ac_includes_default
13391 if (sizeof (ino_t))
13397 rm -f conftest.$ac_objext
13398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13399 (eval $ac_compile) 2>conftest.er1
13401 grep -v '^ *+' conftest.er1 >conftest.err
13403 cat conftest.err >&5
13404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13405 (exit $ac_status); } &&
13406 { ac_try='test -z "$ac_c_werror_flag"
13407 || test ! -s conftest.err'
13408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13409 (eval $ac_try) 2>&5
13411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13412 (exit $ac_status); }; } &&
13413 { ac_try='test -s conftest.$ac_objext'
13414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13415 (eval $ac_try) 2>&5
13417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13418 (exit $ac_status); }; }; then
13419 ac_cv_type_ino_t=yes
13421 echo "$as_me: failed program was:" >&5
13422 sed 's/^/| /' conftest.$ac_ext >&5
13424 ac_cv_type_ino_t=no
13426 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13428 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
13429 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
13430 if test $ac_cv_type_ino_t = yes; then
13434 cat >>confdefs.h <<_ACEOF
13435 #define ino_t unsigned long
13440 echo "$as_me:$LINENO: checking for dev_t" >&5
13441 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
13442 if test "${ac_cv_type_dev_t+set}" = set; then
13443 echo $ECHO_N "(cached) $ECHO_C" >&6
13445 cat >conftest.$ac_ext <<_ACEOF
13448 cat confdefs.h >>conftest.$ac_ext
13449 cat >>conftest.$ac_ext <<_ACEOF
13450 /* end confdefs.h. */
13451 $ac_includes_default
13457 if (sizeof (dev_t))
13463 rm -f conftest.$ac_objext
13464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13465 (eval $ac_compile) 2>conftest.er1
13467 grep -v '^ *+' conftest.er1 >conftest.err
13469 cat conftest.err >&5
13470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13471 (exit $ac_status); } &&
13472 { ac_try='test -z "$ac_c_werror_flag"
13473 || test ! -s conftest.err'
13474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13475 (eval $ac_try) 2>&5
13477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13478 (exit $ac_status); }; } &&
13479 { ac_try='test -s conftest.$ac_objext'
13480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13481 (eval $ac_try) 2>&5
13483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13484 (exit $ac_status); }; }; then
13485 ac_cv_type_dev_t=yes
13487 echo "$as_me: failed program was:" >&5
13488 sed 's/^/| /' conftest.$ac_ext >&5
13490 ac_cv_type_dev_t=no
13492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13494 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
13495 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
13496 if test $ac_cv_type_dev_t = yes; then
13500 cat >>confdefs.h <<_ACEOF
13501 #define dev_t unsigned long
13506 echo "$as_me:$LINENO: checking for daddr_t" >&5
13507 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
13508 if test "${ac_cv_type_daddr_t+set}" = set; then
13509 echo $ECHO_N "(cached) $ECHO_C" >&6
13511 cat >conftest.$ac_ext <<_ACEOF
13514 cat confdefs.h >>conftest.$ac_ext
13515 cat >>conftest.$ac_ext <<_ACEOF
13516 /* end confdefs.h. */
13517 $ac_includes_default
13523 if (sizeof (daddr_t))
13529 rm -f conftest.$ac_objext
13530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13531 (eval $ac_compile) 2>conftest.er1
13533 grep -v '^ *+' conftest.er1 >conftest.err
13535 cat conftest.err >&5
13536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13537 (exit $ac_status); } &&
13538 { ac_try='test -z "$ac_c_werror_flag"
13539 || test ! -s conftest.err'
13540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13541 (eval $ac_try) 2>&5
13543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13544 (exit $ac_status); }; } &&
13545 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
13551 ac_cv_type_daddr_t=yes
13553 echo "$as_me: failed program was:" >&5
13554 sed 's/^/| /' conftest.$ac_ext >&5
13556 ac_cv_type_daddr_t=no
13558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13560 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
13561 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
13562 if test $ac_cv_type_daddr_t = yes; then
13566 cat >>confdefs.h <<_ACEOF
13567 #define daddr_t long
13572 echo "$as_me:$LINENO: checking for major_t" >&5
13573 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
13574 if test "${ac_cv_type_major_t+set}" = set; then
13575 echo $ECHO_N "(cached) $ECHO_C" >&6
13577 cat >conftest.$ac_ext <<_ACEOF
13580 cat confdefs.h >>conftest.$ac_ext
13581 cat >>conftest.$ac_ext <<_ACEOF
13582 /* end confdefs.h. */
13583 $ac_includes_default
13589 if (sizeof (major_t))
13595 rm -f conftest.$ac_objext
13596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13597 (eval $ac_compile) 2>conftest.er1
13599 grep -v '^ *+' conftest.er1 >conftest.err
13601 cat conftest.err >&5
13602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13603 (exit $ac_status); } &&
13604 { ac_try='test -z "$ac_c_werror_flag"
13605 || test ! -s conftest.err'
13606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13607 (eval $ac_try) 2>&5
13609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13610 (exit $ac_status); }; } &&
13611 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
13617 ac_cv_type_major_t=yes
13619 echo "$as_me: failed program was:" >&5
13620 sed 's/^/| /' conftest.$ac_ext >&5
13622 ac_cv_type_major_t=no
13624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13626 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
13627 echo "${ECHO_T}$ac_cv_type_major_t" >&6
13628 if test $ac_cv_type_major_t = yes; then
13632 cat >>confdefs.h <<_ACEOF
13633 #define major_t int
13638 echo "$as_me:$LINENO: checking for minor_t" >&5
13639 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
13640 if test "${ac_cv_type_minor_t+set}" = set; then
13641 echo $ECHO_N "(cached) $ECHO_C" >&6
13643 cat >conftest.$ac_ext <<_ACEOF
13646 cat confdefs.h >>conftest.$ac_ext
13647 cat >>conftest.$ac_ext <<_ACEOF
13648 /* end confdefs.h. */
13649 $ac_includes_default
13655 if (sizeof (minor_t))
13661 rm -f conftest.$ac_objext
13662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13663 (eval $ac_compile) 2>conftest.er1
13665 grep -v '^ *+' conftest.er1 >conftest.err
13667 cat conftest.err >&5
13668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13669 (exit $ac_status); } &&
13670 { ac_try='test -z "$ac_c_werror_flag"
13671 || test ! -s conftest.err'
13672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13673 (eval $ac_try) 2>&5
13675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13676 (exit $ac_status); }; } &&
13677 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
13683 ac_cv_type_minor_t=yes
13685 echo "$as_me: failed program was:" >&5
13686 sed 's/^/| /' conftest.$ac_ext >&5
13688 ac_cv_type_minor_t=no
13690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13692 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
13693 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
13694 if test $ac_cv_type_minor_t = yes; then
13698 cat >>confdefs.h <<_ACEOF
13699 #define minor_t int
13704 echo "$as_me:$LINENO: checking for ssize_t" >&5
13705 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
13706 if test "${ac_cv_type_ssize_t+set}" = set; then
13707 echo $ECHO_N "(cached) $ECHO_C" >&6
13709 cat >conftest.$ac_ext <<_ACEOF
13712 cat confdefs.h >>conftest.$ac_ext
13713 cat >>conftest.$ac_ext <<_ACEOF
13714 /* end confdefs.h. */
13715 $ac_includes_default
13721 if (sizeof (ssize_t))
13727 rm -f conftest.$ac_objext
13728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13729 (eval $ac_compile) 2>conftest.er1
13731 grep -v '^ *+' conftest.er1 >conftest.err
13733 cat conftest.err >&5
13734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13735 (exit $ac_status); } &&
13736 { ac_try='test -z "$ac_c_werror_flag"
13737 || test ! -s conftest.err'
13738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13739 (eval $ac_try) 2>&5
13741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13742 (exit $ac_status); }; } &&
13743 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
13749 ac_cv_type_ssize_t=yes
13751 echo "$as_me: failed program was:" >&5
13752 sed 's/^/| /' conftest.$ac_ext >&5
13754 ac_cv_type_ssize_t=no
13756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13758 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
13759 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
13760 if test $ac_cv_type_ssize_t = yes; then
13764 cat >>confdefs.h <<_ACEOF
13765 #define ssize_t int
13770 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
13771 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
13772 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
13773 echo $ECHO_N "(cached) $ECHO_C" >&6
13775 cat >conftest.$ac_ext <<_ACEOF
13778 cat confdefs.h >>conftest.$ac_ext
13779 cat >>conftest.$ac_ext <<_ACEOF
13780 /* end confdefs.h. */
13781 $ac_includes_default
13785 static struct stat ac_aggr;
13786 if (ac_aggr.st_blocks)
13792 rm -f conftest.$ac_objext
13793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13794 (eval $ac_compile) 2>conftest.er1
13796 grep -v '^ *+' conftest.er1 >conftest.err
13798 cat conftest.err >&5
13799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13800 (exit $ac_status); } &&
13801 { ac_try='test -z "$ac_c_werror_flag"
13802 || test ! -s conftest.err'
13803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13804 (eval $ac_try) 2>&5
13806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807 (exit $ac_status); }; } &&
13808 { ac_try='test -s conftest.$ac_objext'
13809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13810 (eval $ac_try) 2>&5
13812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13813 (exit $ac_status); }; }; then
13814 ac_cv_member_struct_stat_st_blocks=yes
13816 echo "$as_me: failed program was:" >&5
13817 sed 's/^/| /' conftest.$ac_ext >&5
13819 cat >conftest.$ac_ext <<_ACEOF
13822 cat confdefs.h >>conftest.$ac_ext
13823 cat >>conftest.$ac_ext <<_ACEOF
13824 /* end confdefs.h. */
13825 $ac_includes_default
13829 static struct stat ac_aggr;
13830 if (sizeof ac_aggr.st_blocks)
13836 rm -f conftest.$ac_objext
13837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13838 (eval $ac_compile) 2>conftest.er1
13840 grep -v '^ *+' conftest.er1 >conftest.err
13842 cat conftest.err >&5
13843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13844 (exit $ac_status); } &&
13845 { ac_try='test -z "$ac_c_werror_flag"
13846 || test ! -s conftest.err'
13847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13848 (eval $ac_try) 2>&5
13850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13851 (exit $ac_status); }; } &&
13852 { ac_try='test -s conftest.$ac_objext'
13853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13854 (eval $ac_try) 2>&5
13856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13857 (exit $ac_status); }; }; then
13858 ac_cv_member_struct_stat_st_blocks=yes
13860 echo "$as_me: failed program was:" >&5
13861 sed 's/^/| /' conftest.$ac_ext >&5
13863 ac_cv_member_struct_stat_st_blocks=no
13865 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13869 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
13870 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
13871 if test $ac_cv_member_struct_stat_st_blocks = yes; then
13873 cat >>confdefs.h <<_ACEOF
13874 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
13878 cat >>confdefs.h <<\_ACEOF
13879 #define HAVE_ST_BLOCKS 1
13884 "fileblocks.$ac_objext" | \
13885 *" fileblocks.$ac_objext" | \
13886 "fileblocks.$ac_objext "* | \
13887 *" fileblocks.$ac_objext "* ) ;;
13888 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
13895 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
13896 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
13897 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
13898 echo $ECHO_N "(cached) $ECHO_C" >&6
13900 cat >conftest.$ac_ext <<_ACEOF
13903 cat confdefs.h >>conftest.$ac_ext
13904 cat >>conftest.$ac_ext <<_ACEOF
13905 /* end confdefs.h. */
13906 $ac_includes_default
13910 static struct stat ac_aggr;
13911 if (ac_aggr.st_rdev)
13917 rm -f conftest.$ac_objext
13918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13919 (eval $ac_compile) 2>conftest.er1
13921 grep -v '^ *+' conftest.er1 >conftest.err
13923 cat conftest.err >&5
13924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13925 (exit $ac_status); } &&
13926 { ac_try='test -z "$ac_c_werror_flag"
13927 || test ! -s conftest.err'
13928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13929 (eval $ac_try) 2>&5
13931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13932 (exit $ac_status); }; } &&
13933 { ac_try='test -s conftest.$ac_objext'
13934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13935 (eval $ac_try) 2>&5
13937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13938 (exit $ac_status); }; }; then
13939 ac_cv_member_struct_stat_st_rdev=yes
13941 echo "$as_me: failed program was:" >&5
13942 sed 's/^/| /' conftest.$ac_ext >&5
13944 cat >conftest.$ac_ext <<_ACEOF
13947 cat confdefs.h >>conftest.$ac_ext
13948 cat >>conftest.$ac_ext <<_ACEOF
13949 /* end confdefs.h. */
13950 $ac_includes_default
13954 static struct stat ac_aggr;
13955 if (sizeof ac_aggr.st_rdev)
13961 rm -f conftest.$ac_objext
13962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13963 (eval $ac_compile) 2>conftest.er1
13965 grep -v '^ *+' conftest.er1 >conftest.err
13967 cat conftest.err >&5
13968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13969 (exit $ac_status); } &&
13970 { ac_try='test -z "$ac_c_werror_flag"
13971 || test ! -s conftest.err'
13972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13973 (eval $ac_try) 2>&5
13975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13976 (exit $ac_status); }; } &&
13977 { ac_try='test -s conftest.$ac_objext'
13978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13979 (eval $ac_try) 2>&5
13981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13982 (exit $ac_status); }; }; then
13983 ac_cv_member_struct_stat_st_rdev=yes
13985 echo "$as_me: failed program was:" >&5
13986 sed 's/^/| /' conftest.$ac_ext >&5
13988 ac_cv_member_struct_stat_st_rdev=no
13990 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13992 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13994 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
13995 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
13996 if test $ac_cv_member_struct_stat_st_rdev = yes; then
13998 cat >>confdefs.h <<_ACEOF
13999 #define HAVE_STRUCT_STAT_ST_RDEV 1
14003 cat >>confdefs.h <<\_ACEOF
14004 #define HAVE_ST_RDEV 1
14010 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
14011 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
14012 if test "${ac_cv_struct_tm+set}" = set; then
14013 echo $ECHO_N "(cached) $ECHO_C" >&6
14015 cat >conftest.$ac_ext <<_ACEOF
14018 cat confdefs.h >>conftest.$ac_ext
14019 cat >>conftest.$ac_ext <<_ACEOF
14020 /* end confdefs.h. */
14021 #include <sys/types.h>
14027 struct tm *tp; tp->tm_sec;
14032 rm -f conftest.$ac_objext
14033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14034 (eval $ac_compile) 2>conftest.er1
14036 grep -v '^ *+' conftest.er1 >conftest.err
14038 cat conftest.err >&5
14039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14040 (exit $ac_status); } &&
14041 { ac_try='test -z "$ac_c_werror_flag"
14042 || test ! -s conftest.err'
14043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14044 (eval $ac_try) 2>&5
14046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14047 (exit $ac_status); }; } &&
14048 { ac_try='test -s conftest.$ac_objext'
14049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14050 (eval $ac_try) 2>&5
14052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14053 (exit $ac_status); }; }; then
14054 ac_cv_struct_tm=time.h
14056 echo "$as_me: failed program was:" >&5
14057 sed 's/^/| /' conftest.$ac_ext >&5
14059 ac_cv_struct_tm=sys/time.h
14061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14063 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
14064 echo "${ECHO_T}$ac_cv_struct_tm" >&6
14065 if test $ac_cv_struct_tm = sys/time.h; then
14067 cat >>confdefs.h <<\_ACEOF
14068 #define TM_IN_SYS_TIME 1
14073 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14074 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14075 if test "${ac_cv_c_const+set}" = set; then
14076 echo $ECHO_N "(cached) $ECHO_C" >&6
14078 cat >conftest.$ac_ext <<_ACEOF
14081 cat confdefs.h >>conftest.$ac_ext
14082 cat >>conftest.$ac_ext <<_ACEOF
14083 /* end confdefs.h. */
14088 /* FIXME: Include the comments suggested by Paul. */
14089 #ifndef __cplusplus
14090 /* Ultrix mips cc rejects this. */
14091 typedef int charset[2];
14093 /* SunOS 4.1.1 cc rejects this. */
14094 char const *const *ccp;
14096 /* NEC SVR4.0.2 mips cc rejects this. */
14097 struct point {int x, y;};
14098 static struct point const zero = {0,0};
14099 /* AIX XL C 1.02.0.0 rejects this.
14100 It does not let you subtract one const X* pointer from another in
14101 an arm of an if-expression whose if-part is not a constant
14103 const char *g = "string";
14104 ccp = &g + (g ? g-g : 0);
14105 /* HPUX 7.0 cc rejects these. */
14108 ccp = (char const *const *) p;
14109 { /* SCO 3.2v4 cc rejects this. */
14111 char const *s = 0 ? (char *) 0 : (char const *) 0;
14115 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14116 int x[] = {25, 17};
14117 const int *foo = &x[0];
14120 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14121 typedef const int *iptr;
14125 { /* AIX XL C 1.02.0.0 rejects this saying
14126 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14127 struct s { int j; const int *ap[3]; };
14128 struct s *b; b->j = 5;
14130 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14131 const int foo = 10;
14139 rm -f conftest.$ac_objext
14140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14141 (eval $ac_compile) 2>conftest.er1
14143 grep -v '^ *+' conftest.er1 >conftest.err
14145 cat conftest.err >&5
14146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14147 (exit $ac_status); } &&
14148 { ac_try='test -z "$ac_c_werror_flag"
14149 || test ! -s conftest.err'
14150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14151 (eval $ac_try) 2>&5
14153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14154 (exit $ac_status); }; } &&
14155 { ac_try='test -s conftest.$ac_objext'
14156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14157 (eval $ac_try) 2>&5
14159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14160 (exit $ac_status); }; }; then
14163 echo "$as_me: failed program was:" >&5
14164 sed 's/^/| /' conftest.$ac_ext >&5
14168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14170 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14171 echo "${ECHO_T}$ac_cv_c_const" >&6
14172 if test $ac_cv_c_const = no; then
14174 cat >>confdefs.h <<\_ACEOF
14182 echo "$as_me:$LINENO: checking for char" >&5
14183 echo $ECHO_N "checking for char... $ECHO_C" >&6
14184 if test "${ac_cv_type_char+set}" = set; then
14185 echo $ECHO_N "(cached) $ECHO_C" >&6
14187 cat >conftest.$ac_ext <<_ACEOF
14190 cat confdefs.h >>conftest.$ac_ext
14191 cat >>conftest.$ac_ext <<_ACEOF
14192 /* end confdefs.h. */
14193 $ac_includes_default
14205 rm -f conftest.$ac_objext
14206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14207 (eval $ac_compile) 2>conftest.er1
14209 grep -v '^ *+' conftest.er1 >conftest.err
14211 cat conftest.err >&5
14212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14213 (exit $ac_status); } &&
14214 { ac_try='test -z "$ac_c_werror_flag"
14215 || test ! -s conftest.err'
14216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14217 (eval $ac_try) 2>&5
14219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14220 (exit $ac_status); }; } &&
14221 { ac_try='test -s conftest.$ac_objext'
14222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14223 (eval $ac_try) 2>&5
14225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14226 (exit $ac_status); }; }; then
14227 ac_cv_type_char=yes
14229 echo "$as_me: failed program was:" >&5
14230 sed 's/^/| /' conftest.$ac_ext >&5
14234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14236 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14237 echo "${ECHO_T}$ac_cv_type_char" >&6
14239 echo "$as_me:$LINENO: checking size of char" >&5
14240 echo $ECHO_N "checking size of char... $ECHO_C" >&6
14241 if test "${ac_cv_sizeof_char+set}" = set; then
14242 echo $ECHO_N "(cached) $ECHO_C" >&6
14244 if test "$ac_cv_type_char" = yes; then
14245 # The cast to unsigned long works around a bug in the HP C Compiler
14246 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14247 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14248 # This bug is HP SR number 8606223364.
14249 if test "$cross_compiling" = yes; then
14250 # Depending upon the size, compute the lo and hi bounds.
14251 cat >conftest.$ac_ext <<_ACEOF
14254 cat confdefs.h >>conftest.$ac_ext
14255 cat >>conftest.$ac_ext <<_ACEOF
14256 /* end confdefs.h. */
14257 $ac_includes_default
14261 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
14268 rm -f conftest.$ac_objext
14269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14270 (eval $ac_compile) 2>conftest.er1
14272 grep -v '^ *+' conftest.er1 >conftest.err
14274 cat conftest.err >&5
14275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14276 (exit $ac_status); } &&
14277 { ac_try='test -z "$ac_c_werror_flag"
14278 || test ! -s conftest.err'
14279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14280 (eval $ac_try) 2>&5
14282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14283 (exit $ac_status); }; } &&
14284 { ac_try='test -s conftest.$ac_objext'
14285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14286 (eval $ac_try) 2>&5
14288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14289 (exit $ac_status); }; }; then
14292 cat >conftest.$ac_ext <<_ACEOF
14295 cat confdefs.h >>conftest.$ac_ext
14296 cat >>conftest.$ac_ext <<_ACEOF
14297 /* end confdefs.h. */
14298 $ac_includes_default
14302 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14309 rm -f conftest.$ac_objext
14310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14311 (eval $ac_compile) 2>conftest.er1
14313 grep -v '^ *+' conftest.er1 >conftest.err
14315 cat conftest.err >&5
14316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14317 (exit $ac_status); } &&
14318 { ac_try='test -z "$ac_c_werror_flag"
14319 || test ! -s conftest.err'
14320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14321 (eval $ac_try) 2>&5
14323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14324 (exit $ac_status); }; } &&
14325 { ac_try='test -s conftest.$ac_objext'
14326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14327 (eval $ac_try) 2>&5
14329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14330 (exit $ac_status); }; }; then
14331 ac_hi=$ac_mid; break
14333 echo "$as_me: failed program was:" >&5
14334 sed 's/^/| /' conftest.$ac_ext >&5
14336 ac_lo=`expr $ac_mid + 1`
14337 if test $ac_lo -le $ac_mid; then
14341 ac_mid=`expr 2 '*' $ac_mid + 1`
14343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14346 echo "$as_me: failed program was:" >&5
14347 sed 's/^/| /' conftest.$ac_ext >&5
14349 cat >conftest.$ac_ext <<_ACEOF
14352 cat confdefs.h >>conftest.$ac_ext
14353 cat >>conftest.$ac_ext <<_ACEOF
14354 /* end confdefs.h. */
14355 $ac_includes_default
14359 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
14366 rm -f conftest.$ac_objext
14367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14368 (eval $ac_compile) 2>conftest.er1
14370 grep -v '^ *+' conftest.er1 >conftest.err
14372 cat conftest.err >&5
14373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14374 (exit $ac_status); } &&
14375 { ac_try='test -z "$ac_c_werror_flag"
14376 || test ! -s conftest.err'
14377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14378 (eval $ac_try) 2>&5
14380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14381 (exit $ac_status); }; } &&
14382 { ac_try='test -s conftest.$ac_objext'
14383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14384 (eval $ac_try) 2>&5
14386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14387 (exit $ac_status); }; }; then
14390 cat >conftest.$ac_ext <<_ACEOF
14393 cat confdefs.h >>conftest.$ac_ext
14394 cat >>conftest.$ac_ext <<_ACEOF
14395 /* end confdefs.h. */
14396 $ac_includes_default
14400 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
14407 rm -f conftest.$ac_objext
14408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14409 (eval $ac_compile) 2>conftest.er1
14411 grep -v '^ *+' conftest.er1 >conftest.err
14413 cat conftest.err >&5
14414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14415 (exit $ac_status); } &&
14416 { ac_try='test -z "$ac_c_werror_flag"
14417 || test ! -s conftest.err'
14418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14419 (eval $ac_try) 2>&5
14421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14422 (exit $ac_status); }; } &&
14423 { ac_try='test -s conftest.$ac_objext'
14424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14425 (eval $ac_try) 2>&5
14427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14428 (exit $ac_status); }; }; then
14429 ac_lo=$ac_mid; break
14431 echo "$as_me: failed program was:" >&5
14432 sed 's/^/| /' conftest.$ac_ext >&5
14434 ac_hi=`expr '(' $ac_mid ')' - 1`
14435 if test $ac_mid -le $ac_hi; then
14439 ac_mid=`expr 2 '*' $ac_mid`
14441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14444 echo "$as_me: failed program was:" >&5
14445 sed 's/^/| /' conftest.$ac_ext >&5
14449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14451 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14452 # Binary search between lo and hi bounds.
14453 while test "x$ac_lo" != "x$ac_hi"; do
14454 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14455 cat >conftest.$ac_ext <<_ACEOF
14458 cat confdefs.h >>conftest.$ac_ext
14459 cat >>conftest.$ac_ext <<_ACEOF
14460 /* end confdefs.h. */
14461 $ac_includes_default
14465 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14472 rm -f conftest.$ac_objext
14473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14474 (eval $ac_compile) 2>conftest.er1
14476 grep -v '^ *+' conftest.er1 >conftest.err
14478 cat conftest.err >&5
14479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14480 (exit $ac_status); } &&
14481 { ac_try='test -z "$ac_c_werror_flag"
14482 || test ! -s conftest.err'
14483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14484 (eval $ac_try) 2>&5
14486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14487 (exit $ac_status); }; } &&
14488 { ac_try='test -s conftest.$ac_objext'
14489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14490 (eval $ac_try) 2>&5
14492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14493 (exit $ac_status); }; }; then
14496 echo "$as_me: failed program was:" >&5
14497 sed 's/^/| /' conftest.$ac_ext >&5
14499 ac_lo=`expr '(' $ac_mid ')' + 1`
14501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14504 ?*) ac_cv_sizeof_char=$ac_lo;;
14505 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14506 See \`config.log' for more details." >&5
14507 echo "$as_me: error: cannot compute sizeof (char), 77
14508 See \`config.log' for more details." >&2;}
14509 { (exit 1); exit 1; }; } ;;
14512 if test "$cross_compiling" = yes; then
14513 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14514 See \`config.log' for more details." >&5
14515 echo "$as_me: error: cannot run test program while cross compiling
14516 See \`config.log' for more details." >&2;}
14517 { (exit 1); exit 1; }; }
14519 cat >conftest.$ac_ext <<_ACEOF
14522 cat confdefs.h >>conftest.$ac_ext
14523 cat >>conftest.$ac_ext <<_ACEOF
14524 /* end confdefs.h. */
14525 $ac_includes_default
14526 long longval () { return (long) (sizeof (char)); }
14527 unsigned long ulongval () { return (long) (sizeof (char)); }
14529 #include <stdlib.h>
14534 FILE *f = fopen ("conftest.val", "w");
14537 if (((long) (sizeof (char))) < 0)
14539 long i = longval ();
14540 if (i != ((long) (sizeof (char))))
14542 fprintf (f, "%ld\n", i);
14546 unsigned long i = ulongval ();
14547 if (i != ((long) (sizeof (char))))
14549 fprintf (f, "%lu\n", i);
14551 exit (ferror (f) || fclose (f) != 0);
14557 rm -f conftest$ac_exeext
14558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14559 (eval $ac_link) 2>&5
14561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14562 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14564 (eval $ac_try) 2>&5
14566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14567 (exit $ac_status); }; }; then
14568 ac_cv_sizeof_char=`cat conftest.val`
14570 echo "$as_me: program exited with status $ac_status" >&5
14571 echo "$as_me: failed program was:" >&5
14572 sed 's/^/| /' conftest.$ac_ext >&5
14574 ( exit $ac_status )
14575 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14576 See \`config.log' for more details." >&5
14577 echo "$as_me: error: cannot compute sizeof (char), 77
14578 See \`config.log' for more details." >&2;}
14579 { (exit 1); exit 1; }; }
14581 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14586 ac_cv_sizeof_char=0
14589 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14590 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14591 cat >>confdefs.h <<_ACEOF
14592 #define SIZEOF_CHAR $ac_cv_sizeof_char
14596 echo "$as_me:$LINENO: checking for short int" >&5
14597 echo $ECHO_N "checking for short int... $ECHO_C" >&6
14598 if test "${ac_cv_type_short_int+set}" = set; then
14599 echo $ECHO_N "(cached) $ECHO_C" >&6
14601 cat >conftest.$ac_ext <<_ACEOF
14604 cat confdefs.h >>conftest.$ac_ext
14605 cat >>conftest.$ac_ext <<_ACEOF
14606 /* end confdefs.h. */
14607 $ac_includes_default
14611 if ((short int *) 0)
14613 if (sizeof (short int))
14619 rm -f conftest.$ac_objext
14620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14621 (eval $ac_compile) 2>conftest.er1
14623 grep -v '^ *+' conftest.er1 >conftest.err
14625 cat conftest.err >&5
14626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14627 (exit $ac_status); } &&
14628 { ac_try='test -z "$ac_c_werror_flag"
14629 || test ! -s conftest.err'
14630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14631 (eval $ac_try) 2>&5
14633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14634 (exit $ac_status); }; } &&
14635 { ac_try='test -s conftest.$ac_objext'
14636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14637 (eval $ac_try) 2>&5
14639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14640 (exit $ac_status); }; }; then
14641 ac_cv_type_short_int=yes
14643 echo "$as_me: failed program was:" >&5
14644 sed 's/^/| /' conftest.$ac_ext >&5
14646 ac_cv_type_short_int=no
14648 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14650 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
14651 echo "${ECHO_T}$ac_cv_type_short_int" >&6
14653 echo "$as_me:$LINENO: checking size of short int" >&5
14654 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
14655 if test "${ac_cv_sizeof_short_int+set}" = set; then
14656 echo $ECHO_N "(cached) $ECHO_C" >&6
14658 if test "$ac_cv_type_short_int" = yes; then
14659 # The cast to unsigned long works around a bug in the HP C Compiler
14660 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14661 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14662 # This bug is HP SR number 8606223364.
14663 if test "$cross_compiling" = yes; then
14664 # Depending upon the size, compute the lo and hi bounds.
14665 cat >conftest.$ac_ext <<_ACEOF
14668 cat confdefs.h >>conftest.$ac_ext
14669 cat >>conftest.$ac_ext <<_ACEOF
14670 /* end confdefs.h. */
14671 $ac_includes_default
14675 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
14682 rm -f conftest.$ac_objext
14683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14684 (eval $ac_compile) 2>conftest.er1
14686 grep -v '^ *+' conftest.er1 >conftest.err
14688 cat conftest.err >&5
14689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14690 (exit $ac_status); } &&
14691 { ac_try='test -z "$ac_c_werror_flag"
14692 || test ! -s conftest.err'
14693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14694 (eval $ac_try) 2>&5
14696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14697 (exit $ac_status); }; } &&
14698 { ac_try='test -s conftest.$ac_objext'
14699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14700 (eval $ac_try) 2>&5
14702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14703 (exit $ac_status); }; }; then
14706 cat >conftest.$ac_ext <<_ACEOF
14709 cat confdefs.h >>conftest.$ac_ext
14710 cat >>conftest.$ac_ext <<_ACEOF
14711 /* end confdefs.h. */
14712 $ac_includes_default
14716 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
14723 rm -f conftest.$ac_objext
14724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14725 (eval $ac_compile) 2>conftest.er1
14727 grep -v '^ *+' conftest.er1 >conftest.err
14729 cat conftest.err >&5
14730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14731 (exit $ac_status); } &&
14732 { ac_try='test -z "$ac_c_werror_flag"
14733 || test ! -s conftest.err'
14734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14735 (eval $ac_try) 2>&5
14737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14738 (exit $ac_status); }; } &&
14739 { ac_try='test -s conftest.$ac_objext'
14740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14741 (eval $ac_try) 2>&5
14743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14744 (exit $ac_status); }; }; then
14745 ac_hi=$ac_mid; break
14747 echo "$as_me: failed program was:" >&5
14748 sed 's/^/| /' conftest.$ac_ext >&5
14750 ac_lo=`expr $ac_mid + 1`
14751 if test $ac_lo -le $ac_mid; then
14755 ac_mid=`expr 2 '*' $ac_mid + 1`
14757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14760 echo "$as_me: failed program was:" >&5
14761 sed 's/^/| /' conftest.$ac_ext >&5
14763 cat >conftest.$ac_ext <<_ACEOF
14766 cat confdefs.h >>conftest.$ac_ext
14767 cat >>conftest.$ac_ext <<_ACEOF
14768 /* end confdefs.h. */
14769 $ac_includes_default
14773 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
14780 rm -f conftest.$ac_objext
14781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14782 (eval $ac_compile) 2>conftest.er1
14784 grep -v '^ *+' conftest.er1 >conftest.err
14786 cat conftest.err >&5
14787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14788 (exit $ac_status); } &&
14789 { ac_try='test -z "$ac_c_werror_flag"
14790 || test ! -s conftest.err'
14791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14792 (eval $ac_try) 2>&5
14794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14795 (exit $ac_status); }; } &&
14796 { ac_try='test -s conftest.$ac_objext'
14797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14798 (eval $ac_try) 2>&5
14800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14801 (exit $ac_status); }; }; then
14804 cat >conftest.$ac_ext <<_ACEOF
14807 cat confdefs.h >>conftest.$ac_ext
14808 cat >>conftest.$ac_ext <<_ACEOF
14809 /* end confdefs.h. */
14810 $ac_includes_default
14814 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
14821 rm -f conftest.$ac_objext
14822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14823 (eval $ac_compile) 2>conftest.er1
14825 grep -v '^ *+' conftest.er1 >conftest.err
14827 cat conftest.err >&5
14828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14829 (exit $ac_status); } &&
14830 { ac_try='test -z "$ac_c_werror_flag"
14831 || test ! -s conftest.err'
14832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14833 (eval $ac_try) 2>&5
14835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14836 (exit $ac_status); }; } &&
14837 { ac_try='test -s conftest.$ac_objext'
14838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14839 (eval $ac_try) 2>&5
14841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14842 (exit $ac_status); }; }; then
14843 ac_lo=$ac_mid; break
14845 echo "$as_me: failed program was:" >&5
14846 sed 's/^/| /' conftest.$ac_ext >&5
14848 ac_hi=`expr '(' $ac_mid ')' - 1`
14849 if test $ac_mid -le $ac_hi; then
14853 ac_mid=`expr 2 '*' $ac_mid`
14855 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14858 echo "$as_me: failed program was:" >&5
14859 sed 's/^/| /' conftest.$ac_ext >&5
14863 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14865 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14866 # Binary search between lo and hi bounds.
14867 while test "x$ac_lo" != "x$ac_hi"; do
14868 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14869 cat >conftest.$ac_ext <<_ACEOF
14872 cat confdefs.h >>conftest.$ac_ext
14873 cat >>conftest.$ac_ext <<_ACEOF
14874 /* end confdefs.h. */
14875 $ac_includes_default
14879 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
14886 rm -f conftest.$ac_objext
14887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14888 (eval $ac_compile) 2>conftest.er1
14890 grep -v '^ *+' conftest.er1 >conftest.err
14892 cat conftest.err >&5
14893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14894 (exit $ac_status); } &&
14895 { ac_try='test -z "$ac_c_werror_flag"
14896 || test ! -s conftest.err'
14897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14898 (eval $ac_try) 2>&5
14900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14901 (exit $ac_status); }; } &&
14902 { ac_try='test -s conftest.$ac_objext'
14903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14904 (eval $ac_try) 2>&5
14906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14907 (exit $ac_status); }; }; then
14910 echo "$as_me: failed program was:" >&5
14911 sed 's/^/| /' conftest.$ac_ext >&5
14913 ac_lo=`expr '(' $ac_mid ')' + 1`
14915 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14918 ?*) ac_cv_sizeof_short_int=$ac_lo;;
14919 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
14920 See \`config.log' for more details." >&5
14921 echo "$as_me: error: cannot compute sizeof (short int), 77
14922 See \`config.log' for more details." >&2;}
14923 { (exit 1); exit 1; }; } ;;
14926 if test "$cross_compiling" = yes; then
14927 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14928 See \`config.log' for more details." >&5
14929 echo "$as_me: error: cannot run test program while cross compiling
14930 See \`config.log' for more details." >&2;}
14931 { (exit 1); exit 1; }; }
14933 cat >conftest.$ac_ext <<_ACEOF
14936 cat confdefs.h >>conftest.$ac_ext
14937 cat >>conftest.$ac_ext <<_ACEOF
14938 /* end confdefs.h. */
14939 $ac_includes_default
14940 long longval () { return (long) (sizeof (short int)); }
14941 unsigned long ulongval () { return (long) (sizeof (short int)); }
14943 #include <stdlib.h>
14948 FILE *f = fopen ("conftest.val", "w");
14951 if (((long) (sizeof (short int))) < 0)
14953 long i = longval ();
14954 if (i != ((long) (sizeof (short int))))
14956 fprintf (f, "%ld\n", i);
14960 unsigned long i = ulongval ();
14961 if (i != ((long) (sizeof (short int))))
14963 fprintf (f, "%lu\n", i);
14965 exit (ferror (f) || fclose (f) != 0);
14971 rm -f conftest$ac_exeext
14972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14973 (eval $ac_link) 2>&5
14975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14976 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14978 (eval $ac_try) 2>&5
14980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14981 (exit $ac_status); }; }; then
14982 ac_cv_sizeof_short_int=`cat conftest.val`
14984 echo "$as_me: program exited with status $ac_status" >&5
14985 echo "$as_me: failed program was:" >&5
14986 sed 's/^/| /' conftest.$ac_ext >&5
14988 ( exit $ac_status )
14989 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
14990 See \`config.log' for more details." >&5
14991 echo "$as_me: error: cannot compute sizeof (short int), 77
14992 See \`config.log' for more details." >&2;}
14993 { (exit 1); exit 1; }; }
14995 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15000 ac_cv_sizeof_short_int=0
15003 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
15004 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
15005 cat >>confdefs.h <<_ACEOF
15006 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
15010 echo "$as_me:$LINENO: checking for int" >&5
15011 echo $ECHO_N "checking for int... $ECHO_C" >&6
15012 if test "${ac_cv_type_int+set}" = set; then
15013 echo $ECHO_N "(cached) $ECHO_C" >&6
15015 cat >conftest.$ac_ext <<_ACEOF
15018 cat confdefs.h >>conftest.$ac_ext
15019 cat >>conftest.$ac_ext <<_ACEOF
15020 /* end confdefs.h. */
15021 $ac_includes_default
15033 rm -f conftest.$ac_objext
15034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15035 (eval $ac_compile) 2>conftest.er1
15037 grep -v '^ *+' conftest.er1 >conftest.err
15039 cat conftest.err >&5
15040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15041 (exit $ac_status); } &&
15042 { ac_try='test -z "$ac_c_werror_flag"
15043 || test ! -s conftest.err'
15044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15045 (eval $ac_try) 2>&5
15047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15048 (exit $ac_status); }; } &&
15049 { ac_try='test -s conftest.$ac_objext'
15050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15051 (eval $ac_try) 2>&5
15053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15054 (exit $ac_status); }; }; then
15057 echo "$as_me: failed program was:" >&5
15058 sed 's/^/| /' conftest.$ac_ext >&5
15062 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15064 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15065 echo "${ECHO_T}$ac_cv_type_int" >&6
15067 echo "$as_me:$LINENO: checking size of int" >&5
15068 echo $ECHO_N "checking size of int... $ECHO_C" >&6
15069 if test "${ac_cv_sizeof_int+set}" = set; then
15070 echo $ECHO_N "(cached) $ECHO_C" >&6
15072 if test "$ac_cv_type_int" = yes; then
15073 # The cast to unsigned long works around a bug in the HP C Compiler
15074 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15075 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15076 # This bug is HP SR number 8606223364.
15077 if test "$cross_compiling" = yes; then
15078 # Depending upon the size, compute the lo and hi bounds.
15079 cat >conftest.$ac_ext <<_ACEOF
15082 cat confdefs.h >>conftest.$ac_ext
15083 cat >>conftest.$ac_ext <<_ACEOF
15084 /* end confdefs.h. */
15085 $ac_includes_default
15089 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15096 rm -f conftest.$ac_objext
15097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15098 (eval $ac_compile) 2>conftest.er1
15100 grep -v '^ *+' conftest.er1 >conftest.err
15102 cat conftest.err >&5
15103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15104 (exit $ac_status); } &&
15105 { ac_try='test -z "$ac_c_werror_flag"
15106 || test ! -s conftest.err'
15107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15108 (eval $ac_try) 2>&5
15110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15111 (exit $ac_status); }; } &&
15112 { ac_try='test -s conftest.$ac_objext'
15113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15114 (eval $ac_try) 2>&5
15116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15117 (exit $ac_status); }; }; then
15120 cat >conftest.$ac_ext <<_ACEOF
15123 cat confdefs.h >>conftest.$ac_ext
15124 cat >>conftest.$ac_ext <<_ACEOF
15125 /* end confdefs.h. */
15126 $ac_includes_default
15130 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15137 rm -f conftest.$ac_objext
15138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15139 (eval $ac_compile) 2>conftest.er1
15141 grep -v '^ *+' conftest.er1 >conftest.err
15143 cat conftest.err >&5
15144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15145 (exit $ac_status); } &&
15146 { ac_try='test -z "$ac_c_werror_flag"
15147 || test ! -s conftest.err'
15148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15149 (eval $ac_try) 2>&5
15151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15152 (exit $ac_status); }; } &&
15153 { ac_try='test -s conftest.$ac_objext'
15154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15155 (eval $ac_try) 2>&5
15157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15158 (exit $ac_status); }; }; then
15159 ac_hi=$ac_mid; break
15161 echo "$as_me: failed program was:" >&5
15162 sed 's/^/| /' conftest.$ac_ext >&5
15164 ac_lo=`expr $ac_mid + 1`
15165 if test $ac_lo -le $ac_mid; then
15169 ac_mid=`expr 2 '*' $ac_mid + 1`
15171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15174 echo "$as_me: failed program was:" >&5
15175 sed 's/^/| /' conftest.$ac_ext >&5
15177 cat >conftest.$ac_ext <<_ACEOF
15180 cat confdefs.h >>conftest.$ac_ext
15181 cat >>conftest.$ac_ext <<_ACEOF
15182 /* end confdefs.h. */
15183 $ac_includes_default
15187 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15194 rm -f conftest.$ac_objext
15195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15196 (eval $ac_compile) 2>conftest.er1
15198 grep -v '^ *+' conftest.er1 >conftest.err
15200 cat conftest.err >&5
15201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15202 (exit $ac_status); } &&
15203 { ac_try='test -z "$ac_c_werror_flag"
15204 || test ! -s conftest.err'
15205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15206 (eval $ac_try) 2>&5
15208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15209 (exit $ac_status); }; } &&
15210 { ac_try='test -s conftest.$ac_objext'
15211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15212 (eval $ac_try) 2>&5
15214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15215 (exit $ac_status); }; }; then
15218 cat >conftest.$ac_ext <<_ACEOF
15221 cat confdefs.h >>conftest.$ac_ext
15222 cat >>conftest.$ac_ext <<_ACEOF
15223 /* end confdefs.h. */
15224 $ac_includes_default
15228 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15235 rm -f conftest.$ac_objext
15236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15237 (eval $ac_compile) 2>conftest.er1
15239 grep -v '^ *+' conftest.er1 >conftest.err
15241 cat conftest.err >&5
15242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15243 (exit $ac_status); } &&
15244 { ac_try='test -z "$ac_c_werror_flag"
15245 || test ! -s conftest.err'
15246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15247 (eval $ac_try) 2>&5
15249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15250 (exit $ac_status); }; } &&
15251 { ac_try='test -s conftest.$ac_objext'
15252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15253 (eval $ac_try) 2>&5
15255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15256 (exit $ac_status); }; }; then
15257 ac_lo=$ac_mid; break
15259 echo "$as_me: failed program was:" >&5
15260 sed 's/^/| /' conftest.$ac_ext >&5
15262 ac_hi=`expr '(' $ac_mid ')' - 1`
15263 if test $ac_mid -le $ac_hi; then
15267 ac_mid=`expr 2 '*' $ac_mid`
15269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15272 echo "$as_me: failed program was:" >&5
15273 sed 's/^/| /' conftest.$ac_ext >&5
15277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15279 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15280 # Binary search between lo and hi bounds.
15281 while test "x$ac_lo" != "x$ac_hi"; do
15282 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15283 cat >conftest.$ac_ext <<_ACEOF
15286 cat confdefs.h >>conftest.$ac_ext
15287 cat >>conftest.$ac_ext <<_ACEOF
15288 /* end confdefs.h. */
15289 $ac_includes_default
15293 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15300 rm -f conftest.$ac_objext
15301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15302 (eval $ac_compile) 2>conftest.er1
15304 grep -v '^ *+' conftest.er1 >conftest.err
15306 cat conftest.err >&5
15307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15308 (exit $ac_status); } &&
15309 { ac_try='test -z "$ac_c_werror_flag"
15310 || test ! -s conftest.err'
15311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15312 (eval $ac_try) 2>&5
15314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15315 (exit $ac_status); }; } &&
15316 { ac_try='test -s conftest.$ac_objext'
15317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15318 (eval $ac_try) 2>&5
15320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15321 (exit $ac_status); }; }; then
15324 echo "$as_me: failed program was:" >&5
15325 sed 's/^/| /' conftest.$ac_ext >&5
15327 ac_lo=`expr '(' $ac_mid ')' + 1`
15329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15332 ?*) ac_cv_sizeof_int=$ac_lo;;
15333 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15334 See \`config.log' for more details." >&5
15335 echo "$as_me: error: cannot compute sizeof (int), 77
15336 See \`config.log' for more details." >&2;}
15337 { (exit 1); exit 1; }; } ;;
15340 if test "$cross_compiling" = yes; then
15341 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15342 See \`config.log' for more details." >&5
15343 echo "$as_me: error: cannot run test program while cross compiling
15344 See \`config.log' for more details." >&2;}
15345 { (exit 1); exit 1; }; }
15347 cat >conftest.$ac_ext <<_ACEOF
15350 cat confdefs.h >>conftest.$ac_ext
15351 cat >>conftest.$ac_ext <<_ACEOF
15352 /* end confdefs.h. */
15353 $ac_includes_default
15354 long longval () { return (long) (sizeof (int)); }
15355 unsigned long ulongval () { return (long) (sizeof (int)); }
15357 #include <stdlib.h>
15362 FILE *f = fopen ("conftest.val", "w");
15365 if (((long) (sizeof (int))) < 0)
15367 long i = longval ();
15368 if (i != ((long) (sizeof (int))))
15370 fprintf (f, "%ld\n", i);
15374 unsigned long i = ulongval ();
15375 if (i != ((long) (sizeof (int))))
15377 fprintf (f, "%lu\n", i);
15379 exit (ferror (f) || fclose (f) != 0);
15385 rm -f conftest$ac_exeext
15386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15387 (eval $ac_link) 2>&5
15389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15390 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15392 (eval $ac_try) 2>&5
15394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15395 (exit $ac_status); }; }; then
15396 ac_cv_sizeof_int=`cat conftest.val`
15398 echo "$as_me: program exited with status $ac_status" >&5
15399 echo "$as_me: failed program was:" >&5
15400 sed 's/^/| /' conftest.$ac_ext >&5
15402 ( exit $ac_status )
15403 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15404 See \`config.log' for more details." >&5
15405 echo "$as_me: error: cannot compute sizeof (int), 77
15406 See \`config.log' for more details." >&2;}
15407 { (exit 1); exit 1; }; }
15409 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15417 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15418 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15419 cat >>confdefs.h <<_ACEOF
15420 #define SIZEOF_INT $ac_cv_sizeof_int
15424 echo "$as_me:$LINENO: checking for long int" >&5
15425 echo $ECHO_N "checking for long int... $ECHO_C" >&6
15426 if test "${ac_cv_type_long_int+set}" = set; then
15427 echo $ECHO_N "(cached) $ECHO_C" >&6
15429 cat >conftest.$ac_ext <<_ACEOF
15432 cat confdefs.h >>conftest.$ac_ext
15433 cat >>conftest.$ac_ext <<_ACEOF
15434 /* end confdefs.h. */
15435 $ac_includes_default
15439 if ((long int *) 0)
15441 if (sizeof (long int))
15447 rm -f conftest.$ac_objext
15448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15449 (eval $ac_compile) 2>conftest.er1
15451 grep -v '^ *+' conftest.er1 >conftest.err
15453 cat conftest.err >&5
15454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15455 (exit $ac_status); } &&
15456 { ac_try='test -z "$ac_c_werror_flag"
15457 || test ! -s conftest.err'
15458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15459 (eval $ac_try) 2>&5
15461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15462 (exit $ac_status); }; } &&
15463 { ac_try='test -s conftest.$ac_objext'
15464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15465 (eval $ac_try) 2>&5
15467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15468 (exit $ac_status); }; }; then
15469 ac_cv_type_long_int=yes
15471 echo "$as_me: failed program was:" >&5
15472 sed 's/^/| /' conftest.$ac_ext >&5
15474 ac_cv_type_long_int=no
15476 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15478 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
15479 echo "${ECHO_T}$ac_cv_type_long_int" >&6
15481 echo "$as_me:$LINENO: checking size of long int" >&5
15482 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
15483 if test "${ac_cv_sizeof_long_int+set}" = set; then
15484 echo $ECHO_N "(cached) $ECHO_C" >&6
15486 if test "$ac_cv_type_long_int" = yes; then
15487 # The cast to unsigned long works around a bug in the HP C Compiler
15488 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15489 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15490 # This bug is HP SR number 8606223364.
15491 if test "$cross_compiling" = yes; then
15492 # Depending upon the size, compute the lo and hi bounds.
15493 cat >conftest.$ac_ext <<_ACEOF
15496 cat confdefs.h >>conftest.$ac_ext
15497 cat >>conftest.$ac_ext <<_ACEOF
15498 /* end confdefs.h. */
15499 $ac_includes_default
15503 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
15510 rm -f conftest.$ac_objext
15511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15512 (eval $ac_compile) 2>conftest.er1
15514 grep -v '^ *+' conftest.er1 >conftest.err
15516 cat conftest.err >&5
15517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15518 (exit $ac_status); } &&
15519 { ac_try='test -z "$ac_c_werror_flag"
15520 || test ! -s conftest.err'
15521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15522 (eval $ac_try) 2>&5
15524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15525 (exit $ac_status); }; } &&
15526 { ac_try='test -s conftest.$ac_objext'
15527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15528 (eval $ac_try) 2>&5
15530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15531 (exit $ac_status); }; }; then
15534 cat >conftest.$ac_ext <<_ACEOF
15537 cat confdefs.h >>conftest.$ac_ext
15538 cat >>conftest.$ac_ext <<_ACEOF
15539 /* end confdefs.h. */
15540 $ac_includes_default
15544 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
15551 rm -f conftest.$ac_objext
15552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15553 (eval $ac_compile) 2>conftest.er1
15555 grep -v '^ *+' conftest.er1 >conftest.err
15557 cat conftest.err >&5
15558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15559 (exit $ac_status); } &&
15560 { ac_try='test -z "$ac_c_werror_flag"
15561 || test ! -s conftest.err'
15562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15563 (eval $ac_try) 2>&5
15565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15566 (exit $ac_status); }; } &&
15567 { ac_try='test -s conftest.$ac_objext'
15568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15569 (eval $ac_try) 2>&5
15571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15572 (exit $ac_status); }; }; then
15573 ac_hi=$ac_mid; break
15575 echo "$as_me: failed program was:" >&5
15576 sed 's/^/| /' conftest.$ac_ext >&5
15578 ac_lo=`expr $ac_mid + 1`
15579 if test $ac_lo -le $ac_mid; then
15583 ac_mid=`expr 2 '*' $ac_mid + 1`
15585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15588 echo "$as_me: failed program was:" >&5
15589 sed 's/^/| /' conftest.$ac_ext >&5
15591 cat >conftest.$ac_ext <<_ACEOF
15594 cat confdefs.h >>conftest.$ac_ext
15595 cat >>conftest.$ac_ext <<_ACEOF
15596 /* end confdefs.h. */
15597 $ac_includes_default
15601 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
15608 rm -f conftest.$ac_objext
15609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15610 (eval $ac_compile) 2>conftest.er1
15612 grep -v '^ *+' conftest.er1 >conftest.err
15614 cat conftest.err >&5
15615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15616 (exit $ac_status); } &&
15617 { ac_try='test -z "$ac_c_werror_flag"
15618 || test ! -s conftest.err'
15619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15620 (eval $ac_try) 2>&5
15622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15623 (exit $ac_status); }; } &&
15624 { ac_try='test -s conftest.$ac_objext'
15625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15626 (eval $ac_try) 2>&5
15628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15629 (exit $ac_status); }; }; then
15632 cat >conftest.$ac_ext <<_ACEOF
15635 cat confdefs.h >>conftest.$ac_ext
15636 cat >>conftest.$ac_ext <<_ACEOF
15637 /* end confdefs.h. */
15638 $ac_includes_default
15642 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
15649 rm -f conftest.$ac_objext
15650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15651 (eval $ac_compile) 2>conftest.er1
15653 grep -v '^ *+' conftest.er1 >conftest.err
15655 cat conftest.err >&5
15656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15657 (exit $ac_status); } &&
15658 { ac_try='test -z "$ac_c_werror_flag"
15659 || test ! -s conftest.err'
15660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15661 (eval $ac_try) 2>&5
15663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15664 (exit $ac_status); }; } &&
15665 { ac_try='test -s conftest.$ac_objext'
15666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15667 (eval $ac_try) 2>&5
15669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15670 (exit $ac_status); }; }; then
15671 ac_lo=$ac_mid; break
15673 echo "$as_me: failed program was:" >&5
15674 sed 's/^/| /' conftest.$ac_ext >&5
15676 ac_hi=`expr '(' $ac_mid ')' - 1`
15677 if test $ac_mid -le $ac_hi; then
15681 ac_mid=`expr 2 '*' $ac_mid`
15683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15686 echo "$as_me: failed program was:" >&5
15687 sed 's/^/| /' conftest.$ac_ext >&5
15691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15694 # Binary search between lo and hi bounds.
15695 while test "x$ac_lo" != "x$ac_hi"; do
15696 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15697 cat >conftest.$ac_ext <<_ACEOF
15700 cat confdefs.h >>conftest.$ac_ext
15701 cat >>conftest.$ac_ext <<_ACEOF
15702 /* end confdefs.h. */
15703 $ac_includes_default
15707 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
15714 rm -f conftest.$ac_objext
15715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15716 (eval $ac_compile) 2>conftest.er1
15718 grep -v '^ *+' conftest.er1 >conftest.err
15720 cat conftest.err >&5
15721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15722 (exit $ac_status); } &&
15723 { ac_try='test -z "$ac_c_werror_flag"
15724 || test ! -s conftest.err'
15725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15726 (eval $ac_try) 2>&5
15728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15729 (exit $ac_status); }; } &&
15730 { ac_try='test -s conftest.$ac_objext'
15731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15732 (eval $ac_try) 2>&5
15734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15735 (exit $ac_status); }; }; then
15738 echo "$as_me: failed program was:" >&5
15739 sed 's/^/| /' conftest.$ac_ext >&5
15741 ac_lo=`expr '(' $ac_mid ')' + 1`
15743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15746 ?*) ac_cv_sizeof_long_int=$ac_lo;;
15747 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
15748 See \`config.log' for more details." >&5
15749 echo "$as_me: error: cannot compute sizeof (long int), 77
15750 See \`config.log' for more details." >&2;}
15751 { (exit 1); exit 1; }; } ;;
15754 if test "$cross_compiling" = yes; then
15755 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15756 See \`config.log' for more details." >&5
15757 echo "$as_me: error: cannot run test program while cross compiling
15758 See \`config.log' for more details." >&2;}
15759 { (exit 1); exit 1; }; }
15761 cat >conftest.$ac_ext <<_ACEOF
15764 cat confdefs.h >>conftest.$ac_ext
15765 cat >>conftest.$ac_ext <<_ACEOF
15766 /* end confdefs.h. */
15767 $ac_includes_default
15768 long longval () { return (long) (sizeof (long int)); }
15769 unsigned long ulongval () { return (long) (sizeof (long int)); }
15771 #include <stdlib.h>
15776 FILE *f = fopen ("conftest.val", "w");
15779 if (((long) (sizeof (long int))) < 0)
15781 long i = longval ();
15782 if (i != ((long) (sizeof (long int))))
15784 fprintf (f, "%ld\n", i);
15788 unsigned long i = ulongval ();
15789 if (i != ((long) (sizeof (long int))))
15791 fprintf (f, "%lu\n", i);
15793 exit (ferror (f) || fclose (f) != 0);
15799 rm -f conftest$ac_exeext
15800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15801 (eval $ac_link) 2>&5
15803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15806 (eval $ac_try) 2>&5
15808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15809 (exit $ac_status); }; }; then
15810 ac_cv_sizeof_long_int=`cat conftest.val`
15812 echo "$as_me: program exited with status $ac_status" >&5
15813 echo "$as_me: failed program was:" >&5
15814 sed 's/^/| /' conftest.$ac_ext >&5
15816 ( exit $ac_status )
15817 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
15818 See \`config.log' for more details." >&5
15819 echo "$as_me: error: cannot compute sizeof (long int), 77
15820 See \`config.log' for more details." >&2;}
15821 { (exit 1); exit 1; }; }
15823 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15828 ac_cv_sizeof_long_int=0
15831 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
15832 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
15833 cat >>confdefs.h <<_ACEOF
15834 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
15838 echo "$as_me:$LINENO: checking for long long int" >&5
15839 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
15840 if test "${ac_cv_type_long_long_int+set}" = set; then
15841 echo $ECHO_N "(cached) $ECHO_C" >&6
15843 cat >conftest.$ac_ext <<_ACEOF
15846 cat confdefs.h >>conftest.$ac_ext
15847 cat >>conftest.$ac_ext <<_ACEOF
15848 /* end confdefs.h. */
15849 $ac_includes_default
15853 if ((long long int *) 0)
15855 if (sizeof (long long int))
15861 rm -f conftest.$ac_objext
15862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15863 (eval $ac_compile) 2>conftest.er1
15865 grep -v '^ *+' conftest.er1 >conftest.err
15867 cat conftest.err >&5
15868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15869 (exit $ac_status); } &&
15870 { ac_try='test -z "$ac_c_werror_flag"
15871 || test ! -s conftest.err'
15872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15873 (eval $ac_try) 2>&5
15875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15876 (exit $ac_status); }; } &&
15877 { ac_try='test -s conftest.$ac_objext'
15878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15879 (eval $ac_try) 2>&5
15881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15882 (exit $ac_status); }; }; then
15883 ac_cv_type_long_long_int=yes
15885 echo "$as_me: failed program was:" >&5
15886 sed 's/^/| /' conftest.$ac_ext >&5
15888 ac_cv_type_long_long_int=no
15890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15892 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
15893 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
15895 echo "$as_me:$LINENO: checking size of long long int" >&5
15896 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
15897 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
15898 echo $ECHO_N "(cached) $ECHO_C" >&6
15900 if test "$ac_cv_type_long_long_int" = yes; then
15901 # The cast to unsigned long works around a bug in the HP C Compiler
15902 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15903 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15904 # This bug is HP SR number 8606223364.
15905 if test "$cross_compiling" = yes; then
15906 # Depending upon the size, compute the lo and hi bounds.
15907 cat >conftest.$ac_ext <<_ACEOF
15910 cat confdefs.h >>conftest.$ac_ext
15911 cat >>conftest.$ac_ext <<_ACEOF
15912 /* end confdefs.h. */
15913 $ac_includes_default
15917 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
15924 rm -f conftest.$ac_objext
15925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15926 (eval $ac_compile) 2>conftest.er1
15928 grep -v '^ *+' conftest.er1 >conftest.err
15930 cat conftest.err >&5
15931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15932 (exit $ac_status); } &&
15933 { ac_try='test -z "$ac_c_werror_flag"
15934 || test ! -s conftest.err'
15935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15936 (eval $ac_try) 2>&5
15938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15939 (exit $ac_status); }; } &&
15940 { ac_try='test -s conftest.$ac_objext'
15941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15942 (eval $ac_try) 2>&5
15944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15945 (exit $ac_status); }; }; then
15948 cat >conftest.$ac_ext <<_ACEOF
15951 cat confdefs.h >>conftest.$ac_ext
15952 cat >>conftest.$ac_ext <<_ACEOF
15953 /* end confdefs.h. */
15954 $ac_includes_default
15958 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
15965 rm -f conftest.$ac_objext
15966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15967 (eval $ac_compile) 2>conftest.er1
15969 grep -v '^ *+' conftest.er1 >conftest.err
15971 cat conftest.err >&5
15972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15973 (exit $ac_status); } &&
15974 { ac_try='test -z "$ac_c_werror_flag"
15975 || test ! -s conftest.err'
15976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15977 (eval $ac_try) 2>&5
15979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15980 (exit $ac_status); }; } &&
15981 { ac_try='test -s conftest.$ac_objext'
15982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15983 (eval $ac_try) 2>&5
15985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15986 (exit $ac_status); }; }; then
15987 ac_hi=$ac_mid; break
15989 echo "$as_me: failed program was:" >&5
15990 sed 's/^/| /' conftest.$ac_ext >&5
15992 ac_lo=`expr $ac_mid + 1`
15993 if test $ac_lo -le $ac_mid; then
15997 ac_mid=`expr 2 '*' $ac_mid + 1`
15999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16002 echo "$as_me: failed program was:" >&5
16003 sed 's/^/| /' conftest.$ac_ext >&5
16005 cat >conftest.$ac_ext <<_ACEOF
16008 cat confdefs.h >>conftest.$ac_ext
16009 cat >>conftest.$ac_ext <<_ACEOF
16010 /* end confdefs.h. */
16011 $ac_includes_default
16015 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
16022 rm -f conftest.$ac_objext
16023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16024 (eval $ac_compile) 2>conftest.er1
16026 grep -v '^ *+' conftest.er1 >conftest.err
16028 cat conftest.err >&5
16029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16030 (exit $ac_status); } &&
16031 { ac_try='test -z "$ac_c_werror_flag"
16032 || test ! -s conftest.err'
16033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16034 (eval $ac_try) 2>&5
16036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16037 (exit $ac_status); }; } &&
16038 { ac_try='test -s conftest.$ac_objext'
16039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16040 (eval $ac_try) 2>&5
16042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16043 (exit $ac_status); }; }; then
16046 cat >conftest.$ac_ext <<_ACEOF
16049 cat confdefs.h >>conftest.$ac_ext
16050 cat >>conftest.$ac_ext <<_ACEOF
16051 /* end confdefs.h. */
16052 $ac_includes_default
16056 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
16063 rm -f conftest.$ac_objext
16064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16065 (eval $ac_compile) 2>conftest.er1
16067 grep -v '^ *+' conftest.er1 >conftest.err
16069 cat conftest.err >&5
16070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16071 (exit $ac_status); } &&
16072 { ac_try='test -z "$ac_c_werror_flag"
16073 || test ! -s conftest.err'
16074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16075 (eval $ac_try) 2>&5
16077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16078 (exit $ac_status); }; } &&
16079 { ac_try='test -s conftest.$ac_objext'
16080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16081 (eval $ac_try) 2>&5
16083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16084 (exit $ac_status); }; }; then
16085 ac_lo=$ac_mid; break
16087 echo "$as_me: failed program was:" >&5
16088 sed 's/^/| /' conftest.$ac_ext >&5
16090 ac_hi=`expr '(' $ac_mid ')' - 1`
16091 if test $ac_mid -le $ac_hi; then
16095 ac_mid=`expr 2 '*' $ac_mid`
16097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16100 echo "$as_me: failed program was:" >&5
16101 sed 's/^/| /' conftest.$ac_ext >&5
16105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16107 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16108 # Binary search between lo and hi bounds.
16109 while test "x$ac_lo" != "x$ac_hi"; do
16110 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16111 cat >conftest.$ac_ext <<_ACEOF
16114 cat confdefs.h >>conftest.$ac_ext
16115 cat >>conftest.$ac_ext <<_ACEOF
16116 /* end confdefs.h. */
16117 $ac_includes_default
16121 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
16128 rm -f conftest.$ac_objext
16129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16130 (eval $ac_compile) 2>conftest.er1
16132 grep -v '^ *+' conftest.er1 >conftest.err
16134 cat conftest.err >&5
16135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16136 (exit $ac_status); } &&
16137 { ac_try='test -z "$ac_c_werror_flag"
16138 || test ! -s conftest.err'
16139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16140 (eval $ac_try) 2>&5
16142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16143 (exit $ac_status); }; } &&
16144 { ac_try='test -s conftest.$ac_objext'
16145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16146 (eval $ac_try) 2>&5
16148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16149 (exit $ac_status); }; }; then
16152 echo "$as_me: failed program was:" >&5
16153 sed 's/^/| /' conftest.$ac_ext >&5
16155 ac_lo=`expr '(' $ac_mid ')' + 1`
16157 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16160 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
16161 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
16162 See \`config.log' for more details." >&5
16163 echo "$as_me: error: cannot compute sizeof (long long int), 77
16164 See \`config.log' for more details." >&2;}
16165 { (exit 1); exit 1; }; } ;;
16168 if test "$cross_compiling" = yes; then
16169 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16170 See \`config.log' for more details." >&5
16171 echo "$as_me: error: cannot run test program while cross compiling
16172 See \`config.log' for more details." >&2;}
16173 { (exit 1); exit 1; }; }
16175 cat >conftest.$ac_ext <<_ACEOF
16178 cat confdefs.h >>conftest.$ac_ext
16179 cat >>conftest.$ac_ext <<_ACEOF
16180 /* end confdefs.h. */
16181 $ac_includes_default
16182 long longval () { return (long) (sizeof (long long int)); }
16183 unsigned long ulongval () { return (long) (sizeof (long long int)); }
16185 #include <stdlib.h>
16190 FILE *f = fopen ("conftest.val", "w");
16193 if (((long) (sizeof (long long int))) < 0)
16195 long i = longval ();
16196 if (i != ((long) (sizeof (long long int))))
16198 fprintf (f, "%ld\n", i);
16202 unsigned long i = ulongval ();
16203 if (i != ((long) (sizeof (long long int))))
16205 fprintf (f, "%lu\n", i);
16207 exit (ferror (f) || fclose (f) != 0);
16213 rm -f conftest$ac_exeext
16214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16215 (eval $ac_link) 2>&5
16217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16218 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16220 (eval $ac_try) 2>&5
16222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16223 (exit $ac_status); }; }; then
16224 ac_cv_sizeof_long_long_int=`cat conftest.val`
16226 echo "$as_me: program exited with status $ac_status" >&5
16227 echo "$as_me: failed program was:" >&5
16228 sed 's/^/| /' conftest.$ac_ext >&5
16230 ( exit $ac_status )
16231 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
16232 See \`config.log' for more details." >&5
16233 echo "$as_me: error: cannot compute sizeof (long long int), 77
16234 See \`config.log' for more details." >&2;}
16235 { (exit 1); exit 1; }; }
16237 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16242 ac_cv_sizeof_long_long_int=0
16245 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
16246 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
16247 cat >>confdefs.h <<_ACEOF
16248 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
16252 echo "$as_me:$LINENO: checking for int *" >&5
16253 echo $ECHO_N "checking for int *... $ECHO_C" >&6
16254 if test "${ac_cv_type_int_p+set}" = set; then
16255 echo $ECHO_N "(cached) $ECHO_C" >&6
16257 cat >conftest.$ac_ext <<_ACEOF
16260 cat confdefs.h >>conftest.$ac_ext
16261 cat >>conftest.$ac_ext <<_ACEOF
16262 /* end confdefs.h. */
16263 $ac_includes_default
16269 if (sizeof (int *))
16275 rm -f conftest.$ac_objext
16276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16277 (eval $ac_compile) 2>conftest.er1
16279 grep -v '^ *+' conftest.er1 >conftest.err
16281 cat conftest.err >&5
16282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16283 (exit $ac_status); } &&
16284 { ac_try='test -z "$ac_c_werror_flag"
16285 || test ! -s conftest.err'
16286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16287 (eval $ac_try) 2>&5
16289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16290 (exit $ac_status); }; } &&
16291 { ac_try='test -s conftest.$ac_objext'
16292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16293 (eval $ac_try) 2>&5
16295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16296 (exit $ac_status); }; }; then
16297 ac_cv_type_int_p=yes
16299 echo "$as_me: failed program was:" >&5
16300 sed 's/^/| /' conftest.$ac_ext >&5
16302 ac_cv_type_int_p=no
16304 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16306 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
16307 echo "${ECHO_T}$ac_cv_type_int_p" >&6
16309 echo "$as_me:$LINENO: checking size of int *" >&5
16310 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
16311 if test "${ac_cv_sizeof_int_p+set}" = set; then
16312 echo $ECHO_N "(cached) $ECHO_C" >&6
16314 if test "$ac_cv_type_int_p" = yes; then
16315 # The cast to unsigned long works around a bug in the HP C Compiler
16316 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16317 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16318 # This bug is HP SR number 8606223364.
16319 if test "$cross_compiling" = yes; then
16320 # Depending upon the size, compute the lo and hi bounds.
16321 cat >conftest.$ac_ext <<_ACEOF
16324 cat confdefs.h >>conftest.$ac_ext
16325 cat >>conftest.$ac_ext <<_ACEOF
16326 /* end confdefs.h. */
16327 $ac_includes_default
16331 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
16338 rm -f conftest.$ac_objext
16339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16340 (eval $ac_compile) 2>conftest.er1
16342 grep -v '^ *+' conftest.er1 >conftest.err
16344 cat conftest.err >&5
16345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16346 (exit $ac_status); } &&
16347 { ac_try='test -z "$ac_c_werror_flag"
16348 || test ! -s conftest.err'
16349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16350 (eval $ac_try) 2>&5
16352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16353 (exit $ac_status); }; } &&
16354 { ac_try='test -s conftest.$ac_objext'
16355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16356 (eval $ac_try) 2>&5
16358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16359 (exit $ac_status); }; }; then
16362 cat >conftest.$ac_ext <<_ACEOF
16365 cat confdefs.h >>conftest.$ac_ext
16366 cat >>conftest.$ac_ext <<_ACEOF
16367 /* end confdefs.h. */
16368 $ac_includes_default
16372 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
16379 rm -f conftest.$ac_objext
16380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16381 (eval $ac_compile) 2>conftest.er1
16383 grep -v '^ *+' conftest.er1 >conftest.err
16385 cat conftest.err >&5
16386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16387 (exit $ac_status); } &&
16388 { ac_try='test -z "$ac_c_werror_flag"
16389 || test ! -s conftest.err'
16390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16391 (eval $ac_try) 2>&5
16393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16394 (exit $ac_status); }; } &&
16395 { ac_try='test -s conftest.$ac_objext'
16396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16397 (eval $ac_try) 2>&5
16399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16400 (exit $ac_status); }; }; then
16401 ac_hi=$ac_mid; break
16403 echo "$as_me: failed program was:" >&5
16404 sed 's/^/| /' conftest.$ac_ext >&5
16406 ac_lo=`expr $ac_mid + 1`
16407 if test $ac_lo -le $ac_mid; then
16411 ac_mid=`expr 2 '*' $ac_mid + 1`
16413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16416 echo "$as_me: failed program was:" >&5
16417 sed 's/^/| /' conftest.$ac_ext >&5
16419 cat >conftest.$ac_ext <<_ACEOF
16422 cat confdefs.h >>conftest.$ac_ext
16423 cat >>conftest.$ac_ext <<_ACEOF
16424 /* end confdefs.h. */
16425 $ac_includes_default
16429 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
16436 rm -f conftest.$ac_objext
16437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16438 (eval $ac_compile) 2>conftest.er1
16440 grep -v '^ *+' conftest.er1 >conftest.err
16442 cat conftest.err >&5
16443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16444 (exit $ac_status); } &&
16445 { ac_try='test -z "$ac_c_werror_flag"
16446 || test ! -s conftest.err'
16447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16448 (eval $ac_try) 2>&5
16450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16451 (exit $ac_status); }; } &&
16452 { ac_try='test -s conftest.$ac_objext'
16453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16454 (eval $ac_try) 2>&5
16456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16457 (exit $ac_status); }; }; then
16460 cat >conftest.$ac_ext <<_ACEOF
16463 cat confdefs.h >>conftest.$ac_ext
16464 cat >>conftest.$ac_ext <<_ACEOF
16465 /* end confdefs.h. */
16466 $ac_includes_default
16470 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
16477 rm -f conftest.$ac_objext
16478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16479 (eval $ac_compile) 2>conftest.er1
16481 grep -v '^ *+' conftest.er1 >conftest.err
16483 cat conftest.err >&5
16484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16485 (exit $ac_status); } &&
16486 { ac_try='test -z "$ac_c_werror_flag"
16487 || test ! -s conftest.err'
16488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16489 (eval $ac_try) 2>&5
16491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16492 (exit $ac_status); }; } &&
16493 { ac_try='test -s conftest.$ac_objext'
16494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16495 (eval $ac_try) 2>&5
16497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16498 (exit $ac_status); }; }; then
16499 ac_lo=$ac_mid; break
16501 echo "$as_me: failed program was:" >&5
16502 sed 's/^/| /' conftest.$ac_ext >&5
16504 ac_hi=`expr '(' $ac_mid ')' - 1`
16505 if test $ac_mid -le $ac_hi; then
16509 ac_mid=`expr 2 '*' $ac_mid`
16511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16514 echo "$as_me: failed program was:" >&5
16515 sed 's/^/| /' conftest.$ac_ext >&5
16519 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16521 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16522 # Binary search between lo and hi bounds.
16523 while test "x$ac_lo" != "x$ac_hi"; do
16524 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16525 cat >conftest.$ac_ext <<_ACEOF
16528 cat confdefs.h >>conftest.$ac_ext
16529 cat >>conftest.$ac_ext <<_ACEOF
16530 /* end confdefs.h. */
16531 $ac_includes_default
16535 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
16542 rm -f conftest.$ac_objext
16543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16544 (eval $ac_compile) 2>conftest.er1
16546 grep -v '^ *+' conftest.er1 >conftest.err
16548 cat conftest.err >&5
16549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16550 (exit $ac_status); } &&
16551 { ac_try='test -z "$ac_c_werror_flag"
16552 || test ! -s conftest.err'
16553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16554 (eval $ac_try) 2>&5
16556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16557 (exit $ac_status); }; } &&
16558 { ac_try='test -s conftest.$ac_objext'
16559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16560 (eval $ac_try) 2>&5
16562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16563 (exit $ac_status); }; }; then
16566 echo "$as_me: failed program was:" >&5
16567 sed 's/^/| /' conftest.$ac_ext >&5
16569 ac_lo=`expr '(' $ac_mid ')' + 1`
16571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16574 ?*) ac_cv_sizeof_int_p=$ac_lo;;
16575 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
16576 See \`config.log' for more details." >&5
16577 echo "$as_me: error: cannot compute sizeof (int *), 77
16578 See \`config.log' for more details." >&2;}
16579 { (exit 1); exit 1; }; } ;;
16582 if test "$cross_compiling" = yes; then
16583 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16584 See \`config.log' for more details." >&5
16585 echo "$as_me: error: cannot run test program while cross compiling
16586 See \`config.log' for more details." >&2;}
16587 { (exit 1); exit 1; }; }
16589 cat >conftest.$ac_ext <<_ACEOF
16592 cat confdefs.h >>conftest.$ac_ext
16593 cat >>conftest.$ac_ext <<_ACEOF
16594 /* end confdefs.h. */
16595 $ac_includes_default
16596 long longval () { return (long) (sizeof (int *)); }
16597 unsigned long ulongval () { return (long) (sizeof (int *)); }
16599 #include <stdlib.h>
16604 FILE *f = fopen ("conftest.val", "w");
16607 if (((long) (sizeof (int *))) < 0)
16609 long i = longval ();
16610 if (i != ((long) (sizeof (int *))))
16612 fprintf (f, "%ld\n", i);
16616 unsigned long i = ulongval ();
16617 if (i != ((long) (sizeof (int *))))
16619 fprintf (f, "%lu\n", i);
16621 exit (ferror (f) || fclose (f) != 0);
16627 rm -f conftest$ac_exeext
16628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16629 (eval $ac_link) 2>&5
16631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16632 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16634 (eval $ac_try) 2>&5
16636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16637 (exit $ac_status); }; }; then
16638 ac_cv_sizeof_int_p=`cat conftest.val`
16640 echo "$as_me: program exited with status $ac_status" >&5
16641 echo "$as_me: failed program was:" >&5
16642 sed 's/^/| /' conftest.$ac_ext >&5
16644 ( exit $ac_status )
16645 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
16646 See \`config.log' for more details." >&5
16647 echo "$as_me: error: cannot compute sizeof (int *), 77
16648 See \`config.log' for more details." >&2;}
16649 { (exit 1); exit 1; }; }
16651 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16656 ac_cv_sizeof_int_p=0
16659 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
16660 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
16661 cat >>confdefs.h <<_ACEOF
16662 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
16667 # Check for sys/types.h types
16668 echo "$as_me:$LINENO: checking for u_int type" >&5
16669 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
16670 if test "${ac_cv_have_u_int+set}" = set; then
16671 echo $ECHO_N "(cached) $ECHO_C" >&6
16674 cat >conftest.$ac_ext <<_ACEOF
16677 cat confdefs.h >>conftest.$ac_ext
16678 cat >>conftest.$ac_ext <<_ACEOF
16679 /* end confdefs.h. */
16680 #include <sys/types.h>
16689 rm -f conftest.$ac_objext
16690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16691 (eval $ac_compile) 2>conftest.er1
16693 grep -v '^ *+' conftest.er1 >conftest.err
16695 cat conftest.err >&5
16696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16697 (exit $ac_status); } &&
16698 { ac_try='test -z "$ac_c_werror_flag"
16699 || test ! -s conftest.err'
16700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16701 (eval $ac_try) 2>&5
16703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16704 (exit $ac_status); }; } &&
16705 { ac_try='test -s conftest.$ac_objext'
16706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16707 (eval $ac_try) 2>&5
16709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16710 (exit $ac_status); }; }; then
16711 ac_cv_have_u_int="yes"
16713 echo "$as_me: failed program was:" >&5
16714 sed 's/^/| /' conftest.$ac_ext >&5
16716 ac_cv_have_u_int="no"
16719 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16722 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
16723 echo "${ECHO_T}$ac_cv_have_u_int" >&6
16724 if test "x$ac_cv_have_u_int" = "xyes" ; then
16725 cat >>confdefs.h <<\_ACEOF
16726 #define HAVE_U_INT 1
16732 echo "$as_me:$LINENO: checking for intmax_t type" >&5
16733 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
16734 if test "${ac_cv_have_intmax_t+set}" = set; then
16735 echo $ECHO_N "(cached) $ECHO_C" >&6
16738 cat >conftest.$ac_ext <<_ACEOF
16741 cat confdefs.h >>conftest.$ac_ext
16742 cat >>conftest.$ac_ext <<_ACEOF
16743 /* end confdefs.h. */
16744 #include <sys/types.h>
16753 rm -f conftest.$ac_objext
16754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16755 (eval $ac_compile) 2>conftest.er1
16757 grep -v '^ *+' conftest.er1 >conftest.err
16759 cat conftest.err >&5
16760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16761 (exit $ac_status); } &&
16762 { ac_try='test -z "$ac_c_werror_flag"
16763 || test ! -s conftest.err'
16764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16765 (eval $ac_try) 2>&5
16767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16768 (exit $ac_status); }; } &&
16769 { ac_try='test -s conftest.$ac_objext'
16770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16771 (eval $ac_try) 2>&5
16773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16774 (exit $ac_status); }; }; then
16775 ac_cv_have_intmax_t="yes"
16777 echo "$as_me: failed program was:" >&5
16778 sed 's/^/| /' conftest.$ac_ext >&5
16781 cat >conftest.$ac_ext <<_ACEOF
16784 cat confdefs.h >>conftest.$ac_ext
16785 cat >>conftest.$ac_ext <<_ACEOF
16786 /* end confdefs.h. */
16787 #include <stdint.h>
16796 rm -f conftest.$ac_objext
16797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16798 (eval $ac_compile) 2>conftest.er1
16800 grep -v '^ *+' conftest.er1 >conftest.err
16802 cat conftest.err >&5
16803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16804 (exit $ac_status); } &&
16805 { ac_try='test -z "$ac_c_werror_flag"
16806 || test ! -s conftest.err'
16807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16808 (eval $ac_try) 2>&5
16810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16811 (exit $ac_status); }; } &&
16812 { ac_try='test -s conftest.$ac_objext'
16813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16814 (eval $ac_try) 2>&5
16816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16817 (exit $ac_status); }; }; then
16818 ac_cv_have_intmax_t="yes"
16820 echo "$as_me: failed program was:" >&5
16821 sed 's/^/| /' conftest.$ac_ext >&5
16823 ac_cv_have_intmax_t="no"
16826 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16830 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16834 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
16835 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
16836 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
16837 cat >>confdefs.h <<\_ACEOF
16838 #define HAVE_INTMAX_T 1
16845 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
16846 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
16847 if test "${ac_cv_have_u_intmax_t+set}" = set; then
16848 echo $ECHO_N "(cached) $ECHO_C" >&6
16851 cat >conftest.$ac_ext <<_ACEOF
16854 cat confdefs.h >>conftest.$ac_ext
16855 cat >>conftest.$ac_ext <<_ACEOF
16856 /* end confdefs.h. */
16857 #include <sys/types.h>
16861 u_intmax_t a; a = 1;
16866 rm -f conftest.$ac_objext
16867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16868 (eval $ac_compile) 2>conftest.er1
16870 grep -v '^ *+' conftest.er1 >conftest.err
16872 cat conftest.err >&5
16873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16874 (exit $ac_status); } &&
16875 { ac_try='test -z "$ac_c_werror_flag"
16876 || test ! -s conftest.err'
16877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16878 (eval $ac_try) 2>&5
16880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16881 (exit $ac_status); }; } &&
16882 { ac_try='test -s conftest.$ac_objext'
16883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16884 (eval $ac_try) 2>&5
16886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16887 (exit $ac_status); }; }; then
16888 ac_cv_have_u_intmax_t="yes"
16890 echo "$as_me: failed program was:" >&5
16891 sed 's/^/| /' conftest.$ac_ext >&5
16894 cat >conftest.$ac_ext <<_ACEOF
16897 cat confdefs.h >>conftest.$ac_ext
16898 cat >>conftest.$ac_ext <<_ACEOF
16899 /* end confdefs.h. */
16900 #include <stdint.h>
16904 u_intmax_t a; a = 1;
16909 rm -f conftest.$ac_objext
16910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16911 (eval $ac_compile) 2>conftest.er1
16913 grep -v '^ *+' conftest.er1 >conftest.err
16915 cat conftest.err >&5
16916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16917 (exit $ac_status); } &&
16918 { ac_try='test -z "$ac_c_werror_flag"
16919 || test ! -s conftest.err'
16920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16921 (eval $ac_try) 2>&5
16923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16924 (exit $ac_status); }; } &&
16925 { ac_try='test -s conftest.$ac_objext'
16926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16927 (eval $ac_try) 2>&5
16929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16930 (exit $ac_status); }; }; then
16931 ac_cv_have_u_intmax_t="yes"
16933 echo "$as_me: failed program was:" >&5
16934 sed 's/^/| /' conftest.$ac_ext >&5
16936 ac_cv_have_u_intmax_t="no"
16939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16943 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16946 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
16947 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
16948 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
16949 cat >>confdefs.h <<\_ACEOF
16950 #define HAVE_U_INTMAX_T 1
16957 echo "$as_me:$LINENO: checking for intXX_t types" >&5
16958 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
16959 if test "${ac_cv_have_intxx_t+set}" = set; then
16960 echo $ECHO_N "(cached) $ECHO_C" >&6
16963 cat >conftest.$ac_ext <<_ACEOF
16966 cat confdefs.h >>conftest.$ac_ext
16967 cat >>conftest.$ac_ext <<_ACEOF
16968 /* end confdefs.h. */
16969 #include <sys/types.h>
16973 int8_t a; int16_t b; int32_t c; a = b = c = 1;
16978 rm -f conftest.$ac_objext
16979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16980 (eval $ac_compile) 2>conftest.er1
16982 grep -v '^ *+' conftest.er1 >conftest.err
16984 cat conftest.err >&5
16985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16986 (exit $ac_status); } &&
16987 { ac_try='test -z "$ac_c_werror_flag"
16988 || test ! -s conftest.err'
16989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16990 (eval $ac_try) 2>&5
16992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16993 (exit $ac_status); }; } &&
16994 { ac_try='test -s conftest.$ac_objext'
16995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16996 (eval $ac_try) 2>&5
16998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16999 (exit $ac_status); }; }; then
17000 ac_cv_have_intxx_t="yes"
17002 echo "$as_me: failed program was:" >&5
17003 sed 's/^/| /' conftest.$ac_ext >&5
17005 ac_cv_have_intxx_t="no"
17008 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17011 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
17012 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
17013 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
17014 cat >>confdefs.h <<\_ACEOF
17015 #define HAVE_INTXX_T 1
17021 echo "$as_me:$LINENO: checking for int64_t type" >&5
17022 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
17023 if test "${ac_cv_have_int64_t+set}" = set; then
17024 echo $ECHO_N "(cached) $ECHO_C" >&6
17027 cat >conftest.$ac_ext <<_ACEOF
17030 cat confdefs.h >>conftest.$ac_ext
17031 cat >>conftest.$ac_ext <<_ACEOF
17032 /* end confdefs.h. */
17033 #include <sys/types.h>
17042 rm -f conftest.$ac_objext
17043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17044 (eval $ac_compile) 2>conftest.er1
17046 grep -v '^ *+' conftest.er1 >conftest.err
17048 cat conftest.err >&5
17049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17050 (exit $ac_status); } &&
17051 { ac_try='test -z "$ac_c_werror_flag"
17052 || test ! -s conftest.err'
17053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17054 (eval $ac_try) 2>&5
17056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17057 (exit $ac_status); }; } &&
17058 { ac_try='test -s conftest.$ac_objext'
17059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17060 (eval $ac_try) 2>&5
17062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17063 (exit $ac_status); }; }; then
17064 ac_cv_have_int64_t="yes"
17066 echo "$as_me: failed program was:" >&5
17067 sed 's/^/| /' conftest.$ac_ext >&5
17069 ac_cv_have_int64_t="no"
17072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17075 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
17076 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
17077 if test "x$ac_cv_have_int64_t" = "xyes" ; then
17078 cat >>confdefs.h <<\_ACEOF
17079 #define HAVE_INT64_T 1
17085 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
17086 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
17087 if test "${ac_cv_have_u_intxx_t+set}" = set; then
17088 echo $ECHO_N "(cached) $ECHO_C" >&6
17091 cat >conftest.$ac_ext <<_ACEOF
17094 cat confdefs.h >>conftest.$ac_ext
17095 cat >>conftest.$ac_ext <<_ACEOF
17096 /* end confdefs.h. */
17097 #include <sys/types.h>
17101 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
17106 rm -f conftest.$ac_objext
17107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17108 (eval $ac_compile) 2>conftest.er1
17110 grep -v '^ *+' conftest.er1 >conftest.err
17112 cat conftest.err >&5
17113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17114 (exit $ac_status); } &&
17115 { ac_try='test -z "$ac_c_werror_flag"
17116 || test ! -s conftest.err'
17117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17118 (eval $ac_try) 2>&5
17120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17121 (exit $ac_status); }; } &&
17122 { ac_try='test -s conftest.$ac_objext'
17123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17124 (eval $ac_try) 2>&5
17126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17127 (exit $ac_status); }; }; then
17128 ac_cv_have_u_intxx_t="yes"
17130 echo "$as_me: failed program was:" >&5
17131 sed 's/^/| /' conftest.$ac_ext >&5
17133 ac_cv_have_u_intxx_t="no"
17136 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17139 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
17140 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
17141 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
17142 cat >>confdefs.h <<\_ACEOF
17143 #define HAVE_U_INTXX_T 1
17149 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
17150 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
17151 if test "${ac_cv_have_u_int64_t+set}" = set; then
17152 echo $ECHO_N "(cached) $ECHO_C" >&6
17155 cat >conftest.$ac_ext <<_ACEOF
17158 cat confdefs.h >>conftest.$ac_ext
17159 cat >>conftest.$ac_ext <<_ACEOF
17160 /* end confdefs.h. */
17161 #include <sys/types.h>
17165 u_int64_t a; a = 1;
17170 rm -f conftest.$ac_objext
17171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17172 (eval $ac_compile) 2>conftest.er1
17174 grep -v '^ *+' conftest.er1 >conftest.err
17176 cat conftest.err >&5
17177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17178 (exit $ac_status); } &&
17179 { ac_try='test -z "$ac_c_werror_flag"
17180 || test ! -s conftest.err'
17181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17182 (eval $ac_try) 2>&5
17184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17185 (exit $ac_status); }; } &&
17186 { ac_try='test -s conftest.$ac_objext'
17187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17188 (eval $ac_try) 2>&5
17190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17191 (exit $ac_status); }; }; then
17192 ac_cv_have_u_int64_t="yes"
17194 echo "$as_me: failed program was:" >&5
17195 sed 's/^/| /' conftest.$ac_ext >&5
17197 ac_cv_have_u_int64_t="no"
17200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17203 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
17204 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
17205 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
17206 cat >>confdefs.h <<\_ACEOF
17207 #define HAVE_U_INT64_T 1
17213 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
17214 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
17216 echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
17217 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
17218 cat >conftest.$ac_ext <<_ACEOF
17221 cat confdefs.h >>conftest.$ac_ext
17222 cat >>conftest.$ac_ext <<_ACEOF
17223 /* end confdefs.h. */
17224 #include <sys/bitypes.h>
17228 int8_t a; int16_t b; int32_t c;
17229 u_int8_t e; u_int16_t f; u_int32_t g;
17230 a = b = c = e = f = g = 1;
17235 rm -f conftest.$ac_objext
17236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17237 (eval $ac_compile) 2>conftest.er1
17239 grep -v '^ *+' conftest.er1 >conftest.err
17241 cat conftest.err >&5
17242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17243 (exit $ac_status); } &&
17244 { ac_try='test -z "$ac_c_werror_flag"
17245 || test ! -s conftest.err'
17246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17247 (eval $ac_try) 2>&5
17249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17250 (exit $ac_status); }; } &&
17251 { ac_try='test -s conftest.$ac_objext'
17252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17253 (eval $ac_try) 2>&5
17255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17256 (exit $ac_status); }; }; then
17257 cat >>confdefs.h <<\_ACEOF
17258 #define HAVE_U_INTXX_T 1
17261 cat >>confdefs.h <<\_ACEOF
17262 #define HAVE_INTXX_T 1
17265 cat >>confdefs.h <<\_ACEOF
17266 #define HAVE_SYS_BITYPES_H 1
17269 echo "$as_me:$LINENO: result: yes" >&5
17270 echo "${ECHO_T}yes" >&6
17272 echo "$as_me: failed program was:" >&5
17273 sed 's/^/| /' conftest.$ac_ext >&5
17275 echo "$as_me:$LINENO: result: no" >&5
17276 echo "${ECHO_T}no" >&6
17279 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17282 if test -z "$have_u_intxx_t" ; then
17283 echo "$as_me:$LINENO: checking for uintXX_t types" >&5
17284 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
17285 if test "${ac_cv_have_uintxx_t+set}" = set; then
17286 echo $ECHO_N "(cached) $ECHO_C" >&6
17289 cat >conftest.$ac_ext <<_ACEOF
17292 cat confdefs.h >>conftest.$ac_ext
17293 cat >>conftest.$ac_ext <<_ACEOF
17294 /* end confdefs.h. */
17295 #include <sys/types.h>
17299 uint8_t a; uint16_t b;
17300 uint32_t c; a = b = c = 1;
17305 rm -f conftest.$ac_objext
17306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17307 (eval $ac_compile) 2>conftest.er1
17309 grep -v '^ *+' conftest.er1 >conftest.err
17311 cat conftest.err >&5
17312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17313 (exit $ac_status); } &&
17314 { ac_try='test -z "$ac_c_werror_flag"
17315 || test ! -s conftest.err'
17316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17317 (eval $ac_try) 2>&5
17319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17320 (exit $ac_status); }; } &&
17321 { ac_try='test -s conftest.$ac_objext'
17322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17323 (eval $ac_try) 2>&5
17325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17326 (exit $ac_status); }; }; then
17327 ac_cv_have_uintxx_t="yes"
17329 echo "$as_me: failed program was:" >&5
17330 sed 's/^/| /' conftest.$ac_ext >&5
17332 ac_cv_have_uintxx_t="no"
17335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17338 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
17339 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
17340 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
17341 cat >>confdefs.h <<\_ACEOF
17342 #define HAVE_UINTXX_T 1
17348 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
17349 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
17351 echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
17352 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
17353 cat >conftest.$ac_ext <<_ACEOF
17356 cat confdefs.h >>conftest.$ac_ext
17357 cat >>conftest.$ac_ext <<_ACEOF
17358 /* end confdefs.h. */
17359 #include <sys/bitypes.h>
17363 int64_t a; u_int64_t b;
17369 rm -f conftest.$ac_objext
17370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17371 (eval $ac_compile) 2>conftest.er1
17373 grep -v '^ *+' conftest.er1 >conftest.err
17375 cat conftest.err >&5
17376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17377 (exit $ac_status); } &&
17378 { ac_try='test -z "$ac_c_werror_flag"
17379 || test ! -s conftest.err'
17380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17381 (eval $ac_try) 2>&5
17383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17384 (exit $ac_status); }; } &&
17385 { ac_try='test -s conftest.$ac_objext'
17386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17387 (eval $ac_try) 2>&5
17389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17390 (exit $ac_status); }; }; then
17391 cat >>confdefs.h <<\_ACEOF
17392 #define HAVE_U_INT64_T 1
17395 cat >>confdefs.h <<\_ACEOF
17396 #define HAVE_INT64_T 1
17399 echo "$as_me:$LINENO: result: yes" >&5
17400 echo "${ECHO_T}yes" >&6
17402 echo "$as_me: failed program was:" >&5
17403 sed 's/^/| /' conftest.$ac_ext >&5
17405 echo "$as_me:$LINENO: result: no" >&5
17406 echo "${ECHO_T}no" >&6
17409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17412 if (test -z "$have_uintxx_t" && \
17413 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
17415 echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
17416 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
17417 cat >conftest.$ac_ext <<_ACEOF
17420 cat confdefs.h >>conftest.$ac_ext
17421 cat >>conftest.$ac_ext <<_ACEOF
17422 /* end confdefs.h. */
17423 #include <sys/bitypes.h>
17427 uint8_t a; uint16_t b;
17428 uint32_t c; a = b = c = 1;
17433 rm -f conftest.$ac_objext
17434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17435 (eval $ac_compile) 2>conftest.er1
17437 grep -v '^ *+' conftest.er1 >conftest.err
17439 cat conftest.err >&5
17440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17441 (exit $ac_status); } &&
17442 { ac_try='test -z "$ac_c_werror_flag"
17443 || test ! -s conftest.err'
17444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17445 (eval $ac_try) 2>&5
17447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17448 (exit $ac_status); }; } &&
17449 { ac_try='test -s conftest.$ac_objext'
17450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17451 (eval $ac_try) 2>&5
17453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17454 (exit $ac_status); }; }; then
17455 cat >>confdefs.h <<\_ACEOF
17456 #define HAVE_UINTXX_T 1
17459 echo "$as_me:$LINENO: result: yes" >&5
17460 echo "${ECHO_T}yes" >&6
17462 echo "$as_me: failed program was:" >&5
17463 sed 's/^/| /' conftest.$ac_ext >&5
17465 echo "$as_me:$LINENO: result: no" >&5
17466 echo "${ECHO_T}no" >&6
17469 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17505 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17506 echo "$as_me:$LINENO: checking for $ac_func" >&5
17507 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17508 if eval "test \"\${$as_ac_var+set}\" = set"; then
17509 echo $ECHO_N "(cached) $ECHO_C" >&6
17511 cat >conftest.$ac_ext <<_ACEOF
17514 cat confdefs.h >>conftest.$ac_ext
17515 cat >>conftest.$ac_ext <<_ACEOF
17516 /* end confdefs.h. */
17517 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17518 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17519 #define $ac_func innocuous_$ac_func
17521 /* System header to define __stub macros and hopefully few prototypes,
17522 which can conflict with char $ac_func (); below.
17523 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17524 <limits.h> exists even on freestanding compilers. */
17527 # include <limits.h>
17529 # include <assert.h>
17534 /* Override any gcc2 internal prototype to avoid an error. */
17539 /* We use char because int might match the return type of a gcc2
17540 builtin and then its argument prototype would still apply. */
17542 /* The GNU C library defines this for functions which it implements
17543 to always fail with ENOSYS. Some functions are actually named
17544 something starting with __ and the normal name is an alias. */
17545 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17548 char (*f) () = $ac_func;
17557 return f != $ac_func;
17562 rm -f conftest.$ac_objext conftest$ac_exeext
17563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17564 (eval $ac_link) 2>conftest.er1
17566 grep -v '^ *+' conftest.er1 >conftest.err
17568 cat conftest.err >&5
17569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17570 (exit $ac_status); } &&
17571 { ac_try='test -z "$ac_c_werror_flag"
17572 || test ! -s conftest.err'
17573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17574 (eval $ac_try) 2>&5
17576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17577 (exit $ac_status); }; } &&
17578 { ac_try='test -s conftest$ac_exeext'
17579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17580 (eval $ac_try) 2>&5
17582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17583 (exit $ac_status); }; }; then
17584 eval "$as_ac_var=yes"
17586 echo "$as_me: failed program was:" >&5
17587 sed 's/^/| /' conftest.$ac_ext >&5
17589 eval "$as_ac_var=no"
17591 rm -f conftest.err conftest.$ac_objext \
17592 conftest$ac_exeext conftest.$ac_ext
17594 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17595 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17596 if test `eval echo '${'$as_ac_var'}'` = yes; then
17597 cat >>confdefs.h <<_ACEOF
17598 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17602 echo 'configure: cannot find needed function.'; exit 1
17609 for ac_func in fchdir
17611 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17612 echo "$as_me:$LINENO: checking for $ac_func" >&5
17613 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17614 if eval "test \"\${$as_ac_var+set}\" = set"; then
17615 echo $ECHO_N "(cached) $ECHO_C" >&6
17617 cat >conftest.$ac_ext <<_ACEOF
17620 cat confdefs.h >>conftest.$ac_ext
17621 cat >>conftest.$ac_ext <<_ACEOF
17622 /* end confdefs.h. */
17623 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17624 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17625 #define $ac_func innocuous_$ac_func
17627 /* System header to define __stub macros and hopefully few prototypes,
17628 which can conflict with char $ac_func (); below.
17629 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17630 <limits.h> exists even on freestanding compilers. */
17633 # include <limits.h>
17635 # include <assert.h>
17640 /* Override any gcc2 internal prototype to avoid an error. */
17645 /* We use char because int might match the return type of a gcc2
17646 builtin and then its argument prototype would still apply. */
17648 /* The GNU C library defines this for functions which it implements
17649 to always fail with ENOSYS. Some functions are actually named
17650 something starting with __ and the normal name is an alias. */
17651 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17654 char (*f) () = $ac_func;
17663 return f != $ac_func;
17668 rm -f conftest.$ac_objext conftest$ac_exeext
17669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17670 (eval $ac_link) 2>conftest.er1
17672 grep -v '^ *+' conftest.er1 >conftest.err
17674 cat conftest.err >&5
17675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17676 (exit $ac_status); } &&
17677 { ac_try='test -z "$ac_c_werror_flag"
17678 || test ! -s conftest.err'
17679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17680 (eval $ac_try) 2>&5
17682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17683 (exit $ac_status); }; } &&
17684 { ac_try='test -s conftest$ac_exeext'
17685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17686 (eval $ac_try) 2>&5
17688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17689 (exit $ac_status); }; }; then
17690 eval "$as_ac_var=yes"
17692 echo "$as_me: failed program was:" >&5
17693 sed 's/^/| /' conftest.$ac_ext >&5
17695 eval "$as_ac_var=no"
17697 rm -f conftest.err conftest.$ac_objext \
17698 conftest$ac_exeext conftest.$ac_ext
17700 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17701 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17702 if test `eval echo '${'$as_ac_var'}'` = yes; then
17703 cat >>confdefs.h <<_ACEOF
17704 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17706 cat >>confdefs.h <<\_ACEOF
17707 #define HAVE_FCHDIR 1
17714 for ac_func in strtoll
17716 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17717 echo "$as_me:$LINENO: checking for $ac_func" >&5
17718 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17719 if eval "test \"\${$as_ac_var+set}\" = set"; then
17720 echo $ECHO_N "(cached) $ECHO_C" >&6
17722 cat >conftest.$ac_ext <<_ACEOF
17725 cat confdefs.h >>conftest.$ac_ext
17726 cat >>conftest.$ac_ext <<_ACEOF
17727 /* end confdefs.h. */
17728 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17729 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17730 #define $ac_func innocuous_$ac_func
17732 /* System header to define __stub macros and hopefully few prototypes,
17733 which can conflict with char $ac_func (); below.
17734 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17735 <limits.h> exists even on freestanding compilers. */
17738 # include <limits.h>
17740 # include <assert.h>
17745 /* Override any gcc2 internal prototype to avoid an error. */
17750 /* We use char because int might match the return type of a gcc2
17751 builtin and then its argument prototype would still apply. */
17753 /* The GNU C library defines this for functions which it implements
17754 to always fail with ENOSYS. Some functions are actually named
17755 something starting with __ and the normal name is an alias. */
17756 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17759 char (*f) () = $ac_func;
17768 return f != $ac_func;
17773 rm -f conftest.$ac_objext conftest$ac_exeext
17774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17775 (eval $ac_link) 2>conftest.er1
17777 grep -v '^ *+' conftest.er1 >conftest.err
17779 cat conftest.err >&5
17780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17781 (exit $ac_status); } &&
17782 { ac_try='test -z "$ac_c_werror_flag"
17783 || test ! -s conftest.err'
17784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17785 (eval $ac_try) 2>&5
17787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17788 (exit $ac_status); }; } &&
17789 { ac_try='test -s conftest$ac_exeext'
17790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17791 (eval $ac_try) 2>&5
17793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17794 (exit $ac_status); }; }; then
17795 eval "$as_ac_var=yes"
17797 echo "$as_me: failed program was:" >&5
17798 sed 's/^/| /' conftest.$ac_ext >&5
17800 eval "$as_ac_var=no"
17802 rm -f conftest.err conftest.$ac_objext \
17803 conftest$ac_exeext conftest.$ac_ext
17805 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17806 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17807 if test `eval echo '${'$as_ac_var'}'` = yes; then
17808 cat >>confdefs.h <<_ACEOF
17809 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17811 cat >>confdefs.h <<\_ACEOF
17812 #define HAVE_STRTOLL 1
17820 for ac_func in chflags
17822 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17823 echo "$as_me:$LINENO: checking for $ac_func" >&5
17824 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17825 if eval "test \"\${$as_ac_var+set}\" = set"; then
17826 echo $ECHO_N "(cached) $ECHO_C" >&6
17828 cat >conftest.$ac_ext <<_ACEOF
17831 cat confdefs.h >>conftest.$ac_ext
17832 cat >>conftest.$ac_ext <<_ACEOF
17833 /* end confdefs.h. */
17834 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17835 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17836 #define $ac_func innocuous_$ac_func
17838 /* System header to define __stub macros and hopefully few prototypes,
17839 which can conflict with char $ac_func (); below.
17840 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17841 <limits.h> exists even on freestanding compilers. */
17844 # include <limits.h>
17846 # include <assert.h>
17851 /* Override any gcc2 internal prototype to avoid an error. */
17856 /* We use char because int might match the return type of a gcc2
17857 builtin and then its argument prototype would still apply. */
17859 /* The GNU C library defines this for functions which it implements
17860 to always fail with ENOSYS. Some functions are actually named
17861 something starting with __ and the normal name is an alias. */
17862 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17865 char (*f) () = $ac_func;
17874 return f != $ac_func;
17879 rm -f conftest.$ac_objext conftest$ac_exeext
17880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17881 (eval $ac_link) 2>conftest.er1
17883 grep -v '^ *+' conftest.er1 >conftest.err
17885 cat conftest.err >&5
17886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17887 (exit $ac_status); } &&
17888 { ac_try='test -z "$ac_c_werror_flag"
17889 || test ! -s conftest.err'
17890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17891 (eval $ac_try) 2>&5
17893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17894 (exit $ac_status); }; } &&
17895 { ac_try='test -s conftest$ac_exeext'
17896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17897 (eval $ac_try) 2>&5
17899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17900 (exit $ac_status); }; }; then
17901 eval "$as_ac_var=yes"
17903 echo "$as_me: failed program was:" >&5
17904 sed 's/^/| /' conftest.$ac_ext >&5
17906 eval "$as_ac_var=no"
17908 rm -f conftest.err conftest.$ac_objext \
17909 conftest$ac_exeext conftest.$ac_ext
17911 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17912 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17913 if test `eval echo '${'$as_ac_var'}'` = yes; then
17914 cat >>confdefs.h <<_ACEOF
17915 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17926 for ac_func in snprintf vsnprintf gethostid fseeko
17928 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17929 echo "$as_me:$LINENO: checking for $ac_func" >&5
17930 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17931 if eval "test \"\${$as_ac_var+set}\" = set"; then
17932 echo $ECHO_N "(cached) $ECHO_C" >&6
17934 cat >conftest.$ac_ext <<_ACEOF
17937 cat confdefs.h >>conftest.$ac_ext
17938 cat >>conftest.$ac_ext <<_ACEOF
17939 /* end confdefs.h. */
17940 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17941 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17942 #define $ac_func innocuous_$ac_func
17944 /* System header to define __stub macros and hopefully few prototypes,
17945 which can conflict with char $ac_func (); below.
17946 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17947 <limits.h> exists even on freestanding compilers. */
17950 # include <limits.h>
17952 # include <assert.h>
17957 /* Override any gcc2 internal prototype to avoid an error. */
17962 /* We use char because int might match the return type of a gcc2
17963 builtin and then its argument prototype would still apply. */
17965 /* The GNU C library defines this for functions which it implements
17966 to always fail with ENOSYS. Some functions are actually named
17967 something starting with __ and the normal name is an alias. */
17968 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17971 char (*f) () = $ac_func;
17980 return f != $ac_func;
17985 rm -f conftest.$ac_objext conftest$ac_exeext
17986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17987 (eval $ac_link) 2>conftest.er1
17989 grep -v '^ *+' conftest.er1 >conftest.err
17991 cat conftest.err >&5
17992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17993 (exit $ac_status); } &&
17994 { ac_try='test -z "$ac_c_werror_flag"
17995 || test ! -s conftest.err'
17996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17997 (eval $ac_try) 2>&5
17999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000 (exit $ac_status); }; } &&
18001 { ac_try='test -s conftest$ac_exeext'
18002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18003 (eval $ac_try) 2>&5
18005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18006 (exit $ac_status); }; }; then
18007 eval "$as_ac_var=yes"
18009 echo "$as_me: failed program was:" >&5
18010 sed 's/^/| /' conftest.$ac_ext >&5
18012 eval "$as_ac_var=no"
18014 rm -f conftest.err conftest.$ac_objext \
18015 conftest$ac_exeext conftest.$ac_ext
18017 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18018 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18019 if test `eval echo '${'$as_ac_var'}'` = yes; then
18020 cat >>confdefs.h <<_ACEOF
18021 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18032 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
18034 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18035 echo "$as_me:$LINENO: checking for $ac_func" >&5
18036 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18037 if eval "test \"\${$as_ac_var+set}\" = set"; then
18038 echo $ECHO_N "(cached) $ECHO_C" >&6
18040 cat >conftest.$ac_ext <<_ACEOF
18043 cat confdefs.h >>conftest.$ac_ext
18044 cat >>conftest.$ac_ext <<_ACEOF
18045 /* end confdefs.h. */
18046 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18047 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18048 #define $ac_func innocuous_$ac_func
18050 /* System header to define __stub macros and hopefully few prototypes,
18051 which can conflict with char $ac_func (); below.
18052 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18053 <limits.h> exists even on freestanding compilers. */
18056 # include <limits.h>
18058 # include <assert.h>
18063 /* Override any gcc2 internal prototype to avoid an error. */
18068 /* We use char because int might match the return type of a gcc2
18069 builtin and then its argument prototype would still apply. */
18071 /* The GNU C library defines this for functions which it implements
18072 to always fail with ENOSYS. Some functions are actually named
18073 something starting with __ and the normal name is an alias. */
18074 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18077 char (*f) () = $ac_func;
18086 return f != $ac_func;
18091 rm -f conftest.$ac_objext conftest$ac_exeext
18092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18093 (eval $ac_link) 2>conftest.er1
18095 grep -v '^ *+' conftest.er1 >conftest.err
18097 cat conftest.err >&5
18098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18099 (exit $ac_status); } &&
18100 { ac_try='test -z "$ac_c_werror_flag"
18101 || test ! -s conftest.err'
18102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18103 (eval $ac_try) 2>&5
18105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18106 (exit $ac_status); }; } &&
18107 { ac_try='test -s conftest$ac_exeext'
18108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18109 (eval $ac_try) 2>&5
18111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18112 (exit $ac_status); }; }; then
18113 eval "$as_ac_var=yes"
18115 echo "$as_me: failed program was:" >&5
18116 sed 's/^/| /' conftest.$ac_ext >&5
18118 eval "$as_ac_var=no"
18120 rm -f conftest.err conftest.$ac_objext \
18121 conftest$ac_exeext conftest.$ac_ext
18123 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18124 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18125 if test `eval echo '${'$as_ac_var'}'` = yes; then
18126 cat >>confdefs.h <<_ACEOF
18127 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18134 # If resolver functions are not in libc check for -lnsl or -lresolv.
18135 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
18136 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
18137 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
18138 echo $ECHO_N "(cached) $ECHO_C" >&6
18140 cat >conftest.$ac_ext <<_ACEOF
18143 cat confdefs.h >>conftest.$ac_ext
18144 cat >>conftest.$ac_ext <<_ACEOF
18145 /* end confdefs.h. */
18146 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
18147 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18148 #define gethostbyname_r innocuous_gethostbyname_r
18150 /* System header to define __stub macros and hopefully few prototypes,
18151 which can conflict with char gethostbyname_r (); below.
18152 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18153 <limits.h> exists even on freestanding compilers. */
18156 # include <limits.h>
18158 # include <assert.h>
18161 #undef gethostbyname_r
18163 /* Override any gcc2 internal prototype to avoid an error. */
18168 /* We use char because int might match the return type of a gcc2
18169 builtin and then its argument prototype would still apply. */
18170 char gethostbyname_r ();
18171 /* The GNU C library defines this for functions which it implements
18172 to always fail with ENOSYS. Some functions are actually named
18173 something starting with __ and the normal name is an alias. */
18174 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
18177 char (*f) () = gethostbyname_r;
18186 return f != gethostbyname_r;
18191 rm -f conftest.$ac_objext conftest$ac_exeext
18192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18193 (eval $ac_link) 2>conftest.er1
18195 grep -v '^ *+' conftest.er1 >conftest.err
18197 cat conftest.err >&5
18198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18199 (exit $ac_status); } &&
18200 { ac_try='test -z "$ac_c_werror_flag"
18201 || test ! -s conftest.err'
18202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18203 (eval $ac_try) 2>&5
18205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18206 (exit $ac_status); }; } &&
18207 { ac_try='test -s conftest$ac_exeext'
18208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18209 (eval $ac_try) 2>&5
18211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18212 (exit $ac_status); }; }; then
18213 ac_cv_func_gethostbyname_r=yes
18215 echo "$as_me: failed program was:" >&5
18216 sed 's/^/| /' conftest.$ac_ext >&5
18218 ac_cv_func_gethostbyname_r=no
18220 rm -f conftest.err conftest.$ac_objext \
18221 conftest$ac_exeext conftest.$ac_ext
18223 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
18224 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
18225 if test $ac_cv_func_gethostbyname_r = yes; then
18226 echo "$as_me:$LINENO: result: using libc's resolver" >&5
18227 echo "${ECHO_T}using libc's resolver" >&6
18230 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
18231 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
18232 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
18233 echo $ECHO_N "(cached) $ECHO_C" >&6
18235 ac_check_lib_save_LIBS=$LIBS
18237 cat >conftest.$ac_ext <<_ACEOF
18240 cat confdefs.h >>conftest.$ac_ext
18241 cat >>conftest.$ac_ext <<_ACEOF
18242 /* end confdefs.h. */
18244 /* Override any gcc2 internal prototype to avoid an error. */
18248 /* We use char because int might match the return type of a gcc2
18249 builtin and then its argument prototype would still apply. */
18250 char gethostbyname_r ();
18254 gethostbyname_r ();
18259 rm -f conftest.$ac_objext conftest$ac_exeext
18260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18261 (eval $ac_link) 2>conftest.er1
18263 grep -v '^ *+' conftest.er1 >conftest.err
18265 cat conftest.err >&5
18266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18267 (exit $ac_status); } &&
18268 { ac_try='test -z "$ac_c_werror_flag"
18269 || test ! -s conftest.err'
18270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18271 (eval $ac_try) 2>&5
18273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18274 (exit $ac_status); }; } &&
18275 { ac_try='test -s conftest$ac_exeext'
18276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18277 (eval $ac_try) 2>&5
18279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18280 (exit $ac_status); }; }; then
18281 ac_cv_lib_nsl_gethostbyname_r=yes
18283 echo "$as_me: failed program was:" >&5
18284 sed 's/^/| /' conftest.$ac_ext >&5
18286 ac_cv_lib_nsl_gethostbyname_r=no
18288 rm -f conftest.err conftest.$ac_objext \
18289 conftest$ac_exeext conftest.$ac_ext
18290 LIBS=$ac_check_lib_save_LIBS
18292 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
18293 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
18294 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
18295 cat >>confdefs.h <<_ACEOF
18296 #define HAVE_LIBNSL 1
18304 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
18305 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
18306 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
18307 echo $ECHO_N "(cached) $ECHO_C" >&6
18309 ac_check_lib_save_LIBS=$LIBS
18310 LIBS="-lresolv $LIBS"
18311 cat >conftest.$ac_ext <<_ACEOF
18314 cat confdefs.h >>conftest.$ac_ext
18315 cat >>conftest.$ac_ext <<_ACEOF
18316 /* end confdefs.h. */
18318 /* Override any gcc2 internal prototype to avoid an error. */
18322 /* We use char because int might match the return type of a gcc2
18323 builtin and then its argument prototype would still apply. */
18324 char gethostbyname_r ();
18328 gethostbyname_r ();
18333 rm -f conftest.$ac_objext conftest$ac_exeext
18334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18335 (eval $ac_link) 2>conftest.er1
18337 grep -v '^ *+' conftest.er1 >conftest.err
18339 cat conftest.err >&5
18340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18341 (exit $ac_status); } &&
18342 { ac_try='test -z "$ac_c_werror_flag"
18343 || test ! -s conftest.err'
18344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18345 (eval $ac_try) 2>&5
18347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18348 (exit $ac_status); }; } &&
18349 { ac_try='test -s conftest$ac_exeext'
18350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18351 (eval $ac_try) 2>&5
18353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18354 (exit $ac_status); }; }; then
18355 ac_cv_lib_resolv_gethostbyname_r=yes
18357 echo "$as_me: failed program was:" >&5
18358 sed 's/^/| /' conftest.$ac_ext >&5
18360 ac_cv_lib_resolv_gethostbyname_r=no
18362 rm -f conftest.err conftest.$ac_objext \
18363 conftest$ac_exeext conftest.$ac_ext
18364 LIBS=$ac_check_lib_save_LIBS
18366 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
18367 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
18368 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
18369 cat >>confdefs.h <<_ACEOF
18370 #define HAVE_LIBRESOLV 1
18373 LIBS="-lresolv $LIBS"
18383 for ac_func in inet_pton
18385 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18386 echo "$as_me:$LINENO: checking for $ac_func" >&5
18387 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18388 if eval "test \"\${$as_ac_var+set}\" = set"; then
18389 echo $ECHO_N "(cached) $ECHO_C" >&6
18391 cat >conftest.$ac_ext <<_ACEOF
18394 cat confdefs.h >>conftest.$ac_ext
18395 cat >>conftest.$ac_ext <<_ACEOF
18396 /* end confdefs.h. */
18397 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18398 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18399 #define $ac_func innocuous_$ac_func
18401 /* System header to define __stub macros and hopefully few prototypes,
18402 which can conflict with char $ac_func (); below.
18403 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18404 <limits.h> exists even on freestanding compilers. */
18407 # include <limits.h>
18409 # include <assert.h>
18414 /* Override any gcc2 internal prototype to avoid an error. */
18419 /* We use char because int might match the return type of a gcc2
18420 builtin and then its argument prototype would still apply. */
18422 /* The GNU C library defines this for functions which it implements
18423 to always fail with ENOSYS. Some functions are actually named
18424 something starting with __ and the normal name is an alias. */
18425 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18428 char (*f) () = $ac_func;
18437 return f != $ac_func;
18442 rm -f conftest.$ac_objext conftest$ac_exeext
18443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18444 (eval $ac_link) 2>conftest.er1
18446 grep -v '^ *+' conftest.er1 >conftest.err
18448 cat conftest.err >&5
18449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18450 (exit $ac_status); } &&
18451 { ac_try='test -z "$ac_c_werror_flag"
18452 || test ! -s conftest.err'
18453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18454 (eval $ac_try) 2>&5
18456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18457 (exit $ac_status); }; } &&
18458 { ac_try='test -s conftest$ac_exeext'
18459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18460 (eval $ac_try) 2>&5
18462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18463 (exit $ac_status); }; }; then
18464 eval "$as_ac_var=yes"
18466 echo "$as_me: failed program was:" >&5
18467 sed 's/^/| /' conftest.$ac_ext >&5
18469 eval "$as_ac_var=no"
18471 rm -f conftest.err conftest.$ac_objext \
18472 conftest$ac_exeext conftest.$ac_ext
18474 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18475 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18476 if test `eval echo '${'$as_ac_var'}'` = yes; then
18477 cat >>confdefs.h <<_ACEOF
18478 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18480 cat >>confdefs.h <<\_ACEOF
18481 #define HAVE_INET_PTON 1
18488 for ac_func in inet_ntop
18490 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18491 echo "$as_me:$LINENO: checking for $ac_func" >&5
18492 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18493 if eval "test \"\${$as_ac_var+set}\" = set"; then
18494 echo $ECHO_N "(cached) $ECHO_C" >&6
18496 cat >conftest.$ac_ext <<_ACEOF
18499 cat confdefs.h >>conftest.$ac_ext
18500 cat >>conftest.$ac_ext <<_ACEOF
18501 /* end confdefs.h. */
18502 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18503 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18504 #define $ac_func innocuous_$ac_func
18506 /* System header to define __stub macros and hopefully few prototypes,
18507 which can conflict with char $ac_func (); below.
18508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18509 <limits.h> exists even on freestanding compilers. */
18512 # include <limits.h>
18514 # include <assert.h>
18519 /* Override any gcc2 internal prototype to avoid an error. */
18524 /* We use char because int might match the return type of a gcc2
18525 builtin and then its argument prototype would still apply. */
18527 /* The GNU C library defines this for functions which it implements
18528 to always fail with ENOSYS. Some functions are actually named
18529 something starting with __ and the normal name is an alias. */
18530 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18533 char (*f) () = $ac_func;
18542 return f != $ac_func;
18547 rm -f conftest.$ac_objext conftest$ac_exeext
18548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18549 (eval $ac_link) 2>conftest.er1
18551 grep -v '^ *+' conftest.er1 >conftest.err
18553 cat conftest.err >&5
18554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18555 (exit $ac_status); } &&
18556 { ac_try='test -z "$ac_c_werror_flag"
18557 || test ! -s conftest.err'
18558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18559 (eval $ac_try) 2>&5
18561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18562 (exit $ac_status); }; } &&
18563 { ac_try='test -s conftest$ac_exeext'
18564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18565 (eval $ac_try) 2>&5
18567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18568 (exit $ac_status); }; }; then
18569 eval "$as_ac_var=yes"
18571 echo "$as_me: failed program was:" >&5
18572 sed 's/^/| /' conftest.$ac_ext >&5
18574 eval "$as_ac_var=no"
18576 rm -f conftest.err conftest.$ac_objext \
18577 conftest$ac_exeext conftest.$ac_ext
18579 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18580 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18581 if test `eval echo '${'$as_ac_var'}'` = yes; then
18582 cat >>confdefs.h <<_ACEOF
18583 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18585 cat >>confdefs.h <<\_ACEOF
18586 #define HAVE_INET_NTOP 1
18593 for ac_func in gethostbyname2
18595 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18596 echo "$as_me:$LINENO: checking for $ac_func" >&5
18597 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18598 if eval "test \"\${$as_ac_var+set}\" = set"; then
18599 echo $ECHO_N "(cached) $ECHO_C" >&6
18601 cat >conftest.$ac_ext <<_ACEOF
18604 cat confdefs.h >>conftest.$ac_ext
18605 cat >>conftest.$ac_ext <<_ACEOF
18606 /* end confdefs.h. */
18607 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18608 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18609 #define $ac_func innocuous_$ac_func
18611 /* System header to define __stub macros and hopefully few prototypes,
18612 which can conflict with char $ac_func (); below.
18613 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18614 <limits.h> exists even on freestanding compilers. */
18617 # include <limits.h>
18619 # include <assert.h>
18624 /* Override any gcc2 internal prototype to avoid an error. */
18629 /* We use char because int might match the return type of a gcc2
18630 builtin and then its argument prototype would still apply. */
18632 /* The GNU C library defines this for functions which it implements
18633 to always fail with ENOSYS. Some functions are actually named
18634 something starting with __ and the normal name is an alias. */
18635 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18638 char (*f) () = $ac_func;
18647 return f != $ac_func;
18652 rm -f conftest.$ac_objext conftest$ac_exeext
18653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18654 (eval $ac_link) 2>conftest.er1
18656 grep -v '^ *+' conftest.er1 >conftest.err
18658 cat conftest.err >&5
18659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18660 (exit $ac_status); } &&
18661 { ac_try='test -z "$ac_c_werror_flag"
18662 || test ! -s conftest.err'
18663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18664 (eval $ac_try) 2>&5
18666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18667 (exit $ac_status); }; } &&
18668 { ac_try='test -s conftest$ac_exeext'
18669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18670 (eval $ac_try) 2>&5
18672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18673 (exit $ac_status); }; }; then
18674 eval "$as_ac_var=yes"
18676 echo "$as_me: failed program was:" >&5
18677 sed 's/^/| /' conftest.$ac_ext >&5
18679 eval "$as_ac_var=no"
18681 rm -f conftest.err conftest.$ac_objext \
18682 conftest$ac_exeext conftest.$ac_ext
18684 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18685 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18686 if test `eval echo '${'$as_ac_var'}'` = yes; then
18687 cat >>confdefs.h <<_ACEOF
18688 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18690 cat >>confdefs.h <<\_ACEOF
18691 #define HAVE_GETHOSTBYNAME2 1
18698 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
18699 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
18700 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
18701 echo $ECHO_N "(cached) $ECHO_C" >&6
18703 cat >conftest.$ac_ext <<_ACEOF
18706 cat confdefs.h >>conftest.$ac_ext
18707 cat >>conftest.$ac_ext <<_ACEOF
18708 /* end confdefs.h. */
18709 #include <sys/socket.h>
18713 struct sockaddr s; s.sa_len;
18718 rm -f conftest.$ac_objext
18719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18720 (eval $ac_compile) 2>conftest.er1
18722 grep -v '^ *+' conftest.er1 >conftest.err
18724 cat conftest.err >&5
18725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18726 (exit $ac_status); } &&
18727 { ac_try='test -z "$ac_c_werror_flag"
18728 || test ! -s conftest.err'
18729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18730 (eval $ac_try) 2>&5
18732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18733 (exit $ac_status); }; } &&
18734 { ac_try='test -s conftest.$ac_objext'
18735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18736 (eval $ac_try) 2>&5
18738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18739 (exit $ac_status); }; }; then
18740 ac_cv_struct_sockaddr_sa_len=yes
18742 echo "$as_me: failed program was:" >&5
18743 sed 's/^/| /' conftest.$ac_ext >&5
18745 ac_cv_struct_sockaddr_sa_len=no
18747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18749 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
18750 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
18752 if test $ac_cv_struct_sockaddr_sa_len = yes; then
18754 cat >>confdefs.h <<\_ACEOF
18755 #define HAVE_SA_LEN 1
18761 echo "$as_me:$LINENO: checking for IPv6 support" >&5
18762 echo $ECHO_N "checking for IPv6 support... $ECHO_C" >&6
18763 if test "${ac_cv_ipv6_support+set}" = set; then
18764 echo $ECHO_N "(cached) $ECHO_C" >&6
18766 cat >conftest.$ac_ext <<_ACEOF
18769 cat confdefs.h >>conftest.$ac_ext
18770 cat >>conftest.$ac_ext <<_ACEOF
18771 /* end confdefs.h. */
18772 #include <sys/types.h>
18773 #include <sys/socket.h>
18774 #include <netinet/in.h>
18778 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] =
18784 rm -f conftest.$ac_objext conftest$ac_exeext
18785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18786 (eval $ac_link) 2>conftest.er1
18788 grep -v '^ *+' conftest.er1 >conftest.err
18790 cat conftest.err >&5
18791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18792 (exit $ac_status); } &&
18793 { ac_try='test -z "$ac_c_werror_flag"
18794 || test ! -s conftest.err'
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); }; } &&
18800 { ac_try='test -s conftest$ac_exeext'
18801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18802 (eval $ac_try) 2>&5
18804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18805 (exit $ac_status); }; }; then
18806 ac_cv_ipv6_support=yes
18808 echo "$as_me: failed program was:" >&5
18809 sed 's/^/| /' conftest.$ac_ext >&5
18811 ac_cv_ipv6_support=no
18813 rm -f conftest.err conftest.$ac_objext \
18814 conftest$ac_exeext conftest.$ac_ext
18816 echo "$as_me:$LINENO: result: $ac_cv_ipv6_support" >&5
18817 echo "${ECHO_T}$ac_cv_ipv6_support" >&6
18819 if test "$ac_cv_ipv6_support" = yes; then
18821 cat >>confdefs.h <<\_ACEOF
18822 #define HAVE_IPV6 1
18830 for ac_func in strftime
18832 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18833 echo "$as_me:$LINENO: checking for $ac_func" >&5
18834 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18835 if eval "test \"\${$as_ac_var+set}\" = set"; then
18836 echo $ECHO_N "(cached) $ECHO_C" >&6
18838 cat >conftest.$ac_ext <<_ACEOF
18841 cat confdefs.h >>conftest.$ac_ext
18842 cat >>conftest.$ac_ext <<_ACEOF
18843 /* end confdefs.h. */
18844 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18845 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18846 #define $ac_func innocuous_$ac_func
18848 /* System header to define __stub macros and hopefully few prototypes,
18849 which can conflict with char $ac_func (); below.
18850 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18851 <limits.h> exists even on freestanding compilers. */
18854 # include <limits.h>
18856 # include <assert.h>
18861 /* Override any gcc2 internal prototype to avoid an error. */
18866 /* We use char because int might match the return type of a gcc2
18867 builtin and then its argument prototype would still apply. */
18869 /* The GNU C library defines this for functions which it implements
18870 to always fail with ENOSYS. Some functions are actually named
18871 something starting with __ and the normal name is an alias. */
18872 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18875 char (*f) () = $ac_func;
18884 return f != $ac_func;
18889 rm -f conftest.$ac_objext conftest$ac_exeext
18890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18891 (eval $ac_link) 2>conftest.er1
18893 grep -v '^ *+' conftest.er1 >conftest.err
18895 cat conftest.err >&5
18896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18897 (exit $ac_status); } &&
18898 { ac_try='test -z "$ac_c_werror_flag"
18899 || test ! -s conftest.err'
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); }; } &&
18905 { ac_try='test -s conftest$ac_exeext'
18906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18907 (eval $ac_try) 2>&5
18909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18910 (exit $ac_status); }; }; then
18911 eval "$as_ac_var=yes"
18913 echo "$as_me: failed program was:" >&5
18914 sed 's/^/| /' conftest.$ac_ext >&5
18916 eval "$as_ac_var=no"
18918 rm -f conftest.err conftest.$ac_objext \
18919 conftest$ac_exeext conftest.$ac_ext
18921 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18922 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18923 if test `eval echo '${'$as_ac_var'}'` = yes; then
18924 cat >>confdefs.h <<_ACEOF
18925 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18929 # strftime is in -lintl on SCO UNIX.
18930 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
18931 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
18932 if test "${ac_cv_lib_intl_strftime+set}" = set; then
18933 echo $ECHO_N "(cached) $ECHO_C" >&6
18935 ac_check_lib_save_LIBS=$LIBS
18936 LIBS="-lintl $LIBS"
18937 cat >conftest.$ac_ext <<_ACEOF
18940 cat confdefs.h >>conftest.$ac_ext
18941 cat >>conftest.$ac_ext <<_ACEOF
18942 /* end confdefs.h. */
18944 /* Override any gcc2 internal prototype to avoid an error. */
18948 /* We use char because int might match the return type of a gcc2
18949 builtin and then its argument prototype would still apply. */
18959 rm -f conftest.$ac_objext conftest$ac_exeext
18960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18961 (eval $ac_link) 2>conftest.er1
18963 grep -v '^ *+' conftest.er1 >conftest.err
18965 cat conftest.err >&5
18966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18967 (exit $ac_status); } &&
18968 { ac_try='test -z "$ac_c_werror_flag"
18969 || test ! -s conftest.err'
18970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18971 (eval $ac_try) 2>&5
18973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18974 (exit $ac_status); }; } &&
18975 { ac_try='test -s conftest$ac_exeext'
18976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18977 (eval $ac_try) 2>&5
18979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18980 (exit $ac_status); }; }; then
18981 ac_cv_lib_intl_strftime=yes
18983 echo "$as_me: failed program was:" >&5
18984 sed 's/^/| /' conftest.$ac_ext >&5
18986 ac_cv_lib_intl_strftime=no
18988 rm -f conftest.err conftest.$ac_objext \
18989 conftest$ac_exeext conftest.$ac_ext
18990 LIBS=$ac_check_lib_save_LIBS
18992 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
18993 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
18994 if test $ac_cv_lib_intl_strftime = yes; then
18995 cat >>confdefs.h <<\_ACEOF
18996 #define HAVE_STRFTIME 1
18999 LIBS="-lintl $LIBS"
19006 for ac_func in vprintf
19008 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19009 echo "$as_me:$LINENO: checking for $ac_func" >&5
19010 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19011 if eval "test \"\${$as_ac_var+set}\" = set"; then
19012 echo $ECHO_N "(cached) $ECHO_C" >&6
19014 cat >conftest.$ac_ext <<_ACEOF
19017 cat confdefs.h >>conftest.$ac_ext
19018 cat >>conftest.$ac_ext <<_ACEOF
19019 /* end confdefs.h. */
19020 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19021 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19022 #define $ac_func innocuous_$ac_func
19024 /* System header to define __stub macros and hopefully few prototypes,
19025 which can conflict with char $ac_func (); below.
19026 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19027 <limits.h> exists even on freestanding compilers. */
19030 # include <limits.h>
19032 # include <assert.h>
19037 /* Override any gcc2 internal prototype to avoid an error. */
19042 /* We use char because int might match the return type of a gcc2
19043 builtin and then its argument prototype would still apply. */
19045 /* The GNU C library defines this for functions which it implements
19046 to always fail with ENOSYS. Some functions are actually named
19047 something starting with __ and the normal name is an alias. */
19048 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19051 char (*f) () = $ac_func;
19060 return f != $ac_func;
19065 rm -f conftest.$ac_objext conftest$ac_exeext
19066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19067 (eval $ac_link) 2>conftest.er1
19069 grep -v '^ *+' conftest.er1 >conftest.err
19071 cat conftest.err >&5
19072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19073 (exit $ac_status); } &&
19074 { ac_try='test -z "$ac_c_werror_flag"
19075 || test ! -s conftest.err'
19076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19077 (eval $ac_try) 2>&5
19079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19080 (exit $ac_status); }; } &&
19081 { ac_try='test -s conftest$ac_exeext'
19082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19083 (eval $ac_try) 2>&5
19085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19086 (exit $ac_status); }; }; then
19087 eval "$as_ac_var=yes"
19089 echo "$as_me: failed program was:" >&5
19090 sed 's/^/| /' conftest.$ac_ext >&5
19092 eval "$as_ac_var=no"
19094 rm -f conftest.err conftest.$ac_objext \
19095 conftest$ac_exeext conftest.$ac_ext
19097 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19098 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19099 if test `eval echo '${'$as_ac_var'}'` = yes; then
19100 cat >>confdefs.h <<_ACEOF
19101 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19104 echo "$as_me:$LINENO: checking for _doprnt" >&5
19105 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
19106 if test "${ac_cv_func__doprnt+set}" = set; then
19107 echo $ECHO_N "(cached) $ECHO_C" >&6
19109 cat >conftest.$ac_ext <<_ACEOF
19112 cat confdefs.h >>conftest.$ac_ext
19113 cat >>conftest.$ac_ext <<_ACEOF
19114 /* end confdefs.h. */
19115 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
19116 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19117 #define _doprnt innocuous__doprnt
19119 /* System header to define __stub macros and hopefully few prototypes,
19120 which can conflict with char _doprnt (); below.
19121 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19122 <limits.h> exists even on freestanding compilers. */
19125 # include <limits.h>
19127 # include <assert.h>
19132 /* Override any gcc2 internal prototype to avoid an error. */
19137 /* We use char because int might match the return type of a gcc2
19138 builtin and then its argument prototype would still apply. */
19140 /* The GNU C library defines this for functions which it implements
19141 to always fail with ENOSYS. Some functions are actually named
19142 something starting with __ and the normal name is an alias. */
19143 #if defined (__stub__doprnt) || defined (__stub____doprnt)
19146 char (*f) () = _doprnt;
19155 return f != _doprnt;
19160 rm -f conftest.$ac_objext conftest$ac_exeext
19161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19162 (eval $ac_link) 2>conftest.er1
19164 grep -v '^ *+' conftest.er1 >conftest.err
19166 cat conftest.err >&5
19167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19168 (exit $ac_status); } &&
19169 { ac_try='test -z "$ac_c_werror_flag"
19170 || test ! -s conftest.err'
19171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19172 (eval $ac_try) 2>&5
19174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19175 (exit $ac_status); }; } &&
19176 { ac_try='test -s conftest$ac_exeext'
19177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19178 (eval $ac_try) 2>&5
19180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19181 (exit $ac_status); }; }; then
19182 ac_cv_func__doprnt=yes
19184 echo "$as_me: failed program was:" >&5
19185 sed 's/^/| /' conftest.$ac_ext >&5
19187 ac_cv_func__doprnt=no
19189 rm -f conftest.err conftest.$ac_objext \
19190 conftest$ac_exeext conftest.$ac_ext
19192 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
19193 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
19194 if test $ac_cv_func__doprnt = yes; then
19196 cat >>confdefs.h <<\_ACEOF
19197 #define HAVE_DOPRNT 1
19206 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19207 # for constant arguments. Useless!
19208 echo "$as_me:$LINENO: checking for working alloca.h" >&5
19209 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
19210 if test "${ac_cv_working_alloca_h+set}" = set; then
19211 echo $ECHO_N "(cached) $ECHO_C" >&6
19213 cat >conftest.$ac_ext <<_ACEOF
19216 cat confdefs.h >>conftest.$ac_ext
19217 cat >>conftest.$ac_ext <<_ACEOF
19218 /* end confdefs.h. */
19219 #include <alloca.h>
19223 char *p = (char *) alloca (2 * sizeof (int));
19228 rm -f conftest.$ac_objext conftest$ac_exeext
19229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19230 (eval $ac_link) 2>conftest.er1
19232 grep -v '^ *+' conftest.er1 >conftest.err
19234 cat conftest.err >&5
19235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19236 (exit $ac_status); } &&
19237 { ac_try='test -z "$ac_c_werror_flag"
19238 || test ! -s conftest.err'
19239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19240 (eval $ac_try) 2>&5
19242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19243 (exit $ac_status); }; } &&
19244 { ac_try='test -s conftest$ac_exeext'
19245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19246 (eval $ac_try) 2>&5
19248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19249 (exit $ac_status); }; }; then
19250 ac_cv_working_alloca_h=yes
19252 echo "$as_me: failed program was:" >&5
19253 sed 's/^/| /' conftest.$ac_ext >&5
19255 ac_cv_working_alloca_h=no
19257 rm -f conftest.err conftest.$ac_objext \
19258 conftest$ac_exeext conftest.$ac_ext
19260 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19261 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
19262 if test $ac_cv_working_alloca_h = yes; then
19264 cat >>confdefs.h <<\_ACEOF
19265 #define HAVE_ALLOCA_H 1
19270 echo "$as_me:$LINENO: checking for alloca" >&5
19271 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
19272 if test "${ac_cv_func_alloca_works+set}" = set; then
19273 echo $ECHO_N "(cached) $ECHO_C" >&6
19275 cat >conftest.$ac_ext <<_ACEOF
19278 cat confdefs.h >>conftest.$ac_ext
19279 cat >>conftest.$ac_ext <<_ACEOF
19280 /* end confdefs.h. */
19282 # define alloca __builtin_alloca
19285 # include <malloc.h>
19286 # define alloca _alloca
19289 # include <alloca.h>
19294 # ifndef alloca /* predefined by HP cc +Olibcalls */
19305 char *p = (char *) alloca (1);
19310 rm -f conftest.$ac_objext conftest$ac_exeext
19311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19312 (eval $ac_link) 2>conftest.er1
19314 grep -v '^ *+' conftest.er1 >conftest.err
19316 cat conftest.err >&5
19317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19318 (exit $ac_status); } &&
19319 { ac_try='test -z "$ac_c_werror_flag"
19320 || test ! -s conftest.err'
19321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19322 (eval $ac_try) 2>&5
19324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19325 (exit $ac_status); }; } &&
19326 { ac_try='test -s conftest$ac_exeext'
19327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19328 (eval $ac_try) 2>&5
19330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19331 (exit $ac_status); }; }; then
19332 ac_cv_func_alloca_works=yes
19334 echo "$as_me: failed program was:" >&5
19335 sed 's/^/| /' conftest.$ac_ext >&5
19337 ac_cv_func_alloca_works=no
19339 rm -f conftest.err conftest.$ac_objext \
19340 conftest$ac_exeext conftest.$ac_ext
19342 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19343 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
19345 if test $ac_cv_func_alloca_works = yes; then
19347 cat >>confdefs.h <<\_ACEOF
19348 #define HAVE_ALLOCA 1
19352 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19353 # that cause trouble. Some versions do not even contain alloca or
19354 # contain a buggy version. If you still want to use their alloca,
19355 # use ar to extract alloca.o from them instead of compiling alloca.c.
19357 ALLOCA=alloca.$ac_objext
19359 cat >>confdefs.h <<\_ACEOF
19364 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19365 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
19366 if test "${ac_cv_os_cray+set}" = set; then
19367 echo $ECHO_N "(cached) $ECHO_C" >&6
19369 cat >conftest.$ac_ext <<_ACEOF
19372 cat confdefs.h >>conftest.$ac_ext
19373 cat >>conftest.$ac_ext <<_ACEOF
19374 /* end confdefs.h. */
19375 #if defined(CRAY) && ! defined(CRAY2)
19382 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19383 $EGREP "webecray" >/dev/null 2>&1; then
19391 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19392 echo "${ECHO_T}$ac_cv_os_cray" >&6
19393 if test $ac_cv_os_cray = yes; then
19394 for ac_func in _getb67 GETB67 getb67; do
19395 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19396 echo "$as_me:$LINENO: checking for $ac_func" >&5
19397 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19398 if eval "test \"\${$as_ac_var+set}\" = set"; then
19399 echo $ECHO_N "(cached) $ECHO_C" >&6
19401 cat >conftest.$ac_ext <<_ACEOF
19404 cat confdefs.h >>conftest.$ac_ext
19405 cat >>conftest.$ac_ext <<_ACEOF
19406 /* end confdefs.h. */
19407 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19408 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19409 #define $ac_func innocuous_$ac_func
19411 /* System header to define __stub macros and hopefully few prototypes,
19412 which can conflict with char $ac_func (); below.
19413 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19414 <limits.h> exists even on freestanding compilers. */
19417 # include <limits.h>
19419 # include <assert.h>
19424 /* Override any gcc2 internal prototype to avoid an error. */
19429 /* We use char because int might match the return type of a gcc2
19430 builtin and then its argument prototype would still apply. */
19432 /* The GNU C library defines this for functions which it implements
19433 to always fail with ENOSYS. Some functions are actually named
19434 something starting with __ and the normal name is an alias. */
19435 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19438 char (*f) () = $ac_func;
19447 return f != $ac_func;
19452 rm -f conftest.$ac_objext conftest$ac_exeext
19453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19454 (eval $ac_link) 2>conftest.er1
19456 grep -v '^ *+' conftest.er1 >conftest.err
19458 cat conftest.err >&5
19459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19460 (exit $ac_status); } &&
19461 { ac_try='test -z "$ac_c_werror_flag"
19462 || test ! -s conftest.err'
19463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19464 (eval $ac_try) 2>&5
19466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19467 (exit $ac_status); }; } &&
19468 { ac_try='test -s conftest$ac_exeext'
19469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19470 (eval $ac_try) 2>&5
19472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19473 (exit $ac_status); }; }; then
19474 eval "$as_ac_var=yes"
19476 echo "$as_me: failed program was:" >&5
19477 sed 's/^/| /' conftest.$ac_ext >&5
19479 eval "$as_ac_var=no"
19481 rm -f conftest.err conftest.$ac_objext \
19482 conftest$ac_exeext conftest.$ac_ext
19484 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19485 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19486 if test `eval echo '${'$as_ac_var'}'` = yes; then
19488 cat >>confdefs.h <<_ACEOF
19489 #define CRAY_STACKSEG_END $ac_func
19498 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19499 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
19500 if test "${ac_cv_c_stack_direction+set}" = set; then
19501 echo $ECHO_N "(cached) $ECHO_C" >&6
19503 if test "$cross_compiling" = yes; then
19504 ac_cv_c_stack_direction=0
19506 cat >conftest.$ac_ext <<_ACEOF
19509 cat confdefs.h >>conftest.$ac_ext
19510 cat >>conftest.$ac_ext <<_ACEOF
19511 /* end confdefs.h. */
19513 find_stack_direction ()
19515 static char *addr = 0;
19520 return find_stack_direction ();
19523 return (&dummy > addr) ? 1 : -1;
19529 exit (find_stack_direction () < 0);
19532 rm -f conftest$ac_exeext
19533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19534 (eval $ac_link) 2>&5
19536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19537 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19539 (eval $ac_try) 2>&5
19541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19542 (exit $ac_status); }; }; then
19543 ac_cv_c_stack_direction=1
19545 echo "$as_me: program exited with status $ac_status" >&5
19546 echo "$as_me: failed program was:" >&5
19547 sed 's/^/| /' conftest.$ac_ext >&5
19549 ( exit $ac_status )
19550 ac_cv_c_stack_direction=-1
19552 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19555 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19556 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
19558 cat >>confdefs.h <<_ACEOF
19559 #define STACK_DIRECTION $ac_cv_c_stack_direction
19565 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
19566 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
19567 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
19568 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
19569 echo $ECHO_N "(cached) $ECHO_C" >&6
19571 ac_check_lib_save_LIBS=$LIBS
19573 cat >conftest.$ac_ext <<_ACEOF
19576 cat confdefs.h >>conftest.$ac_ext
19577 cat >>conftest.$ac_ext <<_ACEOF
19578 /* end confdefs.h. */
19580 /* Override any gcc2 internal prototype to avoid an error. */
19584 /* We use char because int might match the return type of a gcc2
19585 builtin and then its argument prototype would still apply. */
19595 rm -f conftest.$ac_objext conftest$ac_exeext
19596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19597 (eval $ac_link) 2>conftest.er1
19599 grep -v '^ *+' conftest.er1 >conftest.err
19601 cat conftest.err >&5
19602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19603 (exit $ac_status); } &&
19604 { ac_try='test -z "$ac_c_werror_flag"
19605 || test ! -s conftest.err'
19606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19607 (eval $ac_try) 2>&5
19609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19610 (exit $ac_status); }; } &&
19611 { ac_try='test -s conftest$ac_exeext'
19612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19613 (eval $ac_try) 2>&5
19615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19616 (exit $ac_status); }; }; then
19617 ac_cv_lib_sun_getmntent=yes
19619 echo "$as_me: failed program was:" >&5
19620 sed 's/^/| /' conftest.$ac_ext >&5
19622 ac_cv_lib_sun_getmntent=no
19624 rm -f conftest.err conftest.$ac_objext \
19625 conftest$ac_exeext conftest.$ac_ext
19626 LIBS=$ac_check_lib_save_LIBS
19628 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
19629 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
19630 if test $ac_cv_lib_sun_getmntent = yes; then
19633 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
19634 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
19635 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
19636 echo $ECHO_N "(cached) $ECHO_C" >&6
19638 ac_check_lib_save_LIBS=$LIBS
19640 cat >conftest.$ac_ext <<_ACEOF
19643 cat confdefs.h >>conftest.$ac_ext
19644 cat >>conftest.$ac_ext <<_ACEOF
19645 /* end confdefs.h. */
19647 /* Override any gcc2 internal prototype to avoid an error. */
19651 /* We use char because int might match the return type of a gcc2
19652 builtin and then its argument prototype would still apply. */
19662 rm -f conftest.$ac_objext conftest$ac_exeext
19663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19664 (eval $ac_link) 2>conftest.er1
19666 grep -v '^ *+' conftest.er1 >conftest.err
19668 cat conftest.err >&5
19669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19670 (exit $ac_status); } &&
19671 { ac_try='test -z "$ac_c_werror_flag"
19672 || test ! -s conftest.err'
19673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19674 (eval $ac_try) 2>&5
19676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19677 (exit $ac_status); }; } &&
19678 { ac_try='test -s conftest$ac_exeext'
19679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19680 (eval $ac_try) 2>&5
19682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19683 (exit $ac_status); }; }; then
19684 ac_cv_lib_seq_getmntent=yes
19686 echo "$as_me: failed program was:" >&5
19687 sed 's/^/| /' conftest.$ac_ext >&5
19689 ac_cv_lib_seq_getmntent=no
19691 rm -f conftest.err conftest.$ac_objext \
19692 conftest$ac_exeext conftest.$ac_ext
19693 LIBS=$ac_check_lib_save_LIBS
19695 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
19696 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
19697 if test $ac_cv_lib_seq_getmntent = yes; then
19700 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
19701 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
19702 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
19703 echo $ECHO_N "(cached) $ECHO_C" >&6
19705 ac_check_lib_save_LIBS=$LIBS
19707 cat >conftest.$ac_ext <<_ACEOF
19710 cat confdefs.h >>conftest.$ac_ext
19711 cat >>conftest.$ac_ext <<_ACEOF
19712 /* end confdefs.h. */
19714 /* Override any gcc2 internal prototype to avoid an error. */
19718 /* We use char because int might match the return type of a gcc2
19719 builtin and then its argument prototype would still apply. */
19729 rm -f conftest.$ac_objext conftest$ac_exeext
19730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19731 (eval $ac_link) 2>conftest.er1
19733 grep -v '^ *+' conftest.er1 >conftest.err
19735 cat conftest.err >&5
19736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19737 (exit $ac_status); } &&
19738 { ac_try='test -z "$ac_c_werror_flag"
19739 || test ! -s conftest.err'
19740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19741 (eval $ac_try) 2>&5
19743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19744 (exit $ac_status); }; } &&
19745 { ac_try='test -s conftest$ac_exeext'
19746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19747 (eval $ac_try) 2>&5
19749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19750 (exit $ac_status); }; }; then
19751 ac_cv_lib_gen_getmntent=yes
19753 echo "$as_me: failed program was:" >&5
19754 sed 's/^/| /' conftest.$ac_ext >&5
19756 ac_cv_lib_gen_getmntent=no
19758 rm -f conftest.err conftest.$ac_objext \
19759 conftest$ac_exeext conftest.$ac_ext
19760 LIBS=$ac_check_lib_save_LIBS
19762 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
19763 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
19764 if test $ac_cv_lib_gen_getmntent = yes; then
19773 for ac_func in getmntent
19775 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19776 echo "$as_me:$LINENO: checking for $ac_func" >&5
19777 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19778 if eval "test \"\${$as_ac_var+set}\" = set"; then
19779 echo $ECHO_N "(cached) $ECHO_C" >&6
19781 cat >conftest.$ac_ext <<_ACEOF
19784 cat confdefs.h >>conftest.$ac_ext
19785 cat >>conftest.$ac_ext <<_ACEOF
19786 /* end confdefs.h. */
19787 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19788 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19789 #define $ac_func innocuous_$ac_func
19791 /* System header to define __stub macros and hopefully few prototypes,
19792 which can conflict with char $ac_func (); below.
19793 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19794 <limits.h> exists even on freestanding compilers. */
19797 # include <limits.h>
19799 # include <assert.h>
19804 /* Override any gcc2 internal prototype to avoid an error. */
19809 /* We use char because int might match the return type of a gcc2
19810 builtin and then its argument prototype would still apply. */
19812 /* The GNU C library defines this for functions which it implements
19813 to always fail with ENOSYS. Some functions are actually named
19814 something starting with __ and the normal name is an alias. */
19815 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19818 char (*f) () = $ac_func;
19827 return f != $ac_func;
19832 rm -f conftest.$ac_objext conftest$ac_exeext
19833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19834 (eval $ac_link) 2>conftest.er1
19836 grep -v '^ *+' conftest.er1 >conftest.err
19838 cat conftest.err >&5
19839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19840 (exit $ac_status); } &&
19841 { ac_try='test -z "$ac_c_werror_flag"
19842 || test ! -s conftest.err'
19843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19844 (eval $ac_try) 2>&5
19846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19847 (exit $ac_status); }; } &&
19848 { ac_try='test -s conftest$ac_exeext'
19849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19850 (eval $ac_try) 2>&5
19852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19853 (exit $ac_status); }; }; then
19854 eval "$as_ac_var=yes"
19856 echo "$as_me: failed program was:" >&5
19857 sed 's/^/| /' conftest.$ac_ext >&5
19859 eval "$as_ac_var=no"
19861 rm -f conftest.err conftest.$ac_objext \
19862 conftest$ac_exeext conftest.$ac_ext
19864 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19865 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19866 if test `eval echo '${'$as_ac_var'}'` = yes; then
19867 cat >>confdefs.h <<_ACEOF
19868 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19875 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
19876 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
19877 if test "${ac_cv_func_closedir_void+set}" = set; then
19878 echo $ECHO_N "(cached) $ECHO_C" >&6
19880 if test "$cross_compiling" = yes; then
19881 ac_cv_func_closedir_void=yes
19883 cat >conftest.$ac_ext <<_ACEOF
19886 cat confdefs.h >>conftest.$ac_ext
19887 cat >>conftest.$ac_ext <<_ACEOF
19888 /* end confdefs.h. */
19889 $ac_includes_default
19890 #include <$ac_header_dirent>
19891 #ifndef __cplusplus
19898 exit (closedir (opendir (".")) != 0);
19903 rm -f conftest$ac_exeext
19904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19905 (eval $ac_link) 2>&5
19907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19908 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19910 (eval $ac_try) 2>&5
19912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19913 (exit $ac_status); }; }; then
19914 ac_cv_func_closedir_void=no
19916 echo "$as_me: program exited with status $ac_status" >&5
19917 echo "$as_me: failed program was:" >&5
19918 sed 's/^/| /' conftest.$ac_ext >&5
19920 ( exit $ac_status )
19921 ac_cv_func_closedir_void=yes
19923 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19926 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
19927 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
19928 if test $ac_cv_func_closedir_void = yes; then
19930 cat >>confdefs.h <<\_ACEOF
19931 #define CLOSEDIR_VOID 1
19936 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
19937 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
19938 if test "${ac_cv_func_setpgrp_void+set}" = set; then
19939 echo $ECHO_N "(cached) $ECHO_C" >&6
19941 if test "$cross_compiling" = yes; then
19942 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
19943 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
19944 { (exit 1); exit 1; }; }
19946 cat >conftest.$ac_ext <<_ACEOF
19949 cat confdefs.h >>conftest.$ac_ext
19950 cat >>conftest.$ac_ext <<_ACEOF
19951 /* end confdefs.h. */
19953 # include <unistd.h>
19959 /* If this system has a BSD-style setpgrp which takes arguments,
19960 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
19961 exit successfully. */
19962 exit (setpgrp (1,1) == -1 ? 0 : 1);
19967 rm -f conftest$ac_exeext
19968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19969 (eval $ac_link) 2>&5
19971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19972 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19974 (eval $ac_try) 2>&5
19976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19977 (exit $ac_status); }; }; then
19978 ac_cv_func_setpgrp_void=no
19980 echo "$as_me: program exited with status $ac_status" >&5
19981 echo "$as_me: failed program was:" >&5
19982 sed 's/^/| /' conftest.$ac_ext >&5
19984 ( exit $ac_status )
19985 ac_cv_func_setpgrp_void=yes
19987 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19990 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
19991 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
19992 if test $ac_cv_func_setpgrp_void = yes; then
19994 cat >>confdefs.h <<\_ACEOF
19995 #define SETPGRP_VOID 1
19999 # AC_FUNC_FNMATCH dnl use local version
20002 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
20003 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
20004 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
20005 echo $ECHO_N "(cached) $ECHO_C" >&6
20007 ac_check_lib_save_LIBS=$LIBS
20008 LIBS="-lxpg4 $LIBS"
20009 cat >conftest.$ac_ext <<_ACEOF
20012 cat confdefs.h >>conftest.$ac_ext
20013 cat >>conftest.$ac_ext <<_ACEOF
20014 /* end confdefs.h. */
20016 /* Override any gcc2 internal prototype to avoid an error. */
20020 /* We use char because int might match the return type of a gcc2
20021 builtin and then its argument prototype would still apply. */
20031 rm -f conftest.$ac_objext conftest$ac_exeext
20032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20033 (eval $ac_link) 2>conftest.er1
20035 grep -v '^ *+' conftest.er1 >conftest.err
20037 cat conftest.err >&5
20038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20039 (exit $ac_status); } &&
20040 { ac_try='test -z "$ac_c_werror_flag"
20041 || test ! -s conftest.err'
20042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20043 (eval $ac_try) 2>&5
20045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20046 (exit $ac_status); }; } &&
20047 { ac_try='test -s conftest$ac_exeext'
20048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20049 (eval $ac_try) 2>&5
20051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20052 (exit $ac_status); }; }; then
20053 ac_cv_lib_xpg4_setlocale=yes
20055 echo "$as_me: failed program was:" >&5
20056 sed 's/^/| /' conftest.$ac_ext >&5
20058 ac_cv_lib_xpg4_setlocale=no
20060 rm -f conftest.err conftest.$ac_objext \
20061 conftest$ac_exeext conftest.$ac_ext
20062 LIBS=$ac_check_lib_save_LIBS
20064 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
20065 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
20066 if test $ac_cv_lib_xpg4_setlocale = yes; then
20067 LIBS="$LIBS -lxpg4"
20073 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
20074 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
20075 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
20076 echo $ECHO_N "(cached) $ECHO_C" >&6
20078 ac_check_lib_save_LIBS=$LIBS
20080 cat >conftest.$ac_ext <<_ACEOF
20083 cat confdefs.h >>conftest.$ac_ext
20084 cat >>conftest.$ac_ext <<_ACEOF
20085 /* end confdefs.h. */
20087 /* Override any gcc2 internal prototype to avoid an error. */
20091 /* We use char because int might match the return type of a gcc2
20092 builtin and then its argument prototype would still apply. */
20102 rm -f conftest.$ac_objext conftest$ac_exeext
20103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20104 (eval $ac_link) 2>conftest.er1
20106 grep -v '^ *+' conftest.er1 >conftest.err
20108 cat conftest.err >&5
20109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20110 (exit $ac_status); } &&
20111 { ac_try='test -z "$ac_c_werror_flag"
20112 || test ! -s conftest.err'
20113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20114 (eval $ac_try) 2>&5
20116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20117 (exit $ac_status); }; } &&
20118 { ac_try='test -s conftest$ac_exeext'
20119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20120 (eval $ac_try) 2>&5
20122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20123 (exit $ac_status); }; }; then
20124 ac_cv_lib_sun_getpwnam=yes
20126 echo "$as_me: failed program was:" >&5
20127 sed 's/^/| /' conftest.$ac_ext >&5
20129 ac_cv_lib_sun_getpwnam=no
20131 rm -f conftest.err conftest.$ac_objext \
20132 conftest$ac_exeext conftest.$ac_ext
20133 LIBS=$ac_check_lib_save_LIBS
20135 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
20136 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
20137 if test $ac_cv_lib_sun_getpwnam = yes; then
20138 cat >>confdefs.h <<_ACEOF
20139 #define HAVE_LIBSUN 1
20148 for ac_header in zlib.h
20150 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20151 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20152 echo "$as_me:$LINENO: checking for $ac_header" >&5
20153 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20154 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20155 echo $ECHO_N "(cached) $ECHO_C" >&6
20157 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20158 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20160 # Is the header compilable?
20161 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20162 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20163 cat >conftest.$ac_ext <<_ACEOF
20166 cat confdefs.h >>conftest.$ac_ext
20167 cat >>conftest.$ac_ext <<_ACEOF
20168 /* end confdefs.h. */
20169 $ac_includes_default
20170 #include <$ac_header>
20172 rm -f conftest.$ac_objext
20173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20174 (eval $ac_compile) 2>conftest.er1
20176 grep -v '^ *+' conftest.er1 >conftest.err
20178 cat conftest.err >&5
20179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20180 (exit $ac_status); } &&
20181 { ac_try='test -z "$ac_c_werror_flag"
20182 || test ! -s conftest.err'
20183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20184 (eval $ac_try) 2>&5
20186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20187 (exit $ac_status); }; } &&
20188 { ac_try='test -s conftest.$ac_objext'
20189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20190 (eval $ac_try) 2>&5
20192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20193 (exit $ac_status); }; }; then
20194 ac_header_compiler=yes
20196 echo "$as_me: failed program was:" >&5
20197 sed 's/^/| /' conftest.$ac_ext >&5
20199 ac_header_compiler=no
20201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20202 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20203 echo "${ECHO_T}$ac_header_compiler" >&6
20205 # Is the header present?
20206 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20207 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20208 cat >conftest.$ac_ext <<_ACEOF
20211 cat confdefs.h >>conftest.$ac_ext
20212 cat >>conftest.$ac_ext <<_ACEOF
20213 /* end confdefs.h. */
20214 #include <$ac_header>
20216 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20217 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20219 grep -v '^ *+' conftest.er1 >conftest.err
20221 cat conftest.err >&5
20222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20223 (exit $ac_status); } >/dev/null; then
20224 if test -s conftest.err; then
20225 ac_cpp_err=$ac_c_preproc_warn_flag
20226 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20233 if test -z "$ac_cpp_err"; then
20234 ac_header_preproc=yes
20236 echo "$as_me: failed program was:" >&5
20237 sed 's/^/| /' conftest.$ac_ext >&5
20239 ac_header_preproc=no
20241 rm -f conftest.err conftest.$ac_ext
20242 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20243 echo "${ECHO_T}$ac_header_preproc" >&6
20245 # So? What about this header?
20246 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20248 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20249 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20250 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20251 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20252 ac_header_preproc=yes
20255 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20256 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20257 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20258 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20259 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20260 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20261 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20262 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20263 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20264 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20265 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20266 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20269 ## ------------------------------------------ ##
20270 ## Report this to the AC_PACKAGE_NAME lists. ##
20271 ## ------------------------------------------ ##
20274 sed "s/^/$as_me: WARNING: /" >&2
20277 echo "$as_me:$LINENO: checking for $ac_header" >&5
20278 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20279 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20280 echo $ECHO_N "(cached) $ECHO_C" >&6
20282 eval "$as_ac_Header=\$ac_header_preproc"
20284 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20285 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20288 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20289 cat >>confdefs.h <<_ACEOF
20290 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20297 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
20298 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
20299 if test "${ac_cv_lib_z_deflate+set}" = set; then
20300 echo $ECHO_N "(cached) $ECHO_C" >&6
20302 ac_check_lib_save_LIBS=$LIBS
20304 cat >conftest.$ac_ext <<_ACEOF
20307 cat confdefs.h >>conftest.$ac_ext
20308 cat >>conftest.$ac_ext <<_ACEOF
20309 /* end confdefs.h. */
20311 /* Override any gcc2 internal prototype to avoid an error. */
20315 /* We use char because int might match the return type of a gcc2
20316 builtin and then its argument prototype would still apply. */
20326 rm -f conftest.$ac_objext conftest$ac_exeext
20327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20328 (eval $ac_link) 2>conftest.er1
20330 grep -v '^ *+' conftest.er1 >conftest.err
20332 cat conftest.err >&5
20333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20334 (exit $ac_status); } &&
20335 { ac_try='test -z "$ac_c_werror_flag"
20336 || test ! -s conftest.err'
20337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20338 (eval $ac_try) 2>&5
20340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20341 (exit $ac_status); }; } &&
20342 { ac_try='test -s conftest$ac_exeext'
20343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20344 (eval $ac_try) 2>&5
20346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20347 (exit $ac_status); }; }; then
20348 ac_cv_lib_z_deflate=yes
20350 echo "$as_me: failed program was:" >&5
20351 sed 's/^/| /' conftest.$ac_ext >&5
20353 ac_cv_lib_z_deflate=no
20355 rm -f conftest.err conftest.$ac_objext \
20356 conftest$ac_exeext conftest.$ac_ext
20357 LIBS=$ac_check_lib_save_LIBS
20359 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
20360 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
20361 if test $ac_cv_lib_z_deflate = yes; then
20366 if test x$FDLIBS = x-lz; then
20367 cat >>confdefs.h <<\_ACEOF
20368 #define HAVE_LIBZ 1
20374 if test "${ac_cv_header_sys_acl_h+set}" = set; then
20375 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
20376 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
20377 if test "${ac_cv_header_sys_acl_h+set}" = set; then
20378 echo $ECHO_N "(cached) $ECHO_C" >&6
20380 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
20381 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
20383 # Is the header compilable?
20384 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
20385 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
20386 cat >conftest.$ac_ext <<_ACEOF
20389 cat confdefs.h >>conftest.$ac_ext
20390 cat >>conftest.$ac_ext <<_ACEOF
20391 /* end confdefs.h. */
20392 $ac_includes_default
20393 #include <sys/acl.h>
20395 rm -f conftest.$ac_objext
20396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20397 (eval $ac_compile) 2>conftest.er1
20399 grep -v '^ *+' conftest.er1 >conftest.err
20401 cat conftest.err >&5
20402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20403 (exit $ac_status); } &&
20404 { ac_try='test -z "$ac_c_werror_flag"
20405 || test ! -s conftest.err'
20406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20407 (eval $ac_try) 2>&5
20409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20410 (exit $ac_status); }; } &&
20411 { ac_try='test -s conftest.$ac_objext'
20412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20413 (eval $ac_try) 2>&5
20415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20416 (exit $ac_status); }; }; then
20417 ac_header_compiler=yes
20419 echo "$as_me: failed program was:" >&5
20420 sed 's/^/| /' conftest.$ac_ext >&5
20422 ac_header_compiler=no
20424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20425 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20426 echo "${ECHO_T}$ac_header_compiler" >&6
20428 # Is the header present?
20429 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
20430 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
20431 cat >conftest.$ac_ext <<_ACEOF
20434 cat confdefs.h >>conftest.$ac_ext
20435 cat >>conftest.$ac_ext <<_ACEOF
20436 /* end confdefs.h. */
20437 #include <sys/acl.h>
20439 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20440 (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
20447 if test -s conftest.err; then
20448 ac_cpp_err=$ac_c_preproc_warn_flag
20449 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20456 if test -z "$ac_cpp_err"; then
20457 ac_header_preproc=yes
20459 echo "$as_me: failed program was:" >&5
20460 sed 's/^/| /' conftest.$ac_ext >&5
20462 ac_header_preproc=no
20464 rm -f conftest.err conftest.$ac_ext
20465 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20466 echo "${ECHO_T}$ac_header_preproc" >&6
20468 # So? What about this header?
20469 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20471 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
20472 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20473 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
20474 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
20475 ac_header_preproc=yes
20478 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
20479 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
20480 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
20481 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
20482 { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
20483 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
20484 { echo "$as_me:$LINENO: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&5
20485 echo "$as_me: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&2;}
20486 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
20487 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
20488 { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
20489 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
20492 ## ------------------------------------------ ##
20493 ## Report this to the AC_PACKAGE_NAME lists. ##
20494 ## ------------------------------------------ ##
20497 sed "s/^/$as_me: WARNING: /" >&2
20500 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
20501 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
20502 if test "${ac_cv_header_sys_acl_h+set}" = set; then
20503 echo $ECHO_N "(cached) $ECHO_C" >&6
20505 ac_cv_header_sys_acl_h=$ac_header_preproc
20507 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
20508 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
20513 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
20514 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
20515 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
20516 echo $ECHO_N "(cached) $ECHO_C" >&6
20518 ac_check_lib_save_LIBS=$LIBS
20520 cat >conftest.$ac_ext <<_ACEOF
20523 cat confdefs.h >>conftest.$ac_ext
20524 cat >>conftest.$ac_ext <<_ACEOF
20525 /* end confdefs.h. */
20527 /* Override any gcc2 internal prototype to avoid an error. */
20531 /* We use char because int might match the return type of a gcc2
20532 builtin and then its argument prototype would still apply. */
20533 char acl_get_file ();
20542 rm -f conftest.$ac_objext conftest$ac_exeext
20543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20544 (eval $ac_link) 2>conftest.er1
20546 grep -v '^ *+' conftest.er1 >conftest.err
20548 cat conftest.err >&5
20549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20550 (exit $ac_status); } &&
20551 { ac_try='test -z "$ac_c_werror_flag"
20552 || test ! -s conftest.err'
20553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20554 (eval $ac_try) 2>&5
20556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20557 (exit $ac_status); }; } &&
20558 { ac_try='test -s conftest$ac_exeext'
20559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20560 (eval $ac_try) 2>&5
20562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20563 (exit $ac_status); }; }; then
20564 ac_cv_lib_acl_acl_get_file=yes
20566 echo "$as_me: failed program was:" >&5
20567 sed 's/^/| /' conftest.$ac_ext >&5
20569 ac_cv_lib_acl_acl_get_file=no
20571 rm -f conftest.err conftest.$ac_objext \
20572 conftest$ac_exeext conftest.$ac_ext
20573 LIBS=$ac_check_lib_save_LIBS
20575 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
20576 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
20577 if test $ac_cv_lib_acl_acl_get_file = yes; then
20578 FDLIBS="-lacl $FDLIBS"
20582 if test $ac_cv_lib_acl_acl_get_file = yes; then
20583 cat >>confdefs.h <<\_ACEOF
20591 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
20592 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
20593 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
20594 echo $ECHO_N "(cached) $ECHO_C" >&6
20596 ac_check_lib_save_LIBS=$LIBS
20597 LIBS="-lpthread $LIBS"
20598 cat >conftest.$ac_ext <<_ACEOF
20601 cat confdefs.h >>conftest.$ac_ext
20602 cat >>conftest.$ac_ext <<_ACEOF
20603 /* end confdefs.h. */
20605 /* Override any gcc2 internal prototype to avoid an error. */
20609 /* We use char because int might match the return type of a gcc2
20610 builtin and then its argument prototype would still apply. */
20611 char pthread_create ();
20620 rm -f conftest.$ac_objext conftest$ac_exeext
20621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20622 (eval $ac_link) 2>conftest.er1
20624 grep -v '^ *+' conftest.er1 >conftest.err
20626 cat conftest.err >&5
20627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20628 (exit $ac_status); } &&
20629 { ac_try='test -z "$ac_c_werror_flag"
20630 || test ! -s conftest.err'
20631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20632 (eval $ac_try) 2>&5
20634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20635 (exit $ac_status); }; } &&
20636 { ac_try='test -s conftest$ac_exeext'
20637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20638 (eval $ac_try) 2>&5
20640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20641 (exit $ac_status); }; }; then
20642 ac_cv_lib_pthread_pthread_create=yes
20644 echo "$as_me: failed program was:" >&5
20645 sed 's/^/| /' conftest.$ac_ext >&5
20647 ac_cv_lib_pthread_pthread_create=no
20649 rm -f conftest.err conftest.$ac_objext \
20650 conftest$ac_exeext conftest.$ac_ext
20651 LIBS=$ac_check_lib_save_LIBS
20653 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
20654 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
20655 if test $ac_cv_lib_pthread_pthread_create = yes; then
20656 PTHREAD_LIB="-lpthread"
20658 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
20659 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
20660 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
20661 echo $ECHO_N "(cached) $ECHO_C" >&6
20663 ac_check_lib_save_LIBS=$LIBS
20664 LIBS="-lpthreads $LIBS"
20665 cat >conftest.$ac_ext <<_ACEOF
20668 cat confdefs.h >>conftest.$ac_ext
20669 cat >>conftest.$ac_ext <<_ACEOF
20670 /* end confdefs.h. */
20672 /* Override any gcc2 internal prototype to avoid an error. */
20676 /* We use char because int might match the return type of a gcc2
20677 builtin and then its argument prototype would still apply. */
20678 char pthread_create ();
20687 rm -f conftest.$ac_objext conftest$ac_exeext
20688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20689 (eval $ac_link) 2>conftest.er1
20691 grep -v '^ *+' conftest.er1 >conftest.err
20693 cat conftest.err >&5
20694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20695 (exit $ac_status); } &&
20696 { ac_try='test -z "$ac_c_werror_flag"
20697 || test ! -s conftest.err'
20698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20699 (eval $ac_try) 2>&5
20701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20702 (exit $ac_status); }; } &&
20703 { ac_try='test -s conftest$ac_exeext'
20704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20705 (eval $ac_try) 2>&5
20707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20708 (exit $ac_status); }; }; then
20709 ac_cv_lib_pthreads_pthread_create=yes
20711 echo "$as_me: failed program was:" >&5
20712 sed 's/^/| /' conftest.$ac_ext >&5
20714 ac_cv_lib_pthreads_pthread_create=no
20716 rm -f conftest.err conftest.$ac_objext \
20717 conftest$ac_exeext conftest.$ac_ext
20718 LIBS=$ac_check_lib_save_LIBS
20720 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
20721 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
20722 if test $ac_cv_lib_pthreads_pthread_create = yes; then
20723 PTHREAD_LIB="-lpthreads"
20725 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
20726 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
20727 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
20728 echo $ECHO_N "(cached) $ECHO_C" >&6
20730 ac_check_lib_save_LIBS=$LIBS
20732 cat >conftest.$ac_ext <<_ACEOF
20735 cat confdefs.h >>conftest.$ac_ext
20736 cat >>conftest.$ac_ext <<_ACEOF
20737 /* end confdefs.h. */
20739 /* Override any gcc2 internal prototype to avoid an error. */
20743 /* We use char because int might match the return type of a gcc2
20744 builtin and then its argument prototype would still apply. */
20745 char pthread_create ();
20754 rm -f conftest.$ac_objext conftest$ac_exeext
20755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20756 (eval $ac_link) 2>conftest.er1
20758 grep -v '^ *+' conftest.er1 >conftest.err
20760 cat conftest.err >&5
20761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20762 (exit $ac_status); } &&
20763 { ac_try='test -z "$ac_c_werror_flag"
20764 || test ! -s conftest.err'
20765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20766 (eval $ac_try) 2>&5
20768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20769 (exit $ac_status); }; } &&
20770 { ac_try='test -s conftest$ac_exeext'
20771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20772 (eval $ac_try) 2>&5
20774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20775 (exit $ac_status); }; }; then
20776 ac_cv_lib_c_r_pthread_create=yes
20778 echo "$as_me: failed program was:" >&5
20779 sed 's/^/| /' conftest.$ac_ext >&5
20781 ac_cv_lib_c_r_pthread_create=no
20783 rm -f conftest.err conftest.$ac_objext \
20784 conftest$ac_exeext conftest.$ac_ext
20785 LIBS=$ac_check_lib_save_LIBS
20787 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
20788 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
20789 if test $ac_cv_lib_c_r_pthread_create = yes; then
20790 PTHREAD_LIB="-lc_r"
20792 echo "$as_me:$LINENO: checking for pthread_create" >&5
20793 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
20794 if test "${ac_cv_func_pthread_create+set}" = set; then
20795 echo $ECHO_N "(cached) $ECHO_C" >&6
20797 cat >conftest.$ac_ext <<_ACEOF
20800 cat confdefs.h >>conftest.$ac_ext
20801 cat >>conftest.$ac_ext <<_ACEOF
20802 /* end confdefs.h. */
20803 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
20804 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20805 #define pthread_create innocuous_pthread_create
20807 /* System header to define __stub macros and hopefully few prototypes,
20808 which can conflict with char pthread_create (); below.
20809 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20810 <limits.h> exists even on freestanding compilers. */
20813 # include <limits.h>
20815 # include <assert.h>
20818 #undef pthread_create
20820 /* Override any gcc2 internal prototype to avoid an error. */
20825 /* We use char because int might match the return type of a gcc2
20826 builtin and then its argument prototype would still apply. */
20827 char pthread_create ();
20828 /* The GNU C library defines this for functions which it implements
20829 to always fail with ENOSYS. Some functions are actually named
20830 something starting with __ and the normal name is an alias. */
20831 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
20834 char (*f) () = pthread_create;
20843 return f != pthread_create;
20848 rm -f conftest.$ac_objext conftest$ac_exeext
20849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20850 (eval $ac_link) 2>conftest.er1
20852 grep -v '^ *+' conftest.er1 >conftest.err
20854 cat conftest.err >&5
20855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20856 (exit $ac_status); } &&
20857 { ac_try='test -z "$ac_c_werror_flag"
20858 || test ! -s conftest.err'
20859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20860 (eval $ac_try) 2>&5
20862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20863 (exit $ac_status); }; } &&
20864 { ac_try='test -s conftest$ac_exeext'
20865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20866 (eval $ac_try) 2>&5
20868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20869 (exit $ac_status); }; }; then
20870 ac_cv_func_pthread_create=yes
20872 echo "$as_me: failed program was:" >&5
20873 sed 's/^/| /' conftest.$ac_ext >&5
20875 ac_cv_func_pthread_create=no
20877 rm -f conftest.err conftest.$ac_objext \
20878 conftest$ac_exeext conftest.$ac_ext
20880 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
20881 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
20894 cat >>confdefs.h <<\_ACEOF
20900 CFLAGS=${CFLAGS--O}
20901 LDFLAGS=${LDFLAGS--O}
20902 DB_LIBS="${SQL_LFLAGS}"
20904 CPPFLAGS="$CPPFLAGS"
20929 # Finally we set appropriate distribution specific
20930 # variables and defaults
20932 # PFILES are platform specific files
20933 PFILES="platforms/Makefile"
20937 hostname=`uname -n | cut -d '.' -f 1`
20938 case "$DISTNAME" in
20941 PSCMD="ps -e -o pid,comm"
20942 PFILES="${PFILES} \
20943 platforms/aix/Makefile"
20944 TAPEDRIVE="/dev/rmt0.1"
20948 PTHREAD_LIB="-lpthread -lexc"
20949 if test "${CC}" = "gcc" ; then
20956 TAPEDRIVE="/dev/nrmt0"
20959 DISTVER=`uname -a |awk '{print $3}'`
20960 TAPEDRIVE="/dev/nrmt0"
20961 PTHREAD_LIB="-pthread"
20962 CFLAGS="${CFLAGS} -pthread"
20963 PSCMD="ps -ax -o pid,command"
20966 PFILES="${PFILES} \
20967 platforms/bsdi/Makefile \
20968 platforms/bsdi/bacula-fd \
20969 platforms/bsdi/bacula-sd \
20970 platforms/bsdi/bacula-dir"
20971 largefile_support="yes"
20974 DISTVER=`uname -a |awk '{print $3}'`
20975 TAPEDRIVE="/dev/nrst0"
20977 WCFLAGS="-mwindows"
20978 WLDFLAGS="-mwindows"
20982 TAPEDRIVE="/dev/nst0"
20983 PSCMD="ps -e -o pid,command"
20985 PFILES="${PFILES} \
20986 platforms/darwin/Makefile"
20989 DISTVER=`cat /etc/debian_version`
20990 TAPEDRIVE="/dev/nrst0"
20991 PSCMD="ps -e -o pid,command"
20994 DISTVER=`uname -a |awk '{print $3}'`
20995 VER=`echo $DISTVER | cut -c 1`
20996 if test x$VER = x4 ; then
20997 PTHREAD_LIB="-pthread"
20998 CFLAGS="${CFLAGS} -pthread"
21002 TAPEDRIVE="/dev/nrsa0"
21003 PSCMD="ps -ax -o pid,command"
21004 PFILES="${PFILES} \
21005 platforms/freebsd/Makefile \
21006 platforms/freebsd/bacula-fd \
21007 platforms/freebsd/bacula-sd \
21008 platforms/freebsd/bacula-dir"
21009 largefile_support="yes"
21012 PSCMD="UNIX95=1 ps -e -o pid,comm"
21013 CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
21015 TAPEDRIVE="/dev/rmt/0hnb"
21016 PTHREAD_LIB="-lpthread"
21017 cat >>confdefs.h <<\_ACEOF
21018 #define _INCLUDE_LONGLONG 1
21024 TAPEDRIVE="/dev/rmt/0cbn"
21025 PSCMD="ps -e -o pid,comm"
21026 PFILES="${PFILES} \
21027 platforms/irix/Makefile \
21028 platforms/irix/bacula-fd \
21029 platforms/irix/bacula-sd \
21030 platforms/irix/bacula-dir"
21033 DISTVER=`uname -a |awk '{print $3}'`
21036 TAPEDRIVE="/dev/nrst0"
21037 PSCMD="ps -ax -o pid,command"
21038 PTHREAD_LIB="-pthread"
21039 CFLAGS="${CFLAGS} -pthread"
21042 DISTVER=`uname -a |awk '{print $3}'`
21045 TAPEDRIVE="/dev/nrst0"
21046 PSCMD="ps -ax -o pid,command"
21047 PTHREAD_LIB="-pthread"
21048 CFLAGS="${CFLAGS} -pthread"
21049 PFILES="${PFILES} \
21050 platforms/openbsd/Makefile \
21051 platforms/openbsd/bacula-fd \
21052 platforms/openbsd/bacula-sd \
21053 platforms/openbsd/bacula-dir"
21056 if test -f /etc/whitebox-release ; then
21057 f=/etc/whitebox-release
21059 f=/etc/redhat-release
21061 if test `cat $f | grep release |\
21062 cut -f 3 -d ' '`x = "Enterprise"x ; then
21063 DISTVER="Enterprise "`cat $f | grep release |\
21066 DISTVER=`cat /etc/redhat-release | grep release |\
21069 TAPEDRIVE="/dev/nst0"
21070 PSCMD="ps -e -o pid,command"
21071 PFILES="${PFILES} \
21072 platforms/redhat/Makefile \
21073 platforms/redhat/bacula-fd \
21074 platforms/redhat/bacula-sd \
21075 platforms/redhat/bacula-dir \
21076 platforms/redhat/bacula.spec \
21078 hostname=`hostname -s`
21081 DISTVER=`cat /etc/mandrake-release | grep release |\
21083 TAPEDRIVE="/dev/nst0"
21084 PSCMD="ps -e -o pid,command"
21085 PFILES="${PFILES} \
21086 platforms/mandrake/Makefile \
21087 platforms/mandrake/bacula-fd \
21088 platforms/mandrake/bacula-sd \
21089 platforms/mandrake/bacula-dir \
21090 platforms/mandrake/bacula.spec \
21094 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
21095 TAPEDRIVE="/dev/nst0"
21096 PSCMD="ps -e -o pid,command"
21097 PFILES="${PFILES} \
21098 platforms/gentoo/Makefile \
21099 platforms/gentoo/bacula-init \
21100 platforms/gentoo/bacula-fd \
21101 platforms/gentoo/bacula-sd \
21102 platforms/gentoo/bacula-dir"
21105 DISTVER=`cat /etc/slackware-version`
21106 TAPEDRIVE="/dev/nst0"
21107 PSCMD="ps -e -o pid,command"
21108 PFILES="${PFILES} \
21109 platforms/slackware/Makefile \
21110 platforms/slackware/rc.bacula-fd \
21111 platforms/slackware/rc.bacula-sd \
21112 platforms/slackware/rc.bacula-dir\
21113 platforms/slackware/functions.bacula"
21117 TAPEDRIVE="/dev/rmt/0cbn"
21118 PSCMD="ps -e -o pid,comm"
21119 PFILES="${PFILES} \
21120 platforms/solaris/Makefile \
21121 platforms/solaris/bacula-fd \
21122 platforms/solaris/bacula-sd \
21123 platforms/solaris/bacula-dir"
21124 if test x$DISTVER = x5.6 ; then
21125 cat >>confdefs.h <<\_ACEOF
21126 #define HAVE_OLD_SOCKOPT 1
21130 LIBS="$LIBS -lresolv"
21133 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
21135 TAPEDRIVE="/dev/nst0"
21136 PSCMD="ps -e -o pid,command"
21137 PFILES="${PFILES} \
21138 platforms/suse/Makefile \
21139 platforms/suse/bacula-fd \
21140 platforms/suse/bacula-sd \
21141 platforms/suse/bacula-dir \
21142 platforms/suse/bacula \
21143 platforms/suse/bacula.spec"
21148 TAPEDRIVE="/dev/nst0"
21149 PSCMD="ps -e -o pid,command"
21150 PFILES="${PFILES} \
21151 platforms/suse/Makefile \
21152 platforms/suse/bacula-fd \
21153 platforms/suse/bacula-sd \
21154 platforms/suse/bacula-dir"
21158 TAPEDRIVE="/dev/nst0"
21161 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
21167 LIBS="$PTHREAD_LIB $LIBS"
21169 cat >>confdefs.h <<_ACEOF
21173 cat >>confdefs.h <<_ACEOF
21184 MCOMMON=./autoconf/Make.common
21187 if test "x${subsysdir}" = "x${sbindir}" ; then
21190 echo "You have set both --sbindir and --with-subsys-dir"
21191 echo " equal to: ${subsysdir} "
21192 echo "This is not permitted. Please reconfigure."
21194 echo "Aborting configuration ..."
21200 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/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 $PFILES"
21201 ac_config_commands="$ac_config_commands default"
21202 cat >confcache <<\_ACEOF
21203 # This file is a shell script that caches the results of configure
21204 # tests run on this system so they can be shared between configure
21205 # scripts and configure runs, see configure's option --config-cache.
21206 # It is not useful on other systems. If it contains results you don't
21207 # want to keep, you may remove or edit it.
21209 # config.status only pays attention to the cache file if you give it
21210 # the --recheck option to rerun configure.
21212 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21213 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21214 # following values.
21218 # The following way of writing the cache mishandles newlines in values,
21219 # but we know of no workaround that is simple, portable, and efficient.
21220 # So, don't put newlines in cache variables' values.
21221 # Ultrix sh set writes to stderr and can't be redirected directly,
21222 # and sets the high bit in the cache file unless we assign to the vars.
21225 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21227 # `set' does not quote correctly, so add quotes (double-quote
21228 # substitution turns \\\\ into \\, and sed turns \\ into \).
21231 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21234 # `set' quotes correctly as required by POSIX, so do not add quotes.
21236 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21243 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21245 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21247 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21248 if test -w $cache_file; then
21249 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21250 cat confcache >$cache_file
21252 echo "not updating unwritable cache $cache_file"
21257 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21258 # Let make expand exec_prefix.
21259 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21261 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21262 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21263 # trailing colons and then remove the whole line if VPATH becomes empty
21264 # (actually we leave an empty line to preserve line numbers).
21265 if test "x$srcdir" = x.; then
21266 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21267 s/:*\$(srcdir):*/:/;
21268 s/:*\${srcdir}:*/:/;
21270 s/^\([^=]*=[ ]*\):*/\1/;
21276 DEFS=-DHAVE_CONFIG_H
21280 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21281 # 1. Remove the extension, and $U if already installed.
21282 ac_i=`echo "$ac_i" |
21283 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21285 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21286 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21288 LIBOBJS=$ac_libobjs
21290 LTLIBOBJS=$ac_ltlibobjs
21294 : ${CONFIG_STATUS=./config.status}
21295 ac_clean_files_save=$ac_clean_files
21296 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21297 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21298 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21299 cat >$CONFIG_STATUS <<_ACEOF
21301 # Generated by $as_me.
21302 # Run this file to recreate the current configuration.
21303 # Compiler output produced by configure, useful for debugging
21304 # configure, is in config.log if it exists.
21307 ac_cs_recheck=false
21309 SHELL=\${CONFIG_SHELL-$SHELL}
21312 cat >>$CONFIG_STATUS <<\_ACEOF
21313 ## --------------------- ##
21314 ## M4sh Initialization. ##
21315 ## --------------------- ##
21317 # Be Bourne compatible
21318 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21321 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21322 # is contrary to our usage. Disable this feature.
21323 alias -g '${1+"$@"}'='"$@"'
21324 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21327 DUALCASE=1; export DUALCASE # for MKS sh
21329 # Support unset when possible.
21330 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21337 # Work around bugs in pre-3.0 UWIN ksh.
21338 $as_unset ENV MAIL MAILPATH
21345 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21346 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21347 LC_TELEPHONE LC_TIME
21349 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21350 eval $as_var=C; export $as_var
21356 # Required to use basename.
21357 if expr a : '\(a\)' >/dev/null 2>&1; then
21363 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21364 as_basename=basename
21370 # Name of the executable.
21371 as_me=`$as_basename "$0" ||
21372 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21373 X"$0" : 'X\(//\)$' \| \
21374 X"$0" : 'X\(/\)$' \| \
21375 . : '\(.\)' 2>/dev/null ||
21377 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21378 /^X\/\(\/\/\)$/{ s//\1/; q; }
21379 /^X\/\(\/\).*/{ s//\1/; q; }
21383 # PATH needs CR, and LINENO needs CR and PATH.
21384 # Avoid depending upon Character Ranges.
21385 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21386 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21387 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21388 as_cr_digits='0123456789'
21389 as_cr_alnum=$as_cr_Letters$as_cr_digits
21391 # The user is always right.
21392 if test "${PATH_SEPARATOR+set}" != set; then
21393 echo "#! /bin/sh" >conf$$.sh
21394 echo "exit 0" >>conf$$.sh
21396 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21405 as_lineno_1=$LINENO
21406 as_lineno_2=$LINENO
21407 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21408 test "x$as_lineno_1" != "x$as_lineno_2" &&
21409 test "x$as_lineno_3" = "x$as_lineno_2" || {
21410 # Find who we are. Look in the path if we contain no path at all
21413 *[\\/]* ) as_myself=$0 ;;
21414 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21415 for as_dir in $PATH
21418 test -z "$as_dir" && as_dir=.
21419 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21424 # We did not find ourselves, most probably we were run as `sh COMMAND'
21425 # in which case we are not to be found in the path.
21426 if test "x$as_myself" = x; then
21429 if test ! -f "$as_myself"; then
21430 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21431 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21432 { (exit 1); exit 1; }; }
21434 case $CONFIG_SHELL in
21436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21437 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21440 test -z "$as_dir" && as_dir=.
21441 for as_base in sh bash ksh sh5; do
21444 if ("$as_dir/$as_base" -c '
21445 as_lineno_1=$LINENO
21446 as_lineno_2=$LINENO
21447 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21448 test "x$as_lineno_1" != "x$as_lineno_2" &&
21449 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
21450 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21451 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21452 CONFIG_SHELL=$as_dir/$as_base
21453 export CONFIG_SHELL
21454 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21462 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21463 # uniformly replaced by the line number. The first 'sed' inserts a
21464 # line-number line before each line; the second 'sed' does the real
21465 # work. The second script uses 'N' to pair each line-number line
21466 # with the numbered line, and appends trailing '-' during
21467 # substitution so that $LINENO is not a special case at line end.
21468 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21469 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21470 sed '=' <$as_myself |
21475 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21478 s,^['$as_cr_digits']*\n,,
21479 ' >$as_me.lineno &&
21480 chmod +x $as_me.lineno ||
21481 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21482 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21483 { (exit 1); exit 1; }; }
21485 # Don't try to exec as it changes $[0], causing all sort of problems
21486 # (the dirname of $[0] is not the place where we might find the
21487 # original and so on. Autoconf is especially sensible to this).
21489 # Exit status is that of the last command.
21494 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21495 *c*,-n*) ECHO_N= ECHO_C='
21497 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21498 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
21501 if expr a : '\(a\)' >/dev/null 2>&1; then
21507 rm -f conf$$ conf$$.exe conf$$.file
21509 if ln -s conf$$.file conf$$ 2>/dev/null; then
21510 # We could just check for DJGPP; but this test a) works b) is more generic
21511 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21512 if test -f conf$$.exe; then
21513 # Don't use ln at all; we don't have any links
21518 elif ln conf$$.file conf$$ 2>/dev/null; then
21523 rm -f conf$$ conf$$.exe conf$$.file
21525 if mkdir -p . 2>/dev/null; then
21528 test -d ./-p && rmdir ./-p
21532 as_executable_p="test -f"
21534 # Sed expression to map a string onto a valid CPP name.
21535 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21537 # Sed expression to map a string onto a valid variable name.
21538 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21542 # We need space, tab and new line, in precisely that order.
21552 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21553 # report actual input values of CONFIG_FILES etc. instead of their
21554 # values after options handling. Logging --version etc. is OK.
21558 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21559 ## Running $as_me. ##
21564 This file was extended by $as_me, which was
21565 generated by GNU Autoconf 2.59. Invocation command line was
21567 CONFIG_FILES = $CONFIG_FILES
21568 CONFIG_HEADERS = $CONFIG_HEADERS
21569 CONFIG_LINKS = $CONFIG_LINKS
21570 CONFIG_COMMANDS = $CONFIG_COMMANDS
21574 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21578 # Files that config.status was made for.
21579 if test -n "$ac_config_files"; then
21580 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21583 if test -n "$ac_config_headers"; then
21584 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21587 if test -n "$ac_config_links"; then
21588 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21591 if test -n "$ac_config_commands"; then
21592 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21595 cat >>$CONFIG_STATUS <<\_ACEOF
21598 \`$as_me' instantiates files from templates according to the
21599 current configuration.
21601 Usage: $0 [OPTIONS] [FILE]...
21603 -h, --help print this help, then exit
21604 -V, --version print version number, then exit
21605 -q, --quiet do not print progress messages
21606 -d, --debug don't remove temporary files
21607 --recheck update $as_me by reconfiguring in the same conditions
21608 --file=FILE[:TEMPLATE]
21609 instantiate the configuration file FILE
21610 --header=FILE[:TEMPLATE]
21611 instantiate the configuration header FILE
21613 Configuration files:
21616 Configuration headers:
21619 Configuration commands:
21622 Report bugs to <bug-autoconf@gnu.org>."
21625 cat >>$CONFIG_STATUS <<_ACEOF
21628 configured by $0, generated by GNU Autoconf 2.59,
21629 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21631 Copyright (C) 2003 Free Software Foundation, Inc.
21632 This config.status script is free software; the Free Software Foundation
21633 gives unlimited permission to copy, distribute and modify it."
21638 cat >>$CONFIG_STATUS <<\_ACEOF
21639 # If no file are specified by the user, then we need to provide default
21640 # value. By we need to know if files were specified by the user.
21646 ac_option=`expr "x$1" : 'x\([^=]*\)='`
21647 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21655 *) # This is not an option, so the user has probably given explicit
21658 ac_need_defaults=false;;
21662 # Handling of the options.
21664 cat >>$CONFIG_STATUS <<\_ACEOF
21665 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21667 --version | --vers* | -V )
21668 echo "$ac_cs_version"; exit 0 ;;
21670 # Conflict between --help and --header
21671 { { echo "$as_me:$LINENO: error: ambiguous option: $1
21672 Try \`$0 --help' for more information." >&5
21673 echo "$as_me: error: ambiguous option: $1
21674 Try \`$0 --help' for more information." >&2;}
21675 { (exit 1); exit 1; }; };;
21676 --help | --hel | -h )
21677 echo "$ac_cs_usage"; exit 0 ;;
21678 --debug | --d* | -d )
21680 --file | --fil | --fi | --f )
21682 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21683 ac_need_defaults=false;;
21684 --header | --heade | --head | --hea )
21686 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21687 ac_need_defaults=false;;
21688 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21689 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21692 # This is an error.
21693 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21694 Try \`$0 --help' for more information." >&5
21695 echo "$as_me: error: unrecognized option: $1
21696 Try \`$0 --help' for more information." >&2;}
21697 { (exit 1); exit 1; }; } ;;
21699 *) ac_config_targets="$ac_config_targets $1" ;;
21705 ac_configure_extra_args=
21707 if $ac_cs_silent; then
21709 ac_configure_extra_args="$ac_configure_extra_args --silent"
21713 cat >>$CONFIG_STATUS <<_ACEOF
21714 if \$ac_cs_recheck; then
21715 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21716 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21725 cat >>$CONFIG_STATUS <<\_ACEOF
21726 for ac_config_target in $ac_config_targets
21728 case "$ac_config_target" in
21729 # Handling of arguments.
21730 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
21731 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21732 "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
21733 "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
21734 "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
21735 "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
21736 "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
21737 "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
21738 "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
21739 "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
21740 "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
21741 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
21742 "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
21743 "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
21744 "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
21745 "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
21746 "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
21747 "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
21748 "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
21749 "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
21750 "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
21751 "scripts/dvd-writepart" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-writepart" ;;
21752 "scripts/dvd-freespace" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-freespace" ;;
21753 "scripts/bacula-tray-monitor.desktop" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
21754 "scripts/logwatch/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
21755 "scripts/logwatch/logfile.bacula.conf" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
21756 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21757 "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
21758 "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
21759 "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
21760 "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
21761 "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
21762 "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
21763 "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
21764 "src/tray-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
21765 "src/tray-monitor/tray-monitor.conf" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
21766 "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
21767 "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
21768 "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
21769 "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
21770 "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
21771 "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
21772 "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
21773 "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
21774 "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
21775 "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
21776 "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
21777 "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
21778 "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
21779 "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
21780 "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
21781 "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
21782 "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
21783 "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
21784 "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
21785 "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
21786 "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
21787 "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
21788 "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
21789 "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
21790 "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
21791 "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
21792 "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
21793 "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
21794 "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
21795 "src/cats/create_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
21796 "src/cats/update_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
21797 "src/cats/make_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
21798 "src/cats/grant_sqlite3_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
21799 "src/cats/drop_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
21800 "src/cats/drop_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
21801 "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
21802 "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
21803 "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
21804 "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
21805 "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
21806 "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
21807 "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
21808 "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
21809 "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
21810 "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
21811 "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
21812 "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
21813 "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
21814 "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
21815 "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
21816 "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
21817 "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
21818 "src/win32/baculafd/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/baculafd/bacula-fd.conf" ;;
21819 "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
21820 "src/win32/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/console/bconsole.conf" ;;
21821 "src/win32/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/wx-console/wx-console.conf" ;;
21822 "src/win32/pebuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/pebuilder/Makefile" ;;
21823 "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
21824 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
21825 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
21826 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21827 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21828 { (exit 1); exit 1; }; };;
21832 # If the user did not use the arguments to specify the items to instantiate,
21833 # then the envvar interface is used. Set only those that are not.
21834 # We use the long form for the default assignment because of an extremely
21835 # bizarre bug on SunOS 4.1.3.
21836 if $ac_need_defaults; then
21837 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21838 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21839 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21842 # Have a temporary directory for convenience. Make it in the build tree
21843 # simply because there is no reason to put it here, and in addition,
21844 # creating and moving files from /tmp can sometimes cause problems.
21845 # Create a temporary directory, and hook for its removal unless debugging.
21848 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21849 trap '{ (exit 1); exit 1; }' 1 2 13 15
21852 # Create a (secure) tmp directory for tmp files.
21855 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21856 test -n "$tmp" && test -d "$tmp"
21859 tmp=./confstat$$-$RANDOM
21860 (umask 077 && mkdir $tmp)
21863 echo "$me: cannot create a temporary directory in ." >&2
21864 { (exit 1); exit 1; }
21869 cat >>$CONFIG_STATUS <<_ACEOF
21872 # CONFIG_FILES section.
21875 # No need to generate the scripts if there are no CONFIG_FILES.
21876 # This happens for instance when ./config.status config.h
21877 if test -n "\$CONFIG_FILES"; then
21878 # Protect against being on the right side of a sed subst in config.status.
21879 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21880 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21881 s,@SHELL@,$SHELL,;t t
21882 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21883 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21884 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21885 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21886 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21887 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21888 s,@exec_prefix@,$exec_prefix,;t t
21889 s,@prefix@,$prefix,;t t
21890 s,@program_transform_name@,$program_transform_name,;t t
21891 s,@bindir@,$bindir,;t t
21892 s,@sbindir@,$sbindir,;t t
21893 s,@libexecdir@,$libexecdir,;t t
21894 s,@datadir@,$datadir,;t t
21895 s,@sysconfdir@,$sysconfdir,;t t
21896 s,@sharedstatedir@,$sharedstatedir,;t t
21897 s,@localstatedir@,$localstatedir,;t t
21898 s,@libdir@,$libdir,;t t
21899 s,@includedir@,$includedir,;t t
21900 s,@oldincludedir@,$oldincludedir,;t t
21901 s,@infodir@,$infodir,;t t
21902 s,@mandir@,$mandir,;t t
21903 s,@build_alias@,$build_alias,;t t
21904 s,@host_alias@,$host_alias,;t t
21905 s,@target_alias@,$target_alias,;t t
21906 s,@DEFS@,$DEFS,;t t
21907 s,@ECHO_C@,$ECHO_C,;t t
21908 s,@ECHO_N@,$ECHO_N,;t t
21909 s,@ECHO_T@,$ECHO_T,;t t
21910 s,@LIBS@,$LIBS,;t t
21911 s,@BUILD_DIR@,$BUILD_DIR,;t t
21912 s,@TRUEPRG@,$TRUEPRG,;t t
21913 s,@FALSEPRG@,$FALSEPRG,;t t
21914 s,@VERSION@,$VERSION,;t t
21915 s,@DATE@,$DATE,;t t
21916 s,@LSMDATE@,$LSMDATE,;t t
21918 s,@CFLAGS@,$CFLAGS,;t t
21919 s,@LDFLAGS@,$LDFLAGS,;t t
21920 s,@CPPFLAGS@,$CPPFLAGS,;t t
21921 s,@ac_ct_CC@,$ac_ct_CC,;t t
21922 s,@EXEEXT@,$EXEEXT,;t t
21923 s,@OBJEXT@,$OBJEXT,;t t
21925 s,@CXXFLAGS@,$CXXFLAGS,;t t
21926 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21928 s,@EGREP@,$EGREP,;t t
21929 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21930 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21931 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21932 s,@RANLIB@,$RANLIB,;t t
21933 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21938 s,@ECHO@,$ECHO,;t t
21942 s,@OPENSSL@,$OPENSSL,;t t
21945 s,@MKISOFS@,$MKISOFS,;t t
21946 s,@PYTHON@,$PYTHON,;t t
21947 s,@GROWISOFS@,$GROWISOFS,;t t
21948 s,@DVDRWMEDIAINFO@,$DVDRWMEDIAINFO,;t t
21949 s,@PKGCONFIG@,$PKGCONFIG,;t t
21950 s,@WXCONFIG@,$WXCONFIG,;t t
21951 s,@WXFLAGS@,$WXFLAGS,;t t
21952 s,@CDRECORD@,$CDRECORD,;t t
21953 s,@PIDOF@,$PIDOF,;t t
21955 s,@ARFLAGS@,$ARFLAGS,;t t
21956 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
21957 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
21958 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
21959 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
21960 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
21961 s,@build@,$build,;t t
21962 s,@build_cpu@,$build_cpu,;t t
21963 s,@build_vendor@,$build_vendor,;t t
21964 s,@build_os@,$build_os,;t t
21965 s,@host@,$host,;t t
21966 s,@host_cpu@,$host_cpu,;t t
21967 s,@host_vendor@,$host_vendor,;t t
21968 s,@host_os@,$host_os,;t t
21969 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
21970 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
21971 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
21972 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
21973 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
21974 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
21975 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
21976 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
21977 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
21978 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
21979 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
21980 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
21981 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
21982 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
21983 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
21984 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
21985 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
21986 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
21987 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
21988 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
21989 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
21990 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
21991 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
21992 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
21993 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
21994 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
21995 s,@MSGFMT@,$MSGFMT,;t t
21996 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
21997 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
21998 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
21999 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
22000 s,@GNOME_DIR@,$GNOME_DIR,;t t
22001 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
22002 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
22003 s,@WX_DIR@,$WX_DIR,;t t
22004 s,@TRAY_MONITOR_CPPFLAGS@,$TRAY_MONITOR_CPPFLAGS,;t t
22005 s,@TRAY_MONITOR_LDFLAGS@,$TRAY_MONITOR_LDFLAGS,;t t
22006 s,@TRAY_MONITOR_DIR@,$TRAY_MONITOR_DIR,;t t
22007 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
22008 s,@STATIC_FD@,$STATIC_FD,;t t
22009 s,@STATIC_SD@,$STATIC_SD,;t t
22010 s,@STATIC_DIR@,$STATIC_DIR,;t t
22011 s,@STATIC_CONS@,$STATIC_CONS,;t t
22012 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
22013 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
22014 s,@ALL_DIRS@,$ALL_DIRS,;t t
22015 s,@CONS_INC@,$CONS_INC,;t t
22016 s,@CONS_OBJ@,$CONS_OBJ,;t t
22017 s,@CONS_SRC@,$CONS_SRC,;t t
22018 s,@CONS_LIBS@,$CONS_LIBS,;t t
22019 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
22020 s,@READLINE_SRC@,$READLINE_SRC,;t t
22021 s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t
22022 s,@PYTHON_INCDIR@,$PYTHON_INCDIR,;t t
22023 s,@OPENSSL_LIBS@,$OPENSSL_LIBS,;t t
22024 s,@OPENSSL_INC@,$OPENSSL_INC,;t t
22025 s,@working_dir@,$working_dir,;t t
22026 s,@scriptdir@,$scriptdir,;t t
22027 s,@dump_email@,$dump_email,;t t
22028 s,@job_email@,$job_email,;t t
22029 s,@smtp_host@,$smtp_host,;t t
22030 s,@piddir@,$piddir,;t t
22031 s,@subsysdir@,$subsysdir,;t t
22032 s,@baseport@,$baseport,;t t
22033 s,@dir_port@,$dir_port,;t t
22034 s,@fd_port@,$fd_port,;t t
22035 s,@sd_port@,$sd_port,;t t
22036 s,@dir_password@,$dir_password,;t t
22037 s,@fd_password@,$fd_password,;t t
22038 s,@sd_password@,$sd_password,;t t
22039 s,@mon_dir_password@,$mon_dir_password,;t t
22040 s,@mon_fd_password@,$mon_fd_password,;t t
22041 s,@mon_sd_password@,$mon_sd_password,;t t
22042 s,@dir_user@,$dir_user,;t t
22043 s,@dir_group@,$dir_group,;t t
22044 s,@sd_user@,$sd_user,;t t
22045 s,@sd_group@,$sd_group,;t t
22046 s,@fd_user@,$fd_user,;t t
22047 s,@fd_group@,$fd_group,;t t
22048 s,@SBINPERM@,$SBINPERM,;t t
22049 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
22050 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
22051 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
22052 s,@cats@,$cats,;t t
22053 s,@DB_NAME@,$DB_NAME,;t t
22054 s,@GETCONF@,$GETCONF,;t t
22055 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
22056 s,@X_CFLAGS@,$X_CFLAGS,;t t
22057 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
22058 s,@X_LIBS@,$X_LIBS,;t t
22059 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
22060 s,@LIBOBJS@,$LIBOBJS,;t t
22061 s,@ALLOCA@,$ALLOCA,;t t
22062 s,@FDLIBS@,$FDLIBS,;t t
22063 s,@DEBUG@,$DEBUG,;t t
22064 s,@DINCLUDE@,$DINCLUDE,;t t
22065 s,@DLIB@,$DLIB,;t t
22066 s,@DB_LIBS@,$DB_LIBS,;t t
22067 s,@WCFLAGS@,$WCFLAGS,;t t
22068 s,@WLDFLAGS@,$WLDFLAGS,;t t
22069 s,@OBJLIST@,$OBJLIST,;t t
22070 s,@hostname@,$hostname,;t t
22071 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
22072 s,@PSCMD@,$PSCMD,;t t
22073 s,@WIN32@,$WIN32,;t t
22074 s,@MACOSX@,$MACOSX,;t t
22075 s,@DISTNAME@,$DISTNAME,;t t
22076 s,@DISTVER@,$DISTVER,;t t
22077 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22078 /@MCOMMON@/r $MCOMMON
22084 cat >>$CONFIG_STATUS <<\_ACEOF
22085 # Split the substitutions into bite-sized pieces for seds with
22086 # small command number limits, like on Digital OSF/1 and HP-UX.
22087 ac_max_sed_lines=48
22088 ac_sed_frag=1 # Number of current file.
22089 ac_beg=1 # First line for current file.
22090 ac_end=$ac_max_sed_lines # Line after last line for current file.
22093 while $ac_more_lines; do
22094 if test $ac_beg -gt 1; then
22095 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22097 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22099 if test ! -s $tmp/subs.frag; then
22100 ac_more_lines=false
22102 # The purpose of the label and of the branching condition is to
22103 # speed up the sed processing (if there are no `@' at all, there
22104 # is no need to browse any of the substitutions).
22105 # These are the two extra sed commands mentioned above.
22107 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22108 if test -z "$ac_sed_cmds"; then
22109 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22111 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22113 ac_sed_frag=`expr $ac_sed_frag + 1`
22115 ac_end=`expr $ac_end + $ac_max_sed_lines`
22118 if test -z "$ac_sed_cmds"; then
22121 fi # test -n "$CONFIG_FILES"
22124 cat >>$CONFIG_STATUS <<\_ACEOF
22125 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22126 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22128 - | *:- | *:-:* ) # input from stdin
22130 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22131 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22132 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22133 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22134 * ) ac_file_in=$ac_file.in ;;
22137 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22138 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22139 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22140 X"$ac_file" : 'X\(//\)[^/]' \| \
22141 X"$ac_file" : 'X\(//\)$' \| \
22142 X"$ac_file" : 'X\(/\)' \| \
22143 . : '\(.\)' 2>/dev/null ||
22145 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22146 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22147 /^X\(\/\/\)$/{ s//\1/; q; }
22148 /^X\(\/\).*/{ s//\1/; q; }
22150 { if $as_mkdir_p; then
22155 while test ! -d "$as_dir"; do
22156 as_dirs="$as_dir $as_dirs"
22157 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22158 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22159 X"$as_dir" : 'X\(//\)[^/]' \| \
22160 X"$as_dir" : 'X\(//\)$' \| \
22161 X"$as_dir" : 'X\(/\)' \| \
22162 . : '\(.\)' 2>/dev/null ||
22164 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22165 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22166 /^X\(\/\/\)$/{ s//\1/; q; }
22167 /^X\(\/\).*/{ s//\1/; q; }
22170 test ! -n "$as_dirs" || mkdir $as_dirs
22171 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22172 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22173 { (exit 1); exit 1; }; }; }
22177 if test "$ac_dir" != .; then
22178 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22179 # A "../" for each directory in $ac_dir_suffix.
22180 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22182 ac_dir_suffix= ac_top_builddir=
22186 .) # No --srcdir option. We are building in place.
22188 if test -z "$ac_top_builddir"; then
22191 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22193 [\\/]* | ?:[\\/]* ) # Absolute path.
22194 ac_srcdir=$srcdir$ac_dir_suffix;
22195 ac_top_srcdir=$srcdir ;;
22196 *) # Relative path.
22197 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22198 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22201 # Do not use `cd foo && pwd` to compute absolute paths, because
22202 # the directories may not exist.
22204 .) ac_abs_builddir="$ac_dir";;
22207 .) ac_abs_builddir=`pwd`;;
22208 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22209 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22212 case $ac_abs_builddir in
22213 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22215 case ${ac_top_builddir}. in
22216 .) ac_abs_top_builddir=$ac_abs_builddir;;
22217 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22218 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22221 case $ac_abs_builddir in
22222 .) ac_abs_srcdir=$ac_srcdir;;
22225 .) ac_abs_srcdir=$ac_abs_builddir;;
22226 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22227 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22230 case $ac_abs_builddir in
22231 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22233 case $ac_top_srcdir in
22234 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22235 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22236 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22242 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22243 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22246 if test x"$ac_file" != x-; then
22247 { echo "$as_me:$LINENO: creating $ac_file" >&5
22248 echo "$as_me: creating $ac_file" >&6;}
22251 # Let's still pretend it is `configure' which instantiates (i.e., don't
22252 # use $as_me), people would be surprised to read:
22253 # /* config.h. Generated by config.status. */
22254 if test x"$ac_file" = x-; then
22257 configure_input="$ac_file. "
22259 configure_input=$configure_input"Generated from `echo $ac_file_in |
22260 sed 's,.*/,,'` by configure."
22262 # First look for the input files in the build tree, otherwise in the
22264 ac_file_inputs=`IFS=:
22265 for f in $ac_file_in; do
22267 -) echo $tmp/stdin ;;
22269 # Absolute (can't be DOS-style, as IFS=:)
22270 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22271 echo "$as_me: error: cannot find input file: $f" >&2;}
22272 { (exit 1); exit 1; }; }
22275 if test -f "$f"; then
22278 elif test -f "$srcdir/$f"; then
22283 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22284 echo "$as_me: error: cannot find input file: $f" >&2;}
22285 { (exit 1); exit 1; }; }
22288 done` || { (exit 1); exit 1; }
22290 cat >>$CONFIG_STATUS <<_ACEOF
22294 cat >>$CONFIG_STATUS <<\_ACEOF
22296 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22297 s,@configure_input@,$configure_input,;t t
22298 s,@srcdir@,$ac_srcdir,;t t
22299 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22300 s,@top_srcdir@,$ac_top_srcdir,;t t
22301 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22302 s,@builddir@,$ac_builddir,;t t
22303 s,@abs_builddir@,$ac_abs_builddir,;t t
22304 s,@top_builddir@,$ac_top_builddir,;t t
22305 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22306 s,@INSTALL@,$ac_INSTALL,;t t
22307 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22309 if test x"$ac_file" != x-; then
22310 mv $tmp/out $ac_file
22318 cat >>$CONFIG_STATUS <<\_ACEOF
22321 # CONFIG_HEADER section.
22324 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22325 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22327 # ac_d sets the value in "#define NAME VALUE" lines.
22328 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22329 ac_dB='[ ].*$,\1#\2'
22332 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22333 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22334 ac_uB='$,\1#\2define\3'
22338 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22339 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22341 - | *:- | *:-:* ) # input from stdin
22343 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22344 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22345 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22346 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22347 * ) ac_file_in=$ac_file.in ;;
22350 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22351 echo "$as_me: creating $ac_file" >&6;}
22353 # First look for the input files in the build tree, otherwise in the
22355 ac_file_inputs=`IFS=:
22356 for f in $ac_file_in; do
22358 -) echo $tmp/stdin ;;
22360 # Absolute (can't be DOS-style, as IFS=:)
22361 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22362 echo "$as_me: error: cannot find input file: $f" >&2;}
22363 { (exit 1); exit 1; }; }
22364 # Do quote $f, to prevent DOS paths from being IFS'd.
22367 if test -f "$f"; then
22370 elif test -f "$srcdir/$f"; then
22375 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22376 echo "$as_me: error: cannot find input file: $f" >&2;}
22377 { (exit 1); exit 1; }; }
22380 done` || { (exit 1); exit 1; }
22381 # Remove the trailing spaces.
22382 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22386 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22387 # `conftest.undefs', that substitutes the proper values into
22388 # config.h.in to produce config.h. The first handles `#define'
22389 # templates, and the second `#undef' templates.
22390 # And first: Protect against being on the right side of a sed subst in
22391 # config.status. Protect against being in an unquoted here document
22392 # in config.status.
22393 rm -f conftest.defines conftest.undefs
22394 # Using a here document instead of a string reduces the quoting nightmare.
22395 # Putting comments in sed scripts is not portable.
22397 # `end' is used to avoid that the second main sed command (meant for
22398 # 0-ary CPP macros) applies to n-ary macro definitions.
22399 # See the Autoconf documentation for `clear'.
22400 cat >confdef2sed.sed <<\_ACEOF
22405 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22407 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22410 # If some macros were called several times there might be several times
22411 # the same #defines, which is useless. Nevertheless, we may not want to
22412 # sort them, since we want the *last* AC-DEFINE to be honored.
22413 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22414 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22415 rm -f confdef2sed.sed
22417 # This sed command replaces #undef with comments. This is necessary, for
22418 # example, in the case of _POSIX_SOURCE, which is predefined and required
22419 # on some systems where configure will not decide to define it.
22420 cat >>conftest.undefs <<\_ACEOF
22421 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22424 # Break up conftest.defines because some shells have a limit on the size
22425 # of here documents, and old seds have small limits too (100 cmds).
22426 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22427 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22428 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22429 echo ' :' >>$CONFIG_STATUS
22430 rm -f conftest.tail
22431 while grep . conftest.defines >/dev/null
22433 # Write a limited-size here document to $tmp/defines.sed.
22434 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22435 # Speed up: don't consider the non `#define' lines.
22436 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22437 # Work around the forget-to-reset-the-flag bug.
22438 echo 't clr' >>$CONFIG_STATUS
22439 echo ': clr' >>$CONFIG_STATUS
22440 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22442 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22444 mv $tmp/out $tmp/in
22446 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22447 rm -f conftest.defines
22448 mv conftest.tail conftest.defines
22450 rm -f conftest.defines
22451 echo ' fi # grep' >>$CONFIG_STATUS
22452 echo >>$CONFIG_STATUS
22454 # Break up conftest.undefs because some shells have a limit on the size
22455 # of here documents, and old seds have small limits too (100 cmds).
22456 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22457 rm -f conftest.tail
22458 while grep . conftest.undefs >/dev/null
22460 # Write a limited-size here document to $tmp/undefs.sed.
22461 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22462 # Speed up: don't consider the non `#undef'
22463 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22464 # Work around the forget-to-reset-the-flag bug.
22465 echo 't clr' >>$CONFIG_STATUS
22466 echo ': clr' >>$CONFIG_STATUS
22467 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22469 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22471 mv $tmp/out $tmp/in
22473 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22474 rm -f conftest.undefs
22475 mv conftest.tail conftest.undefs
22477 rm -f conftest.undefs
22479 cat >>$CONFIG_STATUS <<\_ACEOF
22480 # Let's still pretend it is `configure' which instantiates (i.e., don't
22481 # use $as_me), people would be surprised to read:
22482 # /* config.h. Generated by config.status. */
22483 if test x"$ac_file" = x-; then
22484 echo "/* Generated by configure. */" >$tmp/config.h
22486 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22488 cat $tmp/in >>$tmp/config.h
22490 if test x"$ac_file" != x-; then
22491 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22492 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22493 echo "$as_me: $ac_file is unchanged" >&6;}
22495 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22496 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22497 X"$ac_file" : 'X\(//\)[^/]' \| \
22498 X"$ac_file" : 'X\(//\)$' \| \
22499 X"$ac_file" : 'X\(/\)' \| \
22500 . : '\(.\)' 2>/dev/null ||
22502 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22503 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22504 /^X\(\/\/\)$/{ s//\1/; q; }
22505 /^X\(\/\).*/{ s//\1/; q; }
22507 { if $as_mkdir_p; then
22512 while test ! -d "$as_dir"; do
22513 as_dirs="$as_dir $as_dirs"
22514 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22515 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22516 X"$as_dir" : 'X\(//\)[^/]' \| \
22517 X"$as_dir" : 'X\(//\)$' \| \
22518 X"$as_dir" : 'X\(/\)' \| \
22519 . : '\(.\)' 2>/dev/null ||
22521 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22522 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22523 /^X\(\/\/\)$/{ s//\1/; q; }
22524 /^X\(\/\).*/{ s//\1/; q; }
22527 test ! -n "$as_dirs" || mkdir $as_dirs
22528 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22529 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22530 { (exit 1); exit 1; }; }; }
22533 mv $tmp/config.h $ac_file
22537 rm -f $tmp/config.h
22541 cat >>$CONFIG_STATUS <<\_ACEOF
22544 # CONFIG_COMMANDS section.
22546 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22547 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22548 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22549 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22550 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22551 X"$ac_dest" : 'X\(//\)[^/]' \| \
22552 X"$ac_dest" : 'X\(//\)$' \| \
22553 X"$ac_dest" : 'X\(/\)' \| \
22554 . : '\(.\)' 2>/dev/null ||
22556 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22557 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22558 /^X\(\/\/\)$/{ s//\1/; q; }
22559 /^X\(\/\).*/{ s//\1/; q; }
22561 { if $as_mkdir_p; then
22566 while test ! -d "$as_dir"; do
22567 as_dirs="$as_dir $as_dirs"
22568 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22569 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22570 X"$as_dir" : 'X\(//\)[^/]' \| \
22571 X"$as_dir" : 'X\(//\)$' \| \
22572 X"$as_dir" : 'X\(/\)' \| \
22573 . : '\(.\)' 2>/dev/null ||
22575 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22576 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22577 /^X\(\/\/\)$/{ s//\1/; q; }
22578 /^X\(\/\).*/{ s//\1/; q; }
22581 test ! -n "$as_dirs" || mkdir $as_dirs
22582 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22583 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22584 { (exit 1); exit 1; }; }; }
22588 if test "$ac_dir" != .; then
22589 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22590 # A "../" for each directory in $ac_dir_suffix.
22591 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22593 ac_dir_suffix= ac_top_builddir=
22597 .) # No --srcdir option. We are building in place.
22599 if test -z "$ac_top_builddir"; then
22602 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22604 [\\/]* | ?:[\\/]* ) # Absolute path.
22605 ac_srcdir=$srcdir$ac_dir_suffix;
22606 ac_top_srcdir=$srcdir ;;
22607 *) # Relative path.
22608 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22609 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22612 # Do not use `cd foo && pwd` to compute absolute paths, because
22613 # the directories may not exist.
22615 .) ac_abs_builddir="$ac_dir";;
22618 .) ac_abs_builddir=`pwd`;;
22619 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22620 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22623 case $ac_abs_builddir in
22624 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22626 case ${ac_top_builddir}. in
22627 .) ac_abs_top_builddir=$ac_abs_builddir;;
22628 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22629 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22632 case $ac_abs_builddir in
22633 .) ac_abs_srcdir=$ac_srcdir;;
22636 .) ac_abs_srcdir=$ac_abs_builddir;;
22637 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22638 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22641 case $ac_abs_builddir in
22642 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22644 case $ac_top_srcdir in
22645 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22646 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22647 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22652 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22653 echo "$as_me: executing $ac_dest commands" >&6;}
22655 default ) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
22661 cat >>$CONFIG_STATUS <<\_ACEOF
22663 { (exit 0); exit 0; }
22665 chmod +x $CONFIG_STATUS
22666 ac_clean_files=$ac_clean_files_save
22669 # configure is writing to config.log, and then calls config.status.
22670 # config.status does its own redirection, appending to config.log.
22671 # Unfortunately, on DOS this fails, as config.log is still kept open
22672 # by configure, so config.status won't be able to write to it; its
22673 # output is simply discarded. So we exec the FD to /dev/null,
22674 # effectively closing config.log, so it can be properly (re)opened and
22675 # appended to by config.status. When coming back to configure, we
22676 # need to make the FD available again.
22677 if test "$no_create" != yes; then
22679 ac_config_status_args=
22680 test "$silent" = yes &&
22681 ac_config_status_args="$ac_config_status_args --quiet"
22683 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22685 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22686 # would make configure fail if this is the last instruction.
22687 $ac_cs_success || { (exit 1); exit 1; }
22692 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
22693 chmod 755 dvd-writepart dvd-freespace
22694 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
22699 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
22700 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
22702 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
22703 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
22705 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
22706 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
22708 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
22709 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
22711 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
22712 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
22714 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
22715 chmod 755 $c/sqlite
22718 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
22719 largefile_support="yes"
22723 # A whole lot of hand springs to get the compiler version.
22724 # This is because gcc changed the output in version 3.0
22726 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
22727 if test "x${CCVERSION}" = "x" ; then
22728 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
22730 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
22731 if test x"${CXXVERSION}" = x ; then
22732 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
22735 if test "x${subsysdir}" = "x${sbindir}" ; then
22738 echo "You have set --sbindir and --with-subsys-dir"
22739 echo " both equal to: ${subsysdir} "
22740 echo " This is not permitted. Please reconfigure."
22742 echo "Aborting configuration ..."
22748 if test "x${db_name}" = "xInternal" ; then
22751 echo "You have not specified either --enable-client-only or one of the"
22752 echo " supported databases: MySQL, PostgreSQL, SQLite3 or SQLite."
22753 echo " This is not permitted. Please reconfigure."
22755 echo "Aborting the configuration ..."
22762 Configuration on `date`:
22764 Host: $host -- ${DISTNAME} ${DISTVER}
22765 Bacula version: ${VERSION} (${DATE})
22766 Source code location: ${srcdir}
22767 Install binaries: ${sbindir}
22768 Install config files: ${sysconfdir}
22769 Scripts directory: ${scriptdir}
22770 Working directory: ${working_dir}
22771 PID directory: ${piddir}
22772 Subsys directory: ${subsysdir}
22773 Man directory: ${mandir}
22774 C Compiler: ${CC} ${CCVERSION}
22775 C++ Compiler: ${CXX} ${CXXVERSION}
22776 Compiler flags: ${WCFLAGS} ${CFLAGS}
22777 Linker flags: ${WLDFLAGS} ${LDFLAGS}
22779 Statically Linked Tools: ${support_static_tools}
22780 Statically Linked FD: ${support_static_fd}
22781 Statically Linked SD: ${support_static_sd}
22782 Statically Linked DIR: ${support_static_dir}
22783 Statically Linked CONS: ${support_static_cons}
22784 Database type: ${db_name}
22785 Database lib: ${DB_LIBS}
22787 Job Output Email: ${job_email}
22788 Traceback Email: ${dump_email}
22789 SMTP Host Address: ${smtp_host}
22791 Director Port: ${dir_port}
22792 File daemon Port: ${fd_port}
22793 Storage daemon Port: ${sd_port}
22795 Director User: ${dir_user}
22796 Director Group: ${dir_group}
22797 Storage Daemon User: ${sd_user}
22798 Storage DaemonGroup: ${sd_group}
22799 File Daemon User: ${fd_user}
22800 File Daemon Group: ${fd_group}
22802 SQL binaries Directory ${SQL_BINDIR}
22804 Large file support: $largefile_support
22805 Bacula conio support: ${got_conio} ${CONS_LIBS}
22806 readline support: ${got_readline} ${PRTREADLINE_SRC}
22807 TCP Wrappers support: ${TCPW_MSG}
22808 TLS support: ${support_tls}
22809 ZLIB support: ${have_zlib}
22810 enable-smartalloc: ${support_smartalloc}
22811 enable-gnome: ${support_gnome} ${gnome_version}
22812 enable-wx-console: ${support_wx_console} ${wx_version}
22813 enable-tray-monitor: ${support_tray_monitor}
22814 client-only: ${build_client_only}
22815 ACL support: ${have_acl}
22816 Python support: ${support_python} ${PYTHON_LIBS}