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 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 DF MKISOFS PYTHON GROWISOFS DVDRWMEDIAINFO 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 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 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 ALLOCA FDLIBS DEBUG DINCLUDE DLIB DB_LIBS WCFLAGS WLDFLAGS 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 --disable-conio disable conio support enabled
881 --disable-readline disable readline support disable
883 --disable-largefile omit support for large files
886 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
887 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
888 --with-gnu-ld assume the C compiler uses GNU ld default=no
889 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
890 --without-libiconv-prefix don't search for libiconv in includedir and libdir
891 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
892 --without-libintl-prefix don't search for libintl in includedir and libdir
893 --with-readline=DIR specify readline library directory
895 --with-python=DIR Include Python support. DIR is the Python base
896 install directory, default is to search through
897 a number of common places for the Python files.
898 --with-tcp-wrappers=DIR enable tcpwrappers support
900 Include OpenSSL support. DIR is the OpenSSL base
901 --with-working-dir=PATH specify path of Bacula working directory
902 --with-scriptdir=PATH specify path of Bacula scripts directory
903 --with-dump-email=EMAIL dump email address
904 --with-job-email=EMAIL job output email address
905 --with-smtp-host=HOST SMTP mail host address
906 --with-pid-dir=PATH specify location of Bacula pid files
907 --with-subsys-dir=PATH specify location of Bacula subsys file
908 --with-baseport=PORT specify base port address for daemons
909 --with-dir-password=PASSWORD specify Director's password
910 --with-fd-password=PASSWORD specify Client's password
911 --with-sd-password=PASSWORD specify Storage daemon's password
912 --with-mon-dir-password=PASSWORD specify Director's password used by the monitor
913 --with-mon-fd-password=PASSWORD specify Client's password used by the monitor
914 --with-mon-sd-password=PASSWORD specify Storage daemon's password used by the monitor
915 --with-dir-user=USER specify user for Director daemon
916 --with-dir-group=GROUP specify group for Director daemon
917 --with-sd-user=USER specify user for Storage daemon
918 --with-sd-group=GROUP specify group for Storage daemon
919 --with-fd-user=USER specify user for File daemon
920 --with-fd-group=GROUP specify group for File daemon
921 --with-sbin-perm=MODE specify permissions for sbin binaries (0754)
922 --with-postgresql=DIR Include PostgreSQL support. DIR is the PostgreSQL
923 base install directory, defaults to /usr/local/pgsql
925 --with-mysql=DIR Include MySQL support. DIR is the MySQL base
926 install directory, default is to search through
927 a number of common places for the MySQL files.
929 --with-embedded-mysql=DIR Include MySQL support. DIR is the MySQL base
930 install directory, default is to search through
931 a number of common places for the MySQL files.
933 --with-sqlite3=DIR Include SQLite3 support. DIR is the SQLite3 base
934 install directory, default is to search through
935 a number of common places for the SQLite3 files.
937 --with-sqlite=DIR Include SQLite support. DIR is the SQLite base
938 install directory, default is to search through
939 a number of common places for the SQLite files.
940 --with-x use the X Window System
942 Some influential environment variables:
943 CC C compiler command
944 CFLAGS C compiler flags
945 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
946 nonstandard directory <lib dir>
947 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
948 headers in a nonstandard directory <include dir>
949 CXX C++ compiler command
950 CXXFLAGS C++ compiler flags
952 WXCONFIG wx-config command. On some systems, you must set it to
953 wx-config-2.6 to use wxWidgets 2.6.
954 WXFLAGS Parameters to pass to wx-config (e.g. --unicode=no).
956 Use these variables to override the choices made by `configure' or to help
957 it to find libraries and programs with nonstandard names/locations.
962 if test "$ac_init_help" = "recursive"; then
963 # If there are subdirs, report their specific --help.
965 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
966 test -d $ac_dir || continue
969 if test "$ac_dir" != .; then
970 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
971 # A "../" for each directory in $ac_dir_suffix.
972 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
974 ac_dir_suffix= ac_top_builddir=
978 .) # No --srcdir option. We are building in place.
980 if test -z "$ac_top_builddir"; then
983 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
985 [\\/]* | ?:[\\/]* ) # Absolute path.
986 ac_srcdir=$srcdir$ac_dir_suffix;
987 ac_top_srcdir=$srcdir ;;
989 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
990 ac_top_srcdir=$ac_top_builddir$srcdir ;;
993 # Do not use `cd foo && pwd` to compute absolute paths, because
994 # the directories may not exist.
996 .) ac_abs_builddir="$ac_dir";;
999 .) ac_abs_builddir=`pwd`;;
1000 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1001 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1004 case $ac_abs_builddir in
1005 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1007 case ${ac_top_builddir}. in
1008 .) ac_abs_top_builddir=$ac_abs_builddir;;
1009 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1010 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1013 case $ac_abs_builddir in
1014 .) ac_abs_srcdir=$ac_srcdir;;
1017 .) ac_abs_srcdir=$ac_abs_builddir;;
1018 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1019 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1022 case $ac_abs_builddir in
1023 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1025 case $ac_top_srcdir in
1026 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1027 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1028 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1033 # Check for guested configure; otherwise get Cygnus style configure.
1034 if test -f $ac_srcdir/configure.gnu; then
1036 $SHELL $ac_srcdir/configure.gnu --help=recursive
1037 elif test -f $ac_srcdir/configure; then
1039 $SHELL $ac_srcdir/configure --help=recursive
1040 elif test -f $ac_srcdir/configure.ac ||
1041 test -f $ac_srcdir/configure.in; then
1043 $ac_configure --help
1045 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1051 test -n "$ac_init_help" && exit 0
1052 if $ac_init_version; then
1055 Copyright (C) 2003 Free Software Foundation, Inc.
1056 This configure script is free software; the Free Software Foundation
1057 gives unlimited permission to copy, distribute and modify it.
1063 This file contains any messages produced by compilers while
1064 running configure, to aid debugging if configure makes a mistake.
1066 It was created by $as_me, which was
1067 generated by GNU Autoconf 2.59. Invocation command line was
1078 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1079 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1080 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1081 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1082 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1084 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1085 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1087 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1088 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1089 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1090 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1091 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1092 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1093 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1101 test -z "$as_dir" && as_dir=.
1102 echo "PATH: $as_dir"
1117 # Keep a trace of the command line.
1118 # Strip out --no-create and --no-recursion so they do not pile up.
1119 # Strip out --silent because we don't want to record it for future runs.
1120 # Also quote any args containing shell meta-characters.
1121 # Make two passes to allow for proper duplicate-argument suppression.
1126 ac_must_keep_next=false
1132 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1133 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1134 | -silent | --silent | --silen | --sile | --sil)
1136 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1137 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1140 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1142 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1143 if test $ac_must_keep_next = true; then
1144 ac_must_keep_next=false # Got value, back to normal.
1147 *=* | --config-cache | -C | -disable-* | --disable-* \
1148 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1149 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1150 | -with-* | --with-* | -without-* | --without-* | --x)
1151 case "$ac_configure_args0 " in
1152 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1155 -* ) ac_must_keep_next=true ;;
1158 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1159 # Get rid of the leading space.
1165 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1166 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1168 # When interrupted or exit'd, cleanup temporary files, and complete
1169 # config.log. We remove comments because anyway the quotes in there
1170 # would cause problems or look ugly.
1171 # WARNING: Be sure not to use single quotes in there, as some shells,
1172 # such as our DU 5.0 friend, will then `close' the trap.
1173 trap 'exit_status=$?
1174 # Save into config.log some information that might help in debugging.
1179 ## ---------------- ##
1180 ## Cache variables. ##
1181 ## ---------------- ##
1184 # The following way of writing the cache mishandles newlines in values,
1187 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1190 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1191 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1195 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1202 ## ----------------- ##
1203 ## Output variables. ##
1204 ## ----------------- ##
1207 for ac_var in $ac_subst_vars
1209 eval ac_val=$`echo $ac_var`
1210 echo "$ac_var='"'"'$ac_val'"'"'"
1214 if test -n "$ac_subst_files"; then
1221 for ac_var in $ac_subst_files
1223 eval ac_val=$`echo $ac_var`
1224 echo "$ac_var='"'"'$ac_val'"'"'"
1229 if test -s confdefs.h; then
1236 sed "/^$/d" confdefs.h | sort
1239 test "$ac_signal" != 0 &&
1240 echo "$as_me: caught signal $ac_signal"
1241 echo "$as_me: exit $exit_status"
1243 rm -f core *.core &&
1244 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1247 for ac_signal in 1 2 13 15; do
1248 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1252 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1253 rm -rf conftest* confdefs.h
1254 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1257 # Predefined preprocessor variables.
1259 cat >>confdefs.h <<_ACEOF
1260 #define PACKAGE_NAME "$PACKAGE_NAME"
1264 cat >>confdefs.h <<_ACEOF
1265 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1269 cat >>confdefs.h <<_ACEOF
1270 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1274 cat >>confdefs.h <<_ACEOF
1275 #define PACKAGE_STRING "$PACKAGE_STRING"
1279 cat >>confdefs.h <<_ACEOF
1280 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1284 # Let the site file select an alternate cache file if it wants to.
1285 # Prefer explicitly selected file to automatically selected ones.
1286 if test -z "$CONFIG_SITE"; then
1287 if test "x$prefix" != xNONE; then
1288 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1290 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1293 for ac_site_file in $CONFIG_SITE; do
1294 if test -r "$ac_site_file"; then
1295 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1296 echo "$as_me: loading site script $ac_site_file" >&6;}
1297 sed 's/^/| /' "$ac_site_file" >&5
1302 if test -r "$cache_file"; then
1303 # Some versions of bash will fail to source /dev/null (special
1304 # files actually), so we avoid doing that.
1305 if test -f "$cache_file"; then
1306 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1307 echo "$as_me: loading cache $cache_file" >&6;}
1309 [\\/]* | ?:[\\/]* ) . $cache_file;;
1310 *) . ./$cache_file;;
1314 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1315 echo "$as_me: creating cache $cache_file" >&6;}
1319 # Check that the precious variables saved in the cache have kept the same
1321 ac_cache_corrupted=false
1322 for ac_var in `(set) 2>&1 |
1323 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1324 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1325 eval ac_new_set=\$ac_env_${ac_var}_set
1326 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1327 eval ac_new_val="\$ac_env_${ac_var}_value"
1328 case $ac_old_set,$ac_new_set in
1330 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1331 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1332 ac_cache_corrupted=: ;;
1334 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1335 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1336 ac_cache_corrupted=: ;;
1339 if test "x$ac_old_val" != "x$ac_new_val"; then
1340 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1341 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1342 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1343 echo "$as_me: former value: $ac_old_val" >&2;}
1344 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1345 echo "$as_me: current value: $ac_new_val" >&2;}
1346 ac_cache_corrupted=:
1349 # Pass precious variables to config.status.
1350 if test "$ac_new_set" = set; then
1352 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1353 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1354 *) ac_arg=$ac_var=$ac_new_val ;;
1356 case " $ac_configure_args " in
1357 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1358 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1362 if $ac_cache_corrupted; then
1363 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1364 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1365 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1366 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1367 { (exit 1); exit 1; }; }
1371 ac_cpp='$CPP $CPPFLAGS'
1372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1400 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1401 if test -f $ac_dir/install-sh; then
1403 ac_install_sh="$ac_aux_dir/install-sh -c"
1405 elif test -f $ac_dir/install.sh; then
1407 ac_install_sh="$ac_aux_dir/install.sh -c"
1409 elif test -f $ac_dir/shtool; then
1411 ac_install_sh="$ac_aux_dir/shtool install -c"
1415 if test -z "$ac_aux_dir"; then
1416 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1417 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1418 { (exit 1); exit 1; }; }
1420 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1421 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1422 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1424 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1432 # Extract the first word of "$ac_prog", so it can be a program name with args.
1433 set dummy $ac_prog; ac_word=$2
1434 echo "$as_me:$LINENO: checking for $ac_word" >&5
1435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1436 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1437 echo $ECHO_N "(cached) $ECHO_C" >&6
1441 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1448 test -z "$as_dir" && as_dir=.
1449 for ac_exec_ext in '' $ac_executable_extensions; do
1450 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1451 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1461 TRUEPRG=$ac_cv_path_TRUEPRG
1463 if test -n "$TRUEPRG"; then
1464 echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1465 echo "${ECHO_T}$TRUEPRG" >&6
1467 echo "$as_me:$LINENO: result: no" >&5
1468 echo "${ECHO_T}no" >&6
1471 test -n "$TRUEPRG" && break
1473 test -n "$TRUEPRG" || TRUEPRG=":"
1475 for ac_prog in false
1477 # Extract the first word of "$ac_prog", so it can be a program name with args.
1478 set dummy $ac_prog; ac_word=$2
1479 echo "$as_me:$LINENO: checking for $ac_word" >&5
1480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1481 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1482 echo $ECHO_N "(cached) $ECHO_C" >&6
1486 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1493 test -z "$as_dir" && as_dir=.
1494 for ac_exec_ext in '' $ac_executable_extensions; do
1495 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1496 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1506 FALSEPRG=$ac_cv_path_FALSEPRG
1508 if test -n "$FALSEPRG"; then
1509 echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1510 echo "${ECHO_T}$FALSEPRG" >&6
1512 echo "$as_me:$LINENO: result: no" >&5
1513 echo "${ECHO_T}no" >&6
1516 test -n "$FALSEPRG" && break
1518 test -n "$FALSEPRG" || FALSEPRG=":"
1523 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1524 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1525 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1526 echo "configuring for bacula $VERSION ($DATE)"
1531 ac_cpp='$CPP $CPPFLAGS'
1532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1535 if test -n "$ac_tool_prefix"; then
1536 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1537 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1538 echo "$as_me:$LINENO: checking for $ac_word" >&5
1539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1540 if test "${ac_cv_prog_CC+set}" = set; then
1541 echo $ECHO_N "(cached) $ECHO_C" >&6
1543 if test -n "$CC"; then
1544 ac_cv_prog_CC="$CC" # Let the user override the test.
1546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1550 test -z "$as_dir" && as_dir=.
1551 for ac_exec_ext in '' $ac_executable_extensions; do
1552 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1553 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1563 if test -n "$CC"; then
1564 echo "$as_me:$LINENO: result: $CC" >&5
1565 echo "${ECHO_T}$CC" >&6
1567 echo "$as_me:$LINENO: result: no" >&5
1568 echo "${ECHO_T}no" >&6
1572 if test -z "$ac_cv_prog_CC"; then
1574 # Extract the first word of "gcc", so it can be a program name with args.
1575 set dummy gcc; ac_word=$2
1576 echo "$as_me:$LINENO: checking for $ac_word" >&5
1577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1578 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1579 echo $ECHO_N "(cached) $ECHO_C" >&6
1581 if test -n "$ac_ct_CC"; then
1582 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1588 test -z "$as_dir" && as_dir=.
1589 for ac_exec_ext in '' $ac_executable_extensions; do
1590 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1591 ac_cv_prog_ac_ct_CC="gcc"
1592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1600 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1601 if test -n "$ac_ct_CC"; then
1602 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1603 echo "${ECHO_T}$ac_ct_CC" >&6
1605 echo "$as_me:$LINENO: result: no" >&5
1606 echo "${ECHO_T}no" >&6
1614 if test -z "$CC"; then
1615 if test -n "$ac_tool_prefix"; then
1616 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1617 set dummy ${ac_tool_prefix}cc; ac_word=$2
1618 echo "$as_me:$LINENO: checking for $ac_word" >&5
1619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1620 if test "${ac_cv_prog_CC+set}" = set; then
1621 echo $ECHO_N "(cached) $ECHO_C" >&6
1623 if test -n "$CC"; then
1624 ac_cv_prog_CC="$CC" # Let the user override the test.
1626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1630 test -z "$as_dir" && as_dir=.
1631 for ac_exec_ext in '' $ac_executable_extensions; do
1632 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1633 ac_cv_prog_CC="${ac_tool_prefix}cc"
1634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1643 if test -n "$CC"; then
1644 echo "$as_me:$LINENO: result: $CC" >&5
1645 echo "${ECHO_T}$CC" >&6
1647 echo "$as_me:$LINENO: result: no" >&5
1648 echo "${ECHO_T}no" >&6
1652 if test -z "$ac_cv_prog_CC"; then
1654 # Extract the first word of "cc", so it can be a program name with args.
1655 set dummy cc; ac_word=$2
1656 echo "$as_me:$LINENO: checking for $ac_word" >&5
1657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1658 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1659 echo $ECHO_N "(cached) $ECHO_C" >&6
1661 if test -n "$ac_ct_CC"; then
1662 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1668 test -z "$as_dir" && as_dir=.
1669 for ac_exec_ext in '' $ac_executable_extensions; do
1670 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1671 ac_cv_prog_ac_ct_CC="cc"
1672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1680 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1681 if test -n "$ac_ct_CC"; then
1682 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1683 echo "${ECHO_T}$ac_ct_CC" >&6
1685 echo "$as_me:$LINENO: result: no" >&5
1686 echo "${ECHO_T}no" >&6
1695 if test -z "$CC"; then
1696 # Extract the first word of "cc", so it can be a program name with args.
1697 set dummy cc; ac_word=$2
1698 echo "$as_me:$LINENO: checking for $ac_word" >&5
1699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1700 if test "${ac_cv_prog_CC+set}" = set; then
1701 echo $ECHO_N "(cached) $ECHO_C" >&6
1703 if test -n "$CC"; then
1704 ac_cv_prog_CC="$CC" # Let the user override the test.
1707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1711 test -z "$as_dir" && as_dir=.
1712 for ac_exec_ext in '' $ac_executable_extensions; do
1713 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1714 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1715 ac_prog_rejected=yes
1719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1725 if test $ac_prog_rejected = yes; then
1726 # We found a bogon in the path, so make sure we never use it.
1727 set dummy $ac_cv_prog_CC
1729 if test $# != 0; then
1730 # We chose a different compiler from the bogus one.
1731 # However, it has the same basename, so the bogon will be chosen
1732 # first if we set CC to just the basename; use the full file name.
1734 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1740 if test -n "$CC"; then
1741 echo "$as_me:$LINENO: result: $CC" >&5
1742 echo "${ECHO_T}$CC" >&6
1744 echo "$as_me:$LINENO: result: no" >&5
1745 echo "${ECHO_T}no" >&6
1749 if test -z "$CC"; then
1750 if test -n "$ac_tool_prefix"; then
1753 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1754 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1755 echo "$as_me:$LINENO: checking for $ac_word" >&5
1756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1757 if test "${ac_cv_prog_CC+set}" = set; then
1758 echo $ECHO_N "(cached) $ECHO_C" >&6
1760 if test -n "$CC"; then
1761 ac_cv_prog_CC="$CC" # Let the user override the test.
1763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1767 test -z "$as_dir" && as_dir=.
1768 for ac_exec_ext in '' $ac_executable_extensions; do
1769 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1770 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1780 if test -n "$CC"; then
1781 echo "$as_me:$LINENO: result: $CC" >&5
1782 echo "${ECHO_T}$CC" >&6
1784 echo "$as_me:$LINENO: result: no" >&5
1785 echo "${ECHO_T}no" >&6
1788 test -n "$CC" && break
1791 if test -z "$CC"; then
1795 # Extract the first word of "$ac_prog", so it can be a program name with args.
1796 set dummy $ac_prog; ac_word=$2
1797 echo "$as_me:$LINENO: checking for $ac_word" >&5
1798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1799 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1800 echo $ECHO_N "(cached) $ECHO_C" >&6
1802 if test -n "$ac_ct_CC"; then
1803 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1809 test -z "$as_dir" && as_dir=.
1810 for ac_exec_ext in '' $ac_executable_extensions; do
1811 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1812 ac_cv_prog_ac_ct_CC="$ac_prog"
1813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1821 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1822 if test -n "$ac_ct_CC"; then
1823 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1824 echo "${ECHO_T}$ac_ct_CC" >&6
1826 echo "$as_me:$LINENO: result: no" >&5
1827 echo "${ECHO_T}no" >&6
1830 test -n "$ac_ct_CC" && break
1839 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1840 See \`config.log' for more details." >&5
1841 echo "$as_me: error: no acceptable C compiler found in \$PATH
1842 See \`config.log' for more details." >&2;}
1843 { (exit 1); exit 1; }; }
1845 # Provide some information about the compiler.
1846 echo "$as_me:$LINENO:" \
1847 "checking for C compiler version" >&5
1848 ac_compiler=`set X $ac_compile; echo $2`
1849 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1850 (eval $ac_compiler --version </dev/null >&5) 2>&5
1852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1853 (exit $ac_status); }
1854 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1855 (eval $ac_compiler -v </dev/null >&5) 2>&5
1857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1858 (exit $ac_status); }
1859 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1860 (eval $ac_compiler -V </dev/null >&5) 2>&5
1862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1863 (exit $ac_status); }
1865 cat >conftest.$ac_ext <<_ACEOF
1868 cat confdefs.h >>conftest.$ac_ext
1869 cat >>conftest.$ac_ext <<_ACEOF
1870 /* end confdefs.h. */
1880 ac_clean_files_save=$ac_clean_files
1881 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1882 # Try to create an executable without -o first, disregard a.out.
1883 # It will help us diagnose broken compilers, and finding out an intuition
1885 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1886 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1887 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1888 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1889 (eval $ac_link_default) 2>&5
1891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1892 (exit $ac_status); }; then
1893 # Find the output, starting from the most likely. This scheme is
1894 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1897 # Be careful to initialize this variable, since it used to be cached.
1898 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1900 # b.out is created by i960 compilers.
1901 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1903 test -f "$ac_file" || continue
1905 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1908 # This is the source file.
1911 # We found the default executable, but exeext='' is most
1915 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1916 # FIXME: I believe we export ac_cv_exeext for Libtool,
1917 # but it would be cool to find out if it's true. Does anybody
1918 # maintain Libtool? --akim.
1926 echo "$as_me: failed program was:" >&5
1927 sed 's/^/| /' conftest.$ac_ext >&5
1929 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1930 See \`config.log' for more details." >&5
1931 echo "$as_me: error: C compiler cannot create executables
1932 See \`config.log' for more details." >&2;}
1933 { (exit 77); exit 77; }; }
1936 ac_exeext=$ac_cv_exeext
1937 echo "$as_me:$LINENO: result: $ac_file" >&5
1938 echo "${ECHO_T}$ac_file" >&6
1940 # Check the compiler produces executables we can run. If not, either
1941 # the compiler is broken, or we cross compile.
1942 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1943 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1944 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1945 # If not cross compiling, check that we can run a simple program.
1946 if test "$cross_compiling" != yes; then
1947 if { ac_try='./$ac_file'
1948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1952 (exit $ac_status); }; }; then
1955 if test "$cross_compiling" = maybe; then
1958 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1959 If you meant to cross compile, use \`--host'.
1960 See \`config.log' for more details." >&5
1961 echo "$as_me: error: cannot run C compiled programs.
1962 If you meant to cross compile, use \`--host'.
1963 See \`config.log' for more details." >&2;}
1964 { (exit 1); exit 1; }; }
1968 echo "$as_me:$LINENO: result: yes" >&5
1969 echo "${ECHO_T}yes" >&6
1971 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1972 ac_clean_files=$ac_clean_files_save
1973 # Check the compiler produces executables we can run. If not, either
1974 # the compiler is broken, or we cross compile.
1975 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1976 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1977 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1978 echo "${ECHO_T}$cross_compiling" >&6
1980 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1981 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1983 (eval $ac_link) 2>&5
1985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1986 (exit $ac_status); }; then
1987 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1988 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1989 # work properly (i.e., refer to `conftest.exe'), while it won't with
1991 for ac_file in conftest.exe conftest conftest.*; do
1992 test -f "$ac_file" || continue
1994 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1995 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2002 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2003 See \`config.log' for more details." >&5
2004 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2005 See \`config.log' for more details." >&2;}
2006 { (exit 1); exit 1; }; }
2009 rm -f conftest$ac_cv_exeext
2010 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2011 echo "${ECHO_T}$ac_cv_exeext" >&6
2013 rm -f conftest.$ac_ext
2014 EXEEXT=$ac_cv_exeext
2016 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2017 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2018 if test "${ac_cv_objext+set}" = set; then
2019 echo $ECHO_N "(cached) $ECHO_C" >&6
2021 cat >conftest.$ac_ext <<_ACEOF
2024 cat confdefs.h >>conftest.$ac_ext
2025 cat >>conftest.$ac_ext <<_ACEOF
2026 /* end confdefs.h. */
2036 rm -f conftest.o conftest.obj
2037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2038 (eval $ac_compile) 2>&5
2040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2041 (exit $ac_status); }; then
2042 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2044 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2045 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2050 echo "$as_me: failed program was:" >&5
2051 sed 's/^/| /' conftest.$ac_ext >&5
2053 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2054 See \`config.log' for more details." >&5
2055 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2056 See \`config.log' for more details." >&2;}
2057 { (exit 1); exit 1; }; }
2060 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2062 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2063 echo "${ECHO_T}$ac_cv_objext" >&6
2064 OBJEXT=$ac_cv_objext
2066 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2067 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2068 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2069 echo $ECHO_N "(cached) $ECHO_C" >&6
2071 cat >conftest.$ac_ext <<_ACEOF
2074 cat confdefs.h >>conftest.$ac_ext
2075 cat >>conftest.$ac_ext <<_ACEOF
2076 /* end confdefs.h. */
2089 rm -f conftest.$ac_objext
2090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2091 (eval $ac_compile) 2>conftest.er1
2093 grep -v '^ *+' conftest.er1 >conftest.err
2095 cat conftest.err >&5
2096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097 (exit $ac_status); } &&
2098 { ac_try='test -z "$ac_c_werror_flag"
2099 || test ! -s conftest.err'
2100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104 (exit $ac_status); }; } &&
2105 { ac_try='test -s conftest.$ac_objext'
2106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2110 (exit $ac_status); }; }; then
2113 echo "$as_me: failed program was:" >&5
2114 sed 's/^/| /' conftest.$ac_ext >&5
2118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2119 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2122 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2123 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2124 GCC=`test $ac_compiler_gnu = yes && echo yes`
2125 ac_test_CFLAGS=${CFLAGS+set}
2126 ac_save_CFLAGS=$CFLAGS
2128 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2129 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2130 if test "${ac_cv_prog_cc_g+set}" = set; then
2131 echo $ECHO_N "(cached) $ECHO_C" >&6
2133 cat >conftest.$ac_ext <<_ACEOF
2136 cat confdefs.h >>conftest.$ac_ext
2137 cat >>conftest.$ac_ext <<_ACEOF
2138 /* end confdefs.h. */
2148 rm -f conftest.$ac_objext
2149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2150 (eval $ac_compile) 2>conftest.er1
2152 grep -v '^ *+' conftest.er1 >conftest.err
2154 cat conftest.err >&5
2155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2156 (exit $ac_status); } &&
2157 { ac_try='test -z "$ac_c_werror_flag"
2158 || test ! -s conftest.err'
2159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163 (exit $ac_status); }; } &&
2164 { ac_try='test -s conftest.$ac_objext'
2165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2169 (exit $ac_status); }; }; then
2172 echo "$as_me: failed program was:" >&5
2173 sed 's/^/| /' conftest.$ac_ext >&5
2177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2179 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2180 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2181 if test "$ac_test_CFLAGS" = set; then
2182 CFLAGS=$ac_save_CFLAGS
2183 elif test $ac_cv_prog_cc_g = yes; then
2184 if test "$GCC" = yes; then
2190 if test "$GCC" = yes; then
2196 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2197 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2198 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2199 echo $ECHO_N "(cached) $ECHO_C" >&6
2201 ac_cv_prog_cc_stdc=no
2203 cat >conftest.$ac_ext <<_ACEOF
2206 cat confdefs.h >>conftest.$ac_ext
2207 cat >>conftest.$ac_ext <<_ACEOF
2208 /* end confdefs.h. */
2211 #include <sys/types.h>
2212 #include <sys/stat.h>
2213 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2214 struct buf { int x; };
2215 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2216 static char *e (p, i)
2222 static char *f (char * (*g) (char **, int), char **p, ...)
2227 s = g (p, va_arg (v,int));
2232 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2233 function prototypes and stuff, but not '\xHH' hex character constants.
2234 These don't provoke an error unfortunately, instead are silently treated
2235 as 'x'. The following induces an error, until -std1 is added to get
2236 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2237 array size at least. It's necessary to write '\x00'==0 to get something
2238 that's true only with -std1. */
2239 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2241 int test (int i, double x);
2242 struct s1 {int (*f) (int a);};
2243 struct s2 {int (*f) (double a);};
2244 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2250 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2255 # Don't try gcc -ansi; that turns off useful extensions and
2256 # breaks some systems' header files.
2257 # AIX -qlanglvl=ansi
2258 # Ultrix and OSF/1 -std1
2259 # HP-UX 10.20 and later -Ae
2260 # HP-UX older versions -Aa -D_HPUX_SOURCE
2261 # SVR4 -Xc -D__EXTENSIONS__
2262 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2264 CC="$ac_save_CC $ac_arg"
2265 rm -f conftest.$ac_objext
2266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2267 (eval $ac_compile) 2>conftest.er1
2269 grep -v '^ *+' conftest.er1 >conftest.err
2271 cat conftest.err >&5
2272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273 (exit $ac_status); } &&
2274 { ac_try='test -z "$ac_c_werror_flag"
2275 || test ! -s conftest.err'
2276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280 (exit $ac_status); }; } &&
2281 { ac_try='test -s conftest.$ac_objext'
2282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286 (exit $ac_status); }; }; then
2287 ac_cv_prog_cc_stdc=$ac_arg
2290 echo "$as_me: failed program was:" >&5
2291 sed 's/^/| /' conftest.$ac_ext >&5
2294 rm -f conftest.err conftest.$ac_objext
2296 rm -f conftest.$ac_ext conftest.$ac_objext
2301 case "x$ac_cv_prog_cc_stdc" in
2303 echo "$as_me:$LINENO: result: none needed" >&5
2304 echo "${ECHO_T}none needed" >&6 ;;
2306 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2307 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2308 CC="$CC $ac_cv_prog_cc_stdc" ;;
2311 # Some people use a C++ compiler to compile C. Since we use `exit',
2312 # in C++ we need to declare it. In case someone uses the same compiler
2313 # for both compiling C and C++ we need to have the C++ compiler decide
2314 # the declaration of exit, since it's the most demanding environment.
2315 cat >conftest.$ac_ext <<_ACEOF
2320 rm -f conftest.$ac_objext
2321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2322 (eval $ac_compile) 2>conftest.er1
2324 grep -v '^ *+' conftest.er1 >conftest.err
2326 cat conftest.err >&5
2327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328 (exit $ac_status); } &&
2329 { ac_try='test -z "$ac_c_werror_flag"
2330 || test ! -s conftest.err'
2331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2335 (exit $ac_status); }; } &&
2336 { ac_try='test -s conftest.$ac_objext'
2337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2341 (exit $ac_status); }; }; then
2342 for ac_declaration in \
2344 'extern "C" void std::exit (int) throw (); using std::exit;' \
2345 'extern "C" void std::exit (int); using std::exit;' \
2346 'extern "C" void exit (int) throw ();' \
2347 'extern "C" void exit (int);' \
2350 cat >conftest.$ac_ext <<_ACEOF
2353 cat confdefs.h >>conftest.$ac_ext
2354 cat >>conftest.$ac_ext <<_ACEOF
2355 /* end confdefs.h. */
2366 rm -f conftest.$ac_objext
2367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2368 (eval $ac_compile) 2>conftest.er1
2370 grep -v '^ *+' conftest.er1 >conftest.err
2372 cat conftest.err >&5
2373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374 (exit $ac_status); } &&
2375 { ac_try='test -z "$ac_c_werror_flag"
2376 || test ! -s conftest.err'
2377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381 (exit $ac_status); }; } &&
2382 { ac_try='test -s conftest.$ac_objext'
2383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387 (exit $ac_status); }; }; then
2390 echo "$as_me: failed program was:" >&5
2391 sed 's/^/| /' conftest.$ac_ext >&5
2395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2396 cat >conftest.$ac_ext <<_ACEOF
2399 cat confdefs.h >>conftest.$ac_ext
2400 cat >>conftest.$ac_ext <<_ACEOF
2401 /* end confdefs.h. */
2411 rm -f conftest.$ac_objext
2412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2413 (eval $ac_compile) 2>conftest.er1
2415 grep -v '^ *+' conftest.er1 >conftest.err
2417 cat conftest.err >&5
2418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419 (exit $ac_status); } &&
2420 { ac_try='test -z "$ac_c_werror_flag"
2421 || test ! -s conftest.err'
2422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2426 (exit $ac_status); }; } &&
2427 { ac_try='test -s conftest.$ac_objext'
2428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432 (exit $ac_status); }; }; then
2435 echo "$as_me: failed program was:" >&5
2436 sed 's/^/| /' conftest.$ac_ext >&5
2439 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2442 if test -n "$ac_declaration"; then
2443 echo '#ifdef __cplusplus' >>confdefs.h
2444 echo $ac_declaration >>confdefs.h
2445 echo '#endif' >>confdefs.h
2449 echo "$as_me: failed program was:" >&5
2450 sed 's/^/| /' conftest.$ac_ext >&5
2453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2455 ac_cpp='$CPP $CPPFLAGS'
2456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2461 ac_cpp='$CXXCPP $CPPFLAGS'
2462 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2463 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2464 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2465 if test -n "$ac_tool_prefix"; then
2466 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2468 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2469 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2470 echo "$as_me:$LINENO: checking for $ac_word" >&5
2471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2472 if test "${ac_cv_prog_CXX+set}" = set; then
2473 echo $ECHO_N "(cached) $ECHO_C" >&6
2475 if test -n "$CXX"; then
2476 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2482 test -z "$as_dir" && as_dir=.
2483 for ac_exec_ext in '' $ac_executable_extensions; do
2484 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2485 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2495 if test -n "$CXX"; then
2496 echo "$as_me:$LINENO: result: $CXX" >&5
2497 echo "${ECHO_T}$CXX" >&6
2499 echo "$as_me:$LINENO: result: no" >&5
2500 echo "${ECHO_T}no" >&6
2503 test -n "$CXX" && break
2506 if test -z "$CXX"; then
2508 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2510 # Extract the first word of "$ac_prog", so it can be a program name with args.
2511 set dummy $ac_prog; ac_word=$2
2512 echo "$as_me:$LINENO: checking for $ac_word" >&5
2513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2514 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2515 echo $ECHO_N "(cached) $ECHO_C" >&6
2517 if test -n "$ac_ct_CXX"; then
2518 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2524 test -z "$as_dir" && as_dir=.
2525 for ac_exec_ext in '' $ac_executable_extensions; do
2526 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2527 ac_cv_prog_ac_ct_CXX="$ac_prog"
2528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2536 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2537 if test -n "$ac_ct_CXX"; then
2538 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2539 echo "${ECHO_T}$ac_ct_CXX" >&6
2541 echo "$as_me:$LINENO: result: no" >&5
2542 echo "${ECHO_T}no" >&6
2545 test -n "$ac_ct_CXX" && break
2547 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2553 # Provide some information about the compiler.
2554 echo "$as_me:$LINENO:" \
2555 "checking for C++ compiler version" >&5
2556 ac_compiler=`set X $ac_compile; echo $2`
2557 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2558 (eval $ac_compiler --version </dev/null >&5) 2>&5
2560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561 (exit $ac_status); }
2562 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2563 (eval $ac_compiler -v </dev/null >&5) 2>&5
2565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566 (exit $ac_status); }
2567 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2568 (eval $ac_compiler -V </dev/null >&5) 2>&5
2570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571 (exit $ac_status); }
2573 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2574 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2575 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2576 echo $ECHO_N "(cached) $ECHO_C" >&6
2578 cat >conftest.$ac_ext <<_ACEOF
2581 cat confdefs.h >>conftest.$ac_ext
2582 cat >>conftest.$ac_ext <<_ACEOF
2583 /* end confdefs.h. */
2596 rm -f conftest.$ac_objext
2597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2598 (eval $ac_compile) 2>conftest.er1
2600 grep -v '^ *+' conftest.er1 >conftest.err
2602 cat conftest.err >&5
2603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604 (exit $ac_status); } &&
2605 { ac_try='test -z "$ac_cxx_werror_flag"
2606 || test ! -s conftest.err'
2607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611 (exit $ac_status); }; } &&
2612 { ac_try='test -s conftest.$ac_objext'
2613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617 (exit $ac_status); }; }; then
2620 echo "$as_me: failed program was:" >&5
2621 sed 's/^/| /' conftest.$ac_ext >&5
2625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2626 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2629 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2630 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2631 GXX=`test $ac_compiler_gnu = yes && echo yes`
2632 ac_test_CXXFLAGS=${CXXFLAGS+set}
2633 ac_save_CXXFLAGS=$CXXFLAGS
2635 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2636 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2637 if test "${ac_cv_prog_cxx_g+set}" = set; then
2638 echo $ECHO_N "(cached) $ECHO_C" >&6
2640 cat >conftest.$ac_ext <<_ACEOF
2643 cat confdefs.h >>conftest.$ac_ext
2644 cat >>conftest.$ac_ext <<_ACEOF
2645 /* end confdefs.h. */
2655 rm -f conftest.$ac_objext
2656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2657 (eval $ac_compile) 2>conftest.er1
2659 grep -v '^ *+' conftest.er1 >conftest.err
2661 cat conftest.err >&5
2662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663 (exit $ac_status); } &&
2664 { ac_try='test -z "$ac_cxx_werror_flag"
2665 || test ! -s conftest.err'
2666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670 (exit $ac_status); }; } &&
2671 { ac_try='test -s conftest.$ac_objext'
2672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676 (exit $ac_status); }; }; then
2677 ac_cv_prog_cxx_g=yes
2679 echo "$as_me: failed program was:" >&5
2680 sed 's/^/| /' conftest.$ac_ext >&5
2684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2686 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2687 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2688 if test "$ac_test_CXXFLAGS" = set; then
2689 CXXFLAGS=$ac_save_CXXFLAGS
2690 elif test $ac_cv_prog_cxx_g = yes; then
2691 if test "$GXX" = yes; then
2697 if test "$GXX" = yes; then
2703 for ac_declaration in \
2705 'extern "C" void std::exit (int) throw (); using std::exit;' \
2706 'extern "C" void std::exit (int); using std::exit;' \
2707 'extern "C" void exit (int) throw ();' \
2708 'extern "C" void exit (int);' \
2711 cat >conftest.$ac_ext <<_ACEOF
2714 cat confdefs.h >>conftest.$ac_ext
2715 cat >>conftest.$ac_ext <<_ACEOF
2716 /* end confdefs.h. */
2727 rm -f conftest.$ac_objext
2728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2729 (eval $ac_compile) 2>conftest.er1
2731 grep -v '^ *+' conftest.er1 >conftest.err
2733 cat conftest.err >&5
2734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735 (exit $ac_status); } &&
2736 { ac_try='test -z "$ac_cxx_werror_flag"
2737 || test ! -s conftest.err'
2738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742 (exit $ac_status); }; } &&
2743 { ac_try='test -s conftest.$ac_objext'
2744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748 (exit $ac_status); }; }; then
2751 echo "$as_me: failed program was:" >&5
2752 sed 's/^/| /' conftest.$ac_ext >&5
2756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2757 cat >conftest.$ac_ext <<_ACEOF
2760 cat confdefs.h >>conftest.$ac_ext
2761 cat >>conftest.$ac_ext <<_ACEOF
2762 /* end confdefs.h. */
2772 rm -f conftest.$ac_objext
2773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2774 (eval $ac_compile) 2>conftest.er1
2776 grep -v '^ *+' conftest.er1 >conftest.err
2778 cat conftest.err >&5
2779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780 (exit $ac_status); } &&
2781 { ac_try='test -z "$ac_cxx_werror_flag"
2782 || test ! -s conftest.err'
2783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787 (exit $ac_status); }; } &&
2788 { ac_try='test -s conftest.$ac_objext'
2789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793 (exit $ac_status); }; }; then
2796 echo "$as_me: failed program was:" >&5
2797 sed 's/^/| /' conftest.$ac_ext >&5
2800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2803 if test -n "$ac_declaration"; then
2804 echo '#ifdef __cplusplus' >>confdefs.h
2805 echo $ac_declaration >>confdefs.h
2806 echo '#endif' >>confdefs.h
2810 ac_cpp='$CPP $CPPFLAGS'
2811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2815 if test "x$CC" != xcc; then
2816 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2817 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2819 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2820 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2822 set dummy $CC; ac_cc=`echo $2 |
2823 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2824 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2825 echo $ECHO_N "(cached) $ECHO_C" >&6
2827 cat >conftest.$ac_ext <<_ACEOF
2830 cat confdefs.h >>conftest.$ac_ext
2831 cat >>conftest.$ac_ext <<_ACEOF
2832 /* end confdefs.h. */
2842 # Make sure it works both with $CC and with simple cc.
2843 # We do the test twice because some compilers refuse to overwrite an
2844 # existing .o file with -o, though they will create one.
2845 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2846 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850 (exit $ac_status); } &&
2851 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855 (exit $ac_status); };
2857 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2858 if test "x$CC" != xcc; then
2859 # Test first that cc exists at all.
2860 if { ac_try='cc -c conftest.$ac_ext >&5'
2861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865 (exit $ac_status); }; }; then
2866 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2867 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2871 (exit $ac_status); } &&
2872 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876 (exit $ac_status); };
2881 # cc exists but doesn't like -o.
2882 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2887 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2892 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2893 echo "$as_me:$LINENO: result: yes" >&5
2894 echo "${ECHO_T}yes" >&6
2896 echo "$as_me:$LINENO: result: no" >&5
2897 echo "${ECHO_T}no" >&6
2899 cat >>confdefs.h <<\_ACEOF
2900 #define NO_MINUS_C_MINUS_O 1
2906 ac_cpp='$CPP $CPPFLAGS'
2907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2910 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2911 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2912 # On Suns, sometimes $CPP names a directory.
2913 if test -n "$CPP" && test -d "$CPP"; then
2916 if test -z "$CPP"; then
2917 if test "${ac_cv_prog_CPP+set}" = set; then
2918 echo $ECHO_N "(cached) $ECHO_C" >&6
2920 # Double quotes because CPP needs to be expanded
2921 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2924 for ac_c_preproc_warn_flag in '' yes
2926 # Use a header file that comes with gcc, so configuring glibc
2927 # with a fresh cross-compiler works.
2928 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2929 # <limits.h> exists even on freestanding compilers.
2930 # On the NeXT, cc -E runs the code through the compiler's parser,
2931 # not just through cpp. "Syntax error" is here to catch this case.
2932 cat >conftest.$ac_ext <<_ACEOF
2935 cat confdefs.h >>conftest.$ac_ext
2936 cat >>conftest.$ac_ext <<_ACEOF
2937 /* end confdefs.h. */
2939 # include <limits.h>
2941 # include <assert.h>
2945 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2946 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2948 grep -v '^ *+' conftest.er1 >conftest.err
2950 cat conftest.err >&5
2951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952 (exit $ac_status); } >/dev/null; then
2953 if test -s conftest.err; then
2954 ac_cpp_err=$ac_c_preproc_warn_flag
2955 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2962 if test -z "$ac_cpp_err"; then
2965 echo "$as_me: failed program was:" >&5
2966 sed 's/^/| /' conftest.$ac_ext >&5
2968 # Broken: fails on valid input.
2971 rm -f conftest.err conftest.$ac_ext
2973 # OK, works on sane cases. Now check whether non-existent headers
2974 # can be detected and how.
2975 cat >conftest.$ac_ext <<_ACEOF
2978 cat confdefs.h >>conftest.$ac_ext
2979 cat >>conftest.$ac_ext <<_ACEOF
2980 /* end confdefs.h. */
2981 #include <ac_nonexistent.h>
2983 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2984 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2986 grep -v '^ *+' conftest.er1 >conftest.err
2988 cat conftest.err >&5
2989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990 (exit $ac_status); } >/dev/null; then
2991 if test -s conftest.err; then
2992 ac_cpp_err=$ac_c_preproc_warn_flag
2993 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3000 if test -z "$ac_cpp_err"; then
3001 # Broken: success on invalid input.
3004 echo "$as_me: failed program was:" >&5
3005 sed 's/^/| /' conftest.$ac_ext >&5
3007 # Passes both tests.
3011 rm -f conftest.err conftest.$ac_ext
3014 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3015 rm -f conftest.err conftest.$ac_ext
3016 if $ac_preproc_ok; then
3028 echo "$as_me:$LINENO: result: $CPP" >&5
3029 echo "${ECHO_T}$CPP" >&6
3031 for ac_c_preproc_warn_flag in '' yes
3033 # Use a header file that comes with gcc, so configuring glibc
3034 # with a fresh cross-compiler works.
3035 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3036 # <limits.h> exists even on freestanding compilers.
3037 # On the NeXT, cc -E runs the code through the compiler's parser,
3038 # not just through cpp. "Syntax error" is here to catch this case.
3039 cat >conftest.$ac_ext <<_ACEOF
3042 cat confdefs.h >>conftest.$ac_ext
3043 cat >>conftest.$ac_ext <<_ACEOF
3044 /* end confdefs.h. */
3046 # include <limits.h>
3048 # include <assert.h>
3052 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3053 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3055 grep -v '^ *+' conftest.er1 >conftest.err
3057 cat conftest.err >&5
3058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059 (exit $ac_status); } >/dev/null; then
3060 if test -s conftest.err; then
3061 ac_cpp_err=$ac_c_preproc_warn_flag
3062 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3069 if test -z "$ac_cpp_err"; then
3072 echo "$as_me: failed program was:" >&5
3073 sed 's/^/| /' conftest.$ac_ext >&5
3075 # Broken: fails on valid input.
3078 rm -f conftest.err conftest.$ac_ext
3080 # OK, works on sane cases. Now check whether non-existent headers
3081 # can be detected and how.
3082 cat >conftest.$ac_ext <<_ACEOF
3085 cat confdefs.h >>conftest.$ac_ext
3086 cat >>conftest.$ac_ext <<_ACEOF
3087 /* end confdefs.h. */
3088 #include <ac_nonexistent.h>
3090 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3091 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3093 grep -v '^ *+' conftest.er1 >conftest.err
3095 cat conftest.err >&5
3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097 (exit $ac_status); } >/dev/null; then
3098 if test -s conftest.err; then
3099 ac_cpp_err=$ac_c_preproc_warn_flag
3100 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3107 if test -z "$ac_cpp_err"; then
3108 # Broken: success on invalid input.
3111 echo "$as_me: failed program was:" >&5
3112 sed 's/^/| /' conftest.$ac_ext >&5
3114 # Passes both tests.
3118 rm -f conftest.err conftest.$ac_ext
3121 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3122 rm -f conftest.err conftest.$ac_ext
3123 if $ac_preproc_ok; then
3126 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3127 See \`config.log' for more details." >&5
3128 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3129 See \`config.log' for more details." >&2;}
3130 { (exit 1); exit 1; }; }
3134 ac_cpp='$CPP $CPPFLAGS'
3135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3140 echo "$as_me:$LINENO: checking for egrep" >&5
3141 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3142 if test "${ac_cv_prog_egrep+set}" = set; then
3143 echo $ECHO_N "(cached) $ECHO_C" >&6
3145 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3146 then ac_cv_prog_egrep='grep -E'
3147 else ac_cv_prog_egrep='egrep'
3150 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3151 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3152 EGREP=$ac_cv_prog_egrep
3155 if test $ac_cv_c_compiler_gnu = yes; then
3156 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3157 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3158 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3159 echo $ECHO_N "(cached) $ECHO_C" >&6
3161 ac_pattern="Autoconf.*'x'"
3162 cat >conftest.$ac_ext <<_ACEOF
3165 cat confdefs.h >>conftest.$ac_ext
3166 cat >>conftest.$ac_ext <<_ACEOF
3167 /* end confdefs.h. */
3171 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3172 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3173 ac_cv_prog_gcc_traditional=yes
3175 ac_cv_prog_gcc_traditional=no
3180 if test $ac_cv_prog_gcc_traditional = no; then
3181 cat >conftest.$ac_ext <<_ACEOF
3184 cat confdefs.h >>conftest.$ac_ext
3185 cat >>conftest.$ac_ext <<_ACEOF
3186 /* end confdefs.h. */
3190 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3191 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3192 ac_cv_prog_gcc_traditional=yes
3198 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3199 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3200 if test $ac_cv_prog_gcc_traditional = yes; then
3201 CC="$CC -traditional"
3205 if test "x$CC" = xgcc; then
3206 cat >>confdefs.h <<\_ACEOF
3211 # Extract the first word of "$CXX", so it can be a program name with args.
3212 set dummy $CXX; ac_word=$2
3213 echo "$as_me:$LINENO: checking for $ac_word" >&5
3214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3215 if test "${ac_cv_path_CXX+set}" = set; then
3216 echo $ECHO_N "(cached) $ECHO_C" >&6
3220 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3227 test -z "$as_dir" && as_dir=.
3228 for ac_exec_ext in '' $ac_executable_extensions; do
3229 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3230 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3237 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
3243 if test -n "$CXX"; then
3244 echo "$as_me:$LINENO: result: $CXX" >&5
3245 echo "${ECHO_T}$CXX" >&6
3247 echo "$as_me:$LINENO: result: no" >&5
3248 echo "${ECHO_T}no" >&6
3251 if test ! -e $CXX; then
3252 { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
3253 echo "$as_me: error: Unable to find C++ compiler" >&2;}
3254 { (exit 1); exit 1; }; }
3257 # Find a good install program. We prefer a C program (faster),
3258 # so one script is as good as another. But avoid the broken or
3259 # incompatible versions:
3260 # SysV /etc/install, /usr/sbin/install
3261 # SunOS /usr/etc/install
3262 # IRIX /sbin/install
3264 # AmigaOS /C/install, which installs bootblocks on floppy discs
3265 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3266 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3267 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3268 # OS/2's system install, which has a completely different semantic
3269 # ./install, which can be erroneously created by make from ./install.sh.
3270 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3271 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3272 if test -z "$INSTALL"; then
3273 if test "${ac_cv_path_install+set}" = set; then
3274 echo $ECHO_N "(cached) $ECHO_C" >&6
3276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3280 test -z "$as_dir" && as_dir=.
3281 # Account for people who put trailing slashes in PATH elements.
3283 ./ | .// | /cC/* | \
3284 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3285 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3288 # OSF1 and SCO ODT 3.0 have their own names for install.
3289 # Don't use installbsd from OSF since it installs stuff as root
3291 for ac_prog in ginstall scoinst install; do
3292 for ac_exec_ext in '' $ac_executable_extensions; do
3293 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3294 if test $ac_prog = install &&
3295 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3296 # AIX install. It has an incompatible calling convention.
3298 elif test $ac_prog = install &&
3299 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3300 # program-specific install script used by HP pwplus--don't use.
3303 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3315 if test "${ac_cv_path_install+set}" = set; then
3316 INSTALL=$ac_cv_path_install
3318 # As a last resort, use the slow shell script. We don't cache a
3319 # path for INSTALL within a source directory, because that will
3320 # break other packages using the cache if that directory is
3321 # removed, or if the path is relative.
3322 INSTALL=$ac_install_sh
3325 echo "$as_me:$LINENO: result: $INSTALL" >&5
3326 echo "${ECHO_T}$INSTALL" >&6
3328 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3329 # It thinks the first close brace ends the variable substitution.
3330 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3332 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3334 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3336 if test -n "$ac_tool_prefix"; then
3337 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3338 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3339 echo "$as_me:$LINENO: checking for $ac_word" >&5
3340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3341 if test "${ac_cv_prog_RANLIB+set}" = set; then
3342 echo $ECHO_N "(cached) $ECHO_C" >&6
3344 if test -n "$RANLIB"; then
3345 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3351 test -z "$as_dir" && as_dir=.
3352 for ac_exec_ext in '' $ac_executable_extensions; do
3353 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3354 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3363 RANLIB=$ac_cv_prog_RANLIB
3364 if test -n "$RANLIB"; then
3365 echo "$as_me:$LINENO: result: $RANLIB" >&5
3366 echo "${ECHO_T}$RANLIB" >&6
3368 echo "$as_me:$LINENO: result: no" >&5
3369 echo "${ECHO_T}no" >&6
3373 if test -z "$ac_cv_prog_RANLIB"; then
3374 ac_ct_RANLIB=$RANLIB
3375 # Extract the first word of "ranlib", so it can be a program name with args.
3376 set dummy ranlib; ac_word=$2
3377 echo "$as_me:$LINENO: checking for $ac_word" >&5
3378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3379 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3380 echo $ECHO_N "(cached) $ECHO_C" >&6
3382 if test -n "$ac_ct_RANLIB"; then
3383 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3389 test -z "$as_dir" && as_dir=.
3390 for ac_exec_ext in '' $ac_executable_extensions; do
3391 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3392 ac_cv_prog_ac_ct_RANLIB="ranlib"
3393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3399 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3402 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3403 if test -n "$ac_ct_RANLIB"; then
3404 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3405 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3407 echo "$as_me:$LINENO: result: no" >&5
3408 echo "${ECHO_T}no" >&6
3411 RANLIB=$ac_ct_RANLIB
3413 RANLIB="$ac_cv_prog_RANLIB"
3416 # Extract the first word of "mv", so it can be a program name with args.
3417 set dummy mv; ac_word=$2
3418 echo "$as_me:$LINENO: checking for $ac_word" >&5
3419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3420 if test "${ac_cv_path_MV+set}" = set; then
3421 echo $ECHO_N "(cached) $ECHO_C" >&6
3425 ac_cv_path_MV="$MV" # Let the user override the test with a path.
3428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3432 test -z "$as_dir" && as_dir=.
3433 for ac_exec_ext in '' $ac_executable_extensions; do
3434 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3435 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3442 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3448 if test -n "$MV"; then
3449 echo "$as_me:$LINENO: result: $MV" >&5
3450 echo "${ECHO_T}$MV" >&6
3452 echo "$as_me:$LINENO: result: no" >&5
3453 echo "${ECHO_T}no" >&6
3456 # Extract the first word of "rm", so it can be a program name with args.
3457 set dummy rm; ac_word=$2
3458 echo "$as_me:$LINENO: checking for $ac_word" >&5
3459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3460 if test "${ac_cv_path_RM+set}" = set; then
3461 echo $ECHO_N "(cached) $ECHO_C" >&6
3465 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3472 test -z "$as_dir" && as_dir=.
3473 for ac_exec_ext in '' $ac_executable_extensions; do
3474 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3475 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3482 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3488 if test -n "$RM"; then
3489 echo "$as_me:$LINENO: result: $RM" >&5
3490 echo "${ECHO_T}$RM" >&6
3492 echo "$as_me:$LINENO: result: no" >&5
3493 echo "${ECHO_T}no" >&6
3496 # Extract the first word of "cp", so it can be a program name with args.
3497 set dummy cp; ac_word=$2
3498 echo "$as_me:$LINENO: checking for $ac_word" >&5
3499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3500 if test "${ac_cv_path_CP+set}" = set; then
3501 echo $ECHO_N "(cached) $ECHO_C" >&6
3505 ac_cv_path_CP="$CP" # Let the user override the test with a path.
3508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3512 test -z "$as_dir" && as_dir=.
3513 for ac_exec_ext in '' $ac_executable_extensions; do
3514 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3515 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3516 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3522 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3528 if test -n "$CP"; then
3529 echo "$as_me:$LINENO: result: $CP" >&5
3530 echo "${ECHO_T}$CP" >&6
3532 echo "$as_me:$LINENO: result: no" >&5
3533 echo "${ECHO_T}no" >&6
3536 # Extract the first word of "sed", so it can be a program name with args.
3537 set dummy sed; ac_word=$2
3538 echo "$as_me:$LINENO: checking for $ac_word" >&5
3539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3540 if test "${ac_cv_path_SED+set}" = set; then
3541 echo $ECHO_N "(cached) $ECHO_C" >&6
3545 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3552 test -z "$as_dir" && as_dir=.
3553 for ac_exec_ext in '' $ac_executable_extensions; do
3554 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3555 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3562 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3568 if test -n "$SED"; then
3569 echo "$as_me:$LINENO: result: $SED" >&5
3570 echo "${ECHO_T}$SED" >&6
3572 echo "$as_me:$LINENO: result: no" >&5
3573 echo "${ECHO_T}no" >&6
3576 # Extract the first word of "echo", so it can be a program name with args.
3577 set dummy echo; ac_word=$2
3578 echo "$as_me:$LINENO: checking for $ac_word" >&5
3579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3580 if test "${ac_cv_path_ECHO+set}" = set; then
3581 echo $ECHO_N "(cached) $ECHO_C" >&6
3585 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3592 test -z "$as_dir" && as_dir=.
3593 for ac_exec_ext in '' $ac_executable_extensions; do
3594 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3595 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3602 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3606 ECHO=$ac_cv_path_ECHO
3608 if test -n "$ECHO"; then
3609 echo "$as_me:$LINENO: result: $ECHO" >&5
3610 echo "${ECHO_T}$ECHO" >&6
3612 echo "$as_me:$LINENO: result: no" >&5
3613 echo "${ECHO_T}no" >&6
3616 # Extract the first word of "cmp", so it can be a program name with args.
3617 set dummy cmp; ac_word=$2
3618 echo "$as_me:$LINENO: checking for $ac_word" >&5
3619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3620 if test "${ac_cv_path_CMP+set}" = set; then
3621 echo $ECHO_N "(cached) $ECHO_C" >&6
3625 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3632 test -z "$as_dir" && as_dir=.
3633 for ac_exec_ext in '' $ac_executable_extensions; do
3634 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3635 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3642 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3648 if test -n "$CMP"; then
3649 echo "$as_me:$LINENO: result: $CMP" >&5
3650 echo "${ECHO_T}$CMP" >&6
3652 echo "$as_me:$LINENO: result: no" >&5
3653 echo "${ECHO_T}no" >&6
3656 # Extract the first word of "tbl", so it can be a program name with args.
3657 set dummy tbl; ac_word=$2
3658 echo "$as_me:$LINENO: checking for $ac_word" >&5
3659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3660 if test "${ac_cv_path_TBL+set}" = set; then
3661 echo $ECHO_N "(cached) $ECHO_C" >&6
3665 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3672 test -z "$as_dir" && as_dir=.
3673 for ac_exec_ext in '' $ac_executable_extensions; do
3674 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3675 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3682 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3688 if test -n "$TBL"; then
3689 echo "$as_me:$LINENO: result: $TBL" >&5
3690 echo "${ECHO_T}$TBL" >&6
3692 echo "$as_me:$LINENO: result: no" >&5
3693 echo "${ECHO_T}no" >&6
3696 # Extract the first word of "ar", so it can be a program name with args.
3697 set dummy ar; ac_word=$2
3698 echo "$as_me:$LINENO: checking for $ac_word" >&5
3699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3700 if test "${ac_cv_path_AR+set}" = set; then
3701 echo $ECHO_N "(cached) $ECHO_C" >&6
3705 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3712 test -z "$as_dir" && as_dir=.
3713 for ac_exec_ext in '' $ac_executable_extensions; do
3714 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3715 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3722 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3728 if test -n "$AR"; then
3729 echo "$as_me:$LINENO: result: $AR" >&5
3730 echo "${ECHO_T}$AR" >&6
3732 echo "$as_me:$LINENO: result: no" >&5
3733 echo "${ECHO_T}no" >&6
3736 # Extract the first word of "openssl", so it can be a program name with args.
3737 set dummy openssl; ac_word=$2
3738 echo "$as_me:$LINENO: checking for $ac_word" >&5
3739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3740 if test "${ac_cv_path_OPENSSL+set}" = set; then
3741 echo $ECHO_N "(cached) $ECHO_C" >&6
3745 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3752 test -z "$as_dir" && as_dir=.
3753 for ac_exec_ext in '' $ac_executable_extensions; do
3754 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3755 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3762 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3766 OPENSSL=$ac_cv_path_OPENSSL
3768 if test -n "$OPENSSL"; then
3769 echo "$as_me:$LINENO: result: $OPENSSL" >&5
3770 echo "${ECHO_T}$OPENSSL" >&6
3772 echo "$as_me:$LINENO: result: no" >&5
3773 echo "${ECHO_T}no" >&6
3776 # Extract the first word of "mtx", so it can be a program name with args.
3777 set dummy mtx; ac_word=$2
3778 echo "$as_me:$LINENO: checking for $ac_word" >&5
3779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3780 if test "${ac_cv_path_MTX+set}" = set; then
3781 echo $ECHO_N "(cached) $ECHO_C" >&6
3785 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3792 test -z "$as_dir" && as_dir=.
3793 for ac_exec_ext in '' $ac_executable_extensions; do
3794 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3795 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3802 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3808 if test -n "$MTX"; then
3809 echo "$as_me:$LINENO: result: $MTX" >&5
3810 echo "${ECHO_T}$MTX" >&6
3812 echo "$as_me:$LINENO: result: no" >&5
3813 echo "${ECHO_T}no" >&6
3816 # Extract the first word of "df", so it can be a program name with args.
3817 set dummy df; ac_word=$2
3818 echo "$as_me:$LINENO: checking for $ac_word" >&5
3819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3820 if test "${ac_cv_path_DF+set}" = set; then
3821 echo $ECHO_N "(cached) $ECHO_C" >&6
3825 ac_cv_path_DF="$DF" # Let the user override the test with a path.
3828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3832 test -z "$as_dir" && as_dir=.
3833 for ac_exec_ext in '' $ac_executable_extensions; do
3834 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3835 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
3836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3842 test -z "$ac_cv_path_DF" && ac_cv_path_DF="df"
3848 if test -n "$DF"; then
3849 echo "$as_me:$LINENO: result: $DF" >&5
3850 echo "${ECHO_T}$DF" >&6
3852 echo "$as_me:$LINENO: result: no" >&5
3853 echo "${ECHO_T}no" >&6
3856 # Extract the first word of "mkisofs", so it can be a program name with args.
3857 set dummy mkisofs; ac_word=$2
3858 echo "$as_me:$LINENO: checking for $ac_word" >&5
3859 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3860 if test "${ac_cv_path_MKISOFS+set}" = set; then
3861 echo $ECHO_N "(cached) $ECHO_C" >&6
3865 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
3868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3872 test -z "$as_dir" && as_dir=.
3873 for ac_exec_ext in '' $ac_executable_extensions; do
3874 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3875 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
3876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3882 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
3886 MKISOFS=$ac_cv_path_MKISOFS
3888 if test -n "$MKISOFS"; then
3889 echo "$as_me:$LINENO: result: $MKISOFS" >&5
3890 echo "${ECHO_T}$MKISOFS" >&6
3892 echo "$as_me:$LINENO: result: no" >&5
3893 echo "${ECHO_T}no" >&6
3896 # Extract the first word of "python", so it can be a program name with args.
3897 set dummy python; ac_word=$2
3898 echo "$as_me:$LINENO: checking for $ac_word" >&5
3899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3900 if test "${ac_cv_path_PYTHON+set}" = set; then
3901 echo $ECHO_N "(cached) $ECHO_C" >&6
3905 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
3908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3912 test -z "$as_dir" && as_dir=.
3913 for ac_exec_ext in '' $ac_executable_extensions; do
3914 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3915 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
3916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3922 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
3926 PYTHON=$ac_cv_path_PYTHON
3928 if test -n "$PYTHON"; then
3929 echo "$as_me:$LINENO: result: $PYTHON" >&5
3930 echo "${ECHO_T}$PYTHON" >&6
3932 echo "$as_me:$LINENO: result: no" >&5
3933 echo "${ECHO_T}no" >&6
3936 # Extract the first word of "growisofs", so it can be a program name with args.
3937 set dummy growisofs; ac_word=$2
3938 echo "$as_me:$LINENO: checking for $ac_word" >&5
3939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3940 if test "${ac_cv_path_GROWISOFS+set}" = set; then
3941 echo $ECHO_N "(cached) $ECHO_C" >&6
3945 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
3948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3952 test -z "$as_dir" && as_dir=.
3953 for ac_exec_ext in '' $ac_executable_extensions; do
3954 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3955 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
3956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3962 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
3966 GROWISOFS=$ac_cv_path_GROWISOFS
3968 if test -n "$GROWISOFS"; then
3969 echo "$as_me:$LINENO: result: $GROWISOFS" >&5
3970 echo "${ECHO_T}$GROWISOFS" >&6
3972 echo "$as_me:$LINENO: result: no" >&5
3973 echo "${ECHO_T}no" >&6
3976 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
3977 set dummy dvd+rw-mediainfo; ac_word=$2
3978 echo "$as_me:$LINENO: checking for $ac_word" >&5
3979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3980 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
3981 echo $ECHO_N "(cached) $ECHO_C" >&6
3983 case $DVDRWMEDIAINFO in
3985 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
3988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3992 test -z "$as_dir" && as_dir=.
3993 for ac_exec_ext in '' $ac_executable_extensions; do
3994 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3995 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
3996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4002 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4006 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4008 if test -n "$DVDRWMEDIAINFO"; then
4009 echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4010 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6
4012 echo "$as_me:$LINENO: result: no" >&5
4013 echo "${ECHO_T}no" >&6
4016 # Extract the first word of "pkg-config", so it can be a program name with args.
4017 set dummy pkg-config; ac_word=$2
4018 echo "$as_me:$LINENO: checking for $ac_word" >&5
4019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4020 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4021 echo $ECHO_N "(cached) $ECHO_C" >&6
4025 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4032 test -z "$as_dir" && as_dir=.
4033 for ac_exec_ext in '' $ac_executable_extensions; do
4034 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4035 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4042 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
4046 PKGCONFIG=$ac_cv_path_PKGCONFIG
4048 if test -n "$PKGCONFIG"; then
4049 echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
4050 echo "${ECHO_T}$PKGCONFIG" >&6
4052 echo "$as_me:$LINENO: result: no" >&5
4053 echo "${ECHO_T}no" >&6
4057 if test "x$WXCONFIG" = x; then
4060 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
4061 set dummy ${WXCONFIG}; 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_WXCONFIG+set}" = set; then
4065 echo $ECHO_N "(cached) $ECHO_C" >&6
4069 ac_cv_path_WXCONFIG="$WXCONFIG" # 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_WXCONFIG="$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_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
4090 WXCONFIG=$ac_cv_path_WXCONFIG
4092 if test -n "$WXCONFIG"; then
4093 echo "$as_me:$LINENO: result: $WXCONFIG" >&5
4094 echo "${ECHO_T}$WXCONFIG" >&6
4096 echo "$as_me:$LINENO: result: no" >&5
4097 echo "${ECHO_T}no" >&6
4101 # Extract the first word of "cdrecord", so it can be a program name with args.
4102 set dummy cdrecord; ac_word=$2
4103 echo "$as_me:$LINENO: checking for $ac_word" >&5
4104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4105 if test "${ac_cv_path_CDRECORD+set}" = set; then
4106 echo $ECHO_N "(cached) $ECHO_C" >&6
4110 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
4113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4117 test -z "$as_dir" && as_dir=.
4118 for ac_exec_ext in '' $ac_executable_extensions; do
4119 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4120 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
4121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4127 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
4131 CDRECORD=$ac_cv_path_CDRECORD
4133 if test -n "$CDRECORD"; then
4134 echo "$as_me:$LINENO: result: $CDRECORD" >&5
4135 echo "${ECHO_T}$CDRECORD" >&6
4137 echo "$as_me:$LINENO: result: no" >&5
4138 echo "${ECHO_T}no" >&6
4141 # Extract the first word of "pidof", so it can be a program name with args.
4142 set dummy pidof; ac_word=$2
4143 echo "$as_me:$LINENO: checking for $ac_word" >&5
4144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4145 if test "${ac_cv_path_PIDOF+set}" = set; then
4146 echo $ECHO_N "(cached) $ECHO_C" >&6
4150 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
4153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4157 test -z "$as_dir" && as_dir=.
4158 for ac_exec_ext in '' $ac_executable_extensions; do
4159 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4160 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
4161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4167 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
4171 PIDOF=$ac_cv_path_PIDOF
4173 if test -n "$PIDOF"; then
4174 echo "$as_me:$LINENO: result: $PIDOF" >&5
4175 echo "${ECHO_T}$PIDOF" >&6
4177 echo "$as_me:$LINENO: result: no" >&5
4178 echo "${ECHO_T}no" >&6
4181 for ac_prog in gawk mawk nawk awk
4183 # Extract the first word of "$ac_prog", so it can be a program name with args.
4184 set dummy $ac_prog; ac_word=$2
4185 echo "$as_me:$LINENO: checking for $ac_word" >&5
4186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4187 if test "${ac_cv_prog_AWK+set}" = set; then
4188 echo $ECHO_N "(cached) $ECHO_C" >&6
4190 if test -n "$AWK"; then
4191 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4197 test -z "$as_dir" && as_dir=.
4198 for ac_exec_ext in '' $ac_executable_extensions; do
4199 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4200 ac_cv_prog_AWK="$ac_prog"
4201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4210 if test -n "$AWK"; then
4211 echo "$as_me:$LINENO: result: $AWK" >&5
4212 echo "${ECHO_T}$AWK" >&6
4214 echo "$as_me:$LINENO: result: no" >&5
4215 echo "${ECHO_T}no" >&6
4218 test -n "$AWK" && break
4221 # Some AWK programs fail, so test it and warn the user
4222 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
4223 { if ((prog == $2) || (("(" prog ")") == $2) ||
4224 (("" prog "") == $2) ||
4225 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
4227 { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4228 The regex engine of $AWK is too broken to be used you
4229 might want to install GNU AWK.
4230 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
4231 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4232 The regex engine of $AWK is too broken to be used you
4233 might want to install GNU AWK.
4234 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
4235 { (exit 1); exit 1; }; }
4238 # Extract the first word of "$THE_AWK", so it can be a program name with args.
4239 set dummy $THE_AWK; ac_word=$2
4240 echo "$as_me:$LINENO: checking for $ac_word" >&5
4241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4242 if test "${ac_cv_path_AWK+set}" = set; then
4243 echo $ECHO_N "(cached) $ECHO_C" >&6
4247 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
4250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4254 test -z "$as_dir" && as_dir=.
4255 for ac_exec_ext in '' $ac_executable_extensions; do
4256 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4257 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
4258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4264 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
4270 if test -n "$AWK"; then
4271 echo "$as_me:$LINENO: result: $AWK" >&5
4272 echo "${ECHO_T}$AWK" >&6
4274 echo "$as_me:$LINENO: result: no" >&5
4275 echo "${ECHO_T}no" >&6
4279 test -n "$ARFLAG" || ARFLAGS="cr"
4290 # Make sure we can run config.sub.
4291 $ac_config_sub sun4 >/dev/null 2>&1 ||
4292 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4293 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4294 { (exit 1); exit 1; }; }
4296 echo "$as_me:$LINENO: checking build system type" >&5
4297 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4298 if test "${ac_cv_build+set}" = set; then
4299 echo $ECHO_N "(cached) $ECHO_C" >&6
4301 ac_cv_build_alias=$build_alias
4302 test -z "$ac_cv_build_alias" &&
4303 ac_cv_build_alias=`$ac_config_guess`
4304 test -z "$ac_cv_build_alias" &&
4305 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4306 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4307 { (exit 1); exit 1; }; }
4308 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4309 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4310 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4311 { (exit 1); exit 1; }; }
4314 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4315 echo "${ECHO_T}$ac_cv_build" >&6
4317 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4318 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4319 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4323 echo "$as_me:$LINENO: checking host system type" >&5
4324 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4325 if test "${ac_cv_host+set}" = set; then
4326 echo $ECHO_N "(cached) $ECHO_C" >&6
4328 ac_cv_host_alias=$host_alias
4329 test -z "$ac_cv_host_alias" &&
4330 ac_cv_host_alias=$ac_cv_build_alias
4331 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4332 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4333 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4334 { (exit 1); exit 1; }; }
4337 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4338 echo "${ECHO_T}$ac_cv_host" >&6
4340 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4341 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4342 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4346 *cygwin* ) CYGWIN=yes;;
4350 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4356 HAVE_SUN_OS_FALSE='#'
4358 HAVE_SUN_OS_TRUE='#'
4361 cat >>confdefs.h <<\_ACEOF
4362 #define HAVE_SUN_OS 1
4370 HAVE_SUN_OS_FALSE='#'
4372 HAVE_SUN_OS_TRUE='#'
4377 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4383 HAVE_OSF1_OS_FALSE='#'
4385 HAVE_OSF1_OS_TRUE='#'
4388 cat >>confdefs.h <<\_ACEOF
4389 #define HAVE_OSF1_OS 1
4397 HAVE_OSF1_OS_FALSE='#'
4399 HAVE_OSF1_OS_TRUE='#'
4404 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4410 HAVE_AIX_OS_FALSE='#'
4412 HAVE_AIX_OS_TRUE='#'
4415 cat >>confdefs.h <<\_ACEOF
4416 #define HAVE_AIX_OS 1
4424 HAVE_AIX_OS_FALSE='#'
4426 HAVE_AIX_OS_TRUE='#'
4431 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4437 HAVE_HPUX_OS_FALSE='#'
4439 HAVE_HPUX_OS_TRUE='#'
4442 cat >>confdefs.h <<\_ACEOF
4443 #define HAVE_HPUX_OS 1
4451 HAVE_HPUX_OS_FALSE='#'
4453 HAVE_HPUX_OS_TRUE='#'
4458 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
4464 HAVE_LINUX_OS_FALSE='#'
4466 HAVE_LINUX_OS_TRUE='#'
4467 HAVE_LINUX_OS_FALSE=
4469 cat >>confdefs.h <<\_ACEOF
4470 #define HAVE_LINUX_OS 1
4478 HAVE_LINUX_OS_FALSE='#'
4480 HAVE_LINUX_OS_TRUE='#'
4481 HAVE_LINUX_OS_FALSE=
4485 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4490 HAVE_FREEBSD_OS_TRUE=
4491 HAVE_FREEBSD_OS_FALSE='#'
4493 HAVE_FREEBSD_OS_TRUE='#'
4494 HAVE_FREEBSD_OS_FALSE=
4496 cat >>confdefs.h <<\_ACEOF
4497 #define HAVE_FREEBSD_OS 1
4504 HAVE_FREEBSD_OS_TRUE=
4505 HAVE_FREEBSD_OS_FALSE='#'
4507 HAVE_FREEBSD_OS_TRUE='#'
4508 HAVE_FREEBSD_OS_FALSE=
4512 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4517 HAVE_NETBSD_OS_TRUE=
4518 HAVE_NETBSD_OS_FALSE='#'
4520 HAVE_NETBSD_OS_TRUE='#'
4521 HAVE_NETBSD_OS_FALSE=
4523 cat >>confdefs.h <<\_ACEOF
4524 #define HAVE_NETBSD_OS 1
4531 HAVE_NETBSD_OS_TRUE=
4532 HAVE_NETBSD_OS_FALSE='#'
4534 HAVE_NETBSD_OS_TRUE='#'
4535 HAVE_NETBSD_OS_FALSE=
4539 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4544 HAVE_OPENBSD_OS_TRUE=
4545 HAVE_OPENBSD_OS_FALSE='#'
4547 HAVE_OPENBSD_OS_TRUE='#'
4548 HAVE_OPENBSD_OS_FALSE=
4550 cat >>confdefs.h <<\_ACEOF
4551 #define HAVE_OPENBSD_OS 1
4558 HAVE_OPENBSD_OS_TRUE=
4559 HAVE_OPENBSD_OS_FALSE='#'
4561 HAVE_OPENBSD_OS_TRUE='#'
4562 HAVE_OPENBSD_OS_FALSE=
4566 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4572 HAVE_BSDI_OS_FALSE='#'
4574 HAVE_BSDI_OS_TRUE='#'
4577 cat >>confdefs.h <<\_ACEOF
4578 #define HAVE_BSDI_OS 1
4586 HAVE_BSDI_OS_FALSE='#'
4588 HAVE_BSDI_OS_TRUE='#'
4593 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4599 HAVE_SGI_OS_FALSE='#'
4601 HAVE_SGI_OS_TRUE='#'
4604 cat >>confdefs.h <<\_ACEOF
4605 #define HAVE_SGI_OS 1
4613 HAVE_SGI_OS_FALSE='#'
4615 HAVE_SGI_OS_TRUE='#'
4620 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4626 HAVE_IRIX_OS_FALSE='#'
4628 HAVE_IRIX_OS_TRUE='#'
4631 cat >>confdefs.h <<\_ACEOF
4632 #define HAVE_IRIX_OS 1
4640 HAVE_IRIX_OS_FALSE='#'
4642 HAVE_IRIX_OS_TRUE='#'
4647 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4652 HAVE_DARWIN_OS_TRUE=
4653 HAVE_DARWIN_OS_FALSE='#'
4655 HAVE_DARWIN_OS_TRUE='#'
4656 HAVE_DARWIN_OS_FALSE=
4658 cat >>confdefs.h <<\_ACEOF
4659 #define HAVE_DARWIN_OS 1
4666 HAVE_DARWIN_OS_TRUE=
4667 HAVE_DARWIN_OS_FALSE='#'
4669 HAVE_DARWIN_OS_TRUE='#'
4670 HAVE_DARWIN_OS_FALSE=
4675 # -----------------------------------------------------------
4676 # ----------------------------------------------------------
4677 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4678 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4679 if test "x$DISTNAME" != "x"
4681 echo "distname set to $DISTNAME"
4682 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4685 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4688 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4691 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4694 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4697 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4700 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4703 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4706 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4709 elif test -f /etc/SuSE-release
4712 elif test -d /etc/SuSEconfig
4715 elif test -f /etc/mandrake-release
4718 elif test -f /etc/whitebox-release
4721 elif test -f /etc/redhat-release
4724 elif test -f /etc/gentoo-release
4727 elif test -f /etc/debian_version
4730 elif test -f /etc/slackware-version
4733 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4736 elif test -f /etc/engarde-version
4739 elif test "$CYGWIN" = yes
4742 cat >>confdefs.h <<\_ACEOF
4743 #define HAVE_CYGWIN 1
4749 echo "$as_me:$LINENO: result: done" >&5
4750 echo "${ECHO_T}done" >&6
4753 # --------------------------------------------------
4754 # Suppport for gettext (translations)
4755 # By default, $datadir is ${prefix}/share
4756 # --------------------------------------------------
4757 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4758 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4759 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4760 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4761 echo $ECHO_N "(cached) $ECHO_C" >&6
4763 cat >conftest.make <<\_ACEOF
4765 @echo 'ac_maketemp="$(MAKE)"'
4767 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4768 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4769 if test -n "$ac_maketemp"; then
4770 eval ac_cv_prog_make_${ac_make}_set=yes
4772 eval ac_cv_prog_make_${ac_make}_set=no
4776 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4777 echo "$as_me:$LINENO: result: yes" >&5
4778 echo "${ECHO_T}yes" >&6
4781 echo "$as_me:$LINENO: result: no" >&5
4782 echo "${ECHO_T}no" >&6
4783 SET_MAKE="MAKE=${MAKE-make}"
4789 if test -n "$ac_aux_dir"; then
4790 case "$ac_aux_dir" in
4791 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
4792 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4795 if test -z "$MKINSTALLDIRS"; then
4796 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4801 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4802 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4803 # Check whether --enable-nls or --disable-nls was given.
4804 if test "${enable_nls+set}" = set; then
4805 enableval="$enable_nls"
4810 echo "$as_me:$LINENO: result: $USE_NLS" >&5
4811 echo "${ECHO_T}$USE_NLS" >&6
4818 # Prepare PATH_SEPARATOR.
4819 # The user is always right.
4820 if test "${PATH_SEPARATOR+set}" != set; then
4821 echo "#! /bin/sh" >conf$$.sh
4822 echo "exit 0" >>conf$$.sh
4824 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4832 # Find out how to test for executable files. Don't use a zero-byte file,
4833 # as systems may use methods other than mode bits to determine executability.
4834 cat >conf$$.file <<_ASEOF
4838 chmod +x conf$$.file
4839 if test -x conf$$.file >/dev/null 2>&1; then
4840 ac_executable_p="test -x"
4842 ac_executable_p="test -f"
4846 # Extract the first word of "msgfmt", so it can be a program name with args.
4847 set dummy msgfmt; ac_word=$2
4848 echo "$as_me:$LINENO: checking for $ac_word" >&5
4849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4850 if test "${ac_cv_path_MSGFMT+set}" = set; then
4851 echo $ECHO_N "(cached) $ECHO_C" >&6
4855 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4858 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4859 for ac_dir in $PATH; do
4861 test -z "$ac_dir" && ac_dir=.
4862 for ac_exec_ext in '' $ac_executable_extensions; do
4863 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4864 echo "$as_me: trying $ac_dir/$ac_word..." >&5
4865 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
4866 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4867 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4874 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4878 MSGFMT="$ac_cv_path_MSGFMT"
4879 if test "$MSGFMT" != ":"; then
4880 echo "$as_me:$LINENO: result: $MSGFMT" >&5
4881 echo "${ECHO_T}$MSGFMT" >&6
4883 echo "$as_me:$LINENO: result: no" >&5
4884 echo "${ECHO_T}no" >&6
4887 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4888 set dummy gmsgfmt; ac_word=$2
4889 echo "$as_me:$LINENO: checking for $ac_word" >&5
4890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4891 if test "${ac_cv_path_GMSGFMT+set}" = set; then
4892 echo $ECHO_N "(cached) $ECHO_C" >&6
4896 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4903 test -z "$as_dir" && as_dir=.
4904 for ac_exec_ext in '' $ac_executable_extensions; do
4905 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4906 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4913 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4917 GMSGFMT=$ac_cv_path_GMSGFMT
4919 if test -n "$GMSGFMT"; then
4920 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4921 echo "${ECHO_T}$GMSGFMT" >&6
4923 echo "$as_me:$LINENO: result: no" >&5
4924 echo "${ECHO_T}no" >&6
4929 # Prepare PATH_SEPARATOR.
4930 # The user is always right.
4931 if test "${PATH_SEPARATOR+set}" != set; then
4932 echo "#! /bin/sh" >conf$$.sh
4933 echo "exit 0" >>conf$$.sh
4935 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4943 # Find out how to test for executable files. Don't use a zero-byte file,
4944 # as systems may use methods other than mode bits to determine executability.
4945 cat >conf$$.file <<_ASEOF
4949 chmod +x conf$$.file
4950 if test -x conf$$.file >/dev/null 2>&1; then
4951 ac_executable_p="test -x"
4953 ac_executable_p="test -f"
4957 # Extract the first word of "xgettext", so it can be a program name with args.
4958 set dummy xgettext; ac_word=$2
4959 echo "$as_me:$LINENO: checking for $ac_word" >&5
4960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4961 if test "${ac_cv_path_XGETTEXT+set}" = set; then
4962 echo $ECHO_N "(cached) $ECHO_C" >&6
4966 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4969 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4970 for ac_dir in $PATH; do
4972 test -z "$ac_dir" && ac_dir=.
4973 for ac_exec_ext in '' $ac_executable_extensions; do
4974 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4975 echo "$as_me: trying $ac_dir/$ac_word..." >&5
4976 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
4977 (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
4978 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4985 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4989 XGETTEXT="$ac_cv_path_XGETTEXT"
4990 if test "$XGETTEXT" != ":"; then
4991 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
4992 echo "${ECHO_T}$XGETTEXT" >&6
4994 echo "$as_me:$LINENO: result: no" >&5
4995 echo "${ECHO_T}no" >&6
5001 # Prepare PATH_SEPARATOR.
5002 # The user is always right.
5003 if test "${PATH_SEPARATOR+set}" != set; then
5004 echo "#! /bin/sh" >conf$$.sh
5005 echo "exit 0" >>conf$$.sh
5007 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5015 # Find out how to test for executable files. Don't use a zero-byte file,
5016 # as systems may use methods other than mode bits to determine executability.
5017 cat >conf$$.file <<_ASEOF
5021 chmod +x conf$$.file
5022 if test -x conf$$.file >/dev/null 2>&1; then
5023 ac_executable_p="test -x"
5025 ac_executable_p="test -f"
5029 # Extract the first word of "msgmerge", so it can be a program name with args.
5030 set dummy msgmerge; ac_word=$2
5031 echo "$as_me:$LINENO: checking for $ac_word" >&5
5032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5033 if test "${ac_cv_path_MSGMERGE+set}" = set; then
5034 echo $ECHO_N "(cached) $ECHO_C" >&6
5038 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5041 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5042 for ac_dir in $PATH; do
5044 test -z "$ac_dir" && ac_dir=.
5045 for ac_exec_ext in '' $ac_executable_extensions; do
5046 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5047 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5048 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
5049 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5056 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5060 MSGMERGE="$ac_cv_path_MSGMERGE"
5061 if test "$MSGMERGE" != ":"; then
5062 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
5063 echo "${ECHO_T}$MSGMERGE" >&6
5065 echo "$as_me:$LINENO: result: no" >&5
5066 echo "${ECHO_T}no" >&6
5070 if test "$GMSGFMT" != ":"; then
5071 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
5072 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5075 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
5076 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
5077 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
5082 if test "$XGETTEXT" != ":"; then
5083 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5084 (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
5087 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
5088 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
5094 ac_config_commands="$ac_config_commands default-1"
5098 if test "X$prefix" = "XNONE"; then
5099 acl_final_prefix="$ac_default_prefix"
5101 acl_final_prefix="$prefix"
5103 if test "X$exec_prefix" = "XNONE"; then
5104 acl_final_exec_prefix='${prefix}'
5106 acl_final_exec_prefix="$exec_prefix"
5108 acl_save_prefix="$prefix"
5109 prefix="$acl_final_prefix"
5110 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5111 prefix="$acl_save_prefix"
5114 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5115 if test "${with_gnu_ld+set}" = set; then
5116 withval="$with_gnu_ld"
5117 test "$withval" = no || with_gnu_ld=yes
5121 # Prepare PATH_SEPARATOR.
5122 # The user is always right.
5123 if test "${PATH_SEPARATOR+set}" != set; then
5124 echo "#! /bin/sh" >conf$$.sh
5125 echo "exit 0" >>conf$$.sh
5127 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5135 if test "$GCC" = yes; then
5136 # Check if gcc -print-prog-name=ld gives a path.
5137 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5138 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5141 # gcc leaves a trailing carriage return which upsets mingw
5142 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5144 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5147 # Accept absolute paths.
5148 [\\/]* | [A-Za-z]:[\\/]*)
5149 re_direlt='/[^/][^/]*/\.\./'
5150 # Canonicalize the path of ld
5151 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5152 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5153 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5155 test -z "$LD" && LD="$ac_prog"
5158 # If it fails, then pretend we aren't using GCC.
5162 # If it is relative, then search for the first ld in PATH.
5166 elif test "$with_gnu_ld" = yes; then
5167 echo "$as_me:$LINENO: checking for GNU ld" >&5
5168 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5170 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5171 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5173 if test "${acl_cv_path_LD+set}" = set; then
5174 echo $ECHO_N "(cached) $ECHO_C" >&6
5176 if test -z "$LD"; then
5177 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5178 for ac_dir in $PATH; do
5179 test -z "$ac_dir" && ac_dir=.
5180 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5181 acl_cv_path_LD="$ac_dir/$ac_prog"
5182 # Check to see if the program is GNU ld. I'd rather use --version,
5183 # but apparently some GNU ld's only accept -v.
5184 # Break only if it was the GNU/non-GNU ld that we prefer.
5185 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
5186 *GNU* | *'with BFD'*)
5187 test "$with_gnu_ld" != no && break ;;
5189 test "$with_gnu_ld" != yes && break ;;
5195 acl_cv_path_LD="$LD" # Let the user override the test with a path.
5199 LD="$acl_cv_path_LD"
5200 if test -n "$LD"; then
5201 echo "$as_me:$LINENO: result: $LD" >&5
5202 echo "${ECHO_T}$LD" >&6
5204 echo "$as_me:$LINENO: result: no" >&5
5205 echo "${ECHO_T}no" >&6
5207 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5208 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5209 { (exit 1); exit 1; }; }
5210 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5211 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5212 if test "${acl_cv_prog_gnu_ld+set}" = set; then
5213 echo $ECHO_N "(cached) $ECHO_C" >&6
5215 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5216 case `$LD -v 2>&1 </dev/null` in
5217 *GNU* | *'with BFD'*)
5218 acl_cv_prog_gnu_ld=yes ;;
5220 acl_cv_prog_gnu_ld=no ;;
5223 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
5224 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
5225 with_gnu_ld=$acl_cv_prog_gnu_ld
5230 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
5231 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
5232 if test "${acl_cv_rpath+set}" = set; then
5233 echo $ECHO_N "(cached) $ECHO_C" >&6
5236 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5237 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5243 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
5244 echo "${ECHO_T}$acl_cv_rpath" >&6
5246 libext="$acl_cv_libext"
5247 shlibext="$acl_cv_shlibext"
5248 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5249 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5250 hardcode_direct="$acl_cv_hardcode_direct"
5251 hardcode_minus_L="$acl_cv_hardcode_minus_L"
5252 # Check whether --enable-rpath or --disable-rpath was given.
5253 if test "${enable_rpath+set}" = set; then
5254 enableval="$enable_rpath"
5268 acl_save_prefix="$prefix"
5269 prefix="$acl_final_prefix"
5270 acl_save_exec_prefix="$exec_prefix"
5271 exec_prefix="$acl_final_exec_prefix"
5273 eval additional_includedir=\"$includedir\"
5274 eval additional_libdir=\"$libdir\"
5276 exec_prefix="$acl_save_exec_prefix"
5277 prefix="$acl_save_prefix"
5280 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
5281 if test "${with_libiconv_prefix+set}" = set; then
5282 withval="$with_libiconv_prefix"
5284 if test "X$withval" = "Xno"; then
5287 if test "X$withval" = "X"; then
5289 acl_save_prefix="$prefix"
5290 prefix="$acl_final_prefix"
5291 acl_save_exec_prefix="$exec_prefix"
5292 exec_prefix="$acl_final_exec_prefix"
5294 eval additional_includedir=\"$includedir\"
5295 eval additional_libdir=\"$libdir\"
5297 exec_prefix="$acl_save_exec_prefix"
5298 prefix="$acl_save_prefix"
5301 additional_includedir="$withval/include"
5302 additional_libdir="$withval/lib"
5312 names_already_handled=
5313 names_next_round='iconv '
5314 while test -n "$names_next_round"; do
5315 names_this_round="$names_next_round"
5317 for name in $names_this_round; do
5319 for n in $names_already_handled; do
5320 if test "$n" = "$name"; then
5325 if test -z "$already_handled"; then
5326 names_already_handled="$names_already_handled $name"
5327 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5328 eval value=\"\$HAVE_LIB$uppername\"
5329 if test -n "$value"; then
5330 if test "$value" = yes; then
5331 eval value=\"\$LIB$uppername\"
5332 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5333 eval value=\"\$LTLIB$uppername\"
5334 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5343 if test $use_additional = yes; then
5344 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
5345 found_dir="$additional_libdir"
5346 found_so="$additional_libdir/lib$name.$shlibext"
5347 if test -f "$additional_libdir/lib$name.la"; then
5348 found_la="$additional_libdir/lib$name.la"
5351 if test -f "$additional_libdir/lib$name.$libext"; then
5352 found_dir="$additional_libdir"
5353 found_a="$additional_libdir/lib$name.$libext"
5354 if test -f "$additional_libdir/lib$name.la"; then
5355 found_la="$additional_libdir/lib$name.la"
5360 if test "X$found_dir" = "X"; then
5361 for x in $LDFLAGS $LTLIBICONV; do
5363 acl_save_prefix="$prefix"
5364 prefix="$acl_final_prefix"
5365 acl_save_exec_prefix="$exec_prefix"
5366 exec_prefix="$acl_final_exec_prefix"
5368 exec_prefix="$acl_save_exec_prefix"
5369 prefix="$acl_save_prefix"
5373 dir=`echo "X$x" | sed -e 's/^X-L//'`
5374 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
5376 found_so="$dir/lib$name.$shlibext"
5377 if test -f "$dir/lib$name.la"; then
5378 found_la="$dir/lib$name.la"
5381 if test -f "$dir/lib$name.$libext"; then
5383 found_a="$dir/lib$name.$libext"
5384 if test -f "$dir/lib$name.la"; then
5385 found_la="$dir/lib$name.la"
5391 if test "X$found_dir" != "X"; then
5396 if test "X$found_dir" != "X"; then
5397 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5398 if test "X$found_so" != "X"; then
5399 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
5400 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5403 for x in $ltrpathdirs; do
5404 if test "X$x" = "X$found_dir"; then
5409 if test -z "$haveit"; then
5410 ltrpathdirs="$ltrpathdirs $found_dir"
5412 if test "$hardcode_direct" = yes; then
5413 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5415 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
5416 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5418 for x in $rpathdirs; do
5419 if test "X$x" = "X$found_dir"; then
5424 if test -z "$haveit"; then
5425 rpathdirs="$rpathdirs $found_dir"
5429 for x in $LDFLAGS $LIBICONV; do
5431 acl_save_prefix="$prefix"
5432 prefix="$acl_final_prefix"
5433 acl_save_exec_prefix="$exec_prefix"
5434 exec_prefix="$acl_final_exec_prefix"
5436 exec_prefix="$acl_save_exec_prefix"
5437 prefix="$acl_save_prefix"
5439 if test "X$x" = "X-L$found_dir"; then
5444 if test -z "$haveit"; then
5445 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5447 if test "$hardcode_minus_L" != no; then
5448 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5450 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5456 if test "X$found_a" != "X"; then
5457 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5459 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5462 additional_includedir=
5463 case "$found_dir" in
5465 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
5466 additional_includedir="$basedir/include"
5469 if test "X$additional_includedir" != "X"; then
5470 if test "X$additional_includedir" != "X/usr/include"; then
5472 if test "X$additional_includedir" = "X/usr/local/include"; then
5473 if test -n "$GCC"; then
5475 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5479 if test -z "$haveit"; then
5480 for x in $CPPFLAGS $INCICONV; do
5482 acl_save_prefix="$prefix"
5483 prefix="$acl_final_prefix"
5484 acl_save_exec_prefix="$exec_prefix"
5485 exec_prefix="$acl_final_exec_prefix"
5487 exec_prefix="$acl_save_exec_prefix"
5488 prefix="$acl_save_prefix"
5490 if test "X$x" = "X-I$additional_includedir"; then
5495 if test -z "$haveit"; then
5496 if test -d "$additional_includedir"; then
5497 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5503 if test -n "$found_la"; then
5504 save_libdir="$libdir"
5506 */* | *\\*) . "$found_la" ;;
5507 *) . "./$found_la" ;;
5509 libdir="$save_libdir"
5510 for dep in $dependency_libs; do
5513 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5514 if test "X$additional_libdir" != "X/usr/lib"; then
5516 if test "X$additional_libdir" = "X/usr/local/lib"; then
5517 if test -n "$GCC"; then
5519 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5523 if test -z "$haveit"; then
5525 for x in $LDFLAGS $LIBICONV; do
5527 acl_save_prefix="$prefix"
5528 prefix="$acl_final_prefix"
5529 acl_save_exec_prefix="$exec_prefix"
5530 exec_prefix="$acl_final_exec_prefix"
5532 exec_prefix="$acl_save_exec_prefix"
5533 prefix="$acl_save_prefix"
5535 if test "X$x" = "X-L$additional_libdir"; then
5540 if test -z "$haveit"; then
5541 if test -d "$additional_libdir"; then
5542 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5546 for x in $LDFLAGS $LTLIBICONV; do
5548 acl_save_prefix="$prefix"
5549 prefix="$acl_final_prefix"
5550 acl_save_exec_prefix="$exec_prefix"
5551 exec_prefix="$acl_final_exec_prefix"
5553 exec_prefix="$acl_save_exec_prefix"
5554 prefix="$acl_save_prefix"
5556 if test "X$x" = "X-L$additional_libdir"; then
5561 if test -z "$haveit"; then
5562 if test -d "$additional_libdir"; then
5563 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5570 dir=`echo "X$dep" | sed -e 's/^X-R//'`
5571 if test "$enable_rpath" != no; then
5573 for x in $rpathdirs; do
5574 if test "X$x" = "X$dir"; then
5579 if test -z "$haveit"; then
5580 rpathdirs="$rpathdirs $dir"
5583 for x in $ltrpathdirs; do
5584 if test "X$x" = "X$dir"; then
5589 if test -z "$haveit"; then
5590 ltrpathdirs="$ltrpathdirs $dir"
5595 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5598 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5601 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5602 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5608 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5609 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5615 if test "X$rpathdirs" != "X"; then
5616 if test -n "$hardcode_libdir_separator"; then
5618 for found_dir in $rpathdirs; do
5619 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
5621 acl_save_libdir="$libdir"
5623 eval flag=\"$hardcode_libdir_flag_spec\"
5624 libdir="$acl_save_libdir"
5625 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5627 for found_dir in $rpathdirs; do
5628 acl_save_libdir="$libdir"
5630 eval flag=\"$hardcode_libdir_flag_spec\"
5631 libdir="$acl_save_libdir"
5632 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5636 if test "X$ltrpathdirs" != "X"; then
5637 for found_dir in $ltrpathdirs; do
5638 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5659 echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
5660 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6
5661 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
5662 echo $ECHO_N "(cached) $ECHO_C" >&6
5664 gt_save_CPPFLAGS="$CPPFLAGS"
5665 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
5666 gt_save_LIBS="$LIBS"
5667 LIBS="$LIBS -framework CoreFoundation"
5668 cat >conftest.$ac_ext <<_ACEOF
5671 cat confdefs.h >>conftest.$ac_ext
5672 cat >>conftest.$ac_ext <<_ACEOF
5673 /* end confdefs.h. */
5674 #include <CFPreferences.h>
5678 CFPreferencesCopyAppValue(NULL, NULL)
5683 rm -f conftest.$ac_objext conftest$ac_exeext
5684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5685 (eval $ac_link) 2>conftest.er1
5687 grep -v '^ *+' conftest.er1 >conftest.err
5689 cat conftest.err >&5
5690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691 (exit $ac_status); } &&
5692 { ac_try='test -z "$ac_c_werror_flag"
5693 || test ! -s conftest.err'
5694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698 (exit $ac_status); }; } &&
5699 { ac_try='test -s conftest$ac_exeext'
5700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704 (exit $ac_status); }; }; then
5705 gt_cv_func_CFPreferencesCopyAppValue=yes
5707 echo "$as_me: failed program was:" >&5
5708 sed 's/^/| /' conftest.$ac_ext >&5
5710 gt_cv_func_CFPreferencesCopyAppValue=no
5712 rm -f conftest.err conftest.$ac_objext \
5713 conftest$ac_exeext conftest.$ac_ext
5714 CPPFLAGS="$gt_save_CPPFLAGS"
5715 LIBS="$gt_save_LIBS"
5717 echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
5718 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6
5719 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
5721 cat >>confdefs.h <<\_ACEOF
5722 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
5726 echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
5727 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6
5728 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
5729 echo $ECHO_N "(cached) $ECHO_C" >&6
5731 gt_save_CPPFLAGS="$CPPFLAGS"
5732 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
5733 gt_save_LIBS="$LIBS"
5734 LIBS="$LIBS -framework CoreFoundation"
5735 cat >conftest.$ac_ext <<_ACEOF
5738 cat confdefs.h >>conftest.$ac_ext
5739 cat >>conftest.$ac_ext <<_ACEOF
5740 /* end confdefs.h. */
5741 #include <CFLocale.h>
5745 CFLocaleCopyCurrent();
5750 rm -f conftest.$ac_objext conftest$ac_exeext
5751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5752 (eval $ac_link) 2>conftest.er1
5754 grep -v '^ *+' conftest.er1 >conftest.err
5756 cat conftest.err >&5
5757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758 (exit $ac_status); } &&
5759 { ac_try='test -z "$ac_c_werror_flag"
5760 || test ! -s conftest.err'
5761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5765 (exit $ac_status); }; } &&
5766 { ac_try='test -s conftest$ac_exeext'
5767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771 (exit $ac_status); }; }; then
5772 gt_cv_func_CFLocaleCopyCurrent=yes
5774 echo "$as_me: failed program was:" >&5
5775 sed 's/^/| /' conftest.$ac_ext >&5
5777 gt_cv_func_CFLocaleCopyCurrent=no
5779 rm -f conftest.err conftest.$ac_objext \
5780 conftest$ac_exeext conftest.$ac_ext
5781 CPPFLAGS="$gt_save_CPPFLAGS"
5782 LIBS="$gt_save_LIBS"
5784 echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
5785 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6
5786 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5788 cat >>confdefs.h <<\_ACEOF
5789 #define HAVE_CFLOCALECOPYCURRENT 1
5794 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5795 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
5801 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5802 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5803 # Check whether --enable-nls or --disable-nls was given.
5804 if test "${enable_nls+set}" = set; then
5805 enableval="$enable_nls"
5810 echo "$as_me:$LINENO: result: $USE_NLS" >&5
5811 echo "${ECHO_T}$USE_NLS" >&6
5820 if test "$USE_NLS" = "yes"; then
5821 gt_use_preinstalled_gnugettext=no
5828 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
5829 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
5830 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
5831 echo $ECHO_N "(cached) $ECHO_C" >&6
5833 cat >conftest.$ac_ext <<_ACEOF
5836 cat confdefs.h >>conftest.$ac_ext
5837 cat >>conftest.$ac_ext <<_ACEOF
5838 /* end confdefs.h. */
5839 #include <libintl.h>
5840 extern int _nl_msg_cat_cntr;
5841 extern int *_nl_domain_bindings;
5845 bindtextdomain ("", "");
5846 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
5851 rm -f conftest.$ac_objext conftest$ac_exeext
5852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5853 (eval $ac_link) 2>conftest.er1
5855 grep -v '^ *+' conftest.er1 >conftest.err
5857 cat conftest.err >&5
5858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859 (exit $ac_status); } &&
5860 { ac_try='test -z "$ac_c_werror_flag"
5861 || test ! -s conftest.err'
5862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5866 (exit $ac_status); }; } &&
5867 { ac_try='test -s conftest$ac_exeext'
5868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872 (exit $ac_status); }; }; then
5873 gt_cv_func_gnugettext1_libc=yes
5875 echo "$as_me: failed program was:" >&5
5876 sed 's/^/| /' conftest.$ac_ext >&5
5878 gt_cv_func_gnugettext1_libc=no
5880 rm -f conftest.err conftest.$ac_objext \
5881 conftest$ac_exeext conftest.$ac_ext
5883 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
5884 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
5886 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
5892 am_save_CPPFLAGS="$CPPFLAGS"
5894 for element in $INCICONV; do
5896 for x in $CPPFLAGS; do
5898 acl_save_prefix="$prefix"
5899 prefix="$acl_final_prefix"
5900 acl_save_exec_prefix="$exec_prefix"
5901 exec_prefix="$acl_final_exec_prefix"
5903 exec_prefix="$acl_save_exec_prefix"
5904 prefix="$acl_save_prefix"
5906 if test "X$x" = "X$element"; then
5911 if test -z "$haveit"; then
5912 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5917 echo "$as_me:$LINENO: checking for iconv" >&5
5918 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
5919 if test "${am_cv_func_iconv+set}" = set; then
5920 echo $ECHO_N "(cached) $ECHO_C" >&6
5923 am_cv_func_iconv="no, consider installing GNU libiconv"
5925 cat >conftest.$ac_ext <<_ACEOF
5928 cat confdefs.h >>conftest.$ac_ext
5929 cat >>conftest.$ac_ext <<_ACEOF
5930 /* end confdefs.h. */
5936 iconv_t cd = iconv_open("","");
5937 iconv(cd,NULL,NULL,NULL,NULL);
5943 rm -f conftest.$ac_objext conftest$ac_exeext
5944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5945 (eval $ac_link) 2>conftest.er1
5947 grep -v '^ *+' conftest.er1 >conftest.err
5949 cat conftest.err >&5
5950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951 (exit $ac_status); } &&
5952 { ac_try='test -z "$ac_c_werror_flag"
5953 || test ! -s conftest.err'
5954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958 (exit $ac_status); }; } &&
5959 { ac_try='test -s conftest$ac_exeext'
5960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5964 (exit $ac_status); }; }; then
5965 am_cv_func_iconv=yes
5967 echo "$as_me: failed program was:" >&5
5968 sed 's/^/| /' conftest.$ac_ext >&5
5971 rm -f conftest.err conftest.$ac_objext \
5972 conftest$ac_exeext conftest.$ac_ext
5973 if test "$am_cv_func_iconv" != yes; then
5974 am_save_LIBS="$LIBS"
5975 LIBS="$LIBS $LIBICONV"
5976 cat >conftest.$ac_ext <<_ACEOF
5979 cat confdefs.h >>conftest.$ac_ext
5980 cat >>conftest.$ac_ext <<_ACEOF
5981 /* end confdefs.h. */
5987 iconv_t cd = iconv_open("","");
5988 iconv(cd,NULL,NULL,NULL,NULL);
5994 rm -f conftest.$ac_objext conftest$ac_exeext
5995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5996 (eval $ac_link) 2>conftest.er1
5998 grep -v '^ *+' conftest.er1 >conftest.err
6000 cat conftest.err >&5
6001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002 (exit $ac_status); } &&
6003 { ac_try='test -z "$ac_c_werror_flag"
6004 || test ! -s conftest.err'
6005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009 (exit $ac_status); }; } &&
6010 { ac_try='test -s conftest$ac_exeext'
6011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015 (exit $ac_status); }; }; then
6017 am_cv_func_iconv=yes
6019 echo "$as_me: failed program was:" >&5
6020 sed 's/^/| /' conftest.$ac_ext >&5
6023 rm -f conftest.err conftest.$ac_objext \
6024 conftest$ac_exeext conftest.$ac_ext
6025 LIBS="$am_save_LIBS"
6029 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
6030 echo "${ECHO_T}$am_cv_func_iconv" >&6
6031 if test "$am_cv_func_iconv" = yes; then
6033 cat >>confdefs.h <<\_ACEOF
6034 #define HAVE_ICONV 1
6038 if test "$am_cv_lib_iconv" = yes; then
6039 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
6040 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
6041 echo "$as_me:$LINENO: result: $LIBICONV" >&5
6042 echo "${ECHO_T}$LIBICONV" >&6
6044 CPPFLAGS="$am_save_CPPFLAGS"
6056 acl_save_prefix="$prefix"
6057 prefix="$acl_final_prefix"
6058 acl_save_exec_prefix="$exec_prefix"
6059 exec_prefix="$acl_final_exec_prefix"
6061 eval additional_includedir=\"$includedir\"
6062 eval additional_libdir=\"$libdir\"
6064 exec_prefix="$acl_save_exec_prefix"
6065 prefix="$acl_save_prefix"
6068 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
6069 if test "${with_libintl_prefix+set}" = set; then
6070 withval="$with_libintl_prefix"
6072 if test "X$withval" = "Xno"; then
6075 if test "X$withval" = "X"; then
6077 acl_save_prefix="$prefix"
6078 prefix="$acl_final_prefix"
6079 acl_save_exec_prefix="$exec_prefix"
6080 exec_prefix="$acl_final_exec_prefix"
6082 eval additional_includedir=\"$includedir\"
6083 eval additional_libdir=\"$libdir\"
6085 exec_prefix="$acl_save_exec_prefix"
6086 prefix="$acl_save_prefix"
6089 additional_includedir="$withval/include"
6090 additional_libdir="$withval/lib"
6100 names_already_handled=
6101 names_next_round='intl '
6102 while test -n "$names_next_round"; do
6103 names_this_round="$names_next_round"
6105 for name in $names_this_round; do
6107 for n in $names_already_handled; do
6108 if test "$n" = "$name"; then
6113 if test -z "$already_handled"; then
6114 names_already_handled="$names_already_handled $name"
6115 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6116 eval value=\"\$HAVE_LIB$uppername\"
6117 if test -n "$value"; then
6118 if test "$value" = yes; then
6119 eval value=\"\$LIB$uppername\"
6120 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
6121 eval value=\"\$LTLIB$uppername\"
6122 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
6131 if test $use_additional = yes; then
6132 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6133 found_dir="$additional_libdir"
6134 found_so="$additional_libdir/lib$name.$shlibext"
6135 if test -f "$additional_libdir/lib$name.la"; then
6136 found_la="$additional_libdir/lib$name.la"
6139 if test -f "$additional_libdir/lib$name.$libext"; then
6140 found_dir="$additional_libdir"
6141 found_a="$additional_libdir/lib$name.$libext"
6142 if test -f "$additional_libdir/lib$name.la"; then
6143 found_la="$additional_libdir/lib$name.la"
6148 if test "X$found_dir" = "X"; then
6149 for x in $LDFLAGS $LTLIBINTL; do
6151 acl_save_prefix="$prefix"
6152 prefix="$acl_final_prefix"
6153 acl_save_exec_prefix="$exec_prefix"
6154 exec_prefix="$acl_final_exec_prefix"
6156 exec_prefix="$acl_save_exec_prefix"
6157 prefix="$acl_save_prefix"
6161 dir=`echo "X$x" | sed -e 's/^X-L//'`
6162 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6164 found_so="$dir/lib$name.$shlibext"
6165 if test -f "$dir/lib$name.la"; then
6166 found_la="$dir/lib$name.la"
6169 if test -f "$dir/lib$name.$libext"; then
6171 found_a="$dir/lib$name.$libext"
6172 if test -f "$dir/lib$name.la"; then
6173 found_la="$dir/lib$name.la"
6179 if test "X$found_dir" != "X"; then
6184 if test "X$found_dir" != "X"; then
6185 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6186 if test "X$found_so" != "X"; then
6187 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6188 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6191 for x in $ltrpathdirs; do
6192 if test "X$x" = "X$found_dir"; then
6197 if test -z "$haveit"; then
6198 ltrpathdirs="$ltrpathdirs $found_dir"
6200 if test "$hardcode_direct" = yes; then
6201 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6203 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6204 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6206 for x in $rpathdirs; do
6207 if test "X$x" = "X$found_dir"; then
6212 if test -z "$haveit"; then
6213 rpathdirs="$rpathdirs $found_dir"
6217 for x in $LDFLAGS $LIBINTL; do
6219 acl_save_prefix="$prefix"
6220 prefix="$acl_final_prefix"
6221 acl_save_exec_prefix="$exec_prefix"
6222 exec_prefix="$acl_final_exec_prefix"
6224 exec_prefix="$acl_save_exec_prefix"
6225 prefix="$acl_save_prefix"
6227 if test "X$x" = "X-L$found_dir"; then
6232 if test -z "$haveit"; then
6233 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6235 if test "$hardcode_minus_L" != no; then
6236 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6238 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6244 if test "X$found_a" != "X"; then
6245 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
6247 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
6250 additional_includedir=
6251 case "$found_dir" in
6253 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6254 additional_includedir="$basedir/include"
6257 if test "X$additional_includedir" != "X"; then
6258 if test "X$additional_includedir" != "X/usr/include"; then
6260 if test "X$additional_includedir" = "X/usr/local/include"; then
6261 if test -n "$GCC"; then
6263 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6267 if test -z "$haveit"; then
6268 for x in $CPPFLAGS $INCINTL; do
6270 acl_save_prefix="$prefix"
6271 prefix="$acl_final_prefix"
6272 acl_save_exec_prefix="$exec_prefix"
6273 exec_prefix="$acl_final_exec_prefix"
6275 exec_prefix="$acl_save_exec_prefix"
6276 prefix="$acl_save_prefix"
6278 if test "X$x" = "X-I$additional_includedir"; then
6283 if test -z "$haveit"; then
6284 if test -d "$additional_includedir"; then
6285 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
6291 if test -n "$found_la"; then
6292 save_libdir="$libdir"
6294 */* | *\\*) . "$found_la" ;;
6295 *) . "./$found_la" ;;
6297 libdir="$save_libdir"
6298 for dep in $dependency_libs; do
6301 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6302 if test "X$additional_libdir" != "X/usr/lib"; then
6304 if test "X$additional_libdir" = "X/usr/local/lib"; then
6305 if test -n "$GCC"; then
6307 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6311 if test -z "$haveit"; then
6313 for x in $LDFLAGS $LIBINTL; do
6315 acl_save_prefix="$prefix"
6316 prefix="$acl_final_prefix"
6317 acl_save_exec_prefix="$exec_prefix"
6318 exec_prefix="$acl_final_exec_prefix"
6320 exec_prefix="$acl_save_exec_prefix"
6321 prefix="$acl_save_prefix"
6323 if test "X$x" = "X-L$additional_libdir"; then
6328 if test -z "$haveit"; then
6329 if test -d "$additional_libdir"; then
6330 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
6334 for x in $LDFLAGS $LTLIBINTL; do
6336 acl_save_prefix="$prefix"
6337 prefix="$acl_final_prefix"
6338 acl_save_exec_prefix="$exec_prefix"
6339 exec_prefix="$acl_final_exec_prefix"
6341 exec_prefix="$acl_save_exec_prefix"
6342 prefix="$acl_save_prefix"
6344 if test "X$x" = "X-L$additional_libdir"; then
6349 if test -z "$haveit"; then
6350 if test -d "$additional_libdir"; then
6351 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
6358 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6359 if test "$enable_rpath" != no; then
6361 for x in $rpathdirs; do
6362 if test "X$x" = "X$dir"; then
6367 if test -z "$haveit"; then
6368 rpathdirs="$rpathdirs $dir"
6371 for x in $ltrpathdirs; do
6372 if test "X$x" = "X$dir"; then
6377 if test -z "$haveit"; then
6378 ltrpathdirs="$ltrpathdirs $dir"
6383 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6386 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6389 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
6390 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
6396 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6397 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
6403 if test "X$rpathdirs" != "X"; then
6404 if test -n "$hardcode_libdir_separator"; then
6406 for found_dir in $rpathdirs; do
6407 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6409 acl_save_libdir="$libdir"
6411 eval flag=\"$hardcode_libdir_flag_spec\"
6412 libdir="$acl_save_libdir"
6413 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6415 for found_dir in $rpathdirs; do
6416 acl_save_libdir="$libdir"
6418 eval flag=\"$hardcode_libdir_flag_spec\"
6419 libdir="$acl_save_libdir"
6420 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6424 if test "X$ltrpathdirs" != "X"; then
6425 for found_dir in $ltrpathdirs; do
6426 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
6430 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
6431 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
6432 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
6433 echo $ECHO_N "(cached) $ECHO_C" >&6
6435 gt_save_CPPFLAGS="$CPPFLAGS"
6436 CPPFLAGS="$CPPFLAGS $INCINTL"
6437 gt_save_LIBS="$LIBS"
6438 LIBS="$LIBS $LIBINTL"
6439 cat >conftest.$ac_ext <<_ACEOF
6442 cat confdefs.h >>conftest.$ac_ext
6443 cat >>conftest.$ac_ext <<_ACEOF
6444 /* end confdefs.h. */
6445 #include <libintl.h>
6446 extern int _nl_msg_cat_cntr;
6451 const char *_nl_expand_alias (const char *);
6455 bindtextdomain ("", "");
6456 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6461 rm -f conftest.$ac_objext conftest$ac_exeext
6462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6463 (eval $ac_link) 2>conftest.er1
6465 grep -v '^ *+' conftest.er1 >conftest.err
6467 cat conftest.err >&5
6468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6469 (exit $ac_status); } &&
6470 { ac_try='test -z "$ac_c_werror_flag"
6471 || test ! -s conftest.err'
6472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476 (exit $ac_status); }; } &&
6477 { ac_try='test -s conftest$ac_exeext'
6478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482 (exit $ac_status); }; }; then
6483 gt_cv_func_gnugettext1_libintl=yes
6485 echo "$as_me: failed program was:" >&5
6486 sed 's/^/| /' conftest.$ac_ext >&5
6488 gt_cv_func_gnugettext1_libintl=no
6490 rm -f conftest.err conftest.$ac_objext \
6491 conftest$ac_exeext conftest.$ac_ext
6492 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
6493 LIBS="$LIBS $LIBICONV"
6494 cat >conftest.$ac_ext <<_ACEOF
6497 cat confdefs.h >>conftest.$ac_ext
6498 cat >>conftest.$ac_ext <<_ACEOF
6499 /* end confdefs.h. */
6500 #include <libintl.h>
6501 extern int _nl_msg_cat_cntr;
6506 const char *_nl_expand_alias (const char *);
6510 bindtextdomain ("", "");
6511 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6516 rm -f conftest.$ac_objext conftest$ac_exeext
6517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6518 (eval $ac_link) 2>conftest.er1
6520 grep -v '^ *+' conftest.er1 >conftest.err
6522 cat conftest.err >&5
6523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524 (exit $ac_status); } &&
6525 { ac_try='test -z "$ac_c_werror_flag"
6526 || test ! -s conftest.err'
6527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6531 (exit $ac_status); }; } &&
6532 { ac_try='test -s conftest$ac_exeext'
6533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6537 (exit $ac_status); }; }; then
6538 LIBINTL="$LIBINTL $LIBICONV"
6539 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
6540 gt_cv_func_gnugettext1_libintl=yes
6543 echo "$as_me: failed program was:" >&5
6544 sed 's/^/| /' conftest.$ac_ext >&5
6547 rm -f conftest.err conftest.$ac_objext \
6548 conftest$ac_exeext conftest.$ac_ext
6550 CPPFLAGS="$gt_save_CPPFLAGS"
6551 LIBS="$gt_save_LIBS"
6553 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
6554 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
6557 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
6558 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
6559 && test "$PACKAGE" != gettext-runtime \
6560 && test "$PACKAGE" != gettext-tools; }; then
6561 gt_use_preinstalled_gnugettext=yes
6570 if test -n "$INTL_MACOSX_LIBS"; then
6571 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6572 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6573 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
6574 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
6578 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6579 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6581 cat >>confdefs.h <<\_ACEOF
6582 #define ENABLE_NLS 1
6590 echo "$as_me:$LINENO: checking whether to use NLS" >&5
6591 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
6592 echo "$as_me:$LINENO: result: $USE_NLS" >&5
6593 echo "${ECHO_T}$USE_NLS" >&6
6594 if test "$USE_NLS" = "yes"; then
6595 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
6596 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
6597 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6598 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6599 gt_source="external libintl"
6604 gt_source="included intl directory"
6606 echo "$as_me:$LINENO: result: $gt_source" >&5
6607 echo "${ECHO_T}$gt_source" >&6
6610 if test "$USE_NLS" = "yes"; then
6612 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6613 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6614 echo "$as_me:$LINENO: checking how to link with libintl" >&5
6615 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
6616 echo "$as_me:$LINENO: result: $LIBINTL" >&5
6617 echo "${ECHO_T}$LIBINTL" >&6
6619 for element in $INCINTL; do
6621 for x in $CPPFLAGS; do
6623 acl_save_prefix="$prefix"
6624 prefix="$acl_final_prefix"
6625 acl_save_exec_prefix="$exec_prefix"
6626 exec_prefix="$acl_final_exec_prefix"
6628 exec_prefix="$acl_save_exec_prefix"
6629 prefix="$acl_save_prefix"
6631 if test "X$x" = "X$element"; then
6636 if test -z "$haveit"; then
6637 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6644 cat >>confdefs.h <<\_ACEOF
6645 #define HAVE_GETTEXT 1
6649 cat >>confdefs.h <<\_ACEOF
6650 #define HAVE_DCGETTEXT 1
6667 if test x${prefix} = xNONE && test x${datadir} = x${prefix}/share ; then
6671 # ------------------------------------------------------------------
6672 # If the user has not set --prefix, we set our default to nothing.
6673 # In this case, if the user has not set --sysconfdir, we set it
6674 # to the package default of /etc/bacula. If either --prefix or
6675 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
6676 # ------------------------------------------------------------------
6677 if test x${prefix} = xNONE ; then
6678 if test `eval echo ${sysconfdir}` = NONE/etc ; then
6679 sysconfdir=/etc/bacula
6683 sysconfdir=`eval echo ${sysconfdir}`
6684 datadir=`eval echo ${datadir}`
6685 localedir=`eval echo ${datadir}/locale`
6686 cat >>confdefs.h <<_ACEOF
6687 #define LOCALEDIR "$localedir"
6691 # -------------------------------------------------------------------------
6692 # If the user has not set --exec-prefix, we default to ${prefix}
6693 # -------------------------------------------------------------------------
6694 if test x${exec_prefix} = xNONE ; then
6695 exec_prefix=${prefix}
6698 # ------------------------------------------------------------------
6699 # If the user has not set --sbindir, we set our default as /sbin
6700 # ------------------------------------------------------------------
6701 if test x$sbindir = x'${exec_prefix}/sbin' ; then
6702 sbindir=${exec_prefix}/sbin
6704 sbindir=`eval echo ${sbindir}`
6706 # -------------------------------------------------------------------------
6707 # If the user has not set --mandir, we default to /usr/share/man
6708 # -------------------------------------------------------------------------
6709 if test x$mandir = x'${prefix}/man' ; then
6710 mandir=/usr/share/man
6714 # ------------------------------------------------------------------
6715 # All list of languages for which a translation exist. Each
6716 # language is separated by a space.
6717 # ------------------------------------------------------------------
6720 for ac_prog in msgfmt
6722 # Extract the first word of "$ac_prog", so it can be a program name with args.
6723 set dummy $ac_prog; ac_word=$2
6724 echo "$as_me:$LINENO: checking for $ac_word" >&5
6725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6726 if test "${ac_cv_path_MSGFMT+set}" = set; then
6727 echo $ECHO_N "(cached) $ECHO_C" >&6
6731 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6738 test -z "$as_dir" && as_dir=.
6739 for ac_exec_ext in '' $ac_executable_extensions; do
6740 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6741 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
6742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6751 MSGFMT=$ac_cv_path_MSGFMT
6753 if test -n "$MSGFMT"; then
6754 echo "$as_me:$LINENO: result: $MSGFMT" >&5
6755 echo "${ECHO_T}$MSGFMT" >&6
6757 echo "$as_me:$LINENO: result: no" >&5
6758 echo "${ECHO_T}no" >&6
6761 test -n "$MSGFMT" && break
6763 test -n "$MSGFMT" || MSGFMT="no"
6765 if test "$MSGFMT" = "no"
6767 echo 'msgfmt program not found, disabling NLS !'
6769 USE_INCLUDED_LIBINTL=no
6778 support_postgresql=no
6779 support_smartalloc=yes
6780 support_readline=yes
6783 support_wx_console=no
6787 support_static_tools=no
6788 support_static_fd=no
6789 support_static_sd=no
6790 support_static_dir=no
6791 support_static_cons=no
6793 build_client_only=no
6799 # -------------------------------------------
6800 # gnome (default off)
6801 # -------------------------------------------
6802 # Check whether --enable-gnome or --disable-gnome was given.
6803 if test "${enable_gnome+set}" = set; then
6804 enableval="$enable_gnome"
6805 if test x$enableval = xyes; then
6811 if test x$support_gnome = xyes; then
6812 abc=`$PKGCONFIG --exists libgnomeui-2.0`
6814 if test $pkg = 0; then
6815 GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
6816 GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
6817 GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
6818 GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
6823 GNOME_DIR=src/gnome2-console
6824 gnome_version="Version 2.x"
6826 { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
6827 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
6828 { (exit 1); exit 1; }; }
6834 # -------------------------------------------
6835 # wx-console (default off)
6836 # -------------------------------------------
6837 # Check whether --enable-wx-console or --disable-wx-console was given.
6838 if test "${enable_wx_console+set}" = set; then
6839 enableval="$enable_wx_console"
6840 if test x$enableval = xyes; then
6841 support_wx_console=yes
6846 if test x$support_wx_console = xyes; then
6847 abc=`$WXCONFIG $WXFLAGS --cppflags`
6849 if test $pkg = 0; then
6850 wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
6851 WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
6852 WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
6856 WX_DIR=src/wx-console
6859 echo "wx-config program not found. wx-console disabled."
6861 support_wx_console=no
6867 # -------------------------------------------
6868 # tray-monitor (default off)
6869 # -------------------------------------------
6870 # Check whether --enable-tray-monitor or --disable-tray-monitor was given.
6871 if test "${enable_tray_monitor+set}" = set; then
6872 enableval="$enable_tray_monitor"
6873 if test x$enableval = xyes; then
6874 support_tray_monitor=yes
6879 if test x$support_tray_monitor = xyes; then
6880 abc=`$PKGCONFIG --exists gtk+-2.0`
6882 if test $pkg = 0; then
6883 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
6884 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
6887 TRAY_MONITOR_DIR=src/tray-monitor
6888 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
6890 if test $pkg = 0; then
6891 cat >>confdefs.h <<\_ACEOF
6892 #define HAVE_GTK_2_4 1
6900 # -------------------------------------------
6901 # smartalloc (default off)
6902 # -------------------------------------------
6903 # Check whether --enable-smartalloc or --disable-smartalloc was given.
6904 if test "${enable_smartalloc+set}" = set; then
6905 enableval="$enable_smartalloc"
6906 if test x$enableval = xno; then
6907 support_smartalloc=no
6911 if test x$support_smartalloc = xyes; then
6912 cat >>confdefs.h <<\_ACEOF
6913 #define SMARTALLOC 1
6918 # -------------------------------------------
6919 # static-tools (default off)
6920 # -------------------------------------------
6921 # Check whether --enable-static-tools or --disable-static-tools was given.
6922 if test "${enable_static_tools+set}" = set; then
6923 enableval="$enable_static_tools"
6924 if test x$enableval = xyes; then
6925 support_static_tools=yes
6930 if test x$support_static_tools = xyes; then
6931 TTOOL_LDFLAGS="-static"
6935 # -------------------------------------------
6936 # static-fd (default off)
6937 # -------------------------------------------
6938 # Check whether --enable-static-fd or --disable-static-fd was given.
6939 if test "${enable_static_fd+set}" = set; then
6940 enableval="$enable_static_fd"
6941 if test x$enableval = xyes; then
6942 support_static_fd=yes
6947 if test x$support_static_fd = xyes; then
6948 STATIC_FD="static-bacula-fd"
6952 # -------------------------------------------
6953 # static-sd (default off)
6954 # -------------------------------------------
6955 # Check whether --enable-static-sd or --disable-static-sd was given.
6956 if test "${enable_static_sd+set}" = set; then
6957 enableval="$enable_static_sd"
6958 if test x$enableval = xyes; then
6959 support_static_sd=yes
6964 if test x$support_static_sd = xyes; then
6965 STATIC_SD="static-bacula-sd"
6969 # -------------------------------------------
6970 # static-dir (default off)
6971 # -------------------------------------------
6972 # Check whether --enable-static-dir or --disable-static-dir was given.
6973 if test "${enable_static_dir+set}" = set; then
6974 enableval="$enable_static_dir"
6975 if test x$enableval = xyes; then
6976 support_static_dir=yes
6981 if test x$support_static_dir = xyes; then
6982 STATIC_DIR="static-bacula-dir"
6986 # -------------------------------------------
6987 # static-cons (default off)
6988 # -------------------------------------------
6989 # Check whether --enable-static-cons or --disable-static-cons was given.
6990 if test "${enable_static_cons+set}" = set; then
6991 enableval="$enable_static_cons"
6992 if test x$enableval = xyes; then
6993 support_static_cons=yes
7000 if test x$support_static_cons = xyes; then
7001 STATIC_CONS="static-bconsole"
7002 STATIC_GNOME_CONS="static-gnome-console"
7003 STATIC_WX_CONS="static-wx-console"
7009 # -------------------------------------------
7010 # client_only (default off)
7011 # -------------------------------------------
7012 # Check whether --enable-client-only or --disable-client-only was given.
7013 if test "${enable_client_only+set}" = set; then
7014 enableval="$enable_client_only"
7015 if test x$enableval = xyes; then
7016 build_client_only=yes
7021 if test x$build_client_only = xno; then
7028 # ---------------------------------------------------
7029 # Check for conio (Bacula readline substitute)(
7030 # ---------------------------------------------------
7031 # this allows you to turn it completely off
7032 # Check whether --enable-conio or --disable-conio was given.
7033 if test "${enable_conio+set}" = set; then
7034 enableval="$enable_conio"
7035 if test x$enableval = xno; then
7041 if test x$support_conio = xyes; then
7042 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7043 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7044 if test "${ac_cv_header_stdc+set}" = set; then
7045 echo $ECHO_N "(cached) $ECHO_C" >&6
7047 cat >conftest.$ac_ext <<_ACEOF
7050 cat confdefs.h >>conftest.$ac_ext
7051 cat >>conftest.$ac_ext <<_ACEOF
7052 /* end confdefs.h. */
7066 rm -f conftest.$ac_objext
7067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7068 (eval $ac_compile) 2>conftest.er1
7070 grep -v '^ *+' conftest.er1 >conftest.err
7072 cat conftest.err >&5
7073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7074 (exit $ac_status); } &&
7075 { ac_try='test -z "$ac_c_werror_flag"
7076 || test ! -s conftest.err'
7077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7081 (exit $ac_status); }; } &&
7082 { ac_try='test -s conftest.$ac_objext'
7083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7087 (exit $ac_status); }; }; then
7088 ac_cv_header_stdc=yes
7090 echo "$as_me: failed program was:" >&5
7091 sed 's/^/| /' conftest.$ac_ext >&5
7093 ac_cv_header_stdc=no
7095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7097 if test $ac_cv_header_stdc = yes; then
7098 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7099 cat >conftest.$ac_ext <<_ACEOF
7102 cat confdefs.h >>conftest.$ac_ext
7103 cat >>conftest.$ac_ext <<_ACEOF
7104 /* end confdefs.h. */
7108 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7109 $EGREP "memchr" >/dev/null 2>&1; then
7112 ac_cv_header_stdc=no
7118 if test $ac_cv_header_stdc = yes; then
7119 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7120 cat >conftest.$ac_ext <<_ACEOF
7123 cat confdefs.h >>conftest.$ac_ext
7124 cat >>conftest.$ac_ext <<_ACEOF
7125 /* end confdefs.h. */
7129 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7130 $EGREP "free" >/dev/null 2>&1; then
7133 ac_cv_header_stdc=no
7139 if test $ac_cv_header_stdc = yes; then
7140 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7141 if test "$cross_compiling" = yes; then
7144 cat >conftest.$ac_ext <<_ACEOF
7147 cat confdefs.h >>conftest.$ac_ext
7148 cat >>conftest.$ac_ext <<_ACEOF
7149 /* end confdefs.h. */
7151 #if ((' ' & 0x0FF) == 0x020)
7152 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7153 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7155 # define ISLOWER(c) \
7156 (('a' <= (c) && (c) <= 'i') \
7157 || ('j' <= (c) && (c) <= 'r') \
7158 || ('s' <= (c) && (c) <= 'z'))
7159 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7162 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7167 for (i = 0; i < 256; i++)
7168 if (XOR (islower (i), ISLOWER (i))
7169 || toupper (i) != TOUPPER (i))
7174 rm -f conftest$ac_exeext
7175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7176 (eval $ac_link) 2>&5
7178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7179 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7184 (exit $ac_status); }; }; then
7187 echo "$as_me: program exited with status $ac_status" >&5
7188 echo "$as_me: failed program was:" >&5
7189 sed 's/^/| /' conftest.$ac_ext >&5
7192 ac_cv_header_stdc=no
7194 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7198 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7199 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7200 if test $ac_cv_header_stdc = yes; then
7202 cat >>confdefs.h <<\_ACEOF
7203 #define STDC_HEADERS 1
7208 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7218 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7219 inttypes.h stdint.h unistd.h
7221 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7222 echo "$as_me:$LINENO: checking for $ac_header" >&5
7223 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7224 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7225 echo $ECHO_N "(cached) $ECHO_C" >&6
7227 cat >conftest.$ac_ext <<_ACEOF
7230 cat confdefs.h >>conftest.$ac_ext
7231 cat >>conftest.$ac_ext <<_ACEOF
7232 /* end confdefs.h. */
7233 $ac_includes_default
7235 #include <$ac_header>
7237 rm -f conftest.$ac_objext
7238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7239 (eval $ac_compile) 2>conftest.er1
7241 grep -v '^ *+' conftest.er1 >conftest.err
7243 cat conftest.err >&5
7244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7245 (exit $ac_status); } &&
7246 { ac_try='test -z "$ac_c_werror_flag"
7247 || test ! -s conftest.err'
7248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7252 (exit $ac_status); }; } &&
7253 { ac_try='test -s conftest.$ac_objext'
7254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7258 (exit $ac_status); }; }; then
7259 eval "$as_ac_Header=yes"
7261 echo "$as_me: failed program was:" >&5
7262 sed 's/^/| /' conftest.$ac_ext >&5
7264 eval "$as_ac_Header=no"
7266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7268 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7269 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7270 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7271 cat >>confdefs.h <<_ACEOF
7272 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7280 if test "${ac_cv_header_termcap_h+set}" = set; then
7281 echo "$as_me:$LINENO: checking for termcap.h" >&5
7282 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
7283 if test "${ac_cv_header_termcap_h+set}" = set; then
7284 echo $ECHO_N "(cached) $ECHO_C" >&6
7286 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
7287 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
7289 # Is the header compilable?
7290 echo "$as_me:$LINENO: checking termcap.h usability" >&5
7291 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
7292 cat >conftest.$ac_ext <<_ACEOF
7295 cat confdefs.h >>conftest.$ac_ext
7296 cat >>conftest.$ac_ext <<_ACEOF
7297 /* end confdefs.h. */
7298 $ac_includes_default
7299 #include <termcap.h>
7301 rm -f conftest.$ac_objext
7302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7303 (eval $ac_compile) 2>conftest.er1
7305 grep -v '^ *+' conftest.er1 >conftest.err
7307 cat conftest.err >&5
7308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7309 (exit $ac_status); } &&
7310 { ac_try='test -z "$ac_c_werror_flag"
7311 || test ! -s conftest.err'
7312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7316 (exit $ac_status); }; } &&
7317 { ac_try='test -s conftest.$ac_objext'
7318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7322 (exit $ac_status); }; }; then
7323 ac_header_compiler=yes
7325 echo "$as_me: failed program was:" >&5
7326 sed 's/^/| /' conftest.$ac_ext >&5
7328 ac_header_compiler=no
7330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7331 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7332 echo "${ECHO_T}$ac_header_compiler" >&6
7334 # Is the header present?
7335 echo "$as_me:$LINENO: checking termcap.h presence" >&5
7336 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
7337 cat >conftest.$ac_ext <<_ACEOF
7340 cat confdefs.h >>conftest.$ac_ext
7341 cat >>conftest.$ac_ext <<_ACEOF
7342 /* end confdefs.h. */
7343 #include <termcap.h>
7345 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7346 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7348 grep -v '^ *+' conftest.er1 >conftest.err
7350 cat conftest.err >&5
7351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7352 (exit $ac_status); } >/dev/null; then
7353 if test -s conftest.err; then
7354 ac_cpp_err=$ac_c_preproc_warn_flag
7355 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7362 if test -z "$ac_cpp_err"; then
7363 ac_header_preproc=yes
7365 echo "$as_me: failed program was:" >&5
7366 sed 's/^/| /' conftest.$ac_ext >&5
7368 ac_header_preproc=no
7370 rm -f conftest.err conftest.$ac_ext
7371 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7372 echo "${ECHO_T}$ac_header_preproc" >&6
7374 # So? What about this header?
7375 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7377 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
7378 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7379 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
7380 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
7381 ac_header_preproc=yes
7384 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
7385 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
7386 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
7387 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
7388 { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
7389 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
7390 { echo "$as_me:$LINENO: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&5
7391 echo "$as_me: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
7392 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
7393 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
7394 { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
7395 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
7398 ## ------------------------------------------ ##
7399 ## Report this to the AC_PACKAGE_NAME lists. ##
7400 ## ------------------------------------------ ##
7403 sed "s/^/$as_me: WARNING: /" >&2
7406 echo "$as_me:$LINENO: checking for termcap.h" >&5
7407 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
7408 if test "${ac_cv_header_termcap_h+set}" = set; then
7409 echo $ECHO_N "(cached) $ECHO_C" >&6
7411 ac_cv_header_termcap_h=$ac_header_preproc
7413 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
7414 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
7417 if test $ac_cv_header_termcap_h = yes; then
7418 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
7419 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
7420 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
7421 echo $ECHO_N "(cached) $ECHO_C" >&6
7423 ac_check_lib_save_LIBS=$LIBS
7424 LIBS="-ltermcap $LIBS"
7425 cat >conftest.$ac_ext <<_ACEOF
7428 cat confdefs.h >>conftest.$ac_ext
7429 cat >>conftest.$ac_ext <<_ACEOF
7430 /* end confdefs.h. */
7432 /* Override any gcc2 internal prototype to avoid an error. */
7436 /* We use char because int might match the return type of a gcc2
7437 builtin and then its argument prototype would still apply. */
7447 rm -f conftest.$ac_objext conftest$ac_exeext
7448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7449 (eval $ac_link) 2>conftest.er1
7451 grep -v '^ *+' conftest.er1 >conftest.err
7453 cat conftest.err >&5
7454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7455 (exit $ac_status); } &&
7456 { ac_try='test -z "$ac_c_werror_flag"
7457 || test ! -s conftest.err'
7458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7462 (exit $ac_status); }; } &&
7463 { ac_try='test -s conftest$ac_exeext'
7464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7468 (exit $ac_status); }; }; then
7469 ac_cv_lib_termcap_tgetent=yes
7471 echo "$as_me: failed program was:" >&5
7472 sed 's/^/| /' conftest.$ac_ext >&5
7474 ac_cv_lib_termcap_tgetent=no
7476 rm -f conftest.err conftest.$ac_objext \
7477 conftest$ac_exeext conftest.$ac_ext
7478 LIBS=$ac_check_lib_save_LIBS
7480 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
7481 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
7482 if test $ac_cv_lib_termcap_tgetent = yes; then
7483 CONS_LIBS="-ltermcap"
7489 cat >>confdefs.h <<\_ACEOF
7490 #define HAVE_CONIO 1
7495 echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
7496 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
7497 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
7498 echo $ECHO_N "(cached) $ECHO_C" >&6
7500 ac_check_lib_save_LIBS=$LIBS
7501 LIBS="-lncurses $LIBS"
7502 cat >conftest.$ac_ext <<_ACEOF
7505 cat confdefs.h >>conftest.$ac_ext
7506 cat >>conftest.$ac_ext <<_ACEOF
7507 /* end confdefs.h. */
7509 /* Override any gcc2 internal prototype to avoid an error. */
7513 /* We use char because int might match the return type of a gcc2
7514 builtin and then its argument prototype would still apply. */
7524 rm -f conftest.$ac_objext conftest$ac_exeext
7525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7526 (eval $ac_link) 2>conftest.er1
7528 grep -v '^ *+' conftest.er1 >conftest.err
7530 cat conftest.err >&5
7531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7532 (exit $ac_status); } &&
7533 { ac_try='test -z "$ac_c_werror_flag"
7534 || test ! -s conftest.err'
7535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7539 (exit $ac_status); }; } &&
7540 { ac_try='test -s conftest$ac_exeext'
7541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7545 (exit $ac_status); }; }; then
7546 ac_cv_lib_ncurses_tgetent=yes
7548 echo "$as_me: failed program was:" >&5
7549 sed 's/^/| /' conftest.$ac_ext >&5
7551 ac_cv_lib_ncurses_tgetent=no
7553 rm -f conftest.err conftest.$ac_objext \
7554 conftest$ac_exeext conftest.$ac_ext
7555 LIBS=$ac_check_lib_save_LIBS
7557 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
7558 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
7559 if test $ac_cv_lib_ncurses_tgetent = yes; then
7560 CONS_LIBS="-lncurses"
7566 cat >>confdefs.h <<\_ACEOF
7567 #define HAVE_CONIO 1
7580 for ac_header in curses.h
7582 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7583 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7584 echo "$as_me:$LINENO: checking for $ac_header" >&5
7585 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7586 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7587 echo $ECHO_N "(cached) $ECHO_C" >&6
7589 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7590 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7592 # Is the header compilable?
7593 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7594 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7595 cat >conftest.$ac_ext <<_ACEOF
7598 cat confdefs.h >>conftest.$ac_ext
7599 cat >>conftest.$ac_ext <<_ACEOF
7600 /* end confdefs.h. */
7601 $ac_includes_default
7602 #include <$ac_header>
7604 rm -f conftest.$ac_objext
7605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7606 (eval $ac_compile) 2>conftest.er1
7608 grep -v '^ *+' conftest.er1 >conftest.err
7610 cat conftest.err >&5
7611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7612 (exit $ac_status); } &&
7613 { ac_try='test -z "$ac_c_werror_flag"
7614 || test ! -s conftest.err'
7615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7619 (exit $ac_status); }; } &&
7620 { ac_try='test -s conftest.$ac_objext'
7621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7625 (exit $ac_status); }; }; then
7626 ac_header_compiler=yes
7628 echo "$as_me: failed program was:" >&5
7629 sed 's/^/| /' conftest.$ac_ext >&5
7631 ac_header_compiler=no
7633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7634 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7635 echo "${ECHO_T}$ac_header_compiler" >&6
7637 # Is the header present?
7638 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7639 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7640 cat >conftest.$ac_ext <<_ACEOF
7643 cat confdefs.h >>conftest.$ac_ext
7644 cat >>conftest.$ac_ext <<_ACEOF
7645 /* end confdefs.h. */
7646 #include <$ac_header>
7648 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7649 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7651 grep -v '^ *+' conftest.er1 >conftest.err
7653 cat conftest.err >&5
7654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7655 (exit $ac_status); } >/dev/null; then
7656 if test -s conftest.err; then
7657 ac_cpp_err=$ac_c_preproc_warn_flag
7658 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7665 if test -z "$ac_cpp_err"; then
7666 ac_header_preproc=yes
7668 echo "$as_me: failed program was:" >&5
7669 sed 's/^/| /' conftest.$ac_ext >&5
7671 ac_header_preproc=no
7673 rm -f conftest.err conftest.$ac_ext
7674 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7675 echo "${ECHO_T}$ac_header_preproc" >&6
7677 # So? What about this header?
7678 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7680 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7681 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7682 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7683 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7684 ac_header_preproc=yes
7687 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7688 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7689 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7690 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7691 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7692 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7693 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7694 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7695 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7696 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7697 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7698 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7701 ## ------------------------------------------ ##
7702 ## Report this to the AC_PACKAGE_NAME lists. ##
7703 ## ------------------------------------------ ##
7706 sed "s/^/$as_me: WARNING: /" >&2
7709 echo "$as_me:$LINENO: checking for $ac_header" >&5
7710 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7711 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7712 echo $ECHO_N "(cached) $ECHO_C" >&6
7714 eval "$as_ac_Header=\$ac_header_preproc"
7716 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7717 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7720 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7721 cat >>confdefs.h <<_ACEOF
7722 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7729 echo "$as_me:$LINENO: checking for term.h" >&5
7730 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
7731 if test "${ac_cv_header_term_h+set}" = set; then
7732 echo $ECHO_N "(cached) $ECHO_C" >&6
7734 cat >conftest.$ac_ext <<_ACEOF
7737 cat confdefs.h >>conftest.$ac_ext
7738 cat >>conftest.$ac_ext <<_ACEOF
7739 /* end confdefs.h. */
7747 rm -f conftest.$ac_objext
7748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7749 (eval $ac_compile) 2>conftest.er1
7751 grep -v '^ *+' conftest.er1 >conftest.err
7753 cat conftest.err >&5
7754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7755 (exit $ac_status); } &&
7756 { ac_try='test -z "$ac_c_werror_flag"
7757 || test ! -s conftest.err'
7758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7762 (exit $ac_status); }; } &&
7763 { ac_try='test -s conftest.$ac_objext'
7764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7768 (exit $ac_status); }; }; then
7769 ac_cv_header_term_h=yes
7771 echo "$as_me: failed program was:" >&5
7772 sed 's/^/| /' conftest.$ac_ext >&5
7774 ac_cv_header_term_h=no
7776 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7778 echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
7779 echo "${ECHO_T}$ac_cv_header_term_h" >&6
7780 if test $ac_cv_header_term_h = yes; then
7781 echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
7782 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
7783 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
7784 echo $ECHO_N "(cached) $ECHO_C" >&6
7786 ac_check_lib_save_LIBS=$LIBS
7787 LIBS="-lcurses $LIBS"
7788 cat >conftest.$ac_ext <<_ACEOF
7791 cat confdefs.h >>conftest.$ac_ext
7792 cat >>conftest.$ac_ext <<_ACEOF
7793 /* end confdefs.h. */
7795 /* Override any gcc2 internal prototype to avoid an error. */
7799 /* We use char because int might match the return type of a gcc2
7800 builtin and then its argument prototype would still apply. */
7810 rm -f conftest.$ac_objext conftest$ac_exeext
7811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7812 (eval $ac_link) 2>conftest.er1
7814 grep -v '^ *+' conftest.er1 >conftest.err
7816 cat conftest.err >&5
7817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7818 (exit $ac_status); } &&
7819 { ac_try='test -z "$ac_c_werror_flag"
7820 || test ! -s conftest.err'
7821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825 (exit $ac_status); }; } &&
7826 { ac_try='test -s conftest$ac_exeext'
7827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831 (exit $ac_status); }; }; then
7832 ac_cv_lib_curses_tgetent=yes
7834 echo "$as_me: failed program was:" >&5
7835 sed 's/^/| /' conftest.$ac_ext >&5
7837 ac_cv_lib_curses_tgetent=no
7839 rm -f conftest.err conftest.$ac_objext \
7840 conftest$ac_exeext conftest.$ac_ext
7841 LIBS=$ac_check_lib_save_LIBS
7843 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
7844 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
7845 if test $ac_cv_lib_curses_tgetent = yes; then
7846 CONS_LIBS="-lcurses"
7852 cat >>confdefs.h <<\_ACEOF
7853 #define HAVE_CONIO 1
7861 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
7872 # ---------------------------------------------------
7873 # Check for readline support/directory (default off)
7874 # ---------------------------------------------------
7875 # this allows you to turn it completely off
7876 # Check whether --enable-readline or --disable-readline was given.
7877 if test "${enable_readline+set}" = set; then
7878 enableval="$enable_readline"
7879 if test x$enableval = xno; then
7886 if test x$support_readline = xyes; then
7888 # Check whether --with-readline or --without-readline was given.
7889 if test "${with_readline+set}" = set; then
7890 withval="$with_readline"
7892 case "$with_readline" in
7895 if test -f ${with_readline}/readline.h; then
7896 CONS_INC="-I${with_readline}"
7897 CONS_LDFLAGS="-L$with_readline"
7898 elif test -f ${with_readline}/include/readline/readline.h; then
7899 CONS_INC="-I${with_readline}/include/readline"
7900 CONS_LDFLAGS="-L${with_readline}/lib"
7901 with_readline="${with_readline}/include/readline"
7903 with_readline="/usr/include/readline"
7905 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
7906 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7907 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
7908 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
7909 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7910 echo $ECHO_N "(cached) $ECHO_C" >&6
7912 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7913 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7915 # Is the header compilable?
7916 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
7917 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
7918 cat >conftest.$ac_ext <<_ACEOF
7921 cat confdefs.h >>conftest.$ac_ext
7922 cat >>conftest.$ac_ext <<_ACEOF
7923 /* end confdefs.h. */
7924 $ac_includes_default
7925 #include <${with_readline}/readline.h>
7927 rm -f conftest.$ac_objext
7928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7929 (eval $ac_compile) 2>conftest.er1
7931 grep -v '^ *+' conftest.er1 >conftest.err
7933 cat conftest.err >&5
7934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7935 (exit $ac_status); } &&
7936 { ac_try='test -z "$ac_c_werror_flag"
7937 || test ! -s conftest.err'
7938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7942 (exit $ac_status); }; } &&
7943 { ac_try='test -s conftest.$ac_objext'
7944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7948 (exit $ac_status); }; }; then
7949 ac_header_compiler=yes
7951 echo "$as_me: failed program was:" >&5
7952 sed 's/^/| /' conftest.$ac_ext >&5
7954 ac_header_compiler=no
7956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7957 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7958 echo "${ECHO_T}$ac_header_compiler" >&6
7960 # Is the header present?
7961 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
7962 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
7963 cat >conftest.$ac_ext <<_ACEOF
7966 cat confdefs.h >>conftest.$ac_ext
7967 cat >>conftest.$ac_ext <<_ACEOF
7968 /* end confdefs.h. */
7969 #include <${with_readline}/readline.h>
7971 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7972 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7974 grep -v '^ *+' conftest.er1 >conftest.err
7976 cat conftest.err >&5
7977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978 (exit $ac_status); } >/dev/null; then
7979 if test -s conftest.err; then
7980 ac_cpp_err=$ac_c_preproc_warn_flag
7981 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7988 if test -z "$ac_cpp_err"; then
7989 ac_header_preproc=yes
7991 echo "$as_me: failed program was:" >&5
7992 sed 's/^/| /' conftest.$ac_ext >&5
7994 ac_header_preproc=no
7996 rm -f conftest.err conftest.$ac_ext
7997 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7998 echo "${ECHO_T}$ac_header_preproc" >&6
8000 # So? What about this header?
8001 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8003 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
8004 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8005 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
8006 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
8007 ac_header_preproc=yes
8010 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
8011 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
8012 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
8013 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
8014 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
8015 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
8016 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&5
8017 echo "$as_me: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
8018 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
8019 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
8020 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
8021 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
8024 ## ------------------------------------------ ##
8025 ## Report this to the AC_PACKAGE_NAME lists. ##
8026 ## ------------------------------------------ ##
8029 sed "s/^/$as_me: WARNING: /" >&2
8032 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
8033 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
8034 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8035 echo $ECHO_N "(cached) $ECHO_C" >&6
8037 eval "$as_ac_Header=\$ac_header_preproc"
8039 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8040 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8043 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8044 cat >>confdefs.h <<\_ACEOF
8045 #define HAVE_READLINE 1
8048 CONS_LIBS="-lreadline -lhistory -ltermcap"
8053 echo "readline.h not found. readline turned off ..."
8065 # check for standard readline library
8066 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
8067 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
8068 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
8069 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
8070 echo $ECHO_N "(cached) $ECHO_C" >&6
8072 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
8073 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
8075 # Is the header compilable?
8076 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
8077 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
8078 cat >conftest.$ac_ext <<_ACEOF
8081 cat confdefs.h >>conftest.$ac_ext
8082 cat >>conftest.$ac_ext <<_ACEOF
8083 /* end confdefs.h. */
8084 $ac_includes_default
8085 #include </usr/include/readline/readline.h>
8087 rm -f conftest.$ac_objext
8088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8089 (eval $ac_compile) 2>conftest.er1
8091 grep -v '^ *+' conftest.er1 >conftest.err
8093 cat conftest.err >&5
8094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8095 (exit $ac_status); } &&
8096 { ac_try='test -z "$ac_c_werror_flag"
8097 || test ! -s conftest.err'
8098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8102 (exit $ac_status); }; } &&
8103 { ac_try='test -s conftest.$ac_objext'
8104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8108 (exit $ac_status); }; }; then
8109 ac_header_compiler=yes
8111 echo "$as_me: failed program was:" >&5
8112 sed 's/^/| /' conftest.$ac_ext >&5
8114 ac_header_compiler=no
8116 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8117 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8118 echo "${ECHO_T}$ac_header_compiler" >&6
8120 # Is the header present?
8121 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
8122 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
8123 cat >conftest.$ac_ext <<_ACEOF
8126 cat confdefs.h >>conftest.$ac_ext
8127 cat >>conftest.$ac_ext <<_ACEOF
8128 /* end confdefs.h. */
8129 #include </usr/include/readline/readline.h>
8131 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8132 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8134 grep -v '^ *+' conftest.er1 >conftest.err
8136 cat conftest.err >&5
8137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138 (exit $ac_status); } >/dev/null; then
8139 if test -s conftest.err; then
8140 ac_cpp_err=$ac_c_preproc_warn_flag
8141 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8148 if test -z "$ac_cpp_err"; then
8149 ac_header_preproc=yes
8151 echo "$as_me: failed program was:" >&5
8152 sed 's/^/| /' conftest.$ac_ext >&5
8154 ac_header_preproc=no
8156 rm -f conftest.err conftest.$ac_ext
8157 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8158 echo "${ECHO_T}$ac_header_preproc" >&6
8160 # So? What about this header?
8161 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8163 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
8164 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8165 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
8166 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
8167 ac_header_preproc=yes
8170 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
8171 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
8172 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
8173 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
8174 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
8175 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
8176 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
8177 echo "$as_me: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
8178 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
8179 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
8180 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
8181 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
8184 ## ------------------------------------------ ##
8185 ## Report this to the AC_PACKAGE_NAME lists. ##
8186 ## ------------------------------------------ ##
8189 sed "s/^/$as_me: WARNING: /" >&2
8192 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
8193 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
8194 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
8195 echo $ECHO_N "(cached) $ECHO_C" >&6
8197 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
8199 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
8200 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
8203 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
8204 cat >>confdefs.h <<\_ACEOF
8205 #define HAVE_READLINE 1
8209 CONS_INC="-I/usr/include/readline"
8210 CONS_LIBS="-lreadline -ltermcap"
8214 # Did not find standard library, so try Bacula's default
8215 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
8216 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8217 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
8218 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
8219 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8220 echo $ECHO_N "(cached) $ECHO_C" >&6
8222 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8223 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8225 # Is the header compilable?
8226 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
8227 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
8228 cat >conftest.$ac_ext <<_ACEOF
8231 cat confdefs.h >>conftest.$ac_ext
8232 cat >>conftest.$ac_ext <<_ACEOF
8233 /* end confdefs.h. */
8234 $ac_includes_default
8235 #include <${TOP_DIR}/depkgs/readline/readline.h>
8237 rm -f conftest.$ac_objext
8238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8239 (eval $ac_compile) 2>conftest.er1
8241 grep -v '^ *+' conftest.er1 >conftest.err
8243 cat conftest.err >&5
8244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8245 (exit $ac_status); } &&
8246 { ac_try='test -z "$ac_c_werror_flag"
8247 || test ! -s conftest.err'
8248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8252 (exit $ac_status); }; } &&
8253 { ac_try='test -s conftest.$ac_objext'
8254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8258 (exit $ac_status); }; }; then
8259 ac_header_compiler=yes
8261 echo "$as_me: failed program was:" >&5
8262 sed 's/^/| /' conftest.$ac_ext >&5
8264 ac_header_compiler=no
8266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8267 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8268 echo "${ECHO_T}$ac_header_compiler" >&6
8270 # Is the header present?
8271 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
8272 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
8273 cat >conftest.$ac_ext <<_ACEOF
8276 cat confdefs.h >>conftest.$ac_ext
8277 cat >>conftest.$ac_ext <<_ACEOF
8278 /* end confdefs.h. */
8279 #include <${TOP_DIR}/depkgs/readline/readline.h>
8281 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8282 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8284 grep -v '^ *+' conftest.er1 >conftest.err
8286 cat conftest.err >&5
8287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288 (exit $ac_status); } >/dev/null; then
8289 if test -s conftest.err; then
8290 ac_cpp_err=$ac_c_preproc_warn_flag
8291 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8298 if test -z "$ac_cpp_err"; then
8299 ac_header_preproc=yes
8301 echo "$as_me: failed program was:" >&5
8302 sed 's/^/| /' conftest.$ac_ext >&5
8304 ac_header_preproc=no
8306 rm -f conftest.err conftest.$ac_ext
8307 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8308 echo "${ECHO_T}$ac_header_preproc" >&6
8310 # So? What about this header?
8311 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8313 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
8314 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8315 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
8316 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
8317 ac_header_preproc=yes
8320 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
8321 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
8322 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
8323 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
8324 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
8325 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
8326 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
8327 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
8328 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
8329 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
8330 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
8331 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
8334 ## ------------------------------------------ ##
8335 ## Report this to the AC_PACKAGE_NAME lists. ##
8336 ## ------------------------------------------ ##
8339 sed "s/^/$as_me: WARNING: /" >&2
8342 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
8343 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
8344 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8345 echo $ECHO_N "(cached) $ECHO_C" >&6
8347 eval "$as_ac_Header=\$ac_header_preproc"
8349 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8350 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8353 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8354 cat >>confdefs.h <<\_ACEOF
8355 #define HAVE_READLINE 1
8359 CONS_INC="-I${TOP_DIR}/depkgs/readline"
8360 CONS_LIBS="-lreadline -lhistory -ltermcap"
8361 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
8362 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
8366 echo "readline.h not found. readline turned off ..."
8392 # Minimal stuff for readline Makefile configuration
8395 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
8396 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
8397 if test "${ac_cv_header_stat_broken+set}" = set; then
8398 echo $ECHO_N "(cached) $ECHO_C" >&6
8400 cat >conftest.$ac_ext <<_ACEOF
8403 cat confdefs.h >>conftest.$ac_ext
8404 cat >>conftest.$ac_ext <<_ACEOF
8405 /* end confdefs.h. */
8406 #include <sys/types.h>
8407 #include <sys/stat.h>
8409 #if defined(S_ISBLK) && defined(S_IFDIR)
8410 # if S_ISBLK (S_IFDIR)
8415 #if defined(S_ISBLK) && defined(S_IFCHR)
8416 # if S_ISBLK (S_IFCHR)
8421 #if defined(S_ISLNK) && defined(S_IFREG)
8422 # if S_ISLNK (S_IFREG)
8427 #if defined(S_ISSOCK) && defined(S_IFREG)
8428 # if S_ISSOCK (S_IFREG)
8434 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8435 $EGREP "You lose" >/dev/null 2>&1; then
8436 ac_cv_header_stat_broken=yes
8438 ac_cv_header_stat_broken=no
8443 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
8444 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
8445 if test $ac_cv_header_stat_broken = yes; then
8447 cat >>confdefs.h <<\_ACEOF
8448 #define STAT_MACROS_BROKEN 1
8459 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8460 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8461 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8462 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
8463 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8464 echo $ECHO_N "(cached) $ECHO_C" >&6
8466 cat >conftest.$ac_ext <<_ACEOF
8469 cat confdefs.h >>conftest.$ac_ext
8470 cat >>conftest.$ac_ext <<_ACEOF
8471 /* end confdefs.h. */
8472 #include <sys/types.h>
8484 rm -f conftest.$ac_objext
8485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8486 (eval $ac_compile) 2>conftest.er1
8488 grep -v '^ *+' conftest.er1 >conftest.err
8490 cat conftest.err >&5
8491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492 (exit $ac_status); } &&
8493 { ac_try='test -z "$ac_c_werror_flag"
8494 || test ! -s conftest.err'
8495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499 (exit $ac_status); }; } &&
8500 { ac_try='test -s conftest.$ac_objext'
8501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505 (exit $ac_status); }; }; then
8506 eval "$as_ac_Header=yes"
8508 echo "$as_me: failed program was:" >&5
8509 sed 's/^/| /' conftest.$ac_ext >&5
8511 eval "$as_ac_Header=no"
8513 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8515 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8516 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8517 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8518 cat >>confdefs.h <<_ACEOF
8519 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8522 ac_header_dirent=$ac_hdr; break
8526 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8527 if test $ac_header_dirent = dirent.h; then
8528 echo "$as_me:$LINENO: checking for library containing opendir" >&5
8529 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8530 if test "${ac_cv_search_opendir+set}" = set; then
8531 echo $ECHO_N "(cached) $ECHO_C" >&6
8533 ac_func_search_save_LIBS=$LIBS
8534 ac_cv_search_opendir=no
8535 cat >conftest.$ac_ext <<_ACEOF
8538 cat confdefs.h >>conftest.$ac_ext
8539 cat >>conftest.$ac_ext <<_ACEOF
8540 /* end confdefs.h. */
8542 /* Override any gcc2 internal prototype to avoid an error. */
8546 /* We use char because int might match the return type of a gcc2
8547 builtin and then its argument prototype would still apply. */
8557 rm -f conftest.$ac_objext conftest$ac_exeext
8558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8559 (eval $ac_link) 2>conftest.er1
8561 grep -v '^ *+' conftest.er1 >conftest.err
8563 cat conftest.err >&5
8564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565 (exit $ac_status); } &&
8566 { ac_try='test -z "$ac_c_werror_flag"
8567 || test ! -s conftest.err'
8568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8572 (exit $ac_status); }; } &&
8573 { ac_try='test -s conftest$ac_exeext'
8574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8578 (exit $ac_status); }; }; then
8579 ac_cv_search_opendir="none required"
8581 echo "$as_me: failed program was:" >&5
8582 sed 's/^/| /' conftest.$ac_ext >&5
8585 rm -f conftest.err conftest.$ac_objext \
8586 conftest$ac_exeext conftest.$ac_ext
8587 if test "$ac_cv_search_opendir" = no; then
8588 for ac_lib in dir; do
8589 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8590 cat >conftest.$ac_ext <<_ACEOF
8593 cat confdefs.h >>conftest.$ac_ext
8594 cat >>conftest.$ac_ext <<_ACEOF
8595 /* end confdefs.h. */
8597 /* Override any gcc2 internal prototype to avoid an error. */
8601 /* We use char because int might match the return type of a gcc2
8602 builtin and then its argument prototype would still apply. */
8612 rm -f conftest.$ac_objext conftest$ac_exeext
8613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8614 (eval $ac_link) 2>conftest.er1
8616 grep -v '^ *+' conftest.er1 >conftest.err
8618 cat conftest.err >&5
8619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620 (exit $ac_status); } &&
8621 { ac_try='test -z "$ac_c_werror_flag"
8622 || test ! -s conftest.err'
8623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627 (exit $ac_status); }; } &&
8628 { ac_try='test -s conftest$ac_exeext'
8629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8633 (exit $ac_status); }; }; then
8634 ac_cv_search_opendir="-l$ac_lib"
8637 echo "$as_me: failed program was:" >&5
8638 sed 's/^/| /' conftest.$ac_ext >&5
8641 rm -f conftest.err conftest.$ac_objext \
8642 conftest$ac_exeext conftest.$ac_ext
8645 LIBS=$ac_func_search_save_LIBS
8647 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8648 echo "${ECHO_T}$ac_cv_search_opendir" >&6
8649 if test "$ac_cv_search_opendir" != no; then
8650 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
8655 echo "$as_me:$LINENO: checking for library containing opendir" >&5
8656 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8657 if test "${ac_cv_search_opendir+set}" = set; then
8658 echo $ECHO_N "(cached) $ECHO_C" >&6
8660 ac_func_search_save_LIBS=$LIBS
8661 ac_cv_search_opendir=no
8662 cat >conftest.$ac_ext <<_ACEOF
8665 cat confdefs.h >>conftest.$ac_ext
8666 cat >>conftest.$ac_ext <<_ACEOF
8667 /* end confdefs.h. */
8669 /* Override any gcc2 internal prototype to avoid an error. */
8673 /* We use char because int might match the return type of a gcc2
8674 builtin and then its argument prototype would still apply. */
8684 rm -f conftest.$ac_objext conftest$ac_exeext
8685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8686 (eval $ac_link) 2>conftest.er1
8688 grep -v '^ *+' conftest.er1 >conftest.err
8690 cat conftest.err >&5
8691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692 (exit $ac_status); } &&
8693 { ac_try='test -z "$ac_c_werror_flag"
8694 || test ! -s conftest.err'
8695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8699 (exit $ac_status); }; } &&
8700 { ac_try='test -s conftest$ac_exeext'
8701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8705 (exit $ac_status); }; }; then
8706 ac_cv_search_opendir="none required"
8708 echo "$as_me: failed program was:" >&5
8709 sed 's/^/| /' conftest.$ac_ext >&5
8712 rm -f conftest.err conftest.$ac_objext \
8713 conftest$ac_exeext conftest.$ac_ext
8714 if test "$ac_cv_search_opendir" = no; then
8716 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8717 cat >conftest.$ac_ext <<_ACEOF
8720 cat confdefs.h >>conftest.$ac_ext
8721 cat >>conftest.$ac_ext <<_ACEOF
8722 /* end confdefs.h. */
8724 /* Override any gcc2 internal prototype to avoid an error. */
8728 /* We use char because int might match the return type of a gcc2
8729 builtin and then its argument prototype would still apply. */
8739 rm -f conftest.$ac_objext conftest$ac_exeext
8740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8741 (eval $ac_link) 2>conftest.er1
8743 grep -v '^ *+' conftest.er1 >conftest.err
8745 cat conftest.err >&5
8746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8747 (exit $ac_status); } &&
8748 { ac_try='test -z "$ac_c_werror_flag"
8749 || test ! -s conftest.err'
8750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8754 (exit $ac_status); }; } &&
8755 { ac_try='test -s conftest$ac_exeext'
8756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8760 (exit $ac_status); }; }; then
8761 ac_cv_search_opendir="-l$ac_lib"
8764 echo "$as_me: failed program was:" >&5
8765 sed 's/^/| /' conftest.$ac_ext >&5
8768 rm -f conftest.err conftest.$ac_objext \
8769 conftest$ac_exeext conftest.$ac_ext
8772 LIBS=$ac_func_search_save_LIBS
8774 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8775 echo "${ECHO_T}$ac_cv_search_opendir" >&6
8776 if test "$ac_cv_search_opendir" != no; then
8777 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
8790 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
8792 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8793 echo "$as_me:$LINENO: checking for $ac_func" >&5
8794 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8795 if eval "test \"\${$as_ac_var+set}\" = set"; then
8796 echo $ECHO_N "(cached) $ECHO_C" >&6
8798 cat >conftest.$ac_ext <<_ACEOF
8801 cat confdefs.h >>conftest.$ac_ext
8802 cat >>conftest.$ac_ext <<_ACEOF
8803 /* end confdefs.h. */
8804 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8805 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8806 #define $ac_func innocuous_$ac_func
8808 /* System header to define __stub macros and hopefully few prototypes,
8809 which can conflict with char $ac_func (); below.
8810 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8811 <limits.h> exists even on freestanding compilers. */
8814 # include <limits.h>
8816 # include <assert.h>
8821 /* Override any gcc2 internal prototype to avoid an error. */
8826 /* We use char because int might match the return type of a gcc2
8827 builtin and then its argument prototype would still apply. */
8829 /* The GNU C library defines this for functions which it implements
8830 to always fail with ENOSYS. Some functions are actually named
8831 something starting with __ and the normal name is an alias. */
8832 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8835 char (*f) () = $ac_func;
8844 return f != $ac_func;
8849 rm -f conftest.$ac_objext conftest$ac_exeext
8850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8851 (eval $ac_link) 2>conftest.er1
8853 grep -v '^ *+' conftest.er1 >conftest.err
8855 cat conftest.err >&5
8856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8857 (exit $ac_status); } &&
8858 { ac_try='test -z "$ac_c_werror_flag"
8859 || test ! -s conftest.err'
8860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864 (exit $ac_status); }; } &&
8865 { ac_try='test -s conftest$ac_exeext'
8866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8870 (exit $ac_status); }; }; then
8871 eval "$as_ac_var=yes"
8873 echo "$as_me: failed program was:" >&5
8874 sed 's/^/| /' conftest.$ac_ext >&5
8876 eval "$as_ac_var=no"
8878 rm -f conftest.err conftest.$ac_objext \
8879 conftest$ac_exeext conftest.$ac_ext
8881 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8882 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8883 if test `eval echo '${'$as_ac_var'}'` = yes; then
8884 cat >>confdefs.h <<_ACEOF
8885 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8893 for ac_func in nanosleep nl_langinfo
8895 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8896 echo "$as_me:$LINENO: checking for $ac_func" >&5
8897 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8898 if eval "test \"\${$as_ac_var+set}\" = set"; then
8899 echo $ECHO_N "(cached) $ECHO_C" >&6
8901 cat >conftest.$ac_ext <<_ACEOF
8904 cat confdefs.h >>conftest.$ac_ext
8905 cat >>conftest.$ac_ext <<_ACEOF
8906 /* end confdefs.h. */
8907 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8908 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8909 #define $ac_func innocuous_$ac_func
8911 /* System header to define __stub macros and hopefully few prototypes,
8912 which can conflict with char $ac_func (); below.
8913 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8914 <limits.h> exists even on freestanding compilers. */
8917 # include <limits.h>
8919 # include <assert.h>
8924 /* Override any gcc2 internal prototype to avoid an error. */
8929 /* We use char because int might match the return type of a gcc2
8930 builtin and then its argument prototype would still apply. */
8932 /* The GNU C library defines this for functions which it implements
8933 to always fail with ENOSYS. Some functions are actually named
8934 something starting with __ and the normal name is an alias. */
8935 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8938 char (*f) () = $ac_func;
8947 return f != $ac_func;
8952 rm -f conftest.$ac_objext conftest$ac_exeext
8953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8954 (eval $ac_link) 2>conftest.er1
8956 grep -v '^ *+' conftest.er1 >conftest.err
8958 cat conftest.err >&5
8959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8960 (exit $ac_status); } &&
8961 { ac_try='test -z "$ac_c_werror_flag"
8962 || test ! -s conftest.err'
8963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967 (exit $ac_status); }; } &&
8968 { ac_try='test -s conftest$ac_exeext'
8969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973 (exit $ac_status); }; }; then
8974 eval "$as_ac_var=yes"
8976 echo "$as_me: failed program was:" >&5
8977 sed 's/^/| /' conftest.$ac_ext >&5
8979 eval "$as_ac_var=no"
8981 rm -f conftest.err conftest.$ac_objext \
8982 conftest$ac_exeext conftest.$ac_ext
8984 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8985 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8986 if test `eval echo '${'$as_ac_var'}'` = yes; then
8987 cat >>confdefs.h <<_ACEOF
8988 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8995 for ac_header in varargs.h
8997 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8998 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8999 echo "$as_me:$LINENO: checking for $ac_header" >&5
9000 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9001 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9002 echo $ECHO_N "(cached) $ECHO_C" >&6
9004 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9005 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9007 # Is the header compilable?
9008 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9009 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9010 cat >conftest.$ac_ext <<_ACEOF
9013 cat confdefs.h >>conftest.$ac_ext
9014 cat >>conftest.$ac_ext <<_ACEOF
9015 /* end confdefs.h. */
9016 $ac_includes_default
9017 #include <$ac_header>
9019 rm -f conftest.$ac_objext
9020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9021 (eval $ac_compile) 2>conftest.er1
9023 grep -v '^ *+' conftest.er1 >conftest.err
9025 cat conftest.err >&5
9026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9027 (exit $ac_status); } &&
9028 { ac_try='test -z "$ac_c_werror_flag"
9029 || test ! -s conftest.err'
9030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9034 (exit $ac_status); }; } &&
9035 { ac_try='test -s conftest.$ac_objext'
9036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9040 (exit $ac_status); }; }; then
9041 ac_header_compiler=yes
9043 echo "$as_me: failed program was:" >&5
9044 sed 's/^/| /' conftest.$ac_ext >&5
9046 ac_header_compiler=no
9048 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9049 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9050 echo "${ECHO_T}$ac_header_compiler" >&6
9052 # Is the header present?
9053 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9054 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9055 cat >conftest.$ac_ext <<_ACEOF
9058 cat confdefs.h >>conftest.$ac_ext
9059 cat >>conftest.$ac_ext <<_ACEOF
9060 /* end confdefs.h. */
9061 #include <$ac_header>
9063 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9064 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9066 grep -v '^ *+' conftest.er1 >conftest.err
9068 cat conftest.err >&5
9069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070 (exit $ac_status); } >/dev/null; then
9071 if test -s conftest.err; then
9072 ac_cpp_err=$ac_c_preproc_warn_flag
9073 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9080 if test -z "$ac_cpp_err"; then
9081 ac_header_preproc=yes
9083 echo "$as_me: failed program was:" >&5
9084 sed 's/^/| /' conftest.$ac_ext >&5
9086 ac_header_preproc=no
9088 rm -f conftest.err conftest.$ac_ext
9089 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9090 echo "${ECHO_T}$ac_header_preproc" >&6
9092 # So? What about this header?
9093 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9095 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9096 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9097 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9098 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9099 ac_header_preproc=yes
9102 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9103 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9104 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9105 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9106 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9107 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9108 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9109 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9110 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9111 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9112 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9113 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9116 ## ------------------------------------------ ##
9117 ## Report this to the AC_PACKAGE_NAME lists. ##
9118 ## ------------------------------------------ ##
9121 sed "s/^/$as_me: WARNING: /" >&2
9124 echo "$as_me:$LINENO: checking for $ac_header" >&5
9125 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9126 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9127 echo $ECHO_N "(cached) $ECHO_C" >&6
9129 eval "$as_ac_Header=\$ac_header_preproc"
9131 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9132 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9135 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9136 cat >>confdefs.h <<_ACEOF
9137 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9145 # End of readline/conio stuff
9146 # -----------------------------------------------------------------------
9148 # -----------------------------------------------------------------------
9149 # Check for Python support
9151 echo "$as_me:$LINENO: checking for Python support" >&5
9152 echo $ECHO_N "checking for Python support... $ECHO_C" >&6
9154 # Check whether --with-python or --without-python was given.
9155 if test "${with_python+set}" = set; then
9156 withval="$with_python"
9160 if test "$withval" != "no"; then
9161 if test "$withval" = "yes"; then
9162 for python_root in /usr /usr/local; do
9163 if test -f $python_root/include/python2.2/Python.h; then
9164 PYTHON_INCDIR=-I$python_root/include/python2.2
9165 PYTHON_LIBS="-L$python_root/lib/python2.2/config -lpython2.2"
9167 elif test -f $python_root/include/python2.3/Python.h; then
9168 PYTHON_INCDIR=-I$python_root/include/python2.3
9169 PYTHON_LIBS="-L$python_root/lib/python2.3/config -lpython2.3"
9171 elif test -f $python_root/include/python2.4/Python.h; then
9172 PYTHON_INCDIR=-I$python_root/include/python2.4
9173 PYTHON_LIBS="-L$python_root/lib/python2.4/config -lpython2.4"
9177 if test x$PYTHON_INCDIR = x; then
9178 if test -f $prefix/include/Python.h; then
9179 PYTHON_INCDIR=-I$prefix/include
9180 PYTHON_LIBS="-L$prefix/lib/config -lpython"
9182 echo "$as_me:$LINENO: result: no" >&5
9183 echo "${ECHO_T}no" >&6
9184 { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
9185 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
9186 { (exit 1); exit 1; }; }
9190 if test -f $withval/Python.h; then
9191 PYTHON_INCDIR=-I$withval
9192 PYTHON_LIBS="-L$withval/config -lpython"
9193 elif test -f $withval/include/Python.h; then
9194 PYTHON_INCDIR=-I$withval/include
9195 PYTHON_LIBS="-L$withval/lib/config -lpython"
9196 elif test -f $withval/include/python/Python.h; then
9197 PYTHON_INCDIR=-I$withval/include/python
9198 PYTHON_LIBS="-L$withval/lib/python/config -lpython"
9200 echo "$as_me:$LINENO: result: no" >&5
9201 echo "${ECHO_T}no" >&6
9202 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
9203 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
9204 { (exit 1); exit 1; }; }
9207 cat >>confdefs.h <<\_ACEOF
9208 #define HAVE_PYTHON 1
9211 echo "$as_me:$LINENO: result: yes" >&5
9212 echo "${ECHO_T}yes" >&6
9214 { echo "$as_me:$LINENO: checking for more Python libs" >&5
9215 echo "$as_me: checking for more Python libs" >&6;}
9216 saved_LIBS="$LIBS"; LIBS=
9217 echo "$as_me:$LINENO: checking for library containing shm_open" >&5
9218 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6
9219 if test "${ac_cv_search_shm_open+set}" = set; then
9220 echo $ECHO_N "(cached) $ECHO_C" >&6
9222 ac_func_search_save_LIBS=$LIBS
9223 ac_cv_search_shm_open=no
9224 cat >conftest.$ac_ext <<_ACEOF
9227 cat confdefs.h >>conftest.$ac_ext
9228 cat >>conftest.$ac_ext <<_ACEOF
9229 /* end confdefs.h. */
9231 /* Override any gcc2 internal prototype to avoid an error. */
9235 /* We use char because int might match the return type of a gcc2
9236 builtin and then its argument prototype would still apply. */
9246 rm -f conftest.$ac_objext conftest$ac_exeext
9247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9248 (eval $ac_link) 2>conftest.er1
9250 grep -v '^ *+' conftest.er1 >conftest.err
9252 cat conftest.err >&5
9253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254 (exit $ac_status); } &&
9255 { ac_try='test -z "$ac_c_werror_flag"
9256 || test ! -s conftest.err'
9257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9261 (exit $ac_status); }; } &&
9262 { ac_try='test -s conftest$ac_exeext'
9263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9267 (exit $ac_status); }; }; then
9268 ac_cv_search_shm_open="none required"
9270 echo "$as_me: failed program was:" >&5
9271 sed 's/^/| /' conftest.$ac_ext >&5
9274 rm -f conftest.err conftest.$ac_objext \
9275 conftest$ac_exeext conftest.$ac_ext
9276 if test "$ac_cv_search_shm_open" = no; then
9277 for ac_lib in rt; do
9278 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9279 cat >conftest.$ac_ext <<_ACEOF
9282 cat confdefs.h >>conftest.$ac_ext
9283 cat >>conftest.$ac_ext <<_ACEOF
9284 /* end confdefs.h. */
9286 /* Override any gcc2 internal prototype to avoid an error. */
9290 /* We use char because int might match the return type of a gcc2
9291 builtin and then its argument prototype would still apply. */
9301 rm -f conftest.$ac_objext conftest$ac_exeext
9302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9303 (eval $ac_link) 2>conftest.er1
9305 grep -v '^ *+' conftest.er1 >conftest.err
9307 cat conftest.err >&5
9308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9309 (exit $ac_status); } &&
9310 { ac_try='test -z "$ac_c_werror_flag"
9311 || test ! -s conftest.err'
9312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9316 (exit $ac_status); }; } &&
9317 { ac_try='test -s conftest$ac_exeext'
9318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9322 (exit $ac_status); }; }; then
9323 ac_cv_search_shm_open="-l$ac_lib"
9326 echo "$as_me: failed program was:" >&5
9327 sed 's/^/| /' conftest.$ac_ext >&5
9330 rm -f conftest.err conftest.$ac_objext \
9331 conftest$ac_exeext conftest.$ac_ext
9334 LIBS=$ac_func_search_save_LIBS
9336 echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
9337 echo "${ECHO_T}$ac_cv_search_shm_open" >&6
9338 if test "$ac_cv_search_shm_open" != no; then
9339 test "$ac_cv_search_shm_open" = "none required" || LIBS="$ac_cv_search_shm_open $LIBS"
9344 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
9345 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
9346 if test "${ac_cv_lib_util_openpty+set}" = set; then
9347 echo $ECHO_N "(cached) $ECHO_C" >&6
9349 ac_check_lib_save_LIBS=$LIBS
9351 cat >conftest.$ac_ext <<_ACEOF
9354 cat confdefs.h >>conftest.$ac_ext
9355 cat >>conftest.$ac_ext <<_ACEOF
9356 /* end confdefs.h. */
9358 /* Override any gcc2 internal prototype to avoid an error. */
9362 /* We use char because int might match the return type of a gcc2
9363 builtin and then its argument prototype would still apply. */
9373 rm -f conftest.$ac_objext conftest$ac_exeext
9374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9375 (eval $ac_link) 2>conftest.er1
9377 grep -v '^ *+' conftest.er1 >conftest.err
9379 cat conftest.err >&5
9380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9381 (exit $ac_status); } &&
9382 { ac_try='test -z "$ac_c_werror_flag"
9383 || test ! -s conftest.err'
9384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9388 (exit $ac_status); }; } &&
9389 { ac_try='test -s conftest$ac_exeext'
9390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9394 (exit $ac_status); }; }; then
9395 ac_cv_lib_util_openpty=yes
9397 echo "$as_me: failed program was:" >&5
9398 sed 's/^/| /' conftest.$ac_ext >&5
9400 ac_cv_lib_util_openpty=no
9402 rm -f conftest.err conftest.$ac_objext \
9403 conftest$ac_exeext conftest.$ac_ext
9404 LIBS=$ac_check_lib_save_LIBS
9406 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
9407 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
9408 if test $ac_cv_lib_util_openpty = yes; then
9409 cat >>confdefs.h <<_ACEOF
9410 #define HAVE_LIBUTIL 1
9417 PYTHON_LIBS="$PYTHON_LIBS $LIBS"
9420 echo "$as_me:$LINENO: result: no" >&5
9421 echo "${ECHO_T}no" >&6
9426 echo "$as_me:$LINENO: result: no" >&5
9427 echo "${ECHO_T}no" >&6
9435 # Find where sockets are (especially for Solaris)
9436 # Do this before the TCP Wrappers test since tcp wrappers
9437 # uses the socket library and some linkers are stupid.
9439 echo "$as_me:$LINENO: checking for socket" >&5
9440 echo $ECHO_N "checking for socket... $ECHO_C" >&6
9441 if test "${ac_cv_func_socket+set}" = set; then
9442 echo $ECHO_N "(cached) $ECHO_C" >&6
9444 cat >conftest.$ac_ext <<_ACEOF
9447 cat confdefs.h >>conftest.$ac_ext
9448 cat >>conftest.$ac_ext <<_ACEOF
9449 /* end confdefs.h. */
9450 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
9451 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9452 #define socket innocuous_socket
9454 /* System header to define __stub macros and hopefully few prototypes,
9455 which can conflict with char socket (); below.
9456 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9457 <limits.h> exists even on freestanding compilers. */
9460 # include <limits.h>
9462 # include <assert.h>
9467 /* Override any gcc2 internal prototype to avoid an error. */
9472 /* We use char because int might match the return type of a gcc2
9473 builtin and then its argument prototype would still apply. */
9475 /* The GNU C library defines this for functions which it implements
9476 to always fail with ENOSYS. Some functions are actually named
9477 something starting with __ and the normal name is an alias. */
9478 #if defined (__stub_socket) || defined (__stub___socket)
9481 char (*f) () = socket;
9495 rm -f conftest.$ac_objext conftest$ac_exeext
9496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9497 (eval $ac_link) 2>conftest.er1
9499 grep -v '^ *+' conftest.er1 >conftest.err
9501 cat conftest.err >&5
9502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9503 (exit $ac_status); } &&
9504 { ac_try='test -z "$ac_c_werror_flag"
9505 || test ! -s conftest.err'
9506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9510 (exit $ac_status); }; } &&
9511 { ac_try='test -s conftest$ac_exeext'
9512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9516 (exit $ac_status); }; }; then
9517 ac_cv_func_socket=yes
9519 echo "$as_me: failed program was:" >&5
9520 sed 's/^/| /' conftest.$ac_ext >&5
9522 ac_cv_func_socket=no
9524 rm -f conftest.err conftest.$ac_objext \
9525 conftest$ac_exeext conftest.$ac_ext
9527 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
9528 echo "${ECHO_T}$ac_cv_func_socket" >&6
9529 if test $ac_cv_func_socket = yes; then
9530 echo "$as_me:$LINENO: result: using libc's socket" >&5
9531 echo "${ECHO_T}using libc's socket" >&6
9534 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
9535 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
9536 if test "${ac_cv_lib_xnet_socket+set}" = set; then
9537 echo $ECHO_N "(cached) $ECHO_C" >&6
9539 ac_check_lib_save_LIBS=$LIBS
9541 cat >conftest.$ac_ext <<_ACEOF
9544 cat confdefs.h >>conftest.$ac_ext
9545 cat >>conftest.$ac_ext <<_ACEOF
9546 /* end confdefs.h. */
9548 /* Override any gcc2 internal prototype to avoid an error. */
9552 /* We use char because int might match the return type of a gcc2
9553 builtin and then its argument prototype would still apply. */
9563 rm -f conftest.$ac_objext conftest$ac_exeext
9564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9565 (eval $ac_link) 2>conftest.er1
9567 grep -v '^ *+' conftest.er1 >conftest.err
9569 cat conftest.err >&5
9570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9571 (exit $ac_status); } &&
9572 { ac_try='test -z "$ac_c_werror_flag"
9573 || test ! -s conftest.err'
9574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9578 (exit $ac_status); }; } &&
9579 { ac_try='test -s conftest$ac_exeext'
9580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9584 (exit $ac_status); }; }; then
9585 ac_cv_lib_xnet_socket=yes
9587 echo "$as_me: failed program was:" >&5
9588 sed 's/^/| /' conftest.$ac_ext >&5
9590 ac_cv_lib_xnet_socket=no
9592 rm -f conftest.err conftest.$ac_objext \
9593 conftest$ac_exeext conftest.$ac_ext
9594 LIBS=$ac_check_lib_save_LIBS
9596 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
9597 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
9598 if test $ac_cv_lib_xnet_socket = yes; then
9599 cat >>confdefs.h <<_ACEOF
9600 #define HAVE_LIBXNET 1
9608 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
9609 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
9610 if test "${ac_cv_lib_socket_socket+set}" = set; then
9611 echo $ECHO_N "(cached) $ECHO_C" >&6
9613 ac_check_lib_save_LIBS=$LIBS
9614 LIBS="-lsocket $LIBS"
9615 cat >conftest.$ac_ext <<_ACEOF
9618 cat confdefs.h >>conftest.$ac_ext
9619 cat >>conftest.$ac_ext <<_ACEOF
9620 /* end confdefs.h. */
9622 /* Override any gcc2 internal prototype to avoid an error. */
9626 /* We use char because int might match the return type of a gcc2
9627 builtin and then its argument prototype would still apply. */
9637 rm -f conftest.$ac_objext conftest$ac_exeext
9638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9639 (eval $ac_link) 2>conftest.er1
9641 grep -v '^ *+' conftest.er1 >conftest.err
9643 cat conftest.err >&5
9644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9645 (exit $ac_status); } &&
9646 { ac_try='test -z "$ac_c_werror_flag"
9647 || test ! -s conftest.err'
9648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9652 (exit $ac_status); }; } &&
9653 { ac_try='test -s conftest$ac_exeext'
9654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9658 (exit $ac_status); }; }; then
9659 ac_cv_lib_socket_socket=yes
9661 echo "$as_me: failed program was:" >&5
9662 sed 's/^/| /' conftest.$ac_ext >&5
9664 ac_cv_lib_socket_socket=no
9666 rm -f conftest.err conftest.$ac_objext \
9667 conftest$ac_exeext conftest.$ac_ext
9668 LIBS=$ac_check_lib_save_LIBS
9670 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
9671 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
9672 if test $ac_cv_lib_socket_socket = yes; then
9673 cat >>confdefs.h <<_ACEOF
9674 #define HAVE_LIBSOCKET 1
9677 LIBS="-lsocket $LIBS"
9682 echo "$as_me:$LINENO: checking for socket in -linet" >&5
9683 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
9684 if test "${ac_cv_lib_inet_socket+set}" = set; then
9685 echo $ECHO_N "(cached) $ECHO_C" >&6
9687 ac_check_lib_save_LIBS=$LIBS
9689 cat >conftest.$ac_ext <<_ACEOF
9692 cat confdefs.h >>conftest.$ac_ext
9693 cat >>conftest.$ac_ext <<_ACEOF
9694 /* end confdefs.h. */
9696 /* Override any gcc2 internal prototype to avoid an error. */
9700 /* We use char because int might match the return type of a gcc2
9701 builtin and then its argument prototype would still apply. */
9711 rm -f conftest.$ac_objext conftest$ac_exeext
9712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9713 (eval $ac_link) 2>conftest.er1
9715 grep -v '^ *+' conftest.er1 >conftest.err
9717 cat conftest.err >&5
9718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9719 (exit $ac_status); } &&
9720 { ac_try='test -z "$ac_c_werror_flag"
9721 || test ! -s conftest.err'
9722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726 (exit $ac_status); }; } &&
9727 { ac_try='test -s conftest$ac_exeext'
9728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732 (exit $ac_status); }; }; then
9733 ac_cv_lib_inet_socket=yes
9735 echo "$as_me: failed program was:" >&5
9736 sed 's/^/| /' conftest.$ac_ext >&5
9738 ac_cv_lib_inet_socket=no
9740 rm -f conftest.err conftest.$ac_objext \
9741 conftest$ac_exeext conftest.$ac_ext
9742 LIBS=$ac_check_lib_save_LIBS
9744 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
9745 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
9746 if test $ac_cv_lib_inet_socket = yes; then
9747 cat >>confdefs.h <<_ACEOF
9748 #define HAVE_LIBINET 1
9759 # -----------------------------------------------------------
9760 # Check whether user wants TCP wrappers support (default off)
9761 # -----------------------------------------------------------
9764 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
9765 if test "${with_tcp_wrappers+set}" = set; then
9766 withval="$with_tcp_wrappers"
9768 if test "x$withval" != "xno" ; then
9770 LIBS="$saved_LIBS -lwrap"
9771 echo "$as_me:$LINENO: checking for libwrap" >&5
9772 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
9773 cat >conftest.$ac_ext <<_ACEOF
9776 cat confdefs.h >>conftest.$ac_ext
9777 cat >>conftest.$ac_ext <<_ACEOF
9778 /* end confdefs.h. */
9780 int deny_severity = 0;
9781 int allow_severity = 0;
9782 struct request_info *req;
9791 rm -f conftest.$ac_objext conftest$ac_exeext
9792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9793 (eval $ac_link) 2>conftest.er1
9795 grep -v '^ *+' conftest.er1 >conftest.err
9797 cat conftest.err >&5
9798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9799 (exit $ac_status); } &&
9800 { ac_try='test -z "$ac_c_werror_flag"
9801 || test ! -s conftest.err'
9802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9806 (exit $ac_status); }; } &&
9807 { ac_try='test -s conftest$ac_exeext'
9808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9812 (exit $ac_status); }; }; then
9814 echo "$as_me:$LINENO: result: yes" >&5
9815 echo "${ECHO_T}yes" >&6
9816 cat >>confdefs.h <<\_ACEOF
9817 #define HAVE_LIBWRAP 1
9823 echo "$as_me: failed program was:" >&5
9824 sed 's/^/| /' conftest.$ac_ext >&5
9827 LIBS="$saved_LIBS -lwrap -lnsl"
9828 cat >conftest.$ac_ext <<_ACEOF
9831 cat confdefs.h >>conftest.$ac_ext
9832 cat >>conftest.$ac_ext <<_ACEOF
9833 /* end confdefs.h. */
9835 int deny_severity = 0;
9836 int allow_severity = 0;
9837 struct request_info *req;
9846 rm -f conftest.$ac_objext conftest$ac_exeext
9847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9848 (eval $ac_link) 2>conftest.er1
9850 grep -v '^ *+' conftest.er1 >conftest.err
9852 cat conftest.err >&5
9853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854 (exit $ac_status); } &&
9855 { ac_try='test -z "$ac_c_werror_flag"
9856 || test ! -s conftest.err'
9857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9861 (exit $ac_status); }; } &&
9862 { ac_try='test -s conftest$ac_exeext'
9863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9867 (exit $ac_status); }; }; then
9869 echo "$as_me:$LINENO: result: yes" >&5
9870 echo "${ECHO_T}yes" >&6
9871 cat >>confdefs.h <<\_ACEOF
9872 #define HAVE_LIBWRAP 1
9878 echo "$as_me: failed program was:" >&5
9879 sed 's/^/| /' conftest.$ac_ext >&5
9881 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
9882 echo "$as_me: error: *** libwrap missing" >&2;}
9883 { (exit 1); exit 1; }; }
9886 rm -f conftest.err conftest.$ac_objext \
9887 conftest$ac_exeext conftest.$ac_ext
9890 rm -f conftest.err conftest.$ac_objext \
9891 conftest$ac_exeext conftest.$ac_ext
9897 # -----------------------------------------------------------
9898 # Check whether OpenSSL is available
9899 # -----------------------------------------------------------
9900 echo "$as_me:$LINENO: checking for OpenSSL" >&5
9901 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6
9903 # Check whether --with-openssl or --without-openssl was given.
9904 if test "${with_openssl+set}" = set; then
9905 withval="$with_openssl"
9906 with_openssl_directory=${withval}
9909 if test "x$with_openssl_directory" != "x"; then
9910 OPENSSL_LIBS="-lssl -lcrypto"
9913 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
9914 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
9915 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
9919 saved_CFLAGS="$CFLAGS"
9920 LIBS="$saved_LIBS $OPENSSL_LIBS"
9921 CFLAGS="$saved_CFLAGS $OPENSSL_INC"
9923 cat >conftest.$ac_ext <<_ACEOF
9926 cat confdefs.h >>conftest.$ac_ext
9927 cat >>conftest.$ac_ext <<_ACEOF
9928 /* end confdefs.h. */
9929 #include <openssl/ssl.h>
9933 CRYPTO_set_id_callback(NULL);
9938 rm -f conftest.$ac_objext conftest$ac_exeext
9939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9940 (eval $ac_link) 2>conftest.er1
9942 grep -v '^ *+' conftest.er1 >conftest.err
9944 cat conftest.err >&5
9945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9946 (exit $ac_status); } &&
9947 { ac_try='test -z "$ac_c_werror_flag"
9948 || test ! -s conftest.err'
9949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953 (exit $ac_status); }; } &&
9954 { ac_try='test -s conftest$ac_exeext'
9955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9959 (exit $ac_status); }; }; then
9962 echo "$as_me: failed program was:" >&5
9963 sed 's/^/| /' conftest.$ac_ext >&5
9968 rm -f conftest.err conftest.$ac_objext \
9969 conftest$ac_exeext conftest.$ac_ext
9972 CFLAGS="$saved_CFLAGS"
9974 if test "$support_tls" = "yes"; then
9976 cat >>confdefs.h <<\_ACEOF
9977 #define HAVE_OPENSSL 1
9981 cat >>confdefs.h <<\_ACEOF
9992 echo "$as_me:$LINENO: result: $support_tls" >&5
9993 echo "${ECHO_T}$support_tls" >&6
9998 # -----------------------------------------------------------
9999 # Python and OpenSSL are using dlopen
10000 # -----------------------------------------------------------
10002 if test "$support_python" = "yes" -o "$support_tls" = "yes"; then
10003 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
10004 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
10005 if test "${ac_cv_search_dlopen+set}" = set; then
10006 echo $ECHO_N "(cached) $ECHO_C" >&6
10008 ac_func_search_save_LIBS=$LIBS
10009 ac_cv_search_dlopen=no
10010 cat >conftest.$ac_ext <<_ACEOF
10013 cat confdefs.h >>conftest.$ac_ext
10014 cat >>conftest.$ac_ext <<_ACEOF
10015 /* end confdefs.h. */
10017 /* Override any gcc2 internal prototype to avoid an error. */
10021 /* We use char because int might match the return type of a gcc2
10022 builtin and then its argument prototype would still apply. */
10032 rm -f conftest.$ac_objext conftest$ac_exeext
10033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10034 (eval $ac_link) 2>conftest.er1
10036 grep -v '^ *+' conftest.er1 >conftest.err
10038 cat conftest.err >&5
10039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10040 (exit $ac_status); } &&
10041 { ac_try='test -z "$ac_c_werror_flag"
10042 || test ! -s conftest.err'
10043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10044 (eval $ac_try) 2>&5
10046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10047 (exit $ac_status); }; } &&
10048 { ac_try='test -s conftest$ac_exeext'
10049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10050 (eval $ac_try) 2>&5
10052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10053 (exit $ac_status); }; }; then
10054 ac_cv_search_dlopen="none required"
10056 echo "$as_me: failed program was:" >&5
10057 sed 's/^/| /' conftest.$ac_ext >&5
10060 rm -f conftest.err conftest.$ac_objext \
10061 conftest$ac_exeext conftest.$ac_ext
10062 if test "$ac_cv_search_dlopen" = no; then
10063 for ac_lib in dl; do
10064 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10065 cat >conftest.$ac_ext <<_ACEOF
10068 cat confdefs.h >>conftest.$ac_ext
10069 cat >>conftest.$ac_ext <<_ACEOF
10070 /* end confdefs.h. */
10072 /* Override any gcc2 internal prototype to avoid an error. */
10076 /* We use char because int might match the return type of a gcc2
10077 builtin and then its argument prototype would still apply. */
10087 rm -f conftest.$ac_objext conftest$ac_exeext
10088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10089 (eval $ac_link) 2>conftest.er1
10091 grep -v '^ *+' conftest.er1 >conftest.err
10093 cat conftest.err >&5
10094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10095 (exit $ac_status); } &&
10096 { ac_try='test -z "$ac_c_werror_flag"
10097 || test ! -s conftest.err'
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); }; } &&
10103 { ac_try='test -s conftest$ac_exeext'
10104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10105 (eval $ac_try) 2>&5
10107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10108 (exit $ac_status); }; }; then
10109 ac_cv_search_dlopen="-l$ac_lib"
10112 echo "$as_me: failed program was:" >&5
10113 sed 's/^/| /' conftest.$ac_ext >&5
10116 rm -f conftest.err conftest.$ac_objext \
10117 conftest$ac_exeext conftest.$ac_ext
10120 LIBS=$ac_func_search_save_LIBS
10122 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
10123 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
10124 if test "$ac_cv_search_dlopen" != no; then
10125 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
10131 # ------------------------------------------
10132 # Where to place working dir
10133 # ------------------------------------------
10134 working_dir=`eval echo ${prefix}/var/bacula/working`
10136 # Check whether --with-working-dir or --without-working-dir was given.
10137 if test "${with_working_dir+set}" = set; then
10138 withval="$with_working_dir"
10140 if test "x$withval" != "xno" ; then
10141 working_dir=$withval
10150 # ------------------------------------------
10151 # Where to place scriptdir (script files)
10152 # ------------------------------------------
10153 scriptdir=`eval echo ${sysconfdir}`
10155 # Check whether --with-scriptdir or --without-scriptdir was given.
10156 if test "${with_scriptdir+set}" = set; then
10157 withval="$with_scriptdir"
10159 if test "x$withval" != "xno" ; then
10169 # ------------------------------------------
10170 # Where to send dump email
10171 # ------------------------------------------
10172 dump_email=root@localhost
10174 # Check whether --with-dump-email or --without-dump-email was given.
10175 if test "${with_dump_email+set}" = set; then
10176 withval="$with_dump_email"
10178 if test "x$withval" != "xno" ; then
10179 dump_email=$withval
10187 # ------------------------------------------
10188 # Where to send job email
10189 # ------------------------------------------
10190 job_email=root@localhost
10192 # Check whether --with-job-email or --without-job-email was given.
10193 if test "${with_job_email+set}" = set; then
10194 withval="$with_job_email"
10196 if test "x$withval" != "xno" ; then
10205 # ------------------------------------------
10206 # Where to find smtp host
10207 # ------------------------------------------
10208 smtp_host=localhost
10210 # Check whether --with-smtp_host or --without-smtp_host was given.
10211 if test "${with_smtp_host+set}" = set; then
10212 withval="$with_smtp_host"
10214 if test "x$withval" != "xno" ; then
10224 # ------------------------------------
10225 # Where to place pid files
10226 # ------------------------------------
10229 # Check whether --with-pid-dir or --without-pid-dir was given.
10230 if test "${with_pid_dir+set}" = set; then
10231 withval="$with_pid_dir"
10233 if test "x$withval" != "xno" ; then
10240 cat >>confdefs.h <<_ACEOF
10241 #define _PATH_BACULA_PIDDIR "$piddir"
10247 # ------------------------------------
10248 # Where to place subsys "lock file"
10249 # ------------------------------------
10250 subsysdir=/var/run/subsys
10252 # Check whether --with-subsys-dir or --without-subsys-dir was given.
10253 if test "${with_subsys_dir+set}" = set; then
10254 withval="$with_subsys_dir"
10256 if test "x$withval" != "xno" ; then
10267 # ------------------------------------
10268 # Where to start assigning ports
10269 # ------------------------------------
10272 # Check whether --with-baseport or --without-baseport was given.
10273 if test "${with_baseport+set}" = set; then
10274 withval="$with_baseport"
10276 if test "x$withval" != "xno" ; then
10284 dir_port=`expr $baseport`
10285 fd_port=`expr $baseport + 1`
10286 sd_port=`expr $fd_port + 1`
10293 # ------------------------------------------
10294 # Generate passwords
10295 # ------------------------------------------
10298 # Check whether --with-dir-password or --without-dir-password was given.
10299 if test "${with_dir_password+set}" = set; then
10300 withval="$with_dir_password"
10302 if test "x$withval" != "xno" ; then
10303 dir_password=$withval
10309 if test "x$dir_password" = "x" ; then
10310 if test "x$OPENSSL" = "xnone" ; then
10311 key=`autoconf/randpass 33`
10313 key=`openssl rand -base64 33`
10320 # Check whether --with-fd-password or --without-fd-password was given.
10321 if test "${with_fd_password+set}" = set; then
10322 withval="$with_fd_password"
10324 if test "x$withval" != "xno" ; then
10325 fd_password=$withval
10331 if test "x$fd_password" = "x" ; then
10332 if test "x$OPENSSL" = "xnone" ; then
10333 key=`autoconf/randpass 37`
10335 key=`openssl rand -base64 33`
10342 # Check whether --with-sd-password or --without-sd-password was given.
10343 if test "${with_sd_password+set}" = set; then
10344 withval="$with_sd_password"
10346 if test "x$withval" != "xno" ; then
10347 sd_password=$withval
10353 if test "x$sd_password" = "x" ; then
10354 if test "x$OPENSSL" = "xnone" ; then
10355 key=`autoconf/randpass 41`
10357 key=`openssl rand -base64 33`
10364 # Check whether --with-mon-dir-password or --without-mon-dir-password was given.
10365 if test "${with_mon_dir_password+set}" = set; then
10366 withval="$with_mon_dir_password"
10368 if test "x$withval" != "xno" ; then
10369 mon_dir_password=$withval
10375 if test "x$mon_dir_password" = "x" ; then
10376 if test "x$OPENSSL" = "xnone" ; then
10377 key=`autoconf/randpass 33`
10379 key=`openssl rand -base64 33`
10381 mon_dir_password=$key
10386 # Check whether --with-mon-fd-password or --without-mon-fd-password was given.
10387 if test "${with_mon_fd_password+set}" = set; then
10388 withval="$with_mon_fd_password"
10390 if test "x$withval" != "xno" ; then
10391 mon_fd_password=$withval
10397 if test "x$mon_fd_password" = "x" ; then
10398 if test "x$OPENSSL" = "xnone" ; then
10399 key=`autoconf/randpass 37`
10401 key=`openssl rand -base64 33`
10403 mon_fd_password=$key
10408 # Check whether --with-mon-sd-password or --without-mon-sd-password was given.
10409 if test "${with_mon_sd_password+set}" = set; then
10410 withval="$with_mon_sd_password"
10412 if test "x$withval" != "xno" ; then
10413 mon_sd_password=$withval
10419 if test "x$mon_sd_password" = "x" ; then
10420 if test "x$OPENSSL" = "xnone" ; then
10421 key=`autoconf/randpass 41`
10423 key=`openssl rand -base64 33`
10425 mon_sd_password=$key
10437 # Handle users and groups for each daemon
10441 # Check whether --with-dir_user or --without-dir_user was given.
10442 if test "${with_dir_user+set}" = set; then
10443 withval="$with_dir_user"
10445 if test "x$withval" != "x" ; then
10454 # Check whether --with-dir_group or --without-dir_group was given.
10455 if test "${with_dir_group+set}" = set; then
10456 withval="$with_dir_group"
10458 if test "x$withval" != "x" ; then
10467 # Check whether --with-sd_user or --without-sd_user was given.
10468 if test "${with_sd_user+set}" = set; then
10469 withval="$with_sd_user"
10471 if test "x$withval" != "x" ; then
10480 # Check whether --with-sd_group or --without-sd_group was given.
10481 if test "${with_sd_group+set}" = set; then
10482 withval="$with_sd_group"
10484 if test "x$withval" != "x" ; then
10493 # Check whether --with-fd_user or --without-fd_user was given.
10494 if test "${with_fd_user+set}" = set; then
10495 withval="$with_fd_user"
10497 if test "x$withval" != "x" ; then
10506 # Check whether --with-fd_group or --without-fd_group was given.
10507 if test "${with_fd_group+set}" = set; then
10508 withval="$with_fd_group"
10510 if test "x$withval" != "x" ; then
10528 # allow setting default executable permissions
10532 # Check whether --with-sbin-perm or --without-sbin-perm was given.
10533 if test "${with_sbin_perm+set}" = set; then
10534 withval="$with_sbin_perm"
10536 if test "x$withval" != "x" ; then
10545 # ------------------------------------------------
10546 # Bacula check for various SQL database engines
10547 # ------------------------------------------------
10550 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
10551 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
10553 # Check whether --with-postgresql or --without-postgresql was given.
10554 if test "${with_postgresql+set}" = set; then
10555 withval="$with_postgresql"
10557 if test "$withval" != "no"; then
10558 if test "$db_found" = "yes"; then
10559 echo "$as_me:$LINENO: result: error" >&5
10560 echo "${ECHO_T}error" >&6
10561 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
10562 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
10563 { (exit 1); exit 1; }; };
10565 if test "$withval" = "yes"; then
10566 if test -f /usr/local/include/libpq-fe.h; then
10567 POSTGRESQL_INCDIR=/usr/local/include
10568 POSTGRESQL_LIBDIR=/usr/local/lib
10569 POSTGRESQL_BINDIR=/usr/local/bin
10570 elif test -f /usr/include/libpq-fe.h; then
10571 POSTGRESQL_INCDIR=/usr/include
10572 POSTGRESQL_LIBDIR=/usr/lib
10573 POSTGRESQL_BINDIR=/usr/bin
10574 elif test -f /usr/include/pgsql/libpq-fe.h; then
10575 POSTGRESQL_INCDIR=/usr/include/pgsql
10576 POSTGRESQL_LIBDIR=/usr/lib/pgsql
10577 POSTGRESQL_BINDIR=/usr/bin
10578 elif test -f /usr/include/postgresql/libpq-fe.h; then
10579 POSTGRESQL_INCDIR=/usr/include/postgresql
10580 POSTGRESQL_LIBDIR=/usr/lib/postgresql
10581 POSTGRESQL_BINDIR=/usr/bin
10583 echo "$as_me:$LINENO: result: no" >&5
10584 echo "${ECHO_T}no" >&6
10585 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
10586 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
10587 { (exit 1); exit 1; }; }
10589 elif test -f $withval/include/libpq-fe.h; then
10590 POSTGRESQL_INCDIR=$withval/include
10591 POSTGRESQL_LIBDIR=$withval/lib
10592 POSTGRESQL_BINDIR=$withval/bin
10593 elif test -f $withval/include/postgresql/libpq-fe.h; then
10594 POSTGRESQL_INCDIR=$withval/include/postgresql
10595 POSTGRESQL_LIBDIR=$withval/lib
10596 POSTGRESQL_BINDIR=$withval/bin
10598 echo "$as_me:$LINENO: result: no" >&5
10599 echo "${ECHO_T}no" >&6
10600 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
10601 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
10602 { (exit 1); exit 1; }; }
10604 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
10605 echo "$as_me:$LINENO: checking for crypt" >&5
10606 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
10607 if test "${ac_cv_func_crypt+set}" = set; then
10608 echo $ECHO_N "(cached) $ECHO_C" >&6
10610 cat >conftest.$ac_ext <<_ACEOF
10613 cat confdefs.h >>conftest.$ac_ext
10614 cat >>conftest.$ac_ext <<_ACEOF
10615 /* end confdefs.h. */
10616 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
10617 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10618 #define crypt innocuous_crypt
10620 /* System header to define __stub macros and hopefully few prototypes,
10621 which can conflict with char crypt (); below.
10622 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10623 <limits.h> exists even on freestanding compilers. */
10626 # include <limits.h>
10628 # include <assert.h>
10633 /* Override any gcc2 internal prototype to avoid an error. */
10638 /* We use char because int might match the return type of a gcc2
10639 builtin and then its argument prototype would still apply. */
10641 /* The GNU C library defines this for functions which it implements
10642 to always fail with ENOSYS. Some functions are actually named
10643 something starting with __ and the normal name is an alias. */
10644 #if defined (__stub_crypt) || defined (__stub___crypt)
10647 char (*f) () = crypt;
10661 rm -f conftest.$ac_objext conftest$ac_exeext
10662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10663 (eval $ac_link) 2>conftest.er1
10665 grep -v '^ *+' conftest.er1 >conftest.err
10667 cat conftest.err >&5
10668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10669 (exit $ac_status); } &&
10670 { ac_try='test -z "$ac_c_werror_flag"
10671 || test ! -s conftest.err'
10672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10673 (eval $ac_try) 2>&5
10675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10676 (exit $ac_status); }; } &&
10677 { ac_try='test -s conftest$ac_exeext'
10678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10679 (eval $ac_try) 2>&5
10681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10682 (exit $ac_status); }; }; then
10683 ac_cv_func_crypt=yes
10685 echo "$as_me: failed program was:" >&5
10686 sed 's/^/| /' conftest.$ac_ext >&5
10688 ac_cv_func_crypt=no
10690 rm -f conftest.err conftest.$ac_objext \
10691 conftest$ac_exeext conftest.$ac_ext
10693 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
10694 echo "${ECHO_T}$ac_cv_func_crypt" >&6
10695 if test $ac_cv_func_crypt = yes; then
10698 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
10699 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
10700 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
10701 echo $ECHO_N "(cached) $ECHO_C" >&6
10703 ac_check_lib_save_LIBS=$LIBS
10704 LIBS="-lcrypt $LIBS"
10705 cat >conftest.$ac_ext <<_ACEOF
10708 cat confdefs.h >>conftest.$ac_ext
10709 cat >>conftest.$ac_ext <<_ACEOF
10710 /* end confdefs.h. */
10712 /* Override any gcc2 internal prototype to avoid an error. */
10716 /* We use char because int might match the return type of a gcc2
10717 builtin and then its argument prototype would still apply. */
10727 rm -f conftest.$ac_objext conftest$ac_exeext
10728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10729 (eval $ac_link) 2>conftest.er1
10731 grep -v '^ *+' conftest.er1 >conftest.err
10733 cat conftest.err >&5
10734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10735 (exit $ac_status); } &&
10736 { ac_try='test -z "$ac_c_werror_flag"
10737 || test ! -s conftest.err'
10738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10739 (eval $ac_try) 2>&5
10741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10742 (exit $ac_status); }; } &&
10743 { ac_try='test -s conftest$ac_exeext'
10744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10745 (eval $ac_try) 2>&5
10747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10748 (exit $ac_status); }; }; then
10749 ac_cv_lib_crypt_crypt=yes
10751 echo "$as_me: failed program was:" >&5
10752 sed 's/^/| /' conftest.$ac_ext >&5
10754 ac_cv_lib_crypt_crypt=no
10756 rm -f conftest.err conftest.$ac_objext \
10757 conftest$ac_exeext conftest.$ac_ext
10758 LIBS=$ac_check_lib_save_LIBS
10760 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
10761 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
10762 if test $ac_cv_lib_crypt_crypt = yes; then
10763 POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
10768 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
10769 SQL_LFLAGS=$POSTGRESQL_LFLAGS
10770 SQL_BINDIR=$POSTGRESQL_BINDIR
10771 cat >>confdefs.h <<\_ACEOF
10772 #define HAVE_POSTGRESQL 1
10775 echo "$as_me:$LINENO: result: yes" >&5
10776 echo "${ECHO_T}yes" >&6
10778 support_postgresql=yes
10782 echo "$as_me:$LINENO: result: no" >&5
10783 echo "${ECHO_T}no" >&6
10788 echo "$as_me:$LINENO: result: no" >&5
10789 echo "${ECHO_T}no" >&6
10800 echo "$as_me:$LINENO: checking for MySQL support" >&5
10801 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
10803 # Check whether --with-mysql or --without-mysql was given.
10804 if test "${with_mysql+set}" = set; then
10805 withval="$with_mysql"
10807 if test "$withval" != "no"; then
10808 if test "$withval" = "yes"; then
10809 if test -f /usr/local/mysql/include/mysql/mysql.h; then
10810 MYSQL_INCDIR=/usr/local/mysql/include/mysql
10811 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
10812 MYSQL_BINDIR=/usr/local/mysql/bin
10813 elif test -f /usr/include/mysql/mysql.h; then
10814 MYSQL_INCDIR=/usr/include/mysql
10815 MYSQL_LIBDIR=/usr/lib/mysql
10816 MYSQL_BINDIR=/usr/bin
10817 elif test -f /usr/include/mysql.h; then
10818 MYSQL_INCDIR=/usr/include
10819 MYSQL_LIBDIR=/usr/lib
10820 MYSQL_BINDIR=/usr/bin
10821 elif test -f /usr/local/include/mysql/mysql.h; then
10822 MYSQL_INCDIR=/usr/local/include/mysql
10823 MYSQL_LIBDIR=/usr/local/lib/mysql
10824 MYSQL_BINDIR=/usr/local/bin
10825 elif test -f /usr/local/include/mysql.h; then
10826 MYSQL_INCDIR=/usr/local/include
10827 MYSQL_LIBDIR=/usr/local/lib
10828 MYSQL_BINDIR=/usr/local/bin
10830 echo "$as_me:$LINENO: result: no" >&5
10831 echo "${ECHO_T}no" >&6
10832 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
10833 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
10834 { (exit 1); exit 1; }; }
10837 if test -f $withval/include/mysql/mysql.h; then
10838 MYSQL_INCDIR=$withval/include/mysql
10839 MYSQL_LIBDIR=$withval/lib/mysql
10840 MYSQL_BINDIR=$withval/bin
10841 elif test -f $withval/include/mysql.h; then
10842 MYSQL_INCDIR=$withval/include
10843 MYSQL_LIBDIR=$withval/lib
10844 MYSQL_BINDIR=$withval/bin
10846 echo "$as_me:$LINENO: result: no" >&5
10847 echo "${ECHO_T}no" >&6
10848 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
10849 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
10850 { (exit 1); exit 1; }; }
10853 SQL_INCLUDE=-I$MYSQL_INCDIR
10854 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
10855 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
10856 cat >>confdefs.h <<\_ACEOF
10857 #define HAVE_THREAD_SAFE_MYSQL 1
10861 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
10863 SQL_BINDIR=$MYSQL_BINDIR
10865 cat >>confdefs.h <<\_ACEOF
10866 #define HAVE_MYSQL 1
10869 echo "$as_me:$LINENO: result: yes" >&5
10870 echo "${ECHO_T}yes" >&6
10877 echo "$as_me:$LINENO: result: no" >&5
10878 echo "${ECHO_T}no" >&6
10885 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
10886 if test "${with_embedded_mysql+set}" = set; then
10887 withval="$with_embedded_mysql"
10889 if test "$withval" != "no"; then
10890 if test "$withval" = "yes"; then
10891 if test -f /usr/local/mysql/include/mysql/mysql.h; then
10892 MYSQL_INCDIR=/usr/local/mysql/include/mysql
10893 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
10894 MYSQL_BINDIR=/usr/local/mysql/bin
10895 elif test -f /usr/include/mysql/mysql.h; then
10896 MYSQL_INCDIR=/usr/include/mysql
10897 MYSQL_LIBDIR=/usr/lib/mysql
10898 MYSQL_BINDIR=/usr/bin
10899 elif test -f /usr/include/mysql.h; then
10900 MYSQL_INCDIR=/usr/include
10901 MYSQL_LIBDIR=/usr/lib
10902 MYSQL_BINDIR=/usr/bin
10903 elif test -f /usr/local/include/mysql/mysql.h; then
10904 MYSQL_INCDIR=/usr/local/include/mysql
10905 MYSQL_LIBDIR=/usr/local/lib/mysql
10906 MYSQL_BINDIR=/usr/local/bin
10907 elif test -f /usr/local/include/mysql.h; then
10908 MYSQL_INCDIR=/usr/local/include
10909 MYSQL_LIBDIR=/usr/local/lib
10910 MYSQL_BINDIR=/usr/local/bin
10912 echo "$as_me:$LINENO: result: no" >&5
10913 echo "${ECHO_T}no" >&6
10914 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
10915 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
10916 { (exit 1); exit 1; }; }
10919 if test -f $withval/include/mysql/mysql.h; then
10920 MYSQL_INCDIR=$withval/include/mysql
10921 MYSQL_LIBDIR=$withval/lib/mysql
10922 MYSQL_BINDIR=$withval/bin
10923 elif test -f $withval/include/mysql.h; then
10924 MYSQL_INCDIR=$withval/include
10925 MYSQL_LIBDIR=$withval/lib
10926 MYSQL_BINDIR=$withval/bin
10928 echo "$as_me:$LINENO: result: no" >&5
10929 echo "${ECHO_T}no" >&6
10930 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
10931 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
10932 { (exit 1); exit 1; }; }
10935 SQL_INCLUDE=-I$MYSQL_INCDIR
10936 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
10937 SQL_BINDIR=$MYSQL_BINDIR
10939 cat >>confdefs.h <<\_ACEOF
10940 #define HAVE_MYSQL 1
10943 cat >>confdefs.h <<\_ACEOF
10944 #define HAVE_EMBEDDED_MYSQL 1
10947 echo "$as_me:$LINENO: result: yes" >&5
10948 echo "${ECHO_T}yes" >&6
10955 echo "$as_me:$LINENO: result: no" >&5
10956 echo "${ECHO_T}no" >&6
10971 echo "$as_me:$LINENO: checking for SQLite3 support" >&5
10972 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6
10974 # Check whether --with-sqlite3 or --without-sqlite3 was given.
10975 if test "${with_sqlite3+set}" = set; then
10976 withval="$with_sqlite3"
10978 if test "$withval" != "no"; then
10979 if test "$withval" = "yes"; then
10980 if test -f /usr/local/include/sqlite3.h; then
10981 SQLITE_INCDIR=/usr/local/include
10982 SQLITE_LIBDIR=/usr/local/lib
10983 SQLITE_BINDIR=/usr/local/bin
10984 elif test -f /usr/include/sqlite3.h; then
10985 SQLITE_INCDIR=/usr/include
10986 SQLITE_LIBDIR=/usr/lib
10987 SQLITE_BINDIR=/usr/bin
10988 elif test -f $prefix/include/sqlite3.h; then
10989 SQLITE_INCDIR=$prefix/include
10990 SQLITE_LIBDIR=$prefix/lib
10991 SQLITE_BINDIR=$prefix/bin
10993 echo "$as_me:$LINENO: result: no" >&5
10994 echo "${ECHO_T}no" >&6
10995 { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
10996 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
10997 { (exit 1); exit 1; }; }
11000 if test -f $withval/sqlite3.h; then
11001 SQLITE_INCDIR=$withval
11002 SQLITE_LIBDIR=$withval
11003 SQLITE_BINDIR=$withval
11004 elif test -f $withval/include/sqlite3.h; then
11005 SQLITE_INCDIR=$withval/include
11006 SQLITE_LIBDIR=$withval/lib
11007 SQLITE_BINDIR=$withval/bin
11009 echo "$as_me:$LINENO: result: no" >&5
11010 echo "${ECHO_T}no" >&6
11011 { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
11012 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
11013 { (exit 1); exit 1; }; }
11016 SQL_INCLUDE=-I$SQLITE_INCDIR
11017 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
11018 SQL_BINDIR=$SQLITE_BINDIR
11020 cat >>confdefs.h <<\_ACEOF
11021 #define HAVE_SQLITE3 1
11024 echo "$as_me:$LINENO: result: yes" >&5
11025 echo "${ECHO_T}yes" >&6
11027 support_sqlite3=yes
11032 echo "$as_me:$LINENO: result: no" >&5
11033 echo "${ECHO_T}no" >&6
11038 echo "$as_me:$LINENO: result: no" >&5
11039 echo "${ECHO_T}no" >&6
11050 echo "$as_me:$LINENO: checking for SQLite support" >&5
11051 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
11053 # Check whether --with-sqlite or --without-sqlite was given.
11054 if test "${with_sqlite+set}" = set; then
11055 withval="$with_sqlite"
11057 if test "$withval" != "no"; then
11058 if test "$withval" = "yes"; then
11059 if test -f /usr/local/include/sqlite.h; then
11060 SQLITE_INCDIR=/usr/local/include
11061 SQLITE_LIBDIR=/usr/local/lib
11062 SQLITE_BINDIR=/usr/local/bin
11063 elif test -f /usr/include/sqlite.h; then
11064 SQLITE_INCDIR=/usr/include
11065 SQLITE_LIBDIR=/usr/lib
11066 SQLITE_BINDIR=/usr/bin
11067 elif test -f $prefix/include/sqlite.h; then
11068 SQLITE_INCDIR=$prefix/include
11069 SQLITE_LIBDIR=$prefix/lib
11070 SQLITE_BINDIR=$prefix/bin
11072 echo "$as_me:$LINENO: result: no" >&5
11073 echo "${ECHO_T}no" >&6
11074 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
11075 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
11076 { (exit 1); exit 1; }; }
11079 if test -f $withval/sqlite.h; then
11080 SQLITE_INCDIR=$withval
11081 SQLITE_LIBDIR=$withval
11082 SQLITE_BINDIR=$withval
11083 elif test -f $withval/include/sqlite.h; then
11084 SQLITE_INCDIR=$withval/include
11085 SQLITE_LIBDIR=$withval/lib
11086 SQLITE_BINDIR=$withval/bin
11088 echo "$as_me:$LINENO: result: no" >&5
11089 echo "${ECHO_T}no" >&6
11090 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
11091 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
11092 { (exit 1); exit 1; }; }
11095 SQL_INCLUDE=-I$SQLITE_INCDIR
11096 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
11097 SQL_BINDIR=$SQLITE_BINDIR
11099 cat >>confdefs.h <<\_ACEOF
11100 #define HAVE_SQLITE 1
11103 echo "$as_me:$LINENO: result: yes" >&5
11104 echo "${ECHO_T}yes" >&6
11111 echo "$as_me:$LINENO: result: no" >&5
11112 echo "${ECHO_T}no" >&6
11117 echo "$as_me:$LINENO: result: no" >&5
11118 echo "${ECHO_T}no" >&6
11130 cat >>confdefs.h <<\_ACEOF
11131 #define PROTOTYPES 1
11135 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
11136 if test -z "$CCOPTS"; then
11137 CCOPTS='-g -O2 -Wall'
11145 largefile_support="no"
11147 # Check whether --enable-largefile or --disable-largefile was given.
11148 if test "${enable_largefile+set}" = set; then
11149 enableval="$enable_largefile"
11152 if test "$enable_largefile" != no; then
11153 if test -n "$ac_tool_prefix"; then
11154 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
11155 set dummy ${ac_tool_prefix}getconf; ac_word=$2
11156 echo "$as_me:$LINENO: checking for $ac_word" >&5
11157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11158 if test "${ac_cv_prog_GETCONF+set}" = set; then
11159 echo $ECHO_N "(cached) $ECHO_C" >&6
11161 if test -n "$GETCONF"; then
11162 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
11164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11165 for as_dir in $PATH
11168 test -z "$as_dir" && as_dir=.
11169 for ac_exec_ext in '' $ac_executable_extensions; do
11170 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11171 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
11172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11180 GETCONF=$ac_cv_prog_GETCONF
11181 if test -n "$GETCONF"; then
11182 echo "$as_me:$LINENO: result: $GETCONF" >&5
11183 echo "${ECHO_T}$GETCONF" >&6
11185 echo "$as_me:$LINENO: result: no" >&5
11186 echo "${ECHO_T}no" >&6
11190 if test -z "$ac_cv_prog_GETCONF"; then
11191 ac_ct_GETCONF=$GETCONF
11192 # Extract the first word of "getconf", so it can be a program name with args.
11193 set dummy getconf; ac_word=$2
11194 echo "$as_me:$LINENO: checking for $ac_word" >&5
11195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11196 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
11197 echo $ECHO_N "(cached) $ECHO_C" >&6
11199 if test -n "$ac_ct_GETCONF"; then
11200 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
11202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11203 for as_dir in $PATH
11206 test -z "$as_dir" && as_dir=.
11207 for ac_exec_ext in '' $ac_executable_extensions; do
11208 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11209 ac_cv_prog_ac_ct_GETCONF="getconf"
11210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11218 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
11219 if test -n "$ac_ct_GETCONF"; then
11220 echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
11221 echo "${ECHO_T}$ac_ct_GETCONF" >&6
11223 echo "$as_me:$LINENO: result: no" >&5
11224 echo "${ECHO_T}no" >&6
11227 GETCONF=$ac_ct_GETCONF
11229 GETCONF="$ac_cv_prog_GETCONF"
11232 echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
11233 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
11234 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
11235 echo $ECHO_N "(cached) $ECHO_C" >&6
11237 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
11238 ac_cv_sys_largefile_CFLAGS=no
11240 # IRIX 6.2 and later require cc -n32.
11241 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
11242 if test "$GCC" != yes; then
11243 ac_cv_sys_largefile_CFLAGS=-n32
11246 CC="$CC $ac_cv_sys_largefile_CFLAGS"
11247 cat >conftest.$ac_ext <<_ACEOF
11250 cat confdefs.h >>conftest.$ac_ext
11251 cat >>conftest.$ac_ext <<_ACEOF
11252 /* end confdefs.h. */
11262 rm -f conftest.$ac_objext conftest$ac_exeext
11263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11264 (eval $ac_link) 2>conftest.er1
11266 grep -v '^ *+' conftest.er1 >conftest.err
11268 cat conftest.err >&5
11269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11270 (exit $ac_status); } &&
11271 { ac_try='test -z "$ac_c_werror_flag"
11272 || test ! -s conftest.err'
11273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11274 (eval $ac_try) 2>&5
11276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11277 (exit $ac_status); }; } &&
11278 { ac_try='test -s conftest$ac_exeext'
11279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11280 (eval $ac_try) 2>&5
11282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11283 (exit $ac_status); }; }; then
11286 echo "$as_me: failed program was:" >&5
11287 sed 's/^/| /' conftest.$ac_ext >&5
11289 ac_cv_sys_largefile_CFLAGS=no
11291 rm -f conftest.err conftest.$ac_objext \
11292 conftest$ac_exeext conftest.$ac_ext
11297 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
11298 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
11299 echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
11300 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
11301 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
11302 echo $ECHO_N "(cached) $ECHO_C" >&6
11304 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
11305 ac_cv_sys_largefile_LDFLAGS=no
11309 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
11310 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
11311 echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
11312 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
11313 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
11314 echo $ECHO_N "(cached) $ECHO_C" >&6
11316 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
11317 ac_cv_sys_largefile_LIBS=no
11321 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
11322 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
11324 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
11327 -D_FILE_OFFSET_BITS=*) ;;
11328 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
11329 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
11334 case "$CPPFLAGS" in
11335 '') CPPFLAGS="$ac_flag" ;;
11336 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
11344 '') CFLAGS="$ac_flag" ;;
11345 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
11350 case "$ac_cv_sys_largefile_LDFLAGS" in
11354 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
11355 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
11358 case "$ac_cv_sys_largefile_LIBS" in
11362 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
11363 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
11366 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
11367 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
11368 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
11369 echo $ECHO_N "(cached) $ECHO_C" >&6
11371 ac_cv_sys_file_offset_bits=no
11372 ac_cv_sys_file_offset_bits=64
11373 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
11375 -D_FILE_OFFSET_BITS)
11376 ac_cv_sys_file_offset_bits=1 ;;
11377 -D_FILE_OFFSET_BITS=*)
11378 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
11383 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
11384 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
11385 if test "$ac_cv_sys_file_offset_bits" != no; then
11387 cat >>confdefs.h <<_ACEOF
11388 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11392 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
11393 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
11394 if test "${ac_cv_sys_largefile_source+set}" = set; then
11395 echo $ECHO_N "(cached) $ECHO_C" >&6
11397 ac_cv_sys_largefile_source=no
11398 ac_cv_sys_largefile_source=1
11399 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
11401 -D_LARGEFILE_SOURCE)
11402 ac_cv_sys_largefile_source=1 ;;
11403 -D_LARGEFILE_SOURCE=*)
11404 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
11409 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
11410 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
11411 if test "$ac_cv_sys_largefile_source" != no; then
11413 cat >>confdefs.h <<_ACEOF
11414 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
11418 echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
11419 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
11420 if test "${ac_cv_sys_large_files+set}" = set; then
11421 echo $ECHO_N "(cached) $ECHO_C" >&6
11423 ac_cv_sys_large_files=no
11424 ac_cv_sys_large_files=1
11425 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
11428 ac_cv_sys_large_files=1 ;;
11430 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
11435 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
11436 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
11437 if test "$ac_cv_sys_large_files" != no; then
11439 cat >>confdefs.h <<_ACEOF
11440 #define _LARGE_FILES $ac_cv_sys_large_files
11448 echo "$as_me:$LINENO: checking for X" >&5
11449 echo $ECHO_N "checking for X... $ECHO_C" >&6
11452 # Check whether --with-x or --without-x was given.
11453 if test "${with_x+set}" = set; then
11457 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
11458 if test "x$with_x" = xno; then
11459 # The user explicitly disabled X.
11462 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
11463 # Both variables are already set.
11466 if test "${ac_cv_have_x+set}" = set; then
11467 echo $ECHO_N "(cached) $ECHO_C" >&6
11469 # One or both of the vars are not set, and there is no cached value.
11470 ac_x_includes=no ac_x_libraries=no
11471 rm -fr conftest.dir
11472 if mkdir conftest.dir; then
11474 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
11475 cat >Imakefile <<'_ACEOF'
11477 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
11479 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
11480 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11481 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
11482 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
11483 for ac_extension in a so sl; do
11484 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
11485 test -f $ac_im_libdir/libX11.$ac_extension; then
11486 ac_im_usrlibdir=$ac_im_libdir; break
11489 # Screen out bogus values from the imake configuration. They are
11490 # bogus both because they are the default anyway, and because
11491 # using them would break gcc on systems where it needs fixed includes.
11492 case $ac_im_incroot in
11494 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
11496 case $ac_im_usrlibdir in
11497 /usr/lib | /lib) ;;
11498 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
11502 rm -fr conftest.dir
11505 # Standard set of common directories for X headers.
11506 # Check X11 before X11Rn because it is often a symlink to the current release.
11518 /usr/local/X11/include
11519 /usr/local/X11R6/include
11520 /usr/local/X11R5/include
11521 /usr/local/X11R4/include
11523 /usr/local/include/X11
11524 /usr/local/include/X11R6
11525 /usr/local/include/X11R5
11526 /usr/local/include/X11R4
11530 /usr/XFree86/include/X11
11534 /usr/unsupported/include
11535 /usr/athena/include
11536 /usr/local/x11r5/include
11537 /usr/lpp/Xamples/include
11539 /usr/openwin/include
11540 /usr/openwin/share/include'
11542 if test "$ac_x_includes" = no; then
11543 # Guess where to find include files, by looking for Intrinsic.h.
11544 # First, try using that file with no special directory specified.
11545 cat >conftest.$ac_ext <<_ACEOF
11548 cat confdefs.h >>conftest.$ac_ext
11549 cat >>conftest.$ac_ext <<_ACEOF
11550 /* end confdefs.h. */
11551 #include <X11/Intrinsic.h>
11553 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11554 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11556 grep -v '^ *+' conftest.er1 >conftest.err
11558 cat conftest.err >&5
11559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11560 (exit $ac_status); } >/dev/null; then
11561 if test -s conftest.err; then
11562 ac_cpp_err=$ac_c_preproc_warn_flag
11563 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11570 if test -z "$ac_cpp_err"; then
11571 # We can compile using X headers with no special include directory.
11574 echo "$as_me: failed program was:" >&5
11575 sed 's/^/| /' conftest.$ac_ext >&5
11577 for ac_dir in $ac_x_header_dirs; do
11578 if test -r "$ac_dir/X11/Intrinsic.h"; then
11579 ac_x_includes=$ac_dir
11584 rm -f conftest.err conftest.$ac_ext
11585 fi # $ac_x_includes = no
11587 if test "$ac_x_libraries" = no; then
11588 # Check for the libraries.
11589 # See if we find them without any special options.
11590 # Don't add to $LIBS permanently.
11593 cat >conftest.$ac_ext <<_ACEOF
11596 cat confdefs.h >>conftest.$ac_ext
11597 cat >>conftest.$ac_ext <<_ACEOF
11598 /* end confdefs.h. */
11599 #include <X11/Intrinsic.h>
11608 rm -f conftest.$ac_objext conftest$ac_exeext
11609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11610 (eval $ac_link) 2>conftest.er1
11612 grep -v '^ *+' conftest.er1 >conftest.err
11614 cat conftest.err >&5
11615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11616 (exit $ac_status); } &&
11617 { ac_try='test -z "$ac_c_werror_flag"
11618 || test ! -s conftest.err'
11619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11620 (eval $ac_try) 2>&5
11622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11623 (exit $ac_status); }; } &&
11624 { ac_try='test -s conftest$ac_exeext'
11625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11626 (eval $ac_try) 2>&5
11628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11629 (exit $ac_status); }; }; then
11631 # We can link X programs with no special library path.
11634 echo "$as_me: failed program was:" >&5
11635 sed 's/^/| /' conftest.$ac_ext >&5
11638 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
11640 # Don't even attempt the hair of trying to link an X program!
11641 for ac_extension in a so sl; do
11642 if test -r $ac_dir/libXt.$ac_extension; then
11643 ac_x_libraries=$ac_dir
11649 rm -f conftest.err conftest.$ac_objext \
11650 conftest$ac_exeext conftest.$ac_ext
11651 fi # $ac_x_libraries = no
11653 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
11654 # Didn't find X anywhere. Cache the known absence of X.
11655 ac_cv_have_x="have_x=no"
11657 # Record where we found X for the cache.
11658 ac_cv_have_x="have_x=yes \
11659 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
11664 eval "$ac_cv_have_x"
11667 if test "$have_x" != yes; then
11668 echo "$as_me:$LINENO: result: $have_x" >&5
11669 echo "${ECHO_T}$have_x" >&6
11672 # If each of the values was on the command line, it overrides each guess.
11673 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
11674 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
11675 # Update the cache value to reflect the command line values.
11676 ac_cv_have_x="have_x=yes \
11677 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
11678 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
11679 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
11682 if test "$no_x" = yes; then
11683 # Not all programs may use this symbol, but it does not hurt to define it.
11685 cat >>confdefs.h <<\_ACEOF
11686 #define X_DISPLAY_MISSING 1
11689 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
11691 if test -n "$x_includes"; then
11692 X_CFLAGS="$X_CFLAGS -I$x_includes"
11695 # It would also be nice to do this for all -L options, not just this one.
11696 if test -n "$x_libraries"; then
11697 X_LIBS="$X_LIBS -L$x_libraries"
11698 # For Solaris; some versions of Sun CC require a space after -R and
11699 # others require no space. Words are not sufficient . . . .
11700 case `(uname -sr) 2>/dev/null` in
11702 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
11703 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
11704 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
11705 cat >conftest.$ac_ext <<_ACEOF
11708 cat confdefs.h >>conftest.$ac_ext
11709 cat >>conftest.$ac_ext <<_ACEOF
11710 /* end confdefs.h. */
11720 rm -f conftest.$ac_objext conftest$ac_exeext
11721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11722 (eval $ac_link) 2>conftest.er1
11724 grep -v '^ *+' conftest.er1 >conftest.err
11726 cat conftest.err >&5
11727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728 (exit $ac_status); } &&
11729 { ac_try='test -z "$ac_c_werror_flag"
11730 || test ! -s conftest.err'
11731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11732 (eval $ac_try) 2>&5
11734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11735 (exit $ac_status); }; } &&
11736 { ac_try='test -s conftest$ac_exeext'
11737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11738 (eval $ac_try) 2>&5
11740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11741 (exit $ac_status); }; }; then
11744 echo "$as_me: failed program was:" >&5
11745 sed 's/^/| /' conftest.$ac_ext >&5
11749 rm -f conftest.err conftest.$ac_objext \
11750 conftest$ac_exeext conftest.$ac_ext
11751 if test $ac_R_nospace = yes; then
11752 echo "$as_me:$LINENO: result: no" >&5
11753 echo "${ECHO_T}no" >&6
11754 X_LIBS="$X_LIBS -R$x_libraries"
11756 LIBS="$ac_xsave_LIBS -R $x_libraries"
11757 cat >conftest.$ac_ext <<_ACEOF
11760 cat confdefs.h >>conftest.$ac_ext
11761 cat >>conftest.$ac_ext <<_ACEOF
11762 /* end confdefs.h. */
11772 rm -f conftest.$ac_objext conftest$ac_exeext
11773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11774 (eval $ac_link) 2>conftest.er1
11776 grep -v '^ *+' conftest.er1 >conftest.err
11778 cat conftest.err >&5
11779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11780 (exit $ac_status); } &&
11781 { ac_try='test -z "$ac_c_werror_flag"
11782 || test ! -s conftest.err'
11783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11784 (eval $ac_try) 2>&5
11786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11787 (exit $ac_status); }; } &&
11788 { ac_try='test -s conftest$ac_exeext'
11789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11790 (eval $ac_try) 2>&5
11792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793 (exit $ac_status); }; }; then
11796 echo "$as_me: failed program was:" >&5
11797 sed 's/^/| /' conftest.$ac_ext >&5
11801 rm -f conftest.err conftest.$ac_objext \
11802 conftest$ac_exeext conftest.$ac_ext
11803 if test $ac_R_space = yes; then
11804 echo "$as_me:$LINENO: result: yes" >&5
11805 echo "${ECHO_T}yes" >&6
11806 X_LIBS="$X_LIBS -R $x_libraries"
11808 echo "$as_me:$LINENO: result: neither works" >&5
11809 echo "${ECHO_T}neither works" >&6
11812 LIBS=$ac_xsave_LIBS
11816 # Check for system-dependent libraries X programs must link with.
11817 # Do this before checking for the system-independent R6 libraries
11818 # (-lICE), since we may need -lsocket or whatever for X linking.
11820 if test "$ISC" = yes; then
11821 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
11823 # Martyn Johnson says this is needed for Ultrix, if the X
11824 # libraries were built with DECnet support. And Karl Berry says
11825 # the Alpha needs dnet_stub (dnet does not exist).
11826 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
11827 cat >conftest.$ac_ext <<_ACEOF
11830 cat confdefs.h >>conftest.$ac_ext
11831 cat >>conftest.$ac_ext <<_ACEOF
11832 /* end confdefs.h. */
11834 /* Override any gcc2 internal prototype to avoid an error. */
11838 /* We use char because int might match the return type of a gcc2
11839 builtin and then its argument prototype would still apply. */
11840 char XOpenDisplay ();
11849 rm -f conftest.$ac_objext conftest$ac_exeext
11850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11851 (eval $ac_link) 2>conftest.er1
11853 grep -v '^ *+' conftest.er1 >conftest.err
11855 cat conftest.err >&5
11856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11857 (exit $ac_status); } &&
11858 { ac_try='test -z "$ac_c_werror_flag"
11859 || test ! -s conftest.err'
11860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11861 (eval $ac_try) 2>&5
11863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11864 (exit $ac_status); }; } &&
11865 { ac_try='test -s conftest$ac_exeext'
11866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11867 (eval $ac_try) 2>&5
11869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11870 (exit $ac_status); }; }; then
11873 echo "$as_me: failed program was:" >&5
11874 sed 's/^/| /' conftest.$ac_ext >&5
11876 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
11877 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
11878 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
11879 echo $ECHO_N "(cached) $ECHO_C" >&6
11881 ac_check_lib_save_LIBS=$LIBS
11882 LIBS="-ldnet $LIBS"
11883 cat >conftest.$ac_ext <<_ACEOF
11886 cat confdefs.h >>conftest.$ac_ext
11887 cat >>conftest.$ac_ext <<_ACEOF
11888 /* end confdefs.h. */
11890 /* Override any gcc2 internal prototype to avoid an error. */
11894 /* We use char because int might match the return type of a gcc2
11895 builtin and then its argument prototype would still apply. */
11905 rm -f conftest.$ac_objext conftest$ac_exeext
11906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11907 (eval $ac_link) 2>conftest.er1
11909 grep -v '^ *+' conftest.er1 >conftest.err
11911 cat conftest.err >&5
11912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913 (exit $ac_status); } &&
11914 { ac_try='test -z "$ac_c_werror_flag"
11915 || test ! -s conftest.err'
11916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11917 (eval $ac_try) 2>&5
11919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11920 (exit $ac_status); }; } &&
11921 { ac_try='test -s conftest$ac_exeext'
11922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11923 (eval $ac_try) 2>&5
11925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11926 (exit $ac_status); }; }; then
11927 ac_cv_lib_dnet_dnet_ntoa=yes
11929 echo "$as_me: failed program was:" >&5
11930 sed 's/^/| /' conftest.$ac_ext >&5
11932 ac_cv_lib_dnet_dnet_ntoa=no
11934 rm -f conftest.err conftest.$ac_objext \
11935 conftest$ac_exeext conftest.$ac_ext
11936 LIBS=$ac_check_lib_save_LIBS
11938 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
11939 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
11940 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
11941 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
11944 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
11945 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
11946 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
11947 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
11948 echo $ECHO_N "(cached) $ECHO_C" >&6
11950 ac_check_lib_save_LIBS=$LIBS
11951 LIBS="-ldnet_stub $LIBS"
11952 cat >conftest.$ac_ext <<_ACEOF
11955 cat confdefs.h >>conftest.$ac_ext
11956 cat >>conftest.$ac_ext <<_ACEOF
11957 /* end confdefs.h. */
11959 /* Override any gcc2 internal prototype to avoid an error. */
11963 /* We use char because int might match the return type of a gcc2
11964 builtin and then its argument prototype would still apply. */
11974 rm -f conftest.$ac_objext conftest$ac_exeext
11975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11976 (eval $ac_link) 2>conftest.er1
11978 grep -v '^ *+' conftest.er1 >conftest.err
11980 cat conftest.err >&5
11981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11982 (exit $ac_status); } &&
11983 { ac_try='test -z "$ac_c_werror_flag"
11984 || test ! -s conftest.err'
11985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11986 (eval $ac_try) 2>&5
11988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11989 (exit $ac_status); }; } &&
11990 { ac_try='test -s conftest$ac_exeext'
11991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11992 (eval $ac_try) 2>&5
11994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11995 (exit $ac_status); }; }; then
11996 ac_cv_lib_dnet_stub_dnet_ntoa=yes
11998 echo "$as_me: failed program was:" >&5
11999 sed 's/^/| /' conftest.$ac_ext >&5
12001 ac_cv_lib_dnet_stub_dnet_ntoa=no
12003 rm -f conftest.err conftest.$ac_objext \
12004 conftest$ac_exeext conftest.$ac_ext
12005 LIBS=$ac_check_lib_save_LIBS
12007 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
12008 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
12009 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
12010 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
12015 rm -f conftest.err conftest.$ac_objext \
12016 conftest$ac_exeext conftest.$ac_ext
12017 LIBS="$ac_xsave_LIBS"
12019 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
12020 # to get the SysV transport functions.
12021 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
12023 # The nsl library prevents programs from opening the X display
12024 # on Irix 5.2, according to T.E. Dickey.
12025 # The functions gethostbyname, getservbyname, and inet_addr are
12026 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
12027 echo "$as_me:$LINENO: checking for gethostbyname" >&5
12028 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
12029 if test "${ac_cv_func_gethostbyname+set}" = set; then
12030 echo $ECHO_N "(cached) $ECHO_C" >&6
12032 cat >conftest.$ac_ext <<_ACEOF
12035 cat confdefs.h >>conftest.$ac_ext
12036 cat >>conftest.$ac_ext <<_ACEOF
12037 /* end confdefs.h. */
12038 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
12039 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12040 #define gethostbyname innocuous_gethostbyname
12042 /* System header to define __stub macros and hopefully few prototypes,
12043 which can conflict with char gethostbyname (); below.
12044 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12045 <limits.h> exists even on freestanding compilers. */
12048 # include <limits.h>
12050 # include <assert.h>
12053 #undef gethostbyname
12055 /* Override any gcc2 internal prototype to avoid an error. */
12060 /* We use char because int might match the return type of a gcc2
12061 builtin and then its argument prototype would still apply. */
12062 char gethostbyname ();
12063 /* The GNU C library defines this for functions which it implements
12064 to always fail with ENOSYS. Some functions are actually named
12065 something starting with __ and the normal name is an alias. */
12066 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
12069 char (*f) () = gethostbyname;
12078 return f != gethostbyname;
12083 rm -f conftest.$ac_objext conftest$ac_exeext
12084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12085 (eval $ac_link) 2>conftest.er1
12087 grep -v '^ *+' conftest.er1 >conftest.err
12089 cat conftest.err >&5
12090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12091 (exit $ac_status); } &&
12092 { ac_try='test -z "$ac_c_werror_flag"
12093 || test ! -s conftest.err'
12094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12095 (eval $ac_try) 2>&5
12097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12098 (exit $ac_status); }; } &&
12099 { ac_try='test -s conftest$ac_exeext'
12100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12101 (eval $ac_try) 2>&5
12103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12104 (exit $ac_status); }; }; then
12105 ac_cv_func_gethostbyname=yes
12107 echo "$as_me: failed program was:" >&5
12108 sed 's/^/| /' conftest.$ac_ext >&5
12110 ac_cv_func_gethostbyname=no
12112 rm -f conftest.err conftest.$ac_objext \
12113 conftest$ac_exeext conftest.$ac_ext
12115 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
12116 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
12118 if test $ac_cv_func_gethostbyname = no; then
12119 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
12120 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
12121 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
12122 echo $ECHO_N "(cached) $ECHO_C" >&6
12124 ac_check_lib_save_LIBS=$LIBS
12126 cat >conftest.$ac_ext <<_ACEOF
12129 cat confdefs.h >>conftest.$ac_ext
12130 cat >>conftest.$ac_ext <<_ACEOF
12131 /* end confdefs.h. */
12133 /* Override any gcc2 internal prototype to avoid an error. */
12137 /* We use char because int might match the return type of a gcc2
12138 builtin and then its argument prototype would still apply. */
12139 char gethostbyname ();
12148 rm -f conftest.$ac_objext conftest$ac_exeext
12149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12150 (eval $ac_link) 2>conftest.er1
12152 grep -v '^ *+' conftest.er1 >conftest.err
12154 cat conftest.err >&5
12155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12156 (exit $ac_status); } &&
12157 { ac_try='test -z "$ac_c_werror_flag"
12158 || test ! -s conftest.err'
12159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12160 (eval $ac_try) 2>&5
12162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12163 (exit $ac_status); }; } &&
12164 { ac_try='test -s conftest$ac_exeext'
12165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12166 (eval $ac_try) 2>&5
12168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12169 (exit $ac_status); }; }; then
12170 ac_cv_lib_nsl_gethostbyname=yes
12172 echo "$as_me: failed program was:" >&5
12173 sed 's/^/| /' conftest.$ac_ext >&5
12175 ac_cv_lib_nsl_gethostbyname=no
12177 rm -f conftest.err conftest.$ac_objext \
12178 conftest$ac_exeext conftest.$ac_ext
12179 LIBS=$ac_check_lib_save_LIBS
12181 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
12182 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
12183 if test $ac_cv_lib_nsl_gethostbyname = yes; then
12184 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
12187 if test $ac_cv_lib_nsl_gethostbyname = no; then
12188 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
12189 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
12190 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
12191 echo $ECHO_N "(cached) $ECHO_C" >&6
12193 ac_check_lib_save_LIBS=$LIBS
12195 cat >conftest.$ac_ext <<_ACEOF
12198 cat confdefs.h >>conftest.$ac_ext
12199 cat >>conftest.$ac_ext <<_ACEOF
12200 /* end confdefs.h. */
12202 /* Override any gcc2 internal prototype to avoid an error. */
12206 /* We use char because int might match the return type of a gcc2
12207 builtin and then its argument prototype would still apply. */
12208 char gethostbyname ();
12217 rm -f conftest.$ac_objext conftest$ac_exeext
12218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12219 (eval $ac_link) 2>conftest.er1
12221 grep -v '^ *+' conftest.er1 >conftest.err
12223 cat conftest.err >&5
12224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12225 (exit $ac_status); } &&
12226 { ac_try='test -z "$ac_c_werror_flag"
12227 || test ! -s conftest.err'
12228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12229 (eval $ac_try) 2>&5
12231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12232 (exit $ac_status); }; } &&
12233 { ac_try='test -s conftest$ac_exeext'
12234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12235 (eval $ac_try) 2>&5
12237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12238 (exit $ac_status); }; }; then
12239 ac_cv_lib_bsd_gethostbyname=yes
12241 echo "$as_me: failed program was:" >&5
12242 sed 's/^/| /' conftest.$ac_ext >&5
12244 ac_cv_lib_bsd_gethostbyname=no
12246 rm -f conftest.err conftest.$ac_objext \
12247 conftest$ac_exeext conftest.$ac_ext
12248 LIBS=$ac_check_lib_save_LIBS
12250 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
12251 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
12252 if test $ac_cv_lib_bsd_gethostbyname = yes; then
12253 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
12259 # lieder@skyler.mavd.honeywell.com says without -lsocket,
12260 # socket/setsockopt and other routines are undefined under SCO ODT
12261 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
12262 # on later versions), says Simon Leinen: it contains gethostby*
12263 # variants that don't use the name server (or something). -lsocket
12264 # must be given before -lnsl if both are needed. We assume that
12265 # if connect needs -lnsl, so does gethostbyname.
12266 echo "$as_me:$LINENO: checking for connect" >&5
12267 echo $ECHO_N "checking for connect... $ECHO_C" >&6
12268 if test "${ac_cv_func_connect+set}" = set; then
12269 echo $ECHO_N "(cached) $ECHO_C" >&6
12271 cat >conftest.$ac_ext <<_ACEOF
12274 cat confdefs.h >>conftest.$ac_ext
12275 cat >>conftest.$ac_ext <<_ACEOF
12276 /* end confdefs.h. */
12277 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
12278 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12279 #define connect innocuous_connect
12281 /* System header to define __stub macros and hopefully few prototypes,
12282 which can conflict with char connect (); below.
12283 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12284 <limits.h> exists even on freestanding compilers. */
12287 # include <limits.h>
12289 # include <assert.h>
12294 /* Override any gcc2 internal prototype to avoid an error. */
12299 /* We use char because int might match the return type of a gcc2
12300 builtin and then its argument prototype would still apply. */
12302 /* The GNU C library defines this for functions which it implements
12303 to always fail with ENOSYS. Some functions are actually named
12304 something starting with __ and the normal name is an alias. */
12305 #if defined (__stub_connect) || defined (__stub___connect)
12308 char (*f) () = connect;
12317 return f != connect;
12322 rm -f conftest.$ac_objext conftest$ac_exeext
12323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12324 (eval $ac_link) 2>conftest.er1
12326 grep -v '^ *+' conftest.er1 >conftest.err
12328 cat conftest.err >&5
12329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12330 (exit $ac_status); } &&
12331 { ac_try='test -z "$ac_c_werror_flag"
12332 || test ! -s conftest.err'
12333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12334 (eval $ac_try) 2>&5
12336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12337 (exit $ac_status); }; } &&
12338 { ac_try='test -s conftest$ac_exeext'
12339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12340 (eval $ac_try) 2>&5
12342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343 (exit $ac_status); }; }; then
12344 ac_cv_func_connect=yes
12346 echo "$as_me: failed program was:" >&5
12347 sed 's/^/| /' conftest.$ac_ext >&5
12349 ac_cv_func_connect=no
12351 rm -f conftest.err conftest.$ac_objext \
12352 conftest$ac_exeext conftest.$ac_ext
12354 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
12355 echo "${ECHO_T}$ac_cv_func_connect" >&6
12357 if test $ac_cv_func_connect = no; then
12358 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
12359 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
12360 if test "${ac_cv_lib_socket_connect+set}" = set; then
12361 echo $ECHO_N "(cached) $ECHO_C" >&6
12363 ac_check_lib_save_LIBS=$LIBS
12364 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
12365 cat >conftest.$ac_ext <<_ACEOF
12368 cat confdefs.h >>conftest.$ac_ext
12369 cat >>conftest.$ac_ext <<_ACEOF
12370 /* end confdefs.h. */
12372 /* Override any gcc2 internal prototype to avoid an error. */
12376 /* We use char because int might match the return type of a gcc2
12377 builtin and then its argument prototype would still apply. */
12387 rm -f conftest.$ac_objext conftest$ac_exeext
12388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12389 (eval $ac_link) 2>conftest.er1
12391 grep -v '^ *+' conftest.er1 >conftest.err
12393 cat conftest.err >&5
12394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12395 (exit $ac_status); } &&
12396 { ac_try='test -z "$ac_c_werror_flag"
12397 || test ! -s conftest.err'
12398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12399 (eval $ac_try) 2>&5
12401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12402 (exit $ac_status); }; } &&
12403 { ac_try='test -s conftest$ac_exeext'
12404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12405 (eval $ac_try) 2>&5
12407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12408 (exit $ac_status); }; }; then
12409 ac_cv_lib_socket_connect=yes
12411 echo "$as_me: failed program was:" >&5
12412 sed 's/^/| /' conftest.$ac_ext >&5
12414 ac_cv_lib_socket_connect=no
12416 rm -f conftest.err conftest.$ac_objext \
12417 conftest$ac_exeext conftest.$ac_ext
12418 LIBS=$ac_check_lib_save_LIBS
12420 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
12421 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
12422 if test $ac_cv_lib_socket_connect = yes; then
12423 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
12428 # Guillermo Gomez says -lposix is necessary on A/UX.
12429 echo "$as_me:$LINENO: checking for remove" >&5
12430 echo $ECHO_N "checking for remove... $ECHO_C" >&6
12431 if test "${ac_cv_func_remove+set}" = set; then
12432 echo $ECHO_N "(cached) $ECHO_C" >&6
12434 cat >conftest.$ac_ext <<_ACEOF
12437 cat confdefs.h >>conftest.$ac_ext
12438 cat >>conftest.$ac_ext <<_ACEOF
12439 /* end confdefs.h. */
12440 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
12441 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12442 #define remove innocuous_remove
12444 /* System header to define __stub macros and hopefully few prototypes,
12445 which can conflict with char remove (); below.
12446 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12447 <limits.h> exists even on freestanding compilers. */
12450 # include <limits.h>
12452 # include <assert.h>
12457 /* Override any gcc2 internal prototype to avoid an error. */
12462 /* We use char because int might match the return type of a gcc2
12463 builtin and then its argument prototype would still apply. */
12465 /* The GNU C library defines this for functions which it implements
12466 to always fail with ENOSYS. Some functions are actually named
12467 something starting with __ and the normal name is an alias. */
12468 #if defined (__stub_remove) || defined (__stub___remove)
12471 char (*f) () = remove;
12480 return f != remove;
12485 rm -f conftest.$ac_objext conftest$ac_exeext
12486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12487 (eval $ac_link) 2>conftest.er1
12489 grep -v '^ *+' conftest.er1 >conftest.err
12491 cat conftest.err >&5
12492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12493 (exit $ac_status); } &&
12494 { ac_try='test -z "$ac_c_werror_flag"
12495 || test ! -s conftest.err'
12496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12497 (eval $ac_try) 2>&5
12499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12500 (exit $ac_status); }; } &&
12501 { ac_try='test -s conftest$ac_exeext'
12502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12503 (eval $ac_try) 2>&5
12505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12506 (exit $ac_status); }; }; then
12507 ac_cv_func_remove=yes
12509 echo "$as_me: failed program was:" >&5
12510 sed 's/^/| /' conftest.$ac_ext >&5
12512 ac_cv_func_remove=no
12514 rm -f conftest.err conftest.$ac_objext \
12515 conftest$ac_exeext conftest.$ac_ext
12517 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
12518 echo "${ECHO_T}$ac_cv_func_remove" >&6
12520 if test $ac_cv_func_remove = no; then
12521 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
12522 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
12523 if test "${ac_cv_lib_posix_remove+set}" = set; then
12524 echo $ECHO_N "(cached) $ECHO_C" >&6
12526 ac_check_lib_save_LIBS=$LIBS
12527 LIBS="-lposix $LIBS"
12528 cat >conftest.$ac_ext <<_ACEOF
12531 cat confdefs.h >>conftest.$ac_ext
12532 cat >>conftest.$ac_ext <<_ACEOF
12533 /* end confdefs.h. */
12535 /* Override any gcc2 internal prototype to avoid an error. */
12539 /* We use char because int might match the return type of a gcc2
12540 builtin and then its argument prototype would still apply. */
12550 rm -f conftest.$ac_objext conftest$ac_exeext
12551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12552 (eval $ac_link) 2>conftest.er1
12554 grep -v '^ *+' conftest.er1 >conftest.err
12556 cat conftest.err >&5
12557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12558 (exit $ac_status); } &&
12559 { ac_try='test -z "$ac_c_werror_flag"
12560 || test ! -s conftest.err'
12561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12562 (eval $ac_try) 2>&5
12564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12565 (exit $ac_status); }; } &&
12566 { ac_try='test -s conftest$ac_exeext'
12567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12568 (eval $ac_try) 2>&5
12570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12571 (exit $ac_status); }; }; then
12572 ac_cv_lib_posix_remove=yes
12574 echo "$as_me: failed program was:" >&5
12575 sed 's/^/| /' conftest.$ac_ext >&5
12577 ac_cv_lib_posix_remove=no
12579 rm -f conftest.err conftest.$ac_objext \
12580 conftest$ac_exeext conftest.$ac_ext
12581 LIBS=$ac_check_lib_save_LIBS
12583 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
12584 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
12585 if test $ac_cv_lib_posix_remove = yes; then
12586 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
12591 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
12592 echo "$as_me:$LINENO: checking for shmat" >&5
12593 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
12594 if test "${ac_cv_func_shmat+set}" = set; then
12595 echo $ECHO_N "(cached) $ECHO_C" >&6
12597 cat >conftest.$ac_ext <<_ACEOF
12600 cat confdefs.h >>conftest.$ac_ext
12601 cat >>conftest.$ac_ext <<_ACEOF
12602 /* end confdefs.h. */
12603 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
12604 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12605 #define shmat innocuous_shmat
12607 /* System header to define __stub macros and hopefully few prototypes,
12608 which can conflict with char shmat (); below.
12609 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12610 <limits.h> exists even on freestanding compilers. */
12613 # include <limits.h>
12615 # include <assert.h>
12620 /* Override any gcc2 internal prototype to avoid an error. */
12625 /* We use char because int might match the return type of a gcc2
12626 builtin and then its argument prototype would still apply. */
12628 /* The GNU C library defines this for functions which it implements
12629 to always fail with ENOSYS. Some functions are actually named
12630 something starting with __ and the normal name is an alias. */
12631 #if defined (__stub_shmat) || defined (__stub___shmat)
12634 char (*f) () = shmat;
12648 rm -f conftest.$ac_objext conftest$ac_exeext
12649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12650 (eval $ac_link) 2>conftest.er1
12652 grep -v '^ *+' conftest.er1 >conftest.err
12654 cat conftest.err >&5
12655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12656 (exit $ac_status); } &&
12657 { ac_try='test -z "$ac_c_werror_flag"
12658 || test ! -s conftest.err'
12659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12660 (eval $ac_try) 2>&5
12662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12663 (exit $ac_status); }; } &&
12664 { ac_try='test -s conftest$ac_exeext'
12665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12666 (eval $ac_try) 2>&5
12668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12669 (exit $ac_status); }; }; then
12670 ac_cv_func_shmat=yes
12672 echo "$as_me: failed program was:" >&5
12673 sed 's/^/| /' conftest.$ac_ext >&5
12675 ac_cv_func_shmat=no
12677 rm -f conftest.err conftest.$ac_objext \
12678 conftest$ac_exeext conftest.$ac_ext
12680 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
12681 echo "${ECHO_T}$ac_cv_func_shmat" >&6
12683 if test $ac_cv_func_shmat = no; then
12684 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
12685 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
12686 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
12687 echo $ECHO_N "(cached) $ECHO_C" >&6
12689 ac_check_lib_save_LIBS=$LIBS
12691 cat >conftest.$ac_ext <<_ACEOF
12694 cat confdefs.h >>conftest.$ac_ext
12695 cat >>conftest.$ac_ext <<_ACEOF
12696 /* end confdefs.h. */
12698 /* Override any gcc2 internal prototype to avoid an error. */
12702 /* We use char because int might match the return type of a gcc2
12703 builtin and then its argument prototype would still apply. */
12713 rm -f conftest.$ac_objext conftest$ac_exeext
12714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12715 (eval $ac_link) 2>conftest.er1
12717 grep -v '^ *+' conftest.er1 >conftest.err
12719 cat conftest.err >&5
12720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12721 (exit $ac_status); } &&
12722 { ac_try='test -z "$ac_c_werror_flag"
12723 || test ! -s conftest.err'
12724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12725 (eval $ac_try) 2>&5
12727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12728 (exit $ac_status); }; } &&
12729 { ac_try='test -s conftest$ac_exeext'
12730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12731 (eval $ac_try) 2>&5
12733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12734 (exit $ac_status); }; }; then
12735 ac_cv_lib_ipc_shmat=yes
12737 echo "$as_me: failed program was:" >&5
12738 sed 's/^/| /' conftest.$ac_ext >&5
12740 ac_cv_lib_ipc_shmat=no
12742 rm -f conftest.err conftest.$ac_objext \
12743 conftest$ac_exeext conftest.$ac_ext
12744 LIBS=$ac_check_lib_save_LIBS
12746 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
12747 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
12748 if test $ac_cv_lib_ipc_shmat = yes; then
12749 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
12755 # Check for libraries that X11R6 Xt/Xaw programs need.
12756 ac_save_LDFLAGS=$LDFLAGS
12757 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
12758 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
12759 # check for ICE first), but we must link in the order -lSM -lICE or
12760 # we get undefined symbols. So assume we have SM if we have ICE.
12761 # These have to be linked with before -lX11, unlike the other
12762 # libraries we check for below, so use a different variable.
12763 # John Interrante, Karl Berry
12764 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
12765 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
12766 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
12767 echo $ECHO_N "(cached) $ECHO_C" >&6
12769 ac_check_lib_save_LIBS=$LIBS
12770 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
12771 cat >conftest.$ac_ext <<_ACEOF
12774 cat confdefs.h >>conftest.$ac_ext
12775 cat >>conftest.$ac_ext <<_ACEOF
12776 /* end confdefs.h. */
12778 /* Override any gcc2 internal prototype to avoid an error. */
12782 /* We use char because int might match the return type of a gcc2
12783 builtin and then its argument prototype would still apply. */
12784 char IceConnectionNumber ();
12788 IceConnectionNumber ();
12793 rm -f conftest.$ac_objext conftest$ac_exeext
12794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12795 (eval $ac_link) 2>conftest.er1
12797 grep -v '^ *+' conftest.er1 >conftest.err
12799 cat conftest.err >&5
12800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801 (exit $ac_status); } &&
12802 { ac_try='test -z "$ac_c_werror_flag"
12803 || test ! -s conftest.err'
12804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12805 (eval $ac_try) 2>&5
12807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12808 (exit $ac_status); }; } &&
12809 { ac_try='test -s conftest$ac_exeext'
12810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12811 (eval $ac_try) 2>&5
12813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12814 (exit $ac_status); }; }; then
12815 ac_cv_lib_ICE_IceConnectionNumber=yes
12817 echo "$as_me: failed program was:" >&5
12818 sed 's/^/| /' conftest.$ac_ext >&5
12820 ac_cv_lib_ICE_IceConnectionNumber=no
12822 rm -f conftest.err conftest.$ac_objext \
12823 conftest$ac_exeext conftest.$ac_ext
12824 LIBS=$ac_check_lib_save_LIBS
12826 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
12827 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
12828 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
12829 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
12832 LDFLAGS=$ac_save_LDFLAGS
12894 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12895 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12896 echo "$as_me:$LINENO: checking for $ac_header" >&5
12897 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12898 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12899 echo $ECHO_N "(cached) $ECHO_C" >&6
12901 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12902 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12904 # Is the header compilable?
12905 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12906 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12907 cat >conftest.$ac_ext <<_ACEOF
12910 cat confdefs.h >>conftest.$ac_ext
12911 cat >>conftest.$ac_ext <<_ACEOF
12912 /* end confdefs.h. */
12913 $ac_includes_default
12914 #include <$ac_header>
12916 rm -f conftest.$ac_objext
12917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12918 (eval $ac_compile) 2>conftest.er1
12920 grep -v '^ *+' conftest.er1 >conftest.err
12922 cat conftest.err >&5
12923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12924 (exit $ac_status); } &&
12925 { ac_try='test -z "$ac_c_werror_flag"
12926 || test ! -s conftest.err'
12927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12928 (eval $ac_try) 2>&5
12930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12931 (exit $ac_status); }; } &&
12932 { ac_try='test -s conftest.$ac_objext'
12933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12934 (eval $ac_try) 2>&5
12936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12937 (exit $ac_status); }; }; then
12938 ac_header_compiler=yes
12940 echo "$as_me: failed program was:" >&5
12941 sed 's/^/| /' conftest.$ac_ext >&5
12943 ac_header_compiler=no
12945 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12946 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12947 echo "${ECHO_T}$ac_header_compiler" >&6
12949 # Is the header present?
12950 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12951 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12952 cat >conftest.$ac_ext <<_ACEOF
12955 cat confdefs.h >>conftest.$ac_ext
12956 cat >>conftest.$ac_ext <<_ACEOF
12957 /* end confdefs.h. */
12958 #include <$ac_header>
12960 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12961 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12963 grep -v '^ *+' conftest.er1 >conftest.err
12965 cat conftest.err >&5
12966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12967 (exit $ac_status); } >/dev/null; then
12968 if test -s conftest.err; then
12969 ac_cpp_err=$ac_c_preproc_warn_flag
12970 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12977 if test -z "$ac_cpp_err"; then
12978 ac_header_preproc=yes
12980 echo "$as_me: failed program was:" >&5
12981 sed 's/^/| /' conftest.$ac_ext >&5
12983 ac_header_preproc=no
12985 rm -f conftest.err conftest.$ac_ext
12986 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12987 echo "${ECHO_T}$ac_header_preproc" >&6
12989 # So? What about this header?
12990 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12992 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12993 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12994 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12995 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12996 ac_header_preproc=yes
12999 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13000 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13001 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13002 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13003 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13004 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13005 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13006 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13007 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13008 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13009 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13010 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13013 ## ------------------------------------------ ##
13014 ## Report this to the AC_PACKAGE_NAME lists. ##
13015 ## ------------------------------------------ ##
13018 sed "s/^/$as_me: WARNING: /" >&2
13021 echo "$as_me:$LINENO: checking for $ac_header" >&5
13022 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13023 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13024 echo $ECHO_N "(cached) $ECHO_C" >&6
13026 eval "$as_ac_Header=\$ac_header_preproc"
13028 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13029 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13032 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13033 cat >>confdefs.h <<_ACEOF
13034 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13041 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13042 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13043 if test "${ac_cv_header_stdc+set}" = set; then
13044 echo $ECHO_N "(cached) $ECHO_C" >&6
13046 cat >conftest.$ac_ext <<_ACEOF
13049 cat confdefs.h >>conftest.$ac_ext
13050 cat >>conftest.$ac_ext <<_ACEOF
13051 /* end confdefs.h. */
13052 #include <stdlib.h>
13053 #include <stdarg.h>
13054 #include <string.h>
13065 rm -f conftest.$ac_objext
13066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13067 (eval $ac_compile) 2>conftest.er1
13069 grep -v '^ *+' conftest.er1 >conftest.err
13071 cat conftest.err >&5
13072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13073 (exit $ac_status); } &&
13074 { ac_try='test -z "$ac_c_werror_flag"
13075 || test ! -s conftest.err'
13076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13077 (eval $ac_try) 2>&5
13079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13080 (exit $ac_status); }; } &&
13081 { ac_try='test -s conftest.$ac_objext'
13082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13083 (eval $ac_try) 2>&5
13085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13086 (exit $ac_status); }; }; then
13087 ac_cv_header_stdc=yes
13089 echo "$as_me: failed program was:" >&5
13090 sed 's/^/| /' conftest.$ac_ext >&5
13092 ac_cv_header_stdc=no
13094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13096 if test $ac_cv_header_stdc = yes; then
13097 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13098 cat >conftest.$ac_ext <<_ACEOF
13101 cat confdefs.h >>conftest.$ac_ext
13102 cat >>conftest.$ac_ext <<_ACEOF
13103 /* end confdefs.h. */
13104 #include <string.h>
13107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13108 $EGREP "memchr" >/dev/null 2>&1; then
13111 ac_cv_header_stdc=no
13117 if test $ac_cv_header_stdc = yes; then
13118 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13119 cat >conftest.$ac_ext <<_ACEOF
13122 cat confdefs.h >>conftest.$ac_ext
13123 cat >>conftest.$ac_ext <<_ACEOF
13124 /* end confdefs.h. */
13125 #include <stdlib.h>
13128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13129 $EGREP "free" >/dev/null 2>&1; then
13132 ac_cv_header_stdc=no
13138 if test $ac_cv_header_stdc = yes; then
13139 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13140 if test "$cross_compiling" = yes; then
13143 cat >conftest.$ac_ext <<_ACEOF
13146 cat confdefs.h >>conftest.$ac_ext
13147 cat >>conftest.$ac_ext <<_ACEOF
13148 /* end confdefs.h. */
13150 #if ((' ' & 0x0FF) == 0x020)
13151 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13152 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13154 # define ISLOWER(c) \
13155 (('a' <= (c) && (c) <= 'i') \
13156 || ('j' <= (c) && (c) <= 'r') \
13157 || ('s' <= (c) && (c) <= 'z'))
13158 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13161 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13166 for (i = 0; i < 256; i++)
13167 if (XOR (islower (i), ISLOWER (i))
13168 || toupper (i) != TOUPPER (i))
13173 rm -f conftest$ac_exeext
13174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13175 (eval $ac_link) 2>&5
13177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13178 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13180 (eval $ac_try) 2>&5
13182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13183 (exit $ac_status); }; }; then
13186 echo "$as_me: program exited with status $ac_status" >&5
13187 echo "$as_me: failed program was:" >&5
13188 sed 's/^/| /' conftest.$ac_ext >&5
13190 ( exit $ac_status )
13191 ac_cv_header_stdc=no
13193 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13197 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
13198 echo "${ECHO_T}$ac_cv_header_stdc" >&6
13199 if test $ac_cv_header_stdc = yes; then
13201 cat >>confdefs.h <<\_ACEOF
13202 #define STDC_HEADERS 1
13207 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
13208 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
13209 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
13210 echo $ECHO_N "(cached) $ECHO_C" >&6
13212 cat >conftest.$ac_ext <<_ACEOF
13215 cat confdefs.h >>conftest.$ac_ext
13216 cat >>conftest.$ac_ext <<_ACEOF
13217 /* end confdefs.h. */
13218 #include <sys/types.h>
13222 return makedev(0, 0);
13227 rm -f conftest.$ac_objext conftest$ac_exeext
13228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13229 (eval $ac_link) 2>conftest.er1
13231 grep -v '^ *+' conftest.er1 >conftest.err
13233 cat conftest.err >&5
13234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13235 (exit $ac_status); } &&
13236 { ac_try='test -z "$ac_c_werror_flag"
13237 || test ! -s conftest.err'
13238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13239 (eval $ac_try) 2>&5
13241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13242 (exit $ac_status); }; } &&
13243 { ac_try='test -s conftest$ac_exeext'
13244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13245 (eval $ac_try) 2>&5
13247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13248 (exit $ac_status); }; }; then
13249 ac_cv_header_sys_types_h_makedev=yes
13251 echo "$as_me: failed program was:" >&5
13252 sed 's/^/| /' conftest.$ac_ext >&5
13254 ac_cv_header_sys_types_h_makedev=no
13256 rm -f conftest.err conftest.$ac_objext \
13257 conftest$ac_exeext conftest.$ac_ext
13260 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
13261 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
13263 if test $ac_cv_header_sys_types_h_makedev = no; then
13264 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
13265 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
13266 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
13267 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
13268 echo $ECHO_N "(cached) $ECHO_C" >&6
13270 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
13271 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
13273 # Is the header compilable?
13274 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
13275 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
13276 cat >conftest.$ac_ext <<_ACEOF
13279 cat confdefs.h >>conftest.$ac_ext
13280 cat >>conftest.$ac_ext <<_ACEOF
13281 /* end confdefs.h. */
13282 $ac_includes_default
13283 #include <sys/mkdev.h>
13285 rm -f conftest.$ac_objext
13286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13287 (eval $ac_compile) 2>conftest.er1
13289 grep -v '^ *+' conftest.er1 >conftest.err
13291 cat conftest.err >&5
13292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13293 (exit $ac_status); } &&
13294 { ac_try='test -z "$ac_c_werror_flag"
13295 || test ! -s conftest.err'
13296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13297 (eval $ac_try) 2>&5
13299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13300 (exit $ac_status); }; } &&
13301 { ac_try='test -s conftest.$ac_objext'
13302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13303 (eval $ac_try) 2>&5
13305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13306 (exit $ac_status); }; }; then
13307 ac_header_compiler=yes
13309 echo "$as_me: failed program was:" >&5
13310 sed 's/^/| /' conftest.$ac_ext >&5
13312 ac_header_compiler=no
13314 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13315 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13316 echo "${ECHO_T}$ac_header_compiler" >&6
13318 # Is the header present?
13319 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
13320 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
13321 cat >conftest.$ac_ext <<_ACEOF
13324 cat confdefs.h >>conftest.$ac_ext
13325 cat >>conftest.$ac_ext <<_ACEOF
13326 /* end confdefs.h. */
13327 #include <sys/mkdev.h>
13329 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13330 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13332 grep -v '^ *+' conftest.er1 >conftest.err
13334 cat conftest.err >&5
13335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13336 (exit $ac_status); } >/dev/null; then
13337 if test -s conftest.err; then
13338 ac_cpp_err=$ac_c_preproc_warn_flag
13339 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13346 if test -z "$ac_cpp_err"; then
13347 ac_header_preproc=yes
13349 echo "$as_me: failed program was:" >&5
13350 sed 's/^/| /' conftest.$ac_ext >&5
13352 ac_header_preproc=no
13354 rm -f conftest.err conftest.$ac_ext
13355 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13356 echo "${ECHO_T}$ac_header_preproc" >&6
13358 # So? What about this header?
13359 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13361 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
13362 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13363 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
13364 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
13365 ac_header_preproc=yes
13368 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
13369 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
13370 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
13371 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
13372 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
13373 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
13374 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
13375 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
13376 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
13377 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
13378 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
13379 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
13382 ## ------------------------------------------ ##
13383 ## Report this to the AC_PACKAGE_NAME lists. ##
13384 ## ------------------------------------------ ##
13387 sed "s/^/$as_me: WARNING: /" >&2
13390 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
13391 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
13392 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
13393 echo $ECHO_N "(cached) $ECHO_C" >&6
13395 ac_cv_header_sys_mkdev_h=$ac_header_preproc
13397 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
13398 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
13401 if test $ac_cv_header_sys_mkdev_h = yes; then
13403 cat >>confdefs.h <<\_ACEOF
13404 #define MAJOR_IN_MKDEV 1
13411 if test $ac_cv_header_sys_mkdev_h = no; then
13412 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
13413 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
13414 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
13415 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
13416 echo $ECHO_N "(cached) $ECHO_C" >&6
13418 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
13419 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
13421 # Is the header compilable?
13422 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
13423 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
13424 cat >conftest.$ac_ext <<_ACEOF
13427 cat confdefs.h >>conftest.$ac_ext
13428 cat >>conftest.$ac_ext <<_ACEOF
13429 /* end confdefs.h. */
13430 $ac_includes_default
13431 #include <sys/sysmacros.h>
13433 rm -f conftest.$ac_objext
13434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13435 (eval $ac_compile) 2>conftest.er1
13437 grep -v '^ *+' conftest.er1 >conftest.err
13439 cat conftest.err >&5
13440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13441 (exit $ac_status); } &&
13442 { ac_try='test -z "$ac_c_werror_flag"
13443 || test ! -s conftest.err'
13444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13445 (eval $ac_try) 2>&5
13447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13448 (exit $ac_status); }; } &&
13449 { ac_try='test -s conftest.$ac_objext'
13450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13451 (eval $ac_try) 2>&5
13453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13454 (exit $ac_status); }; }; then
13455 ac_header_compiler=yes
13457 echo "$as_me: failed program was:" >&5
13458 sed 's/^/| /' conftest.$ac_ext >&5
13460 ac_header_compiler=no
13462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13463 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13464 echo "${ECHO_T}$ac_header_compiler" >&6
13466 # Is the header present?
13467 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
13468 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
13469 cat >conftest.$ac_ext <<_ACEOF
13472 cat confdefs.h >>conftest.$ac_ext
13473 cat >>conftest.$ac_ext <<_ACEOF
13474 /* end confdefs.h. */
13475 #include <sys/sysmacros.h>
13477 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13478 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13480 grep -v '^ *+' conftest.er1 >conftest.err
13482 cat conftest.err >&5
13483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13484 (exit $ac_status); } >/dev/null; then
13485 if test -s conftest.err; then
13486 ac_cpp_err=$ac_c_preproc_warn_flag
13487 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13494 if test -z "$ac_cpp_err"; then
13495 ac_header_preproc=yes
13497 echo "$as_me: failed program was:" >&5
13498 sed 's/^/| /' conftest.$ac_ext >&5
13500 ac_header_preproc=no
13502 rm -f conftest.err conftest.$ac_ext
13503 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13504 echo "${ECHO_T}$ac_header_preproc" >&6
13506 # So? What about this header?
13507 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13509 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
13510 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13511 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
13512 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
13513 ac_header_preproc=yes
13516 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
13517 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
13518 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
13519 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
13520 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
13521 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
13522 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
13523 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
13524 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
13525 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
13526 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
13527 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
13530 ## ------------------------------------------ ##
13531 ## Report this to the AC_PACKAGE_NAME lists. ##
13532 ## ------------------------------------------ ##
13535 sed "s/^/$as_me: WARNING: /" >&2
13538 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
13539 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
13540 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
13541 echo $ECHO_N "(cached) $ECHO_C" >&6
13543 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
13545 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
13546 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
13549 if test $ac_cv_header_sys_sysmacros_h = yes; then
13551 cat >>confdefs.h <<\_ACEOF
13552 #define MAJOR_IN_SYSMACROS 1
13566 ac_header_dirent=no
13567 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13568 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13569 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13570 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
13571 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13572 echo $ECHO_N "(cached) $ECHO_C" >&6
13574 cat >conftest.$ac_ext <<_ACEOF
13577 cat confdefs.h >>conftest.$ac_ext
13578 cat >>conftest.$ac_ext <<_ACEOF
13579 /* end confdefs.h. */
13580 #include <sys/types.h>
13592 rm -f conftest.$ac_objext
13593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13594 (eval $ac_compile) 2>conftest.er1
13596 grep -v '^ *+' conftest.er1 >conftest.err
13598 cat conftest.err >&5
13599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13600 (exit $ac_status); } &&
13601 { ac_try='test -z "$ac_c_werror_flag"
13602 || test ! -s conftest.err'
13603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13604 (eval $ac_try) 2>&5
13606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13607 (exit $ac_status); }; } &&
13608 { ac_try='test -s conftest.$ac_objext'
13609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13610 (eval $ac_try) 2>&5
13612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13613 (exit $ac_status); }; }; then
13614 eval "$as_ac_Header=yes"
13616 echo "$as_me: failed program was:" >&5
13617 sed 's/^/| /' conftest.$ac_ext >&5
13619 eval "$as_ac_Header=no"
13621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13623 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13624 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13625 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13626 cat >>confdefs.h <<_ACEOF
13627 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13630 ac_header_dirent=$ac_hdr; break
13634 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13635 if test $ac_header_dirent = dirent.h; then
13636 echo "$as_me:$LINENO: checking for library containing opendir" >&5
13637 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13638 if test "${ac_cv_search_opendir+set}" = set; then
13639 echo $ECHO_N "(cached) $ECHO_C" >&6
13641 ac_func_search_save_LIBS=$LIBS
13642 ac_cv_search_opendir=no
13643 cat >conftest.$ac_ext <<_ACEOF
13646 cat confdefs.h >>conftest.$ac_ext
13647 cat >>conftest.$ac_ext <<_ACEOF
13648 /* end confdefs.h. */
13650 /* Override any gcc2 internal prototype to avoid an error. */
13654 /* We use char because int might match the return type of a gcc2
13655 builtin and then its argument prototype would still apply. */
13665 rm -f conftest.$ac_objext conftest$ac_exeext
13666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13667 (eval $ac_link) 2>conftest.er1
13669 grep -v '^ *+' conftest.er1 >conftest.err
13671 cat conftest.err >&5
13672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13673 (exit $ac_status); } &&
13674 { ac_try='test -z "$ac_c_werror_flag"
13675 || test ! -s conftest.err'
13676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13677 (eval $ac_try) 2>&5
13679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13680 (exit $ac_status); }; } &&
13681 { ac_try='test -s conftest$ac_exeext'
13682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13683 (eval $ac_try) 2>&5
13685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13686 (exit $ac_status); }; }; then
13687 ac_cv_search_opendir="none required"
13689 echo "$as_me: failed program was:" >&5
13690 sed 's/^/| /' conftest.$ac_ext >&5
13693 rm -f conftest.err conftest.$ac_objext \
13694 conftest$ac_exeext conftest.$ac_ext
13695 if test "$ac_cv_search_opendir" = no; then
13696 for ac_lib in dir; do
13697 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13698 cat >conftest.$ac_ext <<_ACEOF
13701 cat confdefs.h >>conftest.$ac_ext
13702 cat >>conftest.$ac_ext <<_ACEOF
13703 /* end confdefs.h. */
13705 /* Override any gcc2 internal prototype to avoid an error. */
13709 /* We use char because int might match the return type of a gcc2
13710 builtin and then its argument prototype would still apply. */
13720 rm -f conftest.$ac_objext conftest$ac_exeext
13721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13722 (eval $ac_link) 2>conftest.er1
13724 grep -v '^ *+' conftest.er1 >conftest.err
13726 cat conftest.err >&5
13727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13728 (exit $ac_status); } &&
13729 { ac_try='test -z "$ac_c_werror_flag"
13730 || test ! -s conftest.err'
13731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13732 (eval $ac_try) 2>&5
13734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13735 (exit $ac_status); }; } &&
13736 { ac_try='test -s conftest$ac_exeext'
13737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13738 (eval $ac_try) 2>&5
13740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13741 (exit $ac_status); }; }; then
13742 ac_cv_search_opendir="-l$ac_lib"
13745 echo "$as_me: failed program was:" >&5
13746 sed 's/^/| /' conftest.$ac_ext >&5
13749 rm -f conftest.err conftest.$ac_objext \
13750 conftest$ac_exeext conftest.$ac_ext
13753 LIBS=$ac_func_search_save_LIBS
13755 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13756 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13757 if test "$ac_cv_search_opendir" != no; then
13758 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13763 echo "$as_me:$LINENO: checking for library containing opendir" >&5
13764 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13765 if test "${ac_cv_search_opendir+set}" = set; then
13766 echo $ECHO_N "(cached) $ECHO_C" >&6
13768 ac_func_search_save_LIBS=$LIBS
13769 ac_cv_search_opendir=no
13770 cat >conftest.$ac_ext <<_ACEOF
13773 cat confdefs.h >>conftest.$ac_ext
13774 cat >>conftest.$ac_ext <<_ACEOF
13775 /* end confdefs.h. */
13777 /* Override any gcc2 internal prototype to avoid an error. */
13781 /* We use char because int might match the return type of a gcc2
13782 builtin and then its argument prototype would still apply. */
13792 rm -f conftest.$ac_objext conftest$ac_exeext
13793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13794 (eval $ac_link) 2>conftest.er1
13796 grep -v '^ *+' conftest.er1 >conftest.err
13798 cat conftest.err >&5
13799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13800 (exit $ac_status); } &&
13801 { ac_try='test -z "$ac_c_werror_flag"
13802 || test ! -s conftest.err'
13803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13804 (eval $ac_try) 2>&5
13806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807 (exit $ac_status); }; } &&
13808 { ac_try='test -s conftest$ac_exeext'
13809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13810 (eval $ac_try) 2>&5
13812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13813 (exit $ac_status); }; }; then
13814 ac_cv_search_opendir="none required"
13816 echo "$as_me: failed program was:" >&5
13817 sed 's/^/| /' conftest.$ac_ext >&5
13820 rm -f conftest.err conftest.$ac_objext \
13821 conftest$ac_exeext conftest.$ac_ext
13822 if test "$ac_cv_search_opendir" = no; then
13823 for ac_lib in x; do
13824 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13825 cat >conftest.$ac_ext <<_ACEOF
13828 cat confdefs.h >>conftest.$ac_ext
13829 cat >>conftest.$ac_ext <<_ACEOF
13830 /* end confdefs.h. */
13832 /* Override any gcc2 internal prototype to avoid an error. */
13836 /* We use char because int might match the return type of a gcc2
13837 builtin and then its argument prototype would still apply. */
13847 rm -f conftest.$ac_objext conftest$ac_exeext
13848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13849 (eval $ac_link) 2>conftest.er1
13851 grep -v '^ *+' conftest.er1 >conftest.err
13853 cat conftest.err >&5
13854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13855 (exit $ac_status); } &&
13856 { ac_try='test -z "$ac_c_werror_flag"
13857 || test ! -s conftest.err'
13858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13859 (eval $ac_try) 2>&5
13861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13862 (exit $ac_status); }; } &&
13863 { ac_try='test -s conftest$ac_exeext'
13864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13865 (eval $ac_try) 2>&5
13867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13868 (exit $ac_status); }; }; then
13869 ac_cv_search_opendir="-l$ac_lib"
13872 echo "$as_me: failed program was:" >&5
13873 sed 's/^/| /' conftest.$ac_ext >&5
13876 rm -f conftest.err conftest.$ac_objext \
13877 conftest$ac_exeext conftest.$ac_ext
13880 LIBS=$ac_func_search_save_LIBS
13882 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13883 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13884 if test "$ac_cv_search_opendir" != no; then
13885 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13891 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
13892 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
13893 if test "${ac_cv_header_stat_broken+set}" = set; then
13894 echo $ECHO_N "(cached) $ECHO_C" >&6
13896 cat >conftest.$ac_ext <<_ACEOF
13899 cat confdefs.h >>conftest.$ac_ext
13900 cat >>conftest.$ac_ext <<_ACEOF
13901 /* end confdefs.h. */
13902 #include <sys/types.h>
13903 #include <sys/stat.h>
13905 #if defined(S_ISBLK) && defined(S_IFDIR)
13906 # if S_ISBLK (S_IFDIR)
13911 #if defined(S_ISBLK) && defined(S_IFCHR)
13912 # if S_ISBLK (S_IFCHR)
13917 #if defined(S_ISLNK) && defined(S_IFREG)
13918 # if S_ISLNK (S_IFREG)
13923 #if defined(S_ISSOCK) && defined(S_IFREG)
13924 # if S_ISSOCK (S_IFREG)
13930 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13931 $EGREP "You lose" >/dev/null 2>&1; then
13932 ac_cv_header_stat_broken=yes
13934 ac_cv_header_stat_broken=no
13939 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
13940 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
13941 if test $ac_cv_header_stat_broken = yes; then
13943 cat >>confdefs.h <<\_ACEOF
13944 #define STAT_MACROS_BROKEN 1
13949 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
13950 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
13951 if test "${ac_cv_header_sys_wait_h+set}" = set; then
13952 echo $ECHO_N "(cached) $ECHO_C" >&6
13954 cat >conftest.$ac_ext <<_ACEOF
13957 cat confdefs.h >>conftest.$ac_ext
13958 cat >>conftest.$ac_ext <<_ACEOF
13959 /* end confdefs.h. */
13960 #include <sys/types.h>
13961 #include <sys/wait.h>
13962 #ifndef WEXITSTATUS
13963 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
13966 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13974 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13979 rm -f conftest.$ac_objext
13980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13981 (eval $ac_compile) 2>conftest.er1
13983 grep -v '^ *+' conftest.er1 >conftest.err
13985 cat conftest.err >&5
13986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13987 (exit $ac_status); } &&
13988 { ac_try='test -z "$ac_c_werror_flag"
13989 || test ! -s conftest.err'
13990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13991 (eval $ac_try) 2>&5
13993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13994 (exit $ac_status); }; } &&
13995 { ac_try='test -s conftest.$ac_objext'
13996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13997 (eval $ac_try) 2>&5
13999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14000 (exit $ac_status); }; }; then
14001 ac_cv_header_sys_wait_h=yes
14003 echo "$as_me: failed program was:" >&5
14004 sed 's/^/| /' conftest.$ac_ext >&5
14006 ac_cv_header_sys_wait_h=no
14008 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14010 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14011 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
14012 if test $ac_cv_header_sys_wait_h = yes; then
14014 cat >>confdefs.h <<\_ACEOF
14015 #define HAVE_SYS_WAIT_H 1
14020 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14021 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
14022 if test "${ac_cv_header_time+set}" = set; then
14023 echo $ECHO_N "(cached) $ECHO_C" >&6
14025 cat >conftest.$ac_ext <<_ACEOF
14028 cat confdefs.h >>conftest.$ac_ext
14029 cat >>conftest.$ac_ext <<_ACEOF
14030 /* end confdefs.h. */
14031 #include <sys/types.h>
14032 #include <sys/time.h>
14038 if ((struct tm *) 0)
14044 rm -f conftest.$ac_objext
14045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14046 (eval $ac_compile) 2>conftest.er1
14048 grep -v '^ *+' conftest.er1 >conftest.err
14050 cat conftest.err >&5
14051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14052 (exit $ac_status); } &&
14053 { ac_try='test -z "$ac_c_werror_flag"
14054 || test ! -s conftest.err'
14055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14056 (eval $ac_try) 2>&5
14058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14059 (exit $ac_status); }; } &&
14060 { ac_try='test -s conftest.$ac_objext'
14061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14062 (eval $ac_try) 2>&5
14064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14065 (exit $ac_status); }; }; then
14066 ac_cv_header_time=yes
14068 echo "$as_me: failed program was:" >&5
14069 sed 's/^/| /' conftest.$ac_ext >&5
14071 ac_cv_header_time=no
14073 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14075 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14076 echo "${ECHO_T}$ac_cv_header_time" >&6
14077 if test $ac_cv_header_time = yes; then
14079 cat >>confdefs.h <<\_ACEOF
14080 #define TIME_WITH_SYS_TIME 1
14086 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
14087 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
14088 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
14089 echo $ECHO_N "(cached) $ECHO_C" >&6
14091 cat >conftest.$ac_ext <<_ACEOF
14094 cat confdefs.h >>conftest.$ac_ext
14095 cat >>conftest.$ac_ext <<_ACEOF
14096 /* end confdefs.h. */
14097 $ac_includes_default
14101 static struct stat ac_aggr;
14102 if (ac_aggr.st_blksize)
14108 rm -f conftest.$ac_objext
14109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14110 (eval $ac_compile) 2>conftest.er1
14112 grep -v '^ *+' conftest.er1 >conftest.err
14114 cat conftest.err >&5
14115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116 (exit $ac_status); } &&
14117 { ac_try='test -z "$ac_c_werror_flag"
14118 || test ! -s conftest.err'
14119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14120 (eval $ac_try) 2>&5
14122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14123 (exit $ac_status); }; } &&
14124 { ac_try='test -s conftest.$ac_objext'
14125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14126 (eval $ac_try) 2>&5
14128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14129 (exit $ac_status); }; }; then
14130 ac_cv_member_struct_stat_st_blksize=yes
14132 echo "$as_me: failed program was:" >&5
14133 sed 's/^/| /' conftest.$ac_ext >&5
14135 cat >conftest.$ac_ext <<_ACEOF
14138 cat confdefs.h >>conftest.$ac_ext
14139 cat >>conftest.$ac_ext <<_ACEOF
14140 /* end confdefs.h. */
14141 $ac_includes_default
14145 static struct stat ac_aggr;
14146 if (sizeof ac_aggr.st_blksize)
14152 rm -f conftest.$ac_objext
14153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14154 (eval $ac_compile) 2>conftest.er1
14156 grep -v '^ *+' conftest.er1 >conftest.err
14158 cat conftest.err >&5
14159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14160 (exit $ac_status); } &&
14161 { ac_try='test -z "$ac_c_werror_flag"
14162 || test ! -s conftest.err'
14163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14164 (eval $ac_try) 2>&5
14166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14167 (exit $ac_status); }; } &&
14168 { ac_try='test -s conftest.$ac_objext'
14169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14170 (eval $ac_try) 2>&5
14172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14173 (exit $ac_status); }; }; then
14174 ac_cv_member_struct_stat_st_blksize=yes
14176 echo "$as_me: failed program was:" >&5
14177 sed 's/^/| /' conftest.$ac_ext >&5
14179 ac_cv_member_struct_stat_st_blksize=no
14181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14183 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14185 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
14186 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
14187 if test $ac_cv_member_struct_stat_st_blksize = yes; then
14189 cat >>confdefs.h <<_ACEOF
14190 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
14194 cat >>confdefs.h <<\_ACEOF
14195 #define HAVE_ST_BLKSIZE 1
14201 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
14202 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
14203 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
14204 echo $ECHO_N "(cached) $ECHO_C" >&6
14206 cat >conftest.$ac_ext <<_ACEOF
14209 cat confdefs.h >>conftest.$ac_ext
14210 cat >>conftest.$ac_ext <<_ACEOF
14211 /* end confdefs.h. */
14212 $ac_includes_default
14216 static struct stat ac_aggr;
14217 if (ac_aggr.st_blocks)
14223 rm -f conftest.$ac_objext
14224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14225 (eval $ac_compile) 2>conftest.er1
14227 grep -v '^ *+' conftest.er1 >conftest.err
14229 cat conftest.err >&5
14230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14231 (exit $ac_status); } &&
14232 { ac_try='test -z "$ac_c_werror_flag"
14233 || test ! -s conftest.err'
14234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14235 (eval $ac_try) 2>&5
14237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14238 (exit $ac_status); }; } &&
14239 { ac_try='test -s conftest.$ac_objext'
14240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14241 (eval $ac_try) 2>&5
14243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14244 (exit $ac_status); }; }; then
14245 ac_cv_member_struct_stat_st_blocks=yes
14247 echo "$as_me: failed program was:" >&5
14248 sed 's/^/| /' conftest.$ac_ext >&5
14250 cat >conftest.$ac_ext <<_ACEOF
14253 cat confdefs.h >>conftest.$ac_ext
14254 cat >>conftest.$ac_ext <<_ACEOF
14255 /* end confdefs.h. */
14256 $ac_includes_default
14260 static struct stat ac_aggr;
14261 if (sizeof ac_aggr.st_blocks)
14267 rm -f conftest.$ac_objext
14268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14269 (eval $ac_compile) 2>conftest.er1
14271 grep -v '^ *+' conftest.er1 >conftest.err
14273 cat conftest.err >&5
14274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14275 (exit $ac_status); } &&
14276 { ac_try='test -z "$ac_c_werror_flag"
14277 || test ! -s conftest.err'
14278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14279 (eval $ac_try) 2>&5
14281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14282 (exit $ac_status); }; } &&
14283 { ac_try='test -s conftest.$ac_objext'
14284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14285 (eval $ac_try) 2>&5
14287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14288 (exit $ac_status); }; }; then
14289 ac_cv_member_struct_stat_st_blocks=yes
14291 echo "$as_me: failed program was:" >&5
14292 sed 's/^/| /' conftest.$ac_ext >&5
14294 ac_cv_member_struct_stat_st_blocks=no
14296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14298 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14300 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
14301 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
14302 if test $ac_cv_member_struct_stat_st_blocks = yes; then
14304 cat >>confdefs.h <<_ACEOF
14305 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
14309 cat >>confdefs.h <<\_ACEOF
14310 #define HAVE_ST_BLOCKS 1
14315 "fileblocks.$ac_objext" | \
14316 *" fileblocks.$ac_objext" | \
14317 "fileblocks.$ac_objext "* | \
14318 *" fileblocks.$ac_objext "* ) ;;
14319 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
14325 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
14326 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
14327 if test "${ac_cv_struct_tm+set}" = set; then
14328 echo $ECHO_N "(cached) $ECHO_C" >&6
14330 cat >conftest.$ac_ext <<_ACEOF
14333 cat confdefs.h >>conftest.$ac_ext
14334 cat >>conftest.$ac_ext <<_ACEOF
14335 /* end confdefs.h. */
14336 #include <sys/types.h>
14342 struct tm *tp; tp->tm_sec;
14347 rm -f conftest.$ac_objext
14348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14349 (eval $ac_compile) 2>conftest.er1
14351 grep -v '^ *+' conftest.er1 >conftest.err
14353 cat conftest.err >&5
14354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14355 (exit $ac_status); } &&
14356 { ac_try='test -z "$ac_c_werror_flag"
14357 || test ! -s conftest.err'
14358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14359 (eval $ac_try) 2>&5
14361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14362 (exit $ac_status); }; } &&
14363 { ac_try='test -s conftest.$ac_objext'
14364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14365 (eval $ac_try) 2>&5
14367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14368 (exit $ac_status); }; }; then
14369 ac_cv_struct_tm=time.h
14371 echo "$as_me: failed program was:" >&5
14372 sed 's/^/| /' conftest.$ac_ext >&5
14374 ac_cv_struct_tm=sys/time.h
14376 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14378 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
14379 echo "${ECHO_T}$ac_cv_struct_tm" >&6
14380 if test $ac_cv_struct_tm = sys/time.h; then
14382 cat >>confdefs.h <<\_ACEOF
14383 #define TM_IN_SYS_TIME 1
14388 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
14389 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
14390 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
14391 echo $ECHO_N "(cached) $ECHO_C" >&6
14393 cat >conftest.$ac_ext <<_ACEOF
14396 cat confdefs.h >>conftest.$ac_ext
14397 cat >>conftest.$ac_ext <<_ACEOF
14398 /* end confdefs.h. */
14399 #include <sys/types.h>
14400 #include <$ac_cv_struct_tm>
14406 static struct tm ac_aggr;
14407 if (ac_aggr.tm_zone)
14413 rm -f conftest.$ac_objext
14414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14415 (eval $ac_compile) 2>conftest.er1
14417 grep -v '^ *+' conftest.er1 >conftest.err
14419 cat conftest.err >&5
14420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14421 (exit $ac_status); } &&
14422 { ac_try='test -z "$ac_c_werror_flag"
14423 || test ! -s conftest.err'
14424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14425 (eval $ac_try) 2>&5
14427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14428 (exit $ac_status); }; } &&
14429 { ac_try='test -s conftest.$ac_objext'
14430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14431 (eval $ac_try) 2>&5
14433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14434 (exit $ac_status); }; }; then
14435 ac_cv_member_struct_tm_tm_zone=yes
14437 echo "$as_me: failed program was:" >&5
14438 sed 's/^/| /' conftest.$ac_ext >&5
14440 cat >conftest.$ac_ext <<_ACEOF
14443 cat confdefs.h >>conftest.$ac_ext
14444 cat >>conftest.$ac_ext <<_ACEOF
14445 /* end confdefs.h. */
14446 #include <sys/types.h>
14447 #include <$ac_cv_struct_tm>
14453 static struct tm ac_aggr;
14454 if (sizeof ac_aggr.tm_zone)
14460 rm -f conftest.$ac_objext
14461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14462 (eval $ac_compile) 2>conftest.er1
14464 grep -v '^ *+' conftest.er1 >conftest.err
14466 cat conftest.err >&5
14467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14468 (exit $ac_status); } &&
14469 { ac_try='test -z "$ac_c_werror_flag"
14470 || test ! -s conftest.err'
14471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14472 (eval $ac_try) 2>&5
14474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14475 (exit $ac_status); }; } &&
14476 { ac_try='test -s conftest.$ac_objext'
14477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14478 (eval $ac_try) 2>&5
14480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14481 (exit $ac_status); }; }; then
14482 ac_cv_member_struct_tm_tm_zone=yes
14484 echo "$as_me: failed program was:" >&5
14485 sed 's/^/| /' conftest.$ac_ext >&5
14487 ac_cv_member_struct_tm_tm_zone=no
14489 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14491 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14493 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
14494 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
14495 if test $ac_cv_member_struct_tm_tm_zone = yes; then
14497 cat >>confdefs.h <<_ACEOF
14498 #define HAVE_STRUCT_TM_TM_ZONE 1
14504 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
14506 cat >>confdefs.h <<\_ACEOF
14507 #define HAVE_TM_ZONE 1
14511 echo "$as_me:$LINENO: checking for tzname" >&5
14512 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
14513 if test "${ac_cv_var_tzname+set}" = set; then
14514 echo $ECHO_N "(cached) $ECHO_C" >&6
14516 cat >conftest.$ac_ext <<_ACEOF
14519 cat confdefs.h >>conftest.$ac_ext
14520 cat >>conftest.$ac_ext <<_ACEOF
14521 /* end confdefs.h. */
14523 #ifndef tzname /* For SGI. */
14524 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
14535 rm -f conftest.$ac_objext conftest$ac_exeext
14536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14537 (eval $ac_link) 2>conftest.er1
14539 grep -v '^ *+' conftest.er1 >conftest.err
14541 cat conftest.err >&5
14542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14543 (exit $ac_status); } &&
14544 { ac_try='test -z "$ac_c_werror_flag"
14545 || test ! -s conftest.err'
14546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14547 (eval $ac_try) 2>&5
14549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14550 (exit $ac_status); }; } &&
14551 { ac_try='test -s conftest$ac_exeext'
14552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14553 (eval $ac_try) 2>&5
14555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14556 (exit $ac_status); }; }; then
14557 ac_cv_var_tzname=yes
14559 echo "$as_me: failed program was:" >&5
14560 sed 's/^/| /' conftest.$ac_ext >&5
14562 ac_cv_var_tzname=no
14564 rm -f conftest.err conftest.$ac_objext \
14565 conftest$ac_exeext conftest.$ac_ext
14567 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
14568 echo "${ECHO_T}$ac_cv_var_tzname" >&6
14569 if test $ac_cv_var_tzname = yes; then
14571 cat >>confdefs.h <<\_ACEOF
14572 #define HAVE_TZNAME 1
14579 echo "$as_me:$LINENO: checking for utime.h" >&5
14580 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
14581 if test "${ba_cv_header_utime_h+set}" = set; then
14582 echo $ECHO_N "(cached) $ECHO_C" >&6
14584 cat >conftest.$ac_ext <<_ACEOF
14587 cat confdefs.h >>conftest.$ac_ext
14588 cat >>conftest.$ac_ext <<_ACEOF
14589 /* end confdefs.h. */
14591 #include <sys/types.h>
14601 rm -f conftest.$ac_objext
14602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14603 (eval $ac_compile) 2>conftest.er1
14605 grep -v '^ *+' conftest.er1 >conftest.err
14607 cat conftest.err >&5
14608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14609 (exit $ac_status); } &&
14610 { ac_try='test -z "$ac_c_werror_flag"
14611 || test ! -s conftest.err'
14612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14613 (eval $ac_try) 2>&5
14615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14616 (exit $ac_status); }; } &&
14617 { ac_try='test -s conftest.$ac_objext'
14618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14619 (eval $ac_try) 2>&5
14621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14622 (exit $ac_status); }; }; then
14623 ba_cv_header_utime_h=yes
14625 echo "$as_me: failed program was:" >&5
14626 sed 's/^/| /' conftest.$ac_ext >&5
14628 ba_cv_header_utime_h=no
14630 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14632 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
14633 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
14634 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
14635 #define HAVE_UTIME_H 1
14639 echo "$as_me:$LINENO: checking for socklen_t" >&5
14640 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
14641 if test "${ba_cv_header_socklen_t+set}" = set; then
14642 echo $ECHO_N "(cached) $ECHO_C" >&6
14644 cat >conftest.$ac_ext <<_ACEOF
14647 cat confdefs.h >>conftest.$ac_ext
14648 cat >>conftest.$ac_ext <<_ACEOF
14649 /* end confdefs.h. */
14651 #include <sys/types.h>
14652 #include <sys/socket.h>
14661 rm -f conftest.$ac_objext
14662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14663 (eval $ac_compile) 2>conftest.er1
14665 grep -v '^ *+' conftest.er1 >conftest.err
14667 cat conftest.err >&5
14668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14669 (exit $ac_status); } &&
14670 { ac_try='test -z "$ac_c_werror_flag"
14671 || test ! -s conftest.err'
14672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14673 (eval $ac_try) 2>&5
14675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14676 (exit $ac_status); }; } &&
14677 { ac_try='test -s conftest.$ac_objext'
14678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14679 (eval $ac_try) 2>&5
14681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14682 (exit $ac_status); }; }; then
14683 ba_cv_header_socklen_t=yes
14685 echo "$as_me: failed program was:" >&5
14686 sed 's/^/| /' conftest.$ac_ext >&5
14688 ba_cv_header_socklen_t=no
14690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14692 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
14693 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
14694 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
14695 #define HAVE_SOCKLEN_T 1
14699 echo "$as_me:$LINENO: checking for bigendian" >&5
14700 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
14701 if test "${ba_cv_bigendian+set}" = set; then
14702 echo $ECHO_N "(cached) $ECHO_C" >&6
14704 if test "$cross_compiling" = yes; then
14707 cat >conftest.$ac_ext <<_ACEOF
14710 cat confdefs.h >>conftest.$ac_ext
14711 cat >>conftest.$ac_ext <<_ACEOF
14712 /* end confdefs.h. */
14713 main(){long a=1L; char *p=(char *)&a; exit(*p);}
14715 rm -f conftest$ac_exeext
14716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14717 (eval $ac_link) 2>&5
14719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14720 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14722 (eval $ac_try) 2>&5
14724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14725 (exit $ac_status); }; }; then
14726 ba_cv_bigendian=yes
14728 echo "$as_me: program exited with status $ac_status" >&5
14729 echo "$as_me: failed program was:" >&5
14730 sed 's/^/| /' conftest.$ac_ext >&5
14732 ( exit $ac_status )
14735 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14738 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
14739 echo "${ECHO_T}$ba_cv_bigendian" >&6
14740 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
14741 #define HAVE_BIGENDIAN 1
14746 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14747 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14748 if test "${ac_cv_c_const+set}" = set; then
14749 echo $ECHO_N "(cached) $ECHO_C" >&6
14751 cat >conftest.$ac_ext <<_ACEOF
14754 cat confdefs.h >>conftest.$ac_ext
14755 cat >>conftest.$ac_ext <<_ACEOF
14756 /* end confdefs.h. */
14761 /* FIXME: Include the comments suggested by Paul. */
14762 #ifndef __cplusplus
14763 /* Ultrix mips cc rejects this. */
14764 typedef int charset[2];
14766 /* SunOS 4.1.1 cc rejects this. */
14767 char const *const *ccp;
14769 /* NEC SVR4.0.2 mips cc rejects this. */
14770 struct point {int x, y;};
14771 static struct point const zero = {0,0};
14772 /* AIX XL C 1.02.0.0 rejects this.
14773 It does not let you subtract one const X* pointer from another in
14774 an arm of an if-expression whose if-part is not a constant
14776 const char *g = "string";
14777 ccp = &g + (g ? g-g : 0);
14778 /* HPUX 7.0 cc rejects these. */
14781 ccp = (char const *const *) p;
14782 { /* SCO 3.2v4 cc rejects this. */
14784 char const *s = 0 ? (char *) 0 : (char const *) 0;
14788 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14789 int x[] = {25, 17};
14790 const int *foo = &x[0];
14793 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14794 typedef const int *iptr;
14798 { /* AIX XL C 1.02.0.0 rejects this saying
14799 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14800 struct s { int j; const int *ap[3]; };
14801 struct s *b; b->j = 5;
14803 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14804 const int foo = 10;
14812 rm -f conftest.$ac_objext
14813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14814 (eval $ac_compile) 2>conftest.er1
14816 grep -v '^ *+' conftest.er1 >conftest.err
14818 cat conftest.err >&5
14819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14820 (exit $ac_status); } &&
14821 { ac_try='test -z "$ac_c_werror_flag"
14822 || test ! -s conftest.err'
14823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14824 (eval $ac_try) 2>&5
14826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14827 (exit $ac_status); }; } &&
14828 { ac_try='test -s conftest.$ac_objext'
14829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14830 (eval $ac_try) 2>&5
14832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14833 (exit $ac_status); }; }; then
14836 echo "$as_me: failed program was:" >&5
14837 sed 's/^/| /' conftest.$ac_ext >&5
14841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14843 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14844 echo "${ECHO_T}$ac_cv_c_const" >&6
14845 if test $ac_cv_c_const = no; then
14847 cat >>confdefs.h <<\_ACEOF
14855 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
14856 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
14858 # The order of these tests is important.
14859 cat >conftest.$ac_ext <<_ACEOF
14862 cat confdefs.h >>conftest.$ac_ext
14863 cat >>conftest.$ac_ext <<_ACEOF
14864 /* end confdefs.h. */
14865 #include <sys/statvfs.h>
14866 #include <sys/fstyp.h>
14868 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14869 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14871 grep -v '^ *+' conftest.er1 >conftest.err
14873 cat conftest.err >&5
14874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14875 (exit $ac_status); } >/dev/null; then
14876 if test -s conftest.err; then
14877 ac_cpp_err=$ac_c_preproc_warn_flag
14878 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14885 if test -z "$ac_cpp_err"; then
14886 cat >>confdefs.h <<\_ACEOF
14887 #define FSTYPE_STATVFS 1
14891 echo "$as_me: failed program was:" >&5
14892 sed 's/^/| /' conftest.$ac_ext >&5
14896 rm -f conftest.err conftest.$ac_ext
14897 if test $fstype = no; then
14898 cat >conftest.$ac_ext <<_ACEOF
14901 cat confdefs.h >>conftest.$ac_ext
14902 cat >>conftest.$ac_ext <<_ACEOF
14903 /* end confdefs.h. */
14904 #include <sys/statfs.h>
14905 #include <sys/fstyp.h>
14907 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14908 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14910 grep -v '^ *+' conftest.er1 >conftest.err
14912 cat conftest.err >&5
14913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14914 (exit $ac_status); } >/dev/null; then
14915 if test -s conftest.err; then
14916 ac_cpp_err=$ac_c_preproc_warn_flag
14917 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14924 if test -z "$ac_cpp_err"; then
14925 cat >>confdefs.h <<\_ACEOF
14926 #define FSTYPE_USG_STATFS 1
14930 echo "$as_me: failed program was:" >&5
14931 sed 's/^/| /' conftest.$ac_ext >&5
14935 rm -f conftest.err conftest.$ac_ext
14937 if test $fstype = no; then
14938 cat >conftest.$ac_ext <<_ACEOF
14941 cat confdefs.h >>conftest.$ac_ext
14942 cat >>conftest.$ac_ext <<_ACEOF
14943 /* end confdefs.h. */
14944 #include <sys/statfs.h>
14945 #include <sys/vmount.h>
14947 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14948 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14950 grep -v '^ *+' conftest.er1 >conftest.err
14952 cat conftest.err >&5
14953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14954 (exit $ac_status); } >/dev/null; then
14955 if test -s conftest.err; then
14956 ac_cpp_err=$ac_c_preproc_warn_flag
14957 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14964 if test -z "$ac_cpp_err"; then
14965 cat >>confdefs.h <<\_ACEOF
14966 #define FSTYPE_AIX_STATFS 1
14970 echo "$as_me: failed program was:" >&5
14971 sed 's/^/| /' conftest.$ac_ext >&5
14975 rm -f conftest.err conftest.$ac_ext
14977 if test $fstype = no; then
14978 cat >conftest.$ac_ext <<_ACEOF
14981 cat confdefs.h >>conftest.$ac_ext
14982 cat >>conftest.$ac_ext <<_ACEOF
14983 /* end confdefs.h. */
14984 #include <mntent.h>
14986 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14987 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14989 grep -v '^ *+' conftest.er1 >conftest.err
14991 cat conftest.err >&5
14992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14993 (exit $ac_status); } >/dev/null; then
14994 if test -s conftest.err; then
14995 ac_cpp_err=$ac_c_preproc_warn_flag
14996 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15003 if test -z "$ac_cpp_err"; then
15004 cat >>confdefs.h <<\_ACEOF
15005 #define FSTYPE_MNTENT 1
15009 echo "$as_me: failed program was:" >&5
15010 sed 's/^/| /' conftest.$ac_ext >&5
15014 rm -f conftest.err conftest.$ac_ext
15016 if test $fstype = no; then
15017 cat >conftest.$ac_ext <<_ACEOF
15020 cat confdefs.h >>conftest.$ac_ext
15021 cat >>conftest.$ac_ext <<_ACEOF
15022 /* end confdefs.h. */
15023 #include <sys/mount.h>
15026 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15027 $EGREP "f_type;" >/dev/null 2>&1; then
15028 cat >>confdefs.h <<\_ACEOF
15029 #define FSTYPE_STATFS 1
15036 if test $fstype = no; then
15037 cat >conftest.$ac_ext <<_ACEOF
15040 cat confdefs.h >>conftest.$ac_ext
15041 cat >>conftest.$ac_ext <<_ACEOF
15042 /* end confdefs.h. */
15043 #include <sys/mount.h>
15044 #include <sys/fs_types.h>
15046 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15047 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15049 grep -v '^ *+' conftest.er1 >conftest.err
15051 cat conftest.err >&5
15052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15053 (exit $ac_status); } >/dev/null; then
15054 if test -s conftest.err; then
15055 ac_cpp_err=$ac_c_preproc_warn_flag
15056 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15063 if test -z "$ac_cpp_err"; then
15064 cat >>confdefs.h <<\_ACEOF
15065 #define FSTYPE_GETMNT 1
15069 echo "$as_me: failed program was:" >&5
15070 sed 's/^/| /' conftest.$ac_ext >&5
15074 rm -f conftest.err conftest.$ac_ext
15076 echo "$as_me:$LINENO: result: $fstype" >&5
15077 echo "${ECHO_T}$fstype" >&6
15079 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
15080 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
15081 if test "${ac_cv_type_signal+set}" = set; then
15082 echo $ECHO_N "(cached) $ECHO_C" >&6
15084 cat >conftest.$ac_ext <<_ACEOF
15087 cat confdefs.h >>conftest.$ac_ext
15088 cat >>conftest.$ac_ext <<_ACEOF
15089 /* end confdefs.h. */
15090 #include <sys/types.h>
15091 #include <signal.h>
15096 extern "C" void (*signal (int, void (*)(int)))(int);
15098 void (*signal ()) ();
15109 rm -f conftest.$ac_objext
15110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15111 (eval $ac_compile) 2>conftest.er1
15113 grep -v '^ *+' conftest.er1 >conftest.err
15115 cat conftest.err >&5
15116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15117 (exit $ac_status); } &&
15118 { ac_try='test -z "$ac_c_werror_flag"
15119 || test ! -s conftest.err'
15120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15121 (eval $ac_try) 2>&5
15123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15124 (exit $ac_status); }; } &&
15125 { ac_try='test -s conftest.$ac_objext'
15126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15127 (eval $ac_try) 2>&5
15129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15130 (exit $ac_status); }; }; then
15131 ac_cv_type_signal=void
15133 echo "$as_me: failed program was:" >&5
15134 sed 's/^/| /' conftest.$ac_ext >&5
15136 ac_cv_type_signal=int
15138 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15140 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
15141 echo "${ECHO_T}$ac_cv_type_signal" >&6
15143 cat >>confdefs.h <<_ACEOF
15144 #define RETSIGTYPE $ac_cv_type_signal
15149 echo "$as_me:$LINENO: checking for type of signal functions" >&5
15150 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
15151 if test "${bash_cv_signal_vintage+set}" = set; then
15152 echo $ECHO_N "(cached) $ECHO_C" >&6
15155 cat >conftest.$ac_ext <<_ACEOF
15158 cat confdefs.h >>conftest.$ac_ext
15159 cat >>conftest.$ac_ext <<_ACEOF
15160 /* end confdefs.h. */
15161 #include <signal.h>
15167 struct sigaction sa;
15168 sigemptyset(&ss); sigsuspend(&ss);
15169 sigaction(SIGINT, &sa, (struct sigaction *) 0);
15170 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
15176 rm -f conftest.$ac_objext conftest$ac_exeext
15177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15178 (eval $ac_link) 2>conftest.er1
15180 grep -v '^ *+' conftest.er1 >conftest.err
15182 cat conftest.err >&5
15183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15184 (exit $ac_status); } &&
15185 { ac_try='test -z "$ac_c_werror_flag"
15186 || test ! -s conftest.err'
15187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15188 (eval $ac_try) 2>&5
15190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15191 (exit $ac_status); }; } &&
15192 { ac_try='test -s conftest$ac_exeext'
15193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15194 (eval $ac_try) 2>&5
15196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15197 (exit $ac_status); }; }; then
15198 bash_cv_signal_vintage=posix
15200 echo "$as_me: failed program was:" >&5
15201 sed 's/^/| /' conftest.$ac_ext >&5
15204 cat >conftest.$ac_ext <<_ACEOF
15207 cat confdefs.h >>conftest.$ac_ext
15208 cat >>conftest.$ac_ext <<_ACEOF
15209 /* end confdefs.h. */
15210 #include <signal.h>
15215 int mask = sigmask(SIGINT);
15216 sigsetmask(mask); sigblock(mask); sigpause(mask);
15222 rm -f conftest.$ac_objext conftest$ac_exeext
15223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15224 (eval $ac_link) 2>conftest.er1
15226 grep -v '^ *+' conftest.er1 >conftest.err
15228 cat conftest.err >&5
15229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15230 (exit $ac_status); } &&
15231 { ac_try='test -z "$ac_c_werror_flag"
15232 || test ! -s conftest.err'
15233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15234 (eval $ac_try) 2>&5
15236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15237 (exit $ac_status); }; } &&
15238 { ac_try='test -s conftest$ac_exeext'
15239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15240 (eval $ac_try) 2>&5
15242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15243 (exit $ac_status); }; }; then
15244 bash_cv_signal_vintage=4.2bsd
15246 echo "$as_me: failed program was:" >&5
15247 sed 's/^/| /' conftest.$ac_ext >&5
15250 cat >conftest.$ac_ext <<_ACEOF
15253 cat confdefs.h >>conftest.$ac_ext
15254 cat >>conftest.$ac_ext <<_ACEOF
15255 /* end confdefs.h. */
15257 #include <signal.h>
15258 RETSIGTYPE foo() { }
15263 int mask = sigmask(SIGINT);
15264 sigset(SIGINT, foo); sigrelse(SIGINT);
15265 sighold(SIGINT); sigpause(SIGINT);
15271 rm -f conftest.$ac_objext conftest$ac_exeext
15272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15273 (eval $ac_link) 2>conftest.er1
15275 grep -v '^ *+' conftest.er1 >conftest.err
15277 cat conftest.err >&5
15278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15279 (exit $ac_status); } &&
15280 { ac_try='test -z "$ac_c_werror_flag"
15281 || test ! -s conftest.err'
15282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15283 (eval $ac_try) 2>&5
15285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15286 (exit $ac_status); }; } &&
15287 { ac_try='test -s conftest$ac_exeext'
15288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15289 (eval $ac_try) 2>&5
15291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15292 (exit $ac_status); }; }; then
15293 bash_cv_signal_vintage=svr3
15295 echo "$as_me: failed program was:" >&5
15296 sed 's/^/| /' conftest.$ac_ext >&5
15298 bash_cv_signal_vintage=v7
15301 rm -f conftest.err conftest.$ac_objext \
15302 conftest$ac_exeext conftest.$ac_ext
15305 rm -f conftest.err conftest.$ac_objext \
15306 conftest$ac_exeext conftest.$ac_ext
15309 rm -f conftest.err conftest.$ac_objext \
15310 conftest$ac_exeext conftest.$ac_ext
15314 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
15315 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
15316 if test "$bash_cv_signal_vintage" = posix; then
15317 cat >>confdefs.h <<\_ACEOF
15318 #define HAVE_POSIX_SIGNALS 1
15321 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
15322 cat >>confdefs.h <<\_ACEOF
15323 #define HAVE_BSD_SIGNALS 1
15326 elif test "$bash_cv_signal_vintage" = svr3; then
15327 cat >>confdefs.h <<\_ACEOF
15328 #define HAVE_USG_SIGHOLD 1
15333 echo "$as_me:$LINENO: checking for mode_t" >&5
15334 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
15335 if test "${ac_cv_type_mode_t+set}" = set; then
15336 echo $ECHO_N "(cached) $ECHO_C" >&6
15338 cat >conftest.$ac_ext <<_ACEOF
15341 cat confdefs.h >>conftest.$ac_ext
15342 cat >>conftest.$ac_ext <<_ACEOF
15343 /* end confdefs.h. */
15344 $ac_includes_default
15350 if (sizeof (mode_t))
15356 rm -f conftest.$ac_objext
15357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15358 (eval $ac_compile) 2>conftest.er1
15360 grep -v '^ *+' conftest.er1 >conftest.err
15362 cat conftest.err >&5
15363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15364 (exit $ac_status); } &&
15365 { ac_try='test -z "$ac_c_werror_flag"
15366 || test ! -s conftest.err'
15367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15368 (eval $ac_try) 2>&5
15370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15371 (exit $ac_status); }; } &&
15372 { ac_try='test -s conftest.$ac_objext'
15373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15374 (eval $ac_try) 2>&5
15376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15377 (exit $ac_status); }; }; then
15378 ac_cv_type_mode_t=yes
15380 echo "$as_me: failed program was:" >&5
15381 sed 's/^/| /' conftest.$ac_ext >&5
15383 ac_cv_type_mode_t=no
15385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15387 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
15388 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
15389 if test $ac_cv_type_mode_t = yes; then
15393 cat >>confdefs.h <<_ACEOF
15399 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
15400 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
15401 if test "${ac_cv_type_uid_t+set}" = set; then
15402 echo $ECHO_N "(cached) $ECHO_C" >&6
15404 cat >conftest.$ac_ext <<_ACEOF
15407 cat confdefs.h >>conftest.$ac_ext
15408 cat >>conftest.$ac_ext <<_ACEOF
15409 /* end confdefs.h. */
15410 #include <sys/types.h>
15413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15414 $EGREP "uid_t" >/dev/null 2>&1; then
15415 ac_cv_type_uid_t=yes
15417 ac_cv_type_uid_t=no
15422 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
15423 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
15424 if test $ac_cv_type_uid_t = no; then
15426 cat >>confdefs.h <<\_ACEOF
15431 cat >>confdefs.h <<\_ACEOF
15437 echo "$as_me:$LINENO: checking for size_t" >&5
15438 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
15439 if test "${ac_cv_type_size_t+set}" = set; then
15440 echo $ECHO_N "(cached) $ECHO_C" >&6
15442 cat >conftest.$ac_ext <<_ACEOF
15445 cat confdefs.h >>conftest.$ac_ext
15446 cat >>conftest.$ac_ext <<_ACEOF
15447 /* end confdefs.h. */
15448 $ac_includes_default
15454 if (sizeof (size_t))
15460 rm -f conftest.$ac_objext
15461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15462 (eval $ac_compile) 2>conftest.er1
15464 grep -v '^ *+' conftest.er1 >conftest.err
15466 cat conftest.err >&5
15467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15468 (exit $ac_status); } &&
15469 { ac_try='test -z "$ac_c_werror_flag"
15470 || test ! -s conftest.err'
15471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15472 (eval $ac_try) 2>&5
15474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15475 (exit $ac_status); }; } &&
15476 { ac_try='test -s conftest.$ac_objext'
15477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15478 (eval $ac_try) 2>&5
15480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15481 (exit $ac_status); }; }; then
15482 ac_cv_type_size_t=yes
15484 echo "$as_me: failed program was:" >&5
15485 sed 's/^/| /' conftest.$ac_ext >&5
15487 ac_cv_type_size_t=no
15489 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15491 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
15492 echo "${ECHO_T}$ac_cv_type_size_t" >&6
15493 if test $ac_cv_type_size_t = yes; then
15497 cat >>confdefs.h <<_ACEOF
15498 #define size_t unsigned
15503 echo "$as_me:$LINENO: checking for pid_t" >&5
15504 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
15505 if test "${ac_cv_type_pid_t+set}" = set; then
15506 echo $ECHO_N "(cached) $ECHO_C" >&6
15508 cat >conftest.$ac_ext <<_ACEOF
15511 cat confdefs.h >>conftest.$ac_ext
15512 cat >>conftest.$ac_ext <<_ACEOF
15513 /* end confdefs.h. */
15514 $ac_includes_default
15520 if (sizeof (pid_t))
15526 rm -f conftest.$ac_objext
15527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15528 (eval $ac_compile) 2>conftest.er1
15530 grep -v '^ *+' conftest.er1 >conftest.err
15532 cat conftest.err >&5
15533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15534 (exit $ac_status); } &&
15535 { ac_try='test -z "$ac_c_werror_flag"
15536 || test ! -s conftest.err'
15537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15538 (eval $ac_try) 2>&5
15540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15541 (exit $ac_status); }; } &&
15542 { ac_try='test -s conftest.$ac_objext'
15543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15544 (eval $ac_try) 2>&5
15546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15547 (exit $ac_status); }; }; then
15548 ac_cv_type_pid_t=yes
15550 echo "$as_me: failed program was:" >&5
15551 sed 's/^/| /' conftest.$ac_ext >&5
15553 ac_cv_type_pid_t=no
15555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15557 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
15558 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
15559 if test $ac_cv_type_pid_t = yes; then
15563 cat >>confdefs.h <<_ACEOF
15569 echo "$as_me:$LINENO: checking for off_t" >&5
15570 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
15571 if test "${ac_cv_type_off_t+set}" = set; then
15572 echo $ECHO_N "(cached) $ECHO_C" >&6
15574 cat >conftest.$ac_ext <<_ACEOF
15577 cat confdefs.h >>conftest.$ac_ext
15578 cat >>conftest.$ac_ext <<_ACEOF
15579 /* end confdefs.h. */
15580 $ac_includes_default
15586 if (sizeof (off_t))
15592 rm -f conftest.$ac_objext
15593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15594 (eval $ac_compile) 2>conftest.er1
15596 grep -v '^ *+' conftest.er1 >conftest.err
15598 cat conftest.err >&5
15599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15600 (exit $ac_status); } &&
15601 { ac_try='test -z "$ac_c_werror_flag"
15602 || test ! -s conftest.err'
15603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15604 (eval $ac_try) 2>&5
15606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15607 (exit $ac_status); }; } &&
15608 { ac_try='test -s conftest.$ac_objext'
15609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15610 (eval $ac_try) 2>&5
15612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15613 (exit $ac_status); }; }; then
15614 ac_cv_type_off_t=yes
15616 echo "$as_me: failed program was:" >&5
15617 sed 's/^/| /' conftest.$ac_ext >&5
15619 ac_cv_type_off_t=no
15621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15623 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
15624 echo "${ECHO_T}$ac_cv_type_off_t" >&6
15625 if test $ac_cv_type_off_t = yes; then
15629 cat >>confdefs.h <<_ACEOF
15635 echo "$as_me:$LINENO: checking for ino_t" >&5
15636 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
15637 if test "${ac_cv_type_ino_t+set}" = set; then
15638 echo $ECHO_N "(cached) $ECHO_C" >&6
15640 cat >conftest.$ac_ext <<_ACEOF
15643 cat confdefs.h >>conftest.$ac_ext
15644 cat >>conftest.$ac_ext <<_ACEOF
15645 /* end confdefs.h. */
15646 $ac_includes_default
15652 if (sizeof (ino_t))
15658 rm -f conftest.$ac_objext
15659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15660 (eval $ac_compile) 2>conftest.er1
15662 grep -v '^ *+' conftest.er1 >conftest.err
15664 cat conftest.err >&5
15665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15666 (exit $ac_status); } &&
15667 { ac_try='test -z "$ac_c_werror_flag"
15668 || test ! -s conftest.err'
15669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15670 (eval $ac_try) 2>&5
15672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15673 (exit $ac_status); }; } &&
15674 { ac_try='test -s conftest.$ac_objext'
15675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15676 (eval $ac_try) 2>&5
15678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15679 (exit $ac_status); }; }; then
15680 ac_cv_type_ino_t=yes
15682 echo "$as_me: failed program was:" >&5
15683 sed 's/^/| /' conftest.$ac_ext >&5
15685 ac_cv_type_ino_t=no
15687 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15689 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
15690 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
15691 if test $ac_cv_type_ino_t = yes; then
15695 cat >>confdefs.h <<_ACEOF
15696 #define ino_t unsigned long
15701 echo "$as_me:$LINENO: checking for dev_t" >&5
15702 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
15703 if test "${ac_cv_type_dev_t+set}" = set; then
15704 echo $ECHO_N "(cached) $ECHO_C" >&6
15706 cat >conftest.$ac_ext <<_ACEOF
15709 cat confdefs.h >>conftest.$ac_ext
15710 cat >>conftest.$ac_ext <<_ACEOF
15711 /* end confdefs.h. */
15712 $ac_includes_default
15718 if (sizeof (dev_t))
15724 rm -f conftest.$ac_objext
15725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15726 (eval $ac_compile) 2>conftest.er1
15728 grep -v '^ *+' conftest.er1 >conftest.err
15730 cat conftest.err >&5
15731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15732 (exit $ac_status); } &&
15733 { ac_try='test -z "$ac_c_werror_flag"
15734 || test ! -s conftest.err'
15735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15736 (eval $ac_try) 2>&5
15738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15739 (exit $ac_status); }; } &&
15740 { ac_try='test -s conftest.$ac_objext'
15741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15742 (eval $ac_try) 2>&5
15744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15745 (exit $ac_status); }; }; then
15746 ac_cv_type_dev_t=yes
15748 echo "$as_me: failed program was:" >&5
15749 sed 's/^/| /' conftest.$ac_ext >&5
15751 ac_cv_type_dev_t=no
15753 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15755 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
15756 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
15757 if test $ac_cv_type_dev_t = yes; then
15761 cat >>confdefs.h <<_ACEOF
15762 #define dev_t unsigned long
15767 echo "$as_me:$LINENO: checking for daddr_t" >&5
15768 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
15769 if test "${ac_cv_type_daddr_t+set}" = set; then
15770 echo $ECHO_N "(cached) $ECHO_C" >&6
15772 cat >conftest.$ac_ext <<_ACEOF
15775 cat confdefs.h >>conftest.$ac_ext
15776 cat >>conftest.$ac_ext <<_ACEOF
15777 /* end confdefs.h. */
15778 $ac_includes_default
15784 if (sizeof (daddr_t))
15790 rm -f conftest.$ac_objext
15791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15792 (eval $ac_compile) 2>conftest.er1
15794 grep -v '^ *+' conftest.er1 >conftest.err
15796 cat conftest.err >&5
15797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15798 (exit $ac_status); } &&
15799 { ac_try='test -z "$ac_c_werror_flag"
15800 || test ! -s conftest.err'
15801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15802 (eval $ac_try) 2>&5
15804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15805 (exit $ac_status); }; } &&
15806 { ac_try='test -s conftest.$ac_objext'
15807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15808 (eval $ac_try) 2>&5
15810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15811 (exit $ac_status); }; }; then
15812 ac_cv_type_daddr_t=yes
15814 echo "$as_me: failed program was:" >&5
15815 sed 's/^/| /' conftest.$ac_ext >&5
15817 ac_cv_type_daddr_t=no
15819 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15821 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
15822 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
15823 if test $ac_cv_type_daddr_t = yes; then
15827 cat >>confdefs.h <<_ACEOF
15828 #define daddr_t long
15833 echo "$as_me:$LINENO: checking for major_t" >&5
15834 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
15835 if test "${ac_cv_type_major_t+set}" = set; then
15836 echo $ECHO_N "(cached) $ECHO_C" >&6
15838 cat >conftest.$ac_ext <<_ACEOF
15841 cat confdefs.h >>conftest.$ac_ext
15842 cat >>conftest.$ac_ext <<_ACEOF
15843 /* end confdefs.h. */
15844 $ac_includes_default
15850 if (sizeof (major_t))
15856 rm -f conftest.$ac_objext
15857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15858 (eval $ac_compile) 2>conftest.er1
15860 grep -v '^ *+' conftest.er1 >conftest.err
15862 cat conftest.err >&5
15863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15864 (exit $ac_status); } &&
15865 { ac_try='test -z "$ac_c_werror_flag"
15866 || test ! -s conftest.err'
15867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15868 (eval $ac_try) 2>&5
15870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15871 (exit $ac_status); }; } &&
15872 { ac_try='test -s conftest.$ac_objext'
15873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15874 (eval $ac_try) 2>&5
15876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15877 (exit $ac_status); }; }; then
15878 ac_cv_type_major_t=yes
15880 echo "$as_me: failed program was:" >&5
15881 sed 's/^/| /' conftest.$ac_ext >&5
15883 ac_cv_type_major_t=no
15885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15887 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
15888 echo "${ECHO_T}$ac_cv_type_major_t" >&6
15889 if test $ac_cv_type_major_t = yes; then
15893 cat >>confdefs.h <<_ACEOF
15894 #define major_t int
15899 echo "$as_me:$LINENO: checking for minor_t" >&5
15900 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
15901 if test "${ac_cv_type_minor_t+set}" = set; then
15902 echo $ECHO_N "(cached) $ECHO_C" >&6
15904 cat >conftest.$ac_ext <<_ACEOF
15907 cat confdefs.h >>conftest.$ac_ext
15908 cat >>conftest.$ac_ext <<_ACEOF
15909 /* end confdefs.h. */
15910 $ac_includes_default
15916 if (sizeof (minor_t))
15922 rm -f conftest.$ac_objext
15923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15924 (eval $ac_compile) 2>conftest.er1
15926 grep -v '^ *+' conftest.er1 >conftest.err
15928 cat conftest.err >&5
15929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15930 (exit $ac_status); } &&
15931 { ac_try='test -z "$ac_c_werror_flag"
15932 || test ! -s conftest.err'
15933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15934 (eval $ac_try) 2>&5
15936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15937 (exit $ac_status); }; } &&
15938 { ac_try='test -s conftest.$ac_objext'
15939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15940 (eval $ac_try) 2>&5
15942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15943 (exit $ac_status); }; }; then
15944 ac_cv_type_minor_t=yes
15946 echo "$as_me: failed program was:" >&5
15947 sed 's/^/| /' conftest.$ac_ext >&5
15949 ac_cv_type_minor_t=no
15951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15953 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
15954 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
15955 if test $ac_cv_type_minor_t = yes; then
15959 cat >>confdefs.h <<_ACEOF
15960 #define minor_t int
15965 echo "$as_me:$LINENO: checking for ssize_t" >&5
15966 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
15967 if test "${ac_cv_type_ssize_t+set}" = set; then
15968 echo $ECHO_N "(cached) $ECHO_C" >&6
15970 cat >conftest.$ac_ext <<_ACEOF
15973 cat confdefs.h >>conftest.$ac_ext
15974 cat >>conftest.$ac_ext <<_ACEOF
15975 /* end confdefs.h. */
15976 $ac_includes_default
15982 if (sizeof (ssize_t))
15988 rm -f conftest.$ac_objext
15989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15990 (eval $ac_compile) 2>conftest.er1
15992 grep -v '^ *+' conftest.er1 >conftest.err
15994 cat conftest.err >&5
15995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15996 (exit $ac_status); } &&
15997 { ac_try='test -z "$ac_c_werror_flag"
15998 || test ! -s conftest.err'
15999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16000 (eval $ac_try) 2>&5
16002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16003 (exit $ac_status); }; } &&
16004 { ac_try='test -s conftest.$ac_objext'
16005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16006 (eval $ac_try) 2>&5
16008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16009 (exit $ac_status); }; }; then
16010 ac_cv_type_ssize_t=yes
16012 echo "$as_me: failed program was:" >&5
16013 sed 's/^/| /' conftest.$ac_ext >&5
16015 ac_cv_type_ssize_t=no
16017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16019 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
16020 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
16021 if test $ac_cv_type_ssize_t = yes; then
16025 cat >>confdefs.h <<_ACEOF
16026 #define ssize_t int
16031 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
16032 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
16033 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
16034 echo $ECHO_N "(cached) $ECHO_C" >&6
16036 cat >conftest.$ac_ext <<_ACEOF
16039 cat confdefs.h >>conftest.$ac_ext
16040 cat >>conftest.$ac_ext <<_ACEOF
16041 /* end confdefs.h. */
16042 $ac_includes_default
16046 static struct stat ac_aggr;
16047 if (ac_aggr.st_blocks)
16053 rm -f conftest.$ac_objext
16054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16055 (eval $ac_compile) 2>conftest.er1
16057 grep -v '^ *+' conftest.er1 >conftest.err
16059 cat conftest.err >&5
16060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16061 (exit $ac_status); } &&
16062 { ac_try='test -z "$ac_c_werror_flag"
16063 || test ! -s conftest.err'
16064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16065 (eval $ac_try) 2>&5
16067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16068 (exit $ac_status); }; } &&
16069 { ac_try='test -s conftest.$ac_objext'
16070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16071 (eval $ac_try) 2>&5
16073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16074 (exit $ac_status); }; }; then
16075 ac_cv_member_struct_stat_st_blocks=yes
16077 echo "$as_me: failed program was:" >&5
16078 sed 's/^/| /' conftest.$ac_ext >&5
16080 cat >conftest.$ac_ext <<_ACEOF
16083 cat confdefs.h >>conftest.$ac_ext
16084 cat >>conftest.$ac_ext <<_ACEOF
16085 /* end confdefs.h. */
16086 $ac_includes_default
16090 static struct stat ac_aggr;
16091 if (sizeof ac_aggr.st_blocks)
16097 rm -f conftest.$ac_objext
16098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16099 (eval $ac_compile) 2>conftest.er1
16101 grep -v '^ *+' conftest.er1 >conftest.err
16103 cat conftest.err >&5
16104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16105 (exit $ac_status); } &&
16106 { ac_try='test -z "$ac_c_werror_flag"
16107 || test ! -s conftest.err'
16108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16109 (eval $ac_try) 2>&5
16111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16112 (exit $ac_status); }; } &&
16113 { ac_try='test -s conftest.$ac_objext'
16114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16115 (eval $ac_try) 2>&5
16117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16118 (exit $ac_status); }; }; then
16119 ac_cv_member_struct_stat_st_blocks=yes
16121 echo "$as_me: failed program was:" >&5
16122 sed 's/^/| /' conftest.$ac_ext >&5
16124 ac_cv_member_struct_stat_st_blocks=no
16126 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16130 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
16131 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
16132 if test $ac_cv_member_struct_stat_st_blocks = yes; then
16134 cat >>confdefs.h <<_ACEOF
16135 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
16139 cat >>confdefs.h <<\_ACEOF
16140 #define HAVE_ST_BLOCKS 1
16145 "fileblocks.$ac_objext" | \
16146 *" fileblocks.$ac_objext" | \
16147 "fileblocks.$ac_objext "* | \
16148 *" fileblocks.$ac_objext "* ) ;;
16149 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
16156 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
16157 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
16158 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
16159 echo $ECHO_N "(cached) $ECHO_C" >&6
16161 cat >conftest.$ac_ext <<_ACEOF
16164 cat confdefs.h >>conftest.$ac_ext
16165 cat >>conftest.$ac_ext <<_ACEOF
16166 /* end confdefs.h. */
16167 $ac_includes_default
16171 static struct stat ac_aggr;
16172 if (ac_aggr.st_rdev)
16178 rm -f conftest.$ac_objext
16179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16180 (eval $ac_compile) 2>conftest.er1
16182 grep -v '^ *+' conftest.er1 >conftest.err
16184 cat conftest.err >&5
16185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16186 (exit $ac_status); } &&
16187 { ac_try='test -z "$ac_c_werror_flag"
16188 || test ! -s conftest.err'
16189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16190 (eval $ac_try) 2>&5
16192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16193 (exit $ac_status); }; } &&
16194 { ac_try='test -s conftest.$ac_objext'
16195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16196 (eval $ac_try) 2>&5
16198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16199 (exit $ac_status); }; }; then
16200 ac_cv_member_struct_stat_st_rdev=yes
16202 echo "$as_me: failed program was:" >&5
16203 sed 's/^/| /' conftest.$ac_ext >&5
16205 cat >conftest.$ac_ext <<_ACEOF
16208 cat confdefs.h >>conftest.$ac_ext
16209 cat >>conftest.$ac_ext <<_ACEOF
16210 /* end confdefs.h. */
16211 $ac_includes_default
16215 static struct stat ac_aggr;
16216 if (sizeof ac_aggr.st_rdev)
16222 rm -f conftest.$ac_objext
16223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16224 (eval $ac_compile) 2>conftest.er1
16226 grep -v '^ *+' conftest.er1 >conftest.err
16228 cat conftest.err >&5
16229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16230 (exit $ac_status); } &&
16231 { ac_try='test -z "$ac_c_werror_flag"
16232 || test ! -s conftest.err'
16233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16234 (eval $ac_try) 2>&5
16236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16237 (exit $ac_status); }; } &&
16238 { ac_try='test -s conftest.$ac_objext'
16239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16240 (eval $ac_try) 2>&5
16242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16243 (exit $ac_status); }; }; then
16244 ac_cv_member_struct_stat_st_rdev=yes
16246 echo "$as_me: failed program was:" >&5
16247 sed 's/^/| /' conftest.$ac_ext >&5
16249 ac_cv_member_struct_stat_st_rdev=no
16251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16253 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16255 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
16256 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
16257 if test $ac_cv_member_struct_stat_st_rdev = yes; then
16259 cat >>confdefs.h <<_ACEOF
16260 #define HAVE_STRUCT_STAT_ST_RDEV 1
16264 cat >>confdefs.h <<\_ACEOF
16265 #define HAVE_ST_RDEV 1
16271 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16272 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
16273 if test "${ac_cv_struct_tm+set}" = set; then
16274 echo $ECHO_N "(cached) $ECHO_C" >&6
16276 cat >conftest.$ac_ext <<_ACEOF
16279 cat confdefs.h >>conftest.$ac_ext
16280 cat >>conftest.$ac_ext <<_ACEOF
16281 /* end confdefs.h. */
16282 #include <sys/types.h>
16288 struct tm *tp; tp->tm_sec;
16293 rm -f conftest.$ac_objext
16294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16295 (eval $ac_compile) 2>conftest.er1
16297 grep -v '^ *+' conftest.er1 >conftest.err
16299 cat conftest.err >&5
16300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16301 (exit $ac_status); } &&
16302 { ac_try='test -z "$ac_c_werror_flag"
16303 || test ! -s conftest.err'
16304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16305 (eval $ac_try) 2>&5
16307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16308 (exit $ac_status); }; } &&
16309 { ac_try='test -s conftest.$ac_objext'
16310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16311 (eval $ac_try) 2>&5
16313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16314 (exit $ac_status); }; }; then
16315 ac_cv_struct_tm=time.h
16317 echo "$as_me: failed program was:" >&5
16318 sed 's/^/| /' conftest.$ac_ext >&5
16320 ac_cv_struct_tm=sys/time.h
16322 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16324 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16325 echo "${ECHO_T}$ac_cv_struct_tm" >&6
16326 if test $ac_cv_struct_tm = sys/time.h; then
16328 cat >>confdefs.h <<\_ACEOF
16329 #define TM_IN_SYS_TIME 1
16334 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
16335 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
16336 if test "${ac_cv_c_const+set}" = set; then
16337 echo $ECHO_N "(cached) $ECHO_C" >&6
16339 cat >conftest.$ac_ext <<_ACEOF
16342 cat confdefs.h >>conftest.$ac_ext
16343 cat >>conftest.$ac_ext <<_ACEOF
16344 /* end confdefs.h. */
16349 /* FIXME: Include the comments suggested by Paul. */
16350 #ifndef __cplusplus
16351 /* Ultrix mips cc rejects this. */
16352 typedef int charset[2];
16354 /* SunOS 4.1.1 cc rejects this. */
16355 char const *const *ccp;
16357 /* NEC SVR4.0.2 mips cc rejects this. */
16358 struct point {int x, y;};
16359 static struct point const zero = {0,0};
16360 /* AIX XL C 1.02.0.0 rejects this.
16361 It does not let you subtract one const X* pointer from another in
16362 an arm of an if-expression whose if-part is not a constant
16364 const char *g = "string";
16365 ccp = &g + (g ? g-g : 0);
16366 /* HPUX 7.0 cc rejects these. */
16369 ccp = (char const *const *) p;
16370 { /* SCO 3.2v4 cc rejects this. */
16372 char const *s = 0 ? (char *) 0 : (char const *) 0;
16376 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16377 int x[] = {25, 17};
16378 const int *foo = &x[0];
16381 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16382 typedef const int *iptr;
16386 { /* AIX XL C 1.02.0.0 rejects this saying
16387 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16388 struct s { int j; const int *ap[3]; };
16389 struct s *b; b->j = 5;
16391 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16392 const int foo = 10;
16400 rm -f conftest.$ac_objext
16401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16402 (eval $ac_compile) 2>conftest.er1
16404 grep -v '^ *+' conftest.er1 >conftest.err
16406 cat conftest.err >&5
16407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16408 (exit $ac_status); } &&
16409 { ac_try='test -z "$ac_c_werror_flag"
16410 || test ! -s conftest.err'
16411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16412 (eval $ac_try) 2>&5
16414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16415 (exit $ac_status); }; } &&
16416 { ac_try='test -s conftest.$ac_objext'
16417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16418 (eval $ac_try) 2>&5
16420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16421 (exit $ac_status); }; }; then
16424 echo "$as_me: failed program was:" >&5
16425 sed 's/^/| /' conftest.$ac_ext >&5
16429 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16431 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
16432 echo "${ECHO_T}$ac_cv_c_const" >&6
16433 if test $ac_cv_c_const = no; then
16435 cat >>confdefs.h <<\_ACEOF
16443 echo "$as_me:$LINENO: checking for char" >&5
16444 echo $ECHO_N "checking for char... $ECHO_C" >&6
16445 if test "${ac_cv_type_char+set}" = set; then
16446 echo $ECHO_N "(cached) $ECHO_C" >&6
16448 cat >conftest.$ac_ext <<_ACEOF
16451 cat confdefs.h >>conftest.$ac_ext
16452 cat >>conftest.$ac_ext <<_ACEOF
16453 /* end confdefs.h. */
16454 $ac_includes_default
16466 rm -f conftest.$ac_objext
16467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16468 (eval $ac_compile) 2>conftest.er1
16470 grep -v '^ *+' conftest.er1 >conftest.err
16472 cat conftest.err >&5
16473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16474 (exit $ac_status); } &&
16475 { ac_try='test -z "$ac_c_werror_flag"
16476 || test ! -s conftest.err'
16477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16478 (eval $ac_try) 2>&5
16480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16481 (exit $ac_status); }; } &&
16482 { ac_try='test -s conftest.$ac_objext'
16483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16484 (eval $ac_try) 2>&5
16486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16487 (exit $ac_status); }; }; then
16488 ac_cv_type_char=yes
16490 echo "$as_me: failed program was:" >&5
16491 sed 's/^/| /' conftest.$ac_ext >&5
16495 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16497 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
16498 echo "${ECHO_T}$ac_cv_type_char" >&6
16500 echo "$as_me:$LINENO: checking size of char" >&5
16501 echo $ECHO_N "checking size of char... $ECHO_C" >&6
16502 if test "${ac_cv_sizeof_char+set}" = set; then
16503 echo $ECHO_N "(cached) $ECHO_C" >&6
16505 if test "$ac_cv_type_char" = yes; then
16506 # The cast to unsigned long works around a bug in the HP C Compiler
16507 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16508 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16509 # This bug is HP SR number 8606223364.
16510 if test "$cross_compiling" = yes; then
16511 # Depending upon the size, compute the lo and hi bounds.
16512 cat >conftest.$ac_ext <<_ACEOF
16515 cat confdefs.h >>conftest.$ac_ext
16516 cat >>conftest.$ac_ext <<_ACEOF
16517 /* end confdefs.h. */
16518 $ac_includes_default
16522 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
16529 rm -f conftest.$ac_objext
16530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16531 (eval $ac_compile) 2>conftest.er1
16533 grep -v '^ *+' conftest.er1 >conftest.err
16535 cat conftest.err >&5
16536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16537 (exit $ac_status); } &&
16538 { ac_try='test -z "$ac_c_werror_flag"
16539 || test ! -s conftest.err'
16540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16541 (eval $ac_try) 2>&5
16543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16544 (exit $ac_status); }; } &&
16545 { ac_try='test -s conftest.$ac_objext'
16546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16547 (eval $ac_try) 2>&5
16549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16550 (exit $ac_status); }; }; then
16553 cat >conftest.$ac_ext <<_ACEOF
16556 cat confdefs.h >>conftest.$ac_ext
16557 cat >>conftest.$ac_ext <<_ACEOF
16558 /* end confdefs.h. */
16559 $ac_includes_default
16563 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16570 rm -f conftest.$ac_objext
16571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16572 (eval $ac_compile) 2>conftest.er1
16574 grep -v '^ *+' conftest.er1 >conftest.err
16576 cat conftest.err >&5
16577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16578 (exit $ac_status); } &&
16579 { ac_try='test -z "$ac_c_werror_flag"
16580 || test ! -s conftest.err'
16581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16582 (eval $ac_try) 2>&5
16584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16585 (exit $ac_status); }; } &&
16586 { ac_try='test -s conftest.$ac_objext'
16587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16588 (eval $ac_try) 2>&5
16590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16591 (exit $ac_status); }; }; then
16592 ac_hi=$ac_mid; break
16594 echo "$as_me: failed program was:" >&5
16595 sed 's/^/| /' conftest.$ac_ext >&5
16597 ac_lo=`expr $ac_mid + 1`
16598 if test $ac_lo -le $ac_mid; then
16602 ac_mid=`expr 2 '*' $ac_mid + 1`
16604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16607 echo "$as_me: failed program was:" >&5
16608 sed 's/^/| /' conftest.$ac_ext >&5
16610 cat >conftest.$ac_ext <<_ACEOF
16613 cat confdefs.h >>conftest.$ac_ext
16614 cat >>conftest.$ac_ext <<_ACEOF
16615 /* end confdefs.h. */
16616 $ac_includes_default
16620 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
16627 rm -f conftest.$ac_objext
16628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16629 (eval $ac_compile) 2>conftest.er1
16631 grep -v '^ *+' conftest.er1 >conftest.err
16633 cat conftest.err >&5
16634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16635 (exit $ac_status); } &&
16636 { ac_try='test -z "$ac_c_werror_flag"
16637 || test ! -s conftest.err'
16638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16639 (eval $ac_try) 2>&5
16641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16642 (exit $ac_status); }; } &&
16643 { ac_try='test -s conftest.$ac_objext'
16644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16645 (eval $ac_try) 2>&5
16647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16648 (exit $ac_status); }; }; then
16651 cat >conftest.$ac_ext <<_ACEOF
16654 cat confdefs.h >>conftest.$ac_ext
16655 cat >>conftest.$ac_ext <<_ACEOF
16656 /* end confdefs.h. */
16657 $ac_includes_default
16661 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
16668 rm -f conftest.$ac_objext
16669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16670 (eval $ac_compile) 2>conftest.er1
16672 grep -v '^ *+' conftest.er1 >conftest.err
16674 cat conftest.err >&5
16675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16676 (exit $ac_status); } &&
16677 { ac_try='test -z "$ac_c_werror_flag"
16678 || test ! -s conftest.err'
16679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16680 (eval $ac_try) 2>&5
16682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16683 (exit $ac_status); }; } &&
16684 { ac_try='test -s conftest.$ac_objext'
16685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16686 (eval $ac_try) 2>&5
16688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16689 (exit $ac_status); }; }; then
16690 ac_lo=$ac_mid; break
16692 echo "$as_me: failed program was:" >&5
16693 sed 's/^/| /' conftest.$ac_ext >&5
16695 ac_hi=`expr '(' $ac_mid ')' - 1`
16696 if test $ac_mid -le $ac_hi; then
16700 ac_mid=`expr 2 '*' $ac_mid`
16702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16705 echo "$as_me: failed program was:" >&5
16706 sed 's/^/| /' conftest.$ac_ext >&5
16710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16713 # Binary search between lo and hi bounds.
16714 while test "x$ac_lo" != "x$ac_hi"; do
16715 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16716 cat >conftest.$ac_ext <<_ACEOF
16719 cat confdefs.h >>conftest.$ac_ext
16720 cat >>conftest.$ac_ext <<_ACEOF
16721 /* end confdefs.h. */
16722 $ac_includes_default
16726 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16733 rm -f conftest.$ac_objext
16734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16735 (eval $ac_compile) 2>conftest.er1
16737 grep -v '^ *+' conftest.er1 >conftest.err
16739 cat conftest.err >&5
16740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16741 (exit $ac_status); } &&
16742 { ac_try='test -z "$ac_c_werror_flag"
16743 || test ! -s conftest.err'
16744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16745 (eval $ac_try) 2>&5
16747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16748 (exit $ac_status); }; } &&
16749 { ac_try='test -s conftest.$ac_objext'
16750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16751 (eval $ac_try) 2>&5
16753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16754 (exit $ac_status); }; }; then
16757 echo "$as_me: failed program was:" >&5
16758 sed 's/^/| /' conftest.$ac_ext >&5
16760 ac_lo=`expr '(' $ac_mid ')' + 1`
16762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16765 ?*) ac_cv_sizeof_char=$ac_lo;;
16766 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16767 See \`config.log' for more details." >&5
16768 echo "$as_me: error: cannot compute sizeof (char), 77
16769 See \`config.log' for more details." >&2;}
16770 { (exit 1); exit 1; }; } ;;
16773 if test "$cross_compiling" = yes; then
16774 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16775 See \`config.log' for more details." >&5
16776 echo "$as_me: error: cannot run test program while cross compiling
16777 See \`config.log' for more details." >&2;}
16778 { (exit 1); exit 1; }; }
16780 cat >conftest.$ac_ext <<_ACEOF
16783 cat confdefs.h >>conftest.$ac_ext
16784 cat >>conftest.$ac_ext <<_ACEOF
16785 /* end confdefs.h. */
16786 $ac_includes_default
16787 long longval () { return (long) (sizeof (char)); }
16788 unsigned long ulongval () { return (long) (sizeof (char)); }
16790 #include <stdlib.h>
16795 FILE *f = fopen ("conftest.val", "w");
16798 if (((long) (sizeof (char))) < 0)
16800 long i = longval ();
16801 if (i != ((long) (sizeof (char))))
16803 fprintf (f, "%ld\n", i);
16807 unsigned long i = ulongval ();
16808 if (i != ((long) (sizeof (char))))
16810 fprintf (f, "%lu\n", i);
16812 exit (ferror (f) || fclose (f) != 0);
16818 rm -f conftest$ac_exeext
16819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16820 (eval $ac_link) 2>&5
16822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16823 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16825 (eval $ac_try) 2>&5
16827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16828 (exit $ac_status); }; }; then
16829 ac_cv_sizeof_char=`cat conftest.val`
16831 echo "$as_me: program exited with status $ac_status" >&5
16832 echo "$as_me: failed program was:" >&5
16833 sed 's/^/| /' conftest.$ac_ext >&5
16835 ( exit $ac_status )
16836 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16837 See \`config.log' for more details." >&5
16838 echo "$as_me: error: cannot compute sizeof (char), 77
16839 See \`config.log' for more details." >&2;}
16840 { (exit 1); exit 1; }; }
16842 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16847 ac_cv_sizeof_char=0
16850 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
16851 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
16852 cat >>confdefs.h <<_ACEOF
16853 #define SIZEOF_CHAR $ac_cv_sizeof_char
16857 echo "$as_me:$LINENO: checking for short int" >&5
16858 echo $ECHO_N "checking for short int... $ECHO_C" >&6
16859 if test "${ac_cv_type_short_int+set}" = set; then
16860 echo $ECHO_N "(cached) $ECHO_C" >&6
16862 cat >conftest.$ac_ext <<_ACEOF
16865 cat confdefs.h >>conftest.$ac_ext
16866 cat >>conftest.$ac_ext <<_ACEOF
16867 /* end confdefs.h. */
16868 $ac_includes_default
16872 if ((short int *) 0)
16874 if (sizeof (short int))
16880 rm -f conftest.$ac_objext
16881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16882 (eval $ac_compile) 2>conftest.er1
16884 grep -v '^ *+' conftest.er1 >conftest.err
16886 cat conftest.err >&5
16887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16888 (exit $ac_status); } &&
16889 { ac_try='test -z "$ac_c_werror_flag"
16890 || test ! -s conftest.err'
16891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16892 (eval $ac_try) 2>&5
16894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16895 (exit $ac_status); }; } &&
16896 { ac_try='test -s conftest.$ac_objext'
16897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16898 (eval $ac_try) 2>&5
16900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16901 (exit $ac_status); }; }; then
16902 ac_cv_type_short_int=yes
16904 echo "$as_me: failed program was:" >&5
16905 sed 's/^/| /' conftest.$ac_ext >&5
16907 ac_cv_type_short_int=no
16909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16911 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
16912 echo "${ECHO_T}$ac_cv_type_short_int" >&6
16914 echo "$as_me:$LINENO: checking size of short int" >&5
16915 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
16916 if test "${ac_cv_sizeof_short_int+set}" = set; then
16917 echo $ECHO_N "(cached) $ECHO_C" >&6
16919 if test "$ac_cv_type_short_int" = yes; then
16920 # The cast to unsigned long works around a bug in the HP C Compiler
16921 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16922 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16923 # This bug is HP SR number 8606223364.
16924 if test "$cross_compiling" = yes; then
16925 # Depending upon the size, compute the lo and hi bounds.
16926 cat >conftest.$ac_ext <<_ACEOF
16929 cat confdefs.h >>conftest.$ac_ext
16930 cat >>conftest.$ac_ext <<_ACEOF
16931 /* end confdefs.h. */
16932 $ac_includes_default
16936 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
16943 rm -f conftest.$ac_objext
16944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16945 (eval $ac_compile) 2>conftest.er1
16947 grep -v '^ *+' conftest.er1 >conftest.err
16949 cat conftest.err >&5
16950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16951 (exit $ac_status); } &&
16952 { ac_try='test -z "$ac_c_werror_flag"
16953 || test ! -s conftest.err'
16954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16955 (eval $ac_try) 2>&5
16957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16958 (exit $ac_status); }; } &&
16959 { ac_try='test -s conftest.$ac_objext'
16960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16961 (eval $ac_try) 2>&5
16963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16964 (exit $ac_status); }; }; then
16967 cat >conftest.$ac_ext <<_ACEOF
16970 cat confdefs.h >>conftest.$ac_ext
16971 cat >>conftest.$ac_ext <<_ACEOF
16972 /* end confdefs.h. */
16973 $ac_includes_default
16977 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
16984 rm -f conftest.$ac_objext
16985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16986 (eval $ac_compile) 2>conftest.er1
16988 grep -v '^ *+' conftest.er1 >conftest.err
16990 cat conftest.err >&5
16991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16992 (exit $ac_status); } &&
16993 { ac_try='test -z "$ac_c_werror_flag"
16994 || test ! -s conftest.err'
16995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16996 (eval $ac_try) 2>&5
16998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16999 (exit $ac_status); }; } &&
17000 { ac_try='test -s conftest.$ac_objext'
17001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17002 (eval $ac_try) 2>&5
17004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17005 (exit $ac_status); }; }; then
17006 ac_hi=$ac_mid; break
17008 echo "$as_me: failed program was:" >&5
17009 sed 's/^/| /' conftest.$ac_ext >&5
17011 ac_lo=`expr $ac_mid + 1`
17012 if test $ac_lo -le $ac_mid; then
17016 ac_mid=`expr 2 '*' $ac_mid + 1`
17018 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17021 echo "$as_me: failed program was:" >&5
17022 sed 's/^/| /' conftest.$ac_ext >&5
17024 cat >conftest.$ac_ext <<_ACEOF
17027 cat confdefs.h >>conftest.$ac_ext
17028 cat >>conftest.$ac_ext <<_ACEOF
17029 /* end confdefs.h. */
17030 $ac_includes_default
17034 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
17041 rm -f conftest.$ac_objext
17042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17043 (eval $ac_compile) 2>conftest.er1
17045 grep -v '^ *+' conftest.er1 >conftest.err
17047 cat conftest.err >&5
17048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17049 (exit $ac_status); } &&
17050 { ac_try='test -z "$ac_c_werror_flag"
17051 || test ! -s conftest.err'
17052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17053 (eval $ac_try) 2>&5
17055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17056 (exit $ac_status); }; } &&
17057 { ac_try='test -s conftest.$ac_objext'
17058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17059 (eval $ac_try) 2>&5
17061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17062 (exit $ac_status); }; }; then
17065 cat >conftest.$ac_ext <<_ACEOF
17068 cat confdefs.h >>conftest.$ac_ext
17069 cat >>conftest.$ac_ext <<_ACEOF
17070 /* end confdefs.h. */
17071 $ac_includes_default
17075 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
17082 rm -f conftest.$ac_objext
17083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17084 (eval $ac_compile) 2>conftest.er1
17086 grep -v '^ *+' conftest.er1 >conftest.err
17088 cat conftest.err >&5
17089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17090 (exit $ac_status); } &&
17091 { ac_try='test -z "$ac_c_werror_flag"
17092 || test ! -s conftest.err'
17093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17094 (eval $ac_try) 2>&5
17096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17097 (exit $ac_status); }; } &&
17098 { ac_try='test -s conftest.$ac_objext'
17099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17100 (eval $ac_try) 2>&5
17102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17103 (exit $ac_status); }; }; then
17104 ac_lo=$ac_mid; break
17106 echo "$as_me: failed program was:" >&5
17107 sed 's/^/| /' conftest.$ac_ext >&5
17109 ac_hi=`expr '(' $ac_mid ')' - 1`
17110 if test $ac_mid -le $ac_hi; then
17114 ac_mid=`expr 2 '*' $ac_mid`
17116 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17119 echo "$as_me: failed program was:" >&5
17120 sed 's/^/| /' conftest.$ac_ext >&5
17124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17126 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17127 # Binary search between lo and hi bounds.
17128 while test "x$ac_lo" != "x$ac_hi"; do
17129 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17130 cat >conftest.$ac_ext <<_ACEOF
17133 cat confdefs.h >>conftest.$ac_ext
17134 cat >>conftest.$ac_ext <<_ACEOF
17135 /* end confdefs.h. */
17136 $ac_includes_default
17140 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
17147 rm -f conftest.$ac_objext
17148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17149 (eval $ac_compile) 2>conftest.er1
17151 grep -v '^ *+' conftest.er1 >conftest.err
17153 cat conftest.err >&5
17154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17155 (exit $ac_status); } &&
17156 { ac_try='test -z "$ac_c_werror_flag"
17157 || test ! -s conftest.err'
17158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17159 (eval $ac_try) 2>&5
17161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17162 (exit $ac_status); }; } &&
17163 { ac_try='test -s conftest.$ac_objext'
17164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17165 (eval $ac_try) 2>&5
17167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17168 (exit $ac_status); }; }; then
17171 echo "$as_me: failed program was:" >&5
17172 sed 's/^/| /' conftest.$ac_ext >&5
17174 ac_lo=`expr '(' $ac_mid ')' + 1`
17176 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17179 ?*) ac_cv_sizeof_short_int=$ac_lo;;
17180 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
17181 See \`config.log' for more details." >&5
17182 echo "$as_me: error: cannot compute sizeof (short int), 77
17183 See \`config.log' for more details." >&2;}
17184 { (exit 1); exit 1; }; } ;;
17187 if test "$cross_compiling" = yes; then
17188 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17189 See \`config.log' for more details." >&5
17190 echo "$as_me: error: cannot run test program while cross compiling
17191 See \`config.log' for more details." >&2;}
17192 { (exit 1); exit 1; }; }
17194 cat >conftest.$ac_ext <<_ACEOF
17197 cat confdefs.h >>conftest.$ac_ext
17198 cat >>conftest.$ac_ext <<_ACEOF
17199 /* end confdefs.h. */
17200 $ac_includes_default
17201 long longval () { return (long) (sizeof (short int)); }
17202 unsigned long ulongval () { return (long) (sizeof (short int)); }
17204 #include <stdlib.h>
17209 FILE *f = fopen ("conftest.val", "w");
17212 if (((long) (sizeof (short int))) < 0)
17214 long i = longval ();
17215 if (i != ((long) (sizeof (short int))))
17217 fprintf (f, "%ld\n", i);
17221 unsigned long i = ulongval ();
17222 if (i != ((long) (sizeof (short int))))
17224 fprintf (f, "%lu\n", i);
17226 exit (ferror (f) || fclose (f) != 0);
17232 rm -f conftest$ac_exeext
17233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17234 (eval $ac_link) 2>&5
17236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17237 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17239 (eval $ac_try) 2>&5
17241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17242 (exit $ac_status); }; }; then
17243 ac_cv_sizeof_short_int=`cat conftest.val`
17245 echo "$as_me: program exited with status $ac_status" >&5
17246 echo "$as_me: failed program was:" >&5
17247 sed 's/^/| /' conftest.$ac_ext >&5
17249 ( exit $ac_status )
17250 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
17251 See \`config.log' for more details." >&5
17252 echo "$as_me: error: cannot compute sizeof (short int), 77
17253 See \`config.log' for more details." >&2;}
17254 { (exit 1); exit 1; }; }
17256 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17261 ac_cv_sizeof_short_int=0
17264 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
17265 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
17266 cat >>confdefs.h <<_ACEOF
17267 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
17271 echo "$as_me:$LINENO: checking for int" >&5
17272 echo $ECHO_N "checking for int... $ECHO_C" >&6
17273 if test "${ac_cv_type_int+set}" = set; then
17274 echo $ECHO_N "(cached) $ECHO_C" >&6
17276 cat >conftest.$ac_ext <<_ACEOF
17279 cat confdefs.h >>conftest.$ac_ext
17280 cat >>conftest.$ac_ext <<_ACEOF
17281 /* end confdefs.h. */
17282 $ac_includes_default
17294 rm -f conftest.$ac_objext
17295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17296 (eval $ac_compile) 2>conftest.er1
17298 grep -v '^ *+' conftest.er1 >conftest.err
17300 cat conftest.err >&5
17301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17302 (exit $ac_status); } &&
17303 { ac_try='test -z "$ac_c_werror_flag"
17304 || test ! -s conftest.err'
17305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17306 (eval $ac_try) 2>&5
17308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17309 (exit $ac_status); }; } &&
17310 { ac_try='test -s conftest.$ac_objext'
17311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17312 (eval $ac_try) 2>&5
17314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17315 (exit $ac_status); }; }; then
17318 echo "$as_me: failed program was:" >&5
17319 sed 's/^/| /' conftest.$ac_ext >&5
17323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17325 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
17326 echo "${ECHO_T}$ac_cv_type_int" >&6
17328 echo "$as_me:$LINENO: checking size of int" >&5
17329 echo $ECHO_N "checking size of int... $ECHO_C" >&6
17330 if test "${ac_cv_sizeof_int+set}" = set; then
17331 echo $ECHO_N "(cached) $ECHO_C" >&6
17333 if test "$ac_cv_type_int" = yes; then
17334 # The cast to unsigned long works around a bug in the HP C Compiler
17335 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17336 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17337 # This bug is HP SR number 8606223364.
17338 if test "$cross_compiling" = yes; then
17339 # Depending upon the size, compute the lo and hi bounds.
17340 cat >conftest.$ac_ext <<_ACEOF
17343 cat confdefs.h >>conftest.$ac_ext
17344 cat >>conftest.$ac_ext <<_ACEOF
17345 /* end confdefs.h. */
17346 $ac_includes_default
17350 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
17357 rm -f conftest.$ac_objext
17358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17359 (eval $ac_compile) 2>conftest.er1
17361 grep -v '^ *+' conftest.er1 >conftest.err
17363 cat conftest.err >&5
17364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17365 (exit $ac_status); } &&
17366 { ac_try='test -z "$ac_c_werror_flag"
17367 || test ! -s conftest.err'
17368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17369 (eval $ac_try) 2>&5
17371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17372 (exit $ac_status); }; } &&
17373 { ac_try='test -s conftest.$ac_objext'
17374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17375 (eval $ac_try) 2>&5
17377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17378 (exit $ac_status); }; }; then
17381 cat >conftest.$ac_ext <<_ACEOF
17384 cat confdefs.h >>conftest.$ac_ext
17385 cat >>conftest.$ac_ext <<_ACEOF
17386 /* end confdefs.h. */
17387 $ac_includes_default
17391 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
17398 rm -f conftest.$ac_objext
17399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17400 (eval $ac_compile) 2>conftest.er1
17402 grep -v '^ *+' conftest.er1 >conftest.err
17404 cat conftest.err >&5
17405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17406 (exit $ac_status); } &&
17407 { ac_try='test -z "$ac_c_werror_flag"
17408 || test ! -s conftest.err'
17409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17410 (eval $ac_try) 2>&5
17412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17413 (exit $ac_status); }; } &&
17414 { ac_try='test -s conftest.$ac_objext'
17415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17416 (eval $ac_try) 2>&5
17418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17419 (exit $ac_status); }; }; then
17420 ac_hi=$ac_mid; break
17422 echo "$as_me: failed program was:" >&5
17423 sed 's/^/| /' conftest.$ac_ext >&5
17425 ac_lo=`expr $ac_mid + 1`
17426 if test $ac_lo -le $ac_mid; then
17430 ac_mid=`expr 2 '*' $ac_mid + 1`
17432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17435 echo "$as_me: failed program was:" >&5
17436 sed 's/^/| /' conftest.$ac_ext >&5
17438 cat >conftest.$ac_ext <<_ACEOF
17441 cat confdefs.h >>conftest.$ac_ext
17442 cat >>conftest.$ac_ext <<_ACEOF
17443 /* end confdefs.h. */
17444 $ac_includes_default
17448 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
17455 rm -f conftest.$ac_objext
17456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17457 (eval $ac_compile) 2>conftest.er1
17459 grep -v '^ *+' conftest.er1 >conftest.err
17461 cat conftest.err >&5
17462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17463 (exit $ac_status); } &&
17464 { ac_try='test -z "$ac_c_werror_flag"
17465 || test ! -s conftest.err'
17466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17467 (eval $ac_try) 2>&5
17469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17470 (exit $ac_status); }; } &&
17471 { ac_try='test -s conftest.$ac_objext'
17472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17473 (eval $ac_try) 2>&5
17475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17476 (exit $ac_status); }; }; then
17479 cat >conftest.$ac_ext <<_ACEOF
17482 cat confdefs.h >>conftest.$ac_ext
17483 cat >>conftest.$ac_ext <<_ACEOF
17484 /* end confdefs.h. */
17485 $ac_includes_default
17489 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
17496 rm -f conftest.$ac_objext
17497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17498 (eval $ac_compile) 2>conftest.er1
17500 grep -v '^ *+' conftest.er1 >conftest.err
17502 cat conftest.err >&5
17503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17504 (exit $ac_status); } &&
17505 { ac_try='test -z "$ac_c_werror_flag"
17506 || test ! -s conftest.err'
17507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17508 (eval $ac_try) 2>&5
17510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17511 (exit $ac_status); }; } &&
17512 { ac_try='test -s conftest.$ac_objext'
17513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17514 (eval $ac_try) 2>&5
17516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17517 (exit $ac_status); }; }; then
17518 ac_lo=$ac_mid; break
17520 echo "$as_me: failed program was:" >&5
17521 sed 's/^/| /' conftest.$ac_ext >&5
17523 ac_hi=`expr '(' $ac_mid ')' - 1`
17524 if test $ac_mid -le $ac_hi; then
17528 ac_mid=`expr 2 '*' $ac_mid`
17530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17533 echo "$as_me: failed program was:" >&5
17534 sed 's/^/| /' conftest.$ac_ext >&5
17538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17541 # Binary search between lo and hi bounds.
17542 while test "x$ac_lo" != "x$ac_hi"; do
17543 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17544 cat >conftest.$ac_ext <<_ACEOF
17547 cat confdefs.h >>conftest.$ac_ext
17548 cat >>conftest.$ac_ext <<_ACEOF
17549 /* end confdefs.h. */
17550 $ac_includes_default
17554 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
17561 rm -f conftest.$ac_objext
17562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17563 (eval $ac_compile) 2>conftest.er1
17565 grep -v '^ *+' conftest.er1 >conftest.err
17567 cat conftest.err >&5
17568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17569 (exit $ac_status); } &&
17570 { ac_try='test -z "$ac_c_werror_flag"
17571 || test ! -s conftest.err'
17572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17573 (eval $ac_try) 2>&5
17575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17576 (exit $ac_status); }; } &&
17577 { ac_try='test -s conftest.$ac_objext'
17578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17579 (eval $ac_try) 2>&5
17581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17582 (exit $ac_status); }; }; then
17585 echo "$as_me: failed program was:" >&5
17586 sed 's/^/| /' conftest.$ac_ext >&5
17588 ac_lo=`expr '(' $ac_mid ')' + 1`
17590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17593 ?*) ac_cv_sizeof_int=$ac_lo;;
17594 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
17595 See \`config.log' for more details." >&5
17596 echo "$as_me: error: cannot compute sizeof (int), 77
17597 See \`config.log' for more details." >&2;}
17598 { (exit 1); exit 1; }; } ;;
17601 if test "$cross_compiling" = yes; then
17602 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17603 See \`config.log' for more details." >&5
17604 echo "$as_me: error: cannot run test program while cross compiling
17605 See \`config.log' for more details." >&2;}
17606 { (exit 1); exit 1; }; }
17608 cat >conftest.$ac_ext <<_ACEOF
17611 cat confdefs.h >>conftest.$ac_ext
17612 cat >>conftest.$ac_ext <<_ACEOF
17613 /* end confdefs.h. */
17614 $ac_includes_default
17615 long longval () { return (long) (sizeof (int)); }
17616 unsigned long ulongval () { return (long) (sizeof (int)); }
17618 #include <stdlib.h>
17623 FILE *f = fopen ("conftest.val", "w");
17626 if (((long) (sizeof (int))) < 0)
17628 long i = longval ();
17629 if (i != ((long) (sizeof (int))))
17631 fprintf (f, "%ld\n", i);
17635 unsigned long i = ulongval ();
17636 if (i != ((long) (sizeof (int))))
17638 fprintf (f, "%lu\n", i);
17640 exit (ferror (f) || fclose (f) != 0);
17646 rm -f conftest$ac_exeext
17647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17648 (eval $ac_link) 2>&5
17650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17651 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17653 (eval $ac_try) 2>&5
17655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17656 (exit $ac_status); }; }; then
17657 ac_cv_sizeof_int=`cat conftest.val`
17659 echo "$as_me: program exited with status $ac_status" >&5
17660 echo "$as_me: failed program was:" >&5
17661 sed 's/^/| /' conftest.$ac_ext >&5
17663 ( exit $ac_status )
17664 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
17665 See \`config.log' for more details." >&5
17666 echo "$as_me: error: cannot compute sizeof (int), 77
17667 See \`config.log' for more details." >&2;}
17668 { (exit 1); exit 1; }; }
17670 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17678 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
17679 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
17680 cat >>confdefs.h <<_ACEOF
17681 #define SIZEOF_INT $ac_cv_sizeof_int
17685 echo "$as_me:$LINENO: checking for long int" >&5
17686 echo $ECHO_N "checking for long int... $ECHO_C" >&6
17687 if test "${ac_cv_type_long_int+set}" = set; then
17688 echo $ECHO_N "(cached) $ECHO_C" >&6
17690 cat >conftest.$ac_ext <<_ACEOF
17693 cat confdefs.h >>conftest.$ac_ext
17694 cat >>conftest.$ac_ext <<_ACEOF
17695 /* end confdefs.h. */
17696 $ac_includes_default
17700 if ((long int *) 0)
17702 if (sizeof (long int))
17708 rm -f conftest.$ac_objext
17709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17710 (eval $ac_compile) 2>conftest.er1
17712 grep -v '^ *+' conftest.er1 >conftest.err
17714 cat conftest.err >&5
17715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17716 (exit $ac_status); } &&
17717 { ac_try='test -z "$ac_c_werror_flag"
17718 || test ! -s conftest.err'
17719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17720 (eval $ac_try) 2>&5
17722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17723 (exit $ac_status); }; } &&
17724 { ac_try='test -s conftest.$ac_objext'
17725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17726 (eval $ac_try) 2>&5
17728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17729 (exit $ac_status); }; }; then
17730 ac_cv_type_long_int=yes
17732 echo "$as_me: failed program was:" >&5
17733 sed 's/^/| /' conftest.$ac_ext >&5
17735 ac_cv_type_long_int=no
17737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17739 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
17740 echo "${ECHO_T}$ac_cv_type_long_int" >&6
17742 echo "$as_me:$LINENO: checking size of long int" >&5
17743 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
17744 if test "${ac_cv_sizeof_long_int+set}" = set; then
17745 echo $ECHO_N "(cached) $ECHO_C" >&6
17747 if test "$ac_cv_type_long_int" = yes; then
17748 # The cast to unsigned long works around a bug in the HP C Compiler
17749 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17750 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17751 # This bug is HP SR number 8606223364.
17752 if test "$cross_compiling" = yes; then
17753 # Depending upon the size, compute the lo and hi bounds.
17754 cat >conftest.$ac_ext <<_ACEOF
17757 cat confdefs.h >>conftest.$ac_ext
17758 cat >>conftest.$ac_ext <<_ACEOF
17759 /* end confdefs.h. */
17760 $ac_includes_default
17764 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
17771 rm -f conftest.$ac_objext
17772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17773 (eval $ac_compile) 2>conftest.er1
17775 grep -v '^ *+' conftest.er1 >conftest.err
17777 cat conftest.err >&5
17778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17779 (exit $ac_status); } &&
17780 { ac_try='test -z "$ac_c_werror_flag"
17781 || test ! -s conftest.err'
17782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17783 (eval $ac_try) 2>&5
17785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17786 (exit $ac_status); }; } &&
17787 { ac_try='test -s conftest.$ac_objext'
17788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17789 (eval $ac_try) 2>&5
17791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17792 (exit $ac_status); }; }; then
17795 cat >conftest.$ac_ext <<_ACEOF
17798 cat confdefs.h >>conftest.$ac_ext
17799 cat >>conftest.$ac_ext <<_ACEOF
17800 /* end confdefs.h. */
17801 $ac_includes_default
17805 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
17812 rm -f conftest.$ac_objext
17813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17814 (eval $ac_compile) 2>conftest.er1
17816 grep -v '^ *+' conftest.er1 >conftest.err
17818 cat conftest.err >&5
17819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17820 (exit $ac_status); } &&
17821 { ac_try='test -z "$ac_c_werror_flag"
17822 || test ! -s conftest.err'
17823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17824 (eval $ac_try) 2>&5
17826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17827 (exit $ac_status); }; } &&
17828 { ac_try='test -s conftest.$ac_objext'
17829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17830 (eval $ac_try) 2>&5
17832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17833 (exit $ac_status); }; }; then
17834 ac_hi=$ac_mid; break
17836 echo "$as_me: failed program was:" >&5
17837 sed 's/^/| /' conftest.$ac_ext >&5
17839 ac_lo=`expr $ac_mid + 1`
17840 if test $ac_lo -le $ac_mid; then
17844 ac_mid=`expr 2 '*' $ac_mid + 1`
17846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17849 echo "$as_me: failed program was:" >&5
17850 sed 's/^/| /' conftest.$ac_ext >&5
17852 cat >conftest.$ac_ext <<_ACEOF
17855 cat confdefs.h >>conftest.$ac_ext
17856 cat >>conftest.$ac_ext <<_ACEOF
17857 /* end confdefs.h. */
17858 $ac_includes_default
17862 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
17869 rm -f conftest.$ac_objext
17870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17871 (eval $ac_compile) 2>conftest.er1
17873 grep -v '^ *+' conftest.er1 >conftest.err
17875 cat conftest.err >&5
17876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17877 (exit $ac_status); } &&
17878 { ac_try='test -z "$ac_c_werror_flag"
17879 || test ! -s conftest.err'
17880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17881 (eval $ac_try) 2>&5
17883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17884 (exit $ac_status); }; } &&
17885 { ac_try='test -s conftest.$ac_objext'
17886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17887 (eval $ac_try) 2>&5
17889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17890 (exit $ac_status); }; }; then
17893 cat >conftest.$ac_ext <<_ACEOF
17896 cat confdefs.h >>conftest.$ac_ext
17897 cat >>conftest.$ac_ext <<_ACEOF
17898 /* end confdefs.h. */
17899 $ac_includes_default
17903 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
17910 rm -f conftest.$ac_objext
17911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17912 (eval $ac_compile) 2>conftest.er1
17914 grep -v '^ *+' conftest.er1 >conftest.err
17916 cat conftest.err >&5
17917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17918 (exit $ac_status); } &&
17919 { ac_try='test -z "$ac_c_werror_flag"
17920 || test ! -s conftest.err'
17921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17922 (eval $ac_try) 2>&5
17924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17925 (exit $ac_status); }; } &&
17926 { ac_try='test -s conftest.$ac_objext'
17927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17928 (eval $ac_try) 2>&5
17930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17931 (exit $ac_status); }; }; then
17932 ac_lo=$ac_mid; break
17934 echo "$as_me: failed program was:" >&5
17935 sed 's/^/| /' conftest.$ac_ext >&5
17937 ac_hi=`expr '(' $ac_mid ')' - 1`
17938 if test $ac_mid -le $ac_hi; then
17942 ac_mid=`expr 2 '*' $ac_mid`
17944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17947 echo "$as_me: failed program was:" >&5
17948 sed 's/^/| /' conftest.$ac_ext >&5
17952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17955 # Binary search between lo and hi bounds.
17956 while test "x$ac_lo" != "x$ac_hi"; do
17957 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17958 cat >conftest.$ac_ext <<_ACEOF
17961 cat confdefs.h >>conftest.$ac_ext
17962 cat >>conftest.$ac_ext <<_ACEOF
17963 /* end confdefs.h. */
17964 $ac_includes_default
17968 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
17975 rm -f conftest.$ac_objext
17976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17977 (eval $ac_compile) 2>conftest.er1
17979 grep -v '^ *+' conftest.er1 >conftest.err
17981 cat conftest.err >&5
17982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17983 (exit $ac_status); } &&
17984 { ac_try='test -z "$ac_c_werror_flag"
17985 || test ! -s conftest.err'
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); }; } &&
17991 { ac_try='test -s conftest.$ac_objext'
17992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17993 (eval $ac_try) 2>&5
17995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17996 (exit $ac_status); }; }; then
17999 echo "$as_me: failed program was:" >&5
18000 sed 's/^/| /' conftest.$ac_ext >&5
18002 ac_lo=`expr '(' $ac_mid ')' + 1`
18004 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18007 ?*) ac_cv_sizeof_long_int=$ac_lo;;
18008 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
18009 See \`config.log' for more details." >&5
18010 echo "$as_me: error: cannot compute sizeof (long int), 77
18011 See \`config.log' for more details." >&2;}
18012 { (exit 1); exit 1; }; } ;;
18015 if test "$cross_compiling" = yes; then
18016 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18017 See \`config.log' for more details." >&5
18018 echo "$as_me: error: cannot run test program while cross compiling
18019 See \`config.log' for more details." >&2;}
18020 { (exit 1); exit 1; }; }
18022 cat >conftest.$ac_ext <<_ACEOF
18025 cat confdefs.h >>conftest.$ac_ext
18026 cat >>conftest.$ac_ext <<_ACEOF
18027 /* end confdefs.h. */
18028 $ac_includes_default
18029 long longval () { return (long) (sizeof (long int)); }
18030 unsigned long ulongval () { return (long) (sizeof (long int)); }
18032 #include <stdlib.h>
18037 FILE *f = fopen ("conftest.val", "w");
18040 if (((long) (sizeof (long int))) < 0)
18042 long i = longval ();
18043 if (i != ((long) (sizeof (long int))))
18045 fprintf (f, "%ld\n", i);
18049 unsigned long i = ulongval ();
18050 if (i != ((long) (sizeof (long int))))
18052 fprintf (f, "%lu\n", i);
18054 exit (ferror (f) || fclose (f) != 0);
18060 rm -f conftest$ac_exeext
18061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18062 (eval $ac_link) 2>&5
18064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18065 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18067 (eval $ac_try) 2>&5
18069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18070 (exit $ac_status); }; }; then
18071 ac_cv_sizeof_long_int=`cat conftest.val`
18073 echo "$as_me: program exited with status $ac_status" >&5
18074 echo "$as_me: failed program was:" >&5
18075 sed 's/^/| /' conftest.$ac_ext >&5
18077 ( exit $ac_status )
18078 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
18079 See \`config.log' for more details." >&5
18080 echo "$as_me: error: cannot compute sizeof (long int), 77
18081 See \`config.log' for more details." >&2;}
18082 { (exit 1); exit 1; }; }
18084 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18089 ac_cv_sizeof_long_int=0
18092 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
18093 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
18094 cat >>confdefs.h <<_ACEOF
18095 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
18099 echo "$as_me:$LINENO: checking for long long int" >&5
18100 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
18101 if test "${ac_cv_type_long_long_int+set}" = set; then
18102 echo $ECHO_N "(cached) $ECHO_C" >&6
18104 cat >conftest.$ac_ext <<_ACEOF
18107 cat confdefs.h >>conftest.$ac_ext
18108 cat >>conftest.$ac_ext <<_ACEOF
18109 /* end confdefs.h. */
18110 $ac_includes_default
18114 if ((long long int *) 0)
18116 if (sizeof (long long int))
18122 rm -f conftest.$ac_objext
18123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18124 (eval $ac_compile) 2>conftest.er1
18126 grep -v '^ *+' conftest.er1 >conftest.err
18128 cat conftest.err >&5
18129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18130 (exit $ac_status); } &&
18131 { ac_try='test -z "$ac_c_werror_flag"
18132 || test ! -s conftest.err'
18133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18134 (eval $ac_try) 2>&5
18136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18137 (exit $ac_status); }; } &&
18138 { ac_try='test -s conftest.$ac_objext'
18139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18140 (eval $ac_try) 2>&5
18142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18143 (exit $ac_status); }; }; then
18144 ac_cv_type_long_long_int=yes
18146 echo "$as_me: failed program was:" >&5
18147 sed 's/^/| /' conftest.$ac_ext >&5
18149 ac_cv_type_long_long_int=no
18151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18153 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
18154 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
18156 echo "$as_me:$LINENO: checking size of long long int" >&5
18157 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
18158 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
18159 echo $ECHO_N "(cached) $ECHO_C" >&6
18161 if test "$ac_cv_type_long_long_int" = yes; then
18162 # The cast to unsigned long works around a bug in the HP C Compiler
18163 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18164 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18165 # This bug is HP SR number 8606223364.
18166 if test "$cross_compiling" = yes; then
18167 # Depending upon the size, compute the lo and hi bounds.
18168 cat >conftest.$ac_ext <<_ACEOF
18171 cat confdefs.h >>conftest.$ac_ext
18172 cat >>conftest.$ac_ext <<_ACEOF
18173 /* end confdefs.h. */
18174 $ac_includes_default
18178 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
18185 rm -f conftest.$ac_objext
18186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18187 (eval $ac_compile) 2>conftest.er1
18189 grep -v '^ *+' conftest.er1 >conftest.err
18191 cat conftest.err >&5
18192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18193 (exit $ac_status); } &&
18194 { ac_try='test -z "$ac_c_werror_flag"
18195 || test ! -s conftest.err'
18196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18197 (eval $ac_try) 2>&5
18199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18200 (exit $ac_status); }; } &&
18201 { ac_try='test -s conftest.$ac_objext'
18202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18203 (eval $ac_try) 2>&5
18205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18206 (exit $ac_status); }; }; then
18209 cat >conftest.$ac_ext <<_ACEOF
18212 cat confdefs.h >>conftest.$ac_ext
18213 cat >>conftest.$ac_ext <<_ACEOF
18214 /* end confdefs.h. */
18215 $ac_includes_default
18219 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
18226 rm -f conftest.$ac_objext
18227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18228 (eval $ac_compile) 2>conftest.er1
18230 grep -v '^ *+' conftest.er1 >conftest.err
18232 cat conftest.err >&5
18233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18234 (exit $ac_status); } &&
18235 { ac_try='test -z "$ac_c_werror_flag"
18236 || test ! -s conftest.err'
18237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18238 (eval $ac_try) 2>&5
18240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18241 (exit $ac_status); }; } &&
18242 { ac_try='test -s conftest.$ac_objext'
18243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18244 (eval $ac_try) 2>&5
18246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18247 (exit $ac_status); }; }; then
18248 ac_hi=$ac_mid; break
18250 echo "$as_me: failed program was:" >&5
18251 sed 's/^/| /' conftest.$ac_ext >&5
18253 ac_lo=`expr $ac_mid + 1`
18254 if test $ac_lo -le $ac_mid; then
18258 ac_mid=`expr 2 '*' $ac_mid + 1`
18260 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18263 echo "$as_me: failed program was:" >&5
18264 sed 's/^/| /' conftest.$ac_ext >&5
18266 cat >conftest.$ac_ext <<_ACEOF
18269 cat confdefs.h >>conftest.$ac_ext
18270 cat >>conftest.$ac_ext <<_ACEOF
18271 /* end confdefs.h. */
18272 $ac_includes_default
18276 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
18283 rm -f conftest.$ac_objext
18284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18285 (eval $ac_compile) 2>conftest.er1
18287 grep -v '^ *+' conftest.er1 >conftest.err
18289 cat conftest.err >&5
18290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18291 (exit $ac_status); } &&
18292 { ac_try='test -z "$ac_c_werror_flag"
18293 || test ! -s conftest.err'
18294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18295 (eval $ac_try) 2>&5
18297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18298 (exit $ac_status); }; } &&
18299 { ac_try='test -s conftest.$ac_objext'
18300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18301 (eval $ac_try) 2>&5
18303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18304 (exit $ac_status); }; }; then
18307 cat >conftest.$ac_ext <<_ACEOF
18310 cat confdefs.h >>conftest.$ac_ext
18311 cat >>conftest.$ac_ext <<_ACEOF
18312 /* end confdefs.h. */
18313 $ac_includes_default
18317 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
18324 rm -f conftest.$ac_objext
18325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18326 (eval $ac_compile) 2>conftest.er1
18328 grep -v '^ *+' conftest.er1 >conftest.err
18330 cat conftest.err >&5
18331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18332 (exit $ac_status); } &&
18333 { ac_try='test -z "$ac_c_werror_flag"
18334 || test ! -s conftest.err'
18335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18336 (eval $ac_try) 2>&5
18338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18339 (exit $ac_status); }; } &&
18340 { ac_try='test -s conftest.$ac_objext'
18341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18342 (eval $ac_try) 2>&5
18344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18345 (exit $ac_status); }; }; then
18346 ac_lo=$ac_mid; break
18348 echo "$as_me: failed program was:" >&5
18349 sed 's/^/| /' conftest.$ac_ext >&5
18351 ac_hi=`expr '(' $ac_mid ')' - 1`
18352 if test $ac_mid -le $ac_hi; then
18356 ac_mid=`expr 2 '*' $ac_mid`
18358 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18361 echo "$as_me: failed program was:" >&5
18362 sed 's/^/| /' conftest.$ac_ext >&5
18366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18368 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18369 # Binary search between lo and hi bounds.
18370 while test "x$ac_lo" != "x$ac_hi"; do
18371 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18372 cat >conftest.$ac_ext <<_ACEOF
18375 cat confdefs.h >>conftest.$ac_ext
18376 cat >>conftest.$ac_ext <<_ACEOF
18377 /* end confdefs.h. */
18378 $ac_includes_default
18382 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
18389 rm -f conftest.$ac_objext
18390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18391 (eval $ac_compile) 2>conftest.er1
18393 grep -v '^ *+' conftest.er1 >conftest.err
18395 cat conftest.err >&5
18396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18397 (exit $ac_status); } &&
18398 { ac_try='test -z "$ac_c_werror_flag"
18399 || test ! -s conftest.err'
18400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18401 (eval $ac_try) 2>&5
18403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18404 (exit $ac_status); }; } &&
18405 { ac_try='test -s conftest.$ac_objext'
18406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18407 (eval $ac_try) 2>&5
18409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18410 (exit $ac_status); }; }; then
18413 echo "$as_me: failed program was:" >&5
18414 sed 's/^/| /' conftest.$ac_ext >&5
18416 ac_lo=`expr '(' $ac_mid ')' + 1`
18418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18421 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
18422 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
18423 See \`config.log' for more details." >&5
18424 echo "$as_me: error: cannot compute sizeof (long long int), 77
18425 See \`config.log' for more details." >&2;}
18426 { (exit 1); exit 1; }; } ;;
18429 if test "$cross_compiling" = yes; then
18430 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18431 See \`config.log' for more details." >&5
18432 echo "$as_me: error: cannot run test program while cross compiling
18433 See \`config.log' for more details." >&2;}
18434 { (exit 1); exit 1; }; }
18436 cat >conftest.$ac_ext <<_ACEOF
18439 cat confdefs.h >>conftest.$ac_ext
18440 cat >>conftest.$ac_ext <<_ACEOF
18441 /* end confdefs.h. */
18442 $ac_includes_default
18443 long longval () { return (long) (sizeof (long long int)); }
18444 unsigned long ulongval () { return (long) (sizeof (long long int)); }
18446 #include <stdlib.h>
18451 FILE *f = fopen ("conftest.val", "w");
18454 if (((long) (sizeof (long long int))) < 0)
18456 long i = longval ();
18457 if (i != ((long) (sizeof (long long int))))
18459 fprintf (f, "%ld\n", i);
18463 unsigned long i = ulongval ();
18464 if (i != ((long) (sizeof (long long int))))
18466 fprintf (f, "%lu\n", i);
18468 exit (ferror (f) || fclose (f) != 0);
18474 rm -f conftest$ac_exeext
18475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18476 (eval $ac_link) 2>&5
18478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18479 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18481 (eval $ac_try) 2>&5
18483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18484 (exit $ac_status); }; }; then
18485 ac_cv_sizeof_long_long_int=`cat conftest.val`
18487 echo "$as_me: program exited with status $ac_status" >&5
18488 echo "$as_me: failed program was:" >&5
18489 sed 's/^/| /' conftest.$ac_ext >&5
18491 ( exit $ac_status )
18492 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
18493 See \`config.log' for more details." >&5
18494 echo "$as_me: error: cannot compute sizeof (long long int), 77
18495 See \`config.log' for more details." >&2;}
18496 { (exit 1); exit 1; }; }
18498 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18503 ac_cv_sizeof_long_long_int=0
18506 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
18507 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
18508 cat >>confdefs.h <<_ACEOF
18509 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
18513 echo "$as_me:$LINENO: checking for int *" >&5
18514 echo $ECHO_N "checking for int *... $ECHO_C" >&6
18515 if test "${ac_cv_type_int_p+set}" = set; then
18516 echo $ECHO_N "(cached) $ECHO_C" >&6
18518 cat >conftest.$ac_ext <<_ACEOF
18521 cat confdefs.h >>conftest.$ac_ext
18522 cat >>conftest.$ac_ext <<_ACEOF
18523 /* end confdefs.h. */
18524 $ac_includes_default
18530 if (sizeof (int *))
18536 rm -f conftest.$ac_objext
18537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18538 (eval $ac_compile) 2>conftest.er1
18540 grep -v '^ *+' conftest.er1 >conftest.err
18542 cat conftest.err >&5
18543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18544 (exit $ac_status); } &&
18545 { ac_try='test -z "$ac_c_werror_flag"
18546 || test ! -s conftest.err'
18547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18548 (eval $ac_try) 2>&5
18550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18551 (exit $ac_status); }; } &&
18552 { ac_try='test -s conftest.$ac_objext'
18553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18554 (eval $ac_try) 2>&5
18556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18557 (exit $ac_status); }; }; then
18558 ac_cv_type_int_p=yes
18560 echo "$as_me: failed program was:" >&5
18561 sed 's/^/| /' conftest.$ac_ext >&5
18563 ac_cv_type_int_p=no
18565 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18567 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
18568 echo "${ECHO_T}$ac_cv_type_int_p" >&6
18570 echo "$as_me:$LINENO: checking size of int *" >&5
18571 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
18572 if test "${ac_cv_sizeof_int_p+set}" = set; then
18573 echo $ECHO_N "(cached) $ECHO_C" >&6
18575 if test "$ac_cv_type_int_p" = yes; then
18576 # The cast to unsigned long works around a bug in the HP C Compiler
18577 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18578 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18579 # This bug is HP SR number 8606223364.
18580 if test "$cross_compiling" = yes; then
18581 # Depending upon the size, compute the lo and hi bounds.
18582 cat >conftest.$ac_ext <<_ACEOF
18585 cat confdefs.h >>conftest.$ac_ext
18586 cat >>conftest.$ac_ext <<_ACEOF
18587 /* end confdefs.h. */
18588 $ac_includes_default
18592 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
18599 rm -f conftest.$ac_objext
18600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18601 (eval $ac_compile) 2>conftest.er1
18603 grep -v '^ *+' conftest.er1 >conftest.err
18605 cat conftest.err >&5
18606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18607 (exit $ac_status); } &&
18608 { ac_try='test -z "$ac_c_werror_flag"
18609 || test ! -s conftest.err'
18610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18611 (eval $ac_try) 2>&5
18613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18614 (exit $ac_status); }; } &&
18615 { ac_try='test -s conftest.$ac_objext'
18616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18617 (eval $ac_try) 2>&5
18619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18620 (exit $ac_status); }; }; then
18623 cat >conftest.$ac_ext <<_ACEOF
18626 cat confdefs.h >>conftest.$ac_ext
18627 cat >>conftest.$ac_ext <<_ACEOF
18628 /* end confdefs.h. */
18629 $ac_includes_default
18633 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
18640 rm -f conftest.$ac_objext
18641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18642 (eval $ac_compile) 2>conftest.er1
18644 grep -v '^ *+' conftest.er1 >conftest.err
18646 cat conftest.err >&5
18647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18648 (exit $ac_status); } &&
18649 { ac_try='test -z "$ac_c_werror_flag"
18650 || test ! -s conftest.err'
18651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18652 (eval $ac_try) 2>&5
18654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18655 (exit $ac_status); }; } &&
18656 { ac_try='test -s conftest.$ac_objext'
18657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18658 (eval $ac_try) 2>&5
18660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18661 (exit $ac_status); }; }; then
18662 ac_hi=$ac_mid; break
18664 echo "$as_me: failed program was:" >&5
18665 sed 's/^/| /' conftest.$ac_ext >&5
18667 ac_lo=`expr $ac_mid + 1`
18668 if test $ac_lo -le $ac_mid; then
18672 ac_mid=`expr 2 '*' $ac_mid + 1`
18674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18677 echo "$as_me: failed program was:" >&5
18678 sed 's/^/| /' conftest.$ac_ext >&5
18680 cat >conftest.$ac_ext <<_ACEOF
18683 cat confdefs.h >>conftest.$ac_ext
18684 cat >>conftest.$ac_ext <<_ACEOF
18685 /* end confdefs.h. */
18686 $ac_includes_default
18690 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
18697 rm -f conftest.$ac_objext
18698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18699 (eval $ac_compile) 2>conftest.er1
18701 grep -v '^ *+' conftest.er1 >conftest.err
18703 cat conftest.err >&5
18704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18705 (exit $ac_status); } &&
18706 { ac_try='test -z "$ac_c_werror_flag"
18707 || test ! -s conftest.err'
18708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18709 (eval $ac_try) 2>&5
18711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18712 (exit $ac_status); }; } &&
18713 { ac_try='test -s conftest.$ac_objext'
18714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18715 (eval $ac_try) 2>&5
18717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18718 (exit $ac_status); }; }; then
18721 cat >conftest.$ac_ext <<_ACEOF
18724 cat confdefs.h >>conftest.$ac_ext
18725 cat >>conftest.$ac_ext <<_ACEOF
18726 /* end confdefs.h. */
18727 $ac_includes_default
18731 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
18738 rm -f conftest.$ac_objext
18739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18740 (eval $ac_compile) 2>conftest.er1
18742 grep -v '^ *+' conftest.er1 >conftest.err
18744 cat conftest.err >&5
18745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18746 (exit $ac_status); } &&
18747 { ac_try='test -z "$ac_c_werror_flag"
18748 || test ! -s conftest.err'
18749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18750 (eval $ac_try) 2>&5
18752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18753 (exit $ac_status); }; } &&
18754 { ac_try='test -s conftest.$ac_objext'
18755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18756 (eval $ac_try) 2>&5
18758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18759 (exit $ac_status); }; }; then
18760 ac_lo=$ac_mid; break
18762 echo "$as_me: failed program was:" >&5
18763 sed 's/^/| /' conftest.$ac_ext >&5
18765 ac_hi=`expr '(' $ac_mid ')' - 1`
18766 if test $ac_mid -le $ac_hi; then
18770 ac_mid=`expr 2 '*' $ac_mid`
18772 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18775 echo "$as_me: failed program was:" >&5
18776 sed 's/^/| /' conftest.$ac_ext >&5
18780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18782 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18783 # Binary search between lo and hi bounds.
18784 while test "x$ac_lo" != "x$ac_hi"; do
18785 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18786 cat >conftest.$ac_ext <<_ACEOF
18789 cat confdefs.h >>conftest.$ac_ext
18790 cat >>conftest.$ac_ext <<_ACEOF
18791 /* end confdefs.h. */
18792 $ac_includes_default
18796 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
18803 rm -f conftest.$ac_objext
18804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18805 (eval $ac_compile) 2>conftest.er1
18807 grep -v '^ *+' conftest.er1 >conftest.err
18809 cat conftest.err >&5
18810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18811 (exit $ac_status); } &&
18812 { ac_try='test -z "$ac_c_werror_flag"
18813 || test ! -s conftest.err'
18814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18815 (eval $ac_try) 2>&5
18817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18818 (exit $ac_status); }; } &&
18819 { ac_try='test -s conftest.$ac_objext'
18820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18821 (eval $ac_try) 2>&5
18823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18824 (exit $ac_status); }; }; then
18827 echo "$as_me: failed program was:" >&5
18828 sed 's/^/| /' conftest.$ac_ext >&5
18830 ac_lo=`expr '(' $ac_mid ')' + 1`
18832 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18835 ?*) ac_cv_sizeof_int_p=$ac_lo;;
18836 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
18837 See \`config.log' for more details." >&5
18838 echo "$as_me: error: cannot compute sizeof (int *), 77
18839 See \`config.log' for more details." >&2;}
18840 { (exit 1); exit 1; }; } ;;
18843 if test "$cross_compiling" = yes; then
18844 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18845 See \`config.log' for more details." >&5
18846 echo "$as_me: error: cannot run test program while cross compiling
18847 See \`config.log' for more details." >&2;}
18848 { (exit 1); exit 1; }; }
18850 cat >conftest.$ac_ext <<_ACEOF
18853 cat confdefs.h >>conftest.$ac_ext
18854 cat >>conftest.$ac_ext <<_ACEOF
18855 /* end confdefs.h. */
18856 $ac_includes_default
18857 long longval () { return (long) (sizeof (int *)); }
18858 unsigned long ulongval () { return (long) (sizeof (int *)); }
18860 #include <stdlib.h>
18865 FILE *f = fopen ("conftest.val", "w");
18868 if (((long) (sizeof (int *))) < 0)
18870 long i = longval ();
18871 if (i != ((long) (sizeof (int *))))
18873 fprintf (f, "%ld\n", i);
18877 unsigned long i = ulongval ();
18878 if (i != ((long) (sizeof (int *))))
18880 fprintf (f, "%lu\n", i);
18882 exit (ferror (f) || fclose (f) != 0);
18888 rm -f conftest$ac_exeext
18889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18890 (eval $ac_link) 2>&5
18892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18893 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18895 (eval $ac_try) 2>&5
18897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18898 (exit $ac_status); }; }; then
18899 ac_cv_sizeof_int_p=`cat conftest.val`
18901 echo "$as_me: program exited with status $ac_status" >&5
18902 echo "$as_me: failed program was:" >&5
18903 sed 's/^/| /' conftest.$ac_ext >&5
18905 ( exit $ac_status )
18906 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
18907 See \`config.log' for more details." >&5
18908 echo "$as_me: error: cannot compute sizeof (int *), 77
18909 See \`config.log' for more details." >&2;}
18910 { (exit 1); exit 1; }; }
18912 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18917 ac_cv_sizeof_int_p=0
18920 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
18921 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
18922 cat >>confdefs.h <<_ACEOF
18923 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
18928 # Check for sys/types.h types
18929 echo "$as_me:$LINENO: checking for u_int type" >&5
18930 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
18931 if test "${ac_cv_have_u_int+set}" = set; then
18932 echo $ECHO_N "(cached) $ECHO_C" >&6
18935 cat >conftest.$ac_ext <<_ACEOF
18938 cat confdefs.h >>conftest.$ac_ext
18939 cat >>conftest.$ac_ext <<_ACEOF
18940 /* end confdefs.h. */
18941 #include <sys/types.h>
18950 rm -f conftest.$ac_objext
18951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18952 (eval $ac_compile) 2>conftest.er1
18954 grep -v '^ *+' conftest.er1 >conftest.err
18956 cat conftest.err >&5
18957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18958 (exit $ac_status); } &&
18959 { ac_try='test -z "$ac_c_werror_flag"
18960 || test ! -s conftest.err'
18961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18962 (eval $ac_try) 2>&5
18964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18965 (exit $ac_status); }; } &&
18966 { ac_try='test -s conftest.$ac_objext'
18967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18968 (eval $ac_try) 2>&5
18970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18971 (exit $ac_status); }; }; then
18972 ac_cv_have_u_int="yes"
18974 echo "$as_me: failed program was:" >&5
18975 sed 's/^/| /' conftest.$ac_ext >&5
18977 ac_cv_have_u_int="no"
18980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18983 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
18984 echo "${ECHO_T}$ac_cv_have_u_int" >&6
18985 if test "x$ac_cv_have_u_int" = "xyes" ; then
18986 cat >>confdefs.h <<\_ACEOF
18987 #define HAVE_U_INT 1
18993 echo "$as_me:$LINENO: checking for intmax_t type" >&5
18994 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
18995 if test "${ac_cv_have_intmax_t+set}" = set; then
18996 echo $ECHO_N "(cached) $ECHO_C" >&6
18999 cat >conftest.$ac_ext <<_ACEOF
19002 cat confdefs.h >>conftest.$ac_ext
19003 cat >>conftest.$ac_ext <<_ACEOF
19004 /* end confdefs.h. */
19005 #include <sys/types.h>
19014 rm -f conftest.$ac_objext
19015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19016 (eval $ac_compile) 2>conftest.er1
19018 grep -v '^ *+' conftest.er1 >conftest.err
19020 cat conftest.err >&5
19021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19022 (exit $ac_status); } &&
19023 { ac_try='test -z "$ac_c_werror_flag"
19024 || test ! -s conftest.err'
19025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19026 (eval $ac_try) 2>&5
19028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19029 (exit $ac_status); }; } &&
19030 { ac_try='test -s conftest.$ac_objext'
19031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19032 (eval $ac_try) 2>&5
19034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19035 (exit $ac_status); }; }; then
19036 ac_cv_have_intmax_t="yes"
19038 echo "$as_me: failed program was:" >&5
19039 sed 's/^/| /' conftest.$ac_ext >&5
19042 cat >conftest.$ac_ext <<_ACEOF
19045 cat confdefs.h >>conftest.$ac_ext
19046 cat >>conftest.$ac_ext <<_ACEOF
19047 /* end confdefs.h. */
19048 #include <stdint.h>
19057 rm -f conftest.$ac_objext
19058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19059 (eval $ac_compile) 2>conftest.er1
19061 grep -v '^ *+' conftest.er1 >conftest.err
19063 cat conftest.err >&5
19064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19065 (exit $ac_status); } &&
19066 { ac_try='test -z "$ac_c_werror_flag"
19067 || test ! -s conftest.err'
19068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19069 (eval $ac_try) 2>&5
19071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19072 (exit $ac_status); }; } &&
19073 { ac_try='test -s conftest.$ac_objext'
19074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19075 (eval $ac_try) 2>&5
19077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19078 (exit $ac_status); }; }; then
19079 ac_cv_have_intmax_t="yes"
19081 echo "$as_me: failed program was:" >&5
19082 sed 's/^/| /' conftest.$ac_ext >&5
19084 ac_cv_have_intmax_t="no"
19087 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19091 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19095 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
19096 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
19097 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
19098 cat >>confdefs.h <<\_ACEOF
19099 #define HAVE_INTMAX_T 1
19106 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
19107 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
19108 if test "${ac_cv_have_u_intmax_t+set}" = set; then
19109 echo $ECHO_N "(cached) $ECHO_C" >&6
19112 cat >conftest.$ac_ext <<_ACEOF
19115 cat confdefs.h >>conftest.$ac_ext
19116 cat >>conftest.$ac_ext <<_ACEOF
19117 /* end confdefs.h. */
19118 #include <sys/types.h>
19122 u_intmax_t a; a = 1;
19127 rm -f conftest.$ac_objext
19128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19129 (eval $ac_compile) 2>conftest.er1
19131 grep -v '^ *+' conftest.er1 >conftest.err
19133 cat conftest.err >&5
19134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19135 (exit $ac_status); } &&
19136 { ac_try='test -z "$ac_c_werror_flag"
19137 || test ! -s conftest.err'
19138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19139 (eval $ac_try) 2>&5
19141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19142 (exit $ac_status); }; } &&
19143 { ac_try='test -s conftest.$ac_objext'
19144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19145 (eval $ac_try) 2>&5
19147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19148 (exit $ac_status); }; }; then
19149 ac_cv_have_u_intmax_t="yes"
19151 echo "$as_me: failed program was:" >&5
19152 sed 's/^/| /' conftest.$ac_ext >&5
19155 cat >conftest.$ac_ext <<_ACEOF
19158 cat confdefs.h >>conftest.$ac_ext
19159 cat >>conftest.$ac_ext <<_ACEOF
19160 /* end confdefs.h. */
19161 #include <stdint.h>
19165 u_intmax_t a; a = 1;
19170 rm -f conftest.$ac_objext
19171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19172 (eval $ac_compile) 2>conftest.er1
19174 grep -v '^ *+' conftest.er1 >conftest.err
19176 cat conftest.err >&5
19177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19178 (exit $ac_status); } &&
19179 { ac_try='test -z "$ac_c_werror_flag"
19180 || test ! -s conftest.err'
19181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19182 (eval $ac_try) 2>&5
19184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19185 (exit $ac_status); }; } &&
19186 { ac_try='test -s conftest.$ac_objext'
19187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19188 (eval $ac_try) 2>&5
19190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19191 (exit $ac_status); }; }; then
19192 ac_cv_have_u_intmax_t="yes"
19194 echo "$as_me: failed program was:" >&5
19195 sed 's/^/| /' conftest.$ac_ext >&5
19197 ac_cv_have_u_intmax_t="no"
19200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19204 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19207 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
19208 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
19209 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
19210 cat >>confdefs.h <<\_ACEOF
19211 #define HAVE_U_INTMAX_T 1
19218 echo "$as_me:$LINENO: checking for intXX_t types" >&5
19219 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
19220 if test "${ac_cv_have_intxx_t+set}" = set; then
19221 echo $ECHO_N "(cached) $ECHO_C" >&6
19224 cat >conftest.$ac_ext <<_ACEOF
19227 cat confdefs.h >>conftest.$ac_ext
19228 cat >>conftest.$ac_ext <<_ACEOF
19229 /* end confdefs.h. */
19230 #include <sys/types.h>
19234 int8_t a; int16_t b; int32_t c; a = b = c = 1;
19239 rm -f conftest.$ac_objext
19240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19241 (eval $ac_compile) 2>conftest.er1
19243 grep -v '^ *+' conftest.er1 >conftest.err
19245 cat conftest.err >&5
19246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19247 (exit $ac_status); } &&
19248 { ac_try='test -z "$ac_c_werror_flag"
19249 || test ! -s conftest.err'
19250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19251 (eval $ac_try) 2>&5
19253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19254 (exit $ac_status); }; } &&
19255 { ac_try='test -s conftest.$ac_objext'
19256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19257 (eval $ac_try) 2>&5
19259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19260 (exit $ac_status); }; }; then
19261 ac_cv_have_intxx_t="yes"
19263 echo "$as_me: failed program was:" >&5
19264 sed 's/^/| /' conftest.$ac_ext >&5
19266 ac_cv_have_intxx_t="no"
19269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19272 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
19273 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
19274 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
19275 cat >>confdefs.h <<\_ACEOF
19276 #define HAVE_INTXX_T 1
19282 echo "$as_me:$LINENO: checking for int64_t type" >&5
19283 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
19284 if test "${ac_cv_have_int64_t+set}" = set; then
19285 echo $ECHO_N "(cached) $ECHO_C" >&6
19288 cat >conftest.$ac_ext <<_ACEOF
19291 cat confdefs.h >>conftest.$ac_ext
19292 cat >>conftest.$ac_ext <<_ACEOF
19293 /* end confdefs.h. */
19294 #include <sys/types.h>
19303 rm -f conftest.$ac_objext
19304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19305 (eval $ac_compile) 2>conftest.er1
19307 grep -v '^ *+' conftest.er1 >conftest.err
19309 cat conftest.err >&5
19310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19311 (exit $ac_status); } &&
19312 { ac_try='test -z "$ac_c_werror_flag"
19313 || test ! -s conftest.err'
19314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19315 (eval $ac_try) 2>&5
19317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19318 (exit $ac_status); }; } &&
19319 { ac_try='test -s conftest.$ac_objext'
19320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19321 (eval $ac_try) 2>&5
19323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19324 (exit $ac_status); }; }; then
19325 ac_cv_have_int64_t="yes"
19327 echo "$as_me: failed program was:" >&5
19328 sed 's/^/| /' conftest.$ac_ext >&5
19330 ac_cv_have_int64_t="no"
19333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19336 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
19337 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
19338 if test "x$ac_cv_have_int64_t" = "xyes" ; then
19339 cat >>confdefs.h <<\_ACEOF
19340 #define HAVE_INT64_T 1
19346 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
19347 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
19348 if test "${ac_cv_have_u_intxx_t+set}" = set; then
19349 echo $ECHO_N "(cached) $ECHO_C" >&6
19352 cat >conftest.$ac_ext <<_ACEOF
19355 cat confdefs.h >>conftest.$ac_ext
19356 cat >>conftest.$ac_ext <<_ACEOF
19357 /* end confdefs.h. */
19358 #include <sys/types.h>
19362 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
19367 rm -f conftest.$ac_objext
19368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19369 (eval $ac_compile) 2>conftest.er1
19371 grep -v '^ *+' conftest.er1 >conftest.err
19373 cat conftest.err >&5
19374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19375 (exit $ac_status); } &&
19376 { ac_try='test -z "$ac_c_werror_flag"
19377 || test ! -s conftest.err'
19378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19379 (eval $ac_try) 2>&5
19381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19382 (exit $ac_status); }; } &&
19383 { ac_try='test -s conftest.$ac_objext'
19384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19385 (eval $ac_try) 2>&5
19387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19388 (exit $ac_status); }; }; then
19389 ac_cv_have_u_intxx_t="yes"
19391 echo "$as_me: failed program was:" >&5
19392 sed 's/^/| /' conftest.$ac_ext >&5
19394 ac_cv_have_u_intxx_t="no"
19397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19400 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
19401 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
19402 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
19403 cat >>confdefs.h <<\_ACEOF
19404 #define HAVE_U_INTXX_T 1
19410 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
19411 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
19412 if test "${ac_cv_have_u_int64_t+set}" = set; then
19413 echo $ECHO_N "(cached) $ECHO_C" >&6
19416 cat >conftest.$ac_ext <<_ACEOF
19419 cat confdefs.h >>conftest.$ac_ext
19420 cat >>conftest.$ac_ext <<_ACEOF
19421 /* end confdefs.h. */
19422 #include <sys/types.h>
19426 u_int64_t a; a = 1;
19431 rm -f conftest.$ac_objext
19432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19433 (eval $ac_compile) 2>conftest.er1
19435 grep -v '^ *+' conftest.er1 >conftest.err
19437 cat conftest.err >&5
19438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19439 (exit $ac_status); } &&
19440 { ac_try='test -z "$ac_c_werror_flag"
19441 || test ! -s conftest.err'
19442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19443 (eval $ac_try) 2>&5
19445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19446 (exit $ac_status); }; } &&
19447 { ac_try='test -s conftest.$ac_objext'
19448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19449 (eval $ac_try) 2>&5
19451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19452 (exit $ac_status); }; }; then
19453 ac_cv_have_u_int64_t="yes"
19455 echo "$as_me: failed program was:" >&5
19456 sed 's/^/| /' conftest.$ac_ext >&5
19458 ac_cv_have_u_int64_t="no"
19461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19464 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
19465 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
19466 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
19467 cat >>confdefs.h <<\_ACEOF
19468 #define HAVE_U_INT64_T 1
19474 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
19475 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
19477 echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
19478 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
19479 cat >conftest.$ac_ext <<_ACEOF
19482 cat confdefs.h >>conftest.$ac_ext
19483 cat >>conftest.$ac_ext <<_ACEOF
19484 /* end confdefs.h. */
19485 #include <sys/bitypes.h>
19489 int8_t a; int16_t b; int32_t c;
19490 u_int8_t e; u_int16_t f; u_int32_t g;
19491 a = b = c = e = f = g = 1;
19496 rm -f conftest.$ac_objext
19497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19498 (eval $ac_compile) 2>conftest.er1
19500 grep -v '^ *+' conftest.er1 >conftest.err
19502 cat conftest.err >&5
19503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19504 (exit $ac_status); } &&
19505 { ac_try='test -z "$ac_c_werror_flag"
19506 || test ! -s conftest.err'
19507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19508 (eval $ac_try) 2>&5
19510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19511 (exit $ac_status); }; } &&
19512 { ac_try='test -s conftest.$ac_objext'
19513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19514 (eval $ac_try) 2>&5
19516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19517 (exit $ac_status); }; }; then
19518 cat >>confdefs.h <<\_ACEOF
19519 #define HAVE_U_INTXX_T 1
19522 cat >>confdefs.h <<\_ACEOF
19523 #define HAVE_INTXX_T 1
19526 cat >>confdefs.h <<\_ACEOF
19527 #define HAVE_SYS_BITYPES_H 1
19530 echo "$as_me:$LINENO: result: yes" >&5
19531 echo "${ECHO_T}yes" >&6
19533 echo "$as_me: failed program was:" >&5
19534 sed 's/^/| /' conftest.$ac_ext >&5
19536 echo "$as_me:$LINENO: result: no" >&5
19537 echo "${ECHO_T}no" >&6
19540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19543 if test -z "$have_u_intxx_t" ; then
19544 echo "$as_me:$LINENO: checking for uintXX_t types" >&5
19545 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
19546 if test "${ac_cv_have_uintxx_t+set}" = set; then
19547 echo $ECHO_N "(cached) $ECHO_C" >&6
19550 cat >conftest.$ac_ext <<_ACEOF
19553 cat confdefs.h >>conftest.$ac_ext
19554 cat >>conftest.$ac_ext <<_ACEOF
19555 /* end confdefs.h. */
19556 #include <sys/types.h>
19560 uint8_t a; uint16_t b;
19561 uint32_t c; a = b = c = 1;
19566 rm -f conftest.$ac_objext
19567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19568 (eval $ac_compile) 2>conftest.er1
19570 grep -v '^ *+' conftest.er1 >conftest.err
19572 cat conftest.err >&5
19573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19574 (exit $ac_status); } &&
19575 { ac_try='test -z "$ac_c_werror_flag"
19576 || test ! -s conftest.err'
19577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19578 (eval $ac_try) 2>&5
19580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19581 (exit $ac_status); }; } &&
19582 { ac_try='test -s conftest.$ac_objext'
19583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19584 (eval $ac_try) 2>&5
19586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19587 (exit $ac_status); }; }; then
19588 ac_cv_have_uintxx_t="yes"
19590 echo "$as_me: failed program was:" >&5
19591 sed 's/^/| /' conftest.$ac_ext >&5
19593 ac_cv_have_uintxx_t="no"
19596 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19599 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
19600 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
19601 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
19602 cat >>confdefs.h <<\_ACEOF
19603 #define HAVE_UINTXX_T 1
19609 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
19610 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
19612 echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
19613 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
19614 cat >conftest.$ac_ext <<_ACEOF
19617 cat confdefs.h >>conftest.$ac_ext
19618 cat >>conftest.$ac_ext <<_ACEOF
19619 /* end confdefs.h. */
19620 #include <sys/bitypes.h>
19624 int64_t a; u_int64_t b;
19630 rm -f conftest.$ac_objext
19631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19632 (eval $ac_compile) 2>conftest.er1
19634 grep -v '^ *+' conftest.er1 >conftest.err
19636 cat conftest.err >&5
19637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19638 (exit $ac_status); } &&
19639 { ac_try='test -z "$ac_c_werror_flag"
19640 || test ! -s conftest.err'
19641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19642 (eval $ac_try) 2>&5
19644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19645 (exit $ac_status); }; } &&
19646 { ac_try='test -s conftest.$ac_objext'
19647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19648 (eval $ac_try) 2>&5
19650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19651 (exit $ac_status); }; }; then
19652 cat >>confdefs.h <<\_ACEOF
19653 #define HAVE_U_INT64_T 1
19656 cat >>confdefs.h <<\_ACEOF
19657 #define HAVE_INT64_T 1
19660 echo "$as_me:$LINENO: result: yes" >&5
19661 echo "${ECHO_T}yes" >&6
19663 echo "$as_me: failed program was:" >&5
19664 sed 's/^/| /' conftest.$ac_ext >&5
19666 echo "$as_me:$LINENO: result: no" >&5
19667 echo "${ECHO_T}no" >&6
19670 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19673 if (test -z "$have_uintxx_t" && \
19674 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
19676 echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
19677 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
19678 cat >conftest.$ac_ext <<_ACEOF
19681 cat confdefs.h >>conftest.$ac_ext
19682 cat >>conftest.$ac_ext <<_ACEOF
19683 /* end confdefs.h. */
19684 #include <sys/bitypes.h>
19688 uint8_t a; uint16_t b;
19689 uint32_t c; a = b = c = 1;
19694 rm -f conftest.$ac_objext
19695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19696 (eval $ac_compile) 2>conftest.er1
19698 grep -v '^ *+' conftest.er1 >conftest.err
19700 cat conftest.err >&5
19701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19702 (exit $ac_status); } &&
19703 { ac_try='test -z "$ac_c_werror_flag"
19704 || test ! -s conftest.err'
19705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19706 (eval $ac_try) 2>&5
19708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19709 (exit $ac_status); }; } &&
19710 { ac_try='test -s conftest.$ac_objext'
19711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19712 (eval $ac_try) 2>&5
19714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19715 (exit $ac_status); }; }; then
19716 cat >>confdefs.h <<\_ACEOF
19717 #define HAVE_UINTXX_T 1
19720 echo "$as_me:$LINENO: result: yes" >&5
19721 echo "${ECHO_T}yes" >&6
19723 echo "$as_me: failed program was:" >&5
19724 sed 's/^/| /' conftest.$ac_ext >&5
19726 echo "$as_me:$LINENO: result: no" >&5
19727 echo "${ECHO_T}no" >&6
19730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19766 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19767 echo "$as_me:$LINENO: checking for $ac_func" >&5
19768 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19769 if eval "test \"\${$as_ac_var+set}\" = set"; then
19770 echo $ECHO_N "(cached) $ECHO_C" >&6
19772 cat >conftest.$ac_ext <<_ACEOF
19775 cat confdefs.h >>conftest.$ac_ext
19776 cat >>conftest.$ac_ext <<_ACEOF
19777 /* end confdefs.h. */
19778 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19779 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19780 #define $ac_func innocuous_$ac_func
19782 /* System header to define __stub macros and hopefully few prototypes,
19783 which can conflict with char $ac_func (); below.
19784 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19785 <limits.h> exists even on freestanding compilers. */
19788 # include <limits.h>
19790 # include <assert.h>
19795 /* Override any gcc2 internal prototype to avoid an error. */
19800 /* We use char because int might match the return type of a gcc2
19801 builtin and then its argument prototype would still apply. */
19803 /* The GNU C library defines this for functions which it implements
19804 to always fail with ENOSYS. Some functions are actually named
19805 something starting with __ and the normal name is an alias. */
19806 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19809 char (*f) () = $ac_func;
19818 return f != $ac_func;
19823 rm -f conftest.$ac_objext conftest$ac_exeext
19824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19825 (eval $ac_link) 2>conftest.er1
19827 grep -v '^ *+' conftest.er1 >conftest.err
19829 cat conftest.err >&5
19830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19831 (exit $ac_status); } &&
19832 { ac_try='test -z "$ac_c_werror_flag"
19833 || test ! -s conftest.err'
19834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19835 (eval $ac_try) 2>&5
19837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19838 (exit $ac_status); }; } &&
19839 { ac_try='test -s conftest$ac_exeext'
19840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19841 (eval $ac_try) 2>&5
19843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19844 (exit $ac_status); }; }; then
19845 eval "$as_ac_var=yes"
19847 echo "$as_me: failed program was:" >&5
19848 sed 's/^/| /' conftest.$ac_ext >&5
19850 eval "$as_ac_var=no"
19852 rm -f conftest.err conftest.$ac_objext \
19853 conftest$ac_exeext conftest.$ac_ext
19855 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19856 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19857 if test `eval echo '${'$as_ac_var'}'` = yes; then
19858 cat >>confdefs.h <<_ACEOF
19859 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19863 echo 'configure: cannot find needed function.'; exit 1
19870 for ac_func in fchdir
19872 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19873 echo "$as_me:$LINENO: checking for $ac_func" >&5
19874 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19875 if eval "test \"\${$as_ac_var+set}\" = set"; then
19876 echo $ECHO_N "(cached) $ECHO_C" >&6
19878 cat >conftest.$ac_ext <<_ACEOF
19881 cat confdefs.h >>conftest.$ac_ext
19882 cat >>conftest.$ac_ext <<_ACEOF
19883 /* end confdefs.h. */
19884 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19885 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19886 #define $ac_func innocuous_$ac_func
19888 /* System header to define __stub macros and hopefully few prototypes,
19889 which can conflict with char $ac_func (); below.
19890 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19891 <limits.h> exists even on freestanding compilers. */
19894 # include <limits.h>
19896 # include <assert.h>
19901 /* Override any gcc2 internal prototype to avoid an error. */
19906 /* We use char because int might match the return type of a gcc2
19907 builtin and then its argument prototype would still apply. */
19909 /* The GNU C library defines this for functions which it implements
19910 to always fail with ENOSYS. Some functions are actually named
19911 something starting with __ and the normal name is an alias. */
19912 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19915 char (*f) () = $ac_func;
19924 return f != $ac_func;
19929 rm -f conftest.$ac_objext conftest$ac_exeext
19930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19931 (eval $ac_link) 2>conftest.er1
19933 grep -v '^ *+' conftest.er1 >conftest.err
19935 cat conftest.err >&5
19936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19937 (exit $ac_status); } &&
19938 { ac_try='test -z "$ac_c_werror_flag"
19939 || test ! -s conftest.err'
19940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19941 (eval $ac_try) 2>&5
19943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19944 (exit $ac_status); }; } &&
19945 { ac_try='test -s conftest$ac_exeext'
19946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19947 (eval $ac_try) 2>&5
19949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19950 (exit $ac_status); }; }; then
19951 eval "$as_ac_var=yes"
19953 echo "$as_me: failed program was:" >&5
19954 sed 's/^/| /' conftest.$ac_ext >&5
19956 eval "$as_ac_var=no"
19958 rm -f conftest.err conftest.$ac_objext \
19959 conftest$ac_exeext conftest.$ac_ext
19961 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19962 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19963 if test `eval echo '${'$as_ac_var'}'` = yes; then
19964 cat >>confdefs.h <<_ACEOF
19965 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19967 cat >>confdefs.h <<\_ACEOF
19968 #define HAVE_FCHDIR 1
19975 for ac_func in strtoll
19977 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19978 echo "$as_me:$LINENO: checking for $ac_func" >&5
19979 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19980 if eval "test \"\${$as_ac_var+set}\" = set"; then
19981 echo $ECHO_N "(cached) $ECHO_C" >&6
19983 cat >conftest.$ac_ext <<_ACEOF
19986 cat confdefs.h >>conftest.$ac_ext
19987 cat >>conftest.$ac_ext <<_ACEOF
19988 /* end confdefs.h. */
19989 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19990 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19991 #define $ac_func innocuous_$ac_func
19993 /* System header to define __stub macros and hopefully few prototypes,
19994 which can conflict with char $ac_func (); below.
19995 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19996 <limits.h> exists even on freestanding compilers. */
19999 # include <limits.h>
20001 # include <assert.h>
20006 /* Override any gcc2 internal prototype to avoid an error. */
20011 /* We use char because int might match the return type of a gcc2
20012 builtin and then its argument prototype would still apply. */
20014 /* The GNU C library defines this for functions which it implements
20015 to always fail with ENOSYS. Some functions are actually named
20016 something starting with __ and the normal name is an alias. */
20017 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20020 char (*f) () = $ac_func;
20029 return f != $ac_func;
20034 rm -f conftest.$ac_objext conftest$ac_exeext
20035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20036 (eval $ac_link) 2>conftest.er1
20038 grep -v '^ *+' conftest.er1 >conftest.err
20040 cat conftest.err >&5
20041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20042 (exit $ac_status); } &&
20043 { ac_try='test -z "$ac_c_werror_flag"
20044 || test ! -s conftest.err'
20045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20046 (eval $ac_try) 2>&5
20048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20049 (exit $ac_status); }; } &&
20050 { ac_try='test -s conftest$ac_exeext'
20051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20052 (eval $ac_try) 2>&5
20054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20055 (exit $ac_status); }; }; then
20056 eval "$as_ac_var=yes"
20058 echo "$as_me: failed program was:" >&5
20059 sed 's/^/| /' conftest.$ac_ext >&5
20061 eval "$as_ac_var=no"
20063 rm -f conftest.err conftest.$ac_objext \
20064 conftest$ac_exeext conftest.$ac_ext
20066 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20067 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20068 if test `eval echo '${'$as_ac_var'}'` = yes; then
20069 cat >>confdefs.h <<_ACEOF
20070 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20072 cat >>confdefs.h <<\_ACEOF
20073 #define HAVE_STRTOLL 1
20081 for ac_func in chflags
20083 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20084 echo "$as_me:$LINENO: checking for $ac_func" >&5
20085 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20086 if eval "test \"\${$as_ac_var+set}\" = set"; then
20087 echo $ECHO_N "(cached) $ECHO_C" >&6
20089 cat >conftest.$ac_ext <<_ACEOF
20092 cat confdefs.h >>conftest.$ac_ext
20093 cat >>conftest.$ac_ext <<_ACEOF
20094 /* end confdefs.h. */
20095 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20096 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20097 #define $ac_func innocuous_$ac_func
20099 /* System header to define __stub macros and hopefully few prototypes,
20100 which can conflict with char $ac_func (); below.
20101 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20102 <limits.h> exists even on freestanding compilers. */
20105 # include <limits.h>
20107 # include <assert.h>
20112 /* Override any gcc2 internal prototype to avoid an error. */
20117 /* We use char because int might match the return type of a gcc2
20118 builtin and then its argument prototype would still apply. */
20120 /* The GNU C library defines this for functions which it implements
20121 to always fail with ENOSYS. Some functions are actually named
20122 something starting with __ and the normal name is an alias. */
20123 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20126 char (*f) () = $ac_func;
20135 return f != $ac_func;
20140 rm -f conftest.$ac_objext conftest$ac_exeext
20141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20142 (eval $ac_link) 2>conftest.er1
20144 grep -v '^ *+' conftest.er1 >conftest.err
20146 cat conftest.err >&5
20147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20148 (exit $ac_status); } &&
20149 { ac_try='test -z "$ac_c_werror_flag"
20150 || test ! -s conftest.err'
20151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20152 (eval $ac_try) 2>&5
20154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20155 (exit $ac_status); }; } &&
20156 { ac_try='test -s conftest$ac_exeext'
20157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20158 (eval $ac_try) 2>&5
20160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20161 (exit $ac_status); }; }; then
20162 eval "$as_ac_var=yes"
20164 echo "$as_me: failed program was:" >&5
20165 sed 's/^/| /' conftest.$ac_ext >&5
20167 eval "$as_ac_var=no"
20169 rm -f conftest.err conftest.$ac_objext \
20170 conftest$ac_exeext conftest.$ac_ext
20172 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20173 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20174 if test `eval echo '${'$as_ac_var'}'` = yes; then
20175 cat >>confdefs.h <<_ACEOF
20176 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20187 for ac_func in snprintf vsnprintf gethostid fseeko
20189 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20190 echo "$as_me:$LINENO: checking for $ac_func" >&5
20191 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20192 if eval "test \"\${$as_ac_var+set}\" = set"; then
20193 echo $ECHO_N "(cached) $ECHO_C" >&6
20195 cat >conftest.$ac_ext <<_ACEOF
20198 cat confdefs.h >>conftest.$ac_ext
20199 cat >>conftest.$ac_ext <<_ACEOF
20200 /* end confdefs.h. */
20201 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20202 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20203 #define $ac_func innocuous_$ac_func
20205 /* System header to define __stub macros and hopefully few prototypes,
20206 which can conflict with char $ac_func (); below.
20207 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20208 <limits.h> exists even on freestanding compilers. */
20211 # include <limits.h>
20213 # include <assert.h>
20218 /* Override any gcc2 internal prototype to avoid an error. */
20223 /* We use char because int might match the return type of a gcc2
20224 builtin and then its argument prototype would still apply. */
20226 /* The GNU C library defines this for functions which it implements
20227 to always fail with ENOSYS. Some functions are actually named
20228 something starting with __ and the normal name is an alias. */
20229 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20232 char (*f) () = $ac_func;
20241 return f != $ac_func;
20246 rm -f conftest.$ac_objext conftest$ac_exeext
20247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20248 (eval $ac_link) 2>conftest.er1
20250 grep -v '^ *+' conftest.er1 >conftest.err
20252 cat conftest.err >&5
20253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20254 (exit $ac_status); } &&
20255 { ac_try='test -z "$ac_c_werror_flag"
20256 || test ! -s conftest.err'
20257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20258 (eval $ac_try) 2>&5
20260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20261 (exit $ac_status); }; } &&
20262 { ac_try='test -s conftest$ac_exeext'
20263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20264 (eval $ac_try) 2>&5
20266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20267 (exit $ac_status); }; }; then
20268 eval "$as_ac_var=yes"
20270 echo "$as_me: failed program was:" >&5
20271 sed 's/^/| /' conftest.$ac_ext >&5
20273 eval "$as_ac_var=no"
20275 rm -f conftest.err conftest.$ac_objext \
20276 conftest$ac_exeext conftest.$ac_ext
20278 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20279 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20280 if test `eval echo '${'$as_ac_var'}'` = yes; then
20281 cat >>confdefs.h <<_ACEOF
20282 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20293 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
20295 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20296 echo "$as_me:$LINENO: checking for $ac_func" >&5
20297 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20298 if eval "test \"\${$as_ac_var+set}\" = set"; then
20299 echo $ECHO_N "(cached) $ECHO_C" >&6
20301 cat >conftest.$ac_ext <<_ACEOF
20304 cat confdefs.h >>conftest.$ac_ext
20305 cat >>conftest.$ac_ext <<_ACEOF
20306 /* end confdefs.h. */
20307 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20308 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20309 #define $ac_func innocuous_$ac_func
20311 /* System header to define __stub macros and hopefully few prototypes,
20312 which can conflict with char $ac_func (); below.
20313 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20314 <limits.h> exists even on freestanding compilers. */
20317 # include <limits.h>
20319 # include <assert.h>
20324 /* Override any gcc2 internal prototype to avoid an error. */
20329 /* We use char because int might match the return type of a gcc2
20330 builtin and then its argument prototype would still apply. */
20332 /* The GNU C library defines this for functions which it implements
20333 to always fail with ENOSYS. Some functions are actually named
20334 something starting with __ and the normal name is an alias. */
20335 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20338 char (*f) () = $ac_func;
20347 return f != $ac_func;
20352 rm -f conftest.$ac_objext conftest$ac_exeext
20353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20354 (eval $ac_link) 2>conftest.er1
20356 grep -v '^ *+' conftest.er1 >conftest.err
20358 cat conftest.err >&5
20359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20360 (exit $ac_status); } &&
20361 { ac_try='test -z "$ac_c_werror_flag"
20362 || test ! -s conftest.err'
20363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20364 (eval $ac_try) 2>&5
20366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20367 (exit $ac_status); }; } &&
20368 { ac_try='test -s conftest$ac_exeext'
20369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20370 (eval $ac_try) 2>&5
20372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20373 (exit $ac_status); }; }; then
20374 eval "$as_ac_var=yes"
20376 echo "$as_me: failed program was:" >&5
20377 sed 's/^/| /' conftest.$ac_ext >&5
20379 eval "$as_ac_var=no"
20381 rm -f conftest.err conftest.$ac_objext \
20382 conftest$ac_exeext conftest.$ac_ext
20384 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20385 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20386 if test `eval echo '${'$as_ac_var'}'` = yes; then
20387 cat >>confdefs.h <<_ACEOF
20388 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20395 # If resolver functions are not in libc check for -lnsl or -lresolv.
20396 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
20397 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
20398 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
20399 echo $ECHO_N "(cached) $ECHO_C" >&6
20401 cat >conftest.$ac_ext <<_ACEOF
20404 cat confdefs.h >>conftest.$ac_ext
20405 cat >>conftest.$ac_ext <<_ACEOF
20406 /* end confdefs.h. */
20407 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
20408 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20409 #define gethostbyname_r innocuous_gethostbyname_r
20411 /* System header to define __stub macros and hopefully few prototypes,
20412 which can conflict with char gethostbyname_r (); below.
20413 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20414 <limits.h> exists even on freestanding compilers. */
20417 # include <limits.h>
20419 # include <assert.h>
20422 #undef gethostbyname_r
20424 /* Override any gcc2 internal prototype to avoid an error. */
20429 /* We use char because int might match the return type of a gcc2
20430 builtin and then its argument prototype would still apply. */
20431 char gethostbyname_r ();
20432 /* The GNU C library defines this for functions which it implements
20433 to always fail with ENOSYS. Some functions are actually named
20434 something starting with __ and the normal name is an alias. */
20435 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
20438 char (*f) () = gethostbyname_r;
20447 return f != gethostbyname_r;
20452 rm -f conftest.$ac_objext conftest$ac_exeext
20453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20454 (eval $ac_link) 2>conftest.er1
20456 grep -v '^ *+' conftest.er1 >conftest.err
20458 cat conftest.err >&5
20459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20460 (exit $ac_status); } &&
20461 { ac_try='test -z "$ac_c_werror_flag"
20462 || test ! -s conftest.err'
20463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20464 (eval $ac_try) 2>&5
20466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20467 (exit $ac_status); }; } &&
20468 { ac_try='test -s conftest$ac_exeext'
20469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20470 (eval $ac_try) 2>&5
20472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20473 (exit $ac_status); }; }; then
20474 ac_cv_func_gethostbyname_r=yes
20476 echo "$as_me: failed program was:" >&5
20477 sed 's/^/| /' conftest.$ac_ext >&5
20479 ac_cv_func_gethostbyname_r=no
20481 rm -f conftest.err conftest.$ac_objext \
20482 conftest$ac_exeext conftest.$ac_ext
20484 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
20485 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
20486 if test $ac_cv_func_gethostbyname_r = yes; then
20487 echo "$as_me:$LINENO: result: using libc's resolver" >&5
20488 echo "${ECHO_T}using libc's resolver" >&6
20491 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
20492 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
20493 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
20494 echo $ECHO_N "(cached) $ECHO_C" >&6
20496 ac_check_lib_save_LIBS=$LIBS
20498 cat >conftest.$ac_ext <<_ACEOF
20501 cat confdefs.h >>conftest.$ac_ext
20502 cat >>conftest.$ac_ext <<_ACEOF
20503 /* end confdefs.h. */
20505 /* Override any gcc2 internal prototype to avoid an error. */
20509 /* We use char because int might match the return type of a gcc2
20510 builtin and then its argument prototype would still apply. */
20511 char gethostbyname_r ();
20515 gethostbyname_r ();
20520 rm -f conftest.$ac_objext conftest$ac_exeext
20521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20522 (eval $ac_link) 2>conftest.er1
20524 grep -v '^ *+' conftest.er1 >conftest.err
20526 cat conftest.err >&5
20527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20528 (exit $ac_status); } &&
20529 { ac_try='test -z "$ac_c_werror_flag"
20530 || test ! -s conftest.err'
20531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20532 (eval $ac_try) 2>&5
20534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20535 (exit $ac_status); }; } &&
20536 { ac_try='test -s conftest$ac_exeext'
20537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20538 (eval $ac_try) 2>&5
20540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20541 (exit $ac_status); }; }; then
20542 ac_cv_lib_nsl_gethostbyname_r=yes
20544 echo "$as_me: failed program was:" >&5
20545 sed 's/^/| /' conftest.$ac_ext >&5
20547 ac_cv_lib_nsl_gethostbyname_r=no
20549 rm -f conftest.err conftest.$ac_objext \
20550 conftest$ac_exeext conftest.$ac_ext
20551 LIBS=$ac_check_lib_save_LIBS
20553 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
20554 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
20555 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
20556 cat >>confdefs.h <<_ACEOF
20557 #define HAVE_LIBNSL 1
20565 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
20566 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
20567 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
20568 echo $ECHO_N "(cached) $ECHO_C" >&6
20570 ac_check_lib_save_LIBS=$LIBS
20571 LIBS="-lresolv $LIBS"
20572 cat >conftest.$ac_ext <<_ACEOF
20575 cat confdefs.h >>conftest.$ac_ext
20576 cat >>conftest.$ac_ext <<_ACEOF
20577 /* end confdefs.h. */
20579 /* Override any gcc2 internal prototype to avoid an error. */
20583 /* We use char because int might match the return type of a gcc2
20584 builtin and then its argument prototype would still apply. */
20585 char gethostbyname_r ();
20589 gethostbyname_r ();
20594 rm -f conftest.$ac_objext conftest$ac_exeext
20595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20596 (eval $ac_link) 2>conftest.er1
20598 grep -v '^ *+' conftest.er1 >conftest.err
20600 cat conftest.err >&5
20601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20602 (exit $ac_status); } &&
20603 { ac_try='test -z "$ac_c_werror_flag"
20604 || test ! -s conftest.err'
20605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20606 (eval $ac_try) 2>&5
20608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20609 (exit $ac_status); }; } &&
20610 { ac_try='test -s conftest$ac_exeext'
20611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20612 (eval $ac_try) 2>&5
20614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20615 (exit $ac_status); }; }; then
20616 ac_cv_lib_resolv_gethostbyname_r=yes
20618 echo "$as_me: failed program was:" >&5
20619 sed 's/^/| /' conftest.$ac_ext >&5
20621 ac_cv_lib_resolv_gethostbyname_r=no
20623 rm -f conftest.err conftest.$ac_objext \
20624 conftest$ac_exeext conftest.$ac_ext
20625 LIBS=$ac_check_lib_save_LIBS
20627 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
20628 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
20629 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
20630 cat >>confdefs.h <<_ACEOF
20631 #define HAVE_LIBRESOLV 1
20634 LIBS="-lresolv $LIBS"
20644 for ac_func in inet_pton
20646 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20647 echo "$as_me:$LINENO: checking for $ac_func" >&5
20648 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20649 if eval "test \"\${$as_ac_var+set}\" = set"; then
20650 echo $ECHO_N "(cached) $ECHO_C" >&6
20652 cat >conftest.$ac_ext <<_ACEOF
20655 cat confdefs.h >>conftest.$ac_ext
20656 cat >>conftest.$ac_ext <<_ACEOF
20657 /* end confdefs.h. */
20658 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20659 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20660 #define $ac_func innocuous_$ac_func
20662 /* System header to define __stub macros and hopefully few prototypes,
20663 which can conflict with char $ac_func (); below.
20664 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20665 <limits.h> exists even on freestanding compilers. */
20668 # include <limits.h>
20670 # include <assert.h>
20675 /* Override any gcc2 internal prototype to avoid an error. */
20680 /* We use char because int might match the return type of a gcc2
20681 builtin and then its argument prototype would still apply. */
20683 /* The GNU C library defines this for functions which it implements
20684 to always fail with ENOSYS. Some functions are actually named
20685 something starting with __ and the normal name is an alias. */
20686 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20689 char (*f) () = $ac_func;
20698 return f != $ac_func;
20703 rm -f conftest.$ac_objext conftest$ac_exeext
20704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20705 (eval $ac_link) 2>conftest.er1
20707 grep -v '^ *+' conftest.er1 >conftest.err
20709 cat conftest.err >&5
20710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20711 (exit $ac_status); } &&
20712 { ac_try='test -z "$ac_c_werror_flag"
20713 || test ! -s conftest.err'
20714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20715 (eval $ac_try) 2>&5
20717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20718 (exit $ac_status); }; } &&
20719 { ac_try='test -s conftest$ac_exeext'
20720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20721 (eval $ac_try) 2>&5
20723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20724 (exit $ac_status); }; }; then
20725 eval "$as_ac_var=yes"
20727 echo "$as_me: failed program was:" >&5
20728 sed 's/^/| /' conftest.$ac_ext >&5
20730 eval "$as_ac_var=no"
20732 rm -f conftest.err conftest.$ac_objext \
20733 conftest$ac_exeext conftest.$ac_ext
20735 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20736 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20737 if test `eval echo '${'$as_ac_var'}'` = yes; then
20738 cat >>confdefs.h <<_ACEOF
20739 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20741 cat >>confdefs.h <<\_ACEOF
20742 #define HAVE_INET_PTON 1
20749 for ac_func in inet_ntop
20751 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20752 echo "$as_me:$LINENO: checking for $ac_func" >&5
20753 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20754 if eval "test \"\${$as_ac_var+set}\" = set"; then
20755 echo $ECHO_N "(cached) $ECHO_C" >&6
20757 cat >conftest.$ac_ext <<_ACEOF
20760 cat confdefs.h >>conftest.$ac_ext
20761 cat >>conftest.$ac_ext <<_ACEOF
20762 /* end confdefs.h. */
20763 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20764 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20765 #define $ac_func innocuous_$ac_func
20767 /* System header to define __stub macros and hopefully few prototypes,
20768 which can conflict with char $ac_func (); below.
20769 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20770 <limits.h> exists even on freestanding compilers. */
20773 # include <limits.h>
20775 # include <assert.h>
20780 /* Override any gcc2 internal prototype to avoid an error. */
20785 /* We use char because int might match the return type of a gcc2
20786 builtin and then its argument prototype would still apply. */
20788 /* The GNU C library defines this for functions which it implements
20789 to always fail with ENOSYS. Some functions are actually named
20790 something starting with __ and the normal name is an alias. */
20791 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20794 char (*f) () = $ac_func;
20803 return f != $ac_func;
20808 rm -f conftest.$ac_objext conftest$ac_exeext
20809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20810 (eval $ac_link) 2>conftest.er1
20812 grep -v '^ *+' conftest.er1 >conftest.err
20814 cat conftest.err >&5
20815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20816 (exit $ac_status); } &&
20817 { ac_try='test -z "$ac_c_werror_flag"
20818 || test ! -s conftest.err'
20819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20820 (eval $ac_try) 2>&5
20822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20823 (exit $ac_status); }; } &&
20824 { ac_try='test -s conftest$ac_exeext'
20825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20826 (eval $ac_try) 2>&5
20828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20829 (exit $ac_status); }; }; then
20830 eval "$as_ac_var=yes"
20832 echo "$as_me: failed program was:" >&5
20833 sed 's/^/| /' conftest.$ac_ext >&5
20835 eval "$as_ac_var=no"
20837 rm -f conftest.err conftest.$ac_objext \
20838 conftest$ac_exeext conftest.$ac_ext
20840 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20841 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20842 if test `eval echo '${'$as_ac_var'}'` = yes; then
20843 cat >>confdefs.h <<_ACEOF
20844 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20846 cat >>confdefs.h <<\_ACEOF
20847 #define HAVE_INET_NTOP 1
20854 for ac_func in gethostbyname2
20856 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20857 echo "$as_me:$LINENO: checking for $ac_func" >&5
20858 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20859 if eval "test \"\${$as_ac_var+set}\" = set"; then
20860 echo $ECHO_N "(cached) $ECHO_C" >&6
20862 cat >conftest.$ac_ext <<_ACEOF
20865 cat confdefs.h >>conftest.$ac_ext
20866 cat >>conftest.$ac_ext <<_ACEOF
20867 /* end confdefs.h. */
20868 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20869 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20870 #define $ac_func innocuous_$ac_func
20872 /* System header to define __stub macros and hopefully few prototypes,
20873 which can conflict with char $ac_func (); below.
20874 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20875 <limits.h> exists even on freestanding compilers. */
20878 # include <limits.h>
20880 # include <assert.h>
20885 /* Override any gcc2 internal prototype to avoid an error. */
20890 /* We use char because int might match the return type of a gcc2
20891 builtin and then its argument prototype would still apply. */
20893 /* The GNU C library defines this for functions which it implements
20894 to always fail with ENOSYS. Some functions are actually named
20895 something starting with __ and the normal name is an alias. */
20896 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20899 char (*f) () = $ac_func;
20908 return f != $ac_func;
20913 rm -f conftest.$ac_objext conftest$ac_exeext
20914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20915 (eval $ac_link) 2>conftest.er1
20917 grep -v '^ *+' conftest.er1 >conftest.err
20919 cat conftest.err >&5
20920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20921 (exit $ac_status); } &&
20922 { ac_try='test -z "$ac_c_werror_flag"
20923 || test ! -s conftest.err'
20924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20925 (eval $ac_try) 2>&5
20927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20928 (exit $ac_status); }; } &&
20929 { ac_try='test -s conftest$ac_exeext'
20930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20931 (eval $ac_try) 2>&5
20933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20934 (exit $ac_status); }; }; then
20935 eval "$as_ac_var=yes"
20937 echo "$as_me: failed program was:" >&5
20938 sed 's/^/| /' conftest.$ac_ext >&5
20940 eval "$as_ac_var=no"
20942 rm -f conftest.err conftest.$ac_objext \
20943 conftest$ac_exeext conftest.$ac_ext
20945 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20946 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20947 if test `eval echo '${'$as_ac_var'}'` = yes; then
20948 cat >>confdefs.h <<_ACEOF
20949 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20951 cat >>confdefs.h <<\_ACEOF
20952 #define HAVE_GETHOSTBYNAME2 1
20959 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
20960 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
20961 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
20962 echo $ECHO_N "(cached) $ECHO_C" >&6
20964 cat >conftest.$ac_ext <<_ACEOF
20967 cat confdefs.h >>conftest.$ac_ext
20968 cat >>conftest.$ac_ext <<_ACEOF
20969 /* end confdefs.h. */
20970 #include <sys/socket.h>
20974 struct sockaddr s; s.sa_len;
20979 rm -f conftest.$ac_objext
20980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20981 (eval $ac_compile) 2>conftest.er1
20983 grep -v '^ *+' conftest.er1 >conftest.err
20985 cat conftest.err >&5
20986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20987 (exit $ac_status); } &&
20988 { ac_try='test -z "$ac_c_werror_flag"
20989 || test ! -s conftest.err'
20990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20991 (eval $ac_try) 2>&5
20993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20994 (exit $ac_status); }; } &&
20995 { ac_try='test -s conftest.$ac_objext'
20996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20997 (eval $ac_try) 2>&5
20999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21000 (exit $ac_status); }; }; then
21001 ac_cv_struct_sockaddr_sa_len=yes
21003 echo "$as_me: failed program was:" >&5
21004 sed 's/^/| /' conftest.$ac_ext >&5
21006 ac_cv_struct_sockaddr_sa_len=no
21008 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21010 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
21011 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
21013 if test $ac_cv_struct_sockaddr_sa_len = yes; then
21015 cat >>confdefs.h <<\_ACEOF
21016 #define HAVE_SA_LEN 1
21022 echo "$as_me:$LINENO: checking for IPv6 support" >&5
21023 echo $ECHO_N "checking for IPv6 support... $ECHO_C" >&6
21024 if test "${ac_cv_ipv6_support+set}" = set; then
21025 echo $ECHO_N "(cached) $ECHO_C" >&6
21027 cat >conftest.$ac_ext <<_ACEOF
21030 cat confdefs.h >>conftest.$ac_ext
21031 cat >>conftest.$ac_ext <<_ACEOF
21032 /* end confdefs.h. */
21033 #include <sys/types.h>
21034 #include <sys/socket.h>
21035 #include <netinet/in.h>
21039 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] =
21045 rm -f conftest.$ac_objext conftest$ac_exeext
21046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21047 (eval $ac_link) 2>conftest.er1
21049 grep -v '^ *+' conftest.er1 >conftest.err
21051 cat conftest.err >&5
21052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21053 (exit $ac_status); } &&
21054 { ac_try='test -z "$ac_c_werror_flag"
21055 || test ! -s conftest.err'
21056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21057 (eval $ac_try) 2>&5
21059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21060 (exit $ac_status); }; } &&
21061 { ac_try='test -s conftest$ac_exeext'
21062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21063 (eval $ac_try) 2>&5
21065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21066 (exit $ac_status); }; }; then
21067 ac_cv_ipv6_support=yes
21069 echo "$as_me: failed program was:" >&5
21070 sed 's/^/| /' conftest.$ac_ext >&5
21072 ac_cv_ipv6_support=no
21074 rm -f conftest.err conftest.$ac_objext \
21075 conftest$ac_exeext conftest.$ac_ext
21077 echo "$as_me:$LINENO: result: $ac_cv_ipv6_support" >&5
21078 echo "${ECHO_T}$ac_cv_ipv6_support" >&6
21080 if test "$ac_cv_ipv6_support" = yes; then
21082 cat >>confdefs.h <<\_ACEOF
21083 #define HAVE_IPV6 1
21091 for ac_func in strftime
21093 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21094 echo "$as_me:$LINENO: checking for $ac_func" >&5
21095 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21096 if eval "test \"\${$as_ac_var+set}\" = set"; then
21097 echo $ECHO_N "(cached) $ECHO_C" >&6
21099 cat >conftest.$ac_ext <<_ACEOF
21102 cat confdefs.h >>conftest.$ac_ext
21103 cat >>conftest.$ac_ext <<_ACEOF
21104 /* end confdefs.h. */
21105 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21106 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21107 #define $ac_func innocuous_$ac_func
21109 /* System header to define __stub macros and hopefully few prototypes,
21110 which can conflict with char $ac_func (); below.
21111 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21112 <limits.h> exists even on freestanding compilers. */
21115 # include <limits.h>
21117 # include <assert.h>
21122 /* Override any gcc2 internal prototype to avoid an error. */
21127 /* We use char because int might match the return type of a gcc2
21128 builtin and then its argument prototype would still apply. */
21130 /* The GNU C library defines this for functions which it implements
21131 to always fail with ENOSYS. Some functions are actually named
21132 something starting with __ and the normal name is an alias. */
21133 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21136 char (*f) () = $ac_func;
21145 return f != $ac_func;
21150 rm -f conftest.$ac_objext conftest$ac_exeext
21151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21152 (eval $ac_link) 2>conftest.er1
21154 grep -v '^ *+' conftest.er1 >conftest.err
21156 cat conftest.err >&5
21157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21158 (exit $ac_status); } &&
21159 { ac_try='test -z "$ac_c_werror_flag"
21160 || test ! -s conftest.err'
21161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21162 (eval $ac_try) 2>&5
21164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21165 (exit $ac_status); }; } &&
21166 { ac_try='test -s conftest$ac_exeext'
21167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21168 (eval $ac_try) 2>&5
21170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21171 (exit $ac_status); }; }; then
21172 eval "$as_ac_var=yes"
21174 echo "$as_me: failed program was:" >&5
21175 sed 's/^/| /' conftest.$ac_ext >&5
21177 eval "$as_ac_var=no"
21179 rm -f conftest.err conftest.$ac_objext \
21180 conftest$ac_exeext conftest.$ac_ext
21182 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21183 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21184 if test `eval echo '${'$as_ac_var'}'` = yes; then
21185 cat >>confdefs.h <<_ACEOF
21186 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21190 # strftime is in -lintl on SCO UNIX.
21191 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
21192 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
21193 if test "${ac_cv_lib_intl_strftime+set}" = set; then
21194 echo $ECHO_N "(cached) $ECHO_C" >&6
21196 ac_check_lib_save_LIBS=$LIBS
21197 LIBS="-lintl $LIBS"
21198 cat >conftest.$ac_ext <<_ACEOF
21201 cat confdefs.h >>conftest.$ac_ext
21202 cat >>conftest.$ac_ext <<_ACEOF
21203 /* end confdefs.h. */
21205 /* Override any gcc2 internal prototype to avoid an error. */
21209 /* We use char because int might match the return type of a gcc2
21210 builtin and then its argument prototype would still apply. */
21220 rm -f conftest.$ac_objext conftest$ac_exeext
21221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21222 (eval $ac_link) 2>conftest.er1
21224 grep -v '^ *+' conftest.er1 >conftest.err
21226 cat conftest.err >&5
21227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21228 (exit $ac_status); } &&
21229 { ac_try='test -z "$ac_c_werror_flag"
21230 || test ! -s conftest.err'
21231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21232 (eval $ac_try) 2>&5
21234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21235 (exit $ac_status); }; } &&
21236 { ac_try='test -s conftest$ac_exeext'
21237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21238 (eval $ac_try) 2>&5
21240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21241 (exit $ac_status); }; }; then
21242 ac_cv_lib_intl_strftime=yes
21244 echo "$as_me: failed program was:" >&5
21245 sed 's/^/| /' conftest.$ac_ext >&5
21247 ac_cv_lib_intl_strftime=no
21249 rm -f conftest.err conftest.$ac_objext \
21250 conftest$ac_exeext conftest.$ac_ext
21251 LIBS=$ac_check_lib_save_LIBS
21253 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
21254 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
21255 if test $ac_cv_lib_intl_strftime = yes; then
21256 cat >>confdefs.h <<\_ACEOF
21257 #define HAVE_STRFTIME 1
21260 LIBS="-lintl $LIBS"
21267 for ac_func in vprintf
21269 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21270 echo "$as_me:$LINENO: checking for $ac_func" >&5
21271 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21272 if eval "test \"\${$as_ac_var+set}\" = set"; then
21273 echo $ECHO_N "(cached) $ECHO_C" >&6
21275 cat >conftest.$ac_ext <<_ACEOF
21278 cat confdefs.h >>conftest.$ac_ext
21279 cat >>conftest.$ac_ext <<_ACEOF
21280 /* end confdefs.h. */
21281 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21282 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21283 #define $ac_func innocuous_$ac_func
21285 /* System header to define __stub macros and hopefully few prototypes,
21286 which can conflict with char $ac_func (); below.
21287 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21288 <limits.h> exists even on freestanding compilers. */
21291 # include <limits.h>
21293 # include <assert.h>
21298 /* Override any gcc2 internal prototype to avoid an error. */
21303 /* We use char because int might match the return type of a gcc2
21304 builtin and then its argument prototype would still apply. */
21306 /* The GNU C library defines this for functions which it implements
21307 to always fail with ENOSYS. Some functions are actually named
21308 something starting with __ and the normal name is an alias. */
21309 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21312 char (*f) () = $ac_func;
21321 return f != $ac_func;
21326 rm -f conftest.$ac_objext conftest$ac_exeext
21327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21328 (eval $ac_link) 2>conftest.er1
21330 grep -v '^ *+' conftest.er1 >conftest.err
21332 cat conftest.err >&5
21333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21334 (exit $ac_status); } &&
21335 { ac_try='test -z "$ac_c_werror_flag"
21336 || test ! -s conftest.err'
21337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21338 (eval $ac_try) 2>&5
21340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21341 (exit $ac_status); }; } &&
21342 { ac_try='test -s conftest$ac_exeext'
21343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21344 (eval $ac_try) 2>&5
21346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21347 (exit $ac_status); }; }; then
21348 eval "$as_ac_var=yes"
21350 echo "$as_me: failed program was:" >&5
21351 sed 's/^/| /' conftest.$ac_ext >&5
21353 eval "$as_ac_var=no"
21355 rm -f conftest.err conftest.$ac_objext \
21356 conftest$ac_exeext conftest.$ac_ext
21358 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21359 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21360 if test `eval echo '${'$as_ac_var'}'` = yes; then
21361 cat >>confdefs.h <<_ACEOF
21362 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21365 echo "$as_me:$LINENO: checking for _doprnt" >&5
21366 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
21367 if test "${ac_cv_func__doprnt+set}" = set; then
21368 echo $ECHO_N "(cached) $ECHO_C" >&6
21370 cat >conftest.$ac_ext <<_ACEOF
21373 cat confdefs.h >>conftest.$ac_ext
21374 cat >>conftest.$ac_ext <<_ACEOF
21375 /* end confdefs.h. */
21376 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
21377 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21378 #define _doprnt innocuous__doprnt
21380 /* System header to define __stub macros and hopefully few prototypes,
21381 which can conflict with char _doprnt (); below.
21382 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21383 <limits.h> exists even on freestanding compilers. */
21386 # include <limits.h>
21388 # include <assert.h>
21393 /* Override any gcc2 internal prototype to avoid an error. */
21398 /* We use char because int might match the return type of a gcc2
21399 builtin and then its argument prototype would still apply. */
21401 /* The GNU C library defines this for functions which it implements
21402 to always fail with ENOSYS. Some functions are actually named
21403 something starting with __ and the normal name is an alias. */
21404 #if defined (__stub__doprnt) || defined (__stub____doprnt)
21407 char (*f) () = _doprnt;
21416 return f != _doprnt;
21421 rm -f conftest.$ac_objext conftest$ac_exeext
21422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21423 (eval $ac_link) 2>conftest.er1
21425 grep -v '^ *+' conftest.er1 >conftest.err
21427 cat conftest.err >&5
21428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21429 (exit $ac_status); } &&
21430 { ac_try='test -z "$ac_c_werror_flag"
21431 || test ! -s conftest.err'
21432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21433 (eval $ac_try) 2>&5
21435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21436 (exit $ac_status); }; } &&
21437 { ac_try='test -s conftest$ac_exeext'
21438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21439 (eval $ac_try) 2>&5
21441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21442 (exit $ac_status); }; }; then
21443 ac_cv_func__doprnt=yes
21445 echo "$as_me: failed program was:" >&5
21446 sed 's/^/| /' conftest.$ac_ext >&5
21448 ac_cv_func__doprnt=no
21450 rm -f conftest.err conftest.$ac_objext \
21451 conftest$ac_exeext conftest.$ac_ext
21453 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
21454 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
21455 if test $ac_cv_func__doprnt = yes; then
21457 cat >>confdefs.h <<\_ACEOF
21458 #define HAVE_DOPRNT 1
21467 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21468 # for constant arguments. Useless!
21469 echo "$as_me:$LINENO: checking for working alloca.h" >&5
21470 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
21471 if test "${ac_cv_working_alloca_h+set}" = set; then
21472 echo $ECHO_N "(cached) $ECHO_C" >&6
21474 cat >conftest.$ac_ext <<_ACEOF
21477 cat confdefs.h >>conftest.$ac_ext
21478 cat >>conftest.$ac_ext <<_ACEOF
21479 /* end confdefs.h. */
21480 #include <alloca.h>
21484 char *p = (char *) alloca (2 * sizeof (int));
21489 rm -f conftest.$ac_objext conftest$ac_exeext
21490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21491 (eval $ac_link) 2>conftest.er1
21493 grep -v '^ *+' conftest.er1 >conftest.err
21495 cat conftest.err >&5
21496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21497 (exit $ac_status); } &&
21498 { ac_try='test -z "$ac_c_werror_flag"
21499 || test ! -s conftest.err'
21500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21501 (eval $ac_try) 2>&5
21503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21504 (exit $ac_status); }; } &&
21505 { ac_try='test -s conftest$ac_exeext'
21506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21507 (eval $ac_try) 2>&5
21509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21510 (exit $ac_status); }; }; then
21511 ac_cv_working_alloca_h=yes
21513 echo "$as_me: failed program was:" >&5
21514 sed 's/^/| /' conftest.$ac_ext >&5
21516 ac_cv_working_alloca_h=no
21518 rm -f conftest.err conftest.$ac_objext \
21519 conftest$ac_exeext conftest.$ac_ext
21521 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21522 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
21523 if test $ac_cv_working_alloca_h = yes; then
21525 cat >>confdefs.h <<\_ACEOF
21526 #define HAVE_ALLOCA_H 1
21531 echo "$as_me:$LINENO: checking for alloca" >&5
21532 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
21533 if test "${ac_cv_func_alloca_works+set}" = set; then
21534 echo $ECHO_N "(cached) $ECHO_C" >&6
21536 cat >conftest.$ac_ext <<_ACEOF
21539 cat confdefs.h >>conftest.$ac_ext
21540 cat >>conftest.$ac_ext <<_ACEOF
21541 /* end confdefs.h. */
21543 # define alloca __builtin_alloca
21546 # include <malloc.h>
21547 # define alloca _alloca
21550 # include <alloca.h>
21555 # ifndef alloca /* predefined by HP cc +Olibcalls */
21566 char *p = (char *) alloca (1);
21571 rm -f conftest.$ac_objext conftest$ac_exeext
21572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21573 (eval $ac_link) 2>conftest.er1
21575 grep -v '^ *+' conftest.er1 >conftest.err
21577 cat conftest.err >&5
21578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21579 (exit $ac_status); } &&
21580 { ac_try='test -z "$ac_c_werror_flag"
21581 || test ! -s conftest.err'
21582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21583 (eval $ac_try) 2>&5
21585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21586 (exit $ac_status); }; } &&
21587 { ac_try='test -s conftest$ac_exeext'
21588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21589 (eval $ac_try) 2>&5
21591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21592 (exit $ac_status); }; }; then
21593 ac_cv_func_alloca_works=yes
21595 echo "$as_me: failed program was:" >&5
21596 sed 's/^/| /' conftest.$ac_ext >&5
21598 ac_cv_func_alloca_works=no
21600 rm -f conftest.err conftest.$ac_objext \
21601 conftest$ac_exeext conftest.$ac_ext
21603 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21604 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
21606 if test $ac_cv_func_alloca_works = yes; then
21608 cat >>confdefs.h <<\_ACEOF
21609 #define HAVE_ALLOCA 1
21613 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21614 # that cause trouble. Some versions do not even contain alloca or
21615 # contain a buggy version. If you still want to use their alloca,
21616 # use ar to extract alloca.o from them instead of compiling alloca.c.
21618 ALLOCA=alloca.$ac_objext
21620 cat >>confdefs.h <<\_ACEOF
21625 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21626 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
21627 if test "${ac_cv_os_cray+set}" = set; then
21628 echo $ECHO_N "(cached) $ECHO_C" >&6
21630 cat >conftest.$ac_ext <<_ACEOF
21633 cat confdefs.h >>conftest.$ac_ext
21634 cat >>conftest.$ac_ext <<_ACEOF
21635 /* end confdefs.h. */
21636 #if defined(CRAY) && ! defined(CRAY2)
21643 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21644 $EGREP "webecray" >/dev/null 2>&1; then
21652 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21653 echo "${ECHO_T}$ac_cv_os_cray" >&6
21654 if test $ac_cv_os_cray = yes; then
21655 for ac_func in _getb67 GETB67 getb67; do
21656 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21657 echo "$as_me:$LINENO: checking for $ac_func" >&5
21658 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21659 if eval "test \"\${$as_ac_var+set}\" = set"; then
21660 echo $ECHO_N "(cached) $ECHO_C" >&6
21662 cat >conftest.$ac_ext <<_ACEOF
21665 cat confdefs.h >>conftest.$ac_ext
21666 cat >>conftest.$ac_ext <<_ACEOF
21667 /* end confdefs.h. */
21668 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21669 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21670 #define $ac_func innocuous_$ac_func
21672 /* System header to define __stub macros and hopefully few prototypes,
21673 which can conflict with char $ac_func (); below.
21674 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21675 <limits.h> exists even on freestanding compilers. */
21678 # include <limits.h>
21680 # include <assert.h>
21685 /* Override any gcc2 internal prototype to avoid an error. */
21690 /* We use char because int might match the return type of a gcc2
21691 builtin and then its argument prototype would still apply. */
21693 /* The GNU C library defines this for functions which it implements
21694 to always fail with ENOSYS. Some functions are actually named
21695 something starting with __ and the normal name is an alias. */
21696 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21699 char (*f) () = $ac_func;
21708 return f != $ac_func;
21713 rm -f conftest.$ac_objext conftest$ac_exeext
21714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21715 (eval $ac_link) 2>conftest.er1
21717 grep -v '^ *+' conftest.er1 >conftest.err
21719 cat conftest.err >&5
21720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21721 (exit $ac_status); } &&
21722 { ac_try='test -z "$ac_c_werror_flag"
21723 || test ! -s conftest.err'
21724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21725 (eval $ac_try) 2>&5
21727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21728 (exit $ac_status); }; } &&
21729 { ac_try='test -s conftest$ac_exeext'
21730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21731 (eval $ac_try) 2>&5
21733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21734 (exit $ac_status); }; }; then
21735 eval "$as_ac_var=yes"
21737 echo "$as_me: failed program was:" >&5
21738 sed 's/^/| /' conftest.$ac_ext >&5
21740 eval "$as_ac_var=no"
21742 rm -f conftest.err conftest.$ac_objext \
21743 conftest$ac_exeext conftest.$ac_ext
21745 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21746 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21747 if test `eval echo '${'$as_ac_var'}'` = yes; then
21749 cat >>confdefs.h <<_ACEOF
21750 #define CRAY_STACKSEG_END $ac_func
21759 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
21760 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
21761 if test "${ac_cv_c_stack_direction+set}" = set; then
21762 echo $ECHO_N "(cached) $ECHO_C" >&6
21764 if test "$cross_compiling" = yes; then
21765 ac_cv_c_stack_direction=0
21767 cat >conftest.$ac_ext <<_ACEOF
21770 cat confdefs.h >>conftest.$ac_ext
21771 cat >>conftest.$ac_ext <<_ACEOF
21772 /* end confdefs.h. */
21774 find_stack_direction ()
21776 static char *addr = 0;
21781 return find_stack_direction ();
21784 return (&dummy > addr) ? 1 : -1;
21790 exit (find_stack_direction () < 0);
21793 rm -f conftest$ac_exeext
21794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21795 (eval $ac_link) 2>&5
21797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21798 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21800 (eval $ac_try) 2>&5
21802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21803 (exit $ac_status); }; }; then
21804 ac_cv_c_stack_direction=1
21806 echo "$as_me: program exited with status $ac_status" >&5
21807 echo "$as_me: failed program was:" >&5
21808 sed 's/^/| /' conftest.$ac_ext >&5
21810 ( exit $ac_status )
21811 ac_cv_c_stack_direction=-1
21813 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21816 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21817 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
21819 cat >>confdefs.h <<_ACEOF
21820 #define STACK_DIRECTION $ac_cv_c_stack_direction
21826 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
21827 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
21828 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
21829 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
21830 echo $ECHO_N "(cached) $ECHO_C" >&6
21832 ac_check_lib_save_LIBS=$LIBS
21834 cat >conftest.$ac_ext <<_ACEOF
21837 cat confdefs.h >>conftest.$ac_ext
21838 cat >>conftest.$ac_ext <<_ACEOF
21839 /* end confdefs.h. */
21841 /* Override any gcc2 internal prototype to avoid an error. */
21845 /* We use char because int might match the return type of a gcc2
21846 builtin and then its argument prototype would still apply. */
21856 rm -f conftest.$ac_objext conftest$ac_exeext
21857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21858 (eval $ac_link) 2>conftest.er1
21860 grep -v '^ *+' conftest.er1 >conftest.err
21862 cat conftest.err >&5
21863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21864 (exit $ac_status); } &&
21865 { ac_try='test -z "$ac_c_werror_flag"
21866 || test ! -s conftest.err'
21867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21868 (eval $ac_try) 2>&5
21870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21871 (exit $ac_status); }; } &&
21872 { ac_try='test -s conftest$ac_exeext'
21873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21874 (eval $ac_try) 2>&5
21876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21877 (exit $ac_status); }; }; then
21878 ac_cv_lib_sun_getmntent=yes
21880 echo "$as_me: failed program was:" >&5
21881 sed 's/^/| /' conftest.$ac_ext >&5
21883 ac_cv_lib_sun_getmntent=no
21885 rm -f conftest.err conftest.$ac_objext \
21886 conftest$ac_exeext conftest.$ac_ext
21887 LIBS=$ac_check_lib_save_LIBS
21889 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
21890 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
21891 if test $ac_cv_lib_sun_getmntent = yes; then
21894 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
21895 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
21896 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
21897 echo $ECHO_N "(cached) $ECHO_C" >&6
21899 ac_check_lib_save_LIBS=$LIBS
21901 cat >conftest.$ac_ext <<_ACEOF
21904 cat confdefs.h >>conftest.$ac_ext
21905 cat >>conftest.$ac_ext <<_ACEOF
21906 /* end confdefs.h. */
21908 /* Override any gcc2 internal prototype to avoid an error. */
21912 /* We use char because int might match the return type of a gcc2
21913 builtin and then its argument prototype would still apply. */
21923 rm -f conftest.$ac_objext conftest$ac_exeext
21924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21925 (eval $ac_link) 2>conftest.er1
21927 grep -v '^ *+' conftest.er1 >conftest.err
21929 cat conftest.err >&5
21930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21931 (exit $ac_status); } &&
21932 { ac_try='test -z "$ac_c_werror_flag"
21933 || test ! -s conftest.err'
21934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21935 (eval $ac_try) 2>&5
21937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21938 (exit $ac_status); }; } &&
21939 { ac_try='test -s conftest$ac_exeext'
21940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21941 (eval $ac_try) 2>&5
21943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21944 (exit $ac_status); }; }; then
21945 ac_cv_lib_seq_getmntent=yes
21947 echo "$as_me: failed program was:" >&5
21948 sed 's/^/| /' conftest.$ac_ext >&5
21950 ac_cv_lib_seq_getmntent=no
21952 rm -f conftest.err conftest.$ac_objext \
21953 conftest$ac_exeext conftest.$ac_ext
21954 LIBS=$ac_check_lib_save_LIBS
21956 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
21957 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
21958 if test $ac_cv_lib_seq_getmntent = yes; then
21961 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
21962 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
21963 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
21964 echo $ECHO_N "(cached) $ECHO_C" >&6
21966 ac_check_lib_save_LIBS=$LIBS
21968 cat >conftest.$ac_ext <<_ACEOF
21971 cat confdefs.h >>conftest.$ac_ext
21972 cat >>conftest.$ac_ext <<_ACEOF
21973 /* end confdefs.h. */
21975 /* Override any gcc2 internal prototype to avoid an error. */
21979 /* We use char because int might match the return type of a gcc2
21980 builtin and then its argument prototype would still apply. */
21990 rm -f conftest.$ac_objext conftest$ac_exeext
21991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21992 (eval $ac_link) 2>conftest.er1
21994 grep -v '^ *+' conftest.er1 >conftest.err
21996 cat conftest.err >&5
21997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21998 (exit $ac_status); } &&
21999 { ac_try='test -z "$ac_c_werror_flag"
22000 || test ! -s conftest.err'
22001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22002 (eval $ac_try) 2>&5
22004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22005 (exit $ac_status); }; } &&
22006 { ac_try='test -s conftest$ac_exeext'
22007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22008 (eval $ac_try) 2>&5
22010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22011 (exit $ac_status); }; }; then
22012 ac_cv_lib_gen_getmntent=yes
22014 echo "$as_me: failed program was:" >&5
22015 sed 's/^/| /' conftest.$ac_ext >&5
22017 ac_cv_lib_gen_getmntent=no
22019 rm -f conftest.err conftest.$ac_objext \
22020 conftest$ac_exeext conftest.$ac_ext
22021 LIBS=$ac_check_lib_save_LIBS
22023 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
22024 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
22025 if test $ac_cv_lib_gen_getmntent = yes; then
22034 for ac_func in getmntent
22036 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22037 echo "$as_me:$LINENO: checking for $ac_func" >&5
22038 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22039 if eval "test \"\${$as_ac_var+set}\" = set"; then
22040 echo $ECHO_N "(cached) $ECHO_C" >&6
22042 cat >conftest.$ac_ext <<_ACEOF
22045 cat confdefs.h >>conftest.$ac_ext
22046 cat >>conftest.$ac_ext <<_ACEOF
22047 /* end confdefs.h. */
22048 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22049 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22050 #define $ac_func innocuous_$ac_func
22052 /* System header to define __stub macros and hopefully few prototypes,
22053 which can conflict with char $ac_func (); below.
22054 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22055 <limits.h> exists even on freestanding compilers. */
22058 # include <limits.h>
22060 # include <assert.h>
22065 /* Override any gcc2 internal prototype to avoid an error. */
22070 /* We use char because int might match the return type of a gcc2
22071 builtin and then its argument prototype would still apply. */
22073 /* The GNU C library defines this for functions which it implements
22074 to always fail with ENOSYS. Some functions are actually named
22075 something starting with __ and the normal name is an alias. */
22076 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22079 char (*f) () = $ac_func;
22088 return f != $ac_func;
22093 rm -f conftest.$ac_objext conftest$ac_exeext
22094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22095 (eval $ac_link) 2>conftest.er1
22097 grep -v '^ *+' conftest.er1 >conftest.err
22099 cat conftest.err >&5
22100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22101 (exit $ac_status); } &&
22102 { ac_try='test -z "$ac_c_werror_flag"
22103 || test ! -s conftest.err'
22104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22105 (eval $ac_try) 2>&5
22107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22108 (exit $ac_status); }; } &&
22109 { ac_try='test -s conftest$ac_exeext'
22110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22111 (eval $ac_try) 2>&5
22113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22114 (exit $ac_status); }; }; then
22115 eval "$as_ac_var=yes"
22117 echo "$as_me: failed program was:" >&5
22118 sed 's/^/| /' conftest.$ac_ext >&5
22120 eval "$as_ac_var=no"
22122 rm -f conftest.err conftest.$ac_objext \
22123 conftest$ac_exeext conftest.$ac_ext
22125 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22126 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22127 if test `eval echo '${'$as_ac_var'}'` = yes; then
22128 cat >>confdefs.h <<_ACEOF
22129 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22136 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
22137 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
22138 if test "${ac_cv_func_closedir_void+set}" = set; then
22139 echo $ECHO_N "(cached) $ECHO_C" >&6
22141 if test "$cross_compiling" = yes; then
22142 ac_cv_func_closedir_void=yes
22144 cat >conftest.$ac_ext <<_ACEOF
22147 cat confdefs.h >>conftest.$ac_ext
22148 cat >>conftest.$ac_ext <<_ACEOF
22149 /* end confdefs.h. */
22150 $ac_includes_default
22151 #include <$ac_header_dirent>
22152 #ifndef __cplusplus
22159 exit (closedir (opendir (".")) != 0);
22164 rm -f conftest$ac_exeext
22165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22166 (eval $ac_link) 2>&5
22168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22169 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22171 (eval $ac_try) 2>&5
22173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22174 (exit $ac_status); }; }; then
22175 ac_cv_func_closedir_void=no
22177 echo "$as_me: program exited with status $ac_status" >&5
22178 echo "$as_me: failed program was:" >&5
22179 sed 's/^/| /' conftest.$ac_ext >&5
22181 ( exit $ac_status )
22182 ac_cv_func_closedir_void=yes
22184 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22187 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
22188 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
22189 if test $ac_cv_func_closedir_void = yes; then
22191 cat >>confdefs.h <<\_ACEOF
22192 #define CLOSEDIR_VOID 1
22197 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
22198 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
22199 if test "${ac_cv_func_setpgrp_void+set}" = set; then
22200 echo $ECHO_N "(cached) $ECHO_C" >&6
22202 if test "$cross_compiling" = yes; then
22203 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
22204 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
22205 { (exit 1); exit 1; }; }
22207 cat >conftest.$ac_ext <<_ACEOF
22210 cat confdefs.h >>conftest.$ac_ext
22211 cat >>conftest.$ac_ext <<_ACEOF
22212 /* end confdefs.h. */
22214 # include <unistd.h>
22220 /* If this system has a BSD-style setpgrp which takes arguments,
22221 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
22222 exit successfully. */
22223 exit (setpgrp (1,1) == -1 ? 0 : 1);
22228 rm -f conftest$ac_exeext
22229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22230 (eval $ac_link) 2>&5
22232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22233 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22235 (eval $ac_try) 2>&5
22237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22238 (exit $ac_status); }; }; then
22239 ac_cv_func_setpgrp_void=no
22241 echo "$as_me: program exited with status $ac_status" >&5
22242 echo "$as_me: failed program was:" >&5
22243 sed 's/^/| /' conftest.$ac_ext >&5
22245 ( exit $ac_status )
22246 ac_cv_func_setpgrp_void=yes
22248 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22251 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
22252 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
22253 if test $ac_cv_func_setpgrp_void = yes; then
22255 cat >>confdefs.h <<\_ACEOF
22256 #define SETPGRP_VOID 1
22260 # AC_FUNC_FNMATCH dnl use local version
22263 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
22264 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
22265 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
22266 echo $ECHO_N "(cached) $ECHO_C" >&6
22268 ac_check_lib_save_LIBS=$LIBS
22269 LIBS="-lxpg4 $LIBS"
22270 cat >conftest.$ac_ext <<_ACEOF
22273 cat confdefs.h >>conftest.$ac_ext
22274 cat >>conftest.$ac_ext <<_ACEOF
22275 /* end confdefs.h. */
22277 /* Override any gcc2 internal prototype to avoid an error. */
22281 /* We use char because int might match the return type of a gcc2
22282 builtin and then its argument prototype would still apply. */
22292 rm -f conftest.$ac_objext conftest$ac_exeext
22293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22294 (eval $ac_link) 2>conftest.er1
22296 grep -v '^ *+' conftest.er1 >conftest.err
22298 cat conftest.err >&5
22299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22300 (exit $ac_status); } &&
22301 { ac_try='test -z "$ac_c_werror_flag"
22302 || test ! -s conftest.err'
22303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22304 (eval $ac_try) 2>&5
22306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22307 (exit $ac_status); }; } &&
22308 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
22314 ac_cv_lib_xpg4_setlocale=yes
22316 echo "$as_me: failed program was:" >&5
22317 sed 's/^/| /' conftest.$ac_ext >&5
22319 ac_cv_lib_xpg4_setlocale=no
22321 rm -f conftest.err conftest.$ac_objext \
22322 conftest$ac_exeext conftest.$ac_ext
22323 LIBS=$ac_check_lib_save_LIBS
22325 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
22326 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
22327 if test $ac_cv_lib_xpg4_setlocale = yes; then
22328 LIBS="$LIBS -lxpg4"
22334 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
22335 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
22336 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
22337 echo $ECHO_N "(cached) $ECHO_C" >&6
22339 ac_check_lib_save_LIBS=$LIBS
22341 cat >conftest.$ac_ext <<_ACEOF
22344 cat confdefs.h >>conftest.$ac_ext
22345 cat >>conftest.$ac_ext <<_ACEOF
22346 /* end confdefs.h. */
22348 /* Override any gcc2 internal prototype to avoid an error. */
22352 /* We use char because int might match the return type of a gcc2
22353 builtin and then its argument prototype would still apply. */
22363 rm -f conftest.$ac_objext conftest$ac_exeext
22364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22365 (eval $ac_link) 2>conftest.er1
22367 grep -v '^ *+' conftest.er1 >conftest.err
22369 cat conftest.err >&5
22370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22371 (exit $ac_status); } &&
22372 { ac_try='test -z "$ac_c_werror_flag"
22373 || test ! -s conftest.err'
22374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22375 (eval $ac_try) 2>&5
22377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22378 (exit $ac_status); }; } &&
22379 { ac_try='test -s conftest$ac_exeext'
22380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22381 (eval $ac_try) 2>&5
22383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22384 (exit $ac_status); }; }; then
22385 ac_cv_lib_sun_getpwnam=yes
22387 echo "$as_me: failed program was:" >&5
22388 sed 's/^/| /' conftest.$ac_ext >&5
22390 ac_cv_lib_sun_getpwnam=no
22392 rm -f conftest.err conftest.$ac_objext \
22393 conftest$ac_exeext conftest.$ac_ext
22394 LIBS=$ac_check_lib_save_LIBS
22396 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
22397 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
22398 if test $ac_cv_lib_sun_getpwnam = yes; then
22399 cat >>confdefs.h <<_ACEOF
22400 #define HAVE_LIBSUN 1
22409 for ac_header in zlib.h
22411 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22412 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22413 echo "$as_me:$LINENO: checking for $ac_header" >&5
22414 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22415 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22416 echo $ECHO_N "(cached) $ECHO_C" >&6
22418 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22419 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22421 # Is the header compilable?
22422 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22423 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22424 cat >conftest.$ac_ext <<_ACEOF
22427 cat confdefs.h >>conftest.$ac_ext
22428 cat >>conftest.$ac_ext <<_ACEOF
22429 /* end confdefs.h. */
22430 $ac_includes_default
22431 #include <$ac_header>
22433 rm -f conftest.$ac_objext
22434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22435 (eval $ac_compile) 2>conftest.er1
22437 grep -v '^ *+' conftest.er1 >conftest.err
22439 cat conftest.err >&5
22440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22441 (exit $ac_status); } &&
22442 { ac_try='test -z "$ac_c_werror_flag"
22443 || test ! -s conftest.err'
22444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22445 (eval $ac_try) 2>&5
22447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22448 (exit $ac_status); }; } &&
22449 { ac_try='test -s conftest.$ac_objext'
22450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22451 (eval $ac_try) 2>&5
22453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22454 (exit $ac_status); }; }; then
22455 ac_header_compiler=yes
22457 echo "$as_me: failed program was:" >&5
22458 sed 's/^/| /' conftest.$ac_ext >&5
22460 ac_header_compiler=no
22462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22463 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22464 echo "${ECHO_T}$ac_header_compiler" >&6
22466 # Is the header present?
22467 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22468 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22469 cat >conftest.$ac_ext <<_ACEOF
22472 cat confdefs.h >>conftest.$ac_ext
22473 cat >>conftest.$ac_ext <<_ACEOF
22474 /* end confdefs.h. */
22475 #include <$ac_header>
22477 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22478 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22480 grep -v '^ *+' conftest.er1 >conftest.err
22482 cat conftest.err >&5
22483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22484 (exit $ac_status); } >/dev/null; then
22485 if test -s conftest.err; then
22486 ac_cpp_err=$ac_c_preproc_warn_flag
22487 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22494 if test -z "$ac_cpp_err"; then
22495 ac_header_preproc=yes
22497 echo "$as_me: failed program was:" >&5
22498 sed 's/^/| /' conftest.$ac_ext >&5
22500 ac_header_preproc=no
22502 rm -f conftest.err conftest.$ac_ext
22503 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22504 echo "${ECHO_T}$ac_header_preproc" >&6
22506 # So? What about this header?
22507 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22509 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22510 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22511 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22512 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22513 ac_header_preproc=yes
22516 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22517 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22518 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22519 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22520 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22521 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22522 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22523 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22524 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22525 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22526 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22527 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22530 ## ------------------------------------------ ##
22531 ## Report this to the AC_PACKAGE_NAME lists. ##
22532 ## ------------------------------------------ ##
22535 sed "s/^/$as_me: WARNING: /" >&2
22538 echo "$as_me:$LINENO: checking for $ac_header" >&5
22539 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22540 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22541 echo $ECHO_N "(cached) $ECHO_C" >&6
22543 eval "$as_ac_Header=\$ac_header_preproc"
22545 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22546 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22549 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22550 cat >>confdefs.h <<_ACEOF
22551 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22558 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
22559 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
22560 if test "${ac_cv_lib_z_deflate+set}" = set; then
22561 echo $ECHO_N "(cached) $ECHO_C" >&6
22563 ac_check_lib_save_LIBS=$LIBS
22565 cat >conftest.$ac_ext <<_ACEOF
22568 cat confdefs.h >>conftest.$ac_ext
22569 cat >>conftest.$ac_ext <<_ACEOF
22570 /* end confdefs.h. */
22572 /* Override any gcc2 internal prototype to avoid an error. */
22576 /* We use char because int might match the return type of a gcc2
22577 builtin and then its argument prototype would still apply. */
22587 rm -f conftest.$ac_objext conftest$ac_exeext
22588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22589 (eval $ac_link) 2>conftest.er1
22591 grep -v '^ *+' conftest.er1 >conftest.err
22593 cat conftest.err >&5
22594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22595 (exit $ac_status); } &&
22596 { ac_try='test -z "$ac_c_werror_flag"
22597 || test ! -s conftest.err'
22598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22599 (eval $ac_try) 2>&5
22601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22602 (exit $ac_status); }; } &&
22603 { ac_try='test -s conftest$ac_exeext'
22604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22605 (eval $ac_try) 2>&5
22607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22608 (exit $ac_status); }; }; then
22609 ac_cv_lib_z_deflate=yes
22611 echo "$as_me: failed program was:" >&5
22612 sed 's/^/| /' conftest.$ac_ext >&5
22614 ac_cv_lib_z_deflate=no
22616 rm -f conftest.err conftest.$ac_objext \
22617 conftest$ac_exeext conftest.$ac_ext
22618 LIBS=$ac_check_lib_save_LIBS
22620 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
22621 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
22622 if test $ac_cv_lib_z_deflate = yes; then
22627 if test x$FDLIBS = x-lz; then
22628 cat >>confdefs.h <<\_ACEOF
22629 #define HAVE_LIBZ 1
22636 if test "${ac_cv_header_sys_acl_h+set}" = set; then
22637 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
22638 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
22639 if test "${ac_cv_header_sys_acl_h+set}" = set; then
22640 echo $ECHO_N "(cached) $ECHO_C" >&6
22642 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
22643 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
22645 # Is the header compilable?
22646 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
22647 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
22648 cat >conftest.$ac_ext <<_ACEOF
22651 cat confdefs.h >>conftest.$ac_ext
22652 cat >>conftest.$ac_ext <<_ACEOF
22653 /* end confdefs.h. */
22654 $ac_includes_default
22655 #include <sys/acl.h>
22657 rm -f conftest.$ac_objext
22658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22659 (eval $ac_compile) 2>conftest.er1
22661 grep -v '^ *+' conftest.er1 >conftest.err
22663 cat conftest.err >&5
22664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22665 (exit $ac_status); } &&
22666 { ac_try='test -z "$ac_c_werror_flag"
22667 || test ! -s conftest.err'
22668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22669 (eval $ac_try) 2>&5
22671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22672 (exit $ac_status); }; } &&
22673 { ac_try='test -s conftest.$ac_objext'
22674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22675 (eval $ac_try) 2>&5
22677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22678 (exit $ac_status); }; }; then
22679 ac_header_compiler=yes
22681 echo "$as_me: failed program was:" >&5
22682 sed 's/^/| /' conftest.$ac_ext >&5
22684 ac_header_compiler=no
22686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22687 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22688 echo "${ECHO_T}$ac_header_compiler" >&6
22690 # Is the header present?
22691 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
22692 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
22693 cat >conftest.$ac_ext <<_ACEOF
22696 cat confdefs.h >>conftest.$ac_ext
22697 cat >>conftest.$ac_ext <<_ACEOF
22698 /* end confdefs.h. */
22699 #include <sys/acl.h>
22701 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22702 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22704 grep -v '^ *+' conftest.er1 >conftest.err
22706 cat conftest.err >&5
22707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22708 (exit $ac_status); } >/dev/null; then
22709 if test -s conftest.err; then
22710 ac_cpp_err=$ac_c_preproc_warn_flag
22711 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22718 if test -z "$ac_cpp_err"; then
22719 ac_header_preproc=yes
22721 echo "$as_me: failed program was:" >&5
22722 sed 's/^/| /' conftest.$ac_ext >&5
22724 ac_header_preproc=no
22726 rm -f conftest.err conftest.$ac_ext
22727 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22728 echo "${ECHO_T}$ac_header_preproc" >&6
22730 # So? What about this header?
22731 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22733 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
22734 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22735 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
22736 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
22737 ac_header_preproc=yes
22740 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
22741 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
22742 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
22743 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
22744 { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
22745 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
22746 { echo "$as_me:$LINENO: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&5
22747 echo "$as_me: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&2;}
22748 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
22749 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
22750 { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
22751 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
22754 ## ------------------------------------------ ##
22755 ## Report this to the AC_PACKAGE_NAME lists. ##
22756 ## ------------------------------------------ ##
22759 sed "s/^/$as_me: WARNING: /" >&2
22762 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
22763 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
22764 if test "${ac_cv_header_sys_acl_h+set}" = set; then
22765 echo $ECHO_N "(cached) $ECHO_C" >&6
22767 ac_cv_header_sys_acl_h=$ac_header_preproc
22769 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
22770 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
22775 echo "$as_me:$LINENO: checking for acl_get_file" >&5
22776 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6
22777 if test "${ac_cv_func_acl_get_file+set}" = set; then
22778 echo $ECHO_N "(cached) $ECHO_C" >&6
22780 cat >conftest.$ac_ext <<_ACEOF
22783 cat confdefs.h >>conftest.$ac_ext
22784 cat >>conftest.$ac_ext <<_ACEOF
22785 /* end confdefs.h. */
22786 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
22787 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22788 #define acl_get_file innocuous_acl_get_file
22790 /* System header to define __stub macros and hopefully few prototypes,
22791 which can conflict with char acl_get_file (); below.
22792 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22793 <limits.h> exists even on freestanding compilers. */
22796 # include <limits.h>
22798 # include <assert.h>
22801 #undef acl_get_file
22803 /* Override any gcc2 internal prototype to avoid an error. */
22808 /* We use char because int might match the return type of a gcc2
22809 builtin and then its argument prototype would still apply. */
22810 char acl_get_file ();
22811 /* The GNU C library defines this for functions which it implements
22812 to always fail with ENOSYS. Some functions are actually named
22813 something starting with __ and the normal name is an alias. */
22814 #if defined (__stub_acl_get_file) || defined (__stub___acl_get_file)
22817 char (*f) () = acl_get_file;
22826 return f != acl_get_file;
22831 rm -f conftest.$ac_objext conftest$ac_exeext
22832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22833 (eval $ac_link) 2>conftest.er1
22835 grep -v '^ *+' conftest.er1 >conftest.err
22837 cat conftest.err >&5
22838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22839 (exit $ac_status); } &&
22840 { ac_try='test -z "$ac_c_werror_flag"
22841 || test ! -s conftest.err'
22842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22843 (eval $ac_try) 2>&5
22845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22846 (exit $ac_status); }; } &&
22847 { ac_try='test -s conftest$ac_exeext'
22848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22849 (eval $ac_try) 2>&5
22851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22852 (exit $ac_status); }; }; then
22853 ac_cv_func_acl_get_file=yes
22855 echo "$as_me: failed program was:" >&5
22856 sed 's/^/| /' conftest.$ac_ext >&5
22858 ac_cv_func_acl_get_file=no
22860 rm -f conftest.err conftest.$ac_objext \
22861 conftest$ac_exeext conftest.$ac_ext
22863 echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
22864 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6
22865 if test $ac_cv_func_acl_get_file = yes; then
22868 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
22869 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
22870 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
22871 echo $ECHO_N "(cached) $ECHO_C" >&6
22873 ac_check_lib_save_LIBS=$LIBS
22875 cat >conftest.$ac_ext <<_ACEOF
22878 cat confdefs.h >>conftest.$ac_ext
22879 cat >>conftest.$ac_ext <<_ACEOF
22880 /* end confdefs.h. */
22882 /* Override any gcc2 internal prototype to avoid an error. */
22886 /* We use char because int might match the return type of a gcc2
22887 builtin and then its argument prototype would still apply. */
22888 char acl_get_file ();
22897 rm -f conftest.$ac_objext conftest$ac_exeext
22898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22899 (eval $ac_link) 2>conftest.er1
22901 grep -v '^ *+' conftest.er1 >conftest.err
22903 cat conftest.err >&5
22904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22905 (exit $ac_status); } &&
22906 { ac_try='test -z "$ac_c_werror_flag"
22907 || test ! -s conftest.err'
22908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22909 (eval $ac_try) 2>&5
22911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22912 (exit $ac_status); }; } &&
22913 { ac_try='test -s conftest$ac_exeext'
22914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22915 (eval $ac_try) 2>&5
22917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22918 (exit $ac_status); }; }; then
22919 ac_cv_lib_acl_acl_get_file=yes
22921 echo "$as_me: failed program was:" >&5
22922 sed 's/^/| /' conftest.$ac_ext >&5
22924 ac_cv_lib_acl_acl_get_file=no
22926 rm -f conftest.err conftest.$ac_objext \
22927 conftest$ac_exeext conftest.$ac_ext
22928 LIBS=$ac_check_lib_save_LIBS
22930 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
22931 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
22932 if test $ac_cv_lib_acl_acl_get_file = yes; then
22933 have_acl=yes; FDLIBS="-lacl $FDLIBS"
22939 if test $have_acl = yes; then
22940 cat >>confdefs.h <<\_ACEOF
22947 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
22948 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
22949 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
22950 echo $ECHO_N "(cached) $ECHO_C" >&6
22952 ac_check_lib_save_LIBS=$LIBS
22953 LIBS="-lpthread $LIBS"
22954 cat >conftest.$ac_ext <<_ACEOF
22957 cat confdefs.h >>conftest.$ac_ext
22958 cat >>conftest.$ac_ext <<_ACEOF
22959 /* end confdefs.h. */
22961 /* Override any gcc2 internal prototype to avoid an error. */
22965 /* We use char because int might match the return type of a gcc2
22966 builtin and then its argument prototype would still apply. */
22967 char pthread_create ();
22976 rm -f conftest.$ac_objext conftest$ac_exeext
22977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22978 (eval $ac_link) 2>conftest.er1
22980 grep -v '^ *+' conftest.er1 >conftest.err
22982 cat conftest.err >&5
22983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22984 (exit $ac_status); } &&
22985 { ac_try='test -z "$ac_c_werror_flag"
22986 || test ! -s conftest.err'
22987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22988 (eval $ac_try) 2>&5
22990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22991 (exit $ac_status); }; } &&
22992 { ac_try='test -s conftest$ac_exeext'
22993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22994 (eval $ac_try) 2>&5
22996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22997 (exit $ac_status); }; }; then
22998 ac_cv_lib_pthread_pthread_create=yes
23000 echo "$as_me: failed program was:" >&5
23001 sed 's/^/| /' conftest.$ac_ext >&5
23003 ac_cv_lib_pthread_pthread_create=no
23005 rm -f conftest.err conftest.$ac_objext \
23006 conftest$ac_exeext conftest.$ac_ext
23007 LIBS=$ac_check_lib_save_LIBS
23009 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
23010 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
23011 if test $ac_cv_lib_pthread_pthread_create = yes; then
23012 PTHREAD_LIB="-lpthread"
23014 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
23015 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
23016 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
23017 echo $ECHO_N "(cached) $ECHO_C" >&6
23019 ac_check_lib_save_LIBS=$LIBS
23020 LIBS="-lpthreads $LIBS"
23021 cat >conftest.$ac_ext <<_ACEOF
23024 cat confdefs.h >>conftest.$ac_ext
23025 cat >>conftest.$ac_ext <<_ACEOF
23026 /* end confdefs.h. */
23028 /* Override any gcc2 internal prototype to avoid an error. */
23032 /* We use char because int might match the return type of a gcc2
23033 builtin and then its argument prototype would still apply. */
23034 char pthread_create ();
23043 rm -f conftest.$ac_objext conftest$ac_exeext
23044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23045 (eval $ac_link) 2>conftest.er1
23047 grep -v '^ *+' conftest.er1 >conftest.err
23049 cat conftest.err >&5
23050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23051 (exit $ac_status); } &&
23052 { ac_try='test -z "$ac_c_werror_flag"
23053 || test ! -s conftest.err'
23054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23055 (eval $ac_try) 2>&5
23057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23058 (exit $ac_status); }; } &&
23059 { ac_try='test -s conftest$ac_exeext'
23060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23061 (eval $ac_try) 2>&5
23063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23064 (exit $ac_status); }; }; then
23065 ac_cv_lib_pthreads_pthread_create=yes
23067 echo "$as_me: failed program was:" >&5
23068 sed 's/^/| /' conftest.$ac_ext >&5
23070 ac_cv_lib_pthreads_pthread_create=no
23072 rm -f conftest.err conftest.$ac_objext \
23073 conftest$ac_exeext conftest.$ac_ext
23074 LIBS=$ac_check_lib_save_LIBS
23076 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
23077 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
23078 if test $ac_cv_lib_pthreads_pthread_create = yes; then
23079 PTHREAD_LIB="-lpthreads"
23081 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
23082 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
23083 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
23084 echo $ECHO_N "(cached) $ECHO_C" >&6
23086 ac_check_lib_save_LIBS=$LIBS
23088 cat >conftest.$ac_ext <<_ACEOF
23091 cat confdefs.h >>conftest.$ac_ext
23092 cat >>conftest.$ac_ext <<_ACEOF
23093 /* end confdefs.h. */
23095 /* Override any gcc2 internal prototype to avoid an error. */
23099 /* We use char because int might match the return type of a gcc2
23100 builtin and then its argument prototype would still apply. */
23101 char pthread_create ();
23110 rm -f conftest.$ac_objext conftest$ac_exeext
23111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23112 (eval $ac_link) 2>conftest.er1
23114 grep -v '^ *+' conftest.er1 >conftest.err
23116 cat conftest.err >&5
23117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23118 (exit $ac_status); } &&
23119 { ac_try='test -z "$ac_c_werror_flag"
23120 || test ! -s conftest.err'
23121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23122 (eval $ac_try) 2>&5
23124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23125 (exit $ac_status); }; } &&
23126 { ac_try='test -s conftest$ac_exeext'
23127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23128 (eval $ac_try) 2>&5
23130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23131 (exit $ac_status); }; }; then
23132 ac_cv_lib_c_r_pthread_create=yes
23134 echo "$as_me: failed program was:" >&5
23135 sed 's/^/| /' conftest.$ac_ext >&5
23137 ac_cv_lib_c_r_pthread_create=no
23139 rm -f conftest.err conftest.$ac_objext \
23140 conftest$ac_exeext conftest.$ac_ext
23141 LIBS=$ac_check_lib_save_LIBS
23143 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
23144 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
23145 if test $ac_cv_lib_c_r_pthread_create = yes; then
23146 PTHREAD_LIB="-lc_r"
23148 echo "$as_me:$LINENO: checking for pthread_create" >&5
23149 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
23150 if test "${ac_cv_func_pthread_create+set}" = set; then
23151 echo $ECHO_N "(cached) $ECHO_C" >&6
23153 cat >conftest.$ac_ext <<_ACEOF
23156 cat confdefs.h >>conftest.$ac_ext
23157 cat >>conftest.$ac_ext <<_ACEOF
23158 /* end confdefs.h. */
23159 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
23160 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23161 #define pthread_create innocuous_pthread_create
23163 /* System header to define __stub macros and hopefully few prototypes,
23164 which can conflict with char pthread_create (); below.
23165 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23166 <limits.h> exists even on freestanding compilers. */
23169 # include <limits.h>
23171 # include <assert.h>
23174 #undef pthread_create
23176 /* Override any gcc2 internal prototype to avoid an error. */
23181 /* We use char because int might match the return type of a gcc2
23182 builtin and then its argument prototype would still apply. */
23183 char pthread_create ();
23184 /* The GNU C library defines this for functions which it implements
23185 to always fail with ENOSYS. Some functions are actually named
23186 something starting with __ and the normal name is an alias. */
23187 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
23190 char (*f) () = pthread_create;
23199 return f != pthread_create;
23204 rm -f conftest.$ac_objext conftest$ac_exeext
23205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23206 (eval $ac_link) 2>conftest.er1
23208 grep -v '^ *+' conftest.er1 >conftest.err
23210 cat conftest.err >&5
23211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23212 (exit $ac_status); } &&
23213 { ac_try='test -z "$ac_c_werror_flag"
23214 || test ! -s conftest.err'
23215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23216 (eval $ac_try) 2>&5
23218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23219 (exit $ac_status); }; } &&
23220 { ac_try='test -s conftest$ac_exeext'
23221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23222 (eval $ac_try) 2>&5
23224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23225 (exit $ac_status); }; }; then
23226 ac_cv_func_pthread_create=yes
23228 echo "$as_me: failed program was:" >&5
23229 sed 's/^/| /' conftest.$ac_ext >&5
23231 ac_cv_func_pthread_create=no
23233 rm -f conftest.err conftest.$ac_objext \
23234 conftest$ac_exeext conftest.$ac_ext
23236 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
23237 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
23250 cat >>confdefs.h <<\_ACEOF
23256 CFLAGS=${CFLAGS--O}
23257 LDFLAGS=${LDFLAGS--O}
23258 DB_LIBS="${SQL_LFLAGS}"
23260 CPPFLAGS="$CPPFLAGS"
23286 # Finally we set appropriate distribution specific
23287 # variables and defaults
23289 # PFILES are platform specific files
23290 PFILES="platforms/Makefile"
23294 hostname=`uname -n | cut -d '.' -f 1`
23295 case "$DISTNAME" in
23298 PSCMD="ps -e -o pid,comm"
23299 PFILES="${PFILES} \
23300 platforms/aix/Makefile"
23301 TAPEDRIVE="/dev/rmt0.1"
23305 PTHREAD_LIB="-lpthread -lexc"
23306 if test "${CC}" = "gcc" ; then
23313 TAPEDRIVE="/dev/nrmt0"
23316 DISTVER=`uname -a |awk '{print $3}'`
23317 TAPEDRIVE="/dev/nrmt0"
23318 PTHREAD_LIB="-pthread"
23319 CFLAGS="${CFLAGS} -pthread"
23320 PSCMD="ps -ax -o pid,command"
23323 PFILES="${PFILES} \
23324 platforms/bsdi/Makefile \
23325 platforms/bsdi/bacula-fd \
23326 platforms/bsdi/bacula-sd \
23327 platforms/bsdi/bacula-dir"
23328 largefile_support="yes"
23331 DISTVER=`uname -a |awk '{print $3}'`
23332 TAPEDRIVE="/dev/nrst0"
23334 WCFLAGS="-mwindows"
23335 WLDFLAGS="-mwindows"
23339 TAPEDRIVE="/dev/nst0"
23340 PSCMD="ps -e -o pid,command"
23342 PFILES="${PFILES} \
23343 platforms/darwin/Makefile"
23346 DISTVER=`cat /etc/debian_version`
23347 TAPEDRIVE="/dev/nrst0"
23348 PSCMD="ps -e -o pid,command"
23351 DISTVER=`uname -a |awk '{print $3}'`
23352 VER=`echo $DISTVER | cut -c 1`
23353 if test x$VER = x4 ; then
23354 PTHREAD_LIB="-pthread"
23355 CFLAGS="${CFLAGS} -pthread"
23359 TAPEDRIVE="/dev/nrsa0"
23360 PSCMD="ps -ax -o pid,command"
23361 PFILES="${PFILES} \
23362 platforms/freebsd/Makefile \
23363 platforms/freebsd/bacula-fd \
23364 platforms/freebsd/bacula-sd \
23365 platforms/freebsd/bacula-dir"
23366 largefile_support="yes"
23369 PSCMD="UNIX95=1 ps -e -o pid,comm"
23370 CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
23372 TAPEDRIVE="/dev/rmt/0hnb"
23373 PTHREAD_LIB="-lpthread"
23374 cat >>confdefs.h <<\_ACEOF
23375 #define _INCLUDE_LONGLONG 1
23381 TAPEDRIVE="/dev/rmt/0cbn"
23382 PSCMD="ps -e -o pid,comm"
23383 PFILES="${PFILES} \
23384 platforms/irix/Makefile \
23385 platforms/irix/bacula-fd \
23386 platforms/irix/bacula-sd \
23387 platforms/irix/bacula-dir"
23390 DISTVER=`uname -a |awk '{print $3}'`
23393 TAPEDRIVE="/dev/nrst0"
23394 PSCMD="ps -ax -o pid,command"
23395 PTHREAD_LIB="-pthread"
23396 CFLAGS="${CFLAGS} -pthread"
23399 DISTVER=`uname -a |awk '{print $3}'`
23402 TAPEDRIVE="/dev/nrst0"
23403 PSCMD="ps -ax -o pid,command"
23404 PTHREAD_LIB="-pthread"
23405 CFLAGS="${CFLAGS} -pthread"
23406 PFILES="${PFILES} \
23407 platforms/openbsd/Makefile \
23408 platforms/openbsd/bacula-fd \
23409 platforms/openbsd/bacula-sd \
23410 platforms/openbsd/bacula-dir"
23413 if test -f /etc/whitebox-release ; then
23414 f=/etc/whitebox-release
23416 f=/etc/redhat-release
23418 if test `cat $f | grep release |\
23419 cut -f 3 -d ' '`x = "Enterprise"x ; then
23420 DISTVER="Enterprise "`cat $f | grep release |\
23423 DISTVER=`cat /etc/redhat-release | grep release |\
23426 TAPEDRIVE="/dev/nst0"
23427 PSCMD="ps -e -o pid,command"
23428 PFILES="${PFILES} \
23429 platforms/redhat/Makefile \
23430 platforms/redhat/bacula-fd \
23431 platforms/redhat/bacula-sd \
23432 platforms/redhat/bacula-dir \
23433 platforms/redhat/bacula.spec \
23435 hostname=`hostname -s`
23438 DISTVER=`cat /etc/mandrake-release | grep release |\
23440 TAPEDRIVE="/dev/nst0"
23441 PSCMD="ps -e -o pid,command"
23442 PFILES="${PFILES} \
23443 platforms/mandrake/Makefile \
23444 platforms/mandrake/bacula-fd \
23445 platforms/mandrake/bacula-sd \
23446 platforms/mandrake/bacula-dir \
23447 platforms/mandrake/bacula.spec \
23451 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
23452 TAPEDRIVE="/dev/nst0"
23453 PSCMD="ps -e -o pid,command"
23454 PFILES="${PFILES} \
23455 platforms/gentoo/Makefile \
23456 platforms/gentoo/bacula-init \
23457 platforms/gentoo/bacula-fd \
23458 platforms/gentoo/bacula-sd \
23459 platforms/gentoo/bacula-dir"
23462 DISTVER=`cat /etc/slackware-version`
23463 TAPEDRIVE="/dev/nst0"
23464 PSCMD="ps -e -o pid,command"
23465 PFILES="${PFILES} \
23466 platforms/slackware/Makefile \
23467 platforms/slackware/rc.bacula-fd \
23468 platforms/slackware/rc.bacula-sd \
23469 platforms/slackware/rc.bacula-dir\
23470 platforms/slackware/functions.bacula"
23474 TAPEDRIVE="/dev/rmt/0cbn"
23475 PSCMD="ps -e -o pid,comm"
23476 PFILES="${PFILES} \
23477 platforms/solaris/Makefile \
23478 platforms/solaris/bacula-fd \
23479 platforms/solaris/bacula-sd \
23480 platforms/solaris/bacula-dir"
23481 if test x$DISTVER = x5.6 ; then
23482 cat >>confdefs.h <<\_ACEOF
23483 #define HAVE_OLD_SOCKOPT 1
23487 LIBS="$LIBS -lresolv"
23490 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
23492 TAPEDRIVE="/dev/nst0"
23493 PSCMD="ps -e -o pid,command"
23494 PFILES="${PFILES} \
23495 platforms/suse/Makefile \
23496 platforms/suse/bacula-fd \
23497 platforms/suse/bacula-sd \
23498 platforms/suse/bacula-dir \
23499 platforms/suse/bacula \
23500 platforms/suse/bacula.spec"
23505 TAPEDRIVE="/dev/nst0"
23506 PSCMD="ps -e -o pid,command"
23507 PFILES="${PFILES} \
23508 platforms/suse/Makefile \
23509 platforms/suse/bacula-fd \
23510 platforms/suse/bacula-sd \
23511 platforms/suse/bacula-dir"
23515 TAPEDRIVE="/dev/nst0"
23518 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
23524 LIBS="$PTHREAD_LIB $LIBS"
23526 cat >>confdefs.h <<_ACEOF
23530 cat >>confdefs.h <<_ACEOF
23541 MCOMMON=./autoconf/Make.common
23544 if test "x${subsysdir}" = "x${sbindir}" ; then
23547 echo "You have set both --sbindir and --with-subsys-dir"
23548 echo " equal to: ${subsysdir} "
23549 echo "This is not permitted. Please reconfigure."
23551 echo "Aborting configuration ..."
23557 ac_config_files="$ac_config_files autoconf/Make.common Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula 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/dvd-writepart scripts/dvd-freespace scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf 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/tools/Makefile src/win32/winbacula.nsi src/win32/baculafd/bacula-fd.conf src/win32/Makefile src/win32/console/bconsole.conf src/win32/wx-console/wx-console.conf src/win32/pebuilder/Makefile po/Makefile.in $PFILES"
23558 ac_config_commands="$ac_config_commands default"
23559 cat >confcache <<\_ACEOF
23560 # This file is a shell script that caches the results of configure
23561 # tests run on this system so they can be shared between configure
23562 # scripts and configure runs, see configure's option --config-cache.
23563 # It is not useful on other systems. If it contains results you don't
23564 # want to keep, you may remove or edit it.
23566 # config.status only pays attention to the cache file if you give it
23567 # the --recheck option to rerun configure.
23569 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23570 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23571 # following values.
23575 # The following way of writing the cache mishandles newlines in values,
23576 # but we know of no workaround that is simple, portable, and efficient.
23577 # So, don't put newlines in cache variables' values.
23578 # Ultrix sh set writes to stderr and can't be redirected directly,
23579 # and sets the high bit in the cache file unless we assign to the vars.
23582 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23584 # `set' does not quote correctly, so add quotes (double-quote
23585 # substitution turns \\\\ into \\, and sed turns \\ into \).
23588 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23591 # `set' quotes correctly as required by POSIX, so do not add quotes.
23593 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23600 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23602 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23604 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23605 if test -w $cache_file; then
23606 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23607 cat confcache >$cache_file
23609 echo "not updating unwritable cache $cache_file"
23614 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23615 # Let make expand exec_prefix.
23616 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23618 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23619 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23620 # trailing colons and then remove the whole line if VPATH becomes empty
23621 # (actually we leave an empty line to preserve line numbers).
23622 if test "x$srcdir" = x.; then
23623 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23624 s/:*\$(srcdir):*/:/;
23625 s/:*\${srcdir}:*/:/;
23627 s/^\([^=]*=[ ]*\):*/\1/;
23633 DEFS=-DHAVE_CONFIG_H
23637 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23638 # 1. Remove the extension, and $U if already installed.
23639 ac_i=`echo "$ac_i" |
23640 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23642 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23643 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23645 LIBOBJS=$ac_libobjs
23647 LTLIBOBJS=$ac_ltlibobjs
23651 : ${CONFIG_STATUS=./config.status}
23652 ac_clean_files_save=$ac_clean_files
23653 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23654 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23655 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23656 cat >$CONFIG_STATUS <<_ACEOF
23658 # Generated by $as_me.
23659 # Run this file to recreate the current configuration.
23660 # Compiler output produced by configure, useful for debugging
23661 # configure, is in config.log if it exists.
23664 ac_cs_recheck=false
23666 SHELL=\${CONFIG_SHELL-$SHELL}
23669 cat >>$CONFIG_STATUS <<\_ACEOF
23670 ## --------------------- ##
23671 ## M4sh Initialization. ##
23672 ## --------------------- ##
23674 # Be Bourne compatible
23675 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23678 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23679 # is contrary to our usage. Disable this feature.
23680 alias -g '${1+"$@"}'='"$@"'
23681 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23684 DUALCASE=1; export DUALCASE # for MKS sh
23686 # Support unset when possible.
23687 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23694 # Work around bugs in pre-3.0 UWIN ksh.
23695 $as_unset ENV MAIL MAILPATH
23702 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23703 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23704 LC_TELEPHONE LC_TIME
23706 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23707 eval $as_var=C; export $as_var
23713 # Required to use basename.
23714 if expr a : '\(a\)' >/dev/null 2>&1; then
23720 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23721 as_basename=basename
23727 # Name of the executable.
23728 as_me=`$as_basename "$0" ||
23729 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23730 X"$0" : 'X\(//\)$' \| \
23731 X"$0" : 'X\(/\)$' \| \
23732 . : '\(.\)' 2>/dev/null ||
23734 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23735 /^X\/\(\/\/\)$/{ s//\1/; q; }
23736 /^X\/\(\/\).*/{ s//\1/; q; }
23740 # PATH needs CR, and LINENO needs CR and PATH.
23741 # Avoid depending upon Character Ranges.
23742 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23743 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23744 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23745 as_cr_digits='0123456789'
23746 as_cr_alnum=$as_cr_Letters$as_cr_digits
23748 # The user is always right.
23749 if test "${PATH_SEPARATOR+set}" != set; then
23750 echo "#! /bin/sh" >conf$$.sh
23751 echo "exit 0" >>conf$$.sh
23753 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23762 as_lineno_1=$LINENO
23763 as_lineno_2=$LINENO
23764 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23765 test "x$as_lineno_1" != "x$as_lineno_2" &&
23766 test "x$as_lineno_3" = "x$as_lineno_2" || {
23767 # Find who we are. Look in the path if we contain no path at all
23770 *[\\/]* ) as_myself=$0 ;;
23771 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23772 for as_dir in $PATH
23775 test -z "$as_dir" && as_dir=.
23776 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23781 # We did not find ourselves, most probably we were run as `sh COMMAND'
23782 # in which case we are not to be found in the path.
23783 if test "x$as_myself" = x; then
23786 if test ! -f "$as_myself"; then
23787 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23788 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23789 { (exit 1); exit 1; }; }
23791 case $CONFIG_SHELL in
23793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23794 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23797 test -z "$as_dir" && as_dir=.
23798 for as_base in sh bash ksh sh5; do
23801 if ("$as_dir/$as_base" -c '
23802 as_lineno_1=$LINENO
23803 as_lineno_2=$LINENO
23804 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23805 test "x$as_lineno_1" != "x$as_lineno_2" &&
23806 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
23807 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23808 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23809 CONFIG_SHELL=$as_dir/$as_base
23810 export CONFIG_SHELL
23811 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23819 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23820 # uniformly replaced by the line number. The first 'sed' inserts a
23821 # line-number line before each line; the second 'sed' does the real
23822 # work. The second script uses 'N' to pair each line-number line
23823 # with the numbered line, and appends trailing '-' during
23824 # substitution so that $LINENO is not a special case at line end.
23825 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23826 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23827 sed '=' <$as_myself |
23832 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23835 s,^['$as_cr_digits']*\n,,
23836 ' >$as_me.lineno &&
23837 chmod +x $as_me.lineno ||
23838 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23839 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23840 { (exit 1); exit 1; }; }
23842 # Don't try to exec as it changes $[0], causing all sort of problems
23843 # (the dirname of $[0] is not the place where we might find the
23844 # original and so on. Autoconf is especially sensible to this).
23846 # Exit status is that of the last command.
23851 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23852 *c*,-n*) ECHO_N= ECHO_C='
23854 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23855 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
23858 if expr a : '\(a\)' >/dev/null 2>&1; then
23864 rm -f conf$$ conf$$.exe conf$$.file
23866 if ln -s conf$$.file conf$$ 2>/dev/null; then
23867 # We could just check for DJGPP; but this test a) works b) is more generic
23868 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23869 if test -f conf$$.exe; then
23870 # Don't use ln at all; we don't have any links
23875 elif ln conf$$.file conf$$ 2>/dev/null; then
23880 rm -f conf$$ conf$$.exe conf$$.file
23882 if mkdir -p . 2>/dev/null; then
23885 test -d ./-p && rmdir ./-p
23889 as_executable_p="test -f"
23891 # Sed expression to map a string onto a valid CPP name.
23892 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23894 # Sed expression to map a string onto a valid variable name.
23895 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23899 # We need space, tab and new line, in precisely that order.
23909 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23910 # report actual input values of CONFIG_FILES etc. instead of their
23911 # values after options handling. Logging --version etc. is OK.
23915 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23916 ## Running $as_me. ##
23921 This file was extended by $as_me, which was
23922 generated by GNU Autoconf 2.59. Invocation command line was
23924 CONFIG_FILES = $CONFIG_FILES
23925 CONFIG_HEADERS = $CONFIG_HEADERS
23926 CONFIG_LINKS = $CONFIG_LINKS
23927 CONFIG_COMMANDS = $CONFIG_COMMANDS
23931 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23935 # Files that config.status was made for.
23936 if test -n "$ac_config_files"; then
23937 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23940 if test -n "$ac_config_headers"; then
23941 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23944 if test -n "$ac_config_links"; then
23945 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23948 if test -n "$ac_config_commands"; then
23949 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23952 cat >>$CONFIG_STATUS <<\_ACEOF
23955 \`$as_me' instantiates files from templates according to the
23956 current configuration.
23958 Usage: $0 [OPTIONS] [FILE]...
23960 -h, --help print this help, then exit
23961 -V, --version print version number, then exit
23962 -q, --quiet do not print progress messages
23963 -d, --debug don't remove temporary files
23964 --recheck update $as_me by reconfiguring in the same conditions
23965 --file=FILE[:TEMPLATE]
23966 instantiate the configuration file FILE
23967 --header=FILE[:TEMPLATE]
23968 instantiate the configuration header FILE
23970 Configuration files:
23973 Configuration headers:
23976 Configuration commands:
23979 Report bugs to <bug-autoconf@gnu.org>."
23982 cat >>$CONFIG_STATUS <<_ACEOF
23985 configured by $0, generated by GNU Autoconf 2.59,
23986 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23988 Copyright (C) 2003 Free Software Foundation, Inc.
23989 This config.status script is free software; the Free Software Foundation
23990 gives unlimited permission to copy, distribute and modify it."
23995 cat >>$CONFIG_STATUS <<\_ACEOF
23996 # If no file are specified by the user, then we need to provide default
23997 # value. By we need to know if files were specified by the user.
24003 ac_option=`expr "x$1" : 'x\([^=]*\)='`
24004 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24012 *) # This is not an option, so the user has probably given explicit
24015 ac_need_defaults=false;;
24019 # Handling of the options.
24021 cat >>$CONFIG_STATUS <<\_ACEOF
24022 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24024 --version | --vers* | -V )
24025 echo "$ac_cs_version"; exit 0 ;;
24027 # Conflict between --help and --header
24028 { { echo "$as_me:$LINENO: error: ambiguous option: $1
24029 Try \`$0 --help' for more information." >&5
24030 echo "$as_me: error: ambiguous option: $1
24031 Try \`$0 --help' for more information." >&2;}
24032 { (exit 1); exit 1; }; };;
24033 --help | --hel | -h )
24034 echo "$ac_cs_usage"; exit 0 ;;
24035 --debug | --d* | -d )
24037 --file | --fil | --fi | --f )
24039 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24040 ac_need_defaults=false;;
24041 --header | --heade | --head | --hea )
24043 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24044 ac_need_defaults=false;;
24045 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24046 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24049 # This is an error.
24050 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24051 Try \`$0 --help' for more information." >&5
24052 echo "$as_me: error: unrecognized option: $1
24053 Try \`$0 --help' for more information." >&2;}
24054 { (exit 1); exit 1; }; } ;;
24056 *) ac_config_targets="$ac_config_targets $1" ;;
24062 ac_configure_extra_args=
24064 if $ac_cs_silent; then
24066 ac_configure_extra_args="$ac_configure_extra_args --silent"
24070 cat >>$CONFIG_STATUS <<_ACEOF
24071 if \$ac_cs_recheck; then
24072 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24073 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24078 cat >>$CONFIG_STATUS <<_ACEOF
24080 # INIT-COMMANDS section.
24083 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
24084 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
24086 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
24087 # Capture the value of LINGUAS because we need it to compute CATALOGS.
24088 LINGUAS="${LINGUAS-%UNSET%}"
24095 cat >>$CONFIG_STATUS <<\_ACEOF
24096 for ac_config_target in $ac_config_targets
24098 case "$ac_config_target" in
24099 # Handling of arguments.
24100 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
24101 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24102 "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
24103 "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
24104 "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
24105 "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
24106 "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
24107 "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
24108 "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
24109 "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
24110 "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
24111 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
24112 "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
24113 "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
24114 "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
24115 "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
24116 "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
24117 "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
24118 "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
24119 "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
24120 "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
24121 "scripts/dvd-writepart" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-writepart" ;;
24122 "scripts/dvd-freespace" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-freespace" ;;
24123 "scripts/bacula-tray-monitor.desktop" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
24124 "scripts/logwatch/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
24125 "scripts/logwatch/logfile.bacula.conf" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
24126 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
24127 "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
24128 "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
24129 "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
24130 "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
24131 "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
24132 "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
24133 "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
24134 "src/tray-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
24135 "src/tray-monitor/tray-monitor.conf" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
24136 "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
24137 "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
24138 "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
24139 "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
24140 "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
24141 "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
24142 "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
24143 "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
24144 "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
24145 "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
24146 "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
24147 "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
24148 "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
24149 "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
24150 "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
24151 "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
24152 "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
24153 "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
24154 "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
24155 "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
24156 "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
24157 "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
24158 "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
24159 "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
24160 "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
24161 "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
24162 "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
24163 "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
24164 "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
24165 "src/cats/create_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
24166 "src/cats/update_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
24167 "src/cats/make_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
24168 "src/cats/grant_sqlite3_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
24169 "src/cats/drop_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
24170 "src/cats/drop_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
24171 "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
24172 "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
24173 "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
24174 "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
24175 "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
24176 "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
24177 "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
24178 "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
24179 "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
24180 "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
24181 "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
24182 "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
24183 "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
24184 "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
24185 "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
24186 "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
24187 "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
24188 "src/win32/baculafd/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/baculafd/bacula-fd.conf" ;;
24189 "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
24190 "src/win32/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/console/bconsole.conf" ;;
24191 "src/win32/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/wx-console/wx-console.conf" ;;
24192 "src/win32/pebuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/pebuilder/Makefile" ;;
24193 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
24194 "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
24195 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
24196 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24197 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
24198 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24199 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24200 { (exit 1); exit 1; }; };;
24204 # If the user did not use the arguments to specify the items to instantiate,
24205 # then the envvar interface is used. Set only those that are not.
24206 # We use the long form for the default assignment because of an extremely
24207 # bizarre bug on SunOS 4.1.3.
24208 if $ac_need_defaults; then
24209 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24210 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24211 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24214 # Have a temporary directory for convenience. Make it in the build tree
24215 # simply because there is no reason to put it here, and in addition,
24216 # creating and moving files from /tmp can sometimes cause problems.
24217 # Create a temporary directory, and hook for its removal unless debugging.
24220 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24221 trap '{ (exit 1); exit 1; }' 1 2 13 15
24224 # Create a (secure) tmp directory for tmp files.
24227 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24228 test -n "$tmp" && test -d "$tmp"
24231 tmp=./confstat$$-$RANDOM
24232 (umask 077 && mkdir $tmp)
24235 echo "$me: cannot create a temporary directory in ." >&2
24236 { (exit 1); exit 1; }
24241 cat >>$CONFIG_STATUS <<_ACEOF
24244 # CONFIG_FILES section.
24247 # No need to generate the scripts if there are no CONFIG_FILES.
24248 # This happens for instance when ./config.status config.h
24249 if test -n "\$CONFIG_FILES"; then
24250 # Protect against being on the right side of a sed subst in config.status.
24251 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24252 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24253 s,@SHELL@,$SHELL,;t t
24254 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24255 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24256 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24257 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24258 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24259 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24260 s,@exec_prefix@,$exec_prefix,;t t
24261 s,@prefix@,$prefix,;t t
24262 s,@program_transform_name@,$program_transform_name,;t t
24263 s,@bindir@,$bindir,;t t
24264 s,@sbindir@,$sbindir,;t t
24265 s,@libexecdir@,$libexecdir,;t t
24266 s,@datadir@,$datadir,;t t
24267 s,@sysconfdir@,$sysconfdir,;t t
24268 s,@sharedstatedir@,$sharedstatedir,;t t
24269 s,@localstatedir@,$localstatedir,;t t
24270 s,@libdir@,$libdir,;t t
24271 s,@includedir@,$includedir,;t t
24272 s,@oldincludedir@,$oldincludedir,;t t
24273 s,@infodir@,$infodir,;t t
24274 s,@mandir@,$mandir,;t t
24275 s,@build_alias@,$build_alias,;t t
24276 s,@host_alias@,$host_alias,;t t
24277 s,@target_alias@,$target_alias,;t t
24278 s,@DEFS@,$DEFS,;t t
24279 s,@ECHO_C@,$ECHO_C,;t t
24280 s,@ECHO_N@,$ECHO_N,;t t
24281 s,@ECHO_T@,$ECHO_T,;t t
24282 s,@LIBS@,$LIBS,;t t
24283 s,@BUILD_DIR@,$BUILD_DIR,;t t
24284 s,@TRUEPRG@,$TRUEPRG,;t t
24285 s,@FALSEPRG@,$FALSEPRG,;t t
24286 s,@VERSION@,$VERSION,;t t
24287 s,@DATE@,$DATE,;t t
24288 s,@LSMDATE@,$LSMDATE,;t t
24290 s,@CFLAGS@,$CFLAGS,;t t
24291 s,@LDFLAGS@,$LDFLAGS,;t t
24292 s,@CPPFLAGS@,$CPPFLAGS,;t t
24293 s,@ac_ct_CC@,$ac_ct_CC,;t t
24294 s,@EXEEXT@,$EXEEXT,;t t
24295 s,@OBJEXT@,$OBJEXT,;t t
24297 s,@CXXFLAGS@,$CXXFLAGS,;t t
24298 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
24300 s,@EGREP@,$EGREP,;t t
24301 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24302 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24303 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24304 s,@RANLIB@,$RANLIB,;t t
24305 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24310 s,@ECHO@,$ECHO,;t t
24314 s,@OPENSSL@,$OPENSSL,;t t
24317 s,@MKISOFS@,$MKISOFS,;t t
24318 s,@PYTHON@,$PYTHON,;t t
24319 s,@GROWISOFS@,$GROWISOFS,;t t
24320 s,@DVDRWMEDIAINFO@,$DVDRWMEDIAINFO,;t t
24321 s,@PKGCONFIG@,$PKGCONFIG,;t t
24322 s,@WXCONFIG@,$WXCONFIG,;t t
24323 s,@WXFLAGS@,$WXFLAGS,;t t
24324 s,@CDRECORD@,$CDRECORD,;t t
24325 s,@PIDOF@,$PIDOF,;t t
24327 s,@ARFLAGS@,$ARFLAGS,;t t
24328 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
24329 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
24330 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
24331 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
24332 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
24333 s,@build@,$build,;t t
24334 s,@build_cpu@,$build_cpu,;t t
24335 s,@build_vendor@,$build_vendor,;t t
24336 s,@build_os@,$build_os,;t t
24337 s,@host@,$host,;t t
24338 s,@host_cpu@,$host_cpu,;t t
24339 s,@host_vendor@,$host_vendor,;t t
24340 s,@host_os@,$host_os,;t t
24341 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
24342 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
24343 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
24344 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
24345 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
24346 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
24347 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
24348 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
24349 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
24350 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
24351 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
24352 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
24353 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
24354 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
24355 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
24356 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
24357 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
24358 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
24359 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
24360 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
24361 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
24362 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
24363 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
24364 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
24365 s,@SET_MAKE@,$SET_MAKE,;t t
24366 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
24367 s,@USE_NLS@,$USE_NLS,;t t
24368 s,@MSGFMT@,$MSGFMT,;t t
24369 s,@GMSGFMT@,$GMSGFMT,;t t
24370 s,@XGETTEXT@,$XGETTEXT,;t t
24371 s,@MSGMERGE@,$MSGMERGE,;t t
24372 s,@INTL_MACOSX_LIBS@,$INTL_MACOSX_LIBS,;t t
24373 s,@LIBICONV@,$LIBICONV,;t t
24374 s,@LTLIBICONV@,$LTLIBICONV,;t t
24375 s,@INTLLIBS@,$INTLLIBS,;t t
24376 s,@LIBINTL@,$LIBINTL,;t t
24377 s,@LTLIBINTL@,$LTLIBINTL,;t t
24378 s,@POSUB@,$POSUB,;t t
24379 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
24380 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
24381 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
24382 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
24383 s,@GNOME_DIR@,$GNOME_DIR,;t t
24384 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
24385 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
24386 s,@WX_DIR@,$WX_DIR,;t t
24387 s,@TRAY_MONITOR_CPPFLAGS@,$TRAY_MONITOR_CPPFLAGS,;t t
24388 s,@TRAY_MONITOR_LDFLAGS@,$TRAY_MONITOR_LDFLAGS,;t t
24389 s,@TRAY_MONITOR_DIR@,$TRAY_MONITOR_DIR,;t t
24390 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
24391 s,@STATIC_FD@,$STATIC_FD,;t t
24392 s,@STATIC_SD@,$STATIC_SD,;t t
24393 s,@STATIC_DIR@,$STATIC_DIR,;t t
24394 s,@STATIC_CONS@,$STATIC_CONS,;t t
24395 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
24396 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
24397 s,@ALL_DIRS@,$ALL_DIRS,;t t
24398 s,@CONS_INC@,$CONS_INC,;t t
24399 s,@CONS_OBJ@,$CONS_OBJ,;t t
24400 s,@CONS_SRC@,$CONS_SRC,;t t
24401 s,@CONS_LIBS@,$CONS_LIBS,;t t
24402 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
24403 s,@READLINE_SRC@,$READLINE_SRC,;t t
24404 s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t
24405 s,@PYTHON_INCDIR@,$PYTHON_INCDIR,;t t
24406 s,@OPENSSL_LIBS@,$OPENSSL_LIBS,;t t
24407 s,@OPENSSL_INC@,$OPENSSL_INC,;t t
24408 s,@working_dir@,$working_dir,;t t
24409 s,@scriptdir@,$scriptdir,;t t
24410 s,@dump_email@,$dump_email,;t t
24411 s,@job_email@,$job_email,;t t
24412 s,@smtp_host@,$smtp_host,;t t
24413 s,@piddir@,$piddir,;t t
24414 s,@subsysdir@,$subsysdir,;t t
24415 s,@baseport@,$baseport,;t t
24416 s,@dir_port@,$dir_port,;t t
24417 s,@fd_port@,$fd_port,;t t
24418 s,@sd_port@,$sd_port,;t t
24419 s,@dir_password@,$dir_password,;t t
24420 s,@fd_password@,$fd_password,;t t
24421 s,@sd_password@,$sd_password,;t t
24422 s,@mon_dir_password@,$mon_dir_password,;t t
24423 s,@mon_fd_password@,$mon_fd_password,;t t
24424 s,@mon_sd_password@,$mon_sd_password,;t t
24425 s,@dir_user@,$dir_user,;t t
24426 s,@dir_group@,$dir_group,;t t
24427 s,@sd_user@,$sd_user,;t t
24428 s,@sd_group@,$sd_group,;t t
24429 s,@fd_user@,$fd_user,;t t
24430 s,@fd_group@,$fd_group,;t t
24431 s,@SBINPERM@,$SBINPERM,;t t
24432 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
24433 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
24434 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
24435 s,@cats@,$cats,;t t
24436 s,@DB_NAME@,$DB_NAME,;t t
24437 s,@GETCONF@,$GETCONF,;t t
24438 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
24439 s,@X_CFLAGS@,$X_CFLAGS,;t t
24440 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
24441 s,@X_LIBS@,$X_LIBS,;t t
24442 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
24443 s,@LIBOBJS@,$LIBOBJS,;t t
24444 s,@ALLOCA@,$ALLOCA,;t t
24445 s,@FDLIBS@,$FDLIBS,;t t
24446 s,@DEBUG@,$DEBUG,;t t
24447 s,@DINCLUDE@,$DINCLUDE,;t t
24448 s,@DLIB@,$DLIB,;t t
24449 s,@DB_LIBS@,$DB_LIBS,;t t
24450 s,@WCFLAGS@,$WCFLAGS,;t t
24451 s,@WLDFLAGS@,$WLDFLAGS,;t t
24452 s,@OBJLIST@,$OBJLIST,;t t
24453 s,@hostname@,$hostname,;t t
24454 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
24455 s,@PSCMD@,$PSCMD,;t t
24456 s,@WIN32@,$WIN32,;t t
24457 s,@MACOSX@,$MACOSX,;t t
24458 s,@DISTNAME@,$DISTNAME,;t t
24459 s,@DISTVER@,$DISTVER,;t t
24460 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24461 /@MCOMMON@/r $MCOMMON
24467 cat >>$CONFIG_STATUS <<\_ACEOF
24468 # Split the substitutions into bite-sized pieces for seds with
24469 # small command number limits, like on Digital OSF/1 and HP-UX.
24470 ac_max_sed_lines=48
24471 ac_sed_frag=1 # Number of current file.
24472 ac_beg=1 # First line for current file.
24473 ac_end=$ac_max_sed_lines # Line after last line for current file.
24476 while $ac_more_lines; do
24477 if test $ac_beg -gt 1; then
24478 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24480 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24482 if test ! -s $tmp/subs.frag; then
24483 ac_more_lines=false
24485 # The purpose of the label and of the branching condition is to
24486 # speed up the sed processing (if there are no `@' at all, there
24487 # is no need to browse any of the substitutions).
24488 # These are the two extra sed commands mentioned above.
24490 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24491 if test -z "$ac_sed_cmds"; then
24492 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24494 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24496 ac_sed_frag=`expr $ac_sed_frag + 1`
24498 ac_end=`expr $ac_end + $ac_max_sed_lines`
24501 if test -z "$ac_sed_cmds"; then
24504 fi # test -n "$CONFIG_FILES"
24507 cat >>$CONFIG_STATUS <<\_ACEOF
24508 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24509 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24511 - | *:- | *:-:* ) # input from stdin
24513 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24514 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24515 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24516 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24517 * ) ac_file_in=$ac_file.in ;;
24520 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24521 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24522 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24523 X"$ac_file" : 'X\(//\)[^/]' \| \
24524 X"$ac_file" : 'X\(//\)$' \| \
24525 X"$ac_file" : 'X\(/\)' \| \
24526 . : '\(.\)' 2>/dev/null ||
24528 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24529 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24530 /^X\(\/\/\)$/{ s//\1/; q; }
24531 /^X\(\/\).*/{ s//\1/; q; }
24533 { if $as_mkdir_p; then
24538 while test ! -d "$as_dir"; do
24539 as_dirs="$as_dir $as_dirs"
24540 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24541 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24542 X"$as_dir" : 'X\(//\)[^/]' \| \
24543 X"$as_dir" : 'X\(//\)$' \| \
24544 X"$as_dir" : 'X\(/\)' \| \
24545 . : '\(.\)' 2>/dev/null ||
24547 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24548 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24549 /^X\(\/\/\)$/{ s//\1/; q; }
24550 /^X\(\/\).*/{ s//\1/; q; }
24553 test ! -n "$as_dirs" || mkdir $as_dirs
24554 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24555 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24556 { (exit 1); exit 1; }; }; }
24560 if test "$ac_dir" != .; then
24561 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24562 # A "../" for each directory in $ac_dir_suffix.
24563 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24565 ac_dir_suffix= ac_top_builddir=
24569 .) # No --srcdir option. We are building in place.
24571 if test -z "$ac_top_builddir"; then
24574 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24576 [\\/]* | ?:[\\/]* ) # Absolute path.
24577 ac_srcdir=$srcdir$ac_dir_suffix;
24578 ac_top_srcdir=$srcdir ;;
24579 *) # Relative path.
24580 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24581 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24584 # Do not use `cd foo && pwd` to compute absolute paths, because
24585 # the directories may not exist.
24587 .) ac_abs_builddir="$ac_dir";;
24590 .) ac_abs_builddir=`pwd`;;
24591 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24592 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24595 case $ac_abs_builddir in
24596 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24598 case ${ac_top_builddir}. in
24599 .) ac_abs_top_builddir=$ac_abs_builddir;;
24600 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24601 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24604 case $ac_abs_builddir in
24605 .) ac_abs_srcdir=$ac_srcdir;;
24608 .) ac_abs_srcdir=$ac_abs_builddir;;
24609 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24610 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24613 case $ac_abs_builddir in
24614 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24616 case $ac_top_srcdir in
24617 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24618 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24619 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24625 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24626 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24629 if test x"$ac_file" != x-; then
24630 { echo "$as_me:$LINENO: creating $ac_file" >&5
24631 echo "$as_me: creating $ac_file" >&6;}
24634 # Let's still pretend it is `configure' which instantiates (i.e., don't
24635 # use $as_me), people would be surprised to read:
24636 # /* config.h. Generated by config.status. */
24637 if test x"$ac_file" = x-; then
24640 configure_input="$ac_file. "
24642 configure_input=$configure_input"Generated from `echo $ac_file_in |
24643 sed 's,.*/,,'` by configure."
24645 # First look for the input files in the build tree, otherwise in the
24647 ac_file_inputs=`IFS=:
24648 for f in $ac_file_in; do
24650 -) echo $tmp/stdin ;;
24652 # Absolute (can't be DOS-style, as IFS=:)
24653 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24654 echo "$as_me: error: cannot find input file: $f" >&2;}
24655 { (exit 1); exit 1; }; }
24658 if test -f "$f"; then
24661 elif test -f "$srcdir/$f"; then
24666 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24667 echo "$as_me: error: cannot find input file: $f" >&2;}
24668 { (exit 1); exit 1; }; }
24671 done` || { (exit 1); exit 1; }
24673 cat >>$CONFIG_STATUS <<_ACEOF
24677 cat >>$CONFIG_STATUS <<\_ACEOF
24679 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24680 s,@configure_input@,$configure_input,;t t
24681 s,@srcdir@,$ac_srcdir,;t t
24682 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24683 s,@top_srcdir@,$ac_top_srcdir,;t t
24684 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24685 s,@builddir@,$ac_builddir,;t t
24686 s,@abs_builddir@,$ac_abs_builddir,;t t
24687 s,@top_builddir@,$ac_top_builddir,;t t
24688 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24689 s,@INSTALL@,$ac_INSTALL,;t t
24690 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24692 if test x"$ac_file" != x-; then
24693 mv $tmp/out $ac_file
24701 cat >>$CONFIG_STATUS <<\_ACEOF
24704 # CONFIG_HEADER section.
24707 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24708 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24710 # ac_d sets the value in "#define NAME VALUE" lines.
24711 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24712 ac_dB='[ ].*$,\1#\2'
24715 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24716 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24717 ac_uB='$,\1#\2define\3'
24721 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24722 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24724 - | *:- | *:-:* ) # input from stdin
24726 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24727 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24728 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24729 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24730 * ) ac_file_in=$ac_file.in ;;
24733 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24734 echo "$as_me: creating $ac_file" >&6;}
24736 # First look for the input files in the build tree, otherwise in the
24738 ac_file_inputs=`IFS=:
24739 for f in $ac_file_in; do
24741 -) echo $tmp/stdin ;;
24743 # Absolute (can't be DOS-style, as IFS=:)
24744 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24745 echo "$as_me: error: cannot find input file: $f" >&2;}
24746 { (exit 1); exit 1; }; }
24747 # Do quote $f, to prevent DOS paths from being IFS'd.
24750 if test -f "$f"; then
24753 elif test -f "$srcdir/$f"; then
24758 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24759 echo "$as_me: error: cannot find input file: $f" >&2;}
24760 { (exit 1); exit 1; }; }
24763 done` || { (exit 1); exit 1; }
24764 # Remove the trailing spaces.
24765 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24769 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24770 # `conftest.undefs', that substitutes the proper values into
24771 # config.h.in to produce config.h. The first handles `#define'
24772 # templates, and the second `#undef' templates.
24773 # And first: Protect against being on the right side of a sed subst in
24774 # config.status. Protect against being in an unquoted here document
24775 # in config.status.
24776 rm -f conftest.defines conftest.undefs
24777 # Using a here document instead of a string reduces the quoting nightmare.
24778 # Putting comments in sed scripts is not portable.
24780 # `end' is used to avoid that the second main sed command (meant for
24781 # 0-ary CPP macros) applies to n-ary macro definitions.
24782 # See the Autoconf documentation for `clear'.
24783 cat >confdef2sed.sed <<\_ACEOF
24788 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24790 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24793 # If some macros were called several times there might be several times
24794 # the same #defines, which is useless. Nevertheless, we may not want to
24795 # sort them, since we want the *last* AC-DEFINE to be honored.
24796 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24797 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24798 rm -f confdef2sed.sed
24800 # This sed command replaces #undef with comments. This is necessary, for
24801 # example, in the case of _POSIX_SOURCE, which is predefined and required
24802 # on some systems where configure will not decide to define it.
24803 cat >>conftest.undefs <<\_ACEOF
24804 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24807 # Break up conftest.defines because some shells have a limit on the size
24808 # of here documents, and old seds have small limits too (100 cmds).
24809 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24810 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24811 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24812 echo ' :' >>$CONFIG_STATUS
24813 rm -f conftest.tail
24814 while grep . conftest.defines >/dev/null
24816 # Write a limited-size here document to $tmp/defines.sed.
24817 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24818 # Speed up: don't consider the non `#define' lines.
24819 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24820 # Work around the forget-to-reset-the-flag bug.
24821 echo 't clr' >>$CONFIG_STATUS
24822 echo ': clr' >>$CONFIG_STATUS
24823 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24825 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24827 mv $tmp/out $tmp/in
24829 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24830 rm -f conftest.defines
24831 mv conftest.tail conftest.defines
24833 rm -f conftest.defines
24834 echo ' fi # grep' >>$CONFIG_STATUS
24835 echo >>$CONFIG_STATUS
24837 # Break up conftest.undefs because some shells have a limit on the size
24838 # of here documents, and old seds have small limits too (100 cmds).
24839 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24840 rm -f conftest.tail
24841 while grep . conftest.undefs >/dev/null
24843 # Write a limited-size here document to $tmp/undefs.sed.
24844 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24845 # Speed up: don't consider the non `#undef'
24846 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24847 # Work around the forget-to-reset-the-flag bug.
24848 echo 't clr' >>$CONFIG_STATUS
24849 echo ': clr' >>$CONFIG_STATUS
24850 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24852 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24854 mv $tmp/out $tmp/in
24856 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24857 rm -f conftest.undefs
24858 mv conftest.tail conftest.undefs
24860 rm -f conftest.undefs
24862 cat >>$CONFIG_STATUS <<\_ACEOF
24863 # Let's still pretend it is `configure' which instantiates (i.e., don't
24864 # use $as_me), people would be surprised to read:
24865 # /* config.h. Generated by config.status. */
24866 if test x"$ac_file" = x-; then
24867 echo "/* Generated by configure. */" >$tmp/config.h
24869 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24871 cat $tmp/in >>$tmp/config.h
24873 if test x"$ac_file" != x-; then
24874 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24875 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24876 echo "$as_me: $ac_file is unchanged" >&6;}
24878 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24879 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24880 X"$ac_file" : 'X\(//\)[^/]' \| \
24881 X"$ac_file" : 'X\(//\)$' \| \
24882 X"$ac_file" : 'X\(/\)' \| \
24883 . : '\(.\)' 2>/dev/null ||
24885 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24886 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24887 /^X\(\/\/\)$/{ s//\1/; q; }
24888 /^X\(\/\).*/{ s//\1/; q; }
24890 { if $as_mkdir_p; then
24895 while test ! -d "$as_dir"; do
24896 as_dirs="$as_dir $as_dirs"
24897 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24898 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24899 X"$as_dir" : 'X\(//\)[^/]' \| \
24900 X"$as_dir" : 'X\(//\)$' \| \
24901 X"$as_dir" : 'X\(/\)' \| \
24902 . : '\(.\)' 2>/dev/null ||
24904 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24905 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24906 /^X\(\/\/\)$/{ s//\1/; q; }
24907 /^X\(\/\).*/{ s//\1/; q; }
24910 test ! -n "$as_dirs" || mkdir $as_dirs
24911 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24912 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24913 { (exit 1); exit 1; }; }; }
24916 mv $tmp/config.h $ac_file
24920 rm -f $tmp/config.h
24924 cat >>$CONFIG_STATUS <<\_ACEOF
24927 # CONFIG_COMMANDS section.
24929 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24930 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24931 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24932 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24933 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24934 X"$ac_dest" : 'X\(//\)[^/]' \| \
24935 X"$ac_dest" : 'X\(//\)$' \| \
24936 X"$ac_dest" : 'X\(/\)' \| \
24937 . : '\(.\)' 2>/dev/null ||
24939 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24940 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24941 /^X\(\/\/\)$/{ s//\1/; q; }
24942 /^X\(\/\).*/{ s//\1/; q; }
24944 { if $as_mkdir_p; then
24949 while test ! -d "$as_dir"; do
24950 as_dirs="$as_dir $as_dirs"
24951 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24952 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24953 X"$as_dir" : 'X\(//\)[^/]' \| \
24954 X"$as_dir" : 'X\(//\)$' \| \
24955 X"$as_dir" : 'X\(/\)' \| \
24956 . : '\(.\)' 2>/dev/null ||
24958 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24959 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24960 /^X\(\/\/\)$/{ s//\1/; q; }
24961 /^X\(\/\).*/{ s//\1/; q; }
24964 test ! -n "$as_dirs" || mkdir $as_dirs
24965 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24966 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24967 { (exit 1); exit 1; }; }; }
24971 if test "$ac_dir" != .; then
24972 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24973 # A "../" for each directory in $ac_dir_suffix.
24974 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24976 ac_dir_suffix= ac_top_builddir=
24980 .) # No --srcdir option. We are building in place.
24982 if test -z "$ac_top_builddir"; then
24985 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24987 [\\/]* | ?:[\\/]* ) # Absolute path.
24988 ac_srcdir=$srcdir$ac_dir_suffix;
24989 ac_top_srcdir=$srcdir ;;
24990 *) # Relative path.
24991 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24992 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24995 # Do not use `cd foo && pwd` to compute absolute paths, because
24996 # the directories may not exist.
24998 .) ac_abs_builddir="$ac_dir";;
25001 .) ac_abs_builddir=`pwd`;;
25002 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25003 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25006 case $ac_abs_builddir in
25007 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25009 case ${ac_top_builddir}. in
25010 .) ac_abs_top_builddir=$ac_abs_builddir;;
25011 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25012 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25015 case $ac_abs_builddir in
25016 .) ac_abs_srcdir=$ac_srcdir;;
25019 .) ac_abs_srcdir=$ac_abs_builddir;;
25020 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25021 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25024 case $ac_abs_builddir in
25025 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25027 case $ac_top_srcdir in
25028 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25029 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25030 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25035 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25036 echo "$as_me: executing $ac_dest commands" >&6;}
25039 for ac_file in $CONFIG_FILES; do
25040 # Support "outfile[:infile[:infile...]]"
25042 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
25044 # PO directories have a Makefile.in generated from Makefile.in.in.
25045 case "$ac_file" in */Makefile.in)
25046 # Adjust a relative srcdir.
25047 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
25048 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
25049 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
25050 # In autoconf-2.13 it is called $ac_given_srcdir.
25051 # In autoconf-2.50 it is called $srcdir.
25052 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
25053 case "$ac_given_srcdir" in
25054 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
25055 /*) top_srcdir="$ac_given_srcdir" ;;
25056 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
25058 # Treat a directory as a PO directory if and only if it has a
25059 # POTFILES.in file. This allows packages to have multiple PO
25060 # directories under different names or in different locations.
25061 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
25062 rm -f "$ac_dir/POTFILES"
25063 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
25064 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
25065 POMAKEFILEDEPS="POTFILES.in"
25066 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
25067 # on $ac_dir but don't depend on user-specified configuration
25069 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
25070 # The LINGUAS file contains the set of available languages.
25071 if test -n "$OBSOLETE_ALL_LINGUAS"; then
25072 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
25074 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
25075 # Hide the ALL_LINGUAS assigment from automake.
25076 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
25077 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
25079 # The set of available languages was given in configure.in.
25080 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
25083 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
25084 # Compute UPDATEPOFILES
25085 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
25086 # Compute DUMMYPOFILES
25087 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
25089 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
25090 case "$ac_given_srcdir" in
25092 *) srcdirpre='$(srcdir)/' ;;
25098 for lang in $ALL_LINGUAS; do
25099 POFILES="$POFILES $srcdirpre$lang.po"
25100 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
25101 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
25102 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
25104 # CATALOGS depends on both $ac_dir and the user's LINGUAS
25105 # environment variable.
25107 if test -n "$ALL_LINGUAS"; then
25108 for presentlang in $ALL_LINGUAS; do
25110 if test "%UNSET%" != "$LINGUAS"; then
25111 desiredlanguages="$LINGUAS"
25113 desiredlanguages="$ALL_LINGUAS"
25115 for desiredlang in $desiredlanguages; do
25116 # Use the presentlang catalog if desiredlang is
25117 # a. equal to presentlang, or
25118 # b. a variant of presentlang (because in this case,
25119 # presentlang can be used as a fallback for messages
25120 # which are not translated in the desiredlang catalog).
25121 case "$desiredlang" in
25122 "$presentlang"*) useit=yes;;
25125 if test $useit = yes; then
25126 INST_LINGUAS="$INST_LINGUAS $presentlang"
25131 if test -n "$INST_LINGUAS"; then
25132 for lang in $INST_LINGUAS; do
25133 CATALOGS="$CATALOGS $lang.gmo"
25136 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
25137 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"
25138 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
25139 if test -f "$f"; then
25141 *.orig | *.bak | *~) ;;
25142 *) cat "$f" >> "$ac_dir/Makefile" ;;
25150 default ) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
25156 cat >>$CONFIG_STATUS <<\_ACEOF
25158 { (exit 0); exit 0; }
25160 chmod +x $CONFIG_STATUS
25161 ac_clean_files=$ac_clean_files_save
25164 # configure is writing to config.log, and then calls config.status.
25165 # config.status does its own redirection, appending to config.log.
25166 # Unfortunately, on DOS this fails, as config.log is still kept open
25167 # by configure, so config.status won't be able to write to it; its
25168 # output is simply discarded. So we exec the FD to /dev/null,
25169 # effectively closing config.log, so it can be properly (re)opened and
25170 # appended to by config.status. When coming back to configure, we
25171 # need to make the FD available again.
25172 if test "$no_create" != yes; then
25174 ac_config_status_args=
25175 test "$silent" = yes &&
25176 ac_config_status_args="$ac_config_status_args --quiet"
25178 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25180 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25181 # would make configure fail if this is the last instruction.
25182 $ac_cs_success || { (exit 1); exit 1; }
25187 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
25188 chmod 755 dvd-writepart dvd-freespace
25189 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
25194 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
25195 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
25197 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
25198 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
25200 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
25201 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
25203 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
25204 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
25206 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
25207 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
25209 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
25210 chmod 755 $c/sqlite
25213 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
25214 largefile_support="yes"
25218 # A whole lot of hand springs to get the compiler version.
25219 # This is because gcc changed the output in version 3.0
25221 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
25222 if test "x${CCVERSION}" = "x" ; then
25223 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
25225 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
25226 if test x"${CXXVERSION}" = x ; then
25227 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
25230 if test "x${subsysdir}" = "x${sbindir}" ; then
25233 echo "You have set --sbindir and --with-subsys-dir"
25234 echo " both equal to: ${subsysdir} "
25235 echo " This is not permitted. Please reconfigure."
25237 echo "Aborting configuration ..."
25243 if test "x${db_name}" = "xInternal" ; then
25246 echo "You have not specified either --enable-client-only or one of the"
25247 echo " supported databases: MySQL, PostgreSQL, SQLite3 or SQLite."
25248 echo " This is not permitted. Please reconfigure."
25250 echo "Aborting the configuration ..."
25257 Configuration on `date`:
25259 Host: $host -- ${DISTNAME} ${DISTVER}
25260 Bacula version: ${VERSION} (${DATE})
25261 Source code location: ${srcdir}
25262 Install binaries: ${sbindir}
25263 Install config files: ${sysconfdir}
25264 Scripts directory: ${scriptdir}
25265 Working directory: ${working_dir}
25266 PID directory: ${piddir}
25267 Subsys directory: ${subsysdir}
25268 Man directory: ${mandir}
25269 Data directory: ${datadir}
25270 C Compiler: ${CC} ${CCVERSION}
25271 C++ Compiler: ${CXX} ${CXXVERSION}
25272 Compiler flags: ${WCFLAGS} ${CFLAGS}
25273 Linker flags: ${WLDFLAGS} ${LDFLAGS}
25275 Statically Linked Tools: ${support_static_tools}
25276 Statically Linked FD: ${support_static_fd}
25277 Statically Linked SD: ${support_static_sd}
25278 Statically Linked DIR: ${support_static_dir}
25279 Statically Linked CONS: ${support_static_cons}
25280 Database type: ${db_name}
25281 Database lib: ${DB_LIBS}
25283 Job Output Email: ${job_email}
25284 Traceback Email: ${dump_email}
25285 SMTP Host Address: ${smtp_host}
25287 Director Port: ${dir_port}
25288 File daemon Port: ${fd_port}
25289 Storage daemon Port: ${sd_port}
25291 Director User: ${dir_user}
25292 Director Group: ${dir_group}
25293 Storage Daemon User: ${sd_user}
25294 Storage DaemonGroup: ${sd_group}
25295 File Daemon User: ${fd_user}
25296 File Daemon Group: ${fd_group}
25298 SQL binaries Directory ${SQL_BINDIR}
25300 Large file support: $largefile_support
25301 Bacula conio support: ${got_conio} ${CONS_LIBS}
25302 readline support: ${got_readline} ${PRTREADLINE_SRC}
25303 TCP Wrappers support: ${TCPW_MSG}
25304 TLS support: ${support_tls}
25305 ZLIB support: ${have_zlib}
25306 enable-smartalloc: ${support_smartalloc}
25307 enable-gnome: ${support_gnome} ${gnome_version}
25308 enable-wx-console: ${support_wx_console} ${wx_version}
25309 enable-tray-monitor: ${support_tray_monitor}
25310 client-only: ${build_client_only}
25311 ACL support: ${have_acl}
25312 Python support: ${support_python} ${PYTHON_LIBS}