2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file="src/version.h"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS BUILD_DIR TOP_DIR TRUEPRG FALSEPRG VERSION DATE LSMDATE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB MV RM CP SED ECHO CMP TBL AR OPENSSL MTX DD MKISOFS PYTHON GROWISOFS DVDRWMEDIAINFO DVDRWFORMAT PKGCONFIG WXCONFIG WXFLAGS CDRECORD PIDOF AWK ARFLAGS MAKE_SHELL LOCAL_LIBS LOCAL_CFLAGS LOCAL_LDFLAGS LOCAL_DEFS build build_cpu build_vendor build_os host host_cpu host_vendor host_os HAVE_SUN_OS_TRUE HAVE_SUN_OS_FALSE HAVE_OSF1_OS_TRUE HAVE_OSF1_OS_FALSE HAVE_AIX_OS_TRUE HAVE_AIX_OS_FALSE HAVE_HPUX_OS_TRUE HAVE_HPUX_OS_FALSE HAVE_LINUX_OS_TRUE HAVE_LINUX_OS_FALSE HAVE_FREEBSD_OS_TRUE HAVE_FREEBSD_OS_FALSE HAVE_NETBSD_OS_TRUE HAVE_NETBSD_OS_FALSE HAVE_OPENBSD_OS_TRUE HAVE_OPENBSD_OS_FALSE HAVE_BSDI_OS_TRUE HAVE_BSDI_OS_FALSE HAVE_SGI_OS_TRUE HAVE_SGI_OS_FALSE HAVE_IRIX_OS_TRUE HAVE_IRIX_OS_FALSE HAVE_DARWIN_OS_TRUE HAVE_DARWIN_OS_FALSE SET_MAKE MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE INTL_MACOSX_LIBS LIBICONV LTLIBICONV INTLLIBS LIBINTL LTLIBINTL POSUB GLIBC2 ALLOCA GLIBC21 HAVE_POSIX_PRINTF HAVE_ASPRINTF HAVE_SNPRINTF HAVE_WPRINTF INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT DATADIRNAME INSTOBJEXT GENCAT INTLOBJS INTL_LIBTOOL_SUFFIX_PREFIX GNOME_INCLUDEDIR GNOMEUI_LIBS GNOME_LIBDIR GNOME_LIBS GNOME_DIR 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 dir_user dir_group sd_user sd_group fd_user fd_group SBINPERM SQL_LFLAGS SQL_INCLUDE SQL_BINDIR cats DB_NAME GETCONF ac_ct_GETCONF X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LIBOBJS 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 gnome-console GUI disabled
870 --enable-wx-console enable build of wxWidgets console disabled
871 --enable-tray-monitor enable build of Gnome tray monitor (compatible with KDE) disabled
872 --enable-smartalloc enable smartalloc debugging support disabled
873 --enable-static-tools enable static tape tools disabled
874 --enable-static-fd enable static File daemon disabled
875 --enable-static-sd enable static Storage daemon disabled
876 --enable-static-dir enable static Director disabled
877 --enable-static-cons enable static Console disabled
878 --enable-client-only build client (File daemon) only disabled
879 --enable-build-dird enable building of dird (Director) enabled
880 --enable-build-stored enable building of stored (Storage daemon) enabled
881 --disable-conio disable conio support enabled
883 --disable-readline disable readline support disable
885 --disable-largefile omit support for large files
888 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
889 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
890 --with-gnu-ld assume the C compiler uses GNU ld default=no
891 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
892 --without-libiconv-prefix don't search for libiconv in includedir and libdir
893 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
894 --without-libintl-prefix don't search for libintl in includedir and libdir
895 --with-included-gettext use the GNU gettext library included here
896 --with-readline=DIR specify readline library directory
898 --with-python=DIR Include Python support. DIR is the Python base
899 install directory, default is to search through
900 a number of common places for the Python files.
901 --with-tcp-wrappers=DIR enable tcpwrappers support
903 Include OpenSSL support. DIR is the OpenSSL base
904 --with-working-dir=PATH specify path of Bacula working directory
905 --with-scriptdir=PATH specify path of Bacula scripts directory
906 --with-dump-email=EMAIL dump email address
907 --with-job-email=EMAIL job output email address
908 --with-smtp-host=HOST SMTP mail host address
909 --with-pid-dir=PATH specify location of Bacula pid files
910 --with-subsys-dir=PATH specify location of Bacula subsys file
911 --with-baseport=PORT specify base port address for daemons
912 --with-dir-password=PASSWORD specify Director's password
913 --with-fd-password=PASSWORD specify Client's password
914 --with-sd-password=PASSWORD specify Storage daemon's password
915 --with-mon-dir-password=PASSWORD specify Director's password used by the monitor
916 --with-mon-fd-password=PASSWORD specify Client's password used by the monitor
917 --with-mon-sd-password=PASSWORD specify Storage daemon's password used by the monitor
918 --with-dir-user=USER specify user for Director daemon
919 --with-dir-group=GROUP specify group for Director daemon
920 --with-sd-user=USER specify user for Storage daemon
921 --with-sd-group=GROUP specify group for Storage daemon
922 --with-fd-user=USER specify user for File daemon
923 --with-fd-group=GROUP specify group for File daemon
924 --with-sbin-perm=MODE specify permissions for sbin binaries (0754)
925 --with-postgresql=DIR Include PostgreSQL support. DIR is the PostgreSQL
926 base install directory, defaults to /usr/local/pgsql
928 --with-mysql=DIR Include MySQL support. DIR is the MySQL base
929 install directory, default is to search through
930 a number of common places for the MySQL files.
932 --with-embedded-mysql=DIR Include MySQL support. DIR is the MySQL base
933 install directory, default is to search through
934 a number of common places for the MySQL files.
936 --with-sqlite3=DIR Include SQLite3 support. DIR is the SQLite3 base
937 install directory, default is to search through
938 a number of common places for the SQLite3 files.
940 --with-sqlite=DIR Include SQLite support. DIR is the SQLite base
941 install directory, default is to search through
942 a number of common places for the SQLite files.
943 --with-x use the X Window System
945 Some influential environment variables:
946 CC C compiler command
947 CFLAGS C compiler flags
948 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
949 nonstandard directory <lib dir>
950 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
951 headers in a nonstandard directory <include dir>
952 CXX C++ compiler command
953 CXXFLAGS C++ compiler flags
955 WXCONFIG wx-config command. On some systems, you must set it to
956 wx-config-2.6 to use wxWidgets 2.6.
957 WXFLAGS Parameters to pass to wx-config (e.g. --unicode=no).
959 Use these variables to override the choices made by `configure' or to help
960 it to find libraries and programs with nonstandard names/locations.
965 if test "$ac_init_help" = "recursive"; then
966 # If there are subdirs, report their specific --help.
968 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
969 test -d $ac_dir || continue
972 if test "$ac_dir" != .; then
973 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
974 # A "../" for each directory in $ac_dir_suffix.
975 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
977 ac_dir_suffix= ac_top_builddir=
981 .) # No --srcdir option. We are building in place.
983 if test -z "$ac_top_builddir"; then
986 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
988 [\\/]* | ?:[\\/]* ) # Absolute path.
989 ac_srcdir=$srcdir$ac_dir_suffix;
990 ac_top_srcdir=$srcdir ;;
992 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
993 ac_top_srcdir=$ac_top_builddir$srcdir ;;
996 # Do not use `cd foo && pwd` to compute absolute paths, because
997 # the directories may not exist.
999 .) ac_abs_builddir="$ac_dir";;
1002 .) ac_abs_builddir=`pwd`;;
1003 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1004 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1007 case $ac_abs_builddir in
1008 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1010 case ${ac_top_builddir}. in
1011 .) ac_abs_top_builddir=$ac_abs_builddir;;
1012 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1013 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1016 case $ac_abs_builddir in
1017 .) ac_abs_srcdir=$ac_srcdir;;
1020 .) ac_abs_srcdir=$ac_abs_builddir;;
1021 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1022 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1025 case $ac_abs_builddir in
1026 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1028 case $ac_top_srcdir in
1029 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1030 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1031 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1036 # Check for guested configure; otherwise get Cygnus style configure.
1037 if test -f $ac_srcdir/configure.gnu; then
1039 $SHELL $ac_srcdir/configure.gnu --help=recursive
1040 elif test -f $ac_srcdir/configure; then
1042 $SHELL $ac_srcdir/configure --help=recursive
1043 elif test -f $ac_srcdir/configure.ac ||
1044 test -f $ac_srcdir/configure.in; then
1046 $ac_configure --help
1048 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1054 test -n "$ac_init_help" && exit 0
1055 if $ac_init_version; then
1058 Copyright (C) 2003 Free Software Foundation, Inc.
1059 This configure script is free software; the Free Software Foundation
1060 gives unlimited permission to copy, distribute and modify it.
1066 This file contains any messages produced by compilers while
1067 running configure, to aid debugging if configure makes a mistake.
1069 It was created by $as_me, which was
1070 generated by GNU Autoconf 2.59. Invocation command line was
1081 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1082 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1083 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1084 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1085 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1087 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1088 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1090 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1091 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1092 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1093 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1094 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1095 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1096 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1104 test -z "$as_dir" && as_dir=.
1105 echo "PATH: $as_dir"
1120 # Keep a trace of the command line.
1121 # Strip out --no-create and --no-recursion so they do not pile up.
1122 # Strip out --silent because we don't want to record it for future runs.
1123 # Also quote any args containing shell meta-characters.
1124 # Make two passes to allow for proper duplicate-argument suppression.
1129 ac_must_keep_next=false
1135 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1136 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1137 | -silent | --silent | --silen | --sile | --sil)
1139 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1140 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1143 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1145 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1146 if test $ac_must_keep_next = true; then
1147 ac_must_keep_next=false # Got value, back to normal.
1150 *=* | --config-cache | -C | -disable-* | --disable-* \
1151 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1152 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1153 | -with-* | --with-* | -without-* | --without-* | --x)
1154 case "$ac_configure_args0 " in
1155 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1158 -* ) ac_must_keep_next=true ;;
1161 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1162 # Get rid of the leading space.
1168 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1169 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1171 # When interrupted or exit'd, cleanup temporary files, and complete
1172 # config.log. We remove comments because anyway the quotes in there
1173 # would cause problems or look ugly.
1174 # WARNING: Be sure not to use single quotes in there, as some shells,
1175 # such as our DU 5.0 friend, will then `close' the trap.
1176 trap 'exit_status=$?
1177 # Save into config.log some information that might help in debugging.
1182 ## ---------------- ##
1183 ## Cache variables. ##
1184 ## ---------------- ##
1187 # The following way of writing the cache mishandles newlines in values,
1190 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1193 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1194 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1198 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1205 ## ----------------- ##
1206 ## Output variables. ##
1207 ## ----------------- ##
1210 for ac_var in $ac_subst_vars
1212 eval ac_val=$`echo $ac_var`
1213 echo "$ac_var='"'"'$ac_val'"'"'"
1217 if test -n "$ac_subst_files"; then
1224 for ac_var in $ac_subst_files
1226 eval ac_val=$`echo $ac_var`
1227 echo "$ac_var='"'"'$ac_val'"'"'"
1232 if test -s confdefs.h; then
1239 sed "/^$/d" confdefs.h | sort
1242 test "$ac_signal" != 0 &&
1243 echo "$as_me: caught signal $ac_signal"
1244 echo "$as_me: exit $exit_status"
1246 rm -f core *.core &&
1247 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1250 for ac_signal in 1 2 13 15; do
1251 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1255 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1256 rm -rf conftest* confdefs.h
1257 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1260 # Predefined preprocessor variables.
1262 cat >>confdefs.h <<_ACEOF
1263 #define PACKAGE_NAME "$PACKAGE_NAME"
1267 cat >>confdefs.h <<_ACEOF
1268 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1272 cat >>confdefs.h <<_ACEOF
1273 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1277 cat >>confdefs.h <<_ACEOF
1278 #define PACKAGE_STRING "$PACKAGE_STRING"
1282 cat >>confdefs.h <<_ACEOF
1283 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1287 # Let the site file select an alternate cache file if it wants to.
1288 # Prefer explicitly selected file to automatically selected ones.
1289 if test -z "$CONFIG_SITE"; then
1290 if test "x$prefix" != xNONE; then
1291 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1293 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1296 for ac_site_file in $CONFIG_SITE; do
1297 if test -r "$ac_site_file"; then
1298 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1299 echo "$as_me: loading site script $ac_site_file" >&6;}
1300 sed 's/^/| /' "$ac_site_file" >&5
1305 if test -r "$cache_file"; then
1306 # Some versions of bash will fail to source /dev/null (special
1307 # files actually), so we avoid doing that.
1308 if test -f "$cache_file"; then
1309 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1310 echo "$as_me: loading cache $cache_file" >&6;}
1312 [\\/]* | ?:[\\/]* ) . $cache_file;;
1313 *) . ./$cache_file;;
1317 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1318 echo "$as_me: creating cache $cache_file" >&6;}
1322 # Check that the precious variables saved in the cache have kept the same
1324 ac_cache_corrupted=false
1325 for ac_var in `(set) 2>&1 |
1326 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1327 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1328 eval ac_new_set=\$ac_env_${ac_var}_set
1329 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1330 eval ac_new_val="\$ac_env_${ac_var}_value"
1331 case $ac_old_set,$ac_new_set in
1333 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1334 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1335 ac_cache_corrupted=: ;;
1337 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1338 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1339 ac_cache_corrupted=: ;;
1342 if test "x$ac_old_val" != "x$ac_new_val"; then
1343 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1344 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1345 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1346 echo "$as_me: former value: $ac_old_val" >&2;}
1347 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1348 echo "$as_me: current value: $ac_new_val" >&2;}
1349 ac_cache_corrupted=:
1352 # Pass precious variables to config.status.
1353 if test "$ac_new_set" = set; then
1355 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1356 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1357 *) ac_arg=$ac_var=$ac_new_val ;;
1359 case " $ac_configure_args " in
1360 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1361 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1365 if $ac_cache_corrupted; then
1366 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1367 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1368 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1369 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1370 { (exit 1); exit 1; }; }
1374 ac_cpp='$CPP $CPPFLAGS'
1375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1404 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1405 if test -f $ac_dir/install-sh; then
1407 ac_install_sh="$ac_aux_dir/install-sh -c"
1409 elif test -f $ac_dir/install.sh; then
1411 ac_install_sh="$ac_aux_dir/install.sh -c"
1413 elif test -f $ac_dir/shtool; then
1415 ac_install_sh="$ac_aux_dir/shtool install -c"
1419 if test -z "$ac_aux_dir"; then
1420 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1421 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1422 { (exit 1); exit 1; }; }
1424 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1425 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1426 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1428 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1436 # Extract the first word of "$ac_prog", so it can be a program name with args.
1437 set dummy $ac_prog; ac_word=$2
1438 echo "$as_me:$LINENO: checking for $ac_word" >&5
1439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1440 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1441 echo $ECHO_N "(cached) $ECHO_C" >&6
1445 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1452 test -z "$as_dir" && as_dir=.
1453 for ac_exec_ext in '' $ac_executable_extensions; do
1454 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1455 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1465 TRUEPRG=$ac_cv_path_TRUEPRG
1467 if test -n "$TRUEPRG"; then
1468 echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1469 echo "${ECHO_T}$TRUEPRG" >&6
1471 echo "$as_me:$LINENO: result: no" >&5
1472 echo "${ECHO_T}no" >&6
1475 test -n "$TRUEPRG" && break
1477 test -n "$TRUEPRG" || TRUEPRG=":"
1479 for ac_prog in false
1481 # Extract the first word of "$ac_prog", so it can be a program name with args.
1482 set dummy $ac_prog; ac_word=$2
1483 echo "$as_me:$LINENO: checking for $ac_word" >&5
1484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1485 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1486 echo $ECHO_N "(cached) $ECHO_C" >&6
1490 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1497 test -z "$as_dir" && as_dir=.
1498 for ac_exec_ext in '' $ac_executable_extensions; do
1499 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1500 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1510 FALSEPRG=$ac_cv_path_FALSEPRG
1512 if test -n "$FALSEPRG"; then
1513 echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1514 echo "${ECHO_T}$FALSEPRG" >&6
1516 echo "$as_me:$LINENO: result: no" >&5
1517 echo "${ECHO_T}no" >&6
1520 test -n "$FALSEPRG" && break
1522 test -n "$FALSEPRG" || FALSEPRG=":"
1527 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1528 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1529 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1530 echo "configuring for bacula $VERSION ($DATE)"
1535 ac_cpp='$CPP $CPPFLAGS'
1536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1539 if test -n "$ac_tool_prefix"; then
1540 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1541 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1542 echo "$as_me:$LINENO: checking for $ac_word" >&5
1543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1544 if test "${ac_cv_prog_CC+set}" = set; then
1545 echo $ECHO_N "(cached) $ECHO_C" >&6
1547 if test -n "$CC"; then
1548 ac_cv_prog_CC="$CC" # Let the user override the test.
1550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1554 test -z "$as_dir" && as_dir=.
1555 for ac_exec_ext in '' $ac_executable_extensions; do
1556 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1557 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1567 if test -n "$CC"; then
1568 echo "$as_me:$LINENO: result: $CC" >&5
1569 echo "${ECHO_T}$CC" >&6
1571 echo "$as_me:$LINENO: result: no" >&5
1572 echo "${ECHO_T}no" >&6
1576 if test -z "$ac_cv_prog_CC"; then
1578 # Extract the first word of "gcc", so it can be a program name with args.
1579 set dummy gcc; ac_word=$2
1580 echo "$as_me:$LINENO: checking for $ac_word" >&5
1581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1582 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1583 echo $ECHO_N "(cached) $ECHO_C" >&6
1585 if test -n "$ac_ct_CC"; then
1586 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1592 test -z "$as_dir" && as_dir=.
1593 for ac_exec_ext in '' $ac_executable_extensions; do
1594 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1595 ac_cv_prog_ac_ct_CC="gcc"
1596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1604 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1605 if test -n "$ac_ct_CC"; then
1606 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1607 echo "${ECHO_T}$ac_ct_CC" >&6
1609 echo "$as_me:$LINENO: result: no" >&5
1610 echo "${ECHO_T}no" >&6
1618 if test -z "$CC"; then
1619 if test -n "$ac_tool_prefix"; then
1620 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1621 set dummy ${ac_tool_prefix}cc; ac_word=$2
1622 echo "$as_me:$LINENO: checking for $ac_word" >&5
1623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1624 if test "${ac_cv_prog_CC+set}" = set; then
1625 echo $ECHO_N "(cached) $ECHO_C" >&6
1627 if test -n "$CC"; then
1628 ac_cv_prog_CC="$CC" # Let the user override the test.
1630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1634 test -z "$as_dir" && as_dir=.
1635 for ac_exec_ext in '' $ac_executable_extensions; do
1636 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1637 ac_cv_prog_CC="${ac_tool_prefix}cc"
1638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1647 if test -n "$CC"; then
1648 echo "$as_me:$LINENO: result: $CC" >&5
1649 echo "${ECHO_T}$CC" >&6
1651 echo "$as_me:$LINENO: result: no" >&5
1652 echo "${ECHO_T}no" >&6
1656 if test -z "$ac_cv_prog_CC"; then
1658 # Extract the first word of "cc", so it can be a program name with args.
1659 set dummy cc; ac_word=$2
1660 echo "$as_me:$LINENO: checking for $ac_word" >&5
1661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1662 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1663 echo $ECHO_N "(cached) $ECHO_C" >&6
1665 if test -n "$ac_ct_CC"; then
1666 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1672 test -z "$as_dir" && as_dir=.
1673 for ac_exec_ext in '' $ac_executable_extensions; do
1674 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1675 ac_cv_prog_ac_ct_CC="cc"
1676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1684 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1685 if test -n "$ac_ct_CC"; then
1686 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1687 echo "${ECHO_T}$ac_ct_CC" >&6
1689 echo "$as_me:$LINENO: result: no" >&5
1690 echo "${ECHO_T}no" >&6
1699 if test -z "$CC"; then
1700 # Extract the first word of "cc", so it can be a program name with args.
1701 set dummy cc; ac_word=$2
1702 echo "$as_me:$LINENO: checking for $ac_word" >&5
1703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1704 if test "${ac_cv_prog_CC+set}" = set; then
1705 echo $ECHO_N "(cached) $ECHO_C" >&6
1707 if test -n "$CC"; then
1708 ac_cv_prog_CC="$CC" # Let the user override the test.
1711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1715 test -z "$as_dir" && as_dir=.
1716 for ac_exec_ext in '' $ac_executable_extensions; do
1717 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1718 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1719 ac_prog_rejected=yes
1723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1729 if test $ac_prog_rejected = yes; then
1730 # We found a bogon in the path, so make sure we never use it.
1731 set dummy $ac_cv_prog_CC
1733 if test $# != 0; then
1734 # We chose a different compiler from the bogus one.
1735 # However, it has the same basename, so the bogon will be chosen
1736 # first if we set CC to just the basename; use the full file name.
1738 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1744 if test -n "$CC"; then
1745 echo "$as_me:$LINENO: result: $CC" >&5
1746 echo "${ECHO_T}$CC" >&6
1748 echo "$as_me:$LINENO: result: no" >&5
1749 echo "${ECHO_T}no" >&6
1753 if test -z "$CC"; then
1754 if test -n "$ac_tool_prefix"; then
1757 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1758 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1759 echo "$as_me:$LINENO: checking for $ac_word" >&5
1760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1761 if test "${ac_cv_prog_CC+set}" = set; then
1762 echo $ECHO_N "(cached) $ECHO_C" >&6
1764 if test -n "$CC"; then
1765 ac_cv_prog_CC="$CC" # Let the user override the test.
1767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1771 test -z "$as_dir" && as_dir=.
1772 for ac_exec_ext in '' $ac_executable_extensions; do
1773 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1774 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1784 if test -n "$CC"; then
1785 echo "$as_me:$LINENO: result: $CC" >&5
1786 echo "${ECHO_T}$CC" >&6
1788 echo "$as_me:$LINENO: result: no" >&5
1789 echo "${ECHO_T}no" >&6
1792 test -n "$CC" && break
1795 if test -z "$CC"; then
1799 # Extract the first word of "$ac_prog", so it can be a program name with args.
1800 set dummy $ac_prog; ac_word=$2
1801 echo "$as_me:$LINENO: checking for $ac_word" >&5
1802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1803 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1804 echo $ECHO_N "(cached) $ECHO_C" >&6
1806 if test -n "$ac_ct_CC"; then
1807 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1813 test -z "$as_dir" && as_dir=.
1814 for ac_exec_ext in '' $ac_executable_extensions; do
1815 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1816 ac_cv_prog_ac_ct_CC="$ac_prog"
1817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1825 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1826 if test -n "$ac_ct_CC"; then
1827 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1828 echo "${ECHO_T}$ac_ct_CC" >&6
1830 echo "$as_me:$LINENO: result: no" >&5
1831 echo "${ECHO_T}no" >&6
1834 test -n "$ac_ct_CC" && break
1843 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1844 See \`config.log' for more details." >&5
1845 echo "$as_me: error: no acceptable C compiler found in \$PATH
1846 See \`config.log' for more details." >&2;}
1847 { (exit 1); exit 1; }; }
1849 # Provide some information about the compiler.
1850 echo "$as_me:$LINENO:" \
1851 "checking for C compiler version" >&5
1852 ac_compiler=`set X $ac_compile; echo $2`
1853 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1854 (eval $ac_compiler --version </dev/null >&5) 2>&5
1856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1857 (exit $ac_status); }
1858 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1859 (eval $ac_compiler -v </dev/null >&5) 2>&5
1861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1862 (exit $ac_status); }
1863 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1864 (eval $ac_compiler -V </dev/null >&5) 2>&5
1866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1867 (exit $ac_status); }
1869 cat >conftest.$ac_ext <<_ACEOF
1872 cat confdefs.h >>conftest.$ac_ext
1873 cat >>conftest.$ac_ext <<_ACEOF
1874 /* end confdefs.h. */
1884 ac_clean_files_save=$ac_clean_files
1885 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1886 # Try to create an executable without -o first, disregard a.out.
1887 # It will help us diagnose broken compilers, and finding out an intuition
1889 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1890 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1891 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1892 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1893 (eval $ac_link_default) 2>&5
1895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1896 (exit $ac_status); }; then
1897 # Find the output, starting from the most likely. This scheme is
1898 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1901 # Be careful to initialize this variable, since it used to be cached.
1902 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1904 # b.out is created by i960 compilers.
1905 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1907 test -f "$ac_file" || continue
1909 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1912 # This is the source file.
1915 # We found the default executable, but exeext='' is most
1919 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1920 # FIXME: I believe we export ac_cv_exeext for Libtool,
1921 # but it would be cool to find out if it's true. Does anybody
1922 # maintain Libtool? --akim.
1930 echo "$as_me: failed program was:" >&5
1931 sed 's/^/| /' conftest.$ac_ext >&5
1933 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1934 See \`config.log' for more details." >&5
1935 echo "$as_me: error: C compiler cannot create executables
1936 See \`config.log' for more details." >&2;}
1937 { (exit 77); exit 77; }; }
1940 ac_exeext=$ac_cv_exeext
1941 echo "$as_me:$LINENO: result: $ac_file" >&5
1942 echo "${ECHO_T}$ac_file" >&6
1944 # Check the compiler produces executables we can run. If not, either
1945 # the compiler is broken, or we cross compile.
1946 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1947 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1948 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1949 # If not cross compiling, check that we can run a simple program.
1950 if test "$cross_compiling" != yes; then
1951 if { ac_try='./$ac_file'
1952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1956 (exit $ac_status); }; }; then
1959 if test "$cross_compiling" = maybe; then
1962 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1963 If you meant to cross compile, use \`--host'.
1964 See \`config.log' for more details." >&5
1965 echo "$as_me: error: cannot run C compiled programs.
1966 If you meant to cross compile, use \`--host'.
1967 See \`config.log' for more details." >&2;}
1968 { (exit 1); exit 1; }; }
1972 echo "$as_me:$LINENO: result: yes" >&5
1973 echo "${ECHO_T}yes" >&6
1975 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1976 ac_clean_files=$ac_clean_files_save
1977 # Check the compiler produces executables we can run. If not, either
1978 # the compiler is broken, or we cross compile.
1979 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1980 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1981 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1982 echo "${ECHO_T}$cross_compiling" >&6
1984 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1985 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1987 (eval $ac_link) 2>&5
1989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1990 (exit $ac_status); }; then
1991 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1992 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1993 # work properly (i.e., refer to `conftest.exe'), while it won't with
1995 for ac_file in conftest.exe conftest conftest.*; do
1996 test -f "$ac_file" || continue
1998 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1999 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2006 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2007 See \`config.log' for more details." >&5
2008 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2009 See \`config.log' for more details." >&2;}
2010 { (exit 1); exit 1; }; }
2013 rm -f conftest$ac_cv_exeext
2014 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2015 echo "${ECHO_T}$ac_cv_exeext" >&6
2017 rm -f conftest.$ac_ext
2018 EXEEXT=$ac_cv_exeext
2020 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2021 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2022 if test "${ac_cv_objext+set}" = set; then
2023 echo $ECHO_N "(cached) $ECHO_C" >&6
2025 cat >conftest.$ac_ext <<_ACEOF
2028 cat confdefs.h >>conftest.$ac_ext
2029 cat >>conftest.$ac_ext <<_ACEOF
2030 /* end confdefs.h. */
2040 rm -f conftest.o conftest.obj
2041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2042 (eval $ac_compile) 2>&5
2044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2045 (exit $ac_status); }; then
2046 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2048 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2049 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2054 echo "$as_me: failed program was:" >&5
2055 sed 's/^/| /' conftest.$ac_ext >&5
2057 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2058 See \`config.log' for more details." >&5
2059 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2060 See \`config.log' for more details." >&2;}
2061 { (exit 1); exit 1; }; }
2064 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2066 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2067 echo "${ECHO_T}$ac_cv_objext" >&6
2068 OBJEXT=$ac_cv_objext
2070 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2071 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2072 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2073 echo $ECHO_N "(cached) $ECHO_C" >&6
2075 cat >conftest.$ac_ext <<_ACEOF
2078 cat confdefs.h >>conftest.$ac_ext
2079 cat >>conftest.$ac_ext <<_ACEOF
2080 /* end confdefs.h. */
2093 rm -f conftest.$ac_objext
2094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2095 (eval $ac_compile) 2>conftest.er1
2097 grep -v '^ *+' conftest.er1 >conftest.err
2099 cat conftest.err >&5
2100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2101 (exit $ac_status); } &&
2102 { ac_try='test -z "$ac_c_werror_flag"
2103 || test ! -s conftest.err'
2104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108 (exit $ac_status); }; } &&
2109 { ac_try='test -s conftest.$ac_objext'
2110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114 (exit $ac_status); }; }; then
2117 echo "$as_me: failed program was:" >&5
2118 sed 's/^/| /' conftest.$ac_ext >&5
2122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2123 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2126 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2127 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2128 GCC=`test $ac_compiler_gnu = yes && echo yes`
2129 ac_test_CFLAGS=${CFLAGS+set}
2130 ac_save_CFLAGS=$CFLAGS
2132 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2133 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2134 if test "${ac_cv_prog_cc_g+set}" = set; then
2135 echo $ECHO_N "(cached) $ECHO_C" >&6
2137 cat >conftest.$ac_ext <<_ACEOF
2140 cat confdefs.h >>conftest.$ac_ext
2141 cat >>conftest.$ac_ext <<_ACEOF
2142 /* end confdefs.h. */
2152 rm -f conftest.$ac_objext
2153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2154 (eval $ac_compile) 2>conftest.er1
2156 grep -v '^ *+' conftest.er1 >conftest.err
2158 cat conftest.err >&5
2159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160 (exit $ac_status); } &&
2161 { ac_try='test -z "$ac_c_werror_flag"
2162 || test ! -s conftest.err'
2163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2167 (exit $ac_status); }; } &&
2168 { ac_try='test -s conftest.$ac_objext'
2169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2173 (exit $ac_status); }; }; then
2176 echo "$as_me: failed program was:" >&5
2177 sed 's/^/| /' conftest.$ac_ext >&5
2181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2183 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2184 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2185 if test "$ac_test_CFLAGS" = set; then
2186 CFLAGS=$ac_save_CFLAGS
2187 elif test $ac_cv_prog_cc_g = yes; then
2188 if test "$GCC" = yes; then
2194 if test "$GCC" = yes; then
2200 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2201 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2202 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2203 echo $ECHO_N "(cached) $ECHO_C" >&6
2205 ac_cv_prog_cc_stdc=no
2207 cat >conftest.$ac_ext <<_ACEOF
2210 cat confdefs.h >>conftest.$ac_ext
2211 cat >>conftest.$ac_ext <<_ACEOF
2212 /* end confdefs.h. */
2215 #include <sys/types.h>
2216 #include <sys/stat.h>
2217 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2218 struct buf { int x; };
2219 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2220 static char *e (p, i)
2226 static char *f (char * (*g) (char **, int), char **p, ...)
2231 s = g (p, va_arg (v,int));
2236 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2237 function prototypes and stuff, but not '\xHH' hex character constants.
2238 These don't provoke an error unfortunately, instead are silently treated
2239 as 'x'. The following induces an error, until -std1 is added to get
2240 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2241 array size at least. It's necessary to write '\x00'==0 to get something
2242 that's true only with -std1. */
2243 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2245 int test (int i, double x);
2246 struct s1 {int (*f) (int a);};
2247 struct s2 {int (*f) (double a);};
2248 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2254 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2259 # Don't try gcc -ansi; that turns off useful extensions and
2260 # breaks some systems' header files.
2261 # AIX -qlanglvl=ansi
2262 # Ultrix and OSF/1 -std1
2263 # HP-UX 10.20 and later -Ae
2264 # HP-UX older versions -Aa -D_HPUX_SOURCE
2265 # SVR4 -Xc -D__EXTENSIONS__
2266 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2268 CC="$ac_save_CC $ac_arg"
2269 rm -f conftest.$ac_objext
2270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2271 (eval $ac_compile) 2>conftest.er1
2273 grep -v '^ *+' conftest.er1 >conftest.err
2275 cat conftest.err >&5
2276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277 (exit $ac_status); } &&
2278 { ac_try='test -z "$ac_c_werror_flag"
2279 || test ! -s conftest.err'
2280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2284 (exit $ac_status); }; } &&
2285 { ac_try='test -s conftest.$ac_objext'
2286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2290 (exit $ac_status); }; }; then
2291 ac_cv_prog_cc_stdc=$ac_arg
2294 echo "$as_me: failed program was:" >&5
2295 sed 's/^/| /' conftest.$ac_ext >&5
2298 rm -f conftest.err conftest.$ac_objext
2300 rm -f conftest.$ac_ext conftest.$ac_objext
2305 case "x$ac_cv_prog_cc_stdc" in
2307 echo "$as_me:$LINENO: result: none needed" >&5
2308 echo "${ECHO_T}none needed" >&6 ;;
2310 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2311 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2312 CC="$CC $ac_cv_prog_cc_stdc" ;;
2315 # Some people use a C++ compiler to compile C. Since we use `exit',
2316 # in C++ we need to declare it. In case someone uses the same compiler
2317 # for both compiling C and C++ we need to have the C++ compiler decide
2318 # the declaration of exit, since it's the most demanding environment.
2319 cat >conftest.$ac_ext <<_ACEOF
2324 rm -f conftest.$ac_objext
2325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2326 (eval $ac_compile) 2>conftest.er1
2328 grep -v '^ *+' conftest.er1 >conftest.err
2330 cat conftest.err >&5
2331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332 (exit $ac_status); } &&
2333 { ac_try='test -z "$ac_c_werror_flag"
2334 || test ! -s conftest.err'
2335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339 (exit $ac_status); }; } &&
2340 { ac_try='test -s conftest.$ac_objext'
2341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2345 (exit $ac_status); }; }; then
2346 for ac_declaration in \
2348 'extern "C" void std::exit (int) throw (); using std::exit;' \
2349 'extern "C" void std::exit (int); using std::exit;' \
2350 'extern "C" void exit (int) throw ();' \
2351 'extern "C" void exit (int);' \
2354 cat >conftest.$ac_ext <<_ACEOF
2357 cat confdefs.h >>conftest.$ac_ext
2358 cat >>conftest.$ac_ext <<_ACEOF
2359 /* end confdefs.h. */
2370 rm -f conftest.$ac_objext
2371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2372 (eval $ac_compile) 2>conftest.er1
2374 grep -v '^ *+' conftest.er1 >conftest.err
2376 cat conftest.err >&5
2377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378 (exit $ac_status); } &&
2379 { ac_try='test -z "$ac_c_werror_flag"
2380 || test ! -s conftest.err'
2381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385 (exit $ac_status); }; } &&
2386 { ac_try='test -s conftest.$ac_objext'
2387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391 (exit $ac_status); }; }; then
2394 echo "$as_me: failed program was:" >&5
2395 sed 's/^/| /' conftest.$ac_ext >&5
2399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2400 cat >conftest.$ac_ext <<_ACEOF
2403 cat confdefs.h >>conftest.$ac_ext
2404 cat >>conftest.$ac_ext <<_ACEOF
2405 /* end confdefs.h. */
2415 rm -f conftest.$ac_objext
2416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2417 (eval $ac_compile) 2>conftest.er1
2419 grep -v '^ *+' conftest.er1 >conftest.err
2421 cat conftest.err >&5
2422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423 (exit $ac_status); } &&
2424 { ac_try='test -z "$ac_c_werror_flag"
2425 || test ! -s conftest.err'
2426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430 (exit $ac_status); }; } &&
2431 { ac_try='test -s conftest.$ac_objext'
2432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436 (exit $ac_status); }; }; then
2439 echo "$as_me: failed program was:" >&5
2440 sed 's/^/| /' conftest.$ac_ext >&5
2443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2446 if test -n "$ac_declaration"; then
2447 echo '#ifdef __cplusplus' >>confdefs.h
2448 echo $ac_declaration >>confdefs.h
2449 echo '#endif' >>confdefs.h
2453 echo "$as_me: failed program was:" >&5
2454 sed 's/^/| /' conftest.$ac_ext >&5
2457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2459 ac_cpp='$CPP $CPPFLAGS'
2460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2465 ac_cpp='$CXXCPP $CPPFLAGS'
2466 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2467 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2468 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2469 if test -n "$ac_tool_prefix"; then
2470 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2472 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2473 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2474 echo "$as_me:$LINENO: checking for $ac_word" >&5
2475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2476 if test "${ac_cv_prog_CXX+set}" = set; then
2477 echo $ECHO_N "(cached) $ECHO_C" >&6
2479 if test -n "$CXX"; then
2480 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2486 test -z "$as_dir" && as_dir=.
2487 for ac_exec_ext in '' $ac_executable_extensions; do
2488 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2489 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2499 if test -n "$CXX"; then
2500 echo "$as_me:$LINENO: result: $CXX" >&5
2501 echo "${ECHO_T}$CXX" >&6
2503 echo "$as_me:$LINENO: result: no" >&5
2504 echo "${ECHO_T}no" >&6
2507 test -n "$CXX" && break
2510 if test -z "$CXX"; then
2512 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2514 # Extract the first word of "$ac_prog", so it can be a program name with args.
2515 set dummy $ac_prog; ac_word=$2
2516 echo "$as_me:$LINENO: checking for $ac_word" >&5
2517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2518 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2519 echo $ECHO_N "(cached) $ECHO_C" >&6
2521 if test -n "$ac_ct_CXX"; then
2522 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2528 test -z "$as_dir" && as_dir=.
2529 for ac_exec_ext in '' $ac_executable_extensions; do
2530 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2531 ac_cv_prog_ac_ct_CXX="$ac_prog"
2532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2540 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2541 if test -n "$ac_ct_CXX"; then
2542 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2543 echo "${ECHO_T}$ac_ct_CXX" >&6
2545 echo "$as_me:$LINENO: result: no" >&5
2546 echo "${ECHO_T}no" >&6
2549 test -n "$ac_ct_CXX" && break
2551 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2557 # Provide some information about the compiler.
2558 echo "$as_me:$LINENO:" \
2559 "checking for C++ compiler version" >&5
2560 ac_compiler=`set X $ac_compile; echo $2`
2561 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2562 (eval $ac_compiler --version </dev/null >&5) 2>&5
2564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565 (exit $ac_status); }
2566 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2567 (eval $ac_compiler -v </dev/null >&5) 2>&5
2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); }
2571 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2572 (eval $ac_compiler -V </dev/null >&5) 2>&5
2574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575 (exit $ac_status); }
2577 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2578 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2579 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2580 echo $ECHO_N "(cached) $ECHO_C" >&6
2582 cat >conftest.$ac_ext <<_ACEOF
2585 cat confdefs.h >>conftest.$ac_ext
2586 cat >>conftest.$ac_ext <<_ACEOF
2587 /* end confdefs.h. */
2600 rm -f conftest.$ac_objext
2601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2602 (eval $ac_compile) 2>conftest.er1
2604 grep -v '^ *+' conftest.er1 >conftest.err
2606 cat conftest.err >&5
2607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608 (exit $ac_status); } &&
2609 { ac_try='test -z "$ac_cxx_werror_flag"
2610 || test ! -s conftest.err'
2611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615 (exit $ac_status); }; } &&
2616 { ac_try='test -s conftest.$ac_objext'
2617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621 (exit $ac_status); }; }; then
2624 echo "$as_me: failed program was:" >&5
2625 sed 's/^/| /' conftest.$ac_ext >&5
2629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2630 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2633 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2634 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2635 GXX=`test $ac_compiler_gnu = yes && echo yes`
2636 ac_test_CXXFLAGS=${CXXFLAGS+set}
2637 ac_save_CXXFLAGS=$CXXFLAGS
2639 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2640 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2641 if test "${ac_cv_prog_cxx_g+set}" = set; then
2642 echo $ECHO_N "(cached) $ECHO_C" >&6
2644 cat >conftest.$ac_ext <<_ACEOF
2647 cat confdefs.h >>conftest.$ac_ext
2648 cat >>conftest.$ac_ext <<_ACEOF
2649 /* end confdefs.h. */
2659 rm -f conftest.$ac_objext
2660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2661 (eval $ac_compile) 2>conftest.er1
2663 grep -v '^ *+' conftest.er1 >conftest.err
2665 cat conftest.err >&5
2666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667 (exit $ac_status); } &&
2668 { ac_try='test -z "$ac_cxx_werror_flag"
2669 || test ! -s conftest.err'
2670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674 (exit $ac_status); }; } &&
2675 { ac_try='test -s conftest.$ac_objext'
2676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680 (exit $ac_status); }; }; then
2681 ac_cv_prog_cxx_g=yes
2683 echo "$as_me: failed program was:" >&5
2684 sed 's/^/| /' conftest.$ac_ext >&5
2688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2690 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2691 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2692 if test "$ac_test_CXXFLAGS" = set; then
2693 CXXFLAGS=$ac_save_CXXFLAGS
2694 elif test $ac_cv_prog_cxx_g = yes; then
2695 if test "$GXX" = yes; then
2701 if test "$GXX" = yes; then
2707 for ac_declaration in \
2709 'extern "C" void std::exit (int) throw (); using std::exit;' \
2710 'extern "C" void std::exit (int); using std::exit;' \
2711 'extern "C" void exit (int) throw ();' \
2712 'extern "C" void exit (int);' \
2715 cat >conftest.$ac_ext <<_ACEOF
2718 cat confdefs.h >>conftest.$ac_ext
2719 cat >>conftest.$ac_ext <<_ACEOF
2720 /* end confdefs.h. */
2731 rm -f conftest.$ac_objext
2732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2733 (eval $ac_compile) 2>conftest.er1
2735 grep -v '^ *+' conftest.er1 >conftest.err
2737 cat conftest.err >&5
2738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739 (exit $ac_status); } &&
2740 { ac_try='test -z "$ac_cxx_werror_flag"
2741 || test ! -s conftest.err'
2742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746 (exit $ac_status); }; } &&
2747 { ac_try='test -s conftest.$ac_objext'
2748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752 (exit $ac_status); }; }; then
2755 echo "$as_me: failed program was:" >&5
2756 sed 's/^/| /' conftest.$ac_ext >&5
2760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2761 cat >conftest.$ac_ext <<_ACEOF
2764 cat confdefs.h >>conftest.$ac_ext
2765 cat >>conftest.$ac_ext <<_ACEOF
2766 /* end confdefs.h. */
2776 rm -f conftest.$ac_objext
2777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2778 (eval $ac_compile) 2>conftest.er1
2780 grep -v '^ *+' conftest.er1 >conftest.err
2782 cat conftest.err >&5
2783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784 (exit $ac_status); } &&
2785 { ac_try='test -z "$ac_cxx_werror_flag"
2786 || test ! -s conftest.err'
2787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791 (exit $ac_status); }; } &&
2792 { ac_try='test -s conftest.$ac_objext'
2793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797 (exit $ac_status); }; }; then
2800 echo "$as_me: failed program was:" >&5
2801 sed 's/^/| /' conftest.$ac_ext >&5
2804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2807 if test -n "$ac_declaration"; then
2808 echo '#ifdef __cplusplus' >>confdefs.h
2809 echo $ac_declaration >>confdefs.h
2810 echo '#endif' >>confdefs.h
2814 ac_cpp='$CPP $CPPFLAGS'
2815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2819 if test "x$CC" != xcc; then
2820 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2821 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2823 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2824 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2826 set dummy $CC; ac_cc=`echo $2 |
2827 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2828 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2829 echo $ECHO_N "(cached) $ECHO_C" >&6
2831 cat >conftest.$ac_ext <<_ACEOF
2834 cat confdefs.h >>conftest.$ac_ext
2835 cat >>conftest.$ac_ext <<_ACEOF
2836 /* end confdefs.h. */
2846 # Make sure it works both with $CC and with simple cc.
2847 # We do the test twice because some compilers refuse to overwrite an
2848 # existing .o file with -o, though they will create one.
2849 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2850 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854 (exit $ac_status); } &&
2855 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2859 (exit $ac_status); };
2861 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2862 if test "x$CC" != xcc; then
2863 # Test first that cc exists at all.
2864 if { ac_try='cc -c conftest.$ac_ext >&5'
2865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869 (exit $ac_status); }; }; then
2870 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2871 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875 (exit $ac_status); } &&
2876 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880 (exit $ac_status); };
2885 # cc exists but doesn't like -o.
2886 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2891 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2896 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2897 echo "$as_me:$LINENO: result: yes" >&5
2898 echo "${ECHO_T}yes" >&6
2900 echo "$as_me:$LINENO: result: no" >&5
2901 echo "${ECHO_T}no" >&6
2903 cat >>confdefs.h <<\_ACEOF
2904 #define NO_MINUS_C_MINUS_O 1
2910 ac_cpp='$CPP $CPPFLAGS'
2911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2914 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2915 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2916 # On Suns, sometimes $CPP names a directory.
2917 if test -n "$CPP" && test -d "$CPP"; then
2920 if test -z "$CPP"; then
2921 if test "${ac_cv_prog_CPP+set}" = set; then
2922 echo $ECHO_N "(cached) $ECHO_C" >&6
2924 # Double quotes because CPP needs to be expanded
2925 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2928 for ac_c_preproc_warn_flag in '' yes
2930 # Use a header file that comes with gcc, so configuring glibc
2931 # with a fresh cross-compiler works.
2932 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2933 # <limits.h> exists even on freestanding compilers.
2934 # On the NeXT, cc -E runs the code through the compiler's parser,
2935 # not just through cpp. "Syntax error" is here to catch this case.
2936 cat >conftest.$ac_ext <<_ACEOF
2939 cat confdefs.h >>conftest.$ac_ext
2940 cat >>conftest.$ac_ext <<_ACEOF
2941 /* end confdefs.h. */
2943 # include <limits.h>
2945 # include <assert.h>
2949 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2950 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2952 grep -v '^ *+' conftest.er1 >conftest.err
2954 cat conftest.err >&5
2955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956 (exit $ac_status); } >/dev/null; then
2957 if test -s conftest.err; then
2958 ac_cpp_err=$ac_c_preproc_warn_flag
2959 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2966 if test -z "$ac_cpp_err"; then
2969 echo "$as_me: failed program was:" >&5
2970 sed 's/^/| /' conftest.$ac_ext >&5
2972 # Broken: fails on valid input.
2975 rm -f conftest.err conftest.$ac_ext
2977 # OK, works on sane cases. Now check whether non-existent headers
2978 # can be detected and how.
2979 cat >conftest.$ac_ext <<_ACEOF
2982 cat confdefs.h >>conftest.$ac_ext
2983 cat >>conftest.$ac_ext <<_ACEOF
2984 /* end confdefs.h. */
2985 #include <ac_nonexistent.h>
2987 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2988 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2990 grep -v '^ *+' conftest.er1 >conftest.err
2992 cat conftest.err >&5
2993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994 (exit $ac_status); } >/dev/null; then
2995 if test -s conftest.err; then
2996 ac_cpp_err=$ac_c_preproc_warn_flag
2997 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3004 if test -z "$ac_cpp_err"; then
3005 # Broken: success on invalid input.
3008 echo "$as_me: failed program was:" >&5
3009 sed 's/^/| /' conftest.$ac_ext >&5
3011 # Passes both tests.
3015 rm -f conftest.err conftest.$ac_ext
3018 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3019 rm -f conftest.err conftest.$ac_ext
3020 if $ac_preproc_ok; then
3032 echo "$as_me:$LINENO: result: $CPP" >&5
3033 echo "${ECHO_T}$CPP" >&6
3035 for ac_c_preproc_warn_flag in '' yes
3037 # Use a header file that comes with gcc, so configuring glibc
3038 # with a fresh cross-compiler works.
3039 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3040 # <limits.h> exists even on freestanding compilers.
3041 # On the NeXT, cc -E runs the code through the compiler's parser,
3042 # not just through cpp. "Syntax error" is here to catch this case.
3043 cat >conftest.$ac_ext <<_ACEOF
3046 cat confdefs.h >>conftest.$ac_ext
3047 cat >>conftest.$ac_ext <<_ACEOF
3048 /* end confdefs.h. */
3050 # include <limits.h>
3052 # include <assert.h>
3056 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3057 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3059 grep -v '^ *+' conftest.er1 >conftest.err
3061 cat conftest.err >&5
3062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063 (exit $ac_status); } >/dev/null; then
3064 if test -s conftest.err; then
3065 ac_cpp_err=$ac_c_preproc_warn_flag
3066 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3073 if test -z "$ac_cpp_err"; then
3076 echo "$as_me: failed program was:" >&5
3077 sed 's/^/| /' conftest.$ac_ext >&5
3079 # Broken: fails on valid input.
3082 rm -f conftest.err conftest.$ac_ext
3084 # OK, works on sane cases. Now check whether non-existent headers
3085 # can be detected and how.
3086 cat >conftest.$ac_ext <<_ACEOF
3089 cat confdefs.h >>conftest.$ac_ext
3090 cat >>conftest.$ac_ext <<_ACEOF
3091 /* end confdefs.h. */
3092 #include <ac_nonexistent.h>
3094 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3095 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3097 grep -v '^ *+' conftest.er1 >conftest.err
3099 cat conftest.err >&5
3100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101 (exit $ac_status); } >/dev/null; then
3102 if test -s conftest.err; then
3103 ac_cpp_err=$ac_c_preproc_warn_flag
3104 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3111 if test -z "$ac_cpp_err"; then
3112 # Broken: success on invalid input.
3115 echo "$as_me: failed program was:" >&5
3116 sed 's/^/| /' conftest.$ac_ext >&5
3118 # Passes both tests.
3122 rm -f conftest.err conftest.$ac_ext
3125 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3126 rm -f conftest.err conftest.$ac_ext
3127 if $ac_preproc_ok; then
3130 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3131 See \`config.log' for more details." >&5
3132 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3133 See \`config.log' for more details." >&2;}
3134 { (exit 1); exit 1; }; }
3138 ac_cpp='$CPP $CPPFLAGS'
3139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3144 echo "$as_me:$LINENO: checking for egrep" >&5
3145 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3146 if test "${ac_cv_prog_egrep+set}" = set; then
3147 echo $ECHO_N "(cached) $ECHO_C" >&6
3149 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3150 then ac_cv_prog_egrep='grep -E'
3151 else ac_cv_prog_egrep='egrep'
3154 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3155 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3156 EGREP=$ac_cv_prog_egrep
3159 if test $ac_cv_c_compiler_gnu = yes; then
3160 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3161 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3162 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3163 echo $ECHO_N "(cached) $ECHO_C" >&6
3165 ac_pattern="Autoconf.*'x'"
3166 cat >conftest.$ac_ext <<_ACEOF
3169 cat confdefs.h >>conftest.$ac_ext
3170 cat >>conftest.$ac_ext <<_ACEOF
3171 /* end confdefs.h. */
3175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3176 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3177 ac_cv_prog_gcc_traditional=yes
3179 ac_cv_prog_gcc_traditional=no
3184 if test $ac_cv_prog_gcc_traditional = no; then
3185 cat >conftest.$ac_ext <<_ACEOF
3188 cat confdefs.h >>conftest.$ac_ext
3189 cat >>conftest.$ac_ext <<_ACEOF
3190 /* end confdefs.h. */
3194 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3195 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3196 ac_cv_prog_gcc_traditional=yes
3202 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3203 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3204 if test $ac_cv_prog_gcc_traditional = yes; then
3205 CC="$CC -traditional"
3209 if test "x$CC" = xgcc; then
3210 cat >>confdefs.h <<\_ACEOF
3215 # Extract the first word of "$CXX", so it can be a program name with args.
3216 set dummy $CXX; ac_word=$2
3217 echo "$as_me:$LINENO: checking for $ac_word" >&5
3218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3219 if test "${ac_cv_path_CXX+set}" = set; then
3220 echo $ECHO_N "(cached) $ECHO_C" >&6
3224 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3231 test -z "$as_dir" && as_dir=.
3232 for ac_exec_ext in '' $ac_executable_extensions; do
3233 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3234 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3241 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
3247 if test -n "$CXX"; then
3248 echo "$as_me:$LINENO: result: $CXX" >&5
3249 echo "${ECHO_T}$CXX" >&6
3251 echo "$as_me:$LINENO: result: no" >&5
3252 echo "${ECHO_T}no" >&6
3255 if test ! -e $CXX; then
3256 { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
3257 echo "$as_me: error: Unable to find C++ compiler" >&2;}
3258 { (exit 1); exit 1; }; }
3261 # Find a good install program. We prefer a C program (faster),
3262 # so one script is as good as another. But avoid the broken or
3263 # incompatible versions:
3264 # SysV /etc/install, /usr/sbin/install
3265 # SunOS /usr/etc/install
3266 # IRIX /sbin/install
3268 # AmigaOS /C/install, which installs bootblocks on floppy discs
3269 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3270 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3271 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3272 # OS/2's system install, which has a completely different semantic
3273 # ./install, which can be erroneously created by make from ./install.sh.
3274 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3275 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3276 if test -z "$INSTALL"; then
3277 if test "${ac_cv_path_install+set}" = set; then
3278 echo $ECHO_N "(cached) $ECHO_C" >&6
3280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3284 test -z "$as_dir" && as_dir=.
3285 # Account for people who put trailing slashes in PATH elements.
3287 ./ | .// | /cC/* | \
3288 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3289 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3292 # OSF1 and SCO ODT 3.0 have their own names for install.
3293 # Don't use installbsd from OSF since it installs stuff as root
3295 for ac_prog in ginstall scoinst install; do
3296 for ac_exec_ext in '' $ac_executable_extensions; do
3297 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3298 if test $ac_prog = install &&
3299 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3300 # AIX install. It has an incompatible calling convention.
3302 elif test $ac_prog = install &&
3303 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3304 # program-specific install script used by HP pwplus--don't use.
3307 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3319 if test "${ac_cv_path_install+set}" = set; then
3320 INSTALL=$ac_cv_path_install
3322 # As a last resort, use the slow shell script. We don't cache a
3323 # path for INSTALL within a source directory, because that will
3324 # break other packages using the cache if that directory is
3325 # removed, or if the path is relative.
3326 INSTALL=$ac_install_sh
3329 echo "$as_me:$LINENO: result: $INSTALL" >&5
3330 echo "${ECHO_T}$INSTALL" >&6
3332 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3333 # It thinks the first close brace ends the variable substitution.
3334 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3336 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3338 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3340 if test -n "$ac_tool_prefix"; then
3341 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3342 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3343 echo "$as_me:$LINENO: checking for $ac_word" >&5
3344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3345 if test "${ac_cv_prog_RANLIB+set}" = set; then
3346 echo $ECHO_N "(cached) $ECHO_C" >&6
3348 if test -n "$RANLIB"; then
3349 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3355 test -z "$as_dir" && as_dir=.
3356 for ac_exec_ext in '' $ac_executable_extensions; do
3357 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3358 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3367 RANLIB=$ac_cv_prog_RANLIB
3368 if test -n "$RANLIB"; then
3369 echo "$as_me:$LINENO: result: $RANLIB" >&5
3370 echo "${ECHO_T}$RANLIB" >&6
3372 echo "$as_me:$LINENO: result: no" >&5
3373 echo "${ECHO_T}no" >&6
3377 if test -z "$ac_cv_prog_RANLIB"; then
3378 ac_ct_RANLIB=$RANLIB
3379 # Extract the first word of "ranlib", so it can be a program name with args.
3380 set dummy ranlib; ac_word=$2
3381 echo "$as_me:$LINENO: checking for $ac_word" >&5
3382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3383 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3384 echo $ECHO_N "(cached) $ECHO_C" >&6
3386 if test -n "$ac_ct_RANLIB"; then
3387 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3393 test -z "$as_dir" && as_dir=.
3394 for ac_exec_ext in '' $ac_executable_extensions; do
3395 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3396 ac_cv_prog_ac_ct_RANLIB="ranlib"
3397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3403 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3406 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3407 if test -n "$ac_ct_RANLIB"; then
3408 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3409 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3411 echo "$as_me:$LINENO: result: no" >&5
3412 echo "${ECHO_T}no" >&6
3415 RANLIB=$ac_ct_RANLIB
3417 RANLIB="$ac_cv_prog_RANLIB"
3420 # Extract the first word of "mv", so it can be a program name with args.
3421 set dummy mv; ac_word=$2
3422 echo "$as_me:$LINENO: checking for $ac_word" >&5
3423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3424 if test "${ac_cv_path_MV+set}" = set; then
3425 echo $ECHO_N "(cached) $ECHO_C" >&6
3429 ac_cv_path_MV="$MV" # Let the user override the test with a path.
3432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3436 test -z "$as_dir" && as_dir=.
3437 for ac_exec_ext in '' $ac_executable_extensions; do
3438 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3439 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3446 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3452 if test -n "$MV"; then
3453 echo "$as_me:$LINENO: result: $MV" >&5
3454 echo "${ECHO_T}$MV" >&6
3456 echo "$as_me:$LINENO: result: no" >&5
3457 echo "${ECHO_T}no" >&6
3460 # Extract the first word of "rm", so it can be a program name with args.
3461 set dummy rm; ac_word=$2
3462 echo "$as_me:$LINENO: checking for $ac_word" >&5
3463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3464 if test "${ac_cv_path_RM+set}" = set; then
3465 echo $ECHO_N "(cached) $ECHO_C" >&6
3469 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3476 test -z "$as_dir" && as_dir=.
3477 for ac_exec_ext in '' $ac_executable_extensions; do
3478 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3479 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3486 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3492 if test -n "$RM"; then
3493 echo "$as_me:$LINENO: result: $RM" >&5
3494 echo "${ECHO_T}$RM" >&6
3496 echo "$as_me:$LINENO: result: no" >&5
3497 echo "${ECHO_T}no" >&6
3500 # Extract the first word of "cp", so it can be a program name with args.
3501 set dummy cp; ac_word=$2
3502 echo "$as_me:$LINENO: checking for $ac_word" >&5
3503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3504 if test "${ac_cv_path_CP+set}" = set; then
3505 echo $ECHO_N "(cached) $ECHO_C" >&6
3509 ac_cv_path_CP="$CP" # Let the user override the test with a path.
3512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3516 test -z "$as_dir" && as_dir=.
3517 for ac_exec_ext in '' $ac_executable_extensions; do
3518 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3519 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3526 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3532 if test -n "$CP"; then
3533 echo "$as_me:$LINENO: result: $CP" >&5
3534 echo "${ECHO_T}$CP" >&6
3536 echo "$as_me:$LINENO: result: no" >&5
3537 echo "${ECHO_T}no" >&6
3540 # Extract the first word of "sed", so it can be a program name with args.
3541 set dummy sed; ac_word=$2
3542 echo "$as_me:$LINENO: checking for $ac_word" >&5
3543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3544 if test "${ac_cv_path_SED+set}" = set; then
3545 echo $ECHO_N "(cached) $ECHO_C" >&6
3549 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3556 test -z "$as_dir" && as_dir=.
3557 for ac_exec_ext in '' $ac_executable_extensions; do
3558 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3559 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3566 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3572 if test -n "$SED"; then
3573 echo "$as_me:$LINENO: result: $SED" >&5
3574 echo "${ECHO_T}$SED" >&6
3576 echo "$as_me:$LINENO: result: no" >&5
3577 echo "${ECHO_T}no" >&6
3580 # Extract the first word of "echo", so it can be a program name with args.
3581 set dummy echo; ac_word=$2
3582 echo "$as_me:$LINENO: checking for $ac_word" >&5
3583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3584 if test "${ac_cv_path_ECHO+set}" = set; then
3585 echo $ECHO_N "(cached) $ECHO_C" >&6
3589 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3596 test -z "$as_dir" && as_dir=.
3597 for ac_exec_ext in '' $ac_executable_extensions; do
3598 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3599 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3606 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3610 ECHO=$ac_cv_path_ECHO
3612 if test -n "$ECHO"; then
3613 echo "$as_me:$LINENO: result: $ECHO" >&5
3614 echo "${ECHO_T}$ECHO" >&6
3616 echo "$as_me:$LINENO: result: no" >&5
3617 echo "${ECHO_T}no" >&6
3620 # Extract the first word of "cmp", so it can be a program name with args.
3621 set dummy cmp; ac_word=$2
3622 echo "$as_me:$LINENO: checking for $ac_word" >&5
3623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3624 if test "${ac_cv_path_CMP+set}" = set; then
3625 echo $ECHO_N "(cached) $ECHO_C" >&6
3629 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3636 test -z "$as_dir" && as_dir=.
3637 for ac_exec_ext in '' $ac_executable_extensions; do
3638 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3639 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3646 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3652 if test -n "$CMP"; then
3653 echo "$as_me:$LINENO: result: $CMP" >&5
3654 echo "${ECHO_T}$CMP" >&6
3656 echo "$as_me:$LINENO: result: no" >&5
3657 echo "${ECHO_T}no" >&6
3660 # Extract the first word of "tbl", so it can be a program name with args.
3661 set dummy tbl; ac_word=$2
3662 echo "$as_me:$LINENO: checking for $ac_word" >&5
3663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3664 if test "${ac_cv_path_TBL+set}" = set; then
3665 echo $ECHO_N "(cached) $ECHO_C" >&6
3669 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3676 test -z "$as_dir" && as_dir=.
3677 for ac_exec_ext in '' $ac_executable_extensions; do
3678 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3679 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3686 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3692 if test -n "$TBL"; then
3693 echo "$as_me:$LINENO: result: $TBL" >&5
3694 echo "${ECHO_T}$TBL" >&6
3696 echo "$as_me:$LINENO: result: no" >&5
3697 echo "${ECHO_T}no" >&6
3700 # Extract the first word of "ar", so it can be a program name with args.
3701 set dummy ar; ac_word=$2
3702 echo "$as_me:$LINENO: checking for $ac_word" >&5
3703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3704 if test "${ac_cv_path_AR+set}" = set; then
3705 echo $ECHO_N "(cached) $ECHO_C" >&6
3709 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3716 test -z "$as_dir" && as_dir=.
3717 for ac_exec_ext in '' $ac_executable_extensions; do
3718 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3719 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3726 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3732 if test -n "$AR"; then
3733 echo "$as_me:$LINENO: result: $AR" >&5
3734 echo "${ECHO_T}$AR" >&6
3736 echo "$as_me:$LINENO: result: no" >&5
3737 echo "${ECHO_T}no" >&6
3740 # Extract the first word of "openssl", so it can be a program name with args.
3741 set dummy openssl; ac_word=$2
3742 echo "$as_me:$LINENO: checking for $ac_word" >&5
3743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3744 if test "${ac_cv_path_OPENSSL+set}" = set; then
3745 echo $ECHO_N "(cached) $ECHO_C" >&6
3749 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3756 test -z "$as_dir" && as_dir=.
3757 for ac_exec_ext in '' $ac_executable_extensions; do
3758 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3759 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3766 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3770 OPENSSL=$ac_cv_path_OPENSSL
3772 if test -n "$OPENSSL"; then
3773 echo "$as_me:$LINENO: result: $OPENSSL" >&5
3774 echo "${ECHO_T}$OPENSSL" >&6
3776 echo "$as_me:$LINENO: result: no" >&5
3777 echo "${ECHO_T}no" >&6
3780 # Extract the first word of "mtx", so it can be a program name with args.
3781 set dummy mtx; ac_word=$2
3782 echo "$as_me:$LINENO: checking for $ac_word" >&5
3783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3784 if test "${ac_cv_path_MTX+set}" = set; then
3785 echo $ECHO_N "(cached) $ECHO_C" >&6
3789 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3796 test -z "$as_dir" && as_dir=.
3797 for ac_exec_ext in '' $ac_executable_extensions; do
3798 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3799 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3806 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3812 if test -n "$MTX"; then
3813 echo "$as_me:$LINENO: result: $MTX" >&5
3814 echo "${ECHO_T}$MTX" >&6
3816 echo "$as_me:$LINENO: result: no" >&5
3817 echo "${ECHO_T}no" >&6
3820 # Extract the first word of "dd", so it can be a program name with args.
3821 set dummy dd; ac_word=$2
3822 echo "$as_me:$LINENO: checking for $ac_word" >&5
3823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3824 if test "${ac_cv_path_DD+set}" = set; then
3825 echo $ECHO_N "(cached) $ECHO_C" >&6
3829 ac_cv_path_DD="$DD" # Let the user override the test with a path.
3832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3836 test -z "$as_dir" && as_dir=.
3837 for ac_exec_ext in '' $ac_executable_extensions; do
3838 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3839 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
3840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3846 test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
3852 if test -n "$DD"; then
3853 echo "$as_me:$LINENO: result: $DD" >&5
3854 echo "${ECHO_T}$DD" >&6
3856 echo "$as_me:$LINENO: result: no" >&5
3857 echo "${ECHO_T}no" >&6
3860 # Extract the first word of "mkisofs", so it can be a program name with args.
3861 set dummy mkisofs; ac_word=$2
3862 echo "$as_me:$LINENO: checking for $ac_word" >&5
3863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3864 if test "${ac_cv_path_MKISOFS+set}" = set; then
3865 echo $ECHO_N "(cached) $ECHO_C" >&6
3869 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
3872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3876 test -z "$as_dir" && as_dir=.
3877 for ac_exec_ext in '' $ac_executable_extensions; do
3878 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3879 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
3880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3886 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
3890 MKISOFS=$ac_cv_path_MKISOFS
3892 if test -n "$MKISOFS"; then
3893 echo "$as_me:$LINENO: result: $MKISOFS" >&5
3894 echo "${ECHO_T}$MKISOFS" >&6
3896 echo "$as_me:$LINENO: result: no" >&5
3897 echo "${ECHO_T}no" >&6
3900 # Extract the first word of "python", so it can be a program name with args.
3901 set dummy python; ac_word=$2
3902 echo "$as_me:$LINENO: checking for $ac_word" >&5
3903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3904 if test "${ac_cv_path_PYTHON+set}" = set; then
3905 echo $ECHO_N "(cached) $ECHO_C" >&6
3909 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
3912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3916 test -z "$as_dir" && as_dir=.
3917 for ac_exec_ext in '' $ac_executable_extensions; do
3918 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3919 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
3920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3926 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
3930 PYTHON=$ac_cv_path_PYTHON
3932 if test -n "$PYTHON"; then
3933 echo "$as_me:$LINENO: result: $PYTHON" >&5
3934 echo "${ECHO_T}$PYTHON" >&6
3936 echo "$as_me:$LINENO: result: no" >&5
3937 echo "${ECHO_T}no" >&6
3940 # Extract the first word of "growisofs", so it can be a program name with args.
3941 set dummy growisofs; ac_word=$2
3942 echo "$as_me:$LINENO: checking for $ac_word" >&5
3943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3944 if test "${ac_cv_path_GROWISOFS+set}" = set; then
3945 echo $ECHO_N "(cached) $ECHO_C" >&6
3949 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
3952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3956 test -z "$as_dir" && as_dir=.
3957 for ac_exec_ext in '' $ac_executable_extensions; do
3958 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3959 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
3960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3966 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
3970 GROWISOFS=$ac_cv_path_GROWISOFS
3972 if test -n "$GROWISOFS"; then
3973 echo "$as_me:$LINENO: result: $GROWISOFS" >&5
3974 echo "${ECHO_T}$GROWISOFS" >&6
3976 echo "$as_me:$LINENO: result: no" >&5
3977 echo "${ECHO_T}no" >&6
3980 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
3981 set dummy dvd+rw-mediainfo; ac_word=$2
3982 echo "$as_me:$LINENO: checking for $ac_word" >&5
3983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3984 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
3985 echo $ECHO_N "(cached) $ECHO_C" >&6
3987 case $DVDRWMEDIAINFO in
3989 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
3992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3996 test -z "$as_dir" && as_dir=.
3997 for ac_exec_ext in '' $ac_executable_extensions; do
3998 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3999 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4006 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4010 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4012 if test -n "$DVDRWMEDIAINFO"; then
4013 echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4014 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6
4016 echo "$as_me:$LINENO: result: no" >&5
4017 echo "${ECHO_T}no" >&6
4020 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4021 set dummy dvd+rw-format; ac_word=$2
4022 echo "$as_me:$LINENO: checking for $ac_word" >&5
4023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4024 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4025 echo $ECHO_N "(cached) $ECHO_C" >&6
4027 case $DVDRWFORMAT in
4029 ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4036 test -z "$as_dir" && as_dir=.
4037 for ac_exec_ext in '' $ac_executable_extensions; do
4038 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4039 ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4046 test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4050 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4052 if test -n "$DVDRWFORMAT"; then
4053 echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4054 echo "${ECHO_T}$DVDRWFORMAT" >&6
4056 echo "$as_me:$LINENO: result: no" >&5
4057 echo "${ECHO_T}no" >&6
4060 # Extract the first word of "pkg-config", so it can be a program name with args.
4061 set dummy pkg-config; ac_word=$2
4062 echo "$as_me:$LINENO: checking for $ac_word" >&5
4063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4064 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4065 echo $ECHO_N "(cached) $ECHO_C" >&6
4069 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4076 test -z "$as_dir" && as_dir=.
4077 for ac_exec_ext in '' $ac_executable_extensions; do
4078 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4079 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4086 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
4090 PKGCONFIG=$ac_cv_path_PKGCONFIG
4092 if test -n "$PKGCONFIG"; then
4093 echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
4094 echo "${ECHO_T}$PKGCONFIG" >&6
4096 echo "$as_me:$LINENO: result: no" >&5
4097 echo "${ECHO_T}no" >&6
4101 if test "x$WXCONFIG" = x; then
4104 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
4105 set dummy ${WXCONFIG}; ac_word=$2
4106 echo "$as_me:$LINENO: checking for $ac_word" >&5
4107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4108 if test "${ac_cv_path_WXCONFIG+set}" = set; then
4109 echo $ECHO_N "(cached) $ECHO_C" >&6
4113 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
4116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4120 test -z "$as_dir" && as_dir=.
4121 for ac_exec_ext in '' $ac_executable_extensions; do
4122 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4123 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
4124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4130 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
4134 WXCONFIG=$ac_cv_path_WXCONFIG
4136 if test -n "$WXCONFIG"; then
4137 echo "$as_me:$LINENO: result: $WXCONFIG" >&5
4138 echo "${ECHO_T}$WXCONFIG" >&6
4140 echo "$as_me:$LINENO: result: no" >&5
4141 echo "${ECHO_T}no" >&6
4145 # Extract the first word of "cdrecord", so it can be a program name with args.
4146 set dummy cdrecord; ac_word=$2
4147 echo "$as_me:$LINENO: checking for $ac_word" >&5
4148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4149 if test "${ac_cv_path_CDRECORD+set}" = set; then
4150 echo $ECHO_N "(cached) $ECHO_C" >&6
4154 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
4157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4161 test -z "$as_dir" && as_dir=.
4162 for ac_exec_ext in '' $ac_executable_extensions; do
4163 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4164 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
4165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4171 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
4175 CDRECORD=$ac_cv_path_CDRECORD
4177 if test -n "$CDRECORD"; then
4178 echo "$as_me:$LINENO: result: $CDRECORD" >&5
4179 echo "${ECHO_T}$CDRECORD" >&6
4181 echo "$as_me:$LINENO: result: no" >&5
4182 echo "${ECHO_T}no" >&6
4185 # Extract the first word of "pidof", so it can be a program name with args.
4186 set dummy pidof; ac_word=$2
4187 echo "$as_me:$LINENO: checking for $ac_word" >&5
4188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4189 if test "${ac_cv_path_PIDOF+set}" = set; then
4190 echo $ECHO_N "(cached) $ECHO_C" >&6
4194 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
4197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4201 test -z "$as_dir" && as_dir=.
4202 for ac_exec_ext in '' $ac_executable_extensions; do
4203 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4204 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
4205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4211 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
4215 PIDOF=$ac_cv_path_PIDOF
4217 if test -n "$PIDOF"; then
4218 echo "$as_me:$LINENO: result: $PIDOF" >&5
4219 echo "${ECHO_T}$PIDOF" >&6
4221 echo "$as_me:$LINENO: result: no" >&5
4222 echo "${ECHO_T}no" >&6
4225 for ac_prog in gawk mawk nawk awk
4227 # Extract the first word of "$ac_prog", so it can be a program name with args.
4228 set dummy $ac_prog; ac_word=$2
4229 echo "$as_me:$LINENO: checking for $ac_word" >&5
4230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4231 if test "${ac_cv_prog_AWK+set}" = set; then
4232 echo $ECHO_N "(cached) $ECHO_C" >&6
4234 if test -n "$AWK"; then
4235 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4241 test -z "$as_dir" && as_dir=.
4242 for ac_exec_ext in '' $ac_executable_extensions; do
4243 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4244 ac_cv_prog_AWK="$ac_prog"
4245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4254 if test -n "$AWK"; then
4255 echo "$as_me:$LINENO: result: $AWK" >&5
4256 echo "${ECHO_T}$AWK" >&6
4258 echo "$as_me:$LINENO: result: no" >&5
4259 echo "${ECHO_T}no" >&6
4262 test -n "$AWK" && break
4265 # Some AWK programs fail, so test it and warn the user
4266 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
4267 { if ((prog == $2) || (("(" prog ")") == $2) ||
4268 (("" prog "") == $2) ||
4269 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
4271 { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4272 The regex engine of $AWK is too broken to be used you
4273 might want to install GNU AWK.
4274 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
4275 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4276 The regex engine of $AWK is too broken to be used you
4277 might want to install GNU AWK.
4278 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
4279 { (exit 1); exit 1; }; }
4282 # Extract the first word of "$THE_AWK", so it can be a program name with args.
4283 set dummy $THE_AWK; ac_word=$2
4284 echo "$as_me:$LINENO: checking for $ac_word" >&5
4285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4286 if test "${ac_cv_path_AWK+set}" = set; then
4287 echo $ECHO_N "(cached) $ECHO_C" >&6
4291 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
4294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4298 test -z "$as_dir" && as_dir=.
4299 for ac_exec_ext in '' $ac_executable_extensions; do
4300 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4301 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
4302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4308 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
4314 if test -n "$AWK"; then
4315 echo "$as_me:$LINENO: result: $AWK" >&5
4316 echo "${ECHO_T}$AWK" >&6
4318 echo "$as_me:$LINENO: result: no" >&5
4319 echo "${ECHO_T}no" >&6
4323 test -n "$ARFLAG" || ARFLAGS="cr"
4334 # Make sure we can run config.sub.
4335 $ac_config_sub sun4 >/dev/null 2>&1 ||
4336 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4337 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4338 { (exit 1); exit 1; }; }
4340 echo "$as_me:$LINENO: checking build system type" >&5
4341 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4342 if test "${ac_cv_build+set}" = set; then
4343 echo $ECHO_N "(cached) $ECHO_C" >&6
4345 ac_cv_build_alias=$build_alias
4346 test -z "$ac_cv_build_alias" &&
4347 ac_cv_build_alias=`$ac_config_guess`
4348 test -z "$ac_cv_build_alias" &&
4349 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4350 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4351 { (exit 1); exit 1; }; }
4352 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4353 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4354 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4355 { (exit 1); exit 1; }; }
4358 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4359 echo "${ECHO_T}$ac_cv_build" >&6
4361 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4362 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4363 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4367 echo "$as_me:$LINENO: checking host system type" >&5
4368 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4369 if test "${ac_cv_host+set}" = set; then
4370 echo $ECHO_N "(cached) $ECHO_C" >&6
4372 ac_cv_host_alias=$host_alias
4373 test -z "$ac_cv_host_alias" &&
4374 ac_cv_host_alias=$ac_cv_build_alias
4375 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4376 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4377 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4378 { (exit 1); exit 1; }; }
4381 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4382 echo "${ECHO_T}$ac_cv_host" >&6
4384 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4385 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4386 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4390 *cygwin* ) CYGWIN=yes;;
4394 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4400 HAVE_SUN_OS_FALSE='#'
4402 HAVE_SUN_OS_TRUE='#'
4405 cat >>confdefs.h <<\_ACEOF
4406 #define HAVE_SUN_OS 1
4414 HAVE_SUN_OS_FALSE='#'
4416 HAVE_SUN_OS_TRUE='#'
4421 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4427 HAVE_OSF1_OS_FALSE='#'
4429 HAVE_OSF1_OS_TRUE='#'
4432 cat >>confdefs.h <<\_ACEOF
4433 #define HAVE_OSF1_OS 1
4441 HAVE_OSF1_OS_FALSE='#'
4443 HAVE_OSF1_OS_TRUE='#'
4448 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4454 HAVE_AIX_OS_FALSE='#'
4456 HAVE_AIX_OS_TRUE='#'
4459 cat >>confdefs.h <<\_ACEOF
4460 #define HAVE_AIX_OS 1
4468 HAVE_AIX_OS_FALSE='#'
4470 HAVE_AIX_OS_TRUE='#'
4475 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4481 HAVE_HPUX_OS_FALSE='#'
4483 HAVE_HPUX_OS_TRUE='#'
4486 cat >>confdefs.h <<\_ACEOF
4487 #define HAVE_HPUX_OS 1
4495 HAVE_HPUX_OS_FALSE='#'
4497 HAVE_HPUX_OS_TRUE='#'
4502 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
4508 HAVE_LINUX_OS_FALSE='#'
4510 HAVE_LINUX_OS_TRUE='#'
4511 HAVE_LINUX_OS_FALSE=
4513 cat >>confdefs.h <<\_ACEOF
4514 #define HAVE_LINUX_OS 1
4522 HAVE_LINUX_OS_FALSE='#'
4524 HAVE_LINUX_OS_TRUE='#'
4525 HAVE_LINUX_OS_FALSE=
4529 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4534 HAVE_FREEBSD_OS_TRUE=
4535 HAVE_FREEBSD_OS_FALSE='#'
4537 HAVE_FREEBSD_OS_TRUE='#'
4538 HAVE_FREEBSD_OS_FALSE=
4540 cat >>confdefs.h <<\_ACEOF
4541 #define HAVE_FREEBSD_OS 1
4548 HAVE_FREEBSD_OS_TRUE=
4549 HAVE_FREEBSD_OS_FALSE='#'
4551 HAVE_FREEBSD_OS_TRUE='#'
4552 HAVE_FREEBSD_OS_FALSE=
4556 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4561 HAVE_NETBSD_OS_TRUE=
4562 HAVE_NETBSD_OS_FALSE='#'
4564 HAVE_NETBSD_OS_TRUE='#'
4565 HAVE_NETBSD_OS_FALSE=
4567 cat >>confdefs.h <<\_ACEOF
4568 #define HAVE_NETBSD_OS 1
4575 HAVE_NETBSD_OS_TRUE=
4576 HAVE_NETBSD_OS_FALSE='#'
4578 HAVE_NETBSD_OS_TRUE='#'
4579 HAVE_NETBSD_OS_FALSE=
4583 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4588 HAVE_OPENBSD_OS_TRUE=
4589 HAVE_OPENBSD_OS_FALSE='#'
4591 HAVE_OPENBSD_OS_TRUE='#'
4592 HAVE_OPENBSD_OS_FALSE=
4594 cat >>confdefs.h <<\_ACEOF
4595 #define HAVE_OPENBSD_OS 1
4602 HAVE_OPENBSD_OS_TRUE=
4603 HAVE_OPENBSD_OS_FALSE='#'
4605 HAVE_OPENBSD_OS_TRUE='#'
4606 HAVE_OPENBSD_OS_FALSE=
4610 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4616 HAVE_BSDI_OS_FALSE='#'
4618 HAVE_BSDI_OS_TRUE='#'
4621 cat >>confdefs.h <<\_ACEOF
4622 #define HAVE_BSDI_OS 1
4630 HAVE_BSDI_OS_FALSE='#'
4632 HAVE_BSDI_OS_TRUE='#'
4637 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4643 HAVE_SGI_OS_FALSE='#'
4645 HAVE_SGI_OS_TRUE='#'
4648 cat >>confdefs.h <<\_ACEOF
4649 #define HAVE_SGI_OS 1
4657 HAVE_SGI_OS_FALSE='#'
4659 HAVE_SGI_OS_TRUE='#'
4664 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4670 HAVE_IRIX_OS_FALSE='#'
4672 HAVE_IRIX_OS_TRUE='#'
4675 cat >>confdefs.h <<\_ACEOF
4676 #define HAVE_IRIX_OS 1
4684 HAVE_IRIX_OS_FALSE='#'
4686 HAVE_IRIX_OS_TRUE='#'
4691 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4696 HAVE_DARWIN_OS_TRUE=
4697 HAVE_DARWIN_OS_FALSE='#'
4699 HAVE_DARWIN_OS_TRUE='#'
4700 HAVE_DARWIN_OS_FALSE=
4702 cat >>confdefs.h <<\_ACEOF
4703 #define HAVE_DARWIN_OS 1
4710 HAVE_DARWIN_OS_TRUE=
4711 HAVE_DARWIN_OS_FALSE='#'
4713 HAVE_DARWIN_OS_TRUE='#'
4714 HAVE_DARWIN_OS_FALSE=
4719 # -----------------------------------------------------------
4720 # ----------------------------------------------------------
4721 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4722 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4723 if test "x$DISTNAME" != "x"
4725 echo "distname set to $DISTNAME"
4726 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4729 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4732 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4735 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4738 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4741 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4744 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4747 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4750 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4753 elif test -f /etc/SuSE-release
4756 elif test -d /etc/SuSEconfig
4759 elif test -f /etc/mandrake-release
4762 elif test -f /etc/whitebox-release
4765 elif test -f /etc/redhat-release
4768 elif test -f /etc/gentoo-release
4771 elif test -f /etc/debian_version
4774 elif test -f /etc/slackware-version
4777 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4780 elif test -f /etc/engarde-version
4783 elif test "$CYGWIN" = yes
4786 cat >>confdefs.h <<\_ACEOF
4787 #define HAVE_CYGWIN 1
4793 echo "$as_me:$LINENO: result: done" >&5
4794 echo "${ECHO_T}done" >&6
4797 # --------------------------------------------------
4798 # Suppport for gettext (translations)
4799 # By default, $datadir is ${prefix}/share
4800 # --------------------------------------------------
4801 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4802 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4803 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4804 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4805 echo $ECHO_N "(cached) $ECHO_C" >&6
4807 cat >conftest.make <<\_ACEOF
4809 @echo 'ac_maketemp="$(MAKE)"'
4811 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4812 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4813 if test -n "$ac_maketemp"; then
4814 eval ac_cv_prog_make_${ac_make}_set=yes
4816 eval ac_cv_prog_make_${ac_make}_set=no
4820 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4821 echo "$as_me:$LINENO: result: yes" >&5
4822 echo "${ECHO_T}yes" >&6
4825 echo "$as_me:$LINENO: result: no" >&5
4826 echo "${ECHO_T}no" >&6
4827 SET_MAKE="MAKE=${MAKE-make}"
4833 if test -n "$ac_aux_dir"; then
4834 case "$ac_aux_dir" in
4835 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
4836 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4839 if test -z "$MKINSTALLDIRS"; then
4840 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4845 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4846 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4847 # Check whether --enable-nls or --disable-nls was given.
4848 if test "${enable_nls+set}" = set; then
4849 enableval="$enable_nls"
4854 echo "$as_me:$LINENO: result: $USE_NLS" >&5
4855 echo "${ECHO_T}$USE_NLS" >&6
4862 # Prepare PATH_SEPARATOR.
4863 # The user is always right.
4864 if test "${PATH_SEPARATOR+set}" != set; then
4865 echo "#! /bin/sh" >conf$$.sh
4866 echo "exit 0" >>conf$$.sh
4868 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4876 # Find out how to test for executable files. Don't use a zero-byte file,
4877 # as systems may use methods other than mode bits to determine executability.
4878 cat >conf$$.file <<_ASEOF
4882 chmod +x conf$$.file
4883 if test -x conf$$.file >/dev/null 2>&1; then
4884 ac_executable_p="test -x"
4886 ac_executable_p="test -f"
4890 # Extract the first word of "msgfmt", so it can be a program name with args.
4891 set dummy msgfmt; ac_word=$2
4892 echo "$as_me:$LINENO: checking for $ac_word" >&5
4893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4894 if test "${ac_cv_path_MSGFMT+set}" = set; then
4895 echo $ECHO_N "(cached) $ECHO_C" >&6
4899 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4902 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4903 for ac_dir in $PATH; do
4905 test -z "$ac_dir" && ac_dir=.
4906 for ac_exec_ext in '' $ac_executable_extensions; do
4907 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4908 echo "$as_me: trying $ac_dir/$ac_word..." >&5
4909 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
4910 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4911 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4918 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4922 MSGFMT="$ac_cv_path_MSGFMT"
4923 if test "$MSGFMT" != ":"; then
4924 echo "$as_me:$LINENO: result: $MSGFMT" >&5
4925 echo "${ECHO_T}$MSGFMT" >&6
4927 echo "$as_me:$LINENO: result: no" >&5
4928 echo "${ECHO_T}no" >&6
4931 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4932 set dummy gmsgfmt; ac_word=$2
4933 echo "$as_me:$LINENO: checking for $ac_word" >&5
4934 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4935 if test "${ac_cv_path_GMSGFMT+set}" = set; then
4936 echo $ECHO_N "(cached) $ECHO_C" >&6
4940 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4947 test -z "$as_dir" && as_dir=.
4948 for ac_exec_ext in '' $ac_executable_extensions; do
4949 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4950 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4957 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4961 GMSGFMT=$ac_cv_path_GMSGFMT
4963 if test -n "$GMSGFMT"; then
4964 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4965 echo "${ECHO_T}$GMSGFMT" >&6
4967 echo "$as_me:$LINENO: result: no" >&5
4968 echo "${ECHO_T}no" >&6
4973 # Prepare PATH_SEPARATOR.
4974 # The user is always right.
4975 if test "${PATH_SEPARATOR+set}" != set; then
4976 echo "#! /bin/sh" >conf$$.sh
4977 echo "exit 0" >>conf$$.sh
4979 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4987 # Find out how to test for executable files. Don't use a zero-byte file,
4988 # as systems may use methods other than mode bits to determine executability.
4989 cat >conf$$.file <<_ASEOF
4993 chmod +x conf$$.file
4994 if test -x conf$$.file >/dev/null 2>&1; then
4995 ac_executable_p="test -x"
4997 ac_executable_p="test -f"
5001 # Extract the first word of "xgettext", so it can be a program name with args.
5002 set dummy xgettext; ac_word=$2
5003 echo "$as_me:$LINENO: checking for $ac_word" >&5
5004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5005 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5006 echo $ECHO_N "(cached) $ECHO_C" >&6
5010 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5013 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5014 for ac_dir in $PATH; do
5016 test -z "$ac_dir" && ac_dir=.
5017 for ac_exec_ext in '' $ac_executable_extensions; do
5018 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5019 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5020 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5021 (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
5022 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5029 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5033 XGETTEXT="$ac_cv_path_XGETTEXT"
5034 if test "$XGETTEXT" != ":"; then
5035 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5036 echo "${ECHO_T}$XGETTEXT" >&6
5038 echo "$as_me:$LINENO: result: no" >&5
5039 echo "${ECHO_T}no" >&6
5045 # Prepare PATH_SEPARATOR.
5046 # The user is always right.
5047 if test "${PATH_SEPARATOR+set}" != set; then
5048 echo "#! /bin/sh" >conf$$.sh
5049 echo "exit 0" >>conf$$.sh
5051 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5059 # Find out how to test for executable files. Don't use a zero-byte file,
5060 # as systems may use methods other than mode bits to determine executability.
5061 cat >conf$$.file <<_ASEOF
5065 chmod +x conf$$.file
5066 if test -x conf$$.file >/dev/null 2>&1; then
5067 ac_executable_p="test -x"
5069 ac_executable_p="test -f"
5073 # Extract the first word of "msgmerge", so it can be a program name with args.
5074 set dummy msgmerge; ac_word=$2
5075 echo "$as_me:$LINENO: checking for $ac_word" >&5
5076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5077 if test "${ac_cv_path_MSGMERGE+set}" = set; then
5078 echo $ECHO_N "(cached) $ECHO_C" >&6
5082 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5085 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5086 for ac_dir in $PATH; do
5088 test -z "$ac_dir" && ac_dir=.
5089 for ac_exec_ext in '' $ac_executable_extensions; do
5090 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5091 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5092 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
5093 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5100 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5104 MSGMERGE="$ac_cv_path_MSGMERGE"
5105 if test "$MSGMERGE" != ":"; then
5106 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
5107 echo "${ECHO_T}$MSGMERGE" >&6
5109 echo "$as_me:$LINENO: result: no" >&5
5110 echo "${ECHO_T}no" >&6
5114 if test "$GMSGFMT" != ":"; then
5115 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
5116 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5119 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
5120 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
5121 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
5126 if test "$XGETTEXT" != ":"; then
5127 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5128 (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
5131 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
5132 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
5138 ac_config_commands="$ac_config_commands default-1"
5142 if test "X$prefix" = "XNONE"; then
5143 acl_final_prefix="$ac_default_prefix"
5145 acl_final_prefix="$prefix"
5147 if test "X$exec_prefix" = "XNONE"; then
5148 acl_final_exec_prefix='${prefix}'
5150 acl_final_exec_prefix="$exec_prefix"
5152 acl_save_prefix="$prefix"
5153 prefix="$acl_final_prefix"
5154 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5155 prefix="$acl_save_prefix"
5158 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5159 if test "${with_gnu_ld+set}" = set; then
5160 withval="$with_gnu_ld"
5161 test "$withval" = no || with_gnu_ld=yes
5165 # Prepare PATH_SEPARATOR.
5166 # The user is always right.
5167 if test "${PATH_SEPARATOR+set}" != set; then
5168 echo "#! /bin/sh" >conf$$.sh
5169 echo "exit 0" >>conf$$.sh
5171 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5179 if test "$GCC" = yes; then
5180 # Check if gcc -print-prog-name=ld gives a path.
5181 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5182 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5185 # gcc leaves a trailing carriage return which upsets mingw
5186 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5188 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5191 # Accept absolute paths.
5192 [\\/]* | [A-Za-z]:[\\/]*)
5193 re_direlt='/[^/][^/]*/\.\./'
5194 # Canonicalize the path of ld
5195 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5196 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5197 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5199 test -z "$LD" && LD="$ac_prog"
5202 # If it fails, then pretend we aren't using GCC.
5206 # If it is relative, then search for the first ld in PATH.
5210 elif test "$with_gnu_ld" = yes; then
5211 echo "$as_me:$LINENO: checking for GNU ld" >&5
5212 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5214 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5215 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5217 if test "${acl_cv_path_LD+set}" = set; then
5218 echo $ECHO_N "(cached) $ECHO_C" >&6
5220 if test -z "$LD"; then
5221 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5222 for ac_dir in $PATH; do
5223 test -z "$ac_dir" && ac_dir=.
5224 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5225 acl_cv_path_LD="$ac_dir/$ac_prog"
5226 # Check to see if the program is GNU ld. I'd rather use --version,
5227 # but apparently some GNU ld's only accept -v.
5228 # Break only if it was the GNU/non-GNU ld that we prefer.
5229 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
5230 *GNU* | *'with BFD'*)
5231 test "$with_gnu_ld" != no && break ;;
5233 test "$with_gnu_ld" != yes && break ;;
5239 acl_cv_path_LD="$LD" # Let the user override the test with a path.
5243 LD="$acl_cv_path_LD"
5244 if test -n "$LD"; then
5245 echo "$as_me:$LINENO: result: $LD" >&5
5246 echo "${ECHO_T}$LD" >&6
5248 echo "$as_me:$LINENO: result: no" >&5
5249 echo "${ECHO_T}no" >&6
5251 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5252 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5253 { (exit 1); exit 1; }; }
5254 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5255 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5256 if test "${acl_cv_prog_gnu_ld+set}" = set; then
5257 echo $ECHO_N "(cached) $ECHO_C" >&6
5259 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5260 case `$LD -v 2>&1 </dev/null` in
5261 *GNU* | *'with BFD'*)
5262 acl_cv_prog_gnu_ld=yes ;;
5264 acl_cv_prog_gnu_ld=no ;;
5267 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
5268 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
5269 with_gnu_ld=$acl_cv_prog_gnu_ld
5274 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
5275 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
5276 if test "${acl_cv_rpath+set}" = set; then
5277 echo $ECHO_N "(cached) $ECHO_C" >&6
5280 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5281 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5287 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
5288 echo "${ECHO_T}$acl_cv_rpath" >&6
5290 libext="$acl_cv_libext"
5291 shlibext="$acl_cv_shlibext"
5292 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5293 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5294 hardcode_direct="$acl_cv_hardcode_direct"
5295 hardcode_minus_L="$acl_cv_hardcode_minus_L"
5296 # Check whether --enable-rpath or --disable-rpath was given.
5297 if test "${enable_rpath+set}" = set; then
5298 enableval="$enable_rpath"
5312 acl_save_prefix="$prefix"
5313 prefix="$acl_final_prefix"
5314 acl_save_exec_prefix="$exec_prefix"
5315 exec_prefix="$acl_final_exec_prefix"
5317 eval additional_includedir=\"$includedir\"
5318 eval additional_libdir=\"$libdir\"
5320 exec_prefix="$acl_save_exec_prefix"
5321 prefix="$acl_save_prefix"
5324 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
5325 if test "${with_libiconv_prefix+set}" = set; then
5326 withval="$with_libiconv_prefix"
5328 if test "X$withval" = "Xno"; then
5331 if test "X$withval" = "X"; then
5333 acl_save_prefix="$prefix"
5334 prefix="$acl_final_prefix"
5335 acl_save_exec_prefix="$exec_prefix"
5336 exec_prefix="$acl_final_exec_prefix"
5338 eval additional_includedir=\"$includedir\"
5339 eval additional_libdir=\"$libdir\"
5341 exec_prefix="$acl_save_exec_prefix"
5342 prefix="$acl_save_prefix"
5345 additional_includedir="$withval/include"
5346 additional_libdir="$withval/lib"
5356 names_already_handled=
5357 names_next_round='iconv '
5358 while test -n "$names_next_round"; do
5359 names_this_round="$names_next_round"
5361 for name in $names_this_round; do
5363 for n in $names_already_handled; do
5364 if test "$n" = "$name"; then
5369 if test -z "$already_handled"; then
5370 names_already_handled="$names_already_handled $name"
5371 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5372 eval value=\"\$HAVE_LIB$uppername\"
5373 if test -n "$value"; then
5374 if test "$value" = yes; then
5375 eval value=\"\$LIB$uppername\"
5376 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5377 eval value=\"\$LTLIB$uppername\"
5378 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5387 if test $use_additional = yes; then
5388 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
5389 found_dir="$additional_libdir"
5390 found_so="$additional_libdir/lib$name.$shlibext"
5391 if test -f "$additional_libdir/lib$name.la"; then
5392 found_la="$additional_libdir/lib$name.la"
5395 if test -f "$additional_libdir/lib$name.$libext"; then
5396 found_dir="$additional_libdir"
5397 found_a="$additional_libdir/lib$name.$libext"
5398 if test -f "$additional_libdir/lib$name.la"; then
5399 found_la="$additional_libdir/lib$name.la"
5404 if test "X$found_dir" = "X"; then
5405 for x in $LDFLAGS $LTLIBICONV; do
5407 acl_save_prefix="$prefix"
5408 prefix="$acl_final_prefix"
5409 acl_save_exec_prefix="$exec_prefix"
5410 exec_prefix="$acl_final_exec_prefix"
5412 exec_prefix="$acl_save_exec_prefix"
5413 prefix="$acl_save_prefix"
5417 dir=`echo "X$x" | sed -e 's/^X-L//'`
5418 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
5420 found_so="$dir/lib$name.$shlibext"
5421 if test -f "$dir/lib$name.la"; then
5422 found_la="$dir/lib$name.la"
5425 if test -f "$dir/lib$name.$libext"; then
5427 found_a="$dir/lib$name.$libext"
5428 if test -f "$dir/lib$name.la"; then
5429 found_la="$dir/lib$name.la"
5435 if test "X$found_dir" != "X"; then
5440 if test "X$found_dir" != "X"; then
5441 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5442 if test "X$found_so" != "X"; then
5443 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
5444 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5447 for x in $ltrpathdirs; do
5448 if test "X$x" = "X$found_dir"; then
5453 if test -z "$haveit"; then
5454 ltrpathdirs="$ltrpathdirs $found_dir"
5456 if test "$hardcode_direct" = yes; then
5457 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5459 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
5460 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5462 for x in $rpathdirs; do
5463 if test "X$x" = "X$found_dir"; then
5468 if test -z "$haveit"; then
5469 rpathdirs="$rpathdirs $found_dir"
5473 for x in $LDFLAGS $LIBICONV; do
5475 acl_save_prefix="$prefix"
5476 prefix="$acl_final_prefix"
5477 acl_save_exec_prefix="$exec_prefix"
5478 exec_prefix="$acl_final_exec_prefix"
5480 exec_prefix="$acl_save_exec_prefix"
5481 prefix="$acl_save_prefix"
5483 if test "X$x" = "X-L$found_dir"; then
5488 if test -z "$haveit"; then
5489 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5491 if test "$hardcode_minus_L" != no; then
5492 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5494 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5500 if test "X$found_a" != "X"; then
5501 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5503 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5506 additional_includedir=
5507 case "$found_dir" in
5509 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
5510 additional_includedir="$basedir/include"
5513 if test "X$additional_includedir" != "X"; then
5514 if test "X$additional_includedir" != "X/usr/include"; then
5516 if test "X$additional_includedir" = "X/usr/local/include"; then
5517 if test -n "$GCC"; then
5519 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5523 if test -z "$haveit"; then
5524 for x in $CPPFLAGS $INCICONV; do
5526 acl_save_prefix="$prefix"
5527 prefix="$acl_final_prefix"
5528 acl_save_exec_prefix="$exec_prefix"
5529 exec_prefix="$acl_final_exec_prefix"
5531 exec_prefix="$acl_save_exec_prefix"
5532 prefix="$acl_save_prefix"
5534 if test "X$x" = "X-I$additional_includedir"; then
5539 if test -z "$haveit"; then
5540 if test -d "$additional_includedir"; then
5541 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5547 if test -n "$found_la"; then
5548 save_libdir="$libdir"
5550 */* | *\\*) . "$found_la" ;;
5551 *) . "./$found_la" ;;
5553 libdir="$save_libdir"
5554 for dep in $dependency_libs; do
5557 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5558 if test "X$additional_libdir" != "X/usr/lib"; then
5560 if test "X$additional_libdir" = "X/usr/local/lib"; then
5561 if test -n "$GCC"; then
5563 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5567 if test -z "$haveit"; then
5569 for x in $LDFLAGS $LIBICONV; do
5571 acl_save_prefix="$prefix"
5572 prefix="$acl_final_prefix"
5573 acl_save_exec_prefix="$exec_prefix"
5574 exec_prefix="$acl_final_exec_prefix"
5576 exec_prefix="$acl_save_exec_prefix"
5577 prefix="$acl_save_prefix"
5579 if test "X$x" = "X-L$additional_libdir"; then
5584 if test -z "$haveit"; then
5585 if test -d "$additional_libdir"; then
5586 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5590 for x in $LDFLAGS $LTLIBICONV; do
5592 acl_save_prefix="$prefix"
5593 prefix="$acl_final_prefix"
5594 acl_save_exec_prefix="$exec_prefix"
5595 exec_prefix="$acl_final_exec_prefix"
5597 exec_prefix="$acl_save_exec_prefix"
5598 prefix="$acl_save_prefix"
5600 if test "X$x" = "X-L$additional_libdir"; then
5605 if test -z "$haveit"; then
5606 if test -d "$additional_libdir"; then
5607 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5614 dir=`echo "X$dep" | sed -e 's/^X-R//'`
5615 if test "$enable_rpath" != no; then
5617 for x in $rpathdirs; do
5618 if test "X$x" = "X$dir"; then
5623 if test -z "$haveit"; then
5624 rpathdirs="$rpathdirs $dir"
5627 for x in $ltrpathdirs; do
5628 if test "X$x" = "X$dir"; then
5633 if test -z "$haveit"; then
5634 ltrpathdirs="$ltrpathdirs $dir"
5639 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5642 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5645 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5646 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5652 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5653 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5659 if test "X$rpathdirs" != "X"; then
5660 if test -n "$hardcode_libdir_separator"; then
5662 for found_dir in $rpathdirs; do
5663 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
5665 acl_save_libdir="$libdir"
5667 eval flag=\"$hardcode_libdir_flag_spec\"
5668 libdir="$acl_save_libdir"
5669 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5671 for found_dir in $rpathdirs; do
5672 acl_save_libdir="$libdir"
5674 eval flag=\"$hardcode_libdir_flag_spec\"
5675 libdir="$acl_save_libdir"
5676 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5680 if test "X$ltrpathdirs" != "X"; then
5681 for found_dir in $ltrpathdirs; do
5682 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5703 echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
5704 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6
5705 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
5706 echo $ECHO_N "(cached) $ECHO_C" >&6
5708 gt_save_CPPFLAGS="$CPPFLAGS"
5709 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
5710 gt_save_LIBS="$LIBS"
5711 LIBS="$LIBS -framework CoreFoundation"
5712 cat >conftest.$ac_ext <<_ACEOF
5715 cat confdefs.h >>conftest.$ac_ext
5716 cat >>conftest.$ac_ext <<_ACEOF
5717 /* end confdefs.h. */
5718 #include <CFPreferences.h>
5722 CFPreferencesCopyAppValue(NULL, NULL)
5727 rm -f conftest.$ac_objext conftest$ac_exeext
5728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5729 (eval $ac_link) 2>conftest.er1
5731 grep -v '^ *+' conftest.er1 >conftest.err
5733 cat conftest.err >&5
5734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735 (exit $ac_status); } &&
5736 { ac_try='test -z "$ac_c_werror_flag"
5737 || test ! -s conftest.err'
5738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742 (exit $ac_status); }; } &&
5743 { ac_try='test -s conftest$ac_exeext'
5744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748 (exit $ac_status); }; }; then
5749 gt_cv_func_CFPreferencesCopyAppValue=yes
5751 echo "$as_me: failed program was:" >&5
5752 sed 's/^/| /' conftest.$ac_ext >&5
5754 gt_cv_func_CFPreferencesCopyAppValue=no
5756 rm -f conftest.err conftest.$ac_objext \
5757 conftest$ac_exeext conftest.$ac_ext
5758 CPPFLAGS="$gt_save_CPPFLAGS"
5759 LIBS="$gt_save_LIBS"
5761 echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
5762 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6
5763 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
5765 cat >>confdefs.h <<\_ACEOF
5766 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
5770 echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
5771 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6
5772 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
5773 echo $ECHO_N "(cached) $ECHO_C" >&6
5775 gt_save_CPPFLAGS="$CPPFLAGS"
5776 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
5777 gt_save_LIBS="$LIBS"
5778 LIBS="$LIBS -framework CoreFoundation"
5779 cat >conftest.$ac_ext <<_ACEOF
5782 cat confdefs.h >>conftest.$ac_ext
5783 cat >>conftest.$ac_ext <<_ACEOF
5784 /* end confdefs.h. */
5785 #include <CFLocale.h>
5789 CFLocaleCopyCurrent();
5794 rm -f conftest.$ac_objext conftest$ac_exeext
5795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5796 (eval $ac_link) 2>conftest.er1
5798 grep -v '^ *+' conftest.er1 >conftest.err
5800 cat conftest.err >&5
5801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5802 (exit $ac_status); } &&
5803 { ac_try='test -z "$ac_c_werror_flag"
5804 || test ! -s conftest.err'
5805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5809 (exit $ac_status); }; } &&
5810 { ac_try='test -s conftest$ac_exeext'
5811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815 (exit $ac_status); }; }; then
5816 gt_cv_func_CFLocaleCopyCurrent=yes
5818 echo "$as_me: failed program was:" >&5
5819 sed 's/^/| /' conftest.$ac_ext >&5
5821 gt_cv_func_CFLocaleCopyCurrent=no
5823 rm -f conftest.err conftest.$ac_objext \
5824 conftest$ac_exeext conftest.$ac_ext
5825 CPPFLAGS="$gt_save_CPPFLAGS"
5826 LIBS="$gt_save_LIBS"
5828 echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
5829 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6
5830 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5832 cat >>confdefs.h <<\_ACEOF
5833 #define HAVE_CFLOCALECOPYCURRENT 1
5838 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5839 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
5845 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5846 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5847 # Check whether --enable-nls or --disable-nls was given.
5848 if test "${enable_nls+set}" = set; then
5849 enableval="$enable_nls"
5854 echo "$as_me:$LINENO: result: $USE_NLS" >&5
5855 echo "${ECHO_T}$USE_NLS" >&6
5864 if test "$USE_NLS" = "yes"; then
5865 gt_use_preinstalled_gnugettext=no
5872 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
5873 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
5874 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
5875 echo $ECHO_N "(cached) $ECHO_C" >&6
5877 cat >conftest.$ac_ext <<_ACEOF
5880 cat confdefs.h >>conftest.$ac_ext
5881 cat >>conftest.$ac_ext <<_ACEOF
5882 /* end confdefs.h. */
5883 #include <libintl.h>
5884 extern int _nl_msg_cat_cntr;
5885 extern int *_nl_domain_bindings;
5889 bindtextdomain ("", "");
5890 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
5895 rm -f conftest.$ac_objext conftest$ac_exeext
5896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5897 (eval $ac_link) 2>conftest.er1
5899 grep -v '^ *+' conftest.er1 >conftest.err
5901 cat conftest.err >&5
5902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903 (exit $ac_status); } &&
5904 { ac_try='test -z "$ac_c_werror_flag"
5905 || test ! -s conftest.err'
5906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910 (exit $ac_status); }; } &&
5911 { ac_try='test -s conftest$ac_exeext'
5912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916 (exit $ac_status); }; }; then
5917 gt_cv_func_gnugettext1_libc=yes
5919 echo "$as_me: failed program was:" >&5
5920 sed 's/^/| /' conftest.$ac_ext >&5
5922 gt_cv_func_gnugettext1_libc=no
5924 rm -f conftest.err conftest.$ac_objext \
5925 conftest$ac_exeext conftest.$ac_ext
5927 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
5928 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
5930 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
5936 am_save_CPPFLAGS="$CPPFLAGS"
5938 for element in $INCICONV; do
5940 for x in $CPPFLAGS; do
5942 acl_save_prefix="$prefix"
5943 prefix="$acl_final_prefix"
5944 acl_save_exec_prefix="$exec_prefix"
5945 exec_prefix="$acl_final_exec_prefix"
5947 exec_prefix="$acl_save_exec_prefix"
5948 prefix="$acl_save_prefix"
5950 if test "X$x" = "X$element"; then
5955 if test -z "$haveit"; then
5956 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5961 echo "$as_me:$LINENO: checking for iconv" >&5
5962 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
5963 if test "${am_cv_func_iconv+set}" = set; then
5964 echo $ECHO_N "(cached) $ECHO_C" >&6
5967 am_cv_func_iconv="no, consider installing GNU libiconv"
5969 cat >conftest.$ac_ext <<_ACEOF
5972 cat confdefs.h >>conftest.$ac_ext
5973 cat >>conftest.$ac_ext <<_ACEOF
5974 /* end confdefs.h. */
5980 iconv_t cd = iconv_open("","");
5981 iconv(cd,NULL,NULL,NULL,NULL);
5987 rm -f conftest.$ac_objext conftest$ac_exeext
5988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5989 (eval $ac_link) 2>conftest.er1
5991 grep -v '^ *+' conftest.er1 >conftest.err
5993 cat conftest.err >&5
5994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995 (exit $ac_status); } &&
5996 { ac_try='test -z "$ac_c_werror_flag"
5997 || test ! -s conftest.err'
5998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002 (exit $ac_status); }; } &&
6003 { ac_try='test -s conftest$ac_exeext'
6004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008 (exit $ac_status); }; }; then
6009 am_cv_func_iconv=yes
6011 echo "$as_me: failed program was:" >&5
6012 sed 's/^/| /' conftest.$ac_ext >&5
6015 rm -f conftest.err conftest.$ac_objext \
6016 conftest$ac_exeext conftest.$ac_ext
6017 if test "$am_cv_func_iconv" != yes; then
6018 am_save_LIBS="$LIBS"
6019 LIBS="$LIBS $LIBICONV"
6020 cat >conftest.$ac_ext <<_ACEOF
6023 cat confdefs.h >>conftest.$ac_ext
6024 cat >>conftest.$ac_ext <<_ACEOF
6025 /* end confdefs.h. */
6031 iconv_t cd = iconv_open("","");
6032 iconv(cd,NULL,NULL,NULL,NULL);
6038 rm -f conftest.$ac_objext conftest$ac_exeext
6039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6040 (eval $ac_link) 2>conftest.er1
6042 grep -v '^ *+' conftest.er1 >conftest.err
6044 cat conftest.err >&5
6045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6046 (exit $ac_status); } &&
6047 { ac_try='test -z "$ac_c_werror_flag"
6048 || test ! -s conftest.err'
6049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053 (exit $ac_status); }; } &&
6054 { ac_try='test -s conftest$ac_exeext'
6055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6059 (exit $ac_status); }; }; then
6061 am_cv_func_iconv=yes
6063 echo "$as_me: failed program was:" >&5
6064 sed 's/^/| /' conftest.$ac_ext >&5
6067 rm -f conftest.err conftest.$ac_objext \
6068 conftest$ac_exeext conftest.$ac_ext
6069 LIBS="$am_save_LIBS"
6073 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
6074 echo "${ECHO_T}$am_cv_func_iconv" >&6
6075 if test "$am_cv_func_iconv" = yes; then
6077 cat >>confdefs.h <<\_ACEOF
6078 #define HAVE_ICONV 1
6082 if test "$am_cv_lib_iconv" = yes; then
6083 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
6084 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
6085 echo "$as_me:$LINENO: result: $LIBICONV" >&5
6086 echo "${ECHO_T}$LIBICONV" >&6
6088 CPPFLAGS="$am_save_CPPFLAGS"
6100 acl_save_prefix="$prefix"
6101 prefix="$acl_final_prefix"
6102 acl_save_exec_prefix="$exec_prefix"
6103 exec_prefix="$acl_final_exec_prefix"
6105 eval additional_includedir=\"$includedir\"
6106 eval additional_libdir=\"$libdir\"
6108 exec_prefix="$acl_save_exec_prefix"
6109 prefix="$acl_save_prefix"
6112 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
6113 if test "${with_libintl_prefix+set}" = set; then
6114 withval="$with_libintl_prefix"
6116 if test "X$withval" = "Xno"; then
6119 if test "X$withval" = "X"; then
6121 acl_save_prefix="$prefix"
6122 prefix="$acl_final_prefix"
6123 acl_save_exec_prefix="$exec_prefix"
6124 exec_prefix="$acl_final_exec_prefix"
6126 eval additional_includedir=\"$includedir\"
6127 eval additional_libdir=\"$libdir\"
6129 exec_prefix="$acl_save_exec_prefix"
6130 prefix="$acl_save_prefix"
6133 additional_includedir="$withval/include"
6134 additional_libdir="$withval/lib"
6144 names_already_handled=
6145 names_next_round='intl '
6146 while test -n "$names_next_round"; do
6147 names_this_round="$names_next_round"
6149 for name in $names_this_round; do
6151 for n in $names_already_handled; do
6152 if test "$n" = "$name"; then
6157 if test -z "$already_handled"; then
6158 names_already_handled="$names_already_handled $name"
6159 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6160 eval value=\"\$HAVE_LIB$uppername\"
6161 if test -n "$value"; then
6162 if test "$value" = yes; then
6163 eval value=\"\$LIB$uppername\"
6164 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
6165 eval value=\"\$LTLIB$uppername\"
6166 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
6175 if test $use_additional = yes; then
6176 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6177 found_dir="$additional_libdir"
6178 found_so="$additional_libdir/lib$name.$shlibext"
6179 if test -f "$additional_libdir/lib$name.la"; then
6180 found_la="$additional_libdir/lib$name.la"
6183 if test -f "$additional_libdir/lib$name.$libext"; then
6184 found_dir="$additional_libdir"
6185 found_a="$additional_libdir/lib$name.$libext"
6186 if test -f "$additional_libdir/lib$name.la"; then
6187 found_la="$additional_libdir/lib$name.la"
6192 if test "X$found_dir" = "X"; then
6193 for x in $LDFLAGS $LTLIBINTL; do
6195 acl_save_prefix="$prefix"
6196 prefix="$acl_final_prefix"
6197 acl_save_exec_prefix="$exec_prefix"
6198 exec_prefix="$acl_final_exec_prefix"
6200 exec_prefix="$acl_save_exec_prefix"
6201 prefix="$acl_save_prefix"
6205 dir=`echo "X$x" | sed -e 's/^X-L//'`
6206 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6208 found_so="$dir/lib$name.$shlibext"
6209 if test -f "$dir/lib$name.la"; then
6210 found_la="$dir/lib$name.la"
6213 if test -f "$dir/lib$name.$libext"; then
6215 found_a="$dir/lib$name.$libext"
6216 if test -f "$dir/lib$name.la"; then
6217 found_la="$dir/lib$name.la"
6223 if test "X$found_dir" != "X"; then
6228 if test "X$found_dir" != "X"; then
6229 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6230 if test "X$found_so" != "X"; then
6231 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6232 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6235 for x in $ltrpathdirs; do
6236 if test "X$x" = "X$found_dir"; then
6241 if test -z "$haveit"; then
6242 ltrpathdirs="$ltrpathdirs $found_dir"
6244 if test "$hardcode_direct" = yes; then
6245 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6247 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6248 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6250 for x in $rpathdirs; do
6251 if test "X$x" = "X$found_dir"; then
6256 if test -z "$haveit"; then
6257 rpathdirs="$rpathdirs $found_dir"
6261 for x in $LDFLAGS $LIBINTL; do
6263 acl_save_prefix="$prefix"
6264 prefix="$acl_final_prefix"
6265 acl_save_exec_prefix="$exec_prefix"
6266 exec_prefix="$acl_final_exec_prefix"
6268 exec_prefix="$acl_save_exec_prefix"
6269 prefix="$acl_save_prefix"
6271 if test "X$x" = "X-L$found_dir"; then
6276 if test -z "$haveit"; then
6277 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6279 if test "$hardcode_minus_L" != no; then
6280 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6282 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6288 if test "X$found_a" != "X"; then
6289 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
6291 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
6294 additional_includedir=
6295 case "$found_dir" in
6297 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6298 additional_includedir="$basedir/include"
6301 if test "X$additional_includedir" != "X"; then
6302 if test "X$additional_includedir" != "X/usr/include"; then
6304 if test "X$additional_includedir" = "X/usr/local/include"; then
6305 if test -n "$GCC"; then
6307 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6311 if test -z "$haveit"; then
6312 for x in $CPPFLAGS $INCINTL; do
6314 acl_save_prefix="$prefix"
6315 prefix="$acl_final_prefix"
6316 acl_save_exec_prefix="$exec_prefix"
6317 exec_prefix="$acl_final_exec_prefix"
6319 exec_prefix="$acl_save_exec_prefix"
6320 prefix="$acl_save_prefix"
6322 if test "X$x" = "X-I$additional_includedir"; then
6327 if test -z "$haveit"; then
6328 if test -d "$additional_includedir"; then
6329 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
6335 if test -n "$found_la"; then
6336 save_libdir="$libdir"
6338 */* | *\\*) . "$found_la" ;;
6339 *) . "./$found_la" ;;
6341 libdir="$save_libdir"
6342 for dep in $dependency_libs; do
6345 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6346 if test "X$additional_libdir" != "X/usr/lib"; then
6348 if test "X$additional_libdir" = "X/usr/local/lib"; then
6349 if test -n "$GCC"; then
6351 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6355 if test -z "$haveit"; then
6357 for x in $LDFLAGS $LIBINTL; do
6359 acl_save_prefix="$prefix"
6360 prefix="$acl_final_prefix"
6361 acl_save_exec_prefix="$exec_prefix"
6362 exec_prefix="$acl_final_exec_prefix"
6364 exec_prefix="$acl_save_exec_prefix"
6365 prefix="$acl_save_prefix"
6367 if test "X$x" = "X-L$additional_libdir"; then
6372 if test -z "$haveit"; then
6373 if test -d "$additional_libdir"; then
6374 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
6378 for x in $LDFLAGS $LTLIBINTL; do
6380 acl_save_prefix="$prefix"
6381 prefix="$acl_final_prefix"
6382 acl_save_exec_prefix="$exec_prefix"
6383 exec_prefix="$acl_final_exec_prefix"
6385 exec_prefix="$acl_save_exec_prefix"
6386 prefix="$acl_save_prefix"
6388 if test "X$x" = "X-L$additional_libdir"; then
6393 if test -z "$haveit"; then
6394 if test -d "$additional_libdir"; then
6395 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
6402 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6403 if test "$enable_rpath" != no; then
6405 for x in $rpathdirs; do
6406 if test "X$x" = "X$dir"; then
6411 if test -z "$haveit"; then
6412 rpathdirs="$rpathdirs $dir"
6415 for x in $ltrpathdirs; do
6416 if test "X$x" = "X$dir"; then
6421 if test -z "$haveit"; then
6422 ltrpathdirs="$ltrpathdirs $dir"
6427 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6430 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6433 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
6434 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
6440 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6441 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
6447 if test "X$rpathdirs" != "X"; then
6448 if test -n "$hardcode_libdir_separator"; then
6450 for found_dir in $rpathdirs; do
6451 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6453 acl_save_libdir="$libdir"
6455 eval flag=\"$hardcode_libdir_flag_spec\"
6456 libdir="$acl_save_libdir"
6457 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6459 for found_dir in $rpathdirs; do
6460 acl_save_libdir="$libdir"
6462 eval flag=\"$hardcode_libdir_flag_spec\"
6463 libdir="$acl_save_libdir"
6464 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6468 if test "X$ltrpathdirs" != "X"; then
6469 for found_dir in $ltrpathdirs; do
6470 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
6474 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
6475 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
6476 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
6477 echo $ECHO_N "(cached) $ECHO_C" >&6
6479 gt_save_CPPFLAGS="$CPPFLAGS"
6480 CPPFLAGS="$CPPFLAGS $INCINTL"
6481 gt_save_LIBS="$LIBS"
6482 LIBS="$LIBS $LIBINTL"
6483 cat >conftest.$ac_ext <<_ACEOF
6486 cat confdefs.h >>conftest.$ac_ext
6487 cat >>conftest.$ac_ext <<_ACEOF
6488 /* end confdefs.h. */
6489 #include <libintl.h>
6490 extern int _nl_msg_cat_cntr;
6495 const char *_nl_expand_alias (const char *);
6499 bindtextdomain ("", "");
6500 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6505 rm -f conftest.$ac_objext conftest$ac_exeext
6506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6507 (eval $ac_link) 2>conftest.er1
6509 grep -v '^ *+' conftest.er1 >conftest.err
6511 cat conftest.err >&5
6512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6513 (exit $ac_status); } &&
6514 { ac_try='test -z "$ac_c_werror_flag"
6515 || test ! -s conftest.err'
6516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520 (exit $ac_status); }; } &&
6521 { ac_try='test -s conftest$ac_exeext'
6522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526 (exit $ac_status); }; }; then
6527 gt_cv_func_gnugettext1_libintl=yes
6529 echo "$as_me: failed program was:" >&5
6530 sed 's/^/| /' conftest.$ac_ext >&5
6532 gt_cv_func_gnugettext1_libintl=no
6534 rm -f conftest.err conftest.$ac_objext \
6535 conftest$ac_exeext conftest.$ac_ext
6536 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
6537 LIBS="$LIBS $LIBICONV"
6538 cat >conftest.$ac_ext <<_ACEOF
6541 cat confdefs.h >>conftest.$ac_ext
6542 cat >>conftest.$ac_ext <<_ACEOF
6543 /* end confdefs.h. */
6544 #include <libintl.h>
6545 extern int _nl_msg_cat_cntr;
6550 const char *_nl_expand_alias (const char *);
6554 bindtextdomain ("", "");
6555 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6560 rm -f conftest.$ac_objext conftest$ac_exeext
6561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6562 (eval $ac_link) 2>conftest.er1
6564 grep -v '^ *+' conftest.er1 >conftest.err
6566 cat conftest.err >&5
6567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6568 (exit $ac_status); } &&
6569 { ac_try='test -z "$ac_c_werror_flag"
6570 || test ! -s conftest.err'
6571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6575 (exit $ac_status); }; } &&
6576 { ac_try='test -s conftest$ac_exeext'
6577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6581 (exit $ac_status); }; }; then
6582 LIBINTL="$LIBINTL $LIBICONV"
6583 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
6584 gt_cv_func_gnugettext1_libintl=yes
6587 echo "$as_me: failed program was:" >&5
6588 sed 's/^/| /' conftest.$ac_ext >&5
6591 rm -f conftest.err conftest.$ac_objext \
6592 conftest$ac_exeext conftest.$ac_ext
6594 CPPFLAGS="$gt_save_CPPFLAGS"
6595 LIBS="$gt_save_LIBS"
6597 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
6598 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
6601 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
6602 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
6603 && test "$PACKAGE" != gettext-runtime \
6604 && test "$PACKAGE" != gettext-tools; }; then
6605 gt_use_preinstalled_gnugettext=yes
6614 if test -n "$INTL_MACOSX_LIBS"; then
6615 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6616 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6617 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
6618 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
6622 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6623 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6625 cat >>confdefs.h <<\_ACEOF
6626 #define ENABLE_NLS 1
6634 echo "$as_me:$LINENO: checking whether to use NLS" >&5
6635 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
6636 echo "$as_me:$LINENO: result: $USE_NLS" >&5
6637 echo "${ECHO_T}$USE_NLS" >&6
6638 if test "$USE_NLS" = "yes"; then
6639 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
6640 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
6641 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6642 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6643 gt_source="external libintl"
6648 gt_source="included intl directory"
6650 echo "$as_me:$LINENO: result: $gt_source" >&5
6651 echo "${ECHO_T}$gt_source" >&6
6654 if test "$USE_NLS" = "yes"; then
6656 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6657 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6658 echo "$as_me:$LINENO: checking how to link with libintl" >&5
6659 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
6660 echo "$as_me:$LINENO: result: $LIBINTL" >&5
6661 echo "${ECHO_T}$LIBINTL" >&6
6663 for element in $INCINTL; do
6665 for x in $CPPFLAGS; do
6667 acl_save_prefix="$prefix"
6668 prefix="$acl_final_prefix"
6669 acl_save_exec_prefix="$exec_prefix"
6670 exec_prefix="$acl_final_exec_prefix"
6672 exec_prefix="$acl_save_exec_prefix"
6673 prefix="$acl_save_prefix"
6675 if test "X$x" = "X$element"; then
6680 if test -z "$haveit"; then
6681 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6688 cat >>confdefs.h <<\_ACEOF
6689 #define HAVE_GETTEXT 1
6693 cat >>confdefs.h <<\_ACEOF
6694 #define HAVE_DCGETTEXT 1
6711 if test x${prefix} = xNONE ; then
6712 if test `eval echo ${datadir}` = NONE/share ; then
6717 # ------------------------------------------------------------------
6718 # If the user has not set --prefix, we set our default to nothing.
6719 # In this case, if the user has not set --sysconfdir, we set it
6720 # to the package default of /etc/bacula. If either --prefix or
6721 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
6722 # ------------------------------------------------------------------
6723 if test x${prefix} = xNONE ; then
6724 if test `eval echo ${sysconfdir}` = NONE/etc ; then
6725 sysconfdir=/etc/bacula
6729 sysconfdir=`eval echo ${sysconfdir}`
6730 datadir=`eval echo ${datadir}`
6731 localedir=`eval echo ${datadir}/locale`
6732 cat >>confdefs.h <<_ACEOF
6733 #define LOCALEDIR "$localedir"
6737 # -------------------------------------------------------------------------
6738 # If the user has not set --exec-prefix, we default to ${prefix}
6739 # -------------------------------------------------------------------------
6740 if test x${exec_prefix} = xNONE ; then
6741 exec_prefix=${prefix}
6744 # ------------------------------------------------------------------
6745 # If the user has not set --sbindir, we set our default as /sbin
6746 # ------------------------------------------------------------------
6747 if test x$sbindir = x'${exec_prefix}/sbin' ; then
6748 sbindir=${exec_prefix}/sbin
6750 sbindir=`eval echo ${sbindir}`
6752 # -------------------------------------------------------------------------
6753 # If the user has not set --mandir, we default to /usr/share/man
6754 # -------------------------------------------------------------------------
6755 if test x$mandir = x'${prefix}/man' ; then
6756 mandir=/usr/share/man
6760 # ------------------------------------------------------------------
6761 # All list of languages for which a translation exist. Each
6762 # language is separated by a space.
6763 # ------------------------------------------------------------------
6766 for ac_prog in msgfmt
6768 # Extract the first word of "$ac_prog", so it can be a program name with args.
6769 set dummy $ac_prog; ac_word=$2
6770 echo "$as_me:$LINENO: checking for $ac_word" >&5
6771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6772 if test "${ac_cv_path_MSGFMT+set}" = set; then
6773 echo $ECHO_N "(cached) $ECHO_C" >&6
6777 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6784 test -z "$as_dir" && as_dir=.
6785 for ac_exec_ext in '' $ac_executable_extensions; do
6786 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6787 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
6788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6797 MSGFMT=$ac_cv_path_MSGFMT
6799 if test -n "$MSGFMT"; then
6800 echo "$as_me:$LINENO: result: $MSGFMT" >&5
6801 echo "${ECHO_T}$MSGFMT" >&6
6803 echo "$as_me:$LINENO: result: no" >&5
6804 echo "${ECHO_T}no" >&6
6807 test -n "$MSGFMT" && break
6809 test -n "$MSGFMT" || MSGFMT="no"
6811 if test "$MSGFMT" = "no"
6813 echo 'msgfmt program not found, disabling NLS !'
6815 USE_INCLUDED_LIBINTL=no
6818 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
6819 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6
6820 if test "${ac_cv_gnu_library_2+set}" = set; then
6821 echo $ECHO_N "(cached) $ECHO_C" >&6
6823 cat >conftest.$ac_ext <<_ACEOF
6826 cat confdefs.h >>conftest.$ac_ext
6827 cat >>conftest.$ac_ext <<_ACEOF
6828 /* end confdefs.h. */
6830 #include <features.h>
6831 #ifdef __GNU_LIBRARY__
6832 #if (__GLIBC__ >= 2)
6838 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6839 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
6840 ac_cv_gnu_library_2=yes
6842 ac_cv_gnu_library_2=no
6849 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
6850 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6
6852 GLIBC2="$ac_cv_gnu_library_2"
6855 echo "$as_me:$LINENO: checking for library containing strerror" >&5
6856 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
6857 if test "${ac_cv_search_strerror+set}" = set; then
6858 echo $ECHO_N "(cached) $ECHO_C" >&6
6860 ac_func_search_save_LIBS=$LIBS
6861 ac_cv_search_strerror=no
6862 cat >conftest.$ac_ext <<_ACEOF
6865 cat confdefs.h >>conftest.$ac_ext
6866 cat >>conftest.$ac_ext <<_ACEOF
6867 /* end confdefs.h. */
6869 /* Override any gcc2 internal prototype to avoid an error. */
6873 /* We use char because int might match the return type of a gcc2
6874 builtin and then its argument prototype would still apply. */
6884 rm -f conftest.$ac_objext conftest$ac_exeext
6885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6886 (eval $ac_link) 2>conftest.er1
6888 grep -v '^ *+' conftest.er1 >conftest.err
6890 cat conftest.err >&5
6891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6892 (exit $ac_status); } &&
6893 { ac_try='test -z "$ac_c_werror_flag"
6894 || test ! -s conftest.err'
6895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6899 (exit $ac_status); }; } &&
6900 { ac_try='test -s conftest$ac_exeext'
6901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6905 (exit $ac_status); }; }; then
6906 ac_cv_search_strerror="none required"
6908 echo "$as_me: failed program was:" >&5
6909 sed 's/^/| /' conftest.$ac_ext >&5
6912 rm -f conftest.err conftest.$ac_objext \
6913 conftest$ac_exeext conftest.$ac_ext
6914 if test "$ac_cv_search_strerror" = no; then
6915 for ac_lib in cposix; do
6916 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6917 cat >conftest.$ac_ext <<_ACEOF
6920 cat confdefs.h >>conftest.$ac_ext
6921 cat >>conftest.$ac_ext <<_ACEOF
6922 /* end confdefs.h. */
6924 /* Override any gcc2 internal prototype to avoid an error. */
6928 /* We use char because int might match the return type of a gcc2
6929 builtin and then its argument prototype would still apply. */
6939 rm -f conftest.$ac_objext conftest$ac_exeext
6940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6941 (eval $ac_link) 2>conftest.er1
6943 grep -v '^ *+' conftest.er1 >conftest.err
6945 cat conftest.err >&5
6946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947 (exit $ac_status); } &&
6948 { ac_try='test -z "$ac_c_werror_flag"
6949 || test ! -s conftest.err'
6950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6954 (exit $ac_status); }; } &&
6955 { ac_try='test -s conftest$ac_exeext'
6956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6960 (exit $ac_status); }; }; then
6961 ac_cv_search_strerror="-l$ac_lib"
6964 echo "$as_me: failed program was:" >&5
6965 sed 's/^/| /' conftest.$ac_ext >&5
6968 rm -f conftest.err conftest.$ac_objext \
6969 conftest$ac_exeext conftest.$ac_ext
6972 LIBS=$ac_func_search_save_LIBS
6974 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
6975 echo "${ECHO_T}$ac_cv_search_strerror" >&6
6976 if test "$ac_cv_search_strerror" != no; then
6977 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
6981 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6982 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6983 if test "${ac_cv_header_stdc+set}" = set; then
6984 echo $ECHO_N "(cached) $ECHO_C" >&6
6986 cat >conftest.$ac_ext <<_ACEOF
6989 cat confdefs.h >>conftest.$ac_ext
6990 cat >>conftest.$ac_ext <<_ACEOF
6991 /* end confdefs.h. */
7005 rm -f conftest.$ac_objext
7006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7007 (eval $ac_compile) 2>conftest.er1
7009 grep -v '^ *+' conftest.er1 >conftest.err
7011 cat conftest.err >&5
7012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7013 (exit $ac_status); } &&
7014 { ac_try='test -z "$ac_c_werror_flag"
7015 || test ! -s conftest.err'
7016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7020 (exit $ac_status); }; } &&
7021 { ac_try='test -s conftest.$ac_objext'
7022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7026 (exit $ac_status); }; }; then
7027 ac_cv_header_stdc=yes
7029 echo "$as_me: failed program was:" >&5
7030 sed 's/^/| /' conftest.$ac_ext >&5
7032 ac_cv_header_stdc=no
7034 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7036 if test $ac_cv_header_stdc = yes; then
7037 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7038 cat >conftest.$ac_ext <<_ACEOF
7041 cat confdefs.h >>conftest.$ac_ext
7042 cat >>conftest.$ac_ext <<_ACEOF
7043 /* end confdefs.h. */
7047 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7048 $EGREP "memchr" >/dev/null 2>&1; then
7051 ac_cv_header_stdc=no
7057 if test $ac_cv_header_stdc = yes; then
7058 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7059 cat >conftest.$ac_ext <<_ACEOF
7062 cat confdefs.h >>conftest.$ac_ext
7063 cat >>conftest.$ac_ext <<_ACEOF
7064 /* end confdefs.h. */
7068 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7069 $EGREP "free" >/dev/null 2>&1; then
7072 ac_cv_header_stdc=no
7078 if test $ac_cv_header_stdc = yes; then
7079 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7080 if test "$cross_compiling" = yes; then
7083 cat >conftest.$ac_ext <<_ACEOF
7086 cat confdefs.h >>conftest.$ac_ext
7087 cat >>conftest.$ac_ext <<_ACEOF
7088 /* end confdefs.h. */
7090 #if ((' ' & 0x0FF) == 0x020)
7091 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7092 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7094 # define ISLOWER(c) \
7095 (('a' <= (c) && (c) <= 'i') \
7096 || ('j' <= (c) && (c) <= 'r') \
7097 || ('s' <= (c) && (c) <= 'z'))
7098 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7101 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7106 for (i = 0; i < 256; i++)
7107 if (XOR (islower (i), ISLOWER (i))
7108 || toupper (i) != TOUPPER (i))
7113 rm -f conftest$ac_exeext
7114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7115 (eval $ac_link) 2>&5
7117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7118 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7123 (exit $ac_status); }; }; then
7126 echo "$as_me: program exited with status $ac_status" >&5
7127 echo "$as_me: failed program was:" >&5
7128 sed 's/^/| /' conftest.$ac_ext >&5
7131 ac_cv_header_stdc=no
7133 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7137 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7138 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7139 if test $ac_cv_header_stdc = yes; then
7141 cat >>confdefs.h <<\_ACEOF
7142 #define STDC_HEADERS 1
7147 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7148 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7149 if test "${ac_cv_c_const+set}" = set; then
7150 echo $ECHO_N "(cached) $ECHO_C" >&6
7152 cat >conftest.$ac_ext <<_ACEOF
7155 cat confdefs.h >>conftest.$ac_ext
7156 cat >>conftest.$ac_ext <<_ACEOF
7157 /* end confdefs.h. */
7162 /* FIXME: Include the comments suggested by Paul. */
7164 /* Ultrix mips cc rejects this. */
7165 typedef int charset[2];
7167 /* SunOS 4.1.1 cc rejects this. */
7168 char const *const *ccp;
7170 /* NEC SVR4.0.2 mips cc rejects this. */
7171 struct point {int x, y;};
7172 static struct point const zero = {0,0};
7173 /* AIX XL C 1.02.0.0 rejects this.
7174 It does not let you subtract one const X* pointer from another in
7175 an arm of an if-expression whose if-part is not a constant
7177 const char *g = "string";
7178 ccp = &g + (g ? g-g : 0);
7179 /* HPUX 7.0 cc rejects these. */
7182 ccp = (char const *const *) p;
7183 { /* SCO 3.2v4 cc rejects this. */
7185 char const *s = 0 ? (char *) 0 : (char const *) 0;
7189 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7191 const int *foo = &x[0];
7194 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7195 typedef const int *iptr;
7199 { /* AIX XL C 1.02.0.0 rejects this saying
7200 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7201 struct s { int j; const int *ap[3]; };
7202 struct s *b; b->j = 5;
7204 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7213 rm -f conftest.$ac_objext
7214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7215 (eval $ac_compile) 2>conftest.er1
7217 grep -v '^ *+' conftest.er1 >conftest.err
7219 cat conftest.err >&5
7220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7221 (exit $ac_status); } &&
7222 { ac_try='test -z "$ac_c_werror_flag"
7223 || test ! -s conftest.err'
7224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7228 (exit $ac_status); }; } &&
7229 { ac_try='test -s conftest.$ac_objext'
7230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7234 (exit $ac_status); }; }; then
7237 echo "$as_me: failed program was:" >&5
7238 sed 's/^/| /' conftest.$ac_ext >&5
7242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7244 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7245 echo "${ECHO_T}$ac_cv_c_const" >&6
7246 if test $ac_cv_c_const = no; then
7248 cat >>confdefs.h <<\_ACEOF
7255 echo "$as_me:$LINENO: checking for signed" >&5
7256 echo $ECHO_N "checking for signed... $ECHO_C" >&6
7257 if test "${bh_cv_c_signed+set}" = set; then
7258 echo $ECHO_N "(cached) $ECHO_C" >&6
7260 cat >conftest.$ac_ext <<_ACEOF
7263 cat confdefs.h >>conftest.$ac_ext
7264 cat >>conftest.$ac_ext <<_ACEOF
7265 /* end confdefs.h. */
7275 rm -f conftest.$ac_objext
7276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7277 (eval $ac_compile) 2>conftest.er1
7279 grep -v '^ *+' conftest.er1 >conftest.err
7281 cat conftest.err >&5
7282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7283 (exit $ac_status); } &&
7284 { ac_try='test -z "$ac_c_werror_flag"
7285 || test ! -s conftest.err'
7286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7290 (exit $ac_status); }; } &&
7291 { ac_try='test -s conftest.$ac_objext'
7292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7296 (exit $ac_status); }; }; then
7299 echo "$as_me: failed program was:" >&5
7300 sed 's/^/| /' conftest.$ac_ext >&5
7304 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7306 echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
7307 echo "${ECHO_T}$bh_cv_c_signed" >&6
7308 if test $bh_cv_c_signed = no; then
7310 cat >>confdefs.h <<\_ACEOF
7316 echo "$as_me:$LINENO: checking for inline" >&5
7317 echo $ECHO_N "checking for inline... $ECHO_C" >&6
7318 if test "${ac_cv_c_inline+set}" = set; then
7319 echo $ECHO_N "(cached) $ECHO_C" >&6
7322 for ac_kw in inline __inline__ __inline; do
7323 cat >conftest.$ac_ext <<_ACEOF
7326 cat confdefs.h >>conftest.$ac_ext
7327 cat >>conftest.$ac_ext <<_ACEOF
7328 /* end confdefs.h. */
7331 static $ac_kw foo_t static_foo () {return 0; }
7332 $ac_kw foo_t foo () {return 0; }
7336 rm -f conftest.$ac_objext
7337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7338 (eval $ac_compile) 2>conftest.er1
7340 grep -v '^ *+' conftest.er1 >conftest.err
7342 cat conftest.err >&5
7343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7344 (exit $ac_status); } &&
7345 { ac_try='test -z "$ac_c_werror_flag"
7346 || test ! -s conftest.err'
7347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7351 (exit $ac_status); }; } &&
7352 { ac_try='test -s conftest.$ac_objext'
7353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357 (exit $ac_status); }; }; then
7358 ac_cv_c_inline=$ac_kw; break
7360 echo "$as_me: failed program was:" >&5
7361 sed 's/^/| /' conftest.$ac_ext >&5
7364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7368 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7369 echo "${ECHO_T}$ac_cv_c_inline" >&6
7372 case $ac_cv_c_inline in
7375 case $ac_cv_c_inline in
7377 *) ac_val=$ac_cv_c_inline;;
7379 cat >>confdefs.h <<_ACEOF
7381 #define inline $ac_val
7387 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7397 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7398 inttypes.h stdint.h unistd.h
7400 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7401 echo "$as_me:$LINENO: checking for $ac_header" >&5
7402 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7403 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7404 echo $ECHO_N "(cached) $ECHO_C" >&6
7406 cat >conftest.$ac_ext <<_ACEOF
7409 cat confdefs.h >>conftest.$ac_ext
7410 cat >>conftest.$ac_ext <<_ACEOF
7411 /* end confdefs.h. */
7412 $ac_includes_default
7414 #include <$ac_header>
7416 rm -f conftest.$ac_objext
7417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7418 (eval $ac_compile) 2>conftest.er1
7420 grep -v '^ *+' conftest.er1 >conftest.err
7422 cat conftest.err >&5
7423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7424 (exit $ac_status); } &&
7425 { ac_try='test -z "$ac_c_werror_flag"
7426 || test ! -s conftest.err'
7427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7431 (exit $ac_status); }; } &&
7432 { ac_try='test -s conftest.$ac_objext'
7433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7437 (exit $ac_status); }; }; then
7438 eval "$as_ac_Header=yes"
7440 echo "$as_me: failed program was:" >&5
7441 sed 's/^/| /' conftest.$ac_ext >&5
7443 eval "$as_ac_Header=no"
7445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7447 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7448 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7449 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7450 cat >>confdefs.h <<_ACEOF
7451 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7459 echo "$as_me:$LINENO: checking for off_t" >&5
7460 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
7461 if test "${ac_cv_type_off_t+set}" = set; then
7462 echo $ECHO_N "(cached) $ECHO_C" >&6
7464 cat >conftest.$ac_ext <<_ACEOF
7467 cat confdefs.h >>conftest.$ac_ext
7468 cat >>conftest.$ac_ext <<_ACEOF
7469 /* end confdefs.h. */
7470 $ac_includes_default
7482 rm -f conftest.$ac_objext
7483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7484 (eval $ac_compile) 2>conftest.er1
7486 grep -v '^ *+' conftest.er1 >conftest.err
7488 cat conftest.err >&5
7489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7490 (exit $ac_status); } &&
7491 { ac_try='test -z "$ac_c_werror_flag"
7492 || test ! -s conftest.err'
7493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7497 (exit $ac_status); }; } &&
7498 { ac_try='test -s conftest.$ac_objext'
7499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7503 (exit $ac_status); }; }; then
7504 ac_cv_type_off_t=yes
7506 echo "$as_me: failed program was:" >&5
7507 sed 's/^/| /' conftest.$ac_ext >&5
7511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7513 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7514 echo "${ECHO_T}$ac_cv_type_off_t" >&6
7515 if test $ac_cv_type_off_t = yes; then
7519 cat >>confdefs.h <<_ACEOF
7525 echo "$as_me:$LINENO: checking for size_t" >&5
7526 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
7527 if test "${ac_cv_type_size_t+set}" = set; then
7528 echo $ECHO_N "(cached) $ECHO_C" >&6
7530 cat >conftest.$ac_ext <<_ACEOF
7533 cat confdefs.h >>conftest.$ac_ext
7534 cat >>conftest.$ac_ext <<_ACEOF
7535 /* end confdefs.h. */
7536 $ac_includes_default
7542 if (sizeof (size_t))
7548 rm -f conftest.$ac_objext
7549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7550 (eval $ac_compile) 2>conftest.er1
7552 grep -v '^ *+' conftest.er1 >conftest.err
7554 cat conftest.err >&5
7555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7556 (exit $ac_status); } &&
7557 { ac_try='test -z "$ac_c_werror_flag"
7558 || test ! -s conftest.err'
7559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7563 (exit $ac_status); }; } &&
7564 { ac_try='test -s conftest.$ac_objext'
7565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7569 (exit $ac_status); }; }; then
7570 ac_cv_type_size_t=yes
7572 echo "$as_me: failed program was:" >&5
7573 sed 's/^/| /' conftest.$ac_ext >&5
7575 ac_cv_type_size_t=no
7577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7579 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7580 echo "${ECHO_T}$ac_cv_type_size_t" >&6
7581 if test $ac_cv_type_size_t = yes; then
7585 cat >>confdefs.h <<_ACEOF
7586 #define size_t unsigned
7592 echo "$as_me:$LINENO: checking for long long" >&5
7593 echo $ECHO_N "checking for long long... $ECHO_C" >&6
7594 if test "${ac_cv_type_long_long+set}" = set; then
7595 echo $ECHO_N "(cached) $ECHO_C" >&6
7597 cat >conftest.$ac_ext <<_ACEOF
7600 cat confdefs.h >>conftest.$ac_ext
7601 cat >>conftest.$ac_ext <<_ACEOF
7602 /* end confdefs.h. */
7603 long long ll = 1LL; int i = 63;
7607 long long llmax = (long long) -1;
7608 return ll << i | ll >> i | llmax / ll | llmax % ll;
7613 rm -f conftest.$ac_objext conftest$ac_exeext
7614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7615 (eval $ac_link) 2>conftest.er1
7617 grep -v '^ *+' conftest.er1 >conftest.err
7619 cat conftest.err >&5
7620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7621 (exit $ac_status); } &&
7622 { ac_try='test -z "$ac_c_werror_flag"
7623 || test ! -s conftest.err'
7624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7628 (exit $ac_status); }; } &&
7629 { ac_try='test -s conftest$ac_exeext'
7630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7634 (exit $ac_status); }; }; then
7635 ac_cv_type_long_long=yes
7637 echo "$as_me: failed program was:" >&5
7638 sed 's/^/| /' conftest.$ac_ext >&5
7640 ac_cv_type_long_long=no
7642 rm -f conftest.err conftest.$ac_objext \
7643 conftest$ac_exeext conftest.$ac_ext
7645 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
7646 echo "${ECHO_T}$ac_cv_type_long_long" >&6
7647 if test $ac_cv_type_long_long = yes; then
7649 cat >>confdefs.h <<\_ACEOF
7650 #define HAVE_LONG_LONG 1
7656 echo "$as_me:$LINENO: checking for long double" >&5
7657 echo $ECHO_N "checking for long double... $ECHO_C" >&6
7658 if test "${gt_cv_c_long_double+set}" = set; then
7659 echo $ECHO_N "(cached) $ECHO_C" >&6
7661 if test "$GCC" = yes; then
7662 gt_cv_c_long_double=yes
7664 cat >conftest.$ac_ext <<_ACEOF
7667 cat confdefs.h >>conftest.$ac_ext
7668 cat >>conftest.$ac_ext <<_ACEOF
7669 /* end confdefs.h. */
7671 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
7672 long double foo = 0.0;
7673 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
7674 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
7684 rm -f conftest.$ac_objext
7685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7686 (eval $ac_compile) 2>conftest.er1
7688 grep -v '^ *+' conftest.er1 >conftest.err
7690 cat conftest.err >&5
7691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7692 (exit $ac_status); } &&
7693 { ac_try='test -z "$ac_c_werror_flag"
7694 || test ! -s conftest.err'
7695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7699 (exit $ac_status); }; } &&
7700 { ac_try='test -s conftest.$ac_objext'
7701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7705 (exit $ac_status); }; }; then
7706 gt_cv_c_long_double=yes
7708 echo "$as_me: failed program was:" >&5
7709 sed 's/^/| /' conftest.$ac_ext >&5
7711 gt_cv_c_long_double=no
7713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7716 echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
7717 echo "${ECHO_T}$gt_cv_c_long_double" >&6
7718 if test $gt_cv_c_long_double = yes; then
7720 cat >>confdefs.h <<\_ACEOF
7721 #define HAVE_LONG_DOUBLE 1
7727 echo "$as_me:$LINENO: checking for wchar_t" >&5
7728 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
7729 if test "${gt_cv_c_wchar_t+set}" = set; then
7730 echo $ECHO_N "(cached) $ECHO_C" >&6
7732 cat >conftest.$ac_ext <<_ACEOF
7735 cat confdefs.h >>conftest.$ac_ext
7736 cat >>conftest.$ac_ext <<_ACEOF
7737 /* end confdefs.h. */
7739 wchar_t foo = (wchar_t)'\0';
7748 rm -f conftest.$ac_objext
7749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7750 (eval $ac_compile) 2>conftest.er1
7752 grep -v '^ *+' conftest.er1 >conftest.err
7754 cat conftest.err >&5
7755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7756 (exit $ac_status); } &&
7757 { ac_try='test -z "$ac_c_werror_flag"
7758 || test ! -s conftest.err'
7759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7763 (exit $ac_status); }; } &&
7764 { ac_try='test -s conftest.$ac_objext'
7765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7769 (exit $ac_status); }; }; then
7772 echo "$as_me: failed program was:" >&5
7773 sed 's/^/| /' conftest.$ac_ext >&5
7777 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7779 echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
7780 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6
7781 if test $gt_cv_c_wchar_t = yes; then
7783 cat >>confdefs.h <<\_ACEOF
7784 #define HAVE_WCHAR_T 1
7790 echo "$as_me:$LINENO: checking for wint_t" >&5
7791 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
7792 if test "${gt_cv_c_wint_t+set}" = set; then
7793 echo $ECHO_N "(cached) $ECHO_C" >&6
7795 cat >conftest.$ac_ext <<_ACEOF
7798 cat confdefs.h >>conftest.$ac_ext
7799 cat >>conftest.$ac_ext <<_ACEOF
7800 /* end confdefs.h. */
7802 wint_t foo = (wchar_t)'\0';
7811 rm -f conftest.$ac_objext
7812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7813 (eval $ac_compile) 2>conftest.er1
7815 grep -v '^ *+' conftest.er1 >conftest.err
7817 cat conftest.err >&5
7818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7819 (exit $ac_status); } &&
7820 { ac_try='test -z "$ac_c_werror_flag"
7821 || test ! -s conftest.err'
7822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7826 (exit $ac_status); }; } &&
7827 { ac_try='test -s conftest.$ac_objext'
7828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7832 (exit $ac_status); }; }; then
7835 echo "$as_me: failed program was:" >&5
7836 sed 's/^/| /' conftest.$ac_ext >&5
7840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7842 echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
7843 echo "${ECHO_T}$gt_cv_c_wint_t" >&6
7844 if test $gt_cv_c_wint_t = yes; then
7846 cat >>confdefs.h <<\_ACEOF
7847 #define HAVE_WINT_T 1
7853 echo "$as_me:$LINENO: checking for inttypes.h" >&5
7854 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
7855 if test "${gl_cv_header_inttypes_h+set}" = set; then
7856 echo $ECHO_N "(cached) $ECHO_C" >&6
7858 cat >conftest.$ac_ext <<_ACEOF
7861 cat confdefs.h >>conftest.$ac_ext
7862 cat >>conftest.$ac_ext <<_ACEOF
7863 /* end confdefs.h. */
7864 #include <sys/types.h>
7865 #include <inttypes.h>
7869 uintmax_t i = (uintmax_t) -1;
7874 rm -f conftest.$ac_objext
7875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7876 (eval $ac_compile) 2>conftest.er1
7878 grep -v '^ *+' conftest.er1 >conftest.err
7880 cat conftest.err >&5
7881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7882 (exit $ac_status); } &&
7883 { ac_try='test -z "$ac_c_werror_flag"
7884 || test ! -s conftest.err'
7885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7889 (exit $ac_status); }; } &&
7890 { ac_try='test -s conftest.$ac_objext'
7891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895 (exit $ac_status); }; }; then
7896 gl_cv_header_inttypes_h=yes
7898 echo "$as_me: failed program was:" >&5
7899 sed 's/^/| /' conftest.$ac_ext >&5
7901 gl_cv_header_inttypes_h=no
7903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7905 echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
7906 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6
7907 if test $gl_cv_header_inttypes_h = yes; then
7909 cat >>confdefs.h <<_ACEOF
7910 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
7916 echo "$as_me:$LINENO: checking for stdint.h" >&5
7917 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
7918 if test "${gl_cv_header_stdint_h+set}" = set; then
7919 echo $ECHO_N "(cached) $ECHO_C" >&6
7921 cat >conftest.$ac_ext <<_ACEOF
7924 cat confdefs.h >>conftest.$ac_ext
7925 cat >>conftest.$ac_ext <<_ACEOF
7926 /* end confdefs.h. */
7927 #include <sys/types.h>
7932 uintmax_t i = (uintmax_t) -1;
7937 rm -f conftest.$ac_objext
7938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7939 (eval $ac_compile) 2>conftest.er1
7941 grep -v '^ *+' conftest.er1 >conftest.err
7943 cat conftest.err >&5
7944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7945 (exit $ac_status); } &&
7946 { ac_try='test -z "$ac_c_werror_flag"
7947 || test ! -s conftest.err'
7948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952 (exit $ac_status); }; } &&
7953 { ac_try='test -s conftest.$ac_objext'
7954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7958 (exit $ac_status); }; }; then
7959 gl_cv_header_stdint_h=yes
7961 echo "$as_me: failed program was:" >&5
7962 sed 's/^/| /' conftest.$ac_ext >&5
7964 gl_cv_header_stdint_h=no
7966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7968 echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
7969 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6
7970 if test $gl_cv_header_stdint_h = yes; then
7972 cat >>confdefs.h <<_ACEOF
7973 #define HAVE_STDINT_H_WITH_UINTMAX 1
7981 echo "$as_me:$LINENO: checking for intmax_t" >&5
7982 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
7983 if test "${gt_cv_c_intmax_t+set}" = set; then
7984 echo $ECHO_N "(cached) $ECHO_C" >&6
7986 cat >conftest.$ac_ext <<_ACEOF
7989 cat confdefs.h >>conftest.$ac_ext
7990 cat >>conftest.$ac_ext <<_ACEOF
7991 /* end confdefs.h. */
7995 #if HAVE_STDINT_H_WITH_UINTMAX
7998 #if HAVE_INTTYPES_H_WITH_UINTMAX
7999 #include <inttypes.h>
8010 rm -f conftest.$ac_objext
8011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8012 (eval $ac_compile) 2>conftest.er1
8014 grep -v '^ *+' conftest.er1 >conftest.err
8016 cat conftest.err >&5
8017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8018 (exit $ac_status); } &&
8019 { ac_try='test -z "$ac_c_werror_flag"
8020 || test ! -s conftest.err'
8021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025 (exit $ac_status); }; } &&
8026 { ac_try='test -s conftest.$ac_objext'
8027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8031 (exit $ac_status); }; }; then
8032 gt_cv_c_intmax_t=yes
8034 echo "$as_me: failed program was:" >&5
8035 sed 's/^/| /' conftest.$ac_ext >&5
8039 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8041 echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
8042 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6
8043 if test $gt_cv_c_intmax_t = yes; then
8045 cat >>confdefs.h <<\_ACEOF
8046 #define HAVE_INTMAX_T 1
8053 echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
8054 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6
8055 if test "${gt_cv_func_printf_posix+set}" = set; then
8056 echo $ECHO_N "(cached) $ECHO_C" >&6
8059 if test "$cross_compiling" = yes; then
8061 cat >conftest.$ac_ext <<_ACEOF
8064 cat confdefs.h >>conftest.$ac_ext
8065 cat >>conftest.$ac_ext <<_ACEOF
8066 /* end confdefs.h. */
8068 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
8073 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8074 $EGREP "notposix" >/dev/null 2>&1; then
8075 gt_cv_func_printf_posix="guessing no"
8077 gt_cv_func_printf_posix="guessing yes"
8083 cat >conftest.$ac_ext <<_ACEOF
8086 cat confdefs.h >>conftest.$ac_ext
8087 cat >>conftest.$ac_ext <<_ACEOF
8088 /* end confdefs.h. */
8092 /* The string "%2$d %1$d", with dollar characters protected from the shell's
8093 dollar expansion (possibly an autoconf bug). */
8094 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
8095 static char buf[100];
8098 sprintf (buf, format, 33, 55);
8099 return (strcmp (buf, "55 33") != 0);
8102 rm -f conftest$ac_exeext
8103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8104 (eval $ac_link) 2>&5
8106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8107 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112 (exit $ac_status); }; }; then
8113 gt_cv_func_printf_posix=yes
8115 echo "$as_me: program exited with status $ac_status" >&5
8116 echo "$as_me: failed program was:" >&5
8117 sed 's/^/| /' conftest.$ac_ext >&5
8120 gt_cv_func_printf_posix=no
8122 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8126 echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
8127 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6
8128 case $gt_cv_func_printf_posix in
8131 cat >>confdefs.h <<\_ACEOF
8132 #define HAVE_POSIX_PRINTF 1
8138 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8139 # for constant arguments. Useless!
8140 echo "$as_me:$LINENO: checking for working alloca.h" >&5
8141 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
8142 if test "${ac_cv_working_alloca_h+set}" = set; then
8143 echo $ECHO_N "(cached) $ECHO_C" >&6
8145 cat >conftest.$ac_ext <<_ACEOF
8148 cat confdefs.h >>conftest.$ac_ext
8149 cat >>conftest.$ac_ext <<_ACEOF
8150 /* end confdefs.h. */
8155 char *p = (char *) alloca (2 * sizeof (int));
8160 rm -f conftest.$ac_objext conftest$ac_exeext
8161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8162 (eval $ac_link) 2>conftest.er1
8164 grep -v '^ *+' conftest.er1 >conftest.err
8166 cat conftest.err >&5
8167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8168 (exit $ac_status); } &&
8169 { ac_try='test -z "$ac_c_werror_flag"
8170 || test ! -s conftest.err'
8171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175 (exit $ac_status); }; } &&
8176 { ac_try='test -s conftest$ac_exeext'
8177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8181 (exit $ac_status); }; }; then
8182 ac_cv_working_alloca_h=yes
8184 echo "$as_me: failed program was:" >&5
8185 sed 's/^/| /' conftest.$ac_ext >&5
8187 ac_cv_working_alloca_h=no
8189 rm -f conftest.err conftest.$ac_objext \
8190 conftest$ac_exeext conftest.$ac_ext
8192 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8193 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
8194 if test $ac_cv_working_alloca_h = yes; then
8196 cat >>confdefs.h <<\_ACEOF
8197 #define HAVE_ALLOCA_H 1
8202 echo "$as_me:$LINENO: checking for alloca" >&5
8203 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
8204 if test "${ac_cv_func_alloca_works+set}" = set; then
8205 echo $ECHO_N "(cached) $ECHO_C" >&6
8207 cat >conftest.$ac_ext <<_ACEOF
8210 cat confdefs.h >>conftest.$ac_ext
8211 cat >>conftest.$ac_ext <<_ACEOF
8212 /* end confdefs.h. */
8214 # define alloca __builtin_alloca
8217 # include <malloc.h>
8218 # define alloca _alloca
8221 # include <alloca.h>
8226 # ifndef alloca /* predefined by HP cc +Olibcalls */
8237 char *p = (char *) alloca (1);
8242 rm -f conftest.$ac_objext conftest$ac_exeext
8243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8244 (eval $ac_link) 2>conftest.er1
8246 grep -v '^ *+' conftest.er1 >conftest.err
8248 cat conftest.err >&5
8249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8250 (exit $ac_status); } &&
8251 { ac_try='test -z "$ac_c_werror_flag"
8252 || test ! -s conftest.err'
8253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257 (exit $ac_status); }; } &&
8258 { ac_try='test -s conftest$ac_exeext'
8259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8263 (exit $ac_status); }; }; then
8264 ac_cv_func_alloca_works=yes
8266 echo "$as_me: failed program was:" >&5
8267 sed 's/^/| /' conftest.$ac_ext >&5
8269 ac_cv_func_alloca_works=no
8271 rm -f conftest.err conftest.$ac_objext \
8272 conftest$ac_exeext conftest.$ac_ext
8274 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8275 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
8277 if test $ac_cv_func_alloca_works = yes; then
8279 cat >>confdefs.h <<\_ACEOF
8280 #define HAVE_ALLOCA 1
8284 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8285 # that cause trouble. Some versions do not even contain alloca or
8286 # contain a buggy version. If you still want to use their alloca,
8287 # use ar to extract alloca.o from them instead of compiling alloca.c.
8289 ALLOCA=alloca.$ac_objext
8291 cat >>confdefs.h <<\_ACEOF
8296 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8297 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
8298 if test "${ac_cv_os_cray+set}" = set; then
8299 echo $ECHO_N "(cached) $ECHO_C" >&6
8301 cat >conftest.$ac_ext <<_ACEOF
8304 cat confdefs.h >>conftest.$ac_ext
8305 cat >>conftest.$ac_ext <<_ACEOF
8306 /* end confdefs.h. */
8307 #if defined(CRAY) && ! defined(CRAY2)
8314 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8315 $EGREP "webecray" >/dev/null 2>&1; then
8323 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8324 echo "${ECHO_T}$ac_cv_os_cray" >&6
8325 if test $ac_cv_os_cray = yes; then
8326 for ac_func in _getb67 GETB67 getb67; do
8327 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8328 echo "$as_me:$LINENO: checking for $ac_func" >&5
8329 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8330 if eval "test \"\${$as_ac_var+set}\" = set"; then
8331 echo $ECHO_N "(cached) $ECHO_C" >&6
8333 cat >conftest.$ac_ext <<_ACEOF
8336 cat confdefs.h >>conftest.$ac_ext
8337 cat >>conftest.$ac_ext <<_ACEOF
8338 /* end confdefs.h. */
8339 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8340 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8341 #define $ac_func innocuous_$ac_func
8343 /* System header to define __stub macros and hopefully few prototypes,
8344 which can conflict with char $ac_func (); below.
8345 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8346 <limits.h> exists even on freestanding compilers. */
8349 # include <limits.h>
8351 # include <assert.h>
8356 /* Override any gcc2 internal prototype to avoid an error. */
8361 /* We use char because int might match the return type of a gcc2
8362 builtin and then its argument prototype would still apply. */
8364 /* The GNU C library defines this for functions which it implements
8365 to always fail with ENOSYS. Some functions are actually named
8366 something starting with __ and the normal name is an alias. */
8367 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8370 char (*f) () = $ac_func;
8379 return f != $ac_func;
8384 rm -f conftest.$ac_objext conftest$ac_exeext
8385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8386 (eval $ac_link) 2>conftest.er1
8388 grep -v '^ *+' conftest.er1 >conftest.err
8390 cat conftest.err >&5
8391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392 (exit $ac_status); } &&
8393 { ac_try='test -z "$ac_c_werror_flag"
8394 || test ! -s conftest.err'
8395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8399 (exit $ac_status); }; } &&
8400 { ac_try='test -s conftest$ac_exeext'
8401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8405 (exit $ac_status); }; }; then
8406 eval "$as_ac_var=yes"
8408 echo "$as_me: failed program was:" >&5
8409 sed 's/^/| /' conftest.$ac_ext >&5
8411 eval "$as_ac_var=no"
8413 rm -f conftest.err conftest.$ac_objext \
8414 conftest$ac_exeext conftest.$ac_ext
8416 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8417 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8418 if test `eval echo '${'$as_ac_var'}'` = yes; then
8420 cat >>confdefs.h <<_ACEOF
8421 #define CRAY_STACKSEG_END $ac_func
8430 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8431 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
8432 if test "${ac_cv_c_stack_direction+set}" = set; then
8433 echo $ECHO_N "(cached) $ECHO_C" >&6
8435 if test "$cross_compiling" = yes; then
8436 ac_cv_c_stack_direction=0
8438 cat >conftest.$ac_ext <<_ACEOF
8441 cat confdefs.h >>conftest.$ac_ext
8442 cat >>conftest.$ac_ext <<_ACEOF
8443 /* end confdefs.h. */
8445 find_stack_direction ()
8447 static char *addr = 0;
8452 return find_stack_direction ();
8455 return (&dummy > addr) ? 1 : -1;
8461 exit (find_stack_direction () < 0);
8464 rm -f conftest$ac_exeext
8465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8466 (eval $ac_link) 2>&5
8468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474 (exit $ac_status); }; }; then
8475 ac_cv_c_stack_direction=1
8477 echo "$as_me: program exited with status $ac_status" >&5
8478 echo "$as_me: failed program was:" >&5
8479 sed 's/^/| /' conftest.$ac_ext >&5
8482 ac_cv_c_stack_direction=-1
8484 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8487 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8488 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
8490 cat >>confdefs.h <<_ACEOF
8491 #define STACK_DIRECTION $ac_cv_c_stack_direction
8499 for ac_header in stdlib.h unistd.h
8501 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8502 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8503 echo "$as_me:$LINENO: checking for $ac_header" >&5
8504 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8505 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8506 echo $ECHO_N "(cached) $ECHO_C" >&6
8508 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8509 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8511 # Is the header compilable?
8512 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8513 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8514 cat >conftest.$ac_ext <<_ACEOF
8517 cat confdefs.h >>conftest.$ac_ext
8518 cat >>conftest.$ac_ext <<_ACEOF
8519 /* end confdefs.h. */
8520 $ac_includes_default
8521 #include <$ac_header>
8523 rm -f conftest.$ac_objext
8524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8525 (eval $ac_compile) 2>conftest.er1
8527 grep -v '^ *+' conftest.er1 >conftest.err
8529 cat conftest.err >&5
8530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531 (exit $ac_status); } &&
8532 { ac_try='test -z "$ac_c_werror_flag"
8533 || test ! -s conftest.err'
8534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538 (exit $ac_status); }; } &&
8539 { ac_try='test -s conftest.$ac_objext'
8540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544 (exit $ac_status); }; }; then
8545 ac_header_compiler=yes
8547 echo "$as_me: failed program was:" >&5
8548 sed 's/^/| /' conftest.$ac_ext >&5
8550 ac_header_compiler=no
8552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8553 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8554 echo "${ECHO_T}$ac_header_compiler" >&6
8556 # Is the header present?
8557 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8558 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8559 cat >conftest.$ac_ext <<_ACEOF
8562 cat confdefs.h >>conftest.$ac_ext
8563 cat >>conftest.$ac_ext <<_ACEOF
8564 /* end confdefs.h. */
8565 #include <$ac_header>
8567 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8568 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8570 grep -v '^ *+' conftest.er1 >conftest.err
8572 cat conftest.err >&5
8573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574 (exit $ac_status); } >/dev/null; then
8575 if test -s conftest.err; then
8576 ac_cpp_err=$ac_c_preproc_warn_flag
8577 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8584 if test -z "$ac_cpp_err"; then
8585 ac_header_preproc=yes
8587 echo "$as_me: failed program was:" >&5
8588 sed 's/^/| /' conftest.$ac_ext >&5
8590 ac_header_preproc=no
8592 rm -f conftest.err conftest.$ac_ext
8593 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8594 echo "${ECHO_T}$ac_header_preproc" >&6
8596 # So? What about this header?
8597 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8599 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8600 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8601 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8602 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8603 ac_header_preproc=yes
8606 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8607 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8608 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8609 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8610 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8611 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8612 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8613 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8614 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8615 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8616 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8617 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8620 ## ------------------------------------------ ##
8621 ## Report this to the AC_PACKAGE_NAME lists. ##
8622 ## ------------------------------------------ ##
8625 sed "s/^/$as_me: WARNING: /" >&2
8628 echo "$as_me:$LINENO: checking for $ac_header" >&5
8629 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8630 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8631 echo $ECHO_N "(cached) $ECHO_C" >&6
8633 eval "$as_ac_Header=\$ac_header_preproc"
8635 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8636 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8639 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8640 cat >>confdefs.h <<_ACEOF
8641 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8649 for ac_func in getpagesize
8651 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8652 echo "$as_me:$LINENO: checking for $ac_func" >&5
8653 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8654 if eval "test \"\${$as_ac_var+set}\" = set"; then
8655 echo $ECHO_N "(cached) $ECHO_C" >&6
8657 cat >conftest.$ac_ext <<_ACEOF
8660 cat confdefs.h >>conftest.$ac_ext
8661 cat >>conftest.$ac_ext <<_ACEOF
8662 /* end confdefs.h. */
8663 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8664 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8665 #define $ac_func innocuous_$ac_func
8667 /* System header to define __stub macros and hopefully few prototypes,
8668 which can conflict with char $ac_func (); below.
8669 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8670 <limits.h> exists even on freestanding compilers. */
8673 # include <limits.h>
8675 # include <assert.h>
8680 /* Override any gcc2 internal prototype to avoid an error. */
8685 /* We use char because int might match the return type of a gcc2
8686 builtin and then its argument prototype would still apply. */
8688 /* The GNU C library defines this for functions which it implements
8689 to always fail with ENOSYS. Some functions are actually named
8690 something starting with __ and the normal name is an alias. */
8691 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8694 char (*f) () = $ac_func;
8703 return f != $ac_func;
8708 rm -f conftest.$ac_objext conftest$ac_exeext
8709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8710 (eval $ac_link) 2>conftest.er1
8712 grep -v '^ *+' conftest.er1 >conftest.err
8714 cat conftest.err >&5
8715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716 (exit $ac_status); } &&
8717 { ac_try='test -z "$ac_c_werror_flag"
8718 || test ! -s conftest.err'
8719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8723 (exit $ac_status); }; } &&
8724 { ac_try='test -s conftest$ac_exeext'
8725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8729 (exit $ac_status); }; }; then
8730 eval "$as_ac_var=yes"
8732 echo "$as_me: failed program was:" >&5
8733 sed 's/^/| /' conftest.$ac_ext >&5
8735 eval "$as_ac_var=no"
8737 rm -f conftest.err conftest.$ac_objext \
8738 conftest$ac_exeext conftest.$ac_ext
8740 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8741 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8742 if test `eval echo '${'$as_ac_var'}'` = yes; then
8743 cat >>confdefs.h <<_ACEOF
8744 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8750 echo "$as_me:$LINENO: checking for working mmap" >&5
8751 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8752 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8753 echo $ECHO_N "(cached) $ECHO_C" >&6
8755 if test "$cross_compiling" = yes; then
8756 ac_cv_func_mmap_fixed_mapped=no
8758 cat >conftest.$ac_ext <<_ACEOF
8761 cat confdefs.h >>conftest.$ac_ext
8762 cat >>conftest.$ac_ext <<_ACEOF
8763 /* end confdefs.h. */
8764 $ac_includes_default
8765 /* malloc might have been renamed as rpl_malloc. */
8768 /* Thanks to Mike Haertel and Jim Avera for this test.
8769 Here is a matrix of mmap possibilities:
8770 mmap private not fixed
8771 mmap private fixed at somewhere currently unmapped
8772 mmap private fixed at somewhere already mapped
8773 mmap shared not fixed
8774 mmap shared fixed at somewhere currently unmapped
8775 mmap shared fixed at somewhere already mapped
8776 For private mappings, we should verify that changes cannot be read()
8777 back from the file, nor mmap's back from the file at a different
8778 address. (There have been systems where private was not correctly
8779 implemented like the infamous i386 svr4.0, and systems where the
8780 VM page cache was not coherent with the file system buffer cache
8781 like early versions of FreeBSD and possibly contemporary NetBSD.)
8782 For shared mappings, we should conversely verify that changes get
8783 propagated back to all the places they're supposed to be.
8785 Grep wants private fixed already mapped.
8786 The main things grep needs to know about mmap are:
8787 * does it exist and is it safe to write into the mmap'd area
8788 * how to use it (BSD variants) */
8791 #include <sys/mman.h>
8793 #if !STDC_HEADERS && !HAVE_STDLIB_H
8797 /* This mess was copied from the GNU getpagesize.h. */
8798 #if !HAVE_GETPAGESIZE
8799 /* Assume that all systems that can run configure have sys/param.h. */
8800 # if !HAVE_SYS_PARAM_H
8801 # define HAVE_SYS_PARAM_H 1
8804 # ifdef _SC_PAGESIZE
8805 # define getpagesize() sysconf(_SC_PAGESIZE)
8806 # else /* no _SC_PAGESIZE */
8807 # if HAVE_SYS_PARAM_H
8808 # include <sys/param.h>
8809 # ifdef EXEC_PAGESIZE
8810 # define getpagesize() EXEC_PAGESIZE
8811 # else /* no EXEC_PAGESIZE */
8813 # define getpagesize() NBPG * CLSIZE
8816 # endif /* no CLSIZE */
8817 # else /* no NBPG */
8819 # define getpagesize() NBPC
8820 # else /* no NBPC */
8822 # define getpagesize() PAGESIZE
8823 # endif /* PAGESIZE */
8824 # endif /* no NBPC */
8825 # endif /* no NBPG */
8826 # endif /* no EXEC_PAGESIZE */
8827 # else /* no HAVE_SYS_PARAM_H */
8828 # define getpagesize() 8192 /* punt totally */
8829 # endif /* no HAVE_SYS_PARAM_H */
8830 # endif /* no _SC_PAGESIZE */
8832 #endif /* no HAVE_GETPAGESIZE */
8837 char *data, *data2, *data3;
8841 pagesize = getpagesize ();
8843 /* First, make a file with some known garbage in it. */
8844 data = (char *) malloc (pagesize);
8847 for (i = 0; i < pagesize; ++i)
8848 *(data + i) = rand ();
8850 fd = creat ("conftest.mmap", 0600);
8853 if (write (fd, data, pagesize) != pagesize)
8857 /* Next, try to mmap the file at a fixed address which already has
8858 something else allocated at it. If we can, also make sure that
8859 we see the same garbage. */
8860 fd = open ("conftest.mmap", O_RDWR);
8863 data2 = (char *) malloc (2 * pagesize);
8866 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
8867 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8868 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8870 for (i = 0; i < pagesize; ++i)
8871 if (*(data + i) != *(data2 + i))
8874 /* Finally, make sure that changes to the mapped area do not
8875 percolate back to the file as seen by read(). (This is a bug on
8876 some variants of i386 svr4.0.) */
8877 for (i = 0; i < pagesize; ++i)
8878 *(data2 + i) = *(data2 + i) + 1;
8879 data3 = (char *) malloc (pagesize);
8882 if (read (fd, data3, pagesize) != pagesize)
8884 for (i = 0; i < pagesize; ++i)
8885 if (*(data + i) != *(data3 + i))
8891 rm -f conftest$ac_exeext
8892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8893 (eval $ac_link) 2>&5
8895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8896 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901 (exit $ac_status); }; }; then
8902 ac_cv_func_mmap_fixed_mapped=yes
8904 echo "$as_me: program exited with status $ac_status" >&5
8905 echo "$as_me: failed program was:" >&5
8906 sed 's/^/| /' conftest.$ac_ext >&5
8909 ac_cv_func_mmap_fixed_mapped=no
8911 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8914 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8915 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
8916 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8918 cat >>confdefs.h <<\_ACEOF
8926 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
8927 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
8928 if test "${ac_cv_gnu_library_2_1+set}" = set; then
8929 echo $ECHO_N "(cached) $ECHO_C" >&6
8931 cat >conftest.$ac_ext <<_ACEOF
8934 cat confdefs.h >>conftest.$ac_ext
8935 cat >>conftest.$ac_ext <<_ACEOF
8936 /* end confdefs.h. */
8938 #include <features.h>
8939 #ifdef __GNU_LIBRARY__
8940 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
8946 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8947 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
8948 ac_cv_gnu_library_2_1=yes
8950 ac_cv_gnu_library_2_1=no
8957 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
8958 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
8960 GLIBC21="$ac_cv_gnu_library_2_1"
8965 echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
8966 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
8967 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
8968 echo $ECHO_N "(cached) $ECHO_C" >&6
8971 if test "$cross_compiling" = yes; then
8973 # Guess based on the CPU.
8975 alpha* | i3456786 | m68k | s390*)
8976 gt_cv_int_divbyzero_sigfpe="guessing yes";;
8978 gt_cv_int_divbyzero_sigfpe="guessing no";;
8982 cat >conftest.$ac_ext <<_ACEOF
8985 cat confdefs.h >>conftest.$ac_ext
8986 cat >>conftest.$ac_ext <<_ACEOF
8987 /* end confdefs.h. */
8994 sigfpe_handler (int sig)
8996 sigfpe_handler (sig) int sig;
8999 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
9000 exit (sig != SIGFPE);
9010 signal (SIGFPE, sigfpe_handler);
9011 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
9012 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
9013 signal (SIGTRAP, sigfpe_handler);
9015 /* Linux/SPARC yields signal SIGILL. */
9016 #if defined (__sparc__) && defined (__linux__)
9017 signal (SIGILL, sigfpe_handler);
9026 rm -f conftest$ac_exeext
9027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9028 (eval $ac_link) 2>&5
9030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9031 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9036 (exit $ac_status); }; }; then
9037 gt_cv_int_divbyzero_sigfpe=yes
9039 echo "$as_me: program exited with status $ac_status" >&5
9040 echo "$as_me: failed program was:" >&5
9041 sed 's/^/| /' conftest.$ac_ext >&5
9044 gt_cv_int_divbyzero_sigfpe=no
9046 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9050 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
9051 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
9052 case "$gt_cv_int_divbyzero_sigfpe" in
9057 cat >>confdefs.h <<_ACEOF
9058 #define INTDIV0_RAISES_SIGFPE $value
9063 echo "$as_me:$LINENO: checking for unsigned long long" >&5
9064 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
9065 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
9066 echo $ECHO_N "(cached) $ECHO_C" >&6
9068 cat >conftest.$ac_ext <<_ACEOF
9071 cat confdefs.h >>conftest.$ac_ext
9072 cat >>conftest.$ac_ext <<_ACEOF
9073 /* end confdefs.h. */
9074 unsigned long long ull = 1ULL; int i = 63;
9078 unsigned long long ullmax = (unsigned long long) -1;
9079 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
9084 rm -f conftest.$ac_objext conftest$ac_exeext
9085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9086 (eval $ac_link) 2>conftest.er1
9088 grep -v '^ *+' conftest.er1 >conftest.err
9090 cat conftest.err >&5
9091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9092 (exit $ac_status); } &&
9093 { ac_try='test -z "$ac_c_werror_flag"
9094 || test ! -s conftest.err'
9095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9099 (exit $ac_status); }; } &&
9100 { ac_try='test -s conftest$ac_exeext'
9101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9105 (exit $ac_status); }; }; then
9106 ac_cv_type_unsigned_long_long=yes
9108 echo "$as_me: failed program was:" >&5
9109 sed 's/^/| /' conftest.$ac_ext >&5
9111 ac_cv_type_unsigned_long_long=no
9113 rm -f conftest.err conftest.$ac_objext \
9114 conftest$ac_exeext conftest.$ac_ext
9116 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
9117 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
9118 if test $ac_cv_type_unsigned_long_long = yes; then
9120 cat >>confdefs.h <<\_ACEOF
9121 #define HAVE_UNSIGNED_LONG_LONG 1
9129 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
9131 test $ac_cv_type_unsigned_long_long = yes \
9132 && ac_type='unsigned long long' \
9133 || ac_type='unsigned long'
9135 cat >>confdefs.h <<_ACEOF
9136 #define uintmax_t $ac_type
9141 cat >>confdefs.h <<\_ACEOF
9142 #define HAVE_UINTMAX_T 1
9148 echo "$as_me:$LINENO: checking for inttypes.h" >&5
9149 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
9150 if test "${gt_cv_header_inttypes_h+set}" = set; then
9151 echo $ECHO_N "(cached) $ECHO_C" >&6
9154 cat >conftest.$ac_ext <<_ACEOF
9157 cat confdefs.h >>conftest.$ac_ext
9158 cat >>conftest.$ac_ext <<_ACEOF
9159 /* end confdefs.h. */
9160 #include <sys/types.h>
9161 #include <inttypes.h>
9170 rm -f conftest.$ac_objext
9171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9172 (eval $ac_compile) 2>conftest.er1
9174 grep -v '^ *+' conftest.er1 >conftest.err
9176 cat conftest.err >&5
9177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178 (exit $ac_status); } &&
9179 { ac_try='test -z "$ac_c_werror_flag"
9180 || test ! -s conftest.err'
9181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9185 (exit $ac_status); }; } &&
9186 { ac_try='test -s conftest.$ac_objext'
9187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9191 (exit $ac_status); }; }; then
9192 gt_cv_header_inttypes_h=yes
9194 echo "$as_me: failed program was:" >&5
9195 sed 's/^/| /' conftest.$ac_ext >&5
9197 gt_cv_header_inttypes_h=no
9199 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9202 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
9203 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
9204 if test $gt_cv_header_inttypes_h = yes; then
9206 cat >>confdefs.h <<_ACEOF
9207 #define HAVE_INTTYPES_H 1
9214 if test $gt_cv_header_inttypes_h = yes; then
9215 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
9216 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
9217 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
9218 echo $ECHO_N "(cached) $ECHO_C" >&6
9221 cat >conftest.$ac_ext <<_ACEOF
9224 cat confdefs.h >>conftest.$ac_ext
9225 cat >>conftest.$ac_ext <<_ACEOF
9226 /* end confdefs.h. */
9227 #include <inttypes.h>
9240 rm -f conftest.$ac_objext
9241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9242 (eval $ac_compile) 2>conftest.er1
9244 grep -v '^ *+' conftest.er1 >conftest.err
9246 cat conftest.err >&5
9247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9248 (exit $ac_status); } &&
9249 { ac_try='test -z "$ac_c_werror_flag"
9250 || test ! -s conftest.err'
9251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255 (exit $ac_status); }; } &&
9256 { ac_try='test -s conftest.$ac_objext'
9257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9261 (exit $ac_status); }; }; then
9262 gt_cv_inttypes_pri_broken=no
9264 echo "$as_me: failed program was:" >&5
9265 sed 's/^/| /' conftest.$ac_ext >&5
9267 gt_cv_inttypes_pri_broken=yes
9269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9272 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
9273 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
9275 if test "$gt_cv_inttypes_pri_broken" = yes; then
9277 cat >>confdefs.h <<_ACEOF
9278 #define PRI_MACROS_BROKEN 1
9285 for ac_header in stdint.h
9287 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9288 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9289 echo "$as_me:$LINENO: checking for $ac_header" >&5
9290 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9291 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9292 echo $ECHO_N "(cached) $ECHO_C" >&6
9294 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9295 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9297 # Is the header compilable?
9298 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9299 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9300 cat >conftest.$ac_ext <<_ACEOF
9303 cat confdefs.h >>conftest.$ac_ext
9304 cat >>conftest.$ac_ext <<_ACEOF
9305 /* end confdefs.h. */
9306 $ac_includes_default
9307 #include <$ac_header>
9309 rm -f conftest.$ac_objext
9310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9311 (eval $ac_compile) 2>conftest.er1
9313 grep -v '^ *+' conftest.er1 >conftest.err
9315 cat conftest.err >&5
9316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9317 (exit $ac_status); } &&
9318 { ac_try='test -z "$ac_c_werror_flag"
9319 || test ! -s conftest.err'
9320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9324 (exit $ac_status); }; } &&
9325 { ac_try='test -s conftest.$ac_objext'
9326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9330 (exit $ac_status); }; }; then
9331 ac_header_compiler=yes
9333 echo "$as_me: failed program was:" >&5
9334 sed 's/^/| /' conftest.$ac_ext >&5
9336 ac_header_compiler=no
9338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9339 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9340 echo "${ECHO_T}$ac_header_compiler" >&6
9342 # Is the header present?
9343 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9344 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9345 cat >conftest.$ac_ext <<_ACEOF
9348 cat confdefs.h >>conftest.$ac_ext
9349 cat >>conftest.$ac_ext <<_ACEOF
9350 /* end confdefs.h. */
9351 #include <$ac_header>
9353 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9354 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9356 grep -v '^ *+' conftest.er1 >conftest.err
9358 cat conftest.err >&5
9359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9360 (exit $ac_status); } >/dev/null; then
9361 if test -s conftest.err; then
9362 ac_cpp_err=$ac_c_preproc_warn_flag
9363 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9370 if test -z "$ac_cpp_err"; then
9371 ac_header_preproc=yes
9373 echo "$as_me: failed program was:" >&5
9374 sed 's/^/| /' conftest.$ac_ext >&5
9376 ac_header_preproc=no
9378 rm -f conftest.err conftest.$ac_ext
9379 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9380 echo "${ECHO_T}$ac_header_preproc" >&6
9382 # So? What about this header?
9383 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9385 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9386 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9387 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9388 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9389 ac_header_preproc=yes
9392 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9393 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9394 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9395 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9396 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9397 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9398 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9399 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9400 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9401 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9402 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9403 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9406 ## ------------------------------------------ ##
9407 ## Report this to the AC_PACKAGE_NAME lists. ##
9408 ## ------------------------------------------ ##
9411 sed "s/^/$as_me: WARNING: /" >&2
9414 echo "$as_me:$LINENO: checking for $ac_header" >&5
9415 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9416 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9417 echo $ECHO_N "(cached) $ECHO_C" >&6
9419 eval "$as_ac_Header=\$ac_header_preproc"
9421 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9422 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9425 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9426 cat >>confdefs.h <<_ACEOF
9427 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9434 echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
9435 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6
9437 cat >conftest.$ac_ext <<_ACEOF
9440 cat confdefs.h >>conftest.$ac_ext
9441 cat >>conftest.$ac_ext <<_ACEOF
9442 /* end confdefs.h. */
9453 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9454 $EGREP "Found it" >/dev/null 2>&1; then
9459 if test -z "$result"; then
9460 if test "$cross_compiling" = yes; then
9461 # Depending upon the size, compute the lo and hi bounds.
9462 cat >conftest.$ac_ext <<_ACEOF
9465 cat confdefs.h >>conftest.$ac_ext
9466 cat >>conftest.$ac_ext <<_ACEOF
9467 /* end confdefs.h. */
9472 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
9479 rm -f conftest.$ac_objext
9480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9481 (eval $ac_compile) 2>conftest.er1
9483 grep -v '^ *+' conftest.er1 >conftest.err
9485 cat conftest.err >&5
9486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9487 (exit $ac_status); } &&
9488 { ac_try='test -z "$ac_c_werror_flag"
9489 || test ! -s conftest.err'
9490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9494 (exit $ac_status); }; } &&
9495 { ac_try='test -s conftest.$ac_objext'
9496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9500 (exit $ac_status); }; }; then
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) <= $ac_mid)];
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
9542 ac_hi=$ac_mid; break
9544 echo "$as_me: failed program was:" >&5
9545 sed 's/^/| /' conftest.$ac_ext >&5
9547 ac_lo=`expr $ac_mid + 1`
9548 if test $ac_lo -le $ac_mid; then
9552 ac_mid=`expr 2 '*' $ac_mid + 1`
9554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9557 echo "$as_me: failed program was:" >&5
9558 sed 's/^/| /' conftest.$ac_ext >&5
9560 cat >conftest.$ac_ext <<_ACEOF
9563 cat confdefs.h >>conftest.$ac_ext
9564 cat >>conftest.$ac_ext <<_ACEOF
9565 /* end confdefs.h. */
9570 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
9577 rm -f conftest.$ac_objext
9578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9579 (eval $ac_compile) 2>conftest.er1
9581 grep -v '^ *+' conftest.er1 >conftest.err
9583 cat conftest.err >&5
9584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9585 (exit $ac_status); } &&
9586 { ac_try='test -z "$ac_c_werror_flag"
9587 || test ! -s conftest.err'
9588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9592 (exit $ac_status); }; } &&
9593 { ac_try='test -s conftest.$ac_objext'
9594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9598 (exit $ac_status); }; }; then
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) >= $ac_mid)];
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
9640 ac_lo=$ac_mid; break
9642 echo "$as_me: failed program was:" >&5
9643 sed 's/^/| /' conftest.$ac_ext >&5
9645 ac_hi=`expr '(' $ac_mid ')' - 1`
9646 if test $ac_mid -le $ac_hi; then
9650 ac_mid=`expr 2 '*' $ac_mid`
9652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9655 echo "$as_me: failed program was:" >&5
9656 sed 's/^/| /' conftest.$ac_ext >&5
9660 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9663 # Binary search between lo and hi bounds.
9664 while test "x$ac_lo" != "x$ac_hi"; do
9665 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9666 cat >conftest.$ac_ext <<_ACEOF
9669 cat confdefs.h >>conftest.$ac_ext
9670 cat >>conftest.$ac_ext <<_ACEOF
9671 /* end confdefs.h. */
9676 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
9683 rm -f conftest.$ac_objext
9684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9685 (eval $ac_compile) 2>conftest.er1
9687 grep -v '^ *+' conftest.er1 >conftest.err
9689 cat conftest.err >&5
9690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9691 (exit $ac_status); } &&
9692 { ac_try='test -z "$ac_c_werror_flag"
9693 || test ! -s conftest.err'
9694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698 (exit $ac_status); }; } &&
9699 { ac_try='test -s conftest.$ac_objext'
9700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704 (exit $ac_status); }; }; then
9707 echo "$as_me: failed program was:" >&5
9708 sed 's/^/| /' conftest.$ac_ext >&5
9710 ac_lo=`expr '(' $ac_mid ')' + 1`
9712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9719 if test "$cross_compiling" = yes; then
9720 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9721 See \`config.log' for more details." >&5
9722 echo "$as_me: error: cannot run test program while cross compiling
9723 See \`config.log' for more details." >&2;}
9724 { (exit 1); exit 1; }; }
9726 cat >conftest.$ac_ext <<_ACEOF
9729 cat confdefs.h >>conftest.$ac_ext
9730 cat >>conftest.$ac_ext <<_ACEOF
9731 /* end confdefs.h. */
9733 long longval () { return ~(size_t)0 / 10; }
9734 unsigned long ulongval () { return ~(size_t)0 / 10; }
9741 FILE *f = fopen ("conftest.val", "w");
9744 if ((~(size_t)0 / 10) < 0)
9746 long i = longval ();
9747 if (i != (~(size_t)0 / 10))
9749 fprintf (f, "%ld\n", i);
9753 unsigned long i = ulongval ();
9754 if (i != (~(size_t)0 / 10))
9756 fprintf (f, "%lu\n", i);
9758 exit (ferror (f) || fclose (f) != 0);
9764 rm -f conftest$ac_exeext
9765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9766 (eval $ac_link) 2>&5
9768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774 (exit $ac_status); }; }; then
9775 res_hi=`cat conftest.val`
9777 echo "$as_me: program exited with status $ac_status" >&5
9778 echo "$as_me: failed program was:" >&5
9779 sed 's/^/| /' conftest.$ac_ext >&5
9784 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9788 if test "$cross_compiling" = yes; then
9789 # Depending upon the size, compute the lo and hi bounds.
9790 cat >conftest.$ac_ext <<_ACEOF
9793 cat confdefs.h >>conftest.$ac_ext
9794 cat >>conftest.$ac_ext <<_ACEOF
9795 /* end confdefs.h. */
9800 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
9807 rm -f conftest.$ac_objext
9808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9809 (eval $ac_compile) 2>conftest.er1
9811 grep -v '^ *+' conftest.er1 >conftest.err
9813 cat conftest.err >&5
9814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9815 (exit $ac_status); } &&
9816 { ac_try='test -z "$ac_c_werror_flag"
9817 || test ! -s conftest.err'
9818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822 (exit $ac_status); }; } &&
9823 { ac_try='test -s conftest.$ac_objext'
9824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828 (exit $ac_status); }; }; then
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) <= $ac_mid)];
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
9870 ac_hi=$ac_mid; break
9872 echo "$as_me: failed program was:" >&5
9873 sed 's/^/| /' conftest.$ac_ext >&5
9875 ac_lo=`expr $ac_mid + 1`
9876 if test $ac_lo -le $ac_mid; then
9880 ac_mid=`expr 2 '*' $ac_mid + 1`
9882 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9885 echo "$as_me: failed program was:" >&5
9886 sed 's/^/| /' conftest.$ac_ext >&5
9888 cat >conftest.$ac_ext <<_ACEOF
9891 cat confdefs.h >>conftest.$ac_ext
9892 cat >>conftest.$ac_ext <<_ACEOF
9893 /* end confdefs.h. */
9898 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
9905 rm -f conftest.$ac_objext
9906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9907 (eval $ac_compile) 2>conftest.er1
9909 grep -v '^ *+' conftest.er1 >conftest.err
9911 cat conftest.err >&5
9912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913 (exit $ac_status); } &&
9914 { ac_try='test -z "$ac_c_werror_flag"
9915 || test ! -s conftest.err'
9916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9920 (exit $ac_status); }; } &&
9921 { ac_try='test -s conftest.$ac_objext'
9922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926 (exit $ac_status); }; }; then
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) >= $ac_mid)];
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
9968 ac_lo=$ac_mid; break
9970 echo "$as_me: failed program was:" >&5
9971 sed 's/^/| /' conftest.$ac_ext >&5
9973 ac_hi=`expr '(' $ac_mid ')' - 1`
9974 if test $ac_mid -le $ac_hi; then
9978 ac_mid=`expr 2 '*' $ac_mid`
9980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9983 echo "$as_me: failed program was:" >&5
9984 sed 's/^/| /' conftest.$ac_ext >&5
9988 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9990 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9991 # Binary search between lo and hi bounds.
9992 while test "x$ac_lo" != "x$ac_hi"; do
9993 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9994 cat >conftest.$ac_ext <<_ACEOF
9997 cat confdefs.h >>conftest.$ac_ext
9998 cat >>conftest.$ac_ext <<_ACEOF
9999 /* end confdefs.h. */
10000 #include <stddef.h>
10004 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
10011 rm -f conftest.$ac_objext
10012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10013 (eval $ac_compile) 2>conftest.er1
10015 grep -v '^ *+' conftest.er1 >conftest.err
10017 cat conftest.err >&5
10018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10019 (exit $ac_status); } &&
10020 { ac_try='test -z "$ac_c_werror_flag"
10021 || test ! -s conftest.err'
10022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10023 (eval $ac_try) 2>&5
10025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10026 (exit $ac_status); }; } &&
10027 { ac_try='test -s conftest.$ac_objext'
10028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10029 (eval $ac_try) 2>&5
10031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032 (exit $ac_status); }; }; then
10035 echo "$as_me: failed program was:" >&5
10036 sed 's/^/| /' conftest.$ac_ext >&5
10038 ac_lo=`expr '(' $ac_mid ')' + 1`
10040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10043 ?*) res_lo=$ac_lo;;
10047 if test "$cross_compiling" = yes; then
10048 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10049 See \`config.log' for more details." >&5
10050 echo "$as_me: error: cannot run test program while cross compiling
10051 See \`config.log' for more details." >&2;}
10052 { (exit 1); exit 1; }; }
10054 cat >conftest.$ac_ext <<_ACEOF
10057 cat confdefs.h >>conftest.$ac_ext
10058 cat >>conftest.$ac_ext <<_ACEOF
10059 /* end confdefs.h. */
10060 #include <stddef.h>
10061 long longval () { return ~(size_t)0 % 10; }
10062 unsigned long ulongval () { return ~(size_t)0 % 10; }
10064 #include <stdlib.h>
10069 FILE *f = fopen ("conftest.val", "w");
10072 if ((~(size_t)0 % 10) < 0)
10074 long i = longval ();
10075 if (i != (~(size_t)0 % 10))
10077 fprintf (f, "%ld\n", i);
10081 unsigned long i = ulongval ();
10082 if (i != (~(size_t)0 % 10))
10084 fprintf (f, "%lu\n", i);
10086 exit (ferror (f) || fclose (f) != 0);
10092 rm -f conftest$ac_exeext
10093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10094 (eval $ac_link) 2>&5
10096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10097 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10099 (eval $ac_try) 2>&5
10101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10102 (exit $ac_status); }; }; then
10103 res_lo=`cat conftest.val`
10105 echo "$as_me: program exited with status $ac_status" >&5
10106 echo "$as_me: failed program was:" >&5
10107 sed 's/^/| /' conftest.$ac_ext >&5
10109 ( exit $ac_status )
10112 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10116 if test "$cross_compiling" = yes; then
10117 # Depending upon the size, compute the lo and hi bounds.
10118 cat >conftest.$ac_ext <<_ACEOF
10121 cat confdefs.h >>conftest.$ac_ext
10122 cat >>conftest.$ac_ext <<_ACEOF
10123 /* end confdefs.h. */
10124 #include <stddef.h>
10128 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
10135 rm -f conftest.$ac_objext
10136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10137 (eval $ac_compile) 2>conftest.er1
10139 grep -v '^ *+' conftest.er1 >conftest.err
10141 cat conftest.err >&5
10142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143 (exit $ac_status); } &&
10144 { ac_try='test -z "$ac_c_werror_flag"
10145 || test ! -s conftest.err'
10146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10147 (eval $ac_try) 2>&5
10149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150 (exit $ac_status); }; } &&
10151 { ac_try='test -s conftest.$ac_objext'
10152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10153 (eval $ac_try) 2>&5
10155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156 (exit $ac_status); }; }; then
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)) <= $ac_mid)];
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
10198 ac_hi=$ac_mid; break
10200 echo "$as_me: failed program was:" >&5
10201 sed 's/^/| /' conftest.$ac_ext >&5
10203 ac_lo=`expr $ac_mid + 1`
10204 if test $ac_lo -le $ac_mid; then
10208 ac_mid=`expr 2 '*' $ac_mid + 1`
10210 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10213 echo "$as_me: failed program was:" >&5
10214 sed 's/^/| /' conftest.$ac_ext >&5
10216 cat >conftest.$ac_ext <<_ACEOF
10219 cat confdefs.h >>conftest.$ac_ext
10220 cat >>conftest.$ac_ext <<_ACEOF
10221 /* end confdefs.h. */
10222 #include <stddef.h>
10226 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
10233 rm -f conftest.$ac_objext
10234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10235 (eval $ac_compile) 2>conftest.er1
10237 grep -v '^ *+' conftest.er1 >conftest.err
10239 cat conftest.err >&5
10240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241 (exit $ac_status); } &&
10242 { ac_try='test -z "$ac_c_werror_flag"
10243 || test ! -s conftest.err'
10244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10245 (eval $ac_try) 2>&5
10247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248 (exit $ac_status); }; } &&
10249 { ac_try='test -s conftest.$ac_objext'
10250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10251 (eval $ac_try) 2>&5
10253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254 (exit $ac_status); }; }; then
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)) >= $ac_mid)];
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
10296 ac_lo=$ac_mid; break
10298 echo "$as_me: failed program was:" >&5
10299 sed 's/^/| /' conftest.$ac_ext >&5
10301 ac_hi=`expr '(' $ac_mid ')' - 1`
10302 if test $ac_mid -le $ac_hi; then
10306 ac_mid=`expr 2 '*' $ac_mid`
10308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10311 echo "$as_me: failed program was:" >&5
10312 sed 's/^/| /' conftest.$ac_ext >&5
10316 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10319 # Binary search between lo and hi bounds.
10320 while test "x$ac_lo" != "x$ac_hi"; do
10321 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10322 cat >conftest.$ac_ext <<_ACEOF
10325 cat confdefs.h >>conftest.$ac_ext
10326 cat >>conftest.$ac_ext <<_ACEOF
10327 /* end confdefs.h. */
10328 #include <stddef.h>
10332 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10339 rm -f conftest.$ac_objext
10340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10341 (eval $ac_compile) 2>conftest.er1
10343 grep -v '^ *+' conftest.er1 >conftest.err
10345 cat conftest.err >&5
10346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10347 (exit $ac_status); } &&
10348 { ac_try='test -z "$ac_c_werror_flag"
10349 || test ! -s conftest.err'
10350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10351 (eval $ac_try) 2>&5
10353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10354 (exit $ac_status); }; } &&
10355 { ac_try='test -s conftest.$ac_objext'
10356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10357 (eval $ac_try) 2>&5
10359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360 (exit $ac_status); }; }; then
10363 echo "$as_me: failed program was:" >&5
10364 sed 's/^/| /' conftest.$ac_ext >&5
10366 ac_lo=`expr '(' $ac_mid ')' + 1`
10368 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10371 ?*) fits_in_uint=$ac_lo;;
10375 if test "$cross_compiling" = yes; then
10376 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10377 See \`config.log' for more details." >&5
10378 echo "$as_me: error: cannot run test program while cross compiling
10379 See \`config.log' for more details." >&2;}
10380 { (exit 1); exit 1; }; }
10382 cat >conftest.$ac_ext <<_ACEOF
10385 cat confdefs.h >>conftest.$ac_ext
10386 cat >>conftest.$ac_ext <<_ACEOF
10387 /* end confdefs.h. */
10388 #include <stddef.h>
10389 long longval () { return sizeof (size_t) <= sizeof (unsigned int); }
10390 unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
10392 #include <stdlib.h>
10397 FILE *f = fopen ("conftest.val", "w");
10400 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
10402 long i = longval ();
10403 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
10405 fprintf (f, "%ld\n", i);
10409 unsigned long i = ulongval ();
10410 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
10412 fprintf (f, "%lu\n", i);
10414 exit (ferror (f) || fclose (f) != 0);
10420 rm -f conftest$ac_exeext
10421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10422 (eval $ac_link) 2>&5
10424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10425 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10427 (eval $ac_try) 2>&5
10429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10430 (exit $ac_status); }; }; then
10431 fits_in_uint=`cat conftest.val`
10433 echo "$as_me: program exited with status $ac_status" >&5
10434 echo "$as_me: failed program was:" >&5
10435 sed 's/^/| /' conftest.$ac_ext >&5
10437 ( exit $ac_status )
10440 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10444 if test "$fits_in_uint" = 1; then
10445 cat >conftest.$ac_ext <<_ACEOF
10448 cat confdefs.h >>conftest.$ac_ext
10449 cat >>conftest.$ac_ext <<_ACEOF
10450 /* end confdefs.h. */
10451 #include <stddef.h>
10453 extern unsigned long foo;
10463 rm -f conftest.$ac_objext
10464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10465 (eval $ac_compile) 2>conftest.er1
10467 grep -v '^ *+' conftest.er1 >conftest.err
10469 cat conftest.err >&5
10470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10471 (exit $ac_status); } &&
10472 { ac_try='test -z "$ac_c_werror_flag"
10473 || test ! -s conftest.err'
10474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10475 (eval $ac_try) 2>&5
10477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10478 (exit $ac_status); }; } &&
10479 { ac_try='test -s conftest.$ac_objext'
10480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10481 (eval $ac_try) 2>&5
10483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10484 (exit $ac_status); }; }; then
10487 echo "$as_me: failed program was:" >&5
10488 sed 's/^/| /' conftest.$ac_ext >&5
10491 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10493 if test -z "$result"; then
10494 if test "$fits_in_uint" = 1; then
10495 result="$res_hi$res_lo"U
10497 result="$res_hi$res_lo"UL
10500 result='~(size_t)0'
10503 echo "$as_me:$LINENO: result: $result" >&5
10504 echo "${ECHO_T}$result" >&6
10505 if test "$result" != yes; then
10507 cat >>confdefs.h <<_ACEOF
10508 #define SIZE_MAX $result
10517 for ac_header in stdint.h
10519 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10520 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10521 echo "$as_me:$LINENO: checking for $ac_header" >&5
10522 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10523 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10524 echo $ECHO_N "(cached) $ECHO_C" >&6
10526 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10527 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10529 # Is the header compilable?
10530 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10531 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10532 cat >conftest.$ac_ext <<_ACEOF
10535 cat confdefs.h >>conftest.$ac_ext
10536 cat >>conftest.$ac_ext <<_ACEOF
10537 /* end confdefs.h. */
10538 $ac_includes_default
10539 #include <$ac_header>
10541 rm -f conftest.$ac_objext
10542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10543 (eval $ac_compile) 2>conftest.er1
10545 grep -v '^ *+' conftest.er1 >conftest.err
10547 cat conftest.err >&5
10548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549 (exit $ac_status); } &&
10550 { ac_try='test -z "$ac_c_werror_flag"
10551 || test ! -s conftest.err'
10552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10553 (eval $ac_try) 2>&5
10555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556 (exit $ac_status); }; } &&
10557 { ac_try='test -s conftest.$ac_objext'
10558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10559 (eval $ac_try) 2>&5
10561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10562 (exit $ac_status); }; }; then
10563 ac_header_compiler=yes
10565 echo "$as_me: failed program was:" >&5
10566 sed 's/^/| /' conftest.$ac_ext >&5
10568 ac_header_compiler=no
10570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10571 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10572 echo "${ECHO_T}$ac_header_compiler" >&6
10574 # Is the header present?
10575 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10576 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10577 cat >conftest.$ac_ext <<_ACEOF
10580 cat confdefs.h >>conftest.$ac_ext
10581 cat >>conftest.$ac_ext <<_ACEOF
10582 /* end confdefs.h. */
10583 #include <$ac_header>
10585 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10586 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10588 grep -v '^ *+' conftest.er1 >conftest.err
10590 cat conftest.err >&5
10591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10592 (exit $ac_status); } >/dev/null; then
10593 if test -s conftest.err; then
10594 ac_cpp_err=$ac_c_preproc_warn_flag
10595 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10602 if test -z "$ac_cpp_err"; then
10603 ac_header_preproc=yes
10605 echo "$as_me: failed program was:" >&5
10606 sed 's/^/| /' conftest.$ac_ext >&5
10608 ac_header_preproc=no
10610 rm -f conftest.err conftest.$ac_ext
10611 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10612 echo "${ECHO_T}$ac_header_preproc" >&6
10614 # So? What about this header?
10615 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10617 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10618 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10619 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10620 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10621 ac_header_preproc=yes
10624 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10625 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10626 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10627 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10628 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10629 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10630 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10631 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10632 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10633 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10634 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10635 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10638 ## ------------------------------------------ ##
10639 ## Report this to the AC_PACKAGE_NAME lists. ##
10640 ## ------------------------------------------ ##
10643 sed "s/^/$as_me: WARNING: /" >&2
10646 echo "$as_me:$LINENO: checking for $ac_header" >&5
10647 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10648 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10649 echo $ECHO_N "(cached) $ECHO_C" >&6
10651 eval "$as_ac_Header=\$ac_header_preproc"
10653 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10654 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10657 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10658 cat >>confdefs.h <<_ACEOF
10659 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10673 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
10674 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
10675 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
10676 echo $ECHO_N "(cached) $ECHO_C" >&6
10678 cat >conftest.$ac_ext <<_ACEOF
10681 cat confdefs.h >>conftest.$ac_ext
10682 cat >>conftest.$ac_ext <<_ACEOF
10683 /* end confdefs.h. */
10684 $ac_includes_default
10688 if ((ptrdiff_t *) 0)
10690 if (sizeof (ptrdiff_t))
10696 rm -f conftest.$ac_objext
10697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10698 (eval $ac_compile) 2>conftest.er1
10700 grep -v '^ *+' conftest.er1 >conftest.err
10702 cat conftest.err >&5
10703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10704 (exit $ac_status); } &&
10705 { ac_try='test -z "$ac_c_werror_flag"
10706 || test ! -s conftest.err'
10707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10708 (eval $ac_try) 2>&5
10710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10711 (exit $ac_status); }; } &&
10712 { ac_try='test -s conftest.$ac_objext'
10713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10714 (eval $ac_try) 2>&5
10716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10717 (exit $ac_status); }; }; then
10718 ac_cv_type_ptrdiff_t=yes
10720 echo "$as_me: failed program was:" >&5
10721 sed 's/^/| /' conftest.$ac_ext >&5
10723 ac_cv_type_ptrdiff_t=no
10725 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10727 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
10728 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
10729 if test $ac_cv_type_ptrdiff_t = yes; then
10733 cat >>confdefs.h <<\_ACEOF
10734 #define ptrdiff_t long
10750 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
10751 stdlib.h string.h unistd.h sys/param.h
10753 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10754 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10755 echo "$as_me:$LINENO: checking for $ac_header" >&5
10756 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10757 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10758 echo $ECHO_N "(cached) $ECHO_C" >&6
10760 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10761 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10763 # Is the header compilable?
10764 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10765 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10766 cat >conftest.$ac_ext <<_ACEOF
10769 cat confdefs.h >>conftest.$ac_ext
10770 cat >>conftest.$ac_ext <<_ACEOF
10771 /* end confdefs.h. */
10772 $ac_includes_default
10773 #include <$ac_header>
10775 rm -f conftest.$ac_objext
10776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10777 (eval $ac_compile) 2>conftest.er1
10779 grep -v '^ *+' conftest.er1 >conftest.err
10781 cat conftest.err >&5
10782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10783 (exit $ac_status); } &&
10784 { ac_try='test -z "$ac_c_werror_flag"
10785 || test ! -s conftest.err'
10786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10787 (eval $ac_try) 2>&5
10789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10790 (exit $ac_status); }; } &&
10791 { ac_try='test -s conftest.$ac_objext'
10792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10793 (eval $ac_try) 2>&5
10795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10796 (exit $ac_status); }; }; then
10797 ac_header_compiler=yes
10799 echo "$as_me: failed program was:" >&5
10800 sed 's/^/| /' conftest.$ac_ext >&5
10802 ac_header_compiler=no
10804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10805 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10806 echo "${ECHO_T}$ac_header_compiler" >&6
10808 # Is the header present?
10809 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10810 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10811 cat >conftest.$ac_ext <<_ACEOF
10814 cat confdefs.h >>conftest.$ac_ext
10815 cat >>conftest.$ac_ext <<_ACEOF
10816 /* end confdefs.h. */
10817 #include <$ac_header>
10819 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10820 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10822 grep -v '^ *+' conftest.er1 >conftest.err
10824 cat conftest.err >&5
10825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10826 (exit $ac_status); } >/dev/null; then
10827 if test -s conftest.err; then
10828 ac_cpp_err=$ac_c_preproc_warn_flag
10829 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10836 if test -z "$ac_cpp_err"; then
10837 ac_header_preproc=yes
10839 echo "$as_me: failed program was:" >&5
10840 sed 's/^/| /' conftest.$ac_ext >&5
10842 ac_header_preproc=no
10844 rm -f conftest.err conftest.$ac_ext
10845 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10846 echo "${ECHO_T}$ac_header_preproc" >&6
10848 # So? What about this header?
10849 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10851 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10852 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10853 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10854 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10855 ac_header_preproc=yes
10858 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10859 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10860 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10861 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10862 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10863 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10864 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10865 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10866 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10867 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10868 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10869 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10872 ## ------------------------------------------ ##
10873 ## Report this to the AC_PACKAGE_NAME lists. ##
10874 ## ------------------------------------------ ##
10877 sed "s/^/$as_me: WARNING: /" >&2
10880 echo "$as_me:$LINENO: checking for $ac_header" >&5
10881 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10882 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10883 echo $ECHO_N "(cached) $ECHO_C" >&6
10885 eval "$as_ac_Header=\$ac_header_preproc"
10887 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10888 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10891 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10892 cat >>confdefs.h <<_ACEOF
10893 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10923 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
10924 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
10925 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
10928 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10929 echo "$as_me:$LINENO: checking for $ac_func" >&5
10930 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10931 if eval "test \"\${$as_ac_var+set}\" = set"; then
10932 echo $ECHO_N "(cached) $ECHO_C" >&6
10934 cat >conftest.$ac_ext <<_ACEOF
10937 cat confdefs.h >>conftest.$ac_ext
10938 cat >>conftest.$ac_ext <<_ACEOF
10939 /* end confdefs.h. */
10940 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10941 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10942 #define $ac_func innocuous_$ac_func
10944 /* System header to define __stub macros and hopefully few prototypes,
10945 which can conflict with char $ac_func (); below.
10946 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10947 <limits.h> exists even on freestanding compilers. */
10950 # include <limits.h>
10952 # include <assert.h>
10957 /* Override any gcc2 internal prototype to avoid an error. */
10962 /* We use char because int might match the return type of a gcc2
10963 builtin and then its argument prototype would still apply. */
10965 /* The GNU C library defines this for functions which it implements
10966 to always fail with ENOSYS. Some functions are actually named
10967 something starting with __ and the normal name is an alias. */
10968 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10971 char (*f) () = $ac_func;
10980 return f != $ac_func;
10985 rm -f conftest.$ac_objext conftest$ac_exeext
10986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10987 (eval $ac_link) 2>conftest.er1
10989 grep -v '^ *+' conftest.er1 >conftest.err
10991 cat conftest.err >&5
10992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10993 (exit $ac_status); } &&
10994 { ac_try='test -z "$ac_c_werror_flag"
10995 || test ! -s conftest.err'
10996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10997 (eval $ac_try) 2>&5
10999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11000 (exit $ac_status); }; } &&
11001 { ac_try='test -s conftest$ac_exeext'
11002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11003 (eval $ac_try) 2>&5
11005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11006 (exit $ac_status); }; }; then
11007 eval "$as_ac_var=yes"
11009 echo "$as_me: failed program was:" >&5
11010 sed 's/^/| /' conftest.$ac_ext >&5
11012 eval "$as_ac_var=no"
11014 rm -f conftest.err conftest.$ac_objext \
11015 conftest$ac_exeext conftest.$ac_ext
11017 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11018 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11019 if test `eval echo '${'$as_ac_var'}'` = yes; then
11020 cat >>confdefs.h <<_ACEOF
11021 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11029 echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
11030 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6
11031 if test "${ac_cv_have_decl__snprintf+set}" = set; then
11032 echo $ECHO_N "(cached) $ECHO_C" >&6
11034 cat >conftest.$ac_ext <<_ACEOF
11037 cat confdefs.h >>conftest.$ac_ext
11038 cat >>conftest.$ac_ext <<_ACEOF
11039 /* end confdefs.h. */
11046 char *p = (char *) _snprintf;
11053 rm -f conftest.$ac_objext
11054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11055 (eval $ac_compile) 2>conftest.er1
11057 grep -v '^ *+' conftest.er1 >conftest.err
11059 cat conftest.err >&5
11060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11061 (exit $ac_status); } &&
11062 { ac_try='test -z "$ac_c_werror_flag"
11063 || test ! -s conftest.err'
11064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11065 (eval $ac_try) 2>&5
11067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11068 (exit $ac_status); }; } &&
11069 { ac_try='test -s conftest.$ac_objext'
11070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11071 (eval $ac_try) 2>&5
11073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074 (exit $ac_status); }; }; then
11075 ac_cv_have_decl__snprintf=yes
11077 echo "$as_me: failed program was:" >&5
11078 sed 's/^/| /' conftest.$ac_ext >&5
11080 ac_cv_have_decl__snprintf=no
11082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11084 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
11085 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6
11086 if test $ac_cv_have_decl__snprintf = yes; then
11092 cat >>confdefs.h <<_ACEOF
11093 #define HAVE_DECL__SNPRINTF $gt_value
11098 echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
11099 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6
11100 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
11101 echo $ECHO_N "(cached) $ECHO_C" >&6
11103 cat >conftest.$ac_ext <<_ACEOF
11106 cat confdefs.h >>conftest.$ac_ext
11107 cat >>conftest.$ac_ext <<_ACEOF
11108 /* end confdefs.h. */
11115 char *p = (char *) _snwprintf;
11122 rm -f conftest.$ac_objext
11123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11124 (eval $ac_compile) 2>conftest.er1
11126 grep -v '^ *+' conftest.er1 >conftest.err
11128 cat conftest.err >&5
11129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11130 (exit $ac_status); } &&
11131 { ac_try='test -z "$ac_c_werror_flag"
11132 || test ! -s conftest.err'
11133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11134 (eval $ac_try) 2>&5
11136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11137 (exit $ac_status); }; } &&
11138 { ac_try='test -s conftest.$ac_objext'
11139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11140 (eval $ac_try) 2>&5
11142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11143 (exit $ac_status); }; }; then
11144 ac_cv_have_decl__snwprintf=yes
11146 echo "$as_me: failed program was:" >&5
11147 sed 's/^/| /' conftest.$ac_ext >&5
11149 ac_cv_have_decl__snwprintf=no
11151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11153 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
11154 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6
11155 if test $ac_cv_have_decl__snwprintf = yes; then
11161 cat >>confdefs.h <<_ACEOF
11162 #define HAVE_DECL__SNWPRINTF $gt_value
11168 echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
11169 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
11170 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
11171 echo $ECHO_N "(cached) $ECHO_C" >&6
11173 cat >conftest.$ac_ext <<_ACEOF
11176 cat confdefs.h >>conftest.$ac_ext
11177 cat >>conftest.$ac_ext <<_ACEOF
11178 /* end confdefs.h. */
11184 #ifndef feof_unlocked
11185 char *p = (char *) feof_unlocked;
11192 rm -f conftest.$ac_objext
11193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11194 (eval $ac_compile) 2>conftest.er1
11196 grep -v '^ *+' conftest.er1 >conftest.err
11198 cat conftest.err >&5
11199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11200 (exit $ac_status); } &&
11201 { ac_try='test -z "$ac_c_werror_flag"
11202 || test ! -s conftest.err'
11203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11204 (eval $ac_try) 2>&5
11206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11207 (exit $ac_status); }; } &&
11208 { ac_try='test -s conftest.$ac_objext'
11209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11210 (eval $ac_try) 2>&5
11212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11213 (exit $ac_status); }; }; then
11214 ac_cv_have_decl_feof_unlocked=yes
11216 echo "$as_me: failed program was:" >&5
11217 sed 's/^/| /' conftest.$ac_ext >&5
11219 ac_cv_have_decl_feof_unlocked=no
11221 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11223 echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
11224 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
11225 if test $ac_cv_have_decl_feof_unlocked = yes; then
11231 cat >>confdefs.h <<_ACEOF
11232 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
11237 echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
11238 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
11239 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
11240 echo $ECHO_N "(cached) $ECHO_C" >&6
11242 cat >conftest.$ac_ext <<_ACEOF
11245 cat confdefs.h >>conftest.$ac_ext
11246 cat >>conftest.$ac_ext <<_ACEOF
11247 /* end confdefs.h. */
11253 #ifndef fgets_unlocked
11254 char *p = (char *) fgets_unlocked;
11261 rm -f conftest.$ac_objext
11262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11263 (eval $ac_compile) 2>conftest.er1
11265 grep -v '^ *+' conftest.er1 >conftest.err
11267 cat conftest.err >&5
11268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11269 (exit $ac_status); } &&
11270 { ac_try='test -z "$ac_c_werror_flag"
11271 || test ! -s conftest.err'
11272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11273 (eval $ac_try) 2>&5
11275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11276 (exit $ac_status); }; } &&
11277 { ac_try='test -s conftest.$ac_objext'
11278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11279 (eval $ac_try) 2>&5
11281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11282 (exit $ac_status); }; }; then
11283 ac_cv_have_decl_fgets_unlocked=yes
11285 echo "$as_me: failed program was:" >&5
11286 sed 's/^/| /' conftest.$ac_ext >&5
11288 ac_cv_have_decl_fgets_unlocked=no
11290 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11292 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
11293 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
11294 if test $ac_cv_have_decl_fgets_unlocked = yes; then
11300 cat >>confdefs.h <<_ACEOF
11301 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
11306 echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
11307 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
11308 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
11309 echo $ECHO_N "(cached) $ECHO_C" >&6
11311 cat >conftest.$ac_ext <<_ACEOF
11314 cat confdefs.h >>conftest.$ac_ext
11315 cat >>conftest.$ac_ext <<_ACEOF
11316 /* end confdefs.h. */
11322 #ifndef getc_unlocked
11323 char *p = (char *) getc_unlocked;
11330 rm -f conftest.$ac_objext
11331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11332 (eval $ac_compile) 2>conftest.er1
11334 grep -v '^ *+' conftest.er1 >conftest.err
11336 cat conftest.err >&5
11337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338 (exit $ac_status); } &&
11339 { ac_try='test -z "$ac_c_werror_flag"
11340 || test ! -s conftest.err'
11341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11342 (eval $ac_try) 2>&5
11344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11345 (exit $ac_status); }; } &&
11346 { ac_try='test -s conftest.$ac_objext'
11347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11348 (eval $ac_try) 2>&5
11350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11351 (exit $ac_status); }; }; then
11352 ac_cv_have_decl_getc_unlocked=yes
11354 echo "$as_me: failed program was:" >&5
11355 sed 's/^/| /' conftest.$ac_ext >&5
11357 ac_cv_have_decl_getc_unlocked=no
11359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11361 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
11362 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
11363 if test $ac_cv_have_decl_getc_unlocked = yes; then
11369 cat >>confdefs.h <<_ACEOF
11370 #define HAVE_DECL_GETC_UNLOCKED $gt_value
11375 case $gt_cv_func_printf_posix in
11376 *yes) HAVE_POSIX_PRINTF=1 ;;
11377 *) HAVE_POSIX_PRINTF=0 ;;
11380 if test "$ac_cv_func_asprintf" = yes; then
11386 if test "$ac_cv_func_snprintf" = yes; then
11392 if test "$ac_cv_func_wprintf" = yes; then
11404 am_save_CPPFLAGS="$CPPFLAGS"
11406 for element in $INCICONV; do
11408 for x in $CPPFLAGS; do
11410 acl_save_prefix="$prefix"
11411 prefix="$acl_final_prefix"
11412 acl_save_exec_prefix="$exec_prefix"
11413 exec_prefix="$acl_final_exec_prefix"
11415 exec_prefix="$acl_save_exec_prefix"
11416 prefix="$acl_save_prefix"
11418 if test "X$x" = "X$element"; then
11423 if test -z "$haveit"; then
11424 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11429 echo "$as_me:$LINENO: checking for iconv" >&5
11430 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
11431 if test "${am_cv_func_iconv+set}" = set; then
11432 echo $ECHO_N "(cached) $ECHO_C" >&6
11435 am_cv_func_iconv="no, consider installing GNU libiconv"
11437 cat >conftest.$ac_ext <<_ACEOF
11440 cat confdefs.h >>conftest.$ac_ext
11441 cat >>conftest.$ac_ext <<_ACEOF
11442 /* end confdefs.h. */
11443 #include <stdlib.h>
11448 iconv_t cd = iconv_open("","");
11449 iconv(cd,NULL,NULL,NULL,NULL);
11455 rm -f conftest.$ac_objext conftest$ac_exeext
11456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11457 (eval $ac_link) 2>conftest.er1
11459 grep -v '^ *+' conftest.er1 >conftest.err
11461 cat conftest.err >&5
11462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11463 (exit $ac_status); } &&
11464 { ac_try='test -z "$ac_c_werror_flag"
11465 || test ! -s conftest.err'
11466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11467 (eval $ac_try) 2>&5
11469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11470 (exit $ac_status); }; } &&
11471 { ac_try='test -s conftest$ac_exeext'
11472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11473 (eval $ac_try) 2>&5
11475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11476 (exit $ac_status); }; }; then
11477 am_cv_func_iconv=yes
11479 echo "$as_me: failed program was:" >&5
11480 sed 's/^/| /' conftest.$ac_ext >&5
11483 rm -f conftest.err conftest.$ac_objext \
11484 conftest$ac_exeext conftest.$ac_ext
11485 if test "$am_cv_func_iconv" != yes; then
11486 am_save_LIBS="$LIBS"
11487 LIBS="$LIBS $LIBICONV"
11488 cat >conftest.$ac_ext <<_ACEOF
11491 cat confdefs.h >>conftest.$ac_ext
11492 cat >>conftest.$ac_ext <<_ACEOF
11493 /* end confdefs.h. */
11494 #include <stdlib.h>
11499 iconv_t cd = iconv_open("","");
11500 iconv(cd,NULL,NULL,NULL,NULL);
11506 rm -f conftest.$ac_objext conftest$ac_exeext
11507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11508 (eval $ac_link) 2>conftest.er1
11510 grep -v '^ *+' conftest.er1 >conftest.err
11512 cat conftest.err >&5
11513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11514 (exit $ac_status); } &&
11515 { ac_try='test -z "$ac_c_werror_flag"
11516 || test ! -s conftest.err'
11517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11518 (eval $ac_try) 2>&5
11520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11521 (exit $ac_status); }; } &&
11522 { ac_try='test -s conftest$ac_exeext'
11523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11524 (eval $ac_try) 2>&5
11526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11527 (exit $ac_status); }; }; then
11528 am_cv_lib_iconv=yes
11529 am_cv_func_iconv=yes
11531 echo "$as_me: failed program was:" >&5
11532 sed 's/^/| /' conftest.$ac_ext >&5
11535 rm -f conftest.err conftest.$ac_objext \
11536 conftest$ac_exeext conftest.$ac_ext
11537 LIBS="$am_save_LIBS"
11541 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11542 echo "${ECHO_T}$am_cv_func_iconv" >&6
11543 if test "$am_cv_func_iconv" = yes; then
11545 cat >>confdefs.h <<\_ACEOF
11546 #define HAVE_ICONV 1
11550 if test "$am_cv_lib_iconv" = yes; then
11551 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11552 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
11553 echo "$as_me:$LINENO: result: $LIBICONV" >&5
11554 echo "${ECHO_T}$LIBICONV" >&6
11556 CPPFLAGS="$am_save_CPPFLAGS"
11563 if test "$am_cv_func_iconv" = yes; then
11564 echo "$as_me:$LINENO: checking for iconv declaration" >&5
11565 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11566 if test "${am_cv_proto_iconv+set}" = set; then
11567 echo $ECHO_N "(cached) $ECHO_C" >&6
11570 cat >conftest.$ac_ext <<_ACEOF
11573 cat confdefs.h >>conftest.$ac_ext
11574 cat >>conftest.$ac_ext <<_ACEOF
11575 /* end confdefs.h. */
11577 #include <stdlib.h>
11583 #if defined(__STDC__) || defined(__cplusplus)
11584 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11597 rm -f conftest.$ac_objext
11598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11599 (eval $ac_compile) 2>conftest.er1
11601 grep -v '^ *+' conftest.er1 >conftest.err
11603 cat conftest.err >&5
11604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11605 (exit $ac_status); } &&
11606 { ac_try='test -z "$ac_c_werror_flag"
11607 || test ! -s conftest.err'
11608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11609 (eval $ac_try) 2>&5
11611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11612 (exit $ac_status); }; } &&
11613 { ac_try='test -s conftest.$ac_objext'
11614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11615 (eval $ac_try) 2>&5
11617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11618 (exit $ac_status); }; }; then
11619 am_cv_proto_iconv_arg1=""
11621 echo "$as_me: failed program was:" >&5
11622 sed 's/^/| /' conftest.$ac_ext >&5
11624 am_cv_proto_iconv_arg1="const"
11626 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11627 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);"
11630 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11631 echo "$as_me:$LINENO: result: ${ac_t:-
11632 }$am_cv_proto_iconv" >&5
11633 echo "${ECHO_T}${ac_t:-
11634 }$am_cv_proto_iconv" >&6
11636 cat >>confdefs.h <<_ACEOF
11637 #define ICONV_CONST $am_cv_proto_iconv_arg1
11643 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11644 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11645 if test "${am_cv_langinfo_codeset+set}" = set; then
11646 echo $ECHO_N "(cached) $ECHO_C" >&6
11648 cat >conftest.$ac_ext <<_ACEOF
11651 cat confdefs.h >>conftest.$ac_ext
11652 cat >>conftest.$ac_ext <<_ACEOF
11653 /* end confdefs.h. */
11654 #include <langinfo.h>
11658 char* cs = nl_langinfo(CODESET);
11663 rm -f conftest.$ac_objext conftest$ac_exeext
11664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11665 (eval $ac_link) 2>conftest.er1
11667 grep -v '^ *+' conftest.er1 >conftest.err
11669 cat conftest.err >&5
11670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11671 (exit $ac_status); } &&
11672 { ac_try='test -z "$ac_c_werror_flag"
11673 || test ! -s conftest.err'
11674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11675 (eval $ac_try) 2>&5
11677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11678 (exit $ac_status); }; } &&
11679 { ac_try='test -s conftest$ac_exeext'
11680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11681 (eval $ac_try) 2>&5
11683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11684 (exit $ac_status); }; }; then
11685 am_cv_langinfo_codeset=yes
11687 echo "$as_me: failed program was:" >&5
11688 sed 's/^/| /' conftest.$ac_ext >&5
11690 am_cv_langinfo_codeset=no
11692 rm -f conftest.err conftest.$ac_objext \
11693 conftest$ac_exeext conftest.$ac_ext
11696 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11697 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11698 if test $am_cv_langinfo_codeset = yes; then
11700 cat >>confdefs.h <<\_ACEOF
11701 #define HAVE_LANGINFO_CODESET 1
11706 if test $ac_cv_header_locale_h = yes; then
11708 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11709 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11710 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
11711 echo $ECHO_N "(cached) $ECHO_C" >&6
11713 cat >conftest.$ac_ext <<_ACEOF
11716 cat confdefs.h >>conftest.$ac_ext
11717 cat >>conftest.$ac_ext <<_ACEOF
11718 /* end confdefs.h. */
11719 #include <locale.h>
11728 rm -f conftest.$ac_objext conftest$ac_exeext
11729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11730 (eval $ac_link) 2>conftest.er1
11732 grep -v '^ *+' conftest.er1 >conftest.err
11734 cat conftest.err >&5
11735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11736 (exit $ac_status); } &&
11737 { ac_try='test -z "$ac_c_werror_flag"
11738 || test ! -s conftest.err'
11739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11740 (eval $ac_try) 2>&5
11742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11743 (exit $ac_status); }; } &&
11744 { ac_try='test -s conftest$ac_exeext'
11745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11746 (eval $ac_try) 2>&5
11748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11749 (exit $ac_status); }; }; then
11750 gt_cv_val_LC_MESSAGES=yes
11752 echo "$as_me: failed program was:" >&5
11753 sed 's/^/| /' conftest.$ac_ext >&5
11755 gt_cv_val_LC_MESSAGES=no
11757 rm -f conftest.err conftest.$ac_objext \
11758 conftest$ac_exeext conftest.$ac_ext
11760 echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
11761 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6
11762 if test $gt_cv_val_LC_MESSAGES = yes; then
11764 cat >>confdefs.h <<\_ACEOF
11765 #define HAVE_LC_MESSAGES 1
11772 if test -n "$INTL_MACOSX_LIBS"; then
11773 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
11776 for ac_prog in bison
11778 # Extract the first word of "$ac_prog", so it can be a program name with args.
11779 set dummy $ac_prog; ac_word=$2
11780 echo "$as_me:$LINENO: checking for $ac_word" >&5
11781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11782 if test "${ac_cv_prog_INTLBISON+set}" = set; then
11783 echo $ECHO_N "(cached) $ECHO_C" >&6
11785 if test -n "$INTLBISON"; then
11786 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
11788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11789 for as_dir in $PATH
11792 test -z "$as_dir" && as_dir=.
11793 for ac_exec_ext in '' $ac_executable_extensions; do
11794 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11795 ac_cv_prog_INTLBISON="$ac_prog"
11796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11804 INTLBISON=$ac_cv_prog_INTLBISON
11805 if test -n "$INTLBISON"; then
11806 echo "$as_me:$LINENO: result: $INTLBISON" >&5
11807 echo "${ECHO_T}$INTLBISON" >&6
11809 echo "$as_me:$LINENO: result: no" >&5
11810 echo "${ECHO_T}no" >&6
11813 test -n "$INTLBISON" && break
11816 if test -z "$INTLBISON"; then
11819 echo "$as_me:$LINENO: checking version of bison" >&5
11820 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
11821 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
11822 case $ac_prog_version in
11823 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
11824 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
11825 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
11826 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
11828 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
11829 echo "${ECHO_T}$ac_prog_version" >&6
11831 if test $ac_verc_fail = yes; then
11850 echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
11851 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6
11852 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
11853 echo $ECHO_N "(cached) $ECHO_C" >&6
11855 gt_save_CPPFLAGS="$CPPFLAGS"
11856 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
11857 gt_save_LIBS="$LIBS"
11858 LIBS="$LIBS -framework CoreFoundation"
11859 cat >conftest.$ac_ext <<_ACEOF
11862 cat confdefs.h >>conftest.$ac_ext
11863 cat >>conftest.$ac_ext <<_ACEOF
11864 /* end confdefs.h. */
11865 #include <CFPreferences.h>
11869 CFPreferencesCopyAppValue(NULL, NULL)
11874 rm -f conftest.$ac_objext conftest$ac_exeext
11875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11876 (eval $ac_link) 2>conftest.er1
11878 grep -v '^ *+' conftest.er1 >conftest.err
11880 cat conftest.err >&5
11881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11882 (exit $ac_status); } &&
11883 { ac_try='test -z "$ac_c_werror_flag"
11884 || test ! -s conftest.err'
11885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11886 (eval $ac_try) 2>&5
11888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11889 (exit $ac_status); }; } &&
11890 { ac_try='test -s conftest$ac_exeext'
11891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11892 (eval $ac_try) 2>&5
11894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11895 (exit $ac_status); }; }; then
11896 gt_cv_func_CFPreferencesCopyAppValue=yes
11898 echo "$as_me: failed program was:" >&5
11899 sed 's/^/| /' conftest.$ac_ext >&5
11901 gt_cv_func_CFPreferencesCopyAppValue=no
11903 rm -f conftest.err conftest.$ac_objext \
11904 conftest$ac_exeext conftest.$ac_ext
11905 CPPFLAGS="$gt_save_CPPFLAGS"
11906 LIBS="$gt_save_LIBS"
11908 echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
11909 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6
11910 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
11912 cat >>confdefs.h <<\_ACEOF
11913 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
11917 echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
11918 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6
11919 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
11920 echo $ECHO_N "(cached) $ECHO_C" >&6
11922 gt_save_CPPFLAGS="$CPPFLAGS"
11923 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
11924 gt_save_LIBS="$LIBS"
11925 LIBS="$LIBS -framework CoreFoundation"
11926 cat >conftest.$ac_ext <<_ACEOF
11929 cat confdefs.h >>conftest.$ac_ext
11930 cat >>conftest.$ac_ext <<_ACEOF
11931 /* end confdefs.h. */
11932 #include <CFLocale.h>
11936 CFLocaleCopyCurrent();
11941 rm -f conftest.$ac_objext conftest$ac_exeext
11942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11943 (eval $ac_link) 2>conftest.er1
11945 grep -v '^ *+' conftest.er1 >conftest.err
11947 cat conftest.err >&5
11948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11949 (exit $ac_status); } &&
11950 { ac_try='test -z "$ac_c_werror_flag"
11951 || test ! -s conftest.err'
11952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11953 (eval $ac_try) 2>&5
11955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11956 (exit $ac_status); }; } &&
11957 { ac_try='test -s conftest$ac_exeext'
11958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11959 (eval $ac_try) 2>&5
11961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11962 (exit $ac_status); }; }; then
11963 gt_cv_func_CFLocaleCopyCurrent=yes
11965 echo "$as_me: failed program was:" >&5
11966 sed 's/^/| /' conftest.$ac_ext >&5
11968 gt_cv_func_CFLocaleCopyCurrent=no
11970 rm -f conftest.err conftest.$ac_objext \
11971 conftest$ac_exeext conftest.$ac_ext
11972 CPPFLAGS="$gt_save_CPPFLAGS"
11973 LIBS="$gt_save_LIBS"
11975 echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
11976 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6
11977 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
11979 cat >>confdefs.h <<\_ACEOF
11980 #define HAVE_CFLOCALECOPYCURRENT 1
11985 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
11986 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
11992 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
11993 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
11994 # Check whether --enable-nls or --disable-nls was given.
11995 if test "${enable_nls+set}" = set; then
11996 enableval="$enable_nls"
12001 echo "$as_me:$LINENO: result: $USE_NLS" >&5
12002 echo "${ECHO_T}$USE_NLS" >&6
12007 BUILD_INCLUDED_LIBINTL=no
12008 USE_INCLUDED_LIBINTL=no
12014 if test "$USE_NLS" = "yes"; then
12015 gt_use_preinstalled_gnugettext=no
12017 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
12018 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
12020 # Check whether --with-included-gettext or --without-included-gettext was given.
12021 if test "${with_included_gettext+set}" = set; then
12022 withval="$with_included_gettext"
12023 nls_cv_force_use_gnu_gettext=$withval
12025 nls_cv_force_use_gnu_gettext=no
12027 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
12028 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
12030 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
12031 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
12038 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
12039 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
12040 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
12041 echo $ECHO_N "(cached) $ECHO_C" >&6
12043 cat >conftest.$ac_ext <<_ACEOF
12046 cat confdefs.h >>conftest.$ac_ext
12047 cat >>conftest.$ac_ext <<_ACEOF
12048 /* end confdefs.h. */
12049 #include <libintl.h>
12050 extern int _nl_msg_cat_cntr;
12051 extern int *_nl_domain_bindings;
12055 bindtextdomain ("", "");
12056 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
12061 rm -f conftest.$ac_objext conftest$ac_exeext
12062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12063 (eval $ac_link) 2>conftest.er1
12065 grep -v '^ *+' conftest.er1 >conftest.err
12067 cat conftest.err >&5
12068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12069 (exit $ac_status); } &&
12070 { ac_try='test -z "$ac_c_werror_flag"
12071 || test ! -s conftest.err'
12072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12073 (eval $ac_try) 2>&5
12075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12076 (exit $ac_status); }; } &&
12077 { ac_try='test -s conftest$ac_exeext'
12078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12079 (eval $ac_try) 2>&5
12081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082 (exit $ac_status); }; }; then
12083 gt_cv_func_gnugettext1_libc=yes
12085 echo "$as_me: failed program was:" >&5
12086 sed 's/^/| /' conftest.$ac_ext >&5
12088 gt_cv_func_gnugettext1_libc=no
12090 rm -f conftest.err conftest.$ac_objext \
12091 conftest$ac_exeext conftest.$ac_ext
12093 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
12094 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
12096 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
12102 acl_save_prefix="$prefix"
12103 prefix="$acl_final_prefix"
12104 acl_save_exec_prefix="$exec_prefix"
12105 exec_prefix="$acl_final_exec_prefix"
12107 eval additional_includedir=\"$includedir\"
12108 eval additional_libdir=\"$libdir\"
12110 exec_prefix="$acl_save_exec_prefix"
12111 prefix="$acl_save_prefix"
12114 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
12115 if test "${with_libintl_prefix+set}" = set; then
12116 withval="$with_libintl_prefix"
12118 if test "X$withval" = "Xno"; then
12121 if test "X$withval" = "X"; then
12123 acl_save_prefix="$prefix"
12124 prefix="$acl_final_prefix"
12125 acl_save_exec_prefix="$exec_prefix"
12126 exec_prefix="$acl_final_exec_prefix"
12128 eval additional_includedir=\"$includedir\"
12129 eval additional_libdir=\"$libdir\"
12131 exec_prefix="$acl_save_exec_prefix"
12132 prefix="$acl_save_prefix"
12135 additional_includedir="$withval/include"
12136 additional_libdir="$withval/lib"
12146 names_already_handled=
12147 names_next_round='intl '
12148 while test -n "$names_next_round"; do
12149 names_this_round="$names_next_round"
12151 for name in $names_this_round; do
12153 for n in $names_already_handled; do
12154 if test "$n" = "$name"; then
12155 already_handled=yes
12159 if test -z "$already_handled"; then
12160 names_already_handled="$names_already_handled $name"
12161 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12162 eval value=\"\$HAVE_LIB$uppername\"
12163 if test -n "$value"; then
12164 if test "$value" = yes; then
12165 eval value=\"\$LIB$uppername\"
12166 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
12167 eval value=\"\$LTLIB$uppername\"
12168 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
12177 if test $use_additional = yes; then
12178 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
12179 found_dir="$additional_libdir"
12180 found_so="$additional_libdir/lib$name.$shlibext"
12181 if test -f "$additional_libdir/lib$name.la"; then
12182 found_la="$additional_libdir/lib$name.la"
12185 if test -f "$additional_libdir/lib$name.$libext"; then
12186 found_dir="$additional_libdir"
12187 found_a="$additional_libdir/lib$name.$libext"
12188 if test -f "$additional_libdir/lib$name.la"; then
12189 found_la="$additional_libdir/lib$name.la"
12194 if test "X$found_dir" = "X"; then
12195 for x in $LDFLAGS $LTLIBINTL; do
12197 acl_save_prefix="$prefix"
12198 prefix="$acl_final_prefix"
12199 acl_save_exec_prefix="$exec_prefix"
12200 exec_prefix="$acl_final_exec_prefix"
12202 exec_prefix="$acl_save_exec_prefix"
12203 prefix="$acl_save_prefix"
12207 dir=`echo "X$x" | sed -e 's/^X-L//'`
12208 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
12210 found_so="$dir/lib$name.$shlibext"
12211 if test -f "$dir/lib$name.la"; then
12212 found_la="$dir/lib$name.la"
12215 if test -f "$dir/lib$name.$libext"; then
12217 found_a="$dir/lib$name.$libext"
12218 if test -f "$dir/lib$name.la"; then
12219 found_la="$dir/lib$name.la"
12225 if test "X$found_dir" != "X"; then
12230 if test "X$found_dir" != "X"; then
12231 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
12232 if test "X$found_so" != "X"; then
12233 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
12234 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12237 for x in $ltrpathdirs; do
12238 if test "X$x" = "X$found_dir"; then
12243 if test -z "$haveit"; then
12244 ltrpathdirs="$ltrpathdirs $found_dir"
12246 if test "$hardcode_direct" = yes; then
12247 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12249 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
12250 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12252 for x in $rpathdirs; do
12253 if test "X$x" = "X$found_dir"; then
12258 if test -z "$haveit"; then
12259 rpathdirs="$rpathdirs $found_dir"
12263 for x in $LDFLAGS $LIBINTL; do
12265 acl_save_prefix="$prefix"
12266 prefix="$acl_final_prefix"
12267 acl_save_exec_prefix="$exec_prefix"
12268 exec_prefix="$acl_final_exec_prefix"
12270 exec_prefix="$acl_save_exec_prefix"
12271 prefix="$acl_save_prefix"
12273 if test "X$x" = "X-L$found_dir"; then
12278 if test -z "$haveit"; then
12279 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
12281 if test "$hardcode_minus_L" != no; then
12282 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12284 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12290 if test "X$found_a" != "X"; then
12291 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
12293 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
12296 additional_includedir=
12297 case "$found_dir" in
12299 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
12300 additional_includedir="$basedir/include"
12303 if test "X$additional_includedir" != "X"; then
12304 if test "X$additional_includedir" != "X/usr/include"; then
12306 if test "X$additional_includedir" = "X/usr/local/include"; then
12307 if test -n "$GCC"; then
12309 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12313 if test -z "$haveit"; then
12314 for x in $CPPFLAGS $INCINTL; do
12316 acl_save_prefix="$prefix"
12317 prefix="$acl_final_prefix"
12318 acl_save_exec_prefix="$exec_prefix"
12319 exec_prefix="$acl_final_exec_prefix"
12321 exec_prefix="$acl_save_exec_prefix"
12322 prefix="$acl_save_prefix"
12324 if test "X$x" = "X-I$additional_includedir"; then
12329 if test -z "$haveit"; then
12330 if test -d "$additional_includedir"; then
12331 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
12337 if test -n "$found_la"; then
12338 save_libdir="$libdir"
12339 case "$found_la" in
12340 */* | *\\*) . "$found_la" ;;
12341 *) . "./$found_la" ;;
12343 libdir="$save_libdir"
12344 for dep in $dependency_libs; do
12347 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12348 if test "X$additional_libdir" != "X/usr/lib"; then
12350 if test "X$additional_libdir" = "X/usr/local/lib"; then
12351 if test -n "$GCC"; then
12353 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12357 if test -z "$haveit"; then
12359 for x in $LDFLAGS $LIBINTL; do
12361 acl_save_prefix="$prefix"
12362 prefix="$acl_final_prefix"
12363 acl_save_exec_prefix="$exec_prefix"
12364 exec_prefix="$acl_final_exec_prefix"
12366 exec_prefix="$acl_save_exec_prefix"
12367 prefix="$acl_save_prefix"
12369 if test "X$x" = "X-L$additional_libdir"; then
12374 if test -z "$haveit"; then
12375 if test -d "$additional_libdir"; then
12376 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
12380 for x in $LDFLAGS $LTLIBINTL; do
12382 acl_save_prefix="$prefix"
12383 prefix="$acl_final_prefix"
12384 acl_save_exec_prefix="$exec_prefix"
12385 exec_prefix="$acl_final_exec_prefix"
12387 exec_prefix="$acl_save_exec_prefix"
12388 prefix="$acl_save_prefix"
12390 if test "X$x" = "X-L$additional_libdir"; then
12395 if test -z "$haveit"; then
12396 if test -d "$additional_libdir"; then
12397 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
12404 dir=`echo "X$dep" | sed -e 's/^X-R//'`
12405 if test "$enable_rpath" != no; then
12407 for x in $rpathdirs; do
12408 if test "X$x" = "X$dir"; then
12413 if test -z "$haveit"; then
12414 rpathdirs="$rpathdirs $dir"
12417 for x in $ltrpathdirs; do
12418 if test "X$x" = "X$dir"; then
12423 if test -z "$haveit"; then
12424 ltrpathdirs="$ltrpathdirs $dir"
12429 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12432 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12435 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
12436 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
12442 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12443 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
12449 if test "X$rpathdirs" != "X"; then
12450 if test -n "$hardcode_libdir_separator"; then
12452 for found_dir in $rpathdirs; do
12453 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
12455 acl_save_libdir="$libdir"
12457 eval flag=\"$hardcode_libdir_flag_spec\"
12458 libdir="$acl_save_libdir"
12459 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12461 for found_dir in $rpathdirs; do
12462 acl_save_libdir="$libdir"
12463 libdir="$found_dir"
12464 eval flag=\"$hardcode_libdir_flag_spec\"
12465 libdir="$acl_save_libdir"
12466 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12470 if test "X$ltrpathdirs" != "X"; then
12471 for found_dir in $ltrpathdirs; do
12472 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
12476 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
12477 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
12478 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
12479 echo $ECHO_N "(cached) $ECHO_C" >&6
12481 gt_save_CPPFLAGS="$CPPFLAGS"
12482 CPPFLAGS="$CPPFLAGS $INCINTL"
12483 gt_save_LIBS="$LIBS"
12484 LIBS="$LIBS $LIBINTL"
12485 cat >conftest.$ac_ext <<_ACEOF
12488 cat confdefs.h >>conftest.$ac_ext
12489 cat >>conftest.$ac_ext <<_ACEOF
12490 /* end confdefs.h. */
12491 #include <libintl.h>
12492 extern int _nl_msg_cat_cntr;
12497 const char *_nl_expand_alias (const char *);
12501 bindtextdomain ("", "");
12502 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
12507 rm -f conftest.$ac_objext conftest$ac_exeext
12508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12509 (eval $ac_link) 2>conftest.er1
12511 grep -v '^ *+' conftest.er1 >conftest.err
12513 cat conftest.err >&5
12514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12515 (exit $ac_status); } &&
12516 { ac_try='test -z "$ac_c_werror_flag"
12517 || test ! -s conftest.err'
12518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12519 (eval $ac_try) 2>&5
12521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12522 (exit $ac_status); }; } &&
12523 { ac_try='test -s conftest$ac_exeext'
12524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12525 (eval $ac_try) 2>&5
12527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12528 (exit $ac_status); }; }; then
12529 gt_cv_func_gnugettext1_libintl=yes
12531 echo "$as_me: failed program was:" >&5
12532 sed 's/^/| /' conftest.$ac_ext >&5
12534 gt_cv_func_gnugettext1_libintl=no
12536 rm -f conftest.err conftest.$ac_objext \
12537 conftest$ac_exeext conftest.$ac_ext
12538 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
12539 LIBS="$LIBS $LIBICONV"
12540 cat >conftest.$ac_ext <<_ACEOF
12543 cat confdefs.h >>conftest.$ac_ext
12544 cat >>conftest.$ac_ext <<_ACEOF
12545 /* end confdefs.h. */
12546 #include <libintl.h>
12547 extern int _nl_msg_cat_cntr;
12552 const char *_nl_expand_alias (const char *);
12556 bindtextdomain ("", "");
12557 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
12562 rm -f conftest.$ac_objext conftest$ac_exeext
12563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12564 (eval $ac_link) 2>conftest.er1
12566 grep -v '^ *+' conftest.er1 >conftest.err
12568 cat conftest.err >&5
12569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12570 (exit $ac_status); } &&
12571 { ac_try='test -z "$ac_c_werror_flag"
12572 || test ! -s conftest.err'
12573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12574 (eval $ac_try) 2>&5
12576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577 (exit $ac_status); }; } &&
12578 { ac_try='test -s conftest$ac_exeext'
12579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12580 (eval $ac_try) 2>&5
12582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12583 (exit $ac_status); }; }; then
12584 LIBINTL="$LIBINTL $LIBICONV"
12585 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
12586 gt_cv_func_gnugettext1_libintl=yes
12589 echo "$as_me: failed program was:" >&5
12590 sed 's/^/| /' conftest.$ac_ext >&5
12593 rm -f conftest.err conftest.$ac_objext \
12594 conftest$ac_exeext conftest.$ac_ext
12596 CPPFLAGS="$gt_save_CPPFLAGS"
12597 LIBS="$gt_save_LIBS"
12599 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
12600 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
12603 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
12604 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
12605 && test "$PACKAGE" != gettext-runtime \
12606 && test "$PACKAGE" != gettext-tools; }; then
12607 gt_use_preinstalled_gnugettext=yes
12615 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
12616 nls_cv_use_gnu_gettext=yes
12620 if test "$nls_cv_use_gnu_gettext" = "yes"; then
12621 BUILD_INCLUDED_LIBINTL=yes
12622 USE_INCLUDED_LIBINTL=yes
12623 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
12624 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
12625 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
12629 if test "$gt_use_preinstalled_gnugettext" = "yes" \
12630 || test "$nls_cv_use_gnu_gettext" = "yes"; then
12635 if test -n "$INTL_MACOSX_LIBS"; then
12636 if test "$gt_use_preinstalled_gnugettext" = "yes" \
12637 || test "$nls_cv_use_gnu_gettext" = "yes"; then
12638 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
12639 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
12643 if test "$gt_use_preinstalled_gnugettext" = "yes" \
12644 || test "$nls_cv_use_gnu_gettext" = "yes"; then
12646 cat >>confdefs.h <<\_ACEOF
12647 #define ENABLE_NLS 1
12655 echo "$as_me:$LINENO: checking whether to use NLS" >&5
12656 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
12657 echo "$as_me:$LINENO: result: $USE_NLS" >&5
12658 echo "${ECHO_T}$USE_NLS" >&6
12659 if test "$USE_NLS" = "yes"; then
12660 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
12661 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
12662 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12663 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
12664 gt_source="external libintl"
12669 gt_source="included intl directory"
12671 echo "$as_me:$LINENO: result: $gt_source" >&5
12672 echo "${ECHO_T}$gt_source" >&6
12675 if test "$USE_NLS" = "yes"; then
12677 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12678 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
12679 echo "$as_me:$LINENO: checking how to link with libintl" >&5
12680 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
12681 echo "$as_me:$LINENO: result: $LIBINTL" >&5
12682 echo "${ECHO_T}$LIBINTL" >&6
12684 for element in $INCINTL; do
12686 for x in $CPPFLAGS; do
12688 acl_save_prefix="$prefix"
12689 prefix="$acl_final_prefix"
12690 acl_save_exec_prefix="$exec_prefix"
12691 exec_prefix="$acl_final_exec_prefix"
12693 exec_prefix="$acl_save_exec_prefix"
12694 prefix="$acl_save_prefix"
12696 if test "X$x" = "X$element"; then
12701 if test -z "$haveit"; then
12702 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12709 cat >>confdefs.h <<\_ACEOF
12710 #define HAVE_GETTEXT 1
12714 cat >>confdefs.h <<\_ACEOF
12715 #define HAVE_DCGETTEXT 1
12724 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
12725 BUILD_INCLUDED_LIBINTL=yes
12732 nls_cv_header_intl=
12733 nls_cv_header_libgt=
12745 if test "$USE_INCLUDED_LIBINTL" = yes; then
12746 INTLOBJS="\$(GETTOBJS)"
12750 INTL_LIBTOOL_SUFFIX_PREFIX=
12754 INTLLIBS="$LIBINTL"
12767 support_postgresql=no
12768 support_smartalloc=yes
12769 support_readline=yes
12772 support_wx_console=no
12777 support_static_tools=no
12778 support_static_fd=no
12779 support_static_sd=no
12780 support_static_dir=no
12781 support_static_cons=no
12783 build_client_only=no
12791 # -------------------------------------------
12792 # gnome (default off)
12793 # -------------------------------------------
12794 # Check whether --enable-gnome or --disable-gnome was given.
12795 if test "${enable_gnome+set}" = set; then
12796 enableval="$enable_gnome"
12797 if test x$enableval = xyes; then
12803 if test x$support_gnome = xyes; then
12804 abc=`$PKGCONFIG --exists libgnomeui-2.0`
12806 if test $pkg = 0; then
12807 GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
12808 GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
12809 GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
12810 GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
12815 GNOME_DIR=src/gnome2-console
12816 gnome_version="Version 2.x"
12818 { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
12819 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
12820 { (exit 1); exit 1; }; }
12826 # -------------------------------------------
12827 # wx-console (default off)
12828 # -------------------------------------------
12829 # Check whether --enable-wx-console or --disable-wx-console was given.
12830 if test "${enable_wx_console+set}" = set; then
12831 enableval="$enable_wx_console"
12832 if test x$enableval = xyes; then
12833 support_wx_console=yes
12838 if test x$support_wx_console = xyes; then
12839 abc=`$WXCONFIG $WXFLAGS --cppflags`
12841 if test $pkg = 0; then
12842 wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
12843 WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
12844 WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
12848 WX_DIR=src/wx-console
12851 echo "wx-config program not found. wx-console disabled."
12853 support_wx_console=no
12859 # -------------------------------------------
12860 # tray-monitor (default off)
12861 # -------------------------------------------
12862 # Check whether --enable-tray-monitor or --disable-tray-monitor was given.
12863 if test "${enable_tray_monitor+set}" = set; then
12864 enableval="$enable_tray_monitor"
12865 if test x$enableval = xyes; then
12866 support_tray_monitor=yes
12871 if test x$support_tray_monitor = xyes; then
12872 abc=`$PKGCONFIG --exists gtk+-2.0`
12874 if test $pkg = 0; then
12875 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
12876 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
12879 TRAY_MONITOR_DIR=src/tray-monitor
12880 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
12882 if test $pkg = 0; then
12883 cat >>confdefs.h <<\_ACEOF
12884 #define HAVE_GTK_2_4 1
12892 # -------------------------------------------
12893 # smartalloc (default off)
12894 # -------------------------------------------
12895 # Check whether --enable-smartalloc or --disable-smartalloc was given.
12896 if test "${enable_smartalloc+set}" = set; then
12897 enableval="$enable_smartalloc"
12898 if test x$enableval = xno; then
12899 support_smartalloc=no
12903 if test x$support_smartalloc = xyes; then
12904 cat >>confdefs.h <<\_ACEOF
12905 #define SMARTALLOC 1
12910 # -------------------------------------------
12911 # static-tools (default off)
12912 # -------------------------------------------
12913 # Check whether --enable-static-tools or --disable-static-tools was given.
12914 if test "${enable_static_tools+set}" = set; then
12915 enableval="$enable_static_tools"
12916 if test x$enableval = xyes; then
12917 support_static_tools=yes
12922 if test x$support_static_tools = xyes; then
12923 TTOOL_LDFLAGS="-static"
12927 # -------------------------------------------
12928 # static-fd (default off)
12929 # -------------------------------------------
12930 # Check whether --enable-static-fd or --disable-static-fd was given.
12931 if test "${enable_static_fd+set}" = set; then
12932 enableval="$enable_static_fd"
12933 if test x$enableval = xyes; then
12934 support_static_fd=yes
12939 if test x$support_static_fd = xyes; then
12940 STATIC_FD="static-bacula-fd"
12944 # -------------------------------------------
12945 # static-sd (default off)
12946 # -------------------------------------------
12947 # Check whether --enable-static-sd or --disable-static-sd was given.
12948 if test "${enable_static_sd+set}" = set; then
12949 enableval="$enable_static_sd"
12950 if test x$enableval = xyes; then
12951 support_static_sd=yes
12956 if test x$support_static_sd = xyes; then
12957 STATIC_SD="static-bacula-sd"
12961 # -------------------------------------------
12962 # static-dir (default off)
12963 # -------------------------------------------
12964 # Check whether --enable-static-dir or --disable-static-dir was given.
12965 if test "${enable_static_dir+set}" = set; then
12966 enableval="$enable_static_dir"
12967 if test x$enableval = xyes; then
12968 support_static_dir=yes
12973 if test x$support_static_dir = xyes; then
12974 STATIC_DIR="static-bacula-dir"
12978 # -------------------------------------------
12979 # static-cons (default off)
12980 # -------------------------------------------
12981 # Check whether --enable-static-cons or --disable-static-cons was given.
12982 if test "${enable_static_cons+set}" = set; then
12983 enableval="$enable_static_cons"
12984 if test x$enableval = xyes; then
12985 support_static_cons=yes
12992 if test x$support_static_cons = xyes; then
12993 STATIC_CONS="static-bconsole"
12994 STATIC_GNOME_CONS="static-gnome-console"
12995 STATIC_WX_CONS="static-wx-console"
13001 # -------------------------------------------
13002 # client_only (default off)
13003 # -------------------------------------------
13004 # Check whether --enable-client-only or --disable-client-only was given.
13005 if test "${enable_client_only+set}" = set; then
13006 enableval="$enable_client_only"
13007 if test x$enableval = xyes; then
13008 build_client_only=yes
13013 if test x$build_client_only = xno; then
13020 # -------------------------------------------
13021 # director (default on)
13022 # -------------------------------------------
13023 # Check whether --enable-build-dird or --disable-build-dird was given.
13024 if test "${enable_build_dird+set}" = set; then
13025 enableval="$enable_build_dird"
13026 if test x$enableval = xno; then
13030 if test x$build_dird = xyes; then
13031 DIRD_DIR="src/dird"
13032 DIR_TOOLS="DIRTOOLS"
13035 DIR_TOOLS="NODIRTOOLS"
13040 # -------------------------------------------
13041 # stored (default on)
13042 # -------------------------------------------
13043 # Check whether --enable-build-stored or --disable-build-stored was given.
13044 if test "${enable_build_stored+set}" = set; then
13045 enableval="$enable_build_stored"
13046 if test x$enableval = xno; then
13050 if test x$build_stored = xyes; then
13051 STORED_DIR="src/stored"
13057 # ---------------------------------------------------
13058 # Check for conio (Bacula readline substitute)(
13059 # ---------------------------------------------------
13060 # this allows you to turn it completely off
13061 # Check whether --enable-conio or --disable-conio was given.
13062 if test "${enable_conio+set}" = set; then
13063 enableval="$enable_conio"
13064 if test x$enableval = xno; then
13070 if test x$support_conio = xyes; then
13071 if test "${ac_cv_header_termcap_h+set}" = set; then
13072 echo "$as_me:$LINENO: checking for termcap.h" >&5
13073 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
13074 if test "${ac_cv_header_termcap_h+set}" = set; then
13075 echo $ECHO_N "(cached) $ECHO_C" >&6
13077 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
13078 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
13080 # Is the header compilable?
13081 echo "$as_me:$LINENO: checking termcap.h usability" >&5
13082 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
13083 cat >conftest.$ac_ext <<_ACEOF
13086 cat confdefs.h >>conftest.$ac_ext
13087 cat >>conftest.$ac_ext <<_ACEOF
13088 /* end confdefs.h. */
13089 $ac_includes_default
13090 #include <termcap.h>
13092 rm -f conftest.$ac_objext
13093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13094 (eval $ac_compile) 2>conftest.er1
13096 grep -v '^ *+' conftest.er1 >conftest.err
13098 cat conftest.err >&5
13099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13100 (exit $ac_status); } &&
13101 { ac_try='test -z "$ac_c_werror_flag"
13102 || test ! -s conftest.err'
13103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13104 (eval $ac_try) 2>&5
13106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13107 (exit $ac_status); }; } &&
13108 { ac_try='test -s conftest.$ac_objext'
13109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13110 (eval $ac_try) 2>&5
13112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13113 (exit $ac_status); }; }; then
13114 ac_header_compiler=yes
13116 echo "$as_me: failed program was:" >&5
13117 sed 's/^/| /' conftest.$ac_ext >&5
13119 ac_header_compiler=no
13121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13122 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13123 echo "${ECHO_T}$ac_header_compiler" >&6
13125 # Is the header present?
13126 echo "$as_me:$LINENO: checking termcap.h presence" >&5
13127 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
13128 cat >conftest.$ac_ext <<_ACEOF
13131 cat confdefs.h >>conftest.$ac_ext
13132 cat >>conftest.$ac_ext <<_ACEOF
13133 /* end confdefs.h. */
13134 #include <termcap.h>
13136 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13137 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13139 grep -v '^ *+' conftest.er1 >conftest.err
13141 cat conftest.err >&5
13142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13143 (exit $ac_status); } >/dev/null; then
13144 if test -s conftest.err; then
13145 ac_cpp_err=$ac_c_preproc_warn_flag
13146 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13153 if test -z "$ac_cpp_err"; then
13154 ac_header_preproc=yes
13156 echo "$as_me: failed program was:" >&5
13157 sed 's/^/| /' conftest.$ac_ext >&5
13159 ac_header_preproc=no
13161 rm -f conftest.err conftest.$ac_ext
13162 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13163 echo "${ECHO_T}$ac_header_preproc" >&6
13165 # So? What about this header?
13166 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13168 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
13169 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13170 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
13171 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
13172 ac_header_preproc=yes
13175 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
13176 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
13177 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
13178 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
13179 { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
13180 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
13181 { echo "$as_me:$LINENO: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&5
13182 echo "$as_me: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
13183 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
13184 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
13185 { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
13186 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
13189 ## ------------------------------------------ ##
13190 ## Report this to the AC_PACKAGE_NAME lists. ##
13191 ## ------------------------------------------ ##
13194 sed "s/^/$as_me: WARNING: /" >&2
13197 echo "$as_me:$LINENO: checking for termcap.h" >&5
13198 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
13199 if test "${ac_cv_header_termcap_h+set}" = set; then
13200 echo $ECHO_N "(cached) $ECHO_C" >&6
13202 ac_cv_header_termcap_h=$ac_header_preproc
13204 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
13205 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
13208 if test $ac_cv_header_termcap_h = yes; then
13209 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
13210 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
13211 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
13212 echo $ECHO_N "(cached) $ECHO_C" >&6
13214 ac_check_lib_save_LIBS=$LIBS
13215 LIBS="-ltermcap $LIBS"
13216 cat >conftest.$ac_ext <<_ACEOF
13219 cat confdefs.h >>conftest.$ac_ext
13220 cat >>conftest.$ac_ext <<_ACEOF
13221 /* end confdefs.h. */
13223 /* Override any gcc2 internal prototype to avoid an error. */
13227 /* We use char because int might match the return type of a gcc2
13228 builtin and then its argument prototype would still apply. */
13238 rm -f conftest.$ac_objext conftest$ac_exeext
13239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13240 (eval $ac_link) 2>conftest.er1
13242 grep -v '^ *+' conftest.er1 >conftest.err
13244 cat conftest.err >&5
13245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246 (exit $ac_status); } &&
13247 { ac_try='test -z "$ac_c_werror_flag"
13248 || test ! -s conftest.err'
13249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13250 (eval $ac_try) 2>&5
13252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253 (exit $ac_status); }; } &&
13254 { ac_try='test -s conftest$ac_exeext'
13255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13256 (eval $ac_try) 2>&5
13258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13259 (exit $ac_status); }; }; then
13260 ac_cv_lib_termcap_tgetent=yes
13262 echo "$as_me: failed program was:" >&5
13263 sed 's/^/| /' conftest.$ac_ext >&5
13265 ac_cv_lib_termcap_tgetent=no
13267 rm -f conftest.err conftest.$ac_objext \
13268 conftest$ac_exeext conftest.$ac_ext
13269 LIBS=$ac_check_lib_save_LIBS
13271 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
13272 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
13273 if test $ac_cv_lib_termcap_tgetent = yes; then
13274 CONS_LIBS="-ltermcap"
13278 support_readline=no
13280 cat >>confdefs.h <<\_ACEOF
13281 #define HAVE_CONIO 1
13286 echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
13287 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
13288 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
13289 echo $ECHO_N "(cached) $ECHO_C" >&6
13291 ac_check_lib_save_LIBS=$LIBS
13292 LIBS="-lncurses $LIBS"
13293 cat >conftest.$ac_ext <<_ACEOF
13296 cat confdefs.h >>conftest.$ac_ext
13297 cat >>conftest.$ac_ext <<_ACEOF
13298 /* end confdefs.h. */
13300 /* Override any gcc2 internal prototype to avoid an error. */
13304 /* We use char because int might match the return type of a gcc2
13305 builtin and then its argument prototype would still apply. */
13315 rm -f conftest.$ac_objext conftest$ac_exeext
13316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13317 (eval $ac_link) 2>conftest.er1
13319 grep -v '^ *+' conftest.er1 >conftest.err
13321 cat conftest.err >&5
13322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13323 (exit $ac_status); } &&
13324 { ac_try='test -z "$ac_c_werror_flag"
13325 || test ! -s conftest.err'
13326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13327 (eval $ac_try) 2>&5
13329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13330 (exit $ac_status); }; } &&
13331 { ac_try='test -s conftest$ac_exeext'
13332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13333 (eval $ac_try) 2>&5
13335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13336 (exit $ac_status); }; }; then
13337 ac_cv_lib_ncurses_tgetent=yes
13339 echo "$as_me: failed program was:" >&5
13340 sed 's/^/| /' conftest.$ac_ext >&5
13342 ac_cv_lib_ncurses_tgetent=no
13344 rm -f conftest.err conftest.$ac_objext \
13345 conftest$ac_exeext conftest.$ac_ext
13346 LIBS=$ac_check_lib_save_LIBS
13348 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
13349 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
13350 if test $ac_cv_lib_ncurses_tgetent = yes; then
13351 CONS_LIBS="-lncurses"
13355 support_readline=no
13357 cat >>confdefs.h <<\_ACEOF
13358 #define HAVE_CONIO 1
13371 for ac_header in curses.h
13373 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13374 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13375 echo "$as_me:$LINENO: checking for $ac_header" >&5
13376 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13377 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13378 echo $ECHO_N "(cached) $ECHO_C" >&6
13380 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13381 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13383 # Is the header compilable?
13384 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13385 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13386 cat >conftest.$ac_ext <<_ACEOF
13389 cat confdefs.h >>conftest.$ac_ext
13390 cat >>conftest.$ac_ext <<_ACEOF
13391 /* end confdefs.h. */
13392 $ac_includes_default
13393 #include <$ac_header>
13395 rm -f conftest.$ac_objext
13396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13397 (eval $ac_compile) 2>conftest.er1
13399 grep -v '^ *+' conftest.er1 >conftest.err
13401 cat conftest.err >&5
13402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13403 (exit $ac_status); } &&
13404 { ac_try='test -z "$ac_c_werror_flag"
13405 || test ! -s conftest.err'
13406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13407 (eval $ac_try) 2>&5
13409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13410 (exit $ac_status); }; } &&
13411 { ac_try='test -s conftest.$ac_objext'
13412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13413 (eval $ac_try) 2>&5
13415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13416 (exit $ac_status); }; }; then
13417 ac_header_compiler=yes
13419 echo "$as_me: failed program was:" >&5
13420 sed 's/^/| /' conftest.$ac_ext >&5
13422 ac_header_compiler=no
13424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13425 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13426 echo "${ECHO_T}$ac_header_compiler" >&6
13428 # Is the header present?
13429 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13430 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13431 cat >conftest.$ac_ext <<_ACEOF
13434 cat confdefs.h >>conftest.$ac_ext
13435 cat >>conftest.$ac_ext <<_ACEOF
13436 /* end confdefs.h. */
13437 #include <$ac_header>
13439 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13440 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13442 grep -v '^ *+' conftest.er1 >conftest.err
13444 cat conftest.err >&5
13445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13446 (exit $ac_status); } >/dev/null; then
13447 if test -s conftest.err; then
13448 ac_cpp_err=$ac_c_preproc_warn_flag
13449 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13456 if test -z "$ac_cpp_err"; then
13457 ac_header_preproc=yes
13459 echo "$as_me: failed program was:" >&5
13460 sed 's/^/| /' conftest.$ac_ext >&5
13462 ac_header_preproc=no
13464 rm -f conftest.err conftest.$ac_ext
13465 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13466 echo "${ECHO_T}$ac_header_preproc" >&6
13468 # So? What about this header?
13469 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13471 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13472 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13473 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13474 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13475 ac_header_preproc=yes
13478 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13479 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13480 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13481 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13482 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13483 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13484 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13485 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13486 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13487 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13488 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13489 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13492 ## ------------------------------------------ ##
13493 ## Report this to the AC_PACKAGE_NAME lists. ##
13494 ## ------------------------------------------ ##
13497 sed "s/^/$as_me: WARNING: /" >&2
13500 echo "$as_me:$LINENO: checking for $ac_header" >&5
13501 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13502 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13503 echo $ECHO_N "(cached) $ECHO_C" >&6
13505 eval "$as_ac_Header=\$ac_header_preproc"
13507 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13508 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13511 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13512 cat >>confdefs.h <<_ACEOF
13513 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13520 echo "$as_me:$LINENO: checking for term.h" >&5
13521 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
13522 if test "${ac_cv_header_term_h+set}" = set; then
13523 echo $ECHO_N "(cached) $ECHO_C" >&6
13525 cat >conftest.$ac_ext <<_ACEOF
13528 cat confdefs.h >>conftest.$ac_ext
13529 cat >>conftest.$ac_ext <<_ACEOF
13530 /* end confdefs.h. */
13532 #include <curses.h>
13538 rm -f conftest.$ac_objext
13539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13540 (eval $ac_compile) 2>conftest.er1
13542 grep -v '^ *+' conftest.er1 >conftest.err
13544 cat conftest.err >&5
13545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13546 (exit $ac_status); } &&
13547 { ac_try='test -z "$ac_c_werror_flag"
13548 || test ! -s conftest.err'
13549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13550 (eval $ac_try) 2>&5
13552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13553 (exit $ac_status); }; } &&
13554 { ac_try='test -s conftest.$ac_objext'
13555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13556 (eval $ac_try) 2>&5
13558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13559 (exit $ac_status); }; }; then
13560 ac_cv_header_term_h=yes
13562 echo "$as_me: failed program was:" >&5
13563 sed 's/^/| /' conftest.$ac_ext >&5
13565 ac_cv_header_term_h=no
13567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13569 echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
13570 echo "${ECHO_T}$ac_cv_header_term_h" >&6
13571 if test $ac_cv_header_term_h = yes; then
13572 echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
13573 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
13574 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
13575 echo $ECHO_N "(cached) $ECHO_C" >&6
13577 ac_check_lib_save_LIBS=$LIBS
13578 LIBS="-lcurses $LIBS"
13579 cat >conftest.$ac_ext <<_ACEOF
13582 cat confdefs.h >>conftest.$ac_ext
13583 cat >>conftest.$ac_ext <<_ACEOF
13584 /* end confdefs.h. */
13586 /* Override any gcc2 internal prototype to avoid an error. */
13590 /* We use char because int might match the return type of a gcc2
13591 builtin and then its argument prototype would still apply. */
13601 rm -f conftest.$ac_objext conftest$ac_exeext
13602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13603 (eval $ac_link) 2>conftest.er1
13605 grep -v '^ *+' conftest.er1 >conftest.err
13607 cat conftest.err >&5
13608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13609 (exit $ac_status); } &&
13610 { ac_try='test -z "$ac_c_werror_flag"
13611 || test ! -s conftest.err'
13612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13613 (eval $ac_try) 2>&5
13615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13616 (exit $ac_status); }; } &&
13617 { ac_try='test -s conftest$ac_exeext'
13618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13619 (eval $ac_try) 2>&5
13621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13622 (exit $ac_status); }; }; then
13623 ac_cv_lib_curses_tgetent=yes
13625 echo "$as_me: failed program was:" >&5
13626 sed 's/^/| /' conftest.$ac_ext >&5
13628 ac_cv_lib_curses_tgetent=no
13630 rm -f conftest.err conftest.$ac_objext \
13631 conftest$ac_exeext conftest.$ac_ext
13632 LIBS=$ac_check_lib_save_LIBS
13634 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
13635 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
13636 if test $ac_cv_lib_curses_tgetent = yes; then
13637 CONS_LIBS="-lcurses"
13641 support_readline=no
13643 cat >>confdefs.h <<\_ACEOF
13644 #define HAVE_CONIO 1
13652 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
13663 # ---------------------------------------------------
13664 # Check for readline support/directory (default off)
13665 # ---------------------------------------------------
13666 # this allows you to turn it completely off
13667 # Check whether --enable-readline or --disable-readline was given.
13668 if test "${enable_readline+set}" = set; then
13669 enableval="$enable_readline"
13670 if test x$enableval = xno; then
13671 support_readline=no
13677 if test x$support_readline = xyes; then
13679 # Check whether --with-readline or --without-readline was given.
13680 if test "${with_readline+set}" = set; then
13681 withval="$with_readline"
13683 case "$with_readline" in
13686 if test -f ${with_readline}/readline.h; then
13687 CONS_INC="-I${with_readline}"
13688 CONS_LDFLAGS="-L$with_readline"
13689 elif test -f ${with_readline}/include/readline/readline.h; then
13690 CONS_INC="-I${with_readline}/include/readline"
13691 CONS_LDFLAGS="-L${with_readline}/lib"
13692 with_readline="${with_readline}/include/readline"
13694 with_readline="/usr/include/readline"
13696 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
13697 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13698 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
13699 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
13700 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13701 echo $ECHO_N "(cached) $ECHO_C" >&6
13703 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13704 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13706 # Is the header compilable?
13707 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
13708 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
13709 cat >conftest.$ac_ext <<_ACEOF
13712 cat confdefs.h >>conftest.$ac_ext
13713 cat >>conftest.$ac_ext <<_ACEOF
13714 /* end confdefs.h. */
13715 $ac_includes_default
13716 #include <${with_readline}/readline.h>
13718 rm -f conftest.$ac_objext
13719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13720 (eval $ac_compile) 2>conftest.er1
13722 grep -v '^ *+' conftest.er1 >conftest.err
13724 cat conftest.err >&5
13725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13726 (exit $ac_status); } &&
13727 { ac_try='test -z "$ac_c_werror_flag"
13728 || test ! -s conftest.err'
13729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13730 (eval $ac_try) 2>&5
13732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13733 (exit $ac_status); }; } &&
13734 { ac_try='test -s conftest.$ac_objext'
13735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13736 (eval $ac_try) 2>&5
13738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13739 (exit $ac_status); }; }; then
13740 ac_header_compiler=yes
13742 echo "$as_me: failed program was:" >&5
13743 sed 's/^/| /' conftest.$ac_ext >&5
13745 ac_header_compiler=no
13747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13748 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13749 echo "${ECHO_T}$ac_header_compiler" >&6
13751 # Is the header present?
13752 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
13753 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
13754 cat >conftest.$ac_ext <<_ACEOF
13757 cat confdefs.h >>conftest.$ac_ext
13758 cat >>conftest.$ac_ext <<_ACEOF
13759 /* end confdefs.h. */
13760 #include <${with_readline}/readline.h>
13762 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13763 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13765 grep -v '^ *+' conftest.er1 >conftest.err
13767 cat conftest.err >&5
13768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13769 (exit $ac_status); } >/dev/null; then
13770 if test -s conftest.err; then
13771 ac_cpp_err=$ac_c_preproc_warn_flag
13772 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13779 if test -z "$ac_cpp_err"; then
13780 ac_header_preproc=yes
13782 echo "$as_me: failed program was:" >&5
13783 sed 's/^/| /' conftest.$ac_ext >&5
13785 ac_header_preproc=no
13787 rm -f conftest.err conftest.$ac_ext
13788 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13789 echo "${ECHO_T}$ac_header_preproc" >&6
13791 # So? What about this header?
13792 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13794 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
13795 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13796 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
13797 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
13798 ac_header_preproc=yes
13801 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
13802 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
13803 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
13804 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
13805 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
13806 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
13807 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&5
13808 echo "$as_me: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
13809 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
13810 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
13811 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
13812 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
13815 ## ------------------------------------------ ##
13816 ## Report this to the AC_PACKAGE_NAME lists. ##
13817 ## ------------------------------------------ ##
13820 sed "s/^/$as_me: WARNING: /" >&2
13823 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
13824 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
13825 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13826 echo $ECHO_N "(cached) $ECHO_C" >&6
13828 eval "$as_ac_Header=\$ac_header_preproc"
13830 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13831 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13834 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13835 cat >>confdefs.h <<\_ACEOF
13836 #define HAVE_READLINE 1
13839 CONS_LIBS="-lreadline -lhistory -ltermcap"
13844 echo "readline.h not found. readline turned off ..."
13856 # check for standard readline library
13857 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
13858 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
13859 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
13860 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
13861 echo $ECHO_N "(cached) $ECHO_C" >&6
13863 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
13864 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
13866 # Is the header compilable?
13867 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
13868 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
13869 cat >conftest.$ac_ext <<_ACEOF
13872 cat confdefs.h >>conftest.$ac_ext
13873 cat >>conftest.$ac_ext <<_ACEOF
13874 /* end confdefs.h. */
13875 $ac_includes_default
13876 #include </usr/include/readline/readline.h>
13878 rm -f conftest.$ac_objext
13879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13880 (eval $ac_compile) 2>conftest.er1
13882 grep -v '^ *+' conftest.er1 >conftest.err
13884 cat conftest.err >&5
13885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13886 (exit $ac_status); } &&
13887 { ac_try='test -z "$ac_c_werror_flag"
13888 || test ! -s conftest.err'
13889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13890 (eval $ac_try) 2>&5
13892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893 (exit $ac_status); }; } &&
13894 { ac_try='test -s conftest.$ac_objext'
13895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13896 (eval $ac_try) 2>&5
13898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13899 (exit $ac_status); }; }; then
13900 ac_header_compiler=yes
13902 echo "$as_me: failed program was:" >&5
13903 sed 's/^/| /' conftest.$ac_ext >&5
13905 ac_header_compiler=no
13907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13908 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13909 echo "${ECHO_T}$ac_header_compiler" >&6
13911 # Is the header present?
13912 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
13913 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
13914 cat >conftest.$ac_ext <<_ACEOF
13917 cat confdefs.h >>conftest.$ac_ext
13918 cat >>conftest.$ac_ext <<_ACEOF
13919 /* end confdefs.h. */
13920 #include </usr/include/readline/readline.h>
13922 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13923 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13925 grep -v '^ *+' conftest.er1 >conftest.err
13927 cat conftest.err >&5
13928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13929 (exit $ac_status); } >/dev/null; then
13930 if test -s conftest.err; then
13931 ac_cpp_err=$ac_c_preproc_warn_flag
13932 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13939 if test -z "$ac_cpp_err"; then
13940 ac_header_preproc=yes
13942 echo "$as_me: failed program was:" >&5
13943 sed 's/^/| /' conftest.$ac_ext >&5
13945 ac_header_preproc=no
13947 rm -f conftest.err conftest.$ac_ext
13948 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13949 echo "${ECHO_T}$ac_header_preproc" >&6
13951 # So? What about this header?
13952 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13954 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
13955 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13956 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
13957 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
13958 ac_header_preproc=yes
13961 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
13962 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
13963 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
13964 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
13965 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
13966 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
13967 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
13968 echo "$as_me: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
13969 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
13970 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
13971 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
13972 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
13975 ## ------------------------------------------ ##
13976 ## Report this to the AC_PACKAGE_NAME lists. ##
13977 ## ------------------------------------------ ##
13980 sed "s/^/$as_me: WARNING: /" >&2
13983 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
13984 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
13985 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
13986 echo $ECHO_N "(cached) $ECHO_C" >&6
13988 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
13990 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
13991 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
13994 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
13995 cat >>confdefs.h <<\_ACEOF
13996 #define HAVE_READLINE 1
14000 CONS_INC="-I/usr/include/readline"
14001 CONS_LIBS="-lreadline -ltermcap"
14005 # Did not find standard library, so try Bacula's default
14006 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
14007 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14008 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14009 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
14010 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14011 echo $ECHO_N "(cached) $ECHO_C" >&6
14013 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14014 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14016 # Is the header compilable?
14017 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
14018 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
14019 cat >conftest.$ac_ext <<_ACEOF
14022 cat confdefs.h >>conftest.$ac_ext
14023 cat >>conftest.$ac_ext <<_ACEOF
14024 /* end confdefs.h. */
14025 $ac_includes_default
14026 #include <${TOP_DIR}/depkgs/readline/readline.h>
14028 rm -f conftest.$ac_objext
14029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14030 (eval $ac_compile) 2>conftest.er1
14032 grep -v '^ *+' conftest.er1 >conftest.err
14034 cat conftest.err >&5
14035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14036 (exit $ac_status); } &&
14037 { ac_try='test -z "$ac_c_werror_flag"
14038 || test ! -s conftest.err'
14039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14040 (eval $ac_try) 2>&5
14042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14043 (exit $ac_status); }; } &&
14044 { ac_try='test -s conftest.$ac_objext'
14045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14046 (eval $ac_try) 2>&5
14048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14049 (exit $ac_status); }; }; then
14050 ac_header_compiler=yes
14052 echo "$as_me: failed program was:" >&5
14053 sed 's/^/| /' conftest.$ac_ext >&5
14055 ac_header_compiler=no
14057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14058 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14059 echo "${ECHO_T}$ac_header_compiler" >&6
14061 # Is the header present?
14062 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
14063 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
14064 cat >conftest.$ac_ext <<_ACEOF
14067 cat confdefs.h >>conftest.$ac_ext
14068 cat >>conftest.$ac_ext <<_ACEOF
14069 /* end confdefs.h. */
14070 #include <${TOP_DIR}/depkgs/readline/readline.h>
14072 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14073 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14075 grep -v '^ *+' conftest.er1 >conftest.err
14077 cat conftest.err >&5
14078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14079 (exit $ac_status); } >/dev/null; then
14080 if test -s conftest.err; then
14081 ac_cpp_err=$ac_c_preproc_warn_flag
14082 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14089 if test -z "$ac_cpp_err"; then
14090 ac_header_preproc=yes
14092 echo "$as_me: failed program was:" >&5
14093 sed 's/^/| /' conftest.$ac_ext >&5
14095 ac_header_preproc=no
14097 rm -f conftest.err conftest.$ac_ext
14098 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14099 echo "${ECHO_T}$ac_header_preproc" >&6
14101 # So? What about this header?
14102 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14104 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14105 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14106 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
14107 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
14108 ac_header_preproc=yes
14111 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
14112 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
14113 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
14114 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
14115 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
14116 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
14117 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
14118 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
14119 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
14120 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
14121 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
14122 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
14125 ## ------------------------------------------ ##
14126 ## Report this to the AC_PACKAGE_NAME lists. ##
14127 ## ------------------------------------------ ##
14130 sed "s/^/$as_me: WARNING: /" >&2
14133 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14134 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
14135 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14136 echo $ECHO_N "(cached) $ECHO_C" >&6
14138 eval "$as_ac_Header=\$ac_header_preproc"
14140 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14141 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14144 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14145 cat >>confdefs.h <<\_ACEOF
14146 #define HAVE_READLINE 1
14150 CONS_INC="-I${TOP_DIR}/depkgs/readline"
14151 CONS_LIBS="-lreadline -lhistory -ltermcap"
14152 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
14153 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
14157 echo "readline.h not found. readline turned off ..."
14183 # Minimal stuff for readline Makefile configuration
14186 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14187 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
14188 if test "${ac_cv_header_stat_broken+set}" = set; then
14189 echo $ECHO_N "(cached) $ECHO_C" >&6
14191 cat >conftest.$ac_ext <<_ACEOF
14194 cat confdefs.h >>conftest.$ac_ext
14195 cat >>conftest.$ac_ext <<_ACEOF
14196 /* end confdefs.h. */
14197 #include <sys/types.h>
14198 #include <sys/stat.h>
14200 #if defined(S_ISBLK) && defined(S_IFDIR)
14201 # if S_ISBLK (S_IFDIR)
14206 #if defined(S_ISBLK) && defined(S_IFCHR)
14207 # if S_ISBLK (S_IFCHR)
14212 #if defined(S_ISLNK) && defined(S_IFREG)
14213 # if S_ISLNK (S_IFREG)
14218 #if defined(S_ISSOCK) && defined(S_IFREG)
14219 # if S_ISSOCK (S_IFREG)
14225 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14226 $EGREP "You lose" >/dev/null 2>&1; then
14227 ac_cv_header_stat_broken=yes
14229 ac_cv_header_stat_broken=no
14234 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14235 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
14236 if test $ac_cv_header_stat_broken = yes; then
14238 cat >>confdefs.h <<\_ACEOF
14239 #define STAT_MACROS_BROKEN 1
14249 ac_header_dirent=no
14250 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14251 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14252 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14253 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
14254 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14255 echo $ECHO_N "(cached) $ECHO_C" >&6
14257 cat >conftest.$ac_ext <<_ACEOF
14260 cat confdefs.h >>conftest.$ac_ext
14261 cat >>conftest.$ac_ext <<_ACEOF
14262 /* end confdefs.h. */
14263 #include <sys/types.h>
14275 rm -f conftest.$ac_objext
14276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14277 (eval $ac_compile) 2>conftest.er1
14279 grep -v '^ *+' conftest.er1 >conftest.err
14281 cat conftest.err >&5
14282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14283 (exit $ac_status); } &&
14284 { ac_try='test -z "$ac_c_werror_flag"
14285 || test ! -s conftest.err'
14286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14287 (eval $ac_try) 2>&5
14289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14290 (exit $ac_status); }; } &&
14291 { ac_try='test -s conftest.$ac_objext'
14292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14293 (eval $ac_try) 2>&5
14295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14296 (exit $ac_status); }; }; then
14297 eval "$as_ac_Header=yes"
14299 echo "$as_me: failed program was:" >&5
14300 sed 's/^/| /' conftest.$ac_ext >&5
14302 eval "$as_ac_Header=no"
14304 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14306 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14307 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14308 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14309 cat >>confdefs.h <<_ACEOF
14310 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14313 ac_header_dirent=$ac_hdr; break
14317 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14318 if test $ac_header_dirent = dirent.h; then
14319 echo "$as_me:$LINENO: checking for library containing opendir" >&5
14320 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
14321 if test "${ac_cv_search_opendir+set}" = set; then
14322 echo $ECHO_N "(cached) $ECHO_C" >&6
14324 ac_func_search_save_LIBS=$LIBS
14325 ac_cv_search_opendir=no
14326 cat >conftest.$ac_ext <<_ACEOF
14329 cat confdefs.h >>conftest.$ac_ext
14330 cat >>conftest.$ac_ext <<_ACEOF
14331 /* end confdefs.h. */
14333 /* Override any gcc2 internal prototype to avoid an error. */
14337 /* We use char because int might match the return type of a gcc2
14338 builtin and then its argument prototype would still apply. */
14348 rm -f conftest.$ac_objext conftest$ac_exeext
14349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14350 (eval $ac_link) 2>conftest.er1
14352 grep -v '^ *+' conftest.er1 >conftest.err
14354 cat conftest.err >&5
14355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14356 (exit $ac_status); } &&
14357 { ac_try='test -z "$ac_c_werror_flag"
14358 || test ! -s conftest.err'
14359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14360 (eval $ac_try) 2>&5
14362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14363 (exit $ac_status); }; } &&
14364 { ac_try='test -s conftest$ac_exeext'
14365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14366 (eval $ac_try) 2>&5
14368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14369 (exit $ac_status); }; }; then
14370 ac_cv_search_opendir="none required"
14372 echo "$as_me: failed program was:" >&5
14373 sed 's/^/| /' conftest.$ac_ext >&5
14376 rm -f conftest.err conftest.$ac_objext \
14377 conftest$ac_exeext conftest.$ac_ext
14378 if test "$ac_cv_search_opendir" = no; then
14379 for ac_lib in dir; do
14380 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14381 cat >conftest.$ac_ext <<_ACEOF
14384 cat confdefs.h >>conftest.$ac_ext
14385 cat >>conftest.$ac_ext <<_ACEOF
14386 /* end confdefs.h. */
14388 /* Override any gcc2 internal prototype to avoid an error. */
14392 /* We use char because int might match the return type of a gcc2
14393 builtin and then its argument prototype would still apply. */
14403 rm -f conftest.$ac_objext conftest$ac_exeext
14404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14405 (eval $ac_link) 2>conftest.er1
14407 grep -v '^ *+' conftest.er1 >conftest.err
14409 cat conftest.err >&5
14410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14411 (exit $ac_status); } &&
14412 { ac_try='test -z "$ac_c_werror_flag"
14413 || test ! -s conftest.err'
14414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14415 (eval $ac_try) 2>&5
14417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14418 (exit $ac_status); }; } &&
14419 { ac_try='test -s conftest$ac_exeext'
14420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14421 (eval $ac_try) 2>&5
14423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14424 (exit $ac_status); }; }; then
14425 ac_cv_search_opendir="-l$ac_lib"
14428 echo "$as_me: failed program was:" >&5
14429 sed 's/^/| /' conftest.$ac_ext >&5
14432 rm -f conftest.err conftest.$ac_objext \
14433 conftest$ac_exeext conftest.$ac_ext
14436 LIBS=$ac_func_search_save_LIBS
14438 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14439 echo "${ECHO_T}$ac_cv_search_opendir" >&6
14440 if test "$ac_cv_search_opendir" != no; then
14441 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
14446 echo "$as_me:$LINENO: checking for library containing opendir" >&5
14447 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
14448 if test "${ac_cv_search_opendir+set}" = set; then
14449 echo $ECHO_N "(cached) $ECHO_C" >&6
14451 ac_func_search_save_LIBS=$LIBS
14452 ac_cv_search_opendir=no
14453 cat >conftest.$ac_ext <<_ACEOF
14456 cat confdefs.h >>conftest.$ac_ext
14457 cat >>conftest.$ac_ext <<_ACEOF
14458 /* end confdefs.h. */
14460 /* Override any gcc2 internal prototype to avoid an error. */
14464 /* We use char because int might match the return type of a gcc2
14465 builtin and then its argument prototype would still apply. */
14475 rm -f conftest.$ac_objext conftest$ac_exeext
14476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14477 (eval $ac_link) 2>conftest.er1
14479 grep -v '^ *+' conftest.er1 >conftest.err
14481 cat conftest.err >&5
14482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14483 (exit $ac_status); } &&
14484 { ac_try='test -z "$ac_c_werror_flag"
14485 || test ! -s conftest.err'
14486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14487 (eval $ac_try) 2>&5
14489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14490 (exit $ac_status); }; } &&
14491 { ac_try='test -s conftest$ac_exeext'
14492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14493 (eval $ac_try) 2>&5
14495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14496 (exit $ac_status); }; }; then
14497 ac_cv_search_opendir="none required"
14499 echo "$as_me: failed program was:" >&5
14500 sed 's/^/| /' conftest.$ac_ext >&5
14503 rm -f conftest.err conftest.$ac_objext \
14504 conftest$ac_exeext conftest.$ac_ext
14505 if test "$ac_cv_search_opendir" = no; then
14506 for ac_lib in x; do
14507 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14508 cat >conftest.$ac_ext <<_ACEOF
14511 cat confdefs.h >>conftest.$ac_ext
14512 cat >>conftest.$ac_ext <<_ACEOF
14513 /* end confdefs.h. */
14515 /* Override any gcc2 internal prototype to avoid an error. */
14519 /* We use char because int might match the return type of a gcc2
14520 builtin and then its argument prototype would still apply. */
14530 rm -f conftest.$ac_objext conftest$ac_exeext
14531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14532 (eval $ac_link) 2>conftest.er1
14534 grep -v '^ *+' conftest.er1 >conftest.err
14536 cat conftest.err >&5
14537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14538 (exit $ac_status); } &&
14539 { ac_try='test -z "$ac_c_werror_flag"
14540 || test ! -s conftest.err'
14541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14542 (eval $ac_try) 2>&5
14544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14545 (exit $ac_status); }; } &&
14546 { ac_try='test -s conftest$ac_exeext'
14547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14548 (eval $ac_try) 2>&5
14550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14551 (exit $ac_status); }; }; then
14552 ac_cv_search_opendir="-l$ac_lib"
14555 echo "$as_me: failed program was:" >&5
14556 sed 's/^/| /' conftest.$ac_ext >&5
14559 rm -f conftest.err conftest.$ac_objext \
14560 conftest$ac_exeext conftest.$ac_ext
14563 LIBS=$ac_func_search_save_LIBS
14565 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14566 echo "${ECHO_T}$ac_cv_search_opendir" >&6
14567 if test "$ac_cv_search_opendir" != no; then
14568 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
14581 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
14583 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14584 echo "$as_me:$LINENO: checking for $ac_func" >&5
14585 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14586 if eval "test \"\${$as_ac_var+set}\" = set"; then
14587 echo $ECHO_N "(cached) $ECHO_C" >&6
14589 cat >conftest.$ac_ext <<_ACEOF
14592 cat confdefs.h >>conftest.$ac_ext
14593 cat >>conftest.$ac_ext <<_ACEOF
14594 /* end confdefs.h. */
14595 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14596 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14597 #define $ac_func innocuous_$ac_func
14599 /* System header to define __stub macros and hopefully few prototypes,
14600 which can conflict with char $ac_func (); below.
14601 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14602 <limits.h> exists even on freestanding compilers. */
14605 # include <limits.h>
14607 # include <assert.h>
14612 /* Override any gcc2 internal prototype to avoid an error. */
14617 /* We use char because int might match the return type of a gcc2
14618 builtin and then its argument prototype would still apply. */
14620 /* The GNU C library defines this for functions which it implements
14621 to always fail with ENOSYS. Some functions are actually named
14622 something starting with __ and the normal name is an alias. */
14623 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14626 char (*f) () = $ac_func;
14635 return f != $ac_func;
14640 rm -f conftest.$ac_objext conftest$ac_exeext
14641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14642 (eval $ac_link) 2>conftest.er1
14644 grep -v '^ *+' conftest.er1 >conftest.err
14646 cat conftest.err >&5
14647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14648 (exit $ac_status); } &&
14649 { ac_try='test -z "$ac_c_werror_flag"
14650 || test ! -s conftest.err'
14651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14652 (eval $ac_try) 2>&5
14654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14655 (exit $ac_status); }; } &&
14656 { ac_try='test -s conftest$ac_exeext'
14657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14658 (eval $ac_try) 2>&5
14660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14661 (exit $ac_status); }; }; then
14662 eval "$as_ac_var=yes"
14664 echo "$as_me: failed program was:" >&5
14665 sed 's/^/| /' conftest.$ac_ext >&5
14667 eval "$as_ac_var=no"
14669 rm -f conftest.err conftest.$ac_objext \
14670 conftest$ac_exeext conftest.$ac_ext
14672 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14673 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14674 if test `eval echo '${'$as_ac_var'}'` = yes; then
14675 cat >>confdefs.h <<_ACEOF
14676 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14684 for ac_func in nanosleep nl_langinfo
14686 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14687 echo "$as_me:$LINENO: checking for $ac_func" >&5
14688 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14689 if eval "test \"\${$as_ac_var+set}\" = set"; then
14690 echo $ECHO_N "(cached) $ECHO_C" >&6
14692 cat >conftest.$ac_ext <<_ACEOF
14695 cat confdefs.h >>conftest.$ac_ext
14696 cat >>conftest.$ac_ext <<_ACEOF
14697 /* end confdefs.h. */
14698 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14699 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14700 #define $ac_func innocuous_$ac_func
14702 /* System header to define __stub macros and hopefully few prototypes,
14703 which can conflict with char $ac_func (); below.
14704 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14705 <limits.h> exists even on freestanding compilers. */
14708 # include <limits.h>
14710 # include <assert.h>
14715 /* Override any gcc2 internal prototype to avoid an error. */
14720 /* We use char because int might match the return type of a gcc2
14721 builtin and then its argument prototype would still apply. */
14723 /* The GNU C library defines this for functions which it implements
14724 to always fail with ENOSYS. Some functions are actually named
14725 something starting with __ and the normal name is an alias. */
14726 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14729 char (*f) () = $ac_func;
14738 return f != $ac_func;
14743 rm -f conftest.$ac_objext conftest$ac_exeext
14744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14745 (eval $ac_link) 2>conftest.er1
14747 grep -v '^ *+' conftest.er1 >conftest.err
14749 cat conftest.err >&5
14750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14751 (exit $ac_status); } &&
14752 { ac_try='test -z "$ac_c_werror_flag"
14753 || test ! -s conftest.err'
14754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14755 (eval $ac_try) 2>&5
14757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14758 (exit $ac_status); }; } &&
14759 { ac_try='test -s conftest$ac_exeext'
14760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14761 (eval $ac_try) 2>&5
14763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14764 (exit $ac_status); }; }; then
14765 eval "$as_ac_var=yes"
14767 echo "$as_me: failed program was:" >&5
14768 sed 's/^/| /' conftest.$ac_ext >&5
14770 eval "$as_ac_var=no"
14772 rm -f conftest.err conftest.$ac_objext \
14773 conftest$ac_exeext conftest.$ac_ext
14775 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14776 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14777 if test `eval echo '${'$as_ac_var'}'` = yes; then
14778 cat >>confdefs.h <<_ACEOF
14779 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14786 for ac_header in varargs.h
14788 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14789 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14790 echo "$as_me:$LINENO: checking for $ac_header" >&5
14791 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14792 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14793 echo $ECHO_N "(cached) $ECHO_C" >&6
14795 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14796 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14798 # Is the header compilable?
14799 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14800 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14801 cat >conftest.$ac_ext <<_ACEOF
14804 cat confdefs.h >>conftest.$ac_ext
14805 cat >>conftest.$ac_ext <<_ACEOF
14806 /* end confdefs.h. */
14807 $ac_includes_default
14808 #include <$ac_header>
14810 rm -f conftest.$ac_objext
14811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14812 (eval $ac_compile) 2>conftest.er1
14814 grep -v '^ *+' conftest.er1 >conftest.err
14816 cat conftest.err >&5
14817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14818 (exit $ac_status); } &&
14819 { ac_try='test -z "$ac_c_werror_flag"
14820 || test ! -s conftest.err'
14821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14822 (eval $ac_try) 2>&5
14824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14825 (exit $ac_status); }; } &&
14826 { ac_try='test -s conftest.$ac_objext'
14827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14828 (eval $ac_try) 2>&5
14830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14831 (exit $ac_status); }; }; then
14832 ac_header_compiler=yes
14834 echo "$as_me: failed program was:" >&5
14835 sed 's/^/| /' conftest.$ac_ext >&5
14837 ac_header_compiler=no
14839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14840 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14841 echo "${ECHO_T}$ac_header_compiler" >&6
14843 # Is the header present?
14844 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14845 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14846 cat >conftest.$ac_ext <<_ACEOF
14849 cat confdefs.h >>conftest.$ac_ext
14850 cat >>conftest.$ac_ext <<_ACEOF
14851 /* end confdefs.h. */
14852 #include <$ac_header>
14854 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14855 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14857 grep -v '^ *+' conftest.er1 >conftest.err
14859 cat conftest.err >&5
14860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14861 (exit $ac_status); } >/dev/null; then
14862 if test -s conftest.err; then
14863 ac_cpp_err=$ac_c_preproc_warn_flag
14864 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14871 if test -z "$ac_cpp_err"; then
14872 ac_header_preproc=yes
14874 echo "$as_me: failed program was:" >&5
14875 sed 's/^/| /' conftest.$ac_ext >&5
14877 ac_header_preproc=no
14879 rm -f conftest.err conftest.$ac_ext
14880 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14881 echo "${ECHO_T}$ac_header_preproc" >&6
14883 # So? What about this header?
14884 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14886 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14887 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14888 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14889 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14890 ac_header_preproc=yes
14893 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14894 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14895 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14896 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14897 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14898 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14899 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14900 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14901 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14902 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14903 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14904 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14907 ## ------------------------------------------ ##
14908 ## Report this to the AC_PACKAGE_NAME lists. ##
14909 ## ------------------------------------------ ##
14912 sed "s/^/$as_me: WARNING: /" >&2
14915 echo "$as_me:$LINENO: checking for $ac_header" >&5
14916 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14917 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14918 echo $ECHO_N "(cached) $ECHO_C" >&6
14920 eval "$as_ac_Header=\$ac_header_preproc"
14922 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14923 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14926 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14927 cat >>confdefs.h <<_ACEOF
14928 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14936 # End of readline/conio stuff
14937 # -----------------------------------------------------------------------
14939 # -----------------------------------------------------------------------
14940 # Check for Python support
14942 echo "$as_me:$LINENO: checking for Python support" >&5
14943 echo $ECHO_N "checking for Python support... $ECHO_C" >&6
14945 # Check whether --with-python or --without-python was given.
14946 if test "${with_python+set}" = set; then
14947 withval="$with_python"
14951 if test "$withval" != "no"; then
14952 if test "$withval" = "yes"; then
14953 for python_root in /usr /usr/local /usr/sfw; do
14954 if test -f $python_root/include/python2.2/Python.h; then
14955 PYTHON_INCDIR=-I$python_root/include/python2.2
14956 PYTHON_LIBS="-L$python_root/lib/python2.2/config -lpython2.2"
14958 elif test -f $python_root/include/python2.3/Python.h; then
14959 PYTHON_INCDIR=-I$python_root/include/python2.3
14960 PYTHON_LIBS="-L$python_root/lib/python2.3/config -lpython2.3"
14962 elif test -f $python_root/include/python2.4/Python.h; then
14963 PYTHON_INCDIR=-I$python_root/include/python2.4
14964 PYTHON_LIBS="-L$python_root/lib/python2.4/config -lpython2.4"
14968 if test x$PYTHON_INCDIR = x; then
14969 if test -f $prefix/include/Python.h; then
14970 PYTHON_INCDIR=-I$prefix/include
14971 PYTHON_LIBS="-L$prefix/lib/config -lpython"
14973 echo "$as_me:$LINENO: result: no" >&5
14974 echo "${ECHO_T}no" >&6
14975 { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
14976 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
14977 { (exit 1); exit 1; }; }
14981 if test -f $withval/Python.h; then
14982 PYTHON_INCDIR=-I$withval
14983 PYTHON_LIBS="-L$withval/config -lpython"
14984 elif test -f $withval/include/Python.h; then
14985 PYTHON_INCDIR=-I$withval/include
14986 PYTHON_LIBS="-L$withval/lib/config -lpython"
14987 elif test -f $withval/include/python/Python.h; then
14988 PYTHON_INCDIR=-I$withval/include/python
14989 PYTHON_LIBS="-L$withval/lib/python/config -lpython"
14991 echo "$as_me:$LINENO: result: no" >&5
14992 echo "${ECHO_T}no" >&6
14993 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
14994 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
14995 { (exit 1); exit 1; }; }
14998 cat >>confdefs.h <<\_ACEOF
14999 #define HAVE_PYTHON 1
15002 echo "$as_me:$LINENO: result: yes" >&5
15003 echo "${ECHO_T}yes" >&6
15005 { echo "$as_me:$LINENO: checking for more Python libs" >&5
15006 echo "$as_me: checking for more Python libs" >&6;}
15007 saved_LIBS="$LIBS"; LIBS=
15008 echo "$as_me:$LINENO: checking for library containing shm_open" >&5
15009 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6
15010 if test "${ac_cv_search_shm_open+set}" = set; then
15011 echo $ECHO_N "(cached) $ECHO_C" >&6
15013 ac_func_search_save_LIBS=$LIBS
15014 ac_cv_search_shm_open=no
15015 cat >conftest.$ac_ext <<_ACEOF
15018 cat confdefs.h >>conftest.$ac_ext
15019 cat >>conftest.$ac_ext <<_ACEOF
15020 /* end confdefs.h. */
15022 /* Override any gcc2 internal prototype to avoid an error. */
15026 /* We use char because int might match the return type of a gcc2
15027 builtin and then its argument prototype would still apply. */
15037 rm -f conftest.$ac_objext conftest$ac_exeext
15038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15039 (eval $ac_link) 2>conftest.er1
15041 grep -v '^ *+' conftest.er1 >conftest.err
15043 cat conftest.err >&5
15044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15045 (exit $ac_status); } &&
15046 { ac_try='test -z "$ac_c_werror_flag"
15047 || test ! -s conftest.err'
15048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15049 (eval $ac_try) 2>&5
15051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15052 (exit $ac_status); }; } &&
15053 { ac_try='test -s conftest$ac_exeext'
15054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15055 (eval $ac_try) 2>&5
15057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15058 (exit $ac_status); }; }; then
15059 ac_cv_search_shm_open="none required"
15061 echo "$as_me: failed program was:" >&5
15062 sed 's/^/| /' conftest.$ac_ext >&5
15065 rm -f conftest.err conftest.$ac_objext \
15066 conftest$ac_exeext conftest.$ac_ext
15067 if test "$ac_cv_search_shm_open" = no; then
15068 for ac_lib in rt; do
15069 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15070 cat >conftest.$ac_ext <<_ACEOF
15073 cat confdefs.h >>conftest.$ac_ext
15074 cat >>conftest.$ac_ext <<_ACEOF
15075 /* end confdefs.h. */
15077 /* Override any gcc2 internal prototype to avoid an error. */
15081 /* We use char because int might match the return type of a gcc2
15082 builtin and then its argument prototype would still apply. */
15092 rm -f conftest.$ac_objext conftest$ac_exeext
15093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15094 (eval $ac_link) 2>conftest.er1
15096 grep -v '^ *+' conftest.er1 >conftest.err
15098 cat conftest.err >&5
15099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15100 (exit $ac_status); } &&
15101 { ac_try='test -z "$ac_c_werror_flag"
15102 || test ! -s conftest.err'
15103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15104 (eval $ac_try) 2>&5
15106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15107 (exit $ac_status); }; } &&
15108 { ac_try='test -s conftest$ac_exeext'
15109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15110 (eval $ac_try) 2>&5
15112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15113 (exit $ac_status); }; }; then
15114 ac_cv_search_shm_open="-l$ac_lib"
15117 echo "$as_me: failed program was:" >&5
15118 sed 's/^/| /' conftest.$ac_ext >&5
15121 rm -f conftest.err conftest.$ac_objext \
15122 conftest$ac_exeext conftest.$ac_ext
15125 LIBS=$ac_func_search_save_LIBS
15127 echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
15128 echo "${ECHO_T}$ac_cv_search_shm_open" >&6
15129 if test "$ac_cv_search_shm_open" != no; then
15130 test "$ac_cv_search_shm_open" = "none required" || LIBS="$ac_cv_search_shm_open $LIBS"
15135 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
15136 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
15137 if test "${ac_cv_lib_util_openpty+set}" = set; then
15138 echo $ECHO_N "(cached) $ECHO_C" >&6
15140 ac_check_lib_save_LIBS=$LIBS
15141 LIBS="-lutil $LIBS"
15142 cat >conftest.$ac_ext <<_ACEOF
15145 cat confdefs.h >>conftest.$ac_ext
15146 cat >>conftest.$ac_ext <<_ACEOF
15147 /* end confdefs.h. */
15149 /* Override any gcc2 internal prototype to avoid an error. */
15153 /* We use char because int might match the return type of a gcc2
15154 builtin and then its argument prototype would still apply. */
15164 rm -f conftest.$ac_objext conftest$ac_exeext
15165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15166 (eval $ac_link) 2>conftest.er1
15168 grep -v '^ *+' conftest.er1 >conftest.err
15170 cat conftest.err >&5
15171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15172 (exit $ac_status); } &&
15173 { ac_try='test -z "$ac_c_werror_flag"
15174 || test ! -s conftest.err'
15175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15176 (eval $ac_try) 2>&5
15178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15179 (exit $ac_status); }; } &&
15180 { ac_try='test -s conftest$ac_exeext'
15181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15182 (eval $ac_try) 2>&5
15184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15185 (exit $ac_status); }; }; then
15186 ac_cv_lib_util_openpty=yes
15188 echo "$as_me: failed program was:" >&5
15189 sed 's/^/| /' conftest.$ac_ext >&5
15191 ac_cv_lib_util_openpty=no
15193 rm -f conftest.err conftest.$ac_objext \
15194 conftest$ac_exeext conftest.$ac_ext
15195 LIBS=$ac_check_lib_save_LIBS
15197 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
15198 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
15199 if test $ac_cv_lib_util_openpty = yes; then
15200 cat >>confdefs.h <<_ACEOF
15201 #define HAVE_LIBUTIL 1
15204 LIBS="-lutil $LIBS"
15208 PYTHON_LIBS="$PYTHON_LIBS $LIBS"
15211 echo "$as_me:$LINENO: result: no" >&5
15212 echo "${ECHO_T}no" >&6
15217 echo "$as_me:$LINENO: result: no" >&5
15218 echo "${ECHO_T}no" >&6
15226 # Find where sockets are (especially for Solaris)
15227 # Do this before the TCP Wrappers test since tcp wrappers
15228 # uses the socket library and some linkers are stupid.
15230 echo "$as_me:$LINENO: checking for socket" >&5
15231 echo $ECHO_N "checking for socket... $ECHO_C" >&6
15232 if test "${ac_cv_func_socket+set}" = set; then
15233 echo $ECHO_N "(cached) $ECHO_C" >&6
15235 cat >conftest.$ac_ext <<_ACEOF
15238 cat confdefs.h >>conftest.$ac_ext
15239 cat >>conftest.$ac_ext <<_ACEOF
15240 /* end confdefs.h. */
15241 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
15242 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15243 #define socket innocuous_socket
15245 /* System header to define __stub macros and hopefully few prototypes,
15246 which can conflict with char socket (); below.
15247 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15248 <limits.h> exists even on freestanding compilers. */
15251 # include <limits.h>
15253 # include <assert.h>
15258 /* Override any gcc2 internal prototype to avoid an error. */
15263 /* We use char because int might match the return type of a gcc2
15264 builtin and then its argument prototype would still apply. */
15266 /* The GNU C library defines this for functions which it implements
15267 to always fail with ENOSYS. Some functions are actually named
15268 something starting with __ and the normal name is an alias. */
15269 #if defined (__stub_socket) || defined (__stub___socket)
15272 char (*f) () = socket;
15281 return f != socket;
15286 rm -f conftest.$ac_objext conftest$ac_exeext
15287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15288 (eval $ac_link) 2>conftest.er1
15290 grep -v '^ *+' conftest.er1 >conftest.err
15292 cat conftest.err >&5
15293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15294 (exit $ac_status); } &&
15295 { ac_try='test -z "$ac_c_werror_flag"
15296 || test ! -s conftest.err'
15297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15298 (eval $ac_try) 2>&5
15300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15301 (exit $ac_status); }; } &&
15302 { ac_try='test -s conftest$ac_exeext'
15303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15304 (eval $ac_try) 2>&5
15306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15307 (exit $ac_status); }; }; then
15308 ac_cv_func_socket=yes
15310 echo "$as_me: failed program was:" >&5
15311 sed 's/^/| /' conftest.$ac_ext >&5
15313 ac_cv_func_socket=no
15315 rm -f conftest.err conftest.$ac_objext \
15316 conftest$ac_exeext conftest.$ac_ext
15318 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15319 echo "${ECHO_T}$ac_cv_func_socket" >&6
15320 if test $ac_cv_func_socket = yes; then
15321 echo "$as_me:$LINENO: result: using libc's socket" >&5
15322 echo "${ECHO_T}using libc's socket" >&6
15325 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
15326 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
15327 if test "${ac_cv_lib_xnet_socket+set}" = set; then
15328 echo $ECHO_N "(cached) $ECHO_C" >&6
15330 ac_check_lib_save_LIBS=$LIBS
15331 LIBS="-lxnet $LIBS"
15332 cat >conftest.$ac_ext <<_ACEOF
15335 cat confdefs.h >>conftest.$ac_ext
15336 cat >>conftest.$ac_ext <<_ACEOF
15337 /* end confdefs.h. */
15339 /* Override any gcc2 internal prototype to avoid an error. */
15343 /* We use char because int might match the return type of a gcc2
15344 builtin and then its argument prototype would still apply. */
15354 rm -f conftest.$ac_objext conftest$ac_exeext
15355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15356 (eval $ac_link) 2>conftest.er1
15358 grep -v '^ *+' conftest.er1 >conftest.err
15360 cat conftest.err >&5
15361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15362 (exit $ac_status); } &&
15363 { ac_try='test -z "$ac_c_werror_flag"
15364 || test ! -s conftest.err'
15365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15366 (eval $ac_try) 2>&5
15368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15369 (exit $ac_status); }; } &&
15370 { ac_try='test -s conftest$ac_exeext'
15371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15372 (eval $ac_try) 2>&5
15374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15375 (exit $ac_status); }; }; then
15376 ac_cv_lib_xnet_socket=yes
15378 echo "$as_me: failed program was:" >&5
15379 sed 's/^/| /' conftest.$ac_ext >&5
15381 ac_cv_lib_xnet_socket=no
15383 rm -f conftest.err conftest.$ac_objext \
15384 conftest$ac_exeext conftest.$ac_ext
15385 LIBS=$ac_check_lib_save_LIBS
15387 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
15388 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
15389 if test $ac_cv_lib_xnet_socket = yes; then
15390 cat >>confdefs.h <<_ACEOF
15391 #define HAVE_LIBXNET 1
15394 LIBS="-lxnet $LIBS"
15399 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15400 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
15401 if test "${ac_cv_lib_socket_socket+set}" = set; then
15402 echo $ECHO_N "(cached) $ECHO_C" >&6
15404 ac_check_lib_save_LIBS=$LIBS
15405 LIBS="-lsocket $LIBS"
15406 cat >conftest.$ac_ext <<_ACEOF
15409 cat confdefs.h >>conftest.$ac_ext
15410 cat >>conftest.$ac_ext <<_ACEOF
15411 /* end confdefs.h. */
15413 /* Override any gcc2 internal prototype to avoid an error. */
15417 /* We use char because int might match the return type of a gcc2
15418 builtin and then its argument prototype would still apply. */
15428 rm -f conftest.$ac_objext conftest$ac_exeext
15429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15430 (eval $ac_link) 2>conftest.er1
15432 grep -v '^ *+' conftest.er1 >conftest.err
15434 cat conftest.err >&5
15435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15436 (exit $ac_status); } &&
15437 { ac_try='test -z "$ac_c_werror_flag"
15438 || test ! -s conftest.err'
15439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15440 (eval $ac_try) 2>&5
15442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15443 (exit $ac_status); }; } &&
15444 { ac_try='test -s conftest$ac_exeext'
15445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15446 (eval $ac_try) 2>&5
15448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15449 (exit $ac_status); }; }; then
15450 ac_cv_lib_socket_socket=yes
15452 echo "$as_me: failed program was:" >&5
15453 sed 's/^/| /' conftest.$ac_ext >&5
15455 ac_cv_lib_socket_socket=no
15457 rm -f conftest.err conftest.$ac_objext \
15458 conftest$ac_exeext conftest.$ac_ext
15459 LIBS=$ac_check_lib_save_LIBS
15461 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15462 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
15463 if test $ac_cv_lib_socket_socket = yes; then
15464 cat >>confdefs.h <<_ACEOF
15465 #define HAVE_LIBSOCKET 1
15468 LIBS="-lsocket $LIBS"
15473 echo "$as_me:$LINENO: checking for socket in -linet" >&5
15474 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
15475 if test "${ac_cv_lib_inet_socket+set}" = set; then
15476 echo $ECHO_N "(cached) $ECHO_C" >&6
15478 ac_check_lib_save_LIBS=$LIBS
15479 LIBS="-linet $LIBS"
15480 cat >conftest.$ac_ext <<_ACEOF
15483 cat confdefs.h >>conftest.$ac_ext
15484 cat >>conftest.$ac_ext <<_ACEOF
15485 /* end confdefs.h. */
15487 /* Override any gcc2 internal prototype to avoid an error. */
15491 /* We use char because int might match the return type of a gcc2
15492 builtin and then its argument prototype would still apply. */
15502 rm -f conftest.$ac_objext conftest$ac_exeext
15503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15504 (eval $ac_link) 2>conftest.er1
15506 grep -v '^ *+' conftest.er1 >conftest.err
15508 cat conftest.err >&5
15509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15510 (exit $ac_status); } &&
15511 { ac_try='test -z "$ac_c_werror_flag"
15512 || test ! -s conftest.err'
15513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15514 (eval $ac_try) 2>&5
15516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15517 (exit $ac_status); }; } &&
15518 { ac_try='test -s conftest$ac_exeext'
15519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15520 (eval $ac_try) 2>&5
15522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15523 (exit $ac_status); }; }; then
15524 ac_cv_lib_inet_socket=yes
15526 echo "$as_me: failed program was:" >&5
15527 sed 's/^/| /' conftest.$ac_ext >&5
15529 ac_cv_lib_inet_socket=no
15531 rm -f conftest.err conftest.$ac_objext \
15532 conftest$ac_exeext conftest.$ac_ext
15533 LIBS=$ac_check_lib_save_LIBS
15535 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15536 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15537 if test $ac_cv_lib_inet_socket = yes; then
15538 cat >>confdefs.h <<_ACEOF
15539 #define HAVE_LIBINET 1
15542 LIBS="-linet $LIBS"
15550 # -----------------------------------------------------------
15551 # Check whether user wants TCP wrappers support (default off)
15552 # -----------------------------------------------------------
15556 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
15557 if test "${with_tcp_wrappers+set}" = set; then
15558 withval="$with_tcp_wrappers"
15560 if test "x$withval" != "xno" ; then
15562 LIBS="$saved_LIBS -lwrap"
15563 echo "$as_me:$LINENO: checking for libwrap" >&5
15564 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
15565 echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
15566 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6
15567 if test "${ac_cv_search_nanosleep+set}" = set; then
15568 echo $ECHO_N "(cached) $ECHO_C" >&6
15570 ac_func_search_save_LIBS=$LIBS
15571 ac_cv_search_nanosleep=no
15572 cat >conftest.$ac_ext <<_ACEOF
15575 cat confdefs.h >>conftest.$ac_ext
15576 cat >>conftest.$ac_ext <<_ACEOF
15577 /* end confdefs.h. */
15579 /* Override any gcc2 internal prototype to avoid an error. */
15583 /* We use char because int might match the return type of a gcc2
15584 builtin and then its argument prototype would still apply. */
15594 rm -f conftest.$ac_objext conftest$ac_exeext
15595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15596 (eval $ac_link) 2>conftest.er1
15598 grep -v '^ *+' conftest.er1 >conftest.err
15600 cat conftest.err >&5
15601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15602 (exit $ac_status); } &&
15603 { ac_try='test -z "$ac_c_werror_flag"
15604 || test ! -s conftest.err'
15605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15606 (eval $ac_try) 2>&5
15608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15609 (exit $ac_status); }; } &&
15610 { ac_try='test -s conftest$ac_exeext'
15611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15612 (eval $ac_try) 2>&5
15614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15615 (exit $ac_status); }; }; then
15616 ac_cv_search_nanosleep="none required"
15618 echo "$as_me: failed program was:" >&5
15619 sed 's/^/| /' conftest.$ac_ext >&5
15622 rm -f conftest.err conftest.$ac_objext \
15623 conftest$ac_exeext conftest.$ac_ext
15624 if test "$ac_cv_search_nanosleep" = no; then
15625 for ac_lib in rt; do
15626 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15627 cat >conftest.$ac_ext <<_ACEOF
15630 cat confdefs.h >>conftest.$ac_ext
15631 cat >>conftest.$ac_ext <<_ACEOF
15632 /* end confdefs.h. */
15634 /* Override any gcc2 internal prototype to avoid an error. */
15638 /* We use char because int might match the return type of a gcc2
15639 builtin and then its argument prototype would still apply. */
15649 rm -f conftest.$ac_objext conftest$ac_exeext
15650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15651 (eval $ac_link) 2>conftest.er1
15653 grep -v '^ *+' conftest.er1 >conftest.err
15655 cat conftest.err >&5
15656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15657 (exit $ac_status); } &&
15658 { ac_try='test -z "$ac_c_werror_flag"
15659 || test ! -s conftest.err'
15660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15661 (eval $ac_try) 2>&5
15663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15664 (exit $ac_status); }; } &&
15665 { ac_try='test -s conftest$ac_exeext'
15666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15667 (eval $ac_try) 2>&5
15669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15670 (exit $ac_status); }; }; then
15671 ac_cv_search_nanosleep="-l$ac_lib"
15674 echo "$as_me: failed program was:" >&5
15675 sed 's/^/| /' conftest.$ac_ext >&5
15678 rm -f conftest.err conftest.$ac_objext \
15679 conftest$ac_exeext conftest.$ac_ext
15682 LIBS=$ac_func_search_save_LIBS
15684 echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
15685 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6
15686 if test "$ac_cv_search_nanosleep" != no; then
15687 test "$ac_cv_search_nanosleep" = "none required" || LIBS="$ac_cv_search_nanosleep $LIBS"
15691 cat >conftest.$ac_ext <<_ACEOF
15694 cat confdefs.h >>conftest.$ac_ext
15695 cat >>conftest.$ac_ext <<_ACEOF
15696 /* end confdefs.h. */
15697 #include <sys/types.h>
15699 int deny_severity = 0;
15700 int allow_severity = 0;
15701 struct request_info *req;
15710 rm -f conftest.$ac_objext conftest$ac_exeext
15711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15712 (eval $ac_link) 2>conftest.er1
15714 grep -v '^ *+' conftest.er1 >conftest.err
15716 cat conftest.err >&5
15717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15718 (exit $ac_status); } &&
15719 { ac_try='test -z "$ac_c_werror_flag"
15720 || test ! -s conftest.err'
15721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15722 (eval $ac_try) 2>&5
15724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15725 (exit $ac_status); }; } &&
15726 { ac_try='test -s conftest$ac_exeext'
15727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15728 (eval $ac_try) 2>&5
15730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15731 (exit $ac_status); }; }; then
15733 echo "$as_me:$LINENO: result: yes" >&5
15734 echo "${ECHO_T}yes" >&6
15735 cat >>confdefs.h <<\_ACEOF
15736 #define HAVE_LIBWRAP 1
15744 echo "$as_me: failed program was:" >&5
15745 sed 's/^/| /' conftest.$ac_ext >&5
15748 LIBS="$saved_LIBS -lwrap -lnsl"
15749 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
15750 cat >conftest.$ac_ext <<_ACEOF
15753 cat confdefs.h >>conftest.$ac_ext
15754 cat >>conftest.$ac_ext <<_ACEOF
15755 /* end confdefs.h. */
15756 #include <sys/types.h>
15758 int deny_severity = 0;
15759 int allow_severity = 0;
15760 struct request_info *req;
15769 rm -f conftest.$ac_objext conftest$ac_exeext
15770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15771 (eval $ac_link) 2>conftest.er1
15773 grep -v '^ *+' conftest.er1 >conftest.err
15775 cat conftest.err >&5
15776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777 (exit $ac_status); } &&
15778 { ac_try='test -z "$ac_c_werror_flag"
15779 || test ! -s conftest.err'
15780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15781 (eval $ac_try) 2>&5
15783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15784 (exit $ac_status); }; } &&
15785 { ac_try='test -s conftest$ac_exeext'
15786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15787 (eval $ac_try) 2>&5
15789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15790 (exit $ac_status); }; }; then
15792 echo "$as_me:$LINENO: result: yes" >&5
15793 echo "${ECHO_T}yes" >&6
15794 cat >>confdefs.h <<\_ACEOF
15795 #define HAVE_LIBWRAP 1
15803 echo "$as_me: failed program was:" >&5
15804 sed 's/^/| /' conftest.$ac_ext >&5
15806 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
15807 echo "$as_me: error: *** libwrap missing" >&2;}
15808 { (exit 1); exit 1; }; }
15811 rm -f conftest.err conftest.$ac_objext \
15812 conftest$ac_exeext conftest.$ac_ext
15815 rm -f conftest.err conftest.$ac_objext \
15816 conftest$ac_exeext conftest.$ac_ext
15822 # -----------------------------------------------------------
15823 # Check whether OpenSSL is available
15824 # -----------------------------------------------------------
15825 echo "$as_me:$LINENO: checking for OpenSSL" >&5
15826 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6
15828 # Check whether --with-openssl or --without-openssl was given.
15829 if test "${with_openssl+set}" = set; then
15830 withval="$with_openssl"
15831 with_openssl_directory=${withval}
15834 if test "x$with_openssl_directory" != "x"; then
15835 OPENSSL_LIBS="-lssl -lcrypto"
15838 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
15839 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
15840 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
15844 saved_CFLAGS="$CFLAGS"
15845 LIBS="$saved_LIBS $OPENSSL_LIBS"
15846 CFLAGS="$saved_CFLAGS $OPENSSL_INC"
15848 cat >conftest.$ac_ext <<_ACEOF
15851 cat confdefs.h >>conftest.$ac_ext
15852 cat >>conftest.$ac_ext <<_ACEOF
15853 /* end confdefs.h. */
15854 #include <openssl/ssl.h>
15858 CRYPTO_set_id_callback(NULL);
15863 rm -f conftest.$ac_objext conftest$ac_exeext
15864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15865 (eval $ac_link) 2>conftest.er1
15867 grep -v '^ *+' conftest.er1 >conftest.err
15869 cat conftest.err >&5
15870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15871 (exit $ac_status); } &&
15872 { ac_try='test -z "$ac_c_werror_flag"
15873 || test ! -s conftest.err'
15874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15875 (eval $ac_try) 2>&5
15877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15878 (exit $ac_status); }; } &&
15879 { ac_try='test -s conftest$ac_exeext'
15880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15881 (eval $ac_try) 2>&5
15883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15884 (exit $ac_status); }; }; then
15887 support_crypto="yes"
15890 echo "$as_me: failed program was:" >&5
15891 sed 's/^/| /' conftest.$ac_ext >&5
15896 rm -f conftest.err conftest.$ac_objext \
15897 conftest$ac_exeext conftest.$ac_ext
15899 cat >conftest.$ac_ext <<_ACEOF
15902 cat confdefs.h >>conftest.$ac_ext
15903 cat >>conftest.$ac_ext <<_ACEOF
15904 /* end confdefs.h. */
15905 #include <openssl/evp.h>
15914 rm -f conftest.$ac_objext conftest$ac_exeext
15915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15916 (eval $ac_link) 2>conftest.er1
15918 grep -v '^ *+' conftest.er1 >conftest.err
15920 cat conftest.err >&5
15921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15922 (exit $ac_status); } &&
15923 { ac_try='test -z "$ac_c_werror_flag"
15924 || test ! -s conftest.err'
15925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15926 (eval $ac_try) 2>&5
15928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15929 (exit $ac_status); }; } &&
15930 { ac_try='test -s conftest$ac_exeext'
15931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15932 (eval $ac_try) 2>&5
15934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15935 (exit $ac_status); }; }; then
15936 ac_cv_openssl_sha2="yes"
15938 echo "$as_me: failed program was:" >&5
15939 sed 's/^/| /' conftest.$ac_ext >&5
15941 ac_cv_openssl_sha2="no"
15944 rm -f conftest.err conftest.$ac_objext \
15945 conftest$ac_exeext conftest.$ac_ext
15948 CFLAGS="$saved_CFLAGS"
15950 if test "$support_tls" = "yes"; then
15952 cat >>confdefs.h <<\_ACEOF
15953 #define HAVE_OPENSSL 1
15957 cat >>confdefs.h <<\_ACEOF
15962 cat >>confdefs.h <<\_ACEOF
15963 #define HAVE_CRYPTO 1
15968 if test "$ac_cv_openssl_sha2" = "yes"; then
15970 cat >>confdefs.h <<\_ACEOF
15971 #define HAVE_SHA2 1
15977 support_crypto="no"
15982 echo "$as_me:$LINENO: result: $support_tls" >&5
15983 echo "${ECHO_T}$support_tls" >&6
15988 # -----------------------------------------------------------
15989 # Python and OpenSSL are using dlopen
15990 # -----------------------------------------------------------
15992 if test "$support_python" = "yes" -o "$support_tls" = "yes"; then
15993 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
15994 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
15995 if test "${ac_cv_search_dlopen+set}" = set; then
15996 echo $ECHO_N "(cached) $ECHO_C" >&6
15998 ac_func_search_save_LIBS=$LIBS
15999 ac_cv_search_dlopen=no
16000 cat >conftest.$ac_ext <<_ACEOF
16003 cat confdefs.h >>conftest.$ac_ext
16004 cat >>conftest.$ac_ext <<_ACEOF
16005 /* end confdefs.h. */
16007 /* Override any gcc2 internal prototype to avoid an error. */
16011 /* We use char because int might match the return type of a gcc2
16012 builtin and then its argument prototype would still apply. */
16022 rm -f conftest.$ac_objext conftest$ac_exeext
16023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16024 (eval $ac_link) 2>conftest.er1
16026 grep -v '^ *+' conftest.er1 >conftest.err
16028 cat conftest.err >&5
16029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16030 (exit $ac_status); } &&
16031 { ac_try='test -z "$ac_c_werror_flag"
16032 || test ! -s conftest.err'
16033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16034 (eval $ac_try) 2>&5
16036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16037 (exit $ac_status); }; } &&
16038 { ac_try='test -s conftest$ac_exeext'
16039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16040 (eval $ac_try) 2>&5
16042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16043 (exit $ac_status); }; }; then
16044 ac_cv_search_dlopen="none required"
16046 echo "$as_me: failed program was:" >&5
16047 sed 's/^/| /' conftest.$ac_ext >&5
16050 rm -f conftest.err conftest.$ac_objext \
16051 conftest$ac_exeext conftest.$ac_ext
16052 if test "$ac_cv_search_dlopen" = no; then
16053 for ac_lib in dl; do
16054 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16055 cat >conftest.$ac_ext <<_ACEOF
16058 cat confdefs.h >>conftest.$ac_ext
16059 cat >>conftest.$ac_ext <<_ACEOF
16060 /* end confdefs.h. */
16062 /* Override any gcc2 internal prototype to avoid an error. */
16066 /* We use char because int might match the return type of a gcc2
16067 builtin and then its argument prototype would still apply. */
16077 rm -f conftest.$ac_objext conftest$ac_exeext
16078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16079 (eval $ac_link) 2>conftest.er1
16081 grep -v '^ *+' conftest.er1 >conftest.err
16083 cat conftest.err >&5
16084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16085 (exit $ac_status); } &&
16086 { ac_try='test -z "$ac_c_werror_flag"
16087 || test ! -s conftest.err'
16088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16089 (eval $ac_try) 2>&5
16091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16092 (exit $ac_status); }; } &&
16093 { ac_try='test -s conftest$ac_exeext'
16094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16095 (eval $ac_try) 2>&5
16097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16098 (exit $ac_status); }; }; then
16099 ac_cv_search_dlopen="-l$ac_lib"
16102 echo "$as_me: failed program was:" >&5
16103 sed 's/^/| /' conftest.$ac_ext >&5
16106 rm -f conftest.err conftest.$ac_objext \
16107 conftest$ac_exeext conftest.$ac_ext
16110 LIBS=$ac_func_search_save_LIBS
16112 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
16113 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
16114 if test "$ac_cv_search_dlopen" != no; then
16115 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
16121 # ------------------------------------------
16122 # Where to place working dir
16123 # ------------------------------------------
16124 working_dir=`eval echo ${prefix}/var/bacula/working`
16126 # Check whether --with-working-dir or --without-working-dir was given.
16127 if test "${with_working_dir+set}" = set; then
16128 withval="$with_working_dir"
16130 if test "x$withval" != "xno" ; then
16131 working_dir=$withval
16140 # ------------------------------------------
16141 # Where to place scriptdir (script files)
16142 # ------------------------------------------
16143 scriptdir=`eval echo ${sysconfdir}`
16145 # Check whether --with-scriptdir or --without-scriptdir was given.
16146 if test "${with_scriptdir+set}" = set; then
16147 withval="$with_scriptdir"
16149 if test "x$withval" != "xno" ; then
16159 # ------------------------------------------
16160 # Where to send dump email
16161 # ------------------------------------------
16162 dump_email=root@localhost
16164 # Check whether --with-dump-email or --without-dump-email was given.
16165 if test "${with_dump_email+set}" = set; then
16166 withval="$with_dump_email"
16168 if test "x$withval" != "xno" ; then
16169 dump_email=$withval
16177 # ------------------------------------------
16178 # Where to send job email
16179 # ------------------------------------------
16180 job_email=root@localhost
16182 # Check whether --with-job-email or --without-job-email was given.
16183 if test "${with_job_email+set}" = set; then
16184 withval="$with_job_email"
16186 if test "x$withval" != "xno" ; then
16195 # ------------------------------------------
16196 # Where to find smtp host
16197 # ------------------------------------------
16198 smtp_host=localhost
16200 # Check whether --with-smtp_host or --without-smtp_host was given.
16201 if test "${with_smtp_host+set}" = set; then
16202 withval="$with_smtp_host"
16204 if test "x$withval" != "xno" ; then
16214 # ------------------------------------
16215 # Where to place pid files
16216 # ------------------------------------
16219 # Check whether --with-pid-dir or --without-pid-dir was given.
16220 if test "${with_pid_dir+set}" = set; then
16221 withval="$with_pid_dir"
16223 if test "x$withval" != "xno" ; then
16230 cat >>confdefs.h <<_ACEOF
16231 #define _PATH_BACULA_PIDDIR "$piddir"
16237 # ------------------------------------
16238 # Where to place subsys "lock file"
16239 # ------------------------------------
16240 subsysdir=/var/run/subsys
16242 # Check whether --with-subsys-dir or --without-subsys-dir was given.
16243 if test "${with_subsys_dir+set}" = set; then
16244 withval="$with_subsys_dir"
16246 if test "x$withval" != "xno" ; then
16257 # ------------------------------------
16258 # Where to start assigning ports
16259 # ------------------------------------
16262 # Check whether --with-baseport or --without-baseport was given.
16263 if test "${with_baseport+set}" = set; then
16264 withval="$with_baseport"
16266 if test "x$withval" != "xno" ; then
16274 dir_port=`expr $baseport`
16275 fd_port=`expr $baseport + 1`
16276 sd_port=`expr $fd_port + 1`
16283 # ------------------------------------------
16284 # Generate passwords
16285 # ------------------------------------------
16288 # Check whether --with-dir-password or --without-dir-password was given.
16289 if test "${with_dir_password+set}" = set; then
16290 withval="$with_dir_password"
16292 if test "x$withval" != "xno" ; then
16293 dir_password=$withval
16299 if test "x$dir_password" = "x" ; then
16300 if test "x$OPENSSL" = "xnone" ; then
16301 key=`autoconf/randpass 33`
16303 key=`openssl rand -base64 33`
16310 # Check whether --with-fd-password or --without-fd-password was given.
16311 if test "${with_fd_password+set}" = set; then
16312 withval="$with_fd_password"
16314 if test "x$withval" != "xno" ; then
16315 fd_password=$withval
16321 if test "x$fd_password" = "x" ; then
16322 if test "x$OPENSSL" = "xnone" ; then
16323 key=`autoconf/randpass 37`
16325 key=`openssl rand -base64 33`
16332 # Check whether --with-sd-password or --without-sd-password was given.
16333 if test "${with_sd_password+set}" = set; then
16334 withval="$with_sd_password"
16336 if test "x$withval" != "xno" ; then
16337 sd_password=$withval
16343 if test "x$sd_password" = "x" ; then
16344 if test "x$OPENSSL" = "xnone" ; then
16345 key=`autoconf/randpass 41`
16347 key=`openssl rand -base64 33`
16354 # Check whether --with-mon-dir-password or --without-mon-dir-password was given.
16355 if test "${with_mon_dir_password+set}" = set; then
16356 withval="$with_mon_dir_password"
16358 if test "x$withval" != "xno" ; then
16359 mon_dir_password=$withval
16365 if test "x$mon_dir_password" = "x" ; then
16366 if test "x$OPENSSL" = "xnone" ; then
16367 key=`autoconf/randpass 33`
16369 key=`openssl rand -base64 33`
16371 mon_dir_password=$key
16376 # Check whether --with-mon-fd-password or --without-mon-fd-password was given.
16377 if test "${with_mon_fd_password+set}" = set; then
16378 withval="$with_mon_fd_password"
16380 if test "x$withval" != "xno" ; then
16381 mon_fd_password=$withval
16387 if test "x$mon_fd_password" = "x" ; then
16388 if test "x$OPENSSL" = "xnone" ; then
16389 key=`autoconf/randpass 37`
16391 key=`openssl rand -base64 33`
16393 mon_fd_password=$key
16398 # Check whether --with-mon-sd-password or --without-mon-sd-password was given.
16399 if test "${with_mon_sd_password+set}" = set; then
16400 withval="$with_mon_sd_password"
16402 if test "x$withval" != "xno" ; then
16403 mon_sd_password=$withval
16409 if test "x$mon_sd_password" = "x" ; then
16410 if test "x$OPENSSL" = "xnone" ; then
16411 key=`autoconf/randpass 41`
16413 key=`openssl rand -base64 33`
16415 mon_sd_password=$key
16427 # Handle users and groups for each daemon
16431 # Check whether --with-dir_user or --without-dir_user was given.
16432 if test "${with_dir_user+set}" = set; then
16433 withval="$with_dir_user"
16435 if test "x$withval" != "x" ; then
16444 # Check whether --with-dir_group or --without-dir_group was given.
16445 if test "${with_dir_group+set}" = set; then
16446 withval="$with_dir_group"
16448 if test "x$withval" != "x" ; then
16457 # Check whether --with-sd_user or --without-sd_user was given.
16458 if test "${with_sd_user+set}" = set; then
16459 withval="$with_sd_user"
16461 if test "x$withval" != "x" ; then
16470 # Check whether --with-sd_group or --without-sd_group was given.
16471 if test "${with_sd_group+set}" = set; then
16472 withval="$with_sd_group"
16474 if test "x$withval" != "x" ; then
16483 # Check whether --with-fd_user or --without-fd_user was given.
16484 if test "${with_fd_user+set}" = set; then
16485 withval="$with_fd_user"
16487 if test "x$withval" != "x" ; then
16496 # Check whether --with-fd_group or --without-fd_group was given.
16497 if test "${with_fd_group+set}" = set; then
16498 withval="$with_fd_group"
16500 if test "x$withval" != "x" ; then
16518 # allow setting default executable permissions
16522 # Check whether --with-sbin-perm or --without-sbin-perm was given.
16523 if test "${with_sbin_perm+set}" = set; then
16524 withval="$with_sbin_perm"
16526 if test "x$withval" != "x" ; then
16535 # ------------------------------------------------
16536 # Bacula check for various SQL database engines
16537 # ------------------------------------------------
16540 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
16541 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
16543 # Check whether --with-postgresql or --without-postgresql was given.
16544 if test "${with_postgresql+set}" = set; then
16545 withval="$with_postgresql"
16547 if test "$withval" != "no"; then
16548 if test "$db_found" = "yes"; then
16549 echo "$as_me:$LINENO: result: error" >&5
16550 echo "${ECHO_T}error" >&6
16551 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
16552 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
16553 { (exit 1); exit 1; }; };
16555 if test "$withval" = "yes"; then
16556 PG_CONFIG=`which pg_config`
16557 if test -n "$PG_CONFIG";then
16558 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
16559 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
16560 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
16561 elif test -f /usr/local/include/libpq-fe.h; then
16562 POSTGRESQL_INCDIR=/usr/local/include
16563 POSTGRESQL_LIBDIR=/usr/local/lib
16564 POSTGRESQL_BINDIR=/usr/local/bin
16565 elif test -f /usr/include/libpq-fe.h; then
16566 POSTGRESQL_INCDIR=/usr/include
16567 POSTGRESQL_LIBDIR=/usr/lib
16568 POSTGRESQL_BINDIR=/usr/bin
16569 elif test -f /usr/include/pgsql/libpq-fe.h; then
16570 POSTGRESQL_INCDIR=/usr/include/pgsql
16571 POSTGRESQL_LIBDIR=/usr/lib/pgsql
16572 POSTGRESQL_BINDIR=/usr/bin
16573 elif test -f /usr/include/postgresql/libpq-fe.h; then
16574 POSTGRESQL_INCDIR=/usr/include/postgresql
16575 POSTGRESQL_LIBDIR=/usr/lib/postgresql
16576 POSTGRESQL_BINDIR=/usr/bin
16578 echo "$as_me:$LINENO: result: no" >&5
16579 echo "${ECHO_T}no" >&6
16580 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
16581 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
16582 { (exit 1); exit 1; }; }
16584 elif test -f $withval/include/libpq-fe.h; then
16585 POSTGRESQL_INCDIR=$withval/include
16586 POSTGRESQL_LIBDIR=$withval/lib
16587 POSTGRESQL_BINDIR=$withval/bin
16588 elif test -f $withval/include/postgresql/libpq-fe.h; then
16589 POSTGRESQL_INCDIR=$withval/include/postgresql
16590 POSTGRESQL_LIBDIR=$withval/lib
16591 POSTGRESQL_BINDIR=$withval/bin
16593 echo "$as_me:$LINENO: result: no" >&5
16594 echo "${ECHO_T}no" >&6
16595 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
16596 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
16597 { (exit 1); exit 1; }; }
16599 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
16600 echo "$as_me:$LINENO: checking for crypt" >&5
16601 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
16602 if test "${ac_cv_func_crypt+set}" = set; then
16603 echo $ECHO_N "(cached) $ECHO_C" >&6
16605 cat >conftest.$ac_ext <<_ACEOF
16608 cat confdefs.h >>conftest.$ac_ext
16609 cat >>conftest.$ac_ext <<_ACEOF
16610 /* end confdefs.h. */
16611 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
16612 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16613 #define crypt innocuous_crypt
16615 /* System header to define __stub macros and hopefully few prototypes,
16616 which can conflict with char crypt (); below.
16617 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16618 <limits.h> exists even on freestanding compilers. */
16621 # include <limits.h>
16623 # include <assert.h>
16628 /* Override any gcc2 internal prototype to avoid an error. */
16633 /* We use char because int might match the return type of a gcc2
16634 builtin and then its argument prototype would still apply. */
16636 /* The GNU C library defines this for functions which it implements
16637 to always fail with ENOSYS. Some functions are actually named
16638 something starting with __ and the normal name is an alias. */
16639 #if defined (__stub_crypt) || defined (__stub___crypt)
16642 char (*f) () = crypt;
16656 rm -f conftest.$ac_objext conftest$ac_exeext
16657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16658 (eval $ac_link) 2>conftest.er1
16660 grep -v '^ *+' conftest.er1 >conftest.err
16662 cat conftest.err >&5
16663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16664 (exit $ac_status); } &&
16665 { ac_try='test -z "$ac_c_werror_flag"
16666 || test ! -s conftest.err'
16667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16668 (eval $ac_try) 2>&5
16670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16671 (exit $ac_status); }; } &&
16672 { ac_try='test -s conftest$ac_exeext'
16673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16674 (eval $ac_try) 2>&5
16676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16677 (exit $ac_status); }; }; then
16678 ac_cv_func_crypt=yes
16680 echo "$as_me: failed program was:" >&5
16681 sed 's/^/| /' conftest.$ac_ext >&5
16683 ac_cv_func_crypt=no
16685 rm -f conftest.err conftest.$ac_objext \
16686 conftest$ac_exeext conftest.$ac_ext
16688 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
16689 echo "${ECHO_T}$ac_cv_func_crypt" >&6
16690 if test $ac_cv_func_crypt = yes; then
16693 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
16694 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
16695 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
16696 echo $ECHO_N "(cached) $ECHO_C" >&6
16698 ac_check_lib_save_LIBS=$LIBS
16699 LIBS="-lcrypt $LIBS"
16700 cat >conftest.$ac_ext <<_ACEOF
16703 cat confdefs.h >>conftest.$ac_ext
16704 cat >>conftest.$ac_ext <<_ACEOF
16705 /* end confdefs.h. */
16707 /* Override any gcc2 internal prototype to avoid an error. */
16711 /* We use char because int might match the return type of a gcc2
16712 builtin and then its argument prototype would still apply. */
16722 rm -f conftest.$ac_objext conftest$ac_exeext
16723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16724 (eval $ac_link) 2>conftest.er1
16726 grep -v '^ *+' conftest.er1 >conftest.err
16728 cat conftest.err >&5
16729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16730 (exit $ac_status); } &&
16731 { ac_try='test -z "$ac_c_werror_flag"
16732 || test ! -s conftest.err'
16733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16734 (eval $ac_try) 2>&5
16736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16737 (exit $ac_status); }; } &&
16738 { ac_try='test -s conftest$ac_exeext'
16739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16740 (eval $ac_try) 2>&5
16742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16743 (exit $ac_status); }; }; then
16744 ac_cv_lib_crypt_crypt=yes
16746 echo "$as_me: failed program was:" >&5
16747 sed 's/^/| /' conftest.$ac_ext >&5
16749 ac_cv_lib_crypt_crypt=no
16751 rm -f conftest.err conftest.$ac_objext \
16752 conftest$ac_exeext conftest.$ac_ext
16753 LIBS=$ac_check_lib_save_LIBS
16755 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
16756 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
16757 if test $ac_cv_lib_crypt_crypt = yes; then
16758 POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
16763 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
16764 SQL_LFLAGS=$POSTGRESQL_LFLAGS
16765 SQL_BINDIR=$POSTGRESQL_BINDIR
16766 cat >>confdefs.h <<\_ACEOF
16767 #define HAVE_POSTGRESQL 1
16770 echo "$as_me:$LINENO: result: yes" >&5
16771 echo "${ECHO_T}yes" >&6
16773 support_postgresql=yes
16777 echo "$as_me:$LINENO: result: no" >&5
16778 echo "${ECHO_T}no" >&6
16783 echo "$as_me:$LINENO: result: no" >&5
16784 echo "${ECHO_T}no" >&6
16795 echo "$as_me:$LINENO: checking for MySQL support" >&5
16796 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
16798 # Check whether --with-mysql or --without-mysql was given.
16799 if test "${with_mysql+set}" = set; then
16800 withval="$with_mysql"
16802 if test "$withval" != "no"; then
16803 if test "$withval" = "yes"; then
16804 if test -f /usr/local/mysql/include/mysql/mysql.h; then
16805 MYSQL_INCDIR=/usr/local/mysql/include/mysql
16806 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
16807 MYSQL_BINDIR=/usr/local/mysql/bin
16808 elif test -f /usr/include/mysql/mysql.h; then
16809 MYSQL_INCDIR=/usr/include/mysql
16810 MYSQL_LIBDIR=/usr/lib/mysql
16811 MYSQL_BINDIR=/usr/bin
16812 elif test -f /usr/include/mysql.h; then
16813 MYSQL_INCDIR=/usr/include
16814 MYSQL_LIBDIR=/usr/lib
16815 MYSQL_BINDIR=/usr/bin
16816 elif test -f /usr/local/include/mysql/mysql.h; then
16817 MYSQL_INCDIR=/usr/local/include/mysql
16818 MYSQL_LIBDIR=/usr/local/lib/mysql
16819 MYSQL_BINDIR=/usr/local/bin
16820 elif test -f /usr/local/include/mysql.h; then
16821 MYSQL_INCDIR=/usr/local/include
16822 MYSQL_LIBDIR=/usr/local/lib
16823 MYSQL_BINDIR=/usr/local/bin
16825 echo "$as_me:$LINENO: result: no" >&5
16826 echo "${ECHO_T}no" >&6
16827 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
16828 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
16829 { (exit 1); exit 1; }; }
16832 if test -f $withval/include/mysql/mysql.h; then
16833 MYSQL_INCDIR=$withval/include/mysql
16834 MYSQL_LIBDIR=$withval/lib/mysql
16835 MYSQL_BINDIR=$withval/bin
16836 elif test -f $withval/include/mysql.h; then
16837 MYSQL_INCDIR=$withval/include
16838 MYSQL_LIBDIR=$withval/lib
16839 MYSQL_BINDIR=$withval/bin
16841 echo "$as_me:$LINENO: result: no" >&5
16842 echo "${ECHO_T}no" >&6
16843 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
16844 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
16845 { (exit 1); exit 1; }; }
16848 SQL_INCLUDE=-I$MYSQL_INCDIR
16849 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
16850 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
16851 cat >>confdefs.h <<\_ACEOF
16852 #define HAVE_THREAD_SAFE_MYSQL 1
16856 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
16858 SQL_BINDIR=$MYSQL_BINDIR
16860 cat >>confdefs.h <<\_ACEOF
16861 #define HAVE_MYSQL 1
16864 echo "$as_me:$LINENO: result: yes" >&5
16865 echo "${ECHO_T}yes" >&6
16872 echo "$as_me:$LINENO: result: no" >&5
16873 echo "${ECHO_T}no" >&6
16880 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
16881 if test "${with_embedded_mysql+set}" = set; then
16882 withval="$with_embedded_mysql"
16884 if test "$withval" != "no"; then
16885 if test "$withval" = "yes"; then
16886 if test -f /usr/local/mysql/include/mysql/mysql.h; then
16887 MYSQL_INCDIR=/usr/local/mysql/include/mysql
16888 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
16889 MYSQL_BINDIR=/usr/local/mysql/bin
16890 elif test -f /usr/include/mysql/mysql.h; then
16891 MYSQL_INCDIR=/usr/include/mysql
16892 MYSQL_LIBDIR=/usr/lib/mysql
16893 MYSQL_BINDIR=/usr/bin
16894 elif test -f /usr/include/mysql.h; then
16895 MYSQL_INCDIR=/usr/include
16896 MYSQL_LIBDIR=/usr/lib
16897 MYSQL_BINDIR=/usr/bin
16898 elif test -f /usr/local/include/mysql/mysql.h; then
16899 MYSQL_INCDIR=/usr/local/include/mysql
16900 MYSQL_LIBDIR=/usr/local/lib/mysql
16901 MYSQL_BINDIR=/usr/local/bin
16902 elif test -f /usr/local/include/mysql.h; then
16903 MYSQL_INCDIR=/usr/local/include
16904 MYSQL_LIBDIR=/usr/local/lib
16905 MYSQL_BINDIR=/usr/local/bin
16907 echo "$as_me:$LINENO: result: no" >&5
16908 echo "${ECHO_T}no" >&6
16909 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
16910 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
16911 { (exit 1); exit 1; }; }
16914 if test -f $withval/include/mysql/mysql.h; then
16915 MYSQL_INCDIR=$withval/include/mysql
16916 MYSQL_LIBDIR=$withval/lib/mysql
16917 MYSQL_BINDIR=$withval/bin
16918 elif test -f $withval/include/mysql.h; then
16919 MYSQL_INCDIR=$withval/include
16920 MYSQL_LIBDIR=$withval/lib
16921 MYSQL_BINDIR=$withval/bin
16923 echo "$as_me:$LINENO: result: no" >&5
16924 echo "${ECHO_T}no" >&6
16925 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
16926 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
16927 { (exit 1); exit 1; }; }
16930 SQL_INCLUDE=-I$MYSQL_INCDIR
16931 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
16932 SQL_BINDIR=$MYSQL_BINDIR
16934 cat >>confdefs.h <<\_ACEOF
16935 #define HAVE_MYSQL 1
16938 cat >>confdefs.h <<\_ACEOF
16939 #define HAVE_EMBEDDED_MYSQL 1
16942 echo "$as_me:$LINENO: result: yes" >&5
16943 echo "${ECHO_T}yes" >&6
16950 echo "$as_me:$LINENO: result: no" >&5
16951 echo "${ECHO_T}no" >&6
16966 echo "$as_me:$LINENO: checking for SQLite3 support" >&5
16967 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6
16969 # Check whether --with-sqlite3 or --without-sqlite3 was given.
16970 if test "${with_sqlite3+set}" = set; then
16971 withval="$with_sqlite3"
16973 if test "$withval" != "no"; then
16974 if test "$withval" = "yes"; then
16975 if test -f /usr/local/include/sqlite3.h; then
16976 SQLITE_INCDIR=/usr/local/include
16977 SQLITE_LIBDIR=/usr/local/lib
16978 SQLITE_BINDIR=/usr/local/bin
16979 elif test -f /usr/include/sqlite3.h; then
16980 SQLITE_INCDIR=/usr/include
16981 SQLITE_LIBDIR=/usr/lib
16982 SQLITE_BINDIR=/usr/bin
16983 elif test -f $prefix/include/sqlite3.h; then
16984 SQLITE_INCDIR=$prefix/include
16985 SQLITE_LIBDIR=$prefix/lib
16986 SQLITE_BINDIR=$prefix/bin
16988 echo "$as_me:$LINENO: result: no" >&5
16989 echo "${ECHO_T}no" >&6
16990 { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
16991 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
16992 { (exit 1); exit 1; }; }
16995 if test -f $withval/sqlite3.h; then
16996 SQLITE_INCDIR=$withval
16997 SQLITE_LIBDIR=$withval
16998 SQLITE_BINDIR=$withval
16999 elif test -f $withval/include/sqlite3.h; then
17000 SQLITE_INCDIR=$withval/include
17001 SQLITE_LIBDIR=$withval/lib
17002 SQLITE_BINDIR=$withval/bin
17004 echo "$as_me:$LINENO: result: no" >&5
17005 echo "${ECHO_T}no" >&6
17006 { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
17007 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
17008 { (exit 1); exit 1; }; }
17011 SQL_INCLUDE=-I$SQLITE_INCDIR
17012 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
17013 SQL_BINDIR=$SQLITE_BINDIR
17015 cat >>confdefs.h <<\_ACEOF
17016 #define HAVE_SQLITE3 1
17019 echo "$as_me:$LINENO: result: yes" >&5
17020 echo "${ECHO_T}yes" >&6
17022 support_sqlite3=yes
17027 echo "$as_me:$LINENO: result: no" >&5
17028 echo "${ECHO_T}no" >&6
17033 echo "$as_me:$LINENO: result: no" >&5
17034 echo "${ECHO_T}no" >&6
17045 echo "$as_me:$LINENO: checking for SQLite support" >&5
17046 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
17048 # Check whether --with-sqlite or --without-sqlite was given.
17049 if test "${with_sqlite+set}" = set; then
17050 withval="$with_sqlite"
17052 if test "$withval" != "no"; then
17053 if test "$withval" = "yes"; then
17054 if test -f /usr/local/include/sqlite.h; then
17055 SQLITE_INCDIR=/usr/local/include
17056 SQLITE_LIBDIR=/usr/local/lib
17057 SQLITE_BINDIR=/usr/local/bin
17058 elif test -f /usr/include/sqlite.h; then
17059 SQLITE_INCDIR=/usr/include
17060 SQLITE_LIBDIR=/usr/lib
17061 SQLITE_BINDIR=/usr/bin
17062 elif test -f $prefix/include/sqlite.h; then
17063 SQLITE_INCDIR=$prefix/include
17064 SQLITE_LIBDIR=$prefix/lib
17065 SQLITE_BINDIR=$prefix/bin
17067 echo "$as_me:$LINENO: result: no" >&5
17068 echo "${ECHO_T}no" >&6
17069 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
17070 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
17071 { (exit 1); exit 1; }; }
17074 if test -f $withval/sqlite.h; then
17075 SQLITE_INCDIR=$withval
17076 SQLITE_LIBDIR=$withval
17077 SQLITE_BINDIR=$withval
17078 elif test -f $withval/include/sqlite.h; then
17079 SQLITE_INCDIR=$withval/include
17080 SQLITE_LIBDIR=$withval/lib
17081 SQLITE_BINDIR=$withval/bin
17083 echo "$as_me:$LINENO: result: no" >&5
17084 echo "${ECHO_T}no" >&6
17085 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
17086 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
17087 { (exit 1); exit 1; }; }
17090 SQL_INCLUDE=-I$SQLITE_INCDIR
17091 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
17092 SQL_BINDIR=$SQLITE_BINDIR
17094 cat >>confdefs.h <<\_ACEOF
17095 #define HAVE_SQLITE 1
17098 echo "$as_me:$LINENO: result: yes" >&5
17099 echo "${ECHO_T}yes" >&6
17106 echo "$as_me:$LINENO: result: no" >&5
17107 echo "${ECHO_T}no" >&6
17112 echo "$as_me:$LINENO: result: no" >&5
17113 echo "${ECHO_T}no" >&6
17125 cat >>confdefs.h <<\_ACEOF
17126 #define PROTOTYPES 1
17130 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
17131 if test -z "$CCOPTS"; then
17132 CCOPTS='-g -O2 -Wall'
17140 largefile_support="no"
17142 # Check whether --enable-largefile or --disable-largefile was given.
17143 if test "${enable_largefile+set}" = set; then
17144 enableval="$enable_largefile"
17147 if test "$enable_largefile" != no; then
17148 if test -n "$ac_tool_prefix"; then
17149 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
17150 set dummy ${ac_tool_prefix}getconf; ac_word=$2
17151 echo "$as_me:$LINENO: checking for $ac_word" >&5
17152 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17153 if test "${ac_cv_prog_GETCONF+set}" = set; then
17154 echo $ECHO_N "(cached) $ECHO_C" >&6
17156 if test -n "$GETCONF"; then
17157 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
17159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17160 for as_dir in $PATH
17163 test -z "$as_dir" && as_dir=.
17164 for ac_exec_ext in '' $ac_executable_extensions; do
17165 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17166 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
17167 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17175 GETCONF=$ac_cv_prog_GETCONF
17176 if test -n "$GETCONF"; then
17177 echo "$as_me:$LINENO: result: $GETCONF" >&5
17178 echo "${ECHO_T}$GETCONF" >&6
17180 echo "$as_me:$LINENO: result: no" >&5
17181 echo "${ECHO_T}no" >&6
17185 if test -z "$ac_cv_prog_GETCONF"; then
17186 ac_ct_GETCONF=$GETCONF
17187 # Extract the first word of "getconf", so it can be a program name with args.
17188 set dummy getconf; ac_word=$2
17189 echo "$as_me:$LINENO: checking for $ac_word" >&5
17190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17191 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
17192 echo $ECHO_N "(cached) $ECHO_C" >&6
17194 if test -n "$ac_ct_GETCONF"; then
17195 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
17197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17198 for as_dir in $PATH
17201 test -z "$as_dir" && as_dir=.
17202 for ac_exec_ext in '' $ac_executable_extensions; do
17203 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17204 ac_cv_prog_ac_ct_GETCONF="getconf"
17205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17213 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
17214 if test -n "$ac_ct_GETCONF"; then
17215 echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
17216 echo "${ECHO_T}$ac_ct_GETCONF" >&6
17218 echo "$as_me:$LINENO: result: no" >&5
17219 echo "${ECHO_T}no" >&6
17222 GETCONF=$ac_ct_GETCONF
17224 GETCONF="$ac_cv_prog_GETCONF"
17227 echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
17228 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
17229 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
17230 echo $ECHO_N "(cached) $ECHO_C" >&6
17232 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
17233 ac_cv_sys_largefile_CFLAGS=no
17235 # IRIX 6.2 and later require cc -n32.
17236 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
17237 if test "$GCC" != yes; then
17238 ac_cv_sys_largefile_CFLAGS=-n32
17241 CC="$CC $ac_cv_sys_largefile_CFLAGS"
17242 cat >conftest.$ac_ext <<_ACEOF
17245 cat confdefs.h >>conftest.$ac_ext
17246 cat >>conftest.$ac_ext <<_ACEOF
17247 /* end confdefs.h. */
17257 rm -f conftest.$ac_objext conftest$ac_exeext
17258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17259 (eval $ac_link) 2>conftest.er1
17261 grep -v '^ *+' conftest.er1 >conftest.err
17263 cat conftest.err >&5
17264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17265 (exit $ac_status); } &&
17266 { ac_try='test -z "$ac_c_werror_flag"
17267 || test ! -s conftest.err'
17268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17269 (eval $ac_try) 2>&5
17271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17272 (exit $ac_status); }; } &&
17273 { ac_try='test -s conftest$ac_exeext'
17274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17275 (eval $ac_try) 2>&5
17277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17278 (exit $ac_status); }; }; then
17281 echo "$as_me: failed program was:" >&5
17282 sed 's/^/| /' conftest.$ac_ext >&5
17284 ac_cv_sys_largefile_CFLAGS=no
17286 rm -f conftest.err conftest.$ac_objext \
17287 conftest$ac_exeext conftest.$ac_ext
17292 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
17293 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
17294 echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
17295 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
17296 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
17297 echo $ECHO_N "(cached) $ECHO_C" >&6
17299 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
17300 ac_cv_sys_largefile_LDFLAGS=no
17304 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
17305 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
17306 echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
17307 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
17308 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
17309 echo $ECHO_N "(cached) $ECHO_C" >&6
17311 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
17312 ac_cv_sys_largefile_LIBS=no
17316 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
17317 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
17319 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17322 -D_FILE_OFFSET_BITS=*) ;;
17323 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
17324 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
17329 case "$CPPFLAGS" in
17330 '') CPPFLAGS="$ac_flag" ;;
17331 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
17339 '') CFLAGS="$ac_flag" ;;
17340 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
17345 case "$ac_cv_sys_largefile_LDFLAGS" in
17349 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
17350 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
17353 case "$ac_cv_sys_largefile_LIBS" in
17357 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
17358 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
17361 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
17362 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
17363 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
17364 echo $ECHO_N "(cached) $ECHO_C" >&6
17366 ac_cv_sys_file_offset_bits=no
17367 ac_cv_sys_file_offset_bits=64
17368 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17370 -D_FILE_OFFSET_BITS)
17371 ac_cv_sys_file_offset_bits=1 ;;
17372 -D_FILE_OFFSET_BITS=*)
17373 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
17378 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
17379 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
17380 if test "$ac_cv_sys_file_offset_bits" != no; then
17382 cat >>confdefs.h <<_ACEOF
17383 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
17387 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
17388 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
17389 if test "${ac_cv_sys_largefile_source+set}" = set; then
17390 echo $ECHO_N "(cached) $ECHO_C" >&6
17392 ac_cv_sys_largefile_source=no
17393 ac_cv_sys_largefile_source=1
17394 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17396 -D_LARGEFILE_SOURCE)
17397 ac_cv_sys_largefile_source=1 ;;
17398 -D_LARGEFILE_SOURCE=*)
17399 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
17404 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
17405 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
17406 if test "$ac_cv_sys_largefile_source" != no; then
17408 cat >>confdefs.h <<_ACEOF
17409 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17413 echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
17414 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
17415 if test "${ac_cv_sys_large_files+set}" = set; then
17416 echo $ECHO_N "(cached) $ECHO_C" >&6
17418 ac_cv_sys_large_files=no
17419 ac_cv_sys_large_files=1
17420 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17423 ac_cv_sys_large_files=1 ;;
17425 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
17430 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
17431 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
17432 if test "$ac_cv_sys_large_files" != no; then
17434 cat >>confdefs.h <<_ACEOF
17435 #define _LARGE_FILES $ac_cv_sys_large_files
17443 echo "$as_me:$LINENO: checking for X" >&5
17444 echo $ECHO_N "checking for X... $ECHO_C" >&6
17447 # Check whether --with-x or --without-x was given.
17448 if test "${with_x+set}" = set; then
17452 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
17453 if test "x$with_x" = xno; then
17454 # The user explicitly disabled X.
17457 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
17458 # Both variables are already set.
17461 if test "${ac_cv_have_x+set}" = set; then
17462 echo $ECHO_N "(cached) $ECHO_C" >&6
17464 # One or both of the vars are not set, and there is no cached value.
17465 ac_x_includes=no ac_x_libraries=no
17466 rm -fr conftest.dir
17467 if mkdir conftest.dir; then
17469 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
17470 cat >Imakefile <<'_ACEOF'
17472 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
17474 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
17475 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
17476 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
17477 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
17478 for ac_extension in a so sl; do
17479 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
17480 test -f $ac_im_libdir/libX11.$ac_extension; then
17481 ac_im_usrlibdir=$ac_im_libdir; break
17484 # Screen out bogus values from the imake configuration. They are
17485 # bogus both because they are the default anyway, and because
17486 # using them would break gcc on systems where it needs fixed includes.
17487 case $ac_im_incroot in
17489 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
17491 case $ac_im_usrlibdir in
17492 /usr/lib | /lib) ;;
17493 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
17497 rm -fr conftest.dir
17500 # Standard set of common directories for X headers.
17501 # Check X11 before X11Rn because it is often a symlink to the current release.
17513 /usr/local/X11/include
17514 /usr/local/X11R6/include
17515 /usr/local/X11R5/include
17516 /usr/local/X11R4/include
17518 /usr/local/include/X11
17519 /usr/local/include/X11R6
17520 /usr/local/include/X11R5
17521 /usr/local/include/X11R4
17525 /usr/XFree86/include/X11
17529 /usr/unsupported/include
17530 /usr/athena/include
17531 /usr/local/x11r5/include
17532 /usr/lpp/Xamples/include
17534 /usr/openwin/include
17535 /usr/openwin/share/include'
17537 if test "$ac_x_includes" = no; then
17538 # Guess where to find include files, by looking for Xlib.h.
17539 # First, try using that file with no special directory specified.
17540 cat >conftest.$ac_ext <<_ACEOF
17543 cat confdefs.h >>conftest.$ac_ext
17544 cat >>conftest.$ac_ext <<_ACEOF
17545 /* end confdefs.h. */
17546 #include <X11/Xlib.h>
17548 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17549 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17551 grep -v '^ *+' conftest.er1 >conftest.err
17553 cat conftest.err >&5
17554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17555 (exit $ac_status); } >/dev/null; then
17556 if test -s conftest.err; then
17557 ac_cpp_err=$ac_c_preproc_warn_flag
17558 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17565 if test -z "$ac_cpp_err"; then
17566 # We can compile using X headers with no special include directory.
17569 echo "$as_me: failed program was:" >&5
17570 sed 's/^/| /' conftest.$ac_ext >&5
17572 for ac_dir in $ac_x_header_dirs; do
17573 if test -r "$ac_dir/X11/Xlib.h"; then
17574 ac_x_includes=$ac_dir
17579 rm -f conftest.err conftest.$ac_ext
17580 fi # $ac_x_includes = no
17582 if test "$ac_x_libraries" = no; then
17583 # Check for the libraries.
17584 # See if we find them without any special options.
17585 # Don't add to $LIBS permanently.
17588 cat >conftest.$ac_ext <<_ACEOF
17591 cat confdefs.h >>conftest.$ac_ext
17592 cat >>conftest.$ac_ext <<_ACEOF
17593 /* end confdefs.h. */
17594 #include <X11/Xlib.h>
17603 rm -f conftest.$ac_objext conftest$ac_exeext
17604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17605 (eval $ac_link) 2>conftest.er1
17607 grep -v '^ *+' conftest.er1 >conftest.err
17609 cat conftest.err >&5
17610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17611 (exit $ac_status); } &&
17612 { ac_try='test -z "$ac_c_werror_flag"
17613 || test ! -s conftest.err'
17614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17615 (eval $ac_try) 2>&5
17617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17618 (exit $ac_status); }; } &&
17619 { ac_try='test -s conftest$ac_exeext'
17620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17621 (eval $ac_try) 2>&5
17623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17624 (exit $ac_status); }; }; then
17626 # We can link X programs with no special library path.
17629 echo "$as_me: failed program was:" >&5
17630 sed 's/^/| /' conftest.$ac_ext >&5
17633 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
17635 # Don't even attempt the hair of trying to link an X program!
17636 for ac_extension in a so sl; do
17637 if test -r $ac_dir/libXt.$ac_extension; then
17638 ac_x_libraries=$ac_dir
17644 rm -f conftest.err conftest.$ac_objext \
17645 conftest$ac_exeext conftest.$ac_ext
17646 fi # $ac_x_libraries = no
17648 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
17649 # Didn't find X anywhere. Cache the known absence of X.
17650 ac_cv_have_x="have_x=no"
17652 # Record where we found X for the cache.
17653 ac_cv_have_x="have_x=yes \
17654 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
17659 eval "$ac_cv_have_x"
17662 if test "$have_x" != yes; then
17663 echo "$as_me:$LINENO: result: $have_x" >&5
17664 echo "${ECHO_T}$have_x" >&6
17667 # If each of the values was on the command line, it overrides each guess.
17668 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
17669 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
17670 # Update the cache value to reflect the command line values.
17671 ac_cv_have_x="have_x=yes \
17672 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
17673 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
17674 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
17677 if test "$no_x" = yes; then
17678 # Not all programs may use this symbol, but it does not hurt to define it.
17680 cat >>confdefs.h <<\_ACEOF
17681 #define X_DISPLAY_MISSING 1
17684 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
17686 if test -n "$x_includes"; then
17687 X_CFLAGS="$X_CFLAGS -I$x_includes"
17690 # It would also be nice to do this for all -L options, not just this one.
17691 if test -n "$x_libraries"; then
17692 X_LIBS="$X_LIBS -L$x_libraries"
17693 # For Solaris; some versions of Sun CC require a space after -R and
17694 # others require no space. Words are not sufficient . . . .
17695 case `(uname -sr) 2>/dev/null` in
17697 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
17698 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
17699 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
17700 cat >conftest.$ac_ext <<_ACEOF
17703 cat confdefs.h >>conftest.$ac_ext
17704 cat >>conftest.$ac_ext <<_ACEOF
17705 /* end confdefs.h. */
17715 rm -f conftest.$ac_objext conftest$ac_exeext
17716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17717 (eval $ac_link) 2>conftest.er1
17719 grep -v '^ *+' conftest.er1 >conftest.err
17721 cat conftest.err >&5
17722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17723 (exit $ac_status); } &&
17724 { ac_try='test -z "$ac_c_werror_flag"
17725 || test ! -s conftest.err'
17726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17727 (eval $ac_try) 2>&5
17729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17730 (exit $ac_status); }; } &&
17731 { ac_try='test -s conftest$ac_exeext'
17732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17733 (eval $ac_try) 2>&5
17735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17736 (exit $ac_status); }; }; then
17739 echo "$as_me: failed program was:" >&5
17740 sed 's/^/| /' conftest.$ac_ext >&5
17744 rm -f conftest.err conftest.$ac_objext \
17745 conftest$ac_exeext conftest.$ac_ext
17746 if test $ac_R_nospace = yes; then
17747 echo "$as_me:$LINENO: result: no" >&5
17748 echo "${ECHO_T}no" >&6
17749 X_LIBS="$X_LIBS -R$x_libraries"
17751 LIBS="$ac_xsave_LIBS -R $x_libraries"
17752 cat >conftest.$ac_ext <<_ACEOF
17755 cat confdefs.h >>conftest.$ac_ext
17756 cat >>conftest.$ac_ext <<_ACEOF
17757 /* end confdefs.h. */
17767 rm -f conftest.$ac_objext conftest$ac_exeext
17768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17769 (eval $ac_link) 2>conftest.er1
17771 grep -v '^ *+' conftest.er1 >conftest.err
17773 cat conftest.err >&5
17774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17775 (exit $ac_status); } &&
17776 { ac_try='test -z "$ac_c_werror_flag"
17777 || test ! -s conftest.err'
17778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17779 (eval $ac_try) 2>&5
17781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17782 (exit $ac_status); }; } &&
17783 { ac_try='test -s conftest$ac_exeext'
17784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17785 (eval $ac_try) 2>&5
17787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17788 (exit $ac_status); }; }; then
17791 echo "$as_me: failed program was:" >&5
17792 sed 's/^/| /' conftest.$ac_ext >&5
17796 rm -f conftest.err conftest.$ac_objext \
17797 conftest$ac_exeext conftest.$ac_ext
17798 if test $ac_R_space = yes; then
17799 echo "$as_me:$LINENO: result: yes" >&5
17800 echo "${ECHO_T}yes" >&6
17801 X_LIBS="$X_LIBS -R $x_libraries"
17803 echo "$as_me:$LINENO: result: neither works" >&5
17804 echo "${ECHO_T}neither works" >&6
17807 LIBS=$ac_xsave_LIBS
17811 # Check for system-dependent libraries X programs must link with.
17812 # Do this before checking for the system-independent R6 libraries
17813 # (-lICE), since we may need -lsocket or whatever for X linking.
17815 if test "$ISC" = yes; then
17816 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
17818 # Martyn Johnson says this is needed for Ultrix, if the X
17819 # libraries were built with DECnet support. And Karl Berry says
17820 # the Alpha needs dnet_stub (dnet does not exist).
17821 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
17822 cat >conftest.$ac_ext <<_ACEOF
17825 cat confdefs.h >>conftest.$ac_ext
17826 cat >>conftest.$ac_ext <<_ACEOF
17827 /* end confdefs.h. */
17829 /* Override any gcc2 internal prototype to avoid an error. */
17833 /* We use char because int might match the return type of a gcc2
17834 builtin and then its argument prototype would still apply. */
17835 char XOpenDisplay ();
17844 rm -f conftest.$ac_objext conftest$ac_exeext
17845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17846 (eval $ac_link) 2>conftest.er1
17848 grep -v '^ *+' conftest.er1 >conftest.err
17850 cat conftest.err >&5
17851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17852 (exit $ac_status); } &&
17853 { ac_try='test -z "$ac_c_werror_flag"
17854 || test ! -s conftest.err'
17855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17856 (eval $ac_try) 2>&5
17858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17859 (exit $ac_status); }; } &&
17860 { ac_try='test -s conftest$ac_exeext'
17861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17862 (eval $ac_try) 2>&5
17864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17865 (exit $ac_status); }; }; then
17868 echo "$as_me: failed program was:" >&5
17869 sed 's/^/| /' conftest.$ac_ext >&5
17871 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
17872 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
17873 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
17874 echo $ECHO_N "(cached) $ECHO_C" >&6
17876 ac_check_lib_save_LIBS=$LIBS
17877 LIBS="-ldnet $LIBS"
17878 cat >conftest.$ac_ext <<_ACEOF
17881 cat confdefs.h >>conftest.$ac_ext
17882 cat >>conftest.$ac_ext <<_ACEOF
17883 /* end confdefs.h. */
17885 /* Override any gcc2 internal prototype to avoid an error. */
17889 /* We use char because int might match the return type of a gcc2
17890 builtin and then its argument prototype would still apply. */
17900 rm -f conftest.$ac_objext conftest$ac_exeext
17901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17902 (eval $ac_link) 2>conftest.er1
17904 grep -v '^ *+' conftest.er1 >conftest.err
17906 cat conftest.err >&5
17907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17908 (exit $ac_status); } &&
17909 { ac_try='test -z "$ac_c_werror_flag"
17910 || test ! -s conftest.err'
17911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17912 (eval $ac_try) 2>&5
17914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17915 (exit $ac_status); }; } &&
17916 { ac_try='test -s conftest$ac_exeext'
17917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17918 (eval $ac_try) 2>&5
17920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17921 (exit $ac_status); }; }; then
17922 ac_cv_lib_dnet_dnet_ntoa=yes
17924 echo "$as_me: failed program was:" >&5
17925 sed 's/^/| /' conftest.$ac_ext >&5
17927 ac_cv_lib_dnet_dnet_ntoa=no
17929 rm -f conftest.err conftest.$ac_objext \
17930 conftest$ac_exeext conftest.$ac_ext
17931 LIBS=$ac_check_lib_save_LIBS
17933 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
17934 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
17935 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
17936 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
17939 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
17940 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
17941 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
17942 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
17943 echo $ECHO_N "(cached) $ECHO_C" >&6
17945 ac_check_lib_save_LIBS=$LIBS
17946 LIBS="-ldnet_stub $LIBS"
17947 cat >conftest.$ac_ext <<_ACEOF
17950 cat confdefs.h >>conftest.$ac_ext
17951 cat >>conftest.$ac_ext <<_ACEOF
17952 /* end confdefs.h. */
17954 /* Override any gcc2 internal prototype to avoid an error. */
17958 /* We use char because int might match the return type of a gcc2
17959 builtin and then its argument prototype would still apply. */
17969 rm -f conftest.$ac_objext conftest$ac_exeext
17970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17971 (eval $ac_link) 2>conftest.er1
17973 grep -v '^ *+' conftest.er1 >conftest.err
17975 cat conftest.err >&5
17976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17977 (exit $ac_status); } &&
17978 { ac_try='test -z "$ac_c_werror_flag"
17979 || test ! -s conftest.err'
17980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17981 (eval $ac_try) 2>&5
17983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17984 (exit $ac_status); }; } &&
17985 { ac_try='test -s conftest$ac_exeext'
17986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17987 (eval $ac_try) 2>&5
17989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17990 (exit $ac_status); }; }; then
17991 ac_cv_lib_dnet_stub_dnet_ntoa=yes
17993 echo "$as_me: failed program was:" >&5
17994 sed 's/^/| /' conftest.$ac_ext >&5
17996 ac_cv_lib_dnet_stub_dnet_ntoa=no
17998 rm -f conftest.err conftest.$ac_objext \
17999 conftest$ac_exeext conftest.$ac_ext
18000 LIBS=$ac_check_lib_save_LIBS
18002 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
18003 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
18004 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
18005 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
18010 rm -f conftest.err conftest.$ac_objext \
18011 conftest$ac_exeext conftest.$ac_ext
18012 LIBS="$ac_xsave_LIBS"
18014 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
18015 # to get the SysV transport functions.
18016 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
18018 # The nsl library prevents programs from opening the X display
18019 # on Irix 5.2, according to T.E. Dickey.
18020 # The functions gethostbyname, getservbyname, and inet_addr are
18021 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
18022 echo "$as_me:$LINENO: checking for gethostbyname" >&5
18023 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
18024 if test "${ac_cv_func_gethostbyname+set}" = set; then
18025 echo $ECHO_N "(cached) $ECHO_C" >&6
18027 cat >conftest.$ac_ext <<_ACEOF
18030 cat confdefs.h >>conftest.$ac_ext
18031 cat >>conftest.$ac_ext <<_ACEOF
18032 /* end confdefs.h. */
18033 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
18034 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18035 #define gethostbyname innocuous_gethostbyname
18037 /* System header to define __stub macros and hopefully few prototypes,
18038 which can conflict with char gethostbyname (); below.
18039 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18040 <limits.h> exists even on freestanding compilers. */
18043 # include <limits.h>
18045 # include <assert.h>
18048 #undef gethostbyname
18050 /* Override any gcc2 internal prototype to avoid an error. */
18055 /* We use char because int might match the return type of a gcc2
18056 builtin and then its argument prototype would still apply. */
18057 char gethostbyname ();
18058 /* The GNU C library defines this for functions which it implements
18059 to always fail with ENOSYS. Some functions are actually named
18060 something starting with __ and the normal name is an alias. */
18061 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
18064 char (*f) () = gethostbyname;
18073 return f != gethostbyname;
18078 rm -f conftest.$ac_objext conftest$ac_exeext
18079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18080 (eval $ac_link) 2>conftest.er1
18082 grep -v '^ *+' conftest.er1 >conftest.err
18084 cat conftest.err >&5
18085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18086 (exit $ac_status); } &&
18087 { ac_try='test -z "$ac_c_werror_flag"
18088 || test ! -s conftest.err'
18089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18090 (eval $ac_try) 2>&5
18092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18093 (exit $ac_status); }; } &&
18094 { ac_try='test -s conftest$ac_exeext'
18095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18096 (eval $ac_try) 2>&5
18098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18099 (exit $ac_status); }; }; then
18100 ac_cv_func_gethostbyname=yes
18102 echo "$as_me: failed program was:" >&5
18103 sed 's/^/| /' conftest.$ac_ext >&5
18105 ac_cv_func_gethostbyname=no
18107 rm -f conftest.err conftest.$ac_objext \
18108 conftest$ac_exeext conftest.$ac_ext
18110 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
18111 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
18113 if test $ac_cv_func_gethostbyname = no; then
18114 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
18115 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
18116 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
18117 echo $ECHO_N "(cached) $ECHO_C" >&6
18119 ac_check_lib_save_LIBS=$LIBS
18121 cat >conftest.$ac_ext <<_ACEOF
18124 cat confdefs.h >>conftest.$ac_ext
18125 cat >>conftest.$ac_ext <<_ACEOF
18126 /* end confdefs.h. */
18128 /* Override any gcc2 internal prototype to avoid an error. */
18132 /* We use char because int might match the return type of a gcc2
18133 builtin and then its argument prototype would still apply. */
18134 char gethostbyname ();
18143 rm -f conftest.$ac_objext conftest$ac_exeext
18144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18145 (eval $ac_link) 2>conftest.er1
18147 grep -v '^ *+' conftest.er1 >conftest.err
18149 cat conftest.err >&5
18150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18151 (exit $ac_status); } &&
18152 { ac_try='test -z "$ac_c_werror_flag"
18153 || test ! -s conftest.err'
18154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18155 (eval $ac_try) 2>&5
18157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18158 (exit $ac_status); }; } &&
18159 { ac_try='test -s conftest$ac_exeext'
18160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18161 (eval $ac_try) 2>&5
18163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18164 (exit $ac_status); }; }; then
18165 ac_cv_lib_nsl_gethostbyname=yes
18167 echo "$as_me: failed program was:" >&5
18168 sed 's/^/| /' conftest.$ac_ext >&5
18170 ac_cv_lib_nsl_gethostbyname=no
18172 rm -f conftest.err conftest.$ac_objext \
18173 conftest$ac_exeext conftest.$ac_ext
18174 LIBS=$ac_check_lib_save_LIBS
18176 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
18177 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
18178 if test $ac_cv_lib_nsl_gethostbyname = yes; then
18179 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
18182 if test $ac_cv_lib_nsl_gethostbyname = no; then
18183 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
18184 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
18185 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
18186 echo $ECHO_N "(cached) $ECHO_C" >&6
18188 ac_check_lib_save_LIBS=$LIBS
18190 cat >conftest.$ac_ext <<_ACEOF
18193 cat confdefs.h >>conftest.$ac_ext
18194 cat >>conftest.$ac_ext <<_ACEOF
18195 /* end confdefs.h. */
18197 /* Override any gcc2 internal prototype to avoid an error. */
18201 /* We use char because int might match the return type of a gcc2
18202 builtin and then its argument prototype would still apply. */
18203 char gethostbyname ();
18212 rm -f conftest.$ac_objext conftest$ac_exeext
18213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18214 (eval $ac_link) 2>conftest.er1
18216 grep -v '^ *+' conftest.er1 >conftest.err
18218 cat conftest.err >&5
18219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18220 (exit $ac_status); } &&
18221 { ac_try='test -z "$ac_c_werror_flag"
18222 || test ! -s conftest.err'
18223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18224 (eval $ac_try) 2>&5
18226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18227 (exit $ac_status); }; } &&
18228 { ac_try='test -s conftest$ac_exeext'
18229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18230 (eval $ac_try) 2>&5
18232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18233 (exit $ac_status); }; }; then
18234 ac_cv_lib_bsd_gethostbyname=yes
18236 echo "$as_me: failed program was:" >&5
18237 sed 's/^/| /' conftest.$ac_ext >&5
18239 ac_cv_lib_bsd_gethostbyname=no
18241 rm -f conftest.err conftest.$ac_objext \
18242 conftest$ac_exeext conftest.$ac_ext
18243 LIBS=$ac_check_lib_save_LIBS
18245 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
18246 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
18247 if test $ac_cv_lib_bsd_gethostbyname = yes; then
18248 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
18254 # lieder@skyler.mavd.honeywell.com says without -lsocket,
18255 # socket/setsockopt and other routines are undefined under SCO ODT
18256 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
18257 # on later versions), says Simon Leinen: it contains gethostby*
18258 # variants that don't use the name server (or something). -lsocket
18259 # must be given before -lnsl if both are needed. We assume that
18260 # if connect needs -lnsl, so does gethostbyname.
18261 echo "$as_me:$LINENO: checking for connect" >&5
18262 echo $ECHO_N "checking for connect... $ECHO_C" >&6
18263 if test "${ac_cv_func_connect+set}" = set; then
18264 echo $ECHO_N "(cached) $ECHO_C" >&6
18266 cat >conftest.$ac_ext <<_ACEOF
18269 cat confdefs.h >>conftest.$ac_ext
18270 cat >>conftest.$ac_ext <<_ACEOF
18271 /* end confdefs.h. */
18272 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
18273 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18274 #define connect innocuous_connect
18276 /* System header to define __stub macros and hopefully few prototypes,
18277 which can conflict with char connect (); below.
18278 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18279 <limits.h> exists even on freestanding compilers. */
18282 # include <limits.h>
18284 # include <assert.h>
18289 /* Override any gcc2 internal prototype to avoid an error. */
18294 /* We use char because int might match the return type of a gcc2
18295 builtin and then its argument prototype would still apply. */
18297 /* The GNU C library defines this for functions which it implements
18298 to always fail with ENOSYS. Some functions are actually named
18299 something starting with __ and the normal name is an alias. */
18300 #if defined (__stub_connect) || defined (__stub___connect)
18303 char (*f) () = connect;
18312 return f != connect;
18317 rm -f conftest.$ac_objext conftest$ac_exeext
18318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18319 (eval $ac_link) 2>conftest.er1
18321 grep -v '^ *+' conftest.er1 >conftest.err
18323 cat conftest.err >&5
18324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18325 (exit $ac_status); } &&
18326 { ac_try='test -z "$ac_c_werror_flag"
18327 || test ! -s conftest.err'
18328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18329 (eval $ac_try) 2>&5
18331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18332 (exit $ac_status); }; } &&
18333 { ac_try='test -s conftest$ac_exeext'
18334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18335 (eval $ac_try) 2>&5
18337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18338 (exit $ac_status); }; }; then
18339 ac_cv_func_connect=yes
18341 echo "$as_me: failed program was:" >&5
18342 sed 's/^/| /' conftest.$ac_ext >&5
18344 ac_cv_func_connect=no
18346 rm -f conftest.err conftest.$ac_objext \
18347 conftest$ac_exeext conftest.$ac_ext
18349 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
18350 echo "${ECHO_T}$ac_cv_func_connect" >&6
18352 if test $ac_cv_func_connect = no; then
18353 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
18354 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
18355 if test "${ac_cv_lib_socket_connect+set}" = set; then
18356 echo $ECHO_N "(cached) $ECHO_C" >&6
18358 ac_check_lib_save_LIBS=$LIBS
18359 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
18360 cat >conftest.$ac_ext <<_ACEOF
18363 cat confdefs.h >>conftest.$ac_ext
18364 cat >>conftest.$ac_ext <<_ACEOF
18365 /* end confdefs.h. */
18367 /* Override any gcc2 internal prototype to avoid an error. */
18371 /* We use char because int might match the return type of a gcc2
18372 builtin and then its argument prototype would still apply. */
18382 rm -f conftest.$ac_objext conftest$ac_exeext
18383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18384 (eval $ac_link) 2>conftest.er1
18386 grep -v '^ *+' conftest.er1 >conftest.err
18388 cat conftest.err >&5
18389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18390 (exit $ac_status); } &&
18391 { ac_try='test -z "$ac_c_werror_flag"
18392 || test ! -s conftest.err'
18393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18394 (eval $ac_try) 2>&5
18396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18397 (exit $ac_status); }; } &&
18398 { ac_try='test -s conftest$ac_exeext'
18399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18400 (eval $ac_try) 2>&5
18402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18403 (exit $ac_status); }; }; then
18404 ac_cv_lib_socket_connect=yes
18406 echo "$as_me: failed program was:" >&5
18407 sed 's/^/| /' conftest.$ac_ext >&5
18409 ac_cv_lib_socket_connect=no
18411 rm -f conftest.err conftest.$ac_objext \
18412 conftest$ac_exeext conftest.$ac_ext
18413 LIBS=$ac_check_lib_save_LIBS
18415 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
18416 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
18417 if test $ac_cv_lib_socket_connect = yes; then
18418 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
18423 # Guillermo Gomez says -lposix is necessary on A/UX.
18424 echo "$as_me:$LINENO: checking for remove" >&5
18425 echo $ECHO_N "checking for remove... $ECHO_C" >&6
18426 if test "${ac_cv_func_remove+set}" = set; then
18427 echo $ECHO_N "(cached) $ECHO_C" >&6
18429 cat >conftest.$ac_ext <<_ACEOF
18432 cat confdefs.h >>conftest.$ac_ext
18433 cat >>conftest.$ac_ext <<_ACEOF
18434 /* end confdefs.h. */
18435 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
18436 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18437 #define remove innocuous_remove
18439 /* System header to define __stub macros and hopefully few prototypes,
18440 which can conflict with char remove (); below.
18441 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18442 <limits.h> exists even on freestanding compilers. */
18445 # include <limits.h>
18447 # include <assert.h>
18452 /* Override any gcc2 internal prototype to avoid an error. */
18457 /* We use char because int might match the return type of a gcc2
18458 builtin and then its argument prototype would still apply. */
18460 /* The GNU C library defines this for functions which it implements
18461 to always fail with ENOSYS. Some functions are actually named
18462 something starting with __ and the normal name is an alias. */
18463 #if defined (__stub_remove) || defined (__stub___remove)
18466 char (*f) () = remove;
18475 return f != remove;
18480 rm -f conftest.$ac_objext conftest$ac_exeext
18481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18482 (eval $ac_link) 2>conftest.er1
18484 grep -v '^ *+' conftest.er1 >conftest.err
18486 cat conftest.err >&5
18487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18488 (exit $ac_status); } &&
18489 { ac_try='test -z "$ac_c_werror_flag"
18490 || test ! -s conftest.err'
18491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18492 (eval $ac_try) 2>&5
18494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18495 (exit $ac_status); }; } &&
18496 { ac_try='test -s conftest$ac_exeext'
18497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18498 (eval $ac_try) 2>&5
18500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18501 (exit $ac_status); }; }; then
18502 ac_cv_func_remove=yes
18504 echo "$as_me: failed program was:" >&5
18505 sed 's/^/| /' conftest.$ac_ext >&5
18507 ac_cv_func_remove=no
18509 rm -f conftest.err conftest.$ac_objext \
18510 conftest$ac_exeext conftest.$ac_ext
18512 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
18513 echo "${ECHO_T}$ac_cv_func_remove" >&6
18515 if test $ac_cv_func_remove = no; then
18516 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
18517 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
18518 if test "${ac_cv_lib_posix_remove+set}" = set; then
18519 echo $ECHO_N "(cached) $ECHO_C" >&6
18521 ac_check_lib_save_LIBS=$LIBS
18522 LIBS="-lposix $LIBS"
18523 cat >conftest.$ac_ext <<_ACEOF
18526 cat confdefs.h >>conftest.$ac_ext
18527 cat >>conftest.$ac_ext <<_ACEOF
18528 /* end confdefs.h. */
18530 /* Override any gcc2 internal prototype to avoid an error. */
18534 /* We use char because int might match the return type of a gcc2
18535 builtin and then its argument prototype would still apply. */
18545 rm -f conftest.$ac_objext conftest$ac_exeext
18546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18547 (eval $ac_link) 2>conftest.er1
18549 grep -v '^ *+' conftest.er1 >conftest.err
18551 cat conftest.err >&5
18552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18553 (exit $ac_status); } &&
18554 { ac_try='test -z "$ac_c_werror_flag"
18555 || test ! -s conftest.err'
18556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18557 (eval $ac_try) 2>&5
18559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18560 (exit $ac_status); }; } &&
18561 { ac_try='test -s conftest$ac_exeext'
18562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18563 (eval $ac_try) 2>&5
18565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18566 (exit $ac_status); }; }; then
18567 ac_cv_lib_posix_remove=yes
18569 echo "$as_me: failed program was:" >&5
18570 sed 's/^/| /' conftest.$ac_ext >&5
18572 ac_cv_lib_posix_remove=no
18574 rm -f conftest.err conftest.$ac_objext \
18575 conftest$ac_exeext conftest.$ac_ext
18576 LIBS=$ac_check_lib_save_LIBS
18578 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
18579 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
18580 if test $ac_cv_lib_posix_remove = yes; then
18581 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
18586 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
18587 echo "$as_me:$LINENO: checking for shmat" >&5
18588 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
18589 if test "${ac_cv_func_shmat+set}" = set; then
18590 echo $ECHO_N "(cached) $ECHO_C" >&6
18592 cat >conftest.$ac_ext <<_ACEOF
18595 cat confdefs.h >>conftest.$ac_ext
18596 cat >>conftest.$ac_ext <<_ACEOF
18597 /* end confdefs.h. */
18598 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
18599 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18600 #define shmat innocuous_shmat
18602 /* System header to define __stub macros and hopefully few prototypes,
18603 which can conflict with char shmat (); below.
18604 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18605 <limits.h> exists even on freestanding compilers. */
18608 # include <limits.h>
18610 # include <assert.h>
18615 /* Override any gcc2 internal prototype to avoid an error. */
18620 /* We use char because int might match the return type of a gcc2
18621 builtin and then its argument prototype would still apply. */
18623 /* The GNU C library defines this for functions which it implements
18624 to always fail with ENOSYS. Some functions are actually named
18625 something starting with __ and the normal name is an alias. */
18626 #if defined (__stub_shmat) || defined (__stub___shmat)
18629 char (*f) () = shmat;
18643 rm -f conftest.$ac_objext conftest$ac_exeext
18644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18645 (eval $ac_link) 2>conftest.er1
18647 grep -v '^ *+' conftest.er1 >conftest.err
18649 cat conftest.err >&5
18650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18651 (exit $ac_status); } &&
18652 { ac_try='test -z "$ac_c_werror_flag"
18653 || test ! -s conftest.err'
18654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18655 (eval $ac_try) 2>&5
18657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18658 (exit $ac_status); }; } &&
18659 { ac_try='test -s conftest$ac_exeext'
18660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18661 (eval $ac_try) 2>&5
18663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18664 (exit $ac_status); }; }; then
18665 ac_cv_func_shmat=yes
18667 echo "$as_me: failed program was:" >&5
18668 sed 's/^/| /' conftest.$ac_ext >&5
18670 ac_cv_func_shmat=no
18672 rm -f conftest.err conftest.$ac_objext \
18673 conftest$ac_exeext conftest.$ac_ext
18675 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
18676 echo "${ECHO_T}$ac_cv_func_shmat" >&6
18678 if test $ac_cv_func_shmat = no; then
18679 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
18680 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
18681 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
18682 echo $ECHO_N "(cached) $ECHO_C" >&6
18684 ac_check_lib_save_LIBS=$LIBS
18686 cat >conftest.$ac_ext <<_ACEOF
18689 cat confdefs.h >>conftest.$ac_ext
18690 cat >>conftest.$ac_ext <<_ACEOF
18691 /* end confdefs.h. */
18693 /* Override any gcc2 internal prototype to avoid an error. */
18697 /* We use char because int might match the return type of a gcc2
18698 builtin and then its argument prototype would still apply. */
18708 rm -f conftest.$ac_objext conftest$ac_exeext
18709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18710 (eval $ac_link) 2>conftest.er1
18712 grep -v '^ *+' conftest.er1 >conftest.err
18714 cat conftest.err >&5
18715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18716 (exit $ac_status); } &&
18717 { ac_try='test -z "$ac_c_werror_flag"
18718 || test ! -s conftest.err'
18719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18720 (eval $ac_try) 2>&5
18722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18723 (exit $ac_status); }; } &&
18724 { ac_try='test -s conftest$ac_exeext'
18725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18726 (eval $ac_try) 2>&5
18728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18729 (exit $ac_status); }; }; then
18730 ac_cv_lib_ipc_shmat=yes
18732 echo "$as_me: failed program was:" >&5
18733 sed 's/^/| /' conftest.$ac_ext >&5
18735 ac_cv_lib_ipc_shmat=no
18737 rm -f conftest.err conftest.$ac_objext \
18738 conftest$ac_exeext conftest.$ac_ext
18739 LIBS=$ac_check_lib_save_LIBS
18741 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
18742 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
18743 if test $ac_cv_lib_ipc_shmat = yes; then
18744 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
18750 # Check for libraries that X11R6 Xt/Xaw programs need.
18751 ac_save_LDFLAGS=$LDFLAGS
18752 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
18753 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
18754 # check for ICE first), but we must link in the order -lSM -lICE or
18755 # we get undefined symbols. So assume we have SM if we have ICE.
18756 # These have to be linked with before -lX11, unlike the other
18757 # libraries we check for below, so use a different variable.
18758 # John Interrante, Karl Berry
18759 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
18760 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
18761 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
18762 echo $ECHO_N "(cached) $ECHO_C" >&6
18764 ac_check_lib_save_LIBS=$LIBS
18765 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
18766 cat >conftest.$ac_ext <<_ACEOF
18769 cat confdefs.h >>conftest.$ac_ext
18770 cat >>conftest.$ac_ext <<_ACEOF
18771 /* end confdefs.h. */
18773 /* Override any gcc2 internal prototype to avoid an error. */
18777 /* We use char because int might match the return type of a gcc2
18778 builtin and then its argument prototype would still apply. */
18779 char IceConnectionNumber ();
18783 IceConnectionNumber ();
18788 rm -f conftest.$ac_objext conftest$ac_exeext
18789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18790 (eval $ac_link) 2>conftest.er1
18792 grep -v '^ *+' conftest.er1 >conftest.err
18794 cat conftest.err >&5
18795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18796 (exit $ac_status); } &&
18797 { ac_try='test -z "$ac_c_werror_flag"
18798 || test ! -s conftest.err'
18799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18800 (eval $ac_try) 2>&5
18802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18803 (exit $ac_status); }; } &&
18804 { ac_try='test -s conftest$ac_exeext'
18805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18806 (eval $ac_try) 2>&5
18808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18809 (exit $ac_status); }; }; then
18810 ac_cv_lib_ICE_IceConnectionNumber=yes
18812 echo "$as_me: failed program was:" >&5
18813 sed 's/^/| /' conftest.$ac_ext >&5
18815 ac_cv_lib_ICE_IceConnectionNumber=no
18817 rm -f conftest.err conftest.$ac_objext \
18818 conftest$ac_exeext conftest.$ac_ext
18819 LIBS=$ac_check_lib_save_LIBS
18821 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
18822 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
18823 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
18824 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
18827 LDFLAGS=$ac_save_LDFLAGS
18889 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18890 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18891 echo "$as_me:$LINENO: checking for $ac_header" >&5
18892 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18893 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18894 echo $ECHO_N "(cached) $ECHO_C" >&6
18896 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18897 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18899 # Is the header compilable?
18900 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18901 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18902 cat >conftest.$ac_ext <<_ACEOF
18905 cat confdefs.h >>conftest.$ac_ext
18906 cat >>conftest.$ac_ext <<_ACEOF
18907 /* end confdefs.h. */
18908 $ac_includes_default
18909 #include <$ac_header>
18911 rm -f conftest.$ac_objext
18912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18913 (eval $ac_compile) 2>conftest.er1
18915 grep -v '^ *+' conftest.er1 >conftest.err
18917 cat conftest.err >&5
18918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18919 (exit $ac_status); } &&
18920 { ac_try='test -z "$ac_c_werror_flag"
18921 || test ! -s conftest.err'
18922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18923 (eval $ac_try) 2>&5
18925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18926 (exit $ac_status); }; } &&
18927 { ac_try='test -s conftest.$ac_objext'
18928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18929 (eval $ac_try) 2>&5
18931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18932 (exit $ac_status); }; }; then
18933 ac_header_compiler=yes
18935 echo "$as_me: failed program was:" >&5
18936 sed 's/^/| /' conftest.$ac_ext >&5
18938 ac_header_compiler=no
18940 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18941 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18942 echo "${ECHO_T}$ac_header_compiler" >&6
18944 # Is the header present?
18945 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18946 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18947 cat >conftest.$ac_ext <<_ACEOF
18950 cat confdefs.h >>conftest.$ac_ext
18951 cat >>conftest.$ac_ext <<_ACEOF
18952 /* end confdefs.h. */
18953 #include <$ac_header>
18955 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18956 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18958 grep -v '^ *+' conftest.er1 >conftest.err
18960 cat conftest.err >&5
18961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18962 (exit $ac_status); } >/dev/null; then
18963 if test -s conftest.err; then
18964 ac_cpp_err=$ac_c_preproc_warn_flag
18965 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18972 if test -z "$ac_cpp_err"; then
18973 ac_header_preproc=yes
18975 echo "$as_me: failed program was:" >&5
18976 sed 's/^/| /' conftest.$ac_ext >&5
18978 ac_header_preproc=no
18980 rm -f conftest.err conftest.$ac_ext
18981 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18982 echo "${ECHO_T}$ac_header_preproc" >&6
18984 # So? What about this header?
18985 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18987 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18988 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18989 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18990 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18991 ac_header_preproc=yes
18994 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18995 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18996 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18997 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18998 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18999 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19000 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19001 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19002 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19003 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19004 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19005 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19008 ## ------------------------------------------ ##
19009 ## Report this to the AC_PACKAGE_NAME lists. ##
19010 ## ------------------------------------------ ##
19013 sed "s/^/$as_me: WARNING: /" >&2
19016 echo "$as_me:$LINENO: checking for $ac_header" >&5
19017 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19018 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19019 echo $ECHO_N "(cached) $ECHO_C" >&6
19021 eval "$as_ac_Header=\$ac_header_preproc"
19023 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19024 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19027 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19028 cat >>confdefs.h <<_ACEOF
19029 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19036 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19037 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19038 if test "${ac_cv_header_stdc+set}" = set; then
19039 echo $ECHO_N "(cached) $ECHO_C" >&6
19041 cat >conftest.$ac_ext <<_ACEOF
19044 cat confdefs.h >>conftest.$ac_ext
19045 cat >>conftest.$ac_ext <<_ACEOF
19046 /* end confdefs.h. */
19047 #include <stdlib.h>
19048 #include <stdarg.h>
19049 #include <string.h>
19060 rm -f conftest.$ac_objext
19061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19062 (eval $ac_compile) 2>conftest.er1
19064 grep -v '^ *+' conftest.er1 >conftest.err
19066 cat conftest.err >&5
19067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19068 (exit $ac_status); } &&
19069 { ac_try='test -z "$ac_c_werror_flag"
19070 || test ! -s conftest.err'
19071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19072 (eval $ac_try) 2>&5
19074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19075 (exit $ac_status); }; } &&
19076 { ac_try='test -s conftest.$ac_objext'
19077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19078 (eval $ac_try) 2>&5
19080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19081 (exit $ac_status); }; }; then
19082 ac_cv_header_stdc=yes
19084 echo "$as_me: failed program was:" >&5
19085 sed 's/^/| /' conftest.$ac_ext >&5
19087 ac_cv_header_stdc=no
19089 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19091 if test $ac_cv_header_stdc = yes; then
19092 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19093 cat >conftest.$ac_ext <<_ACEOF
19096 cat confdefs.h >>conftest.$ac_ext
19097 cat >>conftest.$ac_ext <<_ACEOF
19098 /* end confdefs.h. */
19099 #include <string.h>
19102 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19103 $EGREP "memchr" >/dev/null 2>&1; then
19106 ac_cv_header_stdc=no
19112 if test $ac_cv_header_stdc = yes; then
19113 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19114 cat >conftest.$ac_ext <<_ACEOF
19117 cat confdefs.h >>conftest.$ac_ext
19118 cat >>conftest.$ac_ext <<_ACEOF
19119 /* end confdefs.h. */
19120 #include <stdlib.h>
19123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19124 $EGREP "free" >/dev/null 2>&1; then
19127 ac_cv_header_stdc=no
19133 if test $ac_cv_header_stdc = yes; then
19134 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19135 if test "$cross_compiling" = yes; then
19138 cat >conftest.$ac_ext <<_ACEOF
19141 cat confdefs.h >>conftest.$ac_ext
19142 cat >>conftest.$ac_ext <<_ACEOF
19143 /* end confdefs.h. */
19145 #if ((' ' & 0x0FF) == 0x020)
19146 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19147 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19149 # define ISLOWER(c) \
19150 (('a' <= (c) && (c) <= 'i') \
19151 || ('j' <= (c) && (c) <= 'r') \
19152 || ('s' <= (c) && (c) <= 'z'))
19153 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19156 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19161 for (i = 0; i < 256; i++)
19162 if (XOR (islower (i), ISLOWER (i))
19163 || toupper (i) != TOUPPER (i))
19168 rm -f conftest$ac_exeext
19169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19170 (eval $ac_link) 2>&5
19172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19173 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19175 (eval $ac_try) 2>&5
19177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19178 (exit $ac_status); }; }; then
19181 echo "$as_me: program exited with status $ac_status" >&5
19182 echo "$as_me: failed program was:" >&5
19183 sed 's/^/| /' conftest.$ac_ext >&5
19185 ( exit $ac_status )
19186 ac_cv_header_stdc=no
19188 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19192 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19193 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19194 if test $ac_cv_header_stdc = yes; then
19196 cat >>confdefs.h <<\_ACEOF
19197 #define STDC_HEADERS 1
19202 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
19203 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
19204 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
19205 echo $ECHO_N "(cached) $ECHO_C" >&6
19207 cat >conftest.$ac_ext <<_ACEOF
19210 cat confdefs.h >>conftest.$ac_ext
19211 cat >>conftest.$ac_ext <<_ACEOF
19212 /* end confdefs.h. */
19213 #include <sys/types.h>
19217 return makedev(0, 0);
19222 rm -f conftest.$ac_objext conftest$ac_exeext
19223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19224 (eval $ac_link) 2>conftest.er1
19226 grep -v '^ *+' conftest.er1 >conftest.err
19228 cat conftest.err >&5
19229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19230 (exit $ac_status); } &&
19231 { ac_try='test -z "$ac_c_werror_flag"
19232 || test ! -s conftest.err'
19233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19234 (eval $ac_try) 2>&5
19236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19237 (exit $ac_status); }; } &&
19238 { ac_try='test -s conftest$ac_exeext'
19239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19240 (eval $ac_try) 2>&5
19242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19243 (exit $ac_status); }; }; then
19244 ac_cv_header_sys_types_h_makedev=yes
19246 echo "$as_me: failed program was:" >&5
19247 sed 's/^/| /' conftest.$ac_ext >&5
19249 ac_cv_header_sys_types_h_makedev=no
19251 rm -f conftest.err conftest.$ac_objext \
19252 conftest$ac_exeext conftest.$ac_ext
19255 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
19256 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
19258 if test $ac_cv_header_sys_types_h_makedev = no; then
19259 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19260 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
19261 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
19262 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19263 echo $ECHO_N "(cached) $ECHO_C" >&6
19265 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
19266 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
19268 # Is the header compilable?
19269 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
19270 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
19271 cat >conftest.$ac_ext <<_ACEOF
19274 cat confdefs.h >>conftest.$ac_ext
19275 cat >>conftest.$ac_ext <<_ACEOF
19276 /* end confdefs.h. */
19277 $ac_includes_default
19278 #include <sys/mkdev.h>
19280 rm -f conftest.$ac_objext
19281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19282 (eval $ac_compile) 2>conftest.er1
19284 grep -v '^ *+' conftest.er1 >conftest.err
19286 cat conftest.err >&5
19287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19288 (exit $ac_status); } &&
19289 { ac_try='test -z "$ac_c_werror_flag"
19290 || test ! -s conftest.err'
19291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19292 (eval $ac_try) 2>&5
19294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19295 (exit $ac_status); }; } &&
19296 { ac_try='test -s conftest.$ac_objext'
19297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19298 (eval $ac_try) 2>&5
19300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19301 (exit $ac_status); }; }; then
19302 ac_header_compiler=yes
19304 echo "$as_me: failed program was:" >&5
19305 sed 's/^/| /' conftest.$ac_ext >&5
19307 ac_header_compiler=no
19309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19310 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19311 echo "${ECHO_T}$ac_header_compiler" >&6
19313 # Is the header present?
19314 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
19315 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
19316 cat >conftest.$ac_ext <<_ACEOF
19319 cat confdefs.h >>conftest.$ac_ext
19320 cat >>conftest.$ac_ext <<_ACEOF
19321 /* end confdefs.h. */
19322 #include <sys/mkdev.h>
19324 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19325 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19327 grep -v '^ *+' conftest.er1 >conftest.err
19329 cat conftest.err >&5
19330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19331 (exit $ac_status); } >/dev/null; then
19332 if test -s conftest.err; then
19333 ac_cpp_err=$ac_c_preproc_warn_flag
19334 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19341 if test -z "$ac_cpp_err"; then
19342 ac_header_preproc=yes
19344 echo "$as_me: failed program was:" >&5
19345 sed 's/^/| /' conftest.$ac_ext >&5
19347 ac_header_preproc=no
19349 rm -f conftest.err conftest.$ac_ext
19350 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19351 echo "${ECHO_T}$ac_header_preproc" >&6
19353 # So? What about this header?
19354 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19356 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
19357 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19358 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
19359 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
19360 ac_header_preproc=yes
19363 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
19364 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
19365 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
19366 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
19367 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
19368 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
19369 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
19370 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
19371 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
19372 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
19373 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
19374 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
19377 ## ------------------------------------------ ##
19378 ## Report this to the AC_PACKAGE_NAME lists. ##
19379 ## ------------------------------------------ ##
19382 sed "s/^/$as_me: WARNING: /" >&2
19385 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
19386 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
19387 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19388 echo $ECHO_N "(cached) $ECHO_C" >&6
19390 ac_cv_header_sys_mkdev_h=$ac_header_preproc
19392 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
19393 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
19396 if test $ac_cv_header_sys_mkdev_h = yes; then
19398 cat >>confdefs.h <<\_ACEOF
19399 #define MAJOR_IN_MKDEV 1
19406 if test $ac_cv_header_sys_mkdev_h = no; then
19407 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
19408 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
19409 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
19410 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
19411 echo $ECHO_N "(cached) $ECHO_C" >&6
19413 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
19414 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
19416 # Is the header compilable?
19417 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
19418 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
19419 cat >conftest.$ac_ext <<_ACEOF
19422 cat confdefs.h >>conftest.$ac_ext
19423 cat >>conftest.$ac_ext <<_ACEOF
19424 /* end confdefs.h. */
19425 $ac_includes_default
19426 #include <sys/sysmacros.h>
19428 rm -f conftest.$ac_objext
19429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19430 (eval $ac_compile) 2>conftest.er1
19432 grep -v '^ *+' conftest.er1 >conftest.err
19434 cat conftest.err >&5
19435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19436 (exit $ac_status); } &&
19437 { ac_try='test -z "$ac_c_werror_flag"
19438 || test ! -s conftest.err'
19439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19440 (eval $ac_try) 2>&5
19442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19443 (exit $ac_status); }; } &&
19444 { ac_try='test -s conftest.$ac_objext'
19445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19446 (eval $ac_try) 2>&5
19448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19449 (exit $ac_status); }; }; then
19450 ac_header_compiler=yes
19452 echo "$as_me: failed program was:" >&5
19453 sed 's/^/| /' conftest.$ac_ext >&5
19455 ac_header_compiler=no
19457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19458 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19459 echo "${ECHO_T}$ac_header_compiler" >&6
19461 # Is the header present?
19462 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
19463 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
19464 cat >conftest.$ac_ext <<_ACEOF
19467 cat confdefs.h >>conftest.$ac_ext
19468 cat >>conftest.$ac_ext <<_ACEOF
19469 /* end confdefs.h. */
19470 #include <sys/sysmacros.h>
19472 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19473 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19475 grep -v '^ *+' conftest.er1 >conftest.err
19477 cat conftest.err >&5
19478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19479 (exit $ac_status); } >/dev/null; then
19480 if test -s conftest.err; then
19481 ac_cpp_err=$ac_c_preproc_warn_flag
19482 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19489 if test -z "$ac_cpp_err"; then
19490 ac_header_preproc=yes
19492 echo "$as_me: failed program was:" >&5
19493 sed 's/^/| /' conftest.$ac_ext >&5
19495 ac_header_preproc=no
19497 rm -f conftest.err conftest.$ac_ext
19498 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19499 echo "${ECHO_T}$ac_header_preproc" >&6
19501 # So? What about this header?
19502 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19504 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
19505 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19506 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
19507 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
19508 ac_header_preproc=yes
19511 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
19512 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
19513 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
19514 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
19515 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
19516 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
19517 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
19518 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
19519 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
19520 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
19521 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
19522 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
19525 ## ------------------------------------------ ##
19526 ## Report this to the AC_PACKAGE_NAME lists. ##
19527 ## ------------------------------------------ ##
19530 sed "s/^/$as_me: WARNING: /" >&2
19533 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
19534 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
19535 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
19536 echo $ECHO_N "(cached) $ECHO_C" >&6
19538 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
19540 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
19541 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
19544 if test $ac_cv_header_sys_sysmacros_h = yes; then
19546 cat >>confdefs.h <<\_ACEOF
19547 #define MAJOR_IN_SYSMACROS 1
19561 ac_header_dirent=no
19562 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19563 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19564 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
19565 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
19566 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19567 echo $ECHO_N "(cached) $ECHO_C" >&6
19569 cat >conftest.$ac_ext <<_ACEOF
19572 cat confdefs.h >>conftest.$ac_ext
19573 cat >>conftest.$ac_ext <<_ACEOF
19574 /* end confdefs.h. */
19575 #include <sys/types.h>
19587 rm -f conftest.$ac_objext
19588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19589 (eval $ac_compile) 2>conftest.er1
19591 grep -v '^ *+' conftest.er1 >conftest.err
19593 cat conftest.err >&5
19594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19595 (exit $ac_status); } &&
19596 { ac_try='test -z "$ac_c_werror_flag"
19597 || test ! -s conftest.err'
19598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19599 (eval $ac_try) 2>&5
19601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19602 (exit $ac_status); }; } &&
19603 { ac_try='test -s conftest.$ac_objext'
19604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19605 (eval $ac_try) 2>&5
19607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19608 (exit $ac_status); }; }; then
19609 eval "$as_ac_Header=yes"
19611 echo "$as_me: failed program was:" >&5
19612 sed 's/^/| /' conftest.$ac_ext >&5
19614 eval "$as_ac_Header=no"
19616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19618 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19619 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19620 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19621 cat >>confdefs.h <<_ACEOF
19622 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19625 ac_header_dirent=$ac_hdr; break
19629 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19630 if test $ac_header_dirent = dirent.h; then
19631 echo "$as_me:$LINENO: checking for library containing opendir" >&5
19632 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19633 if test "${ac_cv_search_opendir+set}" = set; then
19634 echo $ECHO_N "(cached) $ECHO_C" >&6
19636 ac_func_search_save_LIBS=$LIBS
19637 ac_cv_search_opendir=no
19638 cat >conftest.$ac_ext <<_ACEOF
19641 cat confdefs.h >>conftest.$ac_ext
19642 cat >>conftest.$ac_ext <<_ACEOF
19643 /* end confdefs.h. */
19645 /* Override any gcc2 internal prototype to avoid an error. */
19649 /* We use char because int might match the return type of a gcc2
19650 builtin and then its argument prototype would still apply. */
19660 rm -f conftest.$ac_objext conftest$ac_exeext
19661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19662 (eval $ac_link) 2>conftest.er1
19664 grep -v '^ *+' conftest.er1 >conftest.err
19666 cat conftest.err >&5
19667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19668 (exit $ac_status); } &&
19669 { ac_try='test -z "$ac_c_werror_flag"
19670 || test ! -s conftest.err'
19671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19672 (eval $ac_try) 2>&5
19674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19675 (exit $ac_status); }; } &&
19676 { ac_try='test -s conftest$ac_exeext'
19677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19678 (eval $ac_try) 2>&5
19680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19681 (exit $ac_status); }; }; then
19682 ac_cv_search_opendir="none required"
19684 echo "$as_me: failed program was:" >&5
19685 sed 's/^/| /' conftest.$ac_ext >&5
19688 rm -f conftest.err conftest.$ac_objext \
19689 conftest$ac_exeext conftest.$ac_ext
19690 if test "$ac_cv_search_opendir" = no; then
19691 for ac_lib in dir; do
19692 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19693 cat >conftest.$ac_ext <<_ACEOF
19696 cat confdefs.h >>conftest.$ac_ext
19697 cat >>conftest.$ac_ext <<_ACEOF
19698 /* end confdefs.h. */
19700 /* Override any gcc2 internal prototype to avoid an error. */
19704 /* We use char because int might match the return type of a gcc2
19705 builtin and then its argument prototype would still apply. */
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_search_opendir="-l$ac_lib"
19740 echo "$as_me: failed program was:" >&5
19741 sed 's/^/| /' conftest.$ac_ext >&5
19744 rm -f conftest.err conftest.$ac_objext \
19745 conftest$ac_exeext conftest.$ac_ext
19748 LIBS=$ac_func_search_save_LIBS
19750 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19751 echo "${ECHO_T}$ac_cv_search_opendir" >&6
19752 if test "$ac_cv_search_opendir" != no; then
19753 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
19758 echo "$as_me:$LINENO: checking for library containing opendir" >&5
19759 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19760 if test "${ac_cv_search_opendir+set}" = set; then
19761 echo $ECHO_N "(cached) $ECHO_C" >&6
19763 ac_func_search_save_LIBS=$LIBS
19764 ac_cv_search_opendir=no
19765 cat >conftest.$ac_ext <<_ACEOF
19768 cat confdefs.h >>conftest.$ac_ext
19769 cat >>conftest.$ac_ext <<_ACEOF
19770 /* end confdefs.h. */
19772 /* Override any gcc2 internal prototype to avoid an error. */
19776 /* We use char because int might match the return type of a gcc2
19777 builtin and then its argument prototype would still apply. */
19787 rm -f conftest.$ac_objext conftest$ac_exeext
19788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19789 (eval $ac_link) 2>conftest.er1
19791 grep -v '^ *+' conftest.er1 >conftest.err
19793 cat conftest.err >&5
19794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19795 (exit $ac_status); } &&
19796 { ac_try='test -z "$ac_c_werror_flag"
19797 || test ! -s conftest.err'
19798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19799 (eval $ac_try) 2>&5
19801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19802 (exit $ac_status); }; } &&
19803 { ac_try='test -s conftest$ac_exeext'
19804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19805 (eval $ac_try) 2>&5
19807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19808 (exit $ac_status); }; }; then
19809 ac_cv_search_opendir="none required"
19811 echo "$as_me: failed program was:" >&5
19812 sed 's/^/| /' conftest.$ac_ext >&5
19815 rm -f conftest.err conftest.$ac_objext \
19816 conftest$ac_exeext conftest.$ac_ext
19817 if test "$ac_cv_search_opendir" = no; then
19818 for ac_lib in x; do
19819 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19820 cat >conftest.$ac_ext <<_ACEOF
19823 cat confdefs.h >>conftest.$ac_ext
19824 cat >>conftest.$ac_ext <<_ACEOF
19825 /* end confdefs.h. */
19827 /* Override any gcc2 internal prototype to avoid an error. */
19831 /* We use char because int might match the return type of a gcc2
19832 builtin and then its argument prototype would still apply. */
19842 rm -f conftest.$ac_objext conftest$ac_exeext
19843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19844 (eval $ac_link) 2>conftest.er1
19846 grep -v '^ *+' conftest.er1 >conftest.err
19848 cat conftest.err >&5
19849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19850 (exit $ac_status); } &&
19851 { ac_try='test -z "$ac_c_werror_flag"
19852 || test ! -s conftest.err'
19853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19854 (eval $ac_try) 2>&5
19856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19857 (exit $ac_status); }; } &&
19858 { ac_try='test -s conftest$ac_exeext'
19859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19860 (eval $ac_try) 2>&5
19862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19863 (exit $ac_status); }; }; then
19864 ac_cv_search_opendir="-l$ac_lib"
19867 echo "$as_me: failed program was:" >&5
19868 sed 's/^/| /' conftest.$ac_ext >&5
19871 rm -f conftest.err conftest.$ac_objext \
19872 conftest$ac_exeext conftest.$ac_ext
19875 LIBS=$ac_func_search_save_LIBS
19877 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19878 echo "${ECHO_T}$ac_cv_search_opendir" >&6
19879 if test "$ac_cv_search_opendir" != no; then
19880 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
19886 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
19887 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
19888 if test "${ac_cv_header_stat_broken+set}" = set; then
19889 echo $ECHO_N "(cached) $ECHO_C" >&6
19891 cat >conftest.$ac_ext <<_ACEOF
19894 cat confdefs.h >>conftest.$ac_ext
19895 cat >>conftest.$ac_ext <<_ACEOF
19896 /* end confdefs.h. */
19897 #include <sys/types.h>
19898 #include <sys/stat.h>
19900 #if defined(S_ISBLK) && defined(S_IFDIR)
19901 # if S_ISBLK (S_IFDIR)
19906 #if defined(S_ISBLK) && defined(S_IFCHR)
19907 # if S_ISBLK (S_IFCHR)
19912 #if defined(S_ISLNK) && defined(S_IFREG)
19913 # if S_ISLNK (S_IFREG)
19918 #if defined(S_ISSOCK) && defined(S_IFREG)
19919 # if S_ISSOCK (S_IFREG)
19925 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19926 $EGREP "You lose" >/dev/null 2>&1; then
19927 ac_cv_header_stat_broken=yes
19929 ac_cv_header_stat_broken=no
19934 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
19935 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
19936 if test $ac_cv_header_stat_broken = yes; then
19938 cat >>confdefs.h <<\_ACEOF
19939 #define STAT_MACROS_BROKEN 1
19944 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19945 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19946 if test "${ac_cv_header_sys_wait_h+set}" = set; then
19947 echo $ECHO_N "(cached) $ECHO_C" >&6
19949 cat >conftest.$ac_ext <<_ACEOF
19952 cat confdefs.h >>conftest.$ac_ext
19953 cat >>conftest.$ac_ext <<_ACEOF
19954 /* end confdefs.h. */
19955 #include <sys/types.h>
19956 #include <sys/wait.h>
19957 #ifndef WEXITSTATUS
19958 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19961 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19969 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19974 rm -f conftest.$ac_objext
19975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19976 (eval $ac_compile) 2>conftest.er1
19978 grep -v '^ *+' conftest.er1 >conftest.err
19980 cat conftest.err >&5
19981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19982 (exit $ac_status); } &&
19983 { ac_try='test -z "$ac_c_werror_flag"
19984 || test ! -s conftest.err'
19985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19986 (eval $ac_try) 2>&5
19988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19989 (exit $ac_status); }; } &&
19990 { ac_try='test -s conftest.$ac_objext'
19991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19992 (eval $ac_try) 2>&5
19994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19995 (exit $ac_status); }; }; then
19996 ac_cv_header_sys_wait_h=yes
19998 echo "$as_me: failed program was:" >&5
19999 sed 's/^/| /' conftest.$ac_ext >&5
20001 ac_cv_header_sys_wait_h=no
20003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20005 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20006 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
20007 if test $ac_cv_header_sys_wait_h = yes; then
20009 cat >>confdefs.h <<\_ACEOF
20010 #define HAVE_SYS_WAIT_H 1
20015 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20016 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20017 if test "${ac_cv_header_time+set}" = set; then
20018 echo $ECHO_N "(cached) $ECHO_C" >&6
20020 cat >conftest.$ac_ext <<_ACEOF
20023 cat confdefs.h >>conftest.$ac_ext
20024 cat >>conftest.$ac_ext <<_ACEOF
20025 /* end confdefs.h. */
20026 #include <sys/types.h>
20027 #include <sys/time.h>
20033 if ((struct tm *) 0)
20039 rm -f conftest.$ac_objext
20040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20041 (eval $ac_compile) 2>conftest.er1
20043 grep -v '^ *+' conftest.er1 >conftest.err
20045 cat conftest.err >&5
20046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20047 (exit $ac_status); } &&
20048 { ac_try='test -z "$ac_c_werror_flag"
20049 || test ! -s conftest.err'
20050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20051 (eval $ac_try) 2>&5
20053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20054 (exit $ac_status); }; } &&
20055 { ac_try='test -s conftest.$ac_objext'
20056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20057 (eval $ac_try) 2>&5
20059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20060 (exit $ac_status); }; }; then
20061 ac_cv_header_time=yes
20063 echo "$as_me: failed program was:" >&5
20064 sed 's/^/| /' conftest.$ac_ext >&5
20066 ac_cv_header_time=no
20068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20070 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20071 echo "${ECHO_T}$ac_cv_header_time" >&6
20072 if test $ac_cv_header_time = yes; then
20074 cat >>confdefs.h <<\_ACEOF
20075 #define TIME_WITH_SYS_TIME 1
20081 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
20082 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
20083 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
20084 echo $ECHO_N "(cached) $ECHO_C" >&6
20086 cat >conftest.$ac_ext <<_ACEOF
20089 cat confdefs.h >>conftest.$ac_ext
20090 cat >>conftest.$ac_ext <<_ACEOF
20091 /* end confdefs.h. */
20092 $ac_includes_default
20096 static struct stat ac_aggr;
20097 if (ac_aggr.st_blksize)
20103 rm -f conftest.$ac_objext
20104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20105 (eval $ac_compile) 2>conftest.er1
20107 grep -v '^ *+' conftest.er1 >conftest.err
20109 cat conftest.err >&5
20110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20111 (exit $ac_status); } &&
20112 { ac_try='test -z "$ac_c_werror_flag"
20113 || test ! -s conftest.err'
20114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20115 (eval $ac_try) 2>&5
20117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20118 (exit $ac_status); }; } &&
20119 { ac_try='test -s conftest.$ac_objext'
20120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20121 (eval $ac_try) 2>&5
20123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20124 (exit $ac_status); }; }; then
20125 ac_cv_member_struct_stat_st_blksize=yes
20127 echo "$as_me: failed program was:" >&5
20128 sed 's/^/| /' conftest.$ac_ext >&5
20130 cat >conftest.$ac_ext <<_ACEOF
20133 cat confdefs.h >>conftest.$ac_ext
20134 cat >>conftest.$ac_ext <<_ACEOF
20135 /* end confdefs.h. */
20136 $ac_includes_default
20140 static struct stat ac_aggr;
20141 if (sizeof ac_aggr.st_blksize)
20147 rm -f conftest.$ac_objext
20148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20149 (eval $ac_compile) 2>conftest.er1
20151 grep -v '^ *+' conftest.er1 >conftest.err
20153 cat conftest.err >&5
20154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20155 (exit $ac_status); } &&
20156 { ac_try='test -z "$ac_c_werror_flag"
20157 || test ! -s conftest.err'
20158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20159 (eval $ac_try) 2>&5
20161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20162 (exit $ac_status); }; } &&
20163 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
20169 ac_cv_member_struct_stat_st_blksize=yes
20171 echo "$as_me: failed program was:" >&5
20172 sed 's/^/| /' conftest.$ac_ext >&5
20174 ac_cv_member_struct_stat_st_blksize=no
20176 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20178 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20180 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
20181 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
20182 if test $ac_cv_member_struct_stat_st_blksize = yes; then
20184 cat >>confdefs.h <<_ACEOF
20185 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
20189 cat >>confdefs.h <<\_ACEOF
20190 #define HAVE_ST_BLKSIZE 1
20196 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
20197 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
20198 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
20199 echo $ECHO_N "(cached) $ECHO_C" >&6
20201 cat >conftest.$ac_ext <<_ACEOF
20204 cat confdefs.h >>conftest.$ac_ext
20205 cat >>conftest.$ac_ext <<_ACEOF
20206 /* end confdefs.h. */
20207 $ac_includes_default
20211 static struct stat ac_aggr;
20212 if (ac_aggr.st_blocks)
20218 rm -f conftest.$ac_objext
20219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20220 (eval $ac_compile) 2>conftest.er1
20222 grep -v '^ *+' conftest.er1 >conftest.err
20224 cat conftest.err >&5
20225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20226 (exit $ac_status); } &&
20227 { ac_try='test -z "$ac_c_werror_flag"
20228 || test ! -s conftest.err'
20229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20230 (eval $ac_try) 2>&5
20232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20233 (exit $ac_status); }; } &&
20234 { ac_try='test -s conftest.$ac_objext'
20235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20236 (eval $ac_try) 2>&5
20238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20239 (exit $ac_status); }; }; then
20240 ac_cv_member_struct_stat_st_blocks=yes
20242 echo "$as_me: failed program was:" >&5
20243 sed 's/^/| /' conftest.$ac_ext >&5
20245 cat >conftest.$ac_ext <<_ACEOF
20248 cat confdefs.h >>conftest.$ac_ext
20249 cat >>conftest.$ac_ext <<_ACEOF
20250 /* end confdefs.h. */
20251 $ac_includes_default
20255 static struct stat ac_aggr;
20256 if (sizeof ac_aggr.st_blocks)
20262 rm -f conftest.$ac_objext
20263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20264 (eval $ac_compile) 2>conftest.er1
20266 grep -v '^ *+' conftest.er1 >conftest.err
20268 cat conftest.err >&5
20269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20270 (exit $ac_status); } &&
20271 { ac_try='test -z "$ac_c_werror_flag"
20272 || test ! -s conftest.err'
20273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20274 (eval $ac_try) 2>&5
20276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20277 (exit $ac_status); }; } &&
20278 { ac_try='test -s conftest.$ac_objext'
20279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20280 (eval $ac_try) 2>&5
20282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20283 (exit $ac_status); }; }; then
20284 ac_cv_member_struct_stat_st_blocks=yes
20286 echo "$as_me: failed program was:" >&5
20287 sed 's/^/| /' conftest.$ac_ext >&5
20289 ac_cv_member_struct_stat_st_blocks=no
20291 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20295 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
20296 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
20297 if test $ac_cv_member_struct_stat_st_blocks = yes; then
20299 cat >>confdefs.h <<_ACEOF
20300 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
20304 cat >>confdefs.h <<\_ACEOF
20305 #define HAVE_ST_BLOCKS 1
20310 "fileblocks.$ac_objext" | \
20311 *" fileblocks.$ac_objext" | \
20312 "fileblocks.$ac_objext "* | \
20313 *" fileblocks.$ac_objext "* ) ;;
20314 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
20320 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20321 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20322 if test "${ac_cv_struct_tm+set}" = set; then
20323 echo $ECHO_N "(cached) $ECHO_C" >&6
20325 cat >conftest.$ac_ext <<_ACEOF
20328 cat confdefs.h >>conftest.$ac_ext
20329 cat >>conftest.$ac_ext <<_ACEOF
20330 /* end confdefs.h. */
20331 #include <sys/types.h>
20337 struct tm *tp; tp->tm_sec;
20342 rm -f conftest.$ac_objext
20343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20344 (eval $ac_compile) 2>conftest.er1
20346 grep -v '^ *+' conftest.er1 >conftest.err
20348 cat conftest.err >&5
20349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20350 (exit $ac_status); } &&
20351 { ac_try='test -z "$ac_c_werror_flag"
20352 || test ! -s conftest.err'
20353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20354 (eval $ac_try) 2>&5
20356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20357 (exit $ac_status); }; } &&
20358 { ac_try='test -s conftest.$ac_objext'
20359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20360 (eval $ac_try) 2>&5
20362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20363 (exit $ac_status); }; }; then
20364 ac_cv_struct_tm=time.h
20366 echo "$as_me: failed program was:" >&5
20367 sed 's/^/| /' conftest.$ac_ext >&5
20369 ac_cv_struct_tm=sys/time.h
20371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20373 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20374 echo "${ECHO_T}$ac_cv_struct_tm" >&6
20375 if test $ac_cv_struct_tm = sys/time.h; then
20377 cat >>confdefs.h <<\_ACEOF
20378 #define TM_IN_SYS_TIME 1
20383 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
20384 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
20385 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20386 echo $ECHO_N "(cached) $ECHO_C" >&6
20388 cat >conftest.$ac_ext <<_ACEOF
20391 cat confdefs.h >>conftest.$ac_ext
20392 cat >>conftest.$ac_ext <<_ACEOF
20393 /* end confdefs.h. */
20394 #include <sys/types.h>
20395 #include <$ac_cv_struct_tm>
20401 static struct tm ac_aggr;
20402 if (ac_aggr.tm_zone)
20408 rm -f conftest.$ac_objext
20409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20410 (eval $ac_compile) 2>conftest.er1
20412 grep -v '^ *+' conftest.er1 >conftest.err
20414 cat conftest.err >&5
20415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20416 (exit $ac_status); } &&
20417 { ac_try='test -z "$ac_c_werror_flag"
20418 || test ! -s conftest.err'
20419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20420 (eval $ac_try) 2>&5
20422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20423 (exit $ac_status); }; } &&
20424 { ac_try='test -s conftest.$ac_objext'
20425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20426 (eval $ac_try) 2>&5
20428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20429 (exit $ac_status); }; }; then
20430 ac_cv_member_struct_tm_tm_zone=yes
20432 echo "$as_me: failed program was:" >&5
20433 sed 's/^/| /' conftest.$ac_ext >&5
20435 cat >conftest.$ac_ext <<_ACEOF
20438 cat confdefs.h >>conftest.$ac_ext
20439 cat >>conftest.$ac_ext <<_ACEOF
20440 /* end confdefs.h. */
20441 #include <sys/types.h>
20442 #include <$ac_cv_struct_tm>
20448 static struct tm ac_aggr;
20449 if (sizeof ac_aggr.tm_zone)
20455 rm -f conftest.$ac_objext
20456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20457 (eval $ac_compile) 2>conftest.er1
20459 grep -v '^ *+' conftest.er1 >conftest.err
20461 cat conftest.err >&5
20462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20463 (exit $ac_status); } &&
20464 { ac_try='test -z "$ac_c_werror_flag"
20465 || test ! -s conftest.err'
20466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20467 (eval $ac_try) 2>&5
20469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20470 (exit $ac_status); }; } &&
20471 { ac_try='test -s conftest.$ac_objext'
20472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20473 (eval $ac_try) 2>&5
20475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20476 (exit $ac_status); }; }; then
20477 ac_cv_member_struct_tm_tm_zone=yes
20479 echo "$as_me: failed program was:" >&5
20480 sed 's/^/| /' conftest.$ac_ext >&5
20482 ac_cv_member_struct_tm_tm_zone=no
20484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20488 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
20489 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
20490 if test $ac_cv_member_struct_tm_tm_zone = yes; then
20492 cat >>confdefs.h <<_ACEOF
20493 #define HAVE_STRUCT_TM_TM_ZONE 1
20499 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
20501 cat >>confdefs.h <<\_ACEOF
20502 #define HAVE_TM_ZONE 1
20506 echo "$as_me:$LINENO: checking for tzname" >&5
20507 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
20508 if test "${ac_cv_var_tzname+set}" = set; then
20509 echo $ECHO_N "(cached) $ECHO_C" >&6
20511 cat >conftest.$ac_ext <<_ACEOF
20514 cat confdefs.h >>conftest.$ac_ext
20515 cat >>conftest.$ac_ext <<_ACEOF
20516 /* end confdefs.h. */
20518 #ifndef tzname /* For SGI. */
20519 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
20530 rm -f conftest.$ac_objext conftest$ac_exeext
20531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20532 (eval $ac_link) 2>conftest.er1
20534 grep -v '^ *+' conftest.er1 >conftest.err
20536 cat conftest.err >&5
20537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20538 (exit $ac_status); } &&
20539 { ac_try='test -z "$ac_c_werror_flag"
20540 || test ! -s conftest.err'
20541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20542 (eval $ac_try) 2>&5
20544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20545 (exit $ac_status); }; } &&
20546 { ac_try='test -s conftest$ac_exeext'
20547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20548 (eval $ac_try) 2>&5
20550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20551 (exit $ac_status); }; }; then
20552 ac_cv_var_tzname=yes
20554 echo "$as_me: failed program was:" >&5
20555 sed 's/^/| /' conftest.$ac_ext >&5
20557 ac_cv_var_tzname=no
20559 rm -f conftest.err conftest.$ac_objext \
20560 conftest$ac_exeext conftest.$ac_ext
20562 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
20563 echo "${ECHO_T}$ac_cv_var_tzname" >&6
20564 if test $ac_cv_var_tzname = yes; then
20566 cat >>confdefs.h <<\_ACEOF
20567 #define HAVE_TZNAME 1
20574 echo "$as_me:$LINENO: checking for utime.h" >&5
20575 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
20576 if test "${ba_cv_header_utime_h+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. */
20586 #include <sys/types.h>
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 ba_cv_header_utime_h=yes
20620 echo "$as_me: failed program was:" >&5
20621 sed 's/^/| /' conftest.$ac_ext >&5
20623 ba_cv_header_utime_h=no
20625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20627 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
20628 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
20629 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
20630 #define HAVE_UTIME_H 1
20634 echo "$as_me:$LINENO: checking for socklen_t" >&5
20635 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
20636 if test "${ba_cv_header_socklen_t+set}" = set; then
20637 echo $ECHO_N "(cached) $ECHO_C" >&6
20639 cat >conftest.$ac_ext <<_ACEOF
20642 cat confdefs.h >>conftest.$ac_ext
20643 cat >>conftest.$ac_ext <<_ACEOF
20644 /* end confdefs.h. */
20646 #include <sys/types.h>
20647 #include <sys/socket.h>
20656 rm -f conftest.$ac_objext
20657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20658 (eval $ac_compile) 2>conftest.er1
20660 grep -v '^ *+' conftest.er1 >conftest.err
20662 cat conftest.err >&5
20663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20664 (exit $ac_status); } &&
20665 { ac_try='test -z "$ac_c_werror_flag"
20666 || test ! -s conftest.err'
20667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20668 (eval $ac_try) 2>&5
20670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20671 (exit $ac_status); }; } &&
20672 { ac_try='test -s conftest.$ac_objext'
20673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20674 (eval $ac_try) 2>&5
20676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20677 (exit $ac_status); }; }; then
20678 ba_cv_header_socklen_t=yes
20680 echo "$as_me: failed program was:" >&5
20681 sed 's/^/| /' conftest.$ac_ext >&5
20683 ba_cv_header_socklen_t=no
20685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20687 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
20688 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
20689 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
20690 #define HAVE_SOCKLEN_T 1
20694 echo "$as_me:$LINENO: checking for bigendian" >&5
20695 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
20696 if test "${ba_cv_bigendian+set}" = set; then
20697 echo $ECHO_N "(cached) $ECHO_C" >&6
20699 if test "$cross_compiling" = yes; then
20702 cat >conftest.$ac_ext <<_ACEOF
20705 cat confdefs.h >>conftest.$ac_ext
20706 cat >>conftest.$ac_ext <<_ACEOF
20707 /* end confdefs.h. */
20708 main(){long a=1L; char *p=(char *)&a; exit(*p);}
20710 rm -f conftest$ac_exeext
20711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20712 (eval $ac_link) 2>&5
20714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20715 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20717 (eval $ac_try) 2>&5
20719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20720 (exit $ac_status); }; }; then
20721 ba_cv_bigendian=yes
20723 echo "$as_me: program exited with status $ac_status" >&5
20724 echo "$as_me: failed program was:" >&5
20725 sed 's/^/| /' conftest.$ac_ext >&5
20727 ( exit $ac_status )
20730 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20733 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
20734 echo "${ECHO_T}$ba_cv_bigendian" >&6
20735 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
20736 #define HAVE_BIGENDIAN 1
20741 ac_cpp='$CXXCPP $CPPFLAGS'
20742 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20743 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20744 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20747 echo "$as_me:$LINENO: checking for typeof" >&5
20748 echo $ECHO_N "checking for typeof... $ECHO_C" >&6
20749 if test "${ba_cv_have_typeof+set}" = set; then
20750 echo $ECHO_N "(cached) $ECHO_C" >&6
20752 if test "$cross_compiling" = yes; then
20753 ba_cv_have_typeof=no
20755 cat >conftest.$ac_ext <<_ACEOF
20758 cat confdefs.h >>conftest.$ac_ext
20759 cat >>conftest.$ac_ext <<_ACEOF
20760 /* end confdefs.h. */
20761 main(){char *a = 0; a = (typeof a)a;}
20763 rm -f conftest$ac_exeext
20764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20765 (eval $ac_link) 2>&5
20767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20768 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20770 (eval $ac_try) 2>&5
20772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20773 (exit $ac_status); }; }; then
20774 ba_cv_have_typeof=yes
20776 echo "$as_me: program exited with status $ac_status" >&5
20777 echo "$as_me: failed program was:" >&5
20778 sed 's/^/| /' conftest.$ac_ext >&5
20780 ( exit $ac_status )
20781 ba_cv_have_typeof=no
20783 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20786 echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
20787 echo "${ECHO_T}$ba_cv_have_typeof" >&6
20788 test $ba_cv_have_typeof = yes &&
20789 cat >>confdefs.h <<\_ACEOF
20790 #define HAVE_TYPEOF 1
20794 ac_cpp='$CPP $CPPFLAGS'
20795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20800 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20801 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20802 if test "${ac_cv_c_const+set}" = set; then
20803 echo $ECHO_N "(cached) $ECHO_C" >&6
20805 cat >conftest.$ac_ext <<_ACEOF
20808 cat confdefs.h >>conftest.$ac_ext
20809 cat >>conftest.$ac_ext <<_ACEOF
20810 /* end confdefs.h. */
20815 /* FIXME: Include the comments suggested by Paul. */
20816 #ifndef __cplusplus
20817 /* Ultrix mips cc rejects this. */
20818 typedef int charset[2];
20820 /* SunOS 4.1.1 cc rejects this. */
20821 char const *const *ccp;
20823 /* NEC SVR4.0.2 mips cc rejects this. */
20824 struct point {int x, y;};
20825 static struct point const zero = {0,0};
20826 /* AIX XL C 1.02.0.0 rejects this.
20827 It does not let you subtract one const X* pointer from another in
20828 an arm of an if-expression whose if-part is not a constant
20830 const char *g = "string";
20831 ccp = &g + (g ? g-g : 0);
20832 /* HPUX 7.0 cc rejects these. */
20835 ccp = (char const *const *) p;
20836 { /* SCO 3.2v4 cc rejects this. */
20838 char const *s = 0 ? (char *) 0 : (char const *) 0;
20842 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20843 int x[] = {25, 17};
20844 const int *foo = &x[0];
20847 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20848 typedef const int *iptr;
20852 { /* AIX XL C 1.02.0.0 rejects this saying
20853 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20854 struct s { int j; const int *ap[3]; };
20855 struct s *b; b->j = 5;
20857 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20858 const int foo = 10;
20866 rm -f conftest.$ac_objext
20867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20868 (eval $ac_compile) 2>conftest.er1
20870 grep -v '^ *+' conftest.er1 >conftest.err
20872 cat conftest.err >&5
20873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20874 (exit $ac_status); } &&
20875 { ac_try='test -z "$ac_c_werror_flag"
20876 || test ! -s conftest.err'
20877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20878 (eval $ac_try) 2>&5
20880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20881 (exit $ac_status); }; } &&
20882 { ac_try='test -s conftest.$ac_objext'
20883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20884 (eval $ac_try) 2>&5
20886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20887 (exit $ac_status); }; }; then
20890 echo "$as_me: failed program was:" >&5
20891 sed 's/^/| /' conftest.$ac_ext >&5
20895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20897 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20898 echo "${ECHO_T}$ac_cv_c_const" >&6
20899 if test $ac_cv_c_const = no; then
20901 cat >>confdefs.h <<\_ACEOF
20909 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
20910 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
20912 # The order of these tests is important.
20913 cat >conftest.$ac_ext <<_ACEOF
20916 cat confdefs.h >>conftest.$ac_ext
20917 cat >>conftest.$ac_ext <<_ACEOF
20918 /* end confdefs.h. */
20919 #include <sys/statvfs.h>
20920 #include <sys/fstyp.h>
20922 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20923 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20925 grep -v '^ *+' conftest.er1 >conftest.err
20927 cat conftest.err >&5
20928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20929 (exit $ac_status); } >/dev/null; then
20930 if test -s conftest.err; then
20931 ac_cpp_err=$ac_c_preproc_warn_flag
20932 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20939 if test -z "$ac_cpp_err"; then
20940 cat >>confdefs.h <<\_ACEOF
20941 #define FSTYPE_STATVFS 1
20945 echo "$as_me: failed program was:" >&5
20946 sed 's/^/| /' conftest.$ac_ext >&5
20950 rm -f conftest.err conftest.$ac_ext
20951 if test $fstype = no; then
20952 cat >conftest.$ac_ext <<_ACEOF
20955 cat confdefs.h >>conftest.$ac_ext
20956 cat >>conftest.$ac_ext <<_ACEOF
20957 /* end confdefs.h. */
20958 #include <sys/statfs.h>
20959 #include <sys/fstyp.h>
20961 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20962 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20964 grep -v '^ *+' conftest.er1 >conftest.err
20966 cat conftest.err >&5
20967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20968 (exit $ac_status); } >/dev/null; then
20969 if test -s conftest.err; then
20970 ac_cpp_err=$ac_c_preproc_warn_flag
20971 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20978 if test -z "$ac_cpp_err"; then
20979 cat >>confdefs.h <<\_ACEOF
20980 #define FSTYPE_USG_STATFS 1
20984 echo "$as_me: failed program was:" >&5
20985 sed 's/^/| /' conftest.$ac_ext >&5
20989 rm -f conftest.err conftest.$ac_ext
20991 if test $fstype = no; then
20992 cat >conftest.$ac_ext <<_ACEOF
20995 cat confdefs.h >>conftest.$ac_ext
20996 cat >>conftest.$ac_ext <<_ACEOF
20997 /* end confdefs.h. */
20998 #include <sys/statfs.h>
20999 #include <sys/vmount.h>
21001 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21002 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21004 grep -v '^ *+' conftest.er1 >conftest.err
21006 cat conftest.err >&5
21007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21008 (exit $ac_status); } >/dev/null; then
21009 if test -s conftest.err; then
21010 ac_cpp_err=$ac_c_preproc_warn_flag
21011 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21018 if test -z "$ac_cpp_err"; then
21019 cat >>confdefs.h <<\_ACEOF
21020 #define FSTYPE_AIX_STATFS 1
21024 echo "$as_me: failed program was:" >&5
21025 sed 's/^/| /' conftest.$ac_ext >&5
21029 rm -f conftest.err conftest.$ac_ext
21031 if test $fstype = no; then
21032 cat >conftest.$ac_ext <<_ACEOF
21035 cat confdefs.h >>conftest.$ac_ext
21036 cat >>conftest.$ac_ext <<_ACEOF
21037 /* end confdefs.h. */
21038 #include <mntent.h>
21040 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21041 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21043 grep -v '^ *+' conftest.er1 >conftest.err
21045 cat conftest.err >&5
21046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21047 (exit $ac_status); } >/dev/null; then
21048 if test -s conftest.err; then
21049 ac_cpp_err=$ac_c_preproc_warn_flag
21050 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21057 if test -z "$ac_cpp_err"; then
21058 cat >>confdefs.h <<\_ACEOF
21059 #define FSTYPE_MNTENT 1
21063 echo "$as_me: failed program was:" >&5
21064 sed 's/^/| /' conftest.$ac_ext >&5
21068 rm -f conftest.err conftest.$ac_ext
21070 if test $fstype = no; then
21071 cat >conftest.$ac_ext <<_ACEOF
21074 cat confdefs.h >>conftest.$ac_ext
21075 cat >>conftest.$ac_ext <<_ACEOF
21076 /* end confdefs.h. */
21077 #include <sys/mount.h>
21080 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21081 $EGREP "f_type;" >/dev/null 2>&1; then
21082 cat >>confdefs.h <<\_ACEOF
21083 #define FSTYPE_STATFS 1
21090 if test $fstype = no; then
21091 cat >conftest.$ac_ext <<_ACEOF
21094 cat confdefs.h >>conftest.$ac_ext
21095 cat >>conftest.$ac_ext <<_ACEOF
21096 /* end confdefs.h. */
21097 #include <sys/mount.h>
21098 #include <sys/fs_types.h>
21100 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21101 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21103 grep -v '^ *+' conftest.er1 >conftest.err
21105 cat conftest.err >&5
21106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21107 (exit $ac_status); } >/dev/null; then
21108 if test -s conftest.err; then
21109 ac_cpp_err=$ac_c_preproc_warn_flag
21110 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21117 if test -z "$ac_cpp_err"; then
21118 cat >>confdefs.h <<\_ACEOF
21119 #define FSTYPE_GETMNT 1
21123 echo "$as_me: failed program was:" >&5
21124 sed 's/^/| /' conftest.$ac_ext >&5
21128 rm -f conftest.err conftest.$ac_ext
21130 echo "$as_me:$LINENO: result: $fstype" >&5
21131 echo "${ECHO_T}$fstype" >&6
21133 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21134 echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
21135 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6
21136 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21137 echo $ECHO_N "(cached) $ECHO_C" >&6
21139 echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
21140 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6
21142 # Is the header compilable?
21143 echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
21144 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6
21145 cat >conftest.$ac_ext <<_ACEOF
21148 cat confdefs.h >>conftest.$ac_ext
21149 cat >>conftest.$ac_ext <<_ACEOF
21150 /* end confdefs.h. */
21151 $ac_includes_default
21152 #include <sys/statvfs.h>
21154 rm -f conftest.$ac_objext
21155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21156 (eval $ac_compile) 2>conftest.er1
21158 grep -v '^ *+' conftest.er1 >conftest.err
21160 cat conftest.err >&5
21161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21162 (exit $ac_status); } &&
21163 { ac_try='test -z "$ac_c_werror_flag"
21164 || test ! -s conftest.err'
21165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21166 (eval $ac_try) 2>&5
21168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21169 (exit $ac_status); }; } &&
21170 { ac_try='test -s conftest.$ac_objext'
21171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21172 (eval $ac_try) 2>&5
21174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21175 (exit $ac_status); }; }; then
21176 ac_header_compiler=yes
21178 echo "$as_me: failed program was:" >&5
21179 sed 's/^/| /' conftest.$ac_ext >&5
21181 ac_header_compiler=no
21183 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21184 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21185 echo "${ECHO_T}$ac_header_compiler" >&6
21187 # Is the header present?
21188 echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
21189 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6
21190 cat >conftest.$ac_ext <<_ACEOF
21193 cat confdefs.h >>conftest.$ac_ext
21194 cat >>conftest.$ac_ext <<_ACEOF
21195 /* end confdefs.h. */
21196 #include <sys/statvfs.h>
21198 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21199 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21201 grep -v '^ *+' conftest.er1 >conftest.err
21203 cat conftest.err >&5
21204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21205 (exit $ac_status); } >/dev/null; then
21206 if test -s conftest.err; then
21207 ac_cpp_err=$ac_c_preproc_warn_flag
21208 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21215 if test -z "$ac_cpp_err"; then
21216 ac_header_preproc=yes
21218 echo "$as_me: failed program was:" >&5
21219 sed 's/^/| /' conftest.$ac_ext >&5
21221 ac_header_preproc=no
21223 rm -f conftest.err conftest.$ac_ext
21224 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21225 echo "${ECHO_T}$ac_header_preproc" >&6
21227 # So? What about this header?
21228 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21230 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
21231 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21232 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
21233 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
21234 ac_header_preproc=yes
21237 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
21238 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
21239 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&5
21240 echo "$as_me: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&2;}
21241 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
21242 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
21243 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&5
21244 echo "$as_me: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&2;}
21245 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
21246 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
21247 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
21248 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
21251 ## ------------------------------------------ ##
21252 ## Report this to the AC_PACKAGE_NAME lists. ##
21253 ## ------------------------------------------ ##
21256 sed "s/^/$as_me: WARNING: /" >&2
21259 echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
21260 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6
21261 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21262 echo $ECHO_N "(cached) $ECHO_C" >&6
21264 ac_cv_header_sys_statvfs_h=$ac_header_preproc
21266 echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
21267 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6
21270 if test $ac_cv_header_sys_statvfs_h = yes; then
21272 cat >>confdefs.h <<\_ACEOF
21273 #define HAVE_SYS_STATVFS_H 1
21280 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
21281 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
21282 if test "${ac_cv_type_signal+set}" = set; then
21283 echo $ECHO_N "(cached) $ECHO_C" >&6
21285 cat >conftest.$ac_ext <<_ACEOF
21288 cat confdefs.h >>conftest.$ac_ext
21289 cat >>conftest.$ac_ext <<_ACEOF
21290 /* end confdefs.h. */
21291 #include <sys/types.h>
21292 #include <signal.h>
21297 extern "C" void (*signal (int, void (*)(int)))(int);
21299 void (*signal ()) ();
21310 rm -f conftest.$ac_objext
21311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21312 (eval $ac_compile) 2>conftest.er1
21314 grep -v '^ *+' conftest.er1 >conftest.err
21316 cat conftest.err >&5
21317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21318 (exit $ac_status); } &&
21319 { ac_try='test -z "$ac_c_werror_flag"
21320 || test ! -s conftest.err'
21321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21322 (eval $ac_try) 2>&5
21324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21325 (exit $ac_status); }; } &&
21326 { ac_try='test -s conftest.$ac_objext'
21327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21328 (eval $ac_try) 2>&5
21330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21331 (exit $ac_status); }; }; then
21332 ac_cv_type_signal=void
21334 echo "$as_me: failed program was:" >&5
21335 sed 's/^/| /' conftest.$ac_ext >&5
21337 ac_cv_type_signal=int
21339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21341 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
21342 echo "${ECHO_T}$ac_cv_type_signal" >&6
21344 cat >>confdefs.h <<_ACEOF
21345 #define RETSIGTYPE $ac_cv_type_signal
21350 echo "$as_me:$LINENO: checking for type of signal functions" >&5
21351 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
21352 if test "${bash_cv_signal_vintage+set}" = set; then
21353 echo $ECHO_N "(cached) $ECHO_C" >&6
21356 cat >conftest.$ac_ext <<_ACEOF
21359 cat confdefs.h >>conftest.$ac_ext
21360 cat >>conftest.$ac_ext <<_ACEOF
21361 /* end confdefs.h. */
21362 #include <signal.h>
21368 struct sigaction sa;
21369 sigemptyset(&ss); sigsuspend(&ss);
21370 sigaction(SIGINT, &sa, (struct sigaction *) 0);
21371 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
21377 rm -f conftest.$ac_objext conftest$ac_exeext
21378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21379 (eval $ac_link) 2>conftest.er1
21381 grep -v '^ *+' conftest.er1 >conftest.err
21383 cat conftest.err >&5
21384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21385 (exit $ac_status); } &&
21386 { ac_try='test -z "$ac_c_werror_flag"
21387 || test ! -s conftest.err'
21388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21389 (eval $ac_try) 2>&5
21391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21392 (exit $ac_status); }; } &&
21393 { ac_try='test -s conftest$ac_exeext'
21394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21395 (eval $ac_try) 2>&5
21397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21398 (exit $ac_status); }; }; then
21399 bash_cv_signal_vintage="posix"
21401 echo "$as_me: failed program was:" >&5
21402 sed 's/^/| /' conftest.$ac_ext >&5
21405 cat >conftest.$ac_ext <<_ACEOF
21408 cat confdefs.h >>conftest.$ac_ext
21409 cat >>conftest.$ac_ext <<_ACEOF
21410 /* end confdefs.h. */
21411 #include <signal.h>
21416 int mask = sigmask(SIGINT);
21417 sigsetmask(mask); sigblock(mask); sigpause(mask);
21423 rm -f conftest.$ac_objext conftest$ac_exeext
21424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21425 (eval $ac_link) 2>conftest.er1
21427 grep -v '^ *+' conftest.er1 >conftest.err
21429 cat conftest.err >&5
21430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21431 (exit $ac_status); } &&
21432 { ac_try='test -z "$ac_c_werror_flag"
21433 || test ! -s conftest.err'
21434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21435 (eval $ac_try) 2>&5
21437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21438 (exit $ac_status); }; } &&
21439 { ac_try='test -s conftest$ac_exeext'
21440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21441 (eval $ac_try) 2>&5
21443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21444 (exit $ac_status); }; }; then
21445 bash_cv_signal_vintage="4.2bsd"
21447 echo "$as_me: failed program was:" >&5
21448 sed 's/^/| /' conftest.$ac_ext >&5
21451 cat >conftest.$ac_ext <<_ACEOF
21454 cat confdefs.h >>conftest.$ac_ext
21455 cat >>conftest.$ac_ext <<_ACEOF
21456 /* end confdefs.h. */
21458 #include <signal.h>
21459 RETSIGTYPE foo() { }
21464 int mask = sigmask(SIGINT);
21465 sigset(SIGINT, foo); sigrelse(SIGINT);
21466 sighold(SIGINT); sigpause(SIGINT);
21472 rm -f conftest.$ac_objext conftest$ac_exeext
21473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21474 (eval $ac_link) 2>conftest.er1
21476 grep -v '^ *+' conftest.er1 >conftest.err
21478 cat conftest.err >&5
21479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21480 (exit $ac_status); } &&
21481 { ac_try='test -z "$ac_c_werror_flag"
21482 || test ! -s conftest.err'
21483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21484 (eval $ac_try) 2>&5
21486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21487 (exit $ac_status); }; } &&
21488 { ac_try='test -s conftest$ac_exeext'
21489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21490 (eval $ac_try) 2>&5
21492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21493 (exit $ac_status); }; }; then
21494 bash_cv_signal_vintage="svr3"
21496 echo "$as_me: failed program was:" >&5
21497 sed 's/^/| /' conftest.$ac_ext >&5
21499 bash_cv_signal_vintage="v7"
21502 rm -f conftest.err conftest.$ac_objext \
21503 conftest$ac_exeext conftest.$ac_ext
21506 rm -f conftest.err conftest.$ac_objext \
21507 conftest$ac_exeext conftest.$ac_ext
21510 rm -f conftest.err conftest.$ac_objext \
21511 conftest$ac_exeext conftest.$ac_ext
21515 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
21516 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
21517 if test "$bash_cv_signal_vintage" = "posix"; then
21518 cat >>confdefs.h <<\_ACEOF
21519 #define HAVE_POSIX_SIGNALS 1
21522 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
21523 cat >>confdefs.h <<\_ACEOF
21524 #define HAVE_BSD_SIGNALS 1
21527 elif test "$bash_cv_signal_vintage" = "svr3"; then
21528 cat >>confdefs.h <<\_ACEOF
21529 #define HAVE_USG_SIGHOLD 1
21534 echo "$as_me:$LINENO: checking for mode_t" >&5
21535 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
21536 if test "${ac_cv_type_mode_t+set}" = set; then
21537 echo $ECHO_N "(cached) $ECHO_C" >&6
21539 cat >conftest.$ac_ext <<_ACEOF
21542 cat confdefs.h >>conftest.$ac_ext
21543 cat >>conftest.$ac_ext <<_ACEOF
21544 /* end confdefs.h. */
21545 $ac_includes_default
21551 if (sizeof (mode_t))
21557 rm -f conftest.$ac_objext
21558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21559 (eval $ac_compile) 2>conftest.er1
21561 grep -v '^ *+' conftest.er1 >conftest.err
21563 cat conftest.err >&5
21564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21565 (exit $ac_status); } &&
21566 { ac_try='test -z "$ac_c_werror_flag"
21567 || test ! -s conftest.err'
21568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21569 (eval $ac_try) 2>&5
21571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21572 (exit $ac_status); }; } &&
21573 { ac_try='test -s conftest.$ac_objext'
21574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21575 (eval $ac_try) 2>&5
21577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21578 (exit $ac_status); }; }; then
21579 ac_cv_type_mode_t=yes
21581 echo "$as_me: failed program was:" >&5
21582 sed 's/^/| /' conftest.$ac_ext >&5
21584 ac_cv_type_mode_t=no
21586 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21588 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
21589 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
21590 if test $ac_cv_type_mode_t = yes; then
21594 cat >>confdefs.h <<_ACEOF
21600 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
21601 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
21602 if test "${ac_cv_type_uid_t+set}" = set; then
21603 echo $ECHO_N "(cached) $ECHO_C" >&6
21605 cat >conftest.$ac_ext <<_ACEOF
21608 cat confdefs.h >>conftest.$ac_ext
21609 cat >>conftest.$ac_ext <<_ACEOF
21610 /* end confdefs.h. */
21611 #include <sys/types.h>
21614 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21615 $EGREP "uid_t" >/dev/null 2>&1; then
21616 ac_cv_type_uid_t=yes
21618 ac_cv_type_uid_t=no
21623 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
21624 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
21625 if test $ac_cv_type_uid_t = no; then
21627 cat >>confdefs.h <<\_ACEOF
21632 cat >>confdefs.h <<\_ACEOF
21638 echo "$as_me:$LINENO: checking for size_t" >&5
21639 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21640 if test "${ac_cv_type_size_t+set}" = set; then
21641 echo $ECHO_N "(cached) $ECHO_C" >&6
21643 cat >conftest.$ac_ext <<_ACEOF
21646 cat confdefs.h >>conftest.$ac_ext
21647 cat >>conftest.$ac_ext <<_ACEOF
21648 /* end confdefs.h. */
21649 $ac_includes_default
21655 if (sizeof (size_t))
21661 rm -f conftest.$ac_objext
21662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21663 (eval $ac_compile) 2>conftest.er1
21665 grep -v '^ *+' conftest.er1 >conftest.err
21667 cat conftest.err >&5
21668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21669 (exit $ac_status); } &&
21670 { ac_try='test -z "$ac_c_werror_flag"
21671 || test ! -s conftest.err'
21672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21673 (eval $ac_try) 2>&5
21675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21676 (exit $ac_status); }; } &&
21677 { ac_try='test -s conftest.$ac_objext'
21678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21679 (eval $ac_try) 2>&5
21681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21682 (exit $ac_status); }; }; then
21683 ac_cv_type_size_t=yes
21685 echo "$as_me: failed program was:" >&5
21686 sed 's/^/| /' conftest.$ac_ext >&5
21688 ac_cv_type_size_t=no
21690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21692 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21693 echo "${ECHO_T}$ac_cv_type_size_t" >&6
21694 if test $ac_cv_type_size_t = yes; then
21698 cat >>confdefs.h <<_ACEOF
21699 #define size_t unsigned
21704 echo "$as_me:$LINENO: checking for pid_t" >&5
21705 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
21706 if test "${ac_cv_type_pid_t+set}" = set; then
21707 echo $ECHO_N "(cached) $ECHO_C" >&6
21709 cat >conftest.$ac_ext <<_ACEOF
21712 cat confdefs.h >>conftest.$ac_ext
21713 cat >>conftest.$ac_ext <<_ACEOF
21714 /* end confdefs.h. */
21715 $ac_includes_default
21721 if (sizeof (pid_t))
21727 rm -f conftest.$ac_objext
21728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21729 (eval $ac_compile) 2>conftest.er1
21731 grep -v '^ *+' conftest.er1 >conftest.err
21733 cat conftest.err >&5
21734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21735 (exit $ac_status); } &&
21736 { ac_try='test -z "$ac_c_werror_flag"
21737 || test ! -s conftest.err'
21738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21739 (eval $ac_try) 2>&5
21741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21742 (exit $ac_status); }; } &&
21743 { ac_try='test -s conftest.$ac_objext'
21744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21745 (eval $ac_try) 2>&5
21747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21748 (exit $ac_status); }; }; then
21749 ac_cv_type_pid_t=yes
21751 echo "$as_me: failed program was:" >&5
21752 sed 's/^/| /' conftest.$ac_ext >&5
21754 ac_cv_type_pid_t=no
21756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21758 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21759 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
21760 if test $ac_cv_type_pid_t = yes; then
21764 cat >>confdefs.h <<_ACEOF
21770 echo "$as_me:$LINENO: checking for off_t" >&5
21771 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
21772 if test "${ac_cv_type_off_t+set}" = set; then
21773 echo $ECHO_N "(cached) $ECHO_C" >&6
21775 cat >conftest.$ac_ext <<_ACEOF
21778 cat confdefs.h >>conftest.$ac_ext
21779 cat >>conftest.$ac_ext <<_ACEOF
21780 /* end confdefs.h. */
21781 $ac_includes_default
21787 if (sizeof (off_t))
21793 rm -f conftest.$ac_objext
21794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21795 (eval $ac_compile) 2>conftest.er1
21797 grep -v '^ *+' conftest.er1 >conftest.err
21799 cat conftest.err >&5
21800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21801 (exit $ac_status); } &&
21802 { ac_try='test -z "$ac_c_werror_flag"
21803 || test ! -s conftest.err'
21804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21805 (eval $ac_try) 2>&5
21807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21808 (exit $ac_status); }; } &&
21809 { ac_try='test -s conftest.$ac_objext'
21810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21811 (eval $ac_try) 2>&5
21813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21814 (exit $ac_status); }; }; then
21815 ac_cv_type_off_t=yes
21817 echo "$as_me: failed program was:" >&5
21818 sed 's/^/| /' conftest.$ac_ext >&5
21820 ac_cv_type_off_t=no
21822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21824 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
21825 echo "${ECHO_T}$ac_cv_type_off_t" >&6
21826 if test $ac_cv_type_off_t = yes; then
21830 cat >>confdefs.h <<_ACEOF
21836 echo "$as_me:$LINENO: checking for ino_t" >&5
21837 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
21838 if test "${ac_cv_type_ino_t+set}" = set; then
21839 echo $ECHO_N "(cached) $ECHO_C" >&6
21841 cat >conftest.$ac_ext <<_ACEOF
21844 cat confdefs.h >>conftest.$ac_ext
21845 cat >>conftest.$ac_ext <<_ACEOF
21846 /* end confdefs.h. */
21847 $ac_includes_default
21853 if (sizeof (ino_t))
21859 rm -f conftest.$ac_objext
21860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21861 (eval $ac_compile) 2>conftest.er1
21863 grep -v '^ *+' conftest.er1 >conftest.err
21865 cat conftest.err >&5
21866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21867 (exit $ac_status); } &&
21868 { ac_try='test -z "$ac_c_werror_flag"
21869 || test ! -s conftest.err'
21870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21871 (eval $ac_try) 2>&5
21873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21874 (exit $ac_status); }; } &&
21875 { ac_try='test -s conftest.$ac_objext'
21876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21877 (eval $ac_try) 2>&5
21879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21880 (exit $ac_status); }; }; then
21881 ac_cv_type_ino_t=yes
21883 echo "$as_me: failed program was:" >&5
21884 sed 's/^/| /' conftest.$ac_ext >&5
21886 ac_cv_type_ino_t=no
21888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21890 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
21891 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
21892 if test $ac_cv_type_ino_t = yes; then
21896 cat >>confdefs.h <<_ACEOF
21897 #define ino_t unsigned long
21902 echo "$as_me:$LINENO: checking for dev_t" >&5
21903 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
21904 if test "${ac_cv_type_dev_t+set}" = set; then
21905 echo $ECHO_N "(cached) $ECHO_C" >&6
21907 cat >conftest.$ac_ext <<_ACEOF
21910 cat confdefs.h >>conftest.$ac_ext
21911 cat >>conftest.$ac_ext <<_ACEOF
21912 /* end confdefs.h. */
21913 $ac_includes_default
21919 if (sizeof (dev_t))
21925 rm -f conftest.$ac_objext
21926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21927 (eval $ac_compile) 2>conftest.er1
21929 grep -v '^ *+' conftest.er1 >conftest.err
21931 cat conftest.err >&5
21932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21933 (exit $ac_status); } &&
21934 { ac_try='test -z "$ac_c_werror_flag"
21935 || test ! -s conftest.err'
21936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21937 (eval $ac_try) 2>&5
21939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21940 (exit $ac_status); }; } &&
21941 { ac_try='test -s conftest.$ac_objext'
21942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21943 (eval $ac_try) 2>&5
21945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21946 (exit $ac_status); }; }; then
21947 ac_cv_type_dev_t=yes
21949 echo "$as_me: failed program was:" >&5
21950 sed 's/^/| /' conftest.$ac_ext >&5
21952 ac_cv_type_dev_t=no
21954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21956 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
21957 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
21958 if test $ac_cv_type_dev_t = yes; then
21962 cat >>confdefs.h <<_ACEOF
21963 #define dev_t unsigned long
21968 echo "$as_me:$LINENO: checking for daddr_t" >&5
21969 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
21970 if test "${ac_cv_type_daddr_t+set}" = set; then
21971 echo $ECHO_N "(cached) $ECHO_C" >&6
21973 cat >conftest.$ac_ext <<_ACEOF
21976 cat confdefs.h >>conftest.$ac_ext
21977 cat >>conftest.$ac_ext <<_ACEOF
21978 /* end confdefs.h. */
21979 $ac_includes_default
21985 if (sizeof (daddr_t))
21991 rm -f conftest.$ac_objext
21992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21993 (eval $ac_compile) 2>conftest.er1
21995 grep -v '^ *+' conftest.er1 >conftest.err
21997 cat conftest.err >&5
21998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21999 (exit $ac_status); } &&
22000 { ac_try='test -z "$ac_c_werror_flag"
22001 || test ! -s conftest.err'
22002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22003 (eval $ac_try) 2>&5
22005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22006 (exit $ac_status); }; } &&
22007 { ac_try='test -s conftest.$ac_objext'
22008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22009 (eval $ac_try) 2>&5
22011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22012 (exit $ac_status); }; }; then
22013 ac_cv_type_daddr_t=yes
22015 echo "$as_me: failed program was:" >&5
22016 sed 's/^/| /' conftest.$ac_ext >&5
22018 ac_cv_type_daddr_t=no
22020 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22022 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
22023 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
22024 if test $ac_cv_type_daddr_t = yes; then
22028 cat >>confdefs.h <<_ACEOF
22029 #define daddr_t long
22034 echo "$as_me:$LINENO: checking for major_t" >&5
22035 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
22036 if test "${ac_cv_type_major_t+set}" = set; then
22037 echo $ECHO_N "(cached) $ECHO_C" >&6
22039 cat >conftest.$ac_ext <<_ACEOF
22042 cat confdefs.h >>conftest.$ac_ext
22043 cat >>conftest.$ac_ext <<_ACEOF
22044 /* end confdefs.h. */
22045 $ac_includes_default
22051 if (sizeof (major_t))
22057 rm -f conftest.$ac_objext
22058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22059 (eval $ac_compile) 2>conftest.er1
22061 grep -v '^ *+' conftest.er1 >conftest.err
22063 cat conftest.err >&5
22064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22065 (exit $ac_status); } &&
22066 { ac_try='test -z "$ac_c_werror_flag"
22067 || test ! -s conftest.err'
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); }; } &&
22073 { ac_try='test -s conftest.$ac_objext'
22074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22075 (eval $ac_try) 2>&5
22077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22078 (exit $ac_status); }; }; then
22079 ac_cv_type_major_t=yes
22081 echo "$as_me: failed program was:" >&5
22082 sed 's/^/| /' conftest.$ac_ext >&5
22084 ac_cv_type_major_t=no
22086 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22088 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
22089 echo "${ECHO_T}$ac_cv_type_major_t" >&6
22090 if test $ac_cv_type_major_t = yes; then
22094 cat >>confdefs.h <<_ACEOF
22095 #define major_t int
22100 echo "$as_me:$LINENO: checking for minor_t" >&5
22101 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
22102 if test "${ac_cv_type_minor_t+set}" = set; then
22103 echo $ECHO_N "(cached) $ECHO_C" >&6
22105 cat >conftest.$ac_ext <<_ACEOF
22108 cat confdefs.h >>conftest.$ac_ext
22109 cat >>conftest.$ac_ext <<_ACEOF
22110 /* end confdefs.h. */
22111 $ac_includes_default
22117 if (sizeof (minor_t))
22123 rm -f conftest.$ac_objext
22124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22125 (eval $ac_compile) 2>conftest.er1
22127 grep -v '^ *+' conftest.er1 >conftest.err
22129 cat conftest.err >&5
22130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22131 (exit $ac_status); } &&
22132 { ac_try='test -z "$ac_c_werror_flag"
22133 || test ! -s conftest.err'
22134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22135 (eval $ac_try) 2>&5
22137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22138 (exit $ac_status); }; } &&
22139 { ac_try='test -s conftest.$ac_objext'
22140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22141 (eval $ac_try) 2>&5
22143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22144 (exit $ac_status); }; }; then
22145 ac_cv_type_minor_t=yes
22147 echo "$as_me: failed program was:" >&5
22148 sed 's/^/| /' conftest.$ac_ext >&5
22150 ac_cv_type_minor_t=no
22152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22154 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
22155 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
22156 if test $ac_cv_type_minor_t = yes; then
22160 cat >>confdefs.h <<_ACEOF
22161 #define minor_t int
22166 echo "$as_me:$LINENO: checking for ssize_t" >&5
22167 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
22168 if test "${ac_cv_type_ssize_t+set}" = set; then
22169 echo $ECHO_N "(cached) $ECHO_C" >&6
22171 cat >conftest.$ac_ext <<_ACEOF
22174 cat confdefs.h >>conftest.$ac_ext
22175 cat >>conftest.$ac_ext <<_ACEOF
22176 /* end confdefs.h. */
22177 $ac_includes_default
22183 if (sizeof (ssize_t))
22189 rm -f conftest.$ac_objext
22190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22191 (eval $ac_compile) 2>conftest.er1
22193 grep -v '^ *+' conftest.er1 >conftest.err
22195 cat conftest.err >&5
22196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22197 (exit $ac_status); } &&
22198 { ac_try='test -z "$ac_c_werror_flag"
22199 || test ! -s conftest.err'
22200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22201 (eval $ac_try) 2>&5
22203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22204 (exit $ac_status); }; } &&
22205 { ac_try='test -s conftest.$ac_objext'
22206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22207 (eval $ac_try) 2>&5
22209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22210 (exit $ac_status); }; }; then
22211 ac_cv_type_ssize_t=yes
22213 echo "$as_me: failed program was:" >&5
22214 sed 's/^/| /' conftest.$ac_ext >&5
22216 ac_cv_type_ssize_t=no
22218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22220 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
22221 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
22222 if test $ac_cv_type_ssize_t = yes; then
22226 cat >>confdefs.h <<_ACEOF
22227 #define ssize_t int
22232 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
22233 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
22234 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
22235 echo $ECHO_N "(cached) $ECHO_C" >&6
22237 cat >conftest.$ac_ext <<_ACEOF
22240 cat confdefs.h >>conftest.$ac_ext
22241 cat >>conftest.$ac_ext <<_ACEOF
22242 /* end confdefs.h. */
22243 $ac_includes_default
22247 static struct stat ac_aggr;
22248 if (ac_aggr.st_blocks)
22254 rm -f conftest.$ac_objext
22255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22256 (eval $ac_compile) 2>conftest.er1
22258 grep -v '^ *+' conftest.er1 >conftest.err
22260 cat conftest.err >&5
22261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22262 (exit $ac_status); } &&
22263 { ac_try='test -z "$ac_c_werror_flag"
22264 || test ! -s conftest.err'
22265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22266 (eval $ac_try) 2>&5
22268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22269 (exit $ac_status); }; } &&
22270 { ac_try='test -s conftest.$ac_objext'
22271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22272 (eval $ac_try) 2>&5
22274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22275 (exit $ac_status); }; }; then
22276 ac_cv_member_struct_stat_st_blocks=yes
22278 echo "$as_me: failed program was:" >&5
22279 sed 's/^/| /' conftest.$ac_ext >&5
22281 cat >conftest.$ac_ext <<_ACEOF
22284 cat confdefs.h >>conftest.$ac_ext
22285 cat >>conftest.$ac_ext <<_ACEOF
22286 /* end confdefs.h. */
22287 $ac_includes_default
22291 static struct stat ac_aggr;
22292 if (sizeof ac_aggr.st_blocks)
22298 rm -f conftest.$ac_objext
22299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22300 (eval $ac_compile) 2>conftest.er1
22302 grep -v '^ *+' conftest.er1 >conftest.err
22304 cat conftest.err >&5
22305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22306 (exit $ac_status); } &&
22307 { ac_try='test -z "$ac_c_werror_flag"
22308 || test ! -s conftest.err'
22309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22310 (eval $ac_try) 2>&5
22312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22313 (exit $ac_status); }; } &&
22314 { ac_try='test -s conftest.$ac_objext'
22315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22316 (eval $ac_try) 2>&5
22318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22319 (exit $ac_status); }; }; then
22320 ac_cv_member_struct_stat_st_blocks=yes
22322 echo "$as_me: failed program was:" >&5
22323 sed 's/^/| /' conftest.$ac_ext >&5
22325 ac_cv_member_struct_stat_st_blocks=no
22327 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22331 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
22332 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
22333 if test $ac_cv_member_struct_stat_st_blocks = yes; then
22335 cat >>confdefs.h <<_ACEOF
22336 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
22340 cat >>confdefs.h <<\_ACEOF
22341 #define HAVE_ST_BLOCKS 1
22346 "fileblocks.$ac_objext" | \
22347 *" fileblocks.$ac_objext" | \
22348 "fileblocks.$ac_objext "* | \
22349 *" fileblocks.$ac_objext "* ) ;;
22350 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
22357 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
22358 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
22359 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
22360 echo $ECHO_N "(cached) $ECHO_C" >&6
22362 cat >conftest.$ac_ext <<_ACEOF
22365 cat confdefs.h >>conftest.$ac_ext
22366 cat >>conftest.$ac_ext <<_ACEOF
22367 /* end confdefs.h. */
22368 $ac_includes_default
22372 static struct stat ac_aggr;
22373 if (ac_aggr.st_rdev)
22379 rm -f conftest.$ac_objext
22380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22381 (eval $ac_compile) 2>conftest.er1
22383 grep -v '^ *+' conftest.er1 >conftest.err
22385 cat conftest.err >&5
22386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22387 (exit $ac_status); } &&
22388 { ac_try='test -z "$ac_c_werror_flag"
22389 || test ! -s conftest.err'
22390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22391 (eval $ac_try) 2>&5
22393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22394 (exit $ac_status); }; } &&
22395 { ac_try='test -s conftest.$ac_objext'
22396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22397 (eval $ac_try) 2>&5
22399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22400 (exit $ac_status); }; }; then
22401 ac_cv_member_struct_stat_st_rdev=yes
22403 echo "$as_me: failed program was:" >&5
22404 sed 's/^/| /' conftest.$ac_ext >&5
22406 cat >conftest.$ac_ext <<_ACEOF
22409 cat confdefs.h >>conftest.$ac_ext
22410 cat >>conftest.$ac_ext <<_ACEOF
22411 /* end confdefs.h. */
22412 $ac_includes_default
22416 static struct stat ac_aggr;
22417 if (sizeof ac_aggr.st_rdev)
22423 rm -f conftest.$ac_objext
22424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22425 (eval $ac_compile) 2>conftest.er1
22427 grep -v '^ *+' conftest.er1 >conftest.err
22429 cat conftest.err >&5
22430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22431 (exit $ac_status); } &&
22432 { ac_try='test -z "$ac_c_werror_flag"
22433 || test ! -s conftest.err'
22434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22435 (eval $ac_try) 2>&5
22437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22438 (exit $ac_status); }; } &&
22439 { ac_try='test -s conftest.$ac_objext'
22440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22441 (eval $ac_try) 2>&5
22443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22444 (exit $ac_status); }; }; then
22445 ac_cv_member_struct_stat_st_rdev=yes
22447 echo "$as_me: failed program was:" >&5
22448 sed 's/^/| /' conftest.$ac_ext >&5
22450 ac_cv_member_struct_stat_st_rdev=no
22452 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22454 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22456 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
22457 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
22458 if test $ac_cv_member_struct_stat_st_rdev = yes; then
22460 cat >>confdefs.h <<_ACEOF
22461 #define HAVE_STRUCT_STAT_ST_RDEV 1
22465 cat >>confdefs.h <<\_ACEOF
22466 #define HAVE_ST_RDEV 1
22472 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
22473 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
22474 if test "${ac_cv_struct_tm+set}" = set; then
22475 echo $ECHO_N "(cached) $ECHO_C" >&6
22477 cat >conftest.$ac_ext <<_ACEOF
22480 cat confdefs.h >>conftest.$ac_ext
22481 cat >>conftest.$ac_ext <<_ACEOF
22482 /* end confdefs.h. */
22483 #include <sys/types.h>
22489 struct tm *tp; tp->tm_sec;
22494 rm -f conftest.$ac_objext
22495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22496 (eval $ac_compile) 2>conftest.er1
22498 grep -v '^ *+' conftest.er1 >conftest.err
22500 cat conftest.err >&5
22501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22502 (exit $ac_status); } &&
22503 { ac_try='test -z "$ac_c_werror_flag"
22504 || test ! -s conftest.err'
22505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22506 (eval $ac_try) 2>&5
22508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22509 (exit $ac_status); }; } &&
22510 { ac_try='test -s conftest.$ac_objext'
22511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22512 (eval $ac_try) 2>&5
22514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22515 (exit $ac_status); }; }; then
22516 ac_cv_struct_tm=time.h
22518 echo "$as_me: failed program was:" >&5
22519 sed 's/^/| /' conftest.$ac_ext >&5
22521 ac_cv_struct_tm=sys/time.h
22523 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22525 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
22526 echo "${ECHO_T}$ac_cv_struct_tm" >&6
22527 if test $ac_cv_struct_tm = sys/time.h; then
22529 cat >>confdefs.h <<\_ACEOF
22530 #define TM_IN_SYS_TIME 1
22535 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22536 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
22537 if test "${ac_cv_c_const+set}" = set; then
22538 echo $ECHO_N "(cached) $ECHO_C" >&6
22540 cat >conftest.$ac_ext <<_ACEOF
22543 cat confdefs.h >>conftest.$ac_ext
22544 cat >>conftest.$ac_ext <<_ACEOF
22545 /* end confdefs.h. */
22550 /* FIXME: Include the comments suggested by Paul. */
22551 #ifndef __cplusplus
22552 /* Ultrix mips cc rejects this. */
22553 typedef int charset[2];
22555 /* SunOS 4.1.1 cc rejects this. */
22556 char const *const *ccp;
22558 /* NEC SVR4.0.2 mips cc rejects this. */
22559 struct point {int x, y;};
22560 static struct point const zero = {0,0};
22561 /* AIX XL C 1.02.0.0 rejects this.
22562 It does not let you subtract one const X* pointer from another in
22563 an arm of an if-expression whose if-part is not a constant
22565 const char *g = "string";
22566 ccp = &g + (g ? g-g : 0);
22567 /* HPUX 7.0 cc rejects these. */
22570 ccp = (char const *const *) p;
22571 { /* SCO 3.2v4 cc rejects this. */
22573 char const *s = 0 ? (char *) 0 : (char const *) 0;
22577 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22578 int x[] = {25, 17};
22579 const int *foo = &x[0];
22582 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22583 typedef const int *iptr;
22587 { /* AIX XL C 1.02.0.0 rejects this saying
22588 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22589 struct s { int j; const int *ap[3]; };
22590 struct s *b; b->j = 5;
22592 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22593 const int foo = 10;
22601 rm -f conftest.$ac_objext
22602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22603 (eval $ac_compile) 2>conftest.er1
22605 grep -v '^ *+' conftest.er1 >conftest.err
22607 cat conftest.err >&5
22608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22609 (exit $ac_status); } &&
22610 { ac_try='test -z "$ac_c_werror_flag"
22611 || test ! -s conftest.err'
22612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22613 (eval $ac_try) 2>&5
22615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22616 (exit $ac_status); }; } &&
22617 { ac_try='test -s conftest.$ac_objext'
22618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22619 (eval $ac_try) 2>&5
22621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22622 (exit $ac_status); }; }; then
22625 echo "$as_me: failed program was:" >&5
22626 sed 's/^/| /' conftest.$ac_ext >&5
22630 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22632 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22633 echo "${ECHO_T}$ac_cv_c_const" >&6
22634 if test $ac_cv_c_const = no; then
22636 cat >>confdefs.h <<\_ACEOF
22644 echo "$as_me:$LINENO: checking for char" >&5
22645 echo $ECHO_N "checking for char... $ECHO_C" >&6
22646 if test "${ac_cv_type_char+set}" = set; then
22647 echo $ECHO_N "(cached) $ECHO_C" >&6
22649 cat >conftest.$ac_ext <<_ACEOF
22652 cat confdefs.h >>conftest.$ac_ext
22653 cat >>conftest.$ac_ext <<_ACEOF
22654 /* end confdefs.h. */
22655 $ac_includes_default
22667 rm -f conftest.$ac_objext
22668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22669 (eval $ac_compile) 2>conftest.er1
22671 grep -v '^ *+' conftest.er1 >conftest.err
22673 cat conftest.err >&5
22674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22675 (exit $ac_status); } &&
22676 { ac_try='test -z "$ac_c_werror_flag"
22677 || test ! -s conftest.err'
22678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22679 (eval $ac_try) 2>&5
22681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22682 (exit $ac_status); }; } &&
22683 { ac_try='test -s conftest.$ac_objext'
22684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22685 (eval $ac_try) 2>&5
22687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22688 (exit $ac_status); }; }; then
22689 ac_cv_type_char=yes
22691 echo "$as_me: failed program was:" >&5
22692 sed 's/^/| /' conftest.$ac_ext >&5
22696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22698 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
22699 echo "${ECHO_T}$ac_cv_type_char" >&6
22701 echo "$as_me:$LINENO: checking size of char" >&5
22702 echo $ECHO_N "checking size of char... $ECHO_C" >&6
22703 if test "${ac_cv_sizeof_char+set}" = set; then
22704 echo $ECHO_N "(cached) $ECHO_C" >&6
22706 if test "$ac_cv_type_char" = yes; then
22707 # The cast to unsigned long works around a bug in the HP C Compiler
22708 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22709 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22710 # This bug is HP SR number 8606223364.
22711 if test "$cross_compiling" = yes; then
22712 # Depending upon the size, compute the lo and hi bounds.
22713 cat >conftest.$ac_ext <<_ACEOF
22716 cat confdefs.h >>conftest.$ac_ext
22717 cat >>conftest.$ac_ext <<_ACEOF
22718 /* end confdefs.h. */
22719 $ac_includes_default
22723 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
22730 rm -f conftest.$ac_objext
22731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22732 (eval $ac_compile) 2>conftest.er1
22734 grep -v '^ *+' conftest.er1 >conftest.err
22736 cat conftest.err >&5
22737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22738 (exit $ac_status); } &&
22739 { ac_try='test -z "$ac_c_werror_flag"
22740 || test ! -s conftest.err'
22741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22742 (eval $ac_try) 2>&5
22744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22745 (exit $ac_status); }; } &&
22746 { ac_try='test -s conftest.$ac_objext'
22747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22748 (eval $ac_try) 2>&5
22750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22751 (exit $ac_status); }; }; then
22754 cat >conftest.$ac_ext <<_ACEOF
22757 cat confdefs.h >>conftest.$ac_ext
22758 cat >>conftest.$ac_ext <<_ACEOF
22759 /* end confdefs.h. */
22760 $ac_includes_default
22764 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
22771 rm -f conftest.$ac_objext
22772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22773 (eval $ac_compile) 2>conftest.er1
22775 grep -v '^ *+' conftest.er1 >conftest.err
22777 cat conftest.err >&5
22778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22779 (exit $ac_status); } &&
22780 { ac_try='test -z "$ac_c_werror_flag"
22781 || test ! -s conftest.err'
22782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22783 (eval $ac_try) 2>&5
22785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22786 (exit $ac_status); }; } &&
22787 { ac_try='test -s conftest.$ac_objext'
22788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22789 (eval $ac_try) 2>&5
22791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22792 (exit $ac_status); }; }; then
22793 ac_hi=$ac_mid; break
22795 echo "$as_me: failed program was:" >&5
22796 sed 's/^/| /' conftest.$ac_ext >&5
22798 ac_lo=`expr $ac_mid + 1`
22799 if test $ac_lo -le $ac_mid; then
22803 ac_mid=`expr 2 '*' $ac_mid + 1`
22805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22808 echo "$as_me: failed program was:" >&5
22809 sed 's/^/| /' conftest.$ac_ext >&5
22811 cat >conftest.$ac_ext <<_ACEOF
22814 cat confdefs.h >>conftest.$ac_ext
22815 cat >>conftest.$ac_ext <<_ACEOF
22816 /* end confdefs.h. */
22817 $ac_includes_default
22821 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
22828 rm -f conftest.$ac_objext
22829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22830 (eval $ac_compile) 2>conftest.er1
22832 grep -v '^ *+' conftest.er1 >conftest.err
22834 cat conftest.err >&5
22835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22836 (exit $ac_status); } &&
22837 { ac_try='test -z "$ac_c_werror_flag"
22838 || test ! -s conftest.err'
22839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22840 (eval $ac_try) 2>&5
22842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22843 (exit $ac_status); }; } &&
22844 { ac_try='test -s conftest.$ac_objext'
22845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22846 (eval $ac_try) 2>&5
22848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22849 (exit $ac_status); }; }; then
22852 cat >conftest.$ac_ext <<_ACEOF
22855 cat confdefs.h >>conftest.$ac_ext
22856 cat >>conftest.$ac_ext <<_ACEOF
22857 /* end confdefs.h. */
22858 $ac_includes_default
22862 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
22869 rm -f conftest.$ac_objext
22870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22871 (eval $ac_compile) 2>conftest.er1
22873 grep -v '^ *+' conftest.er1 >conftest.err
22875 cat conftest.err >&5
22876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22877 (exit $ac_status); } &&
22878 { ac_try='test -z "$ac_c_werror_flag"
22879 || test ! -s conftest.err'
22880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22881 (eval $ac_try) 2>&5
22883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22884 (exit $ac_status); }; } &&
22885 { ac_try='test -s conftest.$ac_objext'
22886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22887 (eval $ac_try) 2>&5
22889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22890 (exit $ac_status); }; }; then
22891 ac_lo=$ac_mid; break
22893 echo "$as_me: failed program was:" >&5
22894 sed 's/^/| /' conftest.$ac_ext >&5
22896 ac_hi=`expr '(' $ac_mid ')' - 1`
22897 if test $ac_mid -le $ac_hi; then
22901 ac_mid=`expr 2 '*' $ac_mid`
22903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22906 echo "$as_me: failed program was:" >&5
22907 sed 's/^/| /' conftest.$ac_ext >&5
22911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22913 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22914 # Binary search between lo and hi bounds.
22915 while test "x$ac_lo" != "x$ac_hi"; do
22916 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22917 cat >conftest.$ac_ext <<_ACEOF
22920 cat confdefs.h >>conftest.$ac_ext
22921 cat >>conftest.$ac_ext <<_ACEOF
22922 /* end confdefs.h. */
22923 $ac_includes_default
22927 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
22934 rm -f conftest.$ac_objext
22935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22936 (eval $ac_compile) 2>conftest.er1
22938 grep -v '^ *+' conftest.er1 >conftest.err
22940 cat conftest.err >&5
22941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22942 (exit $ac_status); } &&
22943 { ac_try='test -z "$ac_c_werror_flag"
22944 || test ! -s conftest.err'
22945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22946 (eval $ac_try) 2>&5
22948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22949 (exit $ac_status); }; } &&
22950 { ac_try='test -s conftest.$ac_objext'
22951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22952 (eval $ac_try) 2>&5
22954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22955 (exit $ac_status); }; }; then
22958 echo "$as_me: failed program was:" >&5
22959 sed 's/^/| /' conftest.$ac_ext >&5
22961 ac_lo=`expr '(' $ac_mid ')' + 1`
22963 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22966 ?*) ac_cv_sizeof_char=$ac_lo;;
22967 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
22968 See \`config.log' for more details." >&5
22969 echo "$as_me: error: cannot compute sizeof (char), 77
22970 See \`config.log' for more details." >&2;}
22971 { (exit 1); exit 1; }; } ;;
22974 if test "$cross_compiling" = yes; then
22975 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22976 See \`config.log' for more details." >&5
22977 echo "$as_me: error: cannot run test program while cross compiling
22978 See \`config.log' for more details." >&2;}
22979 { (exit 1); exit 1; }; }
22981 cat >conftest.$ac_ext <<_ACEOF
22984 cat confdefs.h >>conftest.$ac_ext
22985 cat >>conftest.$ac_ext <<_ACEOF
22986 /* end confdefs.h. */
22987 $ac_includes_default
22988 long longval () { return (long) (sizeof (char)); }
22989 unsigned long ulongval () { return (long) (sizeof (char)); }
22991 #include <stdlib.h>
22996 FILE *f = fopen ("conftest.val", "w");
22999 if (((long) (sizeof (char))) < 0)
23001 long i = longval ();
23002 if (i != ((long) (sizeof (char))))
23004 fprintf (f, "%ld\n", i);
23008 unsigned long i = ulongval ();
23009 if (i != ((long) (sizeof (char))))
23011 fprintf (f, "%lu\n", i);
23013 exit (ferror (f) || fclose (f) != 0);
23019 rm -f conftest$ac_exeext
23020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23021 (eval $ac_link) 2>&5
23023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23024 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23026 (eval $ac_try) 2>&5
23028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23029 (exit $ac_status); }; }; then
23030 ac_cv_sizeof_char=`cat conftest.val`
23032 echo "$as_me: program exited with status $ac_status" >&5
23033 echo "$as_me: failed program was:" >&5
23034 sed 's/^/| /' conftest.$ac_ext >&5
23036 ( exit $ac_status )
23037 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
23038 See \`config.log' for more details." >&5
23039 echo "$as_me: error: cannot compute sizeof (char), 77
23040 See \`config.log' for more details." >&2;}
23041 { (exit 1); exit 1; }; }
23043 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23048 ac_cv_sizeof_char=0
23051 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
23052 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
23053 cat >>confdefs.h <<_ACEOF
23054 #define SIZEOF_CHAR $ac_cv_sizeof_char
23058 echo "$as_me:$LINENO: checking for short int" >&5
23059 echo $ECHO_N "checking for short int... $ECHO_C" >&6
23060 if test "${ac_cv_type_short_int+set}" = set; then
23061 echo $ECHO_N "(cached) $ECHO_C" >&6
23063 cat >conftest.$ac_ext <<_ACEOF
23066 cat confdefs.h >>conftest.$ac_ext
23067 cat >>conftest.$ac_ext <<_ACEOF
23068 /* end confdefs.h. */
23069 $ac_includes_default
23073 if ((short int *) 0)
23075 if (sizeof (short int))
23081 rm -f conftest.$ac_objext
23082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23083 (eval $ac_compile) 2>conftest.er1
23085 grep -v '^ *+' conftest.er1 >conftest.err
23087 cat conftest.err >&5
23088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23089 (exit $ac_status); } &&
23090 { ac_try='test -z "$ac_c_werror_flag"
23091 || test ! -s conftest.err'
23092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23093 (eval $ac_try) 2>&5
23095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23096 (exit $ac_status); }; } &&
23097 { ac_try='test -s conftest.$ac_objext'
23098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23099 (eval $ac_try) 2>&5
23101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23102 (exit $ac_status); }; }; then
23103 ac_cv_type_short_int=yes
23105 echo "$as_me: failed program was:" >&5
23106 sed 's/^/| /' conftest.$ac_ext >&5
23108 ac_cv_type_short_int=no
23110 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23112 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
23113 echo "${ECHO_T}$ac_cv_type_short_int" >&6
23115 echo "$as_me:$LINENO: checking size of short int" >&5
23116 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
23117 if test "${ac_cv_sizeof_short_int+set}" = set; then
23118 echo $ECHO_N "(cached) $ECHO_C" >&6
23120 if test "$ac_cv_type_short_int" = yes; then
23121 # The cast to unsigned long works around a bug in the HP C Compiler
23122 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23123 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23124 # This bug is HP SR number 8606223364.
23125 if test "$cross_compiling" = yes; then
23126 # Depending upon the size, compute the lo and hi bounds.
23127 cat >conftest.$ac_ext <<_ACEOF
23130 cat confdefs.h >>conftest.$ac_ext
23131 cat >>conftest.$ac_ext <<_ACEOF
23132 /* end confdefs.h. */
23133 $ac_includes_default
23137 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
23144 rm -f conftest.$ac_objext
23145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23146 (eval $ac_compile) 2>conftest.er1
23148 grep -v '^ *+' conftest.er1 >conftest.err
23150 cat conftest.err >&5
23151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23152 (exit $ac_status); } &&
23153 { ac_try='test -z "$ac_c_werror_flag"
23154 || test ! -s conftest.err'
23155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23156 (eval $ac_try) 2>&5
23158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23159 (exit $ac_status); }; } &&
23160 { ac_try='test -s conftest.$ac_objext'
23161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23162 (eval $ac_try) 2>&5
23164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23165 (exit $ac_status); }; }; then
23168 cat >conftest.$ac_ext <<_ACEOF
23171 cat confdefs.h >>conftest.$ac_ext
23172 cat >>conftest.$ac_ext <<_ACEOF
23173 /* end confdefs.h. */
23174 $ac_includes_default
23178 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
23185 rm -f conftest.$ac_objext
23186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23187 (eval $ac_compile) 2>conftest.er1
23189 grep -v '^ *+' conftest.er1 >conftest.err
23191 cat conftest.err >&5
23192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23193 (exit $ac_status); } &&
23194 { ac_try='test -z "$ac_c_werror_flag"
23195 || test ! -s conftest.err'
23196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23197 (eval $ac_try) 2>&5
23199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23200 (exit $ac_status); }; } &&
23201 { ac_try='test -s conftest.$ac_objext'
23202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23203 (eval $ac_try) 2>&5
23205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23206 (exit $ac_status); }; }; then
23207 ac_hi=$ac_mid; break
23209 echo "$as_me: failed program was:" >&5
23210 sed 's/^/| /' conftest.$ac_ext >&5
23212 ac_lo=`expr $ac_mid + 1`
23213 if test $ac_lo -le $ac_mid; then
23217 ac_mid=`expr 2 '*' $ac_mid + 1`
23219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23222 echo "$as_me: failed program was:" >&5
23223 sed 's/^/| /' conftest.$ac_ext >&5
23225 cat >conftest.$ac_ext <<_ACEOF
23228 cat confdefs.h >>conftest.$ac_ext
23229 cat >>conftest.$ac_ext <<_ACEOF
23230 /* end confdefs.h. */
23231 $ac_includes_default
23235 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
23242 rm -f conftest.$ac_objext
23243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23244 (eval $ac_compile) 2>conftest.er1
23246 grep -v '^ *+' conftest.er1 >conftest.err
23248 cat conftest.err >&5
23249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23250 (exit $ac_status); } &&
23251 { ac_try='test -z "$ac_c_werror_flag"
23252 || test ! -s conftest.err'
23253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23254 (eval $ac_try) 2>&5
23256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23257 (exit $ac_status); }; } &&
23258 { ac_try='test -s conftest.$ac_objext'
23259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23260 (eval $ac_try) 2>&5
23262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23263 (exit $ac_status); }; }; then
23266 cat >conftest.$ac_ext <<_ACEOF
23269 cat confdefs.h >>conftest.$ac_ext
23270 cat >>conftest.$ac_ext <<_ACEOF
23271 /* end confdefs.h. */
23272 $ac_includes_default
23276 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
23283 rm -f conftest.$ac_objext
23284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23285 (eval $ac_compile) 2>conftest.er1
23287 grep -v '^ *+' conftest.er1 >conftest.err
23289 cat conftest.err >&5
23290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23291 (exit $ac_status); } &&
23292 { ac_try='test -z "$ac_c_werror_flag"
23293 || test ! -s conftest.err'
23294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23295 (eval $ac_try) 2>&5
23297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23298 (exit $ac_status); }; } &&
23299 { ac_try='test -s conftest.$ac_objext'
23300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23301 (eval $ac_try) 2>&5
23303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23304 (exit $ac_status); }; }; then
23305 ac_lo=$ac_mid; break
23307 echo "$as_me: failed program was:" >&5
23308 sed 's/^/| /' conftest.$ac_ext >&5
23310 ac_hi=`expr '(' $ac_mid ')' - 1`
23311 if test $ac_mid -le $ac_hi; then
23315 ac_mid=`expr 2 '*' $ac_mid`
23317 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23320 echo "$as_me: failed program was:" >&5
23321 sed 's/^/| /' conftest.$ac_ext >&5
23325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23327 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23328 # Binary search between lo and hi bounds.
23329 while test "x$ac_lo" != "x$ac_hi"; do
23330 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23331 cat >conftest.$ac_ext <<_ACEOF
23334 cat confdefs.h >>conftest.$ac_ext
23335 cat >>conftest.$ac_ext <<_ACEOF
23336 /* end confdefs.h. */
23337 $ac_includes_default
23341 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
23348 rm -f conftest.$ac_objext
23349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23350 (eval $ac_compile) 2>conftest.er1
23352 grep -v '^ *+' conftest.er1 >conftest.err
23354 cat conftest.err >&5
23355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23356 (exit $ac_status); } &&
23357 { ac_try='test -z "$ac_c_werror_flag"
23358 || test ! -s conftest.err'
23359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23360 (eval $ac_try) 2>&5
23362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23363 (exit $ac_status); }; } &&
23364 { ac_try='test -s conftest.$ac_objext'
23365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23366 (eval $ac_try) 2>&5
23368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23369 (exit $ac_status); }; }; then
23372 echo "$as_me: failed program was:" >&5
23373 sed 's/^/| /' conftest.$ac_ext >&5
23375 ac_lo=`expr '(' $ac_mid ')' + 1`
23377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23380 ?*) ac_cv_sizeof_short_int=$ac_lo;;
23381 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
23382 See \`config.log' for more details." >&5
23383 echo "$as_me: error: cannot compute sizeof (short int), 77
23384 See \`config.log' for more details." >&2;}
23385 { (exit 1); exit 1; }; } ;;
23388 if test "$cross_compiling" = yes; then
23389 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23390 See \`config.log' for more details." >&5
23391 echo "$as_me: error: cannot run test program while cross compiling
23392 See \`config.log' for more details." >&2;}
23393 { (exit 1); exit 1; }; }
23395 cat >conftest.$ac_ext <<_ACEOF
23398 cat confdefs.h >>conftest.$ac_ext
23399 cat >>conftest.$ac_ext <<_ACEOF
23400 /* end confdefs.h. */
23401 $ac_includes_default
23402 long longval () { return (long) (sizeof (short int)); }
23403 unsigned long ulongval () { return (long) (sizeof (short int)); }
23405 #include <stdlib.h>
23410 FILE *f = fopen ("conftest.val", "w");
23413 if (((long) (sizeof (short int))) < 0)
23415 long i = longval ();
23416 if (i != ((long) (sizeof (short int))))
23418 fprintf (f, "%ld\n", i);
23422 unsigned long i = ulongval ();
23423 if (i != ((long) (sizeof (short int))))
23425 fprintf (f, "%lu\n", i);
23427 exit (ferror (f) || fclose (f) != 0);
23433 rm -f conftest$ac_exeext
23434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23435 (eval $ac_link) 2>&5
23437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23438 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
23444 ac_cv_sizeof_short_int=`cat conftest.val`
23446 echo "$as_me: program exited with status $ac_status" >&5
23447 echo "$as_me: failed program was:" >&5
23448 sed 's/^/| /' conftest.$ac_ext >&5
23450 ( exit $ac_status )
23451 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
23452 See \`config.log' for more details." >&5
23453 echo "$as_me: error: cannot compute sizeof (short int), 77
23454 See \`config.log' for more details." >&2;}
23455 { (exit 1); exit 1; }; }
23457 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23462 ac_cv_sizeof_short_int=0
23465 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
23466 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
23467 cat >>confdefs.h <<_ACEOF
23468 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
23472 echo "$as_me:$LINENO: checking for int" >&5
23473 echo $ECHO_N "checking for int... $ECHO_C" >&6
23474 if test "${ac_cv_type_int+set}" = set; then
23475 echo $ECHO_N "(cached) $ECHO_C" >&6
23477 cat >conftest.$ac_ext <<_ACEOF
23480 cat confdefs.h >>conftest.$ac_ext
23481 cat >>conftest.$ac_ext <<_ACEOF
23482 /* end confdefs.h. */
23483 $ac_includes_default
23495 rm -f conftest.$ac_objext
23496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23497 (eval $ac_compile) 2>conftest.er1
23499 grep -v '^ *+' conftest.er1 >conftest.err
23501 cat conftest.err >&5
23502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23503 (exit $ac_status); } &&
23504 { ac_try='test -z "$ac_c_werror_flag"
23505 || test ! -s conftest.err'
23506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23507 (eval $ac_try) 2>&5
23509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23510 (exit $ac_status); }; } &&
23511 { ac_try='test -s conftest.$ac_objext'
23512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23513 (eval $ac_try) 2>&5
23515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23516 (exit $ac_status); }; }; then
23519 echo "$as_me: failed program was:" >&5
23520 sed 's/^/| /' conftest.$ac_ext >&5
23524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23526 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
23527 echo "${ECHO_T}$ac_cv_type_int" >&6
23529 echo "$as_me:$LINENO: checking size of int" >&5
23530 echo $ECHO_N "checking size of int... $ECHO_C" >&6
23531 if test "${ac_cv_sizeof_int+set}" = set; then
23532 echo $ECHO_N "(cached) $ECHO_C" >&6
23534 if test "$ac_cv_type_int" = yes; then
23535 # The cast to unsigned long works around a bug in the HP C Compiler
23536 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23537 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23538 # This bug is HP SR number 8606223364.
23539 if test "$cross_compiling" = yes; then
23540 # Depending upon the size, compute the lo and hi bounds.
23541 cat >conftest.$ac_ext <<_ACEOF
23544 cat confdefs.h >>conftest.$ac_ext
23545 cat >>conftest.$ac_ext <<_ACEOF
23546 /* end confdefs.h. */
23547 $ac_includes_default
23551 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
23558 rm -f conftest.$ac_objext
23559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23560 (eval $ac_compile) 2>conftest.er1
23562 grep -v '^ *+' conftest.er1 >conftest.err
23564 cat conftest.err >&5
23565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23566 (exit $ac_status); } &&
23567 { ac_try='test -z "$ac_c_werror_flag"
23568 || test ! -s conftest.err'
23569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23570 (eval $ac_try) 2>&5
23572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23573 (exit $ac_status); }; } &&
23574 { ac_try='test -s conftest.$ac_objext'
23575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23576 (eval $ac_try) 2>&5
23578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23579 (exit $ac_status); }; }; then
23582 cat >conftest.$ac_ext <<_ACEOF
23585 cat confdefs.h >>conftest.$ac_ext
23586 cat >>conftest.$ac_ext <<_ACEOF
23587 /* end confdefs.h. */
23588 $ac_includes_default
23592 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
23599 rm -f conftest.$ac_objext
23600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23601 (eval $ac_compile) 2>conftest.er1
23603 grep -v '^ *+' conftest.er1 >conftest.err
23605 cat conftest.err >&5
23606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23607 (exit $ac_status); } &&
23608 { ac_try='test -z "$ac_c_werror_flag"
23609 || test ! -s conftest.err'
23610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23611 (eval $ac_try) 2>&5
23613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23614 (exit $ac_status); }; } &&
23615 { ac_try='test -s conftest.$ac_objext'
23616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23617 (eval $ac_try) 2>&5
23619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23620 (exit $ac_status); }; }; then
23621 ac_hi=$ac_mid; break
23623 echo "$as_me: failed program was:" >&5
23624 sed 's/^/| /' conftest.$ac_ext >&5
23626 ac_lo=`expr $ac_mid + 1`
23627 if test $ac_lo -le $ac_mid; then
23631 ac_mid=`expr 2 '*' $ac_mid + 1`
23633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23636 echo "$as_me: failed program was:" >&5
23637 sed 's/^/| /' conftest.$ac_ext >&5
23639 cat >conftest.$ac_ext <<_ACEOF
23642 cat confdefs.h >>conftest.$ac_ext
23643 cat >>conftest.$ac_ext <<_ACEOF
23644 /* end confdefs.h. */
23645 $ac_includes_default
23649 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
23656 rm -f conftest.$ac_objext
23657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23658 (eval $ac_compile) 2>conftest.er1
23660 grep -v '^ *+' conftest.er1 >conftest.err
23662 cat conftest.err >&5
23663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23664 (exit $ac_status); } &&
23665 { ac_try='test -z "$ac_c_werror_flag"
23666 || test ! -s conftest.err'
23667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23668 (eval $ac_try) 2>&5
23670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23671 (exit $ac_status); }; } &&
23672 { ac_try='test -s conftest.$ac_objext'
23673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23674 (eval $ac_try) 2>&5
23676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23677 (exit $ac_status); }; }; then
23680 cat >conftest.$ac_ext <<_ACEOF
23683 cat confdefs.h >>conftest.$ac_ext
23684 cat >>conftest.$ac_ext <<_ACEOF
23685 /* end confdefs.h. */
23686 $ac_includes_default
23690 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
23697 rm -f conftest.$ac_objext
23698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23699 (eval $ac_compile) 2>conftest.er1
23701 grep -v '^ *+' conftest.er1 >conftest.err
23703 cat conftest.err >&5
23704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23705 (exit $ac_status); } &&
23706 { ac_try='test -z "$ac_c_werror_flag"
23707 || test ! -s conftest.err'
23708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23709 (eval $ac_try) 2>&5
23711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23712 (exit $ac_status); }; } &&
23713 { ac_try='test -s conftest.$ac_objext'
23714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23715 (eval $ac_try) 2>&5
23717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23718 (exit $ac_status); }; }; then
23719 ac_lo=$ac_mid; break
23721 echo "$as_me: failed program was:" >&5
23722 sed 's/^/| /' conftest.$ac_ext >&5
23724 ac_hi=`expr '(' $ac_mid ')' - 1`
23725 if test $ac_mid -le $ac_hi; then
23729 ac_mid=`expr 2 '*' $ac_mid`
23731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23734 echo "$as_me: failed program was:" >&5
23735 sed 's/^/| /' conftest.$ac_ext >&5
23739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23742 # Binary search between lo and hi bounds.
23743 while test "x$ac_lo" != "x$ac_hi"; do
23744 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23745 cat >conftest.$ac_ext <<_ACEOF
23748 cat confdefs.h >>conftest.$ac_ext
23749 cat >>conftest.$ac_ext <<_ACEOF
23750 /* end confdefs.h. */
23751 $ac_includes_default
23755 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
23762 rm -f conftest.$ac_objext
23763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23764 (eval $ac_compile) 2>conftest.er1
23766 grep -v '^ *+' conftest.er1 >conftest.err
23768 cat conftest.err >&5
23769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23770 (exit $ac_status); } &&
23771 { ac_try='test -z "$ac_c_werror_flag"
23772 || test ! -s conftest.err'
23773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23774 (eval $ac_try) 2>&5
23776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23777 (exit $ac_status); }; } &&
23778 { ac_try='test -s conftest.$ac_objext'
23779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23780 (eval $ac_try) 2>&5
23782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23783 (exit $ac_status); }; }; then
23786 echo "$as_me: failed program was:" >&5
23787 sed 's/^/| /' conftest.$ac_ext >&5
23789 ac_lo=`expr '(' $ac_mid ')' + 1`
23791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23794 ?*) ac_cv_sizeof_int=$ac_lo;;
23795 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
23796 See \`config.log' for more details." >&5
23797 echo "$as_me: error: cannot compute sizeof (int), 77
23798 See \`config.log' for more details." >&2;}
23799 { (exit 1); exit 1; }; } ;;
23802 if test "$cross_compiling" = yes; then
23803 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23804 See \`config.log' for more details." >&5
23805 echo "$as_me: error: cannot run test program while cross compiling
23806 See \`config.log' for more details." >&2;}
23807 { (exit 1); exit 1; }; }
23809 cat >conftest.$ac_ext <<_ACEOF
23812 cat confdefs.h >>conftest.$ac_ext
23813 cat >>conftest.$ac_ext <<_ACEOF
23814 /* end confdefs.h. */
23815 $ac_includes_default
23816 long longval () { return (long) (sizeof (int)); }
23817 unsigned long ulongval () { return (long) (sizeof (int)); }
23819 #include <stdlib.h>
23824 FILE *f = fopen ("conftest.val", "w");
23827 if (((long) (sizeof (int))) < 0)
23829 long i = longval ();
23830 if (i != ((long) (sizeof (int))))
23832 fprintf (f, "%ld\n", i);
23836 unsigned long i = ulongval ();
23837 if (i != ((long) (sizeof (int))))
23839 fprintf (f, "%lu\n", i);
23841 exit (ferror (f) || fclose (f) != 0);
23847 rm -f conftest$ac_exeext
23848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23849 (eval $ac_link) 2>&5
23851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23852 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
23858 ac_cv_sizeof_int=`cat conftest.val`
23860 echo "$as_me: program exited with status $ac_status" >&5
23861 echo "$as_me: failed program was:" >&5
23862 sed 's/^/| /' conftest.$ac_ext >&5
23864 ( exit $ac_status )
23865 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
23866 See \`config.log' for more details." >&5
23867 echo "$as_me: error: cannot compute sizeof (int), 77
23868 See \`config.log' for more details." >&2;}
23869 { (exit 1); exit 1; }; }
23871 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23879 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
23880 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
23881 cat >>confdefs.h <<_ACEOF
23882 #define SIZEOF_INT $ac_cv_sizeof_int
23886 echo "$as_me:$LINENO: checking for long int" >&5
23887 echo $ECHO_N "checking for long int... $ECHO_C" >&6
23888 if test "${ac_cv_type_long_int+set}" = set; then
23889 echo $ECHO_N "(cached) $ECHO_C" >&6
23891 cat >conftest.$ac_ext <<_ACEOF
23894 cat confdefs.h >>conftest.$ac_ext
23895 cat >>conftest.$ac_ext <<_ACEOF
23896 /* end confdefs.h. */
23897 $ac_includes_default
23901 if ((long int *) 0)
23903 if (sizeof (long int))
23909 rm -f conftest.$ac_objext
23910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23911 (eval $ac_compile) 2>conftest.er1
23913 grep -v '^ *+' conftest.er1 >conftest.err
23915 cat conftest.err >&5
23916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23917 (exit $ac_status); } &&
23918 { ac_try='test -z "$ac_c_werror_flag"
23919 || test ! -s conftest.err'
23920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23921 (eval $ac_try) 2>&5
23923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23924 (exit $ac_status); }; } &&
23925 { ac_try='test -s conftest.$ac_objext'
23926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23927 (eval $ac_try) 2>&5
23929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23930 (exit $ac_status); }; }; then
23931 ac_cv_type_long_int=yes
23933 echo "$as_me: failed program was:" >&5
23934 sed 's/^/| /' conftest.$ac_ext >&5
23936 ac_cv_type_long_int=no
23938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23940 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
23941 echo "${ECHO_T}$ac_cv_type_long_int" >&6
23943 echo "$as_me:$LINENO: checking size of long int" >&5
23944 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
23945 if test "${ac_cv_sizeof_long_int+set}" = set; then
23946 echo $ECHO_N "(cached) $ECHO_C" >&6
23948 if test "$ac_cv_type_long_int" = yes; then
23949 # The cast to unsigned long works around a bug in the HP C Compiler
23950 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23951 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23952 # This bug is HP SR number 8606223364.
23953 if test "$cross_compiling" = yes; then
23954 # Depending upon the size, compute the lo and hi bounds.
23955 cat >conftest.$ac_ext <<_ACEOF
23958 cat confdefs.h >>conftest.$ac_ext
23959 cat >>conftest.$ac_ext <<_ACEOF
23960 /* end confdefs.h. */
23961 $ac_includes_default
23965 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
23972 rm -f conftest.$ac_objext
23973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23974 (eval $ac_compile) 2>conftest.er1
23976 grep -v '^ *+' conftest.er1 >conftest.err
23978 cat conftest.err >&5
23979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23980 (exit $ac_status); } &&
23981 { ac_try='test -z "$ac_c_werror_flag"
23982 || test ! -s conftest.err'
23983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23984 (eval $ac_try) 2>&5
23986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23987 (exit $ac_status); }; } &&
23988 { ac_try='test -s conftest.$ac_objext'
23989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23990 (eval $ac_try) 2>&5
23992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23993 (exit $ac_status); }; }; then
23996 cat >conftest.$ac_ext <<_ACEOF
23999 cat confdefs.h >>conftest.$ac_ext
24000 cat >>conftest.$ac_ext <<_ACEOF
24001 /* end confdefs.h. */
24002 $ac_includes_default
24006 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
24013 rm -f conftest.$ac_objext
24014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24015 (eval $ac_compile) 2>conftest.er1
24017 grep -v '^ *+' conftest.er1 >conftest.err
24019 cat conftest.err >&5
24020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24021 (exit $ac_status); } &&
24022 { ac_try='test -z "$ac_c_werror_flag"
24023 || test ! -s conftest.err'
24024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24025 (eval $ac_try) 2>&5
24027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24028 (exit $ac_status); }; } &&
24029 { ac_try='test -s conftest.$ac_objext'
24030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24031 (eval $ac_try) 2>&5
24033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24034 (exit $ac_status); }; }; then
24035 ac_hi=$ac_mid; break
24037 echo "$as_me: failed program was:" >&5
24038 sed 's/^/| /' conftest.$ac_ext >&5
24040 ac_lo=`expr $ac_mid + 1`
24041 if test $ac_lo -le $ac_mid; then
24045 ac_mid=`expr 2 '*' $ac_mid + 1`
24047 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24050 echo "$as_me: failed program was:" >&5
24051 sed 's/^/| /' conftest.$ac_ext >&5
24053 cat >conftest.$ac_ext <<_ACEOF
24056 cat confdefs.h >>conftest.$ac_ext
24057 cat >>conftest.$ac_ext <<_ACEOF
24058 /* end confdefs.h. */
24059 $ac_includes_default
24063 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
24070 rm -f conftest.$ac_objext
24071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24072 (eval $ac_compile) 2>conftest.er1
24074 grep -v '^ *+' conftest.er1 >conftest.err
24076 cat conftest.err >&5
24077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24078 (exit $ac_status); } &&
24079 { ac_try='test -z "$ac_c_werror_flag"
24080 || test ! -s conftest.err'
24081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24082 (eval $ac_try) 2>&5
24084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24085 (exit $ac_status); }; } &&
24086 { ac_try='test -s conftest.$ac_objext'
24087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24088 (eval $ac_try) 2>&5
24090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24091 (exit $ac_status); }; }; then
24094 cat >conftest.$ac_ext <<_ACEOF
24097 cat confdefs.h >>conftest.$ac_ext
24098 cat >>conftest.$ac_ext <<_ACEOF
24099 /* end confdefs.h. */
24100 $ac_includes_default
24104 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
24111 rm -f conftest.$ac_objext
24112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24113 (eval $ac_compile) 2>conftest.er1
24115 grep -v '^ *+' conftest.er1 >conftest.err
24117 cat conftest.err >&5
24118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24119 (exit $ac_status); } &&
24120 { ac_try='test -z "$ac_c_werror_flag"
24121 || test ! -s conftest.err'
24122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24123 (eval $ac_try) 2>&5
24125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24126 (exit $ac_status); }; } &&
24127 { ac_try='test -s conftest.$ac_objext'
24128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24129 (eval $ac_try) 2>&5
24131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24132 (exit $ac_status); }; }; then
24133 ac_lo=$ac_mid; break
24135 echo "$as_me: failed program was:" >&5
24136 sed 's/^/| /' conftest.$ac_ext >&5
24138 ac_hi=`expr '(' $ac_mid ')' - 1`
24139 if test $ac_mid -le $ac_hi; then
24143 ac_mid=`expr 2 '*' $ac_mid`
24145 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24148 echo "$as_me: failed program was:" >&5
24149 sed 's/^/| /' conftest.$ac_ext >&5
24153 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24156 # Binary search between lo and hi bounds.
24157 while test "x$ac_lo" != "x$ac_hi"; do
24158 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24159 cat >conftest.$ac_ext <<_ACEOF
24162 cat confdefs.h >>conftest.$ac_ext
24163 cat >>conftest.$ac_ext <<_ACEOF
24164 /* end confdefs.h. */
24165 $ac_includes_default
24169 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
24176 rm -f conftest.$ac_objext
24177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24178 (eval $ac_compile) 2>conftest.er1
24180 grep -v '^ *+' conftest.er1 >conftest.err
24182 cat conftest.err >&5
24183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24184 (exit $ac_status); } &&
24185 { ac_try='test -z "$ac_c_werror_flag"
24186 || test ! -s conftest.err'
24187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24188 (eval $ac_try) 2>&5
24190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24191 (exit $ac_status); }; } &&
24192 { ac_try='test -s conftest.$ac_objext'
24193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24194 (eval $ac_try) 2>&5
24196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24197 (exit $ac_status); }; }; then
24200 echo "$as_me: failed program was:" >&5
24201 sed 's/^/| /' conftest.$ac_ext >&5
24203 ac_lo=`expr '(' $ac_mid ')' + 1`
24205 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24208 ?*) ac_cv_sizeof_long_int=$ac_lo;;
24209 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
24210 See \`config.log' for more details." >&5
24211 echo "$as_me: error: cannot compute sizeof (long int), 77
24212 See \`config.log' for more details." >&2;}
24213 { (exit 1); exit 1; }; } ;;
24216 if test "$cross_compiling" = yes; then
24217 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24218 See \`config.log' for more details." >&5
24219 echo "$as_me: error: cannot run test program while cross compiling
24220 See \`config.log' for more details." >&2;}
24221 { (exit 1); exit 1; }; }
24223 cat >conftest.$ac_ext <<_ACEOF
24226 cat confdefs.h >>conftest.$ac_ext
24227 cat >>conftest.$ac_ext <<_ACEOF
24228 /* end confdefs.h. */
24229 $ac_includes_default
24230 long longval () { return (long) (sizeof (long int)); }
24231 unsigned long ulongval () { return (long) (sizeof (long int)); }
24233 #include <stdlib.h>
24238 FILE *f = fopen ("conftest.val", "w");
24241 if (((long) (sizeof (long int))) < 0)
24243 long i = longval ();
24244 if (i != ((long) (sizeof (long int))))
24246 fprintf (f, "%ld\n", i);
24250 unsigned long i = ulongval ();
24251 if (i != ((long) (sizeof (long int))))
24253 fprintf (f, "%lu\n", i);
24255 exit (ferror (f) || fclose (f) != 0);
24261 rm -f conftest$ac_exeext
24262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24263 (eval $ac_link) 2>&5
24265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24266 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
24272 ac_cv_sizeof_long_int=`cat conftest.val`
24274 echo "$as_me: program exited with status $ac_status" >&5
24275 echo "$as_me: failed program was:" >&5
24276 sed 's/^/| /' conftest.$ac_ext >&5
24278 ( exit $ac_status )
24279 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
24280 See \`config.log' for more details." >&5
24281 echo "$as_me: error: cannot compute sizeof (long int), 77
24282 See \`config.log' for more details." >&2;}
24283 { (exit 1); exit 1; }; }
24285 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24290 ac_cv_sizeof_long_int=0
24293 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
24294 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
24295 cat >>confdefs.h <<_ACEOF
24296 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
24300 echo "$as_me:$LINENO: checking for long long int" >&5
24301 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
24302 if test "${ac_cv_type_long_long_int+set}" = set; then
24303 echo $ECHO_N "(cached) $ECHO_C" >&6
24305 cat >conftest.$ac_ext <<_ACEOF
24308 cat confdefs.h >>conftest.$ac_ext
24309 cat >>conftest.$ac_ext <<_ACEOF
24310 /* end confdefs.h. */
24311 $ac_includes_default
24315 if ((long long int *) 0)
24317 if (sizeof (long long int))
24323 rm -f conftest.$ac_objext
24324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24325 (eval $ac_compile) 2>conftest.er1
24327 grep -v '^ *+' conftest.er1 >conftest.err
24329 cat conftest.err >&5
24330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24331 (exit $ac_status); } &&
24332 { ac_try='test -z "$ac_c_werror_flag"
24333 || test ! -s conftest.err'
24334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24335 (eval $ac_try) 2>&5
24337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24338 (exit $ac_status); }; } &&
24339 { ac_try='test -s conftest.$ac_objext'
24340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24341 (eval $ac_try) 2>&5
24343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24344 (exit $ac_status); }; }; then
24345 ac_cv_type_long_long_int=yes
24347 echo "$as_me: failed program was:" >&5
24348 sed 's/^/| /' conftest.$ac_ext >&5
24350 ac_cv_type_long_long_int=no
24352 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24354 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
24355 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
24357 echo "$as_me:$LINENO: checking size of long long int" >&5
24358 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
24359 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
24360 echo $ECHO_N "(cached) $ECHO_C" >&6
24362 if test "$ac_cv_type_long_long_int" = yes; then
24363 # The cast to unsigned long works around a bug in the HP C Compiler
24364 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24365 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24366 # This bug is HP SR number 8606223364.
24367 if test "$cross_compiling" = yes; then
24368 # Depending upon the size, compute the lo and hi bounds.
24369 cat >conftest.$ac_ext <<_ACEOF
24372 cat confdefs.h >>conftest.$ac_ext
24373 cat >>conftest.$ac_ext <<_ACEOF
24374 /* end confdefs.h. */
24375 $ac_includes_default
24379 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
24386 rm -f conftest.$ac_objext
24387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24388 (eval $ac_compile) 2>conftest.er1
24390 grep -v '^ *+' conftest.er1 >conftest.err
24392 cat conftest.err >&5
24393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24394 (exit $ac_status); } &&
24395 { ac_try='test -z "$ac_c_werror_flag"
24396 || test ! -s conftest.err'
24397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24398 (eval $ac_try) 2>&5
24400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24401 (exit $ac_status); }; } &&
24402 { ac_try='test -s conftest.$ac_objext'
24403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24404 (eval $ac_try) 2>&5
24406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24407 (exit $ac_status); }; }; then
24410 cat >conftest.$ac_ext <<_ACEOF
24413 cat confdefs.h >>conftest.$ac_ext
24414 cat >>conftest.$ac_ext <<_ACEOF
24415 /* end confdefs.h. */
24416 $ac_includes_default
24420 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
24427 rm -f conftest.$ac_objext
24428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24429 (eval $ac_compile) 2>conftest.er1
24431 grep -v '^ *+' conftest.er1 >conftest.err
24433 cat conftest.err >&5
24434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24435 (exit $ac_status); } &&
24436 { ac_try='test -z "$ac_c_werror_flag"
24437 || test ! -s conftest.err'
24438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24439 (eval $ac_try) 2>&5
24441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24442 (exit $ac_status); }; } &&
24443 { ac_try='test -s conftest.$ac_objext'
24444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24445 (eval $ac_try) 2>&5
24447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24448 (exit $ac_status); }; }; then
24449 ac_hi=$ac_mid; break
24451 echo "$as_me: failed program was:" >&5
24452 sed 's/^/| /' conftest.$ac_ext >&5
24454 ac_lo=`expr $ac_mid + 1`
24455 if test $ac_lo -le $ac_mid; then
24459 ac_mid=`expr 2 '*' $ac_mid + 1`
24461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24464 echo "$as_me: failed program was:" >&5
24465 sed 's/^/| /' conftest.$ac_ext >&5
24467 cat >conftest.$ac_ext <<_ACEOF
24470 cat confdefs.h >>conftest.$ac_ext
24471 cat >>conftest.$ac_ext <<_ACEOF
24472 /* end confdefs.h. */
24473 $ac_includes_default
24477 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
24484 rm -f conftest.$ac_objext
24485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24486 (eval $ac_compile) 2>conftest.er1
24488 grep -v '^ *+' conftest.er1 >conftest.err
24490 cat conftest.err >&5
24491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24492 (exit $ac_status); } &&
24493 { ac_try='test -z "$ac_c_werror_flag"
24494 || test ! -s conftest.err'
24495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24496 (eval $ac_try) 2>&5
24498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24499 (exit $ac_status); }; } &&
24500 { ac_try='test -s conftest.$ac_objext'
24501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24502 (eval $ac_try) 2>&5
24504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24505 (exit $ac_status); }; }; then
24508 cat >conftest.$ac_ext <<_ACEOF
24511 cat confdefs.h >>conftest.$ac_ext
24512 cat >>conftest.$ac_ext <<_ACEOF
24513 /* end confdefs.h. */
24514 $ac_includes_default
24518 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
24525 rm -f conftest.$ac_objext
24526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24527 (eval $ac_compile) 2>conftest.er1
24529 grep -v '^ *+' conftest.er1 >conftest.err
24531 cat conftest.err >&5
24532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24533 (exit $ac_status); } &&
24534 { ac_try='test -z "$ac_c_werror_flag"
24535 || test ! -s conftest.err'
24536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24537 (eval $ac_try) 2>&5
24539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24540 (exit $ac_status); }; } &&
24541 { ac_try='test -s conftest.$ac_objext'
24542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24543 (eval $ac_try) 2>&5
24545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24546 (exit $ac_status); }; }; then
24547 ac_lo=$ac_mid; break
24549 echo "$as_me: failed program was:" >&5
24550 sed 's/^/| /' conftest.$ac_ext >&5
24552 ac_hi=`expr '(' $ac_mid ')' - 1`
24553 if test $ac_mid -le $ac_hi; then
24557 ac_mid=`expr 2 '*' $ac_mid`
24559 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24562 echo "$as_me: failed program was:" >&5
24563 sed 's/^/| /' conftest.$ac_ext >&5
24567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24569 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24570 # Binary search between lo and hi bounds.
24571 while test "x$ac_lo" != "x$ac_hi"; do
24572 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24573 cat >conftest.$ac_ext <<_ACEOF
24576 cat confdefs.h >>conftest.$ac_ext
24577 cat >>conftest.$ac_ext <<_ACEOF
24578 /* end confdefs.h. */
24579 $ac_includes_default
24583 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
24590 rm -f conftest.$ac_objext
24591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24592 (eval $ac_compile) 2>conftest.er1
24594 grep -v '^ *+' conftest.er1 >conftest.err
24596 cat conftest.err >&5
24597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24598 (exit $ac_status); } &&
24599 { ac_try='test -z "$ac_c_werror_flag"
24600 || test ! -s conftest.err'
24601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24602 (eval $ac_try) 2>&5
24604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24605 (exit $ac_status); }; } &&
24606 { ac_try='test -s conftest.$ac_objext'
24607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24608 (eval $ac_try) 2>&5
24610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24611 (exit $ac_status); }; }; then
24614 echo "$as_me: failed program was:" >&5
24615 sed 's/^/| /' conftest.$ac_ext >&5
24617 ac_lo=`expr '(' $ac_mid ')' + 1`
24619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24622 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
24623 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
24624 See \`config.log' for more details." >&5
24625 echo "$as_me: error: cannot compute sizeof (long long int), 77
24626 See \`config.log' for more details." >&2;}
24627 { (exit 1); exit 1; }; } ;;
24630 if test "$cross_compiling" = yes; then
24631 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24632 See \`config.log' for more details." >&5
24633 echo "$as_me: error: cannot run test program while cross compiling
24634 See \`config.log' for more details." >&2;}
24635 { (exit 1); exit 1; }; }
24637 cat >conftest.$ac_ext <<_ACEOF
24640 cat confdefs.h >>conftest.$ac_ext
24641 cat >>conftest.$ac_ext <<_ACEOF
24642 /* end confdefs.h. */
24643 $ac_includes_default
24644 long longval () { return (long) (sizeof (long long int)); }
24645 unsigned long ulongval () { return (long) (sizeof (long long int)); }
24647 #include <stdlib.h>
24652 FILE *f = fopen ("conftest.val", "w");
24655 if (((long) (sizeof (long long int))) < 0)
24657 long i = longval ();
24658 if (i != ((long) (sizeof (long long int))))
24660 fprintf (f, "%ld\n", i);
24664 unsigned long i = ulongval ();
24665 if (i != ((long) (sizeof (long long int))))
24667 fprintf (f, "%lu\n", i);
24669 exit (ferror (f) || fclose (f) != 0);
24675 rm -f conftest$ac_exeext
24676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24677 (eval $ac_link) 2>&5
24679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24680 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
24686 ac_cv_sizeof_long_long_int=`cat conftest.val`
24688 echo "$as_me: program exited with status $ac_status" >&5
24689 echo "$as_me: failed program was:" >&5
24690 sed 's/^/| /' conftest.$ac_ext >&5
24692 ( exit $ac_status )
24693 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
24694 See \`config.log' for more details." >&5
24695 echo "$as_me: error: cannot compute sizeof (long long int), 77
24696 See \`config.log' for more details." >&2;}
24697 { (exit 1); exit 1; }; }
24699 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24704 ac_cv_sizeof_long_long_int=0
24707 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
24708 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
24709 cat >>confdefs.h <<_ACEOF
24710 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
24714 echo "$as_me:$LINENO: checking for int *" >&5
24715 echo $ECHO_N "checking for int *... $ECHO_C" >&6
24716 if test "${ac_cv_type_int_p+set}" = set; then
24717 echo $ECHO_N "(cached) $ECHO_C" >&6
24719 cat >conftest.$ac_ext <<_ACEOF
24722 cat confdefs.h >>conftest.$ac_ext
24723 cat >>conftest.$ac_ext <<_ACEOF
24724 /* end confdefs.h. */
24725 $ac_includes_default
24731 if (sizeof (int *))
24737 rm -f conftest.$ac_objext
24738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24739 (eval $ac_compile) 2>conftest.er1
24741 grep -v '^ *+' conftest.er1 >conftest.err
24743 cat conftest.err >&5
24744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24745 (exit $ac_status); } &&
24746 { ac_try='test -z "$ac_c_werror_flag"
24747 || test ! -s conftest.err'
24748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24749 (eval $ac_try) 2>&5
24751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24752 (exit $ac_status); }; } &&
24753 { ac_try='test -s conftest.$ac_objext'
24754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24755 (eval $ac_try) 2>&5
24757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24758 (exit $ac_status); }; }; then
24759 ac_cv_type_int_p=yes
24761 echo "$as_me: failed program was:" >&5
24762 sed 's/^/| /' conftest.$ac_ext >&5
24764 ac_cv_type_int_p=no
24766 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24768 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
24769 echo "${ECHO_T}$ac_cv_type_int_p" >&6
24771 echo "$as_me:$LINENO: checking size of int *" >&5
24772 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
24773 if test "${ac_cv_sizeof_int_p+set}" = set; then
24774 echo $ECHO_N "(cached) $ECHO_C" >&6
24776 if test "$ac_cv_type_int_p" = yes; then
24777 # The cast to unsigned long works around a bug in the HP C Compiler
24778 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24779 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24780 # This bug is HP SR number 8606223364.
24781 if test "$cross_compiling" = yes; then
24782 # Depending upon the size, compute the lo and hi bounds.
24783 cat >conftest.$ac_ext <<_ACEOF
24786 cat confdefs.h >>conftest.$ac_ext
24787 cat >>conftest.$ac_ext <<_ACEOF
24788 /* end confdefs.h. */
24789 $ac_includes_default
24793 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
24800 rm -f conftest.$ac_objext
24801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24802 (eval $ac_compile) 2>conftest.er1
24804 grep -v '^ *+' conftest.er1 >conftest.err
24806 cat conftest.err >&5
24807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24808 (exit $ac_status); } &&
24809 { ac_try='test -z "$ac_c_werror_flag"
24810 || test ! -s conftest.err'
24811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24812 (eval $ac_try) 2>&5
24814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24815 (exit $ac_status); }; } &&
24816 { ac_try='test -s conftest.$ac_objext'
24817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24818 (eval $ac_try) 2>&5
24820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24821 (exit $ac_status); }; }; then
24824 cat >conftest.$ac_ext <<_ACEOF
24827 cat confdefs.h >>conftest.$ac_ext
24828 cat >>conftest.$ac_ext <<_ACEOF
24829 /* end confdefs.h. */
24830 $ac_includes_default
24834 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
24841 rm -f conftest.$ac_objext
24842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24843 (eval $ac_compile) 2>conftest.er1
24845 grep -v '^ *+' conftest.er1 >conftest.err
24847 cat conftest.err >&5
24848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24849 (exit $ac_status); } &&
24850 { ac_try='test -z "$ac_c_werror_flag"
24851 || test ! -s conftest.err'
24852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24853 (eval $ac_try) 2>&5
24855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24856 (exit $ac_status); }; } &&
24857 { ac_try='test -s conftest.$ac_objext'
24858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24859 (eval $ac_try) 2>&5
24861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24862 (exit $ac_status); }; }; then
24863 ac_hi=$ac_mid; break
24865 echo "$as_me: failed program was:" >&5
24866 sed 's/^/| /' conftest.$ac_ext >&5
24868 ac_lo=`expr $ac_mid + 1`
24869 if test $ac_lo -le $ac_mid; then
24873 ac_mid=`expr 2 '*' $ac_mid + 1`
24875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24878 echo "$as_me: failed program was:" >&5
24879 sed 's/^/| /' conftest.$ac_ext >&5
24881 cat >conftest.$ac_ext <<_ACEOF
24884 cat confdefs.h >>conftest.$ac_ext
24885 cat >>conftest.$ac_ext <<_ACEOF
24886 /* end confdefs.h. */
24887 $ac_includes_default
24891 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
24898 rm -f conftest.$ac_objext
24899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24900 (eval $ac_compile) 2>conftest.er1
24902 grep -v '^ *+' conftest.er1 >conftest.err
24904 cat conftest.err >&5
24905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24906 (exit $ac_status); } &&
24907 { ac_try='test -z "$ac_c_werror_flag"
24908 || test ! -s conftest.err'
24909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24910 (eval $ac_try) 2>&5
24912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24913 (exit $ac_status); }; } &&
24914 { ac_try='test -s conftest.$ac_objext'
24915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24916 (eval $ac_try) 2>&5
24918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24919 (exit $ac_status); }; }; then
24922 cat >conftest.$ac_ext <<_ACEOF
24925 cat confdefs.h >>conftest.$ac_ext
24926 cat >>conftest.$ac_ext <<_ACEOF
24927 /* end confdefs.h. */
24928 $ac_includes_default
24932 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
24939 rm -f conftest.$ac_objext
24940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24941 (eval $ac_compile) 2>conftest.er1
24943 grep -v '^ *+' conftest.er1 >conftest.err
24945 cat conftest.err >&5
24946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24947 (exit $ac_status); } &&
24948 { ac_try='test -z "$ac_c_werror_flag"
24949 || test ! -s conftest.err'
24950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24951 (eval $ac_try) 2>&5
24953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24954 (exit $ac_status); }; } &&
24955 { ac_try='test -s conftest.$ac_objext'
24956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24957 (eval $ac_try) 2>&5
24959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24960 (exit $ac_status); }; }; then
24961 ac_lo=$ac_mid; break
24963 echo "$as_me: failed program was:" >&5
24964 sed 's/^/| /' conftest.$ac_ext >&5
24966 ac_hi=`expr '(' $ac_mid ')' - 1`
24967 if test $ac_mid -le $ac_hi; then
24971 ac_mid=`expr 2 '*' $ac_mid`
24973 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24976 echo "$as_me: failed program was:" >&5
24977 sed 's/^/| /' conftest.$ac_ext >&5
24981 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24983 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24984 # Binary search between lo and hi bounds.
24985 while test "x$ac_lo" != "x$ac_hi"; do
24986 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24987 cat >conftest.$ac_ext <<_ACEOF
24990 cat confdefs.h >>conftest.$ac_ext
24991 cat >>conftest.$ac_ext <<_ACEOF
24992 /* end confdefs.h. */
24993 $ac_includes_default
24997 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
25004 rm -f conftest.$ac_objext
25005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25006 (eval $ac_compile) 2>conftest.er1
25008 grep -v '^ *+' conftest.er1 >conftest.err
25010 cat conftest.err >&5
25011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25012 (exit $ac_status); } &&
25013 { ac_try='test -z "$ac_c_werror_flag"
25014 || test ! -s conftest.err'
25015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25016 (eval $ac_try) 2>&5
25018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25019 (exit $ac_status); }; } &&
25020 { ac_try='test -s conftest.$ac_objext'
25021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25022 (eval $ac_try) 2>&5
25024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25025 (exit $ac_status); }; }; then
25028 echo "$as_me: failed program was:" >&5
25029 sed 's/^/| /' conftest.$ac_ext >&5
25031 ac_lo=`expr '(' $ac_mid ')' + 1`
25033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25036 ?*) ac_cv_sizeof_int_p=$ac_lo;;
25037 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
25038 See \`config.log' for more details." >&5
25039 echo "$as_me: error: cannot compute sizeof (int *), 77
25040 See \`config.log' for more details." >&2;}
25041 { (exit 1); exit 1; }; } ;;
25044 if test "$cross_compiling" = yes; then
25045 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25046 See \`config.log' for more details." >&5
25047 echo "$as_me: error: cannot run test program while cross compiling
25048 See \`config.log' for more details." >&2;}
25049 { (exit 1); exit 1; }; }
25051 cat >conftest.$ac_ext <<_ACEOF
25054 cat confdefs.h >>conftest.$ac_ext
25055 cat >>conftest.$ac_ext <<_ACEOF
25056 /* end confdefs.h. */
25057 $ac_includes_default
25058 long longval () { return (long) (sizeof (int *)); }
25059 unsigned long ulongval () { return (long) (sizeof (int *)); }
25061 #include <stdlib.h>
25066 FILE *f = fopen ("conftest.val", "w");
25069 if (((long) (sizeof (int *))) < 0)
25071 long i = longval ();
25072 if (i != ((long) (sizeof (int *))))
25074 fprintf (f, "%ld\n", i);
25078 unsigned long i = ulongval ();
25079 if (i != ((long) (sizeof (int *))))
25081 fprintf (f, "%lu\n", i);
25083 exit (ferror (f) || fclose (f) != 0);
25089 rm -f conftest$ac_exeext
25090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25091 (eval $ac_link) 2>&5
25093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25094 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
25100 ac_cv_sizeof_int_p=`cat conftest.val`
25102 echo "$as_me: program exited with status $ac_status" >&5
25103 echo "$as_me: failed program was:" >&5
25104 sed 's/^/| /' conftest.$ac_ext >&5
25106 ( exit $ac_status )
25107 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
25108 See \`config.log' for more details." >&5
25109 echo "$as_me: error: cannot compute sizeof (int *), 77
25110 See \`config.log' for more details." >&2;}
25111 { (exit 1); exit 1; }; }
25113 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25118 ac_cv_sizeof_int_p=0
25121 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
25122 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
25123 cat >>confdefs.h <<_ACEOF
25124 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
25129 # Check for sys/types.h types
25130 echo "$as_me:$LINENO: checking for u_int type" >&5
25131 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
25132 if test "${ac_cv_have_u_int+set}" = set; then
25133 echo $ECHO_N "(cached) $ECHO_C" >&6
25136 cat >conftest.$ac_ext <<_ACEOF
25139 cat confdefs.h >>conftest.$ac_ext
25140 cat >>conftest.$ac_ext <<_ACEOF
25141 /* end confdefs.h. */
25142 #include <sys/types.h>
25151 rm -f conftest.$ac_objext
25152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25153 (eval $ac_compile) 2>conftest.er1
25155 grep -v '^ *+' conftest.er1 >conftest.err
25157 cat conftest.err >&5
25158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25159 (exit $ac_status); } &&
25160 { ac_try='test -z "$ac_c_werror_flag"
25161 || test ! -s conftest.err'
25162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25163 (eval $ac_try) 2>&5
25165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25166 (exit $ac_status); }; } &&
25167 { ac_try='test -s conftest.$ac_objext'
25168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25169 (eval $ac_try) 2>&5
25171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25172 (exit $ac_status); }; }; then
25173 ac_cv_have_u_int="yes"
25175 echo "$as_me: failed program was:" >&5
25176 sed 's/^/| /' conftest.$ac_ext >&5
25178 ac_cv_have_u_int="no"
25181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25184 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
25185 echo "${ECHO_T}$ac_cv_have_u_int" >&6
25186 if test "x$ac_cv_have_u_int" = "xyes" ; then
25187 cat >>confdefs.h <<\_ACEOF
25188 #define HAVE_U_INT 1
25194 echo "$as_me:$LINENO: checking for intmax_t type" >&5
25195 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
25196 if test "${ac_cv_have_intmax_t+set}" = set; then
25197 echo $ECHO_N "(cached) $ECHO_C" >&6
25200 cat >conftest.$ac_ext <<_ACEOF
25203 cat confdefs.h >>conftest.$ac_ext
25204 cat >>conftest.$ac_ext <<_ACEOF
25205 /* end confdefs.h. */
25206 #include <sys/types.h>
25215 rm -f conftest.$ac_objext
25216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25217 (eval $ac_compile) 2>conftest.er1
25219 grep -v '^ *+' conftest.er1 >conftest.err
25221 cat conftest.err >&5
25222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25223 (exit $ac_status); } &&
25224 { ac_try='test -z "$ac_c_werror_flag"
25225 || test ! -s conftest.err'
25226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25227 (eval $ac_try) 2>&5
25229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25230 (exit $ac_status); }; } &&
25231 { ac_try='test -s conftest.$ac_objext'
25232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25233 (eval $ac_try) 2>&5
25235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25236 (exit $ac_status); }; }; then
25237 ac_cv_have_intmax_t="yes"
25239 echo "$as_me: failed program was:" >&5
25240 sed 's/^/| /' conftest.$ac_ext >&5
25243 cat >conftest.$ac_ext <<_ACEOF
25246 cat confdefs.h >>conftest.$ac_ext
25247 cat >>conftest.$ac_ext <<_ACEOF
25248 /* end confdefs.h. */
25249 #include <stdint.h>
25258 rm -f conftest.$ac_objext
25259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25260 (eval $ac_compile) 2>conftest.er1
25262 grep -v '^ *+' conftest.er1 >conftest.err
25264 cat conftest.err >&5
25265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25266 (exit $ac_status); } &&
25267 { ac_try='test -z "$ac_c_werror_flag"
25268 || test ! -s conftest.err'
25269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25270 (eval $ac_try) 2>&5
25272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25273 (exit $ac_status); }; } &&
25274 { ac_try='test -s conftest.$ac_objext'
25275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25276 (eval $ac_try) 2>&5
25278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25279 (exit $ac_status); }; }; then
25280 ac_cv_have_intmax_t="yes"
25282 echo "$as_me: failed program was:" >&5
25283 sed 's/^/| /' conftest.$ac_ext >&5
25285 ac_cv_have_intmax_t="no"
25288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25292 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25296 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
25297 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
25298 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
25299 cat >>confdefs.h <<\_ACEOF
25300 #define HAVE_INTMAX_T 1
25307 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
25308 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
25309 if test "${ac_cv_have_u_intmax_t+set}" = set; then
25310 echo $ECHO_N "(cached) $ECHO_C" >&6
25313 cat >conftest.$ac_ext <<_ACEOF
25316 cat confdefs.h >>conftest.$ac_ext
25317 cat >>conftest.$ac_ext <<_ACEOF
25318 /* end confdefs.h. */
25319 #include <sys/types.h>
25323 u_intmax_t a; a = 1;
25328 rm -f conftest.$ac_objext
25329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25330 (eval $ac_compile) 2>conftest.er1
25332 grep -v '^ *+' conftest.er1 >conftest.err
25334 cat conftest.err >&5
25335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25336 (exit $ac_status); } &&
25337 { ac_try='test -z "$ac_c_werror_flag"
25338 || test ! -s conftest.err'
25339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25340 (eval $ac_try) 2>&5
25342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25343 (exit $ac_status); }; } &&
25344 { ac_try='test -s conftest.$ac_objext'
25345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25346 (eval $ac_try) 2>&5
25348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25349 (exit $ac_status); }; }; then
25350 ac_cv_have_u_intmax_t="yes"
25352 echo "$as_me: failed program was:" >&5
25353 sed 's/^/| /' conftest.$ac_ext >&5
25356 cat >conftest.$ac_ext <<_ACEOF
25359 cat confdefs.h >>conftest.$ac_ext
25360 cat >>conftest.$ac_ext <<_ACEOF
25361 /* end confdefs.h. */
25362 #include <stdint.h>
25366 u_intmax_t a; a = 1;
25371 rm -f conftest.$ac_objext
25372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25373 (eval $ac_compile) 2>conftest.er1
25375 grep -v '^ *+' conftest.er1 >conftest.err
25377 cat conftest.err >&5
25378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25379 (exit $ac_status); } &&
25380 { ac_try='test -z "$ac_c_werror_flag"
25381 || test ! -s conftest.err'
25382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25383 (eval $ac_try) 2>&5
25385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25386 (exit $ac_status); }; } &&
25387 { ac_try='test -s conftest.$ac_objext'
25388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25389 (eval $ac_try) 2>&5
25391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25392 (exit $ac_status); }; }; then
25393 ac_cv_have_u_intmax_t="yes"
25395 echo "$as_me: failed program was:" >&5
25396 sed 's/^/| /' conftest.$ac_ext >&5
25398 ac_cv_have_u_intmax_t="no"
25401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25408 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
25409 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
25410 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
25411 cat >>confdefs.h <<\_ACEOF
25412 #define HAVE_U_INTMAX_T 1
25419 echo "$as_me:$LINENO: checking for intXX_t types" >&5
25420 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
25421 if test "${ac_cv_have_intxx_t+set}" = set; then
25422 echo $ECHO_N "(cached) $ECHO_C" >&6
25425 cat >conftest.$ac_ext <<_ACEOF
25428 cat confdefs.h >>conftest.$ac_ext
25429 cat >>conftest.$ac_ext <<_ACEOF
25430 /* end confdefs.h. */
25431 #include <sys/types.h>
25435 int8_t a; int16_t b; int32_t c; a = b = c = 1;
25440 rm -f conftest.$ac_objext
25441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25442 (eval $ac_compile) 2>conftest.er1
25444 grep -v '^ *+' conftest.er1 >conftest.err
25446 cat conftest.err >&5
25447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25448 (exit $ac_status); } &&
25449 { ac_try='test -z "$ac_c_werror_flag"
25450 || test ! -s conftest.err'
25451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25452 (eval $ac_try) 2>&5
25454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25455 (exit $ac_status); }; } &&
25456 { ac_try='test -s conftest.$ac_objext'
25457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25458 (eval $ac_try) 2>&5
25460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25461 (exit $ac_status); }; }; then
25462 ac_cv_have_intxx_t="yes"
25464 echo "$as_me: failed program was:" >&5
25465 sed 's/^/| /' conftest.$ac_ext >&5
25467 ac_cv_have_intxx_t="no"
25470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25473 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
25474 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
25475 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
25476 cat >>confdefs.h <<\_ACEOF
25477 #define HAVE_INTXX_T 1
25483 echo "$as_me:$LINENO: checking for int64_t type" >&5
25484 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
25485 if test "${ac_cv_have_int64_t+set}" = set; then
25486 echo $ECHO_N "(cached) $ECHO_C" >&6
25489 cat >conftest.$ac_ext <<_ACEOF
25492 cat confdefs.h >>conftest.$ac_ext
25493 cat >>conftest.$ac_ext <<_ACEOF
25494 /* end confdefs.h. */
25495 #include <sys/types.h>
25504 rm -f conftest.$ac_objext
25505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25506 (eval $ac_compile) 2>conftest.er1
25508 grep -v '^ *+' conftest.er1 >conftest.err
25510 cat conftest.err >&5
25511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25512 (exit $ac_status); } &&
25513 { ac_try='test -z "$ac_c_werror_flag"
25514 || test ! -s conftest.err'
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); }; } &&
25520 { ac_try='test -s conftest.$ac_objext'
25521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25522 (eval $ac_try) 2>&5
25524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25525 (exit $ac_status); }; }; then
25526 ac_cv_have_int64_t="yes"
25528 echo "$as_me: failed program was:" >&5
25529 sed 's/^/| /' conftest.$ac_ext >&5
25531 ac_cv_have_int64_t="no"
25534 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25537 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
25538 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
25539 if test "x$ac_cv_have_int64_t" = "xyes" ; then
25540 cat >>confdefs.h <<\_ACEOF
25541 #define HAVE_INT64_T 1
25547 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
25548 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
25549 if test "${ac_cv_have_u_intxx_t+set}" = set; then
25550 echo $ECHO_N "(cached) $ECHO_C" >&6
25553 cat >conftest.$ac_ext <<_ACEOF
25556 cat confdefs.h >>conftest.$ac_ext
25557 cat >>conftest.$ac_ext <<_ACEOF
25558 /* end confdefs.h. */
25559 #include <sys/types.h>
25563 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
25568 rm -f conftest.$ac_objext
25569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25570 (eval $ac_compile) 2>conftest.er1
25572 grep -v '^ *+' conftest.er1 >conftest.err
25574 cat conftest.err >&5
25575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25576 (exit $ac_status); } &&
25577 { ac_try='test -z "$ac_c_werror_flag"
25578 || test ! -s conftest.err'
25579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25580 (eval $ac_try) 2>&5
25582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25583 (exit $ac_status); }; } &&
25584 { ac_try='test -s conftest.$ac_objext'
25585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25586 (eval $ac_try) 2>&5
25588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25589 (exit $ac_status); }; }; then
25590 ac_cv_have_u_intxx_t="yes"
25592 echo "$as_me: failed program was:" >&5
25593 sed 's/^/| /' conftest.$ac_ext >&5
25595 ac_cv_have_u_intxx_t="no"
25598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25601 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
25602 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
25603 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
25604 cat >>confdefs.h <<\_ACEOF
25605 #define HAVE_U_INTXX_T 1
25611 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
25612 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
25613 if test "${ac_cv_have_u_int64_t+set}" = set; then
25614 echo $ECHO_N "(cached) $ECHO_C" >&6
25617 cat >conftest.$ac_ext <<_ACEOF
25620 cat confdefs.h >>conftest.$ac_ext
25621 cat >>conftest.$ac_ext <<_ACEOF
25622 /* end confdefs.h. */
25623 #include <sys/types.h>
25627 u_int64_t a; a = 1;
25632 rm -f conftest.$ac_objext
25633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25634 (eval $ac_compile) 2>conftest.er1
25636 grep -v '^ *+' conftest.er1 >conftest.err
25638 cat conftest.err >&5
25639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25640 (exit $ac_status); } &&
25641 { ac_try='test -z "$ac_c_werror_flag"
25642 || test ! -s conftest.err'
25643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25644 (eval $ac_try) 2>&5
25646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25647 (exit $ac_status); }; } &&
25648 { ac_try='test -s conftest.$ac_objext'
25649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25650 (eval $ac_try) 2>&5
25652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25653 (exit $ac_status); }; }; then
25654 ac_cv_have_u_int64_t="yes"
25656 echo "$as_me: failed program was:" >&5
25657 sed 's/^/| /' conftest.$ac_ext >&5
25659 ac_cv_have_u_int64_t="no"
25662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25665 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
25666 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
25667 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
25668 cat >>confdefs.h <<\_ACEOF
25669 #define HAVE_U_INT64_T 1
25675 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
25676 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
25678 echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
25679 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
25680 cat >conftest.$ac_ext <<_ACEOF
25683 cat confdefs.h >>conftest.$ac_ext
25684 cat >>conftest.$ac_ext <<_ACEOF
25685 /* end confdefs.h. */
25686 #include <sys/bitypes.h>
25690 int8_t a; int16_t b; int32_t c;
25691 u_int8_t e; u_int16_t f; u_int32_t g;
25692 a = b = c = e = f = g = 1;
25697 rm -f conftest.$ac_objext
25698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25699 (eval $ac_compile) 2>conftest.er1
25701 grep -v '^ *+' conftest.er1 >conftest.err
25703 cat conftest.err >&5
25704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25705 (exit $ac_status); } &&
25706 { ac_try='test -z "$ac_c_werror_flag"
25707 || test ! -s conftest.err'
25708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25709 (eval $ac_try) 2>&5
25711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25712 (exit $ac_status); }; } &&
25713 { ac_try='test -s conftest.$ac_objext'
25714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25715 (eval $ac_try) 2>&5
25717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25718 (exit $ac_status); }; }; then
25719 cat >>confdefs.h <<\_ACEOF
25720 #define HAVE_U_INTXX_T 1
25723 cat >>confdefs.h <<\_ACEOF
25724 #define HAVE_INTXX_T 1
25727 cat >>confdefs.h <<\_ACEOF
25728 #define HAVE_SYS_BITYPES_H 1
25731 echo "$as_me:$LINENO: result: yes" >&5
25732 echo "${ECHO_T}yes" >&6
25734 echo "$as_me: failed program was:" >&5
25735 sed 's/^/| /' conftest.$ac_ext >&5
25737 echo "$as_me:$LINENO: result: no" >&5
25738 echo "${ECHO_T}no" >&6
25741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25744 if test -z "$have_u_intxx_t" ; then
25745 echo "$as_me:$LINENO: checking for uintXX_t types" >&5
25746 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
25747 if test "${ac_cv_have_uintxx_t+set}" = set; then
25748 echo $ECHO_N "(cached) $ECHO_C" >&6
25751 cat >conftest.$ac_ext <<_ACEOF
25754 cat confdefs.h >>conftest.$ac_ext
25755 cat >>conftest.$ac_ext <<_ACEOF
25756 /* end confdefs.h. */
25757 #include <sys/types.h>
25761 uint8_t a; uint16_t b;
25762 uint32_t c; a = b = c = 1;
25767 rm -f conftest.$ac_objext
25768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25769 (eval $ac_compile) 2>conftest.er1
25771 grep -v '^ *+' conftest.er1 >conftest.err
25773 cat conftest.err >&5
25774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25775 (exit $ac_status); } &&
25776 { ac_try='test -z "$ac_c_werror_flag"
25777 || test ! -s conftest.err'
25778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25779 (eval $ac_try) 2>&5
25781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25782 (exit $ac_status); }; } &&
25783 { ac_try='test -s conftest.$ac_objext'
25784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25785 (eval $ac_try) 2>&5
25787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25788 (exit $ac_status); }; }; then
25789 ac_cv_have_uintxx_t="yes"
25791 echo "$as_me: failed program was:" >&5
25792 sed 's/^/| /' conftest.$ac_ext >&5
25794 ac_cv_have_uintxx_t="no"
25797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25800 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
25801 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
25802 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
25803 cat >>confdefs.h <<\_ACEOF
25804 #define HAVE_UINTXX_T 1
25810 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
25811 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
25813 echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
25814 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
25815 cat >conftest.$ac_ext <<_ACEOF
25818 cat confdefs.h >>conftest.$ac_ext
25819 cat >>conftest.$ac_ext <<_ACEOF
25820 /* end confdefs.h. */
25821 #include <sys/bitypes.h>
25825 int64_t a; u_int64_t b;
25831 rm -f conftest.$ac_objext
25832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25833 (eval $ac_compile) 2>conftest.er1
25835 grep -v '^ *+' conftest.er1 >conftest.err
25837 cat conftest.err >&5
25838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25839 (exit $ac_status); } &&
25840 { ac_try='test -z "$ac_c_werror_flag"
25841 || test ! -s conftest.err'
25842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25843 (eval $ac_try) 2>&5
25845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25846 (exit $ac_status); }; } &&
25847 { ac_try='test -s conftest.$ac_objext'
25848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25849 (eval $ac_try) 2>&5
25851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25852 (exit $ac_status); }; }; then
25853 cat >>confdefs.h <<\_ACEOF
25854 #define HAVE_U_INT64_T 1
25857 cat >>confdefs.h <<\_ACEOF
25858 #define HAVE_INT64_T 1
25861 echo "$as_me:$LINENO: result: yes" >&5
25862 echo "${ECHO_T}yes" >&6
25864 echo "$as_me: failed program was:" >&5
25865 sed 's/^/| /' conftest.$ac_ext >&5
25867 echo "$as_me:$LINENO: result: no" >&5
25868 echo "${ECHO_T}no" >&6
25871 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25874 if (test -z "$have_uintxx_t" && \
25875 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
25877 echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
25878 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
25879 cat >conftest.$ac_ext <<_ACEOF
25882 cat confdefs.h >>conftest.$ac_ext
25883 cat >>conftest.$ac_ext <<_ACEOF
25884 /* end confdefs.h. */
25885 #include <sys/bitypes.h>
25889 uint8_t a; uint16_t b;
25890 uint32_t c; a = b = c = 1;
25895 rm -f conftest.$ac_objext
25896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25897 (eval $ac_compile) 2>conftest.er1
25899 grep -v '^ *+' conftest.er1 >conftest.err
25901 cat conftest.err >&5
25902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25903 (exit $ac_status); } &&
25904 { ac_try='test -z "$ac_c_werror_flag"
25905 || test ! -s conftest.err'
25906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25907 (eval $ac_try) 2>&5
25909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25910 (exit $ac_status); }; } &&
25911 { ac_try='test -s conftest.$ac_objext'
25912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25913 (eval $ac_try) 2>&5
25915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25916 (exit $ac_status); }; }; then
25917 cat >>confdefs.h <<\_ACEOF
25918 #define HAVE_UINTXX_T 1
25921 echo "$as_me:$LINENO: result: yes" >&5
25922 echo "${ECHO_T}yes" >&6
25924 echo "$as_me: failed program was:" >&5
25925 sed 's/^/| /' conftest.$ac_ext >&5
25927 echo "$as_me:$LINENO: result: no" >&5
25928 echo "${ECHO_T}no" >&6
25931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25967 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25968 echo "$as_me:$LINENO: checking for $ac_func" >&5
25969 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25970 if eval "test \"\${$as_ac_var+set}\" = set"; then
25971 echo $ECHO_N "(cached) $ECHO_C" >&6
25973 cat >conftest.$ac_ext <<_ACEOF
25976 cat confdefs.h >>conftest.$ac_ext
25977 cat >>conftest.$ac_ext <<_ACEOF
25978 /* end confdefs.h. */
25979 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25980 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25981 #define $ac_func innocuous_$ac_func
25983 /* System header to define __stub macros and hopefully few prototypes,
25984 which can conflict with char $ac_func (); below.
25985 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25986 <limits.h> exists even on freestanding compilers. */
25989 # include <limits.h>
25991 # include <assert.h>
25996 /* Override any gcc2 internal prototype to avoid an error. */
26001 /* We use char because int might match the return type of a gcc2
26002 builtin and then its argument prototype would still apply. */
26004 /* The GNU C library defines this for functions which it implements
26005 to always fail with ENOSYS. Some functions are actually named
26006 something starting with __ and the normal name is an alias. */
26007 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26010 char (*f) () = $ac_func;
26019 return f != $ac_func;
26024 rm -f conftest.$ac_objext conftest$ac_exeext
26025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26026 (eval $ac_link) 2>conftest.er1
26028 grep -v '^ *+' conftest.er1 >conftest.err
26030 cat conftest.err >&5
26031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26032 (exit $ac_status); } &&
26033 { ac_try='test -z "$ac_c_werror_flag"
26034 || test ! -s conftest.err'
26035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26036 (eval $ac_try) 2>&5
26038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26039 (exit $ac_status); }; } &&
26040 { ac_try='test -s conftest$ac_exeext'
26041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26042 (eval $ac_try) 2>&5
26044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26045 (exit $ac_status); }; }; then
26046 eval "$as_ac_var=yes"
26048 echo "$as_me: failed program was:" >&5
26049 sed 's/^/| /' conftest.$ac_ext >&5
26051 eval "$as_ac_var=no"
26053 rm -f conftest.err conftest.$ac_objext \
26054 conftest$ac_exeext conftest.$ac_ext
26056 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26057 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26058 if test `eval echo '${'$as_ac_var'}'` = yes; then
26059 cat >>confdefs.h <<_ACEOF
26060 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26064 echo 'configure: cannot find needed function.'; exit 1
26071 for ac_func in fchdir
26073 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26074 echo "$as_me:$LINENO: checking for $ac_func" >&5
26075 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26076 if eval "test \"\${$as_ac_var+set}\" = set"; then
26077 echo $ECHO_N "(cached) $ECHO_C" >&6
26079 cat >conftest.$ac_ext <<_ACEOF
26082 cat confdefs.h >>conftest.$ac_ext
26083 cat >>conftest.$ac_ext <<_ACEOF
26084 /* end confdefs.h. */
26085 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26086 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26087 #define $ac_func innocuous_$ac_func
26089 /* System header to define __stub macros and hopefully few prototypes,
26090 which can conflict with char $ac_func (); below.
26091 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26092 <limits.h> exists even on freestanding compilers. */
26095 # include <limits.h>
26097 # include <assert.h>
26102 /* Override any gcc2 internal prototype to avoid an error. */
26107 /* We use char because int might match the return type of a gcc2
26108 builtin and then its argument prototype would still apply. */
26110 /* The GNU C library defines this for functions which it implements
26111 to always fail with ENOSYS. Some functions are actually named
26112 something starting with __ and the normal name is an alias. */
26113 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26116 char (*f) () = $ac_func;
26125 return f != $ac_func;
26130 rm -f conftest.$ac_objext conftest$ac_exeext
26131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26132 (eval $ac_link) 2>conftest.er1
26134 grep -v '^ *+' conftest.er1 >conftest.err
26136 cat conftest.err >&5
26137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26138 (exit $ac_status); } &&
26139 { ac_try='test -z "$ac_c_werror_flag"
26140 || test ! -s conftest.err'
26141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26142 (eval $ac_try) 2>&5
26144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26145 (exit $ac_status); }; } &&
26146 { ac_try='test -s conftest$ac_exeext'
26147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26148 (eval $ac_try) 2>&5
26150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26151 (exit $ac_status); }; }; then
26152 eval "$as_ac_var=yes"
26154 echo "$as_me: failed program was:" >&5
26155 sed 's/^/| /' conftest.$ac_ext >&5
26157 eval "$as_ac_var=no"
26159 rm -f conftest.err conftest.$ac_objext \
26160 conftest$ac_exeext conftest.$ac_ext
26162 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26163 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26164 if test `eval echo '${'$as_ac_var'}'` = yes; then
26165 cat >>confdefs.h <<_ACEOF
26166 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26168 cat >>confdefs.h <<\_ACEOF
26169 #define HAVE_FCHDIR 1
26176 for ac_func in strtoll
26178 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26179 echo "$as_me:$LINENO: checking for $ac_func" >&5
26180 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26181 if eval "test \"\${$as_ac_var+set}\" = set"; then
26182 echo $ECHO_N "(cached) $ECHO_C" >&6
26184 cat >conftest.$ac_ext <<_ACEOF
26187 cat confdefs.h >>conftest.$ac_ext
26188 cat >>conftest.$ac_ext <<_ACEOF
26189 /* end confdefs.h. */
26190 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26191 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26192 #define $ac_func innocuous_$ac_func
26194 /* System header to define __stub macros and hopefully few prototypes,
26195 which can conflict with char $ac_func (); below.
26196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26197 <limits.h> exists even on freestanding compilers. */
26200 # include <limits.h>
26202 # include <assert.h>
26207 /* Override any gcc2 internal prototype to avoid an error. */
26212 /* We use char because int might match the return type of a gcc2
26213 builtin and then its argument prototype would still apply. */
26215 /* The GNU C library defines this for functions which it implements
26216 to always fail with ENOSYS. Some functions are actually named
26217 something starting with __ and the normal name is an alias. */
26218 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26221 char (*f) () = $ac_func;
26230 return f != $ac_func;
26235 rm -f conftest.$ac_objext conftest$ac_exeext
26236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26237 (eval $ac_link) 2>conftest.er1
26239 grep -v '^ *+' conftest.er1 >conftest.err
26241 cat conftest.err >&5
26242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26243 (exit $ac_status); } &&
26244 { ac_try='test -z "$ac_c_werror_flag"
26245 || test ! -s conftest.err'
26246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26247 (eval $ac_try) 2>&5
26249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26250 (exit $ac_status); }; } &&
26251 { ac_try='test -s conftest$ac_exeext'
26252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26253 (eval $ac_try) 2>&5
26255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26256 (exit $ac_status); }; }; then
26257 eval "$as_ac_var=yes"
26259 echo "$as_me: failed program was:" >&5
26260 sed 's/^/| /' conftest.$ac_ext >&5
26262 eval "$as_ac_var=no"
26264 rm -f conftest.err conftest.$ac_objext \
26265 conftest$ac_exeext conftest.$ac_ext
26267 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26268 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26269 if test `eval echo '${'$as_ac_var'}'` = yes; then
26270 cat >>confdefs.h <<_ACEOF
26271 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26273 cat >>confdefs.h <<\_ACEOF
26274 #define HAVE_STRTOLL 1
26282 for ac_func in chflags
26284 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26285 echo "$as_me:$LINENO: checking for $ac_func" >&5
26286 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26287 if eval "test \"\${$as_ac_var+set}\" = set"; then
26288 echo $ECHO_N "(cached) $ECHO_C" >&6
26290 cat >conftest.$ac_ext <<_ACEOF
26293 cat confdefs.h >>conftest.$ac_ext
26294 cat >>conftest.$ac_ext <<_ACEOF
26295 /* end confdefs.h. */
26296 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26297 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26298 #define $ac_func innocuous_$ac_func
26300 /* System header to define __stub macros and hopefully few prototypes,
26301 which can conflict with char $ac_func (); below.
26302 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26303 <limits.h> exists even on freestanding compilers. */
26306 # include <limits.h>
26308 # include <assert.h>
26313 /* Override any gcc2 internal prototype to avoid an error. */
26318 /* We use char because int might match the return type of a gcc2
26319 builtin and then its argument prototype would still apply. */
26321 /* The GNU C library defines this for functions which it implements
26322 to always fail with ENOSYS. Some functions are actually named
26323 something starting with __ and the normal name is an alias. */
26324 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26327 char (*f) () = $ac_func;
26336 return f != $ac_func;
26341 rm -f conftest.$ac_objext conftest$ac_exeext
26342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26343 (eval $ac_link) 2>conftest.er1
26345 grep -v '^ *+' conftest.er1 >conftest.err
26347 cat conftest.err >&5
26348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26349 (exit $ac_status); } &&
26350 { ac_try='test -z "$ac_c_werror_flag"
26351 || test ! -s conftest.err'
26352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26353 (eval $ac_try) 2>&5
26355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26356 (exit $ac_status); }; } &&
26357 { ac_try='test -s conftest$ac_exeext'
26358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26359 (eval $ac_try) 2>&5
26361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26362 (exit $ac_status); }; }; then
26363 eval "$as_ac_var=yes"
26365 echo "$as_me: failed program was:" >&5
26366 sed 's/^/| /' conftest.$ac_ext >&5
26368 eval "$as_ac_var=no"
26370 rm -f conftest.err conftest.$ac_objext \
26371 conftest$ac_exeext conftest.$ac_ext
26373 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26374 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26375 if test `eval echo '${'$as_ac_var'}'` = yes; then
26376 cat >>confdefs.h <<_ACEOF
26377 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26388 for ac_func in snprintf vsnprintf gethostid fseeko
26390 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26391 echo "$as_me:$LINENO: checking for $ac_func" >&5
26392 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26393 if eval "test \"\${$as_ac_var+set}\" = set"; then
26394 echo $ECHO_N "(cached) $ECHO_C" >&6
26396 cat >conftest.$ac_ext <<_ACEOF
26399 cat confdefs.h >>conftest.$ac_ext
26400 cat >>conftest.$ac_ext <<_ACEOF
26401 /* end confdefs.h. */
26402 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26403 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26404 #define $ac_func innocuous_$ac_func
26406 /* System header to define __stub macros and hopefully few prototypes,
26407 which can conflict with char $ac_func (); below.
26408 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26409 <limits.h> exists even on freestanding compilers. */
26412 # include <limits.h>
26414 # include <assert.h>
26419 /* Override any gcc2 internal prototype to avoid an error. */
26424 /* We use char because int might match the return type of a gcc2
26425 builtin and then its argument prototype would still apply. */
26427 /* The GNU C library defines this for functions which it implements
26428 to always fail with ENOSYS. Some functions are actually named
26429 something starting with __ and the normal name is an alias. */
26430 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26433 char (*f) () = $ac_func;
26442 return f != $ac_func;
26447 rm -f conftest.$ac_objext conftest$ac_exeext
26448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26449 (eval $ac_link) 2>conftest.er1
26451 grep -v '^ *+' conftest.er1 >conftest.err
26453 cat conftest.err >&5
26454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26455 (exit $ac_status); } &&
26456 { ac_try='test -z "$ac_c_werror_flag"
26457 || test ! -s conftest.err'
26458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26459 (eval $ac_try) 2>&5
26461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26462 (exit $ac_status); }; } &&
26463 { ac_try='test -s conftest$ac_exeext'
26464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26465 (eval $ac_try) 2>&5
26467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26468 (exit $ac_status); }; }; then
26469 eval "$as_ac_var=yes"
26471 echo "$as_me: failed program was:" >&5
26472 sed 's/^/| /' conftest.$ac_ext >&5
26474 eval "$as_ac_var=no"
26476 rm -f conftest.err conftest.$ac_objext \
26477 conftest$ac_exeext conftest.$ac_ext
26479 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26480 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26481 if test `eval echo '${'$as_ac_var'}'` = yes; then
26482 cat >>confdefs.h <<_ACEOF
26483 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26494 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
26496 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26497 echo "$as_me:$LINENO: checking for $ac_func" >&5
26498 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26499 if eval "test \"\${$as_ac_var+set}\" = set"; then
26500 echo $ECHO_N "(cached) $ECHO_C" >&6
26502 cat >conftest.$ac_ext <<_ACEOF
26505 cat confdefs.h >>conftest.$ac_ext
26506 cat >>conftest.$ac_ext <<_ACEOF
26507 /* end confdefs.h. */
26508 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26509 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26510 #define $ac_func innocuous_$ac_func
26512 /* System header to define __stub macros and hopefully few prototypes,
26513 which can conflict with char $ac_func (); below.
26514 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26515 <limits.h> exists even on freestanding compilers. */
26518 # include <limits.h>
26520 # include <assert.h>
26525 /* Override any gcc2 internal prototype to avoid an error. */
26530 /* We use char because int might match the return type of a gcc2
26531 builtin and then its argument prototype would still apply. */
26533 /* The GNU C library defines this for functions which it implements
26534 to always fail with ENOSYS. Some functions are actually named
26535 something starting with __ and the normal name is an alias. */
26536 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26539 char (*f) () = $ac_func;
26548 return f != $ac_func;
26553 rm -f conftest.$ac_objext conftest$ac_exeext
26554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26555 (eval $ac_link) 2>conftest.er1
26557 grep -v '^ *+' conftest.er1 >conftest.err
26559 cat conftest.err >&5
26560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26561 (exit $ac_status); } &&
26562 { ac_try='test -z "$ac_c_werror_flag"
26563 || test ! -s conftest.err'
26564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26565 (eval $ac_try) 2>&5
26567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26568 (exit $ac_status); }; } &&
26569 { ac_try='test -s conftest$ac_exeext'
26570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26571 (eval $ac_try) 2>&5
26573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26574 (exit $ac_status); }; }; then
26575 eval "$as_ac_var=yes"
26577 echo "$as_me: failed program was:" >&5
26578 sed 's/^/| /' conftest.$ac_ext >&5
26580 eval "$as_ac_var=no"
26582 rm -f conftest.err conftest.$ac_objext \
26583 conftest$ac_exeext conftest.$ac_ext
26585 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26586 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26587 if test `eval echo '${'$as_ac_var'}'` = yes; then
26588 cat >>confdefs.h <<_ACEOF
26589 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26596 # If resolver functions are not in libc check for -lnsl or -lresolv.
26597 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
26598 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
26599 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
26600 echo $ECHO_N "(cached) $ECHO_C" >&6
26602 cat >conftest.$ac_ext <<_ACEOF
26605 cat confdefs.h >>conftest.$ac_ext
26606 cat >>conftest.$ac_ext <<_ACEOF
26607 /* end confdefs.h. */
26608 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
26609 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26610 #define gethostbyname_r innocuous_gethostbyname_r
26612 /* System header to define __stub macros and hopefully few prototypes,
26613 which can conflict with char gethostbyname_r (); below.
26614 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26615 <limits.h> exists even on freestanding compilers. */
26618 # include <limits.h>
26620 # include <assert.h>
26623 #undef gethostbyname_r
26625 /* Override any gcc2 internal prototype to avoid an error. */
26630 /* We use char because int might match the return type of a gcc2
26631 builtin and then its argument prototype would still apply. */
26632 char gethostbyname_r ();
26633 /* The GNU C library defines this for functions which it implements
26634 to always fail with ENOSYS. Some functions are actually named
26635 something starting with __ and the normal name is an alias. */
26636 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
26639 char (*f) () = gethostbyname_r;
26648 return f != gethostbyname_r;
26653 rm -f conftest.$ac_objext conftest$ac_exeext
26654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26655 (eval $ac_link) 2>conftest.er1
26657 grep -v '^ *+' conftest.er1 >conftest.err
26659 cat conftest.err >&5
26660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26661 (exit $ac_status); } &&
26662 { ac_try='test -z "$ac_c_werror_flag"
26663 || test ! -s conftest.err'
26664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26665 (eval $ac_try) 2>&5
26667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26668 (exit $ac_status); }; } &&
26669 { ac_try='test -s conftest$ac_exeext'
26670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26671 (eval $ac_try) 2>&5
26673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26674 (exit $ac_status); }; }; then
26675 ac_cv_func_gethostbyname_r=yes
26677 echo "$as_me: failed program was:" >&5
26678 sed 's/^/| /' conftest.$ac_ext >&5
26680 ac_cv_func_gethostbyname_r=no
26682 rm -f conftest.err conftest.$ac_objext \
26683 conftest$ac_exeext conftest.$ac_ext
26685 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
26686 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
26687 if test $ac_cv_func_gethostbyname_r = yes; then
26688 echo "$as_me:$LINENO: result: using libc's resolver" >&5
26689 echo "${ECHO_T}using libc's resolver" >&6
26692 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
26693 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
26694 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
26695 echo $ECHO_N "(cached) $ECHO_C" >&6
26697 ac_check_lib_save_LIBS=$LIBS
26699 cat >conftest.$ac_ext <<_ACEOF
26702 cat confdefs.h >>conftest.$ac_ext
26703 cat >>conftest.$ac_ext <<_ACEOF
26704 /* end confdefs.h. */
26706 /* Override any gcc2 internal prototype to avoid an error. */
26710 /* We use char because int might match the return type of a gcc2
26711 builtin and then its argument prototype would still apply. */
26712 char gethostbyname_r ();
26716 gethostbyname_r ();
26721 rm -f conftest.$ac_objext conftest$ac_exeext
26722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26723 (eval $ac_link) 2>conftest.er1
26725 grep -v '^ *+' conftest.er1 >conftest.err
26727 cat conftest.err >&5
26728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26729 (exit $ac_status); } &&
26730 { ac_try='test -z "$ac_c_werror_flag"
26731 || test ! -s conftest.err'
26732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26733 (eval $ac_try) 2>&5
26735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26736 (exit $ac_status); }; } &&
26737 { ac_try='test -s conftest$ac_exeext'
26738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26739 (eval $ac_try) 2>&5
26741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26742 (exit $ac_status); }; }; then
26743 ac_cv_lib_nsl_gethostbyname_r=yes
26745 echo "$as_me: failed program was:" >&5
26746 sed 's/^/| /' conftest.$ac_ext >&5
26748 ac_cv_lib_nsl_gethostbyname_r=no
26750 rm -f conftest.err conftest.$ac_objext \
26751 conftest$ac_exeext conftest.$ac_ext
26752 LIBS=$ac_check_lib_save_LIBS
26754 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
26755 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
26756 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
26757 cat >>confdefs.h <<_ACEOF
26758 #define HAVE_LIBNSL 1
26766 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
26767 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
26768 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
26769 echo $ECHO_N "(cached) $ECHO_C" >&6
26771 ac_check_lib_save_LIBS=$LIBS
26772 LIBS="-lresolv $LIBS"
26773 cat >conftest.$ac_ext <<_ACEOF
26776 cat confdefs.h >>conftest.$ac_ext
26777 cat >>conftest.$ac_ext <<_ACEOF
26778 /* end confdefs.h. */
26780 /* Override any gcc2 internal prototype to avoid an error. */
26784 /* We use char because int might match the return type of a gcc2
26785 builtin and then its argument prototype would still apply. */
26786 char gethostbyname_r ();
26790 gethostbyname_r ();
26795 rm -f conftest.$ac_objext conftest$ac_exeext
26796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26797 (eval $ac_link) 2>conftest.er1
26799 grep -v '^ *+' conftest.er1 >conftest.err
26801 cat conftest.err >&5
26802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26803 (exit $ac_status); } &&
26804 { ac_try='test -z "$ac_c_werror_flag"
26805 || test ! -s conftest.err'
26806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26807 (eval $ac_try) 2>&5
26809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26810 (exit $ac_status); }; } &&
26811 { ac_try='test -s conftest$ac_exeext'
26812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26813 (eval $ac_try) 2>&5
26815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26816 (exit $ac_status); }; }; then
26817 ac_cv_lib_resolv_gethostbyname_r=yes
26819 echo "$as_me: failed program was:" >&5
26820 sed 's/^/| /' conftest.$ac_ext >&5
26822 ac_cv_lib_resolv_gethostbyname_r=no
26824 rm -f conftest.err conftest.$ac_objext \
26825 conftest$ac_exeext conftest.$ac_ext
26826 LIBS=$ac_check_lib_save_LIBS
26828 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
26829 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
26830 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
26831 cat >>confdefs.h <<_ACEOF
26832 #define HAVE_LIBRESOLV 1
26835 LIBS="-lresolv $LIBS"
26845 for ac_func in inet_pton
26847 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26848 echo "$as_me:$LINENO: checking for $ac_func" >&5
26849 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26850 if eval "test \"\${$as_ac_var+set}\" = set"; then
26851 echo $ECHO_N "(cached) $ECHO_C" >&6
26853 cat >conftest.$ac_ext <<_ACEOF
26856 cat confdefs.h >>conftest.$ac_ext
26857 cat >>conftest.$ac_ext <<_ACEOF
26858 /* end confdefs.h. */
26859 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26860 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26861 #define $ac_func innocuous_$ac_func
26863 /* System header to define __stub macros and hopefully few prototypes,
26864 which can conflict with char $ac_func (); below.
26865 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26866 <limits.h> exists even on freestanding compilers. */
26869 # include <limits.h>
26871 # include <assert.h>
26876 /* Override any gcc2 internal prototype to avoid an error. */
26881 /* We use char because int might match the return type of a gcc2
26882 builtin and then its argument prototype would still apply. */
26884 /* The GNU C library defines this for functions which it implements
26885 to always fail with ENOSYS. Some functions are actually named
26886 something starting with __ and the normal name is an alias. */
26887 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26890 char (*f) () = $ac_func;
26899 return f != $ac_func;
26904 rm -f conftest.$ac_objext conftest$ac_exeext
26905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26906 (eval $ac_link) 2>conftest.er1
26908 grep -v '^ *+' conftest.er1 >conftest.err
26910 cat conftest.err >&5
26911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26912 (exit $ac_status); } &&
26913 { ac_try='test -z "$ac_c_werror_flag"
26914 || test ! -s conftest.err'
26915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26916 (eval $ac_try) 2>&5
26918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26919 (exit $ac_status); }; } &&
26920 { ac_try='test -s conftest$ac_exeext'
26921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26922 (eval $ac_try) 2>&5
26924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26925 (exit $ac_status); }; }; then
26926 eval "$as_ac_var=yes"
26928 echo "$as_me: failed program was:" >&5
26929 sed 's/^/| /' conftest.$ac_ext >&5
26931 eval "$as_ac_var=no"
26933 rm -f conftest.err conftest.$ac_objext \
26934 conftest$ac_exeext conftest.$ac_ext
26936 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26937 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26938 if test `eval echo '${'$as_ac_var'}'` = yes; then
26939 cat >>confdefs.h <<_ACEOF
26940 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26942 cat >>confdefs.h <<\_ACEOF
26943 #define HAVE_INET_PTON 1
26950 for ac_func in inet_ntop
26952 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26953 echo "$as_me:$LINENO: checking for $ac_func" >&5
26954 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26955 if eval "test \"\${$as_ac_var+set}\" = set"; then
26956 echo $ECHO_N "(cached) $ECHO_C" >&6
26958 cat >conftest.$ac_ext <<_ACEOF
26961 cat confdefs.h >>conftest.$ac_ext
26962 cat >>conftest.$ac_ext <<_ACEOF
26963 /* end confdefs.h. */
26964 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26965 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26966 #define $ac_func innocuous_$ac_func
26968 /* System header to define __stub macros and hopefully few prototypes,
26969 which can conflict with char $ac_func (); below.
26970 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26971 <limits.h> exists even on freestanding compilers. */
26974 # include <limits.h>
26976 # include <assert.h>
26981 /* Override any gcc2 internal prototype to avoid an error. */
26986 /* We use char because int might match the return type of a gcc2
26987 builtin and then its argument prototype would still apply. */
26989 /* The GNU C library defines this for functions which it implements
26990 to always fail with ENOSYS. Some functions are actually named
26991 something starting with __ and the normal name is an alias. */
26992 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26995 char (*f) () = $ac_func;
27004 return f != $ac_func;
27009 rm -f conftest.$ac_objext conftest$ac_exeext
27010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27011 (eval $ac_link) 2>conftest.er1
27013 grep -v '^ *+' conftest.er1 >conftest.err
27015 cat conftest.err >&5
27016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27017 (exit $ac_status); } &&
27018 { ac_try='test -z "$ac_c_werror_flag"
27019 || test ! -s conftest.err'
27020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27021 (eval $ac_try) 2>&5
27023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27024 (exit $ac_status); }; } &&
27025 { ac_try='test -s conftest$ac_exeext'
27026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27027 (eval $ac_try) 2>&5
27029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27030 (exit $ac_status); }; }; then
27031 eval "$as_ac_var=yes"
27033 echo "$as_me: failed program was:" >&5
27034 sed 's/^/| /' conftest.$ac_ext >&5
27036 eval "$as_ac_var=no"
27038 rm -f conftest.err conftest.$ac_objext \
27039 conftest$ac_exeext conftest.$ac_ext
27041 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27042 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27043 if test `eval echo '${'$as_ac_var'}'` = yes; then
27044 cat >>confdefs.h <<_ACEOF
27045 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27047 cat >>confdefs.h <<\_ACEOF
27048 #define HAVE_INET_NTOP 1
27055 for ac_func in gethostbyname2
27057 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27058 echo "$as_me:$LINENO: checking for $ac_func" >&5
27059 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27060 if eval "test \"\${$as_ac_var+set}\" = set"; then
27061 echo $ECHO_N "(cached) $ECHO_C" >&6
27063 cat >conftest.$ac_ext <<_ACEOF
27066 cat confdefs.h >>conftest.$ac_ext
27067 cat >>conftest.$ac_ext <<_ACEOF
27068 /* end confdefs.h. */
27069 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27070 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27071 #define $ac_func innocuous_$ac_func
27073 /* System header to define __stub macros and hopefully few prototypes,
27074 which can conflict with char $ac_func (); below.
27075 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27076 <limits.h> exists even on freestanding compilers. */
27079 # include <limits.h>
27081 # include <assert.h>
27086 /* Override any gcc2 internal prototype to avoid an error. */
27091 /* We use char because int might match the return type of a gcc2
27092 builtin and then its argument prototype would still apply. */
27094 /* The GNU C library defines this for functions which it implements
27095 to always fail with ENOSYS. Some functions are actually named
27096 something starting with __ and the normal name is an alias. */
27097 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27100 char (*f) () = $ac_func;
27109 return f != $ac_func;
27114 rm -f conftest.$ac_objext conftest$ac_exeext
27115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27116 (eval $ac_link) 2>conftest.er1
27118 grep -v '^ *+' conftest.er1 >conftest.err
27120 cat conftest.err >&5
27121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27122 (exit $ac_status); } &&
27123 { ac_try='test -z "$ac_c_werror_flag"
27124 || test ! -s conftest.err'
27125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27126 (eval $ac_try) 2>&5
27128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27129 (exit $ac_status); }; } &&
27130 { ac_try='test -s conftest$ac_exeext'
27131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27132 (eval $ac_try) 2>&5
27134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27135 (exit $ac_status); }; }; then
27136 eval "$as_ac_var=yes"
27138 echo "$as_me: failed program was:" >&5
27139 sed 's/^/| /' conftest.$ac_ext >&5
27141 eval "$as_ac_var=no"
27143 rm -f conftest.err conftest.$ac_objext \
27144 conftest$ac_exeext conftest.$ac_ext
27146 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27147 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27148 if test `eval echo '${'$as_ac_var'}'` = yes; then
27149 cat >>confdefs.h <<_ACEOF
27150 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27152 cat >>confdefs.h <<\_ACEOF
27153 #define HAVE_GETHOSTBYNAME2 1
27160 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
27161 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
27162 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
27163 echo $ECHO_N "(cached) $ECHO_C" >&6
27165 cat >conftest.$ac_ext <<_ACEOF
27168 cat confdefs.h >>conftest.$ac_ext
27169 cat >>conftest.$ac_ext <<_ACEOF
27170 /* end confdefs.h. */
27171 #include <sys/socket.h>
27175 struct sockaddr s; s.sa_len;
27180 rm -f conftest.$ac_objext
27181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27182 (eval $ac_compile) 2>conftest.er1
27184 grep -v '^ *+' conftest.er1 >conftest.err
27186 cat conftest.err >&5
27187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27188 (exit $ac_status); } &&
27189 { ac_try='test -z "$ac_c_werror_flag"
27190 || test ! -s conftest.err'
27191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27192 (eval $ac_try) 2>&5
27194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27195 (exit $ac_status); }; } &&
27196 { ac_try='test -s conftest.$ac_objext'
27197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27198 (eval $ac_try) 2>&5
27200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27201 (exit $ac_status); }; }; then
27202 ac_cv_struct_sockaddr_sa_len=yes
27204 echo "$as_me: failed program was:" >&5
27205 sed 's/^/| /' conftest.$ac_ext >&5
27207 ac_cv_struct_sockaddr_sa_len=no
27209 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27211 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
27212 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
27214 if test $ac_cv_struct_sockaddr_sa_len = yes; then
27216 cat >>confdefs.h <<\_ACEOF
27217 #define HAVE_SA_LEN 1
27223 echo "$as_me:$LINENO: checking for IPv6 support" >&5
27224 echo $ECHO_N "checking for IPv6 support... $ECHO_C" >&6
27225 if test "${ac_cv_ipv6_support+set}" = set; then
27226 echo $ECHO_N "(cached) $ECHO_C" >&6
27228 cat >conftest.$ac_ext <<_ACEOF
27231 cat confdefs.h >>conftest.$ac_ext
27232 cat >>conftest.$ac_ext <<_ACEOF
27233 /* end confdefs.h. */
27234 #include <sys/types.h>
27235 #include <sys/socket.h>
27236 #include <netinet/in.h>
27240 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] =
27246 rm -f conftest.$ac_objext conftest$ac_exeext
27247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27248 (eval $ac_link) 2>conftest.er1
27250 grep -v '^ *+' conftest.er1 >conftest.err
27252 cat conftest.err >&5
27253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27254 (exit $ac_status); } &&
27255 { ac_try='test -z "$ac_c_werror_flag"
27256 || test ! -s conftest.err'
27257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27258 (eval $ac_try) 2>&5
27260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27261 (exit $ac_status); }; } &&
27262 { ac_try='test -s conftest$ac_exeext'
27263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27264 (eval $ac_try) 2>&5
27266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27267 (exit $ac_status); }; }; then
27268 ac_cv_ipv6_support=yes
27270 echo "$as_me: failed program was:" >&5
27271 sed 's/^/| /' conftest.$ac_ext >&5
27273 ac_cv_ipv6_support=no
27275 rm -f conftest.err conftest.$ac_objext \
27276 conftest$ac_exeext conftest.$ac_ext
27278 echo "$as_me:$LINENO: result: $ac_cv_ipv6_support" >&5
27279 echo "${ECHO_T}$ac_cv_ipv6_support" >&6
27281 if test "$ac_cv_ipv6_support" = yes; then
27283 cat >>confdefs.h <<\_ACEOF
27284 #define HAVE_IPV6 1
27292 for ac_func in strftime
27294 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27295 echo "$as_me:$LINENO: checking for $ac_func" >&5
27296 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27297 if eval "test \"\${$as_ac_var+set}\" = set"; then
27298 echo $ECHO_N "(cached) $ECHO_C" >&6
27300 cat >conftest.$ac_ext <<_ACEOF
27303 cat confdefs.h >>conftest.$ac_ext
27304 cat >>conftest.$ac_ext <<_ACEOF
27305 /* end confdefs.h. */
27306 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27307 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27308 #define $ac_func innocuous_$ac_func
27310 /* System header to define __stub macros and hopefully few prototypes,
27311 which can conflict with char $ac_func (); below.
27312 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27313 <limits.h> exists even on freestanding compilers. */
27316 # include <limits.h>
27318 # include <assert.h>
27323 /* Override any gcc2 internal prototype to avoid an error. */
27328 /* We use char because int might match the return type of a gcc2
27329 builtin and then its argument prototype would still apply. */
27331 /* The GNU C library defines this for functions which it implements
27332 to always fail with ENOSYS. Some functions are actually named
27333 something starting with __ and the normal name is an alias. */
27334 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27337 char (*f) () = $ac_func;
27346 return f != $ac_func;
27351 rm -f conftest.$ac_objext conftest$ac_exeext
27352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27353 (eval $ac_link) 2>conftest.er1
27355 grep -v '^ *+' conftest.er1 >conftest.err
27357 cat conftest.err >&5
27358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27359 (exit $ac_status); } &&
27360 { ac_try='test -z "$ac_c_werror_flag"
27361 || test ! -s conftest.err'
27362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27363 (eval $ac_try) 2>&5
27365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27366 (exit $ac_status); }; } &&
27367 { ac_try='test -s conftest$ac_exeext'
27368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27369 (eval $ac_try) 2>&5
27371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27372 (exit $ac_status); }; }; then
27373 eval "$as_ac_var=yes"
27375 echo "$as_me: failed program was:" >&5
27376 sed 's/^/| /' conftest.$ac_ext >&5
27378 eval "$as_ac_var=no"
27380 rm -f conftest.err conftest.$ac_objext \
27381 conftest$ac_exeext conftest.$ac_ext
27383 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27384 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27385 if test `eval echo '${'$as_ac_var'}'` = yes; then
27386 cat >>confdefs.h <<_ACEOF
27387 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27391 # strftime is in -lintl on SCO UNIX.
27392 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
27393 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
27394 if test "${ac_cv_lib_intl_strftime+set}" = set; then
27395 echo $ECHO_N "(cached) $ECHO_C" >&6
27397 ac_check_lib_save_LIBS=$LIBS
27398 LIBS="-lintl $LIBS"
27399 cat >conftest.$ac_ext <<_ACEOF
27402 cat confdefs.h >>conftest.$ac_ext
27403 cat >>conftest.$ac_ext <<_ACEOF
27404 /* end confdefs.h. */
27406 /* Override any gcc2 internal prototype to avoid an error. */
27410 /* We use char because int might match the return type of a gcc2
27411 builtin and then its argument prototype would still apply. */
27421 rm -f conftest.$ac_objext conftest$ac_exeext
27422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27423 (eval $ac_link) 2>conftest.er1
27425 grep -v '^ *+' conftest.er1 >conftest.err
27427 cat conftest.err >&5
27428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27429 (exit $ac_status); } &&
27430 { ac_try='test -z "$ac_c_werror_flag"
27431 || test ! -s conftest.err'
27432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27433 (eval $ac_try) 2>&5
27435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27436 (exit $ac_status); }; } &&
27437 { ac_try='test -s conftest$ac_exeext'
27438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27439 (eval $ac_try) 2>&5
27441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27442 (exit $ac_status); }; }; then
27443 ac_cv_lib_intl_strftime=yes
27445 echo "$as_me: failed program was:" >&5
27446 sed 's/^/| /' conftest.$ac_ext >&5
27448 ac_cv_lib_intl_strftime=no
27450 rm -f conftest.err conftest.$ac_objext \
27451 conftest$ac_exeext conftest.$ac_ext
27452 LIBS=$ac_check_lib_save_LIBS
27454 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
27455 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
27456 if test $ac_cv_lib_intl_strftime = yes; then
27457 cat >>confdefs.h <<\_ACEOF
27458 #define HAVE_STRFTIME 1
27461 LIBS="-lintl $LIBS"
27468 for ac_func in vprintf
27470 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27471 echo "$as_me:$LINENO: checking for $ac_func" >&5
27472 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27473 if eval "test \"\${$as_ac_var+set}\" = set"; then
27474 echo $ECHO_N "(cached) $ECHO_C" >&6
27476 cat >conftest.$ac_ext <<_ACEOF
27479 cat confdefs.h >>conftest.$ac_ext
27480 cat >>conftest.$ac_ext <<_ACEOF
27481 /* end confdefs.h. */
27482 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27483 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27484 #define $ac_func innocuous_$ac_func
27486 /* System header to define __stub macros and hopefully few prototypes,
27487 which can conflict with char $ac_func (); below.
27488 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27489 <limits.h> exists even on freestanding compilers. */
27492 # include <limits.h>
27494 # include <assert.h>
27499 /* Override any gcc2 internal prototype to avoid an error. */
27504 /* We use char because int might match the return type of a gcc2
27505 builtin and then its argument prototype would still apply. */
27507 /* The GNU C library defines this for functions which it implements
27508 to always fail with ENOSYS. Some functions are actually named
27509 something starting with __ and the normal name is an alias. */
27510 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27513 char (*f) () = $ac_func;
27522 return f != $ac_func;
27527 rm -f conftest.$ac_objext conftest$ac_exeext
27528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27529 (eval $ac_link) 2>conftest.er1
27531 grep -v '^ *+' conftest.er1 >conftest.err
27533 cat conftest.err >&5
27534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27535 (exit $ac_status); } &&
27536 { ac_try='test -z "$ac_c_werror_flag"
27537 || test ! -s conftest.err'
27538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27539 (eval $ac_try) 2>&5
27541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27542 (exit $ac_status); }; } &&
27543 { ac_try='test -s conftest$ac_exeext'
27544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27545 (eval $ac_try) 2>&5
27547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27548 (exit $ac_status); }; }; then
27549 eval "$as_ac_var=yes"
27551 echo "$as_me: failed program was:" >&5
27552 sed 's/^/| /' conftest.$ac_ext >&5
27554 eval "$as_ac_var=no"
27556 rm -f conftest.err conftest.$ac_objext \
27557 conftest$ac_exeext conftest.$ac_ext
27559 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27560 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27561 if test `eval echo '${'$as_ac_var'}'` = yes; then
27562 cat >>confdefs.h <<_ACEOF
27563 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27566 echo "$as_me:$LINENO: checking for _doprnt" >&5
27567 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
27568 if test "${ac_cv_func__doprnt+set}" = set; then
27569 echo $ECHO_N "(cached) $ECHO_C" >&6
27571 cat >conftest.$ac_ext <<_ACEOF
27574 cat confdefs.h >>conftest.$ac_ext
27575 cat >>conftest.$ac_ext <<_ACEOF
27576 /* end confdefs.h. */
27577 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
27578 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27579 #define _doprnt innocuous__doprnt
27581 /* System header to define __stub macros and hopefully few prototypes,
27582 which can conflict with char _doprnt (); below.
27583 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27584 <limits.h> exists even on freestanding compilers. */
27587 # include <limits.h>
27589 # include <assert.h>
27594 /* Override any gcc2 internal prototype to avoid an error. */
27599 /* We use char because int might match the return type of a gcc2
27600 builtin and then its argument prototype would still apply. */
27602 /* The GNU C library defines this for functions which it implements
27603 to always fail with ENOSYS. Some functions are actually named
27604 something starting with __ and the normal name is an alias. */
27605 #if defined (__stub__doprnt) || defined (__stub____doprnt)
27608 char (*f) () = _doprnt;
27617 return f != _doprnt;
27622 rm -f conftest.$ac_objext conftest$ac_exeext
27623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27624 (eval $ac_link) 2>conftest.er1
27626 grep -v '^ *+' conftest.er1 >conftest.err
27628 cat conftest.err >&5
27629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27630 (exit $ac_status); } &&
27631 { ac_try='test -z "$ac_c_werror_flag"
27632 || test ! -s conftest.err'
27633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27634 (eval $ac_try) 2>&5
27636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27637 (exit $ac_status); }; } &&
27638 { ac_try='test -s conftest$ac_exeext'
27639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27640 (eval $ac_try) 2>&5
27642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27643 (exit $ac_status); }; }; then
27644 ac_cv_func__doprnt=yes
27646 echo "$as_me: failed program was:" >&5
27647 sed 's/^/| /' conftest.$ac_ext >&5
27649 ac_cv_func__doprnt=no
27651 rm -f conftest.err conftest.$ac_objext \
27652 conftest$ac_exeext conftest.$ac_ext
27654 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
27655 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
27656 if test $ac_cv_func__doprnt = yes; then
27658 cat >>confdefs.h <<\_ACEOF
27659 #define HAVE_DOPRNT 1
27668 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
27669 # for constant arguments. Useless!
27670 echo "$as_me:$LINENO: checking for working alloca.h" >&5
27671 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
27672 if test "${ac_cv_working_alloca_h+set}" = set; then
27673 echo $ECHO_N "(cached) $ECHO_C" >&6
27675 cat >conftest.$ac_ext <<_ACEOF
27678 cat confdefs.h >>conftest.$ac_ext
27679 cat >>conftest.$ac_ext <<_ACEOF
27680 /* end confdefs.h. */
27681 #include <alloca.h>
27685 char *p = (char *) alloca (2 * sizeof (int));
27690 rm -f conftest.$ac_objext conftest$ac_exeext
27691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27692 (eval $ac_link) 2>conftest.er1
27694 grep -v '^ *+' conftest.er1 >conftest.err
27696 cat conftest.err >&5
27697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27698 (exit $ac_status); } &&
27699 { ac_try='test -z "$ac_c_werror_flag"
27700 || test ! -s conftest.err'
27701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27702 (eval $ac_try) 2>&5
27704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27705 (exit $ac_status); }; } &&
27706 { ac_try='test -s conftest$ac_exeext'
27707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27708 (eval $ac_try) 2>&5
27710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27711 (exit $ac_status); }; }; then
27712 ac_cv_working_alloca_h=yes
27714 echo "$as_me: failed program was:" >&5
27715 sed 's/^/| /' conftest.$ac_ext >&5
27717 ac_cv_working_alloca_h=no
27719 rm -f conftest.err conftest.$ac_objext \
27720 conftest$ac_exeext conftest.$ac_ext
27722 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
27723 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
27724 if test $ac_cv_working_alloca_h = yes; then
27726 cat >>confdefs.h <<\_ACEOF
27727 #define HAVE_ALLOCA_H 1
27732 echo "$as_me:$LINENO: checking for alloca" >&5
27733 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
27734 if test "${ac_cv_func_alloca_works+set}" = set; then
27735 echo $ECHO_N "(cached) $ECHO_C" >&6
27737 cat >conftest.$ac_ext <<_ACEOF
27740 cat confdefs.h >>conftest.$ac_ext
27741 cat >>conftest.$ac_ext <<_ACEOF
27742 /* end confdefs.h. */
27744 # define alloca __builtin_alloca
27747 # include <malloc.h>
27748 # define alloca _alloca
27751 # include <alloca.h>
27756 # ifndef alloca /* predefined by HP cc +Olibcalls */
27767 char *p = (char *) alloca (1);
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 ac_cv_func_alloca_works=yes
27796 echo "$as_me: failed program was:" >&5
27797 sed 's/^/| /' conftest.$ac_ext >&5
27799 ac_cv_func_alloca_works=no
27801 rm -f conftest.err conftest.$ac_objext \
27802 conftest$ac_exeext conftest.$ac_ext
27804 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
27805 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
27807 if test $ac_cv_func_alloca_works = yes; then
27809 cat >>confdefs.h <<\_ACEOF
27810 #define HAVE_ALLOCA 1
27814 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
27815 # that cause trouble. Some versions do not even contain alloca or
27816 # contain a buggy version. If you still want to use their alloca,
27817 # use ar to extract alloca.o from them instead of compiling alloca.c.
27819 ALLOCA=alloca.$ac_objext
27821 cat >>confdefs.h <<\_ACEOF
27826 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
27827 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
27828 if test "${ac_cv_os_cray+set}" = set; then
27829 echo $ECHO_N "(cached) $ECHO_C" >&6
27831 cat >conftest.$ac_ext <<_ACEOF
27834 cat confdefs.h >>conftest.$ac_ext
27835 cat >>conftest.$ac_ext <<_ACEOF
27836 /* end confdefs.h. */
27837 #if defined(CRAY) && ! defined(CRAY2)
27844 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27845 $EGREP "webecray" >/dev/null 2>&1; then
27853 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
27854 echo "${ECHO_T}$ac_cv_os_cray" >&6
27855 if test $ac_cv_os_cray = yes; then
27856 for ac_func in _getb67 GETB67 getb67; do
27857 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27858 echo "$as_me:$LINENO: checking for $ac_func" >&5
27859 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27860 if eval "test \"\${$as_ac_var+set}\" = set"; then
27861 echo $ECHO_N "(cached) $ECHO_C" >&6
27863 cat >conftest.$ac_ext <<_ACEOF
27866 cat confdefs.h >>conftest.$ac_ext
27867 cat >>conftest.$ac_ext <<_ACEOF
27868 /* end confdefs.h. */
27869 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27870 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27871 #define $ac_func innocuous_$ac_func
27873 /* System header to define __stub macros and hopefully few prototypes,
27874 which can conflict with char $ac_func (); below.
27875 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27876 <limits.h> exists even on freestanding compilers. */
27879 # include <limits.h>
27881 # include <assert.h>
27886 /* Override any gcc2 internal prototype to avoid an error. */
27891 /* We use char because int might match the return type of a gcc2
27892 builtin and then its argument prototype would still apply. */
27894 /* The GNU C library defines this for functions which it implements
27895 to always fail with ENOSYS. Some functions are actually named
27896 something starting with __ and the normal name is an alias. */
27897 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27900 char (*f) () = $ac_func;
27909 return f != $ac_func;
27914 rm -f conftest.$ac_objext conftest$ac_exeext
27915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27916 (eval $ac_link) 2>conftest.er1
27918 grep -v '^ *+' conftest.er1 >conftest.err
27920 cat conftest.err >&5
27921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27922 (exit $ac_status); } &&
27923 { ac_try='test -z "$ac_c_werror_flag"
27924 || test ! -s conftest.err'
27925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27926 (eval $ac_try) 2>&5
27928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27929 (exit $ac_status); }; } &&
27930 { ac_try='test -s conftest$ac_exeext'
27931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27932 (eval $ac_try) 2>&5
27934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27935 (exit $ac_status); }; }; then
27936 eval "$as_ac_var=yes"
27938 echo "$as_me: failed program was:" >&5
27939 sed 's/^/| /' conftest.$ac_ext >&5
27941 eval "$as_ac_var=no"
27943 rm -f conftest.err conftest.$ac_objext \
27944 conftest$ac_exeext conftest.$ac_ext
27946 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27947 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27948 if test `eval echo '${'$as_ac_var'}'` = yes; then
27950 cat >>confdefs.h <<_ACEOF
27951 #define CRAY_STACKSEG_END $ac_func
27960 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
27961 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
27962 if test "${ac_cv_c_stack_direction+set}" = set; then
27963 echo $ECHO_N "(cached) $ECHO_C" >&6
27965 if test "$cross_compiling" = yes; then
27966 ac_cv_c_stack_direction=0
27968 cat >conftest.$ac_ext <<_ACEOF
27971 cat confdefs.h >>conftest.$ac_ext
27972 cat >>conftest.$ac_ext <<_ACEOF
27973 /* end confdefs.h. */
27975 find_stack_direction ()
27977 static char *addr = 0;
27982 return find_stack_direction ();
27985 return (&dummy > addr) ? 1 : -1;
27991 exit (find_stack_direction () < 0);
27994 rm -f conftest$ac_exeext
27995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27996 (eval $ac_link) 2>&5
27998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27999 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28001 (eval $ac_try) 2>&5
28003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28004 (exit $ac_status); }; }; then
28005 ac_cv_c_stack_direction=1
28007 echo "$as_me: program exited with status $ac_status" >&5
28008 echo "$as_me: failed program was:" >&5
28009 sed 's/^/| /' conftest.$ac_ext >&5
28011 ( exit $ac_status )
28012 ac_cv_c_stack_direction=-1
28014 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28017 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28018 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
28020 cat >>confdefs.h <<_ACEOF
28021 #define STACK_DIRECTION $ac_cv_c_stack_direction
28027 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
28028 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
28029 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
28030 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
28031 echo $ECHO_N "(cached) $ECHO_C" >&6
28033 ac_check_lib_save_LIBS=$LIBS
28035 cat >conftest.$ac_ext <<_ACEOF
28038 cat confdefs.h >>conftest.$ac_ext
28039 cat >>conftest.$ac_ext <<_ACEOF
28040 /* end confdefs.h. */
28042 /* Override any gcc2 internal prototype to avoid an error. */
28046 /* We use char because int might match the return type of a gcc2
28047 builtin and then its argument prototype would still apply. */
28057 rm -f conftest.$ac_objext conftest$ac_exeext
28058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28059 (eval $ac_link) 2>conftest.er1
28061 grep -v '^ *+' conftest.er1 >conftest.err
28063 cat conftest.err >&5
28064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28065 (exit $ac_status); } &&
28066 { ac_try='test -z "$ac_c_werror_flag"
28067 || test ! -s conftest.err'
28068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28069 (eval $ac_try) 2>&5
28071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28072 (exit $ac_status); }; } &&
28073 { ac_try='test -s conftest$ac_exeext'
28074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28075 (eval $ac_try) 2>&5
28077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28078 (exit $ac_status); }; }; then
28079 ac_cv_lib_sun_getmntent=yes
28081 echo "$as_me: failed program was:" >&5
28082 sed 's/^/| /' conftest.$ac_ext >&5
28084 ac_cv_lib_sun_getmntent=no
28086 rm -f conftest.err conftest.$ac_objext \
28087 conftest$ac_exeext conftest.$ac_ext
28088 LIBS=$ac_check_lib_save_LIBS
28090 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
28091 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
28092 if test $ac_cv_lib_sun_getmntent = yes; then
28095 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
28096 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
28097 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
28098 echo $ECHO_N "(cached) $ECHO_C" >&6
28100 ac_check_lib_save_LIBS=$LIBS
28102 cat >conftest.$ac_ext <<_ACEOF
28105 cat confdefs.h >>conftest.$ac_ext
28106 cat >>conftest.$ac_ext <<_ACEOF
28107 /* end confdefs.h. */
28109 /* Override any gcc2 internal prototype to avoid an error. */
28113 /* We use char because int might match the return type of a gcc2
28114 builtin and then its argument prototype would still apply. */
28124 rm -f conftest.$ac_objext conftest$ac_exeext
28125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28126 (eval $ac_link) 2>conftest.er1
28128 grep -v '^ *+' conftest.er1 >conftest.err
28130 cat conftest.err >&5
28131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28132 (exit $ac_status); } &&
28133 { ac_try='test -z "$ac_c_werror_flag"
28134 || test ! -s conftest.err'
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); }; } &&
28140 { ac_try='test -s conftest$ac_exeext'
28141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28142 (eval $ac_try) 2>&5
28144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28145 (exit $ac_status); }; }; then
28146 ac_cv_lib_seq_getmntent=yes
28148 echo "$as_me: failed program was:" >&5
28149 sed 's/^/| /' conftest.$ac_ext >&5
28151 ac_cv_lib_seq_getmntent=no
28153 rm -f conftest.err conftest.$ac_objext \
28154 conftest$ac_exeext conftest.$ac_ext
28155 LIBS=$ac_check_lib_save_LIBS
28157 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
28158 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
28159 if test $ac_cv_lib_seq_getmntent = yes; then
28162 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
28163 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
28164 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
28165 echo $ECHO_N "(cached) $ECHO_C" >&6
28167 ac_check_lib_save_LIBS=$LIBS
28169 cat >conftest.$ac_ext <<_ACEOF
28172 cat confdefs.h >>conftest.$ac_ext
28173 cat >>conftest.$ac_ext <<_ACEOF
28174 /* end confdefs.h. */
28176 /* Override any gcc2 internal prototype to avoid an error. */
28180 /* We use char because int might match the return type of a gcc2
28181 builtin and then its argument prototype would still apply. */
28191 rm -f conftest.$ac_objext conftest$ac_exeext
28192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28193 (eval $ac_link) 2>conftest.er1
28195 grep -v '^ *+' conftest.er1 >conftest.err
28197 cat conftest.err >&5
28198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28199 (exit $ac_status); } &&
28200 { ac_try='test -z "$ac_c_werror_flag"
28201 || test ! -s conftest.err'
28202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28203 (eval $ac_try) 2>&5
28205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28206 (exit $ac_status); }; } &&
28207 { ac_try='test -s conftest$ac_exeext'
28208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28209 (eval $ac_try) 2>&5
28211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28212 (exit $ac_status); }; }; then
28213 ac_cv_lib_gen_getmntent=yes
28215 echo "$as_me: failed program was:" >&5
28216 sed 's/^/| /' conftest.$ac_ext >&5
28218 ac_cv_lib_gen_getmntent=no
28220 rm -f conftest.err conftest.$ac_objext \
28221 conftest$ac_exeext conftest.$ac_ext
28222 LIBS=$ac_check_lib_save_LIBS
28224 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
28225 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
28226 if test $ac_cv_lib_gen_getmntent = yes; then
28235 for ac_func in getmntent
28237 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28238 echo "$as_me:$LINENO: checking for $ac_func" >&5
28239 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28240 if eval "test \"\${$as_ac_var+set}\" = set"; then
28241 echo $ECHO_N "(cached) $ECHO_C" >&6
28243 cat >conftest.$ac_ext <<_ACEOF
28246 cat confdefs.h >>conftest.$ac_ext
28247 cat >>conftest.$ac_ext <<_ACEOF
28248 /* end confdefs.h. */
28249 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28250 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28251 #define $ac_func innocuous_$ac_func
28253 /* System header to define __stub macros and hopefully few prototypes,
28254 which can conflict with char $ac_func (); below.
28255 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28256 <limits.h> exists even on freestanding compilers. */
28259 # include <limits.h>
28261 # include <assert.h>
28266 /* Override any gcc2 internal prototype to avoid an error. */
28271 /* We use char because int might match the return type of a gcc2
28272 builtin and then its argument prototype would still apply. */
28274 /* The GNU C library defines this for functions which it implements
28275 to always fail with ENOSYS. Some functions are actually named
28276 something starting with __ and the normal name is an alias. */
28277 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28280 char (*f) () = $ac_func;
28289 return f != $ac_func;
28294 rm -f conftest.$ac_objext conftest$ac_exeext
28295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28296 (eval $ac_link) 2>conftest.er1
28298 grep -v '^ *+' conftest.er1 >conftest.err
28300 cat conftest.err >&5
28301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28302 (exit $ac_status); } &&
28303 { ac_try='test -z "$ac_c_werror_flag"
28304 || test ! -s conftest.err'
28305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28306 (eval $ac_try) 2>&5
28308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28309 (exit $ac_status); }; } &&
28310 { ac_try='test -s conftest$ac_exeext'
28311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28312 (eval $ac_try) 2>&5
28314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28315 (exit $ac_status); }; }; then
28316 eval "$as_ac_var=yes"
28318 echo "$as_me: failed program was:" >&5
28319 sed 's/^/| /' conftest.$ac_ext >&5
28321 eval "$as_ac_var=no"
28323 rm -f conftest.err conftest.$ac_objext \
28324 conftest$ac_exeext conftest.$ac_ext
28326 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28327 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28328 if test `eval echo '${'$as_ac_var'}'` = yes; then
28329 cat >>confdefs.h <<_ACEOF
28330 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28337 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
28338 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
28339 if test "${ac_cv_func_closedir_void+set}" = set; then
28340 echo $ECHO_N "(cached) $ECHO_C" >&6
28342 if test "$cross_compiling" = yes; then
28343 ac_cv_func_closedir_void=yes
28345 cat >conftest.$ac_ext <<_ACEOF
28348 cat confdefs.h >>conftest.$ac_ext
28349 cat >>conftest.$ac_ext <<_ACEOF
28350 /* end confdefs.h. */
28351 $ac_includes_default
28352 #include <$ac_header_dirent>
28353 #ifndef __cplusplus
28360 exit (closedir (opendir (".")) != 0);
28365 rm -f conftest$ac_exeext
28366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28367 (eval $ac_link) 2>&5
28369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28370 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28372 (eval $ac_try) 2>&5
28374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28375 (exit $ac_status); }; }; then
28376 ac_cv_func_closedir_void=no
28378 echo "$as_me: program exited with status $ac_status" >&5
28379 echo "$as_me: failed program was:" >&5
28380 sed 's/^/| /' conftest.$ac_ext >&5
28382 ( exit $ac_status )
28383 ac_cv_func_closedir_void=yes
28385 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28388 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
28389 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
28390 if test $ac_cv_func_closedir_void = yes; then
28392 cat >>confdefs.h <<\_ACEOF
28393 #define CLOSEDIR_VOID 1
28398 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
28399 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
28400 if test "${ac_cv_func_setpgrp_void+set}" = set; then
28401 echo $ECHO_N "(cached) $ECHO_C" >&6
28403 if test "$cross_compiling" = yes; then
28404 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
28405 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
28406 { (exit 1); exit 1; }; }
28408 cat >conftest.$ac_ext <<_ACEOF
28411 cat confdefs.h >>conftest.$ac_ext
28412 cat >>conftest.$ac_ext <<_ACEOF
28413 /* end confdefs.h. */
28415 # include <unistd.h>
28421 /* If this system has a BSD-style setpgrp which takes arguments,
28422 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
28423 exit successfully. */
28424 exit (setpgrp (1,1) == -1 ? 0 : 1);
28429 rm -f conftest$ac_exeext
28430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28431 (eval $ac_link) 2>&5
28433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28434 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28436 (eval $ac_try) 2>&5
28438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28439 (exit $ac_status); }; }; then
28440 ac_cv_func_setpgrp_void=no
28442 echo "$as_me: program exited with status $ac_status" >&5
28443 echo "$as_me: failed program was:" >&5
28444 sed 's/^/| /' conftest.$ac_ext >&5
28446 ( exit $ac_status )
28447 ac_cv_func_setpgrp_void=yes
28449 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28452 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
28453 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
28454 if test $ac_cv_func_setpgrp_void = yes; then
28456 cat >>confdefs.h <<\_ACEOF
28457 #define SETPGRP_VOID 1
28461 # AC_FUNC_FNMATCH dnl use local version
28464 echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
28465 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6
28466 if test "${ac_cv_lib_intl_gettext+set}" = set; then
28467 echo $ECHO_N "(cached) $ECHO_C" >&6
28469 ac_check_lib_save_LIBS=$LIBS
28470 LIBS="-lintl $LIBS"
28471 cat >conftest.$ac_ext <<_ACEOF
28474 cat confdefs.h >>conftest.$ac_ext
28475 cat >>conftest.$ac_ext <<_ACEOF
28476 /* end confdefs.h. */
28478 /* Override any gcc2 internal prototype to avoid an error. */
28482 /* We use char because int might match the return type of a gcc2
28483 builtin and then its argument prototype would still apply. */
28493 rm -f conftest.$ac_objext conftest$ac_exeext
28494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28495 (eval $ac_link) 2>conftest.er1
28497 grep -v '^ *+' conftest.er1 >conftest.err
28499 cat conftest.err >&5
28500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28501 (exit $ac_status); } &&
28502 { ac_try='test -z "$ac_c_werror_flag"
28503 || test ! -s conftest.err'
28504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28505 (eval $ac_try) 2>&5
28507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28508 (exit $ac_status); }; } &&
28509 { ac_try='test -s conftest$ac_exeext'
28510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28511 (eval $ac_try) 2>&5
28513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28514 (exit $ac_status); }; }; then
28515 ac_cv_lib_intl_gettext=yes
28517 echo "$as_me: failed program was:" >&5
28518 sed 's/^/| /' conftest.$ac_ext >&5
28520 ac_cv_lib_intl_gettext=no
28522 rm -f conftest.err conftest.$ac_objext \
28523 conftest$ac_exeext conftest.$ac_ext
28524 LIBS=$ac_check_lib_save_LIBS
28526 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
28527 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6
28528 if test $ac_cv_lib_intl_gettext = yes; then
28529 LIBS="$LIBS -lintl"
28535 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
28536 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
28537 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
28538 echo $ECHO_N "(cached) $ECHO_C" >&6
28540 ac_check_lib_save_LIBS=$LIBS
28542 cat >conftest.$ac_ext <<_ACEOF
28545 cat confdefs.h >>conftest.$ac_ext
28546 cat >>conftest.$ac_ext <<_ACEOF
28547 /* end confdefs.h. */
28549 /* Override any gcc2 internal prototype to avoid an error. */
28553 /* We use char because int might match the return type of a gcc2
28554 builtin and then its argument prototype would still apply. */
28564 rm -f conftest.$ac_objext conftest$ac_exeext
28565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28566 (eval $ac_link) 2>conftest.er1
28568 grep -v '^ *+' conftest.er1 >conftest.err
28570 cat conftest.err >&5
28571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28572 (exit $ac_status); } &&
28573 { ac_try='test -z "$ac_c_werror_flag"
28574 || test ! -s conftest.err'
28575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28576 (eval $ac_try) 2>&5
28578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28579 (exit $ac_status); }; } &&
28580 { ac_try='test -s conftest$ac_exeext'
28581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28582 (eval $ac_try) 2>&5
28584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28585 (exit $ac_status); }; }; then
28586 ac_cv_lib_sun_getpwnam=yes
28588 echo "$as_me: failed program was:" >&5
28589 sed 's/^/| /' conftest.$ac_ext >&5
28591 ac_cv_lib_sun_getpwnam=no
28593 rm -f conftest.err conftest.$ac_objext \
28594 conftest$ac_exeext conftest.$ac_ext
28595 LIBS=$ac_check_lib_save_LIBS
28597 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
28598 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
28599 if test $ac_cv_lib_sun_getpwnam = yes; then
28600 cat >>confdefs.h <<_ACEOF
28601 #define HAVE_LIBSUN 1
28610 for ac_header in zlib.h
28612 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28613 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28614 echo "$as_me:$LINENO: checking for $ac_header" >&5
28615 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28616 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28617 echo $ECHO_N "(cached) $ECHO_C" >&6
28619 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28620 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28622 # Is the header compilable?
28623 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28624 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28625 cat >conftest.$ac_ext <<_ACEOF
28628 cat confdefs.h >>conftest.$ac_ext
28629 cat >>conftest.$ac_ext <<_ACEOF
28630 /* end confdefs.h. */
28631 $ac_includes_default
28632 #include <$ac_header>
28634 rm -f conftest.$ac_objext
28635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28636 (eval $ac_compile) 2>conftest.er1
28638 grep -v '^ *+' conftest.er1 >conftest.err
28640 cat conftest.err >&5
28641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28642 (exit $ac_status); } &&
28643 { ac_try='test -z "$ac_c_werror_flag"
28644 || test ! -s conftest.err'
28645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28646 (eval $ac_try) 2>&5
28648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28649 (exit $ac_status); }; } &&
28650 { ac_try='test -s conftest.$ac_objext'
28651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28652 (eval $ac_try) 2>&5
28654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28655 (exit $ac_status); }; }; then
28656 ac_header_compiler=yes
28658 echo "$as_me: failed program was:" >&5
28659 sed 's/^/| /' conftest.$ac_ext >&5
28661 ac_header_compiler=no
28663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28664 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28665 echo "${ECHO_T}$ac_header_compiler" >&6
28667 # Is the header present?
28668 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28669 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28670 cat >conftest.$ac_ext <<_ACEOF
28673 cat confdefs.h >>conftest.$ac_ext
28674 cat >>conftest.$ac_ext <<_ACEOF
28675 /* end confdefs.h. */
28676 #include <$ac_header>
28678 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28679 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28681 grep -v '^ *+' conftest.er1 >conftest.err
28683 cat conftest.err >&5
28684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28685 (exit $ac_status); } >/dev/null; then
28686 if test -s conftest.err; then
28687 ac_cpp_err=$ac_c_preproc_warn_flag
28688 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28695 if test -z "$ac_cpp_err"; then
28696 ac_header_preproc=yes
28698 echo "$as_me: failed program was:" >&5
28699 sed 's/^/| /' conftest.$ac_ext >&5
28701 ac_header_preproc=no
28703 rm -f conftest.err conftest.$ac_ext
28704 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28705 echo "${ECHO_T}$ac_header_preproc" >&6
28707 # So? What about this header?
28708 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28710 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28711 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28712 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28713 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28714 ac_header_preproc=yes
28717 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28718 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28719 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28720 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28721 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28722 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28723 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28724 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28725 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28726 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28727 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28728 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28731 ## ------------------------------------------ ##
28732 ## Report this to the AC_PACKAGE_NAME lists. ##
28733 ## ------------------------------------------ ##
28736 sed "s/^/$as_me: WARNING: /" >&2
28739 echo "$as_me:$LINENO: checking for $ac_header" >&5
28740 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28741 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28742 echo $ECHO_N "(cached) $ECHO_C" >&6
28744 eval "$as_ac_Header=\$ac_header_preproc"
28746 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28747 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28750 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28751 cat >>confdefs.h <<_ACEOF
28752 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28759 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
28760 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
28761 if test "${ac_cv_lib_z_deflate+set}" = set; then
28762 echo $ECHO_N "(cached) $ECHO_C" >&6
28764 ac_check_lib_save_LIBS=$LIBS
28766 cat >conftest.$ac_ext <<_ACEOF
28769 cat confdefs.h >>conftest.$ac_ext
28770 cat >>conftest.$ac_ext <<_ACEOF
28771 /* end confdefs.h. */
28773 /* Override any gcc2 internal prototype to avoid an error. */
28777 /* We use char because int might match the return type of a gcc2
28778 builtin and then its argument prototype would still apply. */
28788 rm -f conftest.$ac_objext conftest$ac_exeext
28789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28790 (eval $ac_link) 2>conftest.er1
28792 grep -v '^ *+' conftest.er1 >conftest.err
28794 cat conftest.err >&5
28795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28796 (exit $ac_status); } &&
28797 { ac_try='test -z "$ac_c_werror_flag"
28798 || test ! -s conftest.err'
28799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28800 (eval $ac_try) 2>&5
28802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28803 (exit $ac_status); }; } &&
28804 { ac_try='test -s conftest$ac_exeext'
28805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28806 (eval $ac_try) 2>&5
28808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28809 (exit $ac_status); }; }; then
28810 ac_cv_lib_z_deflate=yes
28812 echo "$as_me: failed program was:" >&5
28813 sed 's/^/| /' conftest.$ac_ext >&5
28815 ac_cv_lib_z_deflate=no
28817 rm -f conftest.err conftest.$ac_objext \
28818 conftest$ac_exeext conftest.$ac_ext
28819 LIBS=$ac_check_lib_save_LIBS
28821 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
28822 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
28823 if test $ac_cv_lib_z_deflate = yes; then
28828 if test x$FDLIBS = x-lz; then
28829 cat >>confdefs.h <<\_ACEOF
28830 #define HAVE_LIBZ 1
28837 # Check for ACL libraries
28840 if test "${ac_cv_header_sys_acl_h+set}" = set; then
28841 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
28842 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
28843 if test "${ac_cv_header_sys_acl_h+set}" = set; then
28844 echo $ECHO_N "(cached) $ECHO_C" >&6
28846 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
28847 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
28849 # Is the header compilable?
28850 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
28851 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
28852 cat >conftest.$ac_ext <<_ACEOF
28855 cat confdefs.h >>conftest.$ac_ext
28856 cat >>conftest.$ac_ext <<_ACEOF
28857 /* end confdefs.h. */
28858 $ac_includes_default
28859 #include <sys/acl.h>
28861 rm -f conftest.$ac_objext
28862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28863 (eval $ac_compile) 2>conftest.er1
28865 grep -v '^ *+' conftest.er1 >conftest.err
28867 cat conftest.err >&5
28868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28869 (exit $ac_status); } &&
28870 { ac_try='test -z "$ac_c_werror_flag"
28871 || test ! -s conftest.err'
28872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28873 (eval $ac_try) 2>&5
28875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28876 (exit $ac_status); }; } &&
28877 { ac_try='test -s conftest.$ac_objext'
28878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28879 (eval $ac_try) 2>&5
28881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28882 (exit $ac_status); }; }; then
28883 ac_header_compiler=yes
28885 echo "$as_me: failed program was:" >&5
28886 sed 's/^/| /' conftest.$ac_ext >&5
28888 ac_header_compiler=no
28890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28891 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28892 echo "${ECHO_T}$ac_header_compiler" >&6
28894 # Is the header present?
28895 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
28896 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
28897 cat >conftest.$ac_ext <<_ACEOF
28900 cat confdefs.h >>conftest.$ac_ext
28901 cat >>conftest.$ac_ext <<_ACEOF
28902 /* end confdefs.h. */
28903 #include <sys/acl.h>
28905 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28906 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28908 grep -v '^ *+' conftest.er1 >conftest.err
28910 cat conftest.err >&5
28911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28912 (exit $ac_status); } >/dev/null; then
28913 if test -s conftest.err; then
28914 ac_cpp_err=$ac_c_preproc_warn_flag
28915 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28922 if test -z "$ac_cpp_err"; then
28923 ac_header_preproc=yes
28925 echo "$as_me: failed program was:" >&5
28926 sed 's/^/| /' conftest.$ac_ext >&5
28928 ac_header_preproc=no
28930 rm -f conftest.err conftest.$ac_ext
28931 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28932 echo "${ECHO_T}$ac_header_preproc" >&6
28934 # So? What about this header?
28935 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28937 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
28938 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28939 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
28940 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
28941 ac_header_preproc=yes
28944 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
28945 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
28946 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
28947 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
28948 { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
28949 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
28950 { echo "$as_me:$LINENO: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&5
28951 echo "$as_me: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&2;}
28952 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
28953 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
28954 { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
28955 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
28958 ## ------------------------------------------ ##
28959 ## Report this to the AC_PACKAGE_NAME lists. ##
28960 ## ------------------------------------------ ##
28963 sed "s/^/$as_me: WARNING: /" >&2
28966 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
28967 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
28968 if test "${ac_cv_header_sys_acl_h+set}" = set; then
28969 echo $ECHO_N "(cached) $ECHO_C" >&6
28971 ac_cv_header_sys_acl_h=$ac_header_preproc
28973 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
28974 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
28979 echo "$as_me:$LINENO: checking for acl_get_file" >&5
28980 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6
28981 if test "${ac_cv_func_acl_get_file+set}" = set; then
28982 echo $ECHO_N "(cached) $ECHO_C" >&6
28984 cat >conftest.$ac_ext <<_ACEOF
28987 cat confdefs.h >>conftest.$ac_ext
28988 cat >>conftest.$ac_ext <<_ACEOF
28989 /* end confdefs.h. */
28990 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
28991 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28992 #define acl_get_file innocuous_acl_get_file
28994 /* System header to define __stub macros and hopefully few prototypes,
28995 which can conflict with char acl_get_file (); below.
28996 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28997 <limits.h> exists even on freestanding compilers. */
29000 # include <limits.h>
29002 # include <assert.h>
29005 #undef acl_get_file
29007 /* Override any gcc2 internal prototype to avoid an error. */
29012 /* We use char because int might match the return type of a gcc2
29013 builtin and then its argument prototype would still apply. */
29014 char acl_get_file ();
29015 /* The GNU C library defines this for functions which it implements
29016 to always fail with ENOSYS. Some functions are actually named
29017 something starting with __ and the normal name is an alias. */
29018 #if defined (__stub_acl_get_file) || defined (__stub___acl_get_file)
29021 char (*f) () = acl_get_file;
29030 return f != acl_get_file;
29035 rm -f conftest.$ac_objext conftest$ac_exeext
29036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29037 (eval $ac_link) 2>conftest.er1
29039 grep -v '^ *+' conftest.er1 >conftest.err
29041 cat conftest.err >&5
29042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29043 (exit $ac_status); } &&
29044 { ac_try='test -z "$ac_c_werror_flag"
29045 || test ! -s conftest.err'
29046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29047 (eval $ac_try) 2>&5
29049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29050 (exit $ac_status); }; } &&
29051 { ac_try='test -s conftest$ac_exeext'
29052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29053 (eval $ac_try) 2>&5
29055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29056 (exit $ac_status); }; }; then
29057 ac_cv_func_acl_get_file=yes
29059 echo "$as_me: failed program was:" >&5
29060 sed 's/^/| /' conftest.$ac_ext >&5
29062 ac_cv_func_acl_get_file=no
29064 rm -f conftest.err conftest.$ac_objext \
29065 conftest$ac_exeext conftest.$ac_ext
29067 echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
29068 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6
29069 if test $ac_cv_func_acl_get_file = yes; then
29072 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
29073 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
29074 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
29075 echo $ECHO_N "(cached) $ECHO_C" >&6
29077 ac_check_lib_save_LIBS=$LIBS
29079 cat >conftest.$ac_ext <<_ACEOF
29082 cat confdefs.h >>conftest.$ac_ext
29083 cat >>conftest.$ac_ext <<_ACEOF
29084 /* end confdefs.h. */
29086 /* Override any gcc2 internal prototype to avoid an error. */
29090 /* We use char because int might match the return type of a gcc2
29091 builtin and then its argument prototype would still apply. */
29092 char acl_get_file ();
29101 rm -f conftest.$ac_objext conftest$ac_exeext
29102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29103 (eval $ac_link) 2>conftest.er1
29105 grep -v '^ *+' conftest.er1 >conftest.err
29107 cat conftest.err >&5
29108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29109 (exit $ac_status); } &&
29110 { ac_try='test -z "$ac_c_werror_flag"
29111 || test ! -s conftest.err'
29112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29113 (eval $ac_try) 2>&5
29115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29116 (exit $ac_status); }; } &&
29117 { ac_try='test -s conftest$ac_exeext'
29118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29119 (eval $ac_try) 2>&5
29121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29122 (exit $ac_status); }; }; then
29123 ac_cv_lib_acl_acl_get_file=yes
29125 echo "$as_me: failed program was:" >&5
29126 sed 's/^/| /' conftest.$ac_ext >&5
29128 ac_cv_lib_acl_acl_get_file=no
29130 rm -f conftest.err conftest.$ac_objext \
29131 conftest$ac_exeext conftest.$ac_ext
29132 LIBS=$ac_check_lib_save_LIBS
29134 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
29135 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
29136 if test $ac_cv_lib_acl_acl_get_file = yes; then
29137 have_acl=yes; FDLIBS="-lacl $FDLIBS"
29139 echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
29140 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6
29141 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
29142 echo $ECHO_N "(cached) $ECHO_C" >&6
29144 ac_check_lib_save_LIBS=$LIBS
29146 cat >conftest.$ac_ext <<_ACEOF
29149 cat confdefs.h >>conftest.$ac_ext
29150 cat >>conftest.$ac_ext <<_ACEOF
29151 /* end confdefs.h. */
29153 /* Override any gcc2 internal prototype to avoid an error. */
29157 /* We use char because int might match the return type of a gcc2
29158 builtin and then its argument prototype would still apply. */
29168 rm -f conftest.$ac_objext conftest$ac_exeext
29169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29170 (eval $ac_link) 2>conftest.er1
29172 grep -v '^ *+' conftest.er1 >conftest.err
29174 cat conftest.err >&5
29175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29176 (exit $ac_status); } &&
29177 { ac_try='test -z "$ac_c_werror_flag"
29178 || test ! -s conftest.err'
29179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29180 (eval $ac_try) 2>&5
29182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29183 (exit $ac_status); }; } &&
29184 { ac_try='test -s conftest$ac_exeext'
29185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29186 (eval $ac_try) 2>&5
29188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29189 (exit $ac_status); }; }; then
29190 ac_cv_lib_sec_acltotext=yes
29192 echo "$as_me: failed program was:" >&5
29193 sed 's/^/| /' conftest.$ac_ext >&5
29195 ac_cv_lib_sec_acltotext=no
29197 rm -f conftest.err conftest.$ac_objext \
29198 conftest$ac_exeext conftest.$ac_ext
29199 LIBS=$ac_check_lib_save_LIBS
29201 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
29202 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6
29203 if test $ac_cv_lib_sec_acltotext = yes; then
29204 have_acl=yes; FDLIBS="-lsec $FDLIBS"
29213 if test $have_acl = yes; then
29214 cat >>confdefs.h <<\_ACEOF
29221 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
29222 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
29223 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
29224 echo $ECHO_N "(cached) $ECHO_C" >&6
29226 ac_check_lib_save_LIBS=$LIBS
29227 LIBS="-lpthread $LIBS"
29228 cat >conftest.$ac_ext <<_ACEOF
29231 cat confdefs.h >>conftest.$ac_ext
29232 cat >>conftest.$ac_ext <<_ACEOF
29233 /* end confdefs.h. */
29235 /* Override any gcc2 internal prototype to avoid an error. */
29239 /* We use char because int might match the return type of a gcc2
29240 builtin and then its argument prototype would still apply. */
29241 char pthread_create ();
29250 rm -f conftest.$ac_objext conftest$ac_exeext
29251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29252 (eval $ac_link) 2>conftest.er1
29254 grep -v '^ *+' conftest.er1 >conftest.err
29256 cat conftest.err >&5
29257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29258 (exit $ac_status); } &&
29259 { ac_try='test -z "$ac_c_werror_flag"
29260 || test ! -s conftest.err'
29261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29262 (eval $ac_try) 2>&5
29264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29265 (exit $ac_status); }; } &&
29266 { ac_try='test -s conftest$ac_exeext'
29267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29268 (eval $ac_try) 2>&5
29270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29271 (exit $ac_status); }; }; then
29272 ac_cv_lib_pthread_pthread_create=yes
29274 echo "$as_me: failed program was:" >&5
29275 sed 's/^/| /' conftest.$ac_ext >&5
29277 ac_cv_lib_pthread_pthread_create=no
29279 rm -f conftest.err conftest.$ac_objext \
29280 conftest$ac_exeext conftest.$ac_ext
29281 LIBS=$ac_check_lib_save_LIBS
29283 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
29284 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
29285 if test $ac_cv_lib_pthread_pthread_create = yes; then
29286 PTHREAD_LIB="-lpthread"
29288 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
29289 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
29290 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
29291 echo $ECHO_N "(cached) $ECHO_C" >&6
29293 ac_check_lib_save_LIBS=$LIBS
29294 LIBS="-lpthreads $LIBS"
29295 cat >conftest.$ac_ext <<_ACEOF
29298 cat confdefs.h >>conftest.$ac_ext
29299 cat >>conftest.$ac_ext <<_ACEOF
29300 /* end confdefs.h. */
29302 /* Override any gcc2 internal prototype to avoid an error. */
29306 /* We use char because int might match the return type of a gcc2
29307 builtin and then its argument prototype would still apply. */
29308 char pthread_create ();
29317 rm -f conftest.$ac_objext conftest$ac_exeext
29318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29319 (eval $ac_link) 2>conftest.er1
29321 grep -v '^ *+' conftest.er1 >conftest.err
29323 cat conftest.err >&5
29324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29325 (exit $ac_status); } &&
29326 { ac_try='test -z "$ac_c_werror_flag"
29327 || test ! -s conftest.err'
29328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29329 (eval $ac_try) 2>&5
29331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29332 (exit $ac_status); }; } &&
29333 { ac_try='test -s conftest$ac_exeext'
29334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29335 (eval $ac_try) 2>&5
29337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29338 (exit $ac_status); }; }; then
29339 ac_cv_lib_pthreads_pthread_create=yes
29341 echo "$as_me: failed program was:" >&5
29342 sed 's/^/| /' conftest.$ac_ext >&5
29344 ac_cv_lib_pthreads_pthread_create=no
29346 rm -f conftest.err conftest.$ac_objext \
29347 conftest$ac_exeext conftest.$ac_ext
29348 LIBS=$ac_check_lib_save_LIBS
29350 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
29351 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
29352 if test $ac_cv_lib_pthreads_pthread_create = yes; then
29353 PTHREAD_LIB="-lpthreads"
29355 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
29356 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
29357 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
29358 echo $ECHO_N "(cached) $ECHO_C" >&6
29360 ac_check_lib_save_LIBS=$LIBS
29362 cat >conftest.$ac_ext <<_ACEOF
29365 cat confdefs.h >>conftest.$ac_ext
29366 cat >>conftest.$ac_ext <<_ACEOF
29367 /* end confdefs.h. */
29369 /* Override any gcc2 internal prototype to avoid an error. */
29373 /* We use char because int might match the return type of a gcc2
29374 builtin and then its argument prototype would still apply. */
29375 char pthread_create ();
29384 rm -f conftest.$ac_objext conftest$ac_exeext
29385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29386 (eval $ac_link) 2>conftest.er1
29388 grep -v '^ *+' conftest.er1 >conftest.err
29390 cat conftest.err >&5
29391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29392 (exit $ac_status); } &&
29393 { ac_try='test -z "$ac_c_werror_flag"
29394 || test ! -s conftest.err'
29395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29396 (eval $ac_try) 2>&5
29398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29399 (exit $ac_status); }; } &&
29400 { ac_try='test -s conftest$ac_exeext'
29401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29402 (eval $ac_try) 2>&5
29404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29405 (exit $ac_status); }; }; then
29406 ac_cv_lib_c_r_pthread_create=yes
29408 echo "$as_me: failed program was:" >&5
29409 sed 's/^/| /' conftest.$ac_ext >&5
29411 ac_cv_lib_c_r_pthread_create=no
29413 rm -f conftest.err conftest.$ac_objext \
29414 conftest$ac_exeext conftest.$ac_ext
29415 LIBS=$ac_check_lib_save_LIBS
29417 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
29418 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
29419 if test $ac_cv_lib_c_r_pthread_create = yes; then
29420 PTHREAD_LIB="-lc_r"
29422 echo "$as_me:$LINENO: checking for pthread_create" >&5
29423 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
29424 if test "${ac_cv_func_pthread_create+set}" = set; then
29425 echo $ECHO_N "(cached) $ECHO_C" >&6
29427 cat >conftest.$ac_ext <<_ACEOF
29430 cat confdefs.h >>conftest.$ac_ext
29431 cat >>conftest.$ac_ext <<_ACEOF
29432 /* end confdefs.h. */
29433 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
29434 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29435 #define pthread_create innocuous_pthread_create
29437 /* System header to define __stub macros and hopefully few prototypes,
29438 which can conflict with char pthread_create (); below.
29439 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29440 <limits.h> exists even on freestanding compilers. */
29443 # include <limits.h>
29445 # include <assert.h>
29448 #undef pthread_create
29450 /* Override any gcc2 internal prototype to avoid an error. */
29455 /* We use char because int might match the return type of a gcc2
29456 builtin and then its argument prototype would still apply. */
29457 char pthread_create ();
29458 /* The GNU C library defines this for functions which it implements
29459 to always fail with ENOSYS. Some functions are actually named
29460 something starting with __ and the normal name is an alias. */
29461 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
29464 char (*f) () = pthread_create;
29473 return f != pthread_create;
29478 rm -f conftest.$ac_objext conftest$ac_exeext
29479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29480 (eval $ac_link) 2>conftest.er1
29482 grep -v '^ *+' conftest.er1 >conftest.err
29484 cat conftest.err >&5
29485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29486 (exit $ac_status); } &&
29487 { ac_try='test -z "$ac_c_werror_flag"
29488 || test ! -s conftest.err'
29489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29490 (eval $ac_try) 2>&5
29492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29493 (exit $ac_status); }; } &&
29494 { ac_try='test -s conftest$ac_exeext'
29495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29496 (eval $ac_try) 2>&5
29498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29499 (exit $ac_status); }; }; then
29500 ac_cv_func_pthread_create=yes
29502 echo "$as_me: failed program was:" >&5
29503 sed 's/^/| /' conftest.$ac_ext >&5
29505 ac_cv_func_pthread_create=no
29507 rm -f conftest.err conftest.$ac_objext \
29508 conftest$ac_exeext conftest.$ac_ext
29510 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
29511 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
29524 cat >>confdefs.h <<\_ACEOF
29530 CFLAGS=${CFLAGS--O}
29531 LDFLAGS=${LDFLAGS--O}
29532 DB_LIBS="${SQL_LFLAGS}"
29534 CPPFLAGS="$CPPFLAGS"
29561 # Finally we set appropriate distribution specific
29562 # variables and defaults
29564 # PFILES are platform specific files
29565 PFILES="platforms/Makefile"
29569 hostname=`uname -n | cut -d '.' -f 1`
29570 if test x${hostname} = x ; then
29571 hostname="localhost"
29573 case "$DISTNAME" in
29576 PSCMD="ps -e -o pid,comm"
29577 PFILES="${PFILES} \
29578 platforms/aix/Makefile"
29579 TAPEDRIVE="/dev/rmt0.1"
29583 PTHREAD_LIB="-lpthread -lexc"
29584 if test "${CC}" = "gcc" ; then
29591 TAPEDRIVE="/dev/nrmt0"
29594 DISTVER=`uname -a |awk '{print $3}'`
29595 TAPEDRIVE="/dev/nrmt0"
29596 PTHREAD_LIB="-pthread"
29597 CFLAGS="${CFLAGS} -pthread"
29598 PSCMD="ps -ax -o pid,command"
29601 PFILES="${PFILES} \
29602 platforms/bsdi/Makefile \
29603 platforms/bsdi/bacula-fd \
29604 platforms/bsdi/bacula-sd \
29605 platforms/bsdi/bacula-dir"
29606 largefile_support="yes"
29609 DISTVER=`uname -a |awk '{print $3}'`
29610 TAPEDRIVE="/dev/nrst0"
29612 WCFLAGS="-mwindows"
29613 WLDFLAGS="-mwindows"
29617 TAPEDRIVE="/dev/nst0"
29618 PSCMD="ps -e -o pid,command"
29620 PFILES="${PFILES} \
29621 platforms/darwin/Makefile"
29624 DISTVER=`cat /etc/debian_version`
29625 TAPEDRIVE="/dev/nrst0"
29626 PSCMD="ps -e -o pid,command"
29629 DISTVER=`uname -a |awk '{print $3}'`
29630 VER=`echo $DISTVER | cut -c 1`
29631 if test x$VER = x4 ; then
29632 PTHREAD_LIB="-pthread"
29633 CFLAGS="${CFLAGS} -pthread"
29637 TAPEDRIVE="/dev/nrsa0"
29638 PSCMD="ps -ax -o pid,command"
29639 PFILES="${PFILES} \
29640 platforms/freebsd/Makefile \
29641 platforms/freebsd/bacula-fd \
29642 platforms/freebsd/bacula-sd \
29643 platforms/freebsd/bacula-dir"
29644 largefile_support="yes"
29647 PSCMD="UNIX95=1 ps -e -o pid,comm"
29648 CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
29650 TAPEDRIVE="/dev/rmt/0hnb"
29651 PTHREAD_LIB="-lpthread"
29652 cat >>confdefs.h <<\_ACEOF
29653 #define _INCLUDE_LONGLONG 1
29659 TAPEDRIVE="/dev/rmt/0cbn"
29660 PSCMD="ps -e -o pid,comm"
29661 PFILES="${PFILES} \
29662 platforms/irix/Makefile \
29663 platforms/irix/bacula-fd \
29664 platforms/irix/bacula-sd \
29665 platforms/irix/bacula-dir"
29668 DISTVER=`uname -a |awk '{print $3}'`
29671 TAPEDRIVE="/dev/nrst0"
29672 PSCMD="ps -ax -o pid,command"
29673 PTHREAD_LIB="-pthread"
29674 CFLAGS="${CFLAGS} -pthread"
29677 DISTVER=`uname -a |awk '{print $3}'`
29680 TAPEDRIVE="/dev/nrst0"
29681 PSCMD="ps -ax -o pid,command"
29682 PTHREAD_LIB="-pthread"
29683 CFLAGS="${CFLAGS} -pthread"
29684 PFILES="${PFILES} \
29685 platforms/openbsd/Makefile \
29686 platforms/openbsd/bacula-fd \
29687 platforms/openbsd/bacula-sd \
29688 platforms/openbsd/bacula-dir"
29691 if test -f /etc/whitebox-release ; then
29692 f=/etc/whitebox-release
29694 f=/etc/redhat-release
29696 if test `cat $f | grep release |\
29697 cut -f 3 -d ' '`x = "Enterprise"x ; then
29698 DISTVER="Enterprise "`cat $f | grep release |\
29701 DISTVER=`cat /etc/redhat-release | grep release |\
29704 TAPEDRIVE="/dev/nst0"
29705 PSCMD="ps -e -o pid,command"
29706 PFILES="${PFILES} \
29707 platforms/redhat/Makefile \
29708 platforms/redhat/bacula-fd \
29709 platforms/redhat/bacula-sd \
29710 platforms/redhat/bacula-dir \
29711 platforms/redhat/bacula.spec \
29715 DISTVER=`cat /etc/mandrake-release | grep release |\
29717 TAPEDRIVE="/dev/nst0"
29718 PSCMD="ps -e -o pid,command"
29719 PFILES="${PFILES} \
29720 platforms/mandrake/Makefile \
29721 platforms/mandrake/bacula-fd \
29722 platforms/mandrake/bacula-sd \
29723 platforms/mandrake/bacula-dir \
29724 platforms/mandrake/bacula.spec \
29728 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
29729 TAPEDRIVE="/dev/nst0"
29730 PSCMD="ps -e -o pid,command"
29731 PFILES="${PFILES} \
29732 platforms/gentoo/Makefile \
29733 platforms/gentoo/bacula-init \
29734 platforms/gentoo/bacula-fd \
29735 platforms/gentoo/bacula-sd \
29736 platforms/gentoo/bacula-dir"
29739 DISTVER=`cat /etc/slackware-version`
29740 TAPEDRIVE="/dev/nst0"
29741 PSCMD="ps -e -o pid,command"
29742 PFILES="${PFILES} \
29743 platforms/slackware/Makefile \
29744 platforms/slackware/rc.bacula-fd \
29745 platforms/slackware/rc.bacula-sd \
29746 platforms/slackware/rc.bacula-dir\
29747 platforms/slackware/functions.bacula"
29751 TAPEDRIVE="/dev/rmt/0cbn"
29752 PSCMD="ps -e -o pid,comm"
29753 PFILES="${PFILES} \
29754 platforms/solaris/Makefile \
29755 platforms/solaris/bacula-fd \
29756 platforms/solaris/bacula-sd \
29757 platforms/solaris/bacula-dir"
29758 if test x$DISTVER = x5.6 ; then
29759 cat >>confdefs.h <<\_ACEOF
29760 #define HAVE_OLD_SOCKOPT 1
29764 LIBS="$LIBS -lresolv"
29767 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
29769 TAPEDRIVE="/dev/nst0"
29770 PSCMD="ps -e -o pid,command"
29771 PFILES="${PFILES} \
29772 platforms/suse/Makefile \
29773 platforms/suse/bacula-fd \
29774 platforms/suse/bacula-sd \
29775 platforms/suse/bacula-dir \
29776 platforms/suse/bacula \
29777 platforms/suse/bacula.spec"
29782 TAPEDRIVE="/dev/nst0"
29783 PSCMD="ps -e -o pid,command"
29784 PFILES="${PFILES} \
29785 platforms/suse/Makefile \
29786 platforms/suse/bacula-fd \
29787 platforms/suse/bacula-sd \
29788 platforms/suse/bacula-dir"
29792 TAPEDRIVE="/dev/nst0"
29795 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
29801 LIBS="$PTHREAD_LIB $LIBS"
29803 cat >>confdefs.h <<_ACEOF
29807 cat >>confdefs.h <<_ACEOF
29818 MCOMMON=./autoconf/Make.common
29821 if test "x${subsysdir}" = "x${sbindir}" ; then
29824 echo "You have set both --sbindir and --with-subsys-dir"
29825 echo " equal to: ${subsysdir} "
29826 echo "This is not permitted. Please reconfigure."
29828 echo "Aborting configuration ..."
29834 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/gnome-console.console_apps scripts/mtx-changer scripts/disk-changer scripts/dvd-handler 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 src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome2-console/Makefile src/gnome2-console/gnome-console.conf src/wx-console/Makefile src/wx-console/wx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/filed/win32/Makefile src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/pygtk-console/Makefile src/tools/Makefile src/win32/winbacula.nsi src/win32/baculafd/bacula-fd.conf src/win32/Makefile src/win32/Makefile.vcpp src/win32/console/bconsole.conf src/win32/wx-console/wx-console.conf src/win32/pebuilder/Makefile po/Makefile.in $PFILES"
29835 ac_config_commands="$ac_config_commands default"
29836 cat >confcache <<\_ACEOF
29837 # This file is a shell script that caches the results of configure
29838 # tests run on this system so they can be shared between configure
29839 # scripts and configure runs, see configure's option --config-cache.
29840 # It is not useful on other systems. If it contains results you don't
29841 # want to keep, you may remove or edit it.
29843 # config.status only pays attention to the cache file if you give it
29844 # the --recheck option to rerun configure.
29846 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29847 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29848 # following values.
29852 # The following way of writing the cache mishandles newlines in values,
29853 # but we know of no workaround that is simple, portable, and efficient.
29854 # So, don't put newlines in cache variables' values.
29855 # Ultrix sh set writes to stderr and can't be redirected directly,
29856 # and sets the high bit in the cache file unless we assign to the vars.
29859 case `(ac_space=' '; set | grep ac_space) 2>&1` in
29861 # `set' does not quote correctly, so add quotes (double-quote
29862 # substitution turns \\\\ into \\, and sed turns \\ into \).
29865 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29868 # `set' quotes correctly as required by POSIX, so do not add quotes.
29870 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
29877 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29879 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29881 if diff $cache_file confcache >/dev/null 2>&1; then :; else
29882 if test -w $cache_file; then
29883 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
29884 cat confcache >$cache_file
29886 echo "not updating unwritable cache $cache_file"
29891 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29892 # Let make expand exec_prefix.
29893 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29895 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29896 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29897 # trailing colons and then remove the whole line if VPATH becomes empty
29898 # (actually we leave an empty line to preserve line numbers).
29899 if test "x$srcdir" = x.; then
29900 ac_vpsub='/^[ ]*VPATH[ ]*=/{
29901 s/:*\$(srcdir):*/:/;
29902 s/:*\${srcdir}:*/:/;
29904 s/^\([^=]*=[ ]*\):*/\1/;
29910 DEFS=-DHAVE_CONFIG_H
29914 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29915 # 1. Remove the extension, and $U if already installed.
29916 ac_i=`echo "$ac_i" |
29917 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
29919 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
29920 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
29922 LIBOBJS=$ac_libobjs
29924 LTLIBOBJS=$ac_ltlibobjs
29928 : ${CONFIG_STATUS=./config.status}
29929 ac_clean_files_save=$ac_clean_files
29930 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29931 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29932 echo "$as_me: creating $CONFIG_STATUS" >&6;}
29933 cat >$CONFIG_STATUS <<_ACEOF
29935 # Generated by $as_me.
29936 # Run this file to recreate the current configuration.
29937 # Compiler output produced by configure, useful for debugging
29938 # configure, is in config.log if it exists.
29941 ac_cs_recheck=false
29943 SHELL=\${CONFIG_SHELL-$SHELL}
29946 cat >>$CONFIG_STATUS <<\_ACEOF
29947 ## --------------------- ##
29948 ## M4sh Initialization. ##
29949 ## --------------------- ##
29951 # Be Bourne compatible
29952 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29955 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
29956 # is contrary to our usage. Disable this feature.
29957 alias -g '${1+"$@"}'='"$@"'
29958 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29961 DUALCASE=1; export DUALCASE # for MKS sh
29963 # Support unset when possible.
29964 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29971 # Work around bugs in pre-3.0 UWIN ksh.
29972 $as_unset ENV MAIL MAILPATH
29979 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
29980 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
29981 LC_TELEPHONE LC_TIME
29983 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
29984 eval $as_var=C; export $as_var
29990 # Required to use basename.
29991 if expr a : '\(a\)' >/dev/null 2>&1; then
29997 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
29998 as_basename=basename
30004 # Name of the executable.
30005 as_me=`$as_basename "$0" ||
30006 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30007 X"$0" : 'X\(//\)$' \| \
30008 X"$0" : 'X\(/\)$' \| \
30009 . : '\(.\)' 2>/dev/null ||
30011 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
30012 /^X\/\(\/\/\)$/{ s//\1/; q; }
30013 /^X\/\(\/\).*/{ s//\1/; q; }
30017 # PATH needs CR, and LINENO needs CR and PATH.
30018 # Avoid depending upon Character Ranges.
30019 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30020 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30021 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30022 as_cr_digits='0123456789'
30023 as_cr_alnum=$as_cr_Letters$as_cr_digits
30025 # The user is always right.
30026 if test "${PATH_SEPARATOR+set}" != set; then
30027 echo "#! /bin/sh" >conf$$.sh
30028 echo "exit 0" >>conf$$.sh
30030 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30039 as_lineno_1=$LINENO
30040 as_lineno_2=$LINENO
30041 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30042 test "x$as_lineno_1" != "x$as_lineno_2" &&
30043 test "x$as_lineno_3" = "x$as_lineno_2" || {
30044 # Find who we are. Look in the path if we contain no path at all
30047 *[\\/]* ) as_myself=$0 ;;
30048 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30049 for as_dir in $PATH
30052 test -z "$as_dir" && as_dir=.
30053 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30058 # We did not find ourselves, most probably we were run as `sh COMMAND'
30059 # in which case we are not to be found in the path.
30060 if test "x$as_myself" = x; then
30063 if test ! -f "$as_myself"; then
30064 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
30065 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
30066 { (exit 1); exit 1; }; }
30068 case $CONFIG_SHELL in
30070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30071 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
30074 test -z "$as_dir" && as_dir=.
30075 for as_base in sh bash ksh sh5; do
30078 if ("$as_dir/$as_base" -c '
30079 as_lineno_1=$LINENO
30080 as_lineno_2=$LINENO
30081 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30082 test "x$as_lineno_1" != "x$as_lineno_2" &&
30083 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
30084 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
30085 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
30086 CONFIG_SHELL=$as_dir/$as_base
30087 export CONFIG_SHELL
30088 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
30096 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30097 # uniformly replaced by the line number. The first 'sed' inserts a
30098 # line-number line before each line; the second 'sed' does the real
30099 # work. The second script uses 'N' to pair each line-number line
30100 # with the numbered line, and appends trailing '-' during
30101 # substitution so that $LINENO is not a special case at line end.
30102 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30103 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
30104 sed '=' <$as_myself |
30109 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
30112 s,^['$as_cr_digits']*\n,,
30113 ' >$as_me.lineno &&
30114 chmod +x $as_me.lineno ||
30115 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
30116 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
30117 { (exit 1); exit 1; }; }
30119 # Don't try to exec as it changes $[0], causing all sort of problems
30120 # (the dirname of $[0] is not the place where we might find the
30121 # original and so on. Autoconf is especially sensible to this).
30123 # Exit status is that of the last command.
30128 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
30129 *c*,-n*) ECHO_N= ECHO_C='
30131 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
30132 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
30135 if expr a : '\(a\)' >/dev/null 2>&1; then
30141 rm -f conf$$ conf$$.exe conf$$.file
30143 if ln -s conf$$.file conf$$ 2>/dev/null; then
30144 # We could just check for DJGPP; but this test a) works b) is more generic
30145 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
30146 if test -f conf$$.exe; then
30147 # Don't use ln at all; we don't have any links
30152 elif ln conf$$.file conf$$ 2>/dev/null; then
30157 rm -f conf$$ conf$$.exe conf$$.file
30159 if mkdir -p . 2>/dev/null; then
30162 test -d ./-p && rmdir ./-p
30166 as_executable_p="test -f"
30168 # Sed expression to map a string onto a valid CPP name.
30169 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30171 # Sed expression to map a string onto a valid variable name.
30172 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30176 # We need space, tab and new line, in precisely that order.
30186 # Open the log real soon, to keep \$[0] and so on meaningful, and to
30187 # report actual input values of CONFIG_FILES etc. instead of their
30188 # values after options handling. Logging --version etc. is OK.
30192 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30193 ## Running $as_me. ##
30198 This file was extended by $as_me, which was
30199 generated by GNU Autoconf 2.59. Invocation command line was
30201 CONFIG_FILES = $CONFIG_FILES
30202 CONFIG_HEADERS = $CONFIG_HEADERS
30203 CONFIG_LINKS = $CONFIG_LINKS
30204 CONFIG_COMMANDS = $CONFIG_COMMANDS
30208 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
30212 # Files that config.status was made for.
30213 if test -n "$ac_config_files"; then
30214 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
30217 if test -n "$ac_config_headers"; then
30218 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
30221 if test -n "$ac_config_links"; then
30222 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
30225 if test -n "$ac_config_commands"; then
30226 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
30229 cat >>$CONFIG_STATUS <<\_ACEOF
30232 \`$as_me' instantiates files from templates according to the
30233 current configuration.
30235 Usage: $0 [OPTIONS] [FILE]...
30237 -h, --help print this help, then exit
30238 -V, --version print version number, then exit
30239 -q, --quiet do not print progress messages
30240 -d, --debug don't remove temporary files
30241 --recheck update $as_me by reconfiguring in the same conditions
30242 --file=FILE[:TEMPLATE]
30243 instantiate the configuration file FILE
30244 --header=FILE[:TEMPLATE]
30245 instantiate the configuration header FILE
30247 Configuration files:
30250 Configuration headers:
30253 Configuration commands:
30256 Report bugs to <bug-autoconf@gnu.org>."
30259 cat >>$CONFIG_STATUS <<_ACEOF
30262 configured by $0, generated by GNU Autoconf 2.59,
30263 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
30265 Copyright (C) 2003 Free Software Foundation, Inc.
30266 This config.status script is free software; the Free Software Foundation
30267 gives unlimited permission to copy, distribute and modify it."
30272 cat >>$CONFIG_STATUS <<\_ACEOF
30273 # If no file are specified by the user, then we need to provide default
30274 # value. By we need to know if files were specified by the user.
30280 ac_option=`expr "x$1" : 'x\([^=]*\)='`
30281 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
30289 *) # This is not an option, so the user has probably given explicit
30292 ac_need_defaults=false;;
30296 # Handling of the options.
30298 cat >>$CONFIG_STATUS <<\_ACEOF
30299 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30301 --version | --vers* | -V )
30302 echo "$ac_cs_version"; exit 0 ;;
30304 # Conflict between --help and --header
30305 { { echo "$as_me:$LINENO: error: ambiguous option: $1
30306 Try \`$0 --help' for more information." >&5
30307 echo "$as_me: error: ambiguous option: $1
30308 Try \`$0 --help' for more information." >&2;}
30309 { (exit 1); exit 1; }; };;
30310 --help | --hel | -h )
30311 echo "$ac_cs_usage"; exit 0 ;;
30312 --debug | --d* | -d )
30314 --file | --fil | --fi | --f )
30316 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30317 ac_need_defaults=false;;
30318 --header | --heade | --head | --hea )
30320 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30321 ac_need_defaults=false;;
30322 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30323 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30326 # This is an error.
30327 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
30328 Try \`$0 --help' for more information." >&5
30329 echo "$as_me: error: unrecognized option: $1
30330 Try \`$0 --help' for more information." >&2;}
30331 { (exit 1); exit 1; }; } ;;
30333 *) ac_config_targets="$ac_config_targets $1" ;;
30339 ac_configure_extra_args=
30341 if $ac_cs_silent; then
30343 ac_configure_extra_args="$ac_configure_extra_args --silent"
30347 cat >>$CONFIG_STATUS <<_ACEOF
30348 if \$ac_cs_recheck; then
30349 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30350 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30355 cat >>$CONFIG_STATUS <<_ACEOF
30357 # INIT-COMMANDS section.
30360 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
30361 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
30363 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
30364 # Capture the value of LINGUAS because we need it to compute CATALOGS.
30365 LINGUAS="${LINGUAS-%UNSET%}"
30372 cat >>$CONFIG_STATUS <<\_ACEOF
30373 for ac_config_target in $ac_config_targets
30375 case "$ac_config_target" in
30376 # Handling of arguments.
30377 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
30378 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30379 "manpages/Makefile" ) CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
30380 "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
30381 "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
30382 "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
30383 "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
30384 "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
30385 "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
30386 "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
30387 "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
30388 "scripts/bacula-ctl-dir" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
30389 "scripts/bacula-ctl-fd" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
30390 "scripts/bacula-ctl-sd" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
30391 "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
30392 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
30393 "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
30394 "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
30395 "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
30396 "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
30397 "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
30398 "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
30399 "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
30400 "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
30401 "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
30402 "scripts/disk-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
30403 "scripts/dvd-handler" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
30404 "scripts/bacula-tray-monitor.desktop" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
30405 "scripts/logwatch/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
30406 "scripts/logwatch/logfile.bacula.conf" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
30407 "scripts/wxconsole.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
30408 "scripts/wxconsole.desktop.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
30409 "scripts/wxconsole.desktop.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
30410 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
30411 "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
30412 "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
30413 "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
30414 "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
30415 "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
30416 "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
30417 "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
30418 "src/tray-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
30419 "src/tray-monitor/tray-monitor.conf" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
30420 "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
30421 "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
30422 "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
30423 "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
30424 "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
30425 "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
30426 "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
30427 "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
30428 "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
30429 "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
30430 "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
30431 "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
30432 "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
30433 "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
30434 "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
30435 "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
30436 "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
30437 "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
30438 "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
30439 "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
30440 "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
30441 "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
30442 "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
30443 "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
30444 "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
30445 "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
30446 "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
30447 "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
30448 "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
30449 "src/cats/create_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
30450 "src/cats/update_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
30451 "src/cats/make_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
30452 "src/cats/grant_sqlite3_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
30453 "src/cats/drop_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
30454 "src/cats/drop_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
30455 "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
30456 "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
30457 "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
30458 "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
30459 "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
30460 "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
30461 "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
30462 "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
30463 "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
30464 "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
30465 "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
30466 "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
30467 "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
30468 "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
30469 "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
30470 "src/pygtk-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/pygtk-console/Makefile" ;;
30471 "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
30472 "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
30473 "src/win32/baculafd/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/baculafd/bacula-fd.conf" ;;
30474 "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
30475 "src/win32/Makefile.vcpp" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile.vcpp" ;;
30476 "src/win32/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/console/bconsole.conf" ;;
30477 "src/win32/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/wx-console/wx-console.conf" ;;
30478 "src/win32/pebuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/pebuilder/Makefile" ;;
30479 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
30480 "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
30481 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
30482 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
30483 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
30484 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30485 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30486 { (exit 1); exit 1; }; };;
30490 # If the user did not use the arguments to specify the items to instantiate,
30491 # then the envvar interface is used. Set only those that are not.
30492 # We use the long form for the default assignment because of an extremely
30493 # bizarre bug on SunOS 4.1.3.
30494 if $ac_need_defaults; then
30495 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30496 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30497 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30500 # Have a temporary directory for convenience. Make it in the build tree
30501 # simply because there is no reason to put it here, and in addition,
30502 # creating and moving files from /tmp can sometimes cause problems.
30503 # Create a temporary directory, and hook for its removal unless debugging.
30506 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
30507 trap '{ (exit 1); exit 1; }' 1 2 13 15
30510 # Create a (secure) tmp directory for tmp files.
30513 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
30514 test -n "$tmp" && test -d "$tmp"
30517 tmp=./confstat$$-$RANDOM
30518 (umask 077 && mkdir $tmp)
30521 echo "$me: cannot create a temporary directory in ." >&2
30522 { (exit 1); exit 1; }
30527 cat >>$CONFIG_STATUS <<_ACEOF
30530 # CONFIG_FILES section.
30533 # No need to generate the scripts if there are no CONFIG_FILES.
30534 # This happens for instance when ./config.status config.h
30535 if test -n "\$CONFIG_FILES"; then
30536 # Protect against being on the right side of a sed subst in config.status.
30537 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
30538 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
30539 s,@SHELL@,$SHELL,;t t
30540 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
30541 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
30542 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
30543 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
30544 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
30545 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
30546 s,@exec_prefix@,$exec_prefix,;t t
30547 s,@prefix@,$prefix,;t t
30548 s,@program_transform_name@,$program_transform_name,;t t
30549 s,@bindir@,$bindir,;t t
30550 s,@sbindir@,$sbindir,;t t
30551 s,@libexecdir@,$libexecdir,;t t
30552 s,@datadir@,$datadir,;t t
30553 s,@sysconfdir@,$sysconfdir,;t t
30554 s,@sharedstatedir@,$sharedstatedir,;t t
30555 s,@localstatedir@,$localstatedir,;t t
30556 s,@libdir@,$libdir,;t t
30557 s,@includedir@,$includedir,;t t
30558 s,@oldincludedir@,$oldincludedir,;t t
30559 s,@infodir@,$infodir,;t t
30560 s,@mandir@,$mandir,;t t
30561 s,@build_alias@,$build_alias,;t t
30562 s,@host_alias@,$host_alias,;t t
30563 s,@target_alias@,$target_alias,;t t
30564 s,@DEFS@,$DEFS,;t t
30565 s,@ECHO_C@,$ECHO_C,;t t
30566 s,@ECHO_N@,$ECHO_N,;t t
30567 s,@ECHO_T@,$ECHO_T,;t t
30568 s,@LIBS@,$LIBS,;t t
30569 s,@BUILD_DIR@,$BUILD_DIR,;t t
30570 s,@TOP_DIR@,$TOP_DIR,;t t
30571 s,@TRUEPRG@,$TRUEPRG,;t t
30572 s,@FALSEPRG@,$FALSEPRG,;t t
30573 s,@VERSION@,$VERSION,;t t
30574 s,@DATE@,$DATE,;t t
30575 s,@LSMDATE@,$LSMDATE,;t t
30577 s,@CFLAGS@,$CFLAGS,;t t
30578 s,@LDFLAGS@,$LDFLAGS,;t t
30579 s,@CPPFLAGS@,$CPPFLAGS,;t t
30580 s,@ac_ct_CC@,$ac_ct_CC,;t t
30581 s,@EXEEXT@,$EXEEXT,;t t
30582 s,@OBJEXT@,$OBJEXT,;t t
30584 s,@CXXFLAGS@,$CXXFLAGS,;t t
30585 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
30587 s,@EGREP@,$EGREP,;t t
30588 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
30589 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
30590 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
30591 s,@RANLIB@,$RANLIB,;t t
30592 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
30597 s,@ECHO@,$ECHO,;t t
30601 s,@OPENSSL@,$OPENSSL,;t t
30604 s,@MKISOFS@,$MKISOFS,;t t
30605 s,@PYTHON@,$PYTHON,;t t
30606 s,@GROWISOFS@,$GROWISOFS,;t t
30607 s,@DVDRWMEDIAINFO@,$DVDRWMEDIAINFO,;t t
30608 s,@DVDRWFORMAT@,$DVDRWFORMAT,;t t
30609 s,@PKGCONFIG@,$PKGCONFIG,;t t
30610 s,@WXCONFIG@,$WXCONFIG,;t t
30611 s,@WXFLAGS@,$WXFLAGS,;t t
30612 s,@CDRECORD@,$CDRECORD,;t t
30613 s,@PIDOF@,$PIDOF,;t t
30615 s,@ARFLAGS@,$ARFLAGS,;t t
30616 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
30617 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
30618 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
30619 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
30620 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
30621 s,@build@,$build,;t t
30622 s,@build_cpu@,$build_cpu,;t t
30623 s,@build_vendor@,$build_vendor,;t t
30624 s,@build_os@,$build_os,;t t
30625 s,@host@,$host,;t t
30626 s,@host_cpu@,$host_cpu,;t t
30627 s,@host_vendor@,$host_vendor,;t t
30628 s,@host_os@,$host_os,;t t
30629 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
30630 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
30631 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
30632 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
30633 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
30634 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
30635 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
30636 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
30637 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
30638 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
30639 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
30640 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
30641 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
30642 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
30643 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
30644 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
30645 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
30646 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
30647 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
30648 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
30649 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
30650 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
30651 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
30652 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
30653 s,@SET_MAKE@,$SET_MAKE,;t t
30654 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
30655 s,@USE_NLS@,$USE_NLS,;t t
30656 s,@MSGFMT@,$MSGFMT,;t t
30657 s,@GMSGFMT@,$GMSGFMT,;t t
30658 s,@XGETTEXT@,$XGETTEXT,;t t
30659 s,@MSGMERGE@,$MSGMERGE,;t t
30660 s,@INTL_MACOSX_LIBS@,$INTL_MACOSX_LIBS,;t t
30661 s,@LIBICONV@,$LIBICONV,;t t
30662 s,@LTLIBICONV@,$LTLIBICONV,;t t
30663 s,@INTLLIBS@,$INTLLIBS,;t t
30664 s,@LIBINTL@,$LIBINTL,;t t
30665 s,@LTLIBINTL@,$LTLIBINTL,;t t
30666 s,@POSUB@,$POSUB,;t t
30667 s,@GLIBC2@,$GLIBC2,;t t
30668 s,@ALLOCA@,$ALLOCA,;t t
30669 s,@GLIBC21@,$GLIBC21,;t t
30670 s,@HAVE_POSIX_PRINTF@,$HAVE_POSIX_PRINTF,;t t
30671 s,@HAVE_ASPRINTF@,$HAVE_ASPRINTF,;t t
30672 s,@HAVE_SNPRINTF@,$HAVE_SNPRINTF,;t t
30673 s,@HAVE_WPRINTF@,$HAVE_WPRINTF,;t t
30674 s,@INTLBISON@,$INTLBISON,;t t
30675 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
30676 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
30677 s,@CATOBJEXT@,$CATOBJEXT,;t t
30678 s,@DATADIRNAME@,$DATADIRNAME,;t t
30679 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
30680 s,@GENCAT@,$GENCAT,;t t
30681 s,@INTLOBJS@,$INTLOBJS,;t t
30682 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
30683 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
30684 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
30685 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
30686 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
30687 s,@GNOME_DIR@,$GNOME_DIR,;t t
30688 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
30689 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
30690 s,@WX_DIR@,$WX_DIR,;t t
30691 s,@TRAY_MONITOR_CPPFLAGS@,$TRAY_MONITOR_CPPFLAGS,;t t
30692 s,@TRAY_MONITOR_LDFLAGS@,$TRAY_MONITOR_LDFLAGS,;t t
30693 s,@TRAY_MONITOR_DIR@,$TRAY_MONITOR_DIR,;t t
30694 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
30695 s,@STATIC_FD@,$STATIC_FD,;t t
30696 s,@STATIC_SD@,$STATIC_SD,;t t
30697 s,@STATIC_DIR@,$STATIC_DIR,;t t
30698 s,@STATIC_CONS@,$STATIC_CONS,;t t
30699 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
30700 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
30701 s,@ALL_DIRS@,$ALL_DIRS,;t t
30702 s,@DIRD_DIR@,$DIRD_DIR,;t t
30703 s,@DIR_TOOLS@,$DIR_TOOLS,;t t
30704 s,@STORED_DIR@,$STORED_DIR,;t t
30705 s,@CONS_INC@,$CONS_INC,;t t
30706 s,@CONS_OBJ@,$CONS_OBJ,;t t
30707 s,@CONS_SRC@,$CONS_SRC,;t t
30708 s,@CONS_LIBS@,$CONS_LIBS,;t t
30709 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
30710 s,@READLINE_SRC@,$READLINE_SRC,;t t
30711 s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t
30712 s,@PYTHON_INCDIR@,$PYTHON_INCDIR,;t t
30713 s,@OPENSSL_LIBS@,$OPENSSL_LIBS,;t t
30714 s,@OPENSSL_INC@,$OPENSSL_INC,;t t
30715 s,@working_dir@,$working_dir,;t t
30716 s,@scriptdir@,$scriptdir,;t t
30717 s,@dump_email@,$dump_email,;t t
30718 s,@job_email@,$job_email,;t t
30719 s,@smtp_host@,$smtp_host,;t t
30720 s,@piddir@,$piddir,;t t
30721 s,@subsysdir@,$subsysdir,;t t
30722 s,@baseport@,$baseport,;t t
30723 s,@dir_port@,$dir_port,;t t
30724 s,@fd_port@,$fd_port,;t t
30725 s,@sd_port@,$sd_port,;t t
30726 s,@dir_password@,$dir_password,;t t
30727 s,@fd_password@,$fd_password,;t t
30728 s,@sd_password@,$sd_password,;t t
30729 s,@mon_dir_password@,$mon_dir_password,;t t
30730 s,@mon_fd_password@,$mon_fd_password,;t t
30731 s,@mon_sd_password@,$mon_sd_password,;t t
30732 s,@dir_user@,$dir_user,;t t
30733 s,@dir_group@,$dir_group,;t t
30734 s,@sd_user@,$sd_user,;t t
30735 s,@sd_group@,$sd_group,;t t
30736 s,@fd_user@,$fd_user,;t t
30737 s,@fd_group@,$fd_group,;t t
30738 s,@SBINPERM@,$SBINPERM,;t t
30739 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
30740 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
30741 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
30742 s,@cats@,$cats,;t t
30743 s,@DB_NAME@,$DB_NAME,;t t
30744 s,@GETCONF@,$GETCONF,;t t
30745 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
30746 s,@X_CFLAGS@,$X_CFLAGS,;t t
30747 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
30748 s,@X_LIBS@,$X_LIBS,;t t
30749 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
30750 s,@LIBOBJS@,$LIBOBJS,;t t
30751 s,@FDLIBS@,$FDLIBS,;t t
30752 s,@DEBUG@,$DEBUG,;t t
30753 s,@DINCLUDE@,$DINCLUDE,;t t
30754 s,@DLIB@,$DLIB,;t t
30755 s,@DB_LIBS@,$DB_LIBS,;t t
30756 s,@WCFLAGS@,$WCFLAGS,;t t
30757 s,@WLDFLAGS@,$WLDFLAGS,;t t
30758 s,@WRAPLIBS@,$WRAPLIBS,;t t
30759 s,@OBJLIST@,$OBJLIST,;t t
30760 s,@hostname@,$hostname,;t t
30761 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
30762 s,@PSCMD@,$PSCMD,;t t
30763 s,@WIN32@,$WIN32,;t t
30764 s,@MACOSX@,$MACOSX,;t t
30765 s,@DISTNAME@,$DISTNAME,;t t
30766 s,@DISTVER@,$DISTVER,;t t
30767 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
30768 /@MCOMMON@/r $MCOMMON
30774 cat >>$CONFIG_STATUS <<\_ACEOF
30775 # Split the substitutions into bite-sized pieces for seds with
30776 # small command number limits, like on Digital OSF/1 and HP-UX.
30777 ac_max_sed_lines=48
30778 ac_sed_frag=1 # Number of current file.
30779 ac_beg=1 # First line for current file.
30780 ac_end=$ac_max_sed_lines # Line after last line for current file.
30783 while $ac_more_lines; do
30784 if test $ac_beg -gt 1; then
30785 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30787 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30789 if test ! -s $tmp/subs.frag; then
30790 ac_more_lines=false
30792 # The purpose of the label and of the branching condition is to
30793 # speed up the sed processing (if there are no `@' at all, there
30794 # is no need to browse any of the substitutions).
30795 # These are the two extra sed commands mentioned above.
30797 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
30798 if test -z "$ac_sed_cmds"; then
30799 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
30801 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
30803 ac_sed_frag=`expr $ac_sed_frag + 1`
30805 ac_end=`expr $ac_end + $ac_max_sed_lines`
30808 if test -z "$ac_sed_cmds"; then
30811 fi # test -n "$CONFIG_FILES"
30814 cat >>$CONFIG_STATUS <<\_ACEOF
30815 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
30816 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30818 - | *:- | *:-:* ) # input from stdin
30820 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30821 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30822 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30823 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30824 * ) ac_file_in=$ac_file.in ;;
30827 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
30828 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30829 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30830 X"$ac_file" : 'X\(//\)[^/]' \| \
30831 X"$ac_file" : 'X\(//\)$' \| \
30832 X"$ac_file" : 'X\(/\)' \| \
30833 . : '\(.\)' 2>/dev/null ||
30835 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30836 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30837 /^X\(\/\/\)$/{ s//\1/; q; }
30838 /^X\(\/\).*/{ s//\1/; q; }
30840 { if $as_mkdir_p; then
30845 while test ! -d "$as_dir"; do
30846 as_dirs="$as_dir $as_dirs"
30847 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30848 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30849 X"$as_dir" : 'X\(//\)[^/]' \| \
30850 X"$as_dir" : 'X\(//\)$' \| \
30851 X"$as_dir" : 'X\(/\)' \| \
30852 . : '\(.\)' 2>/dev/null ||
30854 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30855 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30856 /^X\(\/\/\)$/{ s//\1/; q; }
30857 /^X\(\/\).*/{ s//\1/; q; }
30860 test ! -n "$as_dirs" || mkdir $as_dirs
30861 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30862 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30863 { (exit 1); exit 1; }; }; }
30867 if test "$ac_dir" != .; then
30868 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30869 # A "../" for each directory in $ac_dir_suffix.
30870 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30872 ac_dir_suffix= ac_top_builddir=
30876 .) # No --srcdir option. We are building in place.
30878 if test -z "$ac_top_builddir"; then
30881 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30883 [\\/]* | ?:[\\/]* ) # Absolute path.
30884 ac_srcdir=$srcdir$ac_dir_suffix;
30885 ac_top_srcdir=$srcdir ;;
30886 *) # Relative path.
30887 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30888 ac_top_srcdir=$ac_top_builddir$srcdir ;;
30891 # Do not use `cd foo && pwd` to compute absolute paths, because
30892 # the directories may not exist.
30894 .) ac_abs_builddir="$ac_dir";;
30897 .) ac_abs_builddir=`pwd`;;
30898 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
30899 *) ac_abs_builddir=`pwd`/"$ac_dir";;
30902 case $ac_abs_builddir in
30903 .) ac_abs_top_builddir=${ac_top_builddir}.;;
30905 case ${ac_top_builddir}. in
30906 .) ac_abs_top_builddir=$ac_abs_builddir;;
30907 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30908 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30911 case $ac_abs_builddir in
30912 .) ac_abs_srcdir=$ac_srcdir;;
30915 .) ac_abs_srcdir=$ac_abs_builddir;;
30916 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30917 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30920 case $ac_abs_builddir in
30921 .) ac_abs_top_srcdir=$ac_top_srcdir;;
30923 case $ac_top_srcdir in
30924 .) ac_abs_top_srcdir=$ac_abs_builddir;;
30925 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30926 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30932 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30933 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
30936 if test x"$ac_file" != x-; then
30937 { echo "$as_me:$LINENO: creating $ac_file" >&5
30938 echo "$as_me: creating $ac_file" >&6;}
30941 # Let's still pretend it is `configure' which instantiates (i.e., don't
30942 # use $as_me), people would be surprised to read:
30943 # /* config.h. Generated by config.status. */
30944 if test x"$ac_file" = x-; then
30947 configure_input="$ac_file. "
30949 configure_input=$configure_input"Generated from `echo $ac_file_in |
30950 sed 's,.*/,,'` by configure."
30952 # First look for the input files in the build tree, otherwise in the
30954 ac_file_inputs=`IFS=:
30955 for f in $ac_file_in; do
30957 -) echo $tmp/stdin ;;
30959 # Absolute (can't be DOS-style, as IFS=:)
30960 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30961 echo "$as_me: error: cannot find input file: $f" >&2;}
30962 { (exit 1); exit 1; }; }
30965 if test -f "$f"; then
30968 elif test -f "$srcdir/$f"; then
30973 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30974 echo "$as_me: error: cannot find input file: $f" >&2;}
30975 { (exit 1); exit 1; }; }
30978 done` || { (exit 1); exit 1; }
30980 cat >>$CONFIG_STATUS <<_ACEOF
30984 cat >>$CONFIG_STATUS <<\_ACEOF
30986 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30987 s,@configure_input@,$configure_input,;t t
30988 s,@srcdir@,$ac_srcdir,;t t
30989 s,@abs_srcdir@,$ac_abs_srcdir,;t t
30990 s,@top_srcdir@,$ac_top_srcdir,;t t
30991 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
30992 s,@builddir@,$ac_builddir,;t t
30993 s,@abs_builddir@,$ac_abs_builddir,;t t
30994 s,@top_builddir@,$ac_top_builddir,;t t
30995 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
30996 s,@INSTALL@,$ac_INSTALL,;t t
30997 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
30999 if test x"$ac_file" != x-; then
31000 mv $tmp/out $ac_file
31008 cat >>$CONFIG_STATUS <<\_ACEOF
31011 # CONFIG_HEADER section.
31014 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31015 # NAME is the cpp macro being defined and VALUE is the value it is being given.
31017 # ac_d sets the value in "#define NAME VALUE" lines.
31018 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
31019 ac_dB='[ ].*$,\1#\2'
31022 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
31023 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
31024 ac_uB='$,\1#\2define\3'
31028 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31029 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31031 - | *:- | *:-:* ) # input from stdin
31033 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31034 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31035 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31036 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31037 * ) ac_file_in=$ac_file.in ;;
31040 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31041 echo "$as_me: creating $ac_file" >&6;}
31043 # First look for the input files in the build tree, otherwise in the
31045 ac_file_inputs=`IFS=:
31046 for f in $ac_file_in; do
31048 -) echo $tmp/stdin ;;
31050 # Absolute (can't be DOS-style, as IFS=:)
31051 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31052 echo "$as_me: error: cannot find input file: $f" >&2;}
31053 { (exit 1); exit 1; }; }
31054 # Do quote $f, to prevent DOS paths from being IFS'd.
31057 if test -f "$f"; then
31060 elif test -f "$srcdir/$f"; then
31065 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31066 echo "$as_me: error: cannot find input file: $f" >&2;}
31067 { (exit 1); exit 1; }; }
31070 done` || { (exit 1); exit 1; }
31071 # Remove the trailing spaces.
31072 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
31076 # Transform confdefs.h into two sed scripts, `conftest.defines' and
31077 # `conftest.undefs', that substitutes the proper values into
31078 # config.h.in to produce config.h. The first handles `#define'
31079 # templates, and the second `#undef' templates.
31080 # And first: Protect against being on the right side of a sed subst in
31081 # config.status. Protect against being in an unquoted here document
31082 # in config.status.
31083 rm -f conftest.defines conftest.undefs
31084 # Using a here document instead of a string reduces the quoting nightmare.
31085 # Putting comments in sed scripts is not portable.
31087 # `end' is used to avoid that the second main sed command (meant for
31088 # 0-ary CPP macros) applies to n-ary macro definitions.
31089 # See the Autoconf documentation for `clear'.
31090 cat >confdef2sed.sed <<\_ACEOF
31095 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
31097 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
31100 # If some macros were called several times there might be several times
31101 # the same #defines, which is useless. Nevertheless, we may not want to
31102 # sort them, since we want the *last* AC-DEFINE to be honored.
31103 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31104 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31105 rm -f confdef2sed.sed
31107 # This sed command replaces #undef with comments. This is necessary, for
31108 # example, in the case of _POSIX_SOURCE, which is predefined and required
31109 # on some systems where configure will not decide to define it.
31110 cat >>conftest.undefs <<\_ACEOF
31111 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
31114 # Break up conftest.defines because some shells have a limit on the size
31115 # of here documents, and old seds have small limits too (100 cmds).
31116 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
31117 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
31118 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31119 echo ' :' >>$CONFIG_STATUS
31120 rm -f conftest.tail
31121 while grep . conftest.defines >/dev/null
31123 # Write a limited-size here document to $tmp/defines.sed.
31124 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31125 # Speed up: don't consider the non `#define' lines.
31126 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
31127 # Work around the forget-to-reset-the-flag bug.
31128 echo 't clr' >>$CONFIG_STATUS
31129 echo ': clr' >>$CONFIG_STATUS
31130 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
31132 sed -f $tmp/defines.sed $tmp/in >$tmp/out
31134 mv $tmp/out $tmp/in
31136 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
31137 rm -f conftest.defines
31138 mv conftest.tail conftest.defines
31140 rm -f conftest.defines
31141 echo ' fi # grep' >>$CONFIG_STATUS
31142 echo >>$CONFIG_STATUS
31144 # Break up conftest.undefs because some shells have a limit on the size
31145 # of here documents, and old seds have small limits too (100 cmds).
31146 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
31147 rm -f conftest.tail
31148 while grep . conftest.undefs >/dev/null
31150 # Write a limited-size here document to $tmp/undefs.sed.
31151 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
31152 # Speed up: don't consider the non `#undef'
31153 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
31154 # Work around the forget-to-reset-the-flag bug.
31155 echo 't clr' >>$CONFIG_STATUS
31156 echo ': clr' >>$CONFIG_STATUS
31157 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
31159 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
31161 mv $tmp/out $tmp/in
31163 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
31164 rm -f conftest.undefs
31165 mv conftest.tail conftest.undefs
31167 rm -f conftest.undefs
31169 cat >>$CONFIG_STATUS <<\_ACEOF
31170 # Let's still pretend it is `configure' which instantiates (i.e., don't
31171 # use $as_me), people would be surprised to read:
31172 # /* config.h. Generated by config.status. */
31173 if test x"$ac_file" = x-; then
31174 echo "/* Generated by configure. */" >$tmp/config.h
31176 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
31178 cat $tmp/in >>$tmp/config.h
31180 if test x"$ac_file" != x-; then
31181 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
31182 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31183 echo "$as_me: $ac_file is unchanged" >&6;}
31185 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31186 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31187 X"$ac_file" : 'X\(//\)[^/]' \| \
31188 X"$ac_file" : 'X\(//\)$' \| \
31189 X"$ac_file" : 'X\(/\)' \| \
31190 . : '\(.\)' 2>/dev/null ||
31192 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31193 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31194 /^X\(\/\/\)$/{ s//\1/; q; }
31195 /^X\(\/\).*/{ s//\1/; q; }
31197 { if $as_mkdir_p; then
31202 while test ! -d "$as_dir"; do
31203 as_dirs="$as_dir $as_dirs"
31204 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31205 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31206 X"$as_dir" : 'X\(//\)[^/]' \| \
31207 X"$as_dir" : 'X\(//\)$' \| \
31208 X"$as_dir" : 'X\(/\)' \| \
31209 . : '\(.\)' 2>/dev/null ||
31211 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31212 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31213 /^X\(\/\/\)$/{ s//\1/; q; }
31214 /^X\(\/\).*/{ s//\1/; q; }
31217 test ! -n "$as_dirs" || mkdir $as_dirs
31218 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31219 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31220 { (exit 1); exit 1; }; }; }
31223 mv $tmp/config.h $ac_file
31227 rm -f $tmp/config.h
31231 cat >>$CONFIG_STATUS <<\_ACEOF
31234 # CONFIG_COMMANDS section.
31236 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
31237 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
31238 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
31239 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
31240 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31241 X"$ac_dest" : 'X\(//\)[^/]' \| \
31242 X"$ac_dest" : 'X\(//\)$' \| \
31243 X"$ac_dest" : 'X\(/\)' \| \
31244 . : '\(.\)' 2>/dev/null ||
31246 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31247 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31248 /^X\(\/\/\)$/{ s//\1/; q; }
31249 /^X\(\/\).*/{ s//\1/; q; }
31251 { if $as_mkdir_p; then
31256 while test ! -d "$as_dir"; do
31257 as_dirs="$as_dir $as_dirs"
31258 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31259 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31260 X"$as_dir" : 'X\(//\)[^/]' \| \
31261 X"$as_dir" : 'X\(//\)$' \| \
31262 X"$as_dir" : 'X\(/\)' \| \
31263 . : '\(.\)' 2>/dev/null ||
31265 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31266 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31267 /^X\(\/\/\)$/{ s//\1/; q; }
31268 /^X\(\/\).*/{ s//\1/; q; }
31271 test ! -n "$as_dirs" || mkdir $as_dirs
31272 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31273 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31274 { (exit 1); exit 1; }; }; }
31278 if test "$ac_dir" != .; then
31279 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31280 # A "../" for each directory in $ac_dir_suffix.
31281 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31283 ac_dir_suffix= ac_top_builddir=
31287 .) # No --srcdir option. We are building in place.
31289 if test -z "$ac_top_builddir"; then
31292 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31294 [\\/]* | ?:[\\/]* ) # Absolute path.
31295 ac_srcdir=$srcdir$ac_dir_suffix;
31296 ac_top_srcdir=$srcdir ;;
31297 *) # Relative path.
31298 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31299 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31302 # Do not use `cd foo && pwd` to compute absolute paths, because
31303 # the directories may not exist.
31305 .) ac_abs_builddir="$ac_dir";;
31308 .) ac_abs_builddir=`pwd`;;
31309 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31310 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31313 case $ac_abs_builddir in
31314 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31316 case ${ac_top_builddir}. in
31317 .) ac_abs_top_builddir=$ac_abs_builddir;;
31318 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31319 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31322 case $ac_abs_builddir in
31323 .) ac_abs_srcdir=$ac_srcdir;;
31326 .) ac_abs_srcdir=$ac_abs_builddir;;
31327 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31328 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31331 case $ac_abs_builddir in
31332 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31334 case $ac_top_srcdir in
31335 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31336 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31337 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31342 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
31343 echo "$as_me: executing $ac_dest commands" >&6;}
31346 for ac_file in $CONFIG_FILES; do
31347 # Support "outfile[:infile[:infile...]]"
31349 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
31351 # PO directories have a Makefile.in generated from Makefile.in.in.
31352 case "$ac_file" in */Makefile.in)
31353 # Adjust a relative srcdir.
31354 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
31355 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
31356 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
31357 # In autoconf-2.13 it is called $ac_given_srcdir.
31358 # In autoconf-2.50 it is called $srcdir.
31359 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
31360 case "$ac_given_srcdir" in
31361 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
31362 /*) top_srcdir="$ac_given_srcdir" ;;
31363 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
31365 # Treat a directory as a PO directory if and only if it has a
31366 # POTFILES.in file. This allows packages to have multiple PO
31367 # directories under different names or in different locations.
31368 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
31369 rm -f "$ac_dir/POTFILES"
31370 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
31371 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
31372 POMAKEFILEDEPS="POTFILES.in"
31373 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
31374 # on $ac_dir but don't depend on user-specified configuration
31376 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
31377 # The LINGUAS file contains the set of available languages.
31378 if test -n "$OBSOLETE_ALL_LINGUAS"; then
31379 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
31381 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
31382 # Hide the ALL_LINGUAS assigment from automake.
31383 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
31384 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
31386 # The set of available languages was given in configure.in.
31387 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
31390 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
31391 # Compute UPDATEPOFILES
31392 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
31393 # Compute DUMMYPOFILES
31394 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
31396 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
31397 case "$ac_given_srcdir" in
31399 *) srcdirpre='$(srcdir)/' ;;
31405 for lang in $ALL_LINGUAS; do
31406 POFILES="$POFILES $srcdirpre$lang.po"
31407 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
31408 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
31409 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
31411 # CATALOGS depends on both $ac_dir and the user's LINGUAS
31412 # environment variable.
31414 if test -n "$ALL_LINGUAS"; then
31415 for presentlang in $ALL_LINGUAS; do
31417 if test "%UNSET%" != "$LINGUAS"; then
31418 desiredlanguages="$LINGUAS"
31420 desiredlanguages="$ALL_LINGUAS"
31422 for desiredlang in $desiredlanguages; do
31423 # Use the presentlang catalog if desiredlang is
31424 # a. equal to presentlang, or
31425 # b. a variant of presentlang (because in this case,
31426 # presentlang can be used as a fallback for messages
31427 # which are not translated in the desiredlang catalog).
31428 case "$desiredlang" in
31429 "$presentlang"*) useit=yes;;
31432 if test $useit = yes; then
31433 INST_LINGUAS="$INST_LINGUAS $presentlang"
31438 if test -n "$INST_LINGUAS"; then
31439 for lang in $INST_LINGUAS; do
31440 CATALOGS="$CATALOGS $lang.gmo"
31443 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
31444 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"
31445 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
31446 if test -f "$f"; then
31448 *.orig | *.bak | *~) ;;
31449 *) cat "$f" >> "$ac_dir/Makefile" ;;
31457 default ) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
31463 cat >>$CONFIG_STATUS <<\_ACEOF
31465 { (exit 0); exit 0; }
31467 chmod +x $CONFIG_STATUS
31468 ac_clean_files=$ac_clean_files_save
31471 # configure is writing to config.log, and then calls config.status.
31472 # config.status does its own redirection, appending to config.log.
31473 # Unfortunately, on DOS this fails, as config.log is still kept open
31474 # by configure, so config.status won't be able to write to it; its
31475 # output is simply discarded. So we exec the FD to /dev/null,
31476 # effectively closing config.log, so it can be properly (re)opened and
31477 # appended to by config.status. When coming back to configure, we
31478 # need to make the FD available again.
31479 if test "$no_create" != yes; then
31481 ac_config_status_args=
31482 test "$silent" = yes &&
31483 ac_config_status_args="$ac_config_status_args --quiet"
31485 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31487 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31488 # would make configure fail if this is the last instruction.
31489 $ac_cs_success || { (exit 1); exit 1; }
31494 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
31495 chmod 755 dvd-handler
31496 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
31501 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
31502 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
31504 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
31505 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
31507 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
31508 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
31510 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
31511 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
31513 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
31514 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
31516 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
31517 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
31519 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
31520 chmod 755 $c/sqlite
31523 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
31524 largefile_support="yes"
31528 # A whole lot of hand springs to get the compiler version.
31529 # This is because gcc changed the output in version 3.0
31531 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
31532 if test "x${CCVERSION}" = "x" ; then
31533 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
31535 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
31536 if test x"${CXXVERSION}" = x ; then
31537 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
31540 if test "x${subsysdir}" = "x${sbindir}" ; then
31543 echo "You have set --sbindir and --with-subsys-dir"
31544 echo " both equal to: ${subsysdir} "
31545 echo " This is not permitted. Please reconfigure."
31547 echo "Aborting configuration ..."
31553 if test "x${db_name}" = "xInternal" ; then
31556 echo "You have not specified either --enable-client-only or one of the"
31557 echo " supported databases: MySQL, PostgreSQL, SQLite3 or SQLite."
31558 echo " This is not permitted. Please reconfigure."
31560 echo "Aborting the configuration ..."
31567 Configuration on `date`:
31569 Host: $host -- ${DISTNAME} ${DISTVER}
31570 Bacula version: ${VERSION} (${DATE})
31571 Source code location: ${srcdir}
31572 Install binaries: ${sbindir}
31573 Install config files: ${sysconfdir}
31574 Scripts directory: ${scriptdir}
31575 Working directory: ${working_dir}
31576 PID directory: ${piddir}
31577 Subsys directory: ${subsysdir}
31578 Man directory: ${mandir}
31579 Data directory: ${datadir}
31580 C Compiler: ${CC} ${CCVERSION}
31581 C++ Compiler: ${CXX} ${CXXVERSION}
31582 Compiler flags: ${WCFLAGS} ${CFLAGS}
31583 Linker flags: ${WLDFLAGS} ${LDFLAGS}
31585 Statically Linked Tools: ${support_static_tools}
31586 Statically Linked FD: ${support_static_fd}
31587 Statically Linked SD: ${support_static_sd}
31588 Statically Linked DIR: ${support_static_dir}
31589 Statically Linked CONS: ${support_static_cons}
31590 Database type: ${db_name}
31591 Database lib: ${DB_LIBS}
31593 Job Output Email: ${job_email}
31594 Traceback Email: ${dump_email}
31595 SMTP Host Address: ${smtp_host}
31597 Director Port: ${dir_port}
31598 File daemon Port: ${fd_port}
31599 Storage daemon Port: ${sd_port}
31601 Director User: ${dir_user}
31602 Director Group: ${dir_group}
31603 Storage Daemon User: ${sd_user}
31604 Storage DaemonGroup: ${sd_group}
31605 File Daemon User: ${fd_user}
31606 File Daemon Group: ${fd_group}
31608 SQL binaries Directory ${SQL_BINDIR}
31610 Large file support: $largefile_support
31611 Bacula conio support: ${got_conio} ${CONS_LIBS}
31612 readline support: ${got_readline} ${PRTREADLINE_SRC}
31613 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
31614 TLS support: ${support_tls}
31615 Encryption support: ${support_crypto}
31616 ZLIB support: ${have_zlib}
31617 enable-smartalloc: ${support_smartalloc}
31618 enable-gnome: ${support_gnome} ${gnome_version}
31619 enable-wx-console: ${support_wx_console} ${wx_version}
31620 enable-tray-monitor: ${support_tray_monitor}
31621 client-only: ${build_client_only}
31622 build-dird: ${build_dird}
31623 build-stored: ${build_stored}
31624 ACL support: ${have_acl}
31625 Python support: ${support_python} ${PYTHON_LIBS}