2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file="src/version.h"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS BUILD_DIR 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'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
430 -help | --help | --hel | --he | -h)
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 # Obsolete; use --without-fp.
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
560 -site=* | --site=* | --sit=*)
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 -version | --version | --versio | --versi | --vers | -V)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CXX_set=${CXX+set}
770 ac_env_CXX_value=$CXX
771 ac_cv_env_CXX_set=${CXX+set}
772 ac_cv_env_CXX_value=$CXX
773 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
774 ac_env_CXXFLAGS_value=$CXXFLAGS
775 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
776 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
777 ac_env_CPP_set=${CPP+set}
778 ac_env_CPP_value=$CPP
779 ac_cv_env_CPP_set=${CPP+set}
780 ac_cv_env_CPP_value=$CPP
781 ac_env_WXCONFIG_set=${WXCONFIG+set}
782 ac_env_WXCONFIG_value=$WXCONFIG
783 ac_cv_env_WXCONFIG_set=${WXCONFIG+set}
784 ac_cv_env_WXCONFIG_value=$WXCONFIG
785 ac_env_WXFLAGS_set=${WXFLAGS+set}
786 ac_env_WXFLAGS_value=$WXFLAGS
787 ac_cv_env_WXFLAGS_set=${WXFLAGS+set}
788 ac_cv_env_WXFLAGS_value=$WXFLAGS
791 # Report the --help message.
793 if test "$ac_init_help" = "long"; then
794 # Omit some internal or obsolete options to make the list less imposing.
795 # This message is too long to be a string in the A/UX 3.1 sh.
797 \`configure' configures this package to adapt to many kinds of systems.
799 Usage: $0 [OPTION]... [VAR=VALUE]...
801 To assign environment variables (e.g., CC, CFLAGS...), specify them as
802 VAR=VALUE. See below for descriptions of some of the useful variables.
804 Defaults for the options are specified in brackets.
807 -h, --help display this help and exit
808 --help=short display options specific to this package
809 --help=recursive display the short help of all the included packages
810 -V, --version display version information and exit
811 -q, --quiet, --silent do not print \`checking...' messages
812 --cache-file=FILE cache test results in FILE [disabled]
813 -C, --config-cache alias for \`--cache-file=config.cache'
814 -n, --no-create do not create output files
815 --srcdir=DIR find the sources in DIR [configure dir or \`..']
820 Installation directories:
821 --prefix=PREFIX install architecture-independent files in PREFIX
823 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
826 By default, \`make install' will install all the files in
827 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
828 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
829 for instance \`--prefix=\$HOME'.
831 For better control, use the options below.
833 Fine tuning of the installation directories:
834 --bindir=DIR user executables [EPREFIX/bin]
835 --sbindir=DIR system admin executables [EPREFIX/sbin]
836 --libexecdir=DIR program executables [EPREFIX/libexec]
837 --datadir=DIR read-only architecture-independent data [PREFIX/share]
838 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
839 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
840 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
841 --libdir=DIR object code libraries [EPREFIX/lib]
842 --includedir=DIR C header files [PREFIX/include]
843 --oldincludedir=DIR C header files for non-gcc [/usr/include]
844 --infodir=DIR info documentation [PREFIX/info]
845 --mandir=DIR man documentation [PREFIX/man]
851 --x-includes=DIR X include files are in DIR
852 --x-libraries=DIR X library files are in DIR
855 --build=BUILD configure for building on BUILD [guessed]
856 --host=HOST cross-compile to build programs to run on HOST [BUILD]
860 if test -n "$ac_init_help"; then
865 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
866 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
867 --disable-nls do not use Native Language Support
868 --disable-rpath do not hardcode runtime library paths
869 --enable-gnome enable build of bgnome-console GUI disabled
870 --enable-bat enable build of bat Qt4 GUI disabled
871 --enable-bwx-console enable build of wxWidgets console disabled
872 --enable-tray-monitor enable build of Gnome tray monitor (compatible with KDE) disabled
873 --enable-smartalloc enable smartalloc debugging support disabled
874 --enable-static-tools enable static tape tools disabled
875 --enable-static-fd enable static File daemon disabled
876 --enable-static-sd enable static Storage daemon disabled
877 --enable-static-dir enable static Director disabled
878 --enable-static-cons enable static Console disabled
879 --enable-client-only build client (File daemon) only disabled
880 --enable-build-dird enable building of dird (Director) enabled
881 --enable-build-stored enable building of stored (Storage daemon) enabled
882 --disable-conio disable conio support enabled
884 --enable-ipv6 enable ipv6 support enabled
886 --disable-readline disable readline support disable
888 --enable-batch-insert enable the DB batch insert code disabled
889 --disable-largefile omit support for large files
892 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
893 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
894 --with-gnu-ld assume the C compiler uses GNU ld default=no
895 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
896 --without-libiconv-prefix don't search for libiconv in includedir and libdir
897 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
898 --without-libintl-prefix don't search for libintl in includedir and libdir
899 --with-included-gettext use the GNU gettext library included here
900 --with-qwt[=DIR] specify qwt library directory
901 --with-readline[=DIR] specify readline library directory
903 --with-python[=DIR] Include Python support. DIR is the Python base
904 install directory, default is to search through
905 a number of common places for the Python files.
906 --with-tcp-wrappers[=DIR] enable tcpwrappers support
908 Include OpenSSL support. DIR is the OpenSSL base
909 --with-working-dir=PATH specify path of Bacula working directory
910 --with-scriptdir=PATH specify path of Bacula scripts directory
911 --with-dump-email=EMAIL dump email address
912 --with-job-email=EMAIL job output email address
913 --with-smtp-host=HOST SMTP mail host address
914 --with-pid-dir=PATH specify location of Bacula pid files
915 --with-subsys-dir=PATH specify location of Bacula subsys file
916 --with-baseport=PORT specify base port address for daemons
917 --with-dir-password=PASSWORD specify Director's password
918 --with-fd-password=PASSWORD specify Client's password
919 --with-sd-password=PASSWORD specify Storage daemon's password
920 --with-mon-dir-password=PASSWORD specify Director's password used by the monitor
921 --with-mon-fd-password=PASSWORD specify Client's password used by the monitor
922 --with-mon-sd-password=PASSWORD specify Storage daemon's password used by the monitor
923 --with-db-name=DBNAME specify database name (default bacula)
924 --with-db-user=UNAME specify database user (default bacula)
925 --with-dir-user=USER specify user for Director daemon
926 --with-dir-group=GROUP specify group for Director daemon
927 --with-sd-user=USER specify user for Storage daemon
928 --with-sd-group=GROUP specify group for Storage daemon
929 --with-fd-user=USER specify user for File daemon
930 --with-fd-group=GROUP specify group for File daemon
931 --with-sbin-perm=MODE specify permissions for sbin binaries (0754)
932 --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
933 base install directory, defaults to /usr/local/pgsql
935 --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base
936 install directory, default is to search through
937 a number of common places for the MySQL files.
939 --with-embedded-mysql[=DIR] Include MySQL support. DIR is the MySQL base
940 install directory, default is to search through
941 a number of common places for the MySQL files.
943 --with-sqlite3[=DIR] Include SQLite3 support. DIR is the SQLite3 base
944 install directory, default is to search through
945 a number of common places for the SQLite3 files.
947 --with-sqlite[=DIR] Include SQLite support. DIR is the SQLite base
948 install directory, default is to search through
949 a number of common places for the SQLite files.
950 --with-x use the X Window System
952 Some influential environment variables:
953 CC C compiler command
954 CFLAGS C compiler flags
955 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
956 nonstandard directory <lib dir>
957 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
958 headers in a nonstandard directory <include dir>
959 CXX C++ compiler command
960 CXXFLAGS C++ compiler flags
962 WXCONFIG wx-config command. On some systems, you must set it to
963 wx-config-2.6 to use wxWidgets 2.6.
964 WXFLAGS Parameters to pass to wx-config (e.g. --unicode=no).
966 Use these variables to override the choices made by `configure' or to help
967 it to find libraries and programs with nonstandard names/locations.
972 if test "$ac_init_help" = "recursive"; then
973 # If there are subdirs, report their specific --help.
975 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
976 test -d $ac_dir || continue
979 if test "$ac_dir" != .; then
980 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
981 # A "../" for each directory in $ac_dir_suffix.
982 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
984 ac_dir_suffix= ac_top_builddir=
988 .) # No --srcdir option. We are building in place.
990 if test -z "$ac_top_builddir"; then
993 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
995 [\\/]* | ?:[\\/]* ) # Absolute path.
996 ac_srcdir=$srcdir$ac_dir_suffix;
997 ac_top_srcdir=$srcdir ;;
999 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1000 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1003 # Do not use `cd foo && pwd` to compute absolute paths, because
1004 # the directories may not exist.
1006 .) ac_abs_builddir="$ac_dir";;
1009 .) ac_abs_builddir=`pwd`;;
1010 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1011 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1014 case $ac_abs_builddir in
1015 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1017 case ${ac_top_builddir}. in
1018 .) ac_abs_top_builddir=$ac_abs_builddir;;
1019 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1020 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1023 case $ac_abs_builddir in
1024 .) ac_abs_srcdir=$ac_srcdir;;
1027 .) ac_abs_srcdir=$ac_abs_builddir;;
1028 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1029 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1032 case $ac_abs_builddir in
1033 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1035 case $ac_top_srcdir in
1036 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1037 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1038 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1043 # Check for guested configure; otherwise get Cygnus style configure.
1044 if test -f $ac_srcdir/configure.gnu; then
1046 $SHELL $ac_srcdir/configure.gnu --help=recursive
1047 elif test -f $ac_srcdir/configure; then
1049 $SHELL $ac_srcdir/configure --help=recursive
1050 elif test -f $ac_srcdir/configure.ac ||
1051 test -f $ac_srcdir/configure.in; then
1053 $ac_configure --help
1055 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1061 test -n "$ac_init_help" && exit 0
1062 if $ac_init_version; then
1065 Copyright (C) 2003 Free Software Foundation, Inc.
1066 This configure script is free software; the Free Software Foundation
1067 gives unlimited permission to copy, distribute and modify it.
1073 This file contains any messages produced by compilers while
1074 running configure, to aid debugging if configure makes a mistake.
1076 It was created by $as_me, which was
1077 generated by GNU Autoconf 2.59. Invocation command line was
1088 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1089 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1090 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1091 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1092 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1094 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1095 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1097 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1098 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1099 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1100 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1101 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1102 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1103 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1111 test -z "$as_dir" && as_dir=.
1112 echo "PATH: $as_dir"
1127 # Keep a trace of the command line.
1128 # Strip out --no-create and --no-recursion so they do not pile up.
1129 # Strip out --silent because we don't want to record it for future runs.
1130 # Also quote any args containing shell meta-characters.
1131 # Make two passes to allow for proper duplicate-argument suppression.
1136 ac_must_keep_next=false
1142 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1143 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1144 | -silent | --silent | --silen | --sile | --sil)
1146 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1147 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1150 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1152 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1153 if test $ac_must_keep_next = true; then
1154 ac_must_keep_next=false # Got value, back to normal.
1157 *=* | --config-cache | -C | -disable-* | --disable-* \
1158 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1159 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1160 | -with-* | --with-* | -without-* | --without-* | --x)
1161 case "$ac_configure_args0 " in
1162 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1165 -* ) ac_must_keep_next=true ;;
1168 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1169 # Get rid of the leading space.
1175 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1176 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1178 # When interrupted or exit'd, cleanup temporary files, and complete
1179 # config.log. We remove comments because anyway the quotes in there
1180 # would cause problems or look ugly.
1181 # WARNING: Be sure not to use single quotes in there, as some shells,
1182 # such as our DU 5.0 friend, will then `close' the trap.
1183 trap 'exit_status=$?
1184 # Save into config.log some information that might help in debugging.
1189 ## ---------------- ##
1190 ## Cache variables. ##
1191 ## ---------------- ##
1194 # The following way of writing the cache mishandles newlines in values,
1197 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1200 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1201 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1205 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1212 ## ----------------- ##
1213 ## Output variables. ##
1214 ## ----------------- ##
1217 for ac_var in $ac_subst_vars
1219 eval ac_val=$`echo $ac_var`
1220 echo "$ac_var='"'"'$ac_val'"'"'"
1224 if test -n "$ac_subst_files"; then
1231 for ac_var in $ac_subst_files
1233 eval ac_val=$`echo $ac_var`
1234 echo "$ac_var='"'"'$ac_val'"'"'"
1239 if test -s confdefs.h; then
1246 sed "/^$/d" confdefs.h | sort
1249 test "$ac_signal" != 0 &&
1250 echo "$as_me: caught signal $ac_signal"
1251 echo "$as_me: exit $exit_status"
1253 rm -f core *.core &&
1254 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1257 for ac_signal in 1 2 13 15; do
1258 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1262 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1263 rm -rf conftest* confdefs.h
1264 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1267 # Predefined preprocessor variables.
1269 cat >>confdefs.h <<_ACEOF
1270 #define PACKAGE_NAME "$PACKAGE_NAME"
1274 cat >>confdefs.h <<_ACEOF
1275 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1279 cat >>confdefs.h <<_ACEOF
1280 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1284 cat >>confdefs.h <<_ACEOF
1285 #define PACKAGE_STRING "$PACKAGE_STRING"
1289 cat >>confdefs.h <<_ACEOF
1290 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1294 # Let the site file select an alternate cache file if it wants to.
1295 # Prefer explicitly selected file to automatically selected ones.
1296 if test -z "$CONFIG_SITE"; then
1297 if test "x$prefix" != xNONE; then
1298 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1300 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1303 for ac_site_file in $CONFIG_SITE; do
1304 if test -r "$ac_site_file"; then
1305 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1306 echo "$as_me: loading site script $ac_site_file" >&6;}
1307 sed 's/^/| /' "$ac_site_file" >&5
1312 if test -r "$cache_file"; then
1313 # Some versions of bash will fail to source /dev/null (special
1314 # files actually), so we avoid doing that.
1315 if test -f "$cache_file"; then
1316 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1317 echo "$as_me: loading cache $cache_file" >&6;}
1319 [\\/]* | ?:[\\/]* ) . $cache_file;;
1320 *) . ./$cache_file;;
1324 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1325 echo "$as_me: creating cache $cache_file" >&6;}
1329 # Check that the precious variables saved in the cache have kept the same
1331 ac_cache_corrupted=false
1332 for ac_var in `(set) 2>&1 |
1333 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1334 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1335 eval ac_new_set=\$ac_env_${ac_var}_set
1336 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1337 eval ac_new_val="\$ac_env_${ac_var}_value"
1338 case $ac_old_set,$ac_new_set in
1340 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1341 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1342 ac_cache_corrupted=: ;;
1344 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1345 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1346 ac_cache_corrupted=: ;;
1349 if test "x$ac_old_val" != "x$ac_new_val"; then
1350 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1351 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1352 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1353 echo "$as_me: former value: $ac_old_val" >&2;}
1354 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1355 echo "$as_me: current value: $ac_new_val" >&2;}
1356 ac_cache_corrupted=:
1359 # Pass precious variables to config.status.
1360 if test "$ac_new_set" = set; then
1362 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1363 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1364 *) ac_arg=$ac_var=$ac_new_val ;;
1366 case " $ac_configure_args " in
1367 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1368 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1372 if $ac_cache_corrupted; then
1373 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1374 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1375 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1376 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1377 { (exit 1); exit 1; }; }
1381 ac_cpp='$CPP $CPPFLAGS'
1382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1411 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1412 if test -f $ac_dir/install-sh; then
1414 ac_install_sh="$ac_aux_dir/install-sh -c"
1416 elif test -f $ac_dir/install.sh; then
1418 ac_install_sh="$ac_aux_dir/install.sh -c"
1420 elif test -f $ac_dir/shtool; then
1422 ac_install_sh="$ac_aux_dir/shtool install -c"
1426 if test -z "$ac_aux_dir"; then
1427 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1428 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1429 { (exit 1); exit 1; }; }
1431 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1432 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1433 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1435 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1443 # Extract the first word of "$ac_prog", so it can be a program name with args.
1444 set dummy $ac_prog; ac_word=$2
1445 echo "$as_me:$LINENO: checking for $ac_word" >&5
1446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1447 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1448 echo $ECHO_N "(cached) $ECHO_C" >&6
1452 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1459 test -z "$as_dir" && as_dir=.
1460 for ac_exec_ext in '' $ac_executable_extensions; do
1461 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1462 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1472 TRUEPRG=$ac_cv_path_TRUEPRG
1474 if test -n "$TRUEPRG"; then
1475 echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1476 echo "${ECHO_T}$TRUEPRG" >&6
1478 echo "$as_me:$LINENO: result: no" >&5
1479 echo "${ECHO_T}no" >&6
1482 test -n "$TRUEPRG" && break
1484 test -n "$TRUEPRG" || TRUEPRG=":"
1486 for ac_prog in false
1488 # Extract the first word of "$ac_prog", so it can be a program name with args.
1489 set dummy $ac_prog; ac_word=$2
1490 echo "$as_me:$LINENO: checking for $ac_word" >&5
1491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1492 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1493 echo $ECHO_N "(cached) $ECHO_C" >&6
1497 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1504 test -z "$as_dir" && as_dir=.
1505 for ac_exec_ext in '' $ac_executable_extensions; do
1506 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1507 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1517 FALSEPRG=$ac_cv_path_FALSEPRG
1519 if test -n "$FALSEPRG"; then
1520 echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1521 echo "${ECHO_T}$FALSEPRG" >&6
1523 echo "$as_me:$LINENO: result: no" >&5
1524 echo "${ECHO_T}no" >&6
1527 test -n "$FALSEPRG" && break
1529 test -n "$FALSEPRG" || FALSEPRG=":"
1534 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1535 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1536 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1537 echo "configuring for bacula $VERSION ($DATE)"
1542 ac_cpp='$CPP $CPPFLAGS'
1543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1546 if test -n "$ac_tool_prefix"; then
1547 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1548 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1549 echo "$as_me:$LINENO: checking for $ac_word" >&5
1550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1551 if test "${ac_cv_prog_CC+set}" = set; then
1552 echo $ECHO_N "(cached) $ECHO_C" >&6
1554 if test -n "$CC"; then
1555 ac_cv_prog_CC="$CC" # Let the user override the test.
1557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1561 test -z "$as_dir" && as_dir=.
1562 for ac_exec_ext in '' $ac_executable_extensions; do
1563 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1564 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1574 if test -n "$CC"; then
1575 echo "$as_me:$LINENO: result: $CC" >&5
1576 echo "${ECHO_T}$CC" >&6
1578 echo "$as_me:$LINENO: result: no" >&5
1579 echo "${ECHO_T}no" >&6
1583 if test -z "$ac_cv_prog_CC"; then
1585 # Extract the first word of "gcc", so it can be a program name with args.
1586 set dummy gcc; ac_word=$2
1587 echo "$as_me:$LINENO: checking for $ac_word" >&5
1588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1589 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1590 echo $ECHO_N "(cached) $ECHO_C" >&6
1592 if test -n "$ac_ct_CC"; then
1593 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1599 test -z "$as_dir" && as_dir=.
1600 for ac_exec_ext in '' $ac_executable_extensions; do
1601 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1602 ac_cv_prog_ac_ct_CC="gcc"
1603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1611 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1612 if test -n "$ac_ct_CC"; then
1613 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1614 echo "${ECHO_T}$ac_ct_CC" >&6
1616 echo "$as_me:$LINENO: result: no" >&5
1617 echo "${ECHO_T}no" >&6
1625 if test -z "$CC"; then
1626 if test -n "$ac_tool_prefix"; then
1627 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1628 set dummy ${ac_tool_prefix}cc; ac_word=$2
1629 echo "$as_me:$LINENO: checking for $ac_word" >&5
1630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1631 if test "${ac_cv_prog_CC+set}" = set; then
1632 echo $ECHO_N "(cached) $ECHO_C" >&6
1634 if test -n "$CC"; then
1635 ac_cv_prog_CC="$CC" # Let the user override the test.
1637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1641 test -z "$as_dir" && as_dir=.
1642 for ac_exec_ext in '' $ac_executable_extensions; do
1643 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1644 ac_cv_prog_CC="${ac_tool_prefix}cc"
1645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1654 if test -n "$CC"; then
1655 echo "$as_me:$LINENO: result: $CC" >&5
1656 echo "${ECHO_T}$CC" >&6
1658 echo "$as_me:$LINENO: result: no" >&5
1659 echo "${ECHO_T}no" >&6
1663 if test -z "$ac_cv_prog_CC"; then
1665 # Extract the first word of "cc", so it can be a program name with args.
1666 set dummy cc; ac_word=$2
1667 echo "$as_me:$LINENO: checking for $ac_word" >&5
1668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1669 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1670 echo $ECHO_N "(cached) $ECHO_C" >&6
1672 if test -n "$ac_ct_CC"; then
1673 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1679 test -z "$as_dir" && as_dir=.
1680 for ac_exec_ext in '' $ac_executable_extensions; do
1681 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1682 ac_cv_prog_ac_ct_CC="cc"
1683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1691 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1692 if test -n "$ac_ct_CC"; then
1693 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1694 echo "${ECHO_T}$ac_ct_CC" >&6
1696 echo "$as_me:$LINENO: result: no" >&5
1697 echo "${ECHO_T}no" >&6
1706 if test -z "$CC"; then
1707 # Extract the first word of "cc", so it can be a program name with args.
1708 set dummy cc; ac_word=$2
1709 echo "$as_me:$LINENO: checking for $ac_word" >&5
1710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1711 if test "${ac_cv_prog_CC+set}" = set; then
1712 echo $ECHO_N "(cached) $ECHO_C" >&6
1714 if test -n "$CC"; then
1715 ac_cv_prog_CC="$CC" # Let the user override the test.
1718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1722 test -z "$as_dir" && as_dir=.
1723 for ac_exec_ext in '' $ac_executable_extensions; do
1724 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1725 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1726 ac_prog_rejected=yes
1730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1736 if test $ac_prog_rejected = yes; then
1737 # We found a bogon in the path, so make sure we never use it.
1738 set dummy $ac_cv_prog_CC
1740 if test $# != 0; then
1741 # We chose a different compiler from the bogus one.
1742 # However, it has the same basename, so the bogon will be chosen
1743 # first if we set CC to just the basename; use the full file name.
1745 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1751 if test -n "$CC"; then
1752 echo "$as_me:$LINENO: result: $CC" >&5
1753 echo "${ECHO_T}$CC" >&6
1755 echo "$as_me:$LINENO: result: no" >&5
1756 echo "${ECHO_T}no" >&6
1760 if test -z "$CC"; then
1761 if test -n "$ac_tool_prefix"; then
1764 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1765 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1766 echo "$as_me:$LINENO: checking for $ac_word" >&5
1767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1768 if test "${ac_cv_prog_CC+set}" = set; then
1769 echo $ECHO_N "(cached) $ECHO_C" >&6
1771 if test -n "$CC"; then
1772 ac_cv_prog_CC="$CC" # Let the user override the test.
1774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1778 test -z "$as_dir" && as_dir=.
1779 for ac_exec_ext in '' $ac_executable_extensions; do
1780 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1781 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1791 if test -n "$CC"; then
1792 echo "$as_me:$LINENO: result: $CC" >&5
1793 echo "${ECHO_T}$CC" >&6
1795 echo "$as_me:$LINENO: result: no" >&5
1796 echo "${ECHO_T}no" >&6
1799 test -n "$CC" && break
1802 if test -z "$CC"; then
1806 # Extract the first word of "$ac_prog", so it can be a program name with args.
1807 set dummy $ac_prog; ac_word=$2
1808 echo "$as_me:$LINENO: checking for $ac_word" >&5
1809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1810 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1811 echo $ECHO_N "(cached) $ECHO_C" >&6
1813 if test -n "$ac_ct_CC"; then
1814 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1820 test -z "$as_dir" && as_dir=.
1821 for ac_exec_ext in '' $ac_executable_extensions; do
1822 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1823 ac_cv_prog_ac_ct_CC="$ac_prog"
1824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1832 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1833 if test -n "$ac_ct_CC"; then
1834 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1835 echo "${ECHO_T}$ac_ct_CC" >&6
1837 echo "$as_me:$LINENO: result: no" >&5
1838 echo "${ECHO_T}no" >&6
1841 test -n "$ac_ct_CC" && break
1850 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1851 See \`config.log' for more details." >&5
1852 echo "$as_me: error: no acceptable C compiler found in \$PATH
1853 See \`config.log' for more details." >&2;}
1854 { (exit 1); exit 1; }; }
1856 # Provide some information about the compiler.
1857 echo "$as_me:$LINENO:" \
1858 "checking for C compiler version" >&5
1859 ac_compiler=`set X $ac_compile; echo $2`
1860 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1861 (eval $ac_compiler --version </dev/null >&5) 2>&5
1863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1864 (exit $ac_status); }
1865 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1866 (eval $ac_compiler -v </dev/null >&5) 2>&5
1868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1869 (exit $ac_status); }
1870 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1871 (eval $ac_compiler -V </dev/null >&5) 2>&5
1873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1874 (exit $ac_status); }
1876 cat >conftest.$ac_ext <<_ACEOF
1879 cat confdefs.h >>conftest.$ac_ext
1880 cat >>conftest.$ac_ext <<_ACEOF
1881 /* end confdefs.h. */
1891 ac_clean_files_save=$ac_clean_files
1892 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1893 # Try to create an executable without -o first, disregard a.out.
1894 # It will help us diagnose broken compilers, and finding out an intuition
1896 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1897 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1898 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1899 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1900 (eval $ac_link_default) 2>&5
1902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1903 (exit $ac_status); }; then
1904 # Find the output, starting from the most likely. This scheme is
1905 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1908 # Be careful to initialize this variable, since it used to be cached.
1909 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1911 # b.out is created by i960 compilers.
1912 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1914 test -f "$ac_file" || continue
1916 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1919 # This is the source file.
1922 # We found the default executable, but exeext='' is most
1926 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1927 # FIXME: I believe we export ac_cv_exeext for Libtool,
1928 # but it would be cool to find out if it's true. Does anybody
1929 # maintain Libtool? --akim.
1937 echo "$as_me: failed program was:" >&5
1938 sed 's/^/| /' conftest.$ac_ext >&5
1940 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1941 See \`config.log' for more details." >&5
1942 echo "$as_me: error: C compiler cannot create executables
1943 See \`config.log' for more details." >&2;}
1944 { (exit 77); exit 77; }; }
1947 ac_exeext=$ac_cv_exeext
1948 echo "$as_me:$LINENO: result: $ac_file" >&5
1949 echo "${ECHO_T}$ac_file" >&6
1951 # Check the compiler produces executables we can run. If not, either
1952 # the compiler is broken, or we cross compile.
1953 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1954 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1955 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1956 # If not cross compiling, check that we can run a simple program.
1957 if test "$cross_compiling" != yes; then
1958 if { ac_try='./$ac_file'
1959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1963 (exit $ac_status); }; }; then
1966 if test "$cross_compiling" = maybe; then
1969 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1970 If you meant to cross compile, use \`--host'.
1971 See \`config.log' for more details." >&5
1972 echo "$as_me: error: cannot run C compiled programs.
1973 If you meant to cross compile, use \`--host'.
1974 See \`config.log' for more details." >&2;}
1975 { (exit 1); exit 1; }; }
1979 echo "$as_me:$LINENO: result: yes" >&5
1980 echo "${ECHO_T}yes" >&6
1982 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1983 ac_clean_files=$ac_clean_files_save
1984 # Check the compiler produces executables we can run. If not, either
1985 # the compiler is broken, or we cross compile.
1986 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1987 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1988 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1989 echo "${ECHO_T}$cross_compiling" >&6
1991 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1992 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1994 (eval $ac_link) 2>&5
1996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1997 (exit $ac_status); }; then
1998 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1999 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2000 # work properly (i.e., refer to `conftest.exe'), while it won't with
2002 for ac_file in conftest.exe conftest conftest.*; do
2003 test -f "$ac_file" || continue
2005 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2006 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2013 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2014 See \`config.log' for more details." >&5
2015 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2016 See \`config.log' for more details." >&2;}
2017 { (exit 1); exit 1; }; }
2020 rm -f conftest$ac_cv_exeext
2021 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2022 echo "${ECHO_T}$ac_cv_exeext" >&6
2024 rm -f conftest.$ac_ext
2025 EXEEXT=$ac_cv_exeext
2027 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2028 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2029 if test "${ac_cv_objext+set}" = set; then
2030 echo $ECHO_N "(cached) $ECHO_C" >&6
2032 cat >conftest.$ac_ext <<_ACEOF
2035 cat confdefs.h >>conftest.$ac_ext
2036 cat >>conftest.$ac_ext <<_ACEOF
2037 /* end confdefs.h. */
2047 rm -f conftest.o conftest.obj
2048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2049 (eval $ac_compile) 2>&5
2051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2052 (exit $ac_status); }; then
2053 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2055 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2056 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2061 echo "$as_me: failed program was:" >&5
2062 sed 's/^/| /' conftest.$ac_ext >&5
2064 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2065 See \`config.log' for more details." >&5
2066 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2067 See \`config.log' for more details." >&2;}
2068 { (exit 1); exit 1; }; }
2071 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2073 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2074 echo "${ECHO_T}$ac_cv_objext" >&6
2075 OBJEXT=$ac_cv_objext
2077 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2078 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2079 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2080 echo $ECHO_N "(cached) $ECHO_C" >&6
2082 cat >conftest.$ac_ext <<_ACEOF
2085 cat confdefs.h >>conftest.$ac_ext
2086 cat >>conftest.$ac_ext <<_ACEOF
2087 /* end confdefs.h. */
2100 rm -f conftest.$ac_objext
2101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2102 (eval $ac_compile) 2>conftest.er1
2104 grep -v '^ *+' conftest.er1 >conftest.err
2106 cat conftest.err >&5
2107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108 (exit $ac_status); } &&
2109 { ac_try='test -z "$ac_c_werror_flag"
2110 || test ! -s conftest.err'
2111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2115 (exit $ac_status); }; } &&
2116 { ac_try='test -s conftest.$ac_objext'
2117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2121 (exit $ac_status); }; }; then
2124 echo "$as_me: failed program was:" >&5
2125 sed 's/^/| /' conftest.$ac_ext >&5
2129 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2130 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2133 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2134 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2135 GCC=`test $ac_compiler_gnu = yes && echo yes`
2136 ac_test_CFLAGS=${CFLAGS+set}
2137 ac_save_CFLAGS=$CFLAGS
2139 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2140 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2141 if test "${ac_cv_prog_cc_g+set}" = set; then
2142 echo $ECHO_N "(cached) $ECHO_C" >&6
2144 cat >conftest.$ac_ext <<_ACEOF
2147 cat confdefs.h >>conftest.$ac_ext
2148 cat >>conftest.$ac_ext <<_ACEOF
2149 /* end confdefs.h. */
2159 rm -f conftest.$ac_objext
2160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2161 (eval $ac_compile) 2>conftest.er1
2163 grep -v '^ *+' conftest.er1 >conftest.err
2165 cat conftest.err >&5
2166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2167 (exit $ac_status); } &&
2168 { ac_try='test -z "$ac_c_werror_flag"
2169 || test ! -s conftest.err'
2170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174 (exit $ac_status); }; } &&
2175 { ac_try='test -s conftest.$ac_objext'
2176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180 (exit $ac_status); }; }; then
2183 echo "$as_me: failed program was:" >&5
2184 sed 's/^/| /' conftest.$ac_ext >&5
2188 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2190 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2191 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2192 if test "$ac_test_CFLAGS" = set; then
2193 CFLAGS=$ac_save_CFLAGS
2194 elif test $ac_cv_prog_cc_g = yes; then
2195 if test "$GCC" = yes; then
2201 if test "$GCC" = yes; then
2207 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2208 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2209 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2210 echo $ECHO_N "(cached) $ECHO_C" >&6
2212 ac_cv_prog_cc_stdc=no
2214 cat >conftest.$ac_ext <<_ACEOF
2217 cat confdefs.h >>conftest.$ac_ext
2218 cat >>conftest.$ac_ext <<_ACEOF
2219 /* end confdefs.h. */
2222 #include <sys/types.h>
2223 #include <sys/stat.h>
2224 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2225 struct buf { int x; };
2226 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2227 static char *e (p, i)
2233 static char *f (char * (*g) (char **, int), char **p, ...)
2238 s = g (p, va_arg (v,int));
2243 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2244 function prototypes and stuff, but not '\xHH' hex character constants.
2245 These don't provoke an error unfortunately, instead are silently treated
2246 as 'x'. The following induces an error, until -std1 is added to get
2247 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2248 array size at least. It's necessary to write '\x00'==0 to get something
2249 that's true only with -std1. */
2250 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2252 int test (int i, double x);
2253 struct s1 {int (*f) (int a);};
2254 struct s2 {int (*f) (double a);};
2255 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2261 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2266 # Don't try gcc -ansi; that turns off useful extensions and
2267 # breaks some systems' header files.
2268 # AIX -qlanglvl=ansi
2269 # Ultrix and OSF/1 -std1
2270 # HP-UX 10.20 and later -Ae
2271 # HP-UX older versions -Aa -D_HPUX_SOURCE
2272 # SVR4 -Xc -D__EXTENSIONS__
2273 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2275 CC="$ac_save_CC $ac_arg"
2276 rm -f conftest.$ac_objext
2277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2278 (eval $ac_compile) 2>conftest.er1
2280 grep -v '^ *+' conftest.er1 >conftest.err
2282 cat conftest.err >&5
2283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2284 (exit $ac_status); } &&
2285 { ac_try='test -z "$ac_c_werror_flag"
2286 || test ! -s conftest.err'
2287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2291 (exit $ac_status); }; } &&
2292 { ac_try='test -s conftest.$ac_objext'
2293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2297 (exit $ac_status); }; }; then
2298 ac_cv_prog_cc_stdc=$ac_arg
2301 echo "$as_me: failed program was:" >&5
2302 sed 's/^/| /' conftest.$ac_ext >&5
2305 rm -f conftest.err conftest.$ac_objext
2307 rm -f conftest.$ac_ext conftest.$ac_objext
2312 case "x$ac_cv_prog_cc_stdc" in
2314 echo "$as_me:$LINENO: result: none needed" >&5
2315 echo "${ECHO_T}none needed" >&6 ;;
2317 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2318 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2319 CC="$CC $ac_cv_prog_cc_stdc" ;;
2322 # Some people use a C++ compiler to compile C. Since we use `exit',
2323 # in C++ we need to declare it. In case someone uses the same compiler
2324 # for both compiling C and C++ we need to have the C++ compiler decide
2325 # the declaration of exit, since it's the most demanding environment.
2326 cat >conftest.$ac_ext <<_ACEOF
2331 rm -f conftest.$ac_objext
2332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2333 (eval $ac_compile) 2>conftest.er1
2335 grep -v '^ *+' conftest.er1 >conftest.err
2337 cat conftest.err >&5
2338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339 (exit $ac_status); } &&
2340 { ac_try='test -z "$ac_c_werror_flag"
2341 || test ! -s conftest.err'
2342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346 (exit $ac_status); }; } &&
2347 { ac_try='test -s conftest.$ac_objext'
2348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352 (exit $ac_status); }; }; then
2353 for ac_declaration in \
2355 'extern "C" void std::exit (int) throw (); using std::exit;' \
2356 'extern "C" void std::exit (int); using std::exit;' \
2357 'extern "C" void exit (int) throw ();' \
2358 'extern "C" void exit (int);' \
2361 cat >conftest.$ac_ext <<_ACEOF
2364 cat confdefs.h >>conftest.$ac_ext
2365 cat >>conftest.$ac_ext <<_ACEOF
2366 /* end confdefs.h. */
2377 rm -f conftest.$ac_objext
2378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2379 (eval $ac_compile) 2>conftest.er1
2381 grep -v '^ *+' conftest.er1 >conftest.err
2383 cat conftest.err >&5
2384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385 (exit $ac_status); } &&
2386 { ac_try='test -z "$ac_c_werror_flag"
2387 || test ! -s conftest.err'
2388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392 (exit $ac_status); }; } &&
2393 { ac_try='test -s conftest.$ac_objext'
2394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398 (exit $ac_status); }; }; then
2401 echo "$as_me: failed program was:" >&5
2402 sed 's/^/| /' conftest.$ac_ext >&5
2406 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2407 cat >conftest.$ac_ext <<_ACEOF
2410 cat confdefs.h >>conftest.$ac_ext
2411 cat >>conftest.$ac_ext <<_ACEOF
2412 /* end confdefs.h. */
2422 rm -f conftest.$ac_objext
2423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2424 (eval $ac_compile) 2>conftest.er1
2426 grep -v '^ *+' conftest.er1 >conftest.err
2428 cat conftest.err >&5
2429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430 (exit $ac_status); } &&
2431 { ac_try='test -z "$ac_c_werror_flag"
2432 || test ! -s conftest.err'
2433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437 (exit $ac_status); }; } &&
2438 { ac_try='test -s conftest.$ac_objext'
2439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443 (exit $ac_status); }; }; then
2446 echo "$as_me: failed program was:" >&5
2447 sed 's/^/| /' conftest.$ac_ext >&5
2450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2453 if test -n "$ac_declaration"; then
2454 echo '#ifdef __cplusplus' >>confdefs.h
2455 echo $ac_declaration >>confdefs.h
2456 echo '#endif' >>confdefs.h
2460 echo "$as_me: failed program was:" >&5
2461 sed 's/^/| /' conftest.$ac_ext >&5
2464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2466 ac_cpp='$CPP $CPPFLAGS'
2467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2472 ac_cpp='$CXXCPP $CPPFLAGS'
2473 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2474 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2475 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2476 if test -n "$ac_tool_prefix"; then
2477 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2479 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2480 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2481 echo "$as_me:$LINENO: checking for $ac_word" >&5
2482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2483 if test "${ac_cv_prog_CXX+set}" = set; then
2484 echo $ECHO_N "(cached) $ECHO_C" >&6
2486 if test -n "$CXX"; then
2487 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2493 test -z "$as_dir" && as_dir=.
2494 for ac_exec_ext in '' $ac_executable_extensions; do
2495 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2496 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2506 if test -n "$CXX"; then
2507 echo "$as_me:$LINENO: result: $CXX" >&5
2508 echo "${ECHO_T}$CXX" >&6
2510 echo "$as_me:$LINENO: result: no" >&5
2511 echo "${ECHO_T}no" >&6
2514 test -n "$CXX" && break
2517 if test -z "$CXX"; then
2519 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2521 # Extract the first word of "$ac_prog", so it can be a program name with args.
2522 set dummy $ac_prog; ac_word=$2
2523 echo "$as_me:$LINENO: checking for $ac_word" >&5
2524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2525 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2526 echo $ECHO_N "(cached) $ECHO_C" >&6
2528 if test -n "$ac_ct_CXX"; then
2529 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2535 test -z "$as_dir" && as_dir=.
2536 for ac_exec_ext in '' $ac_executable_extensions; do
2537 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2538 ac_cv_prog_ac_ct_CXX="$ac_prog"
2539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2547 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2548 if test -n "$ac_ct_CXX"; then
2549 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2550 echo "${ECHO_T}$ac_ct_CXX" >&6
2552 echo "$as_me:$LINENO: result: no" >&5
2553 echo "${ECHO_T}no" >&6
2556 test -n "$ac_ct_CXX" && break
2558 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2564 # Provide some information about the compiler.
2565 echo "$as_me:$LINENO:" \
2566 "checking for C++ compiler version" >&5
2567 ac_compiler=`set X $ac_compile; echo $2`
2568 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2569 (eval $ac_compiler --version </dev/null >&5) 2>&5
2571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572 (exit $ac_status); }
2573 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2574 (eval $ac_compiler -v </dev/null >&5) 2>&5
2576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577 (exit $ac_status); }
2578 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2579 (eval $ac_compiler -V </dev/null >&5) 2>&5
2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582 (exit $ac_status); }
2584 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2585 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2586 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2587 echo $ECHO_N "(cached) $ECHO_C" >&6
2589 cat >conftest.$ac_ext <<_ACEOF
2592 cat confdefs.h >>conftest.$ac_ext
2593 cat >>conftest.$ac_ext <<_ACEOF
2594 /* end confdefs.h. */
2607 rm -f conftest.$ac_objext
2608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2609 (eval $ac_compile) 2>conftest.er1
2611 grep -v '^ *+' conftest.er1 >conftest.err
2613 cat conftest.err >&5
2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615 (exit $ac_status); } &&
2616 { ac_try='test -z "$ac_cxx_werror_flag"
2617 || test ! -s conftest.err'
2618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622 (exit $ac_status); }; } &&
2623 { ac_try='test -s conftest.$ac_objext'
2624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628 (exit $ac_status); }; }; then
2631 echo "$as_me: failed program was:" >&5
2632 sed 's/^/| /' conftest.$ac_ext >&5
2636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2637 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2640 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2641 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2642 GXX=`test $ac_compiler_gnu = yes && echo yes`
2643 ac_test_CXXFLAGS=${CXXFLAGS+set}
2644 ac_save_CXXFLAGS=$CXXFLAGS
2646 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2647 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2648 if test "${ac_cv_prog_cxx_g+set}" = set; then
2649 echo $ECHO_N "(cached) $ECHO_C" >&6
2651 cat >conftest.$ac_ext <<_ACEOF
2654 cat confdefs.h >>conftest.$ac_ext
2655 cat >>conftest.$ac_ext <<_ACEOF
2656 /* end confdefs.h. */
2666 rm -f conftest.$ac_objext
2667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2668 (eval $ac_compile) 2>conftest.er1
2670 grep -v '^ *+' conftest.er1 >conftest.err
2672 cat conftest.err >&5
2673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674 (exit $ac_status); } &&
2675 { ac_try='test -z "$ac_cxx_werror_flag"
2676 || test ! -s conftest.err'
2677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681 (exit $ac_status); }; } &&
2682 { ac_try='test -s conftest.$ac_objext'
2683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687 (exit $ac_status); }; }; then
2688 ac_cv_prog_cxx_g=yes
2690 echo "$as_me: failed program was:" >&5
2691 sed 's/^/| /' conftest.$ac_ext >&5
2695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2697 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2698 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2699 if test "$ac_test_CXXFLAGS" = set; then
2700 CXXFLAGS=$ac_save_CXXFLAGS
2701 elif test $ac_cv_prog_cxx_g = yes; then
2702 if test "$GXX" = yes; then
2708 if test "$GXX" = yes; then
2714 for ac_declaration in \
2716 'extern "C" void std::exit (int) throw (); using std::exit;' \
2717 'extern "C" void std::exit (int); using std::exit;' \
2718 'extern "C" void exit (int) throw ();' \
2719 'extern "C" void exit (int);' \
2722 cat >conftest.$ac_ext <<_ACEOF
2725 cat confdefs.h >>conftest.$ac_ext
2726 cat >>conftest.$ac_ext <<_ACEOF
2727 /* end confdefs.h. */
2738 rm -f conftest.$ac_objext
2739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2740 (eval $ac_compile) 2>conftest.er1
2742 grep -v '^ *+' conftest.er1 >conftest.err
2744 cat conftest.err >&5
2745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746 (exit $ac_status); } &&
2747 { ac_try='test -z "$ac_cxx_werror_flag"
2748 || test ! -s conftest.err'
2749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753 (exit $ac_status); }; } &&
2754 { ac_try='test -s conftest.$ac_objext'
2755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759 (exit $ac_status); }; }; then
2762 echo "$as_me: failed program was:" >&5
2763 sed 's/^/| /' conftest.$ac_ext >&5
2767 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2768 cat >conftest.$ac_ext <<_ACEOF
2771 cat confdefs.h >>conftest.$ac_ext
2772 cat >>conftest.$ac_ext <<_ACEOF
2773 /* end confdefs.h. */
2783 rm -f conftest.$ac_objext
2784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2785 (eval $ac_compile) 2>conftest.er1
2787 grep -v '^ *+' conftest.er1 >conftest.err
2789 cat conftest.err >&5
2790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791 (exit $ac_status); } &&
2792 { ac_try='test -z "$ac_cxx_werror_flag"
2793 || test ! -s conftest.err'
2794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798 (exit $ac_status); }; } &&
2799 { ac_try='test -s conftest.$ac_objext'
2800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804 (exit $ac_status); }; }; then
2807 echo "$as_me: failed program was:" >&5
2808 sed 's/^/| /' conftest.$ac_ext >&5
2811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2814 if test -n "$ac_declaration"; then
2815 echo '#ifdef __cplusplus' >>confdefs.h
2816 echo $ac_declaration >>confdefs.h
2817 echo '#endif' >>confdefs.h
2821 ac_cpp='$CPP $CPPFLAGS'
2822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2826 if test "x$CC" != xcc; then
2827 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2828 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2830 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2831 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2833 set dummy $CC; ac_cc=`echo $2 |
2834 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2835 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2836 echo $ECHO_N "(cached) $ECHO_C" >&6
2838 cat >conftest.$ac_ext <<_ACEOF
2841 cat confdefs.h >>conftest.$ac_ext
2842 cat >>conftest.$ac_ext <<_ACEOF
2843 /* end confdefs.h. */
2853 # Make sure it works both with $CC and with simple cc.
2854 # We do the test twice because some compilers refuse to overwrite an
2855 # existing .o file with -o, though they will create one.
2856 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2857 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861 (exit $ac_status); } &&
2862 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2866 (exit $ac_status); };
2868 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2869 if test "x$CC" != xcc; then
2870 # Test first that cc exists at all.
2871 if { ac_try='cc -c conftest.$ac_ext >&5'
2872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876 (exit $ac_status); }; }; then
2877 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2878 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882 (exit $ac_status); } &&
2883 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887 (exit $ac_status); };
2892 # cc exists but doesn't like -o.
2893 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2898 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2903 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2904 echo "$as_me:$LINENO: result: yes" >&5
2905 echo "${ECHO_T}yes" >&6
2907 echo "$as_me:$LINENO: result: no" >&5
2908 echo "${ECHO_T}no" >&6
2910 cat >>confdefs.h <<\_ACEOF
2911 #define NO_MINUS_C_MINUS_O 1
2917 ac_cpp='$CPP $CPPFLAGS'
2918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2921 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2922 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2923 # On Suns, sometimes $CPP names a directory.
2924 if test -n "$CPP" && test -d "$CPP"; then
2927 if test -z "$CPP"; then
2928 if test "${ac_cv_prog_CPP+set}" = set; then
2929 echo $ECHO_N "(cached) $ECHO_C" >&6
2931 # Double quotes because CPP needs to be expanded
2932 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2935 for ac_c_preproc_warn_flag in '' yes
2937 # Use a header file that comes with gcc, so configuring glibc
2938 # with a fresh cross-compiler works.
2939 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2940 # <limits.h> exists even on freestanding compilers.
2941 # On the NeXT, cc -E runs the code through the compiler's parser,
2942 # not just through cpp. "Syntax error" is here to catch this case.
2943 cat >conftest.$ac_ext <<_ACEOF
2946 cat confdefs.h >>conftest.$ac_ext
2947 cat >>conftest.$ac_ext <<_ACEOF
2948 /* end confdefs.h. */
2950 # include <limits.h>
2952 # include <assert.h>
2956 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2957 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2959 grep -v '^ *+' conftest.er1 >conftest.err
2961 cat conftest.err >&5
2962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963 (exit $ac_status); } >/dev/null; then
2964 if test -s conftest.err; then
2965 ac_cpp_err=$ac_c_preproc_warn_flag
2966 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2973 if test -z "$ac_cpp_err"; then
2976 echo "$as_me: failed program was:" >&5
2977 sed 's/^/| /' conftest.$ac_ext >&5
2979 # Broken: fails on valid input.
2982 rm -f conftest.err conftest.$ac_ext
2984 # OK, works on sane cases. Now check whether non-existent headers
2985 # can be detected and how.
2986 cat >conftest.$ac_ext <<_ACEOF
2989 cat confdefs.h >>conftest.$ac_ext
2990 cat >>conftest.$ac_ext <<_ACEOF
2991 /* end confdefs.h. */
2992 #include <ac_nonexistent.h>
2994 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2995 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2997 grep -v '^ *+' conftest.er1 >conftest.err
2999 cat conftest.err >&5
3000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001 (exit $ac_status); } >/dev/null; then
3002 if test -s conftest.err; then
3003 ac_cpp_err=$ac_c_preproc_warn_flag
3004 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3011 if test -z "$ac_cpp_err"; then
3012 # Broken: success on invalid input.
3015 echo "$as_me: failed program was:" >&5
3016 sed 's/^/| /' conftest.$ac_ext >&5
3018 # Passes both tests.
3022 rm -f conftest.err conftest.$ac_ext
3025 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3026 rm -f conftest.err conftest.$ac_ext
3027 if $ac_preproc_ok; then
3039 echo "$as_me:$LINENO: result: $CPP" >&5
3040 echo "${ECHO_T}$CPP" >&6
3042 for ac_c_preproc_warn_flag in '' yes
3044 # Use a header file that comes with gcc, so configuring glibc
3045 # with a fresh cross-compiler works.
3046 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3047 # <limits.h> exists even on freestanding compilers.
3048 # On the NeXT, cc -E runs the code through the compiler's parser,
3049 # not just through cpp. "Syntax error" is here to catch this case.
3050 cat >conftest.$ac_ext <<_ACEOF
3053 cat confdefs.h >>conftest.$ac_ext
3054 cat >>conftest.$ac_ext <<_ACEOF
3055 /* end confdefs.h. */
3057 # include <limits.h>
3059 # include <assert.h>
3063 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3064 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3066 grep -v '^ *+' conftest.er1 >conftest.err
3068 cat conftest.err >&5
3069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070 (exit $ac_status); } >/dev/null; then
3071 if test -s conftest.err; then
3072 ac_cpp_err=$ac_c_preproc_warn_flag
3073 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3080 if test -z "$ac_cpp_err"; then
3083 echo "$as_me: failed program was:" >&5
3084 sed 's/^/| /' conftest.$ac_ext >&5
3086 # Broken: fails on valid input.
3089 rm -f conftest.err conftest.$ac_ext
3091 # OK, works on sane cases. Now check whether non-existent headers
3092 # can be detected and how.
3093 cat >conftest.$ac_ext <<_ACEOF
3096 cat confdefs.h >>conftest.$ac_ext
3097 cat >>conftest.$ac_ext <<_ACEOF
3098 /* end confdefs.h. */
3099 #include <ac_nonexistent.h>
3101 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3102 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3104 grep -v '^ *+' conftest.er1 >conftest.err
3106 cat conftest.err >&5
3107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108 (exit $ac_status); } >/dev/null; then
3109 if test -s conftest.err; then
3110 ac_cpp_err=$ac_c_preproc_warn_flag
3111 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3118 if test -z "$ac_cpp_err"; then
3119 # Broken: success on invalid input.
3122 echo "$as_me: failed program was:" >&5
3123 sed 's/^/| /' conftest.$ac_ext >&5
3125 # Passes both tests.
3129 rm -f conftest.err conftest.$ac_ext
3132 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3133 rm -f conftest.err conftest.$ac_ext
3134 if $ac_preproc_ok; then
3137 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3138 See \`config.log' for more details." >&5
3139 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3140 See \`config.log' for more details." >&2;}
3141 { (exit 1); exit 1; }; }
3145 ac_cpp='$CPP $CPPFLAGS'
3146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3151 echo "$as_me:$LINENO: checking for egrep" >&5
3152 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3153 if test "${ac_cv_prog_egrep+set}" = set; then
3154 echo $ECHO_N "(cached) $ECHO_C" >&6
3156 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3157 then ac_cv_prog_egrep='grep -E'
3158 else ac_cv_prog_egrep='egrep'
3161 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3162 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3163 EGREP=$ac_cv_prog_egrep
3166 if test $ac_cv_c_compiler_gnu = yes; then
3167 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3168 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3169 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3170 echo $ECHO_N "(cached) $ECHO_C" >&6
3172 ac_pattern="Autoconf.*'x'"
3173 cat >conftest.$ac_ext <<_ACEOF
3176 cat confdefs.h >>conftest.$ac_ext
3177 cat >>conftest.$ac_ext <<_ACEOF
3178 /* end confdefs.h. */
3182 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3183 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3184 ac_cv_prog_gcc_traditional=yes
3186 ac_cv_prog_gcc_traditional=no
3191 if test $ac_cv_prog_gcc_traditional = no; then
3192 cat >conftest.$ac_ext <<_ACEOF
3195 cat confdefs.h >>conftest.$ac_ext
3196 cat >>conftest.$ac_ext <<_ACEOF
3197 /* end confdefs.h. */
3201 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3202 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3203 ac_cv_prog_gcc_traditional=yes
3209 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3210 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3211 if test $ac_cv_prog_gcc_traditional = yes; then
3212 CC="$CC -traditional"
3216 BASECC=`basename $CC`
3218 if test "x$BASECC" = xgcc; then
3219 cat >>confdefs.h <<\_ACEOF
3225 # Extract the first word of "$CXX", so it can be a program name with args.
3226 set dummy $CXX; ac_word=$2
3227 echo "$as_me:$LINENO: checking for $ac_word" >&5
3228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3229 if test "${ac_cv_path_CXX+set}" = set; then
3230 echo $ECHO_N "(cached) $ECHO_C" >&6
3234 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3241 test -z "$as_dir" && as_dir=.
3242 for ac_exec_ext in '' $ac_executable_extensions; do
3243 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3244 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3251 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
3257 if test -n "$CXX"; then
3258 echo "$as_me:$LINENO: result: $CXX" >&5
3259 echo "${ECHO_T}$CXX" >&6
3261 echo "$as_me:$LINENO: result: no" >&5
3262 echo "${ECHO_T}no" >&6
3265 if test ! -e $CXX; then
3266 { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
3267 echo "$as_me: error: Unable to find C++ compiler" >&2;}
3268 { (exit 1); exit 1; }; }
3271 # Find a good install program. We prefer a C program (faster),
3272 # so one script is as good as another. But avoid the broken or
3273 # incompatible versions:
3274 # SysV /etc/install, /usr/sbin/install
3275 # SunOS /usr/etc/install
3276 # IRIX /sbin/install
3278 # AmigaOS /C/install, which installs bootblocks on floppy discs
3279 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3280 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3281 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3282 # OS/2's system install, which has a completely different semantic
3283 # ./install, which can be erroneously created by make from ./install.sh.
3284 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3285 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3286 if test -z "$INSTALL"; then
3287 if test "${ac_cv_path_install+set}" = set; then
3288 echo $ECHO_N "(cached) $ECHO_C" >&6
3290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3294 test -z "$as_dir" && as_dir=.
3295 # Account for people who put trailing slashes in PATH elements.
3297 ./ | .// | /cC/* | \
3298 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3299 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3302 # OSF1 and SCO ODT 3.0 have their own names for install.
3303 # Don't use installbsd from OSF since it installs stuff as root
3305 for ac_prog in ginstall scoinst install; do
3306 for ac_exec_ext in '' $ac_executable_extensions; do
3307 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3308 if test $ac_prog = install &&
3309 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3310 # AIX install. It has an incompatible calling convention.
3312 elif test $ac_prog = install &&
3313 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3314 # program-specific install script used by HP pwplus--don't use.
3317 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3329 if test "${ac_cv_path_install+set}" = set; then
3330 INSTALL=$ac_cv_path_install
3332 # As a last resort, use the slow shell script. We don't cache a
3333 # path for INSTALL within a source directory, because that will
3334 # break other packages using the cache if that directory is
3335 # removed, or if the path is relative.
3336 INSTALL=$ac_install_sh
3339 echo "$as_me:$LINENO: result: $INSTALL" >&5
3340 echo "${ECHO_T}$INSTALL" >&6
3342 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3343 # It thinks the first close brace ends the variable substitution.
3344 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3346 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3348 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3350 if test -n "$ac_tool_prefix"; then
3351 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3352 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3353 echo "$as_me:$LINENO: checking for $ac_word" >&5
3354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3355 if test "${ac_cv_prog_RANLIB+set}" = set; then
3356 echo $ECHO_N "(cached) $ECHO_C" >&6
3358 if test -n "$RANLIB"; then
3359 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3365 test -z "$as_dir" && as_dir=.
3366 for ac_exec_ext in '' $ac_executable_extensions; do
3367 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3368 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3377 RANLIB=$ac_cv_prog_RANLIB
3378 if test -n "$RANLIB"; then
3379 echo "$as_me:$LINENO: result: $RANLIB" >&5
3380 echo "${ECHO_T}$RANLIB" >&6
3382 echo "$as_me:$LINENO: result: no" >&5
3383 echo "${ECHO_T}no" >&6
3387 if test -z "$ac_cv_prog_RANLIB"; then
3388 ac_ct_RANLIB=$RANLIB
3389 # Extract the first word of "ranlib", so it can be a program name with args.
3390 set dummy ranlib; ac_word=$2
3391 echo "$as_me:$LINENO: checking for $ac_word" >&5
3392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3393 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3394 echo $ECHO_N "(cached) $ECHO_C" >&6
3396 if test -n "$ac_ct_RANLIB"; then
3397 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3403 test -z "$as_dir" && as_dir=.
3404 for ac_exec_ext in '' $ac_executable_extensions; do
3405 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3406 ac_cv_prog_ac_ct_RANLIB="ranlib"
3407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3413 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3416 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3417 if test -n "$ac_ct_RANLIB"; then
3418 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3419 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3421 echo "$as_me:$LINENO: result: no" >&5
3422 echo "${ECHO_T}no" >&6
3425 RANLIB=$ac_ct_RANLIB
3427 RANLIB="$ac_cv_prog_RANLIB"
3430 # Extract the first word of "mv", so it can be a program name with args.
3431 set dummy mv; ac_word=$2
3432 echo "$as_me:$LINENO: checking for $ac_word" >&5
3433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3434 if test "${ac_cv_path_MV+set}" = set; then
3435 echo $ECHO_N "(cached) $ECHO_C" >&6
3439 ac_cv_path_MV="$MV" # Let the user override the test with a path.
3442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3446 test -z "$as_dir" && as_dir=.
3447 for ac_exec_ext in '' $ac_executable_extensions; do
3448 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3449 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3456 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3462 if test -n "$MV"; then
3463 echo "$as_me:$LINENO: result: $MV" >&5
3464 echo "${ECHO_T}$MV" >&6
3466 echo "$as_me:$LINENO: result: no" >&5
3467 echo "${ECHO_T}no" >&6
3470 # Extract the first word of "rm", so it can be a program name with args.
3471 set dummy rm; ac_word=$2
3472 echo "$as_me:$LINENO: checking for $ac_word" >&5
3473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3474 if test "${ac_cv_path_RM+set}" = set; then
3475 echo $ECHO_N "(cached) $ECHO_C" >&6
3479 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3486 test -z "$as_dir" && as_dir=.
3487 for ac_exec_ext in '' $ac_executable_extensions; do
3488 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3489 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3496 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3502 if test -n "$RM"; then
3503 echo "$as_me:$LINENO: result: $RM" >&5
3504 echo "${ECHO_T}$RM" >&6
3506 echo "$as_me:$LINENO: result: no" >&5
3507 echo "${ECHO_T}no" >&6
3510 # Extract the first word of "cp", so it can be a program name with args.
3511 set dummy cp; ac_word=$2
3512 echo "$as_me:$LINENO: checking for $ac_word" >&5
3513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3514 if test "${ac_cv_path_CP+set}" = set; then
3515 echo $ECHO_N "(cached) $ECHO_C" >&6
3519 ac_cv_path_CP="$CP" # Let the user override the test with a path.
3522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3526 test -z "$as_dir" && as_dir=.
3527 for ac_exec_ext in '' $ac_executable_extensions; do
3528 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3529 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3536 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3542 if test -n "$CP"; then
3543 echo "$as_me:$LINENO: result: $CP" >&5
3544 echo "${ECHO_T}$CP" >&6
3546 echo "$as_me:$LINENO: result: no" >&5
3547 echo "${ECHO_T}no" >&6
3550 # Extract the first word of "sed", so it can be a program name with args.
3551 set dummy sed; ac_word=$2
3552 echo "$as_me:$LINENO: checking for $ac_word" >&5
3553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3554 if test "${ac_cv_path_SED+set}" = set; then
3555 echo $ECHO_N "(cached) $ECHO_C" >&6
3559 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3566 test -z "$as_dir" && as_dir=.
3567 for ac_exec_ext in '' $ac_executable_extensions; do
3568 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3569 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3576 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3582 if test -n "$SED"; then
3583 echo "$as_me:$LINENO: result: $SED" >&5
3584 echo "${ECHO_T}$SED" >&6
3586 echo "$as_me:$LINENO: result: no" >&5
3587 echo "${ECHO_T}no" >&6
3590 # Extract the first word of "echo", so it can be a program name with args.
3591 set dummy echo; ac_word=$2
3592 echo "$as_me:$LINENO: checking for $ac_word" >&5
3593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3594 if test "${ac_cv_path_ECHO+set}" = set; then
3595 echo $ECHO_N "(cached) $ECHO_C" >&6
3599 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3606 test -z "$as_dir" && as_dir=.
3607 for ac_exec_ext in '' $ac_executable_extensions; do
3608 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3609 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3616 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3620 ECHO=$ac_cv_path_ECHO
3622 if test -n "$ECHO"; then
3623 echo "$as_me:$LINENO: result: $ECHO" >&5
3624 echo "${ECHO_T}$ECHO" >&6
3626 echo "$as_me:$LINENO: result: no" >&5
3627 echo "${ECHO_T}no" >&6
3630 # Extract the first word of "cmp", so it can be a program name with args.
3631 set dummy cmp; ac_word=$2
3632 echo "$as_me:$LINENO: checking for $ac_word" >&5
3633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3634 if test "${ac_cv_path_CMP+set}" = set; then
3635 echo $ECHO_N "(cached) $ECHO_C" >&6
3639 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3646 test -z "$as_dir" && as_dir=.
3647 for ac_exec_ext in '' $ac_executable_extensions; do
3648 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3649 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3656 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3662 if test -n "$CMP"; then
3663 echo "$as_me:$LINENO: result: $CMP" >&5
3664 echo "${ECHO_T}$CMP" >&6
3666 echo "$as_me:$LINENO: result: no" >&5
3667 echo "${ECHO_T}no" >&6
3670 # Extract the first word of "tbl", so it can be a program name with args.
3671 set dummy tbl; ac_word=$2
3672 echo "$as_me:$LINENO: checking for $ac_word" >&5
3673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3674 if test "${ac_cv_path_TBL+set}" = set; then
3675 echo $ECHO_N "(cached) $ECHO_C" >&6
3679 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3686 test -z "$as_dir" && as_dir=.
3687 for ac_exec_ext in '' $ac_executable_extensions; do
3688 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3689 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3696 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3702 if test -n "$TBL"; then
3703 echo "$as_me:$LINENO: result: $TBL" >&5
3704 echo "${ECHO_T}$TBL" >&6
3706 echo "$as_me:$LINENO: result: no" >&5
3707 echo "${ECHO_T}no" >&6
3710 # Extract the first word of "ar", so it can be a program name with args.
3711 set dummy ar; ac_word=$2
3712 echo "$as_me:$LINENO: checking for $ac_word" >&5
3713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3714 if test "${ac_cv_path_AR+set}" = set; then
3715 echo $ECHO_N "(cached) $ECHO_C" >&6
3719 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3726 test -z "$as_dir" && as_dir=.
3727 for ac_exec_ext in '' $ac_executable_extensions; do
3728 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3729 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3736 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3742 if test -n "$AR"; then
3743 echo "$as_me:$LINENO: result: $AR" >&5
3744 echo "${ECHO_T}$AR" >&6
3746 echo "$as_me:$LINENO: result: no" >&5
3747 echo "${ECHO_T}no" >&6
3750 # Extract the first word of "openssl", so it can be a program name with args.
3751 set dummy openssl; ac_word=$2
3752 echo "$as_me:$LINENO: checking for $ac_word" >&5
3753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3754 if test "${ac_cv_path_OPENSSL+set}" = set; then
3755 echo $ECHO_N "(cached) $ECHO_C" >&6
3759 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3766 test -z "$as_dir" && as_dir=.
3767 for ac_exec_ext in '' $ac_executable_extensions; do
3768 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3769 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3776 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3780 OPENSSL=$ac_cv_path_OPENSSL
3782 if test -n "$OPENSSL"; then
3783 echo "$as_me:$LINENO: result: $OPENSSL" >&5
3784 echo "${ECHO_T}$OPENSSL" >&6
3786 echo "$as_me:$LINENO: result: no" >&5
3787 echo "${ECHO_T}no" >&6
3790 # Extract the first word of "mtx", so it can be a program name with args.
3791 set dummy mtx; ac_word=$2
3792 echo "$as_me:$LINENO: checking for $ac_word" >&5
3793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3794 if test "${ac_cv_path_MTX+set}" = set; then
3795 echo $ECHO_N "(cached) $ECHO_C" >&6
3799 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3806 test -z "$as_dir" && as_dir=.
3807 for ac_exec_ext in '' $ac_executable_extensions; do
3808 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3809 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3816 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3822 if test -n "$MTX"; then
3823 echo "$as_me:$LINENO: result: $MTX" >&5
3824 echo "${ECHO_T}$MTX" >&6
3826 echo "$as_me:$LINENO: result: no" >&5
3827 echo "${ECHO_T}no" >&6
3830 # Extract the first word of "dd", so it can be a program name with args.
3831 set dummy dd; ac_word=$2
3832 echo "$as_me:$LINENO: checking for $ac_word" >&5
3833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3834 if test "${ac_cv_path_DD+set}" = set; then
3835 echo $ECHO_N "(cached) $ECHO_C" >&6
3839 ac_cv_path_DD="$DD" # Let the user override the test with a path.
3842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3846 test -z "$as_dir" && as_dir=.
3847 for ac_exec_ext in '' $ac_executable_extensions; do
3848 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3849 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
3850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3856 test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
3862 if test -n "$DD"; then
3863 echo "$as_me:$LINENO: result: $DD" >&5
3864 echo "${ECHO_T}$DD" >&6
3866 echo "$as_me:$LINENO: result: no" >&5
3867 echo "${ECHO_T}no" >&6
3870 # Extract the first word of "mkisofs", so it can be a program name with args.
3871 set dummy mkisofs; ac_word=$2
3872 echo "$as_me:$LINENO: checking for $ac_word" >&5
3873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3874 if test "${ac_cv_path_MKISOFS+set}" = set; then
3875 echo $ECHO_N "(cached) $ECHO_C" >&6
3879 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
3882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3886 test -z "$as_dir" && as_dir=.
3887 for ac_exec_ext in '' $ac_executable_extensions; do
3888 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3889 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
3890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3896 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
3900 MKISOFS=$ac_cv_path_MKISOFS
3902 if test -n "$MKISOFS"; then
3903 echo "$as_me:$LINENO: result: $MKISOFS" >&5
3904 echo "${ECHO_T}$MKISOFS" >&6
3906 echo "$as_me:$LINENO: result: no" >&5
3907 echo "${ECHO_T}no" >&6
3910 # Extract the first word of "python", so it can be a program name with args.
3911 set dummy python; ac_word=$2
3912 echo "$as_me:$LINENO: checking for $ac_word" >&5
3913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3914 if test "${ac_cv_path_PYTHON+set}" = set; then
3915 echo $ECHO_N "(cached) $ECHO_C" >&6
3919 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
3922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3926 test -z "$as_dir" && as_dir=.
3927 for ac_exec_ext in '' $ac_executable_extensions; do
3928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3929 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
3930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3936 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
3940 PYTHON=$ac_cv_path_PYTHON
3942 if test -n "$PYTHON"; then
3943 echo "$as_me:$LINENO: result: $PYTHON" >&5
3944 echo "${ECHO_T}$PYTHON" >&6
3946 echo "$as_me:$LINENO: result: no" >&5
3947 echo "${ECHO_T}no" >&6
3950 # Extract the first word of "growisofs", so it can be a program name with args.
3951 set dummy growisofs; ac_word=$2
3952 echo "$as_me:$LINENO: checking for $ac_word" >&5
3953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3954 if test "${ac_cv_path_GROWISOFS+set}" = set; then
3955 echo $ECHO_N "(cached) $ECHO_C" >&6
3959 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
3962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3966 test -z "$as_dir" && as_dir=.
3967 for ac_exec_ext in '' $ac_executable_extensions; do
3968 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3969 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
3970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3976 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
3980 GROWISOFS=$ac_cv_path_GROWISOFS
3982 if test -n "$GROWISOFS"; then
3983 echo "$as_me:$LINENO: result: $GROWISOFS" >&5
3984 echo "${ECHO_T}$GROWISOFS" >&6
3986 echo "$as_me:$LINENO: result: no" >&5
3987 echo "${ECHO_T}no" >&6
3990 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
3991 set dummy dvd+rw-mediainfo; ac_word=$2
3992 echo "$as_me:$LINENO: checking for $ac_word" >&5
3993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3994 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
3995 echo $ECHO_N "(cached) $ECHO_C" >&6
3997 case $DVDRWMEDIAINFO in
3999 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4006 test -z "$as_dir" && as_dir=.
4007 for ac_exec_ext in '' $ac_executable_extensions; do
4008 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4009 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4016 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4020 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4022 if test -n "$DVDRWMEDIAINFO"; then
4023 echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4024 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6
4026 echo "$as_me:$LINENO: result: no" >&5
4027 echo "${ECHO_T}no" >&6
4030 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4031 set dummy dvd+rw-format; ac_word=$2
4032 echo "$as_me:$LINENO: checking for $ac_word" >&5
4033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4034 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4035 echo $ECHO_N "(cached) $ECHO_C" >&6
4037 case $DVDRWFORMAT in
4039 ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4046 test -z "$as_dir" && as_dir=.
4047 for ac_exec_ext in '' $ac_executable_extensions; do
4048 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4049 ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4056 test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4060 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4062 if test -n "$DVDRWFORMAT"; then
4063 echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4064 echo "${ECHO_T}$DVDRWFORMAT" >&6
4066 echo "$as_me:$LINENO: result: no" >&5
4067 echo "${ECHO_T}no" >&6
4070 # Extract the first word of "pkg-config", so it can be a program name with args.
4071 set dummy pkg-config; ac_word=$2
4072 echo "$as_me:$LINENO: checking for $ac_word" >&5
4073 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4074 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4075 echo $ECHO_N "(cached) $ECHO_C" >&6
4079 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4086 test -z "$as_dir" && as_dir=.
4087 for ac_exec_ext in '' $ac_executable_extensions; do
4088 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4089 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4096 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
4100 PKGCONFIG=$ac_cv_path_PKGCONFIG
4102 if test -n "$PKGCONFIG"; then
4103 echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
4104 echo "${ECHO_T}$PKGCONFIG" >&6
4106 echo "$as_me:$LINENO: result: no" >&5
4107 echo "${ECHO_T}no" >&6
4111 if test "x$WXCONFIG" = x; then
4114 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
4115 set dummy ${WXCONFIG}; ac_word=$2
4116 echo "$as_me:$LINENO: checking for $ac_word" >&5
4117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4118 if test "${ac_cv_path_WXCONFIG+set}" = set; then
4119 echo $ECHO_N "(cached) $ECHO_C" >&6
4123 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
4126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4130 test -z "$as_dir" && as_dir=.
4131 for ac_exec_ext in '' $ac_executable_extensions; do
4132 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4133 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
4134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4140 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
4144 WXCONFIG=$ac_cv_path_WXCONFIG
4146 if test -n "$WXCONFIG"; then
4147 echo "$as_me:$LINENO: result: $WXCONFIG" >&5
4148 echo "${ECHO_T}$WXCONFIG" >&6
4150 echo "$as_me:$LINENO: result: no" >&5
4151 echo "${ECHO_T}no" >&6
4155 # Extract the first word of "cdrecord", so it can be a program name with args.
4156 set dummy cdrecord; ac_word=$2
4157 echo "$as_me:$LINENO: checking for $ac_word" >&5
4158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4159 if test "${ac_cv_path_CDRECORD+set}" = set; then
4160 echo $ECHO_N "(cached) $ECHO_C" >&6
4164 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
4167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4171 test -z "$as_dir" && as_dir=.
4172 for ac_exec_ext in '' $ac_executable_extensions; do
4173 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4174 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
4175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4181 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
4185 CDRECORD=$ac_cv_path_CDRECORD
4187 if test -n "$CDRECORD"; then
4188 echo "$as_me:$LINENO: result: $CDRECORD" >&5
4189 echo "${ECHO_T}$CDRECORD" >&6
4191 echo "$as_me:$LINENO: result: no" >&5
4192 echo "${ECHO_T}no" >&6
4195 # Extract the first word of "pidof", so it can be a program name with args.
4196 set dummy pidof; ac_word=$2
4197 echo "$as_me:$LINENO: checking for $ac_word" >&5
4198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4199 if test "${ac_cv_path_PIDOF+set}" = set; then
4200 echo $ECHO_N "(cached) $ECHO_C" >&6
4204 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
4207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4211 test -z "$as_dir" && as_dir=.
4212 for ac_exec_ext in '' $ac_executable_extensions; do
4213 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4214 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
4215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4221 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
4225 PIDOF=$ac_cv_path_PIDOF
4227 if test -n "$PIDOF"; then
4228 echo "$as_me:$LINENO: result: $PIDOF" >&5
4229 echo "${ECHO_T}$PIDOF" >&6
4231 echo "$as_me:$LINENO: result: no" >&5
4232 echo "${ECHO_T}no" >&6
4235 for ac_prog in gawk mawk nawk awk
4237 # Extract the first word of "$ac_prog", so it can be a program name with args.
4238 set dummy $ac_prog; ac_word=$2
4239 echo "$as_me:$LINENO: checking for $ac_word" >&5
4240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4241 if test "${ac_cv_prog_AWK+set}" = set; then
4242 echo $ECHO_N "(cached) $ECHO_C" >&6
4244 if test -n "$AWK"; then
4245 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4251 test -z "$as_dir" && as_dir=.
4252 for ac_exec_ext in '' $ac_executable_extensions; do
4253 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4254 ac_cv_prog_AWK="$ac_prog"
4255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4264 if test -n "$AWK"; then
4265 echo "$as_me:$LINENO: result: $AWK" >&5
4266 echo "${ECHO_T}$AWK" >&6
4268 echo "$as_me:$LINENO: result: no" >&5
4269 echo "${ECHO_T}no" >&6
4272 test -n "$AWK" && break
4275 # Some AWK programs fail, so test it and warn the user
4276 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
4277 { if ((prog == $2) || (("(" prog ")") == $2) ||
4278 (("" prog "") == $2) ||
4279 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
4281 { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4282 The regex engine of $AWK is too broken to be used you
4283 might want to install GNU AWK.
4284 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
4285 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4286 The regex engine of $AWK is too broken to be used you
4287 might want to install GNU AWK.
4288 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
4289 { (exit 1); exit 1; }; }
4292 # Extract the first word of "$THE_AWK", so it can be a program name with args.
4293 set dummy $THE_AWK; ac_word=$2
4294 echo "$as_me:$LINENO: checking for $ac_word" >&5
4295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4296 if test "${ac_cv_path_AWK+set}" = set; then
4297 echo $ECHO_N "(cached) $ECHO_C" >&6
4301 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
4304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4308 test -z "$as_dir" && as_dir=.
4309 for ac_exec_ext in '' $ac_executable_extensions; do
4310 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4311 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
4312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4318 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
4324 if test -n "$AWK"; then
4325 echo "$as_me:$LINENO: result: $AWK" >&5
4326 echo "${ECHO_T}$AWK" >&6
4328 echo "$as_me:$LINENO: result: no" >&5
4329 echo "${ECHO_T}no" >&6
4333 test -n "$ARFLAG" || ARFLAGS="cr"
4344 # Make sure we can run config.sub.
4345 $ac_config_sub sun4 >/dev/null 2>&1 ||
4346 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4347 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4348 { (exit 1); exit 1; }; }
4350 echo "$as_me:$LINENO: checking build system type" >&5
4351 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4352 if test "${ac_cv_build+set}" = set; then
4353 echo $ECHO_N "(cached) $ECHO_C" >&6
4355 ac_cv_build_alias=$build_alias
4356 test -z "$ac_cv_build_alias" &&
4357 ac_cv_build_alias=`$ac_config_guess`
4358 test -z "$ac_cv_build_alias" &&
4359 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4360 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4361 { (exit 1); exit 1; }; }
4362 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4363 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4364 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4365 { (exit 1); exit 1; }; }
4368 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4369 echo "${ECHO_T}$ac_cv_build" >&6
4371 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4372 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4373 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4377 echo "$as_me:$LINENO: checking host system type" >&5
4378 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4379 if test "${ac_cv_host+set}" = set; then
4380 echo $ECHO_N "(cached) $ECHO_C" >&6
4382 ac_cv_host_alias=$host_alias
4383 test -z "$ac_cv_host_alias" &&
4384 ac_cv_host_alias=$ac_cv_build_alias
4385 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4386 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4387 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4388 { (exit 1); exit 1; }; }
4391 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4392 echo "${ECHO_T}$ac_cv_host" >&6
4394 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4395 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4396 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4400 *cygwin* ) CYGWIN=yes;;
4404 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4410 HAVE_SUN_OS_FALSE='#'
4412 HAVE_SUN_OS_TRUE='#'
4415 cat >>confdefs.h <<\_ACEOF
4416 #define HAVE_SUN_OS 1
4424 HAVE_SUN_OS_FALSE='#'
4426 HAVE_SUN_OS_TRUE='#'
4431 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4437 HAVE_OSF1_OS_FALSE='#'
4439 HAVE_OSF1_OS_TRUE='#'
4442 cat >>confdefs.h <<\_ACEOF
4443 #define HAVE_OSF1_OS 1
4451 HAVE_OSF1_OS_FALSE='#'
4453 HAVE_OSF1_OS_TRUE='#'
4458 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4464 HAVE_AIX_OS_FALSE='#'
4466 HAVE_AIX_OS_TRUE='#'
4469 cat >>confdefs.h <<\_ACEOF
4470 #define HAVE_AIX_OS 1
4478 HAVE_AIX_OS_FALSE='#'
4480 HAVE_AIX_OS_TRUE='#'
4485 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4491 HAVE_HPUX_OS_FALSE='#'
4493 HAVE_HPUX_OS_TRUE='#'
4496 cat >>confdefs.h <<\_ACEOF
4497 #define HAVE_HPUX_OS 1
4505 HAVE_HPUX_OS_FALSE='#'
4507 HAVE_HPUX_OS_TRUE='#'
4512 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
4518 HAVE_LINUX_OS_FALSE='#'
4520 HAVE_LINUX_OS_TRUE='#'
4521 HAVE_LINUX_OS_FALSE=
4523 cat >>confdefs.h <<\_ACEOF
4524 #define HAVE_LINUX_OS 1
4532 HAVE_LINUX_OS_FALSE='#'
4534 HAVE_LINUX_OS_TRUE='#'
4535 HAVE_LINUX_OS_FALSE=
4539 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4544 HAVE_FREEBSD_OS_TRUE=
4545 HAVE_FREEBSD_OS_FALSE='#'
4547 HAVE_FREEBSD_OS_TRUE='#'
4548 HAVE_FREEBSD_OS_FALSE=
4550 cat >>confdefs.h <<\_ACEOF
4551 #define HAVE_FREEBSD_OS 1
4558 HAVE_FREEBSD_OS_TRUE=
4559 HAVE_FREEBSD_OS_FALSE='#'
4561 HAVE_FREEBSD_OS_TRUE='#'
4562 HAVE_FREEBSD_OS_FALSE=
4566 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4571 HAVE_NETBSD_OS_TRUE=
4572 HAVE_NETBSD_OS_FALSE='#'
4574 HAVE_NETBSD_OS_TRUE='#'
4575 HAVE_NETBSD_OS_FALSE=
4577 cat >>confdefs.h <<\_ACEOF
4578 #define HAVE_NETBSD_OS 1
4585 HAVE_NETBSD_OS_TRUE=
4586 HAVE_NETBSD_OS_FALSE='#'
4588 HAVE_NETBSD_OS_TRUE='#'
4589 HAVE_NETBSD_OS_FALSE=
4593 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4598 HAVE_OPENBSD_OS_TRUE=
4599 HAVE_OPENBSD_OS_FALSE='#'
4601 HAVE_OPENBSD_OS_TRUE='#'
4602 HAVE_OPENBSD_OS_FALSE=
4604 cat >>confdefs.h <<\_ACEOF
4605 #define HAVE_OPENBSD_OS 1
4612 HAVE_OPENBSD_OS_TRUE=
4613 HAVE_OPENBSD_OS_FALSE='#'
4615 HAVE_OPENBSD_OS_TRUE='#'
4616 HAVE_OPENBSD_OS_FALSE=
4620 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4626 HAVE_BSDI_OS_FALSE='#'
4628 HAVE_BSDI_OS_TRUE='#'
4631 cat >>confdefs.h <<\_ACEOF
4632 #define HAVE_BSDI_OS 1
4640 HAVE_BSDI_OS_FALSE='#'
4642 HAVE_BSDI_OS_TRUE='#'
4647 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4653 HAVE_SGI_OS_FALSE='#'
4655 HAVE_SGI_OS_TRUE='#'
4658 cat >>confdefs.h <<\_ACEOF
4659 #define HAVE_SGI_OS 1
4667 HAVE_SGI_OS_FALSE='#'
4669 HAVE_SGI_OS_TRUE='#'
4674 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
4680 HAVE_IRIX_OS_FALSE='#'
4682 HAVE_IRIX_OS_TRUE='#'
4685 cat >>confdefs.h <<\_ACEOF
4686 #define HAVE_IRIX_OS 1
4694 HAVE_IRIX_OS_FALSE='#'
4696 HAVE_IRIX_OS_TRUE='#'
4701 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4706 HAVE_DARWIN_OS_TRUE=
4707 HAVE_DARWIN_OS_FALSE='#'
4709 HAVE_DARWIN_OS_TRUE='#'
4710 HAVE_DARWIN_OS_FALSE=
4712 cat >>confdefs.h <<\_ACEOF
4713 #define HAVE_DARWIN_OS 1
4720 HAVE_DARWIN_OS_TRUE=
4721 HAVE_DARWIN_OS_FALSE='#'
4723 HAVE_DARWIN_OS_TRUE='#'
4724 HAVE_DARWIN_OS_FALSE=
4729 # -----------------------------------------------------------
4730 # ----------------------------------------------------------
4731 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4732 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4733 if test "x$DISTNAME" != "x"
4735 echo "distname set to $DISTNAME"
4736 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4739 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4742 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4745 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4748 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4751 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4754 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4757 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4760 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4763 elif test -f /etc/SuSE-release
4766 elif test -d /etc/SuSEconfig
4769 elif test -f /etc/mandrake-release
4772 elif test -f /etc/whitebox-release
4775 elif test -f /etc/redhat-release
4778 elif test -f /etc/gentoo-release
4781 elif test -f /etc/debian_version
4784 elif test -f /etc/slackware-version
4787 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4790 elif test -f /etc/engarde-version
4793 elif test "$CYGWIN" = yes
4796 cat >>confdefs.h <<\_ACEOF
4797 #define HAVE_CYGWIN 1
4803 echo "$as_me:$LINENO: result: done" >&5
4804 echo "${ECHO_T}done" >&6
4807 # --------------------------------------------------
4808 # Suppport for gettext (translations)
4809 # By default, $datadir is ${prefix}/share
4810 # --------------------------------------------------
4811 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4812 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4813 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4814 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4815 echo $ECHO_N "(cached) $ECHO_C" >&6
4817 cat >conftest.make <<\_ACEOF
4819 @echo 'ac_maketemp="$(MAKE)"'
4821 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4822 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4823 if test -n "$ac_maketemp"; then
4824 eval ac_cv_prog_make_${ac_make}_set=yes
4826 eval ac_cv_prog_make_${ac_make}_set=no
4830 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4831 echo "$as_me:$LINENO: result: yes" >&5
4832 echo "${ECHO_T}yes" >&6
4835 echo "$as_me:$LINENO: result: no" >&5
4836 echo "${ECHO_T}no" >&6
4837 SET_MAKE="MAKE=${MAKE-make}"
4843 if test -n "$ac_aux_dir"; then
4844 case "$ac_aux_dir" in
4845 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
4846 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4849 if test -z "$MKINSTALLDIRS"; then
4850 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4855 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4856 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4857 # Check whether --enable-nls or --disable-nls was given.
4858 if test "${enable_nls+set}" = set; then
4859 enableval="$enable_nls"
4864 echo "$as_me:$LINENO: result: $USE_NLS" >&5
4865 echo "${ECHO_T}$USE_NLS" >&6
4872 # Prepare PATH_SEPARATOR.
4873 # The user is always right.
4874 if test "${PATH_SEPARATOR+set}" != set; then
4875 echo "#! /bin/sh" >conf$$.sh
4876 echo "exit 0" >>conf$$.sh
4878 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4886 # Find out how to test for executable files. Don't use a zero-byte file,
4887 # as systems may use methods other than mode bits to determine executability.
4888 cat >conf$$.file <<_ASEOF
4892 chmod +x conf$$.file
4893 if test -x conf$$.file >/dev/null 2>&1; then
4894 ac_executable_p="test -x"
4896 ac_executable_p="test -f"
4900 # Extract the first word of "msgfmt", so it can be a program name with args.
4901 set dummy msgfmt; ac_word=$2
4902 echo "$as_me:$LINENO: checking for $ac_word" >&5
4903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4904 if test "${ac_cv_path_MSGFMT+set}" = set; then
4905 echo $ECHO_N "(cached) $ECHO_C" >&6
4909 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4912 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4913 for ac_dir in $PATH; do
4915 test -z "$ac_dir" && ac_dir=.
4916 for ac_exec_ext in '' $ac_executable_extensions; do
4917 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4918 echo "$as_me: trying $ac_dir/$ac_word..." >&5
4919 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
4920 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4921 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4928 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4932 MSGFMT="$ac_cv_path_MSGFMT"
4933 if test "$MSGFMT" != ":"; then
4934 echo "$as_me:$LINENO: result: $MSGFMT" >&5
4935 echo "${ECHO_T}$MSGFMT" >&6
4937 echo "$as_me:$LINENO: result: no" >&5
4938 echo "${ECHO_T}no" >&6
4941 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4942 set dummy gmsgfmt; ac_word=$2
4943 echo "$as_me:$LINENO: checking for $ac_word" >&5
4944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4945 if test "${ac_cv_path_GMSGFMT+set}" = set; then
4946 echo $ECHO_N "(cached) $ECHO_C" >&6
4950 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4957 test -z "$as_dir" && as_dir=.
4958 for ac_exec_ext in '' $ac_executable_extensions; do
4959 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4960 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4967 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4971 GMSGFMT=$ac_cv_path_GMSGFMT
4973 if test -n "$GMSGFMT"; then
4974 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4975 echo "${ECHO_T}$GMSGFMT" >&6
4977 echo "$as_me:$LINENO: result: no" >&5
4978 echo "${ECHO_T}no" >&6
4983 # Prepare PATH_SEPARATOR.
4984 # The user is always right.
4985 if test "${PATH_SEPARATOR+set}" != set; then
4986 echo "#! /bin/sh" >conf$$.sh
4987 echo "exit 0" >>conf$$.sh
4989 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4997 # Find out how to test for executable files. Don't use a zero-byte file,
4998 # as systems may use methods other than mode bits to determine executability.
4999 cat >conf$$.file <<_ASEOF
5003 chmod +x conf$$.file
5004 if test -x conf$$.file >/dev/null 2>&1; then
5005 ac_executable_p="test -x"
5007 ac_executable_p="test -f"
5011 # Extract the first word of "xgettext", so it can be a program name with args.
5012 set dummy xgettext; ac_word=$2
5013 echo "$as_me:$LINENO: checking for $ac_word" >&5
5014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5015 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5016 echo $ECHO_N "(cached) $ECHO_C" >&6
5020 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5023 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5024 for ac_dir in $PATH; do
5026 test -z "$ac_dir" && ac_dir=.
5027 for ac_exec_ext in '' $ac_executable_extensions; do
5028 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5029 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5030 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5031 (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
5032 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5039 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5043 XGETTEXT="$ac_cv_path_XGETTEXT"
5044 if test "$XGETTEXT" != ":"; then
5045 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5046 echo "${ECHO_T}$XGETTEXT" >&6
5048 echo "$as_me:$LINENO: result: no" >&5
5049 echo "${ECHO_T}no" >&6
5055 # Prepare PATH_SEPARATOR.
5056 # The user is always right.
5057 if test "${PATH_SEPARATOR+set}" != set; then
5058 echo "#! /bin/sh" >conf$$.sh
5059 echo "exit 0" >>conf$$.sh
5061 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5069 # Find out how to test for executable files. Don't use a zero-byte file,
5070 # as systems may use methods other than mode bits to determine executability.
5071 cat >conf$$.file <<_ASEOF
5075 chmod +x conf$$.file
5076 if test -x conf$$.file >/dev/null 2>&1; then
5077 ac_executable_p="test -x"
5079 ac_executable_p="test -f"
5083 # Extract the first word of "msgmerge", so it can be a program name with args.
5084 set dummy msgmerge; ac_word=$2
5085 echo "$as_me:$LINENO: checking for $ac_word" >&5
5086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5087 if test "${ac_cv_path_MSGMERGE+set}" = set; then
5088 echo $ECHO_N "(cached) $ECHO_C" >&6
5092 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5095 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5096 for ac_dir in $PATH; do
5098 test -z "$ac_dir" && ac_dir=.
5099 for ac_exec_ext in '' $ac_executable_extensions; do
5100 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5101 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5102 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
5103 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5110 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5114 MSGMERGE="$ac_cv_path_MSGMERGE"
5115 if test "$MSGMERGE" != ":"; then
5116 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
5117 echo "${ECHO_T}$MSGMERGE" >&6
5119 echo "$as_me:$LINENO: result: no" >&5
5120 echo "${ECHO_T}no" >&6
5124 if test "$GMSGFMT" != ":"; then
5125 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
5126 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5129 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
5130 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
5131 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
5136 if test "$XGETTEXT" != ":"; then
5137 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5138 (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
5141 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
5142 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
5148 ac_config_commands="$ac_config_commands default-1"
5152 if test "X$prefix" = "XNONE"; then
5153 acl_final_prefix="$ac_default_prefix"
5155 acl_final_prefix="$prefix"
5157 if test "X$exec_prefix" = "XNONE"; then
5158 acl_final_exec_prefix='${prefix}'
5160 acl_final_exec_prefix="$exec_prefix"
5162 acl_save_prefix="$prefix"
5163 prefix="$acl_final_prefix"
5164 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5165 prefix="$acl_save_prefix"
5168 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5169 if test "${with_gnu_ld+set}" = set; then
5170 withval="$with_gnu_ld"
5171 test "$withval" = no || with_gnu_ld=yes
5175 # Prepare PATH_SEPARATOR.
5176 # The user is always right.
5177 if test "${PATH_SEPARATOR+set}" != set; then
5178 echo "#! /bin/sh" >conf$$.sh
5179 echo "exit 0" >>conf$$.sh
5181 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5189 if test "$GCC" = yes; then
5190 # Check if gcc -print-prog-name=ld gives a path.
5191 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5192 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5195 # gcc leaves a trailing carriage return which upsets mingw
5196 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5198 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5201 # Accept absolute paths.
5202 [\\/]* | [A-Za-z]:[\\/]*)
5203 re_direlt='/[^/][^/]*/\.\./'
5204 # Canonicalize the path of ld
5205 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5206 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5207 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5209 test -z "$LD" && LD="$ac_prog"
5212 # If it fails, then pretend we aren't using GCC.
5216 # If it is relative, then search for the first ld in PATH.
5220 elif test "$with_gnu_ld" = yes; then
5221 echo "$as_me:$LINENO: checking for GNU ld" >&5
5222 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5224 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5225 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5227 if test "${acl_cv_path_LD+set}" = set; then
5228 echo $ECHO_N "(cached) $ECHO_C" >&6
5230 if test -z "$LD"; then
5231 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5232 for ac_dir in $PATH; do
5233 test -z "$ac_dir" && ac_dir=.
5234 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5235 acl_cv_path_LD="$ac_dir/$ac_prog"
5236 # Check to see if the program is GNU ld. I'd rather use --version,
5237 # but apparently some GNU ld's only accept -v.
5238 # Break only if it was the GNU/non-GNU ld that we prefer.
5239 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
5240 *GNU* | *'with BFD'*)
5241 test "$with_gnu_ld" != no && break ;;
5243 test "$with_gnu_ld" != yes && break ;;
5249 acl_cv_path_LD="$LD" # Let the user override the test with a path.
5253 LD="$acl_cv_path_LD"
5254 if test -n "$LD"; then
5255 echo "$as_me:$LINENO: result: $LD" >&5
5256 echo "${ECHO_T}$LD" >&6
5258 echo "$as_me:$LINENO: result: no" >&5
5259 echo "${ECHO_T}no" >&6
5261 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5262 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5263 { (exit 1); exit 1; }; }
5264 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5265 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5266 if test "${acl_cv_prog_gnu_ld+set}" = set; then
5267 echo $ECHO_N "(cached) $ECHO_C" >&6
5269 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5270 case `$LD -v 2>&1 </dev/null` in
5271 *GNU* | *'with BFD'*)
5272 acl_cv_prog_gnu_ld=yes ;;
5274 acl_cv_prog_gnu_ld=no ;;
5277 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
5278 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
5279 with_gnu_ld=$acl_cv_prog_gnu_ld
5284 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
5285 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
5286 if test "${acl_cv_rpath+set}" = set; then
5287 echo $ECHO_N "(cached) $ECHO_C" >&6
5290 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5291 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5297 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
5298 echo "${ECHO_T}$acl_cv_rpath" >&6
5300 libext="$acl_cv_libext"
5301 shlibext="$acl_cv_shlibext"
5302 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5303 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5304 hardcode_direct="$acl_cv_hardcode_direct"
5305 hardcode_minus_L="$acl_cv_hardcode_minus_L"
5306 # Check whether --enable-rpath or --disable-rpath was given.
5307 if test "${enable_rpath+set}" = set; then
5308 enableval="$enable_rpath"
5322 acl_save_prefix="$prefix"
5323 prefix="$acl_final_prefix"
5324 acl_save_exec_prefix="$exec_prefix"
5325 exec_prefix="$acl_final_exec_prefix"
5327 eval additional_includedir=\"$includedir\"
5328 eval additional_libdir=\"$libdir\"
5330 exec_prefix="$acl_save_exec_prefix"
5331 prefix="$acl_save_prefix"
5334 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
5335 if test "${with_libiconv_prefix+set}" = set; then
5336 withval="$with_libiconv_prefix"
5338 if test "X$withval" = "Xno"; then
5341 if test "X$withval" = "X"; then
5343 acl_save_prefix="$prefix"
5344 prefix="$acl_final_prefix"
5345 acl_save_exec_prefix="$exec_prefix"
5346 exec_prefix="$acl_final_exec_prefix"
5348 eval additional_includedir=\"$includedir\"
5349 eval additional_libdir=\"$libdir\"
5351 exec_prefix="$acl_save_exec_prefix"
5352 prefix="$acl_save_prefix"
5355 additional_includedir="$withval/include"
5356 additional_libdir="$withval/lib"
5366 names_already_handled=
5367 names_next_round='iconv '
5368 while test -n "$names_next_round"; do
5369 names_this_round="$names_next_round"
5371 for name in $names_this_round; do
5373 for n in $names_already_handled; do
5374 if test "$n" = "$name"; then
5379 if test -z "$already_handled"; then
5380 names_already_handled="$names_already_handled $name"
5381 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5382 eval value=\"\$HAVE_LIB$uppername\"
5383 if test -n "$value"; then
5384 if test "$value" = yes; then
5385 eval value=\"\$LIB$uppername\"
5386 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5387 eval value=\"\$LTLIB$uppername\"
5388 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5397 if test $use_additional = yes; then
5398 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
5399 found_dir="$additional_libdir"
5400 found_so="$additional_libdir/lib$name.$shlibext"
5401 if test -f "$additional_libdir/lib$name.la"; then
5402 found_la="$additional_libdir/lib$name.la"
5405 if test -f "$additional_libdir/lib$name.$libext"; then
5406 found_dir="$additional_libdir"
5407 found_a="$additional_libdir/lib$name.$libext"
5408 if test -f "$additional_libdir/lib$name.la"; then
5409 found_la="$additional_libdir/lib$name.la"
5414 if test "X$found_dir" = "X"; then
5415 for x in $LDFLAGS $LTLIBICONV; do
5417 acl_save_prefix="$prefix"
5418 prefix="$acl_final_prefix"
5419 acl_save_exec_prefix="$exec_prefix"
5420 exec_prefix="$acl_final_exec_prefix"
5422 exec_prefix="$acl_save_exec_prefix"
5423 prefix="$acl_save_prefix"
5427 dir=`echo "X$x" | sed -e 's/^X-L//'`
5428 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
5430 found_so="$dir/lib$name.$shlibext"
5431 if test -f "$dir/lib$name.la"; then
5432 found_la="$dir/lib$name.la"
5435 if test -f "$dir/lib$name.$libext"; then
5437 found_a="$dir/lib$name.$libext"
5438 if test -f "$dir/lib$name.la"; then
5439 found_la="$dir/lib$name.la"
5445 if test "X$found_dir" != "X"; then
5450 if test "X$found_dir" != "X"; then
5451 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5452 if test "X$found_so" != "X"; then
5453 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
5454 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5457 for x in $ltrpathdirs; do
5458 if test "X$x" = "X$found_dir"; then
5463 if test -z "$haveit"; then
5464 ltrpathdirs="$ltrpathdirs $found_dir"
5466 if test "$hardcode_direct" = yes; then
5467 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5469 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
5470 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5472 for x in $rpathdirs; do
5473 if test "X$x" = "X$found_dir"; then
5478 if test -z "$haveit"; then
5479 rpathdirs="$rpathdirs $found_dir"
5483 for x in $LDFLAGS $LIBICONV; do
5485 acl_save_prefix="$prefix"
5486 prefix="$acl_final_prefix"
5487 acl_save_exec_prefix="$exec_prefix"
5488 exec_prefix="$acl_final_exec_prefix"
5490 exec_prefix="$acl_save_exec_prefix"
5491 prefix="$acl_save_prefix"
5493 if test "X$x" = "X-L$found_dir"; then
5498 if test -z "$haveit"; then
5499 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5501 if test "$hardcode_minus_L" != no; then
5502 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5504 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5510 if test "X$found_a" != "X"; then
5511 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5513 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5516 additional_includedir=
5517 case "$found_dir" in
5519 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
5520 additional_includedir="$basedir/include"
5523 if test "X$additional_includedir" != "X"; then
5524 if test "X$additional_includedir" != "X/usr/include"; then
5526 if test "X$additional_includedir" = "X/usr/local/include"; then
5527 if test -n "$GCC"; then
5529 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5533 if test -z "$haveit"; then
5534 for x in $CPPFLAGS $INCICONV; do
5536 acl_save_prefix="$prefix"
5537 prefix="$acl_final_prefix"
5538 acl_save_exec_prefix="$exec_prefix"
5539 exec_prefix="$acl_final_exec_prefix"
5541 exec_prefix="$acl_save_exec_prefix"
5542 prefix="$acl_save_prefix"
5544 if test "X$x" = "X-I$additional_includedir"; then
5549 if test -z "$haveit"; then
5550 if test -d "$additional_includedir"; then
5551 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5557 if test -n "$found_la"; then
5558 save_libdir="$libdir"
5560 */* | *\\*) . "$found_la" ;;
5561 *) . "./$found_la" ;;
5563 libdir="$save_libdir"
5564 for dep in $dependency_libs; do
5567 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5568 if test "X$additional_libdir" != "X/usr/lib"; then
5570 if test "X$additional_libdir" = "X/usr/local/lib"; then
5571 if test -n "$GCC"; then
5573 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5577 if test -z "$haveit"; then
5579 for x in $LDFLAGS $LIBICONV; do
5581 acl_save_prefix="$prefix"
5582 prefix="$acl_final_prefix"
5583 acl_save_exec_prefix="$exec_prefix"
5584 exec_prefix="$acl_final_exec_prefix"
5586 exec_prefix="$acl_save_exec_prefix"
5587 prefix="$acl_save_prefix"
5589 if test "X$x" = "X-L$additional_libdir"; then
5594 if test -z "$haveit"; then
5595 if test -d "$additional_libdir"; then
5596 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5600 for x in $LDFLAGS $LTLIBICONV; do
5602 acl_save_prefix="$prefix"
5603 prefix="$acl_final_prefix"
5604 acl_save_exec_prefix="$exec_prefix"
5605 exec_prefix="$acl_final_exec_prefix"
5607 exec_prefix="$acl_save_exec_prefix"
5608 prefix="$acl_save_prefix"
5610 if test "X$x" = "X-L$additional_libdir"; then
5615 if test -z "$haveit"; then
5616 if test -d "$additional_libdir"; then
5617 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5624 dir=`echo "X$dep" | sed -e 's/^X-R//'`
5625 if test "$enable_rpath" != no; then
5627 for x in $rpathdirs; do
5628 if test "X$x" = "X$dir"; then
5633 if test -z "$haveit"; then
5634 rpathdirs="$rpathdirs $dir"
5637 for x in $ltrpathdirs; do
5638 if test "X$x" = "X$dir"; then
5643 if test -z "$haveit"; then
5644 ltrpathdirs="$ltrpathdirs $dir"
5649 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5652 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5655 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5656 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5662 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5663 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5669 if test "X$rpathdirs" != "X"; then
5670 if test -n "$hardcode_libdir_separator"; then
5672 for found_dir in $rpathdirs; do
5673 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
5675 acl_save_libdir="$libdir"
5677 eval flag=\"$hardcode_libdir_flag_spec\"
5678 libdir="$acl_save_libdir"
5679 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5681 for found_dir in $rpathdirs; do
5682 acl_save_libdir="$libdir"
5684 eval flag=\"$hardcode_libdir_flag_spec\"
5685 libdir="$acl_save_libdir"
5686 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5690 if test "X$ltrpathdirs" != "X"; then
5691 for found_dir in $ltrpathdirs; do
5692 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5713 echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
5714 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6
5715 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
5716 echo $ECHO_N "(cached) $ECHO_C" >&6
5718 gt_save_CPPFLAGS="$CPPFLAGS"
5719 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
5720 gt_save_LIBS="$LIBS"
5721 LIBS="$LIBS -framework CoreFoundation"
5722 cat >conftest.$ac_ext <<_ACEOF
5725 cat confdefs.h >>conftest.$ac_ext
5726 cat >>conftest.$ac_ext <<_ACEOF
5727 /* end confdefs.h. */
5728 #include <CFPreferences.h>
5732 CFPreferencesCopyAppValue(NULL, NULL)
5737 rm -f conftest.$ac_objext conftest$ac_exeext
5738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5739 (eval $ac_link) 2>conftest.er1
5741 grep -v '^ *+' conftest.er1 >conftest.err
5743 cat conftest.err >&5
5744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745 (exit $ac_status); } &&
5746 { ac_try='test -z "$ac_c_werror_flag"
5747 || test ! -s conftest.err'
5748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752 (exit $ac_status); }; } &&
5753 { ac_try='test -s conftest$ac_exeext'
5754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758 (exit $ac_status); }; }; then
5759 gt_cv_func_CFPreferencesCopyAppValue=yes
5761 echo "$as_me: failed program was:" >&5
5762 sed 's/^/| /' conftest.$ac_ext >&5
5764 gt_cv_func_CFPreferencesCopyAppValue=no
5766 rm -f conftest.err conftest.$ac_objext \
5767 conftest$ac_exeext conftest.$ac_ext
5768 CPPFLAGS="$gt_save_CPPFLAGS"
5769 LIBS="$gt_save_LIBS"
5771 echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
5772 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6
5773 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
5775 cat >>confdefs.h <<\_ACEOF
5776 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
5780 echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
5781 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6
5782 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
5783 echo $ECHO_N "(cached) $ECHO_C" >&6
5785 gt_save_CPPFLAGS="$CPPFLAGS"
5786 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
5787 gt_save_LIBS="$LIBS"
5788 LIBS="$LIBS -framework CoreFoundation"
5789 cat >conftest.$ac_ext <<_ACEOF
5792 cat confdefs.h >>conftest.$ac_ext
5793 cat >>conftest.$ac_ext <<_ACEOF
5794 /* end confdefs.h. */
5795 #include <CFLocale.h>
5799 CFLocaleCopyCurrent();
5804 rm -f conftest.$ac_objext conftest$ac_exeext
5805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5806 (eval $ac_link) 2>conftest.er1
5808 grep -v '^ *+' conftest.er1 >conftest.err
5810 cat conftest.err >&5
5811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812 (exit $ac_status); } &&
5813 { ac_try='test -z "$ac_c_werror_flag"
5814 || test ! -s conftest.err'
5815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819 (exit $ac_status); }; } &&
5820 { ac_try='test -s conftest$ac_exeext'
5821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825 (exit $ac_status); }; }; then
5826 gt_cv_func_CFLocaleCopyCurrent=yes
5828 echo "$as_me: failed program was:" >&5
5829 sed 's/^/| /' conftest.$ac_ext >&5
5831 gt_cv_func_CFLocaleCopyCurrent=no
5833 rm -f conftest.err conftest.$ac_objext \
5834 conftest$ac_exeext conftest.$ac_ext
5835 CPPFLAGS="$gt_save_CPPFLAGS"
5836 LIBS="$gt_save_LIBS"
5838 echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
5839 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6
5840 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5842 cat >>confdefs.h <<\_ACEOF
5843 #define HAVE_CFLOCALECOPYCURRENT 1
5848 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5849 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
5855 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5856 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5857 # Check whether --enable-nls or --disable-nls was given.
5858 if test "${enable_nls+set}" = set; then
5859 enableval="$enable_nls"
5864 echo "$as_me:$LINENO: result: $USE_NLS" >&5
5865 echo "${ECHO_T}$USE_NLS" >&6
5874 if test "$USE_NLS" = "yes"; then
5875 gt_use_preinstalled_gnugettext=no
5882 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
5883 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
5884 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
5885 echo $ECHO_N "(cached) $ECHO_C" >&6
5887 cat >conftest.$ac_ext <<_ACEOF
5890 cat confdefs.h >>conftest.$ac_ext
5891 cat >>conftest.$ac_ext <<_ACEOF
5892 /* end confdefs.h. */
5893 #include <libintl.h>
5894 extern int _nl_msg_cat_cntr;
5895 extern int *_nl_domain_bindings;
5899 bindtextdomain ("", "");
5900 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
5905 rm -f conftest.$ac_objext conftest$ac_exeext
5906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5907 (eval $ac_link) 2>conftest.er1
5909 grep -v '^ *+' conftest.er1 >conftest.err
5911 cat conftest.err >&5
5912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913 (exit $ac_status); } &&
5914 { ac_try='test -z "$ac_c_werror_flag"
5915 || test ! -s conftest.err'
5916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920 (exit $ac_status); }; } &&
5921 { ac_try='test -s conftest$ac_exeext'
5922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926 (exit $ac_status); }; }; then
5927 gt_cv_func_gnugettext1_libc=yes
5929 echo "$as_me: failed program was:" >&5
5930 sed 's/^/| /' conftest.$ac_ext >&5
5932 gt_cv_func_gnugettext1_libc=no
5934 rm -f conftest.err conftest.$ac_objext \
5935 conftest$ac_exeext conftest.$ac_ext
5937 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
5938 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
5940 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
5946 am_save_CPPFLAGS="$CPPFLAGS"
5948 for element in $INCICONV; do
5950 for x in $CPPFLAGS; do
5952 acl_save_prefix="$prefix"
5953 prefix="$acl_final_prefix"
5954 acl_save_exec_prefix="$exec_prefix"
5955 exec_prefix="$acl_final_exec_prefix"
5957 exec_prefix="$acl_save_exec_prefix"
5958 prefix="$acl_save_prefix"
5960 if test "X$x" = "X$element"; then
5965 if test -z "$haveit"; then
5966 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5971 echo "$as_me:$LINENO: checking for iconv" >&5
5972 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
5973 if test "${am_cv_func_iconv+set}" = set; then
5974 echo $ECHO_N "(cached) $ECHO_C" >&6
5977 am_cv_func_iconv="no, consider installing GNU libiconv"
5979 cat >conftest.$ac_ext <<_ACEOF
5982 cat confdefs.h >>conftest.$ac_ext
5983 cat >>conftest.$ac_ext <<_ACEOF
5984 /* end confdefs.h. */
5990 iconv_t cd = iconv_open("","");
5991 iconv(cd,NULL,NULL,NULL,NULL);
5997 rm -f conftest.$ac_objext conftest$ac_exeext
5998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5999 (eval $ac_link) 2>conftest.er1
6001 grep -v '^ *+' conftest.er1 >conftest.err
6003 cat conftest.err >&5
6004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005 (exit $ac_status); } &&
6006 { ac_try='test -z "$ac_c_werror_flag"
6007 || test ! -s conftest.err'
6008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012 (exit $ac_status); }; } &&
6013 { ac_try='test -s conftest$ac_exeext'
6014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018 (exit $ac_status); }; }; then
6019 am_cv_func_iconv=yes
6021 echo "$as_me: failed program was:" >&5
6022 sed 's/^/| /' conftest.$ac_ext >&5
6025 rm -f conftest.err conftest.$ac_objext \
6026 conftest$ac_exeext conftest.$ac_ext
6027 if test "$am_cv_func_iconv" != yes; then
6028 am_save_LIBS="$LIBS"
6029 LIBS="$LIBS $LIBICONV"
6030 cat >conftest.$ac_ext <<_ACEOF
6033 cat confdefs.h >>conftest.$ac_ext
6034 cat >>conftest.$ac_ext <<_ACEOF
6035 /* end confdefs.h. */
6041 iconv_t cd = iconv_open("","");
6042 iconv(cd,NULL,NULL,NULL,NULL);
6048 rm -f conftest.$ac_objext conftest$ac_exeext
6049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6050 (eval $ac_link) 2>conftest.er1
6052 grep -v '^ *+' conftest.er1 >conftest.err
6054 cat conftest.err >&5
6055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056 (exit $ac_status); } &&
6057 { ac_try='test -z "$ac_c_werror_flag"
6058 || test ! -s conftest.err'
6059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6063 (exit $ac_status); }; } &&
6064 { ac_try='test -s conftest$ac_exeext'
6065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6069 (exit $ac_status); }; }; then
6071 am_cv_func_iconv=yes
6073 echo "$as_me: failed program was:" >&5
6074 sed 's/^/| /' conftest.$ac_ext >&5
6077 rm -f conftest.err conftest.$ac_objext \
6078 conftest$ac_exeext conftest.$ac_ext
6079 LIBS="$am_save_LIBS"
6083 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
6084 echo "${ECHO_T}$am_cv_func_iconv" >&6
6085 if test "$am_cv_func_iconv" = yes; then
6087 cat >>confdefs.h <<\_ACEOF
6088 #define HAVE_ICONV 1
6092 if test "$am_cv_lib_iconv" = yes; then
6093 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
6094 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
6095 echo "$as_me:$LINENO: result: $LIBICONV" >&5
6096 echo "${ECHO_T}$LIBICONV" >&6
6098 CPPFLAGS="$am_save_CPPFLAGS"
6110 acl_save_prefix="$prefix"
6111 prefix="$acl_final_prefix"
6112 acl_save_exec_prefix="$exec_prefix"
6113 exec_prefix="$acl_final_exec_prefix"
6115 eval additional_includedir=\"$includedir\"
6116 eval additional_libdir=\"$libdir\"
6118 exec_prefix="$acl_save_exec_prefix"
6119 prefix="$acl_save_prefix"
6122 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
6123 if test "${with_libintl_prefix+set}" = set; then
6124 withval="$with_libintl_prefix"
6126 if test "X$withval" = "Xno"; then
6129 if test "X$withval" = "X"; then
6131 acl_save_prefix="$prefix"
6132 prefix="$acl_final_prefix"
6133 acl_save_exec_prefix="$exec_prefix"
6134 exec_prefix="$acl_final_exec_prefix"
6136 eval additional_includedir=\"$includedir\"
6137 eval additional_libdir=\"$libdir\"
6139 exec_prefix="$acl_save_exec_prefix"
6140 prefix="$acl_save_prefix"
6143 additional_includedir="$withval/include"
6144 additional_libdir="$withval/lib"
6154 names_already_handled=
6155 names_next_round='intl '
6156 while test -n "$names_next_round"; do
6157 names_this_round="$names_next_round"
6159 for name in $names_this_round; do
6161 for n in $names_already_handled; do
6162 if test "$n" = "$name"; then
6167 if test -z "$already_handled"; then
6168 names_already_handled="$names_already_handled $name"
6169 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6170 eval value=\"\$HAVE_LIB$uppername\"
6171 if test -n "$value"; then
6172 if test "$value" = yes; then
6173 eval value=\"\$LIB$uppername\"
6174 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
6175 eval value=\"\$LTLIB$uppername\"
6176 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
6185 if test $use_additional = yes; then
6186 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6187 found_dir="$additional_libdir"
6188 found_so="$additional_libdir/lib$name.$shlibext"
6189 if test -f "$additional_libdir/lib$name.la"; then
6190 found_la="$additional_libdir/lib$name.la"
6193 if test -f "$additional_libdir/lib$name.$libext"; then
6194 found_dir="$additional_libdir"
6195 found_a="$additional_libdir/lib$name.$libext"
6196 if test -f "$additional_libdir/lib$name.la"; then
6197 found_la="$additional_libdir/lib$name.la"
6202 if test "X$found_dir" = "X"; then
6203 for x in $LDFLAGS $LTLIBINTL; do
6205 acl_save_prefix="$prefix"
6206 prefix="$acl_final_prefix"
6207 acl_save_exec_prefix="$exec_prefix"
6208 exec_prefix="$acl_final_exec_prefix"
6210 exec_prefix="$acl_save_exec_prefix"
6211 prefix="$acl_save_prefix"
6215 dir=`echo "X$x" | sed -e 's/^X-L//'`
6216 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6218 found_so="$dir/lib$name.$shlibext"
6219 if test -f "$dir/lib$name.la"; then
6220 found_la="$dir/lib$name.la"
6223 if test -f "$dir/lib$name.$libext"; then
6225 found_a="$dir/lib$name.$libext"
6226 if test -f "$dir/lib$name.la"; then
6227 found_la="$dir/lib$name.la"
6233 if test "X$found_dir" != "X"; then
6238 if test "X$found_dir" != "X"; then
6239 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6240 if test "X$found_so" != "X"; then
6241 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6242 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6245 for x in $ltrpathdirs; do
6246 if test "X$x" = "X$found_dir"; then
6251 if test -z "$haveit"; then
6252 ltrpathdirs="$ltrpathdirs $found_dir"
6254 if test "$hardcode_direct" = yes; then
6255 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6257 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6258 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6260 for x in $rpathdirs; do
6261 if test "X$x" = "X$found_dir"; then
6266 if test -z "$haveit"; then
6267 rpathdirs="$rpathdirs $found_dir"
6271 for x in $LDFLAGS $LIBINTL; do
6273 acl_save_prefix="$prefix"
6274 prefix="$acl_final_prefix"
6275 acl_save_exec_prefix="$exec_prefix"
6276 exec_prefix="$acl_final_exec_prefix"
6278 exec_prefix="$acl_save_exec_prefix"
6279 prefix="$acl_save_prefix"
6281 if test "X$x" = "X-L$found_dir"; then
6286 if test -z "$haveit"; then
6287 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6289 if test "$hardcode_minus_L" != no; then
6290 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6292 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6298 if test "X$found_a" != "X"; then
6299 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
6301 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
6304 additional_includedir=
6305 case "$found_dir" in
6307 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6308 additional_includedir="$basedir/include"
6311 if test "X$additional_includedir" != "X"; then
6312 if test "X$additional_includedir" != "X/usr/include"; then
6314 if test "X$additional_includedir" = "X/usr/local/include"; then
6315 if test -n "$GCC"; then
6317 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6321 if test -z "$haveit"; then
6322 for x in $CPPFLAGS $INCINTL; do
6324 acl_save_prefix="$prefix"
6325 prefix="$acl_final_prefix"
6326 acl_save_exec_prefix="$exec_prefix"
6327 exec_prefix="$acl_final_exec_prefix"
6329 exec_prefix="$acl_save_exec_prefix"
6330 prefix="$acl_save_prefix"
6332 if test "X$x" = "X-I$additional_includedir"; then
6337 if test -z "$haveit"; then
6338 if test -d "$additional_includedir"; then
6339 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
6345 if test -n "$found_la"; then
6346 save_libdir="$libdir"
6348 */* | *\\*) . "$found_la" ;;
6349 *) . "./$found_la" ;;
6351 libdir="$save_libdir"
6352 for dep in $dependency_libs; do
6355 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6356 if test "X$additional_libdir" != "X/usr/lib"; then
6358 if test "X$additional_libdir" = "X/usr/local/lib"; then
6359 if test -n "$GCC"; then
6361 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6365 if test -z "$haveit"; then
6367 for x in $LDFLAGS $LIBINTL; do
6369 acl_save_prefix="$prefix"
6370 prefix="$acl_final_prefix"
6371 acl_save_exec_prefix="$exec_prefix"
6372 exec_prefix="$acl_final_exec_prefix"
6374 exec_prefix="$acl_save_exec_prefix"
6375 prefix="$acl_save_prefix"
6377 if test "X$x" = "X-L$additional_libdir"; then
6382 if test -z "$haveit"; then
6383 if test -d "$additional_libdir"; then
6384 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
6388 for x in $LDFLAGS $LTLIBINTL; do
6390 acl_save_prefix="$prefix"
6391 prefix="$acl_final_prefix"
6392 acl_save_exec_prefix="$exec_prefix"
6393 exec_prefix="$acl_final_exec_prefix"
6395 exec_prefix="$acl_save_exec_prefix"
6396 prefix="$acl_save_prefix"
6398 if test "X$x" = "X-L$additional_libdir"; then
6403 if test -z "$haveit"; then
6404 if test -d "$additional_libdir"; then
6405 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
6412 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6413 if test "$enable_rpath" != no; then
6415 for x in $rpathdirs; do
6416 if test "X$x" = "X$dir"; then
6421 if test -z "$haveit"; then
6422 rpathdirs="$rpathdirs $dir"
6425 for x in $ltrpathdirs; do
6426 if test "X$x" = "X$dir"; then
6431 if test -z "$haveit"; then
6432 ltrpathdirs="$ltrpathdirs $dir"
6437 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6440 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6443 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
6444 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
6450 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6451 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
6457 if test "X$rpathdirs" != "X"; then
6458 if test -n "$hardcode_libdir_separator"; then
6460 for found_dir in $rpathdirs; do
6461 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6463 acl_save_libdir="$libdir"
6465 eval flag=\"$hardcode_libdir_flag_spec\"
6466 libdir="$acl_save_libdir"
6467 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6469 for found_dir in $rpathdirs; do
6470 acl_save_libdir="$libdir"
6472 eval flag=\"$hardcode_libdir_flag_spec\"
6473 libdir="$acl_save_libdir"
6474 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6478 if test "X$ltrpathdirs" != "X"; then
6479 for found_dir in $ltrpathdirs; do
6480 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
6484 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
6485 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
6486 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
6487 echo $ECHO_N "(cached) $ECHO_C" >&6
6489 gt_save_CPPFLAGS="$CPPFLAGS"
6490 CPPFLAGS="$CPPFLAGS $INCINTL"
6491 gt_save_LIBS="$LIBS"
6492 LIBS="$LIBS $LIBINTL"
6493 cat >conftest.$ac_ext <<_ACEOF
6496 cat confdefs.h >>conftest.$ac_ext
6497 cat >>conftest.$ac_ext <<_ACEOF
6498 /* end confdefs.h. */
6499 #include <libintl.h>
6500 extern int _nl_msg_cat_cntr;
6505 const char *_nl_expand_alias (const char *);
6509 bindtextdomain ("", "");
6510 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6515 rm -f conftest.$ac_objext conftest$ac_exeext
6516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6517 (eval $ac_link) 2>conftest.er1
6519 grep -v '^ *+' conftest.er1 >conftest.err
6521 cat conftest.err >&5
6522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523 (exit $ac_status); } &&
6524 { ac_try='test -z "$ac_c_werror_flag"
6525 || test ! -s conftest.err'
6526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530 (exit $ac_status); }; } &&
6531 { ac_try='test -s conftest$ac_exeext'
6532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6536 (exit $ac_status); }; }; then
6537 gt_cv_func_gnugettext1_libintl=yes
6539 echo "$as_me: failed program was:" >&5
6540 sed 's/^/| /' conftest.$ac_ext >&5
6542 gt_cv_func_gnugettext1_libintl=no
6544 rm -f conftest.err conftest.$ac_objext \
6545 conftest$ac_exeext conftest.$ac_ext
6546 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
6547 LIBS="$LIBS $LIBICONV"
6548 cat >conftest.$ac_ext <<_ACEOF
6551 cat confdefs.h >>conftest.$ac_ext
6552 cat >>conftest.$ac_ext <<_ACEOF
6553 /* end confdefs.h. */
6554 #include <libintl.h>
6555 extern int _nl_msg_cat_cntr;
6560 const char *_nl_expand_alias (const char *);
6564 bindtextdomain ("", "");
6565 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6570 rm -f conftest.$ac_objext conftest$ac_exeext
6571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6572 (eval $ac_link) 2>conftest.er1
6574 grep -v '^ *+' conftest.er1 >conftest.err
6576 cat conftest.err >&5
6577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6578 (exit $ac_status); } &&
6579 { ac_try='test -z "$ac_c_werror_flag"
6580 || test ! -s conftest.err'
6581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585 (exit $ac_status); }; } &&
6586 { ac_try='test -s conftest$ac_exeext'
6587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591 (exit $ac_status); }; }; then
6592 LIBINTL="$LIBINTL $LIBICONV"
6593 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
6594 gt_cv_func_gnugettext1_libintl=yes
6597 echo "$as_me: failed program was:" >&5
6598 sed 's/^/| /' conftest.$ac_ext >&5
6601 rm -f conftest.err conftest.$ac_objext \
6602 conftest$ac_exeext conftest.$ac_ext
6604 CPPFLAGS="$gt_save_CPPFLAGS"
6605 LIBS="$gt_save_LIBS"
6607 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
6608 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
6611 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
6612 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
6613 && test "$PACKAGE" != gettext-runtime \
6614 && test "$PACKAGE" != gettext-tools; }; then
6615 gt_use_preinstalled_gnugettext=yes
6624 if test -n "$INTL_MACOSX_LIBS"; then
6625 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6626 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6627 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
6628 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
6632 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6633 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6635 cat >>confdefs.h <<\_ACEOF
6636 #define ENABLE_NLS 1
6644 echo "$as_me:$LINENO: checking whether to use NLS" >&5
6645 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
6646 echo "$as_me:$LINENO: result: $USE_NLS" >&5
6647 echo "${ECHO_T}$USE_NLS" >&6
6648 if test "$USE_NLS" = "yes"; then
6649 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
6650 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
6651 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6652 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6653 gt_source="external libintl"
6658 gt_source="included intl directory"
6660 echo "$as_me:$LINENO: result: $gt_source" >&5
6661 echo "${ECHO_T}$gt_source" >&6
6664 if test "$USE_NLS" = "yes"; then
6666 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6667 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6668 echo "$as_me:$LINENO: checking how to link with libintl" >&5
6669 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
6670 echo "$as_me:$LINENO: result: $LIBINTL" >&5
6671 echo "${ECHO_T}$LIBINTL" >&6
6673 for element in $INCINTL; do
6675 for x in $CPPFLAGS; do
6677 acl_save_prefix="$prefix"
6678 prefix="$acl_final_prefix"
6679 acl_save_exec_prefix="$exec_prefix"
6680 exec_prefix="$acl_final_exec_prefix"
6682 exec_prefix="$acl_save_exec_prefix"
6683 prefix="$acl_save_prefix"
6685 if test "X$x" = "X$element"; then
6690 if test -z "$haveit"; then
6691 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6698 cat >>confdefs.h <<\_ACEOF
6699 #define HAVE_GETTEXT 1
6703 cat >>confdefs.h <<\_ACEOF
6704 #define HAVE_DCGETTEXT 1
6721 if test x${prefix} = xNONE ; then
6722 if test `eval echo ${datadir}` = NONE/share ; then
6727 # ------------------------------------------------------------------
6728 # If the user has not set --prefix, we set our default to nothing.
6729 # In this case, if the user has not set --sysconfdir, we set it
6730 # to the package default of /etc/bacula. If either --prefix or
6731 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
6732 # ------------------------------------------------------------------
6733 if test x${prefix} = xNONE ; then
6734 if test `eval echo ${sysconfdir}` = NONE/etc ; then
6735 sysconfdir=/etc/bacula
6739 sysconfdir=`eval echo ${sysconfdir}`
6740 datadir=`eval echo ${datadir}`
6741 localedir=`eval echo ${datadir}/locale`
6742 cat >>confdefs.h <<_ACEOF
6743 #define LOCALEDIR "$localedir"
6746 cat >>confdefs.h <<_ACEOF
6747 #define SYSCONFDIR "$sysconfdir"
6751 # -------------------------------------------------------------------------
6752 # If the user has not set --exec-prefix, we default to ${prefix}
6753 # -------------------------------------------------------------------------
6754 if test x${exec_prefix} = xNONE ; then
6755 exec_prefix=${prefix}
6758 # ------------------------------------------------------------------
6759 # If the user has not set --sbindir, we set our default as /sbin
6760 # ------------------------------------------------------------------
6761 if test x$sbindir = x'${exec_prefix}/sbin' ; then
6762 sbindir=${exec_prefix}/sbin
6764 sbindir=`eval echo ${sbindir}`
6766 # -------------------------------------------------------------------------
6767 # If the user has not set --mandir, we default to /usr/share/man
6768 # -------------------------------------------------------------------------
6769 if test x$mandir = x'${prefix}/man' ; then
6770 mandir=/usr/share/man
6774 # ------------------------------------------------------------------
6775 # All list of languages for which a translation exist. Each
6776 # language is separated by a space.
6777 # ------------------------------------------------------------------
6780 for ac_prog in msgfmt
6782 # Extract the first word of "$ac_prog", so it can be a program name with args.
6783 set dummy $ac_prog; ac_word=$2
6784 echo "$as_me:$LINENO: checking for $ac_word" >&5
6785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6786 if test "${ac_cv_path_MSGFMT+set}" = set; then
6787 echo $ECHO_N "(cached) $ECHO_C" >&6
6791 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6798 test -z "$as_dir" && as_dir=.
6799 for ac_exec_ext in '' $ac_executable_extensions; do
6800 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6801 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
6802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6811 MSGFMT=$ac_cv_path_MSGFMT
6813 if test -n "$MSGFMT"; then
6814 echo "$as_me:$LINENO: result: $MSGFMT" >&5
6815 echo "${ECHO_T}$MSGFMT" >&6
6817 echo "$as_me:$LINENO: result: no" >&5
6818 echo "${ECHO_T}no" >&6
6821 test -n "$MSGFMT" && break
6823 test -n "$MSGFMT" || MSGFMT="no"
6825 if test "$MSGFMT" = "no"
6827 echo 'msgfmt program not found, disabling NLS !'
6829 USE_INCLUDED_LIBINTL=no
6832 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
6833 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6
6834 if test "${ac_cv_gnu_library_2+set}" = set; then
6835 echo $ECHO_N "(cached) $ECHO_C" >&6
6837 cat >conftest.$ac_ext <<_ACEOF
6840 cat confdefs.h >>conftest.$ac_ext
6841 cat >>conftest.$ac_ext <<_ACEOF
6842 /* end confdefs.h. */
6844 #include <features.h>
6845 #ifdef __GNU_LIBRARY__
6846 #if (__GLIBC__ >= 2)
6852 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6853 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
6854 ac_cv_gnu_library_2=yes
6856 ac_cv_gnu_library_2=no
6863 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
6864 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6
6866 GLIBC2="$ac_cv_gnu_library_2"
6870 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
6871 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
6872 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
6873 echo $ECHO_N "(cached) $ECHO_C" >&6
6875 ac_check_lib_save_LIBS=$LIBS
6876 LIBS="-lcposix $LIBS"
6877 cat >conftest.$ac_ext <<_ACEOF
6880 cat confdefs.h >>conftest.$ac_ext
6881 cat >>conftest.$ac_ext <<_ACEOF
6882 /* end confdefs.h. */
6884 /* Override any gcc2 internal prototype to avoid an error. */
6888 /* We use char because int might match the return type of a gcc2
6889 builtin and then its argument prototype would still apply. */
6899 rm -f conftest.$ac_objext conftest$ac_exeext
6900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6901 (eval $ac_link) 2>conftest.er1
6903 grep -v '^ *+' conftest.er1 >conftest.err
6905 cat conftest.err >&5
6906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6907 (exit $ac_status); } &&
6908 { ac_try='test -z "$ac_c_werror_flag"
6909 || test ! -s conftest.err'
6910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6914 (exit $ac_status); }; } &&
6915 { ac_try='test -s conftest$ac_exeext'
6916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6920 (exit $ac_status); }; }; then
6921 ac_cv_lib_cposix_strerror=yes
6923 echo "$as_me: failed program was:" >&5
6924 sed 's/^/| /' conftest.$ac_ext >&5
6926 ac_cv_lib_cposix_strerror=no
6928 rm -f conftest.err conftest.$ac_objext \
6929 conftest$ac_exeext conftest.$ac_ext
6930 LIBS=$ac_check_lib_save_LIBS
6932 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
6933 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
6934 if test $ac_cv_lib_cposix_strerror = yes; then
6935 LIBS="$LIBS -lcposix"
6940 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6941 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6942 if test "${ac_cv_header_stdc+set}" = set; then
6943 echo $ECHO_N "(cached) $ECHO_C" >&6
6945 cat >conftest.$ac_ext <<_ACEOF
6948 cat confdefs.h >>conftest.$ac_ext
6949 cat >>conftest.$ac_ext <<_ACEOF
6950 /* end confdefs.h. */
6964 rm -f conftest.$ac_objext
6965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6966 (eval $ac_compile) 2>conftest.er1
6968 grep -v '^ *+' conftest.er1 >conftest.err
6970 cat conftest.err >&5
6971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6972 (exit $ac_status); } &&
6973 { ac_try='test -z "$ac_c_werror_flag"
6974 || test ! -s conftest.err'
6975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6979 (exit $ac_status); }; } &&
6980 { ac_try='test -s conftest.$ac_objext'
6981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6985 (exit $ac_status); }; }; then
6986 ac_cv_header_stdc=yes
6988 echo "$as_me: failed program was:" >&5
6989 sed 's/^/| /' conftest.$ac_ext >&5
6991 ac_cv_header_stdc=no
6993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6995 if test $ac_cv_header_stdc = yes; then
6996 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6997 cat >conftest.$ac_ext <<_ACEOF
7000 cat confdefs.h >>conftest.$ac_ext
7001 cat >>conftest.$ac_ext <<_ACEOF
7002 /* end confdefs.h. */
7006 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7007 $EGREP "memchr" >/dev/null 2>&1; then
7010 ac_cv_header_stdc=no
7016 if test $ac_cv_header_stdc = yes; then
7017 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7018 cat >conftest.$ac_ext <<_ACEOF
7021 cat confdefs.h >>conftest.$ac_ext
7022 cat >>conftest.$ac_ext <<_ACEOF
7023 /* end confdefs.h. */
7027 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7028 $EGREP "free" >/dev/null 2>&1; then
7031 ac_cv_header_stdc=no
7037 if test $ac_cv_header_stdc = yes; then
7038 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7039 if test "$cross_compiling" = yes; then
7042 cat >conftest.$ac_ext <<_ACEOF
7045 cat confdefs.h >>conftest.$ac_ext
7046 cat >>conftest.$ac_ext <<_ACEOF
7047 /* end confdefs.h. */
7049 #if ((' ' & 0x0FF) == 0x020)
7050 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7051 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7053 # define ISLOWER(c) \
7054 (('a' <= (c) && (c) <= 'i') \
7055 || ('j' <= (c) && (c) <= 'r') \
7056 || ('s' <= (c) && (c) <= 'z'))
7057 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7060 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7065 for (i = 0; i < 256; i++)
7066 if (XOR (islower (i), ISLOWER (i))
7067 || toupper (i) != TOUPPER (i))
7072 rm -f conftest$ac_exeext
7073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7074 (eval $ac_link) 2>&5
7076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7077 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7082 (exit $ac_status); }; }; then
7085 echo "$as_me: program exited with status $ac_status" >&5
7086 echo "$as_me: failed program was:" >&5
7087 sed 's/^/| /' conftest.$ac_ext >&5
7090 ac_cv_header_stdc=no
7092 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7096 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7097 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7098 if test $ac_cv_header_stdc = yes; then
7100 cat >>confdefs.h <<\_ACEOF
7101 #define STDC_HEADERS 1
7106 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7107 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7108 if test "${ac_cv_c_const+set}" = set; then
7109 echo $ECHO_N "(cached) $ECHO_C" >&6
7111 cat >conftest.$ac_ext <<_ACEOF
7114 cat confdefs.h >>conftest.$ac_ext
7115 cat >>conftest.$ac_ext <<_ACEOF
7116 /* end confdefs.h. */
7121 /* FIXME: Include the comments suggested by Paul. */
7123 /* Ultrix mips cc rejects this. */
7124 typedef int charset[2];
7126 /* SunOS 4.1.1 cc rejects this. */
7127 char const *const *ccp;
7129 /* NEC SVR4.0.2 mips cc rejects this. */
7130 struct point {int x, y;};
7131 static struct point const zero = {0,0};
7132 /* AIX XL C 1.02.0.0 rejects this.
7133 It does not let you subtract one const X* pointer from another in
7134 an arm of an if-expression whose if-part is not a constant
7136 const char *g = "string";
7137 ccp = &g + (g ? g-g : 0);
7138 /* HPUX 7.0 cc rejects these. */
7141 ccp = (char const *const *) p;
7142 { /* SCO 3.2v4 cc rejects this. */
7144 char const *s = 0 ? (char *) 0 : (char const *) 0;
7148 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7150 const int *foo = &x[0];
7153 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7154 typedef const int *iptr;
7158 { /* AIX XL C 1.02.0.0 rejects this saying
7159 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7160 struct s { int j; const int *ap[3]; };
7161 struct s *b; b->j = 5;
7163 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7172 rm -f conftest.$ac_objext
7173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7174 (eval $ac_compile) 2>conftest.er1
7176 grep -v '^ *+' conftest.er1 >conftest.err
7178 cat conftest.err >&5
7179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7180 (exit $ac_status); } &&
7181 { ac_try='test -z "$ac_c_werror_flag"
7182 || test ! -s conftest.err'
7183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7187 (exit $ac_status); }; } &&
7188 { ac_try='test -s conftest.$ac_objext'
7189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7193 (exit $ac_status); }; }; then
7196 echo "$as_me: failed program was:" >&5
7197 sed 's/^/| /' conftest.$ac_ext >&5
7201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7203 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7204 echo "${ECHO_T}$ac_cv_c_const" >&6
7205 if test $ac_cv_c_const = no; then
7207 cat >>confdefs.h <<\_ACEOF
7214 echo "$as_me:$LINENO: checking for signed" >&5
7215 echo $ECHO_N "checking for signed... $ECHO_C" >&6
7216 if test "${bh_cv_c_signed+set}" = set; then
7217 echo $ECHO_N "(cached) $ECHO_C" >&6
7219 cat >conftest.$ac_ext <<_ACEOF
7222 cat confdefs.h >>conftest.$ac_ext
7223 cat >>conftest.$ac_ext <<_ACEOF
7224 /* end confdefs.h. */
7234 rm -f conftest.$ac_objext
7235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7236 (eval $ac_compile) 2>conftest.er1
7238 grep -v '^ *+' conftest.er1 >conftest.err
7240 cat conftest.err >&5
7241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7242 (exit $ac_status); } &&
7243 { ac_try='test -z "$ac_c_werror_flag"
7244 || test ! -s conftest.err'
7245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7249 (exit $ac_status); }; } &&
7250 { ac_try='test -s conftest.$ac_objext'
7251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7255 (exit $ac_status); }; }; then
7258 echo "$as_me: failed program was:" >&5
7259 sed 's/^/| /' conftest.$ac_ext >&5
7263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7265 echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
7266 echo "${ECHO_T}$bh_cv_c_signed" >&6
7267 if test $bh_cv_c_signed = no; then
7269 cat >>confdefs.h <<\_ACEOF
7275 echo "$as_me:$LINENO: checking for inline" >&5
7276 echo $ECHO_N "checking for inline... $ECHO_C" >&6
7277 if test "${ac_cv_c_inline+set}" = set; then
7278 echo $ECHO_N "(cached) $ECHO_C" >&6
7281 for ac_kw in inline __inline__ __inline; do
7282 cat >conftest.$ac_ext <<_ACEOF
7285 cat confdefs.h >>conftest.$ac_ext
7286 cat >>conftest.$ac_ext <<_ACEOF
7287 /* end confdefs.h. */
7290 static $ac_kw foo_t static_foo () {return 0; }
7291 $ac_kw foo_t foo () {return 0; }
7295 rm -f conftest.$ac_objext
7296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7297 (eval $ac_compile) 2>conftest.er1
7299 grep -v '^ *+' conftest.er1 >conftest.err
7301 cat conftest.err >&5
7302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7303 (exit $ac_status); } &&
7304 { ac_try='test -z "$ac_c_werror_flag"
7305 || test ! -s conftest.err'
7306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310 (exit $ac_status); }; } &&
7311 { ac_try='test -s conftest.$ac_objext'
7312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7316 (exit $ac_status); }; }; then
7317 ac_cv_c_inline=$ac_kw; break
7319 echo "$as_me: failed program was:" >&5
7320 sed 's/^/| /' conftest.$ac_ext >&5
7323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7327 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7328 echo "${ECHO_T}$ac_cv_c_inline" >&6
7331 case $ac_cv_c_inline in
7334 case $ac_cv_c_inline in
7336 *) ac_val=$ac_cv_c_inline;;
7338 cat >>confdefs.h <<_ACEOF
7340 #define inline $ac_val
7346 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7356 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7357 inttypes.h stdint.h unistd.h
7359 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7360 echo "$as_me:$LINENO: checking for $ac_header" >&5
7361 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7362 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7363 echo $ECHO_N "(cached) $ECHO_C" >&6
7365 cat >conftest.$ac_ext <<_ACEOF
7368 cat confdefs.h >>conftest.$ac_ext
7369 cat >>conftest.$ac_ext <<_ACEOF
7370 /* end confdefs.h. */
7371 $ac_includes_default
7373 #include <$ac_header>
7375 rm -f conftest.$ac_objext
7376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7377 (eval $ac_compile) 2>conftest.er1
7379 grep -v '^ *+' conftest.er1 >conftest.err
7381 cat conftest.err >&5
7382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7383 (exit $ac_status); } &&
7384 { ac_try='test -z "$ac_c_werror_flag"
7385 || test ! -s conftest.err'
7386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7390 (exit $ac_status); }; } &&
7391 { ac_try='test -s conftest.$ac_objext'
7392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7396 (exit $ac_status); }; }; then
7397 eval "$as_ac_Header=yes"
7399 echo "$as_me: failed program was:" >&5
7400 sed 's/^/| /' conftest.$ac_ext >&5
7402 eval "$as_ac_Header=no"
7404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7406 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7407 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7408 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7409 cat >>confdefs.h <<_ACEOF
7410 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7418 echo "$as_me:$LINENO: checking for off_t" >&5
7419 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
7420 if test "${ac_cv_type_off_t+set}" = set; then
7421 echo $ECHO_N "(cached) $ECHO_C" >&6
7423 cat >conftest.$ac_ext <<_ACEOF
7426 cat confdefs.h >>conftest.$ac_ext
7427 cat >>conftest.$ac_ext <<_ACEOF
7428 /* end confdefs.h. */
7429 $ac_includes_default
7441 rm -f conftest.$ac_objext
7442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7443 (eval $ac_compile) 2>conftest.er1
7445 grep -v '^ *+' conftest.er1 >conftest.err
7447 cat conftest.err >&5
7448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7449 (exit $ac_status); } &&
7450 { ac_try='test -z "$ac_c_werror_flag"
7451 || test ! -s conftest.err'
7452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7456 (exit $ac_status); }; } &&
7457 { ac_try='test -s conftest.$ac_objext'
7458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7462 (exit $ac_status); }; }; then
7463 ac_cv_type_off_t=yes
7465 echo "$as_me: failed program was:" >&5
7466 sed 's/^/| /' conftest.$ac_ext >&5
7470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7472 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7473 echo "${ECHO_T}$ac_cv_type_off_t" >&6
7474 if test $ac_cv_type_off_t = yes; then
7478 cat >>confdefs.h <<_ACEOF
7484 echo "$as_me:$LINENO: checking for size_t" >&5
7485 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
7486 if test "${ac_cv_type_size_t+set}" = set; then
7487 echo $ECHO_N "(cached) $ECHO_C" >&6
7489 cat >conftest.$ac_ext <<_ACEOF
7492 cat confdefs.h >>conftest.$ac_ext
7493 cat >>conftest.$ac_ext <<_ACEOF
7494 /* end confdefs.h. */
7495 $ac_includes_default
7501 if (sizeof (size_t))
7507 rm -f conftest.$ac_objext
7508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7509 (eval $ac_compile) 2>conftest.er1
7511 grep -v '^ *+' conftest.er1 >conftest.err
7513 cat conftest.err >&5
7514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7515 (exit $ac_status); } &&
7516 { ac_try='test -z "$ac_c_werror_flag"
7517 || test ! -s conftest.err'
7518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7522 (exit $ac_status); }; } &&
7523 { ac_try='test -s conftest.$ac_objext'
7524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7528 (exit $ac_status); }; }; then
7529 ac_cv_type_size_t=yes
7531 echo "$as_me: failed program was:" >&5
7532 sed 's/^/| /' conftest.$ac_ext >&5
7534 ac_cv_type_size_t=no
7536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7538 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7539 echo "${ECHO_T}$ac_cv_type_size_t" >&6
7540 if test $ac_cv_type_size_t = yes; then
7544 cat >>confdefs.h <<_ACEOF
7545 #define size_t unsigned
7551 echo "$as_me:$LINENO: checking for long long" >&5
7552 echo $ECHO_N "checking for long long... $ECHO_C" >&6
7553 if test "${ac_cv_type_long_long+set}" = set; then
7554 echo $ECHO_N "(cached) $ECHO_C" >&6
7556 cat >conftest.$ac_ext <<_ACEOF
7559 cat confdefs.h >>conftest.$ac_ext
7560 cat >>conftest.$ac_ext <<_ACEOF
7561 /* end confdefs.h. */
7562 long long ll = 1LL; int i = 63;
7566 long long llmax = (long long) -1;
7567 return ll << i | ll >> i | llmax / ll | llmax % ll;
7572 rm -f conftest.$ac_objext conftest$ac_exeext
7573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7574 (eval $ac_link) 2>conftest.er1
7576 grep -v '^ *+' conftest.er1 >conftest.err
7578 cat conftest.err >&5
7579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7580 (exit $ac_status); } &&
7581 { ac_try='test -z "$ac_c_werror_flag"
7582 || test ! -s conftest.err'
7583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7587 (exit $ac_status); }; } &&
7588 { ac_try='test -s conftest$ac_exeext'
7589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7593 (exit $ac_status); }; }; then
7594 ac_cv_type_long_long=yes
7596 echo "$as_me: failed program was:" >&5
7597 sed 's/^/| /' conftest.$ac_ext >&5
7599 ac_cv_type_long_long=no
7601 rm -f conftest.err conftest.$ac_objext \
7602 conftest$ac_exeext conftest.$ac_ext
7604 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
7605 echo "${ECHO_T}$ac_cv_type_long_long" >&6
7606 if test $ac_cv_type_long_long = yes; then
7608 cat >>confdefs.h <<\_ACEOF
7609 #define HAVE_LONG_LONG 1
7615 echo "$as_me:$LINENO: checking for long double" >&5
7616 echo $ECHO_N "checking for long double... $ECHO_C" >&6
7617 if test "${gt_cv_c_long_double+set}" = set; then
7618 echo $ECHO_N "(cached) $ECHO_C" >&6
7620 if test "$GCC" = yes; then
7621 gt_cv_c_long_double=yes
7623 cat >conftest.$ac_ext <<_ACEOF
7626 cat confdefs.h >>conftest.$ac_ext
7627 cat >>conftest.$ac_ext <<_ACEOF
7628 /* end confdefs.h. */
7630 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
7631 long double foo = 0.0;
7632 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
7633 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
7643 rm -f conftest.$ac_objext
7644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7645 (eval $ac_compile) 2>conftest.er1
7647 grep -v '^ *+' conftest.er1 >conftest.err
7649 cat conftest.err >&5
7650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7651 (exit $ac_status); } &&
7652 { ac_try='test -z "$ac_c_werror_flag"
7653 || test ! -s conftest.err'
7654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7658 (exit $ac_status); }; } &&
7659 { ac_try='test -s conftest.$ac_objext'
7660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7664 (exit $ac_status); }; }; then
7665 gt_cv_c_long_double=yes
7667 echo "$as_me: failed program was:" >&5
7668 sed 's/^/| /' conftest.$ac_ext >&5
7670 gt_cv_c_long_double=no
7672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7675 echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
7676 echo "${ECHO_T}$gt_cv_c_long_double" >&6
7677 if test $gt_cv_c_long_double = yes; then
7679 cat >>confdefs.h <<\_ACEOF
7680 #define HAVE_LONG_DOUBLE 1
7686 echo "$as_me:$LINENO: checking for wchar_t" >&5
7687 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
7688 if test "${gt_cv_c_wchar_t+set}" = set; then
7689 echo $ECHO_N "(cached) $ECHO_C" >&6
7691 cat >conftest.$ac_ext <<_ACEOF
7694 cat confdefs.h >>conftest.$ac_ext
7695 cat >>conftest.$ac_ext <<_ACEOF
7696 /* end confdefs.h. */
7698 wchar_t foo = (wchar_t)'\0';
7707 rm -f conftest.$ac_objext
7708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7709 (eval $ac_compile) 2>conftest.er1
7711 grep -v '^ *+' conftest.er1 >conftest.err
7713 cat conftest.err >&5
7714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7715 (exit $ac_status); } &&
7716 { ac_try='test -z "$ac_c_werror_flag"
7717 || test ! -s conftest.err'
7718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7722 (exit $ac_status); }; } &&
7723 { ac_try='test -s conftest.$ac_objext'
7724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7728 (exit $ac_status); }; }; then
7731 echo "$as_me: failed program was:" >&5
7732 sed 's/^/| /' conftest.$ac_ext >&5
7736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7738 echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
7739 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6
7740 if test $gt_cv_c_wchar_t = yes; then
7742 cat >>confdefs.h <<\_ACEOF
7743 #define HAVE_WCHAR_T 1
7749 echo "$as_me:$LINENO: checking for wint_t" >&5
7750 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
7751 if test "${gt_cv_c_wint_t+set}" = set; then
7752 echo $ECHO_N "(cached) $ECHO_C" >&6
7754 cat >conftest.$ac_ext <<_ACEOF
7757 cat confdefs.h >>conftest.$ac_ext
7758 cat >>conftest.$ac_ext <<_ACEOF
7759 /* end confdefs.h. */
7761 wint_t foo = (wchar_t)'\0';
7770 rm -f conftest.$ac_objext
7771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7772 (eval $ac_compile) 2>conftest.er1
7774 grep -v '^ *+' conftest.er1 >conftest.err
7776 cat conftest.err >&5
7777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7778 (exit $ac_status); } &&
7779 { ac_try='test -z "$ac_c_werror_flag"
7780 || test ! -s conftest.err'
7781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785 (exit $ac_status); }; } &&
7786 { ac_try='test -s conftest.$ac_objext'
7787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791 (exit $ac_status); }; }; then
7794 echo "$as_me: failed program was:" >&5
7795 sed 's/^/| /' conftest.$ac_ext >&5
7799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7801 echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
7802 echo "${ECHO_T}$gt_cv_c_wint_t" >&6
7803 if test $gt_cv_c_wint_t = yes; then
7805 cat >>confdefs.h <<\_ACEOF
7806 #define HAVE_WINT_T 1
7812 echo "$as_me:$LINENO: checking for inttypes.h" >&5
7813 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
7814 if test "${gl_cv_header_inttypes_h+set}" = set; then
7815 echo $ECHO_N "(cached) $ECHO_C" >&6
7817 cat >conftest.$ac_ext <<_ACEOF
7820 cat confdefs.h >>conftest.$ac_ext
7821 cat >>conftest.$ac_ext <<_ACEOF
7822 /* end confdefs.h. */
7823 #include <sys/types.h>
7824 #include <inttypes.h>
7828 uintmax_t i = (uintmax_t) -1;
7833 rm -f conftest.$ac_objext
7834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7835 (eval $ac_compile) 2>conftest.er1
7837 grep -v '^ *+' conftest.er1 >conftest.err
7839 cat conftest.err >&5
7840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7841 (exit $ac_status); } &&
7842 { ac_try='test -z "$ac_c_werror_flag"
7843 || test ! -s conftest.err'
7844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7848 (exit $ac_status); }; } &&
7849 { ac_try='test -s conftest.$ac_objext'
7850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7854 (exit $ac_status); }; }; then
7855 gl_cv_header_inttypes_h=yes
7857 echo "$as_me: failed program was:" >&5
7858 sed 's/^/| /' conftest.$ac_ext >&5
7860 gl_cv_header_inttypes_h=no
7862 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7864 echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
7865 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6
7866 if test $gl_cv_header_inttypes_h = yes; then
7868 cat >>confdefs.h <<_ACEOF
7869 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
7875 echo "$as_me:$LINENO: checking for stdint.h" >&5
7876 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
7877 if test "${gl_cv_header_stdint_h+set}" = set; then
7878 echo $ECHO_N "(cached) $ECHO_C" >&6
7880 cat >conftest.$ac_ext <<_ACEOF
7883 cat confdefs.h >>conftest.$ac_ext
7884 cat >>conftest.$ac_ext <<_ACEOF
7885 /* end confdefs.h. */
7886 #include <sys/types.h>
7891 uintmax_t i = (uintmax_t) -1;
7896 rm -f conftest.$ac_objext
7897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7898 (eval $ac_compile) 2>conftest.er1
7900 grep -v '^ *+' conftest.er1 >conftest.err
7902 cat conftest.err >&5
7903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904 (exit $ac_status); } &&
7905 { ac_try='test -z "$ac_c_werror_flag"
7906 || test ! -s conftest.err'
7907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7911 (exit $ac_status); }; } &&
7912 { ac_try='test -s conftest.$ac_objext'
7913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7917 (exit $ac_status); }; }; then
7918 gl_cv_header_stdint_h=yes
7920 echo "$as_me: failed program was:" >&5
7921 sed 's/^/| /' conftest.$ac_ext >&5
7923 gl_cv_header_stdint_h=no
7925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7927 echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
7928 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6
7929 if test $gl_cv_header_stdint_h = yes; then
7931 cat >>confdefs.h <<_ACEOF
7932 #define HAVE_STDINT_H_WITH_UINTMAX 1
7940 echo "$as_me:$LINENO: checking for intmax_t" >&5
7941 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
7942 if test "${gt_cv_c_intmax_t+set}" = set; then
7943 echo $ECHO_N "(cached) $ECHO_C" >&6
7945 cat >conftest.$ac_ext <<_ACEOF
7948 cat confdefs.h >>conftest.$ac_ext
7949 cat >>conftest.$ac_ext <<_ACEOF
7950 /* end confdefs.h. */
7954 #if HAVE_STDINT_H_WITH_UINTMAX
7957 #if HAVE_INTTYPES_H_WITH_UINTMAX
7958 #include <inttypes.h>
7969 rm -f conftest.$ac_objext
7970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7971 (eval $ac_compile) 2>conftest.er1
7973 grep -v '^ *+' conftest.er1 >conftest.err
7975 cat conftest.err >&5
7976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977 (exit $ac_status); } &&
7978 { ac_try='test -z "$ac_c_werror_flag"
7979 || test ! -s conftest.err'
7980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984 (exit $ac_status); }; } &&
7985 { ac_try='test -s conftest.$ac_objext'
7986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7990 (exit $ac_status); }; }; then
7991 gt_cv_c_intmax_t=yes
7993 echo "$as_me: failed program was:" >&5
7994 sed 's/^/| /' conftest.$ac_ext >&5
7998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8000 echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
8001 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6
8002 if test $gt_cv_c_intmax_t = yes; then
8004 cat >>confdefs.h <<\_ACEOF
8005 #define HAVE_INTMAX_T 1
8012 echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
8013 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6
8014 if test "${gt_cv_func_printf_posix+set}" = set; then
8015 echo $ECHO_N "(cached) $ECHO_C" >&6
8018 if test "$cross_compiling" = yes; then
8020 cat >conftest.$ac_ext <<_ACEOF
8023 cat confdefs.h >>conftest.$ac_ext
8024 cat >>conftest.$ac_ext <<_ACEOF
8025 /* end confdefs.h. */
8027 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
8032 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8033 $EGREP "notposix" >/dev/null 2>&1; then
8034 gt_cv_func_printf_posix="guessing no"
8036 gt_cv_func_printf_posix="guessing yes"
8042 cat >conftest.$ac_ext <<_ACEOF
8045 cat confdefs.h >>conftest.$ac_ext
8046 cat >>conftest.$ac_ext <<_ACEOF
8047 /* end confdefs.h. */
8051 /* The string "%2$d %1$d", with dollar characters protected from the shell's
8052 dollar expansion (possibly an autoconf bug). */
8053 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
8054 static char buf[100];
8057 sprintf (buf, format, 33, 55);
8058 return (strcmp (buf, "55 33") != 0);
8061 rm -f conftest$ac_exeext
8062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8063 (eval $ac_link) 2>&5
8065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8066 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071 (exit $ac_status); }; }; then
8072 gt_cv_func_printf_posix=yes
8074 echo "$as_me: program exited with status $ac_status" >&5
8075 echo "$as_me: failed program was:" >&5
8076 sed 's/^/| /' conftest.$ac_ext >&5
8079 gt_cv_func_printf_posix=no
8081 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8085 echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
8086 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6
8087 case $gt_cv_func_printf_posix in
8090 cat >>confdefs.h <<\_ACEOF
8091 #define HAVE_POSIX_PRINTF 1
8097 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8098 # for constant arguments. Useless!
8099 echo "$as_me:$LINENO: checking for working alloca.h" >&5
8100 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
8101 if test "${ac_cv_working_alloca_h+set}" = set; then
8102 echo $ECHO_N "(cached) $ECHO_C" >&6
8104 cat >conftest.$ac_ext <<_ACEOF
8107 cat confdefs.h >>conftest.$ac_ext
8108 cat >>conftest.$ac_ext <<_ACEOF
8109 /* end confdefs.h. */
8114 char *p = (char *) alloca (2 * sizeof (int));
8119 rm -f conftest.$ac_objext conftest$ac_exeext
8120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8121 (eval $ac_link) 2>conftest.er1
8123 grep -v '^ *+' conftest.er1 >conftest.err
8125 cat conftest.err >&5
8126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127 (exit $ac_status); } &&
8128 { ac_try='test -z "$ac_c_werror_flag"
8129 || test ! -s conftest.err'
8130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134 (exit $ac_status); }; } &&
8135 { ac_try='test -s conftest$ac_exeext'
8136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140 (exit $ac_status); }; }; then
8141 ac_cv_working_alloca_h=yes
8143 echo "$as_me: failed program was:" >&5
8144 sed 's/^/| /' conftest.$ac_ext >&5
8146 ac_cv_working_alloca_h=no
8148 rm -f conftest.err conftest.$ac_objext \
8149 conftest$ac_exeext conftest.$ac_ext
8151 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8152 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
8153 if test $ac_cv_working_alloca_h = yes; then
8155 cat >>confdefs.h <<\_ACEOF
8156 #define HAVE_ALLOCA_H 1
8161 echo "$as_me:$LINENO: checking for alloca" >&5
8162 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
8163 if test "${ac_cv_func_alloca_works+set}" = set; then
8164 echo $ECHO_N "(cached) $ECHO_C" >&6
8166 cat >conftest.$ac_ext <<_ACEOF
8169 cat confdefs.h >>conftest.$ac_ext
8170 cat >>conftest.$ac_ext <<_ACEOF
8171 /* end confdefs.h. */
8173 # define alloca __builtin_alloca
8176 # include <malloc.h>
8177 # define alloca _alloca
8180 # include <alloca.h>
8185 # ifndef alloca /* predefined by HP cc +Olibcalls */
8196 char *p = (char *) alloca (1);
8201 rm -f conftest.$ac_objext conftest$ac_exeext
8202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8203 (eval $ac_link) 2>conftest.er1
8205 grep -v '^ *+' conftest.er1 >conftest.err
8207 cat conftest.err >&5
8208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209 (exit $ac_status); } &&
8210 { ac_try='test -z "$ac_c_werror_flag"
8211 || test ! -s conftest.err'
8212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8216 (exit $ac_status); }; } &&
8217 { ac_try='test -s conftest$ac_exeext'
8218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222 (exit $ac_status); }; }; then
8223 ac_cv_func_alloca_works=yes
8225 echo "$as_me: failed program was:" >&5
8226 sed 's/^/| /' conftest.$ac_ext >&5
8228 ac_cv_func_alloca_works=no
8230 rm -f conftest.err conftest.$ac_objext \
8231 conftest$ac_exeext conftest.$ac_ext
8233 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8234 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
8236 if test $ac_cv_func_alloca_works = yes; then
8238 cat >>confdefs.h <<\_ACEOF
8239 #define HAVE_ALLOCA 1
8243 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8244 # that cause trouble. Some versions do not even contain alloca or
8245 # contain a buggy version. If you still want to use their alloca,
8246 # use ar to extract alloca.o from them instead of compiling alloca.c.
8248 ALLOCA=alloca.$ac_objext
8250 cat >>confdefs.h <<\_ACEOF
8255 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8256 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
8257 if test "${ac_cv_os_cray+set}" = set; then
8258 echo $ECHO_N "(cached) $ECHO_C" >&6
8260 cat >conftest.$ac_ext <<_ACEOF
8263 cat confdefs.h >>conftest.$ac_ext
8264 cat >>conftest.$ac_ext <<_ACEOF
8265 /* end confdefs.h. */
8266 #if defined(CRAY) && ! defined(CRAY2)
8273 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8274 $EGREP "webecray" >/dev/null 2>&1; then
8282 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8283 echo "${ECHO_T}$ac_cv_os_cray" >&6
8284 if test $ac_cv_os_cray = yes; then
8285 for ac_func in _getb67 GETB67 getb67; do
8286 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8287 echo "$as_me:$LINENO: checking for $ac_func" >&5
8288 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8289 if eval "test \"\${$as_ac_var+set}\" = set"; then
8290 echo $ECHO_N "(cached) $ECHO_C" >&6
8292 cat >conftest.$ac_ext <<_ACEOF
8295 cat confdefs.h >>conftest.$ac_ext
8296 cat >>conftest.$ac_ext <<_ACEOF
8297 /* end confdefs.h. */
8298 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8299 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8300 #define $ac_func innocuous_$ac_func
8302 /* System header to define __stub macros and hopefully few prototypes,
8303 which can conflict with char $ac_func (); below.
8304 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8305 <limits.h> exists even on freestanding compilers. */
8308 # include <limits.h>
8310 # include <assert.h>
8315 /* Override any gcc2 internal prototype to avoid an error. */
8320 /* We use char because int might match the return type of a gcc2
8321 builtin and then its argument prototype would still apply. */
8323 /* The GNU C library defines this for functions which it implements
8324 to always fail with ENOSYS. Some functions are actually named
8325 something starting with __ and the normal name is an alias. */
8326 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8329 char (*f) () = $ac_func;
8338 return f != $ac_func;
8343 rm -f conftest.$ac_objext conftest$ac_exeext
8344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8345 (eval $ac_link) 2>conftest.er1
8347 grep -v '^ *+' conftest.er1 >conftest.err
8349 cat conftest.err >&5
8350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351 (exit $ac_status); } &&
8352 { ac_try='test -z "$ac_c_werror_flag"
8353 || test ! -s conftest.err'
8354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8358 (exit $ac_status); }; } &&
8359 { ac_try='test -s conftest$ac_exeext'
8360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364 (exit $ac_status); }; }; then
8365 eval "$as_ac_var=yes"
8367 echo "$as_me: failed program was:" >&5
8368 sed 's/^/| /' conftest.$ac_ext >&5
8370 eval "$as_ac_var=no"
8372 rm -f conftest.err conftest.$ac_objext \
8373 conftest$ac_exeext conftest.$ac_ext
8375 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8376 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8377 if test `eval echo '${'$as_ac_var'}'` = yes; then
8379 cat >>confdefs.h <<_ACEOF
8380 #define CRAY_STACKSEG_END $ac_func
8389 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8390 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
8391 if test "${ac_cv_c_stack_direction+set}" = set; then
8392 echo $ECHO_N "(cached) $ECHO_C" >&6
8394 if test "$cross_compiling" = yes; then
8395 ac_cv_c_stack_direction=0
8397 cat >conftest.$ac_ext <<_ACEOF
8400 cat confdefs.h >>conftest.$ac_ext
8401 cat >>conftest.$ac_ext <<_ACEOF
8402 /* end confdefs.h. */
8404 find_stack_direction ()
8406 static char *addr = 0;
8411 return find_stack_direction ();
8414 return (&dummy > addr) ? 1 : -1;
8420 exit (find_stack_direction () < 0);
8423 rm -f conftest$ac_exeext
8424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8425 (eval $ac_link) 2>&5
8427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8428 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8433 (exit $ac_status); }; }; then
8434 ac_cv_c_stack_direction=1
8436 echo "$as_me: program exited with status $ac_status" >&5
8437 echo "$as_me: failed program was:" >&5
8438 sed 's/^/| /' conftest.$ac_ext >&5
8441 ac_cv_c_stack_direction=-1
8443 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8446 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8447 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
8449 cat >>confdefs.h <<_ACEOF
8450 #define STACK_DIRECTION $ac_cv_c_stack_direction
8458 for ac_header in stdlib.h unistd.h
8460 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8461 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8462 echo "$as_me:$LINENO: checking for $ac_header" >&5
8463 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8464 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8465 echo $ECHO_N "(cached) $ECHO_C" >&6
8467 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8468 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8470 # Is the header compilable?
8471 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8472 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8473 cat >conftest.$ac_ext <<_ACEOF
8476 cat confdefs.h >>conftest.$ac_ext
8477 cat >>conftest.$ac_ext <<_ACEOF
8478 /* end confdefs.h. */
8479 $ac_includes_default
8480 #include <$ac_header>
8482 rm -f conftest.$ac_objext
8483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8484 (eval $ac_compile) 2>conftest.er1
8486 grep -v '^ *+' conftest.er1 >conftest.err
8488 cat conftest.err >&5
8489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8490 (exit $ac_status); } &&
8491 { ac_try='test -z "$ac_c_werror_flag"
8492 || test ! -s conftest.err'
8493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497 (exit $ac_status); }; } &&
8498 { ac_try='test -s conftest.$ac_objext'
8499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503 (exit $ac_status); }; }; then
8504 ac_header_compiler=yes
8506 echo "$as_me: failed program was:" >&5
8507 sed 's/^/| /' conftest.$ac_ext >&5
8509 ac_header_compiler=no
8511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8512 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8513 echo "${ECHO_T}$ac_header_compiler" >&6
8515 # Is the header present?
8516 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8517 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8518 cat >conftest.$ac_ext <<_ACEOF
8521 cat confdefs.h >>conftest.$ac_ext
8522 cat >>conftest.$ac_ext <<_ACEOF
8523 /* end confdefs.h. */
8524 #include <$ac_header>
8526 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8527 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8529 grep -v '^ *+' conftest.er1 >conftest.err
8531 cat conftest.err >&5
8532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533 (exit $ac_status); } >/dev/null; then
8534 if test -s conftest.err; then
8535 ac_cpp_err=$ac_c_preproc_warn_flag
8536 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8543 if test -z "$ac_cpp_err"; then
8544 ac_header_preproc=yes
8546 echo "$as_me: failed program was:" >&5
8547 sed 's/^/| /' conftest.$ac_ext >&5
8549 ac_header_preproc=no
8551 rm -f conftest.err conftest.$ac_ext
8552 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8553 echo "${ECHO_T}$ac_header_preproc" >&6
8555 # So? What about this header?
8556 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8558 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8559 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8560 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8561 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8562 ac_header_preproc=yes
8565 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8566 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8567 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8568 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8569 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8570 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8571 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8572 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8573 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8574 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8575 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8576 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8579 ## ------------------------------------------ ##
8580 ## Report this to the AC_PACKAGE_NAME lists. ##
8581 ## ------------------------------------------ ##
8584 sed "s/^/$as_me: WARNING: /" >&2
8587 echo "$as_me:$LINENO: checking for $ac_header" >&5
8588 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8589 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8590 echo $ECHO_N "(cached) $ECHO_C" >&6
8592 eval "$as_ac_Header=\$ac_header_preproc"
8594 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8595 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8598 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8599 cat >>confdefs.h <<_ACEOF
8600 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8608 for ac_func in getpagesize
8610 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8611 echo "$as_me:$LINENO: checking for $ac_func" >&5
8612 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8613 if eval "test \"\${$as_ac_var+set}\" = set"; then
8614 echo $ECHO_N "(cached) $ECHO_C" >&6
8616 cat >conftest.$ac_ext <<_ACEOF
8619 cat confdefs.h >>conftest.$ac_ext
8620 cat >>conftest.$ac_ext <<_ACEOF
8621 /* end confdefs.h. */
8622 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8623 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8624 #define $ac_func innocuous_$ac_func
8626 /* System header to define __stub macros and hopefully few prototypes,
8627 which can conflict with char $ac_func (); below.
8628 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8629 <limits.h> exists even on freestanding compilers. */
8632 # include <limits.h>
8634 # include <assert.h>
8639 /* Override any gcc2 internal prototype to avoid an error. */
8644 /* We use char because int might match the return type of a gcc2
8645 builtin and then its argument prototype would still apply. */
8647 /* The GNU C library defines this for functions which it implements
8648 to always fail with ENOSYS. Some functions are actually named
8649 something starting with __ and the normal name is an alias. */
8650 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8653 char (*f) () = $ac_func;
8662 return f != $ac_func;
8667 rm -f conftest.$ac_objext conftest$ac_exeext
8668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8669 (eval $ac_link) 2>conftest.er1
8671 grep -v '^ *+' conftest.er1 >conftest.err
8673 cat conftest.err >&5
8674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8675 (exit $ac_status); } &&
8676 { ac_try='test -z "$ac_c_werror_flag"
8677 || test ! -s conftest.err'
8678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8682 (exit $ac_status); }; } &&
8683 { ac_try='test -s conftest$ac_exeext'
8684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8688 (exit $ac_status); }; }; then
8689 eval "$as_ac_var=yes"
8691 echo "$as_me: failed program was:" >&5
8692 sed 's/^/| /' conftest.$ac_ext >&5
8694 eval "$as_ac_var=no"
8696 rm -f conftest.err conftest.$ac_objext \
8697 conftest$ac_exeext conftest.$ac_ext
8699 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8700 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8701 if test `eval echo '${'$as_ac_var'}'` = yes; then
8702 cat >>confdefs.h <<_ACEOF
8703 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8709 echo "$as_me:$LINENO: checking for working mmap" >&5
8710 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8711 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8712 echo $ECHO_N "(cached) $ECHO_C" >&6
8714 if test "$cross_compiling" = yes; then
8715 ac_cv_func_mmap_fixed_mapped=no
8717 cat >conftest.$ac_ext <<_ACEOF
8720 cat confdefs.h >>conftest.$ac_ext
8721 cat >>conftest.$ac_ext <<_ACEOF
8722 /* end confdefs.h. */
8723 $ac_includes_default
8724 /* malloc might have been renamed as rpl_malloc. */
8727 /* Thanks to Mike Haertel and Jim Avera for this test.
8728 Here is a matrix of mmap possibilities:
8729 mmap private not fixed
8730 mmap private fixed at somewhere currently unmapped
8731 mmap private fixed at somewhere already mapped
8732 mmap shared not fixed
8733 mmap shared fixed at somewhere currently unmapped
8734 mmap shared fixed at somewhere already mapped
8735 For private mappings, we should verify that changes cannot be read()
8736 back from the file, nor mmap's back from the file at a different
8737 address. (There have been systems where private was not correctly
8738 implemented like the infamous i386 svr4.0, and systems where the
8739 VM page cache was not coherent with the file system buffer cache
8740 like early versions of FreeBSD and possibly contemporary NetBSD.)
8741 For shared mappings, we should conversely verify that changes get
8742 propagated back to all the places they're supposed to be.
8744 Grep wants private fixed already mapped.
8745 The main things grep needs to know about mmap are:
8746 * does it exist and is it safe to write into the mmap'd area
8747 * how to use it (BSD variants) */
8750 #include <sys/mman.h>
8752 #if !STDC_HEADERS && !HAVE_STDLIB_H
8756 /* This mess was copied from the GNU getpagesize.h. */
8757 #if !HAVE_GETPAGESIZE
8758 /* Assume that all systems that can run configure have sys/param.h. */
8759 # if !HAVE_SYS_PARAM_H
8760 # define HAVE_SYS_PARAM_H 1
8763 # ifdef _SC_PAGESIZE
8764 # define getpagesize() sysconf(_SC_PAGESIZE)
8765 # else /* no _SC_PAGESIZE */
8766 # if HAVE_SYS_PARAM_H
8767 # include <sys/param.h>
8768 # ifdef EXEC_PAGESIZE
8769 # define getpagesize() EXEC_PAGESIZE
8770 # else /* no EXEC_PAGESIZE */
8772 # define getpagesize() NBPG * CLSIZE
8775 # endif /* no CLSIZE */
8776 # else /* no NBPG */
8778 # define getpagesize() NBPC
8779 # else /* no NBPC */
8781 # define getpagesize() PAGESIZE
8782 # endif /* PAGESIZE */
8783 # endif /* no NBPC */
8784 # endif /* no NBPG */
8785 # endif /* no EXEC_PAGESIZE */
8786 # else /* no HAVE_SYS_PARAM_H */
8787 # define getpagesize() 8192 /* punt totally */
8788 # endif /* no HAVE_SYS_PARAM_H */
8789 # endif /* no _SC_PAGESIZE */
8791 #endif /* no HAVE_GETPAGESIZE */
8796 char *data, *data2, *data3;
8800 pagesize = getpagesize ();
8802 /* First, make a file with some known garbage in it. */
8803 data = (char *) malloc (pagesize);
8806 for (i = 0; i < pagesize; ++i)
8807 *(data + i) = rand ();
8809 fd = creat ("conftest.mmap", 0600);
8812 if (write (fd, data, pagesize) != pagesize)
8816 /* Next, try to mmap the file at a fixed address which already has
8817 something else allocated at it. If we can, also make sure that
8818 we see the same garbage. */
8819 fd = open ("conftest.mmap", O_RDWR);
8822 data2 = (char *) malloc (2 * pagesize);
8825 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
8826 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8827 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8829 for (i = 0; i < pagesize; ++i)
8830 if (*(data + i) != *(data2 + i))
8833 /* Finally, make sure that changes to the mapped area do not
8834 percolate back to the file as seen by read(). (This is a bug on
8835 some variants of i386 svr4.0.) */
8836 for (i = 0; i < pagesize; ++i)
8837 *(data2 + i) = *(data2 + i) + 1;
8838 data3 = (char *) malloc (pagesize);
8841 if (read (fd, data3, pagesize) != pagesize)
8843 for (i = 0; i < pagesize; ++i)
8844 if (*(data + i) != *(data3 + i))
8850 rm -f conftest$ac_exeext
8851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8852 (eval $ac_link) 2>&5
8854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8855 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860 (exit $ac_status); }; }; then
8861 ac_cv_func_mmap_fixed_mapped=yes
8863 echo "$as_me: program exited with status $ac_status" >&5
8864 echo "$as_me: failed program was:" >&5
8865 sed 's/^/| /' conftest.$ac_ext >&5
8868 ac_cv_func_mmap_fixed_mapped=no
8870 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8873 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8874 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
8875 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8877 cat >>confdefs.h <<\_ACEOF
8885 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
8886 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
8887 if test "${ac_cv_gnu_library_2_1+set}" = set; then
8888 echo $ECHO_N "(cached) $ECHO_C" >&6
8890 cat >conftest.$ac_ext <<_ACEOF
8893 cat confdefs.h >>conftest.$ac_ext
8894 cat >>conftest.$ac_ext <<_ACEOF
8895 /* end confdefs.h. */
8897 #include <features.h>
8898 #ifdef __GNU_LIBRARY__
8899 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
8905 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8906 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
8907 ac_cv_gnu_library_2_1=yes
8909 ac_cv_gnu_library_2_1=no
8916 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
8917 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
8919 GLIBC21="$ac_cv_gnu_library_2_1"
8924 echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
8925 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
8926 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
8927 echo $ECHO_N "(cached) $ECHO_C" >&6
8930 if test "$cross_compiling" = yes; then
8932 # Guess based on the CPU.
8934 alpha* | i3456786 | m68k | s390*)
8935 gt_cv_int_divbyzero_sigfpe="guessing yes";;
8937 gt_cv_int_divbyzero_sigfpe="guessing no";;
8941 cat >conftest.$ac_ext <<_ACEOF
8944 cat confdefs.h >>conftest.$ac_ext
8945 cat >>conftest.$ac_ext <<_ACEOF
8946 /* end confdefs.h. */
8953 sigfpe_handler (int sig)
8955 sigfpe_handler (sig) int sig;
8958 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
8959 exit (sig != SIGFPE);
8969 signal (SIGFPE, sigfpe_handler);
8970 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
8971 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
8972 signal (SIGTRAP, sigfpe_handler);
8974 /* Linux/SPARC yields signal SIGILL. */
8975 #if defined (__sparc__) && defined (__linux__)
8976 signal (SIGILL, sigfpe_handler);
8985 rm -f conftest$ac_exeext
8986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8987 (eval $ac_link) 2>&5
8989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8990 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8995 (exit $ac_status); }; }; then
8996 gt_cv_int_divbyzero_sigfpe=yes
8998 echo "$as_me: program exited with status $ac_status" >&5
8999 echo "$as_me: failed program was:" >&5
9000 sed 's/^/| /' conftest.$ac_ext >&5
9003 gt_cv_int_divbyzero_sigfpe=no
9005 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9009 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
9010 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
9011 case "$gt_cv_int_divbyzero_sigfpe" in
9016 cat >>confdefs.h <<_ACEOF
9017 #define INTDIV0_RAISES_SIGFPE $value
9022 echo "$as_me:$LINENO: checking for unsigned long long" >&5
9023 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
9024 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
9025 echo $ECHO_N "(cached) $ECHO_C" >&6
9027 cat >conftest.$ac_ext <<_ACEOF
9030 cat confdefs.h >>conftest.$ac_ext
9031 cat >>conftest.$ac_ext <<_ACEOF
9032 /* end confdefs.h. */
9033 unsigned long long ull = 1ULL; int i = 63;
9037 unsigned long long ullmax = (unsigned long long) -1;
9038 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
9043 rm -f conftest.$ac_objext conftest$ac_exeext
9044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9045 (eval $ac_link) 2>conftest.er1
9047 grep -v '^ *+' conftest.er1 >conftest.err
9049 cat conftest.err >&5
9050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051 (exit $ac_status); } &&
9052 { ac_try='test -z "$ac_c_werror_flag"
9053 || test ! -s conftest.err'
9054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9058 (exit $ac_status); }; } &&
9059 { ac_try='test -s conftest$ac_exeext'
9060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9064 (exit $ac_status); }; }; then
9065 ac_cv_type_unsigned_long_long=yes
9067 echo "$as_me: failed program was:" >&5
9068 sed 's/^/| /' conftest.$ac_ext >&5
9070 ac_cv_type_unsigned_long_long=no
9072 rm -f conftest.err conftest.$ac_objext \
9073 conftest$ac_exeext conftest.$ac_ext
9075 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
9076 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
9077 if test $ac_cv_type_unsigned_long_long = yes; then
9079 cat >>confdefs.h <<\_ACEOF
9080 #define HAVE_UNSIGNED_LONG_LONG 1
9088 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
9090 test $ac_cv_type_unsigned_long_long = yes \
9091 && ac_type='unsigned long long' \
9092 || ac_type='unsigned long'
9094 cat >>confdefs.h <<_ACEOF
9095 #define uintmax_t $ac_type
9100 cat >>confdefs.h <<\_ACEOF
9101 #define HAVE_UINTMAX_T 1
9107 echo "$as_me:$LINENO: checking for inttypes.h" >&5
9108 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
9109 if test "${gt_cv_header_inttypes_h+set}" = set; then
9110 echo $ECHO_N "(cached) $ECHO_C" >&6
9113 cat >conftest.$ac_ext <<_ACEOF
9116 cat confdefs.h >>conftest.$ac_ext
9117 cat >>conftest.$ac_ext <<_ACEOF
9118 /* end confdefs.h. */
9119 #include <sys/types.h>
9120 #include <inttypes.h>
9129 rm -f conftest.$ac_objext
9130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9131 (eval $ac_compile) 2>conftest.er1
9133 grep -v '^ *+' conftest.er1 >conftest.err
9135 cat conftest.err >&5
9136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9137 (exit $ac_status); } &&
9138 { ac_try='test -z "$ac_c_werror_flag"
9139 || test ! -s conftest.err'
9140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9144 (exit $ac_status); }; } &&
9145 { ac_try='test -s conftest.$ac_objext'
9146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9150 (exit $ac_status); }; }; then
9151 gt_cv_header_inttypes_h=yes
9153 echo "$as_me: failed program was:" >&5
9154 sed 's/^/| /' conftest.$ac_ext >&5
9156 gt_cv_header_inttypes_h=no
9158 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9161 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
9162 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
9163 if test $gt_cv_header_inttypes_h = yes; then
9165 cat >>confdefs.h <<_ACEOF
9166 #define HAVE_INTTYPES_H 1
9173 if test $gt_cv_header_inttypes_h = yes; then
9174 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
9175 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
9176 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
9177 echo $ECHO_N "(cached) $ECHO_C" >&6
9180 cat >conftest.$ac_ext <<_ACEOF
9183 cat confdefs.h >>conftest.$ac_ext
9184 cat >>conftest.$ac_ext <<_ACEOF
9185 /* end confdefs.h. */
9186 #include <inttypes.h>
9199 rm -f conftest.$ac_objext
9200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9201 (eval $ac_compile) 2>conftest.er1
9203 grep -v '^ *+' conftest.er1 >conftest.err
9205 cat conftest.err >&5
9206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207 (exit $ac_status); } &&
9208 { ac_try='test -z "$ac_c_werror_flag"
9209 || test ! -s conftest.err'
9210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9214 (exit $ac_status); }; } &&
9215 { ac_try='test -s conftest.$ac_objext'
9216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9220 (exit $ac_status); }; }; then
9221 gt_cv_inttypes_pri_broken=no
9223 echo "$as_me: failed program was:" >&5
9224 sed 's/^/| /' conftest.$ac_ext >&5
9226 gt_cv_inttypes_pri_broken=yes
9228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9231 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
9232 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
9234 if test "$gt_cv_inttypes_pri_broken" = yes; then
9236 cat >>confdefs.h <<_ACEOF
9237 #define PRI_MACROS_BROKEN 1
9244 for ac_header in stdint.h
9246 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9247 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9248 echo "$as_me:$LINENO: checking for $ac_header" >&5
9249 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9250 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9251 echo $ECHO_N "(cached) $ECHO_C" >&6
9253 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9254 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9256 # Is the header compilable?
9257 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9258 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9259 cat >conftest.$ac_ext <<_ACEOF
9262 cat confdefs.h >>conftest.$ac_ext
9263 cat >>conftest.$ac_ext <<_ACEOF
9264 /* end confdefs.h. */
9265 $ac_includes_default
9266 #include <$ac_header>
9268 rm -f conftest.$ac_objext
9269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9270 (eval $ac_compile) 2>conftest.er1
9272 grep -v '^ *+' conftest.er1 >conftest.err
9274 cat conftest.err >&5
9275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9276 (exit $ac_status); } &&
9277 { ac_try='test -z "$ac_c_werror_flag"
9278 || test ! -s conftest.err'
9279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9283 (exit $ac_status); }; } &&
9284 { ac_try='test -s conftest.$ac_objext'
9285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9289 (exit $ac_status); }; }; then
9290 ac_header_compiler=yes
9292 echo "$as_me: failed program was:" >&5
9293 sed 's/^/| /' conftest.$ac_ext >&5
9295 ac_header_compiler=no
9297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9298 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9299 echo "${ECHO_T}$ac_header_compiler" >&6
9301 # Is the header present?
9302 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9303 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9304 cat >conftest.$ac_ext <<_ACEOF
9307 cat confdefs.h >>conftest.$ac_ext
9308 cat >>conftest.$ac_ext <<_ACEOF
9309 /* end confdefs.h. */
9310 #include <$ac_header>
9312 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9313 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9315 grep -v '^ *+' conftest.er1 >conftest.err
9317 cat conftest.err >&5
9318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9319 (exit $ac_status); } >/dev/null; then
9320 if test -s conftest.err; then
9321 ac_cpp_err=$ac_c_preproc_warn_flag
9322 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9329 if test -z "$ac_cpp_err"; then
9330 ac_header_preproc=yes
9332 echo "$as_me: failed program was:" >&5
9333 sed 's/^/| /' conftest.$ac_ext >&5
9335 ac_header_preproc=no
9337 rm -f conftest.err conftest.$ac_ext
9338 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9339 echo "${ECHO_T}$ac_header_preproc" >&6
9341 # So? What about this header?
9342 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9344 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9345 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9346 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9347 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9348 ac_header_preproc=yes
9351 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9352 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9353 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9354 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9355 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9356 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9357 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9358 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9359 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9360 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9361 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9362 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9365 ## ------------------------------------------ ##
9366 ## Report this to the AC_PACKAGE_NAME lists. ##
9367 ## ------------------------------------------ ##
9370 sed "s/^/$as_me: WARNING: /" >&2
9373 echo "$as_me:$LINENO: checking for $ac_header" >&5
9374 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9375 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9376 echo $ECHO_N "(cached) $ECHO_C" >&6
9378 eval "$as_ac_Header=\$ac_header_preproc"
9380 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9381 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9384 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9385 cat >>confdefs.h <<_ACEOF
9386 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9393 echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
9394 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6
9396 cat >conftest.$ac_ext <<_ACEOF
9399 cat confdefs.h >>conftest.$ac_ext
9400 cat >>conftest.$ac_ext <<_ACEOF
9401 /* end confdefs.h. */
9412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9413 $EGREP "Found it" >/dev/null 2>&1; then
9418 if test -z "$result"; then
9419 if test "$cross_compiling" = yes; then
9420 # Depending upon the size, compute the lo and hi bounds.
9421 cat >conftest.$ac_ext <<_ACEOF
9424 cat confdefs.h >>conftest.$ac_ext
9425 cat >>conftest.$ac_ext <<_ACEOF
9426 /* end confdefs.h. */
9431 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
9438 rm -f conftest.$ac_objext
9439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9440 (eval $ac_compile) 2>conftest.er1
9442 grep -v '^ *+' conftest.er1 >conftest.err
9444 cat conftest.err >&5
9445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9446 (exit $ac_status); } &&
9447 { ac_try='test -z "$ac_c_werror_flag"
9448 || test ! -s conftest.err'
9449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9453 (exit $ac_status); }; } &&
9454 { ac_try='test -s conftest.$ac_objext'
9455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9459 (exit $ac_status); }; }; then
9462 cat >conftest.$ac_ext <<_ACEOF
9465 cat confdefs.h >>conftest.$ac_ext
9466 cat >>conftest.$ac_ext <<_ACEOF
9467 /* end confdefs.h. */
9472 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
9479 rm -f conftest.$ac_objext
9480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9481 (eval $ac_compile) 2>conftest.er1
9483 grep -v '^ *+' conftest.er1 >conftest.err
9485 cat conftest.err >&5
9486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9487 (exit $ac_status); } &&
9488 { ac_try='test -z "$ac_c_werror_flag"
9489 || test ! -s conftest.err'
9490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9494 (exit $ac_status); }; } &&
9495 { ac_try='test -s conftest.$ac_objext'
9496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9500 (exit $ac_status); }; }; then
9501 ac_hi=$ac_mid; break
9503 echo "$as_me: failed program was:" >&5
9504 sed 's/^/| /' conftest.$ac_ext >&5
9506 ac_lo=`expr $ac_mid + 1`
9507 if test $ac_lo -le $ac_mid; then
9511 ac_mid=`expr 2 '*' $ac_mid + 1`
9513 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9516 echo "$as_me: failed program was:" >&5
9517 sed 's/^/| /' conftest.$ac_ext >&5
9519 cat >conftest.$ac_ext <<_ACEOF
9522 cat confdefs.h >>conftest.$ac_ext
9523 cat >>conftest.$ac_ext <<_ACEOF
9524 /* end confdefs.h. */
9529 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
9536 rm -f conftest.$ac_objext
9537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9538 (eval $ac_compile) 2>conftest.er1
9540 grep -v '^ *+' conftest.er1 >conftest.err
9542 cat conftest.err >&5
9543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9544 (exit $ac_status); } &&
9545 { ac_try='test -z "$ac_c_werror_flag"
9546 || test ! -s conftest.err'
9547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9551 (exit $ac_status); }; } &&
9552 { ac_try='test -s conftest.$ac_objext'
9553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9557 (exit $ac_status); }; }; then
9560 cat >conftest.$ac_ext <<_ACEOF
9563 cat confdefs.h >>conftest.$ac_ext
9564 cat >>conftest.$ac_ext <<_ACEOF
9565 /* end confdefs.h. */
9570 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
9577 rm -f conftest.$ac_objext
9578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9579 (eval $ac_compile) 2>conftest.er1
9581 grep -v '^ *+' conftest.er1 >conftest.err
9583 cat conftest.err >&5
9584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9585 (exit $ac_status); } &&
9586 { ac_try='test -z "$ac_c_werror_flag"
9587 || test ! -s conftest.err'
9588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9592 (exit $ac_status); }; } &&
9593 { ac_try='test -s conftest.$ac_objext'
9594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9598 (exit $ac_status); }; }; then
9599 ac_lo=$ac_mid; break
9601 echo "$as_me: failed program was:" >&5
9602 sed 's/^/| /' conftest.$ac_ext >&5
9604 ac_hi=`expr '(' $ac_mid ')' - 1`
9605 if test $ac_mid -le $ac_hi; then
9609 ac_mid=`expr 2 '*' $ac_mid`
9611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9614 echo "$as_me: failed program was:" >&5
9615 sed 's/^/| /' conftest.$ac_ext >&5
9619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9622 # Binary search between lo and hi bounds.
9623 while test "x$ac_lo" != "x$ac_hi"; do
9624 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9625 cat >conftest.$ac_ext <<_ACEOF
9628 cat confdefs.h >>conftest.$ac_ext
9629 cat >>conftest.$ac_ext <<_ACEOF
9630 /* end confdefs.h. */
9635 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
9642 rm -f conftest.$ac_objext
9643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9644 (eval $ac_compile) 2>conftest.er1
9646 grep -v '^ *+' conftest.er1 >conftest.err
9648 cat conftest.err >&5
9649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9650 (exit $ac_status); } &&
9651 { ac_try='test -z "$ac_c_werror_flag"
9652 || test ! -s conftest.err'
9653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9657 (exit $ac_status); }; } &&
9658 { ac_try='test -s conftest.$ac_objext'
9659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663 (exit $ac_status); }; }; then
9666 echo "$as_me: failed program was:" >&5
9667 sed 's/^/| /' conftest.$ac_ext >&5
9669 ac_lo=`expr '(' $ac_mid ')' + 1`
9671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9678 if test "$cross_compiling" = yes; then
9679 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9680 See \`config.log' for more details." >&5
9681 echo "$as_me: error: cannot run test program while cross compiling
9682 See \`config.log' for more details." >&2;}
9683 { (exit 1); exit 1; }; }
9685 cat >conftest.$ac_ext <<_ACEOF
9688 cat confdefs.h >>conftest.$ac_ext
9689 cat >>conftest.$ac_ext <<_ACEOF
9690 /* end confdefs.h. */
9692 long longval () { return ~(size_t)0 / 10; }
9693 unsigned long ulongval () { return ~(size_t)0 / 10; }
9700 FILE *f = fopen ("conftest.val", "w");
9703 if ((~(size_t)0 / 10) < 0)
9705 long i = longval ();
9706 if (i != (~(size_t)0 / 10))
9708 fprintf (f, "%ld\n", i);
9712 unsigned long i = ulongval ();
9713 if (i != (~(size_t)0 / 10))
9715 fprintf (f, "%lu\n", i);
9717 exit (ferror (f) || fclose (f) != 0);
9723 rm -f conftest$ac_exeext
9724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9725 (eval $ac_link) 2>&5
9727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9728 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733 (exit $ac_status); }; }; then
9734 res_hi=`cat conftest.val`
9736 echo "$as_me: program exited with status $ac_status" >&5
9737 echo "$as_me: failed program was:" >&5
9738 sed 's/^/| /' conftest.$ac_ext >&5
9743 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9747 if test "$cross_compiling" = yes; then
9748 # Depending upon the size, compute the lo and hi bounds.
9749 cat >conftest.$ac_ext <<_ACEOF
9752 cat confdefs.h >>conftest.$ac_ext
9753 cat >>conftest.$ac_ext <<_ACEOF
9754 /* end confdefs.h. */
9759 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
9766 rm -f conftest.$ac_objext
9767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9768 (eval $ac_compile) 2>conftest.er1
9770 grep -v '^ *+' conftest.er1 >conftest.err
9772 cat conftest.err >&5
9773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774 (exit $ac_status); } &&
9775 { ac_try='test -z "$ac_c_werror_flag"
9776 || test ! -s conftest.err'
9777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781 (exit $ac_status); }; } &&
9782 { ac_try='test -s conftest.$ac_objext'
9783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787 (exit $ac_status); }; }; then
9790 cat >conftest.$ac_ext <<_ACEOF
9793 cat confdefs.h >>conftest.$ac_ext
9794 cat >>conftest.$ac_ext <<_ACEOF
9795 /* end confdefs.h. */
9800 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
9807 rm -f conftest.$ac_objext
9808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9809 (eval $ac_compile) 2>conftest.er1
9811 grep -v '^ *+' conftest.er1 >conftest.err
9813 cat conftest.err >&5
9814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9815 (exit $ac_status); } &&
9816 { ac_try='test -z "$ac_c_werror_flag"
9817 || test ! -s conftest.err'
9818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822 (exit $ac_status); }; } &&
9823 { ac_try='test -s conftest.$ac_objext'
9824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828 (exit $ac_status); }; }; then
9829 ac_hi=$ac_mid; break
9831 echo "$as_me: failed program was:" >&5
9832 sed 's/^/| /' conftest.$ac_ext >&5
9834 ac_lo=`expr $ac_mid + 1`
9835 if test $ac_lo -le $ac_mid; then
9839 ac_mid=`expr 2 '*' $ac_mid + 1`
9841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9844 echo "$as_me: failed program was:" >&5
9845 sed 's/^/| /' conftest.$ac_ext >&5
9847 cat >conftest.$ac_ext <<_ACEOF
9850 cat confdefs.h >>conftest.$ac_ext
9851 cat >>conftest.$ac_ext <<_ACEOF
9852 /* end confdefs.h. */
9857 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
9864 rm -f conftest.$ac_objext
9865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9866 (eval $ac_compile) 2>conftest.er1
9868 grep -v '^ *+' conftest.er1 >conftest.err
9870 cat conftest.err >&5
9871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872 (exit $ac_status); } &&
9873 { ac_try='test -z "$ac_c_werror_flag"
9874 || test ! -s conftest.err'
9875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879 (exit $ac_status); }; } &&
9880 { ac_try='test -s conftest.$ac_objext'
9881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9885 (exit $ac_status); }; }; then
9888 cat >conftest.$ac_ext <<_ACEOF
9891 cat confdefs.h >>conftest.$ac_ext
9892 cat >>conftest.$ac_ext <<_ACEOF
9893 /* end confdefs.h. */
9898 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
9905 rm -f conftest.$ac_objext
9906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9907 (eval $ac_compile) 2>conftest.er1
9909 grep -v '^ *+' conftest.er1 >conftest.err
9911 cat conftest.err >&5
9912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913 (exit $ac_status); } &&
9914 { ac_try='test -z "$ac_c_werror_flag"
9915 || test ! -s conftest.err'
9916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9920 (exit $ac_status); }; } &&
9921 { ac_try='test -s conftest.$ac_objext'
9922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926 (exit $ac_status); }; }; then
9927 ac_lo=$ac_mid; break
9929 echo "$as_me: failed program was:" >&5
9930 sed 's/^/| /' conftest.$ac_ext >&5
9932 ac_hi=`expr '(' $ac_mid ')' - 1`
9933 if test $ac_mid -le $ac_hi; then
9937 ac_mid=`expr 2 '*' $ac_mid`
9939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9942 echo "$as_me: failed program was:" >&5
9943 sed 's/^/| /' conftest.$ac_ext >&5
9947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9949 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9950 # Binary search between lo and hi bounds.
9951 while test "x$ac_lo" != "x$ac_hi"; do
9952 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9953 cat >conftest.$ac_ext <<_ACEOF
9956 cat confdefs.h >>conftest.$ac_ext
9957 cat >>conftest.$ac_ext <<_ACEOF
9958 /* end confdefs.h. */
9963 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
9970 rm -f conftest.$ac_objext
9971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9972 (eval $ac_compile) 2>conftest.er1
9974 grep -v '^ *+' conftest.er1 >conftest.err
9976 cat conftest.err >&5
9977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978 (exit $ac_status); } &&
9979 { ac_try='test -z "$ac_c_werror_flag"
9980 || test ! -s conftest.err'
9981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9985 (exit $ac_status); }; } &&
9986 { ac_try='test -s conftest.$ac_objext'
9987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991 (exit $ac_status); }; }; then
9994 echo "$as_me: failed program was:" >&5
9995 sed 's/^/| /' conftest.$ac_ext >&5
9997 ac_lo=`expr '(' $ac_mid ')' + 1`
9999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10002 ?*) res_lo=$ac_lo;;
10006 if test "$cross_compiling" = yes; then
10007 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10008 See \`config.log' for more details." >&5
10009 echo "$as_me: error: cannot run test program while cross compiling
10010 See \`config.log' for more details." >&2;}
10011 { (exit 1); exit 1; }; }
10013 cat >conftest.$ac_ext <<_ACEOF
10016 cat confdefs.h >>conftest.$ac_ext
10017 cat >>conftest.$ac_ext <<_ACEOF
10018 /* end confdefs.h. */
10019 #include <stddef.h>
10020 long longval () { return ~(size_t)0 % 10; }
10021 unsigned long ulongval () { return ~(size_t)0 % 10; }
10023 #include <stdlib.h>
10028 FILE *f = fopen ("conftest.val", "w");
10031 if ((~(size_t)0 % 10) < 0)
10033 long i = longval ();
10034 if (i != (~(size_t)0 % 10))
10036 fprintf (f, "%ld\n", i);
10040 unsigned long i = ulongval ();
10041 if (i != (~(size_t)0 % 10))
10043 fprintf (f, "%lu\n", i);
10045 exit (ferror (f) || fclose (f) != 0);
10051 rm -f conftest$ac_exeext
10052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10053 (eval $ac_link) 2>&5
10055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10058 (eval $ac_try) 2>&5
10060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061 (exit $ac_status); }; }; then
10062 res_lo=`cat conftest.val`
10064 echo "$as_me: program exited with status $ac_status" >&5
10065 echo "$as_me: failed program was:" >&5
10066 sed 's/^/| /' conftest.$ac_ext >&5
10068 ( exit $ac_status )
10071 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10075 if test "$cross_compiling" = yes; then
10076 # Depending upon the size, compute the lo and hi bounds.
10077 cat >conftest.$ac_ext <<_ACEOF
10080 cat confdefs.h >>conftest.$ac_ext
10081 cat >>conftest.$ac_ext <<_ACEOF
10082 /* end confdefs.h. */
10083 #include <stddef.h>
10087 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
10094 rm -f conftest.$ac_objext
10095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10096 (eval $ac_compile) 2>conftest.er1
10098 grep -v '^ *+' conftest.er1 >conftest.err
10100 cat conftest.err >&5
10101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10102 (exit $ac_status); } &&
10103 { ac_try='test -z "$ac_c_werror_flag"
10104 || test ! -s conftest.err'
10105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10106 (eval $ac_try) 2>&5
10108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10109 (exit $ac_status); }; } &&
10110 { ac_try='test -s conftest.$ac_objext'
10111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10112 (eval $ac_try) 2>&5
10114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10115 (exit $ac_status); }; }; then
10118 cat >conftest.$ac_ext <<_ACEOF
10121 cat confdefs.h >>conftest.$ac_ext
10122 cat >>conftest.$ac_ext <<_ACEOF
10123 /* end confdefs.h. */
10124 #include <stddef.h>
10128 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10135 rm -f conftest.$ac_objext
10136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10137 (eval $ac_compile) 2>conftest.er1
10139 grep -v '^ *+' conftest.er1 >conftest.err
10141 cat conftest.err >&5
10142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143 (exit $ac_status); } &&
10144 { ac_try='test -z "$ac_c_werror_flag"
10145 || test ! -s conftest.err'
10146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10147 (eval $ac_try) 2>&5
10149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150 (exit $ac_status); }; } &&
10151 { ac_try='test -s conftest.$ac_objext'
10152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10153 (eval $ac_try) 2>&5
10155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156 (exit $ac_status); }; }; then
10157 ac_hi=$ac_mid; break
10159 echo "$as_me: failed program was:" >&5
10160 sed 's/^/| /' conftest.$ac_ext >&5
10162 ac_lo=`expr $ac_mid + 1`
10163 if test $ac_lo -le $ac_mid; then
10167 ac_mid=`expr 2 '*' $ac_mid + 1`
10169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10172 echo "$as_me: failed program was:" >&5
10173 sed 's/^/| /' conftest.$ac_ext >&5
10175 cat >conftest.$ac_ext <<_ACEOF
10178 cat confdefs.h >>conftest.$ac_ext
10179 cat >>conftest.$ac_ext <<_ACEOF
10180 /* end confdefs.h. */
10181 #include <stddef.h>
10185 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
10192 rm -f conftest.$ac_objext
10193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10194 (eval $ac_compile) 2>conftest.er1
10196 grep -v '^ *+' conftest.er1 >conftest.err
10198 cat conftest.err >&5
10199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200 (exit $ac_status); } &&
10201 { ac_try='test -z "$ac_c_werror_flag"
10202 || test ! -s conftest.err'
10203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10204 (eval $ac_try) 2>&5
10206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207 (exit $ac_status); }; } &&
10208 { ac_try='test -s conftest.$ac_objext'
10209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10210 (eval $ac_try) 2>&5
10212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213 (exit $ac_status); }; }; then
10216 cat >conftest.$ac_ext <<_ACEOF
10219 cat confdefs.h >>conftest.$ac_ext
10220 cat >>conftest.$ac_ext <<_ACEOF
10221 /* end confdefs.h. */
10222 #include <stddef.h>
10226 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
10233 rm -f conftest.$ac_objext
10234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10235 (eval $ac_compile) 2>conftest.er1
10237 grep -v '^ *+' conftest.er1 >conftest.err
10239 cat conftest.err >&5
10240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241 (exit $ac_status); } &&
10242 { ac_try='test -z "$ac_c_werror_flag"
10243 || test ! -s conftest.err'
10244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10245 (eval $ac_try) 2>&5
10247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248 (exit $ac_status); }; } &&
10249 { ac_try='test -s conftest.$ac_objext'
10250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10251 (eval $ac_try) 2>&5
10253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254 (exit $ac_status); }; }; then
10255 ac_lo=$ac_mid; break
10257 echo "$as_me: failed program was:" >&5
10258 sed 's/^/| /' conftest.$ac_ext >&5
10260 ac_hi=`expr '(' $ac_mid ')' - 1`
10261 if test $ac_mid -le $ac_hi; then
10265 ac_mid=`expr 2 '*' $ac_mid`
10267 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10270 echo "$as_me: failed program was:" >&5
10271 sed 's/^/| /' conftest.$ac_ext >&5
10275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10278 # Binary search between lo and hi bounds.
10279 while test "x$ac_lo" != "x$ac_hi"; do
10280 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10281 cat >conftest.$ac_ext <<_ACEOF
10284 cat confdefs.h >>conftest.$ac_ext
10285 cat >>conftest.$ac_ext <<_ACEOF
10286 /* end confdefs.h. */
10287 #include <stddef.h>
10291 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10298 rm -f conftest.$ac_objext
10299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10300 (eval $ac_compile) 2>conftest.er1
10302 grep -v '^ *+' conftest.er1 >conftest.err
10304 cat conftest.err >&5
10305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10306 (exit $ac_status); } &&
10307 { ac_try='test -z "$ac_c_werror_flag"
10308 || test ! -s conftest.err'
10309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10310 (eval $ac_try) 2>&5
10312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10313 (exit $ac_status); }; } &&
10314 { ac_try='test -s conftest.$ac_objext'
10315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10316 (eval $ac_try) 2>&5
10318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10319 (exit $ac_status); }; }; then
10322 echo "$as_me: failed program was:" >&5
10323 sed 's/^/| /' conftest.$ac_ext >&5
10325 ac_lo=`expr '(' $ac_mid ')' + 1`
10327 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10330 ?*) fits_in_uint=$ac_lo;;
10334 if test "$cross_compiling" = yes; then
10335 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10336 See \`config.log' for more details." >&5
10337 echo "$as_me: error: cannot run test program while cross compiling
10338 See \`config.log' for more details." >&2;}
10339 { (exit 1); exit 1; }; }
10341 cat >conftest.$ac_ext <<_ACEOF
10344 cat confdefs.h >>conftest.$ac_ext
10345 cat >>conftest.$ac_ext <<_ACEOF
10346 /* end confdefs.h. */
10347 #include <stddef.h>
10348 long longval () { return sizeof (size_t) <= sizeof (unsigned int); }
10349 unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
10351 #include <stdlib.h>
10356 FILE *f = fopen ("conftest.val", "w");
10359 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
10361 long i = longval ();
10362 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
10364 fprintf (f, "%ld\n", i);
10368 unsigned long i = ulongval ();
10369 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
10371 fprintf (f, "%lu\n", i);
10373 exit (ferror (f) || fclose (f) != 0);
10379 rm -f conftest$ac_exeext
10380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10381 (eval $ac_link) 2>&5
10383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10386 (eval $ac_try) 2>&5
10388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10389 (exit $ac_status); }; }; then
10390 fits_in_uint=`cat conftest.val`
10392 echo "$as_me: program exited with status $ac_status" >&5
10393 echo "$as_me: failed program was:" >&5
10394 sed 's/^/| /' conftest.$ac_ext >&5
10396 ( exit $ac_status )
10399 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10403 if test "$fits_in_uint" = 1; then
10404 cat >conftest.$ac_ext <<_ACEOF
10407 cat confdefs.h >>conftest.$ac_ext
10408 cat >>conftest.$ac_ext <<_ACEOF
10409 /* end confdefs.h. */
10410 #include <stddef.h>
10412 extern unsigned long foo;
10422 rm -f conftest.$ac_objext
10423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10424 (eval $ac_compile) 2>conftest.er1
10426 grep -v '^ *+' conftest.er1 >conftest.err
10428 cat conftest.err >&5
10429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10430 (exit $ac_status); } &&
10431 { ac_try='test -z "$ac_c_werror_flag"
10432 || test ! -s conftest.err'
10433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10434 (eval $ac_try) 2>&5
10436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10437 (exit $ac_status); }; } &&
10438 { ac_try='test -s conftest.$ac_objext'
10439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10440 (eval $ac_try) 2>&5
10442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443 (exit $ac_status); }; }; then
10446 echo "$as_me: failed program was:" >&5
10447 sed 's/^/| /' conftest.$ac_ext >&5
10450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10452 if test -z "$result"; then
10453 if test "$fits_in_uint" = 1; then
10454 result="$res_hi$res_lo"U
10456 result="$res_hi$res_lo"UL
10459 result='~(size_t)0'
10462 echo "$as_me:$LINENO: result: $result" >&5
10463 echo "${ECHO_T}$result" >&6
10464 if test "$result" != yes; then
10466 cat >>confdefs.h <<_ACEOF
10467 #define SIZE_MAX $result
10476 for ac_header in stdint.h
10478 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10479 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10480 echo "$as_me:$LINENO: checking for $ac_header" >&5
10481 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10482 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10483 echo $ECHO_N "(cached) $ECHO_C" >&6
10485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10486 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10488 # Is the header compilable?
10489 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10490 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10491 cat >conftest.$ac_ext <<_ACEOF
10494 cat confdefs.h >>conftest.$ac_ext
10495 cat >>conftest.$ac_ext <<_ACEOF
10496 /* end confdefs.h. */
10497 $ac_includes_default
10498 #include <$ac_header>
10500 rm -f conftest.$ac_objext
10501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10502 (eval $ac_compile) 2>conftest.er1
10504 grep -v '^ *+' conftest.er1 >conftest.err
10506 cat conftest.err >&5
10507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10508 (exit $ac_status); } &&
10509 { ac_try='test -z "$ac_c_werror_flag"
10510 || test ! -s conftest.err'
10511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10512 (eval $ac_try) 2>&5
10514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10515 (exit $ac_status); }; } &&
10516 { ac_try='test -s conftest.$ac_objext'
10517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10518 (eval $ac_try) 2>&5
10520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521 (exit $ac_status); }; }; then
10522 ac_header_compiler=yes
10524 echo "$as_me: failed program was:" >&5
10525 sed 's/^/| /' conftest.$ac_ext >&5
10527 ac_header_compiler=no
10529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10530 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10531 echo "${ECHO_T}$ac_header_compiler" >&6
10533 # Is the header present?
10534 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10535 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10536 cat >conftest.$ac_ext <<_ACEOF
10539 cat confdefs.h >>conftest.$ac_ext
10540 cat >>conftest.$ac_ext <<_ACEOF
10541 /* end confdefs.h. */
10542 #include <$ac_header>
10544 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10545 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10547 grep -v '^ *+' conftest.er1 >conftest.err
10549 cat conftest.err >&5
10550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10551 (exit $ac_status); } >/dev/null; then
10552 if test -s conftest.err; then
10553 ac_cpp_err=$ac_c_preproc_warn_flag
10554 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10561 if test -z "$ac_cpp_err"; then
10562 ac_header_preproc=yes
10564 echo "$as_me: failed program was:" >&5
10565 sed 's/^/| /' conftest.$ac_ext >&5
10567 ac_header_preproc=no
10569 rm -f conftest.err conftest.$ac_ext
10570 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10571 echo "${ECHO_T}$ac_header_preproc" >&6
10573 # So? What about this header?
10574 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10576 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10577 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10578 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10579 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10580 ac_header_preproc=yes
10583 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10584 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10585 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10586 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10587 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10588 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10589 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10590 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10591 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10592 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10593 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10594 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10597 ## ------------------------------------------ ##
10598 ## Report this to the AC_PACKAGE_NAME lists. ##
10599 ## ------------------------------------------ ##
10602 sed "s/^/$as_me: WARNING: /" >&2
10605 echo "$as_me:$LINENO: checking for $ac_header" >&5
10606 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10607 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10608 echo $ECHO_N "(cached) $ECHO_C" >&6
10610 eval "$as_ac_Header=\$ac_header_preproc"
10612 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10613 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10616 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10617 cat >>confdefs.h <<_ACEOF
10618 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10632 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
10633 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
10634 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
10635 echo $ECHO_N "(cached) $ECHO_C" >&6
10637 cat >conftest.$ac_ext <<_ACEOF
10640 cat confdefs.h >>conftest.$ac_ext
10641 cat >>conftest.$ac_ext <<_ACEOF
10642 /* end confdefs.h. */
10643 $ac_includes_default
10647 if ((ptrdiff_t *) 0)
10649 if (sizeof (ptrdiff_t))
10655 rm -f conftest.$ac_objext
10656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10657 (eval $ac_compile) 2>conftest.er1
10659 grep -v '^ *+' conftest.er1 >conftest.err
10661 cat conftest.err >&5
10662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663 (exit $ac_status); } &&
10664 { ac_try='test -z "$ac_c_werror_flag"
10665 || test ! -s conftest.err'
10666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10667 (eval $ac_try) 2>&5
10669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10670 (exit $ac_status); }; } &&
10671 { ac_try='test -s conftest.$ac_objext'
10672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10673 (eval $ac_try) 2>&5
10675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10676 (exit $ac_status); }; }; then
10677 ac_cv_type_ptrdiff_t=yes
10679 echo "$as_me: failed program was:" >&5
10680 sed 's/^/| /' conftest.$ac_ext >&5
10682 ac_cv_type_ptrdiff_t=no
10684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10686 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
10687 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
10688 if test $ac_cv_type_ptrdiff_t = yes; then
10692 cat >>confdefs.h <<\_ACEOF
10693 #define ptrdiff_t long
10709 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
10710 stdlib.h string.h unistd.h sys/param.h
10712 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10713 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10714 echo "$as_me:$LINENO: checking for $ac_header" >&5
10715 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10716 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10717 echo $ECHO_N "(cached) $ECHO_C" >&6
10719 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10720 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10722 # Is the header compilable?
10723 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10724 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10725 cat >conftest.$ac_ext <<_ACEOF
10728 cat confdefs.h >>conftest.$ac_ext
10729 cat >>conftest.$ac_ext <<_ACEOF
10730 /* end confdefs.h. */
10731 $ac_includes_default
10732 #include <$ac_header>
10734 rm -f conftest.$ac_objext
10735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10736 (eval $ac_compile) 2>conftest.er1
10738 grep -v '^ *+' conftest.er1 >conftest.err
10740 cat conftest.err >&5
10741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10742 (exit $ac_status); } &&
10743 { ac_try='test -z "$ac_c_werror_flag"
10744 || test ! -s conftest.err'
10745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10746 (eval $ac_try) 2>&5
10748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10749 (exit $ac_status); }; } &&
10750 { ac_try='test -s conftest.$ac_objext'
10751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10752 (eval $ac_try) 2>&5
10754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10755 (exit $ac_status); }; }; then
10756 ac_header_compiler=yes
10758 echo "$as_me: failed program was:" >&5
10759 sed 's/^/| /' conftest.$ac_ext >&5
10761 ac_header_compiler=no
10763 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10764 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10765 echo "${ECHO_T}$ac_header_compiler" >&6
10767 # Is the header present?
10768 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10769 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10770 cat >conftest.$ac_ext <<_ACEOF
10773 cat confdefs.h >>conftest.$ac_ext
10774 cat >>conftest.$ac_ext <<_ACEOF
10775 /* end confdefs.h. */
10776 #include <$ac_header>
10778 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10779 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10781 grep -v '^ *+' conftest.er1 >conftest.err
10783 cat conftest.err >&5
10784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785 (exit $ac_status); } >/dev/null; then
10786 if test -s conftest.err; then
10787 ac_cpp_err=$ac_c_preproc_warn_flag
10788 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10795 if test -z "$ac_cpp_err"; then
10796 ac_header_preproc=yes
10798 echo "$as_me: failed program was:" >&5
10799 sed 's/^/| /' conftest.$ac_ext >&5
10801 ac_header_preproc=no
10803 rm -f conftest.err conftest.$ac_ext
10804 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10805 echo "${ECHO_T}$ac_header_preproc" >&6
10807 # So? What about this header?
10808 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10810 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10811 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10812 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10813 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10814 ac_header_preproc=yes
10817 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10818 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10819 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10820 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10821 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10822 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10823 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10824 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10825 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10826 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10827 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10828 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10831 ## ------------------------------------------ ##
10832 ## Report this to the AC_PACKAGE_NAME lists. ##
10833 ## ------------------------------------------ ##
10836 sed "s/^/$as_me: WARNING: /" >&2
10839 echo "$as_me:$LINENO: checking for $ac_header" >&5
10840 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10841 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10842 echo $ECHO_N "(cached) $ECHO_C" >&6
10844 eval "$as_ac_Header=\$ac_header_preproc"
10846 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10847 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10850 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10851 cat >>confdefs.h <<_ACEOF
10852 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10882 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
10883 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
10884 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
10887 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10888 echo "$as_me:$LINENO: checking for $ac_func" >&5
10889 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10890 if eval "test \"\${$as_ac_var+set}\" = set"; then
10891 echo $ECHO_N "(cached) $ECHO_C" >&6
10893 cat >conftest.$ac_ext <<_ACEOF
10896 cat confdefs.h >>conftest.$ac_ext
10897 cat >>conftest.$ac_ext <<_ACEOF
10898 /* end confdefs.h. */
10899 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10900 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10901 #define $ac_func innocuous_$ac_func
10903 /* System header to define __stub macros and hopefully few prototypes,
10904 which can conflict with char $ac_func (); below.
10905 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10906 <limits.h> exists even on freestanding compilers. */
10909 # include <limits.h>
10911 # include <assert.h>
10916 /* Override any gcc2 internal prototype to avoid an error. */
10921 /* We use char because int might match the return type of a gcc2
10922 builtin and then its argument prototype would still apply. */
10924 /* The GNU C library defines this for functions which it implements
10925 to always fail with ENOSYS. Some functions are actually named
10926 something starting with __ and the normal name is an alias. */
10927 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10930 char (*f) () = $ac_func;
10939 return f != $ac_func;
10944 rm -f conftest.$ac_objext conftest$ac_exeext
10945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10946 (eval $ac_link) 2>conftest.er1
10948 grep -v '^ *+' conftest.er1 >conftest.err
10950 cat conftest.err >&5
10951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10952 (exit $ac_status); } &&
10953 { ac_try='test -z "$ac_c_werror_flag"
10954 || test ! -s conftest.err'
10955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10956 (eval $ac_try) 2>&5
10958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10959 (exit $ac_status); }; } &&
10960 { ac_try='test -s conftest$ac_exeext'
10961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10962 (eval $ac_try) 2>&5
10964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10965 (exit $ac_status); }; }; then
10966 eval "$as_ac_var=yes"
10968 echo "$as_me: failed program was:" >&5
10969 sed 's/^/| /' conftest.$ac_ext >&5
10971 eval "$as_ac_var=no"
10973 rm -f conftest.err conftest.$ac_objext \
10974 conftest$ac_exeext conftest.$ac_ext
10976 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10977 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10978 if test `eval echo '${'$as_ac_var'}'` = yes; then
10979 cat >>confdefs.h <<_ACEOF
10980 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10988 echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
10989 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6
10990 if test "${ac_cv_have_decl__snprintf+set}" = set; then
10991 echo $ECHO_N "(cached) $ECHO_C" >&6
10993 cat >conftest.$ac_ext <<_ACEOF
10996 cat confdefs.h >>conftest.$ac_ext
10997 cat >>conftest.$ac_ext <<_ACEOF
10998 /* end confdefs.h. */
11005 char *p = (char *) _snprintf;
11012 rm -f conftest.$ac_objext
11013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11014 (eval $ac_compile) 2>conftest.er1
11016 grep -v '^ *+' conftest.er1 >conftest.err
11018 cat conftest.err >&5
11019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11020 (exit $ac_status); } &&
11021 { ac_try='test -z "$ac_c_werror_flag"
11022 || test ! -s conftest.err'
11023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11024 (eval $ac_try) 2>&5
11026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11027 (exit $ac_status); }; } &&
11028 { ac_try='test -s conftest.$ac_objext'
11029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11030 (eval $ac_try) 2>&5
11032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11033 (exit $ac_status); }; }; then
11034 ac_cv_have_decl__snprintf=yes
11036 echo "$as_me: failed program was:" >&5
11037 sed 's/^/| /' conftest.$ac_ext >&5
11039 ac_cv_have_decl__snprintf=no
11041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11043 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
11044 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6
11045 if test $ac_cv_have_decl__snprintf = yes; then
11051 cat >>confdefs.h <<_ACEOF
11052 #define HAVE_DECL__SNPRINTF $gt_value
11057 echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
11058 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6
11059 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
11060 echo $ECHO_N "(cached) $ECHO_C" >&6
11062 cat >conftest.$ac_ext <<_ACEOF
11065 cat confdefs.h >>conftest.$ac_ext
11066 cat >>conftest.$ac_ext <<_ACEOF
11067 /* end confdefs.h. */
11074 char *p = (char *) _snwprintf;
11081 rm -f conftest.$ac_objext
11082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11083 (eval $ac_compile) 2>conftest.er1
11085 grep -v '^ *+' conftest.er1 >conftest.err
11087 cat conftest.err >&5
11088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11089 (exit $ac_status); } &&
11090 { ac_try='test -z "$ac_c_werror_flag"
11091 || test ! -s conftest.err'
11092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11093 (eval $ac_try) 2>&5
11095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11096 (exit $ac_status); }; } &&
11097 { ac_try='test -s conftest.$ac_objext'
11098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11099 (eval $ac_try) 2>&5
11101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11102 (exit $ac_status); }; }; then
11103 ac_cv_have_decl__snwprintf=yes
11105 echo "$as_me: failed program was:" >&5
11106 sed 's/^/| /' conftest.$ac_ext >&5
11108 ac_cv_have_decl__snwprintf=no
11110 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11112 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
11113 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6
11114 if test $ac_cv_have_decl__snwprintf = yes; then
11120 cat >>confdefs.h <<_ACEOF
11121 #define HAVE_DECL__SNWPRINTF $gt_value
11127 echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
11128 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
11129 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
11130 echo $ECHO_N "(cached) $ECHO_C" >&6
11132 cat >conftest.$ac_ext <<_ACEOF
11135 cat confdefs.h >>conftest.$ac_ext
11136 cat >>conftest.$ac_ext <<_ACEOF
11137 /* end confdefs.h. */
11143 #ifndef feof_unlocked
11144 char *p = (char *) feof_unlocked;
11151 rm -f conftest.$ac_objext
11152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11153 (eval $ac_compile) 2>conftest.er1
11155 grep -v '^ *+' conftest.er1 >conftest.err
11157 cat conftest.err >&5
11158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11159 (exit $ac_status); } &&
11160 { ac_try='test -z "$ac_c_werror_flag"
11161 || test ! -s conftest.err'
11162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11163 (eval $ac_try) 2>&5
11165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11166 (exit $ac_status); }; } &&
11167 { ac_try='test -s conftest.$ac_objext'
11168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11169 (eval $ac_try) 2>&5
11171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11172 (exit $ac_status); }; }; then
11173 ac_cv_have_decl_feof_unlocked=yes
11175 echo "$as_me: failed program was:" >&5
11176 sed 's/^/| /' conftest.$ac_ext >&5
11178 ac_cv_have_decl_feof_unlocked=no
11180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11182 echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
11183 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
11184 if test $ac_cv_have_decl_feof_unlocked = yes; then
11190 cat >>confdefs.h <<_ACEOF
11191 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
11196 echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
11197 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
11198 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
11199 echo $ECHO_N "(cached) $ECHO_C" >&6
11201 cat >conftest.$ac_ext <<_ACEOF
11204 cat confdefs.h >>conftest.$ac_ext
11205 cat >>conftest.$ac_ext <<_ACEOF
11206 /* end confdefs.h. */
11212 #ifndef fgets_unlocked
11213 char *p = (char *) fgets_unlocked;
11220 rm -f conftest.$ac_objext
11221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11222 (eval $ac_compile) 2>conftest.er1
11224 grep -v '^ *+' conftest.er1 >conftest.err
11226 cat conftest.err >&5
11227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11228 (exit $ac_status); } &&
11229 { ac_try='test -z "$ac_c_werror_flag"
11230 || test ! -s conftest.err'
11231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11232 (eval $ac_try) 2>&5
11234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11235 (exit $ac_status); }; } &&
11236 { ac_try='test -s conftest.$ac_objext'
11237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11238 (eval $ac_try) 2>&5
11240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11241 (exit $ac_status); }; }; then
11242 ac_cv_have_decl_fgets_unlocked=yes
11244 echo "$as_me: failed program was:" >&5
11245 sed 's/^/| /' conftest.$ac_ext >&5
11247 ac_cv_have_decl_fgets_unlocked=no
11249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11251 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
11252 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
11253 if test $ac_cv_have_decl_fgets_unlocked = yes; then
11259 cat >>confdefs.h <<_ACEOF
11260 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
11265 echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
11266 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
11267 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
11268 echo $ECHO_N "(cached) $ECHO_C" >&6
11270 cat >conftest.$ac_ext <<_ACEOF
11273 cat confdefs.h >>conftest.$ac_ext
11274 cat >>conftest.$ac_ext <<_ACEOF
11275 /* end confdefs.h. */
11281 #ifndef getc_unlocked
11282 char *p = (char *) getc_unlocked;
11289 rm -f conftest.$ac_objext
11290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11291 (eval $ac_compile) 2>conftest.er1
11293 grep -v '^ *+' conftest.er1 >conftest.err
11295 cat conftest.err >&5
11296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11297 (exit $ac_status); } &&
11298 { ac_try='test -z "$ac_c_werror_flag"
11299 || test ! -s conftest.err'
11300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11301 (eval $ac_try) 2>&5
11303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11304 (exit $ac_status); }; } &&
11305 { ac_try='test -s conftest.$ac_objext'
11306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11307 (eval $ac_try) 2>&5
11309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11310 (exit $ac_status); }; }; then
11311 ac_cv_have_decl_getc_unlocked=yes
11313 echo "$as_me: failed program was:" >&5
11314 sed 's/^/| /' conftest.$ac_ext >&5
11316 ac_cv_have_decl_getc_unlocked=no
11318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11320 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
11321 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
11322 if test $ac_cv_have_decl_getc_unlocked = yes; then
11328 cat >>confdefs.h <<_ACEOF
11329 #define HAVE_DECL_GETC_UNLOCKED $gt_value
11334 case $gt_cv_func_printf_posix in
11335 *yes) HAVE_POSIX_PRINTF=1 ;;
11336 *) HAVE_POSIX_PRINTF=0 ;;
11339 if test "$ac_cv_func_asprintf" = yes; then
11345 if test "$ac_cv_func_snprintf" = yes; then
11351 if test "$ac_cv_func_wprintf" = yes; then
11363 am_save_CPPFLAGS="$CPPFLAGS"
11365 for element in $INCICONV; do
11367 for x in $CPPFLAGS; do
11369 acl_save_prefix="$prefix"
11370 prefix="$acl_final_prefix"
11371 acl_save_exec_prefix="$exec_prefix"
11372 exec_prefix="$acl_final_exec_prefix"
11374 exec_prefix="$acl_save_exec_prefix"
11375 prefix="$acl_save_prefix"
11377 if test "X$x" = "X$element"; then
11382 if test -z "$haveit"; then
11383 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11388 echo "$as_me:$LINENO: checking for iconv" >&5
11389 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
11390 if test "${am_cv_func_iconv+set}" = set; then
11391 echo $ECHO_N "(cached) $ECHO_C" >&6
11394 am_cv_func_iconv="no, consider installing GNU libiconv"
11396 cat >conftest.$ac_ext <<_ACEOF
11399 cat confdefs.h >>conftest.$ac_ext
11400 cat >>conftest.$ac_ext <<_ACEOF
11401 /* end confdefs.h. */
11402 #include <stdlib.h>
11407 iconv_t cd = iconv_open("","");
11408 iconv(cd,NULL,NULL,NULL,NULL);
11414 rm -f conftest.$ac_objext conftest$ac_exeext
11415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11416 (eval $ac_link) 2>conftest.er1
11418 grep -v '^ *+' conftest.er1 >conftest.err
11420 cat conftest.err >&5
11421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11422 (exit $ac_status); } &&
11423 { ac_try='test -z "$ac_c_werror_flag"
11424 || test ! -s conftest.err'
11425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11426 (eval $ac_try) 2>&5
11428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11429 (exit $ac_status); }; } &&
11430 { ac_try='test -s conftest$ac_exeext'
11431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11432 (eval $ac_try) 2>&5
11434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11435 (exit $ac_status); }; }; then
11436 am_cv_func_iconv=yes
11438 echo "$as_me: failed program was:" >&5
11439 sed 's/^/| /' conftest.$ac_ext >&5
11442 rm -f conftest.err conftest.$ac_objext \
11443 conftest$ac_exeext conftest.$ac_ext
11444 if test "$am_cv_func_iconv" != yes; then
11445 am_save_LIBS="$LIBS"
11446 LIBS="$LIBS $LIBICONV"
11447 cat >conftest.$ac_ext <<_ACEOF
11450 cat confdefs.h >>conftest.$ac_ext
11451 cat >>conftest.$ac_ext <<_ACEOF
11452 /* end confdefs.h. */
11453 #include <stdlib.h>
11458 iconv_t cd = iconv_open("","");
11459 iconv(cd,NULL,NULL,NULL,NULL);
11465 rm -f conftest.$ac_objext conftest$ac_exeext
11466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11467 (eval $ac_link) 2>conftest.er1
11469 grep -v '^ *+' conftest.er1 >conftest.err
11471 cat conftest.err >&5
11472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11473 (exit $ac_status); } &&
11474 { ac_try='test -z "$ac_c_werror_flag"
11475 || test ! -s conftest.err'
11476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11477 (eval $ac_try) 2>&5
11479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11480 (exit $ac_status); }; } &&
11481 { ac_try='test -s conftest$ac_exeext'
11482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11483 (eval $ac_try) 2>&5
11485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11486 (exit $ac_status); }; }; then
11487 am_cv_lib_iconv=yes
11488 am_cv_func_iconv=yes
11490 echo "$as_me: failed program was:" >&5
11491 sed 's/^/| /' conftest.$ac_ext >&5
11494 rm -f conftest.err conftest.$ac_objext \
11495 conftest$ac_exeext conftest.$ac_ext
11496 LIBS="$am_save_LIBS"
11500 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11501 echo "${ECHO_T}$am_cv_func_iconv" >&6
11502 if test "$am_cv_func_iconv" = yes; then
11504 cat >>confdefs.h <<\_ACEOF
11505 #define HAVE_ICONV 1
11509 if test "$am_cv_lib_iconv" = yes; then
11510 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11511 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
11512 echo "$as_me:$LINENO: result: $LIBICONV" >&5
11513 echo "${ECHO_T}$LIBICONV" >&6
11515 CPPFLAGS="$am_save_CPPFLAGS"
11522 if test "$am_cv_func_iconv" = yes; then
11523 echo "$as_me:$LINENO: checking for iconv declaration" >&5
11524 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11525 if test "${am_cv_proto_iconv+set}" = set; then
11526 echo $ECHO_N "(cached) $ECHO_C" >&6
11529 cat >conftest.$ac_ext <<_ACEOF
11532 cat confdefs.h >>conftest.$ac_ext
11533 cat >>conftest.$ac_ext <<_ACEOF
11534 /* end confdefs.h. */
11536 #include <stdlib.h>
11542 #if defined(__STDC__) || defined(__cplusplus)
11543 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11556 rm -f conftest.$ac_objext
11557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11558 (eval $ac_compile) 2>conftest.er1
11560 grep -v '^ *+' conftest.er1 >conftest.err
11562 cat conftest.err >&5
11563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11564 (exit $ac_status); } &&
11565 { ac_try='test -z "$ac_c_werror_flag"
11566 || test ! -s conftest.err'
11567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11568 (eval $ac_try) 2>&5
11570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11571 (exit $ac_status); }; } &&
11572 { ac_try='test -s conftest.$ac_objext'
11573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11574 (eval $ac_try) 2>&5
11576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11577 (exit $ac_status); }; }; then
11578 am_cv_proto_iconv_arg1=""
11580 echo "$as_me: failed program was:" >&5
11581 sed 's/^/| /' conftest.$ac_ext >&5
11583 am_cv_proto_iconv_arg1="const"
11585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11586 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);"
11589 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11590 echo "$as_me:$LINENO: result: ${ac_t:-
11591 }$am_cv_proto_iconv" >&5
11592 echo "${ECHO_T}${ac_t:-
11593 }$am_cv_proto_iconv" >&6
11595 cat >>confdefs.h <<_ACEOF
11596 #define ICONV_CONST $am_cv_proto_iconv_arg1
11602 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11603 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11604 if test "${am_cv_langinfo_codeset+set}" = set; then
11605 echo $ECHO_N "(cached) $ECHO_C" >&6
11607 cat >conftest.$ac_ext <<_ACEOF
11610 cat confdefs.h >>conftest.$ac_ext
11611 cat >>conftest.$ac_ext <<_ACEOF
11612 /* end confdefs.h. */
11613 #include <langinfo.h>
11617 char* cs = nl_langinfo(CODESET);
11622 rm -f conftest.$ac_objext conftest$ac_exeext
11623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11624 (eval $ac_link) 2>conftest.er1
11626 grep -v '^ *+' conftest.er1 >conftest.err
11628 cat conftest.err >&5
11629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11630 (exit $ac_status); } &&
11631 { ac_try='test -z "$ac_c_werror_flag"
11632 || test ! -s conftest.err'
11633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11634 (eval $ac_try) 2>&5
11636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11637 (exit $ac_status); }; } &&
11638 { ac_try='test -s conftest$ac_exeext'
11639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11640 (eval $ac_try) 2>&5
11642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11643 (exit $ac_status); }; }; then
11644 am_cv_langinfo_codeset=yes
11646 echo "$as_me: failed program was:" >&5
11647 sed 's/^/| /' conftest.$ac_ext >&5
11649 am_cv_langinfo_codeset=no
11651 rm -f conftest.err conftest.$ac_objext \
11652 conftest$ac_exeext conftest.$ac_ext
11655 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11656 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11657 if test $am_cv_langinfo_codeset = yes; then
11659 cat >>confdefs.h <<\_ACEOF
11660 #define HAVE_LANGINFO_CODESET 1
11665 if test $ac_cv_header_locale_h = yes; then
11667 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11668 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11669 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
11670 echo $ECHO_N "(cached) $ECHO_C" >&6
11672 cat >conftest.$ac_ext <<_ACEOF
11675 cat confdefs.h >>conftest.$ac_ext
11676 cat >>conftest.$ac_ext <<_ACEOF
11677 /* end confdefs.h. */
11678 #include <locale.h>
11687 rm -f conftest.$ac_objext conftest$ac_exeext
11688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11689 (eval $ac_link) 2>conftest.er1
11691 grep -v '^ *+' conftest.er1 >conftest.err
11693 cat conftest.err >&5
11694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11695 (exit $ac_status); } &&
11696 { ac_try='test -z "$ac_c_werror_flag"
11697 || test ! -s conftest.err'
11698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11699 (eval $ac_try) 2>&5
11701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11702 (exit $ac_status); }; } &&
11703 { ac_try='test -s conftest$ac_exeext'
11704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11705 (eval $ac_try) 2>&5
11707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11708 (exit $ac_status); }; }; then
11709 gt_cv_val_LC_MESSAGES=yes
11711 echo "$as_me: failed program was:" >&5
11712 sed 's/^/| /' conftest.$ac_ext >&5
11714 gt_cv_val_LC_MESSAGES=no
11716 rm -f conftest.err conftest.$ac_objext \
11717 conftest$ac_exeext conftest.$ac_ext
11719 echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
11720 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6
11721 if test $gt_cv_val_LC_MESSAGES = yes; then
11723 cat >>confdefs.h <<\_ACEOF
11724 #define HAVE_LC_MESSAGES 1
11731 if test -n "$INTL_MACOSX_LIBS"; then
11732 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
11735 for ac_prog in bison
11737 # Extract the first word of "$ac_prog", so it can be a program name with args.
11738 set dummy $ac_prog; ac_word=$2
11739 echo "$as_me:$LINENO: checking for $ac_word" >&5
11740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11741 if test "${ac_cv_prog_INTLBISON+set}" = set; then
11742 echo $ECHO_N "(cached) $ECHO_C" >&6
11744 if test -n "$INTLBISON"; then
11745 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
11747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11748 for as_dir in $PATH
11751 test -z "$as_dir" && as_dir=.
11752 for ac_exec_ext in '' $ac_executable_extensions; do
11753 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11754 ac_cv_prog_INTLBISON="$ac_prog"
11755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11763 INTLBISON=$ac_cv_prog_INTLBISON
11764 if test -n "$INTLBISON"; then
11765 echo "$as_me:$LINENO: result: $INTLBISON" >&5
11766 echo "${ECHO_T}$INTLBISON" >&6
11768 echo "$as_me:$LINENO: result: no" >&5
11769 echo "${ECHO_T}no" >&6
11772 test -n "$INTLBISON" && break
11775 if test -z "$INTLBISON"; then
11778 echo "$as_me:$LINENO: checking version of bison" >&5
11779 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
11780 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
11781 case $ac_prog_version in
11782 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
11783 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
11784 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
11785 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
11787 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
11788 echo "${ECHO_T}$ac_prog_version" >&6
11790 if test $ac_verc_fail = yes; then
11809 echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
11810 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6
11811 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
11812 echo $ECHO_N "(cached) $ECHO_C" >&6
11814 gt_save_CPPFLAGS="$CPPFLAGS"
11815 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
11816 gt_save_LIBS="$LIBS"
11817 LIBS="$LIBS -framework CoreFoundation"
11818 cat >conftest.$ac_ext <<_ACEOF
11821 cat confdefs.h >>conftest.$ac_ext
11822 cat >>conftest.$ac_ext <<_ACEOF
11823 /* end confdefs.h. */
11824 #include <CFPreferences.h>
11828 CFPreferencesCopyAppValue(NULL, NULL)
11833 rm -f conftest.$ac_objext conftest$ac_exeext
11834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11835 (eval $ac_link) 2>conftest.er1
11837 grep -v '^ *+' conftest.er1 >conftest.err
11839 cat conftest.err >&5
11840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841 (exit $ac_status); } &&
11842 { ac_try='test -z "$ac_c_werror_flag"
11843 || test ! -s conftest.err'
11844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11845 (eval $ac_try) 2>&5
11847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11848 (exit $ac_status); }; } &&
11849 { ac_try='test -s conftest$ac_exeext'
11850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11851 (eval $ac_try) 2>&5
11853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11854 (exit $ac_status); }; }; then
11855 gt_cv_func_CFPreferencesCopyAppValue=yes
11857 echo "$as_me: failed program was:" >&5
11858 sed 's/^/| /' conftest.$ac_ext >&5
11860 gt_cv_func_CFPreferencesCopyAppValue=no
11862 rm -f conftest.err conftest.$ac_objext \
11863 conftest$ac_exeext conftest.$ac_ext
11864 CPPFLAGS="$gt_save_CPPFLAGS"
11865 LIBS="$gt_save_LIBS"
11867 echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
11868 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6
11869 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
11871 cat >>confdefs.h <<\_ACEOF
11872 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
11876 echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
11877 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6
11878 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
11879 echo $ECHO_N "(cached) $ECHO_C" >&6
11881 gt_save_CPPFLAGS="$CPPFLAGS"
11882 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
11883 gt_save_LIBS="$LIBS"
11884 LIBS="$LIBS -framework CoreFoundation"
11885 cat >conftest.$ac_ext <<_ACEOF
11888 cat confdefs.h >>conftest.$ac_ext
11889 cat >>conftest.$ac_ext <<_ACEOF
11890 /* end confdefs.h. */
11891 #include <CFLocale.h>
11895 CFLocaleCopyCurrent();
11900 rm -f conftest.$ac_objext conftest$ac_exeext
11901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11902 (eval $ac_link) 2>conftest.er1
11904 grep -v '^ *+' conftest.er1 >conftest.err
11906 cat conftest.err >&5
11907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908 (exit $ac_status); } &&
11909 { ac_try='test -z "$ac_c_werror_flag"
11910 || test ! -s conftest.err'
11911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11912 (eval $ac_try) 2>&5
11914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915 (exit $ac_status); }; } &&
11916 { ac_try='test -s conftest$ac_exeext'
11917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11918 (eval $ac_try) 2>&5
11920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921 (exit $ac_status); }; }; then
11922 gt_cv_func_CFLocaleCopyCurrent=yes
11924 echo "$as_me: failed program was:" >&5
11925 sed 's/^/| /' conftest.$ac_ext >&5
11927 gt_cv_func_CFLocaleCopyCurrent=no
11929 rm -f conftest.err conftest.$ac_objext \
11930 conftest$ac_exeext conftest.$ac_ext
11931 CPPFLAGS="$gt_save_CPPFLAGS"
11932 LIBS="$gt_save_LIBS"
11934 echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
11935 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6
11936 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
11938 cat >>confdefs.h <<\_ACEOF
11939 #define HAVE_CFLOCALECOPYCURRENT 1
11944 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
11945 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
11951 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
11952 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
11953 # Check whether --enable-nls or --disable-nls was given.
11954 if test "${enable_nls+set}" = set; then
11955 enableval="$enable_nls"
11960 echo "$as_me:$LINENO: result: $USE_NLS" >&5
11961 echo "${ECHO_T}$USE_NLS" >&6
11966 BUILD_INCLUDED_LIBINTL=no
11967 USE_INCLUDED_LIBINTL=no
11973 if test "$USE_NLS" = "yes"; then
11974 gt_use_preinstalled_gnugettext=no
11976 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
11977 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
11979 # Check whether --with-included-gettext or --without-included-gettext was given.
11980 if test "${with_included_gettext+set}" = set; then
11981 withval="$with_included_gettext"
11982 nls_cv_force_use_gnu_gettext=$withval
11984 nls_cv_force_use_gnu_gettext=no
11986 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
11987 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
11989 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
11990 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
11997 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
11998 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
11999 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
12000 echo $ECHO_N "(cached) $ECHO_C" >&6
12002 cat >conftest.$ac_ext <<_ACEOF
12005 cat confdefs.h >>conftest.$ac_ext
12006 cat >>conftest.$ac_ext <<_ACEOF
12007 /* end confdefs.h. */
12008 #include <libintl.h>
12009 extern int _nl_msg_cat_cntr;
12010 extern int *_nl_domain_bindings;
12014 bindtextdomain ("", "");
12015 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
12020 rm -f conftest.$ac_objext conftest$ac_exeext
12021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12022 (eval $ac_link) 2>conftest.er1
12024 grep -v '^ *+' conftest.er1 >conftest.err
12026 cat conftest.err >&5
12027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12028 (exit $ac_status); } &&
12029 { ac_try='test -z "$ac_c_werror_flag"
12030 || test ! -s conftest.err'
12031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12032 (eval $ac_try) 2>&5
12034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035 (exit $ac_status); }; } &&
12036 { ac_try='test -s conftest$ac_exeext'
12037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12038 (eval $ac_try) 2>&5
12040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041 (exit $ac_status); }; }; then
12042 gt_cv_func_gnugettext1_libc=yes
12044 echo "$as_me: failed program was:" >&5
12045 sed 's/^/| /' conftest.$ac_ext >&5
12047 gt_cv_func_gnugettext1_libc=no
12049 rm -f conftest.err conftest.$ac_objext \
12050 conftest$ac_exeext conftest.$ac_ext
12052 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
12053 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
12055 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
12061 acl_save_prefix="$prefix"
12062 prefix="$acl_final_prefix"
12063 acl_save_exec_prefix="$exec_prefix"
12064 exec_prefix="$acl_final_exec_prefix"
12066 eval additional_includedir=\"$includedir\"
12067 eval additional_libdir=\"$libdir\"
12069 exec_prefix="$acl_save_exec_prefix"
12070 prefix="$acl_save_prefix"
12073 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
12074 if test "${with_libintl_prefix+set}" = set; then
12075 withval="$with_libintl_prefix"
12077 if test "X$withval" = "Xno"; then
12080 if test "X$withval" = "X"; then
12082 acl_save_prefix="$prefix"
12083 prefix="$acl_final_prefix"
12084 acl_save_exec_prefix="$exec_prefix"
12085 exec_prefix="$acl_final_exec_prefix"
12087 eval additional_includedir=\"$includedir\"
12088 eval additional_libdir=\"$libdir\"
12090 exec_prefix="$acl_save_exec_prefix"
12091 prefix="$acl_save_prefix"
12094 additional_includedir="$withval/include"
12095 additional_libdir="$withval/lib"
12105 names_already_handled=
12106 names_next_round='intl '
12107 while test -n "$names_next_round"; do
12108 names_this_round="$names_next_round"
12110 for name in $names_this_round; do
12112 for n in $names_already_handled; do
12113 if test "$n" = "$name"; then
12114 already_handled=yes
12118 if test -z "$already_handled"; then
12119 names_already_handled="$names_already_handled $name"
12120 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12121 eval value=\"\$HAVE_LIB$uppername\"
12122 if test -n "$value"; then
12123 if test "$value" = yes; then
12124 eval value=\"\$LIB$uppername\"
12125 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
12126 eval value=\"\$LTLIB$uppername\"
12127 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
12136 if test $use_additional = yes; then
12137 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
12138 found_dir="$additional_libdir"
12139 found_so="$additional_libdir/lib$name.$shlibext"
12140 if test -f "$additional_libdir/lib$name.la"; then
12141 found_la="$additional_libdir/lib$name.la"
12144 if test -f "$additional_libdir/lib$name.$libext"; then
12145 found_dir="$additional_libdir"
12146 found_a="$additional_libdir/lib$name.$libext"
12147 if test -f "$additional_libdir/lib$name.la"; then
12148 found_la="$additional_libdir/lib$name.la"
12153 if test "X$found_dir" = "X"; then
12154 for x in $LDFLAGS $LTLIBINTL; do
12156 acl_save_prefix="$prefix"
12157 prefix="$acl_final_prefix"
12158 acl_save_exec_prefix="$exec_prefix"
12159 exec_prefix="$acl_final_exec_prefix"
12161 exec_prefix="$acl_save_exec_prefix"
12162 prefix="$acl_save_prefix"
12166 dir=`echo "X$x" | sed -e 's/^X-L//'`
12167 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
12169 found_so="$dir/lib$name.$shlibext"
12170 if test -f "$dir/lib$name.la"; then
12171 found_la="$dir/lib$name.la"
12174 if test -f "$dir/lib$name.$libext"; then
12176 found_a="$dir/lib$name.$libext"
12177 if test -f "$dir/lib$name.la"; then
12178 found_la="$dir/lib$name.la"
12184 if test "X$found_dir" != "X"; then
12189 if test "X$found_dir" != "X"; then
12190 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
12191 if test "X$found_so" != "X"; then
12192 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
12193 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12196 for x in $ltrpathdirs; do
12197 if test "X$x" = "X$found_dir"; then
12202 if test -z "$haveit"; then
12203 ltrpathdirs="$ltrpathdirs $found_dir"
12205 if test "$hardcode_direct" = yes; then
12206 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12208 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
12209 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12211 for x in $rpathdirs; do
12212 if test "X$x" = "X$found_dir"; then
12217 if test -z "$haveit"; then
12218 rpathdirs="$rpathdirs $found_dir"
12222 for x in $LDFLAGS $LIBINTL; do
12224 acl_save_prefix="$prefix"
12225 prefix="$acl_final_prefix"
12226 acl_save_exec_prefix="$exec_prefix"
12227 exec_prefix="$acl_final_exec_prefix"
12229 exec_prefix="$acl_save_exec_prefix"
12230 prefix="$acl_save_prefix"
12232 if test "X$x" = "X-L$found_dir"; then
12237 if test -z "$haveit"; then
12238 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
12240 if test "$hardcode_minus_L" != no; then
12241 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12243 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12249 if test "X$found_a" != "X"; then
12250 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
12252 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
12255 additional_includedir=
12256 case "$found_dir" in
12258 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
12259 additional_includedir="$basedir/include"
12262 if test "X$additional_includedir" != "X"; then
12263 if test "X$additional_includedir" != "X/usr/include"; then
12265 if test "X$additional_includedir" = "X/usr/local/include"; then
12266 if test -n "$GCC"; then
12268 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12272 if test -z "$haveit"; then
12273 for x in $CPPFLAGS $INCINTL; do
12275 acl_save_prefix="$prefix"
12276 prefix="$acl_final_prefix"
12277 acl_save_exec_prefix="$exec_prefix"
12278 exec_prefix="$acl_final_exec_prefix"
12280 exec_prefix="$acl_save_exec_prefix"
12281 prefix="$acl_save_prefix"
12283 if test "X$x" = "X-I$additional_includedir"; then
12288 if test -z "$haveit"; then
12289 if test -d "$additional_includedir"; then
12290 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
12296 if test -n "$found_la"; then
12297 save_libdir="$libdir"
12298 case "$found_la" in
12299 */* | *\\*) . "$found_la" ;;
12300 *) . "./$found_la" ;;
12302 libdir="$save_libdir"
12303 for dep in $dependency_libs; do
12306 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12307 if test "X$additional_libdir" != "X/usr/lib"; then
12309 if test "X$additional_libdir" = "X/usr/local/lib"; then
12310 if test -n "$GCC"; then
12312 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12316 if test -z "$haveit"; then
12318 for x in $LDFLAGS $LIBINTL; do
12320 acl_save_prefix="$prefix"
12321 prefix="$acl_final_prefix"
12322 acl_save_exec_prefix="$exec_prefix"
12323 exec_prefix="$acl_final_exec_prefix"
12325 exec_prefix="$acl_save_exec_prefix"
12326 prefix="$acl_save_prefix"
12328 if test "X$x" = "X-L$additional_libdir"; then
12333 if test -z "$haveit"; then
12334 if test -d "$additional_libdir"; then
12335 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
12339 for x in $LDFLAGS $LTLIBINTL; do
12341 acl_save_prefix="$prefix"
12342 prefix="$acl_final_prefix"
12343 acl_save_exec_prefix="$exec_prefix"
12344 exec_prefix="$acl_final_exec_prefix"
12346 exec_prefix="$acl_save_exec_prefix"
12347 prefix="$acl_save_prefix"
12349 if test "X$x" = "X-L$additional_libdir"; then
12354 if test -z "$haveit"; then
12355 if test -d "$additional_libdir"; then
12356 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
12363 dir=`echo "X$dep" | sed -e 's/^X-R//'`
12364 if test "$enable_rpath" != no; then
12366 for x in $rpathdirs; do
12367 if test "X$x" = "X$dir"; then
12372 if test -z "$haveit"; then
12373 rpathdirs="$rpathdirs $dir"
12376 for x in $ltrpathdirs; do
12377 if test "X$x" = "X$dir"; then
12382 if test -z "$haveit"; then
12383 ltrpathdirs="$ltrpathdirs $dir"
12388 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12391 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12394 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
12395 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
12401 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12402 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
12408 if test "X$rpathdirs" != "X"; then
12409 if test -n "$hardcode_libdir_separator"; then
12411 for found_dir in $rpathdirs; do
12412 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
12414 acl_save_libdir="$libdir"
12416 eval flag=\"$hardcode_libdir_flag_spec\"
12417 libdir="$acl_save_libdir"
12418 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12420 for found_dir in $rpathdirs; do
12421 acl_save_libdir="$libdir"
12422 libdir="$found_dir"
12423 eval flag=\"$hardcode_libdir_flag_spec\"
12424 libdir="$acl_save_libdir"
12425 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12429 if test "X$ltrpathdirs" != "X"; then
12430 for found_dir in $ltrpathdirs; do
12431 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
12435 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
12436 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
12437 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
12438 echo $ECHO_N "(cached) $ECHO_C" >&6
12440 gt_save_CPPFLAGS="$CPPFLAGS"
12441 CPPFLAGS="$CPPFLAGS $INCINTL"
12442 gt_save_LIBS="$LIBS"
12443 LIBS="$LIBS $LIBINTL"
12444 cat >conftest.$ac_ext <<_ACEOF
12447 cat confdefs.h >>conftest.$ac_ext
12448 cat >>conftest.$ac_ext <<_ACEOF
12449 /* end confdefs.h. */
12450 #include <libintl.h>
12451 extern int _nl_msg_cat_cntr;
12456 const char *_nl_expand_alias (const char *);
12460 bindtextdomain ("", "");
12461 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
12466 rm -f conftest.$ac_objext conftest$ac_exeext
12467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12468 (eval $ac_link) 2>conftest.er1
12470 grep -v '^ *+' conftest.er1 >conftest.err
12472 cat conftest.err >&5
12473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474 (exit $ac_status); } &&
12475 { ac_try='test -z "$ac_c_werror_flag"
12476 || test ! -s conftest.err'
12477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12478 (eval $ac_try) 2>&5
12480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481 (exit $ac_status); }; } &&
12482 { ac_try='test -s conftest$ac_exeext'
12483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12484 (eval $ac_try) 2>&5
12486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12487 (exit $ac_status); }; }; then
12488 gt_cv_func_gnugettext1_libintl=yes
12490 echo "$as_me: failed program was:" >&5
12491 sed 's/^/| /' conftest.$ac_ext >&5
12493 gt_cv_func_gnugettext1_libintl=no
12495 rm -f conftest.err conftest.$ac_objext \
12496 conftest$ac_exeext conftest.$ac_ext
12497 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
12498 LIBS="$LIBS $LIBICONV"
12499 cat >conftest.$ac_ext <<_ACEOF
12502 cat confdefs.h >>conftest.$ac_ext
12503 cat >>conftest.$ac_ext <<_ACEOF
12504 /* end confdefs.h. */
12505 #include <libintl.h>
12506 extern int _nl_msg_cat_cntr;
12511 const char *_nl_expand_alias (const char *);
12515 bindtextdomain ("", "");
12516 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
12521 rm -f conftest.$ac_objext conftest$ac_exeext
12522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12523 (eval $ac_link) 2>conftest.er1
12525 grep -v '^ *+' conftest.er1 >conftest.err
12527 cat conftest.err >&5
12528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529 (exit $ac_status); } &&
12530 { ac_try='test -z "$ac_c_werror_flag"
12531 || test ! -s conftest.err'
12532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12533 (eval $ac_try) 2>&5
12535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12536 (exit $ac_status); }; } &&
12537 { ac_try='test -s conftest$ac_exeext'
12538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12539 (eval $ac_try) 2>&5
12541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542 (exit $ac_status); }; }; then
12543 LIBINTL="$LIBINTL $LIBICONV"
12544 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
12545 gt_cv_func_gnugettext1_libintl=yes
12548 echo "$as_me: failed program was:" >&5
12549 sed 's/^/| /' conftest.$ac_ext >&5
12552 rm -f conftest.err conftest.$ac_objext \
12553 conftest$ac_exeext conftest.$ac_ext
12555 CPPFLAGS="$gt_save_CPPFLAGS"
12556 LIBS="$gt_save_LIBS"
12558 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
12559 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
12562 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
12563 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
12564 && test "$PACKAGE" != gettext-runtime \
12565 && test "$PACKAGE" != gettext-tools; }; then
12566 gt_use_preinstalled_gnugettext=yes
12574 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
12575 nls_cv_use_gnu_gettext=yes
12579 if test "$nls_cv_use_gnu_gettext" = "yes"; then
12580 BUILD_INCLUDED_LIBINTL=yes
12581 USE_INCLUDED_LIBINTL=yes
12582 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
12583 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
12584 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
12588 if test "$gt_use_preinstalled_gnugettext" = "yes" \
12589 || test "$nls_cv_use_gnu_gettext" = "yes"; then
12594 if test -n "$INTL_MACOSX_LIBS"; then
12595 if test "$gt_use_preinstalled_gnugettext" = "yes" \
12596 || test "$nls_cv_use_gnu_gettext" = "yes"; then
12597 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
12598 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
12602 if test "$gt_use_preinstalled_gnugettext" = "yes" \
12603 || test "$nls_cv_use_gnu_gettext" = "yes"; then
12605 cat >>confdefs.h <<\_ACEOF
12606 #define ENABLE_NLS 1
12614 echo "$as_me:$LINENO: checking whether to use NLS" >&5
12615 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
12616 echo "$as_me:$LINENO: result: $USE_NLS" >&5
12617 echo "${ECHO_T}$USE_NLS" >&6
12618 if test "$USE_NLS" = "yes"; then
12619 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
12620 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
12621 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12622 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
12623 gt_source="external libintl"
12628 gt_source="included intl directory"
12630 echo "$as_me:$LINENO: result: $gt_source" >&5
12631 echo "${ECHO_T}$gt_source" >&6
12634 if test "$USE_NLS" = "yes"; then
12636 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12637 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
12638 echo "$as_me:$LINENO: checking how to link with libintl" >&5
12639 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
12640 echo "$as_me:$LINENO: result: $LIBINTL" >&5
12641 echo "${ECHO_T}$LIBINTL" >&6
12643 for element in $INCINTL; do
12645 for x in $CPPFLAGS; do
12647 acl_save_prefix="$prefix"
12648 prefix="$acl_final_prefix"
12649 acl_save_exec_prefix="$exec_prefix"
12650 exec_prefix="$acl_final_exec_prefix"
12652 exec_prefix="$acl_save_exec_prefix"
12653 prefix="$acl_save_prefix"
12655 if test "X$x" = "X$element"; then
12660 if test -z "$haveit"; then
12661 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12668 cat >>confdefs.h <<\_ACEOF
12669 #define HAVE_GETTEXT 1
12673 cat >>confdefs.h <<\_ACEOF
12674 #define HAVE_DCGETTEXT 1
12683 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
12684 BUILD_INCLUDED_LIBINTL=yes
12691 nls_cv_header_intl=
12692 nls_cv_header_libgt=
12704 if test "$USE_INCLUDED_LIBINTL" = yes; then
12705 INTLOBJS="\$(GETTOBJS)"
12709 INTL_LIBTOOL_SUFFIX_PREFIX=
12713 INTLLIBS="$LIBINTL"
12726 support_postgresql=no
12727 support_smartalloc=yes
12728 support_readline=yes
12732 support_wx_console=no
12737 support_static_tools=no
12738 support_static_fd=no
12739 support_static_sd=no
12740 support_static_dir=no
12741 support_static_cons=no
12743 build_client_only=no
12751 # -------------------------------------------
12752 # gnome (default off)
12753 # -------------------------------------------
12754 # Check whether --enable-gnome or --disable-gnome was given.
12755 if test "${enable_gnome+set}" = set; then
12756 enableval="$enable_gnome"
12757 if test x$enableval = xyes; then
12763 if test x$support_gnome = xyes; then
12764 abc=`$PKGCONFIG --exists libgnomeui-2.0`
12766 if test $pkg = 0; then
12767 GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
12768 GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
12769 GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
12770 GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
12775 GNOME_DIR=src/gnome2-console
12776 gnome_version="Version 2.x"
12778 { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
12779 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
12780 { (exit 1); exit 1; }; }
12785 # -------------------------------------------
12786 # bat (default off)
12787 # -------------------------------------------
12788 # Check whether --enable-bat or --disable-bat was given.
12789 if test "${enable_bat+set}" = set; then
12790 enableval="$enable_bat"
12791 if test x$enableval = xyes; then
12793 cat >>confdefs.h <<\_ACEOF
12802 if test x$support_bat = xyes; then
12803 abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
12805 if test $pkg = 0; then
12806 BAT_DIR=src/qt-console
12808 { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
12809 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
12810 { (exit 1); exit 1; }; }
12815 # If bat is enabled, we need the qwt library
12819 if test x$support_bat = xyes; then
12820 echo "$as_me:$LINENO: checking for qwt support" >&5
12821 echo $ECHO_N "checking for qwt support... $ECHO_C" >&6
12823 # Check whether --with-qwt or --without-qwt was given.
12824 if test "${with_qwt+set}" = set; then
12825 withval="$with_qwt"
12827 case "$with_qwt" in
12831 if test -f ${with_qwt}/include/qwt.h; then
12832 QWT_INC="${with_qwt}/include"
12833 QWT_LDFLAGS="-L${with_qwt}/lib"
12841 # Search in standard places, or --with-qwt not specified
12843 if test x$QWT_INC = x; then
12844 for root in /usr /usr/local; do
12845 for ver in qwt qwt5; do
12846 if test -f ${root}/include/${ver}/qwt.h; then
12847 QWT_INC="${root}/include/${ver}"
12848 if test -d ${root}/lib64/; then
12849 QWT_LDFLAGS="-L${root}/lib64"
12851 QWT_LDFLAGS="-L${root}/lib"
12859 if test x$QWT_INC = x; then
12860 echo "$as_me:$LINENO: result: no" >&5
12861 echo "${ECHO_T}no" >&6
12862 { { echo "$as_me:$LINENO: error: Unable to find qwt package needed by bat" >&5
12863 echo "$as_me: error: Unable to find qwt package needed by bat" >&2;}
12864 { (exit 1); exit 1; }; }
12868 echo "$as_me:$LINENO: result: yes" >&5
12869 echo "${ECHO_T}yes" >&6
12878 # -------------------------------------------
12879 # bwx-console (default off)
12880 # -------------------------------------------
12881 # Check whether --enable-bwx-console or --disable-bwx-console was given.
12882 if test "${enable_bwx_console+set}" = set; then
12883 enableval="$enable_bwx_console"
12884 if test x$enableval = xyes; then
12885 support_wx_console=yes
12890 if test x$support_wx_console = xyes; then
12891 abc=`$WXCONFIG $WXFLAGS --cppflags`
12893 if test $pkg = 0; then
12894 wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
12895 WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
12896 WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
12900 WX_DIR=src/wx-console
12903 echo "wx-config program not found. bwx-console disabled."
12905 support_wx_console=no
12911 # -------------------------------------------
12912 # tray-monitor (default off)
12913 # -------------------------------------------
12914 # Check whether --enable-tray-monitor or --disable-tray-monitor was given.
12915 if test "${enable_tray_monitor+set}" = set; then
12916 enableval="$enable_tray_monitor"
12917 if test x$enableval = xyes; then
12918 support_tray_monitor=yes
12923 if test x$support_tray_monitor = xyes; then
12924 abc=`$PKGCONFIG --exists gtk+-2.0`
12926 if test $pkg = 0; then
12927 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
12928 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
12931 TRAY_MONITOR_DIR=src/tray-monitor
12932 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
12934 if test $pkg = 0; then
12936 cat >>confdefs.h <<\_ACEOF
12937 #define HAVE_GTK_2_4 1
12945 # -------------------------------------------
12946 # smartalloc (default off)
12947 # -------------------------------------------
12948 # Check whether --enable-smartalloc or --disable-smartalloc was given.
12949 if test "${enable_smartalloc+set}" = set; then
12950 enableval="$enable_smartalloc"
12951 if test x$enableval = xno; then
12952 support_smartalloc=no
12956 if test x$support_smartalloc = xyes; then
12958 cat >>confdefs.h <<\_ACEOF
12959 #define SMARTALLOC 1
12964 # -------------------------------------------
12965 # static-tools (default off)
12966 # -------------------------------------------
12967 # Check whether --enable-static-tools or --disable-static-tools was given.
12968 if test "${enable_static_tools+set}" = set; then
12969 enableval="$enable_static_tools"
12970 if test x$enableval = xyes; then
12971 support_static_tools=yes
12976 if test x$support_static_tools = xyes; then
12977 TTOOL_LDFLAGS="-static"
12981 # -------------------------------------------
12982 # static-fd (default off)
12983 # -------------------------------------------
12984 # Check whether --enable-static-fd or --disable-static-fd was given.
12985 if test "${enable_static_fd+set}" = set; then
12986 enableval="$enable_static_fd"
12987 if test x$enableval = xyes; then
12988 support_static_fd=yes
12993 if test x$support_static_fd = xyes; then
12994 STATIC_FD="static-bacula-fd"
12998 # -------------------------------------------
12999 # static-sd (default off)
13000 # -------------------------------------------
13001 # Check whether --enable-static-sd or --disable-static-sd was given.
13002 if test "${enable_static_sd+set}" = set; then
13003 enableval="$enable_static_sd"
13004 if test x$enableval = xyes; then
13005 support_static_sd=yes
13010 if test x$support_static_sd = xyes; then
13011 STATIC_SD="static-bacula-sd"
13015 # -------------------------------------------
13016 # static-dir (default off)
13017 # -------------------------------------------
13018 # Check whether --enable-static-dir or --disable-static-dir was given.
13019 if test "${enable_static_dir+set}" = set; then
13020 enableval="$enable_static_dir"
13021 if test x$enableval = xyes; then
13022 support_static_dir=yes
13027 if test x$support_static_dir = xyes; then
13028 STATIC_DIR="static-bacula-dir"
13032 # -------------------------------------------
13033 # static-cons (default off)
13034 # -------------------------------------------
13035 # Check whether --enable-static-cons or --disable-static-cons was given.
13036 if test "${enable_static_cons+set}" = set; then
13037 enableval="$enable_static_cons"
13038 if test x$enableval = xyes; then
13039 support_static_cons=yes
13046 if test x$support_static_cons = xyes; then
13047 STATIC_CONS="static-bconsole"
13048 STATIC_GNOME_CONS="static-bgnome-console"
13049 STATIC_WX_CONS="static-bwx-console"
13055 # -------------------------------------------
13056 # client_only (default off)
13057 # -------------------------------------------
13058 # Check whether --enable-client-only or --disable-client-only was given.
13059 if test "${enable_client_only+set}" = set; then
13060 enableval="$enable_client_only"
13061 if test x$enableval = xyes; then
13062 build_client_only=yes
13067 if test x$build_client_only = xno; then
13074 # -------------------------------------------
13075 # director (default on)
13076 # -------------------------------------------
13077 # Check whether --enable-build-dird or --disable-build-dird was given.
13078 if test "${enable_build_dird+set}" = set; then
13079 enableval="$enable_build_dird"
13080 if test x$enableval = xno; then
13084 if test x$build_dird = xyes; then
13085 DIRD_DIR="src/dird"
13086 DIR_TOOLS="DIRTOOLS"
13089 DIR_TOOLS="NODIRTOOLS"
13094 # -------------------------------------------
13095 # stored (default on)
13096 # -------------------------------------------
13097 # Check whether --enable-build-stored or --disable-build-stored was given.
13098 if test "${enable_build_stored+set}" = set; then
13099 enableval="$enable_build_stored"
13100 if test x$enableval = xno; then
13104 if test x$build_stored = xyes; then
13105 STORED_DIR="src/stored"
13111 # ---------------------------------------------------
13112 # Check for conio (Bacula readline substitute)(
13113 # ---------------------------------------------------
13114 # this allows you to turn it completely off
13115 # Check whether --enable-conio or --disable-conio was given.
13116 if test "${enable_conio+set}" = set; then
13117 enableval="$enable_conio"
13118 if test x$enableval = xno; then
13125 # ---------------------------------------------------
13126 # Check for IPv6 support
13127 # ---------------------------------------------------
13128 # this allows you to turn it completely off
13130 # Check whether --enable-ipv6 or --disable-ipv6 was given.
13131 if test "${enable_ipv6+set}" = set; then
13132 enableval="$enable_ipv6"
13133 if test x$enableval = xno; then
13139 if test x$support_ipv6 = xyes; then
13140 cat >conftest.$ac_ext <<_ACEOF
13143 cat confdefs.h >>conftest.$ac_ext
13144 cat >>conftest.$ac_ext <<_ACEOF
13145 /* end confdefs.h. */
13146 #include <sys/types.h>
13147 #include <sys/socket.h>
13148 #include <netinet/in.h>
13152 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
13157 rm -f conftest.$ac_objext conftest$ac_exeext
13158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13159 (eval $ac_link) 2>conftest.er1
13161 grep -v '^ *+' conftest.er1 >conftest.err
13163 cat conftest.err >&5
13164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13165 (exit $ac_status); } &&
13166 { ac_try='test -z "$ac_c_werror_flag"
13167 || test ! -s conftest.err'
13168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13169 (eval $ac_try) 2>&5
13171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13172 (exit $ac_status); }; } &&
13173 { ac_try='test -s conftest$ac_exeext'
13174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13175 (eval $ac_try) 2>&5
13177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13178 (exit $ac_status); }; }; then
13181 echo "$as_me: failed program was:" >&5
13182 sed 's/^/| /' conftest.$ac_ext >&5
13186 rm -f conftest.err conftest.$ac_objext \
13187 conftest$ac_exeext conftest.$ac_ext
13190 if test x$support_ipv6 = xyes; then
13192 cat >>confdefs.h <<\_ACEOF
13193 #define HAVE_IPV6 1
13201 if test x$support_conio = xyes; then
13202 if test "${ac_cv_header_termcap_h+set}" = set; then
13203 echo "$as_me:$LINENO: checking for termcap.h" >&5
13204 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
13205 if test "${ac_cv_header_termcap_h+set}" = set; then
13206 echo $ECHO_N "(cached) $ECHO_C" >&6
13208 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
13209 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
13211 # Is the header compilable?
13212 echo "$as_me:$LINENO: checking termcap.h usability" >&5
13213 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
13214 cat >conftest.$ac_ext <<_ACEOF
13217 cat confdefs.h >>conftest.$ac_ext
13218 cat >>conftest.$ac_ext <<_ACEOF
13219 /* end confdefs.h. */
13220 $ac_includes_default
13221 #include <termcap.h>
13223 rm -f conftest.$ac_objext
13224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13225 (eval $ac_compile) 2>conftest.er1
13227 grep -v '^ *+' conftest.er1 >conftest.err
13229 cat conftest.err >&5
13230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13231 (exit $ac_status); } &&
13232 { ac_try='test -z "$ac_c_werror_flag"
13233 || test ! -s conftest.err'
13234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13235 (eval $ac_try) 2>&5
13237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13238 (exit $ac_status); }; } &&
13239 { ac_try='test -s conftest.$ac_objext'
13240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13241 (eval $ac_try) 2>&5
13243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13244 (exit $ac_status); }; }; then
13245 ac_header_compiler=yes
13247 echo "$as_me: failed program was:" >&5
13248 sed 's/^/| /' conftest.$ac_ext >&5
13250 ac_header_compiler=no
13252 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13253 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13254 echo "${ECHO_T}$ac_header_compiler" >&6
13256 # Is the header present?
13257 echo "$as_me:$LINENO: checking termcap.h presence" >&5
13258 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
13259 cat >conftest.$ac_ext <<_ACEOF
13262 cat confdefs.h >>conftest.$ac_ext
13263 cat >>conftest.$ac_ext <<_ACEOF
13264 /* end confdefs.h. */
13265 #include <termcap.h>
13267 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13268 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13270 grep -v '^ *+' conftest.er1 >conftest.err
13272 cat conftest.err >&5
13273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13274 (exit $ac_status); } >/dev/null; then
13275 if test -s conftest.err; then
13276 ac_cpp_err=$ac_c_preproc_warn_flag
13277 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13284 if test -z "$ac_cpp_err"; then
13285 ac_header_preproc=yes
13287 echo "$as_me: failed program was:" >&5
13288 sed 's/^/| /' conftest.$ac_ext >&5
13290 ac_header_preproc=no
13292 rm -f conftest.err conftest.$ac_ext
13293 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13294 echo "${ECHO_T}$ac_header_preproc" >&6
13296 # So? What about this header?
13297 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13299 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
13300 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13301 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
13302 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
13303 ac_header_preproc=yes
13306 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
13307 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
13308 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
13309 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
13310 { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
13311 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
13312 { echo "$as_me:$LINENO: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&5
13313 echo "$as_me: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
13314 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
13315 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
13316 { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
13317 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
13320 ## ------------------------------------------ ##
13321 ## Report this to the AC_PACKAGE_NAME lists. ##
13322 ## ------------------------------------------ ##
13325 sed "s/^/$as_me: WARNING: /" >&2
13328 echo "$as_me:$LINENO: checking for termcap.h" >&5
13329 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
13330 if test "${ac_cv_header_termcap_h+set}" = set; then
13331 echo $ECHO_N "(cached) $ECHO_C" >&6
13333 ac_cv_header_termcap_h=$ac_header_preproc
13335 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
13336 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
13339 if test $ac_cv_header_termcap_h = yes; then
13340 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
13341 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
13342 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
13343 echo $ECHO_N "(cached) $ECHO_C" >&6
13345 ac_check_lib_save_LIBS=$LIBS
13346 LIBS="-ltermcap $LIBS"
13347 cat >conftest.$ac_ext <<_ACEOF
13350 cat confdefs.h >>conftest.$ac_ext
13351 cat >>conftest.$ac_ext <<_ACEOF
13352 /* end confdefs.h. */
13354 /* Override any gcc2 internal prototype to avoid an error. */
13358 /* We use char because int might match the return type of a gcc2
13359 builtin and then its argument prototype would still apply. */
13369 rm -f conftest.$ac_objext conftest$ac_exeext
13370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13371 (eval $ac_link) 2>conftest.er1
13373 grep -v '^ *+' conftest.er1 >conftest.err
13375 cat conftest.err >&5
13376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13377 (exit $ac_status); } &&
13378 { ac_try='test -z "$ac_c_werror_flag"
13379 || test ! -s conftest.err'
13380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13381 (eval $ac_try) 2>&5
13383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13384 (exit $ac_status); }; } &&
13385 { ac_try='test -s conftest$ac_exeext'
13386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13387 (eval $ac_try) 2>&5
13389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13390 (exit $ac_status); }; }; then
13391 ac_cv_lib_termcap_tgetent=yes
13393 echo "$as_me: failed program was:" >&5
13394 sed 's/^/| /' conftest.$ac_ext >&5
13396 ac_cv_lib_termcap_tgetent=no
13398 rm -f conftest.err conftest.$ac_objext \
13399 conftest$ac_exeext conftest.$ac_ext
13400 LIBS=$ac_check_lib_save_LIBS
13402 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
13403 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
13404 if test $ac_cv_lib_termcap_tgetent = yes; then
13405 CONS_LIBS="-ltermcap"
13409 support_readline=no
13411 cat >>confdefs.h <<\_ACEOF
13412 #define HAVE_CONIO 1
13417 echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
13418 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
13419 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
13420 echo $ECHO_N "(cached) $ECHO_C" >&6
13422 ac_check_lib_save_LIBS=$LIBS
13423 LIBS="-lncurses $LIBS"
13424 cat >conftest.$ac_ext <<_ACEOF
13427 cat confdefs.h >>conftest.$ac_ext
13428 cat >>conftest.$ac_ext <<_ACEOF
13429 /* end confdefs.h. */
13431 /* Override any gcc2 internal prototype to avoid an error. */
13435 /* We use char because int might match the return type of a gcc2
13436 builtin and then its argument prototype would still apply. */
13446 rm -f conftest.$ac_objext conftest$ac_exeext
13447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13448 (eval $ac_link) 2>conftest.er1
13450 grep -v '^ *+' conftest.er1 >conftest.err
13452 cat conftest.err >&5
13453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13454 (exit $ac_status); } &&
13455 { ac_try='test -z "$ac_c_werror_flag"
13456 || test ! -s conftest.err'
13457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13458 (eval $ac_try) 2>&5
13460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13461 (exit $ac_status); }; } &&
13462 { ac_try='test -s conftest$ac_exeext'
13463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13464 (eval $ac_try) 2>&5
13466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13467 (exit $ac_status); }; }; then
13468 ac_cv_lib_ncurses_tgetent=yes
13470 echo "$as_me: failed program was:" >&5
13471 sed 's/^/| /' conftest.$ac_ext >&5
13473 ac_cv_lib_ncurses_tgetent=no
13475 rm -f conftest.err conftest.$ac_objext \
13476 conftest$ac_exeext conftest.$ac_ext
13477 LIBS=$ac_check_lib_save_LIBS
13479 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
13480 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
13481 if test $ac_cv_lib_ncurses_tgetent = yes; then
13482 CONS_LIBS="-lncurses"
13486 support_readline=no
13488 cat >>confdefs.h <<\_ACEOF
13489 #define HAVE_CONIO 1
13502 for ac_header in curses.h
13504 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13505 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13506 echo "$as_me:$LINENO: checking for $ac_header" >&5
13507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13508 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13509 echo $ECHO_N "(cached) $ECHO_C" >&6
13511 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13512 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13514 # Is the header compilable?
13515 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13516 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13517 cat >conftest.$ac_ext <<_ACEOF
13520 cat confdefs.h >>conftest.$ac_ext
13521 cat >>conftest.$ac_ext <<_ACEOF
13522 /* end confdefs.h. */
13523 $ac_includes_default
13524 #include <$ac_header>
13526 rm -f conftest.$ac_objext
13527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13528 (eval $ac_compile) 2>conftest.er1
13530 grep -v '^ *+' conftest.er1 >conftest.err
13532 cat conftest.err >&5
13533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13534 (exit $ac_status); } &&
13535 { ac_try='test -z "$ac_c_werror_flag"
13536 || test ! -s conftest.err'
13537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13538 (eval $ac_try) 2>&5
13540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13541 (exit $ac_status); }; } &&
13542 { ac_try='test -s conftest.$ac_objext'
13543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13544 (eval $ac_try) 2>&5
13546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13547 (exit $ac_status); }; }; then
13548 ac_header_compiler=yes
13550 echo "$as_me: failed program was:" >&5
13551 sed 's/^/| /' conftest.$ac_ext >&5
13553 ac_header_compiler=no
13555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13556 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13557 echo "${ECHO_T}$ac_header_compiler" >&6
13559 # Is the header present?
13560 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13561 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13562 cat >conftest.$ac_ext <<_ACEOF
13565 cat confdefs.h >>conftest.$ac_ext
13566 cat >>conftest.$ac_ext <<_ACEOF
13567 /* end confdefs.h. */
13568 #include <$ac_header>
13570 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13571 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13573 grep -v '^ *+' conftest.er1 >conftest.err
13575 cat conftest.err >&5
13576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13577 (exit $ac_status); } >/dev/null; then
13578 if test -s conftest.err; then
13579 ac_cpp_err=$ac_c_preproc_warn_flag
13580 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13587 if test -z "$ac_cpp_err"; then
13588 ac_header_preproc=yes
13590 echo "$as_me: failed program was:" >&5
13591 sed 's/^/| /' conftest.$ac_ext >&5
13593 ac_header_preproc=no
13595 rm -f conftest.err conftest.$ac_ext
13596 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13597 echo "${ECHO_T}$ac_header_preproc" >&6
13599 # So? What about this header?
13600 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13602 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13603 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13604 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13605 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13606 ac_header_preproc=yes
13609 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13610 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13611 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13612 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13613 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13614 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13615 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13616 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13617 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13618 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13619 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13620 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13623 ## ------------------------------------------ ##
13624 ## Report this to the AC_PACKAGE_NAME lists. ##
13625 ## ------------------------------------------ ##
13628 sed "s/^/$as_me: WARNING: /" >&2
13631 echo "$as_me:$LINENO: checking for $ac_header" >&5
13632 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13633 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13634 echo $ECHO_N "(cached) $ECHO_C" >&6
13636 eval "$as_ac_Header=\$ac_header_preproc"
13638 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13639 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13642 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13643 cat >>confdefs.h <<_ACEOF
13644 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13651 echo "$as_me:$LINENO: checking for term.h" >&5
13652 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
13653 if test "${ac_cv_header_term_h+set}" = set; then
13654 echo $ECHO_N "(cached) $ECHO_C" >&6
13656 cat >conftest.$ac_ext <<_ACEOF
13659 cat confdefs.h >>conftest.$ac_ext
13660 cat >>conftest.$ac_ext <<_ACEOF
13661 /* end confdefs.h. */
13663 #include <curses.h>
13669 rm -f conftest.$ac_objext
13670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13671 (eval $ac_compile) 2>conftest.er1
13673 grep -v '^ *+' conftest.er1 >conftest.err
13675 cat conftest.err >&5
13676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13677 (exit $ac_status); } &&
13678 { ac_try='test -z "$ac_c_werror_flag"
13679 || test ! -s conftest.err'
13680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13681 (eval $ac_try) 2>&5
13683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13684 (exit $ac_status); }; } &&
13685 { ac_try='test -s conftest.$ac_objext'
13686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13687 (eval $ac_try) 2>&5
13689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13690 (exit $ac_status); }; }; then
13691 ac_cv_header_term_h=yes
13693 echo "$as_me: failed program was:" >&5
13694 sed 's/^/| /' conftest.$ac_ext >&5
13696 ac_cv_header_term_h=no
13698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13700 echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
13701 echo "${ECHO_T}$ac_cv_header_term_h" >&6
13702 if test $ac_cv_header_term_h = yes; then
13703 echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
13704 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
13705 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
13706 echo $ECHO_N "(cached) $ECHO_C" >&6
13708 ac_check_lib_save_LIBS=$LIBS
13709 LIBS="-lcurses $LIBS"
13710 cat >conftest.$ac_ext <<_ACEOF
13713 cat confdefs.h >>conftest.$ac_ext
13714 cat >>conftest.$ac_ext <<_ACEOF
13715 /* end confdefs.h. */
13717 /* Override any gcc2 internal prototype to avoid an error. */
13721 /* We use char because int might match the return type of a gcc2
13722 builtin and then its argument prototype would still apply. */
13732 rm -f conftest.$ac_objext conftest$ac_exeext
13733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13734 (eval $ac_link) 2>conftest.er1
13736 grep -v '^ *+' conftest.er1 >conftest.err
13738 cat conftest.err >&5
13739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13740 (exit $ac_status); } &&
13741 { ac_try='test -z "$ac_c_werror_flag"
13742 || test ! -s conftest.err'
13743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13744 (eval $ac_try) 2>&5
13746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13747 (exit $ac_status); }; } &&
13748 { ac_try='test -s conftest$ac_exeext'
13749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13750 (eval $ac_try) 2>&5
13752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13753 (exit $ac_status); }; }; then
13754 ac_cv_lib_curses_tgetent=yes
13756 echo "$as_me: failed program was:" >&5
13757 sed 's/^/| /' conftest.$ac_ext >&5
13759 ac_cv_lib_curses_tgetent=no
13761 rm -f conftest.err conftest.$ac_objext \
13762 conftest$ac_exeext conftest.$ac_ext
13763 LIBS=$ac_check_lib_save_LIBS
13765 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
13766 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
13767 if test $ac_cv_lib_curses_tgetent = yes; then
13768 CONS_LIBS="-lcurses"
13772 support_readline=no
13774 cat >>confdefs.h <<\_ACEOF
13775 #define HAVE_CONIO 1
13783 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
13794 # ---------------------------------------------------
13795 # Check for readline support/directory (default off)
13796 # ---------------------------------------------------
13797 # this allows you to turn it completely off
13798 # Check whether --enable-readline or --disable-readline was given.
13799 if test "${enable_readline+set}" = set; then
13800 enableval="$enable_readline"
13801 if test x$enableval = xno; then
13802 support_readline=no
13808 if test x$support_readline = xyes; then
13810 # Check whether --with-readline or --without-readline was given.
13811 if test "${with_readline+set}" = set; then
13812 withval="$with_readline"
13814 case "$with_readline" in
13817 if test -f ${with_readline}/readline.h; then
13818 CONS_INC="-I${with_readline}"
13819 CONS_LDFLAGS="-L$with_readline"
13820 elif test -f ${with_readline}/include/readline/readline.h; then
13821 CONS_INC="-I${with_readline}/include/readline"
13822 CONS_LDFLAGS="-L${with_readline}/lib"
13823 with_readline="${with_readline}/include/readline"
13825 with_readline="/usr/include/readline"
13827 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
13828 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13829 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
13830 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
13831 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13832 echo $ECHO_N "(cached) $ECHO_C" >&6
13834 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13835 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13837 # Is the header compilable?
13838 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
13839 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
13840 cat >conftest.$ac_ext <<_ACEOF
13843 cat confdefs.h >>conftest.$ac_ext
13844 cat >>conftest.$ac_ext <<_ACEOF
13845 /* end confdefs.h. */
13846 $ac_includes_default
13847 #include <${with_readline}/readline.h>
13849 rm -f conftest.$ac_objext
13850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13851 (eval $ac_compile) 2>conftest.er1
13853 grep -v '^ *+' conftest.er1 >conftest.err
13855 cat conftest.err >&5
13856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13857 (exit $ac_status); } &&
13858 { ac_try='test -z "$ac_c_werror_flag"
13859 || test ! -s conftest.err'
13860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13861 (eval $ac_try) 2>&5
13863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13864 (exit $ac_status); }; } &&
13865 { ac_try='test -s conftest.$ac_objext'
13866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13867 (eval $ac_try) 2>&5
13869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13870 (exit $ac_status); }; }; then
13871 ac_header_compiler=yes
13873 echo "$as_me: failed program was:" >&5
13874 sed 's/^/| /' conftest.$ac_ext >&5
13876 ac_header_compiler=no
13878 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13879 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13880 echo "${ECHO_T}$ac_header_compiler" >&6
13882 # Is the header present?
13883 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
13884 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
13885 cat >conftest.$ac_ext <<_ACEOF
13888 cat confdefs.h >>conftest.$ac_ext
13889 cat >>conftest.$ac_ext <<_ACEOF
13890 /* end confdefs.h. */
13891 #include <${with_readline}/readline.h>
13893 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13894 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13896 grep -v '^ *+' conftest.er1 >conftest.err
13898 cat conftest.err >&5
13899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13900 (exit $ac_status); } >/dev/null; then
13901 if test -s conftest.err; then
13902 ac_cpp_err=$ac_c_preproc_warn_flag
13903 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13910 if test -z "$ac_cpp_err"; then
13911 ac_header_preproc=yes
13913 echo "$as_me: failed program was:" >&5
13914 sed 's/^/| /' conftest.$ac_ext >&5
13916 ac_header_preproc=no
13918 rm -f conftest.err conftest.$ac_ext
13919 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13920 echo "${ECHO_T}$ac_header_preproc" >&6
13922 # So? What about this header?
13923 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13925 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
13926 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13927 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
13928 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
13929 ac_header_preproc=yes
13932 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
13933 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
13934 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
13935 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
13936 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
13937 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
13938 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&5
13939 echo "$as_me: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
13940 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
13941 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
13942 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
13943 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
13946 ## ------------------------------------------ ##
13947 ## Report this to the AC_PACKAGE_NAME lists. ##
13948 ## ------------------------------------------ ##
13951 sed "s/^/$as_me: WARNING: /" >&2
13954 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
13955 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
13956 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13957 echo $ECHO_N "(cached) $ECHO_C" >&6
13959 eval "$as_ac_Header=\$ac_header_preproc"
13961 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13962 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13965 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13967 cat >>confdefs.h <<\_ACEOF
13968 #define HAVE_READLINE 1
13971 CONS_LIBS="-lreadline -lhistory -ltermcap"
13976 echo "readline.h not found. readline turned off ..."
13988 # check for standard readline library
13989 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
13990 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
13991 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
13992 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
13993 echo $ECHO_N "(cached) $ECHO_C" >&6
13995 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
13996 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
13998 # Is the header compilable?
13999 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
14000 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
14001 cat >conftest.$ac_ext <<_ACEOF
14004 cat confdefs.h >>conftest.$ac_ext
14005 cat >>conftest.$ac_ext <<_ACEOF
14006 /* end confdefs.h. */
14007 $ac_includes_default
14008 #include </usr/include/readline/readline.h>
14010 rm -f conftest.$ac_objext
14011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14012 (eval $ac_compile) 2>conftest.er1
14014 grep -v '^ *+' conftest.er1 >conftest.err
14016 cat conftest.err >&5
14017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14018 (exit $ac_status); } &&
14019 { ac_try='test -z "$ac_c_werror_flag"
14020 || test ! -s conftest.err'
14021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14022 (eval $ac_try) 2>&5
14024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14025 (exit $ac_status); }; } &&
14026 { ac_try='test -s conftest.$ac_objext'
14027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14028 (eval $ac_try) 2>&5
14030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14031 (exit $ac_status); }; }; then
14032 ac_header_compiler=yes
14034 echo "$as_me: failed program was:" >&5
14035 sed 's/^/| /' conftest.$ac_ext >&5
14037 ac_header_compiler=no
14039 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14040 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14041 echo "${ECHO_T}$ac_header_compiler" >&6
14043 # Is the header present?
14044 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
14045 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
14046 cat >conftest.$ac_ext <<_ACEOF
14049 cat confdefs.h >>conftest.$ac_ext
14050 cat >>conftest.$ac_ext <<_ACEOF
14051 /* end confdefs.h. */
14052 #include </usr/include/readline/readline.h>
14054 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14055 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14057 grep -v '^ *+' conftest.er1 >conftest.err
14059 cat conftest.err >&5
14060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14061 (exit $ac_status); } >/dev/null; then
14062 if test -s conftest.err; then
14063 ac_cpp_err=$ac_c_preproc_warn_flag
14064 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14071 if test -z "$ac_cpp_err"; then
14072 ac_header_preproc=yes
14074 echo "$as_me: failed program was:" >&5
14075 sed 's/^/| /' conftest.$ac_ext >&5
14077 ac_header_preproc=no
14079 rm -f conftest.err conftest.$ac_ext
14080 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14081 echo "${ECHO_T}$ac_header_preproc" >&6
14083 # So? What about this header?
14084 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14086 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14087 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14088 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
14089 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
14090 ac_header_preproc=yes
14093 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
14094 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
14095 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
14096 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
14097 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
14098 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
14099 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
14100 echo "$as_me: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
14101 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
14102 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
14103 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
14104 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
14107 ## ------------------------------------------ ##
14108 ## Report this to the AC_PACKAGE_NAME lists. ##
14109 ## ------------------------------------------ ##
14112 sed "s/^/$as_me: WARNING: /" >&2
14115 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
14116 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
14117 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14118 echo $ECHO_N "(cached) $ECHO_C" >&6
14120 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
14122 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
14123 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
14126 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
14128 cat >>confdefs.h <<\_ACEOF
14129 #define HAVE_READLINE 1
14133 CONS_INC="-I/usr/include/readline"
14134 CONS_LIBS="-lreadline -ltermcap"
14138 # Did not find standard library, so try Bacula's default
14139 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
14140 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14141 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14142 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
14143 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14144 echo $ECHO_N "(cached) $ECHO_C" >&6
14146 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14147 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14149 # Is the header compilable?
14150 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
14151 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
14152 cat >conftest.$ac_ext <<_ACEOF
14155 cat confdefs.h >>conftest.$ac_ext
14156 cat >>conftest.$ac_ext <<_ACEOF
14157 /* end confdefs.h. */
14158 $ac_includes_default
14159 #include <${TOP_DIR}/depkgs/readline/readline.h>
14161 rm -f conftest.$ac_objext
14162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14163 (eval $ac_compile) 2>conftest.er1
14165 grep -v '^ *+' conftest.er1 >conftest.err
14167 cat conftest.err >&5
14168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14169 (exit $ac_status); } &&
14170 { ac_try='test -z "$ac_c_werror_flag"
14171 || test ! -s conftest.err'
14172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14173 (eval $ac_try) 2>&5
14175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176 (exit $ac_status); }; } &&
14177 { ac_try='test -s conftest.$ac_objext'
14178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14179 (eval $ac_try) 2>&5
14181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14182 (exit $ac_status); }; }; then
14183 ac_header_compiler=yes
14185 echo "$as_me: failed program was:" >&5
14186 sed 's/^/| /' conftest.$ac_ext >&5
14188 ac_header_compiler=no
14190 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14191 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14192 echo "${ECHO_T}$ac_header_compiler" >&6
14194 # Is the header present?
14195 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
14196 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
14197 cat >conftest.$ac_ext <<_ACEOF
14200 cat confdefs.h >>conftest.$ac_ext
14201 cat >>conftest.$ac_ext <<_ACEOF
14202 /* end confdefs.h. */
14203 #include <${TOP_DIR}/depkgs/readline/readline.h>
14205 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14206 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14208 grep -v '^ *+' conftest.er1 >conftest.err
14210 cat conftest.err >&5
14211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14212 (exit $ac_status); } >/dev/null; then
14213 if test -s conftest.err; then
14214 ac_cpp_err=$ac_c_preproc_warn_flag
14215 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14222 if test -z "$ac_cpp_err"; then
14223 ac_header_preproc=yes
14225 echo "$as_me: failed program was:" >&5
14226 sed 's/^/| /' conftest.$ac_ext >&5
14228 ac_header_preproc=no
14230 rm -f conftest.err conftest.$ac_ext
14231 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14232 echo "${ECHO_T}$ac_header_preproc" >&6
14234 # So? What about this header?
14235 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14237 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14238 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14239 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
14240 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
14241 ac_header_preproc=yes
14244 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
14245 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
14246 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
14247 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
14248 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
14249 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
14250 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
14251 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
14252 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
14253 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
14254 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
14255 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
14258 ## ------------------------------------------ ##
14259 ## Report this to the AC_PACKAGE_NAME lists. ##
14260 ## ------------------------------------------ ##
14263 sed "s/^/$as_me: WARNING: /" >&2
14266 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14267 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
14268 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14269 echo $ECHO_N "(cached) $ECHO_C" >&6
14271 eval "$as_ac_Header=\$ac_header_preproc"
14273 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14274 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14277 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14279 cat >>confdefs.h <<\_ACEOF
14280 #define HAVE_READLINE 1
14284 CONS_INC="-I${TOP_DIR}/depkgs/readline"
14285 CONS_LIBS="-lreadline -lhistory -ltermcap"
14286 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
14287 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
14291 echo "readline.h not found. readline turned off ..."
14317 # Minimal stuff for readline Makefile configuration
14320 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14321 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
14322 if test "${ac_cv_header_stat_broken+set}" = set; then
14323 echo $ECHO_N "(cached) $ECHO_C" >&6
14325 cat >conftest.$ac_ext <<_ACEOF
14328 cat confdefs.h >>conftest.$ac_ext
14329 cat >>conftest.$ac_ext <<_ACEOF
14330 /* end confdefs.h. */
14331 #include <sys/types.h>
14332 #include <sys/stat.h>
14334 #if defined(S_ISBLK) && defined(S_IFDIR)
14335 # if S_ISBLK (S_IFDIR)
14340 #if defined(S_ISBLK) && defined(S_IFCHR)
14341 # if S_ISBLK (S_IFCHR)
14346 #if defined(S_ISLNK) && defined(S_IFREG)
14347 # if S_ISLNK (S_IFREG)
14352 #if defined(S_ISSOCK) && defined(S_IFREG)
14353 # if S_ISSOCK (S_IFREG)
14359 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14360 $EGREP "You lose" >/dev/null 2>&1; then
14361 ac_cv_header_stat_broken=yes
14363 ac_cv_header_stat_broken=no
14368 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14369 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
14370 if test $ac_cv_header_stat_broken = yes; then
14372 cat >>confdefs.h <<\_ACEOF
14373 #define STAT_MACROS_BROKEN 1
14383 ac_header_dirent=no
14384 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14385 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14386 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14387 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
14388 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14389 echo $ECHO_N "(cached) $ECHO_C" >&6
14391 cat >conftest.$ac_ext <<_ACEOF
14394 cat confdefs.h >>conftest.$ac_ext
14395 cat >>conftest.$ac_ext <<_ACEOF
14396 /* end confdefs.h. */
14397 #include <sys/types.h>
14409 rm -f conftest.$ac_objext
14410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14411 (eval $ac_compile) 2>conftest.er1
14413 grep -v '^ *+' conftest.er1 >conftest.err
14415 cat conftest.err >&5
14416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417 (exit $ac_status); } &&
14418 { ac_try='test -z "$ac_c_werror_flag"
14419 || test ! -s conftest.err'
14420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14421 (eval $ac_try) 2>&5
14423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14424 (exit $ac_status); }; } &&
14425 { ac_try='test -s conftest.$ac_objext'
14426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14427 (eval $ac_try) 2>&5
14429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14430 (exit $ac_status); }; }; then
14431 eval "$as_ac_Header=yes"
14433 echo "$as_me: failed program was:" >&5
14434 sed 's/^/| /' conftest.$ac_ext >&5
14436 eval "$as_ac_Header=no"
14438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14440 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14441 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14442 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14443 cat >>confdefs.h <<_ACEOF
14444 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14447 ac_header_dirent=$ac_hdr; break
14451 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14452 if test $ac_header_dirent = dirent.h; then
14453 echo "$as_me:$LINENO: checking for library containing opendir" >&5
14454 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
14455 if test "${ac_cv_search_opendir+set}" = set; then
14456 echo $ECHO_N "(cached) $ECHO_C" >&6
14458 ac_func_search_save_LIBS=$LIBS
14459 ac_cv_search_opendir=no
14460 cat >conftest.$ac_ext <<_ACEOF
14463 cat confdefs.h >>conftest.$ac_ext
14464 cat >>conftest.$ac_ext <<_ACEOF
14465 /* end confdefs.h. */
14467 /* Override any gcc2 internal prototype to avoid an error. */
14471 /* We use char because int might match the return type of a gcc2
14472 builtin and then its argument prototype would still apply. */
14482 rm -f conftest.$ac_objext conftest$ac_exeext
14483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14484 (eval $ac_link) 2>conftest.er1
14486 grep -v '^ *+' conftest.er1 >conftest.err
14488 cat conftest.err >&5
14489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14490 (exit $ac_status); } &&
14491 { ac_try='test -z "$ac_c_werror_flag"
14492 || test ! -s conftest.err'
14493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14494 (eval $ac_try) 2>&5
14496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14497 (exit $ac_status); }; } &&
14498 { ac_try='test -s conftest$ac_exeext'
14499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14500 (eval $ac_try) 2>&5
14502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14503 (exit $ac_status); }; }; then
14504 ac_cv_search_opendir="none required"
14506 echo "$as_me: failed program was:" >&5
14507 sed 's/^/| /' conftest.$ac_ext >&5
14510 rm -f conftest.err conftest.$ac_objext \
14511 conftest$ac_exeext conftest.$ac_ext
14512 if test "$ac_cv_search_opendir" = no; then
14513 for ac_lib in dir; do
14514 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14515 cat >conftest.$ac_ext <<_ACEOF
14518 cat confdefs.h >>conftest.$ac_ext
14519 cat >>conftest.$ac_ext <<_ACEOF
14520 /* end confdefs.h. */
14522 /* Override any gcc2 internal prototype to avoid an error. */
14526 /* We use char because int might match the return type of a gcc2
14527 builtin and then its argument prototype would still apply. */
14537 rm -f conftest.$ac_objext conftest$ac_exeext
14538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14539 (eval $ac_link) 2>conftest.er1
14541 grep -v '^ *+' conftest.er1 >conftest.err
14543 cat conftest.err >&5
14544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14545 (exit $ac_status); } &&
14546 { ac_try='test -z "$ac_c_werror_flag"
14547 || test ! -s conftest.err'
14548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14549 (eval $ac_try) 2>&5
14551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14552 (exit $ac_status); }; } &&
14553 { ac_try='test -s conftest$ac_exeext'
14554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14555 (eval $ac_try) 2>&5
14557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14558 (exit $ac_status); }; }; then
14559 ac_cv_search_opendir="-l$ac_lib"
14562 echo "$as_me: failed program was:" >&5
14563 sed 's/^/| /' conftest.$ac_ext >&5
14566 rm -f conftest.err conftest.$ac_objext \
14567 conftest$ac_exeext conftest.$ac_ext
14570 LIBS=$ac_func_search_save_LIBS
14572 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14573 echo "${ECHO_T}$ac_cv_search_opendir" >&6
14574 if test "$ac_cv_search_opendir" != no; then
14575 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
14580 echo "$as_me:$LINENO: checking for library containing opendir" >&5
14581 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
14582 if test "${ac_cv_search_opendir+set}" = set; then
14583 echo $ECHO_N "(cached) $ECHO_C" >&6
14585 ac_func_search_save_LIBS=$LIBS
14586 ac_cv_search_opendir=no
14587 cat >conftest.$ac_ext <<_ACEOF
14590 cat confdefs.h >>conftest.$ac_ext
14591 cat >>conftest.$ac_ext <<_ACEOF
14592 /* end confdefs.h. */
14594 /* Override any gcc2 internal prototype to avoid an error. */
14598 /* We use char because int might match the return type of a gcc2
14599 builtin and then its argument prototype would still apply. */
14609 rm -f conftest.$ac_objext conftest$ac_exeext
14610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14611 (eval $ac_link) 2>conftest.er1
14613 grep -v '^ *+' conftest.er1 >conftest.err
14615 cat conftest.err >&5
14616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14617 (exit $ac_status); } &&
14618 { ac_try='test -z "$ac_c_werror_flag"
14619 || test ! -s conftest.err'
14620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14621 (eval $ac_try) 2>&5
14623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14624 (exit $ac_status); }; } &&
14625 { ac_try='test -s conftest$ac_exeext'
14626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14627 (eval $ac_try) 2>&5
14629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14630 (exit $ac_status); }; }; then
14631 ac_cv_search_opendir="none required"
14633 echo "$as_me: failed program was:" >&5
14634 sed 's/^/| /' conftest.$ac_ext >&5
14637 rm -f conftest.err conftest.$ac_objext \
14638 conftest$ac_exeext conftest.$ac_ext
14639 if test "$ac_cv_search_opendir" = no; then
14640 for ac_lib in x; do
14641 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14642 cat >conftest.$ac_ext <<_ACEOF
14645 cat confdefs.h >>conftest.$ac_ext
14646 cat >>conftest.$ac_ext <<_ACEOF
14647 /* end confdefs.h. */
14649 /* Override any gcc2 internal prototype to avoid an error. */
14653 /* We use char because int might match the return type of a gcc2
14654 builtin and then its argument prototype would still apply. */
14664 rm -f conftest.$ac_objext conftest$ac_exeext
14665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14666 (eval $ac_link) 2>conftest.er1
14668 grep -v '^ *+' conftest.er1 >conftest.err
14670 cat conftest.err >&5
14671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14672 (exit $ac_status); } &&
14673 { ac_try='test -z "$ac_c_werror_flag"
14674 || test ! -s conftest.err'
14675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14676 (eval $ac_try) 2>&5
14678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14679 (exit $ac_status); }; } &&
14680 { ac_try='test -s conftest$ac_exeext'
14681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14682 (eval $ac_try) 2>&5
14684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14685 (exit $ac_status); }; }; then
14686 ac_cv_search_opendir="-l$ac_lib"
14689 echo "$as_me: failed program was:" >&5
14690 sed 's/^/| /' conftest.$ac_ext >&5
14693 rm -f conftest.err conftest.$ac_objext \
14694 conftest$ac_exeext conftest.$ac_ext
14697 LIBS=$ac_func_search_save_LIBS
14699 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14700 echo "${ECHO_T}$ac_cv_search_opendir" >&6
14701 if test "$ac_cv_search_opendir" != no; then
14702 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
14715 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
14717 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14718 echo "$as_me:$LINENO: checking for $ac_func" >&5
14719 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14720 if eval "test \"\${$as_ac_var+set}\" = set"; then
14721 echo $ECHO_N "(cached) $ECHO_C" >&6
14723 cat >conftest.$ac_ext <<_ACEOF
14726 cat confdefs.h >>conftest.$ac_ext
14727 cat >>conftest.$ac_ext <<_ACEOF
14728 /* end confdefs.h. */
14729 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14730 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14731 #define $ac_func innocuous_$ac_func
14733 /* System header to define __stub macros and hopefully few prototypes,
14734 which can conflict with char $ac_func (); below.
14735 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14736 <limits.h> exists even on freestanding compilers. */
14739 # include <limits.h>
14741 # include <assert.h>
14746 /* Override any gcc2 internal prototype to avoid an error. */
14751 /* We use char because int might match the return type of a gcc2
14752 builtin and then its argument prototype would still apply. */
14754 /* The GNU C library defines this for functions which it implements
14755 to always fail with ENOSYS. Some functions are actually named
14756 something starting with __ and the normal name is an alias. */
14757 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14760 char (*f) () = $ac_func;
14769 return f != $ac_func;
14774 rm -f conftest.$ac_objext conftest$ac_exeext
14775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14776 (eval $ac_link) 2>conftest.er1
14778 grep -v '^ *+' conftest.er1 >conftest.err
14780 cat conftest.err >&5
14781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14782 (exit $ac_status); } &&
14783 { ac_try='test -z "$ac_c_werror_flag"
14784 || test ! -s conftest.err'
14785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14786 (eval $ac_try) 2>&5
14788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14789 (exit $ac_status); }; } &&
14790 { ac_try='test -s conftest$ac_exeext'
14791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14792 (eval $ac_try) 2>&5
14794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14795 (exit $ac_status); }; }; then
14796 eval "$as_ac_var=yes"
14798 echo "$as_me: failed program was:" >&5
14799 sed 's/^/| /' conftest.$ac_ext >&5
14801 eval "$as_ac_var=no"
14803 rm -f conftest.err conftest.$ac_objext \
14804 conftest$ac_exeext conftest.$ac_ext
14806 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14807 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14808 if test `eval echo '${'$as_ac_var'}'` = yes; then
14809 cat >>confdefs.h <<_ACEOF
14810 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14818 for ac_func in nanosleep nl_langinfo
14820 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14821 echo "$as_me:$LINENO: checking for $ac_func" >&5
14822 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14823 if eval "test \"\${$as_ac_var+set}\" = set"; then
14824 echo $ECHO_N "(cached) $ECHO_C" >&6
14826 cat >conftest.$ac_ext <<_ACEOF
14829 cat confdefs.h >>conftest.$ac_ext
14830 cat >>conftest.$ac_ext <<_ACEOF
14831 /* end confdefs.h. */
14832 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14833 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14834 #define $ac_func innocuous_$ac_func
14836 /* System header to define __stub macros and hopefully few prototypes,
14837 which can conflict with char $ac_func (); below.
14838 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14839 <limits.h> exists even on freestanding compilers. */
14842 # include <limits.h>
14844 # include <assert.h>
14849 /* Override any gcc2 internal prototype to avoid an error. */
14854 /* We use char because int might match the return type of a gcc2
14855 builtin and then its argument prototype would still apply. */
14857 /* The GNU C library defines this for functions which it implements
14858 to always fail with ENOSYS. Some functions are actually named
14859 something starting with __ and the normal name is an alias. */
14860 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14863 char (*f) () = $ac_func;
14872 return f != $ac_func;
14877 rm -f conftest.$ac_objext conftest$ac_exeext
14878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14879 (eval $ac_link) 2>conftest.er1
14881 grep -v '^ *+' conftest.er1 >conftest.err
14883 cat conftest.err >&5
14884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14885 (exit $ac_status); } &&
14886 { ac_try='test -z "$ac_c_werror_flag"
14887 || test ! -s conftest.err'
14888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14889 (eval $ac_try) 2>&5
14891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14892 (exit $ac_status); }; } &&
14893 { ac_try='test -s conftest$ac_exeext'
14894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14895 (eval $ac_try) 2>&5
14897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14898 (exit $ac_status); }; }; then
14899 eval "$as_ac_var=yes"
14901 echo "$as_me: failed program was:" >&5
14902 sed 's/^/| /' conftest.$ac_ext >&5
14904 eval "$as_ac_var=no"
14906 rm -f conftest.err conftest.$ac_objext \
14907 conftest$ac_exeext conftest.$ac_ext
14909 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14910 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14911 if test `eval echo '${'$as_ac_var'}'` = yes; then
14912 cat >>confdefs.h <<_ACEOF
14913 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14920 for ac_header in varargs.h
14922 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14923 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14924 echo "$as_me:$LINENO: checking for $ac_header" >&5
14925 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14926 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14927 echo $ECHO_N "(cached) $ECHO_C" >&6
14929 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14930 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14932 # Is the header compilable?
14933 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14934 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14935 cat >conftest.$ac_ext <<_ACEOF
14938 cat confdefs.h >>conftest.$ac_ext
14939 cat >>conftest.$ac_ext <<_ACEOF
14940 /* end confdefs.h. */
14941 $ac_includes_default
14942 #include <$ac_header>
14944 rm -f conftest.$ac_objext
14945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14946 (eval $ac_compile) 2>conftest.er1
14948 grep -v '^ *+' conftest.er1 >conftest.err
14950 cat conftest.err >&5
14951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14952 (exit $ac_status); } &&
14953 { ac_try='test -z "$ac_c_werror_flag"
14954 || test ! -s conftest.err'
14955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14956 (eval $ac_try) 2>&5
14958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14959 (exit $ac_status); }; } &&
14960 { ac_try='test -s conftest.$ac_objext'
14961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14962 (eval $ac_try) 2>&5
14964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14965 (exit $ac_status); }; }; then
14966 ac_header_compiler=yes
14968 echo "$as_me: failed program was:" >&5
14969 sed 's/^/| /' conftest.$ac_ext >&5
14971 ac_header_compiler=no
14973 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14974 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14975 echo "${ECHO_T}$ac_header_compiler" >&6
14977 # Is the header present?
14978 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14979 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14980 cat >conftest.$ac_ext <<_ACEOF
14983 cat confdefs.h >>conftest.$ac_ext
14984 cat >>conftest.$ac_ext <<_ACEOF
14985 /* end confdefs.h. */
14986 #include <$ac_header>
14988 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14989 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14991 grep -v '^ *+' conftest.er1 >conftest.err
14993 cat conftest.err >&5
14994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14995 (exit $ac_status); } >/dev/null; then
14996 if test -s conftest.err; then
14997 ac_cpp_err=$ac_c_preproc_warn_flag
14998 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15005 if test -z "$ac_cpp_err"; then
15006 ac_header_preproc=yes
15008 echo "$as_me: failed program was:" >&5
15009 sed 's/^/| /' conftest.$ac_ext >&5
15011 ac_header_preproc=no
15013 rm -f conftest.err conftest.$ac_ext
15014 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15015 echo "${ECHO_T}$ac_header_preproc" >&6
15017 # So? What about this header?
15018 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15020 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15021 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15022 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15023 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15024 ac_header_preproc=yes
15027 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15028 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15029 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15030 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15031 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15032 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15033 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15034 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15035 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15036 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15037 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15038 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15041 ## ------------------------------------------ ##
15042 ## Report this to the AC_PACKAGE_NAME lists. ##
15043 ## ------------------------------------------ ##
15046 sed "s/^/$as_me: WARNING: /" >&2
15049 echo "$as_me:$LINENO: checking for $ac_header" >&5
15050 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15051 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15052 echo $ECHO_N "(cached) $ECHO_C" >&6
15054 eval "$as_ac_Header=\$ac_header_preproc"
15056 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15057 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15060 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15061 cat >>confdefs.h <<_ACEOF
15062 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15070 # End of readline/conio stuff
15071 # -----------------------------------------------------------------------
15073 # -----------------------------------------------------------------------
15074 # Check for Python support
15076 echo "$as_me:$LINENO: checking for Python support" >&5
15077 echo $ECHO_N "checking for Python support... $ECHO_C" >&6
15079 # Check whether --with-python or --without-python was given.
15080 if test "${with_python+set}" = set; then
15081 withval="$with_python"
15085 if test "$withval" != "no"; then
15086 if test "$withval" = "yes"; then
15087 for python_root in /usr /usr/local /usr/sfw; do
15088 for ver in python2.2 python2.3 python2.4 python2.5; do
15089 if test -f $python_root/include/${ver}/Python.h; then
15090 PYTHON_INCDIR=-I$python_root/include/${ver}
15091 if test -d $python_root/lib64/${ver}/config; then
15092 PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
15094 PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
15100 if test x$PYTHON_INCDIR = x; then
15101 if test -f $prefix/include/Python.h; then
15102 PYTHON_INCDIR=-I$prefix/include
15103 if test -d $prefix/lib64/config; then
15104 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
15106 PYTHON_LIBS="-L$prefix/lib/config -lpython"
15109 echo "$as_me:$LINENO: result: no" >&5
15110 echo "${ECHO_T}no" >&6
15111 { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
15112 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
15113 { (exit 1); exit 1; }; }
15117 if test -f $withval/Python.h; then
15118 PYTHON_INCDIR=-I$withval
15119 PYTHON_LIBS="-L$withval/config -lpython"
15120 elif test -f $withval/include/Python.h; then
15121 PYTHON_INCDIR=-I$withval/include
15122 if test -d $withval/lib64/config; then
15123 PYTHON_LIBS="-L$withval/lib64/config -lpython"
15125 PYTHON_LIBS="-L$withval/lib/config -lpython"
15127 elif test -f $withval/include/python/Python.h; then
15128 PYTHON_INCDIR=-I$withval/include/python
15129 if test -d $withval/lib64/python/config; then
15130 PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
15132 PYTHON_LIBS="-L$withval/lib/python/config -lpython"
15135 echo "$as_me:$LINENO: result: no" >&5
15136 echo "${ECHO_T}no" >&6
15137 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
15138 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
15139 { (exit 1); exit 1; }; }
15142 cat >>confdefs.h <<\_ACEOF
15143 #define HAVE_PYTHON 1
15146 echo "$as_me:$LINENO: result: yes" >&5
15147 echo "${ECHO_T}yes" >&6
15149 { echo "$as_me:$LINENO: checking for more Python libs" >&5
15150 echo "$as_me: checking for more Python libs" >&6;}
15151 saved_LIBS="$LIBS"; LIBS=
15152 echo "$as_me:$LINENO: checking for library containing shm_open" >&5
15153 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6
15154 if test "${ac_cv_search_shm_open+set}" = set; then
15155 echo $ECHO_N "(cached) $ECHO_C" >&6
15157 ac_func_search_save_LIBS=$LIBS
15158 ac_cv_search_shm_open=no
15159 cat >conftest.$ac_ext <<_ACEOF
15162 cat confdefs.h >>conftest.$ac_ext
15163 cat >>conftest.$ac_ext <<_ACEOF
15164 /* end confdefs.h. */
15166 /* Override any gcc2 internal prototype to avoid an error. */
15170 /* We use char because int might match the return type of a gcc2
15171 builtin and then its argument prototype would still apply. */
15181 rm -f conftest.$ac_objext conftest$ac_exeext
15182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15183 (eval $ac_link) 2>conftest.er1
15185 grep -v '^ *+' conftest.er1 >conftest.err
15187 cat conftest.err >&5
15188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15189 (exit $ac_status); } &&
15190 { ac_try='test -z "$ac_c_werror_flag"
15191 || test ! -s conftest.err'
15192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15193 (eval $ac_try) 2>&5
15195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15196 (exit $ac_status); }; } &&
15197 { ac_try='test -s conftest$ac_exeext'
15198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15199 (eval $ac_try) 2>&5
15201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15202 (exit $ac_status); }; }; then
15203 ac_cv_search_shm_open="none required"
15205 echo "$as_me: failed program was:" >&5
15206 sed 's/^/| /' conftest.$ac_ext >&5
15209 rm -f conftest.err conftest.$ac_objext \
15210 conftest$ac_exeext conftest.$ac_ext
15211 if test "$ac_cv_search_shm_open" = no; then
15212 for ac_lib in rt; do
15213 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15214 cat >conftest.$ac_ext <<_ACEOF
15217 cat confdefs.h >>conftest.$ac_ext
15218 cat >>conftest.$ac_ext <<_ACEOF
15219 /* end confdefs.h. */
15221 /* Override any gcc2 internal prototype to avoid an error. */
15225 /* We use char because int might match the return type of a gcc2
15226 builtin and then its argument prototype would still apply. */
15236 rm -f conftest.$ac_objext conftest$ac_exeext
15237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15238 (eval $ac_link) 2>conftest.er1
15240 grep -v '^ *+' conftest.er1 >conftest.err
15242 cat conftest.err >&5
15243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15244 (exit $ac_status); } &&
15245 { ac_try='test -z "$ac_c_werror_flag"
15246 || test ! -s conftest.err'
15247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15248 (eval $ac_try) 2>&5
15250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15251 (exit $ac_status); }; } &&
15252 { ac_try='test -s conftest$ac_exeext'
15253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15254 (eval $ac_try) 2>&5
15256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15257 (exit $ac_status); }; }; then
15258 ac_cv_search_shm_open="-l$ac_lib"
15261 echo "$as_me: failed program was:" >&5
15262 sed 's/^/| /' conftest.$ac_ext >&5
15265 rm -f conftest.err conftest.$ac_objext \
15266 conftest$ac_exeext conftest.$ac_ext
15269 LIBS=$ac_func_search_save_LIBS
15271 echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
15272 echo "${ECHO_T}$ac_cv_search_shm_open" >&6
15273 if test "$ac_cv_search_shm_open" != no; then
15274 test "$ac_cv_search_shm_open" = "none required" || LIBS="$ac_cv_search_shm_open $LIBS"
15279 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
15280 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
15281 if test "${ac_cv_lib_util_openpty+set}" = set; then
15282 echo $ECHO_N "(cached) $ECHO_C" >&6
15284 ac_check_lib_save_LIBS=$LIBS
15285 LIBS="-lutil $LIBS"
15286 cat >conftest.$ac_ext <<_ACEOF
15289 cat confdefs.h >>conftest.$ac_ext
15290 cat >>conftest.$ac_ext <<_ACEOF
15291 /* end confdefs.h. */
15293 /* Override any gcc2 internal prototype to avoid an error. */
15297 /* We use char because int might match the return type of a gcc2
15298 builtin and then its argument prototype would still apply. */
15308 rm -f conftest.$ac_objext conftest$ac_exeext
15309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15310 (eval $ac_link) 2>conftest.er1
15312 grep -v '^ *+' conftest.er1 >conftest.err
15314 cat conftest.err >&5
15315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15316 (exit $ac_status); } &&
15317 { ac_try='test -z "$ac_c_werror_flag"
15318 || test ! -s conftest.err'
15319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15320 (eval $ac_try) 2>&5
15322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15323 (exit $ac_status); }; } &&
15324 { ac_try='test -s conftest$ac_exeext'
15325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15326 (eval $ac_try) 2>&5
15328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15329 (exit $ac_status); }; }; then
15330 ac_cv_lib_util_openpty=yes
15332 echo "$as_me: failed program was:" >&5
15333 sed 's/^/| /' conftest.$ac_ext >&5
15335 ac_cv_lib_util_openpty=no
15337 rm -f conftest.err conftest.$ac_objext \
15338 conftest$ac_exeext conftest.$ac_ext
15339 LIBS=$ac_check_lib_save_LIBS
15341 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
15342 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
15343 if test $ac_cv_lib_util_openpty = yes; then
15344 cat >>confdefs.h <<_ACEOF
15345 #define HAVE_LIBUTIL 1
15348 LIBS="-lutil $LIBS"
15352 PYTHON_LIBS="$PYTHON_LIBS $LIBS"
15355 echo "$as_me:$LINENO: result: no" >&5
15356 echo "${ECHO_T}no" >&6
15361 echo "$as_me:$LINENO: result: no" >&5
15362 echo "${ECHO_T}no" >&6
15369 # Find where sockets are (especially for Solaris)
15370 # Do this before the TCP Wrappers test since tcp wrappers
15371 # uses the socket library and some linkers are stupid.
15373 echo "$as_me:$LINENO: checking for socket" >&5
15374 echo $ECHO_N "checking for socket... $ECHO_C" >&6
15375 if test "${ac_cv_func_socket+set}" = set; then
15376 echo $ECHO_N "(cached) $ECHO_C" >&6
15378 cat >conftest.$ac_ext <<_ACEOF
15381 cat confdefs.h >>conftest.$ac_ext
15382 cat >>conftest.$ac_ext <<_ACEOF
15383 /* end confdefs.h. */
15384 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
15385 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15386 #define socket innocuous_socket
15388 /* System header to define __stub macros and hopefully few prototypes,
15389 which can conflict with char socket (); below.
15390 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15391 <limits.h> exists even on freestanding compilers. */
15394 # include <limits.h>
15396 # include <assert.h>
15401 /* Override any gcc2 internal prototype to avoid an error. */
15406 /* We use char because int might match the return type of a gcc2
15407 builtin and then its argument prototype would still apply. */
15409 /* The GNU C library defines this for functions which it implements
15410 to always fail with ENOSYS. Some functions are actually named
15411 something starting with __ and the normal name is an alias. */
15412 #if defined (__stub_socket) || defined (__stub___socket)
15415 char (*f) () = socket;
15424 return f != socket;
15429 rm -f conftest.$ac_objext conftest$ac_exeext
15430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15431 (eval $ac_link) 2>conftest.er1
15433 grep -v '^ *+' conftest.er1 >conftest.err
15435 cat conftest.err >&5
15436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15437 (exit $ac_status); } &&
15438 { ac_try='test -z "$ac_c_werror_flag"
15439 || test ! -s conftest.err'
15440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15441 (eval $ac_try) 2>&5
15443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15444 (exit $ac_status); }; } &&
15445 { ac_try='test -s conftest$ac_exeext'
15446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15447 (eval $ac_try) 2>&5
15449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15450 (exit $ac_status); }; }; then
15451 ac_cv_func_socket=yes
15453 echo "$as_me: failed program was:" >&5
15454 sed 's/^/| /' conftest.$ac_ext >&5
15456 ac_cv_func_socket=no
15458 rm -f conftest.err conftest.$ac_objext \
15459 conftest$ac_exeext conftest.$ac_ext
15461 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15462 echo "${ECHO_T}$ac_cv_func_socket" >&6
15463 if test $ac_cv_func_socket = yes; then
15464 echo "$as_me:$LINENO: result: using libc's socket" >&5
15465 echo "${ECHO_T}using libc's socket" >&6
15468 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
15469 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
15470 if test "${ac_cv_lib_xnet_socket+set}" = set; then
15471 echo $ECHO_N "(cached) $ECHO_C" >&6
15473 ac_check_lib_save_LIBS=$LIBS
15474 LIBS="-lxnet $LIBS"
15475 cat >conftest.$ac_ext <<_ACEOF
15478 cat confdefs.h >>conftest.$ac_ext
15479 cat >>conftest.$ac_ext <<_ACEOF
15480 /* end confdefs.h. */
15482 /* Override any gcc2 internal prototype to avoid an error. */
15486 /* We use char because int might match the return type of a gcc2
15487 builtin and then its argument prototype would still apply. */
15497 rm -f conftest.$ac_objext conftest$ac_exeext
15498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15499 (eval $ac_link) 2>conftest.er1
15501 grep -v '^ *+' conftest.er1 >conftest.err
15503 cat conftest.err >&5
15504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15505 (exit $ac_status); } &&
15506 { ac_try='test -z "$ac_c_werror_flag"
15507 || test ! -s conftest.err'
15508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15509 (eval $ac_try) 2>&5
15511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15512 (exit $ac_status); }; } &&
15513 { ac_try='test -s conftest$ac_exeext'
15514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15515 (eval $ac_try) 2>&5
15517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15518 (exit $ac_status); }; }; then
15519 ac_cv_lib_xnet_socket=yes
15521 echo "$as_me: failed program was:" >&5
15522 sed 's/^/| /' conftest.$ac_ext >&5
15524 ac_cv_lib_xnet_socket=no
15526 rm -f conftest.err conftest.$ac_objext \
15527 conftest$ac_exeext conftest.$ac_ext
15528 LIBS=$ac_check_lib_save_LIBS
15530 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
15531 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
15532 if test $ac_cv_lib_xnet_socket = yes; then
15533 cat >>confdefs.h <<_ACEOF
15534 #define HAVE_LIBXNET 1
15537 LIBS="-lxnet $LIBS"
15542 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15543 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
15544 if test "${ac_cv_lib_socket_socket+set}" = set; then
15545 echo $ECHO_N "(cached) $ECHO_C" >&6
15547 ac_check_lib_save_LIBS=$LIBS
15548 LIBS="-lsocket $LIBS"
15549 cat >conftest.$ac_ext <<_ACEOF
15552 cat confdefs.h >>conftest.$ac_ext
15553 cat >>conftest.$ac_ext <<_ACEOF
15554 /* end confdefs.h. */
15556 /* Override any gcc2 internal prototype to avoid an error. */
15560 /* We use char because int might match the return type of a gcc2
15561 builtin and then its argument prototype would still apply. */
15571 rm -f conftest.$ac_objext conftest$ac_exeext
15572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15573 (eval $ac_link) 2>conftest.er1
15575 grep -v '^ *+' conftest.er1 >conftest.err
15577 cat conftest.err >&5
15578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15579 (exit $ac_status); } &&
15580 { ac_try='test -z "$ac_c_werror_flag"
15581 || test ! -s conftest.err'
15582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15583 (eval $ac_try) 2>&5
15585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15586 (exit $ac_status); }; } &&
15587 { ac_try='test -s conftest$ac_exeext'
15588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15589 (eval $ac_try) 2>&5
15591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15592 (exit $ac_status); }; }; then
15593 ac_cv_lib_socket_socket=yes
15595 echo "$as_me: failed program was:" >&5
15596 sed 's/^/| /' conftest.$ac_ext >&5
15598 ac_cv_lib_socket_socket=no
15600 rm -f conftest.err conftest.$ac_objext \
15601 conftest$ac_exeext conftest.$ac_ext
15602 LIBS=$ac_check_lib_save_LIBS
15604 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15605 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
15606 if test $ac_cv_lib_socket_socket = yes; then
15607 cat >>confdefs.h <<_ACEOF
15608 #define HAVE_LIBSOCKET 1
15611 LIBS="-lsocket $LIBS"
15616 echo "$as_me:$LINENO: checking for socket in -linet" >&5
15617 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
15618 if test "${ac_cv_lib_inet_socket+set}" = set; then
15619 echo $ECHO_N "(cached) $ECHO_C" >&6
15621 ac_check_lib_save_LIBS=$LIBS
15622 LIBS="-linet $LIBS"
15623 cat >conftest.$ac_ext <<_ACEOF
15626 cat confdefs.h >>conftest.$ac_ext
15627 cat >>conftest.$ac_ext <<_ACEOF
15628 /* end confdefs.h. */
15630 /* Override any gcc2 internal prototype to avoid an error. */
15634 /* We use char because int might match the return type of a gcc2
15635 builtin and then its argument prototype would still apply. */
15645 rm -f conftest.$ac_objext conftest$ac_exeext
15646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15647 (eval $ac_link) 2>conftest.er1
15649 grep -v '^ *+' conftest.er1 >conftest.err
15651 cat conftest.err >&5
15652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15653 (exit $ac_status); } &&
15654 { ac_try='test -z "$ac_c_werror_flag"
15655 || test ! -s conftest.err'
15656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15657 (eval $ac_try) 2>&5
15659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15660 (exit $ac_status); }; } &&
15661 { ac_try='test -s conftest$ac_exeext'
15662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15663 (eval $ac_try) 2>&5
15665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15666 (exit $ac_status); }; }; then
15667 ac_cv_lib_inet_socket=yes
15669 echo "$as_me: failed program was:" >&5
15670 sed 's/^/| /' conftest.$ac_ext >&5
15672 ac_cv_lib_inet_socket=no
15674 rm -f conftest.err conftest.$ac_objext \
15675 conftest$ac_exeext conftest.$ac_ext
15676 LIBS=$ac_check_lib_save_LIBS
15678 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15679 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15680 if test $ac_cv_lib_inet_socket = yes; then
15681 cat >>confdefs.h <<_ACEOF
15682 #define HAVE_LIBINET 1
15685 LIBS="-linet $LIBS"
15693 # -----------------------------------------------------------
15694 # Check whether user wants TCP wrappers support (default off)
15695 # -----------------------------------------------------------
15699 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
15700 if test "${with_tcp_wrappers+set}" = set; then
15701 withval="$with_tcp_wrappers"
15703 if test "x$withval" != "xno" ; then
15705 LIBS="$saved_LIBS -lwrap"
15706 echo "$as_me:$LINENO: checking for libwrap" >&5
15707 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
15708 echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
15709 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6
15710 if test "${ac_cv_search_nanosleep+set}" = set; then
15711 echo $ECHO_N "(cached) $ECHO_C" >&6
15713 ac_func_search_save_LIBS=$LIBS
15714 ac_cv_search_nanosleep=no
15715 cat >conftest.$ac_ext <<_ACEOF
15718 cat confdefs.h >>conftest.$ac_ext
15719 cat >>conftest.$ac_ext <<_ACEOF
15720 /* end confdefs.h. */
15722 /* Override any gcc2 internal prototype to avoid an error. */
15726 /* We use char because int might match the return type of a gcc2
15727 builtin and then its argument prototype would still apply. */
15737 rm -f conftest.$ac_objext conftest$ac_exeext
15738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15739 (eval $ac_link) 2>conftest.er1
15741 grep -v '^ *+' conftest.er1 >conftest.err
15743 cat conftest.err >&5
15744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15745 (exit $ac_status); } &&
15746 { ac_try='test -z "$ac_c_werror_flag"
15747 || test ! -s conftest.err'
15748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15749 (eval $ac_try) 2>&5
15751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15752 (exit $ac_status); }; } &&
15753 { ac_try='test -s conftest$ac_exeext'
15754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15755 (eval $ac_try) 2>&5
15757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15758 (exit $ac_status); }; }; then
15759 ac_cv_search_nanosleep="none required"
15761 echo "$as_me: failed program was:" >&5
15762 sed 's/^/| /' conftest.$ac_ext >&5
15765 rm -f conftest.err conftest.$ac_objext \
15766 conftest$ac_exeext conftest.$ac_ext
15767 if test "$ac_cv_search_nanosleep" = no; then
15768 for ac_lib in rt; do
15769 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15770 cat >conftest.$ac_ext <<_ACEOF
15773 cat confdefs.h >>conftest.$ac_ext
15774 cat >>conftest.$ac_ext <<_ACEOF
15775 /* end confdefs.h. */
15777 /* Override any gcc2 internal prototype to avoid an error. */
15781 /* We use char because int might match the return type of a gcc2
15782 builtin and then its argument prototype would still apply. */
15792 rm -f conftest.$ac_objext conftest$ac_exeext
15793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15794 (eval $ac_link) 2>conftest.er1
15796 grep -v '^ *+' conftest.er1 >conftest.err
15798 cat conftest.err >&5
15799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15800 (exit $ac_status); } &&
15801 { ac_try='test -z "$ac_c_werror_flag"
15802 || test ! -s conftest.err'
15803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15804 (eval $ac_try) 2>&5
15806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15807 (exit $ac_status); }; } &&
15808 { ac_try='test -s conftest$ac_exeext'
15809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15810 (eval $ac_try) 2>&5
15812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15813 (exit $ac_status); }; }; then
15814 ac_cv_search_nanosleep="-l$ac_lib"
15817 echo "$as_me: failed program was:" >&5
15818 sed 's/^/| /' conftest.$ac_ext >&5
15821 rm -f conftest.err conftest.$ac_objext \
15822 conftest$ac_exeext conftest.$ac_ext
15825 LIBS=$ac_func_search_save_LIBS
15827 echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
15828 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6
15829 if test "$ac_cv_search_nanosleep" != no; then
15830 test "$ac_cv_search_nanosleep" = "none required" || LIBS="$ac_cv_search_nanosleep $LIBS"
15834 cat >conftest.$ac_ext <<_ACEOF
15837 cat confdefs.h >>conftest.$ac_ext
15838 cat >>conftest.$ac_ext <<_ACEOF
15839 /* end confdefs.h. */
15840 #include <sys/types.h>
15842 int deny_severity = 0;
15843 int allow_severity = 0;
15844 struct request_info *req;
15853 rm -f conftest.$ac_objext conftest$ac_exeext
15854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15855 (eval $ac_link) 2>conftest.er1
15857 grep -v '^ *+' conftest.er1 >conftest.err
15859 cat conftest.err >&5
15860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15861 (exit $ac_status); } &&
15862 { ac_try='test -z "$ac_c_werror_flag"
15863 || test ! -s conftest.err'
15864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15865 (eval $ac_try) 2>&5
15867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15868 (exit $ac_status); }; } &&
15869 { ac_try='test -s conftest$ac_exeext'
15870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15871 (eval $ac_try) 2>&5
15873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15874 (exit $ac_status); }; }; then
15876 echo "$as_me:$LINENO: result: yes" >&5
15877 echo "${ECHO_T}yes" >&6
15879 cat >>confdefs.h <<\_ACEOF
15880 #define HAVE_LIBWRAP 1
15888 echo "$as_me: failed program was:" >&5
15889 sed 's/^/| /' conftest.$ac_ext >&5
15892 LIBS="$saved_LIBS -lwrap -lnsl"
15893 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
15894 cat >conftest.$ac_ext <<_ACEOF
15897 cat confdefs.h >>conftest.$ac_ext
15898 cat >>conftest.$ac_ext <<_ACEOF
15899 /* end confdefs.h. */
15900 #include <sys/types.h>
15902 int deny_severity = 0;
15903 int allow_severity = 0;
15904 struct request_info *req;
15913 rm -f conftest.$ac_objext conftest$ac_exeext
15914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15915 (eval $ac_link) 2>conftest.er1
15917 grep -v '^ *+' conftest.er1 >conftest.err
15919 cat conftest.err >&5
15920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15921 (exit $ac_status); } &&
15922 { ac_try='test -z "$ac_c_werror_flag"
15923 || test ! -s conftest.err'
15924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15925 (eval $ac_try) 2>&5
15927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15928 (exit $ac_status); }; } &&
15929 { ac_try='test -s conftest$ac_exeext'
15930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15931 (eval $ac_try) 2>&5
15933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15934 (exit $ac_status); }; }; then
15936 echo "$as_me:$LINENO: result: yes" >&5
15937 echo "${ECHO_T}yes" >&6
15939 cat >>confdefs.h <<\_ACEOF
15940 #define HAVE_LIBWRAP 1
15948 echo "$as_me: failed program was:" >&5
15949 sed 's/^/| /' conftest.$ac_ext >&5
15951 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
15952 echo "$as_me: error: *** libwrap missing" >&2;}
15953 { (exit 1); exit 1; }; }
15956 rm -f conftest.err conftest.$ac_objext \
15957 conftest$ac_exeext conftest.$ac_ext
15960 rm -f conftest.err conftest.$ac_objext \
15961 conftest$ac_exeext conftest.$ac_ext
15967 # -----------------------------------------------------------
15968 # Check whether OpenSSL is available
15969 # -----------------------------------------------------------
15970 echo "$as_me:$LINENO: checking for OpenSSL" >&5
15971 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6
15973 # Check whether --with-openssl or --without-openssl was given.
15974 if test "${with_openssl+set}" = set; then
15975 withval="$with_openssl"
15976 with_openssl_directory=${withval}
15979 if test "x$with_openssl_directory" != "x"; then
15980 OPENSSL_LIBS="-lssl -lcrypto"
15983 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
15984 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
15985 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
15988 saved_LIBS="${LIBS}"
15989 saved_CFLAGS="${CFLAGS}"
15990 LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
15991 CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
15993 cat >conftest.$ac_ext <<_ACEOF
15996 cat confdefs.h >>conftest.$ac_ext
15997 cat >>conftest.$ac_ext <<_ACEOF
15998 /* end confdefs.h. */
15999 #include <openssl/ssl.h>
16003 CRYPTO_set_id_callback(NULL);
16008 rm -f conftest.$ac_objext conftest$ac_exeext
16009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16010 (eval $ac_link) 2>conftest.er1
16012 grep -v '^ *+' conftest.er1 >conftest.err
16014 cat conftest.err >&5
16015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16016 (exit $ac_status); } &&
16017 { ac_try='test -z "$ac_c_werror_flag"
16018 || test ! -s conftest.err'
16019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16020 (eval $ac_try) 2>&5
16022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16023 (exit $ac_status); }; } &&
16024 { ac_try='test -s conftest$ac_exeext'
16025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16026 (eval $ac_try) 2>&5
16028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16029 (exit $ac_status); }; }; then
16032 support_crypto="yes"
16035 echo "$as_me: failed program was:" >&5
16036 sed 's/^/| /' conftest.$ac_ext >&5
16041 rm -f conftest.err conftest.$ac_objext \
16042 conftest$ac_exeext conftest.$ac_ext
16044 cat >conftest.$ac_ext <<_ACEOF
16047 cat confdefs.h >>conftest.$ac_ext
16048 cat >>conftest.$ac_ext <<_ACEOF
16049 /* end confdefs.h. */
16050 #include <openssl/evp.h>
16059 rm -f conftest.$ac_objext conftest$ac_exeext
16060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16061 (eval $ac_link) 2>conftest.er1
16063 grep -v '^ *+' conftest.er1 >conftest.err
16065 cat conftest.err >&5
16066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16067 (exit $ac_status); } &&
16068 { ac_try='test -z "$ac_c_werror_flag"
16069 || test ! -s conftest.err'
16070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16071 (eval $ac_try) 2>&5
16073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16074 (exit $ac_status); }; } &&
16075 { ac_try='test -s conftest$ac_exeext'
16076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16077 (eval $ac_try) 2>&5
16079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16080 (exit $ac_status); }; }; then
16081 ac_cv_openssl_sha2="yes"
16083 echo "$as_me: failed program was:" >&5
16084 sed 's/^/| /' conftest.$ac_ext >&5
16086 ac_cv_openssl_sha2="no"
16089 rm -f conftest.err conftest.$ac_objext \
16090 conftest$ac_exeext conftest.$ac_ext
16092 # Solaris disables greater than 128+ bit encryption in their OpenSSL
16093 # implementation, presumably for export reasons. If 192bit AES
16094 # is available, we assume that we're running with a 'non-export'
16096 cat >conftest.$ac_ext <<_ACEOF
16099 cat confdefs.h >>conftest.$ac_ext
16100 cat >>conftest.$ac_ext <<_ACEOF
16101 /* end confdefs.h. */
16102 #include <openssl/evp.h>
16111 rm -f conftest.$ac_objext conftest$ac_exeext
16112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16113 (eval $ac_link) 2>conftest.er1
16115 grep -v '^ *+' conftest.er1 >conftest.err
16117 cat conftest.err >&5
16118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16119 (exit $ac_status); } &&
16120 { ac_try='test -z "$ac_c_werror_flag"
16121 || test ! -s conftest.err'
16122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16123 (eval $ac_try) 2>&5
16125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16126 (exit $ac_status); }; } &&
16127 { ac_try='test -s conftest$ac_exeext'
16128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16129 (eval $ac_try) 2>&5
16131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16132 (exit $ac_status); }; }; then
16133 ac_cv_openssl_export="no"
16135 echo "$as_me: failed program was:" >&5
16136 sed 's/^/| /' conftest.$ac_ext >&5
16138 ac_cv_openssl_export="yes"
16141 rm -f conftest.err conftest.$ac_objext \
16142 conftest$ac_exeext conftest.$ac_ext
16144 LIBS="${saved_LIBS}"
16145 CFLAGS="${saved_CFLAGS}"
16147 if test "$support_tls" = "yes"; then
16149 cat >>confdefs.h <<\_ACEOF
16150 #define HAVE_OPENSSL 1
16154 cat >>confdefs.h <<\_ACEOF
16159 cat >>confdefs.h <<\_ACEOF
16160 #define HAVE_CRYPTO 1
16165 if test "$ac_cv_openssl_sha2" = "yes"; then
16167 cat >>confdefs.h <<\_ACEOF
16168 #define HAVE_SHA2 1
16173 if test "$ac_cv_openssl_export" = "yes"; then
16175 cat >>confdefs.h <<\_ACEOF
16176 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
16182 support_crypto="no"
16187 echo "$as_me:$LINENO: result: $support_tls" >&5
16188 echo "${ECHO_T}$support_tls" >&6
16193 # -----------------------------------------------------------
16194 # Python and OpenSSL are using dlopen
16195 # -----------------------------------------------------------
16197 if test "$support_python" = "yes" -o "$support_tls" = "yes"; then
16198 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
16199 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
16200 if test "${ac_cv_search_dlopen+set}" = set; then
16201 echo $ECHO_N "(cached) $ECHO_C" >&6
16203 ac_func_search_save_LIBS=$LIBS
16204 ac_cv_search_dlopen=no
16205 cat >conftest.$ac_ext <<_ACEOF
16208 cat confdefs.h >>conftest.$ac_ext
16209 cat >>conftest.$ac_ext <<_ACEOF
16210 /* end confdefs.h. */
16212 /* Override any gcc2 internal prototype to avoid an error. */
16216 /* We use char because int might match the return type of a gcc2
16217 builtin and then its argument prototype would still apply. */
16227 rm -f conftest.$ac_objext conftest$ac_exeext
16228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16229 (eval $ac_link) 2>conftest.er1
16231 grep -v '^ *+' conftest.er1 >conftest.err
16233 cat conftest.err >&5
16234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16235 (exit $ac_status); } &&
16236 { ac_try='test -z "$ac_c_werror_flag"
16237 || test ! -s conftest.err'
16238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16239 (eval $ac_try) 2>&5
16241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16242 (exit $ac_status); }; } &&
16243 { ac_try='test -s conftest$ac_exeext'
16244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16245 (eval $ac_try) 2>&5
16247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16248 (exit $ac_status); }; }; then
16249 ac_cv_search_dlopen="none required"
16251 echo "$as_me: failed program was:" >&5
16252 sed 's/^/| /' conftest.$ac_ext >&5
16255 rm -f conftest.err conftest.$ac_objext \
16256 conftest$ac_exeext conftest.$ac_ext
16257 if test "$ac_cv_search_dlopen" = no; then
16258 for ac_lib in dl; do
16259 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16260 cat >conftest.$ac_ext <<_ACEOF
16263 cat confdefs.h >>conftest.$ac_ext
16264 cat >>conftest.$ac_ext <<_ACEOF
16265 /* end confdefs.h. */
16267 /* Override any gcc2 internal prototype to avoid an error. */
16271 /* We use char because int might match the return type of a gcc2
16272 builtin and then its argument prototype would still apply. */
16282 rm -f conftest.$ac_objext conftest$ac_exeext
16283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16284 (eval $ac_link) 2>conftest.er1
16286 grep -v '^ *+' conftest.er1 >conftest.err
16288 cat conftest.err >&5
16289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16290 (exit $ac_status); } &&
16291 { ac_try='test -z "$ac_c_werror_flag"
16292 || test ! -s conftest.err'
16293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16294 (eval $ac_try) 2>&5
16296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16297 (exit $ac_status); }; } &&
16298 { ac_try='test -s conftest$ac_exeext'
16299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16300 (eval $ac_try) 2>&5
16302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16303 (exit $ac_status); }; }; then
16304 ac_cv_search_dlopen="-l$ac_lib"
16307 echo "$as_me: failed program was:" >&5
16308 sed 's/^/| /' conftest.$ac_ext >&5
16311 rm -f conftest.err conftest.$ac_objext \
16312 conftest$ac_exeext conftest.$ac_ext
16315 LIBS=$ac_func_search_save_LIBS
16317 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
16318 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
16319 if test "$ac_cv_search_dlopen" != no; then
16320 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
16326 # ------------------------------------------
16327 # Where to place working dir
16328 # ------------------------------------------
16329 working_dir=`eval echo ${prefix}/var/bacula/working`
16331 # Check whether --with-working-dir or --without-working-dir was given.
16332 if test "${with_working_dir+set}" = set; then
16333 withval="$with_working_dir"
16335 if test "x$withval" != "xno" ; then
16336 working_dir=$withval
16345 # ------------------------------------------
16346 # Where to place scriptdir (script files)
16347 # ------------------------------------------
16348 scriptdir=`eval echo ${sysconfdir}`
16350 # Check whether --with-scriptdir or --without-scriptdir was given.
16351 if test "${with_scriptdir+set}" = set; then
16352 withval="$with_scriptdir"
16354 if test "x$withval" != "xno" ; then
16364 # ------------------------------------------
16365 # Where to send dump email
16366 # ------------------------------------------
16367 dump_email=root@localhost
16369 # Check whether --with-dump-email or --without-dump-email was given.
16370 if test "${with_dump_email+set}" = set; then
16371 withval="$with_dump_email"
16373 if test "x$withval" != "xno" ; then
16374 dump_email=$withval
16382 # ------------------------------------------
16383 # Where to send job email
16384 # ------------------------------------------
16385 job_email=root@localhost
16387 # Check whether --with-job-email or --without-job-email was given.
16388 if test "${with_job_email+set}" = set; then
16389 withval="$with_job_email"
16391 if test "x$withval" != "xno" ; then
16400 # ------------------------------------------
16401 # Where to find smtp host
16402 # ------------------------------------------
16403 smtp_host=localhost
16405 # Check whether --with-smtp_host or --without-smtp_host was given.
16406 if test "${with_smtp_host+set}" = set; then
16407 withval="$with_smtp_host"
16409 if test "x$withval" != "xno" ; then
16419 # ------------------------------------
16420 # Where to place pid files
16421 # ------------------------------------
16424 # Check whether --with-pid-dir or --without-pid-dir was given.
16425 if test "${with_pid_dir+set}" = set; then
16426 withval="$with_pid_dir"
16428 if test "x$withval" != "xno" ; then
16435 cat >>confdefs.h <<_ACEOF
16436 #define _PATH_BACULA_PIDDIR "$piddir"
16442 # ------------------------------------
16443 # Where to place subsys "lock file"
16444 # ------------------------------------
16445 subsysdir=/var/run/subsys
16446 if test -d /var/run/subsys; then
16447 subsysdir=/var/run/subsys
16448 elif test -d /var/lock/subsys; then
16449 subsysdir=/var/lock/subsys
16451 subsysdir=/var/run/subsys
16454 # Check whether --with-subsys-dir or --without-subsys-dir was given.
16455 if test "${with_subsys_dir+set}" = set; then
16456 withval="$with_subsys_dir"
16458 if test "x$withval" != "xno" ; then
16469 # ------------------------------------
16470 # Where to start assigning ports
16471 # ------------------------------------
16474 # Check whether --with-baseport or --without-baseport was given.
16475 if test "${with_baseport+set}" = set; then
16476 withval="$with_baseport"
16478 if test "x$withval" != "xno" ; then
16486 dir_port=`expr $baseport`
16487 fd_port=`expr $baseport + 1`
16488 sd_port=`expr $fd_port + 1`
16495 # ------------------------------------------
16496 # Generate passwords
16497 # ------------------------------------------
16500 # Check whether --with-dir-password or --without-dir-password was given.
16501 if test "${with_dir_password+set}" = set; then
16502 withval="$with_dir_password"
16504 if test "x$withval" != "xno" ; then
16505 dir_password=$withval
16511 if test "x$dir_password" = "x" ; then
16512 if test "x$OPENSSL" = "xnone" ; then
16513 key=`autoconf/randpass 33`
16515 key=`openssl rand -base64 33`
16522 # Check whether --with-fd-password or --without-fd-password was given.
16523 if test "${with_fd_password+set}" = set; then
16524 withval="$with_fd_password"
16526 if test "x$withval" != "xno" ; then
16527 fd_password=$withval
16533 if test "x$fd_password" = "x" ; then
16534 if test "x$OPENSSL" = "xnone" ; then
16535 key=`autoconf/randpass 37`
16537 key=`openssl rand -base64 33`
16544 # Check whether --with-sd-password or --without-sd-password was given.
16545 if test "${with_sd_password+set}" = set; then
16546 withval="$with_sd_password"
16548 if test "x$withval" != "xno" ; then
16549 sd_password=$withval
16555 if test "x$sd_password" = "x" ; then
16556 if test "x$OPENSSL" = "xnone" ; then
16557 key=`autoconf/randpass 41`
16559 key=`openssl rand -base64 33`
16566 # Check whether --with-mon-dir-password or --without-mon-dir-password was given.
16567 if test "${with_mon_dir_password+set}" = set; then
16568 withval="$with_mon_dir_password"
16570 if test "x$withval" != "xno" ; then
16571 mon_dir_password=$withval
16577 if test "x$mon_dir_password" = "x" ; then
16578 if test "x$OPENSSL" = "xnone" ; then
16579 key=`autoconf/randpass 33`
16581 key=`openssl rand -base64 33`
16583 mon_dir_password=$key
16588 # Check whether --with-mon-fd-password or --without-mon-fd-password was given.
16589 if test "${with_mon_fd_password+set}" = set; then
16590 withval="$with_mon_fd_password"
16592 if test "x$withval" != "xno" ; then
16593 mon_fd_password=$withval
16599 if test "x$mon_fd_password" = "x" ; then
16600 if test "x$OPENSSL" = "xnone" ; then
16601 key=`autoconf/randpass 37`
16603 key=`openssl rand -base64 33`
16605 mon_fd_password=$key
16610 # Check whether --with-mon-sd-password or --without-mon-sd-password was given.
16611 if test "${with_mon_sd_password+set}" = set; then
16612 withval="$with_mon_sd_password"
16614 if test "x$withval" != "xno" ; then
16615 mon_sd_password=$withval
16621 if test "x$mon_sd_password" = "x" ; then
16622 if test "x$OPENSSL" = "xnone" ; then
16623 key=`autoconf/randpass 41`
16625 key=`openssl rand -base64 33`
16627 mon_sd_password=$key
16638 # Pickup any database name
16642 # Check whether --with-db_name or --without-db_name was given.
16643 if test "${with_db_name+set}" = set; then
16644 withval="$with_db_name"
16646 if test "x$withval" != "x" ; then
16656 # Check whether --with-db_user or --without-db_user was given.
16657 if test "${with_db_user+set}" = set; then
16658 withval="$with_db_user"
16660 if test "x$withval" != "x" ; then
16670 # Handle users and groups for each daemon
16674 # Check whether --with-dir_user or --without-dir_user was given.
16675 if test "${with_dir_user+set}" = set; then
16676 withval="$with_dir_user"
16678 if test "x$withval" != "x" ; then
16687 # Check whether --with-dir_group or --without-dir_group was given.
16688 if test "${with_dir_group+set}" = set; then
16689 withval="$with_dir_group"
16691 if test "x$withval" != "x" ; then
16700 # Check whether --with-sd_user or --without-sd_user was given.
16701 if test "${with_sd_user+set}" = set; then
16702 withval="$with_sd_user"
16704 if test "x$withval" != "x" ; then
16713 # Check whether --with-sd_group or --without-sd_group was given.
16714 if test "${with_sd_group+set}" = set; then
16715 withval="$with_sd_group"
16717 if test "x$withval" != "x" ; then
16726 # Check whether --with-fd_user or --without-fd_user was given.
16727 if test "${with_fd_user+set}" = set; then
16728 withval="$with_fd_user"
16730 if test "x$withval" != "x" ; then
16739 # Check whether --with-fd_group or --without-fd_group was given.
16740 if test "${with_fd_group+set}" = set; then
16741 withval="$with_fd_group"
16743 if test "x$withval" != "x" ; then
16758 # allow setting default executable permissions
16762 # Check whether --with-sbin-perm or --without-sbin-perm was given.
16763 if test "${with_sbin_perm+set}" = set; then
16764 withval="$with_sbin_perm"
16766 if test "x$withval" != "x" ; then
16775 # ------------------------------------------------
16776 # Bacula check for various SQL database engines
16777 # ------------------------------------------------
16781 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
16782 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
16784 # Check whether --with-postgresql or --without-postgresql was given.
16785 if test "${with_postgresql+set}" = set; then
16786 withval="$with_postgresql"
16788 if test "$withval" != "no"; then
16789 if test "$db_found" = "yes"; then
16790 echo "$as_me:$LINENO: result: error" >&5
16791 echo "${ECHO_T}error" >&6
16792 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
16793 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
16794 { (exit 1); exit 1; }; };
16796 if test "$withval" = "yes"; then
16797 PG_CONFIG=`which pg_config`
16798 if test -n "$PG_CONFIG";then
16799 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
16800 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
16801 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
16802 elif test -f /usr/local/include/libpq-fe.h; then
16803 POSTGRESQL_INCDIR=/usr/local/include
16804 if test -d /usr/local/lib64; then
16805 POSTGRESQL_LIBDIR=/usr/local/lib64
16807 POSTGRESQL_LIBDIR=/usr/local/lib
16809 POSTGRESQL_BINDIR=/usr/local/bin
16810 elif test -f /usr/include/libpq-fe.h; then
16811 POSTGRESQL_INCDIR=/usr/include
16812 if test -d /usr/lib64; then
16813 POSTGRESQL_LIBDIR=/usr/lib64
16815 POSTGRESQL_LIBDIR=/usr/lib
16817 POSTGRESQL_BINDIR=/usr/bin
16818 elif test -f /usr/include/pgsql/libpq-fe.h; then
16819 POSTGRESQL_INCDIR=/usr/include/pgsql
16820 if test -d /usr/lib64/pgsql; then
16821 POSTGRESQL_LIBDIR=/usr/lib64/pgsql
16823 POSTGRESQL_LIBDIR=/usr/lib/pgsql
16825 POSTGRESQL_BINDIR=/usr/bin
16826 elif test -f /usr/include/postgresql/libpq-fe.h; then
16827 POSTGRESQL_INCDIR=/usr/include/postgresql
16828 if test -d /usr/lib64/postgresql; then
16829 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
16831 POSTGRESQL_LIBDIR=/usr/lib/postgresql
16833 POSTGRESQL_BINDIR=/usr/bin
16835 echo "$as_me:$LINENO: result: no" >&5
16836 echo "${ECHO_T}no" >&6
16837 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
16838 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
16839 { (exit 1); exit 1; }; }
16841 elif test -f $withval/include/libpq-fe.h; then
16842 POSTGRESQL_INCDIR=$withval/include
16843 POSTGRESQL_LIBDIR=$withval/lib
16844 POSTGRESQL_BINDIR=$withval/bin
16845 elif test -f $withval/include/postgresql/libpq-fe.h; then
16846 POSTGRESQL_INCDIR=$withval/include/postgresql
16847 if test -d $withval/lib64; then
16848 POSTGRESQL_LIBDIR=$withval/lib64
16850 POSTGRESQL_LIBDIR=$withval/lib
16852 POSTGRESQL_BINDIR=$withval/bin
16854 echo "$as_me:$LINENO: result: no" >&5
16855 echo "${ECHO_T}no" >&6
16856 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
16857 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
16858 { (exit 1); exit 1; }; }
16860 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
16861 echo "$as_me:$LINENO: checking for crypt" >&5
16862 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
16863 if test "${ac_cv_func_crypt+set}" = set; then
16864 echo $ECHO_N "(cached) $ECHO_C" >&6
16866 cat >conftest.$ac_ext <<_ACEOF
16869 cat confdefs.h >>conftest.$ac_ext
16870 cat >>conftest.$ac_ext <<_ACEOF
16871 /* end confdefs.h. */
16872 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
16873 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16874 #define crypt innocuous_crypt
16876 /* System header to define __stub macros and hopefully few prototypes,
16877 which can conflict with char crypt (); below.
16878 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16879 <limits.h> exists even on freestanding compilers. */
16882 # include <limits.h>
16884 # include <assert.h>
16889 /* Override any gcc2 internal prototype to avoid an error. */
16894 /* We use char because int might match the return type of a gcc2
16895 builtin and then its argument prototype would still apply. */
16897 /* The GNU C library defines this for functions which it implements
16898 to always fail with ENOSYS. Some functions are actually named
16899 something starting with __ and the normal name is an alias. */
16900 #if defined (__stub_crypt) || defined (__stub___crypt)
16903 char (*f) () = crypt;
16917 rm -f conftest.$ac_objext conftest$ac_exeext
16918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16919 (eval $ac_link) 2>conftest.er1
16921 grep -v '^ *+' conftest.er1 >conftest.err
16923 cat conftest.err >&5
16924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16925 (exit $ac_status); } &&
16926 { ac_try='test -z "$ac_c_werror_flag"
16927 || test ! -s conftest.err'
16928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16929 (eval $ac_try) 2>&5
16931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16932 (exit $ac_status); }; } &&
16933 { ac_try='test -s conftest$ac_exeext'
16934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16935 (eval $ac_try) 2>&5
16937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16938 (exit $ac_status); }; }; then
16939 ac_cv_func_crypt=yes
16941 echo "$as_me: failed program was:" >&5
16942 sed 's/^/| /' conftest.$ac_ext >&5
16944 ac_cv_func_crypt=no
16946 rm -f conftest.err conftest.$ac_objext \
16947 conftest$ac_exeext conftest.$ac_ext
16949 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
16950 echo "${ECHO_T}$ac_cv_func_crypt" >&6
16951 if test $ac_cv_func_crypt = yes; then
16954 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
16955 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
16956 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
16957 echo $ECHO_N "(cached) $ECHO_C" >&6
16959 ac_check_lib_save_LIBS=$LIBS
16960 LIBS="-lcrypt $LIBS"
16961 cat >conftest.$ac_ext <<_ACEOF
16964 cat confdefs.h >>conftest.$ac_ext
16965 cat >>conftest.$ac_ext <<_ACEOF
16966 /* end confdefs.h. */
16968 /* Override any gcc2 internal prototype to avoid an error. */
16972 /* We use char because int might match the return type of a gcc2
16973 builtin and then its argument prototype would still apply. */
16983 rm -f conftest.$ac_objext conftest$ac_exeext
16984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16985 (eval $ac_link) 2>conftest.er1
16987 grep -v '^ *+' conftest.er1 >conftest.err
16989 cat conftest.err >&5
16990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16991 (exit $ac_status); } &&
16992 { ac_try='test -z "$ac_c_werror_flag"
16993 || test ! -s conftest.err'
16994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16995 (eval $ac_try) 2>&5
16997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16998 (exit $ac_status); }; } &&
16999 { ac_try='test -s conftest$ac_exeext'
17000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17001 (eval $ac_try) 2>&5
17003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17004 (exit $ac_status); }; }; then
17005 ac_cv_lib_crypt_crypt=yes
17007 echo "$as_me: failed program was:" >&5
17008 sed 's/^/| /' conftest.$ac_ext >&5
17010 ac_cv_lib_crypt_crypt=no
17012 rm -f conftest.err conftest.$ac_objext \
17013 conftest$ac_exeext conftest.$ac_ext
17014 LIBS=$ac_check_lib_save_LIBS
17016 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
17017 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
17018 if test $ac_cv_lib_crypt_crypt = yes; then
17019 POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
17024 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
17025 SQL_LFLAGS=$POSTGRESQL_LFLAGS
17026 SQL_BINDIR=$POSTGRESQL_BINDIR
17027 SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
17029 cat >>confdefs.h <<\_ACEOF
17030 #define HAVE_POSTGRESQL 1
17033 echo "$as_me:$LINENO: result: yes" >&5
17034 echo "${ECHO_T}yes" >&6
17036 support_postgresql=yes
17040 echo "$as_me:$LINENO: result: no" >&5
17041 echo "${ECHO_T}no" >&6
17046 echo "$as_me:$LINENO: result: no" >&5
17047 echo "${ECHO_T}no" >&6
17058 echo "$as_me:$LINENO: checking for MySQL support" >&5
17059 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
17061 # Check whether --with-mysql or --without-mysql was given.
17062 if test "${with_mysql+set}" = set; then
17063 withval="$with_mysql"
17065 if test "$withval" != "no"; then
17066 if test "$withval" = "yes"; then
17067 if test -f /usr/local/mysql/include/mysql/mysql.h; then
17068 MYSQL_INCDIR=/usr/local/mysql/include/mysql
17069 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
17070 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
17071 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
17073 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
17075 MYSQL_BINDIR=/usr/local/mysql/bin
17076 elif test -f /usr/include/mysql/mysql.h; then
17077 MYSQL_INCDIR=/usr/include/mysql
17078 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
17079 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
17080 MYSQL_LIBDIR=/usr/lib64/mysql
17081 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
17082 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
17083 MYSQL_LIBDIR=/usr/lib/mysql
17085 MYSQL_LIBDIR=/usr/lib
17087 MYSQL_BINDIR=/usr/bin
17088 elif test -f /usr/include/mysql.h; then
17089 MYSQL_INCDIR=/usr/include
17090 if test -f /usr/lib64/libmysqlclient_r.a \
17091 -o -f /usr/lib64/libmysqlclient_r.so; then
17092 MYSQL_LIBDIR=/usr/lib64
17094 MYSQL_LIBDIR=/usr/lib
17096 MYSQL_BINDIR=/usr/bin
17097 elif test -f /usr/local/include/mysql/mysql.h; then
17098 MYSQL_INCDIR=/usr/local/include/mysql
17099 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
17100 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
17101 MYSQL_LIBDIR=/usr/local/lib64/mysql
17103 MYSQL_LIBDIR=/usr/local/lib/mysql
17105 MYSQL_BINDIR=/usr/local/bin
17106 elif test -f /usr/local/include/mysql.h; then
17107 MYSQL_INCDIR=/usr/local/include
17108 if test -f /usr/local/lib64/libmysqlclient_r.a \
17109 -o -f /usr/local/lib64/libmysqlclient_r.so; then
17110 MYSQL_LIBDIR=/usr/local/lib64
17112 MYSQL_LIBDIR=/usr/local/lib
17114 MYSQL_BINDIR=/usr/local/bin
17116 echo "$as_me:$LINENO: result: no" >&5
17117 echo "${ECHO_T}no" >&6
17118 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
17119 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
17120 { (exit 1); exit 1; }; }
17123 if test -f $withval/include/mysql/mysql.h; then
17124 MYSQL_INCDIR=$withval/include/mysql
17125 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
17126 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
17127 MYSQL_LIBDIR=$withval/lib64/mysql
17129 MYSQL_LIBDIR=$withval/lib/mysql
17131 if test -f $withval/lib/libmysqlclient_r.so; then
17132 MYSQL_LIBDIR=$withval/lib
17135 MYSQL_BINDIR=$withval/bin
17136 elif test -f $withval/include/mysql.h; then
17137 MYSQL_INCDIR=$withval/include
17138 if test -f $withval/lib64/libmysqlclient_r.a \
17139 -o -f $withval/lib64/libmysqlclient_r.so; then
17140 MYSQL_LIBDIR=$withval/lib64
17142 MYSQL_LIBDIR=$withval/lib
17144 MYSQL_BINDIR=$withval/bin
17146 echo "$as_me:$LINENO: result: no" >&5
17147 echo "${ECHO_T}no" >&6
17148 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
17149 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
17150 { (exit 1); exit 1; }; }
17153 SQL_INCLUDE=-I$MYSQL_INCDIR
17154 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
17155 -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
17156 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
17157 cat >>confdefs.h <<\_ACEOF
17158 #define HAVE_THREAD_SAFE_MYSQL 1
17162 SQL_BINDIR=$MYSQL_BINDIR
17163 SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
17165 cat >>confdefs.h <<\_ACEOF
17166 #define HAVE_MYSQL 1
17169 echo "$as_me:$LINENO: result: yes" >&5
17170 echo "${ECHO_T}yes" >&6
17177 echo "$as_me:$LINENO: result: no" >&5
17178 echo "${ECHO_T}no" >&6
17185 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
17186 if test "${with_embedded_mysql+set}" = set; then
17187 withval="$with_embedded_mysql"
17189 if test "$withval" != "no"; then
17190 if test "$withval" = "yes"; then
17191 if test -f /usr/local/mysql/include/mysql/mysql.h; then
17192 MYSQL_INCDIR=/usr/local/mysql/include/mysql
17193 if test -d /usr/local/mysql/lib64/mysql; then
17194 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
17196 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
17198 MYSQL_BINDIR=/usr/local/mysql/bin
17199 elif test -f /usr/include/mysql/mysql.h; then
17200 MYSQL_INCDIR=/usr/include/mysql
17201 if test -d /usr/lib64/mysql; then
17202 MYSQL_LIBDIR=/usr/lib64/mysql
17204 MYSQL_LIBDIR=/usr/lib/mysql
17206 MYSQL_BINDIR=/usr/bin
17207 elif test -f /usr/include/mysql.h; then
17208 MYSQL_INCDIR=/usr/include
17209 if test -d /usr/lib64; then
17210 MYSQL_LIBDIR=/usr/lib64
17212 MYSQL_LIBDIR=/usr/lib
17214 MYSQL_BINDIR=/usr/bin
17215 elif test -f /usr/local/include/mysql/mysql.h; then
17216 MYSQL_INCDIR=/usr/local/include/mysql
17217 if test -d /usr/local/lib64/mysql; then
17218 MYSQL_LIBDIR=/usr/local/lib64/mysql
17220 MYSQL_LIBDIR=/usr/local/lib/mysql
17222 MYSQL_BINDIR=/usr/local/bin
17223 elif test -f /usr/local/include/mysql.h; then
17224 MYSQL_INCDIR=/usr/local/include
17225 if test -d /usr/local/lib64; then
17226 MYSQL_LIBDIR=/usr/local/lib64
17228 MYSQL_LIBDIR=/usr/local/lib
17230 MYSQL_BINDIR=/usr/local/bin
17232 echo "$as_me:$LINENO: result: no" >&5
17233 echo "${ECHO_T}no" >&6
17234 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
17235 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
17236 { (exit 1); exit 1; }; }
17239 if test -f $withval/include/mysql/mysql.h; then
17240 MYSQL_INCDIR=$withval/include/mysql
17241 if test -d $withval/lib64/mysql; then
17242 MYSQL_LIBDIR=$withval/lib64/mysql
17244 MYSQL_LIBDIR=$withval/lib/mysql
17246 MYSQL_BINDIR=$withval/bin
17247 elif test -f $withval/include/mysql.h; then
17248 MYSQL_INCDIR=$withval/include
17249 if test -d $withval/lib64; then
17250 MYSQL_LIBDIR=$withval/lib64
17252 MYSQL_LIBDIR=$withval/lib
17254 MYSQL_BINDIR=$withval/bin
17256 echo "$as_me:$LINENO: result: no" >&5
17257 echo "${ECHO_T}no" >&6
17258 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
17259 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
17260 { (exit 1); exit 1; }; }
17263 SQL_INCLUDE=-I$MYSQL_INCDIR
17264 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
17265 SQL_BINDIR=$MYSQL_BINDIR
17266 SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
17268 cat >>confdefs.h <<\_ACEOF
17269 #define HAVE_MYSQL 1
17272 cat >>confdefs.h <<\_ACEOF
17273 #define HAVE_EMBEDDED_MYSQL 1
17276 echo "$as_me:$LINENO: result: yes" >&5
17277 echo "${ECHO_T}yes" >&6
17284 echo "$as_me:$LINENO: result: no" >&5
17285 echo "${ECHO_T}no" >&6
17300 echo "$as_me:$LINENO: checking for SQLite3 support" >&5
17301 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6
17303 # Check whether --with-sqlite3 or --without-sqlite3 was given.
17304 if test "${with_sqlite3+set}" = set; then
17305 withval="$with_sqlite3"
17307 if test "$withval" != "no"; then
17308 if test "$withval" = "yes"; then
17309 if test -f /usr/local/include/sqlite3.h; then
17310 SQLITE_INCDIR=/usr/local/include
17311 if test -d /usr/local/lib64; then
17312 SQLITE_LIBDIR=/usr/local/lib64
17314 SQLITE_LIBDIR=/usr/local/lib
17316 SQLITE_BINDIR=/usr/local/bin
17317 elif test -f /usr/include/sqlite3.h; then
17318 SQLITE_INCDIR=/usr/include
17319 if test -d /usr/lib64; then
17320 SQLITE_LIBDIR=/usr/lib64
17322 SQLITE_LIBDIR=/usr/lib
17324 SQLITE_BINDIR=/usr/bin
17325 elif test -f $prefix/include/sqlite3.h; then
17326 SQLITE_INCDIR=$prefix/include
17327 if test -d $prefix/lib64; then
17328 SQLITE_LIBDIR=$prefix/lib64
17330 SQLITE_LIBDIR=$prefix/lib
17332 SQLITE_BINDIR=$prefix/bin
17334 echo "$as_me:$LINENO: result: no" >&5
17335 echo "${ECHO_T}no" >&6
17336 { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
17337 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
17338 { (exit 1); exit 1; }; }
17341 if test -f $withval/sqlite3.h; then
17342 SQLITE_INCDIR=$withval
17343 SQLITE_LIBDIR=$withval
17344 SQLITE_BINDIR=$withval
17345 elif test -f $withval/include/sqlite3.h; then
17346 SQLITE_INCDIR=$withval/include
17347 if test -d $withval/lib64; then
17348 SQLITE_LIBDIR=$withval/lib64
17350 SQLITE_LIBDIR=$withval/lib
17352 SQLITE_BINDIR=$withval/bin
17354 echo "$as_me:$LINENO: result: no" >&5
17355 echo "${ECHO_T}no" >&6
17356 { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
17357 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
17358 { (exit 1); exit 1; }; }
17361 SQL_INCLUDE=-I$SQLITE_INCDIR
17362 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
17363 SQL_BINDIR=$SQLITE_BINDIR
17364 SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
17366 cat >>confdefs.h <<\_ACEOF
17367 #define HAVE_SQLITE3 1
17370 echo "$as_me:$LINENO: result: yes" >&5
17371 echo "${ECHO_T}yes" >&6
17373 support_sqlite3=yes
17378 echo "$as_me:$LINENO: result: no" >&5
17379 echo "${ECHO_T}no" >&6
17384 echo "$as_me:$LINENO: result: no" >&5
17385 echo "${ECHO_T}no" >&6
17396 echo "$as_me:$LINENO: checking for SQLite support" >&5
17397 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
17399 # Check whether --with-sqlite or --without-sqlite was given.
17400 if test "${with_sqlite+set}" = set; then
17401 withval="$with_sqlite"
17403 if test "$withval" != "no"; then
17404 if test "$withval" = "yes"; then
17405 if test -f /usr/local/include/sqlite.h; then
17406 SQLITE_INCDIR=/usr/local/include
17407 if test -d /usr/local/lib64; then
17408 SQLITE_LIBDIR=/usr/local/lib64
17410 SQLITE_LIBDIR=/usr/local/lib
17412 SQLITE_BINDIR=/usr/local/bin
17413 elif test -f /usr/include/sqlite.h; then
17414 SQLITE_INCDIR=/usr/include
17415 if test -d /usr/lib64; then
17416 SQLITE_LIBDIR=/usr/lib64
17418 SQLITE_LIBDIR=/usr/lib
17420 SQLITE_BINDIR=/usr/bin
17421 elif test -f $prefix/include/sqlite.h; then
17422 SQLITE_INCDIR=$prefix/include
17423 if test -d $prefix/lib64; then
17424 SQLITE_LIBDIR=$prefix/lib64
17426 SQLITE_LIBDIR=$prefix/lib
17428 SQLITE_BINDIR=$prefix/bin
17430 echo "$as_me:$LINENO: result: no" >&5
17431 echo "${ECHO_T}no" >&6
17432 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
17433 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
17434 { (exit 1); exit 1; }; }
17437 if test -f $withval/sqlite.h; then
17438 SQLITE_INCDIR=$withval
17439 SQLITE_LIBDIR=$withval
17440 SQLITE_BINDIR=$withval
17441 elif test -f $withval/include/sqlite.h; then
17442 SQLITE_INCDIR=$withval/include
17443 if test -d $withval/lib64; then
17444 SQLITE_LIBDIR=$withval/lib64
17446 SQLITE_LIBDIR=$withval/lib
17448 SQLITE_BINDIR=$withval/bin
17450 echo "$as_me:$LINENO: result: no" >&5
17451 echo "${ECHO_T}no" >&6
17452 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
17453 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
17454 { (exit 1); exit 1; }; }
17457 SQL_INCLUDE=-I$SQLITE_INCDIR
17458 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
17459 SQL_BINDIR=$SQLITE_BINDIR
17460 SQL_LIB=$SQLITE_LIBDIR/libsqlite.a
17462 cat >>confdefs.h <<\_ACEOF
17463 #define HAVE_SQLITE 1
17466 echo "$as_me:$LINENO: result: yes" >&5
17467 echo "${ECHO_T}yes" >&6
17474 echo "$as_me:$LINENO: result: no" >&5
17475 echo "${ECHO_T}no" >&6
17480 echo "$as_me:$LINENO: result: no" >&5
17481 echo "${ECHO_T}no" >&6
17493 # -------------------------------------------
17494 # enable batch attribute DB insert (default on)
17495 # -------------------------------------------
17496 support_batch_insert=no
17497 A=`nm $SQL_LIB | grep pthread_mutex_lock`
17499 if test $pkg = 0; then
17500 support_batch_insert=yes
17501 # Check whether --enable-batch-insert or --disable-batch-insert was given.
17502 if test "${enable_batch_insert+set}" = set; then
17503 enableval="$enable_batch_insert"
17504 if test x$enableval = xno; then
17505 support_batch_insert=no
17507 support_batch_insert=yes
17512 if test $support_batch_insert = yes ; then
17514 cat >>confdefs.h <<\_ACEOF
17515 #define HAVE_BATCH_FILE_INSERT 1
17521 cat >>confdefs.h <<\_ACEOF
17522 #define PROTOTYPES 1
17526 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
17527 if test -z "$CCOPTS"; then
17528 CCOPTS='-g -O2 -Wall'
17536 largefile_support="no"
17538 # Check whether --enable-largefile or --disable-largefile was given.
17539 if test "${enable_largefile+set}" = set; then
17540 enableval="$enable_largefile"
17543 if test "$enable_largefile" != no; then
17544 if test -n "$ac_tool_prefix"; then
17545 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
17546 set dummy ${ac_tool_prefix}getconf; ac_word=$2
17547 echo "$as_me:$LINENO: checking for $ac_word" >&5
17548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17549 if test "${ac_cv_prog_GETCONF+set}" = set; then
17550 echo $ECHO_N "(cached) $ECHO_C" >&6
17552 if test -n "$GETCONF"; then
17553 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
17555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17556 for as_dir in $PATH
17559 test -z "$as_dir" && as_dir=.
17560 for ac_exec_ext in '' $ac_executable_extensions; do
17561 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17562 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
17563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17571 GETCONF=$ac_cv_prog_GETCONF
17572 if test -n "$GETCONF"; then
17573 echo "$as_me:$LINENO: result: $GETCONF" >&5
17574 echo "${ECHO_T}$GETCONF" >&6
17576 echo "$as_me:$LINENO: result: no" >&5
17577 echo "${ECHO_T}no" >&6
17581 if test -z "$ac_cv_prog_GETCONF"; then
17582 ac_ct_GETCONF=$GETCONF
17583 # Extract the first word of "getconf", so it can be a program name with args.
17584 set dummy getconf; ac_word=$2
17585 echo "$as_me:$LINENO: checking for $ac_word" >&5
17586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17587 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
17588 echo $ECHO_N "(cached) $ECHO_C" >&6
17590 if test -n "$ac_ct_GETCONF"; then
17591 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
17593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17594 for as_dir in $PATH
17597 test -z "$as_dir" && as_dir=.
17598 for ac_exec_ext in '' $ac_executable_extensions; do
17599 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17600 ac_cv_prog_ac_ct_GETCONF="getconf"
17601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17609 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
17610 if test -n "$ac_ct_GETCONF"; then
17611 echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
17612 echo "${ECHO_T}$ac_ct_GETCONF" >&6
17614 echo "$as_me:$LINENO: result: no" >&5
17615 echo "${ECHO_T}no" >&6
17618 GETCONF=$ac_ct_GETCONF
17620 GETCONF="$ac_cv_prog_GETCONF"
17623 echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
17624 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
17625 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
17626 echo $ECHO_N "(cached) $ECHO_C" >&6
17628 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
17629 ac_cv_sys_largefile_CFLAGS=no
17631 # IRIX 6.2 and later require cc -n32.
17632 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
17633 if test "$GCC" != yes; then
17634 ac_cv_sys_largefile_CFLAGS=-n32
17637 CC="$CC $ac_cv_sys_largefile_CFLAGS"
17638 cat >conftest.$ac_ext <<_ACEOF
17641 cat confdefs.h >>conftest.$ac_ext
17642 cat >>conftest.$ac_ext <<_ACEOF
17643 /* end confdefs.h. */
17653 rm -f conftest.$ac_objext conftest$ac_exeext
17654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17655 (eval $ac_link) 2>conftest.er1
17657 grep -v '^ *+' conftest.er1 >conftest.err
17659 cat conftest.err >&5
17660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17661 (exit $ac_status); } &&
17662 { ac_try='test -z "$ac_c_werror_flag"
17663 || test ! -s conftest.err'
17664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17665 (eval $ac_try) 2>&5
17667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17668 (exit $ac_status); }; } &&
17669 { ac_try='test -s conftest$ac_exeext'
17670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17671 (eval $ac_try) 2>&5
17673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17674 (exit $ac_status); }; }; then
17677 echo "$as_me: failed program was:" >&5
17678 sed 's/^/| /' conftest.$ac_ext >&5
17680 ac_cv_sys_largefile_CFLAGS=no
17682 rm -f conftest.err conftest.$ac_objext \
17683 conftest$ac_exeext conftest.$ac_ext
17688 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
17689 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
17690 echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
17691 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
17692 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
17693 echo $ECHO_N "(cached) $ECHO_C" >&6
17695 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
17696 ac_cv_sys_largefile_LDFLAGS=no
17700 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
17701 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
17702 echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
17703 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
17704 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
17705 echo $ECHO_N "(cached) $ECHO_C" >&6
17707 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
17708 ac_cv_sys_largefile_LIBS=no
17712 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
17713 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
17715 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17718 -D_FILE_OFFSET_BITS=*) ;;
17719 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
17720 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
17725 case "$CPPFLAGS" in
17726 '') CPPFLAGS="$ac_flag" ;;
17727 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
17735 '') CFLAGS="$ac_flag" ;;
17736 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
17741 case "$ac_cv_sys_largefile_LDFLAGS" in
17745 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
17746 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
17749 case "$ac_cv_sys_largefile_LIBS" in
17753 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
17754 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
17757 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
17758 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
17759 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
17760 echo $ECHO_N "(cached) $ECHO_C" >&6
17762 ac_cv_sys_file_offset_bits=no
17763 ac_cv_sys_file_offset_bits=64
17764 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17766 -D_FILE_OFFSET_BITS)
17767 ac_cv_sys_file_offset_bits=1 ;;
17768 -D_FILE_OFFSET_BITS=*)
17769 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
17774 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
17775 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
17776 if test "$ac_cv_sys_file_offset_bits" != no; then
17778 cat >>confdefs.h <<_ACEOF
17779 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
17783 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
17784 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
17785 if test "${ac_cv_sys_largefile_source+set}" = set; then
17786 echo $ECHO_N "(cached) $ECHO_C" >&6
17788 ac_cv_sys_largefile_source=no
17789 ac_cv_sys_largefile_source=1
17790 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17792 -D_LARGEFILE_SOURCE)
17793 ac_cv_sys_largefile_source=1 ;;
17794 -D_LARGEFILE_SOURCE=*)
17795 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
17800 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
17801 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
17802 if test "$ac_cv_sys_largefile_source" != no; then
17804 cat >>confdefs.h <<_ACEOF
17805 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17809 echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
17810 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
17811 if test "${ac_cv_sys_large_files+set}" = set; then
17812 echo $ECHO_N "(cached) $ECHO_C" >&6
17814 ac_cv_sys_large_files=no
17815 ac_cv_sys_large_files=1
17816 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17819 ac_cv_sys_large_files=1 ;;
17821 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
17826 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
17827 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
17828 if test "$ac_cv_sys_large_files" != no; then
17830 cat >>confdefs.h <<_ACEOF
17831 #define _LARGE_FILES $ac_cv_sys_large_files
17839 echo "$as_me:$LINENO: checking for X" >&5
17840 echo $ECHO_N "checking for X... $ECHO_C" >&6
17843 # Check whether --with-x or --without-x was given.
17844 if test "${with_x+set}" = set; then
17848 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
17849 if test "x$with_x" = xno; then
17850 # The user explicitly disabled X.
17853 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
17854 # Both variables are already set.
17857 if test "${ac_cv_have_x+set}" = set; then
17858 echo $ECHO_N "(cached) $ECHO_C" >&6
17860 # One or both of the vars are not set, and there is no cached value.
17861 ac_x_includes=no ac_x_libraries=no
17862 rm -fr conftest.dir
17863 if mkdir conftest.dir; then
17865 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
17866 cat >Imakefile <<'_ACEOF'
17868 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
17870 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
17871 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
17872 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
17873 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
17874 for ac_extension in a so sl; do
17875 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
17876 test -f $ac_im_libdir/libX11.$ac_extension; then
17877 ac_im_usrlibdir=$ac_im_libdir; break
17880 # Screen out bogus values from the imake configuration. They are
17881 # bogus both because they are the default anyway, and because
17882 # using them would break gcc on systems where it needs fixed includes.
17883 case $ac_im_incroot in
17885 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
17887 case $ac_im_usrlibdir in
17888 /usr/lib | /lib) ;;
17889 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
17893 rm -fr conftest.dir
17896 # Standard set of common directories for X headers.
17897 # Check X11 before X11Rn because it is often a symlink to the current release.
17909 /usr/local/X11/include
17910 /usr/local/X11R6/include
17911 /usr/local/X11R5/include
17912 /usr/local/X11R4/include
17914 /usr/local/include/X11
17915 /usr/local/include/X11R6
17916 /usr/local/include/X11R5
17917 /usr/local/include/X11R4
17921 /usr/XFree86/include/X11
17925 /usr/unsupported/include
17926 /usr/athena/include
17927 /usr/local/x11r5/include
17928 /usr/lpp/Xamples/include
17930 /usr/openwin/include
17931 /usr/openwin/share/include'
17933 if test "$ac_x_includes" = no; then
17934 # Guess where to find include files, by looking for Xlib.h.
17935 # First, try using that file with no special directory specified.
17936 cat >conftest.$ac_ext <<_ACEOF
17939 cat confdefs.h >>conftest.$ac_ext
17940 cat >>conftest.$ac_ext <<_ACEOF
17941 /* end confdefs.h. */
17942 #include <X11/Xlib.h>
17944 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17945 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17947 grep -v '^ *+' conftest.er1 >conftest.err
17949 cat conftest.err >&5
17950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17951 (exit $ac_status); } >/dev/null; then
17952 if test -s conftest.err; then
17953 ac_cpp_err=$ac_c_preproc_warn_flag
17954 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17961 if test -z "$ac_cpp_err"; then
17962 # We can compile using X headers with no special include directory.
17965 echo "$as_me: failed program was:" >&5
17966 sed 's/^/| /' conftest.$ac_ext >&5
17968 for ac_dir in $ac_x_header_dirs; do
17969 if test -r "$ac_dir/X11/Xlib.h"; then
17970 ac_x_includes=$ac_dir
17975 rm -f conftest.err conftest.$ac_ext
17976 fi # $ac_x_includes = no
17978 if test "$ac_x_libraries" = no; then
17979 # Check for the libraries.
17980 # See if we find them without any special options.
17981 # Don't add to $LIBS permanently.
17984 cat >conftest.$ac_ext <<_ACEOF
17987 cat confdefs.h >>conftest.$ac_ext
17988 cat >>conftest.$ac_ext <<_ACEOF
17989 /* end confdefs.h. */
17990 #include <X11/Xlib.h>
17999 rm -f conftest.$ac_objext conftest$ac_exeext
18000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18001 (eval $ac_link) 2>conftest.er1
18003 grep -v '^ *+' conftest.er1 >conftest.err
18005 cat conftest.err >&5
18006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18007 (exit $ac_status); } &&
18008 { ac_try='test -z "$ac_c_werror_flag"
18009 || test ! -s conftest.err'
18010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18011 (eval $ac_try) 2>&5
18013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18014 (exit $ac_status); }; } &&
18015 { ac_try='test -s conftest$ac_exeext'
18016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18017 (eval $ac_try) 2>&5
18019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18020 (exit $ac_status); }; }; then
18022 # We can link X programs with no special library path.
18025 echo "$as_me: failed program was:" >&5
18026 sed 's/^/| /' conftest.$ac_ext >&5
18029 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
18031 # Don't even attempt the hair of trying to link an X program!
18032 for ac_extension in a so sl; do
18033 if test -r $ac_dir/libXt.$ac_extension; then
18034 ac_x_libraries=$ac_dir
18040 rm -f conftest.err conftest.$ac_objext \
18041 conftest$ac_exeext conftest.$ac_ext
18042 fi # $ac_x_libraries = no
18044 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
18045 # Didn't find X anywhere. Cache the known absence of X.
18046 ac_cv_have_x="have_x=no"
18048 # Record where we found X for the cache.
18049 ac_cv_have_x="have_x=yes \
18050 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
18055 eval "$ac_cv_have_x"
18058 if test "$have_x" != yes; then
18059 echo "$as_me:$LINENO: result: $have_x" >&5
18060 echo "${ECHO_T}$have_x" >&6
18063 # If each of the values was on the command line, it overrides each guess.
18064 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
18065 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
18066 # Update the cache value to reflect the command line values.
18067 ac_cv_have_x="have_x=yes \
18068 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
18069 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
18070 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
18073 if test "$no_x" = yes; then
18074 # Not all programs may use this symbol, but it does not hurt to define it.
18076 cat >>confdefs.h <<\_ACEOF
18077 #define X_DISPLAY_MISSING 1
18080 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
18082 if test -n "$x_includes"; then
18083 X_CFLAGS="$X_CFLAGS -I$x_includes"
18086 # It would also be nice to do this for all -L options, not just this one.
18087 if test -n "$x_libraries"; then
18088 X_LIBS="$X_LIBS -L$x_libraries"
18089 # For Solaris; some versions of Sun CC require a space after -R and
18090 # others require no space. Words are not sufficient . . . .
18091 case `(uname -sr) 2>/dev/null` in
18093 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
18094 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
18095 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
18096 cat >conftest.$ac_ext <<_ACEOF
18099 cat confdefs.h >>conftest.$ac_ext
18100 cat >>conftest.$ac_ext <<_ACEOF
18101 /* end confdefs.h. */
18111 rm -f conftest.$ac_objext conftest$ac_exeext
18112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18113 (eval $ac_link) 2>conftest.er1
18115 grep -v '^ *+' conftest.er1 >conftest.err
18117 cat conftest.err >&5
18118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18119 (exit $ac_status); } &&
18120 { ac_try='test -z "$ac_c_werror_flag"
18121 || test ! -s conftest.err'
18122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18123 (eval $ac_try) 2>&5
18125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18126 (exit $ac_status); }; } &&
18127 { ac_try='test -s conftest$ac_exeext'
18128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18129 (eval $ac_try) 2>&5
18131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18132 (exit $ac_status); }; }; then
18135 echo "$as_me: failed program was:" >&5
18136 sed 's/^/| /' conftest.$ac_ext >&5
18140 rm -f conftest.err conftest.$ac_objext \
18141 conftest$ac_exeext conftest.$ac_ext
18142 if test $ac_R_nospace = yes; then
18143 echo "$as_me:$LINENO: result: no" >&5
18144 echo "${ECHO_T}no" >&6
18145 X_LIBS="$X_LIBS -R$x_libraries"
18147 LIBS="$ac_xsave_LIBS -R $x_libraries"
18148 cat >conftest.$ac_ext <<_ACEOF
18151 cat confdefs.h >>conftest.$ac_ext
18152 cat >>conftest.$ac_ext <<_ACEOF
18153 /* end confdefs.h. */
18163 rm -f conftest.$ac_objext conftest$ac_exeext
18164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18165 (eval $ac_link) 2>conftest.er1
18167 grep -v '^ *+' conftest.er1 >conftest.err
18169 cat conftest.err >&5
18170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18171 (exit $ac_status); } &&
18172 { ac_try='test -z "$ac_c_werror_flag"
18173 || test ! -s conftest.err'
18174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18175 (eval $ac_try) 2>&5
18177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18178 (exit $ac_status); }; } &&
18179 { ac_try='test -s conftest$ac_exeext'
18180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18181 (eval $ac_try) 2>&5
18183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18184 (exit $ac_status); }; }; then
18187 echo "$as_me: failed program was:" >&5
18188 sed 's/^/| /' conftest.$ac_ext >&5
18192 rm -f conftest.err conftest.$ac_objext \
18193 conftest$ac_exeext conftest.$ac_ext
18194 if test $ac_R_space = yes; then
18195 echo "$as_me:$LINENO: result: yes" >&5
18196 echo "${ECHO_T}yes" >&6
18197 X_LIBS="$X_LIBS -R $x_libraries"
18199 echo "$as_me:$LINENO: result: neither works" >&5
18200 echo "${ECHO_T}neither works" >&6
18203 LIBS=$ac_xsave_LIBS
18207 # Check for system-dependent libraries X programs must link with.
18208 # Do this before checking for the system-independent R6 libraries
18209 # (-lICE), since we may need -lsocket or whatever for X linking.
18211 if test "$ISC" = yes; then
18212 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
18214 # Martyn Johnson says this is needed for Ultrix, if the X
18215 # libraries were built with DECnet support. And Karl Berry says
18216 # the Alpha needs dnet_stub (dnet does not exist).
18217 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
18218 cat >conftest.$ac_ext <<_ACEOF
18221 cat confdefs.h >>conftest.$ac_ext
18222 cat >>conftest.$ac_ext <<_ACEOF
18223 /* end confdefs.h. */
18225 /* Override any gcc2 internal prototype to avoid an error. */
18229 /* We use char because int might match the return type of a gcc2
18230 builtin and then its argument prototype would still apply. */
18231 char XOpenDisplay ();
18240 rm -f conftest.$ac_objext conftest$ac_exeext
18241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18242 (eval $ac_link) 2>conftest.er1
18244 grep -v '^ *+' conftest.er1 >conftest.err
18246 cat conftest.err >&5
18247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18248 (exit $ac_status); } &&
18249 { ac_try='test -z "$ac_c_werror_flag"
18250 || test ! -s conftest.err'
18251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18252 (eval $ac_try) 2>&5
18254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18255 (exit $ac_status); }; } &&
18256 { ac_try='test -s conftest$ac_exeext'
18257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18258 (eval $ac_try) 2>&5
18260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18261 (exit $ac_status); }; }; then
18264 echo "$as_me: failed program was:" >&5
18265 sed 's/^/| /' conftest.$ac_ext >&5
18267 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
18268 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
18269 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
18270 echo $ECHO_N "(cached) $ECHO_C" >&6
18272 ac_check_lib_save_LIBS=$LIBS
18273 LIBS="-ldnet $LIBS"
18274 cat >conftest.$ac_ext <<_ACEOF
18277 cat confdefs.h >>conftest.$ac_ext
18278 cat >>conftest.$ac_ext <<_ACEOF
18279 /* end confdefs.h. */
18281 /* Override any gcc2 internal prototype to avoid an error. */
18285 /* We use char because int might match the return type of a gcc2
18286 builtin and then its argument prototype would still apply. */
18296 rm -f conftest.$ac_objext conftest$ac_exeext
18297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18298 (eval $ac_link) 2>conftest.er1
18300 grep -v '^ *+' conftest.er1 >conftest.err
18302 cat conftest.err >&5
18303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18304 (exit $ac_status); } &&
18305 { ac_try='test -z "$ac_c_werror_flag"
18306 || test ! -s conftest.err'
18307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18308 (eval $ac_try) 2>&5
18310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18311 (exit $ac_status); }; } &&
18312 { ac_try='test -s conftest$ac_exeext'
18313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18314 (eval $ac_try) 2>&5
18316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18317 (exit $ac_status); }; }; then
18318 ac_cv_lib_dnet_dnet_ntoa=yes
18320 echo "$as_me: failed program was:" >&5
18321 sed 's/^/| /' conftest.$ac_ext >&5
18323 ac_cv_lib_dnet_dnet_ntoa=no
18325 rm -f conftest.err conftest.$ac_objext \
18326 conftest$ac_exeext conftest.$ac_ext
18327 LIBS=$ac_check_lib_save_LIBS
18329 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
18330 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
18331 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
18332 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
18335 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
18336 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
18337 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
18338 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
18339 echo $ECHO_N "(cached) $ECHO_C" >&6
18341 ac_check_lib_save_LIBS=$LIBS
18342 LIBS="-ldnet_stub $LIBS"
18343 cat >conftest.$ac_ext <<_ACEOF
18346 cat confdefs.h >>conftest.$ac_ext
18347 cat >>conftest.$ac_ext <<_ACEOF
18348 /* end confdefs.h. */
18350 /* Override any gcc2 internal prototype to avoid an error. */
18354 /* We use char because int might match the return type of a gcc2
18355 builtin and then its argument prototype would still apply. */
18365 rm -f conftest.$ac_objext conftest$ac_exeext
18366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18367 (eval $ac_link) 2>conftest.er1
18369 grep -v '^ *+' conftest.er1 >conftest.err
18371 cat conftest.err >&5
18372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18373 (exit $ac_status); } &&
18374 { ac_try='test -z "$ac_c_werror_flag"
18375 || test ! -s conftest.err'
18376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18377 (eval $ac_try) 2>&5
18379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18380 (exit $ac_status); }; } &&
18381 { ac_try='test -s conftest$ac_exeext'
18382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18383 (eval $ac_try) 2>&5
18385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18386 (exit $ac_status); }; }; then
18387 ac_cv_lib_dnet_stub_dnet_ntoa=yes
18389 echo "$as_me: failed program was:" >&5
18390 sed 's/^/| /' conftest.$ac_ext >&5
18392 ac_cv_lib_dnet_stub_dnet_ntoa=no
18394 rm -f conftest.err conftest.$ac_objext \
18395 conftest$ac_exeext conftest.$ac_ext
18396 LIBS=$ac_check_lib_save_LIBS
18398 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
18399 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
18400 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
18401 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
18406 rm -f conftest.err conftest.$ac_objext \
18407 conftest$ac_exeext conftest.$ac_ext
18408 LIBS="$ac_xsave_LIBS"
18410 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
18411 # to get the SysV transport functions.
18412 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
18414 # The nsl library prevents programs from opening the X display
18415 # on Irix 5.2, according to T.E. Dickey.
18416 # The functions gethostbyname, getservbyname, and inet_addr are
18417 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
18418 echo "$as_me:$LINENO: checking for gethostbyname" >&5
18419 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
18420 if test "${ac_cv_func_gethostbyname+set}" = set; then
18421 echo $ECHO_N "(cached) $ECHO_C" >&6
18423 cat >conftest.$ac_ext <<_ACEOF
18426 cat confdefs.h >>conftest.$ac_ext
18427 cat >>conftest.$ac_ext <<_ACEOF
18428 /* end confdefs.h. */
18429 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
18430 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18431 #define gethostbyname innocuous_gethostbyname
18433 /* System header to define __stub macros and hopefully few prototypes,
18434 which can conflict with char gethostbyname (); below.
18435 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18436 <limits.h> exists even on freestanding compilers. */
18439 # include <limits.h>
18441 # include <assert.h>
18444 #undef gethostbyname
18446 /* Override any gcc2 internal prototype to avoid an error. */
18451 /* We use char because int might match the return type of a gcc2
18452 builtin and then its argument prototype would still apply. */
18453 char gethostbyname ();
18454 /* The GNU C library defines this for functions which it implements
18455 to always fail with ENOSYS. Some functions are actually named
18456 something starting with __ and the normal name is an alias. */
18457 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
18460 char (*f) () = gethostbyname;
18469 return f != gethostbyname;
18474 rm -f conftest.$ac_objext conftest$ac_exeext
18475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18476 (eval $ac_link) 2>conftest.er1
18478 grep -v '^ *+' conftest.er1 >conftest.err
18480 cat conftest.err >&5
18481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18482 (exit $ac_status); } &&
18483 { ac_try='test -z "$ac_c_werror_flag"
18484 || test ! -s conftest.err'
18485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18486 (eval $ac_try) 2>&5
18488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18489 (exit $ac_status); }; } &&
18490 { ac_try='test -s conftest$ac_exeext'
18491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18492 (eval $ac_try) 2>&5
18494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18495 (exit $ac_status); }; }; then
18496 ac_cv_func_gethostbyname=yes
18498 echo "$as_me: failed program was:" >&5
18499 sed 's/^/| /' conftest.$ac_ext >&5
18501 ac_cv_func_gethostbyname=no
18503 rm -f conftest.err conftest.$ac_objext \
18504 conftest$ac_exeext conftest.$ac_ext
18506 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
18507 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
18509 if test $ac_cv_func_gethostbyname = no; then
18510 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
18511 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
18512 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
18513 echo $ECHO_N "(cached) $ECHO_C" >&6
18515 ac_check_lib_save_LIBS=$LIBS
18517 cat >conftest.$ac_ext <<_ACEOF
18520 cat confdefs.h >>conftest.$ac_ext
18521 cat >>conftest.$ac_ext <<_ACEOF
18522 /* end confdefs.h. */
18524 /* Override any gcc2 internal prototype to avoid an error. */
18528 /* We use char because int might match the return type of a gcc2
18529 builtin and then its argument prototype would still apply. */
18530 char gethostbyname ();
18539 rm -f conftest.$ac_objext conftest$ac_exeext
18540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18541 (eval $ac_link) 2>conftest.er1
18543 grep -v '^ *+' conftest.er1 >conftest.err
18545 cat conftest.err >&5
18546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18547 (exit $ac_status); } &&
18548 { ac_try='test -z "$ac_c_werror_flag"
18549 || test ! -s conftest.err'
18550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18551 (eval $ac_try) 2>&5
18553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18554 (exit $ac_status); }; } &&
18555 { ac_try='test -s conftest$ac_exeext'
18556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18557 (eval $ac_try) 2>&5
18559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18560 (exit $ac_status); }; }; then
18561 ac_cv_lib_nsl_gethostbyname=yes
18563 echo "$as_me: failed program was:" >&5
18564 sed 's/^/| /' conftest.$ac_ext >&5
18566 ac_cv_lib_nsl_gethostbyname=no
18568 rm -f conftest.err conftest.$ac_objext \
18569 conftest$ac_exeext conftest.$ac_ext
18570 LIBS=$ac_check_lib_save_LIBS
18572 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
18573 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
18574 if test $ac_cv_lib_nsl_gethostbyname = yes; then
18575 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
18578 if test $ac_cv_lib_nsl_gethostbyname = no; then
18579 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
18580 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
18581 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
18582 echo $ECHO_N "(cached) $ECHO_C" >&6
18584 ac_check_lib_save_LIBS=$LIBS
18586 cat >conftest.$ac_ext <<_ACEOF
18589 cat confdefs.h >>conftest.$ac_ext
18590 cat >>conftest.$ac_ext <<_ACEOF
18591 /* end confdefs.h. */
18593 /* Override any gcc2 internal prototype to avoid an error. */
18597 /* We use char because int might match the return type of a gcc2
18598 builtin and then its argument prototype would still apply. */
18599 char gethostbyname ();
18608 rm -f conftest.$ac_objext conftest$ac_exeext
18609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18610 (eval $ac_link) 2>conftest.er1
18612 grep -v '^ *+' conftest.er1 >conftest.err
18614 cat conftest.err >&5
18615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18616 (exit $ac_status); } &&
18617 { ac_try='test -z "$ac_c_werror_flag"
18618 || test ! -s conftest.err'
18619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18620 (eval $ac_try) 2>&5
18622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18623 (exit $ac_status); }; } &&
18624 { ac_try='test -s conftest$ac_exeext'
18625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18626 (eval $ac_try) 2>&5
18628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18629 (exit $ac_status); }; }; then
18630 ac_cv_lib_bsd_gethostbyname=yes
18632 echo "$as_me: failed program was:" >&5
18633 sed 's/^/| /' conftest.$ac_ext >&5
18635 ac_cv_lib_bsd_gethostbyname=no
18637 rm -f conftest.err conftest.$ac_objext \
18638 conftest$ac_exeext conftest.$ac_ext
18639 LIBS=$ac_check_lib_save_LIBS
18641 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
18642 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
18643 if test $ac_cv_lib_bsd_gethostbyname = yes; then
18644 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
18650 # lieder@skyler.mavd.honeywell.com says without -lsocket,
18651 # socket/setsockopt and other routines are undefined under SCO ODT
18652 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
18653 # on later versions), says Simon Leinen: it contains gethostby*
18654 # variants that don't use the name server (or something). -lsocket
18655 # must be given before -lnsl if both are needed. We assume that
18656 # if connect needs -lnsl, so does gethostbyname.
18657 echo "$as_me:$LINENO: checking for connect" >&5
18658 echo $ECHO_N "checking for connect... $ECHO_C" >&6
18659 if test "${ac_cv_func_connect+set}" = set; then
18660 echo $ECHO_N "(cached) $ECHO_C" >&6
18662 cat >conftest.$ac_ext <<_ACEOF
18665 cat confdefs.h >>conftest.$ac_ext
18666 cat >>conftest.$ac_ext <<_ACEOF
18667 /* end confdefs.h. */
18668 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
18669 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18670 #define connect innocuous_connect
18672 /* System header to define __stub macros and hopefully few prototypes,
18673 which can conflict with char connect (); below.
18674 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18675 <limits.h> exists even on freestanding compilers. */
18678 # include <limits.h>
18680 # include <assert.h>
18685 /* Override any gcc2 internal prototype to avoid an error. */
18690 /* We use char because int might match the return type of a gcc2
18691 builtin and then its argument prototype would still apply. */
18693 /* The GNU C library defines this for functions which it implements
18694 to always fail with ENOSYS. Some functions are actually named
18695 something starting with __ and the normal name is an alias. */
18696 #if defined (__stub_connect) || defined (__stub___connect)
18699 char (*f) () = connect;
18708 return f != connect;
18713 rm -f conftest.$ac_objext conftest$ac_exeext
18714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18715 (eval $ac_link) 2>conftest.er1
18717 grep -v '^ *+' conftest.er1 >conftest.err
18719 cat conftest.err >&5
18720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18721 (exit $ac_status); } &&
18722 { ac_try='test -z "$ac_c_werror_flag"
18723 || test ! -s conftest.err'
18724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18725 (eval $ac_try) 2>&5
18727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18728 (exit $ac_status); }; } &&
18729 { ac_try='test -s conftest$ac_exeext'
18730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18731 (eval $ac_try) 2>&5
18733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18734 (exit $ac_status); }; }; then
18735 ac_cv_func_connect=yes
18737 echo "$as_me: failed program was:" >&5
18738 sed 's/^/| /' conftest.$ac_ext >&5
18740 ac_cv_func_connect=no
18742 rm -f conftest.err conftest.$ac_objext \
18743 conftest$ac_exeext conftest.$ac_ext
18745 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
18746 echo "${ECHO_T}$ac_cv_func_connect" >&6
18748 if test $ac_cv_func_connect = no; then
18749 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
18750 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
18751 if test "${ac_cv_lib_socket_connect+set}" = set; then
18752 echo $ECHO_N "(cached) $ECHO_C" >&6
18754 ac_check_lib_save_LIBS=$LIBS
18755 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
18756 cat >conftest.$ac_ext <<_ACEOF
18759 cat confdefs.h >>conftest.$ac_ext
18760 cat >>conftest.$ac_ext <<_ACEOF
18761 /* end confdefs.h. */
18763 /* Override any gcc2 internal prototype to avoid an error. */
18767 /* We use char because int might match the return type of a gcc2
18768 builtin and then its argument prototype would still apply. */
18778 rm -f conftest.$ac_objext conftest$ac_exeext
18779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18780 (eval $ac_link) 2>conftest.er1
18782 grep -v '^ *+' conftest.er1 >conftest.err
18784 cat conftest.err >&5
18785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18786 (exit $ac_status); } &&
18787 { ac_try='test -z "$ac_c_werror_flag"
18788 || test ! -s conftest.err'
18789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18790 (eval $ac_try) 2>&5
18792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18793 (exit $ac_status); }; } &&
18794 { ac_try='test -s conftest$ac_exeext'
18795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18796 (eval $ac_try) 2>&5
18798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18799 (exit $ac_status); }; }; then
18800 ac_cv_lib_socket_connect=yes
18802 echo "$as_me: failed program was:" >&5
18803 sed 's/^/| /' conftest.$ac_ext >&5
18805 ac_cv_lib_socket_connect=no
18807 rm -f conftest.err conftest.$ac_objext \
18808 conftest$ac_exeext conftest.$ac_ext
18809 LIBS=$ac_check_lib_save_LIBS
18811 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
18812 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
18813 if test $ac_cv_lib_socket_connect = yes; then
18814 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
18819 # Guillermo Gomez says -lposix is necessary on A/UX.
18820 echo "$as_me:$LINENO: checking for remove" >&5
18821 echo $ECHO_N "checking for remove... $ECHO_C" >&6
18822 if test "${ac_cv_func_remove+set}" = set; then
18823 echo $ECHO_N "(cached) $ECHO_C" >&6
18825 cat >conftest.$ac_ext <<_ACEOF
18828 cat confdefs.h >>conftest.$ac_ext
18829 cat >>conftest.$ac_ext <<_ACEOF
18830 /* end confdefs.h. */
18831 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
18832 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18833 #define remove innocuous_remove
18835 /* System header to define __stub macros and hopefully few prototypes,
18836 which can conflict with char remove (); below.
18837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18838 <limits.h> exists even on freestanding compilers. */
18841 # include <limits.h>
18843 # include <assert.h>
18848 /* Override any gcc2 internal prototype to avoid an error. */
18853 /* We use char because int might match the return type of a gcc2
18854 builtin and then its argument prototype would still apply. */
18856 /* The GNU C library defines this for functions which it implements
18857 to always fail with ENOSYS. Some functions are actually named
18858 something starting with __ and the normal name is an alias. */
18859 #if defined (__stub_remove) || defined (__stub___remove)
18862 char (*f) () = remove;
18871 return f != remove;
18876 rm -f conftest.$ac_objext conftest$ac_exeext
18877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18878 (eval $ac_link) 2>conftest.er1
18880 grep -v '^ *+' conftest.er1 >conftest.err
18882 cat conftest.err >&5
18883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18884 (exit $ac_status); } &&
18885 { ac_try='test -z "$ac_c_werror_flag"
18886 || test ! -s conftest.err'
18887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18888 (eval $ac_try) 2>&5
18890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18891 (exit $ac_status); }; } &&
18892 { ac_try='test -s conftest$ac_exeext'
18893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18894 (eval $ac_try) 2>&5
18896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18897 (exit $ac_status); }; }; then
18898 ac_cv_func_remove=yes
18900 echo "$as_me: failed program was:" >&5
18901 sed 's/^/| /' conftest.$ac_ext >&5
18903 ac_cv_func_remove=no
18905 rm -f conftest.err conftest.$ac_objext \
18906 conftest$ac_exeext conftest.$ac_ext
18908 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
18909 echo "${ECHO_T}$ac_cv_func_remove" >&6
18911 if test $ac_cv_func_remove = no; then
18912 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
18913 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
18914 if test "${ac_cv_lib_posix_remove+set}" = set; then
18915 echo $ECHO_N "(cached) $ECHO_C" >&6
18917 ac_check_lib_save_LIBS=$LIBS
18918 LIBS="-lposix $LIBS"
18919 cat >conftest.$ac_ext <<_ACEOF
18922 cat confdefs.h >>conftest.$ac_ext
18923 cat >>conftest.$ac_ext <<_ACEOF
18924 /* end confdefs.h. */
18926 /* Override any gcc2 internal prototype to avoid an error. */
18930 /* We use char because int might match the return type of a gcc2
18931 builtin and then its argument prototype would still apply. */
18941 rm -f conftest.$ac_objext conftest$ac_exeext
18942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18943 (eval $ac_link) 2>conftest.er1
18945 grep -v '^ *+' conftest.er1 >conftest.err
18947 cat conftest.err >&5
18948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18949 (exit $ac_status); } &&
18950 { ac_try='test -z "$ac_c_werror_flag"
18951 || test ! -s conftest.err'
18952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18953 (eval $ac_try) 2>&5
18955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18956 (exit $ac_status); }; } &&
18957 { ac_try='test -s conftest$ac_exeext'
18958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18959 (eval $ac_try) 2>&5
18961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18962 (exit $ac_status); }; }; then
18963 ac_cv_lib_posix_remove=yes
18965 echo "$as_me: failed program was:" >&5
18966 sed 's/^/| /' conftest.$ac_ext >&5
18968 ac_cv_lib_posix_remove=no
18970 rm -f conftest.err conftest.$ac_objext \
18971 conftest$ac_exeext conftest.$ac_ext
18972 LIBS=$ac_check_lib_save_LIBS
18974 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
18975 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
18976 if test $ac_cv_lib_posix_remove = yes; then
18977 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
18982 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
18983 echo "$as_me:$LINENO: checking for shmat" >&5
18984 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
18985 if test "${ac_cv_func_shmat+set}" = set; then
18986 echo $ECHO_N "(cached) $ECHO_C" >&6
18988 cat >conftest.$ac_ext <<_ACEOF
18991 cat confdefs.h >>conftest.$ac_ext
18992 cat >>conftest.$ac_ext <<_ACEOF
18993 /* end confdefs.h. */
18994 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
18995 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18996 #define shmat innocuous_shmat
18998 /* System header to define __stub macros and hopefully few prototypes,
18999 which can conflict with char shmat (); below.
19000 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19001 <limits.h> exists even on freestanding compilers. */
19004 # include <limits.h>
19006 # include <assert.h>
19011 /* Override any gcc2 internal prototype to avoid an error. */
19016 /* We use char because int might match the return type of a gcc2
19017 builtin and then its argument prototype would still apply. */
19019 /* The GNU C library defines this for functions which it implements
19020 to always fail with ENOSYS. Some functions are actually named
19021 something starting with __ and the normal name is an alias. */
19022 #if defined (__stub_shmat) || defined (__stub___shmat)
19025 char (*f) () = shmat;
19039 rm -f conftest.$ac_objext conftest$ac_exeext
19040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19041 (eval $ac_link) 2>conftest.er1
19043 grep -v '^ *+' conftest.er1 >conftest.err
19045 cat conftest.err >&5
19046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19047 (exit $ac_status); } &&
19048 { ac_try='test -z "$ac_c_werror_flag"
19049 || test ! -s conftest.err'
19050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19051 (eval $ac_try) 2>&5
19053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19054 (exit $ac_status); }; } &&
19055 { ac_try='test -s conftest$ac_exeext'
19056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19057 (eval $ac_try) 2>&5
19059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19060 (exit $ac_status); }; }; then
19061 ac_cv_func_shmat=yes
19063 echo "$as_me: failed program was:" >&5
19064 sed 's/^/| /' conftest.$ac_ext >&5
19066 ac_cv_func_shmat=no
19068 rm -f conftest.err conftest.$ac_objext \
19069 conftest$ac_exeext conftest.$ac_ext
19071 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
19072 echo "${ECHO_T}$ac_cv_func_shmat" >&6
19074 if test $ac_cv_func_shmat = no; then
19075 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
19076 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
19077 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
19078 echo $ECHO_N "(cached) $ECHO_C" >&6
19080 ac_check_lib_save_LIBS=$LIBS
19082 cat >conftest.$ac_ext <<_ACEOF
19085 cat confdefs.h >>conftest.$ac_ext
19086 cat >>conftest.$ac_ext <<_ACEOF
19087 /* end confdefs.h. */
19089 /* Override any gcc2 internal prototype to avoid an error. */
19093 /* We use char because int might match the return type of a gcc2
19094 builtin and then its argument prototype would still apply. */
19104 rm -f conftest.$ac_objext conftest$ac_exeext
19105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19106 (eval $ac_link) 2>conftest.er1
19108 grep -v '^ *+' conftest.er1 >conftest.err
19110 cat conftest.err >&5
19111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19112 (exit $ac_status); } &&
19113 { ac_try='test -z "$ac_c_werror_flag"
19114 || test ! -s conftest.err'
19115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19116 (eval $ac_try) 2>&5
19118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19119 (exit $ac_status); }; } &&
19120 { ac_try='test -s conftest$ac_exeext'
19121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19122 (eval $ac_try) 2>&5
19124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19125 (exit $ac_status); }; }; then
19126 ac_cv_lib_ipc_shmat=yes
19128 echo "$as_me: failed program was:" >&5
19129 sed 's/^/| /' conftest.$ac_ext >&5
19131 ac_cv_lib_ipc_shmat=no
19133 rm -f conftest.err conftest.$ac_objext \
19134 conftest$ac_exeext conftest.$ac_ext
19135 LIBS=$ac_check_lib_save_LIBS
19137 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
19138 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
19139 if test $ac_cv_lib_ipc_shmat = yes; then
19140 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
19146 # Check for libraries that X11R6 Xt/Xaw programs need.
19147 ac_save_LDFLAGS=$LDFLAGS
19148 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
19149 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
19150 # check for ICE first), but we must link in the order -lSM -lICE or
19151 # we get undefined symbols. So assume we have SM if we have ICE.
19152 # These have to be linked with before -lX11, unlike the other
19153 # libraries we check for below, so use a different variable.
19154 # John Interrante, Karl Berry
19155 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
19156 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
19157 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
19158 echo $ECHO_N "(cached) $ECHO_C" >&6
19160 ac_check_lib_save_LIBS=$LIBS
19161 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
19162 cat >conftest.$ac_ext <<_ACEOF
19165 cat confdefs.h >>conftest.$ac_ext
19166 cat >>conftest.$ac_ext <<_ACEOF
19167 /* end confdefs.h. */
19169 /* Override any gcc2 internal prototype to avoid an error. */
19173 /* We use char because int might match the return type of a gcc2
19174 builtin and then its argument prototype would still apply. */
19175 char IceConnectionNumber ();
19179 IceConnectionNumber ();
19184 rm -f conftest.$ac_objext conftest$ac_exeext
19185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19186 (eval $ac_link) 2>conftest.er1
19188 grep -v '^ *+' conftest.er1 >conftest.err
19190 cat conftest.err >&5
19191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19192 (exit $ac_status); } &&
19193 { ac_try='test -z "$ac_c_werror_flag"
19194 || test ! -s conftest.err'
19195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19196 (eval $ac_try) 2>&5
19198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19199 (exit $ac_status); }; } &&
19200 { ac_try='test -s conftest$ac_exeext'
19201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19202 (eval $ac_try) 2>&5
19204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19205 (exit $ac_status); }; }; then
19206 ac_cv_lib_ICE_IceConnectionNumber=yes
19208 echo "$as_me: failed program was:" >&5
19209 sed 's/^/| /' conftest.$ac_ext >&5
19211 ac_cv_lib_ICE_IceConnectionNumber=no
19213 rm -f conftest.err conftest.$ac_objext \
19214 conftest$ac_exeext conftest.$ac_ext
19215 LIBS=$ac_check_lib_save_LIBS
19217 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
19218 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
19219 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
19220 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
19223 LDFLAGS=$ac_save_LDFLAGS
19285 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19286 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19287 echo "$as_me:$LINENO: checking for $ac_header" >&5
19288 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19289 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19290 echo $ECHO_N "(cached) $ECHO_C" >&6
19292 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19293 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19295 # Is the header compilable?
19296 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19297 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19298 cat >conftest.$ac_ext <<_ACEOF
19301 cat confdefs.h >>conftest.$ac_ext
19302 cat >>conftest.$ac_ext <<_ACEOF
19303 /* end confdefs.h. */
19304 $ac_includes_default
19305 #include <$ac_header>
19307 rm -f conftest.$ac_objext
19308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19309 (eval $ac_compile) 2>conftest.er1
19311 grep -v '^ *+' conftest.er1 >conftest.err
19313 cat conftest.err >&5
19314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19315 (exit $ac_status); } &&
19316 { ac_try='test -z "$ac_c_werror_flag"
19317 || test ! -s conftest.err'
19318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19319 (eval $ac_try) 2>&5
19321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19322 (exit $ac_status); }; } &&
19323 { ac_try='test -s conftest.$ac_objext'
19324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19325 (eval $ac_try) 2>&5
19327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19328 (exit $ac_status); }; }; then
19329 ac_header_compiler=yes
19331 echo "$as_me: failed program was:" >&5
19332 sed 's/^/| /' conftest.$ac_ext >&5
19334 ac_header_compiler=no
19336 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19337 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19338 echo "${ECHO_T}$ac_header_compiler" >&6
19340 # Is the header present?
19341 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19342 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19343 cat >conftest.$ac_ext <<_ACEOF
19346 cat confdefs.h >>conftest.$ac_ext
19347 cat >>conftest.$ac_ext <<_ACEOF
19348 /* end confdefs.h. */
19349 #include <$ac_header>
19351 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19352 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19354 grep -v '^ *+' conftest.er1 >conftest.err
19356 cat conftest.err >&5
19357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19358 (exit $ac_status); } >/dev/null; then
19359 if test -s conftest.err; then
19360 ac_cpp_err=$ac_c_preproc_warn_flag
19361 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19368 if test -z "$ac_cpp_err"; then
19369 ac_header_preproc=yes
19371 echo "$as_me: failed program was:" >&5
19372 sed 's/^/| /' conftest.$ac_ext >&5
19374 ac_header_preproc=no
19376 rm -f conftest.err conftest.$ac_ext
19377 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19378 echo "${ECHO_T}$ac_header_preproc" >&6
19380 # So? What about this header?
19381 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19383 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19384 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19385 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19386 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19387 ac_header_preproc=yes
19390 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19391 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19392 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19393 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19394 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19395 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19396 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19397 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19398 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19399 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19400 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19401 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19404 ## ------------------------------------------ ##
19405 ## Report this to the AC_PACKAGE_NAME lists. ##
19406 ## ------------------------------------------ ##
19409 sed "s/^/$as_me: WARNING: /" >&2
19412 echo "$as_me:$LINENO: checking for $ac_header" >&5
19413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19414 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19415 echo $ECHO_N "(cached) $ECHO_C" >&6
19417 eval "$as_ac_Header=\$ac_header_preproc"
19419 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19420 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19423 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19424 cat >>confdefs.h <<_ACEOF
19425 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19432 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19433 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19434 if test "${ac_cv_header_stdc+set}" = set; then
19435 echo $ECHO_N "(cached) $ECHO_C" >&6
19437 cat >conftest.$ac_ext <<_ACEOF
19440 cat confdefs.h >>conftest.$ac_ext
19441 cat >>conftest.$ac_ext <<_ACEOF
19442 /* end confdefs.h. */
19443 #include <stdlib.h>
19444 #include <stdarg.h>
19445 #include <string.h>
19456 rm -f conftest.$ac_objext
19457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19458 (eval $ac_compile) 2>conftest.er1
19460 grep -v '^ *+' conftest.er1 >conftest.err
19462 cat conftest.err >&5
19463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19464 (exit $ac_status); } &&
19465 { ac_try='test -z "$ac_c_werror_flag"
19466 || test ! -s conftest.err'
19467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19468 (eval $ac_try) 2>&5
19470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19471 (exit $ac_status); }; } &&
19472 { ac_try='test -s conftest.$ac_objext'
19473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19474 (eval $ac_try) 2>&5
19476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19477 (exit $ac_status); }; }; then
19478 ac_cv_header_stdc=yes
19480 echo "$as_me: failed program was:" >&5
19481 sed 's/^/| /' conftest.$ac_ext >&5
19483 ac_cv_header_stdc=no
19485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19487 if test $ac_cv_header_stdc = yes; then
19488 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19489 cat >conftest.$ac_ext <<_ACEOF
19492 cat confdefs.h >>conftest.$ac_ext
19493 cat >>conftest.$ac_ext <<_ACEOF
19494 /* end confdefs.h. */
19495 #include <string.h>
19498 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19499 $EGREP "memchr" >/dev/null 2>&1; then
19502 ac_cv_header_stdc=no
19508 if test $ac_cv_header_stdc = yes; then
19509 # ISC 2.0.2 stdlib.h does not declare free, 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 <stdlib.h>
19519 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19520 $EGREP "free" >/dev/null 2>&1; then
19523 ac_cv_header_stdc=no
19529 if test $ac_cv_header_stdc = yes; then
19530 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19531 if test "$cross_compiling" = yes; then
19534 cat >conftest.$ac_ext <<_ACEOF
19537 cat confdefs.h >>conftest.$ac_ext
19538 cat >>conftest.$ac_ext <<_ACEOF
19539 /* end confdefs.h. */
19541 #if ((' ' & 0x0FF) == 0x020)
19542 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19543 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19545 # define ISLOWER(c) \
19546 (('a' <= (c) && (c) <= 'i') \
19547 || ('j' <= (c) && (c) <= 'r') \
19548 || ('s' <= (c) && (c) <= 'z'))
19549 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19552 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19557 for (i = 0; i < 256; i++)
19558 if (XOR (islower (i), ISLOWER (i))
19559 || toupper (i) != TOUPPER (i))
19564 rm -f conftest$ac_exeext
19565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19566 (eval $ac_link) 2>&5
19568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19569 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19571 (eval $ac_try) 2>&5
19573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19574 (exit $ac_status); }; }; then
19577 echo "$as_me: program exited with status $ac_status" >&5
19578 echo "$as_me: failed program was:" >&5
19579 sed 's/^/| /' conftest.$ac_ext >&5
19581 ( exit $ac_status )
19582 ac_cv_header_stdc=no
19584 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19588 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19589 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19590 if test $ac_cv_header_stdc = yes; then
19592 cat >>confdefs.h <<\_ACEOF
19593 #define STDC_HEADERS 1
19598 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
19599 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
19600 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
19601 echo $ECHO_N "(cached) $ECHO_C" >&6
19603 cat >conftest.$ac_ext <<_ACEOF
19606 cat confdefs.h >>conftest.$ac_ext
19607 cat >>conftest.$ac_ext <<_ACEOF
19608 /* end confdefs.h. */
19609 #include <sys/types.h>
19613 return makedev(0, 0);
19618 rm -f conftest.$ac_objext conftest$ac_exeext
19619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19620 (eval $ac_link) 2>conftest.er1
19622 grep -v '^ *+' conftest.er1 >conftest.err
19624 cat conftest.err >&5
19625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19626 (exit $ac_status); } &&
19627 { ac_try='test -z "$ac_c_werror_flag"
19628 || test ! -s conftest.err'
19629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19630 (eval $ac_try) 2>&5
19632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19633 (exit $ac_status); }; } &&
19634 { ac_try='test -s conftest$ac_exeext'
19635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19636 (eval $ac_try) 2>&5
19638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19639 (exit $ac_status); }; }; then
19640 ac_cv_header_sys_types_h_makedev=yes
19642 echo "$as_me: failed program was:" >&5
19643 sed 's/^/| /' conftest.$ac_ext >&5
19645 ac_cv_header_sys_types_h_makedev=no
19647 rm -f conftest.err conftest.$ac_objext \
19648 conftest$ac_exeext conftest.$ac_ext
19651 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
19652 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
19654 if test $ac_cv_header_sys_types_h_makedev = no; then
19655 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19656 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
19657 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
19658 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19659 echo $ECHO_N "(cached) $ECHO_C" >&6
19661 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
19662 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
19664 # Is the header compilable?
19665 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
19666 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
19667 cat >conftest.$ac_ext <<_ACEOF
19670 cat confdefs.h >>conftest.$ac_ext
19671 cat >>conftest.$ac_ext <<_ACEOF
19672 /* end confdefs.h. */
19673 $ac_includes_default
19674 #include <sys/mkdev.h>
19676 rm -f conftest.$ac_objext
19677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19678 (eval $ac_compile) 2>conftest.er1
19680 grep -v '^ *+' conftest.er1 >conftest.err
19682 cat conftest.err >&5
19683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19684 (exit $ac_status); } &&
19685 { ac_try='test -z "$ac_c_werror_flag"
19686 || test ! -s conftest.err'
19687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19688 (eval $ac_try) 2>&5
19690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19691 (exit $ac_status); }; } &&
19692 { ac_try='test -s conftest.$ac_objext'
19693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19694 (eval $ac_try) 2>&5
19696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19697 (exit $ac_status); }; }; then
19698 ac_header_compiler=yes
19700 echo "$as_me: failed program was:" >&5
19701 sed 's/^/| /' conftest.$ac_ext >&5
19703 ac_header_compiler=no
19705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19706 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19707 echo "${ECHO_T}$ac_header_compiler" >&6
19709 # Is the header present?
19710 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
19711 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
19712 cat >conftest.$ac_ext <<_ACEOF
19715 cat confdefs.h >>conftest.$ac_ext
19716 cat >>conftest.$ac_ext <<_ACEOF
19717 /* end confdefs.h. */
19718 #include <sys/mkdev.h>
19720 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19721 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19723 grep -v '^ *+' conftest.er1 >conftest.err
19725 cat conftest.err >&5
19726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19727 (exit $ac_status); } >/dev/null; then
19728 if test -s conftest.err; then
19729 ac_cpp_err=$ac_c_preproc_warn_flag
19730 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19737 if test -z "$ac_cpp_err"; then
19738 ac_header_preproc=yes
19740 echo "$as_me: failed program was:" >&5
19741 sed 's/^/| /' conftest.$ac_ext >&5
19743 ac_header_preproc=no
19745 rm -f conftest.err conftest.$ac_ext
19746 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19747 echo "${ECHO_T}$ac_header_preproc" >&6
19749 # So? What about this header?
19750 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19752 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
19753 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19754 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
19755 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
19756 ac_header_preproc=yes
19759 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
19760 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
19761 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
19762 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
19763 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
19764 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
19765 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
19766 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
19767 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
19768 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
19769 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
19770 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
19773 ## ------------------------------------------ ##
19774 ## Report this to the AC_PACKAGE_NAME lists. ##
19775 ## ------------------------------------------ ##
19778 sed "s/^/$as_me: WARNING: /" >&2
19781 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
19782 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
19783 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19784 echo $ECHO_N "(cached) $ECHO_C" >&6
19786 ac_cv_header_sys_mkdev_h=$ac_header_preproc
19788 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
19789 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
19792 if test $ac_cv_header_sys_mkdev_h = yes; then
19794 cat >>confdefs.h <<\_ACEOF
19795 #define MAJOR_IN_MKDEV 1
19802 if test $ac_cv_header_sys_mkdev_h = no; then
19803 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
19804 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
19805 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
19806 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
19807 echo $ECHO_N "(cached) $ECHO_C" >&6
19809 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
19810 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
19812 # Is the header compilable?
19813 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
19814 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
19815 cat >conftest.$ac_ext <<_ACEOF
19818 cat confdefs.h >>conftest.$ac_ext
19819 cat >>conftest.$ac_ext <<_ACEOF
19820 /* end confdefs.h. */
19821 $ac_includes_default
19822 #include <sys/sysmacros.h>
19824 rm -f conftest.$ac_objext
19825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19826 (eval $ac_compile) 2>conftest.er1
19828 grep -v '^ *+' conftest.er1 >conftest.err
19830 cat conftest.err >&5
19831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19832 (exit $ac_status); } &&
19833 { ac_try='test -z "$ac_c_werror_flag"
19834 || test ! -s conftest.err'
19835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19836 (eval $ac_try) 2>&5
19838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19839 (exit $ac_status); }; } &&
19840 { ac_try='test -s conftest.$ac_objext'
19841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19842 (eval $ac_try) 2>&5
19844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19845 (exit $ac_status); }; }; then
19846 ac_header_compiler=yes
19848 echo "$as_me: failed program was:" >&5
19849 sed 's/^/| /' conftest.$ac_ext >&5
19851 ac_header_compiler=no
19853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19854 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19855 echo "${ECHO_T}$ac_header_compiler" >&6
19857 # Is the header present?
19858 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
19859 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
19860 cat >conftest.$ac_ext <<_ACEOF
19863 cat confdefs.h >>conftest.$ac_ext
19864 cat >>conftest.$ac_ext <<_ACEOF
19865 /* end confdefs.h. */
19866 #include <sys/sysmacros.h>
19868 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19869 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19871 grep -v '^ *+' conftest.er1 >conftest.err
19873 cat conftest.err >&5
19874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19875 (exit $ac_status); } >/dev/null; then
19876 if test -s conftest.err; then
19877 ac_cpp_err=$ac_c_preproc_warn_flag
19878 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19885 if test -z "$ac_cpp_err"; then
19886 ac_header_preproc=yes
19888 echo "$as_me: failed program was:" >&5
19889 sed 's/^/| /' conftest.$ac_ext >&5
19891 ac_header_preproc=no
19893 rm -f conftest.err conftest.$ac_ext
19894 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19895 echo "${ECHO_T}$ac_header_preproc" >&6
19897 # So? What about this header?
19898 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19900 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
19901 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19902 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
19903 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
19904 ac_header_preproc=yes
19907 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
19908 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
19909 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
19910 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
19911 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
19912 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
19913 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
19914 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
19915 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
19916 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
19917 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
19918 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
19921 ## ------------------------------------------ ##
19922 ## Report this to the AC_PACKAGE_NAME lists. ##
19923 ## ------------------------------------------ ##
19926 sed "s/^/$as_me: WARNING: /" >&2
19929 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
19930 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
19931 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
19932 echo $ECHO_N "(cached) $ECHO_C" >&6
19934 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
19936 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
19937 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
19940 if test $ac_cv_header_sys_sysmacros_h = yes; then
19942 cat >>confdefs.h <<\_ACEOF
19943 #define MAJOR_IN_SYSMACROS 1
19957 ac_header_dirent=no
19958 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19959 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19960 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
19961 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
19962 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19963 echo $ECHO_N "(cached) $ECHO_C" >&6
19965 cat >conftest.$ac_ext <<_ACEOF
19968 cat confdefs.h >>conftest.$ac_ext
19969 cat >>conftest.$ac_ext <<_ACEOF
19970 /* end confdefs.h. */
19971 #include <sys/types.h>
19983 rm -f conftest.$ac_objext
19984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19985 (eval $ac_compile) 2>conftest.er1
19987 grep -v '^ *+' conftest.er1 >conftest.err
19989 cat conftest.err >&5
19990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19991 (exit $ac_status); } &&
19992 { ac_try='test -z "$ac_c_werror_flag"
19993 || test ! -s conftest.err'
19994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19995 (eval $ac_try) 2>&5
19997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19998 (exit $ac_status); }; } &&
19999 { ac_try='test -s conftest.$ac_objext'
20000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20001 (eval $ac_try) 2>&5
20003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20004 (exit $ac_status); }; }; then
20005 eval "$as_ac_Header=yes"
20007 echo "$as_me: failed program was:" >&5
20008 sed 's/^/| /' conftest.$ac_ext >&5
20010 eval "$as_ac_Header=no"
20012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20014 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20015 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20016 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20017 cat >>confdefs.h <<_ACEOF
20018 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20021 ac_header_dirent=$ac_hdr; break
20025 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20026 if test $ac_header_dirent = dirent.h; then
20027 echo "$as_me:$LINENO: checking for library containing opendir" >&5
20028 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
20029 if test "${ac_cv_search_opendir+set}" = set; then
20030 echo $ECHO_N "(cached) $ECHO_C" >&6
20032 ac_func_search_save_LIBS=$LIBS
20033 ac_cv_search_opendir=no
20034 cat >conftest.$ac_ext <<_ACEOF
20037 cat confdefs.h >>conftest.$ac_ext
20038 cat >>conftest.$ac_ext <<_ACEOF
20039 /* end confdefs.h. */
20041 /* Override any gcc2 internal prototype to avoid an error. */
20045 /* We use char because int might match the return type of a gcc2
20046 builtin and then its argument prototype would still apply. */
20056 rm -f conftest.$ac_objext conftest$ac_exeext
20057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20058 (eval $ac_link) 2>conftest.er1
20060 grep -v '^ *+' conftest.er1 >conftest.err
20062 cat conftest.err >&5
20063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20064 (exit $ac_status); } &&
20065 { ac_try='test -z "$ac_c_werror_flag"
20066 || test ! -s conftest.err'
20067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20068 (eval $ac_try) 2>&5
20070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20071 (exit $ac_status); }; } &&
20072 { ac_try='test -s conftest$ac_exeext'
20073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20074 (eval $ac_try) 2>&5
20076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20077 (exit $ac_status); }; }; then
20078 ac_cv_search_opendir="none required"
20080 echo "$as_me: failed program was:" >&5
20081 sed 's/^/| /' conftest.$ac_ext >&5
20084 rm -f conftest.err conftest.$ac_objext \
20085 conftest$ac_exeext conftest.$ac_ext
20086 if test "$ac_cv_search_opendir" = no; then
20087 for ac_lib in dir; do
20088 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20089 cat >conftest.$ac_ext <<_ACEOF
20092 cat confdefs.h >>conftest.$ac_ext
20093 cat >>conftest.$ac_ext <<_ACEOF
20094 /* end confdefs.h. */
20096 /* Override any gcc2 internal prototype to avoid an error. */
20100 /* We use char because int might match the return type of a gcc2
20101 builtin and then its argument prototype would still apply. */
20111 rm -f conftest.$ac_objext conftest$ac_exeext
20112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20113 (eval $ac_link) 2>conftest.er1
20115 grep -v '^ *+' conftest.er1 >conftest.err
20117 cat conftest.err >&5
20118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20119 (exit $ac_status); } &&
20120 { ac_try='test -z "$ac_c_werror_flag"
20121 || test ! -s conftest.err'
20122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20123 (eval $ac_try) 2>&5
20125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20126 (exit $ac_status); }; } &&
20127 { ac_try='test -s conftest$ac_exeext'
20128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20129 (eval $ac_try) 2>&5
20131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20132 (exit $ac_status); }; }; then
20133 ac_cv_search_opendir="-l$ac_lib"
20136 echo "$as_me: failed program was:" >&5
20137 sed 's/^/| /' conftest.$ac_ext >&5
20140 rm -f conftest.err conftest.$ac_objext \
20141 conftest$ac_exeext conftest.$ac_ext
20144 LIBS=$ac_func_search_save_LIBS
20146 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20147 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20148 if test "$ac_cv_search_opendir" != no; then
20149 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20154 echo "$as_me:$LINENO: checking for library containing opendir" >&5
20155 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
20156 if test "${ac_cv_search_opendir+set}" = set; then
20157 echo $ECHO_N "(cached) $ECHO_C" >&6
20159 ac_func_search_save_LIBS=$LIBS
20160 ac_cv_search_opendir=no
20161 cat >conftest.$ac_ext <<_ACEOF
20164 cat confdefs.h >>conftest.$ac_ext
20165 cat >>conftest.$ac_ext <<_ACEOF
20166 /* end confdefs.h. */
20168 /* Override any gcc2 internal prototype to avoid an error. */
20172 /* We use char because int might match the return type of a gcc2
20173 builtin and then its argument prototype would still apply. */
20183 rm -f conftest.$ac_objext conftest$ac_exeext
20184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20185 (eval $ac_link) 2>conftest.er1
20187 grep -v '^ *+' conftest.er1 >conftest.err
20189 cat conftest.err >&5
20190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20191 (exit $ac_status); } &&
20192 { ac_try='test -z "$ac_c_werror_flag"
20193 || test ! -s conftest.err'
20194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20195 (eval $ac_try) 2>&5
20197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20198 (exit $ac_status); }; } &&
20199 { ac_try='test -s conftest$ac_exeext'
20200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20201 (eval $ac_try) 2>&5
20203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20204 (exit $ac_status); }; }; then
20205 ac_cv_search_opendir="none required"
20207 echo "$as_me: failed program was:" >&5
20208 sed 's/^/| /' conftest.$ac_ext >&5
20211 rm -f conftest.err conftest.$ac_objext \
20212 conftest$ac_exeext conftest.$ac_ext
20213 if test "$ac_cv_search_opendir" = no; then
20214 for ac_lib in x; do
20215 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20216 cat >conftest.$ac_ext <<_ACEOF
20219 cat confdefs.h >>conftest.$ac_ext
20220 cat >>conftest.$ac_ext <<_ACEOF
20221 /* end confdefs.h. */
20223 /* Override any gcc2 internal prototype to avoid an error. */
20227 /* We use char because int might match the return type of a gcc2
20228 builtin and then its argument prototype would still apply. */
20238 rm -f conftest.$ac_objext conftest$ac_exeext
20239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20240 (eval $ac_link) 2>conftest.er1
20242 grep -v '^ *+' conftest.er1 >conftest.err
20244 cat conftest.err >&5
20245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20246 (exit $ac_status); } &&
20247 { ac_try='test -z "$ac_c_werror_flag"
20248 || test ! -s conftest.err'
20249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20250 (eval $ac_try) 2>&5
20252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20253 (exit $ac_status); }; } &&
20254 { ac_try='test -s conftest$ac_exeext'
20255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20256 (eval $ac_try) 2>&5
20258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20259 (exit $ac_status); }; }; then
20260 ac_cv_search_opendir="-l$ac_lib"
20263 echo "$as_me: failed program was:" >&5
20264 sed 's/^/| /' conftest.$ac_ext >&5
20267 rm -f conftest.err conftest.$ac_objext \
20268 conftest$ac_exeext conftest.$ac_ext
20271 LIBS=$ac_func_search_save_LIBS
20273 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20274 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20275 if test "$ac_cv_search_opendir" != no; then
20276 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20282 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
20283 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
20284 if test "${ac_cv_header_stat_broken+set}" = set; then
20285 echo $ECHO_N "(cached) $ECHO_C" >&6
20287 cat >conftest.$ac_ext <<_ACEOF
20290 cat confdefs.h >>conftest.$ac_ext
20291 cat >>conftest.$ac_ext <<_ACEOF
20292 /* end confdefs.h. */
20293 #include <sys/types.h>
20294 #include <sys/stat.h>
20296 #if defined(S_ISBLK) && defined(S_IFDIR)
20297 # if S_ISBLK (S_IFDIR)
20302 #if defined(S_ISBLK) && defined(S_IFCHR)
20303 # if S_ISBLK (S_IFCHR)
20308 #if defined(S_ISLNK) && defined(S_IFREG)
20309 # if S_ISLNK (S_IFREG)
20314 #if defined(S_ISSOCK) && defined(S_IFREG)
20315 # if S_ISSOCK (S_IFREG)
20321 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20322 $EGREP "You lose" >/dev/null 2>&1; then
20323 ac_cv_header_stat_broken=yes
20325 ac_cv_header_stat_broken=no
20330 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
20331 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
20332 if test $ac_cv_header_stat_broken = yes; then
20334 cat >>confdefs.h <<\_ACEOF
20335 #define STAT_MACROS_BROKEN 1
20340 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20341 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
20342 if test "${ac_cv_header_sys_wait_h+set}" = set; then
20343 echo $ECHO_N "(cached) $ECHO_C" >&6
20345 cat >conftest.$ac_ext <<_ACEOF
20348 cat confdefs.h >>conftest.$ac_ext
20349 cat >>conftest.$ac_ext <<_ACEOF
20350 /* end confdefs.h. */
20351 #include <sys/types.h>
20352 #include <sys/wait.h>
20353 #ifndef WEXITSTATUS
20354 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
20357 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20365 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20370 rm -f conftest.$ac_objext
20371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20372 (eval $ac_compile) 2>conftest.er1
20374 grep -v '^ *+' conftest.er1 >conftest.err
20376 cat conftest.err >&5
20377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20378 (exit $ac_status); } &&
20379 { ac_try='test -z "$ac_c_werror_flag"
20380 || test ! -s conftest.err'
20381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20382 (eval $ac_try) 2>&5
20384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20385 (exit $ac_status); }; } &&
20386 { ac_try='test -s conftest.$ac_objext'
20387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20388 (eval $ac_try) 2>&5
20390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20391 (exit $ac_status); }; }; then
20392 ac_cv_header_sys_wait_h=yes
20394 echo "$as_me: failed program was:" >&5
20395 sed 's/^/| /' conftest.$ac_ext >&5
20397 ac_cv_header_sys_wait_h=no
20399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20401 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20402 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
20403 if test $ac_cv_header_sys_wait_h = yes; then
20405 cat >>confdefs.h <<\_ACEOF
20406 #define HAVE_SYS_WAIT_H 1
20411 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20412 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20413 if test "${ac_cv_header_time+set}" = set; then
20414 echo $ECHO_N "(cached) $ECHO_C" >&6
20416 cat >conftest.$ac_ext <<_ACEOF
20419 cat confdefs.h >>conftest.$ac_ext
20420 cat >>conftest.$ac_ext <<_ACEOF
20421 /* end confdefs.h. */
20422 #include <sys/types.h>
20423 #include <sys/time.h>
20429 if ((struct tm *) 0)
20435 rm -f conftest.$ac_objext
20436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20437 (eval $ac_compile) 2>conftest.er1
20439 grep -v '^ *+' conftest.er1 >conftest.err
20441 cat conftest.err >&5
20442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20443 (exit $ac_status); } &&
20444 { ac_try='test -z "$ac_c_werror_flag"
20445 || test ! -s conftest.err'
20446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20447 (eval $ac_try) 2>&5
20449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20450 (exit $ac_status); }; } &&
20451 { ac_try='test -s conftest.$ac_objext'
20452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20453 (eval $ac_try) 2>&5
20455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20456 (exit $ac_status); }; }; then
20457 ac_cv_header_time=yes
20459 echo "$as_me: failed program was:" >&5
20460 sed 's/^/| /' conftest.$ac_ext >&5
20462 ac_cv_header_time=no
20464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20466 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20467 echo "${ECHO_T}$ac_cv_header_time" >&6
20468 if test $ac_cv_header_time = yes; then
20470 cat >>confdefs.h <<\_ACEOF
20471 #define TIME_WITH_SYS_TIME 1
20477 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
20478 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
20479 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
20480 echo $ECHO_N "(cached) $ECHO_C" >&6
20482 cat >conftest.$ac_ext <<_ACEOF
20485 cat confdefs.h >>conftest.$ac_ext
20486 cat >>conftest.$ac_ext <<_ACEOF
20487 /* end confdefs.h. */
20488 $ac_includes_default
20492 static struct stat ac_aggr;
20493 if (ac_aggr.st_blksize)
20499 rm -f conftest.$ac_objext
20500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20501 (eval $ac_compile) 2>conftest.er1
20503 grep -v '^ *+' conftest.er1 >conftest.err
20505 cat conftest.err >&5
20506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20507 (exit $ac_status); } &&
20508 { ac_try='test -z "$ac_c_werror_flag"
20509 || test ! -s conftest.err'
20510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20511 (eval $ac_try) 2>&5
20513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20514 (exit $ac_status); }; } &&
20515 { ac_try='test -s conftest.$ac_objext'
20516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20517 (eval $ac_try) 2>&5
20519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20520 (exit $ac_status); }; }; then
20521 ac_cv_member_struct_stat_st_blksize=yes
20523 echo "$as_me: failed program was:" >&5
20524 sed 's/^/| /' conftest.$ac_ext >&5
20526 cat >conftest.$ac_ext <<_ACEOF
20529 cat confdefs.h >>conftest.$ac_ext
20530 cat >>conftest.$ac_ext <<_ACEOF
20531 /* end confdefs.h. */
20532 $ac_includes_default
20536 static struct stat ac_aggr;
20537 if (sizeof ac_aggr.st_blksize)
20543 rm -f conftest.$ac_objext
20544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20545 (eval $ac_compile) 2>conftest.er1
20547 grep -v '^ *+' conftest.er1 >conftest.err
20549 cat conftest.err >&5
20550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20551 (exit $ac_status); } &&
20552 { ac_try='test -z "$ac_c_werror_flag"
20553 || test ! -s conftest.err'
20554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20555 (eval $ac_try) 2>&5
20557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20558 (exit $ac_status); }; } &&
20559 { ac_try='test -s conftest.$ac_objext'
20560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20561 (eval $ac_try) 2>&5
20563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20564 (exit $ac_status); }; }; then
20565 ac_cv_member_struct_stat_st_blksize=yes
20567 echo "$as_me: failed program was:" >&5
20568 sed 's/^/| /' conftest.$ac_ext >&5
20570 ac_cv_member_struct_stat_st_blksize=no
20572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20574 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20576 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
20577 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
20578 if test $ac_cv_member_struct_stat_st_blksize = yes; then
20580 cat >>confdefs.h <<_ACEOF
20581 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
20585 cat >>confdefs.h <<\_ACEOF
20586 #define HAVE_ST_BLKSIZE 1
20592 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
20593 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
20594 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
20595 echo $ECHO_N "(cached) $ECHO_C" >&6
20597 cat >conftest.$ac_ext <<_ACEOF
20600 cat confdefs.h >>conftest.$ac_ext
20601 cat >>conftest.$ac_ext <<_ACEOF
20602 /* end confdefs.h. */
20603 $ac_includes_default
20607 static struct stat ac_aggr;
20608 if (ac_aggr.st_blocks)
20614 rm -f conftest.$ac_objext
20615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20616 (eval $ac_compile) 2>conftest.er1
20618 grep -v '^ *+' conftest.er1 >conftest.err
20620 cat conftest.err >&5
20621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20622 (exit $ac_status); } &&
20623 { ac_try='test -z "$ac_c_werror_flag"
20624 || test ! -s conftest.err'
20625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20626 (eval $ac_try) 2>&5
20628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20629 (exit $ac_status); }; } &&
20630 { ac_try='test -s conftest.$ac_objext'
20631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20632 (eval $ac_try) 2>&5
20634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20635 (exit $ac_status); }; }; then
20636 ac_cv_member_struct_stat_st_blocks=yes
20638 echo "$as_me: failed program was:" >&5
20639 sed 's/^/| /' conftest.$ac_ext >&5
20641 cat >conftest.$ac_ext <<_ACEOF
20644 cat confdefs.h >>conftest.$ac_ext
20645 cat >>conftest.$ac_ext <<_ACEOF
20646 /* end confdefs.h. */
20647 $ac_includes_default
20651 static struct stat ac_aggr;
20652 if (sizeof ac_aggr.st_blocks)
20658 rm -f conftest.$ac_objext
20659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20660 (eval $ac_compile) 2>conftest.er1
20662 grep -v '^ *+' conftest.er1 >conftest.err
20664 cat conftest.err >&5
20665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20666 (exit $ac_status); } &&
20667 { ac_try='test -z "$ac_c_werror_flag"
20668 || test ! -s conftest.err'
20669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20670 (eval $ac_try) 2>&5
20672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20673 (exit $ac_status); }; } &&
20674 { ac_try='test -s conftest.$ac_objext'
20675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20676 (eval $ac_try) 2>&5
20678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20679 (exit $ac_status); }; }; then
20680 ac_cv_member_struct_stat_st_blocks=yes
20682 echo "$as_me: failed program was:" >&5
20683 sed 's/^/| /' conftest.$ac_ext >&5
20685 ac_cv_member_struct_stat_st_blocks=no
20687 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20691 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
20692 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
20693 if test $ac_cv_member_struct_stat_st_blocks = yes; then
20695 cat >>confdefs.h <<_ACEOF
20696 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
20700 cat >>confdefs.h <<\_ACEOF
20701 #define HAVE_ST_BLOCKS 1
20706 "fileblocks.$ac_objext" | \
20707 *" fileblocks.$ac_objext" | \
20708 "fileblocks.$ac_objext "* | \
20709 *" fileblocks.$ac_objext "* ) ;;
20710 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
20716 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20717 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20718 if test "${ac_cv_struct_tm+set}" = set; then
20719 echo $ECHO_N "(cached) $ECHO_C" >&6
20721 cat >conftest.$ac_ext <<_ACEOF
20724 cat confdefs.h >>conftest.$ac_ext
20725 cat >>conftest.$ac_ext <<_ACEOF
20726 /* end confdefs.h. */
20727 #include <sys/types.h>
20733 struct tm *tp; tp->tm_sec;
20738 rm -f conftest.$ac_objext
20739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20740 (eval $ac_compile) 2>conftest.er1
20742 grep -v '^ *+' conftest.er1 >conftest.err
20744 cat conftest.err >&5
20745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20746 (exit $ac_status); } &&
20747 { ac_try='test -z "$ac_c_werror_flag"
20748 || test ! -s conftest.err'
20749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20750 (eval $ac_try) 2>&5
20752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20753 (exit $ac_status); }; } &&
20754 { ac_try='test -s conftest.$ac_objext'
20755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20756 (eval $ac_try) 2>&5
20758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20759 (exit $ac_status); }; }; then
20760 ac_cv_struct_tm=time.h
20762 echo "$as_me: failed program was:" >&5
20763 sed 's/^/| /' conftest.$ac_ext >&5
20765 ac_cv_struct_tm=sys/time.h
20767 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20769 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20770 echo "${ECHO_T}$ac_cv_struct_tm" >&6
20771 if test $ac_cv_struct_tm = sys/time.h; then
20773 cat >>confdefs.h <<\_ACEOF
20774 #define TM_IN_SYS_TIME 1
20779 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
20780 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
20781 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20782 echo $ECHO_N "(cached) $ECHO_C" >&6
20784 cat >conftest.$ac_ext <<_ACEOF
20787 cat confdefs.h >>conftest.$ac_ext
20788 cat >>conftest.$ac_ext <<_ACEOF
20789 /* end confdefs.h. */
20790 #include <sys/types.h>
20791 #include <$ac_cv_struct_tm>
20797 static struct tm ac_aggr;
20798 if (ac_aggr.tm_zone)
20804 rm -f conftest.$ac_objext
20805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20806 (eval $ac_compile) 2>conftest.er1
20808 grep -v '^ *+' conftest.er1 >conftest.err
20810 cat conftest.err >&5
20811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20812 (exit $ac_status); } &&
20813 { ac_try='test -z "$ac_c_werror_flag"
20814 || test ! -s conftest.err'
20815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20816 (eval $ac_try) 2>&5
20818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20819 (exit $ac_status); }; } &&
20820 { ac_try='test -s conftest.$ac_objext'
20821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20822 (eval $ac_try) 2>&5
20824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20825 (exit $ac_status); }; }; then
20826 ac_cv_member_struct_tm_tm_zone=yes
20828 echo "$as_me: failed program was:" >&5
20829 sed 's/^/| /' conftest.$ac_ext >&5
20831 cat >conftest.$ac_ext <<_ACEOF
20834 cat confdefs.h >>conftest.$ac_ext
20835 cat >>conftest.$ac_ext <<_ACEOF
20836 /* end confdefs.h. */
20837 #include <sys/types.h>
20838 #include <$ac_cv_struct_tm>
20844 static struct tm ac_aggr;
20845 if (sizeof ac_aggr.tm_zone)
20851 rm -f conftest.$ac_objext
20852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20853 (eval $ac_compile) 2>conftest.er1
20855 grep -v '^ *+' conftest.er1 >conftest.err
20857 cat conftest.err >&5
20858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20859 (exit $ac_status); } &&
20860 { ac_try='test -z "$ac_c_werror_flag"
20861 || test ! -s conftest.err'
20862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20863 (eval $ac_try) 2>&5
20865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20866 (exit $ac_status); }; } &&
20867 { ac_try='test -s conftest.$ac_objext'
20868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20869 (eval $ac_try) 2>&5
20871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20872 (exit $ac_status); }; }; then
20873 ac_cv_member_struct_tm_tm_zone=yes
20875 echo "$as_me: failed program was:" >&5
20876 sed 's/^/| /' conftest.$ac_ext >&5
20878 ac_cv_member_struct_tm_tm_zone=no
20880 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20882 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20884 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
20885 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
20886 if test $ac_cv_member_struct_tm_tm_zone = yes; then
20888 cat >>confdefs.h <<_ACEOF
20889 #define HAVE_STRUCT_TM_TM_ZONE 1
20895 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
20897 cat >>confdefs.h <<\_ACEOF
20898 #define HAVE_TM_ZONE 1
20902 echo "$as_me:$LINENO: checking for tzname" >&5
20903 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
20904 if test "${ac_cv_var_tzname+set}" = set; then
20905 echo $ECHO_N "(cached) $ECHO_C" >&6
20907 cat >conftest.$ac_ext <<_ACEOF
20910 cat confdefs.h >>conftest.$ac_ext
20911 cat >>conftest.$ac_ext <<_ACEOF
20912 /* end confdefs.h. */
20914 #ifndef tzname /* For SGI. */
20915 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
20926 rm -f conftest.$ac_objext conftest$ac_exeext
20927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20928 (eval $ac_link) 2>conftest.er1
20930 grep -v '^ *+' conftest.er1 >conftest.err
20932 cat conftest.err >&5
20933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20934 (exit $ac_status); } &&
20935 { ac_try='test -z "$ac_c_werror_flag"
20936 || test ! -s conftest.err'
20937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20938 (eval $ac_try) 2>&5
20940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20941 (exit $ac_status); }; } &&
20942 { ac_try='test -s conftest$ac_exeext'
20943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20944 (eval $ac_try) 2>&5
20946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20947 (exit $ac_status); }; }; then
20948 ac_cv_var_tzname=yes
20950 echo "$as_me: failed program was:" >&5
20951 sed 's/^/| /' conftest.$ac_ext >&5
20953 ac_cv_var_tzname=no
20955 rm -f conftest.err conftest.$ac_objext \
20956 conftest$ac_exeext conftest.$ac_ext
20958 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
20959 echo "${ECHO_T}$ac_cv_var_tzname" >&6
20960 if test $ac_cv_var_tzname = yes; then
20962 cat >>confdefs.h <<\_ACEOF
20963 #define HAVE_TZNAME 1
20970 echo "$as_me:$LINENO: checking for utime.h" >&5
20971 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
20972 if test "${ba_cv_header_utime_h+set}" = set; then
20973 echo $ECHO_N "(cached) $ECHO_C" >&6
20975 cat >conftest.$ac_ext <<_ACEOF
20978 cat confdefs.h >>conftest.$ac_ext
20979 cat >>conftest.$ac_ext <<_ACEOF
20980 /* end confdefs.h. */
20982 #include <sys/types.h>
20992 rm -f conftest.$ac_objext
20993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20994 (eval $ac_compile) 2>conftest.er1
20996 grep -v '^ *+' conftest.er1 >conftest.err
20998 cat conftest.err >&5
20999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21000 (exit $ac_status); } &&
21001 { ac_try='test -z "$ac_c_werror_flag"
21002 || test ! -s conftest.err'
21003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21004 (eval $ac_try) 2>&5
21006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21007 (exit $ac_status); }; } &&
21008 { ac_try='test -s conftest.$ac_objext'
21009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21010 (eval $ac_try) 2>&5
21012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21013 (exit $ac_status); }; }; then
21014 ba_cv_header_utime_h=yes
21016 echo "$as_me: failed program was:" >&5
21017 sed 's/^/| /' conftest.$ac_ext >&5
21019 ba_cv_header_utime_h=no
21021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21023 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
21024 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
21025 test $ba_cv_header_utime_h = yes &&
21026 cat >>confdefs.h <<\_ACEOF
21027 #define HAVE_UTIME_H 1
21031 echo "$as_me:$LINENO: checking for socklen_t" >&5
21032 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
21033 if test "${ba_cv_header_socklen_t+set}" = set; then
21034 echo $ECHO_N "(cached) $ECHO_C" >&6
21036 cat >conftest.$ac_ext <<_ACEOF
21039 cat confdefs.h >>conftest.$ac_ext
21040 cat >>conftest.$ac_ext <<_ACEOF
21041 /* end confdefs.h. */
21043 #include <sys/types.h>
21044 #include <sys/socket.h>
21053 rm -f conftest.$ac_objext
21054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21055 (eval $ac_compile) 2>conftest.er1
21057 grep -v '^ *+' conftest.er1 >conftest.err
21059 cat conftest.err >&5
21060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21061 (exit $ac_status); } &&
21062 { ac_try='test -z "$ac_c_werror_flag"
21063 || test ! -s conftest.err'
21064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21065 (eval $ac_try) 2>&5
21067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21068 (exit $ac_status); }; } &&
21069 { ac_try='test -s conftest.$ac_objext'
21070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21071 (eval $ac_try) 2>&5
21073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21074 (exit $ac_status); }; }; then
21075 ba_cv_header_socklen_t=yes
21077 echo "$as_me: failed program was:" >&5
21078 sed 's/^/| /' conftest.$ac_ext >&5
21080 ba_cv_header_socklen_t=no
21082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21084 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
21085 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
21086 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
21087 #define HAVE_SOCKLEN_T 1
21091 echo "$as_me:$LINENO: checking for bigendian" >&5
21092 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
21093 if test "${ba_cv_bigendian+set}" = set; then
21094 echo $ECHO_N "(cached) $ECHO_C" >&6
21096 if test "$cross_compiling" = yes; then
21099 cat >conftest.$ac_ext <<_ACEOF
21102 cat confdefs.h >>conftest.$ac_ext
21103 cat >>conftest.$ac_ext <<_ACEOF
21104 /* end confdefs.h. */
21105 main(){long a=1L; char *p=(char *)&a; exit(*p);}
21107 rm -f conftest$ac_exeext
21108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21109 (eval $ac_link) 2>&5
21111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21112 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21114 (eval $ac_try) 2>&5
21116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21117 (exit $ac_status); }; }; then
21118 ba_cv_bigendian=yes
21120 echo "$as_me: program exited with status $ac_status" >&5
21121 echo "$as_me: failed program was:" >&5
21122 sed 's/^/| /' conftest.$ac_ext >&5
21124 ( exit $ac_status )
21127 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21130 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
21131 echo "${ECHO_T}$ba_cv_bigendian" >&6
21132 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
21133 #define HAVE_BIGENDIAN 1
21138 ac_cpp='$CXXCPP $CPPFLAGS'
21139 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21140 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21141 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21144 echo "$as_me:$LINENO: checking for typeof" >&5
21145 echo $ECHO_N "checking for typeof... $ECHO_C" >&6
21146 if test "${ba_cv_have_typeof+set}" = set; then
21147 echo $ECHO_N "(cached) $ECHO_C" >&6
21149 if test "$cross_compiling" = yes; then
21150 ba_cv_have_typeof=no
21152 cat >conftest.$ac_ext <<_ACEOF
21155 cat confdefs.h >>conftest.$ac_ext
21156 cat >>conftest.$ac_ext <<_ACEOF
21157 /* end confdefs.h. */
21158 main(){char *a = 0; a = (typeof a)a;}
21160 rm -f conftest$ac_exeext
21161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21162 (eval $ac_link) 2>&5
21164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21165 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21167 (eval $ac_try) 2>&5
21169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21170 (exit $ac_status); }; }; then
21171 ba_cv_have_typeof=yes
21173 echo "$as_me: program exited with status $ac_status" >&5
21174 echo "$as_me: failed program was:" >&5
21175 sed 's/^/| /' conftest.$ac_ext >&5
21177 ( exit $ac_status )
21178 ba_cv_have_typeof=no
21180 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21183 echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
21184 echo "${ECHO_T}$ba_cv_have_typeof" >&6
21185 test $ba_cv_have_typeof = yes &&
21186 cat >>confdefs.h <<\_ACEOF
21187 #define HAVE_TYPEOF 1
21191 ac_cpp='$CPP $CPPFLAGS'
21192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21197 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21198 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
21199 if test "${ac_cv_c_const+set}" = set; then
21200 echo $ECHO_N "(cached) $ECHO_C" >&6
21202 cat >conftest.$ac_ext <<_ACEOF
21205 cat confdefs.h >>conftest.$ac_ext
21206 cat >>conftest.$ac_ext <<_ACEOF
21207 /* end confdefs.h. */
21212 /* FIXME: Include the comments suggested by Paul. */
21213 #ifndef __cplusplus
21214 /* Ultrix mips cc rejects this. */
21215 typedef int charset[2];
21217 /* SunOS 4.1.1 cc rejects this. */
21218 char const *const *ccp;
21220 /* NEC SVR4.0.2 mips cc rejects this. */
21221 struct point {int x, y;};
21222 static struct point const zero = {0,0};
21223 /* AIX XL C 1.02.0.0 rejects this.
21224 It does not let you subtract one const X* pointer from another in
21225 an arm of an if-expression whose if-part is not a constant
21227 const char *g = "string";
21228 ccp = &g + (g ? g-g : 0);
21229 /* HPUX 7.0 cc rejects these. */
21232 ccp = (char const *const *) p;
21233 { /* SCO 3.2v4 cc rejects this. */
21235 char const *s = 0 ? (char *) 0 : (char const *) 0;
21239 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21240 int x[] = {25, 17};
21241 const int *foo = &x[0];
21244 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21245 typedef const int *iptr;
21249 { /* AIX XL C 1.02.0.0 rejects this saying
21250 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21251 struct s { int j; const int *ap[3]; };
21252 struct s *b; b->j = 5;
21254 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21255 const int foo = 10;
21263 rm -f conftest.$ac_objext
21264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21265 (eval $ac_compile) 2>conftest.er1
21267 grep -v '^ *+' conftest.er1 >conftest.err
21269 cat conftest.err >&5
21270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21271 (exit $ac_status); } &&
21272 { ac_try='test -z "$ac_c_werror_flag"
21273 || test ! -s conftest.err'
21274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21275 (eval $ac_try) 2>&5
21277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21278 (exit $ac_status); }; } &&
21279 { ac_try='test -s conftest.$ac_objext'
21280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21281 (eval $ac_try) 2>&5
21283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21284 (exit $ac_status); }; }; then
21287 echo "$as_me: failed program was:" >&5
21288 sed 's/^/| /' conftest.$ac_ext >&5
21292 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21294 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21295 echo "${ECHO_T}$ac_cv_c_const" >&6
21296 if test $ac_cv_c_const = no; then
21298 cat >>confdefs.h <<\_ACEOF
21306 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
21307 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
21309 # The order of these tests is important.
21310 cat >conftest.$ac_ext <<_ACEOF
21313 cat confdefs.h >>conftest.$ac_ext
21314 cat >>conftest.$ac_ext <<_ACEOF
21315 /* end confdefs.h. */
21316 #include <sys/statvfs.h>
21317 #include <sys/fstyp.h>
21319 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21320 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21322 grep -v '^ *+' conftest.er1 >conftest.err
21324 cat conftest.err >&5
21325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21326 (exit $ac_status); } >/dev/null; then
21327 if test -s conftest.err; then
21328 ac_cpp_err=$ac_c_preproc_warn_flag
21329 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21336 if test -z "$ac_cpp_err"; then
21337 cat >>confdefs.h <<\_ACEOF
21338 #define FSTYPE_STATVFS 1
21342 echo "$as_me: failed program was:" >&5
21343 sed 's/^/| /' conftest.$ac_ext >&5
21347 rm -f conftest.err conftest.$ac_ext
21348 if test $fstype = no; then
21349 cat >conftest.$ac_ext <<_ACEOF
21352 cat confdefs.h >>conftest.$ac_ext
21353 cat >>conftest.$ac_ext <<_ACEOF
21354 /* end confdefs.h. */
21355 #include <sys/statfs.h>
21356 #include <sys/fstyp.h>
21358 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21359 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21361 grep -v '^ *+' conftest.er1 >conftest.err
21363 cat conftest.err >&5
21364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21365 (exit $ac_status); } >/dev/null; then
21366 if test -s conftest.err; then
21367 ac_cpp_err=$ac_c_preproc_warn_flag
21368 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21375 if test -z "$ac_cpp_err"; then
21376 cat >>confdefs.h <<\_ACEOF
21377 #define FSTYPE_USG_STATFS 1
21381 echo "$as_me: failed program was:" >&5
21382 sed 's/^/| /' conftest.$ac_ext >&5
21386 rm -f conftest.err conftest.$ac_ext
21388 if test $fstype = no; then
21389 cat >conftest.$ac_ext <<_ACEOF
21392 cat confdefs.h >>conftest.$ac_ext
21393 cat >>conftest.$ac_ext <<_ACEOF
21394 /* end confdefs.h. */
21395 #include <sys/statfs.h>
21396 #include <sys/vmount.h>
21398 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21399 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21401 grep -v '^ *+' conftest.er1 >conftest.err
21403 cat conftest.err >&5
21404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21405 (exit $ac_status); } >/dev/null; then
21406 if test -s conftest.err; then
21407 ac_cpp_err=$ac_c_preproc_warn_flag
21408 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21415 if test -z "$ac_cpp_err"; then
21416 cat >>confdefs.h <<\_ACEOF
21417 #define FSTYPE_AIX_STATFS 1
21421 echo "$as_me: failed program was:" >&5
21422 sed 's/^/| /' conftest.$ac_ext >&5
21426 rm -f conftest.err conftest.$ac_ext
21428 if test $fstype = no; then
21429 cat >conftest.$ac_ext <<_ACEOF
21432 cat confdefs.h >>conftest.$ac_ext
21433 cat >>conftest.$ac_ext <<_ACEOF
21434 /* end confdefs.h. */
21435 #include <mntent.h>
21437 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21438 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21440 grep -v '^ *+' conftest.er1 >conftest.err
21442 cat conftest.err >&5
21443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21444 (exit $ac_status); } >/dev/null; then
21445 if test -s conftest.err; then
21446 ac_cpp_err=$ac_c_preproc_warn_flag
21447 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21454 if test -z "$ac_cpp_err"; then
21455 cat >>confdefs.h <<\_ACEOF
21456 #define FSTYPE_MNTENT 1
21460 echo "$as_me: failed program was:" >&5
21461 sed 's/^/| /' conftest.$ac_ext >&5
21465 rm -f conftest.err conftest.$ac_ext
21467 if test $fstype = no; then
21468 cat >conftest.$ac_ext <<_ACEOF
21471 cat confdefs.h >>conftest.$ac_ext
21472 cat >>conftest.$ac_ext <<_ACEOF
21473 /* end confdefs.h. */
21474 #include <sys/mount.h>
21477 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21478 $EGREP "f_type;" >/dev/null 2>&1; then
21479 cat >>confdefs.h <<\_ACEOF
21480 #define FSTYPE_STATFS 1
21487 if test $fstype = no; then
21488 cat >conftest.$ac_ext <<_ACEOF
21491 cat confdefs.h >>conftest.$ac_ext
21492 cat >>conftest.$ac_ext <<_ACEOF
21493 /* end confdefs.h. */
21494 #include <sys/mount.h>
21495 #include <sys/fs_types.h>
21497 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21498 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21500 grep -v '^ *+' conftest.er1 >conftest.err
21502 cat conftest.err >&5
21503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21504 (exit $ac_status); } >/dev/null; then
21505 if test -s conftest.err; then
21506 ac_cpp_err=$ac_c_preproc_warn_flag
21507 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21514 if test -z "$ac_cpp_err"; then
21515 cat >>confdefs.h <<\_ACEOF
21516 #define FSTYPE_GETMNT 1
21520 echo "$as_me: failed program was:" >&5
21521 sed 's/^/| /' conftest.$ac_ext >&5
21525 rm -f conftest.err conftest.$ac_ext
21527 echo "$as_me:$LINENO: result: $fstype" >&5
21528 echo "${ECHO_T}$fstype" >&6
21530 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21531 echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
21532 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6
21533 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21534 echo $ECHO_N "(cached) $ECHO_C" >&6
21536 echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
21537 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6
21539 # Is the header compilable?
21540 echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
21541 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6
21542 cat >conftest.$ac_ext <<_ACEOF
21545 cat confdefs.h >>conftest.$ac_ext
21546 cat >>conftest.$ac_ext <<_ACEOF
21547 /* end confdefs.h. */
21548 $ac_includes_default
21549 #include <sys/statvfs.h>
21551 rm -f conftest.$ac_objext
21552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21553 (eval $ac_compile) 2>conftest.er1
21555 grep -v '^ *+' conftest.er1 >conftest.err
21557 cat conftest.err >&5
21558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21559 (exit $ac_status); } &&
21560 { ac_try='test -z "$ac_c_werror_flag"
21561 || test ! -s conftest.err'
21562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21563 (eval $ac_try) 2>&5
21565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21566 (exit $ac_status); }; } &&
21567 { ac_try='test -s conftest.$ac_objext'
21568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21569 (eval $ac_try) 2>&5
21571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21572 (exit $ac_status); }; }; then
21573 ac_header_compiler=yes
21575 echo "$as_me: failed program was:" >&5
21576 sed 's/^/| /' conftest.$ac_ext >&5
21578 ac_header_compiler=no
21580 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21581 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21582 echo "${ECHO_T}$ac_header_compiler" >&6
21584 # Is the header present?
21585 echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
21586 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6
21587 cat >conftest.$ac_ext <<_ACEOF
21590 cat confdefs.h >>conftest.$ac_ext
21591 cat >>conftest.$ac_ext <<_ACEOF
21592 /* end confdefs.h. */
21593 #include <sys/statvfs.h>
21595 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21596 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21598 grep -v '^ *+' conftest.er1 >conftest.err
21600 cat conftest.err >&5
21601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21602 (exit $ac_status); } >/dev/null; then
21603 if test -s conftest.err; then
21604 ac_cpp_err=$ac_c_preproc_warn_flag
21605 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21612 if test -z "$ac_cpp_err"; then
21613 ac_header_preproc=yes
21615 echo "$as_me: failed program was:" >&5
21616 sed 's/^/| /' conftest.$ac_ext >&5
21618 ac_header_preproc=no
21620 rm -f conftest.err conftest.$ac_ext
21621 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21622 echo "${ECHO_T}$ac_header_preproc" >&6
21624 # So? What about this header?
21625 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21627 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
21628 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21629 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
21630 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
21631 ac_header_preproc=yes
21634 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
21635 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
21636 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&5
21637 echo "$as_me: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&2;}
21638 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
21639 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
21640 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&5
21641 echo "$as_me: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&2;}
21642 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
21643 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
21644 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
21645 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
21648 ## ------------------------------------------ ##
21649 ## Report this to the AC_PACKAGE_NAME lists. ##
21650 ## ------------------------------------------ ##
21653 sed "s/^/$as_me: WARNING: /" >&2
21656 echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
21657 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6
21658 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21659 echo $ECHO_N "(cached) $ECHO_C" >&6
21661 ac_cv_header_sys_statvfs_h=$ac_header_preproc
21663 echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
21664 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6
21667 if test $ac_cv_header_sys_statvfs_h = yes; then
21669 cat >>confdefs.h <<\_ACEOF
21670 #define HAVE_SYS_STATVFS_H 1
21677 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
21678 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
21679 if test "${ac_cv_type_signal+set}" = set; then
21680 echo $ECHO_N "(cached) $ECHO_C" >&6
21682 cat >conftest.$ac_ext <<_ACEOF
21685 cat confdefs.h >>conftest.$ac_ext
21686 cat >>conftest.$ac_ext <<_ACEOF
21687 /* end confdefs.h. */
21688 #include <sys/types.h>
21689 #include <signal.h>
21694 extern "C" void (*signal (int, void (*)(int)))(int);
21696 void (*signal ()) ();
21707 rm -f conftest.$ac_objext
21708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21709 (eval $ac_compile) 2>conftest.er1
21711 grep -v '^ *+' conftest.er1 >conftest.err
21713 cat conftest.err >&5
21714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21715 (exit $ac_status); } &&
21716 { ac_try='test -z "$ac_c_werror_flag"
21717 || test ! -s conftest.err'
21718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21719 (eval $ac_try) 2>&5
21721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21722 (exit $ac_status); }; } &&
21723 { ac_try='test -s conftest.$ac_objext'
21724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21725 (eval $ac_try) 2>&5
21727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21728 (exit $ac_status); }; }; then
21729 ac_cv_type_signal=void
21731 echo "$as_me: failed program was:" >&5
21732 sed 's/^/| /' conftest.$ac_ext >&5
21734 ac_cv_type_signal=int
21736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21738 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
21739 echo "${ECHO_T}$ac_cv_type_signal" >&6
21741 cat >>confdefs.h <<_ACEOF
21742 #define RETSIGTYPE $ac_cv_type_signal
21747 echo "$as_me:$LINENO: checking for type of signal functions" >&5
21748 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
21749 if test "${bash_cv_signal_vintage+set}" = set; then
21750 echo $ECHO_N "(cached) $ECHO_C" >&6
21753 cat >conftest.$ac_ext <<_ACEOF
21756 cat confdefs.h >>conftest.$ac_ext
21757 cat >>conftest.$ac_ext <<_ACEOF
21758 /* end confdefs.h. */
21759 #include <signal.h>
21765 struct sigaction sa;
21766 sigemptyset(&ss); sigsuspend(&ss);
21767 sigaction(SIGINT, &sa, (struct sigaction *) 0);
21768 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
21774 rm -f conftest.$ac_objext conftest$ac_exeext
21775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21776 (eval $ac_link) 2>conftest.er1
21778 grep -v '^ *+' conftest.er1 >conftest.err
21780 cat conftest.err >&5
21781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21782 (exit $ac_status); } &&
21783 { ac_try='test -z "$ac_c_werror_flag"
21784 || test ! -s conftest.err'
21785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21786 (eval $ac_try) 2>&5
21788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21789 (exit $ac_status); }; } &&
21790 { ac_try='test -s conftest$ac_exeext'
21791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21792 (eval $ac_try) 2>&5
21794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21795 (exit $ac_status); }; }; then
21796 bash_cv_signal_vintage="posix"
21798 echo "$as_me: failed program was:" >&5
21799 sed 's/^/| /' conftest.$ac_ext >&5
21802 cat >conftest.$ac_ext <<_ACEOF
21805 cat confdefs.h >>conftest.$ac_ext
21806 cat >>conftest.$ac_ext <<_ACEOF
21807 /* end confdefs.h. */
21808 #include <signal.h>
21813 int mask = sigmask(SIGINT);
21814 sigsetmask(mask); sigblock(mask); sigpause(mask);
21820 rm -f conftest.$ac_objext conftest$ac_exeext
21821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21822 (eval $ac_link) 2>conftest.er1
21824 grep -v '^ *+' conftest.er1 >conftest.err
21826 cat conftest.err >&5
21827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21828 (exit $ac_status); } &&
21829 { ac_try='test -z "$ac_c_werror_flag"
21830 || test ! -s conftest.err'
21831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21832 (eval $ac_try) 2>&5
21834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21835 (exit $ac_status); }; } &&
21836 { ac_try='test -s conftest$ac_exeext'
21837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21838 (eval $ac_try) 2>&5
21840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21841 (exit $ac_status); }; }; then
21842 bash_cv_signal_vintage="4.2bsd"
21844 echo "$as_me: failed program was:" >&5
21845 sed 's/^/| /' conftest.$ac_ext >&5
21848 cat >conftest.$ac_ext <<_ACEOF
21851 cat confdefs.h >>conftest.$ac_ext
21852 cat >>conftest.$ac_ext <<_ACEOF
21853 /* end confdefs.h. */
21855 #include <signal.h>
21856 RETSIGTYPE foo() { }
21861 int mask = sigmask(SIGINT);
21862 sigset(SIGINT, foo); sigrelse(SIGINT);
21863 sighold(SIGINT); sigpause(SIGINT);
21869 rm -f conftest.$ac_objext conftest$ac_exeext
21870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21871 (eval $ac_link) 2>conftest.er1
21873 grep -v '^ *+' conftest.er1 >conftest.err
21875 cat conftest.err >&5
21876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21877 (exit $ac_status); } &&
21878 { ac_try='test -z "$ac_c_werror_flag"
21879 || test ! -s conftest.err'
21880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21881 (eval $ac_try) 2>&5
21883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21884 (exit $ac_status); }; } &&
21885 { ac_try='test -s conftest$ac_exeext'
21886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21887 (eval $ac_try) 2>&5
21889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21890 (exit $ac_status); }; }; then
21891 bash_cv_signal_vintage="svr3"
21893 echo "$as_me: failed program was:" >&5
21894 sed 's/^/| /' conftest.$ac_ext >&5
21896 bash_cv_signal_vintage="v7"
21899 rm -f conftest.err conftest.$ac_objext \
21900 conftest$ac_exeext conftest.$ac_ext
21903 rm -f conftest.err conftest.$ac_objext \
21904 conftest$ac_exeext conftest.$ac_ext
21907 rm -f conftest.err conftest.$ac_objext \
21908 conftest$ac_exeext conftest.$ac_ext
21912 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
21913 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
21914 if test "$bash_cv_signal_vintage" = "posix"; then
21915 cat >>confdefs.h <<\_ACEOF
21916 #define HAVE_POSIX_SIGNALS 1
21919 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
21920 cat >>confdefs.h <<\_ACEOF
21921 #define HAVE_BSD_SIGNALS 1
21924 elif test "$bash_cv_signal_vintage" = "svr3"; then
21925 cat >>confdefs.h <<\_ACEOF
21926 #define HAVE_USG_SIGHOLD 1
21931 echo "$as_me:$LINENO: checking for mode_t" >&5
21932 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
21933 if test "${ac_cv_type_mode_t+set}" = set; then
21934 echo $ECHO_N "(cached) $ECHO_C" >&6
21936 cat >conftest.$ac_ext <<_ACEOF
21939 cat confdefs.h >>conftest.$ac_ext
21940 cat >>conftest.$ac_ext <<_ACEOF
21941 /* end confdefs.h. */
21942 $ac_includes_default
21948 if (sizeof (mode_t))
21954 rm -f conftest.$ac_objext
21955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21956 (eval $ac_compile) 2>conftest.er1
21958 grep -v '^ *+' conftest.er1 >conftest.err
21960 cat conftest.err >&5
21961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21962 (exit $ac_status); } &&
21963 { ac_try='test -z "$ac_c_werror_flag"
21964 || test ! -s conftest.err'
21965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21966 (eval $ac_try) 2>&5
21968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21969 (exit $ac_status); }; } &&
21970 { ac_try='test -s conftest.$ac_objext'
21971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21972 (eval $ac_try) 2>&5
21974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21975 (exit $ac_status); }; }; then
21976 ac_cv_type_mode_t=yes
21978 echo "$as_me: failed program was:" >&5
21979 sed 's/^/| /' conftest.$ac_ext >&5
21981 ac_cv_type_mode_t=no
21983 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21985 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
21986 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
21987 if test $ac_cv_type_mode_t = yes; then
21991 cat >>confdefs.h <<_ACEOF
21997 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
21998 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
21999 if test "${ac_cv_type_uid_t+set}" = set; then
22000 echo $ECHO_N "(cached) $ECHO_C" >&6
22002 cat >conftest.$ac_ext <<_ACEOF
22005 cat confdefs.h >>conftest.$ac_ext
22006 cat >>conftest.$ac_ext <<_ACEOF
22007 /* end confdefs.h. */
22008 #include <sys/types.h>
22011 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22012 $EGREP "uid_t" >/dev/null 2>&1; then
22013 ac_cv_type_uid_t=yes
22015 ac_cv_type_uid_t=no
22020 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
22021 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
22022 if test $ac_cv_type_uid_t = no; then
22024 cat >>confdefs.h <<\_ACEOF
22029 cat >>confdefs.h <<\_ACEOF
22035 echo "$as_me:$LINENO: checking for size_t" >&5
22036 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
22037 if test "${ac_cv_type_size_t+set}" = set; then
22038 echo $ECHO_N "(cached) $ECHO_C" >&6
22040 cat >conftest.$ac_ext <<_ACEOF
22043 cat confdefs.h >>conftest.$ac_ext
22044 cat >>conftest.$ac_ext <<_ACEOF
22045 /* end confdefs.h. */
22046 $ac_includes_default
22052 if (sizeof (size_t))
22058 rm -f conftest.$ac_objext
22059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22060 (eval $ac_compile) 2>conftest.er1
22062 grep -v '^ *+' conftest.er1 >conftest.err
22064 cat conftest.err >&5
22065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22066 (exit $ac_status); } &&
22067 { ac_try='test -z "$ac_c_werror_flag"
22068 || test ! -s conftest.err'
22069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22070 (eval $ac_try) 2>&5
22072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22073 (exit $ac_status); }; } &&
22074 { ac_try='test -s conftest.$ac_objext'
22075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22076 (eval $ac_try) 2>&5
22078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22079 (exit $ac_status); }; }; then
22080 ac_cv_type_size_t=yes
22082 echo "$as_me: failed program was:" >&5
22083 sed 's/^/| /' conftest.$ac_ext >&5
22085 ac_cv_type_size_t=no
22087 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22089 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22090 echo "${ECHO_T}$ac_cv_type_size_t" >&6
22091 if test $ac_cv_type_size_t = yes; then
22095 cat >>confdefs.h <<_ACEOF
22096 #define size_t unsigned
22101 echo "$as_me:$LINENO: checking for pid_t" >&5
22102 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
22103 if test "${ac_cv_type_pid_t+set}" = set; then
22104 echo $ECHO_N "(cached) $ECHO_C" >&6
22106 cat >conftest.$ac_ext <<_ACEOF
22109 cat confdefs.h >>conftest.$ac_ext
22110 cat >>conftest.$ac_ext <<_ACEOF
22111 /* end confdefs.h. */
22112 $ac_includes_default
22118 if (sizeof (pid_t))
22124 rm -f conftest.$ac_objext
22125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22126 (eval $ac_compile) 2>conftest.er1
22128 grep -v '^ *+' conftest.er1 >conftest.err
22130 cat conftest.err >&5
22131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22132 (exit $ac_status); } &&
22133 { ac_try='test -z "$ac_c_werror_flag"
22134 || test ! -s conftest.err'
22135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22136 (eval $ac_try) 2>&5
22138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22139 (exit $ac_status); }; } &&
22140 { ac_try='test -s conftest.$ac_objext'
22141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22142 (eval $ac_try) 2>&5
22144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22145 (exit $ac_status); }; }; then
22146 ac_cv_type_pid_t=yes
22148 echo "$as_me: failed program was:" >&5
22149 sed 's/^/| /' conftest.$ac_ext >&5
22151 ac_cv_type_pid_t=no
22153 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22155 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22156 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
22157 if test $ac_cv_type_pid_t = yes; then
22161 cat >>confdefs.h <<_ACEOF
22167 echo "$as_me:$LINENO: checking for off_t" >&5
22168 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
22169 if test "${ac_cv_type_off_t+set}" = set; then
22170 echo $ECHO_N "(cached) $ECHO_C" >&6
22172 cat >conftest.$ac_ext <<_ACEOF
22175 cat confdefs.h >>conftest.$ac_ext
22176 cat >>conftest.$ac_ext <<_ACEOF
22177 /* end confdefs.h. */
22178 $ac_includes_default
22184 if (sizeof (off_t))
22190 rm -f conftest.$ac_objext
22191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22192 (eval $ac_compile) 2>conftest.er1
22194 grep -v '^ *+' conftest.er1 >conftest.err
22196 cat conftest.err >&5
22197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22198 (exit $ac_status); } &&
22199 { ac_try='test -z "$ac_c_werror_flag"
22200 || test ! -s conftest.err'
22201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22202 (eval $ac_try) 2>&5
22204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22205 (exit $ac_status); }; } &&
22206 { ac_try='test -s conftest.$ac_objext'
22207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22208 (eval $ac_try) 2>&5
22210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22211 (exit $ac_status); }; }; then
22212 ac_cv_type_off_t=yes
22214 echo "$as_me: failed program was:" >&5
22215 sed 's/^/| /' conftest.$ac_ext >&5
22217 ac_cv_type_off_t=no
22219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22221 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
22222 echo "${ECHO_T}$ac_cv_type_off_t" >&6
22223 if test $ac_cv_type_off_t = yes; then
22227 cat >>confdefs.h <<_ACEOF
22233 echo "$as_me:$LINENO: checking for ino_t" >&5
22234 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
22235 if test "${ac_cv_type_ino_t+set}" = set; then
22236 echo $ECHO_N "(cached) $ECHO_C" >&6
22238 cat >conftest.$ac_ext <<_ACEOF
22241 cat confdefs.h >>conftest.$ac_ext
22242 cat >>conftest.$ac_ext <<_ACEOF
22243 /* end confdefs.h. */
22244 $ac_includes_default
22250 if (sizeof (ino_t))
22256 rm -f conftest.$ac_objext
22257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22258 (eval $ac_compile) 2>conftest.er1
22260 grep -v '^ *+' conftest.er1 >conftest.err
22262 cat conftest.err >&5
22263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22264 (exit $ac_status); } &&
22265 { ac_try='test -z "$ac_c_werror_flag"
22266 || test ! -s conftest.err'
22267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22268 (eval $ac_try) 2>&5
22270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22271 (exit $ac_status); }; } &&
22272 { ac_try='test -s conftest.$ac_objext'
22273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22274 (eval $ac_try) 2>&5
22276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22277 (exit $ac_status); }; }; then
22278 ac_cv_type_ino_t=yes
22280 echo "$as_me: failed program was:" >&5
22281 sed 's/^/| /' conftest.$ac_ext >&5
22283 ac_cv_type_ino_t=no
22285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22287 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
22288 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
22289 if test $ac_cv_type_ino_t = yes; then
22293 cat >>confdefs.h <<_ACEOF
22294 #define ino_t unsigned long
22299 echo "$as_me:$LINENO: checking for dev_t" >&5
22300 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
22301 if test "${ac_cv_type_dev_t+set}" = set; then
22302 echo $ECHO_N "(cached) $ECHO_C" >&6
22304 cat >conftest.$ac_ext <<_ACEOF
22307 cat confdefs.h >>conftest.$ac_ext
22308 cat >>conftest.$ac_ext <<_ACEOF
22309 /* end confdefs.h. */
22310 $ac_includes_default
22316 if (sizeof (dev_t))
22322 rm -f conftest.$ac_objext
22323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22324 (eval $ac_compile) 2>conftest.er1
22326 grep -v '^ *+' conftest.er1 >conftest.err
22328 cat conftest.err >&5
22329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22330 (exit $ac_status); } &&
22331 { ac_try='test -z "$ac_c_werror_flag"
22332 || test ! -s conftest.err'
22333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22334 (eval $ac_try) 2>&5
22336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22337 (exit $ac_status); }; } &&
22338 { ac_try='test -s conftest.$ac_objext'
22339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22340 (eval $ac_try) 2>&5
22342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22343 (exit $ac_status); }; }; then
22344 ac_cv_type_dev_t=yes
22346 echo "$as_me: failed program was:" >&5
22347 sed 's/^/| /' conftest.$ac_ext >&5
22349 ac_cv_type_dev_t=no
22351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22353 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
22354 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
22355 if test $ac_cv_type_dev_t = yes; then
22359 cat >>confdefs.h <<_ACEOF
22360 #define dev_t unsigned long
22365 echo "$as_me:$LINENO: checking for daddr_t" >&5
22366 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
22367 if test "${ac_cv_type_daddr_t+set}" = set; then
22368 echo $ECHO_N "(cached) $ECHO_C" >&6
22370 cat >conftest.$ac_ext <<_ACEOF
22373 cat confdefs.h >>conftest.$ac_ext
22374 cat >>conftest.$ac_ext <<_ACEOF
22375 /* end confdefs.h. */
22376 $ac_includes_default
22382 if (sizeof (daddr_t))
22388 rm -f conftest.$ac_objext
22389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22390 (eval $ac_compile) 2>conftest.er1
22392 grep -v '^ *+' conftest.er1 >conftest.err
22394 cat conftest.err >&5
22395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22396 (exit $ac_status); } &&
22397 { ac_try='test -z "$ac_c_werror_flag"
22398 || test ! -s conftest.err'
22399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22400 (eval $ac_try) 2>&5
22402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22403 (exit $ac_status); }; } &&
22404 { ac_try='test -s conftest.$ac_objext'
22405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22406 (eval $ac_try) 2>&5
22408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22409 (exit $ac_status); }; }; then
22410 ac_cv_type_daddr_t=yes
22412 echo "$as_me: failed program was:" >&5
22413 sed 's/^/| /' conftest.$ac_ext >&5
22415 ac_cv_type_daddr_t=no
22417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22419 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
22420 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
22421 if test $ac_cv_type_daddr_t = yes; then
22425 cat >>confdefs.h <<_ACEOF
22426 #define daddr_t long
22431 echo "$as_me:$LINENO: checking for major_t" >&5
22432 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
22433 if test "${ac_cv_type_major_t+set}" = set; then
22434 echo $ECHO_N "(cached) $ECHO_C" >&6
22436 cat >conftest.$ac_ext <<_ACEOF
22439 cat confdefs.h >>conftest.$ac_ext
22440 cat >>conftest.$ac_ext <<_ACEOF
22441 /* end confdefs.h. */
22442 $ac_includes_default
22448 if (sizeof (major_t))
22454 rm -f conftest.$ac_objext
22455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22456 (eval $ac_compile) 2>conftest.er1
22458 grep -v '^ *+' conftest.er1 >conftest.err
22460 cat conftest.err >&5
22461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22462 (exit $ac_status); } &&
22463 { ac_try='test -z "$ac_c_werror_flag"
22464 || test ! -s conftest.err'
22465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22466 (eval $ac_try) 2>&5
22468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22469 (exit $ac_status); }; } &&
22470 { ac_try='test -s conftest.$ac_objext'
22471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22472 (eval $ac_try) 2>&5
22474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22475 (exit $ac_status); }; }; then
22476 ac_cv_type_major_t=yes
22478 echo "$as_me: failed program was:" >&5
22479 sed 's/^/| /' conftest.$ac_ext >&5
22481 ac_cv_type_major_t=no
22483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22485 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
22486 echo "${ECHO_T}$ac_cv_type_major_t" >&6
22487 if test $ac_cv_type_major_t = yes; then
22491 cat >>confdefs.h <<_ACEOF
22492 #define major_t int
22497 echo "$as_me:$LINENO: checking for minor_t" >&5
22498 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
22499 if test "${ac_cv_type_minor_t+set}" = set; then
22500 echo $ECHO_N "(cached) $ECHO_C" >&6
22502 cat >conftest.$ac_ext <<_ACEOF
22505 cat confdefs.h >>conftest.$ac_ext
22506 cat >>conftest.$ac_ext <<_ACEOF
22507 /* end confdefs.h. */
22508 $ac_includes_default
22514 if (sizeof (minor_t))
22520 rm -f conftest.$ac_objext
22521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22522 (eval $ac_compile) 2>conftest.er1
22524 grep -v '^ *+' conftest.er1 >conftest.err
22526 cat conftest.err >&5
22527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22528 (exit $ac_status); } &&
22529 { ac_try='test -z "$ac_c_werror_flag"
22530 || test ! -s conftest.err'
22531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22532 (eval $ac_try) 2>&5
22534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22535 (exit $ac_status); }; } &&
22536 { ac_try='test -s conftest.$ac_objext'
22537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22538 (eval $ac_try) 2>&5
22540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22541 (exit $ac_status); }; }; then
22542 ac_cv_type_minor_t=yes
22544 echo "$as_me: failed program was:" >&5
22545 sed 's/^/| /' conftest.$ac_ext >&5
22547 ac_cv_type_minor_t=no
22549 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22551 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
22552 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
22553 if test $ac_cv_type_minor_t = yes; then
22557 cat >>confdefs.h <<_ACEOF
22558 #define minor_t int
22563 echo "$as_me:$LINENO: checking for ssize_t" >&5
22564 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
22565 if test "${ac_cv_type_ssize_t+set}" = set; then
22566 echo $ECHO_N "(cached) $ECHO_C" >&6
22568 cat >conftest.$ac_ext <<_ACEOF
22571 cat confdefs.h >>conftest.$ac_ext
22572 cat >>conftest.$ac_ext <<_ACEOF
22573 /* end confdefs.h. */
22574 $ac_includes_default
22580 if (sizeof (ssize_t))
22586 rm -f conftest.$ac_objext
22587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22588 (eval $ac_compile) 2>conftest.er1
22590 grep -v '^ *+' conftest.er1 >conftest.err
22592 cat conftest.err >&5
22593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22594 (exit $ac_status); } &&
22595 { ac_try='test -z "$ac_c_werror_flag"
22596 || test ! -s conftest.err'
22597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22598 (eval $ac_try) 2>&5
22600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22601 (exit $ac_status); }; } &&
22602 { ac_try='test -s conftest.$ac_objext'
22603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22604 (eval $ac_try) 2>&5
22606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22607 (exit $ac_status); }; }; then
22608 ac_cv_type_ssize_t=yes
22610 echo "$as_me: failed program was:" >&5
22611 sed 's/^/| /' conftest.$ac_ext >&5
22613 ac_cv_type_ssize_t=no
22615 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22617 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
22618 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
22619 if test $ac_cv_type_ssize_t = yes; then
22623 cat >>confdefs.h <<_ACEOF
22624 #define ssize_t int
22629 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
22630 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
22631 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
22632 echo $ECHO_N "(cached) $ECHO_C" >&6
22634 cat >conftest.$ac_ext <<_ACEOF
22637 cat confdefs.h >>conftest.$ac_ext
22638 cat >>conftest.$ac_ext <<_ACEOF
22639 /* end confdefs.h. */
22640 $ac_includes_default
22644 static struct stat ac_aggr;
22645 if (ac_aggr.st_blocks)
22651 rm -f conftest.$ac_objext
22652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22653 (eval $ac_compile) 2>conftest.er1
22655 grep -v '^ *+' conftest.er1 >conftest.err
22657 cat conftest.err >&5
22658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22659 (exit $ac_status); } &&
22660 { ac_try='test -z "$ac_c_werror_flag"
22661 || test ! -s conftest.err'
22662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22663 (eval $ac_try) 2>&5
22665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22666 (exit $ac_status); }; } &&
22667 { ac_try='test -s conftest.$ac_objext'
22668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22669 (eval $ac_try) 2>&5
22671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22672 (exit $ac_status); }; }; then
22673 ac_cv_member_struct_stat_st_blocks=yes
22675 echo "$as_me: failed program was:" >&5
22676 sed 's/^/| /' conftest.$ac_ext >&5
22678 cat >conftest.$ac_ext <<_ACEOF
22681 cat confdefs.h >>conftest.$ac_ext
22682 cat >>conftest.$ac_ext <<_ACEOF
22683 /* end confdefs.h. */
22684 $ac_includes_default
22688 static struct stat ac_aggr;
22689 if (sizeof ac_aggr.st_blocks)
22695 rm -f conftest.$ac_objext
22696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22697 (eval $ac_compile) 2>conftest.er1
22699 grep -v '^ *+' conftest.er1 >conftest.err
22701 cat conftest.err >&5
22702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22703 (exit $ac_status); } &&
22704 { ac_try='test -z "$ac_c_werror_flag"
22705 || test ! -s conftest.err'
22706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22707 (eval $ac_try) 2>&5
22709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22710 (exit $ac_status); }; } &&
22711 { ac_try='test -s conftest.$ac_objext'
22712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22713 (eval $ac_try) 2>&5
22715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22716 (exit $ac_status); }; }; then
22717 ac_cv_member_struct_stat_st_blocks=yes
22719 echo "$as_me: failed program was:" >&5
22720 sed 's/^/| /' conftest.$ac_ext >&5
22722 ac_cv_member_struct_stat_st_blocks=no
22724 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22726 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22728 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
22729 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
22730 if test $ac_cv_member_struct_stat_st_blocks = yes; then
22732 cat >>confdefs.h <<_ACEOF
22733 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
22737 cat >>confdefs.h <<\_ACEOF
22738 #define HAVE_ST_BLOCKS 1
22743 "fileblocks.$ac_objext" | \
22744 *" fileblocks.$ac_objext" | \
22745 "fileblocks.$ac_objext "* | \
22746 *" fileblocks.$ac_objext "* ) ;;
22747 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
22754 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
22755 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
22756 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
22757 echo $ECHO_N "(cached) $ECHO_C" >&6
22759 cat >conftest.$ac_ext <<_ACEOF
22762 cat confdefs.h >>conftest.$ac_ext
22763 cat >>conftest.$ac_ext <<_ACEOF
22764 /* end confdefs.h. */
22765 $ac_includes_default
22769 static struct stat ac_aggr;
22770 if (ac_aggr.st_rdev)
22776 rm -f conftest.$ac_objext
22777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22778 (eval $ac_compile) 2>conftest.er1
22780 grep -v '^ *+' conftest.er1 >conftest.err
22782 cat conftest.err >&5
22783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22784 (exit $ac_status); } &&
22785 { ac_try='test -z "$ac_c_werror_flag"
22786 || test ! -s conftest.err'
22787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22788 (eval $ac_try) 2>&5
22790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22791 (exit $ac_status); }; } &&
22792 { ac_try='test -s conftest.$ac_objext'
22793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22794 (eval $ac_try) 2>&5
22796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22797 (exit $ac_status); }; }; then
22798 ac_cv_member_struct_stat_st_rdev=yes
22800 echo "$as_me: failed program was:" >&5
22801 sed 's/^/| /' conftest.$ac_ext >&5
22803 cat >conftest.$ac_ext <<_ACEOF
22806 cat confdefs.h >>conftest.$ac_ext
22807 cat >>conftest.$ac_ext <<_ACEOF
22808 /* end confdefs.h. */
22809 $ac_includes_default
22813 static struct stat ac_aggr;
22814 if (sizeof ac_aggr.st_rdev)
22820 rm -f conftest.$ac_objext
22821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22822 (eval $ac_compile) 2>conftest.er1
22824 grep -v '^ *+' conftest.er1 >conftest.err
22826 cat conftest.err >&5
22827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22828 (exit $ac_status); } &&
22829 { ac_try='test -z "$ac_c_werror_flag"
22830 || test ! -s conftest.err'
22831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22832 (eval $ac_try) 2>&5
22834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22835 (exit $ac_status); }; } &&
22836 { ac_try='test -s conftest.$ac_objext'
22837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22838 (eval $ac_try) 2>&5
22840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22841 (exit $ac_status); }; }; then
22842 ac_cv_member_struct_stat_st_rdev=yes
22844 echo "$as_me: failed program was:" >&5
22845 sed 's/^/| /' conftest.$ac_ext >&5
22847 ac_cv_member_struct_stat_st_rdev=no
22849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22853 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
22854 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
22855 if test $ac_cv_member_struct_stat_st_rdev = yes; then
22857 cat >>confdefs.h <<_ACEOF
22858 #define HAVE_STRUCT_STAT_ST_RDEV 1
22862 cat >>confdefs.h <<\_ACEOF
22863 #define HAVE_ST_RDEV 1
22869 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
22870 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
22871 if test "${ac_cv_struct_tm+set}" = set; then
22872 echo $ECHO_N "(cached) $ECHO_C" >&6
22874 cat >conftest.$ac_ext <<_ACEOF
22877 cat confdefs.h >>conftest.$ac_ext
22878 cat >>conftest.$ac_ext <<_ACEOF
22879 /* end confdefs.h. */
22880 #include <sys/types.h>
22886 struct tm *tp; tp->tm_sec;
22891 rm -f conftest.$ac_objext
22892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22893 (eval $ac_compile) 2>conftest.er1
22895 grep -v '^ *+' conftest.er1 >conftest.err
22897 cat conftest.err >&5
22898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22899 (exit $ac_status); } &&
22900 { ac_try='test -z "$ac_c_werror_flag"
22901 || test ! -s conftest.err'
22902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22903 (eval $ac_try) 2>&5
22905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22906 (exit $ac_status); }; } &&
22907 { ac_try='test -s conftest.$ac_objext'
22908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22909 (eval $ac_try) 2>&5
22911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22912 (exit $ac_status); }; }; then
22913 ac_cv_struct_tm=time.h
22915 echo "$as_me: failed program was:" >&5
22916 sed 's/^/| /' conftest.$ac_ext >&5
22918 ac_cv_struct_tm=sys/time.h
22920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22922 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
22923 echo "${ECHO_T}$ac_cv_struct_tm" >&6
22924 if test $ac_cv_struct_tm = sys/time.h; then
22926 cat >>confdefs.h <<\_ACEOF
22927 #define TM_IN_SYS_TIME 1
22932 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22933 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
22934 if test "${ac_cv_c_const+set}" = set; then
22935 echo $ECHO_N "(cached) $ECHO_C" >&6
22937 cat >conftest.$ac_ext <<_ACEOF
22940 cat confdefs.h >>conftest.$ac_ext
22941 cat >>conftest.$ac_ext <<_ACEOF
22942 /* end confdefs.h. */
22947 /* FIXME: Include the comments suggested by Paul. */
22948 #ifndef __cplusplus
22949 /* Ultrix mips cc rejects this. */
22950 typedef int charset[2];
22952 /* SunOS 4.1.1 cc rejects this. */
22953 char const *const *ccp;
22955 /* NEC SVR4.0.2 mips cc rejects this. */
22956 struct point {int x, y;};
22957 static struct point const zero = {0,0};
22958 /* AIX XL C 1.02.0.0 rejects this.
22959 It does not let you subtract one const X* pointer from another in
22960 an arm of an if-expression whose if-part is not a constant
22962 const char *g = "string";
22963 ccp = &g + (g ? g-g : 0);
22964 /* HPUX 7.0 cc rejects these. */
22967 ccp = (char const *const *) p;
22968 { /* SCO 3.2v4 cc rejects this. */
22970 char const *s = 0 ? (char *) 0 : (char const *) 0;
22974 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22975 int x[] = {25, 17};
22976 const int *foo = &x[0];
22979 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22980 typedef const int *iptr;
22984 { /* AIX XL C 1.02.0.0 rejects this saying
22985 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22986 struct s { int j; const int *ap[3]; };
22987 struct s *b; b->j = 5;
22989 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22990 const int foo = 10;
22998 rm -f conftest.$ac_objext
22999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23000 (eval $ac_compile) 2>conftest.er1
23002 grep -v '^ *+' conftest.er1 >conftest.err
23004 cat conftest.err >&5
23005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23006 (exit $ac_status); } &&
23007 { ac_try='test -z "$ac_c_werror_flag"
23008 || test ! -s conftest.err'
23009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23010 (eval $ac_try) 2>&5
23012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23013 (exit $ac_status); }; } &&
23014 { ac_try='test -s conftest.$ac_objext'
23015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23016 (eval $ac_try) 2>&5
23018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23019 (exit $ac_status); }; }; then
23022 echo "$as_me: failed program was:" >&5
23023 sed 's/^/| /' conftest.$ac_ext >&5
23027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23029 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23030 echo "${ECHO_T}$ac_cv_c_const" >&6
23031 if test $ac_cv_c_const = no; then
23033 cat >>confdefs.h <<\_ACEOF
23041 echo "$as_me:$LINENO: checking for char" >&5
23042 echo $ECHO_N "checking for char... $ECHO_C" >&6
23043 if test "${ac_cv_type_char+set}" = set; then
23044 echo $ECHO_N "(cached) $ECHO_C" >&6
23046 cat >conftest.$ac_ext <<_ACEOF
23049 cat confdefs.h >>conftest.$ac_ext
23050 cat >>conftest.$ac_ext <<_ACEOF
23051 /* end confdefs.h. */
23052 $ac_includes_default
23064 rm -f conftest.$ac_objext
23065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23066 (eval $ac_compile) 2>conftest.er1
23068 grep -v '^ *+' conftest.er1 >conftest.err
23070 cat conftest.err >&5
23071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23072 (exit $ac_status); } &&
23073 { ac_try='test -z "$ac_c_werror_flag"
23074 || test ! -s conftest.err'
23075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23076 (eval $ac_try) 2>&5
23078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23079 (exit $ac_status); }; } &&
23080 { ac_try='test -s conftest.$ac_objext'
23081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23082 (eval $ac_try) 2>&5
23084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23085 (exit $ac_status); }; }; then
23086 ac_cv_type_char=yes
23088 echo "$as_me: failed program was:" >&5
23089 sed 's/^/| /' conftest.$ac_ext >&5
23093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23095 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
23096 echo "${ECHO_T}$ac_cv_type_char" >&6
23098 echo "$as_me:$LINENO: checking size of char" >&5
23099 echo $ECHO_N "checking size of char... $ECHO_C" >&6
23100 if test "${ac_cv_sizeof_char+set}" = set; then
23101 echo $ECHO_N "(cached) $ECHO_C" >&6
23103 if test "$ac_cv_type_char" = yes; then
23104 # The cast to unsigned long works around a bug in the HP C Compiler
23105 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23106 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23107 # This bug is HP SR number 8606223364.
23108 if test "$cross_compiling" = yes; then
23109 # Depending upon the size, compute the lo and hi bounds.
23110 cat >conftest.$ac_ext <<_ACEOF
23113 cat confdefs.h >>conftest.$ac_ext
23114 cat >>conftest.$ac_ext <<_ACEOF
23115 /* end confdefs.h. */
23116 $ac_includes_default
23120 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
23127 rm -f conftest.$ac_objext
23128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23129 (eval $ac_compile) 2>conftest.er1
23131 grep -v '^ *+' conftest.er1 >conftest.err
23133 cat conftest.err >&5
23134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23135 (exit $ac_status); } &&
23136 { ac_try='test -z "$ac_c_werror_flag"
23137 || test ! -s conftest.err'
23138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23139 (eval $ac_try) 2>&5
23141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23142 (exit $ac_status); }; } &&
23143 { ac_try='test -s conftest.$ac_objext'
23144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23145 (eval $ac_try) 2>&5
23147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23148 (exit $ac_status); }; }; then
23151 cat >conftest.$ac_ext <<_ACEOF
23154 cat confdefs.h >>conftest.$ac_ext
23155 cat >>conftest.$ac_ext <<_ACEOF
23156 /* end confdefs.h. */
23157 $ac_includes_default
23161 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
23168 rm -f conftest.$ac_objext
23169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23170 (eval $ac_compile) 2>conftest.er1
23172 grep -v '^ *+' conftest.er1 >conftest.err
23174 cat conftest.err >&5
23175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23176 (exit $ac_status); } &&
23177 { ac_try='test -z "$ac_c_werror_flag"
23178 || test ! -s conftest.err'
23179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23180 (eval $ac_try) 2>&5
23182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23183 (exit $ac_status); }; } &&
23184 { ac_try='test -s conftest.$ac_objext'
23185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23186 (eval $ac_try) 2>&5
23188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23189 (exit $ac_status); }; }; then
23190 ac_hi=$ac_mid; break
23192 echo "$as_me: failed program was:" >&5
23193 sed 's/^/| /' conftest.$ac_ext >&5
23195 ac_lo=`expr $ac_mid + 1`
23196 if test $ac_lo -le $ac_mid; then
23200 ac_mid=`expr 2 '*' $ac_mid + 1`
23202 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23205 echo "$as_me: failed program was:" >&5
23206 sed 's/^/| /' conftest.$ac_ext >&5
23208 cat >conftest.$ac_ext <<_ACEOF
23211 cat confdefs.h >>conftest.$ac_ext
23212 cat >>conftest.$ac_ext <<_ACEOF
23213 /* end confdefs.h. */
23214 $ac_includes_default
23218 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
23225 rm -f conftest.$ac_objext
23226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23227 (eval $ac_compile) 2>conftest.er1
23229 grep -v '^ *+' conftest.er1 >conftest.err
23231 cat conftest.err >&5
23232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23233 (exit $ac_status); } &&
23234 { ac_try='test -z "$ac_c_werror_flag"
23235 || test ! -s conftest.err'
23236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23237 (eval $ac_try) 2>&5
23239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23240 (exit $ac_status); }; } &&
23241 { ac_try='test -s conftest.$ac_objext'
23242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23243 (eval $ac_try) 2>&5
23245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23246 (exit $ac_status); }; }; then
23249 cat >conftest.$ac_ext <<_ACEOF
23252 cat confdefs.h >>conftest.$ac_ext
23253 cat >>conftest.$ac_ext <<_ACEOF
23254 /* end confdefs.h. */
23255 $ac_includes_default
23259 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
23266 rm -f conftest.$ac_objext
23267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23268 (eval $ac_compile) 2>conftest.er1
23270 grep -v '^ *+' conftest.er1 >conftest.err
23272 cat conftest.err >&5
23273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23274 (exit $ac_status); } &&
23275 { ac_try='test -z "$ac_c_werror_flag"
23276 || test ! -s conftest.err'
23277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23278 (eval $ac_try) 2>&5
23280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23281 (exit $ac_status); }; } &&
23282 { ac_try='test -s conftest.$ac_objext'
23283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23284 (eval $ac_try) 2>&5
23286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23287 (exit $ac_status); }; }; then
23288 ac_lo=$ac_mid; break
23290 echo "$as_me: failed program was:" >&5
23291 sed 's/^/| /' conftest.$ac_ext >&5
23293 ac_hi=`expr '(' $ac_mid ')' - 1`
23294 if test $ac_mid -le $ac_hi; then
23298 ac_mid=`expr 2 '*' $ac_mid`
23300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23303 echo "$as_me: failed program was:" >&5
23304 sed 's/^/| /' conftest.$ac_ext >&5
23308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23311 # Binary search between lo and hi bounds.
23312 while test "x$ac_lo" != "x$ac_hi"; do
23313 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23314 cat >conftest.$ac_ext <<_ACEOF
23317 cat confdefs.h >>conftest.$ac_ext
23318 cat >>conftest.$ac_ext <<_ACEOF
23319 /* end confdefs.h. */
23320 $ac_includes_default
23324 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
23331 rm -f conftest.$ac_objext
23332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23333 (eval $ac_compile) 2>conftest.er1
23335 grep -v '^ *+' conftest.er1 >conftest.err
23337 cat conftest.err >&5
23338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23339 (exit $ac_status); } &&
23340 { ac_try='test -z "$ac_c_werror_flag"
23341 || test ! -s conftest.err'
23342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23343 (eval $ac_try) 2>&5
23345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23346 (exit $ac_status); }; } &&
23347 { ac_try='test -s conftest.$ac_objext'
23348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23349 (eval $ac_try) 2>&5
23351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23352 (exit $ac_status); }; }; then
23355 echo "$as_me: failed program was:" >&5
23356 sed 's/^/| /' conftest.$ac_ext >&5
23358 ac_lo=`expr '(' $ac_mid ')' + 1`
23360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23363 ?*) ac_cv_sizeof_char=$ac_lo;;
23364 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
23365 See \`config.log' for more details." >&5
23366 echo "$as_me: error: cannot compute sizeof (char), 77
23367 See \`config.log' for more details." >&2;}
23368 { (exit 1); exit 1; }; } ;;
23371 if test "$cross_compiling" = yes; then
23372 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23373 See \`config.log' for more details." >&5
23374 echo "$as_me: error: cannot run test program while cross compiling
23375 See \`config.log' for more details." >&2;}
23376 { (exit 1); exit 1; }; }
23378 cat >conftest.$ac_ext <<_ACEOF
23381 cat confdefs.h >>conftest.$ac_ext
23382 cat >>conftest.$ac_ext <<_ACEOF
23383 /* end confdefs.h. */
23384 $ac_includes_default
23385 long longval () { return (long) (sizeof (char)); }
23386 unsigned long ulongval () { return (long) (sizeof (char)); }
23388 #include <stdlib.h>
23393 FILE *f = fopen ("conftest.val", "w");
23396 if (((long) (sizeof (char))) < 0)
23398 long i = longval ();
23399 if (i != ((long) (sizeof (char))))
23401 fprintf (f, "%ld\n", i);
23405 unsigned long i = ulongval ();
23406 if (i != ((long) (sizeof (char))))
23408 fprintf (f, "%lu\n", i);
23410 exit (ferror (f) || fclose (f) != 0);
23416 rm -f conftest$ac_exeext
23417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23418 (eval $ac_link) 2>&5
23420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23421 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23423 (eval $ac_try) 2>&5
23425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23426 (exit $ac_status); }; }; then
23427 ac_cv_sizeof_char=`cat conftest.val`
23429 echo "$as_me: program exited with status $ac_status" >&5
23430 echo "$as_me: failed program was:" >&5
23431 sed 's/^/| /' conftest.$ac_ext >&5
23433 ( exit $ac_status )
23434 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
23435 See \`config.log' for more details." >&5
23436 echo "$as_me: error: cannot compute sizeof (char), 77
23437 See \`config.log' for more details." >&2;}
23438 { (exit 1); exit 1; }; }
23440 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23445 ac_cv_sizeof_char=0
23448 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
23449 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
23450 cat >>confdefs.h <<_ACEOF
23451 #define SIZEOF_CHAR $ac_cv_sizeof_char
23455 echo "$as_me:$LINENO: checking for short int" >&5
23456 echo $ECHO_N "checking for short int... $ECHO_C" >&6
23457 if test "${ac_cv_type_short_int+set}" = set; then
23458 echo $ECHO_N "(cached) $ECHO_C" >&6
23460 cat >conftest.$ac_ext <<_ACEOF
23463 cat confdefs.h >>conftest.$ac_ext
23464 cat >>conftest.$ac_ext <<_ACEOF
23465 /* end confdefs.h. */
23466 $ac_includes_default
23470 if ((short int *) 0)
23472 if (sizeof (short int))
23478 rm -f conftest.$ac_objext
23479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23480 (eval $ac_compile) 2>conftest.er1
23482 grep -v '^ *+' conftest.er1 >conftest.err
23484 cat conftest.err >&5
23485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23486 (exit $ac_status); } &&
23487 { ac_try='test -z "$ac_c_werror_flag"
23488 || test ! -s conftest.err'
23489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23490 (eval $ac_try) 2>&5
23492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23493 (exit $ac_status); }; } &&
23494 { ac_try='test -s conftest.$ac_objext'
23495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23496 (eval $ac_try) 2>&5
23498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23499 (exit $ac_status); }; }; then
23500 ac_cv_type_short_int=yes
23502 echo "$as_me: failed program was:" >&5
23503 sed 's/^/| /' conftest.$ac_ext >&5
23505 ac_cv_type_short_int=no
23507 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23509 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
23510 echo "${ECHO_T}$ac_cv_type_short_int" >&6
23512 echo "$as_me:$LINENO: checking size of short int" >&5
23513 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
23514 if test "${ac_cv_sizeof_short_int+set}" = set; then
23515 echo $ECHO_N "(cached) $ECHO_C" >&6
23517 if test "$ac_cv_type_short_int" = yes; then
23518 # The cast to unsigned long works around a bug in the HP C Compiler
23519 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23520 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23521 # This bug is HP SR number 8606223364.
23522 if test "$cross_compiling" = yes; then
23523 # Depending upon the size, compute the lo and hi bounds.
23524 cat >conftest.$ac_ext <<_ACEOF
23527 cat confdefs.h >>conftest.$ac_ext
23528 cat >>conftest.$ac_ext <<_ACEOF
23529 /* end confdefs.h. */
23530 $ac_includes_default
23534 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
23541 rm -f conftest.$ac_objext
23542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23543 (eval $ac_compile) 2>conftest.er1
23545 grep -v '^ *+' conftest.er1 >conftest.err
23547 cat conftest.err >&5
23548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23549 (exit $ac_status); } &&
23550 { ac_try='test -z "$ac_c_werror_flag"
23551 || test ! -s conftest.err'
23552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23553 (eval $ac_try) 2>&5
23555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23556 (exit $ac_status); }; } &&
23557 { ac_try='test -s conftest.$ac_objext'
23558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23559 (eval $ac_try) 2>&5
23561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23562 (exit $ac_status); }; }; then
23565 cat >conftest.$ac_ext <<_ACEOF
23568 cat confdefs.h >>conftest.$ac_ext
23569 cat >>conftest.$ac_ext <<_ACEOF
23570 /* end confdefs.h. */
23571 $ac_includes_default
23575 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
23582 rm -f conftest.$ac_objext
23583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23584 (eval $ac_compile) 2>conftest.er1
23586 grep -v '^ *+' conftest.er1 >conftest.err
23588 cat conftest.err >&5
23589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23590 (exit $ac_status); } &&
23591 { ac_try='test -z "$ac_c_werror_flag"
23592 || test ! -s conftest.err'
23593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23594 (eval $ac_try) 2>&5
23596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23597 (exit $ac_status); }; } &&
23598 { ac_try='test -s conftest.$ac_objext'
23599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23600 (eval $ac_try) 2>&5
23602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23603 (exit $ac_status); }; }; then
23604 ac_hi=$ac_mid; break
23606 echo "$as_me: failed program was:" >&5
23607 sed 's/^/| /' conftest.$ac_ext >&5
23609 ac_lo=`expr $ac_mid + 1`
23610 if test $ac_lo -le $ac_mid; then
23614 ac_mid=`expr 2 '*' $ac_mid + 1`
23616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23619 echo "$as_me: failed program was:" >&5
23620 sed 's/^/| /' conftest.$ac_ext >&5
23622 cat >conftest.$ac_ext <<_ACEOF
23625 cat confdefs.h >>conftest.$ac_ext
23626 cat >>conftest.$ac_ext <<_ACEOF
23627 /* end confdefs.h. */
23628 $ac_includes_default
23632 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
23639 rm -f conftest.$ac_objext
23640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23641 (eval $ac_compile) 2>conftest.er1
23643 grep -v '^ *+' conftest.er1 >conftest.err
23645 cat conftest.err >&5
23646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23647 (exit $ac_status); } &&
23648 { ac_try='test -z "$ac_c_werror_flag"
23649 || test ! -s conftest.err'
23650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23651 (eval $ac_try) 2>&5
23653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23654 (exit $ac_status); }; } &&
23655 { ac_try='test -s conftest.$ac_objext'
23656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23657 (eval $ac_try) 2>&5
23659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23660 (exit $ac_status); }; }; then
23663 cat >conftest.$ac_ext <<_ACEOF
23666 cat confdefs.h >>conftest.$ac_ext
23667 cat >>conftest.$ac_ext <<_ACEOF
23668 /* end confdefs.h. */
23669 $ac_includes_default
23673 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
23680 rm -f conftest.$ac_objext
23681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23682 (eval $ac_compile) 2>conftest.er1
23684 grep -v '^ *+' conftest.er1 >conftest.err
23686 cat conftest.err >&5
23687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23688 (exit $ac_status); } &&
23689 { ac_try='test -z "$ac_c_werror_flag"
23690 || test ! -s conftest.err'
23691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23692 (eval $ac_try) 2>&5
23694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23695 (exit $ac_status); }; } &&
23696 { ac_try='test -s conftest.$ac_objext'
23697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23698 (eval $ac_try) 2>&5
23700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23701 (exit $ac_status); }; }; then
23702 ac_lo=$ac_mid; break
23704 echo "$as_me: failed program was:" >&5
23705 sed 's/^/| /' conftest.$ac_ext >&5
23707 ac_hi=`expr '(' $ac_mid ')' - 1`
23708 if test $ac_mid -le $ac_hi; then
23712 ac_mid=`expr 2 '*' $ac_mid`
23714 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23717 echo "$as_me: failed program was:" >&5
23718 sed 's/^/| /' conftest.$ac_ext >&5
23722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23724 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23725 # Binary search between lo and hi bounds.
23726 while test "x$ac_lo" != "x$ac_hi"; do
23727 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23728 cat >conftest.$ac_ext <<_ACEOF
23731 cat confdefs.h >>conftest.$ac_ext
23732 cat >>conftest.$ac_ext <<_ACEOF
23733 /* end confdefs.h. */
23734 $ac_includes_default
23738 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
23745 rm -f conftest.$ac_objext
23746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23747 (eval $ac_compile) 2>conftest.er1
23749 grep -v '^ *+' conftest.er1 >conftest.err
23751 cat conftest.err >&5
23752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23753 (exit $ac_status); } &&
23754 { ac_try='test -z "$ac_c_werror_flag"
23755 || test ! -s conftest.err'
23756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23757 (eval $ac_try) 2>&5
23759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23760 (exit $ac_status); }; } &&
23761 { ac_try='test -s conftest.$ac_objext'
23762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23763 (eval $ac_try) 2>&5
23765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23766 (exit $ac_status); }; }; then
23769 echo "$as_me: failed program was:" >&5
23770 sed 's/^/| /' conftest.$ac_ext >&5
23772 ac_lo=`expr '(' $ac_mid ')' + 1`
23774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23777 ?*) ac_cv_sizeof_short_int=$ac_lo;;
23778 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
23779 See \`config.log' for more details." >&5
23780 echo "$as_me: error: cannot compute sizeof (short int), 77
23781 See \`config.log' for more details." >&2;}
23782 { (exit 1); exit 1; }; } ;;
23785 if test "$cross_compiling" = yes; then
23786 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23787 See \`config.log' for more details." >&5
23788 echo "$as_me: error: cannot run test program while cross compiling
23789 See \`config.log' for more details." >&2;}
23790 { (exit 1); exit 1; }; }
23792 cat >conftest.$ac_ext <<_ACEOF
23795 cat confdefs.h >>conftest.$ac_ext
23796 cat >>conftest.$ac_ext <<_ACEOF
23797 /* end confdefs.h. */
23798 $ac_includes_default
23799 long longval () { return (long) (sizeof (short int)); }
23800 unsigned long ulongval () { return (long) (sizeof (short int)); }
23802 #include <stdlib.h>
23807 FILE *f = fopen ("conftest.val", "w");
23810 if (((long) (sizeof (short int))) < 0)
23812 long i = longval ();
23813 if (i != ((long) (sizeof (short int))))
23815 fprintf (f, "%ld\n", i);
23819 unsigned long i = ulongval ();
23820 if (i != ((long) (sizeof (short int))))
23822 fprintf (f, "%lu\n", i);
23824 exit (ferror (f) || fclose (f) != 0);
23830 rm -f conftest$ac_exeext
23831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23832 (eval $ac_link) 2>&5
23834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23835 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23837 (eval $ac_try) 2>&5
23839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23840 (exit $ac_status); }; }; then
23841 ac_cv_sizeof_short_int=`cat conftest.val`
23843 echo "$as_me: program exited with status $ac_status" >&5
23844 echo "$as_me: failed program was:" >&5
23845 sed 's/^/| /' conftest.$ac_ext >&5
23847 ( exit $ac_status )
23848 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
23849 See \`config.log' for more details." >&5
23850 echo "$as_me: error: cannot compute sizeof (short int), 77
23851 See \`config.log' for more details." >&2;}
23852 { (exit 1); exit 1; }; }
23854 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23859 ac_cv_sizeof_short_int=0
23862 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
23863 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
23864 cat >>confdefs.h <<_ACEOF
23865 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
23869 echo "$as_me:$LINENO: checking for int" >&5
23870 echo $ECHO_N "checking for int... $ECHO_C" >&6
23871 if test "${ac_cv_type_int+set}" = set; then
23872 echo $ECHO_N "(cached) $ECHO_C" >&6
23874 cat >conftest.$ac_ext <<_ACEOF
23877 cat confdefs.h >>conftest.$ac_ext
23878 cat >>conftest.$ac_ext <<_ACEOF
23879 /* end confdefs.h. */
23880 $ac_includes_default
23892 rm -f conftest.$ac_objext
23893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23894 (eval $ac_compile) 2>conftest.er1
23896 grep -v '^ *+' conftest.er1 >conftest.err
23898 cat conftest.err >&5
23899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23900 (exit $ac_status); } &&
23901 { ac_try='test -z "$ac_c_werror_flag"
23902 || test ! -s conftest.err'
23903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23904 (eval $ac_try) 2>&5
23906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23907 (exit $ac_status); }; } &&
23908 { ac_try='test -s conftest.$ac_objext'
23909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23910 (eval $ac_try) 2>&5
23912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23913 (exit $ac_status); }; }; then
23916 echo "$as_me: failed program was:" >&5
23917 sed 's/^/| /' conftest.$ac_ext >&5
23921 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23923 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
23924 echo "${ECHO_T}$ac_cv_type_int" >&6
23926 echo "$as_me:$LINENO: checking size of int" >&5
23927 echo $ECHO_N "checking size of int... $ECHO_C" >&6
23928 if test "${ac_cv_sizeof_int+set}" = set; then
23929 echo $ECHO_N "(cached) $ECHO_C" >&6
23931 if test "$ac_cv_type_int" = yes; then
23932 # The cast to unsigned long works around a bug in the HP C Compiler
23933 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23934 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23935 # This bug is HP SR number 8606223364.
23936 if test "$cross_compiling" = yes; then
23937 # Depending upon the size, compute the lo and hi bounds.
23938 cat >conftest.$ac_ext <<_ACEOF
23941 cat confdefs.h >>conftest.$ac_ext
23942 cat >>conftest.$ac_ext <<_ACEOF
23943 /* end confdefs.h. */
23944 $ac_includes_default
23948 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
23955 rm -f conftest.$ac_objext
23956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23957 (eval $ac_compile) 2>conftest.er1
23959 grep -v '^ *+' conftest.er1 >conftest.err
23961 cat conftest.err >&5
23962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23963 (exit $ac_status); } &&
23964 { ac_try='test -z "$ac_c_werror_flag"
23965 || test ! -s conftest.err'
23966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23967 (eval $ac_try) 2>&5
23969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23970 (exit $ac_status); }; } &&
23971 { ac_try='test -s conftest.$ac_objext'
23972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23973 (eval $ac_try) 2>&5
23975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23976 (exit $ac_status); }; }; then
23979 cat >conftest.$ac_ext <<_ACEOF
23982 cat confdefs.h >>conftest.$ac_ext
23983 cat >>conftest.$ac_ext <<_ACEOF
23984 /* end confdefs.h. */
23985 $ac_includes_default
23989 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
23996 rm -f conftest.$ac_objext
23997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23998 (eval $ac_compile) 2>conftest.er1
24000 grep -v '^ *+' conftest.er1 >conftest.err
24002 cat conftest.err >&5
24003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24004 (exit $ac_status); } &&
24005 { ac_try='test -z "$ac_c_werror_flag"
24006 || test ! -s conftest.err'
24007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24008 (eval $ac_try) 2>&5
24010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24011 (exit $ac_status); }; } &&
24012 { ac_try='test -s conftest.$ac_objext'
24013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24014 (eval $ac_try) 2>&5
24016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24017 (exit $ac_status); }; }; then
24018 ac_hi=$ac_mid; break
24020 echo "$as_me: failed program was:" >&5
24021 sed 's/^/| /' conftest.$ac_ext >&5
24023 ac_lo=`expr $ac_mid + 1`
24024 if test $ac_lo -le $ac_mid; then
24028 ac_mid=`expr 2 '*' $ac_mid + 1`
24030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24033 echo "$as_me: failed program was:" >&5
24034 sed 's/^/| /' conftest.$ac_ext >&5
24036 cat >conftest.$ac_ext <<_ACEOF
24039 cat confdefs.h >>conftest.$ac_ext
24040 cat >>conftest.$ac_ext <<_ACEOF
24041 /* end confdefs.h. */
24042 $ac_includes_default
24046 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
24053 rm -f conftest.$ac_objext
24054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24055 (eval $ac_compile) 2>conftest.er1
24057 grep -v '^ *+' conftest.er1 >conftest.err
24059 cat conftest.err >&5
24060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24061 (exit $ac_status); } &&
24062 { ac_try='test -z "$ac_c_werror_flag"
24063 || test ! -s conftest.err'
24064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24065 (eval $ac_try) 2>&5
24067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24068 (exit $ac_status); }; } &&
24069 { ac_try='test -s conftest.$ac_objext'
24070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24071 (eval $ac_try) 2>&5
24073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24074 (exit $ac_status); }; }; then
24077 cat >conftest.$ac_ext <<_ACEOF
24080 cat confdefs.h >>conftest.$ac_ext
24081 cat >>conftest.$ac_ext <<_ACEOF
24082 /* end confdefs.h. */
24083 $ac_includes_default
24087 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
24094 rm -f conftest.$ac_objext
24095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24096 (eval $ac_compile) 2>conftest.er1
24098 grep -v '^ *+' conftest.er1 >conftest.err
24100 cat conftest.err >&5
24101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24102 (exit $ac_status); } &&
24103 { ac_try='test -z "$ac_c_werror_flag"
24104 || test ! -s conftest.err'
24105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24106 (eval $ac_try) 2>&5
24108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24109 (exit $ac_status); }; } &&
24110 { ac_try='test -s conftest.$ac_objext'
24111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24112 (eval $ac_try) 2>&5
24114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24115 (exit $ac_status); }; }; then
24116 ac_lo=$ac_mid; break
24118 echo "$as_me: failed program was:" >&5
24119 sed 's/^/| /' conftest.$ac_ext >&5
24121 ac_hi=`expr '(' $ac_mid ')' - 1`
24122 if test $ac_mid -le $ac_hi; then
24126 ac_mid=`expr 2 '*' $ac_mid`
24128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24131 echo "$as_me: failed program was:" >&5
24132 sed 's/^/| /' conftest.$ac_ext >&5
24136 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24138 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24139 # Binary search between lo and hi bounds.
24140 while test "x$ac_lo" != "x$ac_hi"; do
24141 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24142 cat >conftest.$ac_ext <<_ACEOF
24145 cat confdefs.h >>conftest.$ac_ext
24146 cat >>conftest.$ac_ext <<_ACEOF
24147 /* end confdefs.h. */
24148 $ac_includes_default
24152 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
24159 rm -f conftest.$ac_objext
24160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24161 (eval $ac_compile) 2>conftest.er1
24163 grep -v '^ *+' conftest.er1 >conftest.err
24165 cat conftest.err >&5
24166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24167 (exit $ac_status); } &&
24168 { ac_try='test -z "$ac_c_werror_flag"
24169 || test ! -s conftest.err'
24170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24171 (eval $ac_try) 2>&5
24173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24174 (exit $ac_status); }; } &&
24175 { ac_try='test -s conftest.$ac_objext'
24176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24177 (eval $ac_try) 2>&5
24179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24180 (exit $ac_status); }; }; then
24183 echo "$as_me: failed program was:" >&5
24184 sed 's/^/| /' conftest.$ac_ext >&5
24186 ac_lo=`expr '(' $ac_mid ')' + 1`
24188 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24191 ?*) ac_cv_sizeof_int=$ac_lo;;
24192 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
24193 See \`config.log' for more details." >&5
24194 echo "$as_me: error: cannot compute sizeof (int), 77
24195 See \`config.log' for more details." >&2;}
24196 { (exit 1); exit 1; }; } ;;
24199 if test "$cross_compiling" = yes; then
24200 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24201 See \`config.log' for more details." >&5
24202 echo "$as_me: error: cannot run test program while cross compiling
24203 See \`config.log' for more details." >&2;}
24204 { (exit 1); exit 1; }; }
24206 cat >conftest.$ac_ext <<_ACEOF
24209 cat confdefs.h >>conftest.$ac_ext
24210 cat >>conftest.$ac_ext <<_ACEOF
24211 /* end confdefs.h. */
24212 $ac_includes_default
24213 long longval () { return (long) (sizeof (int)); }
24214 unsigned long ulongval () { return (long) (sizeof (int)); }
24216 #include <stdlib.h>
24221 FILE *f = fopen ("conftest.val", "w");
24224 if (((long) (sizeof (int))) < 0)
24226 long i = longval ();
24227 if (i != ((long) (sizeof (int))))
24229 fprintf (f, "%ld\n", i);
24233 unsigned long i = ulongval ();
24234 if (i != ((long) (sizeof (int))))
24236 fprintf (f, "%lu\n", i);
24238 exit (ferror (f) || fclose (f) != 0);
24244 rm -f conftest$ac_exeext
24245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24246 (eval $ac_link) 2>&5
24248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24249 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24251 (eval $ac_try) 2>&5
24253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24254 (exit $ac_status); }; }; then
24255 ac_cv_sizeof_int=`cat conftest.val`
24257 echo "$as_me: program exited with status $ac_status" >&5
24258 echo "$as_me: failed program was:" >&5
24259 sed 's/^/| /' conftest.$ac_ext >&5
24261 ( exit $ac_status )
24262 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
24263 See \`config.log' for more details." >&5
24264 echo "$as_me: error: cannot compute sizeof (int), 77
24265 See \`config.log' for more details." >&2;}
24266 { (exit 1); exit 1; }; }
24268 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24276 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
24277 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
24278 cat >>confdefs.h <<_ACEOF
24279 #define SIZEOF_INT $ac_cv_sizeof_int
24283 echo "$as_me:$LINENO: checking for long int" >&5
24284 echo $ECHO_N "checking for long int... $ECHO_C" >&6
24285 if test "${ac_cv_type_long_int+set}" = set; then
24286 echo $ECHO_N "(cached) $ECHO_C" >&6
24288 cat >conftest.$ac_ext <<_ACEOF
24291 cat confdefs.h >>conftest.$ac_ext
24292 cat >>conftest.$ac_ext <<_ACEOF
24293 /* end confdefs.h. */
24294 $ac_includes_default
24298 if ((long int *) 0)
24300 if (sizeof (long int))
24306 rm -f conftest.$ac_objext
24307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24308 (eval $ac_compile) 2>conftest.er1
24310 grep -v '^ *+' conftest.er1 >conftest.err
24312 cat conftest.err >&5
24313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24314 (exit $ac_status); } &&
24315 { ac_try='test -z "$ac_c_werror_flag"
24316 || test ! -s conftest.err'
24317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24318 (eval $ac_try) 2>&5
24320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24321 (exit $ac_status); }; } &&
24322 { ac_try='test -s conftest.$ac_objext'
24323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24324 (eval $ac_try) 2>&5
24326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24327 (exit $ac_status); }; }; then
24328 ac_cv_type_long_int=yes
24330 echo "$as_me: failed program was:" >&5
24331 sed 's/^/| /' conftest.$ac_ext >&5
24333 ac_cv_type_long_int=no
24335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24337 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
24338 echo "${ECHO_T}$ac_cv_type_long_int" >&6
24340 echo "$as_me:$LINENO: checking size of long int" >&5
24341 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
24342 if test "${ac_cv_sizeof_long_int+set}" = set; then
24343 echo $ECHO_N "(cached) $ECHO_C" >&6
24345 if test "$ac_cv_type_long_int" = yes; then
24346 # The cast to unsigned long works around a bug in the HP C Compiler
24347 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24348 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24349 # This bug is HP SR number 8606223364.
24350 if test "$cross_compiling" = yes; then
24351 # Depending upon the size, compute the lo and hi bounds.
24352 cat >conftest.$ac_ext <<_ACEOF
24355 cat confdefs.h >>conftest.$ac_ext
24356 cat >>conftest.$ac_ext <<_ACEOF
24357 /* end confdefs.h. */
24358 $ac_includes_default
24362 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
24369 rm -f conftest.$ac_objext
24370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24371 (eval $ac_compile) 2>conftest.er1
24373 grep -v '^ *+' conftest.er1 >conftest.err
24375 cat conftest.err >&5
24376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24377 (exit $ac_status); } &&
24378 { ac_try='test -z "$ac_c_werror_flag"
24379 || test ! -s conftest.err'
24380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24381 (eval $ac_try) 2>&5
24383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24384 (exit $ac_status); }; } &&
24385 { ac_try='test -s conftest.$ac_objext'
24386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24387 (eval $ac_try) 2>&5
24389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24390 (exit $ac_status); }; }; then
24393 cat >conftest.$ac_ext <<_ACEOF
24396 cat confdefs.h >>conftest.$ac_ext
24397 cat >>conftest.$ac_ext <<_ACEOF
24398 /* end confdefs.h. */
24399 $ac_includes_default
24403 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
24410 rm -f conftest.$ac_objext
24411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24412 (eval $ac_compile) 2>conftest.er1
24414 grep -v '^ *+' conftest.er1 >conftest.err
24416 cat conftest.err >&5
24417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24418 (exit $ac_status); } &&
24419 { ac_try='test -z "$ac_c_werror_flag"
24420 || test ! -s conftest.err'
24421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24422 (eval $ac_try) 2>&5
24424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24425 (exit $ac_status); }; } &&
24426 { ac_try='test -s conftest.$ac_objext'
24427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24428 (eval $ac_try) 2>&5
24430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24431 (exit $ac_status); }; }; then
24432 ac_hi=$ac_mid; break
24434 echo "$as_me: failed program was:" >&5
24435 sed 's/^/| /' conftest.$ac_ext >&5
24437 ac_lo=`expr $ac_mid + 1`
24438 if test $ac_lo -le $ac_mid; then
24442 ac_mid=`expr 2 '*' $ac_mid + 1`
24444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24447 echo "$as_me: failed program was:" >&5
24448 sed 's/^/| /' conftest.$ac_ext >&5
24450 cat >conftest.$ac_ext <<_ACEOF
24453 cat confdefs.h >>conftest.$ac_ext
24454 cat >>conftest.$ac_ext <<_ACEOF
24455 /* end confdefs.h. */
24456 $ac_includes_default
24460 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
24467 rm -f conftest.$ac_objext
24468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24469 (eval $ac_compile) 2>conftest.er1
24471 grep -v '^ *+' conftest.er1 >conftest.err
24473 cat conftest.err >&5
24474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24475 (exit $ac_status); } &&
24476 { ac_try='test -z "$ac_c_werror_flag"
24477 || test ! -s conftest.err'
24478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24479 (eval $ac_try) 2>&5
24481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24482 (exit $ac_status); }; } &&
24483 { ac_try='test -s conftest.$ac_objext'
24484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24485 (eval $ac_try) 2>&5
24487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24488 (exit $ac_status); }; }; then
24491 cat >conftest.$ac_ext <<_ACEOF
24494 cat confdefs.h >>conftest.$ac_ext
24495 cat >>conftest.$ac_ext <<_ACEOF
24496 /* end confdefs.h. */
24497 $ac_includes_default
24501 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
24508 rm -f conftest.$ac_objext
24509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24510 (eval $ac_compile) 2>conftest.er1
24512 grep -v '^ *+' conftest.er1 >conftest.err
24514 cat conftest.err >&5
24515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24516 (exit $ac_status); } &&
24517 { ac_try='test -z "$ac_c_werror_flag"
24518 || test ! -s conftest.err'
24519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24520 (eval $ac_try) 2>&5
24522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24523 (exit $ac_status); }; } &&
24524 { ac_try='test -s conftest.$ac_objext'
24525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24526 (eval $ac_try) 2>&5
24528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24529 (exit $ac_status); }; }; then
24530 ac_lo=$ac_mid; break
24532 echo "$as_me: failed program was:" >&5
24533 sed 's/^/| /' conftest.$ac_ext >&5
24535 ac_hi=`expr '(' $ac_mid ')' - 1`
24536 if test $ac_mid -le $ac_hi; then
24540 ac_mid=`expr 2 '*' $ac_mid`
24542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24545 echo "$as_me: failed program was:" >&5
24546 sed 's/^/| /' conftest.$ac_ext >&5
24550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24553 # Binary search between lo and hi bounds.
24554 while test "x$ac_lo" != "x$ac_hi"; do
24555 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24556 cat >conftest.$ac_ext <<_ACEOF
24559 cat confdefs.h >>conftest.$ac_ext
24560 cat >>conftest.$ac_ext <<_ACEOF
24561 /* end confdefs.h. */
24562 $ac_includes_default
24566 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
24573 rm -f conftest.$ac_objext
24574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24575 (eval $ac_compile) 2>conftest.er1
24577 grep -v '^ *+' conftest.er1 >conftest.err
24579 cat conftest.err >&5
24580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24581 (exit $ac_status); } &&
24582 { ac_try='test -z "$ac_c_werror_flag"
24583 || test ! -s conftest.err'
24584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24585 (eval $ac_try) 2>&5
24587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24588 (exit $ac_status); }; } &&
24589 { ac_try='test -s conftest.$ac_objext'
24590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24591 (eval $ac_try) 2>&5
24593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24594 (exit $ac_status); }; }; then
24597 echo "$as_me: failed program was:" >&5
24598 sed 's/^/| /' conftest.$ac_ext >&5
24600 ac_lo=`expr '(' $ac_mid ')' + 1`
24602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24605 ?*) ac_cv_sizeof_long_int=$ac_lo;;
24606 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
24607 See \`config.log' for more details." >&5
24608 echo "$as_me: error: cannot compute sizeof (long int), 77
24609 See \`config.log' for more details." >&2;}
24610 { (exit 1); exit 1; }; } ;;
24613 if test "$cross_compiling" = yes; then
24614 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24615 See \`config.log' for more details." >&5
24616 echo "$as_me: error: cannot run test program while cross compiling
24617 See \`config.log' for more details." >&2;}
24618 { (exit 1); exit 1; }; }
24620 cat >conftest.$ac_ext <<_ACEOF
24623 cat confdefs.h >>conftest.$ac_ext
24624 cat >>conftest.$ac_ext <<_ACEOF
24625 /* end confdefs.h. */
24626 $ac_includes_default
24627 long longval () { return (long) (sizeof (long int)); }
24628 unsigned long ulongval () { return (long) (sizeof (long int)); }
24630 #include <stdlib.h>
24635 FILE *f = fopen ("conftest.val", "w");
24638 if (((long) (sizeof (long int))) < 0)
24640 long i = longval ();
24641 if (i != ((long) (sizeof (long int))))
24643 fprintf (f, "%ld\n", i);
24647 unsigned long i = ulongval ();
24648 if (i != ((long) (sizeof (long int))))
24650 fprintf (f, "%lu\n", i);
24652 exit (ferror (f) || fclose (f) != 0);
24658 rm -f conftest$ac_exeext
24659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24660 (eval $ac_link) 2>&5
24662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24663 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24665 (eval $ac_try) 2>&5
24667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24668 (exit $ac_status); }; }; then
24669 ac_cv_sizeof_long_int=`cat conftest.val`
24671 echo "$as_me: program exited with status $ac_status" >&5
24672 echo "$as_me: failed program was:" >&5
24673 sed 's/^/| /' conftest.$ac_ext >&5
24675 ( exit $ac_status )
24676 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
24677 See \`config.log' for more details." >&5
24678 echo "$as_me: error: cannot compute sizeof (long int), 77
24679 See \`config.log' for more details." >&2;}
24680 { (exit 1); exit 1; }; }
24682 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24687 ac_cv_sizeof_long_int=0
24690 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
24691 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
24692 cat >>confdefs.h <<_ACEOF
24693 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
24697 echo "$as_me:$LINENO: checking for long long int" >&5
24698 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
24699 if test "${ac_cv_type_long_long_int+set}" = set; then
24700 echo $ECHO_N "(cached) $ECHO_C" >&6
24702 cat >conftest.$ac_ext <<_ACEOF
24705 cat confdefs.h >>conftest.$ac_ext
24706 cat >>conftest.$ac_ext <<_ACEOF
24707 /* end confdefs.h. */
24708 $ac_includes_default
24712 if ((long long int *) 0)
24714 if (sizeof (long long int))
24720 rm -f conftest.$ac_objext
24721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24722 (eval $ac_compile) 2>conftest.er1
24724 grep -v '^ *+' conftest.er1 >conftest.err
24726 cat conftest.err >&5
24727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24728 (exit $ac_status); } &&
24729 { ac_try='test -z "$ac_c_werror_flag"
24730 || test ! -s conftest.err'
24731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24732 (eval $ac_try) 2>&5
24734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24735 (exit $ac_status); }; } &&
24736 { ac_try='test -s conftest.$ac_objext'
24737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24738 (eval $ac_try) 2>&5
24740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24741 (exit $ac_status); }; }; then
24742 ac_cv_type_long_long_int=yes
24744 echo "$as_me: failed program was:" >&5
24745 sed 's/^/| /' conftest.$ac_ext >&5
24747 ac_cv_type_long_long_int=no
24749 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24751 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
24752 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
24754 echo "$as_me:$LINENO: checking size of long long int" >&5
24755 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
24756 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
24757 echo $ECHO_N "(cached) $ECHO_C" >&6
24759 if test "$ac_cv_type_long_long_int" = yes; then
24760 # The cast to unsigned long works around a bug in the HP C Compiler
24761 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24762 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24763 # This bug is HP SR number 8606223364.
24764 if test "$cross_compiling" = yes; then
24765 # Depending upon the size, compute the lo and hi bounds.
24766 cat >conftest.$ac_ext <<_ACEOF
24769 cat confdefs.h >>conftest.$ac_ext
24770 cat >>conftest.$ac_ext <<_ACEOF
24771 /* end confdefs.h. */
24772 $ac_includes_default
24776 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
24783 rm -f conftest.$ac_objext
24784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24785 (eval $ac_compile) 2>conftest.er1
24787 grep -v '^ *+' conftest.er1 >conftest.err
24789 cat conftest.err >&5
24790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24791 (exit $ac_status); } &&
24792 { ac_try='test -z "$ac_c_werror_flag"
24793 || test ! -s conftest.err'
24794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24795 (eval $ac_try) 2>&5
24797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24798 (exit $ac_status); }; } &&
24799 { ac_try='test -s conftest.$ac_objext'
24800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24801 (eval $ac_try) 2>&5
24803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24804 (exit $ac_status); }; }; then
24807 cat >conftest.$ac_ext <<_ACEOF
24810 cat confdefs.h >>conftest.$ac_ext
24811 cat >>conftest.$ac_ext <<_ACEOF
24812 /* end confdefs.h. */
24813 $ac_includes_default
24817 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
24824 rm -f conftest.$ac_objext
24825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24826 (eval $ac_compile) 2>conftest.er1
24828 grep -v '^ *+' conftest.er1 >conftest.err
24830 cat conftest.err >&5
24831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24832 (exit $ac_status); } &&
24833 { ac_try='test -z "$ac_c_werror_flag"
24834 || test ! -s conftest.err'
24835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24836 (eval $ac_try) 2>&5
24838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24839 (exit $ac_status); }; } &&
24840 { ac_try='test -s conftest.$ac_objext'
24841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24842 (eval $ac_try) 2>&5
24844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24845 (exit $ac_status); }; }; then
24846 ac_hi=$ac_mid; break
24848 echo "$as_me: failed program was:" >&5
24849 sed 's/^/| /' conftest.$ac_ext >&5
24851 ac_lo=`expr $ac_mid + 1`
24852 if test $ac_lo -le $ac_mid; then
24856 ac_mid=`expr 2 '*' $ac_mid + 1`
24858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24861 echo "$as_me: failed program was:" >&5
24862 sed 's/^/| /' conftest.$ac_ext >&5
24864 cat >conftest.$ac_ext <<_ACEOF
24867 cat confdefs.h >>conftest.$ac_ext
24868 cat >>conftest.$ac_ext <<_ACEOF
24869 /* end confdefs.h. */
24870 $ac_includes_default
24874 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
24881 rm -f conftest.$ac_objext
24882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24883 (eval $ac_compile) 2>conftest.er1
24885 grep -v '^ *+' conftest.er1 >conftest.err
24887 cat conftest.err >&5
24888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24889 (exit $ac_status); } &&
24890 { ac_try='test -z "$ac_c_werror_flag"
24891 || test ! -s conftest.err'
24892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24893 (eval $ac_try) 2>&5
24895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24896 (exit $ac_status); }; } &&
24897 { ac_try='test -s conftest.$ac_objext'
24898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24899 (eval $ac_try) 2>&5
24901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24902 (exit $ac_status); }; }; then
24905 cat >conftest.$ac_ext <<_ACEOF
24908 cat confdefs.h >>conftest.$ac_ext
24909 cat >>conftest.$ac_ext <<_ACEOF
24910 /* end confdefs.h. */
24911 $ac_includes_default
24915 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
24922 rm -f conftest.$ac_objext
24923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24924 (eval $ac_compile) 2>conftest.er1
24926 grep -v '^ *+' conftest.er1 >conftest.err
24928 cat conftest.err >&5
24929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24930 (exit $ac_status); } &&
24931 { ac_try='test -z "$ac_c_werror_flag"
24932 || test ! -s conftest.err'
24933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24934 (eval $ac_try) 2>&5
24936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24937 (exit $ac_status); }; } &&
24938 { ac_try='test -s conftest.$ac_objext'
24939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24940 (eval $ac_try) 2>&5
24942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24943 (exit $ac_status); }; }; then
24944 ac_lo=$ac_mid; break
24946 echo "$as_me: failed program was:" >&5
24947 sed 's/^/| /' conftest.$ac_ext >&5
24949 ac_hi=`expr '(' $ac_mid ')' - 1`
24950 if test $ac_mid -le $ac_hi; then
24954 ac_mid=`expr 2 '*' $ac_mid`
24956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24959 echo "$as_me: failed program was:" >&5
24960 sed 's/^/| /' conftest.$ac_ext >&5
24964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24967 # Binary search between lo and hi bounds.
24968 while test "x$ac_lo" != "x$ac_hi"; do
24969 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24970 cat >conftest.$ac_ext <<_ACEOF
24973 cat confdefs.h >>conftest.$ac_ext
24974 cat >>conftest.$ac_ext <<_ACEOF
24975 /* end confdefs.h. */
24976 $ac_includes_default
24980 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
24987 rm -f conftest.$ac_objext
24988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24989 (eval $ac_compile) 2>conftest.er1
24991 grep -v '^ *+' conftest.er1 >conftest.err
24993 cat conftest.err >&5
24994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24995 (exit $ac_status); } &&
24996 { ac_try='test -z "$ac_c_werror_flag"
24997 || test ! -s conftest.err'
24998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24999 (eval $ac_try) 2>&5
25001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25002 (exit $ac_status); }; } &&
25003 { ac_try='test -s conftest.$ac_objext'
25004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25005 (eval $ac_try) 2>&5
25007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25008 (exit $ac_status); }; }; then
25011 echo "$as_me: failed program was:" >&5
25012 sed 's/^/| /' conftest.$ac_ext >&5
25014 ac_lo=`expr '(' $ac_mid ')' + 1`
25016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25019 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
25020 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
25021 See \`config.log' for more details." >&5
25022 echo "$as_me: error: cannot compute sizeof (long long int), 77
25023 See \`config.log' for more details." >&2;}
25024 { (exit 1); exit 1; }; } ;;
25027 if test "$cross_compiling" = yes; then
25028 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25029 See \`config.log' for more details." >&5
25030 echo "$as_me: error: cannot run test program while cross compiling
25031 See \`config.log' for more details." >&2;}
25032 { (exit 1); exit 1; }; }
25034 cat >conftest.$ac_ext <<_ACEOF
25037 cat confdefs.h >>conftest.$ac_ext
25038 cat >>conftest.$ac_ext <<_ACEOF
25039 /* end confdefs.h. */
25040 $ac_includes_default
25041 long longval () { return (long) (sizeof (long long int)); }
25042 unsigned long ulongval () { return (long) (sizeof (long long int)); }
25044 #include <stdlib.h>
25049 FILE *f = fopen ("conftest.val", "w");
25052 if (((long) (sizeof (long long int))) < 0)
25054 long i = longval ();
25055 if (i != ((long) (sizeof (long long int))))
25057 fprintf (f, "%ld\n", i);
25061 unsigned long i = ulongval ();
25062 if (i != ((long) (sizeof (long long int))))
25064 fprintf (f, "%lu\n", i);
25066 exit (ferror (f) || fclose (f) != 0);
25072 rm -f conftest$ac_exeext
25073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25074 (eval $ac_link) 2>&5
25076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25077 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25079 (eval $ac_try) 2>&5
25081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25082 (exit $ac_status); }; }; then
25083 ac_cv_sizeof_long_long_int=`cat conftest.val`
25085 echo "$as_me: program exited with status $ac_status" >&5
25086 echo "$as_me: failed program was:" >&5
25087 sed 's/^/| /' conftest.$ac_ext >&5
25089 ( exit $ac_status )
25090 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
25091 See \`config.log' for more details." >&5
25092 echo "$as_me: error: cannot compute sizeof (long long int), 77
25093 See \`config.log' for more details." >&2;}
25094 { (exit 1); exit 1; }; }
25096 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25101 ac_cv_sizeof_long_long_int=0
25104 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
25105 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
25106 cat >>confdefs.h <<_ACEOF
25107 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
25111 echo "$as_me:$LINENO: checking for int *" >&5
25112 echo $ECHO_N "checking for int *... $ECHO_C" >&6
25113 if test "${ac_cv_type_int_p+set}" = set; then
25114 echo $ECHO_N "(cached) $ECHO_C" >&6
25116 cat >conftest.$ac_ext <<_ACEOF
25119 cat confdefs.h >>conftest.$ac_ext
25120 cat >>conftest.$ac_ext <<_ACEOF
25121 /* end confdefs.h. */
25122 $ac_includes_default
25128 if (sizeof (int *))
25134 rm -f conftest.$ac_objext
25135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25136 (eval $ac_compile) 2>conftest.er1
25138 grep -v '^ *+' conftest.er1 >conftest.err
25140 cat conftest.err >&5
25141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25142 (exit $ac_status); } &&
25143 { ac_try='test -z "$ac_c_werror_flag"
25144 || test ! -s conftest.err'
25145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25146 (eval $ac_try) 2>&5
25148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25149 (exit $ac_status); }; } &&
25150 { ac_try='test -s conftest.$ac_objext'
25151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25152 (eval $ac_try) 2>&5
25154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25155 (exit $ac_status); }; }; then
25156 ac_cv_type_int_p=yes
25158 echo "$as_me: failed program was:" >&5
25159 sed 's/^/| /' conftest.$ac_ext >&5
25161 ac_cv_type_int_p=no
25163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25165 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
25166 echo "${ECHO_T}$ac_cv_type_int_p" >&6
25168 echo "$as_me:$LINENO: checking size of int *" >&5
25169 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
25170 if test "${ac_cv_sizeof_int_p+set}" = set; then
25171 echo $ECHO_N "(cached) $ECHO_C" >&6
25173 if test "$ac_cv_type_int_p" = yes; then
25174 # The cast to unsigned long works around a bug in the HP C Compiler
25175 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25176 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25177 # This bug is HP SR number 8606223364.
25178 if test "$cross_compiling" = yes; then
25179 # Depending upon the size, compute the lo and hi bounds.
25180 cat >conftest.$ac_ext <<_ACEOF
25183 cat confdefs.h >>conftest.$ac_ext
25184 cat >>conftest.$ac_ext <<_ACEOF
25185 /* end confdefs.h. */
25186 $ac_includes_default
25190 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
25197 rm -f conftest.$ac_objext
25198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25199 (eval $ac_compile) 2>conftest.er1
25201 grep -v '^ *+' conftest.er1 >conftest.err
25203 cat conftest.err >&5
25204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25205 (exit $ac_status); } &&
25206 { ac_try='test -z "$ac_c_werror_flag"
25207 || test ! -s conftest.err'
25208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25209 (eval $ac_try) 2>&5
25211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25212 (exit $ac_status); }; } &&
25213 { ac_try='test -s conftest.$ac_objext'
25214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25215 (eval $ac_try) 2>&5
25217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25218 (exit $ac_status); }; }; then
25221 cat >conftest.$ac_ext <<_ACEOF
25224 cat confdefs.h >>conftest.$ac_ext
25225 cat >>conftest.$ac_ext <<_ACEOF
25226 /* end confdefs.h. */
25227 $ac_includes_default
25231 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
25238 rm -f conftest.$ac_objext
25239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25240 (eval $ac_compile) 2>conftest.er1
25242 grep -v '^ *+' conftest.er1 >conftest.err
25244 cat conftest.err >&5
25245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25246 (exit $ac_status); } &&
25247 { ac_try='test -z "$ac_c_werror_flag"
25248 || test ! -s conftest.err'
25249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25250 (eval $ac_try) 2>&5
25252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25253 (exit $ac_status); }; } &&
25254 { ac_try='test -s conftest.$ac_objext'
25255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25256 (eval $ac_try) 2>&5
25258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25259 (exit $ac_status); }; }; then
25260 ac_hi=$ac_mid; break
25262 echo "$as_me: failed program was:" >&5
25263 sed 's/^/| /' conftest.$ac_ext >&5
25265 ac_lo=`expr $ac_mid + 1`
25266 if test $ac_lo -le $ac_mid; then
25270 ac_mid=`expr 2 '*' $ac_mid + 1`
25272 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25275 echo "$as_me: failed program was:" >&5
25276 sed 's/^/| /' conftest.$ac_ext >&5
25278 cat >conftest.$ac_ext <<_ACEOF
25281 cat confdefs.h >>conftest.$ac_ext
25282 cat >>conftest.$ac_ext <<_ACEOF
25283 /* end confdefs.h. */
25284 $ac_includes_default
25288 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
25295 rm -f conftest.$ac_objext
25296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25297 (eval $ac_compile) 2>conftest.er1
25299 grep -v '^ *+' conftest.er1 >conftest.err
25301 cat conftest.err >&5
25302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25303 (exit $ac_status); } &&
25304 { ac_try='test -z "$ac_c_werror_flag"
25305 || test ! -s conftest.err'
25306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25307 (eval $ac_try) 2>&5
25309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25310 (exit $ac_status); }; } &&
25311 { ac_try='test -s conftest.$ac_objext'
25312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25313 (eval $ac_try) 2>&5
25315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25316 (exit $ac_status); }; }; then
25319 cat >conftest.$ac_ext <<_ACEOF
25322 cat confdefs.h >>conftest.$ac_ext
25323 cat >>conftest.$ac_ext <<_ACEOF
25324 /* end confdefs.h. */
25325 $ac_includes_default
25329 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
25336 rm -f conftest.$ac_objext
25337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25338 (eval $ac_compile) 2>conftest.er1
25340 grep -v '^ *+' conftest.er1 >conftest.err
25342 cat conftest.err >&5
25343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25344 (exit $ac_status); } &&
25345 { ac_try='test -z "$ac_c_werror_flag"
25346 || test ! -s conftest.err'
25347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25348 (eval $ac_try) 2>&5
25350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25351 (exit $ac_status); }; } &&
25352 { ac_try='test -s conftest.$ac_objext'
25353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25354 (eval $ac_try) 2>&5
25356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25357 (exit $ac_status); }; }; then
25358 ac_lo=$ac_mid; break
25360 echo "$as_me: failed program was:" >&5
25361 sed 's/^/| /' conftest.$ac_ext >&5
25363 ac_hi=`expr '(' $ac_mid ')' - 1`
25364 if test $ac_mid -le $ac_hi; then
25368 ac_mid=`expr 2 '*' $ac_mid`
25370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25373 echo "$as_me: failed program was:" >&5
25374 sed 's/^/| /' conftest.$ac_ext >&5
25378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25381 # Binary search between lo and hi bounds.
25382 while test "x$ac_lo" != "x$ac_hi"; do
25383 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25384 cat >conftest.$ac_ext <<_ACEOF
25387 cat confdefs.h >>conftest.$ac_ext
25388 cat >>conftest.$ac_ext <<_ACEOF
25389 /* end confdefs.h. */
25390 $ac_includes_default
25394 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
25401 rm -f conftest.$ac_objext
25402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25403 (eval $ac_compile) 2>conftest.er1
25405 grep -v '^ *+' conftest.er1 >conftest.err
25407 cat conftest.err >&5
25408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25409 (exit $ac_status); } &&
25410 { ac_try='test -z "$ac_c_werror_flag"
25411 || test ! -s conftest.err'
25412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25413 (eval $ac_try) 2>&5
25415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25416 (exit $ac_status); }; } &&
25417 { ac_try='test -s conftest.$ac_objext'
25418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25419 (eval $ac_try) 2>&5
25421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25422 (exit $ac_status); }; }; then
25425 echo "$as_me: failed program was:" >&5
25426 sed 's/^/| /' conftest.$ac_ext >&5
25428 ac_lo=`expr '(' $ac_mid ')' + 1`
25430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25433 ?*) ac_cv_sizeof_int_p=$ac_lo;;
25434 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
25435 See \`config.log' for more details." >&5
25436 echo "$as_me: error: cannot compute sizeof (int *), 77
25437 See \`config.log' for more details." >&2;}
25438 { (exit 1); exit 1; }; } ;;
25441 if test "$cross_compiling" = yes; then
25442 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25443 See \`config.log' for more details." >&5
25444 echo "$as_me: error: cannot run test program while cross compiling
25445 See \`config.log' for more details." >&2;}
25446 { (exit 1); exit 1; }; }
25448 cat >conftest.$ac_ext <<_ACEOF
25451 cat confdefs.h >>conftest.$ac_ext
25452 cat >>conftest.$ac_ext <<_ACEOF
25453 /* end confdefs.h. */
25454 $ac_includes_default
25455 long longval () { return (long) (sizeof (int *)); }
25456 unsigned long ulongval () { return (long) (sizeof (int *)); }
25458 #include <stdlib.h>
25463 FILE *f = fopen ("conftest.val", "w");
25466 if (((long) (sizeof (int *))) < 0)
25468 long i = longval ();
25469 if (i != ((long) (sizeof (int *))))
25471 fprintf (f, "%ld\n", i);
25475 unsigned long i = ulongval ();
25476 if (i != ((long) (sizeof (int *))))
25478 fprintf (f, "%lu\n", i);
25480 exit (ferror (f) || fclose (f) != 0);
25486 rm -f conftest$ac_exeext
25487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25488 (eval $ac_link) 2>&5
25490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25491 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25493 (eval $ac_try) 2>&5
25495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25496 (exit $ac_status); }; }; then
25497 ac_cv_sizeof_int_p=`cat conftest.val`
25499 echo "$as_me: program exited with status $ac_status" >&5
25500 echo "$as_me: failed program was:" >&5
25501 sed 's/^/| /' conftest.$ac_ext >&5
25503 ( exit $ac_status )
25504 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
25505 See \`config.log' for more details." >&5
25506 echo "$as_me: error: cannot compute sizeof (int *), 77
25507 See \`config.log' for more details." >&2;}
25508 { (exit 1); exit 1; }; }
25510 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25515 ac_cv_sizeof_int_p=0
25518 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
25519 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
25520 cat >>confdefs.h <<_ACEOF
25521 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
25526 # Check for sys/types.h types
25527 echo "$as_me:$LINENO: checking for u_int type" >&5
25528 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
25529 if test "${ac_cv_have_u_int+set}" = set; then
25530 echo $ECHO_N "(cached) $ECHO_C" >&6
25533 cat >conftest.$ac_ext <<_ACEOF
25536 cat confdefs.h >>conftest.$ac_ext
25537 cat >>conftest.$ac_ext <<_ACEOF
25538 /* end confdefs.h. */
25539 #include <sys/types.h>
25548 rm -f conftest.$ac_objext
25549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25550 (eval $ac_compile) 2>conftest.er1
25552 grep -v '^ *+' conftest.er1 >conftest.err
25554 cat conftest.err >&5
25555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25556 (exit $ac_status); } &&
25557 { ac_try='test -z "$ac_c_werror_flag"
25558 || test ! -s conftest.err'
25559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25560 (eval $ac_try) 2>&5
25562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25563 (exit $ac_status); }; } &&
25564 { ac_try='test -s conftest.$ac_objext'
25565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25566 (eval $ac_try) 2>&5
25568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25569 (exit $ac_status); }; }; then
25570 ac_cv_have_u_int="yes"
25572 echo "$as_me: failed program was:" >&5
25573 sed 's/^/| /' conftest.$ac_ext >&5
25575 ac_cv_have_u_int="no"
25578 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25581 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
25582 echo "${ECHO_T}$ac_cv_have_u_int" >&6
25583 if test "x$ac_cv_have_u_int" = "xyes" ; then
25584 cat >>confdefs.h <<\_ACEOF
25585 #define HAVE_U_INT 1
25591 echo "$as_me:$LINENO: checking for intmax_t type" >&5
25592 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
25593 if test "${ac_cv_have_intmax_t+set}" = set; then
25594 echo $ECHO_N "(cached) $ECHO_C" >&6
25597 cat >conftest.$ac_ext <<_ACEOF
25600 cat confdefs.h >>conftest.$ac_ext
25601 cat >>conftest.$ac_ext <<_ACEOF
25602 /* end confdefs.h. */
25603 #include <sys/types.h>
25612 rm -f conftest.$ac_objext
25613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25614 (eval $ac_compile) 2>conftest.er1
25616 grep -v '^ *+' conftest.er1 >conftest.err
25618 cat conftest.err >&5
25619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25620 (exit $ac_status); } &&
25621 { ac_try='test -z "$ac_c_werror_flag"
25622 || test ! -s conftest.err'
25623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25624 (eval $ac_try) 2>&5
25626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25627 (exit $ac_status); }; } &&
25628 { ac_try='test -s conftest.$ac_objext'
25629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25630 (eval $ac_try) 2>&5
25632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25633 (exit $ac_status); }; }; then
25634 ac_cv_have_intmax_t="yes"
25636 echo "$as_me: failed program was:" >&5
25637 sed 's/^/| /' conftest.$ac_ext >&5
25640 cat >conftest.$ac_ext <<_ACEOF
25643 cat confdefs.h >>conftest.$ac_ext
25644 cat >>conftest.$ac_ext <<_ACEOF
25645 /* end confdefs.h. */
25646 #include <stdint.h>
25655 rm -f conftest.$ac_objext
25656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25657 (eval $ac_compile) 2>conftest.er1
25659 grep -v '^ *+' conftest.er1 >conftest.err
25661 cat conftest.err >&5
25662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25663 (exit $ac_status); } &&
25664 { ac_try='test -z "$ac_c_werror_flag"
25665 || test ! -s conftest.err'
25666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25667 (eval $ac_try) 2>&5
25669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25670 (exit $ac_status); }; } &&
25671 { ac_try='test -s conftest.$ac_objext'
25672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25673 (eval $ac_try) 2>&5
25675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25676 (exit $ac_status); }; }; then
25677 ac_cv_have_intmax_t="yes"
25679 echo "$as_me: failed program was:" >&5
25680 sed 's/^/| /' conftest.$ac_ext >&5
25682 ac_cv_have_intmax_t="no"
25685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25693 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
25694 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
25695 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
25696 cat >>confdefs.h <<\_ACEOF
25697 #define HAVE_INTMAX_T 1
25704 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
25705 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
25706 if test "${ac_cv_have_u_intmax_t+set}" = set; then
25707 echo $ECHO_N "(cached) $ECHO_C" >&6
25710 cat >conftest.$ac_ext <<_ACEOF
25713 cat confdefs.h >>conftest.$ac_ext
25714 cat >>conftest.$ac_ext <<_ACEOF
25715 /* end confdefs.h. */
25716 #include <sys/types.h>
25720 u_intmax_t a; a = 1;
25725 rm -f conftest.$ac_objext
25726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25727 (eval $ac_compile) 2>conftest.er1
25729 grep -v '^ *+' conftest.er1 >conftest.err
25731 cat conftest.err >&5
25732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25733 (exit $ac_status); } &&
25734 { ac_try='test -z "$ac_c_werror_flag"
25735 || test ! -s conftest.err'
25736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25737 (eval $ac_try) 2>&5
25739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25740 (exit $ac_status); }; } &&
25741 { ac_try='test -s conftest.$ac_objext'
25742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25743 (eval $ac_try) 2>&5
25745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25746 (exit $ac_status); }; }; then
25747 ac_cv_have_u_intmax_t="yes"
25749 echo "$as_me: failed program was:" >&5
25750 sed 's/^/| /' conftest.$ac_ext >&5
25753 cat >conftest.$ac_ext <<_ACEOF
25756 cat confdefs.h >>conftest.$ac_ext
25757 cat >>conftest.$ac_ext <<_ACEOF
25758 /* end confdefs.h. */
25759 #include <stdint.h>
25763 u_intmax_t a; a = 1;
25768 rm -f conftest.$ac_objext
25769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25770 (eval $ac_compile) 2>conftest.er1
25772 grep -v '^ *+' conftest.er1 >conftest.err
25774 cat conftest.err >&5
25775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25776 (exit $ac_status); } &&
25777 { ac_try='test -z "$ac_c_werror_flag"
25778 || test ! -s conftest.err'
25779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25780 (eval $ac_try) 2>&5
25782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25783 (exit $ac_status); }; } &&
25784 { ac_try='test -s conftest.$ac_objext'
25785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25786 (eval $ac_try) 2>&5
25788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25789 (exit $ac_status); }; }; then
25790 ac_cv_have_u_intmax_t="yes"
25792 echo "$as_me: failed program was:" >&5
25793 sed 's/^/| /' conftest.$ac_ext >&5
25795 ac_cv_have_u_intmax_t="no"
25798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25805 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
25806 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
25807 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
25808 cat >>confdefs.h <<\_ACEOF
25809 #define HAVE_U_INTMAX_T 1
25816 echo "$as_me:$LINENO: checking for intXX_t types" >&5
25817 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
25818 if test "${ac_cv_have_intxx_t+set}" = set; then
25819 echo $ECHO_N "(cached) $ECHO_C" >&6
25822 cat >conftest.$ac_ext <<_ACEOF
25825 cat confdefs.h >>conftest.$ac_ext
25826 cat >>conftest.$ac_ext <<_ACEOF
25827 /* end confdefs.h. */
25828 #include <sys/types.h>
25832 int8_t a; int16_t b; int32_t c; a = b = c = 1;
25837 rm -f conftest.$ac_objext
25838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25839 (eval $ac_compile) 2>conftest.er1
25841 grep -v '^ *+' conftest.er1 >conftest.err
25843 cat conftest.err >&5
25844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25845 (exit $ac_status); } &&
25846 { ac_try='test -z "$ac_c_werror_flag"
25847 || test ! -s conftest.err'
25848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25849 (eval $ac_try) 2>&5
25851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25852 (exit $ac_status); }; } &&
25853 { ac_try='test -s conftest.$ac_objext'
25854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25855 (eval $ac_try) 2>&5
25857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25858 (exit $ac_status); }; }; then
25859 ac_cv_have_intxx_t="yes"
25861 echo "$as_me: failed program was:" >&5
25862 sed 's/^/| /' conftest.$ac_ext >&5
25864 ac_cv_have_intxx_t="no"
25867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25870 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
25871 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
25872 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
25873 cat >>confdefs.h <<\_ACEOF
25874 #define HAVE_INTXX_T 1
25880 echo "$as_me:$LINENO: checking for int64_t type" >&5
25881 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
25882 if test "${ac_cv_have_int64_t+set}" = set; then
25883 echo $ECHO_N "(cached) $ECHO_C" >&6
25886 cat >conftest.$ac_ext <<_ACEOF
25889 cat confdefs.h >>conftest.$ac_ext
25890 cat >>conftest.$ac_ext <<_ACEOF
25891 /* end confdefs.h. */
25892 #include <sys/types.h>
25901 rm -f conftest.$ac_objext
25902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25903 (eval $ac_compile) 2>conftest.er1
25905 grep -v '^ *+' conftest.er1 >conftest.err
25907 cat conftest.err >&5
25908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25909 (exit $ac_status); } &&
25910 { ac_try='test -z "$ac_c_werror_flag"
25911 || test ! -s conftest.err'
25912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25913 (eval $ac_try) 2>&5
25915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25916 (exit $ac_status); }; } &&
25917 { ac_try='test -s conftest.$ac_objext'
25918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25919 (eval $ac_try) 2>&5
25921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25922 (exit $ac_status); }; }; then
25923 ac_cv_have_int64_t="yes"
25925 echo "$as_me: failed program was:" >&5
25926 sed 's/^/| /' conftest.$ac_ext >&5
25928 ac_cv_have_int64_t="no"
25931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25934 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
25935 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
25936 if test "x$ac_cv_have_int64_t" = "xyes" ; then
25937 cat >>confdefs.h <<\_ACEOF
25938 #define HAVE_INT64_T 1
25944 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
25945 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
25946 if test "${ac_cv_have_u_intxx_t+set}" = set; then
25947 echo $ECHO_N "(cached) $ECHO_C" >&6
25950 cat >conftest.$ac_ext <<_ACEOF
25953 cat confdefs.h >>conftest.$ac_ext
25954 cat >>conftest.$ac_ext <<_ACEOF
25955 /* end confdefs.h. */
25956 #include <sys/types.h>
25960 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
25965 rm -f conftest.$ac_objext
25966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25967 (eval $ac_compile) 2>conftest.er1
25969 grep -v '^ *+' conftest.er1 >conftest.err
25971 cat conftest.err >&5
25972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25973 (exit $ac_status); } &&
25974 { ac_try='test -z "$ac_c_werror_flag"
25975 || test ! -s conftest.err'
25976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25977 (eval $ac_try) 2>&5
25979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25980 (exit $ac_status); }; } &&
25981 { ac_try='test -s conftest.$ac_objext'
25982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25983 (eval $ac_try) 2>&5
25985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25986 (exit $ac_status); }; }; then
25987 ac_cv_have_u_intxx_t="yes"
25989 echo "$as_me: failed program was:" >&5
25990 sed 's/^/| /' conftest.$ac_ext >&5
25992 ac_cv_have_u_intxx_t="no"
25995 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25998 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
25999 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
26000 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
26001 cat >>confdefs.h <<\_ACEOF
26002 #define HAVE_U_INTXX_T 1
26008 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
26009 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
26010 if test "${ac_cv_have_u_int64_t+set}" = set; then
26011 echo $ECHO_N "(cached) $ECHO_C" >&6
26014 cat >conftest.$ac_ext <<_ACEOF
26017 cat confdefs.h >>conftest.$ac_ext
26018 cat >>conftest.$ac_ext <<_ACEOF
26019 /* end confdefs.h. */
26020 #include <sys/types.h>
26024 u_int64_t a; a = 1;
26029 rm -f conftest.$ac_objext
26030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26031 (eval $ac_compile) 2>conftest.er1
26033 grep -v '^ *+' conftest.er1 >conftest.err
26035 cat conftest.err >&5
26036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26037 (exit $ac_status); } &&
26038 { ac_try='test -z "$ac_c_werror_flag"
26039 || test ! -s conftest.err'
26040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26041 (eval $ac_try) 2>&5
26043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26044 (exit $ac_status); }; } &&
26045 { ac_try='test -s conftest.$ac_objext'
26046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26047 (eval $ac_try) 2>&5
26049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26050 (exit $ac_status); }; }; then
26051 ac_cv_have_u_int64_t="yes"
26053 echo "$as_me: failed program was:" >&5
26054 sed 's/^/| /' conftest.$ac_ext >&5
26056 ac_cv_have_u_int64_t="no"
26059 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26062 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
26063 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
26064 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
26065 cat >>confdefs.h <<\_ACEOF
26066 #define HAVE_U_INT64_T 1
26072 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
26073 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26075 echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
26076 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
26077 cat >conftest.$ac_ext <<_ACEOF
26080 cat confdefs.h >>conftest.$ac_ext
26081 cat >>conftest.$ac_ext <<_ACEOF
26082 /* end confdefs.h. */
26083 #include <sys/bitypes.h>
26087 int8_t a; int16_t b; int32_t c;
26088 u_int8_t e; u_int16_t f; u_int32_t g;
26089 a = b = c = e = f = g = 1;
26094 rm -f conftest.$ac_objext
26095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26096 (eval $ac_compile) 2>conftest.er1
26098 grep -v '^ *+' conftest.er1 >conftest.err
26100 cat conftest.err >&5
26101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26102 (exit $ac_status); } &&
26103 { ac_try='test -z "$ac_c_werror_flag"
26104 || test ! -s conftest.err'
26105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26106 (eval $ac_try) 2>&5
26108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26109 (exit $ac_status); }; } &&
26110 { ac_try='test -s conftest.$ac_objext'
26111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26112 (eval $ac_try) 2>&5
26114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26115 (exit $ac_status); }; }; then
26116 cat >>confdefs.h <<\_ACEOF
26117 #define HAVE_U_INTXX_T 1
26120 cat >>confdefs.h <<\_ACEOF
26121 #define HAVE_INTXX_T 1
26124 cat >>confdefs.h <<\_ACEOF
26125 #define HAVE_SYS_BITYPES_H 1
26128 echo "$as_me:$LINENO: result: yes" >&5
26129 echo "${ECHO_T}yes" >&6
26131 echo "$as_me: failed program was:" >&5
26132 sed 's/^/| /' conftest.$ac_ext >&5
26134 echo "$as_me:$LINENO: result: no" >&5
26135 echo "${ECHO_T}no" >&6
26138 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26141 if test -z "$have_u_intxx_t" ; then
26142 echo "$as_me:$LINENO: checking for uintXX_t types" >&5
26143 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
26144 if test "${ac_cv_have_uintxx_t+set}" = set; then
26145 echo $ECHO_N "(cached) $ECHO_C" >&6
26148 cat >conftest.$ac_ext <<_ACEOF
26151 cat confdefs.h >>conftest.$ac_ext
26152 cat >>conftest.$ac_ext <<_ACEOF
26153 /* end confdefs.h. */
26154 #include <sys/types.h>
26158 uint8_t a; uint16_t b;
26159 uint32_t c; a = b = c = 1;
26164 rm -f conftest.$ac_objext
26165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26166 (eval $ac_compile) 2>conftest.er1
26168 grep -v '^ *+' conftest.er1 >conftest.err
26170 cat conftest.err >&5
26171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26172 (exit $ac_status); } &&
26173 { ac_try='test -z "$ac_c_werror_flag"
26174 || test ! -s conftest.err'
26175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26176 (eval $ac_try) 2>&5
26178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26179 (exit $ac_status); }; } &&
26180 { ac_try='test -s conftest.$ac_objext'
26181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26182 (eval $ac_try) 2>&5
26184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26185 (exit $ac_status); }; }; then
26186 ac_cv_have_uintxx_t="yes"
26188 echo "$as_me: failed program was:" >&5
26189 sed 's/^/| /' conftest.$ac_ext >&5
26191 ac_cv_have_uintxx_t="no"
26194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26197 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
26198 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
26199 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
26200 cat >>confdefs.h <<\_ACEOF
26201 #define HAVE_UINTXX_T 1
26207 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
26208 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26210 echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
26211 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
26212 cat >conftest.$ac_ext <<_ACEOF
26215 cat confdefs.h >>conftest.$ac_ext
26216 cat >>conftest.$ac_ext <<_ACEOF
26217 /* end confdefs.h. */
26218 #include <sys/bitypes.h>
26222 int64_t a; u_int64_t b;
26228 rm -f conftest.$ac_objext
26229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26230 (eval $ac_compile) 2>conftest.er1
26232 grep -v '^ *+' conftest.er1 >conftest.err
26234 cat conftest.err >&5
26235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26236 (exit $ac_status); } &&
26237 { ac_try='test -z "$ac_c_werror_flag"
26238 || test ! -s conftest.err'
26239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26240 (eval $ac_try) 2>&5
26242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26243 (exit $ac_status); }; } &&
26244 { ac_try='test -s conftest.$ac_objext'
26245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26246 (eval $ac_try) 2>&5
26248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26249 (exit $ac_status); }; }; then
26250 cat >>confdefs.h <<\_ACEOF
26251 #define HAVE_U_INT64_T 1
26254 cat >>confdefs.h <<\_ACEOF
26255 #define HAVE_INT64_T 1
26258 echo "$as_me:$LINENO: result: yes" >&5
26259 echo "${ECHO_T}yes" >&6
26261 echo "$as_me: failed program was:" >&5
26262 sed 's/^/| /' conftest.$ac_ext >&5
26264 echo "$as_me:$LINENO: result: no" >&5
26265 echo "${ECHO_T}no" >&6
26268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26271 if (test -z "$have_uintxx_t" && \
26272 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26274 echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
26275 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
26276 cat >conftest.$ac_ext <<_ACEOF
26279 cat confdefs.h >>conftest.$ac_ext
26280 cat >>conftest.$ac_ext <<_ACEOF
26281 /* end confdefs.h. */
26282 #include <sys/bitypes.h>
26286 uint8_t a; uint16_t b;
26287 uint32_t c; a = b = c = 1;
26292 rm -f conftest.$ac_objext
26293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26294 (eval $ac_compile) 2>conftest.er1
26296 grep -v '^ *+' conftest.er1 >conftest.err
26298 cat conftest.err >&5
26299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26300 (exit $ac_status); } &&
26301 { ac_try='test -z "$ac_c_werror_flag"
26302 || test ! -s conftest.err'
26303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26304 (eval $ac_try) 2>&5
26306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26307 (exit $ac_status); }; } &&
26308 { ac_try='test -s conftest.$ac_objext'
26309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26310 (eval $ac_try) 2>&5
26312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26313 (exit $ac_status); }; }; then
26314 cat >>confdefs.h <<\_ACEOF
26315 #define HAVE_UINTXX_T 1
26318 echo "$as_me:$LINENO: result: yes" >&5
26319 echo "${ECHO_T}yes" >&6
26321 echo "$as_me: failed program was:" >&5
26322 sed 's/^/| /' conftest.$ac_ext >&5
26324 echo "$as_me:$LINENO: result: no" >&5
26325 echo "${ECHO_T}no" >&6
26328 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26364 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26365 echo "$as_me:$LINENO: checking for $ac_func" >&5
26366 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26367 if eval "test \"\${$as_ac_var+set}\" = set"; then
26368 echo $ECHO_N "(cached) $ECHO_C" >&6
26370 cat >conftest.$ac_ext <<_ACEOF
26373 cat confdefs.h >>conftest.$ac_ext
26374 cat >>conftest.$ac_ext <<_ACEOF
26375 /* end confdefs.h. */
26376 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26377 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26378 #define $ac_func innocuous_$ac_func
26380 /* System header to define __stub macros and hopefully few prototypes,
26381 which can conflict with char $ac_func (); below.
26382 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26383 <limits.h> exists even on freestanding compilers. */
26386 # include <limits.h>
26388 # include <assert.h>
26393 /* Override any gcc2 internal prototype to avoid an error. */
26398 /* We use char because int might match the return type of a gcc2
26399 builtin and then its argument prototype would still apply. */
26401 /* The GNU C library defines this for functions which it implements
26402 to always fail with ENOSYS. Some functions are actually named
26403 something starting with __ and the normal name is an alias. */
26404 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26407 char (*f) () = $ac_func;
26416 return f != $ac_func;
26421 rm -f conftest.$ac_objext conftest$ac_exeext
26422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26423 (eval $ac_link) 2>conftest.er1
26425 grep -v '^ *+' conftest.er1 >conftest.err
26427 cat conftest.err >&5
26428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26429 (exit $ac_status); } &&
26430 { ac_try='test -z "$ac_c_werror_flag"
26431 || test ! -s conftest.err'
26432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26433 (eval $ac_try) 2>&5
26435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26436 (exit $ac_status); }; } &&
26437 { ac_try='test -s conftest$ac_exeext'
26438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26439 (eval $ac_try) 2>&5
26441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26442 (exit $ac_status); }; }; then
26443 eval "$as_ac_var=yes"
26445 echo "$as_me: failed program was:" >&5
26446 sed 's/^/| /' conftest.$ac_ext >&5
26448 eval "$as_ac_var=no"
26450 rm -f conftest.err conftest.$ac_objext \
26451 conftest$ac_exeext conftest.$ac_ext
26453 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26454 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26455 if test `eval echo '${'$as_ac_var'}'` = yes; then
26456 cat >>confdefs.h <<_ACEOF
26457 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26461 echo 'configure: cannot find needed function.'; exit 1
26468 for ac_func in fchdir
26470 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26471 echo "$as_me:$LINENO: checking for $ac_func" >&5
26472 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26473 if eval "test \"\${$as_ac_var+set}\" = set"; then
26474 echo $ECHO_N "(cached) $ECHO_C" >&6
26476 cat >conftest.$ac_ext <<_ACEOF
26479 cat confdefs.h >>conftest.$ac_ext
26480 cat >>conftest.$ac_ext <<_ACEOF
26481 /* end confdefs.h. */
26482 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26483 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26484 #define $ac_func innocuous_$ac_func
26486 /* System header to define __stub macros and hopefully few prototypes,
26487 which can conflict with char $ac_func (); below.
26488 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26489 <limits.h> exists even on freestanding compilers. */
26492 # include <limits.h>
26494 # include <assert.h>
26499 /* Override any gcc2 internal prototype to avoid an error. */
26504 /* We use char because int might match the return type of a gcc2
26505 builtin and then its argument prototype would still apply. */
26507 /* The GNU C library defines this for functions which it implements
26508 to always fail with ENOSYS. Some functions are actually named
26509 something starting with __ and the normal name is an alias. */
26510 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26513 char (*f) () = $ac_func;
26522 return f != $ac_func;
26527 rm -f conftest.$ac_objext conftest$ac_exeext
26528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26529 (eval $ac_link) 2>conftest.er1
26531 grep -v '^ *+' conftest.er1 >conftest.err
26533 cat conftest.err >&5
26534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26535 (exit $ac_status); } &&
26536 { ac_try='test -z "$ac_c_werror_flag"
26537 || test ! -s conftest.err'
26538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26539 (eval $ac_try) 2>&5
26541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26542 (exit $ac_status); }; } &&
26543 { ac_try='test -s conftest$ac_exeext'
26544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26545 (eval $ac_try) 2>&5
26547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26548 (exit $ac_status); }; }; then
26549 eval "$as_ac_var=yes"
26551 echo "$as_me: failed program was:" >&5
26552 sed 's/^/| /' conftest.$ac_ext >&5
26554 eval "$as_ac_var=no"
26556 rm -f conftest.err conftest.$ac_objext \
26557 conftest$ac_exeext conftest.$ac_ext
26559 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26560 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26561 if test `eval echo '${'$as_ac_var'}'` = yes; then
26562 cat >>confdefs.h <<_ACEOF
26563 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26565 cat >>confdefs.h <<\_ACEOF
26566 #define HAVE_FCHDIR 1
26573 for ac_func in strtoll
26575 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26576 echo "$as_me:$LINENO: checking for $ac_func" >&5
26577 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26578 if eval "test \"\${$as_ac_var+set}\" = set"; then
26579 echo $ECHO_N "(cached) $ECHO_C" >&6
26581 cat >conftest.$ac_ext <<_ACEOF
26584 cat confdefs.h >>conftest.$ac_ext
26585 cat >>conftest.$ac_ext <<_ACEOF
26586 /* end confdefs.h. */
26587 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26588 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26589 #define $ac_func innocuous_$ac_func
26591 /* System header to define __stub macros and hopefully few prototypes,
26592 which can conflict with char $ac_func (); below.
26593 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26594 <limits.h> exists even on freestanding compilers. */
26597 # include <limits.h>
26599 # include <assert.h>
26604 /* Override any gcc2 internal prototype to avoid an error. */
26609 /* We use char because int might match the return type of a gcc2
26610 builtin and then its argument prototype would still apply. */
26612 /* The GNU C library defines this for functions which it implements
26613 to always fail with ENOSYS. Some functions are actually named
26614 something starting with __ and the normal name is an alias. */
26615 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26618 char (*f) () = $ac_func;
26627 return f != $ac_func;
26632 rm -f conftest.$ac_objext conftest$ac_exeext
26633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26634 (eval $ac_link) 2>conftest.er1
26636 grep -v '^ *+' conftest.er1 >conftest.err
26638 cat conftest.err >&5
26639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26640 (exit $ac_status); } &&
26641 { ac_try='test -z "$ac_c_werror_flag"
26642 || test ! -s conftest.err'
26643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26644 (eval $ac_try) 2>&5
26646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26647 (exit $ac_status); }; } &&
26648 { ac_try='test -s conftest$ac_exeext'
26649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26650 (eval $ac_try) 2>&5
26652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26653 (exit $ac_status); }; }; then
26654 eval "$as_ac_var=yes"
26656 echo "$as_me: failed program was:" >&5
26657 sed 's/^/| /' conftest.$ac_ext >&5
26659 eval "$as_ac_var=no"
26661 rm -f conftest.err conftest.$ac_objext \
26662 conftest$ac_exeext conftest.$ac_ext
26664 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26665 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26666 if test `eval echo '${'$as_ac_var'}'` = yes; then
26667 cat >>confdefs.h <<_ACEOF
26668 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26670 cat >>confdefs.h <<\_ACEOF
26671 #define HAVE_STRTOLL 1
26678 for ac_func in posix_fadvise
26680 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26681 echo "$as_me:$LINENO: checking for $ac_func" >&5
26682 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26683 if eval "test \"\${$as_ac_var+set}\" = set"; then
26684 echo $ECHO_N "(cached) $ECHO_C" >&6
26686 cat >conftest.$ac_ext <<_ACEOF
26689 cat confdefs.h >>conftest.$ac_ext
26690 cat >>conftest.$ac_ext <<_ACEOF
26691 /* end confdefs.h. */
26692 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26693 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26694 #define $ac_func innocuous_$ac_func
26696 /* System header to define __stub macros and hopefully few prototypes,
26697 which can conflict with char $ac_func (); below.
26698 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26699 <limits.h> exists even on freestanding compilers. */
26702 # include <limits.h>
26704 # include <assert.h>
26709 /* Override any gcc2 internal prototype to avoid an error. */
26714 /* We use char because int might match the return type of a gcc2
26715 builtin and then its argument prototype would still apply. */
26717 /* The GNU C library defines this for functions which it implements
26718 to always fail with ENOSYS. Some functions are actually named
26719 something starting with __ and the normal name is an alias. */
26720 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26723 char (*f) () = $ac_func;
26732 return f != $ac_func;
26737 rm -f conftest.$ac_objext conftest$ac_exeext
26738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26739 (eval $ac_link) 2>conftest.er1
26741 grep -v '^ *+' conftest.er1 >conftest.err
26743 cat conftest.err >&5
26744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26745 (exit $ac_status); } &&
26746 { ac_try='test -z "$ac_c_werror_flag"
26747 || test ! -s conftest.err'
26748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26749 (eval $ac_try) 2>&5
26751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26752 (exit $ac_status); }; } &&
26753 { ac_try='test -s conftest$ac_exeext'
26754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26755 (eval $ac_try) 2>&5
26757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26758 (exit $ac_status); }; }; then
26759 eval "$as_ac_var=yes"
26761 echo "$as_me: failed program was:" >&5
26762 sed 's/^/| /' conftest.$ac_ext >&5
26764 eval "$as_ac_var=no"
26766 rm -f conftest.err conftest.$ac_objext \
26767 conftest$ac_exeext conftest.$ac_ext
26769 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26770 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26771 if test `eval echo '${'$as_ac_var'}'` = yes; then
26772 cat >>confdefs.h <<_ACEOF
26773 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26780 for ac_func in fdatasync
26782 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26783 echo "$as_me:$LINENO: checking for $ac_func" >&5
26784 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26785 if eval "test \"\${$as_ac_var+set}\" = set"; then
26786 echo $ECHO_N "(cached) $ECHO_C" >&6
26788 cat >conftest.$ac_ext <<_ACEOF
26791 cat confdefs.h >>conftest.$ac_ext
26792 cat >>conftest.$ac_ext <<_ACEOF
26793 /* end confdefs.h. */
26794 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26795 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26796 #define $ac_func innocuous_$ac_func
26798 /* System header to define __stub macros and hopefully few prototypes,
26799 which can conflict with char $ac_func (); below.
26800 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26801 <limits.h> exists even on freestanding compilers. */
26804 # include <limits.h>
26806 # include <assert.h>
26811 /* Override any gcc2 internal prototype to avoid an error. */
26816 /* We use char because int might match the return type of a gcc2
26817 builtin and then its argument prototype would still apply. */
26819 /* The GNU C library defines this for functions which it implements
26820 to always fail with ENOSYS. Some functions are actually named
26821 something starting with __ and the normal name is an alias. */
26822 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26825 char (*f) () = $ac_func;
26834 return f != $ac_func;
26839 rm -f conftest.$ac_objext conftest$ac_exeext
26840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26841 (eval $ac_link) 2>conftest.er1
26843 grep -v '^ *+' conftest.er1 >conftest.err
26845 cat conftest.err >&5
26846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26847 (exit $ac_status); } &&
26848 { ac_try='test -z "$ac_c_werror_flag"
26849 || test ! -s conftest.err'
26850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26851 (eval $ac_try) 2>&5
26853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26854 (exit $ac_status); }; } &&
26855 { ac_try='test -s conftest$ac_exeext'
26856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26857 (eval $ac_try) 2>&5
26859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26860 (exit $ac_status); }; }; then
26861 eval "$as_ac_var=yes"
26863 echo "$as_me: failed program was:" >&5
26864 sed 's/^/| /' conftest.$ac_ext >&5
26866 eval "$as_ac_var=no"
26868 rm -f conftest.err conftest.$ac_objext \
26869 conftest$ac_exeext conftest.$ac_ext
26871 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26872 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26873 if test `eval echo '${'$as_ac_var'}'` = yes; then
26874 cat >>confdefs.h <<_ACEOF
26875 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26883 for ac_func in chflags
26885 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26886 echo "$as_me:$LINENO: checking for $ac_func" >&5
26887 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26888 if eval "test \"\${$as_ac_var+set}\" = set"; then
26889 echo $ECHO_N "(cached) $ECHO_C" >&6
26891 cat >conftest.$ac_ext <<_ACEOF
26894 cat confdefs.h >>conftest.$ac_ext
26895 cat >>conftest.$ac_ext <<_ACEOF
26896 /* end confdefs.h. */
26897 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26898 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26899 #define $ac_func innocuous_$ac_func
26901 /* System header to define __stub macros and hopefully few prototypes,
26902 which can conflict with char $ac_func (); below.
26903 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26904 <limits.h> exists even on freestanding compilers. */
26907 # include <limits.h>
26909 # include <assert.h>
26914 /* Override any gcc2 internal prototype to avoid an error. */
26919 /* We use char because int might match the return type of a gcc2
26920 builtin and then its argument prototype would still apply. */
26922 /* The GNU C library defines this for functions which it implements
26923 to always fail with ENOSYS. Some functions are actually named
26924 something starting with __ and the normal name is an alias. */
26925 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26928 char (*f) () = $ac_func;
26937 return f != $ac_func;
26942 rm -f conftest.$ac_objext conftest$ac_exeext
26943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26944 (eval $ac_link) 2>conftest.er1
26946 grep -v '^ *+' conftest.er1 >conftest.err
26948 cat conftest.err >&5
26949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26950 (exit $ac_status); } &&
26951 { ac_try='test -z "$ac_c_werror_flag"
26952 || test ! -s conftest.err'
26953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26954 (eval $ac_try) 2>&5
26956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26957 (exit $ac_status); }; } &&
26958 { ac_try='test -s conftest$ac_exeext'
26959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26960 (eval $ac_try) 2>&5
26962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26963 (exit $ac_status); }; }; then
26964 eval "$as_ac_var=yes"
26966 echo "$as_me: failed program was:" >&5
26967 sed 's/^/| /' conftest.$ac_ext >&5
26969 eval "$as_ac_var=no"
26971 rm -f conftest.err conftest.$ac_objext \
26972 conftest$ac_exeext conftest.$ac_ext
26974 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26975 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26976 if test `eval echo '${'$as_ac_var'}'` = yes; then
26977 cat >>confdefs.h <<_ACEOF
26978 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26989 for ac_func in snprintf vsnprintf gethostid fseeko
26991 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26992 echo "$as_me:$LINENO: checking for $ac_func" >&5
26993 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26994 if eval "test \"\${$as_ac_var+set}\" = set"; then
26995 echo $ECHO_N "(cached) $ECHO_C" >&6
26997 cat >conftest.$ac_ext <<_ACEOF
27000 cat confdefs.h >>conftest.$ac_ext
27001 cat >>conftest.$ac_ext <<_ACEOF
27002 /* end confdefs.h. */
27003 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27004 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27005 #define $ac_func innocuous_$ac_func
27007 /* System header to define __stub macros and hopefully few prototypes,
27008 which can conflict with char $ac_func (); below.
27009 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27010 <limits.h> exists even on freestanding compilers. */
27013 # include <limits.h>
27015 # include <assert.h>
27020 /* Override any gcc2 internal prototype to avoid an error. */
27025 /* We use char because int might match the return type of a gcc2
27026 builtin and then its argument prototype would still apply. */
27028 /* The GNU C library defines this for functions which it implements
27029 to always fail with ENOSYS. Some functions are actually named
27030 something starting with __ and the normal name is an alias. */
27031 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27034 char (*f) () = $ac_func;
27043 return f != $ac_func;
27048 rm -f conftest.$ac_objext conftest$ac_exeext
27049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27050 (eval $ac_link) 2>conftest.er1
27052 grep -v '^ *+' conftest.er1 >conftest.err
27054 cat conftest.err >&5
27055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27056 (exit $ac_status); } &&
27057 { ac_try='test -z "$ac_c_werror_flag"
27058 || test ! -s conftest.err'
27059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27060 (eval $ac_try) 2>&5
27062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27063 (exit $ac_status); }; } &&
27064 { ac_try='test -s conftest$ac_exeext'
27065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27066 (eval $ac_try) 2>&5
27068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27069 (exit $ac_status); }; }; then
27070 eval "$as_ac_var=yes"
27072 echo "$as_me: failed program was:" >&5
27073 sed 's/^/| /' conftest.$ac_ext >&5
27075 eval "$as_ac_var=no"
27077 rm -f conftest.err conftest.$ac_objext \
27078 conftest$ac_exeext conftest.$ac_ext
27080 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27081 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27082 if test `eval echo '${'$as_ac_var'}'` = yes; then
27083 cat >>confdefs.h <<_ACEOF
27084 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27091 echo "$as_me:$LINENO: checking for va_copy" >&5
27092 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
27093 if test "${ba_cv_va_copy+set}" = set; then
27094 echo $ECHO_N "(cached) $ECHO_C" >&6
27096 cat >conftest.$ac_ext <<_ACEOF
27099 cat confdefs.h >>conftest.$ac_ext
27100 cat >>conftest.$ac_ext <<_ACEOF
27101 /* end confdefs.h. */
27103 #include <stdarg.h>
27104 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
27105 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
27110 call_use_va_copy(1,2,3)
27115 rm -f conftest.$ac_objext conftest$ac_exeext
27116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27117 (eval $ac_link) 2>conftest.er1
27119 grep -v '^ *+' conftest.er1 >conftest.err
27121 cat conftest.err >&5
27122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27123 (exit $ac_status); } &&
27124 { ac_try='test -z "$ac_c_werror_flag"
27125 || test ! -s conftest.err'
27126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27127 (eval $ac_try) 2>&5
27129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27130 (exit $ac_status); }; } &&
27131 { ac_try='test -s conftest$ac_exeext'
27132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27133 (eval $ac_try) 2>&5
27135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27136 (exit $ac_status); }; }; then
27139 echo "$as_me: failed program was:" >&5
27140 sed 's/^/| /' conftest.$ac_ext >&5
27144 rm -f conftest.err conftest.$ac_objext \
27145 conftest$ac_exeext conftest.$ac_ext
27147 echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
27148 echo "${ECHO_T}$ba_cv_va_copy" >&6
27149 test $ba_cv_va_copy = yes &&
27150 cat >>confdefs.h <<\_ACEOF
27151 #define HAVE_VA_COPY 1
27160 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
27162 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27163 echo "$as_me:$LINENO: checking for $ac_func" >&5
27164 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27165 if eval "test \"\${$as_ac_var+set}\" = set"; then
27166 echo $ECHO_N "(cached) $ECHO_C" >&6
27168 cat >conftest.$ac_ext <<_ACEOF
27171 cat confdefs.h >>conftest.$ac_ext
27172 cat >>conftest.$ac_ext <<_ACEOF
27173 /* end confdefs.h. */
27174 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27175 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27176 #define $ac_func innocuous_$ac_func
27178 /* System header to define __stub macros and hopefully few prototypes,
27179 which can conflict with char $ac_func (); below.
27180 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27181 <limits.h> exists even on freestanding compilers. */
27184 # include <limits.h>
27186 # include <assert.h>
27191 /* Override any gcc2 internal prototype to avoid an error. */
27196 /* We use char because int might match the return type of a gcc2
27197 builtin and then its argument prototype would still apply. */
27199 /* The GNU C library defines this for functions which it implements
27200 to always fail with ENOSYS. Some functions are actually named
27201 something starting with __ and the normal name is an alias. */
27202 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27205 char (*f) () = $ac_func;
27214 return f != $ac_func;
27219 rm -f conftest.$ac_objext conftest$ac_exeext
27220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27221 (eval $ac_link) 2>conftest.er1
27223 grep -v '^ *+' conftest.er1 >conftest.err
27225 cat conftest.err >&5
27226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27227 (exit $ac_status); } &&
27228 { ac_try='test -z "$ac_c_werror_flag"
27229 || test ! -s conftest.err'
27230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27231 (eval $ac_try) 2>&5
27233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27234 (exit $ac_status); }; } &&
27235 { ac_try='test -s conftest$ac_exeext'
27236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27237 (eval $ac_try) 2>&5
27239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27240 (exit $ac_status); }; }; then
27241 eval "$as_ac_var=yes"
27243 echo "$as_me: failed program was:" >&5
27244 sed 's/^/| /' conftest.$ac_ext >&5
27246 eval "$as_ac_var=no"
27248 rm -f conftest.err conftest.$ac_objext \
27249 conftest$ac_exeext conftest.$ac_ext
27251 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27252 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27253 if test `eval echo '${'$as_ac_var'}'` = yes; then
27254 cat >>confdefs.h <<_ACEOF
27255 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27262 # If resolver functions are not in libc check for -lnsl or -lresolv.
27263 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
27264 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
27265 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
27266 echo $ECHO_N "(cached) $ECHO_C" >&6
27268 cat >conftest.$ac_ext <<_ACEOF
27271 cat confdefs.h >>conftest.$ac_ext
27272 cat >>conftest.$ac_ext <<_ACEOF
27273 /* end confdefs.h. */
27274 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
27275 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27276 #define gethostbyname_r innocuous_gethostbyname_r
27278 /* System header to define __stub macros and hopefully few prototypes,
27279 which can conflict with char gethostbyname_r (); below.
27280 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27281 <limits.h> exists even on freestanding compilers. */
27284 # include <limits.h>
27286 # include <assert.h>
27289 #undef gethostbyname_r
27291 /* Override any gcc2 internal prototype to avoid an error. */
27296 /* We use char because int might match the return type of a gcc2
27297 builtin and then its argument prototype would still apply. */
27298 char gethostbyname_r ();
27299 /* The GNU C library defines this for functions which it implements
27300 to always fail with ENOSYS. Some functions are actually named
27301 something starting with __ and the normal name is an alias. */
27302 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
27305 char (*f) () = gethostbyname_r;
27314 return f != gethostbyname_r;
27319 rm -f conftest.$ac_objext conftest$ac_exeext
27320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27321 (eval $ac_link) 2>conftest.er1
27323 grep -v '^ *+' conftest.er1 >conftest.err
27325 cat conftest.err >&5
27326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27327 (exit $ac_status); } &&
27328 { ac_try='test -z "$ac_c_werror_flag"
27329 || test ! -s conftest.err'
27330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27331 (eval $ac_try) 2>&5
27333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27334 (exit $ac_status); }; } &&
27335 { ac_try='test -s conftest$ac_exeext'
27336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27337 (eval $ac_try) 2>&5
27339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27340 (exit $ac_status); }; }; then
27341 ac_cv_func_gethostbyname_r=yes
27343 echo "$as_me: failed program was:" >&5
27344 sed 's/^/| /' conftest.$ac_ext >&5
27346 ac_cv_func_gethostbyname_r=no
27348 rm -f conftest.err conftest.$ac_objext \
27349 conftest$ac_exeext conftest.$ac_ext
27351 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
27352 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
27353 if test $ac_cv_func_gethostbyname_r = yes; then
27354 echo "$as_me:$LINENO: result: using libc's resolver" >&5
27355 echo "${ECHO_T}using libc's resolver" >&6
27358 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
27359 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
27360 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
27361 echo $ECHO_N "(cached) $ECHO_C" >&6
27363 ac_check_lib_save_LIBS=$LIBS
27365 cat >conftest.$ac_ext <<_ACEOF
27368 cat confdefs.h >>conftest.$ac_ext
27369 cat >>conftest.$ac_ext <<_ACEOF
27370 /* end confdefs.h. */
27372 /* Override any gcc2 internal prototype to avoid an error. */
27376 /* We use char because int might match the return type of a gcc2
27377 builtin and then its argument prototype would still apply. */
27378 char gethostbyname_r ();
27382 gethostbyname_r ();
27387 rm -f conftest.$ac_objext conftest$ac_exeext
27388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27389 (eval $ac_link) 2>conftest.er1
27391 grep -v '^ *+' conftest.er1 >conftest.err
27393 cat conftest.err >&5
27394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27395 (exit $ac_status); } &&
27396 { ac_try='test -z "$ac_c_werror_flag"
27397 || test ! -s conftest.err'
27398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27399 (eval $ac_try) 2>&5
27401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27402 (exit $ac_status); }; } &&
27403 { ac_try='test -s conftest$ac_exeext'
27404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27405 (eval $ac_try) 2>&5
27407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27408 (exit $ac_status); }; }; then
27409 ac_cv_lib_nsl_gethostbyname_r=yes
27411 echo "$as_me: failed program was:" >&5
27412 sed 's/^/| /' conftest.$ac_ext >&5
27414 ac_cv_lib_nsl_gethostbyname_r=no
27416 rm -f conftest.err conftest.$ac_objext \
27417 conftest$ac_exeext conftest.$ac_ext
27418 LIBS=$ac_check_lib_save_LIBS
27420 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
27421 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
27422 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
27423 cat >>confdefs.h <<_ACEOF
27424 #define HAVE_LIBNSL 1
27432 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
27433 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
27434 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
27435 echo $ECHO_N "(cached) $ECHO_C" >&6
27437 ac_check_lib_save_LIBS=$LIBS
27438 LIBS="-lresolv $LIBS"
27439 cat >conftest.$ac_ext <<_ACEOF
27442 cat confdefs.h >>conftest.$ac_ext
27443 cat >>conftest.$ac_ext <<_ACEOF
27444 /* end confdefs.h. */
27446 /* Override any gcc2 internal prototype to avoid an error. */
27450 /* We use char because int might match the return type of a gcc2
27451 builtin and then its argument prototype would still apply. */
27452 char gethostbyname_r ();
27456 gethostbyname_r ();
27461 rm -f conftest.$ac_objext conftest$ac_exeext
27462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27463 (eval $ac_link) 2>conftest.er1
27465 grep -v '^ *+' conftest.er1 >conftest.err
27467 cat conftest.err >&5
27468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27469 (exit $ac_status); } &&
27470 { ac_try='test -z "$ac_c_werror_flag"
27471 || test ! -s conftest.err'
27472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27473 (eval $ac_try) 2>&5
27475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27476 (exit $ac_status); }; } &&
27477 { ac_try='test -s conftest$ac_exeext'
27478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27479 (eval $ac_try) 2>&5
27481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27482 (exit $ac_status); }; }; then
27483 ac_cv_lib_resolv_gethostbyname_r=yes
27485 echo "$as_me: failed program was:" >&5
27486 sed 's/^/| /' conftest.$ac_ext >&5
27488 ac_cv_lib_resolv_gethostbyname_r=no
27490 rm -f conftest.err conftest.$ac_objext \
27491 conftest$ac_exeext conftest.$ac_ext
27492 LIBS=$ac_check_lib_save_LIBS
27494 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
27495 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
27496 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
27497 cat >>confdefs.h <<_ACEOF
27498 #define HAVE_LIBRESOLV 1
27501 LIBS="-lresolv $LIBS"
27511 for ac_func in inet_pton
27513 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27514 echo "$as_me:$LINENO: checking for $ac_func" >&5
27515 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27516 if eval "test \"\${$as_ac_var+set}\" = set"; then
27517 echo $ECHO_N "(cached) $ECHO_C" >&6
27519 cat >conftest.$ac_ext <<_ACEOF
27522 cat confdefs.h >>conftest.$ac_ext
27523 cat >>conftest.$ac_ext <<_ACEOF
27524 /* end confdefs.h. */
27525 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27526 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27527 #define $ac_func innocuous_$ac_func
27529 /* System header to define __stub macros and hopefully few prototypes,
27530 which can conflict with char $ac_func (); below.
27531 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27532 <limits.h> exists even on freestanding compilers. */
27535 # include <limits.h>
27537 # include <assert.h>
27542 /* Override any gcc2 internal prototype to avoid an error. */
27547 /* We use char because int might match the return type of a gcc2
27548 builtin and then its argument prototype would still apply. */
27550 /* The GNU C library defines this for functions which it implements
27551 to always fail with ENOSYS. Some functions are actually named
27552 something starting with __ and the normal name is an alias. */
27553 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27556 char (*f) () = $ac_func;
27565 return f != $ac_func;
27570 rm -f conftest.$ac_objext conftest$ac_exeext
27571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27572 (eval $ac_link) 2>conftest.er1
27574 grep -v '^ *+' conftest.er1 >conftest.err
27576 cat conftest.err >&5
27577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27578 (exit $ac_status); } &&
27579 { ac_try='test -z "$ac_c_werror_flag"
27580 || test ! -s conftest.err'
27581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27582 (eval $ac_try) 2>&5
27584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27585 (exit $ac_status); }; } &&
27586 { ac_try='test -s conftest$ac_exeext'
27587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27588 (eval $ac_try) 2>&5
27590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27591 (exit $ac_status); }; }; then
27592 eval "$as_ac_var=yes"
27594 echo "$as_me: failed program was:" >&5
27595 sed 's/^/| /' conftest.$ac_ext >&5
27597 eval "$as_ac_var=no"
27599 rm -f conftest.err conftest.$ac_objext \
27600 conftest$ac_exeext conftest.$ac_ext
27602 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27603 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27604 if test `eval echo '${'$as_ac_var'}'` = yes; then
27605 cat >>confdefs.h <<_ACEOF
27606 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27608 cat >>confdefs.h <<\_ACEOF
27609 #define HAVE_INET_PTON 1
27616 for ac_func in inet_ntop
27618 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27619 echo "$as_me:$LINENO: checking for $ac_func" >&5
27620 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27621 if eval "test \"\${$as_ac_var+set}\" = set"; then
27622 echo $ECHO_N "(cached) $ECHO_C" >&6
27624 cat >conftest.$ac_ext <<_ACEOF
27627 cat confdefs.h >>conftest.$ac_ext
27628 cat >>conftest.$ac_ext <<_ACEOF
27629 /* end confdefs.h. */
27630 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27631 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27632 #define $ac_func innocuous_$ac_func
27634 /* System header to define __stub macros and hopefully few prototypes,
27635 which can conflict with char $ac_func (); below.
27636 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27637 <limits.h> exists even on freestanding compilers. */
27640 # include <limits.h>
27642 # include <assert.h>
27647 /* Override any gcc2 internal prototype to avoid an error. */
27652 /* We use char because int might match the return type of a gcc2
27653 builtin and then its argument prototype would still apply. */
27655 /* The GNU C library defines this for functions which it implements
27656 to always fail with ENOSYS. Some functions are actually named
27657 something starting with __ and the normal name is an alias. */
27658 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27661 char (*f) () = $ac_func;
27670 return f != $ac_func;
27675 rm -f conftest.$ac_objext conftest$ac_exeext
27676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27677 (eval $ac_link) 2>conftest.er1
27679 grep -v '^ *+' conftest.er1 >conftest.err
27681 cat conftest.err >&5
27682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27683 (exit $ac_status); } &&
27684 { ac_try='test -z "$ac_c_werror_flag"
27685 || test ! -s conftest.err'
27686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27687 (eval $ac_try) 2>&5
27689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27690 (exit $ac_status); }; } &&
27691 { ac_try='test -s conftest$ac_exeext'
27692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27693 (eval $ac_try) 2>&5
27695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27696 (exit $ac_status); }; }; then
27697 eval "$as_ac_var=yes"
27699 echo "$as_me: failed program was:" >&5
27700 sed 's/^/| /' conftest.$ac_ext >&5
27702 eval "$as_ac_var=no"
27704 rm -f conftest.err conftest.$ac_objext \
27705 conftest$ac_exeext conftest.$ac_ext
27707 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27708 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27709 if test `eval echo '${'$as_ac_var'}'` = yes; then
27710 cat >>confdefs.h <<_ACEOF
27711 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27713 cat >>confdefs.h <<\_ACEOF
27714 #define HAVE_INET_NTOP 1
27721 for ac_func in gethostbyname2
27723 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27724 echo "$as_me:$LINENO: checking for $ac_func" >&5
27725 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27726 if eval "test \"\${$as_ac_var+set}\" = set"; then
27727 echo $ECHO_N "(cached) $ECHO_C" >&6
27729 cat >conftest.$ac_ext <<_ACEOF
27732 cat confdefs.h >>conftest.$ac_ext
27733 cat >>conftest.$ac_ext <<_ACEOF
27734 /* end confdefs.h. */
27735 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27736 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27737 #define $ac_func innocuous_$ac_func
27739 /* System header to define __stub macros and hopefully few prototypes,
27740 which can conflict with char $ac_func (); below.
27741 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27742 <limits.h> exists even on freestanding compilers. */
27745 # include <limits.h>
27747 # include <assert.h>
27752 /* Override any gcc2 internal prototype to avoid an error. */
27757 /* We use char because int might match the return type of a gcc2
27758 builtin and then its argument prototype would still apply. */
27760 /* The GNU C library defines this for functions which it implements
27761 to always fail with ENOSYS. Some functions are actually named
27762 something starting with __ and the normal name is an alias. */
27763 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27766 char (*f) () = $ac_func;
27775 return f != $ac_func;
27780 rm -f conftest.$ac_objext conftest$ac_exeext
27781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27782 (eval $ac_link) 2>conftest.er1
27784 grep -v '^ *+' conftest.er1 >conftest.err
27786 cat conftest.err >&5
27787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27788 (exit $ac_status); } &&
27789 { ac_try='test -z "$ac_c_werror_flag"
27790 || test ! -s conftest.err'
27791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27792 (eval $ac_try) 2>&5
27794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27795 (exit $ac_status); }; } &&
27796 { ac_try='test -s conftest$ac_exeext'
27797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27798 (eval $ac_try) 2>&5
27800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27801 (exit $ac_status); }; }; then
27802 eval "$as_ac_var=yes"
27804 echo "$as_me: failed program was:" >&5
27805 sed 's/^/| /' conftest.$ac_ext >&5
27807 eval "$as_ac_var=no"
27809 rm -f conftest.err conftest.$ac_objext \
27810 conftest$ac_exeext conftest.$ac_ext
27812 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27813 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27814 if test `eval echo '${'$as_ac_var'}'` = yes; then
27815 cat >>confdefs.h <<_ACEOF
27816 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27818 cat >>confdefs.h <<\_ACEOF
27819 #define HAVE_GETHOSTBYNAME2 1
27826 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
27827 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
27828 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
27829 echo $ECHO_N "(cached) $ECHO_C" >&6
27831 cat >conftest.$ac_ext <<_ACEOF
27834 cat confdefs.h >>conftest.$ac_ext
27835 cat >>conftest.$ac_ext <<_ACEOF
27836 /* end confdefs.h. */
27837 #include <sys/socket.h>
27841 struct sockaddr s; s.sa_len;
27846 rm -f conftest.$ac_objext
27847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27848 (eval $ac_compile) 2>conftest.er1
27850 grep -v '^ *+' conftest.er1 >conftest.err
27852 cat conftest.err >&5
27853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27854 (exit $ac_status); } &&
27855 { ac_try='test -z "$ac_c_werror_flag"
27856 || test ! -s conftest.err'
27857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27858 (eval $ac_try) 2>&5
27860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27861 (exit $ac_status); }; } &&
27862 { ac_try='test -s conftest.$ac_objext'
27863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27864 (eval $ac_try) 2>&5
27866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27867 (exit $ac_status); }; }; then
27868 ac_cv_struct_sockaddr_sa_len=yes
27870 echo "$as_me: failed program was:" >&5
27871 sed 's/^/| /' conftest.$ac_ext >&5
27873 ac_cv_struct_sockaddr_sa_len=no
27875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27877 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
27878 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
27880 if test $ac_cv_struct_sockaddr_sa_len = yes; then
27882 cat >>confdefs.h <<\_ACEOF
27883 #define HAVE_SA_LEN 1
27892 for ac_func in strftime
27894 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27895 echo "$as_me:$LINENO: checking for $ac_func" >&5
27896 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27897 if eval "test \"\${$as_ac_var+set}\" = set"; then
27898 echo $ECHO_N "(cached) $ECHO_C" >&6
27900 cat >conftest.$ac_ext <<_ACEOF
27903 cat confdefs.h >>conftest.$ac_ext
27904 cat >>conftest.$ac_ext <<_ACEOF
27905 /* end confdefs.h. */
27906 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27907 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27908 #define $ac_func innocuous_$ac_func
27910 /* System header to define __stub macros and hopefully few prototypes,
27911 which can conflict with char $ac_func (); below.
27912 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27913 <limits.h> exists even on freestanding compilers. */
27916 # include <limits.h>
27918 # include <assert.h>
27923 /* Override any gcc2 internal prototype to avoid an error. */
27928 /* We use char because int might match the return type of a gcc2
27929 builtin and then its argument prototype would still apply. */
27931 /* The GNU C library defines this for functions which it implements
27932 to always fail with ENOSYS. Some functions are actually named
27933 something starting with __ and the normal name is an alias. */
27934 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27937 char (*f) () = $ac_func;
27946 return f != $ac_func;
27951 rm -f conftest.$ac_objext conftest$ac_exeext
27952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27953 (eval $ac_link) 2>conftest.er1
27955 grep -v '^ *+' conftest.er1 >conftest.err
27957 cat conftest.err >&5
27958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27959 (exit $ac_status); } &&
27960 { ac_try='test -z "$ac_c_werror_flag"
27961 || test ! -s conftest.err'
27962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27963 (eval $ac_try) 2>&5
27965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27966 (exit $ac_status); }; } &&
27967 { ac_try='test -s conftest$ac_exeext'
27968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27969 (eval $ac_try) 2>&5
27971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27972 (exit $ac_status); }; }; then
27973 eval "$as_ac_var=yes"
27975 echo "$as_me: failed program was:" >&5
27976 sed 's/^/| /' conftest.$ac_ext >&5
27978 eval "$as_ac_var=no"
27980 rm -f conftest.err conftest.$ac_objext \
27981 conftest$ac_exeext conftest.$ac_ext
27983 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27984 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27985 if test `eval echo '${'$as_ac_var'}'` = yes; then
27986 cat >>confdefs.h <<_ACEOF
27987 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27991 # strftime is in -lintl on SCO UNIX.
27992 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
27993 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
27994 if test "${ac_cv_lib_intl_strftime+set}" = set; then
27995 echo $ECHO_N "(cached) $ECHO_C" >&6
27997 ac_check_lib_save_LIBS=$LIBS
27998 LIBS="-lintl $LIBS"
27999 cat >conftest.$ac_ext <<_ACEOF
28002 cat confdefs.h >>conftest.$ac_ext
28003 cat >>conftest.$ac_ext <<_ACEOF
28004 /* end confdefs.h. */
28006 /* Override any gcc2 internal prototype to avoid an error. */
28010 /* We use char because int might match the return type of a gcc2
28011 builtin and then its argument prototype would still apply. */
28021 rm -f conftest.$ac_objext conftest$ac_exeext
28022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28023 (eval $ac_link) 2>conftest.er1
28025 grep -v '^ *+' conftest.er1 >conftest.err
28027 cat conftest.err >&5
28028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28029 (exit $ac_status); } &&
28030 { ac_try='test -z "$ac_c_werror_flag"
28031 || test ! -s conftest.err'
28032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28033 (eval $ac_try) 2>&5
28035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28036 (exit $ac_status); }; } &&
28037 { ac_try='test -s conftest$ac_exeext'
28038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28039 (eval $ac_try) 2>&5
28041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28042 (exit $ac_status); }; }; then
28043 ac_cv_lib_intl_strftime=yes
28045 echo "$as_me: failed program was:" >&5
28046 sed 's/^/| /' conftest.$ac_ext >&5
28048 ac_cv_lib_intl_strftime=no
28050 rm -f conftest.err conftest.$ac_objext \
28051 conftest$ac_exeext conftest.$ac_ext
28052 LIBS=$ac_check_lib_save_LIBS
28054 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
28055 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
28056 if test $ac_cv_lib_intl_strftime = yes; then
28057 cat >>confdefs.h <<\_ACEOF
28058 #define HAVE_STRFTIME 1
28061 LIBS="-lintl $LIBS"
28068 for ac_func in vprintf
28070 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28071 echo "$as_me:$LINENO: checking for $ac_func" >&5
28072 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28073 if eval "test \"\${$as_ac_var+set}\" = set"; then
28074 echo $ECHO_N "(cached) $ECHO_C" >&6
28076 cat >conftest.$ac_ext <<_ACEOF
28079 cat confdefs.h >>conftest.$ac_ext
28080 cat >>conftest.$ac_ext <<_ACEOF
28081 /* end confdefs.h. */
28082 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28083 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28084 #define $ac_func innocuous_$ac_func
28086 /* System header to define __stub macros and hopefully few prototypes,
28087 which can conflict with char $ac_func (); below.
28088 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28089 <limits.h> exists even on freestanding compilers. */
28092 # include <limits.h>
28094 # include <assert.h>
28099 /* Override any gcc2 internal prototype to avoid an error. */
28104 /* We use char because int might match the return type of a gcc2
28105 builtin and then its argument prototype would still apply. */
28107 /* The GNU C library defines this for functions which it implements
28108 to always fail with ENOSYS. Some functions are actually named
28109 something starting with __ and the normal name is an alias. */
28110 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28113 char (*f) () = $ac_func;
28122 return f != $ac_func;
28127 rm -f conftest.$ac_objext conftest$ac_exeext
28128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28129 (eval $ac_link) 2>conftest.er1
28131 grep -v '^ *+' conftest.er1 >conftest.err
28133 cat conftest.err >&5
28134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28135 (exit $ac_status); } &&
28136 { ac_try='test -z "$ac_c_werror_flag"
28137 || test ! -s conftest.err'
28138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28139 (eval $ac_try) 2>&5
28141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28142 (exit $ac_status); }; } &&
28143 { ac_try='test -s conftest$ac_exeext'
28144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28145 (eval $ac_try) 2>&5
28147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28148 (exit $ac_status); }; }; then
28149 eval "$as_ac_var=yes"
28151 echo "$as_me: failed program was:" >&5
28152 sed 's/^/| /' conftest.$ac_ext >&5
28154 eval "$as_ac_var=no"
28156 rm -f conftest.err conftest.$ac_objext \
28157 conftest$ac_exeext conftest.$ac_ext
28159 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28160 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28161 if test `eval echo '${'$as_ac_var'}'` = yes; then
28162 cat >>confdefs.h <<_ACEOF
28163 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28166 echo "$as_me:$LINENO: checking for _doprnt" >&5
28167 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
28168 if test "${ac_cv_func__doprnt+set}" = set; then
28169 echo $ECHO_N "(cached) $ECHO_C" >&6
28171 cat >conftest.$ac_ext <<_ACEOF
28174 cat confdefs.h >>conftest.$ac_ext
28175 cat >>conftest.$ac_ext <<_ACEOF
28176 /* end confdefs.h. */
28177 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
28178 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28179 #define _doprnt innocuous__doprnt
28181 /* System header to define __stub macros and hopefully few prototypes,
28182 which can conflict with char _doprnt (); below.
28183 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28184 <limits.h> exists even on freestanding compilers. */
28187 # include <limits.h>
28189 # include <assert.h>
28194 /* Override any gcc2 internal prototype to avoid an error. */
28199 /* We use char because int might match the return type of a gcc2
28200 builtin and then its argument prototype would still apply. */
28202 /* The GNU C library defines this for functions which it implements
28203 to always fail with ENOSYS. Some functions are actually named
28204 something starting with __ and the normal name is an alias. */
28205 #if defined (__stub__doprnt) || defined (__stub____doprnt)
28208 char (*f) () = _doprnt;
28217 return f != _doprnt;
28222 rm -f conftest.$ac_objext conftest$ac_exeext
28223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28224 (eval $ac_link) 2>conftest.er1
28226 grep -v '^ *+' conftest.er1 >conftest.err
28228 cat conftest.err >&5
28229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28230 (exit $ac_status); } &&
28231 { ac_try='test -z "$ac_c_werror_flag"
28232 || test ! -s conftest.err'
28233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28234 (eval $ac_try) 2>&5
28236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28237 (exit $ac_status); }; } &&
28238 { ac_try='test -s conftest$ac_exeext'
28239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28240 (eval $ac_try) 2>&5
28242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28243 (exit $ac_status); }; }; then
28244 ac_cv_func__doprnt=yes
28246 echo "$as_me: failed program was:" >&5
28247 sed 's/^/| /' conftest.$ac_ext >&5
28249 ac_cv_func__doprnt=no
28251 rm -f conftest.err conftest.$ac_objext \
28252 conftest$ac_exeext conftest.$ac_ext
28254 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
28255 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
28256 if test $ac_cv_func__doprnt = yes; then
28258 cat >>confdefs.h <<\_ACEOF
28259 #define HAVE_DOPRNT 1
28268 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28269 # for constant arguments. Useless!
28270 echo "$as_me:$LINENO: checking for working alloca.h" >&5
28271 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
28272 if test "${ac_cv_working_alloca_h+set}" = set; then
28273 echo $ECHO_N "(cached) $ECHO_C" >&6
28275 cat >conftest.$ac_ext <<_ACEOF
28278 cat confdefs.h >>conftest.$ac_ext
28279 cat >>conftest.$ac_ext <<_ACEOF
28280 /* end confdefs.h. */
28281 #include <alloca.h>
28285 char *p = (char *) alloca (2 * sizeof (int));
28290 rm -f conftest.$ac_objext conftest$ac_exeext
28291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28292 (eval $ac_link) 2>conftest.er1
28294 grep -v '^ *+' conftest.er1 >conftest.err
28296 cat conftest.err >&5
28297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28298 (exit $ac_status); } &&
28299 { ac_try='test -z "$ac_c_werror_flag"
28300 || test ! -s conftest.err'
28301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28302 (eval $ac_try) 2>&5
28304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28305 (exit $ac_status); }; } &&
28306 { ac_try='test -s conftest$ac_exeext'
28307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28308 (eval $ac_try) 2>&5
28310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28311 (exit $ac_status); }; }; then
28312 ac_cv_working_alloca_h=yes
28314 echo "$as_me: failed program was:" >&5
28315 sed 's/^/| /' conftest.$ac_ext >&5
28317 ac_cv_working_alloca_h=no
28319 rm -f conftest.err conftest.$ac_objext \
28320 conftest$ac_exeext conftest.$ac_ext
28322 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
28323 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
28324 if test $ac_cv_working_alloca_h = yes; then
28326 cat >>confdefs.h <<\_ACEOF
28327 #define HAVE_ALLOCA_H 1
28332 echo "$as_me:$LINENO: checking for alloca" >&5
28333 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
28334 if test "${ac_cv_func_alloca_works+set}" = set; then
28335 echo $ECHO_N "(cached) $ECHO_C" >&6
28337 cat >conftest.$ac_ext <<_ACEOF
28340 cat confdefs.h >>conftest.$ac_ext
28341 cat >>conftest.$ac_ext <<_ACEOF
28342 /* end confdefs.h. */
28344 # define alloca __builtin_alloca
28347 # include <malloc.h>
28348 # define alloca _alloca
28351 # include <alloca.h>
28356 # ifndef alloca /* predefined by HP cc +Olibcalls */
28367 char *p = (char *) alloca (1);
28372 rm -f conftest.$ac_objext conftest$ac_exeext
28373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28374 (eval $ac_link) 2>conftest.er1
28376 grep -v '^ *+' conftest.er1 >conftest.err
28378 cat conftest.err >&5
28379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28380 (exit $ac_status); } &&
28381 { ac_try='test -z "$ac_c_werror_flag"
28382 || test ! -s conftest.err'
28383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28384 (eval $ac_try) 2>&5
28386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28387 (exit $ac_status); }; } &&
28388 { ac_try='test -s conftest$ac_exeext'
28389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28390 (eval $ac_try) 2>&5
28392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28393 (exit $ac_status); }; }; then
28394 ac_cv_func_alloca_works=yes
28396 echo "$as_me: failed program was:" >&5
28397 sed 's/^/| /' conftest.$ac_ext >&5
28399 ac_cv_func_alloca_works=no
28401 rm -f conftest.err conftest.$ac_objext \
28402 conftest$ac_exeext conftest.$ac_ext
28404 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
28405 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
28407 if test $ac_cv_func_alloca_works = yes; then
28409 cat >>confdefs.h <<\_ACEOF
28410 #define HAVE_ALLOCA 1
28414 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28415 # that cause trouble. Some versions do not even contain alloca or
28416 # contain a buggy version. If you still want to use their alloca,
28417 # use ar to extract alloca.o from them instead of compiling alloca.c.
28419 ALLOCA=alloca.$ac_objext
28421 cat >>confdefs.h <<\_ACEOF
28426 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
28427 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
28428 if test "${ac_cv_os_cray+set}" = set; then
28429 echo $ECHO_N "(cached) $ECHO_C" >&6
28431 cat >conftest.$ac_ext <<_ACEOF
28434 cat confdefs.h >>conftest.$ac_ext
28435 cat >>conftest.$ac_ext <<_ACEOF
28436 /* end confdefs.h. */
28437 #if defined(CRAY) && ! defined(CRAY2)
28444 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28445 $EGREP "webecray" >/dev/null 2>&1; then
28453 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
28454 echo "${ECHO_T}$ac_cv_os_cray" >&6
28455 if test $ac_cv_os_cray = yes; then
28456 for ac_func in _getb67 GETB67 getb67; do
28457 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28458 echo "$as_me:$LINENO: checking for $ac_func" >&5
28459 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28460 if eval "test \"\${$as_ac_var+set}\" = set"; then
28461 echo $ECHO_N "(cached) $ECHO_C" >&6
28463 cat >conftest.$ac_ext <<_ACEOF
28466 cat confdefs.h >>conftest.$ac_ext
28467 cat >>conftest.$ac_ext <<_ACEOF
28468 /* end confdefs.h. */
28469 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28470 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28471 #define $ac_func innocuous_$ac_func
28473 /* System header to define __stub macros and hopefully few prototypes,
28474 which can conflict with char $ac_func (); below.
28475 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28476 <limits.h> exists even on freestanding compilers. */
28479 # include <limits.h>
28481 # include <assert.h>
28486 /* Override any gcc2 internal prototype to avoid an error. */
28491 /* We use char because int might match the return type of a gcc2
28492 builtin and then its argument prototype would still apply. */
28494 /* The GNU C library defines this for functions which it implements
28495 to always fail with ENOSYS. Some functions are actually named
28496 something starting with __ and the normal name is an alias. */
28497 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28500 char (*f) () = $ac_func;
28509 return f != $ac_func;
28514 rm -f conftest.$ac_objext conftest$ac_exeext
28515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28516 (eval $ac_link) 2>conftest.er1
28518 grep -v '^ *+' conftest.er1 >conftest.err
28520 cat conftest.err >&5
28521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28522 (exit $ac_status); } &&
28523 { ac_try='test -z "$ac_c_werror_flag"
28524 || test ! -s conftest.err'
28525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28526 (eval $ac_try) 2>&5
28528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28529 (exit $ac_status); }; } &&
28530 { ac_try='test -s conftest$ac_exeext'
28531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28532 (eval $ac_try) 2>&5
28534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28535 (exit $ac_status); }; }; then
28536 eval "$as_ac_var=yes"
28538 echo "$as_me: failed program was:" >&5
28539 sed 's/^/| /' conftest.$ac_ext >&5
28541 eval "$as_ac_var=no"
28543 rm -f conftest.err conftest.$ac_objext \
28544 conftest$ac_exeext conftest.$ac_ext
28546 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28547 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28548 if test `eval echo '${'$as_ac_var'}'` = yes; then
28550 cat >>confdefs.h <<_ACEOF
28551 #define CRAY_STACKSEG_END $ac_func
28560 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28561 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
28562 if test "${ac_cv_c_stack_direction+set}" = set; then
28563 echo $ECHO_N "(cached) $ECHO_C" >&6
28565 if test "$cross_compiling" = yes; then
28566 ac_cv_c_stack_direction=0
28568 cat >conftest.$ac_ext <<_ACEOF
28571 cat confdefs.h >>conftest.$ac_ext
28572 cat >>conftest.$ac_ext <<_ACEOF
28573 /* end confdefs.h. */
28575 find_stack_direction ()
28577 static char *addr = 0;
28582 return find_stack_direction ();
28585 return (&dummy > addr) ? 1 : -1;
28591 exit (find_stack_direction () < 0);
28594 rm -f conftest$ac_exeext
28595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28596 (eval $ac_link) 2>&5
28598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28599 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28601 (eval $ac_try) 2>&5
28603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28604 (exit $ac_status); }; }; then
28605 ac_cv_c_stack_direction=1
28607 echo "$as_me: program exited with status $ac_status" >&5
28608 echo "$as_me: failed program was:" >&5
28609 sed 's/^/| /' conftest.$ac_ext >&5
28611 ( exit $ac_status )
28612 ac_cv_c_stack_direction=-1
28614 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28617 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28618 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
28620 cat >>confdefs.h <<_ACEOF
28621 #define STACK_DIRECTION $ac_cv_c_stack_direction
28627 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
28628 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
28629 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
28630 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
28631 echo $ECHO_N "(cached) $ECHO_C" >&6
28633 ac_check_lib_save_LIBS=$LIBS
28635 cat >conftest.$ac_ext <<_ACEOF
28638 cat confdefs.h >>conftest.$ac_ext
28639 cat >>conftest.$ac_ext <<_ACEOF
28640 /* end confdefs.h. */
28642 /* Override any gcc2 internal prototype to avoid an error. */
28646 /* We use char because int might match the return type of a gcc2
28647 builtin and then its argument prototype would still apply. */
28657 rm -f conftest.$ac_objext conftest$ac_exeext
28658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28659 (eval $ac_link) 2>conftest.er1
28661 grep -v '^ *+' conftest.er1 >conftest.err
28663 cat conftest.err >&5
28664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28665 (exit $ac_status); } &&
28666 { ac_try='test -z "$ac_c_werror_flag"
28667 || test ! -s conftest.err'
28668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28669 (eval $ac_try) 2>&5
28671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28672 (exit $ac_status); }; } &&
28673 { ac_try='test -s conftest$ac_exeext'
28674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28675 (eval $ac_try) 2>&5
28677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28678 (exit $ac_status); }; }; then
28679 ac_cv_lib_sun_getmntent=yes
28681 echo "$as_me: failed program was:" >&5
28682 sed 's/^/| /' conftest.$ac_ext >&5
28684 ac_cv_lib_sun_getmntent=no
28686 rm -f conftest.err conftest.$ac_objext \
28687 conftest$ac_exeext conftest.$ac_ext
28688 LIBS=$ac_check_lib_save_LIBS
28690 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
28691 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
28692 if test $ac_cv_lib_sun_getmntent = yes; then
28695 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
28696 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
28697 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
28698 echo $ECHO_N "(cached) $ECHO_C" >&6
28700 ac_check_lib_save_LIBS=$LIBS
28702 cat >conftest.$ac_ext <<_ACEOF
28705 cat confdefs.h >>conftest.$ac_ext
28706 cat >>conftest.$ac_ext <<_ACEOF
28707 /* end confdefs.h. */
28709 /* Override any gcc2 internal prototype to avoid an error. */
28713 /* We use char because int might match the return type of a gcc2
28714 builtin and then its argument prototype would still apply. */
28724 rm -f conftest.$ac_objext conftest$ac_exeext
28725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28726 (eval $ac_link) 2>conftest.er1
28728 grep -v '^ *+' conftest.er1 >conftest.err
28730 cat conftest.err >&5
28731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28732 (exit $ac_status); } &&
28733 { ac_try='test -z "$ac_c_werror_flag"
28734 || test ! -s conftest.err'
28735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28736 (eval $ac_try) 2>&5
28738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28739 (exit $ac_status); }; } &&
28740 { ac_try='test -s conftest$ac_exeext'
28741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28742 (eval $ac_try) 2>&5
28744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28745 (exit $ac_status); }; }; then
28746 ac_cv_lib_seq_getmntent=yes
28748 echo "$as_me: failed program was:" >&5
28749 sed 's/^/| /' conftest.$ac_ext >&5
28751 ac_cv_lib_seq_getmntent=no
28753 rm -f conftest.err conftest.$ac_objext \
28754 conftest$ac_exeext conftest.$ac_ext
28755 LIBS=$ac_check_lib_save_LIBS
28757 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
28758 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
28759 if test $ac_cv_lib_seq_getmntent = yes; then
28762 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
28763 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
28764 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
28765 echo $ECHO_N "(cached) $ECHO_C" >&6
28767 ac_check_lib_save_LIBS=$LIBS
28769 cat >conftest.$ac_ext <<_ACEOF
28772 cat confdefs.h >>conftest.$ac_ext
28773 cat >>conftest.$ac_ext <<_ACEOF
28774 /* end confdefs.h. */
28776 /* Override any gcc2 internal prototype to avoid an error. */
28780 /* We use char because int might match the return type of a gcc2
28781 builtin and then its argument prototype would still apply. */
28791 rm -f conftest.$ac_objext conftest$ac_exeext
28792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28793 (eval $ac_link) 2>conftest.er1
28795 grep -v '^ *+' conftest.er1 >conftest.err
28797 cat conftest.err >&5
28798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28799 (exit $ac_status); } &&
28800 { ac_try='test -z "$ac_c_werror_flag"
28801 || test ! -s conftest.err'
28802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28803 (eval $ac_try) 2>&5
28805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28806 (exit $ac_status); }; } &&
28807 { ac_try='test -s conftest$ac_exeext'
28808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28809 (eval $ac_try) 2>&5
28811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28812 (exit $ac_status); }; }; then
28813 ac_cv_lib_gen_getmntent=yes
28815 echo "$as_me: failed program was:" >&5
28816 sed 's/^/| /' conftest.$ac_ext >&5
28818 ac_cv_lib_gen_getmntent=no
28820 rm -f conftest.err conftest.$ac_objext \
28821 conftest$ac_exeext conftest.$ac_ext
28822 LIBS=$ac_check_lib_save_LIBS
28824 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
28825 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
28826 if test $ac_cv_lib_gen_getmntent = yes; then
28835 for ac_func in getmntent
28837 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28838 echo "$as_me:$LINENO: checking for $ac_func" >&5
28839 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28840 if eval "test \"\${$as_ac_var+set}\" = set"; then
28841 echo $ECHO_N "(cached) $ECHO_C" >&6
28843 cat >conftest.$ac_ext <<_ACEOF
28846 cat confdefs.h >>conftest.$ac_ext
28847 cat >>conftest.$ac_ext <<_ACEOF
28848 /* end confdefs.h. */
28849 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28850 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28851 #define $ac_func innocuous_$ac_func
28853 /* System header to define __stub macros and hopefully few prototypes,
28854 which can conflict with char $ac_func (); below.
28855 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28856 <limits.h> exists even on freestanding compilers. */
28859 # include <limits.h>
28861 # include <assert.h>
28866 /* Override any gcc2 internal prototype to avoid an error. */
28871 /* We use char because int might match the return type of a gcc2
28872 builtin and then its argument prototype would still apply. */
28874 /* The GNU C library defines this for functions which it implements
28875 to always fail with ENOSYS. Some functions are actually named
28876 something starting with __ and the normal name is an alias. */
28877 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28880 char (*f) () = $ac_func;
28889 return f != $ac_func;
28894 rm -f conftest.$ac_objext conftest$ac_exeext
28895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28896 (eval $ac_link) 2>conftest.er1
28898 grep -v '^ *+' conftest.er1 >conftest.err
28900 cat conftest.err >&5
28901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28902 (exit $ac_status); } &&
28903 { ac_try='test -z "$ac_c_werror_flag"
28904 || test ! -s conftest.err'
28905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28906 (eval $ac_try) 2>&5
28908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28909 (exit $ac_status); }; } &&
28910 { ac_try='test -s conftest$ac_exeext'
28911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28912 (eval $ac_try) 2>&5
28914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28915 (exit $ac_status); }; }; then
28916 eval "$as_ac_var=yes"
28918 echo "$as_me: failed program was:" >&5
28919 sed 's/^/| /' conftest.$ac_ext >&5
28921 eval "$as_ac_var=no"
28923 rm -f conftest.err conftest.$ac_objext \
28924 conftest$ac_exeext conftest.$ac_ext
28926 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28927 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28928 if test `eval echo '${'$as_ac_var'}'` = yes; then
28929 cat >>confdefs.h <<_ACEOF
28930 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28937 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
28938 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
28939 if test "${ac_cv_func_closedir_void+set}" = set; then
28940 echo $ECHO_N "(cached) $ECHO_C" >&6
28942 if test "$cross_compiling" = yes; then
28943 ac_cv_func_closedir_void=yes
28945 cat >conftest.$ac_ext <<_ACEOF
28948 cat confdefs.h >>conftest.$ac_ext
28949 cat >>conftest.$ac_ext <<_ACEOF
28950 /* end confdefs.h. */
28951 $ac_includes_default
28952 #include <$ac_header_dirent>
28953 #ifndef __cplusplus
28960 exit (closedir (opendir (".")) != 0);
28965 rm -f conftest$ac_exeext
28966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28967 (eval $ac_link) 2>&5
28969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28970 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28972 (eval $ac_try) 2>&5
28974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28975 (exit $ac_status); }; }; then
28976 ac_cv_func_closedir_void=no
28978 echo "$as_me: program exited with status $ac_status" >&5
28979 echo "$as_me: failed program was:" >&5
28980 sed 's/^/| /' conftest.$ac_ext >&5
28982 ( exit $ac_status )
28983 ac_cv_func_closedir_void=yes
28985 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28988 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
28989 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
28990 if test $ac_cv_func_closedir_void = yes; then
28992 cat >>confdefs.h <<\_ACEOF
28993 #define CLOSEDIR_VOID 1
28998 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
28999 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
29000 if test "${ac_cv_func_setpgrp_void+set}" = set; then
29001 echo $ECHO_N "(cached) $ECHO_C" >&6
29003 if test "$cross_compiling" = yes; then
29004 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
29005 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
29006 { (exit 1); exit 1; }; }
29008 cat >conftest.$ac_ext <<_ACEOF
29011 cat confdefs.h >>conftest.$ac_ext
29012 cat >>conftest.$ac_ext <<_ACEOF
29013 /* end confdefs.h. */
29015 # include <unistd.h>
29021 /* If this system has a BSD-style setpgrp which takes arguments,
29022 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
29023 exit successfully. */
29024 exit (setpgrp (1,1) == -1 ? 0 : 1);
29029 rm -f conftest$ac_exeext
29030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29031 (eval $ac_link) 2>&5
29033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29034 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29036 (eval $ac_try) 2>&5
29038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29039 (exit $ac_status); }; }; then
29040 ac_cv_func_setpgrp_void=no
29042 echo "$as_me: program exited with status $ac_status" >&5
29043 echo "$as_me: failed program was:" >&5
29044 sed 's/^/| /' conftest.$ac_ext >&5
29046 ( exit $ac_status )
29047 ac_cv_func_setpgrp_void=yes
29049 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29052 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
29053 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
29054 if test $ac_cv_func_setpgrp_void = yes; then
29056 cat >>confdefs.h <<\_ACEOF
29057 #define SETPGRP_VOID 1
29061 # AC_FUNC_FNMATCH dnl use local version
29064 echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
29065 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6
29066 if test "${ac_cv_lib_intl_gettext+set}" = set; then
29067 echo $ECHO_N "(cached) $ECHO_C" >&6
29069 ac_check_lib_save_LIBS=$LIBS
29070 LIBS="-lintl $LIBS"
29071 cat >conftest.$ac_ext <<_ACEOF
29074 cat confdefs.h >>conftest.$ac_ext
29075 cat >>conftest.$ac_ext <<_ACEOF
29076 /* end confdefs.h. */
29078 /* Override any gcc2 internal prototype to avoid an error. */
29082 /* We use char because int might match the return type of a gcc2
29083 builtin and then its argument prototype would still apply. */
29093 rm -f conftest.$ac_objext conftest$ac_exeext
29094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29095 (eval $ac_link) 2>conftest.er1
29097 grep -v '^ *+' conftest.er1 >conftest.err
29099 cat conftest.err >&5
29100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29101 (exit $ac_status); } &&
29102 { ac_try='test -z "$ac_c_werror_flag"
29103 || test ! -s conftest.err'
29104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29105 (eval $ac_try) 2>&5
29107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29108 (exit $ac_status); }; } &&
29109 { ac_try='test -s conftest$ac_exeext'
29110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29111 (eval $ac_try) 2>&5
29113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29114 (exit $ac_status); }; }; then
29115 ac_cv_lib_intl_gettext=yes
29117 echo "$as_me: failed program was:" >&5
29118 sed 's/^/| /' conftest.$ac_ext >&5
29120 ac_cv_lib_intl_gettext=no
29122 rm -f conftest.err conftest.$ac_objext \
29123 conftest$ac_exeext conftest.$ac_ext
29124 LIBS=$ac_check_lib_save_LIBS
29126 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
29127 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6
29128 if test $ac_cv_lib_intl_gettext = yes; then
29129 LIBS="$LIBS -lintl"
29135 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
29136 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
29137 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
29138 echo $ECHO_N "(cached) $ECHO_C" >&6
29140 ac_check_lib_save_LIBS=$LIBS
29142 cat >conftest.$ac_ext <<_ACEOF
29145 cat confdefs.h >>conftest.$ac_ext
29146 cat >>conftest.$ac_ext <<_ACEOF
29147 /* end confdefs.h. */
29149 /* Override any gcc2 internal prototype to avoid an error. */
29153 /* We use char because int might match the return type of a gcc2
29154 builtin and then its argument prototype would still apply. */
29164 rm -f conftest.$ac_objext conftest$ac_exeext
29165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29166 (eval $ac_link) 2>conftest.er1
29168 grep -v '^ *+' conftest.er1 >conftest.err
29170 cat conftest.err >&5
29171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29172 (exit $ac_status); } &&
29173 { ac_try='test -z "$ac_c_werror_flag"
29174 || test ! -s conftest.err'
29175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29176 (eval $ac_try) 2>&5
29178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29179 (exit $ac_status); }; } &&
29180 { ac_try='test -s conftest$ac_exeext'
29181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29182 (eval $ac_try) 2>&5
29184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29185 (exit $ac_status); }; }; then
29186 ac_cv_lib_sun_getpwnam=yes
29188 echo "$as_me: failed program was:" >&5
29189 sed 's/^/| /' conftest.$ac_ext >&5
29191 ac_cv_lib_sun_getpwnam=no
29193 rm -f conftest.err conftest.$ac_objext \
29194 conftest$ac_exeext conftest.$ac_ext
29195 LIBS=$ac_check_lib_save_LIBS
29197 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
29198 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
29199 if test $ac_cv_lib_sun_getpwnam = yes; then
29200 cat >>confdefs.h <<_ACEOF
29201 #define HAVE_LIBSUN 1
29210 for ac_header in zlib.h
29212 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29213 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29214 echo "$as_me:$LINENO: checking for $ac_header" >&5
29215 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29216 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29217 echo $ECHO_N "(cached) $ECHO_C" >&6
29219 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29220 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29222 # Is the header compilable?
29223 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29224 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29225 cat >conftest.$ac_ext <<_ACEOF
29228 cat confdefs.h >>conftest.$ac_ext
29229 cat >>conftest.$ac_ext <<_ACEOF
29230 /* end confdefs.h. */
29231 $ac_includes_default
29232 #include <$ac_header>
29234 rm -f conftest.$ac_objext
29235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29236 (eval $ac_compile) 2>conftest.er1
29238 grep -v '^ *+' conftest.er1 >conftest.err
29240 cat conftest.err >&5
29241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29242 (exit $ac_status); } &&
29243 { ac_try='test -z "$ac_c_werror_flag"
29244 || test ! -s conftest.err'
29245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29246 (eval $ac_try) 2>&5
29248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29249 (exit $ac_status); }; } &&
29250 { ac_try='test -s conftest.$ac_objext'
29251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29252 (eval $ac_try) 2>&5
29254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29255 (exit $ac_status); }; }; then
29256 ac_header_compiler=yes
29258 echo "$as_me: failed program was:" >&5
29259 sed 's/^/| /' conftest.$ac_ext >&5
29261 ac_header_compiler=no
29263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29264 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29265 echo "${ECHO_T}$ac_header_compiler" >&6
29267 # Is the header present?
29268 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29269 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29270 cat >conftest.$ac_ext <<_ACEOF
29273 cat confdefs.h >>conftest.$ac_ext
29274 cat >>conftest.$ac_ext <<_ACEOF
29275 /* end confdefs.h. */
29276 #include <$ac_header>
29278 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29279 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29281 grep -v '^ *+' conftest.er1 >conftest.err
29283 cat conftest.err >&5
29284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29285 (exit $ac_status); } >/dev/null; then
29286 if test -s conftest.err; then
29287 ac_cpp_err=$ac_c_preproc_warn_flag
29288 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29295 if test -z "$ac_cpp_err"; then
29296 ac_header_preproc=yes
29298 echo "$as_me: failed program was:" >&5
29299 sed 's/^/| /' conftest.$ac_ext >&5
29301 ac_header_preproc=no
29303 rm -f conftest.err conftest.$ac_ext
29304 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29305 echo "${ECHO_T}$ac_header_preproc" >&6
29307 # So? What about this header?
29308 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29310 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29311 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29312 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29313 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29314 ac_header_preproc=yes
29317 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29318 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29319 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29320 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29321 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29322 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29323 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29324 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29325 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29326 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29327 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29328 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29331 ## ------------------------------------------ ##
29332 ## Report this to the AC_PACKAGE_NAME lists. ##
29333 ## ------------------------------------------ ##
29336 sed "s/^/$as_me: WARNING: /" >&2
29339 echo "$as_me:$LINENO: checking for $ac_header" >&5
29340 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29341 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29342 echo $ECHO_N "(cached) $ECHO_C" >&6
29344 eval "$as_ac_Header=\$ac_header_preproc"
29346 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29347 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29350 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29351 cat >>confdefs.h <<_ACEOF
29352 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29359 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
29360 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
29361 if test "${ac_cv_lib_z_deflate+set}" = set; then
29362 echo $ECHO_N "(cached) $ECHO_C" >&6
29364 ac_check_lib_save_LIBS=$LIBS
29366 cat >conftest.$ac_ext <<_ACEOF
29369 cat confdefs.h >>conftest.$ac_ext
29370 cat >>conftest.$ac_ext <<_ACEOF
29371 /* end confdefs.h. */
29373 /* Override any gcc2 internal prototype to avoid an error. */
29377 /* We use char because int might match the return type of a gcc2
29378 builtin and then its argument prototype would still apply. */
29388 rm -f conftest.$ac_objext conftest$ac_exeext
29389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29390 (eval $ac_link) 2>conftest.er1
29392 grep -v '^ *+' conftest.er1 >conftest.err
29394 cat conftest.err >&5
29395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29396 (exit $ac_status); } &&
29397 { ac_try='test -z "$ac_c_werror_flag"
29398 || test ! -s conftest.err'
29399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29400 (eval $ac_try) 2>&5
29402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29403 (exit $ac_status); }; } &&
29404 { ac_try='test -s conftest$ac_exeext'
29405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29406 (eval $ac_try) 2>&5
29408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29409 (exit $ac_status); }; }; then
29410 ac_cv_lib_z_deflate=yes
29412 echo "$as_me: failed program was:" >&5
29413 sed 's/^/| /' conftest.$ac_ext >&5
29415 ac_cv_lib_z_deflate=no
29417 rm -f conftest.err conftest.$ac_objext \
29418 conftest$ac_exeext conftest.$ac_ext
29419 LIBS=$ac_check_lib_save_LIBS
29421 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
29422 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
29423 if test $ac_cv_lib_z_deflate = yes; then
29428 if test x$FDLIBS = x-lz; then
29429 cat >>confdefs.h <<\_ACEOF
29430 #define HAVE_LIBZ 1
29437 # Check for ACL libraries
29440 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29441 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
29442 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
29443 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29444 echo $ECHO_N "(cached) $ECHO_C" >&6
29446 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
29447 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
29449 # Is the header compilable?
29450 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
29451 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
29452 cat >conftest.$ac_ext <<_ACEOF
29455 cat confdefs.h >>conftest.$ac_ext
29456 cat >>conftest.$ac_ext <<_ACEOF
29457 /* end confdefs.h. */
29458 $ac_includes_default
29459 #include <sys/acl.h>
29461 rm -f conftest.$ac_objext
29462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29463 (eval $ac_compile) 2>conftest.er1
29465 grep -v '^ *+' conftest.er1 >conftest.err
29467 cat conftest.err >&5
29468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29469 (exit $ac_status); } &&
29470 { ac_try='test -z "$ac_c_werror_flag"
29471 || test ! -s conftest.err'
29472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29473 (eval $ac_try) 2>&5
29475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29476 (exit $ac_status); }; } &&
29477 { ac_try='test -s conftest.$ac_objext'
29478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29479 (eval $ac_try) 2>&5
29481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29482 (exit $ac_status); }; }; then
29483 ac_header_compiler=yes
29485 echo "$as_me: failed program was:" >&5
29486 sed 's/^/| /' conftest.$ac_ext >&5
29488 ac_header_compiler=no
29490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29491 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29492 echo "${ECHO_T}$ac_header_compiler" >&6
29494 # Is the header present?
29495 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
29496 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
29497 cat >conftest.$ac_ext <<_ACEOF
29500 cat confdefs.h >>conftest.$ac_ext
29501 cat >>conftest.$ac_ext <<_ACEOF
29502 /* end confdefs.h. */
29503 #include <sys/acl.h>
29505 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29506 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29508 grep -v '^ *+' conftest.er1 >conftest.err
29510 cat conftest.err >&5
29511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29512 (exit $ac_status); } >/dev/null; then
29513 if test -s conftest.err; then
29514 ac_cpp_err=$ac_c_preproc_warn_flag
29515 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29522 if test -z "$ac_cpp_err"; then
29523 ac_header_preproc=yes
29525 echo "$as_me: failed program was:" >&5
29526 sed 's/^/| /' conftest.$ac_ext >&5
29528 ac_header_preproc=no
29530 rm -f conftest.err conftest.$ac_ext
29531 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29532 echo "${ECHO_T}$ac_header_preproc" >&6
29534 # So? What about this header?
29535 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29537 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
29538 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29539 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
29540 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
29541 ac_header_preproc=yes
29544 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
29545 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
29546 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
29547 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
29548 { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
29549 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
29550 { echo "$as_me:$LINENO: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&5
29551 echo "$as_me: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&2;}
29552 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
29553 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
29554 { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
29555 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
29558 ## ------------------------------------------ ##
29559 ## Report this to the AC_PACKAGE_NAME lists. ##
29560 ## ------------------------------------------ ##
29563 sed "s/^/$as_me: WARNING: /" >&2
29566 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
29567 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
29568 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29569 echo $ECHO_N "(cached) $ECHO_C" >&6
29571 ac_cv_header_sys_acl_h=$ac_header_preproc
29573 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
29574 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
29579 echo "$as_me:$LINENO: checking for acl_get_file" >&5
29580 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6
29581 if test "${ac_cv_func_acl_get_file+set}" = set; then
29582 echo $ECHO_N "(cached) $ECHO_C" >&6
29584 cat >conftest.$ac_ext <<_ACEOF
29587 cat confdefs.h >>conftest.$ac_ext
29588 cat >>conftest.$ac_ext <<_ACEOF
29589 /* end confdefs.h. */
29590 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
29591 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29592 #define acl_get_file innocuous_acl_get_file
29594 /* System header to define __stub macros and hopefully few prototypes,
29595 which can conflict with char acl_get_file (); below.
29596 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29597 <limits.h> exists even on freestanding compilers. */
29600 # include <limits.h>
29602 # include <assert.h>
29605 #undef acl_get_file
29607 /* Override any gcc2 internal prototype to avoid an error. */
29612 /* We use char because int might match the return type of a gcc2
29613 builtin and then its argument prototype would still apply. */
29614 char acl_get_file ();
29615 /* The GNU C library defines this for functions which it implements
29616 to always fail with ENOSYS. Some functions are actually named
29617 something starting with __ and the normal name is an alias. */
29618 #if defined (__stub_acl_get_file) || defined (__stub___acl_get_file)
29621 char (*f) () = acl_get_file;
29630 return f != acl_get_file;
29635 rm -f conftest.$ac_objext conftest$ac_exeext
29636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29637 (eval $ac_link) 2>conftest.er1
29639 grep -v '^ *+' conftest.er1 >conftest.err
29641 cat conftest.err >&5
29642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29643 (exit $ac_status); } &&
29644 { ac_try='test -z "$ac_c_werror_flag"
29645 || test ! -s conftest.err'
29646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29647 (eval $ac_try) 2>&5
29649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29650 (exit $ac_status); }; } &&
29651 { ac_try='test -s conftest$ac_exeext'
29652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29653 (eval $ac_try) 2>&5
29655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29656 (exit $ac_status); }; }; then
29657 ac_cv_func_acl_get_file=yes
29659 echo "$as_me: failed program was:" >&5
29660 sed 's/^/| /' conftest.$ac_ext >&5
29662 ac_cv_func_acl_get_file=no
29664 rm -f conftest.err conftest.$ac_objext \
29665 conftest$ac_exeext conftest.$ac_ext
29667 echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
29668 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6
29669 if test $ac_cv_func_acl_get_file = yes; then
29672 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
29673 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
29674 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
29675 echo $ECHO_N "(cached) $ECHO_C" >&6
29677 ac_check_lib_save_LIBS=$LIBS
29679 cat >conftest.$ac_ext <<_ACEOF
29682 cat confdefs.h >>conftest.$ac_ext
29683 cat >>conftest.$ac_ext <<_ACEOF
29684 /* end confdefs.h. */
29686 /* Override any gcc2 internal prototype to avoid an error. */
29690 /* We use char because int might match the return type of a gcc2
29691 builtin and then its argument prototype would still apply. */
29692 char acl_get_file ();
29701 rm -f conftest.$ac_objext conftest$ac_exeext
29702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29703 (eval $ac_link) 2>conftest.er1
29705 grep -v '^ *+' conftest.er1 >conftest.err
29707 cat conftest.err >&5
29708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29709 (exit $ac_status); } &&
29710 { ac_try='test -z "$ac_c_werror_flag"
29711 || test ! -s conftest.err'
29712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29713 (eval $ac_try) 2>&5
29715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29716 (exit $ac_status); }; } &&
29717 { ac_try='test -s conftest$ac_exeext'
29718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29719 (eval $ac_try) 2>&5
29721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29722 (exit $ac_status); }; }; then
29723 ac_cv_lib_acl_acl_get_file=yes
29725 echo "$as_me: failed program was:" >&5
29726 sed 's/^/| /' conftest.$ac_ext >&5
29728 ac_cv_lib_acl_acl_get_file=no
29730 rm -f conftest.err conftest.$ac_objext \
29731 conftest$ac_exeext conftest.$ac_ext
29732 LIBS=$ac_check_lib_save_LIBS
29734 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
29735 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
29736 if test $ac_cv_lib_acl_acl_get_file = yes; then
29737 have_acl=yes; FDLIBS="-lacl $FDLIBS"
29739 echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
29740 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6
29741 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
29742 echo $ECHO_N "(cached) $ECHO_C" >&6
29744 ac_check_lib_save_LIBS=$LIBS
29746 cat >conftest.$ac_ext <<_ACEOF
29749 cat confdefs.h >>conftest.$ac_ext
29750 cat >>conftest.$ac_ext <<_ACEOF
29751 /* end confdefs.h. */
29753 /* Override any gcc2 internal prototype to avoid an error. */
29757 /* We use char because int might match the return type of a gcc2
29758 builtin and then its argument prototype would still apply. */
29768 rm -f conftest.$ac_objext conftest$ac_exeext
29769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29770 (eval $ac_link) 2>conftest.er1
29772 grep -v '^ *+' conftest.er1 >conftest.err
29774 cat conftest.err >&5
29775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29776 (exit $ac_status); } &&
29777 { ac_try='test -z "$ac_c_werror_flag"
29778 || test ! -s conftest.err'
29779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29780 (eval $ac_try) 2>&5
29782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29783 (exit $ac_status); }; } &&
29784 { ac_try='test -s conftest$ac_exeext'
29785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29786 (eval $ac_try) 2>&5
29788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29789 (exit $ac_status); }; }; then
29790 ac_cv_lib_sec_acltotext=yes
29792 echo "$as_me: failed program was:" >&5
29793 sed 's/^/| /' conftest.$ac_ext >&5
29795 ac_cv_lib_sec_acltotext=no
29797 rm -f conftest.err conftest.$ac_objext \
29798 conftest$ac_exeext conftest.$ac_ext
29799 LIBS=$ac_check_lib_save_LIBS
29801 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
29802 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6
29803 if test $ac_cv_lib_sec_acltotext = yes; then
29804 have_acl=yes; FDLIBS="-lsec $FDLIBS"
29813 if test $have_acl = yes; then
29814 cat >>confdefs.h <<\_ACEOF
29821 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
29822 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
29823 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
29824 echo $ECHO_N "(cached) $ECHO_C" >&6
29826 ac_check_lib_save_LIBS=$LIBS
29827 LIBS="-lpthread $LIBS"
29828 cat >conftest.$ac_ext <<_ACEOF
29831 cat confdefs.h >>conftest.$ac_ext
29832 cat >>conftest.$ac_ext <<_ACEOF
29833 /* end confdefs.h. */
29835 /* Override any gcc2 internal prototype to avoid an error. */
29839 /* We use char because int might match the return type of a gcc2
29840 builtin and then its argument prototype would still apply. */
29841 char pthread_create ();
29850 rm -f conftest.$ac_objext conftest$ac_exeext
29851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29852 (eval $ac_link) 2>conftest.er1
29854 grep -v '^ *+' conftest.er1 >conftest.err
29856 cat conftest.err >&5
29857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29858 (exit $ac_status); } &&
29859 { ac_try='test -z "$ac_c_werror_flag"
29860 || test ! -s conftest.err'
29861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29862 (eval $ac_try) 2>&5
29864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29865 (exit $ac_status); }; } &&
29866 { ac_try='test -s conftest$ac_exeext'
29867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29868 (eval $ac_try) 2>&5
29870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29871 (exit $ac_status); }; }; then
29872 ac_cv_lib_pthread_pthread_create=yes
29874 echo "$as_me: failed program was:" >&5
29875 sed 's/^/| /' conftest.$ac_ext >&5
29877 ac_cv_lib_pthread_pthread_create=no
29879 rm -f conftest.err conftest.$ac_objext \
29880 conftest$ac_exeext conftest.$ac_ext
29881 LIBS=$ac_check_lib_save_LIBS
29883 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
29884 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
29885 if test $ac_cv_lib_pthread_pthread_create = yes; then
29886 PTHREAD_LIB="-lpthread"
29888 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
29889 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
29890 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
29891 echo $ECHO_N "(cached) $ECHO_C" >&6
29893 ac_check_lib_save_LIBS=$LIBS
29894 LIBS="-lpthreads $LIBS"
29895 cat >conftest.$ac_ext <<_ACEOF
29898 cat confdefs.h >>conftest.$ac_ext
29899 cat >>conftest.$ac_ext <<_ACEOF
29900 /* end confdefs.h. */
29902 /* Override any gcc2 internal prototype to avoid an error. */
29906 /* We use char because int might match the return type of a gcc2
29907 builtin and then its argument prototype would still apply. */
29908 char pthread_create ();
29917 rm -f conftest.$ac_objext conftest$ac_exeext
29918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29919 (eval $ac_link) 2>conftest.er1
29921 grep -v '^ *+' conftest.er1 >conftest.err
29923 cat conftest.err >&5
29924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29925 (exit $ac_status); } &&
29926 { ac_try='test -z "$ac_c_werror_flag"
29927 || test ! -s conftest.err'
29928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29929 (eval $ac_try) 2>&5
29931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29932 (exit $ac_status); }; } &&
29933 { ac_try='test -s conftest$ac_exeext'
29934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29935 (eval $ac_try) 2>&5
29937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29938 (exit $ac_status); }; }; then
29939 ac_cv_lib_pthreads_pthread_create=yes
29941 echo "$as_me: failed program was:" >&5
29942 sed 's/^/| /' conftest.$ac_ext >&5
29944 ac_cv_lib_pthreads_pthread_create=no
29946 rm -f conftest.err conftest.$ac_objext \
29947 conftest$ac_exeext conftest.$ac_ext
29948 LIBS=$ac_check_lib_save_LIBS
29950 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
29951 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
29952 if test $ac_cv_lib_pthreads_pthread_create = yes; then
29953 PTHREAD_LIB="-lpthreads"
29955 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
29956 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
29957 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
29958 echo $ECHO_N "(cached) $ECHO_C" >&6
29960 ac_check_lib_save_LIBS=$LIBS
29962 cat >conftest.$ac_ext <<_ACEOF
29965 cat confdefs.h >>conftest.$ac_ext
29966 cat >>conftest.$ac_ext <<_ACEOF
29967 /* end confdefs.h. */
29969 /* Override any gcc2 internal prototype to avoid an error. */
29973 /* We use char because int might match the return type of a gcc2
29974 builtin and then its argument prototype would still apply. */
29975 char pthread_create ();
29984 rm -f conftest.$ac_objext conftest$ac_exeext
29985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29986 (eval $ac_link) 2>conftest.er1
29988 grep -v '^ *+' conftest.er1 >conftest.err
29990 cat conftest.err >&5
29991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29992 (exit $ac_status); } &&
29993 { ac_try='test -z "$ac_c_werror_flag"
29994 || test ! -s conftest.err'
29995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29996 (eval $ac_try) 2>&5
29998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29999 (exit $ac_status); }; } &&
30000 { ac_try='test -s conftest$ac_exeext'
30001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30002 (eval $ac_try) 2>&5
30004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30005 (exit $ac_status); }; }; then
30006 ac_cv_lib_c_r_pthread_create=yes
30008 echo "$as_me: failed program was:" >&5
30009 sed 's/^/| /' conftest.$ac_ext >&5
30011 ac_cv_lib_c_r_pthread_create=no
30013 rm -f conftest.err conftest.$ac_objext \
30014 conftest$ac_exeext conftest.$ac_ext
30015 LIBS=$ac_check_lib_save_LIBS
30017 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
30018 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
30019 if test $ac_cv_lib_c_r_pthread_create = yes; then
30020 PTHREAD_LIB="-lc_r"
30022 echo "$as_me:$LINENO: checking for pthread_create" >&5
30023 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
30024 if test "${ac_cv_func_pthread_create+set}" = set; then
30025 echo $ECHO_N "(cached) $ECHO_C" >&6
30027 cat >conftest.$ac_ext <<_ACEOF
30030 cat confdefs.h >>conftest.$ac_ext
30031 cat >>conftest.$ac_ext <<_ACEOF
30032 /* end confdefs.h. */
30033 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
30034 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30035 #define pthread_create innocuous_pthread_create
30037 /* System header to define __stub macros and hopefully few prototypes,
30038 which can conflict with char pthread_create (); below.
30039 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30040 <limits.h> exists even on freestanding compilers. */
30043 # include <limits.h>
30045 # include <assert.h>
30048 #undef pthread_create
30050 /* Override any gcc2 internal prototype to avoid an error. */
30055 /* We use char because int might match the return type of a gcc2
30056 builtin and then its argument prototype would still apply. */
30057 char pthread_create ();
30058 /* The GNU C library defines this for functions which it implements
30059 to always fail with ENOSYS. Some functions are actually named
30060 something starting with __ and the normal name is an alias. */
30061 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
30064 char (*f) () = pthread_create;
30073 return f != pthread_create;
30078 rm -f conftest.$ac_objext conftest$ac_exeext
30079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30080 (eval $ac_link) 2>conftest.er1
30082 grep -v '^ *+' conftest.er1 >conftest.err
30084 cat conftest.err >&5
30085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30086 (exit $ac_status); } &&
30087 { ac_try='test -z "$ac_c_werror_flag"
30088 || test ! -s conftest.err'
30089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30090 (eval $ac_try) 2>&5
30092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30093 (exit $ac_status); }; } &&
30094 { ac_try='test -s conftest$ac_exeext'
30095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30096 (eval $ac_try) 2>&5
30098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30099 (exit $ac_status); }; }; then
30100 ac_cv_func_pthread_create=yes
30102 echo "$as_me: failed program was:" >&5
30103 sed 's/^/| /' conftest.$ac_ext >&5
30105 ac_cv_func_pthread_create=no
30107 rm -f conftest.err conftest.$ac_objext \
30108 conftest$ac_exeext conftest.$ac_ext
30110 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
30111 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
30124 cat >>confdefs.h <<\_ACEOF
30130 CFLAGS=${CFLAGS--O}
30132 if test x$have_gcc = xyes ; then
30133 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30134 CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30136 LDFLAGS=${LDFLAGS--O}
30137 DB_LIBS="${SQL_LFLAGS}"
30138 CPPFLAGS="$CPPFLAGS"
30166 # Finally we set appropriate distribution specific
30167 # variables and defaults
30169 # PFILES are platform specific files
30170 PFILES="platforms/Makefile"
30174 hostname=`uname -n | cut -d '.' -f 1`
30175 if test x${hostname} = x ; then
30176 hostname="localhost"
30178 case "$DISTNAME" in
30181 PSCMD="ps -e -o pid,comm"
30182 PFILES="${PFILES} \
30183 platforms/aix/Makefile"
30184 TAPEDRIVE="/dev/rmt0.1"
30188 PTHREAD_LIB="-lpthread -lexc"
30189 if test "${CC}" = "gcc" ; then
30196 TAPEDRIVE="/dev/nrmt0"
30199 DISTVER=`uname -a |awk '{print $3}'`
30200 TAPEDRIVE="/dev/nrmt0"
30201 PTHREAD_LIB="-pthread"
30202 CFLAGS="${CFLAGS} -pthread"
30203 PSCMD="ps -ax -o pid,command"
30206 PFILES="${PFILES} \
30207 platforms/bsdi/Makefile \
30208 platforms/bsdi/bacula-fd \
30209 platforms/bsdi/bacula-sd \
30210 platforms/bsdi/bacula-dir"
30211 largefile_support="yes"
30214 DISTVER=`uname -a |awk '{print $3}'`
30215 TAPEDRIVE="/dev/nrst0"
30217 WCFLAGS="-mwindows"
30218 WLDFLAGS="-mwindows"
30222 TAPEDRIVE="/dev/nst0"
30223 PSCMD="ps -e -o pid,command"
30225 PFILES="${PFILES} \
30226 platforms/darwin/Makefile"
30229 DISTVER=`cat /etc/debian_version`
30230 TAPEDRIVE="/dev/nrst0"
30231 PSCMD="ps -e -o pid,command"
30234 DISTVER=`uname -a |awk '{print $3}'`
30235 VER=`echo $DISTVER | cut -c 1`
30236 if test x$VER = x4 ; then
30237 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
30238 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
30242 TAPEDRIVE="/dev/nrsa0"
30243 PSCMD="ps -ax -o pid,command"
30244 PFILES="${PFILES} \
30245 platforms/freebsd/Makefile \
30246 platforms/freebsd/bacula-fd \
30247 platforms/freebsd/bacula-sd \
30248 platforms/freebsd/bacula-dir"
30249 largefile_support="yes"
30252 PSCMD="UNIX95=1; ps -e -o pid,comm"
30253 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
30255 TAPEDRIVE="/dev/rmt/0hnb"
30256 PTHREAD_LIB="-lpthread"
30257 cat >>confdefs.h <<\_ACEOF
30258 #define _INCLUDE_LONGLONG 1
30264 TAPEDRIVE="/dev/rmt/0cbn"
30265 PSCMD="ps -e -o pid,comm"
30266 PFILES="${PFILES} \
30267 platforms/irix/Makefile \
30268 platforms/irix/bacula-fd \
30269 platforms/irix/bacula-sd \
30270 platforms/irix/bacula-dir"
30273 DISTVER=`uname -a |awk '{print $3}'`
30276 TAPEDRIVE="/dev/nrst0"
30277 PSCMD="ps -ax -o pid,command"
30278 PTHREAD_LIB="-pthread"
30279 CFLAGS="${CFLAGS} -pthread"
30282 DISTVER=`uname -a |awk '{print $3}'`
30285 TAPEDRIVE="/dev/nrst0"
30286 PSCMD="ps -ax -o pid,command"
30287 PTHREAD_LIB="-pthread"
30288 CFLAGS="${CFLAGS} -pthread"
30289 PFILES="${PFILES} \
30290 platforms/openbsd/Makefile \
30291 platforms/openbsd/bacula-fd \
30292 platforms/openbsd/bacula-sd \
30293 platforms/openbsd/bacula-dir"
30296 if test -f /etc/whitebox-release ; then
30297 f=/etc/whitebox-release
30299 f=/etc/redhat-release
30301 if test `cat $f | grep release |\
30302 cut -f 3 -d ' '`x = "Enterprise"x ; then
30303 DISTVER="Enterprise "`cat $f | grep release |\
30306 DISTVER=`cat /etc/redhat-release | grep release |\
30309 TAPEDRIVE="/dev/nst0"
30310 PSCMD="ps -e -o pid,command"
30311 PFILES="${PFILES} \
30312 platforms/redhat/Makefile \
30313 platforms/redhat/bacula-fd \
30314 platforms/redhat/bacula-sd \
30315 platforms/redhat/bacula-dir \
30316 platforms/redhat/bacula.spec \
30320 DISTVER=`cat /etc/mandrake-release | grep release |\
30322 TAPEDRIVE="/dev/nst0"
30323 PSCMD="ps -e -o pid,command"
30324 PFILES="${PFILES} \
30325 platforms/mandrake/Makefile \
30326 platforms/mandrake/bacula-fd \
30327 platforms/mandrake/bacula-sd \
30328 platforms/mandrake/bacula-dir \
30329 platforms/mandrake/bacula.spec \
30333 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
30334 TAPEDRIVE="/dev/nst0"
30335 PSCMD="ps -e -o pid,command"
30336 PFILES="${PFILES} \
30337 platforms/gentoo/Makefile \
30338 platforms/gentoo/bacula-init \
30339 platforms/gentoo/bacula-fd \
30340 platforms/gentoo/bacula-sd \
30341 platforms/gentoo/bacula-dir"
30344 DISTVER=`cat /etc/slackware-version`
30345 TAPEDRIVE="/dev/nst0"
30346 PSCMD="ps -e -o pid,command"
30347 PFILES="${PFILES} \
30348 platforms/slackware/Makefile \
30349 platforms/slackware/rc.bacula-fd \
30350 platforms/slackware/rc.bacula-sd \
30351 platforms/slackware/rc.bacula-dir\
30352 platforms/slackware/functions.bacula"
30356 TAPEDRIVE="/dev/rmt/0cbn"
30357 PSCMD="ps -e -o pid,comm"
30358 PFILES="${PFILES} \
30359 platforms/solaris/Makefile \
30360 platforms/solaris/bacula-fd \
30361 platforms/solaris/bacula-sd \
30362 platforms/solaris/bacula-dir"
30363 if test x$DISTVER = x5.6 ; then
30364 cat >>confdefs.h <<\_ACEOF
30365 #define HAVE_OLD_SOCKOPT 1
30369 LIBS="$LIBS -lresolv"
30372 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
30374 TAPEDRIVE="/dev/nst0"
30375 PSCMD="ps -e -o pid,command"
30376 PFILES="${PFILES} \
30377 platforms/suse/Makefile \
30378 platforms/suse/bacula-fd \
30379 platforms/suse/bacula-sd \
30380 platforms/suse/bacula-dir \
30381 platforms/suse/bacula \
30382 platforms/suse/bacula.spec"
30387 TAPEDRIVE="/dev/nst0"
30388 PSCMD="ps -e -o pid,command"
30389 PFILES="${PFILES} \
30390 platforms/suse/Makefile \
30391 platforms/suse/bacula-fd \
30392 platforms/suse/bacula-sd \
30393 platforms/suse/bacula-dir"
30397 TAPEDRIVE="/dev/nst0"
30400 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
30406 LIBS="$PTHREAD_LIB $LIBS"
30408 cat >>confdefs.h <<_ACEOF
30412 cat >>confdefs.h <<_ACEOF
30423 MCOMMON=./autoconf/Make.common
30426 if test "x${subsysdir}" = "x${sbindir}" ; then
30429 echo "You have set both --sbindir and --with-subsys-dir"
30430 echo " equal to: ${subsysdir} "
30431 echo "This is not permitted. Please reconfigure."
30433 echo "Aborting configuration ..."
30439 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"
30440 ac_config_commands="$ac_config_commands default"
30441 cat >confcache <<\_ACEOF
30442 # This file is a shell script that caches the results of configure
30443 # tests run on this system so they can be shared between configure
30444 # scripts and configure runs, see configure's option --config-cache.
30445 # It is not useful on other systems. If it contains results you don't
30446 # want to keep, you may remove or edit it.
30448 # config.status only pays attention to the cache file if you give it
30449 # the --recheck option to rerun configure.
30451 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30452 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30453 # following values.
30457 # The following way of writing the cache mishandles newlines in values,
30458 # but we know of no workaround that is simple, portable, and efficient.
30459 # So, don't put newlines in cache variables' values.
30460 # Ultrix sh set writes to stderr and can't be redirected directly,
30461 # and sets the high bit in the cache file unless we assign to the vars.
30464 case `(ac_space=' '; set | grep ac_space) 2>&1` in
30466 # `set' does not quote correctly, so add quotes (double-quote
30467 # substitution turns \\\\ into \\, and sed turns \\ into \).
30470 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30473 # `set' quotes correctly as required by POSIX, so do not add quotes.
30475 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
30482 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30484 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30486 if diff $cache_file confcache >/dev/null 2>&1; then :; else
30487 if test -w $cache_file; then
30488 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
30489 cat confcache >$cache_file
30491 echo "not updating unwritable cache $cache_file"
30496 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30497 # Let make expand exec_prefix.
30498 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30500 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30501 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30502 # trailing colons and then remove the whole line if VPATH becomes empty
30503 # (actually we leave an empty line to preserve line numbers).
30504 if test "x$srcdir" = x.; then
30505 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30506 s/:*\$(srcdir):*/:/;
30507 s/:*\${srcdir}:*/:/;
30509 s/^\([^=]*=[ ]*\):*/\1/;
30515 DEFS=-DHAVE_CONFIG_H
30519 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30520 # 1. Remove the extension, and $U if already installed.
30521 ac_i=`echo "$ac_i" |
30522 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
30524 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
30525 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
30527 LIBOBJS=$ac_libobjs
30529 LTLIBOBJS=$ac_ltlibobjs
30533 : ${CONFIG_STATUS=./config.status}
30534 ac_clean_files_save=$ac_clean_files
30535 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30536 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30537 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30538 cat >$CONFIG_STATUS <<_ACEOF
30540 # Generated by $as_me.
30541 # Run this file to recreate the current configuration.
30542 # Compiler output produced by configure, useful for debugging
30543 # configure, is in config.log if it exists.
30546 ac_cs_recheck=false
30548 SHELL=\${CONFIG_SHELL-$SHELL}
30551 cat >>$CONFIG_STATUS <<\_ACEOF
30552 ## --------------------- ##
30553 ## M4sh Initialization. ##
30554 ## --------------------- ##
30556 # Be Bourne compatible
30557 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30560 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30561 # is contrary to our usage. Disable this feature.
30562 alias -g '${1+"$@"}'='"$@"'
30563 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30566 DUALCASE=1; export DUALCASE # for MKS sh
30568 # Support unset when possible.
30569 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30576 # Work around bugs in pre-3.0 UWIN ksh.
30577 $as_unset ENV MAIL MAILPATH
30584 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30585 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30586 LC_TELEPHONE LC_TIME
30588 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30589 eval $as_var=C; export $as_var
30595 # Required to use basename.
30596 if expr a : '\(a\)' >/dev/null 2>&1; then
30602 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
30603 as_basename=basename
30609 # Name of the executable.
30610 as_me=`$as_basename "$0" ||
30611 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30612 X"$0" : 'X\(//\)$' \| \
30613 X"$0" : 'X\(/\)$' \| \
30614 . : '\(.\)' 2>/dev/null ||
30616 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
30617 /^X\/\(\/\/\)$/{ s//\1/; q; }
30618 /^X\/\(\/\).*/{ s//\1/; q; }
30622 # PATH needs CR, and LINENO needs CR and PATH.
30623 # Avoid depending upon Character Ranges.
30624 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30625 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30626 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30627 as_cr_digits='0123456789'
30628 as_cr_alnum=$as_cr_Letters$as_cr_digits
30630 # The user is always right.
30631 if test "${PATH_SEPARATOR+set}" != set; then
30632 echo "#! /bin/sh" >conf$$.sh
30633 echo "exit 0" >>conf$$.sh
30635 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30644 as_lineno_1=$LINENO
30645 as_lineno_2=$LINENO
30646 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30647 test "x$as_lineno_1" != "x$as_lineno_2" &&
30648 test "x$as_lineno_3" = "x$as_lineno_2" || {
30649 # Find who we are. Look in the path if we contain no path at all
30652 *[\\/]* ) as_myself=$0 ;;
30653 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30654 for as_dir in $PATH
30657 test -z "$as_dir" && as_dir=.
30658 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30663 # We did not find ourselves, most probably we were run as `sh COMMAND'
30664 # in which case we are not to be found in the path.
30665 if test "x$as_myself" = x; then
30668 if test ! -f "$as_myself"; then
30669 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
30670 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
30671 { (exit 1); exit 1; }; }
30673 case $CONFIG_SHELL in
30675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30676 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
30679 test -z "$as_dir" && as_dir=.
30680 for as_base in sh bash ksh sh5; do
30683 if ("$as_dir/$as_base" -c '
30684 as_lineno_1=$LINENO
30685 as_lineno_2=$LINENO
30686 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30687 test "x$as_lineno_1" != "x$as_lineno_2" &&
30688 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
30689 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
30690 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
30691 CONFIG_SHELL=$as_dir/$as_base
30692 export CONFIG_SHELL
30693 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
30701 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30702 # uniformly replaced by the line number. The first 'sed' inserts a
30703 # line-number line before each line; the second 'sed' does the real
30704 # work. The second script uses 'N' to pair each line-number line
30705 # with the numbered line, and appends trailing '-' during
30706 # substitution so that $LINENO is not a special case at line end.
30707 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30708 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
30709 sed '=' <$as_myself |
30714 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
30717 s,^['$as_cr_digits']*\n,,
30718 ' >$as_me.lineno &&
30719 chmod +x $as_me.lineno ||
30720 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
30721 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
30722 { (exit 1); exit 1; }; }
30724 # Don't try to exec as it changes $[0], causing all sort of problems
30725 # (the dirname of $[0] is not the place where we might find the
30726 # original and so on. Autoconf is especially sensible to this).
30728 # Exit status is that of the last command.
30733 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
30734 *c*,-n*) ECHO_N= ECHO_C='
30736 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
30737 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
30740 if expr a : '\(a\)' >/dev/null 2>&1; then
30746 rm -f conf$$ conf$$.exe conf$$.file
30748 if ln -s conf$$.file conf$$ 2>/dev/null; then
30749 # We could just check for DJGPP; but this test a) works b) is more generic
30750 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
30751 if test -f conf$$.exe; then
30752 # Don't use ln at all; we don't have any links
30757 elif ln conf$$.file conf$$ 2>/dev/null; then
30762 rm -f conf$$ conf$$.exe conf$$.file
30764 if mkdir -p . 2>/dev/null; then
30767 test -d ./-p && rmdir ./-p
30771 as_executable_p="test -f"
30773 # Sed expression to map a string onto a valid CPP name.
30774 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30776 # Sed expression to map a string onto a valid variable name.
30777 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30781 # We need space, tab and new line, in precisely that order.
30791 # Open the log real soon, to keep \$[0] and so on meaningful, and to
30792 # report actual input values of CONFIG_FILES etc. instead of their
30793 # values after options handling. Logging --version etc. is OK.
30797 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30798 ## Running $as_me. ##
30803 This file was extended by $as_me, which was
30804 generated by GNU Autoconf 2.59. Invocation command line was
30806 CONFIG_FILES = $CONFIG_FILES
30807 CONFIG_HEADERS = $CONFIG_HEADERS
30808 CONFIG_LINKS = $CONFIG_LINKS
30809 CONFIG_COMMANDS = $CONFIG_COMMANDS
30813 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
30817 # Files that config.status was made for.
30818 if test -n "$ac_config_files"; then
30819 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
30822 if test -n "$ac_config_headers"; then
30823 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
30826 if test -n "$ac_config_links"; then
30827 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
30830 if test -n "$ac_config_commands"; then
30831 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
30834 cat >>$CONFIG_STATUS <<\_ACEOF
30837 \`$as_me' instantiates files from templates according to the
30838 current configuration.
30840 Usage: $0 [OPTIONS] [FILE]...
30842 -h, --help print this help, then exit
30843 -V, --version print version number, then exit
30844 -q, --quiet do not print progress messages
30845 -d, --debug don't remove temporary files
30846 --recheck update $as_me by reconfiguring in the same conditions
30847 --file=FILE[:TEMPLATE]
30848 instantiate the configuration file FILE
30849 --header=FILE[:TEMPLATE]
30850 instantiate the configuration header FILE
30852 Configuration files:
30855 Configuration headers:
30858 Configuration commands:
30861 Report bugs to <bug-autoconf@gnu.org>."
30864 cat >>$CONFIG_STATUS <<_ACEOF
30867 configured by $0, generated by GNU Autoconf 2.59,
30868 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
30870 Copyright (C) 2003 Free Software Foundation, Inc.
30871 This config.status script is free software; the Free Software Foundation
30872 gives unlimited permission to copy, distribute and modify it."
30877 cat >>$CONFIG_STATUS <<\_ACEOF
30878 # If no file are specified by the user, then we need to provide default
30879 # value. By we need to know if files were specified by the user.
30885 ac_option=`expr "x$1" : 'x\([^=]*\)='`
30886 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
30894 *) # This is not an option, so the user has probably given explicit
30897 ac_need_defaults=false;;
30901 # Handling of the options.
30903 cat >>$CONFIG_STATUS <<\_ACEOF
30904 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30906 --version | --vers* | -V )
30907 echo "$ac_cs_version"; exit 0 ;;
30909 # Conflict between --help and --header
30910 { { echo "$as_me:$LINENO: error: ambiguous option: $1
30911 Try \`$0 --help' for more information." >&5
30912 echo "$as_me: error: ambiguous option: $1
30913 Try \`$0 --help' for more information." >&2;}
30914 { (exit 1); exit 1; }; };;
30915 --help | --hel | -h )
30916 echo "$ac_cs_usage"; exit 0 ;;
30917 --debug | --d* | -d )
30919 --file | --fil | --fi | --f )
30921 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30922 ac_need_defaults=false;;
30923 --header | --heade | --head | --hea )
30925 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30926 ac_need_defaults=false;;
30927 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30928 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30931 # This is an error.
30932 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
30933 Try \`$0 --help' for more information." >&5
30934 echo "$as_me: error: unrecognized option: $1
30935 Try \`$0 --help' for more information." >&2;}
30936 { (exit 1); exit 1; }; } ;;
30938 *) ac_config_targets="$ac_config_targets $1" ;;
30944 ac_configure_extra_args=
30946 if $ac_cs_silent; then
30948 ac_configure_extra_args="$ac_configure_extra_args --silent"
30952 cat >>$CONFIG_STATUS <<_ACEOF
30953 if \$ac_cs_recheck; then
30954 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30955 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30960 cat >>$CONFIG_STATUS <<_ACEOF
30962 # INIT-COMMANDS section.
30965 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
30966 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
30968 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
30969 # Capture the value of LINGUAS because we need it to compute CATALOGS.
30970 LINGUAS="${LINGUAS-%UNSET%}"
30977 cat >>$CONFIG_STATUS <<\_ACEOF
30978 for ac_config_target in $ac_config_targets
30980 case "$ac_config_target" in
30981 # Handling of arguments.
30982 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
30983 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30984 "manpages/Makefile" ) CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
30985 "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
30986 "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
30987 "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
30988 "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
30989 "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
30990 "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
30991 "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
30992 "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
30993 "scripts/bacula-ctl-dir" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
30994 "scripts/bacula-ctl-fd" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
30995 "scripts/bacula-ctl-sd" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
30996 "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
30997 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
30998 "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
30999 "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
31000 "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
31001 "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
31002 "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
31003 "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
31004 "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
31005 "scripts/bgnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
31006 "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
31007 "scripts/disk-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
31008 "scripts/dvd-handler" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
31009 "scripts/dvd-simulator" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
31010 "scripts/bacula-tray-monitor.desktop" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
31011 "scripts/logwatch/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
31012 "scripts/logwatch/logfile.bacula.conf" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
31013 "scripts/wxconsole.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
31014 "scripts/wxconsole.desktop.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
31015 "scripts/wxconsole.desktop.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
31016 "scripts/bat.desktop" ) CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
31017 "scripts/bat.desktop.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
31018 "scripts/bat.desktop.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
31019 "scripts/bat.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
31020 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
31021 "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
31022 "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
31023 "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
31024 "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
31025 "src/gnome2-console/bgnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/bgnome-console.conf" ;;
31026 "src/qt-console/bat.conf" ) CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
31027 "src/qt-console/bat.pro" ) CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
31028 "src/qt-console/install_conf_file" ) CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
31029 "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
31030 "src/wx-console/bwx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
31031 "src/tray-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
31032 "src/tray-monitor/tray-monitor.conf" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
31033 "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
31034 "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
31035 "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
31036 "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
31037 "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
31038 "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
31039 "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
31040 "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
31041 "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
31042 "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
31043 "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
31044 "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
31045 "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
31046 "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
31047 "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
31048 "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
31049 "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
31050 "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
31051 "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
31052 "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
31053 "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
31054 "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
31055 "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
31056 "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
31057 "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
31058 "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
31059 "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
31060 "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
31061 "src/cats/create_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
31062 "src/cats/update_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
31063 "src/cats/make_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
31064 "src/cats/grant_sqlite3_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
31065 "src/cats/drop_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
31066 "src/cats/drop_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
31067 "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
31068 "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
31069 "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
31070 "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
31071 "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
31072 "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
31073 "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
31074 "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
31075 "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
31076 "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
31077 "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
31078 "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
31079 "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
31080 "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
31081 "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
31082 "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
31083 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
31084 "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
31085 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
31086 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
31087 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
31088 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31089 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31090 { (exit 1); exit 1; }; };;
31094 # If the user did not use the arguments to specify the items to instantiate,
31095 # then the envvar interface is used. Set only those that are not.
31096 # We use the long form for the default assignment because of an extremely
31097 # bizarre bug on SunOS 4.1.3.
31098 if $ac_need_defaults; then
31099 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31100 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31101 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31104 # Have a temporary directory for convenience. Make it in the build tree
31105 # simply because there is no reason to put it here, and in addition,
31106 # creating and moving files from /tmp can sometimes cause problems.
31107 # Create a temporary directory, and hook for its removal unless debugging.
31110 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
31111 trap '{ (exit 1); exit 1; }' 1 2 13 15
31114 # Create a (secure) tmp directory for tmp files.
31117 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
31118 test -n "$tmp" && test -d "$tmp"
31121 tmp=./confstat$$-$RANDOM
31122 (umask 077 && mkdir $tmp)
31125 echo "$me: cannot create a temporary directory in ." >&2
31126 { (exit 1); exit 1; }
31131 cat >>$CONFIG_STATUS <<_ACEOF
31134 # CONFIG_FILES section.
31137 # No need to generate the scripts if there are no CONFIG_FILES.
31138 # This happens for instance when ./config.status config.h
31139 if test -n "\$CONFIG_FILES"; then
31140 # Protect against being on the right side of a sed subst in config.status.
31141 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
31142 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
31143 s,@SHELL@,$SHELL,;t t
31144 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
31145 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
31146 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
31147 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
31148 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
31149 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
31150 s,@exec_prefix@,$exec_prefix,;t t
31151 s,@prefix@,$prefix,;t t
31152 s,@program_transform_name@,$program_transform_name,;t t
31153 s,@bindir@,$bindir,;t t
31154 s,@sbindir@,$sbindir,;t t
31155 s,@libexecdir@,$libexecdir,;t t
31156 s,@datadir@,$datadir,;t t
31157 s,@sysconfdir@,$sysconfdir,;t t
31158 s,@sharedstatedir@,$sharedstatedir,;t t
31159 s,@localstatedir@,$localstatedir,;t t
31160 s,@libdir@,$libdir,;t t
31161 s,@includedir@,$includedir,;t t
31162 s,@oldincludedir@,$oldincludedir,;t t
31163 s,@infodir@,$infodir,;t t
31164 s,@mandir@,$mandir,;t t
31165 s,@build_alias@,$build_alias,;t t
31166 s,@host_alias@,$host_alias,;t t
31167 s,@target_alias@,$target_alias,;t t
31168 s,@DEFS@,$DEFS,;t t
31169 s,@ECHO_C@,$ECHO_C,;t t
31170 s,@ECHO_N@,$ECHO_N,;t t
31171 s,@ECHO_T@,$ECHO_T,;t t
31172 s,@LIBS@,$LIBS,;t t
31173 s,@BUILD_DIR@,$BUILD_DIR,;t t
31174 s,@TOP_DIR@,$TOP_DIR,;t t
31175 s,@TRUEPRG@,$TRUEPRG,;t t
31176 s,@FALSEPRG@,$FALSEPRG,;t t
31177 s,@VERSION@,$VERSION,;t t
31178 s,@DATE@,$DATE,;t t
31179 s,@LSMDATE@,$LSMDATE,;t t
31181 s,@CFLAGS@,$CFLAGS,;t t
31182 s,@LDFLAGS@,$LDFLAGS,;t t
31183 s,@CPPFLAGS@,$CPPFLAGS,;t t
31184 s,@ac_ct_CC@,$ac_ct_CC,;t t
31185 s,@EXEEXT@,$EXEEXT,;t t
31186 s,@OBJEXT@,$OBJEXT,;t t
31188 s,@CXXFLAGS@,$CXXFLAGS,;t t
31189 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
31191 s,@EGREP@,$EGREP,;t t
31192 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
31193 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
31194 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
31195 s,@RANLIB@,$RANLIB,;t t
31196 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
31201 s,@ECHO@,$ECHO,;t t
31205 s,@OPENSSL@,$OPENSSL,;t t
31208 s,@MKISOFS@,$MKISOFS,;t t
31209 s,@PYTHON@,$PYTHON,;t t
31210 s,@GROWISOFS@,$GROWISOFS,;t t
31211 s,@DVDRWMEDIAINFO@,$DVDRWMEDIAINFO,;t t
31212 s,@DVDRWFORMAT@,$DVDRWFORMAT,;t t
31213 s,@PKGCONFIG@,$PKGCONFIG,;t t
31214 s,@WXCONFIG@,$WXCONFIG,;t t
31215 s,@WXFLAGS@,$WXFLAGS,;t t
31216 s,@CDRECORD@,$CDRECORD,;t t
31217 s,@PIDOF@,$PIDOF,;t t
31219 s,@ARFLAGS@,$ARFLAGS,;t t
31220 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
31221 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
31222 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
31223 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
31224 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
31225 s,@build@,$build,;t t
31226 s,@build_cpu@,$build_cpu,;t t
31227 s,@build_vendor@,$build_vendor,;t t
31228 s,@build_os@,$build_os,;t t
31229 s,@host@,$host,;t t
31230 s,@host_cpu@,$host_cpu,;t t
31231 s,@host_vendor@,$host_vendor,;t t
31232 s,@host_os@,$host_os,;t t
31233 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
31234 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
31235 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
31236 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
31237 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
31238 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
31239 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
31240 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
31241 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
31242 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
31243 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
31244 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
31245 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
31246 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
31247 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
31248 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
31249 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
31250 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
31251 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
31252 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
31253 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
31254 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
31255 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
31256 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
31257 s,@SET_MAKE@,$SET_MAKE,;t t
31258 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
31259 s,@USE_NLS@,$USE_NLS,;t t
31260 s,@MSGFMT@,$MSGFMT,;t t
31261 s,@GMSGFMT@,$GMSGFMT,;t t
31262 s,@XGETTEXT@,$XGETTEXT,;t t
31263 s,@MSGMERGE@,$MSGMERGE,;t t
31264 s,@INTL_MACOSX_LIBS@,$INTL_MACOSX_LIBS,;t t
31265 s,@LIBICONV@,$LIBICONV,;t t
31266 s,@LTLIBICONV@,$LTLIBICONV,;t t
31267 s,@INTLLIBS@,$INTLLIBS,;t t
31268 s,@LIBINTL@,$LIBINTL,;t t
31269 s,@LTLIBINTL@,$LTLIBINTL,;t t
31270 s,@POSUB@,$POSUB,;t t
31271 s,@GLIBC2@,$GLIBC2,;t t
31272 s,@ALLOCA@,$ALLOCA,;t t
31273 s,@GLIBC21@,$GLIBC21,;t t
31274 s,@HAVE_POSIX_PRINTF@,$HAVE_POSIX_PRINTF,;t t
31275 s,@HAVE_ASPRINTF@,$HAVE_ASPRINTF,;t t
31276 s,@HAVE_SNPRINTF@,$HAVE_SNPRINTF,;t t
31277 s,@HAVE_WPRINTF@,$HAVE_WPRINTF,;t t
31278 s,@INTLBISON@,$INTLBISON,;t t
31279 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
31280 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
31281 s,@CATOBJEXT@,$CATOBJEXT,;t t
31282 s,@DATADIRNAME@,$DATADIRNAME,;t t
31283 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
31284 s,@GENCAT@,$GENCAT,;t t
31285 s,@INTLOBJS@,$INTLOBJS,;t t
31286 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
31287 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
31288 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
31289 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
31290 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
31291 s,@GNOME_DIR@,$GNOME_DIR,;t t
31292 s,@BAT_DIR@,$BAT_DIR,;t t
31293 s,@QWT_INC@,$QWT_INC,;t t
31294 s,@QWT_LDFLAGS@,$QWT_LDFLAGS,;t t
31295 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
31296 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
31297 s,@WX_DIR@,$WX_DIR,;t t
31298 s,@TRAY_MONITOR_CPPFLAGS@,$TRAY_MONITOR_CPPFLAGS,;t t
31299 s,@TRAY_MONITOR_LDFLAGS@,$TRAY_MONITOR_LDFLAGS,;t t
31300 s,@TRAY_MONITOR_DIR@,$TRAY_MONITOR_DIR,;t t
31301 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
31302 s,@STATIC_FD@,$STATIC_FD,;t t
31303 s,@STATIC_SD@,$STATIC_SD,;t t
31304 s,@STATIC_DIR@,$STATIC_DIR,;t t
31305 s,@STATIC_CONS@,$STATIC_CONS,;t t
31306 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
31307 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
31308 s,@ALL_DIRS@,$ALL_DIRS,;t t
31309 s,@DIRD_DIR@,$DIRD_DIR,;t t
31310 s,@DIR_TOOLS@,$DIR_TOOLS,;t t
31311 s,@STORED_DIR@,$STORED_DIR,;t t
31312 s,@CONS_INC@,$CONS_INC,;t t
31313 s,@CONS_OBJ@,$CONS_OBJ,;t t
31314 s,@CONS_SRC@,$CONS_SRC,;t t
31315 s,@CONS_LIBS@,$CONS_LIBS,;t t
31316 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
31317 s,@READLINE_SRC@,$READLINE_SRC,;t t
31318 s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t
31319 s,@PYTHON_INCDIR@,$PYTHON_INCDIR,;t t
31320 s,@OPENSSL_LIBS@,$OPENSSL_LIBS,;t t
31321 s,@OPENSSL_INC@,$OPENSSL_INC,;t t
31322 s,@working_dir@,$working_dir,;t t
31323 s,@scriptdir@,$scriptdir,;t t
31324 s,@dump_email@,$dump_email,;t t
31325 s,@job_email@,$job_email,;t t
31326 s,@smtp_host@,$smtp_host,;t t
31327 s,@piddir@,$piddir,;t t
31328 s,@subsysdir@,$subsysdir,;t t
31329 s,@baseport@,$baseport,;t t
31330 s,@dir_port@,$dir_port,;t t
31331 s,@fd_port@,$fd_port,;t t
31332 s,@sd_port@,$sd_port,;t t
31333 s,@dir_password@,$dir_password,;t t
31334 s,@fd_password@,$fd_password,;t t
31335 s,@sd_password@,$sd_password,;t t
31336 s,@mon_dir_password@,$mon_dir_password,;t t
31337 s,@mon_fd_password@,$mon_fd_password,;t t
31338 s,@mon_sd_password@,$mon_sd_password,;t t
31339 s,@db_name@,$db_name,;t t
31340 s,@db_user@,$db_user,;t t
31341 s,@dir_user@,$dir_user,;t t
31342 s,@dir_group@,$dir_group,;t t
31343 s,@sd_user@,$sd_user,;t t
31344 s,@sd_group@,$sd_group,;t t
31345 s,@fd_user@,$fd_user,;t t
31346 s,@fd_group@,$fd_group,;t t
31347 s,@SBINPERM@,$SBINPERM,;t t
31348 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
31349 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
31350 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
31351 s,@cats@,$cats,;t t
31352 s,@DB_TYPE@,$DB_TYPE,;t t
31353 s,@GETCONF@,$GETCONF,;t t
31354 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
31355 s,@X_CFLAGS@,$X_CFLAGS,;t t
31356 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
31357 s,@X_LIBS@,$X_LIBS,;t t
31358 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
31359 s,@LIBOBJS@,$LIBOBJS,;t t
31360 s,@FDLIBS@,$FDLIBS,;t t
31361 s,@DEBUG@,$DEBUG,;t t
31362 s,@DINCLUDE@,$DINCLUDE,;t t
31363 s,@DLIB@,$DLIB,;t t
31364 s,@DB_LIBS@,$DB_LIBS,;t t
31365 s,@WCFLAGS@,$WCFLAGS,;t t
31366 s,@WLDFLAGS@,$WLDFLAGS,;t t
31367 s,@WRAPLIBS@,$WRAPLIBS,;t t
31368 s,@OBJLIST@,$OBJLIST,;t t
31369 s,@hostname@,$hostname,;t t
31370 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
31371 s,@PSCMD@,$PSCMD,;t t
31372 s,@WIN32@,$WIN32,;t t
31373 s,@MACOSX@,$MACOSX,;t t
31374 s,@DISTNAME@,$DISTNAME,;t t
31375 s,@DISTVER@,$DISTVER,;t t
31376 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
31377 /@MCOMMON@/r $MCOMMON
31383 cat >>$CONFIG_STATUS <<\_ACEOF
31384 # Split the substitutions into bite-sized pieces for seds with
31385 # small command number limits, like on Digital OSF/1 and HP-UX.
31386 ac_max_sed_lines=48
31387 ac_sed_frag=1 # Number of current file.
31388 ac_beg=1 # First line for current file.
31389 ac_end=$ac_max_sed_lines # Line after last line for current file.
31392 while $ac_more_lines; do
31393 if test $ac_beg -gt 1; then
31394 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31396 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31398 if test ! -s $tmp/subs.frag; then
31399 ac_more_lines=false
31401 # The purpose of the label and of the branching condition is to
31402 # speed up the sed processing (if there are no `@' at all, there
31403 # is no need to browse any of the substitutions).
31404 # These are the two extra sed commands mentioned above.
31406 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
31407 if test -z "$ac_sed_cmds"; then
31408 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
31410 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
31412 ac_sed_frag=`expr $ac_sed_frag + 1`
31414 ac_end=`expr $ac_end + $ac_max_sed_lines`
31417 if test -z "$ac_sed_cmds"; then
31420 fi # test -n "$CONFIG_FILES"
31423 cat >>$CONFIG_STATUS <<\_ACEOF
31424 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
31425 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31427 - | *:- | *:-:* ) # input from stdin
31429 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31430 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31431 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31432 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31433 * ) ac_file_in=$ac_file.in ;;
31436 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
31437 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31438 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31439 X"$ac_file" : 'X\(//\)[^/]' \| \
31440 X"$ac_file" : 'X\(//\)$' \| \
31441 X"$ac_file" : 'X\(/\)' \| \
31442 . : '\(.\)' 2>/dev/null ||
31444 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31445 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31446 /^X\(\/\/\)$/{ s//\1/; q; }
31447 /^X\(\/\).*/{ s//\1/; q; }
31449 { if $as_mkdir_p; then
31454 while test ! -d "$as_dir"; do
31455 as_dirs="$as_dir $as_dirs"
31456 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31457 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31458 X"$as_dir" : 'X\(//\)[^/]' \| \
31459 X"$as_dir" : 'X\(//\)$' \| \
31460 X"$as_dir" : 'X\(/\)' \| \
31461 . : '\(.\)' 2>/dev/null ||
31463 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31464 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31465 /^X\(\/\/\)$/{ s//\1/; q; }
31466 /^X\(\/\).*/{ s//\1/; q; }
31469 test ! -n "$as_dirs" || mkdir $as_dirs
31470 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31471 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31472 { (exit 1); exit 1; }; }; }
31476 if test "$ac_dir" != .; then
31477 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31478 # A "../" for each directory in $ac_dir_suffix.
31479 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31481 ac_dir_suffix= ac_top_builddir=
31485 .) # No --srcdir option. We are building in place.
31487 if test -z "$ac_top_builddir"; then
31490 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31492 [\\/]* | ?:[\\/]* ) # Absolute path.
31493 ac_srcdir=$srcdir$ac_dir_suffix;
31494 ac_top_srcdir=$srcdir ;;
31495 *) # Relative path.
31496 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31497 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31500 # Do not use `cd foo && pwd` to compute absolute paths, because
31501 # the directories may not exist.
31503 .) ac_abs_builddir="$ac_dir";;
31506 .) ac_abs_builddir=`pwd`;;
31507 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31508 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31511 case $ac_abs_builddir in
31512 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31514 case ${ac_top_builddir}. in
31515 .) ac_abs_top_builddir=$ac_abs_builddir;;
31516 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31517 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31520 case $ac_abs_builddir in
31521 .) ac_abs_srcdir=$ac_srcdir;;
31524 .) ac_abs_srcdir=$ac_abs_builddir;;
31525 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31526 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31529 case $ac_abs_builddir in
31530 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31532 case $ac_top_srcdir in
31533 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31534 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31535 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31541 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31542 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
31545 if test x"$ac_file" != x-; then
31546 { echo "$as_me:$LINENO: creating $ac_file" >&5
31547 echo "$as_me: creating $ac_file" >&6;}
31550 # Let's still pretend it is `configure' which instantiates (i.e., don't
31551 # use $as_me), people would be surprised to read:
31552 # /* config.h. Generated by config.status. */
31553 if test x"$ac_file" = x-; then
31556 configure_input="$ac_file. "
31558 configure_input=$configure_input"Generated from `echo $ac_file_in |
31559 sed 's,.*/,,'` by configure."
31561 # First look for the input files in the build tree, otherwise in the
31563 ac_file_inputs=`IFS=:
31564 for f in $ac_file_in; do
31566 -) echo $tmp/stdin ;;
31568 # Absolute (can't be DOS-style, as IFS=:)
31569 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31570 echo "$as_me: error: cannot find input file: $f" >&2;}
31571 { (exit 1); exit 1; }; }
31574 if test -f "$f"; then
31577 elif test -f "$srcdir/$f"; then
31582 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31583 echo "$as_me: error: cannot find input file: $f" >&2;}
31584 { (exit 1); exit 1; }; }
31587 done` || { (exit 1); exit 1; }
31589 cat >>$CONFIG_STATUS <<_ACEOF
31593 cat >>$CONFIG_STATUS <<\_ACEOF
31595 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31596 s,@configure_input@,$configure_input,;t t
31597 s,@srcdir@,$ac_srcdir,;t t
31598 s,@abs_srcdir@,$ac_abs_srcdir,;t t
31599 s,@top_srcdir@,$ac_top_srcdir,;t t
31600 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31601 s,@builddir@,$ac_builddir,;t t
31602 s,@abs_builddir@,$ac_abs_builddir,;t t
31603 s,@top_builddir@,$ac_top_builddir,;t t
31604 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31605 s,@INSTALL@,$ac_INSTALL,;t t
31606 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31608 if test x"$ac_file" != x-; then
31609 mv $tmp/out $ac_file
31617 cat >>$CONFIG_STATUS <<\_ACEOF
31620 # CONFIG_HEADER section.
31623 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31624 # NAME is the cpp macro being defined and VALUE is the value it is being given.
31626 # ac_d sets the value in "#define NAME VALUE" lines.
31627 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
31628 ac_dB='[ ].*$,\1#\2'
31631 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
31632 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
31633 ac_uB='$,\1#\2define\3'
31637 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31638 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31640 - | *:- | *:-:* ) # input from stdin
31642 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31643 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31644 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31645 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31646 * ) ac_file_in=$ac_file.in ;;
31649 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31650 echo "$as_me: creating $ac_file" >&6;}
31652 # First look for the input files in the build tree, otherwise in the
31654 ac_file_inputs=`IFS=:
31655 for f in $ac_file_in; do
31657 -) echo $tmp/stdin ;;
31659 # Absolute (can't be DOS-style, as IFS=:)
31660 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31661 echo "$as_me: error: cannot find input file: $f" >&2;}
31662 { (exit 1); exit 1; }; }
31663 # Do quote $f, to prevent DOS paths from being IFS'd.
31666 if test -f "$f"; then
31669 elif test -f "$srcdir/$f"; then
31674 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31675 echo "$as_me: error: cannot find input file: $f" >&2;}
31676 { (exit 1); exit 1; }; }
31679 done` || { (exit 1); exit 1; }
31680 # Remove the trailing spaces.
31681 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
31685 # Transform confdefs.h into two sed scripts, `conftest.defines' and
31686 # `conftest.undefs', that substitutes the proper values into
31687 # config.h.in to produce config.h. The first handles `#define'
31688 # templates, and the second `#undef' templates.
31689 # And first: Protect against being on the right side of a sed subst in
31690 # config.status. Protect against being in an unquoted here document
31691 # in config.status.
31692 rm -f conftest.defines conftest.undefs
31693 # Using a here document instead of a string reduces the quoting nightmare.
31694 # Putting comments in sed scripts is not portable.
31696 # `end' is used to avoid that the second main sed command (meant for
31697 # 0-ary CPP macros) applies to n-ary macro definitions.
31698 # See the Autoconf documentation for `clear'.
31699 cat >confdef2sed.sed <<\_ACEOF
31704 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
31706 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
31709 # If some macros were called several times there might be several times
31710 # the same #defines, which is useless. Nevertheless, we may not want to
31711 # sort them, since we want the *last* AC-DEFINE to be honored.
31712 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31713 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31714 rm -f confdef2sed.sed
31716 # This sed command replaces #undef with comments. This is necessary, for
31717 # example, in the case of _POSIX_SOURCE, which is predefined and required
31718 # on some systems where configure will not decide to define it.
31719 cat >>conftest.undefs <<\_ACEOF
31720 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
31723 # Break up conftest.defines because some shells have a limit on the size
31724 # of here documents, and old seds have small limits too (100 cmds).
31725 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
31726 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
31727 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31728 echo ' :' >>$CONFIG_STATUS
31729 rm -f conftest.tail
31730 while grep . conftest.defines >/dev/null
31732 # Write a limited-size here document to $tmp/defines.sed.
31733 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31734 # Speed up: don't consider the non `#define' lines.
31735 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
31736 # Work around the forget-to-reset-the-flag bug.
31737 echo 't clr' >>$CONFIG_STATUS
31738 echo ': clr' >>$CONFIG_STATUS
31739 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
31741 sed -f $tmp/defines.sed $tmp/in >$tmp/out
31743 mv $tmp/out $tmp/in
31745 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
31746 rm -f conftest.defines
31747 mv conftest.tail conftest.defines
31749 rm -f conftest.defines
31750 echo ' fi # grep' >>$CONFIG_STATUS
31751 echo >>$CONFIG_STATUS
31753 # Break up conftest.undefs because some shells have a limit on the size
31754 # of here documents, and old seds have small limits too (100 cmds).
31755 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
31756 rm -f conftest.tail
31757 while grep . conftest.undefs >/dev/null
31759 # Write a limited-size here document to $tmp/undefs.sed.
31760 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
31761 # Speed up: don't consider the non `#undef'
31762 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
31763 # Work around the forget-to-reset-the-flag bug.
31764 echo 't clr' >>$CONFIG_STATUS
31765 echo ': clr' >>$CONFIG_STATUS
31766 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
31768 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
31770 mv $tmp/out $tmp/in
31772 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
31773 rm -f conftest.undefs
31774 mv conftest.tail conftest.undefs
31776 rm -f conftest.undefs
31778 cat >>$CONFIG_STATUS <<\_ACEOF
31779 # Let's still pretend it is `configure' which instantiates (i.e., don't
31780 # use $as_me), people would be surprised to read:
31781 # /* config.h. Generated by config.status. */
31782 if test x"$ac_file" = x-; then
31783 echo "/* Generated by configure. */" >$tmp/config.h
31785 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
31787 cat $tmp/in >>$tmp/config.h
31789 if test x"$ac_file" != x-; then
31790 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
31791 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31792 echo "$as_me: $ac_file is unchanged" >&6;}
31794 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31795 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31796 X"$ac_file" : 'X\(//\)[^/]' \| \
31797 X"$ac_file" : 'X\(//\)$' \| \
31798 X"$ac_file" : 'X\(/\)' \| \
31799 . : '\(.\)' 2>/dev/null ||
31801 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31802 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31803 /^X\(\/\/\)$/{ s//\1/; q; }
31804 /^X\(\/\).*/{ s//\1/; q; }
31806 { if $as_mkdir_p; then
31811 while test ! -d "$as_dir"; do
31812 as_dirs="$as_dir $as_dirs"
31813 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31814 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31815 X"$as_dir" : 'X\(//\)[^/]' \| \
31816 X"$as_dir" : 'X\(//\)$' \| \
31817 X"$as_dir" : 'X\(/\)' \| \
31818 . : '\(.\)' 2>/dev/null ||
31820 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31821 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31822 /^X\(\/\/\)$/{ s//\1/; q; }
31823 /^X\(\/\).*/{ s//\1/; q; }
31826 test ! -n "$as_dirs" || mkdir $as_dirs
31827 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31828 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31829 { (exit 1); exit 1; }; }; }
31832 mv $tmp/config.h $ac_file
31836 rm -f $tmp/config.h
31840 cat >>$CONFIG_STATUS <<\_ACEOF
31843 # CONFIG_COMMANDS section.
31845 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
31846 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
31847 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
31848 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
31849 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31850 X"$ac_dest" : 'X\(//\)[^/]' \| \
31851 X"$ac_dest" : 'X\(//\)$' \| \
31852 X"$ac_dest" : 'X\(/\)' \| \
31853 . : '\(.\)' 2>/dev/null ||
31855 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31856 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31857 /^X\(\/\/\)$/{ s//\1/; q; }
31858 /^X\(\/\).*/{ s//\1/; q; }
31860 { if $as_mkdir_p; then
31865 while test ! -d "$as_dir"; do
31866 as_dirs="$as_dir $as_dirs"
31867 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31868 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31869 X"$as_dir" : 'X\(//\)[^/]' \| \
31870 X"$as_dir" : 'X\(//\)$' \| \
31871 X"$as_dir" : 'X\(/\)' \| \
31872 . : '\(.\)' 2>/dev/null ||
31874 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31875 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31876 /^X\(\/\/\)$/{ s//\1/; q; }
31877 /^X\(\/\).*/{ s//\1/; q; }
31880 test ! -n "$as_dirs" || mkdir $as_dirs
31881 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31882 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31883 { (exit 1); exit 1; }; }; }
31887 if test "$ac_dir" != .; then
31888 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31889 # A "../" for each directory in $ac_dir_suffix.
31890 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31892 ac_dir_suffix= ac_top_builddir=
31896 .) # No --srcdir option. We are building in place.
31898 if test -z "$ac_top_builddir"; then
31901 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31903 [\\/]* | ?:[\\/]* ) # Absolute path.
31904 ac_srcdir=$srcdir$ac_dir_suffix;
31905 ac_top_srcdir=$srcdir ;;
31906 *) # Relative path.
31907 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31908 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31911 # Do not use `cd foo && pwd` to compute absolute paths, because
31912 # the directories may not exist.
31914 .) ac_abs_builddir="$ac_dir";;
31917 .) ac_abs_builddir=`pwd`;;
31918 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31919 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31922 case $ac_abs_builddir in
31923 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31925 case ${ac_top_builddir}. in
31926 .) ac_abs_top_builddir=$ac_abs_builddir;;
31927 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31928 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31931 case $ac_abs_builddir in
31932 .) ac_abs_srcdir=$ac_srcdir;;
31935 .) ac_abs_srcdir=$ac_abs_builddir;;
31936 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31937 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31940 case $ac_abs_builddir in
31941 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31943 case $ac_top_srcdir in
31944 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31945 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31946 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31951 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
31952 echo "$as_me: executing $ac_dest commands" >&6;}
31955 for ac_file in $CONFIG_FILES; do
31956 # Support "outfile[:infile[:infile...]]"
31958 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
31960 # PO directories have a Makefile.in generated from Makefile.in.in.
31961 case "$ac_file" in */Makefile.in)
31962 # Adjust a relative srcdir.
31963 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
31964 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
31965 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
31966 # In autoconf-2.13 it is called $ac_given_srcdir.
31967 # In autoconf-2.50 it is called $srcdir.
31968 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
31969 case "$ac_given_srcdir" in
31970 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
31971 /*) top_srcdir="$ac_given_srcdir" ;;
31972 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
31974 # Treat a directory as a PO directory if and only if it has a
31975 # POTFILES.in file. This allows packages to have multiple PO
31976 # directories under different names or in different locations.
31977 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
31978 rm -f "$ac_dir/POTFILES"
31979 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
31980 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
31981 POMAKEFILEDEPS="POTFILES.in"
31982 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
31983 # on $ac_dir but don't depend on user-specified configuration
31985 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
31986 # The LINGUAS file contains the set of available languages.
31987 if test -n "$OBSOLETE_ALL_LINGUAS"; then
31988 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
31990 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
31991 # Hide the ALL_LINGUAS assigment from automake.
31992 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
31993 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
31995 # The set of available languages was given in configure.in.
31996 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
31999 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
32000 # Compute UPDATEPOFILES
32001 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
32002 # Compute DUMMYPOFILES
32003 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
32005 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
32006 case "$ac_given_srcdir" in
32008 *) srcdirpre='$(srcdir)/' ;;
32014 for lang in $ALL_LINGUAS; do
32015 POFILES="$POFILES $srcdirpre$lang.po"
32016 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
32017 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
32018 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
32020 # CATALOGS depends on both $ac_dir and the user's LINGUAS
32021 # environment variable.
32023 if test -n "$ALL_LINGUAS"; then
32024 for presentlang in $ALL_LINGUAS; do
32026 if test "%UNSET%" != "$LINGUAS"; then
32027 desiredlanguages="$LINGUAS"
32029 desiredlanguages="$ALL_LINGUAS"
32031 for desiredlang in $desiredlanguages; do
32032 # Use the presentlang catalog if desiredlang is
32033 # a. equal to presentlang, or
32034 # b. a variant of presentlang (because in this case,
32035 # presentlang can be used as a fallback for messages
32036 # which are not translated in the desiredlang catalog).
32037 case "$desiredlang" in
32038 "$presentlang"*) useit=yes;;
32041 if test $useit = yes; then
32042 INST_LINGUAS="$INST_LINGUAS $presentlang"
32047 if test -n "$INST_LINGUAS"; then
32048 for lang in $INST_LINGUAS; do
32049 CATALOGS="$CATALOGS $lang.gmo"
32052 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
32053 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"
32054 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
32055 if test -f "$f"; then
32057 *.orig | *.bak | *~) ;;
32058 *) cat "$f" >> "$ac_dir/Makefile" ;;
32072 cat >>$CONFIG_STATUS <<\_ACEOF
32074 { (exit 0); exit 0; }
32076 chmod +x $CONFIG_STATUS
32077 ac_clean_files=$ac_clean_files_save
32080 # configure is writing to config.log, and then calls config.status.
32081 # config.status does its own redirection, appending to config.log.
32082 # Unfortunately, on DOS this fails, as config.log is still kept open
32083 # by configure, so config.status won't be able to write to it; its
32084 # output is simply discarded. So we exec the FD to /dev/null,
32085 # effectively closing config.log, so it can be properly (re)opened and
32086 # appended to by config.status. When coming back to configure, we
32087 # need to make the FD available again.
32088 if test "$no_create" != yes; then
32090 ac_config_status_args=
32091 test "$silent" = yes &&
32092 ac_config_status_args="$ac_config_status_args --quiet"
32094 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32096 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32097 # would make configure fail if this is the last instruction.
32098 $ac_cs_success || { (exit 1); exit 1; }
32102 if test "${support_bat}" = "yes" ; then
32104 chmod 755 install_conf_file build-depkgs-qt-console
32105 echo "Creating bat Makefile"
32110 echo "Doing make of dependencies"
32111 ${MAKE:-make} depend
32114 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
32115 chmod 755 dvd-handler dvd-simulator
32116 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
32121 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
32122 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
32124 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
32125 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
32127 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
32128 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
32130 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
32131 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
32133 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
32134 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
32136 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
32137 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
32139 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
32140 chmod 755 $c/sqlite
32143 chmod 755 src/win32/build-depkgs-mingw32
32147 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
32148 largefile_support="yes"
32152 # A whole lot of hand springs to get the compiler version.
32153 # This is because gcc changed the output in version 3.0
32155 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32156 if test "x${CCVERSION}" = "x" ; then
32157 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32159 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32160 if test x"${CXXVERSION}" = x ; then
32161 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32164 if test "x${subsysdir}" = "x${sbindir}" ; then
32167 echo "You have set --sbindir and --with-subsys-dir"
32168 echo " both equal to: ${subsysdir} "
32169 echo " This is not permitted. Please reconfigure."
32171 echo "Aborting configuration ..."
32177 if test "x${db_type}" = "xInternal" ; then
32180 echo "You have not specified either --enable-client-only or one of the"
32181 echo " supported databases: MySQL, PostgreSQL, SQLite3 or SQLite."
32182 echo " This is not permitted. Please reconfigure."
32184 echo "Aborting the configuration ..."
32191 Configuration on `date`:
32193 Host: $host -- ${DISTNAME} ${DISTVER}
32194 Bacula version: ${VERSION} (${DATE})
32195 Source code location: ${srcdir}
32196 Install binaries: ${sbindir}
32197 Install config files: ${sysconfdir}
32198 Scripts directory: ${scriptdir}
32199 Working directory: ${working_dir}
32200 PID directory: ${piddir}
32201 Subsys directory: ${subsysdir}
32202 Man directory: ${mandir}
32203 Data directory: ${datadir}
32204 C Compiler: ${CC} ${CCVERSION}
32205 C++ Compiler: ${CXX} ${CXXVERSION}
32206 Compiler flags: ${WCFLAGS} ${CFLAGS}
32207 Linker flags: ${WLDFLAGS} ${LDFLAGS}
32209 Statically Linked Tools: ${support_static_tools}
32210 Statically Linked FD: ${support_static_fd}
32211 Statically Linked SD: ${support_static_sd}
32212 Statically Linked DIR: ${support_static_dir}
32213 Statically Linked CONS: ${support_static_cons}
32214 Database type: ${db_type}
32215 Database lib: ${DB_LIBS}
32216 Database name: ${db_name}
32217 Database user: ${db_user}
32219 Job Output Email: ${job_email}
32220 Traceback Email: ${dump_email}
32221 SMTP Host Address: ${smtp_host}
32223 Director Port: ${dir_port}
32224 File daemon Port: ${fd_port}
32225 Storage daemon Port: ${sd_port}
32227 Director User: ${dir_user}
32228 Director Group: ${dir_group}
32229 Storage Daemon User: ${sd_user}
32230 Storage DaemonGroup: ${sd_group}
32231 File Daemon User: ${fd_user}
32232 File Daemon Group: ${fd_group}
32234 SQL binaries Directory ${SQL_BINDIR}
32236 Large file support: $largefile_support
32237 Bacula conio support: ${got_conio} ${CONS_LIBS}
32238 readline support: ${got_readline} ${PRTREADLINE_SRC}
32239 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
32240 TLS support: ${support_tls}
32241 Encryption support: ${support_crypto}
32242 ZLIB support: ${have_zlib}
32243 enable-smartalloc: ${support_smartalloc}
32244 bat support: ${support_bat} ${QWT_LDFLAGS}
32245 enable-gnome: ${support_gnome} ${gnome_version}
32246 enable-bwx-console: ${support_wx_console} ${wx_version}
32247 enable-tray-monitor: ${support_tray_monitor}
32248 client-only: ${build_client_only}
32249 build-dird: ${build_dird}
32250 build-stored: ${build_stored}
32251 ACL support: ${have_acl}
32252 Python support: ${support_python} ${PYTHON_LIBS}
32253 Batch insert enabled: ${support_batch_insert}