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 archivedir 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 TOP_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 DD MKISOFS PYTHON GROWISOFS DVDRWMEDIAINFO DVDRWFORMAT 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 SET_MAKE MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE INTL_MACOSX_LIBS LIBICONV LTLIBICONV INTLLIBS LIBINTL LTLIBINTL POSUB GLIBC2 ALLOCA GLIBC21 HAVE_POSIX_PRINTF HAVE_ASPRINTF HAVE_SNPRINTF HAVE_WPRINTF INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT DATADIRNAME INSTOBJEXT GENCAT INTLOBJS INTL_LIBTOOL_SUFFIX_PREFIX GNOME_INCLUDEDIR GNOMEUI_LIBS GNOME_LIBDIR GNOME_LIBS GNOME_DIR BAT_DIR QWT_INC QWT_LDFLAGS 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 DIRD_DIR DIR_TOOLS STORED_DIR 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 db_name db_user dir_user dir_group sd_user sd_group fd_user fd_group SBINPERM SQL_LFLAGS SQL_INCLUDE SQL_BINDIR cats DB_TYPE GETCONF ac_ct_GETCONF X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LIBOBJS FDLIBS DEBUG DINCLUDE DLIB DB_LIBS WCFLAGS WLDFLAGS WRAPLIBS 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'
358 # If the previous option needs an argument, assign it.
359 if test -n "$ac_prev"; then
360 eval "$ac_prev=\$ac_option"
365 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367 # Accept the important Cygnus configure options, so we can diagnose typos.
371 -bindir | --bindir | --bindi | --bind | --bin | --bi)
373 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376 -build | --build | --buil | --bui | --bu)
377 ac_prev=build_alias ;;
378 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379 build_alias=$ac_optarg ;;
381 -cache-file | --cache-file | --cache-fil | --cache-fi \
382 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383 ac_prev=cache_file ;;
384 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386 cache_file=$ac_optarg ;;
389 cache_file=config.cache ;;
391 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
393 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
395 datadir=$ac_optarg ;;
397 -disable-* | --disable-*)
398 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399 # Reject names that are not valid shell variable names.
400 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402 { (exit 1); exit 1; }; }
403 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404 eval "enable_$ac_feature=no" ;;
406 -enable-* | --enable-*)
407 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408 # Reject names that are not valid shell variable names.
409 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411 { (exit 1); exit 1; }; }
412 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
414 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 eval "enable_$ac_feature='$ac_optarg'" ;;
419 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421 | --exec | --exe | --ex)
422 ac_prev=exec_prefix ;;
423 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425 | --exec=* | --exe=* | --ex=*)
426 exec_prefix=$ac_optarg ;;
428 -gas | --gas | --ga | --g)
429 # Obsolete; use --with-gas.
432 -help | --help | --hel | --he | -h)
434 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435 ac_init_help=recursive ;;
436 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437 ac_init_help=short ;;
439 -host | --host | --hos | --ho)
440 ac_prev=host_alias ;;
441 -host=* | --host=* | --hos=* | --ho=*)
442 host_alias=$ac_optarg ;;
444 -includedir | --includedir | --includedi | --included | --include \
445 | --includ | --inclu | --incl | --inc)
446 ac_prev=includedir ;;
447 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448 | --includ=* | --inclu=* | --incl=* | --inc=*)
449 includedir=$ac_optarg ;;
451 -infodir | --infodir | --infodi | --infod | --info | --inf)
453 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454 infodir=$ac_optarg ;;
456 -libdir | --libdir | --libdi | --libd)
458 -libdir=* | --libdir=* | --libdi=* | --libd=*)
461 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462 | --libexe | --libex | --libe)
463 ac_prev=libexecdir ;;
464 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465 | --libexe=* | --libex=* | --libe=*)
466 libexecdir=$ac_optarg ;;
468 -localstatedir | --localstatedir | --localstatedi | --localstated \
469 | --localstate | --localstat | --localsta | --localst \
470 | --locals | --local | --loca | --loc | --lo)
471 ac_prev=localstatedir ;;
472 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
475 localstatedir=$ac_optarg ;;
477 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
479 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
483 # Obsolete; use --without-fp.
486 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487 | --no-cr | --no-c | -n)
490 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496 | --oldin | --oldi | --old | --ol | --o)
497 ac_prev=oldincludedir ;;
498 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
501 oldincludedir=$ac_optarg ;;
503 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
505 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
508 -program-prefix | --program-prefix | --program-prefi | --program-pref \
509 | --program-pre | --program-pr | --program-p)
510 ac_prev=program_prefix ;;
511 -program-prefix=* | --program-prefix=* | --program-prefi=* \
512 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
513 program_prefix=$ac_optarg ;;
515 -program-suffix | --program-suffix | --program-suffi | --program-suff \
516 | --program-suf | --program-su | --program-s)
517 ac_prev=program_suffix ;;
518 -program-suffix=* | --program-suffix=* | --program-suffi=* \
519 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
520 program_suffix=$ac_optarg ;;
522 -program-transform-name | --program-transform-name \
523 | --program-transform-nam | --program-transform-na \
524 | --program-transform-n | --program-transform- \
525 | --program-transform | --program-transfor \
526 | --program-transfo | --program-transf \
527 | --program-trans | --program-tran \
528 | --progr-tra | --program-tr | --program-t)
529 ac_prev=program_transform_name ;;
530 -program-transform-name=* | --program-transform-name=* \
531 | --program-transform-nam=* | --program-transform-na=* \
532 | --program-transform-n=* | --program-transform-=* \
533 | --program-transform=* | --program-transfor=* \
534 | --program-transfo=* | --program-transf=* \
535 | --program-trans=* | --program-tran=* \
536 | --progr-tra=* | --program-tr=* | --program-t=*)
537 program_transform_name=$ac_optarg ;;
539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540 | -silent | --silent | --silen | --sile | --sil)
543 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
545 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
547 sbindir=$ac_optarg ;;
549 -archivedir | --archivedir | --archivedi | --archived | --archive | --archiv \
550 | --archi | --arch | --arc | --ar | --a)
551 ac_prev=archivedir ;;
552 -archivedir=* | --archivedir=* | --archivedi=* | --archived=* | --archive=* \
553 | --archiv=* | --archi=* | --arch=* | --arc=* | --ar=* | --a=*)
554 archivedir=$ac_optarg ;;
556 -sharedstatedir | --sharedstatedir | --sharedstatedi \
557 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
558 | --sharedst | --shareds | --shared | --share | --shar \
560 ac_prev=sharedstatedir ;;
561 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
562 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
563 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
565 sharedstatedir=$ac_optarg ;;
567 -site | --site | --sit)
569 -site=* | --site=* | --sit=*)
572 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
574 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
577 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
578 | --syscon | --sysco | --sysc | --sys | --sy)
579 ac_prev=sysconfdir ;;
580 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
581 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
582 sysconfdir=$ac_optarg ;;
584 -target | --target | --targe | --targ | --tar | --ta | --t)
585 ac_prev=target_alias ;;
586 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
587 target_alias=$ac_optarg ;;
589 -v | -verbose | --verbose | --verbos | --verbo | --verb)
592 -version | --version | --versio | --versi | --vers | -V)
596 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
597 # Reject names that are not valid shell variable names.
598 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
599 { echo "$as_me: error: invalid package name: $ac_package" >&2
600 { (exit 1); exit 1; }; }
601 ac_package=`echo $ac_package| sed 's/-/_/g'`
603 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
606 eval "with_$ac_package='$ac_optarg'" ;;
608 -without-* | --without-*)
609 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
610 # Reject names that are not valid shell variable names.
611 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
612 { echo "$as_me: error: invalid package name: $ac_package" >&2
613 { (exit 1); exit 1; }; }
614 ac_package=`echo $ac_package | sed 's/-/_/g'`
615 eval "with_$ac_package=no" ;;
618 # Obsolete; use --with-x.
621 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
622 | --x-incl | --x-inc | --x-in | --x-i)
623 ac_prev=x_includes ;;
624 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
625 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
626 x_includes=$ac_optarg ;;
628 -x-libraries | --x-libraries | --x-librarie | --x-librari \
629 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
630 ac_prev=x_libraries ;;
631 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
632 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
633 x_libraries=$ac_optarg ;;
635 -*) { echo "$as_me: error: unrecognized option: $ac_option
636 Try \`$0 --help' for more information." >&2
637 { (exit 1); exit 1; }; }
641 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
642 # Reject names that are not valid shell variable names.
643 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
644 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
645 { (exit 1); exit 1; }; }
646 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
647 eval "$ac_envvar='$ac_optarg'"
651 # FIXME: should be removed in autoconf 3.0.
652 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
653 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
654 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
655 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
661 if test -n "$ac_prev"; then
662 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
663 { echo "$as_me: error: missing argument to $ac_option" >&2
664 { (exit 1); exit 1; }; }
667 # Be sure to have absolute paths.
668 for ac_var in exec_prefix prefix
670 eval ac_val=$`echo $ac_var`
672 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
673 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
674 { (exit 1); exit 1; }; };;
678 # Be sure to have absolute paths.
679 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir archivedir \
680 localstatedir libdir includedir oldincludedir infodir mandir
682 eval ac_val=$`echo $ac_var`
684 [\\/$]* | ?:[\\/]* ) ;;
685 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
686 { (exit 1); exit 1; }; };;
690 # There might be people who depend on the old broken behavior: `$host'
691 # used to hold the argument of --host etc.
692 # FIXME: To remove some day.
697 # FIXME: To remove some day.
698 if test "x$host_alias" != x; then
699 if test "x$build_alias" = x; then
700 cross_compiling=maybe
701 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
702 If a cross compiler is detected then cross compile mode will be used." >&2
703 elif test "x$build_alias" != "x$host_alias"; then
709 test -n "$host_alias" && ac_tool_prefix=$host_alias-
711 test "$silent" = yes && exec 6>/dev/null
714 # Find the source files, if location was not specified.
715 if test -z "$srcdir"; then
716 ac_srcdir_defaulted=yes
717 # Try the directory containing this script, then its parent.
718 ac_confdir=`(dirname "$0") 2>/dev/null ||
719 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
720 X"$0" : 'X\(//\)[^/]' \| \
721 X"$0" : 'X\(//\)$' \| \
722 X"$0" : 'X\(/\)' \| \
723 . : '\(.\)' 2>/dev/null ||
725 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
726 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
727 /^X\(\/\/\)$/{ s//\1/; q; }
728 /^X\(\/\).*/{ s//\1/; q; }
731 if test ! -r $srcdir/$ac_unique_file; then
735 ac_srcdir_defaulted=no
737 if test ! -r $srcdir/$ac_unique_file; then
738 if test "$ac_srcdir_defaulted" = yes; then
739 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
740 { (exit 1); exit 1; }; }
742 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
743 { (exit 1); exit 1; }; }
746 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
747 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
748 { (exit 1); exit 1; }; }
749 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
750 ac_env_build_alias_set=${build_alias+set}
751 ac_env_build_alias_value=$build_alias
752 ac_cv_env_build_alias_set=${build_alias+set}
753 ac_cv_env_build_alias_value=$build_alias
754 ac_env_host_alias_set=${host_alias+set}
755 ac_env_host_alias_value=$host_alias
756 ac_cv_env_host_alias_set=${host_alias+set}
757 ac_cv_env_host_alias_value=$host_alias
758 ac_env_target_alias_set=${target_alias+set}
759 ac_env_target_alias_value=$target_alias
760 ac_cv_env_target_alias_set=${target_alias+set}
761 ac_cv_env_target_alias_value=$target_alias
762 ac_env_CC_set=${CC+set}
764 ac_cv_env_CC_set=${CC+set}
765 ac_cv_env_CC_value=$CC
766 ac_env_CFLAGS_set=${CFLAGS+set}
767 ac_env_CFLAGS_value=$CFLAGS
768 ac_cv_env_CFLAGS_set=${CFLAGS+set}
769 ac_cv_env_CFLAGS_value=$CFLAGS
770 ac_env_LDFLAGS_set=${LDFLAGS+set}
771 ac_env_LDFLAGS_value=$LDFLAGS
772 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
773 ac_cv_env_LDFLAGS_value=$LDFLAGS
774 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
775 ac_env_CPPFLAGS_value=$CPPFLAGS
776 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
777 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
778 ac_env_CXX_set=${CXX+set}
779 ac_env_CXX_value=$CXX
780 ac_cv_env_CXX_set=${CXX+set}
781 ac_cv_env_CXX_value=$CXX
782 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
783 ac_env_CXXFLAGS_value=$CXXFLAGS
784 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
785 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
786 ac_env_CPP_set=${CPP+set}
787 ac_env_CPP_value=$CPP
788 ac_cv_env_CPP_set=${CPP+set}
789 ac_cv_env_CPP_value=$CPP
790 ac_env_WXCONFIG_set=${WXCONFIG+set}
791 ac_env_WXCONFIG_value=$WXCONFIG
792 ac_cv_env_WXCONFIG_set=${WXCONFIG+set}
793 ac_cv_env_WXCONFIG_value=$WXCONFIG
794 ac_env_WXFLAGS_set=${WXFLAGS+set}
795 ac_env_WXFLAGS_value=$WXFLAGS
796 ac_cv_env_WXFLAGS_set=${WXFLAGS+set}
797 ac_cv_env_WXFLAGS_value=$WXFLAGS
800 # Report the --help message.
802 if test "$ac_init_help" = "long"; then
803 # Omit some internal or obsolete options to make the list less imposing.
804 # This message is too long to be a string in the A/UX 3.1 sh.
806 \`configure' configures this package to adapt to many kinds of systems.
808 Usage: $0 [OPTION]... [VAR=VALUE]...
810 To assign environment variables (e.g., CC, CFLAGS...), specify them as
811 VAR=VALUE. See below for descriptions of some of the useful variables.
813 Defaults for the options are specified in brackets.
816 -h, --help display this help and exit
817 --help=short display options specific to this package
818 --help=recursive display the short help of all the included packages
819 -V, --version display version information and exit
820 -q, --quiet, --silent do not print \`checking...' messages
821 --cache-file=FILE cache test results in FILE [disabled]
822 -C, --config-cache alias for \`--cache-file=config.cache'
823 -n, --no-create do not create output files
824 --srcdir=DIR find the sources in DIR [configure dir or \`..']
829 Installation directories:
830 --prefix=PREFIX install architecture-independent files in PREFIX
832 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
835 By default, \`make install' will install all the files in
836 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
837 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
838 for instance \`--prefix=\$HOME'.
840 For better control, use the options below.
842 Fine tuning of the installation directories:
843 --bindir=DIR user executables [EPREFIX/bin]
844 --sbindir=DIR system admin executables [EPREFIX/sbin]
845 --libexecdir=DIR program executables [EPREFIX/libexec]
846 --datadir=DIR read-only architecture-independent data [PREFIX/share]
847 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
848 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
849 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
850 --libdir=DIR object code libraries [EPREFIX/lib]
851 --includedir=DIR C header files [PREFIX/include]
852 --oldincludedir=DIR C header files for non-gcc [/usr/include]
853 --infodir=DIR info documentation [PREFIX/info]
854 --mandir=DIR man documentation [PREFIX/man]
855 --archivedir=DIR archive destination for disk-based backups [/tmp]
861 --x-includes=DIR X include files are in DIR
862 --x-libraries=DIR X library files are in DIR
865 --build=BUILD configure for building on BUILD [guessed]
866 --host=HOST cross-compile to build programs to run on HOST [BUILD]
870 if test -n "$ac_init_help"; then
875 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
876 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
877 --disable-nls do not use Native Language Support
878 --disable-rpath do not hardcode runtime library paths
879 --enable-gnome enable build of bgnome-console GUI disabled
880 --enable-bat enable build of bat Qt4 GUI disabled
881 --enable-bwx-console enable build of wxWidgets console disabled
882 --enable-tray-monitor enable build of Gnome tray monitor (compatible with KDE) disabled
883 --enable-smartalloc enable smartalloc debugging support disabled
884 --enable-static-tools enable static tape tools disabled
885 --enable-static-fd enable static File daemon disabled
886 --enable-static-sd enable static Storage daemon disabled
887 --enable-static-dir enable static Director disabled
888 --enable-static-cons enable static Console disabled
889 --enable-client-only build client (File daemon) only disabled
890 --enable-build-dird enable building of dird (Director) enabled
891 --enable-build-stored enable building of stored (Storage daemon) enabled
892 --disable-conio disable conio support enabled
894 --enable-ipv6 enable ipv6 support enabled
896 --disable-readline disable readline support disable
898 --enable-batch-insert enable the DB batch insert code disabled
899 --disable-largefile omit support for large files
902 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
903 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
904 --with-gnu-ld assume the C compiler uses GNU ld default=no
905 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
906 --without-libiconv-prefix don't search for libiconv in includedir and libdir
907 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
908 --without-libintl-prefix don't search for libintl in includedir and libdir
909 --with-included-gettext use the GNU gettext library included here
910 --with-qwt[=DIR] specify qwt library directory
911 --with-readline[=DIR] specify readline library directory
913 --with-python[=DIR] Include Python support. DIR is the Python base
914 install directory, default is to search through
915 a number of common places for the Python files.
916 --with-tcp-wrappers[=DIR] enable tcpwrappers support
918 Include OpenSSL support. DIR is the OpenSSL base
919 --with-working-dir=PATH specify path of Bacula working directory
920 --with-scriptdir=PATH specify path of Bacula scripts directory
921 --with-dump-email=EMAIL dump email address
922 --with-job-email=EMAIL job output email address
923 --with-smtp-host=HOST SMTP mail host address
924 --with-pid-dir=PATH specify location of Bacula pid files
925 --with-subsys-dir=PATH specify location of Bacula subsys file
926 --with-baseport=PORT specify base port address for daemons
927 --with-dir-password=PASSWORD specify Director's password
928 --with-fd-password=PASSWORD specify Client's password
929 --with-sd-password=PASSWORD specify Storage daemon's password
930 --with-mon-dir-password=PASSWORD specify Director's password used by the monitor
931 --with-mon-fd-password=PASSWORD specify Client's password used by the monitor
932 --with-mon-sd-password=PASSWORD specify Storage daemon's password used by the monitor
933 --with-db-name=DBNAME specify database name (default bacula)
934 --with-db-user=UNAME specify database user (default bacula)
935 --with-dir-user=USER specify user for Director daemon
936 --with-dir-group=GROUP specify group for Director daemon
937 --with-sd-user=USER specify user for Storage daemon
938 --with-sd-group=GROUP specify group for Storage daemon
939 --with-fd-user=USER specify user for File daemon
940 --with-fd-group=GROUP specify group for File daemon
941 --with-sbin-perm=MODE specify permissions for sbin binaries (0754)
942 --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
943 base install directory, defaults to /usr/local/pgsql
945 --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base
946 install directory, default is to search through
947 a number of common places for the MySQL files.
949 --with-embedded-mysql[=DIR] Include MySQL support. DIR is the MySQL base
950 install directory, default is to search through
951 a number of common places for the MySQL files.
953 --with-sqlite3[=DIR] Include SQLite3 support. DIR is the SQLite3 base
954 install directory, default is to search through
955 a number of common places for the SQLite3 files.
957 --with-sqlite[=DIR] Include SQLite support. DIR is the SQLite base
958 install directory, default is to search through
959 a number of common places for the SQLite files.
960 --with-x use the X Window System
962 Some influential environment variables:
963 CC C compiler command
964 CFLAGS C compiler flags
965 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
966 nonstandard directory <lib dir>
967 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
968 headers in a nonstandard directory <include dir>
969 CXX C++ compiler command
970 CXXFLAGS C++ compiler flags
972 WXCONFIG wx-config command. On some systems, you must set it to
973 wx-config-2.6 to use wxWidgets 2.6.
974 WXFLAGS Parameters to pass to wx-config (e.g. --unicode=no).
976 Use these variables to override the choices made by `configure' or to help
977 it to find libraries and programs with nonstandard names/locations.
982 if test "$ac_init_help" = "recursive"; then
983 # If there are subdirs, report their specific --help.
985 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
986 test -d $ac_dir || continue
989 if test "$ac_dir" != .; then
990 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
991 # A "../" for each directory in $ac_dir_suffix.
992 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
994 ac_dir_suffix= ac_top_builddir=
998 .) # No --srcdir option. We are building in place.
1000 if test -z "$ac_top_builddir"; then
1003 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1005 [\\/]* | ?:[\\/]* ) # Absolute path.
1006 ac_srcdir=$srcdir$ac_dir_suffix;
1007 ac_top_srcdir=$srcdir ;;
1009 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1010 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1013 # Do not use `cd foo && pwd` to compute absolute paths, because
1014 # the directories may not exist.
1016 .) ac_abs_builddir="$ac_dir";;
1019 .) ac_abs_builddir=`pwd`;;
1020 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1021 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1024 case $ac_abs_builddir in
1025 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1027 case ${ac_top_builddir}. in
1028 .) ac_abs_top_builddir=$ac_abs_builddir;;
1029 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1030 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1033 case $ac_abs_builddir in
1034 .) ac_abs_srcdir=$ac_srcdir;;
1037 .) ac_abs_srcdir=$ac_abs_builddir;;
1038 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1039 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1042 case $ac_abs_builddir in
1043 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1045 case $ac_top_srcdir in
1046 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1047 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1048 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1053 # Check for guested configure; otherwise get Cygnus style configure.
1054 if test -f $ac_srcdir/configure.gnu; then
1056 $SHELL $ac_srcdir/configure.gnu --help=recursive
1057 elif test -f $ac_srcdir/configure; then
1059 $SHELL $ac_srcdir/configure --help=recursive
1060 elif test -f $ac_srcdir/configure.ac ||
1061 test -f $ac_srcdir/configure.in; then
1063 $ac_configure --help
1065 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1071 test -n "$ac_init_help" && exit 0
1072 if $ac_init_version; then
1075 Copyright (C) 2003 Free Software Foundation, Inc.
1076 This configure script is free software; the Free Software Foundation
1077 gives unlimited permission to copy, distribute and modify it.
1083 This file contains any messages produced by compilers while
1084 running configure, to aid debugging if configure makes a mistake.
1086 It was created by $as_me, which was
1087 generated by GNU Autoconf 2.59. Invocation command line was
1098 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1099 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1100 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1101 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1102 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1104 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1105 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1107 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1108 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1109 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1110 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1111 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1112 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1113 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1121 test -z "$as_dir" && as_dir=.
1122 echo "PATH: $as_dir"
1137 # Keep a trace of the command line.
1138 # Strip out --no-create and --no-recursion so they do not pile up.
1139 # Strip out --silent because we don't want to record it for future runs.
1140 # Also quote any args containing shell meta-characters.
1141 # Make two passes to allow for proper duplicate-argument suppression.
1146 ac_must_keep_next=false
1152 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1153 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1154 | -silent | --silent | --silen | --sile | --sil)
1156 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1157 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1160 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1162 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1163 if test $ac_must_keep_next = true; then
1164 ac_must_keep_next=false # Got value, back to normal.
1167 *=* | --config-cache | -C | -disable-* | --disable-* \
1168 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1169 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1170 | -with-* | --with-* | -without-* | --without-* | --x)
1171 case "$ac_configure_args0 " in
1172 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1175 -* ) ac_must_keep_next=true ;;
1178 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1179 # Get rid of the leading space.
1185 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1186 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1188 # When interrupted or exit'd, cleanup temporary files, and complete
1189 # config.log. We remove comments because anyway the quotes in there
1190 # would cause problems or look ugly.
1191 # WARNING: Be sure not to use single quotes in there, as some shells,
1192 # such as our DU 5.0 friend, will then `close' the trap.
1193 trap 'exit_status=$?
1194 # Save into config.log some information that might help in debugging.
1199 ## ---------------- ##
1200 ## Cache variables. ##
1201 ## ---------------- ##
1204 # The following way of writing the cache mishandles newlines in values,
1207 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1210 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1211 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1215 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1222 ## ----------------- ##
1223 ## Output variables. ##
1224 ## ----------------- ##
1227 for ac_var in $ac_subst_vars
1229 eval ac_val=$`echo $ac_var`
1230 echo "$ac_var='"'"'$ac_val'"'"'"
1234 if test -n "$ac_subst_files"; then
1241 for ac_var in $ac_subst_files
1243 eval ac_val=$`echo $ac_var`
1244 echo "$ac_var='"'"'$ac_val'"'"'"
1249 if test -s confdefs.h; then
1256 sed "/^$/d" confdefs.h | sort
1259 test "$ac_signal" != 0 &&
1260 echo "$as_me: caught signal $ac_signal"
1261 echo "$as_me: exit $exit_status"
1263 rm -f core *.core &&
1264 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1267 for ac_signal in 1 2 13 15; do
1268 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1272 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1273 rm -rf conftest* confdefs.h
1274 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1277 # Predefined preprocessor variables.
1279 cat >>confdefs.h <<_ACEOF
1280 #define PACKAGE_NAME "$PACKAGE_NAME"
1284 cat >>confdefs.h <<_ACEOF
1285 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1289 cat >>confdefs.h <<_ACEOF
1290 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1294 cat >>confdefs.h <<_ACEOF
1295 #define PACKAGE_STRING "$PACKAGE_STRING"
1299 cat >>confdefs.h <<_ACEOF
1300 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1304 # Let the site file select an alternate cache file if it wants to.
1305 # Prefer explicitly selected file to automatically selected ones.
1306 if test -z "$CONFIG_SITE"; then
1307 if test "x$prefix" != xNONE; then
1308 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1310 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1313 for ac_site_file in $CONFIG_SITE; do
1314 if test -r "$ac_site_file"; then
1315 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1316 echo "$as_me: loading site script $ac_site_file" >&6;}
1317 sed 's/^/| /' "$ac_site_file" >&5
1322 if test -r "$cache_file"; then
1323 # Some versions of bash will fail to source /dev/null (special
1324 # files actually), so we avoid doing that.
1325 if test -f "$cache_file"; then
1326 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1327 echo "$as_me: loading cache $cache_file" >&6;}
1329 [\\/]* | ?:[\\/]* ) . $cache_file;;
1330 *) . ./$cache_file;;
1334 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1335 echo "$as_me: creating cache $cache_file" >&6;}
1339 # Check that the precious variables saved in the cache have kept the same
1341 ac_cache_corrupted=false
1342 for ac_var in `(set) 2>&1 |
1343 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1344 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1345 eval ac_new_set=\$ac_env_${ac_var}_set
1346 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1347 eval ac_new_val="\$ac_env_${ac_var}_value"
1348 case $ac_old_set,$ac_new_set in
1350 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1351 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1352 ac_cache_corrupted=: ;;
1354 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1355 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1356 ac_cache_corrupted=: ;;
1359 if test "x$ac_old_val" != "x$ac_new_val"; then
1360 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1361 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1362 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1363 echo "$as_me: former value: $ac_old_val" >&2;}
1364 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1365 echo "$as_me: current value: $ac_new_val" >&2;}
1366 ac_cache_corrupted=:
1369 # Pass precious variables to config.status.
1370 if test "$ac_new_set" = set; then
1372 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1373 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1374 *) ac_arg=$ac_var=$ac_new_val ;;
1376 case " $ac_configure_args " in
1377 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1378 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1382 if $ac_cache_corrupted; then
1383 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1384 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1385 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1386 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1387 { (exit 1); exit 1; }; }
1391 ac_cpp='$CPP $CPPFLAGS'
1392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1421 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1422 if test -f $ac_dir/install-sh; then
1424 ac_install_sh="$ac_aux_dir/install-sh -c"
1426 elif test -f $ac_dir/install.sh; then
1428 ac_install_sh="$ac_aux_dir/install.sh -c"
1430 elif test -f $ac_dir/shtool; then
1432 ac_install_sh="$ac_aux_dir/shtool install -c"
1436 if test -z "$ac_aux_dir"; then
1437 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1438 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1439 { (exit 1); exit 1; }; }
1441 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1442 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1443 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1445 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1453 # Extract the first word of "$ac_prog", so it can be a program name with args.
1454 set dummy $ac_prog; ac_word=$2
1455 echo "$as_me:$LINENO: checking for $ac_word" >&5
1456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1457 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1458 echo $ECHO_N "(cached) $ECHO_C" >&6
1462 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1469 test -z "$as_dir" && as_dir=.
1470 for ac_exec_ext in '' $ac_executable_extensions; do
1471 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1472 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1482 TRUEPRG=$ac_cv_path_TRUEPRG
1484 if test -n "$TRUEPRG"; then
1485 echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1486 echo "${ECHO_T}$TRUEPRG" >&6
1488 echo "$as_me:$LINENO: result: no" >&5
1489 echo "${ECHO_T}no" >&6
1492 test -n "$TRUEPRG" && break
1494 test -n "$TRUEPRG" || TRUEPRG=":"
1496 for ac_prog in false
1498 # Extract the first word of "$ac_prog", so it can be a program name with args.
1499 set dummy $ac_prog; ac_word=$2
1500 echo "$as_me:$LINENO: checking for $ac_word" >&5
1501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1502 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1503 echo $ECHO_N "(cached) $ECHO_C" >&6
1507 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1514 test -z "$as_dir" && as_dir=.
1515 for ac_exec_ext in '' $ac_executable_extensions; do
1516 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1517 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1527 FALSEPRG=$ac_cv_path_FALSEPRG
1529 if test -n "$FALSEPRG"; then
1530 echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1531 echo "${ECHO_T}$FALSEPRG" >&6
1533 echo "$as_me:$LINENO: result: no" >&5
1534 echo "${ECHO_T}no" >&6
1537 test -n "$FALSEPRG" && break
1539 test -n "$FALSEPRG" || FALSEPRG=":"
1543 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1544 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1545 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1546 echo "configuring for bacula $VERSION ($DATE)"
1551 ac_cpp='$CPP $CPPFLAGS'
1552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1555 if test -n "$ac_tool_prefix"; then
1556 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1557 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1558 echo "$as_me:$LINENO: checking for $ac_word" >&5
1559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1560 if test "${ac_cv_prog_CC+set}" = set; then
1561 echo $ECHO_N "(cached) $ECHO_C" >&6
1563 if test -n "$CC"; then
1564 ac_cv_prog_CC="$CC" # Let the user override the test.
1566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1570 test -z "$as_dir" && as_dir=.
1571 for ac_exec_ext in '' $ac_executable_extensions; do
1572 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1573 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1583 if test -n "$CC"; then
1584 echo "$as_me:$LINENO: result: $CC" >&5
1585 echo "${ECHO_T}$CC" >&6
1587 echo "$as_me:$LINENO: result: no" >&5
1588 echo "${ECHO_T}no" >&6
1592 if test -z "$ac_cv_prog_CC"; then
1594 # Extract the first word of "gcc", so it can be a program name with args.
1595 set dummy gcc; ac_word=$2
1596 echo "$as_me:$LINENO: checking for $ac_word" >&5
1597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1598 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1599 echo $ECHO_N "(cached) $ECHO_C" >&6
1601 if test -n "$ac_ct_CC"; then
1602 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1608 test -z "$as_dir" && as_dir=.
1609 for ac_exec_ext in '' $ac_executable_extensions; do
1610 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1611 ac_cv_prog_ac_ct_CC="gcc"
1612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1620 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1621 if test -n "$ac_ct_CC"; then
1622 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1623 echo "${ECHO_T}$ac_ct_CC" >&6
1625 echo "$as_me:$LINENO: result: no" >&5
1626 echo "${ECHO_T}no" >&6
1634 if test -z "$CC"; then
1635 if test -n "$ac_tool_prefix"; then
1636 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1637 set dummy ${ac_tool_prefix}cc; ac_word=$2
1638 echo "$as_me:$LINENO: checking for $ac_word" >&5
1639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1640 if test "${ac_cv_prog_CC+set}" = set; then
1641 echo $ECHO_N "(cached) $ECHO_C" >&6
1643 if test -n "$CC"; then
1644 ac_cv_prog_CC="$CC" # Let the user override the test.
1646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1650 test -z "$as_dir" && as_dir=.
1651 for ac_exec_ext in '' $ac_executable_extensions; do
1652 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1653 ac_cv_prog_CC="${ac_tool_prefix}cc"
1654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1663 if test -n "$CC"; then
1664 echo "$as_me:$LINENO: result: $CC" >&5
1665 echo "${ECHO_T}$CC" >&6
1667 echo "$as_me:$LINENO: result: no" >&5
1668 echo "${ECHO_T}no" >&6
1672 if test -z "$ac_cv_prog_CC"; then
1674 # Extract the first word of "cc", so it can be a program name with args.
1675 set dummy cc; ac_word=$2
1676 echo "$as_me:$LINENO: checking for $ac_word" >&5
1677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1678 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1679 echo $ECHO_N "(cached) $ECHO_C" >&6
1681 if test -n "$ac_ct_CC"; then
1682 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1688 test -z "$as_dir" && as_dir=.
1689 for ac_exec_ext in '' $ac_executable_extensions; do
1690 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1691 ac_cv_prog_ac_ct_CC="cc"
1692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1700 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1701 if test -n "$ac_ct_CC"; then
1702 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1703 echo "${ECHO_T}$ac_ct_CC" >&6
1705 echo "$as_me:$LINENO: result: no" >&5
1706 echo "${ECHO_T}no" >&6
1715 if test -z "$CC"; then
1716 # Extract the first word of "cc", so it can be a program name with args.
1717 set dummy cc; ac_word=$2
1718 echo "$as_me:$LINENO: checking for $ac_word" >&5
1719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1720 if test "${ac_cv_prog_CC+set}" = set; then
1721 echo $ECHO_N "(cached) $ECHO_C" >&6
1723 if test -n "$CC"; then
1724 ac_cv_prog_CC="$CC" # Let the user override the test.
1727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1731 test -z "$as_dir" && as_dir=.
1732 for ac_exec_ext in '' $ac_executable_extensions; do
1733 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1734 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1735 ac_prog_rejected=yes
1739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1745 if test $ac_prog_rejected = yes; then
1746 # We found a bogon in the path, so make sure we never use it.
1747 set dummy $ac_cv_prog_CC
1749 if test $# != 0; then
1750 # We chose a different compiler from the bogus one.
1751 # However, it has the same basename, so the bogon will be chosen
1752 # first if we set CC to just the basename; use the full file name.
1754 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1760 if test -n "$CC"; then
1761 echo "$as_me:$LINENO: result: $CC" >&5
1762 echo "${ECHO_T}$CC" >&6
1764 echo "$as_me:$LINENO: result: no" >&5
1765 echo "${ECHO_T}no" >&6
1769 if test -z "$CC"; then
1770 if test -n "$ac_tool_prefix"; then
1773 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1774 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1775 echo "$as_me:$LINENO: checking for $ac_word" >&5
1776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1777 if test "${ac_cv_prog_CC+set}" = set; then
1778 echo $ECHO_N "(cached) $ECHO_C" >&6
1780 if test -n "$CC"; then
1781 ac_cv_prog_CC="$CC" # Let the user override the test.
1783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1787 test -z "$as_dir" && as_dir=.
1788 for ac_exec_ext in '' $ac_executable_extensions; do
1789 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1790 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1800 if test -n "$CC"; then
1801 echo "$as_me:$LINENO: result: $CC" >&5
1802 echo "${ECHO_T}$CC" >&6
1804 echo "$as_me:$LINENO: result: no" >&5
1805 echo "${ECHO_T}no" >&6
1808 test -n "$CC" && break
1811 if test -z "$CC"; then
1815 # Extract the first word of "$ac_prog", so it can be a program name with args.
1816 set dummy $ac_prog; ac_word=$2
1817 echo "$as_me:$LINENO: checking for $ac_word" >&5
1818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1819 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1820 echo $ECHO_N "(cached) $ECHO_C" >&6
1822 if test -n "$ac_ct_CC"; then
1823 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1829 test -z "$as_dir" && as_dir=.
1830 for ac_exec_ext in '' $ac_executable_extensions; do
1831 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1832 ac_cv_prog_ac_ct_CC="$ac_prog"
1833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1841 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1842 if test -n "$ac_ct_CC"; then
1843 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1844 echo "${ECHO_T}$ac_ct_CC" >&6
1846 echo "$as_me:$LINENO: result: no" >&5
1847 echo "${ECHO_T}no" >&6
1850 test -n "$ac_ct_CC" && break
1859 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1860 See \`config.log' for more details." >&5
1861 echo "$as_me: error: no acceptable C compiler found in \$PATH
1862 See \`config.log' for more details." >&2;}
1863 { (exit 1); exit 1; }; }
1865 # Provide some information about the compiler.
1866 echo "$as_me:$LINENO:" \
1867 "checking for C compiler version" >&5
1868 ac_compiler=`set X $ac_compile; echo $2`
1869 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1870 (eval $ac_compiler --version </dev/null >&5) 2>&5
1872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1873 (exit $ac_status); }
1874 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1875 (eval $ac_compiler -v </dev/null >&5) 2>&5
1877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1878 (exit $ac_status); }
1879 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1880 (eval $ac_compiler -V </dev/null >&5) 2>&5
1882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1883 (exit $ac_status); }
1885 cat >conftest.$ac_ext <<_ACEOF
1888 cat confdefs.h >>conftest.$ac_ext
1889 cat >>conftest.$ac_ext <<_ACEOF
1890 /* end confdefs.h. */
1900 ac_clean_files_save=$ac_clean_files
1901 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1902 # Try to create an executable without -o first, disregard a.out.
1903 # It will help us diagnose broken compilers, and finding out an intuition
1905 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1906 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1907 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1908 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1909 (eval $ac_link_default) 2>&5
1911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1912 (exit $ac_status); }; then
1913 # Find the output, starting from the most likely. This scheme is
1914 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1917 # Be careful to initialize this variable, since it used to be cached.
1918 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1920 # b.out is created by i960 compilers.
1921 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1923 test -f "$ac_file" || continue
1925 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1928 # This is the source file.
1931 # We found the default executable, but exeext='' is most
1935 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1936 # FIXME: I believe we export ac_cv_exeext for Libtool,
1937 # but it would be cool to find out if it's true. Does anybody
1938 # maintain Libtool? --akim.
1946 echo "$as_me: failed program was:" >&5
1947 sed 's/^/| /' conftest.$ac_ext >&5
1949 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1950 See \`config.log' for more details." >&5
1951 echo "$as_me: error: C compiler cannot create executables
1952 See \`config.log' for more details." >&2;}
1953 { (exit 77); exit 77; }; }
1956 ac_exeext=$ac_cv_exeext
1957 echo "$as_me:$LINENO: result: $ac_file" >&5
1958 echo "${ECHO_T}$ac_file" >&6
1960 # Check the compiler produces executables we can run. If not, either
1961 # the compiler is broken, or we cross compile.
1962 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1963 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1964 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1965 # If not cross compiling, check that we can run a simple program.
1966 if test "$cross_compiling" != yes; then
1967 if { ac_try='./$ac_file'
1968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1972 (exit $ac_status); }; }; then
1975 if test "$cross_compiling" = maybe; then
1978 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1979 If you meant to cross compile, use \`--host'.
1980 See \`config.log' for more details." >&5
1981 echo "$as_me: error: cannot run C compiled programs.
1982 If you meant to cross compile, use \`--host'.
1983 See \`config.log' for more details." >&2;}
1984 { (exit 1); exit 1; }; }
1988 echo "$as_me:$LINENO: result: yes" >&5
1989 echo "${ECHO_T}yes" >&6
1991 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1992 ac_clean_files=$ac_clean_files_save
1993 # Check the compiler produces executables we can run. If not, either
1994 # the compiler is broken, or we cross compile.
1995 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1996 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1997 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1998 echo "${ECHO_T}$cross_compiling" >&6
2000 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2001 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2003 (eval $ac_link) 2>&5
2005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006 (exit $ac_status); }; then
2007 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2008 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2009 # work properly (i.e., refer to `conftest.exe'), while it won't with
2011 for ac_file in conftest.exe conftest conftest.*; do
2012 test -f "$ac_file" || continue
2014 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2015 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2022 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2023 See \`config.log' for more details." >&5
2024 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2025 See \`config.log' for more details." >&2;}
2026 { (exit 1); exit 1; }; }
2029 rm -f conftest$ac_cv_exeext
2030 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2031 echo "${ECHO_T}$ac_cv_exeext" >&6
2033 rm -f conftest.$ac_ext
2034 EXEEXT=$ac_cv_exeext
2036 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2037 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2038 if test "${ac_cv_objext+set}" = set; then
2039 echo $ECHO_N "(cached) $ECHO_C" >&6
2041 cat >conftest.$ac_ext <<_ACEOF
2044 cat confdefs.h >>conftest.$ac_ext
2045 cat >>conftest.$ac_ext <<_ACEOF
2046 /* end confdefs.h. */
2056 rm -f conftest.o conftest.obj
2057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2058 (eval $ac_compile) 2>&5
2060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2061 (exit $ac_status); }; then
2062 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2064 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2065 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2070 echo "$as_me: failed program was:" >&5
2071 sed 's/^/| /' conftest.$ac_ext >&5
2073 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2074 See \`config.log' for more details." >&5
2075 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2076 See \`config.log' for more details." >&2;}
2077 { (exit 1); exit 1; }; }
2080 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2082 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2083 echo "${ECHO_T}$ac_cv_objext" >&6
2084 OBJEXT=$ac_cv_objext
2086 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2087 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2088 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2089 echo $ECHO_N "(cached) $ECHO_C" >&6
2091 cat >conftest.$ac_ext <<_ACEOF
2094 cat confdefs.h >>conftest.$ac_ext
2095 cat >>conftest.$ac_ext <<_ACEOF
2096 /* end confdefs.h. */
2109 rm -f conftest.$ac_objext
2110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2111 (eval $ac_compile) 2>conftest.er1
2113 grep -v '^ *+' conftest.er1 >conftest.err
2115 cat conftest.err >&5
2116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2117 (exit $ac_status); } &&
2118 { ac_try='test -z "$ac_c_werror_flag"
2119 || test ! -s conftest.err'
2120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2124 (exit $ac_status); }; } &&
2125 { ac_try='test -s conftest.$ac_objext'
2126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2130 (exit $ac_status); }; }; then
2133 echo "$as_me: failed program was:" >&5
2134 sed 's/^/| /' conftest.$ac_ext >&5
2138 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2139 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2142 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2143 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2144 GCC=`test $ac_compiler_gnu = yes && echo yes`
2145 ac_test_CFLAGS=${CFLAGS+set}
2146 ac_save_CFLAGS=$CFLAGS
2148 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2149 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2150 if test "${ac_cv_prog_cc_g+set}" = set; then
2151 echo $ECHO_N "(cached) $ECHO_C" >&6
2153 cat >conftest.$ac_ext <<_ACEOF
2156 cat confdefs.h >>conftest.$ac_ext
2157 cat >>conftest.$ac_ext <<_ACEOF
2158 /* end confdefs.h. */
2168 rm -f conftest.$ac_objext
2169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2170 (eval $ac_compile) 2>conftest.er1
2172 grep -v '^ *+' conftest.er1 >conftest.err
2174 cat conftest.err >&5
2175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2176 (exit $ac_status); } &&
2177 { ac_try='test -z "$ac_c_werror_flag"
2178 || test ! -s conftest.err'
2179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183 (exit $ac_status); }; } &&
2184 { ac_try='test -s conftest.$ac_objext'
2185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189 (exit $ac_status); }; }; then
2192 echo "$as_me: failed program was:" >&5
2193 sed 's/^/| /' conftest.$ac_ext >&5
2197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2199 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2200 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2201 if test "$ac_test_CFLAGS" = set; then
2202 CFLAGS=$ac_save_CFLAGS
2203 elif test $ac_cv_prog_cc_g = yes; then
2204 if test "$GCC" = yes; then
2210 if test "$GCC" = yes; then
2216 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2217 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2218 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2219 echo $ECHO_N "(cached) $ECHO_C" >&6
2221 ac_cv_prog_cc_stdc=no
2223 cat >conftest.$ac_ext <<_ACEOF
2226 cat confdefs.h >>conftest.$ac_ext
2227 cat >>conftest.$ac_ext <<_ACEOF
2228 /* end confdefs.h. */
2231 #include <sys/types.h>
2232 #include <sys/stat.h>
2233 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2234 struct buf { int x; };
2235 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2236 static char *e (p, i)
2242 static char *f (char * (*g) (char **, int), char **p, ...)
2247 s = g (p, va_arg (v,int));
2252 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2253 function prototypes and stuff, but not '\xHH' hex character constants.
2254 These don't provoke an error unfortunately, instead are silently treated
2255 as 'x'. The following induces an error, until -std1 is added to get
2256 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2257 array size at least. It's necessary to write '\x00'==0 to get something
2258 that's true only with -std1. */
2259 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2261 int test (int i, double x);
2262 struct s1 {int (*f) (int a);};
2263 struct s2 {int (*f) (double a);};
2264 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2270 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2275 # Don't try gcc -ansi; that turns off useful extensions and
2276 # breaks some systems' header files.
2277 # AIX -qlanglvl=ansi
2278 # Ultrix and OSF/1 -std1
2279 # HP-UX 10.20 and later -Ae
2280 # HP-UX older versions -Aa -D_HPUX_SOURCE
2281 # SVR4 -Xc -D__EXTENSIONS__
2282 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2284 CC="$ac_save_CC $ac_arg"
2285 rm -f conftest.$ac_objext
2286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2287 (eval $ac_compile) 2>conftest.er1
2289 grep -v '^ *+' conftest.er1 >conftest.err
2291 cat conftest.err >&5
2292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2293 (exit $ac_status); } &&
2294 { ac_try='test -z "$ac_c_werror_flag"
2295 || test ! -s conftest.err'
2296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2300 (exit $ac_status); }; } &&
2301 { ac_try='test -s conftest.$ac_objext'
2302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2306 (exit $ac_status); }; }; then
2307 ac_cv_prog_cc_stdc=$ac_arg
2310 echo "$as_me: failed program was:" >&5
2311 sed 's/^/| /' conftest.$ac_ext >&5
2314 rm -f conftest.err conftest.$ac_objext
2316 rm -f conftest.$ac_ext conftest.$ac_objext
2321 case "x$ac_cv_prog_cc_stdc" in
2323 echo "$as_me:$LINENO: result: none needed" >&5
2324 echo "${ECHO_T}none needed" >&6 ;;
2326 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2327 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2328 CC="$CC $ac_cv_prog_cc_stdc" ;;
2331 # Some people use a C++ compiler to compile C. Since we use `exit',
2332 # in C++ we need to declare it. In case someone uses the same compiler
2333 # for both compiling C and C++ we need to have the C++ compiler decide
2334 # the declaration of exit, since it's the most demanding environment.
2335 cat >conftest.$ac_ext <<_ACEOF
2340 rm -f conftest.$ac_objext
2341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2342 (eval $ac_compile) 2>conftest.er1
2344 grep -v '^ *+' conftest.er1 >conftest.err
2346 cat conftest.err >&5
2347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2348 (exit $ac_status); } &&
2349 { ac_try='test -z "$ac_c_werror_flag"
2350 || test ! -s conftest.err'
2351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2355 (exit $ac_status); }; } &&
2356 { ac_try='test -s conftest.$ac_objext'
2357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361 (exit $ac_status); }; }; then
2362 for ac_declaration in \
2364 'extern "C" void std::exit (int) throw (); using std::exit;' \
2365 'extern "C" void std::exit (int); using std::exit;' \
2366 'extern "C" void exit (int) throw ();' \
2367 'extern "C" void exit (int);' \
2370 cat >conftest.$ac_ext <<_ACEOF
2373 cat confdefs.h >>conftest.$ac_ext
2374 cat >>conftest.$ac_ext <<_ACEOF
2375 /* end confdefs.h. */
2386 rm -f conftest.$ac_objext
2387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2388 (eval $ac_compile) 2>conftest.er1
2390 grep -v '^ *+' conftest.er1 >conftest.err
2392 cat conftest.err >&5
2393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394 (exit $ac_status); } &&
2395 { ac_try='test -z "$ac_c_werror_flag"
2396 || test ! -s conftest.err'
2397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401 (exit $ac_status); }; } &&
2402 { ac_try='test -s conftest.$ac_objext'
2403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407 (exit $ac_status); }; }; then
2410 echo "$as_me: failed program was:" >&5
2411 sed 's/^/| /' conftest.$ac_ext >&5
2415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2416 cat >conftest.$ac_ext <<_ACEOF
2419 cat confdefs.h >>conftest.$ac_ext
2420 cat >>conftest.$ac_ext <<_ACEOF
2421 /* end confdefs.h. */
2431 rm -f conftest.$ac_objext
2432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2433 (eval $ac_compile) 2>conftest.er1
2435 grep -v '^ *+' conftest.er1 >conftest.err
2437 cat conftest.err >&5
2438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439 (exit $ac_status); } &&
2440 { ac_try='test -z "$ac_c_werror_flag"
2441 || test ! -s conftest.err'
2442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446 (exit $ac_status); }; } &&
2447 { ac_try='test -s conftest.$ac_objext'
2448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452 (exit $ac_status); }; }; then
2455 echo "$as_me: failed program was:" >&5
2456 sed 's/^/| /' conftest.$ac_ext >&5
2459 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2462 if test -n "$ac_declaration"; then
2463 echo '#ifdef __cplusplus' >>confdefs.h
2464 echo $ac_declaration >>confdefs.h
2465 echo '#endif' >>confdefs.h
2469 echo "$as_me: failed program was:" >&5
2470 sed 's/^/| /' conftest.$ac_ext >&5
2473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2475 ac_cpp='$CPP $CPPFLAGS'
2476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2481 ac_cpp='$CXXCPP $CPPFLAGS'
2482 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2483 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2484 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2485 if test -n "$ac_tool_prefix"; then
2486 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2488 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2489 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2490 echo "$as_me:$LINENO: checking for $ac_word" >&5
2491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2492 if test "${ac_cv_prog_CXX+set}" = set; then
2493 echo $ECHO_N "(cached) $ECHO_C" >&6
2495 if test -n "$CXX"; then
2496 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2502 test -z "$as_dir" && as_dir=.
2503 for ac_exec_ext in '' $ac_executable_extensions; do
2504 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2505 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2515 if test -n "$CXX"; then
2516 echo "$as_me:$LINENO: result: $CXX" >&5
2517 echo "${ECHO_T}$CXX" >&6
2519 echo "$as_me:$LINENO: result: no" >&5
2520 echo "${ECHO_T}no" >&6
2523 test -n "$CXX" && break
2526 if test -z "$CXX"; then
2528 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2530 # Extract the first word of "$ac_prog", so it can be a program name with args.
2531 set dummy $ac_prog; ac_word=$2
2532 echo "$as_me:$LINENO: checking for $ac_word" >&5
2533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2534 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2535 echo $ECHO_N "(cached) $ECHO_C" >&6
2537 if test -n "$ac_ct_CXX"; then
2538 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2544 test -z "$as_dir" && as_dir=.
2545 for ac_exec_ext in '' $ac_executable_extensions; do
2546 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2547 ac_cv_prog_ac_ct_CXX="$ac_prog"
2548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2556 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2557 if test -n "$ac_ct_CXX"; then
2558 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2559 echo "${ECHO_T}$ac_ct_CXX" >&6
2561 echo "$as_me:$LINENO: result: no" >&5
2562 echo "${ECHO_T}no" >&6
2565 test -n "$ac_ct_CXX" && break
2567 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2573 # Provide some information about the compiler.
2574 echo "$as_me:$LINENO:" \
2575 "checking for C++ compiler version" >&5
2576 ac_compiler=`set X $ac_compile; echo $2`
2577 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2578 (eval $ac_compiler --version </dev/null >&5) 2>&5
2580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581 (exit $ac_status); }
2582 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2583 (eval $ac_compiler -v </dev/null >&5) 2>&5
2585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586 (exit $ac_status); }
2587 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2588 (eval $ac_compiler -V </dev/null >&5) 2>&5
2590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591 (exit $ac_status); }
2593 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2594 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2595 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2596 echo $ECHO_N "(cached) $ECHO_C" >&6
2598 cat >conftest.$ac_ext <<_ACEOF
2601 cat confdefs.h >>conftest.$ac_ext
2602 cat >>conftest.$ac_ext <<_ACEOF
2603 /* end confdefs.h. */
2616 rm -f conftest.$ac_objext
2617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2618 (eval $ac_compile) 2>conftest.er1
2620 grep -v '^ *+' conftest.er1 >conftest.err
2622 cat conftest.err >&5
2623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624 (exit $ac_status); } &&
2625 { ac_try='test -z "$ac_cxx_werror_flag"
2626 || test ! -s conftest.err'
2627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631 (exit $ac_status); }; } &&
2632 { ac_try='test -s conftest.$ac_objext'
2633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637 (exit $ac_status); }; }; then
2640 echo "$as_me: failed program was:" >&5
2641 sed 's/^/| /' conftest.$ac_ext >&5
2645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2646 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2649 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2650 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2651 GXX=`test $ac_compiler_gnu = yes && echo yes`
2652 ac_test_CXXFLAGS=${CXXFLAGS+set}
2653 ac_save_CXXFLAGS=$CXXFLAGS
2655 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2656 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2657 if test "${ac_cv_prog_cxx_g+set}" = set; then
2658 echo $ECHO_N "(cached) $ECHO_C" >&6
2660 cat >conftest.$ac_ext <<_ACEOF
2663 cat confdefs.h >>conftest.$ac_ext
2664 cat >>conftest.$ac_ext <<_ACEOF
2665 /* end confdefs.h. */
2675 rm -f conftest.$ac_objext
2676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2677 (eval $ac_compile) 2>conftest.er1
2679 grep -v '^ *+' conftest.er1 >conftest.err
2681 cat conftest.err >&5
2682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683 (exit $ac_status); } &&
2684 { ac_try='test -z "$ac_cxx_werror_flag"
2685 || test ! -s conftest.err'
2686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2690 (exit $ac_status); }; } &&
2691 { ac_try='test -s conftest.$ac_objext'
2692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696 (exit $ac_status); }; }; then
2697 ac_cv_prog_cxx_g=yes
2699 echo "$as_me: failed program was:" >&5
2700 sed 's/^/| /' conftest.$ac_ext >&5
2704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2706 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2707 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2708 if test "$ac_test_CXXFLAGS" = set; then
2709 CXXFLAGS=$ac_save_CXXFLAGS
2710 elif test $ac_cv_prog_cxx_g = yes; then
2711 if test "$GXX" = yes; then
2717 if test "$GXX" = yes; then
2723 for ac_declaration in \
2725 'extern "C" void std::exit (int) throw (); using std::exit;' \
2726 'extern "C" void std::exit (int); using std::exit;' \
2727 'extern "C" void exit (int) throw ();' \
2728 'extern "C" void exit (int);' \
2731 cat >conftest.$ac_ext <<_ACEOF
2734 cat confdefs.h >>conftest.$ac_ext
2735 cat >>conftest.$ac_ext <<_ACEOF
2736 /* end confdefs.h. */
2747 rm -f conftest.$ac_objext
2748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2749 (eval $ac_compile) 2>conftest.er1
2751 grep -v '^ *+' conftest.er1 >conftest.err
2753 cat conftest.err >&5
2754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755 (exit $ac_status); } &&
2756 { ac_try='test -z "$ac_cxx_werror_flag"
2757 || test ! -s conftest.err'
2758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762 (exit $ac_status); }; } &&
2763 { ac_try='test -s conftest.$ac_objext'
2764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768 (exit $ac_status); }; }; then
2771 echo "$as_me: failed program was:" >&5
2772 sed 's/^/| /' conftest.$ac_ext >&5
2776 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2777 cat >conftest.$ac_ext <<_ACEOF
2780 cat confdefs.h >>conftest.$ac_ext
2781 cat >>conftest.$ac_ext <<_ACEOF
2782 /* end confdefs.h. */
2792 rm -f conftest.$ac_objext
2793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2794 (eval $ac_compile) 2>conftest.er1
2796 grep -v '^ *+' conftest.er1 >conftest.err
2798 cat conftest.err >&5
2799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800 (exit $ac_status); } &&
2801 { ac_try='test -z "$ac_cxx_werror_flag"
2802 || test ! -s conftest.err'
2803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807 (exit $ac_status); }; } &&
2808 { ac_try='test -s conftest.$ac_objext'
2809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813 (exit $ac_status); }; }; then
2816 echo "$as_me: failed program was:" >&5
2817 sed 's/^/| /' conftest.$ac_ext >&5
2820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2823 if test -n "$ac_declaration"; then
2824 echo '#ifdef __cplusplus' >>confdefs.h
2825 echo $ac_declaration >>confdefs.h
2826 echo '#endif' >>confdefs.h
2830 ac_cpp='$CPP $CPPFLAGS'
2831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2835 if test "x$CC" != xcc; then
2836 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2837 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2839 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2840 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2842 set dummy $CC; ac_cc=`echo $2 |
2843 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2844 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2845 echo $ECHO_N "(cached) $ECHO_C" >&6
2847 cat >conftest.$ac_ext <<_ACEOF
2850 cat confdefs.h >>conftest.$ac_ext
2851 cat >>conftest.$ac_ext <<_ACEOF
2852 /* end confdefs.h. */
2862 # Make sure it works both with $CC and with simple cc.
2863 # We do the test twice because some compilers refuse to overwrite an
2864 # existing .o file with -o, though they will create one.
2865 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2866 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2870 (exit $ac_status); } &&
2871 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875 (exit $ac_status); };
2877 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2878 if test "x$CC" != xcc; then
2879 # Test first that cc exists at all.
2880 if { ac_try='cc -c conftest.$ac_ext >&5'
2881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885 (exit $ac_status); }; }; then
2886 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2887 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891 (exit $ac_status); } &&
2892 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896 (exit $ac_status); };
2901 # cc exists but doesn't like -o.
2902 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2907 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2912 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2913 echo "$as_me:$LINENO: result: yes" >&5
2914 echo "${ECHO_T}yes" >&6
2916 echo "$as_me:$LINENO: result: no" >&5
2917 echo "${ECHO_T}no" >&6
2919 cat >>confdefs.h <<\_ACEOF
2920 #define NO_MINUS_C_MINUS_O 1
2926 ac_cpp='$CPP $CPPFLAGS'
2927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2930 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2931 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2932 # On Suns, sometimes $CPP names a directory.
2933 if test -n "$CPP" && test -d "$CPP"; then
2936 if test -z "$CPP"; then
2937 if test "${ac_cv_prog_CPP+set}" = set; then
2938 echo $ECHO_N "(cached) $ECHO_C" >&6
2940 # Double quotes because CPP needs to be expanded
2941 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2944 for ac_c_preproc_warn_flag in '' yes
2946 # Use a header file that comes with gcc, so configuring glibc
2947 # with a fresh cross-compiler works.
2948 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2949 # <limits.h> exists even on freestanding compilers.
2950 # On the NeXT, cc -E runs the code through the compiler's parser,
2951 # not just through cpp. "Syntax error" is here to catch this case.
2952 cat >conftest.$ac_ext <<_ACEOF
2955 cat confdefs.h >>conftest.$ac_ext
2956 cat >>conftest.$ac_ext <<_ACEOF
2957 /* end confdefs.h. */
2959 # include <limits.h>
2961 # include <assert.h>
2965 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2966 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2968 grep -v '^ *+' conftest.er1 >conftest.err
2970 cat conftest.err >&5
2971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972 (exit $ac_status); } >/dev/null; then
2973 if test -s conftest.err; then
2974 ac_cpp_err=$ac_c_preproc_warn_flag
2975 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2982 if test -z "$ac_cpp_err"; then
2985 echo "$as_me: failed program was:" >&5
2986 sed 's/^/| /' conftest.$ac_ext >&5
2988 # Broken: fails on valid input.
2991 rm -f conftest.err conftest.$ac_ext
2993 # OK, works on sane cases. Now check whether non-existent headers
2994 # can be detected and how.
2995 cat >conftest.$ac_ext <<_ACEOF
2998 cat confdefs.h >>conftest.$ac_ext
2999 cat >>conftest.$ac_ext <<_ACEOF
3000 /* end confdefs.h. */
3001 #include <ac_nonexistent.h>
3003 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3004 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3006 grep -v '^ *+' conftest.er1 >conftest.err
3008 cat conftest.err >&5
3009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010 (exit $ac_status); } >/dev/null; then
3011 if test -s conftest.err; then
3012 ac_cpp_err=$ac_c_preproc_warn_flag
3013 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3020 if test -z "$ac_cpp_err"; then
3021 # Broken: success on invalid input.
3024 echo "$as_me: failed program was:" >&5
3025 sed 's/^/| /' conftest.$ac_ext >&5
3027 # Passes both tests.
3031 rm -f conftest.err conftest.$ac_ext
3034 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3035 rm -f conftest.err conftest.$ac_ext
3036 if $ac_preproc_ok; then
3048 echo "$as_me:$LINENO: result: $CPP" >&5
3049 echo "${ECHO_T}$CPP" >&6
3051 for ac_c_preproc_warn_flag in '' yes
3053 # Use a header file that comes with gcc, so configuring glibc
3054 # with a fresh cross-compiler works.
3055 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3056 # <limits.h> exists even on freestanding compilers.
3057 # On the NeXT, cc -E runs the code through the compiler's parser,
3058 # not just through cpp. "Syntax error" is here to catch this case.
3059 cat >conftest.$ac_ext <<_ACEOF
3062 cat confdefs.h >>conftest.$ac_ext
3063 cat >>conftest.$ac_ext <<_ACEOF
3064 /* end confdefs.h. */
3066 # include <limits.h>
3068 # include <assert.h>
3072 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3073 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3075 grep -v '^ *+' conftest.er1 >conftest.err
3077 cat conftest.err >&5
3078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079 (exit $ac_status); } >/dev/null; then
3080 if test -s conftest.err; then
3081 ac_cpp_err=$ac_c_preproc_warn_flag
3082 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3089 if test -z "$ac_cpp_err"; then
3092 echo "$as_me: failed program was:" >&5
3093 sed 's/^/| /' conftest.$ac_ext >&5
3095 # Broken: fails on valid input.
3098 rm -f conftest.err conftest.$ac_ext
3100 # OK, works on sane cases. Now check whether non-existent headers
3101 # can be detected and how.
3102 cat >conftest.$ac_ext <<_ACEOF
3105 cat confdefs.h >>conftest.$ac_ext
3106 cat >>conftest.$ac_ext <<_ACEOF
3107 /* end confdefs.h. */
3108 #include <ac_nonexistent.h>
3110 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3111 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3113 grep -v '^ *+' conftest.er1 >conftest.err
3115 cat conftest.err >&5
3116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3117 (exit $ac_status); } >/dev/null; then
3118 if test -s conftest.err; then
3119 ac_cpp_err=$ac_c_preproc_warn_flag
3120 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3127 if test -z "$ac_cpp_err"; then
3128 # Broken: success on invalid input.
3131 echo "$as_me: failed program was:" >&5
3132 sed 's/^/| /' conftest.$ac_ext >&5
3134 # Passes both tests.
3138 rm -f conftest.err conftest.$ac_ext
3141 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3142 rm -f conftest.err conftest.$ac_ext
3143 if $ac_preproc_ok; then
3146 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3147 See \`config.log' for more details." >&5
3148 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3149 See \`config.log' for more details." >&2;}
3150 { (exit 1); exit 1; }; }
3154 ac_cpp='$CPP $CPPFLAGS'
3155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3160 echo "$as_me:$LINENO: checking for egrep" >&5
3161 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3162 if test "${ac_cv_prog_egrep+set}" = set; then
3163 echo $ECHO_N "(cached) $ECHO_C" >&6
3165 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3166 then ac_cv_prog_egrep='grep -E'
3167 else ac_cv_prog_egrep='egrep'
3170 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3171 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3172 EGREP=$ac_cv_prog_egrep
3175 if test $ac_cv_c_compiler_gnu = yes; then
3176 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3177 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3178 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3179 echo $ECHO_N "(cached) $ECHO_C" >&6
3181 ac_pattern="Autoconf.*'x'"
3182 cat >conftest.$ac_ext <<_ACEOF
3185 cat confdefs.h >>conftest.$ac_ext
3186 cat >>conftest.$ac_ext <<_ACEOF
3187 /* end confdefs.h. */
3191 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3192 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3193 ac_cv_prog_gcc_traditional=yes
3195 ac_cv_prog_gcc_traditional=no
3200 if test $ac_cv_prog_gcc_traditional = no; then
3201 cat >conftest.$ac_ext <<_ACEOF
3204 cat confdefs.h >>conftest.$ac_ext
3205 cat >>conftest.$ac_ext <<_ACEOF
3206 /* end confdefs.h. */
3210 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3211 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3212 ac_cv_prog_gcc_traditional=yes
3218 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3219 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3220 if test $ac_cv_prog_gcc_traditional = yes; then
3221 CC="$CC -traditional"
3225 BASECC=`basename $CC`
3227 if test "x$BASECC" = xgcc; then
3228 cat >>confdefs.h <<\_ACEOF
3234 # Extract the first word of "$CXX", so it can be a program name with args.
3235 set dummy $CXX; ac_word=$2
3236 echo "$as_me:$LINENO: checking for $ac_word" >&5
3237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3238 if test "${ac_cv_path_CXX+set}" = set; then
3239 echo $ECHO_N "(cached) $ECHO_C" >&6
3243 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3250 test -z "$as_dir" && as_dir=.
3251 for ac_exec_ext in '' $ac_executable_extensions; do
3252 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3253 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3260 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
3266 if test -n "$CXX"; then
3267 echo "$as_me:$LINENO: result: $CXX" >&5
3268 echo "${ECHO_T}$CXX" >&6
3270 echo "$as_me:$LINENO: result: no" >&5
3271 echo "${ECHO_T}no" >&6
3274 if test ! -e $CXX; then
3275 { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
3276 echo "$as_me: error: Unable to find C++ compiler" >&2;}
3277 { (exit 1); exit 1; }; }
3280 # Find a good install program. We prefer a C program (faster),
3281 # so one script is as good as another. But avoid the broken or
3282 # incompatible versions:
3283 # SysV /etc/install, /usr/sbin/install
3284 # SunOS /usr/etc/install
3285 # IRIX /sbin/install
3287 # AmigaOS /C/install, which installs bootblocks on floppy discs
3288 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3289 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3290 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3291 # OS/2's system install, which has a completely different semantic
3292 # ./install, which can be erroneously created by make from ./install.sh.
3293 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3294 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3295 if test -z "$INSTALL"; then
3296 if test "${ac_cv_path_install+set}" = set; then
3297 echo $ECHO_N "(cached) $ECHO_C" >&6
3299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3303 test -z "$as_dir" && as_dir=.
3304 # Account for people who put trailing slashes in PATH elements.
3306 ./ | .// | /cC/* | \
3307 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3308 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3311 # OSF1 and SCO ODT 3.0 have their own names for install.
3312 # Don't use installbsd from OSF since it installs stuff as root
3314 for ac_prog in ginstall scoinst install; do
3315 for ac_exec_ext in '' $ac_executable_extensions; do
3316 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3317 if test $ac_prog = install &&
3318 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3319 # AIX install. It has an incompatible calling convention.
3321 elif test $ac_prog = install &&
3322 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3323 # program-specific install script used by HP pwplus--don't use.
3326 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3338 if test "${ac_cv_path_install+set}" = set; then
3339 INSTALL=$ac_cv_path_install
3341 # As a last resort, use the slow shell script. We don't cache a
3342 # path for INSTALL within a source directory, because that will
3343 # break other packages using the cache if that directory is
3344 # removed, or if the path is relative.
3345 INSTALL=$ac_install_sh
3348 echo "$as_me:$LINENO: result: $INSTALL" >&5
3349 echo "${ECHO_T}$INSTALL" >&6
3351 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3352 # It thinks the first close brace ends the variable substitution.
3353 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3355 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3357 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3359 if test -n "$ac_tool_prefix"; then
3360 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3361 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3362 echo "$as_me:$LINENO: checking for $ac_word" >&5
3363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3364 if test "${ac_cv_prog_RANLIB+set}" = set; then
3365 echo $ECHO_N "(cached) $ECHO_C" >&6
3367 if test -n "$RANLIB"; then
3368 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3374 test -z "$as_dir" && as_dir=.
3375 for ac_exec_ext in '' $ac_executable_extensions; do
3376 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3377 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3386 RANLIB=$ac_cv_prog_RANLIB
3387 if test -n "$RANLIB"; then
3388 echo "$as_me:$LINENO: result: $RANLIB" >&5
3389 echo "${ECHO_T}$RANLIB" >&6
3391 echo "$as_me:$LINENO: result: no" >&5
3392 echo "${ECHO_T}no" >&6
3396 if test -z "$ac_cv_prog_RANLIB"; then
3397 ac_ct_RANLIB=$RANLIB
3398 # Extract the first word of "ranlib", so it can be a program name with args.
3399 set dummy ranlib; ac_word=$2
3400 echo "$as_me:$LINENO: checking for $ac_word" >&5
3401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3402 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3403 echo $ECHO_N "(cached) $ECHO_C" >&6
3405 if test -n "$ac_ct_RANLIB"; then
3406 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3412 test -z "$as_dir" && as_dir=.
3413 for ac_exec_ext in '' $ac_executable_extensions; do
3414 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3415 ac_cv_prog_ac_ct_RANLIB="ranlib"
3416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3422 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3425 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3426 if test -n "$ac_ct_RANLIB"; then
3427 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3428 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3430 echo "$as_me:$LINENO: result: no" >&5
3431 echo "${ECHO_T}no" >&6
3434 RANLIB=$ac_ct_RANLIB
3436 RANLIB="$ac_cv_prog_RANLIB"
3439 # Extract the first word of "mv", so it can be a program name with args.
3440 set dummy mv; ac_word=$2
3441 echo "$as_me:$LINENO: checking for $ac_word" >&5
3442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3443 if test "${ac_cv_path_MV+set}" = set; then
3444 echo $ECHO_N "(cached) $ECHO_C" >&6
3448 ac_cv_path_MV="$MV" # Let the user override the test with a path.
3451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3455 test -z "$as_dir" && as_dir=.
3456 for ac_exec_ext in '' $ac_executable_extensions; do
3457 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3458 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3465 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3471 if test -n "$MV"; then
3472 echo "$as_me:$LINENO: result: $MV" >&5
3473 echo "${ECHO_T}$MV" >&6
3475 echo "$as_me:$LINENO: result: no" >&5
3476 echo "${ECHO_T}no" >&6
3479 # Extract the first word of "rm", so it can be a program name with args.
3480 set dummy rm; ac_word=$2
3481 echo "$as_me:$LINENO: checking for $ac_word" >&5
3482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3483 if test "${ac_cv_path_RM+set}" = set; then
3484 echo $ECHO_N "(cached) $ECHO_C" >&6
3488 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3495 test -z "$as_dir" && as_dir=.
3496 for ac_exec_ext in '' $ac_executable_extensions; do
3497 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3498 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3505 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3511 if test -n "$RM"; then
3512 echo "$as_me:$LINENO: result: $RM" >&5
3513 echo "${ECHO_T}$RM" >&6
3515 echo "$as_me:$LINENO: result: no" >&5
3516 echo "${ECHO_T}no" >&6
3519 # Extract the first word of "cp", so it can be a program name with args.
3520 set dummy cp; ac_word=$2
3521 echo "$as_me:$LINENO: checking for $ac_word" >&5
3522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3523 if test "${ac_cv_path_CP+set}" = set; then
3524 echo $ECHO_N "(cached) $ECHO_C" >&6
3528 ac_cv_path_CP="$CP" # Let the user override the test with a path.
3531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3535 test -z "$as_dir" && as_dir=.
3536 for ac_exec_ext in '' $ac_executable_extensions; do
3537 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3538 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3545 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3551 if test -n "$CP"; then
3552 echo "$as_me:$LINENO: result: $CP" >&5
3553 echo "${ECHO_T}$CP" >&6
3555 echo "$as_me:$LINENO: result: no" >&5
3556 echo "${ECHO_T}no" >&6
3559 # Extract the first word of "sed", so it can be a program name with args.
3560 set dummy sed; ac_word=$2
3561 echo "$as_me:$LINENO: checking for $ac_word" >&5
3562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3563 if test "${ac_cv_path_SED+set}" = set; then
3564 echo $ECHO_N "(cached) $ECHO_C" >&6
3568 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3575 test -z "$as_dir" && as_dir=.
3576 for ac_exec_ext in '' $ac_executable_extensions; do
3577 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3578 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3585 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3591 if test -n "$SED"; then
3592 echo "$as_me:$LINENO: result: $SED" >&5
3593 echo "${ECHO_T}$SED" >&6
3595 echo "$as_me:$LINENO: result: no" >&5
3596 echo "${ECHO_T}no" >&6
3599 # Extract the first word of "echo", so it can be a program name with args.
3600 set dummy echo; ac_word=$2
3601 echo "$as_me:$LINENO: checking for $ac_word" >&5
3602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3603 if test "${ac_cv_path_ECHO+set}" = set; then
3604 echo $ECHO_N "(cached) $ECHO_C" >&6
3608 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3615 test -z "$as_dir" && as_dir=.
3616 for ac_exec_ext in '' $ac_executable_extensions; do
3617 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3618 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3625 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3629 ECHO=$ac_cv_path_ECHO
3631 if test -n "$ECHO"; then
3632 echo "$as_me:$LINENO: result: $ECHO" >&5
3633 echo "${ECHO_T}$ECHO" >&6
3635 echo "$as_me:$LINENO: result: no" >&5
3636 echo "${ECHO_T}no" >&6
3639 # Extract the first word of "cmp", so it can be a program name with args.
3640 set dummy cmp; ac_word=$2
3641 echo "$as_me:$LINENO: checking for $ac_word" >&5
3642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3643 if test "${ac_cv_path_CMP+set}" = set; then
3644 echo $ECHO_N "(cached) $ECHO_C" >&6
3648 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3655 test -z "$as_dir" && as_dir=.
3656 for ac_exec_ext in '' $ac_executable_extensions; do
3657 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3658 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3665 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3671 if test -n "$CMP"; then
3672 echo "$as_me:$LINENO: result: $CMP" >&5
3673 echo "${ECHO_T}$CMP" >&6
3675 echo "$as_me:$LINENO: result: no" >&5
3676 echo "${ECHO_T}no" >&6
3679 # Extract the first word of "tbl", so it can be a program name with args.
3680 set dummy tbl; ac_word=$2
3681 echo "$as_me:$LINENO: checking for $ac_word" >&5
3682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3683 if test "${ac_cv_path_TBL+set}" = set; then
3684 echo $ECHO_N "(cached) $ECHO_C" >&6
3688 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3695 test -z "$as_dir" && as_dir=.
3696 for ac_exec_ext in '' $ac_executable_extensions; do
3697 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3698 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3699 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3705 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3711 if test -n "$TBL"; then
3712 echo "$as_me:$LINENO: result: $TBL" >&5
3713 echo "${ECHO_T}$TBL" >&6
3715 echo "$as_me:$LINENO: result: no" >&5
3716 echo "${ECHO_T}no" >&6
3719 # Extract the first word of "ar", so it can be a program name with args.
3720 set dummy ar; ac_word=$2
3721 echo "$as_me:$LINENO: checking for $ac_word" >&5
3722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3723 if test "${ac_cv_path_AR+set}" = set; then
3724 echo $ECHO_N "(cached) $ECHO_C" >&6
3728 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3735 test -z "$as_dir" && as_dir=.
3736 for ac_exec_ext in '' $ac_executable_extensions; do
3737 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3738 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3745 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3751 if test -n "$AR"; then
3752 echo "$as_me:$LINENO: result: $AR" >&5
3753 echo "${ECHO_T}$AR" >&6
3755 echo "$as_me:$LINENO: result: no" >&5
3756 echo "${ECHO_T}no" >&6
3759 # Extract the first word of "openssl", so it can be a program name with args.
3760 set dummy openssl; ac_word=$2
3761 echo "$as_me:$LINENO: checking for $ac_word" >&5
3762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3763 if test "${ac_cv_path_OPENSSL+set}" = set; then
3764 echo $ECHO_N "(cached) $ECHO_C" >&6
3768 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3775 test -z "$as_dir" && as_dir=.
3776 for ac_exec_ext in '' $ac_executable_extensions; do
3777 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3778 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3785 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3789 OPENSSL=$ac_cv_path_OPENSSL
3791 if test -n "$OPENSSL"; then
3792 echo "$as_me:$LINENO: result: $OPENSSL" >&5
3793 echo "${ECHO_T}$OPENSSL" >&6
3795 echo "$as_me:$LINENO: result: no" >&5
3796 echo "${ECHO_T}no" >&6
3799 # Extract the first word of "mtx", so it can be a program name with args.
3800 set dummy mtx; ac_word=$2
3801 echo "$as_me:$LINENO: checking for $ac_word" >&5
3802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3803 if test "${ac_cv_path_MTX+set}" = set; then
3804 echo $ECHO_N "(cached) $ECHO_C" >&6
3808 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3815 test -z "$as_dir" && as_dir=.
3816 for ac_exec_ext in '' $ac_executable_extensions; do
3817 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3818 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3825 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3831 if test -n "$MTX"; then
3832 echo "$as_me:$LINENO: result: $MTX" >&5
3833 echo "${ECHO_T}$MTX" >&6
3835 echo "$as_me:$LINENO: result: no" >&5
3836 echo "${ECHO_T}no" >&6
3839 # Extract the first word of "dd", so it can be a program name with args.
3840 set dummy dd; ac_word=$2
3841 echo "$as_me:$LINENO: checking for $ac_word" >&5
3842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3843 if test "${ac_cv_path_DD+set}" = set; then
3844 echo $ECHO_N "(cached) $ECHO_C" >&6
3848 ac_cv_path_DD="$DD" # Let the user override the test with a path.
3851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3855 test -z "$as_dir" && as_dir=.
3856 for ac_exec_ext in '' $ac_executable_extensions; do
3857 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3858 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
3859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3865 test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
3871 if test -n "$DD"; then
3872 echo "$as_me:$LINENO: result: $DD" >&5
3873 echo "${ECHO_T}$DD" >&6
3875 echo "$as_me:$LINENO: result: no" >&5
3876 echo "${ECHO_T}no" >&6
3879 # Extract the first word of "mkisofs", so it can be a program name with args.
3880 set dummy mkisofs; ac_word=$2
3881 echo "$as_me:$LINENO: checking for $ac_word" >&5
3882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3883 if test "${ac_cv_path_MKISOFS+set}" = set; then
3884 echo $ECHO_N "(cached) $ECHO_C" >&6
3888 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
3891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3895 test -z "$as_dir" && as_dir=.
3896 for ac_exec_ext in '' $ac_executable_extensions; do
3897 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3898 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
3899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3905 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
3909 MKISOFS=$ac_cv_path_MKISOFS
3911 if test -n "$MKISOFS"; then
3912 echo "$as_me:$LINENO: result: $MKISOFS" >&5
3913 echo "${ECHO_T}$MKISOFS" >&6
3915 echo "$as_me:$LINENO: result: no" >&5
3916 echo "${ECHO_T}no" >&6
3919 # Extract the first word of "python", so it can be a program name with args.
3920 set dummy python; ac_word=$2
3921 echo "$as_me:$LINENO: checking for $ac_word" >&5
3922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3923 if test "${ac_cv_path_PYTHON+set}" = set; then
3924 echo $ECHO_N "(cached) $ECHO_C" >&6
3928 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
3931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3935 test -z "$as_dir" && as_dir=.
3936 for ac_exec_ext in '' $ac_executable_extensions; do
3937 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3938 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
3939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3945 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
3949 PYTHON=$ac_cv_path_PYTHON
3951 if test -n "$PYTHON"; then
3952 echo "$as_me:$LINENO: result: $PYTHON" >&5
3953 echo "${ECHO_T}$PYTHON" >&6
3955 echo "$as_me:$LINENO: result: no" >&5
3956 echo "${ECHO_T}no" >&6
3959 # Extract the first word of "growisofs", so it can be a program name with args.
3960 set dummy growisofs; ac_word=$2
3961 echo "$as_me:$LINENO: checking for $ac_word" >&5
3962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3963 if test "${ac_cv_path_GROWISOFS+set}" = set; then
3964 echo $ECHO_N "(cached) $ECHO_C" >&6
3968 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
3971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3975 test -z "$as_dir" && as_dir=.
3976 for ac_exec_ext in '' $ac_executable_extensions; do
3977 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3978 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
3979 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3985 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
3989 GROWISOFS=$ac_cv_path_GROWISOFS
3991 if test -n "$GROWISOFS"; then
3992 echo "$as_me:$LINENO: result: $GROWISOFS" >&5
3993 echo "${ECHO_T}$GROWISOFS" >&6
3995 echo "$as_me:$LINENO: result: no" >&5
3996 echo "${ECHO_T}no" >&6
3999 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4000 set dummy dvd+rw-mediainfo; ac_word=$2
4001 echo "$as_me:$LINENO: checking for $ac_word" >&5
4002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4003 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4004 echo $ECHO_N "(cached) $ECHO_C" >&6
4006 case $DVDRWMEDIAINFO in
4008 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4015 test -z "$as_dir" && as_dir=.
4016 for ac_exec_ext in '' $ac_executable_extensions; do
4017 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4018 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4025 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4029 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4031 if test -n "$DVDRWMEDIAINFO"; then
4032 echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4033 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6
4035 echo "$as_me:$LINENO: result: no" >&5
4036 echo "${ECHO_T}no" >&6
4039 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4040 set dummy dvd+rw-format; ac_word=$2
4041 echo "$as_me:$LINENO: checking for $ac_word" >&5
4042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4043 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4044 echo $ECHO_N "(cached) $ECHO_C" >&6
4046 case $DVDRWFORMAT in
4048 ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4055 test -z "$as_dir" && as_dir=.
4056 for ac_exec_ext in '' $ac_executable_extensions; do
4057 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4058 ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4065 test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4069 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4071 if test -n "$DVDRWFORMAT"; then
4072 echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4073 echo "${ECHO_T}$DVDRWFORMAT" >&6
4075 echo "$as_me:$LINENO: result: no" >&5
4076 echo "${ECHO_T}no" >&6
4079 # Extract the first word of "pkg-config", so it can be a program name with args.
4080 set dummy pkg-config; ac_word=$2
4081 echo "$as_me:$LINENO: checking for $ac_word" >&5
4082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4083 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4084 echo $ECHO_N "(cached) $ECHO_C" >&6
4088 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4095 test -z "$as_dir" && as_dir=.
4096 for ac_exec_ext in '' $ac_executable_extensions; do
4097 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4098 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4099 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4105 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
4109 PKGCONFIG=$ac_cv_path_PKGCONFIG
4111 if test -n "$PKGCONFIG"; then
4112 echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
4113 echo "${ECHO_T}$PKGCONFIG" >&6
4115 echo "$as_me:$LINENO: result: no" >&5
4116 echo "${ECHO_T}no" >&6
4120 if test "x$WXCONFIG" = x; then
4123 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
4124 set dummy ${WXCONFIG}; ac_word=$2
4125 echo "$as_me:$LINENO: checking for $ac_word" >&5
4126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4127 if test "${ac_cv_path_WXCONFIG+set}" = set; then
4128 echo $ECHO_N "(cached) $ECHO_C" >&6
4132 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
4135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4139 test -z "$as_dir" && as_dir=.
4140 for ac_exec_ext in '' $ac_executable_extensions; do
4141 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4142 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
4143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4149 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
4153 WXCONFIG=$ac_cv_path_WXCONFIG
4155 if test -n "$WXCONFIG"; then
4156 echo "$as_me:$LINENO: result: $WXCONFIG" >&5
4157 echo "${ECHO_T}$WXCONFIG" >&6
4159 echo "$as_me:$LINENO: result: no" >&5
4160 echo "${ECHO_T}no" >&6
4164 # Extract the first word of "cdrecord", so it can be a program name with args.
4165 set dummy cdrecord; ac_word=$2
4166 echo "$as_me:$LINENO: checking for $ac_word" >&5
4167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4168 if test "${ac_cv_path_CDRECORD+set}" = set; then
4169 echo $ECHO_N "(cached) $ECHO_C" >&6
4173 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
4176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4180 test -z "$as_dir" && as_dir=.
4181 for ac_exec_ext in '' $ac_executable_extensions; do
4182 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4183 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
4184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4190 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
4194 CDRECORD=$ac_cv_path_CDRECORD
4196 if test -n "$CDRECORD"; then
4197 echo "$as_me:$LINENO: result: $CDRECORD" >&5
4198 echo "${ECHO_T}$CDRECORD" >&6
4200 echo "$as_me:$LINENO: result: no" >&5
4201 echo "${ECHO_T}no" >&6
4204 # Extract the first word of "pidof", so it can be a program name with args.
4205 set dummy pidof; ac_word=$2
4206 echo "$as_me:$LINENO: checking for $ac_word" >&5
4207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4208 if test "${ac_cv_path_PIDOF+set}" = set; then
4209 echo $ECHO_N "(cached) $ECHO_C" >&6
4213 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
4216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4220 test -z "$as_dir" && as_dir=.
4221 for ac_exec_ext in '' $ac_executable_extensions; do
4222 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4223 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
4224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4230 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
4234 PIDOF=$ac_cv_path_PIDOF
4236 if test -n "$PIDOF"; then
4237 echo "$as_me:$LINENO: result: $PIDOF" >&5
4238 echo "${ECHO_T}$PIDOF" >&6
4240 echo "$as_me:$LINENO: result: no" >&5
4241 echo "${ECHO_T}no" >&6
4244 for ac_prog in gawk mawk nawk awk
4246 # Extract the first word of "$ac_prog", so it can be a program name with args.
4247 set dummy $ac_prog; ac_word=$2
4248 echo "$as_me:$LINENO: checking for $ac_word" >&5
4249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4250 if test "${ac_cv_prog_AWK+set}" = set; then
4251 echo $ECHO_N "(cached) $ECHO_C" >&6
4253 if test -n "$AWK"; then
4254 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4260 test -z "$as_dir" && as_dir=.
4261 for ac_exec_ext in '' $ac_executable_extensions; do
4262 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4263 ac_cv_prog_AWK="$ac_prog"
4264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4273 if test -n "$AWK"; then
4274 echo "$as_me:$LINENO: result: $AWK" >&5
4275 echo "${ECHO_T}$AWK" >&6
4277 echo "$as_me:$LINENO: result: no" >&5
4278 echo "${ECHO_T}no" >&6
4281 test -n "$AWK" && break
4284 # Some AWK programs fail, so test it and warn the user
4285 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
4286 { if ((prog == $2) || (("(" prog ")") == $2) ||
4287 (("" prog "") == $2) ||
4288 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
4290 { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4291 The regex engine of $AWK is too broken to be used you
4292 might want to install GNU AWK.
4293 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
4294 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4295 The regex engine of $AWK is too broken to be used you
4296 might want to install GNU AWK.
4297 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
4298 { (exit 1); exit 1; }; }
4301 # Extract the first word of "$THE_AWK", so it can be a program name with args.
4302 set dummy $THE_AWK; ac_word=$2
4303 echo "$as_me:$LINENO: checking for $ac_word" >&5
4304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4305 if test "${ac_cv_path_AWK+set}" = set; then
4306 echo $ECHO_N "(cached) $ECHO_C" >&6
4310 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
4313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4317 test -z "$as_dir" && as_dir=.
4318 for ac_exec_ext in '' $ac_executable_extensions; do
4319 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4320 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
4321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4327 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
4333 if test -n "$AWK"; then
4334 echo "$as_me:$LINENO: result: $AWK" >&5
4335 echo "${ECHO_T}$AWK" >&6
4337 echo "$as_me:$LINENO: result: no" >&5
4338 echo "${ECHO_T}no" >&6
4343 test -n "$ARFLAG" || ARFLAGS="cr"
4354 # Make sure we can run config.sub.
4355 $ac_config_sub sun4 >/dev/null 2>&1 ||
4356 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4357 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4358 { (exit 1); exit 1; }; }
4360 echo "$as_me:$LINENO: checking build system type" >&5
4361 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4362 if test "${ac_cv_build+set}" = set; then
4363 echo $ECHO_N "(cached) $ECHO_C" >&6
4365 ac_cv_build_alias=$build_alias
4366 test -z "$ac_cv_build_alias" &&
4367 ac_cv_build_alias=`$ac_config_guess`
4368 test -z "$ac_cv_build_alias" &&
4369 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4370 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4371 { (exit 1); exit 1; }; }
4372 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4373 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4374 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4375 { (exit 1); exit 1; }; }
4378 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4379 echo "${ECHO_T}$ac_cv_build" >&6
4381 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4382 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4383 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4387 echo "$as_me:$LINENO: checking host system type" >&5
4388 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4389 if test "${ac_cv_host+set}" = set; then
4390 echo $ECHO_N "(cached) $ECHO_C" >&6
4392 ac_cv_host_alias=$host_alias
4393 test -z "$ac_cv_host_alias" &&
4394 ac_cv_host_alias=$ac_cv_build_alias
4395 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4396 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4397 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4398 { (exit 1); exit 1; }; }
4401 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4402 echo "${ECHO_T}$ac_cv_host" >&6
4404 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4405 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4406 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4410 *cygwin* ) CYGWIN=yes;;
4414 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4420 HAVE_SUN_OS_FALSE='#'
4422 HAVE_SUN_OS_TRUE='#'
4425 cat >>confdefs.h <<\_ACEOF
4426 #define HAVE_SUN_OS 1
4434 HAVE_SUN_OS_FALSE='#'
4436 HAVE_SUN_OS_TRUE='#'
4441 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4447 HAVE_OSF1_OS_FALSE='#'
4449 HAVE_OSF1_OS_TRUE='#'
4452 cat >>confdefs.h <<\_ACEOF
4453 #define HAVE_OSF1_OS 1
4461 HAVE_OSF1_OS_FALSE='#'
4463 HAVE_OSF1_OS_TRUE='#'
4468 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4474 HAVE_AIX_OS_FALSE='#'
4476 HAVE_AIX_OS_TRUE='#'
4479 cat >>confdefs.h <<\_ACEOF
4480 #define HAVE_AIX_OS 1
4488 HAVE_AIX_OS_FALSE='#'
4490 HAVE_AIX_OS_TRUE='#'
4495 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4501 HAVE_HPUX_OS_FALSE='#'
4503 HAVE_HPUX_OS_TRUE='#'
4506 cat >>confdefs.h <<\_ACEOF
4507 #define HAVE_HPUX_OS 1
4515 HAVE_HPUX_OS_FALSE='#'
4517 HAVE_HPUX_OS_TRUE='#'
4522 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
4528 HAVE_LINUX_OS_FALSE='#'
4530 HAVE_LINUX_OS_TRUE='#'
4531 HAVE_LINUX_OS_FALSE=
4533 cat >>confdefs.h <<\_ACEOF
4534 #define HAVE_LINUX_OS 1
4542 HAVE_LINUX_OS_FALSE='#'
4544 HAVE_LINUX_OS_TRUE='#'
4545 HAVE_LINUX_OS_FALSE=
4549 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4554 HAVE_FREEBSD_OS_TRUE=
4555 HAVE_FREEBSD_OS_FALSE='#'
4557 HAVE_FREEBSD_OS_TRUE='#'
4558 HAVE_FREEBSD_OS_FALSE=
4560 cat >>confdefs.h <<\_ACEOF
4561 #define HAVE_FREEBSD_OS 1
4568 HAVE_FREEBSD_OS_TRUE=
4569 HAVE_FREEBSD_OS_FALSE='#'
4571 HAVE_FREEBSD_OS_TRUE='#'
4572 HAVE_FREEBSD_OS_FALSE=
4576 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4581 HAVE_NETBSD_OS_TRUE=
4582 HAVE_NETBSD_OS_FALSE='#'
4584 HAVE_NETBSD_OS_TRUE='#'
4585 HAVE_NETBSD_OS_FALSE=
4587 cat >>confdefs.h <<\_ACEOF
4588 #define HAVE_NETBSD_OS 1
4595 HAVE_NETBSD_OS_TRUE=
4596 HAVE_NETBSD_OS_FALSE='#'
4598 HAVE_NETBSD_OS_TRUE='#'
4599 HAVE_NETBSD_OS_FALSE=
4603 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4608 HAVE_OPENBSD_OS_TRUE=
4609 HAVE_OPENBSD_OS_FALSE='#'
4611 HAVE_OPENBSD_OS_TRUE='#'
4612 HAVE_OPENBSD_OS_FALSE=
4614 cat >>confdefs.h <<\_ACEOF
4615 #define HAVE_OPENBSD_OS 1
4622 HAVE_OPENBSD_OS_TRUE=
4623 HAVE_OPENBSD_OS_FALSE='#'
4625 HAVE_OPENBSD_OS_TRUE='#'
4626 HAVE_OPENBSD_OS_FALSE=
4630 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4636 HAVE_BSDI_OS_FALSE='#'
4638 HAVE_BSDI_OS_TRUE='#'
4641 cat >>confdefs.h <<\_ACEOF
4642 #define HAVE_BSDI_OS 1
4650 HAVE_BSDI_OS_FALSE='#'
4652 HAVE_BSDI_OS_TRUE='#'
4657 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4663 HAVE_SGI_OS_FALSE='#'
4665 HAVE_SGI_OS_TRUE='#'
4668 cat >>confdefs.h <<\_ACEOF
4669 #define HAVE_SGI_OS 1
4677 HAVE_SGI_OS_FALSE='#'
4679 HAVE_SGI_OS_TRUE='#'
4684 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
4690 HAVE_IRIX_OS_FALSE='#'
4692 HAVE_IRIX_OS_TRUE='#'
4695 cat >>confdefs.h <<\_ACEOF
4696 #define HAVE_IRIX_OS 1
4704 HAVE_IRIX_OS_FALSE='#'
4706 HAVE_IRIX_OS_TRUE='#'
4711 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4716 HAVE_DARWIN_OS_TRUE=
4717 HAVE_DARWIN_OS_FALSE='#'
4719 HAVE_DARWIN_OS_TRUE='#'
4720 HAVE_DARWIN_OS_FALSE=
4722 cat >>confdefs.h <<\_ACEOF
4723 #define HAVE_DARWIN_OS 1
4730 HAVE_DARWIN_OS_TRUE=
4731 HAVE_DARWIN_OS_FALSE='#'
4733 HAVE_DARWIN_OS_TRUE='#'
4734 HAVE_DARWIN_OS_FALSE=
4739 # -----------------------------------------------------------
4740 # ----------------------------------------------------------
4741 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4742 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4743 if test "x$DISTNAME" != "x"
4745 echo "distname set to $DISTNAME"
4746 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4749 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4752 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4755 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4758 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4761 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4764 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4767 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4770 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4773 elif test -f /etc/SuSE-release
4776 elif test -d /etc/SuSEconfig
4779 elif test -f /etc/mandrake-release
4782 elif test -f /etc/whitebox-release
4785 elif test -f /etc/redhat-release
4788 elif test -f /etc/gentoo-release
4791 elif test -f /etc/debian_version
4794 elif test -f /etc/slackware-version
4797 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4800 elif test -f /etc/engarde-version
4803 elif test "$CYGWIN" = yes
4806 cat >>confdefs.h <<\_ACEOF
4807 #define HAVE_CYGWIN 1
4813 echo "$as_me:$LINENO: result: done" >&5
4814 echo "${ECHO_T}done" >&6
4817 # --------------------------------------------------
4818 # Suppport for gettext (translations)
4819 # By default, $datadir is ${prefix}/share
4820 # --------------------------------------------------
4821 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4822 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4823 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4824 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4825 echo $ECHO_N "(cached) $ECHO_C" >&6
4827 cat >conftest.make <<\_ACEOF
4829 @echo 'ac_maketemp="$(MAKE)"'
4831 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4832 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4833 if test -n "$ac_maketemp"; then
4834 eval ac_cv_prog_make_${ac_make}_set=yes
4836 eval ac_cv_prog_make_${ac_make}_set=no
4840 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4841 echo "$as_me:$LINENO: result: yes" >&5
4842 echo "${ECHO_T}yes" >&6
4845 echo "$as_me:$LINENO: result: no" >&5
4846 echo "${ECHO_T}no" >&6
4847 SET_MAKE="MAKE=${MAKE-make}"
4853 if test -n "$ac_aux_dir"; then
4854 case "$ac_aux_dir" in
4855 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
4856 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4859 if test -z "$MKINSTALLDIRS"; then
4860 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4865 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4866 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4867 # Check whether --enable-nls or --disable-nls was given.
4868 if test "${enable_nls+set}" = set; then
4869 enableval="$enable_nls"
4874 echo "$as_me:$LINENO: result: $USE_NLS" >&5
4875 echo "${ECHO_T}$USE_NLS" >&6
4882 # Prepare PATH_SEPARATOR.
4883 # The user is always right.
4884 if test "${PATH_SEPARATOR+set}" != set; then
4885 echo "#! /bin/sh" >conf$$.sh
4886 echo "exit 0" >>conf$$.sh
4888 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4896 # Find out how to test for executable files. Don't use a zero-byte file,
4897 # as systems may use methods other than mode bits to determine executability.
4898 cat >conf$$.file <<_ASEOF
4902 chmod +x conf$$.file
4903 if test -x conf$$.file >/dev/null 2>&1; then
4904 ac_executable_p="test -x"
4906 ac_executable_p="test -f"
4910 # Extract the first word of "msgfmt", so it can be a program name with args.
4911 set dummy msgfmt; ac_word=$2
4912 echo "$as_me:$LINENO: checking for $ac_word" >&5
4913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4914 if test "${ac_cv_path_MSGFMT+set}" = set; then
4915 echo $ECHO_N "(cached) $ECHO_C" >&6
4919 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4922 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4923 for ac_dir in $PATH; do
4925 test -z "$ac_dir" && ac_dir=.
4926 for ac_exec_ext in '' $ac_executable_extensions; do
4927 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4928 echo "$as_me: trying $ac_dir/$ac_word..." >&5
4929 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
4930 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4931 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4938 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4942 MSGFMT="$ac_cv_path_MSGFMT"
4943 if test "$MSGFMT" != ":"; then
4944 echo "$as_me:$LINENO: result: $MSGFMT" >&5
4945 echo "${ECHO_T}$MSGFMT" >&6
4947 echo "$as_me:$LINENO: result: no" >&5
4948 echo "${ECHO_T}no" >&6
4951 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4952 set dummy gmsgfmt; ac_word=$2
4953 echo "$as_me:$LINENO: checking for $ac_word" >&5
4954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4955 if test "${ac_cv_path_GMSGFMT+set}" = set; then
4956 echo $ECHO_N "(cached) $ECHO_C" >&6
4960 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4967 test -z "$as_dir" && as_dir=.
4968 for ac_exec_ext in '' $ac_executable_extensions; do
4969 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4970 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4977 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4981 GMSGFMT=$ac_cv_path_GMSGFMT
4983 if test -n "$GMSGFMT"; then
4984 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4985 echo "${ECHO_T}$GMSGFMT" >&6
4987 echo "$as_me:$LINENO: result: no" >&5
4988 echo "${ECHO_T}no" >&6
4993 # Prepare PATH_SEPARATOR.
4994 # The user is always right.
4995 if test "${PATH_SEPARATOR+set}" != set; then
4996 echo "#! /bin/sh" >conf$$.sh
4997 echo "exit 0" >>conf$$.sh
4999 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5007 # Find out how to test for executable files. Don't use a zero-byte file,
5008 # as systems may use methods other than mode bits to determine executability.
5009 cat >conf$$.file <<_ASEOF
5013 chmod +x conf$$.file
5014 if test -x conf$$.file >/dev/null 2>&1; then
5015 ac_executable_p="test -x"
5017 ac_executable_p="test -f"
5021 # Extract the first word of "xgettext", so it can be a program name with args.
5022 set dummy xgettext; ac_word=$2
5023 echo "$as_me:$LINENO: checking for $ac_word" >&5
5024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5025 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5026 echo $ECHO_N "(cached) $ECHO_C" >&6
5030 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5033 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5034 for ac_dir in $PATH; do
5036 test -z "$ac_dir" && ac_dir=.
5037 for ac_exec_ext in '' $ac_executable_extensions; do
5038 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5039 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5040 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5041 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5042 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5049 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5053 XGETTEXT="$ac_cv_path_XGETTEXT"
5054 if test "$XGETTEXT" != ":"; then
5055 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5056 echo "${ECHO_T}$XGETTEXT" >&6
5058 echo "$as_me:$LINENO: result: no" >&5
5059 echo "${ECHO_T}no" >&6
5065 # Prepare PATH_SEPARATOR.
5066 # The user is always right.
5067 if test "${PATH_SEPARATOR+set}" != set; then
5068 echo "#! /bin/sh" >conf$$.sh
5069 echo "exit 0" >>conf$$.sh
5071 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5079 # Find out how to test for executable files. Don't use a zero-byte file,
5080 # as systems may use methods other than mode bits to determine executability.
5081 cat >conf$$.file <<_ASEOF
5085 chmod +x conf$$.file
5086 if test -x conf$$.file >/dev/null 2>&1; then
5087 ac_executable_p="test -x"
5089 ac_executable_p="test -f"
5093 # Extract the first word of "msgmerge", so it can be a program name with args.
5094 set dummy msgmerge; ac_word=$2
5095 echo "$as_me:$LINENO: checking for $ac_word" >&5
5096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5097 if test "${ac_cv_path_MSGMERGE+set}" = set; then
5098 echo $ECHO_N "(cached) $ECHO_C" >&6
5102 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5105 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5106 for ac_dir in $PATH; do
5108 test -z "$ac_dir" && ac_dir=.
5109 for ac_exec_ext in '' $ac_executable_extensions; do
5110 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5111 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5112 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
5113 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5120 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5124 MSGMERGE="$ac_cv_path_MSGMERGE"
5125 if test "$MSGMERGE" != ":"; then
5126 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
5127 echo "${ECHO_T}$MSGMERGE" >&6
5129 echo "$as_me:$LINENO: result: no" >&5
5130 echo "${ECHO_T}no" >&6
5134 if test "$GMSGFMT" != ":"; then
5135 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
5136 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5139 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
5140 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
5141 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
5146 if test "$XGETTEXT" != ":"; then
5147 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5148 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5151 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
5152 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
5158 ac_config_commands="$ac_config_commands default-1"
5162 if test "X$prefix" = "XNONE"; then
5163 acl_final_prefix="$ac_default_prefix"
5165 acl_final_prefix="$prefix"
5167 if test "X$exec_prefix" = "XNONE"; then
5168 acl_final_exec_prefix='${prefix}'
5170 acl_final_exec_prefix="$exec_prefix"
5172 acl_save_prefix="$prefix"
5173 prefix="$acl_final_prefix"
5174 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5175 prefix="$acl_save_prefix"
5178 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5179 if test "${with_gnu_ld+set}" = set; then
5180 withval="$with_gnu_ld"
5181 test "$withval" = no || with_gnu_ld=yes
5185 # Prepare PATH_SEPARATOR.
5186 # The user is always right.
5187 if test "${PATH_SEPARATOR+set}" != set; then
5188 echo "#! /bin/sh" >conf$$.sh
5189 echo "exit 0" >>conf$$.sh
5191 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5199 if test "$GCC" = yes; then
5200 # Check if gcc -print-prog-name=ld gives a path.
5201 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5202 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5205 # gcc leaves a trailing carriage return which upsets mingw
5206 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5208 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5211 # Accept absolute paths.
5212 [\\/]* | [A-Za-z]:[\\/]*)
5213 re_direlt='/[^/][^/]*/\.\./'
5214 # Canonicalize the path of ld
5215 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5216 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5217 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5219 test -z "$LD" && LD="$ac_prog"
5222 # If it fails, then pretend we aren't using GCC.
5226 # If it is relative, then search for the first ld in PATH.
5230 elif test "$with_gnu_ld" = yes; then
5231 echo "$as_me:$LINENO: checking for GNU ld" >&5
5232 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5234 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5235 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5237 if test "${acl_cv_path_LD+set}" = set; then
5238 echo $ECHO_N "(cached) $ECHO_C" >&6
5240 if test -z "$LD"; then
5241 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5242 for ac_dir in $PATH; do
5243 test -z "$ac_dir" && ac_dir=.
5244 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5245 acl_cv_path_LD="$ac_dir/$ac_prog"
5246 # Check to see if the program is GNU ld. I'd rather use --version,
5247 # but apparently some GNU ld's only accept -v.
5248 # Break only if it was the GNU/non-GNU ld that we prefer.
5249 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
5250 *GNU* | *'with BFD'*)
5251 test "$with_gnu_ld" != no && break ;;
5253 test "$with_gnu_ld" != yes && break ;;
5259 acl_cv_path_LD="$LD" # Let the user override the test with a path.
5263 LD="$acl_cv_path_LD"
5264 if test -n "$LD"; then
5265 echo "$as_me:$LINENO: result: $LD" >&5
5266 echo "${ECHO_T}$LD" >&6
5268 echo "$as_me:$LINENO: result: no" >&5
5269 echo "${ECHO_T}no" >&6
5271 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5272 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5273 { (exit 1); exit 1; }; }
5274 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5275 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5276 if test "${acl_cv_prog_gnu_ld+set}" = set; then
5277 echo $ECHO_N "(cached) $ECHO_C" >&6
5279 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5280 case `$LD -v 2>&1 </dev/null` in
5281 *GNU* | *'with BFD'*)
5282 acl_cv_prog_gnu_ld=yes ;;
5284 acl_cv_prog_gnu_ld=no ;;
5287 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
5288 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
5289 with_gnu_ld=$acl_cv_prog_gnu_ld
5294 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
5295 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
5296 if test "${acl_cv_rpath+set}" = set; then
5297 echo $ECHO_N "(cached) $ECHO_C" >&6
5300 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5301 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5307 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
5308 echo "${ECHO_T}$acl_cv_rpath" >&6
5310 libext="$acl_cv_libext"
5311 shlibext="$acl_cv_shlibext"
5312 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5313 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5314 hardcode_direct="$acl_cv_hardcode_direct"
5315 hardcode_minus_L="$acl_cv_hardcode_minus_L"
5316 # Check whether --enable-rpath or --disable-rpath was given.
5317 if test "${enable_rpath+set}" = set; then
5318 enableval="$enable_rpath"
5332 acl_save_prefix="$prefix"
5333 prefix="$acl_final_prefix"
5334 acl_save_exec_prefix="$exec_prefix"
5335 exec_prefix="$acl_final_exec_prefix"
5337 eval additional_includedir=\"$includedir\"
5338 eval additional_libdir=\"$libdir\"
5340 exec_prefix="$acl_save_exec_prefix"
5341 prefix="$acl_save_prefix"
5344 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
5345 if test "${with_libiconv_prefix+set}" = set; then
5346 withval="$with_libiconv_prefix"
5348 if test "X$withval" = "Xno"; then
5351 if test "X$withval" = "X"; then
5353 acl_save_prefix="$prefix"
5354 prefix="$acl_final_prefix"
5355 acl_save_exec_prefix="$exec_prefix"
5356 exec_prefix="$acl_final_exec_prefix"
5358 eval additional_includedir=\"$includedir\"
5359 eval additional_libdir=\"$libdir\"
5361 exec_prefix="$acl_save_exec_prefix"
5362 prefix="$acl_save_prefix"
5365 additional_includedir="$withval/include"
5366 additional_libdir="$withval/lib"
5376 names_already_handled=
5377 names_next_round='iconv '
5378 while test -n "$names_next_round"; do
5379 names_this_round="$names_next_round"
5381 for name in $names_this_round; do
5383 for n in $names_already_handled; do
5384 if test "$n" = "$name"; then
5389 if test -z "$already_handled"; then
5390 names_already_handled="$names_already_handled $name"
5391 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5392 eval value=\"\$HAVE_LIB$uppername\"
5393 if test -n "$value"; then
5394 if test "$value" = yes; then
5395 eval value=\"\$LIB$uppername\"
5396 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5397 eval value=\"\$LTLIB$uppername\"
5398 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5407 if test $use_additional = yes; then
5408 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
5409 found_dir="$additional_libdir"
5410 found_so="$additional_libdir/lib$name.$shlibext"
5411 if test -f "$additional_libdir/lib$name.la"; then
5412 found_la="$additional_libdir/lib$name.la"
5415 if test -f "$additional_libdir/lib$name.$libext"; then
5416 found_dir="$additional_libdir"
5417 found_a="$additional_libdir/lib$name.$libext"
5418 if test -f "$additional_libdir/lib$name.la"; then
5419 found_la="$additional_libdir/lib$name.la"
5424 if test "X$found_dir" = "X"; then
5425 for x in $LDFLAGS $LTLIBICONV; do
5427 acl_save_prefix="$prefix"
5428 prefix="$acl_final_prefix"
5429 acl_save_exec_prefix="$exec_prefix"
5430 exec_prefix="$acl_final_exec_prefix"
5432 exec_prefix="$acl_save_exec_prefix"
5433 prefix="$acl_save_prefix"
5437 dir=`echo "X$x" | sed -e 's/^X-L//'`
5438 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
5440 found_so="$dir/lib$name.$shlibext"
5441 if test -f "$dir/lib$name.la"; then
5442 found_la="$dir/lib$name.la"
5445 if test -f "$dir/lib$name.$libext"; then
5447 found_a="$dir/lib$name.$libext"
5448 if test -f "$dir/lib$name.la"; then
5449 found_la="$dir/lib$name.la"
5455 if test "X$found_dir" != "X"; then
5460 if test "X$found_dir" != "X"; then
5461 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5462 if test "X$found_so" != "X"; then
5463 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
5464 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5467 for x in $ltrpathdirs; do
5468 if test "X$x" = "X$found_dir"; then
5473 if test -z "$haveit"; then
5474 ltrpathdirs="$ltrpathdirs $found_dir"
5476 if test "$hardcode_direct" = yes; then
5477 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5479 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
5480 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5482 for x in $rpathdirs; do
5483 if test "X$x" = "X$found_dir"; then
5488 if test -z "$haveit"; then
5489 rpathdirs="$rpathdirs $found_dir"
5493 for x in $LDFLAGS $LIBICONV; do
5495 acl_save_prefix="$prefix"
5496 prefix="$acl_final_prefix"
5497 acl_save_exec_prefix="$exec_prefix"
5498 exec_prefix="$acl_final_exec_prefix"
5500 exec_prefix="$acl_save_exec_prefix"
5501 prefix="$acl_save_prefix"
5503 if test "X$x" = "X-L$found_dir"; then
5508 if test -z "$haveit"; then
5509 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5511 if test "$hardcode_minus_L" != no; then
5512 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5514 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5520 if test "X$found_a" != "X"; then
5521 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5523 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5526 additional_includedir=
5527 case "$found_dir" in
5529 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
5530 additional_includedir="$basedir/include"
5533 if test "X$additional_includedir" != "X"; then
5534 if test "X$additional_includedir" != "X/usr/include"; then
5536 if test "X$additional_includedir" = "X/usr/local/include"; then
5537 if test -n "$GCC"; then
5539 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5543 if test -z "$haveit"; then
5544 for x in $CPPFLAGS $INCICONV; do
5546 acl_save_prefix="$prefix"
5547 prefix="$acl_final_prefix"
5548 acl_save_exec_prefix="$exec_prefix"
5549 exec_prefix="$acl_final_exec_prefix"
5551 exec_prefix="$acl_save_exec_prefix"
5552 prefix="$acl_save_prefix"
5554 if test "X$x" = "X-I$additional_includedir"; then
5559 if test -z "$haveit"; then
5560 if test -d "$additional_includedir"; then
5561 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5567 if test -n "$found_la"; then
5568 save_libdir="$libdir"
5570 */* | *\\*) . "$found_la" ;;
5571 *) . "./$found_la" ;;
5573 libdir="$save_libdir"
5574 for dep in $dependency_libs; do
5577 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5578 if test "X$additional_libdir" != "X/usr/lib"; then
5580 if test "X$additional_libdir" = "X/usr/local/lib"; then
5581 if test -n "$GCC"; then
5583 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5587 if test -z "$haveit"; then
5589 for x in $LDFLAGS $LIBICONV; do
5591 acl_save_prefix="$prefix"
5592 prefix="$acl_final_prefix"
5593 acl_save_exec_prefix="$exec_prefix"
5594 exec_prefix="$acl_final_exec_prefix"
5596 exec_prefix="$acl_save_exec_prefix"
5597 prefix="$acl_save_prefix"
5599 if test "X$x" = "X-L$additional_libdir"; then
5604 if test -z "$haveit"; then
5605 if test -d "$additional_libdir"; then
5606 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5610 for x in $LDFLAGS $LTLIBICONV; do
5612 acl_save_prefix="$prefix"
5613 prefix="$acl_final_prefix"
5614 acl_save_exec_prefix="$exec_prefix"
5615 exec_prefix="$acl_final_exec_prefix"
5617 exec_prefix="$acl_save_exec_prefix"
5618 prefix="$acl_save_prefix"
5620 if test "X$x" = "X-L$additional_libdir"; then
5625 if test -z "$haveit"; then
5626 if test -d "$additional_libdir"; then
5627 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5634 dir=`echo "X$dep" | sed -e 's/^X-R//'`
5635 if test "$enable_rpath" != no; then
5637 for x in $rpathdirs; do
5638 if test "X$x" = "X$dir"; then
5643 if test -z "$haveit"; then
5644 rpathdirs="$rpathdirs $dir"
5647 for x in $ltrpathdirs; do
5648 if test "X$x" = "X$dir"; then
5653 if test -z "$haveit"; then
5654 ltrpathdirs="$ltrpathdirs $dir"
5659 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5662 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5665 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5666 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5672 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5673 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5679 if test "X$rpathdirs" != "X"; then
5680 if test -n "$hardcode_libdir_separator"; then
5682 for found_dir in $rpathdirs; do
5683 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
5685 acl_save_libdir="$libdir"
5687 eval flag=\"$hardcode_libdir_flag_spec\"
5688 libdir="$acl_save_libdir"
5689 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5691 for found_dir in $rpathdirs; do
5692 acl_save_libdir="$libdir"
5694 eval flag=\"$hardcode_libdir_flag_spec\"
5695 libdir="$acl_save_libdir"
5696 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5700 if test "X$ltrpathdirs" != "X"; then
5701 for found_dir in $ltrpathdirs; do
5702 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5723 echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
5724 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6
5725 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
5726 echo $ECHO_N "(cached) $ECHO_C" >&6
5728 gt_save_CPPFLAGS="$CPPFLAGS"
5729 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
5730 gt_save_LIBS="$LIBS"
5731 LIBS="$LIBS -framework CoreFoundation"
5732 cat >conftest.$ac_ext <<_ACEOF
5735 cat confdefs.h >>conftest.$ac_ext
5736 cat >>conftest.$ac_ext <<_ACEOF
5737 /* end confdefs.h. */
5738 #include <CFPreferences.h>
5742 CFPreferencesCopyAppValue(NULL, NULL)
5747 rm -f conftest.$ac_objext conftest$ac_exeext
5748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5749 (eval $ac_link) 2>conftest.er1
5751 grep -v '^ *+' conftest.er1 >conftest.err
5753 cat conftest.err >&5
5754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5755 (exit $ac_status); } &&
5756 { ac_try='test -z "$ac_c_werror_flag"
5757 || test ! -s conftest.err'
5758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5762 (exit $ac_status); }; } &&
5763 { ac_try='test -s conftest$ac_exeext'
5764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768 (exit $ac_status); }; }; then
5769 gt_cv_func_CFPreferencesCopyAppValue=yes
5771 echo "$as_me: failed program was:" >&5
5772 sed 's/^/| /' conftest.$ac_ext >&5
5774 gt_cv_func_CFPreferencesCopyAppValue=no
5776 rm -f conftest.err conftest.$ac_objext \
5777 conftest$ac_exeext conftest.$ac_ext
5778 CPPFLAGS="$gt_save_CPPFLAGS"
5779 LIBS="$gt_save_LIBS"
5781 echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
5782 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6
5783 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
5785 cat >>confdefs.h <<\_ACEOF
5786 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
5790 echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
5791 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6
5792 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
5793 echo $ECHO_N "(cached) $ECHO_C" >&6
5795 gt_save_CPPFLAGS="$CPPFLAGS"
5796 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
5797 gt_save_LIBS="$LIBS"
5798 LIBS="$LIBS -framework CoreFoundation"
5799 cat >conftest.$ac_ext <<_ACEOF
5802 cat confdefs.h >>conftest.$ac_ext
5803 cat >>conftest.$ac_ext <<_ACEOF
5804 /* end confdefs.h. */
5805 #include <CFLocale.h>
5809 CFLocaleCopyCurrent();
5814 rm -f conftest.$ac_objext conftest$ac_exeext
5815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5816 (eval $ac_link) 2>conftest.er1
5818 grep -v '^ *+' conftest.er1 >conftest.err
5820 cat conftest.err >&5
5821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5822 (exit $ac_status); } &&
5823 { ac_try='test -z "$ac_c_werror_flag"
5824 || test ! -s conftest.err'
5825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829 (exit $ac_status); }; } &&
5830 { ac_try='test -s conftest$ac_exeext'
5831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835 (exit $ac_status); }; }; then
5836 gt_cv_func_CFLocaleCopyCurrent=yes
5838 echo "$as_me: failed program was:" >&5
5839 sed 's/^/| /' conftest.$ac_ext >&5
5841 gt_cv_func_CFLocaleCopyCurrent=no
5843 rm -f conftest.err conftest.$ac_objext \
5844 conftest$ac_exeext conftest.$ac_ext
5845 CPPFLAGS="$gt_save_CPPFLAGS"
5846 LIBS="$gt_save_LIBS"
5848 echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
5849 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6
5850 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5852 cat >>confdefs.h <<\_ACEOF
5853 #define HAVE_CFLOCALECOPYCURRENT 1
5858 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5859 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
5865 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5866 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5867 # Check whether --enable-nls or --disable-nls was given.
5868 if test "${enable_nls+set}" = set; then
5869 enableval="$enable_nls"
5874 echo "$as_me:$LINENO: result: $USE_NLS" >&5
5875 echo "${ECHO_T}$USE_NLS" >&6
5884 if test "$USE_NLS" = "yes"; then
5885 gt_use_preinstalled_gnugettext=no
5892 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
5893 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
5894 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
5895 echo $ECHO_N "(cached) $ECHO_C" >&6
5897 cat >conftest.$ac_ext <<_ACEOF
5900 cat confdefs.h >>conftest.$ac_ext
5901 cat >>conftest.$ac_ext <<_ACEOF
5902 /* end confdefs.h. */
5903 #include <libintl.h>
5904 extern int _nl_msg_cat_cntr;
5905 extern int *_nl_domain_bindings;
5909 bindtextdomain ("", "");
5910 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
5915 rm -f conftest.$ac_objext conftest$ac_exeext
5916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5917 (eval $ac_link) 2>conftest.er1
5919 grep -v '^ *+' conftest.er1 >conftest.err
5921 cat conftest.err >&5
5922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5923 (exit $ac_status); } &&
5924 { ac_try='test -z "$ac_c_werror_flag"
5925 || test ! -s conftest.err'
5926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930 (exit $ac_status); }; } &&
5931 { ac_try='test -s conftest$ac_exeext'
5932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); }; }; then
5937 gt_cv_func_gnugettext1_libc=yes
5939 echo "$as_me: failed program was:" >&5
5940 sed 's/^/| /' conftest.$ac_ext >&5
5942 gt_cv_func_gnugettext1_libc=no
5944 rm -f conftest.err conftest.$ac_objext \
5945 conftest$ac_exeext conftest.$ac_ext
5947 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
5948 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
5950 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
5956 am_save_CPPFLAGS="$CPPFLAGS"
5958 for element in $INCICONV; do
5960 for x in $CPPFLAGS; do
5962 acl_save_prefix="$prefix"
5963 prefix="$acl_final_prefix"
5964 acl_save_exec_prefix="$exec_prefix"
5965 exec_prefix="$acl_final_exec_prefix"
5967 exec_prefix="$acl_save_exec_prefix"
5968 prefix="$acl_save_prefix"
5970 if test "X$x" = "X$element"; then
5975 if test -z "$haveit"; then
5976 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5981 echo "$as_me:$LINENO: checking for iconv" >&5
5982 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
5983 if test "${am_cv_func_iconv+set}" = set; then
5984 echo $ECHO_N "(cached) $ECHO_C" >&6
5987 am_cv_func_iconv="no, consider installing GNU libiconv"
5989 cat >conftest.$ac_ext <<_ACEOF
5992 cat confdefs.h >>conftest.$ac_ext
5993 cat >>conftest.$ac_ext <<_ACEOF
5994 /* end confdefs.h. */
6000 iconv_t cd = iconv_open("","");
6001 iconv(cd,NULL,NULL,NULL,NULL);
6007 rm -f conftest.$ac_objext conftest$ac_exeext
6008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6009 (eval $ac_link) 2>conftest.er1
6011 grep -v '^ *+' conftest.er1 >conftest.err
6013 cat conftest.err >&5
6014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015 (exit $ac_status); } &&
6016 { ac_try='test -z "$ac_c_werror_flag"
6017 || test ! -s conftest.err'
6018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022 (exit $ac_status); }; } &&
6023 { ac_try='test -s conftest$ac_exeext'
6024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028 (exit $ac_status); }; }; then
6029 am_cv_func_iconv=yes
6031 echo "$as_me: failed program was:" >&5
6032 sed 's/^/| /' conftest.$ac_ext >&5
6035 rm -f conftest.err conftest.$ac_objext \
6036 conftest$ac_exeext conftest.$ac_ext
6037 if test "$am_cv_func_iconv" != yes; then
6038 am_save_LIBS="$LIBS"
6039 LIBS="$LIBS $LIBICONV"
6040 cat >conftest.$ac_ext <<_ACEOF
6043 cat confdefs.h >>conftest.$ac_ext
6044 cat >>conftest.$ac_ext <<_ACEOF
6045 /* end confdefs.h. */
6051 iconv_t cd = iconv_open("","");
6052 iconv(cd,NULL,NULL,NULL,NULL);
6058 rm -f conftest.$ac_objext conftest$ac_exeext
6059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6060 (eval $ac_link) 2>conftest.er1
6062 grep -v '^ *+' conftest.er1 >conftest.err
6064 cat conftest.err >&5
6065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066 (exit $ac_status); } &&
6067 { ac_try='test -z "$ac_c_werror_flag"
6068 || test ! -s conftest.err'
6069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6073 (exit $ac_status); }; } &&
6074 { ac_try='test -s conftest$ac_exeext'
6075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6079 (exit $ac_status); }; }; then
6081 am_cv_func_iconv=yes
6083 echo "$as_me: failed program was:" >&5
6084 sed 's/^/| /' conftest.$ac_ext >&5
6087 rm -f conftest.err conftest.$ac_objext \
6088 conftest$ac_exeext conftest.$ac_ext
6089 LIBS="$am_save_LIBS"
6093 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
6094 echo "${ECHO_T}$am_cv_func_iconv" >&6
6095 if test "$am_cv_func_iconv" = yes; then
6097 cat >>confdefs.h <<\_ACEOF
6098 #define HAVE_ICONV 1
6102 if test "$am_cv_lib_iconv" = yes; then
6103 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
6104 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
6105 echo "$as_me:$LINENO: result: $LIBICONV" >&5
6106 echo "${ECHO_T}$LIBICONV" >&6
6108 CPPFLAGS="$am_save_CPPFLAGS"
6120 acl_save_prefix="$prefix"
6121 prefix="$acl_final_prefix"
6122 acl_save_exec_prefix="$exec_prefix"
6123 exec_prefix="$acl_final_exec_prefix"
6125 eval additional_includedir=\"$includedir\"
6126 eval additional_libdir=\"$libdir\"
6128 exec_prefix="$acl_save_exec_prefix"
6129 prefix="$acl_save_prefix"
6132 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
6133 if test "${with_libintl_prefix+set}" = set; then
6134 withval="$with_libintl_prefix"
6136 if test "X$withval" = "Xno"; then
6139 if test "X$withval" = "X"; then
6141 acl_save_prefix="$prefix"
6142 prefix="$acl_final_prefix"
6143 acl_save_exec_prefix="$exec_prefix"
6144 exec_prefix="$acl_final_exec_prefix"
6146 eval additional_includedir=\"$includedir\"
6147 eval additional_libdir=\"$libdir\"
6149 exec_prefix="$acl_save_exec_prefix"
6150 prefix="$acl_save_prefix"
6153 additional_includedir="$withval/include"
6154 additional_libdir="$withval/lib"
6164 names_already_handled=
6165 names_next_round='intl '
6166 while test -n "$names_next_round"; do
6167 names_this_round="$names_next_round"
6169 for name in $names_this_round; do
6171 for n in $names_already_handled; do
6172 if test "$n" = "$name"; then
6177 if test -z "$already_handled"; then
6178 names_already_handled="$names_already_handled $name"
6179 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6180 eval value=\"\$HAVE_LIB$uppername\"
6181 if test -n "$value"; then
6182 if test "$value" = yes; then
6183 eval value=\"\$LIB$uppername\"
6184 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
6185 eval value=\"\$LTLIB$uppername\"
6186 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
6195 if test $use_additional = yes; then
6196 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6197 found_dir="$additional_libdir"
6198 found_so="$additional_libdir/lib$name.$shlibext"
6199 if test -f "$additional_libdir/lib$name.la"; then
6200 found_la="$additional_libdir/lib$name.la"
6203 if test -f "$additional_libdir/lib$name.$libext"; then
6204 found_dir="$additional_libdir"
6205 found_a="$additional_libdir/lib$name.$libext"
6206 if test -f "$additional_libdir/lib$name.la"; then
6207 found_la="$additional_libdir/lib$name.la"
6212 if test "X$found_dir" = "X"; then
6213 for x in $LDFLAGS $LTLIBINTL; do
6215 acl_save_prefix="$prefix"
6216 prefix="$acl_final_prefix"
6217 acl_save_exec_prefix="$exec_prefix"
6218 exec_prefix="$acl_final_exec_prefix"
6220 exec_prefix="$acl_save_exec_prefix"
6221 prefix="$acl_save_prefix"
6225 dir=`echo "X$x" | sed -e 's/^X-L//'`
6226 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6228 found_so="$dir/lib$name.$shlibext"
6229 if test -f "$dir/lib$name.la"; then
6230 found_la="$dir/lib$name.la"
6233 if test -f "$dir/lib$name.$libext"; then
6235 found_a="$dir/lib$name.$libext"
6236 if test -f "$dir/lib$name.la"; then
6237 found_la="$dir/lib$name.la"
6243 if test "X$found_dir" != "X"; then
6248 if test "X$found_dir" != "X"; then
6249 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6250 if test "X$found_so" != "X"; then
6251 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6252 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6255 for x in $ltrpathdirs; do
6256 if test "X$x" = "X$found_dir"; then
6261 if test -z "$haveit"; then
6262 ltrpathdirs="$ltrpathdirs $found_dir"
6264 if test "$hardcode_direct" = yes; then
6265 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6267 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6268 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6270 for x in $rpathdirs; do
6271 if test "X$x" = "X$found_dir"; then
6276 if test -z "$haveit"; then
6277 rpathdirs="$rpathdirs $found_dir"
6281 for x in $LDFLAGS $LIBINTL; do
6283 acl_save_prefix="$prefix"
6284 prefix="$acl_final_prefix"
6285 acl_save_exec_prefix="$exec_prefix"
6286 exec_prefix="$acl_final_exec_prefix"
6288 exec_prefix="$acl_save_exec_prefix"
6289 prefix="$acl_save_prefix"
6291 if test "X$x" = "X-L$found_dir"; then
6296 if test -z "$haveit"; then
6297 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6299 if test "$hardcode_minus_L" != no; then
6300 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6302 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6308 if test "X$found_a" != "X"; then
6309 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
6311 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
6314 additional_includedir=
6315 case "$found_dir" in
6317 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6318 additional_includedir="$basedir/include"
6321 if test "X$additional_includedir" != "X"; then
6322 if test "X$additional_includedir" != "X/usr/include"; then
6324 if test "X$additional_includedir" = "X/usr/local/include"; then
6325 if test -n "$GCC"; then
6327 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6331 if test -z "$haveit"; then
6332 for x in $CPPFLAGS $INCINTL; do
6334 acl_save_prefix="$prefix"
6335 prefix="$acl_final_prefix"
6336 acl_save_exec_prefix="$exec_prefix"
6337 exec_prefix="$acl_final_exec_prefix"
6339 exec_prefix="$acl_save_exec_prefix"
6340 prefix="$acl_save_prefix"
6342 if test "X$x" = "X-I$additional_includedir"; then
6347 if test -z "$haveit"; then
6348 if test -d "$additional_includedir"; then
6349 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
6355 if test -n "$found_la"; then
6356 save_libdir="$libdir"
6358 */* | *\\*) . "$found_la" ;;
6359 *) . "./$found_la" ;;
6361 libdir="$save_libdir"
6362 for dep in $dependency_libs; do
6365 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6366 if test "X$additional_libdir" != "X/usr/lib"; then
6368 if test "X$additional_libdir" = "X/usr/local/lib"; then
6369 if test -n "$GCC"; then
6371 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6375 if test -z "$haveit"; then
6377 for x in $LDFLAGS $LIBINTL; do
6379 acl_save_prefix="$prefix"
6380 prefix="$acl_final_prefix"
6381 acl_save_exec_prefix="$exec_prefix"
6382 exec_prefix="$acl_final_exec_prefix"
6384 exec_prefix="$acl_save_exec_prefix"
6385 prefix="$acl_save_prefix"
6387 if test "X$x" = "X-L$additional_libdir"; then
6392 if test -z "$haveit"; then
6393 if test -d "$additional_libdir"; then
6394 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
6398 for x in $LDFLAGS $LTLIBINTL; do
6400 acl_save_prefix="$prefix"
6401 prefix="$acl_final_prefix"
6402 acl_save_exec_prefix="$exec_prefix"
6403 exec_prefix="$acl_final_exec_prefix"
6405 exec_prefix="$acl_save_exec_prefix"
6406 prefix="$acl_save_prefix"
6408 if test "X$x" = "X-L$additional_libdir"; then
6413 if test -z "$haveit"; then
6414 if test -d "$additional_libdir"; then
6415 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
6422 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6423 if test "$enable_rpath" != no; then
6425 for x in $rpathdirs; do
6426 if test "X$x" = "X$dir"; then
6431 if test -z "$haveit"; then
6432 rpathdirs="$rpathdirs $dir"
6435 for x in $ltrpathdirs; do
6436 if test "X$x" = "X$dir"; then
6441 if test -z "$haveit"; then
6442 ltrpathdirs="$ltrpathdirs $dir"
6447 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6450 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6453 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
6454 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
6460 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6461 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
6467 if test "X$rpathdirs" != "X"; then
6468 if test -n "$hardcode_libdir_separator"; then
6470 for found_dir in $rpathdirs; do
6471 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6473 acl_save_libdir="$libdir"
6475 eval flag=\"$hardcode_libdir_flag_spec\"
6476 libdir="$acl_save_libdir"
6477 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6479 for found_dir in $rpathdirs; do
6480 acl_save_libdir="$libdir"
6482 eval flag=\"$hardcode_libdir_flag_spec\"
6483 libdir="$acl_save_libdir"
6484 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6488 if test "X$ltrpathdirs" != "X"; then
6489 for found_dir in $ltrpathdirs; do
6490 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
6494 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
6495 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
6496 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
6497 echo $ECHO_N "(cached) $ECHO_C" >&6
6499 gt_save_CPPFLAGS="$CPPFLAGS"
6500 CPPFLAGS="$CPPFLAGS $INCINTL"
6501 gt_save_LIBS="$LIBS"
6502 LIBS="$LIBS $LIBINTL"
6503 cat >conftest.$ac_ext <<_ACEOF
6506 cat confdefs.h >>conftest.$ac_ext
6507 cat >>conftest.$ac_ext <<_ACEOF
6508 /* end confdefs.h. */
6509 #include <libintl.h>
6510 extern int _nl_msg_cat_cntr;
6515 const char *_nl_expand_alias (const char *);
6519 bindtextdomain ("", "");
6520 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6525 rm -f conftest.$ac_objext conftest$ac_exeext
6526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6527 (eval $ac_link) 2>conftest.er1
6529 grep -v '^ *+' conftest.er1 >conftest.err
6531 cat conftest.err >&5
6532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6533 (exit $ac_status); } &&
6534 { ac_try='test -z "$ac_c_werror_flag"
6535 || test ! -s conftest.err'
6536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6540 (exit $ac_status); }; } &&
6541 { ac_try='test -s conftest$ac_exeext'
6542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6546 (exit $ac_status); }; }; then
6547 gt_cv_func_gnugettext1_libintl=yes
6549 echo "$as_me: failed program was:" >&5
6550 sed 's/^/| /' conftest.$ac_ext >&5
6552 gt_cv_func_gnugettext1_libintl=no
6554 rm -f conftest.err conftest.$ac_objext \
6555 conftest$ac_exeext conftest.$ac_ext
6556 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
6557 LIBS="$LIBS $LIBICONV"
6558 cat >conftest.$ac_ext <<_ACEOF
6561 cat confdefs.h >>conftest.$ac_ext
6562 cat >>conftest.$ac_ext <<_ACEOF
6563 /* end confdefs.h. */
6564 #include <libintl.h>
6565 extern int _nl_msg_cat_cntr;
6570 const char *_nl_expand_alias (const char *);
6574 bindtextdomain ("", "");
6575 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6580 rm -f conftest.$ac_objext conftest$ac_exeext
6581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6582 (eval $ac_link) 2>conftest.er1
6584 grep -v '^ *+' conftest.er1 >conftest.err
6586 cat conftest.err >&5
6587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588 (exit $ac_status); } &&
6589 { ac_try='test -z "$ac_c_werror_flag"
6590 || test ! -s conftest.err'
6591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595 (exit $ac_status); }; } &&
6596 { ac_try='test -s conftest$ac_exeext'
6597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601 (exit $ac_status); }; }; then
6602 LIBINTL="$LIBINTL $LIBICONV"
6603 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
6604 gt_cv_func_gnugettext1_libintl=yes
6607 echo "$as_me: failed program was:" >&5
6608 sed 's/^/| /' conftest.$ac_ext >&5
6611 rm -f conftest.err conftest.$ac_objext \
6612 conftest$ac_exeext conftest.$ac_ext
6614 CPPFLAGS="$gt_save_CPPFLAGS"
6615 LIBS="$gt_save_LIBS"
6617 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
6618 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
6621 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
6622 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
6623 && test "$PACKAGE" != gettext-runtime \
6624 && test "$PACKAGE" != gettext-tools; }; then
6625 gt_use_preinstalled_gnugettext=yes
6634 if test -n "$INTL_MACOSX_LIBS"; then
6635 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6636 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6637 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
6638 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
6642 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6643 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6645 cat >>confdefs.h <<\_ACEOF
6646 #define ENABLE_NLS 1
6654 echo "$as_me:$LINENO: checking whether to use NLS" >&5
6655 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
6656 echo "$as_me:$LINENO: result: $USE_NLS" >&5
6657 echo "${ECHO_T}$USE_NLS" >&6
6658 if test "$USE_NLS" = "yes"; then
6659 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
6660 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
6661 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6662 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6663 gt_source="external libintl"
6668 gt_source="included intl directory"
6670 echo "$as_me:$LINENO: result: $gt_source" >&5
6671 echo "${ECHO_T}$gt_source" >&6
6674 if test "$USE_NLS" = "yes"; then
6676 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6677 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6678 echo "$as_me:$LINENO: checking how to link with libintl" >&5
6679 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
6680 echo "$as_me:$LINENO: result: $LIBINTL" >&5
6681 echo "${ECHO_T}$LIBINTL" >&6
6683 for element in $INCINTL; do
6685 for x in $CPPFLAGS; do
6687 acl_save_prefix="$prefix"
6688 prefix="$acl_final_prefix"
6689 acl_save_exec_prefix="$exec_prefix"
6690 exec_prefix="$acl_final_exec_prefix"
6692 exec_prefix="$acl_save_exec_prefix"
6693 prefix="$acl_save_prefix"
6695 if test "X$x" = "X$element"; then
6700 if test -z "$haveit"; then
6701 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6708 cat >>confdefs.h <<\_ACEOF
6709 #define HAVE_GETTEXT 1
6713 cat >>confdefs.h <<\_ACEOF
6714 #define HAVE_DCGETTEXT 1
6731 if test x${prefix} = xNONE ; then
6732 if test `eval echo ${datadir}` = NONE/share ; then
6737 # ------------------------------------------------------------------
6738 # If the user has not set --prefix, we set our default to nothing.
6739 # In this case, if the user has not set --sysconfdir, we set it
6740 # to the package default of /etc/bacula. If either --prefix or
6741 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
6742 # ------------------------------------------------------------------
6743 if test x${prefix} = xNONE ; then
6744 if test `eval echo ${sysconfdir}` = NONE/etc ; then
6745 sysconfdir=/etc/bacula
6749 sysconfdir=`eval echo ${sysconfdir}`
6750 datadir=`eval echo ${datadir}`
6751 localedir=`eval echo ${datadir}/locale`
6752 cat >>confdefs.h <<_ACEOF
6753 #define LOCALEDIR "$localedir"
6756 cat >>confdefs.h <<_ACEOF
6757 #define SYSCONFDIR "$sysconfdir"
6761 # -------------------------------------------------------------------------
6762 # If the user has not set --exec-prefix, we default to ${prefix}
6763 # -------------------------------------------------------------------------
6764 if test x${exec_prefix} = xNONE ; then
6765 exec_prefix=${prefix}
6768 # ------------------------------------------------------------------
6769 # If the user has not set --sbindir, we set our default as /sbin
6770 # ------------------------------------------------------------------
6771 if test x$sbindir = x'${exec_prefix}/sbin' ; then
6772 sbindir=${exec_prefix}/sbin
6774 sbindir=`eval echo ${sbindir}`
6776 # ------------------------------------------------------------------
6777 # If the user has not set --archivedir, we set our default as /tmp
6778 # ------------------------------------------------------------------
6779 if test x$archivedir = x'/tmp' ; then
6782 archivedir=`eval echo ${archivedir}`
6784 # -------------------------------------------------------------------------
6785 # If the user has not set --mandir, we default to /usr/share/man
6786 # -------------------------------------------------------------------------
6787 if test x$mandir = x'${prefix}/man' ; then
6788 mandir=/usr/share/man
6792 for ac_prog in msgfmt
6794 # Extract the first word of "$ac_prog", so it can be a program name with args.
6795 set dummy $ac_prog; ac_word=$2
6796 echo "$as_me:$LINENO: checking for $ac_word" >&5
6797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6798 if test "${ac_cv_path_MSGFMT+set}" = set; then
6799 echo $ECHO_N "(cached) $ECHO_C" >&6
6803 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6810 test -z "$as_dir" && as_dir=.
6811 for ac_exec_ext in '' $ac_executable_extensions; do
6812 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6813 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
6814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6823 MSGFMT=$ac_cv_path_MSGFMT
6825 if test -n "$MSGFMT"; then
6826 echo "$as_me:$LINENO: result: $MSGFMT" >&5
6827 echo "${ECHO_T}$MSGFMT" >&6
6829 echo "$as_me:$LINENO: result: no" >&5
6830 echo "${ECHO_T}no" >&6
6833 test -n "$MSGFMT" && break
6835 test -n "$MSGFMT" || MSGFMT="no"
6837 if test "$MSGFMT" = "no"
6839 echo 'msgfmt program not found, disabling NLS !'
6841 USE_INCLUDED_LIBINTL=no
6844 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
6845 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6
6846 if test "${ac_cv_gnu_library_2+set}" = set; then
6847 echo $ECHO_N "(cached) $ECHO_C" >&6
6849 cat >conftest.$ac_ext <<_ACEOF
6852 cat confdefs.h >>conftest.$ac_ext
6853 cat >>conftest.$ac_ext <<_ACEOF
6854 /* end confdefs.h. */
6856 #include <features.h>
6857 #ifdef __GNU_LIBRARY__
6858 #if (__GLIBC__ >= 2)
6864 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6865 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
6866 ac_cv_gnu_library_2=yes
6868 ac_cv_gnu_library_2=no
6875 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
6876 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6
6878 GLIBC2="$ac_cv_gnu_library_2"
6882 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
6883 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
6884 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
6885 echo $ECHO_N "(cached) $ECHO_C" >&6
6887 ac_check_lib_save_LIBS=$LIBS
6888 LIBS="-lcposix $LIBS"
6889 cat >conftest.$ac_ext <<_ACEOF
6892 cat confdefs.h >>conftest.$ac_ext
6893 cat >>conftest.$ac_ext <<_ACEOF
6894 /* end confdefs.h. */
6896 /* Override any gcc2 internal prototype to avoid an error. */
6900 /* We use char because int might match the return type of a gcc2
6901 builtin and then its argument prototype would still apply. */
6911 rm -f conftest.$ac_objext conftest$ac_exeext
6912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6913 (eval $ac_link) 2>conftest.er1
6915 grep -v '^ *+' conftest.er1 >conftest.err
6917 cat conftest.err >&5
6918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6919 (exit $ac_status); } &&
6920 { ac_try='test -z "$ac_c_werror_flag"
6921 || test ! -s conftest.err'
6922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6926 (exit $ac_status); }; } &&
6927 { ac_try='test -s conftest$ac_exeext'
6928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6932 (exit $ac_status); }; }; then
6933 ac_cv_lib_cposix_strerror=yes
6935 echo "$as_me: failed program was:" >&5
6936 sed 's/^/| /' conftest.$ac_ext >&5
6938 ac_cv_lib_cposix_strerror=no
6940 rm -f conftest.err conftest.$ac_objext \
6941 conftest$ac_exeext conftest.$ac_ext
6942 LIBS=$ac_check_lib_save_LIBS
6944 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
6945 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
6946 if test $ac_cv_lib_cposix_strerror = yes; then
6947 LIBS="$LIBS -lcposix"
6952 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6953 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6954 if test "${ac_cv_header_stdc+set}" = set; then
6955 echo $ECHO_N "(cached) $ECHO_C" >&6
6957 cat >conftest.$ac_ext <<_ACEOF
6960 cat confdefs.h >>conftest.$ac_ext
6961 cat >>conftest.$ac_ext <<_ACEOF
6962 /* end confdefs.h. */
6976 rm -f conftest.$ac_objext
6977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6978 (eval $ac_compile) 2>conftest.er1
6980 grep -v '^ *+' conftest.er1 >conftest.err
6982 cat conftest.err >&5
6983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6984 (exit $ac_status); } &&
6985 { ac_try='test -z "$ac_c_werror_flag"
6986 || test ! -s conftest.err'
6987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6991 (exit $ac_status); }; } &&
6992 { ac_try='test -s conftest.$ac_objext'
6993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6997 (exit $ac_status); }; }; then
6998 ac_cv_header_stdc=yes
7000 echo "$as_me: failed program was:" >&5
7001 sed 's/^/| /' conftest.$ac_ext >&5
7003 ac_cv_header_stdc=no
7005 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7007 if test $ac_cv_header_stdc = yes; then
7008 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7009 cat >conftest.$ac_ext <<_ACEOF
7012 cat confdefs.h >>conftest.$ac_ext
7013 cat >>conftest.$ac_ext <<_ACEOF
7014 /* end confdefs.h. */
7018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7019 $EGREP "memchr" >/dev/null 2>&1; then
7022 ac_cv_header_stdc=no
7028 if test $ac_cv_header_stdc = yes; then
7029 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7030 cat >conftest.$ac_ext <<_ACEOF
7033 cat confdefs.h >>conftest.$ac_ext
7034 cat >>conftest.$ac_ext <<_ACEOF
7035 /* end confdefs.h. */
7039 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7040 $EGREP "free" >/dev/null 2>&1; then
7043 ac_cv_header_stdc=no
7049 if test $ac_cv_header_stdc = yes; then
7050 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7051 if test "$cross_compiling" = yes; then
7054 cat >conftest.$ac_ext <<_ACEOF
7057 cat confdefs.h >>conftest.$ac_ext
7058 cat >>conftest.$ac_ext <<_ACEOF
7059 /* end confdefs.h. */
7061 #if ((' ' & 0x0FF) == 0x020)
7062 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7063 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7065 # define ISLOWER(c) \
7066 (('a' <= (c) && (c) <= 'i') \
7067 || ('j' <= (c) && (c) <= 'r') \
7068 || ('s' <= (c) && (c) <= 'z'))
7069 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7072 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7077 for (i = 0; i < 256; i++)
7078 if (XOR (islower (i), ISLOWER (i))
7079 || toupper (i) != TOUPPER (i))
7084 rm -f conftest$ac_exeext
7085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7086 (eval $ac_link) 2>&5
7088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7089 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7094 (exit $ac_status); }; }; then
7097 echo "$as_me: program exited with status $ac_status" >&5
7098 echo "$as_me: failed program was:" >&5
7099 sed 's/^/| /' conftest.$ac_ext >&5
7102 ac_cv_header_stdc=no
7104 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7108 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7109 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7110 if test $ac_cv_header_stdc = yes; then
7112 cat >>confdefs.h <<\_ACEOF
7113 #define STDC_HEADERS 1
7118 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7119 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7120 if test "${ac_cv_c_const+set}" = set; then
7121 echo $ECHO_N "(cached) $ECHO_C" >&6
7123 cat >conftest.$ac_ext <<_ACEOF
7126 cat confdefs.h >>conftest.$ac_ext
7127 cat >>conftest.$ac_ext <<_ACEOF
7128 /* end confdefs.h. */
7133 /* FIXME: Include the comments suggested by Paul. */
7135 /* Ultrix mips cc rejects this. */
7136 typedef int charset[2];
7138 /* SunOS 4.1.1 cc rejects this. */
7139 char const *const *ccp;
7141 /* NEC SVR4.0.2 mips cc rejects this. */
7142 struct point {int x, y;};
7143 static struct point const zero = {0,0};
7144 /* AIX XL C 1.02.0.0 rejects this.
7145 It does not let you subtract one const X* pointer from another in
7146 an arm of an if-expression whose if-part is not a constant
7148 const char *g = "string";
7149 ccp = &g + (g ? g-g : 0);
7150 /* HPUX 7.0 cc rejects these. */
7153 ccp = (char const *const *) p;
7154 { /* SCO 3.2v4 cc rejects this. */
7156 char const *s = 0 ? (char *) 0 : (char const *) 0;
7160 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7162 const int *foo = &x[0];
7165 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7166 typedef const int *iptr;
7170 { /* AIX XL C 1.02.0.0 rejects this saying
7171 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7172 struct s { int j; const int *ap[3]; };
7173 struct s *b; b->j = 5;
7175 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7184 rm -f conftest.$ac_objext
7185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7186 (eval $ac_compile) 2>conftest.er1
7188 grep -v '^ *+' conftest.er1 >conftest.err
7190 cat conftest.err >&5
7191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7192 (exit $ac_status); } &&
7193 { ac_try='test -z "$ac_c_werror_flag"
7194 || test ! -s conftest.err'
7195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7199 (exit $ac_status); }; } &&
7200 { ac_try='test -s conftest.$ac_objext'
7201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7205 (exit $ac_status); }; }; then
7208 echo "$as_me: failed program was:" >&5
7209 sed 's/^/| /' conftest.$ac_ext >&5
7213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7215 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7216 echo "${ECHO_T}$ac_cv_c_const" >&6
7217 if test $ac_cv_c_const = no; then
7219 cat >>confdefs.h <<\_ACEOF
7226 echo "$as_me:$LINENO: checking for signed" >&5
7227 echo $ECHO_N "checking for signed... $ECHO_C" >&6
7228 if test "${bh_cv_c_signed+set}" = set; then
7229 echo $ECHO_N "(cached) $ECHO_C" >&6
7231 cat >conftest.$ac_ext <<_ACEOF
7234 cat confdefs.h >>conftest.$ac_ext
7235 cat >>conftest.$ac_ext <<_ACEOF
7236 /* end confdefs.h. */
7246 rm -f conftest.$ac_objext
7247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7248 (eval $ac_compile) 2>conftest.er1
7250 grep -v '^ *+' conftest.er1 >conftest.err
7252 cat conftest.err >&5
7253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7254 (exit $ac_status); } &&
7255 { ac_try='test -z "$ac_c_werror_flag"
7256 || test ! -s conftest.err'
7257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7261 (exit $ac_status); }; } &&
7262 { ac_try='test -s conftest.$ac_objext'
7263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7267 (exit $ac_status); }; }; then
7270 echo "$as_me: failed program was:" >&5
7271 sed 's/^/| /' conftest.$ac_ext >&5
7275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7277 echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
7278 echo "${ECHO_T}$bh_cv_c_signed" >&6
7279 if test $bh_cv_c_signed = no; then
7281 cat >>confdefs.h <<\_ACEOF
7287 echo "$as_me:$LINENO: checking for inline" >&5
7288 echo $ECHO_N "checking for inline... $ECHO_C" >&6
7289 if test "${ac_cv_c_inline+set}" = set; then
7290 echo $ECHO_N "(cached) $ECHO_C" >&6
7293 for ac_kw in inline __inline__ __inline; do
7294 cat >conftest.$ac_ext <<_ACEOF
7297 cat confdefs.h >>conftest.$ac_ext
7298 cat >>conftest.$ac_ext <<_ACEOF
7299 /* end confdefs.h. */
7302 static $ac_kw foo_t static_foo () {return 0; }
7303 $ac_kw foo_t foo () {return 0; }
7307 rm -f conftest.$ac_objext
7308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7309 (eval $ac_compile) 2>conftest.er1
7311 grep -v '^ *+' conftest.er1 >conftest.err
7313 cat conftest.err >&5
7314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7315 (exit $ac_status); } &&
7316 { ac_try='test -z "$ac_c_werror_flag"
7317 || test ! -s conftest.err'
7318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7322 (exit $ac_status); }; } &&
7323 { ac_try='test -s conftest.$ac_objext'
7324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7328 (exit $ac_status); }; }; then
7329 ac_cv_c_inline=$ac_kw; break
7331 echo "$as_me: failed program was:" >&5
7332 sed 's/^/| /' conftest.$ac_ext >&5
7335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7339 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7340 echo "${ECHO_T}$ac_cv_c_inline" >&6
7343 case $ac_cv_c_inline in
7346 case $ac_cv_c_inline in
7348 *) ac_val=$ac_cv_c_inline;;
7350 cat >>confdefs.h <<_ACEOF
7352 #define inline $ac_val
7358 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7368 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7369 inttypes.h stdint.h unistd.h
7371 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7372 echo "$as_me:$LINENO: checking for $ac_header" >&5
7373 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7374 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7375 echo $ECHO_N "(cached) $ECHO_C" >&6
7377 cat >conftest.$ac_ext <<_ACEOF
7380 cat confdefs.h >>conftest.$ac_ext
7381 cat >>conftest.$ac_ext <<_ACEOF
7382 /* end confdefs.h. */
7383 $ac_includes_default
7385 #include <$ac_header>
7387 rm -f conftest.$ac_objext
7388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7389 (eval $ac_compile) 2>conftest.er1
7391 grep -v '^ *+' conftest.er1 >conftest.err
7393 cat conftest.err >&5
7394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7395 (exit $ac_status); } &&
7396 { ac_try='test -z "$ac_c_werror_flag"
7397 || test ! -s conftest.err'
7398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7402 (exit $ac_status); }; } &&
7403 { ac_try='test -s conftest.$ac_objext'
7404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7408 (exit $ac_status); }; }; then
7409 eval "$as_ac_Header=yes"
7411 echo "$as_me: failed program was:" >&5
7412 sed 's/^/| /' conftest.$ac_ext >&5
7414 eval "$as_ac_Header=no"
7416 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7418 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7419 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7420 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7421 cat >>confdefs.h <<_ACEOF
7422 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7430 echo "$as_me:$LINENO: checking for off_t" >&5
7431 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
7432 if test "${ac_cv_type_off_t+set}" = set; then
7433 echo $ECHO_N "(cached) $ECHO_C" >&6
7435 cat >conftest.$ac_ext <<_ACEOF
7438 cat confdefs.h >>conftest.$ac_ext
7439 cat >>conftest.$ac_ext <<_ACEOF
7440 /* end confdefs.h. */
7441 $ac_includes_default
7453 rm -f conftest.$ac_objext
7454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7455 (eval $ac_compile) 2>conftest.er1
7457 grep -v '^ *+' conftest.er1 >conftest.err
7459 cat conftest.err >&5
7460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7461 (exit $ac_status); } &&
7462 { ac_try='test -z "$ac_c_werror_flag"
7463 || test ! -s conftest.err'
7464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7468 (exit $ac_status); }; } &&
7469 { ac_try='test -s conftest.$ac_objext'
7470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7474 (exit $ac_status); }; }; then
7475 ac_cv_type_off_t=yes
7477 echo "$as_me: failed program was:" >&5
7478 sed 's/^/| /' conftest.$ac_ext >&5
7482 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7484 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7485 echo "${ECHO_T}$ac_cv_type_off_t" >&6
7486 if test $ac_cv_type_off_t = yes; then
7490 cat >>confdefs.h <<_ACEOF
7496 echo "$as_me:$LINENO: checking for size_t" >&5
7497 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
7498 if test "${ac_cv_type_size_t+set}" = set; then
7499 echo $ECHO_N "(cached) $ECHO_C" >&6
7501 cat >conftest.$ac_ext <<_ACEOF
7504 cat confdefs.h >>conftest.$ac_ext
7505 cat >>conftest.$ac_ext <<_ACEOF
7506 /* end confdefs.h. */
7507 $ac_includes_default
7513 if (sizeof (size_t))
7519 rm -f conftest.$ac_objext
7520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7521 (eval $ac_compile) 2>conftest.er1
7523 grep -v '^ *+' conftest.er1 >conftest.err
7525 cat conftest.err >&5
7526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7527 (exit $ac_status); } &&
7528 { ac_try='test -z "$ac_c_werror_flag"
7529 || test ! -s conftest.err'
7530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7534 (exit $ac_status); }; } &&
7535 { ac_try='test -s conftest.$ac_objext'
7536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7540 (exit $ac_status); }; }; then
7541 ac_cv_type_size_t=yes
7543 echo "$as_me: failed program was:" >&5
7544 sed 's/^/| /' conftest.$ac_ext >&5
7546 ac_cv_type_size_t=no
7548 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7550 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7551 echo "${ECHO_T}$ac_cv_type_size_t" >&6
7552 if test $ac_cv_type_size_t = yes; then
7556 cat >>confdefs.h <<_ACEOF
7557 #define size_t unsigned
7563 echo "$as_me:$LINENO: checking for long long" >&5
7564 echo $ECHO_N "checking for long long... $ECHO_C" >&6
7565 if test "${ac_cv_type_long_long+set}" = set; then
7566 echo $ECHO_N "(cached) $ECHO_C" >&6
7568 cat >conftest.$ac_ext <<_ACEOF
7571 cat confdefs.h >>conftest.$ac_ext
7572 cat >>conftest.$ac_ext <<_ACEOF
7573 /* end confdefs.h. */
7574 long long ll = 1LL; int i = 63;
7578 long long llmax = (long long) -1;
7579 return ll << i | ll >> i | llmax / ll | llmax % ll;
7584 rm -f conftest.$ac_objext conftest$ac_exeext
7585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7586 (eval $ac_link) 2>conftest.er1
7588 grep -v '^ *+' conftest.er1 >conftest.err
7590 cat conftest.err >&5
7591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7592 (exit $ac_status); } &&
7593 { ac_try='test -z "$ac_c_werror_flag"
7594 || test ! -s conftest.err'
7595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7599 (exit $ac_status); }; } &&
7600 { ac_try='test -s conftest$ac_exeext'
7601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7605 (exit $ac_status); }; }; then
7606 ac_cv_type_long_long=yes
7608 echo "$as_me: failed program was:" >&5
7609 sed 's/^/| /' conftest.$ac_ext >&5
7611 ac_cv_type_long_long=no
7613 rm -f conftest.err conftest.$ac_objext \
7614 conftest$ac_exeext conftest.$ac_ext
7616 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
7617 echo "${ECHO_T}$ac_cv_type_long_long" >&6
7618 if test $ac_cv_type_long_long = yes; then
7620 cat >>confdefs.h <<\_ACEOF
7621 #define HAVE_LONG_LONG 1
7627 echo "$as_me:$LINENO: checking for long double" >&5
7628 echo $ECHO_N "checking for long double... $ECHO_C" >&6
7629 if test "${gt_cv_c_long_double+set}" = set; then
7630 echo $ECHO_N "(cached) $ECHO_C" >&6
7632 if test "$GCC" = yes; then
7633 gt_cv_c_long_double=yes
7635 cat >conftest.$ac_ext <<_ACEOF
7638 cat confdefs.h >>conftest.$ac_ext
7639 cat >>conftest.$ac_ext <<_ACEOF
7640 /* end confdefs.h. */
7642 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
7643 long double foo = 0.0;
7644 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
7645 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
7655 rm -f conftest.$ac_objext
7656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7657 (eval $ac_compile) 2>conftest.er1
7659 grep -v '^ *+' conftest.er1 >conftest.err
7661 cat conftest.err >&5
7662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7663 (exit $ac_status); } &&
7664 { ac_try='test -z "$ac_c_werror_flag"
7665 || test ! -s conftest.err'
7666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7670 (exit $ac_status); }; } &&
7671 { ac_try='test -s conftest.$ac_objext'
7672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7676 (exit $ac_status); }; }; then
7677 gt_cv_c_long_double=yes
7679 echo "$as_me: failed program was:" >&5
7680 sed 's/^/| /' conftest.$ac_ext >&5
7682 gt_cv_c_long_double=no
7684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7687 echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
7688 echo "${ECHO_T}$gt_cv_c_long_double" >&6
7689 if test $gt_cv_c_long_double = yes; then
7691 cat >>confdefs.h <<\_ACEOF
7692 #define HAVE_LONG_DOUBLE 1
7698 echo "$as_me:$LINENO: checking for wchar_t" >&5
7699 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
7700 if test "${gt_cv_c_wchar_t+set}" = set; then
7701 echo $ECHO_N "(cached) $ECHO_C" >&6
7703 cat >conftest.$ac_ext <<_ACEOF
7706 cat confdefs.h >>conftest.$ac_ext
7707 cat >>conftest.$ac_ext <<_ACEOF
7708 /* end confdefs.h. */
7710 wchar_t foo = (wchar_t)'\0';
7719 rm -f conftest.$ac_objext
7720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7721 (eval $ac_compile) 2>conftest.er1
7723 grep -v '^ *+' conftest.er1 >conftest.err
7725 cat conftest.err >&5
7726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7727 (exit $ac_status); } &&
7728 { ac_try='test -z "$ac_c_werror_flag"
7729 || test ! -s conftest.err'
7730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7734 (exit $ac_status); }; } &&
7735 { ac_try='test -s conftest.$ac_objext'
7736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7740 (exit $ac_status); }; }; then
7743 echo "$as_me: failed program was:" >&5
7744 sed 's/^/| /' conftest.$ac_ext >&5
7748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7750 echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
7751 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6
7752 if test $gt_cv_c_wchar_t = yes; then
7754 cat >>confdefs.h <<\_ACEOF
7755 #define HAVE_WCHAR_T 1
7761 echo "$as_me:$LINENO: checking for wint_t" >&5
7762 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
7763 if test "${gt_cv_c_wint_t+set}" = set; then
7764 echo $ECHO_N "(cached) $ECHO_C" >&6
7766 cat >conftest.$ac_ext <<_ACEOF
7769 cat confdefs.h >>conftest.$ac_ext
7770 cat >>conftest.$ac_ext <<_ACEOF
7771 /* end confdefs.h. */
7773 wint_t foo = (wchar_t)'\0';
7782 rm -f conftest.$ac_objext
7783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7784 (eval $ac_compile) 2>conftest.er1
7786 grep -v '^ *+' conftest.er1 >conftest.err
7788 cat conftest.err >&5
7789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7790 (exit $ac_status); } &&
7791 { ac_try='test -z "$ac_c_werror_flag"
7792 || test ! -s conftest.err'
7793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7797 (exit $ac_status); }; } &&
7798 { ac_try='test -s conftest.$ac_objext'
7799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7803 (exit $ac_status); }; }; then
7806 echo "$as_me: failed program was:" >&5
7807 sed 's/^/| /' conftest.$ac_ext >&5
7811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7813 echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
7814 echo "${ECHO_T}$gt_cv_c_wint_t" >&6
7815 if test $gt_cv_c_wint_t = yes; then
7817 cat >>confdefs.h <<\_ACEOF
7818 #define HAVE_WINT_T 1
7824 echo "$as_me:$LINENO: checking for inttypes.h" >&5
7825 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
7826 if test "${gl_cv_header_inttypes_h+set}" = set; then
7827 echo $ECHO_N "(cached) $ECHO_C" >&6
7829 cat >conftest.$ac_ext <<_ACEOF
7832 cat confdefs.h >>conftest.$ac_ext
7833 cat >>conftest.$ac_ext <<_ACEOF
7834 /* end confdefs.h. */
7835 #include <sys/types.h>
7836 #include <inttypes.h>
7840 uintmax_t i = (uintmax_t) -1;
7845 rm -f conftest.$ac_objext
7846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7847 (eval $ac_compile) 2>conftest.er1
7849 grep -v '^ *+' conftest.er1 >conftest.err
7851 cat conftest.err >&5
7852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7853 (exit $ac_status); } &&
7854 { ac_try='test -z "$ac_c_werror_flag"
7855 || test ! -s conftest.err'
7856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7860 (exit $ac_status); }; } &&
7861 { ac_try='test -s conftest.$ac_objext'
7862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7866 (exit $ac_status); }; }; then
7867 gl_cv_header_inttypes_h=yes
7869 echo "$as_me: failed program was:" >&5
7870 sed 's/^/| /' conftest.$ac_ext >&5
7872 gl_cv_header_inttypes_h=no
7874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7876 echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
7877 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6
7878 if test $gl_cv_header_inttypes_h = yes; then
7880 cat >>confdefs.h <<_ACEOF
7881 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
7887 echo "$as_me:$LINENO: checking for stdint.h" >&5
7888 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
7889 if test "${gl_cv_header_stdint_h+set}" = set; then
7890 echo $ECHO_N "(cached) $ECHO_C" >&6
7892 cat >conftest.$ac_ext <<_ACEOF
7895 cat confdefs.h >>conftest.$ac_ext
7896 cat >>conftest.$ac_ext <<_ACEOF
7897 /* end confdefs.h. */
7898 #include <sys/types.h>
7903 uintmax_t i = (uintmax_t) -1;
7908 rm -f conftest.$ac_objext
7909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7910 (eval $ac_compile) 2>conftest.er1
7912 grep -v '^ *+' conftest.er1 >conftest.err
7914 cat conftest.err >&5
7915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7916 (exit $ac_status); } &&
7917 { ac_try='test -z "$ac_c_werror_flag"
7918 || test ! -s conftest.err'
7919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7923 (exit $ac_status); }; } &&
7924 { ac_try='test -s conftest.$ac_objext'
7925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7929 (exit $ac_status); }; }; then
7930 gl_cv_header_stdint_h=yes
7932 echo "$as_me: failed program was:" >&5
7933 sed 's/^/| /' conftest.$ac_ext >&5
7935 gl_cv_header_stdint_h=no
7937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7939 echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
7940 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6
7941 if test $gl_cv_header_stdint_h = yes; then
7943 cat >>confdefs.h <<_ACEOF
7944 #define HAVE_STDINT_H_WITH_UINTMAX 1
7952 echo "$as_me:$LINENO: checking for intmax_t" >&5
7953 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
7954 if test "${gt_cv_c_intmax_t+set}" = set; then
7955 echo $ECHO_N "(cached) $ECHO_C" >&6
7957 cat >conftest.$ac_ext <<_ACEOF
7960 cat confdefs.h >>conftest.$ac_ext
7961 cat >>conftest.$ac_ext <<_ACEOF
7962 /* end confdefs.h. */
7966 #if HAVE_STDINT_H_WITH_UINTMAX
7969 #if HAVE_INTTYPES_H_WITH_UINTMAX
7970 #include <inttypes.h>
7981 rm -f conftest.$ac_objext
7982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7983 (eval $ac_compile) 2>conftest.er1
7985 grep -v '^ *+' conftest.er1 >conftest.err
7987 cat conftest.err >&5
7988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7989 (exit $ac_status); } &&
7990 { ac_try='test -z "$ac_c_werror_flag"
7991 || test ! -s conftest.err'
7992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7996 (exit $ac_status); }; } &&
7997 { ac_try='test -s conftest.$ac_objext'
7998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8002 (exit $ac_status); }; }; then
8003 gt_cv_c_intmax_t=yes
8005 echo "$as_me: failed program was:" >&5
8006 sed 's/^/| /' conftest.$ac_ext >&5
8010 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8012 echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
8013 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6
8014 if test $gt_cv_c_intmax_t = yes; then
8016 cat >>confdefs.h <<\_ACEOF
8017 #define HAVE_INTMAX_T 1
8024 echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
8025 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6
8026 if test "${gt_cv_func_printf_posix+set}" = set; then
8027 echo $ECHO_N "(cached) $ECHO_C" >&6
8030 if test "$cross_compiling" = yes; then
8032 cat >conftest.$ac_ext <<_ACEOF
8035 cat confdefs.h >>conftest.$ac_ext
8036 cat >>conftest.$ac_ext <<_ACEOF
8037 /* end confdefs.h. */
8039 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
8044 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8045 $EGREP "notposix" >/dev/null 2>&1; then
8046 gt_cv_func_printf_posix="guessing no"
8048 gt_cv_func_printf_posix="guessing yes"
8054 cat >conftest.$ac_ext <<_ACEOF
8057 cat confdefs.h >>conftest.$ac_ext
8058 cat >>conftest.$ac_ext <<_ACEOF
8059 /* end confdefs.h. */
8063 /* The string "%2$d %1$d", with dollar characters protected from the shell's
8064 dollar expansion (possibly an autoconf bug). */
8065 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
8066 static char buf[100];
8069 sprintf (buf, format, 33, 55);
8070 return (strcmp (buf, "55 33") != 0);
8073 rm -f conftest$ac_exeext
8074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8075 (eval $ac_link) 2>&5
8077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8078 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8083 (exit $ac_status); }; }; then
8084 gt_cv_func_printf_posix=yes
8086 echo "$as_me: program exited with status $ac_status" >&5
8087 echo "$as_me: failed program was:" >&5
8088 sed 's/^/| /' conftest.$ac_ext >&5
8091 gt_cv_func_printf_posix=no
8093 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8097 echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
8098 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6
8099 case $gt_cv_func_printf_posix in
8102 cat >>confdefs.h <<\_ACEOF
8103 #define HAVE_POSIX_PRINTF 1
8109 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8110 # for constant arguments. Useless!
8111 echo "$as_me:$LINENO: checking for working alloca.h" >&5
8112 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
8113 if test "${ac_cv_working_alloca_h+set}" = set; then
8114 echo $ECHO_N "(cached) $ECHO_C" >&6
8116 cat >conftest.$ac_ext <<_ACEOF
8119 cat confdefs.h >>conftest.$ac_ext
8120 cat >>conftest.$ac_ext <<_ACEOF
8121 /* end confdefs.h. */
8126 char *p = (char *) alloca (2 * sizeof (int));
8131 rm -f conftest.$ac_objext conftest$ac_exeext
8132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8133 (eval $ac_link) 2>conftest.er1
8135 grep -v '^ *+' conftest.er1 >conftest.err
8137 cat conftest.err >&5
8138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139 (exit $ac_status); } &&
8140 { ac_try='test -z "$ac_c_werror_flag"
8141 || test ! -s conftest.err'
8142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8146 (exit $ac_status); }; } &&
8147 { ac_try='test -s conftest$ac_exeext'
8148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8152 (exit $ac_status); }; }; then
8153 ac_cv_working_alloca_h=yes
8155 echo "$as_me: failed program was:" >&5
8156 sed 's/^/| /' conftest.$ac_ext >&5
8158 ac_cv_working_alloca_h=no
8160 rm -f conftest.err conftest.$ac_objext \
8161 conftest$ac_exeext conftest.$ac_ext
8163 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8164 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
8165 if test $ac_cv_working_alloca_h = yes; then
8167 cat >>confdefs.h <<\_ACEOF
8168 #define HAVE_ALLOCA_H 1
8173 echo "$as_me:$LINENO: checking for alloca" >&5
8174 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
8175 if test "${ac_cv_func_alloca_works+set}" = set; then
8176 echo $ECHO_N "(cached) $ECHO_C" >&6
8178 cat >conftest.$ac_ext <<_ACEOF
8181 cat confdefs.h >>conftest.$ac_ext
8182 cat >>conftest.$ac_ext <<_ACEOF
8183 /* end confdefs.h. */
8185 # define alloca __builtin_alloca
8188 # include <malloc.h>
8189 # define alloca _alloca
8192 # include <alloca.h>
8197 # ifndef alloca /* predefined by HP cc +Olibcalls */
8208 char *p = (char *) alloca (1);
8213 rm -f conftest.$ac_objext conftest$ac_exeext
8214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8215 (eval $ac_link) 2>conftest.er1
8217 grep -v '^ *+' conftest.er1 >conftest.err
8219 cat conftest.err >&5
8220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8221 (exit $ac_status); } &&
8222 { ac_try='test -z "$ac_c_werror_flag"
8223 || test ! -s conftest.err'
8224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8228 (exit $ac_status); }; } &&
8229 { ac_try='test -s conftest$ac_exeext'
8230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8234 (exit $ac_status); }; }; then
8235 ac_cv_func_alloca_works=yes
8237 echo "$as_me: failed program was:" >&5
8238 sed 's/^/| /' conftest.$ac_ext >&5
8240 ac_cv_func_alloca_works=no
8242 rm -f conftest.err conftest.$ac_objext \
8243 conftest$ac_exeext conftest.$ac_ext
8245 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8246 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
8248 if test $ac_cv_func_alloca_works = yes; then
8250 cat >>confdefs.h <<\_ACEOF
8251 #define HAVE_ALLOCA 1
8255 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8256 # that cause trouble. Some versions do not even contain alloca or
8257 # contain a buggy version. If you still want to use their alloca,
8258 # use ar to extract alloca.o from them instead of compiling alloca.c.
8260 ALLOCA=alloca.$ac_objext
8262 cat >>confdefs.h <<\_ACEOF
8267 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8268 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
8269 if test "${ac_cv_os_cray+set}" = set; then
8270 echo $ECHO_N "(cached) $ECHO_C" >&6
8272 cat >conftest.$ac_ext <<_ACEOF
8275 cat confdefs.h >>conftest.$ac_ext
8276 cat >>conftest.$ac_ext <<_ACEOF
8277 /* end confdefs.h. */
8278 #if defined(CRAY) && ! defined(CRAY2)
8285 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8286 $EGREP "webecray" >/dev/null 2>&1; then
8294 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8295 echo "${ECHO_T}$ac_cv_os_cray" >&6
8296 if test $ac_cv_os_cray = yes; then
8297 for ac_func in _getb67 GETB67 getb67; do
8298 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8299 echo "$as_me:$LINENO: checking for $ac_func" >&5
8300 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8301 if eval "test \"\${$as_ac_var+set}\" = set"; then
8302 echo $ECHO_N "(cached) $ECHO_C" >&6
8304 cat >conftest.$ac_ext <<_ACEOF
8307 cat confdefs.h >>conftest.$ac_ext
8308 cat >>conftest.$ac_ext <<_ACEOF
8309 /* end confdefs.h. */
8310 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8311 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8312 #define $ac_func innocuous_$ac_func
8314 /* System header to define __stub macros and hopefully few prototypes,
8315 which can conflict with char $ac_func (); below.
8316 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8317 <limits.h> exists even on freestanding compilers. */
8320 # include <limits.h>
8322 # include <assert.h>
8327 /* Override any gcc2 internal prototype to avoid an error. */
8332 /* We use char because int might match the return type of a gcc2
8333 builtin and then its argument prototype would still apply. */
8335 /* The GNU C library defines this for functions which it implements
8336 to always fail with ENOSYS. Some functions are actually named
8337 something starting with __ and the normal name is an alias. */
8338 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8341 char (*f) () = $ac_func;
8350 return f != $ac_func;
8355 rm -f conftest.$ac_objext conftest$ac_exeext
8356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8357 (eval $ac_link) 2>conftest.er1
8359 grep -v '^ *+' conftest.er1 >conftest.err
8361 cat conftest.err >&5
8362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363 (exit $ac_status); } &&
8364 { ac_try='test -z "$ac_c_werror_flag"
8365 || test ! -s conftest.err'
8366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370 (exit $ac_status); }; } &&
8371 { ac_try='test -s conftest$ac_exeext'
8372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376 (exit $ac_status); }; }; then
8377 eval "$as_ac_var=yes"
8379 echo "$as_me: failed program was:" >&5
8380 sed 's/^/| /' conftest.$ac_ext >&5
8382 eval "$as_ac_var=no"
8384 rm -f conftest.err conftest.$ac_objext \
8385 conftest$ac_exeext conftest.$ac_ext
8387 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8388 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8389 if test `eval echo '${'$as_ac_var'}'` = yes; then
8391 cat >>confdefs.h <<_ACEOF
8392 #define CRAY_STACKSEG_END $ac_func
8401 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8402 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
8403 if test "${ac_cv_c_stack_direction+set}" = set; then
8404 echo $ECHO_N "(cached) $ECHO_C" >&6
8406 if test "$cross_compiling" = yes; then
8407 ac_cv_c_stack_direction=0
8409 cat >conftest.$ac_ext <<_ACEOF
8412 cat confdefs.h >>conftest.$ac_ext
8413 cat >>conftest.$ac_ext <<_ACEOF
8414 /* end confdefs.h. */
8416 find_stack_direction ()
8418 static char *addr = 0;
8423 return find_stack_direction ();
8426 return (&dummy > addr) ? 1 : -1;
8432 exit (find_stack_direction () < 0);
8435 rm -f conftest$ac_exeext
8436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8437 (eval $ac_link) 2>&5
8439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8440 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8445 (exit $ac_status); }; }; then
8446 ac_cv_c_stack_direction=1
8448 echo "$as_me: program exited with status $ac_status" >&5
8449 echo "$as_me: failed program was:" >&5
8450 sed 's/^/| /' conftest.$ac_ext >&5
8453 ac_cv_c_stack_direction=-1
8455 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8458 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8459 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
8461 cat >>confdefs.h <<_ACEOF
8462 #define STACK_DIRECTION $ac_cv_c_stack_direction
8470 for ac_header in stdlib.h unistd.h
8472 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8473 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8474 echo "$as_me:$LINENO: checking for $ac_header" >&5
8475 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8476 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8477 echo $ECHO_N "(cached) $ECHO_C" >&6
8479 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8480 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8482 # Is the header compilable?
8483 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8484 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8485 cat >conftest.$ac_ext <<_ACEOF
8488 cat confdefs.h >>conftest.$ac_ext
8489 cat >>conftest.$ac_ext <<_ACEOF
8490 /* end confdefs.h. */
8491 $ac_includes_default
8492 #include <$ac_header>
8494 rm -f conftest.$ac_objext
8495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8496 (eval $ac_compile) 2>conftest.er1
8498 grep -v '^ *+' conftest.er1 >conftest.err
8500 cat conftest.err >&5
8501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502 (exit $ac_status); } &&
8503 { ac_try='test -z "$ac_c_werror_flag"
8504 || test ! -s conftest.err'
8505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509 (exit $ac_status); }; } &&
8510 { ac_try='test -s conftest.$ac_objext'
8511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8515 (exit $ac_status); }; }; then
8516 ac_header_compiler=yes
8518 echo "$as_me: failed program was:" >&5
8519 sed 's/^/| /' conftest.$ac_ext >&5
8521 ac_header_compiler=no
8523 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8524 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8525 echo "${ECHO_T}$ac_header_compiler" >&6
8527 # Is the header present?
8528 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8529 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8530 cat >conftest.$ac_ext <<_ACEOF
8533 cat confdefs.h >>conftest.$ac_ext
8534 cat >>conftest.$ac_ext <<_ACEOF
8535 /* end confdefs.h. */
8536 #include <$ac_header>
8538 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8539 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8541 grep -v '^ *+' conftest.er1 >conftest.err
8543 cat conftest.err >&5
8544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545 (exit $ac_status); } >/dev/null; then
8546 if test -s conftest.err; then
8547 ac_cpp_err=$ac_c_preproc_warn_flag
8548 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8555 if test -z "$ac_cpp_err"; then
8556 ac_header_preproc=yes
8558 echo "$as_me: failed program was:" >&5
8559 sed 's/^/| /' conftest.$ac_ext >&5
8561 ac_header_preproc=no
8563 rm -f conftest.err conftest.$ac_ext
8564 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8565 echo "${ECHO_T}$ac_header_preproc" >&6
8567 # So? What about this header?
8568 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8570 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8571 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8572 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8573 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8574 ac_header_preproc=yes
8577 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8578 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8579 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8580 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8581 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8582 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8583 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8584 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8585 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8586 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8587 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8588 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8591 ## ------------------------------------------ ##
8592 ## Report this to the AC_PACKAGE_NAME lists. ##
8593 ## ------------------------------------------ ##
8596 sed "s/^/$as_me: WARNING: /" >&2
8599 echo "$as_me:$LINENO: checking for $ac_header" >&5
8600 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8601 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8602 echo $ECHO_N "(cached) $ECHO_C" >&6
8604 eval "$as_ac_Header=\$ac_header_preproc"
8606 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8607 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8610 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8611 cat >>confdefs.h <<_ACEOF
8612 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8620 for ac_func in getpagesize
8622 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8623 echo "$as_me:$LINENO: checking for $ac_func" >&5
8624 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8625 if eval "test \"\${$as_ac_var+set}\" = set"; then
8626 echo $ECHO_N "(cached) $ECHO_C" >&6
8628 cat >conftest.$ac_ext <<_ACEOF
8631 cat confdefs.h >>conftest.$ac_ext
8632 cat >>conftest.$ac_ext <<_ACEOF
8633 /* end confdefs.h. */
8634 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8635 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8636 #define $ac_func innocuous_$ac_func
8638 /* System header to define __stub macros and hopefully few prototypes,
8639 which can conflict with char $ac_func (); below.
8640 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8641 <limits.h> exists even on freestanding compilers. */
8644 # include <limits.h>
8646 # include <assert.h>
8651 /* Override any gcc2 internal prototype to avoid an error. */
8656 /* We use char because int might match the return type of a gcc2
8657 builtin and then its argument prototype would still apply. */
8659 /* The GNU C library defines this for functions which it implements
8660 to always fail with ENOSYS. Some functions are actually named
8661 something starting with __ and the normal name is an alias. */
8662 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8665 char (*f) () = $ac_func;
8674 return f != $ac_func;
8679 rm -f conftest.$ac_objext conftest$ac_exeext
8680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8681 (eval $ac_link) 2>conftest.er1
8683 grep -v '^ *+' conftest.er1 >conftest.err
8685 cat conftest.err >&5
8686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8687 (exit $ac_status); } &&
8688 { ac_try='test -z "$ac_c_werror_flag"
8689 || test ! -s conftest.err'
8690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8694 (exit $ac_status); }; } &&
8695 { ac_try='test -s conftest$ac_exeext'
8696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8700 (exit $ac_status); }; }; then
8701 eval "$as_ac_var=yes"
8703 echo "$as_me: failed program was:" >&5
8704 sed 's/^/| /' conftest.$ac_ext >&5
8706 eval "$as_ac_var=no"
8708 rm -f conftest.err conftest.$ac_objext \
8709 conftest$ac_exeext conftest.$ac_ext
8711 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8712 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8713 if test `eval echo '${'$as_ac_var'}'` = yes; then
8714 cat >>confdefs.h <<_ACEOF
8715 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8721 echo "$as_me:$LINENO: checking for working mmap" >&5
8722 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8723 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8724 echo $ECHO_N "(cached) $ECHO_C" >&6
8726 if test "$cross_compiling" = yes; then
8727 ac_cv_func_mmap_fixed_mapped=no
8729 cat >conftest.$ac_ext <<_ACEOF
8732 cat confdefs.h >>conftest.$ac_ext
8733 cat >>conftest.$ac_ext <<_ACEOF
8734 /* end confdefs.h. */
8735 $ac_includes_default
8736 /* malloc might have been renamed as rpl_malloc. */
8739 /* Thanks to Mike Haertel and Jim Avera for this test.
8740 Here is a matrix of mmap possibilities:
8741 mmap private not fixed
8742 mmap private fixed at somewhere currently unmapped
8743 mmap private fixed at somewhere already mapped
8744 mmap shared not fixed
8745 mmap shared fixed at somewhere currently unmapped
8746 mmap shared fixed at somewhere already mapped
8747 For private mappings, we should verify that changes cannot be read()
8748 back from the file, nor mmap's back from the file at a different
8749 address. (There have been systems where private was not correctly
8750 implemented like the infamous i386 svr4.0, and systems where the
8751 VM page cache was not coherent with the file system buffer cache
8752 like early versions of FreeBSD and possibly contemporary NetBSD.)
8753 For shared mappings, we should conversely verify that changes get
8754 propagated back to all the places they're supposed to be.
8756 Grep wants private fixed already mapped.
8757 The main things grep needs to know about mmap are:
8758 * does it exist and is it safe to write into the mmap'd area
8759 * how to use it (BSD variants) */
8762 #include <sys/mman.h>
8764 #if !STDC_HEADERS && !HAVE_STDLIB_H
8768 /* This mess was copied from the GNU getpagesize.h. */
8769 #if !HAVE_GETPAGESIZE
8770 /* Assume that all systems that can run configure have sys/param.h. */
8771 # if !HAVE_SYS_PARAM_H
8772 # define HAVE_SYS_PARAM_H 1
8775 # ifdef _SC_PAGESIZE
8776 # define getpagesize() sysconf(_SC_PAGESIZE)
8777 # else /* no _SC_PAGESIZE */
8778 # if HAVE_SYS_PARAM_H
8779 # include <sys/param.h>
8780 # ifdef EXEC_PAGESIZE
8781 # define getpagesize() EXEC_PAGESIZE
8782 # else /* no EXEC_PAGESIZE */
8784 # define getpagesize() NBPG * CLSIZE
8787 # endif /* no CLSIZE */
8788 # else /* no NBPG */
8790 # define getpagesize() NBPC
8791 # else /* no NBPC */
8793 # define getpagesize() PAGESIZE
8794 # endif /* PAGESIZE */
8795 # endif /* no NBPC */
8796 # endif /* no NBPG */
8797 # endif /* no EXEC_PAGESIZE */
8798 # else /* no HAVE_SYS_PARAM_H */
8799 # define getpagesize() 8192 /* punt totally */
8800 # endif /* no HAVE_SYS_PARAM_H */
8801 # endif /* no _SC_PAGESIZE */
8803 #endif /* no HAVE_GETPAGESIZE */
8808 char *data, *data2, *data3;
8812 pagesize = getpagesize ();
8814 /* First, make a file with some known garbage in it. */
8815 data = (char *) malloc (pagesize);
8818 for (i = 0; i < pagesize; ++i)
8819 *(data + i) = rand ();
8821 fd = creat ("conftest.mmap", 0600);
8824 if (write (fd, data, pagesize) != pagesize)
8828 /* Next, try to mmap the file at a fixed address which already has
8829 something else allocated at it. If we can, also make sure that
8830 we see the same garbage. */
8831 fd = open ("conftest.mmap", O_RDWR);
8834 data2 = (char *) malloc (2 * pagesize);
8837 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
8838 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8839 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8841 for (i = 0; i < pagesize; ++i)
8842 if (*(data + i) != *(data2 + i))
8845 /* Finally, make sure that changes to the mapped area do not
8846 percolate back to the file as seen by read(). (This is a bug on
8847 some variants of i386 svr4.0.) */
8848 for (i = 0; i < pagesize; ++i)
8849 *(data2 + i) = *(data2 + i) + 1;
8850 data3 = (char *) malloc (pagesize);
8853 if (read (fd, data3, pagesize) != pagesize)
8855 for (i = 0; i < pagesize; ++i)
8856 if (*(data + i) != *(data3 + i))
8862 rm -f conftest$ac_exeext
8863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8864 (eval $ac_link) 2>&5
8866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8867 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8872 (exit $ac_status); }; }; then
8873 ac_cv_func_mmap_fixed_mapped=yes
8875 echo "$as_me: program exited with status $ac_status" >&5
8876 echo "$as_me: failed program was:" >&5
8877 sed 's/^/| /' conftest.$ac_ext >&5
8880 ac_cv_func_mmap_fixed_mapped=no
8882 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8885 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8886 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
8887 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8889 cat >>confdefs.h <<\_ACEOF
8897 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
8898 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
8899 if test "${ac_cv_gnu_library_2_1+set}" = set; then
8900 echo $ECHO_N "(cached) $ECHO_C" >&6
8902 cat >conftest.$ac_ext <<_ACEOF
8905 cat confdefs.h >>conftest.$ac_ext
8906 cat >>conftest.$ac_ext <<_ACEOF
8907 /* end confdefs.h. */
8909 #include <features.h>
8910 #ifdef __GNU_LIBRARY__
8911 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
8917 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8918 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
8919 ac_cv_gnu_library_2_1=yes
8921 ac_cv_gnu_library_2_1=no
8928 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
8929 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
8931 GLIBC21="$ac_cv_gnu_library_2_1"
8936 echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
8937 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
8938 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
8939 echo $ECHO_N "(cached) $ECHO_C" >&6
8942 if test "$cross_compiling" = yes; then
8944 # Guess based on the CPU.
8946 alpha* | i3456786 | m68k | s390*)
8947 gt_cv_int_divbyzero_sigfpe="guessing yes";;
8949 gt_cv_int_divbyzero_sigfpe="guessing no";;
8953 cat >conftest.$ac_ext <<_ACEOF
8956 cat confdefs.h >>conftest.$ac_ext
8957 cat >>conftest.$ac_ext <<_ACEOF
8958 /* end confdefs.h. */
8965 sigfpe_handler (int sig)
8967 sigfpe_handler (sig) int sig;
8970 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
8971 exit (sig != SIGFPE);
8981 signal (SIGFPE, sigfpe_handler);
8982 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
8983 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
8984 signal (SIGTRAP, sigfpe_handler);
8986 /* Linux/SPARC yields signal SIGILL. */
8987 #if defined (__sparc__) && defined (__linux__)
8988 signal (SIGILL, sigfpe_handler);
8997 rm -f conftest$ac_exeext
8998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8999 (eval $ac_link) 2>&5
9001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9002 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9007 (exit $ac_status); }; }; then
9008 gt_cv_int_divbyzero_sigfpe=yes
9010 echo "$as_me: program exited with status $ac_status" >&5
9011 echo "$as_me: failed program was:" >&5
9012 sed 's/^/| /' conftest.$ac_ext >&5
9015 gt_cv_int_divbyzero_sigfpe=no
9017 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9021 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
9022 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
9023 case "$gt_cv_int_divbyzero_sigfpe" in
9028 cat >>confdefs.h <<_ACEOF
9029 #define INTDIV0_RAISES_SIGFPE $value
9034 echo "$as_me:$LINENO: checking for unsigned long long" >&5
9035 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
9036 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
9037 echo $ECHO_N "(cached) $ECHO_C" >&6
9039 cat >conftest.$ac_ext <<_ACEOF
9042 cat confdefs.h >>conftest.$ac_ext
9043 cat >>conftest.$ac_ext <<_ACEOF
9044 /* end confdefs.h. */
9045 unsigned long long ull = 1ULL; int i = 63;
9049 unsigned long long ullmax = (unsigned long long) -1;
9050 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
9055 rm -f conftest.$ac_objext conftest$ac_exeext
9056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9057 (eval $ac_link) 2>conftest.er1
9059 grep -v '^ *+' conftest.er1 >conftest.err
9061 cat conftest.err >&5
9062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9063 (exit $ac_status); } &&
9064 { ac_try='test -z "$ac_c_werror_flag"
9065 || test ! -s conftest.err'
9066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070 (exit $ac_status); }; } &&
9071 { ac_try='test -s conftest$ac_exeext'
9072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9076 (exit $ac_status); }; }; then
9077 ac_cv_type_unsigned_long_long=yes
9079 echo "$as_me: failed program was:" >&5
9080 sed 's/^/| /' conftest.$ac_ext >&5
9082 ac_cv_type_unsigned_long_long=no
9084 rm -f conftest.err conftest.$ac_objext \
9085 conftest$ac_exeext conftest.$ac_ext
9087 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
9088 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
9089 if test $ac_cv_type_unsigned_long_long = yes; then
9091 cat >>confdefs.h <<\_ACEOF
9092 #define HAVE_UNSIGNED_LONG_LONG 1
9100 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
9102 test $ac_cv_type_unsigned_long_long = yes \
9103 && ac_type='unsigned long long' \
9104 || ac_type='unsigned long'
9106 cat >>confdefs.h <<_ACEOF
9107 #define uintmax_t $ac_type
9112 cat >>confdefs.h <<\_ACEOF
9113 #define HAVE_UINTMAX_T 1
9119 echo "$as_me:$LINENO: checking for inttypes.h" >&5
9120 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
9121 if test "${gt_cv_header_inttypes_h+set}" = set; then
9122 echo $ECHO_N "(cached) $ECHO_C" >&6
9125 cat >conftest.$ac_ext <<_ACEOF
9128 cat confdefs.h >>conftest.$ac_ext
9129 cat >>conftest.$ac_ext <<_ACEOF
9130 /* end confdefs.h. */
9131 #include <sys/types.h>
9132 #include <inttypes.h>
9141 rm -f conftest.$ac_objext
9142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9143 (eval $ac_compile) 2>conftest.er1
9145 grep -v '^ *+' conftest.er1 >conftest.err
9147 cat conftest.err >&5
9148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9149 (exit $ac_status); } &&
9150 { ac_try='test -z "$ac_c_werror_flag"
9151 || test ! -s conftest.err'
9152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9156 (exit $ac_status); }; } &&
9157 { ac_try='test -s conftest.$ac_objext'
9158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9162 (exit $ac_status); }; }; then
9163 gt_cv_header_inttypes_h=yes
9165 echo "$as_me: failed program was:" >&5
9166 sed 's/^/| /' conftest.$ac_ext >&5
9168 gt_cv_header_inttypes_h=no
9170 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9173 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
9174 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
9175 if test $gt_cv_header_inttypes_h = yes; then
9177 cat >>confdefs.h <<_ACEOF
9178 #define HAVE_INTTYPES_H 1
9185 if test $gt_cv_header_inttypes_h = yes; then
9186 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
9187 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
9188 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
9189 echo $ECHO_N "(cached) $ECHO_C" >&6
9192 cat >conftest.$ac_ext <<_ACEOF
9195 cat confdefs.h >>conftest.$ac_ext
9196 cat >>conftest.$ac_ext <<_ACEOF
9197 /* end confdefs.h. */
9198 #include <inttypes.h>
9211 rm -f conftest.$ac_objext
9212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9213 (eval $ac_compile) 2>conftest.er1
9215 grep -v '^ *+' conftest.er1 >conftest.err
9217 cat conftest.err >&5
9218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9219 (exit $ac_status); } &&
9220 { ac_try='test -z "$ac_c_werror_flag"
9221 || test ! -s conftest.err'
9222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9226 (exit $ac_status); }; } &&
9227 { ac_try='test -s conftest.$ac_objext'
9228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232 (exit $ac_status); }; }; then
9233 gt_cv_inttypes_pri_broken=no
9235 echo "$as_me: failed program was:" >&5
9236 sed 's/^/| /' conftest.$ac_ext >&5
9238 gt_cv_inttypes_pri_broken=yes
9240 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9243 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
9244 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
9246 if test "$gt_cv_inttypes_pri_broken" = yes; then
9248 cat >>confdefs.h <<_ACEOF
9249 #define PRI_MACROS_BROKEN 1
9256 for ac_header in stdint.h
9258 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9259 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9260 echo "$as_me:$LINENO: checking for $ac_header" >&5
9261 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9262 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9263 echo $ECHO_N "(cached) $ECHO_C" >&6
9265 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9266 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9268 # Is the header compilable?
9269 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9270 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9271 cat >conftest.$ac_ext <<_ACEOF
9274 cat confdefs.h >>conftest.$ac_ext
9275 cat >>conftest.$ac_ext <<_ACEOF
9276 /* end confdefs.h. */
9277 $ac_includes_default
9278 #include <$ac_header>
9280 rm -f conftest.$ac_objext
9281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9282 (eval $ac_compile) 2>conftest.er1
9284 grep -v '^ *+' conftest.er1 >conftest.err
9286 cat conftest.err >&5
9287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9288 (exit $ac_status); } &&
9289 { ac_try='test -z "$ac_c_werror_flag"
9290 || test ! -s conftest.err'
9291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9295 (exit $ac_status); }; } &&
9296 { ac_try='test -s conftest.$ac_objext'
9297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9301 (exit $ac_status); }; }; then
9302 ac_header_compiler=yes
9304 echo "$as_me: failed program was:" >&5
9305 sed 's/^/| /' conftest.$ac_ext >&5
9307 ac_header_compiler=no
9309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9310 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9311 echo "${ECHO_T}$ac_header_compiler" >&6
9313 # Is the header present?
9314 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9315 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9316 cat >conftest.$ac_ext <<_ACEOF
9319 cat confdefs.h >>conftest.$ac_ext
9320 cat >>conftest.$ac_ext <<_ACEOF
9321 /* end confdefs.h. */
9322 #include <$ac_header>
9324 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9325 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9327 grep -v '^ *+' conftest.er1 >conftest.err
9329 cat conftest.err >&5
9330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9331 (exit $ac_status); } >/dev/null; then
9332 if test -s conftest.err; then
9333 ac_cpp_err=$ac_c_preproc_warn_flag
9334 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9341 if test -z "$ac_cpp_err"; then
9342 ac_header_preproc=yes
9344 echo "$as_me: failed program was:" >&5
9345 sed 's/^/| /' conftest.$ac_ext >&5
9347 ac_header_preproc=no
9349 rm -f conftest.err conftest.$ac_ext
9350 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9351 echo "${ECHO_T}$ac_header_preproc" >&6
9353 # So? What about this header?
9354 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9356 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9357 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9358 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9359 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9360 ac_header_preproc=yes
9363 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9364 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9365 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9366 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9367 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9368 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9369 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9370 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9371 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9372 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9373 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9374 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9377 ## ------------------------------------------ ##
9378 ## Report this to the AC_PACKAGE_NAME lists. ##
9379 ## ------------------------------------------ ##
9382 sed "s/^/$as_me: WARNING: /" >&2
9385 echo "$as_me:$LINENO: checking for $ac_header" >&5
9386 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9387 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9388 echo $ECHO_N "(cached) $ECHO_C" >&6
9390 eval "$as_ac_Header=\$ac_header_preproc"
9392 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9393 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9396 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9397 cat >>confdefs.h <<_ACEOF
9398 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9405 echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
9406 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6
9408 cat >conftest.$ac_ext <<_ACEOF
9411 cat confdefs.h >>conftest.$ac_ext
9412 cat >>conftest.$ac_ext <<_ACEOF
9413 /* end confdefs.h. */
9424 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9425 $EGREP "Found it" >/dev/null 2>&1; then
9430 if test -z "$result"; then
9431 if test "$cross_compiling" = yes; then
9432 # Depending upon the size, compute the lo and hi bounds.
9433 cat >conftest.$ac_ext <<_ACEOF
9436 cat confdefs.h >>conftest.$ac_ext
9437 cat >>conftest.$ac_ext <<_ACEOF
9438 /* end confdefs.h. */
9443 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
9450 rm -f conftest.$ac_objext
9451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9452 (eval $ac_compile) 2>conftest.er1
9454 grep -v '^ *+' conftest.er1 >conftest.err
9456 cat conftest.err >&5
9457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9458 (exit $ac_status); } &&
9459 { ac_try='test -z "$ac_c_werror_flag"
9460 || test ! -s conftest.err'
9461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9465 (exit $ac_status); }; } &&
9466 { ac_try='test -s conftest.$ac_objext'
9467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9471 (exit $ac_status); }; }; then
9474 cat >conftest.$ac_ext <<_ACEOF
9477 cat confdefs.h >>conftest.$ac_ext
9478 cat >>conftest.$ac_ext <<_ACEOF
9479 /* end confdefs.h. */
9484 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
9491 rm -f conftest.$ac_objext
9492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9493 (eval $ac_compile) 2>conftest.er1
9495 grep -v '^ *+' conftest.er1 >conftest.err
9497 cat conftest.err >&5
9498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9499 (exit $ac_status); } &&
9500 { ac_try='test -z "$ac_c_werror_flag"
9501 || test ! -s conftest.err'
9502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9506 (exit $ac_status); }; } &&
9507 { ac_try='test -s conftest.$ac_objext'
9508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9512 (exit $ac_status); }; }; then
9513 ac_hi=$ac_mid; break
9515 echo "$as_me: failed program was:" >&5
9516 sed 's/^/| /' conftest.$ac_ext >&5
9518 ac_lo=`expr $ac_mid + 1`
9519 if test $ac_lo -le $ac_mid; then
9523 ac_mid=`expr 2 '*' $ac_mid + 1`
9525 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9528 echo "$as_me: failed program was:" >&5
9529 sed 's/^/| /' conftest.$ac_ext >&5
9531 cat >conftest.$ac_ext <<_ACEOF
9534 cat confdefs.h >>conftest.$ac_ext
9535 cat >>conftest.$ac_ext <<_ACEOF
9536 /* end confdefs.h. */
9541 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
9548 rm -f conftest.$ac_objext
9549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9550 (eval $ac_compile) 2>conftest.er1
9552 grep -v '^ *+' conftest.er1 >conftest.err
9554 cat conftest.err >&5
9555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9556 (exit $ac_status); } &&
9557 { ac_try='test -z "$ac_c_werror_flag"
9558 || test ! -s conftest.err'
9559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9563 (exit $ac_status); }; } &&
9564 { ac_try='test -s conftest.$ac_objext'
9565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9569 (exit $ac_status); }; }; then
9572 cat >conftest.$ac_ext <<_ACEOF
9575 cat confdefs.h >>conftest.$ac_ext
9576 cat >>conftest.$ac_ext <<_ACEOF
9577 /* end confdefs.h. */
9582 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
9589 rm -f conftest.$ac_objext
9590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9591 (eval $ac_compile) 2>conftest.er1
9593 grep -v '^ *+' conftest.er1 >conftest.err
9595 cat conftest.err >&5
9596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597 (exit $ac_status); } &&
9598 { ac_try='test -z "$ac_c_werror_flag"
9599 || test ! -s conftest.err'
9600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9604 (exit $ac_status); }; } &&
9605 { ac_try='test -s conftest.$ac_objext'
9606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9610 (exit $ac_status); }; }; then
9611 ac_lo=$ac_mid; break
9613 echo "$as_me: failed program was:" >&5
9614 sed 's/^/| /' conftest.$ac_ext >&5
9616 ac_hi=`expr '(' $ac_mid ')' - 1`
9617 if test $ac_mid -le $ac_hi; then
9621 ac_mid=`expr 2 '*' $ac_mid`
9623 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9626 echo "$as_me: failed program was:" >&5
9627 sed 's/^/| /' conftest.$ac_ext >&5
9631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9634 # Binary search between lo and hi bounds.
9635 while test "x$ac_lo" != "x$ac_hi"; do
9636 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9637 cat >conftest.$ac_ext <<_ACEOF
9640 cat confdefs.h >>conftest.$ac_ext
9641 cat >>conftest.$ac_ext <<_ACEOF
9642 /* end confdefs.h. */
9647 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
9654 rm -f conftest.$ac_objext
9655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9656 (eval $ac_compile) 2>conftest.er1
9658 grep -v '^ *+' conftest.er1 >conftest.err
9660 cat conftest.err >&5
9661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9662 (exit $ac_status); } &&
9663 { ac_try='test -z "$ac_c_werror_flag"
9664 || test ! -s conftest.err'
9665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669 (exit $ac_status); }; } &&
9670 { ac_try='test -s conftest.$ac_objext'
9671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675 (exit $ac_status); }; }; then
9678 echo "$as_me: failed program was:" >&5
9679 sed 's/^/| /' conftest.$ac_ext >&5
9681 ac_lo=`expr '(' $ac_mid ')' + 1`
9683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9690 if test "$cross_compiling" = yes; then
9691 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9692 See \`config.log' for more details." >&5
9693 echo "$as_me: error: cannot run test program while cross compiling
9694 See \`config.log' for more details." >&2;}
9695 { (exit 1); exit 1; }; }
9697 cat >conftest.$ac_ext <<_ACEOF
9700 cat confdefs.h >>conftest.$ac_ext
9701 cat >>conftest.$ac_ext <<_ACEOF
9702 /* end confdefs.h. */
9704 long longval () { return ~(size_t)0 / 10; }
9705 unsigned long ulongval () { return ~(size_t)0 / 10; }
9712 FILE *f = fopen ("conftest.val", "w");
9715 if ((~(size_t)0 / 10) < 0)
9717 long i = longval ();
9718 if (i != (~(size_t)0 / 10))
9720 fprintf (f, "%ld\n", i);
9724 unsigned long i = ulongval ();
9725 if (i != (~(size_t)0 / 10))
9727 fprintf (f, "%lu\n", i);
9729 exit (ferror (f) || fclose (f) != 0);
9735 rm -f conftest$ac_exeext
9736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9737 (eval $ac_link) 2>&5
9739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9740 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9745 (exit $ac_status); }; }; then
9746 res_hi=`cat conftest.val`
9748 echo "$as_me: program exited with status $ac_status" >&5
9749 echo "$as_me: failed program was:" >&5
9750 sed 's/^/| /' conftest.$ac_ext >&5
9755 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9759 if test "$cross_compiling" = yes; then
9760 # Depending upon the size, compute the lo and hi bounds.
9761 cat >conftest.$ac_ext <<_ACEOF
9764 cat confdefs.h >>conftest.$ac_ext
9765 cat >>conftest.$ac_ext <<_ACEOF
9766 /* end confdefs.h. */
9771 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
9778 rm -f conftest.$ac_objext
9779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9780 (eval $ac_compile) 2>conftest.er1
9782 grep -v '^ *+' conftest.er1 >conftest.err
9784 cat conftest.err >&5
9785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9786 (exit $ac_status); } &&
9787 { ac_try='test -z "$ac_c_werror_flag"
9788 || test ! -s conftest.err'
9789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9793 (exit $ac_status); }; } &&
9794 { ac_try='test -s conftest.$ac_objext'
9795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9799 (exit $ac_status); }; }; then
9802 cat >conftest.$ac_ext <<_ACEOF
9805 cat confdefs.h >>conftest.$ac_ext
9806 cat >>conftest.$ac_ext <<_ACEOF
9807 /* end confdefs.h. */
9812 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
9819 rm -f conftest.$ac_objext
9820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9821 (eval $ac_compile) 2>conftest.er1
9823 grep -v '^ *+' conftest.er1 >conftest.err
9825 cat conftest.err >&5
9826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9827 (exit $ac_status); } &&
9828 { ac_try='test -z "$ac_c_werror_flag"
9829 || test ! -s conftest.err'
9830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9834 (exit $ac_status); }; } &&
9835 { ac_try='test -s conftest.$ac_objext'
9836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840 (exit $ac_status); }; }; then
9841 ac_hi=$ac_mid; break
9843 echo "$as_me: failed program was:" >&5
9844 sed 's/^/| /' conftest.$ac_ext >&5
9846 ac_lo=`expr $ac_mid + 1`
9847 if test $ac_lo -le $ac_mid; then
9851 ac_mid=`expr 2 '*' $ac_mid + 1`
9853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9856 echo "$as_me: failed program was:" >&5
9857 sed 's/^/| /' conftest.$ac_ext >&5
9859 cat >conftest.$ac_ext <<_ACEOF
9862 cat confdefs.h >>conftest.$ac_ext
9863 cat >>conftest.$ac_ext <<_ACEOF
9864 /* end confdefs.h. */
9869 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
9876 rm -f conftest.$ac_objext
9877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9878 (eval $ac_compile) 2>conftest.er1
9880 grep -v '^ *+' conftest.er1 >conftest.err
9882 cat conftest.err >&5
9883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884 (exit $ac_status); } &&
9885 { ac_try='test -z "$ac_c_werror_flag"
9886 || test ! -s conftest.err'
9887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9891 (exit $ac_status); }; } &&
9892 { ac_try='test -s conftest.$ac_objext'
9893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897 (exit $ac_status); }; }; then
9900 cat >conftest.$ac_ext <<_ACEOF
9903 cat confdefs.h >>conftest.$ac_ext
9904 cat >>conftest.$ac_ext <<_ACEOF
9905 /* end confdefs.h. */
9910 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
9917 rm -f conftest.$ac_objext
9918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9919 (eval $ac_compile) 2>conftest.er1
9921 grep -v '^ *+' conftest.er1 >conftest.err
9923 cat conftest.err >&5
9924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9925 (exit $ac_status); } &&
9926 { ac_try='test -z "$ac_c_werror_flag"
9927 || test ! -s conftest.err'
9928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9932 (exit $ac_status); }; } &&
9933 { ac_try='test -s conftest.$ac_objext'
9934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9938 (exit $ac_status); }; }; then
9939 ac_lo=$ac_mid; break
9941 echo "$as_me: failed program was:" >&5
9942 sed 's/^/| /' conftest.$ac_ext >&5
9944 ac_hi=`expr '(' $ac_mid ')' - 1`
9945 if test $ac_mid -le $ac_hi; then
9949 ac_mid=`expr 2 '*' $ac_mid`
9951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9954 echo "$as_me: failed program was:" >&5
9955 sed 's/^/| /' conftest.$ac_ext >&5
9959 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9962 # Binary search between lo and hi bounds.
9963 while test "x$ac_lo" != "x$ac_hi"; do
9964 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9965 cat >conftest.$ac_ext <<_ACEOF
9968 cat confdefs.h >>conftest.$ac_ext
9969 cat >>conftest.$ac_ext <<_ACEOF
9970 /* end confdefs.h. */
9975 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
9982 rm -f conftest.$ac_objext
9983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9984 (eval $ac_compile) 2>conftest.er1
9986 grep -v '^ *+' conftest.er1 >conftest.err
9988 cat conftest.err >&5
9989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9990 (exit $ac_status); } &&
9991 { ac_try='test -z "$ac_c_werror_flag"
9992 || test ! -s conftest.err'
9993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9997 (exit $ac_status); }; } &&
9998 { ac_try='test -s conftest.$ac_objext'
9999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10000 (eval $ac_try) 2>&5
10002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003 (exit $ac_status); }; }; then
10006 echo "$as_me: failed program was:" >&5
10007 sed 's/^/| /' conftest.$ac_ext >&5
10009 ac_lo=`expr '(' $ac_mid ')' + 1`
10011 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10014 ?*) res_lo=$ac_lo;;
10018 if test "$cross_compiling" = yes; then
10019 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10020 See \`config.log' for more details." >&5
10021 echo "$as_me: error: cannot run test program while cross compiling
10022 See \`config.log' for more details." >&2;}
10023 { (exit 1); exit 1; }; }
10025 cat >conftest.$ac_ext <<_ACEOF
10028 cat confdefs.h >>conftest.$ac_ext
10029 cat >>conftest.$ac_ext <<_ACEOF
10030 /* end confdefs.h. */
10031 #include <stddef.h>
10032 long longval () { return ~(size_t)0 % 10; }
10033 unsigned long ulongval () { return ~(size_t)0 % 10; }
10035 #include <stdlib.h>
10040 FILE *f = fopen ("conftest.val", "w");
10043 if ((~(size_t)0 % 10) < 0)
10045 long i = longval ();
10046 if (i != (~(size_t)0 % 10))
10048 fprintf (f, "%ld\n", i);
10052 unsigned long i = ulongval ();
10053 if (i != (~(size_t)0 % 10))
10055 fprintf (f, "%lu\n", i);
10057 exit (ferror (f) || fclose (f) != 0);
10063 rm -f conftest$ac_exeext
10064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10065 (eval $ac_link) 2>&5
10067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10068 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10070 (eval $ac_try) 2>&5
10072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10073 (exit $ac_status); }; }; then
10074 res_lo=`cat conftest.val`
10076 echo "$as_me: program exited with status $ac_status" >&5
10077 echo "$as_me: failed program was:" >&5
10078 sed 's/^/| /' conftest.$ac_ext >&5
10080 ( exit $ac_status )
10083 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10087 if test "$cross_compiling" = yes; then
10088 # Depending upon the size, compute the lo and hi bounds.
10089 cat >conftest.$ac_ext <<_ACEOF
10092 cat confdefs.h >>conftest.$ac_ext
10093 cat >>conftest.$ac_ext <<_ACEOF
10094 /* end confdefs.h. */
10095 #include <stddef.h>
10099 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
10106 rm -f conftest.$ac_objext
10107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10108 (eval $ac_compile) 2>conftest.er1
10110 grep -v '^ *+' conftest.er1 >conftest.err
10112 cat conftest.err >&5
10113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10114 (exit $ac_status); } &&
10115 { ac_try='test -z "$ac_c_werror_flag"
10116 || test ! -s conftest.err'
10117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10118 (eval $ac_try) 2>&5
10120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10121 (exit $ac_status); }; } &&
10122 { ac_try='test -s conftest.$ac_objext'
10123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10124 (eval $ac_try) 2>&5
10126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10127 (exit $ac_status); }; }; then
10130 cat >conftest.$ac_ext <<_ACEOF
10133 cat confdefs.h >>conftest.$ac_ext
10134 cat >>conftest.$ac_ext <<_ACEOF
10135 /* end confdefs.h. */
10136 #include <stddef.h>
10140 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10147 rm -f conftest.$ac_objext
10148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10149 (eval $ac_compile) 2>conftest.er1
10151 grep -v '^ *+' conftest.er1 >conftest.err
10153 cat conftest.err >&5
10154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10155 (exit $ac_status); } &&
10156 { ac_try='test -z "$ac_c_werror_flag"
10157 || test ! -s conftest.err'
10158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10159 (eval $ac_try) 2>&5
10161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10162 (exit $ac_status); }; } &&
10163 { ac_try='test -s conftest.$ac_objext'
10164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10165 (eval $ac_try) 2>&5
10167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10168 (exit $ac_status); }; }; then
10169 ac_hi=$ac_mid; break
10171 echo "$as_me: failed program was:" >&5
10172 sed 's/^/| /' conftest.$ac_ext >&5
10174 ac_lo=`expr $ac_mid + 1`
10175 if test $ac_lo -le $ac_mid; then
10179 ac_mid=`expr 2 '*' $ac_mid + 1`
10181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10184 echo "$as_me: failed program was:" >&5
10185 sed 's/^/| /' conftest.$ac_ext >&5
10187 cat >conftest.$ac_ext <<_ACEOF
10190 cat confdefs.h >>conftest.$ac_ext
10191 cat >>conftest.$ac_ext <<_ACEOF
10192 /* end confdefs.h. */
10193 #include <stddef.h>
10197 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
10204 rm -f conftest.$ac_objext
10205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10206 (eval $ac_compile) 2>conftest.er1
10208 grep -v '^ *+' conftest.er1 >conftest.err
10210 cat conftest.err >&5
10211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10212 (exit $ac_status); } &&
10213 { ac_try='test -z "$ac_c_werror_flag"
10214 || test ! -s conftest.err'
10215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10216 (eval $ac_try) 2>&5
10218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10219 (exit $ac_status); }; } &&
10220 { ac_try='test -s conftest.$ac_objext'
10221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10222 (eval $ac_try) 2>&5
10224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10225 (exit $ac_status); }; }; then
10228 cat >conftest.$ac_ext <<_ACEOF
10231 cat confdefs.h >>conftest.$ac_ext
10232 cat >>conftest.$ac_ext <<_ACEOF
10233 /* end confdefs.h. */
10234 #include <stddef.h>
10238 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
10245 rm -f conftest.$ac_objext
10246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10247 (eval $ac_compile) 2>conftest.er1
10249 grep -v '^ *+' conftest.er1 >conftest.err
10251 cat conftest.err >&5
10252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253 (exit $ac_status); } &&
10254 { ac_try='test -z "$ac_c_werror_flag"
10255 || test ! -s conftest.err'
10256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10257 (eval $ac_try) 2>&5
10259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260 (exit $ac_status); }; } &&
10261 { ac_try='test -s conftest.$ac_objext'
10262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10263 (eval $ac_try) 2>&5
10265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266 (exit $ac_status); }; }; then
10267 ac_lo=$ac_mid; break
10269 echo "$as_me: failed program was:" >&5
10270 sed 's/^/| /' conftest.$ac_ext >&5
10272 ac_hi=`expr '(' $ac_mid ')' - 1`
10273 if test $ac_mid -le $ac_hi; then
10277 ac_mid=`expr 2 '*' $ac_mid`
10279 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10282 echo "$as_me: failed program was:" >&5
10283 sed 's/^/| /' conftest.$ac_ext >&5
10287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10290 # Binary search between lo and hi bounds.
10291 while test "x$ac_lo" != "x$ac_hi"; do
10292 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10293 cat >conftest.$ac_ext <<_ACEOF
10296 cat confdefs.h >>conftest.$ac_ext
10297 cat >>conftest.$ac_ext <<_ACEOF
10298 /* end confdefs.h. */
10299 #include <stddef.h>
10303 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10310 rm -f conftest.$ac_objext
10311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10312 (eval $ac_compile) 2>conftest.er1
10314 grep -v '^ *+' conftest.er1 >conftest.err
10316 cat conftest.err >&5
10317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10318 (exit $ac_status); } &&
10319 { ac_try='test -z "$ac_c_werror_flag"
10320 || test ! -s conftest.err'
10321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10322 (eval $ac_try) 2>&5
10324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10325 (exit $ac_status); }; } &&
10326 { ac_try='test -s conftest.$ac_objext'
10327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10328 (eval $ac_try) 2>&5
10330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10331 (exit $ac_status); }; }; then
10334 echo "$as_me: failed program was:" >&5
10335 sed 's/^/| /' conftest.$ac_ext >&5
10337 ac_lo=`expr '(' $ac_mid ')' + 1`
10339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10342 ?*) fits_in_uint=$ac_lo;;
10346 if test "$cross_compiling" = yes; then
10347 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10348 See \`config.log' for more details." >&5
10349 echo "$as_me: error: cannot run test program while cross compiling
10350 See \`config.log' for more details." >&2;}
10351 { (exit 1); exit 1; }; }
10353 cat >conftest.$ac_ext <<_ACEOF
10356 cat confdefs.h >>conftest.$ac_ext
10357 cat >>conftest.$ac_ext <<_ACEOF
10358 /* end confdefs.h. */
10359 #include <stddef.h>
10360 long longval () { return sizeof (size_t) <= sizeof (unsigned int); }
10361 unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
10363 #include <stdlib.h>
10368 FILE *f = fopen ("conftest.val", "w");
10371 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
10373 long i = longval ();
10374 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
10376 fprintf (f, "%ld\n", i);
10380 unsigned long i = ulongval ();
10381 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
10383 fprintf (f, "%lu\n", i);
10385 exit (ferror (f) || fclose (f) != 0);
10391 rm -f conftest$ac_exeext
10392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10393 (eval $ac_link) 2>&5
10395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10396 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10398 (eval $ac_try) 2>&5
10400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10401 (exit $ac_status); }; }; then
10402 fits_in_uint=`cat conftest.val`
10404 echo "$as_me: program exited with status $ac_status" >&5
10405 echo "$as_me: failed program was:" >&5
10406 sed 's/^/| /' conftest.$ac_ext >&5
10408 ( exit $ac_status )
10411 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10415 if test "$fits_in_uint" = 1; then
10416 cat >conftest.$ac_ext <<_ACEOF
10419 cat confdefs.h >>conftest.$ac_ext
10420 cat >>conftest.$ac_ext <<_ACEOF
10421 /* end confdefs.h. */
10422 #include <stddef.h>
10424 extern unsigned long foo;
10434 rm -f conftest.$ac_objext
10435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10436 (eval $ac_compile) 2>conftest.er1
10438 grep -v '^ *+' conftest.er1 >conftest.err
10440 cat conftest.err >&5
10441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10442 (exit $ac_status); } &&
10443 { ac_try='test -z "$ac_c_werror_flag"
10444 || test ! -s conftest.err'
10445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10446 (eval $ac_try) 2>&5
10448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449 (exit $ac_status); }; } &&
10450 { ac_try='test -s conftest.$ac_objext'
10451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10452 (eval $ac_try) 2>&5
10454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10455 (exit $ac_status); }; }; then
10458 echo "$as_me: failed program was:" >&5
10459 sed 's/^/| /' conftest.$ac_ext >&5
10462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10464 if test -z "$result"; then
10465 if test "$fits_in_uint" = 1; then
10466 result="$res_hi$res_lo"U
10468 result="$res_hi$res_lo"UL
10471 result='~(size_t)0'
10474 echo "$as_me:$LINENO: result: $result" >&5
10475 echo "${ECHO_T}$result" >&6
10476 if test "$result" != yes; then
10478 cat >>confdefs.h <<_ACEOF
10479 #define SIZE_MAX $result
10488 for ac_header in stdint.h
10490 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10491 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10492 echo "$as_me:$LINENO: checking for $ac_header" >&5
10493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10494 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10495 echo $ECHO_N "(cached) $ECHO_C" >&6
10497 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10498 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10500 # Is the header compilable?
10501 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10502 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10503 cat >conftest.$ac_ext <<_ACEOF
10506 cat confdefs.h >>conftest.$ac_ext
10507 cat >>conftest.$ac_ext <<_ACEOF
10508 /* end confdefs.h. */
10509 $ac_includes_default
10510 #include <$ac_header>
10512 rm -f conftest.$ac_objext
10513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10514 (eval $ac_compile) 2>conftest.er1
10516 grep -v '^ *+' conftest.er1 >conftest.err
10518 cat conftest.err >&5
10519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520 (exit $ac_status); } &&
10521 { ac_try='test -z "$ac_c_werror_flag"
10522 || test ! -s conftest.err'
10523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10524 (eval $ac_try) 2>&5
10526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10527 (exit $ac_status); }; } &&
10528 { ac_try='test -s conftest.$ac_objext'
10529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10530 (eval $ac_try) 2>&5
10532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10533 (exit $ac_status); }; }; then
10534 ac_header_compiler=yes
10536 echo "$as_me: failed program was:" >&5
10537 sed 's/^/| /' conftest.$ac_ext >&5
10539 ac_header_compiler=no
10541 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10542 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10543 echo "${ECHO_T}$ac_header_compiler" >&6
10545 # Is the header present?
10546 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10547 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10548 cat >conftest.$ac_ext <<_ACEOF
10551 cat confdefs.h >>conftest.$ac_ext
10552 cat >>conftest.$ac_ext <<_ACEOF
10553 /* end confdefs.h. */
10554 #include <$ac_header>
10556 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10557 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10559 grep -v '^ *+' conftest.er1 >conftest.err
10561 cat conftest.err >&5
10562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10563 (exit $ac_status); } >/dev/null; then
10564 if test -s conftest.err; then
10565 ac_cpp_err=$ac_c_preproc_warn_flag
10566 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10573 if test -z "$ac_cpp_err"; then
10574 ac_header_preproc=yes
10576 echo "$as_me: failed program was:" >&5
10577 sed 's/^/| /' conftest.$ac_ext >&5
10579 ac_header_preproc=no
10581 rm -f conftest.err conftest.$ac_ext
10582 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10583 echo "${ECHO_T}$ac_header_preproc" >&6
10585 # So? What about this header?
10586 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10588 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10589 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10590 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10591 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10592 ac_header_preproc=yes
10595 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10596 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10597 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10598 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10599 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10600 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10601 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10602 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10603 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10604 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10605 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10606 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10609 ## ------------------------------------------ ##
10610 ## Report this to the AC_PACKAGE_NAME lists. ##
10611 ## ------------------------------------------ ##
10614 sed "s/^/$as_me: WARNING: /" >&2
10617 echo "$as_me:$LINENO: checking for $ac_header" >&5
10618 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10619 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10620 echo $ECHO_N "(cached) $ECHO_C" >&6
10622 eval "$as_ac_Header=\$ac_header_preproc"
10624 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10625 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10628 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10629 cat >>confdefs.h <<_ACEOF
10630 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10644 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
10645 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
10646 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
10647 echo $ECHO_N "(cached) $ECHO_C" >&6
10649 cat >conftest.$ac_ext <<_ACEOF
10652 cat confdefs.h >>conftest.$ac_ext
10653 cat >>conftest.$ac_ext <<_ACEOF
10654 /* end confdefs.h. */
10655 $ac_includes_default
10659 if ((ptrdiff_t *) 0)
10661 if (sizeof (ptrdiff_t))
10667 rm -f conftest.$ac_objext
10668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10669 (eval $ac_compile) 2>conftest.er1
10671 grep -v '^ *+' conftest.er1 >conftest.err
10673 cat conftest.err >&5
10674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10675 (exit $ac_status); } &&
10676 { ac_try='test -z "$ac_c_werror_flag"
10677 || test ! -s conftest.err'
10678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10679 (eval $ac_try) 2>&5
10681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10682 (exit $ac_status); }; } &&
10683 { ac_try='test -s conftest.$ac_objext'
10684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10685 (eval $ac_try) 2>&5
10687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10688 (exit $ac_status); }; }; then
10689 ac_cv_type_ptrdiff_t=yes
10691 echo "$as_me: failed program was:" >&5
10692 sed 's/^/| /' conftest.$ac_ext >&5
10694 ac_cv_type_ptrdiff_t=no
10696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10698 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
10699 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
10700 if test $ac_cv_type_ptrdiff_t = yes; then
10704 cat >>confdefs.h <<\_ACEOF
10705 #define ptrdiff_t long
10721 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
10722 stdlib.h string.h unistd.h sys/param.h
10724 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10725 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10726 echo "$as_me:$LINENO: checking for $ac_header" >&5
10727 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10728 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10729 echo $ECHO_N "(cached) $ECHO_C" >&6
10731 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10732 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10734 # Is the header compilable?
10735 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10736 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10737 cat >conftest.$ac_ext <<_ACEOF
10740 cat confdefs.h >>conftest.$ac_ext
10741 cat >>conftest.$ac_ext <<_ACEOF
10742 /* end confdefs.h. */
10743 $ac_includes_default
10744 #include <$ac_header>
10746 rm -f conftest.$ac_objext
10747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10748 (eval $ac_compile) 2>conftest.er1
10750 grep -v '^ *+' conftest.er1 >conftest.err
10752 cat conftest.err >&5
10753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10754 (exit $ac_status); } &&
10755 { ac_try='test -z "$ac_c_werror_flag"
10756 || test ! -s conftest.err'
10757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10758 (eval $ac_try) 2>&5
10760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10761 (exit $ac_status); }; } &&
10762 { ac_try='test -s conftest.$ac_objext'
10763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10764 (eval $ac_try) 2>&5
10766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10767 (exit $ac_status); }; }; then
10768 ac_header_compiler=yes
10770 echo "$as_me: failed program was:" >&5
10771 sed 's/^/| /' conftest.$ac_ext >&5
10773 ac_header_compiler=no
10775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10776 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10777 echo "${ECHO_T}$ac_header_compiler" >&6
10779 # Is the header present?
10780 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10781 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10782 cat >conftest.$ac_ext <<_ACEOF
10785 cat confdefs.h >>conftest.$ac_ext
10786 cat >>conftest.$ac_ext <<_ACEOF
10787 /* end confdefs.h. */
10788 #include <$ac_header>
10790 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10791 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10793 grep -v '^ *+' conftest.er1 >conftest.err
10795 cat conftest.err >&5
10796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10797 (exit $ac_status); } >/dev/null; then
10798 if test -s conftest.err; then
10799 ac_cpp_err=$ac_c_preproc_warn_flag
10800 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10807 if test -z "$ac_cpp_err"; then
10808 ac_header_preproc=yes
10810 echo "$as_me: failed program was:" >&5
10811 sed 's/^/| /' conftest.$ac_ext >&5
10813 ac_header_preproc=no
10815 rm -f conftest.err conftest.$ac_ext
10816 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10817 echo "${ECHO_T}$ac_header_preproc" >&6
10819 # So? What about this header?
10820 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10822 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10823 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10824 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10825 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10826 ac_header_preproc=yes
10829 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10830 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10831 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10832 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10833 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10834 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10835 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10836 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10837 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10838 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10839 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10840 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10843 ## ------------------------------------------ ##
10844 ## Report this to the AC_PACKAGE_NAME lists. ##
10845 ## ------------------------------------------ ##
10848 sed "s/^/$as_me: WARNING: /" >&2
10851 echo "$as_me:$LINENO: checking for $ac_header" >&5
10852 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10853 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10854 echo $ECHO_N "(cached) $ECHO_C" >&6
10856 eval "$as_ac_Header=\$ac_header_preproc"
10858 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10859 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10862 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10863 cat >>confdefs.h <<_ACEOF
10864 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10894 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
10895 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
10896 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
10899 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10900 echo "$as_me:$LINENO: checking for $ac_func" >&5
10901 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10902 if eval "test \"\${$as_ac_var+set}\" = set"; then
10903 echo $ECHO_N "(cached) $ECHO_C" >&6
10905 cat >conftest.$ac_ext <<_ACEOF
10908 cat confdefs.h >>conftest.$ac_ext
10909 cat >>conftest.$ac_ext <<_ACEOF
10910 /* end confdefs.h. */
10911 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10912 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10913 #define $ac_func innocuous_$ac_func
10915 /* System header to define __stub macros and hopefully few prototypes,
10916 which can conflict with char $ac_func (); below.
10917 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10918 <limits.h> exists even on freestanding compilers. */
10921 # include <limits.h>
10923 # include <assert.h>
10928 /* Override any gcc2 internal prototype to avoid an error. */
10933 /* We use char because int might match the return type of a gcc2
10934 builtin and then its argument prototype would still apply. */
10936 /* The GNU C library defines this for functions which it implements
10937 to always fail with ENOSYS. Some functions are actually named
10938 something starting with __ and the normal name is an alias. */
10939 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10942 char (*f) () = $ac_func;
10951 return f != $ac_func;
10956 rm -f conftest.$ac_objext conftest$ac_exeext
10957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10958 (eval $ac_link) 2>conftest.er1
10960 grep -v '^ *+' conftest.er1 >conftest.err
10962 cat conftest.err >&5
10963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10964 (exit $ac_status); } &&
10965 { ac_try='test -z "$ac_c_werror_flag"
10966 || test ! -s conftest.err'
10967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10968 (eval $ac_try) 2>&5
10970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10971 (exit $ac_status); }; } &&
10972 { ac_try='test -s conftest$ac_exeext'
10973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10974 (eval $ac_try) 2>&5
10976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10977 (exit $ac_status); }; }; then
10978 eval "$as_ac_var=yes"
10980 echo "$as_me: failed program was:" >&5
10981 sed 's/^/| /' conftest.$ac_ext >&5
10983 eval "$as_ac_var=no"
10985 rm -f conftest.err conftest.$ac_objext \
10986 conftest$ac_exeext conftest.$ac_ext
10988 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10989 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10990 if test `eval echo '${'$as_ac_var'}'` = yes; then
10991 cat >>confdefs.h <<_ACEOF
10992 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11000 echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
11001 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6
11002 if test "${ac_cv_have_decl__snprintf+set}" = set; then
11003 echo $ECHO_N "(cached) $ECHO_C" >&6
11005 cat >conftest.$ac_ext <<_ACEOF
11008 cat confdefs.h >>conftest.$ac_ext
11009 cat >>conftest.$ac_ext <<_ACEOF
11010 /* end confdefs.h. */
11017 char *p = (char *) _snprintf;
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_cv_have_decl__snprintf=yes
11048 echo "$as_me: failed program was:" >&5
11049 sed 's/^/| /' conftest.$ac_ext >&5
11051 ac_cv_have_decl__snprintf=no
11053 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11055 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
11056 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6
11057 if test $ac_cv_have_decl__snprintf = yes; then
11063 cat >>confdefs.h <<_ACEOF
11064 #define HAVE_DECL__SNPRINTF $gt_value
11069 echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
11070 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6
11071 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
11072 echo $ECHO_N "(cached) $ECHO_C" >&6
11074 cat >conftest.$ac_ext <<_ACEOF
11077 cat confdefs.h >>conftest.$ac_ext
11078 cat >>conftest.$ac_ext <<_ACEOF
11079 /* end confdefs.h. */
11086 char *p = (char *) _snwprintf;
11093 rm -f conftest.$ac_objext
11094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11095 (eval $ac_compile) 2>conftest.er1
11097 grep -v '^ *+' conftest.er1 >conftest.err
11099 cat conftest.err >&5
11100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11101 (exit $ac_status); } &&
11102 { ac_try='test -z "$ac_c_werror_flag"
11103 || test ! -s conftest.err'
11104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11105 (eval $ac_try) 2>&5
11107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11108 (exit $ac_status); }; } &&
11109 { ac_try='test -s conftest.$ac_objext'
11110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11111 (eval $ac_try) 2>&5
11113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11114 (exit $ac_status); }; }; then
11115 ac_cv_have_decl__snwprintf=yes
11117 echo "$as_me: failed program was:" >&5
11118 sed 's/^/| /' conftest.$ac_ext >&5
11120 ac_cv_have_decl__snwprintf=no
11122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11124 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
11125 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6
11126 if test $ac_cv_have_decl__snwprintf = yes; then
11132 cat >>confdefs.h <<_ACEOF
11133 #define HAVE_DECL__SNWPRINTF $gt_value
11139 echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
11140 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
11141 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
11142 echo $ECHO_N "(cached) $ECHO_C" >&6
11144 cat >conftest.$ac_ext <<_ACEOF
11147 cat confdefs.h >>conftest.$ac_ext
11148 cat >>conftest.$ac_ext <<_ACEOF
11149 /* end confdefs.h. */
11155 #ifndef feof_unlocked
11156 char *p = (char *) feof_unlocked;
11163 rm -f conftest.$ac_objext
11164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11165 (eval $ac_compile) 2>conftest.er1
11167 grep -v '^ *+' conftest.er1 >conftest.err
11169 cat conftest.err >&5
11170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11171 (exit $ac_status); } &&
11172 { ac_try='test -z "$ac_c_werror_flag"
11173 || test ! -s conftest.err'
11174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11175 (eval $ac_try) 2>&5
11177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11178 (exit $ac_status); }; } &&
11179 { ac_try='test -s conftest.$ac_objext'
11180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11181 (eval $ac_try) 2>&5
11183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11184 (exit $ac_status); }; }; then
11185 ac_cv_have_decl_feof_unlocked=yes
11187 echo "$as_me: failed program was:" >&5
11188 sed 's/^/| /' conftest.$ac_ext >&5
11190 ac_cv_have_decl_feof_unlocked=no
11192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11194 echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
11195 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
11196 if test $ac_cv_have_decl_feof_unlocked = yes; then
11202 cat >>confdefs.h <<_ACEOF
11203 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
11208 echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
11209 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
11210 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
11211 echo $ECHO_N "(cached) $ECHO_C" >&6
11213 cat >conftest.$ac_ext <<_ACEOF
11216 cat confdefs.h >>conftest.$ac_ext
11217 cat >>conftest.$ac_ext <<_ACEOF
11218 /* end confdefs.h. */
11224 #ifndef fgets_unlocked
11225 char *p = (char *) fgets_unlocked;
11232 rm -f conftest.$ac_objext
11233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11234 (eval $ac_compile) 2>conftest.er1
11236 grep -v '^ *+' conftest.er1 >conftest.err
11238 cat conftest.err >&5
11239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11240 (exit $ac_status); } &&
11241 { ac_try='test -z "$ac_c_werror_flag"
11242 || test ! -s conftest.err'
11243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11244 (eval $ac_try) 2>&5
11246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11247 (exit $ac_status); }; } &&
11248 { ac_try='test -s conftest.$ac_objext'
11249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11250 (eval $ac_try) 2>&5
11252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11253 (exit $ac_status); }; }; then
11254 ac_cv_have_decl_fgets_unlocked=yes
11256 echo "$as_me: failed program was:" >&5
11257 sed 's/^/| /' conftest.$ac_ext >&5
11259 ac_cv_have_decl_fgets_unlocked=no
11261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11263 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
11264 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
11265 if test $ac_cv_have_decl_fgets_unlocked = yes; then
11271 cat >>confdefs.h <<_ACEOF
11272 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
11277 echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
11278 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
11279 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
11280 echo $ECHO_N "(cached) $ECHO_C" >&6
11282 cat >conftest.$ac_ext <<_ACEOF
11285 cat confdefs.h >>conftest.$ac_ext
11286 cat >>conftest.$ac_ext <<_ACEOF
11287 /* end confdefs.h. */
11293 #ifndef getc_unlocked
11294 char *p = (char *) getc_unlocked;
11301 rm -f conftest.$ac_objext
11302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11303 (eval $ac_compile) 2>conftest.er1
11305 grep -v '^ *+' conftest.er1 >conftest.err
11307 cat conftest.err >&5
11308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11309 (exit $ac_status); } &&
11310 { ac_try='test -z "$ac_c_werror_flag"
11311 || test ! -s conftest.err'
11312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11313 (eval $ac_try) 2>&5
11315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11316 (exit $ac_status); }; } &&
11317 { ac_try='test -s conftest.$ac_objext'
11318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11319 (eval $ac_try) 2>&5
11321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11322 (exit $ac_status); }; }; then
11323 ac_cv_have_decl_getc_unlocked=yes
11325 echo "$as_me: failed program was:" >&5
11326 sed 's/^/| /' conftest.$ac_ext >&5
11328 ac_cv_have_decl_getc_unlocked=no
11330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11332 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
11333 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
11334 if test $ac_cv_have_decl_getc_unlocked = yes; then
11340 cat >>confdefs.h <<_ACEOF
11341 #define HAVE_DECL_GETC_UNLOCKED $gt_value
11346 case $gt_cv_func_printf_posix in
11347 *yes) HAVE_POSIX_PRINTF=1 ;;
11348 *) HAVE_POSIX_PRINTF=0 ;;
11351 if test "$ac_cv_func_asprintf" = yes; then
11357 if test "$ac_cv_func_snprintf" = yes; then
11363 if test "$ac_cv_func_wprintf" = yes; then
11375 am_save_CPPFLAGS="$CPPFLAGS"
11377 for element in $INCICONV; do
11379 for x in $CPPFLAGS; do
11381 acl_save_prefix="$prefix"
11382 prefix="$acl_final_prefix"
11383 acl_save_exec_prefix="$exec_prefix"
11384 exec_prefix="$acl_final_exec_prefix"
11386 exec_prefix="$acl_save_exec_prefix"
11387 prefix="$acl_save_prefix"
11389 if test "X$x" = "X$element"; then
11394 if test -z "$haveit"; then
11395 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11400 echo "$as_me:$LINENO: checking for iconv" >&5
11401 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
11402 if test "${am_cv_func_iconv+set}" = set; then
11403 echo $ECHO_N "(cached) $ECHO_C" >&6
11406 am_cv_func_iconv="no, consider installing GNU libiconv"
11408 cat >conftest.$ac_ext <<_ACEOF
11411 cat confdefs.h >>conftest.$ac_ext
11412 cat >>conftest.$ac_ext <<_ACEOF
11413 /* end confdefs.h. */
11414 #include <stdlib.h>
11419 iconv_t cd = iconv_open("","");
11420 iconv(cd,NULL,NULL,NULL,NULL);
11426 rm -f conftest.$ac_objext conftest$ac_exeext
11427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11428 (eval $ac_link) 2>conftest.er1
11430 grep -v '^ *+' conftest.er1 >conftest.err
11432 cat conftest.err >&5
11433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11434 (exit $ac_status); } &&
11435 { ac_try='test -z "$ac_c_werror_flag"
11436 || test ! -s conftest.err'
11437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11438 (eval $ac_try) 2>&5
11440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11441 (exit $ac_status); }; } &&
11442 { ac_try='test -s conftest$ac_exeext'
11443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11444 (eval $ac_try) 2>&5
11446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11447 (exit $ac_status); }; }; then
11448 am_cv_func_iconv=yes
11450 echo "$as_me: failed program was:" >&5
11451 sed 's/^/| /' conftest.$ac_ext >&5
11454 rm -f conftest.err conftest.$ac_objext \
11455 conftest$ac_exeext conftest.$ac_ext
11456 if test "$am_cv_func_iconv" != yes; then
11457 am_save_LIBS="$LIBS"
11458 LIBS="$LIBS $LIBICONV"
11459 cat >conftest.$ac_ext <<_ACEOF
11462 cat confdefs.h >>conftest.$ac_ext
11463 cat >>conftest.$ac_ext <<_ACEOF
11464 /* end confdefs.h. */
11465 #include <stdlib.h>
11470 iconv_t cd = iconv_open("","");
11471 iconv(cd,NULL,NULL,NULL,NULL);
11477 rm -f conftest.$ac_objext conftest$ac_exeext
11478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11479 (eval $ac_link) 2>conftest.er1
11481 grep -v '^ *+' conftest.er1 >conftest.err
11483 cat conftest.err >&5
11484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11485 (exit $ac_status); } &&
11486 { ac_try='test -z "$ac_c_werror_flag"
11487 || test ! -s conftest.err'
11488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11489 (eval $ac_try) 2>&5
11491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11492 (exit $ac_status); }; } &&
11493 { ac_try='test -s conftest$ac_exeext'
11494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11495 (eval $ac_try) 2>&5
11497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11498 (exit $ac_status); }; }; then
11499 am_cv_lib_iconv=yes
11500 am_cv_func_iconv=yes
11502 echo "$as_me: failed program was:" >&5
11503 sed 's/^/| /' conftest.$ac_ext >&5
11506 rm -f conftest.err conftest.$ac_objext \
11507 conftest$ac_exeext conftest.$ac_ext
11508 LIBS="$am_save_LIBS"
11512 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11513 echo "${ECHO_T}$am_cv_func_iconv" >&6
11514 if test "$am_cv_func_iconv" = yes; then
11516 cat >>confdefs.h <<\_ACEOF
11517 #define HAVE_ICONV 1
11521 if test "$am_cv_lib_iconv" = yes; then
11522 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11523 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
11524 echo "$as_me:$LINENO: result: $LIBICONV" >&5
11525 echo "${ECHO_T}$LIBICONV" >&6
11527 CPPFLAGS="$am_save_CPPFLAGS"
11534 if test "$am_cv_func_iconv" = yes; then
11535 echo "$as_me:$LINENO: checking for iconv declaration" >&5
11536 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11537 if test "${am_cv_proto_iconv+set}" = set; then
11538 echo $ECHO_N "(cached) $ECHO_C" >&6
11541 cat >conftest.$ac_ext <<_ACEOF
11544 cat confdefs.h >>conftest.$ac_ext
11545 cat >>conftest.$ac_ext <<_ACEOF
11546 /* end confdefs.h. */
11548 #include <stdlib.h>
11554 #if defined(__STDC__) || defined(__cplusplus)
11555 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11568 rm -f conftest.$ac_objext
11569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11570 (eval $ac_compile) 2>conftest.er1
11572 grep -v '^ *+' conftest.er1 >conftest.err
11574 cat conftest.err >&5
11575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11576 (exit $ac_status); } &&
11577 { ac_try='test -z "$ac_c_werror_flag"
11578 || test ! -s conftest.err'
11579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11580 (eval $ac_try) 2>&5
11582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11583 (exit $ac_status); }; } &&
11584 { ac_try='test -s conftest.$ac_objext'
11585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11586 (eval $ac_try) 2>&5
11588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11589 (exit $ac_status); }; }; then
11590 am_cv_proto_iconv_arg1=""
11592 echo "$as_me: failed program was:" >&5
11593 sed 's/^/| /' conftest.$ac_ext >&5
11595 am_cv_proto_iconv_arg1="const"
11597 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11598 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
11601 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11602 echo "$as_me:$LINENO: result: ${ac_t:-
11603 }$am_cv_proto_iconv" >&5
11604 echo "${ECHO_T}${ac_t:-
11605 }$am_cv_proto_iconv" >&6
11607 cat >>confdefs.h <<_ACEOF
11608 #define ICONV_CONST $am_cv_proto_iconv_arg1
11614 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11615 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11616 if test "${am_cv_langinfo_codeset+set}" = set; then
11617 echo $ECHO_N "(cached) $ECHO_C" >&6
11619 cat >conftest.$ac_ext <<_ACEOF
11622 cat confdefs.h >>conftest.$ac_ext
11623 cat >>conftest.$ac_ext <<_ACEOF
11624 /* end confdefs.h. */
11625 #include <langinfo.h>
11629 char* cs = nl_langinfo(CODESET);
11634 rm -f conftest.$ac_objext conftest$ac_exeext
11635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11636 (eval $ac_link) 2>conftest.er1
11638 grep -v '^ *+' conftest.er1 >conftest.err
11640 cat conftest.err >&5
11641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11642 (exit $ac_status); } &&
11643 { ac_try='test -z "$ac_c_werror_flag"
11644 || test ! -s conftest.err'
11645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11646 (eval $ac_try) 2>&5
11648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11649 (exit $ac_status); }; } &&
11650 { ac_try='test -s conftest$ac_exeext'
11651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11652 (eval $ac_try) 2>&5
11654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11655 (exit $ac_status); }; }; then
11656 am_cv_langinfo_codeset=yes
11658 echo "$as_me: failed program was:" >&5
11659 sed 's/^/| /' conftest.$ac_ext >&5
11661 am_cv_langinfo_codeset=no
11663 rm -f conftest.err conftest.$ac_objext \
11664 conftest$ac_exeext conftest.$ac_ext
11667 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11668 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11669 if test $am_cv_langinfo_codeset = yes; then
11671 cat >>confdefs.h <<\_ACEOF
11672 #define HAVE_LANGINFO_CODESET 1
11677 if test $ac_cv_header_locale_h = yes; then
11679 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11680 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11681 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
11682 echo $ECHO_N "(cached) $ECHO_C" >&6
11684 cat >conftest.$ac_ext <<_ACEOF
11687 cat confdefs.h >>conftest.$ac_ext
11688 cat >>conftest.$ac_ext <<_ACEOF
11689 /* end confdefs.h. */
11690 #include <locale.h>
11699 rm -f conftest.$ac_objext conftest$ac_exeext
11700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11701 (eval $ac_link) 2>conftest.er1
11703 grep -v '^ *+' conftest.er1 >conftest.err
11705 cat conftest.err >&5
11706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11707 (exit $ac_status); } &&
11708 { ac_try='test -z "$ac_c_werror_flag"
11709 || test ! -s conftest.err'
11710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11711 (eval $ac_try) 2>&5
11713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11714 (exit $ac_status); }; } &&
11715 { ac_try='test -s conftest$ac_exeext'
11716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11717 (eval $ac_try) 2>&5
11719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11720 (exit $ac_status); }; }; then
11721 gt_cv_val_LC_MESSAGES=yes
11723 echo "$as_me: failed program was:" >&5
11724 sed 's/^/| /' conftest.$ac_ext >&5
11726 gt_cv_val_LC_MESSAGES=no
11728 rm -f conftest.err conftest.$ac_objext \
11729 conftest$ac_exeext conftest.$ac_ext
11731 echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
11732 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6
11733 if test $gt_cv_val_LC_MESSAGES = yes; then
11735 cat >>confdefs.h <<\_ACEOF
11736 #define HAVE_LC_MESSAGES 1
11743 if test -n "$INTL_MACOSX_LIBS"; then
11744 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
11747 for ac_prog in bison
11749 # Extract the first word of "$ac_prog", so it can be a program name with args.
11750 set dummy $ac_prog; ac_word=$2
11751 echo "$as_me:$LINENO: checking for $ac_word" >&5
11752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11753 if test "${ac_cv_prog_INTLBISON+set}" = set; then
11754 echo $ECHO_N "(cached) $ECHO_C" >&6
11756 if test -n "$INTLBISON"; then
11757 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
11759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11760 for as_dir in $PATH
11763 test -z "$as_dir" && as_dir=.
11764 for ac_exec_ext in '' $ac_executable_extensions; do
11765 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11766 ac_cv_prog_INTLBISON="$ac_prog"
11767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11775 INTLBISON=$ac_cv_prog_INTLBISON
11776 if test -n "$INTLBISON"; then
11777 echo "$as_me:$LINENO: result: $INTLBISON" >&5
11778 echo "${ECHO_T}$INTLBISON" >&6
11780 echo "$as_me:$LINENO: result: no" >&5
11781 echo "${ECHO_T}no" >&6
11784 test -n "$INTLBISON" && break
11787 if test -z "$INTLBISON"; then
11790 echo "$as_me:$LINENO: checking version of bison" >&5
11791 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
11792 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
11793 case $ac_prog_version in
11794 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
11795 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
11796 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
11797 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
11799 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
11800 echo "${ECHO_T}$ac_prog_version" >&6
11802 if test $ac_verc_fail = yes; then
11821 echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
11822 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6
11823 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
11824 echo $ECHO_N "(cached) $ECHO_C" >&6
11826 gt_save_CPPFLAGS="$CPPFLAGS"
11827 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
11828 gt_save_LIBS="$LIBS"
11829 LIBS="$LIBS -framework CoreFoundation"
11830 cat >conftest.$ac_ext <<_ACEOF
11833 cat confdefs.h >>conftest.$ac_ext
11834 cat >>conftest.$ac_ext <<_ACEOF
11835 /* end confdefs.h. */
11836 #include <CFPreferences.h>
11840 CFPreferencesCopyAppValue(NULL, NULL)
11845 rm -f conftest.$ac_objext conftest$ac_exeext
11846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11847 (eval $ac_link) 2>conftest.er1
11849 grep -v '^ *+' conftest.er1 >conftest.err
11851 cat conftest.err >&5
11852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11853 (exit $ac_status); } &&
11854 { ac_try='test -z "$ac_c_werror_flag"
11855 || test ! -s conftest.err'
11856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11857 (eval $ac_try) 2>&5
11859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11860 (exit $ac_status); }; } &&
11861 { ac_try='test -s conftest$ac_exeext'
11862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11863 (eval $ac_try) 2>&5
11865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11866 (exit $ac_status); }; }; then
11867 gt_cv_func_CFPreferencesCopyAppValue=yes
11869 echo "$as_me: failed program was:" >&5
11870 sed 's/^/| /' conftest.$ac_ext >&5
11872 gt_cv_func_CFPreferencesCopyAppValue=no
11874 rm -f conftest.err conftest.$ac_objext \
11875 conftest$ac_exeext conftest.$ac_ext
11876 CPPFLAGS="$gt_save_CPPFLAGS"
11877 LIBS="$gt_save_LIBS"
11879 echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
11880 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6
11881 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
11883 cat >>confdefs.h <<\_ACEOF
11884 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
11888 echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
11889 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6
11890 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
11891 echo $ECHO_N "(cached) $ECHO_C" >&6
11893 gt_save_CPPFLAGS="$CPPFLAGS"
11894 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
11895 gt_save_LIBS="$LIBS"
11896 LIBS="$LIBS -framework CoreFoundation"
11897 cat >conftest.$ac_ext <<_ACEOF
11900 cat confdefs.h >>conftest.$ac_ext
11901 cat >>conftest.$ac_ext <<_ACEOF
11902 /* end confdefs.h. */
11903 #include <CFLocale.h>
11907 CFLocaleCopyCurrent();
11912 rm -f conftest.$ac_objext conftest$ac_exeext
11913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11914 (eval $ac_link) 2>conftest.er1
11916 grep -v '^ *+' conftest.er1 >conftest.err
11918 cat conftest.err >&5
11919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11920 (exit $ac_status); } &&
11921 { ac_try='test -z "$ac_c_werror_flag"
11922 || test ! -s conftest.err'
11923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11924 (eval $ac_try) 2>&5
11926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11927 (exit $ac_status); }; } &&
11928 { ac_try='test -s conftest$ac_exeext'
11929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11930 (eval $ac_try) 2>&5
11932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11933 (exit $ac_status); }; }; then
11934 gt_cv_func_CFLocaleCopyCurrent=yes
11936 echo "$as_me: failed program was:" >&5
11937 sed 's/^/| /' conftest.$ac_ext >&5
11939 gt_cv_func_CFLocaleCopyCurrent=no
11941 rm -f conftest.err conftest.$ac_objext \
11942 conftest$ac_exeext conftest.$ac_ext
11943 CPPFLAGS="$gt_save_CPPFLAGS"
11944 LIBS="$gt_save_LIBS"
11946 echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
11947 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6
11948 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
11950 cat >>confdefs.h <<\_ACEOF
11951 #define HAVE_CFLOCALECOPYCURRENT 1
11956 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
11957 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
11963 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
11964 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
11965 # Check whether --enable-nls or --disable-nls was given.
11966 if test "${enable_nls+set}" = set; then
11967 enableval="$enable_nls"
11972 echo "$as_me:$LINENO: result: $USE_NLS" >&5
11973 echo "${ECHO_T}$USE_NLS" >&6
11978 BUILD_INCLUDED_LIBINTL=no
11979 USE_INCLUDED_LIBINTL=no
11985 if test "$USE_NLS" = "yes"; then
11986 gt_use_preinstalled_gnugettext=no
11988 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
11989 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
11991 # Check whether --with-included-gettext or --without-included-gettext was given.
11992 if test "${with_included_gettext+set}" = set; then
11993 withval="$with_included_gettext"
11994 nls_cv_force_use_gnu_gettext=$withval
11996 nls_cv_force_use_gnu_gettext=no
11998 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
11999 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
12001 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
12002 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
12009 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
12010 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
12011 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
12012 echo $ECHO_N "(cached) $ECHO_C" >&6
12014 cat >conftest.$ac_ext <<_ACEOF
12017 cat confdefs.h >>conftest.$ac_ext
12018 cat >>conftest.$ac_ext <<_ACEOF
12019 /* end confdefs.h. */
12020 #include <libintl.h>
12021 extern int _nl_msg_cat_cntr;
12022 extern int *_nl_domain_bindings;
12026 bindtextdomain ("", "");
12027 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
12032 rm -f conftest.$ac_objext conftest$ac_exeext
12033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12034 (eval $ac_link) 2>conftest.er1
12036 grep -v '^ *+' conftest.er1 >conftest.err
12038 cat conftest.err >&5
12039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12040 (exit $ac_status); } &&
12041 { ac_try='test -z "$ac_c_werror_flag"
12042 || test ! -s conftest.err'
12043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12044 (eval $ac_try) 2>&5
12046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047 (exit $ac_status); }; } &&
12048 { ac_try='test -s conftest$ac_exeext'
12049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12050 (eval $ac_try) 2>&5
12052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12053 (exit $ac_status); }; }; then
12054 gt_cv_func_gnugettext1_libc=yes
12056 echo "$as_me: failed program was:" >&5
12057 sed 's/^/| /' conftest.$ac_ext >&5
12059 gt_cv_func_gnugettext1_libc=no
12061 rm -f conftest.err conftest.$ac_objext \
12062 conftest$ac_exeext conftest.$ac_ext
12064 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
12065 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
12067 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
12073 acl_save_prefix="$prefix"
12074 prefix="$acl_final_prefix"
12075 acl_save_exec_prefix="$exec_prefix"
12076 exec_prefix="$acl_final_exec_prefix"
12078 eval additional_includedir=\"$includedir\"
12079 eval additional_libdir=\"$libdir\"
12081 exec_prefix="$acl_save_exec_prefix"
12082 prefix="$acl_save_prefix"
12085 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
12086 if test "${with_libintl_prefix+set}" = set; then
12087 withval="$with_libintl_prefix"
12089 if test "X$withval" = "Xno"; then
12092 if test "X$withval" = "X"; then
12094 acl_save_prefix="$prefix"
12095 prefix="$acl_final_prefix"
12096 acl_save_exec_prefix="$exec_prefix"
12097 exec_prefix="$acl_final_exec_prefix"
12099 eval additional_includedir=\"$includedir\"
12100 eval additional_libdir=\"$libdir\"
12102 exec_prefix="$acl_save_exec_prefix"
12103 prefix="$acl_save_prefix"
12106 additional_includedir="$withval/include"
12107 additional_libdir="$withval/lib"
12117 names_already_handled=
12118 names_next_round='intl '
12119 while test -n "$names_next_round"; do
12120 names_this_round="$names_next_round"
12122 for name in $names_this_round; do
12124 for n in $names_already_handled; do
12125 if test "$n" = "$name"; then
12126 already_handled=yes
12130 if test -z "$already_handled"; then
12131 names_already_handled="$names_already_handled $name"
12132 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12133 eval value=\"\$HAVE_LIB$uppername\"
12134 if test -n "$value"; then
12135 if test "$value" = yes; then
12136 eval value=\"\$LIB$uppername\"
12137 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
12138 eval value=\"\$LTLIB$uppername\"
12139 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
12148 if test $use_additional = yes; then
12149 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
12150 found_dir="$additional_libdir"
12151 found_so="$additional_libdir/lib$name.$shlibext"
12152 if test -f "$additional_libdir/lib$name.la"; then
12153 found_la="$additional_libdir/lib$name.la"
12156 if test -f "$additional_libdir/lib$name.$libext"; then
12157 found_dir="$additional_libdir"
12158 found_a="$additional_libdir/lib$name.$libext"
12159 if test -f "$additional_libdir/lib$name.la"; then
12160 found_la="$additional_libdir/lib$name.la"
12165 if test "X$found_dir" = "X"; then
12166 for x in $LDFLAGS $LTLIBINTL; do
12168 acl_save_prefix="$prefix"
12169 prefix="$acl_final_prefix"
12170 acl_save_exec_prefix="$exec_prefix"
12171 exec_prefix="$acl_final_exec_prefix"
12173 exec_prefix="$acl_save_exec_prefix"
12174 prefix="$acl_save_prefix"
12178 dir=`echo "X$x" | sed -e 's/^X-L//'`
12179 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
12181 found_so="$dir/lib$name.$shlibext"
12182 if test -f "$dir/lib$name.la"; then
12183 found_la="$dir/lib$name.la"
12186 if test -f "$dir/lib$name.$libext"; then
12188 found_a="$dir/lib$name.$libext"
12189 if test -f "$dir/lib$name.la"; then
12190 found_la="$dir/lib$name.la"
12196 if test "X$found_dir" != "X"; then
12201 if test "X$found_dir" != "X"; then
12202 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
12203 if test "X$found_so" != "X"; then
12204 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
12205 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12208 for x in $ltrpathdirs; do
12209 if test "X$x" = "X$found_dir"; then
12214 if test -z "$haveit"; then
12215 ltrpathdirs="$ltrpathdirs $found_dir"
12217 if test "$hardcode_direct" = yes; then
12218 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12220 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
12221 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12223 for x in $rpathdirs; do
12224 if test "X$x" = "X$found_dir"; then
12229 if test -z "$haveit"; then
12230 rpathdirs="$rpathdirs $found_dir"
12234 for x in $LDFLAGS $LIBINTL; do
12236 acl_save_prefix="$prefix"
12237 prefix="$acl_final_prefix"
12238 acl_save_exec_prefix="$exec_prefix"
12239 exec_prefix="$acl_final_exec_prefix"
12241 exec_prefix="$acl_save_exec_prefix"
12242 prefix="$acl_save_prefix"
12244 if test "X$x" = "X-L$found_dir"; then
12249 if test -z "$haveit"; then
12250 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
12252 if test "$hardcode_minus_L" != no; then
12253 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12255 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12261 if test "X$found_a" != "X"; then
12262 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
12264 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
12267 additional_includedir=
12268 case "$found_dir" in
12270 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
12271 additional_includedir="$basedir/include"
12274 if test "X$additional_includedir" != "X"; then
12275 if test "X$additional_includedir" != "X/usr/include"; then
12277 if test "X$additional_includedir" = "X/usr/local/include"; then
12278 if test -n "$GCC"; then
12280 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12284 if test -z "$haveit"; then
12285 for x in $CPPFLAGS $INCINTL; do
12287 acl_save_prefix="$prefix"
12288 prefix="$acl_final_prefix"
12289 acl_save_exec_prefix="$exec_prefix"
12290 exec_prefix="$acl_final_exec_prefix"
12292 exec_prefix="$acl_save_exec_prefix"
12293 prefix="$acl_save_prefix"
12295 if test "X$x" = "X-I$additional_includedir"; then
12300 if test -z "$haveit"; then
12301 if test -d "$additional_includedir"; then
12302 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
12308 if test -n "$found_la"; then
12309 save_libdir="$libdir"
12310 case "$found_la" in
12311 */* | *\\*) . "$found_la" ;;
12312 *) . "./$found_la" ;;
12314 libdir="$save_libdir"
12315 for dep in $dependency_libs; do
12318 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12319 if test "X$additional_libdir" != "X/usr/lib"; then
12321 if test "X$additional_libdir" = "X/usr/local/lib"; then
12322 if test -n "$GCC"; then
12324 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12328 if test -z "$haveit"; then
12330 for x in $LDFLAGS $LIBINTL; do
12332 acl_save_prefix="$prefix"
12333 prefix="$acl_final_prefix"
12334 acl_save_exec_prefix="$exec_prefix"
12335 exec_prefix="$acl_final_exec_prefix"
12337 exec_prefix="$acl_save_exec_prefix"
12338 prefix="$acl_save_prefix"
12340 if test "X$x" = "X-L$additional_libdir"; then
12345 if test -z "$haveit"; then
12346 if test -d "$additional_libdir"; then
12347 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
12351 for x in $LDFLAGS $LTLIBINTL; do
12353 acl_save_prefix="$prefix"
12354 prefix="$acl_final_prefix"
12355 acl_save_exec_prefix="$exec_prefix"
12356 exec_prefix="$acl_final_exec_prefix"
12358 exec_prefix="$acl_save_exec_prefix"
12359 prefix="$acl_save_prefix"
12361 if test "X$x" = "X-L$additional_libdir"; then
12366 if test -z "$haveit"; then
12367 if test -d "$additional_libdir"; then
12368 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
12375 dir=`echo "X$dep" | sed -e 's/^X-R//'`
12376 if test "$enable_rpath" != no; then
12378 for x in $rpathdirs; do
12379 if test "X$x" = "X$dir"; then
12384 if test -z "$haveit"; then
12385 rpathdirs="$rpathdirs $dir"
12388 for x in $ltrpathdirs; do
12389 if test "X$x" = "X$dir"; then
12394 if test -z "$haveit"; then
12395 ltrpathdirs="$ltrpathdirs $dir"
12400 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12403 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12406 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
12407 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
12413 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12414 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
12420 if test "X$rpathdirs" != "X"; then
12421 if test -n "$hardcode_libdir_separator"; then
12423 for found_dir in $rpathdirs; do
12424 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
12426 acl_save_libdir="$libdir"
12428 eval flag=\"$hardcode_libdir_flag_spec\"
12429 libdir="$acl_save_libdir"
12430 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12432 for found_dir in $rpathdirs; do
12433 acl_save_libdir="$libdir"
12434 libdir="$found_dir"
12435 eval flag=\"$hardcode_libdir_flag_spec\"
12436 libdir="$acl_save_libdir"
12437 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12441 if test "X$ltrpathdirs" != "X"; then
12442 for found_dir in $ltrpathdirs; do
12443 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
12447 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
12448 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
12449 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
12450 echo $ECHO_N "(cached) $ECHO_C" >&6
12452 gt_save_CPPFLAGS="$CPPFLAGS"
12453 CPPFLAGS="$CPPFLAGS $INCINTL"
12454 gt_save_LIBS="$LIBS"
12455 LIBS="$LIBS $LIBINTL"
12456 cat >conftest.$ac_ext <<_ACEOF
12459 cat confdefs.h >>conftest.$ac_ext
12460 cat >>conftest.$ac_ext <<_ACEOF
12461 /* end confdefs.h. */
12462 #include <libintl.h>
12463 extern int _nl_msg_cat_cntr;
12468 const char *_nl_expand_alias (const char *);
12472 bindtextdomain ("", "");
12473 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
12478 rm -f conftest.$ac_objext conftest$ac_exeext
12479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12480 (eval $ac_link) 2>conftest.er1
12482 grep -v '^ *+' conftest.er1 >conftest.err
12484 cat conftest.err >&5
12485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12486 (exit $ac_status); } &&
12487 { ac_try='test -z "$ac_c_werror_flag"
12488 || test ! -s conftest.err'
12489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12490 (eval $ac_try) 2>&5
12492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12493 (exit $ac_status); }; } &&
12494 { ac_try='test -s conftest$ac_exeext'
12495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12496 (eval $ac_try) 2>&5
12498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12499 (exit $ac_status); }; }; then
12500 gt_cv_func_gnugettext1_libintl=yes
12502 echo "$as_me: failed program was:" >&5
12503 sed 's/^/| /' conftest.$ac_ext >&5
12505 gt_cv_func_gnugettext1_libintl=no
12507 rm -f conftest.err conftest.$ac_objext \
12508 conftest$ac_exeext conftest.$ac_ext
12509 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
12510 LIBS="$LIBS $LIBICONV"
12511 cat >conftest.$ac_ext <<_ACEOF
12514 cat confdefs.h >>conftest.$ac_ext
12515 cat >>conftest.$ac_ext <<_ACEOF
12516 /* end confdefs.h. */
12517 #include <libintl.h>
12518 extern int _nl_msg_cat_cntr;
12523 const char *_nl_expand_alias (const char *);
12527 bindtextdomain ("", "");
12528 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
12533 rm -f conftest.$ac_objext conftest$ac_exeext
12534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12535 (eval $ac_link) 2>conftest.er1
12537 grep -v '^ *+' conftest.er1 >conftest.err
12539 cat conftest.err >&5
12540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12541 (exit $ac_status); } &&
12542 { ac_try='test -z "$ac_c_werror_flag"
12543 || test ! -s conftest.err'
12544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12545 (eval $ac_try) 2>&5
12547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548 (exit $ac_status); }; } &&
12549 { ac_try='test -s conftest$ac_exeext'
12550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12551 (eval $ac_try) 2>&5
12553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12554 (exit $ac_status); }; }; then
12555 LIBINTL="$LIBINTL $LIBICONV"
12556 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
12557 gt_cv_func_gnugettext1_libintl=yes
12560 echo "$as_me: failed program was:" >&5
12561 sed 's/^/| /' conftest.$ac_ext >&5
12564 rm -f conftest.err conftest.$ac_objext \
12565 conftest$ac_exeext conftest.$ac_ext
12567 CPPFLAGS="$gt_save_CPPFLAGS"
12568 LIBS="$gt_save_LIBS"
12570 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
12571 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
12574 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
12575 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
12576 && test "$PACKAGE" != gettext-runtime \
12577 && test "$PACKAGE" != gettext-tools; }; then
12578 gt_use_preinstalled_gnugettext=yes
12586 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
12587 nls_cv_use_gnu_gettext=yes
12591 if test "$nls_cv_use_gnu_gettext" = "yes"; then
12592 BUILD_INCLUDED_LIBINTL=yes
12593 USE_INCLUDED_LIBINTL=yes
12594 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
12595 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
12596 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
12600 if test "$gt_use_preinstalled_gnugettext" = "yes" \
12601 || test "$nls_cv_use_gnu_gettext" = "yes"; then
12606 if test -n "$INTL_MACOSX_LIBS"; then
12607 if test "$gt_use_preinstalled_gnugettext" = "yes" \
12608 || test "$nls_cv_use_gnu_gettext" = "yes"; then
12609 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
12610 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
12614 if test "$gt_use_preinstalled_gnugettext" = "yes" \
12615 || test "$nls_cv_use_gnu_gettext" = "yes"; then
12617 cat >>confdefs.h <<\_ACEOF
12618 #define ENABLE_NLS 1
12626 echo "$as_me:$LINENO: checking whether to use NLS" >&5
12627 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
12628 echo "$as_me:$LINENO: result: $USE_NLS" >&5
12629 echo "${ECHO_T}$USE_NLS" >&6
12630 if test "$USE_NLS" = "yes"; then
12631 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
12632 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
12633 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12634 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
12635 gt_source="external libintl"
12640 gt_source="included intl directory"
12642 echo "$as_me:$LINENO: result: $gt_source" >&5
12643 echo "${ECHO_T}$gt_source" >&6
12646 if test "$USE_NLS" = "yes"; then
12648 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12649 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
12650 echo "$as_me:$LINENO: checking how to link with libintl" >&5
12651 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
12652 echo "$as_me:$LINENO: result: $LIBINTL" >&5
12653 echo "${ECHO_T}$LIBINTL" >&6
12655 for element in $INCINTL; do
12657 for x in $CPPFLAGS; do
12659 acl_save_prefix="$prefix"
12660 prefix="$acl_final_prefix"
12661 acl_save_exec_prefix="$exec_prefix"
12662 exec_prefix="$acl_final_exec_prefix"
12664 exec_prefix="$acl_save_exec_prefix"
12665 prefix="$acl_save_prefix"
12667 if test "X$x" = "X$element"; then
12672 if test -z "$haveit"; then
12673 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12680 cat >>confdefs.h <<\_ACEOF
12681 #define HAVE_GETTEXT 1
12685 cat >>confdefs.h <<\_ACEOF
12686 #define HAVE_DCGETTEXT 1
12695 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
12696 BUILD_INCLUDED_LIBINTL=yes
12703 nls_cv_header_intl=
12704 nls_cv_header_libgt=
12716 if test "$USE_INCLUDED_LIBINTL" = yes; then
12717 INTLOBJS="\$(GETTOBJS)"
12721 INTL_LIBTOOL_SUFFIX_PREFIX=
12725 INTLLIBS="$LIBINTL"
12738 support_postgresql=no
12739 support_smartalloc=yes
12740 support_readline=yes
12744 support_wx_console=no
12749 support_static_tools=no
12750 support_static_fd=no
12751 support_static_sd=no
12752 support_static_dir=no
12753 support_static_cons=no
12755 build_client_only=no
12763 # -------------------------------------------
12764 # gnome (default off)
12765 # -------------------------------------------
12766 # Check whether --enable-gnome or --disable-gnome was given.
12767 if test "${enable_gnome+set}" = set; then
12768 enableval="$enable_gnome"
12769 if test x$enableval = xyes; then
12775 if test x$support_gnome = xyes; then
12776 abc=`$PKGCONFIG --exists libgnomeui-2.0`
12778 if test $pkg = 0; then
12779 GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
12780 GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
12781 GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
12782 GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
12787 GNOME_DIR=src/gnome2-console
12788 gnome_version="Version 2.x"
12790 { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
12791 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
12792 { (exit 1); exit 1; }; }
12797 # -------------------------------------------
12798 # bat (default off)
12799 # -------------------------------------------
12800 # Check whether --enable-bat or --disable-bat was given.
12801 if test "${enable_bat+set}" = set; then
12802 enableval="$enable_bat"
12803 if test x$enableval = xyes; then
12805 cat >>confdefs.h <<\_ACEOF
12814 if test x$support_bat = xyes; then
12815 abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
12817 if test $pkg = 0; then
12818 BAT_DIR=src/qt-console
12820 { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
12821 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
12822 { (exit 1); exit 1; }; }
12827 # If bat is enabled, we need the qwt library
12831 if test x$support_bat = xyes; then
12832 echo "$as_me:$LINENO: checking for qwt support" >&5
12833 echo $ECHO_N "checking for qwt support... $ECHO_C" >&6
12835 # Check whether --with-qwt or --without-qwt was given.
12836 if test "${with_qwt+set}" = set; then
12837 withval="$with_qwt"
12839 case "$with_qwt" in
12843 if test -f ${with_qwt}/include/qwt.h; then
12844 QWT_INC="${with_qwt}/include"
12845 QWT_LDFLAGS="-L${with_qwt}/lib"
12853 # Search in standard places, or --with-qwt not specified
12855 if test x$QWT_INC = x; then
12856 for root in /usr /usr/local; do
12857 for ver in qwt qwt5 qwt-qt4; do
12858 if test -f ${root}/include/${ver}/qwt.h; then
12859 QWT_INC="${root}/include/${ver}"
12860 if test -d ${root}/lib64/; then
12861 QWT_LDFLAGS="-L${root}/lib64"
12863 QWT_LDFLAGS="-L${root}/lib"
12871 if test x$QWT_INC = x; then
12872 echo "$as_me:$LINENO: result: no" >&5
12873 echo "${ECHO_T}no" >&6
12874 { { echo "$as_me:$LINENO: error: Unable to find qwt package needed by bat" >&5
12875 echo "$as_me: error: Unable to find qwt package needed by bat" >&2;}
12876 { (exit 1); exit 1; }; }
12880 echo "$as_me:$LINENO: result: yes" >&5
12881 echo "${ECHO_T}yes" >&6
12890 # -------------------------------------------
12891 # bwx-console (default off)
12892 # -------------------------------------------
12893 # Check whether --enable-bwx-console or --disable-bwx-console was given.
12894 if test "${enable_bwx_console+set}" = set; then
12895 enableval="$enable_bwx_console"
12896 if test x$enableval = xyes; then
12897 support_wx_console=yes
12902 if test x$support_wx_console = xyes; then
12903 abc=`$WXCONFIG $WXFLAGS --cppflags`
12905 if test $pkg = 0; then
12906 wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
12907 WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
12908 WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
12912 WX_DIR=src/wx-console
12915 echo "wx-config program not found. bwx-console disabled."
12917 support_wx_console=no
12923 # -------------------------------------------
12924 # tray-monitor (default off)
12925 # -------------------------------------------
12926 # Check whether --enable-tray-monitor or --disable-tray-monitor was given.
12927 if test "${enable_tray_monitor+set}" = set; then
12928 enableval="$enable_tray_monitor"
12929 if test x$enableval = xyes; then
12930 support_tray_monitor=yes
12935 if test x$support_tray_monitor = xyes; then
12936 abc=`$PKGCONFIG --exists gtk+-2.0`
12938 if test $pkg = 0; then
12939 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
12940 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
12943 TRAY_MONITOR_DIR=src/tray-monitor
12944 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
12946 if test $pkg = 0; then
12948 cat >>confdefs.h <<\_ACEOF
12949 #define HAVE_GTK_2_4 1
12957 # -------------------------------------------
12958 # smartalloc (default off)
12959 # -------------------------------------------
12960 # Check whether --enable-smartalloc or --disable-smartalloc was given.
12961 if test "${enable_smartalloc+set}" = set; then
12962 enableval="$enable_smartalloc"
12963 if test x$enableval = xno; then
12964 support_smartalloc=no
12968 if test x$support_smartalloc = xyes; then
12970 cat >>confdefs.h <<\_ACEOF
12971 #define SMARTALLOC 1
12976 # -------------------------------------------
12977 # static-tools (default off)
12978 # -------------------------------------------
12979 # Check whether --enable-static-tools or --disable-static-tools was given.
12980 if test "${enable_static_tools+set}" = set; then
12981 enableval="$enable_static_tools"
12982 if test x$enableval = xyes; then
12983 support_static_tools=yes
12988 if test x$support_static_tools = xyes; then
12989 TTOOL_LDFLAGS="-static"
12993 # -------------------------------------------
12994 # static-fd (default off)
12995 # -------------------------------------------
12996 # Check whether --enable-static-fd or --disable-static-fd was given.
12997 if test "${enable_static_fd+set}" = set; then
12998 enableval="$enable_static_fd"
12999 if test x$enableval = xyes; then
13000 support_static_fd=yes
13005 if test x$support_static_fd = xyes; then
13006 STATIC_FD="static-bacula-fd"
13010 # -------------------------------------------
13011 # static-sd (default off)
13012 # -------------------------------------------
13013 # Check whether --enable-static-sd or --disable-static-sd was given.
13014 if test "${enable_static_sd+set}" = set; then
13015 enableval="$enable_static_sd"
13016 if test x$enableval = xyes; then
13017 support_static_sd=yes
13022 if test x$support_static_sd = xyes; then
13023 STATIC_SD="static-bacula-sd"
13027 # -------------------------------------------
13028 # static-dir (default off)
13029 # -------------------------------------------
13030 # Check whether --enable-static-dir or --disable-static-dir was given.
13031 if test "${enable_static_dir+set}" = set; then
13032 enableval="$enable_static_dir"
13033 if test x$enableval = xyes; then
13034 support_static_dir=yes
13039 if test x$support_static_dir = xyes; then
13040 STATIC_DIR="static-bacula-dir"
13044 # -------------------------------------------
13045 # static-cons (default off)
13046 # -------------------------------------------
13047 # Check whether --enable-static-cons or --disable-static-cons was given.
13048 if test "${enable_static_cons+set}" = set; then
13049 enableval="$enable_static_cons"
13050 if test x$enableval = xyes; then
13051 support_static_cons=yes
13058 if test x$support_static_cons = xyes; then
13059 STATIC_CONS="static-bconsole"
13060 STATIC_GNOME_CONS="static-bgnome-console"
13061 STATIC_WX_CONS="static-bwx-console"
13067 # -------------------------------------------
13068 # client_only (default off)
13069 # -------------------------------------------
13070 # Check whether --enable-client-only or --disable-client-only was given.
13071 if test "${enable_client_only+set}" = set; then
13072 enableval="$enable_client_only"
13073 if test x$enableval = xyes; then
13074 build_client_only=yes
13079 if test x$build_client_only = xno; then
13086 # -------------------------------------------
13087 # director (default on)
13088 # -------------------------------------------
13089 # Check whether --enable-build-dird or --disable-build-dird was given.
13090 if test "${enable_build_dird+set}" = set; then
13091 enableval="$enable_build_dird"
13092 if test x$enableval = xno; then
13096 if test x$build_dird = xyes; then
13097 DIRD_DIR="src/dird"
13098 DIR_TOOLS="DIRTOOLS"
13101 DIR_TOOLS="NODIRTOOLS"
13106 # -------------------------------------------
13107 # stored (default on)
13108 # -------------------------------------------
13109 # Check whether --enable-build-stored or --disable-build-stored was given.
13110 if test "${enable_build_stored+set}" = set; then
13111 enableval="$enable_build_stored"
13112 if test x$enableval = xno; then
13116 if test x$build_stored = xyes; then
13117 STORED_DIR="src/stored"
13123 # ---------------------------------------------------
13124 # Check for conio (Bacula readline substitute)(
13125 # ---------------------------------------------------
13126 # this allows you to turn it completely off
13127 # Check whether --enable-conio or --disable-conio was given.
13128 if test "${enable_conio+set}" = set; then
13129 enableval="$enable_conio"
13130 if test x$enableval = xno; then
13137 # ---------------------------------------------------
13138 # Check for IPv6 support
13139 # ---------------------------------------------------
13140 # this allows you to turn it completely off
13142 # Check whether --enable-ipv6 or --disable-ipv6 was given.
13143 if test "${enable_ipv6+set}" = set; then
13144 enableval="$enable_ipv6"
13145 if test x$enableval = xno; then
13151 if test x$support_ipv6 = xyes; then
13152 cat >conftest.$ac_ext <<_ACEOF
13155 cat confdefs.h >>conftest.$ac_ext
13156 cat >>conftest.$ac_ext <<_ACEOF
13157 /* end confdefs.h. */
13158 #include <sys/types.h>
13159 #include <sys/socket.h>
13160 #include <netinet/in.h>
13164 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
13169 rm -f conftest.$ac_objext conftest$ac_exeext
13170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13171 (eval $ac_link) 2>conftest.er1
13173 grep -v '^ *+' conftest.er1 >conftest.err
13175 cat conftest.err >&5
13176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13177 (exit $ac_status); } &&
13178 { ac_try='test -z "$ac_c_werror_flag"
13179 || test ! -s conftest.err'
13180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13181 (eval $ac_try) 2>&5
13183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13184 (exit $ac_status); }; } &&
13185 { ac_try='test -s conftest$ac_exeext'
13186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13187 (eval $ac_try) 2>&5
13189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13190 (exit $ac_status); }; }; then
13193 echo "$as_me: failed program was:" >&5
13194 sed 's/^/| /' conftest.$ac_ext >&5
13198 rm -f conftest.err conftest.$ac_objext \
13199 conftest$ac_exeext conftest.$ac_ext
13202 if test x$support_ipv6 = xyes; then
13204 cat >>confdefs.h <<\_ACEOF
13205 #define HAVE_IPV6 1
13213 if test x$support_conio = xyes; then
13214 if test "${ac_cv_header_termcap_h+set}" = set; then
13215 echo "$as_me:$LINENO: checking for termcap.h" >&5
13216 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
13217 if test "${ac_cv_header_termcap_h+set}" = set; then
13218 echo $ECHO_N "(cached) $ECHO_C" >&6
13220 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
13221 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
13223 # Is the header compilable?
13224 echo "$as_me:$LINENO: checking termcap.h usability" >&5
13225 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
13226 cat >conftest.$ac_ext <<_ACEOF
13229 cat confdefs.h >>conftest.$ac_ext
13230 cat >>conftest.$ac_ext <<_ACEOF
13231 /* end confdefs.h. */
13232 $ac_includes_default
13233 #include <termcap.h>
13235 rm -f conftest.$ac_objext
13236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13237 (eval $ac_compile) 2>conftest.er1
13239 grep -v '^ *+' conftest.er1 >conftest.err
13241 cat conftest.err >&5
13242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13243 (exit $ac_status); } &&
13244 { ac_try='test -z "$ac_c_werror_flag"
13245 || test ! -s conftest.err'
13246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13247 (eval $ac_try) 2>&5
13249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13250 (exit $ac_status); }; } &&
13251 { ac_try='test -s conftest.$ac_objext'
13252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13253 (eval $ac_try) 2>&5
13255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13256 (exit $ac_status); }; }; then
13257 ac_header_compiler=yes
13259 echo "$as_me: failed program was:" >&5
13260 sed 's/^/| /' conftest.$ac_ext >&5
13262 ac_header_compiler=no
13264 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13265 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13266 echo "${ECHO_T}$ac_header_compiler" >&6
13268 # Is the header present?
13269 echo "$as_me:$LINENO: checking termcap.h presence" >&5
13270 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
13271 cat >conftest.$ac_ext <<_ACEOF
13274 cat confdefs.h >>conftest.$ac_ext
13275 cat >>conftest.$ac_ext <<_ACEOF
13276 /* end confdefs.h. */
13277 #include <termcap.h>
13279 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13280 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13282 grep -v '^ *+' conftest.er1 >conftest.err
13284 cat conftest.err >&5
13285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13286 (exit $ac_status); } >/dev/null; then
13287 if test -s conftest.err; then
13288 ac_cpp_err=$ac_c_preproc_warn_flag
13289 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13296 if test -z "$ac_cpp_err"; then
13297 ac_header_preproc=yes
13299 echo "$as_me: failed program was:" >&5
13300 sed 's/^/| /' conftest.$ac_ext >&5
13302 ac_header_preproc=no
13304 rm -f conftest.err conftest.$ac_ext
13305 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13306 echo "${ECHO_T}$ac_header_preproc" >&6
13308 # So? What about this header?
13309 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13311 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
13312 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13313 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
13314 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
13315 ac_header_preproc=yes
13318 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
13319 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
13320 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
13321 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
13322 { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
13323 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
13324 { echo "$as_me:$LINENO: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&5
13325 echo "$as_me: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
13326 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
13327 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
13328 { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
13329 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
13332 ## ------------------------------------------ ##
13333 ## Report this to the AC_PACKAGE_NAME lists. ##
13334 ## ------------------------------------------ ##
13337 sed "s/^/$as_me: WARNING: /" >&2
13340 echo "$as_me:$LINENO: checking for termcap.h" >&5
13341 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
13342 if test "${ac_cv_header_termcap_h+set}" = set; then
13343 echo $ECHO_N "(cached) $ECHO_C" >&6
13345 ac_cv_header_termcap_h=$ac_header_preproc
13347 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
13348 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
13351 if test $ac_cv_header_termcap_h = yes; then
13352 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
13353 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
13354 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
13355 echo $ECHO_N "(cached) $ECHO_C" >&6
13357 ac_check_lib_save_LIBS=$LIBS
13358 LIBS="-ltermcap $LIBS"
13359 cat >conftest.$ac_ext <<_ACEOF
13362 cat confdefs.h >>conftest.$ac_ext
13363 cat >>conftest.$ac_ext <<_ACEOF
13364 /* end confdefs.h. */
13366 /* Override any gcc2 internal prototype to avoid an error. */
13370 /* We use char because int might match the return type of a gcc2
13371 builtin and then its argument prototype would still apply. */
13381 rm -f conftest.$ac_objext conftest$ac_exeext
13382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13383 (eval $ac_link) 2>conftest.er1
13385 grep -v '^ *+' conftest.er1 >conftest.err
13387 cat conftest.err >&5
13388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13389 (exit $ac_status); } &&
13390 { ac_try='test -z "$ac_c_werror_flag"
13391 || test ! -s conftest.err'
13392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13393 (eval $ac_try) 2>&5
13395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13396 (exit $ac_status); }; } &&
13397 { ac_try='test -s conftest$ac_exeext'
13398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13399 (eval $ac_try) 2>&5
13401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13402 (exit $ac_status); }; }; then
13403 ac_cv_lib_termcap_tgetent=yes
13405 echo "$as_me: failed program was:" >&5
13406 sed 's/^/| /' conftest.$ac_ext >&5
13408 ac_cv_lib_termcap_tgetent=no
13410 rm -f conftest.err conftest.$ac_objext \
13411 conftest$ac_exeext conftest.$ac_ext
13412 LIBS=$ac_check_lib_save_LIBS
13414 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
13415 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
13416 if test $ac_cv_lib_termcap_tgetent = yes; then
13417 CONS_LIBS="-ltermcap"
13421 support_readline=no
13423 cat >>confdefs.h <<\_ACEOF
13424 #define HAVE_CONIO 1
13429 echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
13430 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
13431 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
13432 echo $ECHO_N "(cached) $ECHO_C" >&6
13434 ac_check_lib_save_LIBS=$LIBS
13435 LIBS="-lncurses $LIBS"
13436 cat >conftest.$ac_ext <<_ACEOF
13439 cat confdefs.h >>conftest.$ac_ext
13440 cat >>conftest.$ac_ext <<_ACEOF
13441 /* end confdefs.h. */
13443 /* Override any gcc2 internal prototype to avoid an error. */
13447 /* We use char because int might match the return type of a gcc2
13448 builtin and then its argument prototype would still apply. */
13458 rm -f conftest.$ac_objext conftest$ac_exeext
13459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13460 (eval $ac_link) 2>conftest.er1
13462 grep -v '^ *+' conftest.er1 >conftest.err
13464 cat conftest.err >&5
13465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13466 (exit $ac_status); } &&
13467 { ac_try='test -z "$ac_c_werror_flag"
13468 || test ! -s conftest.err'
13469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13470 (eval $ac_try) 2>&5
13472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13473 (exit $ac_status); }; } &&
13474 { ac_try='test -s conftest$ac_exeext'
13475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13476 (eval $ac_try) 2>&5
13478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13479 (exit $ac_status); }; }; then
13480 ac_cv_lib_ncurses_tgetent=yes
13482 echo "$as_me: failed program was:" >&5
13483 sed 's/^/| /' conftest.$ac_ext >&5
13485 ac_cv_lib_ncurses_tgetent=no
13487 rm -f conftest.err conftest.$ac_objext \
13488 conftest$ac_exeext conftest.$ac_ext
13489 LIBS=$ac_check_lib_save_LIBS
13491 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
13492 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
13493 if test $ac_cv_lib_ncurses_tgetent = yes; then
13494 CONS_LIBS="-lncurses"
13498 support_readline=no
13500 cat >>confdefs.h <<\_ACEOF
13501 #define HAVE_CONIO 1
13514 for ac_header in curses.h
13516 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13517 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13518 echo "$as_me:$LINENO: checking for $ac_header" >&5
13519 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13520 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13521 echo $ECHO_N "(cached) $ECHO_C" >&6
13523 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13524 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13526 # Is the header compilable?
13527 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13528 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13529 cat >conftest.$ac_ext <<_ACEOF
13532 cat confdefs.h >>conftest.$ac_ext
13533 cat >>conftest.$ac_ext <<_ACEOF
13534 /* end confdefs.h. */
13535 $ac_includes_default
13536 #include <$ac_header>
13538 rm -f conftest.$ac_objext
13539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13540 (eval $ac_compile) 2>conftest.er1
13542 grep -v '^ *+' conftest.er1 >conftest.err
13544 cat conftest.err >&5
13545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13546 (exit $ac_status); } &&
13547 { ac_try='test -z "$ac_c_werror_flag"
13548 || test ! -s conftest.err'
13549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13550 (eval $ac_try) 2>&5
13552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13553 (exit $ac_status); }; } &&
13554 { ac_try='test -s conftest.$ac_objext'
13555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13556 (eval $ac_try) 2>&5
13558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13559 (exit $ac_status); }; }; then
13560 ac_header_compiler=yes
13562 echo "$as_me: failed program was:" >&5
13563 sed 's/^/| /' conftest.$ac_ext >&5
13565 ac_header_compiler=no
13567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13568 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13569 echo "${ECHO_T}$ac_header_compiler" >&6
13571 # Is the header present?
13572 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13573 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13574 cat >conftest.$ac_ext <<_ACEOF
13577 cat confdefs.h >>conftest.$ac_ext
13578 cat >>conftest.$ac_ext <<_ACEOF
13579 /* end confdefs.h. */
13580 #include <$ac_header>
13582 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13583 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13585 grep -v '^ *+' conftest.er1 >conftest.err
13587 cat conftest.err >&5
13588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13589 (exit $ac_status); } >/dev/null; then
13590 if test -s conftest.err; then
13591 ac_cpp_err=$ac_c_preproc_warn_flag
13592 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13599 if test -z "$ac_cpp_err"; then
13600 ac_header_preproc=yes
13602 echo "$as_me: failed program was:" >&5
13603 sed 's/^/| /' conftest.$ac_ext >&5
13605 ac_header_preproc=no
13607 rm -f conftest.err conftest.$ac_ext
13608 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13609 echo "${ECHO_T}$ac_header_preproc" >&6
13611 # So? What about this header?
13612 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13614 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13615 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13616 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13617 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13618 ac_header_preproc=yes
13621 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13622 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13623 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13624 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13625 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13626 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13627 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13628 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13629 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13630 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13631 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13632 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13635 ## ------------------------------------------ ##
13636 ## Report this to the AC_PACKAGE_NAME lists. ##
13637 ## ------------------------------------------ ##
13640 sed "s/^/$as_me: WARNING: /" >&2
13643 echo "$as_me:$LINENO: checking for $ac_header" >&5
13644 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13645 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13646 echo $ECHO_N "(cached) $ECHO_C" >&6
13648 eval "$as_ac_Header=\$ac_header_preproc"
13650 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13651 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13654 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13655 cat >>confdefs.h <<_ACEOF
13656 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13663 echo "$as_me:$LINENO: checking for term.h" >&5
13664 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
13665 if test "${ac_cv_header_term_h+set}" = set; then
13666 echo $ECHO_N "(cached) $ECHO_C" >&6
13668 cat >conftest.$ac_ext <<_ACEOF
13671 cat confdefs.h >>conftest.$ac_ext
13672 cat >>conftest.$ac_ext <<_ACEOF
13673 /* end confdefs.h. */
13675 #include <curses.h>
13681 rm -f conftest.$ac_objext
13682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13683 (eval $ac_compile) 2>conftest.er1
13685 grep -v '^ *+' conftest.er1 >conftest.err
13687 cat conftest.err >&5
13688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13689 (exit $ac_status); } &&
13690 { ac_try='test -z "$ac_c_werror_flag"
13691 || test ! -s conftest.err'
13692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13693 (eval $ac_try) 2>&5
13695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13696 (exit $ac_status); }; } &&
13697 { ac_try='test -s conftest.$ac_objext'
13698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13699 (eval $ac_try) 2>&5
13701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702 (exit $ac_status); }; }; then
13703 ac_cv_header_term_h=yes
13705 echo "$as_me: failed program was:" >&5
13706 sed 's/^/| /' conftest.$ac_ext >&5
13708 ac_cv_header_term_h=no
13710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13712 echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
13713 echo "${ECHO_T}$ac_cv_header_term_h" >&6
13714 if test $ac_cv_header_term_h = yes; then
13715 echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
13716 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
13717 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
13718 echo $ECHO_N "(cached) $ECHO_C" >&6
13720 ac_check_lib_save_LIBS=$LIBS
13721 LIBS="-lcurses $LIBS"
13722 cat >conftest.$ac_ext <<_ACEOF
13725 cat confdefs.h >>conftest.$ac_ext
13726 cat >>conftest.$ac_ext <<_ACEOF
13727 /* end confdefs.h. */
13729 /* Override any gcc2 internal prototype to avoid an error. */
13733 /* We use char because int might match the return type of a gcc2
13734 builtin and then its argument prototype would still apply. */
13744 rm -f conftest.$ac_objext conftest$ac_exeext
13745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13746 (eval $ac_link) 2>conftest.er1
13748 grep -v '^ *+' conftest.er1 >conftest.err
13750 cat conftest.err >&5
13751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13752 (exit $ac_status); } &&
13753 { ac_try='test -z "$ac_c_werror_flag"
13754 || test ! -s conftest.err'
13755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13756 (eval $ac_try) 2>&5
13758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759 (exit $ac_status); }; } &&
13760 { ac_try='test -s conftest$ac_exeext'
13761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13762 (eval $ac_try) 2>&5
13764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13765 (exit $ac_status); }; }; then
13766 ac_cv_lib_curses_tgetent=yes
13768 echo "$as_me: failed program was:" >&5
13769 sed 's/^/| /' conftest.$ac_ext >&5
13771 ac_cv_lib_curses_tgetent=no
13773 rm -f conftest.err conftest.$ac_objext \
13774 conftest$ac_exeext conftest.$ac_ext
13775 LIBS=$ac_check_lib_save_LIBS
13777 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
13778 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
13779 if test $ac_cv_lib_curses_tgetent = yes; then
13780 CONS_LIBS="-lcurses"
13784 support_readline=no
13786 cat >>confdefs.h <<\_ACEOF
13787 #define HAVE_CONIO 1
13795 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
13806 # ---------------------------------------------------
13807 # Check for readline support/directory (default off)
13808 # ---------------------------------------------------
13809 # this allows you to turn it completely off
13810 # Check whether --enable-readline or --disable-readline was given.
13811 if test "${enable_readline+set}" = set; then
13812 enableval="$enable_readline"
13813 if test x$enableval = xno; then
13814 support_readline=no
13820 if test x$support_readline = xyes; then
13822 # Check whether --with-readline or --without-readline was given.
13823 if test "${with_readline+set}" = set; then
13824 withval="$with_readline"
13826 case "$with_readline" in
13829 if test -f ${with_readline}/readline.h; then
13830 CONS_INC="-I${with_readline}"
13831 CONS_LDFLAGS="-L$with_readline"
13832 elif test -f ${with_readline}/include/readline/readline.h; then
13833 CONS_INC="-I${with_readline}/include/readline"
13834 CONS_LDFLAGS="-L${with_readline}/lib"
13835 with_readline="${with_readline}/include/readline"
13837 with_readline="/usr/include/readline"
13839 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
13840 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13841 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
13842 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
13843 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13844 echo $ECHO_N "(cached) $ECHO_C" >&6
13846 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13847 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13849 # Is the header compilable?
13850 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
13851 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
13852 cat >conftest.$ac_ext <<_ACEOF
13855 cat confdefs.h >>conftest.$ac_ext
13856 cat >>conftest.$ac_ext <<_ACEOF
13857 /* end confdefs.h. */
13858 $ac_includes_default
13859 #include <${with_readline}/readline.h>
13861 rm -f conftest.$ac_objext
13862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13863 (eval $ac_compile) 2>conftest.er1
13865 grep -v '^ *+' conftest.er1 >conftest.err
13867 cat conftest.err >&5
13868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13869 (exit $ac_status); } &&
13870 { ac_try='test -z "$ac_c_werror_flag"
13871 || test ! -s conftest.err'
13872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13873 (eval $ac_try) 2>&5
13875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13876 (exit $ac_status); }; } &&
13877 { ac_try='test -s conftest.$ac_objext'
13878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13879 (eval $ac_try) 2>&5
13881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13882 (exit $ac_status); }; }; then
13883 ac_header_compiler=yes
13885 echo "$as_me: failed program was:" >&5
13886 sed 's/^/| /' conftest.$ac_ext >&5
13888 ac_header_compiler=no
13890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13891 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13892 echo "${ECHO_T}$ac_header_compiler" >&6
13894 # Is the header present?
13895 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
13896 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
13897 cat >conftest.$ac_ext <<_ACEOF
13900 cat confdefs.h >>conftest.$ac_ext
13901 cat >>conftest.$ac_ext <<_ACEOF
13902 /* end confdefs.h. */
13903 #include <${with_readline}/readline.h>
13905 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13906 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13908 grep -v '^ *+' conftest.er1 >conftest.err
13910 cat conftest.err >&5
13911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13912 (exit $ac_status); } >/dev/null; then
13913 if test -s conftest.err; then
13914 ac_cpp_err=$ac_c_preproc_warn_flag
13915 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13922 if test -z "$ac_cpp_err"; then
13923 ac_header_preproc=yes
13925 echo "$as_me: failed program was:" >&5
13926 sed 's/^/| /' conftest.$ac_ext >&5
13928 ac_header_preproc=no
13930 rm -f conftest.err conftest.$ac_ext
13931 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13932 echo "${ECHO_T}$ac_header_preproc" >&6
13934 # So? What about this header?
13935 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13937 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
13938 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13939 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
13940 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
13941 ac_header_preproc=yes
13944 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
13945 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
13946 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
13947 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
13948 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
13949 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
13950 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&5
13951 echo "$as_me: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
13952 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
13953 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
13954 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
13955 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
13958 ## ------------------------------------------ ##
13959 ## Report this to the AC_PACKAGE_NAME lists. ##
13960 ## ------------------------------------------ ##
13963 sed "s/^/$as_me: WARNING: /" >&2
13966 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
13967 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
13968 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13969 echo $ECHO_N "(cached) $ECHO_C" >&6
13971 eval "$as_ac_Header=\$ac_header_preproc"
13973 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13974 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13977 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13979 cat >>confdefs.h <<\_ACEOF
13980 #define HAVE_READLINE 1
13983 CONS_LIBS="-lreadline -lhistory -ltermcap"
13988 echo "readline.h not found. readline turned off ..."
14000 # check for standard readline library
14001 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14002 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
14003 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
14004 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14005 echo $ECHO_N "(cached) $ECHO_C" >&6
14007 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
14008 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
14010 # Is the header compilable?
14011 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
14012 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
14013 cat >conftest.$ac_ext <<_ACEOF
14016 cat confdefs.h >>conftest.$ac_ext
14017 cat >>conftest.$ac_ext <<_ACEOF
14018 /* end confdefs.h. */
14019 $ac_includes_default
14020 #include </usr/include/readline/readline.h>
14022 rm -f conftest.$ac_objext
14023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14024 (eval $ac_compile) 2>conftest.er1
14026 grep -v '^ *+' conftest.er1 >conftest.err
14028 cat conftest.err >&5
14029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030 (exit $ac_status); } &&
14031 { ac_try='test -z "$ac_c_werror_flag"
14032 || test ! -s conftest.err'
14033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14034 (eval $ac_try) 2>&5
14036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14037 (exit $ac_status); }; } &&
14038 { ac_try='test -s conftest.$ac_objext'
14039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14040 (eval $ac_try) 2>&5
14042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14043 (exit $ac_status); }; }; then
14044 ac_header_compiler=yes
14046 echo "$as_me: failed program was:" >&5
14047 sed 's/^/| /' conftest.$ac_ext >&5
14049 ac_header_compiler=no
14051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14052 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14053 echo "${ECHO_T}$ac_header_compiler" >&6
14055 # Is the header present?
14056 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
14057 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
14058 cat >conftest.$ac_ext <<_ACEOF
14061 cat confdefs.h >>conftest.$ac_ext
14062 cat >>conftest.$ac_ext <<_ACEOF
14063 /* end confdefs.h. */
14064 #include </usr/include/readline/readline.h>
14066 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14067 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14069 grep -v '^ *+' conftest.er1 >conftest.err
14071 cat conftest.err >&5
14072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14073 (exit $ac_status); } >/dev/null; then
14074 if test -s conftest.err; then
14075 ac_cpp_err=$ac_c_preproc_warn_flag
14076 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14083 if test -z "$ac_cpp_err"; then
14084 ac_header_preproc=yes
14086 echo "$as_me: failed program was:" >&5
14087 sed 's/^/| /' conftest.$ac_ext >&5
14089 ac_header_preproc=no
14091 rm -f conftest.err conftest.$ac_ext
14092 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14093 echo "${ECHO_T}$ac_header_preproc" >&6
14095 # So? What about this header?
14096 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14098 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14099 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14100 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
14101 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
14102 ac_header_preproc=yes
14105 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
14106 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
14107 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
14108 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
14109 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
14110 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
14111 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
14112 echo "$as_me: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
14113 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
14114 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
14115 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
14116 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
14119 ## ------------------------------------------ ##
14120 ## Report this to the AC_PACKAGE_NAME lists. ##
14121 ## ------------------------------------------ ##
14124 sed "s/^/$as_me: WARNING: /" >&2
14127 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
14128 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
14129 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14130 echo $ECHO_N "(cached) $ECHO_C" >&6
14132 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
14134 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
14135 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
14138 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
14140 cat >>confdefs.h <<\_ACEOF
14141 #define HAVE_READLINE 1
14145 CONS_INC="-I/usr/include/readline"
14146 CONS_LIBS="-lreadline -ltermcap"
14150 # Did not find standard library, so try Bacula's default
14151 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
14152 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14153 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14154 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
14155 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14156 echo $ECHO_N "(cached) $ECHO_C" >&6
14158 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14159 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14161 # Is the header compilable?
14162 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
14163 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
14164 cat >conftest.$ac_ext <<_ACEOF
14167 cat confdefs.h >>conftest.$ac_ext
14168 cat >>conftest.$ac_ext <<_ACEOF
14169 /* end confdefs.h. */
14170 $ac_includes_default
14171 #include <${TOP_DIR}/depkgs/readline/readline.h>
14173 rm -f conftest.$ac_objext
14174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14175 (eval $ac_compile) 2>conftest.er1
14177 grep -v '^ *+' conftest.er1 >conftest.err
14179 cat conftest.err >&5
14180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14181 (exit $ac_status); } &&
14182 { ac_try='test -z "$ac_c_werror_flag"
14183 || test ! -s conftest.err'
14184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14185 (eval $ac_try) 2>&5
14187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14188 (exit $ac_status); }; } &&
14189 { ac_try='test -s conftest.$ac_objext'
14190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14191 (eval $ac_try) 2>&5
14193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14194 (exit $ac_status); }; }; then
14195 ac_header_compiler=yes
14197 echo "$as_me: failed program was:" >&5
14198 sed 's/^/| /' conftest.$ac_ext >&5
14200 ac_header_compiler=no
14202 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14203 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14204 echo "${ECHO_T}$ac_header_compiler" >&6
14206 # Is the header present?
14207 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
14208 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
14209 cat >conftest.$ac_ext <<_ACEOF
14212 cat confdefs.h >>conftest.$ac_ext
14213 cat >>conftest.$ac_ext <<_ACEOF
14214 /* end confdefs.h. */
14215 #include <${TOP_DIR}/depkgs/readline/readline.h>
14217 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14218 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14220 grep -v '^ *+' conftest.er1 >conftest.err
14222 cat conftest.err >&5
14223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14224 (exit $ac_status); } >/dev/null; then
14225 if test -s conftest.err; then
14226 ac_cpp_err=$ac_c_preproc_warn_flag
14227 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14234 if test -z "$ac_cpp_err"; then
14235 ac_header_preproc=yes
14237 echo "$as_me: failed program was:" >&5
14238 sed 's/^/| /' conftest.$ac_ext >&5
14240 ac_header_preproc=no
14242 rm -f conftest.err conftest.$ac_ext
14243 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14244 echo "${ECHO_T}$ac_header_preproc" >&6
14246 # So? What about this header?
14247 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14249 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14250 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14251 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
14252 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
14253 ac_header_preproc=yes
14256 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
14257 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
14258 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
14259 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
14260 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
14261 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
14262 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
14263 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
14264 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
14265 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
14266 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
14267 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
14270 ## ------------------------------------------ ##
14271 ## Report this to the AC_PACKAGE_NAME lists. ##
14272 ## ------------------------------------------ ##
14275 sed "s/^/$as_me: WARNING: /" >&2
14278 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14279 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
14280 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14281 echo $ECHO_N "(cached) $ECHO_C" >&6
14283 eval "$as_ac_Header=\$ac_header_preproc"
14285 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14286 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14289 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14291 cat >>confdefs.h <<\_ACEOF
14292 #define HAVE_READLINE 1
14296 CONS_INC="-I${TOP_DIR}/depkgs/readline"
14297 CONS_LIBS="-lreadline -lhistory -ltermcap"
14298 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
14299 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
14303 echo "readline.h not found. readline turned off ..."
14329 # Minimal stuff for readline Makefile configuration
14332 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14333 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
14334 if test "${ac_cv_header_stat_broken+set}" = set; then
14335 echo $ECHO_N "(cached) $ECHO_C" >&6
14337 cat >conftest.$ac_ext <<_ACEOF
14340 cat confdefs.h >>conftest.$ac_ext
14341 cat >>conftest.$ac_ext <<_ACEOF
14342 /* end confdefs.h. */
14343 #include <sys/types.h>
14344 #include <sys/stat.h>
14346 #if defined(S_ISBLK) && defined(S_IFDIR)
14347 # if S_ISBLK (S_IFDIR)
14352 #if defined(S_ISBLK) && defined(S_IFCHR)
14353 # if S_ISBLK (S_IFCHR)
14358 #if defined(S_ISLNK) && defined(S_IFREG)
14359 # if S_ISLNK (S_IFREG)
14364 #if defined(S_ISSOCK) && defined(S_IFREG)
14365 # if S_ISSOCK (S_IFREG)
14371 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14372 $EGREP "You lose" >/dev/null 2>&1; then
14373 ac_cv_header_stat_broken=yes
14375 ac_cv_header_stat_broken=no
14380 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14381 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
14382 if test $ac_cv_header_stat_broken = yes; then
14384 cat >>confdefs.h <<\_ACEOF
14385 #define STAT_MACROS_BROKEN 1
14395 ac_header_dirent=no
14396 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14397 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14398 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14399 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
14400 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14401 echo $ECHO_N "(cached) $ECHO_C" >&6
14403 cat >conftest.$ac_ext <<_ACEOF
14406 cat confdefs.h >>conftest.$ac_ext
14407 cat >>conftest.$ac_ext <<_ACEOF
14408 /* end confdefs.h. */
14409 #include <sys/types.h>
14421 rm -f conftest.$ac_objext
14422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14423 (eval $ac_compile) 2>conftest.er1
14425 grep -v '^ *+' conftest.er1 >conftest.err
14427 cat conftest.err >&5
14428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14429 (exit $ac_status); } &&
14430 { ac_try='test -z "$ac_c_werror_flag"
14431 || test ! -s conftest.err'
14432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14433 (eval $ac_try) 2>&5
14435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14436 (exit $ac_status); }; } &&
14437 { ac_try='test -s conftest.$ac_objext'
14438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14439 (eval $ac_try) 2>&5
14441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14442 (exit $ac_status); }; }; then
14443 eval "$as_ac_Header=yes"
14445 echo "$as_me: failed program was:" >&5
14446 sed 's/^/| /' conftest.$ac_ext >&5
14448 eval "$as_ac_Header=no"
14450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14452 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14453 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14454 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14455 cat >>confdefs.h <<_ACEOF
14456 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14459 ac_header_dirent=$ac_hdr; break
14463 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14464 if test $ac_header_dirent = dirent.h; then
14465 echo "$as_me:$LINENO: checking for library containing opendir" >&5
14466 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
14467 if test "${ac_cv_search_opendir+set}" = set; then
14468 echo $ECHO_N "(cached) $ECHO_C" >&6
14470 ac_func_search_save_LIBS=$LIBS
14471 ac_cv_search_opendir=no
14472 cat >conftest.$ac_ext <<_ACEOF
14475 cat confdefs.h >>conftest.$ac_ext
14476 cat >>conftest.$ac_ext <<_ACEOF
14477 /* end confdefs.h. */
14479 /* Override any gcc2 internal prototype to avoid an error. */
14483 /* We use char because int might match the return type of a gcc2
14484 builtin and then its argument prototype would still apply. */
14494 rm -f conftest.$ac_objext conftest$ac_exeext
14495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14496 (eval $ac_link) 2>conftest.er1
14498 grep -v '^ *+' conftest.er1 >conftest.err
14500 cat conftest.err >&5
14501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14502 (exit $ac_status); } &&
14503 { ac_try='test -z "$ac_c_werror_flag"
14504 || test ! -s conftest.err'
14505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14506 (eval $ac_try) 2>&5
14508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14509 (exit $ac_status); }; } &&
14510 { ac_try='test -s conftest$ac_exeext'
14511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14512 (eval $ac_try) 2>&5
14514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14515 (exit $ac_status); }; }; then
14516 ac_cv_search_opendir="none required"
14518 echo "$as_me: failed program was:" >&5
14519 sed 's/^/| /' conftest.$ac_ext >&5
14522 rm -f conftest.err conftest.$ac_objext \
14523 conftest$ac_exeext conftest.$ac_ext
14524 if test "$ac_cv_search_opendir" = no; then
14525 for ac_lib in dir; do
14526 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14527 cat >conftest.$ac_ext <<_ACEOF
14530 cat confdefs.h >>conftest.$ac_ext
14531 cat >>conftest.$ac_ext <<_ACEOF
14532 /* end confdefs.h. */
14534 /* Override any gcc2 internal prototype to avoid an error. */
14538 /* We use char because int might match the return type of a gcc2
14539 builtin and then its argument prototype would still apply. */
14549 rm -f conftest.$ac_objext conftest$ac_exeext
14550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14551 (eval $ac_link) 2>conftest.er1
14553 grep -v '^ *+' conftest.er1 >conftest.err
14555 cat conftest.err >&5
14556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14557 (exit $ac_status); } &&
14558 { ac_try='test -z "$ac_c_werror_flag"
14559 || test ! -s conftest.err'
14560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14561 (eval $ac_try) 2>&5
14563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14564 (exit $ac_status); }; } &&
14565 { ac_try='test -s conftest$ac_exeext'
14566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14567 (eval $ac_try) 2>&5
14569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14570 (exit $ac_status); }; }; then
14571 ac_cv_search_opendir="-l$ac_lib"
14574 echo "$as_me: failed program was:" >&5
14575 sed 's/^/| /' conftest.$ac_ext >&5
14578 rm -f conftest.err conftest.$ac_objext \
14579 conftest$ac_exeext conftest.$ac_ext
14582 LIBS=$ac_func_search_save_LIBS
14584 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14585 echo "${ECHO_T}$ac_cv_search_opendir" >&6
14586 if test "$ac_cv_search_opendir" != no; then
14587 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
14592 echo "$as_me:$LINENO: checking for library containing opendir" >&5
14593 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
14594 if test "${ac_cv_search_opendir+set}" = set; then
14595 echo $ECHO_N "(cached) $ECHO_C" >&6
14597 ac_func_search_save_LIBS=$LIBS
14598 ac_cv_search_opendir=no
14599 cat >conftest.$ac_ext <<_ACEOF
14602 cat confdefs.h >>conftest.$ac_ext
14603 cat >>conftest.$ac_ext <<_ACEOF
14604 /* end confdefs.h. */
14606 /* Override any gcc2 internal prototype to avoid an error. */
14610 /* We use char because int might match the return type of a gcc2
14611 builtin and then its argument prototype would still apply. */
14621 rm -f conftest.$ac_objext conftest$ac_exeext
14622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14623 (eval $ac_link) 2>conftest.er1
14625 grep -v '^ *+' conftest.er1 >conftest.err
14627 cat conftest.err >&5
14628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14629 (exit $ac_status); } &&
14630 { ac_try='test -z "$ac_c_werror_flag"
14631 || test ! -s conftest.err'
14632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14633 (eval $ac_try) 2>&5
14635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14636 (exit $ac_status); }; } &&
14637 { ac_try='test -s conftest$ac_exeext'
14638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14639 (eval $ac_try) 2>&5
14641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14642 (exit $ac_status); }; }; then
14643 ac_cv_search_opendir="none required"
14645 echo "$as_me: failed program was:" >&5
14646 sed 's/^/| /' conftest.$ac_ext >&5
14649 rm -f conftest.err conftest.$ac_objext \
14650 conftest$ac_exeext conftest.$ac_ext
14651 if test "$ac_cv_search_opendir" = no; then
14652 for ac_lib in x; do
14653 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14654 cat >conftest.$ac_ext <<_ACEOF
14657 cat confdefs.h >>conftest.$ac_ext
14658 cat >>conftest.$ac_ext <<_ACEOF
14659 /* end confdefs.h. */
14661 /* Override any gcc2 internal prototype to avoid an error. */
14665 /* We use char because int might match the return type of a gcc2
14666 builtin and then its argument prototype would still apply. */
14676 rm -f conftest.$ac_objext conftest$ac_exeext
14677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14678 (eval $ac_link) 2>conftest.er1
14680 grep -v '^ *+' conftest.er1 >conftest.err
14682 cat conftest.err >&5
14683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14684 (exit $ac_status); } &&
14685 { ac_try='test -z "$ac_c_werror_flag"
14686 || test ! -s conftest.err'
14687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14688 (eval $ac_try) 2>&5
14690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14691 (exit $ac_status); }; } &&
14692 { ac_try='test -s conftest$ac_exeext'
14693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14694 (eval $ac_try) 2>&5
14696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14697 (exit $ac_status); }; }; then
14698 ac_cv_search_opendir="-l$ac_lib"
14701 echo "$as_me: failed program was:" >&5
14702 sed 's/^/| /' conftest.$ac_ext >&5
14705 rm -f conftest.err conftest.$ac_objext \
14706 conftest$ac_exeext conftest.$ac_ext
14709 LIBS=$ac_func_search_save_LIBS
14711 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14712 echo "${ECHO_T}$ac_cv_search_opendir" >&6
14713 if test "$ac_cv_search_opendir" != no; then
14714 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
14727 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
14729 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14730 echo "$as_me:$LINENO: checking for $ac_func" >&5
14731 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14732 if eval "test \"\${$as_ac_var+set}\" = set"; then
14733 echo $ECHO_N "(cached) $ECHO_C" >&6
14735 cat >conftest.$ac_ext <<_ACEOF
14738 cat confdefs.h >>conftest.$ac_ext
14739 cat >>conftest.$ac_ext <<_ACEOF
14740 /* end confdefs.h. */
14741 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14742 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14743 #define $ac_func innocuous_$ac_func
14745 /* System header to define __stub macros and hopefully few prototypes,
14746 which can conflict with char $ac_func (); below.
14747 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14748 <limits.h> exists even on freestanding compilers. */
14751 # include <limits.h>
14753 # include <assert.h>
14758 /* Override any gcc2 internal prototype to avoid an error. */
14763 /* We use char because int might match the return type of a gcc2
14764 builtin and then its argument prototype would still apply. */
14766 /* The GNU C library defines this for functions which it implements
14767 to always fail with ENOSYS. Some functions are actually named
14768 something starting with __ and the normal name is an alias. */
14769 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14772 char (*f) () = $ac_func;
14781 return f != $ac_func;
14786 rm -f conftest.$ac_objext conftest$ac_exeext
14787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14788 (eval $ac_link) 2>conftest.er1
14790 grep -v '^ *+' conftest.er1 >conftest.err
14792 cat conftest.err >&5
14793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14794 (exit $ac_status); } &&
14795 { ac_try='test -z "$ac_c_werror_flag"
14796 || test ! -s conftest.err'
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); }; } &&
14802 { ac_try='test -s conftest$ac_exeext'
14803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14804 (eval $ac_try) 2>&5
14806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14807 (exit $ac_status); }; }; then
14808 eval "$as_ac_var=yes"
14810 echo "$as_me: failed program was:" >&5
14811 sed 's/^/| /' conftest.$ac_ext >&5
14813 eval "$as_ac_var=no"
14815 rm -f conftest.err conftest.$ac_objext \
14816 conftest$ac_exeext conftest.$ac_ext
14818 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14819 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14820 if test `eval echo '${'$as_ac_var'}'` = yes; then
14821 cat >>confdefs.h <<_ACEOF
14822 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14830 for ac_func in nanosleep nl_langinfo
14832 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14833 echo "$as_me:$LINENO: checking for $ac_func" >&5
14834 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14835 if eval "test \"\${$as_ac_var+set}\" = set"; then
14836 echo $ECHO_N "(cached) $ECHO_C" >&6
14838 cat >conftest.$ac_ext <<_ACEOF
14841 cat confdefs.h >>conftest.$ac_ext
14842 cat >>conftest.$ac_ext <<_ACEOF
14843 /* end confdefs.h. */
14844 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14845 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14846 #define $ac_func innocuous_$ac_func
14848 /* System header to define __stub macros and hopefully few prototypes,
14849 which can conflict with char $ac_func (); below.
14850 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14851 <limits.h> exists even on freestanding compilers. */
14854 # include <limits.h>
14856 # include <assert.h>
14861 /* Override any gcc2 internal prototype to avoid an error. */
14866 /* We use char because int might match the return type of a gcc2
14867 builtin and then its argument prototype would still apply. */
14869 /* The GNU C library defines this for functions which it implements
14870 to always fail with ENOSYS. Some functions are actually named
14871 something starting with __ and the normal name is an alias. */
14872 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14875 char (*f) () = $ac_func;
14884 return f != $ac_func;
14889 rm -f conftest.$ac_objext conftest$ac_exeext
14890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14891 (eval $ac_link) 2>conftest.er1
14893 grep -v '^ *+' conftest.er1 >conftest.err
14895 cat conftest.err >&5
14896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14897 (exit $ac_status); } &&
14898 { ac_try='test -z "$ac_c_werror_flag"
14899 || test ! -s conftest.err'
14900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14901 (eval $ac_try) 2>&5
14903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14904 (exit $ac_status); }; } &&
14905 { ac_try='test -s conftest$ac_exeext'
14906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14907 (eval $ac_try) 2>&5
14909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14910 (exit $ac_status); }; }; then
14911 eval "$as_ac_var=yes"
14913 echo "$as_me: failed program was:" >&5
14914 sed 's/^/| /' conftest.$ac_ext >&5
14916 eval "$as_ac_var=no"
14918 rm -f conftest.err conftest.$ac_objext \
14919 conftest$ac_exeext conftest.$ac_ext
14921 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14922 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14923 if test `eval echo '${'$as_ac_var'}'` = yes; then
14924 cat >>confdefs.h <<_ACEOF
14925 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14932 for ac_header in varargs.h
14934 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14935 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14936 echo "$as_me:$LINENO: checking for $ac_header" >&5
14937 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14938 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14939 echo $ECHO_N "(cached) $ECHO_C" >&6
14941 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14942 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14944 # Is the header compilable?
14945 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14946 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14947 cat >conftest.$ac_ext <<_ACEOF
14950 cat confdefs.h >>conftest.$ac_ext
14951 cat >>conftest.$ac_ext <<_ACEOF
14952 /* end confdefs.h. */
14953 $ac_includes_default
14954 #include <$ac_header>
14956 rm -f conftest.$ac_objext
14957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14958 (eval $ac_compile) 2>conftest.er1
14960 grep -v '^ *+' conftest.er1 >conftest.err
14962 cat conftest.err >&5
14963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14964 (exit $ac_status); } &&
14965 { ac_try='test -z "$ac_c_werror_flag"
14966 || test ! -s conftest.err'
14967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14968 (eval $ac_try) 2>&5
14970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14971 (exit $ac_status); }; } &&
14972 { ac_try='test -s conftest.$ac_objext'
14973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14974 (eval $ac_try) 2>&5
14976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14977 (exit $ac_status); }; }; then
14978 ac_header_compiler=yes
14980 echo "$as_me: failed program was:" >&5
14981 sed 's/^/| /' conftest.$ac_ext >&5
14983 ac_header_compiler=no
14985 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14986 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14987 echo "${ECHO_T}$ac_header_compiler" >&6
14989 # Is the header present?
14990 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14991 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14992 cat >conftest.$ac_ext <<_ACEOF
14995 cat confdefs.h >>conftest.$ac_ext
14996 cat >>conftest.$ac_ext <<_ACEOF
14997 /* end confdefs.h. */
14998 #include <$ac_header>
15000 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15001 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15003 grep -v '^ *+' conftest.er1 >conftest.err
15005 cat conftest.err >&5
15006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15007 (exit $ac_status); } >/dev/null; then
15008 if test -s conftest.err; then
15009 ac_cpp_err=$ac_c_preproc_warn_flag
15010 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15017 if test -z "$ac_cpp_err"; then
15018 ac_header_preproc=yes
15020 echo "$as_me: failed program was:" >&5
15021 sed 's/^/| /' conftest.$ac_ext >&5
15023 ac_header_preproc=no
15025 rm -f conftest.err conftest.$ac_ext
15026 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15027 echo "${ECHO_T}$ac_header_preproc" >&6
15029 # So? What about this header?
15030 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15032 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15033 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15034 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15035 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15036 ac_header_preproc=yes
15039 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15040 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15041 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15042 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15043 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15044 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15045 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15046 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15047 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15048 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15049 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15050 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15053 ## ------------------------------------------ ##
15054 ## Report this to the AC_PACKAGE_NAME lists. ##
15055 ## ------------------------------------------ ##
15058 sed "s/^/$as_me: WARNING: /" >&2
15061 echo "$as_me:$LINENO: checking for $ac_header" >&5
15062 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15063 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15064 echo $ECHO_N "(cached) $ECHO_C" >&6
15066 eval "$as_ac_Header=\$ac_header_preproc"
15068 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15069 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15072 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15073 cat >>confdefs.h <<_ACEOF
15074 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15082 # End of readline/conio stuff
15083 # -----------------------------------------------------------------------
15085 # -----------------------------------------------------------------------
15086 # Check for Python support
15088 echo "$as_me:$LINENO: checking for Python support" >&5
15089 echo $ECHO_N "checking for Python support... $ECHO_C" >&6
15091 # Check whether --with-python or --without-python was given.
15092 if test "${with_python+set}" = set; then
15093 withval="$with_python"
15097 if test "$withval" != "no"; then
15098 if test "$withval" = "yes"; then
15099 for python_root in /usr /usr/local /usr/sfw; do
15100 for ver in python2.2 python2.3 python2.4 python2.5; do
15101 if test -f $python_root/include/${ver}/Python.h; then
15102 PYTHON_INCDIR=-I$python_root/include/${ver}
15103 if test -d $python_root/lib64/${ver}/config; then
15104 PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
15106 PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
15112 if test x$PYTHON_INCDIR = x; then
15113 if test -f $prefix/include/Python.h; then
15114 PYTHON_INCDIR=-I$prefix/include
15115 if test -d $prefix/lib64/config; then
15116 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
15118 PYTHON_LIBS="-L$prefix/lib/config -lpython"
15121 echo "$as_me:$LINENO: result: no" >&5
15122 echo "${ECHO_T}no" >&6
15123 { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
15124 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
15125 { (exit 1); exit 1; }; }
15129 if test -f $withval/Python.h; then
15130 PYTHON_INCDIR=-I$withval
15131 PYTHON_LIBS="-L$withval/config -lpython"
15132 elif test -f $withval/include/Python.h; then
15133 PYTHON_INCDIR=-I$withval/include
15134 if test -d $withval/lib64/config; then
15135 PYTHON_LIBS="-L$withval/lib64/config -lpython"
15137 PYTHON_LIBS="-L$withval/lib/config -lpython"
15139 elif test -f $withval/include/python/Python.h; then
15140 PYTHON_INCDIR=-I$withval/include/python
15141 if test -d $withval/lib64/python/config; then
15142 PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
15144 PYTHON_LIBS="-L$withval/lib/python/config -lpython"
15147 echo "$as_me:$LINENO: result: no" >&5
15148 echo "${ECHO_T}no" >&6
15149 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
15150 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
15151 { (exit 1); exit 1; }; }
15154 cat >>confdefs.h <<\_ACEOF
15155 #define HAVE_PYTHON 1
15158 echo "$as_me:$LINENO: result: yes" >&5
15159 echo "${ECHO_T}yes" >&6
15161 { echo "$as_me:$LINENO: checking for more Python libs" >&5
15162 echo "$as_me: checking for more Python libs" >&6;}
15163 saved_LIBS="$LIBS"; LIBS=
15164 echo "$as_me:$LINENO: checking for library containing shm_open" >&5
15165 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6
15166 if test "${ac_cv_search_shm_open+set}" = set; then
15167 echo $ECHO_N "(cached) $ECHO_C" >&6
15169 ac_func_search_save_LIBS=$LIBS
15170 ac_cv_search_shm_open=no
15171 cat >conftest.$ac_ext <<_ACEOF
15174 cat confdefs.h >>conftest.$ac_ext
15175 cat >>conftest.$ac_ext <<_ACEOF
15176 /* end confdefs.h. */
15178 /* Override any gcc2 internal prototype to avoid an error. */
15182 /* We use char because int might match the return type of a gcc2
15183 builtin and then its argument prototype would still apply. */
15193 rm -f conftest.$ac_objext conftest$ac_exeext
15194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15195 (eval $ac_link) 2>conftest.er1
15197 grep -v '^ *+' conftest.er1 >conftest.err
15199 cat conftest.err >&5
15200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15201 (exit $ac_status); } &&
15202 { ac_try='test -z "$ac_c_werror_flag"
15203 || test ! -s conftest.err'
15204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15205 (eval $ac_try) 2>&5
15207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15208 (exit $ac_status); }; } &&
15209 { ac_try='test -s conftest$ac_exeext'
15210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15211 (eval $ac_try) 2>&5
15213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15214 (exit $ac_status); }; }; then
15215 ac_cv_search_shm_open="none required"
15217 echo "$as_me: failed program was:" >&5
15218 sed 's/^/| /' conftest.$ac_ext >&5
15221 rm -f conftest.err conftest.$ac_objext \
15222 conftest$ac_exeext conftest.$ac_ext
15223 if test "$ac_cv_search_shm_open" = no; then
15224 for ac_lib in rt; do
15225 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15226 cat >conftest.$ac_ext <<_ACEOF
15229 cat confdefs.h >>conftest.$ac_ext
15230 cat >>conftest.$ac_ext <<_ACEOF
15231 /* end confdefs.h. */
15233 /* Override any gcc2 internal prototype to avoid an error. */
15237 /* We use char because int might match the return type of a gcc2
15238 builtin and then its argument prototype would still apply. */
15248 rm -f conftest.$ac_objext conftest$ac_exeext
15249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15250 (eval $ac_link) 2>conftest.er1
15252 grep -v '^ *+' conftest.er1 >conftest.err
15254 cat conftest.err >&5
15255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15256 (exit $ac_status); } &&
15257 { ac_try='test -z "$ac_c_werror_flag"
15258 || test ! -s conftest.err'
15259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15260 (eval $ac_try) 2>&5
15262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15263 (exit $ac_status); }; } &&
15264 { ac_try='test -s conftest$ac_exeext'
15265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15266 (eval $ac_try) 2>&5
15268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15269 (exit $ac_status); }; }; then
15270 ac_cv_search_shm_open="-l$ac_lib"
15273 echo "$as_me: failed program was:" >&5
15274 sed 's/^/| /' conftest.$ac_ext >&5
15277 rm -f conftest.err conftest.$ac_objext \
15278 conftest$ac_exeext conftest.$ac_ext
15281 LIBS=$ac_func_search_save_LIBS
15283 echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
15284 echo "${ECHO_T}$ac_cv_search_shm_open" >&6
15285 if test "$ac_cv_search_shm_open" != no; then
15286 test "$ac_cv_search_shm_open" = "none required" || LIBS="$ac_cv_search_shm_open $LIBS"
15291 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
15292 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
15293 if test "${ac_cv_lib_util_openpty+set}" = set; then
15294 echo $ECHO_N "(cached) $ECHO_C" >&6
15296 ac_check_lib_save_LIBS=$LIBS
15297 LIBS="-lutil $LIBS"
15298 cat >conftest.$ac_ext <<_ACEOF
15301 cat confdefs.h >>conftest.$ac_ext
15302 cat >>conftest.$ac_ext <<_ACEOF
15303 /* end confdefs.h. */
15305 /* Override any gcc2 internal prototype to avoid an error. */
15309 /* We use char because int might match the return type of a gcc2
15310 builtin and then its argument prototype would still apply. */
15320 rm -f conftest.$ac_objext conftest$ac_exeext
15321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15322 (eval $ac_link) 2>conftest.er1
15324 grep -v '^ *+' conftest.er1 >conftest.err
15326 cat conftest.err >&5
15327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15328 (exit $ac_status); } &&
15329 { ac_try='test -z "$ac_c_werror_flag"
15330 || test ! -s conftest.err'
15331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15332 (eval $ac_try) 2>&5
15334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15335 (exit $ac_status); }; } &&
15336 { ac_try='test -s conftest$ac_exeext'
15337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15338 (eval $ac_try) 2>&5
15340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15341 (exit $ac_status); }; }; then
15342 ac_cv_lib_util_openpty=yes
15344 echo "$as_me: failed program was:" >&5
15345 sed 's/^/| /' conftest.$ac_ext >&5
15347 ac_cv_lib_util_openpty=no
15349 rm -f conftest.err conftest.$ac_objext \
15350 conftest$ac_exeext conftest.$ac_ext
15351 LIBS=$ac_check_lib_save_LIBS
15353 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
15354 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
15355 if test $ac_cv_lib_util_openpty = yes; then
15356 cat >>confdefs.h <<_ACEOF
15357 #define HAVE_LIBUTIL 1
15360 LIBS="-lutil $LIBS"
15364 PYTHON_LIBS="$PYTHON_LIBS $LIBS"
15367 echo "$as_me:$LINENO: result: no" >&5
15368 echo "${ECHO_T}no" >&6
15373 echo "$as_me:$LINENO: result: no" >&5
15374 echo "${ECHO_T}no" >&6
15381 # Find where sockets are (especially for Solaris)
15382 # Do this before the TCP Wrappers test since tcp wrappers
15383 # uses the socket library and some linkers are stupid.
15385 echo "$as_me:$LINENO: checking for socket" >&5
15386 echo $ECHO_N "checking for socket... $ECHO_C" >&6
15387 if test "${ac_cv_func_socket+set}" = set; then
15388 echo $ECHO_N "(cached) $ECHO_C" >&6
15390 cat >conftest.$ac_ext <<_ACEOF
15393 cat confdefs.h >>conftest.$ac_ext
15394 cat >>conftest.$ac_ext <<_ACEOF
15395 /* end confdefs.h. */
15396 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
15397 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15398 #define socket innocuous_socket
15400 /* System header to define __stub macros and hopefully few prototypes,
15401 which can conflict with char socket (); below.
15402 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15403 <limits.h> exists even on freestanding compilers. */
15406 # include <limits.h>
15408 # include <assert.h>
15413 /* Override any gcc2 internal prototype to avoid an error. */
15418 /* We use char because int might match the return type of a gcc2
15419 builtin and then its argument prototype would still apply. */
15421 /* The GNU C library defines this for functions which it implements
15422 to always fail with ENOSYS. Some functions are actually named
15423 something starting with __ and the normal name is an alias. */
15424 #if defined (__stub_socket) || defined (__stub___socket)
15427 char (*f) () = socket;
15436 return f != socket;
15441 rm -f conftest.$ac_objext conftest$ac_exeext
15442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15443 (eval $ac_link) 2>conftest.er1
15445 grep -v '^ *+' conftest.er1 >conftest.err
15447 cat conftest.err >&5
15448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15449 (exit $ac_status); } &&
15450 { ac_try='test -z "$ac_c_werror_flag"
15451 || test ! -s conftest.err'
15452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15453 (eval $ac_try) 2>&5
15455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15456 (exit $ac_status); }; } &&
15457 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
15463 ac_cv_func_socket=yes
15465 echo "$as_me: failed program was:" >&5
15466 sed 's/^/| /' conftest.$ac_ext >&5
15468 ac_cv_func_socket=no
15470 rm -f conftest.err conftest.$ac_objext \
15471 conftest$ac_exeext conftest.$ac_ext
15473 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15474 echo "${ECHO_T}$ac_cv_func_socket" >&6
15475 if test $ac_cv_func_socket = yes; then
15476 echo "$as_me:$LINENO: result: using libc's socket" >&5
15477 echo "${ECHO_T}using libc's socket" >&6
15480 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
15481 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
15482 if test "${ac_cv_lib_xnet_socket+set}" = set; then
15483 echo $ECHO_N "(cached) $ECHO_C" >&6
15485 ac_check_lib_save_LIBS=$LIBS
15486 LIBS="-lxnet $LIBS"
15487 cat >conftest.$ac_ext <<_ACEOF
15490 cat confdefs.h >>conftest.$ac_ext
15491 cat >>conftest.$ac_ext <<_ACEOF
15492 /* end confdefs.h. */
15494 /* Override any gcc2 internal prototype to avoid an error. */
15498 /* We use char because int might match the return type of a gcc2
15499 builtin and then its argument prototype would still apply. */
15509 rm -f conftest.$ac_objext conftest$ac_exeext
15510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15511 (eval $ac_link) 2>conftest.er1
15513 grep -v '^ *+' conftest.er1 >conftest.err
15515 cat conftest.err >&5
15516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15517 (exit $ac_status); } &&
15518 { ac_try='test -z "$ac_c_werror_flag"
15519 || test ! -s conftest.err'
15520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15521 (eval $ac_try) 2>&5
15523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15524 (exit $ac_status); }; } &&
15525 { ac_try='test -s conftest$ac_exeext'
15526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15527 (eval $ac_try) 2>&5
15529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15530 (exit $ac_status); }; }; then
15531 ac_cv_lib_xnet_socket=yes
15533 echo "$as_me: failed program was:" >&5
15534 sed 's/^/| /' conftest.$ac_ext >&5
15536 ac_cv_lib_xnet_socket=no
15538 rm -f conftest.err conftest.$ac_objext \
15539 conftest$ac_exeext conftest.$ac_ext
15540 LIBS=$ac_check_lib_save_LIBS
15542 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
15543 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
15544 if test $ac_cv_lib_xnet_socket = yes; then
15545 cat >>confdefs.h <<_ACEOF
15546 #define HAVE_LIBXNET 1
15549 LIBS="-lxnet $LIBS"
15554 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15555 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
15556 if test "${ac_cv_lib_socket_socket+set}" = set; then
15557 echo $ECHO_N "(cached) $ECHO_C" >&6
15559 ac_check_lib_save_LIBS=$LIBS
15560 LIBS="-lsocket $LIBS"
15561 cat >conftest.$ac_ext <<_ACEOF
15564 cat confdefs.h >>conftest.$ac_ext
15565 cat >>conftest.$ac_ext <<_ACEOF
15566 /* end confdefs.h. */
15568 /* Override any gcc2 internal prototype to avoid an error. */
15572 /* We use char because int might match the return type of a gcc2
15573 builtin and then its argument prototype would still apply. */
15583 rm -f conftest.$ac_objext conftest$ac_exeext
15584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15585 (eval $ac_link) 2>conftest.er1
15587 grep -v '^ *+' conftest.er1 >conftest.err
15589 cat conftest.err >&5
15590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15591 (exit $ac_status); } &&
15592 { ac_try='test -z "$ac_c_werror_flag"
15593 || test ! -s conftest.err'
15594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15595 (eval $ac_try) 2>&5
15597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15598 (exit $ac_status); }; } &&
15599 { ac_try='test -s conftest$ac_exeext'
15600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15601 (eval $ac_try) 2>&5
15603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15604 (exit $ac_status); }; }; then
15605 ac_cv_lib_socket_socket=yes
15607 echo "$as_me: failed program was:" >&5
15608 sed 's/^/| /' conftest.$ac_ext >&5
15610 ac_cv_lib_socket_socket=no
15612 rm -f conftest.err conftest.$ac_objext \
15613 conftest$ac_exeext conftest.$ac_ext
15614 LIBS=$ac_check_lib_save_LIBS
15616 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15617 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
15618 if test $ac_cv_lib_socket_socket = yes; then
15619 cat >>confdefs.h <<_ACEOF
15620 #define HAVE_LIBSOCKET 1
15623 LIBS="-lsocket $LIBS"
15628 echo "$as_me:$LINENO: checking for socket in -linet" >&5
15629 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
15630 if test "${ac_cv_lib_inet_socket+set}" = set; then
15631 echo $ECHO_N "(cached) $ECHO_C" >&6
15633 ac_check_lib_save_LIBS=$LIBS
15634 LIBS="-linet $LIBS"
15635 cat >conftest.$ac_ext <<_ACEOF
15638 cat confdefs.h >>conftest.$ac_ext
15639 cat >>conftest.$ac_ext <<_ACEOF
15640 /* end confdefs.h. */
15642 /* Override any gcc2 internal prototype to avoid an error. */
15646 /* We use char because int might match the return type of a gcc2
15647 builtin and then its argument prototype would still apply. */
15657 rm -f conftest.$ac_objext conftest$ac_exeext
15658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15659 (eval $ac_link) 2>conftest.er1
15661 grep -v '^ *+' conftest.er1 >conftest.err
15663 cat conftest.err >&5
15664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15665 (exit $ac_status); } &&
15666 { ac_try='test -z "$ac_c_werror_flag"
15667 || test ! -s conftest.err'
15668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15669 (eval $ac_try) 2>&5
15671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15672 (exit $ac_status); }; } &&
15673 { ac_try='test -s conftest$ac_exeext'
15674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15675 (eval $ac_try) 2>&5
15677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15678 (exit $ac_status); }; }; then
15679 ac_cv_lib_inet_socket=yes
15681 echo "$as_me: failed program was:" >&5
15682 sed 's/^/| /' conftest.$ac_ext >&5
15684 ac_cv_lib_inet_socket=no
15686 rm -f conftest.err conftest.$ac_objext \
15687 conftest$ac_exeext conftest.$ac_ext
15688 LIBS=$ac_check_lib_save_LIBS
15690 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15691 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15692 if test $ac_cv_lib_inet_socket = yes; then
15693 cat >>confdefs.h <<_ACEOF
15694 #define HAVE_LIBINET 1
15697 LIBS="-linet $LIBS"
15705 # -----------------------------------------------------------
15706 # Check whether user wants TCP wrappers support (default off)
15707 # -----------------------------------------------------------
15711 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
15712 if test "${with_tcp_wrappers+set}" = set; then
15713 withval="$with_tcp_wrappers"
15715 if test "x$withval" != "xno" ; then
15717 LIBS="$saved_LIBS -lwrap"
15718 echo "$as_me:$LINENO: checking for libwrap" >&5
15719 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
15720 echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
15721 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6
15722 if test "${ac_cv_search_nanosleep+set}" = set; then
15723 echo $ECHO_N "(cached) $ECHO_C" >&6
15725 ac_func_search_save_LIBS=$LIBS
15726 ac_cv_search_nanosleep=no
15727 cat >conftest.$ac_ext <<_ACEOF
15730 cat confdefs.h >>conftest.$ac_ext
15731 cat >>conftest.$ac_ext <<_ACEOF
15732 /* end confdefs.h. */
15734 /* Override any gcc2 internal prototype to avoid an error. */
15738 /* We use char because int might match the return type of a gcc2
15739 builtin and then its argument prototype would still apply. */
15749 rm -f conftest.$ac_objext conftest$ac_exeext
15750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15751 (eval $ac_link) 2>conftest.er1
15753 grep -v '^ *+' conftest.er1 >conftest.err
15755 cat conftest.err >&5
15756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15757 (exit $ac_status); } &&
15758 { ac_try='test -z "$ac_c_werror_flag"
15759 || test ! -s conftest.err'
15760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15761 (eval $ac_try) 2>&5
15763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15764 (exit $ac_status); }; } &&
15765 { ac_try='test -s conftest$ac_exeext'
15766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15767 (eval $ac_try) 2>&5
15769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15770 (exit $ac_status); }; }; then
15771 ac_cv_search_nanosleep="none required"
15773 echo "$as_me: failed program was:" >&5
15774 sed 's/^/| /' conftest.$ac_ext >&5
15777 rm -f conftest.err conftest.$ac_objext \
15778 conftest$ac_exeext conftest.$ac_ext
15779 if test "$ac_cv_search_nanosleep" = no; then
15780 for ac_lib in rt; do
15781 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15782 cat >conftest.$ac_ext <<_ACEOF
15785 cat confdefs.h >>conftest.$ac_ext
15786 cat >>conftest.$ac_ext <<_ACEOF
15787 /* end confdefs.h. */
15789 /* Override any gcc2 internal prototype to avoid an error. */
15793 /* We use char because int might match the return type of a gcc2
15794 builtin and then its argument prototype would still apply. */
15804 rm -f conftest.$ac_objext conftest$ac_exeext
15805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15806 (eval $ac_link) 2>conftest.er1
15808 grep -v '^ *+' conftest.er1 >conftest.err
15810 cat conftest.err >&5
15811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15812 (exit $ac_status); } &&
15813 { ac_try='test -z "$ac_c_werror_flag"
15814 || test ! -s conftest.err'
15815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15816 (eval $ac_try) 2>&5
15818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15819 (exit $ac_status); }; } &&
15820 { ac_try='test -s conftest$ac_exeext'
15821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15822 (eval $ac_try) 2>&5
15824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15825 (exit $ac_status); }; }; then
15826 ac_cv_search_nanosleep="-l$ac_lib"
15829 echo "$as_me: failed program was:" >&5
15830 sed 's/^/| /' conftest.$ac_ext >&5
15833 rm -f conftest.err conftest.$ac_objext \
15834 conftest$ac_exeext conftest.$ac_ext
15837 LIBS=$ac_func_search_save_LIBS
15839 echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
15840 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6
15841 if test "$ac_cv_search_nanosleep" != no; then
15842 test "$ac_cv_search_nanosleep" = "none required" || LIBS="$ac_cv_search_nanosleep $LIBS"
15846 cat >conftest.$ac_ext <<_ACEOF
15849 cat confdefs.h >>conftest.$ac_ext
15850 cat >>conftest.$ac_ext <<_ACEOF
15851 /* end confdefs.h. */
15852 #include <sys/types.h>
15854 int deny_severity = 0;
15855 int allow_severity = 0;
15856 struct request_info *req;
15865 rm -f conftest.$ac_objext conftest$ac_exeext
15866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15867 (eval $ac_link) 2>conftest.er1
15869 grep -v '^ *+' conftest.er1 >conftest.err
15871 cat conftest.err >&5
15872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15873 (exit $ac_status); } &&
15874 { ac_try='test -z "$ac_c_werror_flag"
15875 || test ! -s conftest.err'
15876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15877 (eval $ac_try) 2>&5
15879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15880 (exit $ac_status); }; } &&
15881 { ac_try='test -s conftest$ac_exeext'
15882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15883 (eval $ac_try) 2>&5
15885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15886 (exit $ac_status); }; }; then
15888 echo "$as_me:$LINENO: result: yes" >&5
15889 echo "${ECHO_T}yes" >&6
15891 cat >>confdefs.h <<\_ACEOF
15892 #define HAVE_LIBWRAP 1
15900 echo "$as_me: failed program was:" >&5
15901 sed 's/^/| /' conftest.$ac_ext >&5
15904 LIBS="$saved_LIBS -lwrap -lnsl"
15905 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
15906 cat >conftest.$ac_ext <<_ACEOF
15909 cat confdefs.h >>conftest.$ac_ext
15910 cat >>conftest.$ac_ext <<_ACEOF
15911 /* end confdefs.h. */
15912 #include <sys/types.h>
15914 int deny_severity = 0;
15915 int allow_severity = 0;
15916 struct request_info *req;
15925 rm -f conftest.$ac_objext conftest$ac_exeext
15926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15927 (eval $ac_link) 2>conftest.er1
15929 grep -v '^ *+' conftest.er1 >conftest.err
15931 cat conftest.err >&5
15932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15933 (exit $ac_status); } &&
15934 { ac_try='test -z "$ac_c_werror_flag"
15935 || test ! -s conftest.err'
15936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15937 (eval $ac_try) 2>&5
15939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15940 (exit $ac_status); }; } &&
15941 { ac_try='test -s conftest$ac_exeext'
15942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15943 (eval $ac_try) 2>&5
15945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15946 (exit $ac_status); }; }; then
15948 echo "$as_me:$LINENO: result: yes" >&5
15949 echo "${ECHO_T}yes" >&6
15951 cat >>confdefs.h <<\_ACEOF
15952 #define HAVE_LIBWRAP 1
15960 echo "$as_me: failed program was:" >&5
15961 sed 's/^/| /' conftest.$ac_ext >&5
15963 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
15964 echo "$as_me: error: *** libwrap missing" >&2;}
15965 { (exit 1); exit 1; }; }
15968 rm -f conftest.err conftest.$ac_objext \
15969 conftest$ac_exeext conftest.$ac_ext
15972 rm -f conftest.err conftest.$ac_objext \
15973 conftest$ac_exeext conftest.$ac_ext
15979 # -----------------------------------------------------------
15980 # Check whether OpenSSL is available
15981 # -----------------------------------------------------------
15982 echo "$as_me:$LINENO: checking for OpenSSL" >&5
15983 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6
15985 # Check whether --with-openssl or --without-openssl was given.
15986 if test "${with_openssl+set}" = set; then
15987 withval="$with_openssl"
15988 with_openssl_directory=${withval}
15991 if test "x$with_openssl_directory" != "x"; then
15992 OPENSSL_LIBS="-lssl -lcrypto"
15995 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
15996 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
15997 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
16000 saved_LIBS="${LIBS}"
16001 saved_CFLAGS="${CFLAGS}"
16002 LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
16003 CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
16005 cat >conftest.$ac_ext <<_ACEOF
16008 cat confdefs.h >>conftest.$ac_ext
16009 cat >>conftest.$ac_ext <<_ACEOF
16010 /* end confdefs.h. */
16011 #include <openssl/ssl.h>
16015 CRYPTO_set_id_callback(NULL);
16020 rm -f conftest.$ac_objext conftest$ac_exeext
16021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16022 (eval $ac_link) 2>conftest.er1
16024 grep -v '^ *+' conftest.er1 >conftest.err
16026 cat conftest.err >&5
16027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16028 (exit $ac_status); } &&
16029 { ac_try='test -z "$ac_c_werror_flag"
16030 || test ! -s conftest.err'
16031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16032 (eval $ac_try) 2>&5
16034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16035 (exit $ac_status); }; } &&
16036 { ac_try='test -s conftest$ac_exeext'
16037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16038 (eval $ac_try) 2>&5
16040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16041 (exit $ac_status); }; }; then
16044 support_crypto="yes"
16047 echo "$as_me: failed program was:" >&5
16048 sed 's/^/| /' conftest.$ac_ext >&5
16053 rm -f conftest.err conftest.$ac_objext \
16054 conftest$ac_exeext conftest.$ac_ext
16056 cat >conftest.$ac_ext <<_ACEOF
16059 cat confdefs.h >>conftest.$ac_ext
16060 cat >>conftest.$ac_ext <<_ACEOF
16061 /* end confdefs.h. */
16062 #include <openssl/evp.h>
16071 rm -f conftest.$ac_objext conftest$ac_exeext
16072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16073 (eval $ac_link) 2>conftest.er1
16075 grep -v '^ *+' conftest.er1 >conftest.err
16077 cat conftest.err >&5
16078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16079 (exit $ac_status); } &&
16080 { ac_try='test -z "$ac_c_werror_flag"
16081 || test ! -s conftest.err'
16082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16083 (eval $ac_try) 2>&5
16085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16086 (exit $ac_status); }; } &&
16087 { ac_try='test -s conftest$ac_exeext'
16088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16089 (eval $ac_try) 2>&5
16091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16092 (exit $ac_status); }; }; then
16093 ac_cv_openssl_sha2="yes"
16095 echo "$as_me: failed program was:" >&5
16096 sed 's/^/| /' conftest.$ac_ext >&5
16098 ac_cv_openssl_sha2="no"
16101 rm -f conftest.err conftest.$ac_objext \
16102 conftest$ac_exeext conftest.$ac_ext
16104 # Solaris disables greater than 128+ bit encryption in their OpenSSL
16105 # implementation, presumably for export reasons. If 192bit AES
16106 # is available, we assume that we're running with a 'non-export'
16108 cat >conftest.$ac_ext <<_ACEOF
16111 cat confdefs.h >>conftest.$ac_ext
16112 cat >>conftest.$ac_ext <<_ACEOF
16113 /* end confdefs.h. */
16114 #include <openssl/evp.h>
16123 rm -f conftest.$ac_objext conftest$ac_exeext
16124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16125 (eval $ac_link) 2>conftest.er1
16127 grep -v '^ *+' conftest.er1 >conftest.err
16129 cat conftest.err >&5
16130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16131 (exit $ac_status); } &&
16132 { ac_try='test -z "$ac_c_werror_flag"
16133 || test ! -s conftest.err'
16134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16135 (eval $ac_try) 2>&5
16137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16138 (exit $ac_status); }; } &&
16139 { ac_try='test -s conftest$ac_exeext'
16140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16141 (eval $ac_try) 2>&5
16143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16144 (exit $ac_status); }; }; then
16145 ac_cv_openssl_export="no"
16147 echo "$as_me: failed program was:" >&5
16148 sed 's/^/| /' conftest.$ac_ext >&5
16150 ac_cv_openssl_export="yes"
16153 rm -f conftest.err conftest.$ac_objext \
16154 conftest$ac_exeext conftest.$ac_ext
16156 LIBS="${saved_LIBS}"
16157 CFLAGS="${saved_CFLAGS}"
16159 if test "$support_tls" = "yes"; then
16161 cat >>confdefs.h <<\_ACEOF
16162 #define HAVE_OPENSSL 1
16166 cat >>confdefs.h <<\_ACEOF
16171 cat >>confdefs.h <<\_ACEOF
16172 #define HAVE_CRYPTO 1
16177 if test "$ac_cv_openssl_sha2" = "yes"; then
16179 cat >>confdefs.h <<\_ACEOF
16180 #define HAVE_SHA2 1
16185 if test "$ac_cv_openssl_export" = "yes"; then
16187 cat >>confdefs.h <<\_ACEOF
16188 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
16194 support_crypto="no"
16199 echo "$as_me:$LINENO: result: $support_tls" >&5
16200 echo "${ECHO_T}$support_tls" >&6
16205 # -----------------------------------------------------------
16206 # Python and OpenSSL are using dlopen
16207 # -----------------------------------------------------------
16209 if test "$support_python" = "yes" -o "$support_tls" = "yes"; then
16210 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
16211 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
16212 if test "${ac_cv_search_dlopen+set}" = set; then
16213 echo $ECHO_N "(cached) $ECHO_C" >&6
16215 ac_func_search_save_LIBS=$LIBS
16216 ac_cv_search_dlopen=no
16217 cat >conftest.$ac_ext <<_ACEOF
16220 cat confdefs.h >>conftest.$ac_ext
16221 cat >>conftest.$ac_ext <<_ACEOF
16222 /* end confdefs.h. */
16224 /* Override any gcc2 internal prototype to avoid an error. */
16228 /* We use char because int might match the return type of a gcc2
16229 builtin and then its argument prototype would still apply. */
16239 rm -f conftest.$ac_objext conftest$ac_exeext
16240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16241 (eval $ac_link) 2>conftest.er1
16243 grep -v '^ *+' conftest.er1 >conftest.err
16245 cat conftest.err >&5
16246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16247 (exit $ac_status); } &&
16248 { ac_try='test -z "$ac_c_werror_flag"
16249 || test ! -s conftest.err'
16250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16251 (eval $ac_try) 2>&5
16253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16254 (exit $ac_status); }; } &&
16255 { ac_try='test -s conftest$ac_exeext'
16256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16257 (eval $ac_try) 2>&5
16259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16260 (exit $ac_status); }; }; then
16261 ac_cv_search_dlopen="none required"
16263 echo "$as_me: failed program was:" >&5
16264 sed 's/^/| /' conftest.$ac_ext >&5
16267 rm -f conftest.err conftest.$ac_objext \
16268 conftest$ac_exeext conftest.$ac_ext
16269 if test "$ac_cv_search_dlopen" = no; then
16270 for ac_lib in dl; do
16271 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16272 cat >conftest.$ac_ext <<_ACEOF
16275 cat confdefs.h >>conftest.$ac_ext
16276 cat >>conftest.$ac_ext <<_ACEOF
16277 /* end confdefs.h. */
16279 /* Override any gcc2 internal prototype to avoid an error. */
16283 /* We use char because int might match the return type of a gcc2
16284 builtin and then its argument prototype would still apply. */
16294 rm -f conftest.$ac_objext conftest$ac_exeext
16295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16296 (eval $ac_link) 2>conftest.er1
16298 grep -v '^ *+' conftest.er1 >conftest.err
16300 cat conftest.err >&5
16301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16302 (exit $ac_status); } &&
16303 { ac_try='test -z "$ac_c_werror_flag"
16304 || test ! -s conftest.err'
16305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16306 (eval $ac_try) 2>&5
16308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16309 (exit $ac_status); }; } &&
16310 { ac_try='test -s conftest$ac_exeext'
16311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16312 (eval $ac_try) 2>&5
16314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16315 (exit $ac_status); }; }; then
16316 ac_cv_search_dlopen="-l$ac_lib"
16319 echo "$as_me: failed program was:" >&5
16320 sed 's/^/| /' conftest.$ac_ext >&5
16323 rm -f conftest.err conftest.$ac_objext \
16324 conftest$ac_exeext conftest.$ac_ext
16327 LIBS=$ac_func_search_save_LIBS
16329 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
16330 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
16331 if test "$ac_cv_search_dlopen" != no; then
16332 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
16338 # ------------------------------------------
16339 # Where to place working dir
16340 # ------------------------------------------
16341 working_dir=`eval echo ${prefix}/var/bacula/working`
16343 # Check whether --with-working-dir or --without-working-dir was given.
16344 if test "${with_working_dir+set}" = set; then
16345 withval="$with_working_dir"
16347 if test "x$withval" != "xno" ; then
16348 working_dir=$withval
16357 # ------------------------------------------
16358 # Where to place scriptdir (script files)
16359 # ------------------------------------------
16360 scriptdir=`eval echo ${sysconfdir}`
16362 # Check whether --with-scriptdir or --without-scriptdir was given.
16363 if test "${with_scriptdir+set}" = set; then
16364 withval="$with_scriptdir"
16366 if test "x$withval" != "xno" ; then
16376 # ------------------------------------------
16377 # Where to send dump email
16378 # ------------------------------------------
16379 dump_email=root@localhost
16381 # Check whether --with-dump-email or --without-dump-email was given.
16382 if test "${with_dump_email+set}" = set; then
16383 withval="$with_dump_email"
16385 if test "x$withval" != "xno" ; then
16386 dump_email=$withval
16394 # ------------------------------------------
16395 # Where to send job email
16396 # ------------------------------------------
16397 job_email=root@localhost
16399 # Check whether --with-job-email or --without-job-email was given.
16400 if test "${with_job_email+set}" = set; then
16401 withval="$with_job_email"
16403 if test "x$withval" != "xno" ; then
16412 # ------------------------------------------
16413 # Where to find smtp host
16414 # ------------------------------------------
16415 smtp_host=localhost
16417 # Check whether --with-smtp_host or --without-smtp_host was given.
16418 if test "${with_smtp_host+set}" = set; then
16419 withval="$with_smtp_host"
16421 if test "x$withval" != "xno" ; then
16431 # ------------------------------------
16432 # Where to place pid files
16433 # ------------------------------------
16436 # Check whether --with-pid-dir or --without-pid-dir was given.
16437 if test "${with_pid_dir+set}" = set; then
16438 withval="$with_pid_dir"
16440 if test "x$withval" != "xno" ; then
16447 cat >>confdefs.h <<_ACEOF
16448 #define _PATH_BACULA_PIDDIR "$piddir"
16454 # ------------------------------------
16455 # Where to place subsys "lock file"
16456 # ------------------------------------
16457 subsysdir=/var/run/subsys
16458 if test -d /var/run/subsys; then
16459 subsysdir=/var/run/subsys
16460 elif test -d /var/lock/subsys; then
16461 subsysdir=/var/lock/subsys
16463 subsysdir=/var/run/subsys
16466 # Check whether --with-subsys-dir or --without-subsys-dir was given.
16467 if test "${with_subsys_dir+set}" = set; then
16468 withval="$with_subsys_dir"
16470 if test "x$withval" != "xno" ; then
16481 # ------------------------------------
16482 # Where to start assigning ports
16483 # ------------------------------------
16486 # Check whether --with-baseport or --without-baseport was given.
16487 if test "${with_baseport+set}" = set; then
16488 withval="$with_baseport"
16490 if test "x$withval" != "xno" ; then
16498 dir_port=`expr $baseport`
16499 fd_port=`expr $baseport + 1`
16500 sd_port=`expr $fd_port + 1`
16507 # ------------------------------------------
16508 # Generate passwords
16509 # ------------------------------------------
16512 # Check whether --with-dir-password or --without-dir-password was given.
16513 if test "${with_dir_password+set}" = set; then
16514 withval="$with_dir_password"
16516 if test "x$withval" != "xno" ; then
16517 dir_password=$withval
16523 if test "x$dir_password" = "x" ; then
16524 if test "x$OPENSSL" = "xnone" ; then
16525 key=`autoconf/randpass 33`
16527 key=`openssl rand -base64 33`
16534 # Check whether --with-fd-password or --without-fd-password was given.
16535 if test "${with_fd_password+set}" = set; then
16536 withval="$with_fd_password"
16538 if test "x$withval" != "xno" ; then
16539 fd_password=$withval
16545 if test "x$fd_password" = "x" ; then
16546 if test "x$OPENSSL" = "xnone" ; then
16547 key=`autoconf/randpass 37`
16549 key=`openssl rand -base64 33`
16556 # Check whether --with-sd-password or --without-sd-password was given.
16557 if test "${with_sd_password+set}" = set; then
16558 withval="$with_sd_password"
16560 if test "x$withval" != "xno" ; then
16561 sd_password=$withval
16567 if test "x$sd_password" = "x" ; then
16568 if test "x$OPENSSL" = "xnone" ; then
16569 key=`autoconf/randpass 41`
16571 key=`openssl rand -base64 33`
16578 # Check whether --with-mon-dir-password or --without-mon-dir-password was given.
16579 if test "${with_mon_dir_password+set}" = set; then
16580 withval="$with_mon_dir_password"
16582 if test "x$withval" != "xno" ; then
16583 mon_dir_password=$withval
16589 if test "x$mon_dir_password" = "x" ; then
16590 if test "x$OPENSSL" = "xnone" ; then
16591 key=`autoconf/randpass 33`
16593 key=`openssl rand -base64 33`
16595 mon_dir_password=$key
16600 # Check whether --with-mon-fd-password or --without-mon-fd-password was given.
16601 if test "${with_mon_fd_password+set}" = set; then
16602 withval="$with_mon_fd_password"
16604 if test "x$withval" != "xno" ; then
16605 mon_fd_password=$withval
16611 if test "x$mon_fd_password" = "x" ; then
16612 if test "x$OPENSSL" = "xnone" ; then
16613 key=`autoconf/randpass 37`
16615 key=`openssl rand -base64 33`
16617 mon_fd_password=$key
16622 # Check whether --with-mon-sd-password or --without-mon-sd-password was given.
16623 if test "${with_mon_sd_password+set}" = set; then
16624 withval="$with_mon_sd_password"
16626 if test "x$withval" != "xno" ; then
16627 mon_sd_password=$withval
16633 if test "x$mon_sd_password" = "x" ; then
16634 if test "x$OPENSSL" = "xnone" ; then
16635 key=`autoconf/randpass 41`
16637 key=`openssl rand -base64 33`
16639 mon_sd_password=$key
16650 # Pickup any database name
16654 # Check whether --with-db_name or --without-db_name was given.
16655 if test "${with_db_name+set}" = set; then
16656 withval="$with_db_name"
16658 if test "x$withval" != "x" ; then
16668 # Check whether --with-db_user or --without-db_user was given.
16669 if test "${with_db_user+set}" = set; then
16670 withval="$with_db_user"
16672 if test "x$withval" != "x" ; then
16682 # Handle users and groups for each daemon
16686 # Check whether --with-dir_user or --without-dir_user was given.
16687 if test "${with_dir_user+set}" = set; then
16688 withval="$with_dir_user"
16690 if test "x$withval" != "x" ; then
16699 # Check whether --with-dir_group or --without-dir_group was given.
16700 if test "${with_dir_group+set}" = set; then
16701 withval="$with_dir_group"
16703 if test "x$withval" != "x" ; then
16712 # Check whether --with-sd_user or --without-sd_user was given.
16713 if test "${with_sd_user+set}" = set; then
16714 withval="$with_sd_user"
16716 if test "x$withval" != "x" ; then
16725 # Check whether --with-sd_group or --without-sd_group was given.
16726 if test "${with_sd_group+set}" = set; then
16727 withval="$with_sd_group"
16729 if test "x$withval" != "x" ; then
16738 # Check whether --with-fd_user or --without-fd_user was given.
16739 if test "${with_fd_user+set}" = set; then
16740 withval="$with_fd_user"
16742 if test "x$withval" != "x" ; then
16751 # Check whether --with-fd_group or --without-fd_group was given.
16752 if test "${with_fd_group+set}" = set; then
16753 withval="$with_fd_group"
16755 if test "x$withval" != "x" ; then
16770 # allow setting default executable permissions
16774 # Check whether --with-sbin-perm or --without-sbin-perm was given.
16775 if test "${with_sbin_perm+set}" = set; then
16776 withval="$with_sbin_perm"
16778 if test "x$withval" != "x" ; then
16787 # ------------------------------------------------
16788 # Bacula check for various SQL database engines
16789 # ------------------------------------------------
16793 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
16794 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
16796 # Check whether --with-postgresql or --without-postgresql was given.
16797 if test "${with_postgresql+set}" = set; then
16798 withval="$with_postgresql"
16800 if test "$withval" != "no"; then
16801 if test "$db_found" = "yes"; then
16802 echo "$as_me:$LINENO: result: error" >&5
16803 echo "${ECHO_T}error" >&6
16804 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
16805 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
16806 { (exit 1); exit 1; }; };
16808 if test "$withval" = "yes"; then
16809 PG_CONFIG=`which pg_config`
16810 if test -n "$PG_CONFIG";then
16811 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
16812 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
16813 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
16814 elif test -f /usr/local/include/libpq-fe.h; then
16815 POSTGRESQL_INCDIR=/usr/local/include
16816 if test -d /usr/local/lib64; then
16817 POSTGRESQL_LIBDIR=/usr/local/lib64
16819 POSTGRESQL_LIBDIR=/usr/local/lib
16821 POSTGRESQL_BINDIR=/usr/local/bin
16822 elif test -f /usr/include/libpq-fe.h; then
16823 POSTGRESQL_INCDIR=/usr/include
16824 if test -d /usr/lib64; then
16825 POSTGRESQL_LIBDIR=/usr/lib64
16827 POSTGRESQL_LIBDIR=/usr/lib
16829 POSTGRESQL_BINDIR=/usr/bin
16830 elif test -f /usr/include/pgsql/libpq-fe.h; then
16831 POSTGRESQL_INCDIR=/usr/include/pgsql
16832 if test -d /usr/lib64/pgsql; then
16833 POSTGRESQL_LIBDIR=/usr/lib64/pgsql
16835 POSTGRESQL_LIBDIR=/usr/lib/pgsql
16837 POSTGRESQL_BINDIR=/usr/bin
16838 elif test -f /usr/include/postgresql/libpq-fe.h; then
16839 POSTGRESQL_INCDIR=/usr/include/postgresql
16840 if test -d /usr/lib64/postgresql; then
16841 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
16843 POSTGRESQL_LIBDIR=/usr/lib/postgresql
16845 POSTGRESQL_BINDIR=/usr/bin
16847 echo "$as_me:$LINENO: result: no" >&5
16848 echo "${ECHO_T}no" >&6
16849 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
16850 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
16851 { (exit 1); exit 1; }; }
16853 elif test -f $withval/include/libpq-fe.h; then
16854 POSTGRESQL_INCDIR=$withval/include
16855 POSTGRESQL_LIBDIR=$withval/lib
16856 POSTGRESQL_BINDIR=$withval/bin
16857 elif test -f $withval/include/postgresql/libpq-fe.h; then
16858 POSTGRESQL_INCDIR=$withval/include/postgresql
16859 if test -d $withval/lib64; then
16860 POSTGRESQL_LIBDIR=$withval/lib64
16862 POSTGRESQL_LIBDIR=$withval/lib
16864 POSTGRESQL_BINDIR=$withval/bin
16866 echo "$as_me:$LINENO: result: no" >&5
16867 echo "${ECHO_T}no" >&6
16868 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
16869 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
16870 { (exit 1); exit 1; }; }
16872 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
16873 echo "$as_me:$LINENO: checking for crypt" >&5
16874 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
16875 if test "${ac_cv_func_crypt+set}" = set; then
16876 echo $ECHO_N "(cached) $ECHO_C" >&6
16878 cat >conftest.$ac_ext <<_ACEOF
16881 cat confdefs.h >>conftest.$ac_ext
16882 cat >>conftest.$ac_ext <<_ACEOF
16883 /* end confdefs.h. */
16884 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
16885 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16886 #define crypt innocuous_crypt
16888 /* System header to define __stub macros and hopefully few prototypes,
16889 which can conflict with char crypt (); below.
16890 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16891 <limits.h> exists even on freestanding compilers. */
16894 # include <limits.h>
16896 # include <assert.h>
16901 /* Override any gcc2 internal prototype to avoid an error. */
16906 /* We use char because int might match the return type of a gcc2
16907 builtin and then its argument prototype would still apply. */
16909 /* The GNU C library defines this for functions which it implements
16910 to always fail with ENOSYS. Some functions are actually named
16911 something starting with __ and the normal name is an alias. */
16912 #if defined (__stub_crypt) || defined (__stub___crypt)
16915 char (*f) () = crypt;
16929 rm -f conftest.$ac_objext conftest$ac_exeext
16930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16931 (eval $ac_link) 2>conftest.er1
16933 grep -v '^ *+' conftest.er1 >conftest.err
16935 cat conftest.err >&5
16936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16937 (exit $ac_status); } &&
16938 { ac_try='test -z "$ac_c_werror_flag"
16939 || test ! -s conftest.err'
16940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16941 (eval $ac_try) 2>&5
16943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16944 (exit $ac_status); }; } &&
16945 { ac_try='test -s conftest$ac_exeext'
16946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16947 (eval $ac_try) 2>&5
16949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16950 (exit $ac_status); }; }; then
16951 ac_cv_func_crypt=yes
16953 echo "$as_me: failed program was:" >&5
16954 sed 's/^/| /' conftest.$ac_ext >&5
16956 ac_cv_func_crypt=no
16958 rm -f conftest.err conftest.$ac_objext \
16959 conftest$ac_exeext conftest.$ac_ext
16961 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
16962 echo "${ECHO_T}$ac_cv_func_crypt" >&6
16963 if test $ac_cv_func_crypt = yes; then
16966 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
16967 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
16968 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
16969 echo $ECHO_N "(cached) $ECHO_C" >&6
16971 ac_check_lib_save_LIBS=$LIBS
16972 LIBS="-lcrypt $LIBS"
16973 cat >conftest.$ac_ext <<_ACEOF
16976 cat confdefs.h >>conftest.$ac_ext
16977 cat >>conftest.$ac_ext <<_ACEOF
16978 /* end confdefs.h. */
16980 /* Override any gcc2 internal prototype to avoid an error. */
16984 /* We use char because int might match the return type of a gcc2
16985 builtin and then its argument prototype would still apply. */
16995 rm -f conftest.$ac_objext conftest$ac_exeext
16996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16997 (eval $ac_link) 2>conftest.er1
16999 grep -v '^ *+' conftest.er1 >conftest.err
17001 cat conftest.err >&5
17002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17003 (exit $ac_status); } &&
17004 { ac_try='test -z "$ac_c_werror_flag"
17005 || test ! -s conftest.err'
17006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17007 (eval $ac_try) 2>&5
17009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17010 (exit $ac_status); }; } &&
17011 { ac_try='test -s conftest$ac_exeext'
17012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17013 (eval $ac_try) 2>&5
17015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17016 (exit $ac_status); }; }; then
17017 ac_cv_lib_crypt_crypt=yes
17019 echo "$as_me: failed program was:" >&5
17020 sed 's/^/| /' conftest.$ac_ext >&5
17022 ac_cv_lib_crypt_crypt=no
17024 rm -f conftest.err conftest.$ac_objext \
17025 conftest$ac_exeext conftest.$ac_ext
17026 LIBS=$ac_check_lib_save_LIBS
17028 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
17029 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
17030 if test $ac_cv_lib_crypt_crypt = yes; then
17031 POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
17036 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
17037 SQL_LFLAGS=$POSTGRESQL_LFLAGS
17038 SQL_BINDIR=$POSTGRESQL_BINDIR
17039 SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
17041 cat >>confdefs.h <<\_ACEOF
17042 #define HAVE_POSTGRESQL 1
17045 echo "$as_me:$LINENO: result: yes" >&5
17046 echo "${ECHO_T}yes" >&6
17048 support_postgresql=yes
17052 echo "$as_me:$LINENO: result: no" >&5
17053 echo "${ECHO_T}no" >&6
17058 echo "$as_me:$LINENO: result: no" >&5
17059 echo "${ECHO_T}no" >&6
17070 echo "$as_me:$LINENO: checking for MySQL support" >&5
17071 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
17073 # Check whether --with-mysql or --without-mysql was given.
17074 if test "${with_mysql+set}" = set; then
17075 withval="$with_mysql"
17077 if test "$withval" != "no"; then
17078 if test "$withval" = "yes"; then
17079 if test -f /usr/local/mysql/include/mysql/mysql.h; then
17080 MYSQL_INCDIR=/usr/local/mysql/include/mysql
17081 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
17082 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
17083 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
17085 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
17087 MYSQL_BINDIR=/usr/local/mysql/bin
17088 elif test -f /usr/include/mysql/mysql.h; then
17089 MYSQL_INCDIR=/usr/include/mysql
17090 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
17091 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
17092 MYSQL_LIBDIR=/usr/lib64/mysql
17093 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
17094 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
17095 MYSQL_LIBDIR=/usr/lib/mysql
17097 MYSQL_LIBDIR=/usr/lib
17099 MYSQL_BINDIR=/usr/bin
17100 elif test -f /usr/include/mysql.h; then
17101 MYSQL_INCDIR=/usr/include
17102 if test -f /usr/lib64/libmysqlclient_r.a \
17103 -o -f /usr/lib64/libmysqlclient_r.so; then
17104 MYSQL_LIBDIR=/usr/lib64
17106 MYSQL_LIBDIR=/usr/lib
17108 MYSQL_BINDIR=/usr/bin
17109 elif test -f /usr/local/include/mysql/mysql.h; then
17110 MYSQL_INCDIR=/usr/local/include/mysql
17111 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
17112 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
17113 MYSQL_LIBDIR=/usr/local/lib64/mysql
17115 MYSQL_LIBDIR=/usr/local/lib/mysql
17117 MYSQL_BINDIR=/usr/local/bin
17118 elif test -f /usr/local/include/mysql.h; then
17119 MYSQL_INCDIR=/usr/local/include
17120 if test -f /usr/local/lib64/libmysqlclient_r.a \
17121 -o -f /usr/local/lib64/libmysqlclient_r.so; then
17122 MYSQL_LIBDIR=/usr/local/lib64
17124 MYSQL_LIBDIR=/usr/local/lib
17126 MYSQL_BINDIR=/usr/local/bin
17128 echo "$as_me:$LINENO: result: no" >&5
17129 echo "${ECHO_T}no" >&6
17130 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
17131 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
17132 { (exit 1); exit 1; }; }
17135 if test -f $withval/include/mysql/mysql.h; then
17136 MYSQL_INCDIR=$withval/include/mysql
17137 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
17138 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
17139 MYSQL_LIBDIR=$withval/lib64/mysql
17141 MYSQL_LIBDIR=$withval/lib/mysql
17143 if test -f $withval/lib/libmysqlclient_r.so; then
17144 MYSQL_LIBDIR=$withval/lib
17147 MYSQL_BINDIR=$withval/bin
17148 elif test -f $withval/include/mysql.h; then
17149 MYSQL_INCDIR=$withval/include
17150 if test -f $withval/lib64/libmysqlclient_r.a \
17151 -o -f $withval/lib64/libmysqlclient_r.so; then
17152 MYSQL_LIBDIR=$withval/lib64
17154 MYSQL_LIBDIR=$withval/lib
17156 MYSQL_BINDIR=$withval/bin
17158 echo "$as_me:$LINENO: result: no" >&5
17159 echo "${ECHO_T}no" >&6
17160 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
17161 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
17162 { (exit 1); exit 1; }; }
17165 SQL_INCLUDE=-I$MYSQL_INCDIR
17166 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
17167 -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
17168 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
17169 cat >>confdefs.h <<\_ACEOF
17170 #define HAVE_THREAD_SAFE_MYSQL 1
17174 SQL_BINDIR=$MYSQL_BINDIR
17175 SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
17177 cat >>confdefs.h <<\_ACEOF
17178 #define HAVE_MYSQL 1
17181 echo "$as_me:$LINENO: result: yes" >&5
17182 echo "${ECHO_T}yes" >&6
17189 echo "$as_me:$LINENO: result: no" >&5
17190 echo "${ECHO_T}no" >&6
17197 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
17198 if test "${with_embedded_mysql+set}" = set; then
17199 withval="$with_embedded_mysql"
17201 if test "$withval" != "no"; then
17202 if test "$withval" = "yes"; then
17203 if test -f /usr/local/mysql/include/mysql/mysql.h; then
17204 MYSQL_INCDIR=/usr/local/mysql/include/mysql
17205 if test -d /usr/local/mysql/lib64/mysql; then
17206 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
17208 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
17210 MYSQL_BINDIR=/usr/local/mysql/bin
17211 elif test -f /usr/include/mysql/mysql.h; then
17212 MYSQL_INCDIR=/usr/include/mysql
17213 if test -d /usr/lib64/mysql; then
17214 MYSQL_LIBDIR=/usr/lib64/mysql
17216 MYSQL_LIBDIR=/usr/lib/mysql
17218 MYSQL_BINDIR=/usr/bin
17219 elif test -f /usr/include/mysql.h; then
17220 MYSQL_INCDIR=/usr/include
17221 if test -d /usr/lib64; then
17222 MYSQL_LIBDIR=/usr/lib64
17224 MYSQL_LIBDIR=/usr/lib
17226 MYSQL_BINDIR=/usr/bin
17227 elif test -f /usr/local/include/mysql/mysql.h; then
17228 MYSQL_INCDIR=/usr/local/include/mysql
17229 if test -d /usr/local/lib64/mysql; then
17230 MYSQL_LIBDIR=/usr/local/lib64/mysql
17232 MYSQL_LIBDIR=/usr/local/lib/mysql
17234 MYSQL_BINDIR=/usr/local/bin
17235 elif test -f /usr/local/include/mysql.h; then
17236 MYSQL_INCDIR=/usr/local/include
17237 if test -d /usr/local/lib64; then
17238 MYSQL_LIBDIR=/usr/local/lib64
17240 MYSQL_LIBDIR=/usr/local/lib
17242 MYSQL_BINDIR=/usr/local/bin
17244 echo "$as_me:$LINENO: result: no" >&5
17245 echo "${ECHO_T}no" >&6
17246 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
17247 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
17248 { (exit 1); exit 1; }; }
17251 if test -f $withval/include/mysql/mysql.h; then
17252 MYSQL_INCDIR=$withval/include/mysql
17253 if test -d $withval/lib64/mysql; then
17254 MYSQL_LIBDIR=$withval/lib64/mysql
17256 MYSQL_LIBDIR=$withval/lib/mysql
17258 MYSQL_BINDIR=$withval/bin
17259 elif test -f $withval/include/mysql.h; then
17260 MYSQL_INCDIR=$withval/include
17261 if test -d $withval/lib64; then
17262 MYSQL_LIBDIR=$withval/lib64
17264 MYSQL_LIBDIR=$withval/lib
17266 MYSQL_BINDIR=$withval/bin
17268 echo "$as_me:$LINENO: result: no" >&5
17269 echo "${ECHO_T}no" >&6
17270 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
17271 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
17272 { (exit 1); exit 1; }; }
17275 SQL_INCLUDE=-I$MYSQL_INCDIR
17276 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
17277 SQL_BINDIR=$MYSQL_BINDIR
17278 SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
17280 cat >>confdefs.h <<\_ACEOF
17281 #define HAVE_MYSQL 1
17284 cat >>confdefs.h <<\_ACEOF
17285 #define HAVE_EMBEDDED_MYSQL 1
17288 echo "$as_me:$LINENO: result: yes" >&5
17289 echo "${ECHO_T}yes" >&6
17296 echo "$as_me:$LINENO: result: no" >&5
17297 echo "${ECHO_T}no" >&6
17312 echo "$as_me:$LINENO: checking for SQLite3 support" >&5
17313 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6
17315 # Check whether --with-sqlite3 or --without-sqlite3 was given.
17316 if test "${with_sqlite3+set}" = set; then
17317 withval="$with_sqlite3"
17319 if test "$withval" != "no"; then
17320 if test "$withval" = "yes"; then
17321 if test -f /usr/local/include/sqlite3.h; then
17322 SQLITE_INCDIR=/usr/local/include
17323 if test -d /usr/local/lib64; then
17324 SQLITE_LIBDIR=/usr/local/lib64
17326 SQLITE_LIBDIR=/usr/local/lib
17328 SQLITE_BINDIR=/usr/local/bin
17329 elif test -f /usr/include/sqlite3.h; then
17330 SQLITE_INCDIR=/usr/include
17331 if test -d /usr/lib64; then
17332 SQLITE_LIBDIR=/usr/lib64
17334 SQLITE_LIBDIR=/usr/lib
17336 SQLITE_BINDIR=/usr/bin
17337 elif test -f $prefix/include/sqlite3.h; then
17338 SQLITE_INCDIR=$prefix/include
17339 if test -d $prefix/lib64; then
17340 SQLITE_LIBDIR=$prefix/lib64
17342 SQLITE_LIBDIR=$prefix/lib
17344 SQLITE_BINDIR=$prefix/bin
17346 echo "$as_me:$LINENO: result: no" >&5
17347 echo "${ECHO_T}no" >&6
17348 { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
17349 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
17350 { (exit 1); exit 1; }; }
17353 if test -f $withval/sqlite3.h; then
17354 SQLITE_INCDIR=$withval
17355 SQLITE_LIBDIR=$withval
17356 SQLITE_BINDIR=$withval
17357 elif test -f $withval/include/sqlite3.h; then
17358 SQLITE_INCDIR=$withval/include
17359 if test -d $withval/lib64; then
17360 SQLITE_LIBDIR=$withval/lib64
17362 SQLITE_LIBDIR=$withval/lib
17364 SQLITE_BINDIR=$withval/bin
17366 echo "$as_me:$LINENO: result: no" >&5
17367 echo "${ECHO_T}no" >&6
17368 { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
17369 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
17370 { (exit 1); exit 1; }; }
17373 SQL_INCLUDE=-I$SQLITE_INCDIR
17374 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
17375 SQL_BINDIR=$SQLITE_BINDIR
17376 SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
17378 cat >>confdefs.h <<\_ACEOF
17379 #define HAVE_SQLITE3 1
17382 echo "$as_me:$LINENO: result: yes" >&5
17383 echo "${ECHO_T}yes" >&6
17385 support_sqlite3=yes
17390 echo "$as_me:$LINENO: result: no" >&5
17391 echo "${ECHO_T}no" >&6
17396 echo "$as_me:$LINENO: result: no" >&5
17397 echo "${ECHO_T}no" >&6
17408 echo "$as_me:$LINENO: checking for SQLite support" >&5
17409 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
17411 # Check whether --with-sqlite or --without-sqlite was given.
17412 if test "${with_sqlite+set}" = set; then
17413 withval="$with_sqlite"
17415 if test "$withval" != "no"; then
17416 if test "$withval" = "yes"; then
17417 if test -f /usr/local/include/sqlite.h; then
17418 SQLITE_INCDIR=/usr/local/include
17419 if test -d /usr/local/lib64; then
17420 SQLITE_LIBDIR=/usr/local/lib64
17422 SQLITE_LIBDIR=/usr/local/lib
17424 SQLITE_BINDIR=/usr/local/bin
17425 elif test -f /usr/include/sqlite.h; then
17426 SQLITE_INCDIR=/usr/include
17427 if test -d /usr/lib64; then
17428 SQLITE_LIBDIR=/usr/lib64
17430 SQLITE_LIBDIR=/usr/lib
17432 SQLITE_BINDIR=/usr/bin
17433 elif test -f $prefix/include/sqlite.h; then
17434 SQLITE_INCDIR=$prefix/include
17435 if test -d $prefix/lib64; then
17436 SQLITE_LIBDIR=$prefix/lib64
17438 SQLITE_LIBDIR=$prefix/lib
17440 SQLITE_BINDIR=$prefix/bin
17442 echo "$as_me:$LINENO: result: no" >&5
17443 echo "${ECHO_T}no" >&6
17444 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
17445 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
17446 { (exit 1); exit 1; }; }
17449 if test -f $withval/sqlite.h; then
17450 SQLITE_INCDIR=$withval
17451 SQLITE_LIBDIR=$withval
17452 SQLITE_BINDIR=$withval
17453 elif test -f $withval/include/sqlite.h; then
17454 SQLITE_INCDIR=$withval/include
17455 if test -d $withval/lib64; then
17456 SQLITE_LIBDIR=$withval/lib64
17458 SQLITE_LIBDIR=$withval/lib
17460 SQLITE_BINDIR=$withval/bin
17462 echo "$as_me:$LINENO: result: no" >&5
17463 echo "${ECHO_T}no" >&6
17464 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
17465 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
17466 { (exit 1); exit 1; }; }
17469 SQL_INCLUDE=-I$SQLITE_INCDIR
17470 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
17471 SQL_BINDIR=$SQLITE_BINDIR
17472 SQL_LIB=$SQLITE_LIBDIR/libsqlite.a
17474 cat >>confdefs.h <<\_ACEOF
17475 #define HAVE_SQLITE 1
17478 echo "$as_me:$LINENO: result: yes" >&5
17479 echo "${ECHO_T}yes" >&6
17486 echo "$as_me:$LINENO: result: no" >&5
17487 echo "${ECHO_T}no" >&6
17492 echo "$as_me:$LINENO: result: no" >&5
17493 echo "${ECHO_T}no" >&6
17505 # -------------------------------------------
17506 # enable batch attribute DB insert (default on)
17507 # -------------------------------------------
17508 support_batch_insert=no
17509 A=`nm $SQL_LIB | grep pthread_mutex_lock`
17511 if test $pkg = 0; then
17512 support_batch_insert=yes
17513 # Check whether --enable-batch-insert or --disable-batch-insert was given.
17514 if test "${enable_batch_insert+set}" = set; then
17515 enableval="$enable_batch_insert"
17516 if test x$enableval = xno; then
17517 support_batch_insert=no
17519 support_batch_insert=yes
17524 # Check if postgresql support batch mode
17525 if test x$DB_TYPE = xpostgresql; then
17526 A=`nm $SQL_LIB | grep PQputCopyData`
17528 if test $pkg != 0; then
17529 support_batch_insert=no
17533 if test $support_batch_insert = yes ; then
17535 cat >>confdefs.h <<\_ACEOF
17536 #define HAVE_BATCH_FILE_INSERT 1
17542 cat >>confdefs.h <<\_ACEOF
17543 #define PROTOTYPES 1
17547 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
17548 if test -z "$CCOPTS"; then
17549 CCOPTS='-g -O2 -Wall'
17557 largefile_support="no"
17559 # Check whether --enable-largefile or --disable-largefile was given.
17560 if test "${enable_largefile+set}" = set; then
17561 enableval="$enable_largefile"
17564 if test "$enable_largefile" != no; then
17565 if test -n "$ac_tool_prefix"; then
17566 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
17567 set dummy ${ac_tool_prefix}getconf; ac_word=$2
17568 echo "$as_me:$LINENO: checking for $ac_word" >&5
17569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17570 if test "${ac_cv_prog_GETCONF+set}" = set; then
17571 echo $ECHO_N "(cached) $ECHO_C" >&6
17573 if test -n "$GETCONF"; then
17574 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
17576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17577 for as_dir in $PATH
17580 test -z "$as_dir" && as_dir=.
17581 for ac_exec_ext in '' $ac_executable_extensions; do
17582 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17583 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
17584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17592 GETCONF=$ac_cv_prog_GETCONF
17593 if test -n "$GETCONF"; then
17594 echo "$as_me:$LINENO: result: $GETCONF" >&5
17595 echo "${ECHO_T}$GETCONF" >&6
17597 echo "$as_me:$LINENO: result: no" >&5
17598 echo "${ECHO_T}no" >&6
17602 if test -z "$ac_cv_prog_GETCONF"; then
17603 ac_ct_GETCONF=$GETCONF
17604 # Extract the first word of "getconf", so it can be a program name with args.
17605 set dummy getconf; ac_word=$2
17606 echo "$as_me:$LINENO: checking for $ac_word" >&5
17607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17608 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
17609 echo $ECHO_N "(cached) $ECHO_C" >&6
17611 if test -n "$ac_ct_GETCONF"; then
17612 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
17614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17615 for as_dir in $PATH
17618 test -z "$as_dir" && as_dir=.
17619 for ac_exec_ext in '' $ac_executable_extensions; do
17620 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17621 ac_cv_prog_ac_ct_GETCONF="getconf"
17622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17630 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
17631 if test -n "$ac_ct_GETCONF"; then
17632 echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
17633 echo "${ECHO_T}$ac_ct_GETCONF" >&6
17635 echo "$as_me:$LINENO: result: no" >&5
17636 echo "${ECHO_T}no" >&6
17639 GETCONF=$ac_ct_GETCONF
17641 GETCONF="$ac_cv_prog_GETCONF"
17644 echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
17645 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
17646 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
17647 echo $ECHO_N "(cached) $ECHO_C" >&6
17649 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
17650 ac_cv_sys_largefile_CFLAGS=no
17652 # IRIX 6.2 and later require cc -n32.
17653 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
17654 if test "$GCC" != yes; then
17655 ac_cv_sys_largefile_CFLAGS=-n32
17658 CC="$CC $ac_cv_sys_largefile_CFLAGS"
17659 cat >conftest.$ac_ext <<_ACEOF
17662 cat confdefs.h >>conftest.$ac_ext
17663 cat >>conftest.$ac_ext <<_ACEOF
17664 /* end confdefs.h. */
17674 rm -f conftest.$ac_objext conftest$ac_exeext
17675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17676 (eval $ac_link) 2>conftest.er1
17678 grep -v '^ *+' conftest.er1 >conftest.err
17680 cat conftest.err >&5
17681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17682 (exit $ac_status); } &&
17683 { ac_try='test -z "$ac_c_werror_flag"
17684 || test ! -s conftest.err'
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); }; } &&
17690 { ac_try='test -s conftest$ac_exeext'
17691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17692 (eval $ac_try) 2>&5
17694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17695 (exit $ac_status); }; }; then
17698 echo "$as_me: failed program was:" >&5
17699 sed 's/^/| /' conftest.$ac_ext >&5
17701 ac_cv_sys_largefile_CFLAGS=no
17703 rm -f conftest.err conftest.$ac_objext \
17704 conftest$ac_exeext conftest.$ac_ext
17709 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
17710 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
17711 echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
17712 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
17713 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
17714 echo $ECHO_N "(cached) $ECHO_C" >&6
17716 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
17717 ac_cv_sys_largefile_LDFLAGS=no
17721 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
17722 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
17723 echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
17724 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
17725 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
17726 echo $ECHO_N "(cached) $ECHO_C" >&6
17728 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
17729 ac_cv_sys_largefile_LIBS=no
17733 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
17734 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
17736 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17739 -D_FILE_OFFSET_BITS=*) ;;
17740 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
17741 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
17746 case "$CPPFLAGS" in
17747 '') CPPFLAGS="$ac_flag" ;;
17748 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
17756 '') CFLAGS="$ac_flag" ;;
17757 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
17762 case "$ac_cv_sys_largefile_LDFLAGS" in
17766 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
17767 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
17770 case "$ac_cv_sys_largefile_LIBS" in
17774 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
17775 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
17778 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
17779 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
17780 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
17781 echo $ECHO_N "(cached) $ECHO_C" >&6
17783 ac_cv_sys_file_offset_bits=no
17784 ac_cv_sys_file_offset_bits=64
17785 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17787 -D_FILE_OFFSET_BITS)
17788 ac_cv_sys_file_offset_bits=1 ;;
17789 -D_FILE_OFFSET_BITS=*)
17790 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
17795 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
17796 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
17797 if test "$ac_cv_sys_file_offset_bits" != no; then
17799 cat >>confdefs.h <<_ACEOF
17800 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
17804 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
17805 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
17806 if test "${ac_cv_sys_largefile_source+set}" = set; then
17807 echo $ECHO_N "(cached) $ECHO_C" >&6
17809 ac_cv_sys_largefile_source=no
17810 ac_cv_sys_largefile_source=1
17811 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17813 -D_LARGEFILE_SOURCE)
17814 ac_cv_sys_largefile_source=1 ;;
17815 -D_LARGEFILE_SOURCE=*)
17816 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
17821 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
17822 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
17823 if test "$ac_cv_sys_largefile_source" != no; then
17825 cat >>confdefs.h <<_ACEOF
17826 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17830 echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
17831 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
17832 if test "${ac_cv_sys_large_files+set}" = set; then
17833 echo $ECHO_N "(cached) $ECHO_C" >&6
17835 ac_cv_sys_large_files=no
17836 ac_cv_sys_large_files=1
17837 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17840 ac_cv_sys_large_files=1 ;;
17842 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
17847 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
17848 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
17849 if test "$ac_cv_sys_large_files" != no; then
17851 cat >>confdefs.h <<_ACEOF
17852 #define _LARGE_FILES $ac_cv_sys_large_files
17860 echo "$as_me:$LINENO: checking for X" >&5
17861 echo $ECHO_N "checking for X... $ECHO_C" >&6
17864 # Check whether --with-x or --without-x was given.
17865 if test "${with_x+set}" = set; then
17869 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
17870 if test "x$with_x" = xno; then
17871 # The user explicitly disabled X.
17874 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
17875 # Both variables are already set.
17878 if test "${ac_cv_have_x+set}" = set; then
17879 echo $ECHO_N "(cached) $ECHO_C" >&6
17881 # One or both of the vars are not set, and there is no cached value.
17882 ac_x_includes=no ac_x_libraries=no
17883 rm -fr conftest.dir
17884 if mkdir conftest.dir; then
17886 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
17887 cat >Imakefile <<'_ACEOF'
17889 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
17891 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
17892 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
17893 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
17894 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
17895 for ac_extension in a so sl; do
17896 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
17897 test -f $ac_im_libdir/libX11.$ac_extension; then
17898 ac_im_usrlibdir=$ac_im_libdir; break
17901 # Screen out bogus values from the imake configuration. They are
17902 # bogus both because they are the default anyway, and because
17903 # using them would break gcc on systems where it needs fixed includes.
17904 case $ac_im_incroot in
17906 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
17908 case $ac_im_usrlibdir in
17909 /usr/lib | /lib) ;;
17910 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
17914 rm -fr conftest.dir
17917 # Standard set of common directories for X headers.
17918 # Check X11 before X11Rn because it is often a symlink to the current release.
17930 /usr/local/X11/include
17931 /usr/local/X11R6/include
17932 /usr/local/X11R5/include
17933 /usr/local/X11R4/include
17935 /usr/local/include/X11
17936 /usr/local/include/X11R6
17937 /usr/local/include/X11R5
17938 /usr/local/include/X11R4
17942 /usr/XFree86/include/X11
17946 /usr/unsupported/include
17947 /usr/athena/include
17948 /usr/local/x11r5/include
17949 /usr/lpp/Xamples/include
17951 /usr/openwin/include
17952 /usr/openwin/share/include'
17954 if test "$ac_x_includes" = no; then
17955 # Guess where to find include files, by looking for Xlib.h.
17956 # First, try using that file with no special directory specified.
17957 cat >conftest.$ac_ext <<_ACEOF
17960 cat confdefs.h >>conftest.$ac_ext
17961 cat >>conftest.$ac_ext <<_ACEOF
17962 /* end confdefs.h. */
17963 #include <X11/Xlib.h>
17965 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17966 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17968 grep -v '^ *+' conftest.er1 >conftest.err
17970 cat conftest.err >&5
17971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17972 (exit $ac_status); } >/dev/null; then
17973 if test -s conftest.err; then
17974 ac_cpp_err=$ac_c_preproc_warn_flag
17975 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17982 if test -z "$ac_cpp_err"; then
17983 # We can compile using X headers with no special include directory.
17986 echo "$as_me: failed program was:" >&5
17987 sed 's/^/| /' conftest.$ac_ext >&5
17989 for ac_dir in $ac_x_header_dirs; do
17990 if test -r "$ac_dir/X11/Xlib.h"; then
17991 ac_x_includes=$ac_dir
17996 rm -f conftest.err conftest.$ac_ext
17997 fi # $ac_x_includes = no
17999 if test "$ac_x_libraries" = no; then
18000 # Check for the libraries.
18001 # See if we find them without any special options.
18002 # Don't add to $LIBS permanently.
18005 cat >conftest.$ac_ext <<_ACEOF
18008 cat confdefs.h >>conftest.$ac_ext
18009 cat >>conftest.$ac_ext <<_ACEOF
18010 /* end confdefs.h. */
18011 #include <X11/Xlib.h>
18020 rm -f conftest.$ac_objext conftest$ac_exeext
18021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18022 (eval $ac_link) 2>conftest.er1
18024 grep -v '^ *+' conftest.er1 >conftest.err
18026 cat conftest.err >&5
18027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18028 (exit $ac_status); } &&
18029 { ac_try='test -z "$ac_c_werror_flag"
18030 || test ! -s conftest.err'
18031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18032 (eval $ac_try) 2>&5
18034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18035 (exit $ac_status); }; } &&
18036 { ac_try='test -s conftest$ac_exeext'
18037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18038 (eval $ac_try) 2>&5
18040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18041 (exit $ac_status); }; }; then
18043 # We can link X programs with no special library path.
18046 echo "$as_me: failed program was:" >&5
18047 sed 's/^/| /' conftest.$ac_ext >&5
18050 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
18052 # Don't even attempt the hair of trying to link an X program!
18053 for ac_extension in a so sl; do
18054 if test -r $ac_dir/libXt.$ac_extension; then
18055 ac_x_libraries=$ac_dir
18061 rm -f conftest.err conftest.$ac_objext \
18062 conftest$ac_exeext conftest.$ac_ext
18063 fi # $ac_x_libraries = no
18065 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
18066 # Didn't find X anywhere. Cache the known absence of X.
18067 ac_cv_have_x="have_x=no"
18069 # Record where we found X for the cache.
18070 ac_cv_have_x="have_x=yes \
18071 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
18076 eval "$ac_cv_have_x"
18079 if test "$have_x" != yes; then
18080 echo "$as_me:$LINENO: result: $have_x" >&5
18081 echo "${ECHO_T}$have_x" >&6
18084 # If each of the values was on the command line, it overrides each guess.
18085 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
18086 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
18087 # Update the cache value to reflect the command line values.
18088 ac_cv_have_x="have_x=yes \
18089 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
18090 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
18091 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
18094 if test "$no_x" = yes; then
18095 # Not all programs may use this symbol, but it does not hurt to define it.
18097 cat >>confdefs.h <<\_ACEOF
18098 #define X_DISPLAY_MISSING 1
18101 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
18103 if test -n "$x_includes"; then
18104 X_CFLAGS="$X_CFLAGS -I$x_includes"
18107 # It would also be nice to do this for all -L options, not just this one.
18108 if test -n "$x_libraries"; then
18109 X_LIBS="$X_LIBS -L$x_libraries"
18110 # For Solaris; some versions of Sun CC require a space after -R and
18111 # others require no space. Words are not sufficient . . . .
18112 case `(uname -sr) 2>/dev/null` in
18114 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
18115 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
18116 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
18117 cat >conftest.$ac_ext <<_ACEOF
18120 cat confdefs.h >>conftest.$ac_ext
18121 cat >>conftest.$ac_ext <<_ACEOF
18122 /* end confdefs.h. */
18132 rm -f conftest.$ac_objext conftest$ac_exeext
18133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18134 (eval $ac_link) 2>conftest.er1
18136 grep -v '^ *+' conftest.er1 >conftest.err
18138 cat conftest.err >&5
18139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18140 (exit $ac_status); } &&
18141 { ac_try='test -z "$ac_c_werror_flag"
18142 || test ! -s conftest.err'
18143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18144 (eval $ac_try) 2>&5
18146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18147 (exit $ac_status); }; } &&
18148 { ac_try='test -s conftest$ac_exeext'
18149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18150 (eval $ac_try) 2>&5
18152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18153 (exit $ac_status); }; }; then
18156 echo "$as_me: failed program was:" >&5
18157 sed 's/^/| /' conftest.$ac_ext >&5
18161 rm -f conftest.err conftest.$ac_objext \
18162 conftest$ac_exeext conftest.$ac_ext
18163 if test $ac_R_nospace = yes; then
18164 echo "$as_me:$LINENO: result: no" >&5
18165 echo "${ECHO_T}no" >&6
18166 X_LIBS="$X_LIBS -R$x_libraries"
18168 LIBS="$ac_xsave_LIBS -R $x_libraries"
18169 cat >conftest.$ac_ext <<_ACEOF
18172 cat confdefs.h >>conftest.$ac_ext
18173 cat >>conftest.$ac_ext <<_ACEOF
18174 /* end confdefs.h. */
18184 rm -f conftest.$ac_objext conftest$ac_exeext
18185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18186 (eval $ac_link) 2>conftest.er1
18188 grep -v '^ *+' conftest.er1 >conftest.err
18190 cat conftest.err >&5
18191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18192 (exit $ac_status); } &&
18193 { ac_try='test -z "$ac_c_werror_flag"
18194 || test ! -s conftest.err'
18195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18196 (eval $ac_try) 2>&5
18198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18199 (exit $ac_status); }; } &&
18200 { ac_try='test -s conftest$ac_exeext'
18201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18202 (eval $ac_try) 2>&5
18204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18205 (exit $ac_status); }; }; then
18208 echo "$as_me: failed program was:" >&5
18209 sed 's/^/| /' conftest.$ac_ext >&5
18213 rm -f conftest.err conftest.$ac_objext \
18214 conftest$ac_exeext conftest.$ac_ext
18215 if test $ac_R_space = yes; then
18216 echo "$as_me:$LINENO: result: yes" >&5
18217 echo "${ECHO_T}yes" >&6
18218 X_LIBS="$X_LIBS -R $x_libraries"
18220 echo "$as_me:$LINENO: result: neither works" >&5
18221 echo "${ECHO_T}neither works" >&6
18224 LIBS=$ac_xsave_LIBS
18228 # Check for system-dependent libraries X programs must link with.
18229 # Do this before checking for the system-independent R6 libraries
18230 # (-lICE), since we may need -lsocket or whatever for X linking.
18232 if test "$ISC" = yes; then
18233 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
18235 # Martyn Johnson says this is needed for Ultrix, if the X
18236 # libraries were built with DECnet support. And Karl Berry says
18237 # the Alpha needs dnet_stub (dnet does not exist).
18238 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
18239 cat >conftest.$ac_ext <<_ACEOF
18242 cat confdefs.h >>conftest.$ac_ext
18243 cat >>conftest.$ac_ext <<_ACEOF
18244 /* end confdefs.h. */
18246 /* Override any gcc2 internal prototype to avoid an error. */
18250 /* We use char because int might match the return type of a gcc2
18251 builtin and then its argument prototype would still apply. */
18252 char XOpenDisplay ();
18261 rm -f conftest.$ac_objext conftest$ac_exeext
18262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18263 (eval $ac_link) 2>conftest.er1
18265 grep -v '^ *+' conftest.er1 >conftest.err
18267 cat conftest.err >&5
18268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18269 (exit $ac_status); } &&
18270 { ac_try='test -z "$ac_c_werror_flag"
18271 || test ! -s conftest.err'
18272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18273 (eval $ac_try) 2>&5
18275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18276 (exit $ac_status); }; } &&
18277 { ac_try='test -s conftest$ac_exeext'
18278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18279 (eval $ac_try) 2>&5
18281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18282 (exit $ac_status); }; }; then
18285 echo "$as_me: failed program was:" >&5
18286 sed 's/^/| /' conftest.$ac_ext >&5
18288 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
18289 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
18290 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
18291 echo $ECHO_N "(cached) $ECHO_C" >&6
18293 ac_check_lib_save_LIBS=$LIBS
18294 LIBS="-ldnet $LIBS"
18295 cat >conftest.$ac_ext <<_ACEOF
18298 cat confdefs.h >>conftest.$ac_ext
18299 cat >>conftest.$ac_ext <<_ACEOF
18300 /* end confdefs.h. */
18302 /* Override any gcc2 internal prototype to avoid an error. */
18306 /* We use char because int might match the return type of a gcc2
18307 builtin and then its argument prototype would still apply. */
18317 rm -f conftest.$ac_objext conftest$ac_exeext
18318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18319 (eval $ac_link) 2>conftest.er1
18321 grep -v '^ *+' conftest.er1 >conftest.err
18323 cat conftest.err >&5
18324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18325 (exit $ac_status); } &&
18326 { ac_try='test -z "$ac_c_werror_flag"
18327 || test ! -s conftest.err'
18328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18329 (eval $ac_try) 2>&5
18331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18332 (exit $ac_status); }; } &&
18333 { ac_try='test -s conftest$ac_exeext'
18334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18335 (eval $ac_try) 2>&5
18337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18338 (exit $ac_status); }; }; then
18339 ac_cv_lib_dnet_dnet_ntoa=yes
18341 echo "$as_me: failed program was:" >&5
18342 sed 's/^/| /' conftest.$ac_ext >&5
18344 ac_cv_lib_dnet_dnet_ntoa=no
18346 rm -f conftest.err conftest.$ac_objext \
18347 conftest$ac_exeext conftest.$ac_ext
18348 LIBS=$ac_check_lib_save_LIBS
18350 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
18351 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
18352 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
18353 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
18356 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
18357 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
18358 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
18359 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
18360 echo $ECHO_N "(cached) $ECHO_C" >&6
18362 ac_check_lib_save_LIBS=$LIBS
18363 LIBS="-ldnet_stub $LIBS"
18364 cat >conftest.$ac_ext <<_ACEOF
18367 cat confdefs.h >>conftest.$ac_ext
18368 cat >>conftest.$ac_ext <<_ACEOF
18369 /* end confdefs.h. */
18371 /* Override any gcc2 internal prototype to avoid an error. */
18375 /* We use char because int might match the return type of a gcc2
18376 builtin and then its argument prototype would still apply. */
18386 rm -f conftest.$ac_objext conftest$ac_exeext
18387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18388 (eval $ac_link) 2>conftest.er1
18390 grep -v '^ *+' conftest.er1 >conftest.err
18392 cat conftest.err >&5
18393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18394 (exit $ac_status); } &&
18395 { ac_try='test -z "$ac_c_werror_flag"
18396 || test ! -s conftest.err'
18397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18398 (eval $ac_try) 2>&5
18400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18401 (exit $ac_status); }; } &&
18402 { ac_try='test -s conftest$ac_exeext'
18403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18404 (eval $ac_try) 2>&5
18406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18407 (exit $ac_status); }; }; then
18408 ac_cv_lib_dnet_stub_dnet_ntoa=yes
18410 echo "$as_me: failed program was:" >&5
18411 sed 's/^/| /' conftest.$ac_ext >&5
18413 ac_cv_lib_dnet_stub_dnet_ntoa=no
18415 rm -f conftest.err conftest.$ac_objext \
18416 conftest$ac_exeext conftest.$ac_ext
18417 LIBS=$ac_check_lib_save_LIBS
18419 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
18420 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
18421 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
18422 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
18427 rm -f conftest.err conftest.$ac_objext \
18428 conftest$ac_exeext conftest.$ac_ext
18429 LIBS="$ac_xsave_LIBS"
18431 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
18432 # to get the SysV transport functions.
18433 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
18435 # The nsl library prevents programs from opening the X display
18436 # on Irix 5.2, according to T.E. Dickey.
18437 # The functions gethostbyname, getservbyname, and inet_addr are
18438 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
18439 echo "$as_me:$LINENO: checking for gethostbyname" >&5
18440 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
18441 if test "${ac_cv_func_gethostbyname+set}" = set; then
18442 echo $ECHO_N "(cached) $ECHO_C" >&6
18444 cat >conftest.$ac_ext <<_ACEOF
18447 cat confdefs.h >>conftest.$ac_ext
18448 cat >>conftest.$ac_ext <<_ACEOF
18449 /* end confdefs.h. */
18450 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
18451 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18452 #define gethostbyname innocuous_gethostbyname
18454 /* System header to define __stub macros and hopefully few prototypes,
18455 which can conflict with char gethostbyname (); below.
18456 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18457 <limits.h> exists even on freestanding compilers. */
18460 # include <limits.h>
18462 # include <assert.h>
18465 #undef gethostbyname
18467 /* Override any gcc2 internal prototype to avoid an error. */
18472 /* We use char because int might match the return type of a gcc2
18473 builtin and then its argument prototype would still apply. */
18474 char gethostbyname ();
18475 /* The GNU C library defines this for functions which it implements
18476 to always fail with ENOSYS. Some functions are actually named
18477 something starting with __ and the normal name is an alias. */
18478 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
18481 char (*f) () = gethostbyname;
18490 return f != gethostbyname;
18495 rm -f conftest.$ac_objext conftest$ac_exeext
18496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18497 (eval $ac_link) 2>conftest.er1
18499 grep -v '^ *+' conftest.er1 >conftest.err
18501 cat conftest.err >&5
18502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18503 (exit $ac_status); } &&
18504 { ac_try='test -z "$ac_c_werror_flag"
18505 || test ! -s conftest.err'
18506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18507 (eval $ac_try) 2>&5
18509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18510 (exit $ac_status); }; } &&
18511 { ac_try='test -s conftest$ac_exeext'
18512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18513 (eval $ac_try) 2>&5
18515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18516 (exit $ac_status); }; }; then
18517 ac_cv_func_gethostbyname=yes
18519 echo "$as_me: failed program was:" >&5
18520 sed 's/^/| /' conftest.$ac_ext >&5
18522 ac_cv_func_gethostbyname=no
18524 rm -f conftest.err conftest.$ac_objext \
18525 conftest$ac_exeext conftest.$ac_ext
18527 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
18528 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
18530 if test $ac_cv_func_gethostbyname = no; then
18531 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
18532 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
18533 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
18534 echo $ECHO_N "(cached) $ECHO_C" >&6
18536 ac_check_lib_save_LIBS=$LIBS
18538 cat >conftest.$ac_ext <<_ACEOF
18541 cat confdefs.h >>conftest.$ac_ext
18542 cat >>conftest.$ac_ext <<_ACEOF
18543 /* end confdefs.h. */
18545 /* Override any gcc2 internal prototype to avoid an error. */
18549 /* We use char because int might match the return type of a gcc2
18550 builtin and then its argument prototype would still apply. */
18551 char gethostbyname ();
18560 rm -f conftest.$ac_objext conftest$ac_exeext
18561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18562 (eval $ac_link) 2>conftest.er1
18564 grep -v '^ *+' conftest.er1 >conftest.err
18566 cat conftest.err >&5
18567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18568 (exit $ac_status); } &&
18569 { ac_try='test -z "$ac_c_werror_flag"
18570 || test ! -s conftest.err'
18571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18572 (eval $ac_try) 2>&5
18574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18575 (exit $ac_status); }; } &&
18576 { ac_try='test -s conftest$ac_exeext'
18577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18578 (eval $ac_try) 2>&5
18580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18581 (exit $ac_status); }; }; then
18582 ac_cv_lib_nsl_gethostbyname=yes
18584 echo "$as_me: failed program was:" >&5
18585 sed 's/^/| /' conftest.$ac_ext >&5
18587 ac_cv_lib_nsl_gethostbyname=no
18589 rm -f conftest.err conftest.$ac_objext \
18590 conftest$ac_exeext conftest.$ac_ext
18591 LIBS=$ac_check_lib_save_LIBS
18593 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
18594 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
18595 if test $ac_cv_lib_nsl_gethostbyname = yes; then
18596 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
18599 if test $ac_cv_lib_nsl_gethostbyname = no; then
18600 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
18601 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
18602 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
18603 echo $ECHO_N "(cached) $ECHO_C" >&6
18605 ac_check_lib_save_LIBS=$LIBS
18607 cat >conftest.$ac_ext <<_ACEOF
18610 cat confdefs.h >>conftest.$ac_ext
18611 cat >>conftest.$ac_ext <<_ACEOF
18612 /* end confdefs.h. */
18614 /* Override any gcc2 internal prototype to avoid an error. */
18618 /* We use char because int might match the return type of a gcc2
18619 builtin and then its argument prototype would still apply. */
18620 char gethostbyname ();
18629 rm -f conftest.$ac_objext conftest$ac_exeext
18630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18631 (eval $ac_link) 2>conftest.er1
18633 grep -v '^ *+' conftest.er1 >conftest.err
18635 cat conftest.err >&5
18636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18637 (exit $ac_status); } &&
18638 { ac_try='test -z "$ac_c_werror_flag"
18639 || test ! -s conftest.err'
18640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18641 (eval $ac_try) 2>&5
18643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18644 (exit $ac_status); }; } &&
18645 { ac_try='test -s conftest$ac_exeext'
18646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18647 (eval $ac_try) 2>&5
18649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18650 (exit $ac_status); }; }; then
18651 ac_cv_lib_bsd_gethostbyname=yes
18653 echo "$as_me: failed program was:" >&5
18654 sed 's/^/| /' conftest.$ac_ext >&5
18656 ac_cv_lib_bsd_gethostbyname=no
18658 rm -f conftest.err conftest.$ac_objext \
18659 conftest$ac_exeext conftest.$ac_ext
18660 LIBS=$ac_check_lib_save_LIBS
18662 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
18663 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
18664 if test $ac_cv_lib_bsd_gethostbyname = yes; then
18665 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
18671 # lieder@skyler.mavd.honeywell.com says without -lsocket,
18672 # socket/setsockopt and other routines are undefined under SCO ODT
18673 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
18674 # on later versions), says Simon Leinen: it contains gethostby*
18675 # variants that don't use the name server (or something). -lsocket
18676 # must be given before -lnsl if both are needed. We assume that
18677 # if connect needs -lnsl, so does gethostbyname.
18678 echo "$as_me:$LINENO: checking for connect" >&5
18679 echo $ECHO_N "checking for connect... $ECHO_C" >&6
18680 if test "${ac_cv_func_connect+set}" = set; then
18681 echo $ECHO_N "(cached) $ECHO_C" >&6
18683 cat >conftest.$ac_ext <<_ACEOF
18686 cat confdefs.h >>conftest.$ac_ext
18687 cat >>conftest.$ac_ext <<_ACEOF
18688 /* end confdefs.h. */
18689 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
18690 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18691 #define connect innocuous_connect
18693 /* System header to define __stub macros and hopefully few prototypes,
18694 which can conflict with char connect (); below.
18695 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18696 <limits.h> exists even on freestanding compilers. */
18699 # include <limits.h>
18701 # include <assert.h>
18706 /* Override any gcc2 internal prototype to avoid an error. */
18711 /* We use char because int might match the return type of a gcc2
18712 builtin and then its argument prototype would still apply. */
18714 /* The GNU C library defines this for functions which it implements
18715 to always fail with ENOSYS. Some functions are actually named
18716 something starting with __ and the normal name is an alias. */
18717 #if defined (__stub_connect) || defined (__stub___connect)
18720 char (*f) () = connect;
18729 return f != connect;
18734 rm -f conftest.$ac_objext conftest$ac_exeext
18735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18736 (eval $ac_link) 2>conftest.er1
18738 grep -v '^ *+' conftest.er1 >conftest.err
18740 cat conftest.err >&5
18741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18742 (exit $ac_status); } &&
18743 { ac_try='test -z "$ac_c_werror_flag"
18744 || test ! -s conftest.err'
18745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18746 (eval $ac_try) 2>&5
18748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18749 (exit $ac_status); }; } &&
18750 { ac_try='test -s conftest$ac_exeext'
18751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18752 (eval $ac_try) 2>&5
18754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18755 (exit $ac_status); }; }; then
18756 ac_cv_func_connect=yes
18758 echo "$as_me: failed program was:" >&5
18759 sed 's/^/| /' conftest.$ac_ext >&5
18761 ac_cv_func_connect=no
18763 rm -f conftest.err conftest.$ac_objext \
18764 conftest$ac_exeext conftest.$ac_ext
18766 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
18767 echo "${ECHO_T}$ac_cv_func_connect" >&6
18769 if test $ac_cv_func_connect = no; then
18770 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
18771 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
18772 if test "${ac_cv_lib_socket_connect+set}" = set; then
18773 echo $ECHO_N "(cached) $ECHO_C" >&6
18775 ac_check_lib_save_LIBS=$LIBS
18776 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
18777 cat >conftest.$ac_ext <<_ACEOF
18780 cat confdefs.h >>conftest.$ac_ext
18781 cat >>conftest.$ac_ext <<_ACEOF
18782 /* end confdefs.h. */
18784 /* Override any gcc2 internal prototype to avoid an error. */
18788 /* We use char because int might match the return type of a gcc2
18789 builtin and then its argument prototype would still apply. */
18799 rm -f conftest.$ac_objext conftest$ac_exeext
18800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18801 (eval $ac_link) 2>conftest.er1
18803 grep -v '^ *+' conftest.er1 >conftest.err
18805 cat conftest.err >&5
18806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18807 (exit $ac_status); } &&
18808 { ac_try='test -z "$ac_c_werror_flag"
18809 || test ! -s conftest.err'
18810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18811 (eval $ac_try) 2>&5
18813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18814 (exit $ac_status); }; } &&
18815 { ac_try='test -s conftest$ac_exeext'
18816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18817 (eval $ac_try) 2>&5
18819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18820 (exit $ac_status); }; }; then
18821 ac_cv_lib_socket_connect=yes
18823 echo "$as_me: failed program was:" >&5
18824 sed 's/^/| /' conftest.$ac_ext >&5
18826 ac_cv_lib_socket_connect=no
18828 rm -f conftest.err conftest.$ac_objext \
18829 conftest$ac_exeext conftest.$ac_ext
18830 LIBS=$ac_check_lib_save_LIBS
18832 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
18833 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
18834 if test $ac_cv_lib_socket_connect = yes; then
18835 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
18840 # Guillermo Gomez says -lposix is necessary on A/UX.
18841 echo "$as_me:$LINENO: checking for remove" >&5
18842 echo $ECHO_N "checking for remove... $ECHO_C" >&6
18843 if test "${ac_cv_func_remove+set}" = set; then
18844 echo $ECHO_N "(cached) $ECHO_C" >&6
18846 cat >conftest.$ac_ext <<_ACEOF
18849 cat confdefs.h >>conftest.$ac_ext
18850 cat >>conftest.$ac_ext <<_ACEOF
18851 /* end confdefs.h. */
18852 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
18853 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18854 #define remove innocuous_remove
18856 /* System header to define __stub macros and hopefully few prototypes,
18857 which can conflict with char remove (); below.
18858 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18859 <limits.h> exists even on freestanding compilers. */
18862 # include <limits.h>
18864 # include <assert.h>
18869 /* Override any gcc2 internal prototype to avoid an error. */
18874 /* We use char because int might match the return type of a gcc2
18875 builtin and then its argument prototype would still apply. */
18877 /* The GNU C library defines this for functions which it implements
18878 to always fail with ENOSYS. Some functions are actually named
18879 something starting with __ and the normal name is an alias. */
18880 #if defined (__stub_remove) || defined (__stub___remove)
18883 char (*f) () = remove;
18892 return f != remove;
18897 rm -f conftest.$ac_objext conftest$ac_exeext
18898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18899 (eval $ac_link) 2>conftest.er1
18901 grep -v '^ *+' conftest.er1 >conftest.err
18903 cat conftest.err >&5
18904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18905 (exit $ac_status); } &&
18906 { ac_try='test -z "$ac_c_werror_flag"
18907 || test ! -s conftest.err'
18908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18909 (eval $ac_try) 2>&5
18911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18912 (exit $ac_status); }; } &&
18913 { ac_try='test -s conftest$ac_exeext'
18914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18915 (eval $ac_try) 2>&5
18917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18918 (exit $ac_status); }; }; then
18919 ac_cv_func_remove=yes
18921 echo "$as_me: failed program was:" >&5
18922 sed 's/^/| /' conftest.$ac_ext >&5
18924 ac_cv_func_remove=no
18926 rm -f conftest.err conftest.$ac_objext \
18927 conftest$ac_exeext conftest.$ac_ext
18929 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
18930 echo "${ECHO_T}$ac_cv_func_remove" >&6
18932 if test $ac_cv_func_remove = no; then
18933 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
18934 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
18935 if test "${ac_cv_lib_posix_remove+set}" = set; then
18936 echo $ECHO_N "(cached) $ECHO_C" >&6
18938 ac_check_lib_save_LIBS=$LIBS
18939 LIBS="-lposix $LIBS"
18940 cat >conftest.$ac_ext <<_ACEOF
18943 cat confdefs.h >>conftest.$ac_ext
18944 cat >>conftest.$ac_ext <<_ACEOF
18945 /* end confdefs.h. */
18947 /* Override any gcc2 internal prototype to avoid an error. */
18951 /* We use char because int might match the return type of a gcc2
18952 builtin and then its argument prototype would still apply. */
18962 rm -f conftest.$ac_objext conftest$ac_exeext
18963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18964 (eval $ac_link) 2>conftest.er1
18966 grep -v '^ *+' conftest.er1 >conftest.err
18968 cat conftest.err >&5
18969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18970 (exit $ac_status); } &&
18971 { ac_try='test -z "$ac_c_werror_flag"
18972 || test ! -s conftest.err'
18973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18974 (eval $ac_try) 2>&5
18976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18977 (exit $ac_status); }; } &&
18978 { ac_try='test -s conftest$ac_exeext'
18979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18980 (eval $ac_try) 2>&5
18982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18983 (exit $ac_status); }; }; then
18984 ac_cv_lib_posix_remove=yes
18986 echo "$as_me: failed program was:" >&5
18987 sed 's/^/| /' conftest.$ac_ext >&5
18989 ac_cv_lib_posix_remove=no
18991 rm -f conftest.err conftest.$ac_objext \
18992 conftest$ac_exeext conftest.$ac_ext
18993 LIBS=$ac_check_lib_save_LIBS
18995 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
18996 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
18997 if test $ac_cv_lib_posix_remove = yes; then
18998 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
19003 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
19004 echo "$as_me:$LINENO: checking for shmat" >&5
19005 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
19006 if test "${ac_cv_func_shmat+set}" = set; then
19007 echo $ECHO_N "(cached) $ECHO_C" >&6
19009 cat >conftest.$ac_ext <<_ACEOF
19012 cat confdefs.h >>conftest.$ac_ext
19013 cat >>conftest.$ac_ext <<_ACEOF
19014 /* end confdefs.h. */
19015 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
19016 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19017 #define shmat innocuous_shmat
19019 /* System header to define __stub macros and hopefully few prototypes,
19020 which can conflict with char shmat (); below.
19021 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19022 <limits.h> exists even on freestanding compilers. */
19025 # include <limits.h>
19027 # include <assert.h>
19032 /* Override any gcc2 internal prototype to avoid an error. */
19037 /* We use char because int might match the return type of a gcc2
19038 builtin and then its argument prototype would still apply. */
19040 /* The GNU C library defines this for functions which it implements
19041 to always fail with ENOSYS. Some functions are actually named
19042 something starting with __ and the normal name is an alias. */
19043 #if defined (__stub_shmat) || defined (__stub___shmat)
19046 char (*f) () = shmat;
19060 rm -f conftest.$ac_objext conftest$ac_exeext
19061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19062 (eval $ac_link) 2>conftest.er1
19064 grep -v '^ *+' conftest.er1 >conftest.err
19066 cat conftest.err >&5
19067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19068 (exit $ac_status); } &&
19069 { ac_try='test -z "$ac_c_werror_flag"
19070 || test ! -s conftest.err'
19071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19072 (eval $ac_try) 2>&5
19074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19075 (exit $ac_status); }; } &&
19076 { ac_try='test -s conftest$ac_exeext'
19077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19078 (eval $ac_try) 2>&5
19080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19081 (exit $ac_status); }; }; then
19082 ac_cv_func_shmat=yes
19084 echo "$as_me: failed program was:" >&5
19085 sed 's/^/| /' conftest.$ac_ext >&5
19087 ac_cv_func_shmat=no
19089 rm -f conftest.err conftest.$ac_objext \
19090 conftest$ac_exeext conftest.$ac_ext
19092 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
19093 echo "${ECHO_T}$ac_cv_func_shmat" >&6
19095 if test $ac_cv_func_shmat = no; then
19096 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
19097 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
19098 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
19099 echo $ECHO_N "(cached) $ECHO_C" >&6
19101 ac_check_lib_save_LIBS=$LIBS
19103 cat >conftest.$ac_ext <<_ACEOF
19106 cat confdefs.h >>conftest.$ac_ext
19107 cat >>conftest.$ac_ext <<_ACEOF
19108 /* end confdefs.h. */
19110 /* Override any gcc2 internal prototype to avoid an error. */
19114 /* We use char because int might match the return type of a gcc2
19115 builtin and then its argument prototype would still apply. */
19125 rm -f conftest.$ac_objext conftest$ac_exeext
19126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19127 (eval $ac_link) 2>conftest.er1
19129 grep -v '^ *+' conftest.er1 >conftest.err
19131 cat conftest.err >&5
19132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19133 (exit $ac_status); } &&
19134 { ac_try='test -z "$ac_c_werror_flag"
19135 || test ! -s conftest.err'
19136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19137 (eval $ac_try) 2>&5
19139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19140 (exit $ac_status); }; } &&
19141 { ac_try='test -s conftest$ac_exeext'
19142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19143 (eval $ac_try) 2>&5
19145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19146 (exit $ac_status); }; }; then
19147 ac_cv_lib_ipc_shmat=yes
19149 echo "$as_me: failed program was:" >&5
19150 sed 's/^/| /' conftest.$ac_ext >&5
19152 ac_cv_lib_ipc_shmat=no
19154 rm -f conftest.err conftest.$ac_objext \
19155 conftest$ac_exeext conftest.$ac_ext
19156 LIBS=$ac_check_lib_save_LIBS
19158 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
19159 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
19160 if test $ac_cv_lib_ipc_shmat = yes; then
19161 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
19167 # Check for libraries that X11R6 Xt/Xaw programs need.
19168 ac_save_LDFLAGS=$LDFLAGS
19169 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
19170 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
19171 # check for ICE first), but we must link in the order -lSM -lICE or
19172 # we get undefined symbols. So assume we have SM if we have ICE.
19173 # These have to be linked with before -lX11, unlike the other
19174 # libraries we check for below, so use a different variable.
19175 # John Interrante, Karl Berry
19176 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
19177 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
19178 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
19179 echo $ECHO_N "(cached) $ECHO_C" >&6
19181 ac_check_lib_save_LIBS=$LIBS
19182 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
19183 cat >conftest.$ac_ext <<_ACEOF
19186 cat confdefs.h >>conftest.$ac_ext
19187 cat >>conftest.$ac_ext <<_ACEOF
19188 /* end confdefs.h. */
19190 /* Override any gcc2 internal prototype to avoid an error. */
19194 /* We use char because int might match the return type of a gcc2
19195 builtin and then its argument prototype would still apply. */
19196 char IceConnectionNumber ();
19200 IceConnectionNumber ();
19205 rm -f conftest.$ac_objext conftest$ac_exeext
19206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19207 (eval $ac_link) 2>conftest.er1
19209 grep -v '^ *+' conftest.er1 >conftest.err
19211 cat conftest.err >&5
19212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19213 (exit $ac_status); } &&
19214 { ac_try='test -z "$ac_c_werror_flag"
19215 || test ! -s conftest.err'
19216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19217 (eval $ac_try) 2>&5
19219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19220 (exit $ac_status); }; } &&
19221 { ac_try='test -s conftest$ac_exeext'
19222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19223 (eval $ac_try) 2>&5
19225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19226 (exit $ac_status); }; }; then
19227 ac_cv_lib_ICE_IceConnectionNumber=yes
19229 echo "$as_me: failed program was:" >&5
19230 sed 's/^/| /' conftest.$ac_ext >&5
19232 ac_cv_lib_ICE_IceConnectionNumber=no
19234 rm -f conftest.err conftest.$ac_objext \
19235 conftest$ac_exeext conftest.$ac_ext
19236 LIBS=$ac_check_lib_save_LIBS
19238 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
19239 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
19240 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
19241 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
19244 LDFLAGS=$ac_save_LDFLAGS
19306 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19307 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19308 echo "$as_me:$LINENO: checking for $ac_header" >&5
19309 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19310 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19311 echo $ECHO_N "(cached) $ECHO_C" >&6
19313 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19314 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19316 # Is the header compilable?
19317 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19318 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19319 cat >conftest.$ac_ext <<_ACEOF
19322 cat confdefs.h >>conftest.$ac_ext
19323 cat >>conftest.$ac_ext <<_ACEOF
19324 /* end confdefs.h. */
19325 $ac_includes_default
19326 #include <$ac_header>
19328 rm -f conftest.$ac_objext
19329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19330 (eval $ac_compile) 2>conftest.er1
19332 grep -v '^ *+' conftest.er1 >conftest.err
19334 cat conftest.err >&5
19335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19336 (exit $ac_status); } &&
19337 { ac_try='test -z "$ac_c_werror_flag"
19338 || test ! -s conftest.err'
19339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19340 (eval $ac_try) 2>&5
19342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19343 (exit $ac_status); }; } &&
19344 { ac_try='test -s conftest.$ac_objext'
19345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19346 (eval $ac_try) 2>&5
19348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19349 (exit $ac_status); }; }; then
19350 ac_header_compiler=yes
19352 echo "$as_me: failed program was:" >&5
19353 sed 's/^/| /' conftest.$ac_ext >&5
19355 ac_header_compiler=no
19357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19358 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19359 echo "${ECHO_T}$ac_header_compiler" >&6
19361 # Is the header present?
19362 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19363 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19364 cat >conftest.$ac_ext <<_ACEOF
19367 cat confdefs.h >>conftest.$ac_ext
19368 cat >>conftest.$ac_ext <<_ACEOF
19369 /* end confdefs.h. */
19370 #include <$ac_header>
19372 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19373 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19375 grep -v '^ *+' conftest.er1 >conftest.err
19377 cat conftest.err >&5
19378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19379 (exit $ac_status); } >/dev/null; then
19380 if test -s conftest.err; then
19381 ac_cpp_err=$ac_c_preproc_warn_flag
19382 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19389 if test -z "$ac_cpp_err"; then
19390 ac_header_preproc=yes
19392 echo "$as_me: failed program was:" >&5
19393 sed 's/^/| /' conftest.$ac_ext >&5
19395 ac_header_preproc=no
19397 rm -f conftest.err conftest.$ac_ext
19398 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19399 echo "${ECHO_T}$ac_header_preproc" >&6
19401 # So? What about this header?
19402 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19404 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19405 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19406 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19407 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19408 ac_header_preproc=yes
19411 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19412 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19413 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19414 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19415 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19416 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19417 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19418 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19419 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19420 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19421 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19422 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19425 ## ------------------------------------------ ##
19426 ## Report this to the AC_PACKAGE_NAME lists. ##
19427 ## ------------------------------------------ ##
19430 sed "s/^/$as_me: WARNING: /" >&2
19433 echo "$as_me:$LINENO: checking for $ac_header" >&5
19434 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19435 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19436 echo $ECHO_N "(cached) $ECHO_C" >&6
19438 eval "$as_ac_Header=\$ac_header_preproc"
19440 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19441 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19444 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19445 cat >>confdefs.h <<_ACEOF
19446 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19453 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19454 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19455 if test "${ac_cv_header_stdc+set}" = set; then
19456 echo $ECHO_N "(cached) $ECHO_C" >&6
19458 cat >conftest.$ac_ext <<_ACEOF
19461 cat confdefs.h >>conftest.$ac_ext
19462 cat >>conftest.$ac_ext <<_ACEOF
19463 /* end confdefs.h. */
19464 #include <stdlib.h>
19465 #include <stdarg.h>
19466 #include <string.h>
19477 rm -f conftest.$ac_objext
19478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19479 (eval $ac_compile) 2>conftest.er1
19481 grep -v '^ *+' conftest.er1 >conftest.err
19483 cat conftest.err >&5
19484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19485 (exit $ac_status); } &&
19486 { ac_try='test -z "$ac_c_werror_flag"
19487 || test ! -s conftest.err'
19488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19489 (eval $ac_try) 2>&5
19491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19492 (exit $ac_status); }; } &&
19493 { ac_try='test -s conftest.$ac_objext'
19494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19495 (eval $ac_try) 2>&5
19497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19498 (exit $ac_status); }; }; then
19499 ac_cv_header_stdc=yes
19501 echo "$as_me: failed program was:" >&5
19502 sed 's/^/| /' conftest.$ac_ext >&5
19504 ac_cv_header_stdc=no
19506 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19508 if test $ac_cv_header_stdc = yes; then
19509 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19510 cat >conftest.$ac_ext <<_ACEOF
19513 cat confdefs.h >>conftest.$ac_ext
19514 cat >>conftest.$ac_ext <<_ACEOF
19515 /* end confdefs.h. */
19516 #include <string.h>
19519 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19520 $EGREP "memchr" >/dev/null 2>&1; then
19523 ac_cv_header_stdc=no
19529 if test $ac_cv_header_stdc = yes; then
19530 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19531 cat >conftest.$ac_ext <<_ACEOF
19534 cat confdefs.h >>conftest.$ac_ext
19535 cat >>conftest.$ac_ext <<_ACEOF
19536 /* end confdefs.h. */
19537 #include <stdlib.h>
19540 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19541 $EGREP "free" >/dev/null 2>&1; then
19544 ac_cv_header_stdc=no
19550 if test $ac_cv_header_stdc = yes; then
19551 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19552 if test "$cross_compiling" = yes; then
19555 cat >conftest.$ac_ext <<_ACEOF
19558 cat confdefs.h >>conftest.$ac_ext
19559 cat >>conftest.$ac_ext <<_ACEOF
19560 /* end confdefs.h. */
19562 #if ((' ' & 0x0FF) == 0x020)
19563 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19564 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19566 # define ISLOWER(c) \
19567 (('a' <= (c) && (c) <= 'i') \
19568 || ('j' <= (c) && (c) <= 'r') \
19569 || ('s' <= (c) && (c) <= 'z'))
19570 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19573 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19578 for (i = 0; i < 256; i++)
19579 if (XOR (islower (i), ISLOWER (i))
19580 || toupper (i) != TOUPPER (i))
19585 rm -f conftest$ac_exeext
19586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19587 (eval $ac_link) 2>&5
19589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19590 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19592 (eval $ac_try) 2>&5
19594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19595 (exit $ac_status); }; }; then
19598 echo "$as_me: program exited with status $ac_status" >&5
19599 echo "$as_me: failed program was:" >&5
19600 sed 's/^/| /' conftest.$ac_ext >&5
19602 ( exit $ac_status )
19603 ac_cv_header_stdc=no
19605 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19609 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19610 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19611 if test $ac_cv_header_stdc = yes; then
19613 cat >>confdefs.h <<\_ACEOF
19614 #define STDC_HEADERS 1
19619 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
19620 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
19621 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
19622 echo $ECHO_N "(cached) $ECHO_C" >&6
19624 cat >conftest.$ac_ext <<_ACEOF
19627 cat confdefs.h >>conftest.$ac_ext
19628 cat >>conftest.$ac_ext <<_ACEOF
19629 /* end confdefs.h. */
19630 #include <sys/types.h>
19634 return makedev(0, 0);
19639 rm -f conftest.$ac_objext conftest$ac_exeext
19640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19641 (eval $ac_link) 2>conftest.er1
19643 grep -v '^ *+' conftest.er1 >conftest.err
19645 cat conftest.err >&5
19646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19647 (exit $ac_status); } &&
19648 { ac_try='test -z "$ac_c_werror_flag"
19649 || test ! -s conftest.err'
19650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19651 (eval $ac_try) 2>&5
19653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19654 (exit $ac_status); }; } &&
19655 { ac_try='test -s conftest$ac_exeext'
19656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19657 (eval $ac_try) 2>&5
19659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19660 (exit $ac_status); }; }; then
19661 ac_cv_header_sys_types_h_makedev=yes
19663 echo "$as_me: failed program was:" >&5
19664 sed 's/^/| /' conftest.$ac_ext >&5
19666 ac_cv_header_sys_types_h_makedev=no
19668 rm -f conftest.err conftest.$ac_objext \
19669 conftest$ac_exeext conftest.$ac_ext
19672 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
19673 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
19675 if test $ac_cv_header_sys_types_h_makedev = no; then
19676 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19677 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
19678 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
19679 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19680 echo $ECHO_N "(cached) $ECHO_C" >&6
19682 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
19683 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
19685 # Is the header compilable?
19686 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
19687 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
19688 cat >conftest.$ac_ext <<_ACEOF
19691 cat confdefs.h >>conftest.$ac_ext
19692 cat >>conftest.$ac_ext <<_ACEOF
19693 /* end confdefs.h. */
19694 $ac_includes_default
19695 #include <sys/mkdev.h>
19697 rm -f conftest.$ac_objext
19698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19699 (eval $ac_compile) 2>conftest.er1
19701 grep -v '^ *+' conftest.er1 >conftest.err
19703 cat conftest.err >&5
19704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19705 (exit $ac_status); } &&
19706 { ac_try='test -z "$ac_c_werror_flag"
19707 || test ! -s conftest.err'
19708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19709 (eval $ac_try) 2>&5
19711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19712 (exit $ac_status); }; } &&
19713 { ac_try='test -s conftest.$ac_objext'
19714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19715 (eval $ac_try) 2>&5
19717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19718 (exit $ac_status); }; }; then
19719 ac_header_compiler=yes
19721 echo "$as_me: failed program was:" >&5
19722 sed 's/^/| /' conftest.$ac_ext >&5
19724 ac_header_compiler=no
19726 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19727 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19728 echo "${ECHO_T}$ac_header_compiler" >&6
19730 # Is the header present?
19731 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
19732 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
19733 cat >conftest.$ac_ext <<_ACEOF
19736 cat confdefs.h >>conftest.$ac_ext
19737 cat >>conftest.$ac_ext <<_ACEOF
19738 /* end confdefs.h. */
19739 #include <sys/mkdev.h>
19741 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19742 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19744 grep -v '^ *+' conftest.er1 >conftest.err
19746 cat conftest.err >&5
19747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19748 (exit $ac_status); } >/dev/null; then
19749 if test -s conftest.err; then
19750 ac_cpp_err=$ac_c_preproc_warn_flag
19751 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19758 if test -z "$ac_cpp_err"; then
19759 ac_header_preproc=yes
19761 echo "$as_me: failed program was:" >&5
19762 sed 's/^/| /' conftest.$ac_ext >&5
19764 ac_header_preproc=no
19766 rm -f conftest.err conftest.$ac_ext
19767 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19768 echo "${ECHO_T}$ac_header_preproc" >&6
19770 # So? What about this header?
19771 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19773 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
19774 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19775 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
19776 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
19777 ac_header_preproc=yes
19780 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
19781 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
19782 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
19783 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
19784 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
19785 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
19786 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
19787 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
19788 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
19789 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
19790 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
19791 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
19794 ## ------------------------------------------ ##
19795 ## Report this to the AC_PACKAGE_NAME lists. ##
19796 ## ------------------------------------------ ##
19799 sed "s/^/$as_me: WARNING: /" >&2
19802 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
19803 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
19804 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19805 echo $ECHO_N "(cached) $ECHO_C" >&6
19807 ac_cv_header_sys_mkdev_h=$ac_header_preproc
19809 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
19810 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
19813 if test $ac_cv_header_sys_mkdev_h = yes; then
19815 cat >>confdefs.h <<\_ACEOF
19816 #define MAJOR_IN_MKDEV 1
19823 if test $ac_cv_header_sys_mkdev_h = no; then
19824 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
19825 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
19826 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
19827 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
19828 echo $ECHO_N "(cached) $ECHO_C" >&6
19830 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
19831 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
19833 # Is the header compilable?
19834 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
19835 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
19836 cat >conftest.$ac_ext <<_ACEOF
19839 cat confdefs.h >>conftest.$ac_ext
19840 cat >>conftest.$ac_ext <<_ACEOF
19841 /* end confdefs.h. */
19842 $ac_includes_default
19843 #include <sys/sysmacros.h>
19845 rm -f conftest.$ac_objext
19846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19847 (eval $ac_compile) 2>conftest.er1
19849 grep -v '^ *+' conftest.er1 >conftest.err
19851 cat conftest.err >&5
19852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19853 (exit $ac_status); } &&
19854 { ac_try='test -z "$ac_c_werror_flag"
19855 || test ! -s conftest.err'
19856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19857 (eval $ac_try) 2>&5
19859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19860 (exit $ac_status); }; } &&
19861 { ac_try='test -s conftest.$ac_objext'
19862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19863 (eval $ac_try) 2>&5
19865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19866 (exit $ac_status); }; }; then
19867 ac_header_compiler=yes
19869 echo "$as_me: failed program was:" >&5
19870 sed 's/^/| /' conftest.$ac_ext >&5
19872 ac_header_compiler=no
19874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19875 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19876 echo "${ECHO_T}$ac_header_compiler" >&6
19878 # Is the header present?
19879 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
19880 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
19881 cat >conftest.$ac_ext <<_ACEOF
19884 cat confdefs.h >>conftest.$ac_ext
19885 cat >>conftest.$ac_ext <<_ACEOF
19886 /* end confdefs.h. */
19887 #include <sys/sysmacros.h>
19889 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19890 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19892 grep -v '^ *+' conftest.er1 >conftest.err
19894 cat conftest.err >&5
19895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19896 (exit $ac_status); } >/dev/null; then
19897 if test -s conftest.err; then
19898 ac_cpp_err=$ac_c_preproc_warn_flag
19899 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19906 if test -z "$ac_cpp_err"; then
19907 ac_header_preproc=yes
19909 echo "$as_me: failed program was:" >&5
19910 sed 's/^/| /' conftest.$ac_ext >&5
19912 ac_header_preproc=no
19914 rm -f conftest.err conftest.$ac_ext
19915 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19916 echo "${ECHO_T}$ac_header_preproc" >&6
19918 # So? What about this header?
19919 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19921 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
19922 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19923 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
19924 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
19925 ac_header_preproc=yes
19928 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
19929 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
19930 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
19931 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
19932 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
19933 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
19934 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
19935 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
19936 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
19937 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
19938 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
19939 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
19942 ## ------------------------------------------ ##
19943 ## Report this to the AC_PACKAGE_NAME lists. ##
19944 ## ------------------------------------------ ##
19947 sed "s/^/$as_me: WARNING: /" >&2
19950 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
19951 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
19952 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
19953 echo $ECHO_N "(cached) $ECHO_C" >&6
19955 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
19957 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
19958 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
19961 if test $ac_cv_header_sys_sysmacros_h = yes; then
19963 cat >>confdefs.h <<\_ACEOF
19964 #define MAJOR_IN_SYSMACROS 1
19978 ac_header_dirent=no
19979 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19980 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19981 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
19982 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
19983 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19984 echo $ECHO_N "(cached) $ECHO_C" >&6
19986 cat >conftest.$ac_ext <<_ACEOF
19989 cat confdefs.h >>conftest.$ac_ext
19990 cat >>conftest.$ac_ext <<_ACEOF
19991 /* end confdefs.h. */
19992 #include <sys/types.h>
20004 rm -f conftest.$ac_objext
20005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20006 (eval $ac_compile) 2>conftest.er1
20008 grep -v '^ *+' conftest.er1 >conftest.err
20010 cat conftest.err >&5
20011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20012 (exit $ac_status); } &&
20013 { ac_try='test -z "$ac_c_werror_flag"
20014 || test ! -s conftest.err'
20015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20016 (eval $ac_try) 2>&5
20018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20019 (exit $ac_status); }; } &&
20020 { ac_try='test -s conftest.$ac_objext'
20021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20022 (eval $ac_try) 2>&5
20024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20025 (exit $ac_status); }; }; then
20026 eval "$as_ac_Header=yes"
20028 echo "$as_me: failed program was:" >&5
20029 sed 's/^/| /' conftest.$ac_ext >&5
20031 eval "$as_ac_Header=no"
20033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20035 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20036 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20037 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20038 cat >>confdefs.h <<_ACEOF
20039 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20042 ac_header_dirent=$ac_hdr; break
20046 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20047 if test $ac_header_dirent = dirent.h; then
20048 echo "$as_me:$LINENO: checking for library containing opendir" >&5
20049 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
20050 if test "${ac_cv_search_opendir+set}" = set; then
20051 echo $ECHO_N "(cached) $ECHO_C" >&6
20053 ac_func_search_save_LIBS=$LIBS
20054 ac_cv_search_opendir=no
20055 cat >conftest.$ac_ext <<_ACEOF
20058 cat confdefs.h >>conftest.$ac_ext
20059 cat >>conftest.$ac_ext <<_ACEOF
20060 /* end confdefs.h. */
20062 /* Override any gcc2 internal prototype to avoid an error. */
20066 /* We use char because int might match the return type of a gcc2
20067 builtin and then its argument prototype would still apply. */
20077 rm -f conftest.$ac_objext conftest$ac_exeext
20078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20079 (eval $ac_link) 2>conftest.er1
20081 grep -v '^ *+' conftest.er1 >conftest.err
20083 cat conftest.err >&5
20084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20085 (exit $ac_status); } &&
20086 { ac_try='test -z "$ac_c_werror_flag"
20087 || test ! -s conftest.err'
20088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20089 (eval $ac_try) 2>&5
20091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20092 (exit $ac_status); }; } &&
20093 { ac_try='test -s conftest$ac_exeext'
20094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20095 (eval $ac_try) 2>&5
20097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20098 (exit $ac_status); }; }; then
20099 ac_cv_search_opendir="none required"
20101 echo "$as_me: failed program was:" >&5
20102 sed 's/^/| /' conftest.$ac_ext >&5
20105 rm -f conftest.err conftest.$ac_objext \
20106 conftest$ac_exeext conftest.$ac_ext
20107 if test "$ac_cv_search_opendir" = no; then
20108 for ac_lib in dir; do
20109 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20110 cat >conftest.$ac_ext <<_ACEOF
20113 cat confdefs.h >>conftest.$ac_ext
20114 cat >>conftest.$ac_ext <<_ACEOF
20115 /* end confdefs.h. */
20117 /* Override any gcc2 internal prototype to avoid an error. */
20121 /* We use char because int might match the return type of a gcc2
20122 builtin and then its argument prototype would still apply. */
20132 rm -f conftest.$ac_objext conftest$ac_exeext
20133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20134 (eval $ac_link) 2>conftest.er1
20136 grep -v '^ *+' conftest.er1 >conftest.err
20138 cat conftest.err >&5
20139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20140 (exit $ac_status); } &&
20141 { ac_try='test -z "$ac_c_werror_flag"
20142 || test ! -s conftest.err'
20143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20144 (eval $ac_try) 2>&5
20146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20147 (exit $ac_status); }; } &&
20148 { ac_try='test -s conftest$ac_exeext'
20149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20150 (eval $ac_try) 2>&5
20152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20153 (exit $ac_status); }; }; then
20154 ac_cv_search_opendir="-l$ac_lib"
20157 echo "$as_me: failed program was:" >&5
20158 sed 's/^/| /' conftest.$ac_ext >&5
20161 rm -f conftest.err conftest.$ac_objext \
20162 conftest$ac_exeext conftest.$ac_ext
20165 LIBS=$ac_func_search_save_LIBS
20167 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20168 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20169 if test "$ac_cv_search_opendir" != no; then
20170 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20175 echo "$as_me:$LINENO: checking for library containing opendir" >&5
20176 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
20177 if test "${ac_cv_search_opendir+set}" = set; then
20178 echo $ECHO_N "(cached) $ECHO_C" >&6
20180 ac_func_search_save_LIBS=$LIBS
20181 ac_cv_search_opendir=no
20182 cat >conftest.$ac_ext <<_ACEOF
20185 cat confdefs.h >>conftest.$ac_ext
20186 cat >>conftest.$ac_ext <<_ACEOF
20187 /* end confdefs.h. */
20189 /* Override any gcc2 internal prototype to avoid an error. */
20193 /* We use char because int might match the return type of a gcc2
20194 builtin and then its argument prototype would still apply. */
20204 rm -f conftest.$ac_objext conftest$ac_exeext
20205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20206 (eval $ac_link) 2>conftest.er1
20208 grep -v '^ *+' conftest.er1 >conftest.err
20210 cat conftest.err >&5
20211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20212 (exit $ac_status); } &&
20213 { ac_try='test -z "$ac_c_werror_flag"
20214 || test ! -s conftest.err'
20215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20216 (eval $ac_try) 2>&5
20218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20219 (exit $ac_status); }; } &&
20220 { ac_try='test -s conftest$ac_exeext'
20221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20222 (eval $ac_try) 2>&5
20224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20225 (exit $ac_status); }; }; then
20226 ac_cv_search_opendir="none required"
20228 echo "$as_me: failed program was:" >&5
20229 sed 's/^/| /' conftest.$ac_ext >&5
20232 rm -f conftest.err conftest.$ac_objext \
20233 conftest$ac_exeext conftest.$ac_ext
20234 if test "$ac_cv_search_opendir" = no; then
20235 for ac_lib in x; do
20236 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20237 cat >conftest.$ac_ext <<_ACEOF
20240 cat confdefs.h >>conftest.$ac_ext
20241 cat >>conftest.$ac_ext <<_ACEOF
20242 /* end confdefs.h. */
20244 /* Override any gcc2 internal prototype to avoid an error. */
20248 /* We use char because int might match the return type of a gcc2
20249 builtin and then its argument prototype would still apply. */
20259 rm -f conftest.$ac_objext conftest$ac_exeext
20260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20261 (eval $ac_link) 2>conftest.er1
20263 grep -v '^ *+' conftest.er1 >conftest.err
20265 cat conftest.err >&5
20266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20267 (exit $ac_status); } &&
20268 { ac_try='test -z "$ac_c_werror_flag"
20269 || test ! -s conftest.err'
20270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20271 (eval $ac_try) 2>&5
20273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20274 (exit $ac_status); }; } &&
20275 { ac_try='test -s conftest$ac_exeext'
20276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20277 (eval $ac_try) 2>&5
20279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20280 (exit $ac_status); }; }; then
20281 ac_cv_search_opendir="-l$ac_lib"
20284 echo "$as_me: failed program was:" >&5
20285 sed 's/^/| /' conftest.$ac_ext >&5
20288 rm -f conftest.err conftest.$ac_objext \
20289 conftest$ac_exeext conftest.$ac_ext
20292 LIBS=$ac_func_search_save_LIBS
20294 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20295 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20296 if test "$ac_cv_search_opendir" != no; then
20297 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20303 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
20304 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
20305 if test "${ac_cv_header_stat_broken+set}" = set; then
20306 echo $ECHO_N "(cached) $ECHO_C" >&6
20308 cat >conftest.$ac_ext <<_ACEOF
20311 cat confdefs.h >>conftest.$ac_ext
20312 cat >>conftest.$ac_ext <<_ACEOF
20313 /* end confdefs.h. */
20314 #include <sys/types.h>
20315 #include <sys/stat.h>
20317 #if defined(S_ISBLK) && defined(S_IFDIR)
20318 # if S_ISBLK (S_IFDIR)
20323 #if defined(S_ISBLK) && defined(S_IFCHR)
20324 # if S_ISBLK (S_IFCHR)
20329 #if defined(S_ISLNK) && defined(S_IFREG)
20330 # if S_ISLNK (S_IFREG)
20335 #if defined(S_ISSOCK) && defined(S_IFREG)
20336 # if S_ISSOCK (S_IFREG)
20342 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20343 $EGREP "You lose" >/dev/null 2>&1; then
20344 ac_cv_header_stat_broken=yes
20346 ac_cv_header_stat_broken=no
20351 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
20352 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
20353 if test $ac_cv_header_stat_broken = yes; then
20355 cat >>confdefs.h <<\_ACEOF
20356 #define STAT_MACROS_BROKEN 1
20361 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20362 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
20363 if test "${ac_cv_header_sys_wait_h+set}" = set; then
20364 echo $ECHO_N "(cached) $ECHO_C" >&6
20366 cat >conftest.$ac_ext <<_ACEOF
20369 cat confdefs.h >>conftest.$ac_ext
20370 cat >>conftest.$ac_ext <<_ACEOF
20371 /* end confdefs.h. */
20372 #include <sys/types.h>
20373 #include <sys/wait.h>
20374 #ifndef WEXITSTATUS
20375 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
20378 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20386 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20391 rm -f conftest.$ac_objext
20392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20393 (eval $ac_compile) 2>conftest.er1
20395 grep -v '^ *+' conftest.er1 >conftest.err
20397 cat conftest.err >&5
20398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20399 (exit $ac_status); } &&
20400 { ac_try='test -z "$ac_c_werror_flag"
20401 || test ! -s conftest.err'
20402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20403 (eval $ac_try) 2>&5
20405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20406 (exit $ac_status); }; } &&
20407 { ac_try='test -s conftest.$ac_objext'
20408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20409 (eval $ac_try) 2>&5
20411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20412 (exit $ac_status); }; }; then
20413 ac_cv_header_sys_wait_h=yes
20415 echo "$as_me: failed program was:" >&5
20416 sed 's/^/| /' conftest.$ac_ext >&5
20418 ac_cv_header_sys_wait_h=no
20420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20422 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20423 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
20424 if test $ac_cv_header_sys_wait_h = yes; then
20426 cat >>confdefs.h <<\_ACEOF
20427 #define HAVE_SYS_WAIT_H 1
20432 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20433 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20434 if test "${ac_cv_header_time+set}" = set; then
20435 echo $ECHO_N "(cached) $ECHO_C" >&6
20437 cat >conftest.$ac_ext <<_ACEOF
20440 cat confdefs.h >>conftest.$ac_ext
20441 cat >>conftest.$ac_ext <<_ACEOF
20442 /* end confdefs.h. */
20443 #include <sys/types.h>
20444 #include <sys/time.h>
20450 if ((struct tm *) 0)
20456 rm -f conftest.$ac_objext
20457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20458 (eval $ac_compile) 2>conftest.er1
20460 grep -v '^ *+' conftest.er1 >conftest.err
20462 cat conftest.err >&5
20463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20464 (exit $ac_status); } &&
20465 { ac_try='test -z "$ac_c_werror_flag"
20466 || test ! -s conftest.err'
20467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20468 (eval $ac_try) 2>&5
20470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20471 (exit $ac_status); }; } &&
20472 { ac_try='test -s conftest.$ac_objext'
20473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20474 (eval $ac_try) 2>&5
20476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20477 (exit $ac_status); }; }; then
20478 ac_cv_header_time=yes
20480 echo "$as_me: failed program was:" >&5
20481 sed 's/^/| /' conftest.$ac_ext >&5
20483 ac_cv_header_time=no
20485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20487 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20488 echo "${ECHO_T}$ac_cv_header_time" >&6
20489 if test $ac_cv_header_time = yes; then
20491 cat >>confdefs.h <<\_ACEOF
20492 #define TIME_WITH_SYS_TIME 1
20498 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
20499 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
20500 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
20501 echo $ECHO_N "(cached) $ECHO_C" >&6
20503 cat >conftest.$ac_ext <<_ACEOF
20506 cat confdefs.h >>conftest.$ac_ext
20507 cat >>conftest.$ac_ext <<_ACEOF
20508 /* end confdefs.h. */
20509 $ac_includes_default
20513 static struct stat ac_aggr;
20514 if (ac_aggr.st_blksize)
20520 rm -f conftest.$ac_objext
20521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20522 (eval $ac_compile) 2>conftest.er1
20524 grep -v '^ *+' conftest.er1 >conftest.err
20526 cat conftest.err >&5
20527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20528 (exit $ac_status); } &&
20529 { ac_try='test -z "$ac_c_werror_flag"
20530 || test ! -s conftest.err'
20531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20532 (eval $ac_try) 2>&5
20534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20535 (exit $ac_status); }; } &&
20536 { ac_try='test -s conftest.$ac_objext'
20537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20538 (eval $ac_try) 2>&5
20540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20541 (exit $ac_status); }; }; then
20542 ac_cv_member_struct_stat_st_blksize=yes
20544 echo "$as_me: failed program was:" >&5
20545 sed 's/^/| /' conftest.$ac_ext >&5
20547 cat >conftest.$ac_ext <<_ACEOF
20550 cat confdefs.h >>conftest.$ac_ext
20551 cat >>conftest.$ac_ext <<_ACEOF
20552 /* end confdefs.h. */
20553 $ac_includes_default
20557 static struct stat ac_aggr;
20558 if (sizeof ac_aggr.st_blksize)
20564 rm -f conftest.$ac_objext
20565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20566 (eval $ac_compile) 2>conftest.er1
20568 grep -v '^ *+' conftest.er1 >conftest.err
20570 cat conftest.err >&5
20571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20572 (exit $ac_status); } &&
20573 { ac_try='test -z "$ac_c_werror_flag"
20574 || test ! -s conftest.err'
20575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20576 (eval $ac_try) 2>&5
20578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20579 (exit $ac_status); }; } &&
20580 { ac_try='test -s conftest.$ac_objext'
20581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20582 (eval $ac_try) 2>&5
20584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20585 (exit $ac_status); }; }; then
20586 ac_cv_member_struct_stat_st_blksize=yes
20588 echo "$as_me: failed program was:" >&5
20589 sed 's/^/| /' conftest.$ac_ext >&5
20591 ac_cv_member_struct_stat_st_blksize=no
20593 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20597 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
20598 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
20599 if test $ac_cv_member_struct_stat_st_blksize = yes; then
20601 cat >>confdefs.h <<_ACEOF
20602 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
20606 cat >>confdefs.h <<\_ACEOF
20607 #define HAVE_ST_BLKSIZE 1
20613 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
20614 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
20615 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
20616 echo $ECHO_N "(cached) $ECHO_C" >&6
20618 cat >conftest.$ac_ext <<_ACEOF
20621 cat confdefs.h >>conftest.$ac_ext
20622 cat >>conftest.$ac_ext <<_ACEOF
20623 /* end confdefs.h. */
20624 $ac_includes_default
20628 static struct stat ac_aggr;
20629 if (ac_aggr.st_blocks)
20635 rm -f conftest.$ac_objext
20636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20637 (eval $ac_compile) 2>conftest.er1
20639 grep -v '^ *+' conftest.er1 >conftest.err
20641 cat conftest.err >&5
20642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20643 (exit $ac_status); } &&
20644 { ac_try='test -z "$ac_c_werror_flag"
20645 || test ! -s conftest.err'
20646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20647 (eval $ac_try) 2>&5
20649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20650 (exit $ac_status); }; } &&
20651 { ac_try='test -s conftest.$ac_objext'
20652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20653 (eval $ac_try) 2>&5
20655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20656 (exit $ac_status); }; }; then
20657 ac_cv_member_struct_stat_st_blocks=yes
20659 echo "$as_me: failed program was:" >&5
20660 sed 's/^/| /' conftest.$ac_ext >&5
20662 cat >conftest.$ac_ext <<_ACEOF
20665 cat confdefs.h >>conftest.$ac_ext
20666 cat >>conftest.$ac_ext <<_ACEOF
20667 /* end confdefs.h. */
20668 $ac_includes_default
20672 static struct stat ac_aggr;
20673 if (sizeof ac_aggr.st_blocks)
20679 rm -f conftest.$ac_objext
20680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20681 (eval $ac_compile) 2>conftest.er1
20683 grep -v '^ *+' conftest.er1 >conftest.err
20685 cat conftest.err >&5
20686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20687 (exit $ac_status); } &&
20688 { ac_try='test -z "$ac_c_werror_flag"
20689 || test ! -s conftest.err'
20690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20691 (eval $ac_try) 2>&5
20693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20694 (exit $ac_status); }; } &&
20695 { ac_try='test -s conftest.$ac_objext'
20696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20697 (eval $ac_try) 2>&5
20699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20700 (exit $ac_status); }; }; then
20701 ac_cv_member_struct_stat_st_blocks=yes
20703 echo "$as_me: failed program was:" >&5
20704 sed 's/^/| /' conftest.$ac_ext >&5
20706 ac_cv_member_struct_stat_st_blocks=no
20708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20712 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
20713 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
20714 if test $ac_cv_member_struct_stat_st_blocks = yes; then
20716 cat >>confdefs.h <<_ACEOF
20717 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
20721 cat >>confdefs.h <<\_ACEOF
20722 #define HAVE_ST_BLOCKS 1
20727 "fileblocks.$ac_objext" | \
20728 *" fileblocks.$ac_objext" | \
20729 "fileblocks.$ac_objext "* | \
20730 *" fileblocks.$ac_objext "* ) ;;
20731 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
20737 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20738 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20739 if test "${ac_cv_struct_tm+set}" = set; then
20740 echo $ECHO_N "(cached) $ECHO_C" >&6
20742 cat >conftest.$ac_ext <<_ACEOF
20745 cat confdefs.h >>conftest.$ac_ext
20746 cat >>conftest.$ac_ext <<_ACEOF
20747 /* end confdefs.h. */
20748 #include <sys/types.h>
20754 struct tm *tp; tp->tm_sec;
20759 rm -f conftest.$ac_objext
20760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20761 (eval $ac_compile) 2>conftest.er1
20763 grep -v '^ *+' conftest.er1 >conftest.err
20765 cat conftest.err >&5
20766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20767 (exit $ac_status); } &&
20768 { ac_try='test -z "$ac_c_werror_flag"
20769 || test ! -s conftest.err'
20770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20771 (eval $ac_try) 2>&5
20773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20774 (exit $ac_status); }; } &&
20775 { ac_try='test -s conftest.$ac_objext'
20776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20777 (eval $ac_try) 2>&5
20779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20780 (exit $ac_status); }; }; then
20781 ac_cv_struct_tm=time.h
20783 echo "$as_me: failed program was:" >&5
20784 sed 's/^/| /' conftest.$ac_ext >&5
20786 ac_cv_struct_tm=sys/time.h
20788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20790 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20791 echo "${ECHO_T}$ac_cv_struct_tm" >&6
20792 if test $ac_cv_struct_tm = sys/time.h; then
20794 cat >>confdefs.h <<\_ACEOF
20795 #define TM_IN_SYS_TIME 1
20800 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
20801 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
20802 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20803 echo $ECHO_N "(cached) $ECHO_C" >&6
20805 cat >conftest.$ac_ext <<_ACEOF
20808 cat confdefs.h >>conftest.$ac_ext
20809 cat >>conftest.$ac_ext <<_ACEOF
20810 /* end confdefs.h. */
20811 #include <sys/types.h>
20812 #include <$ac_cv_struct_tm>
20818 static struct tm ac_aggr;
20819 if (ac_aggr.tm_zone)
20825 rm -f conftest.$ac_objext
20826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20827 (eval $ac_compile) 2>conftest.er1
20829 grep -v '^ *+' conftest.er1 >conftest.err
20831 cat conftest.err >&5
20832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20833 (exit $ac_status); } &&
20834 { ac_try='test -z "$ac_c_werror_flag"
20835 || test ! -s conftest.err'
20836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20837 (eval $ac_try) 2>&5
20839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20840 (exit $ac_status); }; } &&
20841 { ac_try='test -s conftest.$ac_objext'
20842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20843 (eval $ac_try) 2>&5
20845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20846 (exit $ac_status); }; }; then
20847 ac_cv_member_struct_tm_tm_zone=yes
20849 echo "$as_me: failed program was:" >&5
20850 sed 's/^/| /' conftest.$ac_ext >&5
20852 cat >conftest.$ac_ext <<_ACEOF
20855 cat confdefs.h >>conftest.$ac_ext
20856 cat >>conftest.$ac_ext <<_ACEOF
20857 /* end confdefs.h. */
20858 #include <sys/types.h>
20859 #include <$ac_cv_struct_tm>
20865 static struct tm ac_aggr;
20866 if (sizeof ac_aggr.tm_zone)
20872 rm -f conftest.$ac_objext
20873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20874 (eval $ac_compile) 2>conftest.er1
20876 grep -v '^ *+' conftest.er1 >conftest.err
20878 cat conftest.err >&5
20879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20880 (exit $ac_status); } &&
20881 { ac_try='test -z "$ac_c_werror_flag"
20882 || test ! -s conftest.err'
20883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20884 (eval $ac_try) 2>&5
20886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20887 (exit $ac_status); }; } &&
20888 { ac_try='test -s conftest.$ac_objext'
20889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20890 (eval $ac_try) 2>&5
20892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20893 (exit $ac_status); }; }; then
20894 ac_cv_member_struct_tm_tm_zone=yes
20896 echo "$as_me: failed program was:" >&5
20897 sed 's/^/| /' conftest.$ac_ext >&5
20899 ac_cv_member_struct_tm_tm_zone=no
20901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20905 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
20906 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
20907 if test $ac_cv_member_struct_tm_tm_zone = yes; then
20909 cat >>confdefs.h <<_ACEOF
20910 #define HAVE_STRUCT_TM_TM_ZONE 1
20916 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
20918 cat >>confdefs.h <<\_ACEOF
20919 #define HAVE_TM_ZONE 1
20923 echo "$as_me:$LINENO: checking for tzname" >&5
20924 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
20925 if test "${ac_cv_var_tzname+set}" = set; then
20926 echo $ECHO_N "(cached) $ECHO_C" >&6
20928 cat >conftest.$ac_ext <<_ACEOF
20931 cat confdefs.h >>conftest.$ac_ext
20932 cat >>conftest.$ac_ext <<_ACEOF
20933 /* end confdefs.h. */
20935 #ifndef tzname /* For SGI. */
20936 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
20947 rm -f conftest.$ac_objext conftest$ac_exeext
20948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20949 (eval $ac_link) 2>conftest.er1
20951 grep -v '^ *+' conftest.er1 >conftest.err
20953 cat conftest.err >&5
20954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20955 (exit $ac_status); } &&
20956 { ac_try='test -z "$ac_c_werror_flag"
20957 || test ! -s conftest.err'
20958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20959 (eval $ac_try) 2>&5
20961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20962 (exit $ac_status); }; } &&
20963 { ac_try='test -s conftest$ac_exeext'
20964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20965 (eval $ac_try) 2>&5
20967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20968 (exit $ac_status); }; }; then
20969 ac_cv_var_tzname=yes
20971 echo "$as_me: failed program was:" >&5
20972 sed 's/^/| /' conftest.$ac_ext >&5
20974 ac_cv_var_tzname=no
20976 rm -f conftest.err conftest.$ac_objext \
20977 conftest$ac_exeext conftest.$ac_ext
20979 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
20980 echo "${ECHO_T}$ac_cv_var_tzname" >&6
20981 if test $ac_cv_var_tzname = yes; then
20983 cat >>confdefs.h <<\_ACEOF
20984 #define HAVE_TZNAME 1
20991 echo "$as_me:$LINENO: checking for utime.h" >&5
20992 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
20993 if test "${ba_cv_header_utime_h+set}" = set; then
20994 echo $ECHO_N "(cached) $ECHO_C" >&6
20996 cat >conftest.$ac_ext <<_ACEOF
20999 cat confdefs.h >>conftest.$ac_ext
21000 cat >>conftest.$ac_ext <<_ACEOF
21001 /* end confdefs.h. */
21003 #include <sys/types.h>
21013 rm -f conftest.$ac_objext
21014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21015 (eval $ac_compile) 2>conftest.er1
21017 grep -v '^ *+' conftest.er1 >conftest.err
21019 cat conftest.err >&5
21020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21021 (exit $ac_status); } &&
21022 { ac_try='test -z "$ac_c_werror_flag"
21023 || test ! -s conftest.err'
21024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21025 (eval $ac_try) 2>&5
21027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21028 (exit $ac_status); }; } &&
21029 { ac_try='test -s conftest.$ac_objext'
21030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21031 (eval $ac_try) 2>&5
21033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21034 (exit $ac_status); }; }; then
21035 ba_cv_header_utime_h=yes
21037 echo "$as_me: failed program was:" >&5
21038 sed 's/^/| /' conftest.$ac_ext >&5
21040 ba_cv_header_utime_h=no
21042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21044 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
21045 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
21046 test $ba_cv_header_utime_h = yes &&
21047 cat >>confdefs.h <<\_ACEOF
21048 #define HAVE_UTIME_H 1
21052 echo "$as_me:$LINENO: checking for socklen_t" >&5
21053 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
21054 if test "${ba_cv_header_socklen_t+set}" = set; then
21055 echo $ECHO_N "(cached) $ECHO_C" >&6
21057 cat >conftest.$ac_ext <<_ACEOF
21060 cat confdefs.h >>conftest.$ac_ext
21061 cat >>conftest.$ac_ext <<_ACEOF
21062 /* end confdefs.h. */
21064 #include <sys/types.h>
21065 #include <sys/socket.h>
21074 rm -f conftest.$ac_objext
21075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21076 (eval $ac_compile) 2>conftest.er1
21078 grep -v '^ *+' conftest.er1 >conftest.err
21080 cat conftest.err >&5
21081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21082 (exit $ac_status); } &&
21083 { ac_try='test -z "$ac_c_werror_flag"
21084 || test ! -s conftest.err'
21085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21086 (eval $ac_try) 2>&5
21088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21089 (exit $ac_status); }; } &&
21090 { ac_try='test -s conftest.$ac_objext'
21091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21092 (eval $ac_try) 2>&5
21094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21095 (exit $ac_status); }; }; then
21096 ba_cv_header_socklen_t=yes
21098 echo "$as_me: failed program was:" >&5
21099 sed 's/^/| /' conftest.$ac_ext >&5
21101 ba_cv_header_socklen_t=no
21103 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21105 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
21106 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
21107 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
21108 #define HAVE_SOCKLEN_T 1
21112 echo "$as_me:$LINENO: checking for bigendian" >&5
21113 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
21114 if test "${ba_cv_bigendian+set}" = set; then
21115 echo $ECHO_N "(cached) $ECHO_C" >&6
21117 if test "$cross_compiling" = yes; then
21120 cat >conftest.$ac_ext <<_ACEOF
21123 cat confdefs.h >>conftest.$ac_ext
21124 cat >>conftest.$ac_ext <<_ACEOF
21125 /* end confdefs.h. */
21126 main(){long a=1L; char *p=(char *)&a; exit(*p);}
21128 rm -f conftest$ac_exeext
21129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21130 (eval $ac_link) 2>&5
21132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21133 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21135 (eval $ac_try) 2>&5
21137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21138 (exit $ac_status); }; }; then
21139 ba_cv_bigendian=yes
21141 echo "$as_me: program exited with status $ac_status" >&5
21142 echo "$as_me: failed program was:" >&5
21143 sed 's/^/| /' conftest.$ac_ext >&5
21145 ( exit $ac_status )
21148 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21151 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
21152 echo "${ECHO_T}$ba_cv_bigendian" >&6
21153 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
21154 #define HAVE_BIGENDIAN 1
21159 ac_cpp='$CXXCPP $CPPFLAGS'
21160 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21161 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21162 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21165 echo "$as_me:$LINENO: checking for typeof" >&5
21166 echo $ECHO_N "checking for typeof... $ECHO_C" >&6
21167 if test "${ba_cv_have_typeof+set}" = set; then
21168 echo $ECHO_N "(cached) $ECHO_C" >&6
21170 if test "$cross_compiling" = yes; then
21171 ba_cv_have_typeof=no
21173 cat >conftest.$ac_ext <<_ACEOF
21176 cat confdefs.h >>conftest.$ac_ext
21177 cat >>conftest.$ac_ext <<_ACEOF
21178 /* end confdefs.h. */
21179 main(){char *a = 0; a = (typeof a)a;}
21181 rm -f conftest$ac_exeext
21182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21183 (eval $ac_link) 2>&5
21185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21186 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21188 (eval $ac_try) 2>&5
21190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21191 (exit $ac_status); }; }; then
21192 ba_cv_have_typeof=yes
21194 echo "$as_me: program exited with status $ac_status" >&5
21195 echo "$as_me: failed program was:" >&5
21196 sed 's/^/| /' conftest.$ac_ext >&5
21198 ( exit $ac_status )
21199 ba_cv_have_typeof=no
21201 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21204 echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
21205 echo "${ECHO_T}$ba_cv_have_typeof" >&6
21206 test $ba_cv_have_typeof = yes &&
21207 cat >>confdefs.h <<\_ACEOF
21208 #define HAVE_TYPEOF 1
21212 ac_cpp='$CPP $CPPFLAGS'
21213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21218 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21219 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
21220 if test "${ac_cv_c_const+set}" = set; then
21221 echo $ECHO_N "(cached) $ECHO_C" >&6
21223 cat >conftest.$ac_ext <<_ACEOF
21226 cat confdefs.h >>conftest.$ac_ext
21227 cat >>conftest.$ac_ext <<_ACEOF
21228 /* end confdefs.h. */
21233 /* FIXME: Include the comments suggested by Paul. */
21234 #ifndef __cplusplus
21235 /* Ultrix mips cc rejects this. */
21236 typedef int charset[2];
21238 /* SunOS 4.1.1 cc rejects this. */
21239 char const *const *ccp;
21241 /* NEC SVR4.0.2 mips cc rejects this. */
21242 struct point {int x, y;};
21243 static struct point const zero = {0,0};
21244 /* AIX XL C 1.02.0.0 rejects this.
21245 It does not let you subtract one const X* pointer from another in
21246 an arm of an if-expression whose if-part is not a constant
21248 const char *g = "string";
21249 ccp = &g + (g ? g-g : 0);
21250 /* HPUX 7.0 cc rejects these. */
21253 ccp = (char const *const *) p;
21254 { /* SCO 3.2v4 cc rejects this. */
21256 char const *s = 0 ? (char *) 0 : (char const *) 0;
21260 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21261 int x[] = {25, 17};
21262 const int *foo = &x[0];
21265 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21266 typedef const int *iptr;
21270 { /* AIX XL C 1.02.0.0 rejects this saying
21271 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21272 struct s { int j; const int *ap[3]; };
21273 struct s *b; b->j = 5;
21275 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21276 const int foo = 10;
21284 rm -f conftest.$ac_objext
21285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21286 (eval $ac_compile) 2>conftest.er1
21288 grep -v '^ *+' conftest.er1 >conftest.err
21290 cat conftest.err >&5
21291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21292 (exit $ac_status); } &&
21293 { ac_try='test -z "$ac_c_werror_flag"
21294 || test ! -s conftest.err'
21295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21296 (eval $ac_try) 2>&5
21298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21299 (exit $ac_status); }; } &&
21300 { ac_try='test -s conftest.$ac_objext'
21301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21302 (eval $ac_try) 2>&5
21304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21305 (exit $ac_status); }; }; then
21308 echo "$as_me: failed program was:" >&5
21309 sed 's/^/| /' conftest.$ac_ext >&5
21313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21315 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21316 echo "${ECHO_T}$ac_cv_c_const" >&6
21317 if test $ac_cv_c_const = no; then
21319 cat >>confdefs.h <<\_ACEOF
21327 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
21328 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
21330 # The order of these tests is important.
21331 cat >conftest.$ac_ext <<_ACEOF
21334 cat confdefs.h >>conftest.$ac_ext
21335 cat >>conftest.$ac_ext <<_ACEOF
21336 /* end confdefs.h. */
21337 #include <sys/statvfs.h>
21338 #include <sys/fstyp.h>
21340 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21341 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21343 grep -v '^ *+' conftest.er1 >conftest.err
21345 cat conftest.err >&5
21346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21347 (exit $ac_status); } >/dev/null; then
21348 if test -s conftest.err; then
21349 ac_cpp_err=$ac_c_preproc_warn_flag
21350 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21357 if test -z "$ac_cpp_err"; then
21358 cat >>confdefs.h <<\_ACEOF
21359 #define FSTYPE_STATVFS 1
21363 echo "$as_me: failed program was:" >&5
21364 sed 's/^/| /' conftest.$ac_ext >&5
21368 rm -f conftest.err conftest.$ac_ext
21369 if test $fstype = no; then
21370 cat >conftest.$ac_ext <<_ACEOF
21373 cat confdefs.h >>conftest.$ac_ext
21374 cat >>conftest.$ac_ext <<_ACEOF
21375 /* end confdefs.h. */
21376 #include <sys/statfs.h>
21377 #include <sys/fstyp.h>
21379 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21380 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21382 grep -v '^ *+' conftest.er1 >conftest.err
21384 cat conftest.err >&5
21385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21386 (exit $ac_status); } >/dev/null; then
21387 if test -s conftest.err; then
21388 ac_cpp_err=$ac_c_preproc_warn_flag
21389 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21396 if test -z "$ac_cpp_err"; then
21397 cat >>confdefs.h <<\_ACEOF
21398 #define FSTYPE_USG_STATFS 1
21402 echo "$as_me: failed program was:" >&5
21403 sed 's/^/| /' conftest.$ac_ext >&5
21407 rm -f conftest.err conftest.$ac_ext
21409 if test $fstype = no; then
21410 cat >conftest.$ac_ext <<_ACEOF
21413 cat confdefs.h >>conftest.$ac_ext
21414 cat >>conftest.$ac_ext <<_ACEOF
21415 /* end confdefs.h. */
21416 #include <sys/statfs.h>
21417 #include <sys/vmount.h>
21419 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21420 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21422 grep -v '^ *+' conftest.er1 >conftest.err
21424 cat conftest.err >&5
21425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21426 (exit $ac_status); } >/dev/null; then
21427 if test -s conftest.err; then
21428 ac_cpp_err=$ac_c_preproc_warn_flag
21429 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21436 if test -z "$ac_cpp_err"; then
21437 cat >>confdefs.h <<\_ACEOF
21438 #define FSTYPE_AIX_STATFS 1
21442 echo "$as_me: failed program was:" >&5
21443 sed 's/^/| /' conftest.$ac_ext >&5
21447 rm -f conftest.err conftest.$ac_ext
21449 if test $fstype = no; then
21450 cat >conftest.$ac_ext <<_ACEOF
21453 cat confdefs.h >>conftest.$ac_ext
21454 cat >>conftest.$ac_ext <<_ACEOF
21455 /* end confdefs.h. */
21456 #include <mntent.h>
21458 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21459 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21461 grep -v '^ *+' conftest.er1 >conftest.err
21463 cat conftest.err >&5
21464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21465 (exit $ac_status); } >/dev/null; then
21466 if test -s conftest.err; then
21467 ac_cpp_err=$ac_c_preproc_warn_flag
21468 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21475 if test -z "$ac_cpp_err"; then
21476 cat >>confdefs.h <<\_ACEOF
21477 #define FSTYPE_MNTENT 1
21481 echo "$as_me: failed program was:" >&5
21482 sed 's/^/| /' conftest.$ac_ext >&5
21486 rm -f conftest.err conftest.$ac_ext
21488 if test $fstype = no; then
21489 cat >conftest.$ac_ext <<_ACEOF
21492 cat confdefs.h >>conftest.$ac_ext
21493 cat >>conftest.$ac_ext <<_ACEOF
21494 /* end confdefs.h. */
21495 #include <sys/mount.h>
21498 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21499 $EGREP "f_type;" >/dev/null 2>&1; then
21500 cat >>confdefs.h <<\_ACEOF
21501 #define FSTYPE_STATFS 1
21508 if test $fstype = no; then
21509 cat >conftest.$ac_ext <<_ACEOF
21512 cat confdefs.h >>conftest.$ac_ext
21513 cat >>conftest.$ac_ext <<_ACEOF
21514 /* end confdefs.h. */
21515 #include <sys/mount.h>
21516 #include <sys/fs_types.h>
21518 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21519 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21521 grep -v '^ *+' conftest.er1 >conftest.err
21523 cat conftest.err >&5
21524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21525 (exit $ac_status); } >/dev/null; then
21526 if test -s conftest.err; then
21527 ac_cpp_err=$ac_c_preproc_warn_flag
21528 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21535 if test -z "$ac_cpp_err"; then
21536 cat >>confdefs.h <<\_ACEOF
21537 #define FSTYPE_GETMNT 1
21541 echo "$as_me: failed program was:" >&5
21542 sed 's/^/| /' conftest.$ac_ext >&5
21546 rm -f conftest.err conftest.$ac_ext
21548 echo "$as_me:$LINENO: result: $fstype" >&5
21549 echo "${ECHO_T}$fstype" >&6
21551 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21552 echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
21553 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6
21554 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21555 echo $ECHO_N "(cached) $ECHO_C" >&6
21557 echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
21558 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6
21560 # Is the header compilable?
21561 echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
21562 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6
21563 cat >conftest.$ac_ext <<_ACEOF
21566 cat confdefs.h >>conftest.$ac_ext
21567 cat >>conftest.$ac_ext <<_ACEOF
21568 /* end confdefs.h. */
21569 $ac_includes_default
21570 #include <sys/statvfs.h>
21572 rm -f conftest.$ac_objext
21573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21574 (eval $ac_compile) 2>conftest.er1
21576 grep -v '^ *+' conftest.er1 >conftest.err
21578 cat conftest.err >&5
21579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21580 (exit $ac_status); } &&
21581 { ac_try='test -z "$ac_c_werror_flag"
21582 || test ! -s conftest.err'
21583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21584 (eval $ac_try) 2>&5
21586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21587 (exit $ac_status); }; } &&
21588 { ac_try='test -s conftest.$ac_objext'
21589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21590 (eval $ac_try) 2>&5
21592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21593 (exit $ac_status); }; }; then
21594 ac_header_compiler=yes
21596 echo "$as_me: failed program was:" >&5
21597 sed 's/^/| /' conftest.$ac_ext >&5
21599 ac_header_compiler=no
21601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21602 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21603 echo "${ECHO_T}$ac_header_compiler" >&6
21605 # Is the header present?
21606 echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
21607 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6
21608 cat >conftest.$ac_ext <<_ACEOF
21611 cat confdefs.h >>conftest.$ac_ext
21612 cat >>conftest.$ac_ext <<_ACEOF
21613 /* end confdefs.h. */
21614 #include <sys/statvfs.h>
21616 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21617 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21619 grep -v '^ *+' conftest.er1 >conftest.err
21621 cat conftest.err >&5
21622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21623 (exit $ac_status); } >/dev/null; then
21624 if test -s conftest.err; then
21625 ac_cpp_err=$ac_c_preproc_warn_flag
21626 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21633 if test -z "$ac_cpp_err"; then
21634 ac_header_preproc=yes
21636 echo "$as_me: failed program was:" >&5
21637 sed 's/^/| /' conftest.$ac_ext >&5
21639 ac_header_preproc=no
21641 rm -f conftest.err conftest.$ac_ext
21642 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21643 echo "${ECHO_T}$ac_header_preproc" >&6
21645 # So? What about this header?
21646 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21648 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
21649 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21650 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
21651 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
21652 ac_header_preproc=yes
21655 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
21656 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
21657 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&5
21658 echo "$as_me: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&2;}
21659 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
21660 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
21661 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&5
21662 echo "$as_me: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&2;}
21663 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
21664 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
21665 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
21666 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
21669 ## ------------------------------------------ ##
21670 ## Report this to the AC_PACKAGE_NAME lists. ##
21671 ## ------------------------------------------ ##
21674 sed "s/^/$as_me: WARNING: /" >&2
21677 echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
21678 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6
21679 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21680 echo $ECHO_N "(cached) $ECHO_C" >&6
21682 ac_cv_header_sys_statvfs_h=$ac_header_preproc
21684 echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
21685 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6
21688 if test $ac_cv_header_sys_statvfs_h = yes; then
21690 cat >>confdefs.h <<\_ACEOF
21691 #define HAVE_SYS_STATVFS_H 1
21698 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
21699 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
21700 if test "${ac_cv_type_signal+set}" = set; then
21701 echo $ECHO_N "(cached) $ECHO_C" >&6
21703 cat >conftest.$ac_ext <<_ACEOF
21706 cat confdefs.h >>conftest.$ac_ext
21707 cat >>conftest.$ac_ext <<_ACEOF
21708 /* end confdefs.h. */
21709 #include <sys/types.h>
21710 #include <signal.h>
21715 extern "C" void (*signal (int, void (*)(int)))(int);
21717 void (*signal ()) ();
21728 rm -f conftest.$ac_objext
21729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21730 (eval $ac_compile) 2>conftest.er1
21732 grep -v '^ *+' conftest.er1 >conftest.err
21734 cat conftest.err >&5
21735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21736 (exit $ac_status); } &&
21737 { ac_try='test -z "$ac_c_werror_flag"
21738 || test ! -s conftest.err'
21739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21740 (eval $ac_try) 2>&5
21742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21743 (exit $ac_status); }; } &&
21744 { ac_try='test -s conftest.$ac_objext'
21745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21746 (eval $ac_try) 2>&5
21748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21749 (exit $ac_status); }; }; then
21750 ac_cv_type_signal=void
21752 echo "$as_me: failed program was:" >&5
21753 sed 's/^/| /' conftest.$ac_ext >&5
21755 ac_cv_type_signal=int
21757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21759 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
21760 echo "${ECHO_T}$ac_cv_type_signal" >&6
21762 cat >>confdefs.h <<_ACEOF
21763 #define RETSIGTYPE $ac_cv_type_signal
21768 echo "$as_me:$LINENO: checking for type of signal functions" >&5
21769 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
21770 if test "${bash_cv_signal_vintage+set}" = set; then
21771 echo $ECHO_N "(cached) $ECHO_C" >&6
21774 cat >conftest.$ac_ext <<_ACEOF
21777 cat confdefs.h >>conftest.$ac_ext
21778 cat >>conftest.$ac_ext <<_ACEOF
21779 /* end confdefs.h. */
21780 #include <signal.h>
21786 struct sigaction sa;
21787 sigemptyset(&ss); sigsuspend(&ss);
21788 sigaction(SIGINT, &sa, (struct sigaction *) 0);
21789 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
21795 rm -f conftest.$ac_objext conftest$ac_exeext
21796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21797 (eval $ac_link) 2>conftest.er1
21799 grep -v '^ *+' conftest.er1 >conftest.err
21801 cat conftest.err >&5
21802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21803 (exit $ac_status); } &&
21804 { ac_try='test -z "$ac_c_werror_flag"
21805 || test ! -s conftest.err'
21806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21807 (eval $ac_try) 2>&5
21809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21810 (exit $ac_status); }; } &&
21811 { ac_try='test -s conftest$ac_exeext'
21812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21813 (eval $ac_try) 2>&5
21815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21816 (exit $ac_status); }; }; then
21817 bash_cv_signal_vintage="posix"
21819 echo "$as_me: failed program was:" >&5
21820 sed 's/^/| /' conftest.$ac_ext >&5
21823 cat >conftest.$ac_ext <<_ACEOF
21826 cat confdefs.h >>conftest.$ac_ext
21827 cat >>conftest.$ac_ext <<_ACEOF
21828 /* end confdefs.h. */
21829 #include <signal.h>
21834 int mask = sigmask(SIGINT);
21835 sigsetmask(mask); sigblock(mask); sigpause(mask);
21841 rm -f conftest.$ac_objext conftest$ac_exeext
21842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21843 (eval $ac_link) 2>conftest.er1
21845 grep -v '^ *+' conftest.er1 >conftest.err
21847 cat conftest.err >&5
21848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21849 (exit $ac_status); } &&
21850 { ac_try='test -z "$ac_c_werror_flag"
21851 || test ! -s conftest.err'
21852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21853 (eval $ac_try) 2>&5
21855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21856 (exit $ac_status); }; } &&
21857 { ac_try='test -s conftest$ac_exeext'
21858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21859 (eval $ac_try) 2>&5
21861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21862 (exit $ac_status); }; }; then
21863 bash_cv_signal_vintage="4.2bsd"
21865 echo "$as_me: failed program was:" >&5
21866 sed 's/^/| /' conftest.$ac_ext >&5
21869 cat >conftest.$ac_ext <<_ACEOF
21872 cat confdefs.h >>conftest.$ac_ext
21873 cat >>conftest.$ac_ext <<_ACEOF
21874 /* end confdefs.h. */
21876 #include <signal.h>
21877 RETSIGTYPE foo() { }
21882 int mask = sigmask(SIGINT);
21883 sigset(SIGINT, foo); sigrelse(SIGINT);
21884 sighold(SIGINT); sigpause(SIGINT);
21890 rm -f conftest.$ac_objext conftest$ac_exeext
21891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21892 (eval $ac_link) 2>conftest.er1
21894 grep -v '^ *+' conftest.er1 >conftest.err
21896 cat conftest.err >&5
21897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21898 (exit $ac_status); } &&
21899 { ac_try='test -z "$ac_c_werror_flag"
21900 || test ! -s conftest.err'
21901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21902 (eval $ac_try) 2>&5
21904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21905 (exit $ac_status); }; } &&
21906 { ac_try='test -s conftest$ac_exeext'
21907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21908 (eval $ac_try) 2>&5
21910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21911 (exit $ac_status); }; }; then
21912 bash_cv_signal_vintage="svr3"
21914 echo "$as_me: failed program was:" >&5
21915 sed 's/^/| /' conftest.$ac_ext >&5
21917 bash_cv_signal_vintage="v7"
21920 rm -f conftest.err conftest.$ac_objext \
21921 conftest$ac_exeext conftest.$ac_ext
21924 rm -f conftest.err conftest.$ac_objext \
21925 conftest$ac_exeext conftest.$ac_ext
21928 rm -f conftest.err conftest.$ac_objext \
21929 conftest$ac_exeext conftest.$ac_ext
21933 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
21934 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
21935 if test "$bash_cv_signal_vintage" = "posix"; then
21936 cat >>confdefs.h <<\_ACEOF
21937 #define HAVE_POSIX_SIGNALS 1
21940 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
21941 cat >>confdefs.h <<\_ACEOF
21942 #define HAVE_BSD_SIGNALS 1
21945 elif test "$bash_cv_signal_vintage" = "svr3"; then
21946 cat >>confdefs.h <<\_ACEOF
21947 #define HAVE_USG_SIGHOLD 1
21952 echo "$as_me:$LINENO: checking for mode_t" >&5
21953 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
21954 if test "${ac_cv_type_mode_t+set}" = set; then
21955 echo $ECHO_N "(cached) $ECHO_C" >&6
21957 cat >conftest.$ac_ext <<_ACEOF
21960 cat confdefs.h >>conftest.$ac_ext
21961 cat >>conftest.$ac_ext <<_ACEOF
21962 /* end confdefs.h. */
21963 $ac_includes_default
21969 if (sizeof (mode_t))
21975 rm -f conftest.$ac_objext
21976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21977 (eval $ac_compile) 2>conftest.er1
21979 grep -v '^ *+' conftest.er1 >conftest.err
21981 cat conftest.err >&5
21982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21983 (exit $ac_status); } &&
21984 { ac_try='test -z "$ac_c_werror_flag"
21985 || test ! -s conftest.err'
21986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21987 (eval $ac_try) 2>&5
21989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21990 (exit $ac_status); }; } &&
21991 { ac_try='test -s conftest.$ac_objext'
21992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21993 (eval $ac_try) 2>&5
21995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21996 (exit $ac_status); }; }; then
21997 ac_cv_type_mode_t=yes
21999 echo "$as_me: failed program was:" >&5
22000 sed 's/^/| /' conftest.$ac_ext >&5
22002 ac_cv_type_mode_t=no
22004 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22006 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
22007 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
22008 if test $ac_cv_type_mode_t = yes; then
22012 cat >>confdefs.h <<_ACEOF
22018 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
22019 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
22020 if test "${ac_cv_type_uid_t+set}" = set; then
22021 echo $ECHO_N "(cached) $ECHO_C" >&6
22023 cat >conftest.$ac_ext <<_ACEOF
22026 cat confdefs.h >>conftest.$ac_ext
22027 cat >>conftest.$ac_ext <<_ACEOF
22028 /* end confdefs.h. */
22029 #include <sys/types.h>
22032 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22033 $EGREP "uid_t" >/dev/null 2>&1; then
22034 ac_cv_type_uid_t=yes
22036 ac_cv_type_uid_t=no
22041 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
22042 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
22043 if test $ac_cv_type_uid_t = no; then
22045 cat >>confdefs.h <<\_ACEOF
22050 cat >>confdefs.h <<\_ACEOF
22056 echo "$as_me:$LINENO: checking for size_t" >&5
22057 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
22058 if test "${ac_cv_type_size_t+set}" = set; then
22059 echo $ECHO_N "(cached) $ECHO_C" >&6
22061 cat >conftest.$ac_ext <<_ACEOF
22064 cat confdefs.h >>conftest.$ac_ext
22065 cat >>conftest.$ac_ext <<_ACEOF
22066 /* end confdefs.h. */
22067 $ac_includes_default
22073 if (sizeof (size_t))
22079 rm -f conftest.$ac_objext
22080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22081 (eval $ac_compile) 2>conftest.er1
22083 grep -v '^ *+' conftest.er1 >conftest.err
22085 cat conftest.err >&5
22086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22087 (exit $ac_status); } &&
22088 { ac_try='test -z "$ac_c_werror_flag"
22089 || test ! -s conftest.err'
22090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22091 (eval $ac_try) 2>&5
22093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22094 (exit $ac_status); }; } &&
22095 { ac_try='test -s conftest.$ac_objext'
22096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22097 (eval $ac_try) 2>&5
22099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22100 (exit $ac_status); }; }; then
22101 ac_cv_type_size_t=yes
22103 echo "$as_me: failed program was:" >&5
22104 sed 's/^/| /' conftest.$ac_ext >&5
22106 ac_cv_type_size_t=no
22108 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22110 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22111 echo "${ECHO_T}$ac_cv_type_size_t" >&6
22112 if test $ac_cv_type_size_t = yes; then
22116 cat >>confdefs.h <<_ACEOF
22117 #define size_t unsigned
22122 echo "$as_me:$LINENO: checking for pid_t" >&5
22123 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
22124 if test "${ac_cv_type_pid_t+set}" = set; then
22125 echo $ECHO_N "(cached) $ECHO_C" >&6
22127 cat >conftest.$ac_ext <<_ACEOF
22130 cat confdefs.h >>conftest.$ac_ext
22131 cat >>conftest.$ac_ext <<_ACEOF
22132 /* end confdefs.h. */
22133 $ac_includes_default
22139 if (sizeof (pid_t))
22145 rm -f conftest.$ac_objext
22146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22147 (eval $ac_compile) 2>conftest.er1
22149 grep -v '^ *+' conftest.er1 >conftest.err
22151 cat conftest.err >&5
22152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22153 (exit $ac_status); } &&
22154 { ac_try='test -z "$ac_c_werror_flag"
22155 || test ! -s conftest.err'
22156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22157 (eval $ac_try) 2>&5
22159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22160 (exit $ac_status); }; } &&
22161 { ac_try='test -s conftest.$ac_objext'
22162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22163 (eval $ac_try) 2>&5
22165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22166 (exit $ac_status); }; }; then
22167 ac_cv_type_pid_t=yes
22169 echo "$as_me: failed program was:" >&5
22170 sed 's/^/| /' conftest.$ac_ext >&5
22172 ac_cv_type_pid_t=no
22174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22176 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22177 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
22178 if test $ac_cv_type_pid_t = yes; then
22182 cat >>confdefs.h <<_ACEOF
22188 echo "$as_me:$LINENO: checking for off_t" >&5
22189 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
22190 if test "${ac_cv_type_off_t+set}" = set; then
22191 echo $ECHO_N "(cached) $ECHO_C" >&6
22193 cat >conftest.$ac_ext <<_ACEOF
22196 cat confdefs.h >>conftest.$ac_ext
22197 cat >>conftest.$ac_ext <<_ACEOF
22198 /* end confdefs.h. */
22199 $ac_includes_default
22205 if (sizeof (off_t))
22211 rm -f conftest.$ac_objext
22212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22213 (eval $ac_compile) 2>conftest.er1
22215 grep -v '^ *+' conftest.er1 >conftest.err
22217 cat conftest.err >&5
22218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22219 (exit $ac_status); } &&
22220 { ac_try='test -z "$ac_c_werror_flag"
22221 || test ! -s conftest.err'
22222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22223 (eval $ac_try) 2>&5
22225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22226 (exit $ac_status); }; } &&
22227 { ac_try='test -s conftest.$ac_objext'
22228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22229 (eval $ac_try) 2>&5
22231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22232 (exit $ac_status); }; }; then
22233 ac_cv_type_off_t=yes
22235 echo "$as_me: failed program was:" >&5
22236 sed 's/^/| /' conftest.$ac_ext >&5
22238 ac_cv_type_off_t=no
22240 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22242 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
22243 echo "${ECHO_T}$ac_cv_type_off_t" >&6
22244 if test $ac_cv_type_off_t = yes; then
22248 cat >>confdefs.h <<_ACEOF
22254 echo "$as_me:$LINENO: checking for ino_t" >&5
22255 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
22256 if test "${ac_cv_type_ino_t+set}" = set; then
22257 echo $ECHO_N "(cached) $ECHO_C" >&6
22259 cat >conftest.$ac_ext <<_ACEOF
22262 cat confdefs.h >>conftest.$ac_ext
22263 cat >>conftest.$ac_ext <<_ACEOF
22264 /* end confdefs.h. */
22265 $ac_includes_default
22271 if (sizeof (ino_t))
22277 rm -f conftest.$ac_objext
22278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22279 (eval $ac_compile) 2>conftest.er1
22281 grep -v '^ *+' conftest.er1 >conftest.err
22283 cat conftest.err >&5
22284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22285 (exit $ac_status); } &&
22286 { ac_try='test -z "$ac_c_werror_flag"
22287 || test ! -s conftest.err'
22288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22289 (eval $ac_try) 2>&5
22291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22292 (exit $ac_status); }; } &&
22293 { ac_try='test -s conftest.$ac_objext'
22294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22295 (eval $ac_try) 2>&5
22297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22298 (exit $ac_status); }; }; then
22299 ac_cv_type_ino_t=yes
22301 echo "$as_me: failed program was:" >&5
22302 sed 's/^/| /' conftest.$ac_ext >&5
22304 ac_cv_type_ino_t=no
22306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22308 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
22309 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
22310 if test $ac_cv_type_ino_t = yes; then
22314 cat >>confdefs.h <<_ACEOF
22315 #define ino_t unsigned long
22320 echo "$as_me:$LINENO: checking for dev_t" >&5
22321 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
22322 if test "${ac_cv_type_dev_t+set}" = set; then
22323 echo $ECHO_N "(cached) $ECHO_C" >&6
22325 cat >conftest.$ac_ext <<_ACEOF
22328 cat confdefs.h >>conftest.$ac_ext
22329 cat >>conftest.$ac_ext <<_ACEOF
22330 /* end confdefs.h. */
22331 $ac_includes_default
22337 if (sizeof (dev_t))
22343 rm -f conftest.$ac_objext
22344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22345 (eval $ac_compile) 2>conftest.er1
22347 grep -v '^ *+' conftest.er1 >conftest.err
22349 cat conftest.err >&5
22350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22351 (exit $ac_status); } &&
22352 { ac_try='test -z "$ac_c_werror_flag"
22353 || test ! -s conftest.err'
22354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22355 (eval $ac_try) 2>&5
22357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22358 (exit $ac_status); }; } &&
22359 { ac_try='test -s conftest.$ac_objext'
22360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22361 (eval $ac_try) 2>&5
22363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22364 (exit $ac_status); }; }; then
22365 ac_cv_type_dev_t=yes
22367 echo "$as_me: failed program was:" >&5
22368 sed 's/^/| /' conftest.$ac_ext >&5
22370 ac_cv_type_dev_t=no
22372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22374 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
22375 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
22376 if test $ac_cv_type_dev_t = yes; then
22380 cat >>confdefs.h <<_ACEOF
22381 #define dev_t unsigned long
22386 echo "$as_me:$LINENO: checking for daddr_t" >&5
22387 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
22388 if test "${ac_cv_type_daddr_t+set}" = set; then
22389 echo $ECHO_N "(cached) $ECHO_C" >&6
22391 cat >conftest.$ac_ext <<_ACEOF
22394 cat confdefs.h >>conftest.$ac_ext
22395 cat >>conftest.$ac_ext <<_ACEOF
22396 /* end confdefs.h. */
22397 $ac_includes_default
22403 if (sizeof (daddr_t))
22409 rm -f conftest.$ac_objext
22410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22411 (eval $ac_compile) 2>conftest.er1
22413 grep -v '^ *+' conftest.er1 >conftest.err
22415 cat conftest.err >&5
22416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22417 (exit $ac_status); } &&
22418 { ac_try='test -z "$ac_c_werror_flag"
22419 || test ! -s conftest.err'
22420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22421 (eval $ac_try) 2>&5
22423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22424 (exit $ac_status); }; } &&
22425 { ac_try='test -s conftest.$ac_objext'
22426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22427 (eval $ac_try) 2>&5
22429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22430 (exit $ac_status); }; }; then
22431 ac_cv_type_daddr_t=yes
22433 echo "$as_me: failed program was:" >&5
22434 sed 's/^/| /' conftest.$ac_ext >&5
22436 ac_cv_type_daddr_t=no
22438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22440 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
22441 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
22442 if test $ac_cv_type_daddr_t = yes; then
22446 cat >>confdefs.h <<_ACEOF
22447 #define daddr_t long
22452 echo "$as_me:$LINENO: checking for major_t" >&5
22453 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
22454 if test "${ac_cv_type_major_t+set}" = set; then
22455 echo $ECHO_N "(cached) $ECHO_C" >&6
22457 cat >conftest.$ac_ext <<_ACEOF
22460 cat confdefs.h >>conftest.$ac_ext
22461 cat >>conftest.$ac_ext <<_ACEOF
22462 /* end confdefs.h. */
22463 $ac_includes_default
22469 if (sizeof (major_t))
22475 rm -f conftest.$ac_objext
22476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22477 (eval $ac_compile) 2>conftest.er1
22479 grep -v '^ *+' conftest.er1 >conftest.err
22481 cat conftest.err >&5
22482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22483 (exit $ac_status); } &&
22484 { ac_try='test -z "$ac_c_werror_flag"
22485 || test ! -s conftest.err'
22486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22487 (eval $ac_try) 2>&5
22489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22490 (exit $ac_status); }; } &&
22491 { ac_try='test -s conftest.$ac_objext'
22492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22493 (eval $ac_try) 2>&5
22495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22496 (exit $ac_status); }; }; then
22497 ac_cv_type_major_t=yes
22499 echo "$as_me: failed program was:" >&5
22500 sed 's/^/| /' conftest.$ac_ext >&5
22502 ac_cv_type_major_t=no
22504 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22506 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
22507 echo "${ECHO_T}$ac_cv_type_major_t" >&6
22508 if test $ac_cv_type_major_t = yes; then
22512 cat >>confdefs.h <<_ACEOF
22513 #define major_t int
22518 echo "$as_me:$LINENO: checking for minor_t" >&5
22519 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
22520 if test "${ac_cv_type_minor_t+set}" = set; then
22521 echo $ECHO_N "(cached) $ECHO_C" >&6
22523 cat >conftest.$ac_ext <<_ACEOF
22526 cat confdefs.h >>conftest.$ac_ext
22527 cat >>conftest.$ac_ext <<_ACEOF
22528 /* end confdefs.h. */
22529 $ac_includes_default
22535 if (sizeof (minor_t))
22541 rm -f conftest.$ac_objext
22542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22543 (eval $ac_compile) 2>conftest.er1
22545 grep -v '^ *+' conftest.er1 >conftest.err
22547 cat conftest.err >&5
22548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22549 (exit $ac_status); } &&
22550 { ac_try='test -z "$ac_c_werror_flag"
22551 || test ! -s conftest.err'
22552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22553 (eval $ac_try) 2>&5
22555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22556 (exit $ac_status); }; } &&
22557 { ac_try='test -s conftest.$ac_objext'
22558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22559 (eval $ac_try) 2>&5
22561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22562 (exit $ac_status); }; }; then
22563 ac_cv_type_minor_t=yes
22565 echo "$as_me: failed program was:" >&5
22566 sed 's/^/| /' conftest.$ac_ext >&5
22568 ac_cv_type_minor_t=no
22570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22572 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
22573 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
22574 if test $ac_cv_type_minor_t = yes; then
22578 cat >>confdefs.h <<_ACEOF
22579 #define minor_t int
22584 echo "$as_me:$LINENO: checking for ssize_t" >&5
22585 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
22586 if test "${ac_cv_type_ssize_t+set}" = set; then
22587 echo $ECHO_N "(cached) $ECHO_C" >&6
22589 cat >conftest.$ac_ext <<_ACEOF
22592 cat confdefs.h >>conftest.$ac_ext
22593 cat >>conftest.$ac_ext <<_ACEOF
22594 /* end confdefs.h. */
22595 $ac_includes_default
22601 if (sizeof (ssize_t))
22607 rm -f conftest.$ac_objext
22608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22609 (eval $ac_compile) 2>conftest.er1
22611 grep -v '^ *+' conftest.er1 >conftest.err
22613 cat conftest.err >&5
22614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22615 (exit $ac_status); } &&
22616 { ac_try='test -z "$ac_c_werror_flag"
22617 || test ! -s conftest.err'
22618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22619 (eval $ac_try) 2>&5
22621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22622 (exit $ac_status); }; } &&
22623 { ac_try='test -s conftest.$ac_objext'
22624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22625 (eval $ac_try) 2>&5
22627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22628 (exit $ac_status); }; }; then
22629 ac_cv_type_ssize_t=yes
22631 echo "$as_me: failed program was:" >&5
22632 sed 's/^/| /' conftest.$ac_ext >&5
22634 ac_cv_type_ssize_t=no
22636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22638 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
22639 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
22640 if test $ac_cv_type_ssize_t = yes; then
22644 cat >>confdefs.h <<_ACEOF
22645 #define ssize_t int
22650 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
22651 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
22652 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
22653 echo $ECHO_N "(cached) $ECHO_C" >&6
22655 cat >conftest.$ac_ext <<_ACEOF
22658 cat confdefs.h >>conftest.$ac_ext
22659 cat >>conftest.$ac_ext <<_ACEOF
22660 /* end confdefs.h. */
22661 $ac_includes_default
22665 static struct stat ac_aggr;
22666 if (ac_aggr.st_blocks)
22672 rm -f conftest.$ac_objext
22673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22674 (eval $ac_compile) 2>conftest.er1
22676 grep -v '^ *+' conftest.er1 >conftest.err
22678 cat conftest.err >&5
22679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22680 (exit $ac_status); } &&
22681 { ac_try='test -z "$ac_c_werror_flag"
22682 || test ! -s conftest.err'
22683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22684 (eval $ac_try) 2>&5
22686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22687 (exit $ac_status); }; } &&
22688 { ac_try='test -s conftest.$ac_objext'
22689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22690 (eval $ac_try) 2>&5
22692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22693 (exit $ac_status); }; }; then
22694 ac_cv_member_struct_stat_st_blocks=yes
22696 echo "$as_me: failed program was:" >&5
22697 sed 's/^/| /' conftest.$ac_ext >&5
22699 cat >conftest.$ac_ext <<_ACEOF
22702 cat confdefs.h >>conftest.$ac_ext
22703 cat >>conftest.$ac_ext <<_ACEOF
22704 /* end confdefs.h. */
22705 $ac_includes_default
22709 static struct stat ac_aggr;
22710 if (sizeof ac_aggr.st_blocks)
22716 rm -f conftest.$ac_objext
22717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22718 (eval $ac_compile) 2>conftest.er1
22720 grep -v '^ *+' conftest.er1 >conftest.err
22722 cat conftest.err >&5
22723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22724 (exit $ac_status); } &&
22725 { ac_try='test -z "$ac_c_werror_flag"
22726 || test ! -s conftest.err'
22727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22728 (eval $ac_try) 2>&5
22730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22731 (exit $ac_status); }; } &&
22732 { ac_try='test -s conftest.$ac_objext'
22733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22734 (eval $ac_try) 2>&5
22736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22737 (exit $ac_status); }; }; then
22738 ac_cv_member_struct_stat_st_blocks=yes
22740 echo "$as_me: failed program was:" >&5
22741 sed 's/^/| /' conftest.$ac_ext >&5
22743 ac_cv_member_struct_stat_st_blocks=no
22745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22749 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
22750 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
22751 if test $ac_cv_member_struct_stat_st_blocks = yes; then
22753 cat >>confdefs.h <<_ACEOF
22754 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
22758 cat >>confdefs.h <<\_ACEOF
22759 #define HAVE_ST_BLOCKS 1
22764 "fileblocks.$ac_objext" | \
22765 *" fileblocks.$ac_objext" | \
22766 "fileblocks.$ac_objext "* | \
22767 *" fileblocks.$ac_objext "* ) ;;
22768 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
22775 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
22776 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
22777 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
22778 echo $ECHO_N "(cached) $ECHO_C" >&6
22780 cat >conftest.$ac_ext <<_ACEOF
22783 cat confdefs.h >>conftest.$ac_ext
22784 cat >>conftest.$ac_ext <<_ACEOF
22785 /* end confdefs.h. */
22786 $ac_includes_default
22790 static struct stat ac_aggr;
22791 if (ac_aggr.st_rdev)
22797 rm -f conftest.$ac_objext
22798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22799 (eval $ac_compile) 2>conftest.er1
22801 grep -v '^ *+' conftest.er1 >conftest.err
22803 cat conftest.err >&5
22804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22805 (exit $ac_status); } &&
22806 { ac_try='test -z "$ac_c_werror_flag"
22807 || test ! -s conftest.err'
22808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22809 (eval $ac_try) 2>&5
22811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22812 (exit $ac_status); }; } &&
22813 { ac_try='test -s conftest.$ac_objext'
22814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22815 (eval $ac_try) 2>&5
22817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22818 (exit $ac_status); }; }; then
22819 ac_cv_member_struct_stat_st_rdev=yes
22821 echo "$as_me: failed program was:" >&5
22822 sed 's/^/| /' conftest.$ac_ext >&5
22824 cat >conftest.$ac_ext <<_ACEOF
22827 cat confdefs.h >>conftest.$ac_ext
22828 cat >>conftest.$ac_ext <<_ACEOF
22829 /* end confdefs.h. */
22830 $ac_includes_default
22834 static struct stat ac_aggr;
22835 if (sizeof ac_aggr.st_rdev)
22841 rm -f conftest.$ac_objext
22842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22843 (eval $ac_compile) 2>conftest.er1
22845 grep -v '^ *+' conftest.er1 >conftest.err
22847 cat conftest.err >&5
22848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22849 (exit $ac_status); } &&
22850 { ac_try='test -z "$ac_c_werror_flag"
22851 || test ! -s conftest.err'
22852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22853 (eval $ac_try) 2>&5
22855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22856 (exit $ac_status); }; } &&
22857 { ac_try='test -s conftest.$ac_objext'
22858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22859 (eval $ac_try) 2>&5
22861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22862 (exit $ac_status); }; }; then
22863 ac_cv_member_struct_stat_st_rdev=yes
22865 echo "$as_me: failed program was:" >&5
22866 sed 's/^/| /' conftest.$ac_ext >&5
22868 ac_cv_member_struct_stat_st_rdev=no
22870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22874 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
22875 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
22876 if test $ac_cv_member_struct_stat_st_rdev = yes; then
22878 cat >>confdefs.h <<_ACEOF
22879 #define HAVE_STRUCT_STAT_ST_RDEV 1
22883 cat >>confdefs.h <<\_ACEOF
22884 #define HAVE_ST_RDEV 1
22890 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
22891 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
22892 if test "${ac_cv_struct_tm+set}" = set; then
22893 echo $ECHO_N "(cached) $ECHO_C" >&6
22895 cat >conftest.$ac_ext <<_ACEOF
22898 cat confdefs.h >>conftest.$ac_ext
22899 cat >>conftest.$ac_ext <<_ACEOF
22900 /* end confdefs.h. */
22901 #include <sys/types.h>
22907 struct tm *tp; tp->tm_sec;
22912 rm -f conftest.$ac_objext
22913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22914 (eval $ac_compile) 2>conftest.er1
22916 grep -v '^ *+' conftest.er1 >conftest.err
22918 cat conftest.err >&5
22919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22920 (exit $ac_status); } &&
22921 { ac_try='test -z "$ac_c_werror_flag"
22922 || test ! -s conftest.err'
22923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22924 (eval $ac_try) 2>&5
22926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22927 (exit $ac_status); }; } &&
22928 { ac_try='test -s conftest.$ac_objext'
22929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22930 (eval $ac_try) 2>&5
22932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22933 (exit $ac_status); }; }; then
22934 ac_cv_struct_tm=time.h
22936 echo "$as_me: failed program was:" >&5
22937 sed 's/^/| /' conftest.$ac_ext >&5
22939 ac_cv_struct_tm=sys/time.h
22941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22943 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
22944 echo "${ECHO_T}$ac_cv_struct_tm" >&6
22945 if test $ac_cv_struct_tm = sys/time.h; then
22947 cat >>confdefs.h <<\_ACEOF
22948 #define TM_IN_SYS_TIME 1
22953 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22954 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
22955 if test "${ac_cv_c_const+set}" = set; then
22956 echo $ECHO_N "(cached) $ECHO_C" >&6
22958 cat >conftest.$ac_ext <<_ACEOF
22961 cat confdefs.h >>conftest.$ac_ext
22962 cat >>conftest.$ac_ext <<_ACEOF
22963 /* end confdefs.h. */
22968 /* FIXME: Include the comments suggested by Paul. */
22969 #ifndef __cplusplus
22970 /* Ultrix mips cc rejects this. */
22971 typedef int charset[2];
22973 /* SunOS 4.1.1 cc rejects this. */
22974 char const *const *ccp;
22976 /* NEC SVR4.0.2 mips cc rejects this. */
22977 struct point {int x, y;};
22978 static struct point const zero = {0,0};
22979 /* AIX XL C 1.02.0.0 rejects this.
22980 It does not let you subtract one const X* pointer from another in
22981 an arm of an if-expression whose if-part is not a constant
22983 const char *g = "string";
22984 ccp = &g + (g ? g-g : 0);
22985 /* HPUX 7.0 cc rejects these. */
22988 ccp = (char const *const *) p;
22989 { /* SCO 3.2v4 cc rejects this. */
22991 char const *s = 0 ? (char *) 0 : (char const *) 0;
22995 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22996 int x[] = {25, 17};
22997 const int *foo = &x[0];
23000 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23001 typedef const int *iptr;
23005 { /* AIX XL C 1.02.0.0 rejects this saying
23006 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23007 struct s { int j; const int *ap[3]; };
23008 struct s *b; b->j = 5;
23010 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23011 const int foo = 10;
23019 rm -f conftest.$ac_objext
23020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23021 (eval $ac_compile) 2>conftest.er1
23023 grep -v '^ *+' conftest.er1 >conftest.err
23025 cat conftest.err >&5
23026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23027 (exit $ac_status); } &&
23028 { ac_try='test -z "$ac_c_werror_flag"
23029 || test ! -s conftest.err'
23030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23031 (eval $ac_try) 2>&5
23033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23034 (exit $ac_status); }; } &&
23035 { ac_try='test -s conftest.$ac_objext'
23036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23037 (eval $ac_try) 2>&5
23039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23040 (exit $ac_status); }; }; then
23043 echo "$as_me: failed program was:" >&5
23044 sed 's/^/| /' conftest.$ac_ext >&5
23048 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23050 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23051 echo "${ECHO_T}$ac_cv_c_const" >&6
23052 if test $ac_cv_c_const = no; then
23054 cat >>confdefs.h <<\_ACEOF
23062 echo "$as_me:$LINENO: checking for char" >&5
23063 echo $ECHO_N "checking for char... $ECHO_C" >&6
23064 if test "${ac_cv_type_char+set}" = set; then
23065 echo $ECHO_N "(cached) $ECHO_C" >&6
23067 cat >conftest.$ac_ext <<_ACEOF
23070 cat confdefs.h >>conftest.$ac_ext
23071 cat >>conftest.$ac_ext <<_ACEOF
23072 /* end confdefs.h. */
23073 $ac_includes_default
23085 rm -f conftest.$ac_objext
23086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23087 (eval $ac_compile) 2>conftest.er1
23089 grep -v '^ *+' conftest.er1 >conftest.err
23091 cat conftest.err >&5
23092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23093 (exit $ac_status); } &&
23094 { ac_try='test -z "$ac_c_werror_flag"
23095 || test ! -s conftest.err'
23096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23097 (eval $ac_try) 2>&5
23099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23100 (exit $ac_status); }; } &&
23101 { ac_try='test -s conftest.$ac_objext'
23102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23103 (eval $ac_try) 2>&5
23105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23106 (exit $ac_status); }; }; then
23107 ac_cv_type_char=yes
23109 echo "$as_me: failed program was:" >&5
23110 sed 's/^/| /' conftest.$ac_ext >&5
23114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23116 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
23117 echo "${ECHO_T}$ac_cv_type_char" >&6
23119 echo "$as_me:$LINENO: checking size of char" >&5
23120 echo $ECHO_N "checking size of char... $ECHO_C" >&6
23121 if test "${ac_cv_sizeof_char+set}" = set; then
23122 echo $ECHO_N "(cached) $ECHO_C" >&6
23124 if test "$ac_cv_type_char" = yes; then
23125 # The cast to unsigned long works around a bug in the HP C Compiler
23126 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23127 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23128 # This bug is HP SR number 8606223364.
23129 if test "$cross_compiling" = yes; then
23130 # Depending upon the size, compute the lo and hi bounds.
23131 cat >conftest.$ac_ext <<_ACEOF
23134 cat confdefs.h >>conftest.$ac_ext
23135 cat >>conftest.$ac_ext <<_ACEOF
23136 /* end confdefs.h. */
23137 $ac_includes_default
23141 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
23148 rm -f conftest.$ac_objext
23149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23150 (eval $ac_compile) 2>conftest.er1
23152 grep -v '^ *+' conftest.er1 >conftest.err
23154 cat conftest.err >&5
23155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23156 (exit $ac_status); } &&
23157 { ac_try='test -z "$ac_c_werror_flag"
23158 || test ! -s conftest.err'
23159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23160 (eval $ac_try) 2>&5
23162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23163 (exit $ac_status); }; } &&
23164 { ac_try='test -s conftest.$ac_objext'
23165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23166 (eval $ac_try) 2>&5
23168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23169 (exit $ac_status); }; }; then
23172 cat >conftest.$ac_ext <<_ACEOF
23175 cat confdefs.h >>conftest.$ac_ext
23176 cat >>conftest.$ac_ext <<_ACEOF
23177 /* end confdefs.h. */
23178 $ac_includes_default
23182 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
23189 rm -f conftest.$ac_objext
23190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23191 (eval $ac_compile) 2>conftest.er1
23193 grep -v '^ *+' conftest.er1 >conftest.err
23195 cat conftest.err >&5
23196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23197 (exit $ac_status); } &&
23198 { ac_try='test -z "$ac_c_werror_flag"
23199 || test ! -s conftest.err'
23200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23201 (eval $ac_try) 2>&5
23203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23204 (exit $ac_status); }; } &&
23205 { ac_try='test -s conftest.$ac_objext'
23206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23207 (eval $ac_try) 2>&5
23209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23210 (exit $ac_status); }; }; then
23211 ac_hi=$ac_mid; break
23213 echo "$as_me: failed program was:" >&5
23214 sed 's/^/| /' conftest.$ac_ext >&5
23216 ac_lo=`expr $ac_mid + 1`
23217 if test $ac_lo -le $ac_mid; then
23221 ac_mid=`expr 2 '*' $ac_mid + 1`
23223 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23226 echo "$as_me: failed program was:" >&5
23227 sed 's/^/| /' conftest.$ac_ext >&5
23229 cat >conftest.$ac_ext <<_ACEOF
23232 cat confdefs.h >>conftest.$ac_ext
23233 cat >>conftest.$ac_ext <<_ACEOF
23234 /* end confdefs.h. */
23235 $ac_includes_default
23239 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
23246 rm -f conftest.$ac_objext
23247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23248 (eval $ac_compile) 2>conftest.er1
23250 grep -v '^ *+' conftest.er1 >conftest.err
23252 cat conftest.err >&5
23253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23254 (exit $ac_status); } &&
23255 { ac_try='test -z "$ac_c_werror_flag"
23256 || test ! -s conftest.err'
23257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23258 (eval $ac_try) 2>&5
23260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23261 (exit $ac_status); }; } &&
23262 { ac_try='test -s conftest.$ac_objext'
23263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23264 (eval $ac_try) 2>&5
23266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23267 (exit $ac_status); }; }; then
23270 cat >conftest.$ac_ext <<_ACEOF
23273 cat confdefs.h >>conftest.$ac_ext
23274 cat >>conftest.$ac_ext <<_ACEOF
23275 /* end confdefs.h. */
23276 $ac_includes_default
23280 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
23287 rm -f conftest.$ac_objext
23288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23289 (eval $ac_compile) 2>conftest.er1
23291 grep -v '^ *+' conftest.er1 >conftest.err
23293 cat conftest.err >&5
23294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23295 (exit $ac_status); } &&
23296 { ac_try='test -z "$ac_c_werror_flag"
23297 || test ! -s conftest.err'
23298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23299 (eval $ac_try) 2>&5
23301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23302 (exit $ac_status); }; } &&
23303 { ac_try='test -s conftest.$ac_objext'
23304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23305 (eval $ac_try) 2>&5
23307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23308 (exit $ac_status); }; }; then
23309 ac_lo=$ac_mid; break
23311 echo "$as_me: failed program was:" >&5
23312 sed 's/^/| /' conftest.$ac_ext >&5
23314 ac_hi=`expr '(' $ac_mid ')' - 1`
23315 if test $ac_mid -le $ac_hi; then
23319 ac_mid=`expr 2 '*' $ac_mid`
23321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23324 echo "$as_me: failed program was:" >&5
23325 sed 's/^/| /' conftest.$ac_ext >&5
23329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23331 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23332 # Binary search between lo and hi bounds.
23333 while test "x$ac_lo" != "x$ac_hi"; do
23334 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23335 cat >conftest.$ac_ext <<_ACEOF
23338 cat confdefs.h >>conftest.$ac_ext
23339 cat >>conftest.$ac_ext <<_ACEOF
23340 /* end confdefs.h. */
23341 $ac_includes_default
23345 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
23352 rm -f conftest.$ac_objext
23353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23354 (eval $ac_compile) 2>conftest.er1
23356 grep -v '^ *+' conftest.er1 >conftest.err
23358 cat conftest.err >&5
23359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23360 (exit $ac_status); } &&
23361 { ac_try='test -z "$ac_c_werror_flag"
23362 || test ! -s conftest.err'
23363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23364 (eval $ac_try) 2>&5
23366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23367 (exit $ac_status); }; } &&
23368 { ac_try='test -s conftest.$ac_objext'
23369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23370 (eval $ac_try) 2>&5
23372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23373 (exit $ac_status); }; }; then
23376 echo "$as_me: failed program was:" >&5
23377 sed 's/^/| /' conftest.$ac_ext >&5
23379 ac_lo=`expr '(' $ac_mid ')' + 1`
23381 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23384 ?*) ac_cv_sizeof_char=$ac_lo;;
23385 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
23386 See \`config.log' for more details." >&5
23387 echo "$as_me: error: cannot compute sizeof (char), 77
23388 See \`config.log' for more details." >&2;}
23389 { (exit 1); exit 1; }; } ;;
23392 if test "$cross_compiling" = yes; then
23393 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23394 See \`config.log' for more details." >&5
23395 echo "$as_me: error: cannot run test program while cross compiling
23396 See \`config.log' for more details." >&2;}
23397 { (exit 1); exit 1; }; }
23399 cat >conftest.$ac_ext <<_ACEOF
23402 cat confdefs.h >>conftest.$ac_ext
23403 cat >>conftest.$ac_ext <<_ACEOF
23404 /* end confdefs.h. */
23405 $ac_includes_default
23406 long longval () { return (long) (sizeof (char)); }
23407 unsigned long ulongval () { return (long) (sizeof (char)); }
23409 #include <stdlib.h>
23414 FILE *f = fopen ("conftest.val", "w");
23417 if (((long) (sizeof (char))) < 0)
23419 long i = longval ();
23420 if (i != ((long) (sizeof (char))))
23422 fprintf (f, "%ld\n", i);
23426 unsigned long i = ulongval ();
23427 if (i != ((long) (sizeof (char))))
23429 fprintf (f, "%lu\n", i);
23431 exit (ferror (f) || fclose (f) != 0);
23437 rm -f conftest$ac_exeext
23438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23439 (eval $ac_link) 2>&5
23441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23442 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23444 (eval $ac_try) 2>&5
23446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23447 (exit $ac_status); }; }; then
23448 ac_cv_sizeof_char=`cat conftest.val`
23450 echo "$as_me: program exited with status $ac_status" >&5
23451 echo "$as_me: failed program was:" >&5
23452 sed 's/^/| /' conftest.$ac_ext >&5
23454 ( exit $ac_status )
23455 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
23456 See \`config.log' for more details." >&5
23457 echo "$as_me: error: cannot compute sizeof (char), 77
23458 See \`config.log' for more details." >&2;}
23459 { (exit 1); exit 1; }; }
23461 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23466 ac_cv_sizeof_char=0
23469 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
23470 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
23471 cat >>confdefs.h <<_ACEOF
23472 #define SIZEOF_CHAR $ac_cv_sizeof_char
23476 echo "$as_me:$LINENO: checking for short int" >&5
23477 echo $ECHO_N "checking for short int... $ECHO_C" >&6
23478 if test "${ac_cv_type_short_int+set}" = set; then
23479 echo $ECHO_N "(cached) $ECHO_C" >&6
23481 cat >conftest.$ac_ext <<_ACEOF
23484 cat confdefs.h >>conftest.$ac_ext
23485 cat >>conftest.$ac_ext <<_ACEOF
23486 /* end confdefs.h. */
23487 $ac_includes_default
23491 if ((short int *) 0)
23493 if (sizeof (short int))
23499 rm -f conftest.$ac_objext
23500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23501 (eval $ac_compile) 2>conftest.er1
23503 grep -v '^ *+' conftest.er1 >conftest.err
23505 cat conftest.err >&5
23506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23507 (exit $ac_status); } &&
23508 { ac_try='test -z "$ac_c_werror_flag"
23509 || test ! -s conftest.err'
23510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23511 (eval $ac_try) 2>&5
23513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23514 (exit $ac_status); }; } &&
23515 { ac_try='test -s conftest.$ac_objext'
23516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23517 (eval $ac_try) 2>&5
23519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23520 (exit $ac_status); }; }; then
23521 ac_cv_type_short_int=yes
23523 echo "$as_me: failed program was:" >&5
23524 sed 's/^/| /' conftest.$ac_ext >&5
23526 ac_cv_type_short_int=no
23528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23530 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
23531 echo "${ECHO_T}$ac_cv_type_short_int" >&6
23533 echo "$as_me:$LINENO: checking size of short int" >&5
23534 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
23535 if test "${ac_cv_sizeof_short_int+set}" = set; then
23536 echo $ECHO_N "(cached) $ECHO_C" >&6
23538 if test "$ac_cv_type_short_int" = yes; then
23539 # The cast to unsigned long works around a bug in the HP C Compiler
23540 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23541 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23542 # This bug is HP SR number 8606223364.
23543 if test "$cross_compiling" = yes; then
23544 # Depending upon the size, compute the lo and hi bounds.
23545 cat >conftest.$ac_ext <<_ACEOF
23548 cat confdefs.h >>conftest.$ac_ext
23549 cat >>conftest.$ac_ext <<_ACEOF
23550 /* end confdefs.h. */
23551 $ac_includes_default
23555 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
23562 rm -f conftest.$ac_objext
23563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23564 (eval $ac_compile) 2>conftest.er1
23566 grep -v '^ *+' conftest.er1 >conftest.err
23568 cat conftest.err >&5
23569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23570 (exit $ac_status); } &&
23571 { ac_try='test -z "$ac_c_werror_flag"
23572 || test ! -s conftest.err'
23573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23574 (eval $ac_try) 2>&5
23576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23577 (exit $ac_status); }; } &&
23578 { ac_try='test -s conftest.$ac_objext'
23579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23580 (eval $ac_try) 2>&5
23582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23583 (exit $ac_status); }; }; then
23586 cat >conftest.$ac_ext <<_ACEOF
23589 cat confdefs.h >>conftest.$ac_ext
23590 cat >>conftest.$ac_ext <<_ACEOF
23591 /* end confdefs.h. */
23592 $ac_includes_default
23596 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
23603 rm -f conftest.$ac_objext
23604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23605 (eval $ac_compile) 2>conftest.er1
23607 grep -v '^ *+' conftest.er1 >conftest.err
23609 cat conftest.err >&5
23610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23611 (exit $ac_status); } &&
23612 { ac_try='test -z "$ac_c_werror_flag"
23613 || test ! -s conftest.err'
23614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23615 (eval $ac_try) 2>&5
23617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23618 (exit $ac_status); }; } &&
23619 { ac_try='test -s conftest.$ac_objext'
23620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23621 (eval $ac_try) 2>&5
23623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23624 (exit $ac_status); }; }; then
23625 ac_hi=$ac_mid; break
23627 echo "$as_me: failed program was:" >&5
23628 sed 's/^/| /' conftest.$ac_ext >&5
23630 ac_lo=`expr $ac_mid + 1`
23631 if test $ac_lo -le $ac_mid; then
23635 ac_mid=`expr 2 '*' $ac_mid + 1`
23637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23640 echo "$as_me: failed program was:" >&5
23641 sed 's/^/| /' conftest.$ac_ext >&5
23643 cat >conftest.$ac_ext <<_ACEOF
23646 cat confdefs.h >>conftest.$ac_ext
23647 cat >>conftest.$ac_ext <<_ACEOF
23648 /* end confdefs.h. */
23649 $ac_includes_default
23653 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
23660 rm -f conftest.$ac_objext
23661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23662 (eval $ac_compile) 2>conftest.er1
23664 grep -v '^ *+' conftest.er1 >conftest.err
23666 cat conftest.err >&5
23667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23668 (exit $ac_status); } &&
23669 { ac_try='test -z "$ac_c_werror_flag"
23670 || test ! -s conftest.err'
23671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23672 (eval $ac_try) 2>&5
23674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23675 (exit $ac_status); }; } &&
23676 { ac_try='test -s conftest.$ac_objext'
23677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23678 (eval $ac_try) 2>&5
23680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23681 (exit $ac_status); }; }; then
23684 cat >conftest.$ac_ext <<_ACEOF
23687 cat confdefs.h >>conftest.$ac_ext
23688 cat >>conftest.$ac_ext <<_ACEOF
23689 /* end confdefs.h. */
23690 $ac_includes_default
23694 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
23701 rm -f conftest.$ac_objext
23702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23703 (eval $ac_compile) 2>conftest.er1
23705 grep -v '^ *+' conftest.er1 >conftest.err
23707 cat conftest.err >&5
23708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23709 (exit $ac_status); } &&
23710 { ac_try='test -z "$ac_c_werror_flag"
23711 || test ! -s conftest.err'
23712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23713 (eval $ac_try) 2>&5
23715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23716 (exit $ac_status); }; } &&
23717 { ac_try='test -s conftest.$ac_objext'
23718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23719 (eval $ac_try) 2>&5
23721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23722 (exit $ac_status); }; }; then
23723 ac_lo=$ac_mid; break
23725 echo "$as_me: failed program was:" >&5
23726 sed 's/^/| /' conftest.$ac_ext >&5
23728 ac_hi=`expr '(' $ac_mid ')' - 1`
23729 if test $ac_mid -le $ac_hi; then
23733 ac_mid=`expr 2 '*' $ac_mid`
23735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23738 echo "$as_me: failed program was:" >&5
23739 sed 's/^/| /' conftest.$ac_ext >&5
23743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23746 # Binary search between lo and hi bounds.
23747 while test "x$ac_lo" != "x$ac_hi"; do
23748 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23749 cat >conftest.$ac_ext <<_ACEOF
23752 cat confdefs.h >>conftest.$ac_ext
23753 cat >>conftest.$ac_ext <<_ACEOF
23754 /* end confdefs.h. */
23755 $ac_includes_default
23759 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
23766 rm -f conftest.$ac_objext
23767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23768 (eval $ac_compile) 2>conftest.er1
23770 grep -v '^ *+' conftest.er1 >conftest.err
23772 cat conftest.err >&5
23773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23774 (exit $ac_status); } &&
23775 { ac_try='test -z "$ac_c_werror_flag"
23776 || test ! -s conftest.err'
23777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23778 (eval $ac_try) 2>&5
23780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23781 (exit $ac_status); }; } &&
23782 { ac_try='test -s conftest.$ac_objext'
23783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23784 (eval $ac_try) 2>&5
23786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23787 (exit $ac_status); }; }; then
23790 echo "$as_me: failed program was:" >&5
23791 sed 's/^/| /' conftest.$ac_ext >&5
23793 ac_lo=`expr '(' $ac_mid ')' + 1`
23795 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23798 ?*) ac_cv_sizeof_short_int=$ac_lo;;
23799 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
23800 See \`config.log' for more details." >&5
23801 echo "$as_me: error: cannot compute sizeof (short int), 77
23802 See \`config.log' for more details." >&2;}
23803 { (exit 1); exit 1; }; } ;;
23806 if test "$cross_compiling" = yes; then
23807 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23808 See \`config.log' for more details." >&5
23809 echo "$as_me: error: cannot run test program while cross compiling
23810 See \`config.log' for more details." >&2;}
23811 { (exit 1); exit 1; }; }
23813 cat >conftest.$ac_ext <<_ACEOF
23816 cat confdefs.h >>conftest.$ac_ext
23817 cat >>conftest.$ac_ext <<_ACEOF
23818 /* end confdefs.h. */
23819 $ac_includes_default
23820 long longval () { return (long) (sizeof (short int)); }
23821 unsigned long ulongval () { return (long) (sizeof (short int)); }
23823 #include <stdlib.h>
23828 FILE *f = fopen ("conftest.val", "w");
23831 if (((long) (sizeof (short int))) < 0)
23833 long i = longval ();
23834 if (i != ((long) (sizeof (short int))))
23836 fprintf (f, "%ld\n", i);
23840 unsigned long i = ulongval ();
23841 if (i != ((long) (sizeof (short int))))
23843 fprintf (f, "%lu\n", i);
23845 exit (ferror (f) || fclose (f) != 0);
23851 rm -f conftest$ac_exeext
23852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23853 (eval $ac_link) 2>&5
23855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23856 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23858 (eval $ac_try) 2>&5
23860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23861 (exit $ac_status); }; }; then
23862 ac_cv_sizeof_short_int=`cat conftest.val`
23864 echo "$as_me: program exited with status $ac_status" >&5
23865 echo "$as_me: failed program was:" >&5
23866 sed 's/^/| /' conftest.$ac_ext >&5
23868 ( exit $ac_status )
23869 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
23870 See \`config.log' for more details." >&5
23871 echo "$as_me: error: cannot compute sizeof (short int), 77
23872 See \`config.log' for more details." >&2;}
23873 { (exit 1); exit 1; }; }
23875 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23880 ac_cv_sizeof_short_int=0
23883 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
23884 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
23885 cat >>confdefs.h <<_ACEOF
23886 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
23890 echo "$as_me:$LINENO: checking for int" >&5
23891 echo $ECHO_N "checking for int... $ECHO_C" >&6
23892 if test "${ac_cv_type_int+set}" = set; then
23893 echo $ECHO_N "(cached) $ECHO_C" >&6
23895 cat >conftest.$ac_ext <<_ACEOF
23898 cat confdefs.h >>conftest.$ac_ext
23899 cat >>conftest.$ac_ext <<_ACEOF
23900 /* end confdefs.h. */
23901 $ac_includes_default
23913 rm -f conftest.$ac_objext
23914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23915 (eval $ac_compile) 2>conftest.er1
23917 grep -v '^ *+' conftest.er1 >conftest.err
23919 cat conftest.err >&5
23920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23921 (exit $ac_status); } &&
23922 { ac_try='test -z "$ac_c_werror_flag"
23923 || test ! -s conftest.err'
23924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23925 (eval $ac_try) 2>&5
23927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23928 (exit $ac_status); }; } &&
23929 { ac_try='test -s conftest.$ac_objext'
23930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23931 (eval $ac_try) 2>&5
23933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23934 (exit $ac_status); }; }; then
23937 echo "$as_me: failed program was:" >&5
23938 sed 's/^/| /' conftest.$ac_ext >&5
23942 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23944 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
23945 echo "${ECHO_T}$ac_cv_type_int" >&6
23947 echo "$as_me:$LINENO: checking size of int" >&5
23948 echo $ECHO_N "checking size of int... $ECHO_C" >&6
23949 if test "${ac_cv_sizeof_int+set}" = set; then
23950 echo $ECHO_N "(cached) $ECHO_C" >&6
23952 if test "$ac_cv_type_int" = yes; then
23953 # The cast to unsigned long works around a bug in the HP C Compiler
23954 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23955 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23956 # This bug is HP SR number 8606223364.
23957 if test "$cross_compiling" = yes; then
23958 # Depending upon the size, compute the lo and hi bounds.
23959 cat >conftest.$ac_ext <<_ACEOF
23962 cat confdefs.h >>conftest.$ac_ext
23963 cat >>conftest.$ac_ext <<_ACEOF
23964 /* end confdefs.h. */
23965 $ac_includes_default
23969 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
23976 rm -f conftest.$ac_objext
23977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23978 (eval $ac_compile) 2>conftest.er1
23980 grep -v '^ *+' conftest.er1 >conftest.err
23982 cat conftest.err >&5
23983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23984 (exit $ac_status); } &&
23985 { ac_try='test -z "$ac_c_werror_flag"
23986 || test ! -s conftest.err'
23987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23988 (eval $ac_try) 2>&5
23990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23991 (exit $ac_status); }; } &&
23992 { ac_try='test -s conftest.$ac_objext'
23993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23994 (eval $ac_try) 2>&5
23996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23997 (exit $ac_status); }; }; then
24000 cat >conftest.$ac_ext <<_ACEOF
24003 cat confdefs.h >>conftest.$ac_ext
24004 cat >>conftest.$ac_ext <<_ACEOF
24005 /* end confdefs.h. */
24006 $ac_includes_default
24010 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
24017 rm -f conftest.$ac_objext
24018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24019 (eval $ac_compile) 2>conftest.er1
24021 grep -v '^ *+' conftest.er1 >conftest.err
24023 cat conftest.err >&5
24024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24025 (exit $ac_status); } &&
24026 { ac_try='test -z "$ac_c_werror_flag"
24027 || test ! -s conftest.err'
24028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24029 (eval $ac_try) 2>&5
24031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24032 (exit $ac_status); }; } &&
24033 { ac_try='test -s conftest.$ac_objext'
24034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24035 (eval $ac_try) 2>&5
24037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24038 (exit $ac_status); }; }; then
24039 ac_hi=$ac_mid; break
24041 echo "$as_me: failed program was:" >&5
24042 sed 's/^/| /' conftest.$ac_ext >&5
24044 ac_lo=`expr $ac_mid + 1`
24045 if test $ac_lo -le $ac_mid; then
24049 ac_mid=`expr 2 '*' $ac_mid + 1`
24051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24054 echo "$as_me: failed program was:" >&5
24055 sed 's/^/| /' conftest.$ac_ext >&5
24057 cat >conftest.$ac_ext <<_ACEOF
24060 cat confdefs.h >>conftest.$ac_ext
24061 cat >>conftest.$ac_ext <<_ACEOF
24062 /* end confdefs.h. */
24063 $ac_includes_default
24067 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
24074 rm -f conftest.$ac_objext
24075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24076 (eval $ac_compile) 2>conftest.er1
24078 grep -v '^ *+' conftest.er1 >conftest.err
24080 cat conftest.err >&5
24081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24082 (exit $ac_status); } &&
24083 { ac_try='test -z "$ac_c_werror_flag"
24084 || test ! -s conftest.err'
24085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24086 (eval $ac_try) 2>&5
24088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24089 (exit $ac_status); }; } &&
24090 { ac_try='test -s conftest.$ac_objext'
24091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24092 (eval $ac_try) 2>&5
24094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24095 (exit $ac_status); }; }; then
24098 cat >conftest.$ac_ext <<_ACEOF
24101 cat confdefs.h >>conftest.$ac_ext
24102 cat >>conftest.$ac_ext <<_ACEOF
24103 /* end confdefs.h. */
24104 $ac_includes_default
24108 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
24115 rm -f conftest.$ac_objext
24116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24117 (eval $ac_compile) 2>conftest.er1
24119 grep -v '^ *+' conftest.er1 >conftest.err
24121 cat conftest.err >&5
24122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24123 (exit $ac_status); } &&
24124 { ac_try='test -z "$ac_c_werror_flag"
24125 || test ! -s conftest.err'
24126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24127 (eval $ac_try) 2>&5
24129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24130 (exit $ac_status); }; } &&
24131 { ac_try='test -s conftest.$ac_objext'
24132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24133 (eval $ac_try) 2>&5
24135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24136 (exit $ac_status); }; }; then
24137 ac_lo=$ac_mid; break
24139 echo "$as_me: failed program was:" >&5
24140 sed 's/^/| /' conftest.$ac_ext >&5
24142 ac_hi=`expr '(' $ac_mid ')' - 1`
24143 if test $ac_mid -le $ac_hi; then
24147 ac_mid=`expr 2 '*' $ac_mid`
24149 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24152 echo "$as_me: failed program was:" >&5
24153 sed 's/^/| /' conftest.$ac_ext >&5
24157 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24160 # Binary search between lo and hi bounds.
24161 while test "x$ac_lo" != "x$ac_hi"; do
24162 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24163 cat >conftest.$ac_ext <<_ACEOF
24166 cat confdefs.h >>conftest.$ac_ext
24167 cat >>conftest.$ac_ext <<_ACEOF
24168 /* end confdefs.h. */
24169 $ac_includes_default
24173 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
24180 rm -f conftest.$ac_objext
24181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24182 (eval $ac_compile) 2>conftest.er1
24184 grep -v '^ *+' conftest.er1 >conftest.err
24186 cat conftest.err >&5
24187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24188 (exit $ac_status); } &&
24189 { ac_try='test -z "$ac_c_werror_flag"
24190 || test ! -s conftest.err'
24191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24192 (eval $ac_try) 2>&5
24194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24195 (exit $ac_status); }; } &&
24196 { ac_try='test -s conftest.$ac_objext'
24197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24198 (eval $ac_try) 2>&5
24200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24201 (exit $ac_status); }; }; then
24204 echo "$as_me: failed program was:" >&5
24205 sed 's/^/| /' conftest.$ac_ext >&5
24207 ac_lo=`expr '(' $ac_mid ')' + 1`
24209 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24212 ?*) ac_cv_sizeof_int=$ac_lo;;
24213 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
24214 See \`config.log' for more details." >&5
24215 echo "$as_me: error: cannot compute sizeof (int), 77
24216 See \`config.log' for more details." >&2;}
24217 { (exit 1); exit 1; }; } ;;
24220 if test "$cross_compiling" = yes; then
24221 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24222 See \`config.log' for more details." >&5
24223 echo "$as_me: error: cannot run test program while cross compiling
24224 See \`config.log' for more details." >&2;}
24225 { (exit 1); exit 1; }; }
24227 cat >conftest.$ac_ext <<_ACEOF
24230 cat confdefs.h >>conftest.$ac_ext
24231 cat >>conftest.$ac_ext <<_ACEOF
24232 /* end confdefs.h. */
24233 $ac_includes_default
24234 long longval () { return (long) (sizeof (int)); }
24235 unsigned long ulongval () { return (long) (sizeof (int)); }
24237 #include <stdlib.h>
24242 FILE *f = fopen ("conftest.val", "w");
24245 if (((long) (sizeof (int))) < 0)
24247 long i = longval ();
24248 if (i != ((long) (sizeof (int))))
24250 fprintf (f, "%ld\n", i);
24254 unsigned long i = ulongval ();
24255 if (i != ((long) (sizeof (int))))
24257 fprintf (f, "%lu\n", i);
24259 exit (ferror (f) || fclose (f) != 0);
24265 rm -f conftest$ac_exeext
24266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24267 (eval $ac_link) 2>&5
24269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24270 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24272 (eval $ac_try) 2>&5
24274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24275 (exit $ac_status); }; }; then
24276 ac_cv_sizeof_int=`cat conftest.val`
24278 echo "$as_me: program exited with status $ac_status" >&5
24279 echo "$as_me: failed program was:" >&5
24280 sed 's/^/| /' conftest.$ac_ext >&5
24282 ( exit $ac_status )
24283 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
24284 See \`config.log' for more details." >&5
24285 echo "$as_me: error: cannot compute sizeof (int), 77
24286 See \`config.log' for more details." >&2;}
24287 { (exit 1); exit 1; }; }
24289 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24297 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
24298 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
24299 cat >>confdefs.h <<_ACEOF
24300 #define SIZEOF_INT $ac_cv_sizeof_int
24304 echo "$as_me:$LINENO: checking for long int" >&5
24305 echo $ECHO_N "checking for long int... $ECHO_C" >&6
24306 if test "${ac_cv_type_long_int+set}" = set; then
24307 echo $ECHO_N "(cached) $ECHO_C" >&6
24309 cat >conftest.$ac_ext <<_ACEOF
24312 cat confdefs.h >>conftest.$ac_ext
24313 cat >>conftest.$ac_ext <<_ACEOF
24314 /* end confdefs.h. */
24315 $ac_includes_default
24319 if ((long int *) 0)
24321 if (sizeof (long int))
24327 rm -f conftest.$ac_objext
24328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24329 (eval $ac_compile) 2>conftest.er1
24331 grep -v '^ *+' conftest.er1 >conftest.err
24333 cat conftest.err >&5
24334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24335 (exit $ac_status); } &&
24336 { ac_try='test -z "$ac_c_werror_flag"
24337 || test ! -s conftest.err'
24338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24339 (eval $ac_try) 2>&5
24341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24342 (exit $ac_status); }; } &&
24343 { ac_try='test -s conftest.$ac_objext'
24344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24345 (eval $ac_try) 2>&5
24347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24348 (exit $ac_status); }; }; then
24349 ac_cv_type_long_int=yes
24351 echo "$as_me: failed program was:" >&5
24352 sed 's/^/| /' conftest.$ac_ext >&5
24354 ac_cv_type_long_int=no
24356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24358 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
24359 echo "${ECHO_T}$ac_cv_type_long_int" >&6
24361 echo "$as_me:$LINENO: checking size of long int" >&5
24362 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
24363 if test "${ac_cv_sizeof_long_int+set}" = set; then
24364 echo $ECHO_N "(cached) $ECHO_C" >&6
24366 if test "$ac_cv_type_long_int" = yes; then
24367 # The cast to unsigned long works around a bug in the HP C Compiler
24368 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24369 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24370 # This bug is HP SR number 8606223364.
24371 if test "$cross_compiling" = yes; then
24372 # Depending upon the size, compute the lo and hi bounds.
24373 cat >conftest.$ac_ext <<_ACEOF
24376 cat confdefs.h >>conftest.$ac_ext
24377 cat >>conftest.$ac_ext <<_ACEOF
24378 /* end confdefs.h. */
24379 $ac_includes_default
24383 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
24390 rm -f conftest.$ac_objext
24391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24392 (eval $ac_compile) 2>conftest.er1
24394 grep -v '^ *+' conftest.er1 >conftest.err
24396 cat conftest.err >&5
24397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24398 (exit $ac_status); } &&
24399 { ac_try='test -z "$ac_c_werror_flag"
24400 || test ! -s conftest.err'
24401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24402 (eval $ac_try) 2>&5
24404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24405 (exit $ac_status); }; } &&
24406 { ac_try='test -s conftest.$ac_objext'
24407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24408 (eval $ac_try) 2>&5
24410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24411 (exit $ac_status); }; }; then
24414 cat >conftest.$ac_ext <<_ACEOF
24417 cat confdefs.h >>conftest.$ac_ext
24418 cat >>conftest.$ac_ext <<_ACEOF
24419 /* end confdefs.h. */
24420 $ac_includes_default
24424 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
24431 rm -f conftest.$ac_objext
24432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24433 (eval $ac_compile) 2>conftest.er1
24435 grep -v '^ *+' conftest.er1 >conftest.err
24437 cat conftest.err >&5
24438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24439 (exit $ac_status); } &&
24440 { ac_try='test -z "$ac_c_werror_flag"
24441 || test ! -s conftest.err'
24442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24443 (eval $ac_try) 2>&5
24445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24446 (exit $ac_status); }; } &&
24447 { ac_try='test -s conftest.$ac_objext'
24448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24449 (eval $ac_try) 2>&5
24451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24452 (exit $ac_status); }; }; then
24453 ac_hi=$ac_mid; break
24455 echo "$as_me: failed program was:" >&5
24456 sed 's/^/| /' conftest.$ac_ext >&5
24458 ac_lo=`expr $ac_mid + 1`
24459 if test $ac_lo -le $ac_mid; then
24463 ac_mid=`expr 2 '*' $ac_mid + 1`
24465 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24468 echo "$as_me: failed program was:" >&5
24469 sed 's/^/| /' conftest.$ac_ext >&5
24471 cat >conftest.$ac_ext <<_ACEOF
24474 cat confdefs.h >>conftest.$ac_ext
24475 cat >>conftest.$ac_ext <<_ACEOF
24476 /* end confdefs.h. */
24477 $ac_includes_default
24481 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
24488 rm -f conftest.$ac_objext
24489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24490 (eval $ac_compile) 2>conftest.er1
24492 grep -v '^ *+' conftest.er1 >conftest.err
24494 cat conftest.err >&5
24495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24496 (exit $ac_status); } &&
24497 { ac_try='test -z "$ac_c_werror_flag"
24498 || test ! -s conftest.err'
24499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24500 (eval $ac_try) 2>&5
24502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24503 (exit $ac_status); }; } &&
24504 { ac_try='test -s conftest.$ac_objext'
24505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24506 (eval $ac_try) 2>&5
24508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24509 (exit $ac_status); }; }; then
24512 cat >conftest.$ac_ext <<_ACEOF
24515 cat confdefs.h >>conftest.$ac_ext
24516 cat >>conftest.$ac_ext <<_ACEOF
24517 /* end confdefs.h. */
24518 $ac_includes_default
24522 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
24529 rm -f conftest.$ac_objext
24530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24531 (eval $ac_compile) 2>conftest.er1
24533 grep -v '^ *+' conftest.er1 >conftest.err
24535 cat conftest.err >&5
24536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24537 (exit $ac_status); } &&
24538 { ac_try='test -z "$ac_c_werror_flag"
24539 || test ! -s conftest.err'
24540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24541 (eval $ac_try) 2>&5
24543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24544 (exit $ac_status); }; } &&
24545 { ac_try='test -s conftest.$ac_objext'
24546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24547 (eval $ac_try) 2>&5
24549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24550 (exit $ac_status); }; }; then
24551 ac_lo=$ac_mid; break
24553 echo "$as_me: failed program was:" >&5
24554 sed 's/^/| /' conftest.$ac_ext >&5
24556 ac_hi=`expr '(' $ac_mid ')' - 1`
24557 if test $ac_mid -le $ac_hi; then
24561 ac_mid=`expr 2 '*' $ac_mid`
24563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24566 echo "$as_me: failed program was:" >&5
24567 sed 's/^/| /' conftest.$ac_ext >&5
24571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24574 # Binary search between lo and hi bounds.
24575 while test "x$ac_lo" != "x$ac_hi"; do
24576 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24577 cat >conftest.$ac_ext <<_ACEOF
24580 cat confdefs.h >>conftest.$ac_ext
24581 cat >>conftest.$ac_ext <<_ACEOF
24582 /* end confdefs.h. */
24583 $ac_includes_default
24587 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
24594 rm -f conftest.$ac_objext
24595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24596 (eval $ac_compile) 2>conftest.er1
24598 grep -v '^ *+' conftest.er1 >conftest.err
24600 cat conftest.err >&5
24601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24602 (exit $ac_status); } &&
24603 { ac_try='test -z "$ac_c_werror_flag"
24604 || test ! -s conftest.err'
24605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24606 (eval $ac_try) 2>&5
24608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24609 (exit $ac_status); }; } &&
24610 { ac_try='test -s conftest.$ac_objext'
24611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24612 (eval $ac_try) 2>&5
24614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24615 (exit $ac_status); }; }; then
24618 echo "$as_me: failed program was:" >&5
24619 sed 's/^/| /' conftest.$ac_ext >&5
24621 ac_lo=`expr '(' $ac_mid ')' + 1`
24623 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24626 ?*) ac_cv_sizeof_long_int=$ac_lo;;
24627 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
24628 See \`config.log' for more details." >&5
24629 echo "$as_me: error: cannot compute sizeof (long int), 77
24630 See \`config.log' for more details." >&2;}
24631 { (exit 1); exit 1; }; } ;;
24634 if test "$cross_compiling" = yes; then
24635 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24636 See \`config.log' for more details." >&5
24637 echo "$as_me: error: cannot run test program while cross compiling
24638 See \`config.log' for more details." >&2;}
24639 { (exit 1); exit 1; }; }
24641 cat >conftest.$ac_ext <<_ACEOF
24644 cat confdefs.h >>conftest.$ac_ext
24645 cat >>conftest.$ac_ext <<_ACEOF
24646 /* end confdefs.h. */
24647 $ac_includes_default
24648 long longval () { return (long) (sizeof (long int)); }
24649 unsigned long ulongval () { return (long) (sizeof (long int)); }
24651 #include <stdlib.h>
24656 FILE *f = fopen ("conftest.val", "w");
24659 if (((long) (sizeof (long int))) < 0)
24661 long i = longval ();
24662 if (i != ((long) (sizeof (long int))))
24664 fprintf (f, "%ld\n", i);
24668 unsigned long i = ulongval ();
24669 if (i != ((long) (sizeof (long int))))
24671 fprintf (f, "%lu\n", i);
24673 exit (ferror (f) || fclose (f) != 0);
24679 rm -f conftest$ac_exeext
24680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24681 (eval $ac_link) 2>&5
24683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24684 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24686 (eval $ac_try) 2>&5
24688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24689 (exit $ac_status); }; }; then
24690 ac_cv_sizeof_long_int=`cat conftest.val`
24692 echo "$as_me: program exited with status $ac_status" >&5
24693 echo "$as_me: failed program was:" >&5
24694 sed 's/^/| /' conftest.$ac_ext >&5
24696 ( exit $ac_status )
24697 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
24698 See \`config.log' for more details." >&5
24699 echo "$as_me: error: cannot compute sizeof (long int), 77
24700 See \`config.log' for more details." >&2;}
24701 { (exit 1); exit 1; }; }
24703 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24708 ac_cv_sizeof_long_int=0
24711 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
24712 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
24713 cat >>confdefs.h <<_ACEOF
24714 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
24718 echo "$as_me:$LINENO: checking for long long int" >&5
24719 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
24720 if test "${ac_cv_type_long_long_int+set}" = set; then
24721 echo $ECHO_N "(cached) $ECHO_C" >&6
24723 cat >conftest.$ac_ext <<_ACEOF
24726 cat confdefs.h >>conftest.$ac_ext
24727 cat >>conftest.$ac_ext <<_ACEOF
24728 /* end confdefs.h. */
24729 $ac_includes_default
24733 if ((long long int *) 0)
24735 if (sizeof (long long int))
24741 rm -f conftest.$ac_objext
24742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24743 (eval $ac_compile) 2>conftest.er1
24745 grep -v '^ *+' conftest.er1 >conftest.err
24747 cat conftest.err >&5
24748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24749 (exit $ac_status); } &&
24750 { ac_try='test -z "$ac_c_werror_flag"
24751 || test ! -s conftest.err'
24752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24753 (eval $ac_try) 2>&5
24755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24756 (exit $ac_status); }; } &&
24757 { ac_try='test -s conftest.$ac_objext'
24758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24759 (eval $ac_try) 2>&5
24761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24762 (exit $ac_status); }; }; then
24763 ac_cv_type_long_long_int=yes
24765 echo "$as_me: failed program was:" >&5
24766 sed 's/^/| /' conftest.$ac_ext >&5
24768 ac_cv_type_long_long_int=no
24770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24772 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
24773 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
24775 echo "$as_me:$LINENO: checking size of long long int" >&5
24776 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
24777 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
24778 echo $ECHO_N "(cached) $ECHO_C" >&6
24780 if test "$ac_cv_type_long_long_int" = yes; then
24781 # The cast to unsigned long works around a bug in the HP C Compiler
24782 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24783 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24784 # This bug is HP SR number 8606223364.
24785 if test "$cross_compiling" = yes; then
24786 # Depending upon the size, compute the lo and hi bounds.
24787 cat >conftest.$ac_ext <<_ACEOF
24790 cat confdefs.h >>conftest.$ac_ext
24791 cat >>conftest.$ac_ext <<_ACEOF
24792 /* end confdefs.h. */
24793 $ac_includes_default
24797 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
24804 rm -f conftest.$ac_objext
24805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24806 (eval $ac_compile) 2>conftest.er1
24808 grep -v '^ *+' conftest.er1 >conftest.err
24810 cat conftest.err >&5
24811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24812 (exit $ac_status); } &&
24813 { ac_try='test -z "$ac_c_werror_flag"
24814 || test ! -s conftest.err'
24815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24816 (eval $ac_try) 2>&5
24818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24819 (exit $ac_status); }; } &&
24820 { ac_try='test -s conftest.$ac_objext'
24821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24822 (eval $ac_try) 2>&5
24824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24825 (exit $ac_status); }; }; then
24828 cat >conftest.$ac_ext <<_ACEOF
24831 cat confdefs.h >>conftest.$ac_ext
24832 cat >>conftest.$ac_ext <<_ACEOF
24833 /* end confdefs.h. */
24834 $ac_includes_default
24838 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
24845 rm -f conftest.$ac_objext
24846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24847 (eval $ac_compile) 2>conftest.er1
24849 grep -v '^ *+' conftest.er1 >conftest.err
24851 cat conftest.err >&5
24852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24853 (exit $ac_status); } &&
24854 { ac_try='test -z "$ac_c_werror_flag"
24855 || test ! -s conftest.err'
24856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24857 (eval $ac_try) 2>&5
24859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24860 (exit $ac_status); }; } &&
24861 { ac_try='test -s conftest.$ac_objext'
24862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24863 (eval $ac_try) 2>&5
24865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24866 (exit $ac_status); }; }; then
24867 ac_hi=$ac_mid; break
24869 echo "$as_me: failed program was:" >&5
24870 sed 's/^/| /' conftest.$ac_ext >&5
24872 ac_lo=`expr $ac_mid + 1`
24873 if test $ac_lo -le $ac_mid; then
24877 ac_mid=`expr 2 '*' $ac_mid + 1`
24879 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24882 echo "$as_me: failed program was:" >&5
24883 sed 's/^/| /' conftest.$ac_ext >&5
24885 cat >conftest.$ac_ext <<_ACEOF
24888 cat confdefs.h >>conftest.$ac_ext
24889 cat >>conftest.$ac_ext <<_ACEOF
24890 /* end confdefs.h. */
24891 $ac_includes_default
24895 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
24902 rm -f conftest.$ac_objext
24903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24904 (eval $ac_compile) 2>conftest.er1
24906 grep -v '^ *+' conftest.er1 >conftest.err
24908 cat conftest.err >&5
24909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24910 (exit $ac_status); } &&
24911 { ac_try='test -z "$ac_c_werror_flag"
24912 || test ! -s conftest.err'
24913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24914 (eval $ac_try) 2>&5
24916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24917 (exit $ac_status); }; } &&
24918 { ac_try='test -s conftest.$ac_objext'
24919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24920 (eval $ac_try) 2>&5
24922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24923 (exit $ac_status); }; }; then
24926 cat >conftest.$ac_ext <<_ACEOF
24929 cat confdefs.h >>conftest.$ac_ext
24930 cat >>conftest.$ac_ext <<_ACEOF
24931 /* end confdefs.h. */
24932 $ac_includes_default
24936 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
24943 rm -f conftest.$ac_objext
24944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24945 (eval $ac_compile) 2>conftest.er1
24947 grep -v '^ *+' conftest.er1 >conftest.err
24949 cat conftest.err >&5
24950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24951 (exit $ac_status); } &&
24952 { ac_try='test -z "$ac_c_werror_flag"
24953 || test ! -s conftest.err'
24954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24955 (eval $ac_try) 2>&5
24957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24958 (exit $ac_status); }; } &&
24959 { ac_try='test -s conftest.$ac_objext'
24960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24961 (eval $ac_try) 2>&5
24963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24964 (exit $ac_status); }; }; then
24965 ac_lo=$ac_mid; break
24967 echo "$as_me: failed program was:" >&5
24968 sed 's/^/| /' conftest.$ac_ext >&5
24970 ac_hi=`expr '(' $ac_mid ')' - 1`
24971 if test $ac_mid -le $ac_hi; then
24975 ac_mid=`expr 2 '*' $ac_mid`
24977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24980 echo "$as_me: failed program was:" >&5
24981 sed 's/^/| /' conftest.$ac_ext >&5
24985 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24987 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24988 # Binary search between lo and hi bounds.
24989 while test "x$ac_lo" != "x$ac_hi"; do
24990 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24991 cat >conftest.$ac_ext <<_ACEOF
24994 cat confdefs.h >>conftest.$ac_ext
24995 cat >>conftest.$ac_ext <<_ACEOF
24996 /* end confdefs.h. */
24997 $ac_includes_default
25001 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
25008 rm -f conftest.$ac_objext
25009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25010 (eval $ac_compile) 2>conftest.er1
25012 grep -v '^ *+' conftest.er1 >conftest.err
25014 cat conftest.err >&5
25015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25016 (exit $ac_status); } &&
25017 { ac_try='test -z "$ac_c_werror_flag"
25018 || test ! -s conftest.err'
25019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25020 (eval $ac_try) 2>&5
25022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25023 (exit $ac_status); }; } &&
25024 { ac_try='test -s conftest.$ac_objext'
25025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25026 (eval $ac_try) 2>&5
25028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25029 (exit $ac_status); }; }; then
25032 echo "$as_me: failed program was:" >&5
25033 sed 's/^/| /' conftest.$ac_ext >&5
25035 ac_lo=`expr '(' $ac_mid ')' + 1`
25037 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25040 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
25041 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
25042 See \`config.log' for more details." >&5
25043 echo "$as_me: error: cannot compute sizeof (long long int), 77
25044 See \`config.log' for more details." >&2;}
25045 { (exit 1); exit 1; }; } ;;
25048 if test "$cross_compiling" = yes; then
25049 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25050 See \`config.log' for more details." >&5
25051 echo "$as_me: error: cannot run test program while cross compiling
25052 See \`config.log' for more details." >&2;}
25053 { (exit 1); exit 1; }; }
25055 cat >conftest.$ac_ext <<_ACEOF
25058 cat confdefs.h >>conftest.$ac_ext
25059 cat >>conftest.$ac_ext <<_ACEOF
25060 /* end confdefs.h. */
25061 $ac_includes_default
25062 long longval () { return (long) (sizeof (long long int)); }
25063 unsigned long ulongval () { return (long) (sizeof (long long int)); }
25065 #include <stdlib.h>
25070 FILE *f = fopen ("conftest.val", "w");
25073 if (((long) (sizeof (long long int))) < 0)
25075 long i = longval ();
25076 if (i != ((long) (sizeof (long long int))))
25078 fprintf (f, "%ld\n", i);
25082 unsigned long i = ulongval ();
25083 if (i != ((long) (sizeof (long long int))))
25085 fprintf (f, "%lu\n", i);
25087 exit (ferror (f) || fclose (f) != 0);
25093 rm -f conftest$ac_exeext
25094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25095 (eval $ac_link) 2>&5
25097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25098 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25100 (eval $ac_try) 2>&5
25102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25103 (exit $ac_status); }; }; then
25104 ac_cv_sizeof_long_long_int=`cat conftest.val`
25106 echo "$as_me: program exited with status $ac_status" >&5
25107 echo "$as_me: failed program was:" >&5
25108 sed 's/^/| /' conftest.$ac_ext >&5
25110 ( exit $ac_status )
25111 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
25112 See \`config.log' for more details." >&5
25113 echo "$as_me: error: cannot compute sizeof (long long int), 77
25114 See \`config.log' for more details." >&2;}
25115 { (exit 1); exit 1; }; }
25117 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25122 ac_cv_sizeof_long_long_int=0
25125 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
25126 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
25127 cat >>confdefs.h <<_ACEOF
25128 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
25132 echo "$as_me:$LINENO: checking for int *" >&5
25133 echo $ECHO_N "checking for int *... $ECHO_C" >&6
25134 if test "${ac_cv_type_int_p+set}" = set; then
25135 echo $ECHO_N "(cached) $ECHO_C" >&6
25137 cat >conftest.$ac_ext <<_ACEOF
25140 cat confdefs.h >>conftest.$ac_ext
25141 cat >>conftest.$ac_ext <<_ACEOF
25142 /* end confdefs.h. */
25143 $ac_includes_default
25149 if (sizeof (int *))
25155 rm -f conftest.$ac_objext
25156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25157 (eval $ac_compile) 2>conftest.er1
25159 grep -v '^ *+' conftest.er1 >conftest.err
25161 cat conftest.err >&5
25162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25163 (exit $ac_status); } &&
25164 { ac_try='test -z "$ac_c_werror_flag"
25165 || test ! -s conftest.err'
25166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25167 (eval $ac_try) 2>&5
25169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25170 (exit $ac_status); }; } &&
25171 { ac_try='test -s conftest.$ac_objext'
25172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25173 (eval $ac_try) 2>&5
25175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25176 (exit $ac_status); }; }; then
25177 ac_cv_type_int_p=yes
25179 echo "$as_me: failed program was:" >&5
25180 sed 's/^/| /' conftest.$ac_ext >&5
25182 ac_cv_type_int_p=no
25184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25186 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
25187 echo "${ECHO_T}$ac_cv_type_int_p" >&6
25189 echo "$as_me:$LINENO: checking size of int *" >&5
25190 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
25191 if test "${ac_cv_sizeof_int_p+set}" = set; then
25192 echo $ECHO_N "(cached) $ECHO_C" >&6
25194 if test "$ac_cv_type_int_p" = yes; then
25195 # The cast to unsigned long works around a bug in the HP C Compiler
25196 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25197 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25198 # This bug is HP SR number 8606223364.
25199 if test "$cross_compiling" = yes; then
25200 # Depending upon the size, compute the lo and hi bounds.
25201 cat >conftest.$ac_ext <<_ACEOF
25204 cat confdefs.h >>conftest.$ac_ext
25205 cat >>conftest.$ac_ext <<_ACEOF
25206 /* end confdefs.h. */
25207 $ac_includes_default
25211 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
25218 rm -f conftest.$ac_objext
25219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25220 (eval $ac_compile) 2>conftest.er1
25222 grep -v '^ *+' conftest.er1 >conftest.err
25224 cat conftest.err >&5
25225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25226 (exit $ac_status); } &&
25227 { ac_try='test -z "$ac_c_werror_flag"
25228 || test ! -s conftest.err'
25229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25230 (eval $ac_try) 2>&5
25232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25233 (exit $ac_status); }; } &&
25234 { ac_try='test -s conftest.$ac_objext'
25235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25236 (eval $ac_try) 2>&5
25238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25239 (exit $ac_status); }; }; then
25242 cat >conftest.$ac_ext <<_ACEOF
25245 cat confdefs.h >>conftest.$ac_ext
25246 cat >>conftest.$ac_ext <<_ACEOF
25247 /* end confdefs.h. */
25248 $ac_includes_default
25252 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
25259 rm -f conftest.$ac_objext
25260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25261 (eval $ac_compile) 2>conftest.er1
25263 grep -v '^ *+' conftest.er1 >conftest.err
25265 cat conftest.err >&5
25266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25267 (exit $ac_status); } &&
25268 { ac_try='test -z "$ac_c_werror_flag"
25269 || test ! -s conftest.err'
25270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25271 (eval $ac_try) 2>&5
25273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25274 (exit $ac_status); }; } &&
25275 { ac_try='test -s conftest.$ac_objext'
25276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25277 (eval $ac_try) 2>&5
25279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25280 (exit $ac_status); }; }; then
25281 ac_hi=$ac_mid; break
25283 echo "$as_me: failed program was:" >&5
25284 sed 's/^/| /' conftest.$ac_ext >&5
25286 ac_lo=`expr $ac_mid + 1`
25287 if test $ac_lo -le $ac_mid; then
25291 ac_mid=`expr 2 '*' $ac_mid + 1`
25293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25296 echo "$as_me: failed program was:" >&5
25297 sed 's/^/| /' conftest.$ac_ext >&5
25299 cat >conftest.$ac_ext <<_ACEOF
25302 cat confdefs.h >>conftest.$ac_ext
25303 cat >>conftest.$ac_ext <<_ACEOF
25304 /* end confdefs.h. */
25305 $ac_includes_default
25309 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
25316 rm -f conftest.$ac_objext
25317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25318 (eval $ac_compile) 2>conftest.er1
25320 grep -v '^ *+' conftest.er1 >conftest.err
25322 cat conftest.err >&5
25323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25324 (exit $ac_status); } &&
25325 { ac_try='test -z "$ac_c_werror_flag"
25326 || test ! -s conftest.err'
25327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25328 (eval $ac_try) 2>&5
25330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25331 (exit $ac_status); }; } &&
25332 { ac_try='test -s conftest.$ac_objext'
25333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25334 (eval $ac_try) 2>&5
25336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25337 (exit $ac_status); }; }; then
25340 cat >conftest.$ac_ext <<_ACEOF
25343 cat confdefs.h >>conftest.$ac_ext
25344 cat >>conftest.$ac_ext <<_ACEOF
25345 /* end confdefs.h. */
25346 $ac_includes_default
25350 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
25357 rm -f conftest.$ac_objext
25358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25359 (eval $ac_compile) 2>conftest.er1
25361 grep -v '^ *+' conftest.er1 >conftest.err
25363 cat conftest.err >&5
25364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25365 (exit $ac_status); } &&
25366 { ac_try='test -z "$ac_c_werror_flag"
25367 || test ! -s conftest.err'
25368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25369 (eval $ac_try) 2>&5
25371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25372 (exit $ac_status); }; } &&
25373 { ac_try='test -s conftest.$ac_objext'
25374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25375 (eval $ac_try) 2>&5
25377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25378 (exit $ac_status); }; }; then
25379 ac_lo=$ac_mid; break
25381 echo "$as_me: failed program was:" >&5
25382 sed 's/^/| /' conftest.$ac_ext >&5
25384 ac_hi=`expr '(' $ac_mid ')' - 1`
25385 if test $ac_mid -le $ac_hi; then
25389 ac_mid=`expr 2 '*' $ac_mid`
25391 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25394 echo "$as_me: failed program was:" >&5
25395 sed 's/^/| /' conftest.$ac_ext >&5
25399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25402 # Binary search between lo and hi bounds.
25403 while test "x$ac_lo" != "x$ac_hi"; do
25404 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25405 cat >conftest.$ac_ext <<_ACEOF
25408 cat confdefs.h >>conftest.$ac_ext
25409 cat >>conftest.$ac_ext <<_ACEOF
25410 /* end confdefs.h. */
25411 $ac_includes_default
25415 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
25422 rm -f conftest.$ac_objext
25423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25424 (eval $ac_compile) 2>conftest.er1
25426 grep -v '^ *+' conftest.er1 >conftest.err
25428 cat conftest.err >&5
25429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25430 (exit $ac_status); } &&
25431 { ac_try='test -z "$ac_c_werror_flag"
25432 || test ! -s conftest.err'
25433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25434 (eval $ac_try) 2>&5
25436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25437 (exit $ac_status); }; } &&
25438 { ac_try='test -s conftest.$ac_objext'
25439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25440 (eval $ac_try) 2>&5
25442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25443 (exit $ac_status); }; }; then
25446 echo "$as_me: failed program was:" >&5
25447 sed 's/^/| /' conftest.$ac_ext >&5
25449 ac_lo=`expr '(' $ac_mid ')' + 1`
25451 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25454 ?*) ac_cv_sizeof_int_p=$ac_lo;;
25455 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
25456 See \`config.log' for more details." >&5
25457 echo "$as_me: error: cannot compute sizeof (int *), 77
25458 See \`config.log' for more details." >&2;}
25459 { (exit 1); exit 1; }; } ;;
25462 if test "$cross_compiling" = yes; then
25463 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25464 See \`config.log' for more details." >&5
25465 echo "$as_me: error: cannot run test program while cross compiling
25466 See \`config.log' for more details." >&2;}
25467 { (exit 1); exit 1; }; }
25469 cat >conftest.$ac_ext <<_ACEOF
25472 cat confdefs.h >>conftest.$ac_ext
25473 cat >>conftest.$ac_ext <<_ACEOF
25474 /* end confdefs.h. */
25475 $ac_includes_default
25476 long longval () { return (long) (sizeof (int *)); }
25477 unsigned long ulongval () { return (long) (sizeof (int *)); }
25479 #include <stdlib.h>
25484 FILE *f = fopen ("conftest.val", "w");
25487 if (((long) (sizeof (int *))) < 0)
25489 long i = longval ();
25490 if (i != ((long) (sizeof (int *))))
25492 fprintf (f, "%ld\n", i);
25496 unsigned long i = ulongval ();
25497 if (i != ((long) (sizeof (int *))))
25499 fprintf (f, "%lu\n", i);
25501 exit (ferror (f) || fclose (f) != 0);
25507 rm -f conftest$ac_exeext
25508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25509 (eval $ac_link) 2>&5
25511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25512 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25514 (eval $ac_try) 2>&5
25516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25517 (exit $ac_status); }; }; then
25518 ac_cv_sizeof_int_p=`cat conftest.val`
25520 echo "$as_me: program exited with status $ac_status" >&5
25521 echo "$as_me: failed program was:" >&5
25522 sed 's/^/| /' conftest.$ac_ext >&5
25524 ( exit $ac_status )
25525 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
25526 See \`config.log' for more details." >&5
25527 echo "$as_me: error: cannot compute sizeof (int *), 77
25528 See \`config.log' for more details." >&2;}
25529 { (exit 1); exit 1; }; }
25531 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25536 ac_cv_sizeof_int_p=0
25539 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
25540 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
25541 cat >>confdefs.h <<_ACEOF
25542 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
25547 # Check for sys/types.h types
25548 echo "$as_me:$LINENO: checking for u_int type" >&5
25549 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
25550 if test "${ac_cv_have_u_int+set}" = set; then
25551 echo $ECHO_N "(cached) $ECHO_C" >&6
25554 cat >conftest.$ac_ext <<_ACEOF
25557 cat confdefs.h >>conftest.$ac_ext
25558 cat >>conftest.$ac_ext <<_ACEOF
25559 /* end confdefs.h. */
25560 #include <sys/types.h>
25569 rm -f conftest.$ac_objext
25570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25571 (eval $ac_compile) 2>conftest.er1
25573 grep -v '^ *+' conftest.er1 >conftest.err
25575 cat conftest.err >&5
25576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25577 (exit $ac_status); } &&
25578 { ac_try='test -z "$ac_c_werror_flag"
25579 || test ! -s conftest.err'
25580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25581 (eval $ac_try) 2>&5
25583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25584 (exit $ac_status); }; } &&
25585 { ac_try='test -s conftest.$ac_objext'
25586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25587 (eval $ac_try) 2>&5
25589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25590 (exit $ac_status); }; }; then
25591 ac_cv_have_u_int="yes"
25593 echo "$as_me: failed program was:" >&5
25594 sed 's/^/| /' conftest.$ac_ext >&5
25596 ac_cv_have_u_int="no"
25599 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25602 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
25603 echo "${ECHO_T}$ac_cv_have_u_int" >&6
25604 if test "x$ac_cv_have_u_int" = "xyes" ; then
25605 cat >>confdefs.h <<\_ACEOF
25606 #define HAVE_U_INT 1
25612 echo "$as_me:$LINENO: checking for intmax_t type" >&5
25613 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
25614 if test "${ac_cv_have_intmax_t+set}" = set; then
25615 echo $ECHO_N "(cached) $ECHO_C" >&6
25618 cat >conftest.$ac_ext <<_ACEOF
25621 cat confdefs.h >>conftest.$ac_ext
25622 cat >>conftest.$ac_ext <<_ACEOF
25623 /* end confdefs.h. */
25624 #include <sys/types.h>
25633 rm -f conftest.$ac_objext
25634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25635 (eval $ac_compile) 2>conftest.er1
25637 grep -v '^ *+' conftest.er1 >conftest.err
25639 cat conftest.err >&5
25640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25641 (exit $ac_status); } &&
25642 { ac_try='test -z "$ac_c_werror_flag"
25643 || test ! -s conftest.err'
25644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25645 (eval $ac_try) 2>&5
25647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25648 (exit $ac_status); }; } &&
25649 { ac_try='test -s conftest.$ac_objext'
25650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25651 (eval $ac_try) 2>&5
25653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25654 (exit $ac_status); }; }; then
25655 ac_cv_have_intmax_t="yes"
25657 echo "$as_me: failed program was:" >&5
25658 sed 's/^/| /' conftest.$ac_ext >&5
25661 cat >conftest.$ac_ext <<_ACEOF
25664 cat confdefs.h >>conftest.$ac_ext
25665 cat >>conftest.$ac_ext <<_ACEOF
25666 /* end confdefs.h. */
25667 #include <stdint.h>
25676 rm -f conftest.$ac_objext
25677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25678 (eval $ac_compile) 2>conftest.er1
25680 grep -v '^ *+' conftest.er1 >conftest.err
25682 cat conftest.err >&5
25683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25684 (exit $ac_status); } &&
25685 { ac_try='test -z "$ac_c_werror_flag"
25686 || test ! -s conftest.err'
25687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25688 (eval $ac_try) 2>&5
25690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25691 (exit $ac_status); }; } &&
25692 { ac_try='test -s conftest.$ac_objext'
25693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25694 (eval $ac_try) 2>&5
25696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25697 (exit $ac_status); }; }; then
25698 ac_cv_have_intmax_t="yes"
25700 echo "$as_me: failed program was:" >&5
25701 sed 's/^/| /' conftest.$ac_ext >&5
25703 ac_cv_have_intmax_t="no"
25706 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25714 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
25715 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
25716 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
25717 cat >>confdefs.h <<\_ACEOF
25718 #define HAVE_INTMAX_T 1
25725 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
25726 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
25727 if test "${ac_cv_have_u_intmax_t+set}" = set; then
25728 echo $ECHO_N "(cached) $ECHO_C" >&6
25731 cat >conftest.$ac_ext <<_ACEOF
25734 cat confdefs.h >>conftest.$ac_ext
25735 cat >>conftest.$ac_ext <<_ACEOF
25736 /* end confdefs.h. */
25737 #include <sys/types.h>
25741 u_intmax_t a; a = 1;
25746 rm -f conftest.$ac_objext
25747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25748 (eval $ac_compile) 2>conftest.er1
25750 grep -v '^ *+' conftest.er1 >conftest.err
25752 cat conftest.err >&5
25753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25754 (exit $ac_status); } &&
25755 { ac_try='test -z "$ac_c_werror_flag"
25756 || test ! -s conftest.err'
25757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25758 (eval $ac_try) 2>&5
25760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25761 (exit $ac_status); }; } &&
25762 { ac_try='test -s conftest.$ac_objext'
25763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25764 (eval $ac_try) 2>&5
25766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25767 (exit $ac_status); }; }; then
25768 ac_cv_have_u_intmax_t="yes"
25770 echo "$as_me: failed program was:" >&5
25771 sed 's/^/| /' conftest.$ac_ext >&5
25774 cat >conftest.$ac_ext <<_ACEOF
25777 cat confdefs.h >>conftest.$ac_ext
25778 cat >>conftest.$ac_ext <<_ACEOF
25779 /* end confdefs.h. */
25780 #include <stdint.h>
25784 u_intmax_t a; a = 1;
25789 rm -f conftest.$ac_objext
25790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25791 (eval $ac_compile) 2>conftest.er1
25793 grep -v '^ *+' conftest.er1 >conftest.err
25795 cat conftest.err >&5
25796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25797 (exit $ac_status); } &&
25798 { ac_try='test -z "$ac_c_werror_flag"
25799 || test ! -s conftest.err'
25800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25801 (eval $ac_try) 2>&5
25803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25804 (exit $ac_status); }; } &&
25805 { ac_try='test -s conftest.$ac_objext'
25806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25807 (eval $ac_try) 2>&5
25809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25810 (exit $ac_status); }; }; then
25811 ac_cv_have_u_intmax_t="yes"
25813 echo "$as_me: failed program was:" >&5
25814 sed 's/^/| /' conftest.$ac_ext >&5
25816 ac_cv_have_u_intmax_t="no"
25819 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25823 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25826 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
25827 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
25828 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
25829 cat >>confdefs.h <<\_ACEOF
25830 #define HAVE_U_INTMAX_T 1
25837 echo "$as_me:$LINENO: checking for intXX_t types" >&5
25838 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
25839 if test "${ac_cv_have_intxx_t+set}" = set; then
25840 echo $ECHO_N "(cached) $ECHO_C" >&6
25843 cat >conftest.$ac_ext <<_ACEOF
25846 cat confdefs.h >>conftest.$ac_ext
25847 cat >>conftest.$ac_ext <<_ACEOF
25848 /* end confdefs.h. */
25849 #include <sys/types.h>
25853 int8_t a; int16_t b; int32_t c; a = b = c = 1;
25858 rm -f conftest.$ac_objext
25859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25860 (eval $ac_compile) 2>conftest.er1
25862 grep -v '^ *+' conftest.er1 >conftest.err
25864 cat conftest.err >&5
25865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25866 (exit $ac_status); } &&
25867 { ac_try='test -z "$ac_c_werror_flag"
25868 || test ! -s conftest.err'
25869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25870 (eval $ac_try) 2>&5
25872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25873 (exit $ac_status); }; } &&
25874 { ac_try='test -s conftest.$ac_objext'
25875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25876 (eval $ac_try) 2>&5
25878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25879 (exit $ac_status); }; }; then
25880 ac_cv_have_intxx_t="yes"
25882 echo "$as_me: failed program was:" >&5
25883 sed 's/^/| /' conftest.$ac_ext >&5
25885 ac_cv_have_intxx_t="no"
25888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25891 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
25892 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
25893 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
25894 cat >>confdefs.h <<\_ACEOF
25895 #define HAVE_INTXX_T 1
25901 echo "$as_me:$LINENO: checking for int64_t type" >&5
25902 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
25903 if test "${ac_cv_have_int64_t+set}" = set; then
25904 echo $ECHO_N "(cached) $ECHO_C" >&6
25907 cat >conftest.$ac_ext <<_ACEOF
25910 cat confdefs.h >>conftest.$ac_ext
25911 cat >>conftest.$ac_ext <<_ACEOF
25912 /* end confdefs.h. */
25913 #include <sys/types.h>
25922 rm -f conftest.$ac_objext
25923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25924 (eval $ac_compile) 2>conftest.er1
25926 grep -v '^ *+' conftest.er1 >conftest.err
25928 cat conftest.err >&5
25929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25930 (exit $ac_status); } &&
25931 { ac_try='test -z "$ac_c_werror_flag"
25932 || test ! -s conftest.err'
25933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25934 (eval $ac_try) 2>&5
25936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25937 (exit $ac_status); }; } &&
25938 { ac_try='test -s conftest.$ac_objext'
25939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25940 (eval $ac_try) 2>&5
25942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25943 (exit $ac_status); }; }; then
25944 ac_cv_have_int64_t="yes"
25946 echo "$as_me: failed program was:" >&5
25947 sed 's/^/| /' conftest.$ac_ext >&5
25949 ac_cv_have_int64_t="no"
25952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25955 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
25956 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
25957 if test "x$ac_cv_have_int64_t" = "xyes" ; then
25958 cat >>confdefs.h <<\_ACEOF
25959 #define HAVE_INT64_T 1
25965 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
25966 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
25967 if test "${ac_cv_have_u_intxx_t+set}" = set; then
25968 echo $ECHO_N "(cached) $ECHO_C" >&6
25971 cat >conftest.$ac_ext <<_ACEOF
25974 cat confdefs.h >>conftest.$ac_ext
25975 cat >>conftest.$ac_ext <<_ACEOF
25976 /* end confdefs.h. */
25977 #include <sys/types.h>
25981 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
25986 rm -f conftest.$ac_objext
25987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25988 (eval $ac_compile) 2>conftest.er1
25990 grep -v '^ *+' conftest.er1 >conftest.err
25992 cat conftest.err >&5
25993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25994 (exit $ac_status); } &&
25995 { ac_try='test -z "$ac_c_werror_flag"
25996 || test ! -s conftest.err'
25997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25998 (eval $ac_try) 2>&5
26000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26001 (exit $ac_status); }; } &&
26002 { ac_try='test -s conftest.$ac_objext'
26003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26004 (eval $ac_try) 2>&5
26006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26007 (exit $ac_status); }; }; then
26008 ac_cv_have_u_intxx_t="yes"
26010 echo "$as_me: failed program was:" >&5
26011 sed 's/^/| /' conftest.$ac_ext >&5
26013 ac_cv_have_u_intxx_t="no"
26016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26019 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
26020 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
26021 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
26022 cat >>confdefs.h <<\_ACEOF
26023 #define HAVE_U_INTXX_T 1
26029 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
26030 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
26031 if test "${ac_cv_have_u_int64_t+set}" = set; then
26032 echo $ECHO_N "(cached) $ECHO_C" >&6
26035 cat >conftest.$ac_ext <<_ACEOF
26038 cat confdefs.h >>conftest.$ac_ext
26039 cat >>conftest.$ac_ext <<_ACEOF
26040 /* end confdefs.h. */
26041 #include <sys/types.h>
26045 u_int64_t a; a = 1;
26050 rm -f conftest.$ac_objext
26051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26052 (eval $ac_compile) 2>conftest.er1
26054 grep -v '^ *+' conftest.er1 >conftest.err
26056 cat conftest.err >&5
26057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26058 (exit $ac_status); } &&
26059 { ac_try='test -z "$ac_c_werror_flag"
26060 || test ! -s conftest.err'
26061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26062 (eval $ac_try) 2>&5
26064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26065 (exit $ac_status); }; } &&
26066 { ac_try='test -s conftest.$ac_objext'
26067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26068 (eval $ac_try) 2>&5
26070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26071 (exit $ac_status); }; }; then
26072 ac_cv_have_u_int64_t="yes"
26074 echo "$as_me: failed program was:" >&5
26075 sed 's/^/| /' conftest.$ac_ext >&5
26077 ac_cv_have_u_int64_t="no"
26080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26083 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
26084 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
26085 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
26086 cat >>confdefs.h <<\_ACEOF
26087 #define HAVE_U_INT64_T 1
26093 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
26094 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26096 echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
26097 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
26098 cat >conftest.$ac_ext <<_ACEOF
26101 cat confdefs.h >>conftest.$ac_ext
26102 cat >>conftest.$ac_ext <<_ACEOF
26103 /* end confdefs.h. */
26104 #include <sys/bitypes.h>
26108 int8_t a; int16_t b; int32_t c;
26109 u_int8_t e; u_int16_t f; u_int32_t g;
26110 a = b = c = e = f = g = 1;
26115 rm -f conftest.$ac_objext
26116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26117 (eval $ac_compile) 2>conftest.er1
26119 grep -v '^ *+' conftest.er1 >conftest.err
26121 cat conftest.err >&5
26122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26123 (exit $ac_status); } &&
26124 { ac_try='test -z "$ac_c_werror_flag"
26125 || test ! -s conftest.err'
26126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26127 (eval $ac_try) 2>&5
26129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26130 (exit $ac_status); }; } &&
26131 { ac_try='test -s conftest.$ac_objext'
26132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26133 (eval $ac_try) 2>&5
26135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26136 (exit $ac_status); }; }; then
26137 cat >>confdefs.h <<\_ACEOF
26138 #define HAVE_U_INTXX_T 1
26141 cat >>confdefs.h <<\_ACEOF
26142 #define HAVE_INTXX_T 1
26145 cat >>confdefs.h <<\_ACEOF
26146 #define HAVE_SYS_BITYPES_H 1
26149 echo "$as_me:$LINENO: result: yes" >&5
26150 echo "${ECHO_T}yes" >&6
26152 echo "$as_me: failed program was:" >&5
26153 sed 's/^/| /' conftest.$ac_ext >&5
26155 echo "$as_me:$LINENO: result: no" >&5
26156 echo "${ECHO_T}no" >&6
26159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26162 if test -z "$have_u_intxx_t" ; then
26163 echo "$as_me:$LINENO: checking for uintXX_t types" >&5
26164 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
26165 if test "${ac_cv_have_uintxx_t+set}" = set; then
26166 echo $ECHO_N "(cached) $ECHO_C" >&6
26169 cat >conftest.$ac_ext <<_ACEOF
26172 cat confdefs.h >>conftest.$ac_ext
26173 cat >>conftest.$ac_ext <<_ACEOF
26174 /* end confdefs.h. */
26175 #include <sys/types.h>
26179 uint8_t a; uint16_t b;
26180 uint32_t c; a = b = c = 1;
26185 rm -f conftest.$ac_objext
26186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26187 (eval $ac_compile) 2>conftest.er1
26189 grep -v '^ *+' conftest.er1 >conftest.err
26191 cat conftest.err >&5
26192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26193 (exit $ac_status); } &&
26194 { ac_try='test -z "$ac_c_werror_flag"
26195 || test ! -s conftest.err'
26196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26197 (eval $ac_try) 2>&5
26199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26200 (exit $ac_status); }; } &&
26201 { ac_try='test -s conftest.$ac_objext'
26202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26203 (eval $ac_try) 2>&5
26205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26206 (exit $ac_status); }; }; then
26207 ac_cv_have_uintxx_t="yes"
26209 echo "$as_me: failed program was:" >&5
26210 sed 's/^/| /' conftest.$ac_ext >&5
26212 ac_cv_have_uintxx_t="no"
26215 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26218 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
26219 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
26220 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
26221 cat >>confdefs.h <<\_ACEOF
26222 #define HAVE_UINTXX_T 1
26228 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
26229 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26231 echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
26232 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
26233 cat >conftest.$ac_ext <<_ACEOF
26236 cat confdefs.h >>conftest.$ac_ext
26237 cat >>conftest.$ac_ext <<_ACEOF
26238 /* end confdefs.h. */
26239 #include <sys/bitypes.h>
26243 int64_t a; u_int64_t b;
26249 rm -f conftest.$ac_objext
26250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26251 (eval $ac_compile) 2>conftest.er1
26253 grep -v '^ *+' conftest.er1 >conftest.err
26255 cat conftest.err >&5
26256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26257 (exit $ac_status); } &&
26258 { ac_try='test -z "$ac_c_werror_flag"
26259 || test ! -s conftest.err'
26260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26261 (eval $ac_try) 2>&5
26263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26264 (exit $ac_status); }; } &&
26265 { ac_try='test -s conftest.$ac_objext'
26266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26267 (eval $ac_try) 2>&5
26269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26270 (exit $ac_status); }; }; then
26271 cat >>confdefs.h <<\_ACEOF
26272 #define HAVE_U_INT64_T 1
26275 cat >>confdefs.h <<\_ACEOF
26276 #define HAVE_INT64_T 1
26279 echo "$as_me:$LINENO: result: yes" >&5
26280 echo "${ECHO_T}yes" >&6
26282 echo "$as_me: failed program was:" >&5
26283 sed 's/^/| /' conftest.$ac_ext >&5
26285 echo "$as_me:$LINENO: result: no" >&5
26286 echo "${ECHO_T}no" >&6
26289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26292 if (test -z "$have_uintxx_t" && \
26293 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26295 echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
26296 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
26297 cat >conftest.$ac_ext <<_ACEOF
26300 cat confdefs.h >>conftest.$ac_ext
26301 cat >>conftest.$ac_ext <<_ACEOF
26302 /* end confdefs.h. */
26303 #include <sys/bitypes.h>
26307 uint8_t a; uint16_t b;
26308 uint32_t c; a = b = c = 1;
26313 rm -f conftest.$ac_objext
26314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26315 (eval $ac_compile) 2>conftest.er1
26317 grep -v '^ *+' conftest.er1 >conftest.err
26319 cat conftest.err >&5
26320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26321 (exit $ac_status); } &&
26322 { ac_try='test -z "$ac_c_werror_flag"
26323 || test ! -s conftest.err'
26324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26325 (eval $ac_try) 2>&5
26327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26328 (exit $ac_status); }; } &&
26329 { ac_try='test -s conftest.$ac_objext'
26330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26331 (eval $ac_try) 2>&5
26333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26334 (exit $ac_status); }; }; then
26335 cat >>confdefs.h <<\_ACEOF
26336 #define HAVE_UINTXX_T 1
26339 echo "$as_me:$LINENO: result: yes" >&5
26340 echo "${ECHO_T}yes" >&6
26342 echo "$as_me: failed program was:" >&5
26343 sed 's/^/| /' conftest.$ac_ext >&5
26345 echo "$as_me:$LINENO: result: no" >&5
26346 echo "${ECHO_T}no" >&6
26349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26385 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26386 echo "$as_me:$LINENO: checking for $ac_func" >&5
26387 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26388 if eval "test \"\${$as_ac_var+set}\" = set"; then
26389 echo $ECHO_N "(cached) $ECHO_C" >&6
26391 cat >conftest.$ac_ext <<_ACEOF
26394 cat confdefs.h >>conftest.$ac_ext
26395 cat >>conftest.$ac_ext <<_ACEOF
26396 /* end confdefs.h. */
26397 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26398 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26399 #define $ac_func innocuous_$ac_func
26401 /* System header to define __stub macros and hopefully few prototypes,
26402 which can conflict with char $ac_func (); below.
26403 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26404 <limits.h> exists even on freestanding compilers. */
26407 # include <limits.h>
26409 # include <assert.h>
26414 /* Override any gcc2 internal prototype to avoid an error. */
26419 /* We use char because int might match the return type of a gcc2
26420 builtin and then its argument prototype would still apply. */
26422 /* The GNU C library defines this for functions which it implements
26423 to always fail with ENOSYS. Some functions are actually named
26424 something starting with __ and the normal name is an alias. */
26425 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26428 char (*f) () = $ac_func;
26437 return f != $ac_func;
26442 rm -f conftest.$ac_objext conftest$ac_exeext
26443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26444 (eval $ac_link) 2>conftest.er1
26446 grep -v '^ *+' conftest.er1 >conftest.err
26448 cat conftest.err >&5
26449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26450 (exit $ac_status); } &&
26451 { ac_try='test -z "$ac_c_werror_flag"
26452 || test ! -s conftest.err'
26453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26454 (eval $ac_try) 2>&5
26456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26457 (exit $ac_status); }; } &&
26458 { ac_try='test -s conftest$ac_exeext'
26459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26460 (eval $ac_try) 2>&5
26462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26463 (exit $ac_status); }; }; then
26464 eval "$as_ac_var=yes"
26466 echo "$as_me: failed program was:" >&5
26467 sed 's/^/| /' conftest.$ac_ext >&5
26469 eval "$as_ac_var=no"
26471 rm -f conftest.err conftest.$ac_objext \
26472 conftest$ac_exeext conftest.$ac_ext
26474 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26475 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26476 if test `eval echo '${'$as_ac_var'}'` = yes; then
26477 cat >>confdefs.h <<_ACEOF
26478 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26482 echo 'configure: cannot find needed function.'; exit 1
26489 for ac_func in fchdir
26491 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26492 echo "$as_me:$LINENO: checking for $ac_func" >&5
26493 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26494 if eval "test \"\${$as_ac_var+set}\" = set"; then
26495 echo $ECHO_N "(cached) $ECHO_C" >&6
26497 cat >conftest.$ac_ext <<_ACEOF
26500 cat confdefs.h >>conftest.$ac_ext
26501 cat >>conftest.$ac_ext <<_ACEOF
26502 /* end confdefs.h. */
26503 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26504 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26505 #define $ac_func innocuous_$ac_func
26507 /* System header to define __stub macros and hopefully few prototypes,
26508 which can conflict with char $ac_func (); below.
26509 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26510 <limits.h> exists even on freestanding compilers. */
26513 # include <limits.h>
26515 # include <assert.h>
26520 /* Override any gcc2 internal prototype to avoid an error. */
26525 /* We use char because int might match the return type of a gcc2
26526 builtin and then its argument prototype would still apply. */
26528 /* The GNU C library defines this for functions which it implements
26529 to always fail with ENOSYS. Some functions are actually named
26530 something starting with __ and the normal name is an alias. */
26531 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26534 char (*f) () = $ac_func;
26543 return f != $ac_func;
26548 rm -f conftest.$ac_objext conftest$ac_exeext
26549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26550 (eval $ac_link) 2>conftest.er1
26552 grep -v '^ *+' conftest.er1 >conftest.err
26554 cat conftest.err >&5
26555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26556 (exit $ac_status); } &&
26557 { ac_try='test -z "$ac_c_werror_flag"
26558 || test ! -s conftest.err'
26559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26560 (eval $ac_try) 2>&5
26562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26563 (exit $ac_status); }; } &&
26564 { ac_try='test -s conftest$ac_exeext'
26565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26566 (eval $ac_try) 2>&5
26568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26569 (exit $ac_status); }; }; then
26570 eval "$as_ac_var=yes"
26572 echo "$as_me: failed program was:" >&5
26573 sed 's/^/| /' conftest.$ac_ext >&5
26575 eval "$as_ac_var=no"
26577 rm -f conftest.err conftest.$ac_objext \
26578 conftest$ac_exeext conftest.$ac_ext
26580 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26581 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26582 if test `eval echo '${'$as_ac_var'}'` = yes; then
26583 cat >>confdefs.h <<_ACEOF
26584 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26586 cat >>confdefs.h <<\_ACEOF
26587 #define HAVE_FCHDIR 1
26594 for ac_func in strtoll
26596 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26597 echo "$as_me:$LINENO: checking for $ac_func" >&5
26598 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26599 if eval "test \"\${$as_ac_var+set}\" = set"; then
26600 echo $ECHO_N "(cached) $ECHO_C" >&6
26602 cat >conftest.$ac_ext <<_ACEOF
26605 cat confdefs.h >>conftest.$ac_ext
26606 cat >>conftest.$ac_ext <<_ACEOF
26607 /* end confdefs.h. */
26608 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26609 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26610 #define $ac_func innocuous_$ac_func
26612 /* System header to define __stub macros and hopefully few prototypes,
26613 which can conflict with char $ac_func (); below.
26614 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26615 <limits.h> exists even on freestanding compilers. */
26618 # include <limits.h>
26620 # include <assert.h>
26625 /* Override any gcc2 internal prototype to avoid an error. */
26630 /* We use char because int might match the return type of a gcc2
26631 builtin and then its argument prototype would still apply. */
26633 /* The GNU C library defines this for functions which it implements
26634 to always fail with ENOSYS. Some functions are actually named
26635 something starting with __ and the normal name is an alias. */
26636 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26639 char (*f) () = $ac_func;
26648 return f != $ac_func;
26653 rm -f conftest.$ac_objext conftest$ac_exeext
26654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26655 (eval $ac_link) 2>conftest.er1
26657 grep -v '^ *+' conftest.er1 >conftest.err
26659 cat conftest.err >&5
26660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26661 (exit $ac_status); } &&
26662 { ac_try='test -z "$ac_c_werror_flag"
26663 || test ! -s conftest.err'
26664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26665 (eval $ac_try) 2>&5
26667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26668 (exit $ac_status); }; } &&
26669 { ac_try='test -s conftest$ac_exeext'
26670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26671 (eval $ac_try) 2>&5
26673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26674 (exit $ac_status); }; }; then
26675 eval "$as_ac_var=yes"
26677 echo "$as_me: failed program was:" >&5
26678 sed 's/^/| /' conftest.$ac_ext >&5
26680 eval "$as_ac_var=no"
26682 rm -f conftest.err conftest.$ac_objext \
26683 conftest$ac_exeext conftest.$ac_ext
26685 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26686 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26687 if test `eval echo '${'$as_ac_var'}'` = yes; then
26688 cat >>confdefs.h <<_ACEOF
26689 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26691 cat >>confdefs.h <<\_ACEOF
26692 #define HAVE_STRTOLL 1
26699 for ac_func in posix_fadvise
26701 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26702 echo "$as_me:$LINENO: checking for $ac_func" >&5
26703 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26704 if eval "test \"\${$as_ac_var+set}\" = set"; then
26705 echo $ECHO_N "(cached) $ECHO_C" >&6
26707 cat >conftest.$ac_ext <<_ACEOF
26710 cat confdefs.h >>conftest.$ac_ext
26711 cat >>conftest.$ac_ext <<_ACEOF
26712 /* end confdefs.h. */
26713 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26714 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26715 #define $ac_func innocuous_$ac_func
26717 /* System header to define __stub macros and hopefully few prototypes,
26718 which can conflict with char $ac_func (); below.
26719 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26720 <limits.h> exists even on freestanding compilers. */
26723 # include <limits.h>
26725 # include <assert.h>
26730 /* Override any gcc2 internal prototype to avoid an error. */
26735 /* We use char because int might match the return type of a gcc2
26736 builtin and then its argument prototype would still apply. */
26738 /* The GNU C library defines this for functions which it implements
26739 to always fail with ENOSYS. Some functions are actually named
26740 something starting with __ and the normal name is an alias. */
26741 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26744 char (*f) () = $ac_func;
26753 return f != $ac_func;
26758 rm -f conftest.$ac_objext conftest$ac_exeext
26759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26760 (eval $ac_link) 2>conftest.er1
26762 grep -v '^ *+' conftest.er1 >conftest.err
26764 cat conftest.err >&5
26765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26766 (exit $ac_status); } &&
26767 { ac_try='test -z "$ac_c_werror_flag"
26768 || test ! -s conftest.err'
26769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26770 (eval $ac_try) 2>&5
26772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26773 (exit $ac_status); }; } &&
26774 { ac_try='test -s conftest$ac_exeext'
26775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26776 (eval $ac_try) 2>&5
26778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26779 (exit $ac_status); }; }; then
26780 eval "$as_ac_var=yes"
26782 echo "$as_me: failed program was:" >&5
26783 sed 's/^/| /' conftest.$ac_ext >&5
26785 eval "$as_ac_var=no"
26787 rm -f conftest.err conftest.$ac_objext \
26788 conftest$ac_exeext conftest.$ac_ext
26790 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26791 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26792 if test `eval echo '${'$as_ac_var'}'` = yes; then
26793 cat >>confdefs.h <<_ACEOF
26794 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26801 for ac_func in fdatasync
26803 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26804 echo "$as_me:$LINENO: checking for $ac_func" >&5
26805 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26806 if eval "test \"\${$as_ac_var+set}\" = set"; then
26807 echo $ECHO_N "(cached) $ECHO_C" >&6
26809 cat >conftest.$ac_ext <<_ACEOF
26812 cat confdefs.h >>conftest.$ac_ext
26813 cat >>conftest.$ac_ext <<_ACEOF
26814 /* end confdefs.h. */
26815 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26816 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26817 #define $ac_func innocuous_$ac_func
26819 /* System header to define __stub macros and hopefully few prototypes,
26820 which can conflict with char $ac_func (); below.
26821 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26822 <limits.h> exists even on freestanding compilers. */
26825 # include <limits.h>
26827 # include <assert.h>
26832 /* Override any gcc2 internal prototype to avoid an error. */
26837 /* We use char because int might match the return type of a gcc2
26838 builtin and then its argument prototype would still apply. */
26840 /* The GNU C library defines this for functions which it implements
26841 to always fail with ENOSYS. Some functions are actually named
26842 something starting with __ and the normal name is an alias. */
26843 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26846 char (*f) () = $ac_func;
26855 return f != $ac_func;
26860 rm -f conftest.$ac_objext conftest$ac_exeext
26861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26862 (eval $ac_link) 2>conftest.er1
26864 grep -v '^ *+' conftest.er1 >conftest.err
26866 cat conftest.err >&5
26867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26868 (exit $ac_status); } &&
26869 { ac_try='test -z "$ac_c_werror_flag"
26870 || test ! -s conftest.err'
26871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26872 (eval $ac_try) 2>&5
26874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26875 (exit $ac_status); }; } &&
26876 { ac_try='test -s conftest$ac_exeext'
26877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26878 (eval $ac_try) 2>&5
26880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26881 (exit $ac_status); }; }; then
26882 eval "$as_ac_var=yes"
26884 echo "$as_me: failed program was:" >&5
26885 sed 's/^/| /' conftest.$ac_ext >&5
26887 eval "$as_ac_var=no"
26889 rm -f conftest.err conftest.$ac_objext \
26890 conftest$ac_exeext conftest.$ac_ext
26892 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26893 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26894 if test `eval echo '${'$as_ac_var'}'` = yes; then
26895 cat >>confdefs.h <<_ACEOF
26896 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26904 for ac_func in chflags
26906 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26907 echo "$as_me:$LINENO: checking for $ac_func" >&5
26908 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26909 if eval "test \"\${$as_ac_var+set}\" = set"; then
26910 echo $ECHO_N "(cached) $ECHO_C" >&6
26912 cat >conftest.$ac_ext <<_ACEOF
26915 cat confdefs.h >>conftest.$ac_ext
26916 cat >>conftest.$ac_ext <<_ACEOF
26917 /* end confdefs.h. */
26918 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26919 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26920 #define $ac_func innocuous_$ac_func
26922 /* System header to define __stub macros and hopefully few prototypes,
26923 which can conflict with char $ac_func (); below.
26924 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26925 <limits.h> exists even on freestanding compilers. */
26928 # include <limits.h>
26930 # include <assert.h>
26935 /* Override any gcc2 internal prototype to avoid an error. */
26940 /* We use char because int might match the return type of a gcc2
26941 builtin and then its argument prototype would still apply. */
26943 /* The GNU C library defines this for functions which it implements
26944 to always fail with ENOSYS. Some functions are actually named
26945 something starting with __ and the normal name is an alias. */
26946 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26949 char (*f) () = $ac_func;
26958 return f != $ac_func;
26963 rm -f conftest.$ac_objext conftest$ac_exeext
26964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26965 (eval $ac_link) 2>conftest.er1
26967 grep -v '^ *+' conftest.er1 >conftest.err
26969 cat conftest.err >&5
26970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26971 (exit $ac_status); } &&
26972 { ac_try='test -z "$ac_c_werror_flag"
26973 || test ! -s conftest.err'
26974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26975 (eval $ac_try) 2>&5
26977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26978 (exit $ac_status); }; } &&
26979 { ac_try='test -s conftest$ac_exeext'
26980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26981 (eval $ac_try) 2>&5
26983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26984 (exit $ac_status); }; }; then
26985 eval "$as_ac_var=yes"
26987 echo "$as_me: failed program was:" >&5
26988 sed 's/^/| /' conftest.$ac_ext >&5
26990 eval "$as_ac_var=no"
26992 rm -f conftest.err conftest.$ac_objext \
26993 conftest$ac_exeext conftest.$ac_ext
26995 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26996 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26997 if test `eval echo '${'$as_ac_var'}'` = yes; then
26998 cat >>confdefs.h <<_ACEOF
26999 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27010 for ac_func in snprintf vsnprintf gethostid fseeko
27012 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27013 echo "$as_me:$LINENO: checking for $ac_func" >&5
27014 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27015 if eval "test \"\${$as_ac_var+set}\" = set"; then
27016 echo $ECHO_N "(cached) $ECHO_C" >&6
27018 cat >conftest.$ac_ext <<_ACEOF
27021 cat confdefs.h >>conftest.$ac_ext
27022 cat >>conftest.$ac_ext <<_ACEOF
27023 /* end confdefs.h. */
27024 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27025 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27026 #define $ac_func innocuous_$ac_func
27028 /* System header to define __stub macros and hopefully few prototypes,
27029 which can conflict with char $ac_func (); below.
27030 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27031 <limits.h> exists even on freestanding compilers. */
27034 # include <limits.h>
27036 # include <assert.h>
27041 /* Override any gcc2 internal prototype to avoid an error. */
27046 /* We use char because int might match the return type of a gcc2
27047 builtin and then its argument prototype would still apply. */
27049 /* The GNU C library defines this for functions which it implements
27050 to always fail with ENOSYS. Some functions are actually named
27051 something starting with __ and the normal name is an alias. */
27052 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27055 char (*f) () = $ac_func;
27064 return f != $ac_func;
27069 rm -f conftest.$ac_objext conftest$ac_exeext
27070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27071 (eval $ac_link) 2>conftest.er1
27073 grep -v '^ *+' conftest.er1 >conftest.err
27075 cat conftest.err >&5
27076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27077 (exit $ac_status); } &&
27078 { ac_try='test -z "$ac_c_werror_flag"
27079 || test ! -s conftest.err'
27080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27081 (eval $ac_try) 2>&5
27083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27084 (exit $ac_status); }; } &&
27085 { ac_try='test -s conftest$ac_exeext'
27086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27087 (eval $ac_try) 2>&5
27089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27090 (exit $ac_status); }; }; then
27091 eval "$as_ac_var=yes"
27093 echo "$as_me: failed program was:" >&5
27094 sed 's/^/| /' conftest.$ac_ext >&5
27096 eval "$as_ac_var=no"
27098 rm -f conftest.err conftest.$ac_objext \
27099 conftest$ac_exeext conftest.$ac_ext
27101 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27102 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27103 if test `eval echo '${'$as_ac_var'}'` = yes; then
27104 cat >>confdefs.h <<_ACEOF
27105 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27112 echo "$as_me:$LINENO: checking for va_copy" >&5
27113 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
27114 if test "${ba_cv_va_copy+set}" = set; then
27115 echo $ECHO_N "(cached) $ECHO_C" >&6
27117 cat >conftest.$ac_ext <<_ACEOF
27120 cat confdefs.h >>conftest.$ac_ext
27121 cat >>conftest.$ac_ext <<_ACEOF
27122 /* end confdefs.h. */
27124 #include <stdarg.h>
27125 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
27126 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
27131 call_use_va_copy(1,2,3)
27136 rm -f conftest.$ac_objext conftest$ac_exeext
27137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27138 (eval $ac_link) 2>conftest.er1
27140 grep -v '^ *+' conftest.er1 >conftest.err
27142 cat conftest.err >&5
27143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27144 (exit $ac_status); } &&
27145 { ac_try='test -z "$ac_c_werror_flag"
27146 || test ! -s conftest.err'
27147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27148 (eval $ac_try) 2>&5
27150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27151 (exit $ac_status); }; } &&
27152 { ac_try='test -s conftest$ac_exeext'
27153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27154 (eval $ac_try) 2>&5
27156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27157 (exit $ac_status); }; }; then
27160 echo "$as_me: failed program was:" >&5
27161 sed 's/^/| /' conftest.$ac_ext >&5
27165 rm -f conftest.err conftest.$ac_objext \
27166 conftest$ac_exeext conftest.$ac_ext
27168 echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
27169 echo "${ECHO_T}$ba_cv_va_copy" >&6
27170 test $ba_cv_va_copy = yes &&
27171 cat >>confdefs.h <<\_ACEOF
27172 #define HAVE_VA_COPY 1
27181 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
27183 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27184 echo "$as_me:$LINENO: checking for $ac_func" >&5
27185 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27186 if eval "test \"\${$as_ac_var+set}\" = set"; then
27187 echo $ECHO_N "(cached) $ECHO_C" >&6
27189 cat >conftest.$ac_ext <<_ACEOF
27192 cat confdefs.h >>conftest.$ac_ext
27193 cat >>conftest.$ac_ext <<_ACEOF
27194 /* end confdefs.h. */
27195 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27196 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27197 #define $ac_func innocuous_$ac_func
27199 /* System header to define __stub macros and hopefully few prototypes,
27200 which can conflict with char $ac_func (); below.
27201 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27202 <limits.h> exists even on freestanding compilers. */
27205 # include <limits.h>
27207 # include <assert.h>
27212 /* Override any gcc2 internal prototype to avoid an error. */
27217 /* We use char because int might match the return type of a gcc2
27218 builtin and then its argument prototype would still apply. */
27220 /* The GNU C library defines this for functions which it implements
27221 to always fail with ENOSYS. Some functions are actually named
27222 something starting with __ and the normal name is an alias. */
27223 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27226 char (*f) () = $ac_func;
27235 return f != $ac_func;
27240 rm -f conftest.$ac_objext conftest$ac_exeext
27241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27242 (eval $ac_link) 2>conftest.er1
27244 grep -v '^ *+' conftest.er1 >conftest.err
27246 cat conftest.err >&5
27247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27248 (exit $ac_status); } &&
27249 { ac_try='test -z "$ac_c_werror_flag"
27250 || test ! -s conftest.err'
27251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27252 (eval $ac_try) 2>&5
27254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27255 (exit $ac_status); }; } &&
27256 { ac_try='test -s conftest$ac_exeext'
27257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27258 (eval $ac_try) 2>&5
27260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27261 (exit $ac_status); }; }; then
27262 eval "$as_ac_var=yes"
27264 echo "$as_me: failed program was:" >&5
27265 sed 's/^/| /' conftest.$ac_ext >&5
27267 eval "$as_ac_var=no"
27269 rm -f conftest.err conftest.$ac_objext \
27270 conftest$ac_exeext conftest.$ac_ext
27272 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27273 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27274 if test `eval echo '${'$as_ac_var'}'` = yes; then
27275 cat >>confdefs.h <<_ACEOF
27276 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27283 # If resolver functions are not in libc check for -lnsl or -lresolv.
27284 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
27285 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
27286 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
27287 echo $ECHO_N "(cached) $ECHO_C" >&6
27289 cat >conftest.$ac_ext <<_ACEOF
27292 cat confdefs.h >>conftest.$ac_ext
27293 cat >>conftest.$ac_ext <<_ACEOF
27294 /* end confdefs.h. */
27295 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
27296 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27297 #define gethostbyname_r innocuous_gethostbyname_r
27299 /* System header to define __stub macros and hopefully few prototypes,
27300 which can conflict with char gethostbyname_r (); below.
27301 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27302 <limits.h> exists even on freestanding compilers. */
27305 # include <limits.h>
27307 # include <assert.h>
27310 #undef gethostbyname_r
27312 /* Override any gcc2 internal prototype to avoid an error. */
27317 /* We use char because int might match the return type of a gcc2
27318 builtin and then its argument prototype would still apply. */
27319 char gethostbyname_r ();
27320 /* The GNU C library defines this for functions which it implements
27321 to always fail with ENOSYS. Some functions are actually named
27322 something starting with __ and the normal name is an alias. */
27323 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
27326 char (*f) () = gethostbyname_r;
27335 return f != gethostbyname_r;
27340 rm -f conftest.$ac_objext conftest$ac_exeext
27341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27342 (eval $ac_link) 2>conftest.er1
27344 grep -v '^ *+' conftest.er1 >conftest.err
27346 cat conftest.err >&5
27347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27348 (exit $ac_status); } &&
27349 { ac_try='test -z "$ac_c_werror_flag"
27350 || test ! -s conftest.err'
27351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27352 (eval $ac_try) 2>&5
27354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27355 (exit $ac_status); }; } &&
27356 { ac_try='test -s conftest$ac_exeext'
27357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27358 (eval $ac_try) 2>&5
27360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27361 (exit $ac_status); }; }; then
27362 ac_cv_func_gethostbyname_r=yes
27364 echo "$as_me: failed program was:" >&5
27365 sed 's/^/| /' conftest.$ac_ext >&5
27367 ac_cv_func_gethostbyname_r=no
27369 rm -f conftest.err conftest.$ac_objext \
27370 conftest$ac_exeext conftest.$ac_ext
27372 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
27373 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
27374 if test $ac_cv_func_gethostbyname_r = yes; then
27375 echo "$as_me:$LINENO: result: using libc's resolver" >&5
27376 echo "${ECHO_T}using libc's resolver" >&6
27379 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
27380 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
27381 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
27382 echo $ECHO_N "(cached) $ECHO_C" >&6
27384 ac_check_lib_save_LIBS=$LIBS
27386 cat >conftest.$ac_ext <<_ACEOF
27389 cat confdefs.h >>conftest.$ac_ext
27390 cat >>conftest.$ac_ext <<_ACEOF
27391 /* end confdefs.h. */
27393 /* Override any gcc2 internal prototype to avoid an error. */
27397 /* We use char because int might match the return type of a gcc2
27398 builtin and then its argument prototype would still apply. */
27399 char gethostbyname_r ();
27403 gethostbyname_r ();
27408 rm -f conftest.$ac_objext conftest$ac_exeext
27409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27410 (eval $ac_link) 2>conftest.er1
27412 grep -v '^ *+' conftest.er1 >conftest.err
27414 cat conftest.err >&5
27415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27416 (exit $ac_status); } &&
27417 { ac_try='test -z "$ac_c_werror_flag"
27418 || test ! -s conftest.err'
27419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27420 (eval $ac_try) 2>&5
27422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27423 (exit $ac_status); }; } &&
27424 { ac_try='test -s conftest$ac_exeext'
27425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27426 (eval $ac_try) 2>&5
27428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27429 (exit $ac_status); }; }; then
27430 ac_cv_lib_nsl_gethostbyname_r=yes
27432 echo "$as_me: failed program was:" >&5
27433 sed 's/^/| /' conftest.$ac_ext >&5
27435 ac_cv_lib_nsl_gethostbyname_r=no
27437 rm -f conftest.err conftest.$ac_objext \
27438 conftest$ac_exeext conftest.$ac_ext
27439 LIBS=$ac_check_lib_save_LIBS
27441 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
27442 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
27443 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
27444 cat >>confdefs.h <<_ACEOF
27445 #define HAVE_LIBNSL 1
27453 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
27454 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
27455 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
27456 echo $ECHO_N "(cached) $ECHO_C" >&6
27458 ac_check_lib_save_LIBS=$LIBS
27459 LIBS="-lresolv $LIBS"
27460 cat >conftest.$ac_ext <<_ACEOF
27463 cat confdefs.h >>conftest.$ac_ext
27464 cat >>conftest.$ac_ext <<_ACEOF
27465 /* end confdefs.h. */
27467 /* Override any gcc2 internal prototype to avoid an error. */
27471 /* We use char because int might match the return type of a gcc2
27472 builtin and then its argument prototype would still apply. */
27473 char gethostbyname_r ();
27477 gethostbyname_r ();
27482 rm -f conftest.$ac_objext conftest$ac_exeext
27483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27484 (eval $ac_link) 2>conftest.er1
27486 grep -v '^ *+' conftest.er1 >conftest.err
27488 cat conftest.err >&5
27489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27490 (exit $ac_status); } &&
27491 { ac_try='test -z "$ac_c_werror_flag"
27492 || test ! -s conftest.err'
27493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27494 (eval $ac_try) 2>&5
27496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27497 (exit $ac_status); }; } &&
27498 { ac_try='test -s conftest$ac_exeext'
27499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27500 (eval $ac_try) 2>&5
27502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27503 (exit $ac_status); }; }; then
27504 ac_cv_lib_resolv_gethostbyname_r=yes
27506 echo "$as_me: failed program was:" >&5
27507 sed 's/^/| /' conftest.$ac_ext >&5
27509 ac_cv_lib_resolv_gethostbyname_r=no
27511 rm -f conftest.err conftest.$ac_objext \
27512 conftest$ac_exeext conftest.$ac_ext
27513 LIBS=$ac_check_lib_save_LIBS
27515 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
27516 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
27517 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
27518 cat >>confdefs.h <<_ACEOF
27519 #define HAVE_LIBRESOLV 1
27522 LIBS="-lresolv $LIBS"
27532 for ac_func in inet_pton
27534 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27535 echo "$as_me:$LINENO: checking for $ac_func" >&5
27536 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27537 if eval "test \"\${$as_ac_var+set}\" = set"; then
27538 echo $ECHO_N "(cached) $ECHO_C" >&6
27540 cat >conftest.$ac_ext <<_ACEOF
27543 cat confdefs.h >>conftest.$ac_ext
27544 cat >>conftest.$ac_ext <<_ACEOF
27545 /* end confdefs.h. */
27546 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27547 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27548 #define $ac_func innocuous_$ac_func
27550 /* System header to define __stub macros and hopefully few prototypes,
27551 which can conflict with char $ac_func (); below.
27552 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27553 <limits.h> exists even on freestanding compilers. */
27556 # include <limits.h>
27558 # include <assert.h>
27563 /* Override any gcc2 internal prototype to avoid an error. */
27568 /* We use char because int might match the return type of a gcc2
27569 builtin and then its argument prototype would still apply. */
27571 /* The GNU C library defines this for functions which it implements
27572 to always fail with ENOSYS. Some functions are actually named
27573 something starting with __ and the normal name is an alias. */
27574 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27577 char (*f) () = $ac_func;
27586 return f != $ac_func;
27591 rm -f conftest.$ac_objext conftest$ac_exeext
27592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27593 (eval $ac_link) 2>conftest.er1
27595 grep -v '^ *+' conftest.er1 >conftest.err
27597 cat conftest.err >&5
27598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27599 (exit $ac_status); } &&
27600 { ac_try='test -z "$ac_c_werror_flag"
27601 || test ! -s conftest.err'
27602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27603 (eval $ac_try) 2>&5
27605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27606 (exit $ac_status); }; } &&
27607 { ac_try='test -s conftest$ac_exeext'
27608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27609 (eval $ac_try) 2>&5
27611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27612 (exit $ac_status); }; }; then
27613 eval "$as_ac_var=yes"
27615 echo "$as_me: failed program was:" >&5
27616 sed 's/^/| /' conftest.$ac_ext >&5
27618 eval "$as_ac_var=no"
27620 rm -f conftest.err conftest.$ac_objext \
27621 conftest$ac_exeext conftest.$ac_ext
27623 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27624 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27625 if test `eval echo '${'$as_ac_var'}'` = yes; then
27626 cat >>confdefs.h <<_ACEOF
27627 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27629 cat >>confdefs.h <<\_ACEOF
27630 #define HAVE_INET_PTON 1
27637 for ac_func in inet_ntop
27639 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27640 echo "$as_me:$LINENO: checking for $ac_func" >&5
27641 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27642 if eval "test \"\${$as_ac_var+set}\" = set"; then
27643 echo $ECHO_N "(cached) $ECHO_C" >&6
27645 cat >conftest.$ac_ext <<_ACEOF
27648 cat confdefs.h >>conftest.$ac_ext
27649 cat >>conftest.$ac_ext <<_ACEOF
27650 /* end confdefs.h. */
27651 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27652 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27653 #define $ac_func innocuous_$ac_func
27655 /* System header to define __stub macros and hopefully few prototypes,
27656 which can conflict with char $ac_func (); below.
27657 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27658 <limits.h> exists even on freestanding compilers. */
27661 # include <limits.h>
27663 # include <assert.h>
27668 /* Override any gcc2 internal prototype to avoid an error. */
27673 /* We use char because int might match the return type of a gcc2
27674 builtin and then its argument prototype would still apply. */
27676 /* The GNU C library defines this for functions which it implements
27677 to always fail with ENOSYS. Some functions are actually named
27678 something starting with __ and the normal name is an alias. */
27679 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27682 char (*f) () = $ac_func;
27691 return f != $ac_func;
27696 rm -f conftest.$ac_objext conftest$ac_exeext
27697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27698 (eval $ac_link) 2>conftest.er1
27700 grep -v '^ *+' conftest.er1 >conftest.err
27702 cat conftest.err >&5
27703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27704 (exit $ac_status); } &&
27705 { ac_try='test -z "$ac_c_werror_flag"
27706 || test ! -s conftest.err'
27707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27708 (eval $ac_try) 2>&5
27710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27711 (exit $ac_status); }; } &&
27712 { ac_try='test -s conftest$ac_exeext'
27713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27714 (eval $ac_try) 2>&5
27716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27717 (exit $ac_status); }; }; then
27718 eval "$as_ac_var=yes"
27720 echo "$as_me: failed program was:" >&5
27721 sed 's/^/| /' conftest.$ac_ext >&5
27723 eval "$as_ac_var=no"
27725 rm -f conftest.err conftest.$ac_objext \
27726 conftest$ac_exeext conftest.$ac_ext
27728 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27729 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27730 if test `eval echo '${'$as_ac_var'}'` = yes; then
27731 cat >>confdefs.h <<_ACEOF
27732 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27734 cat >>confdefs.h <<\_ACEOF
27735 #define HAVE_INET_NTOP 1
27742 for ac_func in gethostbyname2
27744 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27745 echo "$as_me:$LINENO: checking for $ac_func" >&5
27746 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27747 if eval "test \"\${$as_ac_var+set}\" = set"; then
27748 echo $ECHO_N "(cached) $ECHO_C" >&6
27750 cat >conftest.$ac_ext <<_ACEOF
27753 cat confdefs.h >>conftest.$ac_ext
27754 cat >>conftest.$ac_ext <<_ACEOF
27755 /* end confdefs.h. */
27756 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27757 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27758 #define $ac_func innocuous_$ac_func
27760 /* System header to define __stub macros and hopefully few prototypes,
27761 which can conflict with char $ac_func (); below.
27762 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27763 <limits.h> exists even on freestanding compilers. */
27766 # include <limits.h>
27768 # include <assert.h>
27773 /* Override any gcc2 internal prototype to avoid an error. */
27778 /* We use char because int might match the return type of a gcc2
27779 builtin and then its argument prototype would still apply. */
27781 /* The GNU C library defines this for functions which it implements
27782 to always fail with ENOSYS. Some functions are actually named
27783 something starting with __ and the normal name is an alias. */
27784 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27787 char (*f) () = $ac_func;
27796 return f != $ac_func;
27801 rm -f conftest.$ac_objext conftest$ac_exeext
27802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27803 (eval $ac_link) 2>conftest.er1
27805 grep -v '^ *+' conftest.er1 >conftest.err
27807 cat conftest.err >&5
27808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27809 (exit $ac_status); } &&
27810 { ac_try='test -z "$ac_c_werror_flag"
27811 || test ! -s conftest.err'
27812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27813 (eval $ac_try) 2>&5
27815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27816 (exit $ac_status); }; } &&
27817 { ac_try='test -s conftest$ac_exeext'
27818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27819 (eval $ac_try) 2>&5
27821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27822 (exit $ac_status); }; }; then
27823 eval "$as_ac_var=yes"
27825 echo "$as_me: failed program was:" >&5
27826 sed 's/^/| /' conftest.$ac_ext >&5
27828 eval "$as_ac_var=no"
27830 rm -f conftest.err conftest.$ac_objext \
27831 conftest$ac_exeext conftest.$ac_ext
27833 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27834 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27835 if test `eval echo '${'$as_ac_var'}'` = yes; then
27836 cat >>confdefs.h <<_ACEOF
27837 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27839 cat >>confdefs.h <<\_ACEOF
27840 #define HAVE_GETHOSTBYNAME2 1
27847 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
27848 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
27849 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
27850 echo $ECHO_N "(cached) $ECHO_C" >&6
27852 cat >conftest.$ac_ext <<_ACEOF
27855 cat confdefs.h >>conftest.$ac_ext
27856 cat >>conftest.$ac_ext <<_ACEOF
27857 /* end confdefs.h. */
27858 #include <sys/socket.h>
27862 struct sockaddr s; s.sa_len;
27867 rm -f conftest.$ac_objext
27868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27869 (eval $ac_compile) 2>conftest.er1
27871 grep -v '^ *+' conftest.er1 >conftest.err
27873 cat conftest.err >&5
27874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27875 (exit $ac_status); } &&
27876 { ac_try='test -z "$ac_c_werror_flag"
27877 || test ! -s conftest.err'
27878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27879 (eval $ac_try) 2>&5
27881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27882 (exit $ac_status); }; } &&
27883 { ac_try='test -s conftest.$ac_objext'
27884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27885 (eval $ac_try) 2>&5
27887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27888 (exit $ac_status); }; }; then
27889 ac_cv_struct_sockaddr_sa_len=yes
27891 echo "$as_me: failed program was:" >&5
27892 sed 's/^/| /' conftest.$ac_ext >&5
27894 ac_cv_struct_sockaddr_sa_len=no
27896 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27898 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
27899 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
27901 if test $ac_cv_struct_sockaddr_sa_len = yes; then
27903 cat >>confdefs.h <<\_ACEOF
27904 #define HAVE_SA_LEN 1
27913 for ac_func in strftime
27915 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27916 echo "$as_me:$LINENO: checking for $ac_func" >&5
27917 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27918 if eval "test \"\${$as_ac_var+set}\" = set"; then
27919 echo $ECHO_N "(cached) $ECHO_C" >&6
27921 cat >conftest.$ac_ext <<_ACEOF
27924 cat confdefs.h >>conftest.$ac_ext
27925 cat >>conftest.$ac_ext <<_ACEOF
27926 /* end confdefs.h. */
27927 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27928 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27929 #define $ac_func innocuous_$ac_func
27931 /* System header to define __stub macros and hopefully few prototypes,
27932 which can conflict with char $ac_func (); below.
27933 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27934 <limits.h> exists even on freestanding compilers. */
27937 # include <limits.h>
27939 # include <assert.h>
27944 /* Override any gcc2 internal prototype to avoid an error. */
27949 /* We use char because int might match the return type of a gcc2
27950 builtin and then its argument prototype would still apply. */
27952 /* The GNU C library defines this for functions which it implements
27953 to always fail with ENOSYS. Some functions are actually named
27954 something starting with __ and the normal name is an alias. */
27955 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27958 char (*f) () = $ac_func;
27967 return f != $ac_func;
27972 rm -f conftest.$ac_objext conftest$ac_exeext
27973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27974 (eval $ac_link) 2>conftest.er1
27976 grep -v '^ *+' conftest.er1 >conftest.err
27978 cat conftest.err >&5
27979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27980 (exit $ac_status); } &&
27981 { ac_try='test -z "$ac_c_werror_flag"
27982 || test ! -s conftest.err'
27983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27984 (eval $ac_try) 2>&5
27986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27987 (exit $ac_status); }; } &&
27988 { ac_try='test -s conftest$ac_exeext'
27989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27990 (eval $ac_try) 2>&5
27992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27993 (exit $ac_status); }; }; then
27994 eval "$as_ac_var=yes"
27996 echo "$as_me: failed program was:" >&5
27997 sed 's/^/| /' conftest.$ac_ext >&5
27999 eval "$as_ac_var=no"
28001 rm -f conftest.err conftest.$ac_objext \
28002 conftest$ac_exeext conftest.$ac_ext
28004 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28005 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28006 if test `eval echo '${'$as_ac_var'}'` = yes; then
28007 cat >>confdefs.h <<_ACEOF
28008 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28012 # strftime is in -lintl on SCO UNIX.
28013 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
28014 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
28015 if test "${ac_cv_lib_intl_strftime+set}" = set; then
28016 echo $ECHO_N "(cached) $ECHO_C" >&6
28018 ac_check_lib_save_LIBS=$LIBS
28019 LIBS="-lintl $LIBS"
28020 cat >conftest.$ac_ext <<_ACEOF
28023 cat confdefs.h >>conftest.$ac_ext
28024 cat >>conftest.$ac_ext <<_ACEOF
28025 /* end confdefs.h. */
28027 /* Override any gcc2 internal prototype to avoid an error. */
28031 /* We use char because int might match the return type of a gcc2
28032 builtin and then its argument prototype would still apply. */
28042 rm -f conftest.$ac_objext conftest$ac_exeext
28043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28044 (eval $ac_link) 2>conftest.er1
28046 grep -v '^ *+' conftest.er1 >conftest.err
28048 cat conftest.err >&5
28049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28050 (exit $ac_status); } &&
28051 { ac_try='test -z "$ac_c_werror_flag"
28052 || test ! -s conftest.err'
28053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28054 (eval $ac_try) 2>&5
28056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28057 (exit $ac_status); }; } &&
28058 { ac_try='test -s conftest$ac_exeext'
28059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28060 (eval $ac_try) 2>&5
28062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28063 (exit $ac_status); }; }; then
28064 ac_cv_lib_intl_strftime=yes
28066 echo "$as_me: failed program was:" >&5
28067 sed 's/^/| /' conftest.$ac_ext >&5
28069 ac_cv_lib_intl_strftime=no
28071 rm -f conftest.err conftest.$ac_objext \
28072 conftest$ac_exeext conftest.$ac_ext
28073 LIBS=$ac_check_lib_save_LIBS
28075 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
28076 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
28077 if test $ac_cv_lib_intl_strftime = yes; then
28078 cat >>confdefs.h <<\_ACEOF
28079 #define HAVE_STRFTIME 1
28082 LIBS="-lintl $LIBS"
28089 for ac_func in vprintf
28091 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28092 echo "$as_me:$LINENO: checking for $ac_func" >&5
28093 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28094 if eval "test \"\${$as_ac_var+set}\" = set"; then
28095 echo $ECHO_N "(cached) $ECHO_C" >&6
28097 cat >conftest.$ac_ext <<_ACEOF
28100 cat confdefs.h >>conftest.$ac_ext
28101 cat >>conftest.$ac_ext <<_ACEOF
28102 /* end confdefs.h. */
28103 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28104 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28105 #define $ac_func innocuous_$ac_func
28107 /* System header to define __stub macros and hopefully few prototypes,
28108 which can conflict with char $ac_func (); below.
28109 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28110 <limits.h> exists even on freestanding compilers. */
28113 # include <limits.h>
28115 # include <assert.h>
28120 /* Override any gcc2 internal prototype to avoid an error. */
28125 /* We use char because int might match the return type of a gcc2
28126 builtin and then its argument prototype would still apply. */
28128 /* The GNU C library defines this for functions which it implements
28129 to always fail with ENOSYS. Some functions are actually named
28130 something starting with __ and the normal name is an alias. */
28131 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28134 char (*f) () = $ac_func;
28143 return f != $ac_func;
28148 rm -f conftest.$ac_objext conftest$ac_exeext
28149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28150 (eval $ac_link) 2>conftest.er1
28152 grep -v '^ *+' conftest.er1 >conftest.err
28154 cat conftest.err >&5
28155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28156 (exit $ac_status); } &&
28157 { ac_try='test -z "$ac_c_werror_flag"
28158 || test ! -s conftest.err'
28159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28160 (eval $ac_try) 2>&5
28162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28163 (exit $ac_status); }; } &&
28164 { ac_try='test -s conftest$ac_exeext'
28165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28166 (eval $ac_try) 2>&5
28168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28169 (exit $ac_status); }; }; then
28170 eval "$as_ac_var=yes"
28172 echo "$as_me: failed program was:" >&5
28173 sed 's/^/| /' conftest.$ac_ext >&5
28175 eval "$as_ac_var=no"
28177 rm -f conftest.err conftest.$ac_objext \
28178 conftest$ac_exeext conftest.$ac_ext
28180 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28181 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28182 if test `eval echo '${'$as_ac_var'}'` = yes; then
28183 cat >>confdefs.h <<_ACEOF
28184 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28187 echo "$as_me:$LINENO: checking for _doprnt" >&5
28188 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
28189 if test "${ac_cv_func__doprnt+set}" = set; then
28190 echo $ECHO_N "(cached) $ECHO_C" >&6
28192 cat >conftest.$ac_ext <<_ACEOF
28195 cat confdefs.h >>conftest.$ac_ext
28196 cat >>conftest.$ac_ext <<_ACEOF
28197 /* end confdefs.h. */
28198 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
28199 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28200 #define _doprnt innocuous__doprnt
28202 /* System header to define __stub macros and hopefully few prototypes,
28203 which can conflict with char _doprnt (); below.
28204 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28205 <limits.h> exists even on freestanding compilers. */
28208 # include <limits.h>
28210 # include <assert.h>
28215 /* Override any gcc2 internal prototype to avoid an error. */
28220 /* We use char because int might match the return type of a gcc2
28221 builtin and then its argument prototype would still apply. */
28223 /* The GNU C library defines this for functions which it implements
28224 to always fail with ENOSYS. Some functions are actually named
28225 something starting with __ and the normal name is an alias. */
28226 #if defined (__stub__doprnt) || defined (__stub____doprnt)
28229 char (*f) () = _doprnt;
28238 return f != _doprnt;
28243 rm -f conftest.$ac_objext conftest$ac_exeext
28244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28245 (eval $ac_link) 2>conftest.er1
28247 grep -v '^ *+' conftest.er1 >conftest.err
28249 cat conftest.err >&5
28250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28251 (exit $ac_status); } &&
28252 { ac_try='test -z "$ac_c_werror_flag"
28253 || test ! -s conftest.err'
28254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28255 (eval $ac_try) 2>&5
28257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28258 (exit $ac_status); }; } &&
28259 { ac_try='test -s conftest$ac_exeext'
28260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28261 (eval $ac_try) 2>&5
28263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28264 (exit $ac_status); }; }; then
28265 ac_cv_func__doprnt=yes
28267 echo "$as_me: failed program was:" >&5
28268 sed 's/^/| /' conftest.$ac_ext >&5
28270 ac_cv_func__doprnt=no
28272 rm -f conftest.err conftest.$ac_objext \
28273 conftest$ac_exeext conftest.$ac_ext
28275 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
28276 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
28277 if test $ac_cv_func__doprnt = yes; then
28279 cat >>confdefs.h <<\_ACEOF
28280 #define HAVE_DOPRNT 1
28289 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28290 # for constant arguments. Useless!
28291 echo "$as_me:$LINENO: checking for working alloca.h" >&5
28292 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
28293 if test "${ac_cv_working_alloca_h+set}" = set; then
28294 echo $ECHO_N "(cached) $ECHO_C" >&6
28296 cat >conftest.$ac_ext <<_ACEOF
28299 cat confdefs.h >>conftest.$ac_ext
28300 cat >>conftest.$ac_ext <<_ACEOF
28301 /* end confdefs.h. */
28302 #include <alloca.h>
28306 char *p = (char *) alloca (2 * sizeof (int));
28311 rm -f conftest.$ac_objext conftest$ac_exeext
28312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28313 (eval $ac_link) 2>conftest.er1
28315 grep -v '^ *+' conftest.er1 >conftest.err
28317 cat conftest.err >&5
28318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28319 (exit $ac_status); } &&
28320 { ac_try='test -z "$ac_c_werror_flag"
28321 || test ! -s conftest.err'
28322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28323 (eval $ac_try) 2>&5
28325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28326 (exit $ac_status); }; } &&
28327 { ac_try='test -s conftest$ac_exeext'
28328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28329 (eval $ac_try) 2>&5
28331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28332 (exit $ac_status); }; }; then
28333 ac_cv_working_alloca_h=yes
28335 echo "$as_me: failed program was:" >&5
28336 sed 's/^/| /' conftest.$ac_ext >&5
28338 ac_cv_working_alloca_h=no
28340 rm -f conftest.err conftest.$ac_objext \
28341 conftest$ac_exeext conftest.$ac_ext
28343 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
28344 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
28345 if test $ac_cv_working_alloca_h = yes; then
28347 cat >>confdefs.h <<\_ACEOF
28348 #define HAVE_ALLOCA_H 1
28353 echo "$as_me:$LINENO: checking for alloca" >&5
28354 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
28355 if test "${ac_cv_func_alloca_works+set}" = set; then
28356 echo $ECHO_N "(cached) $ECHO_C" >&6
28358 cat >conftest.$ac_ext <<_ACEOF
28361 cat confdefs.h >>conftest.$ac_ext
28362 cat >>conftest.$ac_ext <<_ACEOF
28363 /* end confdefs.h. */
28365 # define alloca __builtin_alloca
28368 # include <malloc.h>
28369 # define alloca _alloca
28372 # include <alloca.h>
28377 # ifndef alloca /* predefined by HP cc +Olibcalls */
28388 char *p = (char *) alloca (1);
28393 rm -f conftest.$ac_objext conftest$ac_exeext
28394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28395 (eval $ac_link) 2>conftest.er1
28397 grep -v '^ *+' conftest.er1 >conftest.err
28399 cat conftest.err >&5
28400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28401 (exit $ac_status); } &&
28402 { ac_try='test -z "$ac_c_werror_flag"
28403 || test ! -s conftest.err'
28404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28405 (eval $ac_try) 2>&5
28407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28408 (exit $ac_status); }; } &&
28409 { ac_try='test -s conftest$ac_exeext'
28410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28411 (eval $ac_try) 2>&5
28413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28414 (exit $ac_status); }; }; then
28415 ac_cv_func_alloca_works=yes
28417 echo "$as_me: failed program was:" >&5
28418 sed 's/^/| /' conftest.$ac_ext >&5
28420 ac_cv_func_alloca_works=no
28422 rm -f conftest.err conftest.$ac_objext \
28423 conftest$ac_exeext conftest.$ac_ext
28425 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
28426 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
28428 if test $ac_cv_func_alloca_works = yes; then
28430 cat >>confdefs.h <<\_ACEOF
28431 #define HAVE_ALLOCA 1
28435 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28436 # that cause trouble. Some versions do not even contain alloca or
28437 # contain a buggy version. If you still want to use their alloca,
28438 # use ar to extract alloca.o from them instead of compiling alloca.c.
28440 ALLOCA=alloca.$ac_objext
28442 cat >>confdefs.h <<\_ACEOF
28447 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
28448 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
28449 if test "${ac_cv_os_cray+set}" = set; then
28450 echo $ECHO_N "(cached) $ECHO_C" >&6
28452 cat >conftest.$ac_ext <<_ACEOF
28455 cat confdefs.h >>conftest.$ac_ext
28456 cat >>conftest.$ac_ext <<_ACEOF
28457 /* end confdefs.h. */
28458 #if defined(CRAY) && ! defined(CRAY2)
28465 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28466 $EGREP "webecray" >/dev/null 2>&1; then
28474 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
28475 echo "${ECHO_T}$ac_cv_os_cray" >&6
28476 if test $ac_cv_os_cray = yes; then
28477 for ac_func in _getb67 GETB67 getb67; do
28478 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28479 echo "$as_me:$LINENO: checking for $ac_func" >&5
28480 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28481 if eval "test \"\${$as_ac_var+set}\" = set"; then
28482 echo $ECHO_N "(cached) $ECHO_C" >&6
28484 cat >conftest.$ac_ext <<_ACEOF
28487 cat confdefs.h >>conftest.$ac_ext
28488 cat >>conftest.$ac_ext <<_ACEOF
28489 /* end confdefs.h. */
28490 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28491 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28492 #define $ac_func innocuous_$ac_func
28494 /* System header to define __stub macros and hopefully few prototypes,
28495 which can conflict with char $ac_func (); below.
28496 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28497 <limits.h> exists even on freestanding compilers. */
28500 # include <limits.h>
28502 # include <assert.h>
28507 /* Override any gcc2 internal prototype to avoid an error. */
28512 /* We use char because int might match the return type of a gcc2
28513 builtin and then its argument prototype would still apply. */
28515 /* The GNU C library defines this for functions which it implements
28516 to always fail with ENOSYS. Some functions are actually named
28517 something starting with __ and the normal name is an alias. */
28518 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28521 char (*f) () = $ac_func;
28530 return f != $ac_func;
28535 rm -f conftest.$ac_objext conftest$ac_exeext
28536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28537 (eval $ac_link) 2>conftest.er1
28539 grep -v '^ *+' conftest.er1 >conftest.err
28541 cat conftest.err >&5
28542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28543 (exit $ac_status); } &&
28544 { ac_try='test -z "$ac_c_werror_flag"
28545 || test ! -s conftest.err'
28546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28547 (eval $ac_try) 2>&5
28549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28550 (exit $ac_status); }; } &&
28551 { ac_try='test -s conftest$ac_exeext'
28552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28553 (eval $ac_try) 2>&5
28555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28556 (exit $ac_status); }; }; then
28557 eval "$as_ac_var=yes"
28559 echo "$as_me: failed program was:" >&5
28560 sed 's/^/| /' conftest.$ac_ext >&5
28562 eval "$as_ac_var=no"
28564 rm -f conftest.err conftest.$ac_objext \
28565 conftest$ac_exeext conftest.$ac_ext
28567 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28568 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28569 if test `eval echo '${'$as_ac_var'}'` = yes; then
28571 cat >>confdefs.h <<_ACEOF
28572 #define CRAY_STACKSEG_END $ac_func
28581 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28582 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
28583 if test "${ac_cv_c_stack_direction+set}" = set; then
28584 echo $ECHO_N "(cached) $ECHO_C" >&6
28586 if test "$cross_compiling" = yes; then
28587 ac_cv_c_stack_direction=0
28589 cat >conftest.$ac_ext <<_ACEOF
28592 cat confdefs.h >>conftest.$ac_ext
28593 cat >>conftest.$ac_ext <<_ACEOF
28594 /* end confdefs.h. */
28596 find_stack_direction ()
28598 static char *addr = 0;
28603 return find_stack_direction ();
28606 return (&dummy > addr) ? 1 : -1;
28612 exit (find_stack_direction () < 0);
28615 rm -f conftest$ac_exeext
28616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28617 (eval $ac_link) 2>&5
28619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28620 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28622 (eval $ac_try) 2>&5
28624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28625 (exit $ac_status); }; }; then
28626 ac_cv_c_stack_direction=1
28628 echo "$as_me: program exited with status $ac_status" >&5
28629 echo "$as_me: failed program was:" >&5
28630 sed 's/^/| /' conftest.$ac_ext >&5
28632 ( exit $ac_status )
28633 ac_cv_c_stack_direction=-1
28635 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28638 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28639 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
28641 cat >>confdefs.h <<_ACEOF
28642 #define STACK_DIRECTION $ac_cv_c_stack_direction
28648 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
28649 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
28650 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
28651 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
28652 echo $ECHO_N "(cached) $ECHO_C" >&6
28654 ac_check_lib_save_LIBS=$LIBS
28656 cat >conftest.$ac_ext <<_ACEOF
28659 cat confdefs.h >>conftest.$ac_ext
28660 cat >>conftest.$ac_ext <<_ACEOF
28661 /* end confdefs.h. */
28663 /* Override any gcc2 internal prototype to avoid an error. */
28667 /* We use char because int might match the return type of a gcc2
28668 builtin and then its argument prototype would still apply. */
28678 rm -f conftest.$ac_objext conftest$ac_exeext
28679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28680 (eval $ac_link) 2>conftest.er1
28682 grep -v '^ *+' conftest.er1 >conftest.err
28684 cat conftest.err >&5
28685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28686 (exit $ac_status); } &&
28687 { ac_try='test -z "$ac_c_werror_flag"
28688 || test ! -s conftest.err'
28689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28690 (eval $ac_try) 2>&5
28692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28693 (exit $ac_status); }; } &&
28694 { ac_try='test -s conftest$ac_exeext'
28695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28696 (eval $ac_try) 2>&5
28698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28699 (exit $ac_status); }; }; then
28700 ac_cv_lib_sun_getmntent=yes
28702 echo "$as_me: failed program was:" >&5
28703 sed 's/^/| /' conftest.$ac_ext >&5
28705 ac_cv_lib_sun_getmntent=no
28707 rm -f conftest.err conftest.$ac_objext \
28708 conftest$ac_exeext conftest.$ac_ext
28709 LIBS=$ac_check_lib_save_LIBS
28711 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
28712 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
28713 if test $ac_cv_lib_sun_getmntent = yes; then
28716 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
28717 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
28718 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
28719 echo $ECHO_N "(cached) $ECHO_C" >&6
28721 ac_check_lib_save_LIBS=$LIBS
28723 cat >conftest.$ac_ext <<_ACEOF
28726 cat confdefs.h >>conftest.$ac_ext
28727 cat >>conftest.$ac_ext <<_ACEOF
28728 /* end confdefs.h. */
28730 /* Override any gcc2 internal prototype to avoid an error. */
28734 /* We use char because int might match the return type of a gcc2
28735 builtin and then its argument prototype would still apply. */
28745 rm -f conftest.$ac_objext conftest$ac_exeext
28746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28747 (eval $ac_link) 2>conftest.er1
28749 grep -v '^ *+' conftest.er1 >conftest.err
28751 cat conftest.err >&5
28752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28753 (exit $ac_status); } &&
28754 { ac_try='test -z "$ac_c_werror_flag"
28755 || test ! -s conftest.err'
28756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28757 (eval $ac_try) 2>&5
28759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28760 (exit $ac_status); }; } &&
28761 { ac_try='test -s conftest$ac_exeext'
28762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28763 (eval $ac_try) 2>&5
28765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28766 (exit $ac_status); }; }; then
28767 ac_cv_lib_seq_getmntent=yes
28769 echo "$as_me: failed program was:" >&5
28770 sed 's/^/| /' conftest.$ac_ext >&5
28772 ac_cv_lib_seq_getmntent=no
28774 rm -f conftest.err conftest.$ac_objext \
28775 conftest$ac_exeext conftest.$ac_ext
28776 LIBS=$ac_check_lib_save_LIBS
28778 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
28779 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
28780 if test $ac_cv_lib_seq_getmntent = yes; then
28783 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
28784 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
28785 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
28786 echo $ECHO_N "(cached) $ECHO_C" >&6
28788 ac_check_lib_save_LIBS=$LIBS
28790 cat >conftest.$ac_ext <<_ACEOF
28793 cat confdefs.h >>conftest.$ac_ext
28794 cat >>conftest.$ac_ext <<_ACEOF
28795 /* end confdefs.h. */
28797 /* Override any gcc2 internal prototype to avoid an error. */
28801 /* We use char because int might match the return type of a gcc2
28802 builtin and then its argument prototype would still apply. */
28812 rm -f conftest.$ac_objext conftest$ac_exeext
28813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28814 (eval $ac_link) 2>conftest.er1
28816 grep -v '^ *+' conftest.er1 >conftest.err
28818 cat conftest.err >&5
28819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28820 (exit $ac_status); } &&
28821 { ac_try='test -z "$ac_c_werror_flag"
28822 || test ! -s conftest.err'
28823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28824 (eval $ac_try) 2>&5
28826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28827 (exit $ac_status); }; } &&
28828 { ac_try='test -s conftest$ac_exeext'
28829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28830 (eval $ac_try) 2>&5
28832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28833 (exit $ac_status); }; }; then
28834 ac_cv_lib_gen_getmntent=yes
28836 echo "$as_me: failed program was:" >&5
28837 sed 's/^/| /' conftest.$ac_ext >&5
28839 ac_cv_lib_gen_getmntent=no
28841 rm -f conftest.err conftest.$ac_objext \
28842 conftest$ac_exeext conftest.$ac_ext
28843 LIBS=$ac_check_lib_save_LIBS
28845 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
28846 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
28847 if test $ac_cv_lib_gen_getmntent = yes; then
28856 for ac_func in getmntent
28858 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28859 echo "$as_me:$LINENO: checking for $ac_func" >&5
28860 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28861 if eval "test \"\${$as_ac_var+set}\" = set"; then
28862 echo $ECHO_N "(cached) $ECHO_C" >&6
28864 cat >conftest.$ac_ext <<_ACEOF
28867 cat confdefs.h >>conftest.$ac_ext
28868 cat >>conftest.$ac_ext <<_ACEOF
28869 /* end confdefs.h. */
28870 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28871 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28872 #define $ac_func innocuous_$ac_func
28874 /* System header to define __stub macros and hopefully few prototypes,
28875 which can conflict with char $ac_func (); below.
28876 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28877 <limits.h> exists even on freestanding compilers. */
28880 # include <limits.h>
28882 # include <assert.h>
28887 /* Override any gcc2 internal prototype to avoid an error. */
28892 /* We use char because int might match the return type of a gcc2
28893 builtin and then its argument prototype would still apply. */
28895 /* The GNU C library defines this for functions which it implements
28896 to always fail with ENOSYS. Some functions are actually named
28897 something starting with __ and the normal name is an alias. */
28898 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28901 char (*f) () = $ac_func;
28910 return f != $ac_func;
28915 rm -f conftest.$ac_objext conftest$ac_exeext
28916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28917 (eval $ac_link) 2>conftest.er1
28919 grep -v '^ *+' conftest.er1 >conftest.err
28921 cat conftest.err >&5
28922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28923 (exit $ac_status); } &&
28924 { ac_try='test -z "$ac_c_werror_flag"
28925 || test ! -s conftest.err'
28926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28927 (eval $ac_try) 2>&5
28929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28930 (exit $ac_status); }; } &&
28931 { ac_try='test -s conftest$ac_exeext'
28932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28933 (eval $ac_try) 2>&5
28935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28936 (exit $ac_status); }; }; then
28937 eval "$as_ac_var=yes"
28939 echo "$as_me: failed program was:" >&5
28940 sed 's/^/| /' conftest.$ac_ext >&5
28942 eval "$as_ac_var=no"
28944 rm -f conftest.err conftest.$ac_objext \
28945 conftest$ac_exeext conftest.$ac_ext
28947 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28948 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28949 if test `eval echo '${'$as_ac_var'}'` = yes; then
28950 cat >>confdefs.h <<_ACEOF
28951 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28958 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
28959 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
28960 if test "${ac_cv_func_closedir_void+set}" = set; then
28961 echo $ECHO_N "(cached) $ECHO_C" >&6
28963 if test "$cross_compiling" = yes; then
28964 ac_cv_func_closedir_void=yes
28966 cat >conftest.$ac_ext <<_ACEOF
28969 cat confdefs.h >>conftest.$ac_ext
28970 cat >>conftest.$ac_ext <<_ACEOF
28971 /* end confdefs.h. */
28972 $ac_includes_default
28973 #include <$ac_header_dirent>
28974 #ifndef __cplusplus
28981 exit (closedir (opendir (".")) != 0);
28986 rm -f conftest$ac_exeext
28987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28988 (eval $ac_link) 2>&5
28990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28991 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28993 (eval $ac_try) 2>&5
28995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28996 (exit $ac_status); }; }; then
28997 ac_cv_func_closedir_void=no
28999 echo "$as_me: program exited with status $ac_status" >&5
29000 echo "$as_me: failed program was:" >&5
29001 sed 's/^/| /' conftest.$ac_ext >&5
29003 ( exit $ac_status )
29004 ac_cv_func_closedir_void=yes
29006 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29009 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
29010 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
29011 if test $ac_cv_func_closedir_void = yes; then
29013 cat >>confdefs.h <<\_ACEOF
29014 #define CLOSEDIR_VOID 1
29019 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
29020 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
29021 if test "${ac_cv_func_setpgrp_void+set}" = set; then
29022 echo $ECHO_N "(cached) $ECHO_C" >&6
29024 if test "$cross_compiling" = yes; then
29025 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
29026 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
29027 { (exit 1); exit 1; }; }
29029 cat >conftest.$ac_ext <<_ACEOF
29032 cat confdefs.h >>conftest.$ac_ext
29033 cat >>conftest.$ac_ext <<_ACEOF
29034 /* end confdefs.h. */
29036 # include <unistd.h>
29042 /* If this system has a BSD-style setpgrp which takes arguments,
29043 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
29044 exit successfully. */
29045 exit (setpgrp (1,1) == -1 ? 0 : 1);
29050 rm -f conftest$ac_exeext
29051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29052 (eval $ac_link) 2>&5
29054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29055 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29057 (eval $ac_try) 2>&5
29059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29060 (exit $ac_status); }; }; then
29061 ac_cv_func_setpgrp_void=no
29063 echo "$as_me: program exited with status $ac_status" >&5
29064 echo "$as_me: failed program was:" >&5
29065 sed 's/^/| /' conftest.$ac_ext >&5
29067 ( exit $ac_status )
29068 ac_cv_func_setpgrp_void=yes
29070 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29073 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
29074 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
29075 if test $ac_cv_func_setpgrp_void = yes; then
29077 cat >>confdefs.h <<\_ACEOF
29078 #define SETPGRP_VOID 1
29082 # AC_FUNC_FNMATCH dnl use local version
29085 echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
29086 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6
29087 if test "${ac_cv_lib_intl_gettext+set}" = set; then
29088 echo $ECHO_N "(cached) $ECHO_C" >&6
29090 ac_check_lib_save_LIBS=$LIBS
29091 LIBS="-lintl $LIBS"
29092 cat >conftest.$ac_ext <<_ACEOF
29095 cat confdefs.h >>conftest.$ac_ext
29096 cat >>conftest.$ac_ext <<_ACEOF
29097 /* end confdefs.h. */
29099 /* Override any gcc2 internal prototype to avoid an error. */
29103 /* We use char because int might match the return type of a gcc2
29104 builtin and then its argument prototype would still apply. */
29114 rm -f conftest.$ac_objext conftest$ac_exeext
29115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29116 (eval $ac_link) 2>conftest.er1
29118 grep -v '^ *+' conftest.er1 >conftest.err
29120 cat conftest.err >&5
29121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29122 (exit $ac_status); } &&
29123 { ac_try='test -z "$ac_c_werror_flag"
29124 || test ! -s conftest.err'
29125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29126 (eval $ac_try) 2>&5
29128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29129 (exit $ac_status); }; } &&
29130 { ac_try='test -s conftest$ac_exeext'
29131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29132 (eval $ac_try) 2>&5
29134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29135 (exit $ac_status); }; }; then
29136 ac_cv_lib_intl_gettext=yes
29138 echo "$as_me: failed program was:" >&5
29139 sed 's/^/| /' conftest.$ac_ext >&5
29141 ac_cv_lib_intl_gettext=no
29143 rm -f conftest.err conftest.$ac_objext \
29144 conftest$ac_exeext conftest.$ac_ext
29145 LIBS=$ac_check_lib_save_LIBS
29147 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
29148 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6
29149 if test $ac_cv_lib_intl_gettext = yes; then
29150 LIBS="$LIBS -lintl"
29156 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
29157 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
29158 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
29159 echo $ECHO_N "(cached) $ECHO_C" >&6
29161 ac_check_lib_save_LIBS=$LIBS
29163 cat >conftest.$ac_ext <<_ACEOF
29166 cat confdefs.h >>conftest.$ac_ext
29167 cat >>conftest.$ac_ext <<_ACEOF
29168 /* end confdefs.h. */
29170 /* Override any gcc2 internal prototype to avoid an error. */
29174 /* We use char because int might match the return type of a gcc2
29175 builtin and then its argument prototype would still apply. */
29185 rm -f conftest.$ac_objext conftest$ac_exeext
29186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29187 (eval $ac_link) 2>conftest.er1
29189 grep -v '^ *+' conftest.er1 >conftest.err
29191 cat conftest.err >&5
29192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29193 (exit $ac_status); } &&
29194 { ac_try='test -z "$ac_c_werror_flag"
29195 || test ! -s conftest.err'
29196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29197 (eval $ac_try) 2>&5
29199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29200 (exit $ac_status); }; } &&
29201 { ac_try='test -s conftest$ac_exeext'
29202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29203 (eval $ac_try) 2>&5
29205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29206 (exit $ac_status); }; }; then
29207 ac_cv_lib_sun_getpwnam=yes
29209 echo "$as_me: failed program was:" >&5
29210 sed 's/^/| /' conftest.$ac_ext >&5
29212 ac_cv_lib_sun_getpwnam=no
29214 rm -f conftest.err conftest.$ac_objext \
29215 conftest$ac_exeext conftest.$ac_ext
29216 LIBS=$ac_check_lib_save_LIBS
29218 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
29219 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
29220 if test $ac_cv_lib_sun_getpwnam = yes; then
29221 cat >>confdefs.h <<_ACEOF
29222 #define HAVE_LIBSUN 1
29231 for ac_header in zlib.h
29233 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29234 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29235 echo "$as_me:$LINENO: checking for $ac_header" >&5
29236 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29237 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29238 echo $ECHO_N "(cached) $ECHO_C" >&6
29240 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29241 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29243 # Is the header compilable?
29244 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29245 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29246 cat >conftest.$ac_ext <<_ACEOF
29249 cat confdefs.h >>conftest.$ac_ext
29250 cat >>conftest.$ac_ext <<_ACEOF
29251 /* end confdefs.h. */
29252 $ac_includes_default
29253 #include <$ac_header>
29255 rm -f conftest.$ac_objext
29256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29257 (eval $ac_compile) 2>conftest.er1
29259 grep -v '^ *+' conftest.er1 >conftest.err
29261 cat conftest.err >&5
29262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29263 (exit $ac_status); } &&
29264 { ac_try='test -z "$ac_c_werror_flag"
29265 || test ! -s conftest.err'
29266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29267 (eval $ac_try) 2>&5
29269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29270 (exit $ac_status); }; } &&
29271 { ac_try='test -s conftest.$ac_objext'
29272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29273 (eval $ac_try) 2>&5
29275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29276 (exit $ac_status); }; }; then
29277 ac_header_compiler=yes
29279 echo "$as_me: failed program was:" >&5
29280 sed 's/^/| /' conftest.$ac_ext >&5
29282 ac_header_compiler=no
29284 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29285 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29286 echo "${ECHO_T}$ac_header_compiler" >&6
29288 # Is the header present?
29289 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29290 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29291 cat >conftest.$ac_ext <<_ACEOF
29294 cat confdefs.h >>conftest.$ac_ext
29295 cat >>conftest.$ac_ext <<_ACEOF
29296 /* end confdefs.h. */
29297 #include <$ac_header>
29299 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29300 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29302 grep -v '^ *+' conftest.er1 >conftest.err
29304 cat conftest.err >&5
29305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29306 (exit $ac_status); } >/dev/null; then
29307 if test -s conftest.err; then
29308 ac_cpp_err=$ac_c_preproc_warn_flag
29309 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29316 if test -z "$ac_cpp_err"; then
29317 ac_header_preproc=yes
29319 echo "$as_me: failed program was:" >&5
29320 sed 's/^/| /' conftest.$ac_ext >&5
29322 ac_header_preproc=no
29324 rm -f conftest.err conftest.$ac_ext
29325 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29326 echo "${ECHO_T}$ac_header_preproc" >&6
29328 # So? What about this header?
29329 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29331 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29332 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29333 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29334 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29335 ac_header_preproc=yes
29338 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29339 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29340 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29341 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29342 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29343 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29344 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29345 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29346 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29347 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29348 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29349 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29352 ## ------------------------------------------ ##
29353 ## Report this to the AC_PACKAGE_NAME lists. ##
29354 ## ------------------------------------------ ##
29357 sed "s/^/$as_me: WARNING: /" >&2
29360 echo "$as_me:$LINENO: checking for $ac_header" >&5
29361 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29362 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29363 echo $ECHO_N "(cached) $ECHO_C" >&6
29365 eval "$as_ac_Header=\$ac_header_preproc"
29367 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29368 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29371 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29372 cat >>confdefs.h <<_ACEOF
29373 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29380 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
29381 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
29382 if test "${ac_cv_lib_z_deflate+set}" = set; then
29383 echo $ECHO_N "(cached) $ECHO_C" >&6
29385 ac_check_lib_save_LIBS=$LIBS
29387 cat >conftest.$ac_ext <<_ACEOF
29390 cat confdefs.h >>conftest.$ac_ext
29391 cat >>conftest.$ac_ext <<_ACEOF
29392 /* end confdefs.h. */
29394 /* Override any gcc2 internal prototype to avoid an error. */
29398 /* We use char because int might match the return type of a gcc2
29399 builtin and then its argument prototype would still apply. */
29409 rm -f conftest.$ac_objext conftest$ac_exeext
29410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29411 (eval $ac_link) 2>conftest.er1
29413 grep -v '^ *+' conftest.er1 >conftest.err
29415 cat conftest.err >&5
29416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29417 (exit $ac_status); } &&
29418 { ac_try='test -z "$ac_c_werror_flag"
29419 || test ! -s conftest.err'
29420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29421 (eval $ac_try) 2>&5
29423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29424 (exit $ac_status); }; } &&
29425 { ac_try='test -s conftest$ac_exeext'
29426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29427 (eval $ac_try) 2>&5
29429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29430 (exit $ac_status); }; }; then
29431 ac_cv_lib_z_deflate=yes
29433 echo "$as_me: failed program was:" >&5
29434 sed 's/^/| /' conftest.$ac_ext >&5
29436 ac_cv_lib_z_deflate=no
29438 rm -f conftest.err conftest.$ac_objext \
29439 conftest$ac_exeext conftest.$ac_ext
29440 LIBS=$ac_check_lib_save_LIBS
29442 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
29443 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
29444 if test $ac_cv_lib_z_deflate = yes; then
29449 if test x$FDLIBS = x-lz; then
29450 cat >>confdefs.h <<\_ACEOF
29451 #define HAVE_LIBZ 1
29458 # Check for ACL libraries
29461 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29462 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
29463 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
29464 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29465 echo $ECHO_N "(cached) $ECHO_C" >&6
29467 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
29468 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
29470 # Is the header compilable?
29471 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
29472 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
29473 cat >conftest.$ac_ext <<_ACEOF
29476 cat confdefs.h >>conftest.$ac_ext
29477 cat >>conftest.$ac_ext <<_ACEOF
29478 /* end confdefs.h. */
29479 $ac_includes_default
29480 #include <sys/acl.h>
29482 rm -f conftest.$ac_objext
29483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29484 (eval $ac_compile) 2>conftest.er1
29486 grep -v '^ *+' conftest.er1 >conftest.err
29488 cat conftest.err >&5
29489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29490 (exit $ac_status); } &&
29491 { ac_try='test -z "$ac_c_werror_flag"
29492 || test ! -s conftest.err'
29493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29494 (eval $ac_try) 2>&5
29496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29497 (exit $ac_status); }; } &&
29498 { ac_try='test -s conftest.$ac_objext'
29499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29500 (eval $ac_try) 2>&5
29502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29503 (exit $ac_status); }; }; then
29504 ac_header_compiler=yes
29506 echo "$as_me: failed program was:" >&5
29507 sed 's/^/| /' conftest.$ac_ext >&5
29509 ac_header_compiler=no
29511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29512 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29513 echo "${ECHO_T}$ac_header_compiler" >&6
29515 # Is the header present?
29516 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
29517 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
29518 cat >conftest.$ac_ext <<_ACEOF
29521 cat confdefs.h >>conftest.$ac_ext
29522 cat >>conftest.$ac_ext <<_ACEOF
29523 /* end confdefs.h. */
29524 #include <sys/acl.h>
29526 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29527 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29529 grep -v '^ *+' conftest.er1 >conftest.err
29531 cat conftest.err >&5
29532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29533 (exit $ac_status); } >/dev/null; then
29534 if test -s conftest.err; then
29535 ac_cpp_err=$ac_c_preproc_warn_flag
29536 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29543 if test -z "$ac_cpp_err"; then
29544 ac_header_preproc=yes
29546 echo "$as_me: failed program was:" >&5
29547 sed 's/^/| /' conftest.$ac_ext >&5
29549 ac_header_preproc=no
29551 rm -f conftest.err conftest.$ac_ext
29552 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29553 echo "${ECHO_T}$ac_header_preproc" >&6
29555 # So? What about this header?
29556 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29558 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
29559 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29560 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
29561 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
29562 ac_header_preproc=yes
29565 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
29566 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
29567 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
29568 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
29569 { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
29570 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
29571 { echo "$as_me:$LINENO: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&5
29572 echo "$as_me: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&2;}
29573 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
29574 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
29575 { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
29576 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
29579 ## ------------------------------------------ ##
29580 ## Report this to the AC_PACKAGE_NAME lists. ##
29581 ## ------------------------------------------ ##
29584 sed "s/^/$as_me: WARNING: /" >&2
29587 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
29588 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
29589 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29590 echo $ECHO_N "(cached) $ECHO_C" >&6
29592 ac_cv_header_sys_acl_h=$ac_header_preproc
29594 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
29595 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
29600 echo "$as_me:$LINENO: checking for acl_get_file" >&5
29601 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6
29602 if test "${ac_cv_func_acl_get_file+set}" = set; then
29603 echo $ECHO_N "(cached) $ECHO_C" >&6
29605 cat >conftest.$ac_ext <<_ACEOF
29608 cat confdefs.h >>conftest.$ac_ext
29609 cat >>conftest.$ac_ext <<_ACEOF
29610 /* end confdefs.h. */
29611 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
29612 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29613 #define acl_get_file innocuous_acl_get_file
29615 /* System header to define __stub macros and hopefully few prototypes,
29616 which can conflict with char acl_get_file (); below.
29617 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29618 <limits.h> exists even on freestanding compilers. */
29621 # include <limits.h>
29623 # include <assert.h>
29626 #undef acl_get_file
29628 /* Override any gcc2 internal prototype to avoid an error. */
29633 /* We use char because int might match the return type of a gcc2
29634 builtin and then its argument prototype would still apply. */
29635 char acl_get_file ();
29636 /* The GNU C library defines this for functions which it implements
29637 to always fail with ENOSYS. Some functions are actually named
29638 something starting with __ and the normal name is an alias. */
29639 #if defined (__stub_acl_get_file) || defined (__stub___acl_get_file)
29642 char (*f) () = acl_get_file;
29651 return f != acl_get_file;
29656 rm -f conftest.$ac_objext conftest$ac_exeext
29657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29658 (eval $ac_link) 2>conftest.er1
29660 grep -v '^ *+' conftest.er1 >conftest.err
29662 cat conftest.err >&5
29663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29664 (exit $ac_status); } &&
29665 { ac_try='test -z "$ac_c_werror_flag"
29666 || test ! -s conftest.err'
29667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29668 (eval $ac_try) 2>&5
29670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29671 (exit $ac_status); }; } &&
29672 { ac_try='test -s conftest$ac_exeext'
29673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29674 (eval $ac_try) 2>&5
29676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29677 (exit $ac_status); }; }; then
29678 ac_cv_func_acl_get_file=yes
29680 echo "$as_me: failed program was:" >&5
29681 sed 's/^/| /' conftest.$ac_ext >&5
29683 ac_cv_func_acl_get_file=no
29685 rm -f conftest.err conftest.$ac_objext \
29686 conftest$ac_exeext conftest.$ac_ext
29688 echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
29689 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6
29690 if test $ac_cv_func_acl_get_file = yes; then
29693 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
29694 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
29695 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
29696 echo $ECHO_N "(cached) $ECHO_C" >&6
29698 ac_check_lib_save_LIBS=$LIBS
29700 cat >conftest.$ac_ext <<_ACEOF
29703 cat confdefs.h >>conftest.$ac_ext
29704 cat >>conftest.$ac_ext <<_ACEOF
29705 /* end confdefs.h. */
29707 /* Override any gcc2 internal prototype to avoid an error. */
29711 /* We use char because int might match the return type of a gcc2
29712 builtin and then its argument prototype would still apply. */
29713 char acl_get_file ();
29722 rm -f conftest.$ac_objext conftest$ac_exeext
29723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29724 (eval $ac_link) 2>conftest.er1
29726 grep -v '^ *+' conftest.er1 >conftest.err
29728 cat conftest.err >&5
29729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29730 (exit $ac_status); } &&
29731 { ac_try='test -z "$ac_c_werror_flag"
29732 || test ! -s conftest.err'
29733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29734 (eval $ac_try) 2>&5
29736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29737 (exit $ac_status); }; } &&
29738 { ac_try='test -s conftest$ac_exeext'
29739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29740 (eval $ac_try) 2>&5
29742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29743 (exit $ac_status); }; }; then
29744 ac_cv_lib_acl_acl_get_file=yes
29746 echo "$as_me: failed program was:" >&5
29747 sed 's/^/| /' conftest.$ac_ext >&5
29749 ac_cv_lib_acl_acl_get_file=no
29751 rm -f conftest.err conftest.$ac_objext \
29752 conftest$ac_exeext conftest.$ac_ext
29753 LIBS=$ac_check_lib_save_LIBS
29755 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
29756 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
29757 if test $ac_cv_lib_acl_acl_get_file = yes; then
29758 have_acl=yes; FDLIBS="-lacl $FDLIBS"
29760 echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
29761 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6
29762 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
29763 echo $ECHO_N "(cached) $ECHO_C" >&6
29765 ac_check_lib_save_LIBS=$LIBS
29767 cat >conftest.$ac_ext <<_ACEOF
29770 cat confdefs.h >>conftest.$ac_ext
29771 cat >>conftest.$ac_ext <<_ACEOF
29772 /* end confdefs.h. */
29774 /* Override any gcc2 internal prototype to avoid an error. */
29778 /* We use char because int might match the return type of a gcc2
29779 builtin and then its argument prototype would still apply. */
29789 rm -f conftest.$ac_objext conftest$ac_exeext
29790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29791 (eval $ac_link) 2>conftest.er1
29793 grep -v '^ *+' conftest.er1 >conftest.err
29795 cat conftest.err >&5
29796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29797 (exit $ac_status); } &&
29798 { ac_try='test -z "$ac_c_werror_flag"
29799 || test ! -s conftest.err'
29800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29801 (eval $ac_try) 2>&5
29803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29804 (exit $ac_status); }; } &&
29805 { ac_try='test -s conftest$ac_exeext'
29806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29807 (eval $ac_try) 2>&5
29809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29810 (exit $ac_status); }; }; then
29811 ac_cv_lib_sec_acltotext=yes
29813 echo "$as_me: failed program was:" >&5
29814 sed 's/^/| /' conftest.$ac_ext >&5
29816 ac_cv_lib_sec_acltotext=no
29818 rm -f conftest.err conftest.$ac_objext \
29819 conftest$ac_exeext conftest.$ac_ext
29820 LIBS=$ac_check_lib_save_LIBS
29822 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
29823 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6
29824 if test $ac_cv_lib_sec_acltotext = yes; then
29825 have_acl=yes; FDLIBS="-lsec $FDLIBS"
29834 if test $have_acl = yes; then
29835 cat >>confdefs.h <<\_ACEOF
29842 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
29843 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
29844 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
29845 echo $ECHO_N "(cached) $ECHO_C" >&6
29847 ac_check_lib_save_LIBS=$LIBS
29848 LIBS="-lpthread $LIBS"
29849 cat >conftest.$ac_ext <<_ACEOF
29852 cat confdefs.h >>conftest.$ac_ext
29853 cat >>conftest.$ac_ext <<_ACEOF
29854 /* end confdefs.h. */
29856 /* Override any gcc2 internal prototype to avoid an error. */
29860 /* We use char because int might match the return type of a gcc2
29861 builtin and then its argument prototype would still apply. */
29862 char pthread_create ();
29871 rm -f conftest.$ac_objext conftest$ac_exeext
29872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29873 (eval $ac_link) 2>conftest.er1
29875 grep -v '^ *+' conftest.er1 >conftest.err
29877 cat conftest.err >&5
29878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29879 (exit $ac_status); } &&
29880 { ac_try='test -z "$ac_c_werror_flag"
29881 || test ! -s conftest.err'
29882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29883 (eval $ac_try) 2>&5
29885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29886 (exit $ac_status); }; } &&
29887 { ac_try='test -s conftest$ac_exeext'
29888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29889 (eval $ac_try) 2>&5
29891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29892 (exit $ac_status); }; }; then
29893 ac_cv_lib_pthread_pthread_create=yes
29895 echo "$as_me: failed program was:" >&5
29896 sed 's/^/| /' conftest.$ac_ext >&5
29898 ac_cv_lib_pthread_pthread_create=no
29900 rm -f conftest.err conftest.$ac_objext \
29901 conftest$ac_exeext conftest.$ac_ext
29902 LIBS=$ac_check_lib_save_LIBS
29904 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
29905 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
29906 if test $ac_cv_lib_pthread_pthread_create = yes; then
29907 PTHREAD_LIB="-lpthread"
29909 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
29910 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
29911 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
29912 echo $ECHO_N "(cached) $ECHO_C" >&6
29914 ac_check_lib_save_LIBS=$LIBS
29915 LIBS="-lpthreads $LIBS"
29916 cat >conftest.$ac_ext <<_ACEOF
29919 cat confdefs.h >>conftest.$ac_ext
29920 cat >>conftest.$ac_ext <<_ACEOF
29921 /* end confdefs.h. */
29923 /* Override any gcc2 internal prototype to avoid an error. */
29927 /* We use char because int might match the return type of a gcc2
29928 builtin and then its argument prototype would still apply. */
29929 char pthread_create ();
29938 rm -f conftest.$ac_objext conftest$ac_exeext
29939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29940 (eval $ac_link) 2>conftest.er1
29942 grep -v '^ *+' conftest.er1 >conftest.err
29944 cat conftest.err >&5
29945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29946 (exit $ac_status); } &&
29947 { ac_try='test -z "$ac_c_werror_flag"
29948 || test ! -s conftest.err'
29949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29950 (eval $ac_try) 2>&5
29952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29953 (exit $ac_status); }; } &&
29954 { ac_try='test -s conftest$ac_exeext'
29955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29956 (eval $ac_try) 2>&5
29958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29959 (exit $ac_status); }; }; then
29960 ac_cv_lib_pthreads_pthread_create=yes
29962 echo "$as_me: failed program was:" >&5
29963 sed 's/^/| /' conftest.$ac_ext >&5
29965 ac_cv_lib_pthreads_pthread_create=no
29967 rm -f conftest.err conftest.$ac_objext \
29968 conftest$ac_exeext conftest.$ac_ext
29969 LIBS=$ac_check_lib_save_LIBS
29971 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
29972 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
29973 if test $ac_cv_lib_pthreads_pthread_create = yes; then
29974 PTHREAD_LIB="-lpthreads"
29976 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
29977 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
29978 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
29979 echo $ECHO_N "(cached) $ECHO_C" >&6
29981 ac_check_lib_save_LIBS=$LIBS
29983 cat >conftest.$ac_ext <<_ACEOF
29986 cat confdefs.h >>conftest.$ac_ext
29987 cat >>conftest.$ac_ext <<_ACEOF
29988 /* end confdefs.h. */
29990 /* Override any gcc2 internal prototype to avoid an error. */
29994 /* We use char because int might match the return type of a gcc2
29995 builtin and then its argument prototype would still apply. */
29996 char pthread_create ();
30005 rm -f conftest.$ac_objext conftest$ac_exeext
30006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30007 (eval $ac_link) 2>conftest.er1
30009 grep -v '^ *+' conftest.er1 >conftest.err
30011 cat conftest.err >&5
30012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30013 (exit $ac_status); } &&
30014 { ac_try='test -z "$ac_c_werror_flag"
30015 || test ! -s conftest.err'
30016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30017 (eval $ac_try) 2>&5
30019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30020 (exit $ac_status); }; } &&
30021 { ac_try='test -s conftest$ac_exeext'
30022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30023 (eval $ac_try) 2>&5
30025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30026 (exit $ac_status); }; }; then
30027 ac_cv_lib_c_r_pthread_create=yes
30029 echo "$as_me: failed program was:" >&5
30030 sed 's/^/| /' conftest.$ac_ext >&5
30032 ac_cv_lib_c_r_pthread_create=no
30034 rm -f conftest.err conftest.$ac_objext \
30035 conftest$ac_exeext conftest.$ac_ext
30036 LIBS=$ac_check_lib_save_LIBS
30038 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
30039 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
30040 if test $ac_cv_lib_c_r_pthread_create = yes; then
30041 PTHREAD_LIB="-lc_r"
30043 echo "$as_me:$LINENO: checking for pthread_create" >&5
30044 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
30045 if test "${ac_cv_func_pthread_create+set}" = set; then
30046 echo $ECHO_N "(cached) $ECHO_C" >&6
30048 cat >conftest.$ac_ext <<_ACEOF
30051 cat confdefs.h >>conftest.$ac_ext
30052 cat >>conftest.$ac_ext <<_ACEOF
30053 /* end confdefs.h. */
30054 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
30055 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30056 #define pthread_create innocuous_pthread_create
30058 /* System header to define __stub macros and hopefully few prototypes,
30059 which can conflict with char pthread_create (); below.
30060 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30061 <limits.h> exists even on freestanding compilers. */
30064 # include <limits.h>
30066 # include <assert.h>
30069 #undef pthread_create
30071 /* Override any gcc2 internal prototype to avoid an error. */
30076 /* We use char because int might match the return type of a gcc2
30077 builtin and then its argument prototype would still apply. */
30078 char pthread_create ();
30079 /* The GNU C library defines this for functions which it implements
30080 to always fail with ENOSYS. Some functions are actually named
30081 something starting with __ and the normal name is an alias. */
30082 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
30085 char (*f) () = pthread_create;
30094 return f != pthread_create;
30099 rm -f conftest.$ac_objext conftest$ac_exeext
30100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30101 (eval $ac_link) 2>conftest.er1
30103 grep -v '^ *+' conftest.er1 >conftest.err
30105 cat conftest.err >&5
30106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30107 (exit $ac_status); } &&
30108 { ac_try='test -z "$ac_c_werror_flag"
30109 || test ! -s conftest.err'
30110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30111 (eval $ac_try) 2>&5
30113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30114 (exit $ac_status); }; } &&
30115 { ac_try='test -s conftest$ac_exeext'
30116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30117 (eval $ac_try) 2>&5
30119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30120 (exit $ac_status); }; }; then
30121 ac_cv_func_pthread_create=yes
30123 echo "$as_me: failed program was:" >&5
30124 sed 's/^/| /' conftest.$ac_ext >&5
30126 ac_cv_func_pthread_create=no
30128 rm -f conftest.err conftest.$ac_objext \
30129 conftest$ac_exeext conftest.$ac_ext
30131 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
30132 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
30145 cat >>confdefs.h <<\_ACEOF
30151 CFLAGS=${CFLAGS--O}
30153 if test x$have_gcc = xyes ; then
30154 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30155 CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30157 LDFLAGS=${LDFLAGS--O}
30158 DB_LIBS="${SQL_LFLAGS}"
30159 CPPFLAGS="$CPPFLAGS"
30187 # Finally we set appropriate distribution specific
30188 # variables and defaults
30190 # PFILES are platform specific files
30191 PFILES="platforms/Makefile"
30195 hostname=`uname -n | cut -d '.' -f 1`
30196 if test x${hostname} = x ; then
30197 hostname="localhost"
30199 case "$DISTNAME" in
30202 PSCMD="ps -e -o pid,comm"
30203 PFILES="${PFILES} \
30204 platforms/aix/Makefile"
30205 TAPEDRIVE="/dev/rmt0.1"
30209 PTHREAD_LIB="-lpthread -lexc"
30210 if test "${CC}" = "gcc" ; then
30217 TAPEDRIVE="/dev/nrmt0"
30220 DISTVER=`uname -a |awk '{print $3}'`
30221 TAPEDRIVE="/dev/nrmt0"
30222 PTHREAD_LIB="-pthread"
30223 CFLAGS="${CFLAGS} -pthread"
30224 PSCMD="ps -ax -o pid,command"
30227 PFILES="${PFILES} \
30228 platforms/bsdi/Makefile \
30229 platforms/bsdi/bacula-fd \
30230 platforms/bsdi/bacula-sd \
30231 platforms/bsdi/bacula-dir"
30232 largefile_support="yes"
30235 DISTVER=`uname -a |awk '{print $3}'`
30236 TAPEDRIVE="/dev/nrst0"
30238 WCFLAGS="-mwindows"
30239 WLDFLAGS="-mwindows"
30243 TAPEDRIVE="/dev/nst0"
30244 PSCMD="ps -e -o pid,command"
30246 PFILES="${PFILES} \
30247 platforms/darwin/Makefile"
30250 DISTVER=`cat /etc/debian_version`
30251 TAPEDRIVE="/dev/nrst0"
30252 PSCMD="ps -e -o pid,command"
30255 DISTVER=`uname -a |awk '{print $3}'`
30256 VER=`echo $DISTVER | cut -c 1`
30257 if test x$VER = x4 ; then
30258 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
30259 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
30263 TAPEDRIVE="/dev/nrsa0"
30264 PSCMD="ps -ax -o pid,command"
30265 PFILES="${PFILES} \
30266 platforms/freebsd/Makefile \
30267 platforms/freebsd/bacula-fd \
30268 platforms/freebsd/bacula-sd \
30269 platforms/freebsd/bacula-dir"
30270 largefile_support="yes"
30273 PSCMD="UNIX95=1; ps -e -o pid,comm"
30274 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
30276 TAPEDRIVE="/dev/rmt/0hnb"
30277 PTHREAD_LIB="-lpthread"
30278 cat >>confdefs.h <<\_ACEOF
30279 #define _INCLUDE_LONGLONG 1
30285 TAPEDRIVE="/dev/rmt/0cbn"
30286 PSCMD="ps -e -o pid,comm"
30287 PFILES="${PFILES} \
30288 platforms/irix/Makefile \
30289 platforms/irix/bacula-fd \
30290 platforms/irix/bacula-sd \
30291 platforms/irix/bacula-dir"
30294 DISTVER=`uname -a |awk '{print $3}'`
30297 TAPEDRIVE="/dev/nrst0"
30298 PSCMD="ps -ax -o pid,command"
30299 PTHREAD_LIB="-pthread"
30300 CFLAGS="${CFLAGS} -pthread"
30303 DISTVER=`uname -a |awk '{print $3}'`
30306 TAPEDRIVE="/dev/nrst0"
30307 PSCMD="ps -ax -o pid,command"
30308 PTHREAD_LIB="-pthread"
30309 CFLAGS="${CFLAGS} -pthread"
30310 PFILES="${PFILES} \
30311 platforms/openbsd/Makefile \
30312 platforms/openbsd/bacula-fd \
30313 platforms/openbsd/bacula-sd \
30314 platforms/openbsd/bacula-dir"
30317 if test -f /etc/whitebox-release ; then
30318 f=/etc/whitebox-release
30320 f=/etc/redhat-release
30322 if test `cat $f | grep release |\
30323 cut -f 3 -d ' '`x = "Enterprise"x ; then
30324 DISTVER="Enterprise "`cat $f | grep release |\
30327 DISTVER=`cat /etc/redhat-release | grep release |\
30330 TAPEDRIVE="/dev/nst0"
30331 PSCMD="ps -e -o pid,command"
30332 PFILES="${PFILES} \
30333 platforms/redhat/Makefile \
30334 platforms/redhat/bacula-fd \
30335 platforms/redhat/bacula-sd \
30336 platforms/redhat/bacula-dir \
30337 platforms/redhat/bacula.spec \
30341 DISTVER=`cat /etc/mandrake-release | grep release |\
30343 TAPEDRIVE="/dev/nst0"
30344 PSCMD="ps -e -o pid,command"
30345 PFILES="${PFILES} \
30346 platforms/mandrake/Makefile \
30347 platforms/mandrake/bacula-fd \
30348 platforms/mandrake/bacula-sd \
30349 platforms/mandrake/bacula-dir \
30350 platforms/mandrake/bacula.spec \
30354 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
30355 TAPEDRIVE="/dev/nst0"
30356 PSCMD="ps -e -o pid,command"
30357 PFILES="${PFILES} \
30358 platforms/gentoo/Makefile \
30359 platforms/gentoo/bacula-init \
30360 platforms/gentoo/bacula-fd \
30361 platforms/gentoo/bacula-sd \
30362 platforms/gentoo/bacula-dir"
30365 DISTVER=`cat /etc/slackware-version`
30366 TAPEDRIVE="/dev/nst0"
30367 PSCMD="ps -e -o pid,command"
30368 PFILES="${PFILES} \
30369 platforms/slackware/Makefile \
30370 platforms/slackware/rc.bacula-fd \
30371 platforms/slackware/rc.bacula-sd \
30372 platforms/slackware/rc.bacula-dir\
30373 platforms/slackware/functions.bacula"
30377 TAPEDRIVE="/dev/rmt/0cbn"
30378 PSCMD="ps -e -o pid,comm"
30379 PFILES="${PFILES} \
30380 platforms/solaris/Makefile \
30381 platforms/solaris/bacula-fd \
30382 platforms/solaris/bacula-sd \
30383 platforms/solaris/bacula-dir"
30384 if test x$DISTVER = x5.6 ; then
30385 cat >>confdefs.h <<\_ACEOF
30386 #define HAVE_OLD_SOCKOPT 1
30390 LIBS="$LIBS -lresolv"
30393 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
30395 TAPEDRIVE="/dev/nst0"
30396 PSCMD="ps -e -o pid,command"
30397 PFILES="${PFILES} \
30398 platforms/suse/Makefile \
30399 platforms/suse/bacula-fd \
30400 platforms/suse/bacula-sd \
30401 platforms/suse/bacula-dir \
30402 platforms/suse/bacula \
30403 platforms/suse/bacula.spec"
30408 TAPEDRIVE="/dev/nst0"
30409 PSCMD="ps -e -o pid,command"
30410 PFILES="${PFILES} \
30411 platforms/suse/Makefile \
30412 platforms/suse/bacula-fd \
30413 platforms/suse/bacula-sd \
30414 platforms/suse/bacula-dir"
30418 TAPEDRIVE="/dev/nst0"
30421 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
30427 LIBS="$PTHREAD_LIB $LIBS"
30429 cat >>confdefs.h <<_ACEOF
30433 cat >>confdefs.h <<_ACEOF
30444 MCOMMON=./autoconf/Make.common
30447 if test "x${subsysdir}" = "x${sbindir}" ; then
30450 echo "You have set both --sbindir and --with-subsys-dir"
30451 echo " equal to: ${subsysdir} "
30452 echo "This is not permitted. Please reconfigure."
30454 echo "Aborting configuration ..."
30460 ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/bacula-ctl-dir scripts/bacula-ctl-fd scripts/bacula-ctl-sd 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/bgnome-console.console_apps scripts/mtx-changer scripts/disk-changer scripts/dvd-handler scripts/dvd-simulator scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf scripts/wxconsole.console_apps scripts/wxconsole.desktop.consolehelper scripts/wxconsole.desktop.xsu scripts/bat.desktop scripts/bat.desktop.xsu scripts/bat.desktop.consolehelper scripts/bat.console_apps src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome2-console/Makefile src/gnome2-console/bgnome-console.conf src/qt-console/bat.conf src/qt-console/bat.pro src/qt-console/install_conf_file src/wx-console/Makefile src/wx-console/bwx-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/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 po/Makefile.in $PFILES"
30461 ac_config_commands="$ac_config_commands default"
30462 cat >confcache <<\_ACEOF
30463 # This file is a shell script that caches the results of configure
30464 # tests run on this system so they can be shared between configure
30465 # scripts and configure runs, see configure's option --config-cache.
30466 # It is not useful on other systems. If it contains results you don't
30467 # want to keep, you may remove or edit it.
30469 # config.status only pays attention to the cache file if you give it
30470 # the --recheck option to rerun configure.
30472 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30473 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30474 # following values.
30478 # The following way of writing the cache mishandles newlines in values,
30479 # but we know of no workaround that is simple, portable, and efficient.
30480 # So, don't put newlines in cache variables' values.
30481 # Ultrix sh set writes to stderr and can't be redirected directly,
30482 # and sets the high bit in the cache file unless we assign to the vars.
30485 case `(ac_space=' '; set | grep ac_space) 2>&1` in
30487 # `set' does not quote correctly, so add quotes (double-quote
30488 # substitution turns \\\\ into \\, and sed turns \\ into \).
30491 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30494 # `set' quotes correctly as required by POSIX, so do not add quotes.
30496 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
30503 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30505 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30507 if diff $cache_file confcache >/dev/null 2>&1; then :; else
30508 if test -w $cache_file; then
30509 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
30510 cat confcache >$cache_file
30512 echo "not updating unwritable cache $cache_file"
30517 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30518 # Let make expand exec_prefix.
30519 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30521 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30522 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30523 # trailing colons and then remove the whole line if VPATH becomes empty
30524 # (actually we leave an empty line to preserve line numbers).
30525 if test "x$srcdir" = x.; then
30526 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30527 s/:*\$(srcdir):*/:/;
30528 s/:*\${srcdir}:*/:/;
30530 s/^\([^=]*=[ ]*\):*/\1/;
30536 DEFS=-DHAVE_CONFIG_H
30540 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30541 # 1. Remove the extension, and $U if already installed.
30542 ac_i=`echo "$ac_i" |
30543 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
30545 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
30546 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
30548 LIBOBJS=$ac_libobjs
30550 LTLIBOBJS=$ac_ltlibobjs
30554 : ${CONFIG_STATUS=./config.status}
30555 ac_clean_files_save=$ac_clean_files
30556 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30557 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30558 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30559 cat >$CONFIG_STATUS <<_ACEOF
30561 # Generated by $as_me.
30562 # Run this file to recreate the current configuration.
30563 # Compiler output produced by configure, useful for debugging
30564 # configure, is in config.log if it exists.
30567 ac_cs_recheck=false
30569 SHELL=\${CONFIG_SHELL-$SHELL}
30572 cat >>$CONFIG_STATUS <<\_ACEOF
30573 ## --------------------- ##
30574 ## M4sh Initialization. ##
30575 ## --------------------- ##
30577 # Be Bourne compatible
30578 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30581 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30582 # is contrary to our usage. Disable this feature.
30583 alias -g '${1+"$@"}'='"$@"'
30584 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30587 DUALCASE=1; export DUALCASE # for MKS sh
30589 # Support unset when possible.
30590 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30597 # Work around bugs in pre-3.0 UWIN ksh.
30598 $as_unset ENV MAIL MAILPATH
30605 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30606 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30607 LC_TELEPHONE LC_TIME
30609 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30610 eval $as_var=C; export $as_var
30616 # Required to use basename.
30617 if expr a : '\(a\)' >/dev/null 2>&1; then
30623 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
30624 as_basename=basename
30630 # Name of the executable.
30631 as_me=`$as_basename "$0" ||
30632 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30633 X"$0" : 'X\(//\)$' \| \
30634 X"$0" : 'X\(/\)$' \| \
30635 . : '\(.\)' 2>/dev/null ||
30637 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
30638 /^X\/\(\/\/\)$/{ s//\1/; q; }
30639 /^X\/\(\/\).*/{ s//\1/; q; }
30643 # PATH needs CR, and LINENO needs CR and PATH.
30644 # Avoid depending upon Character Ranges.
30645 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30646 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30647 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30648 as_cr_digits='0123456789'
30649 as_cr_alnum=$as_cr_Letters$as_cr_digits
30651 # The user is always right.
30652 if test "${PATH_SEPARATOR+set}" != set; then
30653 echo "#! /bin/sh" >conf$$.sh
30654 echo "exit 0" >>conf$$.sh
30656 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30665 as_lineno_1=$LINENO
30666 as_lineno_2=$LINENO
30667 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30668 test "x$as_lineno_1" != "x$as_lineno_2" &&
30669 test "x$as_lineno_3" = "x$as_lineno_2" || {
30670 # Find who we are. Look in the path if we contain no path at all
30673 *[\\/]* ) as_myself=$0 ;;
30674 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30675 for as_dir in $PATH
30678 test -z "$as_dir" && as_dir=.
30679 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30684 # We did not find ourselves, most probably we were run as `sh COMMAND'
30685 # in which case we are not to be found in the path.
30686 if test "x$as_myself" = x; then
30689 if test ! -f "$as_myself"; then
30690 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
30691 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
30692 { (exit 1); exit 1; }; }
30694 case $CONFIG_SHELL in
30696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30697 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
30700 test -z "$as_dir" && as_dir=.
30701 for as_base in sh bash ksh sh5; do
30704 if ("$as_dir/$as_base" -c '
30705 as_lineno_1=$LINENO
30706 as_lineno_2=$LINENO
30707 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30708 test "x$as_lineno_1" != "x$as_lineno_2" &&
30709 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
30710 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
30711 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
30712 CONFIG_SHELL=$as_dir/$as_base
30713 export CONFIG_SHELL
30714 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
30722 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30723 # uniformly replaced by the line number. The first 'sed' inserts a
30724 # line-number line before each line; the second 'sed' does the real
30725 # work. The second script uses 'N' to pair each line-number line
30726 # with the numbered line, and appends trailing '-' during
30727 # substitution so that $LINENO is not a special case at line end.
30728 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30729 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
30730 sed '=' <$as_myself |
30735 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
30738 s,^['$as_cr_digits']*\n,,
30739 ' >$as_me.lineno &&
30740 chmod +x $as_me.lineno ||
30741 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
30742 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
30743 { (exit 1); exit 1; }; }
30745 # Don't try to exec as it changes $[0], causing all sort of problems
30746 # (the dirname of $[0] is not the place where we might find the
30747 # original and so on. Autoconf is especially sensible to this).
30749 # Exit status is that of the last command.
30754 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
30755 *c*,-n*) ECHO_N= ECHO_C='
30757 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
30758 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
30761 if expr a : '\(a\)' >/dev/null 2>&1; then
30767 rm -f conf$$ conf$$.exe conf$$.file
30769 if ln -s conf$$.file conf$$ 2>/dev/null; then
30770 # We could just check for DJGPP; but this test a) works b) is more generic
30771 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
30772 if test -f conf$$.exe; then
30773 # Don't use ln at all; we don't have any links
30778 elif ln conf$$.file conf$$ 2>/dev/null; then
30783 rm -f conf$$ conf$$.exe conf$$.file
30785 if mkdir -p . 2>/dev/null; then
30788 test -d ./-p && rmdir ./-p
30792 as_executable_p="test -f"
30794 # Sed expression to map a string onto a valid CPP name.
30795 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30797 # Sed expression to map a string onto a valid variable name.
30798 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30802 # We need space, tab and new line, in precisely that order.
30812 # Open the log real soon, to keep \$[0] and so on meaningful, and to
30813 # report actual input values of CONFIG_FILES etc. instead of their
30814 # values after options handling. Logging --version etc. is OK.
30818 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30819 ## Running $as_me. ##
30824 This file was extended by $as_me, which was
30825 generated by GNU Autoconf 2.59. Invocation command line was
30827 CONFIG_FILES = $CONFIG_FILES
30828 CONFIG_HEADERS = $CONFIG_HEADERS
30829 CONFIG_LINKS = $CONFIG_LINKS
30830 CONFIG_COMMANDS = $CONFIG_COMMANDS
30834 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
30838 # Files that config.status was made for.
30839 if test -n "$ac_config_files"; then
30840 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
30843 if test -n "$ac_config_headers"; then
30844 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
30847 if test -n "$ac_config_links"; then
30848 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
30851 if test -n "$ac_config_commands"; then
30852 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
30855 cat >>$CONFIG_STATUS <<\_ACEOF
30858 \`$as_me' instantiates files from templates according to the
30859 current configuration.
30861 Usage: $0 [OPTIONS] [FILE]...
30863 -h, --help print this help, then exit
30864 -V, --version print version number, then exit
30865 -q, --quiet do not print progress messages
30866 -d, --debug don't remove temporary files
30867 --recheck update $as_me by reconfiguring in the same conditions
30868 --file=FILE[:TEMPLATE]
30869 instantiate the configuration file FILE
30870 --header=FILE[:TEMPLATE]
30871 instantiate the configuration header FILE
30873 Configuration files:
30876 Configuration headers:
30879 Configuration commands:
30882 Report bugs to <bug-autoconf@gnu.org>."
30885 cat >>$CONFIG_STATUS <<_ACEOF
30888 configured by $0, generated by GNU Autoconf 2.59,
30889 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
30891 Copyright (C) 2003 Free Software Foundation, Inc.
30892 This config.status script is free software; the Free Software Foundation
30893 gives unlimited permission to copy, distribute and modify it."
30898 cat >>$CONFIG_STATUS <<\_ACEOF
30899 # If no file are specified by the user, then we need to provide default
30900 # value. By we need to know if files were specified by the user.
30906 ac_option=`expr "x$1" : 'x\([^=]*\)='`
30907 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
30915 *) # This is not an option, so the user has probably given explicit
30918 ac_need_defaults=false;;
30922 # Handling of the options.
30924 cat >>$CONFIG_STATUS <<\_ACEOF
30925 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30927 --version | --vers* | -V )
30928 echo "$ac_cs_version"; exit 0 ;;
30930 # Conflict between --help and --header
30931 { { echo "$as_me:$LINENO: error: ambiguous option: $1
30932 Try \`$0 --help' for more information." >&5
30933 echo "$as_me: error: ambiguous option: $1
30934 Try \`$0 --help' for more information." >&2;}
30935 { (exit 1); exit 1; }; };;
30936 --help | --hel | -h )
30937 echo "$ac_cs_usage"; exit 0 ;;
30938 --debug | --d* | -d )
30940 --file | --fil | --fi | --f )
30942 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30943 ac_need_defaults=false;;
30944 --header | --heade | --head | --hea )
30946 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30947 ac_need_defaults=false;;
30948 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30949 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30952 # This is an error.
30953 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
30954 Try \`$0 --help' for more information." >&5
30955 echo "$as_me: error: unrecognized option: $1
30956 Try \`$0 --help' for more information." >&2;}
30957 { (exit 1); exit 1; }; } ;;
30959 *) ac_config_targets="$ac_config_targets $1" ;;
30965 ac_configure_extra_args=
30967 if $ac_cs_silent; then
30969 ac_configure_extra_args="$ac_configure_extra_args --silent"
30973 cat >>$CONFIG_STATUS <<_ACEOF
30974 if \$ac_cs_recheck; then
30975 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30976 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30981 cat >>$CONFIG_STATUS <<_ACEOF
30983 # INIT-COMMANDS section.
30986 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
30987 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
30989 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
30990 # Capture the value of LINGUAS because we need it to compute CATALOGS.
30991 LINGUAS="${LINGUAS-%UNSET%}"
30998 cat >>$CONFIG_STATUS <<\_ACEOF
30999 for ac_config_target in $ac_config_targets
31001 case "$ac_config_target" in
31002 # Handling of arguments.
31003 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
31004 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
31005 "manpages/Makefile" ) CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
31006 "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
31007 "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
31008 "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
31009 "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
31010 "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
31011 "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
31012 "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
31013 "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
31014 "scripts/bacula-ctl-dir" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
31015 "scripts/bacula-ctl-fd" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
31016 "scripts/bacula-ctl-sd" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
31017 "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
31018 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
31019 "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
31020 "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
31021 "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
31022 "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
31023 "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
31024 "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
31025 "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
31026 "scripts/bgnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
31027 "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
31028 "scripts/disk-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
31029 "scripts/dvd-handler" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
31030 "scripts/dvd-simulator" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
31031 "scripts/bacula-tray-monitor.desktop" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
31032 "scripts/logwatch/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
31033 "scripts/logwatch/logfile.bacula.conf" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
31034 "scripts/wxconsole.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
31035 "scripts/wxconsole.desktop.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
31036 "scripts/wxconsole.desktop.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
31037 "scripts/bat.desktop" ) CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
31038 "scripts/bat.desktop.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
31039 "scripts/bat.desktop.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
31040 "scripts/bat.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
31041 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
31042 "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
31043 "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
31044 "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
31045 "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
31046 "src/gnome2-console/bgnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/bgnome-console.conf" ;;
31047 "src/qt-console/bat.conf" ) CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
31048 "src/qt-console/bat.pro" ) CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
31049 "src/qt-console/install_conf_file" ) CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
31050 "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
31051 "src/wx-console/bwx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
31052 "src/tray-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
31053 "src/tray-monitor/tray-monitor.conf" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
31054 "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
31055 "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
31056 "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
31057 "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
31058 "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
31059 "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
31060 "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
31061 "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
31062 "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
31063 "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
31064 "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
31065 "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
31066 "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
31067 "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
31068 "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
31069 "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
31070 "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
31071 "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
31072 "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
31073 "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
31074 "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
31075 "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
31076 "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
31077 "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
31078 "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
31079 "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
31080 "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
31081 "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
31082 "src/cats/create_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
31083 "src/cats/update_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
31084 "src/cats/make_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
31085 "src/cats/grant_sqlite3_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
31086 "src/cats/drop_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
31087 "src/cats/drop_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
31088 "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
31089 "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
31090 "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
31091 "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
31092 "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
31093 "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
31094 "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
31095 "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
31096 "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
31097 "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
31098 "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
31099 "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
31100 "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
31101 "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
31102 "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
31103 "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
31104 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
31105 "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
31106 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
31107 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
31108 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
31109 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31110 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31111 { (exit 1); exit 1; }; };;
31115 # If the user did not use the arguments to specify the items to instantiate,
31116 # then the envvar interface is used. Set only those that are not.
31117 # We use the long form for the default assignment because of an extremely
31118 # bizarre bug on SunOS 4.1.3.
31119 if $ac_need_defaults; then
31120 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31121 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31122 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31125 # Have a temporary directory for convenience. Make it in the build tree
31126 # simply because there is no reason to put it here, and in addition,
31127 # creating and moving files from /tmp can sometimes cause problems.
31128 # Create a temporary directory, and hook for its removal unless debugging.
31131 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
31132 trap '{ (exit 1); exit 1; }' 1 2 13 15
31135 # Create a (secure) tmp directory for tmp files.
31138 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
31139 test -n "$tmp" && test -d "$tmp"
31142 tmp=./confstat$$-$RANDOM
31143 (umask 077 && mkdir $tmp)
31146 echo "$me: cannot create a temporary directory in ." >&2
31147 { (exit 1); exit 1; }
31152 cat >>$CONFIG_STATUS <<_ACEOF
31155 # CONFIG_FILES section.
31158 # No need to generate the scripts if there are no CONFIG_FILES.
31159 # This happens for instance when ./config.status config.h
31160 if test -n "\$CONFIG_FILES"; then
31161 # Protect against being on the right side of a sed subst in config.status.
31162 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
31163 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
31164 s,@SHELL@,$SHELL,;t t
31165 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
31166 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
31167 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
31168 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
31169 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
31170 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
31171 s,@exec_prefix@,$exec_prefix,;t t
31172 s,@prefix@,$prefix,;t t
31173 s,@program_transform_name@,$program_transform_name,;t t
31174 s,@bindir@,$bindir,;t t
31175 s,@sbindir@,$sbindir,;t t
31176 s,@archivedir@,$archivedir,;t t
31177 s,@libexecdir@,$libexecdir,;t t
31178 s,@datadir@,$datadir,;t t
31179 s,@sysconfdir@,$sysconfdir,;t t
31180 s,@sharedstatedir@,$sharedstatedir,;t t
31181 s,@localstatedir@,$localstatedir,;t t
31182 s,@libdir@,$libdir,;t t
31183 s,@includedir@,$includedir,;t t
31184 s,@oldincludedir@,$oldincludedir,;t t
31185 s,@infodir@,$infodir,;t t
31186 s,@mandir@,$mandir,;t t
31187 s,@build_alias@,$build_alias,;t t
31188 s,@host_alias@,$host_alias,;t t
31189 s,@target_alias@,$target_alias,;t t
31190 s,@DEFS@,$DEFS,;t t
31191 s,@ECHO_C@,$ECHO_C,;t t
31192 s,@ECHO_N@,$ECHO_N,;t t
31193 s,@ECHO_T@,$ECHO_T,;t t
31194 s,@LIBS@,$LIBS,;t t
31195 s,@BUILD_DIR@,$BUILD_DIR,;t t
31196 s,@TOP_DIR@,$TOP_DIR,;t t
31197 s,@TRUEPRG@,$TRUEPRG,;t t
31198 s,@FALSEPRG@,$FALSEPRG,;t t
31199 s,@VERSION@,$VERSION,;t t
31200 s,@DATE@,$DATE,;t t
31201 s,@LSMDATE@,$LSMDATE,;t t
31203 s,@CFLAGS@,$CFLAGS,;t t
31204 s,@LDFLAGS@,$LDFLAGS,;t t
31205 s,@CPPFLAGS@,$CPPFLAGS,;t t
31206 s,@ac_ct_CC@,$ac_ct_CC,;t t
31207 s,@EXEEXT@,$EXEEXT,;t t
31208 s,@OBJEXT@,$OBJEXT,;t t
31210 s,@CXXFLAGS@,$CXXFLAGS,;t t
31211 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
31213 s,@EGREP@,$EGREP,;t t
31214 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
31215 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
31216 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
31217 s,@RANLIB@,$RANLIB,;t t
31218 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
31223 s,@ECHO@,$ECHO,;t t
31227 s,@OPENSSL@,$OPENSSL,;t t
31230 s,@MKISOFS@,$MKISOFS,;t t
31231 s,@PYTHON@,$PYTHON,;t t
31232 s,@GROWISOFS@,$GROWISOFS,;t t
31233 s,@DVDRWMEDIAINFO@,$DVDRWMEDIAINFO,;t t
31234 s,@DVDRWFORMAT@,$DVDRWFORMAT,;t t
31235 s,@PKGCONFIG@,$PKGCONFIG,;t t
31236 s,@WXCONFIG@,$WXCONFIG,;t t
31237 s,@WXFLAGS@,$WXFLAGS,;t t
31238 s,@CDRECORD@,$CDRECORD,;t t
31239 s,@PIDOF@,$PIDOF,;t t
31241 s,@ARFLAGS@,$ARFLAGS,;t t
31242 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
31243 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
31244 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
31245 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
31246 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
31247 s,@build@,$build,;t t
31248 s,@build_cpu@,$build_cpu,;t t
31249 s,@build_vendor@,$build_vendor,;t t
31250 s,@build_os@,$build_os,;t t
31251 s,@host@,$host,;t t
31252 s,@host_cpu@,$host_cpu,;t t
31253 s,@host_vendor@,$host_vendor,;t t
31254 s,@host_os@,$host_os,;t t
31255 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
31256 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
31257 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
31258 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
31259 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
31260 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
31261 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
31262 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
31263 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
31264 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
31265 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
31266 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
31267 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
31268 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
31269 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
31270 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
31271 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
31272 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
31273 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
31274 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
31275 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
31276 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
31277 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
31278 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
31279 s,@SET_MAKE@,$SET_MAKE,;t t
31280 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
31281 s,@USE_NLS@,$USE_NLS,;t t
31282 s,@MSGFMT@,$MSGFMT,;t t
31283 s,@GMSGFMT@,$GMSGFMT,;t t
31284 s,@XGETTEXT@,$XGETTEXT,;t t
31285 s,@MSGMERGE@,$MSGMERGE,;t t
31286 s,@INTL_MACOSX_LIBS@,$INTL_MACOSX_LIBS,;t t
31287 s,@LIBICONV@,$LIBICONV,;t t
31288 s,@LTLIBICONV@,$LTLIBICONV,;t t
31289 s,@INTLLIBS@,$INTLLIBS,;t t
31290 s,@LIBINTL@,$LIBINTL,;t t
31291 s,@LTLIBINTL@,$LTLIBINTL,;t t
31292 s,@POSUB@,$POSUB,;t t
31293 s,@GLIBC2@,$GLIBC2,;t t
31294 s,@ALLOCA@,$ALLOCA,;t t
31295 s,@GLIBC21@,$GLIBC21,;t t
31296 s,@HAVE_POSIX_PRINTF@,$HAVE_POSIX_PRINTF,;t t
31297 s,@HAVE_ASPRINTF@,$HAVE_ASPRINTF,;t t
31298 s,@HAVE_SNPRINTF@,$HAVE_SNPRINTF,;t t
31299 s,@HAVE_WPRINTF@,$HAVE_WPRINTF,;t t
31300 s,@INTLBISON@,$INTLBISON,;t t
31301 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
31302 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
31303 s,@CATOBJEXT@,$CATOBJEXT,;t t
31304 s,@DATADIRNAME@,$DATADIRNAME,;t t
31305 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
31306 s,@GENCAT@,$GENCAT,;t t
31307 s,@INTLOBJS@,$INTLOBJS,;t t
31308 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
31309 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
31310 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
31311 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
31312 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
31313 s,@GNOME_DIR@,$GNOME_DIR,;t t
31314 s,@BAT_DIR@,$BAT_DIR,;t t
31315 s,@QWT_INC@,$QWT_INC,;t t
31316 s,@QWT_LDFLAGS@,$QWT_LDFLAGS,;t t
31317 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
31318 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
31319 s,@WX_DIR@,$WX_DIR,;t t
31320 s,@TRAY_MONITOR_CPPFLAGS@,$TRAY_MONITOR_CPPFLAGS,;t t
31321 s,@TRAY_MONITOR_LDFLAGS@,$TRAY_MONITOR_LDFLAGS,;t t
31322 s,@TRAY_MONITOR_DIR@,$TRAY_MONITOR_DIR,;t t
31323 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
31324 s,@STATIC_FD@,$STATIC_FD,;t t
31325 s,@STATIC_SD@,$STATIC_SD,;t t
31326 s,@STATIC_DIR@,$STATIC_DIR,;t t
31327 s,@STATIC_CONS@,$STATIC_CONS,;t t
31328 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
31329 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
31330 s,@ALL_DIRS@,$ALL_DIRS,;t t
31331 s,@DIRD_DIR@,$DIRD_DIR,;t t
31332 s,@DIR_TOOLS@,$DIR_TOOLS,;t t
31333 s,@STORED_DIR@,$STORED_DIR,;t t
31334 s,@CONS_INC@,$CONS_INC,;t t
31335 s,@CONS_OBJ@,$CONS_OBJ,;t t
31336 s,@CONS_SRC@,$CONS_SRC,;t t
31337 s,@CONS_LIBS@,$CONS_LIBS,;t t
31338 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
31339 s,@READLINE_SRC@,$READLINE_SRC,;t t
31340 s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t
31341 s,@PYTHON_INCDIR@,$PYTHON_INCDIR,;t t
31342 s,@OPENSSL_LIBS@,$OPENSSL_LIBS,;t t
31343 s,@OPENSSL_INC@,$OPENSSL_INC,;t t
31344 s,@working_dir@,$working_dir,;t t
31345 s,@scriptdir@,$scriptdir,;t t
31346 s,@dump_email@,$dump_email,;t t
31347 s,@job_email@,$job_email,;t t
31348 s,@smtp_host@,$smtp_host,;t t
31349 s,@piddir@,$piddir,;t t
31350 s,@subsysdir@,$subsysdir,;t t
31351 s,@baseport@,$baseport,;t t
31352 s,@dir_port@,$dir_port,;t t
31353 s,@fd_port@,$fd_port,;t t
31354 s,@sd_port@,$sd_port,;t t
31355 s,@dir_password@,$dir_password,;t t
31356 s,@fd_password@,$fd_password,;t t
31357 s,@sd_password@,$sd_password,;t t
31358 s,@mon_dir_password@,$mon_dir_password,;t t
31359 s,@mon_fd_password@,$mon_fd_password,;t t
31360 s,@mon_sd_password@,$mon_sd_password,;t t
31361 s,@db_name@,$db_name,;t t
31362 s,@db_user@,$db_user,;t t
31363 s,@dir_user@,$dir_user,;t t
31364 s,@dir_group@,$dir_group,;t t
31365 s,@sd_user@,$sd_user,;t t
31366 s,@sd_group@,$sd_group,;t t
31367 s,@fd_user@,$fd_user,;t t
31368 s,@fd_group@,$fd_group,;t t
31369 s,@SBINPERM@,$SBINPERM,;t t
31370 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
31371 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
31372 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
31373 s,@cats@,$cats,;t t
31374 s,@DB_TYPE@,$DB_TYPE,;t t
31375 s,@GETCONF@,$GETCONF,;t t
31376 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
31377 s,@X_CFLAGS@,$X_CFLAGS,;t t
31378 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
31379 s,@X_LIBS@,$X_LIBS,;t t
31380 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
31381 s,@LIBOBJS@,$LIBOBJS,;t t
31382 s,@FDLIBS@,$FDLIBS,;t t
31383 s,@DEBUG@,$DEBUG,;t t
31384 s,@DINCLUDE@,$DINCLUDE,;t t
31385 s,@DLIB@,$DLIB,;t t
31386 s,@DB_LIBS@,$DB_LIBS,;t t
31387 s,@WCFLAGS@,$WCFLAGS,;t t
31388 s,@WLDFLAGS@,$WLDFLAGS,;t t
31389 s,@WRAPLIBS@,$WRAPLIBS,;t t
31390 s,@OBJLIST@,$OBJLIST,;t t
31391 s,@hostname@,$hostname,;t t
31392 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
31393 s,@PSCMD@,$PSCMD,;t t
31394 s,@WIN32@,$WIN32,;t t
31395 s,@MACOSX@,$MACOSX,;t t
31396 s,@DISTNAME@,$DISTNAME,;t t
31397 s,@DISTVER@,$DISTVER,;t t
31398 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
31399 /@MCOMMON@/r $MCOMMON
31405 cat >>$CONFIG_STATUS <<\_ACEOF
31406 # Split the substitutions into bite-sized pieces for seds with
31407 # small command number limits, like on Digital OSF/1 and HP-UX.
31408 ac_max_sed_lines=48
31409 ac_sed_frag=1 # Number of current file.
31410 ac_beg=1 # First line for current file.
31411 ac_end=$ac_max_sed_lines # Line after last line for current file.
31414 while $ac_more_lines; do
31415 if test $ac_beg -gt 1; then
31416 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31418 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31420 if test ! -s $tmp/subs.frag; then
31421 ac_more_lines=false
31423 # The purpose of the label and of the branching condition is to
31424 # speed up the sed processing (if there are no `@' at all, there
31425 # is no need to browse any of the substitutions).
31426 # These are the two extra sed commands mentioned above.
31428 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
31429 if test -z "$ac_sed_cmds"; then
31430 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
31432 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
31434 ac_sed_frag=`expr $ac_sed_frag + 1`
31436 ac_end=`expr $ac_end + $ac_max_sed_lines`
31439 if test -z "$ac_sed_cmds"; then
31442 fi # test -n "$CONFIG_FILES"
31445 cat >>$CONFIG_STATUS <<\_ACEOF
31446 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
31447 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31449 - | *:- | *:-:* ) # input from stdin
31451 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31452 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31453 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31454 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31455 * ) ac_file_in=$ac_file.in ;;
31458 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
31459 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31460 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31461 X"$ac_file" : 'X\(//\)[^/]' \| \
31462 X"$ac_file" : 'X\(//\)$' \| \
31463 X"$ac_file" : 'X\(/\)' \| \
31464 . : '\(.\)' 2>/dev/null ||
31466 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31467 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31468 /^X\(\/\/\)$/{ s//\1/; q; }
31469 /^X\(\/\).*/{ s//\1/; q; }
31471 { if $as_mkdir_p; then
31476 while test ! -d "$as_dir"; do
31477 as_dirs="$as_dir $as_dirs"
31478 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31479 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31480 X"$as_dir" : 'X\(//\)[^/]' \| \
31481 X"$as_dir" : 'X\(//\)$' \| \
31482 X"$as_dir" : 'X\(/\)' \| \
31483 . : '\(.\)' 2>/dev/null ||
31485 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31486 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31487 /^X\(\/\/\)$/{ s//\1/; q; }
31488 /^X\(\/\).*/{ s//\1/; q; }
31491 test ! -n "$as_dirs" || mkdir $as_dirs
31492 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31493 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31494 { (exit 1); exit 1; }; }; }
31498 if test "$ac_dir" != .; then
31499 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31500 # A "../" for each directory in $ac_dir_suffix.
31501 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31503 ac_dir_suffix= ac_top_builddir=
31507 .) # No --srcdir option. We are building in place.
31509 if test -z "$ac_top_builddir"; then
31512 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31514 [\\/]* | ?:[\\/]* ) # Absolute path.
31515 ac_srcdir=$srcdir$ac_dir_suffix;
31516 ac_top_srcdir=$srcdir ;;
31517 *) # Relative path.
31518 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31519 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31522 # Do not use `cd foo && pwd` to compute absolute paths, because
31523 # the directories may not exist.
31525 .) ac_abs_builddir="$ac_dir";;
31528 .) ac_abs_builddir=`pwd`;;
31529 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31530 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31533 case $ac_abs_builddir in
31534 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31536 case ${ac_top_builddir}. in
31537 .) ac_abs_top_builddir=$ac_abs_builddir;;
31538 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31539 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31542 case $ac_abs_builddir in
31543 .) ac_abs_srcdir=$ac_srcdir;;
31546 .) ac_abs_srcdir=$ac_abs_builddir;;
31547 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31548 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31551 case $ac_abs_builddir in
31552 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31554 case $ac_top_srcdir in
31555 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31556 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31557 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31563 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31564 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
31567 if test x"$ac_file" != x-; then
31568 { echo "$as_me:$LINENO: creating $ac_file" >&5
31569 echo "$as_me: creating $ac_file" >&6;}
31572 # Let's still pretend it is `configure' which instantiates (i.e., don't
31573 # use $as_me), people would be surprised to read:
31574 # /* config.h. Generated by config.status. */
31575 if test x"$ac_file" = x-; then
31578 configure_input="$ac_file. "
31580 configure_input=$configure_input"Generated from `echo $ac_file_in |
31581 sed 's,.*/,,'` by configure."
31583 # First look for the input files in the build tree, otherwise in the
31585 ac_file_inputs=`IFS=:
31586 for f in $ac_file_in; do
31588 -) echo $tmp/stdin ;;
31590 # Absolute (can't be DOS-style, as IFS=:)
31591 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31592 echo "$as_me: error: cannot find input file: $f" >&2;}
31593 { (exit 1); exit 1; }; }
31596 if test -f "$f"; then
31599 elif test -f "$srcdir/$f"; then
31604 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31605 echo "$as_me: error: cannot find input file: $f" >&2;}
31606 { (exit 1); exit 1; }; }
31609 done` || { (exit 1); exit 1; }
31611 cat >>$CONFIG_STATUS <<_ACEOF
31615 cat >>$CONFIG_STATUS <<\_ACEOF
31617 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31618 s,@configure_input@,$configure_input,;t t
31619 s,@srcdir@,$ac_srcdir,;t t
31620 s,@abs_srcdir@,$ac_abs_srcdir,;t t
31621 s,@top_srcdir@,$ac_top_srcdir,;t t
31622 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31623 s,@builddir@,$ac_builddir,;t t
31624 s,@abs_builddir@,$ac_abs_builddir,;t t
31625 s,@top_builddir@,$ac_top_builddir,;t t
31626 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31627 s,@INSTALL@,$ac_INSTALL,;t t
31628 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31630 if test x"$ac_file" != x-; then
31631 mv $tmp/out $ac_file
31639 cat >>$CONFIG_STATUS <<\_ACEOF
31642 # CONFIG_HEADER section.
31645 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31646 # NAME is the cpp macro being defined and VALUE is the value it is being given.
31648 # ac_d sets the value in "#define NAME VALUE" lines.
31649 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
31650 ac_dB='[ ].*$,\1#\2'
31653 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
31654 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
31655 ac_uB='$,\1#\2define\3'
31659 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31660 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31662 - | *:- | *:-:* ) # input from stdin
31664 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31665 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31666 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31667 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31668 * ) ac_file_in=$ac_file.in ;;
31671 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31672 echo "$as_me: creating $ac_file" >&6;}
31674 # First look for the input files in the build tree, otherwise in the
31676 ac_file_inputs=`IFS=:
31677 for f in $ac_file_in; do
31679 -) echo $tmp/stdin ;;
31681 # Absolute (can't be DOS-style, as IFS=:)
31682 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31683 echo "$as_me: error: cannot find input file: $f" >&2;}
31684 { (exit 1); exit 1; }; }
31685 # Do quote $f, to prevent DOS paths from being IFS'd.
31688 if test -f "$f"; then
31691 elif test -f "$srcdir/$f"; then
31696 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31697 echo "$as_me: error: cannot find input file: $f" >&2;}
31698 { (exit 1); exit 1; }; }
31701 done` || { (exit 1); exit 1; }
31702 # Remove the trailing spaces.
31703 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
31707 # Transform confdefs.h into two sed scripts, `conftest.defines' and
31708 # `conftest.undefs', that substitutes the proper values into
31709 # config.h.in to produce config.h. The first handles `#define'
31710 # templates, and the second `#undef' templates.
31711 # And first: Protect against being on the right side of a sed subst in
31712 # config.status. Protect against being in an unquoted here document
31713 # in config.status.
31714 rm -f conftest.defines conftest.undefs
31715 # Using a here document instead of a string reduces the quoting nightmare.
31716 # Putting comments in sed scripts is not portable.
31718 # `end' is used to avoid that the second main sed command (meant for
31719 # 0-ary CPP macros) applies to n-ary macro definitions.
31720 # See the Autoconf documentation for `clear'.
31721 cat >confdef2sed.sed <<\_ACEOF
31726 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
31728 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
31731 # If some macros were called several times there might be several times
31732 # the same #defines, which is useless. Nevertheless, we may not want to
31733 # sort them, since we want the *last* AC-DEFINE to be honored.
31734 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31735 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31736 rm -f confdef2sed.sed
31738 # This sed command replaces #undef with comments. This is necessary, for
31739 # example, in the case of _POSIX_SOURCE, which is predefined and required
31740 # on some systems where configure will not decide to define it.
31741 cat >>conftest.undefs <<\_ACEOF
31742 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
31745 # Break up conftest.defines because some shells have a limit on the size
31746 # of here documents, and old seds have small limits too (100 cmds).
31747 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
31748 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
31749 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31750 echo ' :' >>$CONFIG_STATUS
31751 rm -f conftest.tail
31752 while grep . conftest.defines >/dev/null
31754 # Write a limited-size here document to $tmp/defines.sed.
31755 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31756 # Speed up: don't consider the non `#define' lines.
31757 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
31758 # Work around the forget-to-reset-the-flag bug.
31759 echo 't clr' >>$CONFIG_STATUS
31760 echo ': clr' >>$CONFIG_STATUS
31761 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
31763 sed -f $tmp/defines.sed $tmp/in >$tmp/out
31765 mv $tmp/out $tmp/in
31767 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
31768 rm -f conftest.defines
31769 mv conftest.tail conftest.defines
31771 rm -f conftest.defines
31772 echo ' fi # grep' >>$CONFIG_STATUS
31773 echo >>$CONFIG_STATUS
31775 # Break up conftest.undefs because some shells have a limit on the size
31776 # of here documents, and old seds have small limits too (100 cmds).
31777 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
31778 rm -f conftest.tail
31779 while grep . conftest.undefs >/dev/null
31781 # Write a limited-size here document to $tmp/undefs.sed.
31782 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
31783 # Speed up: don't consider the non `#undef'
31784 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
31785 # Work around the forget-to-reset-the-flag bug.
31786 echo 't clr' >>$CONFIG_STATUS
31787 echo ': clr' >>$CONFIG_STATUS
31788 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
31790 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
31792 mv $tmp/out $tmp/in
31794 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
31795 rm -f conftest.undefs
31796 mv conftest.tail conftest.undefs
31798 rm -f conftest.undefs
31800 cat >>$CONFIG_STATUS <<\_ACEOF
31801 # Let's still pretend it is `configure' which instantiates (i.e., don't
31802 # use $as_me), people would be surprised to read:
31803 # /* config.h. Generated by config.status. */
31804 if test x"$ac_file" = x-; then
31805 echo "/* Generated by configure. */" >$tmp/config.h
31807 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
31809 cat $tmp/in >>$tmp/config.h
31811 if test x"$ac_file" != x-; then
31812 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
31813 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31814 echo "$as_me: $ac_file is unchanged" >&6;}
31816 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31817 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31818 X"$ac_file" : 'X\(//\)[^/]' \| \
31819 X"$ac_file" : 'X\(//\)$' \| \
31820 X"$ac_file" : 'X\(/\)' \| \
31821 . : '\(.\)' 2>/dev/null ||
31823 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31824 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31825 /^X\(\/\/\)$/{ s//\1/; q; }
31826 /^X\(\/\).*/{ s//\1/; q; }
31828 { if $as_mkdir_p; then
31833 while test ! -d "$as_dir"; do
31834 as_dirs="$as_dir $as_dirs"
31835 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31836 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31837 X"$as_dir" : 'X\(//\)[^/]' \| \
31838 X"$as_dir" : 'X\(//\)$' \| \
31839 X"$as_dir" : 'X\(/\)' \| \
31840 . : '\(.\)' 2>/dev/null ||
31842 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31843 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31844 /^X\(\/\/\)$/{ s//\1/; q; }
31845 /^X\(\/\).*/{ s//\1/; q; }
31848 test ! -n "$as_dirs" || mkdir $as_dirs
31849 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31850 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31851 { (exit 1); exit 1; }; }; }
31854 mv $tmp/config.h $ac_file
31858 rm -f $tmp/config.h
31862 cat >>$CONFIG_STATUS <<\_ACEOF
31865 # CONFIG_COMMANDS section.
31867 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
31868 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
31869 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
31870 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
31871 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31872 X"$ac_dest" : 'X\(//\)[^/]' \| \
31873 X"$ac_dest" : 'X\(//\)$' \| \
31874 X"$ac_dest" : 'X\(/\)' \| \
31875 . : '\(.\)' 2>/dev/null ||
31877 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31878 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31879 /^X\(\/\/\)$/{ s//\1/; q; }
31880 /^X\(\/\).*/{ s//\1/; q; }
31882 { if $as_mkdir_p; then
31887 while test ! -d "$as_dir"; do
31888 as_dirs="$as_dir $as_dirs"
31889 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31890 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31891 X"$as_dir" : 'X\(//\)[^/]' \| \
31892 X"$as_dir" : 'X\(//\)$' \| \
31893 X"$as_dir" : 'X\(/\)' \| \
31894 . : '\(.\)' 2>/dev/null ||
31896 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31897 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31898 /^X\(\/\/\)$/{ s//\1/; q; }
31899 /^X\(\/\).*/{ s//\1/; q; }
31902 test ! -n "$as_dirs" || mkdir $as_dirs
31903 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31904 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31905 { (exit 1); exit 1; }; }; }
31909 if test "$ac_dir" != .; then
31910 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31911 # A "../" for each directory in $ac_dir_suffix.
31912 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31914 ac_dir_suffix= ac_top_builddir=
31918 .) # No --srcdir option. We are building in place.
31920 if test -z "$ac_top_builddir"; then
31923 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31925 [\\/]* | ?:[\\/]* ) # Absolute path.
31926 ac_srcdir=$srcdir$ac_dir_suffix;
31927 ac_top_srcdir=$srcdir ;;
31928 *) # Relative path.
31929 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31930 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31933 # Do not use `cd foo && pwd` to compute absolute paths, because
31934 # the directories may not exist.
31936 .) ac_abs_builddir="$ac_dir";;
31939 .) ac_abs_builddir=`pwd`;;
31940 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31941 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31944 case $ac_abs_builddir in
31945 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31947 case ${ac_top_builddir}. in
31948 .) ac_abs_top_builddir=$ac_abs_builddir;;
31949 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31950 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31953 case $ac_abs_builddir in
31954 .) ac_abs_srcdir=$ac_srcdir;;
31957 .) ac_abs_srcdir=$ac_abs_builddir;;
31958 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31959 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31962 case $ac_abs_builddir in
31963 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31965 case $ac_top_srcdir in
31966 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31967 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31968 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31973 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
31974 echo "$as_me: executing $ac_dest commands" >&6;}
31977 for ac_file in $CONFIG_FILES; do
31978 # Support "outfile[:infile[:infile...]]"
31980 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
31982 # PO directories have a Makefile.in generated from Makefile.in.in.
31983 case "$ac_file" in */Makefile.in)
31984 # Adjust a relative srcdir.
31985 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
31986 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
31987 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
31988 # In autoconf-2.13 it is called $ac_given_srcdir.
31989 # In autoconf-2.50 it is called $srcdir.
31990 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
31991 case "$ac_given_srcdir" in
31992 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
31993 /*) top_srcdir="$ac_given_srcdir" ;;
31994 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
31996 # Treat a directory as a PO directory if and only if it has a
31997 # POTFILES.in file. This allows packages to have multiple PO
31998 # directories under different names or in different locations.
31999 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
32000 rm -f "$ac_dir/POTFILES"
32001 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
32002 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
32003 POMAKEFILEDEPS="POTFILES.in"
32004 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
32005 # on $ac_dir but don't depend on user-specified configuration
32007 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
32008 # The LINGUAS file contains the set of available languages.
32009 if test -n "$OBSOLETE_ALL_LINGUAS"; then
32010 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
32012 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
32013 # Hide the ALL_LINGUAS assigment from automake.
32014 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
32015 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
32017 # The set of available languages was given in configure.in.
32018 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
32021 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
32022 # Compute UPDATEPOFILES
32023 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
32024 # Compute DUMMYPOFILES
32025 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
32027 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
32028 case "$ac_given_srcdir" in
32030 *) srcdirpre='$(srcdir)/' ;;
32036 for lang in $ALL_LINGUAS; do
32037 POFILES="$POFILES $srcdirpre$lang.po"
32038 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
32039 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
32040 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
32042 # CATALOGS depends on both $ac_dir and the user's LINGUAS
32043 # environment variable.
32045 if test -n "$ALL_LINGUAS"; then
32046 for presentlang in $ALL_LINGUAS; do
32048 if test "%UNSET%" != "$LINGUAS"; then
32049 desiredlanguages="$LINGUAS"
32051 desiredlanguages="$ALL_LINGUAS"
32053 for desiredlang in $desiredlanguages; do
32054 # Use the presentlang catalog if desiredlang is
32055 # a. equal to presentlang, or
32056 # b. a variant of presentlang (because in this case,
32057 # presentlang can be used as a fallback for messages
32058 # which are not translated in the desiredlang catalog).
32059 case "$desiredlang" in
32060 "$presentlang"*) useit=yes;;
32063 if test $useit = yes; then
32064 INST_LINGUAS="$INST_LINGUAS $presentlang"
32069 if test -n "$INST_LINGUAS"; then
32070 for lang in $INST_LINGUAS; do
32071 CATALOGS="$CATALOGS $lang.gmo"
32074 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
32075 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
32076 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
32077 if test -f "$f"; then
32079 *.orig | *.bak | *~) ;;
32080 *) cat "$f" >> "$ac_dir/Makefile" ;;
32094 cat >>$CONFIG_STATUS <<\_ACEOF
32096 { (exit 0); exit 0; }
32098 chmod +x $CONFIG_STATUS
32099 ac_clean_files=$ac_clean_files_save
32102 # configure is writing to config.log, and then calls config.status.
32103 # config.status does its own redirection, appending to config.log.
32104 # Unfortunately, on DOS this fails, as config.log is still kept open
32105 # by configure, so config.status won't be able to write to it; its
32106 # output is simply discarded. So we exec the FD to /dev/null,
32107 # effectively closing config.log, so it can be properly (re)opened and
32108 # appended to by config.status. When coming back to configure, we
32109 # need to make the FD available again.
32110 if test "$no_create" != yes; then
32112 ac_config_status_args=
32113 test "$silent" = yes &&
32114 ac_config_status_args="$ac_config_status_args --quiet"
32116 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32118 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32119 # would make configure fail if this is the last instruction.
32120 $ac_cs_success || { (exit 1); exit 1; }
32124 if test "${support_bat}" = "yes" ; then
32126 chmod 755 install_conf_file build-depkgs-qt-console
32127 echo "Creating bat Makefile"
32132 echo "Doing make of dependencies"
32133 ${MAKE:-make} depend
32136 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
32137 chmod 755 dvd-handler dvd-simulator
32138 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
32143 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
32144 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
32146 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
32147 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
32149 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
32150 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
32152 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
32153 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
32155 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
32156 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
32158 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
32159 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
32161 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
32162 chmod 755 $c/sqlite
32165 chmod 755 src/win32/build-depkgs-mingw32
32169 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
32170 largefile_support="yes"
32174 # A whole lot of hand springs to get the compiler version.
32175 # This is because gcc changed the output in version 3.0
32177 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32178 if test "x${CCVERSION}" = "x" ; then
32179 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32181 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32182 if test x"${CXXVERSION}" = x ; then
32183 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32186 if test "x${subsysdir}" = "x${sbindir}" ; then
32189 echo "You have set --sbindir and --with-subsys-dir"
32190 echo " both equal to: ${subsysdir} "
32191 echo " This is not permitted. Please reconfigure."
32193 echo "Aborting configuration ..."
32199 if test "x${db_type}" = "xInternal" ; then
32202 echo "You have not specified either --enable-client-only or one of the"
32203 echo " supported databases: MySQL, PostgreSQL, SQLite3 or SQLite."
32204 echo " This is not permitted. Please reconfigure."
32206 echo "Aborting the configuration ..."
32213 Configuration on `date`:
32215 Host: $host -- ${DISTNAME} ${DISTVER}
32216 Bacula version: ${VERSION} (${DATE})
32217 Source code location: ${srcdir}
32218 Install binaries: ${sbindir}
32219 Install config files: ${sysconfdir}
32220 Scripts directory: ${scriptdir}
32221 Archive directory: ${archivedir}
32222 Working directory: ${working_dir}
32223 PID directory: ${piddir}
32224 Subsys directory: ${subsysdir}
32225 Man directory: ${mandir}
32226 Data directory: ${datadir}
32227 C Compiler: ${CC} ${CCVERSION}
32228 C++ Compiler: ${CXX} ${CXXVERSION}
32229 Compiler flags: ${WCFLAGS} ${CFLAGS}
32230 Linker flags: ${WLDFLAGS} ${LDFLAGS}
32232 Statically Linked Tools: ${support_static_tools}
32233 Statically Linked FD: ${support_static_fd}
32234 Statically Linked SD: ${support_static_sd}
32235 Statically Linked DIR: ${support_static_dir}
32236 Statically Linked CONS: ${support_static_cons}
32237 Database type: ${db_type}
32238 Database lib: ${DB_LIBS}
32239 Database name: ${db_name}
32240 Database user: ${db_user}
32242 Job Output Email: ${job_email}
32243 Traceback Email: ${dump_email}
32244 SMTP Host Address: ${smtp_host}
32246 Director Port: ${dir_port}
32247 File daemon Port: ${fd_port}
32248 Storage daemon Port: ${sd_port}
32250 Director User: ${dir_user}
32251 Director Group: ${dir_group}
32252 Storage Daemon User: ${sd_user}
32253 Storage DaemonGroup: ${sd_group}
32254 File Daemon User: ${fd_user}
32255 File Daemon Group: ${fd_group}
32257 SQL binaries Directory ${SQL_BINDIR}
32259 Large file support: $largefile_support
32260 Bacula conio support: ${got_conio} ${CONS_LIBS}
32261 readline support: ${got_readline} ${PRTREADLINE_SRC}
32262 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
32263 TLS support: ${support_tls}
32264 Encryption support: ${support_crypto}
32265 ZLIB support: ${have_zlib}
32266 enable-smartalloc: ${support_smartalloc}
32267 bat support: ${support_bat} ${QWT_LDFLAGS}
32268 enable-gnome: ${support_gnome} ${gnome_version}
32269 enable-bwx-console: ${support_wx_console} ${wx_version}
32270 enable-tray-monitor: ${support_tray_monitor}
32271 client-only: ${build_client_only}
32272 build-dird: ${build_dird}
32273 build-stored: ${build_stored}
32274 ACL support: ${have_acl}
32275 Python support: ${support_python} ${PYTHON_LIBS}
32276 Batch insert enabled: ${support_batch_insert}