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 QMAKE QMAKEQT4 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
4109 # Extract the first word of "qmake", so it can be a program name with args.
4110 set dummy qmake; ac_word=$2
4111 echo "$as_me:$LINENO: checking for $ac_word" >&5
4112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4113 if test "${ac_cv_path_QMAKE+set}" = set; then
4114 echo $ECHO_N "(cached) $ECHO_C" >&6
4118 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
4121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4125 test -z "$as_dir" && as_dir=.
4126 for ac_exec_ext in '' $ac_executable_extensions; do
4127 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4128 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
4129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4135 test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
4139 QMAKE=$ac_cv_path_QMAKE
4141 if test -n "$QMAKE"; then
4142 echo "$as_me:$LINENO: result: $QMAKE" >&5
4143 echo "${ECHO_T}$QMAKE" >&6
4145 echo "$as_me:$LINENO: result: no" >&5
4146 echo "${ECHO_T}no" >&6
4149 # Extract the first word of "qmake-qt4", so it can be a program name with args.
4150 set dummy qmake-qt4; ac_word=$2
4151 echo "$as_me:$LINENO: checking for $ac_word" >&5
4152 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4153 if test "${ac_cv_path_QMAKEQT4+set}" = set; then
4154 echo $ECHO_N "(cached) $ECHO_C" >&6
4158 ac_cv_path_QMAKEQT4="$QMAKEQT4" # Let the user override the test with a path.
4161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4165 test -z "$as_dir" && as_dir=.
4166 for ac_exec_ext in '' $ac_executable_extensions; do
4167 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4168 ac_cv_path_QMAKEQT4="$as_dir/$ac_word$ac_exec_ext"
4169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4175 test -z "$ac_cv_path_QMAKEQT4" && ac_cv_path_QMAKEQT4="none"
4179 QMAKEQT4=$ac_cv_path_QMAKEQT4
4181 if test -n "$QMAKEQT4"; then
4182 echo "$as_me:$LINENO: result: $QMAKEQT4" >&5
4183 echo "${ECHO_T}$QMAKEQT4" >&6
4185 echo "$as_me:$LINENO: result: no" >&5
4186 echo "${ECHO_T}no" >&6
4190 if test "x$WXCONFIG" = x; then
4193 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
4194 set dummy ${WXCONFIG}; ac_word=$2
4195 echo "$as_me:$LINENO: checking for $ac_word" >&5
4196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4197 if test "${ac_cv_path_WXCONFIG+set}" = set; then
4198 echo $ECHO_N "(cached) $ECHO_C" >&6
4202 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
4205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4209 test -z "$as_dir" && as_dir=.
4210 for ac_exec_ext in '' $ac_executable_extensions; do
4211 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4212 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
4213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4219 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
4223 WXCONFIG=$ac_cv_path_WXCONFIG
4225 if test -n "$WXCONFIG"; then
4226 echo "$as_me:$LINENO: result: $WXCONFIG" >&5
4227 echo "${ECHO_T}$WXCONFIG" >&6
4229 echo "$as_me:$LINENO: result: no" >&5
4230 echo "${ECHO_T}no" >&6
4234 # Extract the first word of "cdrecord", so it can be a program name with args.
4235 set dummy cdrecord; ac_word=$2
4236 echo "$as_me:$LINENO: checking for $ac_word" >&5
4237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4238 if test "${ac_cv_path_CDRECORD+set}" = set; then
4239 echo $ECHO_N "(cached) $ECHO_C" >&6
4243 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
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_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
4254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4260 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
4264 CDRECORD=$ac_cv_path_CDRECORD
4266 if test -n "$CDRECORD"; then
4267 echo "$as_me:$LINENO: result: $CDRECORD" >&5
4268 echo "${ECHO_T}$CDRECORD" >&6
4270 echo "$as_me:$LINENO: result: no" >&5
4271 echo "${ECHO_T}no" >&6
4274 # Extract the first word of "pidof", so it can be a program name with args.
4275 set dummy pidof; ac_word=$2
4276 echo "$as_me:$LINENO: checking for $ac_word" >&5
4277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4278 if test "${ac_cv_path_PIDOF+set}" = set; then
4279 echo $ECHO_N "(cached) $ECHO_C" >&6
4283 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
4286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4290 test -z "$as_dir" && as_dir=.
4291 for ac_exec_ext in '' $ac_executable_extensions; do
4292 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4293 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
4294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4300 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
4304 PIDOF=$ac_cv_path_PIDOF
4306 if test -n "$PIDOF"; then
4307 echo "$as_me:$LINENO: result: $PIDOF" >&5
4308 echo "${ECHO_T}$PIDOF" >&6
4310 echo "$as_me:$LINENO: result: no" >&5
4311 echo "${ECHO_T}no" >&6
4314 for ac_prog in gawk mawk nawk awk
4316 # Extract the first word of "$ac_prog", so it can be a program name with args.
4317 set dummy $ac_prog; ac_word=$2
4318 echo "$as_me:$LINENO: checking for $ac_word" >&5
4319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4320 if test "${ac_cv_prog_AWK+set}" = set; then
4321 echo $ECHO_N "(cached) $ECHO_C" >&6
4323 if test -n "$AWK"; then
4324 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4330 test -z "$as_dir" && as_dir=.
4331 for ac_exec_ext in '' $ac_executable_extensions; do
4332 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4333 ac_cv_prog_AWK="$ac_prog"
4334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4343 if test -n "$AWK"; then
4344 echo "$as_me:$LINENO: result: $AWK" >&5
4345 echo "${ECHO_T}$AWK" >&6
4347 echo "$as_me:$LINENO: result: no" >&5
4348 echo "${ECHO_T}no" >&6
4351 test -n "$AWK" && break
4354 # Some AWK programs fail, so test it and warn the user
4355 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
4356 { if ((prog == $2) || (("(" prog ")") == $2) ||
4357 (("" prog "") == $2) ||
4358 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
4360 { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4361 The regex engine of $AWK is too broken to be used you
4362 might want to install GNU AWK.
4363 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
4364 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4365 The regex engine of $AWK is too broken to be used you
4366 might want to install GNU AWK.
4367 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
4368 { (exit 1); exit 1; }; }
4371 # Extract the first word of "$THE_AWK", so it can be a program name with args.
4372 set dummy $THE_AWK; ac_word=$2
4373 echo "$as_me:$LINENO: checking for $ac_word" >&5
4374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4375 if test "${ac_cv_path_AWK+set}" = set; then
4376 echo $ECHO_N "(cached) $ECHO_C" >&6
4380 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
4383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4387 test -z "$as_dir" && as_dir=.
4388 for ac_exec_ext in '' $ac_executable_extensions; do
4389 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4390 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
4391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4397 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
4403 if test -n "$AWK"; then
4404 echo "$as_me:$LINENO: result: $AWK" >&5
4405 echo "${ECHO_T}$AWK" >&6
4407 echo "$as_me:$LINENO: result: no" >&5
4408 echo "${ECHO_T}no" >&6
4413 test -n "$ARFLAG" || ARFLAGS="cr"
4424 # Make sure we can run config.sub.
4425 $ac_config_sub sun4 >/dev/null 2>&1 ||
4426 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4427 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4428 { (exit 1); exit 1; }; }
4430 echo "$as_me:$LINENO: checking build system type" >&5
4431 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4432 if test "${ac_cv_build+set}" = set; then
4433 echo $ECHO_N "(cached) $ECHO_C" >&6
4435 ac_cv_build_alias=$build_alias
4436 test -z "$ac_cv_build_alias" &&
4437 ac_cv_build_alias=`$ac_config_guess`
4438 test -z "$ac_cv_build_alias" &&
4439 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4440 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4441 { (exit 1); exit 1; }; }
4442 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4443 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4444 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4445 { (exit 1); exit 1; }; }
4448 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4449 echo "${ECHO_T}$ac_cv_build" >&6
4451 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4452 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4453 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4457 echo "$as_me:$LINENO: checking host system type" >&5
4458 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4459 if test "${ac_cv_host+set}" = set; then
4460 echo $ECHO_N "(cached) $ECHO_C" >&6
4462 ac_cv_host_alias=$host_alias
4463 test -z "$ac_cv_host_alias" &&
4464 ac_cv_host_alias=$ac_cv_build_alias
4465 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4466 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4467 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4468 { (exit 1); exit 1; }; }
4471 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4472 echo "${ECHO_T}$ac_cv_host" >&6
4474 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4475 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4476 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4480 *cygwin* ) CYGWIN=yes;;
4484 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4490 HAVE_SUN_OS_FALSE='#'
4492 HAVE_SUN_OS_TRUE='#'
4495 cat >>confdefs.h <<\_ACEOF
4496 #define HAVE_SUN_OS 1
4504 HAVE_SUN_OS_FALSE='#'
4506 HAVE_SUN_OS_TRUE='#'
4511 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4517 HAVE_OSF1_OS_FALSE='#'
4519 HAVE_OSF1_OS_TRUE='#'
4522 cat >>confdefs.h <<\_ACEOF
4523 #define HAVE_OSF1_OS 1
4531 HAVE_OSF1_OS_FALSE='#'
4533 HAVE_OSF1_OS_TRUE='#'
4538 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4544 HAVE_AIX_OS_FALSE='#'
4546 HAVE_AIX_OS_TRUE='#'
4549 cat >>confdefs.h <<\_ACEOF
4550 #define HAVE_AIX_OS 1
4558 HAVE_AIX_OS_FALSE='#'
4560 HAVE_AIX_OS_TRUE='#'
4565 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4571 HAVE_HPUX_OS_FALSE='#'
4573 HAVE_HPUX_OS_TRUE='#'
4576 cat >>confdefs.h <<\_ACEOF
4577 #define HAVE_HPUX_OS 1
4585 HAVE_HPUX_OS_FALSE='#'
4587 HAVE_HPUX_OS_TRUE='#'
4592 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
4598 HAVE_LINUX_OS_FALSE='#'
4600 HAVE_LINUX_OS_TRUE='#'
4601 HAVE_LINUX_OS_FALSE=
4603 cat >>confdefs.h <<\_ACEOF
4604 #define HAVE_LINUX_OS 1
4612 HAVE_LINUX_OS_FALSE='#'
4614 HAVE_LINUX_OS_TRUE='#'
4615 HAVE_LINUX_OS_FALSE=
4619 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4624 HAVE_FREEBSD_OS_TRUE=
4625 HAVE_FREEBSD_OS_FALSE='#'
4627 HAVE_FREEBSD_OS_TRUE='#'
4628 HAVE_FREEBSD_OS_FALSE=
4630 cat >>confdefs.h <<\_ACEOF
4631 #define HAVE_FREEBSD_OS 1
4638 HAVE_FREEBSD_OS_TRUE=
4639 HAVE_FREEBSD_OS_FALSE='#'
4641 HAVE_FREEBSD_OS_TRUE='#'
4642 HAVE_FREEBSD_OS_FALSE=
4646 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4651 HAVE_NETBSD_OS_TRUE=
4652 HAVE_NETBSD_OS_FALSE='#'
4654 HAVE_NETBSD_OS_TRUE='#'
4655 HAVE_NETBSD_OS_FALSE=
4657 cat >>confdefs.h <<\_ACEOF
4658 #define HAVE_NETBSD_OS 1
4665 HAVE_NETBSD_OS_TRUE=
4666 HAVE_NETBSD_OS_FALSE='#'
4668 HAVE_NETBSD_OS_TRUE='#'
4669 HAVE_NETBSD_OS_FALSE=
4673 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4678 HAVE_OPENBSD_OS_TRUE=
4679 HAVE_OPENBSD_OS_FALSE='#'
4681 HAVE_OPENBSD_OS_TRUE='#'
4682 HAVE_OPENBSD_OS_FALSE=
4684 cat >>confdefs.h <<\_ACEOF
4685 #define HAVE_OPENBSD_OS 1
4692 HAVE_OPENBSD_OS_TRUE=
4693 HAVE_OPENBSD_OS_FALSE='#'
4695 HAVE_OPENBSD_OS_TRUE='#'
4696 HAVE_OPENBSD_OS_FALSE=
4700 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4706 HAVE_BSDI_OS_FALSE='#'
4708 HAVE_BSDI_OS_TRUE='#'
4711 cat >>confdefs.h <<\_ACEOF
4712 #define HAVE_BSDI_OS 1
4720 HAVE_BSDI_OS_FALSE='#'
4722 HAVE_BSDI_OS_TRUE='#'
4727 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4733 HAVE_SGI_OS_FALSE='#'
4735 HAVE_SGI_OS_TRUE='#'
4738 cat >>confdefs.h <<\_ACEOF
4739 #define HAVE_SGI_OS 1
4747 HAVE_SGI_OS_FALSE='#'
4749 HAVE_SGI_OS_TRUE='#'
4754 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
4760 HAVE_IRIX_OS_FALSE='#'
4762 HAVE_IRIX_OS_TRUE='#'
4765 cat >>confdefs.h <<\_ACEOF
4766 #define HAVE_IRIX_OS 1
4774 HAVE_IRIX_OS_FALSE='#'
4776 HAVE_IRIX_OS_TRUE='#'
4781 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4786 HAVE_DARWIN_OS_TRUE=
4787 HAVE_DARWIN_OS_FALSE='#'
4789 HAVE_DARWIN_OS_TRUE='#'
4790 HAVE_DARWIN_OS_FALSE=
4792 cat >>confdefs.h <<\_ACEOF
4793 #define HAVE_DARWIN_OS 1
4800 HAVE_DARWIN_OS_TRUE=
4801 HAVE_DARWIN_OS_FALSE='#'
4803 HAVE_DARWIN_OS_TRUE='#'
4804 HAVE_DARWIN_OS_FALSE=
4809 # -----------------------------------------------------------
4810 # ----------------------------------------------------------
4811 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4812 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4813 if test "x$DISTNAME" != "x"
4815 echo "distname set to $DISTNAME"
4816 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4819 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4822 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4825 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4828 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4831 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4834 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4837 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4840 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4843 elif test -f /etc/SuSE-release
4846 elif test -d /etc/SuSEconfig
4849 elif test -f /etc/mandrake-release
4852 elif test -f /etc/whitebox-release
4855 elif test -f /etc/redhat-release
4858 elif test -f /etc/gentoo-release
4861 elif test -f /etc/debian_version
4864 elif test -f /etc/slackware-version
4867 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4870 elif test -f /etc/engarde-version
4873 elif test "$CYGWIN" = yes
4876 cat >>confdefs.h <<\_ACEOF
4877 #define HAVE_CYGWIN 1
4883 echo "$as_me:$LINENO: result: done" >&5
4884 echo "${ECHO_T}done" >&6
4887 # --------------------------------------------------
4888 # Suppport for gettext (translations)
4889 # By default, $datadir is ${prefix}/share
4890 # --------------------------------------------------
4891 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4892 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4893 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4894 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4895 echo $ECHO_N "(cached) $ECHO_C" >&6
4897 cat >conftest.make <<\_ACEOF
4899 @echo 'ac_maketemp="$(MAKE)"'
4901 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4902 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4903 if test -n "$ac_maketemp"; then
4904 eval ac_cv_prog_make_${ac_make}_set=yes
4906 eval ac_cv_prog_make_${ac_make}_set=no
4910 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4911 echo "$as_me:$LINENO: result: yes" >&5
4912 echo "${ECHO_T}yes" >&6
4915 echo "$as_me:$LINENO: result: no" >&5
4916 echo "${ECHO_T}no" >&6
4917 SET_MAKE="MAKE=${MAKE-make}"
4923 if test -n "$ac_aux_dir"; then
4924 case "$ac_aux_dir" in
4925 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
4926 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4929 if test -z "$MKINSTALLDIRS"; then
4930 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4935 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4936 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4937 # Check whether --enable-nls or --disable-nls was given.
4938 if test "${enable_nls+set}" = set; then
4939 enableval="$enable_nls"
4944 echo "$as_me:$LINENO: result: $USE_NLS" >&5
4945 echo "${ECHO_T}$USE_NLS" >&6
4952 # Prepare PATH_SEPARATOR.
4953 # The user is always right.
4954 if test "${PATH_SEPARATOR+set}" != set; then
4955 echo "#! /bin/sh" >conf$$.sh
4956 echo "exit 0" >>conf$$.sh
4958 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4966 # Find out how to test for executable files. Don't use a zero-byte file,
4967 # as systems may use methods other than mode bits to determine executability.
4968 cat >conf$$.file <<_ASEOF
4972 chmod +x conf$$.file
4973 if test -x conf$$.file >/dev/null 2>&1; then
4974 ac_executable_p="test -x"
4976 ac_executable_p="test -f"
4980 # Extract the first word of "msgfmt", so it can be a program name with args.
4981 set dummy msgfmt; ac_word=$2
4982 echo "$as_me:$LINENO: checking for $ac_word" >&5
4983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4984 if test "${ac_cv_path_MSGFMT+set}" = set; then
4985 echo $ECHO_N "(cached) $ECHO_C" >&6
4989 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4992 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4993 for ac_dir in $PATH; do
4995 test -z "$ac_dir" && ac_dir=.
4996 for ac_exec_ext in '' $ac_executable_extensions; do
4997 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4998 echo "$as_me: trying $ac_dir/$ac_word..." >&5
4999 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
5000 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5001 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5008 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5012 MSGFMT="$ac_cv_path_MSGFMT"
5013 if test "$MSGFMT" != ":"; then
5014 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5015 echo "${ECHO_T}$MSGFMT" >&6
5017 echo "$as_me:$LINENO: result: no" >&5
5018 echo "${ECHO_T}no" >&6
5021 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5022 set dummy gmsgfmt; ac_word=$2
5023 echo "$as_me:$LINENO: checking for $ac_word" >&5
5024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5025 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5026 echo $ECHO_N "(cached) $ECHO_C" >&6
5030 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5037 test -z "$as_dir" && as_dir=.
5038 for ac_exec_ext in '' $ac_executable_extensions; do
5039 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5040 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5047 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5051 GMSGFMT=$ac_cv_path_GMSGFMT
5053 if test -n "$GMSGFMT"; then
5054 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5055 echo "${ECHO_T}$GMSGFMT" >&6
5057 echo "$as_me:$LINENO: result: no" >&5
5058 echo "${ECHO_T}no" >&6
5063 # Prepare PATH_SEPARATOR.
5064 # The user is always right.
5065 if test "${PATH_SEPARATOR+set}" != set; then
5066 echo "#! /bin/sh" >conf$$.sh
5067 echo "exit 0" >>conf$$.sh
5069 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5077 # Find out how to test for executable files. Don't use a zero-byte file,
5078 # as systems may use methods other than mode bits to determine executability.
5079 cat >conf$$.file <<_ASEOF
5083 chmod +x conf$$.file
5084 if test -x conf$$.file >/dev/null 2>&1; then
5085 ac_executable_p="test -x"
5087 ac_executable_p="test -f"
5091 # Extract the first word of "xgettext", so it can be a program name with args.
5092 set dummy xgettext; ac_word=$2
5093 echo "$as_me:$LINENO: checking for $ac_word" >&5
5094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5095 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5096 echo $ECHO_N "(cached) $ECHO_C" >&6
5100 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5103 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5104 for ac_dir in $PATH; do
5106 test -z "$ac_dir" && ac_dir=.
5107 for ac_exec_ext in '' $ac_executable_extensions; do
5108 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5109 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5110 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5111 (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
5112 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5119 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5123 XGETTEXT="$ac_cv_path_XGETTEXT"
5124 if test "$XGETTEXT" != ":"; then
5125 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5126 echo "${ECHO_T}$XGETTEXT" >&6
5128 echo "$as_me:$LINENO: result: no" >&5
5129 echo "${ECHO_T}no" >&6
5135 # Prepare PATH_SEPARATOR.
5136 # The user is always right.
5137 if test "${PATH_SEPARATOR+set}" != set; then
5138 echo "#! /bin/sh" >conf$$.sh
5139 echo "exit 0" >>conf$$.sh
5141 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5149 # Find out how to test for executable files. Don't use a zero-byte file,
5150 # as systems may use methods other than mode bits to determine executability.
5151 cat >conf$$.file <<_ASEOF
5155 chmod +x conf$$.file
5156 if test -x conf$$.file >/dev/null 2>&1; then
5157 ac_executable_p="test -x"
5159 ac_executable_p="test -f"
5163 # Extract the first word of "msgmerge", so it can be a program name with args.
5164 set dummy msgmerge; ac_word=$2
5165 echo "$as_me:$LINENO: checking for $ac_word" >&5
5166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5167 if test "${ac_cv_path_MSGMERGE+set}" = set; then
5168 echo $ECHO_N "(cached) $ECHO_C" >&6
5172 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5175 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5176 for ac_dir in $PATH; do
5178 test -z "$ac_dir" && ac_dir=.
5179 for ac_exec_ext in '' $ac_executable_extensions; do
5180 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5181 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5182 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
5183 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5190 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5194 MSGMERGE="$ac_cv_path_MSGMERGE"
5195 if test "$MSGMERGE" != ":"; then
5196 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
5197 echo "${ECHO_T}$MSGMERGE" >&6
5199 echo "$as_me:$LINENO: result: no" >&5
5200 echo "${ECHO_T}no" >&6
5204 if test "$GMSGFMT" != ":"; then
5205 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
5206 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5209 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
5210 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
5211 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
5216 if test "$XGETTEXT" != ":"; then
5217 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5218 (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
5221 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
5222 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
5228 ac_config_commands="$ac_config_commands default-1"
5232 if test "X$prefix" = "XNONE"; then
5233 acl_final_prefix="$ac_default_prefix"
5235 acl_final_prefix="$prefix"
5237 if test "X$exec_prefix" = "XNONE"; then
5238 acl_final_exec_prefix='${prefix}'
5240 acl_final_exec_prefix="$exec_prefix"
5242 acl_save_prefix="$prefix"
5243 prefix="$acl_final_prefix"
5244 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5245 prefix="$acl_save_prefix"
5248 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5249 if test "${with_gnu_ld+set}" = set; then
5250 withval="$with_gnu_ld"
5251 test "$withval" = no || with_gnu_ld=yes
5255 # Prepare PATH_SEPARATOR.
5256 # The user is always right.
5257 if test "${PATH_SEPARATOR+set}" != set; then
5258 echo "#! /bin/sh" >conf$$.sh
5259 echo "exit 0" >>conf$$.sh
5261 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5269 if test "$GCC" = yes; then
5270 # Check if gcc -print-prog-name=ld gives a path.
5271 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5272 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5275 # gcc leaves a trailing carriage return which upsets mingw
5276 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5278 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5281 # Accept absolute paths.
5282 [\\/]* | [A-Za-z]:[\\/]*)
5283 re_direlt='/[^/][^/]*/\.\./'
5284 # Canonicalize the path of ld
5285 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5286 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5287 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5289 test -z "$LD" && LD="$ac_prog"
5292 # If it fails, then pretend we aren't using GCC.
5296 # If it is relative, then search for the first ld in PATH.
5300 elif test "$with_gnu_ld" = yes; then
5301 echo "$as_me:$LINENO: checking for GNU ld" >&5
5302 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5304 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5305 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5307 if test "${acl_cv_path_LD+set}" = set; then
5308 echo $ECHO_N "(cached) $ECHO_C" >&6
5310 if test -z "$LD"; then
5311 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5312 for ac_dir in $PATH; do
5313 test -z "$ac_dir" && ac_dir=.
5314 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5315 acl_cv_path_LD="$ac_dir/$ac_prog"
5316 # Check to see if the program is GNU ld. I'd rather use --version,
5317 # but apparently some GNU ld's only accept -v.
5318 # Break only if it was the GNU/non-GNU ld that we prefer.
5319 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
5320 *GNU* | *'with BFD'*)
5321 test "$with_gnu_ld" != no && break ;;
5323 test "$with_gnu_ld" != yes && break ;;
5329 acl_cv_path_LD="$LD" # Let the user override the test with a path.
5333 LD="$acl_cv_path_LD"
5334 if test -n "$LD"; then
5335 echo "$as_me:$LINENO: result: $LD" >&5
5336 echo "${ECHO_T}$LD" >&6
5338 echo "$as_me:$LINENO: result: no" >&5
5339 echo "${ECHO_T}no" >&6
5341 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5342 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5343 { (exit 1); exit 1; }; }
5344 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5345 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5346 if test "${acl_cv_prog_gnu_ld+set}" = set; then
5347 echo $ECHO_N "(cached) $ECHO_C" >&6
5349 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5350 case `$LD -v 2>&1 </dev/null` in
5351 *GNU* | *'with BFD'*)
5352 acl_cv_prog_gnu_ld=yes ;;
5354 acl_cv_prog_gnu_ld=no ;;
5357 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
5358 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
5359 with_gnu_ld=$acl_cv_prog_gnu_ld
5364 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
5365 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
5366 if test "${acl_cv_rpath+set}" = set; then
5367 echo $ECHO_N "(cached) $ECHO_C" >&6
5370 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5371 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5377 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
5378 echo "${ECHO_T}$acl_cv_rpath" >&6
5380 libext="$acl_cv_libext"
5381 shlibext="$acl_cv_shlibext"
5382 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5383 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5384 hardcode_direct="$acl_cv_hardcode_direct"
5385 hardcode_minus_L="$acl_cv_hardcode_minus_L"
5386 # Check whether --enable-rpath or --disable-rpath was given.
5387 if test "${enable_rpath+set}" = set; then
5388 enableval="$enable_rpath"
5402 acl_save_prefix="$prefix"
5403 prefix="$acl_final_prefix"
5404 acl_save_exec_prefix="$exec_prefix"
5405 exec_prefix="$acl_final_exec_prefix"
5407 eval additional_includedir=\"$includedir\"
5408 eval additional_libdir=\"$libdir\"
5410 exec_prefix="$acl_save_exec_prefix"
5411 prefix="$acl_save_prefix"
5414 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
5415 if test "${with_libiconv_prefix+set}" = set; then
5416 withval="$with_libiconv_prefix"
5418 if test "X$withval" = "Xno"; then
5421 if test "X$withval" = "X"; then
5423 acl_save_prefix="$prefix"
5424 prefix="$acl_final_prefix"
5425 acl_save_exec_prefix="$exec_prefix"
5426 exec_prefix="$acl_final_exec_prefix"
5428 eval additional_includedir=\"$includedir\"
5429 eval additional_libdir=\"$libdir\"
5431 exec_prefix="$acl_save_exec_prefix"
5432 prefix="$acl_save_prefix"
5435 additional_includedir="$withval/include"
5436 additional_libdir="$withval/lib"
5446 names_already_handled=
5447 names_next_round='iconv '
5448 while test -n "$names_next_round"; do
5449 names_this_round="$names_next_round"
5451 for name in $names_this_round; do
5453 for n in $names_already_handled; do
5454 if test "$n" = "$name"; then
5459 if test -z "$already_handled"; then
5460 names_already_handled="$names_already_handled $name"
5461 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5462 eval value=\"\$HAVE_LIB$uppername\"
5463 if test -n "$value"; then
5464 if test "$value" = yes; then
5465 eval value=\"\$LIB$uppername\"
5466 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5467 eval value=\"\$LTLIB$uppername\"
5468 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5477 if test $use_additional = yes; then
5478 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
5479 found_dir="$additional_libdir"
5480 found_so="$additional_libdir/lib$name.$shlibext"
5481 if test -f "$additional_libdir/lib$name.la"; then
5482 found_la="$additional_libdir/lib$name.la"
5485 if test -f "$additional_libdir/lib$name.$libext"; then
5486 found_dir="$additional_libdir"
5487 found_a="$additional_libdir/lib$name.$libext"
5488 if test -f "$additional_libdir/lib$name.la"; then
5489 found_la="$additional_libdir/lib$name.la"
5494 if test "X$found_dir" = "X"; then
5495 for x in $LDFLAGS $LTLIBICONV; do
5497 acl_save_prefix="$prefix"
5498 prefix="$acl_final_prefix"
5499 acl_save_exec_prefix="$exec_prefix"
5500 exec_prefix="$acl_final_exec_prefix"
5502 exec_prefix="$acl_save_exec_prefix"
5503 prefix="$acl_save_prefix"
5507 dir=`echo "X$x" | sed -e 's/^X-L//'`
5508 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
5510 found_so="$dir/lib$name.$shlibext"
5511 if test -f "$dir/lib$name.la"; then
5512 found_la="$dir/lib$name.la"
5515 if test -f "$dir/lib$name.$libext"; then
5517 found_a="$dir/lib$name.$libext"
5518 if test -f "$dir/lib$name.la"; then
5519 found_la="$dir/lib$name.la"
5525 if test "X$found_dir" != "X"; then
5530 if test "X$found_dir" != "X"; then
5531 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5532 if test "X$found_so" != "X"; then
5533 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
5534 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5537 for x in $ltrpathdirs; do
5538 if test "X$x" = "X$found_dir"; then
5543 if test -z "$haveit"; then
5544 ltrpathdirs="$ltrpathdirs $found_dir"
5546 if test "$hardcode_direct" = yes; then
5547 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5549 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
5550 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5552 for x in $rpathdirs; do
5553 if test "X$x" = "X$found_dir"; then
5558 if test -z "$haveit"; then
5559 rpathdirs="$rpathdirs $found_dir"
5563 for x in $LDFLAGS $LIBICONV; do
5565 acl_save_prefix="$prefix"
5566 prefix="$acl_final_prefix"
5567 acl_save_exec_prefix="$exec_prefix"
5568 exec_prefix="$acl_final_exec_prefix"
5570 exec_prefix="$acl_save_exec_prefix"
5571 prefix="$acl_save_prefix"
5573 if test "X$x" = "X-L$found_dir"; then
5578 if test -z "$haveit"; then
5579 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5581 if test "$hardcode_minus_L" != no; then
5582 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5584 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5590 if test "X$found_a" != "X"; then
5591 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5593 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5596 additional_includedir=
5597 case "$found_dir" in
5599 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
5600 additional_includedir="$basedir/include"
5603 if test "X$additional_includedir" != "X"; then
5604 if test "X$additional_includedir" != "X/usr/include"; then
5606 if test "X$additional_includedir" = "X/usr/local/include"; then
5607 if test -n "$GCC"; then
5609 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5613 if test -z "$haveit"; then
5614 for x in $CPPFLAGS $INCICONV; do
5616 acl_save_prefix="$prefix"
5617 prefix="$acl_final_prefix"
5618 acl_save_exec_prefix="$exec_prefix"
5619 exec_prefix="$acl_final_exec_prefix"
5621 exec_prefix="$acl_save_exec_prefix"
5622 prefix="$acl_save_prefix"
5624 if test "X$x" = "X-I$additional_includedir"; then
5629 if test -z "$haveit"; then
5630 if test -d "$additional_includedir"; then
5631 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5637 if test -n "$found_la"; then
5638 save_libdir="$libdir"
5640 */* | *\\*) . "$found_la" ;;
5641 *) . "./$found_la" ;;
5643 libdir="$save_libdir"
5644 for dep in $dependency_libs; do
5647 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5648 if test "X$additional_libdir" != "X/usr/lib"; then
5650 if test "X$additional_libdir" = "X/usr/local/lib"; then
5651 if test -n "$GCC"; then
5653 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5657 if test -z "$haveit"; then
5659 for x in $LDFLAGS $LIBICONV; do
5661 acl_save_prefix="$prefix"
5662 prefix="$acl_final_prefix"
5663 acl_save_exec_prefix="$exec_prefix"
5664 exec_prefix="$acl_final_exec_prefix"
5666 exec_prefix="$acl_save_exec_prefix"
5667 prefix="$acl_save_prefix"
5669 if test "X$x" = "X-L$additional_libdir"; then
5674 if test -z "$haveit"; then
5675 if test -d "$additional_libdir"; then
5676 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5680 for x in $LDFLAGS $LTLIBICONV; do
5682 acl_save_prefix="$prefix"
5683 prefix="$acl_final_prefix"
5684 acl_save_exec_prefix="$exec_prefix"
5685 exec_prefix="$acl_final_exec_prefix"
5687 exec_prefix="$acl_save_exec_prefix"
5688 prefix="$acl_save_prefix"
5690 if test "X$x" = "X-L$additional_libdir"; then
5695 if test -z "$haveit"; then
5696 if test -d "$additional_libdir"; then
5697 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5704 dir=`echo "X$dep" | sed -e 's/^X-R//'`
5705 if test "$enable_rpath" != no; then
5707 for x in $rpathdirs; do
5708 if test "X$x" = "X$dir"; then
5713 if test -z "$haveit"; then
5714 rpathdirs="$rpathdirs $dir"
5717 for x in $ltrpathdirs; do
5718 if test "X$x" = "X$dir"; then
5723 if test -z "$haveit"; then
5724 ltrpathdirs="$ltrpathdirs $dir"
5729 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5732 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5735 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5736 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5742 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5743 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5749 if test "X$rpathdirs" != "X"; then
5750 if test -n "$hardcode_libdir_separator"; then
5752 for found_dir in $rpathdirs; do
5753 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
5755 acl_save_libdir="$libdir"
5757 eval flag=\"$hardcode_libdir_flag_spec\"
5758 libdir="$acl_save_libdir"
5759 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5761 for found_dir in $rpathdirs; do
5762 acl_save_libdir="$libdir"
5764 eval flag=\"$hardcode_libdir_flag_spec\"
5765 libdir="$acl_save_libdir"
5766 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5770 if test "X$ltrpathdirs" != "X"; then
5771 for found_dir in $ltrpathdirs; do
5772 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5793 echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
5794 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6
5795 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
5796 echo $ECHO_N "(cached) $ECHO_C" >&6
5798 gt_save_CPPFLAGS="$CPPFLAGS"
5799 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
5800 gt_save_LIBS="$LIBS"
5801 LIBS="$LIBS -framework CoreFoundation"
5802 cat >conftest.$ac_ext <<_ACEOF
5805 cat confdefs.h >>conftest.$ac_ext
5806 cat >>conftest.$ac_ext <<_ACEOF
5807 /* end confdefs.h. */
5808 #include <CFPreferences.h>
5812 CFPreferencesCopyAppValue(NULL, NULL)
5817 rm -f conftest.$ac_objext conftest$ac_exeext
5818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5819 (eval $ac_link) 2>conftest.er1
5821 grep -v '^ *+' conftest.er1 >conftest.err
5823 cat conftest.err >&5
5824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825 (exit $ac_status); } &&
5826 { ac_try='test -z "$ac_c_werror_flag"
5827 || test ! -s conftest.err'
5828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832 (exit $ac_status); }; } &&
5833 { ac_try='test -s conftest$ac_exeext'
5834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5838 (exit $ac_status); }; }; then
5839 gt_cv_func_CFPreferencesCopyAppValue=yes
5841 echo "$as_me: failed program was:" >&5
5842 sed 's/^/| /' conftest.$ac_ext >&5
5844 gt_cv_func_CFPreferencesCopyAppValue=no
5846 rm -f conftest.err conftest.$ac_objext \
5847 conftest$ac_exeext conftest.$ac_ext
5848 CPPFLAGS="$gt_save_CPPFLAGS"
5849 LIBS="$gt_save_LIBS"
5851 echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
5852 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6
5853 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
5855 cat >>confdefs.h <<\_ACEOF
5856 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
5860 echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
5861 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6
5862 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
5863 echo $ECHO_N "(cached) $ECHO_C" >&6
5865 gt_save_CPPFLAGS="$CPPFLAGS"
5866 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
5867 gt_save_LIBS="$LIBS"
5868 LIBS="$LIBS -framework CoreFoundation"
5869 cat >conftest.$ac_ext <<_ACEOF
5872 cat confdefs.h >>conftest.$ac_ext
5873 cat >>conftest.$ac_ext <<_ACEOF
5874 /* end confdefs.h. */
5875 #include <CFLocale.h>
5879 CFLocaleCopyCurrent();
5884 rm -f conftest.$ac_objext conftest$ac_exeext
5885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5886 (eval $ac_link) 2>conftest.er1
5888 grep -v '^ *+' conftest.er1 >conftest.err
5890 cat conftest.err >&5
5891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892 (exit $ac_status); } &&
5893 { ac_try='test -z "$ac_c_werror_flag"
5894 || test ! -s conftest.err'
5895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5899 (exit $ac_status); }; } &&
5900 { ac_try='test -s conftest$ac_exeext'
5901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5905 (exit $ac_status); }; }; then
5906 gt_cv_func_CFLocaleCopyCurrent=yes
5908 echo "$as_me: failed program was:" >&5
5909 sed 's/^/| /' conftest.$ac_ext >&5
5911 gt_cv_func_CFLocaleCopyCurrent=no
5913 rm -f conftest.err conftest.$ac_objext \
5914 conftest$ac_exeext conftest.$ac_ext
5915 CPPFLAGS="$gt_save_CPPFLAGS"
5916 LIBS="$gt_save_LIBS"
5918 echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
5919 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6
5920 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5922 cat >>confdefs.h <<\_ACEOF
5923 #define HAVE_CFLOCALECOPYCURRENT 1
5928 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5929 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
5935 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5936 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5937 # Check whether --enable-nls or --disable-nls was given.
5938 if test "${enable_nls+set}" = set; then
5939 enableval="$enable_nls"
5944 echo "$as_me:$LINENO: result: $USE_NLS" >&5
5945 echo "${ECHO_T}$USE_NLS" >&6
5954 if test "$USE_NLS" = "yes"; then
5955 gt_use_preinstalled_gnugettext=no
5962 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
5963 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
5964 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
5965 echo $ECHO_N "(cached) $ECHO_C" >&6
5967 cat >conftest.$ac_ext <<_ACEOF
5970 cat confdefs.h >>conftest.$ac_ext
5971 cat >>conftest.$ac_ext <<_ACEOF
5972 /* end confdefs.h. */
5973 #include <libintl.h>
5974 extern int _nl_msg_cat_cntr;
5975 extern int *_nl_domain_bindings;
5979 bindtextdomain ("", "");
5980 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
5985 rm -f conftest.$ac_objext conftest$ac_exeext
5986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5987 (eval $ac_link) 2>conftest.er1
5989 grep -v '^ *+' conftest.er1 >conftest.err
5991 cat conftest.err >&5
5992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993 (exit $ac_status); } &&
5994 { ac_try='test -z "$ac_c_werror_flag"
5995 || test ! -s conftest.err'
5996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000 (exit $ac_status); }; } &&
6001 { ac_try='test -s conftest$ac_exeext'
6002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006 (exit $ac_status); }; }; then
6007 gt_cv_func_gnugettext1_libc=yes
6009 echo "$as_me: failed program was:" >&5
6010 sed 's/^/| /' conftest.$ac_ext >&5
6012 gt_cv_func_gnugettext1_libc=no
6014 rm -f conftest.err conftest.$ac_objext \
6015 conftest$ac_exeext conftest.$ac_ext
6017 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
6018 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
6020 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
6026 am_save_CPPFLAGS="$CPPFLAGS"
6028 for element in $INCICONV; do
6030 for x in $CPPFLAGS; do
6032 acl_save_prefix="$prefix"
6033 prefix="$acl_final_prefix"
6034 acl_save_exec_prefix="$exec_prefix"
6035 exec_prefix="$acl_final_exec_prefix"
6037 exec_prefix="$acl_save_exec_prefix"
6038 prefix="$acl_save_prefix"
6040 if test "X$x" = "X$element"; then
6045 if test -z "$haveit"; then
6046 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6051 echo "$as_me:$LINENO: checking for iconv" >&5
6052 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
6053 if test "${am_cv_func_iconv+set}" = set; then
6054 echo $ECHO_N "(cached) $ECHO_C" >&6
6057 am_cv_func_iconv="no, consider installing GNU libiconv"
6059 cat >conftest.$ac_ext <<_ACEOF
6062 cat confdefs.h >>conftest.$ac_ext
6063 cat >>conftest.$ac_ext <<_ACEOF
6064 /* end confdefs.h. */
6070 iconv_t cd = iconv_open("","");
6071 iconv(cd,NULL,NULL,NULL,NULL);
6077 rm -f conftest.$ac_objext conftest$ac_exeext
6078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6079 (eval $ac_link) 2>conftest.er1
6081 grep -v '^ *+' conftest.er1 >conftest.err
6083 cat conftest.err >&5
6084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6085 (exit $ac_status); } &&
6086 { ac_try='test -z "$ac_c_werror_flag"
6087 || test ! -s conftest.err'
6088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6092 (exit $ac_status); }; } &&
6093 { ac_try='test -s conftest$ac_exeext'
6094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6098 (exit $ac_status); }; }; then
6099 am_cv_func_iconv=yes
6101 echo "$as_me: failed program was:" >&5
6102 sed 's/^/| /' conftest.$ac_ext >&5
6105 rm -f conftest.err conftest.$ac_objext \
6106 conftest$ac_exeext conftest.$ac_ext
6107 if test "$am_cv_func_iconv" != yes; then
6108 am_save_LIBS="$LIBS"
6109 LIBS="$LIBS $LIBICONV"
6110 cat >conftest.$ac_ext <<_ACEOF
6113 cat confdefs.h >>conftest.$ac_ext
6114 cat >>conftest.$ac_ext <<_ACEOF
6115 /* end confdefs.h. */
6121 iconv_t cd = iconv_open("","");
6122 iconv(cd,NULL,NULL,NULL,NULL);
6128 rm -f conftest.$ac_objext conftest$ac_exeext
6129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6130 (eval $ac_link) 2>conftest.er1
6132 grep -v '^ *+' conftest.er1 >conftest.err
6134 cat conftest.err >&5
6135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6136 (exit $ac_status); } &&
6137 { ac_try='test -z "$ac_c_werror_flag"
6138 || test ! -s conftest.err'
6139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6143 (exit $ac_status); }; } &&
6144 { ac_try='test -s conftest$ac_exeext'
6145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6149 (exit $ac_status); }; }; then
6151 am_cv_func_iconv=yes
6153 echo "$as_me: failed program was:" >&5
6154 sed 's/^/| /' conftest.$ac_ext >&5
6157 rm -f conftest.err conftest.$ac_objext \
6158 conftest$ac_exeext conftest.$ac_ext
6159 LIBS="$am_save_LIBS"
6163 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
6164 echo "${ECHO_T}$am_cv_func_iconv" >&6
6165 if test "$am_cv_func_iconv" = yes; then
6167 cat >>confdefs.h <<\_ACEOF
6168 #define HAVE_ICONV 1
6172 if test "$am_cv_lib_iconv" = yes; then
6173 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
6174 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
6175 echo "$as_me:$LINENO: result: $LIBICONV" >&5
6176 echo "${ECHO_T}$LIBICONV" >&6
6178 CPPFLAGS="$am_save_CPPFLAGS"
6190 acl_save_prefix="$prefix"
6191 prefix="$acl_final_prefix"
6192 acl_save_exec_prefix="$exec_prefix"
6193 exec_prefix="$acl_final_exec_prefix"
6195 eval additional_includedir=\"$includedir\"
6196 eval additional_libdir=\"$libdir\"
6198 exec_prefix="$acl_save_exec_prefix"
6199 prefix="$acl_save_prefix"
6202 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
6203 if test "${with_libintl_prefix+set}" = set; then
6204 withval="$with_libintl_prefix"
6206 if test "X$withval" = "Xno"; then
6209 if test "X$withval" = "X"; then
6211 acl_save_prefix="$prefix"
6212 prefix="$acl_final_prefix"
6213 acl_save_exec_prefix="$exec_prefix"
6214 exec_prefix="$acl_final_exec_prefix"
6216 eval additional_includedir=\"$includedir\"
6217 eval additional_libdir=\"$libdir\"
6219 exec_prefix="$acl_save_exec_prefix"
6220 prefix="$acl_save_prefix"
6223 additional_includedir="$withval/include"
6224 additional_libdir="$withval/lib"
6234 names_already_handled=
6235 names_next_round='intl '
6236 while test -n "$names_next_round"; do
6237 names_this_round="$names_next_round"
6239 for name in $names_this_round; do
6241 for n in $names_already_handled; do
6242 if test "$n" = "$name"; then
6247 if test -z "$already_handled"; then
6248 names_already_handled="$names_already_handled $name"
6249 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6250 eval value=\"\$HAVE_LIB$uppername\"
6251 if test -n "$value"; then
6252 if test "$value" = yes; then
6253 eval value=\"\$LIB$uppername\"
6254 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
6255 eval value=\"\$LTLIB$uppername\"
6256 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
6265 if test $use_additional = yes; then
6266 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6267 found_dir="$additional_libdir"
6268 found_so="$additional_libdir/lib$name.$shlibext"
6269 if test -f "$additional_libdir/lib$name.la"; then
6270 found_la="$additional_libdir/lib$name.la"
6273 if test -f "$additional_libdir/lib$name.$libext"; then
6274 found_dir="$additional_libdir"
6275 found_a="$additional_libdir/lib$name.$libext"
6276 if test -f "$additional_libdir/lib$name.la"; then
6277 found_la="$additional_libdir/lib$name.la"
6282 if test "X$found_dir" = "X"; then
6283 for x in $LDFLAGS $LTLIBINTL; do
6285 acl_save_prefix="$prefix"
6286 prefix="$acl_final_prefix"
6287 acl_save_exec_prefix="$exec_prefix"
6288 exec_prefix="$acl_final_exec_prefix"
6290 exec_prefix="$acl_save_exec_prefix"
6291 prefix="$acl_save_prefix"
6295 dir=`echo "X$x" | sed -e 's/^X-L//'`
6296 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6298 found_so="$dir/lib$name.$shlibext"
6299 if test -f "$dir/lib$name.la"; then
6300 found_la="$dir/lib$name.la"
6303 if test -f "$dir/lib$name.$libext"; then
6305 found_a="$dir/lib$name.$libext"
6306 if test -f "$dir/lib$name.la"; then
6307 found_la="$dir/lib$name.la"
6313 if test "X$found_dir" != "X"; then
6318 if test "X$found_dir" != "X"; then
6319 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6320 if test "X$found_so" != "X"; then
6321 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6322 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6325 for x in $ltrpathdirs; do
6326 if test "X$x" = "X$found_dir"; then
6331 if test -z "$haveit"; then
6332 ltrpathdirs="$ltrpathdirs $found_dir"
6334 if test "$hardcode_direct" = yes; then
6335 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6337 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6338 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6340 for x in $rpathdirs; do
6341 if test "X$x" = "X$found_dir"; then
6346 if test -z "$haveit"; then
6347 rpathdirs="$rpathdirs $found_dir"
6351 for x in $LDFLAGS $LIBINTL; do
6353 acl_save_prefix="$prefix"
6354 prefix="$acl_final_prefix"
6355 acl_save_exec_prefix="$exec_prefix"
6356 exec_prefix="$acl_final_exec_prefix"
6358 exec_prefix="$acl_save_exec_prefix"
6359 prefix="$acl_save_prefix"
6361 if test "X$x" = "X-L$found_dir"; then
6366 if test -z "$haveit"; then
6367 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6369 if test "$hardcode_minus_L" != no; then
6370 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6372 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6378 if test "X$found_a" != "X"; then
6379 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
6381 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
6384 additional_includedir=
6385 case "$found_dir" in
6387 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6388 additional_includedir="$basedir/include"
6391 if test "X$additional_includedir" != "X"; then
6392 if test "X$additional_includedir" != "X/usr/include"; then
6394 if test "X$additional_includedir" = "X/usr/local/include"; then
6395 if test -n "$GCC"; then
6397 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6401 if test -z "$haveit"; then
6402 for x in $CPPFLAGS $INCINTL; do
6404 acl_save_prefix="$prefix"
6405 prefix="$acl_final_prefix"
6406 acl_save_exec_prefix="$exec_prefix"
6407 exec_prefix="$acl_final_exec_prefix"
6409 exec_prefix="$acl_save_exec_prefix"
6410 prefix="$acl_save_prefix"
6412 if test "X$x" = "X-I$additional_includedir"; then
6417 if test -z "$haveit"; then
6418 if test -d "$additional_includedir"; then
6419 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
6425 if test -n "$found_la"; then
6426 save_libdir="$libdir"
6428 */* | *\\*) . "$found_la" ;;
6429 *) . "./$found_la" ;;
6431 libdir="$save_libdir"
6432 for dep in $dependency_libs; do
6435 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6436 if test "X$additional_libdir" != "X/usr/lib"; then
6438 if test "X$additional_libdir" = "X/usr/local/lib"; then
6439 if test -n "$GCC"; then
6441 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6445 if test -z "$haveit"; then
6447 for x in $LDFLAGS $LIBINTL; do
6449 acl_save_prefix="$prefix"
6450 prefix="$acl_final_prefix"
6451 acl_save_exec_prefix="$exec_prefix"
6452 exec_prefix="$acl_final_exec_prefix"
6454 exec_prefix="$acl_save_exec_prefix"
6455 prefix="$acl_save_prefix"
6457 if test "X$x" = "X-L$additional_libdir"; then
6462 if test -z "$haveit"; then
6463 if test -d "$additional_libdir"; then
6464 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
6468 for x in $LDFLAGS $LTLIBINTL; do
6470 acl_save_prefix="$prefix"
6471 prefix="$acl_final_prefix"
6472 acl_save_exec_prefix="$exec_prefix"
6473 exec_prefix="$acl_final_exec_prefix"
6475 exec_prefix="$acl_save_exec_prefix"
6476 prefix="$acl_save_prefix"
6478 if test "X$x" = "X-L$additional_libdir"; then
6483 if test -z "$haveit"; then
6484 if test -d "$additional_libdir"; then
6485 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
6492 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6493 if test "$enable_rpath" != no; then
6495 for x in $rpathdirs; do
6496 if test "X$x" = "X$dir"; then
6501 if test -z "$haveit"; then
6502 rpathdirs="$rpathdirs $dir"
6505 for x in $ltrpathdirs; do
6506 if test "X$x" = "X$dir"; then
6511 if test -z "$haveit"; then
6512 ltrpathdirs="$ltrpathdirs $dir"
6517 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6520 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6523 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
6524 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
6530 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6531 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
6537 if test "X$rpathdirs" != "X"; then
6538 if test -n "$hardcode_libdir_separator"; then
6540 for found_dir in $rpathdirs; do
6541 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6543 acl_save_libdir="$libdir"
6545 eval flag=\"$hardcode_libdir_flag_spec\"
6546 libdir="$acl_save_libdir"
6547 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6549 for found_dir in $rpathdirs; do
6550 acl_save_libdir="$libdir"
6552 eval flag=\"$hardcode_libdir_flag_spec\"
6553 libdir="$acl_save_libdir"
6554 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6558 if test "X$ltrpathdirs" != "X"; then
6559 for found_dir in $ltrpathdirs; do
6560 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
6564 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
6565 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
6566 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
6567 echo $ECHO_N "(cached) $ECHO_C" >&6
6569 gt_save_CPPFLAGS="$CPPFLAGS"
6570 CPPFLAGS="$CPPFLAGS $INCINTL"
6571 gt_save_LIBS="$LIBS"
6572 LIBS="$LIBS $LIBINTL"
6573 cat >conftest.$ac_ext <<_ACEOF
6576 cat confdefs.h >>conftest.$ac_ext
6577 cat >>conftest.$ac_ext <<_ACEOF
6578 /* end confdefs.h. */
6579 #include <libintl.h>
6580 extern int _nl_msg_cat_cntr;
6585 const char *_nl_expand_alias (const char *);
6589 bindtextdomain ("", "");
6590 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6595 rm -f conftest.$ac_objext conftest$ac_exeext
6596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6597 (eval $ac_link) 2>conftest.er1
6599 grep -v '^ *+' conftest.er1 >conftest.err
6601 cat conftest.err >&5
6602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603 (exit $ac_status); } &&
6604 { ac_try='test -z "$ac_c_werror_flag"
6605 || test ! -s conftest.err'
6606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610 (exit $ac_status); }; } &&
6611 { ac_try='test -s conftest$ac_exeext'
6612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616 (exit $ac_status); }; }; then
6617 gt_cv_func_gnugettext1_libintl=yes
6619 echo "$as_me: failed program was:" >&5
6620 sed 's/^/| /' conftest.$ac_ext >&5
6622 gt_cv_func_gnugettext1_libintl=no
6624 rm -f conftest.err conftest.$ac_objext \
6625 conftest$ac_exeext conftest.$ac_ext
6626 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
6627 LIBS="$LIBS $LIBICONV"
6628 cat >conftest.$ac_ext <<_ACEOF
6631 cat confdefs.h >>conftest.$ac_ext
6632 cat >>conftest.$ac_ext <<_ACEOF
6633 /* end confdefs.h. */
6634 #include <libintl.h>
6635 extern int _nl_msg_cat_cntr;
6640 const char *_nl_expand_alias (const char *);
6644 bindtextdomain ("", "");
6645 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6650 rm -f conftest.$ac_objext conftest$ac_exeext
6651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6652 (eval $ac_link) 2>conftest.er1
6654 grep -v '^ *+' conftest.er1 >conftest.err
6656 cat conftest.err >&5
6657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6658 (exit $ac_status); } &&
6659 { ac_try='test -z "$ac_c_werror_flag"
6660 || test ! -s conftest.err'
6661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6665 (exit $ac_status); }; } &&
6666 { ac_try='test -s conftest$ac_exeext'
6667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6671 (exit $ac_status); }; }; then
6672 LIBINTL="$LIBINTL $LIBICONV"
6673 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
6674 gt_cv_func_gnugettext1_libintl=yes
6677 echo "$as_me: failed program was:" >&5
6678 sed 's/^/| /' conftest.$ac_ext >&5
6681 rm -f conftest.err conftest.$ac_objext \
6682 conftest$ac_exeext conftest.$ac_ext
6684 CPPFLAGS="$gt_save_CPPFLAGS"
6685 LIBS="$gt_save_LIBS"
6687 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
6688 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
6691 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
6692 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
6693 && test "$PACKAGE" != gettext-runtime \
6694 && test "$PACKAGE" != gettext-tools; }; then
6695 gt_use_preinstalled_gnugettext=yes
6704 if test -n "$INTL_MACOSX_LIBS"; then
6705 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6706 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6707 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
6708 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
6712 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6713 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6715 cat >>confdefs.h <<\_ACEOF
6716 #define ENABLE_NLS 1
6724 echo "$as_me:$LINENO: checking whether to use NLS" >&5
6725 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
6726 echo "$as_me:$LINENO: result: $USE_NLS" >&5
6727 echo "${ECHO_T}$USE_NLS" >&6
6728 if test "$USE_NLS" = "yes"; then
6729 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
6730 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
6731 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6732 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6733 gt_source="external libintl"
6738 gt_source="included intl directory"
6740 echo "$as_me:$LINENO: result: $gt_source" >&5
6741 echo "${ECHO_T}$gt_source" >&6
6744 if test "$USE_NLS" = "yes"; then
6746 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6747 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6748 echo "$as_me:$LINENO: checking how to link with libintl" >&5
6749 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
6750 echo "$as_me:$LINENO: result: $LIBINTL" >&5
6751 echo "${ECHO_T}$LIBINTL" >&6
6753 for element in $INCINTL; do
6755 for x in $CPPFLAGS; do
6757 acl_save_prefix="$prefix"
6758 prefix="$acl_final_prefix"
6759 acl_save_exec_prefix="$exec_prefix"
6760 exec_prefix="$acl_final_exec_prefix"
6762 exec_prefix="$acl_save_exec_prefix"
6763 prefix="$acl_save_prefix"
6765 if test "X$x" = "X$element"; then
6770 if test -z "$haveit"; then
6771 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6778 cat >>confdefs.h <<\_ACEOF
6779 #define HAVE_GETTEXT 1
6783 cat >>confdefs.h <<\_ACEOF
6784 #define HAVE_DCGETTEXT 1
6801 if test x${prefix} = xNONE ; then
6802 if test `eval echo ${datadir}` = NONE/share ; then
6807 # ------------------------------------------------------------------
6808 # If the user has not set --prefix, we set our default to nothing.
6809 # In this case, if the user has not set --sysconfdir, we set it
6810 # to the package default of /etc/bacula. If either --prefix or
6811 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
6812 # ------------------------------------------------------------------
6813 if test x${prefix} = xNONE ; then
6814 if test `eval echo ${sysconfdir}` = NONE/etc ; then
6815 sysconfdir=/etc/bacula
6819 sysconfdir=`eval echo ${sysconfdir}`
6820 datadir=`eval echo ${datadir}`
6821 localedir=`eval echo ${datadir}/locale`
6822 cat >>confdefs.h <<_ACEOF
6823 #define LOCALEDIR "$localedir"
6826 cat >>confdefs.h <<_ACEOF
6827 #define SYSCONFDIR "$sysconfdir"
6831 # -------------------------------------------------------------------------
6832 # If the user has not set --exec-prefix, we default to ${prefix}
6833 # -------------------------------------------------------------------------
6834 if test x${exec_prefix} = xNONE ; then
6835 exec_prefix=${prefix}
6838 # ------------------------------------------------------------------
6839 # If the user has not set --sbindir, we set our default as /sbin
6840 # ------------------------------------------------------------------
6841 if test x$sbindir = x'${exec_prefix}/sbin' ; then
6842 sbindir=${exec_prefix}/sbin
6844 sbindir=`eval echo ${sbindir}`
6846 # ------------------------------------------------------------------
6847 # If the user has not set --archivedir, we set our default as /tmp
6848 # ------------------------------------------------------------------
6849 if test x$archivedir = x'${archivedir}' ; then
6850 archivedir=${archivedir}
6852 archivedir=`eval echo ${archivedir}`
6854 # -------------------------------------------------------------------------
6855 # If the user has not set --mandir, we default to /usr/share/man
6856 # -------------------------------------------------------------------------
6857 if test x$mandir = x'${prefix}/man' ; then
6858 mandir=/usr/share/man
6862 for ac_prog in msgfmt
6864 # Extract the first word of "$ac_prog", so it can be a program name with args.
6865 set dummy $ac_prog; ac_word=$2
6866 echo "$as_me:$LINENO: checking for $ac_word" >&5
6867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6868 if test "${ac_cv_path_MSGFMT+set}" = set; then
6869 echo $ECHO_N "(cached) $ECHO_C" >&6
6873 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6880 test -z "$as_dir" && as_dir=.
6881 for ac_exec_ext in '' $ac_executable_extensions; do
6882 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6883 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
6884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6893 MSGFMT=$ac_cv_path_MSGFMT
6895 if test -n "$MSGFMT"; then
6896 echo "$as_me:$LINENO: result: $MSGFMT" >&5
6897 echo "${ECHO_T}$MSGFMT" >&6
6899 echo "$as_me:$LINENO: result: no" >&5
6900 echo "${ECHO_T}no" >&6
6903 test -n "$MSGFMT" && break
6905 test -n "$MSGFMT" || MSGFMT="no"
6907 if test "$MSGFMT" = "no"
6909 echo 'msgfmt program not found, disabling NLS !'
6911 USE_INCLUDED_LIBINTL=no
6914 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
6915 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6
6916 if test "${ac_cv_gnu_library_2+set}" = set; then
6917 echo $ECHO_N "(cached) $ECHO_C" >&6
6919 cat >conftest.$ac_ext <<_ACEOF
6922 cat confdefs.h >>conftest.$ac_ext
6923 cat >>conftest.$ac_ext <<_ACEOF
6924 /* end confdefs.h. */
6926 #include <features.h>
6927 #ifdef __GNU_LIBRARY__
6928 #if (__GLIBC__ >= 2)
6934 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6935 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
6936 ac_cv_gnu_library_2=yes
6938 ac_cv_gnu_library_2=no
6945 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
6946 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6
6948 GLIBC2="$ac_cv_gnu_library_2"
6952 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
6953 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
6954 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
6955 echo $ECHO_N "(cached) $ECHO_C" >&6
6957 ac_check_lib_save_LIBS=$LIBS
6958 LIBS="-lcposix $LIBS"
6959 cat >conftest.$ac_ext <<_ACEOF
6962 cat confdefs.h >>conftest.$ac_ext
6963 cat >>conftest.$ac_ext <<_ACEOF
6964 /* end confdefs.h. */
6966 /* Override any gcc2 internal prototype to avoid an error. */
6970 /* We use char because int might match the return type of a gcc2
6971 builtin and then its argument prototype would still apply. */
6981 rm -f conftest.$ac_objext conftest$ac_exeext
6982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6983 (eval $ac_link) 2>conftest.er1
6985 grep -v '^ *+' conftest.er1 >conftest.err
6987 cat conftest.err >&5
6988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6989 (exit $ac_status); } &&
6990 { ac_try='test -z "$ac_c_werror_flag"
6991 || test ! -s conftest.err'
6992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6996 (exit $ac_status); }; } &&
6997 { ac_try='test -s conftest$ac_exeext'
6998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7002 (exit $ac_status); }; }; then
7003 ac_cv_lib_cposix_strerror=yes
7005 echo "$as_me: failed program was:" >&5
7006 sed 's/^/| /' conftest.$ac_ext >&5
7008 ac_cv_lib_cposix_strerror=no
7010 rm -f conftest.err conftest.$ac_objext \
7011 conftest$ac_exeext conftest.$ac_ext
7012 LIBS=$ac_check_lib_save_LIBS
7014 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
7015 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
7016 if test $ac_cv_lib_cposix_strerror = yes; then
7017 LIBS="$LIBS -lcposix"
7022 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7023 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7024 if test "${ac_cv_header_stdc+set}" = set; then
7025 echo $ECHO_N "(cached) $ECHO_C" >&6
7027 cat >conftest.$ac_ext <<_ACEOF
7030 cat confdefs.h >>conftest.$ac_ext
7031 cat >>conftest.$ac_ext <<_ACEOF
7032 /* end confdefs.h. */
7046 rm -f conftest.$ac_objext
7047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7048 (eval $ac_compile) 2>conftest.er1
7050 grep -v '^ *+' conftest.er1 >conftest.err
7052 cat conftest.err >&5
7053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054 (exit $ac_status); } &&
7055 { ac_try='test -z "$ac_c_werror_flag"
7056 || test ! -s conftest.err'
7057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7061 (exit $ac_status); }; } &&
7062 { ac_try='test -s conftest.$ac_objext'
7063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7067 (exit $ac_status); }; }; then
7068 ac_cv_header_stdc=yes
7070 echo "$as_me: failed program was:" >&5
7071 sed 's/^/| /' conftest.$ac_ext >&5
7073 ac_cv_header_stdc=no
7075 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7077 if test $ac_cv_header_stdc = yes; then
7078 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7079 cat >conftest.$ac_ext <<_ACEOF
7082 cat confdefs.h >>conftest.$ac_ext
7083 cat >>conftest.$ac_ext <<_ACEOF
7084 /* end confdefs.h. */
7088 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7089 $EGREP "memchr" >/dev/null 2>&1; then
7092 ac_cv_header_stdc=no
7098 if test $ac_cv_header_stdc = yes; then
7099 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7100 cat >conftest.$ac_ext <<_ACEOF
7103 cat confdefs.h >>conftest.$ac_ext
7104 cat >>conftest.$ac_ext <<_ACEOF
7105 /* end confdefs.h. */
7109 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7110 $EGREP "free" >/dev/null 2>&1; then
7113 ac_cv_header_stdc=no
7119 if test $ac_cv_header_stdc = yes; then
7120 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7121 if test "$cross_compiling" = yes; then
7124 cat >conftest.$ac_ext <<_ACEOF
7127 cat confdefs.h >>conftest.$ac_ext
7128 cat >>conftest.$ac_ext <<_ACEOF
7129 /* end confdefs.h. */
7131 #if ((' ' & 0x0FF) == 0x020)
7132 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7133 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7135 # define ISLOWER(c) \
7136 (('a' <= (c) && (c) <= 'i') \
7137 || ('j' <= (c) && (c) <= 'r') \
7138 || ('s' <= (c) && (c) <= 'z'))
7139 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7142 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7147 for (i = 0; i < 256; i++)
7148 if (XOR (islower (i), ISLOWER (i))
7149 || toupper (i) != TOUPPER (i))
7154 rm -f conftest$ac_exeext
7155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7156 (eval $ac_link) 2>&5
7158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7159 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7164 (exit $ac_status); }; }; then
7167 echo "$as_me: program exited with status $ac_status" >&5
7168 echo "$as_me: failed program was:" >&5
7169 sed 's/^/| /' conftest.$ac_ext >&5
7172 ac_cv_header_stdc=no
7174 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7178 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7179 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7180 if test $ac_cv_header_stdc = yes; then
7182 cat >>confdefs.h <<\_ACEOF
7183 #define STDC_HEADERS 1
7188 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7189 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7190 if test "${ac_cv_c_const+set}" = set; then
7191 echo $ECHO_N "(cached) $ECHO_C" >&6
7193 cat >conftest.$ac_ext <<_ACEOF
7196 cat confdefs.h >>conftest.$ac_ext
7197 cat >>conftest.$ac_ext <<_ACEOF
7198 /* end confdefs.h. */
7203 /* FIXME: Include the comments suggested by Paul. */
7205 /* Ultrix mips cc rejects this. */
7206 typedef int charset[2];
7208 /* SunOS 4.1.1 cc rejects this. */
7209 char const *const *ccp;
7211 /* NEC SVR4.0.2 mips cc rejects this. */
7212 struct point {int x, y;};
7213 static struct point const zero = {0,0};
7214 /* AIX XL C 1.02.0.0 rejects this.
7215 It does not let you subtract one const X* pointer from another in
7216 an arm of an if-expression whose if-part is not a constant
7218 const char *g = "string";
7219 ccp = &g + (g ? g-g : 0);
7220 /* HPUX 7.0 cc rejects these. */
7223 ccp = (char const *const *) p;
7224 { /* SCO 3.2v4 cc rejects this. */
7226 char const *s = 0 ? (char *) 0 : (char const *) 0;
7230 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7232 const int *foo = &x[0];
7235 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7236 typedef const int *iptr;
7240 { /* AIX XL C 1.02.0.0 rejects this saying
7241 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7242 struct s { int j; const int *ap[3]; };
7243 struct s *b; b->j = 5;
7245 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7254 rm -f conftest.$ac_objext
7255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7256 (eval $ac_compile) 2>conftest.er1
7258 grep -v '^ *+' conftest.er1 >conftest.err
7260 cat conftest.err >&5
7261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7262 (exit $ac_status); } &&
7263 { ac_try='test -z "$ac_c_werror_flag"
7264 || test ! -s conftest.err'
7265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7269 (exit $ac_status); }; } &&
7270 { ac_try='test -s conftest.$ac_objext'
7271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7275 (exit $ac_status); }; }; then
7278 echo "$as_me: failed program was:" >&5
7279 sed 's/^/| /' conftest.$ac_ext >&5
7283 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7285 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7286 echo "${ECHO_T}$ac_cv_c_const" >&6
7287 if test $ac_cv_c_const = no; then
7289 cat >>confdefs.h <<\_ACEOF
7296 echo "$as_me:$LINENO: checking for signed" >&5
7297 echo $ECHO_N "checking for signed... $ECHO_C" >&6
7298 if test "${bh_cv_c_signed+set}" = set; then
7299 echo $ECHO_N "(cached) $ECHO_C" >&6
7301 cat >conftest.$ac_ext <<_ACEOF
7304 cat confdefs.h >>conftest.$ac_ext
7305 cat >>conftest.$ac_ext <<_ACEOF
7306 /* end confdefs.h. */
7316 rm -f conftest.$ac_objext
7317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7318 (eval $ac_compile) 2>conftest.er1
7320 grep -v '^ *+' conftest.er1 >conftest.err
7322 cat conftest.err >&5
7323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7324 (exit $ac_status); } &&
7325 { ac_try='test -z "$ac_c_werror_flag"
7326 || test ! -s conftest.err'
7327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7331 (exit $ac_status); }; } &&
7332 { ac_try='test -s conftest.$ac_objext'
7333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7337 (exit $ac_status); }; }; then
7340 echo "$as_me: failed program was:" >&5
7341 sed 's/^/| /' conftest.$ac_ext >&5
7345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7347 echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
7348 echo "${ECHO_T}$bh_cv_c_signed" >&6
7349 if test $bh_cv_c_signed = no; then
7351 cat >>confdefs.h <<\_ACEOF
7357 echo "$as_me:$LINENO: checking for inline" >&5
7358 echo $ECHO_N "checking for inline... $ECHO_C" >&6
7359 if test "${ac_cv_c_inline+set}" = set; then
7360 echo $ECHO_N "(cached) $ECHO_C" >&6
7363 for ac_kw in inline __inline__ __inline; do
7364 cat >conftest.$ac_ext <<_ACEOF
7367 cat confdefs.h >>conftest.$ac_ext
7368 cat >>conftest.$ac_ext <<_ACEOF
7369 /* end confdefs.h. */
7372 static $ac_kw foo_t static_foo () {return 0; }
7373 $ac_kw foo_t foo () {return 0; }
7377 rm -f conftest.$ac_objext
7378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7379 (eval $ac_compile) 2>conftest.er1
7381 grep -v '^ *+' conftest.er1 >conftest.err
7383 cat conftest.err >&5
7384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7385 (exit $ac_status); } &&
7386 { ac_try='test -z "$ac_c_werror_flag"
7387 || test ! -s conftest.err'
7388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7392 (exit $ac_status); }; } &&
7393 { ac_try='test -s conftest.$ac_objext'
7394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7398 (exit $ac_status); }; }; then
7399 ac_cv_c_inline=$ac_kw; break
7401 echo "$as_me: failed program was:" >&5
7402 sed 's/^/| /' conftest.$ac_ext >&5
7405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7409 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7410 echo "${ECHO_T}$ac_cv_c_inline" >&6
7413 case $ac_cv_c_inline in
7416 case $ac_cv_c_inline in
7418 *) ac_val=$ac_cv_c_inline;;
7420 cat >>confdefs.h <<_ACEOF
7422 #define inline $ac_val
7428 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7438 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7439 inttypes.h stdint.h unistd.h
7441 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7442 echo "$as_me:$LINENO: checking for $ac_header" >&5
7443 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7444 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7445 echo $ECHO_N "(cached) $ECHO_C" >&6
7447 cat >conftest.$ac_ext <<_ACEOF
7450 cat confdefs.h >>conftest.$ac_ext
7451 cat >>conftest.$ac_ext <<_ACEOF
7452 /* end confdefs.h. */
7453 $ac_includes_default
7455 #include <$ac_header>
7457 rm -f conftest.$ac_objext
7458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7459 (eval $ac_compile) 2>conftest.er1
7461 grep -v '^ *+' conftest.er1 >conftest.err
7463 cat conftest.err >&5
7464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7465 (exit $ac_status); } &&
7466 { ac_try='test -z "$ac_c_werror_flag"
7467 || test ! -s conftest.err'
7468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7472 (exit $ac_status); }; } &&
7473 { ac_try='test -s conftest.$ac_objext'
7474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7478 (exit $ac_status); }; }; then
7479 eval "$as_ac_Header=yes"
7481 echo "$as_me: failed program was:" >&5
7482 sed 's/^/| /' conftest.$ac_ext >&5
7484 eval "$as_ac_Header=no"
7486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7488 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7489 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7490 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7491 cat >>confdefs.h <<_ACEOF
7492 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7500 echo "$as_me:$LINENO: checking for off_t" >&5
7501 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
7502 if test "${ac_cv_type_off_t+set}" = set; then
7503 echo $ECHO_N "(cached) $ECHO_C" >&6
7505 cat >conftest.$ac_ext <<_ACEOF
7508 cat confdefs.h >>conftest.$ac_ext
7509 cat >>conftest.$ac_ext <<_ACEOF
7510 /* end confdefs.h. */
7511 $ac_includes_default
7523 rm -f conftest.$ac_objext
7524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7525 (eval $ac_compile) 2>conftest.er1
7527 grep -v '^ *+' conftest.er1 >conftest.err
7529 cat conftest.err >&5
7530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7531 (exit $ac_status); } &&
7532 { ac_try='test -z "$ac_c_werror_flag"
7533 || test ! -s conftest.err'
7534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7538 (exit $ac_status); }; } &&
7539 { ac_try='test -s conftest.$ac_objext'
7540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7544 (exit $ac_status); }; }; then
7545 ac_cv_type_off_t=yes
7547 echo "$as_me: failed program was:" >&5
7548 sed 's/^/| /' conftest.$ac_ext >&5
7552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7554 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7555 echo "${ECHO_T}$ac_cv_type_off_t" >&6
7556 if test $ac_cv_type_off_t = yes; then
7560 cat >>confdefs.h <<_ACEOF
7566 echo "$as_me:$LINENO: checking for size_t" >&5
7567 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
7568 if test "${ac_cv_type_size_t+set}" = set; then
7569 echo $ECHO_N "(cached) $ECHO_C" >&6
7571 cat >conftest.$ac_ext <<_ACEOF
7574 cat confdefs.h >>conftest.$ac_ext
7575 cat >>conftest.$ac_ext <<_ACEOF
7576 /* end confdefs.h. */
7577 $ac_includes_default
7583 if (sizeof (size_t))
7589 rm -f conftest.$ac_objext
7590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7591 (eval $ac_compile) 2>conftest.er1
7593 grep -v '^ *+' conftest.er1 >conftest.err
7595 cat conftest.err >&5
7596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7597 (exit $ac_status); } &&
7598 { ac_try='test -z "$ac_c_werror_flag"
7599 || test ! -s conftest.err'
7600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7604 (exit $ac_status); }; } &&
7605 { ac_try='test -s conftest.$ac_objext'
7606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7610 (exit $ac_status); }; }; then
7611 ac_cv_type_size_t=yes
7613 echo "$as_me: failed program was:" >&5
7614 sed 's/^/| /' conftest.$ac_ext >&5
7616 ac_cv_type_size_t=no
7618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7620 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7621 echo "${ECHO_T}$ac_cv_type_size_t" >&6
7622 if test $ac_cv_type_size_t = yes; then
7626 cat >>confdefs.h <<_ACEOF
7627 #define size_t unsigned
7633 echo "$as_me:$LINENO: checking for long long" >&5
7634 echo $ECHO_N "checking for long long... $ECHO_C" >&6
7635 if test "${ac_cv_type_long_long+set}" = set; then
7636 echo $ECHO_N "(cached) $ECHO_C" >&6
7638 cat >conftest.$ac_ext <<_ACEOF
7641 cat confdefs.h >>conftest.$ac_ext
7642 cat >>conftest.$ac_ext <<_ACEOF
7643 /* end confdefs.h. */
7644 long long ll = 1LL; int i = 63;
7648 long long llmax = (long long) -1;
7649 return ll << i | ll >> i | llmax / ll | llmax % ll;
7654 rm -f conftest.$ac_objext conftest$ac_exeext
7655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7656 (eval $ac_link) 2>conftest.er1
7658 grep -v '^ *+' conftest.er1 >conftest.err
7660 cat conftest.err >&5
7661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7662 (exit $ac_status); } &&
7663 { ac_try='test -z "$ac_c_werror_flag"
7664 || test ! -s conftest.err'
7665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669 (exit $ac_status); }; } &&
7670 { ac_try='test -s conftest$ac_exeext'
7671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7675 (exit $ac_status); }; }; then
7676 ac_cv_type_long_long=yes
7678 echo "$as_me: failed program was:" >&5
7679 sed 's/^/| /' conftest.$ac_ext >&5
7681 ac_cv_type_long_long=no
7683 rm -f conftest.err conftest.$ac_objext \
7684 conftest$ac_exeext conftest.$ac_ext
7686 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
7687 echo "${ECHO_T}$ac_cv_type_long_long" >&6
7688 if test $ac_cv_type_long_long = yes; then
7690 cat >>confdefs.h <<\_ACEOF
7691 #define HAVE_LONG_LONG 1
7697 echo "$as_me:$LINENO: checking for long double" >&5
7698 echo $ECHO_N "checking for long double... $ECHO_C" >&6
7699 if test "${gt_cv_c_long_double+set}" = set; then
7700 echo $ECHO_N "(cached) $ECHO_C" >&6
7702 if test "$GCC" = yes; then
7703 gt_cv_c_long_double=yes
7705 cat >conftest.$ac_ext <<_ACEOF
7708 cat confdefs.h >>conftest.$ac_ext
7709 cat >>conftest.$ac_ext <<_ACEOF
7710 /* end confdefs.h. */
7712 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
7713 long double foo = 0.0;
7714 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
7715 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
7725 rm -f conftest.$ac_objext
7726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7727 (eval $ac_compile) 2>conftest.er1
7729 grep -v '^ *+' conftest.er1 >conftest.err
7731 cat conftest.err >&5
7732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7733 (exit $ac_status); } &&
7734 { ac_try='test -z "$ac_c_werror_flag"
7735 || test ! -s conftest.err'
7736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7740 (exit $ac_status); }; } &&
7741 { ac_try='test -s conftest.$ac_objext'
7742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7746 (exit $ac_status); }; }; then
7747 gt_cv_c_long_double=yes
7749 echo "$as_me: failed program was:" >&5
7750 sed 's/^/| /' conftest.$ac_ext >&5
7752 gt_cv_c_long_double=no
7754 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7757 echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
7758 echo "${ECHO_T}$gt_cv_c_long_double" >&6
7759 if test $gt_cv_c_long_double = yes; then
7761 cat >>confdefs.h <<\_ACEOF
7762 #define HAVE_LONG_DOUBLE 1
7768 echo "$as_me:$LINENO: checking for wchar_t" >&5
7769 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
7770 if test "${gt_cv_c_wchar_t+set}" = set; then
7771 echo $ECHO_N "(cached) $ECHO_C" >&6
7773 cat >conftest.$ac_ext <<_ACEOF
7776 cat confdefs.h >>conftest.$ac_ext
7777 cat >>conftest.$ac_ext <<_ACEOF
7778 /* end confdefs.h. */
7780 wchar_t foo = (wchar_t)'\0';
7789 rm -f conftest.$ac_objext
7790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7791 (eval $ac_compile) 2>conftest.er1
7793 grep -v '^ *+' conftest.er1 >conftest.err
7795 cat conftest.err >&5
7796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7797 (exit $ac_status); } &&
7798 { ac_try='test -z "$ac_c_werror_flag"
7799 || test ! -s conftest.err'
7800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804 (exit $ac_status); }; } &&
7805 { ac_try='test -s conftest.$ac_objext'
7806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7810 (exit $ac_status); }; }; then
7813 echo "$as_me: failed program was:" >&5
7814 sed 's/^/| /' conftest.$ac_ext >&5
7818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7820 echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
7821 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6
7822 if test $gt_cv_c_wchar_t = yes; then
7824 cat >>confdefs.h <<\_ACEOF
7825 #define HAVE_WCHAR_T 1
7831 echo "$as_me:$LINENO: checking for wint_t" >&5
7832 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
7833 if test "${gt_cv_c_wint_t+set}" = set; then
7834 echo $ECHO_N "(cached) $ECHO_C" >&6
7836 cat >conftest.$ac_ext <<_ACEOF
7839 cat confdefs.h >>conftest.$ac_ext
7840 cat >>conftest.$ac_ext <<_ACEOF
7841 /* end confdefs.h. */
7843 wint_t foo = (wchar_t)'\0';
7852 rm -f conftest.$ac_objext
7853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7854 (eval $ac_compile) 2>conftest.er1
7856 grep -v '^ *+' conftest.er1 >conftest.err
7858 cat conftest.err >&5
7859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7860 (exit $ac_status); } &&
7861 { ac_try='test -z "$ac_c_werror_flag"
7862 || test ! -s conftest.err'
7863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7867 (exit $ac_status); }; } &&
7868 { ac_try='test -s conftest.$ac_objext'
7869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7873 (exit $ac_status); }; }; then
7876 echo "$as_me: failed program was:" >&5
7877 sed 's/^/| /' conftest.$ac_ext >&5
7881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7883 echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
7884 echo "${ECHO_T}$gt_cv_c_wint_t" >&6
7885 if test $gt_cv_c_wint_t = yes; then
7887 cat >>confdefs.h <<\_ACEOF
7888 #define HAVE_WINT_T 1
7894 echo "$as_me:$LINENO: checking for inttypes.h" >&5
7895 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
7896 if test "${gl_cv_header_inttypes_h+set}" = set; then
7897 echo $ECHO_N "(cached) $ECHO_C" >&6
7899 cat >conftest.$ac_ext <<_ACEOF
7902 cat confdefs.h >>conftest.$ac_ext
7903 cat >>conftest.$ac_ext <<_ACEOF
7904 /* end confdefs.h. */
7905 #include <sys/types.h>
7906 #include <inttypes.h>
7910 uintmax_t i = (uintmax_t) -1;
7915 rm -f conftest.$ac_objext
7916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7917 (eval $ac_compile) 2>conftest.er1
7919 grep -v '^ *+' conftest.er1 >conftest.err
7921 cat conftest.err >&5
7922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7923 (exit $ac_status); } &&
7924 { ac_try='test -z "$ac_c_werror_flag"
7925 || test ! -s conftest.err'
7926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7930 (exit $ac_status); }; } &&
7931 { ac_try='test -s conftest.$ac_objext'
7932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7936 (exit $ac_status); }; }; then
7937 gl_cv_header_inttypes_h=yes
7939 echo "$as_me: failed program was:" >&5
7940 sed 's/^/| /' conftest.$ac_ext >&5
7942 gl_cv_header_inttypes_h=no
7944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7946 echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
7947 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6
7948 if test $gl_cv_header_inttypes_h = yes; then
7950 cat >>confdefs.h <<_ACEOF
7951 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
7957 echo "$as_me:$LINENO: checking for stdint.h" >&5
7958 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
7959 if test "${gl_cv_header_stdint_h+set}" = set; then
7960 echo $ECHO_N "(cached) $ECHO_C" >&6
7962 cat >conftest.$ac_ext <<_ACEOF
7965 cat confdefs.h >>conftest.$ac_ext
7966 cat >>conftest.$ac_ext <<_ACEOF
7967 /* end confdefs.h. */
7968 #include <sys/types.h>
7973 uintmax_t i = (uintmax_t) -1;
7978 rm -f conftest.$ac_objext
7979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7980 (eval $ac_compile) 2>conftest.er1
7982 grep -v '^ *+' conftest.er1 >conftest.err
7984 cat conftest.err >&5
7985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7986 (exit $ac_status); } &&
7987 { ac_try='test -z "$ac_c_werror_flag"
7988 || test ! -s conftest.err'
7989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7993 (exit $ac_status); }; } &&
7994 { ac_try='test -s conftest.$ac_objext'
7995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7999 (exit $ac_status); }; }; then
8000 gl_cv_header_stdint_h=yes
8002 echo "$as_me: failed program was:" >&5
8003 sed 's/^/| /' conftest.$ac_ext >&5
8005 gl_cv_header_stdint_h=no
8007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8009 echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
8010 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6
8011 if test $gl_cv_header_stdint_h = yes; then
8013 cat >>confdefs.h <<_ACEOF
8014 #define HAVE_STDINT_H_WITH_UINTMAX 1
8022 echo "$as_me:$LINENO: checking for intmax_t" >&5
8023 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
8024 if test "${gt_cv_c_intmax_t+set}" = set; then
8025 echo $ECHO_N "(cached) $ECHO_C" >&6
8027 cat >conftest.$ac_ext <<_ACEOF
8030 cat confdefs.h >>conftest.$ac_ext
8031 cat >>conftest.$ac_ext <<_ACEOF
8032 /* end confdefs.h. */
8036 #if HAVE_STDINT_H_WITH_UINTMAX
8039 #if HAVE_INTTYPES_H_WITH_UINTMAX
8040 #include <inttypes.h>
8051 rm -f conftest.$ac_objext
8052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8053 (eval $ac_compile) 2>conftest.er1
8055 grep -v '^ *+' conftest.er1 >conftest.err
8057 cat conftest.err >&5
8058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8059 (exit $ac_status); } &&
8060 { ac_try='test -z "$ac_c_werror_flag"
8061 || test ! -s conftest.err'
8062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8066 (exit $ac_status); }; } &&
8067 { ac_try='test -s conftest.$ac_objext'
8068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8072 (exit $ac_status); }; }; then
8073 gt_cv_c_intmax_t=yes
8075 echo "$as_me: failed program was:" >&5
8076 sed 's/^/| /' conftest.$ac_ext >&5
8080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8082 echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
8083 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6
8084 if test $gt_cv_c_intmax_t = yes; then
8086 cat >>confdefs.h <<\_ACEOF
8087 #define HAVE_INTMAX_T 1
8094 echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
8095 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6
8096 if test "${gt_cv_func_printf_posix+set}" = set; then
8097 echo $ECHO_N "(cached) $ECHO_C" >&6
8100 if test "$cross_compiling" = yes; then
8102 cat >conftest.$ac_ext <<_ACEOF
8105 cat confdefs.h >>conftest.$ac_ext
8106 cat >>conftest.$ac_ext <<_ACEOF
8107 /* end confdefs.h. */
8109 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
8114 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8115 $EGREP "notposix" >/dev/null 2>&1; then
8116 gt_cv_func_printf_posix="guessing no"
8118 gt_cv_func_printf_posix="guessing yes"
8124 cat >conftest.$ac_ext <<_ACEOF
8127 cat confdefs.h >>conftest.$ac_ext
8128 cat >>conftest.$ac_ext <<_ACEOF
8129 /* end confdefs.h. */
8133 /* The string "%2$d %1$d", with dollar characters protected from the shell's
8134 dollar expansion (possibly an autoconf bug). */
8135 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
8136 static char buf[100];
8139 sprintf (buf, format, 33, 55);
8140 return (strcmp (buf, "55 33") != 0);
8143 rm -f conftest$ac_exeext
8144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8145 (eval $ac_link) 2>&5
8147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8153 (exit $ac_status); }; }; then
8154 gt_cv_func_printf_posix=yes
8156 echo "$as_me: program exited with status $ac_status" >&5
8157 echo "$as_me: failed program was:" >&5
8158 sed 's/^/| /' conftest.$ac_ext >&5
8161 gt_cv_func_printf_posix=no
8163 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8167 echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
8168 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6
8169 case $gt_cv_func_printf_posix in
8172 cat >>confdefs.h <<\_ACEOF
8173 #define HAVE_POSIX_PRINTF 1
8179 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8180 # for constant arguments. Useless!
8181 echo "$as_me:$LINENO: checking for working alloca.h" >&5
8182 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
8183 if test "${ac_cv_working_alloca_h+set}" = set; then
8184 echo $ECHO_N "(cached) $ECHO_C" >&6
8186 cat >conftest.$ac_ext <<_ACEOF
8189 cat confdefs.h >>conftest.$ac_ext
8190 cat >>conftest.$ac_ext <<_ACEOF
8191 /* end confdefs.h. */
8196 char *p = (char *) alloca (2 * sizeof (int));
8201 rm -f conftest.$ac_objext conftest$ac_exeext
8202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8203 (eval $ac_link) 2>conftest.er1
8205 grep -v '^ *+' conftest.er1 >conftest.err
8207 cat conftest.err >&5
8208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209 (exit $ac_status); } &&
8210 { ac_try='test -z "$ac_c_werror_flag"
8211 || test ! -s conftest.err'
8212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8216 (exit $ac_status); }; } &&
8217 { ac_try='test -s conftest$ac_exeext'
8218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222 (exit $ac_status); }; }; then
8223 ac_cv_working_alloca_h=yes
8225 echo "$as_me: failed program was:" >&5
8226 sed 's/^/| /' conftest.$ac_ext >&5
8228 ac_cv_working_alloca_h=no
8230 rm -f conftest.err conftest.$ac_objext \
8231 conftest$ac_exeext conftest.$ac_ext
8233 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8234 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
8235 if test $ac_cv_working_alloca_h = yes; then
8237 cat >>confdefs.h <<\_ACEOF
8238 #define HAVE_ALLOCA_H 1
8243 echo "$as_me:$LINENO: checking for alloca" >&5
8244 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
8245 if test "${ac_cv_func_alloca_works+set}" = set; then
8246 echo $ECHO_N "(cached) $ECHO_C" >&6
8248 cat >conftest.$ac_ext <<_ACEOF
8251 cat confdefs.h >>conftest.$ac_ext
8252 cat >>conftest.$ac_ext <<_ACEOF
8253 /* end confdefs.h. */
8255 # define alloca __builtin_alloca
8258 # include <malloc.h>
8259 # define alloca _alloca
8262 # include <alloca.h>
8267 # ifndef alloca /* predefined by HP cc +Olibcalls */
8278 char *p = (char *) alloca (1);
8283 rm -f conftest.$ac_objext conftest$ac_exeext
8284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8285 (eval $ac_link) 2>conftest.er1
8287 grep -v '^ *+' conftest.er1 >conftest.err
8289 cat conftest.err >&5
8290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8291 (exit $ac_status); } &&
8292 { ac_try='test -z "$ac_c_werror_flag"
8293 || test ! -s conftest.err'
8294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298 (exit $ac_status); }; } &&
8299 { ac_try='test -s conftest$ac_exeext'
8300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8304 (exit $ac_status); }; }; then
8305 ac_cv_func_alloca_works=yes
8307 echo "$as_me: failed program was:" >&5
8308 sed 's/^/| /' conftest.$ac_ext >&5
8310 ac_cv_func_alloca_works=no
8312 rm -f conftest.err conftest.$ac_objext \
8313 conftest$ac_exeext conftest.$ac_ext
8315 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8316 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
8318 if test $ac_cv_func_alloca_works = yes; then
8320 cat >>confdefs.h <<\_ACEOF
8321 #define HAVE_ALLOCA 1
8325 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8326 # that cause trouble. Some versions do not even contain alloca or
8327 # contain a buggy version. If you still want to use their alloca,
8328 # use ar to extract alloca.o from them instead of compiling alloca.c.
8330 ALLOCA=alloca.$ac_objext
8332 cat >>confdefs.h <<\_ACEOF
8337 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8338 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
8339 if test "${ac_cv_os_cray+set}" = set; then
8340 echo $ECHO_N "(cached) $ECHO_C" >&6
8342 cat >conftest.$ac_ext <<_ACEOF
8345 cat confdefs.h >>conftest.$ac_ext
8346 cat >>conftest.$ac_ext <<_ACEOF
8347 /* end confdefs.h. */
8348 #if defined(CRAY) && ! defined(CRAY2)
8355 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8356 $EGREP "webecray" >/dev/null 2>&1; then
8364 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8365 echo "${ECHO_T}$ac_cv_os_cray" >&6
8366 if test $ac_cv_os_cray = yes; then
8367 for ac_func in _getb67 GETB67 getb67; do
8368 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8369 echo "$as_me:$LINENO: checking for $ac_func" >&5
8370 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8371 if eval "test \"\${$as_ac_var+set}\" = set"; then
8372 echo $ECHO_N "(cached) $ECHO_C" >&6
8374 cat >conftest.$ac_ext <<_ACEOF
8377 cat confdefs.h >>conftest.$ac_ext
8378 cat >>conftest.$ac_ext <<_ACEOF
8379 /* end confdefs.h. */
8380 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8381 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8382 #define $ac_func innocuous_$ac_func
8384 /* System header to define __stub macros and hopefully few prototypes,
8385 which can conflict with char $ac_func (); below.
8386 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8387 <limits.h> exists even on freestanding compilers. */
8390 # include <limits.h>
8392 # include <assert.h>
8397 /* Override any gcc2 internal prototype to avoid an error. */
8402 /* We use char because int might match the return type of a gcc2
8403 builtin and then its argument prototype would still apply. */
8405 /* The GNU C library defines this for functions which it implements
8406 to always fail with ENOSYS. Some functions are actually named
8407 something starting with __ and the normal name is an alias. */
8408 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8411 char (*f) () = $ac_func;
8420 return f != $ac_func;
8425 rm -f conftest.$ac_objext conftest$ac_exeext
8426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8427 (eval $ac_link) 2>conftest.er1
8429 grep -v '^ *+' conftest.er1 >conftest.err
8431 cat conftest.err >&5
8432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8433 (exit $ac_status); } &&
8434 { ac_try='test -z "$ac_c_werror_flag"
8435 || test ! -s conftest.err'
8436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8440 (exit $ac_status); }; } &&
8441 { ac_try='test -s conftest$ac_exeext'
8442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8446 (exit $ac_status); }; }; then
8447 eval "$as_ac_var=yes"
8449 echo "$as_me: failed program was:" >&5
8450 sed 's/^/| /' conftest.$ac_ext >&5
8452 eval "$as_ac_var=no"
8454 rm -f conftest.err conftest.$ac_objext \
8455 conftest$ac_exeext conftest.$ac_ext
8457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8458 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8459 if test `eval echo '${'$as_ac_var'}'` = yes; then
8461 cat >>confdefs.h <<_ACEOF
8462 #define CRAY_STACKSEG_END $ac_func
8471 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8472 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
8473 if test "${ac_cv_c_stack_direction+set}" = set; then
8474 echo $ECHO_N "(cached) $ECHO_C" >&6
8476 if test "$cross_compiling" = yes; then
8477 ac_cv_c_stack_direction=0
8479 cat >conftest.$ac_ext <<_ACEOF
8482 cat confdefs.h >>conftest.$ac_ext
8483 cat >>conftest.$ac_ext <<_ACEOF
8484 /* end confdefs.h. */
8486 find_stack_direction ()
8488 static char *addr = 0;
8493 return find_stack_direction ();
8496 return (&dummy > addr) ? 1 : -1;
8502 exit (find_stack_direction () < 0);
8505 rm -f conftest$ac_exeext
8506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8507 (eval $ac_link) 2>&5
8509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8515 (exit $ac_status); }; }; then
8516 ac_cv_c_stack_direction=1
8518 echo "$as_me: program exited with status $ac_status" >&5
8519 echo "$as_me: failed program was:" >&5
8520 sed 's/^/| /' conftest.$ac_ext >&5
8523 ac_cv_c_stack_direction=-1
8525 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8528 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8529 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
8531 cat >>confdefs.h <<_ACEOF
8532 #define STACK_DIRECTION $ac_cv_c_stack_direction
8540 for ac_header in stdlib.h unistd.h
8542 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8543 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8544 echo "$as_me:$LINENO: checking for $ac_header" >&5
8545 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8546 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8547 echo $ECHO_N "(cached) $ECHO_C" >&6
8549 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8550 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8552 # Is the header compilable?
8553 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8554 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8555 cat >conftest.$ac_ext <<_ACEOF
8558 cat confdefs.h >>conftest.$ac_ext
8559 cat >>conftest.$ac_ext <<_ACEOF
8560 /* end confdefs.h. */
8561 $ac_includes_default
8562 #include <$ac_header>
8564 rm -f conftest.$ac_objext
8565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8566 (eval $ac_compile) 2>conftest.er1
8568 grep -v '^ *+' conftest.er1 >conftest.err
8570 cat conftest.err >&5
8571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8572 (exit $ac_status); } &&
8573 { ac_try='test -z "$ac_c_werror_flag"
8574 || test ! -s conftest.err'
8575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8579 (exit $ac_status); }; } &&
8580 { ac_try='test -s conftest.$ac_objext'
8581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585 (exit $ac_status); }; }; then
8586 ac_header_compiler=yes
8588 echo "$as_me: failed program was:" >&5
8589 sed 's/^/| /' conftest.$ac_ext >&5
8591 ac_header_compiler=no
8593 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8594 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8595 echo "${ECHO_T}$ac_header_compiler" >&6
8597 # Is the header present?
8598 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8599 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8600 cat >conftest.$ac_ext <<_ACEOF
8603 cat confdefs.h >>conftest.$ac_ext
8604 cat >>conftest.$ac_ext <<_ACEOF
8605 /* end confdefs.h. */
8606 #include <$ac_header>
8608 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8609 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8611 grep -v '^ *+' conftest.er1 >conftest.err
8613 cat conftest.err >&5
8614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615 (exit $ac_status); } >/dev/null; then
8616 if test -s conftest.err; then
8617 ac_cpp_err=$ac_c_preproc_warn_flag
8618 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8625 if test -z "$ac_cpp_err"; then
8626 ac_header_preproc=yes
8628 echo "$as_me: failed program was:" >&5
8629 sed 's/^/| /' conftest.$ac_ext >&5
8631 ac_header_preproc=no
8633 rm -f conftest.err conftest.$ac_ext
8634 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8635 echo "${ECHO_T}$ac_header_preproc" >&6
8637 # So? What about this header?
8638 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8640 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8641 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8642 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8643 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8644 ac_header_preproc=yes
8647 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8648 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8649 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8650 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8651 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8652 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8653 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8654 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8655 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8656 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8657 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8658 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8661 ## ------------------------------------------ ##
8662 ## Report this to the AC_PACKAGE_NAME lists. ##
8663 ## ------------------------------------------ ##
8666 sed "s/^/$as_me: WARNING: /" >&2
8669 echo "$as_me:$LINENO: checking for $ac_header" >&5
8670 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8671 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8672 echo $ECHO_N "(cached) $ECHO_C" >&6
8674 eval "$as_ac_Header=\$ac_header_preproc"
8676 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8677 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8680 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8681 cat >>confdefs.h <<_ACEOF
8682 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8690 for ac_func in getpagesize
8692 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8693 echo "$as_me:$LINENO: checking for $ac_func" >&5
8694 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8695 if eval "test \"\${$as_ac_var+set}\" = set"; then
8696 echo $ECHO_N "(cached) $ECHO_C" >&6
8698 cat >conftest.$ac_ext <<_ACEOF
8701 cat confdefs.h >>conftest.$ac_ext
8702 cat >>conftest.$ac_ext <<_ACEOF
8703 /* end confdefs.h. */
8704 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8705 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8706 #define $ac_func innocuous_$ac_func
8708 /* System header to define __stub macros and hopefully few prototypes,
8709 which can conflict with char $ac_func (); below.
8710 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8711 <limits.h> exists even on freestanding compilers. */
8714 # include <limits.h>
8716 # include <assert.h>
8721 /* Override any gcc2 internal prototype to avoid an error. */
8726 /* We use char because int might match the return type of a gcc2
8727 builtin and then its argument prototype would still apply. */
8729 /* The GNU C library defines this for functions which it implements
8730 to always fail with ENOSYS. Some functions are actually named
8731 something starting with __ and the normal name is an alias. */
8732 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8735 char (*f) () = $ac_func;
8744 return f != $ac_func;
8749 rm -f conftest.$ac_objext conftest$ac_exeext
8750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8751 (eval $ac_link) 2>conftest.er1
8753 grep -v '^ *+' conftest.er1 >conftest.err
8755 cat conftest.err >&5
8756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8757 (exit $ac_status); } &&
8758 { ac_try='test -z "$ac_c_werror_flag"
8759 || test ! -s conftest.err'
8760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8764 (exit $ac_status); }; } &&
8765 { ac_try='test -s conftest$ac_exeext'
8766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8770 (exit $ac_status); }; }; then
8771 eval "$as_ac_var=yes"
8773 echo "$as_me: failed program was:" >&5
8774 sed 's/^/| /' conftest.$ac_ext >&5
8776 eval "$as_ac_var=no"
8778 rm -f conftest.err conftest.$ac_objext \
8779 conftest$ac_exeext conftest.$ac_ext
8781 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8782 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8783 if test `eval echo '${'$as_ac_var'}'` = yes; then
8784 cat >>confdefs.h <<_ACEOF
8785 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8791 echo "$as_me:$LINENO: checking for working mmap" >&5
8792 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8793 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8794 echo $ECHO_N "(cached) $ECHO_C" >&6
8796 if test "$cross_compiling" = yes; then
8797 ac_cv_func_mmap_fixed_mapped=no
8799 cat >conftest.$ac_ext <<_ACEOF
8802 cat confdefs.h >>conftest.$ac_ext
8803 cat >>conftest.$ac_ext <<_ACEOF
8804 /* end confdefs.h. */
8805 $ac_includes_default
8806 /* malloc might have been renamed as rpl_malloc. */
8809 /* Thanks to Mike Haertel and Jim Avera for this test.
8810 Here is a matrix of mmap possibilities:
8811 mmap private not fixed
8812 mmap private fixed at somewhere currently unmapped
8813 mmap private fixed at somewhere already mapped
8814 mmap shared not fixed
8815 mmap shared fixed at somewhere currently unmapped
8816 mmap shared fixed at somewhere already mapped
8817 For private mappings, we should verify that changes cannot be read()
8818 back from the file, nor mmap's back from the file at a different
8819 address. (There have been systems where private was not correctly
8820 implemented like the infamous i386 svr4.0, and systems where the
8821 VM page cache was not coherent with the file system buffer cache
8822 like early versions of FreeBSD and possibly contemporary NetBSD.)
8823 For shared mappings, we should conversely verify that changes get
8824 propagated back to all the places they're supposed to be.
8826 Grep wants private fixed already mapped.
8827 The main things grep needs to know about mmap are:
8828 * does it exist and is it safe to write into the mmap'd area
8829 * how to use it (BSD variants) */
8832 #include <sys/mman.h>
8834 #if !STDC_HEADERS && !HAVE_STDLIB_H
8838 /* This mess was copied from the GNU getpagesize.h. */
8839 #if !HAVE_GETPAGESIZE
8840 /* Assume that all systems that can run configure have sys/param.h. */
8841 # if !HAVE_SYS_PARAM_H
8842 # define HAVE_SYS_PARAM_H 1
8845 # ifdef _SC_PAGESIZE
8846 # define getpagesize() sysconf(_SC_PAGESIZE)
8847 # else /* no _SC_PAGESIZE */
8848 # if HAVE_SYS_PARAM_H
8849 # include <sys/param.h>
8850 # ifdef EXEC_PAGESIZE
8851 # define getpagesize() EXEC_PAGESIZE
8852 # else /* no EXEC_PAGESIZE */
8854 # define getpagesize() NBPG * CLSIZE
8857 # endif /* no CLSIZE */
8858 # else /* no NBPG */
8860 # define getpagesize() NBPC
8861 # else /* no NBPC */
8863 # define getpagesize() PAGESIZE
8864 # endif /* PAGESIZE */
8865 # endif /* no NBPC */
8866 # endif /* no NBPG */
8867 # endif /* no EXEC_PAGESIZE */
8868 # else /* no HAVE_SYS_PARAM_H */
8869 # define getpagesize() 8192 /* punt totally */
8870 # endif /* no HAVE_SYS_PARAM_H */
8871 # endif /* no _SC_PAGESIZE */
8873 #endif /* no HAVE_GETPAGESIZE */
8878 char *data, *data2, *data3;
8882 pagesize = getpagesize ();
8884 /* First, make a file with some known garbage in it. */
8885 data = (char *) malloc (pagesize);
8888 for (i = 0; i < pagesize; ++i)
8889 *(data + i) = rand ();
8891 fd = creat ("conftest.mmap", 0600);
8894 if (write (fd, data, pagesize) != pagesize)
8898 /* Next, try to mmap the file at a fixed address which already has
8899 something else allocated at it. If we can, also make sure that
8900 we see the same garbage. */
8901 fd = open ("conftest.mmap", O_RDWR);
8904 data2 = (char *) malloc (2 * pagesize);
8907 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
8908 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8909 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8911 for (i = 0; i < pagesize; ++i)
8912 if (*(data + i) != *(data2 + i))
8915 /* Finally, make sure that changes to the mapped area do not
8916 percolate back to the file as seen by read(). (This is a bug on
8917 some variants of i386 svr4.0.) */
8918 for (i = 0; i < pagesize; ++i)
8919 *(data2 + i) = *(data2 + i) + 1;
8920 data3 = (char *) malloc (pagesize);
8923 if (read (fd, data3, pagesize) != pagesize)
8925 for (i = 0; i < pagesize; ++i)
8926 if (*(data + i) != *(data3 + i))
8932 rm -f conftest$ac_exeext
8933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8934 (eval $ac_link) 2>&5
8936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8937 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8942 (exit $ac_status); }; }; then
8943 ac_cv_func_mmap_fixed_mapped=yes
8945 echo "$as_me: program exited with status $ac_status" >&5
8946 echo "$as_me: failed program was:" >&5
8947 sed 's/^/| /' conftest.$ac_ext >&5
8950 ac_cv_func_mmap_fixed_mapped=no
8952 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8955 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8956 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
8957 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8959 cat >>confdefs.h <<\_ACEOF
8967 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
8968 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
8969 if test "${ac_cv_gnu_library_2_1+set}" = set; then
8970 echo $ECHO_N "(cached) $ECHO_C" >&6
8972 cat >conftest.$ac_ext <<_ACEOF
8975 cat confdefs.h >>conftest.$ac_ext
8976 cat >>conftest.$ac_ext <<_ACEOF
8977 /* end confdefs.h. */
8979 #include <features.h>
8980 #ifdef __GNU_LIBRARY__
8981 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
8987 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8988 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
8989 ac_cv_gnu_library_2_1=yes
8991 ac_cv_gnu_library_2_1=no
8998 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
8999 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
9001 GLIBC21="$ac_cv_gnu_library_2_1"
9006 echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
9007 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
9008 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
9009 echo $ECHO_N "(cached) $ECHO_C" >&6
9012 if test "$cross_compiling" = yes; then
9014 # Guess based on the CPU.
9016 alpha* | i3456786 | m68k | s390*)
9017 gt_cv_int_divbyzero_sigfpe="guessing yes";;
9019 gt_cv_int_divbyzero_sigfpe="guessing no";;
9023 cat >conftest.$ac_ext <<_ACEOF
9026 cat confdefs.h >>conftest.$ac_ext
9027 cat >>conftest.$ac_ext <<_ACEOF
9028 /* end confdefs.h. */
9035 sigfpe_handler (int sig)
9037 sigfpe_handler (sig) int sig;
9040 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
9041 exit (sig != SIGFPE);
9051 signal (SIGFPE, sigfpe_handler);
9052 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
9053 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
9054 signal (SIGTRAP, sigfpe_handler);
9056 /* Linux/SPARC yields signal SIGILL. */
9057 #if defined (__sparc__) && defined (__linux__)
9058 signal (SIGILL, sigfpe_handler);
9067 rm -f conftest$ac_exeext
9068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9069 (eval $ac_link) 2>&5
9071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9072 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077 (exit $ac_status); }; }; then
9078 gt_cv_int_divbyzero_sigfpe=yes
9080 echo "$as_me: program exited with status $ac_status" >&5
9081 echo "$as_me: failed program was:" >&5
9082 sed 's/^/| /' conftest.$ac_ext >&5
9085 gt_cv_int_divbyzero_sigfpe=no
9087 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9091 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
9092 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
9093 case "$gt_cv_int_divbyzero_sigfpe" in
9098 cat >>confdefs.h <<_ACEOF
9099 #define INTDIV0_RAISES_SIGFPE $value
9104 echo "$as_me:$LINENO: checking for unsigned long long" >&5
9105 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
9106 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
9107 echo $ECHO_N "(cached) $ECHO_C" >&6
9109 cat >conftest.$ac_ext <<_ACEOF
9112 cat confdefs.h >>conftest.$ac_ext
9113 cat >>conftest.$ac_ext <<_ACEOF
9114 /* end confdefs.h. */
9115 unsigned long long ull = 1ULL; int i = 63;
9119 unsigned long long ullmax = (unsigned long long) -1;
9120 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
9125 rm -f conftest.$ac_objext conftest$ac_exeext
9126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9127 (eval $ac_link) 2>conftest.er1
9129 grep -v '^ *+' conftest.er1 >conftest.err
9131 cat conftest.err >&5
9132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133 (exit $ac_status); } &&
9134 { ac_try='test -z "$ac_c_werror_flag"
9135 || test ! -s conftest.err'
9136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9140 (exit $ac_status); }; } &&
9141 { ac_try='test -s conftest$ac_exeext'
9142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9146 (exit $ac_status); }; }; then
9147 ac_cv_type_unsigned_long_long=yes
9149 echo "$as_me: failed program was:" >&5
9150 sed 's/^/| /' conftest.$ac_ext >&5
9152 ac_cv_type_unsigned_long_long=no
9154 rm -f conftest.err conftest.$ac_objext \
9155 conftest$ac_exeext conftest.$ac_ext
9157 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
9158 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
9159 if test $ac_cv_type_unsigned_long_long = yes; then
9161 cat >>confdefs.h <<\_ACEOF
9162 #define HAVE_UNSIGNED_LONG_LONG 1
9170 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
9172 test $ac_cv_type_unsigned_long_long = yes \
9173 && ac_type='unsigned long long' \
9174 || ac_type='unsigned long'
9176 cat >>confdefs.h <<_ACEOF
9177 #define uintmax_t $ac_type
9182 cat >>confdefs.h <<\_ACEOF
9183 #define HAVE_UINTMAX_T 1
9189 echo "$as_me:$LINENO: checking for inttypes.h" >&5
9190 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
9191 if test "${gt_cv_header_inttypes_h+set}" = set; then
9192 echo $ECHO_N "(cached) $ECHO_C" >&6
9195 cat >conftest.$ac_ext <<_ACEOF
9198 cat confdefs.h >>conftest.$ac_ext
9199 cat >>conftest.$ac_ext <<_ACEOF
9200 /* end confdefs.h. */
9201 #include <sys/types.h>
9202 #include <inttypes.h>
9211 rm -f conftest.$ac_objext
9212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9213 (eval $ac_compile) 2>conftest.er1
9215 grep -v '^ *+' conftest.er1 >conftest.err
9217 cat conftest.err >&5
9218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9219 (exit $ac_status); } &&
9220 { ac_try='test -z "$ac_c_werror_flag"
9221 || test ! -s conftest.err'
9222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9226 (exit $ac_status); }; } &&
9227 { ac_try='test -s conftest.$ac_objext'
9228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232 (exit $ac_status); }; }; then
9233 gt_cv_header_inttypes_h=yes
9235 echo "$as_me: failed program was:" >&5
9236 sed 's/^/| /' conftest.$ac_ext >&5
9238 gt_cv_header_inttypes_h=no
9240 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9243 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
9244 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
9245 if test $gt_cv_header_inttypes_h = yes; then
9247 cat >>confdefs.h <<_ACEOF
9248 #define HAVE_INTTYPES_H 1
9255 if test $gt_cv_header_inttypes_h = yes; then
9256 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
9257 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
9258 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
9259 echo $ECHO_N "(cached) $ECHO_C" >&6
9262 cat >conftest.$ac_ext <<_ACEOF
9265 cat confdefs.h >>conftest.$ac_ext
9266 cat >>conftest.$ac_ext <<_ACEOF
9267 /* end confdefs.h. */
9268 #include <inttypes.h>
9281 rm -f conftest.$ac_objext
9282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9283 (eval $ac_compile) 2>conftest.er1
9285 grep -v '^ *+' conftest.er1 >conftest.err
9287 cat conftest.err >&5
9288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9289 (exit $ac_status); } &&
9290 { ac_try='test -z "$ac_c_werror_flag"
9291 || test ! -s conftest.err'
9292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9296 (exit $ac_status); }; } &&
9297 { ac_try='test -s conftest.$ac_objext'
9298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9302 (exit $ac_status); }; }; then
9303 gt_cv_inttypes_pri_broken=no
9305 echo "$as_me: failed program was:" >&5
9306 sed 's/^/| /' conftest.$ac_ext >&5
9308 gt_cv_inttypes_pri_broken=yes
9310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9313 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
9314 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
9316 if test "$gt_cv_inttypes_pri_broken" = yes; then
9318 cat >>confdefs.h <<_ACEOF
9319 #define PRI_MACROS_BROKEN 1
9326 for ac_header in stdint.h
9328 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9329 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9330 echo "$as_me:$LINENO: checking for $ac_header" >&5
9331 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9332 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9333 echo $ECHO_N "(cached) $ECHO_C" >&6
9335 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9336 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9338 # Is the header compilable?
9339 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9340 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9341 cat >conftest.$ac_ext <<_ACEOF
9344 cat confdefs.h >>conftest.$ac_ext
9345 cat >>conftest.$ac_ext <<_ACEOF
9346 /* end confdefs.h. */
9347 $ac_includes_default
9348 #include <$ac_header>
9350 rm -f conftest.$ac_objext
9351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9352 (eval $ac_compile) 2>conftest.er1
9354 grep -v '^ *+' conftest.er1 >conftest.err
9356 cat conftest.err >&5
9357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9358 (exit $ac_status); } &&
9359 { ac_try='test -z "$ac_c_werror_flag"
9360 || test ! -s conftest.err'
9361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9365 (exit $ac_status); }; } &&
9366 { ac_try='test -s conftest.$ac_objext'
9367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9371 (exit $ac_status); }; }; then
9372 ac_header_compiler=yes
9374 echo "$as_me: failed program was:" >&5
9375 sed 's/^/| /' conftest.$ac_ext >&5
9377 ac_header_compiler=no
9379 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9380 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9381 echo "${ECHO_T}$ac_header_compiler" >&6
9383 # Is the header present?
9384 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9385 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9386 cat >conftest.$ac_ext <<_ACEOF
9389 cat confdefs.h >>conftest.$ac_ext
9390 cat >>conftest.$ac_ext <<_ACEOF
9391 /* end confdefs.h. */
9392 #include <$ac_header>
9394 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9395 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9397 grep -v '^ *+' conftest.er1 >conftest.err
9399 cat conftest.err >&5
9400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401 (exit $ac_status); } >/dev/null; then
9402 if test -s conftest.err; then
9403 ac_cpp_err=$ac_c_preproc_warn_flag
9404 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9411 if test -z "$ac_cpp_err"; then
9412 ac_header_preproc=yes
9414 echo "$as_me: failed program was:" >&5
9415 sed 's/^/| /' conftest.$ac_ext >&5
9417 ac_header_preproc=no
9419 rm -f conftest.err conftest.$ac_ext
9420 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9421 echo "${ECHO_T}$ac_header_preproc" >&6
9423 # So? What about this header?
9424 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9426 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9427 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9428 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9429 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9430 ac_header_preproc=yes
9433 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9434 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9435 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9436 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9437 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9438 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9439 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9440 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9441 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9442 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9443 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9444 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9447 ## ------------------------------------------ ##
9448 ## Report this to the AC_PACKAGE_NAME lists. ##
9449 ## ------------------------------------------ ##
9452 sed "s/^/$as_me: WARNING: /" >&2
9455 echo "$as_me:$LINENO: checking for $ac_header" >&5
9456 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9457 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9458 echo $ECHO_N "(cached) $ECHO_C" >&6
9460 eval "$as_ac_Header=\$ac_header_preproc"
9462 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9463 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9466 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9467 cat >>confdefs.h <<_ACEOF
9468 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9475 echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
9476 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6
9478 cat >conftest.$ac_ext <<_ACEOF
9481 cat confdefs.h >>conftest.$ac_ext
9482 cat >>conftest.$ac_ext <<_ACEOF
9483 /* end confdefs.h. */
9494 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9495 $EGREP "Found it" >/dev/null 2>&1; then
9500 if test -z "$result"; then
9501 if test "$cross_compiling" = yes; then
9502 # Depending upon the size, compute the lo and hi bounds.
9503 cat >conftest.$ac_ext <<_ACEOF
9506 cat confdefs.h >>conftest.$ac_ext
9507 cat >>conftest.$ac_ext <<_ACEOF
9508 /* end confdefs.h. */
9513 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
9520 rm -f conftest.$ac_objext
9521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9522 (eval $ac_compile) 2>conftest.er1
9524 grep -v '^ *+' conftest.er1 >conftest.err
9526 cat conftest.err >&5
9527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9528 (exit $ac_status); } &&
9529 { ac_try='test -z "$ac_c_werror_flag"
9530 || test ! -s conftest.err'
9531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9535 (exit $ac_status); }; } &&
9536 { ac_try='test -s conftest.$ac_objext'
9537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9541 (exit $ac_status); }; }; then
9544 cat >conftest.$ac_ext <<_ACEOF
9547 cat confdefs.h >>conftest.$ac_ext
9548 cat >>conftest.$ac_ext <<_ACEOF
9549 /* end confdefs.h. */
9554 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
9561 rm -f conftest.$ac_objext
9562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9563 (eval $ac_compile) 2>conftest.er1
9565 grep -v '^ *+' conftest.er1 >conftest.err
9567 cat conftest.err >&5
9568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9569 (exit $ac_status); } &&
9570 { ac_try='test -z "$ac_c_werror_flag"
9571 || test ! -s conftest.err'
9572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9576 (exit $ac_status); }; } &&
9577 { ac_try='test -s conftest.$ac_objext'
9578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9582 (exit $ac_status); }; }; then
9583 ac_hi=$ac_mid; break
9585 echo "$as_me: failed program was:" >&5
9586 sed 's/^/| /' conftest.$ac_ext >&5
9588 ac_lo=`expr $ac_mid + 1`
9589 if test $ac_lo -le $ac_mid; then
9593 ac_mid=`expr 2 '*' $ac_mid + 1`
9595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9598 echo "$as_me: failed program was:" >&5
9599 sed 's/^/| /' conftest.$ac_ext >&5
9601 cat >conftest.$ac_ext <<_ACEOF
9604 cat confdefs.h >>conftest.$ac_ext
9605 cat >>conftest.$ac_ext <<_ACEOF
9606 /* end confdefs.h. */
9611 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
9618 rm -f conftest.$ac_objext
9619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9620 (eval $ac_compile) 2>conftest.er1
9622 grep -v '^ *+' conftest.er1 >conftest.err
9624 cat conftest.err >&5
9625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9626 (exit $ac_status); } &&
9627 { ac_try='test -z "$ac_c_werror_flag"
9628 || test ! -s conftest.err'
9629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9633 (exit $ac_status); }; } &&
9634 { ac_try='test -s conftest.$ac_objext'
9635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9639 (exit $ac_status); }; }; then
9642 cat >conftest.$ac_ext <<_ACEOF
9645 cat confdefs.h >>conftest.$ac_ext
9646 cat >>conftest.$ac_ext <<_ACEOF
9647 /* end confdefs.h. */
9652 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
9659 rm -f conftest.$ac_objext
9660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9661 (eval $ac_compile) 2>conftest.er1
9663 grep -v '^ *+' conftest.er1 >conftest.err
9665 cat conftest.err >&5
9666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667 (exit $ac_status); } &&
9668 { ac_try='test -z "$ac_c_werror_flag"
9669 || test ! -s conftest.err'
9670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9674 (exit $ac_status); }; } &&
9675 { ac_try='test -s conftest.$ac_objext'
9676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9680 (exit $ac_status); }; }; then
9681 ac_lo=$ac_mid; break
9683 echo "$as_me: failed program was:" >&5
9684 sed 's/^/| /' conftest.$ac_ext >&5
9686 ac_hi=`expr '(' $ac_mid ')' - 1`
9687 if test $ac_mid -le $ac_hi; then
9691 ac_mid=`expr 2 '*' $ac_mid`
9693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9696 echo "$as_me: failed program was:" >&5
9697 sed 's/^/| /' conftest.$ac_ext >&5
9701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9703 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9704 # Binary search between lo and hi bounds.
9705 while test "x$ac_lo" != "x$ac_hi"; do
9706 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9707 cat >conftest.$ac_ext <<_ACEOF
9710 cat confdefs.h >>conftest.$ac_ext
9711 cat >>conftest.$ac_ext <<_ACEOF
9712 /* end confdefs.h. */
9717 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
9724 rm -f conftest.$ac_objext
9725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9726 (eval $ac_compile) 2>conftest.er1
9728 grep -v '^ *+' conftest.er1 >conftest.err
9730 cat conftest.err >&5
9731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732 (exit $ac_status); } &&
9733 { ac_try='test -z "$ac_c_werror_flag"
9734 || test ! -s conftest.err'
9735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9739 (exit $ac_status); }; } &&
9740 { ac_try='test -s conftest.$ac_objext'
9741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9745 (exit $ac_status); }; }; then
9748 echo "$as_me: failed program was:" >&5
9749 sed 's/^/| /' conftest.$ac_ext >&5
9751 ac_lo=`expr '(' $ac_mid ')' + 1`
9753 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9760 if test "$cross_compiling" = yes; then
9761 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9762 See \`config.log' for more details." >&5
9763 echo "$as_me: error: cannot run test program while cross compiling
9764 See \`config.log' for more details." >&2;}
9765 { (exit 1); exit 1; }; }
9767 cat >conftest.$ac_ext <<_ACEOF
9770 cat confdefs.h >>conftest.$ac_ext
9771 cat >>conftest.$ac_ext <<_ACEOF
9772 /* end confdefs.h. */
9774 long longval () { return ~(size_t)0 / 10; }
9775 unsigned long ulongval () { return ~(size_t)0 / 10; }
9782 FILE *f = fopen ("conftest.val", "w");
9785 if ((~(size_t)0 / 10) < 0)
9787 long i = longval ();
9788 if (i != (~(size_t)0 / 10))
9790 fprintf (f, "%ld\n", i);
9794 unsigned long i = ulongval ();
9795 if (i != (~(size_t)0 / 10))
9797 fprintf (f, "%lu\n", i);
9799 exit (ferror (f) || fclose (f) != 0);
9805 rm -f conftest$ac_exeext
9806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9807 (eval $ac_link) 2>&5
9809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9810 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9815 (exit $ac_status); }; }; then
9816 res_hi=`cat conftest.val`
9818 echo "$as_me: program exited with status $ac_status" >&5
9819 echo "$as_me: failed program was:" >&5
9820 sed 's/^/| /' conftest.$ac_ext >&5
9825 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9829 if test "$cross_compiling" = yes; then
9830 # Depending upon the size, compute the lo and hi bounds.
9831 cat >conftest.$ac_ext <<_ACEOF
9834 cat confdefs.h >>conftest.$ac_ext
9835 cat >>conftest.$ac_ext <<_ACEOF
9836 /* end confdefs.h. */
9841 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
9848 rm -f conftest.$ac_objext
9849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9850 (eval $ac_compile) 2>conftest.er1
9852 grep -v '^ *+' conftest.er1 >conftest.err
9854 cat conftest.err >&5
9855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856 (exit $ac_status); } &&
9857 { ac_try='test -z "$ac_c_werror_flag"
9858 || test ! -s conftest.err'
9859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863 (exit $ac_status); }; } &&
9864 { ac_try='test -s conftest.$ac_objext'
9865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9869 (exit $ac_status); }; }; then
9872 cat >conftest.$ac_ext <<_ACEOF
9875 cat confdefs.h >>conftest.$ac_ext
9876 cat >>conftest.$ac_ext <<_ACEOF
9877 /* end confdefs.h. */
9882 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
9889 rm -f conftest.$ac_objext
9890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9891 (eval $ac_compile) 2>conftest.er1
9893 grep -v '^ *+' conftest.er1 >conftest.err
9895 cat conftest.err >&5
9896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897 (exit $ac_status); } &&
9898 { ac_try='test -z "$ac_c_werror_flag"
9899 || test ! -s conftest.err'
9900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9904 (exit $ac_status); }; } &&
9905 { ac_try='test -s conftest.$ac_objext'
9906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9910 (exit $ac_status); }; }; then
9911 ac_hi=$ac_mid; break
9913 echo "$as_me: failed program was:" >&5
9914 sed 's/^/| /' conftest.$ac_ext >&5
9916 ac_lo=`expr $ac_mid + 1`
9917 if test $ac_lo -le $ac_mid; then
9921 ac_mid=`expr 2 '*' $ac_mid + 1`
9923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9926 echo "$as_me: failed program was:" >&5
9927 sed 's/^/| /' conftest.$ac_ext >&5
9929 cat >conftest.$ac_ext <<_ACEOF
9932 cat confdefs.h >>conftest.$ac_ext
9933 cat >>conftest.$ac_ext <<_ACEOF
9934 /* end confdefs.h. */
9939 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
9946 rm -f conftest.$ac_objext
9947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9948 (eval $ac_compile) 2>conftest.er1
9950 grep -v '^ *+' conftest.er1 >conftest.err
9952 cat conftest.err >&5
9953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9954 (exit $ac_status); } &&
9955 { ac_try='test -z "$ac_c_werror_flag"
9956 || test ! -s conftest.err'
9957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961 (exit $ac_status); }; } &&
9962 { ac_try='test -s conftest.$ac_objext'
9963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9967 (exit $ac_status); }; }; then
9970 cat >conftest.$ac_ext <<_ACEOF
9973 cat confdefs.h >>conftest.$ac_ext
9974 cat >>conftest.$ac_ext <<_ACEOF
9975 /* end confdefs.h. */
9980 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
9987 rm -f conftest.$ac_objext
9988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9989 (eval $ac_compile) 2>conftest.er1
9991 grep -v '^ *+' conftest.er1 >conftest.err
9993 cat conftest.err >&5
9994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9995 (exit $ac_status); } &&
9996 { ac_try='test -z "$ac_c_werror_flag"
9997 || test ! -s conftest.err'
9998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002 (exit $ac_status); }; } &&
10003 { ac_try='test -s conftest.$ac_objext'
10004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10005 (eval $ac_try) 2>&5
10007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10008 (exit $ac_status); }; }; then
10009 ac_lo=$ac_mid; break
10011 echo "$as_me: failed program was:" >&5
10012 sed 's/^/| /' conftest.$ac_ext >&5
10014 ac_hi=`expr '(' $ac_mid ')' - 1`
10015 if test $ac_mid -le $ac_hi; then
10019 ac_mid=`expr 2 '*' $ac_mid`
10021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10024 echo "$as_me: failed program was:" >&5
10025 sed 's/^/| /' conftest.$ac_ext >&5
10029 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10031 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10032 # Binary search between lo and hi bounds.
10033 while test "x$ac_lo" != "x$ac_hi"; do
10034 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10035 cat >conftest.$ac_ext <<_ACEOF
10038 cat confdefs.h >>conftest.$ac_ext
10039 cat >>conftest.$ac_ext <<_ACEOF
10040 /* end confdefs.h. */
10041 #include <stddef.h>
10045 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
10052 rm -f conftest.$ac_objext
10053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10054 (eval $ac_compile) 2>conftest.er1
10056 grep -v '^ *+' conftest.er1 >conftest.err
10058 cat conftest.err >&5
10059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060 (exit $ac_status); } &&
10061 { ac_try='test -z "$ac_c_werror_flag"
10062 || test ! -s conftest.err'
10063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10064 (eval $ac_try) 2>&5
10066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10067 (exit $ac_status); }; } &&
10068 { ac_try='test -s conftest.$ac_objext'
10069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10070 (eval $ac_try) 2>&5
10072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10073 (exit $ac_status); }; }; then
10076 echo "$as_me: failed program was:" >&5
10077 sed 's/^/| /' conftest.$ac_ext >&5
10079 ac_lo=`expr '(' $ac_mid ')' + 1`
10081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10084 ?*) res_lo=$ac_lo;;
10088 if test "$cross_compiling" = yes; then
10089 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10090 See \`config.log' for more details." >&5
10091 echo "$as_me: error: cannot run test program while cross compiling
10092 See \`config.log' for more details." >&2;}
10093 { (exit 1); exit 1; }; }
10095 cat >conftest.$ac_ext <<_ACEOF
10098 cat confdefs.h >>conftest.$ac_ext
10099 cat >>conftest.$ac_ext <<_ACEOF
10100 /* end confdefs.h. */
10101 #include <stddef.h>
10102 long longval () { return ~(size_t)0 % 10; }
10103 unsigned long ulongval () { return ~(size_t)0 % 10; }
10105 #include <stdlib.h>
10110 FILE *f = fopen ("conftest.val", "w");
10113 if ((~(size_t)0 % 10) < 0)
10115 long i = longval ();
10116 if (i != (~(size_t)0 % 10))
10118 fprintf (f, "%ld\n", i);
10122 unsigned long i = ulongval ();
10123 if (i != (~(size_t)0 % 10))
10125 fprintf (f, "%lu\n", i);
10127 exit (ferror (f) || fclose (f) != 0);
10133 rm -f conftest$ac_exeext
10134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10135 (eval $ac_link) 2>&5
10137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10138 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10140 (eval $ac_try) 2>&5
10142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143 (exit $ac_status); }; }; then
10144 res_lo=`cat conftest.val`
10146 echo "$as_me: program exited with status $ac_status" >&5
10147 echo "$as_me: failed program was:" >&5
10148 sed 's/^/| /' conftest.$ac_ext >&5
10150 ( exit $ac_status )
10153 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10157 if test "$cross_compiling" = yes; then
10158 # Depending upon the size, compute the lo and hi bounds.
10159 cat >conftest.$ac_ext <<_ACEOF
10162 cat confdefs.h >>conftest.$ac_ext
10163 cat >>conftest.$ac_ext <<_ACEOF
10164 /* end confdefs.h. */
10165 #include <stddef.h>
10169 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
10176 rm -f conftest.$ac_objext
10177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10178 (eval $ac_compile) 2>conftest.er1
10180 grep -v '^ *+' conftest.er1 >conftest.err
10182 cat conftest.err >&5
10183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10184 (exit $ac_status); } &&
10185 { ac_try='test -z "$ac_c_werror_flag"
10186 || test ! -s conftest.err'
10187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10188 (eval $ac_try) 2>&5
10190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10191 (exit $ac_status); }; } &&
10192 { ac_try='test -s conftest.$ac_objext'
10193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10194 (eval $ac_try) 2>&5
10196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10197 (exit $ac_status); }; }; then
10200 cat >conftest.$ac_ext <<_ACEOF
10203 cat confdefs.h >>conftest.$ac_ext
10204 cat >>conftest.$ac_ext <<_ACEOF
10205 /* end confdefs.h. */
10206 #include <stddef.h>
10210 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10217 rm -f conftest.$ac_objext
10218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10219 (eval $ac_compile) 2>conftest.er1
10221 grep -v '^ *+' conftest.er1 >conftest.err
10223 cat conftest.err >&5
10224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10225 (exit $ac_status); } &&
10226 { ac_try='test -z "$ac_c_werror_flag"
10227 || test ! -s conftest.err'
10228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10229 (eval $ac_try) 2>&5
10231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10232 (exit $ac_status); }; } &&
10233 { ac_try='test -s conftest.$ac_objext'
10234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10235 (eval $ac_try) 2>&5
10237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10238 (exit $ac_status); }; }; then
10239 ac_hi=$ac_mid; break
10241 echo "$as_me: failed program was:" >&5
10242 sed 's/^/| /' conftest.$ac_ext >&5
10244 ac_lo=`expr $ac_mid + 1`
10245 if test $ac_lo -le $ac_mid; then
10249 ac_mid=`expr 2 '*' $ac_mid + 1`
10251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10254 echo "$as_me: failed program was:" >&5
10255 sed 's/^/| /' conftest.$ac_ext >&5
10257 cat >conftest.$ac_ext <<_ACEOF
10260 cat confdefs.h >>conftest.$ac_ext
10261 cat >>conftest.$ac_ext <<_ACEOF
10262 /* end confdefs.h. */
10263 #include <stddef.h>
10267 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
10274 rm -f conftest.$ac_objext
10275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10276 (eval $ac_compile) 2>conftest.er1
10278 grep -v '^ *+' conftest.er1 >conftest.err
10280 cat conftest.err >&5
10281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282 (exit $ac_status); } &&
10283 { ac_try='test -z "$ac_c_werror_flag"
10284 || test ! -s conftest.err'
10285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10286 (eval $ac_try) 2>&5
10288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289 (exit $ac_status); }; } &&
10290 { ac_try='test -s conftest.$ac_objext'
10291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10292 (eval $ac_try) 2>&5
10294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10295 (exit $ac_status); }; }; then
10298 cat >conftest.$ac_ext <<_ACEOF
10301 cat confdefs.h >>conftest.$ac_ext
10302 cat >>conftest.$ac_ext <<_ACEOF
10303 /* end confdefs.h. */
10304 #include <stddef.h>
10308 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
10315 rm -f conftest.$ac_objext
10316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10317 (eval $ac_compile) 2>conftest.er1
10319 grep -v '^ *+' conftest.er1 >conftest.err
10321 cat conftest.err >&5
10322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10323 (exit $ac_status); } &&
10324 { ac_try='test -z "$ac_c_werror_flag"
10325 || test ! -s conftest.err'
10326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10327 (eval $ac_try) 2>&5
10329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10330 (exit $ac_status); }; } &&
10331 { ac_try='test -s conftest.$ac_objext'
10332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10333 (eval $ac_try) 2>&5
10335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10336 (exit $ac_status); }; }; then
10337 ac_lo=$ac_mid; break
10339 echo "$as_me: failed program was:" >&5
10340 sed 's/^/| /' conftest.$ac_ext >&5
10342 ac_hi=`expr '(' $ac_mid ')' - 1`
10343 if test $ac_mid -le $ac_hi; then
10347 ac_mid=`expr 2 '*' $ac_mid`
10349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10352 echo "$as_me: failed program was:" >&5
10353 sed 's/^/| /' conftest.$ac_ext >&5
10357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10360 # Binary search between lo and hi bounds.
10361 while test "x$ac_lo" != "x$ac_hi"; do
10362 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10363 cat >conftest.$ac_ext <<_ACEOF
10366 cat confdefs.h >>conftest.$ac_ext
10367 cat >>conftest.$ac_ext <<_ACEOF
10368 /* end confdefs.h. */
10369 #include <stddef.h>
10373 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10380 rm -f conftest.$ac_objext
10381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10382 (eval $ac_compile) 2>conftest.er1
10384 grep -v '^ *+' conftest.er1 >conftest.err
10386 cat conftest.err >&5
10387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10388 (exit $ac_status); } &&
10389 { ac_try='test -z "$ac_c_werror_flag"
10390 || test ! -s conftest.err'
10391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10392 (eval $ac_try) 2>&5
10394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10395 (exit $ac_status); }; } &&
10396 { ac_try='test -s conftest.$ac_objext'
10397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10398 (eval $ac_try) 2>&5
10400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10401 (exit $ac_status); }; }; then
10404 echo "$as_me: failed program was:" >&5
10405 sed 's/^/| /' conftest.$ac_ext >&5
10407 ac_lo=`expr '(' $ac_mid ')' + 1`
10409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10412 ?*) fits_in_uint=$ac_lo;;
10416 if test "$cross_compiling" = yes; then
10417 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10418 See \`config.log' for more details." >&5
10419 echo "$as_me: error: cannot run test program while cross compiling
10420 See \`config.log' for more details." >&2;}
10421 { (exit 1); exit 1; }; }
10423 cat >conftest.$ac_ext <<_ACEOF
10426 cat confdefs.h >>conftest.$ac_ext
10427 cat >>conftest.$ac_ext <<_ACEOF
10428 /* end confdefs.h. */
10429 #include <stddef.h>
10430 long longval () { return sizeof (size_t) <= sizeof (unsigned int); }
10431 unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
10433 #include <stdlib.h>
10438 FILE *f = fopen ("conftest.val", "w");
10441 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
10443 long i = longval ();
10444 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
10446 fprintf (f, "%ld\n", i);
10450 unsigned long i = ulongval ();
10451 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
10453 fprintf (f, "%lu\n", i);
10455 exit (ferror (f) || fclose (f) != 0);
10461 rm -f conftest$ac_exeext
10462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10463 (eval $ac_link) 2>&5
10465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10466 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10468 (eval $ac_try) 2>&5
10470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10471 (exit $ac_status); }; }; then
10472 fits_in_uint=`cat conftest.val`
10474 echo "$as_me: program exited with status $ac_status" >&5
10475 echo "$as_me: failed program was:" >&5
10476 sed 's/^/| /' conftest.$ac_ext >&5
10478 ( exit $ac_status )
10481 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10485 if test "$fits_in_uint" = 1; then
10486 cat >conftest.$ac_ext <<_ACEOF
10489 cat confdefs.h >>conftest.$ac_ext
10490 cat >>conftest.$ac_ext <<_ACEOF
10491 /* end confdefs.h. */
10492 #include <stddef.h>
10494 extern unsigned long foo;
10504 rm -f conftest.$ac_objext
10505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10506 (eval $ac_compile) 2>conftest.er1
10508 grep -v '^ *+' conftest.er1 >conftest.err
10510 cat conftest.err >&5
10511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10512 (exit $ac_status); } &&
10513 { ac_try='test -z "$ac_c_werror_flag"
10514 || test ! -s conftest.err'
10515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10516 (eval $ac_try) 2>&5
10518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10519 (exit $ac_status); }; } &&
10520 { ac_try='test -s conftest.$ac_objext'
10521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10522 (eval $ac_try) 2>&5
10524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10525 (exit $ac_status); }; }; then
10528 echo "$as_me: failed program was:" >&5
10529 sed 's/^/| /' conftest.$ac_ext >&5
10532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10534 if test -z "$result"; then
10535 if test "$fits_in_uint" = 1; then
10536 result="$res_hi$res_lo"U
10538 result="$res_hi$res_lo"UL
10541 result='~(size_t)0'
10544 echo "$as_me:$LINENO: result: $result" >&5
10545 echo "${ECHO_T}$result" >&6
10546 if test "$result" != yes; then
10548 cat >>confdefs.h <<_ACEOF
10549 #define SIZE_MAX $result
10558 for ac_header in stdint.h
10560 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10561 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10562 echo "$as_me:$LINENO: checking for $ac_header" >&5
10563 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10564 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10565 echo $ECHO_N "(cached) $ECHO_C" >&6
10567 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10568 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10570 # Is the header compilable?
10571 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10572 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10573 cat >conftest.$ac_ext <<_ACEOF
10576 cat confdefs.h >>conftest.$ac_ext
10577 cat >>conftest.$ac_ext <<_ACEOF
10578 /* end confdefs.h. */
10579 $ac_includes_default
10580 #include <$ac_header>
10582 rm -f conftest.$ac_objext
10583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10584 (eval $ac_compile) 2>conftest.er1
10586 grep -v '^ *+' conftest.er1 >conftest.err
10588 cat conftest.err >&5
10589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10590 (exit $ac_status); } &&
10591 { ac_try='test -z "$ac_c_werror_flag"
10592 || test ! -s conftest.err'
10593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10594 (eval $ac_try) 2>&5
10596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10597 (exit $ac_status); }; } &&
10598 { ac_try='test -s conftest.$ac_objext'
10599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10600 (eval $ac_try) 2>&5
10602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10603 (exit $ac_status); }; }; then
10604 ac_header_compiler=yes
10606 echo "$as_me: failed program was:" >&5
10607 sed 's/^/| /' conftest.$ac_ext >&5
10609 ac_header_compiler=no
10611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10612 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10613 echo "${ECHO_T}$ac_header_compiler" >&6
10615 # Is the header present?
10616 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10617 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10618 cat >conftest.$ac_ext <<_ACEOF
10621 cat confdefs.h >>conftest.$ac_ext
10622 cat >>conftest.$ac_ext <<_ACEOF
10623 /* end confdefs.h. */
10624 #include <$ac_header>
10626 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10627 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10629 grep -v '^ *+' conftest.er1 >conftest.err
10631 cat conftest.err >&5
10632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10633 (exit $ac_status); } >/dev/null; then
10634 if test -s conftest.err; then
10635 ac_cpp_err=$ac_c_preproc_warn_flag
10636 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10643 if test -z "$ac_cpp_err"; then
10644 ac_header_preproc=yes
10646 echo "$as_me: failed program was:" >&5
10647 sed 's/^/| /' conftest.$ac_ext >&5
10649 ac_header_preproc=no
10651 rm -f conftest.err conftest.$ac_ext
10652 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10653 echo "${ECHO_T}$ac_header_preproc" >&6
10655 # So? What about this header?
10656 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10658 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10659 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10660 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10661 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10662 ac_header_preproc=yes
10665 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10666 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10667 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10668 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10669 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10670 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10671 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10672 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10673 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10674 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10675 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10676 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10679 ## ------------------------------------------ ##
10680 ## Report this to the AC_PACKAGE_NAME lists. ##
10681 ## ------------------------------------------ ##
10684 sed "s/^/$as_me: WARNING: /" >&2
10687 echo "$as_me:$LINENO: checking for $ac_header" >&5
10688 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10689 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10690 echo $ECHO_N "(cached) $ECHO_C" >&6
10692 eval "$as_ac_Header=\$ac_header_preproc"
10694 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10695 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10698 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10699 cat >>confdefs.h <<_ACEOF
10700 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10714 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
10715 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
10716 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
10717 echo $ECHO_N "(cached) $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
10729 if ((ptrdiff_t *) 0)
10731 if (sizeof (ptrdiff_t))
10737 rm -f conftest.$ac_objext
10738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10739 (eval $ac_compile) 2>conftest.er1
10741 grep -v '^ *+' conftest.er1 >conftest.err
10743 cat conftest.err >&5
10744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10745 (exit $ac_status); } &&
10746 { ac_try='test -z "$ac_c_werror_flag"
10747 || test ! -s conftest.err'
10748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10749 (eval $ac_try) 2>&5
10751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10752 (exit $ac_status); }; } &&
10753 { ac_try='test -s conftest.$ac_objext'
10754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10755 (eval $ac_try) 2>&5
10757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10758 (exit $ac_status); }; }; then
10759 ac_cv_type_ptrdiff_t=yes
10761 echo "$as_me: failed program was:" >&5
10762 sed 's/^/| /' conftest.$ac_ext >&5
10764 ac_cv_type_ptrdiff_t=no
10766 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10768 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
10769 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
10770 if test $ac_cv_type_ptrdiff_t = yes; then
10774 cat >>confdefs.h <<\_ACEOF
10775 #define ptrdiff_t long
10791 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
10792 stdlib.h string.h unistd.h sys/param.h
10794 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10795 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10796 echo "$as_me:$LINENO: checking for $ac_header" >&5
10797 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10798 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10799 echo $ECHO_N "(cached) $ECHO_C" >&6
10801 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10802 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10804 # Is the header compilable?
10805 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10806 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10807 cat >conftest.$ac_ext <<_ACEOF
10810 cat confdefs.h >>conftest.$ac_ext
10811 cat >>conftest.$ac_ext <<_ACEOF
10812 /* end confdefs.h. */
10813 $ac_includes_default
10814 #include <$ac_header>
10816 rm -f conftest.$ac_objext
10817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10818 (eval $ac_compile) 2>conftest.er1
10820 grep -v '^ *+' conftest.er1 >conftest.err
10822 cat conftest.err >&5
10823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824 (exit $ac_status); } &&
10825 { ac_try='test -z "$ac_c_werror_flag"
10826 || test ! -s conftest.err'
10827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10828 (eval $ac_try) 2>&5
10830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10831 (exit $ac_status); }; } &&
10832 { ac_try='test -s conftest.$ac_objext'
10833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10834 (eval $ac_try) 2>&5
10836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10837 (exit $ac_status); }; }; then
10838 ac_header_compiler=yes
10840 echo "$as_me: failed program was:" >&5
10841 sed 's/^/| /' conftest.$ac_ext >&5
10843 ac_header_compiler=no
10845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10846 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10847 echo "${ECHO_T}$ac_header_compiler" >&6
10849 # Is the header present?
10850 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10851 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10852 cat >conftest.$ac_ext <<_ACEOF
10855 cat confdefs.h >>conftest.$ac_ext
10856 cat >>conftest.$ac_ext <<_ACEOF
10857 /* end confdefs.h. */
10858 #include <$ac_header>
10860 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10861 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10863 grep -v '^ *+' conftest.er1 >conftest.err
10865 cat conftest.err >&5
10866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10867 (exit $ac_status); } >/dev/null; then
10868 if test -s conftest.err; then
10869 ac_cpp_err=$ac_c_preproc_warn_flag
10870 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10877 if test -z "$ac_cpp_err"; then
10878 ac_header_preproc=yes
10880 echo "$as_me: failed program was:" >&5
10881 sed 's/^/| /' conftest.$ac_ext >&5
10883 ac_header_preproc=no
10885 rm -f conftest.err conftest.$ac_ext
10886 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10887 echo "${ECHO_T}$ac_header_preproc" >&6
10889 # So? What about this header?
10890 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10892 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10893 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10894 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10895 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10896 ac_header_preproc=yes
10899 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10900 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10901 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10902 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10903 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10904 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10905 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10906 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10907 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10908 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10909 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10910 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10913 ## ------------------------------------------ ##
10914 ## Report this to the AC_PACKAGE_NAME lists. ##
10915 ## ------------------------------------------ ##
10918 sed "s/^/$as_me: WARNING: /" >&2
10921 echo "$as_me:$LINENO: checking for $ac_header" >&5
10922 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10923 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10924 echo $ECHO_N "(cached) $ECHO_C" >&6
10926 eval "$as_ac_Header=\$ac_header_preproc"
10928 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10929 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10932 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10933 cat >>confdefs.h <<_ACEOF
10934 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10964 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
10965 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
10966 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
10969 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10970 echo "$as_me:$LINENO: checking for $ac_func" >&5
10971 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10972 if eval "test \"\${$as_ac_var+set}\" = set"; then
10973 echo $ECHO_N "(cached) $ECHO_C" >&6
10975 cat >conftest.$ac_ext <<_ACEOF
10978 cat confdefs.h >>conftest.$ac_ext
10979 cat >>conftest.$ac_ext <<_ACEOF
10980 /* end confdefs.h. */
10981 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10982 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10983 #define $ac_func innocuous_$ac_func
10985 /* System header to define __stub macros and hopefully few prototypes,
10986 which can conflict with char $ac_func (); below.
10987 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10988 <limits.h> exists even on freestanding compilers. */
10991 # include <limits.h>
10993 # include <assert.h>
10998 /* Override any gcc2 internal prototype to avoid an error. */
11003 /* We use char because int might match the return type of a gcc2
11004 builtin and then its argument prototype would still apply. */
11006 /* The GNU C library defines this for functions which it implements
11007 to always fail with ENOSYS. Some functions are actually named
11008 something starting with __ and the normal name is an alias. */
11009 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11012 char (*f) () = $ac_func;
11021 return f != $ac_func;
11026 rm -f conftest.$ac_objext conftest$ac_exeext
11027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11028 (eval $ac_link) 2>conftest.er1
11030 grep -v '^ *+' conftest.er1 >conftest.err
11032 cat conftest.err >&5
11033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11034 (exit $ac_status); } &&
11035 { ac_try='test -z "$ac_c_werror_flag"
11036 || test ! -s conftest.err'
11037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11038 (eval $ac_try) 2>&5
11040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11041 (exit $ac_status); }; } &&
11042 { ac_try='test -s conftest$ac_exeext'
11043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11044 (eval $ac_try) 2>&5
11046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11047 (exit $ac_status); }; }; then
11048 eval "$as_ac_var=yes"
11050 echo "$as_me: failed program was:" >&5
11051 sed 's/^/| /' conftest.$ac_ext >&5
11053 eval "$as_ac_var=no"
11055 rm -f conftest.err conftest.$ac_objext \
11056 conftest$ac_exeext conftest.$ac_ext
11058 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11059 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11060 if test `eval echo '${'$as_ac_var'}'` = yes; then
11061 cat >>confdefs.h <<_ACEOF
11062 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11070 echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
11071 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6
11072 if test "${ac_cv_have_decl__snprintf+set}" = set; then
11073 echo $ECHO_N "(cached) $ECHO_C" >&6
11075 cat >conftest.$ac_ext <<_ACEOF
11078 cat confdefs.h >>conftest.$ac_ext
11079 cat >>conftest.$ac_ext <<_ACEOF
11080 /* end confdefs.h. */
11087 char *p = (char *) _snprintf;
11094 rm -f conftest.$ac_objext
11095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11096 (eval $ac_compile) 2>conftest.er1
11098 grep -v '^ *+' conftest.er1 >conftest.err
11100 cat conftest.err >&5
11101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11102 (exit $ac_status); } &&
11103 { ac_try='test -z "$ac_c_werror_flag"
11104 || test ! -s conftest.err'
11105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11106 (eval $ac_try) 2>&5
11108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11109 (exit $ac_status); }; } &&
11110 { ac_try='test -s conftest.$ac_objext'
11111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11112 (eval $ac_try) 2>&5
11114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11115 (exit $ac_status); }; }; then
11116 ac_cv_have_decl__snprintf=yes
11118 echo "$as_me: failed program was:" >&5
11119 sed 's/^/| /' conftest.$ac_ext >&5
11121 ac_cv_have_decl__snprintf=no
11123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11125 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
11126 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6
11127 if test $ac_cv_have_decl__snprintf = yes; then
11133 cat >>confdefs.h <<_ACEOF
11134 #define HAVE_DECL__SNPRINTF $gt_value
11139 echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
11140 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6
11141 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
11142 echo $ECHO_N "(cached) $ECHO_C" >&6
11144 cat >conftest.$ac_ext <<_ACEOF
11147 cat confdefs.h >>conftest.$ac_ext
11148 cat >>conftest.$ac_ext <<_ACEOF
11149 /* end confdefs.h. */
11156 char *p = (char *) _snwprintf;
11163 rm -f conftest.$ac_objext
11164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11165 (eval $ac_compile) 2>conftest.er1
11167 grep -v '^ *+' conftest.er1 >conftest.err
11169 cat conftest.err >&5
11170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11171 (exit $ac_status); } &&
11172 { ac_try='test -z "$ac_c_werror_flag"
11173 || test ! -s conftest.err'
11174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11175 (eval $ac_try) 2>&5
11177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11178 (exit $ac_status); }; } &&
11179 { ac_try='test -s conftest.$ac_objext'
11180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11181 (eval $ac_try) 2>&5
11183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11184 (exit $ac_status); }; }; then
11185 ac_cv_have_decl__snwprintf=yes
11187 echo "$as_me: failed program was:" >&5
11188 sed 's/^/| /' conftest.$ac_ext >&5
11190 ac_cv_have_decl__snwprintf=no
11192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11194 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
11195 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6
11196 if test $ac_cv_have_decl__snwprintf = yes; then
11202 cat >>confdefs.h <<_ACEOF
11203 #define HAVE_DECL__SNWPRINTF $gt_value
11209 echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
11210 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
11211 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
11212 echo $ECHO_N "(cached) $ECHO_C" >&6
11214 cat >conftest.$ac_ext <<_ACEOF
11217 cat confdefs.h >>conftest.$ac_ext
11218 cat >>conftest.$ac_ext <<_ACEOF
11219 /* end confdefs.h. */
11225 #ifndef feof_unlocked
11226 char *p = (char *) feof_unlocked;
11233 rm -f conftest.$ac_objext
11234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11235 (eval $ac_compile) 2>conftest.er1
11237 grep -v '^ *+' conftest.er1 >conftest.err
11239 cat conftest.err >&5
11240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11241 (exit $ac_status); } &&
11242 { ac_try='test -z "$ac_c_werror_flag"
11243 || test ! -s conftest.err'
11244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11245 (eval $ac_try) 2>&5
11247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11248 (exit $ac_status); }; } &&
11249 { ac_try='test -s conftest.$ac_objext'
11250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11251 (eval $ac_try) 2>&5
11253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11254 (exit $ac_status); }; }; then
11255 ac_cv_have_decl_feof_unlocked=yes
11257 echo "$as_me: failed program was:" >&5
11258 sed 's/^/| /' conftest.$ac_ext >&5
11260 ac_cv_have_decl_feof_unlocked=no
11262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11264 echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
11265 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
11266 if test $ac_cv_have_decl_feof_unlocked = yes; then
11272 cat >>confdefs.h <<_ACEOF
11273 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
11278 echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
11279 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
11280 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
11281 echo $ECHO_N "(cached) $ECHO_C" >&6
11283 cat >conftest.$ac_ext <<_ACEOF
11286 cat confdefs.h >>conftest.$ac_ext
11287 cat >>conftest.$ac_ext <<_ACEOF
11288 /* end confdefs.h. */
11294 #ifndef fgets_unlocked
11295 char *p = (char *) fgets_unlocked;
11302 rm -f conftest.$ac_objext
11303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11304 (eval $ac_compile) 2>conftest.er1
11306 grep -v '^ *+' conftest.er1 >conftest.err
11308 cat conftest.err >&5
11309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11310 (exit $ac_status); } &&
11311 { ac_try='test -z "$ac_c_werror_flag"
11312 || test ! -s conftest.err'
11313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11314 (eval $ac_try) 2>&5
11316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11317 (exit $ac_status); }; } &&
11318 { ac_try='test -s conftest.$ac_objext'
11319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11320 (eval $ac_try) 2>&5
11322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11323 (exit $ac_status); }; }; then
11324 ac_cv_have_decl_fgets_unlocked=yes
11326 echo "$as_me: failed program was:" >&5
11327 sed 's/^/| /' conftest.$ac_ext >&5
11329 ac_cv_have_decl_fgets_unlocked=no
11331 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11333 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
11334 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
11335 if test $ac_cv_have_decl_fgets_unlocked = yes; then
11341 cat >>confdefs.h <<_ACEOF
11342 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
11347 echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
11348 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
11349 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
11350 echo $ECHO_N "(cached) $ECHO_C" >&6
11352 cat >conftest.$ac_ext <<_ACEOF
11355 cat confdefs.h >>conftest.$ac_ext
11356 cat >>conftest.$ac_ext <<_ACEOF
11357 /* end confdefs.h. */
11363 #ifndef getc_unlocked
11364 char *p = (char *) getc_unlocked;
11371 rm -f conftest.$ac_objext
11372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11373 (eval $ac_compile) 2>conftest.er1
11375 grep -v '^ *+' conftest.er1 >conftest.err
11377 cat conftest.err >&5
11378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11379 (exit $ac_status); } &&
11380 { ac_try='test -z "$ac_c_werror_flag"
11381 || test ! -s conftest.err'
11382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11383 (eval $ac_try) 2>&5
11385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11386 (exit $ac_status); }; } &&
11387 { ac_try='test -s conftest.$ac_objext'
11388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11389 (eval $ac_try) 2>&5
11391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11392 (exit $ac_status); }; }; then
11393 ac_cv_have_decl_getc_unlocked=yes
11395 echo "$as_me: failed program was:" >&5
11396 sed 's/^/| /' conftest.$ac_ext >&5
11398 ac_cv_have_decl_getc_unlocked=no
11400 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11402 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
11403 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
11404 if test $ac_cv_have_decl_getc_unlocked = yes; then
11410 cat >>confdefs.h <<_ACEOF
11411 #define HAVE_DECL_GETC_UNLOCKED $gt_value
11416 case $gt_cv_func_printf_posix in
11417 *yes) HAVE_POSIX_PRINTF=1 ;;
11418 *) HAVE_POSIX_PRINTF=0 ;;
11421 if test "$ac_cv_func_asprintf" = yes; then
11427 if test "$ac_cv_func_snprintf" = yes; then
11433 if test "$ac_cv_func_wprintf" = yes; then
11445 am_save_CPPFLAGS="$CPPFLAGS"
11447 for element in $INCICONV; do
11449 for x in $CPPFLAGS; do
11451 acl_save_prefix="$prefix"
11452 prefix="$acl_final_prefix"
11453 acl_save_exec_prefix="$exec_prefix"
11454 exec_prefix="$acl_final_exec_prefix"
11456 exec_prefix="$acl_save_exec_prefix"
11457 prefix="$acl_save_prefix"
11459 if test "X$x" = "X$element"; then
11464 if test -z "$haveit"; then
11465 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11470 echo "$as_me:$LINENO: checking for iconv" >&5
11471 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
11472 if test "${am_cv_func_iconv+set}" = set; then
11473 echo $ECHO_N "(cached) $ECHO_C" >&6
11476 am_cv_func_iconv="no, consider installing GNU libiconv"
11478 cat >conftest.$ac_ext <<_ACEOF
11481 cat confdefs.h >>conftest.$ac_ext
11482 cat >>conftest.$ac_ext <<_ACEOF
11483 /* end confdefs.h. */
11484 #include <stdlib.h>
11489 iconv_t cd = iconv_open("","");
11490 iconv(cd,NULL,NULL,NULL,NULL);
11496 rm -f conftest.$ac_objext conftest$ac_exeext
11497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11498 (eval $ac_link) 2>conftest.er1
11500 grep -v '^ *+' conftest.er1 >conftest.err
11502 cat conftest.err >&5
11503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11504 (exit $ac_status); } &&
11505 { ac_try='test -z "$ac_c_werror_flag"
11506 || test ! -s conftest.err'
11507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11508 (eval $ac_try) 2>&5
11510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11511 (exit $ac_status); }; } &&
11512 { ac_try='test -s conftest$ac_exeext'
11513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11514 (eval $ac_try) 2>&5
11516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11517 (exit $ac_status); }; }; then
11518 am_cv_func_iconv=yes
11520 echo "$as_me: failed program was:" >&5
11521 sed 's/^/| /' conftest.$ac_ext >&5
11524 rm -f conftest.err conftest.$ac_objext \
11525 conftest$ac_exeext conftest.$ac_ext
11526 if test "$am_cv_func_iconv" != yes; then
11527 am_save_LIBS="$LIBS"
11528 LIBS="$LIBS $LIBICONV"
11529 cat >conftest.$ac_ext <<_ACEOF
11532 cat confdefs.h >>conftest.$ac_ext
11533 cat >>conftest.$ac_ext <<_ACEOF
11534 /* end confdefs.h. */
11535 #include <stdlib.h>
11540 iconv_t cd = iconv_open("","");
11541 iconv(cd,NULL,NULL,NULL,NULL);
11547 rm -f conftest.$ac_objext conftest$ac_exeext
11548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11549 (eval $ac_link) 2>conftest.er1
11551 grep -v '^ *+' conftest.er1 >conftest.err
11553 cat conftest.err >&5
11554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11555 (exit $ac_status); } &&
11556 { ac_try='test -z "$ac_c_werror_flag"
11557 || test ! -s conftest.err'
11558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11559 (eval $ac_try) 2>&5
11561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11562 (exit $ac_status); }; } &&
11563 { ac_try='test -s conftest$ac_exeext'
11564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11565 (eval $ac_try) 2>&5
11567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11568 (exit $ac_status); }; }; then
11569 am_cv_lib_iconv=yes
11570 am_cv_func_iconv=yes
11572 echo "$as_me: failed program was:" >&5
11573 sed 's/^/| /' conftest.$ac_ext >&5
11576 rm -f conftest.err conftest.$ac_objext \
11577 conftest$ac_exeext conftest.$ac_ext
11578 LIBS="$am_save_LIBS"
11582 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11583 echo "${ECHO_T}$am_cv_func_iconv" >&6
11584 if test "$am_cv_func_iconv" = yes; then
11586 cat >>confdefs.h <<\_ACEOF
11587 #define HAVE_ICONV 1
11591 if test "$am_cv_lib_iconv" = yes; then
11592 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11593 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
11594 echo "$as_me:$LINENO: result: $LIBICONV" >&5
11595 echo "${ECHO_T}$LIBICONV" >&6
11597 CPPFLAGS="$am_save_CPPFLAGS"
11604 if test "$am_cv_func_iconv" = yes; then
11605 echo "$as_me:$LINENO: checking for iconv declaration" >&5
11606 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11607 if test "${am_cv_proto_iconv+set}" = set; then
11608 echo $ECHO_N "(cached) $ECHO_C" >&6
11611 cat >conftest.$ac_ext <<_ACEOF
11614 cat confdefs.h >>conftest.$ac_ext
11615 cat >>conftest.$ac_ext <<_ACEOF
11616 /* end confdefs.h. */
11618 #include <stdlib.h>
11624 #if defined(__STDC__) || defined(__cplusplus)
11625 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11638 rm -f conftest.$ac_objext
11639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11640 (eval $ac_compile) 2>conftest.er1
11642 grep -v '^ *+' conftest.er1 >conftest.err
11644 cat conftest.err >&5
11645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11646 (exit $ac_status); } &&
11647 { ac_try='test -z "$ac_c_werror_flag"
11648 || test ! -s conftest.err'
11649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11650 (eval $ac_try) 2>&5
11652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11653 (exit $ac_status); }; } &&
11654 { ac_try='test -s conftest.$ac_objext'
11655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11656 (eval $ac_try) 2>&5
11658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11659 (exit $ac_status); }; }; then
11660 am_cv_proto_iconv_arg1=""
11662 echo "$as_me: failed program was:" >&5
11663 sed 's/^/| /' conftest.$ac_ext >&5
11665 am_cv_proto_iconv_arg1="const"
11667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11668 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);"
11671 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11672 echo "$as_me:$LINENO: result: ${ac_t:-
11673 }$am_cv_proto_iconv" >&5
11674 echo "${ECHO_T}${ac_t:-
11675 }$am_cv_proto_iconv" >&6
11677 cat >>confdefs.h <<_ACEOF
11678 #define ICONV_CONST $am_cv_proto_iconv_arg1
11684 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11685 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11686 if test "${am_cv_langinfo_codeset+set}" = set; then
11687 echo $ECHO_N "(cached) $ECHO_C" >&6
11689 cat >conftest.$ac_ext <<_ACEOF
11692 cat confdefs.h >>conftest.$ac_ext
11693 cat >>conftest.$ac_ext <<_ACEOF
11694 /* end confdefs.h. */
11695 #include <langinfo.h>
11699 char* cs = nl_langinfo(CODESET);
11704 rm -f conftest.$ac_objext conftest$ac_exeext
11705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11706 (eval $ac_link) 2>conftest.er1
11708 grep -v '^ *+' conftest.er1 >conftest.err
11710 cat conftest.err >&5
11711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11712 (exit $ac_status); } &&
11713 { ac_try='test -z "$ac_c_werror_flag"
11714 || test ! -s conftest.err'
11715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11716 (eval $ac_try) 2>&5
11718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11719 (exit $ac_status); }; } &&
11720 { ac_try='test -s conftest$ac_exeext'
11721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11722 (eval $ac_try) 2>&5
11724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11725 (exit $ac_status); }; }; then
11726 am_cv_langinfo_codeset=yes
11728 echo "$as_me: failed program was:" >&5
11729 sed 's/^/| /' conftest.$ac_ext >&5
11731 am_cv_langinfo_codeset=no
11733 rm -f conftest.err conftest.$ac_objext \
11734 conftest$ac_exeext conftest.$ac_ext
11737 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11738 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11739 if test $am_cv_langinfo_codeset = yes; then
11741 cat >>confdefs.h <<\_ACEOF
11742 #define HAVE_LANGINFO_CODESET 1
11747 if test $ac_cv_header_locale_h = yes; then
11749 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11750 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11751 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
11752 echo $ECHO_N "(cached) $ECHO_C" >&6
11754 cat >conftest.$ac_ext <<_ACEOF
11757 cat confdefs.h >>conftest.$ac_ext
11758 cat >>conftest.$ac_ext <<_ACEOF
11759 /* end confdefs.h. */
11760 #include <locale.h>
11769 rm -f conftest.$ac_objext conftest$ac_exeext
11770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11771 (eval $ac_link) 2>conftest.er1
11773 grep -v '^ *+' conftest.er1 >conftest.err
11775 cat conftest.err >&5
11776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11777 (exit $ac_status); } &&
11778 { ac_try='test -z "$ac_c_werror_flag"
11779 || test ! -s conftest.err'
11780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11781 (eval $ac_try) 2>&5
11783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11784 (exit $ac_status); }; } &&
11785 { ac_try='test -s conftest$ac_exeext'
11786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11787 (eval $ac_try) 2>&5
11789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790 (exit $ac_status); }; }; then
11791 gt_cv_val_LC_MESSAGES=yes
11793 echo "$as_me: failed program was:" >&5
11794 sed 's/^/| /' conftest.$ac_ext >&5
11796 gt_cv_val_LC_MESSAGES=no
11798 rm -f conftest.err conftest.$ac_objext \
11799 conftest$ac_exeext conftest.$ac_ext
11801 echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
11802 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6
11803 if test $gt_cv_val_LC_MESSAGES = yes; then
11805 cat >>confdefs.h <<\_ACEOF
11806 #define HAVE_LC_MESSAGES 1
11813 if test -n "$INTL_MACOSX_LIBS"; then
11814 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
11817 for ac_prog in bison
11819 # Extract the first word of "$ac_prog", so it can be a program name with args.
11820 set dummy $ac_prog; ac_word=$2
11821 echo "$as_me:$LINENO: checking for $ac_word" >&5
11822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11823 if test "${ac_cv_prog_INTLBISON+set}" = set; then
11824 echo $ECHO_N "(cached) $ECHO_C" >&6
11826 if test -n "$INTLBISON"; then
11827 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
11829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11830 for as_dir in $PATH
11833 test -z "$as_dir" && as_dir=.
11834 for ac_exec_ext in '' $ac_executable_extensions; do
11835 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11836 ac_cv_prog_INTLBISON="$ac_prog"
11837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11845 INTLBISON=$ac_cv_prog_INTLBISON
11846 if test -n "$INTLBISON"; then
11847 echo "$as_me:$LINENO: result: $INTLBISON" >&5
11848 echo "${ECHO_T}$INTLBISON" >&6
11850 echo "$as_me:$LINENO: result: no" >&5
11851 echo "${ECHO_T}no" >&6
11854 test -n "$INTLBISON" && break
11857 if test -z "$INTLBISON"; then
11860 echo "$as_me:$LINENO: checking version of bison" >&5
11861 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
11862 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
11863 case $ac_prog_version in
11864 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
11865 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
11866 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
11867 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
11869 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
11870 echo "${ECHO_T}$ac_prog_version" >&6
11872 if test $ac_verc_fail = yes; then
11891 echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
11892 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6
11893 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
11894 echo $ECHO_N "(cached) $ECHO_C" >&6
11896 gt_save_CPPFLAGS="$CPPFLAGS"
11897 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
11898 gt_save_LIBS="$LIBS"
11899 LIBS="$LIBS -framework CoreFoundation"
11900 cat >conftest.$ac_ext <<_ACEOF
11903 cat confdefs.h >>conftest.$ac_ext
11904 cat >>conftest.$ac_ext <<_ACEOF
11905 /* end confdefs.h. */
11906 #include <CFPreferences.h>
11910 CFPreferencesCopyAppValue(NULL, NULL)
11915 rm -f conftest.$ac_objext conftest$ac_exeext
11916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11917 (eval $ac_link) 2>conftest.er1
11919 grep -v '^ *+' conftest.er1 >conftest.err
11921 cat conftest.err >&5
11922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923 (exit $ac_status); } &&
11924 { ac_try='test -z "$ac_c_werror_flag"
11925 || test ! -s conftest.err'
11926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11927 (eval $ac_try) 2>&5
11929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11930 (exit $ac_status); }; } &&
11931 { ac_try='test -s conftest$ac_exeext'
11932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11933 (eval $ac_try) 2>&5
11935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11936 (exit $ac_status); }; }; then
11937 gt_cv_func_CFPreferencesCopyAppValue=yes
11939 echo "$as_me: failed program was:" >&5
11940 sed 's/^/| /' conftest.$ac_ext >&5
11942 gt_cv_func_CFPreferencesCopyAppValue=no
11944 rm -f conftest.err conftest.$ac_objext \
11945 conftest$ac_exeext conftest.$ac_ext
11946 CPPFLAGS="$gt_save_CPPFLAGS"
11947 LIBS="$gt_save_LIBS"
11949 echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
11950 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6
11951 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
11953 cat >>confdefs.h <<\_ACEOF
11954 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
11958 echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
11959 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6
11960 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
11961 echo $ECHO_N "(cached) $ECHO_C" >&6
11963 gt_save_CPPFLAGS="$CPPFLAGS"
11964 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
11965 gt_save_LIBS="$LIBS"
11966 LIBS="$LIBS -framework CoreFoundation"
11967 cat >conftest.$ac_ext <<_ACEOF
11970 cat confdefs.h >>conftest.$ac_ext
11971 cat >>conftest.$ac_ext <<_ACEOF
11972 /* end confdefs.h. */
11973 #include <CFLocale.h>
11977 CFLocaleCopyCurrent();
11982 rm -f conftest.$ac_objext conftest$ac_exeext
11983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11984 (eval $ac_link) 2>conftest.er1
11986 grep -v '^ *+' conftest.er1 >conftest.err
11988 cat conftest.err >&5
11989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11990 (exit $ac_status); } &&
11991 { ac_try='test -z "$ac_c_werror_flag"
11992 || test ! -s conftest.err'
11993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11994 (eval $ac_try) 2>&5
11996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11997 (exit $ac_status); }; } &&
11998 { ac_try='test -s conftest$ac_exeext'
11999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12000 (eval $ac_try) 2>&5
12002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12003 (exit $ac_status); }; }; then
12004 gt_cv_func_CFLocaleCopyCurrent=yes
12006 echo "$as_me: failed program was:" >&5
12007 sed 's/^/| /' conftest.$ac_ext >&5
12009 gt_cv_func_CFLocaleCopyCurrent=no
12011 rm -f conftest.err conftest.$ac_objext \
12012 conftest$ac_exeext conftest.$ac_ext
12013 CPPFLAGS="$gt_save_CPPFLAGS"
12014 LIBS="$gt_save_LIBS"
12016 echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
12017 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6
12018 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12020 cat >>confdefs.h <<\_ACEOF
12021 #define HAVE_CFLOCALECOPYCURRENT 1
12026 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12027 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
12033 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12034 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12035 # Check whether --enable-nls or --disable-nls was given.
12036 if test "${enable_nls+set}" = set; then
12037 enableval="$enable_nls"
12042 echo "$as_me:$LINENO: result: $USE_NLS" >&5
12043 echo "${ECHO_T}$USE_NLS" >&6
12048 BUILD_INCLUDED_LIBINTL=no
12049 USE_INCLUDED_LIBINTL=no
12055 if test "$USE_NLS" = "yes"; then
12056 gt_use_preinstalled_gnugettext=no
12058 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
12059 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
12061 # Check whether --with-included-gettext or --without-included-gettext was given.
12062 if test "${with_included_gettext+set}" = set; then
12063 withval="$with_included_gettext"
12064 nls_cv_force_use_gnu_gettext=$withval
12066 nls_cv_force_use_gnu_gettext=no
12068 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
12069 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
12071 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
12072 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
12079 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
12080 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
12081 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
12082 echo $ECHO_N "(cached) $ECHO_C" >&6
12084 cat >conftest.$ac_ext <<_ACEOF
12087 cat confdefs.h >>conftest.$ac_ext
12088 cat >>conftest.$ac_ext <<_ACEOF
12089 /* end confdefs.h. */
12090 #include <libintl.h>
12091 extern int _nl_msg_cat_cntr;
12092 extern int *_nl_domain_bindings;
12096 bindtextdomain ("", "");
12097 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
12102 rm -f conftest.$ac_objext conftest$ac_exeext
12103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12104 (eval $ac_link) 2>conftest.er1
12106 grep -v '^ *+' conftest.er1 >conftest.err
12108 cat conftest.err >&5
12109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12110 (exit $ac_status); } &&
12111 { ac_try='test -z "$ac_c_werror_flag"
12112 || test ! -s conftest.err'
12113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12114 (eval $ac_try) 2>&5
12116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117 (exit $ac_status); }; } &&
12118 { ac_try='test -s conftest$ac_exeext'
12119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12120 (eval $ac_try) 2>&5
12122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123 (exit $ac_status); }; }; then
12124 gt_cv_func_gnugettext1_libc=yes
12126 echo "$as_me: failed program was:" >&5
12127 sed 's/^/| /' conftest.$ac_ext >&5
12129 gt_cv_func_gnugettext1_libc=no
12131 rm -f conftest.err conftest.$ac_objext \
12132 conftest$ac_exeext conftest.$ac_ext
12134 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
12135 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
12137 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
12143 acl_save_prefix="$prefix"
12144 prefix="$acl_final_prefix"
12145 acl_save_exec_prefix="$exec_prefix"
12146 exec_prefix="$acl_final_exec_prefix"
12148 eval additional_includedir=\"$includedir\"
12149 eval additional_libdir=\"$libdir\"
12151 exec_prefix="$acl_save_exec_prefix"
12152 prefix="$acl_save_prefix"
12155 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
12156 if test "${with_libintl_prefix+set}" = set; then
12157 withval="$with_libintl_prefix"
12159 if test "X$withval" = "Xno"; then
12162 if test "X$withval" = "X"; then
12164 acl_save_prefix="$prefix"
12165 prefix="$acl_final_prefix"
12166 acl_save_exec_prefix="$exec_prefix"
12167 exec_prefix="$acl_final_exec_prefix"
12169 eval additional_includedir=\"$includedir\"
12170 eval additional_libdir=\"$libdir\"
12172 exec_prefix="$acl_save_exec_prefix"
12173 prefix="$acl_save_prefix"
12176 additional_includedir="$withval/include"
12177 additional_libdir="$withval/lib"
12187 names_already_handled=
12188 names_next_round='intl '
12189 while test -n "$names_next_round"; do
12190 names_this_round="$names_next_round"
12192 for name in $names_this_round; do
12194 for n in $names_already_handled; do
12195 if test "$n" = "$name"; then
12196 already_handled=yes
12200 if test -z "$already_handled"; then
12201 names_already_handled="$names_already_handled $name"
12202 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12203 eval value=\"\$HAVE_LIB$uppername\"
12204 if test -n "$value"; then
12205 if test "$value" = yes; then
12206 eval value=\"\$LIB$uppername\"
12207 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
12208 eval value=\"\$LTLIB$uppername\"
12209 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
12218 if test $use_additional = yes; then
12219 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
12220 found_dir="$additional_libdir"
12221 found_so="$additional_libdir/lib$name.$shlibext"
12222 if test -f "$additional_libdir/lib$name.la"; then
12223 found_la="$additional_libdir/lib$name.la"
12226 if test -f "$additional_libdir/lib$name.$libext"; then
12227 found_dir="$additional_libdir"
12228 found_a="$additional_libdir/lib$name.$libext"
12229 if test -f "$additional_libdir/lib$name.la"; then
12230 found_la="$additional_libdir/lib$name.la"
12235 if test "X$found_dir" = "X"; then
12236 for x in $LDFLAGS $LTLIBINTL; do
12238 acl_save_prefix="$prefix"
12239 prefix="$acl_final_prefix"
12240 acl_save_exec_prefix="$exec_prefix"
12241 exec_prefix="$acl_final_exec_prefix"
12243 exec_prefix="$acl_save_exec_prefix"
12244 prefix="$acl_save_prefix"
12248 dir=`echo "X$x" | sed -e 's/^X-L//'`
12249 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
12251 found_so="$dir/lib$name.$shlibext"
12252 if test -f "$dir/lib$name.la"; then
12253 found_la="$dir/lib$name.la"
12256 if test -f "$dir/lib$name.$libext"; then
12258 found_a="$dir/lib$name.$libext"
12259 if test -f "$dir/lib$name.la"; then
12260 found_la="$dir/lib$name.la"
12266 if test "X$found_dir" != "X"; then
12271 if test "X$found_dir" != "X"; then
12272 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
12273 if test "X$found_so" != "X"; then
12274 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
12275 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12278 for x in $ltrpathdirs; do
12279 if test "X$x" = "X$found_dir"; then
12284 if test -z "$haveit"; then
12285 ltrpathdirs="$ltrpathdirs $found_dir"
12287 if test "$hardcode_direct" = yes; then
12288 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12290 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
12291 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12293 for x in $rpathdirs; do
12294 if test "X$x" = "X$found_dir"; then
12299 if test -z "$haveit"; then
12300 rpathdirs="$rpathdirs $found_dir"
12304 for x in $LDFLAGS $LIBINTL; do
12306 acl_save_prefix="$prefix"
12307 prefix="$acl_final_prefix"
12308 acl_save_exec_prefix="$exec_prefix"
12309 exec_prefix="$acl_final_exec_prefix"
12311 exec_prefix="$acl_save_exec_prefix"
12312 prefix="$acl_save_prefix"
12314 if test "X$x" = "X-L$found_dir"; then
12319 if test -z "$haveit"; then
12320 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
12322 if test "$hardcode_minus_L" != no; then
12323 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12325 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12331 if test "X$found_a" != "X"; then
12332 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
12334 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
12337 additional_includedir=
12338 case "$found_dir" in
12340 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
12341 additional_includedir="$basedir/include"
12344 if test "X$additional_includedir" != "X"; then
12345 if test "X$additional_includedir" != "X/usr/include"; then
12347 if test "X$additional_includedir" = "X/usr/local/include"; then
12348 if test -n "$GCC"; then
12350 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12354 if test -z "$haveit"; then
12355 for x in $CPPFLAGS $INCINTL; do
12357 acl_save_prefix="$prefix"
12358 prefix="$acl_final_prefix"
12359 acl_save_exec_prefix="$exec_prefix"
12360 exec_prefix="$acl_final_exec_prefix"
12362 exec_prefix="$acl_save_exec_prefix"
12363 prefix="$acl_save_prefix"
12365 if test "X$x" = "X-I$additional_includedir"; then
12370 if test -z "$haveit"; then
12371 if test -d "$additional_includedir"; then
12372 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
12378 if test -n "$found_la"; then
12379 save_libdir="$libdir"
12380 case "$found_la" in
12381 */* | *\\*) . "$found_la" ;;
12382 *) . "./$found_la" ;;
12384 libdir="$save_libdir"
12385 for dep in $dependency_libs; do
12388 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12389 if test "X$additional_libdir" != "X/usr/lib"; then
12391 if test "X$additional_libdir" = "X/usr/local/lib"; then
12392 if test -n "$GCC"; then
12394 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12398 if test -z "$haveit"; then
12400 for x in $LDFLAGS $LIBINTL; do
12402 acl_save_prefix="$prefix"
12403 prefix="$acl_final_prefix"
12404 acl_save_exec_prefix="$exec_prefix"
12405 exec_prefix="$acl_final_exec_prefix"
12407 exec_prefix="$acl_save_exec_prefix"
12408 prefix="$acl_save_prefix"
12410 if test "X$x" = "X-L$additional_libdir"; then
12415 if test -z "$haveit"; then
12416 if test -d "$additional_libdir"; then
12417 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
12421 for x in $LDFLAGS $LTLIBINTL; do
12423 acl_save_prefix="$prefix"
12424 prefix="$acl_final_prefix"
12425 acl_save_exec_prefix="$exec_prefix"
12426 exec_prefix="$acl_final_exec_prefix"
12428 exec_prefix="$acl_save_exec_prefix"
12429 prefix="$acl_save_prefix"
12431 if test "X$x" = "X-L$additional_libdir"; then
12436 if test -z "$haveit"; then
12437 if test -d "$additional_libdir"; then
12438 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
12445 dir=`echo "X$dep" | sed -e 's/^X-R//'`
12446 if test "$enable_rpath" != no; then
12448 for x in $rpathdirs; do
12449 if test "X$x" = "X$dir"; then
12454 if test -z "$haveit"; then
12455 rpathdirs="$rpathdirs $dir"
12458 for x in $ltrpathdirs; do
12459 if test "X$x" = "X$dir"; then
12464 if test -z "$haveit"; then
12465 ltrpathdirs="$ltrpathdirs $dir"
12470 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12473 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12476 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
12477 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
12483 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12484 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
12490 if test "X$rpathdirs" != "X"; then
12491 if test -n "$hardcode_libdir_separator"; then
12493 for found_dir in $rpathdirs; do
12494 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
12496 acl_save_libdir="$libdir"
12498 eval flag=\"$hardcode_libdir_flag_spec\"
12499 libdir="$acl_save_libdir"
12500 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12502 for found_dir in $rpathdirs; do
12503 acl_save_libdir="$libdir"
12504 libdir="$found_dir"
12505 eval flag=\"$hardcode_libdir_flag_spec\"
12506 libdir="$acl_save_libdir"
12507 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12511 if test "X$ltrpathdirs" != "X"; then
12512 for found_dir in $ltrpathdirs; do
12513 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
12517 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
12518 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
12519 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
12520 echo $ECHO_N "(cached) $ECHO_C" >&6
12522 gt_save_CPPFLAGS="$CPPFLAGS"
12523 CPPFLAGS="$CPPFLAGS $INCINTL"
12524 gt_save_LIBS="$LIBS"
12525 LIBS="$LIBS $LIBINTL"
12526 cat >conftest.$ac_ext <<_ACEOF
12529 cat confdefs.h >>conftest.$ac_ext
12530 cat >>conftest.$ac_ext <<_ACEOF
12531 /* end confdefs.h. */
12532 #include <libintl.h>
12533 extern int _nl_msg_cat_cntr;
12538 const char *_nl_expand_alias (const char *);
12542 bindtextdomain ("", "");
12543 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
12548 rm -f conftest.$ac_objext conftest$ac_exeext
12549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12550 (eval $ac_link) 2>conftest.er1
12552 grep -v '^ *+' conftest.er1 >conftest.err
12554 cat conftest.err >&5
12555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556 (exit $ac_status); } &&
12557 { ac_try='test -z "$ac_c_werror_flag"
12558 || test ! -s conftest.err'
12559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12560 (eval $ac_try) 2>&5
12562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12563 (exit $ac_status); }; } &&
12564 { ac_try='test -s conftest$ac_exeext'
12565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12566 (eval $ac_try) 2>&5
12568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12569 (exit $ac_status); }; }; then
12570 gt_cv_func_gnugettext1_libintl=yes
12572 echo "$as_me: failed program was:" >&5
12573 sed 's/^/| /' conftest.$ac_ext >&5
12575 gt_cv_func_gnugettext1_libintl=no
12577 rm -f conftest.err conftest.$ac_objext \
12578 conftest$ac_exeext conftest.$ac_ext
12579 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
12580 LIBS="$LIBS $LIBICONV"
12581 cat >conftest.$ac_ext <<_ACEOF
12584 cat confdefs.h >>conftest.$ac_ext
12585 cat >>conftest.$ac_ext <<_ACEOF
12586 /* end confdefs.h. */
12587 #include <libintl.h>
12588 extern int _nl_msg_cat_cntr;
12593 const char *_nl_expand_alias (const char *);
12597 bindtextdomain ("", "");
12598 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
12603 rm -f conftest.$ac_objext conftest$ac_exeext
12604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12605 (eval $ac_link) 2>conftest.er1
12607 grep -v '^ *+' conftest.er1 >conftest.err
12609 cat conftest.err >&5
12610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12611 (exit $ac_status); } &&
12612 { ac_try='test -z "$ac_c_werror_flag"
12613 || test ! -s conftest.err'
12614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12615 (eval $ac_try) 2>&5
12617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12618 (exit $ac_status); }; } &&
12619 { ac_try='test -s conftest$ac_exeext'
12620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12621 (eval $ac_try) 2>&5
12623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12624 (exit $ac_status); }; }; then
12625 LIBINTL="$LIBINTL $LIBICONV"
12626 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
12627 gt_cv_func_gnugettext1_libintl=yes
12630 echo "$as_me: failed program was:" >&5
12631 sed 's/^/| /' conftest.$ac_ext >&5
12634 rm -f conftest.err conftest.$ac_objext \
12635 conftest$ac_exeext conftest.$ac_ext
12637 CPPFLAGS="$gt_save_CPPFLAGS"
12638 LIBS="$gt_save_LIBS"
12640 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
12641 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
12644 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
12645 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
12646 && test "$PACKAGE" != gettext-runtime \
12647 && test "$PACKAGE" != gettext-tools; }; then
12648 gt_use_preinstalled_gnugettext=yes
12656 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
12657 nls_cv_use_gnu_gettext=yes
12661 if test "$nls_cv_use_gnu_gettext" = "yes"; then
12662 BUILD_INCLUDED_LIBINTL=yes
12663 USE_INCLUDED_LIBINTL=yes
12664 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
12665 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
12666 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
12670 if test "$gt_use_preinstalled_gnugettext" = "yes" \
12671 || test "$nls_cv_use_gnu_gettext" = "yes"; then
12676 if test -n "$INTL_MACOSX_LIBS"; then
12677 if test "$gt_use_preinstalled_gnugettext" = "yes" \
12678 || test "$nls_cv_use_gnu_gettext" = "yes"; then
12679 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
12680 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
12684 if test "$gt_use_preinstalled_gnugettext" = "yes" \
12685 || test "$nls_cv_use_gnu_gettext" = "yes"; then
12687 cat >>confdefs.h <<\_ACEOF
12688 #define ENABLE_NLS 1
12696 echo "$as_me:$LINENO: checking whether to use NLS" >&5
12697 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
12698 echo "$as_me:$LINENO: result: $USE_NLS" >&5
12699 echo "${ECHO_T}$USE_NLS" >&6
12700 if test "$USE_NLS" = "yes"; then
12701 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
12702 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
12703 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12704 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
12705 gt_source="external libintl"
12710 gt_source="included intl directory"
12712 echo "$as_me:$LINENO: result: $gt_source" >&5
12713 echo "${ECHO_T}$gt_source" >&6
12716 if test "$USE_NLS" = "yes"; then
12718 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12719 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
12720 echo "$as_me:$LINENO: checking how to link with libintl" >&5
12721 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
12722 echo "$as_me:$LINENO: result: $LIBINTL" >&5
12723 echo "${ECHO_T}$LIBINTL" >&6
12725 for element in $INCINTL; do
12727 for x in $CPPFLAGS; do
12729 acl_save_prefix="$prefix"
12730 prefix="$acl_final_prefix"
12731 acl_save_exec_prefix="$exec_prefix"
12732 exec_prefix="$acl_final_exec_prefix"
12734 exec_prefix="$acl_save_exec_prefix"
12735 prefix="$acl_save_prefix"
12737 if test "X$x" = "X$element"; then
12742 if test -z "$haveit"; then
12743 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12750 cat >>confdefs.h <<\_ACEOF
12751 #define HAVE_GETTEXT 1
12755 cat >>confdefs.h <<\_ACEOF
12756 #define HAVE_DCGETTEXT 1
12765 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
12766 BUILD_INCLUDED_LIBINTL=yes
12773 nls_cv_header_intl=
12774 nls_cv_header_libgt=
12786 if test "$USE_INCLUDED_LIBINTL" = yes; then
12787 INTLOBJS="\$(GETTOBJS)"
12791 INTL_LIBTOOL_SUFFIX_PREFIX=
12795 INTLLIBS="$LIBINTL"
12808 support_postgresql=no
12809 support_smartalloc=yes
12810 support_readline=yes
12814 support_wx_console=no
12819 support_static_tools=no
12820 support_static_fd=no
12821 support_static_sd=no
12822 support_static_dir=no
12823 support_static_cons=no
12825 build_client_only=no
12833 # -------------------------------------------
12834 # gnome (default off)
12835 # -------------------------------------------
12836 # Check whether --enable-gnome or --disable-gnome was given.
12837 if test "${enable_gnome+set}" = set; then
12838 enableval="$enable_gnome"
12839 if test x$enableval = xyes; then
12845 if test x$support_gnome = xyes; then
12846 abc=`$PKGCONFIG --exists libgnomeui-2.0`
12848 if test $pkg = 0; then
12849 GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
12850 GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
12851 GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
12852 GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
12857 GNOME_DIR=src/gnome2-console
12858 gnome_version="Version 2.x"
12860 { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
12861 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
12862 { (exit 1); exit 1; }; }
12867 # -------------------------------------------
12868 # bat (default off)
12869 # -------------------------------------------
12870 # Check whether --enable-bat or --disable-bat was given.
12871 if test "${enable_bat+set}" = set; then
12872 enableval="$enable_bat"
12873 if test x$enableval = xyes; then
12875 cat >>confdefs.h <<\_ACEOF
12884 if test x$support_bat = xyes; then
12885 abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
12887 if test $pkg = 0; then
12888 BAT_DIR=src/qt-console
12890 { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
12891 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
12892 { (exit 1); exit 1; }; }
12897 # If bat is enabled, we need the qwt library
12901 if test x$support_bat = xyes; then
12902 echo "$as_me:$LINENO: checking for qwt support" >&5
12903 echo $ECHO_N "checking for qwt support... $ECHO_C" >&6
12905 # Check whether --with-qwt or --without-qwt was given.
12906 if test "${with_qwt+set}" = set; then
12907 withval="$with_qwt"
12909 case "$with_qwt" in
12913 if test -f ${with_qwt}/include/qwt.h; then
12914 QWT_INC="${with_qwt}/include"
12915 QWT_LDFLAGS="-L${with_qwt}/lib"
12923 # Search in standard places, or --with-qwt not specified
12925 if test x$QWT_INC = x; then
12926 for root in /usr /usr/local; do
12927 for ver in qwt qwt5 qwt-qt4; do
12928 if test -f ${root}/include/${ver}/qwt.h; then
12929 QWT_INC="${root}/include/${ver}"
12930 if test -d ${root}/lib64/; then
12931 QWT_LDFLAGS="-L${root}/lib64"
12933 QWT_LDFLAGS="-L${root}/lib"
12941 if test x$QWT_INC = x; then
12942 echo "$as_me:$LINENO: result: no" >&5
12943 echo "${ECHO_T}no" >&6
12944 { { echo "$as_me:$LINENO: error: Unable to find qwt package needed by bat" >&5
12945 echo "$as_me: error: Unable to find qwt package needed by bat" >&2;}
12946 { (exit 1); exit 1; }; }
12950 echo "$as_me:$LINENO: result: yes" >&5
12951 echo "${ECHO_T}yes" >&6
12960 # -------------------------------------------
12961 # bwx-console (default off)
12962 # -------------------------------------------
12963 # Check whether --enable-bwx-console or --disable-bwx-console was given.
12964 if test "${enable_bwx_console+set}" = set; then
12965 enableval="$enable_bwx_console"
12966 if test x$enableval = xyes; then
12967 support_wx_console=yes
12972 if test x$support_wx_console = xyes; then
12973 abc=`$WXCONFIG $WXFLAGS --cppflags`
12975 if test $pkg = 0; then
12976 wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
12977 WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
12978 WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
12982 WX_DIR=src/wx-console
12985 echo "wx-config program not found. bwx-console disabled."
12987 support_wx_console=no
12993 # -------------------------------------------
12994 # tray-monitor (default off)
12995 # -------------------------------------------
12996 # Check whether --enable-tray-monitor or --disable-tray-monitor was given.
12997 if test "${enable_tray_monitor+set}" = set; then
12998 enableval="$enable_tray_monitor"
12999 if test x$enableval = xyes; then
13000 support_tray_monitor=yes
13005 if test x$support_tray_monitor = xyes; then
13006 abc=`$PKGCONFIG --exists gtk+-2.0`
13008 if test $pkg = 0; then
13009 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
13010 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
13013 TRAY_MONITOR_DIR=src/tray-monitor
13014 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
13016 if test $pkg = 0; then
13018 cat >>confdefs.h <<\_ACEOF
13019 #define HAVE_GTK_2_4 1
13027 # -------------------------------------------
13028 # smartalloc (default off)
13029 # -------------------------------------------
13030 # Check whether --enable-smartalloc or --disable-smartalloc was given.
13031 if test "${enable_smartalloc+set}" = set; then
13032 enableval="$enable_smartalloc"
13033 if test x$enableval = xno; then
13034 support_smartalloc=no
13038 if test x$support_smartalloc = xyes; then
13040 cat >>confdefs.h <<\_ACEOF
13041 #define SMARTALLOC 1
13046 # -------------------------------------------
13047 # static-tools (default off)
13048 # -------------------------------------------
13049 # Check whether --enable-static-tools or --disable-static-tools was given.
13050 if test "${enable_static_tools+set}" = set; then
13051 enableval="$enable_static_tools"
13052 if test x$enableval = xyes; then
13053 support_static_tools=yes
13058 if test x$support_static_tools = xyes; then
13059 TTOOL_LDFLAGS="-static"
13063 # -------------------------------------------
13064 # static-fd (default off)
13065 # -------------------------------------------
13066 # Check whether --enable-static-fd or --disable-static-fd was given.
13067 if test "${enable_static_fd+set}" = set; then
13068 enableval="$enable_static_fd"
13069 if test x$enableval = xyes; then
13070 support_static_fd=yes
13075 if test x$support_static_fd = xyes; then
13076 STATIC_FD="static-bacula-fd"
13080 # -------------------------------------------
13081 # static-sd (default off)
13082 # -------------------------------------------
13083 # Check whether --enable-static-sd or --disable-static-sd was given.
13084 if test "${enable_static_sd+set}" = set; then
13085 enableval="$enable_static_sd"
13086 if test x$enableval = xyes; then
13087 support_static_sd=yes
13092 if test x$support_static_sd = xyes; then
13093 STATIC_SD="static-bacula-sd"
13097 # -------------------------------------------
13098 # static-dir (default off)
13099 # -------------------------------------------
13100 # Check whether --enable-static-dir or --disable-static-dir was given.
13101 if test "${enable_static_dir+set}" = set; then
13102 enableval="$enable_static_dir"
13103 if test x$enableval = xyes; then
13104 support_static_dir=yes
13109 if test x$support_static_dir = xyes; then
13110 STATIC_DIR="static-bacula-dir"
13114 # -------------------------------------------
13115 # static-cons (default off)
13116 # -------------------------------------------
13117 # Check whether --enable-static-cons or --disable-static-cons was given.
13118 if test "${enable_static_cons+set}" = set; then
13119 enableval="$enable_static_cons"
13120 if test x$enableval = xyes; then
13121 support_static_cons=yes
13128 if test x$support_static_cons = xyes; then
13129 STATIC_CONS="static-bconsole"
13130 STATIC_GNOME_CONS="static-bgnome-console"
13131 STATIC_WX_CONS="static-bwx-console"
13137 # -------------------------------------------
13138 # client_only (default off)
13139 # -------------------------------------------
13140 # Check whether --enable-client-only or --disable-client-only was given.
13141 if test "${enable_client_only+set}" = set; then
13142 enableval="$enable_client_only"
13143 if test x$enableval = xyes; then
13144 build_client_only=yes
13149 if test x$build_client_only = xno; then
13156 # -------------------------------------------
13157 # director (default on)
13158 # -------------------------------------------
13159 # Check whether --enable-build-dird or --disable-build-dird was given.
13160 if test "${enable_build_dird+set}" = set; then
13161 enableval="$enable_build_dird"
13162 if test x$enableval = xno; then
13166 if test x$build_dird = xyes; then
13167 DIRD_DIR="src/dird"
13168 DIR_TOOLS="DIRTOOLS"
13171 DIR_TOOLS="NODIRTOOLS"
13176 # -------------------------------------------
13177 # stored (default on)
13178 # -------------------------------------------
13179 # Check whether --enable-build-stored or --disable-build-stored was given.
13180 if test "${enable_build_stored+set}" = set; then
13181 enableval="$enable_build_stored"
13182 if test x$enableval = xno; then
13186 if test x$build_stored = xyes; then
13187 STORED_DIR="src/stored"
13193 # ---------------------------------------------------
13194 # Check for conio (Bacula readline substitute)(
13195 # ---------------------------------------------------
13196 # this allows you to turn it completely off
13197 # Check whether --enable-conio or --disable-conio was given.
13198 if test "${enable_conio+set}" = set; then
13199 enableval="$enable_conio"
13200 if test x$enableval = xno; then
13207 # ---------------------------------------------------
13208 # Check for IPv6 support
13209 # ---------------------------------------------------
13210 # this allows you to turn it completely off
13212 # Check whether --enable-ipv6 or --disable-ipv6 was given.
13213 if test "${enable_ipv6+set}" = set; then
13214 enableval="$enable_ipv6"
13215 if test x$enableval = xno; then
13221 if test x$support_ipv6 = xyes; then
13222 cat >conftest.$ac_ext <<_ACEOF
13225 cat confdefs.h >>conftest.$ac_ext
13226 cat >>conftest.$ac_ext <<_ACEOF
13227 /* end confdefs.h. */
13228 #include <sys/types.h>
13229 #include <sys/socket.h>
13230 #include <netinet/in.h>
13234 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
13239 rm -f conftest.$ac_objext conftest$ac_exeext
13240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13241 (eval $ac_link) 2>conftest.er1
13243 grep -v '^ *+' conftest.er1 >conftest.err
13245 cat conftest.err >&5
13246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247 (exit $ac_status); } &&
13248 { ac_try='test -z "$ac_c_werror_flag"
13249 || test ! -s conftest.err'
13250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13251 (eval $ac_try) 2>&5
13253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13254 (exit $ac_status); }; } &&
13255 { ac_try='test -s conftest$ac_exeext'
13256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13257 (eval $ac_try) 2>&5
13259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13260 (exit $ac_status); }; }; then
13263 echo "$as_me: failed program was:" >&5
13264 sed 's/^/| /' conftest.$ac_ext >&5
13268 rm -f conftest.err conftest.$ac_objext \
13269 conftest$ac_exeext conftest.$ac_ext
13272 if test x$support_ipv6 = xyes; then
13274 cat >>confdefs.h <<\_ACEOF
13275 #define HAVE_IPV6 1
13283 if test x$support_conio = xyes; then
13284 if test "${ac_cv_header_termcap_h+set}" = set; then
13285 echo "$as_me:$LINENO: checking for termcap.h" >&5
13286 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
13287 if test "${ac_cv_header_termcap_h+set}" = set; then
13288 echo $ECHO_N "(cached) $ECHO_C" >&6
13290 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
13291 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
13293 # Is the header compilable?
13294 echo "$as_me:$LINENO: checking termcap.h usability" >&5
13295 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
13296 cat >conftest.$ac_ext <<_ACEOF
13299 cat confdefs.h >>conftest.$ac_ext
13300 cat >>conftest.$ac_ext <<_ACEOF
13301 /* end confdefs.h. */
13302 $ac_includes_default
13303 #include <termcap.h>
13305 rm -f conftest.$ac_objext
13306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13307 (eval $ac_compile) 2>conftest.er1
13309 grep -v '^ *+' conftest.er1 >conftest.err
13311 cat conftest.err >&5
13312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13313 (exit $ac_status); } &&
13314 { ac_try='test -z "$ac_c_werror_flag"
13315 || test ! -s conftest.err'
13316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13317 (eval $ac_try) 2>&5
13319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13320 (exit $ac_status); }; } &&
13321 { ac_try='test -s conftest.$ac_objext'
13322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13323 (eval $ac_try) 2>&5
13325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13326 (exit $ac_status); }; }; then
13327 ac_header_compiler=yes
13329 echo "$as_me: failed program was:" >&5
13330 sed 's/^/| /' conftest.$ac_ext >&5
13332 ac_header_compiler=no
13334 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13335 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13336 echo "${ECHO_T}$ac_header_compiler" >&6
13338 # Is the header present?
13339 echo "$as_me:$LINENO: checking termcap.h presence" >&5
13340 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
13341 cat >conftest.$ac_ext <<_ACEOF
13344 cat confdefs.h >>conftest.$ac_ext
13345 cat >>conftest.$ac_ext <<_ACEOF
13346 /* end confdefs.h. */
13347 #include <termcap.h>
13349 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13350 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13352 grep -v '^ *+' conftest.er1 >conftest.err
13354 cat conftest.err >&5
13355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13356 (exit $ac_status); } >/dev/null; then
13357 if test -s conftest.err; then
13358 ac_cpp_err=$ac_c_preproc_warn_flag
13359 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13366 if test -z "$ac_cpp_err"; then
13367 ac_header_preproc=yes
13369 echo "$as_me: failed program was:" >&5
13370 sed 's/^/| /' conftest.$ac_ext >&5
13372 ac_header_preproc=no
13374 rm -f conftest.err conftest.$ac_ext
13375 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13376 echo "${ECHO_T}$ac_header_preproc" >&6
13378 # So? What about this header?
13379 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13381 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
13382 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13383 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
13384 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
13385 ac_header_preproc=yes
13388 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
13389 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
13390 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
13391 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
13392 { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
13393 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
13394 { echo "$as_me:$LINENO: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&5
13395 echo "$as_me: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
13396 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
13397 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
13398 { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
13399 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
13402 ## ------------------------------------------ ##
13403 ## Report this to the AC_PACKAGE_NAME lists. ##
13404 ## ------------------------------------------ ##
13407 sed "s/^/$as_me: WARNING: /" >&2
13410 echo "$as_me:$LINENO: checking for termcap.h" >&5
13411 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
13412 if test "${ac_cv_header_termcap_h+set}" = set; then
13413 echo $ECHO_N "(cached) $ECHO_C" >&6
13415 ac_cv_header_termcap_h=$ac_header_preproc
13417 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
13418 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
13421 if test $ac_cv_header_termcap_h = yes; then
13422 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
13423 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
13424 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
13425 echo $ECHO_N "(cached) $ECHO_C" >&6
13427 ac_check_lib_save_LIBS=$LIBS
13428 LIBS="-ltermcap $LIBS"
13429 cat >conftest.$ac_ext <<_ACEOF
13432 cat confdefs.h >>conftest.$ac_ext
13433 cat >>conftest.$ac_ext <<_ACEOF
13434 /* end confdefs.h. */
13436 /* Override any gcc2 internal prototype to avoid an error. */
13440 /* We use char because int might match the return type of a gcc2
13441 builtin and then its argument prototype would still apply. */
13451 rm -f conftest.$ac_objext conftest$ac_exeext
13452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13453 (eval $ac_link) 2>conftest.er1
13455 grep -v '^ *+' conftest.er1 >conftest.err
13457 cat conftest.err >&5
13458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13459 (exit $ac_status); } &&
13460 { ac_try='test -z "$ac_c_werror_flag"
13461 || test ! -s conftest.err'
13462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13463 (eval $ac_try) 2>&5
13465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13466 (exit $ac_status); }; } &&
13467 { ac_try='test -s conftest$ac_exeext'
13468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13469 (eval $ac_try) 2>&5
13471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13472 (exit $ac_status); }; }; then
13473 ac_cv_lib_termcap_tgetent=yes
13475 echo "$as_me: failed program was:" >&5
13476 sed 's/^/| /' conftest.$ac_ext >&5
13478 ac_cv_lib_termcap_tgetent=no
13480 rm -f conftest.err conftest.$ac_objext \
13481 conftest$ac_exeext conftest.$ac_ext
13482 LIBS=$ac_check_lib_save_LIBS
13484 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
13485 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
13486 if test $ac_cv_lib_termcap_tgetent = yes; then
13487 CONS_LIBS="-ltermcap"
13491 support_readline=no
13493 cat >>confdefs.h <<\_ACEOF
13494 #define HAVE_CONIO 1
13499 echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
13500 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
13501 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
13502 echo $ECHO_N "(cached) $ECHO_C" >&6
13504 ac_check_lib_save_LIBS=$LIBS
13505 LIBS="-lncurses $LIBS"
13506 cat >conftest.$ac_ext <<_ACEOF
13509 cat confdefs.h >>conftest.$ac_ext
13510 cat >>conftest.$ac_ext <<_ACEOF
13511 /* end confdefs.h. */
13513 /* Override any gcc2 internal prototype to avoid an error. */
13517 /* We use char because int might match the return type of a gcc2
13518 builtin and then its argument prototype would still apply. */
13528 rm -f conftest.$ac_objext conftest$ac_exeext
13529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13530 (eval $ac_link) 2>conftest.er1
13532 grep -v '^ *+' conftest.er1 >conftest.err
13534 cat conftest.err >&5
13535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13536 (exit $ac_status); } &&
13537 { ac_try='test -z "$ac_c_werror_flag"
13538 || test ! -s conftest.err'
13539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13540 (eval $ac_try) 2>&5
13542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13543 (exit $ac_status); }; } &&
13544 { ac_try='test -s conftest$ac_exeext'
13545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13546 (eval $ac_try) 2>&5
13548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13549 (exit $ac_status); }; }; then
13550 ac_cv_lib_ncurses_tgetent=yes
13552 echo "$as_me: failed program was:" >&5
13553 sed 's/^/| /' conftest.$ac_ext >&5
13555 ac_cv_lib_ncurses_tgetent=no
13557 rm -f conftest.err conftest.$ac_objext \
13558 conftest$ac_exeext conftest.$ac_ext
13559 LIBS=$ac_check_lib_save_LIBS
13561 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
13562 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
13563 if test $ac_cv_lib_ncurses_tgetent = yes; then
13564 CONS_LIBS="-lncurses"
13568 support_readline=no
13570 cat >>confdefs.h <<\_ACEOF
13571 #define HAVE_CONIO 1
13584 for ac_header in curses.h
13586 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13587 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13588 echo "$as_me:$LINENO: checking for $ac_header" >&5
13589 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13590 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13591 echo $ECHO_N "(cached) $ECHO_C" >&6
13593 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13594 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13596 # Is the header compilable?
13597 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13598 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13599 cat >conftest.$ac_ext <<_ACEOF
13602 cat confdefs.h >>conftest.$ac_ext
13603 cat >>conftest.$ac_ext <<_ACEOF
13604 /* end confdefs.h. */
13605 $ac_includes_default
13606 #include <$ac_header>
13608 rm -f conftest.$ac_objext
13609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13610 (eval $ac_compile) 2>conftest.er1
13612 grep -v '^ *+' conftest.er1 >conftest.err
13614 cat conftest.err >&5
13615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13616 (exit $ac_status); } &&
13617 { ac_try='test -z "$ac_c_werror_flag"
13618 || test ! -s conftest.err'
13619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13620 (eval $ac_try) 2>&5
13622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13623 (exit $ac_status); }; } &&
13624 { ac_try='test -s conftest.$ac_objext'
13625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13626 (eval $ac_try) 2>&5
13628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13629 (exit $ac_status); }; }; then
13630 ac_header_compiler=yes
13632 echo "$as_me: failed program was:" >&5
13633 sed 's/^/| /' conftest.$ac_ext >&5
13635 ac_header_compiler=no
13637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13638 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13639 echo "${ECHO_T}$ac_header_compiler" >&6
13641 # Is the header present?
13642 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13643 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13644 cat >conftest.$ac_ext <<_ACEOF
13647 cat confdefs.h >>conftest.$ac_ext
13648 cat >>conftest.$ac_ext <<_ACEOF
13649 /* end confdefs.h. */
13650 #include <$ac_header>
13652 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13653 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13655 grep -v '^ *+' conftest.er1 >conftest.err
13657 cat conftest.err >&5
13658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13659 (exit $ac_status); } >/dev/null; then
13660 if test -s conftest.err; then
13661 ac_cpp_err=$ac_c_preproc_warn_flag
13662 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13669 if test -z "$ac_cpp_err"; then
13670 ac_header_preproc=yes
13672 echo "$as_me: failed program was:" >&5
13673 sed 's/^/| /' conftest.$ac_ext >&5
13675 ac_header_preproc=no
13677 rm -f conftest.err conftest.$ac_ext
13678 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13679 echo "${ECHO_T}$ac_header_preproc" >&6
13681 # So? What about this header?
13682 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13684 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13685 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13686 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13687 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13688 ac_header_preproc=yes
13691 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13692 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13693 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13694 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13695 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13696 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13697 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13698 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13699 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13700 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13701 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13702 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13705 ## ------------------------------------------ ##
13706 ## Report this to the AC_PACKAGE_NAME lists. ##
13707 ## ------------------------------------------ ##
13710 sed "s/^/$as_me: WARNING: /" >&2
13713 echo "$as_me:$LINENO: checking for $ac_header" >&5
13714 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13715 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13716 echo $ECHO_N "(cached) $ECHO_C" >&6
13718 eval "$as_ac_Header=\$ac_header_preproc"
13720 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13721 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13724 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13725 cat >>confdefs.h <<_ACEOF
13726 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13733 echo "$as_me:$LINENO: checking for term.h" >&5
13734 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
13735 if test "${ac_cv_header_term_h+set}" = set; then
13736 echo $ECHO_N "(cached) $ECHO_C" >&6
13738 cat >conftest.$ac_ext <<_ACEOF
13741 cat confdefs.h >>conftest.$ac_ext
13742 cat >>conftest.$ac_ext <<_ACEOF
13743 /* end confdefs.h. */
13745 #include <curses.h>
13751 rm -f conftest.$ac_objext
13752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13753 (eval $ac_compile) 2>conftest.er1
13755 grep -v '^ *+' conftest.er1 >conftest.err
13757 cat conftest.err >&5
13758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759 (exit $ac_status); } &&
13760 { ac_try='test -z "$ac_c_werror_flag"
13761 || test ! -s conftest.err'
13762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13763 (eval $ac_try) 2>&5
13765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13766 (exit $ac_status); }; } &&
13767 { ac_try='test -s conftest.$ac_objext'
13768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13769 (eval $ac_try) 2>&5
13771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13772 (exit $ac_status); }; }; then
13773 ac_cv_header_term_h=yes
13775 echo "$as_me: failed program was:" >&5
13776 sed 's/^/| /' conftest.$ac_ext >&5
13778 ac_cv_header_term_h=no
13780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13782 echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
13783 echo "${ECHO_T}$ac_cv_header_term_h" >&6
13784 if test $ac_cv_header_term_h = yes; then
13785 echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
13786 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
13787 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
13788 echo $ECHO_N "(cached) $ECHO_C" >&6
13790 ac_check_lib_save_LIBS=$LIBS
13791 LIBS="-lcurses $LIBS"
13792 cat >conftest.$ac_ext <<_ACEOF
13795 cat confdefs.h >>conftest.$ac_ext
13796 cat >>conftest.$ac_ext <<_ACEOF
13797 /* end confdefs.h. */
13799 /* Override any gcc2 internal prototype to avoid an error. */
13803 /* We use char because int might match the return type of a gcc2
13804 builtin and then its argument prototype would still apply. */
13814 rm -f conftest.$ac_objext conftest$ac_exeext
13815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13816 (eval $ac_link) 2>conftest.er1
13818 grep -v '^ *+' conftest.er1 >conftest.err
13820 cat conftest.err >&5
13821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822 (exit $ac_status); } &&
13823 { ac_try='test -z "$ac_c_werror_flag"
13824 || test ! -s conftest.err'
13825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13826 (eval $ac_try) 2>&5
13828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13829 (exit $ac_status); }; } &&
13830 { ac_try='test -s conftest$ac_exeext'
13831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13832 (eval $ac_try) 2>&5
13834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13835 (exit $ac_status); }; }; then
13836 ac_cv_lib_curses_tgetent=yes
13838 echo "$as_me: failed program was:" >&5
13839 sed 's/^/| /' conftest.$ac_ext >&5
13841 ac_cv_lib_curses_tgetent=no
13843 rm -f conftest.err conftest.$ac_objext \
13844 conftest$ac_exeext conftest.$ac_ext
13845 LIBS=$ac_check_lib_save_LIBS
13847 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
13848 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
13849 if test $ac_cv_lib_curses_tgetent = yes; then
13850 CONS_LIBS="-lcurses"
13854 support_readline=no
13856 cat >>confdefs.h <<\_ACEOF
13857 #define HAVE_CONIO 1
13865 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
13876 # ---------------------------------------------------
13877 # Check for readline support/directory (default off)
13878 # ---------------------------------------------------
13879 # this allows you to turn it completely off
13880 # Check whether --enable-readline or --disable-readline was given.
13881 if test "${enable_readline+set}" = set; then
13882 enableval="$enable_readline"
13883 if test x$enableval = xno; then
13884 support_readline=no
13890 if test x$support_readline = xyes; then
13892 # Check whether --with-readline or --without-readline was given.
13893 if test "${with_readline+set}" = set; then
13894 withval="$with_readline"
13896 case "$with_readline" in
13899 if test -f ${with_readline}/readline.h; then
13900 CONS_INC="-I${with_readline}"
13901 CONS_LDFLAGS="-L$with_readline"
13902 elif test -f ${with_readline}/include/readline/readline.h; then
13903 CONS_INC="-I${with_readline}/include/readline"
13904 CONS_LDFLAGS="-L${with_readline}/lib"
13905 with_readline="${with_readline}/include/readline"
13907 with_readline="/usr/include/readline"
13909 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
13910 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13911 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
13912 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
13913 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13914 echo $ECHO_N "(cached) $ECHO_C" >&6
13916 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13917 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13919 # Is the header compilable?
13920 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
13921 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
13922 cat >conftest.$ac_ext <<_ACEOF
13925 cat confdefs.h >>conftest.$ac_ext
13926 cat >>conftest.$ac_ext <<_ACEOF
13927 /* end confdefs.h. */
13928 $ac_includes_default
13929 #include <${with_readline}/readline.h>
13931 rm -f conftest.$ac_objext
13932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13933 (eval $ac_compile) 2>conftest.er1
13935 grep -v '^ *+' conftest.er1 >conftest.err
13937 cat conftest.err >&5
13938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13939 (exit $ac_status); } &&
13940 { ac_try='test -z "$ac_c_werror_flag"
13941 || test ! -s conftest.err'
13942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13943 (eval $ac_try) 2>&5
13945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13946 (exit $ac_status); }; } &&
13947 { ac_try='test -s conftest.$ac_objext'
13948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13949 (eval $ac_try) 2>&5
13951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13952 (exit $ac_status); }; }; then
13953 ac_header_compiler=yes
13955 echo "$as_me: failed program was:" >&5
13956 sed 's/^/| /' conftest.$ac_ext >&5
13958 ac_header_compiler=no
13960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13961 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13962 echo "${ECHO_T}$ac_header_compiler" >&6
13964 # Is the header present?
13965 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
13966 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
13967 cat >conftest.$ac_ext <<_ACEOF
13970 cat confdefs.h >>conftest.$ac_ext
13971 cat >>conftest.$ac_ext <<_ACEOF
13972 /* end confdefs.h. */
13973 #include <${with_readline}/readline.h>
13975 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13976 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13978 grep -v '^ *+' conftest.er1 >conftest.err
13980 cat conftest.err >&5
13981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13982 (exit $ac_status); } >/dev/null; then
13983 if test -s conftest.err; then
13984 ac_cpp_err=$ac_c_preproc_warn_flag
13985 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13992 if test -z "$ac_cpp_err"; then
13993 ac_header_preproc=yes
13995 echo "$as_me: failed program was:" >&5
13996 sed 's/^/| /' conftest.$ac_ext >&5
13998 ac_header_preproc=no
14000 rm -f conftest.err conftest.$ac_ext
14001 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14002 echo "${ECHO_T}$ac_header_preproc" >&6
14004 # So? What about this header?
14005 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14007 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14008 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14009 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
14010 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
14011 ac_header_preproc=yes
14014 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
14015 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
14016 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
14017 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
14018 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
14019 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
14020 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&5
14021 echo "$as_me: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
14022 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
14023 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
14024 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
14025 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
14028 ## ------------------------------------------ ##
14029 ## Report this to the AC_PACKAGE_NAME lists. ##
14030 ## ------------------------------------------ ##
14033 sed "s/^/$as_me: WARNING: /" >&2
14036 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
14037 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
14038 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14039 echo $ECHO_N "(cached) $ECHO_C" >&6
14041 eval "$as_ac_Header=\$ac_header_preproc"
14043 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14044 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14047 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14049 cat >>confdefs.h <<\_ACEOF
14050 #define HAVE_READLINE 1
14053 CONS_LIBS="-lreadline -lhistory -ltermcap"
14058 echo "readline.h not found. readline turned off ..."
14070 # check for standard readline library
14071 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14072 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
14073 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
14074 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14075 echo $ECHO_N "(cached) $ECHO_C" >&6
14077 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
14078 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
14080 # Is the header compilable?
14081 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
14082 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
14083 cat >conftest.$ac_ext <<_ACEOF
14086 cat confdefs.h >>conftest.$ac_ext
14087 cat >>conftest.$ac_ext <<_ACEOF
14088 /* end confdefs.h. */
14089 $ac_includes_default
14090 #include </usr/include/readline/readline.h>
14092 rm -f conftest.$ac_objext
14093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14094 (eval $ac_compile) 2>conftest.er1
14096 grep -v '^ *+' conftest.er1 >conftest.err
14098 cat conftest.err >&5
14099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14100 (exit $ac_status); } &&
14101 { ac_try='test -z "$ac_c_werror_flag"
14102 || test ! -s conftest.err'
14103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14104 (eval $ac_try) 2>&5
14106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107 (exit $ac_status); }; } &&
14108 { ac_try='test -s conftest.$ac_objext'
14109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14110 (eval $ac_try) 2>&5
14112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14113 (exit $ac_status); }; }; then
14114 ac_header_compiler=yes
14116 echo "$as_me: failed program was:" >&5
14117 sed 's/^/| /' conftest.$ac_ext >&5
14119 ac_header_compiler=no
14121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14122 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14123 echo "${ECHO_T}$ac_header_compiler" >&6
14125 # Is the header present?
14126 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
14127 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
14128 cat >conftest.$ac_ext <<_ACEOF
14131 cat confdefs.h >>conftest.$ac_ext
14132 cat >>conftest.$ac_ext <<_ACEOF
14133 /* end confdefs.h. */
14134 #include </usr/include/readline/readline.h>
14136 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14137 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14139 grep -v '^ *+' conftest.er1 >conftest.err
14141 cat conftest.err >&5
14142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14143 (exit $ac_status); } >/dev/null; then
14144 if test -s conftest.err; then
14145 ac_cpp_err=$ac_c_preproc_warn_flag
14146 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14153 if test -z "$ac_cpp_err"; then
14154 ac_header_preproc=yes
14156 echo "$as_me: failed program was:" >&5
14157 sed 's/^/| /' conftest.$ac_ext >&5
14159 ac_header_preproc=no
14161 rm -f conftest.err conftest.$ac_ext
14162 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14163 echo "${ECHO_T}$ac_header_preproc" >&6
14165 # So? What about this header?
14166 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14168 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14169 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14170 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
14171 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
14172 ac_header_preproc=yes
14175 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
14176 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
14177 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
14178 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
14179 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
14180 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
14181 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
14182 echo "$as_me: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
14183 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
14184 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
14185 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
14186 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
14189 ## ------------------------------------------ ##
14190 ## Report this to the AC_PACKAGE_NAME lists. ##
14191 ## ------------------------------------------ ##
14194 sed "s/^/$as_me: WARNING: /" >&2
14197 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
14198 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
14199 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14200 echo $ECHO_N "(cached) $ECHO_C" >&6
14202 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
14204 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
14205 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
14208 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
14210 cat >>confdefs.h <<\_ACEOF
14211 #define HAVE_READLINE 1
14215 CONS_INC="-I/usr/include/readline"
14216 CONS_LIBS="-lreadline -ltermcap"
14220 # Did not find standard library, so try Bacula's default
14221 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
14222 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14223 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14224 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
14225 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14226 echo $ECHO_N "(cached) $ECHO_C" >&6
14228 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14229 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14231 # Is the header compilable?
14232 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
14233 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
14234 cat >conftest.$ac_ext <<_ACEOF
14237 cat confdefs.h >>conftest.$ac_ext
14238 cat >>conftest.$ac_ext <<_ACEOF
14239 /* end confdefs.h. */
14240 $ac_includes_default
14241 #include <${TOP_DIR}/depkgs/readline/readline.h>
14243 rm -f conftest.$ac_objext
14244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14245 (eval $ac_compile) 2>conftest.er1
14247 grep -v '^ *+' conftest.er1 >conftest.err
14249 cat conftest.err >&5
14250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14251 (exit $ac_status); } &&
14252 { ac_try='test -z "$ac_c_werror_flag"
14253 || test ! -s conftest.err'
14254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14255 (eval $ac_try) 2>&5
14257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14258 (exit $ac_status); }; } &&
14259 { ac_try='test -s conftest.$ac_objext'
14260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14261 (eval $ac_try) 2>&5
14263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14264 (exit $ac_status); }; }; then
14265 ac_header_compiler=yes
14267 echo "$as_me: failed program was:" >&5
14268 sed 's/^/| /' conftest.$ac_ext >&5
14270 ac_header_compiler=no
14272 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14273 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14274 echo "${ECHO_T}$ac_header_compiler" >&6
14276 # Is the header present?
14277 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
14278 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
14279 cat >conftest.$ac_ext <<_ACEOF
14282 cat confdefs.h >>conftest.$ac_ext
14283 cat >>conftest.$ac_ext <<_ACEOF
14284 /* end confdefs.h. */
14285 #include <${TOP_DIR}/depkgs/readline/readline.h>
14287 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14288 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14290 grep -v '^ *+' conftest.er1 >conftest.err
14292 cat conftest.err >&5
14293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14294 (exit $ac_status); } >/dev/null; then
14295 if test -s conftest.err; then
14296 ac_cpp_err=$ac_c_preproc_warn_flag
14297 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14304 if test -z "$ac_cpp_err"; then
14305 ac_header_preproc=yes
14307 echo "$as_me: failed program was:" >&5
14308 sed 's/^/| /' conftest.$ac_ext >&5
14310 ac_header_preproc=no
14312 rm -f conftest.err conftest.$ac_ext
14313 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14314 echo "${ECHO_T}$ac_header_preproc" >&6
14316 # So? What about this header?
14317 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14319 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14320 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14321 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
14322 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
14323 ac_header_preproc=yes
14326 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
14327 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
14328 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
14329 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
14330 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
14331 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
14332 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
14333 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
14334 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
14335 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
14336 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
14337 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
14340 ## ------------------------------------------ ##
14341 ## Report this to the AC_PACKAGE_NAME lists. ##
14342 ## ------------------------------------------ ##
14345 sed "s/^/$as_me: WARNING: /" >&2
14348 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14349 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
14350 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14351 echo $ECHO_N "(cached) $ECHO_C" >&6
14353 eval "$as_ac_Header=\$ac_header_preproc"
14355 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14356 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14359 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14361 cat >>confdefs.h <<\_ACEOF
14362 #define HAVE_READLINE 1
14366 CONS_INC="-I${TOP_DIR}/depkgs/readline"
14367 CONS_LIBS="-lreadline -lhistory -ltermcap"
14368 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
14369 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
14373 echo "readline.h not found. readline turned off ..."
14399 # Minimal stuff for readline Makefile configuration
14402 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14403 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
14404 if test "${ac_cv_header_stat_broken+set}" = set; then
14405 echo $ECHO_N "(cached) $ECHO_C" >&6
14407 cat >conftest.$ac_ext <<_ACEOF
14410 cat confdefs.h >>conftest.$ac_ext
14411 cat >>conftest.$ac_ext <<_ACEOF
14412 /* end confdefs.h. */
14413 #include <sys/types.h>
14414 #include <sys/stat.h>
14416 #if defined(S_ISBLK) && defined(S_IFDIR)
14417 # if S_ISBLK (S_IFDIR)
14422 #if defined(S_ISBLK) && defined(S_IFCHR)
14423 # if S_ISBLK (S_IFCHR)
14428 #if defined(S_ISLNK) && defined(S_IFREG)
14429 # if S_ISLNK (S_IFREG)
14434 #if defined(S_ISSOCK) && defined(S_IFREG)
14435 # if S_ISSOCK (S_IFREG)
14441 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14442 $EGREP "You lose" >/dev/null 2>&1; then
14443 ac_cv_header_stat_broken=yes
14445 ac_cv_header_stat_broken=no
14450 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14451 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
14452 if test $ac_cv_header_stat_broken = yes; then
14454 cat >>confdefs.h <<\_ACEOF
14455 #define STAT_MACROS_BROKEN 1
14465 ac_header_dirent=no
14466 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14467 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14468 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14469 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
14470 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14471 echo $ECHO_N "(cached) $ECHO_C" >&6
14473 cat >conftest.$ac_ext <<_ACEOF
14476 cat confdefs.h >>conftest.$ac_ext
14477 cat >>conftest.$ac_ext <<_ACEOF
14478 /* end confdefs.h. */
14479 #include <sys/types.h>
14491 rm -f conftest.$ac_objext
14492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14493 (eval $ac_compile) 2>conftest.er1
14495 grep -v '^ *+' conftest.er1 >conftest.err
14497 cat conftest.err >&5
14498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14499 (exit $ac_status); } &&
14500 { ac_try='test -z "$ac_c_werror_flag"
14501 || test ! -s conftest.err'
14502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14503 (eval $ac_try) 2>&5
14505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14506 (exit $ac_status); }; } &&
14507 { ac_try='test -s conftest.$ac_objext'
14508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14509 (eval $ac_try) 2>&5
14511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14512 (exit $ac_status); }; }; then
14513 eval "$as_ac_Header=yes"
14515 echo "$as_me: failed program was:" >&5
14516 sed 's/^/| /' conftest.$ac_ext >&5
14518 eval "$as_ac_Header=no"
14520 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14522 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14523 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14524 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14525 cat >>confdefs.h <<_ACEOF
14526 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14529 ac_header_dirent=$ac_hdr; break
14533 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14534 if test $ac_header_dirent = dirent.h; then
14535 echo "$as_me:$LINENO: checking for library containing opendir" >&5
14536 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
14537 if test "${ac_cv_search_opendir+set}" = set; then
14538 echo $ECHO_N "(cached) $ECHO_C" >&6
14540 ac_func_search_save_LIBS=$LIBS
14541 ac_cv_search_opendir=no
14542 cat >conftest.$ac_ext <<_ACEOF
14545 cat confdefs.h >>conftest.$ac_ext
14546 cat >>conftest.$ac_ext <<_ACEOF
14547 /* end confdefs.h. */
14549 /* Override any gcc2 internal prototype to avoid an error. */
14553 /* We use char because int might match the return type of a gcc2
14554 builtin and then its argument prototype would still apply. */
14564 rm -f conftest.$ac_objext conftest$ac_exeext
14565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14566 (eval $ac_link) 2>conftest.er1
14568 grep -v '^ *+' conftest.er1 >conftest.err
14570 cat conftest.err >&5
14571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14572 (exit $ac_status); } &&
14573 { ac_try='test -z "$ac_c_werror_flag"
14574 || test ! -s conftest.err'
14575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14576 (eval $ac_try) 2>&5
14578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14579 (exit $ac_status); }; } &&
14580 { ac_try='test -s conftest$ac_exeext'
14581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14582 (eval $ac_try) 2>&5
14584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14585 (exit $ac_status); }; }; then
14586 ac_cv_search_opendir="none required"
14588 echo "$as_me: failed program was:" >&5
14589 sed 's/^/| /' conftest.$ac_ext >&5
14592 rm -f conftest.err conftest.$ac_objext \
14593 conftest$ac_exeext conftest.$ac_ext
14594 if test "$ac_cv_search_opendir" = no; then
14595 for ac_lib in dir; do
14596 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14597 cat >conftest.$ac_ext <<_ACEOF
14600 cat confdefs.h >>conftest.$ac_ext
14601 cat >>conftest.$ac_ext <<_ACEOF
14602 /* end confdefs.h. */
14604 /* Override any gcc2 internal prototype to avoid an error. */
14608 /* We use char because int might match the return type of a gcc2
14609 builtin and then its argument prototype would still apply. */
14619 rm -f conftest.$ac_objext conftest$ac_exeext
14620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14621 (eval $ac_link) 2>conftest.er1
14623 grep -v '^ *+' conftest.er1 >conftest.err
14625 cat conftest.err >&5
14626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14627 (exit $ac_status); } &&
14628 { ac_try='test -z "$ac_c_werror_flag"
14629 || test ! -s conftest.err'
14630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14631 (eval $ac_try) 2>&5
14633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14634 (exit $ac_status); }; } &&
14635 { ac_try='test -s conftest$ac_exeext'
14636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14637 (eval $ac_try) 2>&5
14639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14640 (exit $ac_status); }; }; then
14641 ac_cv_search_opendir="-l$ac_lib"
14644 echo "$as_me: failed program was:" >&5
14645 sed 's/^/| /' conftest.$ac_ext >&5
14648 rm -f conftest.err conftest.$ac_objext \
14649 conftest$ac_exeext conftest.$ac_ext
14652 LIBS=$ac_func_search_save_LIBS
14654 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14655 echo "${ECHO_T}$ac_cv_search_opendir" >&6
14656 if test "$ac_cv_search_opendir" != no; then
14657 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
14662 echo "$as_me:$LINENO: checking for library containing opendir" >&5
14663 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
14664 if test "${ac_cv_search_opendir+set}" = set; then
14665 echo $ECHO_N "(cached) $ECHO_C" >&6
14667 ac_func_search_save_LIBS=$LIBS
14668 ac_cv_search_opendir=no
14669 cat >conftest.$ac_ext <<_ACEOF
14672 cat confdefs.h >>conftest.$ac_ext
14673 cat >>conftest.$ac_ext <<_ACEOF
14674 /* end confdefs.h. */
14676 /* Override any gcc2 internal prototype to avoid an error. */
14680 /* We use char because int might match the return type of a gcc2
14681 builtin and then its argument prototype would still apply. */
14691 rm -f conftest.$ac_objext conftest$ac_exeext
14692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14693 (eval $ac_link) 2>conftest.er1
14695 grep -v '^ *+' conftest.er1 >conftest.err
14697 cat conftest.err >&5
14698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14699 (exit $ac_status); } &&
14700 { ac_try='test -z "$ac_c_werror_flag"
14701 || test ! -s conftest.err'
14702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14703 (eval $ac_try) 2>&5
14705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14706 (exit $ac_status); }; } &&
14707 { ac_try='test -s conftest$ac_exeext'
14708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14709 (eval $ac_try) 2>&5
14711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14712 (exit $ac_status); }; }; then
14713 ac_cv_search_opendir="none required"
14715 echo "$as_me: failed program was:" >&5
14716 sed 's/^/| /' conftest.$ac_ext >&5
14719 rm -f conftest.err conftest.$ac_objext \
14720 conftest$ac_exeext conftest.$ac_ext
14721 if test "$ac_cv_search_opendir" = no; then
14722 for ac_lib in x; do
14723 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14724 cat >conftest.$ac_ext <<_ACEOF
14727 cat confdefs.h >>conftest.$ac_ext
14728 cat >>conftest.$ac_ext <<_ACEOF
14729 /* end confdefs.h. */
14731 /* Override any gcc2 internal prototype to avoid an error. */
14735 /* We use char because int might match the return type of a gcc2
14736 builtin and then its argument prototype would still apply. */
14746 rm -f conftest.$ac_objext conftest$ac_exeext
14747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14748 (eval $ac_link) 2>conftest.er1
14750 grep -v '^ *+' conftest.er1 >conftest.err
14752 cat conftest.err >&5
14753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14754 (exit $ac_status); } &&
14755 { ac_try='test -z "$ac_c_werror_flag"
14756 || test ! -s conftest.err'
14757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14758 (eval $ac_try) 2>&5
14760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14761 (exit $ac_status); }; } &&
14762 { ac_try='test -s conftest$ac_exeext'
14763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14764 (eval $ac_try) 2>&5
14766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14767 (exit $ac_status); }; }; then
14768 ac_cv_search_opendir="-l$ac_lib"
14771 echo "$as_me: failed program was:" >&5
14772 sed 's/^/| /' conftest.$ac_ext >&5
14775 rm -f conftest.err conftest.$ac_objext \
14776 conftest$ac_exeext conftest.$ac_ext
14779 LIBS=$ac_func_search_save_LIBS
14781 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14782 echo "${ECHO_T}$ac_cv_search_opendir" >&6
14783 if test "$ac_cv_search_opendir" != no; then
14784 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
14797 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
14799 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14800 echo "$as_me:$LINENO: checking for $ac_func" >&5
14801 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14802 if eval "test \"\${$as_ac_var+set}\" = set"; then
14803 echo $ECHO_N "(cached) $ECHO_C" >&6
14805 cat >conftest.$ac_ext <<_ACEOF
14808 cat confdefs.h >>conftest.$ac_ext
14809 cat >>conftest.$ac_ext <<_ACEOF
14810 /* end confdefs.h. */
14811 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14812 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14813 #define $ac_func innocuous_$ac_func
14815 /* System header to define __stub macros and hopefully few prototypes,
14816 which can conflict with char $ac_func (); below.
14817 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14818 <limits.h> exists even on freestanding compilers. */
14821 # include <limits.h>
14823 # include <assert.h>
14828 /* Override any gcc2 internal prototype to avoid an error. */
14833 /* We use char because int might match the return type of a gcc2
14834 builtin and then its argument prototype would still apply. */
14836 /* The GNU C library defines this for functions which it implements
14837 to always fail with ENOSYS. Some functions are actually named
14838 something starting with __ and the normal name is an alias. */
14839 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14842 char (*f) () = $ac_func;
14851 return f != $ac_func;
14856 rm -f conftest.$ac_objext conftest$ac_exeext
14857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14858 (eval $ac_link) 2>conftest.er1
14860 grep -v '^ *+' conftest.er1 >conftest.err
14862 cat conftest.err >&5
14863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14864 (exit $ac_status); } &&
14865 { ac_try='test -z "$ac_c_werror_flag"
14866 || test ! -s conftest.err'
14867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14868 (eval $ac_try) 2>&5
14870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14871 (exit $ac_status); }; } &&
14872 { ac_try='test -s conftest$ac_exeext'
14873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14874 (eval $ac_try) 2>&5
14876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14877 (exit $ac_status); }; }; then
14878 eval "$as_ac_var=yes"
14880 echo "$as_me: failed program was:" >&5
14881 sed 's/^/| /' conftest.$ac_ext >&5
14883 eval "$as_ac_var=no"
14885 rm -f conftest.err conftest.$ac_objext \
14886 conftest$ac_exeext conftest.$ac_ext
14888 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14889 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14890 if test `eval echo '${'$as_ac_var'}'` = yes; then
14891 cat >>confdefs.h <<_ACEOF
14892 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14900 for ac_func in nanosleep nl_langinfo
14902 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14903 echo "$as_me:$LINENO: checking for $ac_func" >&5
14904 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14905 if eval "test \"\${$as_ac_var+set}\" = set"; then
14906 echo $ECHO_N "(cached) $ECHO_C" >&6
14908 cat >conftest.$ac_ext <<_ACEOF
14911 cat confdefs.h >>conftest.$ac_ext
14912 cat >>conftest.$ac_ext <<_ACEOF
14913 /* end confdefs.h. */
14914 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14915 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14916 #define $ac_func innocuous_$ac_func
14918 /* System header to define __stub macros and hopefully few prototypes,
14919 which can conflict with char $ac_func (); below.
14920 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14921 <limits.h> exists even on freestanding compilers. */
14924 # include <limits.h>
14926 # include <assert.h>
14931 /* Override any gcc2 internal prototype to avoid an error. */
14936 /* We use char because int might match the return type of a gcc2
14937 builtin and then its argument prototype would still apply. */
14939 /* The GNU C library defines this for functions which it implements
14940 to always fail with ENOSYS. Some functions are actually named
14941 something starting with __ and the normal name is an alias. */
14942 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14945 char (*f) () = $ac_func;
14954 return f != $ac_func;
14959 rm -f conftest.$ac_objext conftest$ac_exeext
14960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14961 (eval $ac_link) 2>conftest.er1
14963 grep -v '^ *+' conftest.er1 >conftest.err
14965 cat conftest.err >&5
14966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14967 (exit $ac_status); } &&
14968 { ac_try='test -z "$ac_c_werror_flag"
14969 || test ! -s conftest.err'
14970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14971 (eval $ac_try) 2>&5
14973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14974 (exit $ac_status); }; } &&
14975 { ac_try='test -s conftest$ac_exeext'
14976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14977 (eval $ac_try) 2>&5
14979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14980 (exit $ac_status); }; }; then
14981 eval "$as_ac_var=yes"
14983 echo "$as_me: failed program was:" >&5
14984 sed 's/^/| /' conftest.$ac_ext >&5
14986 eval "$as_ac_var=no"
14988 rm -f conftest.err conftest.$ac_objext \
14989 conftest$ac_exeext conftest.$ac_ext
14991 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14992 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14993 if test `eval echo '${'$as_ac_var'}'` = yes; then
14994 cat >>confdefs.h <<_ACEOF
14995 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15002 for ac_header in varargs.h
15004 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15005 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15006 echo "$as_me:$LINENO: checking for $ac_header" >&5
15007 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15008 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15009 echo $ECHO_N "(cached) $ECHO_C" >&6
15011 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15012 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15014 # Is the header compilable?
15015 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15016 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15017 cat >conftest.$ac_ext <<_ACEOF
15020 cat confdefs.h >>conftest.$ac_ext
15021 cat >>conftest.$ac_ext <<_ACEOF
15022 /* end confdefs.h. */
15023 $ac_includes_default
15024 #include <$ac_header>
15026 rm -f conftest.$ac_objext
15027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15028 (eval $ac_compile) 2>conftest.er1
15030 grep -v '^ *+' conftest.er1 >conftest.err
15032 cat conftest.err >&5
15033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15034 (exit $ac_status); } &&
15035 { ac_try='test -z "$ac_c_werror_flag"
15036 || test ! -s conftest.err'
15037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15038 (eval $ac_try) 2>&5
15040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15041 (exit $ac_status); }; } &&
15042 { ac_try='test -s conftest.$ac_objext'
15043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15044 (eval $ac_try) 2>&5
15046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15047 (exit $ac_status); }; }; then
15048 ac_header_compiler=yes
15050 echo "$as_me: failed program was:" >&5
15051 sed 's/^/| /' conftest.$ac_ext >&5
15053 ac_header_compiler=no
15055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15056 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15057 echo "${ECHO_T}$ac_header_compiler" >&6
15059 # Is the header present?
15060 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15061 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15062 cat >conftest.$ac_ext <<_ACEOF
15065 cat confdefs.h >>conftest.$ac_ext
15066 cat >>conftest.$ac_ext <<_ACEOF
15067 /* end confdefs.h. */
15068 #include <$ac_header>
15070 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15071 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15073 grep -v '^ *+' conftest.er1 >conftest.err
15075 cat conftest.err >&5
15076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15077 (exit $ac_status); } >/dev/null; then
15078 if test -s conftest.err; then
15079 ac_cpp_err=$ac_c_preproc_warn_flag
15080 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15087 if test -z "$ac_cpp_err"; then
15088 ac_header_preproc=yes
15090 echo "$as_me: failed program was:" >&5
15091 sed 's/^/| /' conftest.$ac_ext >&5
15093 ac_header_preproc=no
15095 rm -f conftest.err conftest.$ac_ext
15096 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15097 echo "${ECHO_T}$ac_header_preproc" >&6
15099 # So? What about this header?
15100 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15102 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15103 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15104 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15105 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15106 ac_header_preproc=yes
15109 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15110 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15111 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15112 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15113 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15114 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15115 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15116 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15117 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15118 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15119 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15120 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15123 ## ------------------------------------------ ##
15124 ## Report this to the AC_PACKAGE_NAME lists. ##
15125 ## ------------------------------------------ ##
15128 sed "s/^/$as_me: WARNING: /" >&2
15131 echo "$as_me:$LINENO: checking for $ac_header" >&5
15132 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15133 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15134 echo $ECHO_N "(cached) $ECHO_C" >&6
15136 eval "$as_ac_Header=\$ac_header_preproc"
15138 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15139 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15142 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15143 cat >>confdefs.h <<_ACEOF
15144 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15152 # End of readline/conio stuff
15153 # -----------------------------------------------------------------------
15155 # -----------------------------------------------------------------------
15156 # Check for Python support
15158 echo "$as_me:$LINENO: checking for Python support" >&5
15159 echo $ECHO_N "checking for Python support... $ECHO_C" >&6
15161 # Check whether --with-python or --without-python was given.
15162 if test "${with_python+set}" = set; then
15163 withval="$with_python"
15167 if test "$withval" != "no"; then
15168 if test "$withval" = "yes"; then
15169 for python_root in /usr /usr/local /usr/sfw; do
15170 for ver in python2.2 python2.3 python2.4 python2.5; do
15171 if test -f $python_root/include/${ver}/Python.h; then
15172 PYTHON_INCDIR=-I$python_root/include/${ver}
15173 if test -d $python_root/lib64/${ver}/config; then
15174 PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
15176 PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
15182 if test x$PYTHON_INCDIR = x; then
15183 if test -f $prefix/include/Python.h; then
15184 PYTHON_INCDIR=-I$prefix/include
15185 if test -d $prefix/lib64/config; then
15186 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
15188 PYTHON_LIBS="-L$prefix/lib/config -lpython"
15191 echo "$as_me:$LINENO: result: no" >&5
15192 echo "${ECHO_T}no" >&6
15193 { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
15194 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
15195 { (exit 1); exit 1; }; }
15199 if test -f $withval/Python.h; then
15200 PYTHON_INCDIR=-I$withval
15201 PYTHON_LIBS="-L$withval/config -lpython"
15202 elif test -f $withval/include/Python.h; then
15203 PYTHON_INCDIR=-I$withval/include
15204 if test -d $withval/lib64/config; then
15205 PYTHON_LIBS="-L$withval/lib64/config -lpython"
15207 PYTHON_LIBS="-L$withval/lib/config -lpython"
15209 elif test -f $withval/include/python/Python.h; then
15210 PYTHON_INCDIR=-I$withval/include/python
15211 if test -d $withval/lib64/python/config; then
15212 PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
15214 PYTHON_LIBS="-L$withval/lib/python/config -lpython"
15217 echo "$as_me:$LINENO: result: no" >&5
15218 echo "${ECHO_T}no" >&6
15219 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
15220 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
15221 { (exit 1); exit 1; }; }
15224 cat >>confdefs.h <<\_ACEOF
15225 #define HAVE_PYTHON 1
15228 echo "$as_me:$LINENO: result: yes" >&5
15229 echo "${ECHO_T}yes" >&6
15231 { echo "$as_me:$LINENO: checking for more Python libs" >&5
15232 echo "$as_me: checking for more Python libs" >&6;}
15233 saved_LIBS="$LIBS"; LIBS=
15234 echo "$as_me:$LINENO: checking for library containing shm_open" >&5
15235 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6
15236 if test "${ac_cv_search_shm_open+set}" = set; then
15237 echo $ECHO_N "(cached) $ECHO_C" >&6
15239 ac_func_search_save_LIBS=$LIBS
15240 ac_cv_search_shm_open=no
15241 cat >conftest.$ac_ext <<_ACEOF
15244 cat confdefs.h >>conftest.$ac_ext
15245 cat >>conftest.$ac_ext <<_ACEOF
15246 /* end confdefs.h. */
15248 /* Override any gcc2 internal prototype to avoid an error. */
15252 /* We use char because int might match the return type of a gcc2
15253 builtin and then its argument prototype would still apply. */
15263 rm -f conftest.$ac_objext conftest$ac_exeext
15264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15265 (eval $ac_link) 2>conftest.er1
15267 grep -v '^ *+' conftest.er1 >conftest.err
15269 cat conftest.err >&5
15270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15271 (exit $ac_status); } &&
15272 { ac_try='test -z "$ac_c_werror_flag"
15273 || test ! -s conftest.err'
15274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15275 (eval $ac_try) 2>&5
15277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15278 (exit $ac_status); }; } &&
15279 { ac_try='test -s conftest$ac_exeext'
15280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15281 (eval $ac_try) 2>&5
15283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15284 (exit $ac_status); }; }; then
15285 ac_cv_search_shm_open="none required"
15287 echo "$as_me: failed program was:" >&5
15288 sed 's/^/| /' conftest.$ac_ext >&5
15291 rm -f conftest.err conftest.$ac_objext \
15292 conftest$ac_exeext conftest.$ac_ext
15293 if test "$ac_cv_search_shm_open" = no; then
15294 for ac_lib in rt; do
15295 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15296 cat >conftest.$ac_ext <<_ACEOF
15299 cat confdefs.h >>conftest.$ac_ext
15300 cat >>conftest.$ac_ext <<_ACEOF
15301 /* end confdefs.h. */
15303 /* Override any gcc2 internal prototype to avoid an error. */
15307 /* We use char because int might match the return type of a gcc2
15308 builtin and then its argument prototype would still apply. */
15318 rm -f conftest.$ac_objext conftest$ac_exeext
15319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15320 (eval $ac_link) 2>conftest.er1
15322 grep -v '^ *+' conftest.er1 >conftest.err
15324 cat conftest.err >&5
15325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15326 (exit $ac_status); } &&
15327 { ac_try='test -z "$ac_c_werror_flag"
15328 || test ! -s conftest.err'
15329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15330 (eval $ac_try) 2>&5
15332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15333 (exit $ac_status); }; } &&
15334 { ac_try='test -s conftest$ac_exeext'
15335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15336 (eval $ac_try) 2>&5
15338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15339 (exit $ac_status); }; }; then
15340 ac_cv_search_shm_open="-l$ac_lib"
15343 echo "$as_me: failed program was:" >&5
15344 sed 's/^/| /' conftest.$ac_ext >&5
15347 rm -f conftest.err conftest.$ac_objext \
15348 conftest$ac_exeext conftest.$ac_ext
15351 LIBS=$ac_func_search_save_LIBS
15353 echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
15354 echo "${ECHO_T}$ac_cv_search_shm_open" >&6
15355 if test "$ac_cv_search_shm_open" != no; then
15356 test "$ac_cv_search_shm_open" = "none required" || LIBS="$ac_cv_search_shm_open $LIBS"
15361 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
15362 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
15363 if test "${ac_cv_lib_util_openpty+set}" = set; then
15364 echo $ECHO_N "(cached) $ECHO_C" >&6
15366 ac_check_lib_save_LIBS=$LIBS
15367 LIBS="-lutil $LIBS"
15368 cat >conftest.$ac_ext <<_ACEOF
15371 cat confdefs.h >>conftest.$ac_ext
15372 cat >>conftest.$ac_ext <<_ACEOF
15373 /* end confdefs.h. */
15375 /* Override any gcc2 internal prototype to avoid an error. */
15379 /* We use char because int might match the return type of a gcc2
15380 builtin and then its argument prototype would still apply. */
15390 rm -f conftest.$ac_objext conftest$ac_exeext
15391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15392 (eval $ac_link) 2>conftest.er1
15394 grep -v '^ *+' conftest.er1 >conftest.err
15396 cat conftest.err >&5
15397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15398 (exit $ac_status); } &&
15399 { ac_try='test -z "$ac_c_werror_flag"
15400 || test ! -s conftest.err'
15401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15402 (eval $ac_try) 2>&5
15404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15405 (exit $ac_status); }; } &&
15406 { ac_try='test -s conftest$ac_exeext'
15407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15408 (eval $ac_try) 2>&5
15410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15411 (exit $ac_status); }; }; then
15412 ac_cv_lib_util_openpty=yes
15414 echo "$as_me: failed program was:" >&5
15415 sed 's/^/| /' conftest.$ac_ext >&5
15417 ac_cv_lib_util_openpty=no
15419 rm -f conftest.err conftest.$ac_objext \
15420 conftest$ac_exeext conftest.$ac_ext
15421 LIBS=$ac_check_lib_save_LIBS
15423 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
15424 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
15425 if test $ac_cv_lib_util_openpty = yes; then
15426 cat >>confdefs.h <<_ACEOF
15427 #define HAVE_LIBUTIL 1
15430 LIBS="-lutil $LIBS"
15434 PYTHON_LIBS="$PYTHON_LIBS $LIBS"
15437 echo "$as_me:$LINENO: result: no" >&5
15438 echo "${ECHO_T}no" >&6
15443 echo "$as_me:$LINENO: result: no" >&5
15444 echo "${ECHO_T}no" >&6
15451 # Find where sockets are (especially for Solaris)
15452 # Do this before the TCP Wrappers test since tcp wrappers
15453 # uses the socket library and some linkers are stupid.
15455 echo "$as_me:$LINENO: checking for socket" >&5
15456 echo $ECHO_N "checking for socket... $ECHO_C" >&6
15457 if test "${ac_cv_func_socket+set}" = set; then
15458 echo $ECHO_N "(cached) $ECHO_C" >&6
15460 cat >conftest.$ac_ext <<_ACEOF
15463 cat confdefs.h >>conftest.$ac_ext
15464 cat >>conftest.$ac_ext <<_ACEOF
15465 /* end confdefs.h. */
15466 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
15467 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15468 #define socket innocuous_socket
15470 /* System header to define __stub macros and hopefully few prototypes,
15471 which can conflict with char socket (); below.
15472 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15473 <limits.h> exists even on freestanding compilers. */
15476 # include <limits.h>
15478 # include <assert.h>
15483 /* Override any gcc2 internal prototype to avoid an error. */
15488 /* We use char because int might match the return type of a gcc2
15489 builtin and then its argument prototype would still apply. */
15491 /* The GNU C library defines this for functions which it implements
15492 to always fail with ENOSYS. Some functions are actually named
15493 something starting with __ and the normal name is an alias. */
15494 #if defined (__stub_socket) || defined (__stub___socket)
15497 char (*f) () = socket;
15506 return f != socket;
15511 rm -f conftest.$ac_objext conftest$ac_exeext
15512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15513 (eval $ac_link) 2>conftest.er1
15515 grep -v '^ *+' conftest.er1 >conftest.err
15517 cat conftest.err >&5
15518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15519 (exit $ac_status); } &&
15520 { ac_try='test -z "$ac_c_werror_flag"
15521 || test ! -s conftest.err'
15522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15523 (eval $ac_try) 2>&5
15525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15526 (exit $ac_status); }; } &&
15527 { ac_try='test -s conftest$ac_exeext'
15528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15529 (eval $ac_try) 2>&5
15531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15532 (exit $ac_status); }; }; then
15533 ac_cv_func_socket=yes
15535 echo "$as_me: failed program was:" >&5
15536 sed 's/^/| /' conftest.$ac_ext >&5
15538 ac_cv_func_socket=no
15540 rm -f conftest.err conftest.$ac_objext \
15541 conftest$ac_exeext conftest.$ac_ext
15543 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15544 echo "${ECHO_T}$ac_cv_func_socket" >&6
15545 if test $ac_cv_func_socket = yes; then
15546 echo "$as_me:$LINENO: result: using libc's socket" >&5
15547 echo "${ECHO_T}using libc's socket" >&6
15550 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
15551 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
15552 if test "${ac_cv_lib_xnet_socket+set}" = set; then
15553 echo $ECHO_N "(cached) $ECHO_C" >&6
15555 ac_check_lib_save_LIBS=$LIBS
15556 LIBS="-lxnet $LIBS"
15557 cat >conftest.$ac_ext <<_ACEOF
15560 cat confdefs.h >>conftest.$ac_ext
15561 cat >>conftest.$ac_ext <<_ACEOF
15562 /* end confdefs.h. */
15564 /* Override any gcc2 internal prototype to avoid an error. */
15568 /* We use char because int might match the return type of a gcc2
15569 builtin and then its argument prototype would still apply. */
15579 rm -f conftest.$ac_objext conftest$ac_exeext
15580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15581 (eval $ac_link) 2>conftest.er1
15583 grep -v '^ *+' conftest.er1 >conftest.err
15585 cat conftest.err >&5
15586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15587 (exit $ac_status); } &&
15588 { ac_try='test -z "$ac_c_werror_flag"
15589 || test ! -s conftest.err'
15590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15591 (eval $ac_try) 2>&5
15593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15594 (exit $ac_status); }; } &&
15595 { ac_try='test -s conftest$ac_exeext'
15596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15597 (eval $ac_try) 2>&5
15599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15600 (exit $ac_status); }; }; then
15601 ac_cv_lib_xnet_socket=yes
15603 echo "$as_me: failed program was:" >&5
15604 sed 's/^/| /' conftest.$ac_ext >&5
15606 ac_cv_lib_xnet_socket=no
15608 rm -f conftest.err conftest.$ac_objext \
15609 conftest$ac_exeext conftest.$ac_ext
15610 LIBS=$ac_check_lib_save_LIBS
15612 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
15613 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
15614 if test $ac_cv_lib_xnet_socket = yes; then
15615 cat >>confdefs.h <<_ACEOF
15616 #define HAVE_LIBXNET 1
15619 LIBS="-lxnet $LIBS"
15624 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15625 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
15626 if test "${ac_cv_lib_socket_socket+set}" = set; then
15627 echo $ECHO_N "(cached) $ECHO_C" >&6
15629 ac_check_lib_save_LIBS=$LIBS
15630 LIBS="-lsocket $LIBS"
15631 cat >conftest.$ac_ext <<_ACEOF
15634 cat confdefs.h >>conftest.$ac_ext
15635 cat >>conftest.$ac_ext <<_ACEOF
15636 /* end confdefs.h. */
15638 /* Override any gcc2 internal prototype to avoid an error. */
15642 /* We use char because int might match the return type of a gcc2
15643 builtin and then its argument prototype would still apply. */
15653 rm -f conftest.$ac_objext conftest$ac_exeext
15654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15655 (eval $ac_link) 2>conftest.er1
15657 grep -v '^ *+' conftest.er1 >conftest.err
15659 cat conftest.err >&5
15660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15661 (exit $ac_status); } &&
15662 { ac_try='test -z "$ac_c_werror_flag"
15663 || test ! -s conftest.err'
15664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15665 (eval $ac_try) 2>&5
15667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15668 (exit $ac_status); }; } &&
15669 { ac_try='test -s conftest$ac_exeext'
15670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15671 (eval $ac_try) 2>&5
15673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15674 (exit $ac_status); }; }; then
15675 ac_cv_lib_socket_socket=yes
15677 echo "$as_me: failed program was:" >&5
15678 sed 's/^/| /' conftest.$ac_ext >&5
15680 ac_cv_lib_socket_socket=no
15682 rm -f conftest.err conftest.$ac_objext \
15683 conftest$ac_exeext conftest.$ac_ext
15684 LIBS=$ac_check_lib_save_LIBS
15686 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15687 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
15688 if test $ac_cv_lib_socket_socket = yes; then
15689 cat >>confdefs.h <<_ACEOF
15690 #define HAVE_LIBSOCKET 1
15693 LIBS="-lsocket $LIBS"
15698 echo "$as_me:$LINENO: checking for socket in -linet" >&5
15699 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
15700 if test "${ac_cv_lib_inet_socket+set}" = set; then
15701 echo $ECHO_N "(cached) $ECHO_C" >&6
15703 ac_check_lib_save_LIBS=$LIBS
15704 LIBS="-linet $LIBS"
15705 cat >conftest.$ac_ext <<_ACEOF
15708 cat confdefs.h >>conftest.$ac_ext
15709 cat >>conftest.$ac_ext <<_ACEOF
15710 /* end confdefs.h. */
15712 /* Override any gcc2 internal prototype to avoid an error. */
15716 /* We use char because int might match the return type of a gcc2
15717 builtin and then its argument prototype would still apply. */
15727 rm -f conftest.$ac_objext conftest$ac_exeext
15728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15729 (eval $ac_link) 2>conftest.er1
15731 grep -v '^ *+' conftest.er1 >conftest.err
15733 cat conftest.err >&5
15734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15735 (exit $ac_status); } &&
15736 { ac_try='test -z "$ac_c_werror_flag"
15737 || test ! -s conftest.err'
15738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15739 (eval $ac_try) 2>&5
15741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15742 (exit $ac_status); }; } &&
15743 { ac_try='test -s conftest$ac_exeext'
15744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15745 (eval $ac_try) 2>&5
15747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15748 (exit $ac_status); }; }; then
15749 ac_cv_lib_inet_socket=yes
15751 echo "$as_me: failed program was:" >&5
15752 sed 's/^/| /' conftest.$ac_ext >&5
15754 ac_cv_lib_inet_socket=no
15756 rm -f conftest.err conftest.$ac_objext \
15757 conftest$ac_exeext conftest.$ac_ext
15758 LIBS=$ac_check_lib_save_LIBS
15760 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15761 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15762 if test $ac_cv_lib_inet_socket = yes; then
15763 cat >>confdefs.h <<_ACEOF
15764 #define HAVE_LIBINET 1
15767 LIBS="-linet $LIBS"
15775 # -----------------------------------------------------------
15776 # Check whether user wants TCP wrappers support (default off)
15777 # -----------------------------------------------------------
15781 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
15782 if test "${with_tcp_wrappers+set}" = set; then
15783 withval="$with_tcp_wrappers"
15785 if test "x$withval" != "xno" ; then
15787 LIBS="$saved_LIBS -lwrap"
15788 echo "$as_me:$LINENO: checking for libwrap" >&5
15789 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
15790 echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
15791 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6
15792 if test "${ac_cv_search_nanosleep+set}" = set; then
15793 echo $ECHO_N "(cached) $ECHO_C" >&6
15795 ac_func_search_save_LIBS=$LIBS
15796 ac_cv_search_nanosleep=no
15797 cat >conftest.$ac_ext <<_ACEOF
15800 cat confdefs.h >>conftest.$ac_ext
15801 cat >>conftest.$ac_ext <<_ACEOF
15802 /* end confdefs.h. */
15804 /* Override any gcc2 internal prototype to avoid an error. */
15808 /* We use char because int might match the return type of a gcc2
15809 builtin and then its argument prototype would still apply. */
15819 rm -f conftest.$ac_objext conftest$ac_exeext
15820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15821 (eval $ac_link) 2>conftest.er1
15823 grep -v '^ *+' conftest.er1 >conftest.err
15825 cat conftest.err >&5
15826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15827 (exit $ac_status); } &&
15828 { ac_try='test -z "$ac_c_werror_flag"
15829 || test ! -s conftest.err'
15830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15831 (eval $ac_try) 2>&5
15833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15834 (exit $ac_status); }; } &&
15835 { ac_try='test -s conftest$ac_exeext'
15836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15837 (eval $ac_try) 2>&5
15839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15840 (exit $ac_status); }; }; then
15841 ac_cv_search_nanosleep="none required"
15843 echo "$as_me: failed program was:" >&5
15844 sed 's/^/| /' conftest.$ac_ext >&5
15847 rm -f conftest.err conftest.$ac_objext \
15848 conftest$ac_exeext conftest.$ac_ext
15849 if test "$ac_cv_search_nanosleep" = no; then
15850 for ac_lib in rt; do
15851 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15852 cat >conftest.$ac_ext <<_ACEOF
15855 cat confdefs.h >>conftest.$ac_ext
15856 cat >>conftest.$ac_ext <<_ACEOF
15857 /* end confdefs.h. */
15859 /* Override any gcc2 internal prototype to avoid an error. */
15863 /* We use char because int might match the return type of a gcc2
15864 builtin and then its argument prototype would still apply. */
15874 rm -f conftest.$ac_objext conftest$ac_exeext
15875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15876 (eval $ac_link) 2>conftest.er1
15878 grep -v '^ *+' conftest.er1 >conftest.err
15880 cat conftest.err >&5
15881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15882 (exit $ac_status); } &&
15883 { ac_try='test -z "$ac_c_werror_flag"
15884 || test ! -s conftest.err'
15885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15886 (eval $ac_try) 2>&5
15888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15889 (exit $ac_status); }; } &&
15890 { ac_try='test -s conftest$ac_exeext'
15891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15892 (eval $ac_try) 2>&5
15894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15895 (exit $ac_status); }; }; then
15896 ac_cv_search_nanosleep="-l$ac_lib"
15899 echo "$as_me: failed program was:" >&5
15900 sed 's/^/| /' conftest.$ac_ext >&5
15903 rm -f conftest.err conftest.$ac_objext \
15904 conftest$ac_exeext conftest.$ac_ext
15907 LIBS=$ac_func_search_save_LIBS
15909 echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
15910 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6
15911 if test "$ac_cv_search_nanosleep" != no; then
15912 test "$ac_cv_search_nanosleep" = "none required" || LIBS="$ac_cv_search_nanosleep $LIBS"
15916 cat >conftest.$ac_ext <<_ACEOF
15919 cat confdefs.h >>conftest.$ac_ext
15920 cat >>conftest.$ac_ext <<_ACEOF
15921 /* end confdefs.h. */
15922 #include <sys/types.h>
15924 int deny_severity = 0;
15925 int allow_severity = 0;
15926 struct request_info *req;
15935 rm -f conftest.$ac_objext conftest$ac_exeext
15936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15937 (eval $ac_link) 2>conftest.er1
15939 grep -v '^ *+' conftest.er1 >conftest.err
15941 cat conftest.err >&5
15942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15943 (exit $ac_status); } &&
15944 { ac_try='test -z "$ac_c_werror_flag"
15945 || test ! -s conftest.err'
15946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15947 (eval $ac_try) 2>&5
15949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15950 (exit $ac_status); }; } &&
15951 { ac_try='test -s conftest$ac_exeext'
15952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15953 (eval $ac_try) 2>&5
15955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15956 (exit $ac_status); }; }; then
15958 echo "$as_me:$LINENO: result: yes" >&5
15959 echo "${ECHO_T}yes" >&6
15961 cat >>confdefs.h <<\_ACEOF
15962 #define HAVE_LIBWRAP 1
15970 echo "$as_me: failed program was:" >&5
15971 sed 's/^/| /' conftest.$ac_ext >&5
15974 LIBS="$saved_LIBS -lwrap -lnsl"
15975 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
15976 cat >conftest.$ac_ext <<_ACEOF
15979 cat confdefs.h >>conftest.$ac_ext
15980 cat >>conftest.$ac_ext <<_ACEOF
15981 /* end confdefs.h. */
15982 #include <sys/types.h>
15984 int deny_severity = 0;
15985 int allow_severity = 0;
15986 struct request_info *req;
15995 rm -f conftest.$ac_objext conftest$ac_exeext
15996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15997 (eval $ac_link) 2>conftest.er1
15999 grep -v '^ *+' conftest.er1 >conftest.err
16001 cat conftest.err >&5
16002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16003 (exit $ac_status); } &&
16004 { ac_try='test -z "$ac_c_werror_flag"
16005 || test ! -s conftest.err'
16006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16007 (eval $ac_try) 2>&5
16009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16010 (exit $ac_status); }; } &&
16011 { ac_try='test -s conftest$ac_exeext'
16012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16013 (eval $ac_try) 2>&5
16015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16016 (exit $ac_status); }; }; then
16018 echo "$as_me:$LINENO: result: yes" >&5
16019 echo "${ECHO_T}yes" >&6
16021 cat >>confdefs.h <<\_ACEOF
16022 #define HAVE_LIBWRAP 1
16030 echo "$as_me: failed program was:" >&5
16031 sed 's/^/| /' conftest.$ac_ext >&5
16033 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
16034 echo "$as_me: error: *** libwrap missing" >&2;}
16035 { (exit 1); exit 1; }; }
16038 rm -f conftest.err conftest.$ac_objext \
16039 conftest$ac_exeext conftest.$ac_ext
16042 rm -f conftest.err conftest.$ac_objext \
16043 conftest$ac_exeext conftest.$ac_ext
16049 # -----------------------------------------------------------
16050 # Check whether OpenSSL is available
16051 # -----------------------------------------------------------
16052 echo "$as_me:$LINENO: checking for OpenSSL" >&5
16053 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6
16055 # Check whether --with-openssl or --without-openssl was given.
16056 if test "${with_openssl+set}" = set; then
16057 withval="$with_openssl"
16058 with_openssl_directory=${withval}
16061 if test "x$with_openssl_directory" != "x"; then
16062 OPENSSL_LIBS="-lssl -lcrypto"
16065 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
16066 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
16067 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
16070 saved_LIBS="${LIBS}"
16071 saved_CFLAGS="${CFLAGS}"
16072 LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
16073 CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
16075 cat >conftest.$ac_ext <<_ACEOF
16078 cat confdefs.h >>conftest.$ac_ext
16079 cat >>conftest.$ac_ext <<_ACEOF
16080 /* end confdefs.h. */
16081 #include <openssl/ssl.h>
16085 CRYPTO_set_id_callback(NULL);
16090 rm -f conftest.$ac_objext conftest$ac_exeext
16091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16092 (eval $ac_link) 2>conftest.er1
16094 grep -v '^ *+' conftest.er1 >conftest.err
16096 cat conftest.err >&5
16097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16098 (exit $ac_status); } &&
16099 { ac_try='test -z "$ac_c_werror_flag"
16100 || test ! -s conftest.err'
16101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16102 (eval $ac_try) 2>&5
16104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16105 (exit $ac_status); }; } &&
16106 { ac_try='test -s conftest$ac_exeext'
16107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16108 (eval $ac_try) 2>&5
16110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16111 (exit $ac_status); }; }; then
16114 support_crypto="yes"
16117 echo "$as_me: failed program was:" >&5
16118 sed 's/^/| /' conftest.$ac_ext >&5
16123 rm -f conftest.err conftest.$ac_objext \
16124 conftest$ac_exeext conftest.$ac_ext
16126 cat >conftest.$ac_ext <<_ACEOF
16129 cat confdefs.h >>conftest.$ac_ext
16130 cat >>conftest.$ac_ext <<_ACEOF
16131 /* end confdefs.h. */
16132 #include <openssl/evp.h>
16141 rm -f conftest.$ac_objext conftest$ac_exeext
16142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16143 (eval $ac_link) 2>conftest.er1
16145 grep -v '^ *+' conftest.er1 >conftest.err
16147 cat conftest.err >&5
16148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16149 (exit $ac_status); } &&
16150 { ac_try='test -z "$ac_c_werror_flag"
16151 || test ! -s conftest.err'
16152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16153 (eval $ac_try) 2>&5
16155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16156 (exit $ac_status); }; } &&
16157 { ac_try='test -s conftest$ac_exeext'
16158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16159 (eval $ac_try) 2>&5
16161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16162 (exit $ac_status); }; }; then
16163 ac_cv_openssl_sha2="yes"
16165 echo "$as_me: failed program was:" >&5
16166 sed 's/^/| /' conftest.$ac_ext >&5
16168 ac_cv_openssl_sha2="no"
16171 rm -f conftest.err conftest.$ac_objext \
16172 conftest$ac_exeext conftest.$ac_ext
16174 # Solaris disables greater than 128+ bit encryption in their OpenSSL
16175 # implementation, presumably for export reasons. If 192bit AES
16176 # is available, we assume that we're running with a 'non-export'
16178 cat >conftest.$ac_ext <<_ACEOF
16181 cat confdefs.h >>conftest.$ac_ext
16182 cat >>conftest.$ac_ext <<_ACEOF
16183 /* end confdefs.h. */
16184 #include <openssl/evp.h>
16193 rm -f conftest.$ac_objext conftest$ac_exeext
16194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16195 (eval $ac_link) 2>conftest.er1
16197 grep -v '^ *+' conftest.er1 >conftest.err
16199 cat conftest.err >&5
16200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16201 (exit $ac_status); } &&
16202 { ac_try='test -z "$ac_c_werror_flag"
16203 || test ! -s conftest.err'
16204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16205 (eval $ac_try) 2>&5
16207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16208 (exit $ac_status); }; } &&
16209 { ac_try='test -s conftest$ac_exeext'
16210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16211 (eval $ac_try) 2>&5
16213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16214 (exit $ac_status); }; }; then
16215 ac_cv_openssl_export="no"
16217 echo "$as_me: failed program was:" >&5
16218 sed 's/^/| /' conftest.$ac_ext >&5
16220 ac_cv_openssl_export="yes"
16223 rm -f conftest.err conftest.$ac_objext \
16224 conftest$ac_exeext conftest.$ac_ext
16226 LIBS="${saved_LIBS}"
16227 CFLAGS="${saved_CFLAGS}"
16229 if test "$support_tls" = "yes"; then
16231 cat >>confdefs.h <<\_ACEOF
16232 #define HAVE_OPENSSL 1
16236 cat >>confdefs.h <<\_ACEOF
16241 cat >>confdefs.h <<\_ACEOF
16242 #define HAVE_CRYPTO 1
16247 if test "$ac_cv_openssl_sha2" = "yes"; then
16249 cat >>confdefs.h <<\_ACEOF
16250 #define HAVE_SHA2 1
16255 if test "$ac_cv_openssl_export" = "yes"; then
16257 cat >>confdefs.h <<\_ACEOF
16258 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
16264 support_crypto="no"
16269 echo "$as_me:$LINENO: result: $support_tls" >&5
16270 echo "${ECHO_T}$support_tls" >&6
16275 # -----------------------------------------------------------
16276 # Python and OpenSSL are using dlopen
16277 # -----------------------------------------------------------
16279 if test "$support_python" = "yes" -o "$support_tls" = "yes"; then
16280 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
16281 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
16282 if test "${ac_cv_search_dlopen+set}" = set; then
16283 echo $ECHO_N "(cached) $ECHO_C" >&6
16285 ac_func_search_save_LIBS=$LIBS
16286 ac_cv_search_dlopen=no
16287 cat >conftest.$ac_ext <<_ACEOF
16290 cat confdefs.h >>conftest.$ac_ext
16291 cat >>conftest.$ac_ext <<_ACEOF
16292 /* end confdefs.h. */
16294 /* Override any gcc2 internal prototype to avoid an error. */
16298 /* We use char because int might match the return type of a gcc2
16299 builtin and then its argument prototype would still apply. */
16309 rm -f conftest.$ac_objext conftest$ac_exeext
16310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16311 (eval $ac_link) 2>conftest.er1
16313 grep -v '^ *+' conftest.er1 >conftest.err
16315 cat conftest.err >&5
16316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16317 (exit $ac_status); } &&
16318 { ac_try='test -z "$ac_c_werror_flag"
16319 || test ! -s conftest.err'
16320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16321 (eval $ac_try) 2>&5
16323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16324 (exit $ac_status); }; } &&
16325 { ac_try='test -s conftest$ac_exeext'
16326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16327 (eval $ac_try) 2>&5
16329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16330 (exit $ac_status); }; }; then
16331 ac_cv_search_dlopen="none required"
16333 echo "$as_me: failed program was:" >&5
16334 sed 's/^/| /' conftest.$ac_ext >&5
16337 rm -f conftest.err conftest.$ac_objext \
16338 conftest$ac_exeext conftest.$ac_ext
16339 if test "$ac_cv_search_dlopen" = no; then
16340 for ac_lib in dl; do
16341 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16342 cat >conftest.$ac_ext <<_ACEOF
16345 cat confdefs.h >>conftest.$ac_ext
16346 cat >>conftest.$ac_ext <<_ACEOF
16347 /* end confdefs.h. */
16349 /* Override any gcc2 internal prototype to avoid an error. */
16353 /* We use char because int might match the return type of a gcc2
16354 builtin and then its argument prototype would still apply. */
16364 rm -f conftest.$ac_objext conftest$ac_exeext
16365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16366 (eval $ac_link) 2>conftest.er1
16368 grep -v '^ *+' conftest.er1 >conftest.err
16370 cat conftest.err >&5
16371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16372 (exit $ac_status); } &&
16373 { ac_try='test -z "$ac_c_werror_flag"
16374 || test ! -s conftest.err'
16375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16376 (eval $ac_try) 2>&5
16378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16379 (exit $ac_status); }; } &&
16380 { ac_try='test -s conftest$ac_exeext'
16381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16382 (eval $ac_try) 2>&5
16384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16385 (exit $ac_status); }; }; then
16386 ac_cv_search_dlopen="-l$ac_lib"
16389 echo "$as_me: failed program was:" >&5
16390 sed 's/^/| /' conftest.$ac_ext >&5
16393 rm -f conftest.err conftest.$ac_objext \
16394 conftest$ac_exeext conftest.$ac_ext
16397 LIBS=$ac_func_search_save_LIBS
16399 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
16400 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
16401 if test "$ac_cv_search_dlopen" != no; then
16402 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
16408 # ------------------------------------------
16409 # Where to place working dir
16410 # ------------------------------------------
16411 working_dir=`eval echo ${prefix}/var/bacula/working`
16413 # Check whether --with-working-dir or --without-working-dir was given.
16414 if test "${with_working_dir+set}" = set; then
16415 withval="$with_working_dir"
16417 if test "x$withval" != "xno" ; then
16418 working_dir=$withval
16427 # ------------------------------------------
16428 # Where to place scriptdir (script files)
16429 # ------------------------------------------
16430 scriptdir=`eval echo ${sysconfdir}`
16432 # Check whether --with-scriptdir or --without-scriptdir was given.
16433 if test "${with_scriptdir+set}" = set; then
16434 withval="$with_scriptdir"
16436 if test "x$withval" != "xno" ; then
16446 # ------------------------------------------
16447 # Where to send dump email
16448 # ------------------------------------------
16449 dump_email=root@localhost
16451 # Check whether --with-dump-email or --without-dump-email was given.
16452 if test "${with_dump_email+set}" = set; then
16453 withval="$with_dump_email"
16455 if test "x$withval" != "xno" ; then
16456 dump_email=$withval
16464 # ------------------------------------------
16465 # Where to send job email
16466 # ------------------------------------------
16467 job_email=root@localhost
16469 # Check whether --with-job-email or --without-job-email was given.
16470 if test "${with_job_email+set}" = set; then
16471 withval="$with_job_email"
16473 if test "x$withval" != "xno" ; then
16482 # ------------------------------------------
16483 # Where to find smtp host
16484 # ------------------------------------------
16485 smtp_host=localhost
16487 # Check whether --with-smtp_host or --without-smtp_host was given.
16488 if test "${with_smtp_host+set}" = set; then
16489 withval="$with_smtp_host"
16491 if test "x$withval" != "xno" ; then
16501 # ------------------------------------
16502 # Where to place pid files
16503 # ------------------------------------
16506 # Check whether --with-pid-dir or --without-pid-dir was given.
16507 if test "${with_pid_dir+set}" = set; then
16508 withval="$with_pid_dir"
16510 if test "x$withval" != "xno" ; then
16517 cat >>confdefs.h <<_ACEOF
16518 #define _PATH_BACULA_PIDDIR "$piddir"
16524 # ------------------------------------
16525 # Where to place subsys "lock file"
16526 # ------------------------------------
16527 subsysdir=/var/run/subsys
16528 if test -d /var/run/subsys; then
16529 subsysdir=/var/run/subsys
16530 elif test -d /var/lock/subsys; then
16531 subsysdir=/var/lock/subsys
16533 subsysdir=/var/run/subsys
16536 # Check whether --with-subsys-dir or --without-subsys-dir was given.
16537 if test "${with_subsys_dir+set}" = set; then
16538 withval="$with_subsys_dir"
16540 if test "x$withval" != "xno" ; then
16551 # ------------------------------------
16552 # Where to start assigning ports
16553 # ------------------------------------
16556 # Check whether --with-baseport or --without-baseport was given.
16557 if test "${with_baseport+set}" = set; then
16558 withval="$with_baseport"
16560 if test "x$withval" != "xno" ; then
16568 dir_port=`expr $baseport`
16569 fd_port=`expr $baseport + 1`
16570 sd_port=`expr $fd_port + 1`
16577 # ------------------------------------------
16578 # Generate passwords
16579 # ------------------------------------------
16582 # Check whether --with-dir-password or --without-dir-password was given.
16583 if test "${with_dir_password+set}" = set; then
16584 withval="$with_dir_password"
16586 if test "x$withval" != "xno" ; then
16587 dir_password=$withval
16593 if test "x$dir_password" = "x" ; then
16594 if test "x$OPENSSL" = "xnone" ; then
16595 key=`autoconf/randpass 33`
16597 key=`openssl rand -base64 33`
16604 # Check whether --with-fd-password or --without-fd-password was given.
16605 if test "${with_fd_password+set}" = set; then
16606 withval="$with_fd_password"
16608 if test "x$withval" != "xno" ; then
16609 fd_password=$withval
16615 if test "x$fd_password" = "x" ; then
16616 if test "x$OPENSSL" = "xnone" ; then
16617 key=`autoconf/randpass 37`
16619 key=`openssl rand -base64 33`
16626 # Check whether --with-sd-password or --without-sd-password was given.
16627 if test "${with_sd_password+set}" = set; then
16628 withval="$with_sd_password"
16630 if test "x$withval" != "xno" ; then
16631 sd_password=$withval
16637 if test "x$sd_password" = "x" ; then
16638 if test "x$OPENSSL" = "xnone" ; then
16639 key=`autoconf/randpass 41`
16641 key=`openssl rand -base64 33`
16648 # Check whether --with-mon-dir-password or --without-mon-dir-password was given.
16649 if test "${with_mon_dir_password+set}" = set; then
16650 withval="$with_mon_dir_password"
16652 if test "x$withval" != "xno" ; then
16653 mon_dir_password=$withval
16659 if test "x$mon_dir_password" = "x" ; then
16660 if test "x$OPENSSL" = "xnone" ; then
16661 key=`autoconf/randpass 33`
16663 key=`openssl rand -base64 33`
16665 mon_dir_password=$key
16670 # Check whether --with-mon-fd-password or --without-mon-fd-password was given.
16671 if test "${with_mon_fd_password+set}" = set; then
16672 withval="$with_mon_fd_password"
16674 if test "x$withval" != "xno" ; then
16675 mon_fd_password=$withval
16681 if test "x$mon_fd_password" = "x" ; then
16682 if test "x$OPENSSL" = "xnone" ; then
16683 key=`autoconf/randpass 37`
16685 key=`openssl rand -base64 33`
16687 mon_fd_password=$key
16692 # Check whether --with-mon-sd-password or --without-mon-sd-password was given.
16693 if test "${with_mon_sd_password+set}" = set; then
16694 withval="$with_mon_sd_password"
16696 if test "x$withval" != "xno" ; then
16697 mon_sd_password=$withval
16703 if test "x$mon_sd_password" = "x" ; then
16704 if test "x$OPENSSL" = "xnone" ; then
16705 key=`autoconf/randpass 41`
16707 key=`openssl rand -base64 33`
16709 mon_sd_password=$key
16720 # Pickup any database name
16724 # Check whether --with-db_name or --without-db_name was given.
16725 if test "${with_db_name+set}" = set; then
16726 withval="$with_db_name"
16728 if test "x$withval" != "x" ; then
16738 # Check whether --with-db_user or --without-db_user was given.
16739 if test "${with_db_user+set}" = set; then
16740 withval="$with_db_user"
16742 if test "x$withval" != "x" ; then
16752 # Handle users and groups for each daemon
16756 # Check whether --with-dir_user or --without-dir_user was given.
16757 if test "${with_dir_user+set}" = set; then
16758 withval="$with_dir_user"
16760 if test "x$withval" != "x" ; then
16769 # Check whether --with-dir_group or --without-dir_group was given.
16770 if test "${with_dir_group+set}" = set; then
16771 withval="$with_dir_group"
16773 if test "x$withval" != "x" ; then
16782 # Check whether --with-sd_user or --without-sd_user was given.
16783 if test "${with_sd_user+set}" = set; then
16784 withval="$with_sd_user"
16786 if test "x$withval" != "x" ; then
16795 # Check whether --with-sd_group or --without-sd_group was given.
16796 if test "${with_sd_group+set}" = set; then
16797 withval="$with_sd_group"
16799 if test "x$withval" != "x" ; then
16808 # Check whether --with-fd_user or --without-fd_user was given.
16809 if test "${with_fd_user+set}" = set; then
16810 withval="$with_fd_user"
16812 if test "x$withval" != "x" ; then
16821 # Check whether --with-fd_group or --without-fd_group was given.
16822 if test "${with_fd_group+set}" = set; then
16823 withval="$with_fd_group"
16825 if test "x$withval" != "x" ; then
16840 # allow setting default executable permissions
16844 # Check whether --with-sbin-perm or --without-sbin-perm was given.
16845 if test "${with_sbin_perm+set}" = set; then
16846 withval="$with_sbin_perm"
16848 if test "x$withval" != "x" ; then
16857 # ------------------------------------------------
16858 # Bacula check for various SQL database engines
16859 # ------------------------------------------------
16863 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
16864 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
16866 # Check whether --with-postgresql or --without-postgresql was given.
16867 if test "${with_postgresql+set}" = set; then
16868 withval="$with_postgresql"
16870 if test "$withval" != "no"; then
16871 if test "$db_found" = "yes"; then
16872 echo "$as_me:$LINENO: result: error" >&5
16873 echo "${ECHO_T}error" >&6
16874 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
16875 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
16876 { (exit 1); exit 1; }; };
16878 if test "$withval" = "yes"; then
16879 PG_CONFIG=`which pg_config`
16880 if test -n "$PG_CONFIG";then
16881 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
16882 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
16883 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
16884 elif test -f /usr/local/include/libpq-fe.h; then
16885 POSTGRESQL_INCDIR=/usr/local/include
16886 if test -d /usr/local/lib64; then
16887 POSTGRESQL_LIBDIR=/usr/local/lib64
16889 POSTGRESQL_LIBDIR=/usr/local/lib
16891 POSTGRESQL_BINDIR=/usr/local/bin
16892 elif test -f /usr/include/libpq-fe.h; then
16893 POSTGRESQL_INCDIR=/usr/include
16894 if test -d /usr/lib64; then
16895 POSTGRESQL_LIBDIR=/usr/lib64
16897 POSTGRESQL_LIBDIR=/usr/lib
16899 POSTGRESQL_BINDIR=/usr/bin
16900 elif test -f /usr/include/pgsql/libpq-fe.h; then
16901 POSTGRESQL_INCDIR=/usr/include/pgsql
16902 if test -d /usr/lib64/pgsql; then
16903 POSTGRESQL_LIBDIR=/usr/lib64/pgsql
16905 POSTGRESQL_LIBDIR=/usr/lib/pgsql
16907 POSTGRESQL_BINDIR=/usr/bin
16908 elif test -f /usr/include/postgresql/libpq-fe.h; then
16909 POSTGRESQL_INCDIR=/usr/include/postgresql
16910 if test -d /usr/lib64/postgresql; then
16911 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
16913 POSTGRESQL_LIBDIR=/usr/lib/postgresql
16915 POSTGRESQL_BINDIR=/usr/bin
16917 echo "$as_me:$LINENO: result: no" >&5
16918 echo "${ECHO_T}no" >&6
16919 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
16920 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
16921 { (exit 1); exit 1; }; }
16923 elif test -f $withval/include/libpq-fe.h; then
16924 POSTGRESQL_INCDIR=$withval/include
16925 POSTGRESQL_LIBDIR=$withval/lib
16926 POSTGRESQL_BINDIR=$withval/bin
16927 elif test -f $withval/include/postgresql/libpq-fe.h; then
16928 POSTGRESQL_INCDIR=$withval/include/postgresql
16929 if test -d $withval/lib64; then
16930 POSTGRESQL_LIBDIR=$withval/lib64
16932 POSTGRESQL_LIBDIR=$withval/lib
16934 POSTGRESQL_BINDIR=$withval/bin
16936 echo "$as_me:$LINENO: result: no" >&5
16937 echo "${ECHO_T}no" >&6
16938 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
16939 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
16940 { (exit 1); exit 1; }; }
16942 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
16943 echo "$as_me:$LINENO: checking for crypt" >&5
16944 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
16945 if test "${ac_cv_func_crypt+set}" = set; then
16946 echo $ECHO_N "(cached) $ECHO_C" >&6
16948 cat >conftest.$ac_ext <<_ACEOF
16951 cat confdefs.h >>conftest.$ac_ext
16952 cat >>conftest.$ac_ext <<_ACEOF
16953 /* end confdefs.h. */
16954 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
16955 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16956 #define crypt innocuous_crypt
16958 /* System header to define __stub macros and hopefully few prototypes,
16959 which can conflict with char crypt (); below.
16960 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16961 <limits.h> exists even on freestanding compilers. */
16964 # include <limits.h>
16966 # include <assert.h>
16971 /* Override any gcc2 internal prototype to avoid an error. */
16976 /* We use char because int might match the return type of a gcc2
16977 builtin and then its argument prototype would still apply. */
16979 /* The GNU C library defines this for functions which it implements
16980 to always fail with ENOSYS. Some functions are actually named
16981 something starting with __ and the normal name is an alias. */
16982 #if defined (__stub_crypt) || defined (__stub___crypt)
16985 char (*f) () = crypt;
16999 rm -f conftest.$ac_objext conftest$ac_exeext
17000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17001 (eval $ac_link) 2>conftest.er1
17003 grep -v '^ *+' conftest.er1 >conftest.err
17005 cat conftest.err >&5
17006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17007 (exit $ac_status); } &&
17008 { ac_try='test -z "$ac_c_werror_flag"
17009 || test ! -s conftest.err'
17010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17011 (eval $ac_try) 2>&5
17013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17014 (exit $ac_status); }; } &&
17015 { ac_try='test -s conftest$ac_exeext'
17016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17017 (eval $ac_try) 2>&5
17019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17020 (exit $ac_status); }; }; then
17021 ac_cv_func_crypt=yes
17023 echo "$as_me: failed program was:" >&5
17024 sed 's/^/| /' conftest.$ac_ext >&5
17026 ac_cv_func_crypt=no
17028 rm -f conftest.err conftest.$ac_objext \
17029 conftest$ac_exeext conftest.$ac_ext
17031 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
17032 echo "${ECHO_T}$ac_cv_func_crypt" >&6
17033 if test $ac_cv_func_crypt = yes; then
17036 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
17037 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
17038 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
17039 echo $ECHO_N "(cached) $ECHO_C" >&6
17041 ac_check_lib_save_LIBS=$LIBS
17042 LIBS="-lcrypt $LIBS"
17043 cat >conftest.$ac_ext <<_ACEOF
17046 cat confdefs.h >>conftest.$ac_ext
17047 cat >>conftest.$ac_ext <<_ACEOF
17048 /* end confdefs.h. */
17050 /* Override any gcc2 internal prototype to avoid an error. */
17054 /* We use char because int might match the return type of a gcc2
17055 builtin and then its argument prototype would still apply. */
17065 rm -f conftest.$ac_objext conftest$ac_exeext
17066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17067 (eval $ac_link) 2>conftest.er1
17069 grep -v '^ *+' conftest.er1 >conftest.err
17071 cat conftest.err >&5
17072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17073 (exit $ac_status); } &&
17074 { ac_try='test -z "$ac_c_werror_flag"
17075 || test ! -s conftest.err'
17076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17077 (eval $ac_try) 2>&5
17079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17080 (exit $ac_status); }; } &&
17081 { ac_try='test -s conftest$ac_exeext'
17082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17083 (eval $ac_try) 2>&5
17085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17086 (exit $ac_status); }; }; then
17087 ac_cv_lib_crypt_crypt=yes
17089 echo "$as_me: failed program was:" >&5
17090 sed 's/^/| /' conftest.$ac_ext >&5
17092 ac_cv_lib_crypt_crypt=no
17094 rm -f conftest.err conftest.$ac_objext \
17095 conftest$ac_exeext conftest.$ac_ext
17096 LIBS=$ac_check_lib_save_LIBS
17098 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
17099 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
17100 if test $ac_cv_lib_crypt_crypt = yes; then
17101 POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
17106 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
17107 SQL_LFLAGS=$POSTGRESQL_LFLAGS
17108 SQL_BINDIR=$POSTGRESQL_BINDIR
17109 SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
17111 cat >>confdefs.h <<\_ACEOF
17112 #define HAVE_POSTGRESQL 1
17115 echo "$as_me:$LINENO: result: yes" >&5
17116 echo "${ECHO_T}yes" >&6
17118 support_postgresql=yes
17122 echo "$as_me:$LINENO: result: no" >&5
17123 echo "${ECHO_T}no" >&6
17128 echo "$as_me:$LINENO: result: no" >&5
17129 echo "${ECHO_T}no" >&6
17140 echo "$as_me:$LINENO: checking for MySQL support" >&5
17141 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
17143 # Check whether --with-mysql or --without-mysql was given.
17144 if test "${with_mysql+set}" = set; then
17145 withval="$with_mysql"
17147 if test "$withval" != "no"; then
17148 if test "$withval" = "yes"; then
17149 if test -f /usr/local/mysql/include/mysql/mysql.h; then
17150 MYSQL_INCDIR=/usr/local/mysql/include/mysql
17151 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
17152 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
17153 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
17155 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
17157 MYSQL_BINDIR=/usr/local/mysql/bin
17158 elif test -f /usr/include/mysql/mysql.h; then
17159 MYSQL_INCDIR=/usr/include/mysql
17160 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
17161 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
17162 MYSQL_LIBDIR=/usr/lib64/mysql
17163 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
17164 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
17165 MYSQL_LIBDIR=/usr/lib/mysql
17167 MYSQL_LIBDIR=/usr/lib
17169 MYSQL_BINDIR=/usr/bin
17170 elif test -f /usr/include/mysql.h; then
17171 MYSQL_INCDIR=/usr/include
17172 if test -f /usr/lib64/libmysqlclient_r.a \
17173 -o -f /usr/lib64/libmysqlclient_r.so; then
17174 MYSQL_LIBDIR=/usr/lib64
17176 MYSQL_LIBDIR=/usr/lib
17178 MYSQL_BINDIR=/usr/bin
17179 elif test -f /usr/local/include/mysql/mysql.h; then
17180 MYSQL_INCDIR=/usr/local/include/mysql
17181 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
17182 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
17183 MYSQL_LIBDIR=/usr/local/lib64/mysql
17185 MYSQL_LIBDIR=/usr/local/lib/mysql
17187 MYSQL_BINDIR=/usr/local/bin
17188 elif test -f /usr/local/include/mysql.h; then
17189 MYSQL_INCDIR=/usr/local/include
17190 if test -f /usr/local/lib64/libmysqlclient_r.a \
17191 -o -f /usr/local/lib64/libmysqlclient_r.so; then
17192 MYSQL_LIBDIR=/usr/local/lib64
17194 MYSQL_LIBDIR=/usr/local/lib
17196 MYSQL_BINDIR=/usr/local/bin
17198 echo "$as_me:$LINENO: result: no" >&5
17199 echo "${ECHO_T}no" >&6
17200 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
17201 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
17202 { (exit 1); exit 1; }; }
17205 if test -f $withval/include/mysql/mysql.h; then
17206 MYSQL_INCDIR=$withval/include/mysql
17207 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
17208 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
17209 MYSQL_LIBDIR=$withval/lib64/mysql
17211 MYSQL_LIBDIR=$withval/lib/mysql
17213 if test -f $withval/lib/libmysqlclient_r.so; then
17214 MYSQL_LIBDIR=$withval/lib
17217 MYSQL_BINDIR=$withval/bin
17218 elif test -f $withval/include/mysql.h; then
17219 MYSQL_INCDIR=$withval/include
17220 if test -f $withval/lib64/libmysqlclient_r.a \
17221 -o -f $withval/lib64/libmysqlclient_r.so; then
17222 MYSQL_LIBDIR=$withval/lib64
17224 MYSQL_LIBDIR=$withval/lib
17226 MYSQL_BINDIR=$withval/bin
17228 echo "$as_me:$LINENO: result: no" >&5
17229 echo "${ECHO_T}no" >&6
17230 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
17231 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
17232 { (exit 1); exit 1; }; }
17235 SQL_INCLUDE=-I$MYSQL_INCDIR
17236 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
17237 -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
17238 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
17239 cat >>confdefs.h <<\_ACEOF
17240 #define HAVE_THREAD_SAFE_MYSQL 1
17244 SQL_BINDIR=$MYSQL_BINDIR
17245 SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
17247 cat >>confdefs.h <<\_ACEOF
17248 #define HAVE_MYSQL 1
17251 echo "$as_me:$LINENO: result: yes" >&5
17252 echo "${ECHO_T}yes" >&6
17259 echo "$as_me:$LINENO: result: no" >&5
17260 echo "${ECHO_T}no" >&6
17267 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
17268 if test "${with_embedded_mysql+set}" = set; then
17269 withval="$with_embedded_mysql"
17271 if test "$withval" != "no"; then
17272 if test "$withval" = "yes"; then
17273 if test -f /usr/local/mysql/include/mysql/mysql.h; then
17274 MYSQL_INCDIR=/usr/local/mysql/include/mysql
17275 if test -d /usr/local/mysql/lib64/mysql; then
17276 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
17278 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
17280 MYSQL_BINDIR=/usr/local/mysql/bin
17281 elif test -f /usr/include/mysql/mysql.h; then
17282 MYSQL_INCDIR=/usr/include/mysql
17283 if test -d /usr/lib64/mysql; then
17284 MYSQL_LIBDIR=/usr/lib64/mysql
17286 MYSQL_LIBDIR=/usr/lib/mysql
17288 MYSQL_BINDIR=/usr/bin
17289 elif test -f /usr/include/mysql.h; then
17290 MYSQL_INCDIR=/usr/include
17291 if test -d /usr/lib64; then
17292 MYSQL_LIBDIR=/usr/lib64
17294 MYSQL_LIBDIR=/usr/lib
17296 MYSQL_BINDIR=/usr/bin
17297 elif test -f /usr/local/include/mysql/mysql.h; then
17298 MYSQL_INCDIR=/usr/local/include/mysql
17299 if test -d /usr/local/lib64/mysql; then
17300 MYSQL_LIBDIR=/usr/local/lib64/mysql
17302 MYSQL_LIBDIR=/usr/local/lib/mysql
17304 MYSQL_BINDIR=/usr/local/bin
17305 elif test -f /usr/local/include/mysql.h; then
17306 MYSQL_INCDIR=/usr/local/include
17307 if test -d /usr/local/lib64; then
17308 MYSQL_LIBDIR=/usr/local/lib64
17310 MYSQL_LIBDIR=/usr/local/lib
17312 MYSQL_BINDIR=/usr/local/bin
17314 echo "$as_me:$LINENO: result: no" >&5
17315 echo "${ECHO_T}no" >&6
17316 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
17317 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
17318 { (exit 1); exit 1; }; }
17321 if test -f $withval/include/mysql/mysql.h; then
17322 MYSQL_INCDIR=$withval/include/mysql
17323 if test -d $withval/lib64/mysql; then
17324 MYSQL_LIBDIR=$withval/lib64/mysql
17326 MYSQL_LIBDIR=$withval/lib/mysql
17328 MYSQL_BINDIR=$withval/bin
17329 elif test -f $withval/include/mysql.h; then
17330 MYSQL_INCDIR=$withval/include
17331 if test -d $withval/lib64; then
17332 MYSQL_LIBDIR=$withval/lib64
17334 MYSQL_LIBDIR=$withval/lib
17336 MYSQL_BINDIR=$withval/bin
17338 echo "$as_me:$LINENO: result: no" >&5
17339 echo "${ECHO_T}no" >&6
17340 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
17341 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
17342 { (exit 1); exit 1; }; }
17345 SQL_INCLUDE=-I$MYSQL_INCDIR
17346 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
17347 SQL_BINDIR=$MYSQL_BINDIR
17348 SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
17350 cat >>confdefs.h <<\_ACEOF
17351 #define HAVE_MYSQL 1
17354 cat >>confdefs.h <<\_ACEOF
17355 #define HAVE_EMBEDDED_MYSQL 1
17358 echo "$as_me:$LINENO: result: yes" >&5
17359 echo "${ECHO_T}yes" >&6
17366 echo "$as_me:$LINENO: result: no" >&5
17367 echo "${ECHO_T}no" >&6
17382 echo "$as_me:$LINENO: checking for SQLite3 support" >&5
17383 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6
17385 # Check whether --with-sqlite3 or --without-sqlite3 was given.
17386 if test "${with_sqlite3+set}" = set; then
17387 withval="$with_sqlite3"
17389 if test "$withval" != "no"; then
17390 if test "$withval" = "yes"; then
17391 if test -f /usr/local/include/sqlite3.h; then
17392 SQLITE_INCDIR=/usr/local/include
17393 if test -d /usr/local/lib64; then
17394 SQLITE_LIBDIR=/usr/local/lib64
17396 SQLITE_LIBDIR=/usr/local/lib
17398 SQLITE_BINDIR=/usr/local/bin
17399 elif test -f /usr/include/sqlite3.h; then
17400 SQLITE_INCDIR=/usr/include
17401 if test -d /usr/lib64; then
17402 SQLITE_LIBDIR=/usr/lib64
17404 SQLITE_LIBDIR=/usr/lib
17406 SQLITE_BINDIR=/usr/bin
17407 elif test -f $prefix/include/sqlite3.h; then
17408 SQLITE_INCDIR=$prefix/include
17409 if test -d $prefix/lib64; then
17410 SQLITE_LIBDIR=$prefix/lib64
17412 SQLITE_LIBDIR=$prefix/lib
17414 SQLITE_BINDIR=$prefix/bin
17416 echo "$as_me:$LINENO: result: no" >&5
17417 echo "${ECHO_T}no" >&6
17418 { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
17419 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
17420 { (exit 1); exit 1; }; }
17423 if test -f $withval/sqlite3.h; then
17424 SQLITE_INCDIR=$withval
17425 SQLITE_LIBDIR=$withval
17426 SQLITE_BINDIR=$withval
17427 elif test -f $withval/include/sqlite3.h; then
17428 SQLITE_INCDIR=$withval/include
17429 if test -d $withval/lib64; then
17430 SQLITE_LIBDIR=$withval/lib64
17432 SQLITE_LIBDIR=$withval/lib
17434 SQLITE_BINDIR=$withval/bin
17436 echo "$as_me:$LINENO: result: no" >&5
17437 echo "${ECHO_T}no" >&6
17438 { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
17439 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
17440 { (exit 1); exit 1; }; }
17443 SQL_INCLUDE=-I$SQLITE_INCDIR
17444 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
17445 SQL_BINDIR=$SQLITE_BINDIR
17446 SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
17448 cat >>confdefs.h <<\_ACEOF
17449 #define HAVE_SQLITE3 1
17452 echo "$as_me:$LINENO: result: yes" >&5
17453 echo "${ECHO_T}yes" >&6
17455 support_sqlite3=yes
17460 echo "$as_me:$LINENO: result: no" >&5
17461 echo "${ECHO_T}no" >&6
17466 echo "$as_me:$LINENO: result: no" >&5
17467 echo "${ECHO_T}no" >&6
17478 echo "$as_me:$LINENO: checking for SQLite support" >&5
17479 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
17481 # Check whether --with-sqlite or --without-sqlite was given.
17482 if test "${with_sqlite+set}" = set; then
17483 withval="$with_sqlite"
17485 if test "$withval" != "no"; then
17486 if test "$withval" = "yes"; then
17487 if test -f /usr/local/include/sqlite.h; then
17488 SQLITE_INCDIR=/usr/local/include
17489 if test -d /usr/local/lib64; then
17490 SQLITE_LIBDIR=/usr/local/lib64
17492 SQLITE_LIBDIR=/usr/local/lib
17494 SQLITE_BINDIR=/usr/local/bin
17495 elif test -f /usr/include/sqlite.h; then
17496 SQLITE_INCDIR=/usr/include
17497 if test -d /usr/lib64; then
17498 SQLITE_LIBDIR=/usr/lib64
17500 SQLITE_LIBDIR=/usr/lib
17502 SQLITE_BINDIR=/usr/bin
17503 elif test -f $prefix/include/sqlite.h; then
17504 SQLITE_INCDIR=$prefix/include
17505 if test -d $prefix/lib64; then
17506 SQLITE_LIBDIR=$prefix/lib64
17508 SQLITE_LIBDIR=$prefix/lib
17510 SQLITE_BINDIR=$prefix/bin
17512 echo "$as_me:$LINENO: result: no" >&5
17513 echo "${ECHO_T}no" >&6
17514 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
17515 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
17516 { (exit 1); exit 1; }; }
17519 if test -f $withval/sqlite.h; then
17520 SQLITE_INCDIR=$withval
17521 SQLITE_LIBDIR=$withval
17522 SQLITE_BINDIR=$withval
17523 elif test -f $withval/include/sqlite.h; then
17524 SQLITE_INCDIR=$withval/include
17525 if test -d $withval/lib64; then
17526 SQLITE_LIBDIR=$withval/lib64
17528 SQLITE_LIBDIR=$withval/lib
17530 SQLITE_BINDIR=$withval/bin
17532 echo "$as_me:$LINENO: result: no" >&5
17533 echo "${ECHO_T}no" >&6
17534 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
17535 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
17536 { (exit 1); exit 1; }; }
17539 SQL_INCLUDE=-I$SQLITE_INCDIR
17540 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
17541 SQL_BINDIR=$SQLITE_BINDIR
17542 SQL_LIB=$SQLITE_LIBDIR/libsqlite.a
17544 cat >>confdefs.h <<\_ACEOF
17545 #define HAVE_SQLITE 1
17548 echo "$as_me:$LINENO: result: yes" >&5
17549 echo "${ECHO_T}yes" >&6
17556 echo "$as_me:$LINENO: result: no" >&5
17557 echo "${ECHO_T}no" >&6
17562 echo "$as_me:$LINENO: result: no" >&5
17563 echo "${ECHO_T}no" >&6
17575 # -------------------------------------------
17576 # enable batch attribute DB insert (default on)
17577 # -------------------------------------------
17578 support_batch_insert=no
17579 A=`nm $SQL_LIB | grep pthread_mutex_lock`
17581 if test $pkg = 0; then
17582 support_batch_insert=yes
17583 # Check whether --enable-batch-insert or --disable-batch-insert was given.
17584 if test "${enable_batch_insert+set}" = set; then
17585 enableval="$enable_batch_insert"
17586 if test x$enableval = xno; then
17587 support_batch_insert=no
17589 support_batch_insert=yes
17594 # Check if postgresql support batch mode
17595 if test x$DB_TYPE = xpostgresql; then
17596 A=`nm $SQL_LIB | grep PQputCopyData`
17598 if test $pkg != 0; then
17599 support_batch_insert=no
17603 if test $support_batch_insert = yes ; then
17605 cat >>confdefs.h <<\_ACEOF
17606 #define HAVE_BATCH_FILE_INSERT 1
17612 cat >>confdefs.h <<\_ACEOF
17613 #define PROTOTYPES 1
17617 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
17618 if test -z "$CCOPTS"; then
17619 CCOPTS='-g -O2 -Wall'
17627 largefile_support="no"
17629 # Check whether --enable-largefile or --disable-largefile was given.
17630 if test "${enable_largefile+set}" = set; then
17631 enableval="$enable_largefile"
17634 if test "$enable_largefile" != no; then
17635 if test -n "$ac_tool_prefix"; then
17636 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
17637 set dummy ${ac_tool_prefix}getconf; ac_word=$2
17638 echo "$as_me:$LINENO: checking for $ac_word" >&5
17639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17640 if test "${ac_cv_prog_GETCONF+set}" = set; then
17641 echo $ECHO_N "(cached) $ECHO_C" >&6
17643 if test -n "$GETCONF"; then
17644 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
17646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17647 for as_dir in $PATH
17650 test -z "$as_dir" && as_dir=.
17651 for ac_exec_ext in '' $ac_executable_extensions; do
17652 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17653 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
17654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17662 GETCONF=$ac_cv_prog_GETCONF
17663 if test -n "$GETCONF"; then
17664 echo "$as_me:$LINENO: result: $GETCONF" >&5
17665 echo "${ECHO_T}$GETCONF" >&6
17667 echo "$as_me:$LINENO: result: no" >&5
17668 echo "${ECHO_T}no" >&6
17672 if test -z "$ac_cv_prog_GETCONF"; then
17673 ac_ct_GETCONF=$GETCONF
17674 # Extract the first word of "getconf", so it can be a program name with args.
17675 set dummy getconf; ac_word=$2
17676 echo "$as_me:$LINENO: checking for $ac_word" >&5
17677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17678 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
17679 echo $ECHO_N "(cached) $ECHO_C" >&6
17681 if test -n "$ac_ct_GETCONF"; then
17682 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
17684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17685 for as_dir in $PATH
17688 test -z "$as_dir" && as_dir=.
17689 for ac_exec_ext in '' $ac_executable_extensions; do
17690 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17691 ac_cv_prog_ac_ct_GETCONF="getconf"
17692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17700 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
17701 if test -n "$ac_ct_GETCONF"; then
17702 echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
17703 echo "${ECHO_T}$ac_ct_GETCONF" >&6
17705 echo "$as_me:$LINENO: result: no" >&5
17706 echo "${ECHO_T}no" >&6
17709 GETCONF=$ac_ct_GETCONF
17711 GETCONF="$ac_cv_prog_GETCONF"
17714 echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
17715 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
17716 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
17717 echo $ECHO_N "(cached) $ECHO_C" >&6
17719 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
17720 ac_cv_sys_largefile_CFLAGS=no
17722 # IRIX 6.2 and later require cc -n32.
17723 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
17724 if test "$GCC" != yes; then
17725 ac_cv_sys_largefile_CFLAGS=-n32
17728 CC="$CC $ac_cv_sys_largefile_CFLAGS"
17729 cat >conftest.$ac_ext <<_ACEOF
17732 cat confdefs.h >>conftest.$ac_ext
17733 cat >>conftest.$ac_ext <<_ACEOF
17734 /* end confdefs.h. */
17744 rm -f conftest.$ac_objext conftest$ac_exeext
17745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17746 (eval $ac_link) 2>conftest.er1
17748 grep -v '^ *+' conftest.er1 >conftest.err
17750 cat conftest.err >&5
17751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17752 (exit $ac_status); } &&
17753 { ac_try='test -z "$ac_c_werror_flag"
17754 || test ! -s conftest.err'
17755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17756 (eval $ac_try) 2>&5
17758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17759 (exit $ac_status); }; } &&
17760 { ac_try='test -s conftest$ac_exeext'
17761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17762 (eval $ac_try) 2>&5
17764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17765 (exit $ac_status); }; }; then
17768 echo "$as_me: failed program was:" >&5
17769 sed 's/^/| /' conftest.$ac_ext >&5
17771 ac_cv_sys_largefile_CFLAGS=no
17773 rm -f conftest.err conftest.$ac_objext \
17774 conftest$ac_exeext conftest.$ac_ext
17779 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
17780 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
17781 echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
17782 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
17783 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
17784 echo $ECHO_N "(cached) $ECHO_C" >&6
17786 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
17787 ac_cv_sys_largefile_LDFLAGS=no
17791 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
17792 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
17793 echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
17794 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
17795 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
17796 echo $ECHO_N "(cached) $ECHO_C" >&6
17798 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
17799 ac_cv_sys_largefile_LIBS=no
17803 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
17804 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
17806 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17809 -D_FILE_OFFSET_BITS=*) ;;
17810 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
17811 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
17816 case "$CPPFLAGS" in
17817 '') CPPFLAGS="$ac_flag" ;;
17818 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
17826 '') CFLAGS="$ac_flag" ;;
17827 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
17832 case "$ac_cv_sys_largefile_LDFLAGS" in
17836 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
17837 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
17840 case "$ac_cv_sys_largefile_LIBS" in
17844 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
17845 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
17848 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
17849 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
17850 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
17851 echo $ECHO_N "(cached) $ECHO_C" >&6
17853 ac_cv_sys_file_offset_bits=no
17854 ac_cv_sys_file_offset_bits=64
17855 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17857 -D_FILE_OFFSET_BITS)
17858 ac_cv_sys_file_offset_bits=1 ;;
17859 -D_FILE_OFFSET_BITS=*)
17860 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
17865 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
17866 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
17867 if test "$ac_cv_sys_file_offset_bits" != no; then
17869 cat >>confdefs.h <<_ACEOF
17870 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
17874 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
17875 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
17876 if test "${ac_cv_sys_largefile_source+set}" = set; then
17877 echo $ECHO_N "(cached) $ECHO_C" >&6
17879 ac_cv_sys_largefile_source=no
17880 ac_cv_sys_largefile_source=1
17881 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17883 -D_LARGEFILE_SOURCE)
17884 ac_cv_sys_largefile_source=1 ;;
17885 -D_LARGEFILE_SOURCE=*)
17886 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
17891 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
17892 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
17893 if test "$ac_cv_sys_largefile_source" != no; then
17895 cat >>confdefs.h <<_ACEOF
17896 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17900 echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
17901 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
17902 if test "${ac_cv_sys_large_files+set}" = set; then
17903 echo $ECHO_N "(cached) $ECHO_C" >&6
17905 ac_cv_sys_large_files=no
17906 ac_cv_sys_large_files=1
17907 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17910 ac_cv_sys_large_files=1 ;;
17912 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
17917 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
17918 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
17919 if test "$ac_cv_sys_large_files" != no; then
17921 cat >>confdefs.h <<_ACEOF
17922 #define _LARGE_FILES $ac_cv_sys_large_files
17930 echo "$as_me:$LINENO: checking for X" >&5
17931 echo $ECHO_N "checking for X... $ECHO_C" >&6
17934 # Check whether --with-x or --without-x was given.
17935 if test "${with_x+set}" = set; then
17939 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
17940 if test "x$with_x" = xno; then
17941 # The user explicitly disabled X.
17944 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
17945 # Both variables are already set.
17948 if test "${ac_cv_have_x+set}" = set; then
17949 echo $ECHO_N "(cached) $ECHO_C" >&6
17951 # One or both of the vars are not set, and there is no cached value.
17952 ac_x_includes=no ac_x_libraries=no
17953 rm -fr conftest.dir
17954 if mkdir conftest.dir; then
17956 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
17957 cat >Imakefile <<'_ACEOF'
17959 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
17961 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
17962 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
17963 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
17964 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
17965 for ac_extension in a so sl; do
17966 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
17967 test -f $ac_im_libdir/libX11.$ac_extension; then
17968 ac_im_usrlibdir=$ac_im_libdir; break
17971 # Screen out bogus values from the imake configuration. They are
17972 # bogus both because they are the default anyway, and because
17973 # using them would break gcc on systems where it needs fixed includes.
17974 case $ac_im_incroot in
17976 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
17978 case $ac_im_usrlibdir in
17979 /usr/lib | /lib) ;;
17980 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
17984 rm -fr conftest.dir
17987 # Standard set of common directories for X headers.
17988 # Check X11 before X11Rn because it is often a symlink to the current release.
18000 /usr/local/X11/include
18001 /usr/local/X11R6/include
18002 /usr/local/X11R5/include
18003 /usr/local/X11R4/include
18005 /usr/local/include/X11
18006 /usr/local/include/X11R6
18007 /usr/local/include/X11R5
18008 /usr/local/include/X11R4
18012 /usr/XFree86/include/X11
18016 /usr/unsupported/include
18017 /usr/athena/include
18018 /usr/local/x11r5/include
18019 /usr/lpp/Xamples/include
18021 /usr/openwin/include
18022 /usr/openwin/share/include'
18024 if test "$ac_x_includes" = no; then
18025 # Guess where to find include files, by looking for Xlib.h.
18026 # First, try using that file with no special directory specified.
18027 cat >conftest.$ac_ext <<_ACEOF
18030 cat confdefs.h >>conftest.$ac_ext
18031 cat >>conftest.$ac_ext <<_ACEOF
18032 /* end confdefs.h. */
18033 #include <X11/Xlib.h>
18035 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18036 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18038 grep -v '^ *+' conftest.er1 >conftest.err
18040 cat conftest.err >&5
18041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18042 (exit $ac_status); } >/dev/null; then
18043 if test -s conftest.err; then
18044 ac_cpp_err=$ac_c_preproc_warn_flag
18045 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18052 if test -z "$ac_cpp_err"; then
18053 # We can compile using X headers with no special include directory.
18056 echo "$as_me: failed program was:" >&5
18057 sed 's/^/| /' conftest.$ac_ext >&5
18059 for ac_dir in $ac_x_header_dirs; do
18060 if test -r "$ac_dir/X11/Xlib.h"; then
18061 ac_x_includes=$ac_dir
18066 rm -f conftest.err conftest.$ac_ext
18067 fi # $ac_x_includes = no
18069 if test "$ac_x_libraries" = no; then
18070 # Check for the libraries.
18071 # See if we find them without any special options.
18072 # Don't add to $LIBS permanently.
18075 cat >conftest.$ac_ext <<_ACEOF
18078 cat confdefs.h >>conftest.$ac_ext
18079 cat >>conftest.$ac_ext <<_ACEOF
18080 /* end confdefs.h. */
18081 #include <X11/Xlib.h>
18090 rm -f conftest.$ac_objext conftest$ac_exeext
18091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18092 (eval $ac_link) 2>conftest.er1
18094 grep -v '^ *+' conftest.er1 >conftest.err
18096 cat conftest.err >&5
18097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18098 (exit $ac_status); } &&
18099 { ac_try='test -z "$ac_c_werror_flag"
18100 || test ! -s conftest.err'
18101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18102 (eval $ac_try) 2>&5
18104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18105 (exit $ac_status); }; } &&
18106 { ac_try='test -s conftest$ac_exeext'
18107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18108 (eval $ac_try) 2>&5
18110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18111 (exit $ac_status); }; }; then
18113 # We can link X programs with no special library path.
18116 echo "$as_me: failed program was:" >&5
18117 sed 's/^/| /' conftest.$ac_ext >&5
18120 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
18122 # Don't even attempt the hair of trying to link an X program!
18123 for ac_extension in a so sl; do
18124 if test -r $ac_dir/libXt.$ac_extension; then
18125 ac_x_libraries=$ac_dir
18131 rm -f conftest.err conftest.$ac_objext \
18132 conftest$ac_exeext conftest.$ac_ext
18133 fi # $ac_x_libraries = no
18135 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
18136 # Didn't find X anywhere. Cache the known absence of X.
18137 ac_cv_have_x="have_x=no"
18139 # Record where we found X for the cache.
18140 ac_cv_have_x="have_x=yes \
18141 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
18146 eval "$ac_cv_have_x"
18149 if test "$have_x" != yes; then
18150 echo "$as_me:$LINENO: result: $have_x" >&5
18151 echo "${ECHO_T}$have_x" >&6
18154 # If each of the values was on the command line, it overrides each guess.
18155 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
18156 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
18157 # Update the cache value to reflect the command line values.
18158 ac_cv_have_x="have_x=yes \
18159 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
18160 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
18161 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
18164 if test "$no_x" = yes; then
18165 # Not all programs may use this symbol, but it does not hurt to define it.
18167 cat >>confdefs.h <<\_ACEOF
18168 #define X_DISPLAY_MISSING 1
18171 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
18173 if test -n "$x_includes"; then
18174 X_CFLAGS="$X_CFLAGS -I$x_includes"
18177 # It would also be nice to do this for all -L options, not just this one.
18178 if test -n "$x_libraries"; then
18179 X_LIBS="$X_LIBS -L$x_libraries"
18180 # For Solaris; some versions of Sun CC require a space after -R and
18181 # others require no space. Words are not sufficient . . . .
18182 case `(uname -sr) 2>/dev/null` in
18184 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
18185 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
18186 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
18187 cat >conftest.$ac_ext <<_ACEOF
18190 cat confdefs.h >>conftest.$ac_ext
18191 cat >>conftest.$ac_ext <<_ACEOF
18192 /* end confdefs.h. */
18202 rm -f conftest.$ac_objext conftest$ac_exeext
18203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18204 (eval $ac_link) 2>conftest.er1
18206 grep -v '^ *+' conftest.er1 >conftest.err
18208 cat conftest.err >&5
18209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18210 (exit $ac_status); } &&
18211 { ac_try='test -z "$ac_c_werror_flag"
18212 || test ! -s conftest.err'
18213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18214 (eval $ac_try) 2>&5
18216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18217 (exit $ac_status); }; } &&
18218 { ac_try='test -s conftest$ac_exeext'
18219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18220 (eval $ac_try) 2>&5
18222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18223 (exit $ac_status); }; }; then
18226 echo "$as_me: failed program was:" >&5
18227 sed 's/^/| /' conftest.$ac_ext >&5
18231 rm -f conftest.err conftest.$ac_objext \
18232 conftest$ac_exeext conftest.$ac_ext
18233 if test $ac_R_nospace = yes; then
18234 echo "$as_me:$LINENO: result: no" >&5
18235 echo "${ECHO_T}no" >&6
18236 X_LIBS="$X_LIBS -R$x_libraries"
18238 LIBS="$ac_xsave_LIBS -R $x_libraries"
18239 cat >conftest.$ac_ext <<_ACEOF
18242 cat confdefs.h >>conftest.$ac_ext
18243 cat >>conftest.$ac_ext <<_ACEOF
18244 /* end confdefs.h. */
18254 rm -f conftest.$ac_objext conftest$ac_exeext
18255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18256 (eval $ac_link) 2>conftest.er1
18258 grep -v '^ *+' conftest.er1 >conftest.err
18260 cat conftest.err >&5
18261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18262 (exit $ac_status); } &&
18263 { ac_try='test -z "$ac_c_werror_flag"
18264 || test ! -s conftest.err'
18265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18266 (eval $ac_try) 2>&5
18268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18269 (exit $ac_status); }; } &&
18270 { ac_try='test -s conftest$ac_exeext'
18271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18272 (eval $ac_try) 2>&5
18274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18275 (exit $ac_status); }; }; then
18278 echo "$as_me: failed program was:" >&5
18279 sed 's/^/| /' conftest.$ac_ext >&5
18283 rm -f conftest.err conftest.$ac_objext \
18284 conftest$ac_exeext conftest.$ac_ext
18285 if test $ac_R_space = yes; then
18286 echo "$as_me:$LINENO: result: yes" >&5
18287 echo "${ECHO_T}yes" >&6
18288 X_LIBS="$X_LIBS -R $x_libraries"
18290 echo "$as_me:$LINENO: result: neither works" >&5
18291 echo "${ECHO_T}neither works" >&6
18294 LIBS=$ac_xsave_LIBS
18298 # Check for system-dependent libraries X programs must link with.
18299 # Do this before checking for the system-independent R6 libraries
18300 # (-lICE), since we may need -lsocket or whatever for X linking.
18302 if test "$ISC" = yes; then
18303 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
18305 # Martyn Johnson says this is needed for Ultrix, if the X
18306 # libraries were built with DECnet support. And Karl Berry says
18307 # the Alpha needs dnet_stub (dnet does not exist).
18308 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
18309 cat >conftest.$ac_ext <<_ACEOF
18312 cat confdefs.h >>conftest.$ac_ext
18313 cat >>conftest.$ac_ext <<_ACEOF
18314 /* end confdefs.h. */
18316 /* Override any gcc2 internal prototype to avoid an error. */
18320 /* We use char because int might match the return type of a gcc2
18321 builtin and then its argument prototype would still apply. */
18322 char XOpenDisplay ();
18331 rm -f conftest.$ac_objext conftest$ac_exeext
18332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18333 (eval $ac_link) 2>conftest.er1
18335 grep -v '^ *+' conftest.er1 >conftest.err
18337 cat conftest.err >&5
18338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18339 (exit $ac_status); } &&
18340 { ac_try='test -z "$ac_c_werror_flag"
18341 || test ! -s conftest.err'
18342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18343 (eval $ac_try) 2>&5
18345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346 (exit $ac_status); }; } &&
18347 { ac_try='test -s conftest$ac_exeext'
18348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18349 (eval $ac_try) 2>&5
18351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18352 (exit $ac_status); }; }; then
18355 echo "$as_me: failed program was:" >&5
18356 sed 's/^/| /' conftest.$ac_ext >&5
18358 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
18359 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
18360 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
18361 echo $ECHO_N "(cached) $ECHO_C" >&6
18363 ac_check_lib_save_LIBS=$LIBS
18364 LIBS="-ldnet $LIBS"
18365 cat >conftest.$ac_ext <<_ACEOF
18368 cat confdefs.h >>conftest.$ac_ext
18369 cat >>conftest.$ac_ext <<_ACEOF
18370 /* end confdefs.h. */
18372 /* Override any gcc2 internal prototype to avoid an error. */
18376 /* We use char because int might match the return type of a gcc2
18377 builtin and then its argument prototype would still apply. */
18387 rm -f conftest.$ac_objext conftest$ac_exeext
18388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18389 (eval $ac_link) 2>conftest.er1
18391 grep -v '^ *+' conftest.er1 >conftest.err
18393 cat conftest.err >&5
18394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18395 (exit $ac_status); } &&
18396 { ac_try='test -z "$ac_c_werror_flag"
18397 || test ! -s conftest.err'
18398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18399 (eval $ac_try) 2>&5
18401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18402 (exit $ac_status); }; } &&
18403 { ac_try='test -s conftest$ac_exeext'
18404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18405 (eval $ac_try) 2>&5
18407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18408 (exit $ac_status); }; }; then
18409 ac_cv_lib_dnet_dnet_ntoa=yes
18411 echo "$as_me: failed program was:" >&5
18412 sed 's/^/| /' conftest.$ac_ext >&5
18414 ac_cv_lib_dnet_dnet_ntoa=no
18416 rm -f conftest.err conftest.$ac_objext \
18417 conftest$ac_exeext conftest.$ac_ext
18418 LIBS=$ac_check_lib_save_LIBS
18420 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
18421 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
18422 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
18423 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
18426 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
18427 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
18428 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
18429 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
18430 echo $ECHO_N "(cached) $ECHO_C" >&6
18432 ac_check_lib_save_LIBS=$LIBS
18433 LIBS="-ldnet_stub $LIBS"
18434 cat >conftest.$ac_ext <<_ACEOF
18437 cat confdefs.h >>conftest.$ac_ext
18438 cat >>conftest.$ac_ext <<_ACEOF
18439 /* end confdefs.h. */
18441 /* 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. */
18456 rm -f conftest.$ac_objext conftest$ac_exeext
18457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18458 (eval $ac_link) 2>conftest.er1
18460 grep -v '^ *+' conftest.er1 >conftest.err
18462 cat conftest.err >&5
18463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18464 (exit $ac_status); } &&
18465 { ac_try='test -z "$ac_c_werror_flag"
18466 || test ! -s conftest.err'
18467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18468 (eval $ac_try) 2>&5
18470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18471 (exit $ac_status); }; } &&
18472 { ac_try='test -s conftest$ac_exeext'
18473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18474 (eval $ac_try) 2>&5
18476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18477 (exit $ac_status); }; }; then
18478 ac_cv_lib_dnet_stub_dnet_ntoa=yes
18480 echo "$as_me: failed program was:" >&5
18481 sed 's/^/| /' conftest.$ac_ext >&5
18483 ac_cv_lib_dnet_stub_dnet_ntoa=no
18485 rm -f conftest.err conftest.$ac_objext \
18486 conftest$ac_exeext conftest.$ac_ext
18487 LIBS=$ac_check_lib_save_LIBS
18489 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
18490 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
18491 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
18492 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
18497 rm -f conftest.err conftest.$ac_objext \
18498 conftest$ac_exeext conftest.$ac_ext
18499 LIBS="$ac_xsave_LIBS"
18501 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
18502 # to get the SysV transport functions.
18503 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
18505 # The nsl library prevents programs from opening the X display
18506 # on Irix 5.2, according to T.E. Dickey.
18507 # The functions gethostbyname, getservbyname, and inet_addr are
18508 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
18509 echo "$as_me:$LINENO: checking for gethostbyname" >&5
18510 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
18511 if test "${ac_cv_func_gethostbyname+set}" = set; then
18512 echo $ECHO_N "(cached) $ECHO_C" >&6
18514 cat >conftest.$ac_ext <<_ACEOF
18517 cat confdefs.h >>conftest.$ac_ext
18518 cat >>conftest.$ac_ext <<_ACEOF
18519 /* end confdefs.h. */
18520 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
18521 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18522 #define gethostbyname innocuous_gethostbyname
18524 /* System header to define __stub macros and hopefully few prototypes,
18525 which can conflict with char gethostbyname (); below.
18526 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18527 <limits.h> exists even on freestanding compilers. */
18530 # include <limits.h>
18532 # include <assert.h>
18535 #undef gethostbyname
18537 /* Override any gcc2 internal prototype to avoid an error. */
18542 /* We use char because int might match the return type of a gcc2
18543 builtin and then its argument prototype would still apply. */
18544 char gethostbyname ();
18545 /* The GNU C library defines this for functions which it implements
18546 to always fail with ENOSYS. Some functions are actually named
18547 something starting with __ and the normal name is an alias. */
18548 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
18551 char (*f) () = gethostbyname;
18560 return f != gethostbyname;
18565 rm -f conftest.$ac_objext conftest$ac_exeext
18566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18567 (eval $ac_link) 2>conftest.er1
18569 grep -v '^ *+' conftest.er1 >conftest.err
18571 cat conftest.err >&5
18572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18573 (exit $ac_status); } &&
18574 { ac_try='test -z "$ac_c_werror_flag"
18575 || test ! -s conftest.err'
18576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18577 (eval $ac_try) 2>&5
18579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18580 (exit $ac_status); }; } &&
18581 { ac_try='test -s conftest$ac_exeext'
18582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18583 (eval $ac_try) 2>&5
18585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18586 (exit $ac_status); }; }; then
18587 ac_cv_func_gethostbyname=yes
18589 echo "$as_me: failed program was:" >&5
18590 sed 's/^/| /' conftest.$ac_ext >&5
18592 ac_cv_func_gethostbyname=no
18594 rm -f conftest.err conftest.$ac_objext \
18595 conftest$ac_exeext conftest.$ac_ext
18597 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
18598 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
18600 if test $ac_cv_func_gethostbyname = no; then
18601 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
18602 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
18603 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
18604 echo $ECHO_N "(cached) $ECHO_C" >&6
18606 ac_check_lib_save_LIBS=$LIBS
18608 cat >conftest.$ac_ext <<_ACEOF
18611 cat confdefs.h >>conftest.$ac_ext
18612 cat >>conftest.$ac_ext <<_ACEOF
18613 /* end confdefs.h. */
18615 /* Override any gcc2 internal prototype to avoid an error. */
18619 /* We use char because int might match the return type of a gcc2
18620 builtin and then its argument prototype would still apply. */
18621 char gethostbyname ();
18630 rm -f conftest.$ac_objext conftest$ac_exeext
18631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18632 (eval $ac_link) 2>conftest.er1
18634 grep -v '^ *+' conftest.er1 >conftest.err
18636 cat conftest.err >&5
18637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18638 (exit $ac_status); } &&
18639 { ac_try='test -z "$ac_c_werror_flag"
18640 || test ! -s conftest.err'
18641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18642 (eval $ac_try) 2>&5
18644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18645 (exit $ac_status); }; } &&
18646 { ac_try='test -s conftest$ac_exeext'
18647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18648 (eval $ac_try) 2>&5
18650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18651 (exit $ac_status); }; }; then
18652 ac_cv_lib_nsl_gethostbyname=yes
18654 echo "$as_me: failed program was:" >&5
18655 sed 's/^/| /' conftest.$ac_ext >&5
18657 ac_cv_lib_nsl_gethostbyname=no
18659 rm -f conftest.err conftest.$ac_objext \
18660 conftest$ac_exeext conftest.$ac_ext
18661 LIBS=$ac_check_lib_save_LIBS
18663 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
18664 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
18665 if test $ac_cv_lib_nsl_gethostbyname = yes; then
18666 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
18669 if test $ac_cv_lib_nsl_gethostbyname = no; then
18670 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
18671 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
18672 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
18673 echo $ECHO_N "(cached) $ECHO_C" >&6
18675 ac_check_lib_save_LIBS=$LIBS
18677 cat >conftest.$ac_ext <<_ACEOF
18680 cat confdefs.h >>conftest.$ac_ext
18681 cat >>conftest.$ac_ext <<_ACEOF
18682 /* end confdefs.h. */
18684 /* Override any gcc2 internal prototype to avoid an error. */
18688 /* We use char because int might match the return type of a gcc2
18689 builtin and then its argument prototype would still apply. */
18690 char gethostbyname ();
18699 rm -f conftest.$ac_objext conftest$ac_exeext
18700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18701 (eval $ac_link) 2>conftest.er1
18703 grep -v '^ *+' conftest.er1 >conftest.err
18705 cat conftest.err >&5
18706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18707 (exit $ac_status); } &&
18708 { ac_try='test -z "$ac_c_werror_flag"
18709 || test ! -s conftest.err'
18710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18711 (eval $ac_try) 2>&5
18713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18714 (exit $ac_status); }; } &&
18715 { ac_try='test -s conftest$ac_exeext'
18716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18717 (eval $ac_try) 2>&5
18719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18720 (exit $ac_status); }; }; then
18721 ac_cv_lib_bsd_gethostbyname=yes
18723 echo "$as_me: failed program was:" >&5
18724 sed 's/^/| /' conftest.$ac_ext >&5
18726 ac_cv_lib_bsd_gethostbyname=no
18728 rm -f conftest.err conftest.$ac_objext \
18729 conftest$ac_exeext conftest.$ac_ext
18730 LIBS=$ac_check_lib_save_LIBS
18732 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
18733 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
18734 if test $ac_cv_lib_bsd_gethostbyname = yes; then
18735 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
18741 # lieder@skyler.mavd.honeywell.com says without -lsocket,
18742 # socket/setsockopt and other routines are undefined under SCO ODT
18743 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
18744 # on later versions), says Simon Leinen: it contains gethostby*
18745 # variants that don't use the name server (or something). -lsocket
18746 # must be given before -lnsl if both are needed. We assume that
18747 # if connect needs -lnsl, so does gethostbyname.
18748 echo "$as_me:$LINENO: checking for connect" >&5
18749 echo $ECHO_N "checking for connect... $ECHO_C" >&6
18750 if test "${ac_cv_func_connect+set}" = set; then
18751 echo $ECHO_N "(cached) $ECHO_C" >&6
18753 cat >conftest.$ac_ext <<_ACEOF
18756 cat confdefs.h >>conftest.$ac_ext
18757 cat >>conftest.$ac_ext <<_ACEOF
18758 /* end confdefs.h. */
18759 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
18760 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18761 #define connect innocuous_connect
18763 /* System header to define __stub macros and hopefully few prototypes,
18764 which can conflict with char connect (); below.
18765 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18766 <limits.h> exists even on freestanding compilers. */
18769 # include <limits.h>
18771 # include <assert.h>
18776 /* Override any gcc2 internal prototype to avoid an error. */
18781 /* We use char because int might match the return type of a gcc2
18782 builtin and then its argument prototype would still apply. */
18784 /* The GNU C library defines this for functions which it implements
18785 to always fail with ENOSYS. Some functions are actually named
18786 something starting with __ and the normal name is an alias. */
18787 #if defined (__stub_connect) || defined (__stub___connect)
18790 char (*f) () = connect;
18799 return f != connect;
18804 rm -f conftest.$ac_objext conftest$ac_exeext
18805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18806 (eval $ac_link) 2>conftest.er1
18808 grep -v '^ *+' conftest.er1 >conftest.err
18810 cat conftest.err >&5
18811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18812 (exit $ac_status); } &&
18813 { ac_try='test -z "$ac_c_werror_flag"
18814 || test ! -s conftest.err'
18815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18816 (eval $ac_try) 2>&5
18818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18819 (exit $ac_status); }; } &&
18820 { ac_try='test -s conftest$ac_exeext'
18821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18822 (eval $ac_try) 2>&5
18824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18825 (exit $ac_status); }; }; then
18826 ac_cv_func_connect=yes
18828 echo "$as_me: failed program was:" >&5
18829 sed 's/^/| /' conftest.$ac_ext >&5
18831 ac_cv_func_connect=no
18833 rm -f conftest.err conftest.$ac_objext \
18834 conftest$ac_exeext conftest.$ac_ext
18836 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
18837 echo "${ECHO_T}$ac_cv_func_connect" >&6
18839 if test $ac_cv_func_connect = no; then
18840 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
18841 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
18842 if test "${ac_cv_lib_socket_connect+set}" = set; then
18843 echo $ECHO_N "(cached) $ECHO_C" >&6
18845 ac_check_lib_save_LIBS=$LIBS
18846 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
18847 cat >conftest.$ac_ext <<_ACEOF
18850 cat confdefs.h >>conftest.$ac_ext
18851 cat >>conftest.$ac_ext <<_ACEOF
18852 /* end confdefs.h. */
18854 /* Override any gcc2 internal prototype to avoid an error. */
18858 /* We use char because int might match the return type of a gcc2
18859 builtin and then its argument prototype would still apply. */
18869 rm -f conftest.$ac_objext conftest$ac_exeext
18870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18871 (eval $ac_link) 2>conftest.er1
18873 grep -v '^ *+' conftest.er1 >conftest.err
18875 cat conftest.err >&5
18876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18877 (exit $ac_status); } &&
18878 { ac_try='test -z "$ac_c_werror_flag"
18879 || test ! -s conftest.err'
18880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18881 (eval $ac_try) 2>&5
18883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18884 (exit $ac_status); }; } &&
18885 { ac_try='test -s conftest$ac_exeext'
18886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18887 (eval $ac_try) 2>&5
18889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18890 (exit $ac_status); }; }; then
18891 ac_cv_lib_socket_connect=yes
18893 echo "$as_me: failed program was:" >&5
18894 sed 's/^/| /' conftest.$ac_ext >&5
18896 ac_cv_lib_socket_connect=no
18898 rm -f conftest.err conftest.$ac_objext \
18899 conftest$ac_exeext conftest.$ac_ext
18900 LIBS=$ac_check_lib_save_LIBS
18902 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
18903 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
18904 if test $ac_cv_lib_socket_connect = yes; then
18905 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
18910 # Guillermo Gomez says -lposix is necessary on A/UX.
18911 echo "$as_me:$LINENO: checking for remove" >&5
18912 echo $ECHO_N "checking for remove... $ECHO_C" >&6
18913 if test "${ac_cv_func_remove+set}" = set; then
18914 echo $ECHO_N "(cached) $ECHO_C" >&6
18916 cat >conftest.$ac_ext <<_ACEOF
18919 cat confdefs.h >>conftest.$ac_ext
18920 cat >>conftest.$ac_ext <<_ACEOF
18921 /* end confdefs.h. */
18922 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
18923 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18924 #define remove innocuous_remove
18926 /* System header to define __stub macros and hopefully few prototypes,
18927 which can conflict with char remove (); below.
18928 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18929 <limits.h> exists even on freestanding compilers. */
18932 # include <limits.h>
18934 # include <assert.h>
18939 /* Override any gcc2 internal prototype to avoid an error. */
18944 /* We use char because int might match the return type of a gcc2
18945 builtin and then its argument prototype would still apply. */
18947 /* The GNU C library defines this for functions which it implements
18948 to always fail with ENOSYS. Some functions are actually named
18949 something starting with __ and the normal name is an alias. */
18950 #if defined (__stub_remove) || defined (__stub___remove)
18953 char (*f) () = remove;
18962 return f != remove;
18967 rm -f conftest.$ac_objext conftest$ac_exeext
18968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18969 (eval $ac_link) 2>conftest.er1
18971 grep -v '^ *+' conftest.er1 >conftest.err
18973 cat conftest.err >&5
18974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18975 (exit $ac_status); } &&
18976 { ac_try='test -z "$ac_c_werror_flag"
18977 || test ! -s conftest.err'
18978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18979 (eval $ac_try) 2>&5
18981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18982 (exit $ac_status); }; } &&
18983 { ac_try='test -s conftest$ac_exeext'
18984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18985 (eval $ac_try) 2>&5
18987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18988 (exit $ac_status); }; }; then
18989 ac_cv_func_remove=yes
18991 echo "$as_me: failed program was:" >&5
18992 sed 's/^/| /' conftest.$ac_ext >&5
18994 ac_cv_func_remove=no
18996 rm -f conftest.err conftest.$ac_objext \
18997 conftest$ac_exeext conftest.$ac_ext
18999 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
19000 echo "${ECHO_T}$ac_cv_func_remove" >&6
19002 if test $ac_cv_func_remove = no; then
19003 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
19004 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
19005 if test "${ac_cv_lib_posix_remove+set}" = set; then
19006 echo $ECHO_N "(cached) $ECHO_C" >&6
19008 ac_check_lib_save_LIBS=$LIBS
19009 LIBS="-lposix $LIBS"
19010 cat >conftest.$ac_ext <<_ACEOF
19013 cat confdefs.h >>conftest.$ac_ext
19014 cat >>conftest.$ac_ext <<_ACEOF
19015 /* end confdefs.h. */
19017 /* Override any gcc2 internal prototype to avoid an error. */
19021 /* We use char because int might match the return type of a gcc2
19022 builtin and then its argument prototype would still apply. */
19032 rm -f conftest.$ac_objext conftest$ac_exeext
19033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19034 (eval $ac_link) 2>conftest.er1
19036 grep -v '^ *+' conftest.er1 >conftest.err
19038 cat conftest.err >&5
19039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19040 (exit $ac_status); } &&
19041 { ac_try='test -z "$ac_c_werror_flag"
19042 || test ! -s conftest.err'
19043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19044 (eval $ac_try) 2>&5
19046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19047 (exit $ac_status); }; } &&
19048 { ac_try='test -s conftest$ac_exeext'
19049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19050 (eval $ac_try) 2>&5
19052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19053 (exit $ac_status); }; }; then
19054 ac_cv_lib_posix_remove=yes
19056 echo "$as_me: failed program was:" >&5
19057 sed 's/^/| /' conftest.$ac_ext >&5
19059 ac_cv_lib_posix_remove=no
19061 rm -f conftest.err conftest.$ac_objext \
19062 conftest$ac_exeext conftest.$ac_ext
19063 LIBS=$ac_check_lib_save_LIBS
19065 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
19066 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
19067 if test $ac_cv_lib_posix_remove = yes; then
19068 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
19073 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
19074 echo "$as_me:$LINENO: checking for shmat" >&5
19075 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
19076 if test "${ac_cv_func_shmat+set}" = set; then
19077 echo $ECHO_N "(cached) $ECHO_C" >&6
19079 cat >conftest.$ac_ext <<_ACEOF
19082 cat confdefs.h >>conftest.$ac_ext
19083 cat >>conftest.$ac_ext <<_ACEOF
19084 /* end confdefs.h. */
19085 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
19086 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19087 #define shmat innocuous_shmat
19089 /* System header to define __stub macros and hopefully few prototypes,
19090 which can conflict with char shmat (); below.
19091 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19092 <limits.h> exists even on freestanding compilers. */
19095 # include <limits.h>
19097 # include <assert.h>
19102 /* Override any gcc2 internal prototype to avoid an error. */
19107 /* We use char because int might match the return type of a gcc2
19108 builtin and then its argument prototype would still apply. */
19110 /* The GNU C library defines this for functions which it implements
19111 to always fail with ENOSYS. Some functions are actually named
19112 something starting with __ and the normal name is an alias. */
19113 #if defined (__stub_shmat) || defined (__stub___shmat)
19116 char (*f) () = shmat;
19130 rm -f conftest.$ac_objext conftest$ac_exeext
19131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19132 (eval $ac_link) 2>conftest.er1
19134 grep -v '^ *+' conftest.er1 >conftest.err
19136 cat conftest.err >&5
19137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19138 (exit $ac_status); } &&
19139 { ac_try='test -z "$ac_c_werror_flag"
19140 || test ! -s conftest.err'
19141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19142 (eval $ac_try) 2>&5
19144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19145 (exit $ac_status); }; } &&
19146 { ac_try='test -s conftest$ac_exeext'
19147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19148 (eval $ac_try) 2>&5
19150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19151 (exit $ac_status); }; }; then
19152 ac_cv_func_shmat=yes
19154 echo "$as_me: failed program was:" >&5
19155 sed 's/^/| /' conftest.$ac_ext >&5
19157 ac_cv_func_shmat=no
19159 rm -f conftest.err conftest.$ac_objext \
19160 conftest$ac_exeext conftest.$ac_ext
19162 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
19163 echo "${ECHO_T}$ac_cv_func_shmat" >&6
19165 if test $ac_cv_func_shmat = no; then
19166 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
19167 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
19168 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
19169 echo $ECHO_N "(cached) $ECHO_C" >&6
19171 ac_check_lib_save_LIBS=$LIBS
19173 cat >conftest.$ac_ext <<_ACEOF
19176 cat confdefs.h >>conftest.$ac_ext
19177 cat >>conftest.$ac_ext <<_ACEOF
19178 /* end confdefs.h. */
19180 /* Override any gcc2 internal prototype to avoid an error. */
19184 /* We use char because int might match the return type of a gcc2
19185 builtin and then its argument prototype would still apply. */
19195 rm -f conftest.$ac_objext conftest$ac_exeext
19196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19197 (eval $ac_link) 2>conftest.er1
19199 grep -v '^ *+' conftest.er1 >conftest.err
19201 cat conftest.err >&5
19202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19203 (exit $ac_status); } &&
19204 { ac_try='test -z "$ac_c_werror_flag"
19205 || test ! -s conftest.err'
19206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19207 (eval $ac_try) 2>&5
19209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19210 (exit $ac_status); }; } &&
19211 { ac_try='test -s conftest$ac_exeext'
19212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19213 (eval $ac_try) 2>&5
19215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19216 (exit $ac_status); }; }; then
19217 ac_cv_lib_ipc_shmat=yes
19219 echo "$as_me: failed program was:" >&5
19220 sed 's/^/| /' conftest.$ac_ext >&5
19222 ac_cv_lib_ipc_shmat=no
19224 rm -f conftest.err conftest.$ac_objext \
19225 conftest$ac_exeext conftest.$ac_ext
19226 LIBS=$ac_check_lib_save_LIBS
19228 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
19229 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
19230 if test $ac_cv_lib_ipc_shmat = yes; then
19231 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
19237 # Check for libraries that X11R6 Xt/Xaw programs need.
19238 ac_save_LDFLAGS=$LDFLAGS
19239 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
19240 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
19241 # check for ICE first), but we must link in the order -lSM -lICE or
19242 # we get undefined symbols. So assume we have SM if we have ICE.
19243 # These have to be linked with before -lX11, unlike the other
19244 # libraries we check for below, so use a different variable.
19245 # John Interrante, Karl Berry
19246 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
19247 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
19248 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
19249 echo $ECHO_N "(cached) $ECHO_C" >&6
19251 ac_check_lib_save_LIBS=$LIBS
19252 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
19253 cat >conftest.$ac_ext <<_ACEOF
19256 cat confdefs.h >>conftest.$ac_ext
19257 cat >>conftest.$ac_ext <<_ACEOF
19258 /* end confdefs.h. */
19260 /* Override any gcc2 internal prototype to avoid an error. */
19264 /* We use char because int might match the return type of a gcc2
19265 builtin and then its argument prototype would still apply. */
19266 char IceConnectionNumber ();
19270 IceConnectionNumber ();
19275 rm -f conftest.$ac_objext conftest$ac_exeext
19276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19277 (eval $ac_link) 2>conftest.er1
19279 grep -v '^ *+' conftest.er1 >conftest.err
19281 cat conftest.err >&5
19282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19283 (exit $ac_status); } &&
19284 { ac_try='test -z "$ac_c_werror_flag"
19285 || test ! -s conftest.err'
19286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19287 (eval $ac_try) 2>&5
19289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19290 (exit $ac_status); }; } &&
19291 { ac_try='test -s conftest$ac_exeext'
19292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19293 (eval $ac_try) 2>&5
19295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19296 (exit $ac_status); }; }; then
19297 ac_cv_lib_ICE_IceConnectionNumber=yes
19299 echo "$as_me: failed program was:" >&5
19300 sed 's/^/| /' conftest.$ac_ext >&5
19302 ac_cv_lib_ICE_IceConnectionNumber=no
19304 rm -f conftest.err conftest.$ac_objext \
19305 conftest$ac_exeext conftest.$ac_ext
19306 LIBS=$ac_check_lib_save_LIBS
19308 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
19309 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
19310 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
19311 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
19314 LDFLAGS=$ac_save_LDFLAGS
19382 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19383 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19384 echo "$as_me:$LINENO: checking for $ac_header" >&5
19385 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19386 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19387 echo $ECHO_N "(cached) $ECHO_C" >&6
19389 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19390 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19392 # Is the header compilable?
19393 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19394 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19395 cat >conftest.$ac_ext <<_ACEOF
19398 cat confdefs.h >>conftest.$ac_ext
19399 cat >>conftest.$ac_ext <<_ACEOF
19400 /* end confdefs.h. */
19401 $ac_includes_default
19402 #include <$ac_header>
19404 rm -f conftest.$ac_objext
19405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19406 (eval $ac_compile) 2>conftest.er1
19408 grep -v '^ *+' conftest.er1 >conftest.err
19410 cat conftest.err >&5
19411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19412 (exit $ac_status); } &&
19413 { ac_try='test -z "$ac_c_werror_flag"
19414 || test ! -s conftest.err'
19415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19416 (eval $ac_try) 2>&5
19418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19419 (exit $ac_status); }; } &&
19420 { ac_try='test -s conftest.$ac_objext'
19421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19422 (eval $ac_try) 2>&5
19424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19425 (exit $ac_status); }; }; then
19426 ac_header_compiler=yes
19428 echo "$as_me: failed program was:" >&5
19429 sed 's/^/| /' conftest.$ac_ext >&5
19431 ac_header_compiler=no
19433 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19434 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19435 echo "${ECHO_T}$ac_header_compiler" >&6
19437 # Is the header present?
19438 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19439 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19440 cat >conftest.$ac_ext <<_ACEOF
19443 cat confdefs.h >>conftest.$ac_ext
19444 cat >>conftest.$ac_ext <<_ACEOF
19445 /* end confdefs.h. */
19446 #include <$ac_header>
19448 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19449 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19451 grep -v '^ *+' conftest.er1 >conftest.err
19453 cat conftest.err >&5
19454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19455 (exit $ac_status); } >/dev/null; then
19456 if test -s conftest.err; then
19457 ac_cpp_err=$ac_c_preproc_warn_flag
19458 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19465 if test -z "$ac_cpp_err"; then
19466 ac_header_preproc=yes
19468 echo "$as_me: failed program was:" >&5
19469 sed 's/^/| /' conftest.$ac_ext >&5
19471 ac_header_preproc=no
19473 rm -f conftest.err conftest.$ac_ext
19474 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19475 echo "${ECHO_T}$ac_header_preproc" >&6
19477 # So? What about this header?
19478 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19480 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19481 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19482 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19483 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19484 ac_header_preproc=yes
19487 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19488 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19489 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19490 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19491 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19492 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19493 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19494 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19495 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19496 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19497 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19498 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19501 ## ------------------------------------------ ##
19502 ## Report this to the AC_PACKAGE_NAME lists. ##
19503 ## ------------------------------------------ ##
19506 sed "s/^/$as_me: WARNING: /" >&2
19509 echo "$as_me:$LINENO: checking for $ac_header" >&5
19510 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19511 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19512 echo $ECHO_N "(cached) $ECHO_C" >&6
19514 eval "$as_ac_Header=\$ac_header_preproc"
19516 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19517 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19520 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19521 cat >>confdefs.h <<_ACEOF
19522 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19529 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19530 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19531 if test "${ac_cv_header_stdc+set}" = set; then
19532 echo $ECHO_N "(cached) $ECHO_C" >&6
19534 cat >conftest.$ac_ext <<_ACEOF
19537 cat confdefs.h >>conftest.$ac_ext
19538 cat >>conftest.$ac_ext <<_ACEOF
19539 /* end confdefs.h. */
19540 #include <stdlib.h>
19541 #include <stdarg.h>
19542 #include <string.h>
19553 rm -f conftest.$ac_objext
19554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19555 (eval $ac_compile) 2>conftest.er1
19557 grep -v '^ *+' conftest.er1 >conftest.err
19559 cat conftest.err >&5
19560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19561 (exit $ac_status); } &&
19562 { ac_try='test -z "$ac_c_werror_flag"
19563 || test ! -s conftest.err'
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); }; } &&
19569 { ac_try='test -s conftest.$ac_objext'
19570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19571 (eval $ac_try) 2>&5
19573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19574 (exit $ac_status); }; }; then
19575 ac_cv_header_stdc=yes
19577 echo "$as_me: failed program was:" >&5
19578 sed 's/^/| /' conftest.$ac_ext >&5
19580 ac_cv_header_stdc=no
19582 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19584 if test $ac_cv_header_stdc = yes; then
19585 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19586 cat >conftest.$ac_ext <<_ACEOF
19589 cat confdefs.h >>conftest.$ac_ext
19590 cat >>conftest.$ac_ext <<_ACEOF
19591 /* end confdefs.h. */
19592 #include <string.h>
19595 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19596 $EGREP "memchr" >/dev/null 2>&1; then
19599 ac_cv_header_stdc=no
19605 if test $ac_cv_header_stdc = yes; then
19606 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19607 cat >conftest.$ac_ext <<_ACEOF
19610 cat confdefs.h >>conftest.$ac_ext
19611 cat >>conftest.$ac_ext <<_ACEOF
19612 /* end confdefs.h. */
19613 #include <stdlib.h>
19616 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19617 $EGREP "free" >/dev/null 2>&1; then
19620 ac_cv_header_stdc=no
19626 if test $ac_cv_header_stdc = yes; then
19627 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19628 if test "$cross_compiling" = yes; then
19631 cat >conftest.$ac_ext <<_ACEOF
19634 cat confdefs.h >>conftest.$ac_ext
19635 cat >>conftest.$ac_ext <<_ACEOF
19636 /* end confdefs.h. */
19638 #if ((' ' & 0x0FF) == 0x020)
19639 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19640 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19642 # define ISLOWER(c) \
19643 (('a' <= (c) && (c) <= 'i') \
19644 || ('j' <= (c) && (c) <= 'r') \
19645 || ('s' <= (c) && (c) <= 'z'))
19646 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19649 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19654 for (i = 0; i < 256; i++)
19655 if (XOR (islower (i), ISLOWER (i))
19656 || toupper (i) != TOUPPER (i))
19661 rm -f conftest$ac_exeext
19662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19663 (eval $ac_link) 2>&5
19665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19666 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19668 (eval $ac_try) 2>&5
19670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19671 (exit $ac_status); }; }; then
19674 echo "$as_me: program exited with status $ac_status" >&5
19675 echo "$as_me: failed program was:" >&5
19676 sed 's/^/| /' conftest.$ac_ext >&5
19678 ( exit $ac_status )
19679 ac_cv_header_stdc=no
19681 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19685 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19686 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19687 if test $ac_cv_header_stdc = yes; then
19689 cat >>confdefs.h <<\_ACEOF
19690 #define STDC_HEADERS 1
19695 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
19696 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
19697 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
19698 echo $ECHO_N "(cached) $ECHO_C" >&6
19700 cat >conftest.$ac_ext <<_ACEOF
19703 cat confdefs.h >>conftest.$ac_ext
19704 cat >>conftest.$ac_ext <<_ACEOF
19705 /* end confdefs.h. */
19706 #include <sys/types.h>
19710 return makedev(0, 0);
19715 rm -f conftest.$ac_objext conftest$ac_exeext
19716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19717 (eval $ac_link) 2>conftest.er1
19719 grep -v '^ *+' conftest.er1 >conftest.err
19721 cat conftest.err >&5
19722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19723 (exit $ac_status); } &&
19724 { ac_try='test -z "$ac_c_werror_flag"
19725 || test ! -s conftest.err'
19726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19727 (eval $ac_try) 2>&5
19729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19730 (exit $ac_status); }; } &&
19731 { ac_try='test -s conftest$ac_exeext'
19732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19733 (eval $ac_try) 2>&5
19735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19736 (exit $ac_status); }; }; then
19737 ac_cv_header_sys_types_h_makedev=yes
19739 echo "$as_me: failed program was:" >&5
19740 sed 's/^/| /' conftest.$ac_ext >&5
19742 ac_cv_header_sys_types_h_makedev=no
19744 rm -f conftest.err conftest.$ac_objext \
19745 conftest$ac_exeext conftest.$ac_ext
19748 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
19749 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
19751 if test $ac_cv_header_sys_types_h_makedev = no; then
19752 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19753 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
19754 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
19755 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19756 echo $ECHO_N "(cached) $ECHO_C" >&6
19758 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
19759 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
19761 # Is the header compilable?
19762 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
19763 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
19764 cat >conftest.$ac_ext <<_ACEOF
19767 cat confdefs.h >>conftest.$ac_ext
19768 cat >>conftest.$ac_ext <<_ACEOF
19769 /* end confdefs.h. */
19770 $ac_includes_default
19771 #include <sys/mkdev.h>
19773 rm -f conftest.$ac_objext
19774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19775 (eval $ac_compile) 2>conftest.er1
19777 grep -v '^ *+' conftest.er1 >conftest.err
19779 cat conftest.err >&5
19780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19781 (exit $ac_status); } &&
19782 { ac_try='test -z "$ac_c_werror_flag"
19783 || test ! -s conftest.err'
19784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19785 (eval $ac_try) 2>&5
19787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19788 (exit $ac_status); }; } &&
19789 { ac_try='test -s conftest.$ac_objext'
19790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19791 (eval $ac_try) 2>&5
19793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19794 (exit $ac_status); }; }; then
19795 ac_header_compiler=yes
19797 echo "$as_me: failed program was:" >&5
19798 sed 's/^/| /' conftest.$ac_ext >&5
19800 ac_header_compiler=no
19802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19803 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19804 echo "${ECHO_T}$ac_header_compiler" >&6
19806 # Is the header present?
19807 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
19808 echo $ECHO_N "checking sys/mkdev.h presence... $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 #include <sys/mkdev.h>
19817 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19818 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19820 grep -v '^ *+' conftest.er1 >conftest.err
19822 cat conftest.err >&5
19823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19824 (exit $ac_status); } >/dev/null; then
19825 if test -s conftest.err; then
19826 ac_cpp_err=$ac_c_preproc_warn_flag
19827 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19834 if test -z "$ac_cpp_err"; then
19835 ac_header_preproc=yes
19837 echo "$as_me: failed program was:" >&5
19838 sed 's/^/| /' conftest.$ac_ext >&5
19840 ac_header_preproc=no
19842 rm -f conftest.err conftest.$ac_ext
19843 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19844 echo "${ECHO_T}$ac_header_preproc" >&6
19846 # So? What about this header?
19847 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19849 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
19850 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19851 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
19852 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
19853 ac_header_preproc=yes
19856 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
19857 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
19858 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
19859 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
19860 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
19861 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
19862 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
19863 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
19864 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
19865 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
19866 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
19867 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
19870 ## ------------------------------------------ ##
19871 ## Report this to the AC_PACKAGE_NAME lists. ##
19872 ## ------------------------------------------ ##
19875 sed "s/^/$as_me: WARNING: /" >&2
19878 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
19879 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
19880 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19881 echo $ECHO_N "(cached) $ECHO_C" >&6
19883 ac_cv_header_sys_mkdev_h=$ac_header_preproc
19885 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
19886 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
19889 if test $ac_cv_header_sys_mkdev_h = yes; then
19891 cat >>confdefs.h <<\_ACEOF
19892 #define MAJOR_IN_MKDEV 1
19899 if test $ac_cv_header_sys_mkdev_h = no; then
19900 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
19901 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
19902 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
19903 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
19904 echo $ECHO_N "(cached) $ECHO_C" >&6
19906 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
19907 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
19909 # Is the header compilable?
19910 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
19911 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
19912 cat >conftest.$ac_ext <<_ACEOF
19915 cat confdefs.h >>conftest.$ac_ext
19916 cat >>conftest.$ac_ext <<_ACEOF
19917 /* end confdefs.h. */
19918 $ac_includes_default
19919 #include <sys/sysmacros.h>
19921 rm -f conftest.$ac_objext
19922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19923 (eval $ac_compile) 2>conftest.er1
19925 grep -v '^ *+' conftest.er1 >conftest.err
19927 cat conftest.err >&5
19928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19929 (exit $ac_status); } &&
19930 { ac_try='test -z "$ac_c_werror_flag"
19931 || test ! -s conftest.err'
19932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19933 (eval $ac_try) 2>&5
19935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19936 (exit $ac_status); }; } &&
19937 { ac_try='test -s conftest.$ac_objext'
19938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19939 (eval $ac_try) 2>&5
19941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19942 (exit $ac_status); }; }; then
19943 ac_header_compiler=yes
19945 echo "$as_me: failed program was:" >&5
19946 sed 's/^/| /' conftest.$ac_ext >&5
19948 ac_header_compiler=no
19950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19951 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19952 echo "${ECHO_T}$ac_header_compiler" >&6
19954 # Is the header present?
19955 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
19956 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
19957 cat >conftest.$ac_ext <<_ACEOF
19960 cat confdefs.h >>conftest.$ac_ext
19961 cat >>conftest.$ac_ext <<_ACEOF
19962 /* end confdefs.h. */
19963 #include <sys/sysmacros.h>
19965 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19966 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19968 grep -v '^ *+' conftest.er1 >conftest.err
19970 cat conftest.err >&5
19971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19972 (exit $ac_status); } >/dev/null; then
19973 if test -s conftest.err; then
19974 ac_cpp_err=$ac_c_preproc_warn_flag
19975 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19982 if test -z "$ac_cpp_err"; then
19983 ac_header_preproc=yes
19985 echo "$as_me: failed program was:" >&5
19986 sed 's/^/| /' conftest.$ac_ext >&5
19988 ac_header_preproc=no
19990 rm -f conftest.err conftest.$ac_ext
19991 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19992 echo "${ECHO_T}$ac_header_preproc" >&6
19994 # So? What about this header?
19995 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19997 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
19998 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19999 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
20000 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
20001 ac_header_preproc=yes
20004 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
20005 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
20006 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
20007 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
20008 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
20009 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
20010 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
20011 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
20012 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
20013 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
20014 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
20015 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
20018 ## ------------------------------------------ ##
20019 ## Report this to the AC_PACKAGE_NAME lists. ##
20020 ## ------------------------------------------ ##
20023 sed "s/^/$as_me: WARNING: /" >&2
20026 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
20027 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
20028 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20029 echo $ECHO_N "(cached) $ECHO_C" >&6
20031 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
20033 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
20034 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
20037 if test $ac_cv_header_sys_sysmacros_h = yes; then
20039 cat >>confdefs.h <<\_ACEOF
20040 #define MAJOR_IN_SYSMACROS 1
20054 ac_header_dirent=no
20055 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20056 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20057 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
20058 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
20059 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20060 echo $ECHO_N "(cached) $ECHO_C" >&6
20062 cat >conftest.$ac_ext <<_ACEOF
20065 cat confdefs.h >>conftest.$ac_ext
20066 cat >>conftest.$ac_ext <<_ACEOF
20067 /* end confdefs.h. */
20068 #include <sys/types.h>
20080 rm -f conftest.$ac_objext
20081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20082 (eval $ac_compile) 2>conftest.er1
20084 grep -v '^ *+' conftest.er1 >conftest.err
20086 cat conftest.err >&5
20087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20088 (exit $ac_status); } &&
20089 { ac_try='test -z "$ac_c_werror_flag"
20090 || test ! -s conftest.err'
20091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20092 (eval $ac_try) 2>&5
20094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20095 (exit $ac_status); }; } &&
20096 { ac_try='test -s conftest.$ac_objext'
20097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20098 (eval $ac_try) 2>&5
20100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20101 (exit $ac_status); }; }; then
20102 eval "$as_ac_Header=yes"
20104 echo "$as_me: failed program was:" >&5
20105 sed 's/^/| /' conftest.$ac_ext >&5
20107 eval "$as_ac_Header=no"
20109 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20111 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20112 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20113 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20114 cat >>confdefs.h <<_ACEOF
20115 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20118 ac_header_dirent=$ac_hdr; break
20122 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20123 if test $ac_header_dirent = dirent.h; then
20124 echo "$as_me:$LINENO: checking for library containing opendir" >&5
20125 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
20126 if test "${ac_cv_search_opendir+set}" = set; then
20127 echo $ECHO_N "(cached) $ECHO_C" >&6
20129 ac_func_search_save_LIBS=$LIBS
20130 ac_cv_search_opendir=no
20131 cat >conftest.$ac_ext <<_ACEOF
20134 cat confdefs.h >>conftest.$ac_ext
20135 cat >>conftest.$ac_ext <<_ACEOF
20136 /* end confdefs.h. */
20138 /* Override any gcc2 internal prototype to avoid an error. */
20142 /* We use char because int might match the return type of a gcc2
20143 builtin and then its argument prototype would still apply. */
20153 rm -f conftest.$ac_objext conftest$ac_exeext
20154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20155 (eval $ac_link) 2>conftest.er1
20157 grep -v '^ *+' conftest.er1 >conftest.err
20159 cat conftest.err >&5
20160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20161 (exit $ac_status); } &&
20162 { ac_try='test -z "$ac_c_werror_flag"
20163 || test ! -s conftest.err'
20164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20165 (eval $ac_try) 2>&5
20167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20168 (exit $ac_status); }; } &&
20169 { ac_try='test -s conftest$ac_exeext'
20170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20171 (eval $ac_try) 2>&5
20173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20174 (exit $ac_status); }; }; then
20175 ac_cv_search_opendir="none required"
20177 echo "$as_me: failed program was:" >&5
20178 sed 's/^/| /' conftest.$ac_ext >&5
20181 rm -f conftest.err conftest.$ac_objext \
20182 conftest$ac_exeext conftest.$ac_ext
20183 if test "$ac_cv_search_opendir" = no; then
20184 for ac_lib in dir; do
20185 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20186 cat >conftest.$ac_ext <<_ACEOF
20189 cat confdefs.h >>conftest.$ac_ext
20190 cat >>conftest.$ac_ext <<_ACEOF
20191 /* end confdefs.h. */
20193 /* Override any gcc2 internal prototype to avoid an error. */
20197 /* We use char because int might match the return type of a gcc2
20198 builtin and then its argument prototype would still apply. */
20208 rm -f conftest.$ac_objext conftest$ac_exeext
20209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20210 (eval $ac_link) 2>conftest.er1
20212 grep -v '^ *+' conftest.er1 >conftest.err
20214 cat conftest.err >&5
20215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20216 (exit $ac_status); } &&
20217 { ac_try='test -z "$ac_c_werror_flag"
20218 || test ! -s conftest.err'
20219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20220 (eval $ac_try) 2>&5
20222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20223 (exit $ac_status); }; } &&
20224 { ac_try='test -s conftest$ac_exeext'
20225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20226 (eval $ac_try) 2>&5
20228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20229 (exit $ac_status); }; }; then
20230 ac_cv_search_opendir="-l$ac_lib"
20233 echo "$as_me: failed program was:" >&5
20234 sed 's/^/| /' conftest.$ac_ext >&5
20237 rm -f conftest.err conftest.$ac_objext \
20238 conftest$ac_exeext conftest.$ac_ext
20241 LIBS=$ac_func_search_save_LIBS
20243 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20244 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20245 if test "$ac_cv_search_opendir" != no; then
20246 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20251 echo "$as_me:$LINENO: checking for library containing opendir" >&5
20252 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
20253 if test "${ac_cv_search_opendir+set}" = set; then
20254 echo $ECHO_N "(cached) $ECHO_C" >&6
20256 ac_func_search_save_LIBS=$LIBS
20257 ac_cv_search_opendir=no
20258 cat >conftest.$ac_ext <<_ACEOF
20261 cat confdefs.h >>conftest.$ac_ext
20262 cat >>conftest.$ac_ext <<_ACEOF
20263 /* end confdefs.h. */
20265 /* Override any gcc2 internal prototype to avoid an error. */
20269 /* We use char because int might match the return type of a gcc2
20270 builtin and then its argument prototype would still apply. */
20280 rm -f conftest.$ac_objext conftest$ac_exeext
20281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20282 (eval $ac_link) 2>conftest.er1
20284 grep -v '^ *+' conftest.er1 >conftest.err
20286 cat conftest.err >&5
20287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20288 (exit $ac_status); } &&
20289 { ac_try='test -z "$ac_c_werror_flag"
20290 || test ! -s conftest.err'
20291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20292 (eval $ac_try) 2>&5
20294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20295 (exit $ac_status); }; } &&
20296 { ac_try='test -s conftest$ac_exeext'
20297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20298 (eval $ac_try) 2>&5
20300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20301 (exit $ac_status); }; }; then
20302 ac_cv_search_opendir="none required"
20304 echo "$as_me: failed program was:" >&5
20305 sed 's/^/| /' conftest.$ac_ext >&5
20308 rm -f conftest.err conftest.$ac_objext \
20309 conftest$ac_exeext conftest.$ac_ext
20310 if test "$ac_cv_search_opendir" = no; then
20311 for ac_lib in x; do
20312 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20313 cat >conftest.$ac_ext <<_ACEOF
20316 cat confdefs.h >>conftest.$ac_ext
20317 cat >>conftest.$ac_ext <<_ACEOF
20318 /* end confdefs.h. */
20320 /* Override any gcc2 internal prototype to avoid an error. */
20324 /* We use char because int might match the return type of a gcc2
20325 builtin and then its argument prototype would still apply. */
20335 rm -f conftest.$ac_objext conftest$ac_exeext
20336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20337 (eval $ac_link) 2>conftest.er1
20339 grep -v '^ *+' conftest.er1 >conftest.err
20341 cat conftest.err >&5
20342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20343 (exit $ac_status); } &&
20344 { ac_try='test -z "$ac_c_werror_flag"
20345 || test ! -s conftest.err'
20346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20347 (eval $ac_try) 2>&5
20349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20350 (exit $ac_status); }; } &&
20351 { ac_try='test -s conftest$ac_exeext'
20352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20353 (eval $ac_try) 2>&5
20355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20356 (exit $ac_status); }; }; then
20357 ac_cv_search_opendir="-l$ac_lib"
20360 echo "$as_me: failed program was:" >&5
20361 sed 's/^/| /' conftest.$ac_ext >&5
20364 rm -f conftest.err conftest.$ac_objext \
20365 conftest$ac_exeext conftest.$ac_ext
20368 LIBS=$ac_func_search_save_LIBS
20370 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20371 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20372 if test "$ac_cv_search_opendir" != no; then
20373 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20379 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
20380 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
20381 if test "${ac_cv_header_stat_broken+set}" = set; then
20382 echo $ECHO_N "(cached) $ECHO_C" >&6
20384 cat >conftest.$ac_ext <<_ACEOF
20387 cat confdefs.h >>conftest.$ac_ext
20388 cat >>conftest.$ac_ext <<_ACEOF
20389 /* end confdefs.h. */
20390 #include <sys/types.h>
20391 #include <sys/stat.h>
20393 #if defined(S_ISBLK) && defined(S_IFDIR)
20394 # if S_ISBLK (S_IFDIR)
20399 #if defined(S_ISBLK) && defined(S_IFCHR)
20400 # if S_ISBLK (S_IFCHR)
20405 #if defined(S_ISLNK) && defined(S_IFREG)
20406 # if S_ISLNK (S_IFREG)
20411 #if defined(S_ISSOCK) && defined(S_IFREG)
20412 # if S_ISSOCK (S_IFREG)
20418 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20419 $EGREP "You lose" >/dev/null 2>&1; then
20420 ac_cv_header_stat_broken=yes
20422 ac_cv_header_stat_broken=no
20427 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
20428 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
20429 if test $ac_cv_header_stat_broken = yes; then
20431 cat >>confdefs.h <<\_ACEOF
20432 #define STAT_MACROS_BROKEN 1
20437 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20438 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
20439 if test "${ac_cv_header_sys_wait_h+set}" = set; then
20440 echo $ECHO_N "(cached) $ECHO_C" >&6
20442 cat >conftest.$ac_ext <<_ACEOF
20445 cat confdefs.h >>conftest.$ac_ext
20446 cat >>conftest.$ac_ext <<_ACEOF
20447 /* end confdefs.h. */
20448 #include <sys/types.h>
20449 #include <sys/wait.h>
20450 #ifndef WEXITSTATUS
20451 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
20454 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20462 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20467 rm -f conftest.$ac_objext
20468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20469 (eval $ac_compile) 2>conftest.er1
20471 grep -v '^ *+' conftest.er1 >conftest.err
20473 cat conftest.err >&5
20474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20475 (exit $ac_status); } &&
20476 { ac_try='test -z "$ac_c_werror_flag"
20477 || test ! -s conftest.err'
20478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20479 (eval $ac_try) 2>&5
20481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20482 (exit $ac_status); }; } &&
20483 { ac_try='test -s conftest.$ac_objext'
20484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20485 (eval $ac_try) 2>&5
20487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20488 (exit $ac_status); }; }; then
20489 ac_cv_header_sys_wait_h=yes
20491 echo "$as_me: failed program was:" >&5
20492 sed 's/^/| /' conftest.$ac_ext >&5
20494 ac_cv_header_sys_wait_h=no
20496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20498 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20499 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
20500 if test $ac_cv_header_sys_wait_h = yes; then
20502 cat >>confdefs.h <<\_ACEOF
20503 #define HAVE_SYS_WAIT_H 1
20508 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20509 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20510 if test "${ac_cv_header_time+set}" = set; then
20511 echo $ECHO_N "(cached) $ECHO_C" >&6
20513 cat >conftest.$ac_ext <<_ACEOF
20516 cat confdefs.h >>conftest.$ac_ext
20517 cat >>conftest.$ac_ext <<_ACEOF
20518 /* end confdefs.h. */
20519 #include <sys/types.h>
20520 #include <sys/time.h>
20526 if ((struct tm *) 0)
20532 rm -f conftest.$ac_objext
20533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20534 (eval $ac_compile) 2>conftest.er1
20536 grep -v '^ *+' conftest.er1 >conftest.err
20538 cat conftest.err >&5
20539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20540 (exit $ac_status); } &&
20541 { ac_try='test -z "$ac_c_werror_flag"
20542 || test ! -s conftest.err'
20543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20544 (eval $ac_try) 2>&5
20546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20547 (exit $ac_status); }; } &&
20548 { ac_try='test -s conftest.$ac_objext'
20549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20550 (eval $ac_try) 2>&5
20552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20553 (exit $ac_status); }; }; then
20554 ac_cv_header_time=yes
20556 echo "$as_me: failed program was:" >&5
20557 sed 's/^/| /' conftest.$ac_ext >&5
20559 ac_cv_header_time=no
20561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20563 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20564 echo "${ECHO_T}$ac_cv_header_time" >&6
20565 if test $ac_cv_header_time = yes; then
20567 cat >>confdefs.h <<\_ACEOF
20568 #define TIME_WITH_SYS_TIME 1
20574 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
20575 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
20576 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
20577 echo $ECHO_N "(cached) $ECHO_C" >&6
20579 cat >conftest.$ac_ext <<_ACEOF
20582 cat confdefs.h >>conftest.$ac_ext
20583 cat >>conftest.$ac_ext <<_ACEOF
20584 /* end confdefs.h. */
20585 $ac_includes_default
20589 static struct stat ac_aggr;
20590 if (ac_aggr.st_blksize)
20596 rm -f conftest.$ac_objext
20597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20598 (eval $ac_compile) 2>conftest.er1
20600 grep -v '^ *+' conftest.er1 >conftest.err
20602 cat conftest.err >&5
20603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20604 (exit $ac_status); } &&
20605 { ac_try='test -z "$ac_c_werror_flag"
20606 || test ! -s conftest.err'
20607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20608 (eval $ac_try) 2>&5
20610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20611 (exit $ac_status); }; } &&
20612 { ac_try='test -s conftest.$ac_objext'
20613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20614 (eval $ac_try) 2>&5
20616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20617 (exit $ac_status); }; }; then
20618 ac_cv_member_struct_stat_st_blksize=yes
20620 echo "$as_me: failed program was:" >&5
20621 sed 's/^/| /' conftest.$ac_ext >&5
20623 cat >conftest.$ac_ext <<_ACEOF
20626 cat confdefs.h >>conftest.$ac_ext
20627 cat >>conftest.$ac_ext <<_ACEOF
20628 /* end confdefs.h. */
20629 $ac_includes_default
20633 static struct stat ac_aggr;
20634 if (sizeof ac_aggr.st_blksize)
20640 rm -f conftest.$ac_objext
20641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20642 (eval $ac_compile) 2>conftest.er1
20644 grep -v '^ *+' conftest.er1 >conftest.err
20646 cat conftest.err >&5
20647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20648 (exit $ac_status); } &&
20649 { ac_try='test -z "$ac_c_werror_flag"
20650 || test ! -s conftest.err'
20651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20652 (eval $ac_try) 2>&5
20654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20655 (exit $ac_status); }; } &&
20656 { ac_try='test -s conftest.$ac_objext'
20657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20658 (eval $ac_try) 2>&5
20660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20661 (exit $ac_status); }; }; then
20662 ac_cv_member_struct_stat_st_blksize=yes
20664 echo "$as_me: failed program was:" >&5
20665 sed 's/^/| /' conftest.$ac_ext >&5
20667 ac_cv_member_struct_stat_st_blksize=no
20669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20673 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
20674 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
20675 if test $ac_cv_member_struct_stat_st_blksize = yes; then
20677 cat >>confdefs.h <<_ACEOF
20678 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
20682 cat >>confdefs.h <<\_ACEOF
20683 #define HAVE_ST_BLKSIZE 1
20689 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
20690 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
20691 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
20692 echo $ECHO_N "(cached) $ECHO_C" >&6
20694 cat >conftest.$ac_ext <<_ACEOF
20697 cat confdefs.h >>conftest.$ac_ext
20698 cat >>conftest.$ac_ext <<_ACEOF
20699 /* end confdefs.h. */
20700 $ac_includes_default
20704 static struct stat ac_aggr;
20705 if (ac_aggr.st_blocks)
20711 rm -f conftest.$ac_objext
20712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20713 (eval $ac_compile) 2>conftest.er1
20715 grep -v '^ *+' conftest.er1 >conftest.err
20717 cat conftest.err >&5
20718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20719 (exit $ac_status); } &&
20720 { ac_try='test -z "$ac_c_werror_flag"
20721 || test ! -s conftest.err'
20722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20723 (eval $ac_try) 2>&5
20725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20726 (exit $ac_status); }; } &&
20727 { ac_try='test -s conftest.$ac_objext'
20728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20729 (eval $ac_try) 2>&5
20731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20732 (exit $ac_status); }; }; then
20733 ac_cv_member_struct_stat_st_blocks=yes
20735 echo "$as_me: failed program was:" >&5
20736 sed 's/^/| /' conftest.$ac_ext >&5
20738 cat >conftest.$ac_ext <<_ACEOF
20741 cat confdefs.h >>conftest.$ac_ext
20742 cat >>conftest.$ac_ext <<_ACEOF
20743 /* end confdefs.h. */
20744 $ac_includes_default
20748 static struct stat ac_aggr;
20749 if (sizeof ac_aggr.st_blocks)
20755 rm -f conftest.$ac_objext
20756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20757 (eval $ac_compile) 2>conftest.er1
20759 grep -v '^ *+' conftest.er1 >conftest.err
20761 cat conftest.err >&5
20762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20763 (exit $ac_status); } &&
20764 { ac_try='test -z "$ac_c_werror_flag"
20765 || test ! -s conftest.err'
20766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20767 (eval $ac_try) 2>&5
20769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20770 (exit $ac_status); }; } &&
20771 { ac_try='test -s conftest.$ac_objext'
20772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20773 (eval $ac_try) 2>&5
20775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20776 (exit $ac_status); }; }; then
20777 ac_cv_member_struct_stat_st_blocks=yes
20779 echo "$as_me: failed program was:" >&5
20780 sed 's/^/| /' conftest.$ac_ext >&5
20782 ac_cv_member_struct_stat_st_blocks=no
20784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20786 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20788 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
20789 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
20790 if test $ac_cv_member_struct_stat_st_blocks = yes; then
20792 cat >>confdefs.h <<_ACEOF
20793 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
20797 cat >>confdefs.h <<\_ACEOF
20798 #define HAVE_ST_BLOCKS 1
20803 "fileblocks.$ac_objext" | \
20804 *" fileblocks.$ac_objext" | \
20805 "fileblocks.$ac_objext "* | \
20806 *" fileblocks.$ac_objext "* ) ;;
20807 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
20813 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20814 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20815 if test "${ac_cv_struct_tm+set}" = set; then
20816 echo $ECHO_N "(cached) $ECHO_C" >&6
20818 cat >conftest.$ac_ext <<_ACEOF
20821 cat confdefs.h >>conftest.$ac_ext
20822 cat >>conftest.$ac_ext <<_ACEOF
20823 /* end confdefs.h. */
20824 #include <sys/types.h>
20830 struct tm *tp; tp->tm_sec;
20835 rm -f conftest.$ac_objext
20836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20837 (eval $ac_compile) 2>conftest.er1
20839 grep -v '^ *+' conftest.er1 >conftest.err
20841 cat conftest.err >&5
20842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20843 (exit $ac_status); } &&
20844 { ac_try='test -z "$ac_c_werror_flag"
20845 || test ! -s conftest.err'
20846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20847 (eval $ac_try) 2>&5
20849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20850 (exit $ac_status); }; } &&
20851 { ac_try='test -s conftest.$ac_objext'
20852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20853 (eval $ac_try) 2>&5
20855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20856 (exit $ac_status); }; }; then
20857 ac_cv_struct_tm=time.h
20859 echo "$as_me: failed program was:" >&5
20860 sed 's/^/| /' conftest.$ac_ext >&5
20862 ac_cv_struct_tm=sys/time.h
20864 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20866 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20867 echo "${ECHO_T}$ac_cv_struct_tm" >&6
20868 if test $ac_cv_struct_tm = sys/time.h; then
20870 cat >>confdefs.h <<\_ACEOF
20871 #define TM_IN_SYS_TIME 1
20876 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
20877 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
20878 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20879 echo $ECHO_N "(cached) $ECHO_C" >&6
20881 cat >conftest.$ac_ext <<_ACEOF
20884 cat confdefs.h >>conftest.$ac_ext
20885 cat >>conftest.$ac_ext <<_ACEOF
20886 /* end confdefs.h. */
20887 #include <sys/types.h>
20888 #include <$ac_cv_struct_tm>
20894 static struct tm ac_aggr;
20895 if (ac_aggr.tm_zone)
20901 rm -f conftest.$ac_objext
20902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20903 (eval $ac_compile) 2>conftest.er1
20905 grep -v '^ *+' conftest.er1 >conftest.err
20907 cat conftest.err >&5
20908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20909 (exit $ac_status); } &&
20910 { ac_try='test -z "$ac_c_werror_flag"
20911 || test ! -s conftest.err'
20912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20913 (eval $ac_try) 2>&5
20915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20916 (exit $ac_status); }; } &&
20917 { ac_try='test -s conftest.$ac_objext'
20918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20919 (eval $ac_try) 2>&5
20921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20922 (exit $ac_status); }; }; then
20923 ac_cv_member_struct_tm_tm_zone=yes
20925 echo "$as_me: failed program was:" >&5
20926 sed 's/^/| /' conftest.$ac_ext >&5
20928 cat >conftest.$ac_ext <<_ACEOF
20931 cat confdefs.h >>conftest.$ac_ext
20932 cat >>conftest.$ac_ext <<_ACEOF
20933 /* end confdefs.h. */
20934 #include <sys/types.h>
20935 #include <$ac_cv_struct_tm>
20941 static struct tm ac_aggr;
20942 if (sizeof ac_aggr.tm_zone)
20948 rm -f conftest.$ac_objext
20949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20950 (eval $ac_compile) 2>conftest.er1
20952 grep -v '^ *+' conftest.er1 >conftest.err
20954 cat conftest.err >&5
20955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20956 (exit $ac_status); } &&
20957 { ac_try='test -z "$ac_c_werror_flag"
20958 || test ! -s conftest.err'
20959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20960 (eval $ac_try) 2>&5
20962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20963 (exit $ac_status); }; } &&
20964 { ac_try='test -s conftest.$ac_objext'
20965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20966 (eval $ac_try) 2>&5
20968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20969 (exit $ac_status); }; }; then
20970 ac_cv_member_struct_tm_tm_zone=yes
20972 echo "$as_me: failed program was:" >&5
20973 sed 's/^/| /' conftest.$ac_ext >&5
20975 ac_cv_member_struct_tm_tm_zone=no
20977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20981 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
20982 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
20983 if test $ac_cv_member_struct_tm_tm_zone = yes; then
20985 cat >>confdefs.h <<_ACEOF
20986 #define HAVE_STRUCT_TM_TM_ZONE 1
20992 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
20994 cat >>confdefs.h <<\_ACEOF
20995 #define HAVE_TM_ZONE 1
20999 echo "$as_me:$LINENO: checking for tzname" >&5
21000 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
21001 if test "${ac_cv_var_tzname+set}" = set; then
21002 echo $ECHO_N "(cached) $ECHO_C" >&6
21004 cat >conftest.$ac_ext <<_ACEOF
21007 cat confdefs.h >>conftest.$ac_ext
21008 cat >>conftest.$ac_ext <<_ACEOF
21009 /* end confdefs.h. */
21011 #ifndef tzname /* For SGI. */
21012 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
21023 rm -f conftest.$ac_objext conftest$ac_exeext
21024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21025 (eval $ac_link) 2>conftest.er1
21027 grep -v '^ *+' conftest.er1 >conftest.err
21029 cat conftest.err >&5
21030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21031 (exit $ac_status); } &&
21032 { ac_try='test -z "$ac_c_werror_flag"
21033 || test ! -s conftest.err'
21034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21035 (eval $ac_try) 2>&5
21037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21038 (exit $ac_status); }; } &&
21039 { ac_try='test -s conftest$ac_exeext'
21040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21041 (eval $ac_try) 2>&5
21043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21044 (exit $ac_status); }; }; then
21045 ac_cv_var_tzname=yes
21047 echo "$as_me: failed program was:" >&5
21048 sed 's/^/| /' conftest.$ac_ext >&5
21050 ac_cv_var_tzname=no
21052 rm -f conftest.err conftest.$ac_objext \
21053 conftest$ac_exeext conftest.$ac_ext
21055 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21056 echo "${ECHO_T}$ac_cv_var_tzname" >&6
21057 if test $ac_cv_var_tzname = yes; then
21059 cat >>confdefs.h <<\_ACEOF
21060 #define HAVE_TZNAME 1
21067 echo "$as_me:$LINENO: checking for utime.h" >&5
21068 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
21069 if test "${ba_cv_header_utime_h+set}" = set; then
21070 echo $ECHO_N "(cached) $ECHO_C" >&6
21072 cat >conftest.$ac_ext <<_ACEOF
21075 cat confdefs.h >>conftest.$ac_ext
21076 cat >>conftest.$ac_ext <<_ACEOF
21077 /* end confdefs.h. */
21079 #include <sys/types.h>
21089 rm -f conftest.$ac_objext
21090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21091 (eval $ac_compile) 2>conftest.er1
21093 grep -v '^ *+' conftest.er1 >conftest.err
21095 cat conftest.err >&5
21096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21097 (exit $ac_status); } &&
21098 { ac_try='test -z "$ac_c_werror_flag"
21099 || test ! -s conftest.err'
21100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21101 (eval $ac_try) 2>&5
21103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21104 (exit $ac_status); }; } &&
21105 { ac_try='test -s conftest.$ac_objext'
21106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21107 (eval $ac_try) 2>&5
21109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21110 (exit $ac_status); }; }; then
21111 ba_cv_header_utime_h=yes
21113 echo "$as_me: failed program was:" >&5
21114 sed 's/^/| /' conftest.$ac_ext >&5
21116 ba_cv_header_utime_h=no
21118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21120 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
21121 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
21122 test $ba_cv_header_utime_h = yes &&
21123 cat >>confdefs.h <<\_ACEOF
21124 #define HAVE_UTIME_H 1
21128 echo "$as_me:$LINENO: checking for socklen_t" >&5
21129 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
21130 if test "${ba_cv_header_socklen_t+set}" = set; then
21131 echo $ECHO_N "(cached) $ECHO_C" >&6
21133 cat >conftest.$ac_ext <<_ACEOF
21136 cat confdefs.h >>conftest.$ac_ext
21137 cat >>conftest.$ac_ext <<_ACEOF
21138 /* end confdefs.h. */
21140 #include <sys/types.h>
21141 #include <sys/socket.h>
21150 rm -f conftest.$ac_objext
21151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21152 (eval $ac_compile) 2>conftest.er1
21154 grep -v '^ *+' conftest.er1 >conftest.err
21156 cat conftest.err >&5
21157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21158 (exit $ac_status); } &&
21159 { ac_try='test -z "$ac_c_werror_flag"
21160 || test ! -s conftest.err'
21161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21162 (eval $ac_try) 2>&5
21164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21165 (exit $ac_status); }; } &&
21166 { ac_try='test -s conftest.$ac_objext'
21167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21168 (eval $ac_try) 2>&5
21170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21171 (exit $ac_status); }; }; then
21172 ba_cv_header_socklen_t=yes
21174 echo "$as_me: failed program was:" >&5
21175 sed 's/^/| /' conftest.$ac_ext >&5
21177 ba_cv_header_socklen_t=no
21179 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21181 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
21182 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
21183 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
21184 #define HAVE_SOCKLEN_T 1
21188 echo "$as_me:$LINENO: checking for bigendian" >&5
21189 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
21190 if test "${ba_cv_bigendian+set}" = set; then
21191 echo $ECHO_N "(cached) $ECHO_C" >&6
21193 if test "$cross_compiling" = yes; then
21196 cat >conftest.$ac_ext <<_ACEOF
21199 cat confdefs.h >>conftest.$ac_ext
21200 cat >>conftest.$ac_ext <<_ACEOF
21201 /* end confdefs.h. */
21202 main(){long a=1L; char *p=(char *)&a; exit(*p);}
21204 rm -f conftest$ac_exeext
21205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21206 (eval $ac_link) 2>&5
21208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21209 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21211 (eval $ac_try) 2>&5
21213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21214 (exit $ac_status); }; }; then
21215 ba_cv_bigendian=yes
21217 echo "$as_me: program exited with status $ac_status" >&5
21218 echo "$as_me: failed program was:" >&5
21219 sed 's/^/| /' conftest.$ac_ext >&5
21221 ( exit $ac_status )
21224 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21227 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
21228 echo "${ECHO_T}$ba_cv_bigendian" >&6
21229 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
21230 #define HAVE_BIGENDIAN 1
21235 ac_cpp='$CXXCPP $CPPFLAGS'
21236 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21237 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21238 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21241 echo "$as_me:$LINENO: checking for typeof" >&5
21242 echo $ECHO_N "checking for typeof... $ECHO_C" >&6
21243 if test "${ba_cv_have_typeof+set}" = set; then
21244 echo $ECHO_N "(cached) $ECHO_C" >&6
21246 if test "$cross_compiling" = yes; then
21247 ba_cv_have_typeof=no
21249 cat >conftest.$ac_ext <<_ACEOF
21252 cat confdefs.h >>conftest.$ac_ext
21253 cat >>conftest.$ac_ext <<_ACEOF
21254 /* end confdefs.h. */
21255 main(){char *a = 0; a = (typeof a)a;}
21257 rm -f conftest$ac_exeext
21258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21259 (eval $ac_link) 2>&5
21261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21262 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21264 (eval $ac_try) 2>&5
21266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21267 (exit $ac_status); }; }; then
21268 ba_cv_have_typeof=yes
21270 echo "$as_me: program exited with status $ac_status" >&5
21271 echo "$as_me: failed program was:" >&5
21272 sed 's/^/| /' conftest.$ac_ext >&5
21274 ( exit $ac_status )
21275 ba_cv_have_typeof=no
21277 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21280 echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
21281 echo "${ECHO_T}$ba_cv_have_typeof" >&6
21282 test $ba_cv_have_typeof = yes &&
21283 cat >>confdefs.h <<\_ACEOF
21284 #define HAVE_TYPEOF 1
21288 ac_cpp='$CPP $CPPFLAGS'
21289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21294 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21295 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
21296 if test "${ac_cv_c_const+set}" = set; then
21297 echo $ECHO_N "(cached) $ECHO_C" >&6
21299 cat >conftest.$ac_ext <<_ACEOF
21302 cat confdefs.h >>conftest.$ac_ext
21303 cat >>conftest.$ac_ext <<_ACEOF
21304 /* end confdefs.h. */
21309 /* FIXME: Include the comments suggested by Paul. */
21310 #ifndef __cplusplus
21311 /* Ultrix mips cc rejects this. */
21312 typedef int charset[2];
21314 /* SunOS 4.1.1 cc rejects this. */
21315 char const *const *ccp;
21317 /* NEC SVR4.0.2 mips cc rejects this. */
21318 struct point {int x, y;};
21319 static struct point const zero = {0,0};
21320 /* AIX XL C 1.02.0.0 rejects this.
21321 It does not let you subtract one const X* pointer from another in
21322 an arm of an if-expression whose if-part is not a constant
21324 const char *g = "string";
21325 ccp = &g + (g ? g-g : 0);
21326 /* HPUX 7.0 cc rejects these. */
21329 ccp = (char const *const *) p;
21330 { /* SCO 3.2v4 cc rejects this. */
21332 char const *s = 0 ? (char *) 0 : (char const *) 0;
21336 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21337 int x[] = {25, 17};
21338 const int *foo = &x[0];
21341 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21342 typedef const int *iptr;
21346 { /* AIX XL C 1.02.0.0 rejects this saying
21347 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21348 struct s { int j; const int *ap[3]; };
21349 struct s *b; b->j = 5;
21351 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21352 const int foo = 10;
21360 rm -f conftest.$ac_objext
21361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21362 (eval $ac_compile) 2>conftest.er1
21364 grep -v '^ *+' conftest.er1 >conftest.err
21366 cat conftest.err >&5
21367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21368 (exit $ac_status); } &&
21369 { ac_try='test -z "$ac_c_werror_flag"
21370 || test ! -s conftest.err'
21371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21372 (eval $ac_try) 2>&5
21374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21375 (exit $ac_status); }; } &&
21376 { ac_try='test -s conftest.$ac_objext'
21377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21378 (eval $ac_try) 2>&5
21380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21381 (exit $ac_status); }; }; then
21384 echo "$as_me: failed program was:" >&5
21385 sed 's/^/| /' conftest.$ac_ext >&5
21389 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21391 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21392 echo "${ECHO_T}$ac_cv_c_const" >&6
21393 if test $ac_cv_c_const = no; then
21395 cat >>confdefs.h <<\_ACEOF
21403 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
21404 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
21406 # The order of these tests is important.
21407 cat >conftest.$ac_ext <<_ACEOF
21410 cat confdefs.h >>conftest.$ac_ext
21411 cat >>conftest.$ac_ext <<_ACEOF
21412 /* end confdefs.h. */
21413 #include <sys/statvfs.h>
21414 #include <sys/fstyp.h>
21416 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21417 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21419 grep -v '^ *+' conftest.er1 >conftest.err
21421 cat conftest.err >&5
21422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21423 (exit $ac_status); } >/dev/null; then
21424 if test -s conftest.err; then
21425 ac_cpp_err=$ac_c_preproc_warn_flag
21426 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21433 if test -z "$ac_cpp_err"; then
21434 cat >>confdefs.h <<\_ACEOF
21435 #define FSTYPE_STATVFS 1
21439 echo "$as_me: failed program was:" >&5
21440 sed 's/^/| /' conftest.$ac_ext >&5
21444 rm -f conftest.err conftest.$ac_ext
21445 if test $fstype = no; then
21446 cat >conftest.$ac_ext <<_ACEOF
21449 cat confdefs.h >>conftest.$ac_ext
21450 cat >>conftest.$ac_ext <<_ACEOF
21451 /* end confdefs.h. */
21452 #include <sys/statfs.h>
21453 #include <sys/fstyp.h>
21455 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21456 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21458 grep -v '^ *+' conftest.er1 >conftest.err
21460 cat conftest.err >&5
21461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21462 (exit $ac_status); } >/dev/null; then
21463 if test -s conftest.err; then
21464 ac_cpp_err=$ac_c_preproc_warn_flag
21465 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21472 if test -z "$ac_cpp_err"; then
21473 cat >>confdefs.h <<\_ACEOF
21474 #define FSTYPE_USG_STATFS 1
21478 echo "$as_me: failed program was:" >&5
21479 sed 's/^/| /' conftest.$ac_ext >&5
21483 rm -f conftest.err conftest.$ac_ext
21485 if test $fstype = no; then
21486 cat >conftest.$ac_ext <<_ACEOF
21489 cat confdefs.h >>conftest.$ac_ext
21490 cat >>conftest.$ac_ext <<_ACEOF
21491 /* end confdefs.h. */
21492 #include <sys/statfs.h>
21493 #include <sys/vmount.h>
21495 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21496 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21498 grep -v '^ *+' conftest.er1 >conftest.err
21500 cat conftest.err >&5
21501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21502 (exit $ac_status); } >/dev/null; then
21503 if test -s conftest.err; then
21504 ac_cpp_err=$ac_c_preproc_warn_flag
21505 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21512 if test -z "$ac_cpp_err"; then
21513 cat >>confdefs.h <<\_ACEOF
21514 #define FSTYPE_AIX_STATFS 1
21518 echo "$as_me: failed program was:" >&5
21519 sed 's/^/| /' conftest.$ac_ext >&5
21523 rm -f conftest.err conftest.$ac_ext
21525 if test $fstype = no; then
21526 cat >conftest.$ac_ext <<_ACEOF
21529 cat confdefs.h >>conftest.$ac_ext
21530 cat >>conftest.$ac_ext <<_ACEOF
21531 /* end confdefs.h. */
21532 #include <mntent.h>
21534 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21535 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21537 grep -v '^ *+' conftest.er1 >conftest.err
21539 cat conftest.err >&5
21540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21541 (exit $ac_status); } >/dev/null; then
21542 if test -s conftest.err; then
21543 ac_cpp_err=$ac_c_preproc_warn_flag
21544 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21551 if test -z "$ac_cpp_err"; then
21552 cat >>confdefs.h <<\_ACEOF
21553 #define FSTYPE_MNTENT 1
21557 echo "$as_me: failed program was:" >&5
21558 sed 's/^/| /' conftest.$ac_ext >&5
21562 rm -f conftest.err conftest.$ac_ext
21564 if test $fstype = no; then
21565 cat >conftest.$ac_ext <<_ACEOF
21568 cat confdefs.h >>conftest.$ac_ext
21569 cat >>conftest.$ac_ext <<_ACEOF
21570 /* end confdefs.h. */
21571 #include <sys/mount.h>
21574 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21575 $EGREP "f_type;" >/dev/null 2>&1; then
21576 cat >>confdefs.h <<\_ACEOF
21577 #define FSTYPE_STATFS 1
21584 if test $fstype = no; then
21585 cat >conftest.$ac_ext <<_ACEOF
21588 cat confdefs.h >>conftest.$ac_ext
21589 cat >>conftest.$ac_ext <<_ACEOF
21590 /* end confdefs.h. */
21591 #include <sys/mount.h>
21592 #include <sys/fs_types.h>
21594 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21595 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21597 grep -v '^ *+' conftest.er1 >conftest.err
21599 cat conftest.err >&5
21600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21601 (exit $ac_status); } >/dev/null; then
21602 if test -s conftest.err; then
21603 ac_cpp_err=$ac_c_preproc_warn_flag
21604 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21611 if test -z "$ac_cpp_err"; then
21612 cat >>confdefs.h <<\_ACEOF
21613 #define FSTYPE_GETMNT 1
21617 echo "$as_me: failed program was:" >&5
21618 sed 's/^/| /' conftest.$ac_ext >&5
21622 rm -f conftest.err conftest.$ac_ext
21624 echo "$as_me:$LINENO: result: $fstype" >&5
21625 echo "${ECHO_T}$fstype" >&6
21627 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21628 echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
21629 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6
21630 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21631 echo $ECHO_N "(cached) $ECHO_C" >&6
21633 echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
21634 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6
21636 # Is the header compilable?
21637 echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
21638 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6
21639 cat >conftest.$ac_ext <<_ACEOF
21642 cat confdefs.h >>conftest.$ac_ext
21643 cat >>conftest.$ac_ext <<_ACEOF
21644 /* end confdefs.h. */
21645 $ac_includes_default
21646 #include <sys/statvfs.h>
21648 rm -f conftest.$ac_objext
21649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21650 (eval $ac_compile) 2>conftest.er1
21652 grep -v '^ *+' conftest.er1 >conftest.err
21654 cat conftest.err >&5
21655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21656 (exit $ac_status); } &&
21657 { ac_try='test -z "$ac_c_werror_flag"
21658 || test ! -s conftest.err'
21659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21660 (eval $ac_try) 2>&5
21662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21663 (exit $ac_status); }; } &&
21664 { ac_try='test -s conftest.$ac_objext'
21665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21666 (eval $ac_try) 2>&5
21668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21669 (exit $ac_status); }; }; then
21670 ac_header_compiler=yes
21672 echo "$as_me: failed program was:" >&5
21673 sed 's/^/| /' conftest.$ac_ext >&5
21675 ac_header_compiler=no
21677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21678 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21679 echo "${ECHO_T}$ac_header_compiler" >&6
21681 # Is the header present?
21682 echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
21683 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6
21684 cat >conftest.$ac_ext <<_ACEOF
21687 cat confdefs.h >>conftest.$ac_ext
21688 cat >>conftest.$ac_ext <<_ACEOF
21689 /* end confdefs.h. */
21690 #include <sys/statvfs.h>
21692 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21693 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21695 grep -v '^ *+' conftest.er1 >conftest.err
21697 cat conftest.err >&5
21698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21699 (exit $ac_status); } >/dev/null; then
21700 if test -s conftest.err; then
21701 ac_cpp_err=$ac_c_preproc_warn_flag
21702 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21709 if test -z "$ac_cpp_err"; then
21710 ac_header_preproc=yes
21712 echo "$as_me: failed program was:" >&5
21713 sed 's/^/| /' conftest.$ac_ext >&5
21715 ac_header_preproc=no
21717 rm -f conftest.err conftest.$ac_ext
21718 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21719 echo "${ECHO_T}$ac_header_preproc" >&6
21721 # So? What about this header?
21722 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21724 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
21725 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21726 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
21727 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
21728 ac_header_preproc=yes
21731 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
21732 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
21733 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&5
21734 echo "$as_me: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&2;}
21735 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
21736 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
21737 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&5
21738 echo "$as_me: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&2;}
21739 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
21740 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
21741 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
21742 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
21745 ## ------------------------------------------ ##
21746 ## Report this to the AC_PACKAGE_NAME lists. ##
21747 ## ------------------------------------------ ##
21750 sed "s/^/$as_me: WARNING: /" >&2
21753 echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
21754 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6
21755 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21756 echo $ECHO_N "(cached) $ECHO_C" >&6
21758 ac_cv_header_sys_statvfs_h=$ac_header_preproc
21760 echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
21761 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6
21764 if test $ac_cv_header_sys_statvfs_h = yes; then
21766 cat >>confdefs.h <<\_ACEOF
21767 #define HAVE_SYS_STATVFS_H 1
21774 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
21775 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
21776 if test "${ac_cv_type_signal+set}" = set; then
21777 echo $ECHO_N "(cached) $ECHO_C" >&6
21779 cat >conftest.$ac_ext <<_ACEOF
21782 cat confdefs.h >>conftest.$ac_ext
21783 cat >>conftest.$ac_ext <<_ACEOF
21784 /* end confdefs.h. */
21785 #include <sys/types.h>
21786 #include <signal.h>
21791 extern "C" void (*signal (int, void (*)(int)))(int);
21793 void (*signal ()) ();
21804 rm -f conftest.$ac_objext
21805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21806 (eval $ac_compile) 2>conftest.er1
21808 grep -v '^ *+' conftest.er1 >conftest.err
21810 cat conftest.err >&5
21811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21812 (exit $ac_status); } &&
21813 { ac_try='test -z "$ac_c_werror_flag"
21814 || test ! -s conftest.err'
21815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21816 (eval $ac_try) 2>&5
21818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21819 (exit $ac_status); }; } &&
21820 { ac_try='test -s conftest.$ac_objext'
21821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21822 (eval $ac_try) 2>&5
21824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21825 (exit $ac_status); }; }; then
21826 ac_cv_type_signal=void
21828 echo "$as_me: failed program was:" >&5
21829 sed 's/^/| /' conftest.$ac_ext >&5
21831 ac_cv_type_signal=int
21833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21835 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
21836 echo "${ECHO_T}$ac_cv_type_signal" >&6
21838 cat >>confdefs.h <<_ACEOF
21839 #define RETSIGTYPE $ac_cv_type_signal
21844 echo "$as_me:$LINENO: checking for type of signal functions" >&5
21845 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
21846 if test "${bash_cv_signal_vintage+set}" = set; then
21847 echo $ECHO_N "(cached) $ECHO_C" >&6
21850 cat >conftest.$ac_ext <<_ACEOF
21853 cat confdefs.h >>conftest.$ac_ext
21854 cat >>conftest.$ac_ext <<_ACEOF
21855 /* end confdefs.h. */
21856 #include <signal.h>
21862 struct sigaction sa;
21863 sigemptyset(&ss); sigsuspend(&ss);
21864 sigaction(SIGINT, &sa, (struct sigaction *) 0);
21865 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
21871 rm -f conftest.$ac_objext conftest$ac_exeext
21872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21873 (eval $ac_link) 2>conftest.er1
21875 grep -v '^ *+' conftest.er1 >conftest.err
21877 cat conftest.err >&5
21878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21879 (exit $ac_status); } &&
21880 { ac_try='test -z "$ac_c_werror_flag"
21881 || test ! -s conftest.err'
21882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21883 (eval $ac_try) 2>&5
21885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21886 (exit $ac_status); }; } &&
21887 { ac_try='test -s conftest$ac_exeext'
21888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21889 (eval $ac_try) 2>&5
21891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21892 (exit $ac_status); }; }; then
21893 bash_cv_signal_vintage="posix"
21895 echo "$as_me: failed program was:" >&5
21896 sed 's/^/| /' conftest.$ac_ext >&5
21899 cat >conftest.$ac_ext <<_ACEOF
21902 cat confdefs.h >>conftest.$ac_ext
21903 cat >>conftest.$ac_ext <<_ACEOF
21904 /* end confdefs.h. */
21905 #include <signal.h>
21910 int mask = sigmask(SIGINT);
21911 sigsetmask(mask); sigblock(mask); sigpause(mask);
21917 rm -f conftest.$ac_objext conftest$ac_exeext
21918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21919 (eval $ac_link) 2>conftest.er1
21921 grep -v '^ *+' conftest.er1 >conftest.err
21923 cat conftest.err >&5
21924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21925 (exit $ac_status); } &&
21926 { ac_try='test -z "$ac_c_werror_flag"
21927 || test ! -s conftest.err'
21928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21929 (eval $ac_try) 2>&5
21931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21932 (exit $ac_status); }; } &&
21933 { ac_try='test -s conftest$ac_exeext'
21934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21935 (eval $ac_try) 2>&5
21937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21938 (exit $ac_status); }; }; then
21939 bash_cv_signal_vintage="4.2bsd"
21941 echo "$as_me: failed program was:" >&5
21942 sed 's/^/| /' conftest.$ac_ext >&5
21945 cat >conftest.$ac_ext <<_ACEOF
21948 cat confdefs.h >>conftest.$ac_ext
21949 cat >>conftest.$ac_ext <<_ACEOF
21950 /* end confdefs.h. */
21952 #include <signal.h>
21953 RETSIGTYPE foo() { }
21958 int mask = sigmask(SIGINT);
21959 sigset(SIGINT, foo); sigrelse(SIGINT);
21960 sighold(SIGINT); sigpause(SIGINT);
21966 rm -f conftest.$ac_objext conftest$ac_exeext
21967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21968 (eval $ac_link) 2>conftest.er1
21970 grep -v '^ *+' conftest.er1 >conftest.err
21972 cat conftest.err >&5
21973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21974 (exit $ac_status); } &&
21975 { ac_try='test -z "$ac_c_werror_flag"
21976 || test ! -s conftest.err'
21977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21978 (eval $ac_try) 2>&5
21980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21981 (exit $ac_status); }; } &&
21982 { ac_try='test -s conftest$ac_exeext'
21983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21984 (eval $ac_try) 2>&5
21986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21987 (exit $ac_status); }; }; then
21988 bash_cv_signal_vintage="svr3"
21990 echo "$as_me: failed program was:" >&5
21991 sed 's/^/| /' conftest.$ac_ext >&5
21993 bash_cv_signal_vintage="v7"
21996 rm -f conftest.err conftest.$ac_objext \
21997 conftest$ac_exeext conftest.$ac_ext
22000 rm -f conftest.err conftest.$ac_objext \
22001 conftest$ac_exeext conftest.$ac_ext
22004 rm -f conftest.err conftest.$ac_objext \
22005 conftest$ac_exeext conftest.$ac_ext
22009 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
22010 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
22011 if test "$bash_cv_signal_vintage" = "posix"; then
22012 cat >>confdefs.h <<\_ACEOF
22013 #define HAVE_POSIX_SIGNALS 1
22016 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
22017 cat >>confdefs.h <<\_ACEOF
22018 #define HAVE_BSD_SIGNALS 1
22021 elif test "$bash_cv_signal_vintage" = "svr3"; then
22022 cat >>confdefs.h <<\_ACEOF
22023 #define HAVE_USG_SIGHOLD 1
22028 echo "$as_me:$LINENO: checking for mode_t" >&5
22029 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
22030 if test "${ac_cv_type_mode_t+set}" = set; then
22031 echo $ECHO_N "(cached) $ECHO_C" >&6
22033 cat >conftest.$ac_ext <<_ACEOF
22036 cat confdefs.h >>conftest.$ac_ext
22037 cat >>conftest.$ac_ext <<_ACEOF
22038 /* end confdefs.h. */
22039 $ac_includes_default
22045 if (sizeof (mode_t))
22051 rm -f conftest.$ac_objext
22052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22053 (eval $ac_compile) 2>conftest.er1
22055 grep -v '^ *+' conftest.er1 >conftest.err
22057 cat conftest.err >&5
22058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22059 (exit $ac_status); } &&
22060 { ac_try='test -z "$ac_c_werror_flag"
22061 || test ! -s conftest.err'
22062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22063 (eval $ac_try) 2>&5
22065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22066 (exit $ac_status); }; } &&
22067 { ac_try='test -s conftest.$ac_objext'
22068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22069 (eval $ac_try) 2>&5
22071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22072 (exit $ac_status); }; }; then
22073 ac_cv_type_mode_t=yes
22075 echo "$as_me: failed program was:" >&5
22076 sed 's/^/| /' conftest.$ac_ext >&5
22078 ac_cv_type_mode_t=no
22080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22082 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
22083 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
22084 if test $ac_cv_type_mode_t = yes; then
22088 cat >>confdefs.h <<_ACEOF
22094 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
22095 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
22096 if test "${ac_cv_type_uid_t+set}" = set; then
22097 echo $ECHO_N "(cached) $ECHO_C" >&6
22099 cat >conftest.$ac_ext <<_ACEOF
22102 cat confdefs.h >>conftest.$ac_ext
22103 cat >>conftest.$ac_ext <<_ACEOF
22104 /* end confdefs.h. */
22105 #include <sys/types.h>
22108 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22109 $EGREP "uid_t" >/dev/null 2>&1; then
22110 ac_cv_type_uid_t=yes
22112 ac_cv_type_uid_t=no
22117 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
22118 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
22119 if test $ac_cv_type_uid_t = no; then
22121 cat >>confdefs.h <<\_ACEOF
22126 cat >>confdefs.h <<\_ACEOF
22132 echo "$as_me:$LINENO: checking for size_t" >&5
22133 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
22134 if test "${ac_cv_type_size_t+set}" = set; then
22135 echo $ECHO_N "(cached) $ECHO_C" >&6
22137 cat >conftest.$ac_ext <<_ACEOF
22140 cat confdefs.h >>conftest.$ac_ext
22141 cat >>conftest.$ac_ext <<_ACEOF
22142 /* end confdefs.h. */
22143 $ac_includes_default
22149 if (sizeof (size_t))
22155 rm -f conftest.$ac_objext
22156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22157 (eval $ac_compile) 2>conftest.er1
22159 grep -v '^ *+' conftest.er1 >conftest.err
22161 cat conftest.err >&5
22162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22163 (exit $ac_status); } &&
22164 { ac_try='test -z "$ac_c_werror_flag"
22165 || test ! -s conftest.err'
22166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22167 (eval $ac_try) 2>&5
22169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22170 (exit $ac_status); }; } &&
22171 { ac_try='test -s conftest.$ac_objext'
22172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22173 (eval $ac_try) 2>&5
22175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22176 (exit $ac_status); }; }; then
22177 ac_cv_type_size_t=yes
22179 echo "$as_me: failed program was:" >&5
22180 sed 's/^/| /' conftest.$ac_ext >&5
22182 ac_cv_type_size_t=no
22184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22186 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22187 echo "${ECHO_T}$ac_cv_type_size_t" >&6
22188 if test $ac_cv_type_size_t = yes; then
22192 cat >>confdefs.h <<_ACEOF
22193 #define size_t unsigned
22198 echo "$as_me:$LINENO: checking for pid_t" >&5
22199 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
22200 if test "${ac_cv_type_pid_t+set}" = set; then
22201 echo $ECHO_N "(cached) $ECHO_C" >&6
22203 cat >conftest.$ac_ext <<_ACEOF
22206 cat confdefs.h >>conftest.$ac_ext
22207 cat >>conftest.$ac_ext <<_ACEOF
22208 /* end confdefs.h. */
22209 $ac_includes_default
22215 if (sizeof (pid_t))
22221 rm -f conftest.$ac_objext
22222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22223 (eval $ac_compile) 2>conftest.er1
22225 grep -v '^ *+' conftest.er1 >conftest.err
22227 cat conftest.err >&5
22228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22229 (exit $ac_status); } &&
22230 { ac_try='test -z "$ac_c_werror_flag"
22231 || test ! -s conftest.err'
22232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22233 (eval $ac_try) 2>&5
22235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22236 (exit $ac_status); }; } &&
22237 { ac_try='test -s conftest.$ac_objext'
22238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22239 (eval $ac_try) 2>&5
22241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22242 (exit $ac_status); }; }; then
22243 ac_cv_type_pid_t=yes
22245 echo "$as_me: failed program was:" >&5
22246 sed 's/^/| /' conftest.$ac_ext >&5
22248 ac_cv_type_pid_t=no
22250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22252 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22253 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
22254 if test $ac_cv_type_pid_t = yes; then
22258 cat >>confdefs.h <<_ACEOF
22264 echo "$as_me:$LINENO: checking for off_t" >&5
22265 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
22266 if test "${ac_cv_type_off_t+set}" = set; then
22267 echo $ECHO_N "(cached) $ECHO_C" >&6
22269 cat >conftest.$ac_ext <<_ACEOF
22272 cat confdefs.h >>conftest.$ac_ext
22273 cat >>conftest.$ac_ext <<_ACEOF
22274 /* end confdefs.h. */
22275 $ac_includes_default
22281 if (sizeof (off_t))
22287 rm -f conftest.$ac_objext
22288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22289 (eval $ac_compile) 2>conftest.er1
22291 grep -v '^ *+' conftest.er1 >conftest.err
22293 cat conftest.err >&5
22294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22295 (exit $ac_status); } &&
22296 { ac_try='test -z "$ac_c_werror_flag"
22297 || test ! -s conftest.err'
22298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22299 (eval $ac_try) 2>&5
22301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22302 (exit $ac_status); }; } &&
22303 { ac_try='test -s conftest.$ac_objext'
22304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22305 (eval $ac_try) 2>&5
22307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22308 (exit $ac_status); }; }; then
22309 ac_cv_type_off_t=yes
22311 echo "$as_me: failed program was:" >&5
22312 sed 's/^/| /' conftest.$ac_ext >&5
22314 ac_cv_type_off_t=no
22316 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22318 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
22319 echo "${ECHO_T}$ac_cv_type_off_t" >&6
22320 if test $ac_cv_type_off_t = yes; then
22324 cat >>confdefs.h <<_ACEOF
22330 echo "$as_me:$LINENO: checking for ino_t" >&5
22331 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
22332 if test "${ac_cv_type_ino_t+set}" = set; then
22333 echo $ECHO_N "(cached) $ECHO_C" >&6
22335 cat >conftest.$ac_ext <<_ACEOF
22338 cat confdefs.h >>conftest.$ac_ext
22339 cat >>conftest.$ac_ext <<_ACEOF
22340 /* end confdefs.h. */
22341 $ac_includes_default
22347 if (sizeof (ino_t))
22353 rm -f conftest.$ac_objext
22354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22355 (eval $ac_compile) 2>conftest.er1
22357 grep -v '^ *+' conftest.er1 >conftest.err
22359 cat conftest.err >&5
22360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22361 (exit $ac_status); } &&
22362 { ac_try='test -z "$ac_c_werror_flag"
22363 || test ! -s conftest.err'
22364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22365 (eval $ac_try) 2>&5
22367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22368 (exit $ac_status); }; } &&
22369 { ac_try='test -s conftest.$ac_objext'
22370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22371 (eval $ac_try) 2>&5
22373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22374 (exit $ac_status); }; }; then
22375 ac_cv_type_ino_t=yes
22377 echo "$as_me: failed program was:" >&5
22378 sed 's/^/| /' conftest.$ac_ext >&5
22380 ac_cv_type_ino_t=no
22382 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22384 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
22385 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
22386 if test $ac_cv_type_ino_t = yes; then
22390 cat >>confdefs.h <<_ACEOF
22391 #define ino_t unsigned long
22396 echo "$as_me:$LINENO: checking for dev_t" >&5
22397 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
22398 if test "${ac_cv_type_dev_t+set}" = set; then
22399 echo $ECHO_N "(cached) $ECHO_C" >&6
22401 cat >conftest.$ac_ext <<_ACEOF
22404 cat confdefs.h >>conftest.$ac_ext
22405 cat >>conftest.$ac_ext <<_ACEOF
22406 /* end confdefs.h. */
22407 $ac_includes_default
22413 if (sizeof (dev_t))
22419 rm -f conftest.$ac_objext
22420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22421 (eval $ac_compile) 2>conftest.er1
22423 grep -v '^ *+' conftest.er1 >conftest.err
22425 cat conftest.err >&5
22426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22427 (exit $ac_status); } &&
22428 { ac_try='test -z "$ac_c_werror_flag"
22429 || test ! -s conftest.err'
22430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22431 (eval $ac_try) 2>&5
22433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22434 (exit $ac_status); }; } &&
22435 { ac_try='test -s conftest.$ac_objext'
22436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22437 (eval $ac_try) 2>&5
22439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22440 (exit $ac_status); }; }; then
22441 ac_cv_type_dev_t=yes
22443 echo "$as_me: failed program was:" >&5
22444 sed 's/^/| /' conftest.$ac_ext >&5
22446 ac_cv_type_dev_t=no
22448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22450 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
22451 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
22452 if test $ac_cv_type_dev_t = yes; then
22456 cat >>confdefs.h <<_ACEOF
22457 #define dev_t unsigned long
22462 echo "$as_me:$LINENO: checking for daddr_t" >&5
22463 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
22464 if test "${ac_cv_type_daddr_t+set}" = set; then
22465 echo $ECHO_N "(cached) $ECHO_C" >&6
22467 cat >conftest.$ac_ext <<_ACEOF
22470 cat confdefs.h >>conftest.$ac_ext
22471 cat >>conftest.$ac_ext <<_ACEOF
22472 /* end confdefs.h. */
22473 $ac_includes_default
22479 if (sizeof (daddr_t))
22485 rm -f conftest.$ac_objext
22486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22487 (eval $ac_compile) 2>conftest.er1
22489 grep -v '^ *+' conftest.er1 >conftest.err
22491 cat conftest.err >&5
22492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22493 (exit $ac_status); } &&
22494 { ac_try='test -z "$ac_c_werror_flag"
22495 || test ! -s conftest.err'
22496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22497 (eval $ac_try) 2>&5
22499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22500 (exit $ac_status); }; } &&
22501 { ac_try='test -s conftest.$ac_objext'
22502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22503 (eval $ac_try) 2>&5
22505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22506 (exit $ac_status); }; }; then
22507 ac_cv_type_daddr_t=yes
22509 echo "$as_me: failed program was:" >&5
22510 sed 's/^/| /' conftest.$ac_ext >&5
22512 ac_cv_type_daddr_t=no
22514 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22516 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
22517 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
22518 if test $ac_cv_type_daddr_t = yes; then
22522 cat >>confdefs.h <<_ACEOF
22523 #define daddr_t long
22528 echo "$as_me:$LINENO: checking for major_t" >&5
22529 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
22530 if test "${ac_cv_type_major_t+set}" = set; then
22531 echo $ECHO_N "(cached) $ECHO_C" >&6
22533 cat >conftest.$ac_ext <<_ACEOF
22536 cat confdefs.h >>conftest.$ac_ext
22537 cat >>conftest.$ac_ext <<_ACEOF
22538 /* end confdefs.h. */
22539 $ac_includes_default
22545 if (sizeof (major_t))
22551 rm -f conftest.$ac_objext
22552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22553 (eval $ac_compile) 2>conftest.er1
22555 grep -v '^ *+' conftest.er1 >conftest.err
22557 cat conftest.err >&5
22558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22559 (exit $ac_status); } &&
22560 { ac_try='test -z "$ac_c_werror_flag"
22561 || test ! -s conftest.err'
22562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22563 (eval $ac_try) 2>&5
22565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22566 (exit $ac_status); }; } &&
22567 { ac_try='test -s conftest.$ac_objext'
22568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22569 (eval $ac_try) 2>&5
22571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22572 (exit $ac_status); }; }; then
22573 ac_cv_type_major_t=yes
22575 echo "$as_me: failed program was:" >&5
22576 sed 's/^/| /' conftest.$ac_ext >&5
22578 ac_cv_type_major_t=no
22580 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22582 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
22583 echo "${ECHO_T}$ac_cv_type_major_t" >&6
22584 if test $ac_cv_type_major_t = yes; then
22588 cat >>confdefs.h <<_ACEOF
22589 #define major_t int
22594 echo "$as_me:$LINENO: checking for minor_t" >&5
22595 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
22596 if test "${ac_cv_type_minor_t+set}" = set; then
22597 echo $ECHO_N "(cached) $ECHO_C" >&6
22599 cat >conftest.$ac_ext <<_ACEOF
22602 cat confdefs.h >>conftest.$ac_ext
22603 cat >>conftest.$ac_ext <<_ACEOF
22604 /* end confdefs.h. */
22605 $ac_includes_default
22611 if (sizeof (minor_t))
22617 rm -f conftest.$ac_objext
22618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22619 (eval $ac_compile) 2>conftest.er1
22621 grep -v '^ *+' conftest.er1 >conftest.err
22623 cat conftest.err >&5
22624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22625 (exit $ac_status); } &&
22626 { ac_try='test -z "$ac_c_werror_flag"
22627 || test ! -s conftest.err'
22628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22629 (eval $ac_try) 2>&5
22631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22632 (exit $ac_status); }; } &&
22633 { ac_try='test -s conftest.$ac_objext'
22634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22635 (eval $ac_try) 2>&5
22637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22638 (exit $ac_status); }; }; then
22639 ac_cv_type_minor_t=yes
22641 echo "$as_me: failed program was:" >&5
22642 sed 's/^/| /' conftest.$ac_ext >&5
22644 ac_cv_type_minor_t=no
22646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22648 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
22649 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
22650 if test $ac_cv_type_minor_t = yes; then
22654 cat >>confdefs.h <<_ACEOF
22655 #define minor_t int
22660 echo "$as_me:$LINENO: checking for ssize_t" >&5
22661 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
22662 if test "${ac_cv_type_ssize_t+set}" = set; then
22663 echo $ECHO_N "(cached) $ECHO_C" >&6
22665 cat >conftest.$ac_ext <<_ACEOF
22668 cat confdefs.h >>conftest.$ac_ext
22669 cat >>conftest.$ac_ext <<_ACEOF
22670 /* end confdefs.h. */
22671 $ac_includes_default
22677 if (sizeof (ssize_t))
22683 rm -f conftest.$ac_objext
22684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22685 (eval $ac_compile) 2>conftest.er1
22687 grep -v '^ *+' conftest.er1 >conftest.err
22689 cat conftest.err >&5
22690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22691 (exit $ac_status); } &&
22692 { ac_try='test -z "$ac_c_werror_flag"
22693 || test ! -s conftest.err'
22694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22695 (eval $ac_try) 2>&5
22697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22698 (exit $ac_status); }; } &&
22699 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
22705 ac_cv_type_ssize_t=yes
22707 echo "$as_me: failed program was:" >&5
22708 sed 's/^/| /' conftest.$ac_ext >&5
22710 ac_cv_type_ssize_t=no
22712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22714 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
22715 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
22716 if test $ac_cv_type_ssize_t = yes; then
22720 cat >>confdefs.h <<_ACEOF
22721 #define ssize_t int
22726 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
22727 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
22728 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
22729 echo $ECHO_N "(cached) $ECHO_C" >&6
22731 cat >conftest.$ac_ext <<_ACEOF
22734 cat confdefs.h >>conftest.$ac_ext
22735 cat >>conftest.$ac_ext <<_ACEOF
22736 /* end confdefs.h. */
22737 $ac_includes_default
22741 static struct stat ac_aggr;
22742 if (ac_aggr.st_blocks)
22748 rm -f conftest.$ac_objext
22749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22750 (eval $ac_compile) 2>conftest.er1
22752 grep -v '^ *+' conftest.er1 >conftest.err
22754 cat conftest.err >&5
22755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22756 (exit $ac_status); } &&
22757 { ac_try='test -z "$ac_c_werror_flag"
22758 || test ! -s conftest.err'
22759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22760 (eval $ac_try) 2>&5
22762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22763 (exit $ac_status); }; } &&
22764 { ac_try='test -s conftest.$ac_objext'
22765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22766 (eval $ac_try) 2>&5
22768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22769 (exit $ac_status); }; }; then
22770 ac_cv_member_struct_stat_st_blocks=yes
22772 echo "$as_me: failed program was:" >&5
22773 sed 's/^/| /' conftest.$ac_ext >&5
22775 cat >conftest.$ac_ext <<_ACEOF
22778 cat confdefs.h >>conftest.$ac_ext
22779 cat >>conftest.$ac_ext <<_ACEOF
22780 /* end confdefs.h. */
22781 $ac_includes_default
22785 static struct stat ac_aggr;
22786 if (sizeof ac_aggr.st_blocks)
22792 rm -f conftest.$ac_objext
22793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22794 (eval $ac_compile) 2>conftest.er1
22796 grep -v '^ *+' conftest.er1 >conftest.err
22798 cat conftest.err >&5
22799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22800 (exit $ac_status); } &&
22801 { ac_try='test -z "$ac_c_werror_flag"
22802 || test ! -s conftest.err'
22803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22804 (eval $ac_try) 2>&5
22806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22807 (exit $ac_status); }; } &&
22808 { ac_try='test -s conftest.$ac_objext'
22809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22810 (eval $ac_try) 2>&5
22812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22813 (exit $ac_status); }; }; then
22814 ac_cv_member_struct_stat_st_blocks=yes
22816 echo "$as_me: failed program was:" >&5
22817 sed 's/^/| /' conftest.$ac_ext >&5
22819 ac_cv_member_struct_stat_st_blocks=no
22821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22823 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22825 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
22826 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
22827 if test $ac_cv_member_struct_stat_st_blocks = yes; then
22829 cat >>confdefs.h <<_ACEOF
22830 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
22834 cat >>confdefs.h <<\_ACEOF
22835 #define HAVE_ST_BLOCKS 1
22840 "fileblocks.$ac_objext" | \
22841 *" fileblocks.$ac_objext" | \
22842 "fileblocks.$ac_objext "* | \
22843 *" fileblocks.$ac_objext "* ) ;;
22844 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
22851 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
22852 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
22853 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
22854 echo $ECHO_N "(cached) $ECHO_C" >&6
22856 cat >conftest.$ac_ext <<_ACEOF
22859 cat confdefs.h >>conftest.$ac_ext
22860 cat >>conftest.$ac_ext <<_ACEOF
22861 /* end confdefs.h. */
22862 $ac_includes_default
22866 static struct stat ac_aggr;
22867 if (ac_aggr.st_rdev)
22873 rm -f conftest.$ac_objext
22874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22875 (eval $ac_compile) 2>conftest.er1
22877 grep -v '^ *+' conftest.er1 >conftest.err
22879 cat conftest.err >&5
22880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22881 (exit $ac_status); } &&
22882 { ac_try='test -z "$ac_c_werror_flag"
22883 || test ! -s conftest.err'
22884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22885 (eval $ac_try) 2>&5
22887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22888 (exit $ac_status); }; } &&
22889 { ac_try='test -s conftest.$ac_objext'
22890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22891 (eval $ac_try) 2>&5
22893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22894 (exit $ac_status); }; }; then
22895 ac_cv_member_struct_stat_st_rdev=yes
22897 echo "$as_me: failed program was:" >&5
22898 sed 's/^/| /' conftest.$ac_ext >&5
22900 cat >conftest.$ac_ext <<_ACEOF
22903 cat confdefs.h >>conftest.$ac_ext
22904 cat >>conftest.$ac_ext <<_ACEOF
22905 /* end confdefs.h. */
22906 $ac_includes_default
22910 static struct stat ac_aggr;
22911 if (sizeof ac_aggr.st_rdev)
22917 rm -f conftest.$ac_objext
22918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22919 (eval $ac_compile) 2>conftest.er1
22921 grep -v '^ *+' conftest.er1 >conftest.err
22923 cat conftest.err >&5
22924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22925 (exit $ac_status); } &&
22926 { ac_try='test -z "$ac_c_werror_flag"
22927 || test ! -s conftest.err'
22928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929 (eval $ac_try) 2>&5
22931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22932 (exit $ac_status); }; } &&
22933 { ac_try='test -s conftest.$ac_objext'
22934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22935 (eval $ac_try) 2>&5
22937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22938 (exit $ac_status); }; }; then
22939 ac_cv_member_struct_stat_st_rdev=yes
22941 echo "$as_me: failed program was:" >&5
22942 sed 's/^/| /' conftest.$ac_ext >&5
22944 ac_cv_member_struct_stat_st_rdev=no
22946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22948 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22950 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
22951 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
22952 if test $ac_cv_member_struct_stat_st_rdev = yes; then
22954 cat >>confdefs.h <<_ACEOF
22955 #define HAVE_STRUCT_STAT_ST_RDEV 1
22959 cat >>confdefs.h <<\_ACEOF
22960 #define HAVE_ST_RDEV 1
22966 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
22967 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
22968 if test "${ac_cv_struct_tm+set}" = set; then
22969 echo $ECHO_N "(cached) $ECHO_C" >&6
22971 cat >conftest.$ac_ext <<_ACEOF
22974 cat confdefs.h >>conftest.$ac_ext
22975 cat >>conftest.$ac_ext <<_ACEOF
22976 /* end confdefs.h. */
22977 #include <sys/types.h>
22983 struct tm *tp; tp->tm_sec;
22988 rm -f conftest.$ac_objext
22989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22990 (eval $ac_compile) 2>conftest.er1
22992 grep -v '^ *+' conftest.er1 >conftest.err
22994 cat conftest.err >&5
22995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22996 (exit $ac_status); } &&
22997 { ac_try='test -z "$ac_c_werror_flag"
22998 || test ! -s conftest.err'
22999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23000 (eval $ac_try) 2>&5
23002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23003 (exit $ac_status); }; } &&
23004 { ac_try='test -s conftest.$ac_objext'
23005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23006 (eval $ac_try) 2>&5
23008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23009 (exit $ac_status); }; }; then
23010 ac_cv_struct_tm=time.h
23012 echo "$as_me: failed program was:" >&5
23013 sed 's/^/| /' conftest.$ac_ext >&5
23015 ac_cv_struct_tm=sys/time.h
23017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23019 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
23020 echo "${ECHO_T}$ac_cv_struct_tm" >&6
23021 if test $ac_cv_struct_tm = sys/time.h; then
23023 cat >>confdefs.h <<\_ACEOF
23024 #define TM_IN_SYS_TIME 1
23029 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23030 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
23031 if test "${ac_cv_c_const+set}" = set; then
23032 echo $ECHO_N "(cached) $ECHO_C" >&6
23034 cat >conftest.$ac_ext <<_ACEOF
23037 cat confdefs.h >>conftest.$ac_ext
23038 cat >>conftest.$ac_ext <<_ACEOF
23039 /* end confdefs.h. */
23044 /* FIXME: Include the comments suggested by Paul. */
23045 #ifndef __cplusplus
23046 /* Ultrix mips cc rejects this. */
23047 typedef int charset[2];
23049 /* SunOS 4.1.1 cc rejects this. */
23050 char const *const *ccp;
23052 /* NEC SVR4.0.2 mips cc rejects this. */
23053 struct point {int x, y;};
23054 static struct point const zero = {0,0};
23055 /* AIX XL C 1.02.0.0 rejects this.
23056 It does not let you subtract one const X* pointer from another in
23057 an arm of an if-expression whose if-part is not a constant
23059 const char *g = "string";
23060 ccp = &g + (g ? g-g : 0);
23061 /* HPUX 7.0 cc rejects these. */
23064 ccp = (char const *const *) p;
23065 { /* SCO 3.2v4 cc rejects this. */
23067 char const *s = 0 ? (char *) 0 : (char const *) 0;
23071 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
23072 int x[] = {25, 17};
23073 const int *foo = &x[0];
23076 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23077 typedef const int *iptr;
23081 { /* AIX XL C 1.02.0.0 rejects this saying
23082 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23083 struct s { int j; const int *ap[3]; };
23084 struct s *b; b->j = 5;
23086 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23087 const int foo = 10;
23095 rm -f conftest.$ac_objext
23096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23097 (eval $ac_compile) 2>conftest.er1
23099 grep -v '^ *+' conftest.er1 >conftest.err
23101 cat conftest.err >&5
23102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23103 (exit $ac_status); } &&
23104 { ac_try='test -z "$ac_c_werror_flag"
23105 || test ! -s conftest.err'
23106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23107 (eval $ac_try) 2>&5
23109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23110 (exit $ac_status); }; } &&
23111 { ac_try='test -s conftest.$ac_objext'
23112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23113 (eval $ac_try) 2>&5
23115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23116 (exit $ac_status); }; }; then
23119 echo "$as_me: failed program was:" >&5
23120 sed 's/^/| /' conftest.$ac_ext >&5
23124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23126 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23127 echo "${ECHO_T}$ac_cv_c_const" >&6
23128 if test $ac_cv_c_const = no; then
23130 cat >>confdefs.h <<\_ACEOF
23138 echo "$as_me:$LINENO: checking for char" >&5
23139 echo $ECHO_N "checking for char... $ECHO_C" >&6
23140 if test "${ac_cv_type_char+set}" = set; then
23141 echo $ECHO_N "(cached) $ECHO_C" >&6
23143 cat >conftest.$ac_ext <<_ACEOF
23146 cat confdefs.h >>conftest.$ac_ext
23147 cat >>conftest.$ac_ext <<_ACEOF
23148 /* end confdefs.h. */
23149 $ac_includes_default
23161 rm -f conftest.$ac_objext
23162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23163 (eval $ac_compile) 2>conftest.er1
23165 grep -v '^ *+' conftest.er1 >conftest.err
23167 cat conftest.err >&5
23168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23169 (exit $ac_status); } &&
23170 { ac_try='test -z "$ac_c_werror_flag"
23171 || test ! -s conftest.err'
23172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23173 (eval $ac_try) 2>&5
23175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23176 (exit $ac_status); }; } &&
23177 { ac_try='test -s conftest.$ac_objext'
23178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23179 (eval $ac_try) 2>&5
23181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23182 (exit $ac_status); }; }; then
23183 ac_cv_type_char=yes
23185 echo "$as_me: failed program was:" >&5
23186 sed 's/^/| /' conftest.$ac_ext >&5
23190 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23192 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
23193 echo "${ECHO_T}$ac_cv_type_char" >&6
23195 echo "$as_me:$LINENO: checking size of char" >&5
23196 echo $ECHO_N "checking size of char... $ECHO_C" >&6
23197 if test "${ac_cv_sizeof_char+set}" = set; then
23198 echo $ECHO_N "(cached) $ECHO_C" >&6
23200 if test "$ac_cv_type_char" = yes; then
23201 # The cast to unsigned long works around a bug in the HP C Compiler
23202 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23203 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23204 # This bug is HP SR number 8606223364.
23205 if test "$cross_compiling" = yes; then
23206 # Depending upon the size, compute the lo and hi bounds.
23207 cat >conftest.$ac_ext <<_ACEOF
23210 cat confdefs.h >>conftest.$ac_ext
23211 cat >>conftest.$ac_ext <<_ACEOF
23212 /* end confdefs.h. */
23213 $ac_includes_default
23217 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
23224 rm -f conftest.$ac_objext
23225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23226 (eval $ac_compile) 2>conftest.er1
23228 grep -v '^ *+' conftest.er1 >conftest.err
23230 cat conftest.err >&5
23231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23232 (exit $ac_status); } &&
23233 { ac_try='test -z "$ac_c_werror_flag"
23234 || test ! -s conftest.err'
23235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23236 (eval $ac_try) 2>&5
23238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23239 (exit $ac_status); }; } &&
23240 { ac_try='test -s conftest.$ac_objext'
23241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23242 (eval $ac_try) 2>&5
23244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23245 (exit $ac_status); }; }; then
23248 cat >conftest.$ac_ext <<_ACEOF
23251 cat confdefs.h >>conftest.$ac_ext
23252 cat >>conftest.$ac_ext <<_ACEOF
23253 /* end confdefs.h. */
23254 $ac_includes_default
23258 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
23265 rm -f conftest.$ac_objext
23266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23267 (eval $ac_compile) 2>conftest.er1
23269 grep -v '^ *+' conftest.er1 >conftest.err
23271 cat conftest.err >&5
23272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23273 (exit $ac_status); } &&
23274 { ac_try='test -z "$ac_c_werror_flag"
23275 || test ! -s conftest.err'
23276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23277 (eval $ac_try) 2>&5
23279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23280 (exit $ac_status); }; } &&
23281 { ac_try='test -s conftest.$ac_objext'
23282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23283 (eval $ac_try) 2>&5
23285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23286 (exit $ac_status); }; }; then
23287 ac_hi=$ac_mid; break
23289 echo "$as_me: failed program was:" >&5
23290 sed 's/^/| /' conftest.$ac_ext >&5
23292 ac_lo=`expr $ac_mid + 1`
23293 if test $ac_lo -le $ac_mid; then
23297 ac_mid=`expr 2 '*' $ac_mid + 1`
23299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23302 echo "$as_me: failed program was:" >&5
23303 sed 's/^/| /' conftest.$ac_ext >&5
23305 cat >conftest.$ac_ext <<_ACEOF
23308 cat confdefs.h >>conftest.$ac_ext
23309 cat >>conftest.$ac_ext <<_ACEOF
23310 /* end confdefs.h. */
23311 $ac_includes_default
23315 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
23322 rm -f conftest.$ac_objext
23323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23324 (eval $ac_compile) 2>conftest.er1
23326 grep -v '^ *+' conftest.er1 >conftest.err
23328 cat conftest.err >&5
23329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23330 (exit $ac_status); } &&
23331 { ac_try='test -z "$ac_c_werror_flag"
23332 || test ! -s conftest.err'
23333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23334 (eval $ac_try) 2>&5
23336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23337 (exit $ac_status); }; } &&
23338 { ac_try='test -s conftest.$ac_objext'
23339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23340 (eval $ac_try) 2>&5
23342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23343 (exit $ac_status); }; }; then
23346 cat >conftest.$ac_ext <<_ACEOF
23349 cat confdefs.h >>conftest.$ac_ext
23350 cat >>conftest.$ac_ext <<_ACEOF
23351 /* end confdefs.h. */
23352 $ac_includes_default
23356 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
23363 rm -f conftest.$ac_objext
23364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23365 (eval $ac_compile) 2>conftest.er1
23367 grep -v '^ *+' conftest.er1 >conftest.err
23369 cat conftest.err >&5
23370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23371 (exit $ac_status); } &&
23372 { ac_try='test -z "$ac_c_werror_flag"
23373 || test ! -s conftest.err'
23374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23375 (eval $ac_try) 2>&5
23377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23378 (exit $ac_status); }; } &&
23379 { ac_try='test -s conftest.$ac_objext'
23380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23381 (eval $ac_try) 2>&5
23383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23384 (exit $ac_status); }; }; then
23385 ac_lo=$ac_mid; break
23387 echo "$as_me: failed program was:" >&5
23388 sed 's/^/| /' conftest.$ac_ext >&5
23390 ac_hi=`expr '(' $ac_mid ')' - 1`
23391 if test $ac_mid -le $ac_hi; then
23395 ac_mid=`expr 2 '*' $ac_mid`
23397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23400 echo "$as_me: failed program was:" >&5
23401 sed 's/^/| /' conftest.$ac_ext >&5
23405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23408 # Binary search between lo and hi bounds.
23409 while test "x$ac_lo" != "x$ac_hi"; do
23410 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23411 cat >conftest.$ac_ext <<_ACEOF
23414 cat confdefs.h >>conftest.$ac_ext
23415 cat >>conftest.$ac_ext <<_ACEOF
23416 /* end confdefs.h. */
23417 $ac_includes_default
23421 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
23428 rm -f conftest.$ac_objext
23429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23430 (eval $ac_compile) 2>conftest.er1
23432 grep -v '^ *+' conftest.er1 >conftest.err
23434 cat conftest.err >&5
23435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23436 (exit $ac_status); } &&
23437 { ac_try='test -z "$ac_c_werror_flag"
23438 || test ! -s conftest.err'
23439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23440 (eval $ac_try) 2>&5
23442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23443 (exit $ac_status); }; } &&
23444 { ac_try='test -s conftest.$ac_objext'
23445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23446 (eval $ac_try) 2>&5
23448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23449 (exit $ac_status); }; }; then
23452 echo "$as_me: failed program was:" >&5
23453 sed 's/^/| /' conftest.$ac_ext >&5
23455 ac_lo=`expr '(' $ac_mid ')' + 1`
23457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23460 ?*) ac_cv_sizeof_char=$ac_lo;;
23461 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
23462 See \`config.log' for more details." >&5
23463 echo "$as_me: error: cannot compute sizeof (char), 77
23464 See \`config.log' for more details." >&2;}
23465 { (exit 1); exit 1; }; } ;;
23468 if test "$cross_compiling" = yes; then
23469 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23470 See \`config.log' for more details." >&5
23471 echo "$as_me: error: cannot run test program while cross compiling
23472 See \`config.log' for more details." >&2;}
23473 { (exit 1); exit 1; }; }
23475 cat >conftest.$ac_ext <<_ACEOF
23478 cat confdefs.h >>conftest.$ac_ext
23479 cat >>conftest.$ac_ext <<_ACEOF
23480 /* end confdefs.h. */
23481 $ac_includes_default
23482 long longval () { return (long) (sizeof (char)); }
23483 unsigned long ulongval () { return (long) (sizeof (char)); }
23485 #include <stdlib.h>
23490 FILE *f = fopen ("conftest.val", "w");
23493 if (((long) (sizeof (char))) < 0)
23495 long i = longval ();
23496 if (i != ((long) (sizeof (char))))
23498 fprintf (f, "%ld\n", i);
23502 unsigned long i = ulongval ();
23503 if (i != ((long) (sizeof (char))))
23505 fprintf (f, "%lu\n", i);
23507 exit (ferror (f) || fclose (f) != 0);
23513 rm -f conftest$ac_exeext
23514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23515 (eval $ac_link) 2>&5
23517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23518 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23520 (eval $ac_try) 2>&5
23522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23523 (exit $ac_status); }; }; then
23524 ac_cv_sizeof_char=`cat conftest.val`
23526 echo "$as_me: program exited with status $ac_status" >&5
23527 echo "$as_me: failed program was:" >&5
23528 sed 's/^/| /' conftest.$ac_ext >&5
23530 ( exit $ac_status )
23531 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
23532 See \`config.log' for more details." >&5
23533 echo "$as_me: error: cannot compute sizeof (char), 77
23534 See \`config.log' for more details." >&2;}
23535 { (exit 1); exit 1; }; }
23537 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23542 ac_cv_sizeof_char=0
23545 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
23546 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
23547 cat >>confdefs.h <<_ACEOF
23548 #define SIZEOF_CHAR $ac_cv_sizeof_char
23552 echo "$as_me:$LINENO: checking for short int" >&5
23553 echo $ECHO_N "checking for short int... $ECHO_C" >&6
23554 if test "${ac_cv_type_short_int+set}" = set; then
23555 echo $ECHO_N "(cached) $ECHO_C" >&6
23557 cat >conftest.$ac_ext <<_ACEOF
23560 cat confdefs.h >>conftest.$ac_ext
23561 cat >>conftest.$ac_ext <<_ACEOF
23562 /* end confdefs.h. */
23563 $ac_includes_default
23567 if ((short int *) 0)
23569 if (sizeof (short int))
23575 rm -f conftest.$ac_objext
23576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23577 (eval $ac_compile) 2>conftest.er1
23579 grep -v '^ *+' conftest.er1 >conftest.err
23581 cat conftest.err >&5
23582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23583 (exit $ac_status); } &&
23584 { ac_try='test -z "$ac_c_werror_flag"
23585 || test ! -s conftest.err'
23586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23587 (eval $ac_try) 2>&5
23589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23590 (exit $ac_status); }; } &&
23591 { ac_try='test -s conftest.$ac_objext'
23592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23593 (eval $ac_try) 2>&5
23595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23596 (exit $ac_status); }; }; then
23597 ac_cv_type_short_int=yes
23599 echo "$as_me: failed program was:" >&5
23600 sed 's/^/| /' conftest.$ac_ext >&5
23602 ac_cv_type_short_int=no
23604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23606 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
23607 echo "${ECHO_T}$ac_cv_type_short_int" >&6
23609 echo "$as_me:$LINENO: checking size of short int" >&5
23610 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
23611 if test "${ac_cv_sizeof_short_int+set}" = set; then
23612 echo $ECHO_N "(cached) $ECHO_C" >&6
23614 if test "$ac_cv_type_short_int" = yes; then
23615 # The cast to unsigned long works around a bug in the HP C Compiler
23616 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23617 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23618 # This bug is HP SR number 8606223364.
23619 if test "$cross_compiling" = yes; then
23620 # Depending upon the size, compute the lo and hi bounds.
23621 cat >conftest.$ac_ext <<_ACEOF
23624 cat confdefs.h >>conftest.$ac_ext
23625 cat >>conftest.$ac_ext <<_ACEOF
23626 /* end confdefs.h. */
23627 $ac_includes_default
23631 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
23638 rm -f conftest.$ac_objext
23639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23640 (eval $ac_compile) 2>conftest.er1
23642 grep -v '^ *+' conftest.er1 >conftest.err
23644 cat conftest.err >&5
23645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23646 (exit $ac_status); } &&
23647 { ac_try='test -z "$ac_c_werror_flag"
23648 || test ! -s conftest.err'
23649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23650 (eval $ac_try) 2>&5
23652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23653 (exit $ac_status); }; } &&
23654 { ac_try='test -s conftest.$ac_objext'
23655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23656 (eval $ac_try) 2>&5
23658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23659 (exit $ac_status); }; }; then
23662 cat >conftest.$ac_ext <<_ACEOF
23665 cat confdefs.h >>conftest.$ac_ext
23666 cat >>conftest.$ac_ext <<_ACEOF
23667 /* end confdefs.h. */
23668 $ac_includes_default
23672 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
23679 rm -f conftest.$ac_objext
23680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23681 (eval $ac_compile) 2>conftest.er1
23683 grep -v '^ *+' conftest.er1 >conftest.err
23685 cat conftest.err >&5
23686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23687 (exit $ac_status); } &&
23688 { ac_try='test -z "$ac_c_werror_flag"
23689 || test ! -s conftest.err'
23690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23691 (eval $ac_try) 2>&5
23693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23694 (exit $ac_status); }; } &&
23695 { ac_try='test -s conftest.$ac_objext'
23696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23697 (eval $ac_try) 2>&5
23699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23700 (exit $ac_status); }; }; then
23701 ac_hi=$ac_mid; break
23703 echo "$as_me: failed program was:" >&5
23704 sed 's/^/| /' conftest.$ac_ext >&5
23706 ac_lo=`expr $ac_mid + 1`
23707 if test $ac_lo -le $ac_mid; then
23711 ac_mid=`expr 2 '*' $ac_mid + 1`
23713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23716 echo "$as_me: failed program was:" >&5
23717 sed 's/^/| /' conftest.$ac_ext >&5
23719 cat >conftest.$ac_ext <<_ACEOF
23722 cat confdefs.h >>conftest.$ac_ext
23723 cat >>conftest.$ac_ext <<_ACEOF
23724 /* end confdefs.h. */
23725 $ac_includes_default
23729 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
23736 rm -f conftest.$ac_objext
23737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23738 (eval $ac_compile) 2>conftest.er1
23740 grep -v '^ *+' conftest.er1 >conftest.err
23742 cat conftest.err >&5
23743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23744 (exit $ac_status); } &&
23745 { ac_try='test -z "$ac_c_werror_flag"
23746 || test ! -s conftest.err'
23747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23748 (eval $ac_try) 2>&5
23750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23751 (exit $ac_status); }; } &&
23752 { ac_try='test -s conftest.$ac_objext'
23753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23754 (eval $ac_try) 2>&5
23756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23757 (exit $ac_status); }; }; then
23760 cat >conftest.$ac_ext <<_ACEOF
23763 cat confdefs.h >>conftest.$ac_ext
23764 cat >>conftest.$ac_ext <<_ACEOF
23765 /* end confdefs.h. */
23766 $ac_includes_default
23770 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
23777 rm -f conftest.$ac_objext
23778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23779 (eval $ac_compile) 2>conftest.er1
23781 grep -v '^ *+' conftest.er1 >conftest.err
23783 cat conftest.err >&5
23784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23785 (exit $ac_status); } &&
23786 { ac_try='test -z "$ac_c_werror_flag"
23787 || test ! -s conftest.err'
23788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23789 (eval $ac_try) 2>&5
23791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23792 (exit $ac_status); }; } &&
23793 { ac_try='test -s conftest.$ac_objext'
23794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23795 (eval $ac_try) 2>&5
23797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23798 (exit $ac_status); }; }; then
23799 ac_lo=$ac_mid; break
23801 echo "$as_me: failed program was:" >&5
23802 sed 's/^/| /' conftest.$ac_ext >&5
23804 ac_hi=`expr '(' $ac_mid ')' - 1`
23805 if test $ac_mid -le $ac_hi; then
23809 ac_mid=`expr 2 '*' $ac_mid`
23811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23814 echo "$as_me: failed program was:" >&5
23815 sed 's/^/| /' conftest.$ac_ext >&5
23819 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23822 # Binary search between lo and hi bounds.
23823 while test "x$ac_lo" != "x$ac_hi"; do
23824 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23825 cat >conftest.$ac_ext <<_ACEOF
23828 cat confdefs.h >>conftest.$ac_ext
23829 cat >>conftest.$ac_ext <<_ACEOF
23830 /* end confdefs.h. */
23831 $ac_includes_default
23835 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
23842 rm -f conftest.$ac_objext
23843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23844 (eval $ac_compile) 2>conftest.er1
23846 grep -v '^ *+' conftest.er1 >conftest.err
23848 cat conftest.err >&5
23849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23850 (exit $ac_status); } &&
23851 { ac_try='test -z "$ac_c_werror_flag"
23852 || test ! -s conftest.err'
23853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23854 (eval $ac_try) 2>&5
23856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23857 (exit $ac_status); }; } &&
23858 { ac_try='test -s conftest.$ac_objext'
23859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23860 (eval $ac_try) 2>&5
23862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23863 (exit $ac_status); }; }; then
23866 echo "$as_me: failed program was:" >&5
23867 sed 's/^/| /' conftest.$ac_ext >&5
23869 ac_lo=`expr '(' $ac_mid ')' + 1`
23871 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23874 ?*) ac_cv_sizeof_short_int=$ac_lo;;
23875 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
23876 See \`config.log' for more details." >&5
23877 echo "$as_me: error: cannot compute sizeof (short int), 77
23878 See \`config.log' for more details." >&2;}
23879 { (exit 1); exit 1; }; } ;;
23882 if test "$cross_compiling" = yes; then
23883 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23884 See \`config.log' for more details." >&5
23885 echo "$as_me: error: cannot run test program while cross compiling
23886 See \`config.log' for more details." >&2;}
23887 { (exit 1); exit 1; }; }
23889 cat >conftest.$ac_ext <<_ACEOF
23892 cat confdefs.h >>conftest.$ac_ext
23893 cat >>conftest.$ac_ext <<_ACEOF
23894 /* end confdefs.h. */
23895 $ac_includes_default
23896 long longval () { return (long) (sizeof (short int)); }
23897 unsigned long ulongval () { return (long) (sizeof (short int)); }
23899 #include <stdlib.h>
23904 FILE *f = fopen ("conftest.val", "w");
23907 if (((long) (sizeof (short int))) < 0)
23909 long i = longval ();
23910 if (i != ((long) (sizeof (short int))))
23912 fprintf (f, "%ld\n", i);
23916 unsigned long i = ulongval ();
23917 if (i != ((long) (sizeof (short int))))
23919 fprintf (f, "%lu\n", i);
23921 exit (ferror (f) || fclose (f) != 0);
23927 rm -f conftest$ac_exeext
23928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23929 (eval $ac_link) 2>&5
23931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23932 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23934 (eval $ac_try) 2>&5
23936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23937 (exit $ac_status); }; }; then
23938 ac_cv_sizeof_short_int=`cat conftest.val`
23940 echo "$as_me: program exited with status $ac_status" >&5
23941 echo "$as_me: failed program was:" >&5
23942 sed 's/^/| /' conftest.$ac_ext >&5
23944 ( exit $ac_status )
23945 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
23946 See \`config.log' for more details." >&5
23947 echo "$as_me: error: cannot compute sizeof (short int), 77
23948 See \`config.log' for more details." >&2;}
23949 { (exit 1); exit 1; }; }
23951 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23956 ac_cv_sizeof_short_int=0
23959 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
23960 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
23961 cat >>confdefs.h <<_ACEOF
23962 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
23966 echo "$as_me:$LINENO: checking for int" >&5
23967 echo $ECHO_N "checking for int... $ECHO_C" >&6
23968 if test "${ac_cv_type_int+set}" = set; then
23969 echo $ECHO_N "(cached) $ECHO_C" >&6
23971 cat >conftest.$ac_ext <<_ACEOF
23974 cat confdefs.h >>conftest.$ac_ext
23975 cat >>conftest.$ac_ext <<_ACEOF
23976 /* end confdefs.h. */
23977 $ac_includes_default
23989 rm -f conftest.$ac_objext
23990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23991 (eval $ac_compile) 2>conftest.er1
23993 grep -v '^ *+' conftest.er1 >conftest.err
23995 cat conftest.err >&5
23996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23997 (exit $ac_status); } &&
23998 { ac_try='test -z "$ac_c_werror_flag"
23999 || test ! -s conftest.err'
24000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24001 (eval $ac_try) 2>&5
24003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24004 (exit $ac_status); }; } &&
24005 { ac_try='test -s conftest.$ac_objext'
24006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24007 (eval $ac_try) 2>&5
24009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24010 (exit $ac_status); }; }; then
24013 echo "$as_me: failed program was:" >&5
24014 sed 's/^/| /' conftest.$ac_ext >&5
24018 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24020 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
24021 echo "${ECHO_T}$ac_cv_type_int" >&6
24023 echo "$as_me:$LINENO: checking size of int" >&5
24024 echo $ECHO_N "checking size of int... $ECHO_C" >&6
24025 if test "${ac_cv_sizeof_int+set}" = set; then
24026 echo $ECHO_N "(cached) $ECHO_C" >&6
24028 if test "$ac_cv_type_int" = yes; then
24029 # The cast to unsigned long works around a bug in the HP C Compiler
24030 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24031 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24032 # This bug is HP SR number 8606223364.
24033 if test "$cross_compiling" = yes; then
24034 # Depending upon the size, compute the lo and hi bounds.
24035 cat >conftest.$ac_ext <<_ACEOF
24038 cat confdefs.h >>conftest.$ac_ext
24039 cat >>conftest.$ac_ext <<_ACEOF
24040 /* end confdefs.h. */
24041 $ac_includes_default
24045 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
24052 rm -f conftest.$ac_objext
24053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24054 (eval $ac_compile) 2>conftest.er1
24056 grep -v '^ *+' conftest.er1 >conftest.err
24058 cat conftest.err >&5
24059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24060 (exit $ac_status); } &&
24061 { ac_try='test -z "$ac_c_werror_flag"
24062 || test ! -s conftest.err'
24063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24064 (eval $ac_try) 2>&5
24066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24067 (exit $ac_status); }; } &&
24068 { ac_try='test -s conftest.$ac_objext'
24069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24070 (eval $ac_try) 2>&5
24072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24073 (exit $ac_status); }; }; then
24076 cat >conftest.$ac_ext <<_ACEOF
24079 cat confdefs.h >>conftest.$ac_ext
24080 cat >>conftest.$ac_ext <<_ACEOF
24081 /* end confdefs.h. */
24082 $ac_includes_default
24086 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
24093 rm -f conftest.$ac_objext
24094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24095 (eval $ac_compile) 2>conftest.er1
24097 grep -v '^ *+' conftest.er1 >conftest.err
24099 cat conftest.err >&5
24100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24101 (exit $ac_status); } &&
24102 { ac_try='test -z "$ac_c_werror_flag"
24103 || test ! -s conftest.err'
24104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24105 (eval $ac_try) 2>&5
24107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24108 (exit $ac_status); }; } &&
24109 { ac_try='test -s conftest.$ac_objext'
24110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24111 (eval $ac_try) 2>&5
24113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24114 (exit $ac_status); }; }; then
24115 ac_hi=$ac_mid; break
24117 echo "$as_me: failed program was:" >&5
24118 sed 's/^/| /' conftest.$ac_ext >&5
24120 ac_lo=`expr $ac_mid + 1`
24121 if test $ac_lo -le $ac_mid; then
24125 ac_mid=`expr 2 '*' $ac_mid + 1`
24127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24130 echo "$as_me: failed program was:" >&5
24131 sed 's/^/| /' conftest.$ac_ext >&5
24133 cat >conftest.$ac_ext <<_ACEOF
24136 cat confdefs.h >>conftest.$ac_ext
24137 cat >>conftest.$ac_ext <<_ACEOF
24138 /* end confdefs.h. */
24139 $ac_includes_default
24143 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
24150 rm -f conftest.$ac_objext
24151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24152 (eval $ac_compile) 2>conftest.er1
24154 grep -v '^ *+' conftest.er1 >conftest.err
24156 cat conftest.err >&5
24157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24158 (exit $ac_status); } &&
24159 { ac_try='test -z "$ac_c_werror_flag"
24160 || test ! -s conftest.err'
24161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24162 (eval $ac_try) 2>&5
24164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24165 (exit $ac_status); }; } &&
24166 { ac_try='test -s conftest.$ac_objext'
24167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24168 (eval $ac_try) 2>&5
24170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24171 (exit $ac_status); }; }; then
24174 cat >conftest.$ac_ext <<_ACEOF
24177 cat confdefs.h >>conftest.$ac_ext
24178 cat >>conftest.$ac_ext <<_ACEOF
24179 /* end confdefs.h. */
24180 $ac_includes_default
24184 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
24191 rm -f conftest.$ac_objext
24192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24193 (eval $ac_compile) 2>conftest.er1
24195 grep -v '^ *+' conftest.er1 >conftest.err
24197 cat conftest.err >&5
24198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24199 (exit $ac_status); } &&
24200 { ac_try='test -z "$ac_c_werror_flag"
24201 || test ! -s conftest.err'
24202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24203 (eval $ac_try) 2>&5
24205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24206 (exit $ac_status); }; } &&
24207 { ac_try='test -s conftest.$ac_objext'
24208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24209 (eval $ac_try) 2>&5
24211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24212 (exit $ac_status); }; }; then
24213 ac_lo=$ac_mid; break
24215 echo "$as_me: failed program was:" >&5
24216 sed 's/^/| /' conftest.$ac_ext >&5
24218 ac_hi=`expr '(' $ac_mid ')' - 1`
24219 if test $ac_mid -le $ac_hi; then
24223 ac_mid=`expr 2 '*' $ac_mid`
24225 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24228 echo "$as_me: failed program was:" >&5
24229 sed 's/^/| /' conftest.$ac_ext >&5
24233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24236 # Binary search between lo and hi bounds.
24237 while test "x$ac_lo" != "x$ac_hi"; do
24238 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24239 cat >conftest.$ac_ext <<_ACEOF
24242 cat confdefs.h >>conftest.$ac_ext
24243 cat >>conftest.$ac_ext <<_ACEOF
24244 /* end confdefs.h. */
24245 $ac_includes_default
24249 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
24256 rm -f conftest.$ac_objext
24257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24258 (eval $ac_compile) 2>conftest.er1
24260 grep -v '^ *+' conftest.er1 >conftest.err
24262 cat conftest.err >&5
24263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24264 (exit $ac_status); } &&
24265 { ac_try='test -z "$ac_c_werror_flag"
24266 || test ! -s conftest.err'
24267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24268 (eval $ac_try) 2>&5
24270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24271 (exit $ac_status); }; } &&
24272 { ac_try='test -s conftest.$ac_objext'
24273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24274 (eval $ac_try) 2>&5
24276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24277 (exit $ac_status); }; }; then
24280 echo "$as_me: failed program was:" >&5
24281 sed 's/^/| /' conftest.$ac_ext >&5
24283 ac_lo=`expr '(' $ac_mid ')' + 1`
24285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24288 ?*) ac_cv_sizeof_int=$ac_lo;;
24289 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
24290 See \`config.log' for more details." >&5
24291 echo "$as_me: error: cannot compute sizeof (int), 77
24292 See \`config.log' for more details." >&2;}
24293 { (exit 1); exit 1; }; } ;;
24296 if test "$cross_compiling" = yes; then
24297 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24298 See \`config.log' for more details." >&5
24299 echo "$as_me: error: cannot run test program while cross compiling
24300 See \`config.log' for more details." >&2;}
24301 { (exit 1); exit 1; }; }
24303 cat >conftest.$ac_ext <<_ACEOF
24306 cat confdefs.h >>conftest.$ac_ext
24307 cat >>conftest.$ac_ext <<_ACEOF
24308 /* end confdefs.h. */
24309 $ac_includes_default
24310 long longval () { return (long) (sizeof (int)); }
24311 unsigned long ulongval () { return (long) (sizeof (int)); }
24313 #include <stdlib.h>
24318 FILE *f = fopen ("conftest.val", "w");
24321 if (((long) (sizeof (int))) < 0)
24323 long i = longval ();
24324 if (i != ((long) (sizeof (int))))
24326 fprintf (f, "%ld\n", i);
24330 unsigned long i = ulongval ();
24331 if (i != ((long) (sizeof (int))))
24333 fprintf (f, "%lu\n", i);
24335 exit (ferror (f) || fclose (f) != 0);
24341 rm -f conftest$ac_exeext
24342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24343 (eval $ac_link) 2>&5
24345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24346 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24348 (eval $ac_try) 2>&5
24350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24351 (exit $ac_status); }; }; then
24352 ac_cv_sizeof_int=`cat conftest.val`
24354 echo "$as_me: program exited with status $ac_status" >&5
24355 echo "$as_me: failed program was:" >&5
24356 sed 's/^/| /' conftest.$ac_ext >&5
24358 ( exit $ac_status )
24359 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
24360 See \`config.log' for more details." >&5
24361 echo "$as_me: error: cannot compute sizeof (int), 77
24362 See \`config.log' for more details." >&2;}
24363 { (exit 1); exit 1; }; }
24365 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24373 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
24374 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
24375 cat >>confdefs.h <<_ACEOF
24376 #define SIZEOF_INT $ac_cv_sizeof_int
24380 echo "$as_me:$LINENO: checking for long int" >&5
24381 echo $ECHO_N "checking for long int... $ECHO_C" >&6
24382 if test "${ac_cv_type_long_int+set}" = set; then
24383 echo $ECHO_N "(cached) $ECHO_C" >&6
24385 cat >conftest.$ac_ext <<_ACEOF
24388 cat confdefs.h >>conftest.$ac_ext
24389 cat >>conftest.$ac_ext <<_ACEOF
24390 /* end confdefs.h. */
24391 $ac_includes_default
24395 if ((long int *) 0)
24397 if (sizeof (long int))
24403 rm -f conftest.$ac_objext
24404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24405 (eval $ac_compile) 2>conftest.er1
24407 grep -v '^ *+' conftest.er1 >conftest.err
24409 cat conftest.err >&5
24410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24411 (exit $ac_status); } &&
24412 { ac_try='test -z "$ac_c_werror_flag"
24413 || test ! -s conftest.err'
24414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24415 (eval $ac_try) 2>&5
24417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24418 (exit $ac_status); }; } &&
24419 { ac_try='test -s conftest.$ac_objext'
24420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24421 (eval $ac_try) 2>&5
24423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24424 (exit $ac_status); }; }; then
24425 ac_cv_type_long_int=yes
24427 echo "$as_me: failed program was:" >&5
24428 sed 's/^/| /' conftest.$ac_ext >&5
24430 ac_cv_type_long_int=no
24432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24434 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
24435 echo "${ECHO_T}$ac_cv_type_long_int" >&6
24437 echo "$as_me:$LINENO: checking size of long int" >&5
24438 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
24439 if test "${ac_cv_sizeof_long_int+set}" = set; then
24440 echo $ECHO_N "(cached) $ECHO_C" >&6
24442 if test "$ac_cv_type_long_int" = yes; then
24443 # The cast to unsigned long works around a bug in the HP C Compiler
24444 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24445 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24446 # This bug is HP SR number 8606223364.
24447 if test "$cross_compiling" = yes; then
24448 # Depending upon the size, compute the lo and hi bounds.
24449 cat >conftest.$ac_ext <<_ACEOF
24452 cat confdefs.h >>conftest.$ac_ext
24453 cat >>conftest.$ac_ext <<_ACEOF
24454 /* end confdefs.h. */
24455 $ac_includes_default
24459 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
24466 rm -f conftest.$ac_objext
24467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24468 (eval $ac_compile) 2>conftest.er1
24470 grep -v '^ *+' conftest.er1 >conftest.err
24472 cat conftest.err >&5
24473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24474 (exit $ac_status); } &&
24475 { ac_try='test -z "$ac_c_werror_flag"
24476 || test ! -s conftest.err'
24477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24478 (eval $ac_try) 2>&5
24480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24481 (exit $ac_status); }; } &&
24482 { ac_try='test -s conftest.$ac_objext'
24483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24484 (eval $ac_try) 2>&5
24486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24487 (exit $ac_status); }; }; then
24490 cat >conftest.$ac_ext <<_ACEOF
24493 cat confdefs.h >>conftest.$ac_ext
24494 cat >>conftest.$ac_ext <<_ACEOF
24495 /* end confdefs.h. */
24496 $ac_includes_default
24500 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
24507 rm -f conftest.$ac_objext
24508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24509 (eval $ac_compile) 2>conftest.er1
24511 grep -v '^ *+' conftest.er1 >conftest.err
24513 cat conftest.err >&5
24514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24515 (exit $ac_status); } &&
24516 { ac_try='test -z "$ac_c_werror_flag"
24517 || test ! -s conftest.err'
24518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24519 (eval $ac_try) 2>&5
24521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24522 (exit $ac_status); }; } &&
24523 { ac_try='test -s conftest.$ac_objext'
24524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24525 (eval $ac_try) 2>&5
24527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24528 (exit $ac_status); }; }; then
24529 ac_hi=$ac_mid; break
24531 echo "$as_me: failed program was:" >&5
24532 sed 's/^/| /' conftest.$ac_ext >&5
24534 ac_lo=`expr $ac_mid + 1`
24535 if test $ac_lo -le $ac_mid; then
24539 ac_mid=`expr 2 '*' $ac_mid + 1`
24541 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24544 echo "$as_me: failed program was:" >&5
24545 sed 's/^/| /' conftest.$ac_ext >&5
24547 cat >conftest.$ac_ext <<_ACEOF
24550 cat confdefs.h >>conftest.$ac_ext
24551 cat >>conftest.$ac_ext <<_ACEOF
24552 /* end confdefs.h. */
24553 $ac_includes_default
24557 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
24564 rm -f conftest.$ac_objext
24565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24566 (eval $ac_compile) 2>conftest.er1
24568 grep -v '^ *+' conftest.er1 >conftest.err
24570 cat conftest.err >&5
24571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24572 (exit $ac_status); } &&
24573 { ac_try='test -z "$ac_c_werror_flag"
24574 || test ! -s conftest.err'
24575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24576 (eval $ac_try) 2>&5
24578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24579 (exit $ac_status); }; } &&
24580 { ac_try='test -s conftest.$ac_objext'
24581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24582 (eval $ac_try) 2>&5
24584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24585 (exit $ac_status); }; }; then
24588 cat >conftest.$ac_ext <<_ACEOF
24591 cat confdefs.h >>conftest.$ac_ext
24592 cat >>conftest.$ac_ext <<_ACEOF
24593 /* end confdefs.h. */
24594 $ac_includes_default
24598 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
24605 rm -f conftest.$ac_objext
24606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24607 (eval $ac_compile) 2>conftest.er1
24609 grep -v '^ *+' conftest.er1 >conftest.err
24611 cat conftest.err >&5
24612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24613 (exit $ac_status); } &&
24614 { ac_try='test -z "$ac_c_werror_flag"
24615 || test ! -s conftest.err'
24616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24617 (eval $ac_try) 2>&5
24619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24620 (exit $ac_status); }; } &&
24621 { ac_try='test -s conftest.$ac_objext'
24622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24623 (eval $ac_try) 2>&5
24625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24626 (exit $ac_status); }; }; then
24627 ac_lo=$ac_mid; break
24629 echo "$as_me: failed program was:" >&5
24630 sed 's/^/| /' conftest.$ac_ext >&5
24632 ac_hi=`expr '(' $ac_mid ')' - 1`
24633 if test $ac_mid -le $ac_hi; then
24637 ac_mid=`expr 2 '*' $ac_mid`
24639 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24642 echo "$as_me: failed program was:" >&5
24643 sed 's/^/| /' conftest.$ac_ext >&5
24647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24649 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24650 # Binary search between lo and hi bounds.
24651 while test "x$ac_lo" != "x$ac_hi"; do
24652 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24653 cat >conftest.$ac_ext <<_ACEOF
24656 cat confdefs.h >>conftest.$ac_ext
24657 cat >>conftest.$ac_ext <<_ACEOF
24658 /* end confdefs.h. */
24659 $ac_includes_default
24663 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
24670 rm -f conftest.$ac_objext
24671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24672 (eval $ac_compile) 2>conftest.er1
24674 grep -v '^ *+' conftest.er1 >conftest.err
24676 cat conftest.err >&5
24677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24678 (exit $ac_status); } &&
24679 { ac_try='test -z "$ac_c_werror_flag"
24680 || test ! -s conftest.err'
24681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24682 (eval $ac_try) 2>&5
24684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24685 (exit $ac_status); }; } &&
24686 { ac_try='test -s conftest.$ac_objext'
24687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24688 (eval $ac_try) 2>&5
24690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24691 (exit $ac_status); }; }; then
24694 echo "$as_me: failed program was:" >&5
24695 sed 's/^/| /' conftest.$ac_ext >&5
24697 ac_lo=`expr '(' $ac_mid ')' + 1`
24699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24702 ?*) ac_cv_sizeof_long_int=$ac_lo;;
24703 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
24704 See \`config.log' for more details." >&5
24705 echo "$as_me: error: cannot compute sizeof (long int), 77
24706 See \`config.log' for more details." >&2;}
24707 { (exit 1); exit 1; }; } ;;
24710 if test "$cross_compiling" = yes; then
24711 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24712 See \`config.log' for more details." >&5
24713 echo "$as_me: error: cannot run test program while cross compiling
24714 See \`config.log' for more details." >&2;}
24715 { (exit 1); exit 1; }; }
24717 cat >conftest.$ac_ext <<_ACEOF
24720 cat confdefs.h >>conftest.$ac_ext
24721 cat >>conftest.$ac_ext <<_ACEOF
24722 /* end confdefs.h. */
24723 $ac_includes_default
24724 long longval () { return (long) (sizeof (long int)); }
24725 unsigned long ulongval () { return (long) (sizeof (long int)); }
24727 #include <stdlib.h>
24732 FILE *f = fopen ("conftest.val", "w");
24735 if (((long) (sizeof (long int))) < 0)
24737 long i = longval ();
24738 if (i != ((long) (sizeof (long int))))
24740 fprintf (f, "%ld\n", i);
24744 unsigned long i = ulongval ();
24745 if (i != ((long) (sizeof (long int))))
24747 fprintf (f, "%lu\n", i);
24749 exit (ferror (f) || fclose (f) != 0);
24755 rm -f conftest$ac_exeext
24756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24757 (eval $ac_link) 2>&5
24759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24760 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24762 (eval $ac_try) 2>&5
24764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24765 (exit $ac_status); }; }; then
24766 ac_cv_sizeof_long_int=`cat conftest.val`
24768 echo "$as_me: program exited with status $ac_status" >&5
24769 echo "$as_me: failed program was:" >&5
24770 sed 's/^/| /' conftest.$ac_ext >&5
24772 ( exit $ac_status )
24773 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
24774 See \`config.log' for more details." >&5
24775 echo "$as_me: error: cannot compute sizeof (long int), 77
24776 See \`config.log' for more details." >&2;}
24777 { (exit 1); exit 1; }; }
24779 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24784 ac_cv_sizeof_long_int=0
24787 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
24788 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
24789 cat >>confdefs.h <<_ACEOF
24790 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
24794 echo "$as_me:$LINENO: checking for long long int" >&5
24795 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
24796 if test "${ac_cv_type_long_long_int+set}" = set; then
24797 echo $ECHO_N "(cached) $ECHO_C" >&6
24799 cat >conftest.$ac_ext <<_ACEOF
24802 cat confdefs.h >>conftest.$ac_ext
24803 cat >>conftest.$ac_ext <<_ACEOF
24804 /* end confdefs.h. */
24805 $ac_includes_default
24809 if ((long long int *) 0)
24811 if (sizeof (long long int))
24817 rm -f conftest.$ac_objext
24818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24819 (eval $ac_compile) 2>conftest.er1
24821 grep -v '^ *+' conftest.er1 >conftest.err
24823 cat conftest.err >&5
24824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24825 (exit $ac_status); } &&
24826 { ac_try='test -z "$ac_c_werror_flag"
24827 || test ! -s conftest.err'
24828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24829 (eval $ac_try) 2>&5
24831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24832 (exit $ac_status); }; } &&
24833 { ac_try='test -s conftest.$ac_objext'
24834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24835 (eval $ac_try) 2>&5
24837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24838 (exit $ac_status); }; }; then
24839 ac_cv_type_long_long_int=yes
24841 echo "$as_me: failed program was:" >&5
24842 sed 's/^/| /' conftest.$ac_ext >&5
24844 ac_cv_type_long_long_int=no
24846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24848 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
24849 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
24851 echo "$as_me:$LINENO: checking size of long long int" >&5
24852 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
24853 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
24854 echo $ECHO_N "(cached) $ECHO_C" >&6
24856 if test "$ac_cv_type_long_long_int" = yes; then
24857 # The cast to unsigned long works around a bug in the HP C Compiler
24858 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24859 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24860 # This bug is HP SR number 8606223364.
24861 if test "$cross_compiling" = yes; then
24862 # Depending upon the size, compute the lo and hi bounds.
24863 cat >conftest.$ac_ext <<_ACEOF
24866 cat confdefs.h >>conftest.$ac_ext
24867 cat >>conftest.$ac_ext <<_ACEOF
24868 /* end confdefs.h. */
24869 $ac_includes_default
24873 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
24880 rm -f conftest.$ac_objext
24881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24882 (eval $ac_compile) 2>conftest.er1
24884 grep -v '^ *+' conftest.er1 >conftest.err
24886 cat conftest.err >&5
24887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24888 (exit $ac_status); } &&
24889 { ac_try='test -z "$ac_c_werror_flag"
24890 || test ! -s conftest.err'
24891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24892 (eval $ac_try) 2>&5
24894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24895 (exit $ac_status); }; } &&
24896 { ac_try='test -s conftest.$ac_objext'
24897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24898 (eval $ac_try) 2>&5
24900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24901 (exit $ac_status); }; }; then
24904 cat >conftest.$ac_ext <<_ACEOF
24907 cat confdefs.h >>conftest.$ac_ext
24908 cat >>conftest.$ac_ext <<_ACEOF
24909 /* end confdefs.h. */
24910 $ac_includes_default
24914 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
24921 rm -f conftest.$ac_objext
24922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24923 (eval $ac_compile) 2>conftest.er1
24925 grep -v '^ *+' conftest.er1 >conftest.err
24927 cat conftest.err >&5
24928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24929 (exit $ac_status); } &&
24930 { ac_try='test -z "$ac_c_werror_flag"
24931 || test ! -s conftest.err'
24932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24933 (eval $ac_try) 2>&5
24935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24936 (exit $ac_status); }; } &&
24937 { ac_try='test -s conftest.$ac_objext'
24938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24939 (eval $ac_try) 2>&5
24941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24942 (exit $ac_status); }; }; then
24943 ac_hi=$ac_mid; break
24945 echo "$as_me: failed program was:" >&5
24946 sed 's/^/| /' conftest.$ac_ext >&5
24948 ac_lo=`expr $ac_mid + 1`
24949 if test $ac_lo -le $ac_mid; then
24953 ac_mid=`expr 2 '*' $ac_mid + 1`
24955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24958 echo "$as_me: failed program was:" >&5
24959 sed 's/^/| /' conftest.$ac_ext >&5
24961 cat >conftest.$ac_ext <<_ACEOF
24964 cat confdefs.h >>conftest.$ac_ext
24965 cat >>conftest.$ac_ext <<_ACEOF
24966 /* end confdefs.h. */
24967 $ac_includes_default
24971 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
24978 rm -f conftest.$ac_objext
24979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24980 (eval $ac_compile) 2>conftest.er1
24982 grep -v '^ *+' conftest.er1 >conftest.err
24984 cat conftest.err >&5
24985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24986 (exit $ac_status); } &&
24987 { ac_try='test -z "$ac_c_werror_flag"
24988 || test ! -s conftest.err'
24989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24990 (eval $ac_try) 2>&5
24992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24993 (exit $ac_status); }; } &&
24994 { ac_try='test -s conftest.$ac_objext'
24995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24996 (eval $ac_try) 2>&5
24998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24999 (exit $ac_status); }; }; then
25002 cat >conftest.$ac_ext <<_ACEOF
25005 cat confdefs.h >>conftest.$ac_ext
25006 cat >>conftest.$ac_ext <<_ACEOF
25007 /* end confdefs.h. */
25008 $ac_includes_default
25012 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
25019 rm -f conftest.$ac_objext
25020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25021 (eval $ac_compile) 2>conftest.er1
25023 grep -v '^ *+' conftest.er1 >conftest.err
25025 cat conftest.err >&5
25026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25027 (exit $ac_status); } &&
25028 { ac_try='test -z "$ac_c_werror_flag"
25029 || test ! -s conftest.err'
25030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25031 (eval $ac_try) 2>&5
25033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25034 (exit $ac_status); }; } &&
25035 { ac_try='test -s conftest.$ac_objext'
25036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25037 (eval $ac_try) 2>&5
25039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25040 (exit $ac_status); }; }; then
25041 ac_lo=$ac_mid; break
25043 echo "$as_me: failed program was:" >&5
25044 sed 's/^/| /' conftest.$ac_ext >&5
25046 ac_hi=`expr '(' $ac_mid ')' - 1`
25047 if test $ac_mid -le $ac_hi; then
25051 ac_mid=`expr 2 '*' $ac_mid`
25053 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25056 echo "$as_me: failed program was:" >&5
25057 sed 's/^/| /' conftest.$ac_ext >&5
25061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25063 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25064 # Binary search between lo and hi bounds.
25065 while test "x$ac_lo" != "x$ac_hi"; do
25066 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25067 cat >conftest.$ac_ext <<_ACEOF
25070 cat confdefs.h >>conftest.$ac_ext
25071 cat >>conftest.$ac_ext <<_ACEOF
25072 /* end confdefs.h. */
25073 $ac_includes_default
25077 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
25084 rm -f conftest.$ac_objext
25085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25086 (eval $ac_compile) 2>conftest.er1
25088 grep -v '^ *+' conftest.er1 >conftest.err
25090 cat conftest.err >&5
25091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25092 (exit $ac_status); } &&
25093 { ac_try='test -z "$ac_c_werror_flag"
25094 || test ! -s conftest.err'
25095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25096 (eval $ac_try) 2>&5
25098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25099 (exit $ac_status); }; } &&
25100 { ac_try='test -s conftest.$ac_objext'
25101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25102 (eval $ac_try) 2>&5
25104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25105 (exit $ac_status); }; }; then
25108 echo "$as_me: failed program was:" >&5
25109 sed 's/^/| /' conftest.$ac_ext >&5
25111 ac_lo=`expr '(' $ac_mid ')' + 1`
25113 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25116 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
25117 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
25118 See \`config.log' for more details." >&5
25119 echo "$as_me: error: cannot compute sizeof (long long int), 77
25120 See \`config.log' for more details." >&2;}
25121 { (exit 1); exit 1; }; } ;;
25124 if test "$cross_compiling" = yes; then
25125 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25126 See \`config.log' for more details." >&5
25127 echo "$as_me: error: cannot run test program while cross compiling
25128 See \`config.log' for more details." >&2;}
25129 { (exit 1); exit 1; }; }
25131 cat >conftest.$ac_ext <<_ACEOF
25134 cat confdefs.h >>conftest.$ac_ext
25135 cat >>conftest.$ac_ext <<_ACEOF
25136 /* end confdefs.h. */
25137 $ac_includes_default
25138 long longval () { return (long) (sizeof (long long int)); }
25139 unsigned long ulongval () { return (long) (sizeof (long long int)); }
25141 #include <stdlib.h>
25146 FILE *f = fopen ("conftest.val", "w");
25149 if (((long) (sizeof (long long int))) < 0)
25151 long i = longval ();
25152 if (i != ((long) (sizeof (long long int))))
25154 fprintf (f, "%ld\n", i);
25158 unsigned long i = ulongval ();
25159 if (i != ((long) (sizeof (long long int))))
25161 fprintf (f, "%lu\n", i);
25163 exit (ferror (f) || fclose (f) != 0);
25169 rm -f conftest$ac_exeext
25170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25171 (eval $ac_link) 2>&5
25173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25174 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25176 (eval $ac_try) 2>&5
25178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25179 (exit $ac_status); }; }; then
25180 ac_cv_sizeof_long_long_int=`cat conftest.val`
25182 echo "$as_me: program exited with status $ac_status" >&5
25183 echo "$as_me: failed program was:" >&5
25184 sed 's/^/| /' conftest.$ac_ext >&5
25186 ( exit $ac_status )
25187 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
25188 See \`config.log' for more details." >&5
25189 echo "$as_me: error: cannot compute sizeof (long long int), 77
25190 See \`config.log' for more details." >&2;}
25191 { (exit 1); exit 1; }; }
25193 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25198 ac_cv_sizeof_long_long_int=0
25201 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
25202 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
25203 cat >>confdefs.h <<_ACEOF
25204 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
25208 echo "$as_me:$LINENO: checking for int *" >&5
25209 echo $ECHO_N "checking for int *... $ECHO_C" >&6
25210 if test "${ac_cv_type_int_p+set}" = set; then
25211 echo $ECHO_N "(cached) $ECHO_C" >&6
25213 cat >conftest.$ac_ext <<_ACEOF
25216 cat confdefs.h >>conftest.$ac_ext
25217 cat >>conftest.$ac_ext <<_ACEOF
25218 /* end confdefs.h. */
25219 $ac_includes_default
25225 if (sizeof (int *))
25231 rm -f conftest.$ac_objext
25232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25233 (eval $ac_compile) 2>conftest.er1
25235 grep -v '^ *+' conftest.er1 >conftest.err
25237 cat conftest.err >&5
25238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25239 (exit $ac_status); } &&
25240 { ac_try='test -z "$ac_c_werror_flag"
25241 || test ! -s conftest.err'
25242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25243 (eval $ac_try) 2>&5
25245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25246 (exit $ac_status); }; } &&
25247 { ac_try='test -s conftest.$ac_objext'
25248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25249 (eval $ac_try) 2>&5
25251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25252 (exit $ac_status); }; }; then
25253 ac_cv_type_int_p=yes
25255 echo "$as_me: failed program was:" >&5
25256 sed 's/^/| /' conftest.$ac_ext >&5
25258 ac_cv_type_int_p=no
25260 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25262 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
25263 echo "${ECHO_T}$ac_cv_type_int_p" >&6
25265 echo "$as_me:$LINENO: checking size of int *" >&5
25266 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
25267 if test "${ac_cv_sizeof_int_p+set}" = set; then
25268 echo $ECHO_N "(cached) $ECHO_C" >&6
25270 if test "$ac_cv_type_int_p" = yes; then
25271 # The cast to unsigned long works around a bug in the HP C Compiler
25272 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25273 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25274 # This bug is HP SR number 8606223364.
25275 if test "$cross_compiling" = yes; then
25276 # Depending upon the size, compute the lo and hi bounds.
25277 cat >conftest.$ac_ext <<_ACEOF
25280 cat confdefs.h >>conftest.$ac_ext
25281 cat >>conftest.$ac_ext <<_ACEOF
25282 /* end confdefs.h. */
25283 $ac_includes_default
25287 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
25294 rm -f conftest.$ac_objext
25295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25296 (eval $ac_compile) 2>conftest.er1
25298 grep -v '^ *+' conftest.er1 >conftest.err
25300 cat conftest.err >&5
25301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25302 (exit $ac_status); } &&
25303 { ac_try='test -z "$ac_c_werror_flag"
25304 || test ! -s conftest.err'
25305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25306 (eval $ac_try) 2>&5
25308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25309 (exit $ac_status); }; } &&
25310 { ac_try='test -s conftest.$ac_objext'
25311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25312 (eval $ac_try) 2>&5
25314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25315 (exit $ac_status); }; }; then
25318 cat >conftest.$ac_ext <<_ACEOF
25321 cat confdefs.h >>conftest.$ac_ext
25322 cat >>conftest.$ac_ext <<_ACEOF
25323 /* end confdefs.h. */
25324 $ac_includes_default
25328 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
25335 rm -f conftest.$ac_objext
25336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25337 (eval $ac_compile) 2>conftest.er1
25339 grep -v '^ *+' conftest.er1 >conftest.err
25341 cat conftest.err >&5
25342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25343 (exit $ac_status); } &&
25344 { ac_try='test -z "$ac_c_werror_flag"
25345 || test ! -s conftest.err'
25346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25347 (eval $ac_try) 2>&5
25349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25350 (exit $ac_status); }; } &&
25351 { ac_try='test -s conftest.$ac_objext'
25352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25353 (eval $ac_try) 2>&5
25355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25356 (exit $ac_status); }; }; then
25357 ac_hi=$ac_mid; break
25359 echo "$as_me: failed program was:" >&5
25360 sed 's/^/| /' conftest.$ac_ext >&5
25362 ac_lo=`expr $ac_mid + 1`
25363 if test $ac_lo -le $ac_mid; then
25367 ac_mid=`expr 2 '*' $ac_mid + 1`
25369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25372 echo "$as_me: failed program was:" >&5
25373 sed 's/^/| /' conftest.$ac_ext >&5
25375 cat >conftest.$ac_ext <<_ACEOF
25378 cat confdefs.h >>conftest.$ac_ext
25379 cat >>conftest.$ac_ext <<_ACEOF
25380 /* end confdefs.h. */
25381 $ac_includes_default
25385 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
25392 rm -f conftest.$ac_objext
25393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25394 (eval $ac_compile) 2>conftest.er1
25396 grep -v '^ *+' conftest.er1 >conftest.err
25398 cat conftest.err >&5
25399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25400 (exit $ac_status); } &&
25401 { ac_try='test -z "$ac_c_werror_flag"
25402 || test ! -s conftest.err'
25403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25404 (eval $ac_try) 2>&5
25406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25407 (exit $ac_status); }; } &&
25408 { ac_try='test -s conftest.$ac_objext'
25409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25410 (eval $ac_try) 2>&5
25412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25413 (exit $ac_status); }; }; then
25416 cat >conftest.$ac_ext <<_ACEOF
25419 cat confdefs.h >>conftest.$ac_ext
25420 cat >>conftest.$ac_ext <<_ACEOF
25421 /* end confdefs.h. */
25422 $ac_includes_default
25426 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
25433 rm -f conftest.$ac_objext
25434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25435 (eval $ac_compile) 2>conftest.er1
25437 grep -v '^ *+' conftest.er1 >conftest.err
25439 cat conftest.err >&5
25440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25441 (exit $ac_status); } &&
25442 { ac_try='test -z "$ac_c_werror_flag"
25443 || test ! -s conftest.err'
25444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25445 (eval $ac_try) 2>&5
25447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25448 (exit $ac_status); }; } &&
25449 { ac_try='test -s conftest.$ac_objext'
25450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25451 (eval $ac_try) 2>&5
25453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25454 (exit $ac_status); }; }; then
25455 ac_lo=$ac_mid; break
25457 echo "$as_me: failed program was:" >&5
25458 sed 's/^/| /' conftest.$ac_ext >&5
25460 ac_hi=`expr '(' $ac_mid ')' - 1`
25461 if test $ac_mid -le $ac_hi; then
25465 ac_mid=`expr 2 '*' $ac_mid`
25467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25470 echo "$as_me: failed program was:" >&5
25471 sed 's/^/| /' conftest.$ac_ext >&5
25475 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25477 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25478 # Binary search between lo and hi bounds.
25479 while test "x$ac_lo" != "x$ac_hi"; do
25480 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25481 cat >conftest.$ac_ext <<_ACEOF
25484 cat confdefs.h >>conftest.$ac_ext
25485 cat >>conftest.$ac_ext <<_ACEOF
25486 /* end confdefs.h. */
25487 $ac_includes_default
25491 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
25498 rm -f conftest.$ac_objext
25499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25500 (eval $ac_compile) 2>conftest.er1
25502 grep -v '^ *+' conftest.er1 >conftest.err
25504 cat conftest.err >&5
25505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25506 (exit $ac_status); } &&
25507 { ac_try='test -z "$ac_c_werror_flag"
25508 || test ! -s conftest.err'
25509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25510 (eval $ac_try) 2>&5
25512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25513 (exit $ac_status); }; } &&
25514 { ac_try='test -s conftest.$ac_objext'
25515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25516 (eval $ac_try) 2>&5
25518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25519 (exit $ac_status); }; }; then
25522 echo "$as_me: failed program was:" >&5
25523 sed 's/^/| /' conftest.$ac_ext >&5
25525 ac_lo=`expr '(' $ac_mid ')' + 1`
25527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25530 ?*) ac_cv_sizeof_int_p=$ac_lo;;
25531 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
25532 See \`config.log' for more details." >&5
25533 echo "$as_me: error: cannot compute sizeof (int *), 77
25534 See \`config.log' for more details." >&2;}
25535 { (exit 1); exit 1; }; } ;;
25538 if test "$cross_compiling" = yes; then
25539 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25540 See \`config.log' for more details." >&5
25541 echo "$as_me: error: cannot run test program while cross compiling
25542 See \`config.log' for more details." >&2;}
25543 { (exit 1); exit 1; }; }
25545 cat >conftest.$ac_ext <<_ACEOF
25548 cat confdefs.h >>conftest.$ac_ext
25549 cat >>conftest.$ac_ext <<_ACEOF
25550 /* end confdefs.h. */
25551 $ac_includes_default
25552 long longval () { return (long) (sizeof (int *)); }
25553 unsigned long ulongval () { return (long) (sizeof (int *)); }
25555 #include <stdlib.h>
25560 FILE *f = fopen ("conftest.val", "w");
25563 if (((long) (sizeof (int *))) < 0)
25565 long i = longval ();
25566 if (i != ((long) (sizeof (int *))))
25568 fprintf (f, "%ld\n", i);
25572 unsigned long i = ulongval ();
25573 if (i != ((long) (sizeof (int *))))
25575 fprintf (f, "%lu\n", i);
25577 exit (ferror (f) || fclose (f) != 0);
25583 rm -f conftest$ac_exeext
25584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25585 (eval $ac_link) 2>&5
25587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25588 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25590 (eval $ac_try) 2>&5
25592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25593 (exit $ac_status); }; }; then
25594 ac_cv_sizeof_int_p=`cat conftest.val`
25596 echo "$as_me: program exited with status $ac_status" >&5
25597 echo "$as_me: failed program was:" >&5
25598 sed 's/^/| /' conftest.$ac_ext >&5
25600 ( exit $ac_status )
25601 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
25602 See \`config.log' for more details." >&5
25603 echo "$as_me: error: cannot compute sizeof (int *), 77
25604 See \`config.log' for more details." >&2;}
25605 { (exit 1); exit 1; }; }
25607 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25612 ac_cv_sizeof_int_p=0
25615 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
25616 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
25617 cat >>confdefs.h <<_ACEOF
25618 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
25623 # Check for sys/types.h types
25624 echo "$as_me:$LINENO: checking for u_int type" >&5
25625 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
25626 if test "${ac_cv_have_u_int+set}" = set; then
25627 echo $ECHO_N "(cached) $ECHO_C" >&6
25630 cat >conftest.$ac_ext <<_ACEOF
25633 cat confdefs.h >>conftest.$ac_ext
25634 cat >>conftest.$ac_ext <<_ACEOF
25635 /* end confdefs.h. */
25636 #include <sys/types.h>
25645 rm -f conftest.$ac_objext
25646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25647 (eval $ac_compile) 2>conftest.er1
25649 grep -v '^ *+' conftest.er1 >conftest.err
25651 cat conftest.err >&5
25652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25653 (exit $ac_status); } &&
25654 { ac_try='test -z "$ac_c_werror_flag"
25655 || test ! -s conftest.err'
25656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25657 (eval $ac_try) 2>&5
25659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25660 (exit $ac_status); }; } &&
25661 { ac_try='test -s conftest.$ac_objext'
25662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25663 (eval $ac_try) 2>&5
25665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25666 (exit $ac_status); }; }; then
25667 ac_cv_have_u_int="yes"
25669 echo "$as_me: failed program was:" >&5
25670 sed 's/^/| /' conftest.$ac_ext >&5
25672 ac_cv_have_u_int="no"
25675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25678 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
25679 echo "${ECHO_T}$ac_cv_have_u_int" >&6
25680 if test "x$ac_cv_have_u_int" = "xyes" ; then
25681 cat >>confdefs.h <<\_ACEOF
25682 #define HAVE_U_INT 1
25688 echo "$as_me:$LINENO: checking for intmax_t type" >&5
25689 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
25690 if test "${ac_cv_have_intmax_t+set}" = set; then
25691 echo $ECHO_N "(cached) $ECHO_C" >&6
25694 cat >conftest.$ac_ext <<_ACEOF
25697 cat confdefs.h >>conftest.$ac_ext
25698 cat >>conftest.$ac_ext <<_ACEOF
25699 /* end confdefs.h. */
25700 #include <sys/types.h>
25709 rm -f conftest.$ac_objext
25710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25711 (eval $ac_compile) 2>conftest.er1
25713 grep -v '^ *+' conftest.er1 >conftest.err
25715 cat conftest.err >&5
25716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25717 (exit $ac_status); } &&
25718 { ac_try='test -z "$ac_c_werror_flag"
25719 || test ! -s conftest.err'
25720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25721 (eval $ac_try) 2>&5
25723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25724 (exit $ac_status); }; } &&
25725 { ac_try='test -s conftest.$ac_objext'
25726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25727 (eval $ac_try) 2>&5
25729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25730 (exit $ac_status); }; }; then
25731 ac_cv_have_intmax_t="yes"
25733 echo "$as_me: failed program was:" >&5
25734 sed 's/^/| /' conftest.$ac_ext >&5
25737 cat >conftest.$ac_ext <<_ACEOF
25740 cat confdefs.h >>conftest.$ac_ext
25741 cat >>conftest.$ac_ext <<_ACEOF
25742 /* end confdefs.h. */
25743 #include <stdint.h>
25752 rm -f conftest.$ac_objext
25753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25754 (eval $ac_compile) 2>conftest.er1
25756 grep -v '^ *+' conftest.er1 >conftest.err
25758 cat conftest.err >&5
25759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25760 (exit $ac_status); } &&
25761 { ac_try='test -z "$ac_c_werror_flag"
25762 || test ! -s conftest.err'
25763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25764 (eval $ac_try) 2>&5
25766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25767 (exit $ac_status); }; } &&
25768 { ac_try='test -s conftest.$ac_objext'
25769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25770 (eval $ac_try) 2>&5
25772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25773 (exit $ac_status); }; }; then
25774 ac_cv_have_intmax_t="yes"
25776 echo "$as_me: failed program was:" >&5
25777 sed 's/^/| /' conftest.$ac_ext >&5
25779 ac_cv_have_intmax_t="no"
25782 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25786 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25790 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
25791 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
25792 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
25793 cat >>confdefs.h <<\_ACEOF
25794 #define HAVE_INTMAX_T 1
25801 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
25802 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
25803 if test "${ac_cv_have_u_intmax_t+set}" = set; then
25804 echo $ECHO_N "(cached) $ECHO_C" >&6
25807 cat >conftest.$ac_ext <<_ACEOF
25810 cat confdefs.h >>conftest.$ac_ext
25811 cat >>conftest.$ac_ext <<_ACEOF
25812 /* end confdefs.h. */
25813 #include <sys/types.h>
25817 u_intmax_t a; a = 1;
25822 rm -f conftest.$ac_objext
25823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25824 (eval $ac_compile) 2>conftest.er1
25826 grep -v '^ *+' conftest.er1 >conftest.err
25828 cat conftest.err >&5
25829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25830 (exit $ac_status); } &&
25831 { ac_try='test -z "$ac_c_werror_flag"
25832 || test ! -s conftest.err'
25833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25834 (eval $ac_try) 2>&5
25836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25837 (exit $ac_status); }; } &&
25838 { ac_try='test -s conftest.$ac_objext'
25839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25840 (eval $ac_try) 2>&5
25842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25843 (exit $ac_status); }; }; then
25844 ac_cv_have_u_intmax_t="yes"
25846 echo "$as_me: failed program was:" >&5
25847 sed 's/^/| /' conftest.$ac_ext >&5
25850 cat >conftest.$ac_ext <<_ACEOF
25853 cat confdefs.h >>conftest.$ac_ext
25854 cat >>conftest.$ac_ext <<_ACEOF
25855 /* end confdefs.h. */
25856 #include <stdint.h>
25860 u_intmax_t a; a = 1;
25865 rm -f conftest.$ac_objext
25866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25867 (eval $ac_compile) 2>conftest.er1
25869 grep -v '^ *+' conftest.er1 >conftest.err
25871 cat conftest.err >&5
25872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25873 (exit $ac_status); } &&
25874 { ac_try='test -z "$ac_c_werror_flag"
25875 || test ! -s conftest.err'
25876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25877 (eval $ac_try) 2>&5
25879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25880 (exit $ac_status); }; } &&
25881 { ac_try='test -s conftest.$ac_objext'
25882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25883 (eval $ac_try) 2>&5
25885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25886 (exit $ac_status); }; }; then
25887 ac_cv_have_u_intmax_t="yes"
25889 echo "$as_me: failed program was:" >&5
25890 sed 's/^/| /' conftest.$ac_ext >&5
25892 ac_cv_have_u_intmax_t="no"
25895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25902 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
25903 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
25904 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
25905 cat >>confdefs.h <<\_ACEOF
25906 #define HAVE_U_INTMAX_T 1
25913 echo "$as_me:$LINENO: checking for intXX_t types" >&5
25914 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
25915 if test "${ac_cv_have_intxx_t+set}" = set; then
25916 echo $ECHO_N "(cached) $ECHO_C" >&6
25919 cat >conftest.$ac_ext <<_ACEOF
25922 cat confdefs.h >>conftest.$ac_ext
25923 cat >>conftest.$ac_ext <<_ACEOF
25924 /* end confdefs.h. */
25925 #include <sys/types.h>
25929 int8_t a; int16_t b; int32_t c; a = b = c = 1;
25934 rm -f conftest.$ac_objext
25935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25936 (eval $ac_compile) 2>conftest.er1
25938 grep -v '^ *+' conftest.er1 >conftest.err
25940 cat conftest.err >&5
25941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25942 (exit $ac_status); } &&
25943 { ac_try='test -z "$ac_c_werror_flag"
25944 || test ! -s conftest.err'
25945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25946 (eval $ac_try) 2>&5
25948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25949 (exit $ac_status); }; } &&
25950 { ac_try='test -s conftest.$ac_objext'
25951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25952 (eval $ac_try) 2>&5
25954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25955 (exit $ac_status); }; }; then
25956 ac_cv_have_intxx_t="yes"
25958 echo "$as_me: failed program was:" >&5
25959 sed 's/^/| /' conftest.$ac_ext >&5
25961 ac_cv_have_intxx_t="no"
25964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25967 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
25968 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
25969 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
25970 cat >>confdefs.h <<\_ACEOF
25971 #define HAVE_INTXX_T 1
25977 echo "$as_me:$LINENO: checking for int64_t type" >&5
25978 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
25979 if test "${ac_cv_have_int64_t+set}" = set; then
25980 echo $ECHO_N "(cached) $ECHO_C" >&6
25983 cat >conftest.$ac_ext <<_ACEOF
25986 cat confdefs.h >>conftest.$ac_ext
25987 cat >>conftest.$ac_ext <<_ACEOF
25988 /* end confdefs.h. */
25989 #include <sys/types.h>
25998 rm -f conftest.$ac_objext
25999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26000 (eval $ac_compile) 2>conftest.er1
26002 grep -v '^ *+' conftest.er1 >conftest.err
26004 cat conftest.err >&5
26005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26006 (exit $ac_status); } &&
26007 { ac_try='test -z "$ac_c_werror_flag"
26008 || test ! -s conftest.err'
26009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26010 (eval $ac_try) 2>&5
26012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26013 (exit $ac_status); }; } &&
26014 { ac_try='test -s conftest.$ac_objext'
26015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26016 (eval $ac_try) 2>&5
26018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26019 (exit $ac_status); }; }; then
26020 ac_cv_have_int64_t="yes"
26022 echo "$as_me: failed program was:" >&5
26023 sed 's/^/| /' conftest.$ac_ext >&5
26025 ac_cv_have_int64_t="no"
26028 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26031 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
26032 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
26033 if test "x$ac_cv_have_int64_t" = "xyes" ; then
26034 cat >>confdefs.h <<\_ACEOF
26035 #define HAVE_INT64_T 1
26041 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
26042 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
26043 if test "${ac_cv_have_u_intxx_t+set}" = set; then
26044 echo $ECHO_N "(cached) $ECHO_C" >&6
26047 cat >conftest.$ac_ext <<_ACEOF
26050 cat confdefs.h >>conftest.$ac_ext
26051 cat >>conftest.$ac_ext <<_ACEOF
26052 /* end confdefs.h. */
26053 #include <sys/types.h>
26057 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
26062 rm -f conftest.$ac_objext
26063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26064 (eval $ac_compile) 2>conftest.er1
26066 grep -v '^ *+' conftest.er1 >conftest.err
26068 cat conftest.err >&5
26069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26070 (exit $ac_status); } &&
26071 { ac_try='test -z "$ac_c_werror_flag"
26072 || test ! -s conftest.err'
26073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26074 (eval $ac_try) 2>&5
26076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26077 (exit $ac_status); }; } &&
26078 { ac_try='test -s conftest.$ac_objext'
26079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26080 (eval $ac_try) 2>&5
26082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26083 (exit $ac_status); }; }; then
26084 ac_cv_have_u_intxx_t="yes"
26086 echo "$as_me: failed program was:" >&5
26087 sed 's/^/| /' conftest.$ac_ext >&5
26089 ac_cv_have_u_intxx_t="no"
26092 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26095 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
26096 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
26097 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
26098 cat >>confdefs.h <<\_ACEOF
26099 #define HAVE_U_INTXX_T 1
26105 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
26106 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
26107 if test "${ac_cv_have_u_int64_t+set}" = set; then
26108 echo $ECHO_N "(cached) $ECHO_C" >&6
26111 cat >conftest.$ac_ext <<_ACEOF
26114 cat confdefs.h >>conftest.$ac_ext
26115 cat >>conftest.$ac_ext <<_ACEOF
26116 /* end confdefs.h. */
26117 #include <sys/types.h>
26121 u_int64_t a; a = 1;
26126 rm -f conftest.$ac_objext
26127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26128 (eval $ac_compile) 2>conftest.er1
26130 grep -v '^ *+' conftest.er1 >conftest.err
26132 cat conftest.err >&5
26133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26134 (exit $ac_status); } &&
26135 { ac_try='test -z "$ac_c_werror_flag"
26136 || test ! -s conftest.err'
26137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26138 (eval $ac_try) 2>&5
26140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26141 (exit $ac_status); }; } &&
26142 { ac_try='test -s conftest.$ac_objext'
26143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26144 (eval $ac_try) 2>&5
26146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26147 (exit $ac_status); }; }; then
26148 ac_cv_have_u_int64_t="yes"
26150 echo "$as_me: failed program was:" >&5
26151 sed 's/^/| /' conftest.$ac_ext >&5
26153 ac_cv_have_u_int64_t="no"
26156 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26159 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
26160 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
26161 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
26162 cat >>confdefs.h <<\_ACEOF
26163 #define HAVE_U_INT64_T 1
26169 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
26170 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26172 echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
26173 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
26174 cat >conftest.$ac_ext <<_ACEOF
26177 cat confdefs.h >>conftest.$ac_ext
26178 cat >>conftest.$ac_ext <<_ACEOF
26179 /* end confdefs.h. */
26180 #include <sys/bitypes.h>
26184 int8_t a; int16_t b; int32_t c;
26185 u_int8_t e; u_int16_t f; u_int32_t g;
26186 a = b = c = e = f = g = 1;
26191 rm -f conftest.$ac_objext
26192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26193 (eval $ac_compile) 2>conftest.er1
26195 grep -v '^ *+' conftest.er1 >conftest.err
26197 cat conftest.err >&5
26198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26199 (exit $ac_status); } &&
26200 { ac_try='test -z "$ac_c_werror_flag"
26201 || test ! -s conftest.err'
26202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26203 (eval $ac_try) 2>&5
26205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26206 (exit $ac_status); }; } &&
26207 { ac_try='test -s conftest.$ac_objext'
26208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26209 (eval $ac_try) 2>&5
26211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26212 (exit $ac_status); }; }; then
26213 cat >>confdefs.h <<\_ACEOF
26214 #define HAVE_U_INTXX_T 1
26217 cat >>confdefs.h <<\_ACEOF
26218 #define HAVE_INTXX_T 1
26221 cat >>confdefs.h <<\_ACEOF
26222 #define HAVE_SYS_BITYPES_H 1
26225 echo "$as_me:$LINENO: result: yes" >&5
26226 echo "${ECHO_T}yes" >&6
26228 echo "$as_me: failed program was:" >&5
26229 sed 's/^/| /' conftest.$ac_ext >&5
26231 echo "$as_me:$LINENO: result: no" >&5
26232 echo "${ECHO_T}no" >&6
26235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26238 if test -z "$have_u_intxx_t" ; then
26239 echo "$as_me:$LINENO: checking for uintXX_t types" >&5
26240 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
26241 if test "${ac_cv_have_uintxx_t+set}" = set; then
26242 echo $ECHO_N "(cached) $ECHO_C" >&6
26245 cat >conftest.$ac_ext <<_ACEOF
26248 cat confdefs.h >>conftest.$ac_ext
26249 cat >>conftest.$ac_ext <<_ACEOF
26250 /* end confdefs.h. */
26251 #include <sys/types.h>
26255 uint8_t a; uint16_t b;
26256 uint32_t c; a = b = c = 1;
26261 rm -f conftest.$ac_objext
26262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26263 (eval $ac_compile) 2>conftest.er1
26265 grep -v '^ *+' conftest.er1 >conftest.err
26267 cat conftest.err >&5
26268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26269 (exit $ac_status); } &&
26270 { ac_try='test -z "$ac_c_werror_flag"
26271 || test ! -s conftest.err'
26272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26273 (eval $ac_try) 2>&5
26275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26276 (exit $ac_status); }; } &&
26277 { ac_try='test -s conftest.$ac_objext'
26278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26279 (eval $ac_try) 2>&5
26281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26282 (exit $ac_status); }; }; then
26283 ac_cv_have_uintxx_t="yes"
26285 echo "$as_me: failed program was:" >&5
26286 sed 's/^/| /' conftest.$ac_ext >&5
26288 ac_cv_have_uintxx_t="no"
26291 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26294 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
26295 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
26296 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
26297 cat >>confdefs.h <<\_ACEOF
26298 #define HAVE_UINTXX_T 1
26304 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
26305 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26307 echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
26308 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
26309 cat >conftest.$ac_ext <<_ACEOF
26312 cat confdefs.h >>conftest.$ac_ext
26313 cat >>conftest.$ac_ext <<_ACEOF
26314 /* end confdefs.h. */
26315 #include <sys/bitypes.h>
26319 int64_t a; u_int64_t b;
26325 rm -f conftest.$ac_objext
26326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26327 (eval $ac_compile) 2>conftest.er1
26329 grep -v '^ *+' conftest.er1 >conftest.err
26331 cat conftest.err >&5
26332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26333 (exit $ac_status); } &&
26334 { ac_try='test -z "$ac_c_werror_flag"
26335 || test ! -s conftest.err'
26336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26337 (eval $ac_try) 2>&5
26339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26340 (exit $ac_status); }; } &&
26341 { ac_try='test -s conftest.$ac_objext'
26342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26343 (eval $ac_try) 2>&5
26345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26346 (exit $ac_status); }; }; then
26347 cat >>confdefs.h <<\_ACEOF
26348 #define HAVE_U_INT64_T 1
26351 cat >>confdefs.h <<\_ACEOF
26352 #define HAVE_INT64_T 1
26355 echo "$as_me:$LINENO: result: yes" >&5
26356 echo "${ECHO_T}yes" >&6
26358 echo "$as_me: failed program was:" >&5
26359 sed 's/^/| /' conftest.$ac_ext >&5
26361 echo "$as_me:$LINENO: result: no" >&5
26362 echo "${ECHO_T}no" >&6
26365 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26368 if (test -z "$have_uintxx_t" && \
26369 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26371 echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
26372 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
26373 cat >conftest.$ac_ext <<_ACEOF
26376 cat confdefs.h >>conftest.$ac_ext
26377 cat >>conftest.$ac_ext <<_ACEOF
26378 /* end confdefs.h. */
26379 #include <sys/bitypes.h>
26383 uint8_t a; uint16_t b;
26384 uint32_t c; a = b = c = 1;
26389 rm -f conftest.$ac_objext
26390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26391 (eval $ac_compile) 2>conftest.er1
26393 grep -v '^ *+' conftest.er1 >conftest.err
26395 cat conftest.err >&5
26396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26397 (exit $ac_status); } &&
26398 { ac_try='test -z "$ac_c_werror_flag"
26399 || test ! -s conftest.err'
26400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26401 (eval $ac_try) 2>&5
26403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26404 (exit $ac_status); }; } &&
26405 { ac_try='test -s conftest.$ac_objext'
26406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26407 (eval $ac_try) 2>&5
26409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26410 (exit $ac_status); }; }; then
26411 cat >>confdefs.h <<\_ACEOF
26412 #define HAVE_UINTXX_T 1
26415 echo "$as_me:$LINENO: result: yes" >&5
26416 echo "${ECHO_T}yes" >&6
26418 echo "$as_me: failed program was:" >&5
26419 sed 's/^/| /' conftest.$ac_ext >&5
26421 echo "$as_me:$LINENO: result: no" >&5
26422 echo "${ECHO_T}no" >&6
26425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26461 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26462 echo "$as_me:$LINENO: checking for $ac_func" >&5
26463 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26464 if eval "test \"\${$as_ac_var+set}\" = set"; then
26465 echo $ECHO_N "(cached) $ECHO_C" >&6
26467 cat >conftest.$ac_ext <<_ACEOF
26470 cat confdefs.h >>conftest.$ac_ext
26471 cat >>conftest.$ac_ext <<_ACEOF
26472 /* end confdefs.h. */
26473 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26474 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26475 #define $ac_func innocuous_$ac_func
26477 /* System header to define __stub macros and hopefully few prototypes,
26478 which can conflict with char $ac_func (); below.
26479 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26480 <limits.h> exists even on freestanding compilers. */
26483 # include <limits.h>
26485 # include <assert.h>
26490 /* Override any gcc2 internal prototype to avoid an error. */
26495 /* We use char because int might match the return type of a gcc2
26496 builtin and then its argument prototype would still apply. */
26498 /* The GNU C library defines this for functions which it implements
26499 to always fail with ENOSYS. Some functions are actually named
26500 something starting with __ and the normal name is an alias. */
26501 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26504 char (*f) () = $ac_func;
26513 return f != $ac_func;
26518 rm -f conftest.$ac_objext conftest$ac_exeext
26519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26520 (eval $ac_link) 2>conftest.er1
26522 grep -v '^ *+' conftest.er1 >conftest.err
26524 cat conftest.err >&5
26525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26526 (exit $ac_status); } &&
26527 { ac_try='test -z "$ac_c_werror_flag"
26528 || test ! -s conftest.err'
26529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26530 (eval $ac_try) 2>&5
26532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26533 (exit $ac_status); }; } &&
26534 { ac_try='test -s conftest$ac_exeext'
26535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26536 (eval $ac_try) 2>&5
26538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26539 (exit $ac_status); }; }; then
26540 eval "$as_ac_var=yes"
26542 echo "$as_me: failed program was:" >&5
26543 sed 's/^/| /' conftest.$ac_ext >&5
26545 eval "$as_ac_var=no"
26547 rm -f conftest.err conftest.$ac_objext \
26548 conftest$ac_exeext conftest.$ac_ext
26550 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26551 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26552 if test `eval echo '${'$as_ac_var'}'` = yes; then
26553 cat >>confdefs.h <<_ACEOF
26554 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26558 echo 'configure: cannot find needed function.'; exit 1
26565 for ac_func in fchdir
26567 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26568 echo "$as_me:$LINENO: checking for $ac_func" >&5
26569 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26570 if eval "test \"\${$as_ac_var+set}\" = set"; then
26571 echo $ECHO_N "(cached) $ECHO_C" >&6
26573 cat >conftest.$ac_ext <<_ACEOF
26576 cat confdefs.h >>conftest.$ac_ext
26577 cat >>conftest.$ac_ext <<_ACEOF
26578 /* end confdefs.h. */
26579 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26580 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26581 #define $ac_func innocuous_$ac_func
26583 /* System header to define __stub macros and hopefully few prototypes,
26584 which can conflict with char $ac_func (); below.
26585 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26586 <limits.h> exists even on freestanding compilers. */
26589 # include <limits.h>
26591 # include <assert.h>
26596 /* Override any gcc2 internal prototype to avoid an error. */
26601 /* We use char because int might match the return type of a gcc2
26602 builtin and then its argument prototype would still apply. */
26604 /* The GNU C library defines this for functions which it implements
26605 to always fail with ENOSYS. Some functions are actually named
26606 something starting with __ and the normal name is an alias. */
26607 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26610 char (*f) () = $ac_func;
26619 return f != $ac_func;
26624 rm -f conftest.$ac_objext conftest$ac_exeext
26625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26626 (eval $ac_link) 2>conftest.er1
26628 grep -v '^ *+' conftest.er1 >conftest.err
26630 cat conftest.err >&5
26631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26632 (exit $ac_status); } &&
26633 { ac_try='test -z "$ac_c_werror_flag"
26634 || test ! -s conftest.err'
26635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26636 (eval $ac_try) 2>&5
26638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26639 (exit $ac_status); }; } &&
26640 { ac_try='test -s conftest$ac_exeext'
26641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26642 (eval $ac_try) 2>&5
26644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26645 (exit $ac_status); }; }; then
26646 eval "$as_ac_var=yes"
26648 echo "$as_me: failed program was:" >&5
26649 sed 's/^/| /' conftest.$ac_ext >&5
26651 eval "$as_ac_var=no"
26653 rm -f conftest.err conftest.$ac_objext \
26654 conftest$ac_exeext conftest.$ac_ext
26656 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26657 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26658 if test `eval echo '${'$as_ac_var'}'` = yes; then
26659 cat >>confdefs.h <<_ACEOF
26660 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26662 cat >>confdefs.h <<\_ACEOF
26663 #define HAVE_FCHDIR 1
26670 for ac_func in strtoll
26672 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26673 echo "$as_me:$LINENO: checking for $ac_func" >&5
26674 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26675 if eval "test \"\${$as_ac_var+set}\" = set"; then
26676 echo $ECHO_N "(cached) $ECHO_C" >&6
26678 cat >conftest.$ac_ext <<_ACEOF
26681 cat confdefs.h >>conftest.$ac_ext
26682 cat >>conftest.$ac_ext <<_ACEOF
26683 /* end confdefs.h. */
26684 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26685 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26686 #define $ac_func innocuous_$ac_func
26688 /* System header to define __stub macros and hopefully few prototypes,
26689 which can conflict with char $ac_func (); below.
26690 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26691 <limits.h> exists even on freestanding compilers. */
26694 # include <limits.h>
26696 # include <assert.h>
26701 /* Override any gcc2 internal prototype to avoid an error. */
26706 /* We use char because int might match the return type of a gcc2
26707 builtin and then its argument prototype would still apply. */
26709 /* The GNU C library defines this for functions which it implements
26710 to always fail with ENOSYS. Some functions are actually named
26711 something starting with __ and the normal name is an alias. */
26712 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26715 char (*f) () = $ac_func;
26724 return f != $ac_func;
26729 rm -f conftest.$ac_objext conftest$ac_exeext
26730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26731 (eval $ac_link) 2>conftest.er1
26733 grep -v '^ *+' conftest.er1 >conftest.err
26735 cat conftest.err >&5
26736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26737 (exit $ac_status); } &&
26738 { ac_try='test -z "$ac_c_werror_flag"
26739 || test ! -s conftest.err'
26740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26741 (eval $ac_try) 2>&5
26743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26744 (exit $ac_status); }; } &&
26745 { ac_try='test -s conftest$ac_exeext'
26746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26747 (eval $ac_try) 2>&5
26749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26750 (exit $ac_status); }; }; then
26751 eval "$as_ac_var=yes"
26753 echo "$as_me: failed program was:" >&5
26754 sed 's/^/| /' conftest.$ac_ext >&5
26756 eval "$as_ac_var=no"
26758 rm -f conftest.err conftest.$ac_objext \
26759 conftest$ac_exeext conftest.$ac_ext
26761 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26762 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26763 if test `eval echo '${'$as_ac_var'}'` = yes; then
26764 cat >>confdefs.h <<_ACEOF
26765 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26767 cat >>confdefs.h <<\_ACEOF
26768 #define HAVE_STRTOLL 1
26775 for ac_func in posix_fadvise
26777 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26778 echo "$as_me:$LINENO: checking for $ac_func" >&5
26779 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26780 if eval "test \"\${$as_ac_var+set}\" = set"; then
26781 echo $ECHO_N "(cached) $ECHO_C" >&6
26783 cat >conftest.$ac_ext <<_ACEOF
26786 cat confdefs.h >>conftest.$ac_ext
26787 cat >>conftest.$ac_ext <<_ACEOF
26788 /* end confdefs.h. */
26789 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26790 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26791 #define $ac_func innocuous_$ac_func
26793 /* System header to define __stub macros and hopefully few prototypes,
26794 which can conflict with char $ac_func (); below.
26795 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26796 <limits.h> exists even on freestanding compilers. */
26799 # include <limits.h>
26801 # include <assert.h>
26806 /* Override any gcc2 internal prototype to avoid an error. */
26811 /* We use char because int might match the return type of a gcc2
26812 builtin and then its argument prototype would still apply. */
26814 /* The GNU C library defines this for functions which it implements
26815 to always fail with ENOSYS. Some functions are actually named
26816 something starting with __ and the normal name is an alias. */
26817 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26820 char (*f) () = $ac_func;
26829 return f != $ac_func;
26834 rm -f conftest.$ac_objext conftest$ac_exeext
26835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26836 (eval $ac_link) 2>conftest.er1
26838 grep -v '^ *+' conftest.er1 >conftest.err
26840 cat conftest.err >&5
26841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26842 (exit $ac_status); } &&
26843 { ac_try='test -z "$ac_c_werror_flag"
26844 || test ! -s conftest.err'
26845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26846 (eval $ac_try) 2>&5
26848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26849 (exit $ac_status); }; } &&
26850 { ac_try='test -s conftest$ac_exeext'
26851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26852 (eval $ac_try) 2>&5
26854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26855 (exit $ac_status); }; }; then
26856 eval "$as_ac_var=yes"
26858 echo "$as_me: failed program was:" >&5
26859 sed 's/^/| /' conftest.$ac_ext >&5
26861 eval "$as_ac_var=no"
26863 rm -f conftest.err conftest.$ac_objext \
26864 conftest$ac_exeext conftest.$ac_ext
26866 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26867 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26868 if test `eval echo '${'$as_ac_var'}'` = yes; then
26869 cat >>confdefs.h <<_ACEOF
26870 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26877 for ac_func in fdatasync
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
26980 for ac_func in chflags
26982 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26983 echo "$as_me:$LINENO: checking for $ac_func" >&5
26984 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26985 if eval "test \"\${$as_ac_var+set}\" = set"; then
26986 echo $ECHO_N "(cached) $ECHO_C" >&6
26988 cat >conftest.$ac_ext <<_ACEOF
26991 cat confdefs.h >>conftest.$ac_ext
26992 cat >>conftest.$ac_ext <<_ACEOF
26993 /* end confdefs.h. */
26994 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26995 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26996 #define $ac_func innocuous_$ac_func
26998 /* System header to define __stub macros and hopefully few prototypes,
26999 which can conflict with char $ac_func (); below.
27000 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27001 <limits.h> exists even on freestanding compilers. */
27004 # include <limits.h>
27006 # include <assert.h>
27011 /* Override any gcc2 internal prototype to avoid an error. */
27016 /* We use char because int might match the return type of a gcc2
27017 builtin and then its argument prototype would still apply. */
27019 /* The GNU C library defines this for functions which it implements
27020 to always fail with ENOSYS. Some functions are actually named
27021 something starting with __ and the normal name is an alias. */
27022 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27025 char (*f) () = $ac_func;
27034 return f != $ac_func;
27039 rm -f conftest.$ac_objext conftest$ac_exeext
27040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27041 (eval $ac_link) 2>conftest.er1
27043 grep -v '^ *+' conftest.er1 >conftest.err
27045 cat conftest.err >&5
27046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27047 (exit $ac_status); } &&
27048 { ac_try='test -z "$ac_c_werror_flag"
27049 || test ! -s conftest.err'
27050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27051 (eval $ac_try) 2>&5
27053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27054 (exit $ac_status); }; } &&
27055 { ac_try='test -s conftest$ac_exeext'
27056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27057 (eval $ac_try) 2>&5
27059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27060 (exit $ac_status); }; }; then
27061 eval "$as_ac_var=yes"
27063 echo "$as_me: failed program was:" >&5
27064 sed 's/^/| /' conftest.$ac_ext >&5
27066 eval "$as_ac_var=no"
27068 rm -f conftest.err conftest.$ac_objext \
27069 conftest$ac_exeext conftest.$ac_ext
27071 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27072 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27073 if test `eval echo '${'$as_ac_var'}'` = yes; then
27074 cat >>confdefs.h <<_ACEOF
27075 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27086 for ac_func in snprintf vsnprintf gethostid fseeko
27088 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27089 echo "$as_me:$LINENO: checking for $ac_func" >&5
27090 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27091 if eval "test \"\${$as_ac_var+set}\" = set"; then
27092 echo $ECHO_N "(cached) $ECHO_C" >&6
27094 cat >conftest.$ac_ext <<_ACEOF
27097 cat confdefs.h >>conftest.$ac_ext
27098 cat >>conftest.$ac_ext <<_ACEOF
27099 /* end confdefs.h. */
27100 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27101 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27102 #define $ac_func innocuous_$ac_func
27104 /* System header to define __stub macros and hopefully few prototypes,
27105 which can conflict with char $ac_func (); below.
27106 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27107 <limits.h> exists even on freestanding compilers. */
27110 # include <limits.h>
27112 # include <assert.h>
27117 /* Override any gcc2 internal prototype to avoid an error. */
27122 /* We use char because int might match the return type of a gcc2
27123 builtin and then its argument prototype would still apply. */
27125 /* The GNU C library defines this for functions which it implements
27126 to always fail with ENOSYS. Some functions are actually named
27127 something starting with __ and the normal name is an alias. */
27128 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27131 char (*f) () = $ac_func;
27140 return f != $ac_func;
27145 rm -f conftest.$ac_objext conftest$ac_exeext
27146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27147 (eval $ac_link) 2>conftest.er1
27149 grep -v '^ *+' conftest.er1 >conftest.err
27151 cat conftest.err >&5
27152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27153 (exit $ac_status); } &&
27154 { ac_try='test -z "$ac_c_werror_flag"
27155 || test ! -s conftest.err'
27156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27157 (eval $ac_try) 2>&5
27159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27160 (exit $ac_status); }; } &&
27161 { ac_try='test -s conftest$ac_exeext'
27162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27163 (eval $ac_try) 2>&5
27165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27166 (exit $ac_status); }; }; then
27167 eval "$as_ac_var=yes"
27169 echo "$as_me: failed program was:" >&5
27170 sed 's/^/| /' conftest.$ac_ext >&5
27172 eval "$as_ac_var=no"
27174 rm -f conftest.err conftest.$ac_objext \
27175 conftest$ac_exeext conftest.$ac_ext
27177 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27178 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27179 if test `eval echo '${'$as_ac_var'}'` = yes; then
27180 cat >>confdefs.h <<_ACEOF
27181 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27188 echo "$as_me:$LINENO: checking for va_copy" >&5
27189 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
27190 if test "${ba_cv_va_copy+set}" = set; then
27191 echo $ECHO_N "(cached) $ECHO_C" >&6
27193 cat >conftest.$ac_ext <<_ACEOF
27196 cat confdefs.h >>conftest.$ac_ext
27197 cat >>conftest.$ac_ext <<_ACEOF
27198 /* end confdefs.h. */
27200 #include <stdarg.h>
27201 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
27202 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
27207 call_use_va_copy(1,2,3)
27212 rm -f conftest.$ac_objext conftest$ac_exeext
27213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27214 (eval $ac_link) 2>conftest.er1
27216 grep -v '^ *+' conftest.er1 >conftest.err
27218 cat conftest.err >&5
27219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27220 (exit $ac_status); } &&
27221 { ac_try='test -z "$ac_c_werror_flag"
27222 || test ! -s conftest.err'
27223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27224 (eval $ac_try) 2>&5
27226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27227 (exit $ac_status); }; } &&
27228 { ac_try='test -s conftest$ac_exeext'
27229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27230 (eval $ac_try) 2>&5
27232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27233 (exit $ac_status); }; }; then
27236 echo "$as_me: failed program was:" >&5
27237 sed 's/^/| /' conftest.$ac_ext >&5
27241 rm -f conftest.err conftest.$ac_objext \
27242 conftest$ac_exeext conftest.$ac_ext
27244 echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
27245 echo "${ECHO_T}$ba_cv_va_copy" >&6
27246 test $ba_cv_va_copy = yes &&
27247 cat >>confdefs.h <<\_ACEOF
27248 #define HAVE_VA_COPY 1
27257 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
27259 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27260 echo "$as_me:$LINENO: checking for $ac_func" >&5
27261 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27262 if eval "test \"\${$as_ac_var+set}\" = set"; then
27263 echo $ECHO_N "(cached) $ECHO_C" >&6
27265 cat >conftest.$ac_ext <<_ACEOF
27268 cat confdefs.h >>conftest.$ac_ext
27269 cat >>conftest.$ac_ext <<_ACEOF
27270 /* end confdefs.h. */
27271 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27272 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27273 #define $ac_func innocuous_$ac_func
27275 /* System header to define __stub macros and hopefully few prototypes,
27276 which can conflict with char $ac_func (); below.
27277 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27278 <limits.h> exists even on freestanding compilers. */
27281 # include <limits.h>
27283 # include <assert.h>
27288 /* Override any gcc2 internal prototype to avoid an error. */
27293 /* We use char because int might match the return type of a gcc2
27294 builtin and then its argument prototype would still apply. */
27296 /* The GNU C library defines this for functions which it implements
27297 to always fail with ENOSYS. Some functions are actually named
27298 something starting with __ and the normal name is an alias. */
27299 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27302 char (*f) () = $ac_func;
27311 return f != $ac_func;
27316 rm -f conftest.$ac_objext conftest$ac_exeext
27317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27318 (eval $ac_link) 2>conftest.er1
27320 grep -v '^ *+' conftest.er1 >conftest.err
27322 cat conftest.err >&5
27323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27324 (exit $ac_status); } &&
27325 { ac_try='test -z "$ac_c_werror_flag"
27326 || test ! -s conftest.err'
27327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27328 (eval $ac_try) 2>&5
27330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27331 (exit $ac_status); }; } &&
27332 { ac_try='test -s conftest$ac_exeext'
27333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27334 (eval $ac_try) 2>&5
27336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27337 (exit $ac_status); }; }; then
27338 eval "$as_ac_var=yes"
27340 echo "$as_me: failed program was:" >&5
27341 sed 's/^/| /' conftest.$ac_ext >&5
27343 eval "$as_ac_var=no"
27345 rm -f conftest.err conftest.$ac_objext \
27346 conftest$ac_exeext conftest.$ac_ext
27348 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27349 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27350 if test `eval echo '${'$as_ac_var'}'` = yes; then
27351 cat >>confdefs.h <<_ACEOF
27352 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27359 # If resolver functions are not in libc check for -lnsl or -lresolv.
27360 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
27361 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
27362 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
27363 echo $ECHO_N "(cached) $ECHO_C" >&6
27365 cat >conftest.$ac_ext <<_ACEOF
27368 cat confdefs.h >>conftest.$ac_ext
27369 cat >>conftest.$ac_ext <<_ACEOF
27370 /* end confdefs.h. */
27371 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
27372 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27373 #define gethostbyname_r innocuous_gethostbyname_r
27375 /* System header to define __stub macros and hopefully few prototypes,
27376 which can conflict with char gethostbyname_r (); below.
27377 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27378 <limits.h> exists even on freestanding compilers. */
27381 # include <limits.h>
27383 # include <assert.h>
27386 #undef gethostbyname_r
27388 /* Override any gcc2 internal prototype to avoid an error. */
27393 /* We use char because int might match the return type of a gcc2
27394 builtin and then its argument prototype would still apply. */
27395 char gethostbyname_r ();
27396 /* The GNU C library defines this for functions which it implements
27397 to always fail with ENOSYS. Some functions are actually named
27398 something starting with __ and the normal name is an alias. */
27399 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
27402 char (*f) () = gethostbyname_r;
27411 return f != gethostbyname_r;
27416 rm -f conftest.$ac_objext conftest$ac_exeext
27417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27418 (eval $ac_link) 2>conftest.er1
27420 grep -v '^ *+' conftest.er1 >conftest.err
27422 cat conftest.err >&5
27423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27424 (exit $ac_status); } &&
27425 { ac_try='test -z "$ac_c_werror_flag"
27426 || test ! -s conftest.err'
27427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27428 (eval $ac_try) 2>&5
27430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27431 (exit $ac_status); }; } &&
27432 { ac_try='test -s conftest$ac_exeext'
27433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27434 (eval $ac_try) 2>&5
27436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27437 (exit $ac_status); }; }; then
27438 ac_cv_func_gethostbyname_r=yes
27440 echo "$as_me: failed program was:" >&5
27441 sed 's/^/| /' conftest.$ac_ext >&5
27443 ac_cv_func_gethostbyname_r=no
27445 rm -f conftest.err conftest.$ac_objext \
27446 conftest$ac_exeext conftest.$ac_ext
27448 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
27449 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
27450 if test $ac_cv_func_gethostbyname_r = yes; then
27451 echo "$as_me:$LINENO: result: using libc's resolver" >&5
27452 echo "${ECHO_T}using libc's resolver" >&6
27455 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
27456 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
27457 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
27458 echo $ECHO_N "(cached) $ECHO_C" >&6
27460 ac_check_lib_save_LIBS=$LIBS
27462 cat >conftest.$ac_ext <<_ACEOF
27465 cat confdefs.h >>conftest.$ac_ext
27466 cat >>conftest.$ac_ext <<_ACEOF
27467 /* end confdefs.h. */
27469 /* Override any gcc2 internal prototype to avoid an error. */
27473 /* We use char because int might match the return type of a gcc2
27474 builtin and then its argument prototype would still apply. */
27475 char gethostbyname_r ();
27479 gethostbyname_r ();
27484 rm -f conftest.$ac_objext conftest$ac_exeext
27485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27486 (eval $ac_link) 2>conftest.er1
27488 grep -v '^ *+' conftest.er1 >conftest.err
27490 cat conftest.err >&5
27491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27492 (exit $ac_status); } &&
27493 { ac_try='test -z "$ac_c_werror_flag"
27494 || test ! -s conftest.err'
27495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27496 (eval $ac_try) 2>&5
27498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27499 (exit $ac_status); }; } &&
27500 { ac_try='test -s conftest$ac_exeext'
27501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27502 (eval $ac_try) 2>&5
27504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27505 (exit $ac_status); }; }; then
27506 ac_cv_lib_nsl_gethostbyname_r=yes
27508 echo "$as_me: failed program was:" >&5
27509 sed 's/^/| /' conftest.$ac_ext >&5
27511 ac_cv_lib_nsl_gethostbyname_r=no
27513 rm -f conftest.err conftest.$ac_objext \
27514 conftest$ac_exeext conftest.$ac_ext
27515 LIBS=$ac_check_lib_save_LIBS
27517 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
27518 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
27519 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
27520 cat >>confdefs.h <<_ACEOF
27521 #define HAVE_LIBNSL 1
27529 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
27530 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
27531 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
27532 echo $ECHO_N "(cached) $ECHO_C" >&6
27534 ac_check_lib_save_LIBS=$LIBS
27535 LIBS="-lresolv $LIBS"
27536 cat >conftest.$ac_ext <<_ACEOF
27539 cat confdefs.h >>conftest.$ac_ext
27540 cat >>conftest.$ac_ext <<_ACEOF
27541 /* end confdefs.h. */
27543 /* Override any gcc2 internal prototype to avoid an error. */
27547 /* We use char because int might match the return type of a gcc2
27548 builtin and then its argument prototype would still apply. */
27549 char gethostbyname_r ();
27553 gethostbyname_r ();
27558 rm -f conftest.$ac_objext conftest$ac_exeext
27559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27560 (eval $ac_link) 2>conftest.er1
27562 grep -v '^ *+' conftest.er1 >conftest.err
27564 cat conftest.err >&5
27565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27566 (exit $ac_status); } &&
27567 { ac_try='test -z "$ac_c_werror_flag"
27568 || test ! -s conftest.err'
27569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27570 (eval $ac_try) 2>&5
27572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27573 (exit $ac_status); }; } &&
27574 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
27580 ac_cv_lib_resolv_gethostbyname_r=yes
27582 echo "$as_me: failed program was:" >&5
27583 sed 's/^/| /' conftest.$ac_ext >&5
27585 ac_cv_lib_resolv_gethostbyname_r=no
27587 rm -f conftest.err conftest.$ac_objext \
27588 conftest$ac_exeext conftest.$ac_ext
27589 LIBS=$ac_check_lib_save_LIBS
27591 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
27592 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
27593 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
27594 cat >>confdefs.h <<_ACEOF
27595 #define HAVE_LIBRESOLV 1
27598 LIBS="-lresolv $LIBS"
27608 for ac_func in inet_pton
27610 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27611 echo "$as_me:$LINENO: checking for $ac_func" >&5
27612 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27613 if eval "test \"\${$as_ac_var+set}\" = set"; then
27614 echo $ECHO_N "(cached) $ECHO_C" >&6
27616 cat >conftest.$ac_ext <<_ACEOF
27619 cat confdefs.h >>conftest.$ac_ext
27620 cat >>conftest.$ac_ext <<_ACEOF
27621 /* end confdefs.h. */
27622 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27623 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27624 #define $ac_func innocuous_$ac_func
27626 /* System header to define __stub macros and hopefully few prototypes,
27627 which can conflict with char $ac_func (); below.
27628 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27629 <limits.h> exists even on freestanding compilers. */
27632 # include <limits.h>
27634 # include <assert.h>
27639 /* Override any gcc2 internal prototype to avoid an error. */
27644 /* We use char because int might match the return type of a gcc2
27645 builtin and then its argument prototype would still apply. */
27647 /* The GNU C library defines this for functions which it implements
27648 to always fail with ENOSYS. Some functions are actually named
27649 something starting with __ and the normal name is an alias. */
27650 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27653 char (*f) () = $ac_func;
27662 return f != $ac_func;
27667 rm -f conftest.$ac_objext conftest$ac_exeext
27668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27669 (eval $ac_link) 2>conftest.er1
27671 grep -v '^ *+' conftest.er1 >conftest.err
27673 cat conftest.err >&5
27674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27675 (exit $ac_status); } &&
27676 { ac_try='test -z "$ac_c_werror_flag"
27677 || test ! -s conftest.err'
27678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27679 (eval $ac_try) 2>&5
27681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27682 (exit $ac_status); }; } &&
27683 { ac_try='test -s conftest$ac_exeext'
27684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27685 (eval $ac_try) 2>&5
27687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27688 (exit $ac_status); }; }; then
27689 eval "$as_ac_var=yes"
27691 echo "$as_me: failed program was:" >&5
27692 sed 's/^/| /' conftest.$ac_ext >&5
27694 eval "$as_ac_var=no"
27696 rm -f conftest.err conftest.$ac_objext \
27697 conftest$ac_exeext conftest.$ac_ext
27699 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27700 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27701 if test `eval echo '${'$as_ac_var'}'` = yes; then
27702 cat >>confdefs.h <<_ACEOF
27703 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27705 cat >>confdefs.h <<\_ACEOF
27706 #define HAVE_INET_PTON 1
27713 for ac_func in inet_ntop
27715 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27716 echo "$as_me:$LINENO: checking for $ac_func" >&5
27717 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27718 if eval "test \"\${$as_ac_var+set}\" = set"; then
27719 echo $ECHO_N "(cached) $ECHO_C" >&6
27721 cat >conftest.$ac_ext <<_ACEOF
27724 cat confdefs.h >>conftest.$ac_ext
27725 cat >>conftest.$ac_ext <<_ACEOF
27726 /* end confdefs.h. */
27727 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27728 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27729 #define $ac_func innocuous_$ac_func
27731 /* System header to define __stub macros and hopefully few prototypes,
27732 which can conflict with char $ac_func (); below.
27733 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27734 <limits.h> exists even on freestanding compilers. */
27737 # include <limits.h>
27739 # include <assert.h>
27744 /* Override any gcc2 internal prototype to avoid an error. */
27749 /* We use char because int might match the return type of a gcc2
27750 builtin and then its argument prototype would still apply. */
27752 /* The GNU C library defines this for functions which it implements
27753 to always fail with ENOSYS. Some functions are actually named
27754 something starting with __ and the normal name is an alias. */
27755 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27758 char (*f) () = $ac_func;
27767 return f != $ac_func;
27772 rm -f conftest.$ac_objext conftest$ac_exeext
27773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27774 (eval $ac_link) 2>conftest.er1
27776 grep -v '^ *+' conftest.er1 >conftest.err
27778 cat conftest.err >&5
27779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27780 (exit $ac_status); } &&
27781 { ac_try='test -z "$ac_c_werror_flag"
27782 || test ! -s conftest.err'
27783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27784 (eval $ac_try) 2>&5
27786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27787 (exit $ac_status); }; } &&
27788 { ac_try='test -s conftest$ac_exeext'
27789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27790 (eval $ac_try) 2>&5
27792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27793 (exit $ac_status); }; }; then
27794 eval "$as_ac_var=yes"
27796 echo "$as_me: failed program was:" >&5
27797 sed 's/^/| /' conftest.$ac_ext >&5
27799 eval "$as_ac_var=no"
27801 rm -f conftest.err conftest.$ac_objext \
27802 conftest$ac_exeext conftest.$ac_ext
27804 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27805 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27806 if test `eval echo '${'$as_ac_var'}'` = yes; then
27807 cat >>confdefs.h <<_ACEOF
27808 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27810 cat >>confdefs.h <<\_ACEOF
27811 #define HAVE_INET_NTOP 1
27818 for ac_func in gethostbyname2
27820 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27821 echo "$as_me:$LINENO: checking for $ac_func" >&5
27822 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27823 if eval "test \"\${$as_ac_var+set}\" = set"; then
27824 echo $ECHO_N "(cached) $ECHO_C" >&6
27826 cat >conftest.$ac_ext <<_ACEOF
27829 cat confdefs.h >>conftest.$ac_ext
27830 cat >>conftest.$ac_ext <<_ACEOF
27831 /* end confdefs.h. */
27832 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27833 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27834 #define $ac_func innocuous_$ac_func
27836 /* System header to define __stub macros and hopefully few prototypes,
27837 which can conflict with char $ac_func (); below.
27838 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27839 <limits.h> exists even on freestanding compilers. */
27842 # include <limits.h>
27844 # include <assert.h>
27849 /* Override any gcc2 internal prototype to avoid an error. */
27854 /* We use char because int might match the return type of a gcc2
27855 builtin and then its argument prototype would still apply. */
27857 /* The GNU C library defines this for functions which it implements
27858 to always fail with ENOSYS. Some functions are actually named
27859 something starting with __ and the normal name is an alias. */
27860 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27863 char (*f) () = $ac_func;
27872 return f != $ac_func;
27877 rm -f conftest.$ac_objext conftest$ac_exeext
27878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27879 (eval $ac_link) 2>conftest.er1
27881 grep -v '^ *+' conftest.er1 >conftest.err
27883 cat conftest.err >&5
27884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27885 (exit $ac_status); } &&
27886 { ac_try='test -z "$ac_c_werror_flag"
27887 || test ! -s conftest.err'
27888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27889 (eval $ac_try) 2>&5
27891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27892 (exit $ac_status); }; } &&
27893 { ac_try='test -s conftest$ac_exeext'
27894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27895 (eval $ac_try) 2>&5
27897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27898 (exit $ac_status); }; }; then
27899 eval "$as_ac_var=yes"
27901 echo "$as_me: failed program was:" >&5
27902 sed 's/^/| /' conftest.$ac_ext >&5
27904 eval "$as_ac_var=no"
27906 rm -f conftest.err conftest.$ac_objext \
27907 conftest$ac_exeext conftest.$ac_ext
27909 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27910 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27911 if test `eval echo '${'$as_ac_var'}'` = yes; then
27912 cat >>confdefs.h <<_ACEOF
27913 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27915 cat >>confdefs.h <<\_ACEOF
27916 #define HAVE_GETHOSTBYNAME2 1
27923 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
27924 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
27925 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
27926 echo $ECHO_N "(cached) $ECHO_C" >&6
27928 cat >conftest.$ac_ext <<_ACEOF
27931 cat confdefs.h >>conftest.$ac_ext
27932 cat >>conftest.$ac_ext <<_ACEOF
27933 /* end confdefs.h. */
27934 #include <sys/socket.h>
27938 struct sockaddr s; s.sa_len;
27943 rm -f conftest.$ac_objext
27944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27945 (eval $ac_compile) 2>conftest.er1
27947 grep -v '^ *+' conftest.er1 >conftest.err
27949 cat conftest.err >&5
27950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27951 (exit $ac_status); } &&
27952 { ac_try='test -z "$ac_c_werror_flag"
27953 || test ! -s conftest.err'
27954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27955 (eval $ac_try) 2>&5
27957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27958 (exit $ac_status); }; } &&
27959 { ac_try='test -s conftest.$ac_objext'
27960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27961 (eval $ac_try) 2>&5
27963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27964 (exit $ac_status); }; }; then
27965 ac_cv_struct_sockaddr_sa_len=yes
27967 echo "$as_me: failed program was:" >&5
27968 sed 's/^/| /' conftest.$ac_ext >&5
27970 ac_cv_struct_sockaddr_sa_len=no
27972 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27974 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
27975 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
27977 if test $ac_cv_struct_sockaddr_sa_len = yes; then
27979 cat >>confdefs.h <<\_ACEOF
27980 #define HAVE_SA_LEN 1
27989 for ac_func in strftime
27991 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27992 echo "$as_me:$LINENO: checking for $ac_func" >&5
27993 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27994 if eval "test \"\${$as_ac_var+set}\" = set"; then
27995 echo $ECHO_N "(cached) $ECHO_C" >&6
27997 cat >conftest.$ac_ext <<_ACEOF
28000 cat confdefs.h >>conftest.$ac_ext
28001 cat >>conftest.$ac_ext <<_ACEOF
28002 /* end confdefs.h. */
28003 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28004 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28005 #define $ac_func innocuous_$ac_func
28007 /* System header to define __stub macros and hopefully few prototypes,
28008 which can conflict with char $ac_func (); below.
28009 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28010 <limits.h> exists even on freestanding compilers. */
28013 # include <limits.h>
28015 # include <assert.h>
28020 /* Override any gcc2 internal prototype to avoid an error. */
28025 /* We use char because int might match the return type of a gcc2
28026 builtin and then its argument prototype would still apply. */
28028 /* The GNU C library defines this for functions which it implements
28029 to always fail with ENOSYS. Some functions are actually named
28030 something starting with __ and the normal name is an alias. */
28031 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28034 char (*f) () = $ac_func;
28043 return f != $ac_func;
28048 rm -f conftest.$ac_objext conftest$ac_exeext
28049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28050 (eval $ac_link) 2>conftest.er1
28052 grep -v '^ *+' conftest.er1 >conftest.err
28054 cat conftest.err >&5
28055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28056 (exit $ac_status); } &&
28057 { ac_try='test -z "$ac_c_werror_flag"
28058 || test ! -s conftest.err'
28059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28060 (eval $ac_try) 2>&5
28062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28063 (exit $ac_status); }; } &&
28064 { ac_try='test -s conftest$ac_exeext'
28065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28066 (eval $ac_try) 2>&5
28068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28069 (exit $ac_status); }; }; then
28070 eval "$as_ac_var=yes"
28072 echo "$as_me: failed program was:" >&5
28073 sed 's/^/| /' conftest.$ac_ext >&5
28075 eval "$as_ac_var=no"
28077 rm -f conftest.err conftest.$ac_objext \
28078 conftest$ac_exeext conftest.$ac_ext
28080 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28081 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28082 if test `eval echo '${'$as_ac_var'}'` = yes; then
28083 cat >>confdefs.h <<_ACEOF
28084 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28088 # strftime is in -lintl on SCO UNIX.
28089 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
28090 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
28091 if test "${ac_cv_lib_intl_strftime+set}" = set; then
28092 echo $ECHO_N "(cached) $ECHO_C" >&6
28094 ac_check_lib_save_LIBS=$LIBS
28095 LIBS="-lintl $LIBS"
28096 cat >conftest.$ac_ext <<_ACEOF
28099 cat confdefs.h >>conftest.$ac_ext
28100 cat >>conftest.$ac_ext <<_ACEOF
28101 /* end confdefs.h. */
28103 /* Override any gcc2 internal prototype to avoid an error. */
28107 /* We use char because int might match the return type of a gcc2
28108 builtin and then its argument prototype would still apply. */
28118 rm -f conftest.$ac_objext conftest$ac_exeext
28119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28120 (eval $ac_link) 2>conftest.er1
28122 grep -v '^ *+' conftest.er1 >conftest.err
28124 cat conftest.err >&5
28125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28126 (exit $ac_status); } &&
28127 { ac_try='test -z "$ac_c_werror_flag"
28128 || test ! -s conftest.err'
28129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28130 (eval $ac_try) 2>&5
28132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28133 (exit $ac_status); }; } &&
28134 { ac_try='test -s conftest$ac_exeext'
28135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28136 (eval $ac_try) 2>&5
28138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28139 (exit $ac_status); }; }; then
28140 ac_cv_lib_intl_strftime=yes
28142 echo "$as_me: failed program was:" >&5
28143 sed 's/^/| /' conftest.$ac_ext >&5
28145 ac_cv_lib_intl_strftime=no
28147 rm -f conftest.err conftest.$ac_objext \
28148 conftest$ac_exeext conftest.$ac_ext
28149 LIBS=$ac_check_lib_save_LIBS
28151 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
28152 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
28153 if test $ac_cv_lib_intl_strftime = yes; then
28154 cat >>confdefs.h <<\_ACEOF
28155 #define HAVE_STRFTIME 1
28158 LIBS="-lintl $LIBS"
28165 for ac_func in vprintf
28167 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28168 echo "$as_me:$LINENO: checking for $ac_func" >&5
28169 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28170 if eval "test \"\${$as_ac_var+set}\" = set"; then
28171 echo $ECHO_N "(cached) $ECHO_C" >&6
28173 cat >conftest.$ac_ext <<_ACEOF
28176 cat confdefs.h >>conftest.$ac_ext
28177 cat >>conftest.$ac_ext <<_ACEOF
28178 /* end confdefs.h. */
28179 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28180 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28181 #define $ac_func innocuous_$ac_func
28183 /* System header to define __stub macros and hopefully few prototypes,
28184 which can conflict with char $ac_func (); below.
28185 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28186 <limits.h> exists even on freestanding compilers. */
28189 # include <limits.h>
28191 # include <assert.h>
28196 /* Override any gcc2 internal prototype to avoid an error. */
28201 /* We use char because int might match the return type of a gcc2
28202 builtin and then its argument prototype would still apply. */
28204 /* The GNU C library defines this for functions which it implements
28205 to always fail with ENOSYS. Some functions are actually named
28206 something starting with __ and the normal name is an alias. */
28207 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28210 char (*f) () = $ac_func;
28219 return f != $ac_func;
28224 rm -f conftest.$ac_objext conftest$ac_exeext
28225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28226 (eval $ac_link) 2>conftest.er1
28228 grep -v '^ *+' conftest.er1 >conftest.err
28230 cat conftest.err >&5
28231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28232 (exit $ac_status); } &&
28233 { ac_try='test -z "$ac_c_werror_flag"
28234 || test ! -s conftest.err'
28235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28236 (eval $ac_try) 2>&5
28238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28239 (exit $ac_status); }; } &&
28240 { ac_try='test -s conftest$ac_exeext'
28241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28242 (eval $ac_try) 2>&5
28244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28245 (exit $ac_status); }; }; then
28246 eval "$as_ac_var=yes"
28248 echo "$as_me: failed program was:" >&5
28249 sed 's/^/| /' conftest.$ac_ext >&5
28251 eval "$as_ac_var=no"
28253 rm -f conftest.err conftest.$ac_objext \
28254 conftest$ac_exeext conftest.$ac_ext
28256 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28257 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28258 if test `eval echo '${'$as_ac_var'}'` = yes; then
28259 cat >>confdefs.h <<_ACEOF
28260 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28263 echo "$as_me:$LINENO: checking for _doprnt" >&5
28264 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
28265 if test "${ac_cv_func__doprnt+set}" = set; then
28266 echo $ECHO_N "(cached) $ECHO_C" >&6
28268 cat >conftest.$ac_ext <<_ACEOF
28271 cat confdefs.h >>conftest.$ac_ext
28272 cat >>conftest.$ac_ext <<_ACEOF
28273 /* end confdefs.h. */
28274 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
28275 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28276 #define _doprnt innocuous__doprnt
28278 /* System header to define __stub macros and hopefully few prototypes,
28279 which can conflict with char _doprnt (); below.
28280 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28281 <limits.h> exists even on freestanding compilers. */
28284 # include <limits.h>
28286 # include <assert.h>
28291 /* Override any gcc2 internal prototype to avoid an error. */
28296 /* We use char because int might match the return type of a gcc2
28297 builtin and then its argument prototype would still apply. */
28299 /* The GNU C library defines this for functions which it implements
28300 to always fail with ENOSYS. Some functions are actually named
28301 something starting with __ and the normal name is an alias. */
28302 #if defined (__stub__doprnt) || defined (__stub____doprnt)
28305 char (*f) () = _doprnt;
28314 return f != _doprnt;
28319 rm -f conftest.$ac_objext conftest$ac_exeext
28320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28321 (eval $ac_link) 2>conftest.er1
28323 grep -v '^ *+' conftest.er1 >conftest.err
28325 cat conftest.err >&5
28326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28327 (exit $ac_status); } &&
28328 { ac_try='test -z "$ac_c_werror_flag"
28329 || test ! -s conftest.err'
28330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28331 (eval $ac_try) 2>&5
28333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28334 (exit $ac_status); }; } &&
28335 { ac_try='test -s conftest$ac_exeext'
28336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28337 (eval $ac_try) 2>&5
28339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28340 (exit $ac_status); }; }; then
28341 ac_cv_func__doprnt=yes
28343 echo "$as_me: failed program was:" >&5
28344 sed 's/^/| /' conftest.$ac_ext >&5
28346 ac_cv_func__doprnt=no
28348 rm -f conftest.err conftest.$ac_objext \
28349 conftest$ac_exeext conftest.$ac_ext
28351 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
28352 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
28353 if test $ac_cv_func__doprnt = yes; then
28355 cat >>confdefs.h <<\_ACEOF
28356 #define HAVE_DOPRNT 1
28365 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28366 # for constant arguments. Useless!
28367 echo "$as_me:$LINENO: checking for working alloca.h" >&5
28368 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
28369 if test "${ac_cv_working_alloca_h+set}" = set; then
28370 echo $ECHO_N "(cached) $ECHO_C" >&6
28372 cat >conftest.$ac_ext <<_ACEOF
28375 cat confdefs.h >>conftest.$ac_ext
28376 cat >>conftest.$ac_ext <<_ACEOF
28377 /* end confdefs.h. */
28378 #include <alloca.h>
28382 char *p = (char *) alloca (2 * sizeof (int));
28387 rm -f conftest.$ac_objext conftest$ac_exeext
28388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28389 (eval $ac_link) 2>conftest.er1
28391 grep -v '^ *+' conftest.er1 >conftest.err
28393 cat conftest.err >&5
28394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28395 (exit $ac_status); } &&
28396 { ac_try='test -z "$ac_c_werror_flag"
28397 || test ! -s conftest.err'
28398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28399 (eval $ac_try) 2>&5
28401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28402 (exit $ac_status); }; } &&
28403 { ac_try='test -s conftest$ac_exeext'
28404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28405 (eval $ac_try) 2>&5
28407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28408 (exit $ac_status); }; }; then
28409 ac_cv_working_alloca_h=yes
28411 echo "$as_me: failed program was:" >&5
28412 sed 's/^/| /' conftest.$ac_ext >&5
28414 ac_cv_working_alloca_h=no
28416 rm -f conftest.err conftest.$ac_objext \
28417 conftest$ac_exeext conftest.$ac_ext
28419 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
28420 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
28421 if test $ac_cv_working_alloca_h = yes; then
28423 cat >>confdefs.h <<\_ACEOF
28424 #define HAVE_ALLOCA_H 1
28429 echo "$as_me:$LINENO: checking for alloca" >&5
28430 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
28431 if test "${ac_cv_func_alloca_works+set}" = set; then
28432 echo $ECHO_N "(cached) $ECHO_C" >&6
28434 cat >conftest.$ac_ext <<_ACEOF
28437 cat confdefs.h >>conftest.$ac_ext
28438 cat >>conftest.$ac_ext <<_ACEOF
28439 /* end confdefs.h. */
28441 # define alloca __builtin_alloca
28444 # include <malloc.h>
28445 # define alloca _alloca
28448 # include <alloca.h>
28453 # ifndef alloca /* predefined by HP cc +Olibcalls */
28464 char *p = (char *) alloca (1);
28469 rm -f conftest.$ac_objext conftest$ac_exeext
28470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28471 (eval $ac_link) 2>conftest.er1
28473 grep -v '^ *+' conftest.er1 >conftest.err
28475 cat conftest.err >&5
28476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28477 (exit $ac_status); } &&
28478 { ac_try='test -z "$ac_c_werror_flag"
28479 || test ! -s conftest.err'
28480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28481 (eval $ac_try) 2>&5
28483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28484 (exit $ac_status); }; } &&
28485 { ac_try='test -s conftest$ac_exeext'
28486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28487 (eval $ac_try) 2>&5
28489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28490 (exit $ac_status); }; }; then
28491 ac_cv_func_alloca_works=yes
28493 echo "$as_me: failed program was:" >&5
28494 sed 's/^/| /' conftest.$ac_ext >&5
28496 ac_cv_func_alloca_works=no
28498 rm -f conftest.err conftest.$ac_objext \
28499 conftest$ac_exeext conftest.$ac_ext
28501 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
28502 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
28504 if test $ac_cv_func_alloca_works = yes; then
28506 cat >>confdefs.h <<\_ACEOF
28507 #define HAVE_ALLOCA 1
28511 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28512 # that cause trouble. Some versions do not even contain alloca or
28513 # contain a buggy version. If you still want to use their alloca,
28514 # use ar to extract alloca.o from them instead of compiling alloca.c.
28516 ALLOCA=alloca.$ac_objext
28518 cat >>confdefs.h <<\_ACEOF
28523 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
28524 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
28525 if test "${ac_cv_os_cray+set}" = set; then
28526 echo $ECHO_N "(cached) $ECHO_C" >&6
28528 cat >conftest.$ac_ext <<_ACEOF
28531 cat confdefs.h >>conftest.$ac_ext
28532 cat >>conftest.$ac_ext <<_ACEOF
28533 /* end confdefs.h. */
28534 #if defined(CRAY) && ! defined(CRAY2)
28541 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28542 $EGREP "webecray" >/dev/null 2>&1; then
28550 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
28551 echo "${ECHO_T}$ac_cv_os_cray" >&6
28552 if test $ac_cv_os_cray = yes; then
28553 for ac_func in _getb67 GETB67 getb67; do
28554 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28555 echo "$as_me:$LINENO: checking for $ac_func" >&5
28556 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28557 if eval "test \"\${$as_ac_var+set}\" = set"; then
28558 echo $ECHO_N "(cached) $ECHO_C" >&6
28560 cat >conftest.$ac_ext <<_ACEOF
28563 cat confdefs.h >>conftest.$ac_ext
28564 cat >>conftest.$ac_ext <<_ACEOF
28565 /* end confdefs.h. */
28566 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28567 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28568 #define $ac_func innocuous_$ac_func
28570 /* System header to define __stub macros and hopefully few prototypes,
28571 which can conflict with char $ac_func (); below.
28572 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28573 <limits.h> exists even on freestanding compilers. */
28576 # include <limits.h>
28578 # include <assert.h>
28583 /* Override any gcc2 internal prototype to avoid an error. */
28588 /* We use char because int might match the return type of a gcc2
28589 builtin and then its argument prototype would still apply. */
28591 /* The GNU C library defines this for functions which it implements
28592 to always fail with ENOSYS. Some functions are actually named
28593 something starting with __ and the normal name is an alias. */
28594 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28597 char (*f) () = $ac_func;
28606 return f != $ac_func;
28611 rm -f conftest.$ac_objext conftest$ac_exeext
28612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28613 (eval $ac_link) 2>conftest.er1
28615 grep -v '^ *+' conftest.er1 >conftest.err
28617 cat conftest.err >&5
28618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28619 (exit $ac_status); } &&
28620 { ac_try='test -z "$ac_c_werror_flag"
28621 || test ! -s conftest.err'
28622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28623 (eval $ac_try) 2>&5
28625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28626 (exit $ac_status); }; } &&
28627 { ac_try='test -s conftest$ac_exeext'
28628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28629 (eval $ac_try) 2>&5
28631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28632 (exit $ac_status); }; }; then
28633 eval "$as_ac_var=yes"
28635 echo "$as_me: failed program was:" >&5
28636 sed 's/^/| /' conftest.$ac_ext >&5
28638 eval "$as_ac_var=no"
28640 rm -f conftest.err conftest.$ac_objext \
28641 conftest$ac_exeext conftest.$ac_ext
28643 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28644 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28645 if test `eval echo '${'$as_ac_var'}'` = yes; then
28647 cat >>confdefs.h <<_ACEOF
28648 #define CRAY_STACKSEG_END $ac_func
28657 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28658 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
28659 if test "${ac_cv_c_stack_direction+set}" = set; then
28660 echo $ECHO_N "(cached) $ECHO_C" >&6
28662 if test "$cross_compiling" = yes; then
28663 ac_cv_c_stack_direction=0
28665 cat >conftest.$ac_ext <<_ACEOF
28668 cat confdefs.h >>conftest.$ac_ext
28669 cat >>conftest.$ac_ext <<_ACEOF
28670 /* end confdefs.h. */
28672 find_stack_direction ()
28674 static char *addr = 0;
28679 return find_stack_direction ();
28682 return (&dummy > addr) ? 1 : -1;
28688 exit (find_stack_direction () < 0);
28691 rm -f conftest$ac_exeext
28692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28693 (eval $ac_link) 2>&5
28695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28696 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28698 (eval $ac_try) 2>&5
28700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28701 (exit $ac_status); }; }; then
28702 ac_cv_c_stack_direction=1
28704 echo "$as_me: program exited with status $ac_status" >&5
28705 echo "$as_me: failed program was:" >&5
28706 sed 's/^/| /' conftest.$ac_ext >&5
28708 ( exit $ac_status )
28709 ac_cv_c_stack_direction=-1
28711 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28714 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28715 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
28717 cat >>confdefs.h <<_ACEOF
28718 #define STACK_DIRECTION $ac_cv_c_stack_direction
28724 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
28725 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
28726 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
28727 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
28728 echo $ECHO_N "(cached) $ECHO_C" >&6
28730 ac_check_lib_save_LIBS=$LIBS
28732 cat >conftest.$ac_ext <<_ACEOF
28735 cat confdefs.h >>conftest.$ac_ext
28736 cat >>conftest.$ac_ext <<_ACEOF
28737 /* end confdefs.h. */
28739 /* Override any gcc2 internal prototype to avoid an error. */
28743 /* We use char because int might match the return type of a gcc2
28744 builtin and then its argument prototype would still apply. */
28754 rm -f conftest.$ac_objext conftest$ac_exeext
28755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28756 (eval $ac_link) 2>conftest.er1
28758 grep -v '^ *+' conftest.er1 >conftest.err
28760 cat conftest.err >&5
28761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28762 (exit $ac_status); } &&
28763 { ac_try='test -z "$ac_c_werror_flag"
28764 || test ! -s conftest.err'
28765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28766 (eval $ac_try) 2>&5
28768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28769 (exit $ac_status); }; } &&
28770 { ac_try='test -s conftest$ac_exeext'
28771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28772 (eval $ac_try) 2>&5
28774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28775 (exit $ac_status); }; }; then
28776 ac_cv_lib_sun_getmntent=yes
28778 echo "$as_me: failed program was:" >&5
28779 sed 's/^/| /' conftest.$ac_ext >&5
28781 ac_cv_lib_sun_getmntent=no
28783 rm -f conftest.err conftest.$ac_objext \
28784 conftest$ac_exeext conftest.$ac_ext
28785 LIBS=$ac_check_lib_save_LIBS
28787 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
28788 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
28789 if test $ac_cv_lib_sun_getmntent = yes; then
28792 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
28793 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
28794 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
28795 echo $ECHO_N "(cached) $ECHO_C" >&6
28797 ac_check_lib_save_LIBS=$LIBS
28799 cat >conftest.$ac_ext <<_ACEOF
28802 cat confdefs.h >>conftest.$ac_ext
28803 cat >>conftest.$ac_ext <<_ACEOF
28804 /* end confdefs.h. */
28806 /* Override any gcc2 internal prototype to avoid an error. */
28810 /* We use char because int might match the return type of a gcc2
28811 builtin and then its argument prototype would still apply. */
28821 rm -f conftest.$ac_objext conftest$ac_exeext
28822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28823 (eval $ac_link) 2>conftest.er1
28825 grep -v '^ *+' conftest.er1 >conftest.err
28827 cat conftest.err >&5
28828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28829 (exit $ac_status); } &&
28830 { ac_try='test -z "$ac_c_werror_flag"
28831 || test ! -s conftest.err'
28832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28833 (eval $ac_try) 2>&5
28835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28836 (exit $ac_status); }; } &&
28837 { ac_try='test -s conftest$ac_exeext'
28838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28839 (eval $ac_try) 2>&5
28841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28842 (exit $ac_status); }; }; then
28843 ac_cv_lib_seq_getmntent=yes
28845 echo "$as_me: failed program was:" >&5
28846 sed 's/^/| /' conftest.$ac_ext >&5
28848 ac_cv_lib_seq_getmntent=no
28850 rm -f conftest.err conftest.$ac_objext \
28851 conftest$ac_exeext conftest.$ac_ext
28852 LIBS=$ac_check_lib_save_LIBS
28854 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
28855 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
28856 if test $ac_cv_lib_seq_getmntent = yes; then
28859 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
28860 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
28861 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
28862 echo $ECHO_N "(cached) $ECHO_C" >&6
28864 ac_check_lib_save_LIBS=$LIBS
28866 cat >conftest.$ac_ext <<_ACEOF
28869 cat confdefs.h >>conftest.$ac_ext
28870 cat >>conftest.$ac_ext <<_ACEOF
28871 /* end confdefs.h. */
28873 /* Override any gcc2 internal prototype to avoid an error. */
28877 /* We use char because int might match the return type of a gcc2
28878 builtin and then its argument prototype would still apply. */
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 ac_cv_lib_gen_getmntent=yes
28912 echo "$as_me: failed program was:" >&5
28913 sed 's/^/| /' conftest.$ac_ext >&5
28915 ac_cv_lib_gen_getmntent=no
28917 rm -f conftest.err conftest.$ac_objext \
28918 conftest$ac_exeext conftest.$ac_ext
28919 LIBS=$ac_check_lib_save_LIBS
28921 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
28922 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
28923 if test $ac_cv_lib_gen_getmntent = yes; then
28932 for ac_func in getmntent
28934 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28935 echo "$as_me:$LINENO: checking for $ac_func" >&5
28936 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28937 if eval "test \"\${$as_ac_var+set}\" = set"; then
28938 echo $ECHO_N "(cached) $ECHO_C" >&6
28940 cat >conftest.$ac_ext <<_ACEOF
28943 cat confdefs.h >>conftest.$ac_ext
28944 cat >>conftest.$ac_ext <<_ACEOF
28945 /* end confdefs.h. */
28946 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28947 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28948 #define $ac_func innocuous_$ac_func
28950 /* System header to define __stub macros and hopefully few prototypes,
28951 which can conflict with char $ac_func (); below.
28952 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28953 <limits.h> exists even on freestanding compilers. */
28956 # include <limits.h>
28958 # include <assert.h>
28963 /* Override any gcc2 internal prototype to avoid an error. */
28968 /* We use char because int might match the return type of a gcc2
28969 builtin and then its argument prototype would still apply. */
28971 /* The GNU C library defines this for functions which it implements
28972 to always fail with ENOSYS. Some functions are actually named
28973 something starting with __ and the normal name is an alias. */
28974 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28977 char (*f) () = $ac_func;
28986 return f != $ac_func;
28991 rm -f conftest.$ac_objext conftest$ac_exeext
28992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28993 (eval $ac_link) 2>conftest.er1
28995 grep -v '^ *+' conftest.er1 >conftest.err
28997 cat conftest.err >&5
28998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28999 (exit $ac_status); } &&
29000 { ac_try='test -z "$ac_c_werror_flag"
29001 || test ! -s conftest.err'
29002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29003 (eval $ac_try) 2>&5
29005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29006 (exit $ac_status); }; } &&
29007 { ac_try='test -s conftest$ac_exeext'
29008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29009 (eval $ac_try) 2>&5
29011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29012 (exit $ac_status); }; }; then
29013 eval "$as_ac_var=yes"
29015 echo "$as_me: failed program was:" >&5
29016 sed 's/^/| /' conftest.$ac_ext >&5
29018 eval "$as_ac_var=no"
29020 rm -f conftest.err conftest.$ac_objext \
29021 conftest$ac_exeext conftest.$ac_ext
29023 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29024 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29025 if test `eval echo '${'$as_ac_var'}'` = yes; then
29026 cat >>confdefs.h <<_ACEOF
29027 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29034 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
29035 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
29036 if test "${ac_cv_func_closedir_void+set}" = set; then
29037 echo $ECHO_N "(cached) $ECHO_C" >&6
29039 if test "$cross_compiling" = yes; then
29040 ac_cv_func_closedir_void=yes
29042 cat >conftest.$ac_ext <<_ACEOF
29045 cat confdefs.h >>conftest.$ac_ext
29046 cat >>conftest.$ac_ext <<_ACEOF
29047 /* end confdefs.h. */
29048 $ac_includes_default
29049 #include <$ac_header_dirent>
29050 #ifndef __cplusplus
29057 exit (closedir (opendir (".")) != 0);
29062 rm -f conftest$ac_exeext
29063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29064 (eval $ac_link) 2>&5
29066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29067 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29069 (eval $ac_try) 2>&5
29071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29072 (exit $ac_status); }; }; then
29073 ac_cv_func_closedir_void=no
29075 echo "$as_me: program exited with status $ac_status" >&5
29076 echo "$as_me: failed program was:" >&5
29077 sed 's/^/| /' conftest.$ac_ext >&5
29079 ( exit $ac_status )
29080 ac_cv_func_closedir_void=yes
29082 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29085 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
29086 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
29087 if test $ac_cv_func_closedir_void = yes; then
29089 cat >>confdefs.h <<\_ACEOF
29090 #define CLOSEDIR_VOID 1
29095 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
29096 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
29097 if test "${ac_cv_func_setpgrp_void+set}" = set; then
29098 echo $ECHO_N "(cached) $ECHO_C" >&6
29100 if test "$cross_compiling" = yes; then
29101 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
29102 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
29103 { (exit 1); exit 1; }; }
29105 cat >conftest.$ac_ext <<_ACEOF
29108 cat confdefs.h >>conftest.$ac_ext
29109 cat >>conftest.$ac_ext <<_ACEOF
29110 /* end confdefs.h. */
29112 # include <unistd.h>
29118 /* If this system has a BSD-style setpgrp which takes arguments,
29119 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
29120 exit successfully. */
29121 exit (setpgrp (1,1) == -1 ? 0 : 1);
29126 rm -f conftest$ac_exeext
29127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29128 (eval $ac_link) 2>&5
29130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29131 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29133 (eval $ac_try) 2>&5
29135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29136 (exit $ac_status); }; }; then
29137 ac_cv_func_setpgrp_void=no
29139 echo "$as_me: program exited with status $ac_status" >&5
29140 echo "$as_me: failed program was:" >&5
29141 sed 's/^/| /' conftest.$ac_ext >&5
29143 ( exit $ac_status )
29144 ac_cv_func_setpgrp_void=yes
29146 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29149 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
29150 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
29151 if test $ac_cv_func_setpgrp_void = yes; then
29153 cat >>confdefs.h <<\_ACEOF
29154 #define SETPGRP_VOID 1
29158 # AC_FUNC_FNMATCH dnl use local version
29161 echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
29162 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6
29163 if test "${ac_cv_lib_intl_gettext+set}" = set; then
29164 echo $ECHO_N "(cached) $ECHO_C" >&6
29166 ac_check_lib_save_LIBS=$LIBS
29167 LIBS="-lintl $LIBS"
29168 cat >conftest.$ac_ext <<_ACEOF
29171 cat confdefs.h >>conftest.$ac_ext
29172 cat >>conftest.$ac_ext <<_ACEOF
29173 /* end confdefs.h. */
29175 /* Override any gcc2 internal prototype to avoid an error. */
29179 /* We use char because int might match the return type of a gcc2
29180 builtin and then its argument prototype would still apply. */
29190 rm -f conftest.$ac_objext conftest$ac_exeext
29191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29192 (eval $ac_link) 2>conftest.er1
29194 grep -v '^ *+' conftest.er1 >conftest.err
29196 cat conftest.err >&5
29197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29198 (exit $ac_status); } &&
29199 { ac_try='test -z "$ac_c_werror_flag"
29200 || test ! -s conftest.err'
29201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29202 (eval $ac_try) 2>&5
29204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29205 (exit $ac_status); }; } &&
29206 { ac_try='test -s conftest$ac_exeext'
29207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29208 (eval $ac_try) 2>&5
29210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29211 (exit $ac_status); }; }; then
29212 ac_cv_lib_intl_gettext=yes
29214 echo "$as_me: failed program was:" >&5
29215 sed 's/^/| /' conftest.$ac_ext >&5
29217 ac_cv_lib_intl_gettext=no
29219 rm -f conftest.err conftest.$ac_objext \
29220 conftest$ac_exeext conftest.$ac_ext
29221 LIBS=$ac_check_lib_save_LIBS
29223 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
29224 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6
29225 if test $ac_cv_lib_intl_gettext = yes; then
29226 LIBS="$LIBS -lintl"
29232 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
29233 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
29234 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
29235 echo $ECHO_N "(cached) $ECHO_C" >&6
29237 ac_check_lib_save_LIBS=$LIBS
29239 cat >conftest.$ac_ext <<_ACEOF
29242 cat confdefs.h >>conftest.$ac_ext
29243 cat >>conftest.$ac_ext <<_ACEOF
29244 /* end confdefs.h. */
29246 /* Override any gcc2 internal prototype to avoid an error. */
29250 /* We use char because int might match the return type of a gcc2
29251 builtin and then its argument prototype would still apply. */
29261 rm -f conftest.$ac_objext conftest$ac_exeext
29262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29263 (eval $ac_link) 2>conftest.er1
29265 grep -v '^ *+' conftest.er1 >conftest.err
29267 cat conftest.err >&5
29268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29269 (exit $ac_status); } &&
29270 { ac_try='test -z "$ac_c_werror_flag"
29271 || test ! -s conftest.err'
29272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29273 (eval $ac_try) 2>&5
29275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29276 (exit $ac_status); }; } &&
29277 { ac_try='test -s conftest$ac_exeext'
29278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29279 (eval $ac_try) 2>&5
29281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29282 (exit $ac_status); }; }; then
29283 ac_cv_lib_sun_getpwnam=yes
29285 echo "$as_me: failed program was:" >&5
29286 sed 's/^/| /' conftest.$ac_ext >&5
29288 ac_cv_lib_sun_getpwnam=no
29290 rm -f conftest.err conftest.$ac_objext \
29291 conftest$ac_exeext conftest.$ac_ext
29292 LIBS=$ac_check_lib_save_LIBS
29294 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
29295 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
29296 if test $ac_cv_lib_sun_getpwnam = yes; then
29297 cat >>confdefs.h <<_ACEOF
29298 #define HAVE_LIBSUN 1
29307 for ac_header in zlib.h
29309 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29310 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29311 echo "$as_me:$LINENO: checking for $ac_header" >&5
29312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29313 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29314 echo $ECHO_N "(cached) $ECHO_C" >&6
29316 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29317 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29319 # Is the header compilable?
29320 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29321 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29322 cat >conftest.$ac_ext <<_ACEOF
29325 cat confdefs.h >>conftest.$ac_ext
29326 cat >>conftest.$ac_ext <<_ACEOF
29327 /* end confdefs.h. */
29328 $ac_includes_default
29329 #include <$ac_header>
29331 rm -f conftest.$ac_objext
29332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29333 (eval $ac_compile) 2>conftest.er1
29335 grep -v '^ *+' conftest.er1 >conftest.err
29337 cat conftest.err >&5
29338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29339 (exit $ac_status); } &&
29340 { ac_try='test -z "$ac_c_werror_flag"
29341 || test ! -s conftest.err'
29342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29343 (eval $ac_try) 2>&5
29345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29346 (exit $ac_status); }; } &&
29347 { ac_try='test -s conftest.$ac_objext'
29348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29349 (eval $ac_try) 2>&5
29351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29352 (exit $ac_status); }; }; then
29353 ac_header_compiler=yes
29355 echo "$as_me: failed program was:" >&5
29356 sed 's/^/| /' conftest.$ac_ext >&5
29358 ac_header_compiler=no
29360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29361 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29362 echo "${ECHO_T}$ac_header_compiler" >&6
29364 # Is the header present?
29365 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29366 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29367 cat >conftest.$ac_ext <<_ACEOF
29370 cat confdefs.h >>conftest.$ac_ext
29371 cat >>conftest.$ac_ext <<_ACEOF
29372 /* end confdefs.h. */
29373 #include <$ac_header>
29375 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29376 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29378 grep -v '^ *+' conftest.er1 >conftest.err
29380 cat conftest.err >&5
29381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29382 (exit $ac_status); } >/dev/null; then
29383 if test -s conftest.err; then
29384 ac_cpp_err=$ac_c_preproc_warn_flag
29385 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29392 if test -z "$ac_cpp_err"; then
29393 ac_header_preproc=yes
29395 echo "$as_me: failed program was:" >&5
29396 sed 's/^/| /' conftest.$ac_ext >&5
29398 ac_header_preproc=no
29400 rm -f conftest.err conftest.$ac_ext
29401 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29402 echo "${ECHO_T}$ac_header_preproc" >&6
29404 # So? What about this header?
29405 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29407 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29408 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29409 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29410 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29411 ac_header_preproc=yes
29414 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29415 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29416 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29417 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29418 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29419 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29420 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29421 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29422 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29423 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29424 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29425 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29428 ## ------------------------------------------ ##
29429 ## Report this to the AC_PACKAGE_NAME lists. ##
29430 ## ------------------------------------------ ##
29433 sed "s/^/$as_me: WARNING: /" >&2
29436 echo "$as_me:$LINENO: checking for $ac_header" >&5
29437 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29438 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29439 echo $ECHO_N "(cached) $ECHO_C" >&6
29441 eval "$as_ac_Header=\$ac_header_preproc"
29443 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29444 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29447 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29448 cat >>confdefs.h <<_ACEOF
29449 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29456 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
29457 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
29458 if test "${ac_cv_lib_z_deflate+set}" = set; then
29459 echo $ECHO_N "(cached) $ECHO_C" >&6
29461 ac_check_lib_save_LIBS=$LIBS
29463 cat >conftest.$ac_ext <<_ACEOF
29466 cat confdefs.h >>conftest.$ac_ext
29467 cat >>conftest.$ac_ext <<_ACEOF
29468 /* end confdefs.h. */
29470 /* Override any gcc2 internal prototype to avoid an error. */
29474 /* We use char because int might match the return type of a gcc2
29475 builtin and then its argument prototype would still apply. */
29485 rm -f conftest.$ac_objext conftest$ac_exeext
29486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29487 (eval $ac_link) 2>conftest.er1
29489 grep -v '^ *+' conftest.er1 >conftest.err
29491 cat conftest.err >&5
29492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29493 (exit $ac_status); } &&
29494 { ac_try='test -z "$ac_c_werror_flag"
29495 || test ! -s conftest.err'
29496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29497 (eval $ac_try) 2>&5
29499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29500 (exit $ac_status); }; } &&
29501 { ac_try='test -s conftest$ac_exeext'
29502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29503 (eval $ac_try) 2>&5
29505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29506 (exit $ac_status); }; }; then
29507 ac_cv_lib_z_deflate=yes
29509 echo "$as_me: failed program was:" >&5
29510 sed 's/^/| /' conftest.$ac_ext >&5
29512 ac_cv_lib_z_deflate=no
29514 rm -f conftest.err conftest.$ac_objext \
29515 conftest$ac_exeext conftest.$ac_ext
29516 LIBS=$ac_check_lib_save_LIBS
29518 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
29519 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
29520 if test $ac_cv_lib_z_deflate = yes; then
29525 if test x$FDLIBS = x-lz; then
29526 cat >>confdefs.h <<\_ACEOF
29527 #define HAVE_LIBZ 1
29534 # Check for ACL libraries
29537 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29538 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
29539 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
29540 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29541 echo $ECHO_N "(cached) $ECHO_C" >&6
29543 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
29544 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
29546 # Is the header compilable?
29547 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
29548 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
29549 cat >conftest.$ac_ext <<_ACEOF
29552 cat confdefs.h >>conftest.$ac_ext
29553 cat >>conftest.$ac_ext <<_ACEOF
29554 /* end confdefs.h. */
29555 $ac_includes_default
29556 #include <sys/acl.h>
29558 rm -f conftest.$ac_objext
29559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29560 (eval $ac_compile) 2>conftest.er1
29562 grep -v '^ *+' conftest.er1 >conftest.err
29564 cat conftest.err >&5
29565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29566 (exit $ac_status); } &&
29567 { ac_try='test -z "$ac_c_werror_flag"
29568 || test ! -s conftest.err'
29569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29570 (eval $ac_try) 2>&5
29572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29573 (exit $ac_status); }; } &&
29574 { ac_try='test -s conftest.$ac_objext'
29575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29576 (eval $ac_try) 2>&5
29578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29579 (exit $ac_status); }; }; then
29580 ac_header_compiler=yes
29582 echo "$as_me: failed program was:" >&5
29583 sed 's/^/| /' conftest.$ac_ext >&5
29585 ac_header_compiler=no
29587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29588 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29589 echo "${ECHO_T}$ac_header_compiler" >&6
29591 # Is the header present?
29592 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
29593 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
29594 cat >conftest.$ac_ext <<_ACEOF
29597 cat confdefs.h >>conftest.$ac_ext
29598 cat >>conftest.$ac_ext <<_ACEOF
29599 /* end confdefs.h. */
29600 #include <sys/acl.h>
29602 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29603 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29605 grep -v '^ *+' conftest.er1 >conftest.err
29607 cat conftest.err >&5
29608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29609 (exit $ac_status); } >/dev/null; then
29610 if test -s conftest.err; then
29611 ac_cpp_err=$ac_c_preproc_warn_flag
29612 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29619 if test -z "$ac_cpp_err"; then
29620 ac_header_preproc=yes
29622 echo "$as_me: failed program was:" >&5
29623 sed 's/^/| /' conftest.$ac_ext >&5
29625 ac_header_preproc=no
29627 rm -f conftest.err conftest.$ac_ext
29628 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29629 echo "${ECHO_T}$ac_header_preproc" >&6
29631 # So? What about this header?
29632 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29634 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
29635 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29636 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
29637 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
29638 ac_header_preproc=yes
29641 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
29642 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
29643 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
29644 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
29645 { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
29646 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
29647 { echo "$as_me:$LINENO: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&5
29648 echo "$as_me: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&2;}
29649 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
29650 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
29651 { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
29652 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
29655 ## ------------------------------------------ ##
29656 ## Report this to the AC_PACKAGE_NAME lists. ##
29657 ## ------------------------------------------ ##
29660 sed "s/^/$as_me: WARNING: /" >&2
29663 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
29664 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
29665 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29666 echo $ECHO_N "(cached) $ECHO_C" >&6
29668 ac_cv_header_sys_acl_h=$ac_header_preproc
29670 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
29671 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
29676 echo "$as_me:$LINENO: checking for acl_get_file" >&5
29677 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6
29678 if test "${ac_cv_func_acl_get_file+set}" = set; then
29679 echo $ECHO_N "(cached) $ECHO_C" >&6
29681 cat >conftest.$ac_ext <<_ACEOF
29684 cat confdefs.h >>conftest.$ac_ext
29685 cat >>conftest.$ac_ext <<_ACEOF
29686 /* end confdefs.h. */
29687 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
29688 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29689 #define acl_get_file innocuous_acl_get_file
29691 /* System header to define __stub macros and hopefully few prototypes,
29692 which can conflict with char acl_get_file (); below.
29693 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29694 <limits.h> exists even on freestanding compilers. */
29697 # include <limits.h>
29699 # include <assert.h>
29702 #undef acl_get_file
29704 /* Override any gcc2 internal prototype to avoid an error. */
29709 /* We use char because int might match the return type of a gcc2
29710 builtin and then its argument prototype would still apply. */
29711 char acl_get_file ();
29712 /* The GNU C library defines this for functions which it implements
29713 to always fail with ENOSYS. Some functions are actually named
29714 something starting with __ and the normal name is an alias. */
29715 #if defined (__stub_acl_get_file) || defined (__stub___acl_get_file)
29718 char (*f) () = acl_get_file;
29727 return f != acl_get_file;
29732 rm -f conftest.$ac_objext conftest$ac_exeext
29733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29734 (eval $ac_link) 2>conftest.er1
29736 grep -v '^ *+' conftest.er1 >conftest.err
29738 cat conftest.err >&5
29739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29740 (exit $ac_status); } &&
29741 { ac_try='test -z "$ac_c_werror_flag"
29742 || test ! -s conftest.err'
29743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29744 (eval $ac_try) 2>&5
29746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29747 (exit $ac_status); }; } &&
29748 { ac_try='test -s conftest$ac_exeext'
29749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29750 (eval $ac_try) 2>&5
29752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29753 (exit $ac_status); }; }; then
29754 ac_cv_func_acl_get_file=yes
29756 echo "$as_me: failed program was:" >&5
29757 sed 's/^/| /' conftest.$ac_ext >&5
29759 ac_cv_func_acl_get_file=no
29761 rm -f conftest.err conftest.$ac_objext \
29762 conftest$ac_exeext conftest.$ac_ext
29764 echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
29765 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6
29766 if test $ac_cv_func_acl_get_file = yes; then
29769 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
29770 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
29771 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
29772 echo $ECHO_N "(cached) $ECHO_C" >&6
29774 ac_check_lib_save_LIBS=$LIBS
29776 cat >conftest.$ac_ext <<_ACEOF
29779 cat confdefs.h >>conftest.$ac_ext
29780 cat >>conftest.$ac_ext <<_ACEOF
29781 /* end confdefs.h. */
29783 /* Override any gcc2 internal prototype to avoid an error. */
29787 /* We use char because int might match the return type of a gcc2
29788 builtin and then its argument prototype would still apply. */
29789 char acl_get_file ();
29798 rm -f conftest.$ac_objext conftest$ac_exeext
29799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29800 (eval $ac_link) 2>conftest.er1
29802 grep -v '^ *+' conftest.er1 >conftest.err
29804 cat conftest.err >&5
29805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29806 (exit $ac_status); } &&
29807 { ac_try='test -z "$ac_c_werror_flag"
29808 || test ! -s conftest.err'
29809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29810 (eval $ac_try) 2>&5
29812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29813 (exit $ac_status); }; } &&
29814 { ac_try='test -s conftest$ac_exeext'
29815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29816 (eval $ac_try) 2>&5
29818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29819 (exit $ac_status); }; }; then
29820 ac_cv_lib_acl_acl_get_file=yes
29822 echo "$as_me: failed program was:" >&5
29823 sed 's/^/| /' conftest.$ac_ext >&5
29825 ac_cv_lib_acl_acl_get_file=no
29827 rm -f conftest.err conftest.$ac_objext \
29828 conftest$ac_exeext conftest.$ac_ext
29829 LIBS=$ac_check_lib_save_LIBS
29831 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
29832 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
29833 if test $ac_cv_lib_acl_acl_get_file = yes; then
29834 have_acl=yes; FDLIBS="-lacl $FDLIBS"
29836 echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
29837 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6
29838 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
29839 echo $ECHO_N "(cached) $ECHO_C" >&6
29841 ac_check_lib_save_LIBS=$LIBS
29843 cat >conftest.$ac_ext <<_ACEOF
29846 cat confdefs.h >>conftest.$ac_ext
29847 cat >>conftest.$ac_ext <<_ACEOF
29848 /* end confdefs.h. */
29850 /* Override any gcc2 internal prototype to avoid an error. */
29854 /* We use char because int might match the return type of a gcc2
29855 builtin and then its argument prototype would still apply. */
29865 rm -f conftest.$ac_objext conftest$ac_exeext
29866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29867 (eval $ac_link) 2>conftest.er1
29869 grep -v '^ *+' conftest.er1 >conftest.err
29871 cat conftest.err >&5
29872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29873 (exit $ac_status); } &&
29874 { ac_try='test -z "$ac_c_werror_flag"
29875 || test ! -s conftest.err'
29876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29877 (eval $ac_try) 2>&5
29879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29880 (exit $ac_status); }; } &&
29881 { ac_try='test -s conftest$ac_exeext'
29882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29883 (eval $ac_try) 2>&5
29885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29886 (exit $ac_status); }; }; then
29887 ac_cv_lib_sec_acltotext=yes
29889 echo "$as_me: failed program was:" >&5
29890 sed 's/^/| /' conftest.$ac_ext >&5
29892 ac_cv_lib_sec_acltotext=no
29894 rm -f conftest.err conftest.$ac_objext \
29895 conftest$ac_exeext conftest.$ac_ext
29896 LIBS=$ac_check_lib_save_LIBS
29898 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
29899 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6
29900 if test $ac_cv_lib_sec_acltotext = yes; then
29901 have_acl=yes; FDLIBS="-lsec $FDLIBS"
29910 if test $have_acl = yes; then
29911 cat >>confdefs.h <<\_ACEOF
29918 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
29919 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
29920 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
29921 echo $ECHO_N "(cached) $ECHO_C" >&6
29923 ac_check_lib_save_LIBS=$LIBS
29924 LIBS="-lpthread $LIBS"
29925 cat >conftest.$ac_ext <<_ACEOF
29928 cat confdefs.h >>conftest.$ac_ext
29929 cat >>conftest.$ac_ext <<_ACEOF
29930 /* end confdefs.h. */
29932 /* Override any gcc2 internal prototype to avoid an error. */
29936 /* We use char because int might match the return type of a gcc2
29937 builtin and then its argument prototype would still apply. */
29938 char pthread_create ();
29947 rm -f conftest.$ac_objext conftest$ac_exeext
29948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29949 (eval $ac_link) 2>conftest.er1
29951 grep -v '^ *+' conftest.er1 >conftest.err
29953 cat conftest.err >&5
29954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29955 (exit $ac_status); } &&
29956 { ac_try='test -z "$ac_c_werror_flag"
29957 || test ! -s conftest.err'
29958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29959 (eval $ac_try) 2>&5
29961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29962 (exit $ac_status); }; } &&
29963 { ac_try='test -s conftest$ac_exeext'
29964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29965 (eval $ac_try) 2>&5
29967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29968 (exit $ac_status); }; }; then
29969 ac_cv_lib_pthread_pthread_create=yes
29971 echo "$as_me: failed program was:" >&5
29972 sed 's/^/| /' conftest.$ac_ext >&5
29974 ac_cv_lib_pthread_pthread_create=no
29976 rm -f conftest.err conftest.$ac_objext \
29977 conftest$ac_exeext conftest.$ac_ext
29978 LIBS=$ac_check_lib_save_LIBS
29980 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
29981 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
29982 if test $ac_cv_lib_pthread_pthread_create = yes; then
29983 PTHREAD_LIB="-lpthread"
29985 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
29986 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
29987 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
29988 echo $ECHO_N "(cached) $ECHO_C" >&6
29990 ac_check_lib_save_LIBS=$LIBS
29991 LIBS="-lpthreads $LIBS"
29992 cat >conftest.$ac_ext <<_ACEOF
29995 cat confdefs.h >>conftest.$ac_ext
29996 cat >>conftest.$ac_ext <<_ACEOF
29997 /* end confdefs.h. */
29999 /* Override any gcc2 internal prototype to avoid an error. */
30003 /* We use char because int might match the return type of a gcc2
30004 builtin and then its argument prototype would still apply. */
30005 char pthread_create ();
30014 rm -f conftest.$ac_objext conftest$ac_exeext
30015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30016 (eval $ac_link) 2>conftest.er1
30018 grep -v '^ *+' conftest.er1 >conftest.err
30020 cat conftest.err >&5
30021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30022 (exit $ac_status); } &&
30023 { ac_try='test -z "$ac_c_werror_flag"
30024 || test ! -s conftest.err'
30025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30026 (eval $ac_try) 2>&5
30028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30029 (exit $ac_status); }; } &&
30030 { ac_try='test -s conftest$ac_exeext'
30031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30032 (eval $ac_try) 2>&5
30034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30035 (exit $ac_status); }; }; then
30036 ac_cv_lib_pthreads_pthread_create=yes
30038 echo "$as_me: failed program was:" >&5
30039 sed 's/^/| /' conftest.$ac_ext >&5
30041 ac_cv_lib_pthreads_pthread_create=no
30043 rm -f conftest.err conftest.$ac_objext \
30044 conftest$ac_exeext conftest.$ac_ext
30045 LIBS=$ac_check_lib_save_LIBS
30047 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
30048 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
30049 if test $ac_cv_lib_pthreads_pthread_create = yes; then
30050 PTHREAD_LIB="-lpthreads"
30052 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
30053 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
30054 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
30055 echo $ECHO_N "(cached) $ECHO_C" >&6
30057 ac_check_lib_save_LIBS=$LIBS
30059 cat >conftest.$ac_ext <<_ACEOF
30062 cat confdefs.h >>conftest.$ac_ext
30063 cat >>conftest.$ac_ext <<_ACEOF
30064 /* end confdefs.h. */
30066 /* Override any gcc2 internal prototype to avoid an error. */
30070 /* We use char because int might match the return type of a gcc2
30071 builtin and then its argument prototype would still apply. */
30072 char pthread_create ();
30081 rm -f conftest.$ac_objext conftest$ac_exeext
30082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30083 (eval $ac_link) 2>conftest.er1
30085 grep -v '^ *+' conftest.er1 >conftest.err
30087 cat conftest.err >&5
30088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30089 (exit $ac_status); } &&
30090 { ac_try='test -z "$ac_c_werror_flag"
30091 || test ! -s conftest.err'
30092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30093 (eval $ac_try) 2>&5
30095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30096 (exit $ac_status); }; } &&
30097 { ac_try='test -s conftest$ac_exeext'
30098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30099 (eval $ac_try) 2>&5
30101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30102 (exit $ac_status); }; }; then
30103 ac_cv_lib_c_r_pthread_create=yes
30105 echo "$as_me: failed program was:" >&5
30106 sed 's/^/| /' conftest.$ac_ext >&5
30108 ac_cv_lib_c_r_pthread_create=no
30110 rm -f conftest.err conftest.$ac_objext \
30111 conftest$ac_exeext conftest.$ac_ext
30112 LIBS=$ac_check_lib_save_LIBS
30114 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
30115 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
30116 if test $ac_cv_lib_c_r_pthread_create = yes; then
30117 PTHREAD_LIB="-lc_r"
30119 echo "$as_me:$LINENO: checking for pthread_create" >&5
30120 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
30121 if test "${ac_cv_func_pthread_create+set}" = set; then
30122 echo $ECHO_N "(cached) $ECHO_C" >&6
30124 cat >conftest.$ac_ext <<_ACEOF
30127 cat confdefs.h >>conftest.$ac_ext
30128 cat >>conftest.$ac_ext <<_ACEOF
30129 /* end confdefs.h. */
30130 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
30131 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30132 #define pthread_create innocuous_pthread_create
30134 /* System header to define __stub macros and hopefully few prototypes,
30135 which can conflict with char pthread_create (); below.
30136 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30137 <limits.h> exists even on freestanding compilers. */
30140 # include <limits.h>
30142 # include <assert.h>
30145 #undef pthread_create
30147 /* Override any gcc2 internal prototype to avoid an error. */
30152 /* We use char because int might match the return type of a gcc2
30153 builtin and then its argument prototype would still apply. */
30154 char pthread_create ();
30155 /* The GNU C library defines this for functions which it implements
30156 to always fail with ENOSYS. Some functions are actually named
30157 something starting with __ and the normal name is an alias. */
30158 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
30161 char (*f) () = pthread_create;
30170 return f != pthread_create;
30175 rm -f conftest.$ac_objext conftest$ac_exeext
30176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30177 (eval $ac_link) 2>conftest.er1
30179 grep -v '^ *+' conftest.er1 >conftest.err
30181 cat conftest.err >&5
30182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30183 (exit $ac_status); } &&
30184 { ac_try='test -z "$ac_c_werror_flag"
30185 || test ! -s conftest.err'
30186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30187 (eval $ac_try) 2>&5
30189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30190 (exit $ac_status); }; } &&
30191 { ac_try='test -s conftest$ac_exeext'
30192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30193 (eval $ac_try) 2>&5
30195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30196 (exit $ac_status); }; }; then
30197 ac_cv_func_pthread_create=yes
30199 echo "$as_me: failed program was:" >&5
30200 sed 's/^/| /' conftest.$ac_ext >&5
30202 ac_cv_func_pthread_create=no
30204 rm -f conftest.err conftest.$ac_objext \
30205 conftest$ac_exeext conftest.$ac_ext
30207 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
30208 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
30221 cat >>confdefs.h <<\_ACEOF
30227 CFLAGS=${CFLAGS--O}
30229 if test x$have_gcc = xyes ; then
30230 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30231 CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30233 LDFLAGS=${LDFLAGS--O}
30234 DB_LIBS="${SQL_LFLAGS}"
30235 CPPFLAGS="$CPPFLAGS"
30263 # Finally we set appropriate distribution specific
30264 # variables and defaults
30266 # PFILES are platform specific files
30267 PFILES="platforms/Makefile"
30271 hostname=`uname -n | cut -d '.' -f 1`
30272 if test x${hostname} = x ; then
30273 hostname="localhost"
30275 case "$DISTNAME" in
30278 PSCMD="ps -e -o pid,comm"
30279 PFILES="${PFILES} \
30280 platforms/aix/Makefile"
30281 TAPEDRIVE="/dev/rmt0.1"
30285 PTHREAD_LIB="-lpthread -lexc"
30286 if test "${CC}" = "gcc" ; then
30293 TAPEDRIVE="/dev/nrmt0"
30296 DISTVER=`uname -a |awk '{print $3}'`
30297 TAPEDRIVE="/dev/nrmt0"
30298 PTHREAD_LIB="-pthread"
30299 CFLAGS="${CFLAGS} -pthread"
30300 PSCMD="ps -ax -o pid,command"
30303 PFILES="${PFILES} \
30304 platforms/bsdi/Makefile \
30305 platforms/bsdi/bacula-fd \
30306 platforms/bsdi/bacula-sd \
30307 platforms/bsdi/bacula-dir"
30308 largefile_support="yes"
30311 DISTVER=`uname -a |awk '{print $3}'`
30312 TAPEDRIVE="/dev/nrst0"
30314 WCFLAGS="-mwindows"
30315 WLDFLAGS="-mwindows"
30319 TAPEDRIVE="/dev/nst0"
30320 PSCMD="ps -e -o pid,command"
30322 PFILES="${PFILES} \
30323 platforms/darwin/Makefile"
30326 DISTVER=`cat /etc/debian_version`
30327 TAPEDRIVE="/dev/nrst0"
30328 PSCMD="ps -e -o pid,command"
30331 DISTVER=`uname -a |awk '{print $3}'`
30332 VER=`echo $DISTVER | cut -c 1`
30333 if test x$VER = x4 ; then
30334 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
30335 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
30339 TAPEDRIVE="/dev/nrsa0"
30340 PSCMD="ps -ax -o pid,command"
30341 PFILES="${PFILES} \
30342 platforms/freebsd/Makefile \
30343 platforms/freebsd/bacula-fd \
30344 platforms/freebsd/bacula-sd \
30345 platforms/freebsd/bacula-dir"
30346 largefile_support="yes"
30349 PSCMD="UNIX95=1; ps -e -o pid,comm"
30350 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
30352 TAPEDRIVE="/dev/rmt/0hnb"
30353 PTHREAD_LIB="-lpthread"
30354 cat >>confdefs.h <<\_ACEOF
30355 #define _INCLUDE_LONGLONG 1
30361 TAPEDRIVE="/dev/rmt/0cbn"
30362 PSCMD="ps -e -o pid,comm"
30363 PFILES="${PFILES} \
30364 platforms/irix/Makefile \
30365 platforms/irix/bacula-fd \
30366 platforms/irix/bacula-sd \
30367 platforms/irix/bacula-dir"
30370 DISTVER=`uname -a |awk '{print $3}'`
30373 TAPEDRIVE="/dev/nrst0"
30374 PSCMD="ps -ax -o pid,command"
30375 PTHREAD_LIB="-pthread"
30376 CFLAGS="${CFLAGS} -pthread"
30379 DISTVER=`uname -a |awk '{print $3}'`
30382 TAPEDRIVE="/dev/nrst0"
30383 PSCMD="ps -ax -o pid,command"
30384 PTHREAD_LIB="-pthread"
30385 CFLAGS="${CFLAGS} -pthread"
30386 PFILES="${PFILES} \
30387 platforms/openbsd/Makefile \
30388 platforms/openbsd/bacula-fd \
30389 platforms/openbsd/bacula-sd \
30390 platforms/openbsd/bacula-dir"
30393 if test -f /etc/whitebox-release ; then
30394 f=/etc/whitebox-release
30396 f=/etc/redhat-release
30398 if test `cat $f | grep release |\
30399 cut -f 3 -d ' '`x = "Enterprise"x ; then
30400 DISTVER="Enterprise "`cat $f | grep release |\
30403 DISTVER=`cat /etc/redhat-release | grep release |\
30406 TAPEDRIVE="/dev/nst0"
30407 PSCMD="ps -e -o pid,command"
30408 PFILES="${PFILES} \
30409 platforms/redhat/Makefile \
30410 platforms/redhat/bacula-fd \
30411 platforms/redhat/bacula-sd \
30412 platforms/redhat/bacula-dir \
30413 platforms/redhat/bacula.spec \
30417 DISTVER=`cat /etc/mandrake-release | grep release |\
30419 TAPEDRIVE="/dev/nst0"
30420 PSCMD="ps -e -o pid,command"
30421 PFILES="${PFILES} \
30422 platforms/mandrake/Makefile \
30423 platforms/mandrake/bacula-fd \
30424 platforms/mandrake/bacula-sd \
30425 platforms/mandrake/bacula-dir \
30426 platforms/mandrake/bacula.spec \
30430 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
30431 TAPEDRIVE="/dev/nst0"
30432 PSCMD="ps -e -o pid,command"
30433 PFILES="${PFILES} \
30434 platforms/gentoo/Makefile \
30435 platforms/gentoo/bacula-init \
30436 platforms/gentoo/bacula-fd \
30437 platforms/gentoo/bacula-sd \
30438 platforms/gentoo/bacula-dir"
30441 DISTVER=`cat /etc/slackware-version`
30442 TAPEDRIVE="/dev/nst0"
30443 PSCMD="ps -e -o pid,command"
30444 PFILES="${PFILES} \
30445 platforms/slackware/Makefile \
30446 platforms/slackware/rc.bacula-fd \
30447 platforms/slackware/rc.bacula-sd \
30448 platforms/slackware/rc.bacula-dir\
30449 platforms/slackware/functions.bacula"
30453 TAPEDRIVE="/dev/rmt/0cbn"
30454 PSCMD="ps -e -o pid,comm"
30455 PFILES="${PFILES} \
30456 platforms/solaris/Makefile \
30457 platforms/solaris/bacula-fd \
30458 platforms/solaris/bacula-sd \
30459 platforms/solaris/bacula-dir"
30460 if test x$DISTVER = x5.6 ; then
30461 cat >>confdefs.h <<\_ACEOF
30462 #define HAVE_OLD_SOCKOPT 1
30466 LIBS="$LIBS -lresolv"
30469 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
30471 TAPEDRIVE="/dev/nst0"
30472 PSCMD="ps -e -o pid,command"
30473 PFILES="${PFILES} \
30474 platforms/suse/Makefile \
30475 platforms/suse/bacula-fd \
30476 platforms/suse/bacula-sd \
30477 platforms/suse/bacula-dir \
30478 platforms/suse/bacula \
30479 platforms/suse/bacula.spec"
30484 TAPEDRIVE="/dev/nst0"
30485 PSCMD="ps -e -o pid,command"
30486 PFILES="${PFILES} \
30487 platforms/suse/Makefile \
30488 platforms/suse/bacula-fd \
30489 platforms/suse/bacula-sd \
30490 platforms/suse/bacula-dir"
30494 TAPEDRIVE="/dev/nst0"
30497 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
30503 LIBS="$PTHREAD_LIB $LIBS"
30505 cat >>confdefs.h <<_ACEOF
30509 cat >>confdefs.h <<_ACEOF
30520 MCOMMON=./autoconf/Make.common
30523 if test "x${subsysdir}" = "x${sbindir}" ; then
30526 echo "You have set both --sbindir and --with-subsys-dir"
30527 echo " equal to: ${subsysdir} "
30528 echo "This is not permitted. Please reconfigure."
30530 echo "Aborting configuration ..."
30536 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"
30537 ac_config_commands="$ac_config_commands default"
30538 cat >confcache <<\_ACEOF
30539 # This file is a shell script that caches the results of configure
30540 # tests run on this system so they can be shared between configure
30541 # scripts and configure runs, see configure's option --config-cache.
30542 # It is not useful on other systems. If it contains results you don't
30543 # want to keep, you may remove or edit it.
30545 # config.status only pays attention to the cache file if you give it
30546 # the --recheck option to rerun configure.
30548 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30549 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30550 # following values.
30554 # The following way of writing the cache mishandles newlines in values,
30555 # but we know of no workaround that is simple, portable, and efficient.
30556 # So, don't put newlines in cache variables' values.
30557 # Ultrix sh set writes to stderr and can't be redirected directly,
30558 # and sets the high bit in the cache file unless we assign to the vars.
30561 case `(ac_space=' '; set | grep ac_space) 2>&1` in
30563 # `set' does not quote correctly, so add quotes (double-quote
30564 # substitution turns \\\\ into \\, and sed turns \\ into \).
30567 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30570 # `set' quotes correctly as required by POSIX, so do not add quotes.
30572 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
30579 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30581 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30583 if diff $cache_file confcache >/dev/null 2>&1; then :; else
30584 if test -w $cache_file; then
30585 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
30586 cat confcache >$cache_file
30588 echo "not updating unwritable cache $cache_file"
30593 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30594 # Let make expand exec_prefix.
30595 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30597 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30598 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30599 # trailing colons and then remove the whole line if VPATH becomes empty
30600 # (actually we leave an empty line to preserve line numbers).
30601 if test "x$srcdir" = x.; then
30602 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30603 s/:*\$(srcdir):*/:/;
30604 s/:*\${srcdir}:*/:/;
30606 s/^\([^=]*=[ ]*\):*/\1/;
30612 DEFS=-DHAVE_CONFIG_H
30616 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30617 # 1. Remove the extension, and $U if already installed.
30618 ac_i=`echo "$ac_i" |
30619 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
30621 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
30622 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
30624 LIBOBJS=$ac_libobjs
30626 LTLIBOBJS=$ac_ltlibobjs
30630 : ${CONFIG_STATUS=./config.status}
30631 ac_clean_files_save=$ac_clean_files
30632 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30633 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30634 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30635 cat >$CONFIG_STATUS <<_ACEOF
30637 # Generated by $as_me.
30638 # Run this file to recreate the current configuration.
30639 # Compiler output produced by configure, useful for debugging
30640 # configure, is in config.log if it exists.
30643 ac_cs_recheck=false
30645 SHELL=\${CONFIG_SHELL-$SHELL}
30648 cat >>$CONFIG_STATUS <<\_ACEOF
30649 ## --------------------- ##
30650 ## M4sh Initialization. ##
30651 ## --------------------- ##
30653 # Be Bourne compatible
30654 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30657 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30658 # is contrary to our usage. Disable this feature.
30659 alias -g '${1+"$@"}'='"$@"'
30660 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30663 DUALCASE=1; export DUALCASE # for MKS sh
30665 # Support unset when possible.
30666 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30673 # Work around bugs in pre-3.0 UWIN ksh.
30674 $as_unset ENV MAIL MAILPATH
30681 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30682 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30683 LC_TELEPHONE LC_TIME
30685 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30686 eval $as_var=C; export $as_var
30692 # Required to use basename.
30693 if expr a : '\(a\)' >/dev/null 2>&1; then
30699 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
30700 as_basename=basename
30706 # Name of the executable.
30707 as_me=`$as_basename "$0" ||
30708 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30709 X"$0" : 'X\(//\)$' \| \
30710 X"$0" : 'X\(/\)$' \| \
30711 . : '\(.\)' 2>/dev/null ||
30713 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
30714 /^X\/\(\/\/\)$/{ s//\1/; q; }
30715 /^X\/\(\/\).*/{ s//\1/; q; }
30719 # PATH needs CR, and LINENO needs CR and PATH.
30720 # Avoid depending upon Character Ranges.
30721 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30722 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30723 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30724 as_cr_digits='0123456789'
30725 as_cr_alnum=$as_cr_Letters$as_cr_digits
30727 # The user is always right.
30728 if test "${PATH_SEPARATOR+set}" != set; then
30729 echo "#! /bin/sh" >conf$$.sh
30730 echo "exit 0" >>conf$$.sh
30732 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30741 as_lineno_1=$LINENO
30742 as_lineno_2=$LINENO
30743 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30744 test "x$as_lineno_1" != "x$as_lineno_2" &&
30745 test "x$as_lineno_3" = "x$as_lineno_2" || {
30746 # Find who we are. Look in the path if we contain no path at all
30749 *[\\/]* ) as_myself=$0 ;;
30750 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30751 for as_dir in $PATH
30754 test -z "$as_dir" && as_dir=.
30755 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30760 # We did not find ourselves, most probably we were run as `sh COMMAND'
30761 # in which case we are not to be found in the path.
30762 if test "x$as_myself" = x; then
30765 if test ! -f "$as_myself"; then
30766 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
30767 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
30768 { (exit 1); exit 1; }; }
30770 case $CONFIG_SHELL in
30772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30773 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
30776 test -z "$as_dir" && as_dir=.
30777 for as_base in sh bash ksh sh5; do
30780 if ("$as_dir/$as_base" -c '
30781 as_lineno_1=$LINENO
30782 as_lineno_2=$LINENO
30783 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30784 test "x$as_lineno_1" != "x$as_lineno_2" &&
30785 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
30786 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
30787 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
30788 CONFIG_SHELL=$as_dir/$as_base
30789 export CONFIG_SHELL
30790 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
30798 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30799 # uniformly replaced by the line number. The first 'sed' inserts a
30800 # line-number line before each line; the second 'sed' does the real
30801 # work. The second script uses 'N' to pair each line-number line
30802 # with the numbered line, and appends trailing '-' during
30803 # substitution so that $LINENO is not a special case at line end.
30804 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30805 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
30806 sed '=' <$as_myself |
30811 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
30814 s,^['$as_cr_digits']*\n,,
30815 ' >$as_me.lineno &&
30816 chmod +x $as_me.lineno ||
30817 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
30818 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
30819 { (exit 1); exit 1; }; }
30821 # Don't try to exec as it changes $[0], causing all sort of problems
30822 # (the dirname of $[0] is not the place where we might find the
30823 # original and so on. Autoconf is especially sensible to this).
30825 # Exit status is that of the last command.
30830 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
30831 *c*,-n*) ECHO_N= ECHO_C='
30833 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
30834 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
30837 if expr a : '\(a\)' >/dev/null 2>&1; then
30843 rm -f conf$$ conf$$.exe conf$$.file
30845 if ln -s conf$$.file conf$$ 2>/dev/null; then
30846 # We could just check for DJGPP; but this test a) works b) is more generic
30847 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
30848 if test -f conf$$.exe; then
30849 # Don't use ln at all; we don't have any links
30854 elif ln conf$$.file conf$$ 2>/dev/null; then
30859 rm -f conf$$ conf$$.exe conf$$.file
30861 if mkdir -p . 2>/dev/null; then
30864 test -d ./-p && rmdir ./-p
30868 as_executable_p="test -f"
30870 # Sed expression to map a string onto a valid CPP name.
30871 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30873 # Sed expression to map a string onto a valid variable name.
30874 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30878 # We need space, tab and new line, in precisely that order.
30888 # Open the log real soon, to keep \$[0] and so on meaningful, and to
30889 # report actual input values of CONFIG_FILES etc. instead of their
30890 # values after options handling. Logging --version etc. is OK.
30894 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30895 ## Running $as_me. ##
30900 This file was extended by $as_me, which was
30901 generated by GNU Autoconf 2.59. Invocation command line was
30903 CONFIG_FILES = $CONFIG_FILES
30904 CONFIG_HEADERS = $CONFIG_HEADERS
30905 CONFIG_LINKS = $CONFIG_LINKS
30906 CONFIG_COMMANDS = $CONFIG_COMMANDS
30910 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
30914 # Files that config.status was made for.
30915 if test -n "$ac_config_files"; then
30916 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
30919 if test -n "$ac_config_headers"; then
30920 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
30923 if test -n "$ac_config_links"; then
30924 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
30927 if test -n "$ac_config_commands"; then
30928 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
30931 cat >>$CONFIG_STATUS <<\_ACEOF
30934 \`$as_me' instantiates files from templates according to the
30935 current configuration.
30937 Usage: $0 [OPTIONS] [FILE]...
30939 -h, --help print this help, then exit
30940 -V, --version print version number, then exit
30941 -q, --quiet do not print progress messages
30942 -d, --debug don't remove temporary files
30943 --recheck update $as_me by reconfiguring in the same conditions
30944 --file=FILE[:TEMPLATE]
30945 instantiate the configuration file FILE
30946 --header=FILE[:TEMPLATE]
30947 instantiate the configuration header FILE
30949 Configuration files:
30952 Configuration headers:
30955 Configuration commands:
30958 Report bugs to <bug-autoconf@gnu.org>."
30961 cat >>$CONFIG_STATUS <<_ACEOF
30964 configured by $0, generated by GNU Autoconf 2.59,
30965 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
30967 Copyright (C) 2003 Free Software Foundation, Inc.
30968 This config.status script is free software; the Free Software Foundation
30969 gives unlimited permission to copy, distribute and modify it."
30974 cat >>$CONFIG_STATUS <<\_ACEOF
30975 # If no file are specified by the user, then we need to provide default
30976 # value. By we need to know if files were specified by the user.
30982 ac_option=`expr "x$1" : 'x\([^=]*\)='`
30983 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
30991 *) # This is not an option, so the user has probably given explicit
30994 ac_need_defaults=false;;
30998 # Handling of the options.
31000 cat >>$CONFIG_STATUS <<\_ACEOF
31001 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31003 --version | --vers* | -V )
31004 echo "$ac_cs_version"; exit 0 ;;
31006 # Conflict between --help and --header
31007 { { echo "$as_me:$LINENO: error: ambiguous option: $1
31008 Try \`$0 --help' for more information." >&5
31009 echo "$as_me: error: ambiguous option: $1
31010 Try \`$0 --help' for more information." >&2;}
31011 { (exit 1); exit 1; }; };;
31012 --help | --hel | -h )
31013 echo "$ac_cs_usage"; exit 0 ;;
31014 --debug | --d* | -d )
31016 --file | --fil | --fi | --f )
31018 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
31019 ac_need_defaults=false;;
31020 --header | --heade | --head | --hea )
31022 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
31023 ac_need_defaults=false;;
31024 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31025 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31028 # This is an error.
31029 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
31030 Try \`$0 --help' for more information." >&5
31031 echo "$as_me: error: unrecognized option: $1
31032 Try \`$0 --help' for more information." >&2;}
31033 { (exit 1); exit 1; }; } ;;
31035 *) ac_config_targets="$ac_config_targets $1" ;;
31041 ac_configure_extra_args=
31043 if $ac_cs_silent; then
31045 ac_configure_extra_args="$ac_configure_extra_args --silent"
31049 cat >>$CONFIG_STATUS <<_ACEOF
31050 if \$ac_cs_recheck; then
31051 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
31052 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31057 cat >>$CONFIG_STATUS <<_ACEOF
31059 # INIT-COMMANDS section.
31062 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
31063 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
31065 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
31066 # Capture the value of LINGUAS because we need it to compute CATALOGS.
31067 LINGUAS="${LINGUAS-%UNSET%}"
31074 cat >>$CONFIG_STATUS <<\_ACEOF
31075 for ac_config_target in $ac_config_targets
31077 case "$ac_config_target" in
31078 # Handling of arguments.
31079 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
31080 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
31081 "manpages/Makefile" ) CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
31082 "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
31083 "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
31084 "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
31085 "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
31086 "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
31087 "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
31088 "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
31089 "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
31090 "scripts/bacula-ctl-dir" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
31091 "scripts/bacula-ctl-fd" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
31092 "scripts/bacula-ctl-sd" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
31093 "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
31094 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
31095 "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
31096 "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
31097 "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
31098 "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
31099 "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
31100 "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
31101 "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
31102 "scripts/bgnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
31103 "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
31104 "scripts/disk-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
31105 "scripts/dvd-handler" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
31106 "scripts/dvd-simulator" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
31107 "scripts/bacula-tray-monitor.desktop" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
31108 "scripts/logwatch/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
31109 "scripts/logwatch/logfile.bacula.conf" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
31110 "scripts/wxconsole.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
31111 "scripts/wxconsole.desktop.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
31112 "scripts/wxconsole.desktop.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
31113 "scripts/bat.desktop" ) CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
31114 "scripts/bat.desktop.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
31115 "scripts/bat.desktop.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
31116 "scripts/bat.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
31117 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
31118 "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
31119 "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
31120 "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
31121 "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
31122 "src/gnome2-console/bgnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/bgnome-console.conf" ;;
31123 "src/qt-console/bat.conf" ) CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
31124 "src/qt-console/bat.pro" ) CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
31125 "src/qt-console/install_conf_file" ) CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
31126 "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
31127 "src/wx-console/bwx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
31128 "src/tray-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
31129 "src/tray-monitor/tray-monitor.conf" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
31130 "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
31131 "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
31132 "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
31133 "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
31134 "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
31135 "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
31136 "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
31137 "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
31138 "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
31139 "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
31140 "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
31141 "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
31142 "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
31143 "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
31144 "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
31145 "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
31146 "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
31147 "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
31148 "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
31149 "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
31150 "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
31151 "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
31152 "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
31153 "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
31154 "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
31155 "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
31156 "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
31157 "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
31158 "src/cats/create_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
31159 "src/cats/update_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
31160 "src/cats/make_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
31161 "src/cats/grant_sqlite3_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
31162 "src/cats/drop_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
31163 "src/cats/drop_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
31164 "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
31165 "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
31166 "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
31167 "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
31168 "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
31169 "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
31170 "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
31171 "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
31172 "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
31173 "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
31174 "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
31175 "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
31176 "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
31177 "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
31178 "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
31179 "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
31180 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
31181 "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
31182 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
31183 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
31184 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
31185 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31186 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31187 { (exit 1); exit 1; }; };;
31191 # If the user did not use the arguments to specify the items to instantiate,
31192 # then the envvar interface is used. Set only those that are not.
31193 # We use the long form for the default assignment because of an extremely
31194 # bizarre bug on SunOS 4.1.3.
31195 if $ac_need_defaults; then
31196 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31197 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31198 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31201 # Have a temporary directory for convenience. Make it in the build tree
31202 # simply because there is no reason to put it here, and in addition,
31203 # creating and moving files from /tmp can sometimes cause problems.
31204 # Create a temporary directory, and hook for its removal unless debugging.
31207 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
31208 trap '{ (exit 1); exit 1; }' 1 2 13 15
31211 # Create a (secure) tmp directory for tmp files.
31214 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
31215 test -n "$tmp" && test -d "$tmp"
31218 tmp=./confstat$$-$RANDOM
31219 (umask 077 && mkdir $tmp)
31222 echo "$me: cannot create a temporary directory in ." >&2
31223 { (exit 1); exit 1; }
31228 cat >>$CONFIG_STATUS <<_ACEOF
31231 # CONFIG_FILES section.
31234 # No need to generate the scripts if there are no CONFIG_FILES.
31235 # This happens for instance when ./config.status config.h
31236 if test -n "\$CONFIG_FILES"; then
31237 # Protect against being on the right side of a sed subst in config.status.
31238 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
31239 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
31240 s,@SHELL@,$SHELL,;t t
31241 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
31242 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
31243 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
31244 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
31245 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
31246 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
31247 s,@exec_prefix@,$exec_prefix,;t t
31248 s,@prefix@,$prefix,;t t
31249 s,@program_transform_name@,$program_transform_name,;t t
31250 s,@bindir@,$bindir,;t t
31251 s,@sbindir@,$sbindir,;t t
31252 s,@libexecdir@,$libexecdir,;t t
31253 s,@datadir@,$datadir,;t t
31254 s,@sysconfdir@,$sysconfdir,;t t
31255 s,@sharedstatedir@,$sharedstatedir,;t t
31256 s,@localstatedir@,$localstatedir,;t t
31257 s,@libdir@,$libdir,;t t
31258 s,@includedir@,$includedir,;t t
31259 s,@oldincludedir@,$oldincludedir,;t t
31260 s,@infodir@,$infodir,;t t
31261 s,@mandir@,$mandir,;t t
31262 s,@build_alias@,$build_alias,;t t
31263 s,@host_alias@,$host_alias,;t t
31264 s,@target_alias@,$target_alias,;t t
31265 s,@DEFS@,$DEFS,;t t
31266 s,@ECHO_C@,$ECHO_C,;t t
31267 s,@ECHO_N@,$ECHO_N,;t t
31268 s,@ECHO_T@,$ECHO_T,;t t
31269 s,@LIBS@,$LIBS,;t t
31270 s,@BUILD_DIR@,$BUILD_DIR,;t t
31271 s,@TOP_DIR@,$TOP_DIR,;t t
31272 s,@TRUEPRG@,$TRUEPRG,;t t
31273 s,@FALSEPRG@,$FALSEPRG,;t t
31274 s,@VERSION@,$VERSION,;t t
31275 s,@DATE@,$DATE,;t t
31276 s,@LSMDATE@,$LSMDATE,;t t
31278 s,@CFLAGS@,$CFLAGS,;t t
31279 s,@LDFLAGS@,$LDFLAGS,;t t
31280 s,@CPPFLAGS@,$CPPFLAGS,;t t
31281 s,@ac_ct_CC@,$ac_ct_CC,;t t
31282 s,@EXEEXT@,$EXEEXT,;t t
31283 s,@OBJEXT@,$OBJEXT,;t t
31285 s,@CXXFLAGS@,$CXXFLAGS,;t t
31286 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
31288 s,@EGREP@,$EGREP,;t t
31289 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
31290 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
31291 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
31292 s,@RANLIB@,$RANLIB,;t t
31293 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
31298 s,@ECHO@,$ECHO,;t t
31302 s,@OPENSSL@,$OPENSSL,;t t
31305 s,@MKISOFS@,$MKISOFS,;t t
31306 s,@PYTHON@,$PYTHON,;t t
31307 s,@GROWISOFS@,$GROWISOFS,;t t
31308 s,@DVDRWMEDIAINFO@,$DVDRWMEDIAINFO,;t t
31309 s,@DVDRWFORMAT@,$DVDRWFORMAT,;t t
31310 s,@PKGCONFIG@,$PKGCONFIG,;t t
31311 s,@QMAKE@,$QMAKE,;t t
31312 s,@QMAKEQT4@,$QMAKEQT4,;t t
31313 s,@WXCONFIG@,$WXCONFIG,;t t
31314 s,@WXFLAGS@,$WXFLAGS,;t t
31315 s,@CDRECORD@,$CDRECORD,;t t
31316 s,@PIDOF@,$PIDOF,;t t
31318 s,@ARFLAGS@,$ARFLAGS,;t t
31319 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
31320 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
31321 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
31322 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
31323 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
31324 s,@build@,$build,;t t
31325 s,@build_cpu@,$build_cpu,;t t
31326 s,@build_vendor@,$build_vendor,;t t
31327 s,@build_os@,$build_os,;t t
31328 s,@host@,$host,;t t
31329 s,@host_cpu@,$host_cpu,;t t
31330 s,@host_vendor@,$host_vendor,;t t
31331 s,@host_os@,$host_os,;t t
31332 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
31333 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
31334 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
31335 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
31336 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
31337 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
31338 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
31339 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
31340 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
31341 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
31342 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
31343 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
31344 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
31345 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
31346 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
31347 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
31348 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
31349 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
31350 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
31351 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
31352 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
31353 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
31354 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
31355 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
31356 s,@SET_MAKE@,$SET_MAKE,;t t
31357 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
31358 s,@USE_NLS@,$USE_NLS,;t t
31359 s,@MSGFMT@,$MSGFMT,;t t
31360 s,@GMSGFMT@,$GMSGFMT,;t t
31361 s,@XGETTEXT@,$XGETTEXT,;t t
31362 s,@MSGMERGE@,$MSGMERGE,;t t
31363 s,@INTL_MACOSX_LIBS@,$INTL_MACOSX_LIBS,;t t
31364 s,@LIBICONV@,$LIBICONV,;t t
31365 s,@LTLIBICONV@,$LTLIBICONV,;t t
31366 s,@INTLLIBS@,$INTLLIBS,;t t
31367 s,@LIBINTL@,$LIBINTL,;t t
31368 s,@LTLIBINTL@,$LTLIBINTL,;t t
31369 s,@POSUB@,$POSUB,;t t
31370 s,@GLIBC2@,$GLIBC2,;t t
31371 s,@ALLOCA@,$ALLOCA,;t t
31372 s,@GLIBC21@,$GLIBC21,;t t
31373 s,@HAVE_POSIX_PRINTF@,$HAVE_POSIX_PRINTF,;t t
31374 s,@HAVE_ASPRINTF@,$HAVE_ASPRINTF,;t t
31375 s,@HAVE_SNPRINTF@,$HAVE_SNPRINTF,;t t
31376 s,@HAVE_WPRINTF@,$HAVE_WPRINTF,;t t
31377 s,@INTLBISON@,$INTLBISON,;t t
31378 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
31379 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
31380 s,@CATOBJEXT@,$CATOBJEXT,;t t
31381 s,@DATADIRNAME@,$DATADIRNAME,;t t
31382 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
31383 s,@GENCAT@,$GENCAT,;t t
31384 s,@INTLOBJS@,$INTLOBJS,;t t
31385 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
31386 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
31387 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
31388 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
31389 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
31390 s,@GNOME_DIR@,$GNOME_DIR,;t t
31391 s,@BAT_DIR@,$BAT_DIR,;t t
31392 s,@QWT_INC@,$QWT_INC,;t t
31393 s,@QWT_LDFLAGS@,$QWT_LDFLAGS,;t t
31394 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
31395 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
31396 s,@WX_DIR@,$WX_DIR,;t t
31397 s,@TRAY_MONITOR_CPPFLAGS@,$TRAY_MONITOR_CPPFLAGS,;t t
31398 s,@TRAY_MONITOR_LDFLAGS@,$TRAY_MONITOR_LDFLAGS,;t t
31399 s,@TRAY_MONITOR_DIR@,$TRAY_MONITOR_DIR,;t t
31400 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
31401 s,@STATIC_FD@,$STATIC_FD,;t t
31402 s,@STATIC_SD@,$STATIC_SD,;t t
31403 s,@STATIC_DIR@,$STATIC_DIR,;t t
31404 s,@STATIC_CONS@,$STATIC_CONS,;t t
31405 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
31406 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
31407 s,@ALL_DIRS@,$ALL_DIRS,;t t
31408 s,@DIRD_DIR@,$DIRD_DIR,;t t
31409 s,@DIR_TOOLS@,$DIR_TOOLS,;t t
31410 s,@STORED_DIR@,$STORED_DIR,;t t
31411 s,@CONS_INC@,$CONS_INC,;t t
31412 s,@CONS_OBJ@,$CONS_OBJ,;t t
31413 s,@CONS_SRC@,$CONS_SRC,;t t
31414 s,@CONS_LIBS@,$CONS_LIBS,;t t
31415 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
31416 s,@READLINE_SRC@,$READLINE_SRC,;t t
31417 s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t
31418 s,@PYTHON_INCDIR@,$PYTHON_INCDIR,;t t
31419 s,@OPENSSL_LIBS@,$OPENSSL_LIBS,;t t
31420 s,@OPENSSL_INC@,$OPENSSL_INC,;t t
31421 s,@working_dir@,$working_dir,;t t
31422 s,@scriptdir@,$scriptdir,;t t
31423 s,@dump_email@,$dump_email,;t t
31424 s,@job_email@,$job_email,;t t
31425 s,@smtp_host@,$smtp_host,;t t
31426 s,@piddir@,$piddir,;t t
31427 s,@subsysdir@,$subsysdir,;t t
31428 s,@baseport@,$baseport,;t t
31429 s,@dir_port@,$dir_port,;t t
31430 s,@fd_port@,$fd_port,;t t
31431 s,@sd_port@,$sd_port,;t t
31432 s,@dir_password@,$dir_password,;t t
31433 s,@fd_password@,$fd_password,;t t
31434 s,@sd_password@,$sd_password,;t t
31435 s,@mon_dir_password@,$mon_dir_password,;t t
31436 s,@mon_fd_password@,$mon_fd_password,;t t
31437 s,@mon_sd_password@,$mon_sd_password,;t t
31438 s,@db_name@,$db_name,;t t
31439 s,@db_user@,$db_user,;t t
31440 s,@dir_user@,$dir_user,;t t
31441 s,@dir_group@,$dir_group,;t t
31442 s,@sd_user@,$sd_user,;t t
31443 s,@sd_group@,$sd_group,;t t
31444 s,@fd_user@,$fd_user,;t t
31445 s,@fd_group@,$fd_group,;t t
31446 s,@SBINPERM@,$SBINPERM,;t t
31447 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
31448 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
31449 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
31450 s,@cats@,$cats,;t t
31451 s,@DB_TYPE@,$DB_TYPE,;t t
31452 s,@GETCONF@,$GETCONF,;t t
31453 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
31454 s,@X_CFLAGS@,$X_CFLAGS,;t t
31455 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
31456 s,@X_LIBS@,$X_LIBS,;t t
31457 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
31458 s,@LIBOBJS@,$LIBOBJS,;t t
31459 s,@FDLIBS@,$FDLIBS,;t t
31460 s,@DEBUG@,$DEBUG,;t t
31461 s,@DINCLUDE@,$DINCLUDE,;t t
31462 s,@DLIB@,$DLIB,;t t
31463 s,@DB_LIBS@,$DB_LIBS,;t t
31464 s,@WCFLAGS@,$WCFLAGS,;t t
31465 s,@WLDFLAGS@,$WLDFLAGS,;t t
31466 s,@WRAPLIBS@,$WRAPLIBS,;t t
31467 s,@OBJLIST@,$OBJLIST,;t t
31468 s,@hostname@,$hostname,;t t
31469 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
31470 s,@PSCMD@,$PSCMD,;t t
31471 s,@WIN32@,$WIN32,;t t
31472 s,@MACOSX@,$MACOSX,;t t
31473 s,@DISTNAME@,$DISTNAME,;t t
31474 s,@DISTVER@,$DISTVER,;t t
31475 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
31476 /@MCOMMON@/r $MCOMMON
31482 cat >>$CONFIG_STATUS <<\_ACEOF
31483 # Split the substitutions into bite-sized pieces for seds with
31484 # small command number limits, like on Digital OSF/1 and HP-UX.
31485 ac_max_sed_lines=48
31486 ac_sed_frag=1 # Number of current file.
31487 ac_beg=1 # First line for current file.
31488 ac_end=$ac_max_sed_lines # Line after last line for current file.
31491 while $ac_more_lines; do
31492 if test $ac_beg -gt 1; then
31493 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31495 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31497 if test ! -s $tmp/subs.frag; then
31498 ac_more_lines=false
31500 # The purpose of the label and of the branching condition is to
31501 # speed up the sed processing (if there are no `@' at all, there
31502 # is no need to browse any of the substitutions).
31503 # These are the two extra sed commands mentioned above.
31505 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
31506 if test -z "$ac_sed_cmds"; then
31507 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
31509 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
31511 ac_sed_frag=`expr $ac_sed_frag + 1`
31513 ac_end=`expr $ac_end + $ac_max_sed_lines`
31516 if test -z "$ac_sed_cmds"; then
31519 fi # test -n "$CONFIG_FILES"
31522 cat >>$CONFIG_STATUS <<\_ACEOF
31523 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
31524 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31526 - | *:- | *:-:* ) # input from stdin
31528 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31529 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31530 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31531 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31532 * ) ac_file_in=$ac_file.in ;;
31535 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
31536 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31537 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31538 X"$ac_file" : 'X\(//\)[^/]' \| \
31539 X"$ac_file" : 'X\(//\)$' \| \
31540 X"$ac_file" : 'X\(/\)' \| \
31541 . : '\(.\)' 2>/dev/null ||
31543 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31544 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31545 /^X\(\/\/\)$/{ s//\1/; q; }
31546 /^X\(\/\).*/{ s//\1/; q; }
31548 { if $as_mkdir_p; then
31553 while test ! -d "$as_dir"; do
31554 as_dirs="$as_dir $as_dirs"
31555 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31556 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31557 X"$as_dir" : 'X\(//\)[^/]' \| \
31558 X"$as_dir" : 'X\(//\)$' \| \
31559 X"$as_dir" : 'X\(/\)' \| \
31560 . : '\(.\)' 2>/dev/null ||
31562 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31563 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31564 /^X\(\/\/\)$/{ s//\1/; q; }
31565 /^X\(\/\).*/{ s//\1/; q; }
31568 test ! -n "$as_dirs" || mkdir $as_dirs
31569 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31570 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31571 { (exit 1); exit 1; }; }; }
31575 if test "$ac_dir" != .; then
31576 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31577 # A "../" for each directory in $ac_dir_suffix.
31578 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31580 ac_dir_suffix= ac_top_builddir=
31584 .) # No --srcdir option. We are building in place.
31586 if test -z "$ac_top_builddir"; then
31589 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31591 [\\/]* | ?:[\\/]* ) # Absolute path.
31592 ac_srcdir=$srcdir$ac_dir_suffix;
31593 ac_top_srcdir=$srcdir ;;
31594 *) # Relative path.
31595 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31596 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31599 # Do not use `cd foo && pwd` to compute absolute paths, because
31600 # the directories may not exist.
31602 .) ac_abs_builddir="$ac_dir";;
31605 .) ac_abs_builddir=`pwd`;;
31606 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31607 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31610 case $ac_abs_builddir in
31611 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31613 case ${ac_top_builddir}. in
31614 .) ac_abs_top_builddir=$ac_abs_builddir;;
31615 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31616 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31619 case $ac_abs_builddir in
31620 .) ac_abs_srcdir=$ac_srcdir;;
31623 .) ac_abs_srcdir=$ac_abs_builddir;;
31624 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31625 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31628 case $ac_abs_builddir in
31629 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31631 case $ac_top_srcdir in
31632 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31633 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31634 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31640 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31641 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
31644 if test x"$ac_file" != x-; then
31645 { echo "$as_me:$LINENO: creating $ac_file" >&5
31646 echo "$as_me: creating $ac_file" >&6;}
31649 # Let's still pretend it is `configure' which instantiates (i.e., don't
31650 # use $as_me), people would be surprised to read:
31651 # /* config.h. Generated by config.status. */
31652 if test x"$ac_file" = x-; then
31655 configure_input="$ac_file. "
31657 configure_input=$configure_input"Generated from `echo $ac_file_in |
31658 sed 's,.*/,,'` by configure."
31660 # First look for the input files in the build tree, otherwise in the
31662 ac_file_inputs=`IFS=:
31663 for f in $ac_file_in; do
31665 -) echo $tmp/stdin ;;
31667 # Absolute (can't be DOS-style, as IFS=:)
31668 test -f "$f" || { { 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 if test -f "$f"; then
31676 elif test -f "$srcdir/$f"; then
31681 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31682 echo "$as_me: error: cannot find input file: $f" >&2;}
31683 { (exit 1); exit 1; }; }
31686 done` || { (exit 1); exit 1; }
31688 cat >>$CONFIG_STATUS <<_ACEOF
31692 cat >>$CONFIG_STATUS <<\_ACEOF
31694 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31695 s,@configure_input@,$configure_input,;t t
31696 s,@srcdir@,$ac_srcdir,;t t
31697 s,@abs_srcdir@,$ac_abs_srcdir,;t t
31698 s,@top_srcdir@,$ac_top_srcdir,;t t
31699 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31700 s,@builddir@,$ac_builddir,;t t
31701 s,@abs_builddir@,$ac_abs_builddir,;t t
31702 s,@top_builddir@,$ac_top_builddir,;t t
31703 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31704 s,@INSTALL@,$ac_INSTALL,;t t
31705 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31707 if test x"$ac_file" != x-; then
31708 mv $tmp/out $ac_file
31716 cat >>$CONFIG_STATUS <<\_ACEOF
31719 # CONFIG_HEADER section.
31722 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31723 # NAME is the cpp macro being defined and VALUE is the value it is being given.
31725 # ac_d sets the value in "#define NAME VALUE" lines.
31726 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
31727 ac_dB='[ ].*$,\1#\2'
31730 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
31731 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
31732 ac_uB='$,\1#\2define\3'
31736 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31737 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31739 - | *:- | *:-:* ) # input from stdin
31741 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31742 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31743 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31744 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31745 * ) ac_file_in=$ac_file.in ;;
31748 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31749 echo "$as_me: creating $ac_file" >&6;}
31751 # First look for the input files in the build tree, otherwise in the
31753 ac_file_inputs=`IFS=:
31754 for f in $ac_file_in; do
31756 -) echo $tmp/stdin ;;
31758 # Absolute (can't be DOS-style, as IFS=:)
31759 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31760 echo "$as_me: error: cannot find input file: $f" >&2;}
31761 { (exit 1); exit 1; }; }
31762 # Do quote $f, to prevent DOS paths from being IFS'd.
31765 if test -f "$f"; then
31768 elif test -f "$srcdir/$f"; then
31773 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31774 echo "$as_me: error: cannot find input file: $f" >&2;}
31775 { (exit 1); exit 1; }; }
31778 done` || { (exit 1); exit 1; }
31779 # Remove the trailing spaces.
31780 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
31784 # Transform confdefs.h into two sed scripts, `conftest.defines' and
31785 # `conftest.undefs', that substitutes the proper values into
31786 # config.h.in to produce config.h. The first handles `#define'
31787 # templates, and the second `#undef' templates.
31788 # And first: Protect against being on the right side of a sed subst in
31789 # config.status. Protect against being in an unquoted here document
31790 # in config.status.
31791 rm -f conftest.defines conftest.undefs
31792 # Using a here document instead of a string reduces the quoting nightmare.
31793 # Putting comments in sed scripts is not portable.
31795 # `end' is used to avoid that the second main sed command (meant for
31796 # 0-ary CPP macros) applies to n-ary macro definitions.
31797 # See the Autoconf documentation for `clear'.
31798 cat >confdef2sed.sed <<\_ACEOF
31803 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
31805 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
31808 # If some macros were called several times there might be several times
31809 # the same #defines, which is useless. Nevertheless, we may not want to
31810 # sort them, since we want the *last* AC-DEFINE to be honored.
31811 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31812 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31813 rm -f confdef2sed.sed
31815 # This sed command replaces #undef with comments. This is necessary, for
31816 # example, in the case of _POSIX_SOURCE, which is predefined and required
31817 # on some systems where configure will not decide to define it.
31818 cat >>conftest.undefs <<\_ACEOF
31819 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
31822 # Break up conftest.defines because some shells have a limit on the size
31823 # of here documents, and old seds have small limits too (100 cmds).
31824 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
31825 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
31826 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31827 echo ' :' >>$CONFIG_STATUS
31828 rm -f conftest.tail
31829 while grep . conftest.defines >/dev/null
31831 # Write a limited-size here document to $tmp/defines.sed.
31832 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31833 # Speed up: don't consider the non `#define' lines.
31834 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
31835 # Work around the forget-to-reset-the-flag bug.
31836 echo 't clr' >>$CONFIG_STATUS
31837 echo ': clr' >>$CONFIG_STATUS
31838 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
31840 sed -f $tmp/defines.sed $tmp/in >$tmp/out
31842 mv $tmp/out $tmp/in
31844 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
31845 rm -f conftest.defines
31846 mv conftest.tail conftest.defines
31848 rm -f conftest.defines
31849 echo ' fi # grep' >>$CONFIG_STATUS
31850 echo >>$CONFIG_STATUS
31852 # Break up conftest.undefs because some shells have a limit on the size
31853 # of here documents, and old seds have small limits too (100 cmds).
31854 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
31855 rm -f conftest.tail
31856 while grep . conftest.undefs >/dev/null
31858 # Write a limited-size here document to $tmp/undefs.sed.
31859 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
31860 # Speed up: don't consider the non `#undef'
31861 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
31862 # Work around the forget-to-reset-the-flag bug.
31863 echo 't clr' >>$CONFIG_STATUS
31864 echo ': clr' >>$CONFIG_STATUS
31865 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
31867 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
31869 mv $tmp/out $tmp/in
31871 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
31872 rm -f conftest.undefs
31873 mv conftest.tail conftest.undefs
31875 rm -f conftest.undefs
31877 cat >>$CONFIG_STATUS <<\_ACEOF
31878 # Let's still pretend it is `configure' which instantiates (i.e., don't
31879 # use $as_me), people would be surprised to read:
31880 # /* config.h. Generated by config.status. */
31881 if test x"$ac_file" = x-; then
31882 echo "/* Generated by configure. */" >$tmp/config.h
31884 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
31886 cat $tmp/in >>$tmp/config.h
31888 if test x"$ac_file" != x-; then
31889 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
31890 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31891 echo "$as_me: $ac_file is unchanged" >&6;}
31893 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31894 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31895 X"$ac_file" : 'X\(//\)[^/]' \| \
31896 X"$ac_file" : 'X\(//\)$' \| \
31897 X"$ac_file" : 'X\(/\)' \| \
31898 . : '\(.\)' 2>/dev/null ||
31900 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31901 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31902 /^X\(\/\/\)$/{ s//\1/; q; }
31903 /^X\(\/\).*/{ s//\1/; q; }
31905 { if $as_mkdir_p; then
31910 while test ! -d "$as_dir"; do
31911 as_dirs="$as_dir $as_dirs"
31912 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31913 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31914 X"$as_dir" : 'X\(//\)[^/]' \| \
31915 X"$as_dir" : 'X\(//\)$' \| \
31916 X"$as_dir" : 'X\(/\)' \| \
31917 . : '\(.\)' 2>/dev/null ||
31919 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31920 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31921 /^X\(\/\/\)$/{ s//\1/; q; }
31922 /^X\(\/\).*/{ s//\1/; q; }
31925 test ! -n "$as_dirs" || mkdir $as_dirs
31926 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31927 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31928 { (exit 1); exit 1; }; }; }
31931 mv $tmp/config.h $ac_file
31935 rm -f $tmp/config.h
31939 cat >>$CONFIG_STATUS <<\_ACEOF
31942 # CONFIG_COMMANDS section.
31944 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
31945 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
31946 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
31947 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
31948 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31949 X"$ac_dest" : 'X\(//\)[^/]' \| \
31950 X"$ac_dest" : 'X\(//\)$' \| \
31951 X"$ac_dest" : 'X\(/\)' \| \
31952 . : '\(.\)' 2>/dev/null ||
31954 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31955 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31956 /^X\(\/\/\)$/{ s//\1/; q; }
31957 /^X\(\/\).*/{ s//\1/; q; }
31959 { if $as_mkdir_p; then
31964 while test ! -d "$as_dir"; do
31965 as_dirs="$as_dir $as_dirs"
31966 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31967 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31968 X"$as_dir" : 'X\(//\)[^/]' \| \
31969 X"$as_dir" : 'X\(//\)$' \| \
31970 X"$as_dir" : 'X\(/\)' \| \
31971 . : '\(.\)' 2>/dev/null ||
31973 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31974 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31975 /^X\(\/\/\)$/{ s//\1/; q; }
31976 /^X\(\/\).*/{ s//\1/; q; }
31979 test ! -n "$as_dirs" || mkdir $as_dirs
31980 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31981 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31982 { (exit 1); exit 1; }; }; }
31986 if test "$ac_dir" != .; then
31987 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31988 # A "../" for each directory in $ac_dir_suffix.
31989 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31991 ac_dir_suffix= ac_top_builddir=
31995 .) # No --srcdir option. We are building in place.
31997 if test -z "$ac_top_builddir"; then
32000 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32002 [\\/]* | ?:[\\/]* ) # Absolute path.
32003 ac_srcdir=$srcdir$ac_dir_suffix;
32004 ac_top_srcdir=$srcdir ;;
32005 *) # Relative path.
32006 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32007 ac_top_srcdir=$ac_top_builddir$srcdir ;;
32010 # Do not use `cd foo && pwd` to compute absolute paths, because
32011 # the directories may not exist.
32013 .) ac_abs_builddir="$ac_dir";;
32016 .) ac_abs_builddir=`pwd`;;
32017 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32018 *) ac_abs_builddir=`pwd`/"$ac_dir";;
32021 case $ac_abs_builddir in
32022 .) ac_abs_top_builddir=${ac_top_builddir}.;;
32024 case ${ac_top_builddir}. in
32025 .) ac_abs_top_builddir=$ac_abs_builddir;;
32026 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32027 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32030 case $ac_abs_builddir in
32031 .) ac_abs_srcdir=$ac_srcdir;;
32034 .) ac_abs_srcdir=$ac_abs_builddir;;
32035 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32036 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32039 case $ac_abs_builddir in
32040 .) ac_abs_top_srcdir=$ac_top_srcdir;;
32042 case $ac_top_srcdir in
32043 .) ac_abs_top_srcdir=$ac_abs_builddir;;
32044 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32045 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32050 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
32051 echo "$as_me: executing $ac_dest commands" >&6;}
32054 for ac_file in $CONFIG_FILES; do
32055 # Support "outfile[:infile[:infile...]]"
32057 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
32059 # PO directories have a Makefile.in generated from Makefile.in.in.
32060 case "$ac_file" in */Makefile.in)
32061 # Adjust a relative srcdir.
32062 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
32063 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
32064 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
32065 # In autoconf-2.13 it is called $ac_given_srcdir.
32066 # In autoconf-2.50 it is called $srcdir.
32067 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
32068 case "$ac_given_srcdir" in
32069 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
32070 /*) top_srcdir="$ac_given_srcdir" ;;
32071 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
32073 # Treat a directory as a PO directory if and only if it has a
32074 # POTFILES.in file. This allows packages to have multiple PO
32075 # directories under different names or in different locations.
32076 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
32077 rm -f "$ac_dir/POTFILES"
32078 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
32079 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
32080 POMAKEFILEDEPS="POTFILES.in"
32081 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
32082 # on $ac_dir but don't depend on user-specified configuration
32084 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
32085 # The LINGUAS file contains the set of available languages.
32086 if test -n "$OBSOLETE_ALL_LINGUAS"; then
32087 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
32089 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
32090 # Hide the ALL_LINGUAS assigment from automake.
32091 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
32092 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
32094 # The set of available languages was given in configure.in.
32095 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
32098 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
32099 # Compute UPDATEPOFILES
32100 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
32101 # Compute DUMMYPOFILES
32102 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
32104 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
32105 case "$ac_given_srcdir" in
32107 *) srcdirpre='$(srcdir)/' ;;
32113 for lang in $ALL_LINGUAS; do
32114 POFILES="$POFILES $srcdirpre$lang.po"
32115 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
32116 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
32117 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
32119 # CATALOGS depends on both $ac_dir and the user's LINGUAS
32120 # environment variable.
32122 if test -n "$ALL_LINGUAS"; then
32123 for presentlang in $ALL_LINGUAS; do
32125 if test "%UNSET%" != "$LINGUAS"; then
32126 desiredlanguages="$LINGUAS"
32128 desiredlanguages="$ALL_LINGUAS"
32130 for desiredlang in $desiredlanguages; do
32131 # Use the presentlang catalog if desiredlang is
32132 # a. equal to presentlang, or
32133 # b. a variant of presentlang (because in this case,
32134 # presentlang can be used as a fallback for messages
32135 # which are not translated in the desiredlang catalog).
32136 case "$desiredlang" in
32137 "$presentlang"*) useit=yes;;
32140 if test $useit = yes; then
32141 INST_LINGUAS="$INST_LINGUAS $presentlang"
32146 if test -n "$INST_LINGUAS"; then
32147 for lang in $INST_LINGUAS; do
32148 CATALOGS="$CATALOGS $lang.gmo"
32151 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
32152 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"
32153 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
32154 if test -f "$f"; then
32156 *.orig | *.bak | *~) ;;
32157 *) cat "$f" >> "$ac_dir/Makefile" ;;
32171 cat >>$CONFIG_STATUS <<\_ACEOF
32173 { (exit 0); exit 0; }
32175 chmod +x $CONFIG_STATUS
32176 ac_clean_files=$ac_clean_files_save
32179 # configure is writing to config.log, and then calls config.status.
32180 # config.status does its own redirection, appending to config.log.
32181 # Unfortunately, on DOS this fails, as config.log is still kept open
32182 # by configure, so config.status won't be able to write to it; its
32183 # output is simply discarded. So we exec the FD to /dev/null,
32184 # effectively closing config.log, so it can be properly (re)opened and
32185 # appended to by config.status. When coming back to configure, we
32186 # need to make the FD available again.
32187 if test "$no_create" != yes; then
32189 ac_config_status_args=
32190 test "$silent" = yes &&
32191 ac_config_status_args="$ac_config_status_args --quiet"
32193 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32195 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32196 # would make configure fail if this is the last instruction.
32197 $ac_cs_success || { (exit 1); exit 1; }
32201 if test "${support_bat}" = "yes" ; then
32202 if test "x$QMAKE" = "xnone" && test "x$QMAKEQT4" = "xnone"; then
32203 echo "Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation"
32209 if test "x$QMAKEQT4" != "xnone"; then
32216 chmod 755 install_conf_file build-depkgs-qt-console
32217 echo "Creating bat Makefile"
32222 echo "Doing make of dependencies"
32223 ${MAKE:-make} depend
32226 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
32227 chmod 755 dvd-handler dvd-simulator
32228 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
32233 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
32234 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
32236 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
32237 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
32239 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
32240 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
32242 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
32243 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
32245 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
32246 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
32248 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
32249 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
32251 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
32252 chmod 755 $c/sqlite
32255 chmod 755 src/win32/build-depkgs-mingw32
32259 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
32260 largefile_support="yes"
32264 # A whole lot of hand springs to get the compiler version.
32265 # This is because gcc changed the output in version 3.0
32267 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32268 if test "x${CCVERSION}" = "x" ; then
32269 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32271 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32272 if test x"${CXXVERSION}" = x ; then
32273 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32276 if test "x${subsysdir}" = "x${sbindir}" ; then
32279 echo "You have set --sbindir and --with-subsys-dir"
32280 echo " both equal to: ${subsysdir} "
32281 echo " This is not permitted. Please reconfigure."
32283 echo "Aborting configuration ..."
32289 if test "x${db_type}" = "xInternal" ; then
32292 echo "You have not specified either --enable-client-only or one of the"
32293 echo " supported databases: MySQL, PostgreSQL, SQLite3 or SQLite."
32294 echo " This is not permitted. Please reconfigure."
32296 echo "Aborting the configuration ..."
32303 Configuration on `date`:
32305 Host: $host -- ${DISTNAME} ${DISTVER}
32306 Bacula version: ${VERSION} (${DATE})
32307 Source code location: ${srcdir}
32308 Install binaries: ${sbindir}
32309 Install config files: ${sysconfdir}
32310 Scripts directory: ${scriptdir}
32311 Archive directory: ${archivedir}
32312 Working directory: ${working_dir}
32313 PID directory: ${piddir}
32314 Subsys directory: ${subsysdir}
32315 Man directory: ${mandir}
32316 Data directory: ${datadir}
32317 C Compiler: ${CC} ${CCVERSION}
32318 C++ Compiler: ${CXX} ${CXXVERSION}
32319 Compiler flags: ${WCFLAGS} ${CFLAGS}
32320 Linker flags: ${WLDFLAGS} ${LDFLAGS}
32322 Statically Linked Tools: ${support_static_tools}
32323 Statically Linked FD: ${support_static_fd}
32324 Statically Linked SD: ${support_static_sd}
32325 Statically Linked DIR: ${support_static_dir}
32326 Statically Linked CONS: ${support_static_cons}
32327 Database type: ${db_type}
32328 Database lib: ${DB_LIBS}
32329 Database name: ${db_name}
32330 Database user: ${db_user}
32332 Job Output Email: ${job_email}
32333 Traceback Email: ${dump_email}
32334 SMTP Host Address: ${smtp_host}
32336 Director Port: ${dir_port}
32337 File daemon Port: ${fd_port}
32338 Storage daemon Port: ${sd_port}
32340 Director User: ${dir_user}
32341 Director Group: ${dir_group}
32342 Storage Daemon User: ${sd_user}
32343 Storage DaemonGroup: ${sd_group}
32344 File Daemon User: ${fd_user}
32345 File Daemon Group: ${fd_group}
32347 SQL binaries Directory ${SQL_BINDIR}
32349 Large file support: $largefile_support
32350 Bacula conio support: ${got_conio} ${CONS_LIBS}
32351 readline support: ${got_readline} ${PRTREADLINE_SRC}
32352 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
32353 TLS support: ${support_tls}
32354 Encryption support: ${support_crypto}
32355 ZLIB support: ${have_zlib}
32356 enable-smartalloc: ${support_smartalloc}
32357 bat support: ${support_bat} ${QWT_LDFLAGS}
32358 enable-gnome: ${support_gnome} ${gnome_version}
32359 enable-bwx-console: ${support_wx_console} ${wx_version}
32360 enable-tray-monitor: ${support_tray_monitor}
32361 client-only: ${build_client_only}
32362 build-dird: ${build_dird}
32363 build-stored: ${build_stored}
32364 ACL support: ${have_acl}
32365 Python support: ${support_python} ${PYTHON_LIBS}
32366 Batch insert enabled: ${support_batch_insert}