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=":"
1533 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1534 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1535 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1536 echo "configuring for bacula $VERSION ($DATE)"
1541 ac_cpp='$CPP $CPPFLAGS'
1542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1545 if test -n "$ac_tool_prefix"; then
1546 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1547 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1548 echo "$as_me:$LINENO: checking for $ac_word" >&5
1549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1550 if test "${ac_cv_prog_CC+set}" = set; then
1551 echo $ECHO_N "(cached) $ECHO_C" >&6
1553 if test -n "$CC"; then
1554 ac_cv_prog_CC="$CC" # Let the user override the test.
1556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1560 test -z "$as_dir" && as_dir=.
1561 for ac_exec_ext in '' $ac_executable_extensions; do
1562 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1563 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1573 if test -n "$CC"; then
1574 echo "$as_me:$LINENO: result: $CC" >&5
1575 echo "${ECHO_T}$CC" >&6
1577 echo "$as_me:$LINENO: result: no" >&5
1578 echo "${ECHO_T}no" >&6
1582 if test -z "$ac_cv_prog_CC"; then
1584 # Extract the first word of "gcc", so it can be a program name with args.
1585 set dummy gcc; ac_word=$2
1586 echo "$as_me:$LINENO: checking for $ac_word" >&5
1587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1588 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1589 echo $ECHO_N "(cached) $ECHO_C" >&6
1591 if test -n "$ac_ct_CC"; then
1592 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1598 test -z "$as_dir" && as_dir=.
1599 for ac_exec_ext in '' $ac_executable_extensions; do
1600 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1601 ac_cv_prog_ac_ct_CC="gcc"
1602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1610 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1611 if test -n "$ac_ct_CC"; then
1612 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1613 echo "${ECHO_T}$ac_ct_CC" >&6
1615 echo "$as_me:$LINENO: result: no" >&5
1616 echo "${ECHO_T}no" >&6
1624 if test -z "$CC"; then
1625 if test -n "$ac_tool_prefix"; then
1626 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1627 set dummy ${ac_tool_prefix}cc; ac_word=$2
1628 echo "$as_me:$LINENO: checking for $ac_word" >&5
1629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1630 if test "${ac_cv_prog_CC+set}" = set; then
1631 echo $ECHO_N "(cached) $ECHO_C" >&6
1633 if test -n "$CC"; then
1634 ac_cv_prog_CC="$CC" # Let the user override the test.
1636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1640 test -z "$as_dir" && as_dir=.
1641 for ac_exec_ext in '' $ac_executable_extensions; do
1642 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1643 ac_cv_prog_CC="${ac_tool_prefix}cc"
1644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1653 if test -n "$CC"; then
1654 echo "$as_me:$LINENO: result: $CC" >&5
1655 echo "${ECHO_T}$CC" >&6
1657 echo "$as_me:$LINENO: result: no" >&5
1658 echo "${ECHO_T}no" >&6
1662 if test -z "$ac_cv_prog_CC"; then
1664 # Extract the first word of "cc", so it can be a program name with args.
1665 set dummy cc; ac_word=$2
1666 echo "$as_me:$LINENO: checking for $ac_word" >&5
1667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1668 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1669 echo $ECHO_N "(cached) $ECHO_C" >&6
1671 if test -n "$ac_ct_CC"; then
1672 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1678 test -z "$as_dir" && as_dir=.
1679 for ac_exec_ext in '' $ac_executable_extensions; do
1680 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1681 ac_cv_prog_ac_ct_CC="cc"
1682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1690 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1691 if test -n "$ac_ct_CC"; then
1692 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1693 echo "${ECHO_T}$ac_ct_CC" >&6
1695 echo "$as_me:$LINENO: result: no" >&5
1696 echo "${ECHO_T}no" >&6
1705 if test -z "$CC"; then
1706 # Extract the first word of "cc", so it can be a program name with args.
1707 set dummy cc; ac_word=$2
1708 echo "$as_me:$LINENO: checking for $ac_word" >&5
1709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1710 if test "${ac_cv_prog_CC+set}" = set; then
1711 echo $ECHO_N "(cached) $ECHO_C" >&6
1713 if test -n "$CC"; then
1714 ac_cv_prog_CC="$CC" # Let the user override the test.
1717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1721 test -z "$as_dir" && as_dir=.
1722 for ac_exec_ext in '' $ac_executable_extensions; do
1723 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1724 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1725 ac_prog_rejected=yes
1729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1735 if test $ac_prog_rejected = yes; then
1736 # We found a bogon in the path, so make sure we never use it.
1737 set dummy $ac_cv_prog_CC
1739 if test $# != 0; then
1740 # We chose a different compiler from the bogus one.
1741 # However, it has the same basename, so the bogon will be chosen
1742 # first if we set CC to just the basename; use the full file name.
1744 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1750 if test -n "$CC"; then
1751 echo "$as_me:$LINENO: result: $CC" >&5
1752 echo "${ECHO_T}$CC" >&6
1754 echo "$as_me:$LINENO: result: no" >&5
1755 echo "${ECHO_T}no" >&6
1759 if test -z "$CC"; then
1760 if test -n "$ac_tool_prefix"; then
1763 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1764 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1765 echo "$as_me:$LINENO: checking for $ac_word" >&5
1766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1767 if test "${ac_cv_prog_CC+set}" = set; then
1768 echo $ECHO_N "(cached) $ECHO_C" >&6
1770 if test -n "$CC"; then
1771 ac_cv_prog_CC="$CC" # Let the user override the test.
1773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1777 test -z "$as_dir" && as_dir=.
1778 for ac_exec_ext in '' $ac_executable_extensions; do
1779 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1780 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1790 if test -n "$CC"; then
1791 echo "$as_me:$LINENO: result: $CC" >&5
1792 echo "${ECHO_T}$CC" >&6
1794 echo "$as_me:$LINENO: result: no" >&5
1795 echo "${ECHO_T}no" >&6
1798 test -n "$CC" && break
1801 if test -z "$CC"; then
1805 # Extract the first word of "$ac_prog", so it can be a program name with args.
1806 set dummy $ac_prog; ac_word=$2
1807 echo "$as_me:$LINENO: checking for $ac_word" >&5
1808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1809 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1810 echo $ECHO_N "(cached) $ECHO_C" >&6
1812 if test -n "$ac_ct_CC"; then
1813 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1819 test -z "$as_dir" && as_dir=.
1820 for ac_exec_ext in '' $ac_executable_extensions; do
1821 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1822 ac_cv_prog_ac_ct_CC="$ac_prog"
1823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1831 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1832 if test -n "$ac_ct_CC"; then
1833 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1834 echo "${ECHO_T}$ac_ct_CC" >&6
1836 echo "$as_me:$LINENO: result: no" >&5
1837 echo "${ECHO_T}no" >&6
1840 test -n "$ac_ct_CC" && break
1849 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1850 See \`config.log' for more details." >&5
1851 echo "$as_me: error: no acceptable C compiler found in \$PATH
1852 See \`config.log' for more details." >&2;}
1853 { (exit 1); exit 1; }; }
1855 # Provide some information about the compiler.
1856 echo "$as_me:$LINENO:" \
1857 "checking for C compiler version" >&5
1858 ac_compiler=`set X $ac_compile; echo $2`
1859 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1860 (eval $ac_compiler --version </dev/null >&5) 2>&5
1862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1863 (exit $ac_status); }
1864 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1865 (eval $ac_compiler -v </dev/null >&5) 2>&5
1867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1868 (exit $ac_status); }
1869 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1870 (eval $ac_compiler -V </dev/null >&5) 2>&5
1872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1873 (exit $ac_status); }
1875 cat >conftest.$ac_ext <<_ACEOF
1878 cat confdefs.h >>conftest.$ac_ext
1879 cat >>conftest.$ac_ext <<_ACEOF
1880 /* end confdefs.h. */
1890 ac_clean_files_save=$ac_clean_files
1891 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1892 # Try to create an executable without -o first, disregard a.out.
1893 # It will help us diagnose broken compilers, and finding out an intuition
1895 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1896 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1897 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1898 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1899 (eval $ac_link_default) 2>&5
1901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1902 (exit $ac_status); }; then
1903 # Find the output, starting from the most likely. This scheme is
1904 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1907 # Be careful to initialize this variable, since it used to be cached.
1908 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1910 # b.out is created by i960 compilers.
1911 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1913 test -f "$ac_file" || continue
1915 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1918 # This is the source file.
1921 # We found the default executable, but exeext='' is most
1925 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1926 # FIXME: I believe we export ac_cv_exeext for Libtool,
1927 # but it would be cool to find out if it's true. Does anybody
1928 # maintain Libtool? --akim.
1936 echo "$as_me: failed program was:" >&5
1937 sed 's/^/| /' conftest.$ac_ext >&5
1939 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1940 See \`config.log' for more details." >&5
1941 echo "$as_me: error: C compiler cannot create executables
1942 See \`config.log' for more details." >&2;}
1943 { (exit 77); exit 77; }; }
1946 ac_exeext=$ac_cv_exeext
1947 echo "$as_me:$LINENO: result: $ac_file" >&5
1948 echo "${ECHO_T}$ac_file" >&6
1950 # Check the compiler produces executables we can run. If not, either
1951 # the compiler is broken, or we cross compile.
1952 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1953 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1954 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1955 # If not cross compiling, check that we can run a simple program.
1956 if test "$cross_compiling" != yes; then
1957 if { ac_try='./$ac_file'
1958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1962 (exit $ac_status); }; }; then
1965 if test "$cross_compiling" = maybe; then
1968 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1969 If you meant to cross compile, use \`--host'.
1970 See \`config.log' for more details." >&5
1971 echo "$as_me: error: cannot run C compiled programs.
1972 If you meant to cross compile, use \`--host'.
1973 See \`config.log' for more details." >&2;}
1974 { (exit 1); exit 1; }; }
1978 echo "$as_me:$LINENO: result: yes" >&5
1979 echo "${ECHO_T}yes" >&6
1981 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1982 ac_clean_files=$ac_clean_files_save
1983 # Check the compiler produces executables we can run. If not, either
1984 # the compiler is broken, or we cross compile.
1985 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1986 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1987 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1988 echo "${ECHO_T}$cross_compiling" >&6
1990 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1991 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1993 (eval $ac_link) 2>&5
1995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1996 (exit $ac_status); }; then
1997 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1998 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1999 # work properly (i.e., refer to `conftest.exe'), while it won't with
2001 for ac_file in conftest.exe conftest conftest.*; do
2002 test -f "$ac_file" || continue
2004 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2005 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2012 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2013 See \`config.log' for more details." >&5
2014 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2015 See \`config.log' for more details." >&2;}
2016 { (exit 1); exit 1; }; }
2019 rm -f conftest$ac_cv_exeext
2020 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2021 echo "${ECHO_T}$ac_cv_exeext" >&6
2023 rm -f conftest.$ac_ext
2024 EXEEXT=$ac_cv_exeext
2026 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2027 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2028 if test "${ac_cv_objext+set}" = set; then
2029 echo $ECHO_N "(cached) $ECHO_C" >&6
2031 cat >conftest.$ac_ext <<_ACEOF
2034 cat confdefs.h >>conftest.$ac_ext
2035 cat >>conftest.$ac_ext <<_ACEOF
2036 /* end confdefs.h. */
2046 rm -f conftest.o conftest.obj
2047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2048 (eval $ac_compile) 2>&5
2050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2051 (exit $ac_status); }; then
2052 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2054 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2055 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2060 echo "$as_me: failed program was:" >&5
2061 sed 's/^/| /' conftest.$ac_ext >&5
2063 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2064 See \`config.log' for more details." >&5
2065 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2066 See \`config.log' for more details." >&2;}
2067 { (exit 1); exit 1; }; }
2070 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2072 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2073 echo "${ECHO_T}$ac_cv_objext" >&6
2074 OBJEXT=$ac_cv_objext
2076 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2077 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2078 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2079 echo $ECHO_N "(cached) $ECHO_C" >&6
2081 cat >conftest.$ac_ext <<_ACEOF
2084 cat confdefs.h >>conftest.$ac_ext
2085 cat >>conftest.$ac_ext <<_ACEOF
2086 /* end confdefs.h. */
2099 rm -f conftest.$ac_objext
2100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2101 (eval $ac_compile) 2>conftest.er1
2103 grep -v '^ *+' conftest.er1 >conftest.err
2105 cat conftest.err >&5
2106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2107 (exit $ac_status); } &&
2108 { ac_try='test -z "$ac_c_werror_flag"
2109 || test ! -s conftest.err'
2110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114 (exit $ac_status); }; } &&
2115 { ac_try='test -s conftest.$ac_objext'
2116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2120 (exit $ac_status); }; }; then
2123 echo "$as_me: failed program was:" >&5
2124 sed 's/^/| /' conftest.$ac_ext >&5
2128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2129 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2132 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2133 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2134 GCC=`test $ac_compiler_gnu = yes && echo yes`
2135 ac_test_CFLAGS=${CFLAGS+set}
2136 ac_save_CFLAGS=$CFLAGS
2138 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2139 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2140 if test "${ac_cv_prog_cc_g+set}" = set; then
2141 echo $ECHO_N "(cached) $ECHO_C" >&6
2143 cat >conftest.$ac_ext <<_ACEOF
2146 cat confdefs.h >>conftest.$ac_ext
2147 cat >>conftest.$ac_ext <<_ACEOF
2148 /* end confdefs.h. */
2158 rm -f conftest.$ac_objext
2159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2160 (eval $ac_compile) 2>conftest.er1
2162 grep -v '^ *+' conftest.er1 >conftest.err
2164 cat conftest.err >&5
2165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2166 (exit $ac_status); } &&
2167 { ac_try='test -z "$ac_c_werror_flag"
2168 || test ! -s conftest.err'
2169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2173 (exit $ac_status); }; } &&
2174 { ac_try='test -s conftest.$ac_objext'
2175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2179 (exit $ac_status); }; }; then
2182 echo "$as_me: failed program was:" >&5
2183 sed 's/^/| /' conftest.$ac_ext >&5
2187 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2189 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2190 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2191 if test "$ac_test_CFLAGS" = set; then
2192 CFLAGS=$ac_save_CFLAGS
2193 elif test $ac_cv_prog_cc_g = yes; then
2194 if test "$GCC" = yes; then
2200 if test "$GCC" = yes; then
2206 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2207 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2208 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2209 echo $ECHO_N "(cached) $ECHO_C" >&6
2211 ac_cv_prog_cc_stdc=no
2213 cat >conftest.$ac_ext <<_ACEOF
2216 cat confdefs.h >>conftest.$ac_ext
2217 cat >>conftest.$ac_ext <<_ACEOF
2218 /* end confdefs.h. */
2221 #include <sys/types.h>
2222 #include <sys/stat.h>
2223 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2224 struct buf { int x; };
2225 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2226 static char *e (p, i)
2232 static char *f (char * (*g) (char **, int), char **p, ...)
2237 s = g (p, va_arg (v,int));
2242 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2243 function prototypes and stuff, but not '\xHH' hex character constants.
2244 These don't provoke an error unfortunately, instead are silently treated
2245 as 'x'. The following induces an error, until -std1 is added to get
2246 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2247 array size at least. It's necessary to write '\x00'==0 to get something
2248 that's true only with -std1. */
2249 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2251 int test (int i, double x);
2252 struct s1 {int (*f) (int a);};
2253 struct s2 {int (*f) (double a);};
2254 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2260 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2265 # Don't try gcc -ansi; that turns off useful extensions and
2266 # breaks some systems' header files.
2267 # AIX -qlanglvl=ansi
2268 # Ultrix and OSF/1 -std1
2269 # HP-UX 10.20 and later -Ae
2270 # HP-UX older versions -Aa -D_HPUX_SOURCE
2271 # SVR4 -Xc -D__EXTENSIONS__
2272 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2274 CC="$ac_save_CC $ac_arg"
2275 rm -f conftest.$ac_objext
2276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2277 (eval $ac_compile) 2>conftest.er1
2279 grep -v '^ *+' conftest.er1 >conftest.err
2281 cat conftest.err >&5
2282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2283 (exit $ac_status); } &&
2284 { ac_try='test -z "$ac_c_werror_flag"
2285 || test ! -s conftest.err'
2286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2290 (exit $ac_status); }; } &&
2291 { ac_try='test -s conftest.$ac_objext'
2292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2296 (exit $ac_status); }; }; then
2297 ac_cv_prog_cc_stdc=$ac_arg
2300 echo "$as_me: failed program was:" >&5
2301 sed 's/^/| /' conftest.$ac_ext >&5
2304 rm -f conftest.err conftest.$ac_objext
2306 rm -f conftest.$ac_ext conftest.$ac_objext
2311 case "x$ac_cv_prog_cc_stdc" in
2313 echo "$as_me:$LINENO: result: none needed" >&5
2314 echo "${ECHO_T}none needed" >&6 ;;
2316 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2317 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2318 CC="$CC $ac_cv_prog_cc_stdc" ;;
2321 # Some people use a C++ compiler to compile C. Since we use `exit',
2322 # in C++ we need to declare it. In case someone uses the same compiler
2323 # for both compiling C and C++ we need to have the C++ compiler decide
2324 # the declaration of exit, since it's the most demanding environment.
2325 cat >conftest.$ac_ext <<_ACEOF
2330 rm -f conftest.$ac_objext
2331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2332 (eval $ac_compile) 2>conftest.er1
2334 grep -v '^ *+' conftest.er1 >conftest.err
2336 cat conftest.err >&5
2337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338 (exit $ac_status); } &&
2339 { ac_try='test -z "$ac_c_werror_flag"
2340 || test ! -s conftest.err'
2341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2345 (exit $ac_status); }; } &&
2346 { ac_try='test -s conftest.$ac_objext'
2347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351 (exit $ac_status); }; }; then
2352 for ac_declaration in \
2354 'extern "C" void std::exit (int) throw (); using std::exit;' \
2355 'extern "C" void std::exit (int); using std::exit;' \
2356 'extern "C" void exit (int) throw ();' \
2357 'extern "C" void exit (int);' \
2360 cat >conftest.$ac_ext <<_ACEOF
2363 cat confdefs.h >>conftest.$ac_ext
2364 cat >>conftest.$ac_ext <<_ACEOF
2365 /* end confdefs.h. */
2376 rm -f conftest.$ac_objext
2377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2378 (eval $ac_compile) 2>conftest.er1
2380 grep -v '^ *+' conftest.er1 >conftest.err
2382 cat conftest.err >&5
2383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384 (exit $ac_status); } &&
2385 { ac_try='test -z "$ac_c_werror_flag"
2386 || test ! -s conftest.err'
2387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391 (exit $ac_status); }; } &&
2392 { ac_try='test -s conftest.$ac_objext'
2393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); }; }; then
2400 echo "$as_me: failed program was:" >&5
2401 sed 's/^/| /' conftest.$ac_ext >&5
2405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2406 cat >conftest.$ac_ext <<_ACEOF
2409 cat confdefs.h >>conftest.$ac_ext
2410 cat >>conftest.$ac_ext <<_ACEOF
2411 /* end confdefs.h. */
2421 rm -f conftest.$ac_objext
2422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2423 (eval $ac_compile) 2>conftest.er1
2425 grep -v '^ *+' conftest.er1 >conftest.err
2427 cat conftest.err >&5
2428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429 (exit $ac_status); } &&
2430 { ac_try='test -z "$ac_c_werror_flag"
2431 || test ! -s conftest.err'
2432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436 (exit $ac_status); }; } &&
2437 { ac_try='test -s conftest.$ac_objext'
2438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442 (exit $ac_status); }; }; then
2445 echo "$as_me: failed program was:" >&5
2446 sed 's/^/| /' conftest.$ac_ext >&5
2449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2452 if test -n "$ac_declaration"; then
2453 echo '#ifdef __cplusplus' >>confdefs.h
2454 echo $ac_declaration >>confdefs.h
2455 echo '#endif' >>confdefs.h
2459 echo "$as_me: failed program was:" >&5
2460 sed 's/^/| /' conftest.$ac_ext >&5
2463 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2465 ac_cpp='$CPP $CPPFLAGS'
2466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2471 ac_cpp='$CXXCPP $CPPFLAGS'
2472 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2473 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2474 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2475 if test -n "$ac_tool_prefix"; then
2476 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2478 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2479 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2480 echo "$as_me:$LINENO: checking for $ac_word" >&5
2481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2482 if test "${ac_cv_prog_CXX+set}" = set; then
2483 echo $ECHO_N "(cached) $ECHO_C" >&6
2485 if test -n "$CXX"; then
2486 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2492 test -z "$as_dir" && as_dir=.
2493 for ac_exec_ext in '' $ac_executable_extensions; do
2494 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2495 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2505 if test -n "$CXX"; then
2506 echo "$as_me:$LINENO: result: $CXX" >&5
2507 echo "${ECHO_T}$CXX" >&6
2509 echo "$as_me:$LINENO: result: no" >&5
2510 echo "${ECHO_T}no" >&6
2513 test -n "$CXX" && break
2516 if test -z "$CXX"; then
2518 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2520 # Extract the first word of "$ac_prog", so it can be a program name with args.
2521 set dummy $ac_prog; ac_word=$2
2522 echo "$as_me:$LINENO: checking for $ac_word" >&5
2523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2524 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2525 echo $ECHO_N "(cached) $ECHO_C" >&6
2527 if test -n "$ac_ct_CXX"; then
2528 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2534 test -z "$as_dir" && as_dir=.
2535 for ac_exec_ext in '' $ac_executable_extensions; do
2536 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2537 ac_cv_prog_ac_ct_CXX="$ac_prog"
2538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2546 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2547 if test -n "$ac_ct_CXX"; then
2548 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2549 echo "${ECHO_T}$ac_ct_CXX" >&6
2551 echo "$as_me:$LINENO: result: no" >&5
2552 echo "${ECHO_T}no" >&6
2555 test -n "$ac_ct_CXX" && break
2557 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2563 # Provide some information about the compiler.
2564 echo "$as_me:$LINENO:" \
2565 "checking for C++ compiler version" >&5
2566 ac_compiler=`set X $ac_compile; echo $2`
2567 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2568 (eval $ac_compiler --version </dev/null >&5) 2>&5
2570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571 (exit $ac_status); }
2572 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2573 (eval $ac_compiler -v </dev/null >&5) 2>&5
2575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576 (exit $ac_status); }
2577 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2578 (eval $ac_compiler -V </dev/null >&5) 2>&5
2580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581 (exit $ac_status); }
2583 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2584 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2585 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2586 echo $ECHO_N "(cached) $ECHO_C" >&6
2588 cat >conftest.$ac_ext <<_ACEOF
2591 cat confdefs.h >>conftest.$ac_ext
2592 cat >>conftest.$ac_ext <<_ACEOF
2593 /* end confdefs.h. */
2606 rm -f conftest.$ac_objext
2607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2608 (eval $ac_compile) 2>conftest.er1
2610 grep -v '^ *+' conftest.er1 >conftest.err
2612 cat conftest.err >&5
2613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614 (exit $ac_status); } &&
2615 { ac_try='test -z "$ac_cxx_werror_flag"
2616 || test ! -s conftest.err'
2617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621 (exit $ac_status); }; } &&
2622 { ac_try='test -s conftest.$ac_objext'
2623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627 (exit $ac_status); }; }; then
2630 echo "$as_me: failed program was:" >&5
2631 sed 's/^/| /' conftest.$ac_ext >&5
2635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2636 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2639 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2640 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2641 GXX=`test $ac_compiler_gnu = yes && echo yes`
2642 ac_test_CXXFLAGS=${CXXFLAGS+set}
2643 ac_save_CXXFLAGS=$CXXFLAGS
2645 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2646 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2647 if test "${ac_cv_prog_cxx_g+set}" = set; then
2648 echo $ECHO_N "(cached) $ECHO_C" >&6
2650 cat >conftest.$ac_ext <<_ACEOF
2653 cat confdefs.h >>conftest.$ac_ext
2654 cat >>conftest.$ac_ext <<_ACEOF
2655 /* end confdefs.h. */
2665 rm -f conftest.$ac_objext
2666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2667 (eval $ac_compile) 2>conftest.er1
2669 grep -v '^ *+' conftest.er1 >conftest.err
2671 cat conftest.err >&5
2672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673 (exit $ac_status); } &&
2674 { ac_try='test -z "$ac_cxx_werror_flag"
2675 || test ! -s conftest.err'
2676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680 (exit $ac_status); }; } &&
2681 { ac_try='test -s conftest.$ac_objext'
2682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686 (exit $ac_status); }; }; then
2687 ac_cv_prog_cxx_g=yes
2689 echo "$as_me: failed program was:" >&5
2690 sed 's/^/| /' conftest.$ac_ext >&5
2694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2696 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2697 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2698 if test "$ac_test_CXXFLAGS" = set; then
2699 CXXFLAGS=$ac_save_CXXFLAGS
2700 elif test $ac_cv_prog_cxx_g = yes; then
2701 if test "$GXX" = yes; then
2707 if test "$GXX" = yes; then
2713 for ac_declaration in \
2715 'extern "C" void std::exit (int) throw (); using std::exit;' \
2716 'extern "C" void std::exit (int); using std::exit;' \
2717 'extern "C" void exit (int) throw ();' \
2718 'extern "C" void exit (int);' \
2721 cat >conftest.$ac_ext <<_ACEOF
2724 cat confdefs.h >>conftest.$ac_ext
2725 cat >>conftest.$ac_ext <<_ACEOF
2726 /* end confdefs.h. */
2737 rm -f conftest.$ac_objext
2738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2739 (eval $ac_compile) 2>conftest.er1
2741 grep -v '^ *+' conftest.er1 >conftest.err
2743 cat conftest.err >&5
2744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745 (exit $ac_status); } &&
2746 { ac_try='test -z "$ac_cxx_werror_flag"
2747 || test ! -s conftest.err'
2748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752 (exit $ac_status); }; } &&
2753 { ac_try='test -s conftest.$ac_objext'
2754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758 (exit $ac_status); }; }; then
2761 echo "$as_me: failed program was:" >&5
2762 sed 's/^/| /' conftest.$ac_ext >&5
2766 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2767 cat >conftest.$ac_ext <<_ACEOF
2770 cat confdefs.h >>conftest.$ac_ext
2771 cat >>conftest.$ac_ext <<_ACEOF
2772 /* end confdefs.h. */
2782 rm -f conftest.$ac_objext
2783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2784 (eval $ac_compile) 2>conftest.er1
2786 grep -v '^ *+' conftest.er1 >conftest.err
2788 cat conftest.err >&5
2789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790 (exit $ac_status); } &&
2791 { ac_try='test -z "$ac_cxx_werror_flag"
2792 || test ! -s conftest.err'
2793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797 (exit $ac_status); }; } &&
2798 { ac_try='test -s conftest.$ac_objext'
2799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803 (exit $ac_status); }; }; then
2806 echo "$as_me: failed program was:" >&5
2807 sed 's/^/| /' conftest.$ac_ext >&5
2810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2813 if test -n "$ac_declaration"; then
2814 echo '#ifdef __cplusplus' >>confdefs.h
2815 echo $ac_declaration >>confdefs.h
2816 echo '#endif' >>confdefs.h
2820 ac_cpp='$CPP $CPPFLAGS'
2821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2825 if test "x$CC" != xcc; then
2826 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2827 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2829 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2830 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2832 set dummy $CC; ac_cc=`echo $2 |
2833 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2834 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2835 echo $ECHO_N "(cached) $ECHO_C" >&6
2837 cat >conftest.$ac_ext <<_ACEOF
2840 cat confdefs.h >>conftest.$ac_ext
2841 cat >>conftest.$ac_ext <<_ACEOF
2842 /* end confdefs.h. */
2852 # Make sure it works both with $CC and with simple cc.
2853 # We do the test twice because some compilers refuse to overwrite an
2854 # existing .o file with -o, though they will create one.
2855 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2856 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2860 (exit $ac_status); } &&
2861 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865 (exit $ac_status); };
2867 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2868 if test "x$CC" != xcc; then
2869 # Test first that cc exists at all.
2870 if { ac_try='cc -c conftest.$ac_ext >&5'
2871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875 (exit $ac_status); }; }; then
2876 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2877 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881 (exit $ac_status); } &&
2882 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886 (exit $ac_status); };
2891 # cc exists but doesn't like -o.
2892 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2897 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2902 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2903 echo "$as_me:$LINENO: result: yes" >&5
2904 echo "${ECHO_T}yes" >&6
2906 echo "$as_me:$LINENO: result: no" >&5
2907 echo "${ECHO_T}no" >&6
2909 cat >>confdefs.h <<\_ACEOF
2910 #define NO_MINUS_C_MINUS_O 1
2916 ac_cpp='$CPP $CPPFLAGS'
2917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2920 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2921 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2922 # On Suns, sometimes $CPP names a directory.
2923 if test -n "$CPP" && test -d "$CPP"; then
2926 if test -z "$CPP"; then
2927 if test "${ac_cv_prog_CPP+set}" = set; then
2928 echo $ECHO_N "(cached) $ECHO_C" >&6
2930 # Double quotes because CPP needs to be expanded
2931 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2934 for ac_c_preproc_warn_flag in '' yes
2936 # Use a header file that comes with gcc, so configuring glibc
2937 # with a fresh cross-compiler works.
2938 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2939 # <limits.h> exists even on freestanding compilers.
2940 # On the NeXT, cc -E runs the code through the compiler's parser,
2941 # not just through cpp. "Syntax error" is here to catch this case.
2942 cat >conftest.$ac_ext <<_ACEOF
2945 cat confdefs.h >>conftest.$ac_ext
2946 cat >>conftest.$ac_ext <<_ACEOF
2947 /* end confdefs.h. */
2949 # include <limits.h>
2951 # include <assert.h>
2955 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2956 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2958 grep -v '^ *+' conftest.er1 >conftest.err
2960 cat conftest.err >&5
2961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962 (exit $ac_status); } >/dev/null; then
2963 if test -s conftest.err; then
2964 ac_cpp_err=$ac_c_preproc_warn_flag
2965 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2972 if test -z "$ac_cpp_err"; then
2975 echo "$as_me: failed program was:" >&5
2976 sed 's/^/| /' conftest.$ac_ext >&5
2978 # Broken: fails on valid input.
2981 rm -f conftest.err conftest.$ac_ext
2983 # OK, works on sane cases. Now check whether non-existent headers
2984 # can be detected and how.
2985 cat >conftest.$ac_ext <<_ACEOF
2988 cat confdefs.h >>conftest.$ac_ext
2989 cat >>conftest.$ac_ext <<_ACEOF
2990 /* end confdefs.h. */
2991 #include <ac_nonexistent.h>
2993 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2994 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2996 grep -v '^ *+' conftest.er1 >conftest.err
2998 cat conftest.err >&5
2999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000 (exit $ac_status); } >/dev/null; then
3001 if test -s conftest.err; then
3002 ac_cpp_err=$ac_c_preproc_warn_flag
3003 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3010 if test -z "$ac_cpp_err"; then
3011 # Broken: success on invalid input.
3014 echo "$as_me: failed program was:" >&5
3015 sed 's/^/| /' conftest.$ac_ext >&5
3017 # Passes both tests.
3021 rm -f conftest.err conftest.$ac_ext
3024 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3025 rm -f conftest.err conftest.$ac_ext
3026 if $ac_preproc_ok; then
3038 echo "$as_me:$LINENO: result: $CPP" >&5
3039 echo "${ECHO_T}$CPP" >&6
3041 for ac_c_preproc_warn_flag in '' yes
3043 # Use a header file that comes with gcc, so configuring glibc
3044 # with a fresh cross-compiler works.
3045 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3046 # <limits.h> exists even on freestanding compilers.
3047 # On the NeXT, cc -E runs the code through the compiler's parser,
3048 # not just through cpp. "Syntax error" is here to catch this case.
3049 cat >conftest.$ac_ext <<_ACEOF
3052 cat confdefs.h >>conftest.$ac_ext
3053 cat >>conftest.$ac_ext <<_ACEOF
3054 /* end confdefs.h. */
3056 # include <limits.h>
3058 # include <assert.h>
3062 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3063 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3065 grep -v '^ *+' conftest.er1 >conftest.err
3067 cat conftest.err >&5
3068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069 (exit $ac_status); } >/dev/null; then
3070 if test -s conftest.err; then
3071 ac_cpp_err=$ac_c_preproc_warn_flag
3072 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3079 if test -z "$ac_cpp_err"; then
3082 echo "$as_me: failed program was:" >&5
3083 sed 's/^/| /' conftest.$ac_ext >&5
3085 # Broken: fails on valid input.
3088 rm -f conftest.err conftest.$ac_ext
3090 # OK, works on sane cases. Now check whether non-existent headers
3091 # can be detected and how.
3092 cat >conftest.$ac_ext <<_ACEOF
3095 cat confdefs.h >>conftest.$ac_ext
3096 cat >>conftest.$ac_ext <<_ACEOF
3097 /* end confdefs.h. */
3098 #include <ac_nonexistent.h>
3100 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3101 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3103 grep -v '^ *+' conftest.er1 >conftest.err
3105 cat conftest.err >&5
3106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107 (exit $ac_status); } >/dev/null; then
3108 if test -s conftest.err; then
3109 ac_cpp_err=$ac_c_preproc_warn_flag
3110 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3117 if test -z "$ac_cpp_err"; then
3118 # Broken: success on invalid input.
3121 echo "$as_me: failed program was:" >&5
3122 sed 's/^/| /' conftest.$ac_ext >&5
3124 # Passes both tests.
3128 rm -f conftest.err conftest.$ac_ext
3131 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3132 rm -f conftest.err conftest.$ac_ext
3133 if $ac_preproc_ok; then
3136 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3137 See \`config.log' for more details." >&5
3138 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3139 See \`config.log' for more details." >&2;}
3140 { (exit 1); exit 1; }; }
3144 ac_cpp='$CPP $CPPFLAGS'
3145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3150 echo "$as_me:$LINENO: checking for egrep" >&5
3151 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3152 if test "${ac_cv_prog_egrep+set}" = set; then
3153 echo $ECHO_N "(cached) $ECHO_C" >&6
3155 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3156 then ac_cv_prog_egrep='grep -E'
3157 else ac_cv_prog_egrep='egrep'
3160 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3161 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3162 EGREP=$ac_cv_prog_egrep
3165 if test $ac_cv_c_compiler_gnu = yes; then
3166 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3167 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3168 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3169 echo $ECHO_N "(cached) $ECHO_C" >&6
3171 ac_pattern="Autoconf.*'x'"
3172 cat >conftest.$ac_ext <<_ACEOF
3175 cat confdefs.h >>conftest.$ac_ext
3176 cat >>conftest.$ac_ext <<_ACEOF
3177 /* end confdefs.h. */
3181 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3182 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3183 ac_cv_prog_gcc_traditional=yes
3185 ac_cv_prog_gcc_traditional=no
3190 if test $ac_cv_prog_gcc_traditional = no; then
3191 cat >conftest.$ac_ext <<_ACEOF
3194 cat confdefs.h >>conftest.$ac_ext
3195 cat >>conftest.$ac_ext <<_ACEOF
3196 /* end confdefs.h. */
3200 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3201 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3202 ac_cv_prog_gcc_traditional=yes
3208 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3209 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3210 if test $ac_cv_prog_gcc_traditional = yes; then
3211 CC="$CC -traditional"
3215 BASECC=`basename $CC`
3217 if test "x$BASECC" = xgcc; then
3218 cat >>confdefs.h <<\_ACEOF
3224 # Extract the first word of "$CXX", so it can be a program name with args.
3225 set dummy $CXX; ac_word=$2
3226 echo "$as_me:$LINENO: checking for $ac_word" >&5
3227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3228 if test "${ac_cv_path_CXX+set}" = set; then
3229 echo $ECHO_N "(cached) $ECHO_C" >&6
3233 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3240 test -z "$as_dir" && as_dir=.
3241 for ac_exec_ext in '' $ac_executable_extensions; do
3242 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3243 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3250 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
3256 if test -n "$CXX"; then
3257 echo "$as_me:$LINENO: result: $CXX" >&5
3258 echo "${ECHO_T}$CXX" >&6
3260 echo "$as_me:$LINENO: result: no" >&5
3261 echo "${ECHO_T}no" >&6
3264 if test ! -e $CXX; then
3265 { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
3266 echo "$as_me: error: Unable to find C++ compiler" >&2;}
3267 { (exit 1); exit 1; }; }
3270 # Find a good install program. We prefer a C program (faster),
3271 # so one script is as good as another. But avoid the broken or
3272 # incompatible versions:
3273 # SysV /etc/install, /usr/sbin/install
3274 # SunOS /usr/etc/install
3275 # IRIX /sbin/install
3277 # AmigaOS /C/install, which installs bootblocks on floppy discs
3278 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3279 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3280 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3281 # OS/2's system install, which has a completely different semantic
3282 # ./install, which can be erroneously created by make from ./install.sh.
3283 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3284 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3285 if test -z "$INSTALL"; then
3286 if test "${ac_cv_path_install+set}" = set; then
3287 echo $ECHO_N "(cached) $ECHO_C" >&6
3289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3293 test -z "$as_dir" && as_dir=.
3294 # Account for people who put trailing slashes in PATH elements.
3296 ./ | .// | /cC/* | \
3297 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3298 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3301 # OSF1 and SCO ODT 3.0 have their own names for install.
3302 # Don't use installbsd from OSF since it installs stuff as root
3304 for ac_prog in ginstall scoinst install; do
3305 for ac_exec_ext in '' $ac_executable_extensions; do
3306 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3307 if test $ac_prog = install &&
3308 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3309 # AIX install. It has an incompatible calling convention.
3311 elif test $ac_prog = install &&
3312 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3313 # program-specific install script used by HP pwplus--don't use.
3316 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3328 if test "${ac_cv_path_install+set}" = set; then
3329 INSTALL=$ac_cv_path_install
3331 # As a last resort, use the slow shell script. We don't cache a
3332 # path for INSTALL within a source directory, because that will
3333 # break other packages using the cache if that directory is
3334 # removed, or if the path is relative.
3335 INSTALL=$ac_install_sh
3338 echo "$as_me:$LINENO: result: $INSTALL" >&5
3339 echo "${ECHO_T}$INSTALL" >&6
3341 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3342 # It thinks the first close brace ends the variable substitution.
3343 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3345 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3347 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3349 if test -n "$ac_tool_prefix"; then
3350 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3351 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3352 echo "$as_me:$LINENO: checking for $ac_word" >&5
3353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3354 if test "${ac_cv_prog_RANLIB+set}" = set; then
3355 echo $ECHO_N "(cached) $ECHO_C" >&6
3357 if test -n "$RANLIB"; then
3358 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3364 test -z "$as_dir" && as_dir=.
3365 for ac_exec_ext in '' $ac_executable_extensions; do
3366 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3367 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3376 RANLIB=$ac_cv_prog_RANLIB
3377 if test -n "$RANLIB"; then
3378 echo "$as_me:$LINENO: result: $RANLIB" >&5
3379 echo "${ECHO_T}$RANLIB" >&6
3381 echo "$as_me:$LINENO: result: no" >&5
3382 echo "${ECHO_T}no" >&6
3386 if test -z "$ac_cv_prog_RANLIB"; then
3387 ac_ct_RANLIB=$RANLIB
3388 # Extract the first word of "ranlib", so it can be a program name with args.
3389 set dummy ranlib; ac_word=$2
3390 echo "$as_me:$LINENO: checking for $ac_word" >&5
3391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3392 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3393 echo $ECHO_N "(cached) $ECHO_C" >&6
3395 if test -n "$ac_ct_RANLIB"; then
3396 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3402 test -z "$as_dir" && as_dir=.
3403 for ac_exec_ext in '' $ac_executable_extensions; do
3404 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3405 ac_cv_prog_ac_ct_RANLIB="ranlib"
3406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3412 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3415 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3416 if test -n "$ac_ct_RANLIB"; then
3417 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3418 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3420 echo "$as_me:$LINENO: result: no" >&5
3421 echo "${ECHO_T}no" >&6
3424 RANLIB=$ac_ct_RANLIB
3426 RANLIB="$ac_cv_prog_RANLIB"
3429 # Extract the first word of "mv", so it can be a program name with args.
3430 set dummy mv; ac_word=$2
3431 echo "$as_me:$LINENO: checking for $ac_word" >&5
3432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3433 if test "${ac_cv_path_MV+set}" = set; then
3434 echo $ECHO_N "(cached) $ECHO_C" >&6
3438 ac_cv_path_MV="$MV" # Let the user override the test with a path.
3441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3445 test -z "$as_dir" && as_dir=.
3446 for ac_exec_ext in '' $ac_executable_extensions; do
3447 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3448 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3455 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3461 if test -n "$MV"; then
3462 echo "$as_me:$LINENO: result: $MV" >&5
3463 echo "${ECHO_T}$MV" >&6
3465 echo "$as_me:$LINENO: result: no" >&5
3466 echo "${ECHO_T}no" >&6
3469 # Extract the first word of "rm", so it can be a program name with args.
3470 set dummy rm; ac_word=$2
3471 echo "$as_me:$LINENO: checking for $ac_word" >&5
3472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3473 if test "${ac_cv_path_RM+set}" = set; then
3474 echo $ECHO_N "(cached) $ECHO_C" >&6
3478 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3485 test -z "$as_dir" && as_dir=.
3486 for ac_exec_ext in '' $ac_executable_extensions; do
3487 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3488 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3495 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3501 if test -n "$RM"; then
3502 echo "$as_me:$LINENO: result: $RM" >&5
3503 echo "${ECHO_T}$RM" >&6
3505 echo "$as_me:$LINENO: result: no" >&5
3506 echo "${ECHO_T}no" >&6
3509 # Extract the first word of "cp", so it can be a program name with args.
3510 set dummy cp; ac_word=$2
3511 echo "$as_me:$LINENO: checking for $ac_word" >&5
3512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3513 if test "${ac_cv_path_CP+set}" = set; then
3514 echo $ECHO_N "(cached) $ECHO_C" >&6
3518 ac_cv_path_CP="$CP" # Let the user override the test with a path.
3521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3525 test -z "$as_dir" && as_dir=.
3526 for ac_exec_ext in '' $ac_executable_extensions; do
3527 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3528 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3535 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3541 if test -n "$CP"; then
3542 echo "$as_me:$LINENO: result: $CP" >&5
3543 echo "${ECHO_T}$CP" >&6
3545 echo "$as_me:$LINENO: result: no" >&5
3546 echo "${ECHO_T}no" >&6
3549 # Extract the first word of "sed", so it can be a program name with args.
3550 set dummy sed; ac_word=$2
3551 echo "$as_me:$LINENO: checking for $ac_word" >&5
3552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3553 if test "${ac_cv_path_SED+set}" = set; then
3554 echo $ECHO_N "(cached) $ECHO_C" >&6
3558 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3565 test -z "$as_dir" && as_dir=.
3566 for ac_exec_ext in '' $ac_executable_extensions; do
3567 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3568 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3575 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3581 if test -n "$SED"; then
3582 echo "$as_me:$LINENO: result: $SED" >&5
3583 echo "${ECHO_T}$SED" >&6
3585 echo "$as_me:$LINENO: result: no" >&5
3586 echo "${ECHO_T}no" >&6
3589 # Extract the first word of "echo", so it can be a program name with args.
3590 set dummy echo; ac_word=$2
3591 echo "$as_me:$LINENO: checking for $ac_word" >&5
3592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3593 if test "${ac_cv_path_ECHO+set}" = set; then
3594 echo $ECHO_N "(cached) $ECHO_C" >&6
3598 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3605 test -z "$as_dir" && as_dir=.
3606 for ac_exec_ext in '' $ac_executable_extensions; do
3607 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3608 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3615 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3619 ECHO=$ac_cv_path_ECHO
3621 if test -n "$ECHO"; then
3622 echo "$as_me:$LINENO: result: $ECHO" >&5
3623 echo "${ECHO_T}$ECHO" >&6
3625 echo "$as_me:$LINENO: result: no" >&5
3626 echo "${ECHO_T}no" >&6
3629 # Extract the first word of "cmp", so it can be a program name with args.
3630 set dummy cmp; ac_word=$2
3631 echo "$as_me:$LINENO: checking for $ac_word" >&5
3632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3633 if test "${ac_cv_path_CMP+set}" = set; then
3634 echo $ECHO_N "(cached) $ECHO_C" >&6
3638 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3645 test -z "$as_dir" && as_dir=.
3646 for ac_exec_ext in '' $ac_executable_extensions; do
3647 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3648 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3655 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3661 if test -n "$CMP"; then
3662 echo "$as_me:$LINENO: result: $CMP" >&5
3663 echo "${ECHO_T}$CMP" >&6
3665 echo "$as_me:$LINENO: result: no" >&5
3666 echo "${ECHO_T}no" >&6
3669 # Extract the first word of "tbl", so it can be a program name with args.
3670 set dummy tbl; ac_word=$2
3671 echo "$as_me:$LINENO: checking for $ac_word" >&5
3672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3673 if test "${ac_cv_path_TBL+set}" = set; then
3674 echo $ECHO_N "(cached) $ECHO_C" >&6
3678 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3685 test -z "$as_dir" && as_dir=.
3686 for ac_exec_ext in '' $ac_executable_extensions; do
3687 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3688 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3695 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3701 if test -n "$TBL"; then
3702 echo "$as_me:$LINENO: result: $TBL" >&5
3703 echo "${ECHO_T}$TBL" >&6
3705 echo "$as_me:$LINENO: result: no" >&5
3706 echo "${ECHO_T}no" >&6
3709 # Extract the first word of "ar", so it can be a program name with args.
3710 set dummy ar; ac_word=$2
3711 echo "$as_me:$LINENO: checking for $ac_word" >&5
3712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3713 if test "${ac_cv_path_AR+set}" = set; then
3714 echo $ECHO_N "(cached) $ECHO_C" >&6
3718 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3725 test -z "$as_dir" && as_dir=.
3726 for ac_exec_ext in '' $ac_executable_extensions; do
3727 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3728 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3735 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3741 if test -n "$AR"; then
3742 echo "$as_me:$LINENO: result: $AR" >&5
3743 echo "${ECHO_T}$AR" >&6
3745 echo "$as_me:$LINENO: result: no" >&5
3746 echo "${ECHO_T}no" >&6
3749 # Extract the first word of "openssl", so it can be a program name with args.
3750 set dummy openssl; ac_word=$2
3751 echo "$as_me:$LINENO: checking for $ac_word" >&5
3752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3753 if test "${ac_cv_path_OPENSSL+set}" = set; then
3754 echo $ECHO_N "(cached) $ECHO_C" >&6
3758 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3765 test -z "$as_dir" && as_dir=.
3766 for ac_exec_ext in '' $ac_executable_extensions; do
3767 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3768 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3775 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3779 OPENSSL=$ac_cv_path_OPENSSL
3781 if test -n "$OPENSSL"; then
3782 echo "$as_me:$LINENO: result: $OPENSSL" >&5
3783 echo "${ECHO_T}$OPENSSL" >&6
3785 echo "$as_me:$LINENO: result: no" >&5
3786 echo "${ECHO_T}no" >&6
3789 # Extract the first word of "mtx", so it can be a program name with args.
3790 set dummy mtx; ac_word=$2
3791 echo "$as_me:$LINENO: checking for $ac_word" >&5
3792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3793 if test "${ac_cv_path_MTX+set}" = set; then
3794 echo $ECHO_N "(cached) $ECHO_C" >&6
3798 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3805 test -z "$as_dir" && as_dir=.
3806 for ac_exec_ext in '' $ac_executable_extensions; do
3807 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3808 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3815 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3821 if test -n "$MTX"; then
3822 echo "$as_me:$LINENO: result: $MTX" >&5
3823 echo "${ECHO_T}$MTX" >&6
3825 echo "$as_me:$LINENO: result: no" >&5
3826 echo "${ECHO_T}no" >&6
3829 # Extract the first word of "dd", so it can be a program name with args.
3830 set dummy dd; ac_word=$2
3831 echo "$as_me:$LINENO: checking for $ac_word" >&5
3832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3833 if test "${ac_cv_path_DD+set}" = set; then
3834 echo $ECHO_N "(cached) $ECHO_C" >&6
3838 ac_cv_path_DD="$DD" # Let the user override the test with a path.
3841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3845 test -z "$as_dir" && as_dir=.
3846 for ac_exec_ext in '' $ac_executable_extensions; do
3847 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3848 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
3849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3855 test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
3861 if test -n "$DD"; then
3862 echo "$as_me:$LINENO: result: $DD" >&5
3863 echo "${ECHO_T}$DD" >&6
3865 echo "$as_me:$LINENO: result: no" >&5
3866 echo "${ECHO_T}no" >&6
3869 # Extract the first word of "mkisofs", so it can be a program name with args.
3870 set dummy mkisofs; ac_word=$2
3871 echo "$as_me:$LINENO: checking for $ac_word" >&5
3872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3873 if test "${ac_cv_path_MKISOFS+set}" = set; then
3874 echo $ECHO_N "(cached) $ECHO_C" >&6
3878 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
3881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3885 test -z "$as_dir" && as_dir=.
3886 for ac_exec_ext in '' $ac_executable_extensions; do
3887 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3888 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
3889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3895 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
3899 MKISOFS=$ac_cv_path_MKISOFS
3901 if test -n "$MKISOFS"; then
3902 echo "$as_me:$LINENO: result: $MKISOFS" >&5
3903 echo "${ECHO_T}$MKISOFS" >&6
3905 echo "$as_me:$LINENO: result: no" >&5
3906 echo "${ECHO_T}no" >&6
3909 # Extract the first word of "python", so it can be a program name with args.
3910 set dummy python; ac_word=$2
3911 echo "$as_me:$LINENO: checking for $ac_word" >&5
3912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3913 if test "${ac_cv_path_PYTHON+set}" = set; then
3914 echo $ECHO_N "(cached) $ECHO_C" >&6
3918 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
3921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3925 test -z "$as_dir" && as_dir=.
3926 for ac_exec_ext in '' $ac_executable_extensions; do
3927 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3928 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
3929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3935 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
3939 PYTHON=$ac_cv_path_PYTHON
3941 if test -n "$PYTHON"; then
3942 echo "$as_me:$LINENO: result: $PYTHON" >&5
3943 echo "${ECHO_T}$PYTHON" >&6
3945 echo "$as_me:$LINENO: result: no" >&5
3946 echo "${ECHO_T}no" >&6
3949 # Extract the first word of "growisofs", so it can be a program name with args.
3950 set dummy growisofs; ac_word=$2
3951 echo "$as_me:$LINENO: checking for $ac_word" >&5
3952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3953 if test "${ac_cv_path_GROWISOFS+set}" = set; then
3954 echo $ECHO_N "(cached) $ECHO_C" >&6
3958 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
3961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3965 test -z "$as_dir" && as_dir=.
3966 for ac_exec_ext in '' $ac_executable_extensions; do
3967 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3968 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
3969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3975 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
3979 GROWISOFS=$ac_cv_path_GROWISOFS
3981 if test -n "$GROWISOFS"; then
3982 echo "$as_me:$LINENO: result: $GROWISOFS" >&5
3983 echo "${ECHO_T}$GROWISOFS" >&6
3985 echo "$as_me:$LINENO: result: no" >&5
3986 echo "${ECHO_T}no" >&6
3989 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
3990 set dummy dvd+rw-mediainfo; ac_word=$2
3991 echo "$as_me:$LINENO: checking for $ac_word" >&5
3992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3993 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
3994 echo $ECHO_N "(cached) $ECHO_C" >&6
3996 case $DVDRWMEDIAINFO in
3998 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4005 test -z "$as_dir" && as_dir=.
4006 for ac_exec_ext in '' $ac_executable_extensions; do
4007 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4008 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4015 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4019 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4021 if test -n "$DVDRWMEDIAINFO"; then
4022 echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4023 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6
4025 echo "$as_me:$LINENO: result: no" >&5
4026 echo "${ECHO_T}no" >&6
4029 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4030 set dummy dvd+rw-format; ac_word=$2
4031 echo "$as_me:$LINENO: checking for $ac_word" >&5
4032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4033 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4034 echo $ECHO_N "(cached) $ECHO_C" >&6
4036 case $DVDRWFORMAT in
4038 ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4045 test -z "$as_dir" && as_dir=.
4046 for ac_exec_ext in '' $ac_executable_extensions; do
4047 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4048 ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4055 test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4059 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4061 if test -n "$DVDRWFORMAT"; then
4062 echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4063 echo "${ECHO_T}$DVDRWFORMAT" >&6
4065 echo "$as_me:$LINENO: result: no" >&5
4066 echo "${ECHO_T}no" >&6
4069 # Extract the first word of "pkg-config", so it can be a program name with args.
4070 set dummy pkg-config; ac_word=$2
4071 echo "$as_me:$LINENO: checking for $ac_word" >&5
4072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4073 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4074 echo $ECHO_N "(cached) $ECHO_C" >&6
4078 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4085 test -z "$as_dir" && as_dir=.
4086 for ac_exec_ext in '' $ac_executable_extensions; do
4087 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4088 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4095 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
4099 PKGCONFIG=$ac_cv_path_PKGCONFIG
4101 if test -n "$PKGCONFIG"; then
4102 echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
4103 echo "${ECHO_T}$PKGCONFIG" >&6
4105 echo "$as_me:$LINENO: result: no" >&5
4106 echo "${ECHO_T}no" >&6
4110 if test "x$WXCONFIG" = x; then
4113 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
4114 set dummy ${WXCONFIG}; ac_word=$2
4115 echo "$as_me:$LINENO: checking for $ac_word" >&5
4116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4117 if test "${ac_cv_path_WXCONFIG+set}" = set; then
4118 echo $ECHO_N "(cached) $ECHO_C" >&6
4122 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
4125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4129 test -z "$as_dir" && as_dir=.
4130 for ac_exec_ext in '' $ac_executable_extensions; do
4131 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4132 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
4133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4139 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
4143 WXCONFIG=$ac_cv_path_WXCONFIG
4145 if test -n "$WXCONFIG"; then
4146 echo "$as_me:$LINENO: result: $WXCONFIG" >&5
4147 echo "${ECHO_T}$WXCONFIG" >&6
4149 echo "$as_me:$LINENO: result: no" >&5
4150 echo "${ECHO_T}no" >&6
4154 # Extract the first word of "cdrecord", so it can be a program name with args.
4155 set dummy cdrecord; ac_word=$2
4156 echo "$as_me:$LINENO: checking for $ac_word" >&5
4157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4158 if test "${ac_cv_path_CDRECORD+set}" = set; then
4159 echo $ECHO_N "(cached) $ECHO_C" >&6
4163 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
4166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4170 test -z "$as_dir" && as_dir=.
4171 for ac_exec_ext in '' $ac_executable_extensions; do
4172 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4173 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
4174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4180 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
4184 CDRECORD=$ac_cv_path_CDRECORD
4186 if test -n "$CDRECORD"; then
4187 echo "$as_me:$LINENO: result: $CDRECORD" >&5
4188 echo "${ECHO_T}$CDRECORD" >&6
4190 echo "$as_me:$LINENO: result: no" >&5
4191 echo "${ECHO_T}no" >&6
4194 # Extract the first word of "pidof", so it can be a program name with args.
4195 set dummy pidof; ac_word=$2
4196 echo "$as_me:$LINENO: checking for $ac_word" >&5
4197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4198 if test "${ac_cv_path_PIDOF+set}" = set; then
4199 echo $ECHO_N "(cached) $ECHO_C" >&6
4203 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
4206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4210 test -z "$as_dir" && as_dir=.
4211 for ac_exec_ext in '' $ac_executable_extensions; do
4212 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4213 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
4214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4220 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
4224 PIDOF=$ac_cv_path_PIDOF
4226 if test -n "$PIDOF"; then
4227 echo "$as_me:$LINENO: result: $PIDOF" >&5
4228 echo "${ECHO_T}$PIDOF" >&6
4230 echo "$as_me:$LINENO: result: no" >&5
4231 echo "${ECHO_T}no" >&6
4234 for ac_prog in gawk mawk nawk awk
4236 # Extract the first word of "$ac_prog", so it can be a program name with args.
4237 set dummy $ac_prog; ac_word=$2
4238 echo "$as_me:$LINENO: checking for $ac_word" >&5
4239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4240 if test "${ac_cv_prog_AWK+set}" = set; then
4241 echo $ECHO_N "(cached) $ECHO_C" >&6
4243 if test -n "$AWK"; then
4244 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4250 test -z "$as_dir" && as_dir=.
4251 for ac_exec_ext in '' $ac_executable_extensions; do
4252 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4253 ac_cv_prog_AWK="$ac_prog"
4254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4263 if test -n "$AWK"; then
4264 echo "$as_me:$LINENO: result: $AWK" >&5
4265 echo "${ECHO_T}$AWK" >&6
4267 echo "$as_me:$LINENO: result: no" >&5
4268 echo "${ECHO_T}no" >&6
4271 test -n "$AWK" && break
4274 # Some AWK programs fail, so test it and warn the user
4275 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
4276 { if ((prog == $2) || (("(" prog ")") == $2) ||
4277 (("" prog "") == $2) ||
4278 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
4280 { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4281 The regex engine of $AWK is too broken to be used you
4282 might want to install GNU AWK.
4283 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
4284 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4285 The regex engine of $AWK is too broken to be used you
4286 might want to install GNU AWK.
4287 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
4288 { (exit 1); exit 1; }; }
4291 # Extract the first word of "$THE_AWK", so it can be a program name with args.
4292 set dummy $THE_AWK; ac_word=$2
4293 echo "$as_me:$LINENO: checking for $ac_word" >&5
4294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4295 if test "${ac_cv_path_AWK+set}" = set; then
4296 echo $ECHO_N "(cached) $ECHO_C" >&6
4300 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
4303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4307 test -z "$as_dir" && as_dir=.
4308 for ac_exec_ext in '' $ac_executable_extensions; do
4309 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4310 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
4311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4317 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
4323 if test -n "$AWK"; then
4324 echo "$as_me:$LINENO: result: $AWK" >&5
4325 echo "${ECHO_T}$AWK" >&6
4327 echo "$as_me:$LINENO: result: no" >&5
4328 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 for ac_prog in msgfmt
6776 # Extract the first word of "$ac_prog", so it can be a program name with args.
6777 set dummy $ac_prog; ac_word=$2
6778 echo "$as_me:$LINENO: checking for $ac_word" >&5
6779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6780 if test "${ac_cv_path_MSGFMT+set}" = set; then
6781 echo $ECHO_N "(cached) $ECHO_C" >&6
6785 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6792 test -z "$as_dir" && as_dir=.
6793 for ac_exec_ext in '' $ac_executable_extensions; do
6794 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6795 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
6796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6805 MSGFMT=$ac_cv_path_MSGFMT
6807 if test -n "$MSGFMT"; then
6808 echo "$as_me:$LINENO: result: $MSGFMT" >&5
6809 echo "${ECHO_T}$MSGFMT" >&6
6811 echo "$as_me:$LINENO: result: no" >&5
6812 echo "${ECHO_T}no" >&6
6815 test -n "$MSGFMT" && break
6817 test -n "$MSGFMT" || MSGFMT="no"
6819 if test "$MSGFMT" = "no"
6821 echo 'msgfmt program not found, disabling NLS !'
6823 USE_INCLUDED_LIBINTL=no
6826 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
6827 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6
6828 if test "${ac_cv_gnu_library_2+set}" = set; then
6829 echo $ECHO_N "(cached) $ECHO_C" >&6
6831 cat >conftest.$ac_ext <<_ACEOF
6834 cat confdefs.h >>conftest.$ac_ext
6835 cat >>conftest.$ac_ext <<_ACEOF
6836 /* end confdefs.h. */
6838 #include <features.h>
6839 #ifdef __GNU_LIBRARY__
6840 #if (__GLIBC__ >= 2)
6846 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6847 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
6848 ac_cv_gnu_library_2=yes
6850 ac_cv_gnu_library_2=no
6857 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
6858 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6
6860 GLIBC2="$ac_cv_gnu_library_2"
6864 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
6865 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
6866 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
6867 echo $ECHO_N "(cached) $ECHO_C" >&6
6869 ac_check_lib_save_LIBS=$LIBS
6870 LIBS="-lcposix $LIBS"
6871 cat >conftest.$ac_ext <<_ACEOF
6874 cat confdefs.h >>conftest.$ac_ext
6875 cat >>conftest.$ac_ext <<_ACEOF
6876 /* end confdefs.h. */
6878 /* Override any gcc2 internal prototype to avoid an error. */
6882 /* We use char because int might match the return type of a gcc2
6883 builtin and then its argument prototype would still apply. */
6893 rm -f conftest.$ac_objext conftest$ac_exeext
6894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6895 (eval $ac_link) 2>conftest.er1
6897 grep -v '^ *+' conftest.er1 >conftest.err
6899 cat conftest.err >&5
6900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6901 (exit $ac_status); } &&
6902 { ac_try='test -z "$ac_c_werror_flag"
6903 || test ! -s conftest.err'
6904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6908 (exit $ac_status); }; } &&
6909 { ac_try='test -s conftest$ac_exeext'
6910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6914 (exit $ac_status); }; }; then
6915 ac_cv_lib_cposix_strerror=yes
6917 echo "$as_me: failed program was:" >&5
6918 sed 's/^/| /' conftest.$ac_ext >&5
6920 ac_cv_lib_cposix_strerror=no
6922 rm -f conftest.err conftest.$ac_objext \
6923 conftest$ac_exeext conftest.$ac_ext
6924 LIBS=$ac_check_lib_save_LIBS
6926 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
6927 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
6928 if test $ac_cv_lib_cposix_strerror = yes; then
6929 LIBS="$LIBS -lcposix"
6934 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6935 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6936 if test "${ac_cv_header_stdc+set}" = set; then
6937 echo $ECHO_N "(cached) $ECHO_C" >&6
6939 cat >conftest.$ac_ext <<_ACEOF
6942 cat confdefs.h >>conftest.$ac_ext
6943 cat >>conftest.$ac_ext <<_ACEOF
6944 /* end confdefs.h. */
6958 rm -f conftest.$ac_objext
6959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6960 (eval $ac_compile) 2>conftest.er1
6962 grep -v '^ *+' conftest.er1 >conftest.err
6964 cat conftest.err >&5
6965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6966 (exit $ac_status); } &&
6967 { ac_try='test -z "$ac_c_werror_flag"
6968 || test ! -s conftest.err'
6969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973 (exit $ac_status); }; } &&
6974 { ac_try='test -s conftest.$ac_objext'
6975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6979 (exit $ac_status); }; }; then
6980 ac_cv_header_stdc=yes
6982 echo "$as_me: failed program was:" >&5
6983 sed 's/^/| /' conftest.$ac_ext >&5
6985 ac_cv_header_stdc=no
6987 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6989 if test $ac_cv_header_stdc = yes; then
6990 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6991 cat >conftest.$ac_ext <<_ACEOF
6994 cat confdefs.h >>conftest.$ac_ext
6995 cat >>conftest.$ac_ext <<_ACEOF
6996 /* end confdefs.h. */
7000 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7001 $EGREP "memchr" >/dev/null 2>&1; then
7004 ac_cv_header_stdc=no
7010 if test $ac_cv_header_stdc = yes; then
7011 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7012 cat >conftest.$ac_ext <<_ACEOF
7015 cat confdefs.h >>conftest.$ac_ext
7016 cat >>conftest.$ac_ext <<_ACEOF
7017 /* end confdefs.h. */
7021 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7022 $EGREP "free" >/dev/null 2>&1; then
7025 ac_cv_header_stdc=no
7031 if test $ac_cv_header_stdc = yes; then
7032 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7033 if test "$cross_compiling" = yes; then
7036 cat >conftest.$ac_ext <<_ACEOF
7039 cat confdefs.h >>conftest.$ac_ext
7040 cat >>conftest.$ac_ext <<_ACEOF
7041 /* end confdefs.h. */
7043 #if ((' ' & 0x0FF) == 0x020)
7044 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7045 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7047 # define ISLOWER(c) \
7048 (('a' <= (c) && (c) <= 'i') \
7049 || ('j' <= (c) && (c) <= 'r') \
7050 || ('s' <= (c) && (c) <= 'z'))
7051 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7054 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7059 for (i = 0; i < 256; i++)
7060 if (XOR (islower (i), ISLOWER (i))
7061 || toupper (i) != TOUPPER (i))
7066 rm -f conftest$ac_exeext
7067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7068 (eval $ac_link) 2>&5
7070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7071 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7076 (exit $ac_status); }; }; then
7079 echo "$as_me: program exited with status $ac_status" >&5
7080 echo "$as_me: failed program was:" >&5
7081 sed 's/^/| /' conftest.$ac_ext >&5
7084 ac_cv_header_stdc=no
7086 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7090 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7091 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7092 if test $ac_cv_header_stdc = yes; then
7094 cat >>confdefs.h <<\_ACEOF
7095 #define STDC_HEADERS 1
7100 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7101 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7102 if test "${ac_cv_c_const+set}" = set; then
7103 echo $ECHO_N "(cached) $ECHO_C" >&6
7105 cat >conftest.$ac_ext <<_ACEOF
7108 cat confdefs.h >>conftest.$ac_ext
7109 cat >>conftest.$ac_ext <<_ACEOF
7110 /* end confdefs.h. */
7115 /* FIXME: Include the comments suggested by Paul. */
7117 /* Ultrix mips cc rejects this. */
7118 typedef int charset[2];
7120 /* SunOS 4.1.1 cc rejects this. */
7121 char const *const *ccp;
7123 /* NEC SVR4.0.2 mips cc rejects this. */
7124 struct point {int x, y;};
7125 static struct point const zero = {0,0};
7126 /* AIX XL C 1.02.0.0 rejects this.
7127 It does not let you subtract one const X* pointer from another in
7128 an arm of an if-expression whose if-part is not a constant
7130 const char *g = "string";
7131 ccp = &g + (g ? g-g : 0);
7132 /* HPUX 7.0 cc rejects these. */
7135 ccp = (char const *const *) p;
7136 { /* SCO 3.2v4 cc rejects this. */
7138 char const *s = 0 ? (char *) 0 : (char const *) 0;
7142 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7144 const int *foo = &x[0];
7147 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7148 typedef const int *iptr;
7152 { /* AIX XL C 1.02.0.0 rejects this saying
7153 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7154 struct s { int j; const int *ap[3]; };
7155 struct s *b; b->j = 5;
7157 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7166 rm -f conftest.$ac_objext
7167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7168 (eval $ac_compile) 2>conftest.er1
7170 grep -v '^ *+' conftest.er1 >conftest.err
7172 cat conftest.err >&5
7173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7174 (exit $ac_status); } &&
7175 { ac_try='test -z "$ac_c_werror_flag"
7176 || test ! -s conftest.err'
7177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7181 (exit $ac_status); }; } &&
7182 { ac_try='test -s conftest.$ac_objext'
7183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7187 (exit $ac_status); }; }; then
7190 echo "$as_me: failed program was:" >&5
7191 sed 's/^/| /' conftest.$ac_ext >&5
7195 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7197 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7198 echo "${ECHO_T}$ac_cv_c_const" >&6
7199 if test $ac_cv_c_const = no; then
7201 cat >>confdefs.h <<\_ACEOF
7208 echo "$as_me:$LINENO: checking for signed" >&5
7209 echo $ECHO_N "checking for signed... $ECHO_C" >&6
7210 if test "${bh_cv_c_signed+set}" = set; then
7211 echo $ECHO_N "(cached) $ECHO_C" >&6
7213 cat >conftest.$ac_ext <<_ACEOF
7216 cat confdefs.h >>conftest.$ac_ext
7217 cat >>conftest.$ac_ext <<_ACEOF
7218 /* end confdefs.h. */
7228 rm -f conftest.$ac_objext
7229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7230 (eval $ac_compile) 2>conftest.er1
7232 grep -v '^ *+' conftest.er1 >conftest.err
7234 cat conftest.err >&5
7235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7236 (exit $ac_status); } &&
7237 { ac_try='test -z "$ac_c_werror_flag"
7238 || test ! -s conftest.err'
7239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7243 (exit $ac_status); }; } &&
7244 { ac_try='test -s conftest.$ac_objext'
7245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7249 (exit $ac_status); }; }; then
7252 echo "$as_me: failed program was:" >&5
7253 sed 's/^/| /' conftest.$ac_ext >&5
7257 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7259 echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
7260 echo "${ECHO_T}$bh_cv_c_signed" >&6
7261 if test $bh_cv_c_signed = no; then
7263 cat >>confdefs.h <<\_ACEOF
7269 echo "$as_me:$LINENO: checking for inline" >&5
7270 echo $ECHO_N "checking for inline... $ECHO_C" >&6
7271 if test "${ac_cv_c_inline+set}" = set; then
7272 echo $ECHO_N "(cached) $ECHO_C" >&6
7275 for ac_kw in inline __inline__ __inline; do
7276 cat >conftest.$ac_ext <<_ACEOF
7279 cat confdefs.h >>conftest.$ac_ext
7280 cat >>conftest.$ac_ext <<_ACEOF
7281 /* end confdefs.h. */
7284 static $ac_kw foo_t static_foo () {return 0; }
7285 $ac_kw foo_t foo () {return 0; }
7289 rm -f conftest.$ac_objext
7290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7291 (eval $ac_compile) 2>conftest.er1
7293 grep -v '^ *+' conftest.er1 >conftest.err
7295 cat conftest.err >&5
7296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7297 (exit $ac_status); } &&
7298 { ac_try='test -z "$ac_c_werror_flag"
7299 || test ! -s conftest.err'
7300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7304 (exit $ac_status); }; } &&
7305 { ac_try='test -s conftest.$ac_objext'
7306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310 (exit $ac_status); }; }; then
7311 ac_cv_c_inline=$ac_kw; break
7313 echo "$as_me: failed program was:" >&5
7314 sed 's/^/| /' conftest.$ac_ext >&5
7317 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7321 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7322 echo "${ECHO_T}$ac_cv_c_inline" >&6
7325 case $ac_cv_c_inline in
7328 case $ac_cv_c_inline in
7330 *) ac_val=$ac_cv_c_inline;;
7332 cat >>confdefs.h <<_ACEOF
7334 #define inline $ac_val
7340 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7350 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7351 inttypes.h stdint.h unistd.h
7353 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7354 echo "$as_me:$LINENO: checking for $ac_header" >&5
7355 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7356 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7357 echo $ECHO_N "(cached) $ECHO_C" >&6
7359 cat >conftest.$ac_ext <<_ACEOF
7362 cat confdefs.h >>conftest.$ac_ext
7363 cat >>conftest.$ac_ext <<_ACEOF
7364 /* end confdefs.h. */
7365 $ac_includes_default
7367 #include <$ac_header>
7369 rm -f conftest.$ac_objext
7370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7371 (eval $ac_compile) 2>conftest.er1
7373 grep -v '^ *+' conftest.er1 >conftest.err
7375 cat conftest.err >&5
7376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7377 (exit $ac_status); } &&
7378 { ac_try='test -z "$ac_c_werror_flag"
7379 || test ! -s conftest.err'
7380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7384 (exit $ac_status); }; } &&
7385 { ac_try='test -s conftest.$ac_objext'
7386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7390 (exit $ac_status); }; }; then
7391 eval "$as_ac_Header=yes"
7393 echo "$as_me: failed program was:" >&5
7394 sed 's/^/| /' conftest.$ac_ext >&5
7396 eval "$as_ac_Header=no"
7398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7400 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7401 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7402 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7403 cat >>confdefs.h <<_ACEOF
7404 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7412 echo "$as_me:$LINENO: checking for off_t" >&5
7413 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
7414 if test "${ac_cv_type_off_t+set}" = set; then
7415 echo $ECHO_N "(cached) $ECHO_C" >&6
7417 cat >conftest.$ac_ext <<_ACEOF
7420 cat confdefs.h >>conftest.$ac_ext
7421 cat >>conftest.$ac_ext <<_ACEOF
7422 /* end confdefs.h. */
7423 $ac_includes_default
7435 rm -f conftest.$ac_objext
7436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7437 (eval $ac_compile) 2>conftest.er1
7439 grep -v '^ *+' conftest.er1 >conftest.err
7441 cat conftest.err >&5
7442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7443 (exit $ac_status); } &&
7444 { ac_try='test -z "$ac_c_werror_flag"
7445 || test ! -s conftest.err'
7446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7450 (exit $ac_status); }; } &&
7451 { ac_try='test -s conftest.$ac_objext'
7452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7456 (exit $ac_status); }; }; then
7457 ac_cv_type_off_t=yes
7459 echo "$as_me: failed program was:" >&5
7460 sed 's/^/| /' conftest.$ac_ext >&5
7464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7466 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7467 echo "${ECHO_T}$ac_cv_type_off_t" >&6
7468 if test $ac_cv_type_off_t = yes; then
7472 cat >>confdefs.h <<_ACEOF
7478 echo "$as_me:$LINENO: checking for size_t" >&5
7479 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
7480 if test "${ac_cv_type_size_t+set}" = set; then
7481 echo $ECHO_N "(cached) $ECHO_C" >&6
7483 cat >conftest.$ac_ext <<_ACEOF
7486 cat confdefs.h >>conftest.$ac_ext
7487 cat >>conftest.$ac_ext <<_ACEOF
7488 /* end confdefs.h. */
7489 $ac_includes_default
7495 if (sizeof (size_t))
7501 rm -f conftest.$ac_objext
7502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7503 (eval $ac_compile) 2>conftest.er1
7505 grep -v '^ *+' conftest.er1 >conftest.err
7507 cat conftest.err >&5
7508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7509 (exit $ac_status); } &&
7510 { ac_try='test -z "$ac_c_werror_flag"
7511 || test ! -s conftest.err'
7512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7516 (exit $ac_status); }; } &&
7517 { ac_try='test -s conftest.$ac_objext'
7518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7522 (exit $ac_status); }; }; then
7523 ac_cv_type_size_t=yes
7525 echo "$as_me: failed program was:" >&5
7526 sed 's/^/| /' conftest.$ac_ext >&5
7528 ac_cv_type_size_t=no
7530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7532 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7533 echo "${ECHO_T}$ac_cv_type_size_t" >&6
7534 if test $ac_cv_type_size_t = yes; then
7538 cat >>confdefs.h <<_ACEOF
7539 #define size_t unsigned
7545 echo "$as_me:$LINENO: checking for long long" >&5
7546 echo $ECHO_N "checking for long long... $ECHO_C" >&6
7547 if test "${ac_cv_type_long_long+set}" = set; then
7548 echo $ECHO_N "(cached) $ECHO_C" >&6
7550 cat >conftest.$ac_ext <<_ACEOF
7553 cat confdefs.h >>conftest.$ac_ext
7554 cat >>conftest.$ac_ext <<_ACEOF
7555 /* end confdefs.h. */
7556 long long ll = 1LL; int i = 63;
7560 long long llmax = (long long) -1;
7561 return ll << i | ll >> i | llmax / ll | llmax % ll;
7566 rm -f conftest.$ac_objext conftest$ac_exeext
7567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7568 (eval $ac_link) 2>conftest.er1
7570 grep -v '^ *+' conftest.er1 >conftest.err
7572 cat conftest.err >&5
7573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7574 (exit $ac_status); } &&
7575 { ac_try='test -z "$ac_c_werror_flag"
7576 || test ! -s conftest.err'
7577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7581 (exit $ac_status); }; } &&
7582 { ac_try='test -s conftest$ac_exeext'
7583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7587 (exit $ac_status); }; }; then
7588 ac_cv_type_long_long=yes
7590 echo "$as_me: failed program was:" >&5
7591 sed 's/^/| /' conftest.$ac_ext >&5
7593 ac_cv_type_long_long=no
7595 rm -f conftest.err conftest.$ac_objext \
7596 conftest$ac_exeext conftest.$ac_ext
7598 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
7599 echo "${ECHO_T}$ac_cv_type_long_long" >&6
7600 if test $ac_cv_type_long_long = yes; then
7602 cat >>confdefs.h <<\_ACEOF
7603 #define HAVE_LONG_LONG 1
7609 echo "$as_me:$LINENO: checking for long double" >&5
7610 echo $ECHO_N "checking for long double... $ECHO_C" >&6
7611 if test "${gt_cv_c_long_double+set}" = set; then
7612 echo $ECHO_N "(cached) $ECHO_C" >&6
7614 if test "$GCC" = yes; then
7615 gt_cv_c_long_double=yes
7617 cat >conftest.$ac_ext <<_ACEOF
7620 cat confdefs.h >>conftest.$ac_ext
7621 cat >>conftest.$ac_ext <<_ACEOF
7622 /* end confdefs.h. */
7624 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
7625 long double foo = 0.0;
7626 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
7627 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
7637 rm -f conftest.$ac_objext
7638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7639 (eval $ac_compile) 2>conftest.er1
7641 grep -v '^ *+' conftest.er1 >conftest.err
7643 cat conftest.err >&5
7644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7645 (exit $ac_status); } &&
7646 { ac_try='test -z "$ac_c_werror_flag"
7647 || test ! -s conftest.err'
7648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7652 (exit $ac_status); }; } &&
7653 { ac_try='test -s conftest.$ac_objext'
7654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7658 (exit $ac_status); }; }; then
7659 gt_cv_c_long_double=yes
7661 echo "$as_me: failed program was:" >&5
7662 sed 's/^/| /' conftest.$ac_ext >&5
7664 gt_cv_c_long_double=no
7666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7669 echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
7670 echo "${ECHO_T}$gt_cv_c_long_double" >&6
7671 if test $gt_cv_c_long_double = yes; then
7673 cat >>confdefs.h <<\_ACEOF
7674 #define HAVE_LONG_DOUBLE 1
7680 echo "$as_me:$LINENO: checking for wchar_t" >&5
7681 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
7682 if test "${gt_cv_c_wchar_t+set}" = set; then
7683 echo $ECHO_N "(cached) $ECHO_C" >&6
7685 cat >conftest.$ac_ext <<_ACEOF
7688 cat confdefs.h >>conftest.$ac_ext
7689 cat >>conftest.$ac_ext <<_ACEOF
7690 /* end confdefs.h. */
7692 wchar_t foo = (wchar_t)'\0';
7701 rm -f conftest.$ac_objext
7702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7703 (eval $ac_compile) 2>conftest.er1
7705 grep -v '^ *+' conftest.er1 >conftest.err
7707 cat conftest.err >&5
7708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7709 (exit $ac_status); } &&
7710 { ac_try='test -z "$ac_c_werror_flag"
7711 || test ! -s conftest.err'
7712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7716 (exit $ac_status); }; } &&
7717 { ac_try='test -s conftest.$ac_objext'
7718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7722 (exit $ac_status); }; }; then
7725 echo "$as_me: failed program was:" >&5
7726 sed 's/^/| /' conftest.$ac_ext >&5
7730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7732 echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
7733 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6
7734 if test $gt_cv_c_wchar_t = yes; then
7736 cat >>confdefs.h <<\_ACEOF
7737 #define HAVE_WCHAR_T 1
7743 echo "$as_me:$LINENO: checking for wint_t" >&5
7744 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
7745 if test "${gt_cv_c_wint_t+set}" = set; then
7746 echo $ECHO_N "(cached) $ECHO_C" >&6
7748 cat >conftest.$ac_ext <<_ACEOF
7751 cat confdefs.h >>conftest.$ac_ext
7752 cat >>conftest.$ac_ext <<_ACEOF
7753 /* end confdefs.h. */
7755 wint_t foo = (wchar_t)'\0';
7764 rm -f conftest.$ac_objext
7765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7766 (eval $ac_compile) 2>conftest.er1
7768 grep -v '^ *+' conftest.er1 >conftest.err
7770 cat conftest.err >&5
7771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772 (exit $ac_status); } &&
7773 { ac_try='test -z "$ac_c_werror_flag"
7774 || test ! -s conftest.err'
7775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7779 (exit $ac_status); }; } &&
7780 { ac_try='test -s conftest.$ac_objext'
7781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785 (exit $ac_status); }; }; then
7788 echo "$as_me: failed program was:" >&5
7789 sed 's/^/| /' conftest.$ac_ext >&5
7793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7795 echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
7796 echo "${ECHO_T}$gt_cv_c_wint_t" >&6
7797 if test $gt_cv_c_wint_t = yes; then
7799 cat >>confdefs.h <<\_ACEOF
7800 #define HAVE_WINT_T 1
7806 echo "$as_me:$LINENO: checking for inttypes.h" >&5
7807 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
7808 if test "${gl_cv_header_inttypes_h+set}" = set; then
7809 echo $ECHO_N "(cached) $ECHO_C" >&6
7811 cat >conftest.$ac_ext <<_ACEOF
7814 cat confdefs.h >>conftest.$ac_ext
7815 cat >>conftest.$ac_ext <<_ACEOF
7816 /* end confdefs.h. */
7817 #include <sys/types.h>
7818 #include <inttypes.h>
7822 uintmax_t i = (uintmax_t) -1;
7827 rm -f conftest.$ac_objext
7828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7829 (eval $ac_compile) 2>conftest.er1
7831 grep -v '^ *+' conftest.er1 >conftest.err
7833 cat conftest.err >&5
7834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835 (exit $ac_status); } &&
7836 { ac_try='test -z "$ac_c_werror_flag"
7837 || test ! -s conftest.err'
7838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7842 (exit $ac_status); }; } &&
7843 { ac_try='test -s conftest.$ac_objext'
7844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7848 (exit $ac_status); }; }; then
7849 gl_cv_header_inttypes_h=yes
7851 echo "$as_me: failed program was:" >&5
7852 sed 's/^/| /' conftest.$ac_ext >&5
7854 gl_cv_header_inttypes_h=no
7856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7858 echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
7859 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6
7860 if test $gl_cv_header_inttypes_h = yes; then
7862 cat >>confdefs.h <<_ACEOF
7863 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
7869 echo "$as_me:$LINENO: checking for stdint.h" >&5
7870 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
7871 if test "${gl_cv_header_stdint_h+set}" = set; then
7872 echo $ECHO_N "(cached) $ECHO_C" >&6
7874 cat >conftest.$ac_ext <<_ACEOF
7877 cat confdefs.h >>conftest.$ac_ext
7878 cat >>conftest.$ac_ext <<_ACEOF
7879 /* end confdefs.h. */
7880 #include <sys/types.h>
7885 uintmax_t i = (uintmax_t) -1;
7890 rm -f conftest.$ac_objext
7891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7892 (eval $ac_compile) 2>conftest.er1
7894 grep -v '^ *+' conftest.er1 >conftest.err
7896 cat conftest.err >&5
7897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7898 (exit $ac_status); } &&
7899 { ac_try='test -z "$ac_c_werror_flag"
7900 || test ! -s conftest.err'
7901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7905 (exit $ac_status); }; } &&
7906 { ac_try='test -s conftest.$ac_objext'
7907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7911 (exit $ac_status); }; }; then
7912 gl_cv_header_stdint_h=yes
7914 echo "$as_me: failed program was:" >&5
7915 sed 's/^/| /' conftest.$ac_ext >&5
7917 gl_cv_header_stdint_h=no
7919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7921 echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
7922 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6
7923 if test $gl_cv_header_stdint_h = yes; then
7925 cat >>confdefs.h <<_ACEOF
7926 #define HAVE_STDINT_H_WITH_UINTMAX 1
7934 echo "$as_me:$LINENO: checking for intmax_t" >&5
7935 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
7936 if test "${gt_cv_c_intmax_t+set}" = set; then
7937 echo $ECHO_N "(cached) $ECHO_C" >&6
7939 cat >conftest.$ac_ext <<_ACEOF
7942 cat confdefs.h >>conftest.$ac_ext
7943 cat >>conftest.$ac_ext <<_ACEOF
7944 /* end confdefs.h. */
7948 #if HAVE_STDINT_H_WITH_UINTMAX
7951 #if HAVE_INTTYPES_H_WITH_UINTMAX
7952 #include <inttypes.h>
7963 rm -f conftest.$ac_objext
7964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7965 (eval $ac_compile) 2>conftest.er1
7967 grep -v '^ *+' conftest.er1 >conftest.err
7969 cat conftest.err >&5
7970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7971 (exit $ac_status); } &&
7972 { ac_try='test -z "$ac_c_werror_flag"
7973 || test ! -s conftest.err'
7974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978 (exit $ac_status); }; } &&
7979 { ac_try='test -s conftest.$ac_objext'
7980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984 (exit $ac_status); }; }; then
7985 gt_cv_c_intmax_t=yes
7987 echo "$as_me: failed program was:" >&5
7988 sed 's/^/| /' conftest.$ac_ext >&5
7992 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7994 echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
7995 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6
7996 if test $gt_cv_c_intmax_t = yes; then
7998 cat >>confdefs.h <<\_ACEOF
7999 #define HAVE_INTMAX_T 1
8006 echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
8007 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6
8008 if test "${gt_cv_func_printf_posix+set}" = set; then
8009 echo $ECHO_N "(cached) $ECHO_C" >&6
8012 if test "$cross_compiling" = yes; then
8014 cat >conftest.$ac_ext <<_ACEOF
8017 cat confdefs.h >>conftest.$ac_ext
8018 cat >>conftest.$ac_ext <<_ACEOF
8019 /* end confdefs.h. */
8021 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
8026 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8027 $EGREP "notposix" >/dev/null 2>&1; then
8028 gt_cv_func_printf_posix="guessing no"
8030 gt_cv_func_printf_posix="guessing yes"
8036 cat >conftest.$ac_ext <<_ACEOF
8039 cat confdefs.h >>conftest.$ac_ext
8040 cat >>conftest.$ac_ext <<_ACEOF
8041 /* end confdefs.h. */
8045 /* The string "%2$d %1$d", with dollar characters protected from the shell's
8046 dollar expansion (possibly an autoconf bug). */
8047 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
8048 static char buf[100];
8051 sprintf (buf, format, 33, 55);
8052 return (strcmp (buf, "55 33") != 0);
8055 rm -f conftest$ac_exeext
8056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8057 (eval $ac_link) 2>&5
8059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8060 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8065 (exit $ac_status); }; }; then
8066 gt_cv_func_printf_posix=yes
8068 echo "$as_me: program exited with status $ac_status" >&5
8069 echo "$as_me: failed program was:" >&5
8070 sed 's/^/| /' conftest.$ac_ext >&5
8073 gt_cv_func_printf_posix=no
8075 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8079 echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
8080 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6
8081 case $gt_cv_func_printf_posix in
8084 cat >>confdefs.h <<\_ACEOF
8085 #define HAVE_POSIX_PRINTF 1
8091 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8092 # for constant arguments. Useless!
8093 echo "$as_me:$LINENO: checking for working alloca.h" >&5
8094 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
8095 if test "${ac_cv_working_alloca_h+set}" = set; then
8096 echo $ECHO_N "(cached) $ECHO_C" >&6
8098 cat >conftest.$ac_ext <<_ACEOF
8101 cat confdefs.h >>conftest.$ac_ext
8102 cat >>conftest.$ac_ext <<_ACEOF
8103 /* end confdefs.h. */
8108 char *p = (char *) alloca (2 * sizeof (int));
8113 rm -f conftest.$ac_objext conftest$ac_exeext
8114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8115 (eval $ac_link) 2>conftest.er1
8117 grep -v '^ *+' conftest.er1 >conftest.err
8119 cat conftest.err >&5
8120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121 (exit $ac_status); } &&
8122 { ac_try='test -z "$ac_c_werror_flag"
8123 || test ! -s conftest.err'
8124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128 (exit $ac_status); }; } &&
8129 { ac_try='test -s conftest$ac_exeext'
8130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134 (exit $ac_status); }; }; then
8135 ac_cv_working_alloca_h=yes
8137 echo "$as_me: failed program was:" >&5
8138 sed 's/^/| /' conftest.$ac_ext >&5
8140 ac_cv_working_alloca_h=no
8142 rm -f conftest.err conftest.$ac_objext \
8143 conftest$ac_exeext conftest.$ac_ext
8145 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8146 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
8147 if test $ac_cv_working_alloca_h = yes; then
8149 cat >>confdefs.h <<\_ACEOF
8150 #define HAVE_ALLOCA_H 1
8155 echo "$as_me:$LINENO: checking for alloca" >&5
8156 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
8157 if test "${ac_cv_func_alloca_works+set}" = set; then
8158 echo $ECHO_N "(cached) $ECHO_C" >&6
8160 cat >conftest.$ac_ext <<_ACEOF
8163 cat confdefs.h >>conftest.$ac_ext
8164 cat >>conftest.$ac_ext <<_ACEOF
8165 /* end confdefs.h. */
8167 # define alloca __builtin_alloca
8170 # include <malloc.h>
8171 # define alloca _alloca
8174 # include <alloca.h>
8179 # ifndef alloca /* predefined by HP cc +Olibcalls */
8190 char *p = (char *) alloca (1);
8195 rm -f conftest.$ac_objext conftest$ac_exeext
8196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8197 (eval $ac_link) 2>conftest.er1
8199 grep -v '^ *+' conftest.er1 >conftest.err
8201 cat conftest.err >&5
8202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203 (exit $ac_status); } &&
8204 { ac_try='test -z "$ac_c_werror_flag"
8205 || test ! -s conftest.err'
8206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8210 (exit $ac_status); }; } &&
8211 { ac_try='test -s conftest$ac_exeext'
8212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8216 (exit $ac_status); }; }; then
8217 ac_cv_func_alloca_works=yes
8219 echo "$as_me: failed program was:" >&5
8220 sed 's/^/| /' conftest.$ac_ext >&5
8222 ac_cv_func_alloca_works=no
8224 rm -f conftest.err conftest.$ac_objext \
8225 conftest$ac_exeext conftest.$ac_ext
8227 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8228 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
8230 if test $ac_cv_func_alloca_works = yes; then
8232 cat >>confdefs.h <<\_ACEOF
8233 #define HAVE_ALLOCA 1
8237 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8238 # that cause trouble. Some versions do not even contain alloca or
8239 # contain a buggy version. If you still want to use their alloca,
8240 # use ar to extract alloca.o from them instead of compiling alloca.c.
8242 ALLOCA=alloca.$ac_objext
8244 cat >>confdefs.h <<\_ACEOF
8249 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8250 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
8251 if test "${ac_cv_os_cray+set}" = set; then
8252 echo $ECHO_N "(cached) $ECHO_C" >&6
8254 cat >conftest.$ac_ext <<_ACEOF
8257 cat confdefs.h >>conftest.$ac_ext
8258 cat >>conftest.$ac_ext <<_ACEOF
8259 /* end confdefs.h. */
8260 #if defined(CRAY) && ! defined(CRAY2)
8267 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8268 $EGREP "webecray" >/dev/null 2>&1; then
8276 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8277 echo "${ECHO_T}$ac_cv_os_cray" >&6
8278 if test $ac_cv_os_cray = yes; then
8279 for ac_func in _getb67 GETB67 getb67; do
8280 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8281 echo "$as_me:$LINENO: checking for $ac_func" >&5
8282 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8283 if eval "test \"\${$as_ac_var+set}\" = set"; then
8284 echo $ECHO_N "(cached) $ECHO_C" >&6
8286 cat >conftest.$ac_ext <<_ACEOF
8289 cat confdefs.h >>conftest.$ac_ext
8290 cat >>conftest.$ac_ext <<_ACEOF
8291 /* end confdefs.h. */
8292 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8293 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8294 #define $ac_func innocuous_$ac_func
8296 /* System header to define __stub macros and hopefully few prototypes,
8297 which can conflict with char $ac_func (); below.
8298 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8299 <limits.h> exists even on freestanding compilers. */
8302 # include <limits.h>
8304 # include <assert.h>
8309 /* Override any gcc2 internal prototype to avoid an error. */
8314 /* We use char because int might match the return type of a gcc2
8315 builtin and then its argument prototype would still apply. */
8317 /* The GNU C library defines this for functions which it implements
8318 to always fail with ENOSYS. Some functions are actually named
8319 something starting with __ and the normal name is an alias. */
8320 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8323 char (*f) () = $ac_func;
8332 return f != $ac_func;
8337 rm -f conftest.$ac_objext conftest$ac_exeext
8338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8339 (eval $ac_link) 2>conftest.er1
8341 grep -v '^ *+' conftest.er1 >conftest.err
8343 cat conftest.err >&5
8344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8345 (exit $ac_status); } &&
8346 { ac_try='test -z "$ac_c_werror_flag"
8347 || test ! -s conftest.err'
8348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8352 (exit $ac_status); }; } &&
8353 { ac_try='test -s conftest$ac_exeext'
8354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8358 (exit $ac_status); }; }; then
8359 eval "$as_ac_var=yes"
8361 echo "$as_me: failed program was:" >&5
8362 sed 's/^/| /' conftest.$ac_ext >&5
8364 eval "$as_ac_var=no"
8366 rm -f conftest.err conftest.$ac_objext \
8367 conftest$ac_exeext conftest.$ac_ext
8369 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8370 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8371 if test `eval echo '${'$as_ac_var'}'` = yes; then
8373 cat >>confdefs.h <<_ACEOF
8374 #define CRAY_STACKSEG_END $ac_func
8383 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8384 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
8385 if test "${ac_cv_c_stack_direction+set}" = set; then
8386 echo $ECHO_N "(cached) $ECHO_C" >&6
8388 if test "$cross_compiling" = yes; then
8389 ac_cv_c_stack_direction=0
8391 cat >conftest.$ac_ext <<_ACEOF
8394 cat confdefs.h >>conftest.$ac_ext
8395 cat >>conftest.$ac_ext <<_ACEOF
8396 /* end confdefs.h. */
8398 find_stack_direction ()
8400 static char *addr = 0;
8405 return find_stack_direction ();
8408 return (&dummy > addr) ? 1 : -1;
8414 exit (find_stack_direction () < 0);
8417 rm -f conftest$ac_exeext
8418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8419 (eval $ac_link) 2>&5
8421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427 (exit $ac_status); }; }; then
8428 ac_cv_c_stack_direction=1
8430 echo "$as_me: program exited with status $ac_status" >&5
8431 echo "$as_me: failed program was:" >&5
8432 sed 's/^/| /' conftest.$ac_ext >&5
8435 ac_cv_c_stack_direction=-1
8437 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8440 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8441 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
8443 cat >>confdefs.h <<_ACEOF
8444 #define STACK_DIRECTION $ac_cv_c_stack_direction
8452 for ac_header in stdlib.h unistd.h
8454 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8455 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8456 echo "$as_me:$LINENO: checking for $ac_header" >&5
8457 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8458 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8459 echo $ECHO_N "(cached) $ECHO_C" >&6
8461 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8462 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8464 # Is the header compilable?
8465 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8466 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8467 cat >conftest.$ac_ext <<_ACEOF
8470 cat confdefs.h >>conftest.$ac_ext
8471 cat >>conftest.$ac_ext <<_ACEOF
8472 /* end confdefs.h. */
8473 $ac_includes_default
8474 #include <$ac_header>
8476 rm -f conftest.$ac_objext
8477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8478 (eval $ac_compile) 2>conftest.er1
8480 grep -v '^ *+' conftest.er1 >conftest.err
8482 cat conftest.err >&5
8483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484 (exit $ac_status); } &&
8485 { ac_try='test -z "$ac_c_werror_flag"
8486 || test ! -s conftest.err'
8487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491 (exit $ac_status); }; } &&
8492 { ac_try='test -s conftest.$ac_objext'
8493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497 (exit $ac_status); }; }; then
8498 ac_header_compiler=yes
8500 echo "$as_me: failed program was:" >&5
8501 sed 's/^/| /' conftest.$ac_ext >&5
8503 ac_header_compiler=no
8505 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8506 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8507 echo "${ECHO_T}$ac_header_compiler" >&6
8509 # Is the header present?
8510 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8511 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8512 cat >conftest.$ac_ext <<_ACEOF
8515 cat confdefs.h >>conftest.$ac_ext
8516 cat >>conftest.$ac_ext <<_ACEOF
8517 /* end confdefs.h. */
8518 #include <$ac_header>
8520 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8521 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8523 grep -v '^ *+' conftest.er1 >conftest.err
8525 cat conftest.err >&5
8526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527 (exit $ac_status); } >/dev/null; then
8528 if test -s conftest.err; then
8529 ac_cpp_err=$ac_c_preproc_warn_flag
8530 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8537 if test -z "$ac_cpp_err"; then
8538 ac_header_preproc=yes
8540 echo "$as_me: failed program was:" >&5
8541 sed 's/^/| /' conftest.$ac_ext >&5
8543 ac_header_preproc=no
8545 rm -f conftest.err conftest.$ac_ext
8546 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8547 echo "${ECHO_T}$ac_header_preproc" >&6
8549 # So? What about this header?
8550 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8552 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8553 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8554 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8555 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8556 ac_header_preproc=yes
8559 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8560 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8561 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8562 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8563 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8564 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8565 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8566 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8567 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8568 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8569 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8570 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8573 ## ------------------------------------------ ##
8574 ## Report this to the AC_PACKAGE_NAME lists. ##
8575 ## ------------------------------------------ ##
8578 sed "s/^/$as_me: WARNING: /" >&2
8581 echo "$as_me:$LINENO: checking for $ac_header" >&5
8582 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8583 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8584 echo $ECHO_N "(cached) $ECHO_C" >&6
8586 eval "$as_ac_Header=\$ac_header_preproc"
8588 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8589 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8592 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8593 cat >>confdefs.h <<_ACEOF
8594 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8602 for ac_func in getpagesize
8604 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8605 echo "$as_me:$LINENO: checking for $ac_func" >&5
8606 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8607 if eval "test \"\${$as_ac_var+set}\" = set"; then
8608 echo $ECHO_N "(cached) $ECHO_C" >&6
8610 cat >conftest.$ac_ext <<_ACEOF
8613 cat confdefs.h >>conftest.$ac_ext
8614 cat >>conftest.$ac_ext <<_ACEOF
8615 /* end confdefs.h. */
8616 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8617 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8618 #define $ac_func innocuous_$ac_func
8620 /* System header to define __stub macros and hopefully few prototypes,
8621 which can conflict with char $ac_func (); below.
8622 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8623 <limits.h> exists even on freestanding compilers. */
8626 # include <limits.h>
8628 # include <assert.h>
8633 /* Override any gcc2 internal prototype to avoid an error. */
8638 /* We use char because int might match the return type of a gcc2
8639 builtin and then its argument prototype would still apply. */
8641 /* The GNU C library defines this for functions which it implements
8642 to always fail with ENOSYS. Some functions are actually named
8643 something starting with __ and the normal name is an alias. */
8644 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8647 char (*f) () = $ac_func;
8656 return f != $ac_func;
8661 rm -f conftest.$ac_objext conftest$ac_exeext
8662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8663 (eval $ac_link) 2>conftest.er1
8665 grep -v '^ *+' conftest.er1 >conftest.err
8667 cat conftest.err >&5
8668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8669 (exit $ac_status); } &&
8670 { ac_try='test -z "$ac_c_werror_flag"
8671 || test ! -s conftest.err'
8672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676 (exit $ac_status); }; } &&
8677 { ac_try='test -s conftest$ac_exeext'
8678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8682 (exit $ac_status); }; }; then
8683 eval "$as_ac_var=yes"
8685 echo "$as_me: failed program was:" >&5
8686 sed 's/^/| /' conftest.$ac_ext >&5
8688 eval "$as_ac_var=no"
8690 rm -f conftest.err conftest.$ac_objext \
8691 conftest$ac_exeext conftest.$ac_ext
8693 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8694 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8695 if test `eval echo '${'$as_ac_var'}'` = yes; then
8696 cat >>confdefs.h <<_ACEOF
8697 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8703 echo "$as_me:$LINENO: checking for working mmap" >&5
8704 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8705 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8706 echo $ECHO_N "(cached) $ECHO_C" >&6
8708 if test "$cross_compiling" = yes; then
8709 ac_cv_func_mmap_fixed_mapped=no
8711 cat >conftest.$ac_ext <<_ACEOF
8714 cat confdefs.h >>conftest.$ac_ext
8715 cat >>conftest.$ac_ext <<_ACEOF
8716 /* end confdefs.h. */
8717 $ac_includes_default
8718 /* malloc might have been renamed as rpl_malloc. */
8721 /* Thanks to Mike Haertel and Jim Avera for this test.
8722 Here is a matrix of mmap possibilities:
8723 mmap private not fixed
8724 mmap private fixed at somewhere currently unmapped
8725 mmap private fixed at somewhere already mapped
8726 mmap shared not fixed
8727 mmap shared fixed at somewhere currently unmapped
8728 mmap shared fixed at somewhere already mapped
8729 For private mappings, we should verify that changes cannot be read()
8730 back from the file, nor mmap's back from the file at a different
8731 address. (There have been systems where private was not correctly
8732 implemented like the infamous i386 svr4.0, and systems where the
8733 VM page cache was not coherent with the file system buffer cache
8734 like early versions of FreeBSD and possibly contemporary NetBSD.)
8735 For shared mappings, we should conversely verify that changes get
8736 propagated back to all the places they're supposed to be.
8738 Grep wants private fixed already mapped.
8739 The main things grep needs to know about mmap are:
8740 * does it exist and is it safe to write into the mmap'd area
8741 * how to use it (BSD variants) */
8744 #include <sys/mman.h>
8746 #if !STDC_HEADERS && !HAVE_STDLIB_H
8750 /* This mess was copied from the GNU getpagesize.h. */
8751 #if !HAVE_GETPAGESIZE
8752 /* Assume that all systems that can run configure have sys/param.h. */
8753 # if !HAVE_SYS_PARAM_H
8754 # define HAVE_SYS_PARAM_H 1
8757 # ifdef _SC_PAGESIZE
8758 # define getpagesize() sysconf(_SC_PAGESIZE)
8759 # else /* no _SC_PAGESIZE */
8760 # if HAVE_SYS_PARAM_H
8761 # include <sys/param.h>
8762 # ifdef EXEC_PAGESIZE
8763 # define getpagesize() EXEC_PAGESIZE
8764 # else /* no EXEC_PAGESIZE */
8766 # define getpagesize() NBPG * CLSIZE
8769 # endif /* no CLSIZE */
8770 # else /* no NBPG */
8772 # define getpagesize() NBPC
8773 # else /* no NBPC */
8775 # define getpagesize() PAGESIZE
8776 # endif /* PAGESIZE */
8777 # endif /* no NBPC */
8778 # endif /* no NBPG */
8779 # endif /* no EXEC_PAGESIZE */
8780 # else /* no HAVE_SYS_PARAM_H */
8781 # define getpagesize() 8192 /* punt totally */
8782 # endif /* no HAVE_SYS_PARAM_H */
8783 # endif /* no _SC_PAGESIZE */
8785 #endif /* no HAVE_GETPAGESIZE */
8790 char *data, *data2, *data3;
8794 pagesize = getpagesize ();
8796 /* First, make a file with some known garbage in it. */
8797 data = (char *) malloc (pagesize);
8800 for (i = 0; i < pagesize; ++i)
8801 *(data + i) = rand ();
8803 fd = creat ("conftest.mmap", 0600);
8806 if (write (fd, data, pagesize) != pagesize)
8810 /* Next, try to mmap the file at a fixed address which already has
8811 something else allocated at it. If we can, also make sure that
8812 we see the same garbage. */
8813 fd = open ("conftest.mmap", O_RDWR);
8816 data2 = (char *) malloc (2 * pagesize);
8819 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
8820 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8821 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8823 for (i = 0; i < pagesize; ++i)
8824 if (*(data + i) != *(data2 + i))
8827 /* Finally, make sure that changes to the mapped area do not
8828 percolate back to the file as seen by read(). (This is a bug on
8829 some variants of i386 svr4.0.) */
8830 for (i = 0; i < pagesize; ++i)
8831 *(data2 + i) = *(data2 + i) + 1;
8832 data3 = (char *) malloc (pagesize);
8835 if (read (fd, data3, pagesize) != pagesize)
8837 for (i = 0; i < pagesize; ++i)
8838 if (*(data + i) != *(data3 + i))
8844 rm -f conftest$ac_exeext
8845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8846 (eval $ac_link) 2>&5
8848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8849 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8854 (exit $ac_status); }; }; then
8855 ac_cv_func_mmap_fixed_mapped=yes
8857 echo "$as_me: program exited with status $ac_status" >&5
8858 echo "$as_me: failed program was:" >&5
8859 sed 's/^/| /' conftest.$ac_ext >&5
8862 ac_cv_func_mmap_fixed_mapped=no
8864 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8867 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8868 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
8869 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8871 cat >>confdefs.h <<\_ACEOF
8879 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
8880 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
8881 if test "${ac_cv_gnu_library_2_1+set}" = set; then
8882 echo $ECHO_N "(cached) $ECHO_C" >&6
8884 cat >conftest.$ac_ext <<_ACEOF
8887 cat confdefs.h >>conftest.$ac_ext
8888 cat >>conftest.$ac_ext <<_ACEOF
8889 /* end confdefs.h. */
8891 #include <features.h>
8892 #ifdef __GNU_LIBRARY__
8893 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
8899 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8900 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
8901 ac_cv_gnu_library_2_1=yes
8903 ac_cv_gnu_library_2_1=no
8910 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
8911 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
8913 GLIBC21="$ac_cv_gnu_library_2_1"
8918 echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
8919 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
8920 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
8921 echo $ECHO_N "(cached) $ECHO_C" >&6
8924 if test "$cross_compiling" = yes; then
8926 # Guess based on the CPU.
8928 alpha* | i3456786 | m68k | s390*)
8929 gt_cv_int_divbyzero_sigfpe="guessing yes";;
8931 gt_cv_int_divbyzero_sigfpe="guessing no";;
8935 cat >conftest.$ac_ext <<_ACEOF
8938 cat confdefs.h >>conftest.$ac_ext
8939 cat >>conftest.$ac_ext <<_ACEOF
8940 /* end confdefs.h. */
8947 sigfpe_handler (int sig)
8949 sigfpe_handler (sig) int sig;
8952 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
8953 exit (sig != SIGFPE);
8963 signal (SIGFPE, sigfpe_handler);
8964 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
8965 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
8966 signal (SIGTRAP, sigfpe_handler);
8968 /* Linux/SPARC yields signal SIGILL. */
8969 #if defined (__sparc__) && defined (__linux__)
8970 signal (SIGILL, sigfpe_handler);
8979 rm -f conftest$ac_exeext
8980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8981 (eval $ac_link) 2>&5
8983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8984 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8989 (exit $ac_status); }; }; then
8990 gt_cv_int_divbyzero_sigfpe=yes
8992 echo "$as_me: program exited with status $ac_status" >&5
8993 echo "$as_me: failed program was:" >&5
8994 sed 's/^/| /' conftest.$ac_ext >&5
8997 gt_cv_int_divbyzero_sigfpe=no
8999 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9003 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
9004 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
9005 case "$gt_cv_int_divbyzero_sigfpe" in
9010 cat >>confdefs.h <<_ACEOF
9011 #define INTDIV0_RAISES_SIGFPE $value
9016 echo "$as_me:$LINENO: checking for unsigned long long" >&5
9017 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
9018 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
9019 echo $ECHO_N "(cached) $ECHO_C" >&6
9021 cat >conftest.$ac_ext <<_ACEOF
9024 cat confdefs.h >>conftest.$ac_ext
9025 cat >>conftest.$ac_ext <<_ACEOF
9026 /* end confdefs.h. */
9027 unsigned long long ull = 1ULL; int i = 63;
9031 unsigned long long ullmax = (unsigned long long) -1;
9032 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
9037 rm -f conftest.$ac_objext conftest$ac_exeext
9038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9039 (eval $ac_link) 2>conftest.er1
9041 grep -v '^ *+' conftest.er1 >conftest.err
9043 cat conftest.err >&5
9044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9045 (exit $ac_status); } &&
9046 { ac_try='test -z "$ac_c_werror_flag"
9047 || test ! -s conftest.err'
9048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9052 (exit $ac_status); }; } &&
9053 { ac_try='test -s conftest$ac_exeext'
9054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9058 (exit $ac_status); }; }; then
9059 ac_cv_type_unsigned_long_long=yes
9061 echo "$as_me: failed program was:" >&5
9062 sed 's/^/| /' conftest.$ac_ext >&5
9064 ac_cv_type_unsigned_long_long=no
9066 rm -f conftest.err conftest.$ac_objext \
9067 conftest$ac_exeext conftest.$ac_ext
9069 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
9070 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
9071 if test $ac_cv_type_unsigned_long_long = yes; then
9073 cat >>confdefs.h <<\_ACEOF
9074 #define HAVE_UNSIGNED_LONG_LONG 1
9082 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
9084 test $ac_cv_type_unsigned_long_long = yes \
9085 && ac_type='unsigned long long' \
9086 || ac_type='unsigned long'
9088 cat >>confdefs.h <<_ACEOF
9089 #define uintmax_t $ac_type
9094 cat >>confdefs.h <<\_ACEOF
9095 #define HAVE_UINTMAX_T 1
9101 echo "$as_me:$LINENO: checking for inttypes.h" >&5
9102 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
9103 if test "${gt_cv_header_inttypes_h+set}" = set; then
9104 echo $ECHO_N "(cached) $ECHO_C" >&6
9107 cat >conftest.$ac_ext <<_ACEOF
9110 cat confdefs.h >>conftest.$ac_ext
9111 cat >>conftest.$ac_ext <<_ACEOF
9112 /* end confdefs.h. */
9113 #include <sys/types.h>
9114 #include <inttypes.h>
9123 rm -f conftest.$ac_objext
9124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9125 (eval $ac_compile) 2>conftest.er1
9127 grep -v '^ *+' conftest.er1 >conftest.err
9129 cat conftest.err >&5
9130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131 (exit $ac_status); } &&
9132 { ac_try='test -z "$ac_c_werror_flag"
9133 || test ! -s conftest.err'
9134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9138 (exit $ac_status); }; } &&
9139 { ac_try='test -s conftest.$ac_objext'
9140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9144 (exit $ac_status); }; }; then
9145 gt_cv_header_inttypes_h=yes
9147 echo "$as_me: failed program was:" >&5
9148 sed 's/^/| /' conftest.$ac_ext >&5
9150 gt_cv_header_inttypes_h=no
9152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9155 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
9156 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
9157 if test $gt_cv_header_inttypes_h = yes; then
9159 cat >>confdefs.h <<_ACEOF
9160 #define HAVE_INTTYPES_H 1
9167 if test $gt_cv_header_inttypes_h = yes; then
9168 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
9169 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
9170 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
9171 echo $ECHO_N "(cached) $ECHO_C" >&6
9174 cat >conftest.$ac_ext <<_ACEOF
9177 cat confdefs.h >>conftest.$ac_ext
9178 cat >>conftest.$ac_ext <<_ACEOF
9179 /* end confdefs.h. */
9180 #include <inttypes.h>
9193 rm -f conftest.$ac_objext
9194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9195 (eval $ac_compile) 2>conftest.er1
9197 grep -v '^ *+' conftest.er1 >conftest.err
9199 cat conftest.err >&5
9200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9201 (exit $ac_status); } &&
9202 { ac_try='test -z "$ac_c_werror_flag"
9203 || test ! -s conftest.err'
9204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9208 (exit $ac_status); }; } &&
9209 { ac_try='test -s conftest.$ac_objext'
9210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9214 (exit $ac_status); }; }; then
9215 gt_cv_inttypes_pri_broken=no
9217 echo "$as_me: failed program was:" >&5
9218 sed 's/^/| /' conftest.$ac_ext >&5
9220 gt_cv_inttypes_pri_broken=yes
9222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9225 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
9226 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
9228 if test "$gt_cv_inttypes_pri_broken" = yes; then
9230 cat >>confdefs.h <<_ACEOF
9231 #define PRI_MACROS_BROKEN 1
9238 for ac_header in stdint.h
9240 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9241 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9242 echo "$as_me:$LINENO: checking for $ac_header" >&5
9243 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9244 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9245 echo $ECHO_N "(cached) $ECHO_C" >&6
9247 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9248 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9250 # Is the header compilable?
9251 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9252 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9253 cat >conftest.$ac_ext <<_ACEOF
9256 cat confdefs.h >>conftest.$ac_ext
9257 cat >>conftest.$ac_ext <<_ACEOF
9258 /* end confdefs.h. */
9259 $ac_includes_default
9260 #include <$ac_header>
9262 rm -f conftest.$ac_objext
9263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9264 (eval $ac_compile) 2>conftest.er1
9266 grep -v '^ *+' conftest.er1 >conftest.err
9268 cat conftest.err >&5
9269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9270 (exit $ac_status); } &&
9271 { ac_try='test -z "$ac_c_werror_flag"
9272 || test ! -s conftest.err'
9273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9277 (exit $ac_status); }; } &&
9278 { ac_try='test -s conftest.$ac_objext'
9279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9283 (exit $ac_status); }; }; then
9284 ac_header_compiler=yes
9286 echo "$as_me: failed program was:" >&5
9287 sed 's/^/| /' conftest.$ac_ext >&5
9289 ac_header_compiler=no
9291 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9292 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9293 echo "${ECHO_T}$ac_header_compiler" >&6
9295 # Is the header present?
9296 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9297 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9298 cat >conftest.$ac_ext <<_ACEOF
9301 cat confdefs.h >>conftest.$ac_ext
9302 cat >>conftest.$ac_ext <<_ACEOF
9303 /* end confdefs.h. */
9304 #include <$ac_header>
9306 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9307 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9309 grep -v '^ *+' conftest.er1 >conftest.err
9311 cat conftest.err >&5
9312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9313 (exit $ac_status); } >/dev/null; then
9314 if test -s conftest.err; then
9315 ac_cpp_err=$ac_c_preproc_warn_flag
9316 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9323 if test -z "$ac_cpp_err"; then
9324 ac_header_preproc=yes
9326 echo "$as_me: failed program was:" >&5
9327 sed 's/^/| /' conftest.$ac_ext >&5
9329 ac_header_preproc=no
9331 rm -f conftest.err conftest.$ac_ext
9332 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9333 echo "${ECHO_T}$ac_header_preproc" >&6
9335 # So? What about this header?
9336 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9338 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9339 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9340 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9341 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9342 ac_header_preproc=yes
9345 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9346 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9347 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9348 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9349 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9350 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9351 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9352 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9353 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9354 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9355 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9356 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9359 ## ------------------------------------------ ##
9360 ## Report this to the AC_PACKAGE_NAME lists. ##
9361 ## ------------------------------------------ ##
9364 sed "s/^/$as_me: WARNING: /" >&2
9367 echo "$as_me:$LINENO: checking for $ac_header" >&5
9368 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9369 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9370 echo $ECHO_N "(cached) $ECHO_C" >&6
9372 eval "$as_ac_Header=\$ac_header_preproc"
9374 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9375 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9378 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9379 cat >>confdefs.h <<_ACEOF
9380 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9387 echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
9388 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6
9390 cat >conftest.$ac_ext <<_ACEOF
9393 cat confdefs.h >>conftest.$ac_ext
9394 cat >>conftest.$ac_ext <<_ACEOF
9395 /* end confdefs.h. */
9406 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9407 $EGREP "Found it" >/dev/null 2>&1; then
9412 if test -z "$result"; then
9413 if test "$cross_compiling" = yes; then
9414 # Depending upon the size, compute the lo and hi bounds.
9415 cat >conftest.$ac_ext <<_ACEOF
9418 cat confdefs.h >>conftest.$ac_ext
9419 cat >>conftest.$ac_ext <<_ACEOF
9420 /* end confdefs.h. */
9425 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
9432 rm -f conftest.$ac_objext
9433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9434 (eval $ac_compile) 2>conftest.er1
9436 grep -v '^ *+' conftest.er1 >conftest.err
9438 cat conftest.err >&5
9439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9440 (exit $ac_status); } &&
9441 { ac_try='test -z "$ac_c_werror_flag"
9442 || test ! -s conftest.err'
9443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9447 (exit $ac_status); }; } &&
9448 { ac_try='test -s conftest.$ac_objext'
9449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9453 (exit $ac_status); }; }; then
9456 cat >conftest.$ac_ext <<_ACEOF
9459 cat confdefs.h >>conftest.$ac_ext
9460 cat >>conftest.$ac_ext <<_ACEOF
9461 /* end confdefs.h. */
9466 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
9473 rm -f conftest.$ac_objext
9474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9475 (eval $ac_compile) 2>conftest.er1
9477 grep -v '^ *+' conftest.er1 >conftest.err
9479 cat conftest.err >&5
9480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9481 (exit $ac_status); } &&
9482 { ac_try='test -z "$ac_c_werror_flag"
9483 || test ! -s conftest.err'
9484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9488 (exit $ac_status); }; } &&
9489 { ac_try='test -s conftest.$ac_objext'
9490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9494 (exit $ac_status); }; }; then
9495 ac_hi=$ac_mid; break
9497 echo "$as_me: failed program was:" >&5
9498 sed 's/^/| /' conftest.$ac_ext >&5
9500 ac_lo=`expr $ac_mid + 1`
9501 if test $ac_lo -le $ac_mid; then
9505 ac_mid=`expr 2 '*' $ac_mid + 1`
9507 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9510 echo "$as_me: failed program was:" >&5
9511 sed 's/^/| /' conftest.$ac_ext >&5
9513 cat >conftest.$ac_ext <<_ACEOF
9516 cat confdefs.h >>conftest.$ac_ext
9517 cat >>conftest.$ac_ext <<_ACEOF
9518 /* end confdefs.h. */
9523 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
9530 rm -f conftest.$ac_objext
9531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9532 (eval $ac_compile) 2>conftest.er1
9534 grep -v '^ *+' conftest.er1 >conftest.err
9536 cat conftest.err >&5
9537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9538 (exit $ac_status); } &&
9539 { ac_try='test -z "$ac_c_werror_flag"
9540 || test ! -s conftest.err'
9541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9545 (exit $ac_status); }; } &&
9546 { ac_try='test -s conftest.$ac_objext'
9547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9551 (exit $ac_status); }; }; then
9554 cat >conftest.$ac_ext <<_ACEOF
9557 cat confdefs.h >>conftest.$ac_ext
9558 cat >>conftest.$ac_ext <<_ACEOF
9559 /* end confdefs.h. */
9564 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
9571 rm -f conftest.$ac_objext
9572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9573 (eval $ac_compile) 2>conftest.er1
9575 grep -v '^ *+' conftest.er1 >conftest.err
9577 cat conftest.err >&5
9578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9579 (exit $ac_status); } &&
9580 { ac_try='test -z "$ac_c_werror_flag"
9581 || test ! -s conftest.err'
9582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9586 (exit $ac_status); }; } &&
9587 { ac_try='test -s conftest.$ac_objext'
9588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9592 (exit $ac_status); }; }; then
9593 ac_lo=$ac_mid; break
9595 echo "$as_me: failed program was:" >&5
9596 sed 's/^/| /' conftest.$ac_ext >&5
9598 ac_hi=`expr '(' $ac_mid ')' - 1`
9599 if test $ac_mid -le $ac_hi; then
9603 ac_mid=`expr 2 '*' $ac_mid`
9605 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9608 echo "$as_me: failed program was:" >&5
9609 sed 's/^/| /' conftest.$ac_ext >&5
9613 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9615 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9616 # Binary search between lo and hi bounds.
9617 while test "x$ac_lo" != "x$ac_hi"; do
9618 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9619 cat >conftest.$ac_ext <<_ACEOF
9622 cat confdefs.h >>conftest.$ac_ext
9623 cat >>conftest.$ac_ext <<_ACEOF
9624 /* end confdefs.h. */
9629 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
9636 rm -f conftest.$ac_objext
9637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9638 (eval $ac_compile) 2>conftest.er1
9640 grep -v '^ *+' conftest.er1 >conftest.err
9642 cat conftest.err >&5
9643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9644 (exit $ac_status); } &&
9645 { ac_try='test -z "$ac_c_werror_flag"
9646 || test ! -s conftest.err'
9647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9651 (exit $ac_status); }; } &&
9652 { ac_try='test -s conftest.$ac_objext'
9653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9657 (exit $ac_status); }; }; then
9660 echo "$as_me: failed program was:" >&5
9661 sed 's/^/| /' conftest.$ac_ext >&5
9663 ac_lo=`expr '(' $ac_mid ')' + 1`
9665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9672 if test "$cross_compiling" = yes; then
9673 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9674 See \`config.log' for more details." >&5
9675 echo "$as_me: error: cannot run test program while cross compiling
9676 See \`config.log' for more details." >&2;}
9677 { (exit 1); exit 1; }; }
9679 cat >conftest.$ac_ext <<_ACEOF
9682 cat confdefs.h >>conftest.$ac_ext
9683 cat >>conftest.$ac_ext <<_ACEOF
9684 /* end confdefs.h. */
9686 long longval () { return ~(size_t)0 / 10; }
9687 unsigned long ulongval () { return ~(size_t)0 / 10; }
9694 FILE *f = fopen ("conftest.val", "w");
9697 if ((~(size_t)0 / 10) < 0)
9699 long i = longval ();
9700 if (i != (~(size_t)0 / 10))
9702 fprintf (f, "%ld\n", i);
9706 unsigned long i = ulongval ();
9707 if (i != (~(size_t)0 / 10))
9709 fprintf (f, "%lu\n", i);
9711 exit (ferror (f) || fclose (f) != 0);
9717 rm -f conftest$ac_exeext
9718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9719 (eval $ac_link) 2>&5
9721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9722 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9727 (exit $ac_status); }; }; then
9728 res_hi=`cat conftest.val`
9730 echo "$as_me: program exited with status $ac_status" >&5
9731 echo "$as_me: failed program was:" >&5
9732 sed 's/^/| /' conftest.$ac_ext >&5
9737 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9741 if test "$cross_compiling" = yes; then
9742 # Depending upon the size, compute the lo and hi bounds.
9743 cat >conftest.$ac_ext <<_ACEOF
9746 cat confdefs.h >>conftest.$ac_ext
9747 cat >>conftest.$ac_ext <<_ACEOF
9748 /* end confdefs.h. */
9753 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
9760 rm -f conftest.$ac_objext
9761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9762 (eval $ac_compile) 2>conftest.er1
9764 grep -v '^ *+' conftest.er1 >conftest.err
9766 cat conftest.err >&5
9767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9768 (exit $ac_status); } &&
9769 { ac_try='test -z "$ac_c_werror_flag"
9770 || test ! -s conftest.err'
9771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775 (exit $ac_status); }; } &&
9776 { ac_try='test -s conftest.$ac_objext'
9777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781 (exit $ac_status); }; }; then
9784 cat >conftest.$ac_ext <<_ACEOF
9787 cat confdefs.h >>conftest.$ac_ext
9788 cat >>conftest.$ac_ext <<_ACEOF
9789 /* end confdefs.h. */
9794 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
9801 rm -f conftest.$ac_objext
9802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9803 (eval $ac_compile) 2>conftest.er1
9805 grep -v '^ *+' conftest.er1 >conftest.err
9807 cat conftest.err >&5
9808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9809 (exit $ac_status); } &&
9810 { ac_try='test -z "$ac_c_werror_flag"
9811 || test ! -s conftest.err'
9812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9816 (exit $ac_status); }; } &&
9817 { ac_try='test -s conftest.$ac_objext'
9818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822 (exit $ac_status); }; }; then
9823 ac_hi=$ac_mid; break
9825 echo "$as_me: failed program was:" >&5
9826 sed 's/^/| /' conftest.$ac_ext >&5
9828 ac_lo=`expr $ac_mid + 1`
9829 if test $ac_lo -le $ac_mid; then
9833 ac_mid=`expr 2 '*' $ac_mid + 1`
9835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9838 echo "$as_me: failed program was:" >&5
9839 sed 's/^/| /' conftest.$ac_ext >&5
9841 cat >conftest.$ac_ext <<_ACEOF
9844 cat confdefs.h >>conftest.$ac_ext
9845 cat >>conftest.$ac_ext <<_ACEOF
9846 /* end confdefs.h. */
9851 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
9858 rm -f conftest.$ac_objext
9859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9860 (eval $ac_compile) 2>conftest.er1
9862 grep -v '^ *+' conftest.er1 >conftest.err
9864 cat conftest.err >&5
9865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866 (exit $ac_status); } &&
9867 { ac_try='test -z "$ac_c_werror_flag"
9868 || test ! -s conftest.err'
9869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9873 (exit $ac_status); }; } &&
9874 { ac_try='test -s conftest.$ac_objext'
9875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879 (exit $ac_status); }; }; then
9882 cat >conftest.$ac_ext <<_ACEOF
9885 cat confdefs.h >>conftest.$ac_ext
9886 cat >>conftest.$ac_ext <<_ACEOF
9887 /* end confdefs.h. */
9892 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
9899 rm -f conftest.$ac_objext
9900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9901 (eval $ac_compile) 2>conftest.er1
9903 grep -v '^ *+' conftest.er1 >conftest.err
9905 cat conftest.err >&5
9906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9907 (exit $ac_status); } &&
9908 { ac_try='test -z "$ac_c_werror_flag"
9909 || test ! -s conftest.err'
9910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9914 (exit $ac_status); }; } &&
9915 { ac_try='test -s conftest.$ac_objext'
9916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9920 (exit $ac_status); }; }; then
9921 ac_lo=$ac_mid; break
9923 echo "$as_me: failed program was:" >&5
9924 sed 's/^/| /' conftest.$ac_ext >&5
9926 ac_hi=`expr '(' $ac_mid ')' - 1`
9927 if test $ac_mid -le $ac_hi; then
9931 ac_mid=`expr 2 '*' $ac_mid`
9933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9936 echo "$as_me: failed program was:" >&5
9937 sed 's/^/| /' conftest.$ac_ext >&5
9941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9943 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9944 # Binary search between lo and hi bounds.
9945 while test "x$ac_lo" != "x$ac_hi"; do
9946 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9947 cat >conftest.$ac_ext <<_ACEOF
9950 cat confdefs.h >>conftest.$ac_ext
9951 cat >>conftest.$ac_ext <<_ACEOF
9952 /* end confdefs.h. */
9957 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
9964 rm -f conftest.$ac_objext
9965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9966 (eval $ac_compile) 2>conftest.er1
9968 grep -v '^ *+' conftest.er1 >conftest.err
9970 cat conftest.err >&5
9971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972 (exit $ac_status); } &&
9973 { ac_try='test -z "$ac_c_werror_flag"
9974 || test ! -s conftest.err'
9975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979 (exit $ac_status); }; } &&
9980 { ac_try='test -s conftest.$ac_objext'
9981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9985 (exit $ac_status); }; }; then
9988 echo "$as_me: failed program was:" >&5
9989 sed 's/^/| /' conftest.$ac_ext >&5
9991 ac_lo=`expr '(' $ac_mid ')' + 1`
9993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10000 if test "$cross_compiling" = yes; then
10001 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10002 See \`config.log' for more details." >&5
10003 echo "$as_me: error: cannot run test program while cross compiling
10004 See \`config.log' for more details." >&2;}
10005 { (exit 1); exit 1; }; }
10007 cat >conftest.$ac_ext <<_ACEOF
10010 cat confdefs.h >>conftest.$ac_ext
10011 cat >>conftest.$ac_ext <<_ACEOF
10012 /* end confdefs.h. */
10013 #include <stddef.h>
10014 long longval () { return ~(size_t)0 % 10; }
10015 unsigned long ulongval () { return ~(size_t)0 % 10; }
10017 #include <stdlib.h>
10022 FILE *f = fopen ("conftest.val", "w");
10025 if ((~(size_t)0 % 10) < 0)
10027 long i = longval ();
10028 if (i != (~(size_t)0 % 10))
10030 fprintf (f, "%ld\n", i);
10034 unsigned long i = ulongval ();
10035 if (i != (~(size_t)0 % 10))
10037 fprintf (f, "%lu\n", i);
10039 exit (ferror (f) || fclose (f) != 0);
10045 rm -f conftest$ac_exeext
10046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10047 (eval $ac_link) 2>&5
10049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10052 (eval $ac_try) 2>&5
10054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055 (exit $ac_status); }; }; then
10056 res_lo=`cat conftest.val`
10058 echo "$as_me: program exited with status $ac_status" >&5
10059 echo "$as_me: failed program was:" >&5
10060 sed 's/^/| /' conftest.$ac_ext >&5
10062 ( exit $ac_status )
10065 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10069 if test "$cross_compiling" = yes; then
10070 # Depending upon the size, compute the lo and hi bounds.
10071 cat >conftest.$ac_ext <<_ACEOF
10074 cat confdefs.h >>conftest.$ac_ext
10075 cat >>conftest.$ac_ext <<_ACEOF
10076 /* end confdefs.h. */
10077 #include <stddef.h>
10081 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
10088 rm -f conftest.$ac_objext
10089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10090 (eval $ac_compile) 2>conftest.er1
10092 grep -v '^ *+' conftest.er1 >conftest.err
10094 cat conftest.err >&5
10095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10096 (exit $ac_status); } &&
10097 { ac_try='test -z "$ac_c_werror_flag"
10098 || test ! -s conftest.err'
10099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10100 (eval $ac_try) 2>&5
10102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10103 (exit $ac_status); }; } &&
10104 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
10112 cat >conftest.$ac_ext <<_ACEOF
10115 cat confdefs.h >>conftest.$ac_ext
10116 cat >>conftest.$ac_ext <<_ACEOF
10117 /* end confdefs.h. */
10118 #include <stddef.h>
10122 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10129 rm -f conftest.$ac_objext
10130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10131 (eval $ac_compile) 2>conftest.er1
10133 grep -v '^ *+' conftest.er1 >conftest.err
10135 cat conftest.err >&5
10136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10137 (exit $ac_status); } &&
10138 { ac_try='test -z "$ac_c_werror_flag"
10139 || test ! -s conftest.err'
10140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10141 (eval $ac_try) 2>&5
10143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10144 (exit $ac_status); }; } &&
10145 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
10151 ac_hi=$ac_mid; break
10153 echo "$as_me: failed program was:" >&5
10154 sed 's/^/| /' conftest.$ac_ext >&5
10156 ac_lo=`expr $ac_mid + 1`
10157 if test $ac_lo -le $ac_mid; then
10161 ac_mid=`expr 2 '*' $ac_mid + 1`
10163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10166 echo "$as_me: failed program was:" >&5
10167 sed 's/^/| /' conftest.$ac_ext >&5
10169 cat >conftest.$ac_ext <<_ACEOF
10172 cat confdefs.h >>conftest.$ac_ext
10173 cat >>conftest.$ac_ext <<_ACEOF
10174 /* end confdefs.h. */
10175 #include <stddef.h>
10179 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
10186 rm -f conftest.$ac_objext
10187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10188 (eval $ac_compile) 2>conftest.er1
10190 grep -v '^ *+' conftest.er1 >conftest.err
10192 cat conftest.err >&5
10193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194 (exit $ac_status); } &&
10195 { ac_try='test -z "$ac_c_werror_flag"
10196 || test ! -s conftest.err'
10197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10198 (eval $ac_try) 2>&5
10200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10201 (exit $ac_status); }; } &&
10202 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
10210 cat >conftest.$ac_ext <<_ACEOF
10213 cat confdefs.h >>conftest.$ac_ext
10214 cat >>conftest.$ac_ext <<_ACEOF
10215 /* end confdefs.h. */
10216 #include <stddef.h>
10220 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
10227 rm -f conftest.$ac_objext
10228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10229 (eval $ac_compile) 2>conftest.er1
10231 grep -v '^ *+' conftest.er1 >conftest.err
10233 cat conftest.err >&5
10234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10235 (exit $ac_status); } &&
10236 { ac_try='test -z "$ac_c_werror_flag"
10237 || test ! -s conftest.err'
10238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10239 (eval $ac_try) 2>&5
10241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242 (exit $ac_status); }; } &&
10243 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
10249 ac_lo=$ac_mid; break
10251 echo "$as_me: failed program was:" >&5
10252 sed 's/^/| /' conftest.$ac_ext >&5
10254 ac_hi=`expr '(' $ac_mid ')' - 1`
10255 if test $ac_mid -le $ac_hi; then
10259 ac_mid=`expr 2 '*' $ac_mid`
10261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10264 echo "$as_me: failed program was:" >&5
10265 sed 's/^/| /' conftest.$ac_ext >&5
10269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10272 # Binary search between lo and hi bounds.
10273 while test "x$ac_lo" != "x$ac_hi"; do
10274 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10275 cat >conftest.$ac_ext <<_ACEOF
10278 cat confdefs.h >>conftest.$ac_ext
10279 cat >>conftest.$ac_ext <<_ACEOF
10280 /* end confdefs.h. */
10281 #include <stddef.h>
10285 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10292 rm -f conftest.$ac_objext
10293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10294 (eval $ac_compile) 2>conftest.er1
10296 grep -v '^ *+' conftest.er1 >conftest.err
10298 cat conftest.err >&5
10299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300 (exit $ac_status); } &&
10301 { ac_try='test -z "$ac_c_werror_flag"
10302 || test ! -s conftest.err'
10303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10304 (eval $ac_try) 2>&5
10306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307 (exit $ac_status); }; } &&
10308 { ac_try='test -s conftest.$ac_objext'
10309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10310 (eval $ac_try) 2>&5
10312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10313 (exit $ac_status); }; }; then
10316 echo "$as_me: failed program was:" >&5
10317 sed 's/^/| /' conftest.$ac_ext >&5
10319 ac_lo=`expr '(' $ac_mid ')' + 1`
10321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10324 ?*) fits_in_uint=$ac_lo;;
10328 if test "$cross_compiling" = yes; then
10329 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10330 See \`config.log' for more details." >&5
10331 echo "$as_me: error: cannot run test program while cross compiling
10332 See \`config.log' for more details." >&2;}
10333 { (exit 1); exit 1; }; }
10335 cat >conftest.$ac_ext <<_ACEOF
10338 cat confdefs.h >>conftest.$ac_ext
10339 cat >>conftest.$ac_ext <<_ACEOF
10340 /* end confdefs.h. */
10341 #include <stddef.h>
10342 long longval () { return sizeof (size_t) <= sizeof (unsigned int); }
10343 unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
10345 #include <stdlib.h>
10350 FILE *f = fopen ("conftest.val", "w");
10353 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
10355 long i = longval ();
10356 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
10358 fprintf (f, "%ld\n", i);
10362 unsigned long i = ulongval ();
10363 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
10365 fprintf (f, "%lu\n", i);
10367 exit (ferror (f) || fclose (f) != 0);
10373 rm -f conftest$ac_exeext
10374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10375 (eval $ac_link) 2>&5
10377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10378 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10380 (eval $ac_try) 2>&5
10382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10383 (exit $ac_status); }; }; then
10384 fits_in_uint=`cat conftest.val`
10386 echo "$as_me: program exited with status $ac_status" >&5
10387 echo "$as_me: failed program was:" >&5
10388 sed 's/^/| /' conftest.$ac_ext >&5
10390 ( exit $ac_status )
10393 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10397 if test "$fits_in_uint" = 1; then
10398 cat >conftest.$ac_ext <<_ACEOF
10401 cat confdefs.h >>conftest.$ac_ext
10402 cat >>conftest.$ac_ext <<_ACEOF
10403 /* end confdefs.h. */
10404 #include <stddef.h>
10406 extern unsigned long foo;
10416 rm -f conftest.$ac_objext
10417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10418 (eval $ac_compile) 2>conftest.er1
10420 grep -v '^ *+' conftest.er1 >conftest.err
10422 cat conftest.err >&5
10423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424 (exit $ac_status); } &&
10425 { ac_try='test -z "$ac_c_werror_flag"
10426 || test ! -s conftest.err'
10427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10428 (eval $ac_try) 2>&5
10430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10431 (exit $ac_status); }; } &&
10432 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
10440 echo "$as_me: failed program was:" >&5
10441 sed 's/^/| /' conftest.$ac_ext >&5
10444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10446 if test -z "$result"; then
10447 if test "$fits_in_uint" = 1; then
10448 result="$res_hi$res_lo"U
10450 result="$res_hi$res_lo"UL
10453 result='~(size_t)0'
10456 echo "$as_me:$LINENO: result: $result" >&5
10457 echo "${ECHO_T}$result" >&6
10458 if test "$result" != yes; then
10460 cat >>confdefs.h <<_ACEOF
10461 #define SIZE_MAX $result
10470 for ac_header in stdint.h
10472 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10473 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10474 echo "$as_me:$LINENO: checking for $ac_header" >&5
10475 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10476 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10477 echo $ECHO_N "(cached) $ECHO_C" >&6
10479 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10480 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10482 # Is the header compilable?
10483 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10484 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10485 cat >conftest.$ac_ext <<_ACEOF
10488 cat confdefs.h >>conftest.$ac_ext
10489 cat >>conftest.$ac_ext <<_ACEOF
10490 /* end confdefs.h. */
10491 $ac_includes_default
10492 #include <$ac_header>
10494 rm -f conftest.$ac_objext
10495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10496 (eval $ac_compile) 2>conftest.er1
10498 grep -v '^ *+' conftest.er1 >conftest.err
10500 cat conftest.err >&5
10501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10502 (exit $ac_status); } &&
10503 { ac_try='test -z "$ac_c_werror_flag"
10504 || test ! -s conftest.err'
10505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10506 (eval $ac_try) 2>&5
10508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10509 (exit $ac_status); }; } &&
10510 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
10516 ac_header_compiler=yes
10518 echo "$as_me: failed program was:" >&5
10519 sed 's/^/| /' conftest.$ac_ext >&5
10521 ac_header_compiler=no
10523 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10524 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10525 echo "${ECHO_T}$ac_header_compiler" >&6
10527 # Is the header present?
10528 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10529 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10530 cat >conftest.$ac_ext <<_ACEOF
10533 cat confdefs.h >>conftest.$ac_ext
10534 cat >>conftest.$ac_ext <<_ACEOF
10535 /* end confdefs.h. */
10536 #include <$ac_header>
10538 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10539 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10541 grep -v '^ *+' conftest.er1 >conftest.err
10543 cat conftest.err >&5
10544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10545 (exit $ac_status); } >/dev/null; then
10546 if test -s conftest.err; then
10547 ac_cpp_err=$ac_c_preproc_warn_flag
10548 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10555 if test -z "$ac_cpp_err"; then
10556 ac_header_preproc=yes
10558 echo "$as_me: failed program was:" >&5
10559 sed 's/^/| /' conftest.$ac_ext >&5
10561 ac_header_preproc=no
10563 rm -f conftest.err conftest.$ac_ext
10564 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10565 echo "${ECHO_T}$ac_header_preproc" >&6
10567 # So? What about this header?
10568 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10570 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10571 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10572 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10573 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10574 ac_header_preproc=yes
10577 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10578 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10579 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10580 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10581 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10582 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10583 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10584 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10585 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10586 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10587 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10588 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10591 ## ------------------------------------------ ##
10592 ## Report this to the AC_PACKAGE_NAME lists. ##
10593 ## ------------------------------------------ ##
10596 sed "s/^/$as_me: WARNING: /" >&2
10599 echo "$as_me:$LINENO: checking for $ac_header" >&5
10600 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10601 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10602 echo $ECHO_N "(cached) $ECHO_C" >&6
10604 eval "$as_ac_Header=\$ac_header_preproc"
10606 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10607 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10610 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10611 cat >>confdefs.h <<_ACEOF
10612 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10626 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
10627 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
10628 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
10629 echo $ECHO_N "(cached) $ECHO_C" >&6
10631 cat >conftest.$ac_ext <<_ACEOF
10634 cat confdefs.h >>conftest.$ac_ext
10635 cat >>conftest.$ac_ext <<_ACEOF
10636 /* end confdefs.h. */
10637 $ac_includes_default
10641 if ((ptrdiff_t *) 0)
10643 if (sizeof (ptrdiff_t))
10649 rm -f conftest.$ac_objext
10650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10651 (eval $ac_compile) 2>conftest.er1
10653 grep -v '^ *+' conftest.er1 >conftest.err
10655 cat conftest.err >&5
10656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10657 (exit $ac_status); } &&
10658 { ac_try='test -z "$ac_c_werror_flag"
10659 || test ! -s conftest.err'
10660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10661 (eval $ac_try) 2>&5
10663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10664 (exit $ac_status); }; } &&
10665 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
10671 ac_cv_type_ptrdiff_t=yes
10673 echo "$as_me: failed program was:" >&5
10674 sed 's/^/| /' conftest.$ac_ext >&5
10676 ac_cv_type_ptrdiff_t=no
10678 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10680 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
10681 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
10682 if test $ac_cv_type_ptrdiff_t = yes; then
10686 cat >>confdefs.h <<\_ACEOF
10687 #define ptrdiff_t long
10703 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
10704 stdlib.h string.h unistd.h sys/param.h
10706 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10707 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10708 echo "$as_me:$LINENO: checking for $ac_header" >&5
10709 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10710 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10711 echo $ECHO_N "(cached) $ECHO_C" >&6
10713 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10714 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10716 # Is the header compilable?
10717 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10718 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10719 cat >conftest.$ac_ext <<_ACEOF
10722 cat confdefs.h >>conftest.$ac_ext
10723 cat >>conftest.$ac_ext <<_ACEOF
10724 /* end confdefs.h. */
10725 $ac_includes_default
10726 #include <$ac_header>
10728 rm -f conftest.$ac_objext
10729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10730 (eval $ac_compile) 2>conftest.er1
10732 grep -v '^ *+' conftest.er1 >conftest.err
10734 cat conftest.err >&5
10735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10736 (exit $ac_status); } &&
10737 { ac_try='test -z "$ac_c_werror_flag"
10738 || test ! -s conftest.err'
10739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10740 (eval $ac_try) 2>&5
10742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10743 (exit $ac_status); }; } &&
10744 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
10750 ac_header_compiler=yes
10752 echo "$as_me: failed program was:" >&5
10753 sed 's/^/| /' conftest.$ac_ext >&5
10755 ac_header_compiler=no
10757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10758 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10759 echo "${ECHO_T}$ac_header_compiler" >&6
10761 # Is the header present?
10762 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10763 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10764 cat >conftest.$ac_ext <<_ACEOF
10767 cat confdefs.h >>conftest.$ac_ext
10768 cat >>conftest.$ac_ext <<_ACEOF
10769 /* end confdefs.h. */
10770 #include <$ac_header>
10772 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10773 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10775 grep -v '^ *+' conftest.er1 >conftest.err
10777 cat conftest.err >&5
10778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10779 (exit $ac_status); } >/dev/null; then
10780 if test -s conftest.err; then
10781 ac_cpp_err=$ac_c_preproc_warn_flag
10782 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10789 if test -z "$ac_cpp_err"; then
10790 ac_header_preproc=yes
10792 echo "$as_me: failed program was:" >&5
10793 sed 's/^/| /' conftest.$ac_ext >&5
10795 ac_header_preproc=no
10797 rm -f conftest.err conftest.$ac_ext
10798 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10799 echo "${ECHO_T}$ac_header_preproc" >&6
10801 # So? What about this header?
10802 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10804 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10805 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10806 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10807 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10808 ac_header_preproc=yes
10811 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10812 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10813 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10814 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10815 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10816 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10817 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10818 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10819 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10820 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10821 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10822 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10825 ## ------------------------------------------ ##
10826 ## Report this to the AC_PACKAGE_NAME lists. ##
10827 ## ------------------------------------------ ##
10830 sed "s/^/$as_me: WARNING: /" >&2
10833 echo "$as_me:$LINENO: checking for $ac_header" >&5
10834 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10835 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10836 echo $ECHO_N "(cached) $ECHO_C" >&6
10838 eval "$as_ac_Header=\$ac_header_preproc"
10840 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10841 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10844 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10845 cat >>confdefs.h <<_ACEOF
10846 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10876 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
10877 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
10878 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
10881 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10882 echo "$as_me:$LINENO: checking for $ac_func" >&5
10883 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10884 if eval "test \"\${$as_ac_var+set}\" = set"; then
10885 echo $ECHO_N "(cached) $ECHO_C" >&6
10887 cat >conftest.$ac_ext <<_ACEOF
10890 cat confdefs.h >>conftest.$ac_ext
10891 cat >>conftest.$ac_ext <<_ACEOF
10892 /* end confdefs.h. */
10893 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10894 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10895 #define $ac_func innocuous_$ac_func
10897 /* System header to define __stub macros and hopefully few prototypes,
10898 which can conflict with char $ac_func (); below.
10899 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10900 <limits.h> exists even on freestanding compilers. */
10903 # include <limits.h>
10905 # include <assert.h>
10910 /* Override any gcc2 internal prototype to avoid an error. */
10915 /* We use char because int might match the return type of a gcc2
10916 builtin and then its argument prototype would still apply. */
10918 /* The GNU C library defines this for functions which it implements
10919 to always fail with ENOSYS. Some functions are actually named
10920 something starting with __ and the normal name is an alias. */
10921 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10924 char (*f) () = $ac_func;
10933 return f != $ac_func;
10938 rm -f conftest.$ac_objext conftest$ac_exeext
10939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10940 (eval $ac_link) 2>conftest.er1
10942 grep -v '^ *+' conftest.er1 >conftest.err
10944 cat conftest.err >&5
10945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10946 (exit $ac_status); } &&
10947 { ac_try='test -z "$ac_c_werror_flag"
10948 || test ! -s conftest.err'
10949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10950 (eval $ac_try) 2>&5
10952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10953 (exit $ac_status); }; } &&
10954 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
10960 eval "$as_ac_var=yes"
10962 echo "$as_me: failed program was:" >&5
10963 sed 's/^/| /' conftest.$ac_ext >&5
10965 eval "$as_ac_var=no"
10967 rm -f conftest.err conftest.$ac_objext \
10968 conftest$ac_exeext conftest.$ac_ext
10970 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10971 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10972 if test `eval echo '${'$as_ac_var'}'` = yes; then
10973 cat >>confdefs.h <<_ACEOF
10974 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10982 echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
10983 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6
10984 if test "${ac_cv_have_decl__snprintf+set}" = set; then
10985 echo $ECHO_N "(cached) $ECHO_C" >&6
10987 cat >conftest.$ac_ext <<_ACEOF
10990 cat confdefs.h >>conftest.$ac_ext
10991 cat >>conftest.$ac_ext <<_ACEOF
10992 /* end confdefs.h. */
10999 char *p = (char *) _snprintf;
11006 rm -f conftest.$ac_objext
11007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11008 (eval $ac_compile) 2>conftest.er1
11010 grep -v '^ *+' conftest.er1 >conftest.err
11012 cat conftest.err >&5
11013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11014 (exit $ac_status); } &&
11015 { ac_try='test -z "$ac_c_werror_flag"
11016 || test ! -s conftest.err'
11017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11018 (eval $ac_try) 2>&5
11020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11021 (exit $ac_status); }; } &&
11022 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
11028 ac_cv_have_decl__snprintf=yes
11030 echo "$as_me: failed program was:" >&5
11031 sed 's/^/| /' conftest.$ac_ext >&5
11033 ac_cv_have_decl__snprintf=no
11035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11037 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
11038 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6
11039 if test $ac_cv_have_decl__snprintf = yes; then
11045 cat >>confdefs.h <<_ACEOF
11046 #define HAVE_DECL__SNPRINTF $gt_value
11051 echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
11052 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6
11053 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
11054 echo $ECHO_N "(cached) $ECHO_C" >&6
11056 cat >conftest.$ac_ext <<_ACEOF
11059 cat confdefs.h >>conftest.$ac_ext
11060 cat >>conftest.$ac_ext <<_ACEOF
11061 /* end confdefs.h. */
11068 char *p = (char *) _snwprintf;
11075 rm -f conftest.$ac_objext
11076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11077 (eval $ac_compile) 2>conftest.er1
11079 grep -v '^ *+' conftest.er1 >conftest.err
11081 cat conftest.err >&5
11082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11083 (exit $ac_status); } &&
11084 { ac_try='test -z "$ac_c_werror_flag"
11085 || test ! -s conftest.err'
11086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11087 (eval $ac_try) 2>&5
11089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090 (exit $ac_status); }; } &&
11091 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
11097 ac_cv_have_decl__snwprintf=yes
11099 echo "$as_me: failed program was:" >&5
11100 sed 's/^/| /' conftest.$ac_ext >&5
11102 ac_cv_have_decl__snwprintf=no
11104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11106 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
11107 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6
11108 if test $ac_cv_have_decl__snwprintf = yes; then
11114 cat >>confdefs.h <<_ACEOF
11115 #define HAVE_DECL__SNWPRINTF $gt_value
11121 echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
11122 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
11123 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
11124 echo $ECHO_N "(cached) $ECHO_C" >&6
11126 cat >conftest.$ac_ext <<_ACEOF
11129 cat confdefs.h >>conftest.$ac_ext
11130 cat >>conftest.$ac_ext <<_ACEOF
11131 /* end confdefs.h. */
11137 #ifndef feof_unlocked
11138 char *p = (char *) feof_unlocked;
11145 rm -f conftest.$ac_objext
11146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11147 (eval $ac_compile) 2>conftest.er1
11149 grep -v '^ *+' conftest.er1 >conftest.err
11151 cat conftest.err >&5
11152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153 (exit $ac_status); } &&
11154 { ac_try='test -z "$ac_c_werror_flag"
11155 || test ! -s conftest.err'
11156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11157 (eval $ac_try) 2>&5
11159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11160 (exit $ac_status); }; } &&
11161 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
11167 ac_cv_have_decl_feof_unlocked=yes
11169 echo "$as_me: failed program was:" >&5
11170 sed 's/^/| /' conftest.$ac_ext >&5
11172 ac_cv_have_decl_feof_unlocked=no
11174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11176 echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
11177 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
11178 if test $ac_cv_have_decl_feof_unlocked = yes; then
11184 cat >>confdefs.h <<_ACEOF
11185 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
11190 echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
11191 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
11192 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
11193 echo $ECHO_N "(cached) $ECHO_C" >&6
11195 cat >conftest.$ac_ext <<_ACEOF
11198 cat confdefs.h >>conftest.$ac_ext
11199 cat >>conftest.$ac_ext <<_ACEOF
11200 /* end confdefs.h. */
11206 #ifndef fgets_unlocked
11207 char *p = (char *) fgets_unlocked;
11214 rm -f conftest.$ac_objext
11215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11216 (eval $ac_compile) 2>conftest.er1
11218 grep -v '^ *+' conftest.er1 >conftest.err
11220 cat conftest.err >&5
11221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11222 (exit $ac_status); } &&
11223 { ac_try='test -z "$ac_c_werror_flag"
11224 || test ! -s conftest.err'
11225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11226 (eval $ac_try) 2>&5
11228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229 (exit $ac_status); }; } &&
11230 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
11236 ac_cv_have_decl_fgets_unlocked=yes
11238 echo "$as_me: failed program was:" >&5
11239 sed 's/^/| /' conftest.$ac_ext >&5
11241 ac_cv_have_decl_fgets_unlocked=no
11243 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11245 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
11246 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
11247 if test $ac_cv_have_decl_fgets_unlocked = yes; then
11253 cat >>confdefs.h <<_ACEOF
11254 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
11259 echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
11260 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
11261 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
11262 echo $ECHO_N "(cached) $ECHO_C" >&6
11264 cat >conftest.$ac_ext <<_ACEOF
11267 cat confdefs.h >>conftest.$ac_ext
11268 cat >>conftest.$ac_ext <<_ACEOF
11269 /* end confdefs.h. */
11275 #ifndef getc_unlocked
11276 char *p = (char *) getc_unlocked;
11283 rm -f conftest.$ac_objext
11284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11285 (eval $ac_compile) 2>conftest.er1
11287 grep -v '^ *+' conftest.er1 >conftest.err
11289 cat conftest.err >&5
11290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11291 (exit $ac_status); } &&
11292 { ac_try='test -z "$ac_c_werror_flag"
11293 || test ! -s conftest.err'
11294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11295 (eval $ac_try) 2>&5
11297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11298 (exit $ac_status); }; } &&
11299 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
11305 ac_cv_have_decl_getc_unlocked=yes
11307 echo "$as_me: failed program was:" >&5
11308 sed 's/^/| /' conftest.$ac_ext >&5
11310 ac_cv_have_decl_getc_unlocked=no
11312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11314 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
11315 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
11316 if test $ac_cv_have_decl_getc_unlocked = yes; then
11322 cat >>confdefs.h <<_ACEOF
11323 #define HAVE_DECL_GETC_UNLOCKED $gt_value
11328 case $gt_cv_func_printf_posix in
11329 *yes) HAVE_POSIX_PRINTF=1 ;;
11330 *) HAVE_POSIX_PRINTF=0 ;;
11333 if test "$ac_cv_func_asprintf" = yes; then
11339 if test "$ac_cv_func_snprintf" = yes; then
11345 if test "$ac_cv_func_wprintf" = yes; then
11357 am_save_CPPFLAGS="$CPPFLAGS"
11359 for element in $INCICONV; do
11361 for x in $CPPFLAGS; do
11363 acl_save_prefix="$prefix"
11364 prefix="$acl_final_prefix"
11365 acl_save_exec_prefix="$exec_prefix"
11366 exec_prefix="$acl_final_exec_prefix"
11368 exec_prefix="$acl_save_exec_prefix"
11369 prefix="$acl_save_prefix"
11371 if test "X$x" = "X$element"; then
11376 if test -z "$haveit"; then
11377 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11382 echo "$as_me:$LINENO: checking for iconv" >&5
11383 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
11384 if test "${am_cv_func_iconv+set}" = set; then
11385 echo $ECHO_N "(cached) $ECHO_C" >&6
11388 am_cv_func_iconv="no, consider installing GNU libiconv"
11390 cat >conftest.$ac_ext <<_ACEOF
11393 cat confdefs.h >>conftest.$ac_ext
11394 cat >>conftest.$ac_ext <<_ACEOF
11395 /* end confdefs.h. */
11396 #include <stdlib.h>
11401 iconv_t cd = iconv_open("","");
11402 iconv(cd,NULL,NULL,NULL,NULL);
11408 rm -f conftest.$ac_objext conftest$ac_exeext
11409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11410 (eval $ac_link) 2>conftest.er1
11412 grep -v '^ *+' conftest.er1 >conftest.err
11414 cat conftest.err >&5
11415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11416 (exit $ac_status); } &&
11417 { ac_try='test -z "$ac_c_werror_flag"
11418 || test ! -s conftest.err'
11419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11420 (eval $ac_try) 2>&5
11422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11423 (exit $ac_status); }; } &&
11424 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
11430 am_cv_func_iconv=yes
11432 echo "$as_me: failed program was:" >&5
11433 sed 's/^/| /' conftest.$ac_ext >&5
11436 rm -f conftest.err conftest.$ac_objext \
11437 conftest$ac_exeext conftest.$ac_ext
11438 if test "$am_cv_func_iconv" != yes; then
11439 am_save_LIBS="$LIBS"
11440 LIBS="$LIBS $LIBICONV"
11441 cat >conftest.$ac_ext <<_ACEOF
11444 cat confdefs.h >>conftest.$ac_ext
11445 cat >>conftest.$ac_ext <<_ACEOF
11446 /* end confdefs.h. */
11447 #include <stdlib.h>
11452 iconv_t cd = iconv_open("","");
11453 iconv(cd,NULL,NULL,NULL,NULL);
11459 rm -f conftest.$ac_objext conftest$ac_exeext
11460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11461 (eval $ac_link) 2>conftest.er1
11463 grep -v '^ *+' conftest.er1 >conftest.err
11465 cat conftest.err >&5
11466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11467 (exit $ac_status); } &&
11468 { ac_try='test -z "$ac_c_werror_flag"
11469 || test ! -s conftest.err'
11470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11471 (eval $ac_try) 2>&5
11473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11474 (exit $ac_status); }; } &&
11475 { ac_try='test -s conftest$ac_exeext'
11476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11477 (eval $ac_try) 2>&5
11479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11480 (exit $ac_status); }; }; then
11481 am_cv_lib_iconv=yes
11482 am_cv_func_iconv=yes
11484 echo "$as_me: failed program was:" >&5
11485 sed 's/^/| /' conftest.$ac_ext >&5
11488 rm -f conftest.err conftest.$ac_objext \
11489 conftest$ac_exeext conftest.$ac_ext
11490 LIBS="$am_save_LIBS"
11494 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11495 echo "${ECHO_T}$am_cv_func_iconv" >&6
11496 if test "$am_cv_func_iconv" = yes; then
11498 cat >>confdefs.h <<\_ACEOF
11499 #define HAVE_ICONV 1
11503 if test "$am_cv_lib_iconv" = yes; then
11504 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11505 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
11506 echo "$as_me:$LINENO: result: $LIBICONV" >&5
11507 echo "${ECHO_T}$LIBICONV" >&6
11509 CPPFLAGS="$am_save_CPPFLAGS"
11516 if test "$am_cv_func_iconv" = yes; then
11517 echo "$as_me:$LINENO: checking for iconv declaration" >&5
11518 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11519 if test "${am_cv_proto_iconv+set}" = set; then
11520 echo $ECHO_N "(cached) $ECHO_C" >&6
11523 cat >conftest.$ac_ext <<_ACEOF
11526 cat confdefs.h >>conftest.$ac_ext
11527 cat >>conftest.$ac_ext <<_ACEOF
11528 /* end confdefs.h. */
11530 #include <stdlib.h>
11536 #if defined(__STDC__) || defined(__cplusplus)
11537 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11550 rm -f conftest.$ac_objext
11551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11552 (eval $ac_compile) 2>conftest.er1
11554 grep -v '^ *+' conftest.er1 >conftest.err
11556 cat conftest.err >&5
11557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11558 (exit $ac_status); } &&
11559 { ac_try='test -z "$ac_c_werror_flag"
11560 || test ! -s conftest.err'
11561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11562 (eval $ac_try) 2>&5
11564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11565 (exit $ac_status); }; } &&
11566 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
11572 am_cv_proto_iconv_arg1=""
11574 echo "$as_me: failed program was:" >&5
11575 sed 's/^/| /' conftest.$ac_ext >&5
11577 am_cv_proto_iconv_arg1="const"
11579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11580 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);"
11583 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11584 echo "$as_me:$LINENO: result: ${ac_t:-
11585 }$am_cv_proto_iconv" >&5
11586 echo "${ECHO_T}${ac_t:-
11587 }$am_cv_proto_iconv" >&6
11589 cat >>confdefs.h <<_ACEOF
11590 #define ICONV_CONST $am_cv_proto_iconv_arg1
11596 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11597 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11598 if test "${am_cv_langinfo_codeset+set}" = set; then
11599 echo $ECHO_N "(cached) $ECHO_C" >&6
11601 cat >conftest.$ac_ext <<_ACEOF
11604 cat confdefs.h >>conftest.$ac_ext
11605 cat >>conftest.$ac_ext <<_ACEOF
11606 /* end confdefs.h. */
11607 #include <langinfo.h>
11611 char* cs = nl_langinfo(CODESET);
11616 rm -f conftest.$ac_objext conftest$ac_exeext
11617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11618 (eval $ac_link) 2>conftest.er1
11620 grep -v '^ *+' conftest.er1 >conftest.err
11622 cat conftest.err >&5
11623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11624 (exit $ac_status); } &&
11625 { ac_try='test -z "$ac_c_werror_flag"
11626 || test ! -s conftest.err'
11627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11628 (eval $ac_try) 2>&5
11630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11631 (exit $ac_status); }; } &&
11632 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
11638 am_cv_langinfo_codeset=yes
11640 echo "$as_me: failed program was:" >&5
11641 sed 's/^/| /' conftest.$ac_ext >&5
11643 am_cv_langinfo_codeset=no
11645 rm -f conftest.err conftest.$ac_objext \
11646 conftest$ac_exeext conftest.$ac_ext
11649 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11650 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11651 if test $am_cv_langinfo_codeset = yes; then
11653 cat >>confdefs.h <<\_ACEOF
11654 #define HAVE_LANGINFO_CODESET 1
11659 if test $ac_cv_header_locale_h = yes; then
11661 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11662 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11663 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
11664 echo $ECHO_N "(cached) $ECHO_C" >&6
11666 cat >conftest.$ac_ext <<_ACEOF
11669 cat confdefs.h >>conftest.$ac_ext
11670 cat >>conftest.$ac_ext <<_ACEOF
11671 /* end confdefs.h. */
11672 #include <locale.h>
11681 rm -f conftest.$ac_objext conftest$ac_exeext
11682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11683 (eval $ac_link) 2>conftest.er1
11685 grep -v '^ *+' conftest.er1 >conftest.err
11687 cat conftest.err >&5
11688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11689 (exit $ac_status); } &&
11690 { ac_try='test -z "$ac_c_werror_flag"
11691 || test ! -s conftest.err'
11692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11693 (eval $ac_try) 2>&5
11695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11696 (exit $ac_status); }; } &&
11697 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
11703 gt_cv_val_LC_MESSAGES=yes
11705 echo "$as_me: failed program was:" >&5
11706 sed 's/^/| /' conftest.$ac_ext >&5
11708 gt_cv_val_LC_MESSAGES=no
11710 rm -f conftest.err conftest.$ac_objext \
11711 conftest$ac_exeext conftest.$ac_ext
11713 echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
11714 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6
11715 if test $gt_cv_val_LC_MESSAGES = yes; then
11717 cat >>confdefs.h <<\_ACEOF
11718 #define HAVE_LC_MESSAGES 1
11725 if test -n "$INTL_MACOSX_LIBS"; then
11726 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
11729 for ac_prog in bison
11731 # Extract the first word of "$ac_prog", so it can be a program name with args.
11732 set dummy $ac_prog; ac_word=$2
11733 echo "$as_me:$LINENO: checking for $ac_word" >&5
11734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11735 if test "${ac_cv_prog_INTLBISON+set}" = set; then
11736 echo $ECHO_N "(cached) $ECHO_C" >&6
11738 if test -n "$INTLBISON"; then
11739 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
11741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11742 for as_dir in $PATH
11745 test -z "$as_dir" && as_dir=.
11746 for ac_exec_ext in '' $ac_executable_extensions; do
11747 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11748 ac_cv_prog_INTLBISON="$ac_prog"
11749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11757 INTLBISON=$ac_cv_prog_INTLBISON
11758 if test -n "$INTLBISON"; then
11759 echo "$as_me:$LINENO: result: $INTLBISON" >&5
11760 echo "${ECHO_T}$INTLBISON" >&6
11762 echo "$as_me:$LINENO: result: no" >&5
11763 echo "${ECHO_T}no" >&6
11766 test -n "$INTLBISON" && break
11769 if test -z "$INTLBISON"; then
11772 echo "$as_me:$LINENO: checking version of bison" >&5
11773 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
11774 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
11775 case $ac_prog_version in
11776 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
11777 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
11778 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
11779 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
11781 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
11782 echo "${ECHO_T}$ac_prog_version" >&6
11784 if test $ac_verc_fail = yes; then
11803 echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
11804 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6
11805 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
11806 echo $ECHO_N "(cached) $ECHO_C" >&6
11808 gt_save_CPPFLAGS="$CPPFLAGS"
11809 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
11810 gt_save_LIBS="$LIBS"
11811 LIBS="$LIBS -framework CoreFoundation"
11812 cat >conftest.$ac_ext <<_ACEOF
11815 cat confdefs.h >>conftest.$ac_ext
11816 cat >>conftest.$ac_ext <<_ACEOF
11817 /* end confdefs.h. */
11818 #include <CFPreferences.h>
11822 CFPreferencesCopyAppValue(NULL, NULL)
11827 rm -f conftest.$ac_objext conftest$ac_exeext
11828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11829 (eval $ac_link) 2>conftest.er1
11831 grep -v '^ *+' conftest.er1 >conftest.err
11833 cat conftest.err >&5
11834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11835 (exit $ac_status); } &&
11836 { ac_try='test -z "$ac_c_werror_flag"
11837 || test ! -s conftest.err'
11838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11839 (eval $ac_try) 2>&5
11841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11842 (exit $ac_status); }; } &&
11843 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
11849 gt_cv_func_CFPreferencesCopyAppValue=yes
11851 echo "$as_me: failed program was:" >&5
11852 sed 's/^/| /' conftest.$ac_ext >&5
11854 gt_cv_func_CFPreferencesCopyAppValue=no
11856 rm -f conftest.err conftest.$ac_objext \
11857 conftest$ac_exeext conftest.$ac_ext
11858 CPPFLAGS="$gt_save_CPPFLAGS"
11859 LIBS="$gt_save_LIBS"
11861 echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
11862 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6
11863 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
11865 cat >>confdefs.h <<\_ACEOF
11866 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
11870 echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
11871 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6
11872 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
11873 echo $ECHO_N "(cached) $ECHO_C" >&6
11875 gt_save_CPPFLAGS="$CPPFLAGS"
11876 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
11877 gt_save_LIBS="$LIBS"
11878 LIBS="$LIBS -framework CoreFoundation"
11879 cat >conftest.$ac_ext <<_ACEOF
11882 cat confdefs.h >>conftest.$ac_ext
11883 cat >>conftest.$ac_ext <<_ACEOF
11884 /* end confdefs.h. */
11885 #include <CFLocale.h>
11889 CFLocaleCopyCurrent();
11894 rm -f conftest.$ac_objext conftest$ac_exeext
11895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11896 (eval $ac_link) 2>conftest.er1
11898 grep -v '^ *+' conftest.er1 >conftest.err
11900 cat conftest.err >&5
11901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11902 (exit $ac_status); } &&
11903 { ac_try='test -z "$ac_c_werror_flag"
11904 || test ! -s conftest.err'
11905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11906 (eval $ac_try) 2>&5
11908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909 (exit $ac_status); }; } &&
11910 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
11916 gt_cv_func_CFLocaleCopyCurrent=yes
11918 echo "$as_me: failed program was:" >&5
11919 sed 's/^/| /' conftest.$ac_ext >&5
11921 gt_cv_func_CFLocaleCopyCurrent=no
11923 rm -f conftest.err conftest.$ac_objext \
11924 conftest$ac_exeext conftest.$ac_ext
11925 CPPFLAGS="$gt_save_CPPFLAGS"
11926 LIBS="$gt_save_LIBS"
11928 echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
11929 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6
11930 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
11932 cat >>confdefs.h <<\_ACEOF
11933 #define HAVE_CFLOCALECOPYCURRENT 1
11938 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
11939 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
11945 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
11946 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
11947 # Check whether --enable-nls or --disable-nls was given.
11948 if test "${enable_nls+set}" = set; then
11949 enableval="$enable_nls"
11954 echo "$as_me:$LINENO: result: $USE_NLS" >&5
11955 echo "${ECHO_T}$USE_NLS" >&6
11960 BUILD_INCLUDED_LIBINTL=no
11961 USE_INCLUDED_LIBINTL=no
11967 if test "$USE_NLS" = "yes"; then
11968 gt_use_preinstalled_gnugettext=no
11970 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
11971 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
11973 # Check whether --with-included-gettext or --without-included-gettext was given.
11974 if test "${with_included_gettext+set}" = set; then
11975 withval="$with_included_gettext"
11976 nls_cv_force_use_gnu_gettext=$withval
11978 nls_cv_force_use_gnu_gettext=no
11980 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
11981 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
11983 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
11984 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
11991 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
11992 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
11993 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
11994 echo $ECHO_N "(cached) $ECHO_C" >&6
11996 cat >conftest.$ac_ext <<_ACEOF
11999 cat confdefs.h >>conftest.$ac_ext
12000 cat >>conftest.$ac_ext <<_ACEOF
12001 /* end confdefs.h. */
12002 #include <libintl.h>
12003 extern int _nl_msg_cat_cntr;
12004 extern int *_nl_domain_bindings;
12008 bindtextdomain ("", "");
12009 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
12014 rm -f conftest.$ac_objext conftest$ac_exeext
12015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12016 (eval $ac_link) 2>conftest.er1
12018 grep -v '^ *+' conftest.er1 >conftest.err
12020 cat conftest.err >&5
12021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12022 (exit $ac_status); } &&
12023 { ac_try='test -z "$ac_c_werror_flag"
12024 || test ! -s conftest.err'
12025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12026 (eval $ac_try) 2>&5
12028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12029 (exit $ac_status); }; } &&
12030 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
12036 gt_cv_func_gnugettext1_libc=yes
12038 echo "$as_me: failed program was:" >&5
12039 sed 's/^/| /' conftest.$ac_ext >&5
12041 gt_cv_func_gnugettext1_libc=no
12043 rm -f conftest.err conftest.$ac_objext \
12044 conftest$ac_exeext conftest.$ac_ext
12046 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
12047 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
12049 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
12055 acl_save_prefix="$prefix"
12056 prefix="$acl_final_prefix"
12057 acl_save_exec_prefix="$exec_prefix"
12058 exec_prefix="$acl_final_exec_prefix"
12060 eval additional_includedir=\"$includedir\"
12061 eval additional_libdir=\"$libdir\"
12063 exec_prefix="$acl_save_exec_prefix"
12064 prefix="$acl_save_prefix"
12067 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
12068 if test "${with_libintl_prefix+set}" = set; then
12069 withval="$with_libintl_prefix"
12071 if test "X$withval" = "Xno"; then
12074 if test "X$withval" = "X"; then
12076 acl_save_prefix="$prefix"
12077 prefix="$acl_final_prefix"
12078 acl_save_exec_prefix="$exec_prefix"
12079 exec_prefix="$acl_final_exec_prefix"
12081 eval additional_includedir=\"$includedir\"
12082 eval additional_libdir=\"$libdir\"
12084 exec_prefix="$acl_save_exec_prefix"
12085 prefix="$acl_save_prefix"
12088 additional_includedir="$withval/include"
12089 additional_libdir="$withval/lib"
12099 names_already_handled=
12100 names_next_round='intl '
12101 while test -n "$names_next_round"; do
12102 names_this_round="$names_next_round"
12104 for name in $names_this_round; do
12106 for n in $names_already_handled; do
12107 if test "$n" = "$name"; then
12108 already_handled=yes
12112 if test -z "$already_handled"; then
12113 names_already_handled="$names_already_handled $name"
12114 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12115 eval value=\"\$HAVE_LIB$uppername\"
12116 if test -n "$value"; then
12117 if test "$value" = yes; then
12118 eval value=\"\$LIB$uppername\"
12119 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
12120 eval value=\"\$LTLIB$uppername\"
12121 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
12130 if test $use_additional = yes; then
12131 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
12132 found_dir="$additional_libdir"
12133 found_so="$additional_libdir/lib$name.$shlibext"
12134 if test -f "$additional_libdir/lib$name.la"; then
12135 found_la="$additional_libdir/lib$name.la"
12138 if test -f "$additional_libdir/lib$name.$libext"; then
12139 found_dir="$additional_libdir"
12140 found_a="$additional_libdir/lib$name.$libext"
12141 if test -f "$additional_libdir/lib$name.la"; then
12142 found_la="$additional_libdir/lib$name.la"
12147 if test "X$found_dir" = "X"; then
12148 for x in $LDFLAGS $LTLIBINTL; do
12150 acl_save_prefix="$prefix"
12151 prefix="$acl_final_prefix"
12152 acl_save_exec_prefix="$exec_prefix"
12153 exec_prefix="$acl_final_exec_prefix"
12155 exec_prefix="$acl_save_exec_prefix"
12156 prefix="$acl_save_prefix"
12160 dir=`echo "X$x" | sed -e 's/^X-L//'`
12161 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
12163 found_so="$dir/lib$name.$shlibext"
12164 if test -f "$dir/lib$name.la"; then
12165 found_la="$dir/lib$name.la"
12168 if test -f "$dir/lib$name.$libext"; then
12170 found_a="$dir/lib$name.$libext"
12171 if test -f "$dir/lib$name.la"; then
12172 found_la="$dir/lib$name.la"
12178 if test "X$found_dir" != "X"; then
12183 if test "X$found_dir" != "X"; then
12184 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
12185 if test "X$found_so" != "X"; then
12186 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
12187 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12190 for x in $ltrpathdirs; do
12191 if test "X$x" = "X$found_dir"; then
12196 if test -z "$haveit"; then
12197 ltrpathdirs="$ltrpathdirs $found_dir"
12199 if test "$hardcode_direct" = yes; then
12200 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12202 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
12203 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12205 for x in $rpathdirs; do
12206 if test "X$x" = "X$found_dir"; then
12211 if test -z "$haveit"; then
12212 rpathdirs="$rpathdirs $found_dir"
12216 for x in $LDFLAGS $LIBINTL; do
12218 acl_save_prefix="$prefix"
12219 prefix="$acl_final_prefix"
12220 acl_save_exec_prefix="$exec_prefix"
12221 exec_prefix="$acl_final_exec_prefix"
12223 exec_prefix="$acl_save_exec_prefix"
12224 prefix="$acl_save_prefix"
12226 if test "X$x" = "X-L$found_dir"; then
12231 if test -z "$haveit"; then
12232 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
12234 if test "$hardcode_minus_L" != no; then
12235 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12237 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12243 if test "X$found_a" != "X"; then
12244 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
12246 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
12249 additional_includedir=
12250 case "$found_dir" in
12252 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
12253 additional_includedir="$basedir/include"
12256 if test "X$additional_includedir" != "X"; then
12257 if test "X$additional_includedir" != "X/usr/include"; then
12259 if test "X$additional_includedir" = "X/usr/local/include"; then
12260 if test -n "$GCC"; then
12262 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12266 if test -z "$haveit"; then
12267 for x in $CPPFLAGS $INCINTL; do
12269 acl_save_prefix="$prefix"
12270 prefix="$acl_final_prefix"
12271 acl_save_exec_prefix="$exec_prefix"
12272 exec_prefix="$acl_final_exec_prefix"
12274 exec_prefix="$acl_save_exec_prefix"
12275 prefix="$acl_save_prefix"
12277 if test "X$x" = "X-I$additional_includedir"; then
12282 if test -z "$haveit"; then
12283 if test -d "$additional_includedir"; then
12284 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
12290 if test -n "$found_la"; then
12291 save_libdir="$libdir"
12292 case "$found_la" in
12293 */* | *\\*) . "$found_la" ;;
12294 *) . "./$found_la" ;;
12296 libdir="$save_libdir"
12297 for dep in $dependency_libs; do
12300 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12301 if test "X$additional_libdir" != "X/usr/lib"; then
12303 if test "X$additional_libdir" = "X/usr/local/lib"; then
12304 if test -n "$GCC"; then
12306 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12310 if test -z "$haveit"; then
12312 for x in $LDFLAGS $LIBINTL; do
12314 acl_save_prefix="$prefix"
12315 prefix="$acl_final_prefix"
12316 acl_save_exec_prefix="$exec_prefix"
12317 exec_prefix="$acl_final_exec_prefix"
12319 exec_prefix="$acl_save_exec_prefix"
12320 prefix="$acl_save_prefix"
12322 if test "X$x" = "X-L$additional_libdir"; then
12327 if test -z "$haveit"; then
12328 if test -d "$additional_libdir"; then
12329 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
12333 for x in $LDFLAGS $LTLIBINTL; do
12335 acl_save_prefix="$prefix"
12336 prefix="$acl_final_prefix"
12337 acl_save_exec_prefix="$exec_prefix"
12338 exec_prefix="$acl_final_exec_prefix"
12340 exec_prefix="$acl_save_exec_prefix"
12341 prefix="$acl_save_prefix"
12343 if test "X$x" = "X-L$additional_libdir"; then
12348 if test -z "$haveit"; then
12349 if test -d "$additional_libdir"; then
12350 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
12357 dir=`echo "X$dep" | sed -e 's/^X-R//'`
12358 if test "$enable_rpath" != no; then
12360 for x in $rpathdirs; do
12361 if test "X$x" = "X$dir"; then
12366 if test -z "$haveit"; then
12367 rpathdirs="$rpathdirs $dir"
12370 for x in $ltrpathdirs; do
12371 if test "X$x" = "X$dir"; then
12376 if test -z "$haveit"; then
12377 ltrpathdirs="$ltrpathdirs $dir"
12382 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12385 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12388 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
12389 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
12395 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12396 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
12402 if test "X$rpathdirs" != "X"; then
12403 if test -n "$hardcode_libdir_separator"; then
12405 for found_dir in $rpathdirs; do
12406 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
12408 acl_save_libdir="$libdir"
12410 eval flag=\"$hardcode_libdir_flag_spec\"
12411 libdir="$acl_save_libdir"
12412 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12414 for found_dir in $rpathdirs; do
12415 acl_save_libdir="$libdir"
12416 libdir="$found_dir"
12417 eval flag=\"$hardcode_libdir_flag_spec\"
12418 libdir="$acl_save_libdir"
12419 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12423 if test "X$ltrpathdirs" != "X"; then
12424 for found_dir in $ltrpathdirs; do
12425 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
12429 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
12430 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
12431 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
12432 echo $ECHO_N "(cached) $ECHO_C" >&6
12434 gt_save_CPPFLAGS="$CPPFLAGS"
12435 CPPFLAGS="$CPPFLAGS $INCINTL"
12436 gt_save_LIBS="$LIBS"
12437 LIBS="$LIBS $LIBINTL"
12438 cat >conftest.$ac_ext <<_ACEOF
12441 cat confdefs.h >>conftest.$ac_ext
12442 cat >>conftest.$ac_ext <<_ACEOF
12443 /* end confdefs.h. */
12444 #include <libintl.h>
12445 extern int _nl_msg_cat_cntr;
12450 const char *_nl_expand_alias (const char *);
12454 bindtextdomain ("", "");
12455 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
12460 rm -f conftest.$ac_objext conftest$ac_exeext
12461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12462 (eval $ac_link) 2>conftest.er1
12464 grep -v '^ *+' conftest.er1 >conftest.err
12466 cat conftest.err >&5
12467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12468 (exit $ac_status); } &&
12469 { ac_try='test -z "$ac_c_werror_flag"
12470 || test ! -s conftest.err'
12471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12472 (eval $ac_try) 2>&5
12474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475 (exit $ac_status); }; } &&
12476 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
12482 gt_cv_func_gnugettext1_libintl=yes
12484 echo "$as_me: failed program was:" >&5
12485 sed 's/^/| /' conftest.$ac_ext >&5
12487 gt_cv_func_gnugettext1_libintl=no
12489 rm -f conftest.err conftest.$ac_objext \
12490 conftest$ac_exeext conftest.$ac_ext
12491 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
12492 LIBS="$LIBS $LIBICONV"
12493 cat >conftest.$ac_ext <<_ACEOF
12496 cat confdefs.h >>conftest.$ac_ext
12497 cat >>conftest.$ac_ext <<_ACEOF
12498 /* end confdefs.h. */
12499 #include <libintl.h>
12500 extern int _nl_msg_cat_cntr;
12505 const char *_nl_expand_alias (const char *);
12509 bindtextdomain ("", "");
12510 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
12515 rm -f conftest.$ac_objext conftest$ac_exeext
12516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12517 (eval $ac_link) 2>conftest.er1
12519 grep -v '^ *+' conftest.er1 >conftest.err
12521 cat conftest.err >&5
12522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12523 (exit $ac_status); } &&
12524 { ac_try='test -z "$ac_c_werror_flag"
12525 || test ! -s conftest.err'
12526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12527 (eval $ac_try) 2>&5
12529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12530 (exit $ac_status); }; } &&
12531 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
12537 LIBINTL="$LIBINTL $LIBICONV"
12538 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
12539 gt_cv_func_gnugettext1_libintl=yes
12542 echo "$as_me: failed program was:" >&5
12543 sed 's/^/| /' conftest.$ac_ext >&5
12546 rm -f conftest.err conftest.$ac_objext \
12547 conftest$ac_exeext conftest.$ac_ext
12549 CPPFLAGS="$gt_save_CPPFLAGS"
12550 LIBS="$gt_save_LIBS"
12552 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
12553 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
12556 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
12557 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
12558 && test "$PACKAGE" != gettext-runtime \
12559 && test "$PACKAGE" != gettext-tools; }; then
12560 gt_use_preinstalled_gnugettext=yes
12568 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
12569 nls_cv_use_gnu_gettext=yes
12573 if test "$nls_cv_use_gnu_gettext" = "yes"; then
12574 BUILD_INCLUDED_LIBINTL=yes
12575 USE_INCLUDED_LIBINTL=yes
12576 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
12577 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
12578 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
12582 if test "$gt_use_preinstalled_gnugettext" = "yes" \
12583 || test "$nls_cv_use_gnu_gettext" = "yes"; then
12588 if test -n "$INTL_MACOSX_LIBS"; then
12589 if test "$gt_use_preinstalled_gnugettext" = "yes" \
12590 || test "$nls_cv_use_gnu_gettext" = "yes"; then
12591 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
12592 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
12596 if test "$gt_use_preinstalled_gnugettext" = "yes" \
12597 || test "$nls_cv_use_gnu_gettext" = "yes"; then
12599 cat >>confdefs.h <<\_ACEOF
12600 #define ENABLE_NLS 1
12608 echo "$as_me:$LINENO: checking whether to use NLS" >&5
12609 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
12610 echo "$as_me:$LINENO: result: $USE_NLS" >&5
12611 echo "${ECHO_T}$USE_NLS" >&6
12612 if test "$USE_NLS" = "yes"; then
12613 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
12614 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
12615 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12616 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
12617 gt_source="external libintl"
12622 gt_source="included intl directory"
12624 echo "$as_me:$LINENO: result: $gt_source" >&5
12625 echo "${ECHO_T}$gt_source" >&6
12628 if test "$USE_NLS" = "yes"; then
12630 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12631 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
12632 echo "$as_me:$LINENO: checking how to link with libintl" >&5
12633 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
12634 echo "$as_me:$LINENO: result: $LIBINTL" >&5
12635 echo "${ECHO_T}$LIBINTL" >&6
12637 for element in $INCINTL; do
12639 for x in $CPPFLAGS; do
12641 acl_save_prefix="$prefix"
12642 prefix="$acl_final_prefix"
12643 acl_save_exec_prefix="$exec_prefix"
12644 exec_prefix="$acl_final_exec_prefix"
12646 exec_prefix="$acl_save_exec_prefix"
12647 prefix="$acl_save_prefix"
12649 if test "X$x" = "X$element"; then
12654 if test -z "$haveit"; then
12655 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12662 cat >>confdefs.h <<\_ACEOF
12663 #define HAVE_GETTEXT 1
12667 cat >>confdefs.h <<\_ACEOF
12668 #define HAVE_DCGETTEXT 1
12677 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
12678 BUILD_INCLUDED_LIBINTL=yes
12685 nls_cv_header_intl=
12686 nls_cv_header_libgt=
12698 if test "$USE_INCLUDED_LIBINTL" = yes; then
12699 INTLOBJS="\$(GETTOBJS)"
12703 INTL_LIBTOOL_SUFFIX_PREFIX=
12707 INTLLIBS="$LIBINTL"
12720 support_postgresql=no
12721 support_smartalloc=yes
12722 support_readline=yes
12726 support_wx_console=no
12731 support_static_tools=no
12732 support_static_fd=no
12733 support_static_sd=no
12734 support_static_dir=no
12735 support_static_cons=no
12737 build_client_only=no
12745 # -------------------------------------------
12746 # gnome (default off)
12747 # -------------------------------------------
12748 # Check whether --enable-gnome or --disable-gnome was given.
12749 if test "${enable_gnome+set}" = set; then
12750 enableval="$enable_gnome"
12751 if test x$enableval = xyes; then
12757 if test x$support_gnome = xyes; then
12758 abc=`$PKGCONFIG --exists libgnomeui-2.0`
12760 if test $pkg = 0; then
12761 GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
12762 GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
12763 GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
12764 GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
12769 GNOME_DIR=src/gnome2-console
12770 gnome_version="Version 2.x"
12772 { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
12773 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
12774 { (exit 1); exit 1; }; }
12779 # -------------------------------------------
12780 # bat (default off)
12781 # -------------------------------------------
12782 # Check whether --enable-bat or --disable-bat was given.
12783 if test "${enable_bat+set}" = set; then
12784 enableval="$enable_bat"
12785 if test x$enableval = xyes; then
12787 cat >>confdefs.h <<\_ACEOF
12796 if test x$support_bat = xyes; then
12797 abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
12799 if test $pkg = 0; then
12800 BAT_DIR=src/qt-console
12802 { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
12803 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
12804 { (exit 1); exit 1; }; }
12809 # If bat is enabled, we need the qwt library
12813 if test x$support_bat = xyes; then
12814 echo "$as_me:$LINENO: checking for qwt support" >&5
12815 echo $ECHO_N "checking for qwt support... $ECHO_C" >&6
12817 # Check whether --with-qwt or --without-qwt was given.
12818 if test "${with_qwt+set}" = set; then
12819 withval="$with_qwt"
12821 case "$with_qwt" in
12825 if test -f ${with_qwt}/include/qwt.h; then
12826 QWT_INC="${with_qwt}/include"
12827 QWT_LDFLAGS="-L${with_qwt}/lib"
12835 # Search in standard places, or --with-qwt not specified
12837 if test x$QWT_INC = x; then
12838 for root in /usr /usr/local; do
12839 for ver in qwt qwt5; do
12840 if test -f ${root}/include/${ver}/qwt.h; then
12841 QWT_INC="${root}/include/${ver}"
12842 if test -d ${root}/lib64/; then
12843 QWT_LDFLAGS="-L${root}/lib64"
12845 QWT_LDFLAGS="-L${root}/lib"
12853 if test x$QWT_INC = x; then
12854 echo "$as_me:$LINENO: result: no" >&5
12855 echo "${ECHO_T}no" >&6
12856 { { echo "$as_me:$LINENO: error: Unable to find qwt package needed by bat" >&5
12857 echo "$as_me: error: Unable to find qwt package needed by bat" >&2;}
12858 { (exit 1); exit 1; }; }
12862 echo "$as_me:$LINENO: result: yes" >&5
12863 echo "${ECHO_T}yes" >&6
12872 # -------------------------------------------
12873 # bwx-console (default off)
12874 # -------------------------------------------
12875 # Check whether --enable-bwx-console or --disable-bwx-console was given.
12876 if test "${enable_bwx_console+set}" = set; then
12877 enableval="$enable_bwx_console"
12878 if test x$enableval = xyes; then
12879 support_wx_console=yes
12884 if test x$support_wx_console = xyes; then
12885 abc=`$WXCONFIG $WXFLAGS --cppflags`
12887 if test $pkg = 0; then
12888 wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
12889 WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
12890 WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
12894 WX_DIR=src/wx-console
12897 echo "wx-config program not found. bwx-console disabled."
12899 support_wx_console=no
12905 # -------------------------------------------
12906 # tray-monitor (default off)
12907 # -------------------------------------------
12908 # Check whether --enable-tray-monitor or --disable-tray-monitor was given.
12909 if test "${enable_tray_monitor+set}" = set; then
12910 enableval="$enable_tray_monitor"
12911 if test x$enableval = xyes; then
12912 support_tray_monitor=yes
12917 if test x$support_tray_monitor = xyes; then
12918 abc=`$PKGCONFIG --exists gtk+-2.0`
12920 if test $pkg = 0; then
12921 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
12922 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
12925 TRAY_MONITOR_DIR=src/tray-monitor
12926 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
12928 if test $pkg = 0; then
12930 cat >>confdefs.h <<\_ACEOF
12931 #define HAVE_GTK_2_4 1
12939 # -------------------------------------------
12940 # smartalloc (default off)
12941 # -------------------------------------------
12942 # Check whether --enable-smartalloc or --disable-smartalloc was given.
12943 if test "${enable_smartalloc+set}" = set; then
12944 enableval="$enable_smartalloc"
12945 if test x$enableval = xno; then
12946 support_smartalloc=no
12950 if test x$support_smartalloc = xyes; then
12952 cat >>confdefs.h <<\_ACEOF
12953 #define SMARTALLOC 1
12958 # -------------------------------------------
12959 # static-tools (default off)
12960 # -------------------------------------------
12961 # Check whether --enable-static-tools or --disable-static-tools was given.
12962 if test "${enable_static_tools+set}" = set; then
12963 enableval="$enable_static_tools"
12964 if test x$enableval = xyes; then
12965 support_static_tools=yes
12970 if test x$support_static_tools = xyes; then
12971 TTOOL_LDFLAGS="-static"
12975 # -------------------------------------------
12976 # static-fd (default off)
12977 # -------------------------------------------
12978 # Check whether --enable-static-fd or --disable-static-fd was given.
12979 if test "${enable_static_fd+set}" = set; then
12980 enableval="$enable_static_fd"
12981 if test x$enableval = xyes; then
12982 support_static_fd=yes
12987 if test x$support_static_fd = xyes; then
12988 STATIC_FD="static-bacula-fd"
12992 # -------------------------------------------
12993 # static-sd (default off)
12994 # -------------------------------------------
12995 # Check whether --enable-static-sd or --disable-static-sd was given.
12996 if test "${enable_static_sd+set}" = set; then
12997 enableval="$enable_static_sd"
12998 if test x$enableval = xyes; then
12999 support_static_sd=yes
13004 if test x$support_static_sd = xyes; then
13005 STATIC_SD="static-bacula-sd"
13009 # -------------------------------------------
13010 # static-dir (default off)
13011 # -------------------------------------------
13012 # Check whether --enable-static-dir or --disable-static-dir was given.
13013 if test "${enable_static_dir+set}" = set; then
13014 enableval="$enable_static_dir"
13015 if test x$enableval = xyes; then
13016 support_static_dir=yes
13021 if test x$support_static_dir = xyes; then
13022 STATIC_DIR="static-bacula-dir"
13026 # -------------------------------------------
13027 # static-cons (default off)
13028 # -------------------------------------------
13029 # Check whether --enable-static-cons or --disable-static-cons was given.
13030 if test "${enable_static_cons+set}" = set; then
13031 enableval="$enable_static_cons"
13032 if test x$enableval = xyes; then
13033 support_static_cons=yes
13040 if test x$support_static_cons = xyes; then
13041 STATIC_CONS="static-bconsole"
13042 STATIC_GNOME_CONS="static-bgnome-console"
13043 STATIC_WX_CONS="static-bwx-console"
13049 # -------------------------------------------
13050 # client_only (default off)
13051 # -------------------------------------------
13052 # Check whether --enable-client-only or --disable-client-only was given.
13053 if test "${enable_client_only+set}" = set; then
13054 enableval="$enable_client_only"
13055 if test x$enableval = xyes; then
13056 build_client_only=yes
13061 if test x$build_client_only = xno; then
13068 # -------------------------------------------
13069 # director (default on)
13070 # -------------------------------------------
13071 # Check whether --enable-build-dird or --disable-build-dird was given.
13072 if test "${enable_build_dird+set}" = set; then
13073 enableval="$enable_build_dird"
13074 if test x$enableval = xno; then
13078 if test x$build_dird = xyes; then
13079 DIRD_DIR="src/dird"
13080 DIR_TOOLS="DIRTOOLS"
13083 DIR_TOOLS="NODIRTOOLS"
13088 # -------------------------------------------
13089 # stored (default on)
13090 # -------------------------------------------
13091 # Check whether --enable-build-stored or --disable-build-stored was given.
13092 if test "${enable_build_stored+set}" = set; then
13093 enableval="$enable_build_stored"
13094 if test x$enableval = xno; then
13098 if test x$build_stored = xyes; then
13099 STORED_DIR="src/stored"
13105 # ---------------------------------------------------
13106 # Check for conio (Bacula readline substitute)(
13107 # ---------------------------------------------------
13108 # this allows you to turn it completely off
13109 # Check whether --enable-conio or --disable-conio was given.
13110 if test "${enable_conio+set}" = set; then
13111 enableval="$enable_conio"
13112 if test x$enableval = xno; then
13119 # ---------------------------------------------------
13120 # Check for IPv6 support
13121 # ---------------------------------------------------
13122 # this allows you to turn it completely off
13124 # Check whether --enable-ipv6 or --disable-ipv6 was given.
13125 if test "${enable_ipv6+set}" = set; then
13126 enableval="$enable_ipv6"
13127 if test x$enableval = xno; then
13133 if test x$support_ipv6 = xyes; then
13134 cat >conftest.$ac_ext <<_ACEOF
13137 cat confdefs.h >>conftest.$ac_ext
13138 cat >>conftest.$ac_ext <<_ACEOF
13139 /* end confdefs.h. */
13140 #include <sys/types.h>
13141 #include <sys/socket.h>
13142 #include <netinet/in.h>
13146 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
13151 rm -f conftest.$ac_objext conftest$ac_exeext
13152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13153 (eval $ac_link) 2>conftest.er1
13155 grep -v '^ *+' conftest.er1 >conftest.err
13157 cat conftest.err >&5
13158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13159 (exit $ac_status); } &&
13160 { ac_try='test -z "$ac_c_werror_flag"
13161 || test ! -s conftest.err'
13162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13163 (eval $ac_try) 2>&5
13165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13166 (exit $ac_status); }; } &&
13167 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
13175 echo "$as_me: failed program was:" >&5
13176 sed 's/^/| /' conftest.$ac_ext >&5
13180 rm -f conftest.err conftest.$ac_objext \
13181 conftest$ac_exeext conftest.$ac_ext
13184 if test x$support_ipv6 = xyes; then
13186 cat >>confdefs.h <<\_ACEOF
13187 #define HAVE_IPV6 1
13195 if test x$support_conio = xyes; then
13196 if test "${ac_cv_header_termcap_h+set}" = set; then
13197 echo "$as_me:$LINENO: checking for termcap.h" >&5
13198 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
13199 if test "${ac_cv_header_termcap_h+set}" = set; then
13200 echo $ECHO_N "(cached) $ECHO_C" >&6
13202 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
13203 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
13205 # Is the header compilable?
13206 echo "$as_me:$LINENO: checking termcap.h usability" >&5
13207 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
13208 cat >conftest.$ac_ext <<_ACEOF
13211 cat confdefs.h >>conftest.$ac_ext
13212 cat >>conftest.$ac_ext <<_ACEOF
13213 /* end confdefs.h. */
13214 $ac_includes_default
13215 #include <termcap.h>
13217 rm -f conftest.$ac_objext
13218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13219 (eval $ac_compile) 2>conftest.er1
13221 grep -v '^ *+' conftest.er1 >conftest.err
13223 cat conftest.err >&5
13224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13225 (exit $ac_status); } &&
13226 { ac_try='test -z "$ac_c_werror_flag"
13227 || test ! -s conftest.err'
13228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13229 (eval $ac_try) 2>&5
13231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13232 (exit $ac_status); }; } &&
13233 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
13239 ac_header_compiler=yes
13241 echo "$as_me: failed program was:" >&5
13242 sed 's/^/| /' conftest.$ac_ext >&5
13244 ac_header_compiler=no
13246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13247 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13248 echo "${ECHO_T}$ac_header_compiler" >&6
13250 # Is the header present?
13251 echo "$as_me:$LINENO: checking termcap.h presence" >&5
13252 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
13253 cat >conftest.$ac_ext <<_ACEOF
13256 cat confdefs.h >>conftest.$ac_ext
13257 cat >>conftest.$ac_ext <<_ACEOF
13258 /* end confdefs.h. */
13259 #include <termcap.h>
13261 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13262 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13264 grep -v '^ *+' conftest.er1 >conftest.err
13266 cat conftest.err >&5
13267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13268 (exit $ac_status); } >/dev/null; then
13269 if test -s conftest.err; then
13270 ac_cpp_err=$ac_c_preproc_warn_flag
13271 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13278 if test -z "$ac_cpp_err"; then
13279 ac_header_preproc=yes
13281 echo "$as_me: failed program was:" >&5
13282 sed 's/^/| /' conftest.$ac_ext >&5
13284 ac_header_preproc=no
13286 rm -f conftest.err conftest.$ac_ext
13287 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13288 echo "${ECHO_T}$ac_header_preproc" >&6
13290 # So? What about this header?
13291 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13293 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
13294 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13295 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
13296 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
13297 ac_header_preproc=yes
13300 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
13301 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
13302 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
13303 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
13304 { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
13305 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
13306 { echo "$as_me:$LINENO: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&5
13307 echo "$as_me: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
13308 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
13309 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
13310 { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
13311 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
13314 ## ------------------------------------------ ##
13315 ## Report this to the AC_PACKAGE_NAME lists. ##
13316 ## ------------------------------------------ ##
13319 sed "s/^/$as_me: WARNING: /" >&2
13322 echo "$as_me:$LINENO: checking for termcap.h" >&5
13323 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
13324 if test "${ac_cv_header_termcap_h+set}" = set; then
13325 echo $ECHO_N "(cached) $ECHO_C" >&6
13327 ac_cv_header_termcap_h=$ac_header_preproc
13329 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
13330 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
13333 if test $ac_cv_header_termcap_h = yes; then
13334 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
13335 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
13336 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
13337 echo $ECHO_N "(cached) $ECHO_C" >&6
13339 ac_check_lib_save_LIBS=$LIBS
13340 LIBS="-ltermcap $LIBS"
13341 cat >conftest.$ac_ext <<_ACEOF
13344 cat confdefs.h >>conftest.$ac_ext
13345 cat >>conftest.$ac_ext <<_ACEOF
13346 /* end confdefs.h. */
13348 /* Override any gcc2 internal prototype to avoid an error. */
13352 /* We use char because int might match the return type of a gcc2
13353 builtin and then its argument prototype would still apply. */
13363 rm -f conftest.$ac_objext conftest$ac_exeext
13364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13365 (eval $ac_link) 2>conftest.er1
13367 grep -v '^ *+' conftest.er1 >conftest.err
13369 cat conftest.err >&5
13370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13371 (exit $ac_status); } &&
13372 { ac_try='test -z "$ac_c_werror_flag"
13373 || test ! -s conftest.err'
13374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13375 (eval $ac_try) 2>&5
13377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13378 (exit $ac_status); }; } &&
13379 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
13385 ac_cv_lib_termcap_tgetent=yes
13387 echo "$as_me: failed program was:" >&5
13388 sed 's/^/| /' conftest.$ac_ext >&5
13390 ac_cv_lib_termcap_tgetent=no
13392 rm -f conftest.err conftest.$ac_objext \
13393 conftest$ac_exeext conftest.$ac_ext
13394 LIBS=$ac_check_lib_save_LIBS
13396 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
13397 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
13398 if test $ac_cv_lib_termcap_tgetent = yes; then
13399 CONS_LIBS="-ltermcap"
13403 support_readline=no
13405 cat >>confdefs.h <<\_ACEOF
13406 #define HAVE_CONIO 1
13411 echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
13412 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
13413 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
13414 echo $ECHO_N "(cached) $ECHO_C" >&6
13416 ac_check_lib_save_LIBS=$LIBS
13417 LIBS="-lncurses $LIBS"
13418 cat >conftest.$ac_ext <<_ACEOF
13421 cat confdefs.h >>conftest.$ac_ext
13422 cat >>conftest.$ac_ext <<_ACEOF
13423 /* end confdefs.h. */
13425 /* Override any gcc2 internal prototype to avoid an error. */
13429 /* We use char because int might match the return type of a gcc2
13430 builtin and then its argument prototype would still apply. */
13440 rm -f conftest.$ac_objext conftest$ac_exeext
13441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13442 (eval $ac_link) 2>conftest.er1
13444 grep -v '^ *+' conftest.er1 >conftest.err
13446 cat conftest.err >&5
13447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13448 (exit $ac_status); } &&
13449 { ac_try='test -z "$ac_c_werror_flag"
13450 || test ! -s conftest.err'
13451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13452 (eval $ac_try) 2>&5
13454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13455 (exit $ac_status); }; } &&
13456 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
13462 ac_cv_lib_ncurses_tgetent=yes
13464 echo "$as_me: failed program was:" >&5
13465 sed 's/^/| /' conftest.$ac_ext >&5
13467 ac_cv_lib_ncurses_tgetent=no
13469 rm -f conftest.err conftest.$ac_objext \
13470 conftest$ac_exeext conftest.$ac_ext
13471 LIBS=$ac_check_lib_save_LIBS
13473 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
13474 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
13475 if test $ac_cv_lib_ncurses_tgetent = yes; then
13476 CONS_LIBS="-lncurses"
13480 support_readline=no
13482 cat >>confdefs.h <<\_ACEOF
13483 #define HAVE_CONIO 1
13496 for ac_header in curses.h
13498 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13499 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13500 echo "$as_me:$LINENO: checking for $ac_header" >&5
13501 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13502 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13503 echo $ECHO_N "(cached) $ECHO_C" >&6
13505 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13506 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13508 # Is the header compilable?
13509 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13510 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13511 cat >conftest.$ac_ext <<_ACEOF
13514 cat confdefs.h >>conftest.$ac_ext
13515 cat >>conftest.$ac_ext <<_ACEOF
13516 /* end confdefs.h. */
13517 $ac_includes_default
13518 #include <$ac_header>
13520 rm -f conftest.$ac_objext
13521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13522 (eval $ac_compile) 2>conftest.er1
13524 grep -v '^ *+' conftest.er1 >conftest.err
13526 cat conftest.err >&5
13527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13528 (exit $ac_status); } &&
13529 { ac_try='test -z "$ac_c_werror_flag"
13530 || test ! -s conftest.err'
13531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13532 (eval $ac_try) 2>&5
13534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13535 (exit $ac_status); }; } &&
13536 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
13542 ac_header_compiler=yes
13544 echo "$as_me: failed program was:" >&5
13545 sed 's/^/| /' conftest.$ac_ext >&5
13547 ac_header_compiler=no
13549 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13550 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13551 echo "${ECHO_T}$ac_header_compiler" >&6
13553 # Is the header present?
13554 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13555 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13556 cat >conftest.$ac_ext <<_ACEOF
13559 cat confdefs.h >>conftest.$ac_ext
13560 cat >>conftest.$ac_ext <<_ACEOF
13561 /* end confdefs.h. */
13562 #include <$ac_header>
13564 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13565 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13567 grep -v '^ *+' conftest.er1 >conftest.err
13569 cat conftest.err >&5
13570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13571 (exit $ac_status); } >/dev/null; then
13572 if test -s conftest.err; then
13573 ac_cpp_err=$ac_c_preproc_warn_flag
13574 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13581 if test -z "$ac_cpp_err"; then
13582 ac_header_preproc=yes
13584 echo "$as_me: failed program was:" >&5
13585 sed 's/^/| /' conftest.$ac_ext >&5
13587 ac_header_preproc=no
13589 rm -f conftest.err conftest.$ac_ext
13590 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13591 echo "${ECHO_T}$ac_header_preproc" >&6
13593 # So? What about this header?
13594 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13596 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13597 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13598 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13599 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13600 ac_header_preproc=yes
13603 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13604 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13605 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13606 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13607 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13608 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13609 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13610 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13611 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13612 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13613 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13614 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13617 ## ------------------------------------------ ##
13618 ## Report this to the AC_PACKAGE_NAME lists. ##
13619 ## ------------------------------------------ ##
13622 sed "s/^/$as_me: WARNING: /" >&2
13625 echo "$as_me:$LINENO: checking for $ac_header" >&5
13626 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13627 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13628 echo $ECHO_N "(cached) $ECHO_C" >&6
13630 eval "$as_ac_Header=\$ac_header_preproc"
13632 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13633 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13636 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13637 cat >>confdefs.h <<_ACEOF
13638 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13645 echo "$as_me:$LINENO: checking for term.h" >&5
13646 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
13647 if test "${ac_cv_header_term_h+set}" = set; then
13648 echo $ECHO_N "(cached) $ECHO_C" >&6
13650 cat >conftest.$ac_ext <<_ACEOF
13653 cat confdefs.h >>conftest.$ac_ext
13654 cat >>conftest.$ac_ext <<_ACEOF
13655 /* end confdefs.h. */
13657 #include <curses.h>
13663 rm -f conftest.$ac_objext
13664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13665 (eval $ac_compile) 2>conftest.er1
13667 grep -v '^ *+' conftest.er1 >conftest.err
13669 cat conftest.err >&5
13670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13671 (exit $ac_status); } &&
13672 { ac_try='test -z "$ac_c_werror_flag"
13673 || test ! -s conftest.err'
13674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13675 (eval $ac_try) 2>&5
13677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13678 (exit $ac_status); }; } &&
13679 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
13685 ac_cv_header_term_h=yes
13687 echo "$as_me: failed program was:" >&5
13688 sed 's/^/| /' conftest.$ac_ext >&5
13690 ac_cv_header_term_h=no
13692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13694 echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
13695 echo "${ECHO_T}$ac_cv_header_term_h" >&6
13696 if test $ac_cv_header_term_h = yes; then
13697 echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
13698 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
13699 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
13700 echo $ECHO_N "(cached) $ECHO_C" >&6
13702 ac_check_lib_save_LIBS=$LIBS
13703 LIBS="-lcurses $LIBS"
13704 cat >conftest.$ac_ext <<_ACEOF
13707 cat confdefs.h >>conftest.$ac_ext
13708 cat >>conftest.$ac_ext <<_ACEOF
13709 /* end confdefs.h. */
13711 /* Override any gcc2 internal prototype to avoid an error. */
13715 /* We use char because int might match the return type of a gcc2
13716 builtin and then its argument prototype would still apply. */
13726 rm -f conftest.$ac_objext conftest$ac_exeext
13727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13728 (eval $ac_link) 2>conftest.er1
13730 grep -v '^ *+' conftest.er1 >conftest.err
13732 cat conftest.err >&5
13733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13734 (exit $ac_status); } &&
13735 { ac_try='test -z "$ac_c_werror_flag"
13736 || test ! -s conftest.err'
13737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13738 (eval $ac_try) 2>&5
13740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13741 (exit $ac_status); }; } &&
13742 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
13748 ac_cv_lib_curses_tgetent=yes
13750 echo "$as_me: failed program was:" >&5
13751 sed 's/^/| /' conftest.$ac_ext >&5
13753 ac_cv_lib_curses_tgetent=no
13755 rm -f conftest.err conftest.$ac_objext \
13756 conftest$ac_exeext conftest.$ac_ext
13757 LIBS=$ac_check_lib_save_LIBS
13759 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
13760 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
13761 if test $ac_cv_lib_curses_tgetent = yes; then
13762 CONS_LIBS="-lcurses"
13766 support_readline=no
13768 cat >>confdefs.h <<\_ACEOF
13769 #define HAVE_CONIO 1
13777 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
13788 # ---------------------------------------------------
13789 # Check for readline support/directory (default off)
13790 # ---------------------------------------------------
13791 # this allows you to turn it completely off
13792 # Check whether --enable-readline or --disable-readline was given.
13793 if test "${enable_readline+set}" = set; then
13794 enableval="$enable_readline"
13795 if test x$enableval = xno; then
13796 support_readline=no
13802 if test x$support_readline = xyes; then
13804 # Check whether --with-readline or --without-readline was given.
13805 if test "${with_readline+set}" = set; then
13806 withval="$with_readline"
13808 case "$with_readline" in
13811 if test -f ${with_readline}/readline.h; then
13812 CONS_INC="-I${with_readline}"
13813 CONS_LDFLAGS="-L$with_readline"
13814 elif test -f ${with_readline}/include/readline/readline.h; then
13815 CONS_INC="-I${with_readline}/include/readline"
13816 CONS_LDFLAGS="-L${with_readline}/lib"
13817 with_readline="${with_readline}/include/readline"
13819 with_readline="/usr/include/readline"
13821 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
13822 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13823 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
13824 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
13825 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13826 echo $ECHO_N "(cached) $ECHO_C" >&6
13828 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13829 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13831 # Is the header compilable?
13832 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
13833 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
13834 cat >conftest.$ac_ext <<_ACEOF
13837 cat confdefs.h >>conftest.$ac_ext
13838 cat >>conftest.$ac_ext <<_ACEOF
13839 /* end confdefs.h. */
13840 $ac_includes_default
13841 #include <${with_readline}/readline.h>
13843 rm -f conftest.$ac_objext
13844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13845 (eval $ac_compile) 2>conftest.er1
13847 grep -v '^ *+' conftest.er1 >conftest.err
13849 cat conftest.err >&5
13850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13851 (exit $ac_status); } &&
13852 { ac_try='test -z "$ac_c_werror_flag"
13853 || test ! -s conftest.err'
13854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13855 (eval $ac_try) 2>&5
13857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13858 (exit $ac_status); }; } &&
13859 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
13865 ac_header_compiler=yes
13867 echo "$as_me: failed program was:" >&5
13868 sed 's/^/| /' conftest.$ac_ext >&5
13870 ac_header_compiler=no
13872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13873 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13874 echo "${ECHO_T}$ac_header_compiler" >&6
13876 # Is the header present?
13877 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
13878 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
13879 cat >conftest.$ac_ext <<_ACEOF
13882 cat confdefs.h >>conftest.$ac_ext
13883 cat >>conftest.$ac_ext <<_ACEOF
13884 /* end confdefs.h. */
13885 #include <${with_readline}/readline.h>
13887 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13888 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13890 grep -v '^ *+' conftest.er1 >conftest.err
13892 cat conftest.err >&5
13893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13894 (exit $ac_status); } >/dev/null; then
13895 if test -s conftest.err; then
13896 ac_cpp_err=$ac_c_preproc_warn_flag
13897 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13904 if test -z "$ac_cpp_err"; then
13905 ac_header_preproc=yes
13907 echo "$as_me: failed program was:" >&5
13908 sed 's/^/| /' conftest.$ac_ext >&5
13910 ac_header_preproc=no
13912 rm -f conftest.err conftest.$ac_ext
13913 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13914 echo "${ECHO_T}$ac_header_preproc" >&6
13916 # So? What about this header?
13917 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13919 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
13920 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13921 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
13922 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
13923 ac_header_preproc=yes
13926 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
13927 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
13928 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
13929 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
13930 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
13931 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
13932 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&5
13933 echo "$as_me: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
13934 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
13935 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
13936 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
13937 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
13940 ## ------------------------------------------ ##
13941 ## Report this to the AC_PACKAGE_NAME lists. ##
13942 ## ------------------------------------------ ##
13945 sed "s/^/$as_me: WARNING: /" >&2
13948 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
13949 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
13950 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13951 echo $ECHO_N "(cached) $ECHO_C" >&6
13953 eval "$as_ac_Header=\$ac_header_preproc"
13955 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13956 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13959 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13961 cat >>confdefs.h <<\_ACEOF
13962 #define HAVE_READLINE 1
13965 CONS_LIBS="-lreadline -lhistory -ltermcap"
13970 echo "readline.h not found. readline turned off ..."
13982 # check for standard readline library
13983 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
13984 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
13985 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
13986 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
13987 echo $ECHO_N "(cached) $ECHO_C" >&6
13989 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
13990 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
13992 # Is the header compilable?
13993 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
13994 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
13995 cat >conftest.$ac_ext <<_ACEOF
13998 cat confdefs.h >>conftest.$ac_ext
13999 cat >>conftest.$ac_ext <<_ACEOF
14000 /* end confdefs.h. */
14001 $ac_includes_default
14002 #include </usr/include/readline/readline.h>
14004 rm -f conftest.$ac_objext
14005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14006 (eval $ac_compile) 2>conftest.er1
14008 grep -v '^ *+' conftest.er1 >conftest.err
14010 cat conftest.err >&5
14011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14012 (exit $ac_status); } &&
14013 { ac_try='test -z "$ac_c_werror_flag"
14014 || test ! -s conftest.err'
14015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14016 (eval $ac_try) 2>&5
14018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14019 (exit $ac_status); }; } &&
14020 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
14026 ac_header_compiler=yes
14028 echo "$as_me: failed program was:" >&5
14029 sed 's/^/| /' conftest.$ac_ext >&5
14031 ac_header_compiler=no
14033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14034 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14035 echo "${ECHO_T}$ac_header_compiler" >&6
14037 # Is the header present?
14038 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
14039 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
14040 cat >conftest.$ac_ext <<_ACEOF
14043 cat confdefs.h >>conftest.$ac_ext
14044 cat >>conftest.$ac_ext <<_ACEOF
14045 /* end confdefs.h. */
14046 #include </usr/include/readline/readline.h>
14048 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14049 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14051 grep -v '^ *+' conftest.er1 >conftest.err
14053 cat conftest.err >&5
14054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055 (exit $ac_status); } >/dev/null; then
14056 if test -s conftest.err; then
14057 ac_cpp_err=$ac_c_preproc_warn_flag
14058 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14065 if test -z "$ac_cpp_err"; then
14066 ac_header_preproc=yes
14068 echo "$as_me: failed program was:" >&5
14069 sed 's/^/| /' conftest.$ac_ext >&5
14071 ac_header_preproc=no
14073 rm -f conftest.err conftest.$ac_ext
14074 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14075 echo "${ECHO_T}$ac_header_preproc" >&6
14077 # So? What about this header?
14078 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14080 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14081 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14082 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
14083 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
14084 ac_header_preproc=yes
14087 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
14088 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
14089 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
14090 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
14091 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
14092 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
14093 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
14094 echo "$as_me: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
14095 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
14096 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
14097 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
14098 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
14101 ## ------------------------------------------ ##
14102 ## Report this to the AC_PACKAGE_NAME lists. ##
14103 ## ------------------------------------------ ##
14106 sed "s/^/$as_me: WARNING: /" >&2
14109 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
14110 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
14111 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14112 echo $ECHO_N "(cached) $ECHO_C" >&6
14114 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
14116 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
14117 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
14120 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
14122 cat >>confdefs.h <<\_ACEOF
14123 #define HAVE_READLINE 1
14127 CONS_INC="-I/usr/include/readline"
14128 CONS_LIBS="-lreadline -ltermcap"
14132 # Did not find standard library, so try Bacula's default
14133 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
14134 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14135 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14136 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
14137 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14138 echo $ECHO_N "(cached) $ECHO_C" >&6
14140 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14141 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14143 # Is the header compilable?
14144 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
14145 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
14146 cat >conftest.$ac_ext <<_ACEOF
14149 cat confdefs.h >>conftest.$ac_ext
14150 cat >>conftest.$ac_ext <<_ACEOF
14151 /* end confdefs.h. */
14152 $ac_includes_default
14153 #include <${TOP_DIR}/depkgs/readline/readline.h>
14155 rm -f conftest.$ac_objext
14156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14157 (eval $ac_compile) 2>conftest.er1
14159 grep -v '^ *+' conftest.er1 >conftest.err
14161 cat conftest.err >&5
14162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14163 (exit $ac_status); } &&
14164 { ac_try='test -z "$ac_c_werror_flag"
14165 || test ! -s conftest.err'
14166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14167 (eval $ac_try) 2>&5
14169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14170 (exit $ac_status); }; } &&
14171 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
14177 ac_header_compiler=yes
14179 echo "$as_me: failed program was:" >&5
14180 sed 's/^/| /' conftest.$ac_ext >&5
14182 ac_header_compiler=no
14184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14185 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14186 echo "${ECHO_T}$ac_header_compiler" >&6
14188 # Is the header present?
14189 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
14190 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
14191 cat >conftest.$ac_ext <<_ACEOF
14194 cat confdefs.h >>conftest.$ac_ext
14195 cat >>conftest.$ac_ext <<_ACEOF
14196 /* end confdefs.h. */
14197 #include <${TOP_DIR}/depkgs/readline/readline.h>
14199 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14200 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14202 grep -v '^ *+' conftest.er1 >conftest.err
14204 cat conftest.err >&5
14205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14206 (exit $ac_status); } >/dev/null; then
14207 if test -s conftest.err; then
14208 ac_cpp_err=$ac_c_preproc_warn_flag
14209 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14216 if test -z "$ac_cpp_err"; then
14217 ac_header_preproc=yes
14219 echo "$as_me: failed program was:" >&5
14220 sed 's/^/| /' conftest.$ac_ext >&5
14222 ac_header_preproc=no
14224 rm -f conftest.err conftest.$ac_ext
14225 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14226 echo "${ECHO_T}$ac_header_preproc" >&6
14228 # So? What about this header?
14229 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14231 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14232 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14233 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
14234 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
14235 ac_header_preproc=yes
14238 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
14239 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
14240 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
14241 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
14242 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
14243 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
14244 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
14245 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
14246 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
14247 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
14248 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
14249 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
14252 ## ------------------------------------------ ##
14253 ## Report this to the AC_PACKAGE_NAME lists. ##
14254 ## ------------------------------------------ ##
14257 sed "s/^/$as_me: WARNING: /" >&2
14260 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14261 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
14262 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14263 echo $ECHO_N "(cached) $ECHO_C" >&6
14265 eval "$as_ac_Header=\$ac_header_preproc"
14267 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14268 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14271 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14273 cat >>confdefs.h <<\_ACEOF
14274 #define HAVE_READLINE 1
14278 CONS_INC="-I${TOP_DIR}/depkgs/readline"
14279 CONS_LIBS="-lreadline -lhistory -ltermcap"
14280 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
14281 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
14285 echo "readline.h not found. readline turned off ..."
14311 # Minimal stuff for readline Makefile configuration
14314 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14315 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
14316 if test "${ac_cv_header_stat_broken+set}" = set; then
14317 echo $ECHO_N "(cached) $ECHO_C" >&6
14319 cat >conftest.$ac_ext <<_ACEOF
14322 cat confdefs.h >>conftest.$ac_ext
14323 cat >>conftest.$ac_ext <<_ACEOF
14324 /* end confdefs.h. */
14325 #include <sys/types.h>
14326 #include <sys/stat.h>
14328 #if defined(S_ISBLK) && defined(S_IFDIR)
14329 # if S_ISBLK (S_IFDIR)
14334 #if defined(S_ISBLK) && defined(S_IFCHR)
14335 # if S_ISBLK (S_IFCHR)
14340 #if defined(S_ISLNK) && defined(S_IFREG)
14341 # if S_ISLNK (S_IFREG)
14346 #if defined(S_ISSOCK) && defined(S_IFREG)
14347 # if S_ISSOCK (S_IFREG)
14353 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14354 $EGREP "You lose" >/dev/null 2>&1; then
14355 ac_cv_header_stat_broken=yes
14357 ac_cv_header_stat_broken=no
14362 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14363 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
14364 if test $ac_cv_header_stat_broken = yes; then
14366 cat >>confdefs.h <<\_ACEOF
14367 #define STAT_MACROS_BROKEN 1
14377 ac_header_dirent=no
14378 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14379 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14380 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14381 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
14382 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14383 echo $ECHO_N "(cached) $ECHO_C" >&6
14385 cat >conftest.$ac_ext <<_ACEOF
14388 cat confdefs.h >>conftest.$ac_ext
14389 cat >>conftest.$ac_ext <<_ACEOF
14390 /* end confdefs.h. */
14391 #include <sys/types.h>
14403 rm -f conftest.$ac_objext
14404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14405 (eval $ac_compile) 2>conftest.er1
14407 grep -v '^ *+' conftest.er1 >conftest.err
14409 cat conftest.err >&5
14410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14411 (exit $ac_status); } &&
14412 { ac_try='test -z "$ac_c_werror_flag"
14413 || test ! -s conftest.err'
14414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14415 (eval $ac_try) 2>&5
14417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14418 (exit $ac_status); }; } &&
14419 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
14425 eval "$as_ac_Header=yes"
14427 echo "$as_me: failed program was:" >&5
14428 sed 's/^/| /' conftest.$ac_ext >&5
14430 eval "$as_ac_Header=no"
14432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14434 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14435 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14436 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14437 cat >>confdefs.h <<_ACEOF
14438 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14441 ac_header_dirent=$ac_hdr; break
14445 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14446 if test $ac_header_dirent = dirent.h; then
14447 echo "$as_me:$LINENO: checking for library containing opendir" >&5
14448 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
14449 if test "${ac_cv_search_opendir+set}" = set; then
14450 echo $ECHO_N "(cached) $ECHO_C" >&6
14452 ac_func_search_save_LIBS=$LIBS
14453 ac_cv_search_opendir=no
14454 cat >conftest.$ac_ext <<_ACEOF
14457 cat confdefs.h >>conftest.$ac_ext
14458 cat >>conftest.$ac_ext <<_ACEOF
14459 /* end confdefs.h. */
14461 /* Override any gcc2 internal prototype to avoid an error. */
14465 /* We use char because int might match the return type of a gcc2
14466 builtin and then its argument prototype would still apply. */
14476 rm -f conftest.$ac_objext conftest$ac_exeext
14477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14478 (eval $ac_link) 2>conftest.er1
14480 grep -v '^ *+' conftest.er1 >conftest.err
14482 cat conftest.err >&5
14483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14484 (exit $ac_status); } &&
14485 { ac_try='test -z "$ac_c_werror_flag"
14486 || test ! -s conftest.err'
14487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14488 (eval $ac_try) 2>&5
14490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14491 (exit $ac_status); }; } &&
14492 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
14498 ac_cv_search_opendir="none required"
14500 echo "$as_me: failed program was:" >&5
14501 sed 's/^/| /' conftest.$ac_ext >&5
14504 rm -f conftest.err conftest.$ac_objext \
14505 conftest$ac_exeext conftest.$ac_ext
14506 if test "$ac_cv_search_opendir" = no; then
14507 for ac_lib in dir; do
14508 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14509 cat >conftest.$ac_ext <<_ACEOF
14512 cat confdefs.h >>conftest.$ac_ext
14513 cat >>conftest.$ac_ext <<_ACEOF
14514 /* end confdefs.h. */
14516 /* Override any gcc2 internal prototype to avoid an error. */
14520 /* We use char because int might match the return type of a gcc2
14521 builtin and then its argument prototype would still apply. */
14531 rm -f conftest.$ac_objext conftest$ac_exeext
14532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14533 (eval $ac_link) 2>conftest.er1
14535 grep -v '^ *+' conftest.er1 >conftest.err
14537 cat conftest.err >&5
14538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14539 (exit $ac_status); } &&
14540 { ac_try='test -z "$ac_c_werror_flag"
14541 || test ! -s conftest.err'
14542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14543 (eval $ac_try) 2>&5
14545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14546 (exit $ac_status); }; } &&
14547 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
14553 ac_cv_search_opendir="-l$ac_lib"
14556 echo "$as_me: failed program was:" >&5
14557 sed 's/^/| /' conftest.$ac_ext >&5
14560 rm -f conftest.err conftest.$ac_objext \
14561 conftest$ac_exeext conftest.$ac_ext
14564 LIBS=$ac_func_search_save_LIBS
14566 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14567 echo "${ECHO_T}$ac_cv_search_opendir" >&6
14568 if test "$ac_cv_search_opendir" != no; then
14569 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
14574 echo "$as_me:$LINENO: checking for library containing opendir" >&5
14575 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
14576 if test "${ac_cv_search_opendir+set}" = set; then
14577 echo $ECHO_N "(cached) $ECHO_C" >&6
14579 ac_func_search_save_LIBS=$LIBS
14580 ac_cv_search_opendir=no
14581 cat >conftest.$ac_ext <<_ACEOF
14584 cat confdefs.h >>conftest.$ac_ext
14585 cat >>conftest.$ac_ext <<_ACEOF
14586 /* end confdefs.h. */
14588 /* Override any gcc2 internal prototype to avoid an error. */
14592 /* We use char because int might match the return type of a gcc2
14593 builtin and then its argument prototype would still apply. */
14603 rm -f conftest.$ac_objext conftest$ac_exeext
14604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14605 (eval $ac_link) 2>conftest.er1
14607 grep -v '^ *+' conftest.er1 >conftest.err
14609 cat conftest.err >&5
14610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14611 (exit $ac_status); } &&
14612 { ac_try='test -z "$ac_c_werror_flag"
14613 || test ! -s conftest.err'
14614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14615 (eval $ac_try) 2>&5
14617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14618 (exit $ac_status); }; } &&
14619 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
14625 ac_cv_search_opendir="none required"
14627 echo "$as_me: failed program was:" >&5
14628 sed 's/^/| /' conftest.$ac_ext >&5
14631 rm -f conftest.err conftest.$ac_objext \
14632 conftest$ac_exeext conftest.$ac_ext
14633 if test "$ac_cv_search_opendir" = no; then
14634 for ac_lib in x; do
14635 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14636 cat >conftest.$ac_ext <<_ACEOF
14639 cat confdefs.h >>conftest.$ac_ext
14640 cat >>conftest.$ac_ext <<_ACEOF
14641 /* end confdefs.h. */
14643 /* Override any gcc2 internal prototype to avoid an error. */
14647 /* We use char because int might match the return type of a gcc2
14648 builtin and then its argument prototype would still apply. */
14658 rm -f conftest.$ac_objext conftest$ac_exeext
14659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14660 (eval $ac_link) 2>conftest.er1
14662 grep -v '^ *+' conftest.er1 >conftest.err
14664 cat conftest.err >&5
14665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14666 (exit $ac_status); } &&
14667 { ac_try='test -z "$ac_c_werror_flag"
14668 || test ! -s conftest.err'
14669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14670 (eval $ac_try) 2>&5
14672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14673 (exit $ac_status); }; } &&
14674 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
14680 ac_cv_search_opendir="-l$ac_lib"
14683 echo "$as_me: failed program was:" >&5
14684 sed 's/^/| /' conftest.$ac_ext >&5
14687 rm -f conftest.err conftest.$ac_objext \
14688 conftest$ac_exeext conftest.$ac_ext
14691 LIBS=$ac_func_search_save_LIBS
14693 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14694 echo "${ECHO_T}$ac_cv_search_opendir" >&6
14695 if test "$ac_cv_search_opendir" != no; then
14696 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
14709 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
14711 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14712 echo "$as_me:$LINENO: checking for $ac_func" >&5
14713 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14714 if eval "test \"\${$as_ac_var+set}\" = set"; then
14715 echo $ECHO_N "(cached) $ECHO_C" >&6
14717 cat >conftest.$ac_ext <<_ACEOF
14720 cat confdefs.h >>conftest.$ac_ext
14721 cat >>conftest.$ac_ext <<_ACEOF
14722 /* end confdefs.h. */
14723 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14724 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14725 #define $ac_func innocuous_$ac_func
14727 /* System header to define __stub macros and hopefully few prototypes,
14728 which can conflict with char $ac_func (); below.
14729 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14730 <limits.h> exists even on freestanding compilers. */
14733 # include <limits.h>
14735 # include <assert.h>
14740 /* Override any gcc2 internal prototype to avoid an error. */
14745 /* We use char because int might match the return type of a gcc2
14746 builtin and then its argument prototype would still apply. */
14748 /* The GNU C library defines this for functions which it implements
14749 to always fail with ENOSYS. Some functions are actually named
14750 something starting with __ and the normal name is an alias. */
14751 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14754 char (*f) () = $ac_func;
14763 return f != $ac_func;
14768 rm -f conftest.$ac_objext conftest$ac_exeext
14769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14770 (eval $ac_link) 2>conftest.er1
14772 grep -v '^ *+' conftest.er1 >conftest.err
14774 cat conftest.err >&5
14775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14776 (exit $ac_status); } &&
14777 { ac_try='test -z "$ac_c_werror_flag"
14778 || test ! -s conftest.err'
14779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14780 (eval $ac_try) 2>&5
14782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14783 (exit $ac_status); }; } &&
14784 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
14790 eval "$as_ac_var=yes"
14792 echo "$as_me: failed program was:" >&5
14793 sed 's/^/| /' conftest.$ac_ext >&5
14795 eval "$as_ac_var=no"
14797 rm -f conftest.err conftest.$ac_objext \
14798 conftest$ac_exeext conftest.$ac_ext
14800 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14801 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14802 if test `eval echo '${'$as_ac_var'}'` = yes; then
14803 cat >>confdefs.h <<_ACEOF
14804 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14812 for ac_func in nanosleep nl_langinfo
14814 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14815 echo "$as_me:$LINENO: checking for $ac_func" >&5
14816 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14817 if eval "test \"\${$as_ac_var+set}\" = set"; then
14818 echo $ECHO_N "(cached) $ECHO_C" >&6
14820 cat >conftest.$ac_ext <<_ACEOF
14823 cat confdefs.h >>conftest.$ac_ext
14824 cat >>conftest.$ac_ext <<_ACEOF
14825 /* end confdefs.h. */
14826 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14827 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14828 #define $ac_func innocuous_$ac_func
14830 /* System header to define __stub macros and hopefully few prototypes,
14831 which can conflict with char $ac_func (); below.
14832 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14833 <limits.h> exists even on freestanding compilers. */
14836 # include <limits.h>
14838 # include <assert.h>
14843 /* Override any gcc2 internal prototype to avoid an error. */
14848 /* We use char because int might match the return type of a gcc2
14849 builtin and then its argument prototype would still apply. */
14851 /* The GNU C library defines this for functions which it implements
14852 to always fail with ENOSYS. Some functions are actually named
14853 something starting with __ and the normal name is an alias. */
14854 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14857 char (*f) () = $ac_func;
14866 return f != $ac_func;
14871 rm -f conftest.$ac_objext conftest$ac_exeext
14872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14873 (eval $ac_link) 2>conftest.er1
14875 grep -v '^ *+' conftest.er1 >conftest.err
14877 cat conftest.err >&5
14878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14879 (exit $ac_status); } &&
14880 { ac_try='test -z "$ac_c_werror_flag"
14881 || test ! -s conftest.err'
14882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14883 (eval $ac_try) 2>&5
14885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14886 (exit $ac_status); }; } &&
14887 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
14893 eval "$as_ac_var=yes"
14895 echo "$as_me: failed program was:" >&5
14896 sed 's/^/| /' conftest.$ac_ext >&5
14898 eval "$as_ac_var=no"
14900 rm -f conftest.err conftest.$ac_objext \
14901 conftest$ac_exeext conftest.$ac_ext
14903 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14904 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14905 if test `eval echo '${'$as_ac_var'}'` = yes; then
14906 cat >>confdefs.h <<_ACEOF
14907 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14914 for ac_header in varargs.h
14916 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14917 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14918 echo "$as_me:$LINENO: checking for $ac_header" >&5
14919 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14920 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14921 echo $ECHO_N "(cached) $ECHO_C" >&6
14923 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14924 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14926 # Is the header compilable?
14927 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14928 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14929 cat >conftest.$ac_ext <<_ACEOF
14932 cat confdefs.h >>conftest.$ac_ext
14933 cat >>conftest.$ac_ext <<_ACEOF
14934 /* end confdefs.h. */
14935 $ac_includes_default
14936 #include <$ac_header>
14938 rm -f conftest.$ac_objext
14939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14940 (eval $ac_compile) 2>conftest.er1
14942 grep -v '^ *+' conftest.er1 >conftest.err
14944 cat conftest.err >&5
14945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14946 (exit $ac_status); } &&
14947 { ac_try='test -z "$ac_c_werror_flag"
14948 || test ! -s conftest.err'
14949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14950 (eval $ac_try) 2>&5
14952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14953 (exit $ac_status); }; } &&
14954 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
14960 ac_header_compiler=yes
14962 echo "$as_me: failed program was:" >&5
14963 sed 's/^/| /' conftest.$ac_ext >&5
14965 ac_header_compiler=no
14967 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14968 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14969 echo "${ECHO_T}$ac_header_compiler" >&6
14971 # Is the header present?
14972 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14973 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14974 cat >conftest.$ac_ext <<_ACEOF
14977 cat confdefs.h >>conftest.$ac_ext
14978 cat >>conftest.$ac_ext <<_ACEOF
14979 /* end confdefs.h. */
14980 #include <$ac_header>
14982 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14983 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14985 grep -v '^ *+' conftest.er1 >conftest.err
14987 cat conftest.err >&5
14988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14989 (exit $ac_status); } >/dev/null; then
14990 if test -s conftest.err; then
14991 ac_cpp_err=$ac_c_preproc_warn_flag
14992 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14999 if test -z "$ac_cpp_err"; then
15000 ac_header_preproc=yes
15002 echo "$as_me: failed program was:" >&5
15003 sed 's/^/| /' conftest.$ac_ext >&5
15005 ac_header_preproc=no
15007 rm -f conftest.err conftest.$ac_ext
15008 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15009 echo "${ECHO_T}$ac_header_preproc" >&6
15011 # So? What about this header?
15012 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15014 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15015 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15016 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15017 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15018 ac_header_preproc=yes
15021 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15022 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15023 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15024 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15025 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15026 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15027 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15028 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15029 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15030 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15031 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15032 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15035 ## ------------------------------------------ ##
15036 ## Report this to the AC_PACKAGE_NAME lists. ##
15037 ## ------------------------------------------ ##
15040 sed "s/^/$as_me: WARNING: /" >&2
15043 echo "$as_me:$LINENO: checking for $ac_header" >&5
15044 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15045 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15046 echo $ECHO_N "(cached) $ECHO_C" >&6
15048 eval "$as_ac_Header=\$ac_header_preproc"
15050 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15051 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15054 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15055 cat >>confdefs.h <<_ACEOF
15056 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15064 # End of readline/conio stuff
15065 # -----------------------------------------------------------------------
15067 # -----------------------------------------------------------------------
15068 # Check for Python support
15070 echo "$as_me:$LINENO: checking for Python support" >&5
15071 echo $ECHO_N "checking for Python support... $ECHO_C" >&6
15073 # Check whether --with-python or --without-python was given.
15074 if test "${with_python+set}" = set; then
15075 withval="$with_python"
15079 if test "$withval" != "no"; then
15080 if test "$withval" = "yes"; then
15081 for python_root in /usr /usr/local /usr/sfw; do
15082 for ver in python2.2 python2.3 python2.4 python2.5; do
15083 if test -f $python_root/include/${ver}/Python.h; then
15084 PYTHON_INCDIR=-I$python_root/include/${ver}
15085 if test -d $python_root/lib64/${ver}/config; then
15086 PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
15088 PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
15094 if test x$PYTHON_INCDIR = x; then
15095 if test -f $prefix/include/Python.h; then
15096 PYTHON_INCDIR=-I$prefix/include
15097 if test -d $prefix/lib64/config; then
15098 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
15100 PYTHON_LIBS="-L$prefix/lib/config -lpython"
15103 echo "$as_me:$LINENO: result: no" >&5
15104 echo "${ECHO_T}no" >&6
15105 { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
15106 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
15107 { (exit 1); exit 1; }; }
15111 if test -f $withval/Python.h; then
15112 PYTHON_INCDIR=-I$withval
15113 PYTHON_LIBS="-L$withval/config -lpython"
15114 elif test -f $withval/include/Python.h; then
15115 PYTHON_INCDIR=-I$withval/include
15116 if test -d $withval/lib64/config; then
15117 PYTHON_LIBS="-L$withval/lib64/config -lpython"
15119 PYTHON_LIBS="-L$withval/lib/config -lpython"
15121 elif test -f $withval/include/python/Python.h; then
15122 PYTHON_INCDIR=-I$withval/include/python
15123 if test -d $withval/lib64/python/config; then
15124 PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
15126 PYTHON_LIBS="-L$withval/lib/python/config -lpython"
15129 echo "$as_me:$LINENO: result: no" >&5
15130 echo "${ECHO_T}no" >&6
15131 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
15132 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
15133 { (exit 1); exit 1; }; }
15136 cat >>confdefs.h <<\_ACEOF
15137 #define HAVE_PYTHON 1
15140 echo "$as_me:$LINENO: result: yes" >&5
15141 echo "${ECHO_T}yes" >&6
15143 { echo "$as_me:$LINENO: checking for more Python libs" >&5
15144 echo "$as_me: checking for more Python libs" >&6;}
15145 saved_LIBS="$LIBS"; LIBS=
15146 echo "$as_me:$LINENO: checking for library containing shm_open" >&5
15147 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6
15148 if test "${ac_cv_search_shm_open+set}" = set; then
15149 echo $ECHO_N "(cached) $ECHO_C" >&6
15151 ac_func_search_save_LIBS=$LIBS
15152 ac_cv_search_shm_open=no
15153 cat >conftest.$ac_ext <<_ACEOF
15156 cat confdefs.h >>conftest.$ac_ext
15157 cat >>conftest.$ac_ext <<_ACEOF
15158 /* end confdefs.h. */
15160 /* Override any gcc2 internal prototype to avoid an error. */
15164 /* We use char because int might match the return type of a gcc2
15165 builtin and then its argument prototype would still apply. */
15175 rm -f conftest.$ac_objext conftest$ac_exeext
15176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15177 (eval $ac_link) 2>conftest.er1
15179 grep -v '^ *+' conftest.er1 >conftest.err
15181 cat conftest.err >&5
15182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15183 (exit $ac_status); } &&
15184 { ac_try='test -z "$ac_c_werror_flag"
15185 || test ! -s conftest.err'
15186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15187 (eval $ac_try) 2>&5
15189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15190 (exit $ac_status); }; } &&
15191 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
15197 ac_cv_search_shm_open="none required"
15199 echo "$as_me: failed program was:" >&5
15200 sed 's/^/| /' conftest.$ac_ext >&5
15203 rm -f conftest.err conftest.$ac_objext \
15204 conftest$ac_exeext conftest.$ac_ext
15205 if test "$ac_cv_search_shm_open" = no; then
15206 for ac_lib in rt; do
15207 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15208 cat >conftest.$ac_ext <<_ACEOF
15211 cat confdefs.h >>conftest.$ac_ext
15212 cat >>conftest.$ac_ext <<_ACEOF
15213 /* end confdefs.h. */
15215 /* Override any gcc2 internal prototype to avoid an error. */
15219 /* We use char because int might match the return type of a gcc2
15220 builtin and then its argument prototype would still apply. */
15230 rm -f conftest.$ac_objext conftest$ac_exeext
15231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15232 (eval $ac_link) 2>conftest.er1
15234 grep -v '^ *+' conftest.er1 >conftest.err
15236 cat conftest.err >&5
15237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15238 (exit $ac_status); } &&
15239 { ac_try='test -z "$ac_c_werror_flag"
15240 || test ! -s conftest.err'
15241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15242 (eval $ac_try) 2>&5
15244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15245 (exit $ac_status); }; } &&
15246 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
15252 ac_cv_search_shm_open="-l$ac_lib"
15255 echo "$as_me: failed program was:" >&5
15256 sed 's/^/| /' conftest.$ac_ext >&5
15259 rm -f conftest.err conftest.$ac_objext \
15260 conftest$ac_exeext conftest.$ac_ext
15263 LIBS=$ac_func_search_save_LIBS
15265 echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
15266 echo "${ECHO_T}$ac_cv_search_shm_open" >&6
15267 if test "$ac_cv_search_shm_open" != no; then
15268 test "$ac_cv_search_shm_open" = "none required" || LIBS="$ac_cv_search_shm_open $LIBS"
15273 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
15274 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
15275 if test "${ac_cv_lib_util_openpty+set}" = set; then
15276 echo $ECHO_N "(cached) $ECHO_C" >&6
15278 ac_check_lib_save_LIBS=$LIBS
15279 LIBS="-lutil $LIBS"
15280 cat >conftest.$ac_ext <<_ACEOF
15283 cat confdefs.h >>conftest.$ac_ext
15284 cat >>conftest.$ac_ext <<_ACEOF
15285 /* end confdefs.h. */
15287 /* Override any gcc2 internal prototype to avoid an error. */
15291 /* We use char because int might match the return type of a gcc2
15292 builtin and then its argument prototype would still apply. */
15302 rm -f conftest.$ac_objext conftest$ac_exeext
15303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15304 (eval $ac_link) 2>conftest.er1
15306 grep -v '^ *+' conftest.er1 >conftest.err
15308 cat conftest.err >&5
15309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15310 (exit $ac_status); } &&
15311 { ac_try='test -z "$ac_c_werror_flag"
15312 || test ! -s conftest.err'
15313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15314 (eval $ac_try) 2>&5
15316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15317 (exit $ac_status); }; } &&
15318 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
15324 ac_cv_lib_util_openpty=yes
15326 echo "$as_me: failed program was:" >&5
15327 sed 's/^/| /' conftest.$ac_ext >&5
15329 ac_cv_lib_util_openpty=no
15331 rm -f conftest.err conftest.$ac_objext \
15332 conftest$ac_exeext conftest.$ac_ext
15333 LIBS=$ac_check_lib_save_LIBS
15335 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
15336 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
15337 if test $ac_cv_lib_util_openpty = yes; then
15338 cat >>confdefs.h <<_ACEOF
15339 #define HAVE_LIBUTIL 1
15342 LIBS="-lutil $LIBS"
15346 PYTHON_LIBS="$PYTHON_LIBS $LIBS"
15349 echo "$as_me:$LINENO: result: no" >&5
15350 echo "${ECHO_T}no" >&6
15355 echo "$as_me:$LINENO: result: no" >&5
15356 echo "${ECHO_T}no" >&6
15363 # Find where sockets are (especially for Solaris)
15364 # Do this before the TCP Wrappers test since tcp wrappers
15365 # uses the socket library and some linkers are stupid.
15367 echo "$as_me:$LINENO: checking for socket" >&5
15368 echo $ECHO_N "checking for socket... $ECHO_C" >&6
15369 if test "${ac_cv_func_socket+set}" = set; then
15370 echo $ECHO_N "(cached) $ECHO_C" >&6
15372 cat >conftest.$ac_ext <<_ACEOF
15375 cat confdefs.h >>conftest.$ac_ext
15376 cat >>conftest.$ac_ext <<_ACEOF
15377 /* end confdefs.h. */
15378 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
15379 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15380 #define socket innocuous_socket
15382 /* System header to define __stub macros and hopefully few prototypes,
15383 which can conflict with char socket (); below.
15384 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15385 <limits.h> exists even on freestanding compilers. */
15388 # include <limits.h>
15390 # include <assert.h>
15395 /* Override any gcc2 internal prototype to avoid an error. */
15400 /* We use char because int might match the return type of a gcc2
15401 builtin and then its argument prototype would still apply. */
15403 /* The GNU C library defines this for functions which it implements
15404 to always fail with ENOSYS. Some functions are actually named
15405 something starting with __ and the normal name is an alias. */
15406 #if defined (__stub_socket) || defined (__stub___socket)
15409 char (*f) () = socket;
15418 return f != socket;
15423 rm -f conftest.$ac_objext conftest$ac_exeext
15424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15425 (eval $ac_link) 2>conftest.er1
15427 grep -v '^ *+' conftest.er1 >conftest.err
15429 cat conftest.err >&5
15430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15431 (exit $ac_status); } &&
15432 { ac_try='test -z "$ac_c_werror_flag"
15433 || test ! -s conftest.err'
15434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15435 (eval $ac_try) 2>&5
15437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15438 (exit $ac_status); }; } &&
15439 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
15445 ac_cv_func_socket=yes
15447 echo "$as_me: failed program was:" >&5
15448 sed 's/^/| /' conftest.$ac_ext >&5
15450 ac_cv_func_socket=no
15452 rm -f conftest.err conftest.$ac_objext \
15453 conftest$ac_exeext conftest.$ac_ext
15455 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15456 echo "${ECHO_T}$ac_cv_func_socket" >&6
15457 if test $ac_cv_func_socket = yes; then
15458 echo "$as_me:$LINENO: result: using libc's socket" >&5
15459 echo "${ECHO_T}using libc's socket" >&6
15462 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
15463 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
15464 if test "${ac_cv_lib_xnet_socket+set}" = set; then
15465 echo $ECHO_N "(cached) $ECHO_C" >&6
15467 ac_check_lib_save_LIBS=$LIBS
15468 LIBS="-lxnet $LIBS"
15469 cat >conftest.$ac_ext <<_ACEOF
15472 cat confdefs.h >>conftest.$ac_ext
15473 cat >>conftest.$ac_ext <<_ACEOF
15474 /* end confdefs.h. */
15476 /* Override any gcc2 internal prototype to avoid an error. */
15480 /* We use char because int might match the return type of a gcc2
15481 builtin and then its argument prototype would still apply. */
15491 rm -f conftest.$ac_objext conftest$ac_exeext
15492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15493 (eval $ac_link) 2>conftest.er1
15495 grep -v '^ *+' conftest.er1 >conftest.err
15497 cat conftest.err >&5
15498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499 (exit $ac_status); } &&
15500 { ac_try='test -z "$ac_c_werror_flag"
15501 || test ! -s conftest.err'
15502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15503 (eval $ac_try) 2>&5
15505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15506 (exit $ac_status); }; } &&
15507 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
15513 ac_cv_lib_xnet_socket=yes
15515 echo "$as_me: failed program was:" >&5
15516 sed 's/^/| /' conftest.$ac_ext >&5
15518 ac_cv_lib_xnet_socket=no
15520 rm -f conftest.err conftest.$ac_objext \
15521 conftest$ac_exeext conftest.$ac_ext
15522 LIBS=$ac_check_lib_save_LIBS
15524 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
15525 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
15526 if test $ac_cv_lib_xnet_socket = yes; then
15527 cat >>confdefs.h <<_ACEOF
15528 #define HAVE_LIBXNET 1
15531 LIBS="-lxnet $LIBS"
15536 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15537 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
15538 if test "${ac_cv_lib_socket_socket+set}" = set; then
15539 echo $ECHO_N "(cached) $ECHO_C" >&6
15541 ac_check_lib_save_LIBS=$LIBS
15542 LIBS="-lsocket $LIBS"
15543 cat >conftest.$ac_ext <<_ACEOF
15546 cat confdefs.h >>conftest.$ac_ext
15547 cat >>conftest.$ac_ext <<_ACEOF
15548 /* end confdefs.h. */
15550 /* Override any gcc2 internal prototype to avoid an error. */
15554 /* We use char because int might match the return type of a gcc2
15555 builtin and then its argument prototype would still apply. */
15565 rm -f conftest.$ac_objext conftest$ac_exeext
15566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15567 (eval $ac_link) 2>conftest.er1
15569 grep -v '^ *+' conftest.er1 >conftest.err
15571 cat conftest.err >&5
15572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15573 (exit $ac_status); } &&
15574 { ac_try='test -z "$ac_c_werror_flag"
15575 || test ! -s conftest.err'
15576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15577 (eval $ac_try) 2>&5
15579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15580 (exit $ac_status); }; } &&
15581 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
15587 ac_cv_lib_socket_socket=yes
15589 echo "$as_me: failed program was:" >&5
15590 sed 's/^/| /' conftest.$ac_ext >&5
15592 ac_cv_lib_socket_socket=no
15594 rm -f conftest.err conftest.$ac_objext \
15595 conftest$ac_exeext conftest.$ac_ext
15596 LIBS=$ac_check_lib_save_LIBS
15598 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15599 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
15600 if test $ac_cv_lib_socket_socket = yes; then
15601 cat >>confdefs.h <<_ACEOF
15602 #define HAVE_LIBSOCKET 1
15605 LIBS="-lsocket $LIBS"
15610 echo "$as_me:$LINENO: checking for socket in -linet" >&5
15611 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
15612 if test "${ac_cv_lib_inet_socket+set}" = set; then
15613 echo $ECHO_N "(cached) $ECHO_C" >&6
15615 ac_check_lib_save_LIBS=$LIBS
15616 LIBS="-linet $LIBS"
15617 cat >conftest.$ac_ext <<_ACEOF
15620 cat confdefs.h >>conftest.$ac_ext
15621 cat >>conftest.$ac_ext <<_ACEOF
15622 /* end confdefs.h. */
15624 /* Override any gcc2 internal prototype to avoid an error. */
15628 /* We use char because int might match the return type of a gcc2
15629 builtin and then its argument prototype would still apply. */
15639 rm -f conftest.$ac_objext conftest$ac_exeext
15640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15641 (eval $ac_link) 2>conftest.er1
15643 grep -v '^ *+' conftest.er1 >conftest.err
15645 cat conftest.err >&5
15646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15647 (exit $ac_status); } &&
15648 { ac_try='test -z "$ac_c_werror_flag"
15649 || test ! -s conftest.err'
15650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15651 (eval $ac_try) 2>&5
15653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15654 (exit $ac_status); }; } &&
15655 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
15661 ac_cv_lib_inet_socket=yes
15663 echo "$as_me: failed program was:" >&5
15664 sed 's/^/| /' conftest.$ac_ext >&5
15666 ac_cv_lib_inet_socket=no
15668 rm -f conftest.err conftest.$ac_objext \
15669 conftest$ac_exeext conftest.$ac_ext
15670 LIBS=$ac_check_lib_save_LIBS
15672 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15673 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15674 if test $ac_cv_lib_inet_socket = yes; then
15675 cat >>confdefs.h <<_ACEOF
15676 #define HAVE_LIBINET 1
15679 LIBS="-linet $LIBS"
15687 # -----------------------------------------------------------
15688 # Check whether user wants TCP wrappers support (default off)
15689 # -----------------------------------------------------------
15693 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
15694 if test "${with_tcp_wrappers+set}" = set; then
15695 withval="$with_tcp_wrappers"
15697 if test "x$withval" != "xno" ; then
15699 LIBS="$saved_LIBS -lwrap"
15700 echo "$as_me:$LINENO: checking for libwrap" >&5
15701 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
15702 echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
15703 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6
15704 if test "${ac_cv_search_nanosleep+set}" = set; then
15705 echo $ECHO_N "(cached) $ECHO_C" >&6
15707 ac_func_search_save_LIBS=$LIBS
15708 ac_cv_search_nanosleep=no
15709 cat >conftest.$ac_ext <<_ACEOF
15712 cat confdefs.h >>conftest.$ac_ext
15713 cat >>conftest.$ac_ext <<_ACEOF
15714 /* end confdefs.h. */
15716 /* Override any gcc2 internal prototype to avoid an error. */
15720 /* We use char because int might match the return type of a gcc2
15721 builtin and then its argument prototype would still apply. */
15731 rm -f conftest.$ac_objext conftest$ac_exeext
15732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15733 (eval $ac_link) 2>conftest.er1
15735 grep -v '^ *+' conftest.er1 >conftest.err
15737 cat conftest.err >&5
15738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15739 (exit $ac_status); } &&
15740 { ac_try='test -z "$ac_c_werror_flag"
15741 || test ! -s conftest.err'
15742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15743 (eval $ac_try) 2>&5
15745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15746 (exit $ac_status); }; } &&
15747 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
15753 ac_cv_search_nanosleep="none required"
15755 echo "$as_me: failed program was:" >&5
15756 sed 's/^/| /' conftest.$ac_ext >&5
15759 rm -f conftest.err conftest.$ac_objext \
15760 conftest$ac_exeext conftest.$ac_ext
15761 if test "$ac_cv_search_nanosleep" = no; then
15762 for ac_lib in rt; do
15763 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15764 cat >conftest.$ac_ext <<_ACEOF
15767 cat confdefs.h >>conftest.$ac_ext
15768 cat >>conftest.$ac_ext <<_ACEOF
15769 /* end confdefs.h. */
15771 /* Override any gcc2 internal prototype to avoid an error. */
15775 /* We use char because int might match the return type of a gcc2
15776 builtin and then its argument prototype would still apply. */
15786 rm -f conftest.$ac_objext conftest$ac_exeext
15787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15788 (eval $ac_link) 2>conftest.er1
15790 grep -v '^ *+' conftest.er1 >conftest.err
15792 cat conftest.err >&5
15793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15794 (exit $ac_status); } &&
15795 { ac_try='test -z "$ac_c_werror_flag"
15796 || test ! -s conftest.err'
15797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15798 (eval $ac_try) 2>&5
15800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15801 (exit $ac_status); }; } &&
15802 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
15808 ac_cv_search_nanosleep="-l$ac_lib"
15811 echo "$as_me: failed program was:" >&5
15812 sed 's/^/| /' conftest.$ac_ext >&5
15815 rm -f conftest.err conftest.$ac_objext \
15816 conftest$ac_exeext conftest.$ac_ext
15819 LIBS=$ac_func_search_save_LIBS
15821 echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
15822 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6
15823 if test "$ac_cv_search_nanosleep" != no; then
15824 test "$ac_cv_search_nanosleep" = "none required" || LIBS="$ac_cv_search_nanosleep $LIBS"
15828 cat >conftest.$ac_ext <<_ACEOF
15831 cat confdefs.h >>conftest.$ac_ext
15832 cat >>conftest.$ac_ext <<_ACEOF
15833 /* end confdefs.h. */
15834 #include <sys/types.h>
15836 int deny_severity = 0;
15837 int allow_severity = 0;
15838 struct request_info *req;
15847 rm -f conftest.$ac_objext conftest$ac_exeext
15848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15849 (eval $ac_link) 2>conftest.er1
15851 grep -v '^ *+' conftest.er1 >conftest.err
15853 cat conftest.err >&5
15854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15855 (exit $ac_status); } &&
15856 { ac_try='test -z "$ac_c_werror_flag"
15857 || test ! -s conftest.err'
15858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15859 (eval $ac_try) 2>&5
15861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15862 (exit $ac_status); }; } &&
15863 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
15870 echo "$as_me:$LINENO: result: yes" >&5
15871 echo "${ECHO_T}yes" >&6
15873 cat >>confdefs.h <<\_ACEOF
15874 #define HAVE_LIBWRAP 1
15882 echo "$as_me: failed program was:" >&5
15883 sed 's/^/| /' conftest.$ac_ext >&5
15886 LIBS="$saved_LIBS -lwrap -lnsl"
15887 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
15888 cat >conftest.$ac_ext <<_ACEOF
15891 cat confdefs.h >>conftest.$ac_ext
15892 cat >>conftest.$ac_ext <<_ACEOF
15893 /* end confdefs.h. */
15894 #include <sys/types.h>
15896 int deny_severity = 0;
15897 int allow_severity = 0;
15898 struct request_info *req;
15907 rm -f conftest.$ac_objext conftest$ac_exeext
15908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15909 (eval $ac_link) 2>conftest.er1
15911 grep -v '^ *+' conftest.er1 >conftest.err
15913 cat conftest.err >&5
15914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15915 (exit $ac_status); } &&
15916 { ac_try='test -z "$ac_c_werror_flag"
15917 || test ! -s conftest.err'
15918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15919 (eval $ac_try) 2>&5
15921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15922 (exit $ac_status); }; } &&
15923 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
15930 echo "$as_me:$LINENO: result: yes" >&5
15931 echo "${ECHO_T}yes" >&6
15933 cat >>confdefs.h <<\_ACEOF
15934 #define HAVE_LIBWRAP 1
15942 echo "$as_me: failed program was:" >&5
15943 sed 's/^/| /' conftest.$ac_ext >&5
15945 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
15946 echo "$as_me: error: *** libwrap missing" >&2;}
15947 { (exit 1); exit 1; }; }
15950 rm -f conftest.err conftest.$ac_objext \
15951 conftest$ac_exeext conftest.$ac_ext
15954 rm -f conftest.err conftest.$ac_objext \
15955 conftest$ac_exeext conftest.$ac_ext
15961 # -----------------------------------------------------------
15962 # Check whether OpenSSL is available
15963 # -----------------------------------------------------------
15964 echo "$as_me:$LINENO: checking for OpenSSL" >&5
15965 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6
15967 # Check whether --with-openssl or --without-openssl was given.
15968 if test "${with_openssl+set}" = set; then
15969 withval="$with_openssl"
15970 with_openssl_directory=${withval}
15973 if test "x$with_openssl_directory" != "x"; then
15974 OPENSSL_LIBS="-lssl -lcrypto"
15977 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
15978 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
15979 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
15982 saved_LIBS="${LIBS}"
15983 saved_CFLAGS="${CFLAGS}"
15984 LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
15985 CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
15987 cat >conftest.$ac_ext <<_ACEOF
15990 cat confdefs.h >>conftest.$ac_ext
15991 cat >>conftest.$ac_ext <<_ACEOF
15992 /* end confdefs.h. */
15993 #include <openssl/ssl.h>
15997 CRYPTO_set_id_callback(NULL);
16002 rm -f conftest.$ac_objext conftest$ac_exeext
16003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16004 (eval $ac_link) 2>conftest.er1
16006 grep -v '^ *+' conftest.er1 >conftest.err
16008 cat conftest.err >&5
16009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16010 (exit $ac_status); } &&
16011 { ac_try='test -z "$ac_c_werror_flag"
16012 || test ! -s conftest.err'
16013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16014 (eval $ac_try) 2>&5
16016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16017 (exit $ac_status); }; } &&
16018 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
16026 support_crypto="yes"
16029 echo "$as_me: failed program was:" >&5
16030 sed 's/^/| /' conftest.$ac_ext >&5
16035 rm -f conftest.err conftest.$ac_objext \
16036 conftest$ac_exeext conftest.$ac_ext
16038 cat >conftest.$ac_ext <<_ACEOF
16041 cat confdefs.h >>conftest.$ac_ext
16042 cat >>conftest.$ac_ext <<_ACEOF
16043 /* end confdefs.h. */
16044 #include <openssl/evp.h>
16053 rm -f conftest.$ac_objext conftest$ac_exeext
16054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16055 (eval $ac_link) 2>conftest.er1
16057 grep -v '^ *+' conftest.er1 >conftest.err
16059 cat conftest.err >&5
16060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16061 (exit $ac_status); } &&
16062 { ac_try='test -z "$ac_c_werror_flag"
16063 || test ! -s conftest.err'
16064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16065 (eval $ac_try) 2>&5
16067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16068 (exit $ac_status); }; } &&
16069 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
16075 ac_cv_openssl_sha2="yes"
16077 echo "$as_me: failed program was:" >&5
16078 sed 's/^/| /' conftest.$ac_ext >&5
16080 ac_cv_openssl_sha2="no"
16083 rm -f conftest.err conftest.$ac_objext \
16084 conftest$ac_exeext conftest.$ac_ext
16086 # Solaris disables greater than 128+ bit encryption in their OpenSSL
16087 # implementation, presumably for export reasons. If 192bit AES
16088 # is available, we assume that we're running with a 'non-export'
16090 cat >conftest.$ac_ext <<_ACEOF
16093 cat confdefs.h >>conftest.$ac_ext
16094 cat >>conftest.$ac_ext <<_ACEOF
16095 /* end confdefs.h. */
16096 #include <openssl/evp.h>
16105 rm -f conftest.$ac_objext conftest$ac_exeext
16106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16107 (eval $ac_link) 2>conftest.er1
16109 grep -v '^ *+' conftest.er1 >conftest.err
16111 cat conftest.err >&5
16112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16113 (exit $ac_status); } &&
16114 { ac_try='test -z "$ac_c_werror_flag"
16115 || test ! -s conftest.err'
16116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16117 (eval $ac_try) 2>&5
16119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16120 (exit $ac_status); }; } &&
16121 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
16127 ac_cv_openssl_export="no"
16129 echo "$as_me: failed program was:" >&5
16130 sed 's/^/| /' conftest.$ac_ext >&5
16132 ac_cv_openssl_export="yes"
16135 rm -f conftest.err conftest.$ac_objext \
16136 conftest$ac_exeext conftest.$ac_ext
16138 LIBS="${saved_LIBS}"
16139 CFLAGS="${saved_CFLAGS}"
16141 if test "$support_tls" = "yes"; then
16143 cat >>confdefs.h <<\_ACEOF
16144 #define HAVE_OPENSSL 1
16148 cat >>confdefs.h <<\_ACEOF
16153 cat >>confdefs.h <<\_ACEOF
16154 #define HAVE_CRYPTO 1
16159 if test "$ac_cv_openssl_sha2" = "yes"; then
16161 cat >>confdefs.h <<\_ACEOF
16162 #define HAVE_SHA2 1
16167 if test "$ac_cv_openssl_export" = "yes"; then
16169 cat >>confdefs.h <<\_ACEOF
16170 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
16176 support_crypto="no"
16181 echo "$as_me:$LINENO: result: $support_tls" >&5
16182 echo "${ECHO_T}$support_tls" >&6
16187 # -----------------------------------------------------------
16188 # Python and OpenSSL are using dlopen
16189 # -----------------------------------------------------------
16191 if test "$support_python" = "yes" -o "$support_tls" = "yes"; then
16192 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
16193 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
16194 if test "${ac_cv_search_dlopen+set}" = set; then
16195 echo $ECHO_N "(cached) $ECHO_C" >&6
16197 ac_func_search_save_LIBS=$LIBS
16198 ac_cv_search_dlopen=no
16199 cat >conftest.$ac_ext <<_ACEOF
16202 cat confdefs.h >>conftest.$ac_ext
16203 cat >>conftest.$ac_ext <<_ACEOF
16204 /* end confdefs.h. */
16206 /* Override any gcc2 internal prototype to avoid an error. */
16210 /* We use char because int might match the return type of a gcc2
16211 builtin and then its argument prototype would still apply. */
16221 rm -f conftest.$ac_objext conftest$ac_exeext
16222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16223 (eval $ac_link) 2>conftest.er1
16225 grep -v '^ *+' conftest.er1 >conftest.err
16227 cat conftest.err >&5
16228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16229 (exit $ac_status); } &&
16230 { ac_try='test -z "$ac_c_werror_flag"
16231 || test ! -s conftest.err'
16232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16233 (eval $ac_try) 2>&5
16235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16236 (exit $ac_status); }; } &&
16237 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
16243 ac_cv_search_dlopen="none required"
16245 echo "$as_me: failed program was:" >&5
16246 sed 's/^/| /' conftest.$ac_ext >&5
16249 rm -f conftest.err conftest.$ac_objext \
16250 conftest$ac_exeext conftest.$ac_ext
16251 if test "$ac_cv_search_dlopen" = no; then
16252 for ac_lib in dl; do
16253 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16254 cat >conftest.$ac_ext <<_ACEOF
16257 cat confdefs.h >>conftest.$ac_ext
16258 cat >>conftest.$ac_ext <<_ACEOF
16259 /* end confdefs.h. */
16261 /* Override any gcc2 internal prototype to avoid an error. */
16265 /* We use char because int might match the return type of a gcc2
16266 builtin and then its argument prototype would still apply. */
16276 rm -f conftest.$ac_objext conftest$ac_exeext
16277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16278 (eval $ac_link) 2>conftest.er1
16280 grep -v '^ *+' conftest.er1 >conftest.err
16282 cat conftest.err >&5
16283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16284 (exit $ac_status); } &&
16285 { ac_try='test -z "$ac_c_werror_flag"
16286 || test ! -s conftest.err'
16287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16288 (eval $ac_try) 2>&5
16290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16291 (exit $ac_status); }; } &&
16292 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
16298 ac_cv_search_dlopen="-l$ac_lib"
16301 echo "$as_me: failed program was:" >&5
16302 sed 's/^/| /' conftest.$ac_ext >&5
16305 rm -f conftest.err conftest.$ac_objext \
16306 conftest$ac_exeext conftest.$ac_ext
16309 LIBS=$ac_func_search_save_LIBS
16311 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
16312 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
16313 if test "$ac_cv_search_dlopen" != no; then
16314 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
16320 # ------------------------------------------
16321 # Where to place working dir
16322 # ------------------------------------------
16323 working_dir=`eval echo ${prefix}/var/bacula/working`
16325 # Check whether --with-working-dir or --without-working-dir was given.
16326 if test "${with_working_dir+set}" = set; then
16327 withval="$with_working_dir"
16329 if test "x$withval" != "xno" ; then
16330 working_dir=$withval
16339 # ------------------------------------------
16340 # Where to place scriptdir (script files)
16341 # ------------------------------------------
16342 scriptdir=`eval echo ${sysconfdir}`
16344 # Check whether --with-scriptdir or --without-scriptdir was given.
16345 if test "${with_scriptdir+set}" = set; then
16346 withval="$with_scriptdir"
16348 if test "x$withval" != "xno" ; then
16358 # ------------------------------------------
16359 # Where to send dump email
16360 # ------------------------------------------
16361 dump_email=root@localhost
16363 # Check whether --with-dump-email or --without-dump-email was given.
16364 if test "${with_dump_email+set}" = set; then
16365 withval="$with_dump_email"
16367 if test "x$withval" != "xno" ; then
16368 dump_email=$withval
16376 # ------------------------------------------
16377 # Where to send job email
16378 # ------------------------------------------
16379 job_email=root@localhost
16381 # Check whether --with-job-email or --without-job-email was given.
16382 if test "${with_job_email+set}" = set; then
16383 withval="$with_job_email"
16385 if test "x$withval" != "xno" ; then
16394 # ------------------------------------------
16395 # Where to find smtp host
16396 # ------------------------------------------
16397 smtp_host=localhost
16399 # Check whether --with-smtp_host or --without-smtp_host was given.
16400 if test "${with_smtp_host+set}" = set; then
16401 withval="$with_smtp_host"
16403 if test "x$withval" != "xno" ; then
16413 # ------------------------------------
16414 # Where to place pid files
16415 # ------------------------------------
16418 # Check whether --with-pid-dir or --without-pid-dir was given.
16419 if test "${with_pid_dir+set}" = set; then
16420 withval="$with_pid_dir"
16422 if test "x$withval" != "xno" ; then
16429 cat >>confdefs.h <<_ACEOF
16430 #define _PATH_BACULA_PIDDIR "$piddir"
16436 # ------------------------------------
16437 # Where to place subsys "lock file"
16438 # ------------------------------------
16439 subsysdir=/var/run/subsys
16440 if test -d /var/run/subsys; then
16441 subsysdir=/var/run/subsys
16442 elif test -d /var/lock/subsys; then
16443 subsysdir=/var/lock/subsys
16445 subsysdir=/var/run/subsys
16448 # Check whether --with-subsys-dir or --without-subsys-dir was given.
16449 if test "${with_subsys_dir+set}" = set; then
16450 withval="$with_subsys_dir"
16452 if test "x$withval" != "xno" ; then
16463 # ------------------------------------
16464 # Where to start assigning ports
16465 # ------------------------------------
16468 # Check whether --with-baseport or --without-baseport was given.
16469 if test "${with_baseport+set}" = set; then
16470 withval="$with_baseport"
16472 if test "x$withval" != "xno" ; then
16480 dir_port=`expr $baseport`
16481 fd_port=`expr $baseport + 1`
16482 sd_port=`expr $fd_port + 1`
16489 # ------------------------------------------
16490 # Generate passwords
16491 # ------------------------------------------
16494 # Check whether --with-dir-password or --without-dir-password was given.
16495 if test "${with_dir_password+set}" = set; then
16496 withval="$with_dir_password"
16498 if test "x$withval" != "xno" ; then
16499 dir_password=$withval
16505 if test "x$dir_password" = "x" ; then
16506 if test "x$OPENSSL" = "xnone" ; then
16507 key=`autoconf/randpass 33`
16509 key=`openssl rand -base64 33`
16516 # Check whether --with-fd-password or --without-fd-password was given.
16517 if test "${with_fd_password+set}" = set; then
16518 withval="$with_fd_password"
16520 if test "x$withval" != "xno" ; then
16521 fd_password=$withval
16527 if test "x$fd_password" = "x" ; then
16528 if test "x$OPENSSL" = "xnone" ; then
16529 key=`autoconf/randpass 37`
16531 key=`openssl rand -base64 33`
16538 # Check whether --with-sd-password or --without-sd-password was given.
16539 if test "${with_sd_password+set}" = set; then
16540 withval="$with_sd_password"
16542 if test "x$withval" != "xno" ; then
16543 sd_password=$withval
16549 if test "x$sd_password" = "x" ; then
16550 if test "x$OPENSSL" = "xnone" ; then
16551 key=`autoconf/randpass 41`
16553 key=`openssl rand -base64 33`
16560 # Check whether --with-mon-dir-password or --without-mon-dir-password was given.
16561 if test "${with_mon_dir_password+set}" = set; then
16562 withval="$with_mon_dir_password"
16564 if test "x$withval" != "xno" ; then
16565 mon_dir_password=$withval
16571 if test "x$mon_dir_password" = "x" ; then
16572 if test "x$OPENSSL" = "xnone" ; then
16573 key=`autoconf/randpass 33`
16575 key=`openssl rand -base64 33`
16577 mon_dir_password=$key
16582 # Check whether --with-mon-fd-password or --without-mon-fd-password was given.
16583 if test "${with_mon_fd_password+set}" = set; then
16584 withval="$with_mon_fd_password"
16586 if test "x$withval" != "xno" ; then
16587 mon_fd_password=$withval
16593 if test "x$mon_fd_password" = "x" ; then
16594 if test "x$OPENSSL" = "xnone" ; then
16595 key=`autoconf/randpass 37`
16597 key=`openssl rand -base64 33`
16599 mon_fd_password=$key
16604 # Check whether --with-mon-sd-password or --without-mon-sd-password was given.
16605 if test "${with_mon_sd_password+set}" = set; then
16606 withval="$with_mon_sd_password"
16608 if test "x$withval" != "xno" ; then
16609 mon_sd_password=$withval
16615 if test "x$mon_sd_password" = "x" ; then
16616 if test "x$OPENSSL" = "xnone" ; then
16617 key=`autoconf/randpass 41`
16619 key=`openssl rand -base64 33`
16621 mon_sd_password=$key
16632 # Pickup any database name
16636 # Check whether --with-db_name or --without-db_name was given.
16637 if test "${with_db_name+set}" = set; then
16638 withval="$with_db_name"
16640 if test "x$withval" != "x" ; then
16650 # Check whether --with-db_user or --without-db_user was given.
16651 if test "${with_db_user+set}" = set; then
16652 withval="$with_db_user"
16654 if test "x$withval" != "x" ; then
16664 # Handle users and groups for each daemon
16668 # Check whether --with-dir_user or --without-dir_user was given.
16669 if test "${with_dir_user+set}" = set; then
16670 withval="$with_dir_user"
16672 if test "x$withval" != "x" ; then
16681 # Check whether --with-dir_group or --without-dir_group was given.
16682 if test "${with_dir_group+set}" = set; then
16683 withval="$with_dir_group"
16685 if test "x$withval" != "x" ; then
16694 # Check whether --with-sd_user or --without-sd_user was given.
16695 if test "${with_sd_user+set}" = set; then
16696 withval="$with_sd_user"
16698 if test "x$withval" != "x" ; then
16707 # Check whether --with-sd_group or --without-sd_group was given.
16708 if test "${with_sd_group+set}" = set; then
16709 withval="$with_sd_group"
16711 if test "x$withval" != "x" ; then
16720 # Check whether --with-fd_user or --without-fd_user was given.
16721 if test "${with_fd_user+set}" = set; then
16722 withval="$with_fd_user"
16724 if test "x$withval" != "x" ; then
16733 # Check whether --with-fd_group or --without-fd_group was given.
16734 if test "${with_fd_group+set}" = set; then
16735 withval="$with_fd_group"
16737 if test "x$withval" != "x" ; then
16752 # allow setting default executable permissions
16756 # Check whether --with-sbin-perm or --without-sbin-perm was given.
16757 if test "${with_sbin_perm+set}" = set; then
16758 withval="$with_sbin_perm"
16760 if test "x$withval" != "x" ; then
16769 # ------------------------------------------------
16770 # Bacula check for various SQL database engines
16771 # ------------------------------------------------
16775 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
16776 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
16778 # Check whether --with-postgresql or --without-postgresql was given.
16779 if test "${with_postgresql+set}" = set; then
16780 withval="$with_postgresql"
16782 if test "$withval" != "no"; then
16783 if test "$db_found" = "yes"; then
16784 echo "$as_me:$LINENO: result: error" >&5
16785 echo "${ECHO_T}error" >&6
16786 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
16787 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
16788 { (exit 1); exit 1; }; };
16790 if test "$withval" = "yes"; then
16791 PG_CONFIG=`which pg_config`
16792 if test -n "$PG_CONFIG";then
16793 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
16794 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
16795 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
16796 elif test -f /usr/local/include/libpq-fe.h; then
16797 POSTGRESQL_INCDIR=/usr/local/include
16798 if test -d /usr/local/lib64; then
16799 POSTGRESQL_LIBDIR=/usr/local/lib64
16801 POSTGRESQL_LIBDIR=/usr/local/lib
16803 POSTGRESQL_BINDIR=/usr/local/bin
16804 elif test -f /usr/include/libpq-fe.h; then
16805 POSTGRESQL_INCDIR=/usr/include
16806 if test -d /usr/lib64; then
16807 POSTGRESQL_LIBDIR=/usr/lib64
16809 POSTGRESQL_LIBDIR=/usr/lib
16811 POSTGRESQL_BINDIR=/usr/bin
16812 elif test -f /usr/include/pgsql/libpq-fe.h; then
16813 POSTGRESQL_INCDIR=/usr/include/pgsql
16814 if test -d /usr/lib64/pgsql; then
16815 POSTGRESQL_LIBDIR=/usr/lib64/pgsql
16817 POSTGRESQL_LIBDIR=/usr/lib/pgsql
16819 POSTGRESQL_BINDIR=/usr/bin
16820 elif test -f /usr/include/postgresql/libpq-fe.h; then
16821 POSTGRESQL_INCDIR=/usr/include/postgresql
16822 if test -d /usr/lib64/postgresql; then
16823 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
16825 POSTGRESQL_LIBDIR=/usr/lib/postgresql
16827 POSTGRESQL_BINDIR=/usr/bin
16829 echo "$as_me:$LINENO: result: no" >&5
16830 echo "${ECHO_T}no" >&6
16831 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
16832 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
16833 { (exit 1); exit 1; }; }
16835 elif test -f $withval/include/libpq-fe.h; then
16836 POSTGRESQL_INCDIR=$withval/include
16837 POSTGRESQL_LIBDIR=$withval/lib
16838 POSTGRESQL_BINDIR=$withval/bin
16839 elif test -f $withval/include/postgresql/libpq-fe.h; then
16840 POSTGRESQL_INCDIR=$withval/include/postgresql
16841 if test -d $withval/lib64; then
16842 POSTGRESQL_LIBDIR=$withval/lib64
16844 POSTGRESQL_LIBDIR=$withval/lib
16846 POSTGRESQL_BINDIR=$withval/bin
16848 echo "$as_me:$LINENO: result: no" >&5
16849 echo "${ECHO_T}no" >&6
16850 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
16851 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
16852 { (exit 1); exit 1; }; }
16854 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
16855 echo "$as_me:$LINENO: checking for crypt" >&5
16856 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
16857 if test "${ac_cv_func_crypt+set}" = set; then
16858 echo $ECHO_N "(cached) $ECHO_C" >&6
16860 cat >conftest.$ac_ext <<_ACEOF
16863 cat confdefs.h >>conftest.$ac_ext
16864 cat >>conftest.$ac_ext <<_ACEOF
16865 /* end confdefs.h. */
16866 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
16867 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16868 #define crypt innocuous_crypt
16870 /* System header to define __stub macros and hopefully few prototypes,
16871 which can conflict with char crypt (); below.
16872 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16873 <limits.h> exists even on freestanding compilers. */
16876 # include <limits.h>
16878 # include <assert.h>
16883 /* Override any gcc2 internal prototype to avoid an error. */
16888 /* We use char because int might match the return type of a gcc2
16889 builtin and then its argument prototype would still apply. */
16891 /* The GNU C library defines this for functions which it implements
16892 to always fail with ENOSYS. Some functions are actually named
16893 something starting with __ and the normal name is an alias. */
16894 #if defined (__stub_crypt) || defined (__stub___crypt)
16897 char (*f) () = crypt;
16911 rm -f conftest.$ac_objext conftest$ac_exeext
16912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16913 (eval $ac_link) 2>conftest.er1
16915 grep -v '^ *+' conftest.er1 >conftest.err
16917 cat conftest.err >&5
16918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16919 (exit $ac_status); } &&
16920 { ac_try='test -z "$ac_c_werror_flag"
16921 || test ! -s conftest.err'
16922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16923 (eval $ac_try) 2>&5
16925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16926 (exit $ac_status); }; } &&
16927 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
16933 ac_cv_func_crypt=yes
16935 echo "$as_me: failed program was:" >&5
16936 sed 's/^/| /' conftest.$ac_ext >&5
16938 ac_cv_func_crypt=no
16940 rm -f conftest.err conftest.$ac_objext \
16941 conftest$ac_exeext conftest.$ac_ext
16943 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
16944 echo "${ECHO_T}$ac_cv_func_crypt" >&6
16945 if test $ac_cv_func_crypt = yes; then
16948 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
16949 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
16950 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
16951 echo $ECHO_N "(cached) $ECHO_C" >&6
16953 ac_check_lib_save_LIBS=$LIBS
16954 LIBS="-lcrypt $LIBS"
16955 cat >conftest.$ac_ext <<_ACEOF
16958 cat confdefs.h >>conftest.$ac_ext
16959 cat >>conftest.$ac_ext <<_ACEOF
16960 /* end confdefs.h. */
16962 /* Override any gcc2 internal prototype to avoid an error. */
16966 /* We use char because int might match the return type of a gcc2
16967 builtin and then its argument prototype would still apply. */
16977 rm -f conftest.$ac_objext conftest$ac_exeext
16978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16979 (eval $ac_link) 2>conftest.er1
16981 grep -v '^ *+' conftest.er1 >conftest.err
16983 cat conftest.err >&5
16984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16985 (exit $ac_status); } &&
16986 { ac_try='test -z "$ac_c_werror_flag"
16987 || test ! -s conftest.err'
16988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16989 (eval $ac_try) 2>&5
16991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16992 (exit $ac_status); }; } &&
16993 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
16999 ac_cv_lib_crypt_crypt=yes
17001 echo "$as_me: failed program was:" >&5
17002 sed 's/^/| /' conftest.$ac_ext >&5
17004 ac_cv_lib_crypt_crypt=no
17006 rm -f conftest.err conftest.$ac_objext \
17007 conftest$ac_exeext conftest.$ac_ext
17008 LIBS=$ac_check_lib_save_LIBS
17010 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
17011 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
17012 if test $ac_cv_lib_crypt_crypt = yes; then
17013 POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
17018 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
17019 SQL_LFLAGS=$POSTGRESQL_LFLAGS
17020 SQL_BINDIR=$POSTGRESQL_BINDIR
17021 SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
17023 cat >>confdefs.h <<\_ACEOF
17024 #define HAVE_POSTGRESQL 1
17027 echo "$as_me:$LINENO: result: yes" >&5
17028 echo "${ECHO_T}yes" >&6
17030 support_postgresql=yes
17034 echo "$as_me:$LINENO: result: no" >&5
17035 echo "${ECHO_T}no" >&6
17040 echo "$as_me:$LINENO: result: no" >&5
17041 echo "${ECHO_T}no" >&6
17052 echo "$as_me:$LINENO: checking for MySQL support" >&5
17053 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
17055 # Check whether --with-mysql or --without-mysql was given.
17056 if test "${with_mysql+set}" = set; then
17057 withval="$with_mysql"
17059 if test "$withval" != "no"; then
17060 if test "$withval" = "yes"; then
17061 if test -f /usr/local/mysql/include/mysql/mysql.h; then
17062 MYSQL_INCDIR=/usr/local/mysql/include/mysql
17063 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
17064 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
17065 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
17067 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
17069 MYSQL_BINDIR=/usr/local/mysql/bin
17070 elif test -f /usr/include/mysql/mysql.h; then
17071 MYSQL_INCDIR=/usr/include/mysql
17072 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
17073 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
17074 MYSQL_LIBDIR=/usr/lib64/mysql
17075 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
17076 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
17077 MYSQL_LIBDIR=/usr/lib/mysql
17079 MYSQL_LIBDIR=/usr/lib
17081 MYSQL_BINDIR=/usr/bin
17082 elif test -f /usr/include/mysql.h; then
17083 MYSQL_INCDIR=/usr/include
17084 if test -f /usr/lib64/libmysqlclient_r.a \
17085 -o -f /usr/lib64/libmysqlclient_r.so; then
17086 MYSQL_LIBDIR=/usr/lib64
17088 MYSQL_LIBDIR=/usr/lib
17090 MYSQL_BINDIR=/usr/bin
17091 elif test -f /usr/local/include/mysql/mysql.h; then
17092 MYSQL_INCDIR=/usr/local/include/mysql
17093 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
17094 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
17095 MYSQL_LIBDIR=/usr/local/lib64/mysql
17097 MYSQL_LIBDIR=/usr/local/lib/mysql
17099 MYSQL_BINDIR=/usr/local/bin
17100 elif test -f /usr/local/include/mysql.h; then
17101 MYSQL_INCDIR=/usr/local/include
17102 if test -f /usr/local/lib64/libmysqlclient_r.a \
17103 -o -f /usr/local/lib64/libmysqlclient_r.so; then
17104 MYSQL_LIBDIR=/usr/local/lib64
17106 MYSQL_LIBDIR=/usr/local/lib
17108 MYSQL_BINDIR=/usr/local/bin
17110 echo "$as_me:$LINENO: result: no" >&5
17111 echo "${ECHO_T}no" >&6
17112 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
17113 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
17114 { (exit 1); exit 1; }; }
17117 if test -f $withval/include/mysql/mysql.h; then
17118 MYSQL_INCDIR=$withval/include/mysql
17119 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
17120 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
17121 MYSQL_LIBDIR=$withval/lib64/mysql
17123 MYSQL_LIBDIR=$withval/lib/mysql
17125 if test -f $withval/lib/libmysqlclient_r.so; then
17126 MYSQL_LIBDIR=$withval/lib
17129 MYSQL_BINDIR=$withval/bin
17130 elif test -f $withval/include/mysql.h; then
17131 MYSQL_INCDIR=$withval/include
17132 if test -f $withval/lib64/libmysqlclient_r.a \
17133 -o -f $withval/lib64/libmysqlclient_r.so; then
17134 MYSQL_LIBDIR=$withval/lib64
17136 MYSQL_LIBDIR=$withval/lib
17138 MYSQL_BINDIR=$withval/bin
17140 echo "$as_me:$LINENO: result: no" >&5
17141 echo "${ECHO_T}no" >&6
17142 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
17143 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
17144 { (exit 1); exit 1; }; }
17147 SQL_INCLUDE=-I$MYSQL_INCDIR
17148 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
17149 -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
17150 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
17151 cat >>confdefs.h <<\_ACEOF
17152 #define HAVE_THREAD_SAFE_MYSQL 1
17156 SQL_BINDIR=$MYSQL_BINDIR
17157 SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
17159 cat >>confdefs.h <<\_ACEOF
17160 #define HAVE_MYSQL 1
17163 echo "$as_me:$LINENO: result: yes" >&5
17164 echo "${ECHO_T}yes" >&6
17171 echo "$as_me:$LINENO: result: no" >&5
17172 echo "${ECHO_T}no" >&6
17179 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
17180 if test "${with_embedded_mysql+set}" = set; then
17181 withval="$with_embedded_mysql"
17183 if test "$withval" != "no"; then
17184 if test "$withval" = "yes"; then
17185 if test -f /usr/local/mysql/include/mysql/mysql.h; then
17186 MYSQL_INCDIR=/usr/local/mysql/include/mysql
17187 if test -d /usr/local/mysql/lib64/mysql; then
17188 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
17190 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
17192 MYSQL_BINDIR=/usr/local/mysql/bin
17193 elif test -f /usr/include/mysql/mysql.h; then
17194 MYSQL_INCDIR=/usr/include/mysql
17195 if test -d /usr/lib64/mysql; then
17196 MYSQL_LIBDIR=/usr/lib64/mysql
17198 MYSQL_LIBDIR=/usr/lib/mysql
17200 MYSQL_BINDIR=/usr/bin
17201 elif test -f /usr/include/mysql.h; then
17202 MYSQL_INCDIR=/usr/include
17203 if test -d /usr/lib64; then
17204 MYSQL_LIBDIR=/usr/lib64
17206 MYSQL_LIBDIR=/usr/lib
17208 MYSQL_BINDIR=/usr/bin
17209 elif test -f /usr/local/include/mysql/mysql.h; then
17210 MYSQL_INCDIR=/usr/local/include/mysql
17211 if test -d /usr/local/lib64/mysql; then
17212 MYSQL_LIBDIR=/usr/local/lib64/mysql
17214 MYSQL_LIBDIR=/usr/local/lib/mysql
17216 MYSQL_BINDIR=/usr/local/bin
17217 elif test -f /usr/local/include/mysql.h; then
17218 MYSQL_INCDIR=/usr/local/include
17219 if test -d /usr/local/lib64; then
17220 MYSQL_LIBDIR=/usr/local/lib64
17222 MYSQL_LIBDIR=/usr/local/lib
17224 MYSQL_BINDIR=/usr/local/bin
17226 echo "$as_me:$LINENO: result: no" >&5
17227 echo "${ECHO_T}no" >&6
17228 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
17229 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
17230 { (exit 1); exit 1; }; }
17233 if test -f $withval/include/mysql/mysql.h; then
17234 MYSQL_INCDIR=$withval/include/mysql
17235 if test -d $withval/lib64/mysql; then
17236 MYSQL_LIBDIR=$withval/lib64/mysql
17238 MYSQL_LIBDIR=$withval/lib/mysql
17240 MYSQL_BINDIR=$withval/bin
17241 elif test -f $withval/include/mysql.h; then
17242 MYSQL_INCDIR=$withval/include
17243 if test -d $withval/lib64; then
17244 MYSQL_LIBDIR=$withval/lib64
17246 MYSQL_LIBDIR=$withval/lib
17248 MYSQL_BINDIR=$withval/bin
17250 echo "$as_me:$LINENO: result: no" >&5
17251 echo "${ECHO_T}no" >&6
17252 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
17253 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
17254 { (exit 1); exit 1; }; }
17257 SQL_INCLUDE=-I$MYSQL_INCDIR
17258 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
17259 SQL_BINDIR=$MYSQL_BINDIR
17260 SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
17262 cat >>confdefs.h <<\_ACEOF
17263 #define HAVE_MYSQL 1
17266 cat >>confdefs.h <<\_ACEOF
17267 #define HAVE_EMBEDDED_MYSQL 1
17270 echo "$as_me:$LINENO: result: yes" >&5
17271 echo "${ECHO_T}yes" >&6
17278 echo "$as_me:$LINENO: result: no" >&5
17279 echo "${ECHO_T}no" >&6
17294 echo "$as_me:$LINENO: checking for SQLite3 support" >&5
17295 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6
17297 # Check whether --with-sqlite3 or --without-sqlite3 was given.
17298 if test "${with_sqlite3+set}" = set; then
17299 withval="$with_sqlite3"
17301 if test "$withval" != "no"; then
17302 if test "$withval" = "yes"; then
17303 if test -f /usr/local/include/sqlite3.h; then
17304 SQLITE_INCDIR=/usr/local/include
17305 if test -d /usr/local/lib64; then
17306 SQLITE_LIBDIR=/usr/local/lib64
17308 SQLITE_LIBDIR=/usr/local/lib
17310 SQLITE_BINDIR=/usr/local/bin
17311 elif test -f /usr/include/sqlite3.h; then
17312 SQLITE_INCDIR=/usr/include
17313 if test -d /usr/lib64; then
17314 SQLITE_LIBDIR=/usr/lib64
17316 SQLITE_LIBDIR=/usr/lib
17318 SQLITE_BINDIR=/usr/bin
17319 elif test -f $prefix/include/sqlite3.h; then
17320 SQLITE_INCDIR=$prefix/include
17321 if test -d $prefix/lib64; then
17322 SQLITE_LIBDIR=$prefix/lib64
17324 SQLITE_LIBDIR=$prefix/lib
17326 SQLITE_BINDIR=$prefix/bin
17328 echo "$as_me:$LINENO: result: no" >&5
17329 echo "${ECHO_T}no" >&6
17330 { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
17331 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
17332 { (exit 1); exit 1; }; }
17335 if test -f $withval/sqlite3.h; then
17336 SQLITE_INCDIR=$withval
17337 SQLITE_LIBDIR=$withval
17338 SQLITE_BINDIR=$withval
17339 elif test -f $withval/include/sqlite3.h; then
17340 SQLITE_INCDIR=$withval/include
17341 if test -d $withval/lib64; then
17342 SQLITE_LIBDIR=$withval/lib64
17344 SQLITE_LIBDIR=$withval/lib
17346 SQLITE_BINDIR=$withval/bin
17348 echo "$as_me:$LINENO: result: no" >&5
17349 echo "${ECHO_T}no" >&6
17350 { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
17351 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
17352 { (exit 1); exit 1; }; }
17355 SQL_INCLUDE=-I$SQLITE_INCDIR
17356 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
17357 SQL_BINDIR=$SQLITE_BINDIR
17358 SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
17360 cat >>confdefs.h <<\_ACEOF
17361 #define HAVE_SQLITE3 1
17364 echo "$as_me:$LINENO: result: yes" >&5
17365 echo "${ECHO_T}yes" >&6
17367 support_sqlite3=yes
17372 echo "$as_me:$LINENO: result: no" >&5
17373 echo "${ECHO_T}no" >&6
17378 echo "$as_me:$LINENO: result: no" >&5
17379 echo "${ECHO_T}no" >&6
17390 echo "$as_me:$LINENO: checking for SQLite support" >&5
17391 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
17393 # Check whether --with-sqlite or --without-sqlite was given.
17394 if test "${with_sqlite+set}" = set; then
17395 withval="$with_sqlite"
17397 if test "$withval" != "no"; then
17398 if test "$withval" = "yes"; then
17399 if test -f /usr/local/include/sqlite.h; then
17400 SQLITE_INCDIR=/usr/local/include
17401 if test -d /usr/local/lib64; then
17402 SQLITE_LIBDIR=/usr/local/lib64
17404 SQLITE_LIBDIR=/usr/local/lib
17406 SQLITE_BINDIR=/usr/local/bin
17407 elif test -f /usr/include/sqlite.h; then
17408 SQLITE_INCDIR=/usr/include
17409 if test -d /usr/lib64; then
17410 SQLITE_LIBDIR=/usr/lib64
17412 SQLITE_LIBDIR=/usr/lib
17414 SQLITE_BINDIR=/usr/bin
17415 elif test -f $prefix/include/sqlite.h; then
17416 SQLITE_INCDIR=$prefix/include
17417 if test -d $prefix/lib64; then
17418 SQLITE_LIBDIR=$prefix/lib64
17420 SQLITE_LIBDIR=$prefix/lib
17422 SQLITE_BINDIR=$prefix/bin
17424 echo "$as_me:$LINENO: result: no" >&5
17425 echo "${ECHO_T}no" >&6
17426 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
17427 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
17428 { (exit 1); exit 1; }; }
17431 if test -f $withval/sqlite.h; then
17432 SQLITE_INCDIR=$withval
17433 SQLITE_LIBDIR=$withval
17434 SQLITE_BINDIR=$withval
17435 elif test -f $withval/include/sqlite.h; then
17436 SQLITE_INCDIR=$withval/include
17437 if test -d $withval/lib64; then
17438 SQLITE_LIBDIR=$withval/lib64
17440 SQLITE_LIBDIR=$withval/lib
17442 SQLITE_BINDIR=$withval/bin
17444 echo "$as_me:$LINENO: result: no" >&5
17445 echo "${ECHO_T}no" >&6
17446 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
17447 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
17448 { (exit 1); exit 1; }; }
17451 SQL_INCLUDE=-I$SQLITE_INCDIR
17452 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
17453 SQL_BINDIR=$SQLITE_BINDIR
17454 SQL_LIB=$SQLITE_LIBDIR/libsqlite.a
17456 cat >>confdefs.h <<\_ACEOF
17457 #define HAVE_SQLITE 1
17460 echo "$as_me:$LINENO: result: yes" >&5
17461 echo "${ECHO_T}yes" >&6
17468 echo "$as_me:$LINENO: result: no" >&5
17469 echo "${ECHO_T}no" >&6
17474 echo "$as_me:$LINENO: result: no" >&5
17475 echo "${ECHO_T}no" >&6
17487 # -------------------------------------------
17488 # enable batch attribute DB insert (default on)
17489 # -------------------------------------------
17490 support_batch_insert=no
17491 A=`nm $SQL_LIB | grep pthread_mutex_lock`
17493 if test $pkg = 0; then
17494 support_batch_insert=yes
17495 # Check whether --enable-batch-insert or --disable-batch-insert was given.
17496 if test "${enable_batch_insert+set}" = set; then
17497 enableval="$enable_batch_insert"
17498 if test x$enableval = xno; then
17499 support_batch_insert=no
17501 support_batch_insert=yes
17506 if test $support_batch_insert = yes ; then
17508 cat >>confdefs.h <<\_ACEOF
17509 #define HAVE_BATCH_FILE_INSERT 1
17515 cat >>confdefs.h <<\_ACEOF
17516 #define PROTOTYPES 1
17520 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
17521 if test -z "$CCOPTS"; then
17522 CCOPTS='-g -O2 -Wall'
17530 largefile_support="no"
17532 # Check whether --enable-largefile or --disable-largefile was given.
17533 if test "${enable_largefile+set}" = set; then
17534 enableval="$enable_largefile"
17537 if test "$enable_largefile" != no; then
17538 if test -n "$ac_tool_prefix"; then
17539 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
17540 set dummy ${ac_tool_prefix}getconf; ac_word=$2
17541 echo "$as_me:$LINENO: checking for $ac_word" >&5
17542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17543 if test "${ac_cv_prog_GETCONF+set}" = set; then
17544 echo $ECHO_N "(cached) $ECHO_C" >&6
17546 if test -n "$GETCONF"; then
17547 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
17549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17550 for as_dir in $PATH
17553 test -z "$as_dir" && as_dir=.
17554 for ac_exec_ext in '' $ac_executable_extensions; do
17555 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17556 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
17557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17565 GETCONF=$ac_cv_prog_GETCONF
17566 if test -n "$GETCONF"; then
17567 echo "$as_me:$LINENO: result: $GETCONF" >&5
17568 echo "${ECHO_T}$GETCONF" >&6
17570 echo "$as_me:$LINENO: result: no" >&5
17571 echo "${ECHO_T}no" >&6
17575 if test -z "$ac_cv_prog_GETCONF"; then
17576 ac_ct_GETCONF=$GETCONF
17577 # Extract the first word of "getconf", so it can be a program name with args.
17578 set dummy getconf; ac_word=$2
17579 echo "$as_me:$LINENO: checking for $ac_word" >&5
17580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17581 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
17582 echo $ECHO_N "(cached) $ECHO_C" >&6
17584 if test -n "$ac_ct_GETCONF"; then
17585 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
17587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17588 for as_dir in $PATH
17591 test -z "$as_dir" && as_dir=.
17592 for ac_exec_ext in '' $ac_executable_extensions; do
17593 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17594 ac_cv_prog_ac_ct_GETCONF="getconf"
17595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17603 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
17604 if test -n "$ac_ct_GETCONF"; then
17605 echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
17606 echo "${ECHO_T}$ac_ct_GETCONF" >&6
17608 echo "$as_me:$LINENO: result: no" >&5
17609 echo "${ECHO_T}no" >&6
17612 GETCONF=$ac_ct_GETCONF
17614 GETCONF="$ac_cv_prog_GETCONF"
17617 echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
17618 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
17619 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
17620 echo $ECHO_N "(cached) $ECHO_C" >&6
17622 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
17623 ac_cv_sys_largefile_CFLAGS=no
17625 # IRIX 6.2 and later require cc -n32.
17626 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
17627 if test "$GCC" != yes; then
17628 ac_cv_sys_largefile_CFLAGS=-n32
17631 CC="$CC $ac_cv_sys_largefile_CFLAGS"
17632 cat >conftest.$ac_ext <<_ACEOF
17635 cat confdefs.h >>conftest.$ac_ext
17636 cat >>conftest.$ac_ext <<_ACEOF
17637 /* end confdefs.h. */
17647 rm -f conftest.$ac_objext conftest$ac_exeext
17648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17649 (eval $ac_link) 2>conftest.er1
17651 grep -v '^ *+' conftest.er1 >conftest.err
17653 cat conftest.err >&5
17654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17655 (exit $ac_status); } &&
17656 { ac_try='test -z "$ac_c_werror_flag"
17657 || test ! -s conftest.err'
17658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17659 (eval $ac_try) 2>&5
17661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17662 (exit $ac_status); }; } &&
17663 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
17671 echo "$as_me: failed program was:" >&5
17672 sed 's/^/| /' conftest.$ac_ext >&5
17674 ac_cv_sys_largefile_CFLAGS=no
17676 rm -f conftest.err conftest.$ac_objext \
17677 conftest$ac_exeext conftest.$ac_ext
17682 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
17683 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
17684 echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
17685 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
17686 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
17687 echo $ECHO_N "(cached) $ECHO_C" >&6
17689 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
17690 ac_cv_sys_largefile_LDFLAGS=no
17694 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
17695 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
17696 echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
17697 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
17698 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
17699 echo $ECHO_N "(cached) $ECHO_C" >&6
17701 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
17702 ac_cv_sys_largefile_LIBS=no
17706 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
17707 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
17709 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17712 -D_FILE_OFFSET_BITS=*) ;;
17713 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
17714 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
17719 case "$CPPFLAGS" in
17720 '') CPPFLAGS="$ac_flag" ;;
17721 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
17729 '') CFLAGS="$ac_flag" ;;
17730 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
17735 case "$ac_cv_sys_largefile_LDFLAGS" in
17739 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
17740 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
17743 case "$ac_cv_sys_largefile_LIBS" in
17747 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
17748 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
17751 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
17752 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
17753 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
17754 echo $ECHO_N "(cached) $ECHO_C" >&6
17756 ac_cv_sys_file_offset_bits=no
17757 ac_cv_sys_file_offset_bits=64
17758 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17760 -D_FILE_OFFSET_BITS)
17761 ac_cv_sys_file_offset_bits=1 ;;
17762 -D_FILE_OFFSET_BITS=*)
17763 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
17768 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
17769 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
17770 if test "$ac_cv_sys_file_offset_bits" != no; then
17772 cat >>confdefs.h <<_ACEOF
17773 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
17777 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
17778 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
17779 if test "${ac_cv_sys_largefile_source+set}" = set; then
17780 echo $ECHO_N "(cached) $ECHO_C" >&6
17782 ac_cv_sys_largefile_source=no
17783 ac_cv_sys_largefile_source=1
17784 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17786 -D_LARGEFILE_SOURCE)
17787 ac_cv_sys_largefile_source=1 ;;
17788 -D_LARGEFILE_SOURCE=*)
17789 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
17794 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
17795 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
17796 if test "$ac_cv_sys_largefile_source" != no; then
17798 cat >>confdefs.h <<_ACEOF
17799 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17803 echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
17804 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
17805 if test "${ac_cv_sys_large_files+set}" = set; then
17806 echo $ECHO_N "(cached) $ECHO_C" >&6
17808 ac_cv_sys_large_files=no
17809 ac_cv_sys_large_files=1
17810 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17813 ac_cv_sys_large_files=1 ;;
17815 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
17820 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
17821 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
17822 if test "$ac_cv_sys_large_files" != no; then
17824 cat >>confdefs.h <<_ACEOF
17825 #define _LARGE_FILES $ac_cv_sys_large_files
17833 echo "$as_me:$LINENO: checking for X" >&5
17834 echo $ECHO_N "checking for X... $ECHO_C" >&6
17837 # Check whether --with-x or --without-x was given.
17838 if test "${with_x+set}" = set; then
17842 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
17843 if test "x$with_x" = xno; then
17844 # The user explicitly disabled X.
17847 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
17848 # Both variables are already set.
17851 if test "${ac_cv_have_x+set}" = set; then
17852 echo $ECHO_N "(cached) $ECHO_C" >&6
17854 # One or both of the vars are not set, and there is no cached value.
17855 ac_x_includes=no ac_x_libraries=no
17856 rm -fr conftest.dir
17857 if mkdir conftest.dir; then
17859 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
17860 cat >Imakefile <<'_ACEOF'
17862 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
17864 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
17865 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
17866 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
17867 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
17868 for ac_extension in a so sl; do
17869 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
17870 test -f $ac_im_libdir/libX11.$ac_extension; then
17871 ac_im_usrlibdir=$ac_im_libdir; break
17874 # Screen out bogus values from the imake configuration. They are
17875 # bogus both because they are the default anyway, and because
17876 # using them would break gcc on systems where it needs fixed includes.
17877 case $ac_im_incroot in
17879 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
17881 case $ac_im_usrlibdir in
17882 /usr/lib | /lib) ;;
17883 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
17887 rm -fr conftest.dir
17890 # Standard set of common directories for X headers.
17891 # Check X11 before X11Rn because it is often a symlink to the current release.
17903 /usr/local/X11/include
17904 /usr/local/X11R6/include
17905 /usr/local/X11R5/include
17906 /usr/local/X11R4/include
17908 /usr/local/include/X11
17909 /usr/local/include/X11R6
17910 /usr/local/include/X11R5
17911 /usr/local/include/X11R4
17915 /usr/XFree86/include/X11
17919 /usr/unsupported/include
17920 /usr/athena/include
17921 /usr/local/x11r5/include
17922 /usr/lpp/Xamples/include
17924 /usr/openwin/include
17925 /usr/openwin/share/include'
17927 if test "$ac_x_includes" = no; then
17928 # Guess where to find include files, by looking for Xlib.h.
17929 # First, try using that file with no special directory specified.
17930 cat >conftest.$ac_ext <<_ACEOF
17933 cat confdefs.h >>conftest.$ac_ext
17934 cat >>conftest.$ac_ext <<_ACEOF
17935 /* end confdefs.h. */
17936 #include <X11/Xlib.h>
17938 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17939 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17941 grep -v '^ *+' conftest.er1 >conftest.err
17943 cat conftest.err >&5
17944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17945 (exit $ac_status); } >/dev/null; then
17946 if test -s conftest.err; then
17947 ac_cpp_err=$ac_c_preproc_warn_flag
17948 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17955 if test -z "$ac_cpp_err"; then
17956 # We can compile using X headers with no special include directory.
17959 echo "$as_me: failed program was:" >&5
17960 sed 's/^/| /' conftest.$ac_ext >&5
17962 for ac_dir in $ac_x_header_dirs; do
17963 if test -r "$ac_dir/X11/Xlib.h"; then
17964 ac_x_includes=$ac_dir
17969 rm -f conftest.err conftest.$ac_ext
17970 fi # $ac_x_includes = no
17972 if test "$ac_x_libraries" = no; then
17973 # Check for the libraries.
17974 # See if we find them without any special options.
17975 # Don't add to $LIBS permanently.
17978 cat >conftest.$ac_ext <<_ACEOF
17981 cat confdefs.h >>conftest.$ac_ext
17982 cat >>conftest.$ac_ext <<_ACEOF
17983 /* end confdefs.h. */
17984 #include <X11/Xlib.h>
17993 rm -f conftest.$ac_objext conftest$ac_exeext
17994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17995 (eval $ac_link) 2>conftest.er1
17997 grep -v '^ *+' conftest.er1 >conftest.err
17999 cat conftest.err >&5
18000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18001 (exit $ac_status); } &&
18002 { ac_try='test -z "$ac_c_werror_flag"
18003 || test ! -s conftest.err'
18004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18005 (eval $ac_try) 2>&5
18007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18008 (exit $ac_status); }; } &&
18009 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
18016 # We can link X programs with no special library path.
18019 echo "$as_me: failed program was:" >&5
18020 sed 's/^/| /' conftest.$ac_ext >&5
18023 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
18025 # Don't even attempt the hair of trying to link an X program!
18026 for ac_extension in a so sl; do
18027 if test -r $ac_dir/libXt.$ac_extension; then
18028 ac_x_libraries=$ac_dir
18034 rm -f conftest.err conftest.$ac_objext \
18035 conftest$ac_exeext conftest.$ac_ext
18036 fi # $ac_x_libraries = no
18038 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
18039 # Didn't find X anywhere. Cache the known absence of X.
18040 ac_cv_have_x="have_x=no"
18042 # Record where we found X for the cache.
18043 ac_cv_have_x="have_x=yes \
18044 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
18049 eval "$ac_cv_have_x"
18052 if test "$have_x" != yes; then
18053 echo "$as_me:$LINENO: result: $have_x" >&5
18054 echo "${ECHO_T}$have_x" >&6
18057 # If each of the values was on the command line, it overrides each guess.
18058 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
18059 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
18060 # Update the cache value to reflect the command line values.
18061 ac_cv_have_x="have_x=yes \
18062 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
18063 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
18064 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
18067 if test "$no_x" = yes; then
18068 # Not all programs may use this symbol, but it does not hurt to define it.
18070 cat >>confdefs.h <<\_ACEOF
18071 #define X_DISPLAY_MISSING 1
18074 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
18076 if test -n "$x_includes"; then
18077 X_CFLAGS="$X_CFLAGS -I$x_includes"
18080 # It would also be nice to do this for all -L options, not just this one.
18081 if test -n "$x_libraries"; then
18082 X_LIBS="$X_LIBS -L$x_libraries"
18083 # For Solaris; some versions of Sun CC require a space after -R and
18084 # others require no space. Words are not sufficient . . . .
18085 case `(uname -sr) 2>/dev/null` in
18087 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
18088 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
18089 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
18090 cat >conftest.$ac_ext <<_ACEOF
18093 cat confdefs.h >>conftest.$ac_ext
18094 cat >>conftest.$ac_ext <<_ACEOF
18095 /* end confdefs.h. */
18105 rm -f conftest.$ac_objext conftest$ac_exeext
18106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18107 (eval $ac_link) 2>conftest.er1
18109 grep -v '^ *+' conftest.er1 >conftest.err
18111 cat conftest.err >&5
18112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18113 (exit $ac_status); } &&
18114 { ac_try='test -z "$ac_c_werror_flag"
18115 || test ! -s conftest.err'
18116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18117 (eval $ac_try) 2>&5
18119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18120 (exit $ac_status); }; } &&
18121 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
18129 echo "$as_me: failed program was:" >&5
18130 sed 's/^/| /' conftest.$ac_ext >&5
18134 rm -f conftest.err conftest.$ac_objext \
18135 conftest$ac_exeext conftest.$ac_ext
18136 if test $ac_R_nospace = yes; then
18137 echo "$as_me:$LINENO: result: no" >&5
18138 echo "${ECHO_T}no" >&6
18139 X_LIBS="$X_LIBS -R$x_libraries"
18141 LIBS="$ac_xsave_LIBS -R $x_libraries"
18142 cat >conftest.$ac_ext <<_ACEOF
18145 cat confdefs.h >>conftest.$ac_ext
18146 cat >>conftest.$ac_ext <<_ACEOF
18147 /* end confdefs.h. */
18157 rm -f conftest.$ac_objext conftest$ac_exeext
18158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18159 (eval $ac_link) 2>conftest.er1
18161 grep -v '^ *+' conftest.er1 >conftest.err
18163 cat conftest.err >&5
18164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18165 (exit $ac_status); } &&
18166 { ac_try='test -z "$ac_c_werror_flag"
18167 || test ! -s conftest.err'
18168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18169 (eval $ac_try) 2>&5
18171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18172 (exit $ac_status); }; } &&
18173 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
18181 echo "$as_me: failed program was:" >&5
18182 sed 's/^/| /' conftest.$ac_ext >&5
18186 rm -f conftest.err conftest.$ac_objext \
18187 conftest$ac_exeext conftest.$ac_ext
18188 if test $ac_R_space = yes; then
18189 echo "$as_me:$LINENO: result: yes" >&5
18190 echo "${ECHO_T}yes" >&6
18191 X_LIBS="$X_LIBS -R $x_libraries"
18193 echo "$as_me:$LINENO: result: neither works" >&5
18194 echo "${ECHO_T}neither works" >&6
18197 LIBS=$ac_xsave_LIBS
18201 # Check for system-dependent libraries X programs must link with.
18202 # Do this before checking for the system-independent R6 libraries
18203 # (-lICE), since we may need -lsocket or whatever for X linking.
18205 if test "$ISC" = yes; then
18206 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
18208 # Martyn Johnson says this is needed for Ultrix, if the X
18209 # libraries were built with DECnet support. And Karl Berry says
18210 # the Alpha needs dnet_stub (dnet does not exist).
18211 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
18212 cat >conftest.$ac_ext <<_ACEOF
18215 cat confdefs.h >>conftest.$ac_ext
18216 cat >>conftest.$ac_ext <<_ACEOF
18217 /* end confdefs.h. */
18219 /* Override any gcc2 internal prototype to avoid an error. */
18223 /* We use char because int might match the return type of a gcc2
18224 builtin and then its argument prototype would still apply. */
18225 char XOpenDisplay ();
18234 rm -f conftest.$ac_objext conftest$ac_exeext
18235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18236 (eval $ac_link) 2>conftest.er1
18238 grep -v '^ *+' conftest.er1 >conftest.err
18240 cat conftest.err >&5
18241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18242 (exit $ac_status); } &&
18243 { ac_try='test -z "$ac_c_werror_flag"
18244 || test ! -s conftest.err'
18245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18246 (eval $ac_try) 2>&5
18248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18249 (exit $ac_status); }; } &&
18250 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
18258 echo "$as_me: failed program was:" >&5
18259 sed 's/^/| /' conftest.$ac_ext >&5
18261 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
18262 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
18263 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
18264 echo $ECHO_N "(cached) $ECHO_C" >&6
18266 ac_check_lib_save_LIBS=$LIBS
18267 LIBS="-ldnet $LIBS"
18268 cat >conftest.$ac_ext <<_ACEOF
18271 cat confdefs.h >>conftest.$ac_ext
18272 cat >>conftest.$ac_ext <<_ACEOF
18273 /* end confdefs.h. */
18275 /* Override any gcc2 internal prototype to avoid an error. */
18279 /* We use char because int might match the return type of a gcc2
18280 builtin and then its argument prototype would still apply. */
18290 rm -f conftest.$ac_objext conftest$ac_exeext
18291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18292 (eval $ac_link) 2>conftest.er1
18294 grep -v '^ *+' conftest.er1 >conftest.err
18296 cat conftest.err >&5
18297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18298 (exit $ac_status); } &&
18299 { ac_try='test -z "$ac_c_werror_flag"
18300 || test ! -s conftest.err'
18301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18302 (eval $ac_try) 2>&5
18304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18305 (exit $ac_status); }; } &&
18306 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
18312 ac_cv_lib_dnet_dnet_ntoa=yes
18314 echo "$as_me: failed program was:" >&5
18315 sed 's/^/| /' conftest.$ac_ext >&5
18317 ac_cv_lib_dnet_dnet_ntoa=no
18319 rm -f conftest.err conftest.$ac_objext \
18320 conftest$ac_exeext conftest.$ac_ext
18321 LIBS=$ac_check_lib_save_LIBS
18323 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
18324 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
18325 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
18326 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
18329 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
18330 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
18331 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
18332 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
18333 echo $ECHO_N "(cached) $ECHO_C" >&6
18335 ac_check_lib_save_LIBS=$LIBS
18336 LIBS="-ldnet_stub $LIBS"
18337 cat >conftest.$ac_ext <<_ACEOF
18340 cat confdefs.h >>conftest.$ac_ext
18341 cat >>conftest.$ac_ext <<_ACEOF
18342 /* end confdefs.h. */
18344 /* Override any gcc2 internal prototype to avoid an error. */
18348 /* We use char because int might match the return type of a gcc2
18349 builtin and then its argument prototype would still apply. */
18359 rm -f conftest.$ac_objext conftest$ac_exeext
18360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18361 (eval $ac_link) 2>conftest.er1
18363 grep -v '^ *+' conftest.er1 >conftest.err
18365 cat conftest.err >&5
18366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18367 (exit $ac_status); } &&
18368 { ac_try='test -z "$ac_c_werror_flag"
18369 || test ! -s conftest.err'
18370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18371 (eval $ac_try) 2>&5
18373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18374 (exit $ac_status); }; } &&
18375 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
18381 ac_cv_lib_dnet_stub_dnet_ntoa=yes
18383 echo "$as_me: failed program was:" >&5
18384 sed 's/^/| /' conftest.$ac_ext >&5
18386 ac_cv_lib_dnet_stub_dnet_ntoa=no
18388 rm -f conftest.err conftest.$ac_objext \
18389 conftest$ac_exeext conftest.$ac_ext
18390 LIBS=$ac_check_lib_save_LIBS
18392 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
18393 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
18394 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
18395 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
18400 rm -f conftest.err conftest.$ac_objext \
18401 conftest$ac_exeext conftest.$ac_ext
18402 LIBS="$ac_xsave_LIBS"
18404 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
18405 # to get the SysV transport functions.
18406 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
18408 # The nsl library prevents programs from opening the X display
18409 # on Irix 5.2, according to T.E. Dickey.
18410 # The functions gethostbyname, getservbyname, and inet_addr are
18411 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
18412 echo "$as_me:$LINENO: checking for gethostbyname" >&5
18413 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
18414 if test "${ac_cv_func_gethostbyname+set}" = set; then
18415 echo $ECHO_N "(cached) $ECHO_C" >&6
18417 cat >conftest.$ac_ext <<_ACEOF
18420 cat confdefs.h >>conftest.$ac_ext
18421 cat >>conftest.$ac_ext <<_ACEOF
18422 /* end confdefs.h. */
18423 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
18424 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18425 #define gethostbyname innocuous_gethostbyname
18427 /* System header to define __stub macros and hopefully few prototypes,
18428 which can conflict with char gethostbyname (); below.
18429 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18430 <limits.h> exists even on freestanding compilers. */
18433 # include <limits.h>
18435 # include <assert.h>
18438 #undef gethostbyname
18440 /* Override any gcc2 internal prototype to avoid an error. */
18445 /* We use char because int might match the return type of a gcc2
18446 builtin and then its argument prototype would still apply. */
18447 char gethostbyname ();
18448 /* The GNU C library defines this for functions which it implements
18449 to always fail with ENOSYS. Some functions are actually named
18450 something starting with __ and the normal name is an alias. */
18451 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
18454 char (*f) () = gethostbyname;
18463 return f != gethostbyname;
18468 rm -f conftest.$ac_objext conftest$ac_exeext
18469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18470 (eval $ac_link) 2>conftest.er1
18472 grep -v '^ *+' conftest.er1 >conftest.err
18474 cat conftest.err >&5
18475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18476 (exit $ac_status); } &&
18477 { ac_try='test -z "$ac_c_werror_flag"
18478 || test ! -s conftest.err'
18479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18480 (eval $ac_try) 2>&5
18482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18483 (exit $ac_status); }; } &&
18484 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
18490 ac_cv_func_gethostbyname=yes
18492 echo "$as_me: failed program was:" >&5
18493 sed 's/^/| /' conftest.$ac_ext >&5
18495 ac_cv_func_gethostbyname=no
18497 rm -f conftest.err conftest.$ac_objext \
18498 conftest$ac_exeext conftest.$ac_ext
18500 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
18501 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
18503 if test $ac_cv_func_gethostbyname = no; then
18504 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
18505 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
18506 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
18507 echo $ECHO_N "(cached) $ECHO_C" >&6
18509 ac_check_lib_save_LIBS=$LIBS
18511 cat >conftest.$ac_ext <<_ACEOF
18514 cat confdefs.h >>conftest.$ac_ext
18515 cat >>conftest.$ac_ext <<_ACEOF
18516 /* end confdefs.h. */
18518 /* Override any gcc2 internal prototype to avoid an error. */
18522 /* We use char because int might match the return type of a gcc2
18523 builtin and then its argument prototype would still apply. */
18524 char gethostbyname ();
18533 rm -f conftest.$ac_objext conftest$ac_exeext
18534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18535 (eval $ac_link) 2>conftest.er1
18537 grep -v '^ *+' conftest.er1 >conftest.err
18539 cat conftest.err >&5
18540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18541 (exit $ac_status); } &&
18542 { ac_try='test -z "$ac_c_werror_flag"
18543 || test ! -s conftest.err'
18544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18545 (eval $ac_try) 2>&5
18547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18548 (exit $ac_status); }; } &&
18549 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
18555 ac_cv_lib_nsl_gethostbyname=yes
18557 echo "$as_me: failed program was:" >&5
18558 sed 's/^/| /' conftest.$ac_ext >&5
18560 ac_cv_lib_nsl_gethostbyname=no
18562 rm -f conftest.err conftest.$ac_objext \
18563 conftest$ac_exeext conftest.$ac_ext
18564 LIBS=$ac_check_lib_save_LIBS
18566 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
18567 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
18568 if test $ac_cv_lib_nsl_gethostbyname = yes; then
18569 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
18572 if test $ac_cv_lib_nsl_gethostbyname = no; then
18573 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
18574 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
18575 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
18576 echo $ECHO_N "(cached) $ECHO_C" >&6
18578 ac_check_lib_save_LIBS=$LIBS
18580 cat >conftest.$ac_ext <<_ACEOF
18583 cat confdefs.h >>conftest.$ac_ext
18584 cat >>conftest.$ac_ext <<_ACEOF
18585 /* end confdefs.h. */
18587 /* Override any gcc2 internal prototype to avoid an error. */
18591 /* We use char because int might match the return type of a gcc2
18592 builtin and then its argument prototype would still apply. */
18593 char gethostbyname ();
18602 rm -f conftest.$ac_objext conftest$ac_exeext
18603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18604 (eval $ac_link) 2>conftest.er1
18606 grep -v '^ *+' conftest.er1 >conftest.err
18608 cat conftest.err >&5
18609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18610 (exit $ac_status); } &&
18611 { ac_try='test -z "$ac_c_werror_flag"
18612 || test ! -s conftest.err'
18613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18614 (eval $ac_try) 2>&5
18616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18617 (exit $ac_status); }; } &&
18618 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
18624 ac_cv_lib_bsd_gethostbyname=yes
18626 echo "$as_me: failed program was:" >&5
18627 sed 's/^/| /' conftest.$ac_ext >&5
18629 ac_cv_lib_bsd_gethostbyname=no
18631 rm -f conftest.err conftest.$ac_objext \
18632 conftest$ac_exeext conftest.$ac_ext
18633 LIBS=$ac_check_lib_save_LIBS
18635 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
18636 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
18637 if test $ac_cv_lib_bsd_gethostbyname = yes; then
18638 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
18644 # lieder@skyler.mavd.honeywell.com says without -lsocket,
18645 # socket/setsockopt and other routines are undefined under SCO ODT
18646 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
18647 # on later versions), says Simon Leinen: it contains gethostby*
18648 # variants that don't use the name server (or something). -lsocket
18649 # must be given before -lnsl if both are needed. We assume that
18650 # if connect needs -lnsl, so does gethostbyname.
18651 echo "$as_me:$LINENO: checking for connect" >&5
18652 echo $ECHO_N "checking for connect... $ECHO_C" >&6
18653 if test "${ac_cv_func_connect+set}" = set; then
18654 echo $ECHO_N "(cached) $ECHO_C" >&6
18656 cat >conftest.$ac_ext <<_ACEOF
18659 cat confdefs.h >>conftest.$ac_ext
18660 cat >>conftest.$ac_ext <<_ACEOF
18661 /* end confdefs.h. */
18662 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
18663 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18664 #define connect innocuous_connect
18666 /* System header to define __stub macros and hopefully few prototypes,
18667 which can conflict with char connect (); below.
18668 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18669 <limits.h> exists even on freestanding compilers. */
18672 # include <limits.h>
18674 # include <assert.h>
18679 /* Override any gcc2 internal prototype to avoid an error. */
18684 /* We use char because int might match the return type of a gcc2
18685 builtin and then its argument prototype would still apply. */
18687 /* The GNU C library defines this for functions which it implements
18688 to always fail with ENOSYS. Some functions are actually named
18689 something starting with __ and the normal name is an alias. */
18690 #if defined (__stub_connect) || defined (__stub___connect)
18693 char (*f) () = connect;
18702 return f != connect;
18707 rm -f conftest.$ac_objext conftest$ac_exeext
18708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18709 (eval $ac_link) 2>conftest.er1
18711 grep -v '^ *+' conftest.er1 >conftest.err
18713 cat conftest.err >&5
18714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18715 (exit $ac_status); } &&
18716 { ac_try='test -z "$ac_c_werror_flag"
18717 || test ! -s conftest.err'
18718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18719 (eval $ac_try) 2>&5
18721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18722 (exit $ac_status); }; } &&
18723 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
18729 ac_cv_func_connect=yes
18731 echo "$as_me: failed program was:" >&5
18732 sed 's/^/| /' conftest.$ac_ext >&5
18734 ac_cv_func_connect=no
18736 rm -f conftest.err conftest.$ac_objext \
18737 conftest$ac_exeext conftest.$ac_ext
18739 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
18740 echo "${ECHO_T}$ac_cv_func_connect" >&6
18742 if test $ac_cv_func_connect = no; then
18743 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
18744 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
18745 if test "${ac_cv_lib_socket_connect+set}" = set; then
18746 echo $ECHO_N "(cached) $ECHO_C" >&6
18748 ac_check_lib_save_LIBS=$LIBS
18749 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
18750 cat >conftest.$ac_ext <<_ACEOF
18753 cat confdefs.h >>conftest.$ac_ext
18754 cat >>conftest.$ac_ext <<_ACEOF
18755 /* end confdefs.h. */
18757 /* Override any gcc2 internal prototype to avoid an error. */
18761 /* We use char because int might match the return type of a gcc2
18762 builtin and then its argument prototype would still apply. */
18772 rm -f conftest.$ac_objext conftest$ac_exeext
18773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18774 (eval $ac_link) 2>conftest.er1
18776 grep -v '^ *+' conftest.er1 >conftest.err
18778 cat conftest.err >&5
18779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18780 (exit $ac_status); } &&
18781 { ac_try='test -z "$ac_c_werror_flag"
18782 || test ! -s conftest.err'
18783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18784 (eval $ac_try) 2>&5
18786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18787 (exit $ac_status); }; } &&
18788 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
18794 ac_cv_lib_socket_connect=yes
18796 echo "$as_me: failed program was:" >&5
18797 sed 's/^/| /' conftest.$ac_ext >&5
18799 ac_cv_lib_socket_connect=no
18801 rm -f conftest.err conftest.$ac_objext \
18802 conftest$ac_exeext conftest.$ac_ext
18803 LIBS=$ac_check_lib_save_LIBS
18805 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
18806 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
18807 if test $ac_cv_lib_socket_connect = yes; then
18808 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
18813 # Guillermo Gomez says -lposix is necessary on A/UX.
18814 echo "$as_me:$LINENO: checking for remove" >&5
18815 echo $ECHO_N "checking for remove... $ECHO_C" >&6
18816 if test "${ac_cv_func_remove+set}" = set; then
18817 echo $ECHO_N "(cached) $ECHO_C" >&6
18819 cat >conftest.$ac_ext <<_ACEOF
18822 cat confdefs.h >>conftest.$ac_ext
18823 cat >>conftest.$ac_ext <<_ACEOF
18824 /* end confdefs.h. */
18825 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
18826 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18827 #define remove innocuous_remove
18829 /* System header to define __stub macros and hopefully few prototypes,
18830 which can conflict with char remove (); below.
18831 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18832 <limits.h> exists even on freestanding compilers. */
18835 # include <limits.h>
18837 # include <assert.h>
18842 /* Override any gcc2 internal prototype to avoid an error. */
18847 /* We use char because int might match the return type of a gcc2
18848 builtin and then its argument prototype would still apply. */
18850 /* The GNU C library defines this for functions which it implements
18851 to always fail with ENOSYS. Some functions are actually named
18852 something starting with __ and the normal name is an alias. */
18853 #if defined (__stub_remove) || defined (__stub___remove)
18856 char (*f) () = remove;
18865 return f != remove;
18870 rm -f conftest.$ac_objext conftest$ac_exeext
18871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18872 (eval $ac_link) 2>conftest.er1
18874 grep -v '^ *+' conftest.er1 >conftest.err
18876 cat conftest.err >&5
18877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18878 (exit $ac_status); } &&
18879 { ac_try='test -z "$ac_c_werror_flag"
18880 || test ! -s conftest.err'
18881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18882 (eval $ac_try) 2>&5
18884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18885 (exit $ac_status); }; } &&
18886 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
18892 ac_cv_func_remove=yes
18894 echo "$as_me: failed program was:" >&5
18895 sed 's/^/| /' conftest.$ac_ext >&5
18897 ac_cv_func_remove=no
18899 rm -f conftest.err conftest.$ac_objext \
18900 conftest$ac_exeext conftest.$ac_ext
18902 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
18903 echo "${ECHO_T}$ac_cv_func_remove" >&6
18905 if test $ac_cv_func_remove = no; then
18906 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
18907 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
18908 if test "${ac_cv_lib_posix_remove+set}" = set; then
18909 echo $ECHO_N "(cached) $ECHO_C" >&6
18911 ac_check_lib_save_LIBS=$LIBS
18912 LIBS="-lposix $LIBS"
18913 cat >conftest.$ac_ext <<_ACEOF
18916 cat confdefs.h >>conftest.$ac_ext
18917 cat >>conftest.$ac_ext <<_ACEOF
18918 /* end confdefs.h. */
18920 /* Override any gcc2 internal prototype to avoid an error. */
18924 /* We use char because int might match the return type of a gcc2
18925 builtin and then its argument prototype would still apply. */
18935 rm -f conftest.$ac_objext conftest$ac_exeext
18936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18937 (eval $ac_link) 2>conftest.er1
18939 grep -v '^ *+' conftest.er1 >conftest.err
18941 cat conftest.err >&5
18942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18943 (exit $ac_status); } &&
18944 { ac_try='test -z "$ac_c_werror_flag"
18945 || test ! -s conftest.err'
18946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18947 (eval $ac_try) 2>&5
18949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18950 (exit $ac_status); }; } &&
18951 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
18957 ac_cv_lib_posix_remove=yes
18959 echo "$as_me: failed program was:" >&5
18960 sed 's/^/| /' conftest.$ac_ext >&5
18962 ac_cv_lib_posix_remove=no
18964 rm -f conftest.err conftest.$ac_objext \
18965 conftest$ac_exeext conftest.$ac_ext
18966 LIBS=$ac_check_lib_save_LIBS
18968 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
18969 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
18970 if test $ac_cv_lib_posix_remove = yes; then
18971 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
18976 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
18977 echo "$as_me:$LINENO: checking for shmat" >&5
18978 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
18979 if test "${ac_cv_func_shmat+set}" = set; then
18980 echo $ECHO_N "(cached) $ECHO_C" >&6
18982 cat >conftest.$ac_ext <<_ACEOF
18985 cat confdefs.h >>conftest.$ac_ext
18986 cat >>conftest.$ac_ext <<_ACEOF
18987 /* end confdefs.h. */
18988 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
18989 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18990 #define shmat innocuous_shmat
18992 /* System header to define __stub macros and hopefully few prototypes,
18993 which can conflict with char shmat (); below.
18994 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18995 <limits.h> exists even on freestanding compilers. */
18998 # include <limits.h>
19000 # include <assert.h>
19005 /* Override any gcc2 internal prototype to avoid an error. */
19010 /* We use char because int might match the return type of a gcc2
19011 builtin and then its argument prototype would still apply. */
19013 /* The GNU C library defines this for functions which it implements
19014 to always fail with ENOSYS. Some functions are actually named
19015 something starting with __ and the normal name is an alias. */
19016 #if defined (__stub_shmat) || defined (__stub___shmat)
19019 char (*f) () = shmat;
19033 rm -f conftest.$ac_objext conftest$ac_exeext
19034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19035 (eval $ac_link) 2>conftest.er1
19037 grep -v '^ *+' conftest.er1 >conftest.err
19039 cat conftest.err >&5
19040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19041 (exit $ac_status); } &&
19042 { ac_try='test -z "$ac_c_werror_flag"
19043 || test ! -s conftest.err'
19044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19045 (eval $ac_try) 2>&5
19047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19048 (exit $ac_status); }; } &&
19049 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
19055 ac_cv_func_shmat=yes
19057 echo "$as_me: failed program was:" >&5
19058 sed 's/^/| /' conftest.$ac_ext >&5
19060 ac_cv_func_shmat=no
19062 rm -f conftest.err conftest.$ac_objext \
19063 conftest$ac_exeext conftest.$ac_ext
19065 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
19066 echo "${ECHO_T}$ac_cv_func_shmat" >&6
19068 if test $ac_cv_func_shmat = no; then
19069 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
19070 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
19071 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
19072 echo $ECHO_N "(cached) $ECHO_C" >&6
19074 ac_check_lib_save_LIBS=$LIBS
19076 cat >conftest.$ac_ext <<_ACEOF
19079 cat confdefs.h >>conftest.$ac_ext
19080 cat >>conftest.$ac_ext <<_ACEOF
19081 /* end confdefs.h. */
19083 /* Override any gcc2 internal prototype to avoid an error. */
19087 /* We use char because int might match the return type of a gcc2
19088 builtin and then its argument prototype would still apply. */
19098 rm -f conftest.$ac_objext conftest$ac_exeext
19099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19100 (eval $ac_link) 2>conftest.er1
19102 grep -v '^ *+' conftest.er1 >conftest.err
19104 cat conftest.err >&5
19105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19106 (exit $ac_status); } &&
19107 { ac_try='test -z "$ac_c_werror_flag"
19108 || test ! -s conftest.err'
19109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19110 (eval $ac_try) 2>&5
19112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19113 (exit $ac_status); }; } &&
19114 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
19120 ac_cv_lib_ipc_shmat=yes
19122 echo "$as_me: failed program was:" >&5
19123 sed 's/^/| /' conftest.$ac_ext >&5
19125 ac_cv_lib_ipc_shmat=no
19127 rm -f conftest.err conftest.$ac_objext \
19128 conftest$ac_exeext conftest.$ac_ext
19129 LIBS=$ac_check_lib_save_LIBS
19131 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
19132 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
19133 if test $ac_cv_lib_ipc_shmat = yes; then
19134 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
19140 # Check for libraries that X11R6 Xt/Xaw programs need.
19141 ac_save_LDFLAGS=$LDFLAGS
19142 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
19143 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
19144 # check for ICE first), but we must link in the order -lSM -lICE or
19145 # we get undefined symbols. So assume we have SM if we have ICE.
19146 # These have to be linked with before -lX11, unlike the other
19147 # libraries we check for below, so use a different variable.
19148 # John Interrante, Karl Berry
19149 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
19150 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
19151 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
19152 echo $ECHO_N "(cached) $ECHO_C" >&6
19154 ac_check_lib_save_LIBS=$LIBS
19155 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
19156 cat >conftest.$ac_ext <<_ACEOF
19159 cat confdefs.h >>conftest.$ac_ext
19160 cat >>conftest.$ac_ext <<_ACEOF
19161 /* end confdefs.h. */
19163 /* Override any gcc2 internal prototype to avoid an error. */
19167 /* We use char because int might match the return type of a gcc2
19168 builtin and then its argument prototype would still apply. */
19169 char IceConnectionNumber ();
19173 IceConnectionNumber ();
19178 rm -f conftest.$ac_objext conftest$ac_exeext
19179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19180 (eval $ac_link) 2>conftest.er1
19182 grep -v '^ *+' conftest.er1 >conftest.err
19184 cat conftest.err >&5
19185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19186 (exit $ac_status); } &&
19187 { ac_try='test -z "$ac_c_werror_flag"
19188 || test ! -s conftest.err'
19189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19190 (eval $ac_try) 2>&5
19192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19193 (exit $ac_status); }; } &&
19194 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
19200 ac_cv_lib_ICE_IceConnectionNumber=yes
19202 echo "$as_me: failed program was:" >&5
19203 sed 's/^/| /' conftest.$ac_ext >&5
19205 ac_cv_lib_ICE_IceConnectionNumber=no
19207 rm -f conftest.err conftest.$ac_objext \
19208 conftest$ac_exeext conftest.$ac_ext
19209 LIBS=$ac_check_lib_save_LIBS
19211 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
19212 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
19213 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
19214 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
19217 LDFLAGS=$ac_save_LDFLAGS
19279 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19280 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19281 echo "$as_me:$LINENO: checking for $ac_header" >&5
19282 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19283 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19284 echo $ECHO_N "(cached) $ECHO_C" >&6
19286 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19287 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19289 # Is the header compilable?
19290 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19291 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19292 cat >conftest.$ac_ext <<_ACEOF
19295 cat confdefs.h >>conftest.$ac_ext
19296 cat >>conftest.$ac_ext <<_ACEOF
19297 /* end confdefs.h. */
19298 $ac_includes_default
19299 #include <$ac_header>
19301 rm -f conftest.$ac_objext
19302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19303 (eval $ac_compile) 2>conftest.er1
19305 grep -v '^ *+' conftest.er1 >conftest.err
19307 cat conftest.err >&5
19308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19309 (exit $ac_status); } &&
19310 { ac_try='test -z "$ac_c_werror_flag"
19311 || test ! -s conftest.err'
19312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19313 (eval $ac_try) 2>&5
19315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19316 (exit $ac_status); }; } &&
19317 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
19323 ac_header_compiler=yes
19325 echo "$as_me: failed program was:" >&5
19326 sed 's/^/| /' conftest.$ac_ext >&5
19328 ac_header_compiler=no
19330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19331 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19332 echo "${ECHO_T}$ac_header_compiler" >&6
19334 # Is the header present?
19335 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19336 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19337 cat >conftest.$ac_ext <<_ACEOF
19340 cat confdefs.h >>conftest.$ac_ext
19341 cat >>conftest.$ac_ext <<_ACEOF
19342 /* end confdefs.h. */
19343 #include <$ac_header>
19345 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19346 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19348 grep -v '^ *+' conftest.er1 >conftest.err
19350 cat conftest.err >&5
19351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19352 (exit $ac_status); } >/dev/null; then
19353 if test -s conftest.err; then
19354 ac_cpp_err=$ac_c_preproc_warn_flag
19355 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19362 if test -z "$ac_cpp_err"; then
19363 ac_header_preproc=yes
19365 echo "$as_me: failed program was:" >&5
19366 sed 's/^/| /' conftest.$ac_ext >&5
19368 ac_header_preproc=no
19370 rm -f conftest.err conftest.$ac_ext
19371 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19372 echo "${ECHO_T}$ac_header_preproc" >&6
19374 # So? What about this header?
19375 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19377 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19378 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19379 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19380 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19381 ac_header_preproc=yes
19384 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19385 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19386 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19387 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19388 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19389 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19390 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19391 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19392 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19393 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19394 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19395 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19398 ## ------------------------------------------ ##
19399 ## Report this to the AC_PACKAGE_NAME lists. ##
19400 ## ------------------------------------------ ##
19403 sed "s/^/$as_me: WARNING: /" >&2
19406 echo "$as_me:$LINENO: checking for $ac_header" >&5
19407 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19408 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19409 echo $ECHO_N "(cached) $ECHO_C" >&6
19411 eval "$as_ac_Header=\$ac_header_preproc"
19413 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19414 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19417 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19418 cat >>confdefs.h <<_ACEOF
19419 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19426 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19427 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19428 if test "${ac_cv_header_stdc+set}" = set; then
19429 echo $ECHO_N "(cached) $ECHO_C" >&6
19431 cat >conftest.$ac_ext <<_ACEOF
19434 cat confdefs.h >>conftest.$ac_ext
19435 cat >>conftest.$ac_ext <<_ACEOF
19436 /* end confdefs.h. */
19437 #include <stdlib.h>
19438 #include <stdarg.h>
19439 #include <string.h>
19450 rm -f conftest.$ac_objext
19451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19452 (eval $ac_compile) 2>conftest.er1
19454 grep -v '^ *+' conftest.er1 >conftest.err
19456 cat conftest.err >&5
19457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19458 (exit $ac_status); } &&
19459 { ac_try='test -z "$ac_c_werror_flag"
19460 || test ! -s conftest.err'
19461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19462 (eval $ac_try) 2>&5
19464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19465 (exit $ac_status); }; } &&
19466 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
19472 ac_cv_header_stdc=yes
19474 echo "$as_me: failed program was:" >&5
19475 sed 's/^/| /' conftest.$ac_ext >&5
19477 ac_cv_header_stdc=no
19479 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19481 if test $ac_cv_header_stdc = yes; then
19482 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19483 cat >conftest.$ac_ext <<_ACEOF
19486 cat confdefs.h >>conftest.$ac_ext
19487 cat >>conftest.$ac_ext <<_ACEOF
19488 /* end confdefs.h. */
19489 #include <string.h>
19492 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19493 $EGREP "memchr" >/dev/null 2>&1; then
19496 ac_cv_header_stdc=no
19502 if test $ac_cv_header_stdc = yes; then
19503 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19504 cat >conftest.$ac_ext <<_ACEOF
19507 cat confdefs.h >>conftest.$ac_ext
19508 cat >>conftest.$ac_ext <<_ACEOF
19509 /* end confdefs.h. */
19510 #include <stdlib.h>
19513 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19514 $EGREP "free" >/dev/null 2>&1; then
19517 ac_cv_header_stdc=no
19523 if test $ac_cv_header_stdc = yes; then
19524 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19525 if test "$cross_compiling" = yes; then
19528 cat >conftest.$ac_ext <<_ACEOF
19531 cat confdefs.h >>conftest.$ac_ext
19532 cat >>conftest.$ac_ext <<_ACEOF
19533 /* end confdefs.h. */
19535 #if ((' ' & 0x0FF) == 0x020)
19536 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19537 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19539 # define ISLOWER(c) \
19540 (('a' <= (c) && (c) <= 'i') \
19541 || ('j' <= (c) && (c) <= 'r') \
19542 || ('s' <= (c) && (c) <= 'z'))
19543 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19546 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19551 for (i = 0; i < 256; i++)
19552 if (XOR (islower (i), ISLOWER (i))
19553 || toupper (i) != TOUPPER (i))
19558 rm -f conftest$ac_exeext
19559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19560 (eval $ac_link) 2>&5
19562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19563 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19565 (eval $ac_try) 2>&5
19567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19568 (exit $ac_status); }; }; then
19571 echo "$as_me: program exited with status $ac_status" >&5
19572 echo "$as_me: failed program was:" >&5
19573 sed 's/^/| /' conftest.$ac_ext >&5
19575 ( exit $ac_status )
19576 ac_cv_header_stdc=no
19578 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19582 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19583 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19584 if test $ac_cv_header_stdc = yes; then
19586 cat >>confdefs.h <<\_ACEOF
19587 #define STDC_HEADERS 1
19592 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
19593 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
19594 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
19595 echo $ECHO_N "(cached) $ECHO_C" >&6
19597 cat >conftest.$ac_ext <<_ACEOF
19600 cat confdefs.h >>conftest.$ac_ext
19601 cat >>conftest.$ac_ext <<_ACEOF
19602 /* end confdefs.h. */
19603 #include <sys/types.h>
19607 return makedev(0, 0);
19612 rm -f conftest.$ac_objext conftest$ac_exeext
19613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19614 (eval $ac_link) 2>conftest.er1
19616 grep -v '^ *+' conftest.er1 >conftest.err
19618 cat conftest.err >&5
19619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19620 (exit $ac_status); } &&
19621 { ac_try='test -z "$ac_c_werror_flag"
19622 || test ! -s conftest.err'
19623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19624 (eval $ac_try) 2>&5
19626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19627 (exit $ac_status); }; } &&
19628 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
19634 ac_cv_header_sys_types_h_makedev=yes
19636 echo "$as_me: failed program was:" >&5
19637 sed 's/^/| /' conftest.$ac_ext >&5
19639 ac_cv_header_sys_types_h_makedev=no
19641 rm -f conftest.err conftest.$ac_objext \
19642 conftest$ac_exeext conftest.$ac_ext
19645 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
19646 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
19648 if test $ac_cv_header_sys_types_h_makedev = no; then
19649 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19650 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
19651 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
19652 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19653 echo $ECHO_N "(cached) $ECHO_C" >&6
19655 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
19656 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
19658 # Is the header compilable?
19659 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
19660 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
19661 cat >conftest.$ac_ext <<_ACEOF
19664 cat confdefs.h >>conftest.$ac_ext
19665 cat >>conftest.$ac_ext <<_ACEOF
19666 /* end confdefs.h. */
19667 $ac_includes_default
19668 #include <sys/mkdev.h>
19670 rm -f conftest.$ac_objext
19671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19672 (eval $ac_compile) 2>conftest.er1
19674 grep -v '^ *+' conftest.er1 >conftest.err
19676 cat conftest.err >&5
19677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19678 (exit $ac_status); } &&
19679 { ac_try='test -z "$ac_c_werror_flag"
19680 || test ! -s conftest.err'
19681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19682 (eval $ac_try) 2>&5
19684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19685 (exit $ac_status); }; } &&
19686 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
19692 ac_header_compiler=yes
19694 echo "$as_me: failed program was:" >&5
19695 sed 's/^/| /' conftest.$ac_ext >&5
19697 ac_header_compiler=no
19699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19700 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19701 echo "${ECHO_T}$ac_header_compiler" >&6
19703 # Is the header present?
19704 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
19705 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
19706 cat >conftest.$ac_ext <<_ACEOF
19709 cat confdefs.h >>conftest.$ac_ext
19710 cat >>conftest.$ac_ext <<_ACEOF
19711 /* end confdefs.h. */
19712 #include <sys/mkdev.h>
19714 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19715 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19717 grep -v '^ *+' conftest.er1 >conftest.err
19719 cat conftest.err >&5
19720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19721 (exit $ac_status); } >/dev/null; then
19722 if test -s conftest.err; then
19723 ac_cpp_err=$ac_c_preproc_warn_flag
19724 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19731 if test -z "$ac_cpp_err"; then
19732 ac_header_preproc=yes
19734 echo "$as_me: failed program was:" >&5
19735 sed 's/^/| /' conftest.$ac_ext >&5
19737 ac_header_preproc=no
19739 rm -f conftest.err conftest.$ac_ext
19740 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19741 echo "${ECHO_T}$ac_header_preproc" >&6
19743 # So? What about this header?
19744 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19746 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
19747 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19748 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
19749 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
19750 ac_header_preproc=yes
19753 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
19754 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
19755 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
19756 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
19757 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
19758 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
19759 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
19760 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
19761 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
19762 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
19763 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
19764 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
19767 ## ------------------------------------------ ##
19768 ## Report this to the AC_PACKAGE_NAME lists. ##
19769 ## ------------------------------------------ ##
19772 sed "s/^/$as_me: WARNING: /" >&2
19775 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
19776 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
19777 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19778 echo $ECHO_N "(cached) $ECHO_C" >&6
19780 ac_cv_header_sys_mkdev_h=$ac_header_preproc
19782 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
19783 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
19786 if test $ac_cv_header_sys_mkdev_h = yes; then
19788 cat >>confdefs.h <<\_ACEOF
19789 #define MAJOR_IN_MKDEV 1
19796 if test $ac_cv_header_sys_mkdev_h = no; then
19797 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
19798 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
19799 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
19800 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
19801 echo $ECHO_N "(cached) $ECHO_C" >&6
19803 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
19804 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
19806 # Is the header compilable?
19807 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
19808 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
19809 cat >conftest.$ac_ext <<_ACEOF
19812 cat confdefs.h >>conftest.$ac_ext
19813 cat >>conftest.$ac_ext <<_ACEOF
19814 /* end confdefs.h. */
19815 $ac_includes_default
19816 #include <sys/sysmacros.h>
19818 rm -f conftest.$ac_objext
19819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19820 (eval $ac_compile) 2>conftest.er1
19822 grep -v '^ *+' conftest.er1 >conftest.err
19824 cat conftest.err >&5
19825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19826 (exit $ac_status); } &&
19827 { ac_try='test -z "$ac_c_werror_flag"
19828 || test ! -s conftest.err'
19829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19830 (eval $ac_try) 2>&5
19832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19833 (exit $ac_status); }; } &&
19834 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
19840 ac_header_compiler=yes
19842 echo "$as_me: failed program was:" >&5
19843 sed 's/^/| /' conftest.$ac_ext >&5
19845 ac_header_compiler=no
19847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19848 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19849 echo "${ECHO_T}$ac_header_compiler" >&6
19851 # Is the header present?
19852 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
19853 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
19854 cat >conftest.$ac_ext <<_ACEOF
19857 cat confdefs.h >>conftest.$ac_ext
19858 cat >>conftest.$ac_ext <<_ACEOF
19859 /* end confdefs.h. */
19860 #include <sys/sysmacros.h>
19862 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19863 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19865 grep -v '^ *+' conftest.er1 >conftest.err
19867 cat conftest.err >&5
19868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19869 (exit $ac_status); } >/dev/null; then
19870 if test -s conftest.err; then
19871 ac_cpp_err=$ac_c_preproc_warn_flag
19872 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19879 if test -z "$ac_cpp_err"; then
19880 ac_header_preproc=yes
19882 echo "$as_me: failed program was:" >&5
19883 sed 's/^/| /' conftest.$ac_ext >&5
19885 ac_header_preproc=no
19887 rm -f conftest.err conftest.$ac_ext
19888 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19889 echo "${ECHO_T}$ac_header_preproc" >&6
19891 # So? What about this header?
19892 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19894 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
19895 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19896 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
19897 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
19898 ac_header_preproc=yes
19901 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
19902 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
19903 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
19904 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
19905 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
19906 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
19907 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
19908 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
19909 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
19910 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
19911 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
19912 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
19915 ## ------------------------------------------ ##
19916 ## Report this to the AC_PACKAGE_NAME lists. ##
19917 ## ------------------------------------------ ##
19920 sed "s/^/$as_me: WARNING: /" >&2
19923 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
19924 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
19925 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
19926 echo $ECHO_N "(cached) $ECHO_C" >&6
19928 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
19930 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
19931 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
19934 if test $ac_cv_header_sys_sysmacros_h = yes; then
19936 cat >>confdefs.h <<\_ACEOF
19937 #define MAJOR_IN_SYSMACROS 1
19951 ac_header_dirent=no
19952 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19953 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19954 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
19955 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
19956 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19957 echo $ECHO_N "(cached) $ECHO_C" >&6
19959 cat >conftest.$ac_ext <<_ACEOF
19962 cat confdefs.h >>conftest.$ac_ext
19963 cat >>conftest.$ac_ext <<_ACEOF
19964 /* end confdefs.h. */
19965 #include <sys/types.h>
19977 rm -f conftest.$ac_objext
19978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19979 (eval $ac_compile) 2>conftest.er1
19981 grep -v '^ *+' conftest.er1 >conftest.err
19983 cat conftest.err >&5
19984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19985 (exit $ac_status); } &&
19986 { ac_try='test -z "$ac_c_werror_flag"
19987 || test ! -s conftest.err'
19988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19989 (eval $ac_try) 2>&5
19991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19992 (exit $ac_status); }; } &&
19993 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
19999 eval "$as_ac_Header=yes"
20001 echo "$as_me: failed program was:" >&5
20002 sed 's/^/| /' conftest.$ac_ext >&5
20004 eval "$as_ac_Header=no"
20006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20008 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20009 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20010 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20011 cat >>confdefs.h <<_ACEOF
20012 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20015 ac_header_dirent=$ac_hdr; break
20019 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20020 if test $ac_header_dirent = dirent.h; then
20021 echo "$as_me:$LINENO: checking for library containing opendir" >&5
20022 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
20023 if test "${ac_cv_search_opendir+set}" = set; then
20024 echo $ECHO_N "(cached) $ECHO_C" >&6
20026 ac_func_search_save_LIBS=$LIBS
20027 ac_cv_search_opendir=no
20028 cat >conftest.$ac_ext <<_ACEOF
20031 cat confdefs.h >>conftest.$ac_ext
20032 cat >>conftest.$ac_ext <<_ACEOF
20033 /* end confdefs.h. */
20035 /* Override any gcc2 internal prototype to avoid an error. */
20039 /* We use char because int might match the return type of a gcc2
20040 builtin and then its argument prototype would still apply. */
20050 rm -f conftest.$ac_objext conftest$ac_exeext
20051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20052 (eval $ac_link) 2>conftest.er1
20054 grep -v '^ *+' conftest.er1 >conftest.err
20056 cat conftest.err >&5
20057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20058 (exit $ac_status); } &&
20059 { ac_try='test -z "$ac_c_werror_flag"
20060 || test ! -s conftest.err'
20061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20062 (eval $ac_try) 2>&5
20064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20065 (exit $ac_status); }; } &&
20066 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
20072 ac_cv_search_opendir="none required"
20074 echo "$as_me: failed program was:" >&5
20075 sed 's/^/| /' conftest.$ac_ext >&5
20078 rm -f conftest.err conftest.$ac_objext \
20079 conftest$ac_exeext conftest.$ac_ext
20080 if test "$ac_cv_search_opendir" = no; then
20081 for ac_lib in dir; do
20082 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20083 cat >conftest.$ac_ext <<_ACEOF
20086 cat confdefs.h >>conftest.$ac_ext
20087 cat >>conftest.$ac_ext <<_ACEOF
20088 /* end confdefs.h. */
20090 /* Override any gcc2 internal prototype to avoid an error. */
20094 /* We use char because int might match the return type of a gcc2
20095 builtin and then its argument prototype would still apply. */
20105 rm -f conftest.$ac_objext conftest$ac_exeext
20106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20107 (eval $ac_link) 2>conftest.er1
20109 grep -v '^ *+' conftest.er1 >conftest.err
20111 cat conftest.err >&5
20112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20113 (exit $ac_status); } &&
20114 { ac_try='test -z "$ac_c_werror_flag"
20115 || test ! -s conftest.err'
20116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20117 (eval $ac_try) 2>&5
20119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20120 (exit $ac_status); }; } &&
20121 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
20127 ac_cv_search_opendir="-l$ac_lib"
20130 echo "$as_me: failed program was:" >&5
20131 sed 's/^/| /' conftest.$ac_ext >&5
20134 rm -f conftest.err conftest.$ac_objext \
20135 conftest$ac_exeext conftest.$ac_ext
20138 LIBS=$ac_func_search_save_LIBS
20140 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20141 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20142 if test "$ac_cv_search_opendir" != no; then
20143 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20148 echo "$as_me:$LINENO: checking for library containing opendir" >&5
20149 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
20150 if test "${ac_cv_search_opendir+set}" = set; then
20151 echo $ECHO_N "(cached) $ECHO_C" >&6
20153 ac_func_search_save_LIBS=$LIBS
20154 ac_cv_search_opendir=no
20155 cat >conftest.$ac_ext <<_ACEOF
20158 cat confdefs.h >>conftest.$ac_ext
20159 cat >>conftest.$ac_ext <<_ACEOF
20160 /* end confdefs.h. */
20162 /* Override any gcc2 internal prototype to avoid an error. */
20166 /* We use char because int might match the return type of a gcc2
20167 builtin and then its argument prototype would still apply. */
20177 rm -f conftest.$ac_objext conftest$ac_exeext
20178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20179 (eval $ac_link) 2>conftest.er1
20181 grep -v '^ *+' conftest.er1 >conftest.err
20183 cat conftest.err >&5
20184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20185 (exit $ac_status); } &&
20186 { ac_try='test -z "$ac_c_werror_flag"
20187 || test ! -s conftest.err'
20188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20189 (eval $ac_try) 2>&5
20191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20192 (exit $ac_status); }; } &&
20193 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
20199 ac_cv_search_opendir="none required"
20201 echo "$as_me: failed program was:" >&5
20202 sed 's/^/| /' conftest.$ac_ext >&5
20205 rm -f conftest.err conftest.$ac_objext \
20206 conftest$ac_exeext conftest.$ac_ext
20207 if test "$ac_cv_search_opendir" = no; then
20208 for ac_lib in x; do
20209 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20210 cat >conftest.$ac_ext <<_ACEOF
20213 cat confdefs.h >>conftest.$ac_ext
20214 cat >>conftest.$ac_ext <<_ACEOF
20215 /* end confdefs.h. */
20217 /* Override any gcc2 internal prototype to avoid an error. */
20221 /* We use char because int might match the return type of a gcc2
20222 builtin and then its argument prototype would still apply. */
20232 rm -f conftest.$ac_objext conftest$ac_exeext
20233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20234 (eval $ac_link) 2>conftest.er1
20236 grep -v '^ *+' conftest.er1 >conftest.err
20238 cat conftest.err >&5
20239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20240 (exit $ac_status); } &&
20241 { ac_try='test -z "$ac_c_werror_flag"
20242 || test ! -s conftest.err'
20243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20244 (eval $ac_try) 2>&5
20246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20247 (exit $ac_status); }; } &&
20248 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
20254 ac_cv_search_opendir="-l$ac_lib"
20257 echo "$as_me: failed program was:" >&5
20258 sed 's/^/| /' conftest.$ac_ext >&5
20261 rm -f conftest.err conftest.$ac_objext \
20262 conftest$ac_exeext conftest.$ac_ext
20265 LIBS=$ac_func_search_save_LIBS
20267 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20268 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20269 if test "$ac_cv_search_opendir" != no; then
20270 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20276 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
20277 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
20278 if test "${ac_cv_header_stat_broken+set}" = set; then
20279 echo $ECHO_N "(cached) $ECHO_C" >&6
20281 cat >conftest.$ac_ext <<_ACEOF
20284 cat confdefs.h >>conftest.$ac_ext
20285 cat >>conftest.$ac_ext <<_ACEOF
20286 /* end confdefs.h. */
20287 #include <sys/types.h>
20288 #include <sys/stat.h>
20290 #if defined(S_ISBLK) && defined(S_IFDIR)
20291 # if S_ISBLK (S_IFDIR)
20296 #if defined(S_ISBLK) && defined(S_IFCHR)
20297 # if S_ISBLK (S_IFCHR)
20302 #if defined(S_ISLNK) && defined(S_IFREG)
20303 # if S_ISLNK (S_IFREG)
20308 #if defined(S_ISSOCK) && defined(S_IFREG)
20309 # if S_ISSOCK (S_IFREG)
20315 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20316 $EGREP "You lose" >/dev/null 2>&1; then
20317 ac_cv_header_stat_broken=yes
20319 ac_cv_header_stat_broken=no
20324 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
20325 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
20326 if test $ac_cv_header_stat_broken = yes; then
20328 cat >>confdefs.h <<\_ACEOF
20329 #define STAT_MACROS_BROKEN 1
20334 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20335 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
20336 if test "${ac_cv_header_sys_wait_h+set}" = set; then
20337 echo $ECHO_N "(cached) $ECHO_C" >&6
20339 cat >conftest.$ac_ext <<_ACEOF
20342 cat confdefs.h >>conftest.$ac_ext
20343 cat >>conftest.$ac_ext <<_ACEOF
20344 /* end confdefs.h. */
20345 #include <sys/types.h>
20346 #include <sys/wait.h>
20347 #ifndef WEXITSTATUS
20348 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
20351 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20359 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20364 rm -f conftest.$ac_objext
20365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20366 (eval $ac_compile) 2>conftest.er1
20368 grep -v '^ *+' conftest.er1 >conftest.err
20370 cat conftest.err >&5
20371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20372 (exit $ac_status); } &&
20373 { ac_try='test -z "$ac_c_werror_flag"
20374 || test ! -s conftest.err'
20375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20376 (eval $ac_try) 2>&5
20378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20379 (exit $ac_status); }; } &&
20380 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
20386 ac_cv_header_sys_wait_h=yes
20388 echo "$as_me: failed program was:" >&5
20389 sed 's/^/| /' conftest.$ac_ext >&5
20391 ac_cv_header_sys_wait_h=no
20393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20395 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20396 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
20397 if test $ac_cv_header_sys_wait_h = yes; then
20399 cat >>confdefs.h <<\_ACEOF
20400 #define HAVE_SYS_WAIT_H 1
20405 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20406 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20407 if test "${ac_cv_header_time+set}" = set; then
20408 echo $ECHO_N "(cached) $ECHO_C" >&6
20410 cat >conftest.$ac_ext <<_ACEOF
20413 cat confdefs.h >>conftest.$ac_ext
20414 cat >>conftest.$ac_ext <<_ACEOF
20415 /* end confdefs.h. */
20416 #include <sys/types.h>
20417 #include <sys/time.h>
20423 if ((struct tm *) 0)
20429 rm -f conftest.$ac_objext
20430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20431 (eval $ac_compile) 2>conftest.er1
20433 grep -v '^ *+' conftest.er1 >conftest.err
20435 cat conftest.err >&5
20436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20437 (exit $ac_status); } &&
20438 { ac_try='test -z "$ac_c_werror_flag"
20439 || test ! -s conftest.err'
20440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20441 (eval $ac_try) 2>&5
20443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20444 (exit $ac_status); }; } &&
20445 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
20451 ac_cv_header_time=yes
20453 echo "$as_me: failed program was:" >&5
20454 sed 's/^/| /' conftest.$ac_ext >&5
20456 ac_cv_header_time=no
20458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20460 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20461 echo "${ECHO_T}$ac_cv_header_time" >&6
20462 if test $ac_cv_header_time = yes; then
20464 cat >>confdefs.h <<\_ACEOF
20465 #define TIME_WITH_SYS_TIME 1
20471 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
20472 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
20473 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
20474 echo $ECHO_N "(cached) $ECHO_C" >&6
20476 cat >conftest.$ac_ext <<_ACEOF
20479 cat confdefs.h >>conftest.$ac_ext
20480 cat >>conftest.$ac_ext <<_ACEOF
20481 /* end confdefs.h. */
20482 $ac_includes_default
20486 static struct stat ac_aggr;
20487 if (ac_aggr.st_blksize)
20493 rm -f conftest.$ac_objext
20494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20495 (eval $ac_compile) 2>conftest.er1
20497 grep -v '^ *+' conftest.er1 >conftest.err
20499 cat conftest.err >&5
20500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20501 (exit $ac_status); } &&
20502 { ac_try='test -z "$ac_c_werror_flag"
20503 || test ! -s conftest.err'
20504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20505 (eval $ac_try) 2>&5
20507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20508 (exit $ac_status); }; } &&
20509 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
20515 ac_cv_member_struct_stat_st_blksize=yes
20517 echo "$as_me: failed program was:" >&5
20518 sed 's/^/| /' conftest.$ac_ext >&5
20520 cat >conftest.$ac_ext <<_ACEOF
20523 cat confdefs.h >>conftest.$ac_ext
20524 cat >>conftest.$ac_ext <<_ACEOF
20525 /* end confdefs.h. */
20526 $ac_includes_default
20530 static struct stat ac_aggr;
20531 if (sizeof ac_aggr.st_blksize)
20537 rm -f conftest.$ac_objext
20538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20539 (eval $ac_compile) 2>conftest.er1
20541 grep -v '^ *+' conftest.er1 >conftest.err
20543 cat conftest.err >&5
20544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20545 (exit $ac_status); } &&
20546 { ac_try='test -z "$ac_c_werror_flag"
20547 || test ! -s conftest.err'
20548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20549 (eval $ac_try) 2>&5
20551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20552 (exit $ac_status); }; } &&
20553 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
20559 ac_cv_member_struct_stat_st_blksize=yes
20561 echo "$as_me: failed program was:" >&5
20562 sed 's/^/| /' conftest.$ac_ext >&5
20564 ac_cv_member_struct_stat_st_blksize=no
20566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20570 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
20571 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
20572 if test $ac_cv_member_struct_stat_st_blksize = yes; then
20574 cat >>confdefs.h <<_ACEOF
20575 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
20579 cat >>confdefs.h <<\_ACEOF
20580 #define HAVE_ST_BLKSIZE 1
20586 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
20587 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
20588 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
20589 echo $ECHO_N "(cached) $ECHO_C" >&6
20591 cat >conftest.$ac_ext <<_ACEOF
20594 cat confdefs.h >>conftest.$ac_ext
20595 cat >>conftest.$ac_ext <<_ACEOF
20596 /* end confdefs.h. */
20597 $ac_includes_default
20601 static struct stat ac_aggr;
20602 if (ac_aggr.st_blocks)
20608 rm -f conftest.$ac_objext
20609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20610 (eval $ac_compile) 2>conftest.er1
20612 grep -v '^ *+' conftest.er1 >conftest.err
20614 cat conftest.err >&5
20615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20616 (exit $ac_status); } &&
20617 { ac_try='test -z "$ac_c_werror_flag"
20618 || test ! -s conftest.err'
20619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20620 (eval $ac_try) 2>&5
20622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20623 (exit $ac_status); }; } &&
20624 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
20630 ac_cv_member_struct_stat_st_blocks=yes
20632 echo "$as_me: failed program was:" >&5
20633 sed 's/^/| /' conftest.$ac_ext >&5
20635 cat >conftest.$ac_ext <<_ACEOF
20638 cat confdefs.h >>conftest.$ac_ext
20639 cat >>conftest.$ac_ext <<_ACEOF
20640 /* end confdefs.h. */
20641 $ac_includes_default
20645 static struct stat ac_aggr;
20646 if (sizeof ac_aggr.st_blocks)
20652 rm -f conftest.$ac_objext
20653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20654 (eval $ac_compile) 2>conftest.er1
20656 grep -v '^ *+' conftest.er1 >conftest.err
20658 cat conftest.err >&5
20659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20660 (exit $ac_status); } &&
20661 { ac_try='test -z "$ac_c_werror_flag"
20662 || test ! -s conftest.err'
20663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20664 (eval $ac_try) 2>&5
20666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20667 (exit $ac_status); }; } &&
20668 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
20674 ac_cv_member_struct_stat_st_blocks=yes
20676 echo "$as_me: failed program was:" >&5
20677 sed 's/^/| /' conftest.$ac_ext >&5
20679 ac_cv_member_struct_stat_st_blocks=no
20681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20685 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
20686 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
20687 if test $ac_cv_member_struct_stat_st_blocks = yes; then
20689 cat >>confdefs.h <<_ACEOF
20690 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
20694 cat >>confdefs.h <<\_ACEOF
20695 #define HAVE_ST_BLOCKS 1
20700 "fileblocks.$ac_objext" | \
20701 *" fileblocks.$ac_objext" | \
20702 "fileblocks.$ac_objext "* | \
20703 *" fileblocks.$ac_objext "* ) ;;
20704 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
20710 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20711 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20712 if test "${ac_cv_struct_tm+set}" = set; then
20713 echo $ECHO_N "(cached) $ECHO_C" >&6
20715 cat >conftest.$ac_ext <<_ACEOF
20718 cat confdefs.h >>conftest.$ac_ext
20719 cat >>conftest.$ac_ext <<_ACEOF
20720 /* end confdefs.h. */
20721 #include <sys/types.h>
20727 struct tm *tp; tp->tm_sec;
20732 rm -f conftest.$ac_objext
20733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20734 (eval $ac_compile) 2>conftest.er1
20736 grep -v '^ *+' conftest.er1 >conftest.err
20738 cat conftest.err >&5
20739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20740 (exit $ac_status); } &&
20741 { ac_try='test -z "$ac_c_werror_flag"
20742 || test ! -s conftest.err'
20743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20744 (eval $ac_try) 2>&5
20746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20747 (exit $ac_status); }; } &&
20748 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
20754 ac_cv_struct_tm=time.h
20756 echo "$as_me: failed program was:" >&5
20757 sed 's/^/| /' conftest.$ac_ext >&5
20759 ac_cv_struct_tm=sys/time.h
20761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20763 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20764 echo "${ECHO_T}$ac_cv_struct_tm" >&6
20765 if test $ac_cv_struct_tm = sys/time.h; then
20767 cat >>confdefs.h <<\_ACEOF
20768 #define TM_IN_SYS_TIME 1
20773 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
20774 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
20775 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20776 echo $ECHO_N "(cached) $ECHO_C" >&6
20778 cat >conftest.$ac_ext <<_ACEOF
20781 cat confdefs.h >>conftest.$ac_ext
20782 cat >>conftest.$ac_ext <<_ACEOF
20783 /* end confdefs.h. */
20784 #include <sys/types.h>
20785 #include <$ac_cv_struct_tm>
20791 static struct tm ac_aggr;
20792 if (ac_aggr.tm_zone)
20798 rm -f conftest.$ac_objext
20799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20800 (eval $ac_compile) 2>conftest.er1
20802 grep -v '^ *+' conftest.er1 >conftest.err
20804 cat conftest.err >&5
20805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20806 (exit $ac_status); } &&
20807 { ac_try='test -z "$ac_c_werror_flag"
20808 || test ! -s conftest.err'
20809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20810 (eval $ac_try) 2>&5
20812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20813 (exit $ac_status); }; } &&
20814 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
20820 ac_cv_member_struct_tm_tm_zone=yes
20822 echo "$as_me: failed program was:" >&5
20823 sed 's/^/| /' conftest.$ac_ext >&5
20825 cat >conftest.$ac_ext <<_ACEOF
20828 cat confdefs.h >>conftest.$ac_ext
20829 cat >>conftest.$ac_ext <<_ACEOF
20830 /* end confdefs.h. */
20831 #include <sys/types.h>
20832 #include <$ac_cv_struct_tm>
20838 static struct tm ac_aggr;
20839 if (sizeof ac_aggr.tm_zone)
20845 rm -f conftest.$ac_objext
20846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20847 (eval $ac_compile) 2>conftest.er1
20849 grep -v '^ *+' conftest.er1 >conftest.err
20851 cat conftest.err >&5
20852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20853 (exit $ac_status); } &&
20854 { ac_try='test -z "$ac_c_werror_flag"
20855 || test ! -s conftest.err'
20856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20857 (eval $ac_try) 2>&5
20859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20860 (exit $ac_status); }; } &&
20861 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
20867 ac_cv_member_struct_tm_tm_zone=yes
20869 echo "$as_me: failed program was:" >&5
20870 sed 's/^/| /' conftest.$ac_ext >&5
20872 ac_cv_member_struct_tm_tm_zone=no
20874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20878 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
20879 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
20880 if test $ac_cv_member_struct_tm_tm_zone = yes; then
20882 cat >>confdefs.h <<_ACEOF
20883 #define HAVE_STRUCT_TM_TM_ZONE 1
20889 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
20891 cat >>confdefs.h <<\_ACEOF
20892 #define HAVE_TM_ZONE 1
20896 echo "$as_me:$LINENO: checking for tzname" >&5
20897 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
20898 if test "${ac_cv_var_tzname+set}" = set; then
20899 echo $ECHO_N "(cached) $ECHO_C" >&6
20901 cat >conftest.$ac_ext <<_ACEOF
20904 cat confdefs.h >>conftest.$ac_ext
20905 cat >>conftest.$ac_ext <<_ACEOF
20906 /* end confdefs.h. */
20908 #ifndef tzname /* For SGI. */
20909 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
20920 rm -f conftest.$ac_objext conftest$ac_exeext
20921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20922 (eval $ac_link) 2>conftest.er1
20924 grep -v '^ *+' conftest.er1 >conftest.err
20926 cat conftest.err >&5
20927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20928 (exit $ac_status); } &&
20929 { ac_try='test -z "$ac_c_werror_flag"
20930 || test ! -s conftest.err'
20931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20932 (eval $ac_try) 2>&5
20934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20935 (exit $ac_status); }; } &&
20936 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
20942 ac_cv_var_tzname=yes
20944 echo "$as_me: failed program was:" >&5
20945 sed 's/^/| /' conftest.$ac_ext >&5
20947 ac_cv_var_tzname=no
20949 rm -f conftest.err conftest.$ac_objext \
20950 conftest$ac_exeext conftest.$ac_ext
20952 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
20953 echo "${ECHO_T}$ac_cv_var_tzname" >&6
20954 if test $ac_cv_var_tzname = yes; then
20956 cat >>confdefs.h <<\_ACEOF
20957 #define HAVE_TZNAME 1
20964 echo "$as_me:$LINENO: checking for utime.h" >&5
20965 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
20966 if test "${ba_cv_header_utime_h+set}" = set; then
20967 echo $ECHO_N "(cached) $ECHO_C" >&6
20969 cat >conftest.$ac_ext <<_ACEOF
20972 cat confdefs.h >>conftest.$ac_ext
20973 cat >>conftest.$ac_ext <<_ACEOF
20974 /* end confdefs.h. */
20976 #include <sys/types.h>
20986 rm -f conftest.$ac_objext
20987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20988 (eval $ac_compile) 2>conftest.er1
20990 grep -v '^ *+' conftest.er1 >conftest.err
20992 cat conftest.err >&5
20993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20994 (exit $ac_status); } &&
20995 { ac_try='test -z "$ac_c_werror_flag"
20996 || test ! -s conftest.err'
20997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20998 (eval $ac_try) 2>&5
21000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21001 (exit $ac_status); }; } &&
21002 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
21008 ba_cv_header_utime_h=yes
21010 echo "$as_me: failed program was:" >&5
21011 sed 's/^/| /' conftest.$ac_ext >&5
21013 ba_cv_header_utime_h=no
21015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21017 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
21018 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
21019 test $ba_cv_header_utime_h = yes &&
21020 cat >>confdefs.h <<\_ACEOF
21021 #define HAVE_UTIME_H 1
21025 echo "$as_me:$LINENO: checking for socklen_t" >&5
21026 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
21027 if test "${ba_cv_header_socklen_t+set}" = set; then
21028 echo $ECHO_N "(cached) $ECHO_C" >&6
21030 cat >conftest.$ac_ext <<_ACEOF
21033 cat confdefs.h >>conftest.$ac_ext
21034 cat >>conftest.$ac_ext <<_ACEOF
21035 /* end confdefs.h. */
21037 #include <sys/types.h>
21038 #include <sys/socket.h>
21047 rm -f conftest.$ac_objext
21048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21049 (eval $ac_compile) 2>conftest.er1
21051 grep -v '^ *+' conftest.er1 >conftest.err
21053 cat conftest.err >&5
21054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21055 (exit $ac_status); } &&
21056 { ac_try='test -z "$ac_c_werror_flag"
21057 || test ! -s conftest.err'
21058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21059 (eval $ac_try) 2>&5
21061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21062 (exit $ac_status); }; } &&
21063 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
21069 ba_cv_header_socklen_t=yes
21071 echo "$as_me: failed program was:" >&5
21072 sed 's/^/| /' conftest.$ac_ext >&5
21074 ba_cv_header_socklen_t=no
21076 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21078 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
21079 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
21080 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
21081 #define HAVE_SOCKLEN_T 1
21085 echo "$as_me:$LINENO: checking for bigendian" >&5
21086 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
21087 if test "${ba_cv_bigendian+set}" = set; then
21088 echo $ECHO_N "(cached) $ECHO_C" >&6
21090 if test "$cross_compiling" = yes; then
21093 cat >conftest.$ac_ext <<_ACEOF
21096 cat confdefs.h >>conftest.$ac_ext
21097 cat >>conftest.$ac_ext <<_ACEOF
21098 /* end confdefs.h. */
21099 main(){long a=1L; char *p=(char *)&a; exit(*p);}
21101 rm -f conftest$ac_exeext
21102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21103 (eval $ac_link) 2>&5
21105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21106 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21108 (eval $ac_try) 2>&5
21110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21111 (exit $ac_status); }; }; then
21112 ba_cv_bigendian=yes
21114 echo "$as_me: program exited with status $ac_status" >&5
21115 echo "$as_me: failed program was:" >&5
21116 sed 's/^/| /' conftest.$ac_ext >&5
21118 ( exit $ac_status )
21121 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21124 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
21125 echo "${ECHO_T}$ba_cv_bigendian" >&6
21126 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
21127 #define HAVE_BIGENDIAN 1
21132 ac_cpp='$CXXCPP $CPPFLAGS'
21133 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21134 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21135 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21138 echo "$as_me:$LINENO: checking for typeof" >&5
21139 echo $ECHO_N "checking for typeof... $ECHO_C" >&6
21140 if test "${ba_cv_have_typeof+set}" = set; then
21141 echo $ECHO_N "(cached) $ECHO_C" >&6
21143 if test "$cross_compiling" = yes; then
21144 ba_cv_have_typeof=no
21146 cat >conftest.$ac_ext <<_ACEOF
21149 cat confdefs.h >>conftest.$ac_ext
21150 cat >>conftest.$ac_ext <<_ACEOF
21151 /* end confdefs.h. */
21152 main(){char *a = 0; a = (typeof a)a;}
21154 rm -f conftest$ac_exeext
21155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21156 (eval $ac_link) 2>&5
21158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21159 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21161 (eval $ac_try) 2>&5
21163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21164 (exit $ac_status); }; }; then
21165 ba_cv_have_typeof=yes
21167 echo "$as_me: program exited with status $ac_status" >&5
21168 echo "$as_me: failed program was:" >&5
21169 sed 's/^/| /' conftest.$ac_ext >&5
21171 ( exit $ac_status )
21172 ba_cv_have_typeof=no
21174 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21177 echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
21178 echo "${ECHO_T}$ba_cv_have_typeof" >&6
21179 test $ba_cv_have_typeof = yes &&
21180 cat >>confdefs.h <<\_ACEOF
21181 #define HAVE_TYPEOF 1
21185 ac_cpp='$CPP $CPPFLAGS'
21186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21191 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21192 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
21193 if test "${ac_cv_c_const+set}" = set; then
21194 echo $ECHO_N "(cached) $ECHO_C" >&6
21196 cat >conftest.$ac_ext <<_ACEOF
21199 cat confdefs.h >>conftest.$ac_ext
21200 cat >>conftest.$ac_ext <<_ACEOF
21201 /* end confdefs.h. */
21206 /* FIXME: Include the comments suggested by Paul. */
21207 #ifndef __cplusplus
21208 /* Ultrix mips cc rejects this. */
21209 typedef int charset[2];
21211 /* SunOS 4.1.1 cc rejects this. */
21212 char const *const *ccp;
21214 /* NEC SVR4.0.2 mips cc rejects this. */
21215 struct point {int x, y;};
21216 static struct point const zero = {0,0};
21217 /* AIX XL C 1.02.0.0 rejects this.
21218 It does not let you subtract one const X* pointer from another in
21219 an arm of an if-expression whose if-part is not a constant
21221 const char *g = "string";
21222 ccp = &g + (g ? g-g : 0);
21223 /* HPUX 7.0 cc rejects these. */
21226 ccp = (char const *const *) p;
21227 { /* SCO 3.2v4 cc rejects this. */
21229 char const *s = 0 ? (char *) 0 : (char const *) 0;
21233 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21234 int x[] = {25, 17};
21235 const int *foo = &x[0];
21238 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21239 typedef const int *iptr;
21243 { /* AIX XL C 1.02.0.0 rejects this saying
21244 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21245 struct s { int j; const int *ap[3]; };
21246 struct s *b; b->j = 5;
21248 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21249 const int foo = 10;
21257 rm -f conftest.$ac_objext
21258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21259 (eval $ac_compile) 2>conftest.er1
21261 grep -v '^ *+' conftest.er1 >conftest.err
21263 cat conftest.err >&5
21264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21265 (exit $ac_status); } &&
21266 { ac_try='test -z "$ac_c_werror_flag"
21267 || test ! -s conftest.err'
21268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21269 (eval $ac_try) 2>&5
21271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21272 (exit $ac_status); }; } &&
21273 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
21281 echo "$as_me: failed program was:" >&5
21282 sed 's/^/| /' conftest.$ac_ext >&5
21286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21288 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21289 echo "${ECHO_T}$ac_cv_c_const" >&6
21290 if test $ac_cv_c_const = no; then
21292 cat >>confdefs.h <<\_ACEOF
21300 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
21301 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
21303 # The order of these tests is important.
21304 cat >conftest.$ac_ext <<_ACEOF
21307 cat confdefs.h >>conftest.$ac_ext
21308 cat >>conftest.$ac_ext <<_ACEOF
21309 /* end confdefs.h. */
21310 #include <sys/statvfs.h>
21311 #include <sys/fstyp.h>
21313 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21314 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21316 grep -v '^ *+' conftest.er1 >conftest.err
21318 cat conftest.err >&5
21319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21320 (exit $ac_status); } >/dev/null; then
21321 if test -s conftest.err; then
21322 ac_cpp_err=$ac_c_preproc_warn_flag
21323 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21330 if test -z "$ac_cpp_err"; then
21331 cat >>confdefs.h <<\_ACEOF
21332 #define FSTYPE_STATVFS 1
21336 echo "$as_me: failed program was:" >&5
21337 sed 's/^/| /' conftest.$ac_ext >&5
21341 rm -f conftest.err conftest.$ac_ext
21342 if test $fstype = no; then
21343 cat >conftest.$ac_ext <<_ACEOF
21346 cat confdefs.h >>conftest.$ac_ext
21347 cat >>conftest.$ac_ext <<_ACEOF
21348 /* end confdefs.h. */
21349 #include <sys/statfs.h>
21350 #include <sys/fstyp.h>
21352 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21353 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21355 grep -v '^ *+' conftest.er1 >conftest.err
21357 cat conftest.err >&5
21358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21359 (exit $ac_status); } >/dev/null; then
21360 if test -s conftest.err; then
21361 ac_cpp_err=$ac_c_preproc_warn_flag
21362 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21369 if test -z "$ac_cpp_err"; then
21370 cat >>confdefs.h <<\_ACEOF
21371 #define FSTYPE_USG_STATFS 1
21375 echo "$as_me: failed program was:" >&5
21376 sed 's/^/| /' conftest.$ac_ext >&5
21380 rm -f conftest.err conftest.$ac_ext
21382 if test $fstype = no; then
21383 cat >conftest.$ac_ext <<_ACEOF
21386 cat confdefs.h >>conftest.$ac_ext
21387 cat >>conftest.$ac_ext <<_ACEOF
21388 /* end confdefs.h. */
21389 #include <sys/statfs.h>
21390 #include <sys/vmount.h>
21392 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21393 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21395 grep -v '^ *+' conftest.er1 >conftest.err
21397 cat conftest.err >&5
21398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21399 (exit $ac_status); } >/dev/null; then
21400 if test -s conftest.err; then
21401 ac_cpp_err=$ac_c_preproc_warn_flag
21402 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21409 if test -z "$ac_cpp_err"; then
21410 cat >>confdefs.h <<\_ACEOF
21411 #define FSTYPE_AIX_STATFS 1
21415 echo "$as_me: failed program was:" >&5
21416 sed 's/^/| /' conftest.$ac_ext >&5
21420 rm -f conftest.err conftest.$ac_ext
21422 if test $fstype = no; then
21423 cat >conftest.$ac_ext <<_ACEOF
21426 cat confdefs.h >>conftest.$ac_ext
21427 cat >>conftest.$ac_ext <<_ACEOF
21428 /* end confdefs.h. */
21429 #include <mntent.h>
21431 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21432 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21434 grep -v '^ *+' conftest.er1 >conftest.err
21436 cat conftest.err >&5
21437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21438 (exit $ac_status); } >/dev/null; then
21439 if test -s conftest.err; then
21440 ac_cpp_err=$ac_c_preproc_warn_flag
21441 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21448 if test -z "$ac_cpp_err"; then
21449 cat >>confdefs.h <<\_ACEOF
21450 #define FSTYPE_MNTENT 1
21454 echo "$as_me: failed program was:" >&5
21455 sed 's/^/| /' conftest.$ac_ext >&5
21459 rm -f conftest.err conftest.$ac_ext
21461 if test $fstype = no; then
21462 cat >conftest.$ac_ext <<_ACEOF
21465 cat confdefs.h >>conftest.$ac_ext
21466 cat >>conftest.$ac_ext <<_ACEOF
21467 /* end confdefs.h. */
21468 #include <sys/mount.h>
21471 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21472 $EGREP "f_type;" >/dev/null 2>&1; then
21473 cat >>confdefs.h <<\_ACEOF
21474 #define FSTYPE_STATFS 1
21481 if test $fstype = no; then
21482 cat >conftest.$ac_ext <<_ACEOF
21485 cat confdefs.h >>conftest.$ac_ext
21486 cat >>conftest.$ac_ext <<_ACEOF
21487 /* end confdefs.h. */
21488 #include <sys/mount.h>
21489 #include <sys/fs_types.h>
21491 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21492 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21494 grep -v '^ *+' conftest.er1 >conftest.err
21496 cat conftest.err >&5
21497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21498 (exit $ac_status); } >/dev/null; then
21499 if test -s conftest.err; then
21500 ac_cpp_err=$ac_c_preproc_warn_flag
21501 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21508 if test -z "$ac_cpp_err"; then
21509 cat >>confdefs.h <<\_ACEOF
21510 #define FSTYPE_GETMNT 1
21514 echo "$as_me: failed program was:" >&5
21515 sed 's/^/| /' conftest.$ac_ext >&5
21519 rm -f conftest.err conftest.$ac_ext
21521 echo "$as_me:$LINENO: result: $fstype" >&5
21522 echo "${ECHO_T}$fstype" >&6
21524 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21525 echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
21526 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6
21527 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21528 echo $ECHO_N "(cached) $ECHO_C" >&6
21530 echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
21531 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6
21533 # Is the header compilable?
21534 echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
21535 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6
21536 cat >conftest.$ac_ext <<_ACEOF
21539 cat confdefs.h >>conftest.$ac_ext
21540 cat >>conftest.$ac_ext <<_ACEOF
21541 /* end confdefs.h. */
21542 $ac_includes_default
21543 #include <sys/statvfs.h>
21545 rm -f conftest.$ac_objext
21546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21547 (eval $ac_compile) 2>conftest.er1
21549 grep -v '^ *+' conftest.er1 >conftest.err
21551 cat conftest.err >&5
21552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21553 (exit $ac_status); } &&
21554 { ac_try='test -z "$ac_c_werror_flag"
21555 || test ! -s conftest.err'
21556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21557 (eval $ac_try) 2>&5
21559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21560 (exit $ac_status); }; } &&
21561 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
21567 ac_header_compiler=yes
21569 echo "$as_me: failed program was:" >&5
21570 sed 's/^/| /' conftest.$ac_ext >&5
21572 ac_header_compiler=no
21574 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21575 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21576 echo "${ECHO_T}$ac_header_compiler" >&6
21578 # Is the header present?
21579 echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
21580 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6
21581 cat >conftest.$ac_ext <<_ACEOF
21584 cat confdefs.h >>conftest.$ac_ext
21585 cat >>conftest.$ac_ext <<_ACEOF
21586 /* end confdefs.h. */
21587 #include <sys/statvfs.h>
21589 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21590 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21592 grep -v '^ *+' conftest.er1 >conftest.err
21594 cat conftest.err >&5
21595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21596 (exit $ac_status); } >/dev/null; then
21597 if test -s conftest.err; then
21598 ac_cpp_err=$ac_c_preproc_warn_flag
21599 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21606 if test -z "$ac_cpp_err"; then
21607 ac_header_preproc=yes
21609 echo "$as_me: failed program was:" >&5
21610 sed 's/^/| /' conftest.$ac_ext >&5
21612 ac_header_preproc=no
21614 rm -f conftest.err conftest.$ac_ext
21615 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21616 echo "${ECHO_T}$ac_header_preproc" >&6
21618 # So? What about this header?
21619 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21621 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
21622 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21623 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
21624 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
21625 ac_header_preproc=yes
21628 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
21629 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
21630 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&5
21631 echo "$as_me: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&2;}
21632 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
21633 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
21634 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&5
21635 echo "$as_me: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&2;}
21636 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
21637 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
21638 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
21639 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
21642 ## ------------------------------------------ ##
21643 ## Report this to the AC_PACKAGE_NAME lists. ##
21644 ## ------------------------------------------ ##
21647 sed "s/^/$as_me: WARNING: /" >&2
21650 echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
21651 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6
21652 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21653 echo $ECHO_N "(cached) $ECHO_C" >&6
21655 ac_cv_header_sys_statvfs_h=$ac_header_preproc
21657 echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
21658 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6
21661 if test $ac_cv_header_sys_statvfs_h = yes; then
21663 cat >>confdefs.h <<\_ACEOF
21664 #define HAVE_SYS_STATVFS_H 1
21671 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
21672 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
21673 if test "${ac_cv_type_signal+set}" = set; then
21674 echo $ECHO_N "(cached) $ECHO_C" >&6
21676 cat >conftest.$ac_ext <<_ACEOF
21679 cat confdefs.h >>conftest.$ac_ext
21680 cat >>conftest.$ac_ext <<_ACEOF
21681 /* end confdefs.h. */
21682 #include <sys/types.h>
21683 #include <signal.h>
21688 extern "C" void (*signal (int, void (*)(int)))(int);
21690 void (*signal ()) ();
21701 rm -f conftest.$ac_objext
21702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21703 (eval $ac_compile) 2>conftest.er1
21705 grep -v '^ *+' conftest.er1 >conftest.err
21707 cat conftest.err >&5
21708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21709 (exit $ac_status); } &&
21710 { ac_try='test -z "$ac_c_werror_flag"
21711 || test ! -s conftest.err'
21712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21713 (eval $ac_try) 2>&5
21715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21716 (exit $ac_status); }; } &&
21717 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
21723 ac_cv_type_signal=void
21725 echo "$as_me: failed program was:" >&5
21726 sed 's/^/| /' conftest.$ac_ext >&5
21728 ac_cv_type_signal=int
21730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21732 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
21733 echo "${ECHO_T}$ac_cv_type_signal" >&6
21735 cat >>confdefs.h <<_ACEOF
21736 #define RETSIGTYPE $ac_cv_type_signal
21741 echo "$as_me:$LINENO: checking for type of signal functions" >&5
21742 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
21743 if test "${bash_cv_signal_vintage+set}" = set; then
21744 echo $ECHO_N "(cached) $ECHO_C" >&6
21747 cat >conftest.$ac_ext <<_ACEOF
21750 cat confdefs.h >>conftest.$ac_ext
21751 cat >>conftest.$ac_ext <<_ACEOF
21752 /* end confdefs.h. */
21753 #include <signal.h>
21759 struct sigaction sa;
21760 sigemptyset(&ss); sigsuspend(&ss);
21761 sigaction(SIGINT, &sa, (struct sigaction *) 0);
21762 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
21768 rm -f conftest.$ac_objext conftest$ac_exeext
21769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21770 (eval $ac_link) 2>conftest.er1
21772 grep -v '^ *+' conftest.er1 >conftest.err
21774 cat conftest.err >&5
21775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21776 (exit $ac_status); } &&
21777 { ac_try='test -z "$ac_c_werror_flag"
21778 || test ! -s conftest.err'
21779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21780 (eval $ac_try) 2>&5
21782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21783 (exit $ac_status); }; } &&
21784 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
21790 bash_cv_signal_vintage="posix"
21792 echo "$as_me: failed program was:" >&5
21793 sed 's/^/| /' conftest.$ac_ext >&5
21796 cat >conftest.$ac_ext <<_ACEOF
21799 cat confdefs.h >>conftest.$ac_ext
21800 cat >>conftest.$ac_ext <<_ACEOF
21801 /* end confdefs.h. */
21802 #include <signal.h>
21807 int mask = sigmask(SIGINT);
21808 sigsetmask(mask); sigblock(mask); sigpause(mask);
21814 rm -f conftest.$ac_objext conftest$ac_exeext
21815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21816 (eval $ac_link) 2>conftest.er1
21818 grep -v '^ *+' conftest.er1 >conftest.err
21820 cat conftest.err >&5
21821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21822 (exit $ac_status); } &&
21823 { ac_try='test -z "$ac_c_werror_flag"
21824 || test ! -s conftest.err'
21825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21826 (eval $ac_try) 2>&5
21828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21829 (exit $ac_status); }; } &&
21830 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
21836 bash_cv_signal_vintage="4.2bsd"
21838 echo "$as_me: failed program was:" >&5
21839 sed 's/^/| /' conftest.$ac_ext >&5
21842 cat >conftest.$ac_ext <<_ACEOF
21845 cat confdefs.h >>conftest.$ac_ext
21846 cat >>conftest.$ac_ext <<_ACEOF
21847 /* end confdefs.h. */
21849 #include <signal.h>
21850 RETSIGTYPE foo() { }
21855 int mask = sigmask(SIGINT);
21856 sigset(SIGINT, foo); sigrelse(SIGINT);
21857 sighold(SIGINT); sigpause(SIGINT);
21863 rm -f conftest.$ac_objext conftest$ac_exeext
21864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21865 (eval $ac_link) 2>conftest.er1
21867 grep -v '^ *+' conftest.er1 >conftest.err
21869 cat conftest.err >&5
21870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21871 (exit $ac_status); } &&
21872 { ac_try='test -z "$ac_c_werror_flag"
21873 || test ! -s conftest.err'
21874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21875 (eval $ac_try) 2>&5
21877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21878 (exit $ac_status); }; } &&
21879 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
21885 bash_cv_signal_vintage="svr3"
21887 echo "$as_me: failed program was:" >&5
21888 sed 's/^/| /' conftest.$ac_ext >&5
21890 bash_cv_signal_vintage="v7"
21893 rm -f conftest.err conftest.$ac_objext \
21894 conftest$ac_exeext conftest.$ac_ext
21897 rm -f conftest.err conftest.$ac_objext \
21898 conftest$ac_exeext conftest.$ac_ext
21901 rm -f conftest.err conftest.$ac_objext \
21902 conftest$ac_exeext conftest.$ac_ext
21906 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
21907 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
21908 if test "$bash_cv_signal_vintage" = "posix"; then
21909 cat >>confdefs.h <<\_ACEOF
21910 #define HAVE_POSIX_SIGNALS 1
21913 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
21914 cat >>confdefs.h <<\_ACEOF
21915 #define HAVE_BSD_SIGNALS 1
21918 elif test "$bash_cv_signal_vintage" = "svr3"; then
21919 cat >>confdefs.h <<\_ACEOF
21920 #define HAVE_USG_SIGHOLD 1
21925 echo "$as_me:$LINENO: checking for mode_t" >&5
21926 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
21927 if test "${ac_cv_type_mode_t+set}" = set; then
21928 echo $ECHO_N "(cached) $ECHO_C" >&6
21930 cat >conftest.$ac_ext <<_ACEOF
21933 cat confdefs.h >>conftest.$ac_ext
21934 cat >>conftest.$ac_ext <<_ACEOF
21935 /* end confdefs.h. */
21936 $ac_includes_default
21942 if (sizeof (mode_t))
21948 rm -f conftest.$ac_objext
21949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21950 (eval $ac_compile) 2>conftest.er1
21952 grep -v '^ *+' conftest.er1 >conftest.err
21954 cat conftest.err >&5
21955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21956 (exit $ac_status); } &&
21957 { ac_try='test -z "$ac_c_werror_flag"
21958 || test ! -s conftest.err'
21959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21960 (eval $ac_try) 2>&5
21962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21963 (exit $ac_status); }; } &&
21964 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
21970 ac_cv_type_mode_t=yes
21972 echo "$as_me: failed program was:" >&5
21973 sed 's/^/| /' conftest.$ac_ext >&5
21975 ac_cv_type_mode_t=no
21977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21979 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
21980 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
21981 if test $ac_cv_type_mode_t = yes; then
21985 cat >>confdefs.h <<_ACEOF
21991 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
21992 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
21993 if test "${ac_cv_type_uid_t+set}" = set; then
21994 echo $ECHO_N "(cached) $ECHO_C" >&6
21996 cat >conftest.$ac_ext <<_ACEOF
21999 cat confdefs.h >>conftest.$ac_ext
22000 cat >>conftest.$ac_ext <<_ACEOF
22001 /* end confdefs.h. */
22002 #include <sys/types.h>
22005 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22006 $EGREP "uid_t" >/dev/null 2>&1; then
22007 ac_cv_type_uid_t=yes
22009 ac_cv_type_uid_t=no
22014 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
22015 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
22016 if test $ac_cv_type_uid_t = no; then
22018 cat >>confdefs.h <<\_ACEOF
22023 cat >>confdefs.h <<\_ACEOF
22029 echo "$as_me:$LINENO: checking for size_t" >&5
22030 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
22031 if test "${ac_cv_type_size_t+set}" = set; then
22032 echo $ECHO_N "(cached) $ECHO_C" >&6
22034 cat >conftest.$ac_ext <<_ACEOF
22037 cat confdefs.h >>conftest.$ac_ext
22038 cat >>conftest.$ac_ext <<_ACEOF
22039 /* end confdefs.h. */
22040 $ac_includes_default
22046 if (sizeof (size_t))
22052 rm -f conftest.$ac_objext
22053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22054 (eval $ac_compile) 2>conftest.er1
22056 grep -v '^ *+' conftest.er1 >conftest.err
22058 cat conftest.err >&5
22059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22060 (exit $ac_status); } &&
22061 { ac_try='test -z "$ac_c_werror_flag"
22062 || test ! -s conftest.err'
22063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22064 (eval $ac_try) 2>&5
22066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22067 (exit $ac_status); }; } &&
22068 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
22074 ac_cv_type_size_t=yes
22076 echo "$as_me: failed program was:" >&5
22077 sed 's/^/| /' conftest.$ac_ext >&5
22079 ac_cv_type_size_t=no
22081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22083 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22084 echo "${ECHO_T}$ac_cv_type_size_t" >&6
22085 if test $ac_cv_type_size_t = yes; then
22089 cat >>confdefs.h <<_ACEOF
22090 #define size_t unsigned
22095 echo "$as_me:$LINENO: checking for pid_t" >&5
22096 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
22097 if test "${ac_cv_type_pid_t+set}" = set; then
22098 echo $ECHO_N "(cached) $ECHO_C" >&6
22100 cat >conftest.$ac_ext <<_ACEOF
22103 cat confdefs.h >>conftest.$ac_ext
22104 cat >>conftest.$ac_ext <<_ACEOF
22105 /* end confdefs.h. */
22106 $ac_includes_default
22112 if (sizeof (pid_t))
22118 rm -f conftest.$ac_objext
22119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22120 (eval $ac_compile) 2>conftest.er1
22122 grep -v '^ *+' conftest.er1 >conftest.err
22124 cat conftest.err >&5
22125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22126 (exit $ac_status); } &&
22127 { ac_try='test -z "$ac_c_werror_flag"
22128 || test ! -s conftest.err'
22129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22130 (eval $ac_try) 2>&5
22132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22133 (exit $ac_status); }; } &&
22134 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
22140 ac_cv_type_pid_t=yes
22142 echo "$as_me: failed program was:" >&5
22143 sed 's/^/| /' conftest.$ac_ext >&5
22145 ac_cv_type_pid_t=no
22147 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22149 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22150 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
22151 if test $ac_cv_type_pid_t = yes; then
22155 cat >>confdefs.h <<_ACEOF
22161 echo "$as_me:$LINENO: checking for off_t" >&5
22162 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
22163 if test "${ac_cv_type_off_t+set}" = set; then
22164 echo $ECHO_N "(cached) $ECHO_C" >&6
22166 cat >conftest.$ac_ext <<_ACEOF
22169 cat confdefs.h >>conftest.$ac_ext
22170 cat >>conftest.$ac_ext <<_ACEOF
22171 /* end confdefs.h. */
22172 $ac_includes_default
22178 if (sizeof (off_t))
22184 rm -f conftest.$ac_objext
22185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22186 (eval $ac_compile) 2>conftest.er1
22188 grep -v '^ *+' conftest.er1 >conftest.err
22190 cat conftest.err >&5
22191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22192 (exit $ac_status); } &&
22193 { ac_try='test -z "$ac_c_werror_flag"
22194 || test ! -s conftest.err'
22195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22196 (eval $ac_try) 2>&5
22198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22199 (exit $ac_status); }; } &&
22200 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
22206 ac_cv_type_off_t=yes
22208 echo "$as_me: failed program was:" >&5
22209 sed 's/^/| /' conftest.$ac_ext >&5
22211 ac_cv_type_off_t=no
22213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22215 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
22216 echo "${ECHO_T}$ac_cv_type_off_t" >&6
22217 if test $ac_cv_type_off_t = yes; then
22221 cat >>confdefs.h <<_ACEOF
22227 echo "$as_me:$LINENO: checking for ino_t" >&5
22228 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
22229 if test "${ac_cv_type_ino_t+set}" = set; then
22230 echo $ECHO_N "(cached) $ECHO_C" >&6
22232 cat >conftest.$ac_ext <<_ACEOF
22235 cat confdefs.h >>conftest.$ac_ext
22236 cat >>conftest.$ac_ext <<_ACEOF
22237 /* end confdefs.h. */
22238 $ac_includes_default
22244 if (sizeof (ino_t))
22250 rm -f conftest.$ac_objext
22251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22252 (eval $ac_compile) 2>conftest.er1
22254 grep -v '^ *+' conftest.er1 >conftest.err
22256 cat conftest.err >&5
22257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22258 (exit $ac_status); } &&
22259 { ac_try='test -z "$ac_c_werror_flag"
22260 || test ! -s conftest.err'
22261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22262 (eval $ac_try) 2>&5
22264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22265 (exit $ac_status); }; } &&
22266 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
22272 ac_cv_type_ino_t=yes
22274 echo "$as_me: failed program was:" >&5
22275 sed 's/^/| /' conftest.$ac_ext >&5
22277 ac_cv_type_ino_t=no
22279 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22281 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
22282 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
22283 if test $ac_cv_type_ino_t = yes; then
22287 cat >>confdefs.h <<_ACEOF
22288 #define ino_t unsigned long
22293 echo "$as_me:$LINENO: checking for dev_t" >&5
22294 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
22295 if test "${ac_cv_type_dev_t+set}" = set; then
22296 echo $ECHO_N "(cached) $ECHO_C" >&6
22298 cat >conftest.$ac_ext <<_ACEOF
22301 cat confdefs.h >>conftest.$ac_ext
22302 cat >>conftest.$ac_ext <<_ACEOF
22303 /* end confdefs.h. */
22304 $ac_includes_default
22310 if (sizeof (dev_t))
22316 rm -f conftest.$ac_objext
22317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22318 (eval $ac_compile) 2>conftest.er1
22320 grep -v '^ *+' conftest.er1 >conftest.err
22322 cat conftest.err >&5
22323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22324 (exit $ac_status); } &&
22325 { ac_try='test -z "$ac_c_werror_flag"
22326 || test ! -s conftest.err'
22327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22328 (eval $ac_try) 2>&5
22330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22331 (exit $ac_status); }; } &&
22332 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
22338 ac_cv_type_dev_t=yes
22340 echo "$as_me: failed program was:" >&5
22341 sed 's/^/| /' conftest.$ac_ext >&5
22343 ac_cv_type_dev_t=no
22345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22347 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
22348 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
22349 if test $ac_cv_type_dev_t = yes; then
22353 cat >>confdefs.h <<_ACEOF
22354 #define dev_t unsigned long
22359 echo "$as_me:$LINENO: checking for daddr_t" >&5
22360 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
22361 if test "${ac_cv_type_daddr_t+set}" = set; then
22362 echo $ECHO_N "(cached) $ECHO_C" >&6
22364 cat >conftest.$ac_ext <<_ACEOF
22367 cat confdefs.h >>conftest.$ac_ext
22368 cat >>conftest.$ac_ext <<_ACEOF
22369 /* end confdefs.h. */
22370 $ac_includes_default
22376 if (sizeof (daddr_t))
22382 rm -f conftest.$ac_objext
22383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22384 (eval $ac_compile) 2>conftest.er1
22386 grep -v '^ *+' conftest.er1 >conftest.err
22388 cat conftest.err >&5
22389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22390 (exit $ac_status); } &&
22391 { ac_try='test -z "$ac_c_werror_flag"
22392 || test ! -s conftest.err'
22393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22394 (eval $ac_try) 2>&5
22396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22397 (exit $ac_status); }; } &&
22398 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
22404 ac_cv_type_daddr_t=yes
22406 echo "$as_me: failed program was:" >&5
22407 sed 's/^/| /' conftest.$ac_ext >&5
22409 ac_cv_type_daddr_t=no
22411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22413 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
22414 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
22415 if test $ac_cv_type_daddr_t = yes; then
22419 cat >>confdefs.h <<_ACEOF
22420 #define daddr_t long
22425 echo "$as_me:$LINENO: checking for major_t" >&5
22426 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
22427 if test "${ac_cv_type_major_t+set}" = set; then
22428 echo $ECHO_N "(cached) $ECHO_C" >&6
22430 cat >conftest.$ac_ext <<_ACEOF
22433 cat confdefs.h >>conftest.$ac_ext
22434 cat >>conftest.$ac_ext <<_ACEOF
22435 /* end confdefs.h. */
22436 $ac_includes_default
22442 if (sizeof (major_t))
22448 rm -f conftest.$ac_objext
22449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22450 (eval $ac_compile) 2>conftest.er1
22452 grep -v '^ *+' conftest.er1 >conftest.err
22454 cat conftest.err >&5
22455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22456 (exit $ac_status); } &&
22457 { ac_try='test -z "$ac_c_werror_flag"
22458 || test ! -s conftest.err'
22459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22460 (eval $ac_try) 2>&5
22462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22463 (exit $ac_status); }; } &&
22464 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
22470 ac_cv_type_major_t=yes
22472 echo "$as_me: failed program was:" >&5
22473 sed 's/^/| /' conftest.$ac_ext >&5
22475 ac_cv_type_major_t=no
22477 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22479 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
22480 echo "${ECHO_T}$ac_cv_type_major_t" >&6
22481 if test $ac_cv_type_major_t = yes; then
22485 cat >>confdefs.h <<_ACEOF
22486 #define major_t int
22491 echo "$as_me:$LINENO: checking for minor_t" >&5
22492 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
22493 if test "${ac_cv_type_minor_t+set}" = set; then
22494 echo $ECHO_N "(cached) $ECHO_C" >&6
22496 cat >conftest.$ac_ext <<_ACEOF
22499 cat confdefs.h >>conftest.$ac_ext
22500 cat >>conftest.$ac_ext <<_ACEOF
22501 /* end confdefs.h. */
22502 $ac_includes_default
22508 if (sizeof (minor_t))
22514 rm -f conftest.$ac_objext
22515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22516 (eval $ac_compile) 2>conftest.er1
22518 grep -v '^ *+' conftest.er1 >conftest.err
22520 cat conftest.err >&5
22521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22522 (exit $ac_status); } &&
22523 { ac_try='test -z "$ac_c_werror_flag"
22524 || test ! -s conftest.err'
22525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22526 (eval $ac_try) 2>&5
22528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22529 (exit $ac_status); }; } &&
22530 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
22536 ac_cv_type_minor_t=yes
22538 echo "$as_me: failed program was:" >&5
22539 sed 's/^/| /' conftest.$ac_ext >&5
22541 ac_cv_type_minor_t=no
22543 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22545 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
22546 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
22547 if test $ac_cv_type_minor_t = yes; then
22551 cat >>confdefs.h <<_ACEOF
22552 #define minor_t int
22557 echo "$as_me:$LINENO: checking for ssize_t" >&5
22558 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
22559 if test "${ac_cv_type_ssize_t+set}" = set; then
22560 echo $ECHO_N "(cached) $ECHO_C" >&6
22562 cat >conftest.$ac_ext <<_ACEOF
22565 cat confdefs.h >>conftest.$ac_ext
22566 cat >>conftest.$ac_ext <<_ACEOF
22567 /* end confdefs.h. */
22568 $ac_includes_default
22574 if (sizeof (ssize_t))
22580 rm -f conftest.$ac_objext
22581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22582 (eval $ac_compile) 2>conftest.er1
22584 grep -v '^ *+' conftest.er1 >conftest.err
22586 cat conftest.err >&5
22587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22588 (exit $ac_status); } &&
22589 { ac_try='test -z "$ac_c_werror_flag"
22590 || test ! -s conftest.err'
22591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22592 (eval $ac_try) 2>&5
22594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22595 (exit $ac_status); }; } &&
22596 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
22602 ac_cv_type_ssize_t=yes
22604 echo "$as_me: failed program was:" >&5
22605 sed 's/^/| /' conftest.$ac_ext >&5
22607 ac_cv_type_ssize_t=no
22609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22611 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
22612 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
22613 if test $ac_cv_type_ssize_t = yes; then
22617 cat >>confdefs.h <<_ACEOF
22618 #define ssize_t int
22623 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
22624 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
22625 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
22626 echo $ECHO_N "(cached) $ECHO_C" >&6
22628 cat >conftest.$ac_ext <<_ACEOF
22631 cat confdefs.h >>conftest.$ac_ext
22632 cat >>conftest.$ac_ext <<_ACEOF
22633 /* end confdefs.h. */
22634 $ac_includes_default
22638 static struct stat ac_aggr;
22639 if (ac_aggr.st_blocks)
22645 rm -f conftest.$ac_objext
22646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22647 (eval $ac_compile) 2>conftest.er1
22649 grep -v '^ *+' conftest.er1 >conftest.err
22651 cat conftest.err >&5
22652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22653 (exit $ac_status); } &&
22654 { ac_try='test -z "$ac_c_werror_flag"
22655 || test ! -s conftest.err'
22656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22657 (eval $ac_try) 2>&5
22659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22660 (exit $ac_status); }; } &&
22661 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
22667 ac_cv_member_struct_stat_st_blocks=yes
22669 echo "$as_me: failed program was:" >&5
22670 sed 's/^/| /' conftest.$ac_ext >&5
22672 cat >conftest.$ac_ext <<_ACEOF
22675 cat confdefs.h >>conftest.$ac_ext
22676 cat >>conftest.$ac_ext <<_ACEOF
22677 /* end confdefs.h. */
22678 $ac_includes_default
22682 static struct stat ac_aggr;
22683 if (sizeof ac_aggr.st_blocks)
22689 rm -f conftest.$ac_objext
22690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22691 (eval $ac_compile) 2>conftest.er1
22693 grep -v '^ *+' conftest.er1 >conftest.err
22695 cat conftest.err >&5
22696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22697 (exit $ac_status); } &&
22698 { ac_try='test -z "$ac_c_werror_flag"
22699 || test ! -s conftest.err'
22700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22701 (eval $ac_try) 2>&5
22703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22704 (exit $ac_status); }; } &&
22705 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
22711 ac_cv_member_struct_stat_st_blocks=yes
22713 echo "$as_me: failed program was:" >&5
22714 sed 's/^/| /' conftest.$ac_ext >&5
22716 ac_cv_member_struct_stat_st_blocks=no
22718 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22720 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22722 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
22723 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
22724 if test $ac_cv_member_struct_stat_st_blocks = yes; then
22726 cat >>confdefs.h <<_ACEOF
22727 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
22731 cat >>confdefs.h <<\_ACEOF
22732 #define HAVE_ST_BLOCKS 1
22737 "fileblocks.$ac_objext" | \
22738 *" fileblocks.$ac_objext" | \
22739 "fileblocks.$ac_objext "* | \
22740 *" fileblocks.$ac_objext "* ) ;;
22741 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
22748 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
22749 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
22750 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
22751 echo $ECHO_N "(cached) $ECHO_C" >&6
22753 cat >conftest.$ac_ext <<_ACEOF
22756 cat confdefs.h >>conftest.$ac_ext
22757 cat >>conftest.$ac_ext <<_ACEOF
22758 /* end confdefs.h. */
22759 $ac_includes_default
22763 static struct stat ac_aggr;
22764 if (ac_aggr.st_rdev)
22770 rm -f conftest.$ac_objext
22771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22772 (eval $ac_compile) 2>conftest.er1
22774 grep -v '^ *+' conftest.er1 >conftest.err
22776 cat conftest.err >&5
22777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22778 (exit $ac_status); } &&
22779 { ac_try='test -z "$ac_c_werror_flag"
22780 || test ! -s conftest.err'
22781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22782 (eval $ac_try) 2>&5
22784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22785 (exit $ac_status); }; } &&
22786 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
22792 ac_cv_member_struct_stat_st_rdev=yes
22794 echo "$as_me: failed program was:" >&5
22795 sed 's/^/| /' conftest.$ac_ext >&5
22797 cat >conftest.$ac_ext <<_ACEOF
22800 cat confdefs.h >>conftest.$ac_ext
22801 cat >>conftest.$ac_ext <<_ACEOF
22802 /* end confdefs.h. */
22803 $ac_includes_default
22807 static struct stat ac_aggr;
22808 if (sizeof ac_aggr.st_rdev)
22814 rm -f conftest.$ac_objext
22815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22816 (eval $ac_compile) 2>conftest.er1
22818 grep -v '^ *+' conftest.er1 >conftest.err
22820 cat conftest.err >&5
22821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22822 (exit $ac_status); } &&
22823 { ac_try='test -z "$ac_c_werror_flag"
22824 || test ! -s conftest.err'
22825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22826 (eval $ac_try) 2>&5
22828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22829 (exit $ac_status); }; } &&
22830 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
22836 ac_cv_member_struct_stat_st_rdev=yes
22838 echo "$as_me: failed program was:" >&5
22839 sed 's/^/| /' conftest.$ac_ext >&5
22841 ac_cv_member_struct_stat_st_rdev=no
22843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22847 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
22848 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
22849 if test $ac_cv_member_struct_stat_st_rdev = yes; then
22851 cat >>confdefs.h <<_ACEOF
22852 #define HAVE_STRUCT_STAT_ST_RDEV 1
22856 cat >>confdefs.h <<\_ACEOF
22857 #define HAVE_ST_RDEV 1
22863 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
22864 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
22865 if test "${ac_cv_struct_tm+set}" = set; then
22866 echo $ECHO_N "(cached) $ECHO_C" >&6
22868 cat >conftest.$ac_ext <<_ACEOF
22871 cat confdefs.h >>conftest.$ac_ext
22872 cat >>conftest.$ac_ext <<_ACEOF
22873 /* end confdefs.h. */
22874 #include <sys/types.h>
22880 struct tm *tp; tp->tm_sec;
22885 rm -f conftest.$ac_objext
22886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22887 (eval $ac_compile) 2>conftest.er1
22889 grep -v '^ *+' conftest.er1 >conftest.err
22891 cat conftest.err >&5
22892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22893 (exit $ac_status); } &&
22894 { ac_try='test -z "$ac_c_werror_flag"
22895 || test ! -s conftest.err'
22896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22897 (eval $ac_try) 2>&5
22899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22900 (exit $ac_status); }; } &&
22901 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
22907 ac_cv_struct_tm=time.h
22909 echo "$as_me: failed program was:" >&5
22910 sed 's/^/| /' conftest.$ac_ext >&5
22912 ac_cv_struct_tm=sys/time.h
22914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22916 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
22917 echo "${ECHO_T}$ac_cv_struct_tm" >&6
22918 if test $ac_cv_struct_tm = sys/time.h; then
22920 cat >>confdefs.h <<\_ACEOF
22921 #define TM_IN_SYS_TIME 1
22926 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22927 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
22928 if test "${ac_cv_c_const+set}" = set; then
22929 echo $ECHO_N "(cached) $ECHO_C" >&6
22931 cat >conftest.$ac_ext <<_ACEOF
22934 cat confdefs.h >>conftest.$ac_ext
22935 cat >>conftest.$ac_ext <<_ACEOF
22936 /* end confdefs.h. */
22941 /* FIXME: Include the comments suggested by Paul. */
22942 #ifndef __cplusplus
22943 /* Ultrix mips cc rejects this. */
22944 typedef int charset[2];
22946 /* SunOS 4.1.1 cc rejects this. */
22947 char const *const *ccp;
22949 /* NEC SVR4.0.2 mips cc rejects this. */
22950 struct point {int x, y;};
22951 static struct point const zero = {0,0};
22952 /* AIX XL C 1.02.0.0 rejects this.
22953 It does not let you subtract one const X* pointer from another in
22954 an arm of an if-expression whose if-part is not a constant
22956 const char *g = "string";
22957 ccp = &g + (g ? g-g : 0);
22958 /* HPUX 7.0 cc rejects these. */
22961 ccp = (char const *const *) p;
22962 { /* SCO 3.2v4 cc rejects this. */
22964 char const *s = 0 ? (char *) 0 : (char const *) 0;
22968 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22969 int x[] = {25, 17};
22970 const int *foo = &x[0];
22973 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22974 typedef const int *iptr;
22978 { /* AIX XL C 1.02.0.0 rejects this saying
22979 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22980 struct s { int j; const int *ap[3]; };
22981 struct s *b; b->j = 5;
22983 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22984 const int foo = 10;
22992 rm -f conftest.$ac_objext
22993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22994 (eval $ac_compile) 2>conftest.er1
22996 grep -v '^ *+' conftest.er1 >conftest.err
22998 cat conftest.err >&5
22999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23000 (exit $ac_status); } &&
23001 { ac_try='test -z "$ac_c_werror_flag"
23002 || test ! -s conftest.err'
23003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23004 (eval $ac_try) 2>&5
23006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23007 (exit $ac_status); }; } &&
23008 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
23016 echo "$as_me: failed program was:" >&5
23017 sed 's/^/| /' conftest.$ac_ext >&5
23021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23023 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23024 echo "${ECHO_T}$ac_cv_c_const" >&6
23025 if test $ac_cv_c_const = no; then
23027 cat >>confdefs.h <<\_ACEOF
23035 echo "$as_me:$LINENO: checking for char" >&5
23036 echo $ECHO_N "checking for char... $ECHO_C" >&6
23037 if test "${ac_cv_type_char+set}" = set; then
23038 echo $ECHO_N "(cached) $ECHO_C" >&6
23040 cat >conftest.$ac_ext <<_ACEOF
23043 cat confdefs.h >>conftest.$ac_ext
23044 cat >>conftest.$ac_ext <<_ACEOF
23045 /* end confdefs.h. */
23046 $ac_includes_default
23058 rm -f conftest.$ac_objext
23059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23060 (eval $ac_compile) 2>conftest.er1
23062 grep -v '^ *+' conftest.er1 >conftest.err
23064 cat conftest.err >&5
23065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23066 (exit $ac_status); } &&
23067 { ac_try='test -z "$ac_c_werror_flag"
23068 || test ! -s conftest.err'
23069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23070 (eval $ac_try) 2>&5
23072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23073 (exit $ac_status); }; } &&
23074 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
23080 ac_cv_type_char=yes
23082 echo "$as_me: failed program was:" >&5
23083 sed 's/^/| /' conftest.$ac_ext >&5
23087 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23089 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
23090 echo "${ECHO_T}$ac_cv_type_char" >&6
23092 echo "$as_me:$LINENO: checking size of char" >&5
23093 echo $ECHO_N "checking size of char... $ECHO_C" >&6
23094 if test "${ac_cv_sizeof_char+set}" = set; then
23095 echo $ECHO_N "(cached) $ECHO_C" >&6
23097 if test "$ac_cv_type_char" = yes; then
23098 # The cast to unsigned long works around a bug in the HP C Compiler
23099 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23100 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23101 # This bug is HP SR number 8606223364.
23102 if test "$cross_compiling" = yes; then
23103 # Depending upon the size, compute the lo and hi bounds.
23104 cat >conftest.$ac_ext <<_ACEOF
23107 cat confdefs.h >>conftest.$ac_ext
23108 cat >>conftest.$ac_ext <<_ACEOF
23109 /* end confdefs.h. */
23110 $ac_includes_default
23114 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
23121 rm -f conftest.$ac_objext
23122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23123 (eval $ac_compile) 2>conftest.er1
23125 grep -v '^ *+' conftest.er1 >conftest.err
23127 cat conftest.err >&5
23128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23129 (exit $ac_status); } &&
23130 { ac_try='test -z "$ac_c_werror_flag"
23131 || test ! -s conftest.err'
23132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23133 (eval $ac_try) 2>&5
23135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23136 (exit $ac_status); }; } &&
23137 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
23145 cat >conftest.$ac_ext <<_ACEOF
23148 cat confdefs.h >>conftest.$ac_ext
23149 cat >>conftest.$ac_ext <<_ACEOF
23150 /* end confdefs.h. */
23151 $ac_includes_default
23155 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
23162 rm -f conftest.$ac_objext
23163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23164 (eval $ac_compile) 2>conftest.er1
23166 grep -v '^ *+' conftest.er1 >conftest.err
23168 cat conftest.err >&5
23169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23170 (exit $ac_status); } &&
23171 { ac_try='test -z "$ac_c_werror_flag"
23172 || test ! -s conftest.err'
23173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23174 (eval $ac_try) 2>&5
23176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23177 (exit $ac_status); }; } &&
23178 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
23184 ac_hi=$ac_mid; break
23186 echo "$as_me: failed program was:" >&5
23187 sed 's/^/| /' conftest.$ac_ext >&5
23189 ac_lo=`expr $ac_mid + 1`
23190 if test $ac_lo -le $ac_mid; then
23194 ac_mid=`expr 2 '*' $ac_mid + 1`
23196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23199 echo "$as_me: failed program was:" >&5
23200 sed 's/^/| /' conftest.$ac_ext >&5
23202 cat >conftest.$ac_ext <<_ACEOF
23205 cat confdefs.h >>conftest.$ac_ext
23206 cat >>conftest.$ac_ext <<_ACEOF
23207 /* end confdefs.h. */
23208 $ac_includes_default
23212 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
23219 rm -f conftest.$ac_objext
23220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23221 (eval $ac_compile) 2>conftest.er1
23223 grep -v '^ *+' conftest.er1 >conftest.err
23225 cat conftest.err >&5
23226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23227 (exit $ac_status); } &&
23228 { ac_try='test -z "$ac_c_werror_flag"
23229 || test ! -s conftest.err'
23230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23231 (eval $ac_try) 2>&5
23233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23234 (exit $ac_status); }; } &&
23235 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
23243 cat >conftest.$ac_ext <<_ACEOF
23246 cat confdefs.h >>conftest.$ac_ext
23247 cat >>conftest.$ac_ext <<_ACEOF
23248 /* end confdefs.h. */
23249 $ac_includes_default
23253 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
23260 rm -f conftest.$ac_objext
23261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23262 (eval $ac_compile) 2>conftest.er1
23264 grep -v '^ *+' conftest.er1 >conftest.err
23266 cat conftest.err >&5
23267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23268 (exit $ac_status); } &&
23269 { ac_try='test -z "$ac_c_werror_flag"
23270 || test ! -s conftest.err'
23271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23272 (eval $ac_try) 2>&5
23274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23275 (exit $ac_status); }; } &&
23276 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
23282 ac_lo=$ac_mid; break
23284 echo "$as_me: failed program was:" >&5
23285 sed 's/^/| /' conftest.$ac_ext >&5
23287 ac_hi=`expr '(' $ac_mid ')' - 1`
23288 if test $ac_mid -le $ac_hi; then
23292 ac_mid=`expr 2 '*' $ac_mid`
23294 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23297 echo "$as_me: failed program was:" >&5
23298 sed 's/^/| /' conftest.$ac_ext >&5
23302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23304 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23305 # Binary search between lo and hi bounds.
23306 while test "x$ac_lo" != "x$ac_hi"; do
23307 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23308 cat >conftest.$ac_ext <<_ACEOF
23311 cat confdefs.h >>conftest.$ac_ext
23312 cat >>conftest.$ac_ext <<_ACEOF
23313 /* end confdefs.h. */
23314 $ac_includes_default
23318 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
23325 rm -f conftest.$ac_objext
23326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23327 (eval $ac_compile) 2>conftest.er1
23329 grep -v '^ *+' conftest.er1 >conftest.err
23331 cat conftest.err >&5
23332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23333 (exit $ac_status); } &&
23334 { ac_try='test -z "$ac_c_werror_flag"
23335 || test ! -s conftest.err'
23336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23337 (eval $ac_try) 2>&5
23339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23340 (exit $ac_status); }; } &&
23341 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
23349 echo "$as_me: failed program was:" >&5
23350 sed 's/^/| /' conftest.$ac_ext >&5
23352 ac_lo=`expr '(' $ac_mid ')' + 1`
23354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23357 ?*) ac_cv_sizeof_char=$ac_lo;;
23358 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
23359 See \`config.log' for more details." >&5
23360 echo "$as_me: error: cannot compute sizeof (char), 77
23361 See \`config.log' for more details." >&2;}
23362 { (exit 1); exit 1; }; } ;;
23365 if test "$cross_compiling" = yes; then
23366 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23367 See \`config.log' for more details." >&5
23368 echo "$as_me: error: cannot run test program while cross compiling
23369 See \`config.log' for more details." >&2;}
23370 { (exit 1); exit 1; }; }
23372 cat >conftest.$ac_ext <<_ACEOF
23375 cat confdefs.h >>conftest.$ac_ext
23376 cat >>conftest.$ac_ext <<_ACEOF
23377 /* end confdefs.h. */
23378 $ac_includes_default
23379 long longval () { return (long) (sizeof (char)); }
23380 unsigned long ulongval () { return (long) (sizeof (char)); }
23382 #include <stdlib.h>
23387 FILE *f = fopen ("conftest.val", "w");
23390 if (((long) (sizeof (char))) < 0)
23392 long i = longval ();
23393 if (i != ((long) (sizeof (char))))
23395 fprintf (f, "%ld\n", i);
23399 unsigned long i = ulongval ();
23400 if (i != ((long) (sizeof (char))))
23402 fprintf (f, "%lu\n", i);
23404 exit (ferror (f) || fclose (f) != 0);
23410 rm -f conftest$ac_exeext
23411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23412 (eval $ac_link) 2>&5
23414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23415 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23417 (eval $ac_try) 2>&5
23419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23420 (exit $ac_status); }; }; then
23421 ac_cv_sizeof_char=`cat conftest.val`
23423 echo "$as_me: program exited with status $ac_status" >&5
23424 echo "$as_me: failed program was:" >&5
23425 sed 's/^/| /' conftest.$ac_ext >&5
23427 ( exit $ac_status )
23428 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
23429 See \`config.log' for more details." >&5
23430 echo "$as_me: error: cannot compute sizeof (char), 77
23431 See \`config.log' for more details." >&2;}
23432 { (exit 1); exit 1; }; }
23434 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23439 ac_cv_sizeof_char=0
23442 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
23443 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
23444 cat >>confdefs.h <<_ACEOF
23445 #define SIZEOF_CHAR $ac_cv_sizeof_char
23449 echo "$as_me:$LINENO: checking for short int" >&5
23450 echo $ECHO_N "checking for short int... $ECHO_C" >&6
23451 if test "${ac_cv_type_short_int+set}" = set; then
23452 echo $ECHO_N "(cached) $ECHO_C" >&6
23454 cat >conftest.$ac_ext <<_ACEOF
23457 cat confdefs.h >>conftest.$ac_ext
23458 cat >>conftest.$ac_ext <<_ACEOF
23459 /* end confdefs.h. */
23460 $ac_includes_default
23464 if ((short int *) 0)
23466 if (sizeof (short int))
23472 rm -f conftest.$ac_objext
23473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23474 (eval $ac_compile) 2>conftest.er1
23476 grep -v '^ *+' conftest.er1 >conftest.err
23478 cat conftest.err >&5
23479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23480 (exit $ac_status); } &&
23481 { ac_try='test -z "$ac_c_werror_flag"
23482 || test ! -s conftest.err'
23483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23484 (eval $ac_try) 2>&5
23486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23487 (exit $ac_status); }; } &&
23488 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
23494 ac_cv_type_short_int=yes
23496 echo "$as_me: failed program was:" >&5
23497 sed 's/^/| /' conftest.$ac_ext >&5
23499 ac_cv_type_short_int=no
23501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23503 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
23504 echo "${ECHO_T}$ac_cv_type_short_int" >&6
23506 echo "$as_me:$LINENO: checking size of short int" >&5
23507 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
23508 if test "${ac_cv_sizeof_short_int+set}" = set; then
23509 echo $ECHO_N "(cached) $ECHO_C" >&6
23511 if test "$ac_cv_type_short_int" = yes; then
23512 # The cast to unsigned long works around a bug in the HP C Compiler
23513 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23514 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23515 # This bug is HP SR number 8606223364.
23516 if test "$cross_compiling" = yes; then
23517 # Depending upon the size, compute the lo and hi bounds.
23518 cat >conftest.$ac_ext <<_ACEOF
23521 cat confdefs.h >>conftest.$ac_ext
23522 cat >>conftest.$ac_ext <<_ACEOF
23523 /* end confdefs.h. */
23524 $ac_includes_default
23528 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
23535 rm -f conftest.$ac_objext
23536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23537 (eval $ac_compile) 2>conftest.er1
23539 grep -v '^ *+' conftest.er1 >conftest.err
23541 cat conftest.err >&5
23542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23543 (exit $ac_status); } &&
23544 { ac_try='test -z "$ac_c_werror_flag"
23545 || test ! -s conftest.err'
23546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23547 (eval $ac_try) 2>&5
23549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23550 (exit $ac_status); }; } &&
23551 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
23559 cat >conftest.$ac_ext <<_ACEOF
23562 cat confdefs.h >>conftest.$ac_ext
23563 cat >>conftest.$ac_ext <<_ACEOF
23564 /* end confdefs.h. */
23565 $ac_includes_default
23569 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
23576 rm -f conftest.$ac_objext
23577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23578 (eval $ac_compile) 2>conftest.er1
23580 grep -v '^ *+' conftest.er1 >conftest.err
23582 cat conftest.err >&5
23583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23584 (exit $ac_status); } &&
23585 { ac_try='test -z "$ac_c_werror_flag"
23586 || test ! -s conftest.err'
23587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23588 (eval $ac_try) 2>&5
23590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23591 (exit $ac_status); }; } &&
23592 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
23598 ac_hi=$ac_mid; break
23600 echo "$as_me: failed program was:" >&5
23601 sed 's/^/| /' conftest.$ac_ext >&5
23603 ac_lo=`expr $ac_mid + 1`
23604 if test $ac_lo -le $ac_mid; then
23608 ac_mid=`expr 2 '*' $ac_mid + 1`
23610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23613 echo "$as_me: failed program was:" >&5
23614 sed 's/^/| /' conftest.$ac_ext >&5
23616 cat >conftest.$ac_ext <<_ACEOF
23619 cat confdefs.h >>conftest.$ac_ext
23620 cat >>conftest.$ac_ext <<_ACEOF
23621 /* end confdefs.h. */
23622 $ac_includes_default
23626 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
23633 rm -f conftest.$ac_objext
23634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23635 (eval $ac_compile) 2>conftest.er1
23637 grep -v '^ *+' conftest.er1 >conftest.err
23639 cat conftest.err >&5
23640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23641 (exit $ac_status); } &&
23642 { ac_try='test -z "$ac_c_werror_flag"
23643 || test ! -s conftest.err'
23644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23645 (eval $ac_try) 2>&5
23647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23648 (exit $ac_status); }; } &&
23649 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
23657 cat >conftest.$ac_ext <<_ACEOF
23660 cat confdefs.h >>conftest.$ac_ext
23661 cat >>conftest.$ac_ext <<_ACEOF
23662 /* end confdefs.h. */
23663 $ac_includes_default
23667 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
23674 rm -f conftest.$ac_objext
23675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23676 (eval $ac_compile) 2>conftest.er1
23678 grep -v '^ *+' conftest.er1 >conftest.err
23680 cat conftest.err >&5
23681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23682 (exit $ac_status); } &&
23683 { ac_try='test -z "$ac_c_werror_flag"
23684 || test ! -s conftest.err'
23685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23686 (eval $ac_try) 2>&5
23688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23689 (exit $ac_status); }; } &&
23690 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
23696 ac_lo=$ac_mid; break
23698 echo "$as_me: failed program was:" >&5
23699 sed 's/^/| /' conftest.$ac_ext >&5
23701 ac_hi=`expr '(' $ac_mid ')' - 1`
23702 if test $ac_mid -le $ac_hi; then
23706 ac_mid=`expr 2 '*' $ac_mid`
23708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23711 echo "$as_me: failed program was:" >&5
23712 sed 's/^/| /' conftest.$ac_ext >&5
23716 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23718 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23719 # Binary search between lo and hi bounds.
23720 while test "x$ac_lo" != "x$ac_hi"; do
23721 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23722 cat >conftest.$ac_ext <<_ACEOF
23725 cat confdefs.h >>conftest.$ac_ext
23726 cat >>conftest.$ac_ext <<_ACEOF
23727 /* end confdefs.h. */
23728 $ac_includes_default
23732 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
23739 rm -f conftest.$ac_objext
23740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23741 (eval $ac_compile) 2>conftest.er1
23743 grep -v '^ *+' conftest.er1 >conftest.err
23745 cat conftest.err >&5
23746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23747 (exit $ac_status); } &&
23748 { ac_try='test -z "$ac_c_werror_flag"
23749 || test ! -s conftest.err'
23750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23751 (eval $ac_try) 2>&5
23753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23754 (exit $ac_status); }; } &&
23755 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
23763 echo "$as_me: failed program was:" >&5
23764 sed 's/^/| /' conftest.$ac_ext >&5
23766 ac_lo=`expr '(' $ac_mid ')' + 1`
23768 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23771 ?*) ac_cv_sizeof_short_int=$ac_lo;;
23772 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
23773 See \`config.log' for more details." >&5
23774 echo "$as_me: error: cannot compute sizeof (short int), 77
23775 See \`config.log' for more details." >&2;}
23776 { (exit 1); exit 1; }; } ;;
23779 if test "$cross_compiling" = yes; then
23780 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23781 See \`config.log' for more details." >&5
23782 echo "$as_me: error: cannot run test program while cross compiling
23783 See \`config.log' for more details." >&2;}
23784 { (exit 1); exit 1; }; }
23786 cat >conftest.$ac_ext <<_ACEOF
23789 cat confdefs.h >>conftest.$ac_ext
23790 cat >>conftest.$ac_ext <<_ACEOF
23791 /* end confdefs.h. */
23792 $ac_includes_default
23793 long longval () { return (long) (sizeof (short int)); }
23794 unsigned long ulongval () { return (long) (sizeof (short int)); }
23796 #include <stdlib.h>
23801 FILE *f = fopen ("conftest.val", "w");
23804 if (((long) (sizeof (short int))) < 0)
23806 long i = longval ();
23807 if (i != ((long) (sizeof (short int))))
23809 fprintf (f, "%ld\n", i);
23813 unsigned long i = ulongval ();
23814 if (i != ((long) (sizeof (short int))))
23816 fprintf (f, "%lu\n", i);
23818 exit (ferror (f) || fclose (f) != 0);
23824 rm -f conftest$ac_exeext
23825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23826 (eval $ac_link) 2>&5
23828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23829 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23831 (eval $ac_try) 2>&5
23833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23834 (exit $ac_status); }; }; then
23835 ac_cv_sizeof_short_int=`cat conftest.val`
23837 echo "$as_me: program exited with status $ac_status" >&5
23838 echo "$as_me: failed program was:" >&5
23839 sed 's/^/| /' conftest.$ac_ext >&5
23841 ( exit $ac_status )
23842 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
23843 See \`config.log' for more details." >&5
23844 echo "$as_me: error: cannot compute sizeof (short int), 77
23845 See \`config.log' for more details." >&2;}
23846 { (exit 1); exit 1; }; }
23848 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23853 ac_cv_sizeof_short_int=0
23856 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
23857 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
23858 cat >>confdefs.h <<_ACEOF
23859 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
23863 echo "$as_me:$LINENO: checking for int" >&5
23864 echo $ECHO_N "checking for int... $ECHO_C" >&6
23865 if test "${ac_cv_type_int+set}" = set; then
23866 echo $ECHO_N "(cached) $ECHO_C" >&6
23868 cat >conftest.$ac_ext <<_ACEOF
23871 cat confdefs.h >>conftest.$ac_ext
23872 cat >>conftest.$ac_ext <<_ACEOF
23873 /* end confdefs.h. */
23874 $ac_includes_default
23886 rm -f conftest.$ac_objext
23887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23888 (eval $ac_compile) 2>conftest.er1
23890 grep -v '^ *+' conftest.er1 >conftest.err
23892 cat conftest.err >&5
23893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23894 (exit $ac_status); } &&
23895 { ac_try='test -z "$ac_c_werror_flag"
23896 || test ! -s conftest.err'
23897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23898 (eval $ac_try) 2>&5
23900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23901 (exit $ac_status); }; } &&
23902 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
23910 echo "$as_me: failed program was:" >&5
23911 sed 's/^/| /' conftest.$ac_ext >&5
23915 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23917 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
23918 echo "${ECHO_T}$ac_cv_type_int" >&6
23920 echo "$as_me:$LINENO: checking size of int" >&5
23921 echo $ECHO_N "checking size of int... $ECHO_C" >&6
23922 if test "${ac_cv_sizeof_int+set}" = set; then
23923 echo $ECHO_N "(cached) $ECHO_C" >&6
23925 if test "$ac_cv_type_int" = yes; then
23926 # The cast to unsigned long works around a bug in the HP C Compiler
23927 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23928 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23929 # This bug is HP SR number 8606223364.
23930 if test "$cross_compiling" = yes; then
23931 # Depending upon the size, compute the lo and hi bounds.
23932 cat >conftest.$ac_ext <<_ACEOF
23935 cat confdefs.h >>conftest.$ac_ext
23936 cat >>conftest.$ac_ext <<_ACEOF
23937 /* end confdefs.h. */
23938 $ac_includes_default
23942 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
23949 rm -f conftest.$ac_objext
23950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23951 (eval $ac_compile) 2>conftest.er1
23953 grep -v '^ *+' conftest.er1 >conftest.err
23955 cat conftest.err >&5
23956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23957 (exit $ac_status); } &&
23958 { ac_try='test -z "$ac_c_werror_flag"
23959 || test ! -s conftest.err'
23960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23961 (eval $ac_try) 2>&5
23963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23964 (exit $ac_status); }; } &&
23965 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
23973 cat >conftest.$ac_ext <<_ACEOF
23976 cat confdefs.h >>conftest.$ac_ext
23977 cat >>conftest.$ac_ext <<_ACEOF
23978 /* end confdefs.h. */
23979 $ac_includes_default
23983 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
23990 rm -f conftest.$ac_objext
23991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23992 (eval $ac_compile) 2>conftest.er1
23994 grep -v '^ *+' conftest.er1 >conftest.err
23996 cat conftest.err >&5
23997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23998 (exit $ac_status); } &&
23999 { ac_try='test -z "$ac_c_werror_flag"
24000 || test ! -s conftest.err'
24001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24002 (eval $ac_try) 2>&5
24004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24005 (exit $ac_status); }; } &&
24006 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
24012 ac_hi=$ac_mid; break
24014 echo "$as_me: failed program was:" >&5
24015 sed 's/^/| /' conftest.$ac_ext >&5
24017 ac_lo=`expr $ac_mid + 1`
24018 if test $ac_lo -le $ac_mid; then
24022 ac_mid=`expr 2 '*' $ac_mid + 1`
24024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24027 echo "$as_me: failed program was:" >&5
24028 sed 's/^/| /' conftest.$ac_ext >&5
24030 cat >conftest.$ac_ext <<_ACEOF
24033 cat confdefs.h >>conftest.$ac_ext
24034 cat >>conftest.$ac_ext <<_ACEOF
24035 /* end confdefs.h. */
24036 $ac_includes_default
24040 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
24047 rm -f conftest.$ac_objext
24048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24049 (eval $ac_compile) 2>conftest.er1
24051 grep -v '^ *+' conftest.er1 >conftest.err
24053 cat conftest.err >&5
24054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24055 (exit $ac_status); } &&
24056 { ac_try='test -z "$ac_c_werror_flag"
24057 || test ! -s conftest.err'
24058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24059 (eval $ac_try) 2>&5
24061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24062 (exit $ac_status); }; } &&
24063 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
24071 cat >conftest.$ac_ext <<_ACEOF
24074 cat confdefs.h >>conftest.$ac_ext
24075 cat >>conftest.$ac_ext <<_ACEOF
24076 /* end confdefs.h. */
24077 $ac_includes_default
24081 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
24088 rm -f conftest.$ac_objext
24089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24090 (eval $ac_compile) 2>conftest.er1
24092 grep -v '^ *+' conftest.er1 >conftest.err
24094 cat conftest.err >&5
24095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24096 (exit $ac_status); } &&
24097 { ac_try='test -z "$ac_c_werror_flag"
24098 || test ! -s conftest.err'
24099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24100 (eval $ac_try) 2>&5
24102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24103 (exit $ac_status); }; } &&
24104 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
24110 ac_lo=$ac_mid; break
24112 echo "$as_me: failed program was:" >&5
24113 sed 's/^/| /' conftest.$ac_ext >&5
24115 ac_hi=`expr '(' $ac_mid ')' - 1`
24116 if test $ac_mid -le $ac_hi; then
24120 ac_mid=`expr 2 '*' $ac_mid`
24122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24125 echo "$as_me: failed program was:" >&5
24126 sed 's/^/| /' conftest.$ac_ext >&5
24130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24132 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24133 # Binary search between lo and hi bounds.
24134 while test "x$ac_lo" != "x$ac_hi"; do
24135 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24136 cat >conftest.$ac_ext <<_ACEOF
24139 cat confdefs.h >>conftest.$ac_ext
24140 cat >>conftest.$ac_ext <<_ACEOF
24141 /* end confdefs.h. */
24142 $ac_includes_default
24146 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
24153 rm -f conftest.$ac_objext
24154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24155 (eval $ac_compile) 2>conftest.er1
24157 grep -v '^ *+' conftest.er1 >conftest.err
24159 cat conftest.err >&5
24160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24161 (exit $ac_status); } &&
24162 { ac_try='test -z "$ac_c_werror_flag"
24163 || test ! -s conftest.err'
24164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24165 (eval $ac_try) 2>&5
24167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24168 (exit $ac_status); }; } &&
24169 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
24177 echo "$as_me: failed program was:" >&5
24178 sed 's/^/| /' conftest.$ac_ext >&5
24180 ac_lo=`expr '(' $ac_mid ')' + 1`
24182 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24185 ?*) ac_cv_sizeof_int=$ac_lo;;
24186 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
24187 See \`config.log' for more details." >&5
24188 echo "$as_me: error: cannot compute sizeof (int), 77
24189 See \`config.log' for more details." >&2;}
24190 { (exit 1); exit 1; }; } ;;
24193 if test "$cross_compiling" = yes; then
24194 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24195 See \`config.log' for more details." >&5
24196 echo "$as_me: error: cannot run test program while cross compiling
24197 See \`config.log' for more details." >&2;}
24198 { (exit 1); exit 1; }; }
24200 cat >conftest.$ac_ext <<_ACEOF
24203 cat confdefs.h >>conftest.$ac_ext
24204 cat >>conftest.$ac_ext <<_ACEOF
24205 /* end confdefs.h. */
24206 $ac_includes_default
24207 long longval () { return (long) (sizeof (int)); }
24208 unsigned long ulongval () { return (long) (sizeof (int)); }
24210 #include <stdlib.h>
24215 FILE *f = fopen ("conftest.val", "w");
24218 if (((long) (sizeof (int))) < 0)
24220 long i = longval ();
24221 if (i != ((long) (sizeof (int))))
24223 fprintf (f, "%ld\n", i);
24227 unsigned long i = ulongval ();
24228 if (i != ((long) (sizeof (int))))
24230 fprintf (f, "%lu\n", i);
24232 exit (ferror (f) || fclose (f) != 0);
24238 rm -f conftest$ac_exeext
24239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24240 (eval $ac_link) 2>&5
24242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24243 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24245 (eval $ac_try) 2>&5
24247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24248 (exit $ac_status); }; }; then
24249 ac_cv_sizeof_int=`cat conftest.val`
24251 echo "$as_me: program exited with status $ac_status" >&5
24252 echo "$as_me: failed program was:" >&5
24253 sed 's/^/| /' conftest.$ac_ext >&5
24255 ( exit $ac_status )
24256 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
24257 See \`config.log' for more details." >&5
24258 echo "$as_me: error: cannot compute sizeof (int), 77
24259 See \`config.log' for more details." >&2;}
24260 { (exit 1); exit 1; }; }
24262 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24270 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
24271 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
24272 cat >>confdefs.h <<_ACEOF
24273 #define SIZEOF_INT $ac_cv_sizeof_int
24277 echo "$as_me:$LINENO: checking for long int" >&5
24278 echo $ECHO_N "checking for long int... $ECHO_C" >&6
24279 if test "${ac_cv_type_long_int+set}" = set; then
24280 echo $ECHO_N "(cached) $ECHO_C" >&6
24282 cat >conftest.$ac_ext <<_ACEOF
24285 cat confdefs.h >>conftest.$ac_ext
24286 cat >>conftest.$ac_ext <<_ACEOF
24287 /* end confdefs.h. */
24288 $ac_includes_default
24292 if ((long int *) 0)
24294 if (sizeof (long int))
24300 rm -f conftest.$ac_objext
24301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24302 (eval $ac_compile) 2>conftest.er1
24304 grep -v '^ *+' conftest.er1 >conftest.err
24306 cat conftest.err >&5
24307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24308 (exit $ac_status); } &&
24309 { ac_try='test -z "$ac_c_werror_flag"
24310 || test ! -s conftest.err'
24311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24312 (eval $ac_try) 2>&5
24314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24315 (exit $ac_status); }; } &&
24316 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
24322 ac_cv_type_long_int=yes
24324 echo "$as_me: failed program was:" >&5
24325 sed 's/^/| /' conftest.$ac_ext >&5
24327 ac_cv_type_long_int=no
24329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24331 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
24332 echo "${ECHO_T}$ac_cv_type_long_int" >&6
24334 echo "$as_me:$LINENO: checking size of long int" >&5
24335 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
24336 if test "${ac_cv_sizeof_long_int+set}" = set; then
24337 echo $ECHO_N "(cached) $ECHO_C" >&6
24339 if test "$ac_cv_type_long_int" = yes; then
24340 # The cast to unsigned long works around a bug in the HP C Compiler
24341 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24342 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24343 # This bug is HP SR number 8606223364.
24344 if test "$cross_compiling" = yes; then
24345 # Depending upon the size, compute the lo and hi bounds.
24346 cat >conftest.$ac_ext <<_ACEOF
24349 cat confdefs.h >>conftest.$ac_ext
24350 cat >>conftest.$ac_ext <<_ACEOF
24351 /* end confdefs.h. */
24352 $ac_includes_default
24356 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
24363 rm -f conftest.$ac_objext
24364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24365 (eval $ac_compile) 2>conftest.er1
24367 grep -v '^ *+' conftest.er1 >conftest.err
24369 cat conftest.err >&5
24370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24371 (exit $ac_status); } &&
24372 { ac_try='test -z "$ac_c_werror_flag"
24373 || test ! -s conftest.err'
24374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24375 (eval $ac_try) 2>&5
24377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24378 (exit $ac_status); }; } &&
24379 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
24387 cat >conftest.$ac_ext <<_ACEOF
24390 cat confdefs.h >>conftest.$ac_ext
24391 cat >>conftest.$ac_ext <<_ACEOF
24392 /* end confdefs.h. */
24393 $ac_includes_default
24397 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
24404 rm -f conftest.$ac_objext
24405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24406 (eval $ac_compile) 2>conftest.er1
24408 grep -v '^ *+' conftest.er1 >conftest.err
24410 cat conftest.err >&5
24411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24412 (exit $ac_status); } &&
24413 { ac_try='test -z "$ac_c_werror_flag"
24414 || test ! -s conftest.err'
24415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24416 (eval $ac_try) 2>&5
24418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24419 (exit $ac_status); }; } &&
24420 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
24426 ac_hi=$ac_mid; break
24428 echo "$as_me: failed program was:" >&5
24429 sed 's/^/| /' conftest.$ac_ext >&5
24431 ac_lo=`expr $ac_mid + 1`
24432 if test $ac_lo -le $ac_mid; then
24436 ac_mid=`expr 2 '*' $ac_mid + 1`
24438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24441 echo "$as_me: failed program was:" >&5
24442 sed 's/^/| /' conftest.$ac_ext >&5
24444 cat >conftest.$ac_ext <<_ACEOF
24447 cat confdefs.h >>conftest.$ac_ext
24448 cat >>conftest.$ac_ext <<_ACEOF
24449 /* end confdefs.h. */
24450 $ac_includes_default
24454 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
24461 rm -f conftest.$ac_objext
24462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24463 (eval $ac_compile) 2>conftest.er1
24465 grep -v '^ *+' conftest.er1 >conftest.err
24467 cat conftest.err >&5
24468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24469 (exit $ac_status); } &&
24470 { ac_try='test -z "$ac_c_werror_flag"
24471 || test ! -s conftest.err'
24472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24473 (eval $ac_try) 2>&5
24475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24476 (exit $ac_status); }; } &&
24477 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
24485 cat >conftest.$ac_ext <<_ACEOF
24488 cat confdefs.h >>conftest.$ac_ext
24489 cat >>conftest.$ac_ext <<_ACEOF
24490 /* end confdefs.h. */
24491 $ac_includes_default
24495 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
24502 rm -f conftest.$ac_objext
24503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24504 (eval $ac_compile) 2>conftest.er1
24506 grep -v '^ *+' conftest.er1 >conftest.err
24508 cat conftest.err >&5
24509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24510 (exit $ac_status); } &&
24511 { ac_try='test -z "$ac_c_werror_flag"
24512 || test ! -s conftest.err'
24513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24514 (eval $ac_try) 2>&5
24516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24517 (exit $ac_status); }; } &&
24518 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
24524 ac_lo=$ac_mid; break
24526 echo "$as_me: failed program was:" >&5
24527 sed 's/^/| /' conftest.$ac_ext >&5
24529 ac_hi=`expr '(' $ac_mid ')' - 1`
24530 if test $ac_mid -le $ac_hi; then
24534 ac_mid=`expr 2 '*' $ac_mid`
24536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24539 echo "$as_me: failed program was:" >&5
24540 sed 's/^/| /' conftest.$ac_ext >&5
24544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24547 # Binary search between lo and hi bounds.
24548 while test "x$ac_lo" != "x$ac_hi"; do
24549 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24550 cat >conftest.$ac_ext <<_ACEOF
24553 cat confdefs.h >>conftest.$ac_ext
24554 cat >>conftest.$ac_ext <<_ACEOF
24555 /* end confdefs.h. */
24556 $ac_includes_default
24560 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
24567 rm -f conftest.$ac_objext
24568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24569 (eval $ac_compile) 2>conftest.er1
24571 grep -v '^ *+' conftest.er1 >conftest.err
24573 cat conftest.err >&5
24574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24575 (exit $ac_status); } &&
24576 { ac_try='test -z "$ac_c_werror_flag"
24577 || test ! -s conftest.err'
24578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24579 (eval $ac_try) 2>&5
24581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24582 (exit $ac_status); }; } &&
24583 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
24591 echo "$as_me: failed program was:" >&5
24592 sed 's/^/| /' conftest.$ac_ext >&5
24594 ac_lo=`expr '(' $ac_mid ')' + 1`
24596 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24599 ?*) ac_cv_sizeof_long_int=$ac_lo;;
24600 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
24601 See \`config.log' for more details." >&5
24602 echo "$as_me: error: cannot compute sizeof (long int), 77
24603 See \`config.log' for more details." >&2;}
24604 { (exit 1); exit 1; }; } ;;
24607 if test "$cross_compiling" = yes; then
24608 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24609 See \`config.log' for more details." >&5
24610 echo "$as_me: error: cannot run test program while cross compiling
24611 See \`config.log' for more details." >&2;}
24612 { (exit 1); exit 1; }; }
24614 cat >conftest.$ac_ext <<_ACEOF
24617 cat confdefs.h >>conftest.$ac_ext
24618 cat >>conftest.$ac_ext <<_ACEOF
24619 /* end confdefs.h. */
24620 $ac_includes_default
24621 long longval () { return (long) (sizeof (long int)); }
24622 unsigned long ulongval () { return (long) (sizeof (long int)); }
24624 #include <stdlib.h>
24629 FILE *f = fopen ("conftest.val", "w");
24632 if (((long) (sizeof (long int))) < 0)
24634 long i = longval ();
24635 if (i != ((long) (sizeof (long int))))
24637 fprintf (f, "%ld\n", i);
24641 unsigned long i = ulongval ();
24642 if (i != ((long) (sizeof (long int))))
24644 fprintf (f, "%lu\n", i);
24646 exit (ferror (f) || fclose (f) != 0);
24652 rm -f conftest$ac_exeext
24653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24654 (eval $ac_link) 2>&5
24656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24657 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24659 (eval $ac_try) 2>&5
24661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24662 (exit $ac_status); }; }; then
24663 ac_cv_sizeof_long_int=`cat conftest.val`
24665 echo "$as_me: program exited with status $ac_status" >&5
24666 echo "$as_me: failed program was:" >&5
24667 sed 's/^/| /' conftest.$ac_ext >&5
24669 ( exit $ac_status )
24670 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
24671 See \`config.log' for more details." >&5
24672 echo "$as_me: error: cannot compute sizeof (long int), 77
24673 See \`config.log' for more details." >&2;}
24674 { (exit 1); exit 1; }; }
24676 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24681 ac_cv_sizeof_long_int=0
24684 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
24685 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
24686 cat >>confdefs.h <<_ACEOF
24687 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
24691 echo "$as_me:$LINENO: checking for long long int" >&5
24692 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
24693 if test "${ac_cv_type_long_long_int+set}" = set; then
24694 echo $ECHO_N "(cached) $ECHO_C" >&6
24696 cat >conftest.$ac_ext <<_ACEOF
24699 cat confdefs.h >>conftest.$ac_ext
24700 cat >>conftest.$ac_ext <<_ACEOF
24701 /* end confdefs.h. */
24702 $ac_includes_default
24706 if ((long long int *) 0)
24708 if (sizeof (long long int))
24714 rm -f conftest.$ac_objext
24715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24716 (eval $ac_compile) 2>conftest.er1
24718 grep -v '^ *+' conftest.er1 >conftest.err
24720 cat conftest.err >&5
24721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24722 (exit $ac_status); } &&
24723 { ac_try='test -z "$ac_c_werror_flag"
24724 || test ! -s conftest.err'
24725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24726 (eval $ac_try) 2>&5
24728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24729 (exit $ac_status); }; } &&
24730 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
24736 ac_cv_type_long_long_int=yes
24738 echo "$as_me: failed program was:" >&5
24739 sed 's/^/| /' conftest.$ac_ext >&5
24741 ac_cv_type_long_long_int=no
24743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24745 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
24746 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
24748 echo "$as_me:$LINENO: checking size of long long int" >&5
24749 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
24750 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
24751 echo $ECHO_N "(cached) $ECHO_C" >&6
24753 if test "$ac_cv_type_long_long_int" = yes; then
24754 # The cast to unsigned long works around a bug in the HP C Compiler
24755 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24756 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24757 # This bug is HP SR number 8606223364.
24758 if test "$cross_compiling" = yes; then
24759 # Depending upon the size, compute the lo and hi bounds.
24760 cat >conftest.$ac_ext <<_ACEOF
24763 cat confdefs.h >>conftest.$ac_ext
24764 cat >>conftest.$ac_ext <<_ACEOF
24765 /* end confdefs.h. */
24766 $ac_includes_default
24770 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
24777 rm -f conftest.$ac_objext
24778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24779 (eval $ac_compile) 2>conftest.er1
24781 grep -v '^ *+' conftest.er1 >conftest.err
24783 cat conftest.err >&5
24784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24785 (exit $ac_status); } &&
24786 { ac_try='test -z "$ac_c_werror_flag"
24787 || test ! -s conftest.err'
24788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24789 (eval $ac_try) 2>&5
24791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24792 (exit $ac_status); }; } &&
24793 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
24801 cat >conftest.$ac_ext <<_ACEOF
24804 cat confdefs.h >>conftest.$ac_ext
24805 cat >>conftest.$ac_ext <<_ACEOF
24806 /* end confdefs.h. */
24807 $ac_includes_default
24811 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
24818 rm -f conftest.$ac_objext
24819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24820 (eval $ac_compile) 2>conftest.er1
24822 grep -v '^ *+' conftest.er1 >conftest.err
24824 cat conftest.err >&5
24825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24826 (exit $ac_status); } &&
24827 { ac_try='test -z "$ac_c_werror_flag"
24828 || test ! -s conftest.err'
24829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24830 (eval $ac_try) 2>&5
24832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24833 (exit $ac_status); }; } &&
24834 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
24840 ac_hi=$ac_mid; break
24842 echo "$as_me: failed program was:" >&5
24843 sed 's/^/| /' conftest.$ac_ext >&5
24845 ac_lo=`expr $ac_mid + 1`
24846 if test $ac_lo -le $ac_mid; then
24850 ac_mid=`expr 2 '*' $ac_mid + 1`
24852 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24855 echo "$as_me: failed program was:" >&5
24856 sed 's/^/| /' conftest.$ac_ext >&5
24858 cat >conftest.$ac_ext <<_ACEOF
24861 cat confdefs.h >>conftest.$ac_ext
24862 cat >>conftest.$ac_ext <<_ACEOF
24863 /* end confdefs.h. */
24864 $ac_includes_default
24868 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
24875 rm -f conftest.$ac_objext
24876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24877 (eval $ac_compile) 2>conftest.er1
24879 grep -v '^ *+' conftest.er1 >conftest.err
24881 cat conftest.err >&5
24882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24883 (exit $ac_status); } &&
24884 { ac_try='test -z "$ac_c_werror_flag"
24885 || test ! -s conftest.err'
24886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24887 (eval $ac_try) 2>&5
24889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24890 (exit $ac_status); }; } &&
24891 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
24899 cat >conftest.$ac_ext <<_ACEOF
24902 cat confdefs.h >>conftest.$ac_ext
24903 cat >>conftest.$ac_ext <<_ACEOF
24904 /* end confdefs.h. */
24905 $ac_includes_default
24909 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
24916 rm -f conftest.$ac_objext
24917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24918 (eval $ac_compile) 2>conftest.er1
24920 grep -v '^ *+' conftest.er1 >conftest.err
24922 cat conftest.err >&5
24923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24924 (exit $ac_status); } &&
24925 { ac_try='test -z "$ac_c_werror_flag"
24926 || test ! -s conftest.err'
24927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24928 (eval $ac_try) 2>&5
24930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24931 (exit $ac_status); }; } &&
24932 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
24938 ac_lo=$ac_mid; break
24940 echo "$as_me: failed program was:" >&5
24941 sed 's/^/| /' conftest.$ac_ext >&5
24943 ac_hi=`expr '(' $ac_mid ')' - 1`
24944 if test $ac_mid -le $ac_hi; then
24948 ac_mid=`expr 2 '*' $ac_mid`
24950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24953 echo "$as_me: failed program was:" >&5
24954 sed 's/^/| /' conftest.$ac_ext >&5
24958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24961 # Binary search between lo and hi bounds.
24962 while test "x$ac_lo" != "x$ac_hi"; do
24963 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24964 cat >conftest.$ac_ext <<_ACEOF
24967 cat confdefs.h >>conftest.$ac_ext
24968 cat >>conftest.$ac_ext <<_ACEOF
24969 /* end confdefs.h. */
24970 $ac_includes_default
24974 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
24981 rm -f conftest.$ac_objext
24982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24983 (eval $ac_compile) 2>conftest.er1
24985 grep -v '^ *+' conftest.er1 >conftest.err
24987 cat conftest.err >&5
24988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24989 (exit $ac_status); } &&
24990 { ac_try='test -z "$ac_c_werror_flag"
24991 || test ! -s conftest.err'
24992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24993 (eval $ac_try) 2>&5
24995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24996 (exit $ac_status); }; } &&
24997 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
25005 echo "$as_me: failed program was:" >&5
25006 sed 's/^/| /' conftest.$ac_ext >&5
25008 ac_lo=`expr '(' $ac_mid ')' + 1`
25010 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25013 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
25014 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
25015 See \`config.log' for more details." >&5
25016 echo "$as_me: error: cannot compute sizeof (long long int), 77
25017 See \`config.log' for more details." >&2;}
25018 { (exit 1); exit 1; }; } ;;
25021 if test "$cross_compiling" = yes; then
25022 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25023 See \`config.log' for more details." >&5
25024 echo "$as_me: error: cannot run test program while cross compiling
25025 See \`config.log' for more details." >&2;}
25026 { (exit 1); exit 1; }; }
25028 cat >conftest.$ac_ext <<_ACEOF
25031 cat confdefs.h >>conftest.$ac_ext
25032 cat >>conftest.$ac_ext <<_ACEOF
25033 /* end confdefs.h. */
25034 $ac_includes_default
25035 long longval () { return (long) (sizeof (long long int)); }
25036 unsigned long ulongval () { return (long) (sizeof (long long int)); }
25038 #include <stdlib.h>
25043 FILE *f = fopen ("conftest.val", "w");
25046 if (((long) (sizeof (long long int))) < 0)
25048 long i = longval ();
25049 if (i != ((long) (sizeof (long long int))))
25051 fprintf (f, "%ld\n", i);
25055 unsigned long i = ulongval ();
25056 if (i != ((long) (sizeof (long long int))))
25058 fprintf (f, "%lu\n", i);
25060 exit (ferror (f) || fclose (f) != 0);
25066 rm -f conftest$ac_exeext
25067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25068 (eval $ac_link) 2>&5
25070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25071 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25073 (eval $ac_try) 2>&5
25075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25076 (exit $ac_status); }; }; then
25077 ac_cv_sizeof_long_long_int=`cat conftest.val`
25079 echo "$as_me: program exited with status $ac_status" >&5
25080 echo "$as_me: failed program was:" >&5
25081 sed 's/^/| /' conftest.$ac_ext >&5
25083 ( exit $ac_status )
25084 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
25085 See \`config.log' for more details." >&5
25086 echo "$as_me: error: cannot compute sizeof (long long int), 77
25087 See \`config.log' for more details." >&2;}
25088 { (exit 1); exit 1; }; }
25090 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25095 ac_cv_sizeof_long_long_int=0
25098 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
25099 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
25100 cat >>confdefs.h <<_ACEOF
25101 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
25105 echo "$as_me:$LINENO: checking for int *" >&5
25106 echo $ECHO_N "checking for int *... $ECHO_C" >&6
25107 if test "${ac_cv_type_int_p+set}" = set; then
25108 echo $ECHO_N "(cached) $ECHO_C" >&6
25110 cat >conftest.$ac_ext <<_ACEOF
25113 cat confdefs.h >>conftest.$ac_ext
25114 cat >>conftest.$ac_ext <<_ACEOF
25115 /* end confdefs.h. */
25116 $ac_includes_default
25122 if (sizeof (int *))
25128 rm -f conftest.$ac_objext
25129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25130 (eval $ac_compile) 2>conftest.er1
25132 grep -v '^ *+' conftest.er1 >conftest.err
25134 cat conftest.err >&5
25135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25136 (exit $ac_status); } &&
25137 { ac_try='test -z "$ac_c_werror_flag"
25138 || test ! -s conftest.err'
25139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25140 (eval $ac_try) 2>&5
25142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25143 (exit $ac_status); }; } &&
25144 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
25150 ac_cv_type_int_p=yes
25152 echo "$as_me: failed program was:" >&5
25153 sed 's/^/| /' conftest.$ac_ext >&5
25155 ac_cv_type_int_p=no
25157 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25159 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
25160 echo "${ECHO_T}$ac_cv_type_int_p" >&6
25162 echo "$as_me:$LINENO: checking size of int *" >&5
25163 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
25164 if test "${ac_cv_sizeof_int_p+set}" = set; then
25165 echo $ECHO_N "(cached) $ECHO_C" >&6
25167 if test "$ac_cv_type_int_p" = yes; then
25168 # The cast to unsigned long works around a bug in the HP C Compiler
25169 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25170 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25171 # This bug is HP SR number 8606223364.
25172 if test "$cross_compiling" = yes; then
25173 # Depending upon the size, compute the lo and hi bounds.
25174 cat >conftest.$ac_ext <<_ACEOF
25177 cat confdefs.h >>conftest.$ac_ext
25178 cat >>conftest.$ac_ext <<_ACEOF
25179 /* end confdefs.h. */
25180 $ac_includes_default
25184 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
25191 rm -f conftest.$ac_objext
25192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25193 (eval $ac_compile) 2>conftest.er1
25195 grep -v '^ *+' conftest.er1 >conftest.err
25197 cat conftest.err >&5
25198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25199 (exit $ac_status); } &&
25200 { ac_try='test -z "$ac_c_werror_flag"
25201 || test ! -s conftest.err'
25202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25203 (eval $ac_try) 2>&5
25205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25206 (exit $ac_status); }; } &&
25207 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
25215 cat >conftest.$ac_ext <<_ACEOF
25218 cat confdefs.h >>conftest.$ac_ext
25219 cat >>conftest.$ac_ext <<_ACEOF
25220 /* end confdefs.h. */
25221 $ac_includes_default
25225 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
25232 rm -f conftest.$ac_objext
25233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25234 (eval $ac_compile) 2>conftest.er1
25236 grep -v '^ *+' conftest.er1 >conftest.err
25238 cat conftest.err >&5
25239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25240 (exit $ac_status); } &&
25241 { ac_try='test -z "$ac_c_werror_flag"
25242 || test ! -s conftest.err'
25243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25244 (eval $ac_try) 2>&5
25246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25247 (exit $ac_status); }; } &&
25248 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
25254 ac_hi=$ac_mid; break
25256 echo "$as_me: failed program was:" >&5
25257 sed 's/^/| /' conftest.$ac_ext >&5
25259 ac_lo=`expr $ac_mid + 1`
25260 if test $ac_lo -le $ac_mid; then
25264 ac_mid=`expr 2 '*' $ac_mid + 1`
25266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25269 echo "$as_me: failed program was:" >&5
25270 sed 's/^/| /' conftest.$ac_ext >&5
25272 cat >conftest.$ac_ext <<_ACEOF
25275 cat confdefs.h >>conftest.$ac_ext
25276 cat >>conftest.$ac_ext <<_ACEOF
25277 /* end confdefs.h. */
25278 $ac_includes_default
25282 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
25289 rm -f conftest.$ac_objext
25290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25291 (eval $ac_compile) 2>conftest.er1
25293 grep -v '^ *+' conftest.er1 >conftest.err
25295 cat conftest.err >&5
25296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25297 (exit $ac_status); } &&
25298 { ac_try='test -z "$ac_c_werror_flag"
25299 || test ! -s conftest.err'
25300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25301 (eval $ac_try) 2>&5
25303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25304 (exit $ac_status); }; } &&
25305 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
25313 cat >conftest.$ac_ext <<_ACEOF
25316 cat confdefs.h >>conftest.$ac_ext
25317 cat >>conftest.$ac_ext <<_ACEOF
25318 /* end confdefs.h. */
25319 $ac_includes_default
25323 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
25330 rm -f conftest.$ac_objext
25331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25332 (eval $ac_compile) 2>conftest.er1
25334 grep -v '^ *+' conftest.er1 >conftest.err
25336 cat conftest.err >&5
25337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25338 (exit $ac_status); } &&
25339 { ac_try='test -z "$ac_c_werror_flag"
25340 || test ! -s conftest.err'
25341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25342 (eval $ac_try) 2>&5
25344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25345 (exit $ac_status); }; } &&
25346 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
25352 ac_lo=$ac_mid; break
25354 echo "$as_me: failed program was:" >&5
25355 sed 's/^/| /' conftest.$ac_ext >&5
25357 ac_hi=`expr '(' $ac_mid ')' - 1`
25358 if test $ac_mid -le $ac_hi; then
25362 ac_mid=`expr 2 '*' $ac_mid`
25364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25367 echo "$as_me: failed program was:" >&5
25368 sed 's/^/| /' conftest.$ac_ext >&5
25372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25375 # Binary search between lo and hi bounds.
25376 while test "x$ac_lo" != "x$ac_hi"; do
25377 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25378 cat >conftest.$ac_ext <<_ACEOF
25381 cat confdefs.h >>conftest.$ac_ext
25382 cat >>conftest.$ac_ext <<_ACEOF
25383 /* end confdefs.h. */
25384 $ac_includes_default
25388 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
25395 rm -f conftest.$ac_objext
25396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25397 (eval $ac_compile) 2>conftest.er1
25399 grep -v '^ *+' conftest.er1 >conftest.err
25401 cat conftest.err >&5
25402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25403 (exit $ac_status); } &&
25404 { ac_try='test -z "$ac_c_werror_flag"
25405 || test ! -s conftest.err'
25406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25407 (eval $ac_try) 2>&5
25409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25410 (exit $ac_status); }; } &&
25411 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
25419 echo "$as_me: failed program was:" >&5
25420 sed 's/^/| /' conftest.$ac_ext >&5
25422 ac_lo=`expr '(' $ac_mid ')' + 1`
25424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25427 ?*) ac_cv_sizeof_int_p=$ac_lo;;
25428 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
25429 See \`config.log' for more details." >&5
25430 echo "$as_me: error: cannot compute sizeof (int *), 77
25431 See \`config.log' for more details." >&2;}
25432 { (exit 1); exit 1; }; } ;;
25435 if test "$cross_compiling" = yes; then
25436 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25437 See \`config.log' for more details." >&5
25438 echo "$as_me: error: cannot run test program while cross compiling
25439 See \`config.log' for more details." >&2;}
25440 { (exit 1); exit 1; }; }
25442 cat >conftest.$ac_ext <<_ACEOF
25445 cat confdefs.h >>conftest.$ac_ext
25446 cat >>conftest.$ac_ext <<_ACEOF
25447 /* end confdefs.h. */
25448 $ac_includes_default
25449 long longval () { return (long) (sizeof (int *)); }
25450 unsigned long ulongval () { return (long) (sizeof (int *)); }
25452 #include <stdlib.h>
25457 FILE *f = fopen ("conftest.val", "w");
25460 if (((long) (sizeof (int *))) < 0)
25462 long i = longval ();
25463 if (i != ((long) (sizeof (int *))))
25465 fprintf (f, "%ld\n", i);
25469 unsigned long i = ulongval ();
25470 if (i != ((long) (sizeof (int *))))
25472 fprintf (f, "%lu\n", i);
25474 exit (ferror (f) || fclose (f) != 0);
25480 rm -f conftest$ac_exeext
25481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25482 (eval $ac_link) 2>&5
25484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25485 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25487 (eval $ac_try) 2>&5
25489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25490 (exit $ac_status); }; }; then
25491 ac_cv_sizeof_int_p=`cat conftest.val`
25493 echo "$as_me: program exited with status $ac_status" >&5
25494 echo "$as_me: failed program was:" >&5
25495 sed 's/^/| /' conftest.$ac_ext >&5
25497 ( exit $ac_status )
25498 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
25499 See \`config.log' for more details." >&5
25500 echo "$as_me: error: cannot compute sizeof (int *), 77
25501 See \`config.log' for more details." >&2;}
25502 { (exit 1); exit 1; }; }
25504 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25509 ac_cv_sizeof_int_p=0
25512 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
25513 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
25514 cat >>confdefs.h <<_ACEOF
25515 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
25520 # Check for sys/types.h types
25521 echo "$as_me:$LINENO: checking for u_int type" >&5
25522 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
25523 if test "${ac_cv_have_u_int+set}" = set; then
25524 echo $ECHO_N "(cached) $ECHO_C" >&6
25527 cat >conftest.$ac_ext <<_ACEOF
25530 cat confdefs.h >>conftest.$ac_ext
25531 cat >>conftest.$ac_ext <<_ACEOF
25532 /* end confdefs.h. */
25533 #include <sys/types.h>
25542 rm -f conftest.$ac_objext
25543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25544 (eval $ac_compile) 2>conftest.er1
25546 grep -v '^ *+' conftest.er1 >conftest.err
25548 cat conftest.err >&5
25549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25550 (exit $ac_status); } &&
25551 { ac_try='test -z "$ac_c_werror_flag"
25552 || test ! -s conftest.err'
25553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25554 (eval $ac_try) 2>&5
25556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25557 (exit $ac_status); }; } &&
25558 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
25564 ac_cv_have_u_int="yes"
25566 echo "$as_me: failed program was:" >&5
25567 sed 's/^/| /' conftest.$ac_ext >&5
25569 ac_cv_have_u_int="no"
25572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25575 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
25576 echo "${ECHO_T}$ac_cv_have_u_int" >&6
25577 if test "x$ac_cv_have_u_int" = "xyes" ; then
25578 cat >>confdefs.h <<\_ACEOF
25579 #define HAVE_U_INT 1
25585 echo "$as_me:$LINENO: checking for intmax_t type" >&5
25586 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
25587 if test "${ac_cv_have_intmax_t+set}" = set; then
25588 echo $ECHO_N "(cached) $ECHO_C" >&6
25591 cat >conftest.$ac_ext <<_ACEOF
25594 cat confdefs.h >>conftest.$ac_ext
25595 cat >>conftest.$ac_ext <<_ACEOF
25596 /* end confdefs.h. */
25597 #include <sys/types.h>
25606 rm -f conftest.$ac_objext
25607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25608 (eval $ac_compile) 2>conftest.er1
25610 grep -v '^ *+' conftest.er1 >conftest.err
25612 cat conftest.err >&5
25613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25614 (exit $ac_status); } &&
25615 { ac_try='test -z "$ac_c_werror_flag"
25616 || test ! -s conftest.err'
25617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25618 (eval $ac_try) 2>&5
25620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25621 (exit $ac_status); }; } &&
25622 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
25628 ac_cv_have_intmax_t="yes"
25630 echo "$as_me: failed program was:" >&5
25631 sed 's/^/| /' conftest.$ac_ext >&5
25634 cat >conftest.$ac_ext <<_ACEOF
25637 cat confdefs.h >>conftest.$ac_ext
25638 cat >>conftest.$ac_ext <<_ACEOF
25639 /* end confdefs.h. */
25640 #include <stdint.h>
25649 rm -f conftest.$ac_objext
25650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25651 (eval $ac_compile) 2>conftest.er1
25653 grep -v '^ *+' conftest.er1 >conftest.err
25655 cat conftest.err >&5
25656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25657 (exit $ac_status); } &&
25658 { ac_try='test -z "$ac_c_werror_flag"
25659 || test ! -s conftest.err'
25660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25661 (eval $ac_try) 2>&5
25663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25664 (exit $ac_status); }; } &&
25665 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
25671 ac_cv_have_intmax_t="yes"
25673 echo "$as_me: failed program was:" >&5
25674 sed 's/^/| /' conftest.$ac_ext >&5
25676 ac_cv_have_intmax_t="no"
25679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25687 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
25688 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
25689 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
25690 cat >>confdefs.h <<\_ACEOF
25691 #define HAVE_INTMAX_T 1
25698 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
25699 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
25700 if test "${ac_cv_have_u_intmax_t+set}" = set; then
25701 echo $ECHO_N "(cached) $ECHO_C" >&6
25704 cat >conftest.$ac_ext <<_ACEOF
25707 cat confdefs.h >>conftest.$ac_ext
25708 cat >>conftest.$ac_ext <<_ACEOF
25709 /* end confdefs.h. */
25710 #include <sys/types.h>
25714 u_intmax_t a; a = 1;
25719 rm -f conftest.$ac_objext
25720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25721 (eval $ac_compile) 2>conftest.er1
25723 grep -v '^ *+' conftest.er1 >conftest.err
25725 cat conftest.err >&5
25726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25727 (exit $ac_status); } &&
25728 { ac_try='test -z "$ac_c_werror_flag"
25729 || test ! -s conftest.err'
25730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25731 (eval $ac_try) 2>&5
25733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25734 (exit $ac_status); }; } &&
25735 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
25741 ac_cv_have_u_intmax_t="yes"
25743 echo "$as_me: failed program was:" >&5
25744 sed 's/^/| /' conftest.$ac_ext >&5
25747 cat >conftest.$ac_ext <<_ACEOF
25750 cat confdefs.h >>conftest.$ac_ext
25751 cat >>conftest.$ac_ext <<_ACEOF
25752 /* end confdefs.h. */
25753 #include <stdint.h>
25757 u_intmax_t a; a = 1;
25762 rm -f conftest.$ac_objext
25763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25764 (eval $ac_compile) 2>conftest.er1
25766 grep -v '^ *+' conftest.er1 >conftest.err
25768 cat conftest.err >&5
25769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25770 (exit $ac_status); } &&
25771 { ac_try='test -z "$ac_c_werror_flag"
25772 || test ! -s conftest.err'
25773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25774 (eval $ac_try) 2>&5
25776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25777 (exit $ac_status); }; } &&
25778 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
25784 ac_cv_have_u_intmax_t="yes"
25786 echo "$as_me: failed program was:" >&5
25787 sed 's/^/| /' conftest.$ac_ext >&5
25789 ac_cv_have_u_intmax_t="no"
25792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25799 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
25800 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
25801 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
25802 cat >>confdefs.h <<\_ACEOF
25803 #define HAVE_U_INTMAX_T 1
25810 echo "$as_me:$LINENO: checking for intXX_t types" >&5
25811 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
25812 if test "${ac_cv_have_intxx_t+set}" = set; then
25813 echo $ECHO_N "(cached) $ECHO_C" >&6
25816 cat >conftest.$ac_ext <<_ACEOF
25819 cat confdefs.h >>conftest.$ac_ext
25820 cat >>conftest.$ac_ext <<_ACEOF
25821 /* end confdefs.h. */
25822 #include <sys/types.h>
25826 int8_t a; int16_t b; int32_t c; a = b = c = 1;
25831 rm -f conftest.$ac_objext
25832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25833 (eval $ac_compile) 2>conftest.er1
25835 grep -v '^ *+' conftest.er1 >conftest.err
25837 cat conftest.err >&5
25838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25839 (exit $ac_status); } &&
25840 { ac_try='test -z "$ac_c_werror_flag"
25841 || test ! -s conftest.err'
25842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25843 (eval $ac_try) 2>&5
25845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25846 (exit $ac_status); }; } &&
25847 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
25853 ac_cv_have_intxx_t="yes"
25855 echo "$as_me: failed program was:" >&5
25856 sed 's/^/| /' conftest.$ac_ext >&5
25858 ac_cv_have_intxx_t="no"
25861 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25864 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
25865 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
25866 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
25867 cat >>confdefs.h <<\_ACEOF
25868 #define HAVE_INTXX_T 1
25874 echo "$as_me:$LINENO: checking for int64_t type" >&5
25875 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
25876 if test "${ac_cv_have_int64_t+set}" = set; then
25877 echo $ECHO_N "(cached) $ECHO_C" >&6
25880 cat >conftest.$ac_ext <<_ACEOF
25883 cat confdefs.h >>conftest.$ac_ext
25884 cat >>conftest.$ac_ext <<_ACEOF
25885 /* end confdefs.h. */
25886 #include <sys/types.h>
25895 rm -f conftest.$ac_objext
25896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25897 (eval $ac_compile) 2>conftest.er1
25899 grep -v '^ *+' conftest.er1 >conftest.err
25901 cat conftest.err >&5
25902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25903 (exit $ac_status); } &&
25904 { ac_try='test -z "$ac_c_werror_flag"
25905 || test ! -s conftest.err'
25906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25907 (eval $ac_try) 2>&5
25909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25910 (exit $ac_status); }; } &&
25911 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
25917 ac_cv_have_int64_t="yes"
25919 echo "$as_me: failed program was:" >&5
25920 sed 's/^/| /' conftest.$ac_ext >&5
25922 ac_cv_have_int64_t="no"
25925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25928 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
25929 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
25930 if test "x$ac_cv_have_int64_t" = "xyes" ; then
25931 cat >>confdefs.h <<\_ACEOF
25932 #define HAVE_INT64_T 1
25938 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
25939 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
25940 if test "${ac_cv_have_u_intxx_t+set}" = set; then
25941 echo $ECHO_N "(cached) $ECHO_C" >&6
25944 cat >conftest.$ac_ext <<_ACEOF
25947 cat confdefs.h >>conftest.$ac_ext
25948 cat >>conftest.$ac_ext <<_ACEOF
25949 /* end confdefs.h. */
25950 #include <sys/types.h>
25954 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
25959 rm -f conftest.$ac_objext
25960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25961 (eval $ac_compile) 2>conftest.er1
25963 grep -v '^ *+' conftest.er1 >conftest.err
25965 cat conftest.err >&5
25966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25967 (exit $ac_status); } &&
25968 { ac_try='test -z "$ac_c_werror_flag"
25969 || test ! -s conftest.err'
25970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25971 (eval $ac_try) 2>&5
25973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25974 (exit $ac_status); }; } &&
25975 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
25981 ac_cv_have_u_intxx_t="yes"
25983 echo "$as_me: failed program was:" >&5
25984 sed 's/^/| /' conftest.$ac_ext >&5
25986 ac_cv_have_u_intxx_t="no"
25989 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25992 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
25993 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
25994 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
25995 cat >>confdefs.h <<\_ACEOF
25996 #define HAVE_U_INTXX_T 1
26002 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
26003 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
26004 if test "${ac_cv_have_u_int64_t+set}" = set; then
26005 echo $ECHO_N "(cached) $ECHO_C" >&6
26008 cat >conftest.$ac_ext <<_ACEOF
26011 cat confdefs.h >>conftest.$ac_ext
26012 cat >>conftest.$ac_ext <<_ACEOF
26013 /* end confdefs.h. */
26014 #include <sys/types.h>
26018 u_int64_t a; a = 1;
26023 rm -f conftest.$ac_objext
26024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26025 (eval $ac_compile) 2>conftest.er1
26027 grep -v '^ *+' conftest.er1 >conftest.err
26029 cat conftest.err >&5
26030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26031 (exit $ac_status); } &&
26032 { ac_try='test -z "$ac_c_werror_flag"
26033 || test ! -s conftest.err'
26034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26035 (eval $ac_try) 2>&5
26037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26038 (exit $ac_status); }; } &&
26039 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
26045 ac_cv_have_u_int64_t="yes"
26047 echo "$as_me: failed program was:" >&5
26048 sed 's/^/| /' conftest.$ac_ext >&5
26050 ac_cv_have_u_int64_t="no"
26053 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26056 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
26057 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
26058 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
26059 cat >>confdefs.h <<\_ACEOF
26060 #define HAVE_U_INT64_T 1
26066 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
26067 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26069 echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
26070 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
26071 cat >conftest.$ac_ext <<_ACEOF
26074 cat confdefs.h >>conftest.$ac_ext
26075 cat >>conftest.$ac_ext <<_ACEOF
26076 /* end confdefs.h. */
26077 #include <sys/bitypes.h>
26081 int8_t a; int16_t b; int32_t c;
26082 u_int8_t e; u_int16_t f; u_int32_t g;
26083 a = b = c = e = f = g = 1;
26088 rm -f conftest.$ac_objext
26089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26090 (eval $ac_compile) 2>conftest.er1
26092 grep -v '^ *+' conftest.er1 >conftest.err
26094 cat conftest.err >&5
26095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26096 (exit $ac_status); } &&
26097 { ac_try='test -z "$ac_c_werror_flag"
26098 || test ! -s conftest.err'
26099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26100 (eval $ac_try) 2>&5
26102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26103 (exit $ac_status); }; } &&
26104 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
26110 cat >>confdefs.h <<\_ACEOF
26111 #define HAVE_U_INTXX_T 1
26114 cat >>confdefs.h <<\_ACEOF
26115 #define HAVE_INTXX_T 1
26118 cat >>confdefs.h <<\_ACEOF
26119 #define HAVE_SYS_BITYPES_H 1
26122 echo "$as_me:$LINENO: result: yes" >&5
26123 echo "${ECHO_T}yes" >&6
26125 echo "$as_me: failed program was:" >&5
26126 sed 's/^/| /' conftest.$ac_ext >&5
26128 echo "$as_me:$LINENO: result: no" >&5
26129 echo "${ECHO_T}no" >&6
26132 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26135 if test -z "$have_u_intxx_t" ; then
26136 echo "$as_me:$LINENO: checking for uintXX_t types" >&5
26137 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
26138 if test "${ac_cv_have_uintxx_t+set}" = set; then
26139 echo $ECHO_N "(cached) $ECHO_C" >&6
26142 cat >conftest.$ac_ext <<_ACEOF
26145 cat confdefs.h >>conftest.$ac_ext
26146 cat >>conftest.$ac_ext <<_ACEOF
26147 /* end confdefs.h. */
26148 #include <sys/types.h>
26152 uint8_t a; uint16_t b;
26153 uint32_t c; a = b = c = 1;
26158 rm -f conftest.$ac_objext
26159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26160 (eval $ac_compile) 2>conftest.er1
26162 grep -v '^ *+' conftest.er1 >conftest.err
26164 cat conftest.err >&5
26165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26166 (exit $ac_status); } &&
26167 { ac_try='test -z "$ac_c_werror_flag"
26168 || test ! -s conftest.err'
26169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26170 (eval $ac_try) 2>&5
26172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26173 (exit $ac_status); }; } &&
26174 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
26180 ac_cv_have_uintxx_t="yes"
26182 echo "$as_me: failed program was:" >&5
26183 sed 's/^/| /' conftest.$ac_ext >&5
26185 ac_cv_have_uintxx_t="no"
26188 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26191 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
26192 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
26193 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
26194 cat >>confdefs.h <<\_ACEOF
26195 #define HAVE_UINTXX_T 1
26201 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
26202 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26204 echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
26205 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
26206 cat >conftest.$ac_ext <<_ACEOF
26209 cat confdefs.h >>conftest.$ac_ext
26210 cat >>conftest.$ac_ext <<_ACEOF
26211 /* end confdefs.h. */
26212 #include <sys/bitypes.h>
26216 int64_t a; u_int64_t b;
26222 rm -f conftest.$ac_objext
26223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26224 (eval $ac_compile) 2>conftest.er1
26226 grep -v '^ *+' conftest.er1 >conftest.err
26228 cat conftest.err >&5
26229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26230 (exit $ac_status); } &&
26231 { ac_try='test -z "$ac_c_werror_flag"
26232 || test ! -s conftest.err'
26233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26234 (eval $ac_try) 2>&5
26236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26237 (exit $ac_status); }; } &&
26238 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
26244 cat >>confdefs.h <<\_ACEOF
26245 #define HAVE_U_INT64_T 1
26248 cat >>confdefs.h <<\_ACEOF
26249 #define HAVE_INT64_T 1
26252 echo "$as_me:$LINENO: result: yes" >&5
26253 echo "${ECHO_T}yes" >&6
26255 echo "$as_me: failed program was:" >&5
26256 sed 's/^/| /' conftest.$ac_ext >&5
26258 echo "$as_me:$LINENO: result: no" >&5
26259 echo "${ECHO_T}no" >&6
26262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26265 if (test -z "$have_uintxx_t" && \
26266 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26268 echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
26269 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
26270 cat >conftest.$ac_ext <<_ACEOF
26273 cat confdefs.h >>conftest.$ac_ext
26274 cat >>conftest.$ac_ext <<_ACEOF
26275 /* end confdefs.h. */
26276 #include <sys/bitypes.h>
26280 uint8_t a; uint16_t b;
26281 uint32_t c; a = b = c = 1;
26286 rm -f conftest.$ac_objext
26287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26288 (eval $ac_compile) 2>conftest.er1
26290 grep -v '^ *+' conftest.er1 >conftest.err
26292 cat conftest.err >&5
26293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26294 (exit $ac_status); } &&
26295 { ac_try='test -z "$ac_c_werror_flag"
26296 || test ! -s conftest.err'
26297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26298 (eval $ac_try) 2>&5
26300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26301 (exit $ac_status); }; } &&
26302 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
26308 cat >>confdefs.h <<\_ACEOF
26309 #define HAVE_UINTXX_T 1
26312 echo "$as_me:$LINENO: result: yes" >&5
26313 echo "${ECHO_T}yes" >&6
26315 echo "$as_me: failed program was:" >&5
26316 sed 's/^/| /' conftest.$ac_ext >&5
26318 echo "$as_me:$LINENO: result: no" >&5
26319 echo "${ECHO_T}no" >&6
26322 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26358 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26359 echo "$as_me:$LINENO: checking for $ac_func" >&5
26360 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26361 if eval "test \"\${$as_ac_var+set}\" = set"; then
26362 echo $ECHO_N "(cached) $ECHO_C" >&6
26364 cat >conftest.$ac_ext <<_ACEOF
26367 cat confdefs.h >>conftest.$ac_ext
26368 cat >>conftest.$ac_ext <<_ACEOF
26369 /* end confdefs.h. */
26370 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26371 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26372 #define $ac_func innocuous_$ac_func
26374 /* System header to define __stub macros and hopefully few prototypes,
26375 which can conflict with char $ac_func (); below.
26376 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26377 <limits.h> exists even on freestanding compilers. */
26380 # include <limits.h>
26382 # include <assert.h>
26387 /* Override any gcc2 internal prototype to avoid an error. */
26392 /* We use char because int might match the return type of a gcc2
26393 builtin and then its argument prototype would still apply. */
26395 /* The GNU C library defines this for functions which it implements
26396 to always fail with ENOSYS. Some functions are actually named
26397 something starting with __ and the normal name is an alias. */
26398 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26401 char (*f) () = $ac_func;
26410 return f != $ac_func;
26415 rm -f conftest.$ac_objext conftest$ac_exeext
26416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26417 (eval $ac_link) 2>conftest.er1
26419 grep -v '^ *+' conftest.er1 >conftest.err
26421 cat conftest.err >&5
26422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26423 (exit $ac_status); } &&
26424 { ac_try='test -z "$ac_c_werror_flag"
26425 || test ! -s conftest.err'
26426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26427 (eval $ac_try) 2>&5
26429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26430 (exit $ac_status); }; } &&
26431 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
26437 eval "$as_ac_var=yes"
26439 echo "$as_me: failed program was:" >&5
26440 sed 's/^/| /' conftest.$ac_ext >&5
26442 eval "$as_ac_var=no"
26444 rm -f conftest.err conftest.$ac_objext \
26445 conftest$ac_exeext conftest.$ac_ext
26447 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26448 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26449 if test `eval echo '${'$as_ac_var'}'` = yes; then
26450 cat >>confdefs.h <<_ACEOF
26451 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26455 echo 'configure: cannot find needed function.'; exit 1
26462 for ac_func in fchdir
26464 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26465 echo "$as_me:$LINENO: checking for $ac_func" >&5
26466 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26467 if eval "test \"\${$as_ac_var+set}\" = set"; then
26468 echo $ECHO_N "(cached) $ECHO_C" >&6
26470 cat >conftest.$ac_ext <<_ACEOF
26473 cat confdefs.h >>conftest.$ac_ext
26474 cat >>conftest.$ac_ext <<_ACEOF
26475 /* end confdefs.h. */
26476 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26477 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26478 #define $ac_func innocuous_$ac_func
26480 /* System header to define __stub macros and hopefully few prototypes,
26481 which can conflict with char $ac_func (); below.
26482 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26483 <limits.h> exists even on freestanding compilers. */
26486 # include <limits.h>
26488 # include <assert.h>
26493 /* Override any gcc2 internal prototype to avoid an error. */
26498 /* We use char because int might match the return type of a gcc2
26499 builtin and then its argument prototype would still apply. */
26501 /* The GNU C library defines this for functions which it implements
26502 to always fail with ENOSYS. Some functions are actually named
26503 something starting with __ and the normal name is an alias. */
26504 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26507 char (*f) () = $ac_func;
26516 return f != $ac_func;
26521 rm -f conftest.$ac_objext conftest$ac_exeext
26522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26523 (eval $ac_link) 2>conftest.er1
26525 grep -v '^ *+' conftest.er1 >conftest.err
26527 cat conftest.err >&5
26528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26529 (exit $ac_status); } &&
26530 { ac_try='test -z "$ac_c_werror_flag"
26531 || test ! -s conftest.err'
26532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26533 (eval $ac_try) 2>&5
26535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26536 (exit $ac_status); }; } &&
26537 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
26543 eval "$as_ac_var=yes"
26545 echo "$as_me: failed program was:" >&5
26546 sed 's/^/| /' conftest.$ac_ext >&5
26548 eval "$as_ac_var=no"
26550 rm -f conftest.err conftest.$ac_objext \
26551 conftest$ac_exeext conftest.$ac_ext
26553 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26554 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26555 if test `eval echo '${'$as_ac_var'}'` = yes; then
26556 cat >>confdefs.h <<_ACEOF
26557 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26559 cat >>confdefs.h <<\_ACEOF
26560 #define HAVE_FCHDIR 1
26567 for ac_func in strtoll
26569 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26570 echo "$as_me:$LINENO: checking for $ac_func" >&5
26571 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26572 if eval "test \"\${$as_ac_var+set}\" = set"; then
26573 echo $ECHO_N "(cached) $ECHO_C" >&6
26575 cat >conftest.$ac_ext <<_ACEOF
26578 cat confdefs.h >>conftest.$ac_ext
26579 cat >>conftest.$ac_ext <<_ACEOF
26580 /* end confdefs.h. */
26581 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26582 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26583 #define $ac_func innocuous_$ac_func
26585 /* System header to define __stub macros and hopefully few prototypes,
26586 which can conflict with char $ac_func (); below.
26587 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26588 <limits.h> exists even on freestanding compilers. */
26591 # include <limits.h>
26593 # include <assert.h>
26598 /* Override any gcc2 internal prototype to avoid an error. */
26603 /* We use char because int might match the return type of a gcc2
26604 builtin and then its argument prototype would still apply. */
26606 /* The GNU C library defines this for functions which it implements
26607 to always fail with ENOSYS. Some functions are actually named
26608 something starting with __ and the normal name is an alias. */
26609 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26612 char (*f) () = $ac_func;
26621 return f != $ac_func;
26626 rm -f conftest.$ac_objext conftest$ac_exeext
26627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26628 (eval $ac_link) 2>conftest.er1
26630 grep -v '^ *+' conftest.er1 >conftest.err
26632 cat conftest.err >&5
26633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26634 (exit $ac_status); } &&
26635 { ac_try='test -z "$ac_c_werror_flag"
26636 || test ! -s conftest.err'
26637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26638 (eval $ac_try) 2>&5
26640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26641 (exit $ac_status); }; } &&
26642 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
26648 eval "$as_ac_var=yes"
26650 echo "$as_me: failed program was:" >&5
26651 sed 's/^/| /' conftest.$ac_ext >&5
26653 eval "$as_ac_var=no"
26655 rm -f conftest.err conftest.$ac_objext \
26656 conftest$ac_exeext conftest.$ac_ext
26658 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26659 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26660 if test `eval echo '${'$as_ac_var'}'` = yes; then
26661 cat >>confdefs.h <<_ACEOF
26662 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26664 cat >>confdefs.h <<\_ACEOF
26665 #define HAVE_STRTOLL 1
26672 for ac_func in posix_fadvise
26674 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26675 echo "$as_me:$LINENO: checking for $ac_func" >&5
26676 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26677 if eval "test \"\${$as_ac_var+set}\" = set"; then
26678 echo $ECHO_N "(cached) $ECHO_C" >&6
26680 cat >conftest.$ac_ext <<_ACEOF
26683 cat confdefs.h >>conftest.$ac_ext
26684 cat >>conftest.$ac_ext <<_ACEOF
26685 /* end confdefs.h. */
26686 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26687 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26688 #define $ac_func innocuous_$ac_func
26690 /* System header to define __stub macros and hopefully few prototypes,
26691 which can conflict with char $ac_func (); below.
26692 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26693 <limits.h> exists even on freestanding compilers. */
26696 # include <limits.h>
26698 # include <assert.h>
26703 /* Override any gcc2 internal prototype to avoid an error. */
26708 /* We use char because int might match the return type of a gcc2
26709 builtin and then its argument prototype would still apply. */
26711 /* The GNU C library defines this for functions which it implements
26712 to always fail with ENOSYS. Some functions are actually named
26713 something starting with __ and the normal name is an alias. */
26714 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26717 char (*f) () = $ac_func;
26726 return f != $ac_func;
26731 rm -f conftest.$ac_objext conftest$ac_exeext
26732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26733 (eval $ac_link) 2>conftest.er1
26735 grep -v '^ *+' conftest.er1 >conftest.err
26737 cat conftest.err >&5
26738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26739 (exit $ac_status); } &&
26740 { ac_try='test -z "$ac_c_werror_flag"
26741 || test ! -s conftest.err'
26742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26743 (eval $ac_try) 2>&5
26745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26746 (exit $ac_status); }; } &&
26747 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
26753 eval "$as_ac_var=yes"
26755 echo "$as_me: failed program was:" >&5
26756 sed 's/^/| /' conftest.$ac_ext >&5
26758 eval "$as_ac_var=no"
26760 rm -f conftest.err conftest.$ac_objext \
26761 conftest$ac_exeext conftest.$ac_ext
26763 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26764 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26765 if test `eval echo '${'$as_ac_var'}'` = yes; then
26766 cat >>confdefs.h <<_ACEOF
26767 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26774 for ac_func in fdatasync
26776 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26777 echo "$as_me:$LINENO: checking for $ac_func" >&5
26778 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26779 if eval "test \"\${$as_ac_var+set}\" = set"; then
26780 echo $ECHO_N "(cached) $ECHO_C" >&6
26782 cat >conftest.$ac_ext <<_ACEOF
26785 cat confdefs.h >>conftest.$ac_ext
26786 cat >>conftest.$ac_ext <<_ACEOF
26787 /* end confdefs.h. */
26788 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26789 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26790 #define $ac_func innocuous_$ac_func
26792 /* System header to define __stub macros and hopefully few prototypes,
26793 which can conflict with char $ac_func (); below.
26794 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26795 <limits.h> exists even on freestanding compilers. */
26798 # include <limits.h>
26800 # include <assert.h>
26805 /* Override any gcc2 internal prototype to avoid an error. */
26810 /* We use char because int might match the return type of a gcc2
26811 builtin and then its argument prototype would still apply. */
26813 /* The GNU C library defines this for functions which it implements
26814 to always fail with ENOSYS. Some functions are actually named
26815 something starting with __ and the normal name is an alias. */
26816 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26819 char (*f) () = $ac_func;
26828 return f != $ac_func;
26833 rm -f conftest.$ac_objext conftest$ac_exeext
26834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26835 (eval $ac_link) 2>conftest.er1
26837 grep -v '^ *+' conftest.er1 >conftest.err
26839 cat conftest.err >&5
26840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26841 (exit $ac_status); } &&
26842 { ac_try='test -z "$ac_c_werror_flag"
26843 || test ! -s conftest.err'
26844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26845 (eval $ac_try) 2>&5
26847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26848 (exit $ac_status); }; } &&
26849 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
26855 eval "$as_ac_var=yes"
26857 echo "$as_me: failed program was:" >&5
26858 sed 's/^/| /' conftest.$ac_ext >&5
26860 eval "$as_ac_var=no"
26862 rm -f conftest.err conftest.$ac_objext \
26863 conftest$ac_exeext conftest.$ac_ext
26865 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26866 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26867 if test `eval echo '${'$as_ac_var'}'` = yes; then
26868 cat >>confdefs.h <<_ACEOF
26869 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26877 for ac_func in chflags
26879 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26880 echo "$as_me:$LINENO: checking for $ac_func" >&5
26881 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26882 if eval "test \"\${$as_ac_var+set}\" = set"; then
26883 echo $ECHO_N "(cached) $ECHO_C" >&6
26885 cat >conftest.$ac_ext <<_ACEOF
26888 cat confdefs.h >>conftest.$ac_ext
26889 cat >>conftest.$ac_ext <<_ACEOF
26890 /* end confdefs.h. */
26891 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26892 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26893 #define $ac_func innocuous_$ac_func
26895 /* System header to define __stub macros and hopefully few prototypes,
26896 which can conflict with char $ac_func (); below.
26897 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26898 <limits.h> exists even on freestanding compilers. */
26901 # include <limits.h>
26903 # include <assert.h>
26908 /* Override any gcc2 internal prototype to avoid an error. */
26913 /* We use char because int might match the return type of a gcc2
26914 builtin and then its argument prototype would still apply. */
26916 /* The GNU C library defines this for functions which it implements
26917 to always fail with ENOSYS. Some functions are actually named
26918 something starting with __ and the normal name is an alias. */
26919 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26922 char (*f) () = $ac_func;
26931 return f != $ac_func;
26936 rm -f conftest.$ac_objext conftest$ac_exeext
26937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26938 (eval $ac_link) 2>conftest.er1
26940 grep -v '^ *+' conftest.er1 >conftest.err
26942 cat conftest.err >&5
26943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26944 (exit $ac_status); } &&
26945 { ac_try='test -z "$ac_c_werror_flag"
26946 || test ! -s conftest.err'
26947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26948 (eval $ac_try) 2>&5
26950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26951 (exit $ac_status); }; } &&
26952 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
26958 eval "$as_ac_var=yes"
26960 echo "$as_me: failed program was:" >&5
26961 sed 's/^/| /' conftest.$ac_ext >&5
26963 eval "$as_ac_var=no"
26965 rm -f conftest.err conftest.$ac_objext \
26966 conftest$ac_exeext conftest.$ac_ext
26968 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26969 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26970 if test `eval echo '${'$as_ac_var'}'` = yes; then
26971 cat >>confdefs.h <<_ACEOF
26972 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26983 for ac_func in snprintf vsnprintf gethostid fseeko
26985 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26986 echo "$as_me:$LINENO: checking for $ac_func" >&5
26987 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26988 if eval "test \"\${$as_ac_var+set}\" = set"; then
26989 echo $ECHO_N "(cached) $ECHO_C" >&6
26991 cat >conftest.$ac_ext <<_ACEOF
26994 cat confdefs.h >>conftest.$ac_ext
26995 cat >>conftest.$ac_ext <<_ACEOF
26996 /* end confdefs.h. */
26997 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26998 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26999 #define $ac_func innocuous_$ac_func
27001 /* System header to define __stub macros and hopefully few prototypes,
27002 which can conflict with char $ac_func (); below.
27003 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27004 <limits.h> exists even on freestanding compilers. */
27007 # include <limits.h>
27009 # include <assert.h>
27014 /* Override any gcc2 internal prototype to avoid an error. */
27019 /* We use char because int might match the return type of a gcc2
27020 builtin and then its argument prototype would still apply. */
27022 /* The GNU C library defines this for functions which it implements
27023 to always fail with ENOSYS. Some functions are actually named
27024 something starting with __ and the normal name is an alias. */
27025 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27028 char (*f) () = $ac_func;
27037 return f != $ac_func;
27042 rm -f conftest.$ac_objext conftest$ac_exeext
27043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27044 (eval $ac_link) 2>conftest.er1
27046 grep -v '^ *+' conftest.er1 >conftest.err
27048 cat conftest.err >&5
27049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27050 (exit $ac_status); } &&
27051 { ac_try='test -z "$ac_c_werror_flag"
27052 || test ! -s conftest.err'
27053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27054 (eval $ac_try) 2>&5
27056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27057 (exit $ac_status); }; } &&
27058 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
27064 eval "$as_ac_var=yes"
27066 echo "$as_me: failed program was:" >&5
27067 sed 's/^/| /' conftest.$ac_ext >&5
27069 eval "$as_ac_var=no"
27071 rm -f conftest.err conftest.$ac_objext \
27072 conftest$ac_exeext conftest.$ac_ext
27074 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27075 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27076 if test `eval echo '${'$as_ac_var'}'` = yes; then
27077 cat >>confdefs.h <<_ACEOF
27078 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27085 echo "$as_me:$LINENO: checking for va_copy" >&5
27086 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
27087 if test "${ba_cv_va_copy+set}" = set; then
27088 echo $ECHO_N "(cached) $ECHO_C" >&6
27090 cat >conftest.$ac_ext <<_ACEOF
27093 cat confdefs.h >>conftest.$ac_ext
27094 cat >>conftest.$ac_ext <<_ACEOF
27095 /* end confdefs.h. */
27097 #include <stdarg.h>
27098 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
27099 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
27104 call_use_va_copy(1,2,3)
27109 rm -f conftest.$ac_objext conftest$ac_exeext
27110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27111 (eval $ac_link) 2>conftest.er1
27113 grep -v '^ *+' conftest.er1 >conftest.err
27115 cat conftest.err >&5
27116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27117 (exit $ac_status); } &&
27118 { ac_try='test -z "$ac_c_werror_flag"
27119 || test ! -s conftest.err'
27120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27121 (eval $ac_try) 2>&5
27123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27124 (exit $ac_status); }; } &&
27125 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
27133 echo "$as_me: failed program was:" >&5
27134 sed 's/^/| /' conftest.$ac_ext >&5
27138 rm -f conftest.err conftest.$ac_objext \
27139 conftest$ac_exeext conftest.$ac_ext
27141 echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
27142 echo "${ECHO_T}$ba_cv_va_copy" >&6
27143 test $ba_cv_va_copy = yes &&
27144 cat >>confdefs.h <<\_ACEOF
27145 #define HAVE_VA_COPY 1
27154 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
27156 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27157 echo "$as_me:$LINENO: checking for $ac_func" >&5
27158 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27159 if eval "test \"\${$as_ac_var+set}\" = set"; then
27160 echo $ECHO_N "(cached) $ECHO_C" >&6
27162 cat >conftest.$ac_ext <<_ACEOF
27165 cat confdefs.h >>conftest.$ac_ext
27166 cat >>conftest.$ac_ext <<_ACEOF
27167 /* end confdefs.h. */
27168 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27169 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27170 #define $ac_func innocuous_$ac_func
27172 /* System header to define __stub macros and hopefully few prototypes,
27173 which can conflict with char $ac_func (); below.
27174 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27175 <limits.h> exists even on freestanding compilers. */
27178 # include <limits.h>
27180 # include <assert.h>
27185 /* Override any gcc2 internal prototype to avoid an error. */
27190 /* We use char because int might match the return type of a gcc2
27191 builtin and then its argument prototype would still apply. */
27193 /* The GNU C library defines this for functions which it implements
27194 to always fail with ENOSYS. Some functions are actually named
27195 something starting with __ and the normal name is an alias. */
27196 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27199 char (*f) () = $ac_func;
27208 return f != $ac_func;
27213 rm -f conftest.$ac_objext conftest$ac_exeext
27214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27215 (eval $ac_link) 2>conftest.er1
27217 grep -v '^ *+' conftest.er1 >conftest.err
27219 cat conftest.err >&5
27220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27221 (exit $ac_status); } &&
27222 { ac_try='test -z "$ac_c_werror_flag"
27223 || test ! -s conftest.err'
27224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27225 (eval $ac_try) 2>&5
27227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27228 (exit $ac_status); }; } &&
27229 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
27235 eval "$as_ac_var=yes"
27237 echo "$as_me: failed program was:" >&5
27238 sed 's/^/| /' conftest.$ac_ext >&5
27240 eval "$as_ac_var=no"
27242 rm -f conftest.err conftest.$ac_objext \
27243 conftest$ac_exeext conftest.$ac_ext
27245 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27246 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27247 if test `eval echo '${'$as_ac_var'}'` = yes; then
27248 cat >>confdefs.h <<_ACEOF
27249 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27256 # If resolver functions are not in libc check for -lnsl or -lresolv.
27257 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
27258 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
27259 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
27260 echo $ECHO_N "(cached) $ECHO_C" >&6
27262 cat >conftest.$ac_ext <<_ACEOF
27265 cat confdefs.h >>conftest.$ac_ext
27266 cat >>conftest.$ac_ext <<_ACEOF
27267 /* end confdefs.h. */
27268 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
27269 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27270 #define gethostbyname_r innocuous_gethostbyname_r
27272 /* System header to define __stub macros and hopefully few prototypes,
27273 which can conflict with char gethostbyname_r (); below.
27274 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27275 <limits.h> exists even on freestanding compilers. */
27278 # include <limits.h>
27280 # include <assert.h>
27283 #undef gethostbyname_r
27285 /* Override any gcc2 internal prototype to avoid an error. */
27290 /* We use char because int might match the return type of a gcc2
27291 builtin and then its argument prototype would still apply. */
27292 char gethostbyname_r ();
27293 /* The GNU C library defines this for functions which it implements
27294 to always fail with ENOSYS. Some functions are actually named
27295 something starting with __ and the normal name is an alias. */
27296 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
27299 char (*f) () = gethostbyname_r;
27308 return f != gethostbyname_r;
27313 rm -f conftest.$ac_objext conftest$ac_exeext
27314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27315 (eval $ac_link) 2>conftest.er1
27317 grep -v '^ *+' conftest.er1 >conftest.err
27319 cat conftest.err >&5
27320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27321 (exit $ac_status); } &&
27322 { ac_try='test -z "$ac_c_werror_flag"
27323 || test ! -s conftest.err'
27324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27325 (eval $ac_try) 2>&5
27327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27328 (exit $ac_status); }; } &&
27329 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
27335 ac_cv_func_gethostbyname_r=yes
27337 echo "$as_me: failed program was:" >&5
27338 sed 's/^/| /' conftest.$ac_ext >&5
27340 ac_cv_func_gethostbyname_r=no
27342 rm -f conftest.err conftest.$ac_objext \
27343 conftest$ac_exeext conftest.$ac_ext
27345 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
27346 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
27347 if test $ac_cv_func_gethostbyname_r = yes; then
27348 echo "$as_me:$LINENO: result: using libc's resolver" >&5
27349 echo "${ECHO_T}using libc's resolver" >&6
27352 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
27353 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
27354 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
27355 echo $ECHO_N "(cached) $ECHO_C" >&6
27357 ac_check_lib_save_LIBS=$LIBS
27359 cat >conftest.$ac_ext <<_ACEOF
27362 cat confdefs.h >>conftest.$ac_ext
27363 cat >>conftest.$ac_ext <<_ACEOF
27364 /* end confdefs.h. */
27366 /* Override any gcc2 internal prototype to avoid an error. */
27370 /* We use char because int might match the return type of a gcc2
27371 builtin and then its argument prototype would still apply. */
27372 char gethostbyname_r ();
27376 gethostbyname_r ();
27381 rm -f conftest.$ac_objext conftest$ac_exeext
27382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27383 (eval $ac_link) 2>conftest.er1
27385 grep -v '^ *+' conftest.er1 >conftest.err
27387 cat conftest.err >&5
27388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27389 (exit $ac_status); } &&
27390 { ac_try='test -z "$ac_c_werror_flag"
27391 || test ! -s conftest.err'
27392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27393 (eval $ac_try) 2>&5
27395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27396 (exit $ac_status); }; } &&
27397 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
27403 ac_cv_lib_nsl_gethostbyname_r=yes
27405 echo "$as_me: failed program was:" >&5
27406 sed 's/^/| /' conftest.$ac_ext >&5
27408 ac_cv_lib_nsl_gethostbyname_r=no
27410 rm -f conftest.err conftest.$ac_objext \
27411 conftest$ac_exeext conftest.$ac_ext
27412 LIBS=$ac_check_lib_save_LIBS
27414 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
27415 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
27416 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
27417 cat >>confdefs.h <<_ACEOF
27418 #define HAVE_LIBNSL 1
27426 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
27427 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
27428 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
27429 echo $ECHO_N "(cached) $ECHO_C" >&6
27431 ac_check_lib_save_LIBS=$LIBS
27432 LIBS="-lresolv $LIBS"
27433 cat >conftest.$ac_ext <<_ACEOF
27436 cat confdefs.h >>conftest.$ac_ext
27437 cat >>conftest.$ac_ext <<_ACEOF
27438 /* end confdefs.h. */
27440 /* Override any gcc2 internal prototype to avoid an error. */
27444 /* We use char because int might match the return type of a gcc2
27445 builtin and then its argument prototype would still apply. */
27446 char gethostbyname_r ();
27450 gethostbyname_r ();
27455 rm -f conftest.$ac_objext conftest$ac_exeext
27456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27457 (eval $ac_link) 2>conftest.er1
27459 grep -v '^ *+' conftest.er1 >conftest.err
27461 cat conftest.err >&5
27462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27463 (exit $ac_status); } &&
27464 { ac_try='test -z "$ac_c_werror_flag"
27465 || test ! -s conftest.err'
27466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27467 (eval $ac_try) 2>&5
27469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27470 (exit $ac_status); }; } &&
27471 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
27477 ac_cv_lib_resolv_gethostbyname_r=yes
27479 echo "$as_me: failed program was:" >&5
27480 sed 's/^/| /' conftest.$ac_ext >&5
27482 ac_cv_lib_resolv_gethostbyname_r=no
27484 rm -f conftest.err conftest.$ac_objext \
27485 conftest$ac_exeext conftest.$ac_ext
27486 LIBS=$ac_check_lib_save_LIBS
27488 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
27489 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
27490 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
27491 cat >>confdefs.h <<_ACEOF
27492 #define HAVE_LIBRESOLV 1
27495 LIBS="-lresolv $LIBS"
27505 for ac_func in inet_pton
27507 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27508 echo "$as_me:$LINENO: checking for $ac_func" >&5
27509 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27510 if eval "test \"\${$as_ac_var+set}\" = set"; then
27511 echo $ECHO_N "(cached) $ECHO_C" >&6
27513 cat >conftest.$ac_ext <<_ACEOF
27516 cat confdefs.h >>conftest.$ac_ext
27517 cat >>conftest.$ac_ext <<_ACEOF
27518 /* end confdefs.h. */
27519 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27520 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27521 #define $ac_func innocuous_$ac_func
27523 /* System header to define __stub macros and hopefully few prototypes,
27524 which can conflict with char $ac_func (); below.
27525 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27526 <limits.h> exists even on freestanding compilers. */
27529 # include <limits.h>
27531 # include <assert.h>
27536 /* Override any gcc2 internal prototype to avoid an error. */
27541 /* We use char because int might match the return type of a gcc2
27542 builtin and then its argument prototype would still apply. */
27544 /* The GNU C library defines this for functions which it implements
27545 to always fail with ENOSYS. Some functions are actually named
27546 something starting with __ and the normal name is an alias. */
27547 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27550 char (*f) () = $ac_func;
27559 return f != $ac_func;
27564 rm -f conftest.$ac_objext conftest$ac_exeext
27565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27566 (eval $ac_link) 2>conftest.er1
27568 grep -v '^ *+' conftest.er1 >conftest.err
27570 cat conftest.err >&5
27571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27572 (exit $ac_status); } &&
27573 { ac_try='test -z "$ac_c_werror_flag"
27574 || test ! -s conftest.err'
27575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27576 (eval $ac_try) 2>&5
27578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27579 (exit $ac_status); }; } &&
27580 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
27586 eval "$as_ac_var=yes"
27588 echo "$as_me: failed program was:" >&5
27589 sed 's/^/| /' conftest.$ac_ext >&5
27591 eval "$as_ac_var=no"
27593 rm -f conftest.err conftest.$ac_objext \
27594 conftest$ac_exeext conftest.$ac_ext
27596 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27597 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27598 if test `eval echo '${'$as_ac_var'}'` = yes; then
27599 cat >>confdefs.h <<_ACEOF
27600 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27602 cat >>confdefs.h <<\_ACEOF
27603 #define HAVE_INET_PTON 1
27610 for ac_func in inet_ntop
27612 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27613 echo "$as_me:$LINENO: checking for $ac_func" >&5
27614 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27615 if eval "test \"\${$as_ac_var+set}\" = set"; then
27616 echo $ECHO_N "(cached) $ECHO_C" >&6
27618 cat >conftest.$ac_ext <<_ACEOF
27621 cat confdefs.h >>conftest.$ac_ext
27622 cat >>conftest.$ac_ext <<_ACEOF
27623 /* end confdefs.h. */
27624 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27625 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27626 #define $ac_func innocuous_$ac_func
27628 /* System header to define __stub macros and hopefully few prototypes,
27629 which can conflict with char $ac_func (); below.
27630 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27631 <limits.h> exists even on freestanding compilers. */
27634 # include <limits.h>
27636 # include <assert.h>
27641 /* Override any gcc2 internal prototype to avoid an error. */
27646 /* We use char because int might match the return type of a gcc2
27647 builtin and then its argument prototype would still apply. */
27649 /* The GNU C library defines this for functions which it implements
27650 to always fail with ENOSYS. Some functions are actually named
27651 something starting with __ and the normal name is an alias. */
27652 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27655 char (*f) () = $ac_func;
27664 return f != $ac_func;
27669 rm -f conftest.$ac_objext conftest$ac_exeext
27670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27671 (eval $ac_link) 2>conftest.er1
27673 grep -v '^ *+' conftest.er1 >conftest.err
27675 cat conftest.err >&5
27676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27677 (exit $ac_status); } &&
27678 { ac_try='test -z "$ac_c_werror_flag"
27679 || test ! -s conftest.err'
27680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27681 (eval $ac_try) 2>&5
27683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27684 (exit $ac_status); }; } &&
27685 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
27691 eval "$as_ac_var=yes"
27693 echo "$as_me: failed program was:" >&5
27694 sed 's/^/| /' conftest.$ac_ext >&5
27696 eval "$as_ac_var=no"
27698 rm -f conftest.err conftest.$ac_objext \
27699 conftest$ac_exeext conftest.$ac_ext
27701 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27702 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27703 if test `eval echo '${'$as_ac_var'}'` = yes; then
27704 cat >>confdefs.h <<_ACEOF
27705 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27707 cat >>confdefs.h <<\_ACEOF
27708 #define HAVE_INET_NTOP 1
27715 for ac_func in gethostbyname2
27717 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27718 echo "$as_me:$LINENO: checking for $ac_func" >&5
27719 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27720 if eval "test \"\${$as_ac_var+set}\" = set"; then
27721 echo $ECHO_N "(cached) $ECHO_C" >&6
27723 cat >conftest.$ac_ext <<_ACEOF
27726 cat confdefs.h >>conftest.$ac_ext
27727 cat >>conftest.$ac_ext <<_ACEOF
27728 /* end confdefs.h. */
27729 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27730 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27731 #define $ac_func innocuous_$ac_func
27733 /* System header to define __stub macros and hopefully few prototypes,
27734 which can conflict with char $ac_func (); below.
27735 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27736 <limits.h> exists even on freestanding compilers. */
27739 # include <limits.h>
27741 # include <assert.h>
27746 /* Override any gcc2 internal prototype to avoid an error. */
27751 /* We use char because int might match the return type of a gcc2
27752 builtin and then its argument prototype would still apply. */
27754 /* The GNU C library defines this for functions which it implements
27755 to always fail with ENOSYS. Some functions are actually named
27756 something starting with __ and the normal name is an alias. */
27757 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27760 char (*f) () = $ac_func;
27769 return f != $ac_func;
27774 rm -f conftest.$ac_objext conftest$ac_exeext
27775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27776 (eval $ac_link) 2>conftest.er1
27778 grep -v '^ *+' conftest.er1 >conftest.err
27780 cat conftest.err >&5
27781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27782 (exit $ac_status); } &&
27783 { ac_try='test -z "$ac_c_werror_flag"
27784 || test ! -s conftest.err'
27785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27786 (eval $ac_try) 2>&5
27788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27789 (exit $ac_status); }; } &&
27790 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
27796 eval "$as_ac_var=yes"
27798 echo "$as_me: failed program was:" >&5
27799 sed 's/^/| /' conftest.$ac_ext >&5
27801 eval "$as_ac_var=no"
27803 rm -f conftest.err conftest.$ac_objext \
27804 conftest$ac_exeext conftest.$ac_ext
27806 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27807 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27808 if test `eval echo '${'$as_ac_var'}'` = yes; then
27809 cat >>confdefs.h <<_ACEOF
27810 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27812 cat >>confdefs.h <<\_ACEOF
27813 #define HAVE_GETHOSTBYNAME2 1
27820 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
27821 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
27822 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
27823 echo $ECHO_N "(cached) $ECHO_C" >&6
27825 cat >conftest.$ac_ext <<_ACEOF
27828 cat confdefs.h >>conftest.$ac_ext
27829 cat >>conftest.$ac_ext <<_ACEOF
27830 /* end confdefs.h. */
27831 #include <sys/socket.h>
27835 struct sockaddr s; s.sa_len;
27840 rm -f conftest.$ac_objext
27841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27842 (eval $ac_compile) 2>conftest.er1
27844 grep -v '^ *+' conftest.er1 >conftest.err
27846 cat conftest.err >&5
27847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27848 (exit $ac_status); } &&
27849 { ac_try='test -z "$ac_c_werror_flag"
27850 || test ! -s conftest.err'
27851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27852 (eval $ac_try) 2>&5
27854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27855 (exit $ac_status); }; } &&
27856 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
27862 ac_cv_struct_sockaddr_sa_len=yes
27864 echo "$as_me: failed program was:" >&5
27865 sed 's/^/| /' conftest.$ac_ext >&5
27867 ac_cv_struct_sockaddr_sa_len=no
27869 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27871 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
27872 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
27874 if test $ac_cv_struct_sockaddr_sa_len = yes; then
27876 cat >>confdefs.h <<\_ACEOF
27877 #define HAVE_SA_LEN 1
27886 for ac_func in strftime
27888 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27889 echo "$as_me:$LINENO: checking for $ac_func" >&5
27890 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27891 if eval "test \"\${$as_ac_var+set}\" = set"; then
27892 echo $ECHO_N "(cached) $ECHO_C" >&6
27894 cat >conftest.$ac_ext <<_ACEOF
27897 cat confdefs.h >>conftest.$ac_ext
27898 cat >>conftest.$ac_ext <<_ACEOF
27899 /* end confdefs.h. */
27900 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27901 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27902 #define $ac_func innocuous_$ac_func
27904 /* System header to define __stub macros and hopefully few prototypes,
27905 which can conflict with char $ac_func (); below.
27906 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27907 <limits.h> exists even on freestanding compilers. */
27910 # include <limits.h>
27912 # include <assert.h>
27917 /* Override any gcc2 internal prototype to avoid an error. */
27922 /* We use char because int might match the return type of a gcc2
27923 builtin and then its argument prototype would still apply. */
27925 /* The GNU C library defines this for functions which it implements
27926 to always fail with ENOSYS. Some functions are actually named
27927 something starting with __ and the normal name is an alias. */
27928 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27931 char (*f) () = $ac_func;
27940 return f != $ac_func;
27945 rm -f conftest.$ac_objext conftest$ac_exeext
27946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27947 (eval $ac_link) 2>conftest.er1
27949 grep -v '^ *+' conftest.er1 >conftest.err
27951 cat conftest.err >&5
27952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27953 (exit $ac_status); } &&
27954 { ac_try='test -z "$ac_c_werror_flag"
27955 || test ! -s conftest.err'
27956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27957 (eval $ac_try) 2>&5
27959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27960 (exit $ac_status); }; } &&
27961 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
27967 eval "$as_ac_var=yes"
27969 echo "$as_me: failed program was:" >&5
27970 sed 's/^/| /' conftest.$ac_ext >&5
27972 eval "$as_ac_var=no"
27974 rm -f conftest.err conftest.$ac_objext \
27975 conftest$ac_exeext conftest.$ac_ext
27977 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27978 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27979 if test `eval echo '${'$as_ac_var'}'` = yes; then
27980 cat >>confdefs.h <<_ACEOF
27981 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27985 # strftime is in -lintl on SCO UNIX.
27986 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
27987 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
27988 if test "${ac_cv_lib_intl_strftime+set}" = set; then
27989 echo $ECHO_N "(cached) $ECHO_C" >&6
27991 ac_check_lib_save_LIBS=$LIBS
27992 LIBS="-lintl $LIBS"
27993 cat >conftest.$ac_ext <<_ACEOF
27996 cat confdefs.h >>conftest.$ac_ext
27997 cat >>conftest.$ac_ext <<_ACEOF
27998 /* end confdefs.h. */
28000 /* Override any gcc2 internal prototype to avoid an error. */
28004 /* We use char because int might match the return type of a gcc2
28005 builtin and then its argument prototype would still apply. */
28015 rm -f conftest.$ac_objext conftest$ac_exeext
28016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28017 (eval $ac_link) 2>conftest.er1
28019 grep -v '^ *+' conftest.er1 >conftest.err
28021 cat conftest.err >&5
28022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28023 (exit $ac_status); } &&
28024 { ac_try='test -z "$ac_c_werror_flag"
28025 || test ! -s conftest.err'
28026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28027 (eval $ac_try) 2>&5
28029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28030 (exit $ac_status); }; } &&
28031 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
28037 ac_cv_lib_intl_strftime=yes
28039 echo "$as_me: failed program was:" >&5
28040 sed 's/^/| /' conftest.$ac_ext >&5
28042 ac_cv_lib_intl_strftime=no
28044 rm -f conftest.err conftest.$ac_objext \
28045 conftest$ac_exeext conftest.$ac_ext
28046 LIBS=$ac_check_lib_save_LIBS
28048 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
28049 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
28050 if test $ac_cv_lib_intl_strftime = yes; then
28051 cat >>confdefs.h <<\_ACEOF
28052 #define HAVE_STRFTIME 1
28055 LIBS="-lintl $LIBS"
28062 for ac_func in vprintf
28064 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28065 echo "$as_me:$LINENO: checking for $ac_func" >&5
28066 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28067 if eval "test \"\${$as_ac_var+set}\" = set"; then
28068 echo $ECHO_N "(cached) $ECHO_C" >&6
28070 cat >conftest.$ac_ext <<_ACEOF
28073 cat confdefs.h >>conftest.$ac_ext
28074 cat >>conftest.$ac_ext <<_ACEOF
28075 /* end confdefs.h. */
28076 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28077 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28078 #define $ac_func innocuous_$ac_func
28080 /* System header to define __stub macros and hopefully few prototypes,
28081 which can conflict with char $ac_func (); below.
28082 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28083 <limits.h> exists even on freestanding compilers. */
28086 # include <limits.h>
28088 # include <assert.h>
28093 /* Override any gcc2 internal prototype to avoid an error. */
28098 /* We use char because int might match the return type of a gcc2
28099 builtin and then its argument prototype would still apply. */
28101 /* The GNU C library defines this for functions which it implements
28102 to always fail with ENOSYS. Some functions are actually named
28103 something starting with __ and the normal name is an alias. */
28104 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28107 char (*f) () = $ac_func;
28116 return f != $ac_func;
28121 rm -f conftest.$ac_objext conftest$ac_exeext
28122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28123 (eval $ac_link) 2>conftest.er1
28125 grep -v '^ *+' conftest.er1 >conftest.err
28127 cat conftest.err >&5
28128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28129 (exit $ac_status); } &&
28130 { ac_try='test -z "$ac_c_werror_flag"
28131 || test ! -s conftest.err'
28132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28133 (eval $ac_try) 2>&5
28135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28136 (exit $ac_status); }; } &&
28137 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
28143 eval "$as_ac_var=yes"
28145 echo "$as_me: failed program was:" >&5
28146 sed 's/^/| /' conftest.$ac_ext >&5
28148 eval "$as_ac_var=no"
28150 rm -f conftest.err conftest.$ac_objext \
28151 conftest$ac_exeext conftest.$ac_ext
28153 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28154 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28155 if test `eval echo '${'$as_ac_var'}'` = yes; then
28156 cat >>confdefs.h <<_ACEOF
28157 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28160 echo "$as_me:$LINENO: checking for _doprnt" >&5
28161 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
28162 if test "${ac_cv_func__doprnt+set}" = set; then
28163 echo $ECHO_N "(cached) $ECHO_C" >&6
28165 cat >conftest.$ac_ext <<_ACEOF
28168 cat confdefs.h >>conftest.$ac_ext
28169 cat >>conftest.$ac_ext <<_ACEOF
28170 /* end confdefs.h. */
28171 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
28172 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28173 #define _doprnt innocuous__doprnt
28175 /* System header to define __stub macros and hopefully few prototypes,
28176 which can conflict with char _doprnt (); below.
28177 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28178 <limits.h> exists even on freestanding compilers. */
28181 # include <limits.h>
28183 # include <assert.h>
28188 /* Override any gcc2 internal prototype to avoid an error. */
28193 /* We use char because int might match the return type of a gcc2
28194 builtin and then its argument prototype would still apply. */
28196 /* The GNU C library defines this for functions which it implements
28197 to always fail with ENOSYS. Some functions are actually named
28198 something starting with __ and the normal name is an alias. */
28199 #if defined (__stub__doprnt) || defined (__stub____doprnt)
28202 char (*f) () = _doprnt;
28211 return f != _doprnt;
28216 rm -f conftest.$ac_objext conftest$ac_exeext
28217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28218 (eval $ac_link) 2>conftest.er1
28220 grep -v '^ *+' conftest.er1 >conftest.err
28222 cat conftest.err >&5
28223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28224 (exit $ac_status); } &&
28225 { ac_try='test -z "$ac_c_werror_flag"
28226 || test ! -s conftest.err'
28227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28228 (eval $ac_try) 2>&5
28230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28231 (exit $ac_status); }; } &&
28232 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
28238 ac_cv_func__doprnt=yes
28240 echo "$as_me: failed program was:" >&5
28241 sed 's/^/| /' conftest.$ac_ext >&5
28243 ac_cv_func__doprnt=no
28245 rm -f conftest.err conftest.$ac_objext \
28246 conftest$ac_exeext conftest.$ac_ext
28248 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
28249 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
28250 if test $ac_cv_func__doprnt = yes; then
28252 cat >>confdefs.h <<\_ACEOF
28253 #define HAVE_DOPRNT 1
28262 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28263 # for constant arguments. Useless!
28264 echo "$as_me:$LINENO: checking for working alloca.h" >&5
28265 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
28266 if test "${ac_cv_working_alloca_h+set}" = set; then
28267 echo $ECHO_N "(cached) $ECHO_C" >&6
28269 cat >conftest.$ac_ext <<_ACEOF
28272 cat confdefs.h >>conftest.$ac_ext
28273 cat >>conftest.$ac_ext <<_ACEOF
28274 /* end confdefs.h. */
28275 #include <alloca.h>
28279 char *p = (char *) alloca (2 * sizeof (int));
28284 rm -f conftest.$ac_objext conftest$ac_exeext
28285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28286 (eval $ac_link) 2>conftest.er1
28288 grep -v '^ *+' conftest.er1 >conftest.err
28290 cat conftest.err >&5
28291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28292 (exit $ac_status); } &&
28293 { ac_try='test -z "$ac_c_werror_flag"
28294 || test ! -s conftest.err'
28295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28296 (eval $ac_try) 2>&5
28298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28299 (exit $ac_status); }; } &&
28300 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
28306 ac_cv_working_alloca_h=yes
28308 echo "$as_me: failed program was:" >&5
28309 sed 's/^/| /' conftest.$ac_ext >&5
28311 ac_cv_working_alloca_h=no
28313 rm -f conftest.err conftest.$ac_objext \
28314 conftest$ac_exeext conftest.$ac_ext
28316 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
28317 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
28318 if test $ac_cv_working_alloca_h = yes; then
28320 cat >>confdefs.h <<\_ACEOF
28321 #define HAVE_ALLOCA_H 1
28326 echo "$as_me:$LINENO: checking for alloca" >&5
28327 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
28328 if test "${ac_cv_func_alloca_works+set}" = set; then
28329 echo $ECHO_N "(cached) $ECHO_C" >&6
28331 cat >conftest.$ac_ext <<_ACEOF
28334 cat confdefs.h >>conftest.$ac_ext
28335 cat >>conftest.$ac_ext <<_ACEOF
28336 /* end confdefs.h. */
28338 # define alloca __builtin_alloca
28341 # include <malloc.h>
28342 # define alloca _alloca
28345 # include <alloca.h>
28350 # ifndef alloca /* predefined by HP cc +Olibcalls */
28361 char *p = (char *) alloca (1);
28366 rm -f conftest.$ac_objext conftest$ac_exeext
28367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28368 (eval $ac_link) 2>conftest.er1
28370 grep -v '^ *+' conftest.er1 >conftest.err
28372 cat conftest.err >&5
28373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28374 (exit $ac_status); } &&
28375 { ac_try='test -z "$ac_c_werror_flag"
28376 || test ! -s conftest.err'
28377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28378 (eval $ac_try) 2>&5
28380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28381 (exit $ac_status); }; } &&
28382 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
28388 ac_cv_func_alloca_works=yes
28390 echo "$as_me: failed program was:" >&5
28391 sed 's/^/| /' conftest.$ac_ext >&5
28393 ac_cv_func_alloca_works=no
28395 rm -f conftest.err conftest.$ac_objext \
28396 conftest$ac_exeext conftest.$ac_ext
28398 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
28399 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
28401 if test $ac_cv_func_alloca_works = yes; then
28403 cat >>confdefs.h <<\_ACEOF
28404 #define HAVE_ALLOCA 1
28408 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28409 # that cause trouble. Some versions do not even contain alloca or
28410 # contain a buggy version. If you still want to use their alloca,
28411 # use ar to extract alloca.o from them instead of compiling alloca.c.
28413 ALLOCA=alloca.$ac_objext
28415 cat >>confdefs.h <<\_ACEOF
28420 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
28421 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
28422 if test "${ac_cv_os_cray+set}" = set; then
28423 echo $ECHO_N "(cached) $ECHO_C" >&6
28425 cat >conftest.$ac_ext <<_ACEOF
28428 cat confdefs.h >>conftest.$ac_ext
28429 cat >>conftest.$ac_ext <<_ACEOF
28430 /* end confdefs.h. */
28431 #if defined(CRAY) && ! defined(CRAY2)
28438 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28439 $EGREP "webecray" >/dev/null 2>&1; then
28447 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
28448 echo "${ECHO_T}$ac_cv_os_cray" >&6
28449 if test $ac_cv_os_cray = yes; then
28450 for ac_func in _getb67 GETB67 getb67; do
28451 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28452 echo "$as_me:$LINENO: checking for $ac_func" >&5
28453 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28454 if eval "test \"\${$as_ac_var+set}\" = set"; then
28455 echo $ECHO_N "(cached) $ECHO_C" >&6
28457 cat >conftest.$ac_ext <<_ACEOF
28460 cat confdefs.h >>conftest.$ac_ext
28461 cat >>conftest.$ac_ext <<_ACEOF
28462 /* end confdefs.h. */
28463 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28464 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28465 #define $ac_func innocuous_$ac_func
28467 /* System header to define __stub macros and hopefully few prototypes,
28468 which can conflict with char $ac_func (); below.
28469 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28470 <limits.h> exists even on freestanding compilers. */
28473 # include <limits.h>
28475 # include <assert.h>
28480 /* Override any gcc2 internal prototype to avoid an error. */
28485 /* We use char because int might match the return type of a gcc2
28486 builtin and then its argument prototype would still apply. */
28488 /* The GNU C library defines this for functions which it implements
28489 to always fail with ENOSYS. Some functions are actually named
28490 something starting with __ and the normal name is an alias. */
28491 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28494 char (*f) () = $ac_func;
28503 return f != $ac_func;
28508 rm -f conftest.$ac_objext conftest$ac_exeext
28509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28510 (eval $ac_link) 2>conftest.er1
28512 grep -v '^ *+' conftest.er1 >conftest.err
28514 cat conftest.err >&5
28515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28516 (exit $ac_status); } &&
28517 { ac_try='test -z "$ac_c_werror_flag"
28518 || test ! -s conftest.err'
28519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28520 (eval $ac_try) 2>&5
28522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28523 (exit $ac_status); }; } &&
28524 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
28530 eval "$as_ac_var=yes"
28532 echo "$as_me: failed program was:" >&5
28533 sed 's/^/| /' conftest.$ac_ext >&5
28535 eval "$as_ac_var=no"
28537 rm -f conftest.err conftest.$ac_objext \
28538 conftest$ac_exeext conftest.$ac_ext
28540 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28541 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28542 if test `eval echo '${'$as_ac_var'}'` = yes; then
28544 cat >>confdefs.h <<_ACEOF
28545 #define CRAY_STACKSEG_END $ac_func
28554 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28555 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
28556 if test "${ac_cv_c_stack_direction+set}" = set; then
28557 echo $ECHO_N "(cached) $ECHO_C" >&6
28559 if test "$cross_compiling" = yes; then
28560 ac_cv_c_stack_direction=0
28562 cat >conftest.$ac_ext <<_ACEOF
28565 cat confdefs.h >>conftest.$ac_ext
28566 cat >>conftest.$ac_ext <<_ACEOF
28567 /* end confdefs.h. */
28569 find_stack_direction ()
28571 static char *addr = 0;
28576 return find_stack_direction ();
28579 return (&dummy > addr) ? 1 : -1;
28585 exit (find_stack_direction () < 0);
28588 rm -f conftest$ac_exeext
28589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28590 (eval $ac_link) 2>&5
28592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28593 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28595 (eval $ac_try) 2>&5
28597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28598 (exit $ac_status); }; }; then
28599 ac_cv_c_stack_direction=1
28601 echo "$as_me: program exited with status $ac_status" >&5
28602 echo "$as_me: failed program was:" >&5
28603 sed 's/^/| /' conftest.$ac_ext >&5
28605 ( exit $ac_status )
28606 ac_cv_c_stack_direction=-1
28608 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28611 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28612 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
28614 cat >>confdefs.h <<_ACEOF
28615 #define STACK_DIRECTION $ac_cv_c_stack_direction
28621 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
28622 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
28623 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
28624 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
28625 echo $ECHO_N "(cached) $ECHO_C" >&6
28627 ac_check_lib_save_LIBS=$LIBS
28629 cat >conftest.$ac_ext <<_ACEOF
28632 cat confdefs.h >>conftest.$ac_ext
28633 cat >>conftest.$ac_ext <<_ACEOF
28634 /* end confdefs.h. */
28636 /* Override any gcc2 internal prototype to avoid an error. */
28640 /* We use char because int might match the return type of a gcc2
28641 builtin and then its argument prototype would still apply. */
28651 rm -f conftest.$ac_objext conftest$ac_exeext
28652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28653 (eval $ac_link) 2>conftest.er1
28655 grep -v '^ *+' conftest.er1 >conftest.err
28657 cat conftest.err >&5
28658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28659 (exit $ac_status); } &&
28660 { ac_try='test -z "$ac_c_werror_flag"
28661 || test ! -s conftest.err'
28662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28663 (eval $ac_try) 2>&5
28665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28666 (exit $ac_status); }; } &&
28667 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
28673 ac_cv_lib_sun_getmntent=yes
28675 echo "$as_me: failed program was:" >&5
28676 sed 's/^/| /' conftest.$ac_ext >&5
28678 ac_cv_lib_sun_getmntent=no
28680 rm -f conftest.err conftest.$ac_objext \
28681 conftest$ac_exeext conftest.$ac_ext
28682 LIBS=$ac_check_lib_save_LIBS
28684 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
28685 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
28686 if test $ac_cv_lib_sun_getmntent = yes; then
28689 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
28690 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
28691 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
28692 echo $ECHO_N "(cached) $ECHO_C" >&6
28694 ac_check_lib_save_LIBS=$LIBS
28696 cat >conftest.$ac_ext <<_ACEOF
28699 cat confdefs.h >>conftest.$ac_ext
28700 cat >>conftest.$ac_ext <<_ACEOF
28701 /* end confdefs.h. */
28703 /* Override any gcc2 internal prototype to avoid an error. */
28707 /* We use char because int might match the return type of a gcc2
28708 builtin and then its argument prototype would still apply. */
28718 rm -f conftest.$ac_objext conftest$ac_exeext
28719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28720 (eval $ac_link) 2>conftest.er1
28722 grep -v '^ *+' conftest.er1 >conftest.err
28724 cat conftest.err >&5
28725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28726 (exit $ac_status); } &&
28727 { ac_try='test -z "$ac_c_werror_flag"
28728 || test ! -s conftest.err'
28729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28730 (eval $ac_try) 2>&5
28732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28733 (exit $ac_status); }; } &&
28734 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
28740 ac_cv_lib_seq_getmntent=yes
28742 echo "$as_me: failed program was:" >&5
28743 sed 's/^/| /' conftest.$ac_ext >&5
28745 ac_cv_lib_seq_getmntent=no
28747 rm -f conftest.err conftest.$ac_objext \
28748 conftest$ac_exeext conftest.$ac_ext
28749 LIBS=$ac_check_lib_save_LIBS
28751 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
28752 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
28753 if test $ac_cv_lib_seq_getmntent = yes; then
28756 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
28757 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
28758 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
28759 echo $ECHO_N "(cached) $ECHO_C" >&6
28761 ac_check_lib_save_LIBS=$LIBS
28763 cat >conftest.$ac_ext <<_ACEOF
28766 cat confdefs.h >>conftest.$ac_ext
28767 cat >>conftest.$ac_ext <<_ACEOF
28768 /* end confdefs.h. */
28770 /* Override any gcc2 internal prototype to avoid an error. */
28774 /* We use char because int might match the return type of a gcc2
28775 builtin and then its argument prototype would still apply. */
28785 rm -f conftest.$ac_objext conftest$ac_exeext
28786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28787 (eval $ac_link) 2>conftest.er1
28789 grep -v '^ *+' conftest.er1 >conftest.err
28791 cat conftest.err >&5
28792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28793 (exit $ac_status); } &&
28794 { ac_try='test -z "$ac_c_werror_flag"
28795 || test ! -s conftest.err'
28796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28797 (eval $ac_try) 2>&5
28799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28800 (exit $ac_status); }; } &&
28801 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
28807 ac_cv_lib_gen_getmntent=yes
28809 echo "$as_me: failed program was:" >&5
28810 sed 's/^/| /' conftest.$ac_ext >&5
28812 ac_cv_lib_gen_getmntent=no
28814 rm -f conftest.err conftest.$ac_objext \
28815 conftest$ac_exeext conftest.$ac_ext
28816 LIBS=$ac_check_lib_save_LIBS
28818 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
28819 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
28820 if test $ac_cv_lib_gen_getmntent = yes; then
28829 for ac_func in getmntent
28831 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28832 echo "$as_me:$LINENO: checking for $ac_func" >&5
28833 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28834 if eval "test \"\${$as_ac_var+set}\" = set"; then
28835 echo $ECHO_N "(cached) $ECHO_C" >&6
28837 cat >conftest.$ac_ext <<_ACEOF
28840 cat confdefs.h >>conftest.$ac_ext
28841 cat >>conftest.$ac_ext <<_ACEOF
28842 /* end confdefs.h. */
28843 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28844 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28845 #define $ac_func innocuous_$ac_func
28847 /* System header to define __stub macros and hopefully few prototypes,
28848 which can conflict with char $ac_func (); below.
28849 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28850 <limits.h> exists even on freestanding compilers. */
28853 # include <limits.h>
28855 # include <assert.h>
28860 /* Override any gcc2 internal prototype to avoid an error. */
28865 /* We use char because int might match the return type of a gcc2
28866 builtin and then its argument prototype would still apply. */
28868 /* The GNU C library defines this for functions which it implements
28869 to always fail with ENOSYS. Some functions are actually named
28870 something starting with __ and the normal name is an alias. */
28871 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28874 char (*f) () = $ac_func;
28883 return f != $ac_func;
28888 rm -f conftest.$ac_objext conftest$ac_exeext
28889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28890 (eval $ac_link) 2>conftest.er1
28892 grep -v '^ *+' conftest.er1 >conftest.err
28894 cat conftest.err >&5
28895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28896 (exit $ac_status); } &&
28897 { ac_try='test -z "$ac_c_werror_flag"
28898 || test ! -s conftest.err'
28899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28900 (eval $ac_try) 2>&5
28902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28903 (exit $ac_status); }; } &&
28904 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
28910 eval "$as_ac_var=yes"
28912 echo "$as_me: failed program was:" >&5
28913 sed 's/^/| /' conftest.$ac_ext >&5
28915 eval "$as_ac_var=no"
28917 rm -f conftest.err conftest.$ac_objext \
28918 conftest$ac_exeext conftest.$ac_ext
28920 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28921 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28922 if test `eval echo '${'$as_ac_var'}'` = yes; then
28923 cat >>confdefs.h <<_ACEOF
28924 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28931 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
28932 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
28933 if test "${ac_cv_func_closedir_void+set}" = set; then
28934 echo $ECHO_N "(cached) $ECHO_C" >&6
28936 if test "$cross_compiling" = yes; then
28937 ac_cv_func_closedir_void=yes
28939 cat >conftest.$ac_ext <<_ACEOF
28942 cat confdefs.h >>conftest.$ac_ext
28943 cat >>conftest.$ac_ext <<_ACEOF
28944 /* end confdefs.h. */
28945 $ac_includes_default
28946 #include <$ac_header_dirent>
28947 #ifndef __cplusplus
28954 exit (closedir (opendir (".")) != 0);
28959 rm -f conftest$ac_exeext
28960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28961 (eval $ac_link) 2>&5
28963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28964 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28966 (eval $ac_try) 2>&5
28968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28969 (exit $ac_status); }; }; then
28970 ac_cv_func_closedir_void=no
28972 echo "$as_me: program exited with status $ac_status" >&5
28973 echo "$as_me: failed program was:" >&5
28974 sed 's/^/| /' conftest.$ac_ext >&5
28976 ( exit $ac_status )
28977 ac_cv_func_closedir_void=yes
28979 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28982 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
28983 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
28984 if test $ac_cv_func_closedir_void = yes; then
28986 cat >>confdefs.h <<\_ACEOF
28987 #define CLOSEDIR_VOID 1
28992 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
28993 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
28994 if test "${ac_cv_func_setpgrp_void+set}" = set; then
28995 echo $ECHO_N "(cached) $ECHO_C" >&6
28997 if test "$cross_compiling" = yes; then
28998 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
28999 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
29000 { (exit 1); exit 1; }; }
29002 cat >conftest.$ac_ext <<_ACEOF
29005 cat confdefs.h >>conftest.$ac_ext
29006 cat >>conftest.$ac_ext <<_ACEOF
29007 /* end confdefs.h. */
29009 # include <unistd.h>
29015 /* If this system has a BSD-style setpgrp which takes arguments,
29016 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
29017 exit successfully. */
29018 exit (setpgrp (1,1) == -1 ? 0 : 1);
29023 rm -f conftest$ac_exeext
29024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29025 (eval $ac_link) 2>&5
29027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29028 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29030 (eval $ac_try) 2>&5
29032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29033 (exit $ac_status); }; }; then
29034 ac_cv_func_setpgrp_void=no
29036 echo "$as_me: program exited with status $ac_status" >&5
29037 echo "$as_me: failed program was:" >&5
29038 sed 's/^/| /' conftest.$ac_ext >&5
29040 ( exit $ac_status )
29041 ac_cv_func_setpgrp_void=yes
29043 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29046 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
29047 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
29048 if test $ac_cv_func_setpgrp_void = yes; then
29050 cat >>confdefs.h <<\_ACEOF
29051 #define SETPGRP_VOID 1
29055 # AC_FUNC_FNMATCH dnl use local version
29058 echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
29059 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6
29060 if test "${ac_cv_lib_intl_gettext+set}" = set; then
29061 echo $ECHO_N "(cached) $ECHO_C" >&6
29063 ac_check_lib_save_LIBS=$LIBS
29064 LIBS="-lintl $LIBS"
29065 cat >conftest.$ac_ext <<_ACEOF
29068 cat confdefs.h >>conftest.$ac_ext
29069 cat >>conftest.$ac_ext <<_ACEOF
29070 /* end confdefs.h. */
29072 /* Override any gcc2 internal prototype to avoid an error. */
29076 /* We use char because int might match the return type of a gcc2
29077 builtin and then its argument prototype would still apply. */
29087 rm -f conftest.$ac_objext conftest$ac_exeext
29088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29089 (eval $ac_link) 2>conftest.er1
29091 grep -v '^ *+' conftest.er1 >conftest.err
29093 cat conftest.err >&5
29094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29095 (exit $ac_status); } &&
29096 { ac_try='test -z "$ac_c_werror_flag"
29097 || test ! -s conftest.err'
29098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29099 (eval $ac_try) 2>&5
29101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29102 (exit $ac_status); }; } &&
29103 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
29109 ac_cv_lib_intl_gettext=yes
29111 echo "$as_me: failed program was:" >&5
29112 sed 's/^/| /' conftest.$ac_ext >&5
29114 ac_cv_lib_intl_gettext=no
29116 rm -f conftest.err conftest.$ac_objext \
29117 conftest$ac_exeext conftest.$ac_ext
29118 LIBS=$ac_check_lib_save_LIBS
29120 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
29121 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6
29122 if test $ac_cv_lib_intl_gettext = yes; then
29123 LIBS="$LIBS -lintl"
29129 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
29130 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
29131 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
29132 echo $ECHO_N "(cached) $ECHO_C" >&6
29134 ac_check_lib_save_LIBS=$LIBS
29136 cat >conftest.$ac_ext <<_ACEOF
29139 cat confdefs.h >>conftest.$ac_ext
29140 cat >>conftest.$ac_ext <<_ACEOF
29141 /* end confdefs.h. */
29143 /* Override any gcc2 internal prototype to avoid an error. */
29147 /* We use char because int might match the return type of a gcc2
29148 builtin and then its argument prototype would still apply. */
29158 rm -f conftest.$ac_objext conftest$ac_exeext
29159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29160 (eval $ac_link) 2>conftest.er1
29162 grep -v '^ *+' conftest.er1 >conftest.err
29164 cat conftest.err >&5
29165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29166 (exit $ac_status); } &&
29167 { ac_try='test -z "$ac_c_werror_flag"
29168 || test ! -s conftest.err'
29169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29170 (eval $ac_try) 2>&5
29172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29173 (exit $ac_status); }; } &&
29174 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
29180 ac_cv_lib_sun_getpwnam=yes
29182 echo "$as_me: failed program was:" >&5
29183 sed 's/^/| /' conftest.$ac_ext >&5
29185 ac_cv_lib_sun_getpwnam=no
29187 rm -f conftest.err conftest.$ac_objext \
29188 conftest$ac_exeext conftest.$ac_ext
29189 LIBS=$ac_check_lib_save_LIBS
29191 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
29192 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
29193 if test $ac_cv_lib_sun_getpwnam = yes; then
29194 cat >>confdefs.h <<_ACEOF
29195 #define HAVE_LIBSUN 1
29204 for ac_header in zlib.h
29206 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29207 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29208 echo "$as_me:$LINENO: checking for $ac_header" >&5
29209 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29210 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29211 echo $ECHO_N "(cached) $ECHO_C" >&6
29213 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29214 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29216 # Is the header compilable?
29217 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29218 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29219 cat >conftest.$ac_ext <<_ACEOF
29222 cat confdefs.h >>conftest.$ac_ext
29223 cat >>conftest.$ac_ext <<_ACEOF
29224 /* end confdefs.h. */
29225 $ac_includes_default
29226 #include <$ac_header>
29228 rm -f conftest.$ac_objext
29229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29230 (eval $ac_compile) 2>conftest.er1
29232 grep -v '^ *+' conftest.er1 >conftest.err
29234 cat conftest.err >&5
29235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29236 (exit $ac_status); } &&
29237 { ac_try='test -z "$ac_c_werror_flag"
29238 || test ! -s conftest.err'
29239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29240 (eval $ac_try) 2>&5
29242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29243 (exit $ac_status); }; } &&
29244 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
29250 ac_header_compiler=yes
29252 echo "$as_me: failed program was:" >&5
29253 sed 's/^/| /' conftest.$ac_ext >&5
29255 ac_header_compiler=no
29257 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29258 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29259 echo "${ECHO_T}$ac_header_compiler" >&6
29261 # Is the header present?
29262 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29263 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29264 cat >conftest.$ac_ext <<_ACEOF
29267 cat confdefs.h >>conftest.$ac_ext
29268 cat >>conftest.$ac_ext <<_ACEOF
29269 /* end confdefs.h. */
29270 #include <$ac_header>
29272 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29273 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29275 grep -v '^ *+' conftest.er1 >conftest.err
29277 cat conftest.err >&5
29278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29279 (exit $ac_status); } >/dev/null; then
29280 if test -s conftest.err; then
29281 ac_cpp_err=$ac_c_preproc_warn_flag
29282 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29289 if test -z "$ac_cpp_err"; then
29290 ac_header_preproc=yes
29292 echo "$as_me: failed program was:" >&5
29293 sed 's/^/| /' conftest.$ac_ext >&5
29295 ac_header_preproc=no
29297 rm -f conftest.err conftest.$ac_ext
29298 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29299 echo "${ECHO_T}$ac_header_preproc" >&6
29301 # So? What about this header?
29302 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29304 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29305 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29306 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29307 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29308 ac_header_preproc=yes
29311 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29312 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29313 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29314 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29315 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29316 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29317 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29318 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29319 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29320 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29321 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29322 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29325 ## ------------------------------------------ ##
29326 ## Report this to the AC_PACKAGE_NAME lists. ##
29327 ## ------------------------------------------ ##
29330 sed "s/^/$as_me: WARNING: /" >&2
29333 echo "$as_me:$LINENO: checking for $ac_header" >&5
29334 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29335 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29336 echo $ECHO_N "(cached) $ECHO_C" >&6
29338 eval "$as_ac_Header=\$ac_header_preproc"
29340 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29341 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29344 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29345 cat >>confdefs.h <<_ACEOF
29346 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29353 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
29354 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
29355 if test "${ac_cv_lib_z_deflate+set}" = set; then
29356 echo $ECHO_N "(cached) $ECHO_C" >&6
29358 ac_check_lib_save_LIBS=$LIBS
29360 cat >conftest.$ac_ext <<_ACEOF
29363 cat confdefs.h >>conftest.$ac_ext
29364 cat >>conftest.$ac_ext <<_ACEOF
29365 /* end confdefs.h. */
29367 /* Override any gcc2 internal prototype to avoid an error. */
29371 /* We use char because int might match the return type of a gcc2
29372 builtin and then its argument prototype would still apply. */
29382 rm -f conftest.$ac_objext conftest$ac_exeext
29383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29384 (eval $ac_link) 2>conftest.er1
29386 grep -v '^ *+' conftest.er1 >conftest.err
29388 cat conftest.err >&5
29389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29390 (exit $ac_status); } &&
29391 { ac_try='test -z "$ac_c_werror_flag"
29392 || test ! -s conftest.err'
29393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29394 (eval $ac_try) 2>&5
29396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29397 (exit $ac_status); }; } &&
29398 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
29404 ac_cv_lib_z_deflate=yes
29406 echo "$as_me: failed program was:" >&5
29407 sed 's/^/| /' conftest.$ac_ext >&5
29409 ac_cv_lib_z_deflate=no
29411 rm -f conftest.err conftest.$ac_objext \
29412 conftest$ac_exeext conftest.$ac_ext
29413 LIBS=$ac_check_lib_save_LIBS
29415 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
29416 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
29417 if test $ac_cv_lib_z_deflate = yes; then
29422 if test x$FDLIBS = x-lz; then
29423 cat >>confdefs.h <<\_ACEOF
29424 #define HAVE_LIBZ 1
29431 # Check for ACL libraries
29434 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29435 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
29436 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
29437 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29438 echo $ECHO_N "(cached) $ECHO_C" >&6
29440 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
29441 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
29443 # Is the header compilable?
29444 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
29445 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
29446 cat >conftest.$ac_ext <<_ACEOF
29449 cat confdefs.h >>conftest.$ac_ext
29450 cat >>conftest.$ac_ext <<_ACEOF
29451 /* end confdefs.h. */
29452 $ac_includes_default
29453 #include <sys/acl.h>
29455 rm -f conftest.$ac_objext
29456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29457 (eval $ac_compile) 2>conftest.er1
29459 grep -v '^ *+' conftest.er1 >conftest.err
29461 cat conftest.err >&5
29462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29463 (exit $ac_status); } &&
29464 { ac_try='test -z "$ac_c_werror_flag"
29465 || test ! -s conftest.err'
29466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29467 (eval $ac_try) 2>&5
29469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29470 (exit $ac_status); }; } &&
29471 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
29477 ac_header_compiler=yes
29479 echo "$as_me: failed program was:" >&5
29480 sed 's/^/| /' conftest.$ac_ext >&5
29482 ac_header_compiler=no
29484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29485 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29486 echo "${ECHO_T}$ac_header_compiler" >&6
29488 # Is the header present?
29489 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
29490 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
29491 cat >conftest.$ac_ext <<_ACEOF
29494 cat confdefs.h >>conftest.$ac_ext
29495 cat >>conftest.$ac_ext <<_ACEOF
29496 /* end confdefs.h. */
29497 #include <sys/acl.h>
29499 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29500 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29502 grep -v '^ *+' conftest.er1 >conftest.err
29504 cat conftest.err >&5
29505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29506 (exit $ac_status); } >/dev/null; then
29507 if test -s conftest.err; then
29508 ac_cpp_err=$ac_c_preproc_warn_flag
29509 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29516 if test -z "$ac_cpp_err"; then
29517 ac_header_preproc=yes
29519 echo "$as_me: failed program was:" >&5
29520 sed 's/^/| /' conftest.$ac_ext >&5
29522 ac_header_preproc=no
29524 rm -f conftest.err conftest.$ac_ext
29525 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29526 echo "${ECHO_T}$ac_header_preproc" >&6
29528 # So? What about this header?
29529 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29531 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
29532 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29533 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
29534 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
29535 ac_header_preproc=yes
29538 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
29539 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
29540 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
29541 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
29542 { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
29543 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
29544 { echo "$as_me:$LINENO: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&5
29545 echo "$as_me: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&2;}
29546 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
29547 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
29548 { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
29549 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
29552 ## ------------------------------------------ ##
29553 ## Report this to the AC_PACKAGE_NAME lists. ##
29554 ## ------------------------------------------ ##
29557 sed "s/^/$as_me: WARNING: /" >&2
29560 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
29561 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
29562 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29563 echo $ECHO_N "(cached) $ECHO_C" >&6
29565 ac_cv_header_sys_acl_h=$ac_header_preproc
29567 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
29568 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
29573 echo "$as_me:$LINENO: checking for acl_get_file" >&5
29574 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6
29575 if test "${ac_cv_func_acl_get_file+set}" = set; then
29576 echo $ECHO_N "(cached) $ECHO_C" >&6
29578 cat >conftest.$ac_ext <<_ACEOF
29581 cat confdefs.h >>conftest.$ac_ext
29582 cat >>conftest.$ac_ext <<_ACEOF
29583 /* end confdefs.h. */
29584 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
29585 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29586 #define acl_get_file innocuous_acl_get_file
29588 /* System header to define __stub macros and hopefully few prototypes,
29589 which can conflict with char acl_get_file (); below.
29590 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29591 <limits.h> exists even on freestanding compilers. */
29594 # include <limits.h>
29596 # include <assert.h>
29599 #undef acl_get_file
29601 /* Override any gcc2 internal prototype to avoid an error. */
29606 /* We use char because int might match the return type of a gcc2
29607 builtin and then its argument prototype would still apply. */
29608 char acl_get_file ();
29609 /* The GNU C library defines this for functions which it implements
29610 to always fail with ENOSYS. Some functions are actually named
29611 something starting with __ and the normal name is an alias. */
29612 #if defined (__stub_acl_get_file) || defined (__stub___acl_get_file)
29615 char (*f) () = acl_get_file;
29624 return f != acl_get_file;
29629 rm -f conftest.$ac_objext conftest$ac_exeext
29630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29631 (eval $ac_link) 2>conftest.er1
29633 grep -v '^ *+' conftest.er1 >conftest.err
29635 cat conftest.err >&5
29636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29637 (exit $ac_status); } &&
29638 { ac_try='test -z "$ac_c_werror_flag"
29639 || test ! -s conftest.err'
29640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29641 (eval $ac_try) 2>&5
29643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29644 (exit $ac_status); }; } &&
29645 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
29651 ac_cv_func_acl_get_file=yes
29653 echo "$as_me: failed program was:" >&5
29654 sed 's/^/| /' conftest.$ac_ext >&5
29656 ac_cv_func_acl_get_file=no
29658 rm -f conftest.err conftest.$ac_objext \
29659 conftest$ac_exeext conftest.$ac_ext
29661 echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
29662 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6
29663 if test $ac_cv_func_acl_get_file = yes; then
29666 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
29667 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
29668 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
29669 echo $ECHO_N "(cached) $ECHO_C" >&6
29671 ac_check_lib_save_LIBS=$LIBS
29673 cat >conftest.$ac_ext <<_ACEOF
29676 cat confdefs.h >>conftest.$ac_ext
29677 cat >>conftest.$ac_ext <<_ACEOF
29678 /* end confdefs.h. */
29680 /* Override any gcc2 internal prototype to avoid an error. */
29684 /* We use char because int might match the return type of a gcc2
29685 builtin and then its argument prototype would still apply. */
29686 char acl_get_file ();
29695 rm -f conftest.$ac_objext conftest$ac_exeext
29696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29697 (eval $ac_link) 2>conftest.er1
29699 grep -v '^ *+' conftest.er1 >conftest.err
29701 cat conftest.err >&5
29702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29703 (exit $ac_status); } &&
29704 { ac_try='test -z "$ac_c_werror_flag"
29705 || test ! -s conftest.err'
29706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29707 (eval $ac_try) 2>&5
29709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29710 (exit $ac_status); }; } &&
29711 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
29717 ac_cv_lib_acl_acl_get_file=yes
29719 echo "$as_me: failed program was:" >&5
29720 sed 's/^/| /' conftest.$ac_ext >&5
29722 ac_cv_lib_acl_acl_get_file=no
29724 rm -f conftest.err conftest.$ac_objext \
29725 conftest$ac_exeext conftest.$ac_ext
29726 LIBS=$ac_check_lib_save_LIBS
29728 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
29729 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
29730 if test $ac_cv_lib_acl_acl_get_file = yes; then
29731 have_acl=yes; FDLIBS="-lacl $FDLIBS"
29733 echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
29734 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6
29735 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
29736 echo $ECHO_N "(cached) $ECHO_C" >&6
29738 ac_check_lib_save_LIBS=$LIBS
29740 cat >conftest.$ac_ext <<_ACEOF
29743 cat confdefs.h >>conftest.$ac_ext
29744 cat >>conftest.$ac_ext <<_ACEOF
29745 /* end confdefs.h. */
29747 /* Override any gcc2 internal prototype to avoid an error. */
29751 /* We use char because int might match the return type of a gcc2
29752 builtin and then its argument prototype would still apply. */
29762 rm -f conftest.$ac_objext conftest$ac_exeext
29763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29764 (eval $ac_link) 2>conftest.er1
29766 grep -v '^ *+' conftest.er1 >conftest.err
29768 cat conftest.err >&5
29769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29770 (exit $ac_status); } &&
29771 { ac_try='test -z "$ac_c_werror_flag"
29772 || test ! -s conftest.err'
29773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29774 (eval $ac_try) 2>&5
29776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29777 (exit $ac_status); }; } &&
29778 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
29784 ac_cv_lib_sec_acltotext=yes
29786 echo "$as_me: failed program was:" >&5
29787 sed 's/^/| /' conftest.$ac_ext >&5
29789 ac_cv_lib_sec_acltotext=no
29791 rm -f conftest.err conftest.$ac_objext \
29792 conftest$ac_exeext conftest.$ac_ext
29793 LIBS=$ac_check_lib_save_LIBS
29795 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
29796 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6
29797 if test $ac_cv_lib_sec_acltotext = yes; then
29798 have_acl=yes; FDLIBS="-lsec $FDLIBS"
29807 if test $have_acl = yes; then
29808 cat >>confdefs.h <<\_ACEOF
29815 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
29816 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
29817 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
29818 echo $ECHO_N "(cached) $ECHO_C" >&6
29820 ac_check_lib_save_LIBS=$LIBS
29821 LIBS="-lpthread $LIBS"
29822 cat >conftest.$ac_ext <<_ACEOF
29825 cat confdefs.h >>conftest.$ac_ext
29826 cat >>conftest.$ac_ext <<_ACEOF
29827 /* end confdefs.h. */
29829 /* Override any gcc2 internal prototype to avoid an error. */
29833 /* We use char because int might match the return type of a gcc2
29834 builtin and then its argument prototype would still apply. */
29835 char pthread_create ();
29844 rm -f conftest.$ac_objext conftest$ac_exeext
29845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29846 (eval $ac_link) 2>conftest.er1
29848 grep -v '^ *+' conftest.er1 >conftest.err
29850 cat conftest.err >&5
29851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29852 (exit $ac_status); } &&
29853 { ac_try='test -z "$ac_c_werror_flag"
29854 || test ! -s conftest.err'
29855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29856 (eval $ac_try) 2>&5
29858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29859 (exit $ac_status); }; } &&
29860 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
29866 ac_cv_lib_pthread_pthread_create=yes
29868 echo "$as_me: failed program was:" >&5
29869 sed 's/^/| /' conftest.$ac_ext >&5
29871 ac_cv_lib_pthread_pthread_create=no
29873 rm -f conftest.err conftest.$ac_objext \
29874 conftest$ac_exeext conftest.$ac_ext
29875 LIBS=$ac_check_lib_save_LIBS
29877 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
29878 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
29879 if test $ac_cv_lib_pthread_pthread_create = yes; then
29880 PTHREAD_LIB="-lpthread"
29882 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
29883 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
29884 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
29885 echo $ECHO_N "(cached) $ECHO_C" >&6
29887 ac_check_lib_save_LIBS=$LIBS
29888 LIBS="-lpthreads $LIBS"
29889 cat >conftest.$ac_ext <<_ACEOF
29892 cat confdefs.h >>conftest.$ac_ext
29893 cat >>conftest.$ac_ext <<_ACEOF
29894 /* end confdefs.h. */
29896 /* Override any gcc2 internal prototype to avoid an error. */
29900 /* We use char because int might match the return type of a gcc2
29901 builtin and then its argument prototype would still apply. */
29902 char pthread_create ();
29911 rm -f conftest.$ac_objext conftest$ac_exeext
29912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29913 (eval $ac_link) 2>conftest.er1
29915 grep -v '^ *+' conftest.er1 >conftest.err
29917 cat conftest.err >&5
29918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29919 (exit $ac_status); } &&
29920 { ac_try='test -z "$ac_c_werror_flag"
29921 || test ! -s conftest.err'
29922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29923 (eval $ac_try) 2>&5
29925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29926 (exit $ac_status); }; } &&
29927 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
29933 ac_cv_lib_pthreads_pthread_create=yes
29935 echo "$as_me: failed program was:" >&5
29936 sed 's/^/| /' conftest.$ac_ext >&5
29938 ac_cv_lib_pthreads_pthread_create=no
29940 rm -f conftest.err conftest.$ac_objext \
29941 conftest$ac_exeext conftest.$ac_ext
29942 LIBS=$ac_check_lib_save_LIBS
29944 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
29945 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
29946 if test $ac_cv_lib_pthreads_pthread_create = yes; then
29947 PTHREAD_LIB="-lpthreads"
29949 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
29950 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
29951 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
29952 echo $ECHO_N "(cached) $ECHO_C" >&6
29954 ac_check_lib_save_LIBS=$LIBS
29956 cat >conftest.$ac_ext <<_ACEOF
29959 cat confdefs.h >>conftest.$ac_ext
29960 cat >>conftest.$ac_ext <<_ACEOF
29961 /* end confdefs.h. */
29963 /* Override any gcc2 internal prototype to avoid an error. */
29967 /* We use char because int might match the return type of a gcc2
29968 builtin and then its argument prototype would still apply. */
29969 char pthread_create ();
29978 rm -f conftest.$ac_objext conftest$ac_exeext
29979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29980 (eval $ac_link) 2>conftest.er1
29982 grep -v '^ *+' conftest.er1 >conftest.err
29984 cat conftest.err >&5
29985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29986 (exit $ac_status); } &&
29987 { ac_try='test -z "$ac_c_werror_flag"
29988 || test ! -s conftest.err'
29989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29990 (eval $ac_try) 2>&5
29992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29993 (exit $ac_status); }; } &&
29994 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
30000 ac_cv_lib_c_r_pthread_create=yes
30002 echo "$as_me: failed program was:" >&5
30003 sed 's/^/| /' conftest.$ac_ext >&5
30005 ac_cv_lib_c_r_pthread_create=no
30007 rm -f conftest.err conftest.$ac_objext \
30008 conftest$ac_exeext conftest.$ac_ext
30009 LIBS=$ac_check_lib_save_LIBS
30011 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
30012 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
30013 if test $ac_cv_lib_c_r_pthread_create = yes; then
30014 PTHREAD_LIB="-lc_r"
30016 echo "$as_me:$LINENO: checking for pthread_create" >&5
30017 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
30018 if test "${ac_cv_func_pthread_create+set}" = set; then
30019 echo $ECHO_N "(cached) $ECHO_C" >&6
30021 cat >conftest.$ac_ext <<_ACEOF
30024 cat confdefs.h >>conftest.$ac_ext
30025 cat >>conftest.$ac_ext <<_ACEOF
30026 /* end confdefs.h. */
30027 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
30028 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30029 #define pthread_create innocuous_pthread_create
30031 /* System header to define __stub macros and hopefully few prototypes,
30032 which can conflict with char pthread_create (); below.
30033 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30034 <limits.h> exists even on freestanding compilers. */
30037 # include <limits.h>
30039 # include <assert.h>
30042 #undef pthread_create
30044 /* Override any gcc2 internal prototype to avoid an error. */
30049 /* We use char because int might match the return type of a gcc2
30050 builtin and then its argument prototype would still apply. */
30051 char pthread_create ();
30052 /* The GNU C library defines this for functions which it implements
30053 to always fail with ENOSYS. Some functions are actually named
30054 something starting with __ and the normal name is an alias. */
30055 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
30058 char (*f) () = pthread_create;
30067 return f != pthread_create;
30072 rm -f conftest.$ac_objext conftest$ac_exeext
30073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30074 (eval $ac_link) 2>conftest.er1
30076 grep -v '^ *+' conftest.er1 >conftest.err
30078 cat conftest.err >&5
30079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30080 (exit $ac_status); } &&
30081 { ac_try='test -z "$ac_c_werror_flag"
30082 || test ! -s conftest.err'
30083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30084 (eval $ac_try) 2>&5
30086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30087 (exit $ac_status); }; } &&
30088 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
30094 ac_cv_func_pthread_create=yes
30096 echo "$as_me: failed program was:" >&5
30097 sed 's/^/| /' conftest.$ac_ext >&5
30099 ac_cv_func_pthread_create=no
30101 rm -f conftest.err conftest.$ac_objext \
30102 conftest$ac_exeext conftest.$ac_ext
30104 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
30105 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
30118 cat >>confdefs.h <<\_ACEOF
30124 CFLAGS=${CFLAGS--O}
30126 if test x$have_gcc = xyes ; then
30127 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30128 CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30130 LDFLAGS=${LDFLAGS--O}
30131 DB_LIBS="${SQL_LFLAGS}"
30132 CPPFLAGS="$CPPFLAGS"
30160 # Finally we set appropriate distribution specific
30161 # variables and defaults
30163 # PFILES are platform specific files
30164 PFILES="platforms/Makefile"
30168 hostname=`uname -n | cut -d '.' -f 1`
30169 if test x${hostname} = x ; then
30170 hostname="localhost"
30172 case "$DISTNAME" in
30175 PSCMD="ps -e -o pid,comm"
30176 PFILES="${PFILES} \
30177 platforms/aix/Makefile"
30178 TAPEDRIVE="/dev/rmt0.1"
30182 PTHREAD_LIB="-lpthread -lexc"
30183 if test "${CC}" = "gcc" ; then
30190 TAPEDRIVE="/dev/nrmt0"
30193 DISTVER=`uname -a |awk '{print $3}'`
30194 TAPEDRIVE="/dev/nrmt0"
30195 PTHREAD_LIB="-pthread"
30196 CFLAGS="${CFLAGS} -pthread"
30197 PSCMD="ps -ax -o pid,command"
30200 PFILES="${PFILES} \
30201 platforms/bsdi/Makefile \
30202 platforms/bsdi/bacula-fd \
30203 platforms/bsdi/bacula-sd \
30204 platforms/bsdi/bacula-dir"
30205 largefile_support="yes"
30208 DISTVER=`uname -a |awk '{print $3}'`
30209 TAPEDRIVE="/dev/nrst0"
30211 WCFLAGS="-mwindows"
30212 WLDFLAGS="-mwindows"
30216 TAPEDRIVE="/dev/nst0"
30217 PSCMD="ps -e -o pid,command"
30219 PFILES="${PFILES} \
30220 platforms/darwin/Makefile"
30223 DISTVER=`cat /etc/debian_version`
30224 TAPEDRIVE="/dev/nrst0"
30225 PSCMD="ps -e -o pid,command"
30228 DISTVER=`uname -a |awk '{print $3}'`
30229 VER=`echo $DISTVER | cut -c 1`
30230 if test x$VER = x4 ; then
30231 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
30232 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
30236 TAPEDRIVE="/dev/nrsa0"
30237 PSCMD="ps -ax -o pid,command"
30238 PFILES="${PFILES} \
30239 platforms/freebsd/Makefile \
30240 platforms/freebsd/bacula-fd \
30241 platforms/freebsd/bacula-sd \
30242 platforms/freebsd/bacula-dir"
30243 largefile_support="yes"
30246 PSCMD="UNIX95=1; ps -e -o pid,comm"
30247 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
30249 TAPEDRIVE="/dev/rmt/0hnb"
30250 PTHREAD_LIB="-lpthread"
30251 cat >>confdefs.h <<\_ACEOF
30252 #define _INCLUDE_LONGLONG 1
30258 TAPEDRIVE="/dev/rmt/0cbn"
30259 PSCMD="ps -e -o pid,comm"
30260 PFILES="${PFILES} \
30261 platforms/irix/Makefile \
30262 platforms/irix/bacula-fd \
30263 platforms/irix/bacula-sd \
30264 platforms/irix/bacula-dir"
30267 DISTVER=`uname -a |awk '{print $3}'`
30270 TAPEDRIVE="/dev/nrst0"
30271 PSCMD="ps -ax -o pid,command"
30272 PTHREAD_LIB="-pthread"
30273 CFLAGS="${CFLAGS} -pthread"
30276 DISTVER=`uname -a |awk '{print $3}'`
30279 TAPEDRIVE="/dev/nrst0"
30280 PSCMD="ps -ax -o pid,command"
30281 PTHREAD_LIB="-pthread"
30282 CFLAGS="${CFLAGS} -pthread"
30283 PFILES="${PFILES} \
30284 platforms/openbsd/Makefile \
30285 platforms/openbsd/bacula-fd \
30286 platforms/openbsd/bacula-sd \
30287 platforms/openbsd/bacula-dir"
30290 if test -f /etc/whitebox-release ; then
30291 f=/etc/whitebox-release
30293 f=/etc/redhat-release
30295 if test `cat $f | grep release |\
30296 cut -f 3 -d ' '`x = "Enterprise"x ; then
30297 DISTVER="Enterprise "`cat $f | grep release |\
30300 DISTVER=`cat /etc/redhat-release | grep release |\
30303 TAPEDRIVE="/dev/nst0"
30304 PSCMD="ps -e -o pid,command"
30305 PFILES="${PFILES} \
30306 platforms/redhat/Makefile \
30307 platforms/redhat/bacula-fd \
30308 platforms/redhat/bacula-sd \
30309 platforms/redhat/bacula-dir \
30310 platforms/redhat/bacula.spec \
30314 DISTVER=`cat /etc/mandrake-release | grep release |\
30316 TAPEDRIVE="/dev/nst0"
30317 PSCMD="ps -e -o pid,command"
30318 PFILES="${PFILES} \
30319 platforms/mandrake/Makefile \
30320 platforms/mandrake/bacula-fd \
30321 platforms/mandrake/bacula-sd \
30322 platforms/mandrake/bacula-dir \
30323 platforms/mandrake/bacula.spec \
30327 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
30328 TAPEDRIVE="/dev/nst0"
30329 PSCMD="ps -e -o pid,command"
30330 PFILES="${PFILES} \
30331 platforms/gentoo/Makefile \
30332 platforms/gentoo/bacula-init \
30333 platforms/gentoo/bacula-fd \
30334 platforms/gentoo/bacula-sd \
30335 platforms/gentoo/bacula-dir"
30338 DISTVER=`cat /etc/slackware-version`
30339 TAPEDRIVE="/dev/nst0"
30340 PSCMD="ps -e -o pid,command"
30341 PFILES="${PFILES} \
30342 platforms/slackware/Makefile \
30343 platforms/slackware/rc.bacula-fd \
30344 platforms/slackware/rc.bacula-sd \
30345 platforms/slackware/rc.bacula-dir\
30346 platforms/slackware/functions.bacula"
30350 TAPEDRIVE="/dev/rmt/0cbn"
30351 PSCMD="ps -e -o pid,comm"
30352 PFILES="${PFILES} \
30353 platforms/solaris/Makefile \
30354 platforms/solaris/bacula-fd \
30355 platforms/solaris/bacula-sd \
30356 platforms/solaris/bacula-dir"
30357 if test x$DISTVER = x5.6 ; then
30358 cat >>confdefs.h <<\_ACEOF
30359 #define HAVE_OLD_SOCKOPT 1
30363 LIBS="$LIBS -lresolv"
30366 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
30368 TAPEDRIVE="/dev/nst0"
30369 PSCMD="ps -e -o pid,command"
30370 PFILES="${PFILES} \
30371 platforms/suse/Makefile \
30372 platforms/suse/bacula-fd \
30373 platforms/suse/bacula-sd \
30374 platforms/suse/bacula-dir \
30375 platforms/suse/bacula \
30376 platforms/suse/bacula.spec"
30381 TAPEDRIVE="/dev/nst0"
30382 PSCMD="ps -e -o pid,command"
30383 PFILES="${PFILES} \
30384 platforms/suse/Makefile \
30385 platforms/suse/bacula-fd \
30386 platforms/suse/bacula-sd \
30387 platforms/suse/bacula-dir"
30391 TAPEDRIVE="/dev/nst0"
30394 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
30400 LIBS="$PTHREAD_LIB $LIBS"
30402 cat >>confdefs.h <<_ACEOF
30406 cat >>confdefs.h <<_ACEOF
30417 MCOMMON=./autoconf/Make.common
30420 if test "x${subsysdir}" = "x${sbindir}" ; then
30423 echo "You have set both --sbindir and --with-subsys-dir"
30424 echo " equal to: ${subsysdir} "
30425 echo "This is not permitted. Please reconfigure."
30427 echo "Aborting configuration ..."
30433 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"
30434 ac_config_commands="$ac_config_commands default"
30435 cat >confcache <<\_ACEOF
30436 # This file is a shell script that caches the results of configure
30437 # tests run on this system so they can be shared between configure
30438 # scripts and configure runs, see configure's option --config-cache.
30439 # It is not useful on other systems. If it contains results you don't
30440 # want to keep, you may remove or edit it.
30442 # config.status only pays attention to the cache file if you give it
30443 # the --recheck option to rerun configure.
30445 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30446 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30447 # following values.
30451 # The following way of writing the cache mishandles newlines in values,
30452 # but we know of no workaround that is simple, portable, and efficient.
30453 # So, don't put newlines in cache variables' values.
30454 # Ultrix sh set writes to stderr and can't be redirected directly,
30455 # and sets the high bit in the cache file unless we assign to the vars.
30458 case `(ac_space=' '; set | grep ac_space) 2>&1` in
30460 # `set' does not quote correctly, so add quotes (double-quote
30461 # substitution turns \\\\ into \\, and sed turns \\ into \).
30464 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30467 # `set' quotes correctly as required by POSIX, so do not add quotes.
30469 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
30476 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30478 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30480 if diff $cache_file confcache >/dev/null 2>&1; then :; else
30481 if test -w $cache_file; then
30482 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
30483 cat confcache >$cache_file
30485 echo "not updating unwritable cache $cache_file"
30490 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30491 # Let make expand exec_prefix.
30492 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30494 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30495 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30496 # trailing colons and then remove the whole line if VPATH becomes empty
30497 # (actually we leave an empty line to preserve line numbers).
30498 if test "x$srcdir" = x.; then
30499 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30500 s/:*\$(srcdir):*/:/;
30501 s/:*\${srcdir}:*/:/;
30503 s/^\([^=]*=[ ]*\):*/\1/;
30509 DEFS=-DHAVE_CONFIG_H
30513 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30514 # 1. Remove the extension, and $U if already installed.
30515 ac_i=`echo "$ac_i" |
30516 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
30518 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
30519 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
30521 LIBOBJS=$ac_libobjs
30523 LTLIBOBJS=$ac_ltlibobjs
30527 : ${CONFIG_STATUS=./config.status}
30528 ac_clean_files_save=$ac_clean_files
30529 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30530 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30531 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30532 cat >$CONFIG_STATUS <<_ACEOF
30534 # Generated by $as_me.
30535 # Run this file to recreate the current configuration.
30536 # Compiler output produced by configure, useful for debugging
30537 # configure, is in config.log if it exists.
30540 ac_cs_recheck=false
30542 SHELL=\${CONFIG_SHELL-$SHELL}
30545 cat >>$CONFIG_STATUS <<\_ACEOF
30546 ## --------------------- ##
30547 ## M4sh Initialization. ##
30548 ## --------------------- ##
30550 # Be Bourne compatible
30551 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30554 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30555 # is contrary to our usage. Disable this feature.
30556 alias -g '${1+"$@"}'='"$@"'
30557 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30560 DUALCASE=1; export DUALCASE # for MKS sh
30562 # Support unset when possible.
30563 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30570 # Work around bugs in pre-3.0 UWIN ksh.
30571 $as_unset ENV MAIL MAILPATH
30578 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30579 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30580 LC_TELEPHONE LC_TIME
30582 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30583 eval $as_var=C; export $as_var
30589 # Required to use basename.
30590 if expr a : '\(a\)' >/dev/null 2>&1; then
30596 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
30597 as_basename=basename
30603 # Name of the executable.
30604 as_me=`$as_basename "$0" ||
30605 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30606 X"$0" : 'X\(//\)$' \| \
30607 X"$0" : 'X\(/\)$' \| \
30608 . : '\(.\)' 2>/dev/null ||
30610 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
30611 /^X\/\(\/\/\)$/{ s//\1/; q; }
30612 /^X\/\(\/\).*/{ s//\1/; q; }
30616 # PATH needs CR, and LINENO needs CR and PATH.
30617 # Avoid depending upon Character Ranges.
30618 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30619 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30620 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30621 as_cr_digits='0123456789'
30622 as_cr_alnum=$as_cr_Letters$as_cr_digits
30624 # The user is always right.
30625 if test "${PATH_SEPARATOR+set}" != set; then
30626 echo "#! /bin/sh" >conf$$.sh
30627 echo "exit 0" >>conf$$.sh
30629 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30638 as_lineno_1=$LINENO
30639 as_lineno_2=$LINENO
30640 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30641 test "x$as_lineno_1" != "x$as_lineno_2" &&
30642 test "x$as_lineno_3" = "x$as_lineno_2" || {
30643 # Find who we are. Look in the path if we contain no path at all
30646 *[\\/]* ) as_myself=$0 ;;
30647 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30648 for as_dir in $PATH
30651 test -z "$as_dir" && as_dir=.
30652 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30657 # We did not find ourselves, most probably we were run as `sh COMMAND'
30658 # in which case we are not to be found in the path.
30659 if test "x$as_myself" = x; then
30662 if test ! -f "$as_myself"; then
30663 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
30664 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
30665 { (exit 1); exit 1; }; }
30667 case $CONFIG_SHELL in
30669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30670 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
30673 test -z "$as_dir" && as_dir=.
30674 for as_base in sh bash ksh sh5; do
30677 if ("$as_dir/$as_base" -c '
30678 as_lineno_1=$LINENO
30679 as_lineno_2=$LINENO
30680 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30681 test "x$as_lineno_1" != "x$as_lineno_2" &&
30682 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
30683 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
30684 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
30685 CONFIG_SHELL=$as_dir/$as_base
30686 export CONFIG_SHELL
30687 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
30695 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30696 # uniformly replaced by the line number. The first 'sed' inserts a
30697 # line-number line before each line; the second 'sed' does the real
30698 # work. The second script uses 'N' to pair each line-number line
30699 # with the numbered line, and appends trailing '-' during
30700 # substitution so that $LINENO is not a special case at line end.
30701 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30702 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
30703 sed '=' <$as_myself |
30708 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
30711 s,^['$as_cr_digits']*\n,,
30712 ' >$as_me.lineno &&
30713 chmod +x $as_me.lineno ||
30714 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
30715 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
30716 { (exit 1); exit 1; }; }
30718 # Don't try to exec as it changes $[0], causing all sort of problems
30719 # (the dirname of $[0] is not the place where we might find the
30720 # original and so on. Autoconf is especially sensible to this).
30722 # Exit status is that of the last command.
30727 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
30728 *c*,-n*) ECHO_N= ECHO_C='
30730 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
30731 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
30734 if expr a : '\(a\)' >/dev/null 2>&1; then
30740 rm -f conf$$ conf$$.exe conf$$.file
30742 if ln -s conf$$.file conf$$ 2>/dev/null; then
30743 # We could just check for DJGPP; but this test a) works b) is more generic
30744 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
30745 if test -f conf$$.exe; then
30746 # Don't use ln at all; we don't have any links
30751 elif ln conf$$.file conf$$ 2>/dev/null; then
30756 rm -f conf$$ conf$$.exe conf$$.file
30758 if mkdir -p . 2>/dev/null; then
30761 test -d ./-p && rmdir ./-p
30765 as_executable_p="test -f"
30767 # Sed expression to map a string onto a valid CPP name.
30768 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30770 # Sed expression to map a string onto a valid variable name.
30771 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30775 # We need space, tab and new line, in precisely that order.
30785 # Open the log real soon, to keep \$[0] and so on meaningful, and to
30786 # report actual input values of CONFIG_FILES etc. instead of their
30787 # values after options handling. Logging --version etc. is OK.
30791 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30792 ## Running $as_me. ##
30797 This file was extended by $as_me, which was
30798 generated by GNU Autoconf 2.59. Invocation command line was
30800 CONFIG_FILES = $CONFIG_FILES
30801 CONFIG_HEADERS = $CONFIG_HEADERS
30802 CONFIG_LINKS = $CONFIG_LINKS
30803 CONFIG_COMMANDS = $CONFIG_COMMANDS
30807 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
30811 # Files that config.status was made for.
30812 if test -n "$ac_config_files"; then
30813 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
30816 if test -n "$ac_config_headers"; then
30817 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
30820 if test -n "$ac_config_links"; then
30821 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
30824 if test -n "$ac_config_commands"; then
30825 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
30828 cat >>$CONFIG_STATUS <<\_ACEOF
30831 \`$as_me' instantiates files from templates according to the
30832 current configuration.
30834 Usage: $0 [OPTIONS] [FILE]...
30836 -h, --help print this help, then exit
30837 -V, --version print version number, then exit
30838 -q, --quiet do not print progress messages
30839 -d, --debug don't remove temporary files
30840 --recheck update $as_me by reconfiguring in the same conditions
30841 --file=FILE[:TEMPLATE]
30842 instantiate the configuration file FILE
30843 --header=FILE[:TEMPLATE]
30844 instantiate the configuration header FILE
30846 Configuration files:
30849 Configuration headers:
30852 Configuration commands:
30855 Report bugs to <bug-autoconf@gnu.org>."
30858 cat >>$CONFIG_STATUS <<_ACEOF
30861 configured by $0, generated by GNU Autoconf 2.59,
30862 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
30864 Copyright (C) 2003 Free Software Foundation, Inc.
30865 This config.status script is free software; the Free Software Foundation
30866 gives unlimited permission to copy, distribute and modify it."
30871 cat >>$CONFIG_STATUS <<\_ACEOF
30872 # If no file are specified by the user, then we need to provide default
30873 # value. By we need to know if files were specified by the user.
30879 ac_option=`expr "x$1" : 'x\([^=]*\)='`
30880 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
30888 *) # This is not an option, so the user has probably given explicit
30891 ac_need_defaults=false;;
30895 # Handling of the options.
30897 cat >>$CONFIG_STATUS <<\_ACEOF
30898 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30900 --version | --vers* | -V )
30901 echo "$ac_cs_version"; exit 0 ;;
30903 # Conflict between --help and --header
30904 { { echo "$as_me:$LINENO: error: ambiguous option: $1
30905 Try \`$0 --help' for more information." >&5
30906 echo "$as_me: error: ambiguous option: $1
30907 Try \`$0 --help' for more information." >&2;}
30908 { (exit 1); exit 1; }; };;
30909 --help | --hel | -h )
30910 echo "$ac_cs_usage"; exit 0 ;;
30911 --debug | --d* | -d )
30913 --file | --fil | --fi | --f )
30915 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30916 ac_need_defaults=false;;
30917 --header | --heade | --head | --hea )
30919 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30920 ac_need_defaults=false;;
30921 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30922 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30925 # This is an error.
30926 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
30927 Try \`$0 --help' for more information." >&5
30928 echo "$as_me: error: unrecognized option: $1
30929 Try \`$0 --help' for more information." >&2;}
30930 { (exit 1); exit 1; }; } ;;
30932 *) ac_config_targets="$ac_config_targets $1" ;;
30938 ac_configure_extra_args=
30940 if $ac_cs_silent; then
30942 ac_configure_extra_args="$ac_configure_extra_args --silent"
30946 cat >>$CONFIG_STATUS <<_ACEOF
30947 if \$ac_cs_recheck; then
30948 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30949 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30954 cat >>$CONFIG_STATUS <<_ACEOF
30956 # INIT-COMMANDS section.
30959 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
30960 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
30962 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
30963 # Capture the value of LINGUAS because we need it to compute CATALOGS.
30964 LINGUAS="${LINGUAS-%UNSET%}"
30971 cat >>$CONFIG_STATUS <<\_ACEOF
30972 for ac_config_target in $ac_config_targets
30974 case "$ac_config_target" in
30975 # Handling of arguments.
30976 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
30977 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30978 "manpages/Makefile" ) CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
30979 "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
30980 "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
30981 "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
30982 "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
30983 "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
30984 "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
30985 "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
30986 "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
30987 "scripts/bacula-ctl-dir" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
30988 "scripts/bacula-ctl-fd" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
30989 "scripts/bacula-ctl-sd" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
30990 "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
30991 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
30992 "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
30993 "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
30994 "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
30995 "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
30996 "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
30997 "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
30998 "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
30999 "scripts/bgnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
31000 "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
31001 "scripts/disk-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
31002 "scripts/dvd-handler" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
31003 "scripts/dvd-simulator" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
31004 "scripts/bacula-tray-monitor.desktop" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
31005 "scripts/logwatch/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
31006 "scripts/logwatch/logfile.bacula.conf" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
31007 "scripts/wxconsole.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
31008 "scripts/wxconsole.desktop.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
31009 "scripts/wxconsole.desktop.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
31010 "scripts/bat.desktop" ) CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
31011 "scripts/bat.desktop.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
31012 "scripts/bat.desktop.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
31013 "scripts/bat.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
31014 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
31015 "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
31016 "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
31017 "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
31018 "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
31019 "src/gnome2-console/bgnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/bgnome-console.conf" ;;
31020 "src/qt-console/bat.conf" ) CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
31021 "src/qt-console/bat.pro" ) CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
31022 "src/qt-console/install_conf_file" ) CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
31023 "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
31024 "src/wx-console/bwx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
31025 "src/tray-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
31026 "src/tray-monitor/tray-monitor.conf" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
31027 "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
31028 "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
31029 "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
31030 "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
31031 "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
31032 "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
31033 "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
31034 "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
31035 "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
31036 "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
31037 "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
31038 "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
31039 "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
31040 "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
31041 "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
31042 "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
31043 "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
31044 "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
31045 "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
31046 "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
31047 "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
31048 "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
31049 "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
31050 "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
31051 "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
31052 "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
31053 "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
31054 "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
31055 "src/cats/create_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
31056 "src/cats/update_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
31057 "src/cats/make_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
31058 "src/cats/grant_sqlite3_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
31059 "src/cats/drop_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
31060 "src/cats/drop_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
31061 "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
31062 "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
31063 "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
31064 "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
31065 "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
31066 "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
31067 "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
31068 "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
31069 "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
31070 "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
31071 "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
31072 "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
31073 "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
31074 "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
31075 "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
31076 "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
31077 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
31078 "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
31079 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
31080 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
31081 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
31082 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31083 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31084 { (exit 1); exit 1; }; };;
31088 # If the user did not use the arguments to specify the items to instantiate,
31089 # then the envvar interface is used. Set only those that are not.
31090 # We use the long form for the default assignment because of an extremely
31091 # bizarre bug on SunOS 4.1.3.
31092 if $ac_need_defaults; then
31093 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31094 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31095 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31098 # Have a temporary directory for convenience. Make it in the build tree
31099 # simply because there is no reason to put it here, and in addition,
31100 # creating and moving files from /tmp can sometimes cause problems.
31101 # Create a temporary directory, and hook for its removal unless debugging.
31104 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
31105 trap '{ (exit 1); exit 1; }' 1 2 13 15
31108 # Create a (secure) tmp directory for tmp files.
31111 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
31112 test -n "$tmp" && test -d "$tmp"
31115 tmp=./confstat$$-$RANDOM
31116 (umask 077 && mkdir $tmp)
31119 echo "$me: cannot create a temporary directory in ." >&2
31120 { (exit 1); exit 1; }
31125 cat >>$CONFIG_STATUS <<_ACEOF
31128 # CONFIG_FILES section.
31131 # No need to generate the scripts if there are no CONFIG_FILES.
31132 # This happens for instance when ./config.status config.h
31133 if test -n "\$CONFIG_FILES"; then
31134 # Protect against being on the right side of a sed subst in config.status.
31135 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
31136 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
31137 s,@SHELL@,$SHELL,;t t
31138 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
31139 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
31140 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
31141 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
31142 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
31143 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
31144 s,@exec_prefix@,$exec_prefix,;t t
31145 s,@prefix@,$prefix,;t t
31146 s,@program_transform_name@,$program_transform_name,;t t
31147 s,@bindir@,$bindir,;t t
31148 s,@sbindir@,$sbindir,;t t
31149 s,@libexecdir@,$libexecdir,;t t
31150 s,@datadir@,$datadir,;t t
31151 s,@sysconfdir@,$sysconfdir,;t t
31152 s,@sharedstatedir@,$sharedstatedir,;t t
31153 s,@localstatedir@,$localstatedir,;t t
31154 s,@libdir@,$libdir,;t t
31155 s,@includedir@,$includedir,;t t
31156 s,@oldincludedir@,$oldincludedir,;t t
31157 s,@infodir@,$infodir,;t t
31158 s,@mandir@,$mandir,;t t
31159 s,@build_alias@,$build_alias,;t t
31160 s,@host_alias@,$host_alias,;t t
31161 s,@target_alias@,$target_alias,;t t
31162 s,@DEFS@,$DEFS,;t t
31163 s,@ECHO_C@,$ECHO_C,;t t
31164 s,@ECHO_N@,$ECHO_N,;t t
31165 s,@ECHO_T@,$ECHO_T,;t t
31166 s,@LIBS@,$LIBS,;t t
31167 s,@BUILD_DIR@,$BUILD_DIR,;t t
31168 s,@TOP_DIR@,$TOP_DIR,;t t
31169 s,@TRUEPRG@,$TRUEPRG,;t t
31170 s,@FALSEPRG@,$FALSEPRG,;t t
31171 s,@VERSION@,$VERSION,;t t
31172 s,@DATE@,$DATE,;t t
31173 s,@LSMDATE@,$LSMDATE,;t t
31175 s,@CFLAGS@,$CFLAGS,;t t
31176 s,@LDFLAGS@,$LDFLAGS,;t t
31177 s,@CPPFLAGS@,$CPPFLAGS,;t t
31178 s,@ac_ct_CC@,$ac_ct_CC,;t t
31179 s,@EXEEXT@,$EXEEXT,;t t
31180 s,@OBJEXT@,$OBJEXT,;t t
31182 s,@CXXFLAGS@,$CXXFLAGS,;t t
31183 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
31185 s,@EGREP@,$EGREP,;t t
31186 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
31187 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
31188 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
31189 s,@RANLIB@,$RANLIB,;t t
31190 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
31195 s,@ECHO@,$ECHO,;t t
31199 s,@OPENSSL@,$OPENSSL,;t t
31202 s,@MKISOFS@,$MKISOFS,;t t
31203 s,@PYTHON@,$PYTHON,;t t
31204 s,@GROWISOFS@,$GROWISOFS,;t t
31205 s,@DVDRWMEDIAINFO@,$DVDRWMEDIAINFO,;t t
31206 s,@DVDRWFORMAT@,$DVDRWFORMAT,;t t
31207 s,@PKGCONFIG@,$PKGCONFIG,;t t
31208 s,@WXCONFIG@,$WXCONFIG,;t t
31209 s,@WXFLAGS@,$WXFLAGS,;t t
31210 s,@CDRECORD@,$CDRECORD,;t t
31211 s,@PIDOF@,$PIDOF,;t t
31213 s,@ARFLAGS@,$ARFLAGS,;t t
31214 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
31215 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
31216 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
31217 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
31218 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
31219 s,@build@,$build,;t t
31220 s,@build_cpu@,$build_cpu,;t t
31221 s,@build_vendor@,$build_vendor,;t t
31222 s,@build_os@,$build_os,;t t
31223 s,@host@,$host,;t t
31224 s,@host_cpu@,$host_cpu,;t t
31225 s,@host_vendor@,$host_vendor,;t t
31226 s,@host_os@,$host_os,;t t
31227 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
31228 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
31229 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
31230 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
31231 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
31232 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
31233 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
31234 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
31235 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
31236 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
31237 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
31238 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
31239 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
31240 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
31241 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
31242 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
31243 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
31244 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
31245 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
31246 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
31247 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
31248 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
31249 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
31250 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
31251 s,@SET_MAKE@,$SET_MAKE,;t t
31252 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
31253 s,@USE_NLS@,$USE_NLS,;t t
31254 s,@MSGFMT@,$MSGFMT,;t t
31255 s,@GMSGFMT@,$GMSGFMT,;t t
31256 s,@XGETTEXT@,$XGETTEXT,;t t
31257 s,@MSGMERGE@,$MSGMERGE,;t t
31258 s,@INTL_MACOSX_LIBS@,$INTL_MACOSX_LIBS,;t t
31259 s,@LIBICONV@,$LIBICONV,;t t
31260 s,@LTLIBICONV@,$LTLIBICONV,;t t
31261 s,@INTLLIBS@,$INTLLIBS,;t t
31262 s,@LIBINTL@,$LIBINTL,;t t
31263 s,@LTLIBINTL@,$LTLIBINTL,;t t
31264 s,@POSUB@,$POSUB,;t t
31265 s,@GLIBC2@,$GLIBC2,;t t
31266 s,@ALLOCA@,$ALLOCA,;t t
31267 s,@GLIBC21@,$GLIBC21,;t t
31268 s,@HAVE_POSIX_PRINTF@,$HAVE_POSIX_PRINTF,;t t
31269 s,@HAVE_ASPRINTF@,$HAVE_ASPRINTF,;t t
31270 s,@HAVE_SNPRINTF@,$HAVE_SNPRINTF,;t t
31271 s,@HAVE_WPRINTF@,$HAVE_WPRINTF,;t t
31272 s,@INTLBISON@,$INTLBISON,;t t
31273 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
31274 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
31275 s,@CATOBJEXT@,$CATOBJEXT,;t t
31276 s,@DATADIRNAME@,$DATADIRNAME,;t t
31277 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
31278 s,@GENCAT@,$GENCAT,;t t
31279 s,@INTLOBJS@,$INTLOBJS,;t t
31280 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
31281 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
31282 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
31283 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
31284 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
31285 s,@GNOME_DIR@,$GNOME_DIR,;t t
31286 s,@BAT_DIR@,$BAT_DIR,;t t
31287 s,@QWT_INC@,$QWT_INC,;t t
31288 s,@QWT_LDFLAGS@,$QWT_LDFLAGS,;t t
31289 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
31290 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
31291 s,@WX_DIR@,$WX_DIR,;t t
31292 s,@TRAY_MONITOR_CPPFLAGS@,$TRAY_MONITOR_CPPFLAGS,;t t
31293 s,@TRAY_MONITOR_LDFLAGS@,$TRAY_MONITOR_LDFLAGS,;t t
31294 s,@TRAY_MONITOR_DIR@,$TRAY_MONITOR_DIR,;t t
31295 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
31296 s,@STATIC_FD@,$STATIC_FD,;t t
31297 s,@STATIC_SD@,$STATIC_SD,;t t
31298 s,@STATIC_DIR@,$STATIC_DIR,;t t
31299 s,@STATIC_CONS@,$STATIC_CONS,;t t
31300 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
31301 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
31302 s,@ALL_DIRS@,$ALL_DIRS,;t t
31303 s,@DIRD_DIR@,$DIRD_DIR,;t t
31304 s,@DIR_TOOLS@,$DIR_TOOLS,;t t
31305 s,@STORED_DIR@,$STORED_DIR,;t t
31306 s,@CONS_INC@,$CONS_INC,;t t
31307 s,@CONS_OBJ@,$CONS_OBJ,;t t
31308 s,@CONS_SRC@,$CONS_SRC,;t t
31309 s,@CONS_LIBS@,$CONS_LIBS,;t t
31310 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
31311 s,@READLINE_SRC@,$READLINE_SRC,;t t
31312 s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t
31313 s,@PYTHON_INCDIR@,$PYTHON_INCDIR,;t t
31314 s,@OPENSSL_LIBS@,$OPENSSL_LIBS,;t t
31315 s,@OPENSSL_INC@,$OPENSSL_INC,;t t
31316 s,@working_dir@,$working_dir,;t t
31317 s,@scriptdir@,$scriptdir,;t t
31318 s,@dump_email@,$dump_email,;t t
31319 s,@job_email@,$job_email,;t t
31320 s,@smtp_host@,$smtp_host,;t t
31321 s,@piddir@,$piddir,;t t
31322 s,@subsysdir@,$subsysdir,;t t
31323 s,@baseport@,$baseport,;t t
31324 s,@dir_port@,$dir_port,;t t
31325 s,@fd_port@,$fd_port,;t t
31326 s,@sd_port@,$sd_port,;t t
31327 s,@dir_password@,$dir_password,;t t
31328 s,@fd_password@,$fd_password,;t t
31329 s,@sd_password@,$sd_password,;t t
31330 s,@mon_dir_password@,$mon_dir_password,;t t
31331 s,@mon_fd_password@,$mon_fd_password,;t t
31332 s,@mon_sd_password@,$mon_sd_password,;t t
31333 s,@db_name@,$db_name,;t t
31334 s,@db_user@,$db_user,;t t
31335 s,@dir_user@,$dir_user,;t t
31336 s,@dir_group@,$dir_group,;t t
31337 s,@sd_user@,$sd_user,;t t
31338 s,@sd_group@,$sd_group,;t t
31339 s,@fd_user@,$fd_user,;t t
31340 s,@fd_group@,$fd_group,;t t
31341 s,@SBINPERM@,$SBINPERM,;t t
31342 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
31343 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
31344 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
31345 s,@cats@,$cats,;t t
31346 s,@DB_TYPE@,$DB_TYPE,;t t
31347 s,@GETCONF@,$GETCONF,;t t
31348 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
31349 s,@X_CFLAGS@,$X_CFLAGS,;t t
31350 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
31351 s,@X_LIBS@,$X_LIBS,;t t
31352 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
31353 s,@LIBOBJS@,$LIBOBJS,;t t
31354 s,@FDLIBS@,$FDLIBS,;t t
31355 s,@DEBUG@,$DEBUG,;t t
31356 s,@DINCLUDE@,$DINCLUDE,;t t
31357 s,@DLIB@,$DLIB,;t t
31358 s,@DB_LIBS@,$DB_LIBS,;t t
31359 s,@WCFLAGS@,$WCFLAGS,;t t
31360 s,@WLDFLAGS@,$WLDFLAGS,;t t
31361 s,@WRAPLIBS@,$WRAPLIBS,;t t
31362 s,@OBJLIST@,$OBJLIST,;t t
31363 s,@hostname@,$hostname,;t t
31364 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
31365 s,@PSCMD@,$PSCMD,;t t
31366 s,@WIN32@,$WIN32,;t t
31367 s,@MACOSX@,$MACOSX,;t t
31368 s,@DISTNAME@,$DISTNAME,;t t
31369 s,@DISTVER@,$DISTVER,;t t
31370 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
31371 /@MCOMMON@/r $MCOMMON
31377 cat >>$CONFIG_STATUS <<\_ACEOF
31378 # Split the substitutions into bite-sized pieces for seds with
31379 # small command number limits, like on Digital OSF/1 and HP-UX.
31380 ac_max_sed_lines=48
31381 ac_sed_frag=1 # Number of current file.
31382 ac_beg=1 # First line for current file.
31383 ac_end=$ac_max_sed_lines # Line after last line for current file.
31386 while $ac_more_lines; do
31387 if test $ac_beg -gt 1; then
31388 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31390 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31392 if test ! -s $tmp/subs.frag; then
31393 ac_more_lines=false
31395 # The purpose of the label and of the branching condition is to
31396 # speed up the sed processing (if there are no `@' at all, there
31397 # is no need to browse any of the substitutions).
31398 # These are the two extra sed commands mentioned above.
31400 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
31401 if test -z "$ac_sed_cmds"; then
31402 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
31404 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
31406 ac_sed_frag=`expr $ac_sed_frag + 1`
31408 ac_end=`expr $ac_end + $ac_max_sed_lines`
31411 if test -z "$ac_sed_cmds"; then
31414 fi # test -n "$CONFIG_FILES"
31417 cat >>$CONFIG_STATUS <<\_ACEOF
31418 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
31419 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31421 - | *:- | *:-:* ) # input from stdin
31423 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31424 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31425 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31426 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31427 * ) ac_file_in=$ac_file.in ;;
31430 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
31431 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31432 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31433 X"$ac_file" : 'X\(//\)[^/]' \| \
31434 X"$ac_file" : 'X\(//\)$' \| \
31435 X"$ac_file" : 'X\(/\)' \| \
31436 . : '\(.\)' 2>/dev/null ||
31438 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31439 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31440 /^X\(\/\/\)$/{ s//\1/; q; }
31441 /^X\(\/\).*/{ s//\1/; q; }
31443 { if $as_mkdir_p; then
31448 while test ! -d "$as_dir"; do
31449 as_dirs="$as_dir $as_dirs"
31450 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31451 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31452 X"$as_dir" : 'X\(//\)[^/]' \| \
31453 X"$as_dir" : 'X\(//\)$' \| \
31454 X"$as_dir" : 'X\(/\)' \| \
31455 . : '\(.\)' 2>/dev/null ||
31457 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31458 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31459 /^X\(\/\/\)$/{ s//\1/; q; }
31460 /^X\(\/\).*/{ s//\1/; q; }
31463 test ! -n "$as_dirs" || mkdir $as_dirs
31464 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31465 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31466 { (exit 1); exit 1; }; }; }
31470 if test "$ac_dir" != .; then
31471 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31472 # A "../" for each directory in $ac_dir_suffix.
31473 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31475 ac_dir_suffix= ac_top_builddir=
31479 .) # No --srcdir option. We are building in place.
31481 if test -z "$ac_top_builddir"; then
31484 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31486 [\\/]* | ?:[\\/]* ) # Absolute path.
31487 ac_srcdir=$srcdir$ac_dir_suffix;
31488 ac_top_srcdir=$srcdir ;;
31489 *) # Relative path.
31490 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31491 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31494 # Do not use `cd foo && pwd` to compute absolute paths, because
31495 # the directories may not exist.
31497 .) ac_abs_builddir="$ac_dir";;
31500 .) ac_abs_builddir=`pwd`;;
31501 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31502 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31505 case $ac_abs_builddir in
31506 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31508 case ${ac_top_builddir}. in
31509 .) ac_abs_top_builddir=$ac_abs_builddir;;
31510 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31511 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31514 case $ac_abs_builddir in
31515 .) ac_abs_srcdir=$ac_srcdir;;
31518 .) ac_abs_srcdir=$ac_abs_builddir;;
31519 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31520 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31523 case $ac_abs_builddir in
31524 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31526 case $ac_top_srcdir in
31527 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31528 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31529 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31535 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31536 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
31539 if test x"$ac_file" != x-; then
31540 { echo "$as_me:$LINENO: creating $ac_file" >&5
31541 echo "$as_me: creating $ac_file" >&6;}
31544 # Let's still pretend it is `configure' which instantiates (i.e., don't
31545 # use $as_me), people would be surprised to read:
31546 # /* config.h. Generated by config.status. */
31547 if test x"$ac_file" = x-; then
31550 configure_input="$ac_file. "
31552 configure_input=$configure_input"Generated from `echo $ac_file_in |
31553 sed 's,.*/,,'` by configure."
31555 # First look for the input files in the build tree, otherwise in the
31557 ac_file_inputs=`IFS=:
31558 for f in $ac_file_in; do
31560 -) echo $tmp/stdin ;;
31562 # Absolute (can't be DOS-style, as IFS=:)
31563 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31564 echo "$as_me: error: cannot find input file: $f" >&2;}
31565 { (exit 1); exit 1; }; }
31568 if test -f "$f"; then
31571 elif test -f "$srcdir/$f"; then
31576 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31577 echo "$as_me: error: cannot find input file: $f" >&2;}
31578 { (exit 1); exit 1; }; }
31581 done` || { (exit 1); exit 1; }
31583 cat >>$CONFIG_STATUS <<_ACEOF
31587 cat >>$CONFIG_STATUS <<\_ACEOF
31589 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31590 s,@configure_input@,$configure_input,;t t
31591 s,@srcdir@,$ac_srcdir,;t t
31592 s,@abs_srcdir@,$ac_abs_srcdir,;t t
31593 s,@top_srcdir@,$ac_top_srcdir,;t t
31594 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31595 s,@builddir@,$ac_builddir,;t t
31596 s,@abs_builddir@,$ac_abs_builddir,;t t
31597 s,@top_builddir@,$ac_top_builddir,;t t
31598 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31599 s,@INSTALL@,$ac_INSTALL,;t t
31600 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31602 if test x"$ac_file" != x-; then
31603 mv $tmp/out $ac_file
31611 cat >>$CONFIG_STATUS <<\_ACEOF
31614 # CONFIG_HEADER section.
31617 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31618 # NAME is the cpp macro being defined and VALUE is the value it is being given.
31620 # ac_d sets the value in "#define NAME VALUE" lines.
31621 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
31622 ac_dB='[ ].*$,\1#\2'
31625 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
31626 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
31627 ac_uB='$,\1#\2define\3'
31631 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31632 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31634 - | *:- | *:-:* ) # input from stdin
31636 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31637 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31638 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31639 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31640 * ) ac_file_in=$ac_file.in ;;
31643 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31644 echo "$as_me: creating $ac_file" >&6;}
31646 # First look for the input files in the build tree, otherwise in the
31648 ac_file_inputs=`IFS=:
31649 for f in $ac_file_in; do
31651 -) echo $tmp/stdin ;;
31653 # Absolute (can't be DOS-style, as IFS=:)
31654 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31655 echo "$as_me: error: cannot find input file: $f" >&2;}
31656 { (exit 1); exit 1; }; }
31657 # Do quote $f, to prevent DOS paths from being IFS'd.
31660 if test -f "$f"; then
31663 elif test -f "$srcdir/$f"; then
31668 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31669 echo "$as_me: error: cannot find input file: $f" >&2;}
31670 { (exit 1); exit 1; }; }
31673 done` || { (exit 1); exit 1; }
31674 # Remove the trailing spaces.
31675 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
31679 # Transform confdefs.h into two sed scripts, `conftest.defines' and
31680 # `conftest.undefs', that substitutes the proper values into
31681 # config.h.in to produce config.h. The first handles `#define'
31682 # templates, and the second `#undef' templates.
31683 # And first: Protect against being on the right side of a sed subst in
31684 # config.status. Protect against being in an unquoted here document
31685 # in config.status.
31686 rm -f conftest.defines conftest.undefs
31687 # Using a here document instead of a string reduces the quoting nightmare.
31688 # Putting comments in sed scripts is not portable.
31690 # `end' is used to avoid that the second main sed command (meant for
31691 # 0-ary CPP macros) applies to n-ary macro definitions.
31692 # See the Autoconf documentation for `clear'.
31693 cat >confdef2sed.sed <<\_ACEOF
31698 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
31700 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
31703 # If some macros were called several times there might be several times
31704 # the same #defines, which is useless. Nevertheless, we may not want to
31705 # sort them, since we want the *last* AC-DEFINE to be honored.
31706 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31707 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31708 rm -f confdef2sed.sed
31710 # This sed command replaces #undef with comments. This is necessary, for
31711 # example, in the case of _POSIX_SOURCE, which is predefined and required
31712 # on some systems where configure will not decide to define it.
31713 cat >>conftest.undefs <<\_ACEOF
31714 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
31717 # Break up conftest.defines because some shells have a limit on the size
31718 # of here documents, and old seds have small limits too (100 cmds).
31719 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
31720 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
31721 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31722 echo ' :' >>$CONFIG_STATUS
31723 rm -f conftest.tail
31724 while grep . conftest.defines >/dev/null
31726 # Write a limited-size here document to $tmp/defines.sed.
31727 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31728 # Speed up: don't consider the non `#define' lines.
31729 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
31730 # Work around the forget-to-reset-the-flag bug.
31731 echo 't clr' >>$CONFIG_STATUS
31732 echo ': clr' >>$CONFIG_STATUS
31733 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
31735 sed -f $tmp/defines.sed $tmp/in >$tmp/out
31737 mv $tmp/out $tmp/in
31739 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
31740 rm -f conftest.defines
31741 mv conftest.tail conftest.defines
31743 rm -f conftest.defines
31744 echo ' fi # grep' >>$CONFIG_STATUS
31745 echo >>$CONFIG_STATUS
31747 # Break up conftest.undefs because some shells have a limit on the size
31748 # of here documents, and old seds have small limits too (100 cmds).
31749 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
31750 rm -f conftest.tail
31751 while grep . conftest.undefs >/dev/null
31753 # Write a limited-size here document to $tmp/undefs.sed.
31754 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
31755 # Speed up: don't consider the non `#undef'
31756 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
31757 # Work around the forget-to-reset-the-flag bug.
31758 echo 't clr' >>$CONFIG_STATUS
31759 echo ': clr' >>$CONFIG_STATUS
31760 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
31762 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
31764 mv $tmp/out $tmp/in
31766 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
31767 rm -f conftest.undefs
31768 mv conftest.tail conftest.undefs
31770 rm -f conftest.undefs
31772 cat >>$CONFIG_STATUS <<\_ACEOF
31773 # Let's still pretend it is `configure' which instantiates (i.e., don't
31774 # use $as_me), people would be surprised to read:
31775 # /* config.h. Generated by config.status. */
31776 if test x"$ac_file" = x-; then
31777 echo "/* Generated by configure. */" >$tmp/config.h
31779 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
31781 cat $tmp/in >>$tmp/config.h
31783 if test x"$ac_file" != x-; then
31784 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
31785 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31786 echo "$as_me: $ac_file is unchanged" >&6;}
31788 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31789 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31790 X"$ac_file" : 'X\(//\)[^/]' \| \
31791 X"$ac_file" : 'X\(//\)$' \| \
31792 X"$ac_file" : 'X\(/\)' \| \
31793 . : '\(.\)' 2>/dev/null ||
31795 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31796 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31797 /^X\(\/\/\)$/{ s//\1/; q; }
31798 /^X\(\/\).*/{ s//\1/; q; }
31800 { if $as_mkdir_p; then
31805 while test ! -d "$as_dir"; do
31806 as_dirs="$as_dir $as_dirs"
31807 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31808 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31809 X"$as_dir" : 'X\(//\)[^/]' \| \
31810 X"$as_dir" : 'X\(//\)$' \| \
31811 X"$as_dir" : 'X\(/\)' \| \
31812 . : '\(.\)' 2>/dev/null ||
31814 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31815 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31816 /^X\(\/\/\)$/{ s//\1/; q; }
31817 /^X\(\/\).*/{ s//\1/; q; }
31820 test ! -n "$as_dirs" || mkdir $as_dirs
31821 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31822 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31823 { (exit 1); exit 1; }; }; }
31826 mv $tmp/config.h $ac_file
31830 rm -f $tmp/config.h
31834 cat >>$CONFIG_STATUS <<\_ACEOF
31837 # CONFIG_COMMANDS section.
31839 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
31840 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
31841 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
31842 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
31843 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31844 X"$ac_dest" : 'X\(//\)[^/]' \| \
31845 X"$ac_dest" : 'X\(//\)$' \| \
31846 X"$ac_dest" : 'X\(/\)' \| \
31847 . : '\(.\)' 2>/dev/null ||
31849 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31850 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31851 /^X\(\/\/\)$/{ s//\1/; q; }
31852 /^X\(\/\).*/{ s//\1/; q; }
31854 { if $as_mkdir_p; then
31859 while test ! -d "$as_dir"; do
31860 as_dirs="$as_dir $as_dirs"
31861 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31862 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31863 X"$as_dir" : 'X\(//\)[^/]' \| \
31864 X"$as_dir" : 'X\(//\)$' \| \
31865 X"$as_dir" : 'X\(/\)' \| \
31866 . : '\(.\)' 2>/dev/null ||
31868 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31869 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31870 /^X\(\/\/\)$/{ s//\1/; q; }
31871 /^X\(\/\).*/{ s//\1/; q; }
31874 test ! -n "$as_dirs" || mkdir $as_dirs
31875 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31876 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31877 { (exit 1); exit 1; }; }; }
31881 if test "$ac_dir" != .; then
31882 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31883 # A "../" for each directory in $ac_dir_suffix.
31884 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31886 ac_dir_suffix= ac_top_builddir=
31890 .) # No --srcdir option. We are building in place.
31892 if test -z "$ac_top_builddir"; then
31895 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31897 [\\/]* | ?:[\\/]* ) # Absolute path.
31898 ac_srcdir=$srcdir$ac_dir_suffix;
31899 ac_top_srcdir=$srcdir ;;
31900 *) # Relative path.
31901 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31902 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31905 # Do not use `cd foo && pwd` to compute absolute paths, because
31906 # the directories may not exist.
31908 .) ac_abs_builddir="$ac_dir";;
31911 .) ac_abs_builddir=`pwd`;;
31912 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31913 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31916 case $ac_abs_builddir in
31917 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31919 case ${ac_top_builddir}. in
31920 .) ac_abs_top_builddir=$ac_abs_builddir;;
31921 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31922 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31925 case $ac_abs_builddir in
31926 .) ac_abs_srcdir=$ac_srcdir;;
31929 .) ac_abs_srcdir=$ac_abs_builddir;;
31930 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31931 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31934 case $ac_abs_builddir in
31935 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31937 case $ac_top_srcdir in
31938 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31939 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31940 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31945 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
31946 echo "$as_me: executing $ac_dest commands" >&6;}
31949 for ac_file in $CONFIG_FILES; do
31950 # Support "outfile[:infile[:infile...]]"
31952 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
31954 # PO directories have a Makefile.in generated from Makefile.in.in.
31955 case "$ac_file" in */Makefile.in)
31956 # Adjust a relative srcdir.
31957 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
31958 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
31959 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
31960 # In autoconf-2.13 it is called $ac_given_srcdir.
31961 # In autoconf-2.50 it is called $srcdir.
31962 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
31963 case "$ac_given_srcdir" in
31964 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
31965 /*) top_srcdir="$ac_given_srcdir" ;;
31966 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
31968 # Treat a directory as a PO directory if and only if it has a
31969 # POTFILES.in file. This allows packages to have multiple PO
31970 # directories under different names or in different locations.
31971 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
31972 rm -f "$ac_dir/POTFILES"
31973 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
31974 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
31975 POMAKEFILEDEPS="POTFILES.in"
31976 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
31977 # on $ac_dir but don't depend on user-specified configuration
31979 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
31980 # The LINGUAS file contains the set of available languages.
31981 if test -n "$OBSOLETE_ALL_LINGUAS"; then
31982 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
31984 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
31985 # Hide the ALL_LINGUAS assigment from automake.
31986 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
31987 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
31989 # The set of available languages was given in configure.in.
31990 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
31993 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
31994 # Compute UPDATEPOFILES
31995 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
31996 # Compute DUMMYPOFILES
31997 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
31999 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
32000 case "$ac_given_srcdir" in
32002 *) srcdirpre='$(srcdir)/' ;;
32008 for lang in $ALL_LINGUAS; do
32009 POFILES="$POFILES $srcdirpre$lang.po"
32010 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
32011 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
32012 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
32014 # CATALOGS depends on both $ac_dir and the user's LINGUAS
32015 # environment variable.
32017 if test -n "$ALL_LINGUAS"; then
32018 for presentlang in $ALL_LINGUAS; do
32020 if test "%UNSET%" != "$LINGUAS"; then
32021 desiredlanguages="$LINGUAS"
32023 desiredlanguages="$ALL_LINGUAS"
32025 for desiredlang in $desiredlanguages; do
32026 # Use the presentlang catalog if desiredlang is
32027 # a. equal to presentlang, or
32028 # b. a variant of presentlang (because in this case,
32029 # presentlang can be used as a fallback for messages
32030 # which are not translated in the desiredlang catalog).
32031 case "$desiredlang" in
32032 "$presentlang"*) useit=yes;;
32035 if test $useit = yes; then
32036 INST_LINGUAS="$INST_LINGUAS $presentlang"
32041 if test -n "$INST_LINGUAS"; then
32042 for lang in $INST_LINGUAS; do
32043 CATALOGS="$CATALOGS $lang.gmo"
32046 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
32047 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"
32048 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
32049 if test -f "$f"; then
32051 *.orig | *.bak | *~) ;;
32052 *) cat "$f" >> "$ac_dir/Makefile" ;;
32066 cat >>$CONFIG_STATUS <<\_ACEOF
32068 { (exit 0); exit 0; }
32070 chmod +x $CONFIG_STATUS
32071 ac_clean_files=$ac_clean_files_save
32074 # configure is writing to config.log, and then calls config.status.
32075 # config.status does its own redirection, appending to config.log.
32076 # Unfortunately, on DOS this fails, as config.log is still kept open
32077 # by configure, so config.status won't be able to write to it; its
32078 # output is simply discarded. So we exec the FD to /dev/null,
32079 # effectively closing config.log, so it can be properly (re)opened and
32080 # appended to by config.status. When coming back to configure, we
32081 # need to make the FD available again.
32082 if test "$no_create" != yes; then
32084 ac_config_status_args=
32085 test "$silent" = yes &&
32086 ac_config_status_args="$ac_config_status_args --quiet"
32088 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32090 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32091 # would make configure fail if this is the last instruction.
32092 $ac_cs_success || { (exit 1); exit 1; }
32096 if test "${support_bat}" = "yes" ; then
32098 chmod 755 install_conf_file build-depkgs-qt-console
32099 echo "Creating bat Makefile"
32104 echo "Doing make of dependencies"
32105 ${MAKE:-make} depend
32108 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
32109 chmod 755 dvd-handler dvd-simulator
32110 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
32115 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
32116 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
32118 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
32119 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
32121 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
32122 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
32124 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
32125 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
32127 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
32128 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
32130 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
32131 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
32133 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
32134 chmod 755 $c/sqlite
32137 chmod 755 src/win32/build-depkgs-mingw32
32141 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
32142 largefile_support="yes"
32146 # A whole lot of hand springs to get the compiler version.
32147 # This is because gcc changed the output in version 3.0
32149 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32150 if test "x${CCVERSION}" = "x" ; then
32151 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32153 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32154 if test x"${CXXVERSION}" = x ; then
32155 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32158 if test "x${subsysdir}" = "x${sbindir}" ; then
32161 echo "You have set --sbindir and --with-subsys-dir"
32162 echo " both equal to: ${subsysdir} "
32163 echo " This is not permitted. Please reconfigure."
32165 echo "Aborting configuration ..."
32171 if test "x${db_type}" = "xInternal" ; then
32174 echo "You have not specified either --enable-client-only or one of the"
32175 echo " supported databases: MySQL, PostgreSQL, SQLite3 or SQLite."
32176 echo " This is not permitted. Please reconfigure."
32178 echo "Aborting the configuration ..."
32185 Configuration on `date`:
32187 Host: $host -- ${DISTNAME} ${DISTVER}
32188 Bacula version: ${VERSION} (${DATE})
32189 Source code location: ${srcdir}
32190 Install binaries: ${sbindir}
32191 Install config files: ${sysconfdir}
32192 Scripts directory: ${scriptdir}
32193 Working directory: ${working_dir}
32194 PID directory: ${piddir}
32195 Subsys directory: ${subsysdir}
32196 Man directory: ${mandir}
32197 Data directory: ${datadir}
32198 C Compiler: ${CC} ${CCVERSION}
32199 C++ Compiler: ${CXX} ${CXXVERSION}
32200 Compiler flags: ${WCFLAGS} ${CFLAGS}
32201 Linker flags: ${WLDFLAGS} ${LDFLAGS}
32203 Statically Linked Tools: ${support_static_tools}
32204 Statically Linked FD: ${support_static_fd}
32205 Statically Linked SD: ${support_static_sd}
32206 Statically Linked DIR: ${support_static_dir}
32207 Statically Linked CONS: ${support_static_cons}
32208 Database type: ${db_type}
32209 Database lib: ${DB_LIBS}
32210 Database name: ${db_name}
32211 Database user: ${db_user}
32213 Job Output Email: ${job_email}
32214 Traceback Email: ${dump_email}
32215 SMTP Host Address: ${smtp_host}
32217 Director Port: ${dir_port}
32218 File daemon Port: ${fd_port}
32219 Storage daemon Port: ${sd_port}
32221 Director User: ${dir_user}
32222 Director Group: ${dir_group}
32223 Storage Daemon User: ${sd_user}
32224 Storage DaemonGroup: ${sd_group}
32225 File Daemon User: ${fd_user}
32226 File Daemon Group: ${fd_group}
32228 SQL binaries Directory ${SQL_BINDIR}
32230 Large file support: $largefile_support
32231 Bacula conio support: ${got_conio} ${CONS_LIBS}
32232 readline support: ${got_readline} ${PRTREADLINE_SRC}
32233 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
32234 TLS support: ${support_tls}
32235 Encryption support: ${support_crypto}
32236 ZLIB support: ${have_zlib}
32237 enable-smartalloc: ${support_smartalloc}
32238 bat support: ${support_bat} ${QWT_LDFLAGS}
32239 enable-gnome: ${support_gnome} ${gnome_version}
32240 enable-bwx-console: ${support_wx_console} ${wx_version}
32241 enable-tray-monitor: ${support_tray_monitor}
32242 client-only: ${build_client_only}
32243 build-dird: ${build_dird}
32244 build-stored: ${build_stored}
32245 ACL support: ${have_acl}
32246 Python support: ${support_python} ${PYTHON_LIBS}
32247 Batch insert enabled: ${support_batch_insert}